@ids-group-ltd/ids-design-system 0.14.2 → 0.14.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. package/CHANGELOG.md +93 -0
  2. package/components.md +15 -15
  3. package/docs/agent/forms/ds-color-picker.md +1 -1
  4. package/docs/agent/forms/ds-date-picker.md +1 -1
  5. package/docs/agent/forms/ds-select.md +1 -1
  6. package/docs/agent/forms/ds-textarea.md +1 -1
  7. package/docs/agent/forms/ds-time-picker.md +1 -1
  8. package/docs/agent/forms/the-picker-family-ds-select-ds-multi-select-ds-autocomplete.md +1 -1
  9. package/docs/agent/foundations/tokens.md +1 -1
  10. package/docs/agent/navigation/ds-tabs.md +1 -1
  11. package/docs/agent/overlays/ds-bottom-sheet.md +1 -1
  12. package/docs/agent/overlays/ds-drawer.md +1 -1
  13. package/docs/agent/overlays/ds-modal.md +1 -1
  14. package/docs/agent/overlays/ds-popover.md +1 -1
  15. package/docs/agent/overlays/ds-tooltip.md +3 -3
  16. package/fesm2022/ids-group-ltd-ids-design-system-components-autocomplete.mjs +2 -2
  17. package/fesm2022/ids-group-ltd-ids-design-system-components-autocomplete.mjs.map +1 -1
  18. package/fesm2022/ids-group-ltd-ids-design-system-components-bottom-sheet.mjs +16 -4
  19. package/fesm2022/ids-group-ltd-ids-design-system-components-bottom-sheet.mjs.map +1 -1
  20. package/fesm2022/ids-group-ltd-ids-design-system-components-color-picker.mjs +25 -10
  21. package/fesm2022/ids-group-ltd-ids-design-system-components-color-picker.mjs.map +1 -1
  22. package/fesm2022/ids-group-ltd-ids-design-system-components-date-picker.mjs +28 -11
  23. package/fesm2022/ids-group-ltd-ids-design-system-components-date-picker.mjs.map +1 -1
  24. package/fesm2022/ids-group-ltd-ids-design-system-components-drawer.mjs +13 -4
  25. package/fesm2022/ids-group-ltd-ids-design-system-components-drawer.mjs.map +1 -1
  26. package/fesm2022/ids-group-ltd-ids-design-system-components-multi-select.mjs +3 -3
  27. package/fesm2022/ids-group-ltd-ids-design-system-components-multi-select.mjs.map +1 -1
  28. package/fesm2022/ids-group-ltd-ids-design-system-components-select.mjs +3 -4
  29. package/fesm2022/ids-group-ltd-ids-design-system-components-select.mjs.map +1 -1
  30. package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav.mjs +1 -1
  31. package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav.mjs.map +1 -1
  32. package/fesm2022/ids-group-ltd-ids-design-system-components-stat.mjs +1 -1
  33. package/fesm2022/ids-group-ltd-ids-design-system-components-stat.mjs.map +1 -1
  34. package/fesm2022/ids-group-ltd-ids-design-system-components-table.mjs +2 -2
  35. package/fesm2022/ids-group-ltd-ids-design-system-components-table.mjs.map +1 -1
  36. package/fesm2022/ids-group-ltd-ids-design-system-components-tabs.mjs +2 -2
  37. package/fesm2022/ids-group-ltd-ids-design-system-components-tabs.mjs.map +1 -1
  38. package/fesm2022/ids-group-ltd-ids-design-system-components-textarea.mjs +31 -9
  39. package/fesm2022/ids-group-ltd-ids-design-system-components-textarea.mjs.map +1 -1
  40. package/fesm2022/ids-group-ltd-ids-design-system-components-time-picker.mjs +16 -5
  41. package/fesm2022/ids-group-ltd-ids-design-system-components-time-picker.mjs.map +1 -1
  42. package/fesm2022/ids-group-ltd-ids-design-system-components-tooltip.mjs +74 -18
  43. package/fesm2022/ids-group-ltd-ids-design-system-components-tooltip.mjs.map +1 -1
  44. package/fesm2022/ids-group-ltd-ids-design-system-components.mjs +2 -2
  45. package/fesm2022/ids-group-ltd-ids-design-system-components.mjs.map +1 -1
  46. package/migrations/0.14.3.json +71 -0
  47. package/package.json +1 -1
  48. package/schematics/check-overrides/surface.json +6 -1
  49. package/themes/_semantic.scss +1 -0
  50. package/themes/dark/_theme.scss +1 -0
  51. package/types/ids-group-ltd-ids-design-system-components-bottom-sheet.d.ts +4 -1
  52. package/types/ids-group-ltd-ids-design-system-components-color-picker.d.ts +4 -2
  53. package/types/ids-group-ltd-ids-design-system-components-date-picker.d.ts +4 -2
  54. package/types/ids-group-ltd-ids-design-system-components-drawer.d.ts +4 -1
  55. package/types/ids-group-ltd-ids-design-system-components-textarea.d.ts +11 -3
  56. package/types/ids-group-ltd-ids-design-system-components-time-picker.d.ts +3 -2
  57. package/types/ids-group-ltd-ids-design-system-components-tooltip.d.ts +10 -1
@@ -1 +1 @@
1
- {"version":3,"file":"ids-group-ltd-ids-design-system-components-multi-select.mjs","sources":["../../../src/lib/components/multi-select/multi-select.component.ts","../../../src/lib/components/multi-select/multi-select.component.html","../../../src/lib/components/multi-select/ids-group-ltd-ids-design-system-components-multi-select.ts"],"sourcesContent":["import { NgTemplateOutlet } from '@angular/common';\nimport {\n Component,\n ElementRef,\n type OnDestroy,\n TemplateRef,\n ViewContainerRef,\n ViewEncapsulation,\n booleanAttribute,\n computed,\n forwardRef,\n inject,\n input,\n output,\n model,\n numberAttribute,\n signal,\n contentChild,\n viewChild,\n} from '@angular/core';\nimport { NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { Overlay, OverlayRef } from '@angular/cdk/overlay';\nimport { TemplatePortal } from '@angular/cdk/portal';\nimport { chipFit } from '@ids-group-ltd/ids-design-system/components';\nimport { IconComponent } from '@ids-group-ltd/ids-design-system/icons';\nimport { SpinnerComponent } from '@ids-group-ltd/ids-design-system/components/spinner';\nimport { TagComponent } from '@ids-group-ltd/ids-design-system/components/tag';\nimport { DsControlValueAccessor } from '@ids-group-ltd/ids-design-system/components';\nimport {\n clearOnDetach,\n closeOnOutsidePointer,\n closeOnScroll,\n disposeWithLeave,\n type DsOverlayCloseCause,\n focusIsInside,\n forwardOverlayTokens,\n dropdownOverlay,\n panelClassesOf,\n prepareOverlayEnter,\n} from '@ids-group-ltd/ids-design-system/components';\nimport { FieldMessageComponent } from '@ids-group-ltd/ids-design-system/components/field-message';\nimport { TooltipDirective } from '@ids-group-ltd/ids-design-system/components/tooltip';\nimport {\n resolveFieldMessage,\n trimmedText,\n} from '@ids-group-ltd/ids-design-system/components';\nimport { nextControlId } from '@ids-group-ltd/ids-design-system/components';\nimport {\n DS_INTL,\n resolveWithConfig,\n} from '@ids-group-ltd/ids-design-system/core';\nimport type { DsSize } from '@ids-group-ltd/ids-design-system/core';\nimport { DsOptionTemplateDirective } from '@ids-group-ltd/ids-design-system/components';\nimport { DsChipTemplateDirective } from '@ids-group-ltd/ids-design-system/components';\nimport { DsPickerTriggerDirective } from '@ids-group-ltd/ids-design-system/components';\nimport { DsEmptyTemplateDirective } from '@ids-group-ltd/ids-design-system/components';\nimport { DsPanelHeaderTemplateDirective } from '@ids-group-ltd/ids-design-system/components';\nimport { DsPanelFooterTemplateDirective } from '@ids-group-ltd/ids-design-system/components';\nimport { DsGroupLabelTemplateDirective } from '@ids-group-ltd/ids-design-system/components';\nimport { BadgeComponent } from '@ids-group-ltd/ids-design-system/components/badge';\nimport type { DsTriggerDisplay } from '@ids-group-ltd/ids-design-system/core';\nimport type {\n MultiSelectItem,\n MultiSelectOption,\n MultiSelectOptionGroup,\n MultiSelectWidth,\n} from './multi-select.types';\nimport {\n flattenDsOptions,\n isDsOptionGroup,\n} from '@ids-group-ltd/ids-design-system/core';\nimport {\n firstEnabledIndex as firstEnabledOf,\n lastEnabledIndex as lastEnabledOf,\n nextEnabledIndex,\n} from '@ids-group-ltd/ids-design-system/core';\nimport { scrollActiveOptionIntoView } from '@ids-group-ltd/ids-design-system/components';\nimport { announceOptionCount } from '@ids-group-ltd/ids-design-system/components';\nimport { createTypeAhead } from '@ids-group-ltd/ids-design-system/components';\n\n@Component({\n selector: 'ds-multi-select',\n standalone: true,\n imports: [\n IconComponent,\n SpinnerComponent,\n TagComponent,\n BadgeComponent,\n FieldMessageComponent,\n NgTemplateOutlet,\n TooltipDirective,\n ],\n templateUrl: './multi-select.component.html',\n styleUrl: './multi-select.component.scss',\n host: {\n '[attr.data-field-state]': 'controlState()',\n '[class.content-width]': \"width() === 'content'\",\n '[class.compact-trigger]': 'showsCompactTrigger()',\n },\n encapsulation: ViewEncapsulation.Emulated,\n providers: [\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => MultiSelectComponent),\n multi: true,\n },\n ],\n})\nexport class MultiSelectComponent\n extends DsControlValueAccessor<string[]>\n implements OnDestroy\n{\n private readonly overlay = inject(Overlay);\n private readonly vcr = inject(ViewContainerRef);\n private readonly host = inject(ElementRef<HTMLElement>);\n protected readonly intl = inject(DS_INTL);\n /** Public panel tokens forwarded onto the portaled overlay pane on open so\n * a consumer's `ds-multi-select { --ds-multi-select-panel-*: … }` reaches it.\n * Not the whole set: `prepareOverlayEnter` also forwards `DROPDOWN_PANEL_TOKENS`\n * (overlay-motion.ts) onto every pane, the `--ds-option-*` family among them. */\n private readonly panelTokens = [\n '--ds-multi-select-panel-bg-color',\n '--ds-multi-select-option-bg-color-active',\n '--ds-multi-select-check-bg-color',\n '--ds-dropdown-panel-bg-color',\n '--ds-dropdown-panel-min-width',\n '--ds-dropdown-panel-max-width',\n '--ds-option-selected-bg-color',\n '--ds-option-selected-label-color',\n '--ds-option-selected-bg-color-hover',\n '--ds-option-check-color',\n ];\n\n /** Selected values, two-way bound. */\n readonly value = model<string[]>([]);\n /** Options, groups, or both mixed — rendered in the order given. */\n readonly options = input<readonly MultiSelectItem[]>([]);\n /** Placeholder shown in the trigger when nothing is selected.\n * Unset falls back to `DS_INTL.picker.placeholder`. */\n readonly placeholder = input<string | null>(null);\n readonly placeholderResolved = computed(\n () => this.placeholder() ?? this.intl().picker.placeholder,\n );\n /** Placeholder for the in-panel filter input.\n * Unset falls back to `DS_INTL.picker.filterPlaceholder`. */\n readonly searchPlaceholder = input<string | null>(null);\n readonly searchPlaceholderResolved = computed(\n () => this.searchPlaceholder() ?? this.intl().picker.filterPlaceholder,\n );\n /** Whether the panel carries a filter row. `true` always, `false` never, and a\n * NUMBER is a threshold — the row appears once there are at least that many\n * options. Unset falls back to `DS_CONFIG.picker.searchable`, then `true`.\n *\n * Hiding it moves the panel's keyboard model onto the trigger: the arrows,\n * Enter, Escape and `aria-activedescendant` are the filter input's today. */\n readonly searchable = input<boolean | number | null, unknown>(null, {\n transform: (raw: unknown) => {\n if (raw === null || raw === undefined) {\n return null;\n }\n // A bare attribute arrives as '' and has to beat the config default, which\n // treating it as \"unset\" would not.\n if (raw === '') {\n return true;\n }\n if (typeof raw === 'number') {\n return raw;\n }\n if (typeof raw === 'boolean') {\n return raw;\n }\n const asNumber = Number(raw);\n\n return Number.isFinite(asNumber) ? asNumber : raw !== 'false';\n },\n });\n readonly searchableResolved = resolveWithConfig<boolean | number>(\n this.searchable,\n (config) => config.picker?.searchable,\n true,\n );\n /** Native `name` attribute forwarded to the trigger. */\n readonly name = input<string | null>(null);\n /** Extra classes for the portaled panel, beside `ds-dropdown-panel`,\n * `ds-overlay-pane` and this component's own `ds-multi-select-panel`. The panel\n * is portaled out of the host, so a class on the pane is the only way a consumer\n * stylesheet reaches ONE instance of it. */\n readonly panelClass = input<string | readonly string[]>([]);\n /** Prevents opening the panel while still allowing focus. */\n readonly readOnly = input(false, { transform: booleanAttribute });\n /**\n * The contract spelling of `readOnly`, a second input because signal forms binds\n * by NAME — a `readonly()` rule was reaching nothing before this existed.\n */\n readonly readonlyBinding = input(false, {\n // eslint-disable-next-line @angular-eslint/no-input-rename\n alias: 'readonly',\n transform: booleanAttribute,\n });\n /** Shows a clear affordance once there is something to clear. */\n readonly clearable = input(false, { transform: booleanAttribute });\n /** How the typed query narrows the list.\n *\n * The default matches a case-insensitive substring of `label`. Pass a predicate\n * to match on anything else — a second field, ignoring diacritics, a fuzzy score.\n * Pass `'none'` when the list arrives already filtered, which is what a\n * server-side search needs: the query is reported through `filterChange` and\n * every option given is rendered.\n */\n readonly filterWith = input<\n ((option: MultiSelectOption, query: string) => boolean) | 'none'\n >((option, query) => option.label.toLowerCase().includes(query));\n /** The query the user typed, on every change. The input for a server-side search;\n * pair it with `filterWith=\"none\"` so the list is not narrowed twice. */\n readonly filterChange = output<string>();\n /** Options are still being fetched. The panel shows a spinner instead of the\n * empty row — which would otherwise claim there are no matches — and the list\n * reports `aria-busy`. */\n readonly loading = input(false, { transform: booleanAttribute });\n /** The panel opened. The moment to fetch options for a picker whose list is\n * loaded on demand. */\n readonly opened = output<void>();\n /** The panel closed, for any reason — a pick, Escape, an outside click, a scroll. */\n readonly closed = output<void>();\n /** Scrolls the keyboard cursor's row into view. On by default: a list longer\n * than the panel otherwise walks the cursor out of sight. Set `false` only if\n * you are driving the scroll position yourself. */\n readonly scrollActiveIntoView = input(true, { transform: booleanAttribute });\n /** How the chips collapse when they outgrow one line. `\"fit\"` (the default)\n * measures and shows as many as the trigger is wide, the rest behind \"+N more\".\n * A NUMBER is a CEILING, not a promise: the row still measures, so you get at\n * most that many and fewer when the trigger is narrow. `\"all\"` shows every chip and\n * lets the trigger grow a line per selection.\n *\n * Unset (`null`) means \"not deciding\", as it does on every other input in the\n * library — it resolves to `\"fit\"`. It does NOT mean \"show all\": that is\n * `\"all\"`, which is the loudest of the three modes and has to be asked for. */\n readonly maxVisibleChips = input<number | 'fit' | 'all' | null>(null, {\n transform: (raw: unknown) => {\n if (raw === 'fit' || raw === 'all') {\n return raw;\n }\n\n return raw == null ? null : numberAttribute(raw);\n },\n });\n /** Disables the trigger and blocks all interaction. */\n readonly disabled = input(false, { transform: booleanAttribute });\n /** Confirmation text, shown when there is no error or warning — and it paints\n * the field's success border. A string like `warning`: the text IS the state. */\n readonly success = input<string, string | null | undefined>('', {\n transform: trimmedText,\n });\n /** Accessible name for the trigger — falls back to `placeholder`. */\n readonly ariaLabel = input<string | null>(null);\n /** Trigger width — `fill` stretches to the container and pins the panel to the\n * trigger's width; `content` hugs the trigger's own content and takes that width\n * as the panel's FLOOR, so a compact trigger does not force an unreadable panel. */\n readonly width = input<MultiSelectWidth>('fill');\n /** Trigger height — sm/md/lg. Unset falls back to `DS_CONFIG.control.size`, then `'md'`. */\n readonly size = input<DsSize | null>(null);\n readonly sizeResolved = resolveWithConfig(\n this.size,\n (config) => config.control?.size,\n 'md' as DsSize,\n );\n /** What the trigger shows. `count` is a caption plus a selected-count badge at\n * intrinsic width; `labels` names the selection instead, cut to the width with the\n * rest behind \"+N\". A projected `dsPickerTrigger` template WINS over this — the\n * input is then not read at all. */\n readonly triggerDisplay = input<DsTriggerDisplay>('full');\n /** Field label above the control — the same meaning it has on `ds-select`, and the\n * caption a `count`/`labels` trigger uses when it needs one. */\n readonly label = input<string>('');\n /** Marks the field required: a `*` beside the label and `aria-required` on the trigger. */\n readonly required = input(false, { transform: booleanAttribute });\n /** Marks the field optional in words, for a form where most fields are required. */\n readonly optional = input(false, { transform: booleanAttribute });\n /** Where a \"select all\" row appears. `false` nowhere, `true` one row over the whole\n * panel, `'group'` one row per group, `'both'` for either. Group rows need groups\n * in `options` — with a flat list they have nothing to head. */\n readonly selectAll = input<boolean | 'group' | 'both', unknown>(false, {\n transform: (raw: unknown) =>\n raw === 'group' || raw === 'both' ? raw : booleanAttribute(raw),\n });\n\n protected readonly optionTemplate = contentChild(DsOptionTemplateDirective, {\n read: TemplateRef,\n });\n protected readonly chipTemplate = contentChild(DsChipTemplateDirective, {\n read: TemplateRef,\n });\n protected readonly pickerTrigger = contentChild(DsPickerTriggerDirective, {\n read: TemplateRef,\n });\n protected readonly panelHeaderTemplate = contentChild(\n DsPanelHeaderTemplateDirective,\n { read: TemplateRef },\n );\n protected readonly panelFooterTemplate = contentChild(\n DsPanelFooterTemplateDirective,\n { read: TemplateRef },\n );\n protected readonly groupLabelTemplate = contentChild(\n DsGroupLabelTemplateDirective,\n { read: TemplateRef },\n );\n protected readonly emptyTemplate = contentChild(DsEmptyTemplateDirective, {\n read: TemplateRef,\n });\n\n protected readonly uid = nextControlId('ds-multi-select');\n protected readonly listboxId = `${this.uid}-listbox`;\n protected readonly labelId = `${this.uid}-label`;\n protected optionId(index: number): string {\n return `${this.uid}-opt-${index}`;\n }\n\n protected readonly trigger =\n viewChild.required<ElementRef<HTMLElement>>('trigger');\n protected readonly searchInput =\n viewChild<ElementRef<HTMLInputElement>>('search');\n protected readonly panelTpl =\n viewChild.required<TemplateRef<unknown>>('panel');\n private readonly chipRow = viewChild<ElementRef<HTMLElement>>('chipRow');\n\n protected readonly open = signal(false);\n protected readonly filter = signal('');\n protected readonly activeIndex = signal(-1);\n\n private overlayRef: OverlayRef | null = null;\n private focusTimer: ReturnType<typeof setTimeout> | null = null;\n\n ngOnDestroy(): void {\n // Host torn down while open → close() never runs. Dispose the overlay so\n // its pane and event subscriptions don't leak.\n clearTimeout(this.focusTimer ?? undefined);\n this.overlayRef?.dispose();\n this.overlayRef = null;\n }\n\n protected readonly isDisabled = computed(\n () => this.disabled() || this.formDisabled(),\n );\n\n protected readonly showsCompactTrigger = computed(\n () => !this.pickerTrigger() && this.triggerDisplay() !== 'full',\n );\n\n protected readonly showsSearch = computed<boolean>(() => {\n const setting = this.searchableResolved();\n\n return typeof setting === 'number'\n ? this.allOptions().length >= setting\n : setting;\n });\n\n protected readonly triggerActiveDescendant = computed(() =>\n this.showsSearch() ? null : this.activeDescendant(),\n );\n\n protected readonly triggerCaption = computed(\n () => this.label() || this.ariaLabel() || this.placeholderResolved(),\n );\n\n protected readonly allOptions = computed<MultiSelectOption[]>(() =>\n flattenDsOptions(this.options()),\n );\n\n protected readonly selectedOptions = computed<MultiSelectOption[]>(() => {\n const selected = this.value();\n\n return this.allOptions().filter((option) =>\n selected.includes(option.value),\n );\n });\n\n private readonly chipsMode = computed(() => this.maxVisibleChips() ?? 'fit');\n private readonly showsEveryChip = computed(() => this.chipsMode() === 'all');\n /** True for BOTH `'fit'` and a number: a number is a ceiling, not a promise, so\n * the row still measures and shows only what the trigger is wide enough for. */\n protected readonly fitsChipsToWidth = computed(() => !this.showsEveryChip());\n /** How many chips the row is ASKED to render before measuring: everything for\n * `'fit'`, the ceiling for a number. It must be the ceiling and not the selection —\n * the width cache only fills from a render that holds every chip. */\n private readonly chipBudget = computed(() => {\n const max = this.chipsMode();\n const total = this.selectedOptions().length;\n\n return typeof max === 'number' ? Math.min(Math.max(max, 0), total) : total;\n });\n private readonly chipsThatFit = chipFit(\n this.chipBudget,\n this.chipRow,\n this.fitsChipsToWidth,\n computed(() => this.selectedOptions().length),\n );\n\n protected readonly visibleChips = computed<MultiSelectOption[]>(() => {\n const selected = this.selectedOptions();\n\n return this.showsEveryChip()\n ? selected\n : selected.slice(0, this.chipsThatFit());\n });\n\n protected readonly overflowCount = computed<number>(\n () => this.selectedOptions().length - this.visibleChips().length,\n );\n\n protected readonly filteredItems = computed<MultiSelectItem[]>(() => {\n const query = this.filter().trim().toLowerCase();\n const filter = this.filterWith();\n const matches = (option: MultiSelectOption): boolean =>\n !query || filter === 'none' || filter(option, query);\n\n const kept: MultiSelectItem[] = [];\n for (const item of this.options()) {\n if (!isDsOptionGroup(item)) {\n if (matches(item)) {\n kept.push(item);\n }\n continue;\n }\n // A disabled group disables its options HERE, not only in the flattened\n // list: the template renders these objects, so a group left to inherit\n // later would paint enabled rows that refuse to be picked.\n const options = item.options\n .filter(matches)\n .map((option) =>\n item.disabled ? { ...option, disabled: true } : option,\n );\n if (options.length > 0) {\n kept.push({ ...item, options });\n }\n }\n\n return kept;\n });\n\n protected readonly filteredOptions = computed<MultiSelectOption[]>(() =>\n flattenDsOptions(this.filteredItems()),\n );\n\n protected isGroup(item: MultiSelectItem): item is MultiSelectOptionGroup {\n return isDsOptionGroup(item);\n }\n\n /** Where an option sits in the flat visible list — the id the listbox's\n * `aria-activedescendant` points at, which a grouped render cannot get from\n * the loop index. */\n protected flatIndexOf(option: MultiSelectOption): number {\n return this.filteredOptions().indexOf(option);\n }\n\n protected readonly activeDescendant = computed(() => {\n const index = this.activeIndex();\n\n return this.open() && index >= 0 ? this.optionId(index) : null;\n });\n\n protected readonly resolvedAriaLabel = computed(\n () => this.ariaLabel() || this.placeholderResolved(),\n );\n\n protected readonly hintId = computed(() =>\n this.message().text ? `${this.uid}-hint` : null,\n );\n private readonly fieldMessage = resolveFieldMessage({\n disabled: () => this.isDisabled(),\n hint: this.hint,\n warning: this.warning,\n error: this.error,\n errors: this.errors,\n invalid: this.invalid,\n success: this.success,\n touchedSelf: this.touchedSelf,\n touched: this.touched,\n });\n protected readonly message = this.fieldMessage.message;\n protected readonly controlState = this.fieldMessage.controlState;\n protected readonly invalidResolved = this.fieldMessage.invalid;\n\n private enabledFiltered(): MultiSelectOption[] {\n return this.filteredOptions().filter((option) => !option.disabled);\n }\n\n protected readonly allFilteredSelected = computed<boolean>(() => {\n const enabled = this.enabledFiltered();\n const selected = this.value();\n\n return (\n enabled.length > 0 && enabled.every((o) => selected.includes(o.value))\n );\n });\n\n protected readonly someFilteredSelected = computed<boolean>(() => {\n const selected = this.value();\n\n return (\n this.enabledFiltered().some((o) => selected.includes(o.value)) &&\n !this.allFilteredSelected()\n );\n });\n\n protected readonly showsPanelSelectAll = computed(() => {\n const setting = this.selectAll();\n\n return setting === true || setting === 'both';\n });\n\n protected readonly showsGroupSelectAll = computed(() => {\n const setting = this.selectAll();\n\n return setting === 'group' || setting === 'both';\n });\n\n private enabledIn(group: MultiSelectOptionGroup): MultiSelectOption[] {\n return group.options.filter((option) => !option.disabled);\n }\n\n protected groupAllSelected(group: MultiSelectOptionGroup): boolean {\n const enabled = this.enabledIn(group);\n const selected = this.value();\n\n return (\n enabled.length > 0 && enabled.every((o) => selected.includes(o.value))\n );\n }\n\n protected groupSomeSelected(group: MultiSelectOptionGroup): boolean {\n const selected = this.value();\n\n return (\n this.enabledIn(group).some((o) => selected.includes(o.value)) &&\n !this.groupAllSelected(group)\n );\n }\n\n protected toggleGroup(group: MultiSelectOptionGroup): void {\n const values = this.enabledIn(group).map((o) => o.value);\n if (this.groupAllSelected(group)) {\n const remove = new Set(values);\n\n this.value.set(this.value().filter((value) => !remove.has(value)));\n\n return;\n }\n const next = new Set(this.value());\n values.forEach((value) => next.add(value));\n this.value.set([...next]);\n }\n\n protected toggleSelectAll(): void {\n const enabledValues = this.enabledFiltered().map((o) => o.value);\n if (this.allFilteredSelected()) {\n const remove = new Set(enabledValues);\n\n this.value.set(this.value().filter((value) => !remove.has(value)));\n } else {\n const next = new Set(this.value());\n enabledValues.forEach((value) => next.add(value));\n this.value.set([...next]);\n }\n }\n\n protected isSelected(value: string): boolean {\n return this.value().includes(value);\n }\n\n protected toggleValue(option: MultiSelectOption): void {\n if (option.disabled) {\n return;\n }\n const current = this.value();\n this.value.set(\n current.includes(option.value)\n ? current.filter((value) => value !== option.value)\n : [...current, option.value],\n );\n }\n\n protected clearValue(event: MouseEvent): void {\n event.stopPropagation();\n this.clear();\n this.markTouched();\n // The button that ran this is destroyed with the chips, so focus would fall\n // to <body>.\n this.trigger().nativeElement.focus();\n }\n\n /**\n * Empties the selection from outside — a \"reset filters\" button, a form the app\n * clears itself. Deliberately does NOT move focus: the caller may be navigating\n * away.\n */\n clear(): void {\n this.value.set([]);\n this.filter.set('');\n if (this.open()) {\n this.close('dismiss');\n }\n }\n\n protected removeValue(value: string): void {\n this.value.set(this.value().filter((entry) => entry !== value));\n // The close button that ran this is destroyed with its chip, so focus would\n // fall to <body>.\n this.trigger().nativeElement.focus();\n }\n\n constructor() {\n super();\n scrollActiveOptionIntoView(\n this.activeDescendant,\n this.scrollActiveIntoView,\n this.cursorFromKeyboard,\n );\n announceOptionCount(\n computed(() => this.filteredOptions().length),\n this.open,\n );\n }\n\n protected onFilter(event: Event): void {\n const typed = (event.target as HTMLInputElement).value;\n this.filter.set(typed);\n this.filterChange.emit(typed);\n this.activeIndex.set(this.firstEnabledIndex());\n }\n\n private setOpen(next: boolean): void {\n if (this.open() === next) {\n return;\n }\n this.open.set(next);\n (next ? this.opened : this.closed).emit();\n }\n\n protected readonly isReadOnly = computed(\n () => this.readOnly() || this.readonlyBinding(),\n );\n\n private readonly typeAhead = createTypeAhead();\n\n private handleTypeAhead(key: string): boolean {\n const index = this.typeAhead.match(\n key,\n this.filteredOptions().map((option) => option.label),\n this.activeIndex(),\n );\n if (index < 0) {\n return false;\n }\n this.activeIndex.set(index);\n\n return true;\n }\n\n protected readonly cursorFromKeyboard = signal(false);\n\n private cursorList() {\n const options = this.filteredOptions();\n\n return {\n length: options.length,\n isEnabled: (index: number) => !options[index].disabled,\n };\n }\n\n private firstEnabledIndex(): number {\n return firstEnabledOf(this.cursorList());\n }\n\n protected onTriggerKeydown(event: KeyboardEvent): void {\n this.cursorFromKeyboard.set(true);\n if (this.isDisabled()) {\n return;\n }\n // With no filter row the trigger runs the input's handler, and must take Enter\n // first — otherwise Enter toggles the panel instead of picking the active row.\n if (this.open() && !this.showsSearch()) {\n this.onSearchKeydown(event);\n\n return;\n }\n if (event.key === 'Enter' || event.key === ' ') {\n event.preventDefault();\n this.onTriggerClick();\n\n return;\n }\n if (event.key === 'ArrowDown' && !this.open()) {\n event.preventDefault();\n this.openPanel();\n\n return;\n }\n if (!this.open() && this.handleTypeAhead(event.key)) {\n event.preventDefault();\n }\n }\n\n protected onSearchKeydown(event: KeyboardEvent): void {\n this.cursorFromKeyboard.set(true);\n switch (event.key) {\n case 'ArrowDown':\n event.preventDefault();\n this.moveActive(1);\n break;\n case 'ArrowUp':\n event.preventDefault();\n this.moveActive(-1);\n break;\n case 'Enter': {\n event.preventDefault();\n const option = this.filteredOptions()[this.activeIndex()];\n if (option) {\n this.toggleValue(option);\n }\n break;\n }\n case 'Escape':\n event.preventDefault();\n this.close('dismiss');\n break;\n case 'PageDown':\n event.preventDefault();\n this.moveActive(MultiSelectComponent.pageStep);\n break;\n case 'PageUp':\n event.preventDefault();\n this.moveActive(-MultiSelectComponent.pageStep);\n break;\n case 'Home':\n event.preventDefault();\n this.activeIndex.set(this.firstEnabledIndex());\n break;\n case 'End':\n event.preventDefault();\n this.activeIndex.set(lastEnabledOf(this.cursorList()));\n break;\n case 'Tab':\n this.close('dismiss');\n break;\n case 'Backspace':\n if (!this.filter()) {\n const selected = this.selectedOptions();\n if (selected.length) {\n this.removeValue(selected[selected.length - 1].value);\n }\n }\n break;\n default:\n break;\n }\n }\n\n protected openPanel(): void {\n if (this.overlayRef || this.isDisabled() || this.isReadOnly()) {\n return;\n }\n const triggerElement = this.trigger().nativeElement;\n const { positionStrategy, config } = dropdownOverlay(\n this.overlay,\n triggerElement,\n ['ds-multi-select-panel', ...panelClassesOf(this.panelClass())],\n );\n const triggerWidth = triggerElement.getBoundingClientRect().width;\n // A compact trigger hugs its caption, so pinning the panel to it gives a panel\n // too narrow to read its own options — the trigger width becomes a FLOOR here\n // whether or not the consumer asked for `content`.\n if (this.width() === 'content' || this.showsCompactTrigger()) {\n config.minWidth = triggerWidth;\n } else {\n config.width = triggerWidth;\n }\n this.overlayRef = this.overlay.create(config);\n prepareOverlayEnter(\n this.overlayRef,\n this.host.nativeElement,\n positionStrategy,\n );\n forwardOverlayTokens(\n this.overlayRef,\n this.host.nativeElement,\n this.panelTokens,\n );\n closeOnOutsidePointer(\n this.overlayRef,\n (target) => this.trigger().nativeElement.contains(target),\n () => this.close('dismiss'),\n );\n // No backdrop catches a page scroll and CDK's scroll strategies miss a plain\n // overflow container, so close on any outside scroll ourselves.\n const removeScrollClose = closeOnScroll(this.overlayRef, () =>\n this.close('dismiss'),\n );\n clearOnDetach(this.overlayRef, {\n current: () => this.overlayRef,\n always: removeScrollClose,\n clear: () => {\n this.overlayRef = null;\n this.setOpen(false);\n },\n });\n this.overlayRef.keydownEvents().subscribe((event) => {\n if (event.key === 'Escape') {\n event.preventDefault();\n this.close('dismiss');\n }\n });\n this.overlayRef.attach(new TemplatePortal(this.panelTpl(), this.vcr));\n this.setOpen(true);\n this.activeIndex.set(this.firstEnabledIndex());\n if (this.showsSearch()) {\n this.focusTimer = setTimeout(() => {\n this.focusTimer = null;\n this.searchInput()?.nativeElement.focus();\n });\n }\n }\n\n protected onTriggerClick(): void {\n if (this.isDisabled()) {\n return;\n }\n if (this.overlayRef) {\n this.close();\n\n return;\n }\n this.openPanel();\n }\n\n protected close(cause: DsOverlayCloseCause = 'select'): void {\n if (!this.overlayRef) {\n return;\n }\n clearTimeout(this.focusTimer ?? undefined);\n this.focusTimer = null;\n const focusWasInPanel = focusIsInside(this.overlayRef);\n disposeWithLeave(this.overlayRef, cause);\n this.overlayRef = null;\n this.setOpen(false);\n this.filter.set('');\n this.activeIndex.set(-1);\n this.markTouched();\n if (focusWasInPanel) {\n this.trigger().nativeElement.focus({ preventScroll: true });\n }\n }\n\n /** How far PageUp and PageDown move. Ten rows is the native `<select>` step and\n * the APG listbox example's — a fixed number rather than a measured screenful,\n * so the jump is the same wherever the panel happens to be clipped. */\n private static readonly pageStep = 10;\n\n private moveActive(delta: number): void {\n const next = nextEnabledIndex(this.cursorList(), this.activeIndex(), delta);\n if (next >= 0) {\n this.activeIndex.set(next);\n }\n }\n}\n","@if (label()) {\n <span\n class=\"label\"\n [id]=\"labelId\">\n {{ label() }}\n @if (required()) {\n <span\n class=\"req\"\n aria-hidden=\"true\">\n *\n </span>\n } @else if (optional()) {\n <span\n class=\"optional-marker\"\n aria-hidden=\"true\">\n {{ intl().field.optional }}\n </span>\n }\n </span>\n}\n\n<div\n #trigger\n aria-haspopup=\"listbox\"\n role=\"combobox\"\n [class]=\"'field-trigger ' + sizeResolved()\"\n [class.open]=\"open()\"\n [class.disabled]=\"isDisabled()\"\n [attr.aria-invalid]=\"invalidResolved() ? 'true' : null\"\n [attr.aria-describedby]=\"hintId()\"\n [attr.aria-expanded]=\"open()\"\n [attr.aria-controls]=\"listboxId\"\n [attr.aria-labelledby]=\"label() ? labelId : null\"\n [attr.aria-label]=\"resolvedAriaLabel()\"\n [attr.aria-required]=\"required() ? 'true' : null\"\n [attr.aria-readonly]=\"isReadOnly() ? 'true' : null\"\n [attr.name]=\"name()\"\n [attr.aria-activedescendant]=\"triggerActiveDescendant()\"\n [attr.tabindex]=\"isDisabled() ? -1 : 0\"\n (click)=\"onTriggerClick()\"\n (keydown)=\"onTriggerKeydown($event)\">\n @if (pickerTrigger(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n $implicit: selectedOptions(),\n selected: selectedOptions(),\n count: selectedOptions().length,\n open: open(),\n disabled: isDisabled(),\n }\" />\n } @else if (showsCompactTrigger()) {\n <span class=\"trigger-caption\">\n {{ triggerCaption() }}\n </span>\n\n @if (triggerDisplay() === 'labels' && selectedOptions().length > 0) {\n <span\n #chipRow\n class=\"chip-row\"\n [class.fit]=\"fitsChipsToWidth()\">\n @for (option of visibleChips(); track option.value) {\n <span\n data-chip\n class=\"trigger-label\">\n {{ option.label }}\n </span>\n }\n\n @if (overflowCount() > 0) {\n <span\n class=\"overflow\"\n data-chip-overflow>\n +{{ overflowCount() }}\n </span>\n }\n </span>\n } @else if (selectedOptions().length > 0) {\n <ds-badge\n [count]=\"selectedOptions().length\"\n [countLabel]=\"intl().picker.selectedNoun\" />\n }\n } @else if (selectedOptions().length === 0) {\n <span class=\"placeholder\">\n {{ placeholderResolved() }}\n </span>\n } @else {\n <span\n #chipRow\n class=\"chip-row\"\n [class.fit]=\"fitsChipsToWidth()\">\n @for (option of visibleChips(); track option.value) {\n <ds-tag\n data-chip\n variant=\"neutral\"\n closable\n [closeLabel]=\"intl().picker.removeChip(option.label)\"\n (closed)=\"removeValue(option.value)\">\n @if (chipTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n $implicit: option,\n option: option,\n }\" />\n } @else {\n {{ option.label }}\n }\n </ds-tag>\n }\n\n @if (overflowCount() > 0) {\n <span\n class=\"overflow\"\n data-chip-overflow>\n {{ intl().picker.moreChips(overflowCount()) }}\n </span>\n }\n </span>\n }\n\n @if (\n clearable() &&\n selectedOptions().length > 0 &&\n !isDisabled() &&\n !isReadOnly()\n ) {\n <button\n type=\"button\"\n class=\"clear-btn\"\n [attr.aria-label]=\"intl().picker.clearSelection\"\n (click)=\"clearValue($event)\">\n <ds-icon\n name=\"x\"\n [size]=\"14\" />\n </button>\n }\n\n <ds-icon\n class=\"chevron\"\n name=\"chevronDown\"\n [size]=\"18\" />\n</div>\n\n<ds-field-message\n [icon]=\"messageIcon()\"\n [text]=\"message().text\"\n [state]=\"message().state\"\n [messageId]=\"hintId()\"\n [reserve]=\"reserveMessageResolved()\" />\n\n<ng-template #panel>\n <div class=\"dropdown-panel\">\n @if (panelHeaderTemplate(); as tpl) {\n <div class=\"panel-header\">\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n count: filteredOptions().length,\n total: allOptions().length,\n query: filter(),\n }\" />\n </div>\n }\n\n @if (showsSearch()) {\n <div class=\"search-row\">\n <ds-icon\n class=\"search-icon\"\n name=\"search\"\n [size]=\"16\" />\n\n <input\n #search\n type=\"text\"\n class=\"search-input\"\n role=\"combobox\"\n aria-autocomplete=\"list\"\n aria-expanded=\"true\"\n autocomplete=\"off\"\n spellcheck=\"false\"\n [placeholder]=\"searchPlaceholderResolved()\"\n [value]=\"filter()\"\n [attr.aria-controls]=\"listboxId\"\n [attr.aria-activedescendant]=\"activeDescendant()\"\n (input)=\"onFilter($event)\"\n (keydown)=\"onSearchKeydown($event)\" />\n </div>\n }\n\n @if (showsPanelSelectAll() && filteredOptions().length) {\n <button\n type=\"button\"\n class=\"select-all\"\n role=\"checkbox\"\n [attr.aria-checked]=\"\n allFilteredSelected()\n ? 'true'\n : someFilteredSelected()\n ? 'mixed'\n : 'false'\n \"\n (click)=\"toggleSelectAll()\">\n <span\n class=\"checkbox\"\n [class.checked]=\"allFilteredSelected()\"\n [class.indeterminate]=\"someFilteredSelected()\">\n <span class=\"tick\"></span>\n </span>\n\n <span class=\"select-all-label\">\n {{ intl().picker.selectAll }}\n </span>\n </button>\n }\n\n <ul\n class=\"dropdown-list\"\n role=\"listbox\"\n aria-multiselectable=\"true\"\n [attr.aria-busy]=\"loading() ? 'true' : null\"\n [id]=\"listboxId\">\n @for (item of filteredItems(); track $index; let itemIdx = $index) {\n @if (isGroup(item)) {\n <li\n class=\"optgroup\"\n role=\"group\"\n [attr.aria-label]=\"item.label\">\n <span\n class=\"optgroup-label\"\n [class.is-first]=\"itemIdx === 0\">\n @if (groupLabelTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n $implicit: item,\n group: item,\n count: item.options.length,\n }\" />\n } @else {\n {{ item.label }}\n }\n </span>\n\n @if (showsGroupSelectAll()) {\n <button\n type=\"button\"\n tabindex=\"-1\"\n class=\"select-all group\"\n role=\"option\"\n [disabled]=\"item.disabled\"\n [attr.aria-selected]=\"groupAllSelected(item)\"\n [attr.aria-checked]=\"\n groupAllSelected(item)\n ? 'true'\n : groupSomeSelected(item)\n ? 'mixed'\n : 'false'\n \"\n (click)=\"toggleGroup(item)\">\n <span\n class=\"checkbox\"\n [class.checked]=\"groupAllSelected(item)\"\n [class.indeterminate]=\"groupSomeSelected(item)\">\n <span class=\"tick\"></span>\n </span>\n\n {{ intl().picker.selectAllInGroup(item.label) }}\n </button>\n }\n\n <ul\n class=\"optgroup-list\"\n role=\"presentation\">\n @for (option of item.options; track option.value) {\n <li role=\"presentation\">\n <button\n type=\"button\"\n tabindex=\"-1\"\n role=\"option\"\n class=\"option\"\n [id]=\"optionId(flatIndexOf(option))\"\n [class.is-active]=\"activeIndex() === flatIndexOf(option)\"\n [attr.aria-selected]=\"isSelected(option.value)\"\n [disabled]=\"option.disabled\"\n (click)=\"toggleValue(option)\"\n (mouseenter)=\"\n cursorFromKeyboard.set(false);\n activeIndex.set(flatIndexOf(option))\n \">\n <span\n class=\"checkbox\"\n [class.checked]=\"isSelected(option.value)\">\n <span class=\"tick\"></span>\n </span>\n\n @if (option.icon) {\n <ds-icon\n class=\"option-icon\"\n [name]=\"option.icon\"\n [size]=\"16\" />\n }\n\n <span\n class=\"option-label\"\n dsTooltip\n dsTooltipWhenClipped>\n @if (optionTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n $implicit: option,\n option: option,\n }\" />\n } @else {\n {{ option.label }}\n }\n </span>\n </button>\n </li>\n }\n </ul>\n </li>\n } @else {\n @let option = item;\n\n <li role=\"presentation\">\n <button\n type=\"button\"\n tabindex=\"-1\"\n role=\"option\"\n class=\"option\"\n [id]=\"optionId(flatIndexOf(option))\"\n [class.is-active]=\"activeIndex() === flatIndexOf(option)\"\n [attr.aria-selected]=\"isSelected(option.value)\"\n [disabled]=\"option.disabled\"\n (click)=\"toggleValue(option)\"\n (mouseenter)=\"\n cursorFromKeyboard.set(false);\n activeIndex.set(flatIndexOf(option))\n \">\n <span\n class=\"checkbox\"\n [class.checked]=\"isSelected(option.value)\">\n <span class=\"tick\"></span>\n </span>\n\n @if (option.icon) {\n <ds-icon\n class=\"option-icon\"\n [name]=\"option.icon\"\n [size]=\"16\" />\n }\n\n <span\n class=\"option-label\"\n dsTooltip\n dsTooltipWhenClipped>\n @if (optionTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n $implicit: option,\n option: option,\n }\" />\n } @else {\n {{ option.label }}\n }\n </span>\n </button>\n </li>\n }\n }\n\n @if (loading()) {\n <li\n class=\"empty t-s\"\n role=\"presentation\">\n <ds-spinner size=\"sm\" />\n </li>\n } @else if (filteredOptions().length === 0) {\n <li\n class=\"empty t-s\"\n role=\"presentation\">\n @if (emptyTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n $implicit: filter(),\n query: filter(),\n }\" />\n } @else {\n {{ intl().picker.noMatches }}\n }\n </li>\n }\n </ul>\n\n @if (panelFooterTemplate(); as tpl) {\n <div class=\"panel-footer\">\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n count: filteredOptions().length,\n total: allOptions().length,\n query: filter(),\n }\" />\n </div>\n }\n </div>\n</ng-template>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["firstEnabledOf","lastEnabledOf"],"mappings":";;;;;;;;;;;;;;;AA4GM,MAAO,oBACX,SAAQ,sBA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A,EAAA,kBAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,YAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,UAAA,CAAA,MAGrB,6BAA6B,CAAA,EAAA,EAAA,GAC7B,EAAE,IAAI,EAAE,WAAW,EAAE,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,aAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,YAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,UAAA,CAAA,MAEyB,wBAAwB,CAAA,EAAA,EAAA,GAAE;AACxE,4BAAA,IAAI,EAAE,WAAW;AAClB,yBAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,OAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,SAAA,EAAA,IAAA,EAAA,CAU6C,SAAS,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,WAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,SAAA,EAAA,IAAA,EAAA,CAEb,QAAQ,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,QAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,SAAA,EAAA,IAAA,EAAA,CAEP,OAAO,iEACY,SAAS,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AEpUzE;;AAEG;;;;"}
1
+ {"version":3,"file":"ids-group-ltd-ids-design-system-components-multi-select.mjs","sources":["../../../src/lib/components/multi-select/multi-select.component.ts","../../../src/lib/components/multi-select/multi-select.component.html","../../../src/lib/components/multi-select/ids-group-ltd-ids-design-system-components-multi-select.ts"],"sourcesContent":["import { NgTemplateOutlet } from '@angular/common';\nimport {\n Component,\n ElementRef,\n type OnDestroy,\n TemplateRef,\n ViewContainerRef,\n ViewEncapsulation,\n booleanAttribute,\n computed,\n forwardRef,\n inject,\n input,\n output,\n model,\n numberAttribute,\n signal,\n contentChild,\n viewChild,\n} from '@angular/core';\nimport { NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { Overlay, OverlayRef } from '@angular/cdk/overlay';\nimport { TemplatePortal } from '@angular/cdk/portal';\nimport { chipFit } from '@ids-group-ltd/ids-design-system/components';\nimport { IconComponent } from '@ids-group-ltd/ids-design-system/icons';\nimport { SpinnerComponent } from '@ids-group-ltd/ids-design-system/components/spinner';\nimport { TagComponent } from '@ids-group-ltd/ids-design-system/components/tag';\nimport { DsControlValueAccessor } from '@ids-group-ltd/ids-design-system/components';\nimport {\n clearOnDetach,\n closeOnOutsidePointer,\n closeOnScroll,\n disposeWithLeave,\n type DsOverlayCloseCause,\n focusIsInside,\n forwardOverlayTokens,\n dropdownOverlay,\n panelClassesOf,\n prepareOverlayEnter,\n} from '@ids-group-ltd/ids-design-system/components';\nimport { FieldMessageComponent } from '@ids-group-ltd/ids-design-system/components/field-message';\nimport { TooltipDirective } from '@ids-group-ltd/ids-design-system/components/tooltip';\nimport {\n resolveFieldMessage,\n trimmedText,\n} from '@ids-group-ltd/ids-design-system/components';\nimport { nextControlId } from '@ids-group-ltd/ids-design-system/components';\nimport {\n DS_INTL,\n resolveWithConfig,\n} from '@ids-group-ltd/ids-design-system/core';\nimport type { DsSize } from '@ids-group-ltd/ids-design-system/core';\nimport { DsOptionTemplateDirective } from '@ids-group-ltd/ids-design-system/components';\nimport { DsChipTemplateDirective } from '@ids-group-ltd/ids-design-system/components';\nimport { DsPickerTriggerDirective } from '@ids-group-ltd/ids-design-system/components';\nimport { DsEmptyTemplateDirective } from '@ids-group-ltd/ids-design-system/components';\nimport { DsPanelHeaderTemplateDirective } from '@ids-group-ltd/ids-design-system/components';\nimport { DsPanelFooterTemplateDirective } from '@ids-group-ltd/ids-design-system/components';\nimport { DsGroupLabelTemplateDirective } from '@ids-group-ltd/ids-design-system/components';\nimport { BadgeComponent } from '@ids-group-ltd/ids-design-system/components/badge';\nimport type { DsTriggerDisplay } from '@ids-group-ltd/ids-design-system/core';\nimport type {\n MultiSelectItem,\n MultiSelectOption,\n MultiSelectOptionGroup,\n MultiSelectWidth,\n} from './multi-select.types';\nimport {\n flattenDsOptions,\n isDsOptionGroup,\n} from '@ids-group-ltd/ids-design-system/core';\nimport {\n firstEnabledIndex as firstEnabledOf,\n lastEnabledIndex as lastEnabledOf,\n nextEnabledIndex,\n} from '@ids-group-ltd/ids-design-system/core';\nimport { scrollActiveOptionIntoView } from '@ids-group-ltd/ids-design-system/components';\nimport { announceOptionCount } from '@ids-group-ltd/ids-design-system/components';\nimport { createTypeAhead } from '@ids-group-ltd/ids-design-system/components';\n\n@Component({\n selector: 'ds-multi-select',\n standalone: true,\n imports: [\n IconComponent,\n SpinnerComponent,\n TagComponent,\n BadgeComponent,\n FieldMessageComponent,\n NgTemplateOutlet,\n TooltipDirective,\n ],\n templateUrl: './multi-select.component.html',\n styleUrl: './multi-select.component.scss',\n host: {\n '[attr.data-field-state]': 'controlState()',\n '[class.content-width]': \"width() === 'content'\",\n '[class.compact-trigger]': 'showsCompactTrigger()',\n },\n encapsulation: ViewEncapsulation.Emulated,\n providers: [\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => MultiSelectComponent),\n multi: true,\n },\n ],\n})\nexport class MultiSelectComponent\n extends DsControlValueAccessor<string[]>\n implements OnDestroy\n{\n private readonly overlay = inject(Overlay);\n private readonly vcr = inject(ViewContainerRef);\n private readonly host = inject(ElementRef<HTMLElement>);\n protected readonly intl = inject(DS_INTL);\n /** Public panel tokens forwarded onto the portaled overlay pane on open so\n * a consumer's `ds-multi-select { --ds-multi-select-panel-*: … }` reaches it.\n * Not the whole set: `prepareOverlayEnter` also forwards `DROPDOWN_PANEL_TOKENS`\n * (overlay-motion.ts) onto every pane, the `--ds-option-*` family among them. */\n private readonly panelTokens = [\n '--ds-multi-select-panel-bg-color',\n '--ds-multi-select-option-bg-color-active',\n '--ds-multi-select-check-bg-color',\n '--ds-dropdown-panel-bg-color',\n '--ds-dropdown-panel-min-width',\n '--ds-dropdown-panel-max-width',\n '--ds-option-selected-bg-color',\n '--ds-option-selected-label-color',\n '--ds-option-selected-bg-color-hover',\n '--ds-option-check-color',\n ];\n\n /** Selected values, two-way bound. */\n readonly value = model<string[]>([]);\n /** Options, groups, or both mixed — rendered in the order given. */\n readonly options = input<readonly MultiSelectItem[]>([]);\n /** Placeholder shown in the trigger when nothing is selected.\n * Unset falls back to `DS_INTL.picker.placeholder`. */\n readonly placeholder = input<string | null>(null);\n readonly placeholderResolved = computed(\n () => this.placeholder() ?? this.intl().picker.placeholder,\n );\n /** Placeholder for the in-panel filter input.\n * Unset falls back to `DS_INTL.picker.filterPlaceholder`. */\n readonly searchPlaceholder = input<string | null>(null);\n readonly searchPlaceholderResolved = computed(\n () => this.searchPlaceholder() ?? this.intl().picker.filterPlaceholder,\n );\n /** Whether the panel carries a filter row. `true` always, `false` never, and a\n * NUMBER is a threshold — the row appears once there are at least that many\n * options. Unset falls back to `DS_CONFIG.picker.searchable`, then `true`.\n *\n * Hiding it moves the panel's keyboard model onto the trigger: the arrows,\n * Enter, Escape and `aria-activedescendant` are the filter input's today. */\n readonly searchable = input<boolean | number | null, unknown>(null, {\n transform: (raw: unknown) => {\n if (raw === null || raw === undefined) {\n return null;\n }\n // A bare attribute arrives as '' and has to beat the config default, which\n // treating it as \"unset\" would not.\n if (raw === '') {\n return true;\n }\n if (typeof raw === 'number') {\n return raw;\n }\n if (typeof raw === 'boolean') {\n return raw;\n }\n const asNumber = Number(raw);\n\n return Number.isFinite(asNumber) ? asNumber : raw !== 'false';\n },\n });\n readonly searchableResolved = resolveWithConfig<boolean | number>(\n this.searchable,\n (config) => config.picker?.searchable,\n true,\n );\n /** Native `name` attribute forwarded to the trigger. */\n readonly name = input<string | null>(null);\n /** Extra classes for the portaled panel, beside `ds-dropdown-panel`,\n * `ds-overlay-pane` and this component's own `ds-multi-select-panel`. The panel\n * is portaled out of the host, so a class on the pane is the only way a consumer\n * stylesheet reaches ONE instance of it. */\n readonly panelClass = input<string | readonly string[]>([]);\n /** Prevents opening the panel while still allowing focus. */\n readonly readOnly = input(false, { transform: booleanAttribute });\n /**\n * The contract spelling of `readOnly`, a second input because signal forms binds\n * by NAME — a `readonly()` rule was reaching nothing before this existed.\n */\n readonly readonlyBinding = input(false, {\n // eslint-disable-next-line @angular-eslint/no-input-rename\n alias: 'readonly',\n transform: booleanAttribute,\n });\n /** Shows a clear affordance once there is something to clear. */\n readonly clearable = input(false, { transform: booleanAttribute });\n /** How the typed query narrows the list.\n *\n * The default matches a case-insensitive substring of `label`. Pass a predicate\n * to match on anything else — a second field, ignoring diacritics, a fuzzy score.\n * Pass `'none'` when the list arrives already filtered, which is what a\n * server-side search needs: the query is reported through `filterChange` and\n * every option given is rendered.\n */\n readonly filterWith = input<\n ((option: MultiSelectOption, query: string) => boolean) | 'none'\n >((option, query) => option.label.toLowerCase().includes(query));\n /** The query the user typed, on every change. The input for a server-side search;\n * pair it with `filterWith=\"none\"` so the list is not narrowed twice. */\n readonly filterChange = output<string>();\n /** Options are still being fetched. The panel shows a spinner instead of the\n * empty row — which would otherwise claim there are no matches — and the list\n * reports `aria-busy`. */\n readonly loading = input(false, { transform: booleanAttribute });\n /** The panel opened. The moment to fetch options for a picker whose list is\n * loaded on demand. */\n readonly opened = output<void>();\n /** The panel closed, for any reason — a pick, Escape, an outside click, a scroll. */\n readonly closed = output<void>();\n /** Scrolls the keyboard cursor's row into view. On by default: a list longer\n * than the panel otherwise walks the cursor out of sight. Set `false` only if\n * you are driving the scroll position yourself. */\n readonly scrollActiveIntoView = input(true, { transform: booleanAttribute });\n /** How the chips collapse when they outgrow one line. `\"fit\"` (the default)\n * measures and shows as many as the trigger is wide, the rest behind \"+N more\".\n * A NUMBER is a CEILING, not a promise: the row still measures, so you get at\n * most that many and fewer when the trigger is narrow. `\"all\"` shows every chip and\n * lets the trigger grow a line per selection.\n *\n * Unset (`null`) means \"not deciding\", as it does on every other input in the\n * library — it resolves to `\"fit\"`. It does NOT mean \"show all\": that is\n * `\"all\"`, which is the loudest of the three modes and has to be asked for. */\n readonly maxVisibleChips = input<number | 'fit' | 'all' | null>(null, {\n transform: (raw: unknown) => {\n if (raw === 'fit' || raw === 'all') {\n return raw;\n }\n\n return raw == null ? null : numberAttribute(raw);\n },\n });\n /** Disables the trigger and blocks all interaction. */\n readonly disabled = input(false, { transform: booleanAttribute });\n /** Confirmation text, shown when there is no error or warning — and it paints\n * the field's success border. A string like `warning`: the text IS the state. */\n readonly success = input<string, string | null | undefined>('', {\n transform: trimmedText,\n });\n /** Accessible name for the trigger — falls back to `placeholder`. */\n readonly ariaLabel = input<string | null>(null);\n /** Trigger width — `fill` stretches to the container and pins the panel to the\n * trigger's width; `content` hugs the trigger's own content and takes that width\n * as the panel's FLOOR, so a compact trigger does not force an unreadable panel. */\n readonly width = input<MultiSelectWidth>('fill');\n /** Trigger height — sm/md/lg. Unset falls back to `DS_CONFIG.control.size`, then `'md'`. */\n readonly size = input<DsSize | null>(null);\n readonly sizeResolved = resolveWithConfig(\n this.size,\n (config) => config.control?.size,\n 'md' as DsSize,\n );\n /** What the trigger shows. `count` is a caption plus a selected-count badge at\n * intrinsic width; `labels` names the selection instead, cut to the width with the\n * rest behind \"+N\". A projected `dsPickerTrigger` template WINS over this — the\n * input is then not read at all. */\n readonly triggerDisplay = input<DsTriggerDisplay>('full');\n /** Field label above the control — the same meaning it has on `ds-select`, and the\n * caption a `count`/`labels` trigger uses when it needs one. */\n readonly label = input<string>('');\n /** Marks the field required: a `*` beside the label and `aria-required` on the trigger. */\n readonly required = input(false, { transform: booleanAttribute });\n /** Marks the field optional in words, for a form where most fields are required. */\n readonly optional = input(false, { transform: booleanAttribute });\n /** Where a \"select all\" row appears. `false` nowhere, `true` one row over the whole\n * panel, `'group'` one row per group, `'both'` for either. Group rows need groups\n * in `options` — with a flat list they have nothing to head. */\n readonly selectAll = input<boolean | 'group' | 'both', unknown>(false, {\n transform: (raw: unknown) =>\n raw === 'group' || raw === 'both' ? raw : booleanAttribute(raw),\n });\n\n protected readonly optionTemplate = contentChild(DsOptionTemplateDirective, {\n read: TemplateRef,\n });\n protected readonly chipTemplate = contentChild(DsChipTemplateDirective, {\n read: TemplateRef,\n });\n protected readonly pickerTrigger = contentChild(DsPickerTriggerDirective, {\n read: TemplateRef,\n });\n protected readonly panelHeaderTemplate = contentChild(\n DsPanelHeaderTemplateDirective,\n { read: TemplateRef },\n );\n protected readonly panelFooterTemplate = contentChild(\n DsPanelFooterTemplateDirective,\n { read: TemplateRef },\n );\n protected readonly groupLabelTemplate = contentChild(\n DsGroupLabelTemplateDirective,\n { read: TemplateRef },\n );\n protected readonly emptyTemplate = contentChild(DsEmptyTemplateDirective, {\n read: TemplateRef,\n });\n\n protected readonly uid = nextControlId('ds-multi-select');\n protected readonly listboxId = `${this.uid}-listbox`;\n protected readonly labelId = `${this.uid}-label`;\n protected optionId(index: number): string {\n return `${this.uid}-opt-${index}`;\n }\n\n protected readonly trigger =\n viewChild.required<ElementRef<HTMLElement>>('trigger');\n protected readonly searchInput =\n viewChild<ElementRef<HTMLInputElement>>('search');\n protected readonly panelTpl =\n viewChild.required<TemplateRef<unknown>>('panel');\n private readonly chipRow = viewChild<ElementRef<HTMLElement>>('chipRow');\n\n protected readonly open = signal(false);\n protected readonly filter = signal('');\n protected readonly activeIndex = signal(-1);\n\n private overlayRef: OverlayRef | null = null;\n private focusTimer: ReturnType<typeof setTimeout> | null = null;\n\n ngOnDestroy(): void {\n // Host torn down while open → close() never runs. Dispose the overlay so\n // its pane and event subscriptions don't leak.\n clearTimeout(this.focusTimer ?? undefined);\n this.overlayRef?.dispose();\n this.overlayRef = null;\n }\n\n protected readonly isDisabled = computed(\n () => this.disabled() || this.formDisabled(),\n );\n\n protected readonly showsCompactTrigger = computed(\n () => !this.pickerTrigger() && this.triggerDisplay() !== 'full',\n );\n\n protected readonly showsSearch = computed<boolean>(() => {\n const setting = this.searchableResolved();\n\n return typeof setting === 'number'\n ? this.allOptions().length >= setting\n : setting;\n });\n\n protected readonly triggerActiveDescendant = computed(() =>\n this.showsSearch() ? null : this.activeDescendant(),\n );\n\n protected readonly triggerCaption = computed(\n () => this.label() || this.ariaLabel() || this.placeholderResolved(),\n );\n\n protected readonly allOptions = computed<MultiSelectOption[]>(() =>\n flattenDsOptions(this.options()),\n );\n\n protected readonly selectedOptions = computed<MultiSelectOption[]>(() => {\n const selected = this.value();\n\n return this.allOptions().filter((option) =>\n selected.includes(option.value),\n );\n });\n\n private readonly chipsMode = computed(() => this.maxVisibleChips() ?? 'fit');\n private readonly showsEveryChip = computed(() => this.chipsMode() === 'all');\n /** True for BOTH `'fit'` and a number: a number is a ceiling, not a promise, so\n * the row still measures and shows only what the trigger is wide enough for. */\n protected readonly fitsChipsToWidth = computed(() => !this.showsEveryChip());\n /** How many chips the row is ASKED to render before measuring: everything for\n * `'fit'`, the ceiling for a number. It must be the ceiling and not the selection —\n * the width cache only fills from a render that holds every chip. */\n private readonly chipBudget = computed(() => {\n const max = this.chipsMode();\n const total = this.selectedOptions().length;\n\n return typeof max === 'number' ? Math.min(Math.max(max, 0), total) : total;\n });\n private readonly chipsThatFit = chipFit(\n this.chipBudget,\n this.chipRow,\n this.fitsChipsToWidth,\n computed(() => this.selectedOptions().length),\n );\n\n protected readonly visibleChips = computed<MultiSelectOption[]>(() => {\n const selected = this.selectedOptions();\n\n return this.showsEveryChip()\n ? selected\n : selected.slice(0, this.chipsThatFit());\n });\n\n protected readonly overflowCount = computed<number>(\n () => this.selectedOptions().length - this.visibleChips().length,\n );\n\n protected readonly filteredItems = computed<MultiSelectItem[]>(() => {\n const query = this.filter().trim().toLowerCase();\n const filter = this.filterWith();\n const matches = (option: MultiSelectOption): boolean =>\n !query || filter === 'none' || filter(option, query);\n\n const kept: MultiSelectItem[] = [];\n for (const item of this.options()) {\n if (!isDsOptionGroup(item)) {\n if (matches(item)) {\n kept.push(item);\n }\n continue;\n }\n // A disabled group disables its options HERE, not only in the flattened\n // list: the template renders these objects, so a group left to inherit\n // later would paint enabled rows that refuse to be picked.\n const options = item.options\n .filter(matches)\n .map((option) =>\n item.disabled ? { ...option, disabled: true } : option,\n );\n if (options.length > 0) {\n kept.push({ ...item, options });\n }\n }\n\n return kept;\n });\n\n protected readonly filteredOptions = computed<MultiSelectOption[]>(() =>\n flattenDsOptions(this.filteredItems()),\n );\n\n protected isGroup(item: MultiSelectItem): item is MultiSelectOptionGroup {\n return isDsOptionGroup(item);\n }\n\n /** Where an option sits in the flat visible list — the id the listbox's\n * `aria-activedescendant` points at, which a grouped render cannot get from\n * the loop index. */\n protected flatIndexOf(option: MultiSelectOption): number {\n return this.filteredOptions().indexOf(option);\n }\n\n protected readonly activeDescendant = computed(() => {\n const index = this.activeIndex();\n\n return this.open() && index >= 0 ? this.optionId(index) : null;\n });\n\n protected readonly resolvedAriaLabel = computed(\n () => this.ariaLabel() || this.placeholderResolved(),\n );\n\n protected readonly hintId = computed(() =>\n this.message().text ? `${this.uid}-hint` : null,\n );\n private readonly fieldMessage = resolveFieldMessage({\n disabled: () => this.isDisabled(),\n hint: this.hint,\n warning: this.warning,\n error: this.error,\n errors: this.errors,\n invalid: this.invalid,\n success: this.success,\n touchedSelf: this.touchedSelf,\n touched: this.touched,\n });\n protected readonly message = this.fieldMessage.message;\n protected readonly controlState = this.fieldMessage.controlState;\n protected readonly invalidResolved = this.fieldMessage.invalid;\n\n private enabledFiltered(): MultiSelectOption[] {\n return this.filteredOptions().filter((option) => !option.disabled);\n }\n\n protected readonly allFilteredSelected = computed<boolean>(() => {\n const enabled = this.enabledFiltered();\n const selected = this.value();\n\n return (\n enabled.length > 0 && enabled.every((o) => selected.includes(o.value))\n );\n });\n\n protected readonly someFilteredSelected = computed<boolean>(() => {\n const selected = this.value();\n\n return (\n this.enabledFiltered().some((o) => selected.includes(o.value)) &&\n !this.allFilteredSelected()\n );\n });\n\n protected readonly showsPanelSelectAll = computed(() => {\n const setting = this.selectAll();\n\n return setting === true || setting === 'both';\n });\n\n protected readonly showsGroupSelectAll = computed(() => {\n const setting = this.selectAll();\n\n return setting === 'group' || setting === 'both';\n });\n\n private enabledIn(group: MultiSelectOptionGroup): MultiSelectOption[] {\n return group.options.filter((option) => !option.disabled);\n }\n\n protected groupAllSelected(group: MultiSelectOptionGroup): boolean {\n const enabled = this.enabledIn(group);\n const selected = this.value();\n\n return (\n enabled.length > 0 && enabled.every((o) => selected.includes(o.value))\n );\n }\n\n protected groupSomeSelected(group: MultiSelectOptionGroup): boolean {\n const selected = this.value();\n\n return (\n this.enabledIn(group).some((o) => selected.includes(o.value)) &&\n !this.groupAllSelected(group)\n );\n }\n\n protected toggleGroup(group: MultiSelectOptionGroup): void {\n const values = this.enabledIn(group).map((o) => o.value);\n if (this.groupAllSelected(group)) {\n const remove = new Set(values);\n\n this.value.set(this.value().filter((value) => !remove.has(value)));\n\n return;\n }\n const next = new Set(this.value());\n values.forEach((value) => next.add(value));\n this.value.set([...next]);\n }\n\n protected toggleSelectAll(): void {\n const enabledValues = this.enabledFiltered().map((o) => o.value);\n if (this.allFilteredSelected()) {\n const remove = new Set(enabledValues);\n\n this.value.set(this.value().filter((value) => !remove.has(value)));\n } else {\n const next = new Set(this.value());\n enabledValues.forEach((value) => next.add(value));\n this.value.set([...next]);\n }\n }\n\n protected isSelected(value: string): boolean {\n return this.value().includes(value);\n }\n\n protected toggleValue(option: MultiSelectOption): void {\n if (option.disabled) {\n return;\n }\n const current = this.value();\n this.value.set(\n current.includes(option.value)\n ? current.filter((value) => value !== option.value)\n : [...current, option.value],\n );\n }\n\n protected clearValue(event: MouseEvent): void {\n event.stopPropagation();\n this.clear();\n this.markTouched();\n // The button that ran this is destroyed with the chips, so focus would fall\n // to <body>.\n this.trigger().nativeElement.focus();\n }\n\n /**\n * Empties the selection from outside — a \"reset filters\" button, a form the app\n * clears itself. Deliberately does NOT move focus: the caller may be navigating\n * away.\n */\n clear(): void {\n this.value.set([]);\n this.filter.set('');\n if (this.open()) {\n this.close('dismiss');\n }\n }\n\n protected removeValue(value: string): void {\n this.value.set(this.value().filter((entry) => entry !== value));\n // The close button that ran this is destroyed with its chip, so focus would\n // fall to <body>.\n this.trigger().nativeElement.focus();\n }\n\n constructor() {\n super();\n scrollActiveOptionIntoView(\n this.activeDescendant,\n this.scrollActiveIntoView,\n this.cursorFromKeyboard,\n );\n announceOptionCount(\n computed(() => this.filteredOptions().length),\n computed(() => this.open() && this.showsSearch()),\n );\n }\n\n protected onFilter(event: Event): void {\n const typed = (event.target as HTMLInputElement).value;\n this.filter.set(typed);\n this.filterChange.emit(typed);\n this.activeIndex.set(this.firstEnabledIndex());\n }\n\n private setOpen(next: boolean): void {\n if (this.open() === next) {\n return;\n }\n this.open.set(next);\n (next ? this.opened : this.closed).emit();\n }\n\n protected readonly isReadOnly = computed(\n () => this.readOnly() || this.readonlyBinding(),\n );\n\n private readonly typeAhead = createTypeAhead();\n\n private handleTypeAhead(key: string): boolean {\n const index = this.typeAhead.match(\n key,\n this.filteredOptions().map((option) => option.label),\n this.activeIndex(),\n );\n if (index < 0) {\n return false;\n }\n this.activeIndex.set(index);\n\n return true;\n }\n\n protected readonly cursorFromKeyboard = signal(false);\n\n private cursorList() {\n const options = this.filteredOptions();\n\n return {\n length: options.length,\n isEnabled: (index: number) => !options[index].disabled,\n };\n }\n\n private firstEnabledIndex(): number {\n return firstEnabledOf(this.cursorList());\n }\n\n protected onTriggerKeydown(event: KeyboardEvent): void {\n this.cursorFromKeyboard.set(true);\n if (this.isDisabled()) {\n return;\n }\n // With no filter row the trigger runs the input's handler, and must take Enter\n // first — otherwise Enter toggles the panel instead of picking the active row.\n if (this.open() && !this.showsSearch()) {\n this.onSearchKeydown(event);\n\n return;\n }\n if (event.key === 'Enter' || event.key === ' ') {\n event.preventDefault();\n this.onTriggerClick();\n\n return;\n }\n if (event.key === 'ArrowDown' && !this.open()) {\n event.preventDefault();\n this.openPanel();\n\n return;\n }\n if (!this.open() && this.handleTypeAhead(event.key)) {\n event.preventDefault();\n }\n }\n\n protected onSearchKeydown(event: KeyboardEvent): void {\n this.cursorFromKeyboard.set(true);\n switch (event.key) {\n case 'ArrowDown':\n event.preventDefault();\n this.moveActive(1);\n break;\n case 'ArrowUp':\n event.preventDefault();\n this.moveActive(-1);\n break;\n case 'Enter': {\n event.preventDefault();\n const option = this.filteredOptions()[this.activeIndex()];\n if (option) {\n this.toggleValue(option);\n }\n break;\n }\n case 'Escape':\n event.preventDefault();\n this.close('dismiss');\n break;\n case 'PageDown':\n event.preventDefault();\n this.moveActive(MultiSelectComponent.pageStep);\n break;\n case 'PageUp':\n event.preventDefault();\n this.moveActive(-MultiSelectComponent.pageStep);\n break;\n case 'Home':\n event.preventDefault();\n this.activeIndex.set(this.firstEnabledIndex());\n break;\n case 'End':\n event.preventDefault();\n this.activeIndex.set(lastEnabledOf(this.cursorList()));\n break;\n case 'Tab':\n this.close('dismiss');\n break;\n case 'Backspace':\n if (!this.filter()) {\n const selected = this.selectedOptions();\n if (selected.length) {\n this.removeValue(selected[selected.length - 1].value);\n }\n }\n break;\n default:\n break;\n }\n }\n\n protected openPanel(): void {\n if (this.overlayRef || this.isDisabled() || this.isReadOnly()) {\n return;\n }\n const triggerElement = this.trigger().nativeElement;\n const { positionStrategy, config } = dropdownOverlay(\n this.overlay,\n triggerElement,\n ['ds-multi-select-panel', ...panelClassesOf(this.panelClass())],\n );\n const triggerWidth = triggerElement.getBoundingClientRect().width;\n // A compact trigger hugs its caption, so pinning the panel to it gives a panel\n // too narrow to read its own options — the trigger width becomes a FLOOR here\n // whether or not the consumer asked for `content`.\n if (this.width() === 'content' || this.showsCompactTrigger()) {\n config.minWidth = triggerWidth;\n } else {\n config.width = triggerWidth;\n }\n this.overlayRef = this.overlay.create(config);\n prepareOverlayEnter(\n this.overlayRef,\n this.host.nativeElement,\n positionStrategy,\n );\n forwardOverlayTokens(\n this.overlayRef,\n this.host.nativeElement,\n this.panelTokens,\n );\n closeOnOutsidePointer(\n this.overlayRef,\n (target) => this.trigger().nativeElement.contains(target),\n () => this.close('dismiss'),\n );\n // No backdrop catches a page scroll and CDK's scroll strategies miss a plain\n // overflow container, so close on any outside scroll ourselves.\n const removeScrollClose = closeOnScroll(this.overlayRef, () =>\n this.close('dismiss'),\n );\n clearOnDetach(this.overlayRef, {\n current: () => this.overlayRef,\n always: removeScrollClose,\n clear: () => {\n this.overlayRef = null;\n this.setOpen(false);\n },\n });\n this.overlayRef.keydownEvents().subscribe((event) => {\n if (event.key === 'Escape') {\n event.preventDefault();\n this.close('dismiss');\n }\n });\n this.overlayRef.attach(new TemplatePortal(this.panelTpl(), this.vcr));\n this.setOpen(true);\n this.activeIndex.set(this.firstEnabledIndex());\n if (this.showsSearch()) {\n this.focusTimer = setTimeout(() => {\n this.focusTimer = null;\n this.searchInput()?.nativeElement.focus();\n });\n }\n }\n\n protected onTriggerClick(): void {\n if (this.isDisabled()) {\n return;\n }\n if (this.overlayRef) {\n this.close();\n\n return;\n }\n this.openPanel();\n }\n\n protected close(cause: DsOverlayCloseCause = 'select'): void {\n if (!this.overlayRef) {\n return;\n }\n clearTimeout(this.focusTimer ?? undefined);\n this.focusTimer = null;\n const focusWasInPanel = focusIsInside(this.overlayRef);\n disposeWithLeave(this.overlayRef, cause);\n this.overlayRef = null;\n this.setOpen(false);\n this.filter.set('');\n this.activeIndex.set(-1);\n this.markTouched();\n if (focusWasInPanel) {\n this.trigger().nativeElement.focus({ preventScroll: true });\n }\n }\n\n /** How far PageUp and PageDown move. Ten rows is the native `<select>` step and\n * the APG listbox example's — a fixed number rather than a measured screenful,\n * so the jump is the same wherever the panel happens to be clipped. */\n private static readonly pageStep = 10;\n\n private moveActive(delta: number): void {\n const next = nextEnabledIndex(this.cursorList(), this.activeIndex(), delta);\n if (next >= 0) {\n this.activeIndex.set(next);\n }\n }\n}\n","@if (label()) {\n <span\n class=\"label\"\n [id]=\"labelId\">\n {{ label() }}\n @if (required()) {\n <span\n class=\"req\"\n aria-hidden=\"true\">\n *\n </span>\n } @else if (optional()) {\n <span\n class=\"optional-marker\"\n aria-hidden=\"true\">\n {{ intl().field.optional }}\n </span>\n }\n </span>\n}\n\n<div\n #trigger\n aria-haspopup=\"listbox\"\n role=\"combobox\"\n [class]=\"'field-trigger ' + sizeResolved()\"\n [class.open]=\"open()\"\n [class.disabled]=\"isDisabled()\"\n [attr.aria-invalid]=\"invalidResolved() ? 'true' : null\"\n [attr.aria-describedby]=\"hintId()\"\n [attr.aria-expanded]=\"open()\"\n [attr.aria-controls]=\"listboxId\"\n [attr.aria-labelledby]=\"label() ? labelId : null\"\n [attr.aria-label]=\"resolvedAriaLabel()\"\n [attr.aria-required]=\"required() ? 'true' : null\"\n [attr.aria-readonly]=\"isReadOnly() ? 'true' : null\"\n [attr.name]=\"name()\"\n [attr.aria-activedescendant]=\"triggerActiveDescendant()\"\n [attr.tabindex]=\"isDisabled() ? -1 : 0\"\n (click)=\"onTriggerClick()\"\n (keydown)=\"onTriggerKeydown($event)\">\n @if (pickerTrigger(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n $implicit: selectedOptions(),\n selected: selectedOptions(),\n count: selectedOptions().length,\n open: open(),\n disabled: isDisabled(),\n }\" />\n } @else if (showsCompactTrigger()) {\n <span class=\"trigger-caption\">\n {{ triggerCaption() }}\n </span>\n\n @if (triggerDisplay() === 'labels' && selectedOptions().length > 0) {\n <span\n #chipRow\n class=\"chip-row\"\n [class.fit]=\"fitsChipsToWidth()\">\n @for (option of visibleChips(); track option.value) {\n <span\n data-chip\n class=\"trigger-label\">\n {{ option.label }}\n </span>\n }\n\n @if (overflowCount() > 0) {\n <span\n class=\"overflow\"\n data-chip-overflow>\n +{{ overflowCount() }}\n </span>\n }\n </span>\n } @else if (selectedOptions().length > 0) {\n <ds-badge\n [count]=\"selectedOptions().length\"\n [countLabel]=\"intl().picker.selectedNoun\" />\n }\n } @else if (selectedOptions().length === 0) {\n <span class=\"placeholder\">\n {{ placeholderResolved() }}\n </span>\n } @else {\n <span\n #chipRow\n class=\"chip-row\"\n [class.fit]=\"fitsChipsToWidth()\">\n @for (option of visibleChips(); track option.value) {\n <ds-tag\n data-chip\n variant=\"neutral\"\n closable\n [closeLabel]=\"intl().picker.removeChip(option.label)\"\n (closed)=\"removeValue(option.value)\">\n @if (chipTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n $implicit: option,\n option: option,\n }\" />\n } @else {\n {{ option.label }}\n }\n </ds-tag>\n }\n\n @if (overflowCount() > 0) {\n <span\n class=\"overflow\"\n data-chip-overflow>\n {{ intl().picker.moreChips(overflowCount()) }}\n </span>\n }\n </span>\n }\n\n @if (\n clearable() &&\n selectedOptions().length > 0 &&\n !isDisabled() &&\n !isReadOnly()\n ) {\n <button\n type=\"button\"\n class=\"clear-btn\"\n [attr.aria-label]=\"intl().picker.clearSelection\"\n (click)=\"clearValue($event)\">\n <ds-icon\n name=\"x\"\n [size]=\"14\" />\n </button>\n }\n\n <ds-icon\n class=\"chevron\"\n name=\"chevronDown\"\n [size]=\"18\" />\n</div>\n\n<ds-field-message\n [icon]=\"messageIcon()\"\n [text]=\"message().text\"\n [state]=\"message().state\"\n [messageId]=\"hintId()\"\n [reserve]=\"reserveMessageResolved()\" />\n\n<ng-template #panel>\n <div class=\"dropdown-panel\">\n @if (panelHeaderTemplate(); as tpl) {\n <div class=\"panel-header\">\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n count: filteredOptions().length,\n total: allOptions().length,\n query: filter(),\n }\" />\n </div>\n }\n\n @if (showsSearch()) {\n <div class=\"search-row\">\n <ds-icon\n class=\"search-icon\"\n name=\"search\"\n [size]=\"16\" />\n\n <input\n #search\n type=\"text\"\n class=\"search-input\"\n role=\"combobox\"\n aria-autocomplete=\"list\"\n aria-expanded=\"true\"\n autocomplete=\"off\"\n spellcheck=\"false\"\n [placeholder]=\"searchPlaceholderResolved()\"\n [value]=\"filter()\"\n [attr.aria-controls]=\"listboxId\"\n [attr.aria-activedescendant]=\"activeDescendant()\"\n (input)=\"onFilter($event)\"\n (keydown)=\"onSearchKeydown($event)\" />\n </div>\n }\n\n @if (showsPanelSelectAll() && filteredOptions().length) {\n <button\n type=\"button\"\n class=\"select-all\"\n role=\"checkbox\"\n [attr.aria-checked]=\"\n allFilteredSelected()\n ? 'true'\n : someFilteredSelected()\n ? 'mixed'\n : 'false'\n \"\n (click)=\"toggleSelectAll()\">\n <span\n class=\"checkbox\"\n [class.checked]=\"allFilteredSelected()\"\n [class.indeterminate]=\"someFilteredSelected()\">\n <span class=\"tick\"></span>\n </span>\n\n <span class=\"select-all-label\">\n {{ intl().picker.selectAll }}\n </span>\n </button>\n }\n\n <ul\n class=\"dropdown-list\"\n role=\"listbox\"\n aria-multiselectable=\"true\"\n [attr.aria-busy]=\"loading() ? 'true' : null\"\n [id]=\"listboxId\">\n @for (item of filteredItems(); track $index; let itemIdx = $index) {\n @if (isGroup(item)) {\n <li\n class=\"optgroup\"\n role=\"group\"\n [attr.aria-label]=\"item.label\">\n <span\n class=\"optgroup-label\"\n [class.is-first]=\"itemIdx === 0\">\n @if (groupLabelTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n $implicit: item,\n group: item,\n count: item.options.length,\n }\" />\n } @else {\n {{ item.label }}\n }\n </span>\n\n @if (showsGroupSelectAll()) {\n <button\n type=\"button\"\n tabindex=\"-1\"\n class=\"select-all group\"\n role=\"option\"\n [disabled]=\"item.disabled\"\n [attr.aria-selected]=\"groupAllSelected(item)\"\n [attr.aria-checked]=\"\n groupAllSelected(item)\n ? 'true'\n : groupSomeSelected(item)\n ? 'mixed'\n : 'false'\n \"\n (click)=\"toggleGroup(item)\">\n <span\n class=\"checkbox\"\n [class.checked]=\"groupAllSelected(item)\"\n [class.indeterminate]=\"groupSomeSelected(item)\">\n <span class=\"tick\"></span>\n </span>\n\n {{ intl().picker.selectAllInGroup(item.label) }}\n </button>\n }\n\n <ul\n class=\"optgroup-list\"\n role=\"presentation\">\n @for (option of item.options; track option.value) {\n <li role=\"presentation\">\n <button\n type=\"button\"\n tabindex=\"-1\"\n role=\"option\"\n class=\"option\"\n dsTooltip\n dsTooltipWhenClipped\n dsTooltipTextSelector=\".option-label\"\n [id]=\"optionId(flatIndexOf(option))\"\n [class.is-active]=\"activeIndex() === flatIndexOf(option)\"\n [attr.aria-selected]=\"isSelected(option.value)\"\n [disabled]=\"option.disabled\"\n (click)=\"toggleValue(option)\"\n (mouseenter)=\"\n cursorFromKeyboard.set(false);\n activeIndex.set(flatIndexOf(option))\n \">\n <span\n class=\"checkbox\"\n [class.checked]=\"isSelected(option.value)\">\n <span class=\"tick\"></span>\n </span>\n\n @if (option.icon) {\n <ds-icon\n class=\"option-icon\"\n [name]=\"option.icon\"\n [size]=\"16\" />\n }\n\n <span\n class=\"option-label\">\n @if (optionTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n $implicit: option,\n option: option,\n }\" />\n } @else {\n {{ option.label }}\n }\n </span>\n </button>\n </li>\n }\n </ul>\n </li>\n } @else {\n @let option = item;\n\n <li role=\"presentation\">\n <button\n type=\"button\"\n tabindex=\"-1\"\n role=\"option\"\n class=\"option\"\n dsTooltip\n dsTooltipWhenClipped\n dsTooltipTextSelector=\".option-label\"\n [id]=\"optionId(flatIndexOf(option))\"\n [class.is-active]=\"activeIndex() === flatIndexOf(option)\"\n [attr.aria-selected]=\"isSelected(option.value)\"\n [disabled]=\"option.disabled\"\n (click)=\"toggleValue(option)\"\n (mouseenter)=\"\n cursorFromKeyboard.set(false);\n activeIndex.set(flatIndexOf(option))\n \">\n <span\n class=\"checkbox\"\n [class.checked]=\"isSelected(option.value)\">\n <span class=\"tick\"></span>\n </span>\n\n @if (option.icon) {\n <ds-icon\n class=\"option-icon\"\n [name]=\"option.icon\"\n [size]=\"16\" />\n }\n\n <span\n class=\"option-label\">\n @if (optionTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n $implicit: option,\n option: option,\n }\" />\n } @else {\n {{ option.label }}\n }\n </span>\n </button>\n </li>\n }\n }\n\n @if (loading()) {\n <li\n class=\"empty t-s\"\n role=\"presentation\">\n <ds-spinner size=\"sm\" />\n </li>\n } @else if (filteredOptions().length === 0) {\n <li\n class=\"empty t-s\"\n role=\"presentation\">\n @if (emptyTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n $implicit: filter(),\n query: filter(),\n }\" />\n } @else {\n {{ intl().picker.noMatches }}\n }\n </li>\n }\n </ul>\n\n @if (panelFooterTemplate(); as tpl) {\n <div class=\"panel-footer\">\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n count: filteredOptions().length,\n total: allOptions().length,\n query: filter(),\n }\" />\n </div>\n }\n </div>\n</ng-template>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["firstEnabledOf","lastEnabledOf"],"mappings":";;;;;;;;;;;;;;;AA4GM,MAAO,oBACX,SAAQ,sBAAgC,CAAA;AAGvB,IAAA,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC;AACzB,IAAA,GAAG,GAAG,MAAM,CAAC,gBAAgB,CAAC;AAC9B,IAAA,IAAI,GAAG,MAAM,EAAC,UAAuB,EAAC;AACpC,IAAA,IAAI,GAAG,MAAM,CAAC,OAAO,CAAC;AACzC;;;AAGkF;AACjE,IAAA,WAAW,GAAG;QAC7B,kCAAkC;QAClC,0CAA0C;QAC1C,kCAAkC;QAClC,8BAA8B;QAC9B,+BAA+B;QAC/B,+BAA+B;QAC/B,+BAA+B;QAC/B,kCAAkC;QAClC,qCAAqC;QACrC,yBAAyB;KAC1B;;AAGQ,IAAA,KAA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B,CAAA,EAAA,EAAA,GAAE;AACxE,4BAAA,IAAI,EAAE,WAAW;AAClB,yBAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,OAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,SAAA,EAAA,IAAA,EAAA,CAU6C,SAAS,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,WAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,SAAA,EAAA,IAAA,EAAA,CAEb,QAAQ,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,QAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,SAAA,EAAA,IAAA,EAAA,CAEP,OAAO,iEACY,SAAS,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AEpUzE;;AAEG;;;;"}
@@ -4,7 +4,7 @@ import { NG_VALUE_ACCESSOR } from '@angular/forms';
4
4
  import { Overlay } from '@angular/cdk/overlay';
5
5
  import { TemplatePortal } from '@angular/cdk/portal';
6
6
  import * as i1 from '@ids-group-ltd/ids-design-system/components';
7
- import { DsControlValueAccessor, DsStaticPreview, trimmedText, DsOptionTemplateDirective, DsPickerTriggerDirective, DsPanelHeaderTemplateDirective, DsPanelFooterTemplateDirective, DsGroupLabelTemplateDirective, DsEmptyTemplateDirective, nextControlId, resolveFieldMessage, scrollActiveOptionIntoView, announceOptionCount, dropdownOverlay, panelClassesOf, prepareOverlayEnter, forwardOverlayTokens, closeOnOutsidePointer, closeOnScroll, clearOnDetach, disposeWithLeave, createTypeAhead } from '@ids-group-ltd/ids-design-system/components';
7
+ import { DsControlValueAccessor, DsStaticPreview, trimmedText, DsOptionTemplateDirective, DsPickerTriggerDirective, DsPanelHeaderTemplateDirective, DsPanelFooterTemplateDirective, DsGroupLabelTemplateDirective, DsEmptyTemplateDirective, nextControlId, resolveFieldMessage, scrollActiveOptionIntoView, dropdownOverlay, panelClassesOf, prepareOverlayEnter, forwardOverlayTokens, closeOnOutsidePointer, closeOnScroll, clearOnDetach, disposeWithLeave, createTypeAhead } from '@ids-group-ltd/ids-design-system/components';
8
8
  import { NgTemplateOutlet } from '@angular/common';
9
9
  import { IconComponent } from '@ids-group-ltd/ids-design-system/icons';
10
10
  import { SpinnerComponent } from '@ids-group-ltd/ids-design-system/components/spinner';
@@ -192,7 +192,6 @@ class SelectComponent extends DsControlValueAccessor {
192
192
  constructor() {
193
193
  super();
194
194
  scrollActiveOptionIntoView(this.activeDescendant, this.scrollActiveIntoView, this.cursorFromKeyboard);
195
- announceOptionCount(computed(() => this.flatOptions().length), this.open);
196
195
  effect(() => {
197
196
  if (!this.open()) {
198
197
  return;
@@ -434,7 +433,7 @@ class SelectComponent extends DsControlValueAccessor {
434
433
  useExisting: forwardRef(() => SelectComponent),
435
434
  multi: true,
436
435
  },
437
- ], queries: [{ propertyName: "optionTemplate", first: true, predicate: DsOptionTemplateDirective, descendants: true, read: TemplateRef, isSignal: true }, { propertyName: "pickerTrigger", first: true, predicate: DsPickerTriggerDirective, descendants: true, read: TemplateRef, isSignal: true }, { propertyName: "panelHeaderTemplate", first: true, predicate: DsPanelHeaderTemplateDirective, descendants: true, read: TemplateRef, isSignal: true }, { propertyName: "panelFooterTemplate", first: true, predicate: DsPanelFooterTemplateDirective, descendants: true, read: TemplateRef, isSignal: true }, { propertyName: "groupLabelTemplate", first: true, predicate: DsGroupLabelTemplateDirective, descendants: true, read: TemplateRef, isSignal: true }, { propertyName: "emptyTemplate", first: true, predicate: DsEmptyTemplateDirective, descendants: true, read: TemplateRef, isSignal: true }], viewQueries: [{ propertyName: "trigger", first: true, predicate: ["trigger"], descendants: true, isSignal: true }, { propertyName: "panelTpl", first: true, predicate: ["panel"], descendants: true, isSignal: true }, { propertyName: "panelContentTpl", first: true, predicate: ["panelContent"], descendants: true, isSignal: true }], usesInheritance: true, hostDirectives: [{ directive: i1.DsStaticPreview, inputs: ["staticPreview", "staticPreview"] }], ngImport: i0, template: "@if (label()) {\n <span\n class=\"label\"\n [id]=\"labelId\">\n {{ label() }}\n @if (required()) {\n <span\n class=\"req\"\n aria-hidden=\"true\">\n *\n </span>\n } @else if (optional()) {\n <span\n class=\"optional-marker\"\n aria-hidden=\"true\">\n {{ intl().field.optional }}\n </span>\n }\n </span>\n}\n\n<div\n #trigger\n role=\"combobox\"\n aria-haspopup=\"listbox\"\n [class]=\"triggerClasses()\"\n [attr.name]=\"name()\"\n [attr.tabindex]=\"isDisabled() ? -1 : 0\"\n [attr.aria-expanded]=\"open() || preview.staticPreview()\"\n [attr.aria-controls]=\"listboxId\"\n [attr.aria-activedescendant]=\"activeDescendant()\"\n [attr.aria-labelledby]=\"label() ? labelId : null\"\n [attr.aria-label]=\"resolvedAriaLabel()\"\n [attr.aria-invalid]=\"invalidResolved() ? 'true' : null\"\n [attr.aria-describedby]=\"describedByIds(hintId(), groupMessage())\"\n [attr.aria-required]=\"required() ? 'true' : null\"\n [attr.aria-disabled]=\"isDisabled() ? 'true' : null\"\n (click)=\"toggle()\"\n (keydown)=\"onTriggerKeydown($event)\">\n @if (selectedOption()?.icon) {\n <ds-icon\n class=\"trigger-icon\"\n [name]=\"selectedOption()!.icon!\"\n [size]=\"16\" />\n }\n\n @if (pickerTrigger(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n $implicit: selectedOption(),\n selected: selectedOption(),\n count: hasValue() ? 1 : 0,\n open: open(),\n disabled: isDisabled(),\n }\" />\n } @else {\n <span\n class=\"trigger-text\"\n dsTooltip\n dsTooltipWhenClipped\n [class.is-placeholder]=\"!hasValue()\">\n {{ displayLabel() }}\n </span>\n }\n\n @if (\n clearable() &&\n hasValue() &&\n !isDisabled() &&\n !isReadOnly()\n ) {\n <button\n type=\"button\"\n class=\"clear-btn\"\n [attr.aria-label]=\"intl().picker.clearSelection\"\n (click)=\"clearValue($event)\">\n <ds-icon\n name=\"x\"\n [size]=\"14\" />\n </button>\n }\n\n <span class=\"chevron\">\n <ds-icon\n name=\"chevronDown\"\n [size]=\"14\" />\n </span>\n</div>\n\n<ds-field-message\n [icon]=\"messageIcon()\"\n [text]=\"message().text\"\n [state]=\"message().state\"\n [messageId]=\"hintId()\"\n [reserve]=\"reserveMessageResolved()\" />\n\n@if (preview.staticPreview()) {\n <div class=\"ds-dropdown-panel\">\n <ng-container [ngTemplateOutlet]=\"panelContentTpl()\" />\n </div>\n}\n\n<ng-template #panel>\n <ng-container [ngTemplateOutlet]=\"panelContentTpl()\" />\n</ng-template>\n\n<ng-template #panelContent>\n <div class=\"dropdown-panel\">\n @if (panelHeaderTemplate(); as tpl) {\n <div class=\"panel-header\">\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n count: options().length,\n total: options().length,\n query: '',\n }\" />\n </div>\n }\n\n <ul\n class=\"dropdown-list\"\n role=\"listbox\"\n [attr.aria-busy]=\"loading() ? 'true' : null\"\n [id]=\"listboxId\"\n [attr.aria-labelledby]=\"label() ? labelId : null\">\n @for (item of options(); track $index; let groupIdx = $index) {\n @if (isOptionGroup(item)) {\n <li\n class=\"optgroup\"\n role=\"group\"\n [attr.aria-label]=\"item.label\">\n <span\n class=\"optgroup-label\"\n [class.is-first]=\"groupIdx === 0\">\n @if (groupLabelTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n $implicit: item,\n group: item,\n count: item.options.length,\n }\" />\n } @else {\n {{ item.label }}\n }\n </span>\n\n <ul\n class=\"optgroup-list\"\n role=\"presentation\">\n @for (opt of item.options; track opt.value) {\n <li role=\"presentation\">\n <button\n type=\"button\"\n role=\"option\"\n tabindex=\"-1\"\n class=\"option\"\n [id]=\"optionId(flatIndexOf(opt))\"\n [attr.aria-selected]=\"isSelected(opt)\"\n [attr.aria-disabled]=\"\n isOptionDisabled(opt, item.disabled) ? 'true' : null\n \"\n [attr.aria-describedby]=\"\n opt.disabled && opt.disabledReason\n ? optionId(flatIndexOf(opt)) + '-reason'\n : null\n \"\n [class.is-selected]=\"isSelected(opt)\"\n [class.is-active]=\"isActive(flatIndexOf(opt))\"\n [class.is-disabled]=\"isOptionDisabled(opt, item.disabled)\"\n [disabled]=\"isOptionDisabled(opt, item.disabled)\"\n (click)=\"pick(opt, item.disabled)\"\n (mouseenter)=\"\n cursorFromKeyboard.set(false);\n activeIndex.set(flatIndexOf(opt))\n \">\n @if (opt.icon) {\n <ds-icon\n class=\"option-icon\"\n [name]=\"opt.icon\"\n [size]=\"16\" />\n }\n\n @if (opt.disabled && opt.disabledReason) {\n <span\n class=\"option-reason\"\n [id]=\"optionId(flatIndexOf(opt)) + '-reason'\">\n {{ opt.disabledReason }}\n </span>\n }\n\n <span\n class=\"option-label\"\n dsTooltip\n dsTooltipWhenClipped>\n @if (optionTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n $implicit: opt,\n option: opt,\n }\" />\n } @else {\n {{ opt.label }}\n }\n </span>\n\n <span\n class=\"option-check\"\n [class.is-shown]=\"isSelected(opt)\">\n </span>\n </button>\n </li>\n }\n </ul>\n </li>\n } @else {\n <li role=\"presentation\">\n <button\n type=\"button\"\n role=\"option\"\n tabindex=\"-1\"\n class=\"option\"\n [id]=\"optionId(flatIndexOf(item))\"\n [attr.aria-selected]=\"isSelected(item)\"\n [attr.aria-disabled]=\"item.disabled ? 'true' : null\"\n [class.is-selected]=\"isSelected(item)\"\n [class.is-active]=\"isActive(flatIndexOf(item))\"\n [class.is-disabled]=\"item.disabled\"\n [disabled]=\"item.disabled\"\n (click)=\"pick(item)\"\n (mouseenter)=\"\n cursorFromKeyboard.set(false);\n activeIndex.set(flatIndexOf(item))\n \">\n @if (item.icon) {\n <ds-icon\n class=\"option-icon\"\n [name]=\"item.icon\"\n [size]=\"16\" />\n }\n\n <span\n class=\"option-label\"\n dsTooltip\n dsTooltipWhenClipped>\n @if (optionTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n $implicit: item,\n option: item,\n }\" />\n } @else {\n {{ item.label }}\n }\n </span>\n\n <span\n class=\"option-check\"\n [class.is-shown]=\"isSelected(item)\">\n </span>\n </button>\n </li>\n }\n }\n\n @if (loading()) {\n <li\n class=\"empty t-s\"\n role=\"presentation\">\n <ds-spinner size=\"sm\" />\n </li>\n } @else if (options().length === 0) {\n <li\n class=\"empty t-s\"\n role=\"presentation\">\n @if (emptyTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" />\n } @else {\n {{ intl().picker.noOptions }}\n }\n </li>\n }\n </ul>\n\n @if (panelFooterTemplate(); as tpl) {\n <div class=\"panel-footer\">\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n count: options().length,\n total: options().length,\n query: '',\n }\" />\n </div>\n }\n </div>\n</ng-template>\n", styles: ["@charset \"UTF-8\";:where(:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}@keyframes ds-focus-ring-in{0%{outline-color:transparent}}:root[data-focus=ring]{--ds-field-focus-shadow: var(--focus-ring);--ds-field-focus-shadow-error: var(--focus-ring-error)}:root[data-focus=edge]{--focus-ring-offset: 0px;--ds-field-focus-shadow: 0 0 0 var(--border-width-default) var(--primary);--ds-field-focus-shadow-error: 0 0 0 var(--border-width-default) var(--error)}[data-focus=inset]{--focus-ring-offset: calc(-1 * var(--focus-ring-width));--ds-field-focus-shadow: var(--focus-ring-inset);--ds-field-focus-shadow-error: var(--focus-ring-inset-error)}@media(forced-colors:active){:where(:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}:host{--_field-border-color: var(--ds-field-border-color, var(--border-default));--_field-border-color-hover: var(--ds-field-border-color-hover, var(--border-strong));--_field-border-color-focus: var(--ds-field-border-color-focus, var(--accent));--_field-text-color: var(--ds-field-text-color, var(--text-primary));--_field-placeholder-color: var(--ds-field-placeholder-color, var(--text-tertiary));--_field-font-size: var(--ds-field-font-size, var(--font-size-s));--_select-focus-shadow: var(--ds-select-focus-shadow, var(--ds-field-focus-shadow));--_select-focus-shadow-error: var(--ds-select-focus-shadow-error, var(--ds-field-focus-shadow-error));--_select-bg-color: var(--ds-select-bg-color, var(--surface-default));--_select-border-color: var(--ds-select-border-color, var(--_field-border-color));--_select-text-color: var(--ds-select-text-color, var(--_field-text-color));--_select-radius: var(--ds-select-radius, var(--ds-radius-control));--_select-border-color-hover: var(--ds-select-border-color-hover, var(--_field-border-color-hover));--_select-border-color-focus: var(--ds-select-border-color-focus, var(--_field-border-color-focus));--_select-placeholder-color: var(--ds-select-placeholder-color, var(--_field-placeholder-color));--_select-font-size: var(--ds-select-font-size, var(--_field-font-size));display:flex;flex-direction:column;gap:var(--field-label-gap);width:100%}:host(.content-width){width:fit-content}.label{--_field-label-font-size: var(--ds-field-label-font-size, var(--font-size-xs));--_field-label-font-weight: var(--ds-field-label-font-weight, var(--font-weight-bold));--_field-label-color: var(--ds-field-label-color, var(--text-secondary));--_field-label-text-transform: var(--ds-field-label-text-transform, none);--_field-label-letter-spacing: var(--ds-field-label-letter-spacing, normal);display:flex;align-items:center;gap:var(--field-gap-req);font:var(--_field-label-font-weight) var(--_field-label-font-size)/var(--line-height-base) var(--font-sans);color:var(--_field-label-color);text-transform:var(--_field-label-text-transform);letter-spacing:var(--_field-label-letter-spacing)}.label .req{color:var(--error);font-weight:var(--font-weight-semibold)}.label .optional-marker{color:var(--text-tertiary);font-weight:var(--font-weight-regular)}.dropdown{display:flex;align-items:center;gap:var(--space-2);width:100%;background:var(--_select-bg-color);border:var(--border-width-default) solid var(--_select-border-color);border-radius:var(--_select-radius);padding:var(--field-pad-y) var(--field-pad-x);--_field-height: var(--ds-field-height, var(--field-h-md));height:var(--_field-height);font:var(--font-weight-regular) var(--_select-font-size)/var(--line-height-base) var(--font-sans);color:var(--_select-text-color);text-align:left;cursor:pointer;transition:border-color var(--duration-fast) var(--ease-standard),box-shadow var(--duration-fast) var(--ease-standard),background var(--duration-fast) var(--ease-standard)}.dropdown .trigger-text{flex:1;min-width:0;overflow:clip;overflow-clip-margin:var(--space-1);text-overflow:ellipsis;white-space:nowrap}.dropdown .trigger-text.is-placeholder{color:var(--_select-placeholder-color)}.dropdown .trigger-icon{color:var(--icon-default);flex:0 0 auto}.dropdown .clear-btn{border:0;background:transparent;display:inline-flex;align-items:center;justify-content:center;color:var(--icon-default);border-radius:var(--ds-radius-inner);padding:var(--space-0-5);cursor:pointer;flex:0 0 auto}.dropdown .clear-btn:hover{color:var(--text-primary);background:var(--surface-secondary)}.dropdown .clear-btn:active:not(:disabled,[disabled],.is-disabled){filter:brightness(var(--ds-press-brightness, .9));transform:scale(var(--ds-press-scale, .97))}.dropdown .chevron{display:inline-flex;align-items:center;justify-content:center;color:var(--icon-default);transition:transform var(--duration-fast) var(--ease-standard)}.dropdown:hover:not(:disabled){border-color:var(--_select-border-color-hover)}@media not (forced-colors:active){.dropdown:focus-visible{outline:none}}.dropdown:focus-visible{border-color:var(--_select-border-color-focus);box-shadow:var(--_select-focus-shadow)}.dropdown.open{border-color:var(--_select-border-color-focus);box-shadow:var(--_select-focus-shadow)}.dropdown.open .chevron{transform:rotate(180deg)}.dropdown.readonly{background:var(--surface-secondary);border-color:var(--border-divider);color:var(--text-secondary);cursor:default}.dropdown.readonly:hover{border-color:var(--border-divider)}.dropdown.readonly .chevron{display:none}.dropdown.disabled,.dropdown:disabled{background:var(--surface-disabled);border-color:var(--border-disabled);color:var(--text-disabled);cursor:not-allowed}.dropdown.disabled .chevron,.dropdown:disabled .chevron{color:var(--icon-muted)}.dropdown.sm{--_field-height: var(--ds-field-height, var(--field-h-sm));height:var(--_field-height);padding:0 var(--space-2)}.dropdown.lg{--_field-height: var(--ds-field-height, var(--field-h-lg));height:var(--_field-height)}:host(.in-group){width:auto;display:flex}:host(.in-group) .label,:host(.in-group) ds-field-message{display:none}:host(.in-group) .dropdown{border:0;border-radius:0;background:transparent;flex:1;height:auto}:host(.in-group) .dropdown:hover,:host(.in-group) .dropdown:focus,:host(.in-group) .dropdown:focus-visible,:host(.in-group) .dropdown:focus-within{border:0;box-shadow:none}@media not (forced-colors:active){:host(.in-group) .dropdown:hover,:host(.in-group) .dropdown:focus,:host(.in-group) .dropdown:focus-visible,:host(.in-group) .dropdown:focus-within{outline:none}}:host([data-field-state=error]:not(.in-group)) .dropdown:not(.disabled):not(:disabled){border-color:var(--error);background-color:var(--error-subtitle)}:host([data-field-state=error]:not(.in-group)) .dropdown:not(.disabled):not(:disabled):focus-within,:host([data-field-state=error]:not(.in-group)) .dropdown:not(.disabled):not(:disabled):focus-visible{box-shadow:var(--_select-focus-shadow-error)}:host([data-field-state=warning]:not(.in-group)) .dropdown:not(.disabled):not(:disabled){border-color:var(--warning-text)}:host([data-field-state=success]:not(.in-group)) .dropdown:not(.disabled):not(:disabled){border-color:var(--success)}\n"], dependencies: [{ kind: "component", type: SpinnerComponent, selector: "ds-spinner", inputs: ["size"] }, { kind: "component", type: IconComponent, selector: "ds-icon", inputs: ["name", "size", "stroke", "ariaLabel"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: FieldMessageComponent, selector: "ds-field-message", inputs: ["text", "state", "messageId", "icon", "reserve"] }, { kind: "directive", type: TooltipDirective, selector: "[dsTooltip]", inputs: ["dsTooltip", "dsTooltipPlacement", "dsTooltipDelay", "dsTooltipWhenClipped"] }] });
436
+ ], queries: [{ propertyName: "optionTemplate", first: true, predicate: DsOptionTemplateDirective, descendants: true, read: TemplateRef, isSignal: true }, { propertyName: "pickerTrigger", first: true, predicate: DsPickerTriggerDirective, descendants: true, read: TemplateRef, isSignal: true }, { propertyName: "panelHeaderTemplate", first: true, predicate: DsPanelHeaderTemplateDirective, descendants: true, read: TemplateRef, isSignal: true }, { propertyName: "panelFooterTemplate", first: true, predicate: DsPanelFooterTemplateDirective, descendants: true, read: TemplateRef, isSignal: true }, { propertyName: "groupLabelTemplate", first: true, predicate: DsGroupLabelTemplateDirective, descendants: true, read: TemplateRef, isSignal: true }, { propertyName: "emptyTemplate", first: true, predicate: DsEmptyTemplateDirective, descendants: true, read: TemplateRef, isSignal: true }], viewQueries: [{ propertyName: "trigger", first: true, predicate: ["trigger"], descendants: true, isSignal: true }, { propertyName: "panelTpl", first: true, predicate: ["panel"], descendants: true, isSignal: true }, { propertyName: "panelContentTpl", first: true, predicate: ["panelContent"], descendants: true, isSignal: true }], usesInheritance: true, hostDirectives: [{ directive: i1.DsStaticPreview, inputs: ["staticPreview", "staticPreview"] }], ngImport: i0, template: "@if (label()) {\n <span\n class=\"label\"\n [id]=\"labelId\">\n {{ label() }}\n @if (required()) {\n <span\n class=\"req\"\n aria-hidden=\"true\">\n *\n </span>\n } @else if (optional()) {\n <span\n class=\"optional-marker\"\n aria-hidden=\"true\">\n {{ intl().field.optional }}\n </span>\n }\n </span>\n}\n\n<div\n #trigger\n role=\"combobox\"\n aria-haspopup=\"listbox\"\n dsTooltip\n dsTooltipWhenClipped\n dsTooltipTextSelector=\".trigger-text\"\n [class]=\"triggerClasses()\"\n [attr.name]=\"name()\"\n [attr.tabindex]=\"isDisabled() ? -1 : 0\"\n [attr.aria-expanded]=\"open() || preview.staticPreview()\"\n [attr.aria-controls]=\"listboxId\"\n [attr.aria-activedescendant]=\"activeDescendant()\"\n [attr.aria-labelledby]=\"label() ? labelId : null\"\n [attr.aria-label]=\"resolvedAriaLabel()\"\n [attr.aria-invalid]=\"invalidResolved() ? 'true' : null\"\n [attr.aria-describedby]=\"describedByIds(hintId(), groupMessage())\"\n [attr.aria-required]=\"required() ? 'true' : null\"\n [attr.aria-disabled]=\"isDisabled() ? 'true' : null\"\n (click)=\"toggle()\"\n (keydown)=\"onTriggerKeydown($event)\">\n @if (selectedOption()?.icon) {\n <ds-icon\n class=\"trigger-icon\"\n [name]=\"selectedOption()!.icon!\"\n [size]=\"16\" />\n }\n\n @if (pickerTrigger(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n $implicit: selectedOption(),\n selected: selectedOption(),\n count: hasValue() ? 1 : 0,\n open: open(),\n disabled: isDisabled(),\n }\" />\n } @else {\n <span\n class=\"trigger-text\"\n [class.is-placeholder]=\"!hasValue()\">\n {{ displayLabel() }}\n </span>\n }\n\n @if (\n clearable() &&\n hasValue() &&\n !isDisabled() &&\n !isReadOnly()\n ) {\n <button\n type=\"button\"\n class=\"clear-btn\"\n [attr.aria-label]=\"intl().picker.clearSelection\"\n (click)=\"clearValue($event)\">\n <ds-icon\n name=\"x\"\n [size]=\"14\" />\n </button>\n }\n\n <span class=\"chevron\">\n <ds-icon\n name=\"chevronDown\"\n [size]=\"14\" />\n </span>\n</div>\n\n<ds-field-message\n [icon]=\"messageIcon()\"\n [text]=\"message().text\"\n [state]=\"message().state\"\n [messageId]=\"hintId()\"\n [reserve]=\"reserveMessageResolved()\" />\n\n@if (preview.staticPreview()) {\n <div class=\"ds-dropdown-panel\">\n <ng-container [ngTemplateOutlet]=\"panelContentTpl()\" />\n </div>\n}\n\n<ng-template #panel>\n <ng-container [ngTemplateOutlet]=\"panelContentTpl()\" />\n</ng-template>\n\n<ng-template #panelContent>\n <div class=\"dropdown-panel\">\n @if (panelHeaderTemplate(); as tpl) {\n <div class=\"panel-header\">\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n count: options().length,\n total: options().length,\n query: '',\n }\" />\n </div>\n }\n\n <ul\n class=\"dropdown-list\"\n role=\"listbox\"\n [attr.aria-busy]=\"loading() ? 'true' : null\"\n [id]=\"listboxId\"\n [attr.aria-labelledby]=\"label() ? labelId : null\">\n @for (item of options(); track $index; let groupIdx = $index) {\n @if (isOptionGroup(item)) {\n <li\n class=\"optgroup\"\n role=\"group\"\n [attr.aria-label]=\"item.label\">\n <span\n class=\"optgroup-label\"\n [class.is-first]=\"groupIdx === 0\">\n @if (groupLabelTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n $implicit: item,\n group: item,\n count: item.options.length,\n }\" />\n } @else {\n {{ item.label }}\n }\n </span>\n\n <ul\n class=\"optgroup-list\"\n role=\"presentation\">\n @for (opt of item.options; track opt.value) {\n <li role=\"presentation\">\n <button\n type=\"button\"\n role=\"option\"\n tabindex=\"-1\"\n class=\"option\"\n dsTooltip\n dsTooltipWhenClipped\n dsTooltipTextSelector=\".option-label\"\n [id]=\"optionId(flatIndexOf(opt))\"\n [attr.aria-selected]=\"isSelected(opt)\"\n [attr.aria-disabled]=\"\n isOptionDisabled(opt, item.disabled) ? 'true' : null\n \"\n [attr.aria-describedby]=\"\n opt.disabled && opt.disabledReason\n ? optionId(flatIndexOf(opt)) + '-reason'\n : null\n \"\n [class.is-selected]=\"isSelected(opt)\"\n [class.is-active]=\"isActive(flatIndexOf(opt))\"\n [class.is-disabled]=\"isOptionDisabled(opt, item.disabled)\"\n [disabled]=\"isOptionDisabled(opt, item.disabled)\"\n (click)=\"pick(opt, item.disabled)\"\n (mouseenter)=\"\n cursorFromKeyboard.set(false);\n activeIndex.set(flatIndexOf(opt))\n \">\n @if (opt.icon) {\n <ds-icon\n class=\"option-icon\"\n [name]=\"opt.icon\"\n [size]=\"16\" />\n }\n\n @if (opt.disabled && opt.disabledReason) {\n <span\n class=\"option-reason\"\n [id]=\"optionId(flatIndexOf(opt)) + '-reason'\">\n {{ opt.disabledReason }}\n </span>\n }\n\n <span\n class=\"option-label\">\n @if (optionTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n $implicit: opt,\n option: opt,\n }\" />\n } @else {\n {{ opt.label }}\n }\n </span>\n\n <span\n class=\"option-check\"\n [class.is-shown]=\"isSelected(opt)\">\n </span>\n </button>\n </li>\n }\n </ul>\n </li>\n } @else {\n <li role=\"presentation\">\n <button\n type=\"button\"\n role=\"option\"\n tabindex=\"-1\"\n class=\"option\"\n dsTooltip\n dsTooltipWhenClipped\n dsTooltipTextSelector=\".option-label\"\n [id]=\"optionId(flatIndexOf(item))\"\n [attr.aria-selected]=\"isSelected(item)\"\n [attr.aria-disabled]=\"item.disabled ? 'true' : null\"\n [class.is-selected]=\"isSelected(item)\"\n [class.is-active]=\"isActive(flatIndexOf(item))\"\n [class.is-disabled]=\"item.disabled\"\n [disabled]=\"item.disabled\"\n (click)=\"pick(item)\"\n (mouseenter)=\"\n cursorFromKeyboard.set(false);\n activeIndex.set(flatIndexOf(item))\n \">\n @if (item.icon) {\n <ds-icon\n class=\"option-icon\"\n [name]=\"item.icon\"\n [size]=\"16\" />\n }\n\n <span\n class=\"option-label\">\n @if (optionTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n $implicit: item,\n option: item,\n }\" />\n } @else {\n {{ item.label }}\n }\n </span>\n\n <span\n class=\"option-check\"\n [class.is-shown]=\"isSelected(item)\">\n </span>\n </button>\n </li>\n }\n }\n\n @if (loading()) {\n <li\n class=\"empty t-s\"\n role=\"presentation\">\n <ds-spinner size=\"sm\" />\n </li>\n } @else if (options().length === 0) {\n <li\n class=\"empty t-s\"\n role=\"presentation\">\n @if (emptyTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" />\n } @else {\n {{ intl().picker.noOptions }}\n }\n </li>\n }\n </ul>\n\n @if (panelFooterTemplate(); as tpl) {\n <div class=\"panel-footer\">\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n count: options().length,\n total: options().length,\n query: '',\n }\" />\n </div>\n }\n </div>\n</ng-template>\n", styles: ["@charset \"UTF-8\";:where(:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}@keyframes ds-focus-ring-in{0%{outline-color:transparent}}:root[data-focus=ring]{--ds-field-focus-shadow: var(--focus-ring);--ds-field-focus-shadow-error: var(--focus-ring-error)}:root[data-focus=edge]{--focus-ring-offset: 0px;--ds-field-focus-shadow: 0 0 0 var(--border-width-default) var(--primary);--ds-field-focus-shadow-error: 0 0 0 var(--border-width-default) var(--error)}[data-focus=inset]{--focus-ring-offset: calc(-1 * var(--focus-ring-width));--ds-field-focus-shadow: var(--focus-ring-inset);--ds-field-focus-shadow-error: var(--focus-ring-inset-error)}@media(forced-colors:active){:where(:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}:host{--_field-border-color: var(--ds-field-border-color, var(--border-default));--_field-border-color-hover: var(--ds-field-border-color-hover, var(--border-strong));--_field-border-color-focus: var(--ds-field-border-color-focus, var(--accent));--_field-text-color: var(--ds-field-text-color, var(--text-primary));--_field-placeholder-color: var(--ds-field-placeholder-color, var(--text-tertiary));--_field-font-size: var(--ds-field-font-size, var(--font-size-s));--_select-focus-shadow: var(--ds-select-focus-shadow, var(--ds-field-focus-shadow));--_select-focus-shadow-error: var(--ds-select-focus-shadow-error, var(--ds-field-focus-shadow-error));--_select-bg-color: var(--ds-select-bg-color, var(--surface-default));--_select-border-color: var(--ds-select-border-color, var(--_field-border-color));--_select-text-color: var(--ds-select-text-color, var(--_field-text-color));--_select-radius: var(--ds-select-radius, var(--ds-radius-control));--_select-border-color-hover: var(--ds-select-border-color-hover, var(--_field-border-color-hover));--_select-border-color-focus: var(--ds-select-border-color-focus, var(--_field-border-color-focus));--_select-placeholder-color: var(--ds-select-placeholder-color, var(--_field-placeholder-color));--_select-font-size: var(--ds-select-font-size, var(--_field-font-size));display:flex;flex-direction:column;gap:var(--field-label-gap);width:100%}:host(.content-width){width:fit-content}.label{--_field-label-font-size: var(--ds-field-label-font-size, var(--font-size-xs));--_field-label-font-weight: var(--ds-field-label-font-weight, var(--font-weight-bold));--_field-label-color: var(--ds-field-label-color, var(--text-secondary));--_field-label-text-transform: var(--ds-field-label-text-transform, none);--_field-label-letter-spacing: var(--ds-field-label-letter-spacing, normal);display:flex;align-items:center;gap:var(--field-gap-req);font:var(--_field-label-font-weight) var(--_field-label-font-size)/var(--line-height-base) var(--font-sans);color:var(--_field-label-color);text-transform:var(--_field-label-text-transform);letter-spacing:var(--_field-label-letter-spacing)}.label .req{color:var(--error);font-weight:var(--font-weight-semibold)}.label .optional-marker{color:var(--text-tertiary);font-weight:var(--font-weight-regular)}.dropdown{display:flex;align-items:center;gap:var(--space-2);width:100%;background:var(--_select-bg-color);border:var(--border-width-default) solid var(--_select-border-color);border-radius:var(--_select-radius);padding:var(--field-pad-y) var(--field-pad-x);--_field-height: var(--ds-field-height, var(--field-h-md));height:var(--_field-height);font:var(--font-weight-regular) var(--_select-font-size)/var(--line-height-base) var(--font-sans);color:var(--_select-text-color);text-align:left;cursor:pointer;transition:border-color var(--duration-fast) var(--ease-standard),box-shadow var(--duration-fast) var(--ease-standard),background var(--duration-fast) var(--ease-standard)}.dropdown .trigger-text{flex:1;min-width:0;overflow:clip;overflow-clip-margin:var(--space-1);text-overflow:ellipsis;white-space:nowrap}.dropdown .trigger-text.is-placeholder{color:var(--_select-placeholder-color)}.dropdown .trigger-icon{color:var(--icon-default);flex:0 0 auto}.dropdown .clear-btn{border:0;background:transparent;display:inline-flex;align-items:center;justify-content:center;color:var(--icon-default);border-radius:var(--ds-radius-inner);padding:var(--space-0-5);cursor:pointer;flex:0 0 auto}.dropdown .clear-btn:hover{color:var(--text-primary);background:var(--surface-secondary)}.dropdown .clear-btn:active:not(:disabled,[disabled],.is-disabled){filter:brightness(var(--ds-press-brightness, .9));transform:scale(var(--ds-press-scale, .97))}.dropdown .chevron{display:inline-flex;align-items:center;justify-content:center;color:var(--icon-default);transition:transform var(--duration-fast) var(--ease-standard)}.dropdown:hover:not(:disabled){border-color:var(--_select-border-color-hover)}@media not (forced-colors:active){.dropdown:focus-visible{outline:none}}.dropdown:focus-visible{border-color:var(--_select-border-color-focus);box-shadow:var(--_select-focus-shadow)}.dropdown.open{border-color:var(--_select-border-color-focus);box-shadow:var(--_select-focus-shadow)}.dropdown.open .chevron{transform:rotate(180deg)}.dropdown.readonly{background:var(--surface-secondary);border-color:var(--border-divider);color:var(--text-secondary);cursor:default}.dropdown.readonly:hover{border-color:var(--border-divider)}.dropdown.readonly .chevron{display:none}.dropdown.disabled,.dropdown:disabled{background:var(--surface-disabled);border-color:var(--border-disabled);color:var(--text-disabled);cursor:not-allowed}.dropdown.disabled .chevron,.dropdown:disabled .chevron{color:var(--icon-muted)}.dropdown.sm{--_field-height: var(--ds-field-height, var(--field-h-sm));height:var(--_field-height);padding:0 var(--space-2)}.dropdown.lg{--_field-height: var(--ds-field-height, var(--field-h-lg));height:var(--_field-height)}:host(.in-group){width:auto;display:flex}:host(.in-group) .label,:host(.in-group) ds-field-message{display:none}:host(.in-group) .dropdown{border:0;border-radius:0;background:transparent;flex:1;height:auto}:host(.in-group) .dropdown:hover,:host(.in-group) .dropdown:focus,:host(.in-group) .dropdown:focus-visible,:host(.in-group) .dropdown:focus-within{border:0;box-shadow:none}@media not (forced-colors:active){:host(.in-group) .dropdown:hover,:host(.in-group) .dropdown:focus,:host(.in-group) .dropdown:focus-visible,:host(.in-group) .dropdown:focus-within{outline:none}}:host([data-field-state=error]:not(.in-group)) .dropdown:not(.disabled):not(:disabled){border-color:var(--error);background-color:var(--error-subtitle)}:host([data-field-state=error]:not(.in-group)) .dropdown:not(.disabled):not(:disabled):focus-within,:host([data-field-state=error]:not(.in-group)) .dropdown:not(.disabled):not(:disabled):focus-visible{box-shadow:var(--_select-focus-shadow-error)}:host([data-field-state=warning]:not(.in-group)) .dropdown:not(.disabled):not(:disabled){border-color:var(--warning-text)}:host([data-field-state=success]:not(.in-group)) .dropdown:not(.disabled):not(:disabled){border-color:var(--success)}\n"], dependencies: [{ kind: "component", type: SpinnerComponent, selector: "ds-spinner", inputs: ["size"] }, { kind: "component", type: IconComponent, selector: "ds-icon", inputs: ["name", "size", "stroke", "ariaLabel"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: FieldMessageComponent, selector: "ds-field-message", inputs: ["text", "state", "messageId", "icon", "reserve"] }, { kind: "directive", type: TooltipDirective, selector: "[dsTooltip]", inputs: ["dsTooltip", "dsTooltipPlacement", "dsTooltipDelay", "dsTooltipWhenClipped", "dsTooltipTextSelector"] }] });
438
437
  }
439
438
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: SelectComponent, decorators: [{
440
439
  type: Component,
@@ -454,7 +453,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImpo
454
453
  useExisting: forwardRef(() => SelectComponent),
455
454
  multi: true,
456
455
  },
457
- ], template: "@if (label()) {\n <span\n class=\"label\"\n [id]=\"labelId\">\n {{ label() }}\n @if (required()) {\n <span\n class=\"req\"\n aria-hidden=\"true\">\n *\n </span>\n } @else if (optional()) {\n <span\n class=\"optional-marker\"\n aria-hidden=\"true\">\n {{ intl().field.optional }}\n </span>\n }\n </span>\n}\n\n<div\n #trigger\n role=\"combobox\"\n aria-haspopup=\"listbox\"\n [class]=\"triggerClasses()\"\n [attr.name]=\"name()\"\n [attr.tabindex]=\"isDisabled() ? -1 : 0\"\n [attr.aria-expanded]=\"open() || preview.staticPreview()\"\n [attr.aria-controls]=\"listboxId\"\n [attr.aria-activedescendant]=\"activeDescendant()\"\n [attr.aria-labelledby]=\"label() ? labelId : null\"\n [attr.aria-label]=\"resolvedAriaLabel()\"\n [attr.aria-invalid]=\"invalidResolved() ? 'true' : null\"\n [attr.aria-describedby]=\"describedByIds(hintId(), groupMessage())\"\n [attr.aria-required]=\"required() ? 'true' : null\"\n [attr.aria-disabled]=\"isDisabled() ? 'true' : null\"\n (click)=\"toggle()\"\n (keydown)=\"onTriggerKeydown($event)\">\n @if (selectedOption()?.icon) {\n <ds-icon\n class=\"trigger-icon\"\n [name]=\"selectedOption()!.icon!\"\n [size]=\"16\" />\n }\n\n @if (pickerTrigger(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n $implicit: selectedOption(),\n selected: selectedOption(),\n count: hasValue() ? 1 : 0,\n open: open(),\n disabled: isDisabled(),\n }\" />\n } @else {\n <span\n class=\"trigger-text\"\n dsTooltip\n dsTooltipWhenClipped\n [class.is-placeholder]=\"!hasValue()\">\n {{ displayLabel() }}\n </span>\n }\n\n @if (\n clearable() &&\n hasValue() &&\n !isDisabled() &&\n !isReadOnly()\n ) {\n <button\n type=\"button\"\n class=\"clear-btn\"\n [attr.aria-label]=\"intl().picker.clearSelection\"\n (click)=\"clearValue($event)\">\n <ds-icon\n name=\"x\"\n [size]=\"14\" />\n </button>\n }\n\n <span class=\"chevron\">\n <ds-icon\n name=\"chevronDown\"\n [size]=\"14\" />\n </span>\n</div>\n\n<ds-field-message\n [icon]=\"messageIcon()\"\n [text]=\"message().text\"\n [state]=\"message().state\"\n [messageId]=\"hintId()\"\n [reserve]=\"reserveMessageResolved()\" />\n\n@if (preview.staticPreview()) {\n <div class=\"ds-dropdown-panel\">\n <ng-container [ngTemplateOutlet]=\"panelContentTpl()\" />\n </div>\n}\n\n<ng-template #panel>\n <ng-container [ngTemplateOutlet]=\"panelContentTpl()\" />\n</ng-template>\n\n<ng-template #panelContent>\n <div class=\"dropdown-panel\">\n @if (panelHeaderTemplate(); as tpl) {\n <div class=\"panel-header\">\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n count: options().length,\n total: options().length,\n query: '',\n }\" />\n </div>\n }\n\n <ul\n class=\"dropdown-list\"\n role=\"listbox\"\n [attr.aria-busy]=\"loading() ? 'true' : null\"\n [id]=\"listboxId\"\n [attr.aria-labelledby]=\"label() ? labelId : null\">\n @for (item of options(); track $index; let groupIdx = $index) {\n @if (isOptionGroup(item)) {\n <li\n class=\"optgroup\"\n role=\"group\"\n [attr.aria-label]=\"item.label\">\n <span\n class=\"optgroup-label\"\n [class.is-first]=\"groupIdx === 0\">\n @if (groupLabelTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n $implicit: item,\n group: item,\n count: item.options.length,\n }\" />\n } @else {\n {{ item.label }}\n }\n </span>\n\n <ul\n class=\"optgroup-list\"\n role=\"presentation\">\n @for (opt of item.options; track opt.value) {\n <li role=\"presentation\">\n <button\n type=\"button\"\n role=\"option\"\n tabindex=\"-1\"\n class=\"option\"\n [id]=\"optionId(flatIndexOf(opt))\"\n [attr.aria-selected]=\"isSelected(opt)\"\n [attr.aria-disabled]=\"\n isOptionDisabled(opt, item.disabled) ? 'true' : null\n \"\n [attr.aria-describedby]=\"\n opt.disabled && opt.disabledReason\n ? optionId(flatIndexOf(opt)) + '-reason'\n : null\n \"\n [class.is-selected]=\"isSelected(opt)\"\n [class.is-active]=\"isActive(flatIndexOf(opt))\"\n [class.is-disabled]=\"isOptionDisabled(opt, item.disabled)\"\n [disabled]=\"isOptionDisabled(opt, item.disabled)\"\n (click)=\"pick(opt, item.disabled)\"\n (mouseenter)=\"\n cursorFromKeyboard.set(false);\n activeIndex.set(flatIndexOf(opt))\n \">\n @if (opt.icon) {\n <ds-icon\n class=\"option-icon\"\n [name]=\"opt.icon\"\n [size]=\"16\" />\n }\n\n @if (opt.disabled && opt.disabledReason) {\n <span\n class=\"option-reason\"\n [id]=\"optionId(flatIndexOf(opt)) + '-reason'\">\n {{ opt.disabledReason }}\n </span>\n }\n\n <span\n class=\"option-label\"\n dsTooltip\n dsTooltipWhenClipped>\n @if (optionTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n $implicit: opt,\n option: opt,\n }\" />\n } @else {\n {{ opt.label }}\n }\n </span>\n\n <span\n class=\"option-check\"\n [class.is-shown]=\"isSelected(opt)\">\n </span>\n </button>\n </li>\n }\n </ul>\n </li>\n } @else {\n <li role=\"presentation\">\n <button\n type=\"button\"\n role=\"option\"\n tabindex=\"-1\"\n class=\"option\"\n [id]=\"optionId(flatIndexOf(item))\"\n [attr.aria-selected]=\"isSelected(item)\"\n [attr.aria-disabled]=\"item.disabled ? 'true' : null\"\n [class.is-selected]=\"isSelected(item)\"\n [class.is-active]=\"isActive(flatIndexOf(item))\"\n [class.is-disabled]=\"item.disabled\"\n [disabled]=\"item.disabled\"\n (click)=\"pick(item)\"\n (mouseenter)=\"\n cursorFromKeyboard.set(false);\n activeIndex.set(flatIndexOf(item))\n \">\n @if (item.icon) {\n <ds-icon\n class=\"option-icon\"\n [name]=\"item.icon\"\n [size]=\"16\" />\n }\n\n <span\n class=\"option-label\"\n dsTooltip\n dsTooltipWhenClipped>\n @if (optionTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n $implicit: item,\n option: item,\n }\" />\n } @else {\n {{ item.label }}\n }\n </span>\n\n <span\n class=\"option-check\"\n [class.is-shown]=\"isSelected(item)\">\n </span>\n </button>\n </li>\n }\n }\n\n @if (loading()) {\n <li\n class=\"empty t-s\"\n role=\"presentation\">\n <ds-spinner size=\"sm\" />\n </li>\n } @else if (options().length === 0) {\n <li\n class=\"empty t-s\"\n role=\"presentation\">\n @if (emptyTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" />\n } @else {\n {{ intl().picker.noOptions }}\n }\n </li>\n }\n </ul>\n\n @if (panelFooterTemplate(); as tpl) {\n <div class=\"panel-footer\">\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n count: options().length,\n total: options().length,\n query: '',\n }\" />\n </div>\n }\n </div>\n</ng-template>\n", styles: ["@charset \"UTF-8\";:where(:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}@keyframes ds-focus-ring-in{0%{outline-color:transparent}}:root[data-focus=ring]{--ds-field-focus-shadow: var(--focus-ring);--ds-field-focus-shadow-error: var(--focus-ring-error)}:root[data-focus=edge]{--focus-ring-offset: 0px;--ds-field-focus-shadow: 0 0 0 var(--border-width-default) var(--primary);--ds-field-focus-shadow-error: 0 0 0 var(--border-width-default) var(--error)}[data-focus=inset]{--focus-ring-offset: calc(-1 * var(--focus-ring-width));--ds-field-focus-shadow: var(--focus-ring-inset);--ds-field-focus-shadow-error: var(--focus-ring-inset-error)}@media(forced-colors:active){:where(:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}:host{--_field-border-color: var(--ds-field-border-color, var(--border-default));--_field-border-color-hover: var(--ds-field-border-color-hover, var(--border-strong));--_field-border-color-focus: var(--ds-field-border-color-focus, var(--accent));--_field-text-color: var(--ds-field-text-color, var(--text-primary));--_field-placeholder-color: var(--ds-field-placeholder-color, var(--text-tertiary));--_field-font-size: var(--ds-field-font-size, var(--font-size-s));--_select-focus-shadow: var(--ds-select-focus-shadow, var(--ds-field-focus-shadow));--_select-focus-shadow-error: var(--ds-select-focus-shadow-error, var(--ds-field-focus-shadow-error));--_select-bg-color: var(--ds-select-bg-color, var(--surface-default));--_select-border-color: var(--ds-select-border-color, var(--_field-border-color));--_select-text-color: var(--ds-select-text-color, var(--_field-text-color));--_select-radius: var(--ds-select-radius, var(--ds-radius-control));--_select-border-color-hover: var(--ds-select-border-color-hover, var(--_field-border-color-hover));--_select-border-color-focus: var(--ds-select-border-color-focus, var(--_field-border-color-focus));--_select-placeholder-color: var(--ds-select-placeholder-color, var(--_field-placeholder-color));--_select-font-size: var(--ds-select-font-size, var(--_field-font-size));display:flex;flex-direction:column;gap:var(--field-label-gap);width:100%}:host(.content-width){width:fit-content}.label{--_field-label-font-size: var(--ds-field-label-font-size, var(--font-size-xs));--_field-label-font-weight: var(--ds-field-label-font-weight, var(--font-weight-bold));--_field-label-color: var(--ds-field-label-color, var(--text-secondary));--_field-label-text-transform: var(--ds-field-label-text-transform, none);--_field-label-letter-spacing: var(--ds-field-label-letter-spacing, normal);display:flex;align-items:center;gap:var(--field-gap-req);font:var(--_field-label-font-weight) var(--_field-label-font-size)/var(--line-height-base) var(--font-sans);color:var(--_field-label-color);text-transform:var(--_field-label-text-transform);letter-spacing:var(--_field-label-letter-spacing)}.label .req{color:var(--error);font-weight:var(--font-weight-semibold)}.label .optional-marker{color:var(--text-tertiary);font-weight:var(--font-weight-regular)}.dropdown{display:flex;align-items:center;gap:var(--space-2);width:100%;background:var(--_select-bg-color);border:var(--border-width-default) solid var(--_select-border-color);border-radius:var(--_select-radius);padding:var(--field-pad-y) var(--field-pad-x);--_field-height: var(--ds-field-height, var(--field-h-md));height:var(--_field-height);font:var(--font-weight-regular) var(--_select-font-size)/var(--line-height-base) var(--font-sans);color:var(--_select-text-color);text-align:left;cursor:pointer;transition:border-color var(--duration-fast) var(--ease-standard),box-shadow var(--duration-fast) var(--ease-standard),background var(--duration-fast) var(--ease-standard)}.dropdown .trigger-text{flex:1;min-width:0;overflow:clip;overflow-clip-margin:var(--space-1);text-overflow:ellipsis;white-space:nowrap}.dropdown .trigger-text.is-placeholder{color:var(--_select-placeholder-color)}.dropdown .trigger-icon{color:var(--icon-default);flex:0 0 auto}.dropdown .clear-btn{border:0;background:transparent;display:inline-flex;align-items:center;justify-content:center;color:var(--icon-default);border-radius:var(--ds-radius-inner);padding:var(--space-0-5);cursor:pointer;flex:0 0 auto}.dropdown .clear-btn:hover{color:var(--text-primary);background:var(--surface-secondary)}.dropdown .clear-btn:active:not(:disabled,[disabled],.is-disabled){filter:brightness(var(--ds-press-brightness, .9));transform:scale(var(--ds-press-scale, .97))}.dropdown .chevron{display:inline-flex;align-items:center;justify-content:center;color:var(--icon-default);transition:transform var(--duration-fast) var(--ease-standard)}.dropdown:hover:not(:disabled){border-color:var(--_select-border-color-hover)}@media not (forced-colors:active){.dropdown:focus-visible{outline:none}}.dropdown:focus-visible{border-color:var(--_select-border-color-focus);box-shadow:var(--_select-focus-shadow)}.dropdown.open{border-color:var(--_select-border-color-focus);box-shadow:var(--_select-focus-shadow)}.dropdown.open .chevron{transform:rotate(180deg)}.dropdown.readonly{background:var(--surface-secondary);border-color:var(--border-divider);color:var(--text-secondary);cursor:default}.dropdown.readonly:hover{border-color:var(--border-divider)}.dropdown.readonly .chevron{display:none}.dropdown.disabled,.dropdown:disabled{background:var(--surface-disabled);border-color:var(--border-disabled);color:var(--text-disabled);cursor:not-allowed}.dropdown.disabled .chevron,.dropdown:disabled .chevron{color:var(--icon-muted)}.dropdown.sm{--_field-height: var(--ds-field-height, var(--field-h-sm));height:var(--_field-height);padding:0 var(--space-2)}.dropdown.lg{--_field-height: var(--ds-field-height, var(--field-h-lg));height:var(--_field-height)}:host(.in-group){width:auto;display:flex}:host(.in-group) .label,:host(.in-group) ds-field-message{display:none}:host(.in-group) .dropdown{border:0;border-radius:0;background:transparent;flex:1;height:auto}:host(.in-group) .dropdown:hover,:host(.in-group) .dropdown:focus,:host(.in-group) .dropdown:focus-visible,:host(.in-group) .dropdown:focus-within{border:0;box-shadow:none}@media not (forced-colors:active){:host(.in-group) .dropdown:hover,:host(.in-group) .dropdown:focus,:host(.in-group) .dropdown:focus-visible,:host(.in-group) .dropdown:focus-within{outline:none}}:host([data-field-state=error]:not(.in-group)) .dropdown:not(.disabled):not(:disabled){border-color:var(--error);background-color:var(--error-subtitle)}:host([data-field-state=error]:not(.in-group)) .dropdown:not(.disabled):not(:disabled):focus-within,:host([data-field-state=error]:not(.in-group)) .dropdown:not(.disabled):not(:disabled):focus-visible{box-shadow:var(--_select-focus-shadow-error)}:host([data-field-state=warning]:not(.in-group)) .dropdown:not(.disabled):not(:disabled){border-color:var(--warning-text)}:host([data-field-state=success]:not(.in-group)) .dropdown:not(.disabled):not(:disabled){border-color:var(--success)}\n"] }]
456
+ ], template: "@if (label()) {\n <span\n class=\"label\"\n [id]=\"labelId\">\n {{ label() }}\n @if (required()) {\n <span\n class=\"req\"\n aria-hidden=\"true\">\n *\n </span>\n } @else if (optional()) {\n <span\n class=\"optional-marker\"\n aria-hidden=\"true\">\n {{ intl().field.optional }}\n </span>\n }\n </span>\n}\n\n<div\n #trigger\n role=\"combobox\"\n aria-haspopup=\"listbox\"\n dsTooltip\n dsTooltipWhenClipped\n dsTooltipTextSelector=\".trigger-text\"\n [class]=\"triggerClasses()\"\n [attr.name]=\"name()\"\n [attr.tabindex]=\"isDisabled() ? -1 : 0\"\n [attr.aria-expanded]=\"open() || preview.staticPreview()\"\n [attr.aria-controls]=\"listboxId\"\n [attr.aria-activedescendant]=\"activeDescendant()\"\n [attr.aria-labelledby]=\"label() ? labelId : null\"\n [attr.aria-label]=\"resolvedAriaLabel()\"\n [attr.aria-invalid]=\"invalidResolved() ? 'true' : null\"\n [attr.aria-describedby]=\"describedByIds(hintId(), groupMessage())\"\n [attr.aria-required]=\"required() ? 'true' : null\"\n [attr.aria-disabled]=\"isDisabled() ? 'true' : null\"\n (click)=\"toggle()\"\n (keydown)=\"onTriggerKeydown($event)\">\n @if (selectedOption()?.icon) {\n <ds-icon\n class=\"trigger-icon\"\n [name]=\"selectedOption()!.icon!\"\n [size]=\"16\" />\n }\n\n @if (pickerTrigger(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n $implicit: selectedOption(),\n selected: selectedOption(),\n count: hasValue() ? 1 : 0,\n open: open(),\n disabled: isDisabled(),\n }\" />\n } @else {\n <span\n class=\"trigger-text\"\n [class.is-placeholder]=\"!hasValue()\">\n {{ displayLabel() }}\n </span>\n }\n\n @if (\n clearable() &&\n hasValue() &&\n !isDisabled() &&\n !isReadOnly()\n ) {\n <button\n type=\"button\"\n class=\"clear-btn\"\n [attr.aria-label]=\"intl().picker.clearSelection\"\n (click)=\"clearValue($event)\">\n <ds-icon\n name=\"x\"\n [size]=\"14\" />\n </button>\n }\n\n <span class=\"chevron\">\n <ds-icon\n name=\"chevronDown\"\n [size]=\"14\" />\n </span>\n</div>\n\n<ds-field-message\n [icon]=\"messageIcon()\"\n [text]=\"message().text\"\n [state]=\"message().state\"\n [messageId]=\"hintId()\"\n [reserve]=\"reserveMessageResolved()\" />\n\n@if (preview.staticPreview()) {\n <div class=\"ds-dropdown-panel\">\n <ng-container [ngTemplateOutlet]=\"panelContentTpl()\" />\n </div>\n}\n\n<ng-template #panel>\n <ng-container [ngTemplateOutlet]=\"panelContentTpl()\" />\n</ng-template>\n\n<ng-template #panelContent>\n <div class=\"dropdown-panel\">\n @if (panelHeaderTemplate(); as tpl) {\n <div class=\"panel-header\">\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n count: options().length,\n total: options().length,\n query: '',\n }\" />\n </div>\n }\n\n <ul\n class=\"dropdown-list\"\n role=\"listbox\"\n [attr.aria-busy]=\"loading() ? 'true' : null\"\n [id]=\"listboxId\"\n [attr.aria-labelledby]=\"label() ? labelId : null\">\n @for (item of options(); track $index; let groupIdx = $index) {\n @if (isOptionGroup(item)) {\n <li\n class=\"optgroup\"\n role=\"group\"\n [attr.aria-label]=\"item.label\">\n <span\n class=\"optgroup-label\"\n [class.is-first]=\"groupIdx === 0\">\n @if (groupLabelTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n $implicit: item,\n group: item,\n count: item.options.length,\n }\" />\n } @else {\n {{ item.label }}\n }\n </span>\n\n <ul\n class=\"optgroup-list\"\n role=\"presentation\">\n @for (opt of item.options; track opt.value) {\n <li role=\"presentation\">\n <button\n type=\"button\"\n role=\"option\"\n tabindex=\"-1\"\n class=\"option\"\n dsTooltip\n dsTooltipWhenClipped\n dsTooltipTextSelector=\".option-label\"\n [id]=\"optionId(flatIndexOf(opt))\"\n [attr.aria-selected]=\"isSelected(opt)\"\n [attr.aria-disabled]=\"\n isOptionDisabled(opt, item.disabled) ? 'true' : null\n \"\n [attr.aria-describedby]=\"\n opt.disabled && opt.disabledReason\n ? optionId(flatIndexOf(opt)) + '-reason'\n : null\n \"\n [class.is-selected]=\"isSelected(opt)\"\n [class.is-active]=\"isActive(flatIndexOf(opt))\"\n [class.is-disabled]=\"isOptionDisabled(opt, item.disabled)\"\n [disabled]=\"isOptionDisabled(opt, item.disabled)\"\n (click)=\"pick(opt, item.disabled)\"\n (mouseenter)=\"\n cursorFromKeyboard.set(false);\n activeIndex.set(flatIndexOf(opt))\n \">\n @if (opt.icon) {\n <ds-icon\n class=\"option-icon\"\n [name]=\"opt.icon\"\n [size]=\"16\" />\n }\n\n @if (opt.disabled && opt.disabledReason) {\n <span\n class=\"option-reason\"\n [id]=\"optionId(flatIndexOf(opt)) + '-reason'\">\n {{ opt.disabledReason }}\n </span>\n }\n\n <span\n class=\"option-label\">\n @if (optionTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n $implicit: opt,\n option: opt,\n }\" />\n } @else {\n {{ opt.label }}\n }\n </span>\n\n <span\n class=\"option-check\"\n [class.is-shown]=\"isSelected(opt)\">\n </span>\n </button>\n </li>\n }\n </ul>\n </li>\n } @else {\n <li role=\"presentation\">\n <button\n type=\"button\"\n role=\"option\"\n tabindex=\"-1\"\n class=\"option\"\n dsTooltip\n dsTooltipWhenClipped\n dsTooltipTextSelector=\".option-label\"\n [id]=\"optionId(flatIndexOf(item))\"\n [attr.aria-selected]=\"isSelected(item)\"\n [attr.aria-disabled]=\"item.disabled ? 'true' : null\"\n [class.is-selected]=\"isSelected(item)\"\n [class.is-active]=\"isActive(flatIndexOf(item))\"\n [class.is-disabled]=\"item.disabled\"\n [disabled]=\"item.disabled\"\n (click)=\"pick(item)\"\n (mouseenter)=\"\n cursorFromKeyboard.set(false);\n activeIndex.set(flatIndexOf(item))\n \">\n @if (item.icon) {\n <ds-icon\n class=\"option-icon\"\n [name]=\"item.icon\"\n [size]=\"16\" />\n }\n\n <span\n class=\"option-label\">\n @if (optionTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n $implicit: item,\n option: item,\n }\" />\n } @else {\n {{ item.label }}\n }\n </span>\n\n <span\n class=\"option-check\"\n [class.is-shown]=\"isSelected(item)\">\n </span>\n </button>\n </li>\n }\n }\n\n @if (loading()) {\n <li\n class=\"empty t-s\"\n role=\"presentation\">\n <ds-spinner size=\"sm\" />\n </li>\n } @else if (options().length === 0) {\n <li\n class=\"empty t-s\"\n role=\"presentation\">\n @if (emptyTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" />\n } @else {\n {{ intl().picker.noOptions }}\n }\n </li>\n }\n </ul>\n\n @if (panelFooterTemplate(); as tpl) {\n <div class=\"panel-footer\">\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n count: options().length,\n total: options().length,\n query: '',\n }\" />\n </div>\n }\n </div>\n</ng-template>\n", styles: ["@charset \"UTF-8\";:where(:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}@keyframes ds-focus-ring-in{0%{outline-color:transparent}}:root[data-focus=ring]{--ds-field-focus-shadow: var(--focus-ring);--ds-field-focus-shadow-error: var(--focus-ring-error)}:root[data-focus=edge]{--focus-ring-offset: 0px;--ds-field-focus-shadow: 0 0 0 var(--border-width-default) var(--primary);--ds-field-focus-shadow-error: 0 0 0 var(--border-width-default) var(--error)}[data-focus=inset]{--focus-ring-offset: calc(-1 * var(--focus-ring-width));--ds-field-focus-shadow: var(--focus-ring-inset);--ds-field-focus-shadow-error: var(--focus-ring-inset-error)}@media(forced-colors:active){:where(:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}:host{--_field-border-color: var(--ds-field-border-color, var(--border-default));--_field-border-color-hover: var(--ds-field-border-color-hover, var(--border-strong));--_field-border-color-focus: var(--ds-field-border-color-focus, var(--accent));--_field-text-color: var(--ds-field-text-color, var(--text-primary));--_field-placeholder-color: var(--ds-field-placeholder-color, var(--text-tertiary));--_field-font-size: var(--ds-field-font-size, var(--font-size-s));--_select-focus-shadow: var(--ds-select-focus-shadow, var(--ds-field-focus-shadow));--_select-focus-shadow-error: var(--ds-select-focus-shadow-error, var(--ds-field-focus-shadow-error));--_select-bg-color: var(--ds-select-bg-color, var(--surface-default));--_select-border-color: var(--ds-select-border-color, var(--_field-border-color));--_select-text-color: var(--ds-select-text-color, var(--_field-text-color));--_select-radius: var(--ds-select-radius, var(--ds-radius-control));--_select-border-color-hover: var(--ds-select-border-color-hover, var(--_field-border-color-hover));--_select-border-color-focus: var(--ds-select-border-color-focus, var(--_field-border-color-focus));--_select-placeholder-color: var(--ds-select-placeholder-color, var(--_field-placeholder-color));--_select-font-size: var(--ds-select-font-size, var(--_field-font-size));display:flex;flex-direction:column;gap:var(--field-label-gap);width:100%}:host(.content-width){width:fit-content}.label{--_field-label-font-size: var(--ds-field-label-font-size, var(--font-size-xs));--_field-label-font-weight: var(--ds-field-label-font-weight, var(--font-weight-bold));--_field-label-color: var(--ds-field-label-color, var(--text-secondary));--_field-label-text-transform: var(--ds-field-label-text-transform, none);--_field-label-letter-spacing: var(--ds-field-label-letter-spacing, normal);display:flex;align-items:center;gap:var(--field-gap-req);font:var(--_field-label-font-weight) var(--_field-label-font-size)/var(--line-height-base) var(--font-sans);color:var(--_field-label-color);text-transform:var(--_field-label-text-transform);letter-spacing:var(--_field-label-letter-spacing)}.label .req{color:var(--error);font-weight:var(--font-weight-semibold)}.label .optional-marker{color:var(--text-tertiary);font-weight:var(--font-weight-regular)}.dropdown{display:flex;align-items:center;gap:var(--space-2);width:100%;background:var(--_select-bg-color);border:var(--border-width-default) solid var(--_select-border-color);border-radius:var(--_select-radius);padding:var(--field-pad-y) var(--field-pad-x);--_field-height: var(--ds-field-height, var(--field-h-md));height:var(--_field-height);font:var(--font-weight-regular) var(--_select-font-size)/var(--line-height-base) var(--font-sans);color:var(--_select-text-color);text-align:left;cursor:pointer;transition:border-color var(--duration-fast) var(--ease-standard),box-shadow var(--duration-fast) var(--ease-standard),background var(--duration-fast) var(--ease-standard)}.dropdown .trigger-text{flex:1;min-width:0;overflow:clip;overflow-clip-margin:var(--space-1);text-overflow:ellipsis;white-space:nowrap}.dropdown .trigger-text.is-placeholder{color:var(--_select-placeholder-color)}.dropdown .trigger-icon{color:var(--icon-default);flex:0 0 auto}.dropdown .clear-btn{border:0;background:transparent;display:inline-flex;align-items:center;justify-content:center;color:var(--icon-default);border-radius:var(--ds-radius-inner);padding:var(--space-0-5);cursor:pointer;flex:0 0 auto}.dropdown .clear-btn:hover{color:var(--text-primary);background:var(--surface-secondary)}.dropdown .clear-btn:active:not(:disabled,[disabled],.is-disabled){filter:brightness(var(--ds-press-brightness, .9));transform:scale(var(--ds-press-scale, .97))}.dropdown .chevron{display:inline-flex;align-items:center;justify-content:center;color:var(--icon-default);transition:transform var(--duration-fast) var(--ease-standard)}.dropdown:hover:not(:disabled){border-color:var(--_select-border-color-hover)}@media not (forced-colors:active){.dropdown:focus-visible{outline:none}}.dropdown:focus-visible{border-color:var(--_select-border-color-focus);box-shadow:var(--_select-focus-shadow)}.dropdown.open{border-color:var(--_select-border-color-focus);box-shadow:var(--_select-focus-shadow)}.dropdown.open .chevron{transform:rotate(180deg)}.dropdown.readonly{background:var(--surface-secondary);border-color:var(--border-divider);color:var(--text-secondary);cursor:default}.dropdown.readonly:hover{border-color:var(--border-divider)}.dropdown.readonly .chevron{display:none}.dropdown.disabled,.dropdown:disabled{background:var(--surface-disabled);border-color:var(--border-disabled);color:var(--text-disabled);cursor:not-allowed}.dropdown.disabled .chevron,.dropdown:disabled .chevron{color:var(--icon-muted)}.dropdown.sm{--_field-height: var(--ds-field-height, var(--field-h-sm));height:var(--_field-height);padding:0 var(--space-2)}.dropdown.lg{--_field-height: var(--ds-field-height, var(--field-h-lg));height:var(--_field-height)}:host(.in-group){width:auto;display:flex}:host(.in-group) .label,:host(.in-group) ds-field-message{display:none}:host(.in-group) .dropdown{border:0;border-radius:0;background:transparent;flex:1;height:auto}:host(.in-group) .dropdown:hover,:host(.in-group) .dropdown:focus,:host(.in-group) .dropdown:focus-visible,:host(.in-group) .dropdown:focus-within{border:0;box-shadow:none}@media not (forced-colors:active){:host(.in-group) .dropdown:hover,:host(.in-group) .dropdown:focus,:host(.in-group) .dropdown:focus-visible,:host(.in-group) .dropdown:focus-within{outline:none}}:host([data-field-state=error]:not(.in-group)) .dropdown:not(.disabled):not(:disabled){border-color:var(--error);background-color:var(--error-subtitle)}:host([data-field-state=error]:not(.in-group)) .dropdown:not(.disabled):not(:disabled):focus-within,:host([data-field-state=error]:not(.in-group)) .dropdown:not(.disabled):not(:disabled):focus-visible{box-shadow:var(--_select-focus-shadow-error)}:host([data-field-state=warning]:not(.in-group)) .dropdown:not(.disabled):not(:disabled){border-color:var(--warning-text)}:host([data-field-state=success]:not(.in-group)) .dropdown:not(.disabled):not(:disabled){border-color:var(--success)}\n"] }]
458
457
  }], ctorParameters: () => [], propDecorators: { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], options: [{ type: i0.Input, args: [{ isSignal: true, alias: "options", required: false }] }], width: [{ type: i0.Input, args: [{ isSignal: true, alias: "width", required: false }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], loading: [{ type: i0.Input, args: [{ isSignal: true, alias: "loading", required: false }] }], opened: [{ type: i0.Output, args: ["opened"] }], closed: [{ type: i0.Output, args: ["closed"] }], scrollActiveIntoView: [{ type: i0.Input, args: [{ isSignal: true, alias: "scrollActiveIntoView", required: false }] }], panelClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "panelClass", required: false }] }], readOnly: [{ type: i0.Input, args: [{ isSignal: true, alias: "readOnly", required: false }] }], readonlyBinding: [{ type: i0.Input, args: [{ isSignal: true, alias: "readonly", required: false }] }], success: [{ type: i0.Input, args: [{ isSignal: true, alias: "success", required: false }] }], required: [{ type: i0.Input, args: [{ isSignal: true, alias: "required", required: false }] }], optional: [{ type: i0.Input, args: [{ isSignal: true, alias: "optional", required: false }] }], name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], clearable: [{ type: i0.Input, args: [{ isSignal: true, alias: "clearable", required: false }] }], optionTemplate: [{ type: i0.ContentChild, args: [i0.forwardRef(() => DsOptionTemplateDirective), { ...{
459
458
  read: TemplateRef,
460
459
  }, isSignal: true }] }], pickerTrigger: [{ type: i0.ContentChild, args: [i0.forwardRef(() => DsPickerTriggerDirective), { ...{