@tsi-developpement/tsi-shared-ui 1.8.44 → 1.8.45

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3,4 +3,4 @@ import { FormStateService } from "../services/form/form-state.service";
3
3
  import { PresentationDesignerBaseService } from "../services/presentation-setting/presentation-designer-base.service";
4
4
  import { GenericValidationStateService } from "../services/validation/generic-validation-state.service";
5
5
  import { InputRegistryService } from "../services/validation/input-registry.service";
6
- export declare const appProviders: (typeof PresentationDesignerBaseService | typeof GenericValidationStateService | typeof InputRegistryService | typeof DynamicFormService | typeof FormStateService)[];
6
+ export declare const appProviders: (typeof GenericValidationStateService | typeof PresentationDesignerBaseService | typeof InputRegistryService | typeof FormStateService | typeof DynamicFormService)[];
@@ -2,7 +2,7 @@ import { DynamicDialogConfig, DynamicDialogRef } from "primeng/dynamicdialog";
2
2
  import { TabView } from "primeng/tabview";
3
3
  import { JwtHelperService } from "@auth0/angular-jwt";
4
4
  import { ConfirmationService, MessageService } from "primeng/api";
5
- export declare const SharedUiTsiProviders: (typeof DynamicDialogRef | typeof DynamicDialogConfig | typeof JwtHelperService | typeof TabView | typeof MessageService | typeof ConfirmationService | {
5
+ export declare const SharedUiTsiProviders: (typeof TabView | typeof DynamicDialogRef | typeof DynamicDialogConfig | typeof JwtHelperService | typeof MessageService | typeof ConfirmationService | {
6
6
  provide: import("@angular/core").InjectionToken<unknown>;
7
7
  useValue: import("@angular/core").InjectionToken<unknown>;
8
8
  })[];
@@ -117,6 +117,15 @@ export declare class EditableGridComponent extends TsiInputBase implements OnIni
117
117
  rowDuplicatedEventEmitter: EventEmitter<RowAddedResult>;
118
118
  dt: Table | undefined;
119
119
  id?: string;
120
+ /**
121
+ * Tracks rows by their business key (`key` input) so PrimeNG reuses existing row views
122
+ * instead of destroying/recreating them when the row array is replaced with objects sharing
123
+ * the same key (e.g. after a recalculation that clones the data). Without this, every cell
124
+ * editor — including server-backed search combos — is re-instantiated and re-fetches its data.
125
+ * Falls back to the row index when the key is absent (e.g. brand-new rows).
126
+ * Arrow property so `this` is preserved when PrimeNG invokes it.
127
+ */
128
+ rowTrackBy: (index: number, item: any) => any;
120
129
  private _entityValidationsService;
121
130
  constructor(_localizePipe: LocalizePipe, _filterService: FilterService);
122
131
  ngOnInit(): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tsi-developpement/tsi-shared-ui",
3
- "version": "1.8.44",
3
+ "version": "1.8.45",
4
4
  "author": "TSI",
5
5
  "license": "MIT",
6
6
  "peerDependencies": {