@openmfp/ngx 0.17.3 → 0.18.0
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/package.json
CHANGED
package/types/openmfp-ngx.d.ts
CHANGED
|
@@ -179,6 +179,7 @@ declare class DeclarativeTable<T extends GenericResource> {
|
|
|
179
179
|
rowTrackBy: (_index: number, item: T) => unknown;
|
|
180
180
|
viewColumns: _angular_core.Signal<ProcessedTableFieldDefinition[]>;
|
|
181
181
|
isPagerMode: _angular_core.Signal<boolean>;
|
|
182
|
+
knowsTotal: _angular_core.Signal<boolean>;
|
|
182
183
|
hasResults: _angular_core.Signal<boolean>;
|
|
183
184
|
totalPages: _angular_core.Signal<number>;
|
|
184
185
|
canPrev: _angular_core.Signal<boolean>;
|
|
@@ -260,8 +261,13 @@ declare class DeclarativeForm<T extends GenericResource> {
|
|
|
260
261
|
|
|
261
262
|
/** Configuration for the create/edit resource form rendered inside the table card dialogs. */
|
|
262
263
|
interface ResourceFormConfig {
|
|
263
|
-
/**
|
|
264
|
-
|
|
264
|
+
/**
|
|
265
|
+
* Ordered list of fields to render in the form. May be a plain array, or a
|
|
266
|
+
* thunk returning a promise of the fields — the thunk form is resolved lazily
|
|
267
|
+
* when the dialog opens (e.g. to fetch dynamic select options on demand
|
|
268
|
+
* rather than prefetching them on render).
|
|
269
|
+
*/
|
|
270
|
+
fields: FormFieldDefinition[] | (() => Promise<FormFieldDefinition[]>);
|
|
265
271
|
/** Dialog title shown in the header. */
|
|
266
272
|
title?: string;
|
|
267
273
|
/** Label for the confirm/submit button. */
|
|
@@ -426,6 +432,8 @@ declare class DeclarativeTableCard<T extends GenericResource> {
|
|
|
426
432
|
protected editDialogOpen: _angular_core.WritableSignal<boolean>;
|
|
427
433
|
protected deleteDialogOpen: _angular_core.WritableSignal<boolean>;
|
|
428
434
|
protected pendingResource: _angular_core.WritableSignal<T | null>;
|
|
435
|
+
protected resolvedCreateFields: _angular_core.WritableSignal<FormFieldDefinition[]>;
|
|
436
|
+
protected resolvedEditFields: _angular_core.WritableSignal<FormFieldDefinition[]>;
|
|
429
437
|
protected tableConfig: _angular_core.Signal<_openmfp_ngx.TableConfig>;
|
|
430
438
|
protected header: _angular_core.Signal<string | undefined>;
|
|
431
439
|
protected headerTooltip: _angular_core.Signal<string | undefined>;
|
|
@@ -445,6 +453,9 @@ declare class DeclarativeTableCard<T extends GenericResource> {
|
|
|
445
453
|
protected onFilterTabChanged(tab: FieldFilterDefinition | undefined): void;
|
|
446
454
|
submitSearch(): void;
|
|
447
455
|
onButtonClick(event: ResourceFieldButtonClickEvent<T>): void;
|
|
456
|
+
openCreateDialog(): Promise<void>;
|
|
457
|
+
private openEditDialog;
|
|
458
|
+
private resolveFormFields;
|
|
448
459
|
closeCreateDialog(): void;
|
|
449
460
|
closeEditDialog(): void;
|
|
450
461
|
closeDeleteDialog(): void;
|