@masterteam/components 0.0.289 → 0.0.291
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/assets/i18n/ar.json +386 -386
- package/assets/i18n/en.json +386 -386
- package/fesm2022/masterteam-components-business-fields.mjs +87 -10
- package/fesm2022/masterteam-components-business-fields.mjs.map +1 -1
- package/fesm2022/masterteam-components-entities.mjs +6 -6
- package/fesm2022/masterteam-components-entities.mjs.map +1 -1
- package/package.json +1 -1
- package/types/masterteam-components-business-fields.d.ts +16 -3
package/package.json
CHANGED
|
@@ -351,6 +351,12 @@ declare class EntityListField implements ControlValueAccessor {
|
|
|
351
351
|
/** Normalized `access` from the property configuration. */
|
|
352
352
|
protected readonly accessMode: _angular_core.Signal<EntityListAccess>;
|
|
353
353
|
protected readonly canRead: _angular_core.Signal<boolean>;
|
|
354
|
+
/**
|
|
355
|
+
* Whether the field has rows it may display. Write-only access cannot read
|
|
356
|
+
* target module records, but its stored `rows[]` are the value users entered
|
|
357
|
+
* and must remain visible when the host renders the field as read-only.
|
|
358
|
+
*/
|
|
359
|
+
protected readonly canDisplayRows: _angular_core.Signal<boolean>;
|
|
354
360
|
/** Access allows module-backed create/update/delete. */
|
|
355
361
|
private readonly writeAllowed;
|
|
356
362
|
/** Write UI is rendered only when access allows it and the field is editable. */
|
|
@@ -376,9 +382,9 @@ declare class EntityListField implements ControlValueAccessor {
|
|
|
376
382
|
/** Pending edits of existing rows, keyed by entity id. */
|
|
377
383
|
private readonly editedRowsByEntityId;
|
|
378
384
|
/**
|
|
379
|
-
* Rows rendered in the table. In write
|
|
380
|
-
*
|
|
381
|
-
* appended.
|
|
385
|
+
* Rows rendered in the table. In editable write modes, and in a read-only
|
|
386
|
+
* Write-only preview, existing rows are merged with pending edits, removed
|
|
387
|
+
* rows are hidden, and locally created rows are appended.
|
|
382
388
|
*/
|
|
383
389
|
protected readonly displayRows: _angular_core.Signal<EntityListRow[]>;
|
|
384
390
|
protected readonly hasRows: _angular_core.Signal<boolean>;
|
|
@@ -466,6 +472,13 @@ declare class EntityListField implements ControlValueAccessor {
|
|
|
466
472
|
private isEmptyValue;
|
|
467
473
|
private isSameValue;
|
|
468
474
|
private fetchDraftColumns;
|
|
475
|
+
/**
|
|
476
|
+
* Project a Create form into the catalog shape the column builder expects.
|
|
477
|
+
* Sections and their fields are flattened into reading order and renumbered
|
|
478
|
+
* from there — a field's own `order` is section-relative, so carrying it over
|
|
479
|
+
* as the column order interleaves the sections once `applyResponse` sorts.
|
|
480
|
+
*/
|
|
481
|
+
private mapProcessFormProperties;
|
|
469
482
|
private fetchRows;
|
|
470
483
|
private applyResponse;
|
|
471
484
|
private toEntityData;
|