@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.
- package/esm2022/lib/tsi-components/input-components/editable-grid/editable-grid.component.mjs +12 -3
- package/fesm2022/tsi-developpement-tsi-shared-ui.mjs +11 -2
- package/fesm2022/tsi-developpement-tsi-shared-ui.mjs.map +1 -1
- package/lib/consts/app-providers.d.ts +1 -1
- package/lib/providers/shared-ui-tsi.provider.d.ts +1 -1
- package/lib/tsi-components/input-components/editable-grid/editable-grid.component.d.ts +9 -0
- package/package.json +1 -1
|
@@ -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
|
|
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
|
|
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;
|