From 363230ece35bf100e1591f5877634dd6eca0d725 Mon Sep 17 00:00:00 2001 From: Thomas Renger Date: Wed, 1 Nov 2023 11:44:34 +0100 Subject: [PATCH 1/3] fix: passing the data to menu correctly --- .../lib/components/table/inner-table/inner-table.component.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/components/src/lib/components/table/inner-table/inner-table.component.html b/projects/components/src/lib/components/table/inner-table/inner-table.component.html index e90738e..d636148 100644 --- a/projects/components/src/lib/components/table/inner-table/inner-table.component.html +++ b/projects/components/src/lib/components/table/inner-table/inner-table.component.html @@ -32,7 +32,7 @@ From b98e9187bf19e998ae1faac2faeeeaa17cbeb690 Mon Sep 17 00:00:00 2001 From: Thomas Renger Date: Wed, 1 Nov 2023 11:44:58 +0100 Subject: [PATCH 2/3] chore: update the example to avoid similar issues again --- src/app/components/table/table.component.html | 12 ++++++------ src/app/components/table/table.component.ts | 8 ++++---- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/app/components/table/table.component.html b/src/app/components/table/table.component.html index 62a17c2..60f09b8 100644 --- a/src/app/components/table/table.component.html +++ b/src/app/components/table/table.component.html @@ -12,8 +12,8 @@

content.headline.static_data

[columns]="['name', 'level', 'type', 'health', 'birthday']" [dataset]="data" [pageSizeOptions]="[7, 14, 21]" - (deleteEvent)="die()" - (editEvent)="view()" + (deleteEvent)="die($event)" + (editEvent)="view($event)" translateKey="hero.components.hero-list."> @@ -26,8 +26,8 @@

content.headline.no_paging

[dataset]="data" [pageSizeOptions]="[7, 14, 21]" [paging]="false" - (deleteEvent)="die()" - (editEvent)="view()" + (deleteEvent)="die($event)" + (editEvent)="view($event)" translateKey="hero.components.hero-list."> @@ -37,8 +37,8 @@

content.headline.observables

[columns]="['name', 'level', 'type', 'health', 'birthday', 'custom']" [dataset]="data$ | async" progressBar="always" - (deleteEvent)="die()" - (editEvent)="view()" + (deleteEvent)="die($event)" + (editEvent)="view($event)" translateKey="hero.components.hero-list.">

content.headline.options

diff --git a/src/app/components/table/table.component.ts b/src/app/components/table/table.component.ts index 8f57afc..adc8d39 100644 --- a/src/app/components/table/table.component.ts +++ b/src/app/components/table/table.component.ts @@ -114,11 +114,11 @@ export class TableComponent { takeUntilDestroyed(), ); - protected die(): void { - alert('Die'); + protected die(hero: Hero): void { + alert(`Die: ${hero.name}`); } - protected view(): void { - alert('View'); + protected view(hero: Hero): void { + alert(`View: ${hero.name}`); } } From a0aeb9c02b4e550736082eba5e122d0b0b3277b3 Mon Sep 17 00:00:00 2001 From: Thomas Renger Date: Wed, 1 Nov 2023 11:45:33 +0100 Subject: [PATCH 3/3] chore: package version --- projects/components/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/components/package.json b/projects/components/package.json index fd39a1d..9340ffa 100644 --- a/projects/components/package.json +++ b/projects/components/package.json @@ -1,6 +1,6 @@ { "name": "@bolzplatzarena/components", - "version": "0.9.0", + "version": "0.9.1", "author": "Thomas Renger", "repository": { "type": "git",