@masterteam/components 0.0.316 → 0.0.318
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 +3 -0
- package/assets/i18n/en.json +3 -0
- package/fesm2022/masterteam-components-client-page-menu.mjs +22 -5
- package/fesm2022/masterteam-components-client-page-menu.mjs.map +1 -1
- package/fesm2022/masterteam-components-client-page.mjs +5 -3
- package/fesm2022/masterteam-components-client-page.mjs.map +1 -1
- package/fesm2022/masterteam-components-entities.mjs +293 -31
- package/fesm2022/masterteam-components-entities.mjs.map +1 -1
- package/fesm2022/masterteam-components-table.mjs +69 -7
- package/fesm2022/masterteam-components-table.mjs.map +1 -1
- package/package.json +1 -1
- package/types/masterteam-components-client-page-menu.d.ts +22 -2
- package/types/masterteam-components-client-page.d.ts +3 -1
- package/types/masterteam-components-entities.d.ts +146 -5
- package/types/masterteam-components-table.d.ts +12 -1
package/package.json
CHANGED
|
@@ -5,6 +5,17 @@ interface ClientPageMenuItem {
|
|
|
5
5
|
icon: string;
|
|
6
6
|
title: string;
|
|
7
7
|
subtitle?: string;
|
|
8
|
+
/**
|
|
9
|
+
* Secondary line rendered under `title` in the menu row itself. Separate
|
|
10
|
+
* from `subtitle`, which only feeds `mt-client-page`'s header description.
|
|
11
|
+
*/
|
|
12
|
+
caption?: string;
|
|
13
|
+
/**
|
|
14
|
+
* Top-level only. Consecutive items sharing the same `section` render
|
|
15
|
+
* together inside a titled card (e.g. pinned shortcuts above the main list).
|
|
16
|
+
* Items without it render as plain rows, so existing usage is unaffected.
|
|
17
|
+
*/
|
|
18
|
+
section?: string;
|
|
8
19
|
color: string;
|
|
9
20
|
count?: number;
|
|
10
21
|
key: string;
|
|
@@ -17,6 +28,11 @@ interface ClientPageMenuItem {
|
|
|
17
28
|
/** True while the consumer is fetching this item's children; renders skeleton rows in place of `children`. */
|
|
18
29
|
childrenLoading?: boolean;
|
|
19
30
|
}
|
|
31
|
+
/** A run of consecutive top-level items, grouped by their shared `section` (if any). */
|
|
32
|
+
interface ClientPageMenuGroup {
|
|
33
|
+
section?: string;
|
|
34
|
+
items: ClientPageMenuItem[];
|
|
35
|
+
}
|
|
20
36
|
declare class ClientPageMenu implements OnDestroy {
|
|
21
37
|
private syncFrameId;
|
|
22
38
|
/** List of menu items to display */
|
|
@@ -25,6 +41,10 @@ declare class ClientPageMenu implements OnDestroy {
|
|
|
25
41
|
readonly loading: _angular_core.InputSignal<boolean>;
|
|
26
42
|
/** Currently selected menu item */
|
|
27
43
|
readonly selectedItem: _angular_core.InputSignal<ClientPageMenuItem | null>;
|
|
44
|
+
/** Shows an expand/collapse chevron on expandable rows (opt-in) */
|
|
45
|
+
readonly showExpandIcon: _angular_core.InputSignal<boolean>;
|
|
46
|
+
/** `menuItems()` split into runs of consecutive items sharing a `section` */
|
|
47
|
+
readonly groups: _angular_core.Signal<ClientPageMenuGroup[]>;
|
|
28
48
|
/** Emitted when a menu item is clicked */
|
|
29
49
|
readonly menuItemClick: _angular_core.OutputEmitterRef<ClientPageMenuItem>;
|
|
30
50
|
/**
|
|
@@ -48,8 +68,8 @@ declare class ClientPageMenu implements OnDestroy {
|
|
|
48
68
|
private queueSelectedItemSync;
|
|
49
69
|
private syncSelectedItemIntoView;
|
|
50
70
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ClientPageMenu, never>;
|
|
51
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ClientPageMenu, "mt-client-page-menu", never, { "menuItems": { "alias": "menuItems"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "selectedItem": { "alias": "selectedItem"; "required": false; "isSignal": true; }; }, { "menuItemClick": "menuItemClick"; "loadChildren": "loadChildren"; }, never, never, true, never>;
|
|
71
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ClientPageMenu, "mt-client-page-menu", never, { "menuItems": { "alias": "menuItems"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "selectedItem": { "alias": "selectedItem"; "required": false; "isSignal": true; }; "showExpandIcon": { "alias": "showExpandIcon"; "required": false; "isSignal": true; }; }, { "menuItemClick": "menuItemClick"; "loadChildren": "loadChildren"; }, never, never, true, never>;
|
|
52
72
|
}
|
|
53
73
|
|
|
54
74
|
export { ClientPageMenu };
|
|
55
|
-
export type { ClientPageMenuItem };
|
|
75
|
+
export type { ClientPageMenuGroup, ClientPageMenuItem };
|
|
@@ -21,6 +21,8 @@ declare class ClientPage implements OnDestroy {
|
|
|
21
21
|
readonly menuItems: _angular_core.InputSignal<ClientPageMenuItem[]>;
|
|
22
22
|
/** Whether menu items are loading */
|
|
23
23
|
readonly menuItemsLoading: _angular_core.InputSignal<boolean>;
|
|
24
|
+
/** Shows an expand/collapse chevron on expandable menu rows (opt-in) */
|
|
25
|
+
readonly showExpandIcon: _angular_core.InputSignal<boolean>;
|
|
24
26
|
/** Key of the active menu item (defaults to first item) */
|
|
25
27
|
readonly activeItem: _angular_core.InputSignal<string | undefined>;
|
|
26
28
|
/** Whether the sidebar menu is collapsed (two-way bindable) */
|
|
@@ -109,7 +111,7 @@ declare class ClientPage implements OnDestroy {
|
|
|
109
111
|
private readPersistedState;
|
|
110
112
|
private writePersistedState;
|
|
111
113
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ClientPage, never>;
|
|
112
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ClientPage, "mt-client-page", never, { "menuIcon": { "alias": "menuIcon"; "required": false; "isSignal": true; }; "menuTitle": { "alias": "menuTitle"; "required": false; "isSignal": true; }; "menuItems": { "alias": "menuItems"; "required": false; "isSignal": true; }; "menuItemsLoading": { "alias": "menuItemsLoading"; "required": false; "isSignal": true; }; "activeItem": { "alias": "activeItem"; "required": false; "isSignal": true; }; "collapsed": { "alias": "collapsed"; "required": false; "isSignal": true; }; "resizable": { "alias": "resizable"; "required": false; "isSignal": true; }; "storageKey": { "alias": "storageKey"; "required": false; "isSignal": true; }; "storageMode": { "alias": "storageMode"; "required": false; "isSignal": true; }; "minSidebarWidth": { "alias": "minSidebarWidth"; "required": false; "isSignal": true; }; "maxSidebarWidth": { "alias": "maxSidebarWidth"; "required": false; "isSignal": true; }; "defaultSidebarWidth": { "alias": "defaultSidebarWidth"; "required": false; "isSignal": true; }; }, { "collapsed": "collapsedChange"; "menuItemClick": "menuItemClick"; "loadChildren": "loadChildren"; }, ["headerEnd"], ["*"], true, never>;
|
|
114
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ClientPage, "mt-client-page", never, { "menuIcon": { "alias": "menuIcon"; "required": false; "isSignal": true; }; "menuTitle": { "alias": "menuTitle"; "required": false; "isSignal": true; }; "menuItems": { "alias": "menuItems"; "required": false; "isSignal": true; }; "menuItemsLoading": { "alias": "menuItemsLoading"; "required": false; "isSignal": true; }; "showExpandIcon": { "alias": "showExpandIcon"; "required": false; "isSignal": true; }; "activeItem": { "alias": "activeItem"; "required": false; "isSignal": true; }; "collapsed": { "alias": "collapsed"; "required": false; "isSignal": true; }; "resizable": { "alias": "resizable"; "required": false; "isSignal": true; }; "storageKey": { "alias": "storageKey"; "required": false; "isSignal": true; }; "storageMode": { "alias": "storageMode"; "required": false; "isSignal": true; }; "minSidebarWidth": { "alias": "minSidebarWidth"; "required": false; "isSignal": true; }; "maxSidebarWidth": { "alias": "maxSidebarWidth"; "required": false; "isSignal": true; }; "defaultSidebarWidth": { "alias": "defaultSidebarWidth"; "required": false; "isSignal": true; }; }, { "collapsed": "collapsedChange"; "menuItemClick": "menuItemClick"; "loadChildren": "loadChildren"; }, ["headerEnd"], ["*"], true, never>;
|
|
113
115
|
}
|
|
114
116
|
|
|
115
117
|
export { ClientPage };
|
|
@@ -106,7 +106,13 @@ type EntityViewType = 'Text' | 'LongText' | 'Date' | 'DateTime'
|
|
|
106
106
|
* Calculated, read-only lookup resolved by the backend to the schema phase
|
|
107
107
|
* gate the record currently sits on. Never editable at runtime.
|
|
108
108
|
*/
|
|
109
|
-
| 'PhaseGate'
|
|
109
|
+
| 'PhaseGate'
|
|
110
|
+
/**
|
|
111
|
+
* Calculated, read-only KPI performance — a semicircle gauge (ported from
|
|
112
|
+
* SPlus v3's `app-performance-gauge`). The value is an
|
|
113
|
+
* {@link EntityPerformanceScoreValue}; never editable at runtime.
|
|
114
|
+
*/
|
|
115
|
+
| 'PerformanceScore' | 'Attachment' | 'Location' | 'LookupMatrix' | 'LookupModuleCheckList' | 'LeafDetails' | 'Connection' | 'ScheduleItemSelector'
|
|
110
116
|
/**
|
|
111
117
|
* A nested list of related rows. Read-only here: the editable runtime is
|
|
112
118
|
* `mt-entity-list-field`, which fetches its own rows; this view type is what
|
|
@@ -239,6 +245,16 @@ interface EntityPercentageConfig extends EntityBaseConfig {
|
|
|
239
245
|
*/
|
|
240
246
|
defaultColor?: string | null;
|
|
241
247
|
}
|
|
248
|
+
/**
|
|
249
|
+
* How wide a `PerformanceScore` gauge may grow inside its cell. The gauge is
|
|
250
|
+
* centred and shrinks with a narrower cell; this only caps it. Absent ⇒
|
|
251
|
+
* `medium`.
|
|
252
|
+
*/
|
|
253
|
+
type EntityPerformanceScoreChartSize = 'small' | 'medium' | 'large' | 'full';
|
|
254
|
+
interface EntityPerformanceScoreConfig extends EntityBaseConfig {
|
|
255
|
+
/** Set from the customization drawer. */
|
|
256
|
+
chartSize?: EntityPerformanceScoreChartSize;
|
|
257
|
+
}
|
|
242
258
|
interface LeafLevelSavedConfig {
|
|
243
259
|
/** Position order for this level entity in the preview grid */
|
|
244
260
|
order: number;
|
|
@@ -338,7 +354,7 @@ interface EntitySectionConfig extends EntityBaseConfig {
|
|
|
338
354
|
/** Section heading, localized. Empty/absent renders a header-less box. */
|
|
339
355
|
label?: EntitySectionLabel;
|
|
340
356
|
}
|
|
341
|
-
type EntityConfiguration = EntityBaseConfig | EntityUserConfig | EntityPercentageConfig | EntityLeafDetailsConfig | EntityConnectionConfig | EntitySectionConfig;
|
|
357
|
+
type EntityConfiguration = EntityBaseConfig | EntityUserConfig | EntityPercentageConfig | EntityPerformanceScoreConfig | EntityLeafDetailsConfig | EntityConnectionConfig | EntitySectionConfig;
|
|
342
358
|
/** Value shape for a translatable Text/LongText property: `{ display, ar?, en? }`. */
|
|
343
359
|
interface EntityTranslatableTextValue extends EntitySectionLabel {
|
|
344
360
|
display: string;
|
|
@@ -377,6 +393,33 @@ interface EntityPhaseGateValue {
|
|
|
377
393
|
*/
|
|
378
394
|
color?: string;
|
|
379
395
|
}
|
|
396
|
+
/**
|
|
397
|
+
* One performance band of a `PerformanceScore` gauge — a status item with the
|
|
398
|
+
* range of performance it covers. Bounds are percentages; a missing `from`
|
|
399
|
+
* starts at the gauge minimum and a missing `to` runs to the gauge maximum.
|
|
400
|
+
*/
|
|
401
|
+
interface EntityPerformanceScoreStatus {
|
|
402
|
+
key: string;
|
|
403
|
+
display: string;
|
|
404
|
+
color: string;
|
|
405
|
+
from?: number | null;
|
|
406
|
+
to?: number | null;
|
|
407
|
+
}
|
|
408
|
+
/**
|
|
409
|
+
* A `PerformanceScore` value, calculated by the backend.
|
|
410
|
+
*
|
|
411
|
+
* - `performance` — the score, in percent. May exceed 100 or fall below 0; the
|
|
412
|
+
* gauge widens its scale to the outermost band, then clamps the marker.
|
|
413
|
+
* - `status` — the band the score currently sits in. Absent → resolved here
|
|
414
|
+
* from `statuses` by range.
|
|
415
|
+
* - `statuses` — every band, drawn as coloured arc segments. Absent/empty → a
|
|
416
|
+
* single arc painted in the status colour.
|
|
417
|
+
*/
|
|
418
|
+
interface EntityPerformanceScoreValue {
|
|
419
|
+
performance: number | string | null;
|
|
420
|
+
status?: EntityPerformanceScoreStatus | null;
|
|
421
|
+
statuses?: EntityPerformanceScoreStatus[] | null;
|
|
422
|
+
}
|
|
380
423
|
interface EntityUserValue {
|
|
381
424
|
id?: string;
|
|
382
425
|
userName?: string;
|
|
@@ -752,7 +795,7 @@ interface EntityData {
|
|
|
752
795
|
* props have no label and no view type to render with.
|
|
753
796
|
*/
|
|
754
797
|
nestedProperties?: EntityNestedPropertyMeta[];
|
|
755
|
-
value: string | EntityTranslatableTextValue | EntityStatusValue | EntityUserValue | EntityMultiUserValue | EntityLookupValue | EntityMultiLookupValue | EntityPhaseGateValue | EntityAttachmentValue | EntityLocationValue | EntityConnectionValue | EntityScheduleItemValue[] | EntityLookupCheckListValue | EntityLookupCheckListItem[] | LeafDetailsEntityValue | LeafDetailsEntityCollectionValue | LeafDetailsRuntimeValue | EntityListEntityValue;
|
|
798
|
+
value: string | EntityTranslatableTextValue | EntityStatusValue | EntityUserValue | EntityMultiUserValue | EntityLookupValue | EntityMultiLookupValue | EntityPhaseGateValue | EntityPerformanceScoreValue | EntityAttachmentValue | EntityLocationValue | EntityConnectionValue | EntityScheduleItemValue[] | EntityLookupCheckListValue | EntityLookupCheckListItem[] | LeafDetailsEntityValue | LeafDetailsEntityCollectionValue | LeafDetailsRuntimeValue | EntityListEntityValue;
|
|
756
799
|
viewType: EntityViewType;
|
|
757
800
|
type?: string;
|
|
758
801
|
configuration?: EntityConfiguration;
|
|
@@ -1162,6 +1205,104 @@ declare class EntityPhaseGate {
|
|
|
1162
1205
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<EntityPhaseGate, "mt-entity-phase-gate", never, { "data": { "alias": "data"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
1163
1206
|
}
|
|
1164
1207
|
|
|
1208
|
+
interface GaugeBand {
|
|
1209
|
+
key: string;
|
|
1210
|
+
path: string;
|
|
1211
|
+
color: string;
|
|
1212
|
+
opacity: number;
|
|
1213
|
+
}
|
|
1214
|
+
interface GaugeLabel {
|
|
1215
|
+
key: string;
|
|
1216
|
+
text: string;
|
|
1217
|
+
x: number;
|
|
1218
|
+
y: number;
|
|
1219
|
+
anchor: 'start' | 'middle' | 'end';
|
|
1220
|
+
}
|
|
1221
|
+
/**
|
|
1222
|
+
* Preview renderer for `PerformanceScore` properties — a KPI's performance as a
|
|
1223
|
+
* semicircle gauge, ported from SPlus v3's `app-performance-gauge`.
|
|
1224
|
+
*
|
|
1225
|
+
* Each status band is an arc segment; the band the score sits in is drawn at
|
|
1226
|
+
* full strength and the rest are faded. The marker rides the arc at the score,
|
|
1227
|
+
* the score itself sits in the middle, and the current status is a pill below.
|
|
1228
|
+
*
|
|
1229
|
+
* Geometry is computed, not measured: the SVG has a fixed `viewBox` and
|
|
1230
|
+
* `width: 100%` (capped by `configuration.chartSize`, centred), so it scales with its grid
|
|
1231
|
+
* cell without a `ResizeObserver` — a card grid mounts one of these per record.
|
|
1232
|
+
*/
|
|
1233
|
+
declare class EntityPerformanceScore {
|
|
1234
|
+
private readonly activeLang;
|
|
1235
|
+
/** Full entity data object */
|
|
1236
|
+
readonly data: _angular_core.InputSignal<EntityData | undefined>;
|
|
1237
|
+
/** Individual inputs (used when data is not provided) */
|
|
1238
|
+
readonly name: _angular_core.InputSignal<string | undefined>;
|
|
1239
|
+
readonly value: _angular_core.InputSignal<EntityPerformanceScoreValue | undefined>;
|
|
1240
|
+
readonly displayName: _angular_core.Signal<string>;
|
|
1241
|
+
/** The display configuration's `chartSize`, as a CSS `max-width`. */
|
|
1242
|
+
readonly chartMaxWidth: _angular_core.Signal<string>;
|
|
1243
|
+
readonly scoreValue: _angular_core.Signal<EntityPerformanceScoreValue | null>;
|
|
1244
|
+
readonly performance: _angular_core.Signal<number | null>;
|
|
1245
|
+
readonly hasPerformance: _angular_core.Signal<boolean>;
|
|
1246
|
+
/** Bands with at least one bound, ordered along the arc. */
|
|
1247
|
+
private readonly statuses;
|
|
1248
|
+
/** 0–100, widened to the outermost band bound. */
|
|
1249
|
+
private readonly scale;
|
|
1250
|
+
/** See {@link resolvePerformanceScoreStatus}; the table filters by it too. */
|
|
1251
|
+
readonly status: _angular_core.Signal<EntityPerformanceScoreStatus | null>;
|
|
1252
|
+
readonly accentColor: _angular_core.Signal<string>;
|
|
1253
|
+
readonly bands: _angular_core.Signal<GaugeBand[]>;
|
|
1254
|
+
/** A label at every band start except the gauge minimum. */
|
|
1255
|
+
readonly labels: _angular_core.Signal<GaugeLabel[]>;
|
|
1256
|
+
/**
|
|
1257
|
+
* Fitted to what is actually drawn, so the arc fills its cell instead of
|
|
1258
|
+
* reserving label room it may not need. Kept symmetric about the arc's
|
|
1259
|
+
* centre so the gauge stays centred over the status pill.
|
|
1260
|
+
*/
|
|
1261
|
+
readonly viewBox: _angular_core.Signal<string>;
|
|
1262
|
+
readonly marker: _angular_core.Signal<{
|
|
1263
|
+
x: number;
|
|
1264
|
+
y: number;
|
|
1265
|
+
} | null>;
|
|
1266
|
+
readonly performanceLabel: _angular_core.Signal<string>;
|
|
1267
|
+
readonly statusLabel: _angular_core.Signal<string>;
|
|
1268
|
+
/** Same tinted badge as `mt-entity-status`, so both read as one status. */
|
|
1269
|
+
readonly statusPillStyle: _angular_core.Signal<{
|
|
1270
|
+
color: string;
|
|
1271
|
+
backgroundColor: string;
|
|
1272
|
+
}>;
|
|
1273
|
+
/** Score → position along the arc, clamped to its ends. */
|
|
1274
|
+
private toFraction;
|
|
1275
|
+
/** Arc fraction → angle; 0 is the left end, 1 the right. */
|
|
1276
|
+
private toAngle;
|
|
1277
|
+
private pointAt;
|
|
1278
|
+
private arcPath;
|
|
1279
|
+
/** Same locale-aware formatting as `mt-entity-percentage`. */
|
|
1280
|
+
private formatPercent;
|
|
1281
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<EntityPerformanceScore, never>;
|
|
1282
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<EntityPerformanceScore, "mt-entity-performance-score", never, { "data": { "alias": "data"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
1283
|
+
}
|
|
1284
|
+
|
|
1285
|
+
/**
|
|
1286
|
+
* Shared reading of a `PerformanceScore` value. The gauge draws from it and the
|
|
1287
|
+
* table resolver filters by it, so a card's pill and the filter it sets can
|
|
1288
|
+
* never disagree about which status a record is in.
|
|
1289
|
+
*/
|
|
1290
|
+
|
|
1291
|
+
/** Every `chartSize`, smallest first — the order the drawer offers them in. */
|
|
1292
|
+
declare const PERFORMANCE_SCORE_CHART_SIZES: readonly EntityPerformanceScoreChartSize[];
|
|
1293
|
+
/** The cap applied when a display configuration carries no `chartSize`. */
|
|
1294
|
+
declare const DEFAULT_PERFORMANCE_SCORE_CHART_SIZE: EntityPerformanceScoreChartSize;
|
|
1295
|
+
/** The score as a number, or `null` when there is no measurement. */
|
|
1296
|
+
declare function parsePerformanceScore(raw: unknown): number | null;
|
|
1297
|
+
/** Bands with at least one bound, ordered along the arc. */
|
|
1298
|
+
declare function getPerformanceScoreBands(value: EntityPerformanceScoreValue | null | undefined): EntityPerformanceScoreStatus[];
|
|
1299
|
+
/**
|
|
1300
|
+
* The backend's status, else the band whose range holds the score. A missing
|
|
1301
|
+
* bound is open-ended here — unlike on the arc, where it stops at the scale —
|
|
1302
|
+
* so a 120% score still lands in a `from: 95` band.
|
|
1303
|
+
*/
|
|
1304
|
+
declare function resolvePerformanceScoreStatus(value: EntityPerformanceScoreValue | null | undefined): EntityPerformanceScoreStatus | null;
|
|
1305
|
+
|
|
1165
1306
|
type AttachmentReference = EntityAttachmentItemValue | string;
|
|
1166
1307
|
declare class EntityAttachment {
|
|
1167
1308
|
readonly data: _angular_core.InputSignal<EntityData | undefined>;
|
|
@@ -2044,5 +2185,5 @@ declare class FitText {
|
|
|
2044
2185
|
|
|
2045
2186
|
declare function sharedActiveLang(transloco: TranslocoService): Signal<string>;
|
|
2046
2187
|
|
|
2047
|
-
export { CONNECTION_KEY_SEPARATOR, CURRENCY_COMPACT_THRESHOLD, ComparisonEntityList, ComparisonValue, DEFAULT_PHASE_GATE_COLOR, ENTITY_EMPTY_VALUE_PLACEHOLDER, ENTITY_LIST_TABLE_COMPONENT, EntitiesManage, EntitiesPreview, EntitiesResizeBase, EntityAttachment, EntityCheckbox, EntityConnection, EntityCurrency, EntityDate, EntityField, EntityIcon, EntityLeafDetails, EntityListDrawer, EntityListPreview, EntityLocation, EntityLongText, EntityLookup, EntityLookupModuleCheckList, EntityPercentage, EntityPhaseGate, EntityPreview, EntityPreviewBody, EntityRuntimeContextStore, 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, isEntityAlignEnd, isEntityLabelHidden, isEntityListLocalDocument, isEntityListSelectionDocument, isEntitySection, isLeafDetailsCatalogConfiguration, isLeafDetailsCollectionValue, isLeafDetailsRuntimeValue, isLeafDetailsSyntheticKey, isLeafDetailsValue, isLeafPhasesSyntheticKey, isLeafSyntheticKey, isSectionKey, isValueMissing, localCellsByFieldId, matchesPercentageColorRule, mergeStakeholderNameColumns, mergeStakeholderNameEntities, mergeStakeholderNameRows, normalizeConnectionSourceLevels, normalizeNumerals, parseCurrencyAmount, readEntityValueColor, resolveConnectionLevelName, resolveEntityInfo, resolveEntityLabelPosition, resolveLocalFieldConfiguration, resolveLocalFieldLabel, resolveLocalFieldViewType, resolveLocalizedLabel, resolvePercentageColor, serializeEntityRawValue, sharedActiveLang, sortLocalRows, splitConnectionKey, splitLeafKey, summarizeEntityListRows, visibleLocalSchemaFields };
|
|
2048
|
-
export type { ComparisonValueSide, ConnectionCatalogConfiguration, ConnectionLevelSavedConfig, ConnectionSourceLevelConfig, EntityAttachmentItemValue, EntityAttachmentValue, EntityBaseConfig, EntityClickEvent, EntityComparisonField, EntityComparisonOperation, EntityConfiguration, EntityConnectionConfig, EntityConnectionSourceValue, EntityConnectionValue, EntityData, EntityLabelPosition, EntityLeafDetailsConfig, EntityListComparison, EntityListComparisonRow, EntityListEntityValue, EntityListInlineFieldMeta, EntityListLocalCell, EntityListLocalDocument, EntityListLocalFieldDefinition, EntityListLocalFieldWidth, EntityListLocalRow, EntityListLocalSchema, EntityListLocalSchemaField, EntityListRenderedRow, EntityListRowValue, EntityListSelectionDocument, EntityListSelectionRecord, EntityListSelectionRecordValue, EntityListTableHost, EntityListTranslatable, EntityListValueItem, EntityLocationValue, EntityLookupCheckListItem, EntityLookupCheckListPropValue, EntityLookupCheckListValue, EntityLookupValue, EntityMultiLookupValue, EntityMultiUserValue, EntityNestedPropertyMeta, EntityPercentageConfig, EntityPhaseGateValue, EntityPropertyConfiguration, EntityResizeEvent, EntityRuntimeContext, 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 };
|
|
2188
|
+
export { CONNECTION_KEY_SEPARATOR, CURRENCY_COMPACT_THRESHOLD, ComparisonEntityList, ComparisonValue, DEFAULT_PERFORMANCE_SCORE_CHART_SIZE, DEFAULT_PHASE_GATE_COLOR, ENTITY_EMPTY_VALUE_PLACEHOLDER, ENTITY_LIST_TABLE_COMPONENT, EntitiesManage, EntitiesPreview, EntitiesResizeBase, EntityAttachment, EntityCheckbox, EntityConnection, EntityCurrency, EntityDate, EntityField, EntityIcon, EntityLeafDetails, EntityListDrawer, EntityListPreview, EntityLocation, EntityLongText, EntityLookup, EntityLookupModuleCheckList, EntityPercentage, EntityPerformanceScore, EntityPhaseGate, EntityPreview, EntityPreviewBody, EntityRuntimeContextStore, EntityScheduleItem, EntityStatus, EntityText, EntityUser, FitText, LEAF_DETAILS_KEY_SEPARATOR, LEAF_PHASES_KEY_SEPARATOR, PERFORMANCE_SCORE_CHART_SIZES, SECTION_KEY_PREFIX, buildConnectionKey, buildDisplayEntities, buildEntityListRows, buildSectionKey, compactCurrencyDisplay, currencyUnitOf, displayOrPlaceholder, expandConnectionEntity, expandLeafDetailsEntity, extractDisplayText, getEntitySectionTitle, getPerformanceScoreBands, groupEntitiesIntoSections, humanizeEntityListKey, isConnectionSyntheticKey, isEntityAlignEnd, isEntityLabelHidden, isEntityListLocalDocument, isEntityListSelectionDocument, isEntitySection, isLeafDetailsCatalogConfiguration, isLeafDetailsCollectionValue, isLeafDetailsRuntimeValue, isLeafDetailsSyntheticKey, isLeafDetailsValue, isLeafPhasesSyntheticKey, isLeafSyntheticKey, isSectionKey, isValueMissing, localCellsByFieldId, matchesPercentageColorRule, mergeStakeholderNameColumns, mergeStakeholderNameEntities, mergeStakeholderNameRows, normalizeConnectionSourceLevels, normalizeNumerals, parseCurrencyAmount, parsePerformanceScore, readEntityValueColor, resolveConnectionLevelName, resolveEntityInfo, resolveEntityLabelPosition, resolveLocalFieldConfiguration, resolveLocalFieldLabel, resolveLocalFieldViewType, resolveLocalizedLabel, resolvePercentageColor, resolvePerformanceScoreStatus, serializeEntityRawValue, sharedActiveLang, sortLocalRows, splitConnectionKey, splitLeafKey, summarizeEntityListRows, visibleLocalSchemaFields };
|
|
2189
|
+
export type { ComparisonValueSide, ConnectionCatalogConfiguration, ConnectionLevelSavedConfig, ConnectionSourceLevelConfig, EntityAttachmentItemValue, EntityAttachmentValue, EntityBaseConfig, EntityClickEvent, EntityComparisonField, EntityComparisonOperation, EntityConfiguration, EntityConnectionConfig, EntityConnectionSourceValue, EntityConnectionValue, EntityData, EntityLabelPosition, EntityLeafDetailsConfig, EntityListComparison, EntityListComparisonRow, EntityListEntityValue, EntityListInlineFieldMeta, EntityListLocalCell, EntityListLocalDocument, EntityListLocalFieldDefinition, EntityListLocalFieldWidth, EntityListLocalRow, EntityListLocalSchema, EntityListLocalSchemaField, EntityListRenderedRow, EntityListRowValue, EntityListSelectionDocument, EntityListSelectionRecord, EntityListSelectionRecordValue, EntityListTableHost, EntityListTranslatable, EntityListValueItem, EntityLocationValue, EntityLookupCheckListItem, EntityLookupCheckListPropValue, EntityLookupCheckListValue, EntityLookupValue, EntityMultiLookupValue, EntityMultiUserValue, EntityNestedPropertyMeta, EntityPercentageConfig, EntityPerformanceScoreChartSize, EntityPerformanceScoreConfig, EntityPerformanceScoreStatus, EntityPerformanceScoreValue, EntityPhaseGateValue, EntityPropertyConfiguration, EntityResizeEvent, EntityRuntimeContext, 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 };
|
|
@@ -9,6 +9,7 @@ import { TablePageEvent } from 'primeng/table';
|
|
|
9
9
|
import { EntityData, EntityViewType } from '@masterteam/components/entities';
|
|
10
10
|
import { ControlValueAccessor } from '@angular/forms';
|
|
11
11
|
import { Popover } from 'primeng/popover';
|
|
12
|
+
import { ButtonSeverity } from 'primeng/button';
|
|
12
13
|
import { TieredMenu } from 'primeng/tieredmenu';
|
|
13
14
|
|
|
14
15
|
/**
|
|
@@ -860,7 +861,7 @@ declare class TableColumnFilter {
|
|
|
860
861
|
}
|
|
861
862
|
|
|
862
863
|
/** Visual variants for menu-item icon chips. */
|
|
863
|
-
type ActionMenuTone = '
|
|
864
|
+
type ActionMenuTone = 'excel' | 'pdf' | 'indigo' | 'secondary';
|
|
864
865
|
interface TableMenuItem extends MenuItem {
|
|
865
866
|
/** Transloco key resolved in the template so translations stay reactive. */
|
|
866
867
|
labelKey?: string;
|
|
@@ -893,6 +894,16 @@ declare class TableActionsMenu {
|
|
|
893
894
|
protected readonly menu: _angular_core.Signal<TieredMenu | undefined>;
|
|
894
895
|
/** Tailwind classes for flat tone chips, keyed by `iconTone`. */
|
|
895
896
|
protected readonly toneClass: Record<ActionMenuTone, string>;
|
|
897
|
+
/** Brand-coloured chips, which Tailwind's palette cannot name. */
|
|
898
|
+
protected readonly toneChipStyle: Partial<Record<ActionMenuTone, Record<string, string>>>;
|
|
899
|
+
/**
|
|
900
|
+
* The same hues for flat mode, as button severities. Rendered as their own
|
|
901
|
+
* buttons the actions were all `secondary` grey, so export, print and
|
|
902
|
+
* group-by looked identical until hovered. The brand tones keep a fitting
|
|
903
|
+
* severity as the fallback and re-point its tokens (`toneButtonStyle`).
|
|
904
|
+
*/
|
|
905
|
+
protected readonly toneSeverity: Record<ActionMenuTone, ButtonSeverity>;
|
|
906
|
+
protected readonly toneButtonStyle: Partial<Record<ActionMenuTone, Record<string, string>>>;
|
|
896
907
|
protected readonly items: _angular_core.Signal<TableMenuItem[]>;
|
|
897
908
|
/** True while the actions render as individual buttons. */
|
|
898
909
|
protected readonly isFlat: _angular_core.Signal<boolean>;
|