@masterteam/components 0.0.250 → 0.0.252
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/ds-components/datepicker.css +180 -180
- package/assets/ds-components/misc.css +263 -263
- package/assets/ds-components/tabs.css +265 -331
- package/assets/ds-identity.css +284 -284
- package/assets/i18n/ar.json +2 -1
- package/assets/i18n/en.json +2 -1
- package/fesm2022/masterteam-components-business-fields.mjs +6 -2
- package/fesm2022/masterteam-components-business-fields.mjs.map +1 -1
- package/fesm2022/masterteam-components-entities.mjs +64 -12
- package/fesm2022/masterteam-components-entities.mjs.map +1 -1
- package/fesm2022/masterteam-components.mjs +14 -14
- package/fesm2022/masterteam-components.mjs.map +1 -1
- package/package.json +1 -1
- package/types/masterteam-components-entities.d.ts +24 -4
- package/types/masterteam-components-table.d.ts +2 -2
package/package.json
CHANGED
|
@@ -43,7 +43,7 @@ type EntityViewType = 'Text' | 'LongText' | 'Date' | 'DateTime'
|
|
|
43
43
|
* backend stores and returns the same shape as `DateTime`); only the
|
|
44
44
|
* rendering and the picker are narrowed to the clock time.
|
|
45
45
|
*/
|
|
46
|
-
| 'Time' | 'Number' | 'Percentage' | 'Status' | 'Currency' | 'Checkbox' | 'User' | 'Lookup'
|
|
46
|
+
| 'Time' | 'Number' | 'Percentage' | 'Status' | 'Currency' | 'Checkbox' | 'User' | 'MultiUser' | 'Lookup'
|
|
47
47
|
/**
|
|
48
48
|
* Calculated, read-only lookup resolved by the backend to the schema phase
|
|
49
49
|
* gate the record currently sits on. Never editable at runtime.
|
|
@@ -83,6 +83,8 @@ interface EntityUserConfig extends EntityBaseConfig {
|
|
|
83
83
|
showDisplayName?: boolean;
|
|
84
84
|
showPhoneNumber?: boolean;
|
|
85
85
|
showEmail?: boolean;
|
|
86
|
+
/** Maximum users shown before the MultiUser preview collapses behind +N. */
|
|
87
|
+
maxVisibleUsers?: number;
|
|
86
88
|
}
|
|
87
89
|
/**
|
|
88
90
|
* One Progress/Percentage color rule. Bounds are inclusive and at least one of
|
|
@@ -175,6 +177,7 @@ interface EntityUserValue {
|
|
|
175
177
|
*/
|
|
176
178
|
isLinkedToCurrentApplication?: boolean;
|
|
177
179
|
}
|
|
180
|
+
type EntityMultiUserValue = EntityUserValue[];
|
|
178
181
|
interface LeafDetailsStatusSummary {
|
|
179
182
|
key: string;
|
|
180
183
|
display: string;
|
|
@@ -313,7 +316,7 @@ interface EntityData {
|
|
|
313
316
|
* props have no label and no view type to render with.
|
|
314
317
|
*/
|
|
315
318
|
nestedProperties?: EntityNestedPropertyMeta[];
|
|
316
|
-
value: string | EntityStatusValue | EntityUserValue | EntityLookupValue | EntityPhaseGateValue | EntityAttachmentValue | EntityLocationValue | EntityConnectionValue | EntityScheduleItemValue[] | EntityLookupCheckListValue | EntityLookupCheckListItem[] | LeafDetailsEntityValue | LeafDetailsEntityCollectionValue | LeafDetailsRuntimeValue;
|
|
319
|
+
value: string | EntityStatusValue | EntityUserValue | EntityMultiUserValue | EntityLookupValue | EntityPhaseGateValue | EntityAttachmentValue | EntityLocationValue | EntityConnectionValue | EntityScheduleItemValue[] | EntityLookupCheckListValue | EntityLookupCheckListItem[] | LeafDetailsEntityValue | LeafDetailsEntityCollectionValue | LeafDetailsRuntimeValue;
|
|
317
320
|
viewType: EntityViewType;
|
|
318
321
|
type?: string;
|
|
319
322
|
configuration?: EntityConfiguration;
|
|
@@ -399,9 +402,24 @@ declare class EntityUser {
|
|
|
399
402
|
readonly httpContext: HttpContext;
|
|
400
403
|
/** Full entity data object */
|
|
401
404
|
readonly data: _angular_core.InputSignal<EntityData | undefined>;
|
|
405
|
+
readonly expanded: _angular_core.WritableSignal<boolean>;
|
|
402
406
|
readonly displayName: _angular_core.Signal<string>;
|
|
403
|
-
|
|
407
|
+
readonly isMultiUser: _angular_core.Signal<boolean>;
|
|
408
|
+
/** Resolved user objects from either a User or MultiUser entity value. */
|
|
409
|
+
readonly users: _angular_core.Signal<EntityUserValue[]>;
|
|
410
|
+
readonly maxVisibleUsers: _angular_core.Signal<number>;
|
|
411
|
+
readonly visibleUsers: _angular_core.Signal<EntityUserValue[]>;
|
|
412
|
+
readonly hiddenUserCount: _angular_core.Signal<number>;
|
|
413
|
+
/** First user retained for the existing single-user computed API. */
|
|
404
414
|
private readonly userValue;
|
|
415
|
+
userNameFor(user: EntityUserValue): string;
|
|
416
|
+
userPhotoFor(user: EntityUserValue): string;
|
|
417
|
+
labelTextFor(user: EntityUserValue): string;
|
|
418
|
+
isUnlinkedUser(user: EntityUserValue): boolean;
|
|
419
|
+
phoneNumberFor(user: EntityUserValue): string;
|
|
420
|
+
emailFor(user: EntityUserValue): string;
|
|
421
|
+
hasContactInfoFor(user: EntityUserValue): boolean;
|
|
422
|
+
readonly emptyUserName: _angular_core.Signal<string>;
|
|
405
423
|
readonly rawUserName: _angular_core.Signal<string | null>;
|
|
406
424
|
readonly userName: _angular_core.Signal<string>;
|
|
407
425
|
readonly userPhoto: _angular_core.Signal<string>;
|
|
@@ -418,6 +436,8 @@ declare class EntityUser {
|
|
|
418
436
|
readonly phoneNumber: _angular_core.Signal<string>;
|
|
419
437
|
readonly email: _angular_core.Signal<string>;
|
|
420
438
|
readonly hasContactInfo: _angular_core.Signal<boolean>;
|
|
439
|
+
constructor();
|
|
440
|
+
showAllUsers(): void;
|
|
421
441
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<EntityUser, never>;
|
|
422
442
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<EntityUser, "mt-entity-user", never, { "data": { "alias": "data"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
423
443
|
}
|
|
@@ -968,4 +988,4 @@ declare class EntitiesManage extends EntitiesResizeBase {
|
|
|
968
988
|
}
|
|
969
989
|
|
|
970
990
|
export { ComparisonEntityList, ComparisonValue, DEFAULT_PHASE_GATE_COLOR, EntitiesManage, EntitiesPreview, EntitiesResizeBase, EntityAttachment, EntityCheckbox, EntityConnection, EntityCurrency, EntityDate, EntityField, EntityLeafDetails, EntityLocation, EntityLongText, EntityLookup, EntityLookupModuleCheckList, EntityPercentage, EntityPhaseGate, EntityPreview, EntityPreviewBody, EntityScheduleItem, EntityStatus, EntityText, EntityUser, LEAF_DETAILS_KEY_SEPARATOR, SECTION_KEY_PREFIX, buildDisplayEntities, buildSectionKey, expandLeafDetailsEntity, getEntitySectionTitle, groupEntitiesIntoSections, isEntitySection, isLeafDetailsCatalogConfiguration, isLeafDetailsCollectionValue, isLeafDetailsRuntimeValue, isLeafDetailsSyntheticKey, isLeafDetailsValue, isSectionKey, matchesPercentageColorRule, resolveLocalizedLabel, resolvePercentageColor };
|
|
971
|
-
export type { ComparisonValueSide, EntityAttachmentItemValue, EntityAttachmentValue, EntityBaseConfig, EntityClickEvent, EntityComparisonField, EntityComparisonOperation, EntityConfiguration, EntityConnectionValue, EntityData, EntityLabelPosition, EntityLeafDetailsConfig, EntityListComparison, EntityListComparisonRow, EntityLocationValue, EntityLookupCheckListItem, EntityLookupCheckListPropValue, EntityLookupCheckListValue, EntityLookupValue, EntityNestedPropertyMeta, EntityPercentageConfig, EntityPhaseGateValue, EntityPropertyConfiguration, EntityResizeEvent, EntityScheduleItemValue, EntitySectionConfig, EntitySectionGroup, EntitySectionLabel, EntitySize, EntityStatusValue, EntityUserConfig, EntityUserValue, EntityViewType, LeafDetailsCatalogConfiguration, LeafDetailsCatalogLevelValue, LeafDetailsCatalogStatusValue, LeafDetailsEntityCollectionValue, LeafDetailsEntityValue, LeafDetailsRuntimeChildSchema, LeafDetailsRuntimeStatusCount, LeafDetailsRuntimeStatusDetails, LeafDetailsRuntimeValue, LeafDetailsStatusSummary, LeafLevelSavedConfig, PercentageColorRule, PercentageColorSource, PropertyValueComparison, ValueComparison };
|
|
991
|
+
export type { ComparisonValueSide, EntityAttachmentItemValue, EntityAttachmentValue, EntityBaseConfig, EntityClickEvent, EntityComparisonField, EntityComparisonOperation, EntityConfiguration, EntityConnectionValue, EntityData, EntityLabelPosition, EntityLeafDetailsConfig, EntityListComparison, EntityListComparisonRow, EntityLocationValue, EntityLookupCheckListItem, EntityLookupCheckListPropValue, EntityLookupCheckListValue, EntityLookupValue, EntityMultiUserValue, EntityNestedPropertyMeta, EntityPercentageConfig, EntityPhaseGateValue, EntityPropertyConfiguration, EntityResizeEvent, EntityScheduleItemValue, EntitySectionConfig, EntitySectionGroup, EntitySectionLabel, EntitySize, EntityStatusValue, EntityUserConfig, EntityUserValue, EntityViewType, LeafDetailsCatalogConfiguration, LeafDetailsCatalogLevelValue, LeafDetailsCatalogStatusValue, LeafDetailsEntityCollectionValue, LeafDetailsEntityValue, LeafDetailsRuntimeChildSchema, LeafDetailsRuntimeStatusCount, LeafDetailsRuntimeStatusDetails, LeafDetailsRuntimeValue, LeafDetailsStatusSummary, LeafLevelSavedConfig, PercentageColorRule, PercentageColorSource, PropertyValueComparison, ValueComparison };
|
|
@@ -320,7 +320,7 @@ declare class Table {
|
|
|
320
320
|
captionStartContent: _angular_core.Signal<TemplateRef<any> | undefined>;
|
|
321
321
|
captionEndContent: _angular_core.Signal<TemplateRef<any> | undefined>;
|
|
322
322
|
emptyContent: _angular_core.Signal<TemplateRef<any> | undefined>;
|
|
323
|
-
paginatorPosition: _angular_core.InputSignal<"
|
|
323
|
+
paginatorPosition: _angular_core.InputSignal<"center" | "end" | "start">;
|
|
324
324
|
alwaysShowPaginator: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
325
325
|
rowsPerPageOptions: _angular_core.InputSignal<number[]>;
|
|
326
326
|
pageSize: _angular_core.ModelSignal<number>;
|
|
@@ -334,7 +334,7 @@ declare class Table {
|
|
|
334
334
|
* the query it actually sent.
|
|
335
335
|
*/
|
|
336
336
|
sortField: _angular_core.ModelSignal<string | null>;
|
|
337
|
-
sortDirection: _angular_core.ModelSignal<"
|
|
337
|
+
sortDirection: _angular_core.ModelSignal<"desc" | "asc" | null>;
|
|
338
338
|
confirmationService: ConfirmationService;
|
|
339
339
|
private readonly exportService;
|
|
340
340
|
private readonly transloco;
|