@masterteam/components 0.0.331 → 0.0.333

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.
@@ -27,11 +27,11 @@ class PageHeader {
27
27
  }, ...(ngDevMode ? [{ debugName: "backIcon" }] : /* istanbul ignore next */ []));
28
28
  hasTabs = computed(() => this.tabs().length > 0, ...(ngDevMode ? [{ debugName: "hasTabs" }] : /* istanbul ignore next */ []));
29
29
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: PageHeader, deps: [], target: i0.ɵɵFactoryTarget.Component });
30
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.8", type: PageHeader, isStandalone: true, selector: "mt-page-header", inputs: { backButton: { classPropertyName: "backButton", publicName: "backButton", isSignal: true, isRequired: false, transformFunction: null }, backButtonIcon: { classPropertyName: "backButtonIcon", publicName: "backButtonIcon", isSignal: true, isRequired: false, transformFunction: null }, avatarIcon: { classPropertyName: "avatarIcon", publicName: "avatarIcon", isSignal: true, isRequired: false, transformFunction: null }, avatarStyle: { classPropertyName: "avatarStyle", publicName: "avatarStyle", isSignal: true, isRequired: false, transformFunction: null }, avatarShape: { classPropertyName: "avatarShape", publicName: "avatarShape", isSignal: true, isRequired: false, transformFunction: null }, title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: true, transformFunction: null }, tabs: { classPropertyName: "tabs", publicName: "tabs", isSignal: true, isRequired: false, transformFunction: null }, activeTab: { classPropertyName: "activeTab", publicName: "activeTab", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { backButtonClick: "backButtonClick", tabChange: "tabChange" }, queries: [{ propertyName: "titleEnd", first: true, predicate: ["titleEnd"], descendants: true, isSignal: true }, { propertyName: "headerEnd", first: true, predicate: ["headerEnd"], descendants: true, isSignal: true }], ngImport: i0, template: "<div\r\n class=\"grid grid-cols-[minmax(0,1fr)_auto_minmax(0,1fr)] items-center gap-3 bg-content p-3 border-b border-surface min-h-18.5 max-[1025px]:flex max-[1025px]:flex-wrap max-[1025px]:items-center\"\r\n>\r\n <div class=\"flex min-w-0 items-center gap-2 max-[1025px]:flex-wrap\">\r\n @if (backButton()) {\r\n <mt-button\r\n [text]=\"true\"\r\n [icon]=\"backIcon()\"\r\n size=\"large\"\r\n (click)=\"backButtonClick.emit()\"\r\n >\r\n </mt-button>\r\n }\r\n\r\n @if (avatarIcon()) {\r\n <mt-avatar\r\n [icon]=\"avatarIcon()\"\r\n [shape]=\"avatarShape()\"\r\n [style]=\"avatarStyle()\"\r\n >\r\n </mt-avatar>\r\n }\r\n\r\n <!-- <h1>, not <h3>: this is the page's own title and every page routes\r\n through this header, so promoting it here gives the whole app the\r\n single top-level heading it was missing (finding H-04 \u2014 measured as\r\n zero <h1> on every page). The size and weight are set by the classes,\r\n so nothing changes visually. -->\r\n <h1 class=\"min-w-0 truncate font-bold text-lg\">{{ title() }}</h1>\r\n\r\n @if (titleEnd(); as template) {\r\n <ng-container [ngTemplateOutlet]=\"template\" />\r\n }\r\n </div>\r\n\r\n @if (hasTabs()) {\r\n <div class=\"min-w-0 justify-self-center\">\r\n <div class=\"min-w-0 max-[1025px]:overflow-x-auto\">\r\n <mt-tabs\r\n class=\"max-[1025px]:min-w-max\"\r\n [options]=\"tabs()\"\r\n [active]=\"activeTab()\"\r\n size=\"large\"\r\n (onChange)=\"tabChange.emit($event)\"\r\n >\r\n </mt-tabs>\r\n </div>\r\n </div>\r\n }\r\n\r\n <div\r\n class=\"min-w-0 justify-self-end min-[1025px]:col-start-3 min-[1025px]:col-end-4 max-[1025px]:ml-auto\"\r\n >\r\n @if (headerEnd(); as template) {\r\n <div class=\"flex gap-2 max-[1025px]:flex-wrap justify-end\">\r\n <ng-container [ngTemplateOutlet]=\"template\" />\r\n </div>\r\n }\r\n </div>\r\n</div>\r\n", dependencies: [{ kind: "component", type: Avatar, selector: "mt-avatar", inputs: ["label", "icon", "image", "styleClass", "size", "shape", "badge", "badgeSize", "badgeSeverity"], outputs: ["onImageError"] }, { kind: "component", type: Button, selector: "mt-button", inputs: ["icon", "label", "tooltip", "class", "type", "styleClass", "severity", "badge", "variant", "badgeSeverity", "size", "iconPos", "autofocus", "fluid", "raised", "rounded", "text", "plain", "outlined", "link", "disabled", "loading", "pInputs", "ariaLabel"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "component", type: Tabs, selector: "mt-tabs", inputs: ["options", "optionLabel", "optionValue", "active", "mode", "moreLabel", "defaultIcon", "size", "fluid", "disabled", "searchThreshold"], outputs: ["activeChange", "onChange"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
30
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.8", type: PageHeader, isStandalone: true, selector: "mt-page-header", inputs: { backButton: { classPropertyName: "backButton", publicName: "backButton", isSignal: true, isRequired: false, transformFunction: null }, backButtonIcon: { classPropertyName: "backButtonIcon", publicName: "backButtonIcon", isSignal: true, isRequired: false, transformFunction: null }, avatarIcon: { classPropertyName: "avatarIcon", publicName: "avatarIcon", isSignal: true, isRequired: false, transformFunction: null }, avatarStyle: { classPropertyName: "avatarStyle", publicName: "avatarStyle", isSignal: true, isRequired: false, transformFunction: null }, avatarShape: { classPropertyName: "avatarShape", publicName: "avatarShape", isSignal: true, isRequired: false, transformFunction: null }, title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: true, transformFunction: null }, tabs: { classPropertyName: "tabs", publicName: "tabs", isSignal: true, isRequired: false, transformFunction: null }, activeTab: { classPropertyName: "activeTab", publicName: "activeTab", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { backButtonClick: "backButtonClick", tabChange: "tabChange" }, queries: [{ propertyName: "titleEnd", first: true, predicate: ["titleEnd"], descendants: true, isSignal: true }, { propertyName: "headerEnd", first: true, predicate: ["headerEnd"], descendants: true, isSignal: true }], ngImport: i0, template: "<div\r\n class=\"grid grid-cols-[minmax(0,1fr)_minmax(0,auto)_minmax(0,1fr)] items-center gap-3 bg-content p-3 border-b border-surface min-h-18.5 max-[1025px]:flex max-[1025px]:flex-wrap max-[1025px]:items-center\"\r\n>\r\n <div class=\"flex min-w-0 items-center gap-2 max-[1025px]:flex-wrap\">\r\n @if (backButton()) {\r\n <mt-button\r\n [text]=\"true\"\r\n [icon]=\"backIcon()\"\r\n size=\"large\"\r\n (click)=\"backButtonClick.emit()\"\r\n >\r\n </mt-button>\r\n }\r\n\r\n @if (avatarIcon()) {\r\n <mt-avatar\r\n [icon]=\"avatarIcon()\"\r\n [shape]=\"avatarShape()\"\r\n [style]=\"avatarStyle()\"\r\n >\r\n </mt-avatar>\r\n }\r\n\r\n <!-- <h1>, not <h3>: this is the page's own title and every page routes\r\n through this header, so promoting it here gives the whole app the\r\n single top-level heading it was missing (finding H-04 \u2014 measured as\r\n zero <h1> on every page). The size and weight are set by the classes,\r\n so nothing changes visually. -->\r\n <h1 class=\"min-w-0 truncate font-bold text-lg\">{{ title() }}</h1>\r\n\r\n @if (titleEnd(); as template) {\r\n <ng-container [ngTemplateOutlet]=\"template\" />\r\n }\r\n </div>\r\n\r\n @if (hasTabs()) {\r\n <div class=\"min-w-0 justify-self-center\">\r\n <div class=\"min-w-0 overflow-x-auto\">\r\n <mt-tabs\r\n class=\"min-w-max\"\r\n [options]=\"tabs()\"\r\n [active]=\"activeTab()\"\r\n size=\"large\"\r\n (onChange)=\"tabChange.emit($event)\"\r\n >\r\n </mt-tabs>\r\n </div>\r\n </div>\r\n }\r\n\r\n <div\r\n class=\"min-w-0 justify-self-end min-[1025px]:col-start-3 min-[1025px]:col-end-4 max-[1025px]:ml-auto\"\r\n >\r\n @if (headerEnd(); as template) {\r\n <div class=\"flex gap-2 max-[1025px]:flex-wrap justify-end\">\r\n <ng-container [ngTemplateOutlet]=\"template\" />\r\n </div>\r\n }\r\n </div>\r\n</div>\r\n", dependencies: [{ kind: "component", type: Avatar, selector: "mt-avatar", inputs: ["label", "icon", "image", "styleClass", "size", "shape", "badge", "badgeSize", "badgeSeverity"], outputs: ["onImageError"] }, { kind: "component", type: Button, selector: "mt-button", inputs: ["icon", "label", "tooltip", "class", "type", "styleClass", "severity", "badge", "variant", "badgeSeverity", "size", "iconPos", "autofocus", "fluid", "raised", "rounded", "text", "plain", "outlined", "link", "disabled", "loading", "pInputs", "ariaLabel"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "component", type: Tabs, selector: "mt-tabs", inputs: ["options", "optionLabel", "optionValue", "active", "mode", "moreLabel", "defaultIcon", "size", "fluid", "disabled", "searchThreshold"], outputs: ["activeChange", "onChange"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
31
31
  }
32
32
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: PageHeader, decorators: [{
33
33
  type: Component,
34
- args: [{ selector: 'mt-page-header', standalone: true, imports: [Avatar, Button, Tabs, NgTemplateOutlet], template: "<div\r\n class=\"grid grid-cols-[minmax(0,1fr)_auto_minmax(0,1fr)] items-center gap-3 bg-content p-3 border-b border-surface min-h-18.5 max-[1025px]:flex max-[1025px]:flex-wrap max-[1025px]:items-center\"\r\n>\r\n <div class=\"flex min-w-0 items-center gap-2 max-[1025px]:flex-wrap\">\r\n @if (backButton()) {\r\n <mt-button\r\n [text]=\"true\"\r\n [icon]=\"backIcon()\"\r\n size=\"large\"\r\n (click)=\"backButtonClick.emit()\"\r\n >\r\n </mt-button>\r\n }\r\n\r\n @if (avatarIcon()) {\r\n <mt-avatar\r\n [icon]=\"avatarIcon()\"\r\n [shape]=\"avatarShape()\"\r\n [style]=\"avatarStyle()\"\r\n >\r\n </mt-avatar>\r\n }\r\n\r\n <!-- <h1>, not <h3>: this is the page's own title and every page routes\r\n through this header, so promoting it here gives the whole app the\r\n single top-level heading it was missing (finding H-04 \u2014 measured as\r\n zero <h1> on every page). The size and weight are set by the classes,\r\n so nothing changes visually. -->\r\n <h1 class=\"min-w-0 truncate font-bold text-lg\">{{ title() }}</h1>\r\n\r\n @if (titleEnd(); as template) {\r\n <ng-container [ngTemplateOutlet]=\"template\" />\r\n }\r\n </div>\r\n\r\n @if (hasTabs()) {\r\n <div class=\"min-w-0 justify-self-center\">\r\n <div class=\"min-w-0 max-[1025px]:overflow-x-auto\">\r\n <mt-tabs\r\n class=\"max-[1025px]:min-w-max\"\r\n [options]=\"tabs()\"\r\n [active]=\"activeTab()\"\r\n size=\"large\"\r\n (onChange)=\"tabChange.emit($event)\"\r\n >\r\n </mt-tabs>\r\n </div>\r\n </div>\r\n }\r\n\r\n <div\r\n class=\"min-w-0 justify-self-end min-[1025px]:col-start-3 min-[1025px]:col-end-4 max-[1025px]:ml-auto\"\r\n >\r\n @if (headerEnd(); as template) {\r\n <div class=\"flex gap-2 max-[1025px]:flex-wrap justify-end\">\r\n <ng-container [ngTemplateOutlet]=\"template\" />\r\n </div>\r\n }\r\n </div>\r\n</div>\r\n" }]
34
+ args: [{ selector: 'mt-page-header', standalone: true, imports: [Avatar, Button, Tabs, NgTemplateOutlet], template: "<div\r\n class=\"grid grid-cols-[minmax(0,1fr)_minmax(0,auto)_minmax(0,1fr)] items-center gap-3 bg-content p-3 border-b border-surface min-h-18.5 max-[1025px]:flex max-[1025px]:flex-wrap max-[1025px]:items-center\"\r\n>\r\n <div class=\"flex min-w-0 items-center gap-2 max-[1025px]:flex-wrap\">\r\n @if (backButton()) {\r\n <mt-button\r\n [text]=\"true\"\r\n [icon]=\"backIcon()\"\r\n size=\"large\"\r\n (click)=\"backButtonClick.emit()\"\r\n >\r\n </mt-button>\r\n }\r\n\r\n @if (avatarIcon()) {\r\n <mt-avatar\r\n [icon]=\"avatarIcon()\"\r\n [shape]=\"avatarShape()\"\r\n [style]=\"avatarStyle()\"\r\n >\r\n </mt-avatar>\r\n }\r\n\r\n <!-- <h1>, not <h3>: this is the page's own title and every page routes\r\n through this header, so promoting it here gives the whole app the\r\n single top-level heading it was missing (finding H-04 \u2014 measured as\r\n zero <h1> on every page). The size and weight are set by the classes,\r\n so nothing changes visually. -->\r\n <h1 class=\"min-w-0 truncate font-bold text-lg\">{{ title() }}</h1>\r\n\r\n @if (titleEnd(); as template) {\r\n <ng-container [ngTemplateOutlet]=\"template\" />\r\n }\r\n </div>\r\n\r\n @if (hasTabs()) {\r\n <div class=\"min-w-0 justify-self-center\">\r\n <div class=\"min-w-0 overflow-x-auto\">\r\n <mt-tabs\r\n class=\"min-w-max\"\r\n [options]=\"tabs()\"\r\n [active]=\"activeTab()\"\r\n size=\"large\"\r\n (onChange)=\"tabChange.emit($event)\"\r\n >\r\n </mt-tabs>\r\n </div>\r\n </div>\r\n }\r\n\r\n <div\r\n class=\"min-w-0 justify-self-end min-[1025px]:col-start-3 min-[1025px]:col-end-4 max-[1025px]:ml-auto\"\r\n >\r\n @if (headerEnd(); as template) {\r\n <div class=\"flex gap-2 max-[1025px]:flex-wrap justify-end\">\r\n <ng-container [ngTemplateOutlet]=\"template\" />\r\n </div>\r\n }\r\n </div>\r\n</div>\r\n" }]
35
35
  }], propDecorators: { backButton: [{ type: i0.Input, args: [{ isSignal: true, alias: "backButton", required: false }] }], backButtonIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "backButtonIcon", required: false }] }], avatarIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "avatarIcon", required: false }] }], avatarStyle: [{ type: i0.Input, args: [{ isSignal: true, alias: "avatarStyle", required: false }] }], avatarShape: [{ type: i0.Input, args: [{ isSignal: true, alias: "avatarShape", required: false }] }], title: [{ type: i0.Input, args: [{ isSignal: true, alias: "title", required: true }] }], tabs: [{ type: i0.Input, args: [{ isSignal: true, alias: "tabs", required: false }] }], activeTab: [{ type: i0.Input, args: [{ isSignal: true, alias: "activeTab", required: false }] }], titleEnd: [{ type: i0.ContentChild, args: ['titleEnd', { isSignal: true }] }], headerEnd: [{ type: i0.ContentChild, args: ['headerEnd', { isSignal: true }] }], backButtonClick: [{ type: i0.Output, args: ["backButtonClick"] }], tabChange: [{ type: i0.Output, args: ["tabChange"] }] } });
36
36
 
37
37
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"masterteam-components-page-header.mjs","sources":["../../../../packages/masterteam/components/page-header/page-header.ts","../../../../packages/masterteam/components/page-header/page-header.html","../../../../packages/masterteam/components/page-header/masterteam-components-page-header.ts"],"sourcesContent":["import { NgTemplateOutlet } from '@angular/common';\r\nimport {\r\n Component,\r\n input,\r\n output,\r\n computed,\r\n contentChild,\r\n TemplateRef,\r\n signal,\r\n booleanAttribute,\r\n} from '@angular/core';\r\nimport { Avatar } from '@masterteam/components/avatar';\r\nimport { Button } from '@masterteam/components/button';\r\nimport { Tabs } from '@masterteam/components/tabs';\r\nimport { MTIcon } from '@masterteam/icons';\r\n\r\nexport interface PageHeaderTab {\r\n label: string;\r\n value: string | number;\r\n}\r\n\r\n@Component({\r\n selector: 'mt-page-header',\r\n standalone: true,\r\n imports: [Avatar, Button, Tabs, NgTemplateOutlet],\r\n templateUrl: './page-header.html',\r\n})\r\nexport class PageHeader {\r\n backButton = input<boolean, unknown>(false, { transform: booleanAttribute });\r\n backButtonIcon = input<'arrow' | 'close'>('arrow');\r\n avatarIcon = input<MTIcon>();\r\n avatarStyle = input<Record<string, string>>({});\r\n avatarShape = input<'circle' | 'square'>('square');\r\n title = input.required<string>();\r\n tabs = input<PageHeaderTab[]>([]);\r\n activeTab = input<string | number>();\r\n\r\n titleEnd = contentChild<TemplateRef<any>>('titleEnd');\r\n headerEnd = contentChild<TemplateRef<any>>('headerEnd');\r\n\r\n backButtonClick = output<void>();\r\n tabChange = output<string | number>();\r\n\r\n rtl = signal<boolean>(document.documentElement.dir === 'rtl');\r\n\r\n backIcon = computed(() => {\r\n if (this.backButtonIcon() === 'close') {\r\n return 'general.x-close';\r\n }\r\n return this.rtl() ? 'arrow.arrow-narrow-right' : 'arrow.arrow-narrow-left';\r\n });\r\n\r\n hasTabs = computed(() => this.tabs().length > 0);\r\n}\r\n","<div\r\n class=\"grid grid-cols-[minmax(0,1fr)_auto_minmax(0,1fr)] items-center gap-3 bg-content p-3 border-b border-surface min-h-18.5 max-[1025px]:flex max-[1025px]:flex-wrap max-[1025px]:items-center\"\r\n>\r\n <div class=\"flex min-w-0 items-center gap-2 max-[1025px]:flex-wrap\">\r\n @if (backButton()) {\r\n <mt-button\r\n [text]=\"true\"\r\n [icon]=\"backIcon()\"\r\n size=\"large\"\r\n (click)=\"backButtonClick.emit()\"\r\n >\r\n </mt-button>\r\n }\r\n\r\n @if (avatarIcon()) {\r\n <mt-avatar\r\n [icon]=\"avatarIcon()\"\r\n [shape]=\"avatarShape()\"\r\n [style]=\"avatarStyle()\"\r\n >\r\n </mt-avatar>\r\n }\r\n\r\n <!-- <h1>, not <h3>: this is the page's own title and every page routes\r\n through this header, so promoting it here gives the whole app the\r\n single top-level heading it was missing (finding H-04 — measured as\r\n zero <h1> on every page). The size and weight are set by the classes,\r\n so nothing changes visually. -->\r\n <h1 class=\"min-w-0 truncate font-bold text-lg\">{{ title() }}</h1>\r\n\r\n @if (titleEnd(); as template) {\r\n <ng-container [ngTemplateOutlet]=\"template\" />\r\n }\r\n </div>\r\n\r\n @if (hasTabs()) {\r\n <div class=\"min-w-0 justify-self-center\">\r\n <div class=\"min-w-0 max-[1025px]:overflow-x-auto\">\r\n <mt-tabs\r\n class=\"max-[1025px]:min-w-max\"\r\n [options]=\"tabs()\"\r\n [active]=\"activeTab()\"\r\n size=\"large\"\r\n (onChange)=\"tabChange.emit($event)\"\r\n >\r\n </mt-tabs>\r\n </div>\r\n </div>\r\n }\r\n\r\n <div\r\n class=\"min-w-0 justify-self-end min-[1025px]:col-start-3 min-[1025px]:col-end-4 max-[1025px]:ml-auto\"\r\n >\r\n @if (headerEnd(); as template) {\r\n <div class=\"flex gap-2 max-[1025px]:flex-wrap justify-end\">\r\n <ng-container [ngTemplateOutlet]=\"template\" />\r\n </div>\r\n }\r\n </div>\r\n</div>\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;MA2Ba,UAAU,CAAA;IACrB,UAAU,GAAG,KAAK,CAAmB,KAAK,kFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;AAC5E,IAAA,cAAc,GAAG,KAAK,CAAoB,OAAO,qFAAC;IAClD,UAAU,GAAG,KAAK,CAAA,IAAA,SAAA,GAAA,CAAA,SAAA,EAAA,EAAA,SAAA,EAAA,YAAA,EAAA,CAAA,8BAAA,EAAA,CAAA,CAAU;AAC5B,IAAA,WAAW,GAAG,KAAK,CAAyB,EAAE,kFAAC;AAC/C,IAAA,WAAW,GAAG,KAAK,CAAsB,QAAQ,kFAAC;AAClD,IAAA,KAAK,GAAG,KAAK,CAAC,QAAQ,2EAAU;AAChC,IAAA,IAAI,GAAG,KAAK,CAAkB,EAAE,2EAAC;IACjC,SAAS,GAAG,KAAK,CAAA,IAAA,SAAA,GAAA,CAAA,SAAA,EAAA,EAAA,SAAA,EAAA,WAAA,EAAA,CAAA,8BAAA,EAAA,CAAA,CAAmB;AAEpC,IAAA,QAAQ,GAAG,YAAY,CAAmB,UAAU,+EAAC;AACrD,IAAA,SAAS,GAAG,YAAY,CAAmB,WAAW,gFAAC;IAEvD,eAAe,GAAG,MAAM,EAAQ;IAChC,SAAS,GAAG,MAAM,EAAmB;IAErC,GAAG,GAAG,MAAM,CAAU,QAAQ,CAAC,eAAe,CAAC,GAAG,KAAK,KAAK,EAAA,IAAA,SAAA,GAAA,CAAA,EAAA,SAAA,EAAA,KAAA,EAAA,CAAA,8BAAA,EAAA,CAAA,CAAC;AAE7D,IAAA,QAAQ,GAAG,QAAQ,CAAC,MAAK;AACvB,QAAA,IAAI,IAAI,CAAC,cAAc,EAAE,KAAK,OAAO,EAAE;AACrC,YAAA,OAAO,iBAAiB;QAC1B;AACA,QAAA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AAA,MAAA,EAAA,IAAA,EAAA,CAAA,WAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AEtCxD;;AAEG;;;;"}
1
+ {"version":3,"file":"masterteam-components-page-header.mjs","sources":["../../../../packages/masterteam/components/page-header/page-header.ts","../../../../packages/masterteam/components/page-header/page-header.html","../../../../packages/masterteam/components/page-header/masterteam-components-page-header.ts"],"sourcesContent":["import { NgTemplateOutlet } from '@angular/common';\r\nimport {\r\n Component,\r\n input,\r\n output,\r\n computed,\r\n contentChild,\r\n TemplateRef,\r\n signal,\r\n booleanAttribute,\r\n} from '@angular/core';\r\nimport { Avatar } from '@masterteam/components/avatar';\r\nimport { Button } from '@masterteam/components/button';\r\nimport { Tabs } from '@masterteam/components/tabs';\r\nimport { MTIcon } from '@masterteam/icons';\r\n\r\nexport interface PageHeaderTab {\r\n label: string;\r\n value: string | number;\r\n}\r\n\r\n@Component({\r\n selector: 'mt-page-header',\r\n standalone: true,\r\n imports: [Avatar, Button, Tabs, NgTemplateOutlet],\r\n templateUrl: './page-header.html',\r\n})\r\nexport class PageHeader {\r\n backButton = input<boolean, unknown>(false, { transform: booleanAttribute });\r\n backButtonIcon = input<'arrow' | 'close'>('arrow');\r\n avatarIcon = input<MTIcon>();\r\n avatarStyle = input<Record<string, string>>({});\r\n avatarShape = input<'circle' | 'square'>('square');\r\n title = input.required<string>();\r\n tabs = input<PageHeaderTab[]>([]);\r\n activeTab = input<string | number>();\r\n\r\n titleEnd = contentChild<TemplateRef<any>>('titleEnd');\r\n headerEnd = contentChild<TemplateRef<any>>('headerEnd');\r\n\r\n backButtonClick = output<void>();\r\n tabChange = output<string | number>();\r\n\r\n rtl = signal<boolean>(document.documentElement.dir === 'rtl');\r\n\r\n backIcon = computed(() => {\r\n if (this.backButtonIcon() === 'close') {\r\n return 'general.x-close';\r\n }\r\n return this.rtl() ? 'arrow.arrow-narrow-right' : 'arrow.arrow-narrow-left';\r\n });\r\n\r\n hasTabs = computed(() => this.tabs().length > 0);\r\n}\r\n","<div\r\n class=\"grid grid-cols-[minmax(0,1fr)_minmax(0,auto)_minmax(0,1fr)] items-center gap-3 bg-content p-3 border-b border-surface min-h-18.5 max-[1025px]:flex max-[1025px]:flex-wrap max-[1025px]:items-center\"\r\n>\r\n <div class=\"flex min-w-0 items-center gap-2 max-[1025px]:flex-wrap\">\r\n @if (backButton()) {\r\n <mt-button\r\n [text]=\"true\"\r\n [icon]=\"backIcon()\"\r\n size=\"large\"\r\n (click)=\"backButtonClick.emit()\"\r\n >\r\n </mt-button>\r\n }\r\n\r\n @if (avatarIcon()) {\r\n <mt-avatar\r\n [icon]=\"avatarIcon()\"\r\n [shape]=\"avatarShape()\"\r\n [style]=\"avatarStyle()\"\r\n >\r\n </mt-avatar>\r\n }\r\n\r\n <!-- <h1>, not <h3>: this is the page's own title and every page routes\r\n through this header, so promoting it here gives the whole app the\r\n single top-level heading it was missing (finding H-04 — measured as\r\n zero <h1> on every page). The size and weight are set by the classes,\r\n so nothing changes visually. -->\r\n <h1 class=\"min-w-0 truncate font-bold text-lg\">{{ title() }}</h1>\r\n\r\n @if (titleEnd(); as template) {\r\n <ng-container [ngTemplateOutlet]=\"template\" />\r\n }\r\n </div>\r\n\r\n @if (hasTabs()) {\r\n <div class=\"min-w-0 justify-self-center\">\r\n <div class=\"min-w-0 overflow-x-auto\">\r\n <mt-tabs\r\n class=\"min-w-max\"\r\n [options]=\"tabs()\"\r\n [active]=\"activeTab()\"\r\n size=\"large\"\r\n (onChange)=\"tabChange.emit($event)\"\r\n >\r\n </mt-tabs>\r\n </div>\r\n </div>\r\n }\r\n\r\n <div\r\n class=\"min-w-0 justify-self-end min-[1025px]:col-start-3 min-[1025px]:col-end-4 max-[1025px]:ml-auto\"\r\n >\r\n @if (headerEnd(); as template) {\r\n <div class=\"flex gap-2 max-[1025px]:flex-wrap justify-end\">\r\n <ng-container [ngTemplateOutlet]=\"template\" />\r\n </div>\r\n }\r\n </div>\r\n</div>\r\n","/**\n * Generated bundle index.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;;AAEG;;;;"}
@@ -70,6 +70,13 @@ class SelectField {
70
70
  label = input('', ...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
71
71
  /** Unique; shared by the control and its <label for>. See src/lib/utils/field-id. */
72
72
  fieldId = newFieldId('mt-select-field');
73
+ labelId = `${this.fieldId}-label`;
74
+ /**
75
+ * PrimeNG's focusable element is a `span[role=combobox]`, which `<label for>`
76
+ * cannot name, so assistive technology only heard the value ("Any"). Naming
77
+ * it by the label plus itself announces "Category, Any".
78
+ */
79
+ comboboxLabelledBy = computed(() => this.label() ? `${this.labelId} ${this.fieldId}` : undefined, ...(ngDevMode ? [{ debugName: "comboboxLabelledBy" }] : /* istanbul ignore next */ []));
73
80
  placeholder = input('', ...(ngDevMode ? [{ debugName: "placeholder" }] : /* istanbul ignore next */ []));
74
81
  hasPlaceholderPrefix = input(true, ...(ngDevMode ? [{ debugName: "hasPlaceholderPrefix" }] : /* istanbul ignore next */ []));
75
82
  class = input('', ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
@@ -414,7 +421,7 @@ class SelectField {
414
421
  optionOrValue);
415
422
  }
416
423
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: SelectField, deps: [], target: i0.ɵɵFactoryTarget.Component });
417
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.8", type: SelectField, isStandalone: true, selector: "mt-select-field", inputs: { field: { classPropertyName: "field", publicName: "field", isSignal: true, isRequired: false, transformFunction: null }, hint: { classPropertyName: "hint", publicName: "hint", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, hasPlaceholderPrefix: { classPropertyName: "hasPlaceholderPrefix", publicName: "hasPlaceholderPrefix", isSignal: true, isRequired: false, transformFunction: null }, class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, readonly: { classPropertyName: "readonly", publicName: "readonly", isSignal: true, isRequired: false, transformFunction: null }, pInputs: { classPropertyName: "pInputs", publicName: "pInputs", isSignal: true, isRequired: false, transformFunction: null }, options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null }, optionValue: { classPropertyName: "optionValue", publicName: "optionValue", isSignal: true, isRequired: false, transformFunction: null }, optionLabel: { classPropertyName: "optionLabel", publicName: "optionLabel", isSignal: true, isRequired: false, transformFunction: null }, filter: { classPropertyName: "filter", publicName: "filter", isSignal: true, isRequired: false, transformFunction: null }, filterBy: { classPropertyName: "filterBy", publicName: "filterBy", isSignal: true, isRequired: false, transformFunction: null }, dataKey: { classPropertyName: "dataKey", publicName: "dataKey", isSignal: true, isRequired: false, transformFunction: null }, showClear: { classPropertyName: "showClear", publicName: "showClear", isSignal: true, isRequired: false, transformFunction: null }, clearAfterSelect: { classPropertyName: "clearAfterSelect", publicName: "clearAfterSelect", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, group: { classPropertyName: "group", publicName: "group", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, optionGroupLabel: { classPropertyName: "optionGroupLabel", publicName: "optionGroupLabel", isSignal: true, isRequired: false, transformFunction: null }, optionGroupChildren: { classPropertyName: "optionGroupChildren", publicName: "optionGroupChildren", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, optionIcon: { classPropertyName: "optionIcon", publicName: "optionIcon", isSignal: true, isRequired: false, transformFunction: null }, optionIconColor: { classPropertyName: "optionIconColor", publicName: "optionIconColor", isSignal: true, isRequired: false, transformFunction: null }, optionIconShape: { classPropertyName: "optionIconShape", publicName: "optionIconShape", isSignal: true, isRequired: false, transformFunction: null }, optionAvatarShape: { classPropertyName: "optionAvatarShape", publicName: "optionAvatarShape", isSignal: true, isRequired: false, transformFunction: null }, optionGroupIcon: { classPropertyName: "optionGroupIcon", publicName: "optionGroupIcon", isSignal: true, isRequired: false, transformFunction: null }, optionGroupIconColor: { classPropertyName: "optionGroupIconColor", publicName: "optionGroupIconColor", isSignal: true, isRequired: false, transformFunction: null }, optionGroupIconShape: { classPropertyName: "optionGroupIconShape", publicName: "optionGroupIconShape", isSignal: true, isRequired: false, transformFunction: null }, optionGroupAvatarShape: { classPropertyName: "optionGroupAvatarShape", publicName: "optionGroupAvatarShape", isSignal: true, isRequired: false, transformFunction: null }, markCurrentUser: { classPropertyName: "markCurrentUser", publicName: "markCurrentUser", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onChange: "onChange" }, host: { properties: { "class.gap-1": "label() || hint()", "class": "this.styleClass" }, classAttribute: "grid" }, viewQueries: [{ propertyName: "dropdown", first: true, predicate: ["dropdown"], descendants: true, static: true }], usesOnChanges: true, ngImport: i0, template: "@if (label() || hint()) {\r\n <div class=\"flex items-center gap-1\">\r\n @if (label()) {\r\n <label\r\n (click)=\"dropdown.show(); dropdown.focus()\"\r\n [class.required]=\"isRequiredField()\"\r\n [for]=\"fieldId\"\r\n >{{ label() }}</label\r\n >\r\n }\r\n @if (hint()) {\r\n <span\r\n class=\"inline-flex text-surface-400\"\r\n [mtTooltip]=\"hint()\"\r\n tooltipPosition=\"top\"\r\n >\r\n <mt-icon icon=\"general.help-circle\" />\r\n </span>\r\n }\r\n </div>\r\n}\r\n<!-- `inputId` only, never `id`: PrimeNG puts `inputId` on the focusable inner\r\n input and `id` on the host, so binding both stamped one id onto two\r\n elements. That is invalid HTML, and `<label for>` then resolves to\r\n whichever comes first in the document. The label needs the input. -->\r\n<p-select\r\n #dropdown\r\n appendTo=\"body\"\r\n [overlayOptions]=\"{ baseZIndex: 1051 }\"\r\n [ngModel]=\"value()\"\r\n (ngModelChange)=\"onValueChange($event)\"\r\n [options]=\"displayOptions()\"\r\n [optionLabel]=\"optionLabel()\"\r\n [optionValue]=\"optionValue()\"\r\n (onBlur)=\"onTouched()\"\r\n (onFilter)=\"onDropdownFilter()\"\r\n [disabled]=\"disabled() || readonly()\"\r\n [inputId]=\"fieldId\"\r\n [invalid]=\"!dropdown.overlayVisible && isInvalid(ngControl?.control)\"\r\n [placeholder]=\"placeholder() || label() || ''\"\r\n [filter]=\"filter()\"\r\n [filterBy]=\"filterBy()\"\r\n [dataKey]=\"dataKey()\"\r\n [styleClass]=\"size() === 'small' ? ' mt-select-sm' : ''\"\r\n [showClear]=\"isClearable()\"\r\n [group]=\"isGrouped()\"\r\n [optionGroupLabel]=\"optionGroupLabel()\"\r\n [optionGroupChildren]=\"optionGroupChildren()\"\r\n [loading]=\"loading()\"\r\n [fluid]=\"true\"\r\n [size]=\"pSelectSize()\"\r\n [panelStyleClass]=\"panelSizeClass()\"\r\n [panelStyle]=\"panelStyle()\"\r\n>\r\n <ng-template let-option #selectedItem>\r\n @if (option) {\r\n <div class=\"flex items-center gap-2 overflow-hidden\">\r\n @if (shouldRenderOptionColorSwatch(option)) {\r\n <span\r\n class=\"h-3 w-3 shrink-0 rounded-[4px] border border-surface-300\"\r\n [style.backgroundColor]=\"getOptionSwatchColor(option)\"\r\n ></span>\r\n } @else if (getOptionIcon(option)) {\r\n <mt-avatar\r\n [style.--p-avatar-background]=\"getOptionAvatarBackground(option)\"\r\n [style.--p-avatar-color]=\"getOptionAvatarColor(option)\"\r\n [icon]=\"getOptionIcon(option)\"\r\n [shape]=\"getOptionAvatarShape(option)\"\r\n size=\"normal\"\r\n />\r\n }\r\n <span\r\n class=\"min-w-0 flex-1 truncate\"\r\n mtTruncateTooltip\r\n tooltipPosition=\"top\"\r\n >{{ getOptionDisplayLabel(option) }}</span\r\n >\r\n </div>\r\n } @else {\r\n <span class=\"text-color-secondary\">{{\r\n placeholder() || label() || \"\"\r\n }}</span>\r\n }\r\n </ng-template>\r\n\r\n <ng-template let-option #item>\r\n <div class=\"flex items-center gap-2 overflow-hidden\">\r\n @if (shouldRenderOptionColorSwatch(option)) {\r\n <span\r\n class=\"h-3 w-3 shrink-0 rounded-[4px] border border-surface-300\"\r\n [style.backgroundColor]=\"getOptionSwatchColor(option)\"\r\n ></span>\r\n } @else if (getOptionIcon(option)) {\r\n <mt-avatar\r\n [style.--p-avatar-background]=\"getOptionAvatarBackground(option)\"\r\n [style.--p-avatar-color]=\"getOptionAvatarColor(option)\"\r\n [icon]=\"getOptionIcon(option)\"\r\n [shape]=\"getOptionAvatarShape(option)\"\r\n size=\"normal\"\r\n />\r\n }\r\n <span\r\n class=\"min-w-0 flex-1 truncate\"\r\n mtTruncateTooltip\r\n tooltipPosition=\"top\"\r\n >{{ getOptionDisplayLabel(option) }}</span\r\n >\r\n @if (isCurrentUserOption(option)) {\r\n <span\r\n class=\"shrink-0 text-xs px-1.5 py-0.5 rounded bg-primary-100 text-primary-700 dark:bg-primary-900/40 dark:text-primary-300 font-medium\"\r\n >\r\n {{ \"components.selectField.you\" | transloco }}\r\n </span>\r\n }\r\n </div>\r\n </ng-template>\r\n\r\n <ng-template let-group #group>\r\n <div class=\"flex items-center gap-2 overflow-hidden\">\r\n @if (shouldRenderGroupColorSwatch(group)) {\r\n <span\r\n class=\"h-3 w-3 shrink-0 rounded-[4px] border border-surface-300\"\r\n [style.backgroundColor]=\"getGroupSwatchColor(group)\"\r\n ></span>\r\n } @else if (getGroupIcon(group)) {\r\n <mt-avatar\r\n [style.--p-avatar-background]=\"getGroupAvatarBackground(group)\"\r\n [style.--p-avatar-color]=\"getGroupAvatarColor(group)\"\r\n [icon]=\"getGroupIcon(group)\"\r\n [shape]=\"getGroupAvatarShape(group)\"\r\n size=\"normal\"\r\n />\r\n }\r\n <span\r\n class=\"min-w-0 flex-1 truncate font-medium\"\r\n mtTruncateTooltip\r\n tooltipPosition=\"top\"\r\n >{{ getGroupDisplayLabel(group) }}</span\r\n >\r\n </div>\r\n </ng-template>\r\n</p-select>\r\n\r\n@if (ngControl) {\r\n <!-- Opening a filterable select moves focus into its search box, which blurs\r\n the field and marks it touched while the user is still choosing. Hold\r\n the error back until the panel closes; hidden, not removed, so the\r\n reserved line under the field does not jump. -->\r\n <mt-field-validation\r\n [control]=\"ngControl?.control\"\r\n [class.mt-select-validation-paused]=\"dropdown.overlayVisible\"\r\n ></mt-field-validation>\r\n}\r\n", styles: [":host{grid-template-columns:minmax(0,1fr)}.mt-select-validation-paused{visibility:hidden}\n"], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: Select, selector: "p-select", inputs: ["id", "scrollHeight", "filter", "panelStyle", "styleClass", "panelStyleClass", "readonly", "editable", "tabindex", "placeholder", "loadingIcon", "filterPlaceholder", "filterLocale", "inputId", "dataKey", "filterBy", "filterFields", "autofocus", "resetFilterOnHide", "checkmark", "dropdownIcon", "loading", "optionLabel", "optionValue", "optionDisabled", "optionGroupLabel", "optionGroupChildren", "group", "showClear", "emptyFilterMessage", "emptyMessage", "lazy", "virtualScroll", "virtualScrollItemSize", "virtualScrollOptions", "overlayOptions", "ariaFilterLabel", "ariaLabel", "ariaLabelledBy", "filterMatchMode", "tooltip", "tooltipPosition", "tooltipPositionStyle", "tooltipStyleClass", "focusOnHover", "selectOnFocus", "autoOptionFocus", "autofocusFilter", "filterValue", "options", "appendTo", "motionOptions"], outputs: ["onChange", "onFilter", "onFocus", "onBlur", "onClick", "onShow", "onHide", "onClear", "onLazyLoad"] }, { kind: "component", type: FieldValidation, selector: "mt-field-validation", inputs: ["control", "touched", "messageId"] }, { kind: "ngmodule", type: TranslocoModule }, { 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: "pipe", type: i2.TranslocoPipe, name: "transloco" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
424
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.8", type: SelectField, isStandalone: true, selector: "mt-select-field", inputs: { field: { classPropertyName: "field", publicName: "field", isSignal: true, isRequired: false, transformFunction: null }, hint: { classPropertyName: "hint", publicName: "hint", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, hasPlaceholderPrefix: { classPropertyName: "hasPlaceholderPrefix", publicName: "hasPlaceholderPrefix", isSignal: true, isRequired: false, transformFunction: null }, class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, readonly: { classPropertyName: "readonly", publicName: "readonly", isSignal: true, isRequired: false, transformFunction: null }, pInputs: { classPropertyName: "pInputs", publicName: "pInputs", isSignal: true, isRequired: false, transformFunction: null }, options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null }, optionValue: { classPropertyName: "optionValue", publicName: "optionValue", isSignal: true, isRequired: false, transformFunction: null }, optionLabel: { classPropertyName: "optionLabel", publicName: "optionLabel", isSignal: true, isRequired: false, transformFunction: null }, filter: { classPropertyName: "filter", publicName: "filter", isSignal: true, isRequired: false, transformFunction: null }, filterBy: { classPropertyName: "filterBy", publicName: "filterBy", isSignal: true, isRequired: false, transformFunction: null }, dataKey: { classPropertyName: "dataKey", publicName: "dataKey", isSignal: true, isRequired: false, transformFunction: null }, showClear: { classPropertyName: "showClear", publicName: "showClear", isSignal: true, isRequired: false, transformFunction: null }, clearAfterSelect: { classPropertyName: "clearAfterSelect", publicName: "clearAfterSelect", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, group: { classPropertyName: "group", publicName: "group", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, optionGroupLabel: { classPropertyName: "optionGroupLabel", publicName: "optionGroupLabel", isSignal: true, isRequired: false, transformFunction: null }, optionGroupChildren: { classPropertyName: "optionGroupChildren", publicName: "optionGroupChildren", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, optionIcon: { classPropertyName: "optionIcon", publicName: "optionIcon", isSignal: true, isRequired: false, transformFunction: null }, optionIconColor: { classPropertyName: "optionIconColor", publicName: "optionIconColor", isSignal: true, isRequired: false, transformFunction: null }, optionIconShape: { classPropertyName: "optionIconShape", publicName: "optionIconShape", isSignal: true, isRequired: false, transformFunction: null }, optionAvatarShape: { classPropertyName: "optionAvatarShape", publicName: "optionAvatarShape", isSignal: true, isRequired: false, transformFunction: null }, optionGroupIcon: { classPropertyName: "optionGroupIcon", publicName: "optionGroupIcon", isSignal: true, isRequired: false, transformFunction: null }, optionGroupIconColor: { classPropertyName: "optionGroupIconColor", publicName: "optionGroupIconColor", isSignal: true, isRequired: false, transformFunction: null }, optionGroupIconShape: { classPropertyName: "optionGroupIconShape", publicName: "optionGroupIconShape", isSignal: true, isRequired: false, transformFunction: null }, optionGroupAvatarShape: { classPropertyName: "optionGroupAvatarShape", publicName: "optionGroupAvatarShape", isSignal: true, isRequired: false, transformFunction: null }, markCurrentUser: { classPropertyName: "markCurrentUser", publicName: "markCurrentUser", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onChange: "onChange" }, host: { properties: { "class.gap-1": "label() || hint()", "class": "this.styleClass" }, classAttribute: "grid" }, viewQueries: [{ propertyName: "dropdown", first: true, predicate: ["dropdown"], descendants: true, static: true }], usesOnChanges: true, ngImport: i0, template: "@if (label() || hint()) {\n <div class=\"flex items-center gap-1\">\n @if (label()) {\n <label\n (click)=\"dropdown.show(); dropdown.focus()\"\n [class.required]=\"isRequiredField()\"\n [id]=\"labelId\"\n [for]=\"fieldId\"\n >{{ label() }}</label\n >\n }\n @if (hint()) {\n <span\n class=\"inline-flex text-surface-400\"\n [mtTooltip]=\"hint()\"\n tooltipPosition=\"top\"\n >\n <mt-icon icon=\"general.help-circle\" />\n </span>\n }\n </div>\n}\n<!-- `inputId` only, never `id`: PrimeNG puts `inputId` on the focusable inner\n input and `id` on the host, so binding both stamped one id onto two\n elements. That is invalid HTML, and `<label for>` then resolves to\n whichever comes first in the document. The label needs the input. -->\n<p-select\n #dropdown\n appendTo=\"body\"\n [overlayOptions]=\"{ baseZIndex: 1051 }\"\n [ngModel]=\"value()\"\n (ngModelChange)=\"onValueChange($event)\"\n [options]=\"displayOptions()\"\n [optionLabel]=\"optionLabel()\"\n [optionValue]=\"optionValue()\"\n (onBlur)=\"onTouched()\"\n (onFilter)=\"onDropdownFilter()\"\n [disabled]=\"disabled() || readonly()\"\n [inputId]=\"fieldId\"\n [ariaLabelledBy]=\"comboboxLabelledBy()\"\n [invalid]=\"!dropdown.overlayVisible && isInvalid(ngControl?.control)\"\n [placeholder]=\"placeholder() || label() || ''\"\n [filter]=\"filter()\"\n [filterBy]=\"filterBy()\"\n [dataKey]=\"dataKey()\"\n [styleClass]=\"size() === 'small' ? ' mt-select-sm' : ''\"\n [showClear]=\"isClearable()\"\n [group]=\"isGrouped()\"\n [optionGroupLabel]=\"optionGroupLabel()\"\n [optionGroupChildren]=\"optionGroupChildren()\"\n [loading]=\"loading()\"\n [fluid]=\"true\"\n [size]=\"pSelectSize()\"\n [panelStyleClass]=\"panelSizeClass()\"\n [panelStyle]=\"panelStyle()\"\n>\n <ng-template let-option #selectedItem>\n @if (option) {\n <div class=\"flex items-center gap-2 overflow-hidden\">\n @if (shouldRenderOptionColorSwatch(option)) {\n <span\n class=\"h-3 w-3 shrink-0 rounded-[4px] border border-surface-300\"\n [style.backgroundColor]=\"getOptionSwatchColor(option)\"\n ></span>\n } @else if (getOptionIcon(option)) {\n <mt-avatar\n [style.--p-avatar-background]=\"getOptionAvatarBackground(option)\"\n [style.--p-avatar-color]=\"getOptionAvatarColor(option)\"\n [icon]=\"getOptionIcon(option)\"\n [shape]=\"getOptionAvatarShape(option)\"\n size=\"normal\"\n />\n }\n <span\n class=\"min-w-0 flex-1 truncate\"\n mtTruncateTooltip\n tooltipPosition=\"top\"\n >{{ getOptionDisplayLabel(option) }}</span\n >\n </div>\n } @else {\n <span class=\"text-color-secondary\">{{\n placeholder() || label() || \"\"\n }}</span>\n }\n </ng-template>\n\n <ng-template let-option #item>\n <div class=\"flex items-center gap-2 overflow-hidden\">\n @if (shouldRenderOptionColorSwatch(option)) {\n <span\n class=\"h-3 w-3 shrink-0 rounded-[4px] border border-surface-300\"\n [style.backgroundColor]=\"getOptionSwatchColor(option)\"\n ></span>\n } @else if (getOptionIcon(option)) {\n <mt-avatar\n [style.--p-avatar-background]=\"getOptionAvatarBackground(option)\"\n [style.--p-avatar-color]=\"getOptionAvatarColor(option)\"\n [icon]=\"getOptionIcon(option)\"\n [shape]=\"getOptionAvatarShape(option)\"\n size=\"normal\"\n />\n }\n <span\n class=\"min-w-0 flex-1 truncate\"\n mtTruncateTooltip\n tooltipPosition=\"top\"\n >{{ getOptionDisplayLabel(option) }}</span\n >\n @if (isCurrentUserOption(option)) {\n <span\n class=\"shrink-0 text-xs px-1.5 py-0.5 rounded bg-primary-100 text-primary-700 dark:bg-primary-900/40 dark:text-primary-300 font-medium\"\n >\n {{ \"components.selectField.you\" | transloco }}\n </span>\n }\n </div>\n </ng-template>\n\n <ng-template let-group #group>\n <div class=\"flex items-center gap-2 overflow-hidden\">\n @if (shouldRenderGroupColorSwatch(group)) {\n <span\n class=\"h-3 w-3 shrink-0 rounded-[4px] border border-surface-300\"\n [style.backgroundColor]=\"getGroupSwatchColor(group)\"\n ></span>\n } @else if (getGroupIcon(group)) {\n <mt-avatar\n [style.--p-avatar-background]=\"getGroupAvatarBackground(group)\"\n [style.--p-avatar-color]=\"getGroupAvatarColor(group)\"\n [icon]=\"getGroupIcon(group)\"\n [shape]=\"getGroupAvatarShape(group)\"\n size=\"normal\"\n />\n }\n <span\n class=\"min-w-0 flex-1 truncate font-medium\"\n mtTruncateTooltip\n tooltipPosition=\"top\"\n >{{ getGroupDisplayLabel(group) }}</span\n >\n </div>\n </ng-template>\n</p-select>\n\n@if (ngControl) {\n <!-- Opening a filterable select moves focus into its search box, which blurs\n the field and marks it touched while the user is still choosing. Hold\n the error back until the panel closes; hidden, not removed, so the\n reserved line under the field does not jump. -->\n <mt-field-validation\n [control]=\"ngControl?.control\"\n [class.mt-select-validation-paused]=\"dropdown.overlayVisible\"\n ></mt-field-validation>\n}\n", styles: [":host{grid-template-columns:minmax(0,1fr)}.mt-select-validation-paused{visibility:hidden}\n"], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: Select, selector: "p-select", inputs: ["id", "scrollHeight", "filter", "panelStyle", "styleClass", "panelStyleClass", "readonly", "editable", "tabindex", "placeholder", "loadingIcon", "filterPlaceholder", "filterLocale", "inputId", "dataKey", "filterBy", "filterFields", "autofocus", "resetFilterOnHide", "checkmark", "dropdownIcon", "loading", "optionLabel", "optionValue", "optionDisabled", "optionGroupLabel", "optionGroupChildren", "group", "showClear", "emptyFilterMessage", "emptyMessage", "lazy", "virtualScroll", "virtualScrollItemSize", "virtualScrollOptions", "overlayOptions", "ariaFilterLabel", "ariaLabel", "ariaLabelledBy", "filterMatchMode", "tooltip", "tooltipPosition", "tooltipPositionStyle", "tooltipStyleClass", "focusOnHover", "selectOnFocus", "autoOptionFocus", "autofocusFilter", "filterValue", "options", "appendTo", "motionOptions"], outputs: ["onChange", "onFilter", "onFocus", "onBlur", "onClick", "onShow", "onHide", "onClear", "onLazyLoad"] }, { kind: "component", type: FieldValidation, selector: "mt-field-validation", inputs: ["control", "touched", "messageId"] }, { kind: "ngmodule", type: TranslocoModule }, { 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: "pipe", type: i2.TranslocoPipe, name: "transloco" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
418
425
  }
419
426
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: SelectField, decorators: [{
420
427
  type: Component,
@@ -433,7 +440,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImpor
433
440
  // no hint that row is not rendered, so the gap becomes dead space under the
434
441
  // control and knocks it out of vertical alignment with sibling fields.
435
442
  '[class.gap-1]': 'label() || hint()',
436
- }, template: "@if (label() || hint()) {\r\n <div class=\"flex items-center gap-1\">\r\n @if (label()) {\r\n <label\r\n (click)=\"dropdown.show(); dropdown.focus()\"\r\n [class.required]=\"isRequiredField()\"\r\n [for]=\"fieldId\"\r\n >{{ label() }}</label\r\n >\r\n }\r\n @if (hint()) {\r\n <span\r\n class=\"inline-flex text-surface-400\"\r\n [mtTooltip]=\"hint()\"\r\n tooltipPosition=\"top\"\r\n >\r\n <mt-icon icon=\"general.help-circle\" />\r\n </span>\r\n }\r\n </div>\r\n}\r\n<!-- `inputId` only, never `id`: PrimeNG puts `inputId` on the focusable inner\r\n input and `id` on the host, so binding both stamped one id onto two\r\n elements. That is invalid HTML, and `<label for>` then resolves to\r\n whichever comes first in the document. The label needs the input. -->\r\n<p-select\r\n #dropdown\r\n appendTo=\"body\"\r\n [overlayOptions]=\"{ baseZIndex: 1051 }\"\r\n [ngModel]=\"value()\"\r\n (ngModelChange)=\"onValueChange($event)\"\r\n [options]=\"displayOptions()\"\r\n [optionLabel]=\"optionLabel()\"\r\n [optionValue]=\"optionValue()\"\r\n (onBlur)=\"onTouched()\"\r\n (onFilter)=\"onDropdownFilter()\"\r\n [disabled]=\"disabled() || readonly()\"\r\n [inputId]=\"fieldId\"\r\n [invalid]=\"!dropdown.overlayVisible && isInvalid(ngControl?.control)\"\r\n [placeholder]=\"placeholder() || label() || ''\"\r\n [filter]=\"filter()\"\r\n [filterBy]=\"filterBy()\"\r\n [dataKey]=\"dataKey()\"\r\n [styleClass]=\"size() === 'small' ? ' mt-select-sm' : ''\"\r\n [showClear]=\"isClearable()\"\r\n [group]=\"isGrouped()\"\r\n [optionGroupLabel]=\"optionGroupLabel()\"\r\n [optionGroupChildren]=\"optionGroupChildren()\"\r\n [loading]=\"loading()\"\r\n [fluid]=\"true\"\r\n [size]=\"pSelectSize()\"\r\n [panelStyleClass]=\"panelSizeClass()\"\r\n [panelStyle]=\"panelStyle()\"\r\n>\r\n <ng-template let-option #selectedItem>\r\n @if (option) {\r\n <div class=\"flex items-center gap-2 overflow-hidden\">\r\n @if (shouldRenderOptionColorSwatch(option)) {\r\n <span\r\n class=\"h-3 w-3 shrink-0 rounded-[4px] border border-surface-300\"\r\n [style.backgroundColor]=\"getOptionSwatchColor(option)\"\r\n ></span>\r\n } @else if (getOptionIcon(option)) {\r\n <mt-avatar\r\n [style.--p-avatar-background]=\"getOptionAvatarBackground(option)\"\r\n [style.--p-avatar-color]=\"getOptionAvatarColor(option)\"\r\n [icon]=\"getOptionIcon(option)\"\r\n [shape]=\"getOptionAvatarShape(option)\"\r\n size=\"normal\"\r\n />\r\n }\r\n <span\r\n class=\"min-w-0 flex-1 truncate\"\r\n mtTruncateTooltip\r\n tooltipPosition=\"top\"\r\n >{{ getOptionDisplayLabel(option) }}</span\r\n >\r\n </div>\r\n } @else {\r\n <span class=\"text-color-secondary\">{{\r\n placeholder() || label() || \"\"\r\n }}</span>\r\n }\r\n </ng-template>\r\n\r\n <ng-template let-option #item>\r\n <div class=\"flex items-center gap-2 overflow-hidden\">\r\n @if (shouldRenderOptionColorSwatch(option)) {\r\n <span\r\n class=\"h-3 w-3 shrink-0 rounded-[4px] border border-surface-300\"\r\n [style.backgroundColor]=\"getOptionSwatchColor(option)\"\r\n ></span>\r\n } @else if (getOptionIcon(option)) {\r\n <mt-avatar\r\n [style.--p-avatar-background]=\"getOptionAvatarBackground(option)\"\r\n [style.--p-avatar-color]=\"getOptionAvatarColor(option)\"\r\n [icon]=\"getOptionIcon(option)\"\r\n [shape]=\"getOptionAvatarShape(option)\"\r\n size=\"normal\"\r\n />\r\n }\r\n <span\r\n class=\"min-w-0 flex-1 truncate\"\r\n mtTruncateTooltip\r\n tooltipPosition=\"top\"\r\n >{{ getOptionDisplayLabel(option) }}</span\r\n >\r\n @if (isCurrentUserOption(option)) {\r\n <span\r\n class=\"shrink-0 text-xs px-1.5 py-0.5 rounded bg-primary-100 text-primary-700 dark:bg-primary-900/40 dark:text-primary-300 font-medium\"\r\n >\r\n {{ \"components.selectField.you\" | transloco }}\r\n </span>\r\n }\r\n </div>\r\n </ng-template>\r\n\r\n <ng-template let-group #group>\r\n <div class=\"flex items-center gap-2 overflow-hidden\">\r\n @if (shouldRenderGroupColorSwatch(group)) {\r\n <span\r\n class=\"h-3 w-3 shrink-0 rounded-[4px] border border-surface-300\"\r\n [style.backgroundColor]=\"getGroupSwatchColor(group)\"\r\n ></span>\r\n } @else if (getGroupIcon(group)) {\r\n <mt-avatar\r\n [style.--p-avatar-background]=\"getGroupAvatarBackground(group)\"\r\n [style.--p-avatar-color]=\"getGroupAvatarColor(group)\"\r\n [icon]=\"getGroupIcon(group)\"\r\n [shape]=\"getGroupAvatarShape(group)\"\r\n size=\"normal\"\r\n />\r\n }\r\n <span\r\n class=\"min-w-0 flex-1 truncate font-medium\"\r\n mtTruncateTooltip\r\n tooltipPosition=\"top\"\r\n >{{ getGroupDisplayLabel(group) }}</span\r\n >\r\n </div>\r\n </ng-template>\r\n</p-select>\r\n\r\n@if (ngControl) {\r\n <!-- Opening a filterable select moves focus into its search box, which blurs\r\n the field and marks it touched while the user is still choosing. Hold\r\n the error back until the panel closes; hidden, not removed, so the\r\n reserved line under the field does not jump. -->\r\n <mt-field-validation\r\n [control]=\"ngControl?.control\"\r\n [class.mt-select-validation-paused]=\"dropdown.overlayVisible\"\r\n ></mt-field-validation>\r\n}\r\n", styles: [":host{grid-template-columns:minmax(0,1fr)}.mt-select-validation-paused{visibility:hidden}\n"] }]
443
+ }, template: "@if (label() || hint()) {\n <div class=\"flex items-center gap-1\">\n @if (label()) {\n <label\n (click)=\"dropdown.show(); dropdown.focus()\"\n [class.required]=\"isRequiredField()\"\n [id]=\"labelId\"\n [for]=\"fieldId\"\n >{{ label() }}</label\n >\n }\n @if (hint()) {\n <span\n class=\"inline-flex text-surface-400\"\n [mtTooltip]=\"hint()\"\n tooltipPosition=\"top\"\n >\n <mt-icon icon=\"general.help-circle\" />\n </span>\n }\n </div>\n}\n<!-- `inputId` only, never `id`: PrimeNG puts `inputId` on the focusable inner\n input and `id` on the host, so binding both stamped one id onto two\n elements. That is invalid HTML, and `<label for>` then resolves to\n whichever comes first in the document. The label needs the input. -->\n<p-select\n #dropdown\n appendTo=\"body\"\n [overlayOptions]=\"{ baseZIndex: 1051 }\"\n [ngModel]=\"value()\"\n (ngModelChange)=\"onValueChange($event)\"\n [options]=\"displayOptions()\"\n [optionLabel]=\"optionLabel()\"\n [optionValue]=\"optionValue()\"\n (onBlur)=\"onTouched()\"\n (onFilter)=\"onDropdownFilter()\"\n [disabled]=\"disabled() || readonly()\"\n [inputId]=\"fieldId\"\n [ariaLabelledBy]=\"comboboxLabelledBy()\"\n [invalid]=\"!dropdown.overlayVisible && isInvalid(ngControl?.control)\"\n [placeholder]=\"placeholder() || label() || ''\"\n [filter]=\"filter()\"\n [filterBy]=\"filterBy()\"\n [dataKey]=\"dataKey()\"\n [styleClass]=\"size() === 'small' ? ' mt-select-sm' : ''\"\n [showClear]=\"isClearable()\"\n [group]=\"isGrouped()\"\n [optionGroupLabel]=\"optionGroupLabel()\"\n [optionGroupChildren]=\"optionGroupChildren()\"\n [loading]=\"loading()\"\n [fluid]=\"true\"\n [size]=\"pSelectSize()\"\n [panelStyleClass]=\"panelSizeClass()\"\n [panelStyle]=\"panelStyle()\"\n>\n <ng-template let-option #selectedItem>\n @if (option) {\n <div class=\"flex items-center gap-2 overflow-hidden\">\n @if (shouldRenderOptionColorSwatch(option)) {\n <span\n class=\"h-3 w-3 shrink-0 rounded-[4px] border border-surface-300\"\n [style.backgroundColor]=\"getOptionSwatchColor(option)\"\n ></span>\n } @else if (getOptionIcon(option)) {\n <mt-avatar\n [style.--p-avatar-background]=\"getOptionAvatarBackground(option)\"\n [style.--p-avatar-color]=\"getOptionAvatarColor(option)\"\n [icon]=\"getOptionIcon(option)\"\n [shape]=\"getOptionAvatarShape(option)\"\n size=\"normal\"\n />\n }\n <span\n class=\"min-w-0 flex-1 truncate\"\n mtTruncateTooltip\n tooltipPosition=\"top\"\n >{{ getOptionDisplayLabel(option) }}</span\n >\n </div>\n } @else {\n <span class=\"text-color-secondary\">{{\n placeholder() || label() || \"\"\n }}</span>\n }\n </ng-template>\n\n <ng-template let-option #item>\n <div class=\"flex items-center gap-2 overflow-hidden\">\n @if (shouldRenderOptionColorSwatch(option)) {\n <span\n class=\"h-3 w-3 shrink-0 rounded-[4px] border border-surface-300\"\n [style.backgroundColor]=\"getOptionSwatchColor(option)\"\n ></span>\n } @else if (getOptionIcon(option)) {\n <mt-avatar\n [style.--p-avatar-background]=\"getOptionAvatarBackground(option)\"\n [style.--p-avatar-color]=\"getOptionAvatarColor(option)\"\n [icon]=\"getOptionIcon(option)\"\n [shape]=\"getOptionAvatarShape(option)\"\n size=\"normal\"\n />\n }\n <span\n class=\"min-w-0 flex-1 truncate\"\n mtTruncateTooltip\n tooltipPosition=\"top\"\n >{{ getOptionDisplayLabel(option) }}</span\n >\n @if (isCurrentUserOption(option)) {\n <span\n class=\"shrink-0 text-xs px-1.5 py-0.5 rounded bg-primary-100 text-primary-700 dark:bg-primary-900/40 dark:text-primary-300 font-medium\"\n >\n {{ \"components.selectField.you\" | transloco }}\n </span>\n }\n </div>\n </ng-template>\n\n <ng-template let-group #group>\n <div class=\"flex items-center gap-2 overflow-hidden\">\n @if (shouldRenderGroupColorSwatch(group)) {\n <span\n class=\"h-3 w-3 shrink-0 rounded-[4px] border border-surface-300\"\n [style.backgroundColor]=\"getGroupSwatchColor(group)\"\n ></span>\n } @else if (getGroupIcon(group)) {\n <mt-avatar\n [style.--p-avatar-background]=\"getGroupAvatarBackground(group)\"\n [style.--p-avatar-color]=\"getGroupAvatarColor(group)\"\n [icon]=\"getGroupIcon(group)\"\n [shape]=\"getGroupAvatarShape(group)\"\n size=\"normal\"\n />\n }\n <span\n class=\"min-w-0 flex-1 truncate font-medium\"\n mtTruncateTooltip\n tooltipPosition=\"top\"\n >{{ getGroupDisplayLabel(group) }}</span\n >\n </div>\n </ng-template>\n</p-select>\n\n@if (ngControl) {\n <!-- Opening a filterable select moves focus into its search box, which blurs\n the field and marks it touched while the user is still choosing. Hold\n the error back until the panel closes; hidden, not removed, so the\n reserved line under the field does not jump. -->\n <mt-field-validation\n [control]=\"ngControl?.control\"\n [class.mt-select-validation-paused]=\"dropdown.overlayVisible\"\n ></mt-field-validation>\n}\n", styles: [":host{grid-template-columns:minmax(0,1fr)}.mt-select-validation-paused{visibility:hidden}\n"] }]
437
444
  }], ctorParameters: () => [], propDecorators: { dropdown: [{
438
445
  type: ViewChild,
439
446
  args: ['dropdown', { static: true }]
@@ -1 +1 @@
1
- {"version":3,"file":"masterteam-components-select-field.mjs","sources":["../../../../packages/masterteam/components/select-field/current-user.util.ts","../../../../packages/masterteam/components/select-field/select-field.ts","../../../../packages/masterteam/components/select-field/select-field.html","../../../../packages/masterteam/components/select-field/masterteam-components-select-field.ts"],"sourcesContent":["/**\r\n * Resolves the current authenticated user (id + displayName) from\r\n * `localStorage`, where the host application persists its NGXS `auth`\r\n * slice. Used by table filters to mark \"You\" on options that match the\r\n * logged-in user.\r\n *\r\n * The persisted shape can vary slightly between apps, so we look for the\r\n * id/displayName under a few well-known paths.\r\n */\r\nexport interface CurrentUserInfo {\r\n id?: string | number | null;\r\n displayName?: string | null;\r\n}\r\n\r\nexport function getCurrentUserFromLocalStorage(): CurrentUserInfo | null {\r\n if (typeof localStorage === 'undefined') {\r\n return null;\r\n }\r\n\r\n try {\r\n const raw = localStorage.getItem('auth');\r\n if (!raw) return null;\r\n\r\n const parsed = JSON.parse(raw) as Record<string, unknown> | null;\r\n if (!parsed || typeof parsed !== 'object') return null;\r\n\r\n const user =\r\n (parsed['user'] as Record<string, unknown> | undefined) ??\r\n ((parsed['state'] as Record<string, unknown> | undefined)?.['user'] as\r\n | Record<string, unknown>\r\n | undefined);\r\n if (!user || typeof user !== 'object') return null;\r\n\r\n const nested = user['user'] as Record<string, unknown> | undefined;\r\n\r\n const id =\r\n (user['id'] as string | number | undefined) ??\r\n (nested?.['id'] as string | number | undefined) ??\r\n (user['userId'] as string | number | undefined) ??\r\n null;\r\n\r\n const displayName =\r\n (user['displayName'] as string | undefined) ??\r\n (nested?.['displayName'] as string | undefined) ??\r\n (user['name'] as string | undefined) ??\r\n null;\r\n\r\n if (id == null && !displayName) return null;\r\n\r\n return { id, displayName };\r\n } catch {\r\n return null;\r\n }\r\n}\r\n","import {\r\n AfterViewInit,\r\n Component,\r\n DestroyRef,\r\n ElementRef,\r\n EventEmitter,\r\n HostBinding,\r\n NgZone,\r\n OnChanges,\r\n OnInit,\r\n Output,\r\n SimpleChanges,\r\n ViewChild,\r\n signal,\r\n input,\r\n inject,\r\n ChangeDetectorRef,\r\n ChangeDetectionStrategy,\r\n effect,\r\n computed,\r\n} from '@angular/core';\r\n\r\nimport {\r\n ControlValueAccessor,\r\n FormsModule,\r\n NgControl,\r\n Validators,\r\n} from '@angular/forms';\r\nimport { Select } from 'primeng/select';\r\nimport { FieldValidation } from '@masterteam/components/field-validation';\r\nimport { isInvalid, newFieldId } from '@masterteam/components';\r\nimport { TranslocoModule } from '@jsverse/transloco';\r\nimport { Avatar } from '@masterteam/components/avatar';\r\nimport { Tooltip, TruncateTooltip } from '@masterteam/components/tooltip';\r\nimport { Icon } from '@masterteam/icons';\r\nimport { getCurrentUserFromLocalStorage } from './current-user.util';\r\n\r\n/** Rendered in place of an option/group label that resolves to an empty value. */\r\nconst EMPTY_LABEL_PLACEHOLDER = '-';\r\n\r\n@Component({\r\n selector: 'mt-select-field',\r\n standalone: true,\r\n imports: [\r\n FormsModule,\r\n Select,\r\n FieldValidation,\r\n TranslocoModule,\r\n Avatar,\r\n Tooltip,\r\n TruncateTooltip,\r\n Icon,\r\n ],\r\n templateUrl: './select-field.html',\r\n styleUrls: ['./select-field.scss'],\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n host: {\r\n class: 'grid',\r\n // The gap only separates the label row from the control. With no label and\r\n // no hint that row is not rendered, so the gap becomes dead space under the\r\n // control and knocks it out of vertical alignment with sibling fields.\r\n '[class.gap-1]': 'label() || hint()',\r\n },\r\n})\r\nexport class SelectField\r\n implements ControlValueAccessor, OnInit, OnChanges, AfterViewInit\r\n{\r\n cdr = inject(ChangeDetectorRef);\r\n private el = inject(ElementRef);\r\n private zone = inject(NgZone);\r\n private destroyRef = inject(DestroyRef);\r\n\r\n @ViewChild('dropdown', { static: true })\r\n dropdown: Select;\r\n\r\n protected readonly panelStyle = signal<Record<string, string>>({});\r\n\r\n ngAfterViewInit(): void {\r\n this.zone.runOutsideAngular(() => {\r\n const ro = new ResizeObserver(() => {\r\n const width = this.el.nativeElement.offsetWidth;\r\n if (width > 0 && `${width}px` !== this.panelStyle()['width']) {\r\n this.panelStyle.set({ width: `${width}px` });\r\n }\r\n });\r\n ro.observe(this.el.nativeElement);\r\n this.destroyRef.onDestroy(() => ro.disconnect());\r\n });\r\n }\r\n\r\n readonly field = input<boolean>(true);\r\n readonly hint = input<string>();\r\n readonly label = input<string>('');\r\n\r\n /** Unique; shared by the control and its <label for>. See src/lib/utils/field-id. */\r\n readonly fieldId = newFieldId('mt-select-field');\r\n readonly placeholder = input<string>('');\r\n readonly hasPlaceholderPrefix = input<boolean>(true);\r\n readonly class = input<string>('');\r\n readonly readonly = input<boolean>(false);\r\n readonly pInputs = input<Partial<Select>>();\r\n readonly options = input<any[] | undefined>(undefined);\r\n readonly optionValue = input<string | undefined>(undefined);\r\n readonly optionLabel = input<string | undefined>(undefined);\r\n readonly filter = input<boolean | undefined>(undefined);\r\n readonly filterBy = input<string | undefined>(undefined);\r\n readonly dataKey = input<string | undefined>(undefined);\r\n /**\r\n * Clear button. Left unset it follows {@link isRequiredField}: an optional\r\n * select has to be able to go back to empty, a required one has nothing to\r\n * clear to. Pass an explicit `true` / `false` to override that.\r\n */\r\n readonly showClear = input<boolean | undefined>(undefined);\r\n readonly clearAfterSelect = input<boolean | undefined>(undefined);\r\n readonly required = input<boolean>(false); // Add readonly required input\r\n readonly group = input<boolean>(false);\r\n readonly size = input<'small' | 'large' | ''>('');\r\n\r\n readonly pSelectSize = computed(() => this.size() as 'small' | 'large' | '');\r\n\r\n readonly panelSizeClass = computed(() =>\r\n this.size() === 'small' ? 'mt-select-panel-small' : '',\r\n );\r\n readonly optionGroupLabel = input<string>('label');\r\n readonly optionGroupChildren = input<string>('items');\r\n readonly loading = input<boolean>(false);\r\n readonly optionIcon = input<string>('icon');\r\n readonly optionIconColor = input<string>('color');\r\n readonly optionIconShape = input<string>('shape');\r\n readonly optionAvatarShape = input<'circle' | 'square'>('square');\r\n readonly optionGroupIcon = input<string>('icon');\r\n readonly optionGroupIconColor = input<string>('color');\r\n readonly optionGroupIconShape = input<string>('shape');\r\n readonly optionGroupAvatarShape = input<'circle' | 'square'>('square');\r\n\r\n /**\r\n * When true, this select represents a user picker (e.g. a table filter for\r\n * a user column). The component reads the logged-in user from\r\n * `localStorage` and marks the matching option with a \"You\" badge.\r\n */\r\n readonly markCurrentUser = input<boolean>(false);\r\n\r\n protected readonly currentUser = computed(() =>\r\n this.markCurrentUser() ? getCurrentUserFromLocalStorage() : null,\r\n );\r\n\r\n /**\r\n * When `markCurrentUser` is on, hoist the option matching the current user\r\n * to the top of the list so it surfaces first in the dropdown.\r\n */\r\n protected readonly displayOptions = computed(() => {\r\n const options = this.options();\r\n if (!options?.length || !this.markCurrentUser() || !this.currentUser()) {\r\n return options;\r\n }\r\n\r\n const index = options.findIndex((option) =>\r\n this.isCurrentUserOption(option),\r\n );\r\n if (index <= 0) return options;\r\n\r\n const reordered = options.slice();\r\n const [currentUserOption] = reordered.splice(index, 1);\r\n reordered.unshift(currentUserOption);\r\n return reordered;\r\n });\r\n\r\n @Output() onChange: EventEmitter<any> = new EventEmitter();\r\n\r\n @HostBinding('class') styleClass: string;\r\n\r\n requiredValidator = Validators.required;\r\n value = signal<any>(null);\r\n disabled = signal<boolean>(false);\r\n\r\n onTouched: () => void = () => {};\r\n onModelChange: (value: any) => void = () => {};\r\n\r\n public ngControl: NgControl | null = null;\r\n\r\n isInvalid = isInvalid;\r\n\r\n constructor() {\r\n try {\r\n this.ngControl = inject(NgControl, { self: true, optional: true });\r\n if (this.ngControl) {\r\n this.ngControl.valueAccessor = this;\r\n }\r\n } catch {\r\n this.ngControl = null;\r\n }\r\n effect(() => {\r\n if (this.ngControl?.control && this.required()) {\r\n this.ngControl.control.addValidators(Validators.required);\r\n this.ngControl.control.updateValueAndValidity();\r\n }\r\n });\r\n }\r\n\r\n applyInputsToDropdown() {\r\n // Object.assign(this.dropdown, this.pInputs());\r\n }\r\n\r\n ngOnInit() {\r\n this.styleClass = this.class();\r\n if (this.pInputs()) {\r\n this.applyInputsToDropdown();\r\n }\r\n }\r\n\r\n onValueChange(value: any) {\r\n this.onModelChange(value);\r\n this.value.set(value);\r\n this.onChange.emit(value);\r\n if (this.clearAfterSelect()) {\r\n this.clearSelection();\r\n }\r\n }\r\n\r\n ngOnChanges(changes: SimpleChanges) {\r\n if (changes['pInputs']) {\r\n this.applyInputsToDropdown();\r\n }\r\n }\r\n\r\n /**\r\n * The search leaves no option focused, so Enter picked nothing even when the\r\n * search narrowed the list to one option. Focus that option: Enter then\r\n * selects it, as it would after an arrow key.\r\n */\r\n protected onDropdownFilter(): void {\r\n const dropdown = this.dropdown;\r\n const selectable = (dropdown.visibleOptions() as unknown[])\r\n .map((option, index) => ({ option, index }))\r\n .filter(({ option }) => dropdown.isValidOption(option));\r\n if (selectable.length === 1) {\r\n dropdown.focusedOptionIndex.set(selectable[0].index);\r\n }\r\n }\r\n\r\n writeValue(value: string) {\r\n this.value.set(value);\r\n }\r\n\r\n registerOnChange(fn: any) {\r\n this.onModelChange = fn;\r\n }\r\n\r\n registerOnTouched(fn: any) {\r\n this.onTouched = fn;\r\n }\r\n\r\n setDisabledState(disabled: boolean) {\r\n this.disabled.set(disabled);\r\n }\r\n\r\n isGrouped(): boolean {\r\n return this.group();\r\n }\r\n\r\n /**\r\n * Required through the input or through a `Validators.required` on the bound\r\n * control — DynamicForm and hand-written reactive forms take the second route.\r\n * A method, not a computed: validators are mutable and carry no signal, so\r\n * only re-reading them per change detection keeps this truthful.\r\n */\r\n isRequiredField(): boolean {\r\n return (\r\n this.required() ||\r\n !!this.ngControl?.control?.hasValidator(this.requiredValidator)\r\n );\r\n }\r\n\r\n /** Explicit `showClear` wins; otherwise every optional select is clearable. */\r\n isClearable(): boolean {\r\n if (this.readonly() || this.disabled()) return false;\r\n return this.showClear() ?? !this.isRequiredField();\r\n }\r\n\r\n // TODO: make this method work\r\n public clearSelection() {\r\n this.dropdown.clear(this.value());\r\n this.dropdown.value = null;\r\n this.value.set(null);\r\n this.onModelChange(null);\r\n this.onChange.emit(null);\r\n this.cdr.detectChanges();\r\n }\r\n\r\n getOptionLabelValue(option: any): string {\r\n const resolvedOption = this.resolveOption(option);\r\n if (resolvedOption == null) return '';\r\n\r\n const labelKey = this.optionLabel();\r\n if (labelKey && typeof resolvedOption === 'object') {\r\n return this.resolveNestedValue(resolvedOption, labelKey) ?? '';\r\n }\r\n\r\n return typeof resolvedOption === 'object'\r\n ? (resolvedOption.label ?? '')\r\n : String(resolvedOption);\r\n }\r\n\r\n /**\r\n * Label used for rendering. Options whose label resolves to an empty string\r\n * would otherwise paint a blank, unreadable row, so they fall back to a dash.\r\n * Kept separate from {@link getOptionLabelValue} so value comparisons (e.g.\r\n * current-user matching) still see the real, empty label.\r\n */\r\n getOptionDisplayLabel(option: any): string {\r\n return this.getOptionLabelValue(option).trim() || EMPTY_LABEL_PLACEHOLDER;\r\n }\r\n\r\n getOptionIcon(option: any): string | undefined {\r\n const resolvedOption = this.resolveOption(option);\r\n if (!resolvedOption || typeof resolvedOption !== 'object') return undefined;\r\n return resolvedOption[this.optionIcon()];\r\n }\r\n\r\n shouldRenderOptionColorSwatch(option: any): boolean {\r\n return !!this.getOptionSwatchColor(option) && !this.getOptionIcon(option);\r\n }\r\n\r\n getOptionSwatchColor(option: any): string | null {\r\n return this.resolveDisplayColor(this.getOptionColor(option));\r\n }\r\n\r\n getOptionAvatarBackground(option: any): string | null {\r\n return this.getAvatarBackgroundByColor(this.getOptionColor(option));\r\n }\r\n\r\n getOptionAvatarColor(option: any): string | null {\r\n return this.getAvatarColorByColor(this.getOptionColor(option));\r\n }\r\n\r\n getOptionAvatarShape(option: any): 'circle' | 'square' {\r\n const resolvedOption = this.resolveOption(option);\r\n if (!resolvedOption || typeof resolvedOption !== 'object') {\r\n return this.normalizeAvatarShape(this.optionAvatarShape());\r\n }\r\n\r\n return this.normalizeAvatarShape(\r\n resolvedOption[this.optionIconShape()] ?? this.optionAvatarShape(),\r\n );\r\n }\r\n\r\n getGroupLabelValue(group: any): string {\r\n if (group == null) return '';\r\n\r\n const groupLabelKey = this.optionGroupLabel();\r\n if (groupLabelKey && typeof group === 'object') {\r\n return group[groupLabelKey] ?? '';\r\n }\r\n\r\n return typeof group === 'object' ? (group.label ?? '') : String(group);\r\n }\r\n\r\n getGroupDisplayLabel(group: any): string {\r\n return this.getGroupLabelValue(group).trim() || EMPTY_LABEL_PLACEHOLDER;\r\n }\r\n\r\n getGroupIcon(group: any): string | undefined {\r\n if (!group || typeof group !== 'object') return undefined;\r\n return group[this.optionGroupIcon()];\r\n }\r\n\r\n shouldRenderGroupColorSwatch(group: any): boolean {\r\n return !!this.getGroupSwatchColor(group) && !this.getGroupIcon(group);\r\n }\r\n\r\n getGroupSwatchColor(group: any): string | null {\r\n return this.resolveDisplayColor(this.getGroupColor(group));\r\n }\r\n\r\n getGroupAvatarBackground(group: any): string | null {\r\n return this.getAvatarBackgroundByColor(this.getGroupColor(group));\r\n }\r\n\r\n getGroupAvatarColor(group: any): string | null {\r\n return this.getAvatarColorByColor(this.getGroupColor(group));\r\n }\r\n\r\n getGroupAvatarShape(group: any): 'circle' | 'square' {\r\n if (!group || typeof group !== 'object') {\r\n return this.normalizeAvatarShape(this.optionGroupAvatarShape());\r\n }\r\n\r\n return this.normalizeAvatarShape(\r\n group[this.optionGroupIconShape()] ?? this.optionGroupAvatarShape(),\r\n );\r\n }\r\n\r\n private getOptionColor(option: any): string | undefined {\r\n const resolvedOption = this.resolveOption(option);\r\n if (!resolvedOption || typeof resolvedOption !== 'object') return undefined;\r\n return resolvedOption[this.optionIconColor()];\r\n }\r\n\r\n private getGroupColor(group: any): string | undefined {\r\n if (!group || typeof group !== 'object') return undefined;\r\n return group[this.optionGroupIconColor()];\r\n }\r\n\r\n private getAvatarBackgroundByColor(color: string | undefined): string | null {\r\n if (!color) return null;\r\n if (color.startsWith('#')) return `${color}1a`;\r\n return `var(--p-${color}-100)`;\r\n }\r\n\r\n private getAvatarColorByColor(color: string | undefined): string | null {\r\n if (!color) return null;\r\n if (color.startsWith('#')) return color;\r\n return `var(--p-${color}-600)`;\r\n }\r\n\r\n private resolveDisplayColor(color: string | undefined): string | null {\r\n if (!color) return null;\r\n if (\r\n color.startsWith('#') ||\r\n color.startsWith('rgb') ||\r\n color.startsWith('hsl') ||\r\n color.startsWith('var(')\r\n ) {\r\n return color;\r\n }\r\n\r\n return `var(--p-${color}-500)`;\r\n }\r\n\r\n private normalizeAvatarShape(shape: unknown): 'circle' | 'square' {\r\n return shape === 'square' ? 'square' : 'circle';\r\n }\r\n\r\n /**\r\n * Resolves a nested dot-notation path (e.g. \"name.display\") on an object.\r\n * Falls back to direct property access for non-nested keys.\r\n */\r\n private resolveNestedValue(obj: any, path: string): any {\r\n if (!path.includes('.')) {\r\n return obj[path];\r\n }\r\n return path.split('.').reduce((current, key) => current?.[key], obj);\r\n }\r\n\r\n isCurrentUserOption(option: any): boolean {\r\n const user = this.currentUser();\r\n if (!user) return false;\r\n\r\n const id = user.id;\r\n const displayName = user.displayName;\r\n if (id == null && !displayName) return false;\r\n\r\n const resolvedOption = this.resolveOption(option);\r\n if (resolvedOption == null) return false;\r\n\r\n const optionValueKey = this.optionValue();\r\n const value =\r\n optionValueKey && typeof resolvedOption === 'object'\r\n ? this.resolveNestedValue(resolvedOption, optionValueKey)\r\n : typeof resolvedOption === 'object'\r\n ? (resolvedOption.value ?? resolvedOption)\r\n : resolvedOption;\r\n\r\n if (id != null && value != null && String(value) === String(id)) {\r\n return true;\r\n }\r\n\r\n if (displayName) {\r\n const label = this.getOptionLabelValue(option);\r\n if (label && label === displayName) return true;\r\n if (value != null && String(value) === displayName) return true;\r\n }\r\n\r\n return false;\r\n }\r\n\r\n private resolveOption(optionOrValue: any): any {\r\n if (optionOrValue == null || typeof optionOrValue === 'object') {\r\n return optionOrValue;\r\n }\r\n\r\n const options = this.options() ?? [];\r\n const optionValueKey = this.optionValue();\r\n\r\n if (!optionValueKey) {\r\n return (\r\n options.find((option) => option === optionOrValue) ?? optionOrValue\r\n );\r\n }\r\n\r\n if (this.group()) {\r\n const groupChildrenKey = this.optionGroupChildren();\r\n for (const group of options) {\r\n const children = group?.[groupChildrenKey];\r\n if (!Array.isArray(children)) continue;\r\n\r\n const match = children.find(\r\n (item: any) => item?.[optionValueKey] === optionOrValue,\r\n );\r\n if (match) return match;\r\n }\r\n return optionOrValue;\r\n }\r\n\r\n return (\r\n options.find((option) => option?.[optionValueKey] === optionOrValue) ??\r\n optionOrValue\r\n );\r\n }\r\n}\r\n","@if (label() || hint()) {\r\n <div class=\"flex items-center gap-1\">\r\n @if (label()) {\r\n <label\r\n (click)=\"dropdown.show(); dropdown.focus()\"\r\n [class.required]=\"isRequiredField()\"\r\n [for]=\"fieldId\"\r\n >{{ label() }}</label\r\n >\r\n }\r\n @if (hint()) {\r\n <span\r\n class=\"inline-flex text-surface-400\"\r\n [mtTooltip]=\"hint()\"\r\n tooltipPosition=\"top\"\r\n >\r\n <mt-icon icon=\"general.help-circle\" />\r\n </span>\r\n }\r\n </div>\r\n}\r\n<!-- `inputId` only, never `id`: PrimeNG puts `inputId` on the focusable inner\r\n input and `id` on the host, so binding both stamped one id onto two\r\n elements. That is invalid HTML, and `<label for>` then resolves to\r\n whichever comes first in the document. The label needs the input. -->\r\n<p-select\r\n #dropdown\r\n appendTo=\"body\"\r\n [overlayOptions]=\"{ baseZIndex: 1051 }\"\r\n [ngModel]=\"value()\"\r\n (ngModelChange)=\"onValueChange($event)\"\r\n [options]=\"displayOptions()\"\r\n [optionLabel]=\"optionLabel()\"\r\n [optionValue]=\"optionValue()\"\r\n (onBlur)=\"onTouched()\"\r\n (onFilter)=\"onDropdownFilter()\"\r\n [disabled]=\"disabled() || readonly()\"\r\n [inputId]=\"fieldId\"\r\n [invalid]=\"!dropdown.overlayVisible && isInvalid(ngControl?.control)\"\r\n [placeholder]=\"placeholder() || label() || ''\"\r\n [filter]=\"filter()\"\r\n [filterBy]=\"filterBy()\"\r\n [dataKey]=\"dataKey()\"\r\n [styleClass]=\"size() === 'small' ? ' mt-select-sm' : ''\"\r\n [showClear]=\"isClearable()\"\r\n [group]=\"isGrouped()\"\r\n [optionGroupLabel]=\"optionGroupLabel()\"\r\n [optionGroupChildren]=\"optionGroupChildren()\"\r\n [loading]=\"loading()\"\r\n [fluid]=\"true\"\r\n [size]=\"pSelectSize()\"\r\n [panelStyleClass]=\"panelSizeClass()\"\r\n [panelStyle]=\"panelStyle()\"\r\n>\r\n <ng-template let-option #selectedItem>\r\n @if (option) {\r\n <div class=\"flex items-center gap-2 overflow-hidden\">\r\n @if (shouldRenderOptionColorSwatch(option)) {\r\n <span\r\n class=\"h-3 w-3 shrink-0 rounded-[4px] border border-surface-300\"\r\n [style.backgroundColor]=\"getOptionSwatchColor(option)\"\r\n ></span>\r\n } @else if (getOptionIcon(option)) {\r\n <mt-avatar\r\n [style.--p-avatar-background]=\"getOptionAvatarBackground(option)\"\r\n [style.--p-avatar-color]=\"getOptionAvatarColor(option)\"\r\n [icon]=\"getOptionIcon(option)\"\r\n [shape]=\"getOptionAvatarShape(option)\"\r\n size=\"normal\"\r\n />\r\n }\r\n <span\r\n class=\"min-w-0 flex-1 truncate\"\r\n mtTruncateTooltip\r\n tooltipPosition=\"top\"\r\n >{{ getOptionDisplayLabel(option) }}</span\r\n >\r\n </div>\r\n } @else {\r\n <span class=\"text-color-secondary\">{{\r\n placeholder() || label() || \"\"\r\n }}</span>\r\n }\r\n </ng-template>\r\n\r\n <ng-template let-option #item>\r\n <div class=\"flex items-center gap-2 overflow-hidden\">\r\n @if (shouldRenderOptionColorSwatch(option)) {\r\n <span\r\n class=\"h-3 w-3 shrink-0 rounded-[4px] border border-surface-300\"\r\n [style.backgroundColor]=\"getOptionSwatchColor(option)\"\r\n ></span>\r\n } @else if (getOptionIcon(option)) {\r\n <mt-avatar\r\n [style.--p-avatar-background]=\"getOptionAvatarBackground(option)\"\r\n [style.--p-avatar-color]=\"getOptionAvatarColor(option)\"\r\n [icon]=\"getOptionIcon(option)\"\r\n [shape]=\"getOptionAvatarShape(option)\"\r\n size=\"normal\"\r\n />\r\n }\r\n <span\r\n class=\"min-w-0 flex-1 truncate\"\r\n mtTruncateTooltip\r\n tooltipPosition=\"top\"\r\n >{{ getOptionDisplayLabel(option) }}</span\r\n >\r\n @if (isCurrentUserOption(option)) {\r\n <span\r\n class=\"shrink-0 text-xs px-1.5 py-0.5 rounded bg-primary-100 text-primary-700 dark:bg-primary-900/40 dark:text-primary-300 font-medium\"\r\n >\r\n {{ \"components.selectField.you\" | transloco }}\r\n </span>\r\n }\r\n </div>\r\n </ng-template>\r\n\r\n <ng-template let-group #group>\r\n <div class=\"flex items-center gap-2 overflow-hidden\">\r\n @if (shouldRenderGroupColorSwatch(group)) {\r\n <span\r\n class=\"h-3 w-3 shrink-0 rounded-[4px] border border-surface-300\"\r\n [style.backgroundColor]=\"getGroupSwatchColor(group)\"\r\n ></span>\r\n } @else if (getGroupIcon(group)) {\r\n <mt-avatar\r\n [style.--p-avatar-background]=\"getGroupAvatarBackground(group)\"\r\n [style.--p-avatar-color]=\"getGroupAvatarColor(group)\"\r\n [icon]=\"getGroupIcon(group)\"\r\n [shape]=\"getGroupAvatarShape(group)\"\r\n size=\"normal\"\r\n />\r\n }\r\n <span\r\n class=\"min-w-0 flex-1 truncate font-medium\"\r\n mtTruncateTooltip\r\n tooltipPosition=\"top\"\r\n >{{ getGroupDisplayLabel(group) }}</span\r\n >\r\n </div>\r\n </ng-template>\r\n</p-select>\r\n\r\n@if (ngControl) {\r\n <!-- Opening a filterable select moves focus into its search box, which blurs\r\n the field and marks it touched while the user is still choosing. Hold\r\n the error back until the panel closes; hidden, not removed, so the\r\n reserved line under the field does not jump. -->\r\n <mt-field-validation\r\n [control]=\"ngControl?.control\"\r\n [class.mt-select-validation-paused]=\"dropdown.overlayVisible\"\r\n ></mt-field-validation>\r\n}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;;;SAcgB,8BAA8B,GAAA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BAEA,WAAW;uBAAC,OAAO;;;AEzKtB;;AAEG;;;;"}
1
+ {"version":3,"file":"masterteam-components-select-field.mjs","sources":["../../../../packages/masterteam/components/select-field/current-user.util.ts","../../../../packages/masterteam/components/select-field/select-field.ts","../../../../packages/masterteam/components/select-field/select-field.html","../../../../packages/masterteam/components/select-field/masterteam-components-select-field.ts"],"sourcesContent":["/**\n * Resolves the current authenticated user (id + displayName) from\n * `localStorage`, where the host application persists its NGXS `auth`\n * slice. Used by table filters to mark \"You\" on options that match the\n * logged-in user.\n *\n * The persisted shape can vary slightly between apps, so we look for the\n * id/displayName under a few well-known paths.\n */\nexport interface CurrentUserInfo {\n id?: string | number | null;\n displayName?: string | null;\n}\n\nexport function getCurrentUserFromLocalStorage(): CurrentUserInfo | null {\n if (typeof localStorage === 'undefined') {\n return null;\n }\n\n try {\n const raw = localStorage.getItem('auth');\n if (!raw) return null;\n\n const parsed = JSON.parse(raw) as Record<string, unknown> | null;\n if (!parsed || typeof parsed !== 'object') return null;\n\n const user =\n (parsed['user'] as Record<string, unknown> | undefined) ??\n ((parsed['state'] as Record<string, unknown> | undefined)?.['user'] as\n | Record<string, unknown>\n | undefined);\n if (!user || typeof user !== 'object') return null;\n\n const nested = user['user'] as Record<string, unknown> | undefined;\n\n const id =\n (user['id'] as string | number | undefined) ??\n (nested?.['id'] as string | number | undefined) ??\n (user['userId'] as string | number | undefined) ??\n null;\n\n const displayName =\n (user['displayName'] as string | undefined) ??\n (nested?.['displayName'] as string | undefined) ??\n (user['name'] as string | undefined) ??\n null;\n\n if (id == null && !displayName) return null;\n\n return { id, displayName };\n } catch {\n return null;\n }\n}\n","import {\n AfterViewInit,\n Component,\n DestroyRef,\n ElementRef,\n EventEmitter,\n HostBinding,\n NgZone,\n OnChanges,\n OnInit,\n Output,\n SimpleChanges,\n ViewChild,\n signal,\n input,\n inject,\n ChangeDetectorRef,\n ChangeDetectionStrategy,\n effect,\n computed,\n} from '@angular/core';\n\nimport {\n ControlValueAccessor,\n FormsModule,\n NgControl,\n Validators,\n} from '@angular/forms';\nimport { Select } from 'primeng/select';\nimport { FieldValidation } from '@masterteam/components/field-validation';\nimport { isInvalid, newFieldId } from '@masterteam/components';\nimport { TranslocoModule } from '@jsverse/transloco';\nimport { Avatar } from '@masterteam/components/avatar';\nimport { Tooltip, TruncateTooltip } from '@masterteam/components/tooltip';\nimport { Icon } from '@masterteam/icons';\nimport { getCurrentUserFromLocalStorage } from './current-user.util';\n\n/** Rendered in place of an option/group label that resolves to an empty value. */\nconst EMPTY_LABEL_PLACEHOLDER = '-';\n\n@Component({\n selector: 'mt-select-field',\n standalone: true,\n imports: [\n FormsModule,\n Select,\n FieldValidation,\n TranslocoModule,\n Avatar,\n Tooltip,\n TruncateTooltip,\n Icon,\n ],\n templateUrl: './select-field.html',\n styleUrls: ['./select-field.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'grid',\n // The gap only separates the label row from the control. With no label and\n // no hint that row is not rendered, so the gap becomes dead space under the\n // control and knocks it out of vertical alignment with sibling fields.\n '[class.gap-1]': 'label() || hint()',\n },\n})\nexport class SelectField\n implements ControlValueAccessor, OnInit, OnChanges, AfterViewInit\n{\n cdr = inject(ChangeDetectorRef);\n private el = inject(ElementRef);\n private zone = inject(NgZone);\n private destroyRef = inject(DestroyRef);\n\n @ViewChild('dropdown', { static: true })\n dropdown: Select;\n\n protected readonly panelStyle = signal<Record<string, string>>({});\n\n ngAfterViewInit(): void {\n this.zone.runOutsideAngular(() => {\n const ro = new ResizeObserver(() => {\n const width = this.el.nativeElement.offsetWidth;\n if (width > 0 && `${width}px` !== this.panelStyle()['width']) {\n this.panelStyle.set({ width: `${width}px` });\n }\n });\n ro.observe(this.el.nativeElement);\n this.destroyRef.onDestroy(() => ro.disconnect());\n });\n }\n\n readonly field = input<boolean>(true);\n readonly hint = input<string>();\n readonly label = input<string>('');\n\n /** Unique; shared by the control and its <label for>. See src/lib/utils/field-id. */\n readonly fieldId = newFieldId('mt-select-field');\n readonly labelId = `${this.fieldId}-label`;\n /**\n * PrimeNG's focusable element is a `span[role=combobox]`, which `<label for>`\n * cannot name, so assistive technology only heard the value (\"Any\"). Naming\n * it by the label plus itself announces \"Category, Any\".\n */\n protected readonly comboboxLabelledBy = computed(() =>\n this.label() ? `${this.labelId} ${this.fieldId}` : undefined,\n );\n readonly placeholder = input<string>('');\n readonly hasPlaceholderPrefix = input<boolean>(true);\n readonly class = input<string>('');\n readonly readonly = input<boolean>(false);\n readonly pInputs = input<Partial<Select>>();\n readonly options = input<any[] | undefined>(undefined);\n readonly optionValue = input<string | undefined>(undefined);\n readonly optionLabel = input<string | undefined>(undefined);\n readonly filter = input<boolean | undefined>(undefined);\n readonly filterBy = input<string | undefined>(undefined);\n readonly dataKey = input<string | undefined>(undefined);\n /**\n * Clear button. Left unset it follows {@link isRequiredField}: an optional\n * select has to be able to go back to empty, a required one has nothing to\n * clear to. Pass an explicit `true` / `false` to override that.\n */\n readonly showClear = input<boolean | undefined>(undefined);\n readonly clearAfterSelect = input<boolean | undefined>(undefined);\n readonly required = input<boolean>(false); // Add readonly required input\n readonly group = input<boolean>(false);\n readonly size = input<'small' | 'large' | ''>('');\n\n readonly pSelectSize = computed(() => this.size() as 'small' | 'large' | '');\n\n readonly panelSizeClass = computed(() =>\n this.size() === 'small' ? 'mt-select-panel-small' : '',\n );\n readonly optionGroupLabel = input<string>('label');\n readonly optionGroupChildren = input<string>('items');\n readonly loading = input<boolean>(false);\n readonly optionIcon = input<string>('icon');\n readonly optionIconColor = input<string>('color');\n readonly optionIconShape = input<string>('shape');\n readonly optionAvatarShape = input<'circle' | 'square'>('square');\n readonly optionGroupIcon = input<string>('icon');\n readonly optionGroupIconColor = input<string>('color');\n readonly optionGroupIconShape = input<string>('shape');\n readonly optionGroupAvatarShape = input<'circle' | 'square'>('square');\n\n /**\n * When true, this select represents a user picker (e.g. a table filter for\n * a user column). The component reads the logged-in user from\n * `localStorage` and marks the matching option with a \"You\" badge.\n */\n readonly markCurrentUser = input<boolean>(false);\n\n protected readonly currentUser = computed(() =>\n this.markCurrentUser() ? getCurrentUserFromLocalStorage() : null,\n );\n\n /**\n * When `markCurrentUser` is on, hoist the option matching the current user\n * to the top of the list so it surfaces first in the dropdown.\n */\n protected readonly displayOptions = computed(() => {\n const options = this.options();\n if (!options?.length || !this.markCurrentUser() || !this.currentUser()) {\n return options;\n }\n\n const index = options.findIndex((option) =>\n this.isCurrentUserOption(option),\n );\n if (index <= 0) return options;\n\n const reordered = options.slice();\n const [currentUserOption] = reordered.splice(index, 1);\n reordered.unshift(currentUserOption);\n return reordered;\n });\n\n @Output() onChange: EventEmitter<any> = new EventEmitter();\n\n @HostBinding('class') styleClass: string;\n\n requiredValidator = Validators.required;\n value = signal<any>(null);\n disabled = signal<boolean>(false);\n\n onTouched: () => void = () => {};\n onModelChange: (value: any) => void = () => {};\n\n public ngControl: NgControl | null = null;\n\n isInvalid = isInvalid;\n\n constructor() {\n try {\n this.ngControl = inject(NgControl, { self: true, optional: true });\n if (this.ngControl) {\n this.ngControl.valueAccessor = this;\n }\n } catch {\n this.ngControl = null;\n }\n effect(() => {\n if (this.ngControl?.control && this.required()) {\n this.ngControl.control.addValidators(Validators.required);\n this.ngControl.control.updateValueAndValidity();\n }\n });\n }\n\n applyInputsToDropdown() {\n // Object.assign(this.dropdown, this.pInputs());\n }\n\n ngOnInit() {\n this.styleClass = this.class();\n if (this.pInputs()) {\n this.applyInputsToDropdown();\n }\n }\n\n onValueChange(value: any) {\n this.onModelChange(value);\n this.value.set(value);\n this.onChange.emit(value);\n if (this.clearAfterSelect()) {\n this.clearSelection();\n }\n }\n\n ngOnChanges(changes: SimpleChanges) {\n if (changes['pInputs']) {\n this.applyInputsToDropdown();\n }\n }\n\n /**\n * The search leaves no option focused, so Enter picked nothing even when the\n * search narrowed the list to one option. Focus that option: Enter then\n * selects it, as it would after an arrow key.\n */\n protected onDropdownFilter(): void {\n const dropdown = this.dropdown;\n const selectable = (dropdown.visibleOptions() as unknown[])\n .map((option, index) => ({ option, index }))\n .filter(({ option }) => dropdown.isValidOption(option));\n if (selectable.length === 1) {\n dropdown.focusedOptionIndex.set(selectable[0].index);\n }\n }\n\n writeValue(value: string) {\n this.value.set(value);\n }\n\n registerOnChange(fn: any) {\n this.onModelChange = fn;\n }\n\n registerOnTouched(fn: any) {\n this.onTouched = fn;\n }\n\n setDisabledState(disabled: boolean) {\n this.disabled.set(disabled);\n }\n\n isGrouped(): boolean {\n return this.group();\n }\n\n /**\n * Required through the input or through a `Validators.required` on the bound\n * control — DynamicForm and hand-written reactive forms take the second route.\n * A method, not a computed: validators are mutable and carry no signal, so\n * only re-reading them per change detection keeps this truthful.\n */\n isRequiredField(): boolean {\n return (\n this.required() ||\n !!this.ngControl?.control?.hasValidator(this.requiredValidator)\n );\n }\n\n /** Explicit `showClear` wins; otherwise every optional select is clearable. */\n isClearable(): boolean {\n if (this.readonly() || this.disabled()) return false;\n return this.showClear() ?? !this.isRequiredField();\n }\n\n // TODO: make this method work\n public clearSelection() {\n this.dropdown.clear(this.value());\n this.dropdown.value = null;\n this.value.set(null);\n this.onModelChange(null);\n this.onChange.emit(null);\n this.cdr.detectChanges();\n }\n\n getOptionLabelValue(option: any): string {\n const resolvedOption = this.resolveOption(option);\n if (resolvedOption == null) return '';\n\n const labelKey = this.optionLabel();\n if (labelKey && typeof resolvedOption === 'object') {\n return this.resolveNestedValue(resolvedOption, labelKey) ?? '';\n }\n\n return typeof resolvedOption === 'object'\n ? (resolvedOption.label ?? '')\n : String(resolvedOption);\n }\n\n /**\n * Label used for rendering. Options whose label resolves to an empty string\n * would otherwise paint a blank, unreadable row, so they fall back to a dash.\n * Kept separate from {@link getOptionLabelValue} so value comparisons (e.g.\n * current-user matching) still see the real, empty label.\n */\n getOptionDisplayLabel(option: any): string {\n return this.getOptionLabelValue(option).trim() || EMPTY_LABEL_PLACEHOLDER;\n }\n\n getOptionIcon(option: any): string | undefined {\n const resolvedOption = this.resolveOption(option);\n if (!resolvedOption || typeof resolvedOption !== 'object') return undefined;\n return resolvedOption[this.optionIcon()];\n }\n\n shouldRenderOptionColorSwatch(option: any): boolean {\n return !!this.getOptionSwatchColor(option) && !this.getOptionIcon(option);\n }\n\n getOptionSwatchColor(option: any): string | null {\n return this.resolveDisplayColor(this.getOptionColor(option));\n }\n\n getOptionAvatarBackground(option: any): string | null {\n return this.getAvatarBackgroundByColor(this.getOptionColor(option));\n }\n\n getOptionAvatarColor(option: any): string | null {\n return this.getAvatarColorByColor(this.getOptionColor(option));\n }\n\n getOptionAvatarShape(option: any): 'circle' | 'square' {\n const resolvedOption = this.resolveOption(option);\n if (!resolvedOption || typeof resolvedOption !== 'object') {\n return this.normalizeAvatarShape(this.optionAvatarShape());\n }\n\n return this.normalizeAvatarShape(\n resolvedOption[this.optionIconShape()] ?? this.optionAvatarShape(),\n );\n }\n\n getGroupLabelValue(group: any): string {\n if (group == null) return '';\n\n const groupLabelKey = this.optionGroupLabel();\n if (groupLabelKey && typeof group === 'object') {\n return group[groupLabelKey] ?? '';\n }\n\n return typeof group === 'object' ? (group.label ?? '') : String(group);\n }\n\n getGroupDisplayLabel(group: any): string {\n return this.getGroupLabelValue(group).trim() || EMPTY_LABEL_PLACEHOLDER;\n }\n\n getGroupIcon(group: any): string | undefined {\n if (!group || typeof group !== 'object') return undefined;\n return group[this.optionGroupIcon()];\n }\n\n shouldRenderGroupColorSwatch(group: any): boolean {\n return !!this.getGroupSwatchColor(group) && !this.getGroupIcon(group);\n }\n\n getGroupSwatchColor(group: any): string | null {\n return this.resolveDisplayColor(this.getGroupColor(group));\n }\n\n getGroupAvatarBackground(group: any): string | null {\n return this.getAvatarBackgroundByColor(this.getGroupColor(group));\n }\n\n getGroupAvatarColor(group: any): string | null {\n return this.getAvatarColorByColor(this.getGroupColor(group));\n }\n\n getGroupAvatarShape(group: any): 'circle' | 'square' {\n if (!group || typeof group !== 'object') {\n return this.normalizeAvatarShape(this.optionGroupAvatarShape());\n }\n\n return this.normalizeAvatarShape(\n group[this.optionGroupIconShape()] ?? this.optionGroupAvatarShape(),\n );\n }\n\n private getOptionColor(option: any): string | undefined {\n const resolvedOption = this.resolveOption(option);\n if (!resolvedOption || typeof resolvedOption !== 'object') return undefined;\n return resolvedOption[this.optionIconColor()];\n }\n\n private getGroupColor(group: any): string | undefined {\n if (!group || typeof group !== 'object') return undefined;\n return group[this.optionGroupIconColor()];\n }\n\n private getAvatarBackgroundByColor(color: string | undefined): string | null {\n if (!color) return null;\n if (color.startsWith('#')) return `${color}1a`;\n return `var(--p-${color}-100)`;\n }\n\n private getAvatarColorByColor(color: string | undefined): string | null {\n if (!color) return null;\n if (color.startsWith('#')) return color;\n return `var(--p-${color}-600)`;\n }\n\n private resolveDisplayColor(color: string | undefined): string | null {\n if (!color) return null;\n if (\n color.startsWith('#') ||\n color.startsWith('rgb') ||\n color.startsWith('hsl') ||\n color.startsWith('var(')\n ) {\n return color;\n }\n\n return `var(--p-${color}-500)`;\n }\n\n private normalizeAvatarShape(shape: unknown): 'circle' | 'square' {\n return shape === 'square' ? 'square' : 'circle';\n }\n\n /**\n * Resolves a nested dot-notation path (e.g. \"name.display\") on an object.\n * Falls back to direct property access for non-nested keys.\n */\n private resolveNestedValue(obj: any, path: string): any {\n if (!path.includes('.')) {\n return obj[path];\n }\n return path.split('.').reduce((current, key) => current?.[key], obj);\n }\n\n isCurrentUserOption(option: any): boolean {\n const user = this.currentUser();\n if (!user) return false;\n\n const id = user.id;\n const displayName = user.displayName;\n if (id == null && !displayName) return false;\n\n const resolvedOption = this.resolveOption(option);\n if (resolvedOption == null) return false;\n\n const optionValueKey = this.optionValue();\n const value =\n optionValueKey && typeof resolvedOption === 'object'\n ? this.resolveNestedValue(resolvedOption, optionValueKey)\n : typeof resolvedOption === 'object'\n ? (resolvedOption.value ?? resolvedOption)\n : resolvedOption;\n\n if (id != null && value != null && String(value) === String(id)) {\n return true;\n }\n\n if (displayName) {\n const label = this.getOptionLabelValue(option);\n if (label && label === displayName) return true;\n if (value != null && String(value) === displayName) return true;\n }\n\n return false;\n }\n\n private resolveOption(optionOrValue: any): any {\n if (optionOrValue == null || typeof optionOrValue === 'object') {\n return optionOrValue;\n }\n\n const options = this.options() ?? [];\n const optionValueKey = this.optionValue();\n\n if (!optionValueKey) {\n return (\n options.find((option) => option === optionOrValue) ?? optionOrValue\n );\n }\n\n if (this.group()) {\n const groupChildrenKey = this.optionGroupChildren();\n for (const group of options) {\n const children = group?.[groupChildrenKey];\n if (!Array.isArray(children)) continue;\n\n const match = children.find(\n (item: any) => item?.[optionValueKey] === optionOrValue,\n );\n if (match) return match;\n }\n return optionOrValue;\n }\n\n return (\n options.find((option) => option?.[optionValueKey] === optionOrValue) ??\n optionOrValue\n );\n }\n}\n","@if (label() || hint()) {\n <div class=\"flex items-center gap-1\">\n @if (label()) {\n <label\n (click)=\"dropdown.show(); dropdown.focus()\"\n [class.required]=\"isRequiredField()\"\n [id]=\"labelId\"\n [for]=\"fieldId\"\n >{{ label() }}</label\n >\n }\n @if (hint()) {\n <span\n class=\"inline-flex text-surface-400\"\n [mtTooltip]=\"hint()\"\n tooltipPosition=\"top\"\n >\n <mt-icon icon=\"general.help-circle\" />\n </span>\n }\n </div>\n}\n<!-- `inputId` only, never `id`: PrimeNG puts `inputId` on the focusable inner\n input and `id` on the host, so binding both stamped one id onto two\n elements. That is invalid HTML, and `<label for>` then resolves to\n whichever comes first in the document. The label needs the input. -->\n<p-select\n #dropdown\n appendTo=\"body\"\n [overlayOptions]=\"{ baseZIndex: 1051 }\"\n [ngModel]=\"value()\"\n (ngModelChange)=\"onValueChange($event)\"\n [options]=\"displayOptions()\"\n [optionLabel]=\"optionLabel()\"\n [optionValue]=\"optionValue()\"\n (onBlur)=\"onTouched()\"\n (onFilter)=\"onDropdownFilter()\"\n [disabled]=\"disabled() || readonly()\"\n [inputId]=\"fieldId\"\n [ariaLabelledBy]=\"comboboxLabelledBy()\"\n [invalid]=\"!dropdown.overlayVisible && isInvalid(ngControl?.control)\"\n [placeholder]=\"placeholder() || label() || ''\"\n [filter]=\"filter()\"\n [filterBy]=\"filterBy()\"\n [dataKey]=\"dataKey()\"\n [styleClass]=\"size() === 'small' ? ' mt-select-sm' : ''\"\n [showClear]=\"isClearable()\"\n [group]=\"isGrouped()\"\n [optionGroupLabel]=\"optionGroupLabel()\"\n [optionGroupChildren]=\"optionGroupChildren()\"\n [loading]=\"loading()\"\n [fluid]=\"true\"\n [size]=\"pSelectSize()\"\n [panelStyleClass]=\"panelSizeClass()\"\n [panelStyle]=\"panelStyle()\"\n>\n <ng-template let-option #selectedItem>\n @if (option) {\n <div class=\"flex items-center gap-2 overflow-hidden\">\n @if (shouldRenderOptionColorSwatch(option)) {\n <span\n class=\"h-3 w-3 shrink-0 rounded-[4px] border border-surface-300\"\n [style.backgroundColor]=\"getOptionSwatchColor(option)\"\n ></span>\n } @else if (getOptionIcon(option)) {\n <mt-avatar\n [style.--p-avatar-background]=\"getOptionAvatarBackground(option)\"\n [style.--p-avatar-color]=\"getOptionAvatarColor(option)\"\n [icon]=\"getOptionIcon(option)\"\n [shape]=\"getOptionAvatarShape(option)\"\n size=\"normal\"\n />\n }\n <span\n class=\"min-w-0 flex-1 truncate\"\n mtTruncateTooltip\n tooltipPosition=\"top\"\n >{{ getOptionDisplayLabel(option) }}</span\n >\n </div>\n } @else {\n <span class=\"text-color-secondary\">{{\n placeholder() || label() || \"\"\n }}</span>\n }\n </ng-template>\n\n <ng-template let-option #item>\n <div class=\"flex items-center gap-2 overflow-hidden\">\n @if (shouldRenderOptionColorSwatch(option)) {\n <span\n class=\"h-3 w-3 shrink-0 rounded-[4px] border border-surface-300\"\n [style.backgroundColor]=\"getOptionSwatchColor(option)\"\n ></span>\n } @else if (getOptionIcon(option)) {\n <mt-avatar\n [style.--p-avatar-background]=\"getOptionAvatarBackground(option)\"\n [style.--p-avatar-color]=\"getOptionAvatarColor(option)\"\n [icon]=\"getOptionIcon(option)\"\n [shape]=\"getOptionAvatarShape(option)\"\n size=\"normal\"\n />\n }\n <span\n class=\"min-w-0 flex-1 truncate\"\n mtTruncateTooltip\n tooltipPosition=\"top\"\n >{{ getOptionDisplayLabel(option) }}</span\n >\n @if (isCurrentUserOption(option)) {\n <span\n class=\"shrink-0 text-xs px-1.5 py-0.5 rounded bg-primary-100 text-primary-700 dark:bg-primary-900/40 dark:text-primary-300 font-medium\"\n >\n {{ \"components.selectField.you\" | transloco }}\n </span>\n }\n </div>\n </ng-template>\n\n <ng-template let-group #group>\n <div class=\"flex items-center gap-2 overflow-hidden\">\n @if (shouldRenderGroupColorSwatch(group)) {\n <span\n class=\"h-3 w-3 shrink-0 rounded-[4px] border border-surface-300\"\n [style.backgroundColor]=\"getGroupSwatchColor(group)\"\n ></span>\n } @else if (getGroupIcon(group)) {\n <mt-avatar\n [style.--p-avatar-background]=\"getGroupAvatarBackground(group)\"\n [style.--p-avatar-color]=\"getGroupAvatarColor(group)\"\n [icon]=\"getGroupIcon(group)\"\n [shape]=\"getGroupAvatarShape(group)\"\n size=\"normal\"\n />\n }\n <span\n class=\"min-w-0 flex-1 truncate font-medium\"\n mtTruncateTooltip\n tooltipPosition=\"top\"\n >{{ getGroupDisplayLabel(group) }}</span\n >\n </div>\n </ng-template>\n</p-select>\n\n@if (ngControl) {\n <!-- Opening a filterable select moves focus into its search box, which blurs\n the field and marks it touched while the user is still choosing. Hold\n the error back until the panel closes; hidden, not removed, so the\n reserved line under the field does not jump. -->\n <mt-field-validation\n [control]=\"ngControl?.control\"\n [class.mt-select-validation-paused]=\"dropdown.overlayVisible\"\n ></mt-field-validation>\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;;;SAcgB,8BAA8B,GAAA;AAC5C,IAAA,IAAI,OAAO,YAAY,KAAK,WAAW,EAAE;AACvC,QAAA,OAAO,IAAI;IACb;AAEA,IAAA,IAAI;QACF,MAAM,GAAG,GAAG,YAAY,CAAC,OAAO,CAAC,MAAM,CAAC;AACxC,QAAA,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AA,EAAA,85KAAA,EAAA,MAAA,EAAA,CAAA,6FAAA,CAAA,EAAA;;sBAUA,SAAS;AAAC,gBAAA,IAAA,EAAA,CAAA,UAAU,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE;;sBAwGtC;;sBAEA,WAAW;uBAAC,OAAO;;;AElLtB;;AAEG;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@masterteam/components",
3
- "version": "0.0.331",
3
+ "version": "0.0.333",
4
4
  "publishConfig": {
5
5
  "directory": "../../../dist/masterteam/components",
6
6
  "linkDirectory": true,
@@ -103,6 +103,12 @@ declare class DynamicDrawerHost implements OnDestroy {
103
103
  canShowMaximizeToggle: _angular_core.Signal<boolean>;
104
104
  /** Tooltip for maximize/restore button (state-aware) */
105
105
  maximizeButtonTooltip: _angular_core.Signal<any>;
106
+ /**
107
+ * Accessible name for the icon-only close button. A method, not a
108
+ * `computed`: with no signal to track, a `computed` would keep the raw key
109
+ * if it first ran before the translations loaded.
110
+ */
111
+ closeButtonLabel(): string;
106
112
  /** Icon for maximize/restore button (state-aware) */
107
113
  maximizeButtonIcon: _angular_core.Signal<"layout.minimize-01" | "layout.maximize-01">;
108
114
  /** Toggle the drawer's full-width state */
@@ -130,6 +130,11 @@ type EntityViewType = 'Text' | 'LongText' | 'Date' | 'DateTime'
130
130
  * for an unknown key.
131
131
  */
132
132
  | 'Icon'
133
+ /**
134
+ * A stored color — a plain `#rrggbb` string, as `mt-color-picker-field`
135
+ * writes it. Rendered as a swatch next to the hex code, not as bare text.
136
+ */
137
+ | 'Color'
133
138
  /**
134
139
  * Layout marker, not a value. Rendered full-width and non-resizable; the
135
140
  * preview layer (`groupEntitiesIntoSections`) turns each marker into a titled
@@ -1024,6 +1029,23 @@ declare class EntityIcon {
1024
1029
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<EntityIcon, "mt-entity-icon", 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>;
1025
1030
  }
1026
1031
 
1032
+ /**
1033
+ * Renders a `Color` view-type value — a stored `#rrggbb` string — as a swatch
1034
+ * next to its hex code, rather than printing the code alone.
1035
+ */
1036
+ declare class EntityColor {
1037
+ /** Full entity data object */
1038
+ readonly data: _angular_core.InputSignal<EntityData | undefined>;
1039
+ /** Individual inputs (used when data is not provided) */
1040
+ readonly name: _angular_core.InputSignal<string | undefined>;
1041
+ readonly value: _angular_core.InputSignal<string | undefined>;
1042
+ readonly displayName: _angular_core.Signal<string>;
1043
+ readonly emptyLabel = "_";
1044
+ readonly color: _angular_core.Signal<string | null>;
1045
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<EntityColor, never>;
1046
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<EntityColor, "mt-entity-color", 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>;
1047
+ }
1048
+
1027
1049
  declare class EntityUser {
1028
1050
  readonly httpContext: HttpContext;
1029
1051
  /** Full entity data object */
@@ -2327,5 +2349,5 @@ declare class FitText {
2327
2349
 
2328
2350
  declare function sharedActiveLang(transloco: TranslocoService): Signal<string>;
2329
2351
 
2330
- export { CONNECTION_KEY_SEPARATOR, CURRENCY_COMPACT_THRESHOLD, ComparisonEntityList, ComparisonValue, DEFAULT_PERFORMANCE_SCORE_CHART_SIZE, DEFAULT_PHASE_GATE_COLOR, ENTITY_EMPTY_VALUE_PLACEHOLDER, ENTITY_HEADER_VIEW_TYPES, ENTITY_LIST_TABLE_COMPONENT, ENTITY_ROW_SPANS, EntitiesManage, EntitiesPreview, EntitiesResizeBase, EntityAttachment, EntityCheckbox, EntityConnection, EntityCurrency, EntityDate, EntityField, EntityHeader, EntityIcon, EntityLeafDetails, EntityListDrawer, EntityListPreview, EntityLocation, EntityLongText, EntityLookup, EntityLookupModuleCheckList, EntityPercentage, EntityPerformanceScore, EntityPhaseGate, EntityPreview, EntityPreviewBody, EntityRuntimeContextStore, EntityScheduleItem, EntityStatus, EntityText, EntityUser, FitText, LEAF_DETAILS_KEY_SEPARATOR, LEAF_PHASES_KEY_SEPARATOR, PERFORMANCE_SCORE_CHART_SIZES, SECTION_KEY_PREFIX, buildConnectionKey, buildDisplayEntities, buildEntityListRows, buildSectionKey, canEntityBeHeader, compactCurrencyDisplay, currencyUnitOf, displayOrPlaceholder, expandConnectionEntity, expandLeafDetailsEntity, extractDisplayText, getEntitySectionTitle, getPerformanceScoreBands, groupEntitiesIntoSections, humanizeEntityListKey, isConnectionSyntheticKey, isEntityAlignEnd, isEntityHeader, isEntityLabelHidden, isEntityListLocalDocument, isEntityListSelectionDocument, isEntitySection, isLeafDetailsCatalogConfiguration, isLeafDetailsCollectionValue, isLeafDetailsRuntimeValue, isLeafDetailsSyntheticKey, isLeafDetailsValue, isLeafPhasesSyntheticKey, isLeafSyntheticKey, isSectionKey, isValueMissing, localCellsByFieldId, matchesPercentageColorRule, mergeStakeholderNameColumns, mergeStakeholderNameEntities, mergeStakeholderNameRows, normalizeConnectionSourceLevels, normalizeNumerals, parseCurrencyAmount, parsePerformanceScore, pinEntityHeaderFirst, readEntityHeaderDefaults, readEntityValueColor, resolveConnectionLevelName, resolveEntityGridRow, resolveEntityHeader, resolveEntityInfo, resolveEntityLabelPosition, resolveLocalFieldConfiguration, resolveLocalFieldLabel, resolveLocalFieldViewType, resolveLocalizedLabel, resolvePercentageColor, resolvePerformanceScoreStatus, serializeEntityRawValue, sharedActiveLang, sortLocalRows, splitConnectionKey, splitLeafKey, summarizeEntityListRows, visibleLocalSchemaFields };
2352
+ export { CONNECTION_KEY_SEPARATOR, CURRENCY_COMPACT_THRESHOLD, ComparisonEntityList, ComparisonValue, DEFAULT_PERFORMANCE_SCORE_CHART_SIZE, DEFAULT_PHASE_GATE_COLOR, ENTITY_EMPTY_VALUE_PLACEHOLDER, ENTITY_HEADER_VIEW_TYPES, ENTITY_LIST_TABLE_COMPONENT, ENTITY_ROW_SPANS, EntitiesManage, EntitiesPreview, EntitiesResizeBase, EntityAttachment, EntityCheckbox, EntityColor, EntityConnection, EntityCurrency, EntityDate, EntityField, EntityHeader, EntityIcon, EntityLeafDetails, EntityListDrawer, EntityListPreview, EntityLocation, EntityLongText, EntityLookup, EntityLookupModuleCheckList, EntityPercentage, EntityPerformanceScore, EntityPhaseGate, EntityPreview, EntityPreviewBody, EntityRuntimeContextStore, EntityScheduleItem, EntityStatus, EntityText, EntityUser, FitText, LEAF_DETAILS_KEY_SEPARATOR, LEAF_PHASES_KEY_SEPARATOR, PERFORMANCE_SCORE_CHART_SIZES, SECTION_KEY_PREFIX, buildConnectionKey, buildDisplayEntities, buildEntityListRows, buildSectionKey, canEntityBeHeader, compactCurrencyDisplay, currencyUnitOf, displayOrPlaceholder, expandConnectionEntity, expandLeafDetailsEntity, extractDisplayText, getEntitySectionTitle, getPerformanceScoreBands, groupEntitiesIntoSections, humanizeEntityListKey, isConnectionSyntheticKey, isEntityAlignEnd, isEntityHeader, isEntityLabelHidden, isEntityListLocalDocument, isEntityListSelectionDocument, isEntitySection, isLeafDetailsCatalogConfiguration, isLeafDetailsCollectionValue, isLeafDetailsRuntimeValue, isLeafDetailsSyntheticKey, isLeafDetailsValue, isLeafPhasesSyntheticKey, isLeafSyntheticKey, isSectionKey, isValueMissing, localCellsByFieldId, matchesPercentageColorRule, mergeStakeholderNameColumns, mergeStakeholderNameEntities, mergeStakeholderNameRows, normalizeConnectionSourceLevels, normalizeNumerals, parseCurrencyAmount, parsePerformanceScore, pinEntityHeaderFirst, readEntityHeaderDefaults, readEntityValueColor, resolveConnectionLevelName, resolveEntityGridRow, resolveEntityHeader, resolveEntityInfo, resolveEntityLabelPosition, resolveLocalFieldConfiguration, resolveLocalFieldLabel, resolveLocalFieldViewType, resolveLocalizedLabel, resolvePercentageColor, resolvePerformanceScoreStatus, serializeEntityRawValue, sharedActiveLang, sortLocalRows, splitConnectionKey, splitLeafKey, summarizeEntityListRows, visibleLocalSchemaFields };
2331
2353
  export type { ComparisonValueSide, ConnectionCatalogConfiguration, ConnectionLevelSavedConfig, ConnectionSourceLevelConfig, EntityAttachmentItemValue, EntityAttachmentValue, EntityBaseConfig, EntityClickEvent, EntityComparisonField, EntityComparisonOperation, EntityConfiguration, EntityConnectionConfig, EntityConnectionSourceValue, EntityConnectionValue, EntityData, EntityHeaderConfig, EntityLabelPosition, EntityLeafDetailsConfig, EntityListComparison, EntityListComparisonRow, EntityListEntityValue, EntityListInlineFieldMeta, EntityListLocalCell, EntityListLocalDocument, EntityListLocalFieldDefinition, EntityListLocalFieldWidth, EntityListLocalRow, EntityListLocalSchema, EntityListLocalSchemaField, EntityListRenderedRow, EntityListRowValue, EntityListSelectionDocument, EntityListSelectionRecord, EntityListSelectionRecordValue, EntityListTableHost, EntityListTranslatable, EntityListValueItem, EntityLocationValue, EntityLookupCheckListItem, EntityLookupCheckListPropValue, EntityLookupCheckListValue, EntityLookupValue, EntityMultiLookupValue, EntityMultiUserValue, EntityNestedPropertyMeta, EntityPercentageConfig, EntityPerformanceScoreChartSize, EntityPerformanceScoreConfig, EntityPerformanceScoreStatus, EntityPerformanceScoreValue, EntityPhaseGateValue, EntityPropertyConfiguration, EntityResizeEvent, EntityRowSpan, EntityRuntimeContext, EntityScheduleItemValue, EntitySectionConfig, EntitySectionGroup, EntitySectionLabel, EntitySize, EntityStatusValue, EntityTranslatableTextValue, EntityUserConfig, EntityUserValue, EntityViewType, LeafDetailsBadgeKind, LeafDetailsCatalogConfiguration, LeafDetailsCatalogLevelValue, LeafDetailsCatalogPhaseValue, LeafDetailsCatalogStatusValue, LeafDetailsEntityCollectionValue, LeafDetailsEntityValue, LeafDetailsPhaseSummary, LeafDetailsRuntimeChildSchema, LeafDetailsRuntimePhaseCount, LeafDetailsRuntimePhaseDetails, LeafDetailsRuntimeStatusCount, LeafDetailsRuntimeStatusDetails, LeafDetailsRuntimeValue, LeafDetailsStatusSummary, LeafLevelSavedConfig, LeafPhaseSavedConfig, PercentageColorMode, PercentageColorPropertyRef, PercentageColorRule, PercentageColorSource, PropertyValueComparison, ValueComparison };
@@ -31,6 +31,13 @@ declare class SelectField implements ControlValueAccessor, OnInit, OnChanges, Af
31
31
  readonly label: _angular_core.InputSignal<string>;
32
32
  /** Unique; shared by the control and its <label for>. See src/lib/utils/field-id. */
33
33
  readonly fieldId: string;
34
+ readonly labelId: string;
35
+ /**
36
+ * PrimeNG's focusable element is a `span[role=combobox]`, which `<label for>`
37
+ * cannot name, so assistive technology only heard the value ("Any"). Naming
38
+ * it by the label plus itself announces "Category, Any".
39
+ */
40
+ protected readonly comboboxLabelledBy: _angular_core.Signal<string | undefined>;
34
41
  readonly placeholder: _angular_core.InputSignal<string>;
35
42
  readonly hasPlaceholderPrefix: _angular_core.InputSignal<boolean>;
36
43
  readonly class: _angular_core.InputSignal<string>;