@masterteam/components 0.0.140 → 0.0.141
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/fesm2022/masterteam-components-entities.mjs +40 -3
- package/fesm2022/masterteam-components-entities.mjs.map +1 -1
- package/fesm2022/masterteam-components-select-field.mjs +2 -2
- package/fesm2022/masterteam-components-select-field.mjs.map +1 -1
- package/fesm2022/masterteam-components-tooltip.mjs +9 -5
- package/fesm2022/masterteam-components-tooltip.mjs.map +1 -1
- package/fesm2022/masterteam-components.mjs +262 -72
- package/fesm2022/masterteam-components.mjs.map +1 -1
- package/package.json +1 -1
- package/types/masterteam-components-entities.d.ts +30 -5
|
@@ -5,7 +5,7 @@ import { HttpContext } from '@angular/common/http';
|
|
|
5
5
|
import { MTIcon } from '@masterteam/icons';
|
|
6
6
|
import { CdkDragDrop } from '@angular/cdk/drag-drop';
|
|
7
7
|
|
|
8
|
-
type EntityViewType = 'Text' | 'LongText' | 'Date' | 'DateTime' | 'Percentage' | 'Status' | 'Currency' | 'Checkbox' | 'User' | 'Lookup' | 'Attachment' | 'LookupMatrix';
|
|
8
|
+
type EntityViewType = 'Text' | 'LongText' | 'Date' | 'DateTime' | 'Percentage' | 'Status' | 'Currency' | 'Checkbox' | 'User' | 'Lookup' | 'Attachment' | 'LookupMatrix' | 'LeafDetails';
|
|
9
9
|
type EntityLabelPosition = 'top' | 'bottom';
|
|
10
10
|
/** Entity size – controls column span (1-24) inside a 24-column grid */
|
|
11
11
|
type EntitySize = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24;
|
|
@@ -55,6 +55,19 @@ interface EntityUserValue {
|
|
|
55
55
|
phoneNumber?: string;
|
|
56
56
|
email?: string;
|
|
57
57
|
}
|
|
58
|
+
interface LeafDetailsStatusSummary {
|
|
59
|
+
key: string;
|
|
60
|
+
display: string;
|
|
61
|
+
color: string | null;
|
|
62
|
+
/** Always 0 in preview/configuration context; populated from runtime fetch */
|
|
63
|
+
count: number;
|
|
64
|
+
}
|
|
65
|
+
interface LeafDetailsEntityValue {
|
|
66
|
+
levelId: number;
|
|
67
|
+
levelName: string;
|
|
68
|
+
levelIcon: string;
|
|
69
|
+
statuses: LeafDetailsStatusSummary[];
|
|
70
|
+
}
|
|
58
71
|
interface EntityAttachmentItemValue {
|
|
59
72
|
id?: string;
|
|
60
73
|
name?: string;
|
|
@@ -72,7 +85,7 @@ interface EntityData {
|
|
|
72
85
|
name?: string;
|
|
73
86
|
rawValue?: string;
|
|
74
87
|
order?: number;
|
|
75
|
-
value: string | EntityStatusValue | EntityUserValue | EntityLookupValue | EntityAttachmentValue;
|
|
88
|
+
value: string | EntityStatusValue | EntityUserValue | EntityLookupValue | EntityAttachmentValue | LeafDetailsEntityValue;
|
|
76
89
|
viewType: EntityViewType;
|
|
77
90
|
type?: string;
|
|
78
91
|
configuration?: EntityConfiguration;
|
|
@@ -278,11 +291,23 @@ declare class EntityAttachment {
|
|
|
278
291
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<EntityAttachment, "mt-entity-attachment", never, { "data": { "alias": "data"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "shape": { "alias": "shape"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "endPoint": { "alias": "endPoint"; "required": false; "isSignal": true; }; "context": { "alias": "context"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
279
292
|
}
|
|
280
293
|
|
|
294
|
+
declare class EntityLeafDetails {
|
|
295
|
+
readonly data: _angular_core.InputSignal<EntityData>;
|
|
296
|
+
readonly leafValue: _angular_core.Signal<LeafDetailsEntityValue | null>;
|
|
297
|
+
/** Label shown below the badges: "Level Name (total)" */
|
|
298
|
+
readonly labelWithTotal: _angular_core.Signal<string>;
|
|
299
|
+
/** Always force label to top position, merged with any saved config */
|
|
300
|
+
readonly labelTopConfig: _angular_core.Signal<EntityBaseConfig>;
|
|
301
|
+
statusColor(color: string | null): string;
|
|
302
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<EntityLeafDetails, never>;
|
|
303
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<EntityLeafDetails, "mt-entity-leaf-details", never, { "data": { "alias": "data"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
304
|
+
}
|
|
305
|
+
|
|
281
306
|
declare class EntityPreview {
|
|
282
307
|
/** Single entity data to display */
|
|
283
308
|
readonly data: _angular_core.InputSignal<EntityData>;
|
|
284
309
|
readonly attachmentShape: _angular_core.InputSignal<"compact" | "default">;
|
|
285
|
-
readonly previewType: _angular_core.Signal<"Text" | "LongText" | "Date" | "DateTime" | "Percentage" | "Status" | "Currency" | "Checkbox" | "User" | "Lookup" | "Attachment">;
|
|
310
|
+
readonly previewType: _angular_core.Signal<"Text" | "LongText" | "Date" | "DateTime" | "Percentage" | "Status" | "Currency" | "Checkbox" | "User" | "Lookup" | "Attachment" | "LeafDetails">;
|
|
286
311
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<EntityPreview, never>;
|
|
287
312
|
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>;
|
|
288
313
|
}
|
|
@@ -367,5 +392,5 @@ declare class EntitiesManage extends EntitiesResizeBase {
|
|
|
367
392
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<EntitiesManage, "mt-entities-manage", never, { "entities": { "alias": "entities"; "required": true; "isSignal": true; }; }, { "entities": "entitiesChange"; "entitiesReordered": "entitiesReordered"; "entityClicked": "entityClicked"; }, never, never, true, never>;
|
|
368
393
|
}
|
|
369
394
|
|
|
370
|
-
export { EntitiesManage, EntitiesPreview, EntitiesResizeBase, EntityAttachment, EntityCheckbox, EntityCurrency, EntityDate, EntityField, EntityLongText, EntityLookup, EntityPercentage, EntityPreview, EntityStatus, EntityText, EntityUser };
|
|
371
|
-
export type { EntityAttachmentItemValue, EntityAttachmentValue, EntityBaseConfig, EntityConfiguration, EntityData, EntityLabelPosition, EntityLookupValue, EntityPercentageConfig, EntityResizeEvent, EntitySize, EntityStatusValue, EntityUserConfig, EntityUserValue, EntityViewType };
|
|
395
|
+
export { EntitiesManage, EntitiesPreview, EntitiesResizeBase, EntityAttachment, EntityCheckbox, EntityCurrency, EntityDate, EntityField, EntityLeafDetails, EntityLongText, EntityLookup, EntityPercentage, EntityPreview, EntityStatus, EntityText, EntityUser };
|
|
396
|
+
export type { EntityAttachmentItemValue, EntityAttachmentValue, EntityBaseConfig, EntityConfiguration, EntityData, EntityLabelPosition, EntityLookupValue, EntityPercentageConfig, EntityResizeEvent, EntitySize, EntityStatusValue, EntityUserConfig, EntityUserValue, EntityViewType, LeafDetailsEntityValue, LeafDetailsStatusSummary };
|