@masterteam/components 0.0.271 → 0.0.273

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.
Files changed (40) hide show
  1. package/fesm2022/masterteam-components-business-fields.mjs +2 -2
  2. package/fesm2022/masterteam-components-business-fields.mjs.map +1 -1
  3. package/fesm2022/masterteam-components-date-field.mjs +6 -2
  4. package/fesm2022/masterteam-components-date-field.mjs.map +1 -1
  5. package/fesm2022/masterteam-components-editor-field.mjs +6 -2
  6. package/fesm2022/masterteam-components-editor-field.mjs.map +1 -1
  7. package/fesm2022/masterteam-components-entities.mjs +2 -2
  8. package/fesm2022/masterteam-components-entities.mjs.map +1 -1
  9. package/fesm2022/masterteam-components-icon-field.mjs +6 -2
  10. package/fesm2022/masterteam-components-icon-field.mjs.map +1 -1
  11. package/fesm2022/masterteam-components-location-field.mjs +6 -2
  12. package/fesm2022/masterteam-components-location-field.mjs.map +1 -1
  13. package/fesm2022/masterteam-components-multi-select-field.mjs +6 -2
  14. package/fesm2022/masterteam-components-multi-select-field.mjs.map +1 -1
  15. package/fesm2022/masterteam-components-number-field.mjs +6 -2
  16. package/fesm2022/masterteam-components-number-field.mjs.map +1 -1
  17. package/fesm2022/masterteam-components-pick-list-field.mjs +6 -2
  18. package/fesm2022/masterteam-components-pick-list-field.mjs.map +1 -1
  19. package/fesm2022/masterteam-components-radio-button-field.mjs +6 -2
  20. package/fesm2022/masterteam-components-radio-button-field.mjs.map +1 -1
  21. package/fesm2022/masterteam-components-radio-cards-field.mjs +6 -2
  22. package/fesm2022/masterteam-components-radio-cards-field.mjs.map +1 -1
  23. package/fesm2022/masterteam-components-select-field.mjs +6 -2
  24. package/fesm2022/masterteam-components-select-field.mjs.map +1 -1
  25. package/fesm2022/masterteam-components-slider-field.mjs +8 -1
  26. package/fesm2022/masterteam-components-slider-field.mjs.map +1 -1
  27. package/fesm2022/masterteam-components-table.mjs +12 -3
  28. package/fesm2022/masterteam-components-table.mjs.map +1 -1
  29. package/fesm2022/masterteam-components-text-field.mjs +7 -2
  30. package/fesm2022/masterteam-components-text-field.mjs.map +1 -1
  31. package/fesm2022/masterteam-components-textarea-field.mjs +6 -2
  32. package/fesm2022/masterteam-components-textarea-field.mjs.map +1 -1
  33. package/fesm2022/masterteam-components-treeselect-field.mjs +7 -1
  34. package/fesm2022/masterteam-components-treeselect-field.mjs.map +1 -1
  35. package/fesm2022/masterteam-components-user-search-field.mjs +7 -2
  36. package/fesm2022/masterteam-components-user-search-field.mjs.map +1 -1
  37. package/package.json +1 -1
  38. package/types/masterteam-components-slider-field.d.ts +5 -0
  39. package/types/masterteam-components-table.d.ts +10 -1
  40. package/types/masterteam-components-treeselect-field.d.ts +5 -0
@@ -368,7 +368,7 @@ class EntityUser {
368
368
  this.expanded.set(true);
369
369
  }
370
370
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: EntityUser, deps: [], target: i0.ɵɵFactoryTarget.Component });
371
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.8", type: EntityUser, isStandalone: true, selector: "mt-entity-user", inputs: { data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<mt-entity-field\n [label]=\"displayName()\"\n [configuration]=\"data()?.configuration\"\n gap=\"normal\"\n>\n @if (isMultiUser()) {\n <div\n class=\"flex min-w-0 flex-wrap items-center gap-2\"\n data-testid=\"multi-user-list\"\n >\n @for (user of visibleUsers(); track user.id ?? $index) {\n <div\n class=\"inline-flex min-w-0 max-w-full items-center gap-1.5 rounded-full border border-surface-200 bg-surface-50 py-1 pe-2\"\n [class.ps-1]=\"showAvatar()\"\n [class.ps-2]=\"!showAvatar()\"\n >\n @if (showAvatar()) {\n <mt-avatar\n [image]=\"\n userPhotoFor(user)\n ? (userPhotoFor(user)\n | secureImage: true : httpContext : 'avatar/')\n : ''\n \"\n [icon]=\"'user.user-01'\"\n styleClass=\"w-7! h-7! text-white! text-sm! bg-primary-500!\"\n ></mt-avatar>\n }\n\n @if (showDisplayName()) {\n <span\n class=\"max-w-36 truncate text-xs text-gray-700\"\n mtTruncateTooltip\n tooltipPosition=\"top\"\n >{{ userNameFor(user) }}</span\n >\n }\n\n @if (isUnlinkedUser(user)) {\n <mt-icon\n icon=\"general.info-circle\"\n class=\"shrink-0 text-xs text-amber-500\"\n [mtTooltip]=\"'components.userReference.notLinked' | transloco\"\n tooltipPosition=\"top\"\n />\n }\n\n @if (showPhoneNumber() && phoneNumberFor(user)) {\n <a\n [href]=\"'tel:' + phoneNumberFor(user)\"\n [attr.aria-label]=\"phoneNumberFor(user)\"\n [mtTooltip]=\"phoneNumberFor(user)\"\n tooltipPosition=\"top\"\n class=\"inline-flex shrink-0\"\n >\n <mt-icon icon=\"communication.phone\" size=\"xs\" />\n </a>\n }\n\n @if (showEmail() && emailFor(user)) {\n <a\n [href]=\"'mailto:' + emailFor(user)\"\n [attr.aria-label]=\"emailFor(user)\"\n [mtTooltip]=\"emailFor(user)\"\n tooltipPosition=\"top\"\n class=\"inline-flex shrink-0\"\n >\n <mt-icon icon=\"communication.mail-01\" size=\"xs\" />\n </a>\n }\n </div>\n } @empty {\n <span class=\"text-sm text-gray-700\">{{ emptyUserName() }}</span>\n }\n\n @if (hiddenUserCount() > 0) {\n <button\n type=\"button\"\n class=\"inline-flex h-8 min-w-8 shrink-0 cursor-pointer items-center justify-center rounded-full border border-primary-200 bg-primary-50 px-2 text-xs font-semibold text-primary-700 transition-colors hover:bg-primary-100 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary-500\"\n data-testid=\"show-all-users\"\n [attr.aria-label]=\"\n 'components.userReference.showMore'\n | transloco: { count: hiddenUserCount() }\n \"\n [mtTooltip]=\"\n 'components.userReference.showMore'\n | transloco: { count: hiddenUserCount() }\n \"\n tooltipPosition=\"top\"\n (click)=\"showAllUsers()\"\n >\n +{{ hiddenUserCount() }}\n </button>\n }\n </div>\n } @else {\n @if (users()[0]; as user) {\n <div class=\"flex min-w-0 items-center gap-2\">\n @if (showAvatar()) {\n <mt-avatar\n [image]=\"\n userPhotoFor(user)\n ? (userPhotoFor(user)\n | secureImage: true : httpContext : 'avatar/')\n : ''\n \"\n [icon]=\"'user.user-01'\"\n styleClass=\"w-10! h-10! text-white! text-xxl! bg-primary-500!\"\n ></mt-avatar>\n }\n\n @if (showDisplayName()) {\n <div class=\"flex min-w-0 flex-1 flex-col\">\n <div class=\"flex min-w-0 items-center gap-1\">\n <span\n class=\"truncate text-sm text-gray-700\"\n mtTruncateTooltip\n tooltipPosition=\"top\"\n >{{ userNameFor(user) }}</span\n >\n @if (isUnlinkedUser(user)) {\n <mt-icon\n icon=\"general.info-circle\"\n class=\"shrink-0 text-sm text-amber-500\"\n [mtTooltip]=\"'components.userReference.notLinked' | transloco\"\n tooltipPosition=\"top\"\n />\n }\n </div>\n @if (labelTextFor(user)) {\n <span class=\"truncate text-xs text-gray-500\">{{\n labelTextFor(user)\n }}</span>\n }\n </div>\n }\n\n @if (hasContactInfoFor(user)) {\n <div class=\"ms-auto flex shrink-0 items-center gap-1.5\">\n @if (showPhoneNumber() && phoneNumberFor(user)) {\n <a\n [href]=\"'tel:' + phoneNumberFor(user)\"\n [attr.aria-label]=\"phoneNumberFor(user)\"\n [mtTooltip]=\"phoneNumberFor(user)\"\n tooltipPosition=\"top\"\n class=\"inline-flex\"\n >\n <mt-avatar\n icon=\"communication.phone\"\n badgeSeverity=\"secondary\"\n styleClass=\"bg-surface-100! text-surface-600! h-7! w-7! text-sm! font-semibold!\"\n />\n </a>\n }\n @if (showEmail() && emailFor(user)) {\n <a\n [href]=\"'mailto:' + emailFor(user)\"\n [attr.aria-label]=\"emailFor(user)\"\n [mtTooltip]=\"emailFor(user)\"\n tooltipPosition=\"top\"\n class=\"inline-flex\"\n >\n <mt-avatar\n styleClass=\"bg-surface-100! text-surface-600! h-7! w-7! text-sm! font-semibold!\"\n icon=\"communication.mail-01\"\n badgeSeverity=\"secondary\"\n />\n </a>\n }\n </div>\n }\n </div>\n } @else {\n <div class=\"flex min-w-0 items-center gap-2\">\n @if (showAvatar()) {\n <mt-avatar\n [icon]=\"'user.user-01'\"\n styleClass=\"w-10! h-10! text-white! text-xxl! bg-primary-500!\"\n ></mt-avatar>\n }\n @if (showDisplayName()) {\n <span class=\"truncate text-sm text-gray-700\">{{\n emptyUserName()\n }}</span>\n }\n </div>\n }\n }\n</mt-entity-field>\n", dependencies: [{ kind: "component", type: Avatar, selector: "mt-avatar", inputs: ["label", "icon", "image", "styleClass", "size", "shape", "badge", "badgeSize", "badgeSeverity"], outputs: ["onImageError"] }, { kind: "directive", type: Tooltip, selector: "[mtTooltip]" }, { kind: "directive", type: TruncateTooltip, selector: "[mtTruncateTooltip]" }, { kind: "component", type: Icon, selector: "mt-icon", inputs: ["icon"] }, { kind: "component", type: EntityField, selector: "mt-entity-field", inputs: ["label", "labelIconName", "configuration", "gap"] }, { kind: "pipe", type: SecureImagePipe, name: "secureImage" }, { kind: "pipe", type: TranslocoPipe, name: "transloco" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
371
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.8", type: EntityUser, isStandalone: true, selector: "mt-entity-user", inputs: { data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<mt-entity-field\r\n [label]=\"displayName()\"\r\n [configuration]=\"data()?.configuration\"\r\n gap=\"normal\"\r\n>\r\n @if (isMultiUser()) {\r\n <div\r\n class=\"flex min-w-0 flex-wrap items-center gap-2\"\r\n data-testid=\"multi-user-list\"\r\n >\r\n @for (user of visibleUsers(); track user.id ?? $index) {\r\n <div\r\n class=\"inline-flex min-w-0 max-w-full items-center gap-1.5 rounded-full border border-surface-200 bg-surface-50 py-1 pe-2\"\r\n [class.ps-1]=\"showAvatar()\"\r\n [class.ps-2]=\"!showAvatar()\"\r\n >\r\n @if (showAvatar()) {\r\n <mt-avatar\r\n [image]=\"\r\n userPhotoFor(user)\r\n ? (userPhotoFor(user)\r\n | secureImage: true : httpContext : 'avatar/')\r\n : ''\r\n \"\r\n [icon]=\"'user.user-01'\"\r\n styleClass=\"w-7! h-7! text-white! text-sm! bg-primary-500!\"\r\n ></mt-avatar>\r\n }\r\n\r\n @if (showDisplayName()) {\r\n <span\r\n class=\"max-w-36 truncate text-xs text-gray-700\"\r\n mtTruncateTooltip\r\n tooltipPosition=\"top\"\r\n >{{ userNameFor(user) }}</span\r\n >\r\n }\r\n\r\n @if (isUnlinkedUser(user)) {\r\n <mt-icon\r\n icon=\"general.info-circle\"\r\n class=\"shrink-0 text-xs text-amber-500\"\r\n [mtTooltip]=\"'components.userReference.notLinked' | transloco\"\r\n tooltipPosition=\"top\"\r\n />\r\n }\r\n\r\n @if (showPhoneNumber() && phoneNumberFor(user)) {\r\n <a\r\n [href]=\"'tel:' + phoneNumberFor(user)\"\r\n [attr.aria-label]=\"phoneNumberFor(user)\"\r\n [mtTooltip]=\"phoneNumberFor(user)\"\r\n tooltipPosition=\"top\"\r\n class=\"inline-flex shrink-0\"\r\n >\r\n <mt-icon icon=\"communication.phone\" size=\"xs\" />\r\n </a>\r\n }\r\n\r\n @if (showEmail() && emailFor(user)) {\r\n <a\r\n [href]=\"'mailto:' + emailFor(user)\"\r\n [attr.aria-label]=\"emailFor(user)\"\r\n [mtTooltip]=\"emailFor(user)\"\r\n tooltipPosition=\"top\"\r\n class=\"inline-flex shrink-0\"\r\n >\r\n <mt-icon icon=\"communication.mail-01\" size=\"xs\" />\r\n </a>\r\n }\r\n </div>\r\n } @empty {\r\n <span class=\"text-sm text-gray-700\">{{ emptyUserName() }}</span>\r\n }\r\n\r\n @if (hiddenUserCount() > 0) {\r\n <button\r\n type=\"button\"\r\n class=\"inline-flex h-8 min-w-8 shrink-0 cursor-pointer items-center justify-center rounded-full border border-primary-200 bg-primary-50 px-2 text-xs font-semibold text-primary-700 transition-colors hover:bg-primary-100 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary-500\"\r\n data-testid=\"show-all-users\"\r\n [attr.aria-label]=\"\r\n 'components.userReference.showMore'\r\n | transloco: { count: hiddenUserCount() }\r\n \"\r\n [mtTooltip]=\"\r\n 'components.userReference.showMore'\r\n | transloco: { count: hiddenUserCount() }\r\n \"\r\n tooltipPosition=\"top\"\r\n (click)=\"showAllUsers()\"\r\n >\r\n +{{ hiddenUserCount() }}\r\n </button>\r\n }\r\n </div>\r\n } @else {\r\n @if (users()[0]; as user) {\r\n <div class=\"flex min-w-0 items-center gap-2\">\r\n @if (showAvatar()) {\r\n <mt-avatar\r\n [image]=\"\r\n userPhotoFor(user)\r\n ? (userPhotoFor(user)\r\n | secureImage: true : httpContext : 'avatar/')\r\n : ''\r\n \"\r\n [icon]=\"'user.user-01'\"\r\n styleClass=\"w-10! h-10! text-white! text-xxl! bg-primary-500!\"\r\n ></mt-avatar>\r\n }\r\n\r\n @if (showDisplayName()) {\r\n <div class=\"flex min-w-0 flex-1 flex-col\">\r\n <div class=\"flex min-w-0 items-center gap-1\">\r\n <span\r\n class=\"truncate text-sm text-gray-700\"\r\n mtTruncateTooltip\r\n tooltipPosition=\"top\"\r\n >{{ userNameFor(user) }}</span\r\n >\r\n @if (isUnlinkedUser(user)) {\r\n <mt-icon\r\n icon=\"general.info-circle\"\r\n class=\"shrink-0 text-sm text-amber-500\"\r\n [mtTooltip]=\"'components.userReference.notLinked' | transloco\"\r\n tooltipPosition=\"top\"\r\n />\r\n }\r\n </div>\r\n @if (labelTextFor(user)) {\r\n <span class=\"truncate text-xs text-gray-500\">{{\r\n labelTextFor(user)\r\n }}</span>\r\n }\r\n </div>\r\n }\r\n\r\n @if (hasContactInfoFor(user)) {\r\n <div class=\"ms-auto flex shrink-0 items-center gap-1.5\">\r\n @if (showPhoneNumber() && phoneNumberFor(user)) {\r\n <a\r\n [href]=\"'tel:' + phoneNumberFor(user)\"\r\n [attr.aria-label]=\"phoneNumberFor(user)\"\r\n [mtTooltip]=\"phoneNumberFor(user)\"\r\n tooltipPosition=\"top\"\r\n class=\"inline-flex\"\r\n >\r\n <mt-avatar\r\n icon=\"communication.phone\"\r\n badgeSeverity=\"secondary\"\r\n styleClass=\"bg-surface-100! text-surface-600! h-7! w-7! text-sm! font-semibold!\"\r\n />\r\n </a>\r\n }\r\n @if (showEmail() && emailFor(user)) {\r\n <a\r\n [href]=\"'mailto:' + emailFor(user)\"\r\n [attr.aria-label]=\"emailFor(user)\"\r\n [mtTooltip]=\"emailFor(user)\"\r\n tooltipPosition=\"top\"\r\n class=\"inline-flex\"\r\n >\r\n <mt-avatar\r\n styleClass=\"bg-surface-100! text-surface-600! h-7! w-7! text-sm! font-semibold!\"\r\n icon=\"communication.mail-01\"\r\n badgeSeverity=\"secondary\"\r\n />\r\n </a>\r\n }\r\n </div>\r\n }\r\n </div>\r\n } @else {\r\n <div class=\"flex min-w-0 items-center gap-2\">\r\n @if (showAvatar()) {\r\n <mt-avatar\r\n [icon]=\"'user.user-01'\"\r\n styleClass=\"w-10! h-10! text-white! text-xxl! bg-primary-500!\"\r\n ></mt-avatar>\r\n }\r\n @if (showDisplayName()) {\r\n <span class=\"truncate text-sm text-gray-700\">{{\r\n emptyUserName()\r\n }}</span>\r\n }\r\n </div>\r\n }\r\n }\r\n</mt-entity-field>\r\n", dependencies: [{ kind: "component", type: Avatar, selector: "mt-avatar", inputs: ["label", "icon", "image", "styleClass", "size", "shape", "badge", "badgeSize", "badgeSeverity"], outputs: ["onImageError"] }, { kind: "directive", type: Tooltip, selector: "[mtTooltip]" }, { kind: "directive", type: TruncateTooltip, selector: "[mtTruncateTooltip]" }, { kind: "component", type: Icon, selector: "mt-icon", inputs: ["icon"] }, { kind: "component", type: EntityField, selector: "mt-entity-field", inputs: ["label", "labelIconName", "configuration", "gap"] }, { kind: "pipe", type: SecureImagePipe, name: "secureImage" }, { kind: "pipe", type: TranslocoPipe, name: "transloco" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
372
372
  }
373
373
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: EntityUser, decorators: [{
374
374
  type: Component,
@@ -380,7 +380,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImpor
380
380
  SecureImagePipe,
381
381
  EntityField,
382
382
  TranslocoPipe,
383
- ], template: "<mt-entity-field\n [label]=\"displayName()\"\n [configuration]=\"data()?.configuration\"\n gap=\"normal\"\n>\n @if (isMultiUser()) {\n <div\n class=\"flex min-w-0 flex-wrap items-center gap-2\"\n data-testid=\"multi-user-list\"\n >\n @for (user of visibleUsers(); track user.id ?? $index) {\n <div\n class=\"inline-flex min-w-0 max-w-full items-center gap-1.5 rounded-full border border-surface-200 bg-surface-50 py-1 pe-2\"\n [class.ps-1]=\"showAvatar()\"\n [class.ps-2]=\"!showAvatar()\"\n >\n @if (showAvatar()) {\n <mt-avatar\n [image]=\"\n userPhotoFor(user)\n ? (userPhotoFor(user)\n | secureImage: true : httpContext : 'avatar/')\n : ''\n \"\n [icon]=\"'user.user-01'\"\n styleClass=\"w-7! h-7! text-white! text-sm! bg-primary-500!\"\n ></mt-avatar>\n }\n\n @if (showDisplayName()) {\n <span\n class=\"max-w-36 truncate text-xs text-gray-700\"\n mtTruncateTooltip\n tooltipPosition=\"top\"\n >{{ userNameFor(user) }}</span\n >\n }\n\n @if (isUnlinkedUser(user)) {\n <mt-icon\n icon=\"general.info-circle\"\n class=\"shrink-0 text-xs text-amber-500\"\n [mtTooltip]=\"'components.userReference.notLinked' | transloco\"\n tooltipPosition=\"top\"\n />\n }\n\n @if (showPhoneNumber() && phoneNumberFor(user)) {\n <a\n [href]=\"'tel:' + phoneNumberFor(user)\"\n [attr.aria-label]=\"phoneNumberFor(user)\"\n [mtTooltip]=\"phoneNumberFor(user)\"\n tooltipPosition=\"top\"\n class=\"inline-flex shrink-0\"\n >\n <mt-icon icon=\"communication.phone\" size=\"xs\" />\n </a>\n }\n\n @if (showEmail() && emailFor(user)) {\n <a\n [href]=\"'mailto:' + emailFor(user)\"\n [attr.aria-label]=\"emailFor(user)\"\n [mtTooltip]=\"emailFor(user)\"\n tooltipPosition=\"top\"\n class=\"inline-flex shrink-0\"\n >\n <mt-icon icon=\"communication.mail-01\" size=\"xs\" />\n </a>\n }\n </div>\n } @empty {\n <span class=\"text-sm text-gray-700\">{{ emptyUserName() }}</span>\n }\n\n @if (hiddenUserCount() > 0) {\n <button\n type=\"button\"\n class=\"inline-flex h-8 min-w-8 shrink-0 cursor-pointer items-center justify-center rounded-full border border-primary-200 bg-primary-50 px-2 text-xs font-semibold text-primary-700 transition-colors hover:bg-primary-100 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary-500\"\n data-testid=\"show-all-users\"\n [attr.aria-label]=\"\n 'components.userReference.showMore'\n | transloco: { count: hiddenUserCount() }\n \"\n [mtTooltip]=\"\n 'components.userReference.showMore'\n | transloco: { count: hiddenUserCount() }\n \"\n tooltipPosition=\"top\"\n (click)=\"showAllUsers()\"\n >\n +{{ hiddenUserCount() }}\n </button>\n }\n </div>\n } @else {\n @if (users()[0]; as user) {\n <div class=\"flex min-w-0 items-center gap-2\">\n @if (showAvatar()) {\n <mt-avatar\n [image]=\"\n userPhotoFor(user)\n ? (userPhotoFor(user)\n | secureImage: true : httpContext : 'avatar/')\n : ''\n \"\n [icon]=\"'user.user-01'\"\n styleClass=\"w-10! h-10! text-white! text-xxl! bg-primary-500!\"\n ></mt-avatar>\n }\n\n @if (showDisplayName()) {\n <div class=\"flex min-w-0 flex-1 flex-col\">\n <div class=\"flex min-w-0 items-center gap-1\">\n <span\n class=\"truncate text-sm text-gray-700\"\n mtTruncateTooltip\n tooltipPosition=\"top\"\n >{{ userNameFor(user) }}</span\n >\n @if (isUnlinkedUser(user)) {\n <mt-icon\n icon=\"general.info-circle\"\n class=\"shrink-0 text-sm text-amber-500\"\n [mtTooltip]=\"'components.userReference.notLinked' | transloco\"\n tooltipPosition=\"top\"\n />\n }\n </div>\n @if (labelTextFor(user)) {\n <span class=\"truncate text-xs text-gray-500\">{{\n labelTextFor(user)\n }}</span>\n }\n </div>\n }\n\n @if (hasContactInfoFor(user)) {\n <div class=\"ms-auto flex shrink-0 items-center gap-1.5\">\n @if (showPhoneNumber() && phoneNumberFor(user)) {\n <a\n [href]=\"'tel:' + phoneNumberFor(user)\"\n [attr.aria-label]=\"phoneNumberFor(user)\"\n [mtTooltip]=\"phoneNumberFor(user)\"\n tooltipPosition=\"top\"\n class=\"inline-flex\"\n >\n <mt-avatar\n icon=\"communication.phone\"\n badgeSeverity=\"secondary\"\n styleClass=\"bg-surface-100! text-surface-600! h-7! w-7! text-sm! font-semibold!\"\n />\n </a>\n }\n @if (showEmail() && emailFor(user)) {\n <a\n [href]=\"'mailto:' + emailFor(user)\"\n [attr.aria-label]=\"emailFor(user)\"\n [mtTooltip]=\"emailFor(user)\"\n tooltipPosition=\"top\"\n class=\"inline-flex\"\n >\n <mt-avatar\n styleClass=\"bg-surface-100! text-surface-600! h-7! w-7! text-sm! font-semibold!\"\n icon=\"communication.mail-01\"\n badgeSeverity=\"secondary\"\n />\n </a>\n }\n </div>\n }\n </div>\n } @else {\n <div class=\"flex min-w-0 items-center gap-2\">\n @if (showAvatar()) {\n <mt-avatar\n [icon]=\"'user.user-01'\"\n styleClass=\"w-10! h-10! text-white! text-xxl! bg-primary-500!\"\n ></mt-avatar>\n }\n @if (showDisplayName()) {\n <span class=\"truncate text-sm text-gray-700\">{{\n emptyUserName()\n }}</span>\n }\n </div>\n }\n }\n</mt-entity-field>\n" }]
383
+ ], template: "<mt-entity-field\r\n [label]=\"displayName()\"\r\n [configuration]=\"data()?.configuration\"\r\n gap=\"normal\"\r\n>\r\n @if (isMultiUser()) {\r\n <div\r\n class=\"flex min-w-0 flex-wrap items-center gap-2\"\r\n data-testid=\"multi-user-list\"\r\n >\r\n @for (user of visibleUsers(); track user.id ?? $index) {\r\n <div\r\n class=\"inline-flex min-w-0 max-w-full items-center gap-1.5 rounded-full border border-surface-200 bg-surface-50 py-1 pe-2\"\r\n [class.ps-1]=\"showAvatar()\"\r\n [class.ps-2]=\"!showAvatar()\"\r\n >\r\n @if (showAvatar()) {\r\n <mt-avatar\r\n [image]=\"\r\n userPhotoFor(user)\r\n ? (userPhotoFor(user)\r\n | secureImage: true : httpContext : 'avatar/')\r\n : ''\r\n \"\r\n [icon]=\"'user.user-01'\"\r\n styleClass=\"w-7! h-7! text-white! text-sm! bg-primary-500!\"\r\n ></mt-avatar>\r\n }\r\n\r\n @if (showDisplayName()) {\r\n <span\r\n class=\"max-w-36 truncate text-xs text-gray-700\"\r\n mtTruncateTooltip\r\n tooltipPosition=\"top\"\r\n >{{ userNameFor(user) }}</span\r\n >\r\n }\r\n\r\n @if (isUnlinkedUser(user)) {\r\n <mt-icon\r\n icon=\"general.info-circle\"\r\n class=\"shrink-0 text-xs text-amber-500\"\r\n [mtTooltip]=\"'components.userReference.notLinked' | transloco\"\r\n tooltipPosition=\"top\"\r\n />\r\n }\r\n\r\n @if (showPhoneNumber() && phoneNumberFor(user)) {\r\n <a\r\n [href]=\"'tel:' + phoneNumberFor(user)\"\r\n [attr.aria-label]=\"phoneNumberFor(user)\"\r\n [mtTooltip]=\"phoneNumberFor(user)\"\r\n tooltipPosition=\"top\"\r\n class=\"inline-flex shrink-0\"\r\n >\r\n <mt-icon icon=\"communication.phone\" size=\"xs\" />\r\n </a>\r\n }\r\n\r\n @if (showEmail() && emailFor(user)) {\r\n <a\r\n [href]=\"'mailto:' + emailFor(user)\"\r\n [attr.aria-label]=\"emailFor(user)\"\r\n [mtTooltip]=\"emailFor(user)\"\r\n tooltipPosition=\"top\"\r\n class=\"inline-flex shrink-0\"\r\n >\r\n <mt-icon icon=\"communication.mail-01\" size=\"xs\" />\r\n </a>\r\n }\r\n </div>\r\n } @empty {\r\n <span class=\"text-sm text-gray-700\">{{ emptyUserName() }}</span>\r\n }\r\n\r\n @if (hiddenUserCount() > 0) {\r\n <button\r\n type=\"button\"\r\n class=\"inline-flex h-8 min-w-8 shrink-0 cursor-pointer items-center justify-center rounded-full border border-primary-200 bg-primary-50 px-2 text-xs font-semibold text-primary-700 transition-colors hover:bg-primary-100 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary-500\"\r\n data-testid=\"show-all-users\"\r\n [attr.aria-label]=\"\r\n 'components.userReference.showMore'\r\n | transloco: { count: hiddenUserCount() }\r\n \"\r\n [mtTooltip]=\"\r\n 'components.userReference.showMore'\r\n | transloco: { count: hiddenUserCount() }\r\n \"\r\n tooltipPosition=\"top\"\r\n (click)=\"showAllUsers()\"\r\n >\r\n +{{ hiddenUserCount() }}\r\n </button>\r\n }\r\n </div>\r\n } @else {\r\n @if (users()[0]; as user) {\r\n <div class=\"flex min-w-0 items-center gap-2\">\r\n @if (showAvatar()) {\r\n <mt-avatar\r\n [image]=\"\r\n userPhotoFor(user)\r\n ? (userPhotoFor(user)\r\n | secureImage: true : httpContext : 'avatar/')\r\n : ''\r\n \"\r\n [icon]=\"'user.user-01'\"\r\n styleClass=\"w-10! h-10! text-white! text-xxl! bg-primary-500!\"\r\n ></mt-avatar>\r\n }\r\n\r\n @if (showDisplayName()) {\r\n <div class=\"flex min-w-0 flex-1 flex-col\">\r\n <div class=\"flex min-w-0 items-center gap-1\">\r\n <span\r\n class=\"truncate text-sm text-gray-700\"\r\n mtTruncateTooltip\r\n tooltipPosition=\"top\"\r\n >{{ userNameFor(user) }}</span\r\n >\r\n @if (isUnlinkedUser(user)) {\r\n <mt-icon\r\n icon=\"general.info-circle\"\r\n class=\"shrink-0 text-sm text-amber-500\"\r\n [mtTooltip]=\"'components.userReference.notLinked' | transloco\"\r\n tooltipPosition=\"top\"\r\n />\r\n }\r\n </div>\r\n @if (labelTextFor(user)) {\r\n <span class=\"truncate text-xs text-gray-500\">{{\r\n labelTextFor(user)\r\n }}</span>\r\n }\r\n </div>\r\n }\r\n\r\n @if (hasContactInfoFor(user)) {\r\n <div class=\"ms-auto flex shrink-0 items-center gap-1.5\">\r\n @if (showPhoneNumber() && phoneNumberFor(user)) {\r\n <a\r\n [href]=\"'tel:' + phoneNumberFor(user)\"\r\n [attr.aria-label]=\"phoneNumberFor(user)\"\r\n [mtTooltip]=\"phoneNumberFor(user)\"\r\n tooltipPosition=\"top\"\r\n class=\"inline-flex\"\r\n >\r\n <mt-avatar\r\n icon=\"communication.phone\"\r\n badgeSeverity=\"secondary\"\r\n styleClass=\"bg-surface-100! text-surface-600! h-7! w-7! text-sm! font-semibold!\"\r\n />\r\n </a>\r\n }\r\n @if (showEmail() && emailFor(user)) {\r\n <a\r\n [href]=\"'mailto:' + emailFor(user)\"\r\n [attr.aria-label]=\"emailFor(user)\"\r\n [mtTooltip]=\"emailFor(user)\"\r\n tooltipPosition=\"top\"\r\n class=\"inline-flex\"\r\n >\r\n <mt-avatar\r\n styleClass=\"bg-surface-100! text-surface-600! h-7! w-7! text-sm! font-semibold!\"\r\n icon=\"communication.mail-01\"\r\n badgeSeverity=\"secondary\"\r\n />\r\n </a>\r\n }\r\n </div>\r\n }\r\n </div>\r\n } @else {\r\n <div class=\"flex min-w-0 items-center gap-2\">\r\n @if (showAvatar()) {\r\n <mt-avatar\r\n [icon]=\"'user.user-01'\"\r\n styleClass=\"w-10! h-10! text-white! text-xxl! bg-primary-500!\"\r\n ></mt-avatar>\r\n }\r\n @if (showDisplayName()) {\r\n <span class=\"truncate text-sm text-gray-700\">{{\r\n emptyUserName()\r\n }}</span>\r\n }\r\n </div>\r\n }\r\n }\r\n</mt-entity-field>\r\n" }]
384
384
  }], ctorParameters: () => [], propDecorators: { data: [{ type: i0.Input, args: [{ isSignal: true, alias: "data", required: false }] }] } });
385
385
  function isEntityUserValue(value) {
386
386
  if (!value || typeof value !== 'object' || Array.isArray(value)) {