@masterteam/components 0.0.190 → 0.0.191
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 +2 -2
- package/fesm2022/masterteam-components-chip.mjs +8 -4
- package/fesm2022/masterteam-components-chip.mjs.map +1 -1
- package/fesm2022/masterteam-components-entities.mjs +30 -3
- package/fesm2022/masterteam-components-entities.mjs.map +1 -1
- package/package.json +1 -1
- package/types/masterteam-components-chip.d.ts +3 -1
- package/types/masterteam-components-entities.d.ts +36 -9
package/package.json
CHANGED
|
@@ -8,12 +8,14 @@ declare class Chip {
|
|
|
8
8
|
readonly removable: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
9
9
|
readonly removeIcon: _angular_core.InputSignal<MTIcon>;
|
|
10
10
|
readonly styleClass: _angular_core.InputSignal<string>;
|
|
11
|
+
readonly size: _angular_core.InputSignal<"small" | "normal">;
|
|
12
|
+
readonly chipClass: _angular_core.Signal<string>;
|
|
11
13
|
onRemove: _angular_core.OutputEmitterRef<MouseEvent>;
|
|
12
14
|
onImageError: _angular_core.OutputEmitterRef<Event>;
|
|
13
15
|
onChipRemove(event: MouseEvent): void;
|
|
14
16
|
onChipImageError(event: Event): void;
|
|
15
17
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<Chip, never>;
|
|
16
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<Chip, "mt-chip", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "image": { "alias": "image"; "required": false; "isSignal": true; }; "removable": { "alias": "removable"; "required": false; "isSignal": true; }; "removeIcon": { "alias": "removeIcon"; "required": false; "isSignal": true; }; "styleClass": { "alias": "styleClass"; "required": false; "isSignal": true; }; }, { "onRemove": "onRemove"; "onImageError": "onImageError"; }, never, never, true, never>;
|
|
18
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<Chip, "mt-chip", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "image": { "alias": "image"; "required": false; "isSignal": true; }; "removable": { "alias": "removable"; "required": false; "isSignal": true; }; "removeIcon": { "alias": "removeIcon"; "required": false; "isSignal": true; }; "styleClass": { "alias": "styleClass"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; }, { "onRemove": "onRemove"; "onImageError": "onImageError"; }, never, never, true, never>;
|
|
17
19
|
}
|
|
18
20
|
|
|
19
21
|
export { Chip };
|
|
@@ -36,7 +36,7 @@ interface EntityListComparison {
|
|
|
36
36
|
}
|
|
37
37
|
type PropertyValueComparison = ValueComparison | EntityListComparison;
|
|
38
38
|
|
|
39
|
-
type EntityViewType = 'Text' | 'LongText' | 'Date' | 'DateTime' | 'Number' | 'Percentage' | 'Status' | 'Currency' | 'Checkbox' | 'User' | 'Lookup' | 'Attachment' | 'Location' | 'LookupMatrix' | 'LeafDetails' | 'Connection';
|
|
39
|
+
type EntityViewType = 'Text' | 'LongText' | 'Date' | 'DateTime' | 'Number' | 'Percentage' | 'Status' | 'Currency' | 'Checkbox' | 'User' | 'Lookup' | 'Attachment' | 'Location' | 'LookupMatrix' | 'LeafDetails' | 'Connection' | 'ScheduleItemSelector';
|
|
40
40
|
type EntityLabelPosition = 'top' | 'bottom';
|
|
41
41
|
/** Entity size – controls column span (1-24) inside a 24-column grid */
|
|
42
42
|
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;
|
|
@@ -178,6 +178,17 @@ interface EntityConnectionValue {
|
|
|
178
178
|
display?: string;
|
|
179
179
|
[key: string]: unknown;
|
|
180
180
|
}
|
|
181
|
+
interface EntityScheduleItemValue {
|
|
182
|
+
id: number;
|
|
183
|
+
name: string;
|
|
184
|
+
levelDataId?: number;
|
|
185
|
+
parentId?: number | null;
|
|
186
|
+
status?: string | null;
|
|
187
|
+
plannedStart?: string | null;
|
|
188
|
+
plannedFinish?: string | null;
|
|
189
|
+
moduleKey?: string;
|
|
190
|
+
itemType?: string;
|
|
191
|
+
}
|
|
181
192
|
interface EntityData {
|
|
182
193
|
id?: number;
|
|
183
194
|
propertyId?: number;
|
|
@@ -187,7 +198,7 @@ interface EntityData {
|
|
|
187
198
|
rawValue?: string;
|
|
188
199
|
order?: number;
|
|
189
200
|
propertyConfiguration?: EntityPropertyConfiguration;
|
|
190
|
-
value: string | EntityStatusValue | EntityUserValue | EntityLookupValue | EntityAttachmentValue | EntityLocationValue | EntityConnectionValue | LeafDetailsEntityValue | LeafDetailsEntityCollectionValue | LeafDetailsRuntimeValue;
|
|
201
|
+
value: string | EntityStatusValue | EntityUserValue | EntityLookupValue | EntityAttachmentValue | EntityLocationValue | EntityConnectionValue | EntityScheduleItemValue[] | LeafDetailsEntityValue | LeafDetailsEntityCollectionValue | LeafDetailsRuntimeValue;
|
|
191
202
|
viewType: EntityViewType;
|
|
192
203
|
type?: string;
|
|
193
204
|
configuration?: EntityConfiguration;
|
|
@@ -377,7 +388,7 @@ type AttachmentReference = EntityAttachmentItemValue | string;
|
|
|
377
388
|
declare class EntityAttachment {
|
|
378
389
|
readonly data: _angular_core.InputSignal<EntityData | undefined>;
|
|
379
390
|
readonly name: _angular_core.InputSignal<string | undefined>;
|
|
380
|
-
readonly shape: _angular_core.InputSignal<"
|
|
391
|
+
readonly shape: _angular_core.InputSignal<"default" | "compact">;
|
|
381
392
|
readonly value: _angular_core.InputSignal<string | EntityAttachmentItemValue | EntityAttachmentValue | null | undefined>;
|
|
382
393
|
readonly endPoint: _angular_core.InputSignal<string>;
|
|
383
394
|
readonly context: _angular_core.InputSignal<HttpContext | undefined>;
|
|
@@ -442,6 +453,22 @@ declare class EntityConnection {
|
|
|
442
453
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<EntityConnection, "mt-entity-connection", 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>;
|
|
443
454
|
}
|
|
444
455
|
|
|
456
|
+
/**
|
|
457
|
+
* Preview renderer for `ScheduleItemSelector` properties.
|
|
458
|
+
*
|
|
459
|
+
* The value is the array of resolved schedule items returned by runtime
|
|
460
|
+
* rendering (`{ id, name, status, ... }`); each one is shown as a chip.
|
|
461
|
+
*/
|
|
462
|
+
declare class EntityScheduleItem {
|
|
463
|
+
/** Full entity data object */
|
|
464
|
+
readonly data: _angular_core.InputSignal<EntityData | undefined>;
|
|
465
|
+
readonly displayName: _angular_core.Signal<string>;
|
|
466
|
+
readonly items: _angular_core.Signal<EntityScheduleItemValue[]>;
|
|
467
|
+
readonly emptyLabel = "_";
|
|
468
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<EntityScheduleItem, never>;
|
|
469
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<EntityScheduleItem, "mt-entity-schedule-item", never, { "data": { "alias": "data"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
470
|
+
}
|
|
471
|
+
|
|
445
472
|
declare class EntityLeafDetails {
|
|
446
473
|
readonly data: _angular_core.InputSignal<EntityData>;
|
|
447
474
|
readonly leafValue: _angular_core.Signal<LeafDetailsEntityValue | null>;
|
|
@@ -466,7 +493,7 @@ declare function buildDisplayEntities(entities: EntityData[]): EntityData[];
|
|
|
466
493
|
|
|
467
494
|
declare class EntityPreview {
|
|
468
495
|
readonly data: _angular_core.InputSignal<EntityData>;
|
|
469
|
-
readonly attachmentShape: _angular_core.InputSignal<"
|
|
496
|
+
readonly attachmentShape: _angular_core.InputSignal<"default" | "compact">;
|
|
470
497
|
readonly comparisonKind: _angular_core.Signal<"Value" | "EntityList" | null>;
|
|
471
498
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<EntityPreview, never>;
|
|
472
499
|
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>;
|
|
@@ -474,8 +501,8 @@ declare class EntityPreview {
|
|
|
474
501
|
|
|
475
502
|
declare class EntityPreviewBody {
|
|
476
503
|
readonly data: _angular_core.InputSignal<EntityData>;
|
|
477
|
-
readonly attachmentShape: _angular_core.InputSignal<"
|
|
478
|
-
readonly previewType: _angular_core.Signal<"Text" | "LongText" | "Date" | "DateTime" | "Number" | "Percentage" | "Status" | "Currency" | "Checkbox" | "User" | "Lookup" | "Attachment" | "Location" | "LeafDetails" | "Connection">;
|
|
504
|
+
readonly attachmentShape: _angular_core.InputSignal<"default" | "compact">;
|
|
505
|
+
readonly previewType: _angular_core.Signal<"Text" | "LongText" | "Date" | "DateTime" | "Number" | "Percentage" | "Status" | "Currency" | "Checkbox" | "User" | "Lookup" | "Attachment" | "Location" | "LeafDetails" | "Connection" | "ScheduleItemSelector">;
|
|
479
506
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<EntityPreviewBody, never>;
|
|
480
507
|
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>;
|
|
481
508
|
}
|
|
@@ -521,7 +548,7 @@ declare class EntitiesPreview {
|
|
|
521
548
|
private readonly transloco;
|
|
522
549
|
/** Array of entity data to display */
|
|
523
550
|
readonly entities: _angular_core.InputSignal<EntityData[]>;
|
|
524
|
-
readonly attachmentShape: _angular_core.InputSignal<"
|
|
551
|
+
readonly attachmentShape: _angular_core.InputSignal<"default" | "compact">;
|
|
525
552
|
/**
|
|
526
553
|
* Set of entity keys that should appear interactive (cursor pointer,
|
|
527
554
|
* clicks emit). Pass `new Set([...])` from a computed signal in the host
|
|
@@ -625,5 +652,5 @@ declare class EntitiesManage extends EntitiesResizeBase {
|
|
|
625
652
|
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>;
|
|
626
653
|
}
|
|
627
654
|
|
|
628
|
-
export { ComparisonEntityList, ComparisonValue, EntitiesManage, EntitiesPreview, EntitiesResizeBase, EntityAttachment, EntityCheckbox, EntityConnection, EntityCurrency, EntityDate, EntityField, EntityLeafDetails, EntityLocation, EntityLongText, EntityLookup, EntityPercentage, EntityPreview, EntityPreviewBody, EntityStatus, EntityText, EntityUser, LEAF_DETAILS_KEY_SEPARATOR, buildDisplayEntities, expandLeafDetailsEntity, isLeafDetailsCatalogConfiguration, isLeafDetailsCollectionValue, isLeafDetailsRuntimeValue, isLeafDetailsSyntheticKey, isLeafDetailsValue };
|
|
629
|
-
export type { ComparisonValueSide, EntityAttachmentItemValue, EntityAttachmentValue, EntityBaseConfig, EntityClickEvent, EntityComparisonField, EntityComparisonOperation, EntityConfiguration, EntityConnectionValue, EntityData, EntityLabelPosition, EntityLeafDetailsConfig, EntityListComparison, EntityListComparisonRow, EntityLocationValue, EntityLookupValue, EntityPercentageConfig, EntityPropertyConfiguration, EntityResizeEvent, EntitySize, EntityStatusValue, EntityUserConfig, EntityUserValue, EntityViewType, LeafDetailsCatalogConfiguration, LeafDetailsCatalogLevelValue, LeafDetailsCatalogStatusValue, LeafDetailsEntityCollectionValue, LeafDetailsEntityValue, LeafDetailsRuntimeChildSchema, LeafDetailsRuntimeStatusCount, LeafDetailsRuntimeStatusDetails, LeafDetailsRuntimeValue, LeafDetailsStatusSummary, LeafLevelSavedConfig, PropertyValueComparison, ValueComparison };
|
|
655
|
+
export { ComparisonEntityList, ComparisonValue, EntitiesManage, EntitiesPreview, EntitiesResizeBase, EntityAttachment, EntityCheckbox, EntityConnection, EntityCurrency, EntityDate, EntityField, EntityLeafDetails, EntityLocation, EntityLongText, EntityLookup, EntityPercentage, EntityPreview, EntityPreviewBody, EntityScheduleItem, EntityStatus, EntityText, EntityUser, LEAF_DETAILS_KEY_SEPARATOR, buildDisplayEntities, expandLeafDetailsEntity, isLeafDetailsCatalogConfiguration, isLeafDetailsCollectionValue, isLeafDetailsRuntimeValue, isLeafDetailsSyntheticKey, isLeafDetailsValue };
|
|
656
|
+
export type { ComparisonValueSide, EntityAttachmentItemValue, EntityAttachmentValue, EntityBaseConfig, EntityClickEvent, EntityComparisonField, EntityComparisonOperation, EntityConfiguration, EntityConnectionValue, EntityData, EntityLabelPosition, EntityLeafDetailsConfig, EntityListComparison, EntityListComparisonRow, EntityLocationValue, EntityLookupValue, EntityPercentageConfig, EntityPropertyConfiguration, EntityResizeEvent, EntityScheduleItemValue, EntitySize, EntityStatusValue, EntityUserConfig, EntityUserValue, EntityViewType, LeafDetailsCatalogConfiguration, LeafDetailsCatalogLevelValue, LeafDetailsCatalogStatusValue, LeafDetailsEntityCollectionValue, LeafDetailsEntityValue, LeafDetailsRuntimeChildSchema, LeafDetailsRuntimeStatusCount, LeafDetailsRuntimeStatusDetails, LeafDetailsRuntimeValue, LeafDetailsStatusSummary, LeafLevelSavedConfig, PropertyValueComparison, ValueComparison };
|