@masterteam/components 0.0.288 → 0.0.290
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/common.css +1 -1
- package/assets/i18n/ar.json +4 -0
- package/assets/i18n/en.json +4 -0
- package/fesm2022/masterteam-components-business-fields.mjs +7 -4
- package/fesm2022/masterteam-components-business-fields.mjs.map +1 -1
- package/fesm2022/masterteam-components-entities.mjs +448 -17
- package/fesm2022/masterteam-components-entities.mjs.map +1 -1
- package/fesm2022/masterteam-components-field-validation.mjs.map +1 -1
- package/fesm2022/masterteam-components-table.mjs.map +1 -1
- package/fesm2022/masterteam-components-treeselect-field.mjs +2 -2
- package/fesm2022/masterteam-components-treeselect-field.mjs.map +1 -1
- package/package.json +1 -1
- package/types/masterteam-components-entities.d.ts +271 -24
- package/types/masterteam-components-table.d.ts +1 -1
|
@@ -50,6 +50,15 @@ type EntityViewType = 'Text' | 'LongText' | 'Date' | 'DateTime'
|
|
|
50
50
|
* gate the record currently sits on. Never editable at runtime.
|
|
51
51
|
*/
|
|
52
52
|
| 'PhaseGate' | 'Attachment' | 'Location' | 'LookupMatrix' | 'LookupModuleCheckList' | 'LeafDetails' | 'Connection' | 'ScheduleItemSelector'
|
|
53
|
+
/**
|
|
54
|
+
* A nested list of related rows. Read-only here: the editable runtime is
|
|
55
|
+
* `mt-entity-list-field`, which fetches its own rows; this view type is what
|
|
56
|
+
* arrives when an `EntityList` property is itself a *column* of that fetch —
|
|
57
|
+
* a calculated inline list the backend renders inline, such as the phase
|
|
58
|
+
* gate `phasegate_checklists` virtual property. The value carries its own
|
|
59
|
+
* rows, so nothing is fetched to display it.
|
|
60
|
+
*/
|
|
61
|
+
| 'EntityList'
|
|
53
62
|
/**
|
|
54
63
|
* A stored icon reference. The value is a plain icon key (e.g.
|
|
55
64
|
* `custom.strategy`) — the backend's own system icon property (Name/Icon on
|
|
@@ -119,16 +128,58 @@ interface PercentageColorRule {
|
|
|
119
128
|
maxValue?: number | null;
|
|
120
129
|
color: string;
|
|
121
130
|
}
|
|
131
|
+
/**
|
|
132
|
+
* Where a Percentage property's colour comes from.
|
|
133
|
+
*
|
|
134
|
+
* - `rules` — the value itself picks the colour out of `colorRules`.
|
|
135
|
+
* - `property` — another property on the same record supplies it, so the bar
|
|
136
|
+
* follows that property's own colour (a Status's colour, a Lookup item's
|
|
137
|
+
* colour) rather than the percentage it is showing.
|
|
138
|
+
*
|
|
139
|
+
* An absent mode reads as `rules`: every configuration authored before this
|
|
140
|
+
* existed is value-based.
|
|
141
|
+
*/
|
|
142
|
+
type PercentageColorMode = 'rules' | 'property';
|
|
143
|
+
/**
|
|
144
|
+
* The property that supplies the colour in `property` mode.
|
|
145
|
+
*
|
|
146
|
+
* Both identifiers are stored on purpose. `propertyId` is what the backend
|
|
147
|
+
* resolves against, and `propertyKey` is what a renderer holding an already
|
|
148
|
+
* rendered record can match without a catalog lookup — rendered properties
|
|
149
|
+
* carry their key, not the catalog id they came from.
|
|
150
|
+
*/
|
|
151
|
+
interface PercentageColorPropertyRef {
|
|
152
|
+
/** Catalog id of the colour-bearing property. */
|
|
153
|
+
propertyId: number;
|
|
154
|
+
/** Its key, for matching against a rendered record. */
|
|
155
|
+
propertyKey?: string | null;
|
|
156
|
+
/**
|
|
157
|
+
* Its view type — `Status`, `Lookup`, `LookupMultiSelect` or `PhaseGate`.
|
|
158
|
+
* Deliberately a plain string: it arrives from stored JSON, and a view type
|
|
159
|
+
* this build does not know about must survive the round trip rather than be
|
|
160
|
+
* normalised away.
|
|
161
|
+
*/
|
|
162
|
+
viewType?: string | null;
|
|
163
|
+
}
|
|
122
164
|
interface EntityPercentageConfig extends EntityBaseConfig {
|
|
123
165
|
/**
|
|
124
|
-
* The colour to paint the bar with. The backend resolves the
|
|
125
|
-
* the
|
|
126
|
-
*
|
|
166
|
+
* The colour to paint the bar with. The backend resolves the configuration —
|
|
167
|
+
* the rules, or the source property in `property` mode — and ships the winner
|
|
168
|
+
* here on render/value/fetch responses, so this always wins over a
|
|
169
|
+
* client-side evaluation.
|
|
127
170
|
*/
|
|
128
171
|
color?: string;
|
|
129
|
-
/**
|
|
172
|
+
/** Which of the two colour strategies applies. Absent ⇒ `rules`. */
|
|
173
|
+
colorSource?: PercentageColorMode | null;
|
|
174
|
+
/** The colour-bearing property. `property` mode only. */
|
|
175
|
+
colorProperty?: PercentageColorPropertyRef | null;
|
|
176
|
+
/** Ordered rules — evaluated in order, first match wins. `rules` mode only. */
|
|
130
177
|
colorRules?: PercentageColorRule[] | null;
|
|
131
|
-
/**
|
|
178
|
+
/**
|
|
179
|
+
* Fallback colour. In `rules` mode it applies when no rule matches; in
|
|
180
|
+
* `property` mode when the source property is empty or its value carries no
|
|
181
|
+
* colour of its own.
|
|
182
|
+
*/
|
|
132
183
|
defaultColor?: string | null;
|
|
133
184
|
}
|
|
134
185
|
interface LeafLevelSavedConfig {
|
|
@@ -442,6 +493,38 @@ interface EntityScheduleItemValue {
|
|
|
442
493
|
moduleKey?: string;
|
|
443
494
|
itemType?: string;
|
|
444
495
|
}
|
|
496
|
+
/** One cell of an `EntityList` row. Values are always sent as strings. */
|
|
497
|
+
interface EntityListValueItem {
|
|
498
|
+
propertyKey: string;
|
|
499
|
+
rawValue?: string | null;
|
|
500
|
+
}
|
|
501
|
+
/** One row of an `EntityList` value. */
|
|
502
|
+
interface EntityListRowValue {
|
|
503
|
+
rowId?: string;
|
|
504
|
+
entityId?: number;
|
|
505
|
+
values?: EntityListValueItem[];
|
|
506
|
+
}
|
|
507
|
+
/**
|
|
508
|
+
* The stored `EntityList` payload, as the backend renders it. `rows` is the
|
|
509
|
+
* only part this view type displays — `entityIds` and the operation-marker
|
|
510
|
+
* arrays exist for the writable runtime, not for reading.
|
|
511
|
+
*/
|
|
512
|
+
interface EntityListEntityValue {
|
|
513
|
+
entityIds?: number[];
|
|
514
|
+
rows?: EntityListRowValue[];
|
|
515
|
+
}
|
|
516
|
+
/**
|
|
517
|
+
* One field definition of an inline `EntityList`, from its property
|
|
518
|
+
* configuration's `inlineFields`. This is the only description of the nested
|
|
519
|
+
* columns: the value itself carries bare keys.
|
|
520
|
+
*/
|
|
521
|
+
interface EntityListInlineFieldMeta {
|
|
522
|
+
key: string;
|
|
523
|
+
viewType?: string;
|
|
524
|
+
order?: number;
|
|
525
|
+
required?: boolean;
|
|
526
|
+
configuration?: EntityPropertyConfiguration;
|
|
527
|
+
}
|
|
445
528
|
/**
|
|
446
529
|
* Catalog metadata for a property nested inside another property's value.
|
|
447
530
|
* Mirrors the top-level catalog property shape, which the backend sends under
|
|
@@ -472,7 +555,7 @@ interface EntityData {
|
|
|
472
555
|
* props have no label and no view type to render with.
|
|
473
556
|
*/
|
|
474
557
|
nestedProperties?: EntityNestedPropertyMeta[];
|
|
475
|
-
value: string | EntityTranslatableTextValue | EntityStatusValue | EntityUserValue | EntityMultiUserValue | EntityLookupValue | EntityMultiLookupValue | EntityPhaseGateValue | EntityAttachmentValue | EntityLocationValue | EntityConnectionValue | EntityScheduleItemValue[] | EntityLookupCheckListValue | EntityLookupCheckListItem[] | LeafDetailsEntityValue | LeafDetailsEntityCollectionValue | LeafDetailsRuntimeValue;
|
|
558
|
+
value: string | EntityTranslatableTextValue | EntityStatusValue | EntityUserValue | EntityMultiUserValue | EntityLookupValue | EntityMultiLookupValue | EntityPhaseGateValue | EntityAttachmentValue | EntityLocationValue | EntityConnectionValue | EntityScheduleItemValue[] | EntityLookupCheckListValue | EntityLookupCheckListItem[] | LeafDetailsEntityValue | LeafDetailsEntityCollectionValue | LeafDetailsRuntimeValue | EntityListEntityValue;
|
|
476
559
|
viewType: EntityViewType;
|
|
477
560
|
type?: string;
|
|
478
561
|
configuration?: EntityConfiguration;
|
|
@@ -697,11 +780,21 @@ declare class EntityPercentage {
|
|
|
697
780
|
readonly maxValue: _angular_core.Signal<number>;
|
|
698
781
|
readonly hideName: _angular_core.Signal<boolean>;
|
|
699
782
|
/**
|
|
700
|
-
* The bar colour. The backend evaluates the property's
|
|
783
|
+
* The bar colour. The backend evaluates the property's configuration and
|
|
701
784
|
* returns the winner as `color` on render/value/fetch responses, so a
|
|
702
|
-
* resolved colour always wins — the
|
|
703
|
-
*
|
|
704
|
-
*
|
|
785
|
+
* resolved colour always wins — the configuration is only evaluated here for
|
|
786
|
+
* ones that arrive without it (a catalog read, or the property-form preview).
|
|
787
|
+
*
|
|
788
|
+
* A configuration that takes its colour from another property has no
|
|
789
|
+
* client-side answer at all: this component is given one entity and cannot
|
|
790
|
+
* see the Status or Lookup sitting next to it. Its fallback is the declared
|
|
791
|
+
* `defaultColor`, and the rules are skipped entirely.
|
|
792
|
+
*
|
|
793
|
+
* Dynamic-ness is decided once, across *both* configurations, before either
|
|
794
|
+
* is evaluated. Deciding it per-configuration would let a `colorRules` copy
|
|
795
|
+
* left on the instance config paint a band colour for a property whose own
|
|
796
|
+
* configuration replaced those rules — the one outcome this mode exists to
|
|
797
|
+
* prevent.
|
|
705
798
|
*/
|
|
706
799
|
readonly progressColor: _angular_core.Signal<string>;
|
|
707
800
|
/**
|
|
@@ -850,7 +943,7 @@ type AttachmentReference = EntityAttachmentItemValue | string;
|
|
|
850
943
|
declare class EntityAttachment {
|
|
851
944
|
readonly data: _angular_core.InputSignal<EntityData | undefined>;
|
|
852
945
|
readonly name: _angular_core.InputSignal<string | undefined>;
|
|
853
|
-
readonly shape: _angular_core.InputSignal<"
|
|
946
|
+
readonly shape: _angular_core.InputSignal<"compact" | "default">;
|
|
854
947
|
readonly value: _angular_core.InputSignal<string | EntityAttachmentItemValue | EntityAttachmentValue | null | undefined>;
|
|
855
948
|
readonly endPoint: _angular_core.InputSignal<string>;
|
|
856
949
|
readonly context: _angular_core.InputSignal<HttpContext | undefined>;
|
|
@@ -931,6 +1024,128 @@ declare class EntityScheduleItem {
|
|
|
931
1024
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<EntityScheduleItem, "mt-entity-schedule-item", never, { "data": { "alias": "data"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
932
1025
|
}
|
|
933
1026
|
|
|
1027
|
+
/** One rendered row of an `EntityList` value: a title plus the rest. */
|
|
1028
|
+
interface EntityListRenderedRow {
|
|
1029
|
+
id: string;
|
|
1030
|
+
/** First field by order — the row's own name. */
|
|
1031
|
+
title: EntityData | null;
|
|
1032
|
+
/** Everything else, already stripped of machine companions. */
|
|
1033
|
+
fields: EntityData[];
|
|
1034
|
+
}
|
|
1035
|
+
/**
|
|
1036
|
+
* Derive a readable label from a raw field key. Inline `EntityList` fields
|
|
1037
|
+
* carry no label of their own — the configuration defines them as bare keys —
|
|
1038
|
+
* so this strips separators and title-cases what is left.
|
|
1039
|
+
*/
|
|
1040
|
+
declare function humanizeEntityListKey(key: string): string;
|
|
1041
|
+
/**
|
|
1042
|
+
* Turns an `EntityList` entity into rendered rows.
|
|
1043
|
+
*
|
|
1044
|
+
* Nothing is fetched: the value already carries `rows[]`, and the property
|
|
1045
|
+
* configuration's `inlineFields` is the only description of the nested columns
|
|
1046
|
+
* — the rows themselves carry bare keys. Shared by the trigger
|
|
1047
|
+
* (`mt-entity-list-preview`, which needs the count and the titles) and the
|
|
1048
|
+
* drawer that renders them in full.
|
|
1049
|
+
*
|
|
1050
|
+
* `allowed` narrows to those keys, in that order; empty renders every field
|
|
1051
|
+
* that survives the companion and identifier rules.
|
|
1052
|
+
*/
|
|
1053
|
+
declare function buildEntityListRows(data: EntityData, allowed?: readonly string[]): EntityListRenderedRow[];
|
|
1054
|
+
/**
|
|
1055
|
+
* Plain-text summary of the rows, for the trigger's tooltip. Caps the list so
|
|
1056
|
+
* a forty-item checklist does not become a forty-line tooltip.
|
|
1057
|
+
*/
|
|
1058
|
+
declare function summarizeEntityListRows(rows: readonly EntityListRenderedRow[], limit: number): {
|
|
1059
|
+
names: string[];
|
|
1060
|
+
remaining: number;
|
|
1061
|
+
};
|
|
1062
|
+
|
|
1063
|
+
/**
|
|
1064
|
+
* Read-only renderer for an `EntityList` value nested inside another entity —
|
|
1065
|
+
* typically one column of the table `mt-entity-list-field` builds, where the
|
|
1066
|
+
* target module carries a calculated inline list of its own (phase gate
|
|
1067
|
+
* checklists being the case this was written for).
|
|
1068
|
+
*
|
|
1069
|
+
* The cell shows a count and a preview button, not the list. Rendering the
|
|
1070
|
+
* rows inline made the column own the table's row height — three lines per
|
|
1071
|
+
* checklist item, times however many items the phase gate has — and the grid
|
|
1072
|
+
* stopped being scannable. The rows go in a drawer instead, where they have
|
|
1073
|
+
* room; the tooltip names them so the common "which ones are these?" question
|
|
1074
|
+
* is answered without opening anything.
|
|
1075
|
+
*
|
|
1076
|
+
* Nothing is fetched: the value already carries its rows, and the property
|
|
1077
|
+
* configuration's `inlineFields` carries the only description of the columns.
|
|
1078
|
+
* There is no writable path here by design — calculated inline lists are
|
|
1079
|
+
* `access: Read` at the source.
|
|
1080
|
+
*/
|
|
1081
|
+
declare class EntityListPreview {
|
|
1082
|
+
readonly data: _angular_core.InputSignal<EntityData>;
|
|
1083
|
+
/**
|
|
1084
|
+
* Restricts rendering to these nested field keys, in this order. Left empty,
|
|
1085
|
+
* every field in `inlineFields` renders — what the generic table path wants;
|
|
1086
|
+
* a host that knows the list narrows it here. Forwarded to the drawer.
|
|
1087
|
+
*/
|
|
1088
|
+
readonly fields: _angular_core.InputSignal<string[]>;
|
|
1089
|
+
private readonly modal;
|
|
1090
|
+
private readonly transloco;
|
|
1091
|
+
/**
|
|
1092
|
+
* Read inside every computed that translates. `transloco.translate()` is a
|
|
1093
|
+
* one-shot read with no signal of its own, so without this dependency the
|
|
1094
|
+
* tooltip and the accessible name keep whatever language they were first
|
|
1095
|
+
* built in — both apps switch language at runtime. Shared rather than a
|
|
1096
|
+
* per-instance subscription: this renders once per cell per row.
|
|
1097
|
+
*/
|
|
1098
|
+
private readonly activeLang;
|
|
1099
|
+
readonly label: _angular_core.Signal<string>;
|
|
1100
|
+
readonly rows: _angular_core.Signal<EntityListRenderedRow[]>;
|
|
1101
|
+
readonly count: _angular_core.Signal<number>;
|
|
1102
|
+
readonly hasRows: _angular_core.Signal<boolean>;
|
|
1103
|
+
/**
|
|
1104
|
+
* An empty list reads as the standard empty value, not as a sentence — this
|
|
1105
|
+
* sits in a table cell, where a "no related items" line would be louder than
|
|
1106
|
+
* the rows it stands in for.
|
|
1107
|
+
*/
|
|
1108
|
+
readonly emptyLabel: string;
|
|
1109
|
+
/**
|
|
1110
|
+
* The button's accessible name. Set explicitly because `mt-button` resolves
|
|
1111
|
+
* it as `ariaLabel → label → tooltip`, and the label here is the bare count
|
|
1112
|
+
* — a screen reader would otherwise announce the button as "2".
|
|
1113
|
+
*/
|
|
1114
|
+
readonly ariaLabel: _angular_core.Signal<string>;
|
|
1115
|
+
/**
|
|
1116
|
+
* Names the rows, so the cell answers "which ones?" on hover. Falls back to
|
|
1117
|
+
* the button's own wording when no row has a title to show.
|
|
1118
|
+
*/
|
|
1119
|
+
readonly tooltip: _angular_core.Signal<string>;
|
|
1120
|
+
private viewLabel;
|
|
1121
|
+
protected openDrawer(): void;
|
|
1122
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<EntityListPreview, never>;
|
|
1123
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<EntityListPreview, "mt-entity-list-preview", never, { "data": { "alias": "data"; "required": true; "isSignal": true; }; "fields": { "alias": "fields"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
1124
|
+
}
|
|
1125
|
+
|
|
1126
|
+
/**
|
|
1127
|
+
* The full nested `EntityList`, rendered in a drawer opened by
|
|
1128
|
+
* `mt-entity-list-preview`.
|
|
1129
|
+
*
|
|
1130
|
+
* It lives in a drawer rather than in the cell because the cell is a table
|
|
1131
|
+
* column: even three lines per row set the height of every row in the table,
|
|
1132
|
+
* and a checklist of fifteen made the grid unreadable. The drawer has the
|
|
1133
|
+
* width and height this content actually needs.
|
|
1134
|
+
*
|
|
1135
|
+
* Created through `ModalService`, so its inputs arrive via `inputValues` and
|
|
1136
|
+
* it is built with the **root** injector — nothing route-provided is visible
|
|
1137
|
+
* here, which is why it takes the already-resolved entity rather than looking
|
|
1138
|
+
* anything up.
|
|
1139
|
+
*/
|
|
1140
|
+
declare class EntityListDrawer {
|
|
1141
|
+
readonly data: _angular_core.InputSignal<EntityData>;
|
|
1142
|
+
/** Ordered allowlist of nested field keys; empty renders all of them. */
|
|
1143
|
+
readonly fields: _angular_core.InputSignal<string[]>;
|
|
1144
|
+
readonly rows: _angular_core.Signal<EntityListRenderedRow[]>;
|
|
1145
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<EntityListDrawer, never>;
|
|
1146
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<EntityListDrawer, "mt-entity-list-drawer", never, { "data": { "alias": "data"; "required": true; "isSignal": true; }; "fields": { "alias": "fields"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
1147
|
+
}
|
|
1148
|
+
|
|
934
1149
|
interface RenderedItem {
|
|
935
1150
|
lookupKey: string;
|
|
936
1151
|
/** Humanized lookup key for display. */
|
|
@@ -1136,10 +1351,13 @@ declare function currencyUnitOf(formatted: string): string;
|
|
|
1136
1351
|
declare function compactCurrencyDisplay(formatted: string, rawValue: string | null | undefined, locale: string, threshold?: number): string;
|
|
1137
1352
|
|
|
1138
1353
|
/**
|
|
1139
|
-
* Anything that can supply a percentage colour:
|
|
1140
|
-
*
|
|
1354
|
+
* Anything that can supply a percentage colour: a mode, the ordered rule set
|
|
1355
|
+
* that mode may consult, the colour-bearing property it may point at instead,
|
|
1356
|
+
* and the fallback used when neither produces one.
|
|
1141
1357
|
*/
|
|
1142
1358
|
interface PercentageColorSource {
|
|
1359
|
+
colorSource?: PercentageColorMode | null;
|
|
1360
|
+
colorProperty?: PercentageColorPropertyRef | null;
|
|
1143
1361
|
colorRules?: PercentageColorRule[] | null;
|
|
1144
1362
|
defaultColor?: string | null;
|
|
1145
1363
|
}
|
|
@@ -1150,14 +1368,37 @@ interface PercentageColorSource {
|
|
|
1150
1368
|
*/
|
|
1151
1369
|
declare function matchesPercentageColorRule(value: number, rule?: PercentageColorRule | null): boolean;
|
|
1152
1370
|
/**
|
|
1153
|
-
*
|
|
1154
|
-
*
|
|
1371
|
+
* Whether the configuration takes its colour from another property rather than
|
|
1372
|
+
* from the percentage value. A mode of `property` with no usable reference is
|
|
1373
|
+
* not dynamic — a half-authored configuration must keep behaving like the
|
|
1374
|
+
* value-based one rather than losing its colour entirely.
|
|
1375
|
+
*/
|
|
1376
|
+
declare function isDynamicPercentageColorSource(source?: PercentageColorSource | null): boolean;
|
|
1377
|
+
/**
|
|
1378
|
+
* The colour-bearing property the configuration points at, or `null` when it
|
|
1379
|
+
* is value-based.
|
|
1380
|
+
*
|
|
1381
|
+
* The mode is also inferred from a present reference, not only from
|
|
1382
|
+
* `colorSource`: the reference is the part that carries meaning, and a stored
|
|
1383
|
+
* configuration that kept it while losing the discriminator must still resolve
|
|
1384
|
+
* dynamically instead of silently repainting itself from the rules.
|
|
1385
|
+
*/
|
|
1386
|
+
declare function resolvePercentageColorPropertyRef(source?: PercentageColorSource | null): PercentageColorPropertyRef | null;
|
|
1387
|
+
/**
|
|
1388
|
+
* The colour for a percentage value.
|
|
1389
|
+
*
|
|
1390
|
+
* In `rules` mode: the rules in their configured order, first match wins,
|
|
1391
|
+
* `defaultColor` when nothing matches. In `property` mode the value decides
|
|
1392
|
+
* nothing, and there is nothing here to decide it with — the colour belongs to
|
|
1393
|
+
* another property on the same record, which only the backend can read — so the
|
|
1394
|
+
* answer is `defaultColor`. The rules are never consulted in that mode: they
|
|
1395
|
+
* would paint a value-based colour that the author deliberately replaced.
|
|
1155
1396
|
*
|
|
1156
1397
|
* The backend owns this evaluation and ships the winner as `color` on
|
|
1157
1398
|
* render/value/fetch responses, so callers must prefer that resolved colour.
|
|
1158
|
-
* This exists for the surfaces that hold a raw
|
|
1159
|
-
* — the property-form preview, and catalog reads that never went through
|
|
1160
|
-
* value response.
|
|
1399
|
+
* This exists for the surfaces that hold a raw configuration and no resolved
|
|
1400
|
+
* colour — the property-form preview, and catalog reads that never went through
|
|
1401
|
+
* a value response.
|
|
1161
1402
|
*/
|
|
1162
1403
|
declare function resolvePercentageColor(value: unknown, source?: PercentageColorSource | null): string | null;
|
|
1163
1404
|
|
|
@@ -1209,7 +1450,7 @@ declare function getEntitySectionTitle(section: EntityData | null | undefined, l
|
|
|
1209
1450
|
declare class EntityPreview {
|
|
1210
1451
|
private readonly transloco;
|
|
1211
1452
|
readonly data: _angular_core.InputSignal<EntityData>;
|
|
1212
|
-
readonly attachmentShape: _angular_core.InputSignal<"
|
|
1453
|
+
readonly attachmentShape: _angular_core.InputSignal<"compact" | "default">;
|
|
1213
1454
|
private readonly activeLang;
|
|
1214
1455
|
/**
|
|
1215
1456
|
* The admin-authored note for the active language, or `''` when the property
|
|
@@ -1219,14 +1460,20 @@ declare class EntityPreview {
|
|
|
1219
1460
|
* `mt-entity-preview` usages in the app.
|
|
1220
1461
|
*/
|
|
1221
1462
|
readonly infoText: _angular_core.Signal<string>;
|
|
1222
|
-
readonly comparisonKind: _angular_core.Signal<"
|
|
1463
|
+
readonly comparisonKind: _angular_core.Signal<"EntityList" | "Value" | null>;
|
|
1223
1464
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<EntityPreview, never>;
|
|
1224
1465
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<EntityPreview, "mt-entity-preview", never, { "data": { "alias": "data"; "required": true; "isSignal": true; }; "attachmentShape": { "alias": "attachmentShape"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
1225
1466
|
}
|
|
1226
1467
|
|
|
1468
|
+
/**
|
|
1469
|
+
* Owns the view types that render their own nested properties *through*
|
|
1470
|
+
* `EntityValuePreview`. Routing them from inside that component instead would
|
|
1471
|
+
* make the two files import each other, so they branch here and everything
|
|
1472
|
+
* else is delegated.
|
|
1473
|
+
*/
|
|
1227
1474
|
declare class EntityPreviewBody {
|
|
1228
1475
|
readonly data: _angular_core.InputSignal<EntityData>;
|
|
1229
|
-
readonly attachmentShape: _angular_core.InputSignal<"
|
|
1476
|
+
readonly attachmentShape: _angular_core.InputSignal<"compact" | "default">;
|
|
1230
1477
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<EntityPreviewBody, never>;
|
|
1231
1478
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<EntityPreviewBody, "mt-entity-preview-body", never, { "data": { "alias": "data"; "required": true; "isSignal": true; }; "attachmentShape": { "alias": "attachmentShape"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
1232
1479
|
}
|
|
@@ -1298,7 +1545,7 @@ declare class EntitiesPreview {
|
|
|
1298
1545
|
private readonly transloco;
|
|
1299
1546
|
/** Array of entity data to display */
|
|
1300
1547
|
readonly entities: _angular_core.InputSignal<EntityData[]>;
|
|
1301
|
-
readonly attachmentShape: _angular_core.InputSignal<"
|
|
1548
|
+
readonly attachmentShape: _angular_core.InputSignal<"compact" | "default">;
|
|
1302
1549
|
/**
|
|
1303
1550
|
* Soft "stack every field full-width when the host is narrower than the
|
|
1304
1551
|
* 24-column grid reads well" behavior (the ≤400px container-query fallback,
|
|
@@ -1476,5 +1723,5 @@ declare class FitText {
|
|
|
1476
1723
|
|
|
1477
1724
|
declare function sharedActiveLang(transloco: TranslocoService): Signal<string>;
|
|
1478
1725
|
|
|
1479
|
-
export { CONNECTION_KEY_SEPARATOR, CURRENCY_COMPACT_THRESHOLD, ComparisonEntityList, ComparisonValue, DEFAULT_PHASE_GATE_COLOR, ENTITY_EMPTY_VALUE_PLACEHOLDER, EntitiesManage, EntitiesPreview, EntitiesResizeBase, EntityAttachment, EntityCheckbox, EntityConnection, EntityCurrency, EntityDate, EntityField, EntityIcon, EntityLeafDetails, EntityLocation, EntityLongText, EntityLookup, EntityLookupModuleCheckList, EntityPercentage, EntityPhaseGate, EntityPreview, EntityPreviewBody, EntityScheduleItem, EntityStatus, EntityText, EntityUser, FitText, LEAF_DETAILS_KEY_SEPARATOR, LEAF_PHASES_KEY_SEPARATOR, SECTION_KEY_PREFIX, buildConnectionKey, buildDisplayEntities, buildSectionKey, compactCurrencyDisplay, currencyUnitOf, displayOrPlaceholder, expandConnectionEntity, expandLeafDetailsEntity, extractDisplayText, getEntitySectionTitle, groupEntitiesIntoSections, isConnectionSyntheticKey, isEntityAlignEnd, isEntityLabelHidden, isEntitySection, isLeafDetailsCatalogConfiguration, isLeafDetailsCollectionValue, isLeafDetailsRuntimeValue, isLeafDetailsSyntheticKey, isLeafDetailsValue, isLeafPhasesSyntheticKey, isLeafSyntheticKey, isSectionKey, isValueMissing, matchesPercentageColorRule, normalizeConnectionSourceLevels, normalizeNumerals, parseCurrencyAmount, resolveConnectionLevelName, resolveEntityInfo, resolveEntityLabelPosition, resolveLocalizedLabel, resolvePercentageColor, serializeEntityRawValue, sharedActiveLang, splitConnectionKey, splitLeafKey };
|
|
1480
|
-
export type { ComparisonValueSide, ConnectionCatalogConfiguration, ConnectionLevelSavedConfig, ConnectionSourceLevelConfig, EntityAttachmentItemValue, EntityAttachmentValue, EntityBaseConfig, EntityClickEvent, EntityComparisonField, EntityComparisonOperation, EntityConfiguration, EntityConnectionConfig, EntityConnectionSourceValue, EntityConnectionValue, EntityData, EntityLabelPosition, EntityLeafDetailsConfig, EntityListComparison, EntityListComparisonRow, EntityLocationValue, EntityLookupCheckListItem, EntityLookupCheckListPropValue, EntityLookupCheckListValue, EntityLookupValue, EntityMultiLookupValue, EntityMultiUserValue, EntityNestedPropertyMeta, EntityPercentageConfig, EntityPhaseGateValue, EntityPropertyConfiguration, EntityResizeEvent, EntityScheduleItemValue, EntitySectionConfig, EntitySectionGroup, EntitySectionLabel, EntitySize, EntityStatusValue, EntityTranslatableTextValue, EntityUserConfig, EntityUserValue, EntityViewType, LeafDetailsBadgeKind, LeafDetailsCatalogConfiguration, LeafDetailsCatalogLevelValue, LeafDetailsCatalogPhaseValue, LeafDetailsCatalogStatusValue, LeafDetailsEntityCollectionValue, LeafDetailsEntityValue, LeafDetailsPhaseSummary, LeafDetailsRuntimeChildSchema, LeafDetailsRuntimePhaseCount, LeafDetailsRuntimePhaseDetails, LeafDetailsRuntimeStatusCount, LeafDetailsRuntimeStatusDetails, LeafDetailsRuntimeValue, LeafDetailsStatusSummary, LeafLevelSavedConfig, LeafPhaseSavedConfig, PercentageColorRule, PercentageColorSource, PropertyValueComparison, ValueComparison };
|
|
1726
|
+
export { CONNECTION_KEY_SEPARATOR, CURRENCY_COMPACT_THRESHOLD, ComparisonEntityList, ComparisonValue, DEFAULT_PHASE_GATE_COLOR, ENTITY_EMPTY_VALUE_PLACEHOLDER, EntitiesManage, EntitiesPreview, EntitiesResizeBase, EntityAttachment, EntityCheckbox, EntityConnection, EntityCurrency, EntityDate, EntityField, EntityIcon, EntityLeafDetails, EntityListDrawer, EntityListPreview, EntityLocation, EntityLongText, EntityLookup, EntityLookupModuleCheckList, EntityPercentage, EntityPhaseGate, EntityPreview, EntityPreviewBody, EntityScheduleItem, EntityStatus, EntityText, EntityUser, FitText, LEAF_DETAILS_KEY_SEPARATOR, LEAF_PHASES_KEY_SEPARATOR, SECTION_KEY_PREFIX, buildConnectionKey, buildDisplayEntities, buildEntityListRows, buildSectionKey, compactCurrencyDisplay, currencyUnitOf, displayOrPlaceholder, expandConnectionEntity, expandLeafDetailsEntity, extractDisplayText, getEntitySectionTitle, groupEntitiesIntoSections, humanizeEntityListKey, isConnectionSyntheticKey, isDynamicPercentageColorSource, isEntityAlignEnd, isEntityLabelHidden, isEntitySection, isLeafDetailsCatalogConfiguration, isLeafDetailsCollectionValue, isLeafDetailsRuntimeValue, isLeafDetailsSyntheticKey, isLeafDetailsValue, isLeafPhasesSyntheticKey, isLeafSyntheticKey, isSectionKey, isValueMissing, matchesPercentageColorRule, normalizeConnectionSourceLevels, normalizeNumerals, parseCurrencyAmount, resolveConnectionLevelName, resolveEntityInfo, resolveEntityLabelPosition, resolveLocalizedLabel, resolvePercentageColor, resolvePercentageColorPropertyRef, serializeEntityRawValue, sharedActiveLang, splitConnectionKey, splitLeafKey, summarizeEntityListRows };
|
|
1727
|
+
export type { ComparisonValueSide, ConnectionCatalogConfiguration, ConnectionLevelSavedConfig, ConnectionSourceLevelConfig, EntityAttachmentItemValue, EntityAttachmentValue, EntityBaseConfig, EntityClickEvent, EntityComparisonField, EntityComparisonOperation, EntityConfiguration, EntityConnectionConfig, EntityConnectionSourceValue, EntityConnectionValue, EntityData, EntityLabelPosition, EntityLeafDetailsConfig, EntityListComparison, EntityListComparisonRow, EntityListEntityValue, EntityListInlineFieldMeta, EntityListRenderedRow, EntityListRowValue, EntityListValueItem, EntityLocationValue, EntityLookupCheckListItem, EntityLookupCheckListPropValue, EntityLookupCheckListValue, EntityLookupValue, EntityMultiLookupValue, EntityMultiUserValue, EntityNestedPropertyMeta, EntityPercentageConfig, EntityPhaseGateValue, EntityPropertyConfiguration, EntityResizeEvent, EntityScheduleItemValue, EntitySectionConfig, EntitySectionGroup, EntitySectionLabel, EntitySize, EntityStatusValue, EntityTranslatableTextValue, EntityUserConfig, EntityUserValue, EntityViewType, LeafDetailsBadgeKind, LeafDetailsCatalogConfiguration, LeafDetailsCatalogLevelValue, LeafDetailsCatalogPhaseValue, LeafDetailsCatalogStatusValue, LeafDetailsEntityCollectionValue, LeafDetailsEntityValue, LeafDetailsPhaseSummary, LeafDetailsRuntimeChildSchema, LeafDetailsRuntimePhaseCount, LeafDetailsRuntimePhaseDetails, LeafDetailsRuntimeStatusCount, LeafDetailsRuntimeStatusDetails, LeafDetailsRuntimeValue, LeafDetailsStatusSummary, LeafLevelSavedConfig, LeafPhaseSavedConfig, PercentageColorMode, PercentageColorPropertyRef, PercentageColorRule, PercentageColorSource, PropertyValueComparison, ValueComparison };
|
|
@@ -391,7 +391,7 @@ declare class Table {
|
|
|
391
391
|
* the query it actually sent.
|
|
392
392
|
*/
|
|
393
393
|
sortField: _angular_core.ModelSignal<string | null>;
|
|
394
|
-
sortDirection: _angular_core.ModelSignal<"
|
|
394
|
+
sortDirection: _angular_core.ModelSignal<"desc" | "asc" | null>;
|
|
395
395
|
confirmationService: ConfirmationService;
|
|
396
396
|
private readonly exportService;
|
|
397
397
|
private readonly transloco;
|