@masterteam/components 0.0.249 → 0.0.251

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@masterteam/components",
3
- "version": "0.0.249",
3
+ "version": "0.0.251",
4
4
  "publishConfig": {
5
5
  "directory": "../../../dist/masterteam/components",
6
6
  "linkDirectory": true,
@@ -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
- /** Resolved user value object from data().value */
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 };