@masterteam/components 0.0.304 → 0.0.305
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 +7 -1
- package/assets/i18n/en.json +7 -1
- package/fesm2022/masterteam-components-business-fields.mjs +109 -15
- package/fesm2022/masterteam-components-business-fields.mjs.map +1 -1
- package/fesm2022/masterteam-components-entities.mjs.map +1 -1
- package/fesm2022/masterteam-components.mjs.map +1 -1
- package/package.json +1 -1
- package/types/masterteam-components-business-fields.d.ts +29 -0
- package/types/masterteam-components-entities.d.ts +7 -0
- package/types/masterteam-components.d.ts +7 -0
package/package.json
CHANGED
|
@@ -702,6 +702,35 @@ declare class EntityListField implements ControlValueAccessor {
|
|
|
702
702
|
* withholds its values, and the row says so, so the user can remove it.
|
|
703
703
|
*/
|
|
704
704
|
protected readonly selectionRows: _angular_core.Signal<EntityListRow[]>;
|
|
705
|
+
/**
|
|
706
|
+
* One table row from a rendered record — `{ entityId, values }` with each
|
|
707
|
+
* value's `rawValue` and rendered `value` — cell by cell against the
|
|
708
|
+
* metadata columns, the same cells a related list shows. Selected `records`
|
|
709
|
+
* and the comparison's preserved / live rows all have this shape.
|
|
710
|
+
*/
|
|
711
|
+
private recordRow;
|
|
712
|
+
/** The comparison response, once loaded. */
|
|
713
|
+
private readonly comparison;
|
|
714
|
+
/**
|
|
715
|
+
* The record that owns the list, when the host named it (a table cell's
|
|
716
|
+
* drawer). Only a read-only list reads its comparison: an editable one
|
|
717
|
+
* edits the source records it queries.
|
|
718
|
+
*/
|
|
719
|
+
private readonly comparisonOwner;
|
|
720
|
+
/**
|
|
721
|
+
* A saved Related list viewed from outside its form: the values preserved
|
|
722
|
+
* when it was saved beside the source records' current ones. Local and
|
|
723
|
+
* Selected lists hold their own rows and never compare.
|
|
724
|
+
*/
|
|
725
|
+
protected readonly comparisonMode: _angular_core.Signal<boolean>;
|
|
726
|
+
protected readonly comparisonReady: _angular_core.Signal<boolean>;
|
|
727
|
+
protected readonly liveRows: _angular_core.Signal<EntityListRow[]>;
|
|
728
|
+
protected readonly preservedRows: _angular_core.Signal<EntityListRow[]>;
|
|
729
|
+
/** No baseline was captured yet — not the same as an empty saved list. */
|
|
730
|
+
protected readonly preservedAvailable: _angular_core.Signal<boolean>;
|
|
731
|
+
protected readonly preservedAt: _angular_core.Signal<string | null>;
|
|
732
|
+
protected readonly unavailableCount: _angular_core.Signal<number>;
|
|
733
|
+
private fetchComparison;
|
|
705
734
|
protected readonly selectionRowActions: _angular_core.Signal<TableAction[]>;
|
|
706
735
|
/**
|
|
707
736
|
* A required Selected list needs a record. An emptied selection is an
|
|
@@ -56,6 +56,13 @@ interface EntityRuntimeContext {
|
|
|
56
56
|
levelId?: number | string | null;
|
|
57
57
|
/** Owning level-data row — what related records are scoped to. */
|
|
58
58
|
levelDataId?: number | string | null;
|
|
59
|
+
/**
|
|
60
|
+
* The record that owns the list, for the reads addressed to it rather than
|
|
61
|
+
* to its level — the saved list's `entity-lists/comparison`. Set by a host
|
|
62
|
+
* that knows the row it renders (a table cell); a record preview leaves it.
|
|
63
|
+
*/
|
|
64
|
+
ownerKind?: 'ModuleData' | 'LevelData' | null;
|
|
65
|
+
ownerId?: number | null;
|
|
59
66
|
}
|
|
60
67
|
/**
|
|
61
68
|
* Publishes an `EntityRuntimeContext` to a subtree of entity renderers.
|
|
@@ -735,6 +735,13 @@ interface EntityListFieldRuntimeContext {
|
|
|
735
735
|
* on a level's own form, whose context is `Level:{levelId}`.
|
|
736
736
|
*/
|
|
737
737
|
moduleId?: number | string | null;
|
|
738
|
+
/**
|
|
739
|
+
* The record that owns the list. A read-only Related list with an owner
|
|
740
|
+
* shows its saved list's preserved and current values
|
|
741
|
+
* (`entity-lists/comparison`) instead of querying the source module.
|
|
742
|
+
*/
|
|
743
|
+
ownerKind?: 'ModuleData' | 'LevelData' | null;
|
|
744
|
+
ownerId?: number | null;
|
|
738
745
|
}
|
|
739
746
|
declare class EntityListFieldConfig extends BaseFieldConfig {
|
|
740
747
|
/** EntityList property id (used in the read endpoint route). */
|