@ids-group-ltd/ids-design-system 1.1.1 → 1.1.2

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 (61) hide show
  1. package/CHANGELOG.md +114 -0
  2. package/agent/feedback/ds-empty-state.md +2 -1
  3. package/agent/feedback/ds-tree.md +3 -1
  4. package/agent/forms/ds-chat-input.md +3 -3
  5. package/agent/navigation/ds-splitter.md +1 -1
  6. package/components.md +9 -6
  7. package/fesm2022/ids-group-ltd-ids-design-system-components-autocomplete.mjs +2 -2
  8. package/fesm2022/ids-group-ltd-ids-design-system-components-autocomplete.mjs.map +1 -1
  9. package/fesm2022/ids-group-ltd-ids-design-system-components-banner.mjs +2 -2
  10. package/fesm2022/ids-group-ltd-ids-design-system-components-banner.mjs.map +1 -1
  11. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-legend.mjs +2 -2
  12. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-legend.mjs.map +1 -1
  13. package/fesm2022/ids-group-ltd-ids-design-system-components-chat.mjs +48 -6
  14. package/fesm2022/ids-group-ltd-ids-design-system-components-chat.mjs.map +1 -1
  15. package/fesm2022/ids-group-ltd-ids-design-system-components-checkbox.mjs +2 -2
  16. package/fesm2022/ids-group-ltd-ids-design-system-components-checkbox.mjs.map +1 -1
  17. package/fesm2022/ids-group-ltd-ids-design-system-components-empty-state.mjs +14 -7
  18. package/fesm2022/ids-group-ltd-ids-design-system-components-empty-state.mjs.map +1 -1
  19. package/fesm2022/ids-group-ltd-ids-design-system-components-multi-select.mjs +2 -2
  20. package/fesm2022/ids-group-ltd-ids-design-system-components-multi-select.mjs.map +1 -1
  21. package/fesm2022/ids-group-ltd-ids-design-system-components-number-stepper.mjs +2 -2
  22. package/fesm2022/ids-group-ltd-ids-design-system-components-number-stepper.mjs.map +1 -1
  23. package/fesm2022/ids-group-ltd-ids-design-system-components-popover.mjs +9 -2
  24. package/fesm2022/ids-group-ltd-ids-design-system-components-popover.mjs.map +1 -1
  25. package/fesm2022/ids-group-ltd-ids-design-system-components-radio-group.mjs +2 -2
  26. package/fesm2022/ids-group-ltd-ids-design-system-components-radio-group.mjs.map +1 -1
  27. package/fesm2022/ids-group-ltd-ids-design-system-components-segmented.mjs +2 -2
  28. package/fesm2022/ids-group-ltd-ids-design-system-components-segmented.mjs.map +1 -1
  29. package/fesm2022/ids-group-ltd-ids-design-system-components-switch.mjs +2 -2
  30. package/fesm2022/ids-group-ltd-ids-design-system-components-switch.mjs.map +1 -1
  31. package/fesm2022/ids-group-ltd-ids-design-system-components-table-columns.mjs +2 -2
  32. package/fesm2022/ids-group-ltd-ids-design-system-components-table-columns.mjs.map +1 -1
  33. package/fesm2022/ids-group-ltd-ids-design-system-components-table.mjs +2 -2
  34. package/fesm2022/ids-group-ltd-ids-design-system-components-table.mjs.map +1 -1
  35. package/fesm2022/ids-group-ltd-ids-design-system-components-textarea.mjs +2 -2
  36. package/fesm2022/ids-group-ltd-ids-design-system-components-textarea.mjs.map +1 -1
  37. package/fesm2022/ids-group-ltd-ids-design-system-components-toggle-button.mjs +2 -2
  38. package/fesm2022/ids-group-ltd-ids-design-system-components-toggle-button.mjs.map +1 -1
  39. package/fesm2022/ids-group-ltd-ids-design-system-components-tree.mjs +47 -8
  40. package/fesm2022/ids-group-ltd-ids-design-system-components-tree.mjs.map +1 -1
  41. package/fesm2022/ids-group-ltd-ids-design-system-core.mjs +14 -1
  42. package/fesm2022/ids-group-ltd-ids-design-system-core.mjs.map +1 -1
  43. package/fesm2022/ids-group-ltd-ids-design-system.mjs.map +1 -1
  44. package/migrations/1.1.2.json +135 -0
  45. package/migrations/README.md +3 -1
  46. package/package.json +4 -1
  47. package/schematics/check-overrides/surface.json +10 -1
  48. package/stylelint/index.mjs +17 -3
  49. package/stylelint/known-tokens.mjs +139 -0
  50. package/stylelint/report.mjs +185 -0
  51. package/stylelint/tokens.mjs +160 -0
  52. package/stylelint/use-tokens.mjs +397 -0
  53. package/styles/_check-box.scss +2 -2
  54. package/styles/_tokens.scss +8 -0
  55. package/themes/_semantic.scss +9 -1
  56. package/themes/dark/_theme.scss +5 -1
  57. package/types/ids-group-ltd-ids-design-system-components-chat.d.ts +18 -2
  58. package/types/ids-group-ltd-ids-design-system-components-empty-state.d.ts +7 -2
  59. package/types/ids-group-ltd-ids-design-system-components-tree.d.ts +20 -2
  60. package/types/ids-group-ltd-ids-design-system-core.d.ts +19 -1
  61. package/types/ids-group-ltd-ids-design-system.d.ts +3 -3
package/CHANGELOG.md CHANGED
@@ -1,5 +1,119 @@
1
1
  ## Unreleased
2
2
 
3
+ ## 1.1.2 — 2026-11-10
4
+
5
+ ### Added
6
+
7
+ - **`ds-empty-state` draws a quiet look with `appearance="plain"`.** The icon sits alone at 32px in
8
+ `--text-tertiary`, with no tile, the title is semibold at `--font-size-l` and the body is in
9
+ `--text-tertiary`, for an empty section among others on a page. An `error` or `success` icon
10
+ keeps its status colour. The `--ds-empty-state-*` hooks still win where set. The default
11
+ `'tile'` renders as before. New export `EmptyStateAppearance`.
12
+ - **The stylelint plugin reports raw values where a token exists, and tokens nothing declares.**
13
+ `ids-design-system/use-tokens` covers colour, radius, spacing, type size, line height and weight,
14
+ `box-shadow`, `z-index` and motion, and names the exact token (`use var(--space-2)`) or the nearest
15
+ step, said as nearest; a colour names the role of its property (`--text-*`, `--icon-*`,
16
+ `--surface-*`, `--border-*`). `ids-design-system/known-tokens` reports a `var(--name)` that is not a
17
+ library token and is declared neither in the linted file itself nor in a file named by its
18
+ `declarationsFrom` option (stylesheets, a template's `[style.--x]`, a `setProperty` in TypeScript),
19
+ such as `--radius-s` for `--radius-sm`; a `var(--x, fallback)` is reported even so. Both are off
20
+ until you add them; `categories` sets each category to `true`, `false`, `"warning"` or `"error"`, `allow`
21
+ exempts raw values, and `ignore` takes file globs for `use-tokens` but token-name patterns
22
+ (`--chart-*`) for `known-tokens`. `npx ids-design-system-token-report "<glob>"` prints the findings
23
+ and the counts per category, property, file and value without changing anything. The README has the
24
+ setup.
25
+ - **Three icons: `square-dashed`, `outline-blocks` and `map-pin`.** A dashed square for selecting
26
+ an area, three dashed blocks for showing element outlines, and a map pin for placing a note.
27
+ `square-dashed` and `map-pin` are drawn from Lucide (ISC); all three sit on the 24-unit grid and
28
+ take the set's stroke.
29
+ - **`ds-chat-input` offers Queue and Redirect while it is busy, with `busyAction="queue"`.** Once
30
+ text is typed while `busy`, three buttons stand on the right, left to right: Redirect, a `send`
31
+ icon button that emits the new output `redirected` with the trimmed text; Stop, a `stop` icon
32
+ button that emits `stopRequested` (with `stoppable`); and Queue, the main button with a
33
+ `list-plus` icon, which emits the new output `queued` with the trimmed text, as Enter does. Their
34
+ accessible names, each also shown in a tooltip, are the new `DsIntl` keys `chatInput.redirect`
35
+ (`'Redirect now'`) and `chatInput.queue` (`'Queue'`) and the existing `chatInput.stop`; the Stop
36
+ state of the main button shows its name in a tooltip too. With the text cleared the main button
37
+ is Stop again. New export `ChatInputBusyAction`.
38
+ - **Two icons: `send` and `list-plus`.** A paper plane and a list with a plus, from Lucide (ISC),
39
+ with the set's stroke.
40
+ - **Two icons: `maximize` and `minimize`.** Two diagonal arrows pointing out and in, for entering
41
+ and leaving full screen. They are drawn from Lucide (ISC) on the 24-unit grid and take the set's
42
+ stroke.
43
+ - **`ds-tree` takes `toggleOn`, what expands and collapses a parent.** `'row'`, the default, keeps
44
+ today's behaviour: a click, Enter or Space selects the row and toggles it. With `'caret'` the
45
+ row only selects, and the chevron is a button of its own that toggles; it sits outside the tab
46
+ order, so the tree keeps one tab stop, and is named by the new `DsIntl` keys `tree.expand` and
47
+ `tree.collapse` (`` `Expand ${label}` `` and `` `Collapse ${label}` ``). With `'doubleClick'` a
48
+ click selects and a double click toggles. ArrowRight expands and ArrowLeft collapses the focused
49
+ row in every mode, and Shift- or Ctrl-click in multiple selection only adds or removes the row.
50
+ New export `TreeToggleOn`.
51
+ - **`--segmented-selected` and `--segmented-selected-on`**, the fill of the selected `ds-segmented`
52
+ segment and its label. Light: `--accent` with `--accent-on`. Dark: `--accent-strong-overlay` with
53
+ `--surface-default`, because `--accent` is under 3:1 against the dark track. Both are declared with
54
+ the theme, so a `ds-color` zone does not recolour them; set `--ds-segmented-selected-bg-color` and
55
+ `--ds-segmented-selected-label-color` there.
56
+
57
+ ### Changed
58
+
59
+ - **`ds-tree` and `ds-popover` follow `[data-density]`.** Under `compact` and `ultra-compact` a tree
60
+ row takes 4px by 8px of padding (was 6px by 12px) and each level indents 16px (was 20px), through
61
+ `--tree-row-pad-y`, `--tree-row-pad-x` and `--tree-indent`. A popover's padding is the new token
62
+ `--popover-pad`: 12px, and 8px under `ultra-compact`. The popover panel takes the tier of the
63
+ nearest `[data-density]` around `ds-popover`, so a tree inside it follows the screen that opens
64
+ it. `--ds-tree-row-padding-y`, `--ds-tree-row-padding-x`, `--ds-tree-indent` and
65
+ `--ds-popover-padding` still win where set; without `[data-density]` both render as before.
66
+ - **`ds-tree` animates expanding and collapsing, with `animate`.** On by default: the rows a parent
67
+ reveals slide open and shut, and its chevron turns a quarter, on `--duration-base` and
68
+ `--ease-standard`. The first render does not animate, and nothing moves under
69
+ `prefers-reduced-motion: reduce`. `[animate]="false"` restores the instant toggle. Each row now
70
+ sits in a `div.row-shell` (`role="none"`), and the chevron is one `chevronRight` turned by
71
+ `transform: rotate(90deg)` while expanded; a style that targets `ds-tree .row` as a direct child
72
+ of the host, or a `transform` of your own on `.caret`, needs a look.
73
+
74
+ - **`--border-field` is at least 3:1 against every surface in both themes, muted fills included.**
75
+ Light: `color-mix(in srgb, var(--neutral-500) 86%, var(--neutral-400))`, `#727A8E` on the
76
+ default neutrals, instead of `--neutral-500` (`#6B7388`): 4.29:1 against a card, a modal, a drawer
77
+ and a popover, 3.62:1 against `--surface-muted`. Dark:
78
+ `color-mix(in srgb, var(--neutral-500) 80%, var(--neutral-400))`, `#848DA0`, instead of
79
+ `--neutral-400` (`#6B7388`): 5.17:1 against a card, 3.03:1 against
80
+ `--surface-overlay-raised-muted`. `--border-field-hover` is unchanged in both themes. To keep the
81
+ previous outline, set `--border-field: var(--neutral-500)` on `:root` and
82
+ `--border-field: var(--neutral-400)` on `:root[data-theme='dark']`.
83
+ - **Checkbox, radio, switch, toggle button and the number stepper dividers draw their boundary in
84
+ `--border-field`, at least 3:1 against the surfaces they sit on.** Standalone fields and controls
85
+ share it; `--border-field-hover` is the hover outline where a control has one. Defaults that
86
+ moved: `--ds-checkbox-border-color` and `--ds-radio-border-color` from `--border-strong` (1.66:1),
87
+ `--ds-switch-track-off-bg-color` from `--border-strong`, and `--ds-toggle-button-border-color`
88
+ from `--border-default` (1.31:1); a hovered `ds-toggle-button` takes `--border-field-hover`. The
89
+ unchecked boxes in `ds-multi-select` and `ds-autocomplete` options, `ds-table` selection,
90
+ `ds-table-columns-panel` and `ds-chart-legend` follow. The dividers beside the `ds-number-stepper`
91
+ buttons take `--ds-number-stepper-border-color` instead of `--border-default`, and
92
+ `--border-disabled` when disabled. A
93
+ value set on any of these hooks still wins. To keep the faint look on a screen, set the hook back,
94
+ for example `--ds-checkbox-border-color: var(--border-strong)`.
95
+ - **The selected `ds-segmented` segment is a solid accent fill, at least 3:1 against the track.**
96
+ `--ds-segmented-selected-bg-color` now defaults to `--segmented-selected` instead of
97
+ `--surface-default`, and `--ds-segmented-selected-label-color` to `--segmented-selected-on`
98
+ instead of `--text-primary`: light 4.98:1 against the track, dark 7.45:1. The track and its
99
+ segments draw no border. A `joined` row has no track and keeps the borders it draws through
100
+ `--ds-segmented-segment-border`; its selected segment takes the same fill. To keep the white chip,
101
+ set `--ds-segmented-selected-bg-color: var(--surface-default)` and
102
+ `--ds-segmented-selected-label-color: var(--text-primary)` on `ds-segmented`.
103
+
104
+ ### Fixed
105
+
106
+ - **`ds-banner` wraps a long unbroken word.** A file path or a URL with no spaces ran past the
107
+ banner's edge and under its action buttons; the title and the message now break inside such a word
108
+ at the banner's width, and the actions and the dismiss button keep their places. A compact
109
+ banner's title stays one line with an ellipsis. Remove an `overflow-wrap` workaround on the
110
+ projected text if you added one; nothing else to change.
111
+ - **The `ds-textarea` resize handle sits in the corner.** It touched the bottom edge but stood 12px
112
+ in from the right edge (8px at `size="sm"`), because the side padding sat on the frame rather than
113
+ on the text. The padding now sits on the text, so the handle and a scrollbar reach the frame's
114
+ edges on both sides, as on a native textarea; the text, the placeholder and the pending or changed
115
+ mark keep their places. Nothing to change in your code.
116
+
3
117
  ## 1.1.1 — 2026-11-08
4
118
 
5
119
  ### Added
@@ -5,7 +5,8 @@ Group: Display & feedback
5
5
 
6
6
  Inputs: `variant: 'none' | 'loading' | 'error' | 'locked' = 'none'`, `icon: IconName | null = null` (defaults derive from variant — `warn` for error, `lock` for locked, `package` otherwise), `title: string = ''`, `body: string = ''`
7
7
  Content slot: `[actions]` — CTA buttons / links.
8
+ - `appearance="plain"` drops the icon tile: a 32px icon in `--text-tertiary` (a status colour under `error` and `success`), a semibold `--font-size-l` title and the body in `--text-tertiary`. Use it for an empty section among others on a page; the default `'tile'` is for an empty page or region.
8
9
 
9
10
  <!-- inputs:ds-empty-state -->
10
- All inputs: `variant: 'none' | 'loading' | 'error' | 'locked' | 'success' = 'none'`, `icon: IconName | null = null`, `title: string = ''`, `titleOverflow: 'wrap' | 'clip' = 'wrap'`, `body: string = ''`
11
+ All inputs: `variant: 'none' | 'loading' | 'error' | 'locked' | 'success' = 'none'`, `icon: IconName | null = null`, `title: string = ''`, `titleOverflow: 'wrap' | 'clip' = 'wrap'`, `body: string = ''`, `appearance: 'tile' | 'plain' = 'tile'`
11
12
  <!-- /inputs -->
@@ -4,7 +4,9 @@
4
4
  Group: Display & feedback
5
5
 
6
6
  Nested rows with one tab stop and arrow-key navigation. `(nodeSelected)` emits the node selected; `(nodeHover)` emits the node under the pointer or newly focused, `null` when the pointer leaves the tree. `<ng-template dsTreeTrailing let-node>` draws at the end of every row (a badge, a count, a small icon button); a click inside it neither selects nor toggles the row, and its controls are tab stops on the focused row only. `<ng-template dsTreeLabel let-node>` replaces the row's label (context `node`, `level`, `selected`, `disabled`): the row grows to its height and it takes the width up to the trailing content, so its lines can cut with an ellipsis; its text is the row's accessible name, so a template that draws no text needs a visually hidden name. `selection="multiple"` binds `[(selectedIds)]`: Shift-click, Ctrl-click, Shift+Space or Ctrl+Space adds or removes a row, a plain click or Enter selects it alone, and the host carries `aria-multiselectable`.
7
+ `toggleOn` says what expands and collapses a parent: `'row'` (default), where a click, Enter or Space selects the row and toggles it; `'caret'`, where the row only selects and the chevron is a button of its own that toggles (named by the `DsIntl` keys `tree.expand` / `tree.collapse`, `` `Expand ${label}` `` / `` `Collapse ${label}` ``, and outside the tab order); `'doubleClick'`, where a click selects and a double click toggles. ArrowRight and ArrowLeft expand and collapse in every mode, and a modified click in multiple selection only adds or removes the row.
8
+ Expanding and collapsing animate: the revealed rows slide open and shut and the chevron turns, on `--duration-base` / `--ease-standard`; the first render does not animate, nothing moves under `prefers-reduced-motion: reduce`, and `[animate]="false"` toggles instantly.
7
9
 
8
10
  <!-- inputs:ds-tree -->
9
- All inputs: `nodes: readonly TreeNode[] = []`, `expandedIds: Set<string>`, `selection: 'single' | 'multiple' = 'single'`, `selectedId: string | null = null`, `selectedIds: string[] = []`
11
+ All inputs: `nodes: readonly TreeNode[] = []`, `expandedIds: Set<string>`, `selection: 'single' | 'multiple' = 'single'`, `selectedId: string | null = null`, `selectedIds: string[] = []`, `toggleOn: 'row' | 'caret' | 'doubleClick' = 'row'`, `animate: boolean = true`
10
12
  <!-- /inputs -->
@@ -4,13 +4,13 @@
4
4
  Group: Form & input
5
5
 
6
6
  Message box for a chat or an instruction: chips above an auto-growing text area, a bottom bar with actions on the left and the send button on the right. Use it instead of a `ds-textarea` beside icon buttons, or a `ds-search` standing in for a message box.
7
- Slots: `[attachments]` on the page above the frame (the app's own card for a picked element and its snapshot; hidden while empty), `[chips]` above the text inside the frame (project `ds-tag`s for attachments and picked elements; hidden while empty), `[actions]` on the left of the bar (an attach `ds-icon-button`), `[send]` replaces the default send button (render your own states, e.g. Queue / Stop while `busy`; call `submit()` or read `canSubmit`).
7
+ Slots: `[attachments]` on the page above the frame (the app's own card for a picked element and its snapshot; hidden while empty), `[chips]` above the text inside the frame (project `ds-tag`s for attachments and picked elements; hidden while empty), `[actions]` on the left of the bar (an attach `ds-icon-button`), `[send]` replaces the default send button (call `submit()` or read `canSubmit`).
8
8
  Keyboard: Enter emits `(submitted): string` with the trimmed text; Shift+Enter breaks the line; an Enter that commits an IME composition never submits; blank text, `busy` and `disabled` never submit. Enter on blank text inserts nothing.
9
- Send button: a 32px `ds-button` with an arrow, named by `DS_INTL.chatInput.send`, disabled while the text is blank. `busy` puts it in `loading` (spinner, `aria-busy`, press refused, focus kept). `layout: ChatInputLayout = 'status-bar'` places the `busyLabel` step: `'status-bar'` beside the fixed square button, `'status-above'` on a reserved line above the box, `'split'` attach outside left and send outside right with the step above, `'send-outside'` a round 40px send outside right, `'toolbar'` attach, step and send in a row under the box.
9
+ Send button: a 32px `ds-button` with an arrow, named by `DS_INTL.chatInput.send`, disabled while the text is blank. `busy` puts it in `loading` (spinner, `aria-busy`, press refused, focus kept); with `stoppable` it is Stop instead (a square in a turning ring, `(stopRequested)`, `DS_INTL.chatInput.stop`). `busyAction: ChatInputBusyAction = 'stop'`; `'queue'`, once text is typed while `busy`, shows three buttons, left to right: Redirect (a `send` icon button, `(redirected): string`, `DS_INTL.chatInput.redirect`), Stop (a `stop` icon button, with `stoppable`) and Queue as the main button (`list-plus`, `(queued): string`, `DS_INTL.chatInput.queue`); Enter queues, and each busy button names its action in a tooltip; with the text cleared it is Stop again. `layout: ChatInputLayout = 'status-bar'` places the `busyLabel` step: `'status-bar'` beside the fixed square button, `'status-above'` on a reserved line above the box, `'split'` attach outside left and send outside right with the step above, `'send-outside'` a round 40px send outside right, `'toolbar'` attach, step and send in a row under the box.
10
10
  Output: `(filesPasted): File[]` — the image files of a paste; the paste inserts no text when it carries images. The value is NOT cleared on submit: set `value` to `''` once the message is accepted.
11
11
  Methods: `submit()`, `focus(options?)`; `canSubmit` signal. Text area name: `ariaLabel`, else `DS_INTL.chatInput.label`.
12
12
  Tokens: `--ds-chat-input-bg-color`, `--ds-chat-input-radius`, `--ds-chat-input-padding`; border, hover and focus follow the `--ds-field-*` set.
13
13
 
14
14
  <!-- inputs:ds-chat-input -->
15
- All inputs: `value: string = ''`, `placeholder: string = ''`, `ariaLabel: string | null = null`, `minRows: number = 1`, `maxRows: number = 8`, `disabled: boolean = false`, `busy: boolean = false`, `stoppable: boolean = false`, `busyLabel: string = ''`, `layout: ChatInputLayout = 'status-bar'`
15
+ All inputs: `value: string = ''`, `placeholder: string = ''`, `ariaLabel: string | null = null`, `minRows: number = 1`, `maxRows: number = 8`, `disabled: boolean = false`, `busy: boolean = false`, `stoppable: boolean = false`, `busyAction: 'stop' | 'queue' = 'stop'`, `busyLabel: string = ''`, `layout: ChatInputLayout = 'status-bar'`
16
16
  <!-- /inputs -->
@@ -10,5 +10,5 @@ Look: at rest a three-dot grip in the gap, no line; hover and drag swap it for a
10
10
  Tokens: `--ds-splitter-gap`, `--ds-splitter-line-color`, `--ds-splitter-drag-color`, `--ds-splitter-grip-color`, `--ds-splitter-overdrag-line-scale` (a number: how many times the line widens at the full pull).
11
11
 
12
12
  <!-- inputs:ds-splitter -->
13
- All inputs: `orientation: 'horizontal' | 'vertical' = 'horizontal'`, `pane: 'start' | 'end' = 'start'`, `size: number | null = null`, `defaultSize: number = 320`, `min: number = 160`, `max: number = 640`, `persistKey: string = ''`, `ariaLabel: string | null = null`, `overdrag: 'elastic' | 'none' = 'elastic'`
13
+ All inputs: `orientation: 'horizontal' | 'vertical' = 'horizontal'`, `pane: 'start' | 'end' = 'start'`, `size: number | null = null`, `defaultSize: number = 320`, `min: number = 160`, `max: number = 640`, `persistKey: string = ''`, `ariaLabel: string | null = null`, `overdrag: 'elastic' | 'none' = 'elastic'`, `dragFog: boolean = false`
14
14
  <!-- /inputs -->
package/components.md CHANGED
@@ -243,15 +243,15 @@ All inputs: `hint: string = ''`, `error: string = ''`, `warning: string = ''`, `
243
243
 
244
244
  #### `<ds-chat-input>` — `ChatInputComponent`
245
245
  Message box for a chat or an instruction: chips above an auto-growing text area, a bottom bar with actions on the left and the send button on the right. Use it instead of a `ds-textarea` beside icon buttons, or a `ds-search` standing in for a message box.
246
- Slots: `[attachments]` on the page above the frame (the app's own card for a picked element and its snapshot; hidden while empty), `[chips]` above the text inside the frame (project `ds-tag`s for attachments and picked elements; hidden while empty), `[actions]` on the left of the bar (an attach `ds-icon-button`), `[send]` replaces the default send button (render your own states, e.g. Queue / Stop while `busy`; call `submit()` or read `canSubmit`).
246
+ Slots: `[attachments]` on the page above the frame (the app's own card for a picked element and its snapshot; hidden while empty), `[chips]` above the text inside the frame (project `ds-tag`s for attachments and picked elements; hidden while empty), `[actions]` on the left of the bar (an attach `ds-icon-button`), `[send]` replaces the default send button (call `submit()` or read `canSubmit`).
247
247
  Keyboard: Enter emits `(submitted): string` with the trimmed text; Shift+Enter breaks the line; an Enter that commits an IME composition never submits; blank text, `busy` and `disabled` never submit. Enter on blank text inserts nothing.
248
- Send button: a 32px `ds-button` with an arrow, named by `DS_INTL.chatInput.send`, disabled while the text is blank. `busy` puts it in `loading` (spinner, `aria-busy`, press refused, focus kept). `layout: ChatInputLayout = 'status-bar'` places the `busyLabel` step: `'status-bar'` beside the fixed square button, `'status-above'` on a reserved line above the box, `'split'` attach outside left and send outside right with the step above, `'send-outside'` a round 40px send outside right, `'toolbar'` attach, step and send in a row under the box.
248
+ Send button: a 32px `ds-button` with an arrow, named by `DS_INTL.chatInput.send`, disabled while the text is blank. `busy` puts it in `loading` (spinner, `aria-busy`, press refused, focus kept); with `stoppable` it is Stop instead (a square in a turning ring, `(stopRequested)`, `DS_INTL.chatInput.stop`). `busyAction: ChatInputBusyAction = 'stop'`; `'queue'`, once text is typed while `busy`, shows three buttons, left to right: Redirect (a `send` icon button, `(redirected): string`, `DS_INTL.chatInput.redirect`), Stop (a `stop` icon button, with `stoppable`) and Queue as the main button (`list-plus`, `(queued): string`, `DS_INTL.chatInput.queue`); Enter queues, and each busy button names its action in a tooltip; with the text cleared it is Stop again. `layout: ChatInputLayout = 'status-bar'` places the `busyLabel` step: `'status-bar'` beside the fixed square button, `'status-above'` on a reserved line above the box, `'split'` attach outside left and send outside right with the step above, `'send-outside'` a round 40px send outside right, `'toolbar'` attach, step and send in a row under the box.
249
249
  Output: `(filesPasted): File[]` — the image files of a paste; the paste inserts no text when it carries images. The value is NOT cleared on submit: set `value` to `''` once the message is accepted.
250
250
  Methods: `submit()`, `focus(options?)`; `canSubmit` signal. Text area name: `ariaLabel`, else `DS_INTL.chatInput.label`.
251
251
  Tokens: `--ds-chat-input-bg-color`, `--ds-chat-input-radius`, `--ds-chat-input-padding`; border, hover and focus follow the `--ds-field-*` set.
252
252
 
253
253
  <!-- inputs:ds-chat-input -->
254
- All inputs: `value: string = ''`, `placeholder: string = ''`, `ariaLabel: string | null = null`, `minRows: number = 1`, `maxRows: number = 8`, `disabled: boolean = false`, `busy: boolean = false`, `stoppable: boolean = false`, `busyLabel: string = ''`, `layout: ChatInputLayout = 'status-bar'`
254
+ All inputs: `value: string = ''`, `placeholder: string = ''`, `ariaLabel: string | null = null`, `minRows: number = 1`, `maxRows: number = 8`, `disabled: boolean = false`, `busy: boolean = false`, `stoppable: boolean = false`, `busyAction: 'stop' | 'queue' = 'stop'`, `busyLabel: string = ''`, `layout: ChatInputLayout = 'status-bar'`
255
255
  <!-- /inputs -->
256
256
 
257
257
  #### `<ds-number-stepper>` — `NumberStepperComponent`
@@ -532,9 +532,10 @@ All inputs: `label: required string`, `value: string | number | null = ''`, `del
532
532
  #### `<ds-empty-state>` — `EmptyStateComponent`
533
533
  Inputs: `variant: 'none' | 'loading' | 'error' | 'locked' = 'none'`, `icon: IconName | null = null` (defaults derive from variant — `warn` for error, `lock` for locked, `package` otherwise), `title: string = ''`, `body: string = ''`
534
534
  Content slot: `[actions]` — CTA buttons / links.
535
+ - `appearance="plain"` drops the icon tile: a 32px icon in `--text-tertiary` (a status colour under `error` and `success`), a semibold `--font-size-l` title and the body in `--text-tertiary`. Use it for an empty section among others on a page; the default `'tile'` is for an empty page or region.
535
536
 
536
537
  <!-- inputs:ds-empty-state -->
537
- All inputs: `variant: 'none' | 'loading' | 'error' | 'locked' | 'success' = 'none'`, `icon: IconName | null = null`, `title: string = ''`, `titleOverflow: 'wrap' | 'clip' = 'wrap'`, `body: string = ''`
538
+ All inputs: `variant: 'none' | 'loading' | 'error' | 'locked' | 'success' = 'none'`, `icon: IconName | null = null`, `title: string = ''`, `titleOverflow: 'wrap' | 'clip' = 'wrap'`, `body: string = ''`, `appearance: 'tile' | 'plain' = 'tile'`
538
539
  <!-- /inputs -->
539
540
 
540
541
  #### `<ds-banner>` — `BannerComponent`
@@ -664,9 +665,11 @@ All inputs: `maxVisible: number`, `showQueueCount: boolean = true`
664
665
  #### `<ds-tree>` — `TreeComponent`
665
666
 
666
667
  Nested rows with one tab stop and arrow-key navigation. `(nodeSelected)` emits the node selected; `(nodeHover)` emits the node under the pointer or newly focused, `null` when the pointer leaves the tree. `<ng-template dsTreeTrailing let-node>` draws at the end of every row (a badge, a count, a small icon button); a click inside it neither selects nor toggles the row, and its controls are tab stops on the focused row only. `<ng-template dsTreeLabel let-node>` replaces the row's label (context `node`, `level`, `selected`, `disabled`): the row grows to its height and it takes the width up to the trailing content, so its lines can cut with an ellipsis; its text is the row's accessible name, so a template that draws no text needs a visually hidden name. `selection="multiple"` binds `[(selectedIds)]`: Shift-click, Ctrl-click, Shift+Space or Ctrl+Space adds or removes a row, a plain click or Enter selects it alone, and the host carries `aria-multiselectable`.
668
+ `toggleOn` says what expands and collapses a parent: `'row'` (default), where a click, Enter or Space selects the row and toggles it; `'caret'`, where the row only selects and the chevron is a button of its own that toggles (named by the `DsIntl` keys `tree.expand` / `tree.collapse`, `` `Expand ${label}` `` / `` `Collapse ${label}` ``, and outside the tab order); `'doubleClick'`, where a click selects and a double click toggles. ArrowRight and ArrowLeft expand and collapse in every mode, and a modified click in multiple selection only adds or removes the row.
669
+ Expanding and collapsing animate: the revealed rows slide open and shut and the chevron turns, on `--duration-base` / `--ease-standard`; the first render does not animate, nothing moves under `prefers-reduced-motion: reduce`, and `[animate]="false"` toggles instantly.
667
670
 
668
671
  <!-- inputs:ds-tree -->
669
- All inputs: `nodes: readonly TreeNode[] = []`, `expandedIds: Set<string>`, `selection: 'single' | 'multiple' = 'single'`, `selectedId: string | null = null`, `selectedIds: string[] = []`
672
+ All inputs: `nodes: readonly TreeNode[] = []`, `expandedIds: Set<string>`, `selection: 'single' | 'multiple' = 'single'`, `selectedId: string | null = null`, `selectedIds: string[] = []`, `toggleOn: 'row' | 'caret' | 'doubleClick' = 'row'`, `animate: boolean = true`
670
673
  <!-- /inputs -->
671
674
 
672
675
  #### `<ds-description-list>` — `DescriptionListComponent`
@@ -829,7 +832,7 @@ Look: at rest a three-dot grip in the gap, no line; hover and drag swap it for a
829
832
  Tokens: `--ds-splitter-gap`, `--ds-splitter-line-color`, `--ds-splitter-drag-color`, `--ds-splitter-grip-color`, `--ds-splitter-overdrag-line-scale` (a number: how many times the line widens at the full pull).
830
833
 
831
834
  <!-- inputs:ds-splitter -->
832
- All inputs: `orientation: 'horizontal' | 'vertical' = 'horizontal'`, `pane: 'start' | 'end' = 'start'`, `size: number | null = null`, `defaultSize: number = 320`, `min: number = 160`, `max: number = 640`, `persistKey: string = ''`, `ariaLabel: string | null = null`, `overdrag: 'elastic' | 'none' = 'elastic'`
835
+ All inputs: `orientation: 'horizontal' | 'vertical' = 'horizontal'`, `pane: 'start' | 'end' = 'start'`, `size: number | null = null`, `defaultSize: number = 320`, `min: number = 160`, `max: number = 640`, `persistKey: string = ''`, `ariaLabel: string | null = null`, `overdrag: 'elastic' | 'none' = 'elastic'`, `dragFog: boolean = false`
833
836
  <!-- /inputs -->
834
837
 
835
838
  #### `<ds-sidenav-footer>` — `SidenavFooterComponent`
@@ -534,7 +534,7 @@ class AutocompleteComponent extends DsControlValueAccessor {
534
534
  useExisting: forwardRef(() => AutocompleteComponent),
535
535
  multi: true,
536
536
  },
537
- ], queries: [{ propertyName: "optionTemplate", first: true, predicate: DsOptionTemplateDirective, descendants: true, read: TemplateRef, isSignal: true }, { propertyName: "chipTemplate", first: true, predicate: DsChipTemplateDirective, 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 }, { propertyName: "createTemplate", first: true, predicate: DsCreateTemplateDirective, descendants: true, read: TemplateRef, isSignal: true }], viewQueries: [{ propertyName: "trigger", first: true, predicate: ["trigger"], descendants: true, isSignal: true }, { propertyName: "filterInput", first: true, predicate: ["filter"], descendants: true, isSignal: true }, { propertyName: "panelTpl", first: true, predicate: ["panel"], descendants: true, isSignal: true }, { propertyName: "chipRow", first: true, predicate: ["chipRow"], descendants: true, isSignal: true }], usesInheritance: true, 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<!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events, @angular-eslint/template/interactive-supports-focus -- click opens/focuses; keyboard runs through the inner <input role=\"combobox\"> (type/arrows/Enter/Esc) -->\n<div\n #trigger\n class=\"autocomplete-trigger\"\n [class]=\"sizeResolved()\"\n [class.disabled]=\"isDisabled()\"\n (click)=\"onTriggerClick()\">\n <span class=\"addon-slot prefix\">\n <ng-content select=\"[dsAutocompletePrefix]\"></ng-content>\n </span>\n\n @if (pickerTrigger(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n $implicit: triggerSelection(),\n selected: triggerSelection(),\n count: multiple() ? selectedTags().length : hasSingleValue() ? 1 : 0,\n open: isOpen(),\n disabled: isDisabled(),\n }\" />\n } @else if (multiple()) {\n <span\n #chipRow\n class=\"chip-row\"\n [class.fit]=\"fitsChipsToWidth()\">\n @for (selectedOption of visibleTags(); track selectedOption.value) {\n <ds-tag\n data-chip\n [closable]=\"true\"\n [closeLabel]=\"intl().picker.removeChip(selectedOption.label)\"\n (closed)=\"remove(selectedOption.value)\">\n @if (chipTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n $implicit: selectedOption,\n option: selectedOption,\n }\" />\n } @else {\n {{ selectedOption.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 } @else if (displayLabel()) {\n <span\n class=\"autocomplete-value\"\n [attr.title]=\"valueOverflow() === 'ellipsis' ? displayLabel() : null\">\n {{ displayLabel() }}\n </span>\n }\n\n <input\n #filter\n type=\"text\"\n class=\"autocomplete-input\"\n role=\"combobox\"\n aria-autocomplete=\"list\"\n [class.collapsed]=\"displayLabel() && !isOpen()\"\n [attr.aria-expanded]=\"isOpen()\"\n [attr.aria-controls]=\"listboxId\"\n [attr.aria-activedescendant]=\"activeDescendant()\"\n [attr.aria-busy]=\"loading() ? 'true' : null\"\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-invalid]=\"invalidResolved() ? 'true' : null\"\n [attr.aria-describedby]=\"describedByIds(hintId(), groupMessage())\"\n [disabled]=\"isDisabled()\"\n [value]=\"query()\"\n [placeholder]=\"placeholderText()\"\n (input)=\"onFilter($event)\"\n (focus)=\"openPanel()\"\n (blur)=\"markTouched()\"\n (keydown)=\"onKeydown($event)\" />\n\n <span class=\"addon-slot suffix\">\n <ng-content select=\"[dsAutocompleteSuffix]\"></ng-content>\n </span>\n\n @if (\n clearable() &&\n hasSingleValue() &&\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-field-status\n [pending]=\"pendingShown()\"\n [changed]=\"changedShown()\" />\n\n @if (showChevron()) {\n <ds-icon\n name=\"chevronDown\"\n class=\"autocomplete-chevron\"\n aria-hidden=\"true\"\n [size]=\"16\"\n (click)=\"togglePanel($event)\" />\n }\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 [changed]=\"changedShown()\" />\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: query(),\n }\" />\n </div>\n }\n\n <ds-loading-overlay\n class=\"list-overlay\"\n [loading]=\"listInert()\"\n [blur]=\"true\">\n <ul\n class=\"dropdown-list\"\n role=\"listbox\"\n [attr.aria-busy]=\"loading() ? 'true' : null\"\n [id]=\"listboxId\"\n [attr.aria-multiselectable]=\"multiple() ? 'true' : null\">\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 @for (option of item.options; track option.value) {\n <!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events, @angular-eslint/template/interactive-supports-focus -- listbox option; activated via the combobox input + aria-activedescendant, options aren't individually focusable -->\n <div\n role=\"option\"\n dsTooltipWhenClipped=\".option-label\"\n [class]=\"optionClass(option)\"\n [id]=\"optionId(flatIndexOf(option))\"\n [class.is-active]=\"flatIndexOf(option) === activeIndex()\"\n [attr.aria-selected]=\"isSelected(option)\"\n [attr.aria-disabled]=\"option.disabled ? 'true' : null\"\n (click)=\"onPick(option)\"\n (mouseenter)=\"\n cursorFromKeyboard.set(false);\n option.disabled || activeIndex.set(flatIndexOf(option))\n \">\n @if (multiple()) {\n <span\n class=\"check-box\"\n [class.checked]=\"isSelected(option)\">\n <span class=\"tick\"></span>\n </span>\n }\n\n @if (option.icon) {\n <ds-icon\n class=\"option-icon\"\n [name]=\"option.icon\"\n [size]=\"16\" />\n }\n\n <span 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\n @if (!multiple()) {\n <span\n class=\"option-check\"\n [class.is-shown]=\"isSelected(option)\">\n </span>\n }\n </div>\n }\n </li>\n } @else {\n @let option = item;\n\n <!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events, @angular-eslint/template/interactive-supports-focus -- listbox option; activated via the combobox input + aria-activedescendant, options aren't individually focusable -->\n <li\n role=\"option\"\n dsTooltipWhenClipped=\".option-label\"\n [class]=\"optionClass(option)\"\n [id]=\"optionId(flatIndexOf(option))\"\n [class.is-active]=\"flatIndexOf(option) === activeIndex()\"\n [attr.aria-selected]=\"isSelected(option)\"\n [attr.aria-disabled]=\"option.disabled ? 'true' : null\"\n (click)=\"onPick(option)\"\n (mouseenter)=\"\n cursorFromKeyboard.set(false);\n option.disabled || activeIndex.set(flatIndexOf(option))\n \">\n @if (multiple()) {\n <span\n class=\"check-box\"\n [class.checked]=\"isSelected(option)\">\n <span class=\"tick\"></span>\n </span>\n }\n\n @if (option.icon) {\n <ds-icon\n class=\"option-icon\"\n [name]=\"option.icon\"\n [size]=\"16\" />\n }\n\n <span 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\n @if (!multiple()) {\n <span\n class=\"option-check\"\n [class.is-shown]=\"isSelected(option)\">\n </span>\n }\n </li>\n }\n }\n\n @if (loading() && filteredOptions().length === 0) {\n @for (width of skeletonOptionWidths; track $index) {\n <li\n class=\"option is-skeleton\"\n role=\"presentation\">\n <ds-skeleton\n height=\"1lh\"\n [width]=\"width\" />\n </li>\n }\n } @else if (filteredOptions().length === 0 && !showCreateRow()) {\n <li\n class=\"empty\"\n role=\"presentation\">\n @if (emptyTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n $implicit: query(),\n query: query(),\n }\" />\n } @else {\n {{ intl().picker.noMatches }}\n }\n </li>\n }\n\n @if (showCreateRow()) {\n <!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events, @angular-eslint/template/interactive-supports-focus -- listbox option; activated via the combobox input + aria-activedescendant, options aren't individually focusable -->\n <li\n class=\"option create-row\"\n role=\"option\"\n dsTooltipWhenClipped=\".option-label\"\n [id]=\"optionId(visibleOptions().length)\"\n [class.is-active]=\"activeIndex() === visibleOptions().length\"\n [attr.aria-selected]=\"false\"\n (click)=\"onCreateNew()\"\n (mouseenter)=\"\n cursorFromKeyboard.set(false);\n activeIndex.set(visibleOptions().length)\n \">\n <ds-icon\n name=\"plus\"\n class=\"create-icon\"\n [size]=\"16\" />\n\n <span class=\"option-label\">\n @if (createTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n $implicit: query().trim(),\n query: query().trim(),\n }\" />\n } @else {\n {{ intl().picker.create(query().trim()) }}\n }\n </span>\n </li>\n }\n </ul>\n </ds-loading-overlay>\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: query(),\n }\" />\n </div>\n }\n </div>\n</ng-template>\n", styles: [":where(:host){box-sizing:border-box;interpolate-size:allow-keywords}:where(*){box-sizing:border-box}:where(button,input,select,textarea){font-family:inherit}:where(h1,h2,h3,h4,h5,h6){margin:0}:where(:host(:focus-visible),: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);border-radius:var(--focus-ring-radius)}@media(forced-colors:active){:where(:host(:focus-visible),: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-field));--_field-border-color-hover: var(--ds-field-border-color-hover, var(--border-field-hover));--_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));--ds-dropdown-panel-bg-color: var(--ds-autocomplete-panel-bg-color, initial);--ds-dropdown-panel-radius: var(--ds-autocomplete-panel-radius, initial);--ds-dropdown-panel-max-height: var(--ds-autocomplete-panel-max-height, var(--picker-maxh));--_autocomplete-focus-shadow: var(--ds-autocomplete-focus-shadow, var(--ds-field-focus-shadow));--_autocomplete-max-width: var(--ds-autocomplete-max-width, none);--_autocomplete-input-min-width: var(--ds-autocomplete-input-min-width, 40px);--_autocomplete-input-font-size: var(--ds-autocomplete-input-font-size, var(--_field-font-size));--_autocomplete-bg-color: var(--ds-autocomplete-bg-color, var(--surface-default));--_autocomplete-border-color: var(--ds-autocomplete-border-color, var(--_field-border-color));--_autocomplete-radius: var(--ds-autocomplete-radius, var(--ds-radius-control));--_autocomplete-border-color-focus: var(--ds-autocomplete-border-color-focus, var(--_field-border-color-focus));--_autocomplete-border-color-hover: var(--ds-autocomplete-border-color-hover, var(--_field-border-color-hover));--_autocomplete-text-color: var(--ds-autocomplete-text-color, var(--_field-text-color));--_autocomplete-placeholder-color: var(--ds-autocomplete-placeholder-color, var(--_field-placeholder-color));display:flex;flex-direction:column;gap:var(--field-label-gap);width:100%;max-width:var(--_autocomplete-max-width);position:relative}:host(.content-width){--_autocomplete-max-width: var(--ds-autocomplete-max-width, 100%);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)}.autocomplete-trigger{display:flex;align-items:center;gap:var(--space-2);width:100%;--_field-height: var(--ds-field-height, var(--field-h-md));min-height:var(--_field-height);padding:var(--space-1) var(--space-2);background:var(--_autocomplete-bg-color);border:var(--border-width-default) solid var(--_autocomplete-border-color);border-radius:var(--_autocomplete-radius);cursor:text;text-align:left;flex-wrap:wrap}.autocomplete-trigger:has(>.chip-row.fit){flex-wrap:nowrap}:host(:not(.value-wraps)) .autocomplete-trigger{flex-wrap:nowrap}.autocomplete-trigger{transition:border-color var(--duration-fast) var(--ease-standard)}.autocomplete-trigger .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}.autocomplete-trigger .clear-btn:hover{color:var(--text-primary);background:var(--surface-secondary)}.autocomplete-trigger .clear-btn:active:not(:disabled,[disabled],.is-disabled,.disabled,[aria-disabled=true]){filter:brightness(var(--ds-press-brightness, .9));transform:scale(var(--ds-press-scale, .97))}.autocomplete-trigger .clear-btn{position:relative}.autocomplete-trigger .clear-btn:before{content:\"\";position:absolute;top:50%;left:50%;width:max(100%,var(--hit-xs));height:max(100%,var(--hit-xs));translate:-50% -50%;border-radius:inherit}.autocomplete-trigger .clear-btn:focus-visible{outline-style:none}.autocomplete-trigger .clear-btn:focus-visible:before{outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:calc(var(--focus-ring-offset) - 2 * var(--focus-ring-width));animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}.autocomplete-trigger .addon-slot{display:inline-flex;align-items:center;align-self:stretch;color:var(--text-tertiary);flex-shrink:0}.autocomplete-trigger .addon-slot:empty{display:none}.autocomplete-trigger:hover:not(.disabled){border-color:var(--_autocomplete-border-color-hover)}@media not (forced-colors:active){.autocomplete-trigger .autocomplete-input:where(:focus-visible){outline:none}}.autocomplete-trigger:focus-within:not(.disabled){border-color:var(--_autocomplete-border-color-focus);box-shadow:var(--_autocomplete-focus-shadow)}@media not (forced-colors:active){.autocomplete-trigger:focus-within:not(.disabled){outline:none}}.autocomplete-trigger.disabled{background:var(--surface-disabled);border-color:var(--border-disabled);color:var(--text-disabled);cursor:not-allowed}.autocomplete-trigger.disabled .autocomplete-input{cursor:not-allowed;color:var(--text-disabled)}.autocomplete-trigger.disabled .autocomplete-value,.autocomplete-trigger.disabled .autocomplete-chevron{color:var(--text-disabled)}.autocomplete-trigger.sm{--_field-height: var(--ds-field-height, var(--field-h-sm));min-height:var(--_field-height)}.autocomplete-trigger.lg{--_field-height: var(--ds-field-height, var(--field-h-lg));min-height:var(--_field-height)}.chip-row{display:contents}.chip-row.fit{display:flex;flex-wrap:nowrap;align-items:center;min-width:0;gap:inherit;overflow:clip visible}.chip-row.fit>*{flex:0 1 auto;min-width:0;white-space:nowrap}.overflow{color:var(--text-secondary);font-weight:var(--font-weight-semibold);font-size:var(--font-size-xs)}.autocomplete-value{font:var(--font-weight-medium) var(--font-size-s)/var(--line-height-flat) var(--font-sans);color:var(--_autocomplete-text-color)}:host(:not(.value-wraps)) .autocomplete-value{min-width:0;overflow:clip visible;text-overflow:ellipsis;white-space:nowrap}.autocomplete-input{flex:1;min-width:var(--_autocomplete-input-min-width)}.autocomplete-input.collapsed{flex:0 0 0;min-width:0;width:0;padding:0}.autocomplete-input{border:0}@media not (forced-colors:active){.autocomplete-input{outline:none}}.autocomplete-input{background:transparent;font:var(--font-weight-regular) var(--_autocomplete-input-font-size)/var(--line-height-flat) var(--font-sans);color:var(--_autocomplete-text-color)}.autocomplete-input::placeholder{color:var(--_autocomplete-placeholder-color)}.autocomplete-chevron{color:var(--icon-default);margin-left:auto}.dropdown-panel .option.multi{padding-left:var(--space-2)}.dropdown-panel .check-box{flex:none;display:inline-flex;align-items:center;justify-content:center;width:var(--check-size);height:var(--check-size);border:var(--check-bw) solid var(--border-strong);border-radius:var(--ds-radius-inner);background-color:var(--surface-default);color:var(--text-on-primary)}.dropdown-panel .check-box.checked{background-color:var(--accent);border-color:var(--accent)}.dropdown-panel .check-box .tick{--_check-mark-enter-duration: var(--ds-check-mark-enter-duration, var(--ds-motion-check-enter-duration));--_check-mark-enter-easing: var(--ds-check-mark-enter-easing, var(--ds-motion-check-enter-easing));--_check-mark-exit-duration: var(--ds-check-mark-exit-duration, var(--ds-motion-check-exit-duration));--_check-mark-exit-easing: var(--ds-check-mark-exit-easing, var(--ds-motion-check-exit-easing));width:var(--check-tick-size);height:var(--check-tick-size);transform:scale(.6);opacity:0;transform-origin:center;transition:transform var(--_check-mark-exit-duration) var(--_check-mark-exit-easing),opacity var(--_check-mark-exit-duration) var(--_check-mark-exit-easing);background-color:currentcolor}@media(forced-colors:active){.dropdown-panel .check-box .tick{background-color:CanvasText}}.dropdown-panel .check-box .tick{-webkit-mask:url(\"data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none'><path d='M2 6.5l2.5 2.5L10 3.5' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>\") center/contain no-repeat;mask:url(\"data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none'><path d='M2 6.5l2.5 2.5L10 3.5' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>\") center/contain no-repeat}.dropdown-panel .check-box.checked .tick{transform:scale(1);opacity:1;transition:transform var(--_check-mark-enter-duration) var(--_check-mark-enter-easing),opacity var(--_check-mark-enter-duration) var(--_check-mark-enter-easing)}.dropdown-panel .create-row{color:var(--accent)}.dropdown-panel .create-row .create-icon{flex:0 0 auto}:host(.in-group){width:auto;display:flex}:host(.in-group) .label,:host(.in-group) ds-field-message{display:none}:host(.in-group) .autocomplete-trigger{border:0;border-radius:0;background:transparent;flex:1;height:auto}:host(.in-group) .autocomplete-trigger:hover,:host(.in-group) .autocomplete-trigger:focus,:host(.in-group) .autocomplete-trigger:focus-visible,:host(.in-group) .autocomplete-trigger:focus-within{border:0;box-shadow:none}@media not (forced-colors:active){:host(.in-group) .autocomplete-trigger:hover,:host(.in-group) .autocomplete-trigger:focus,:host(.in-group) .autocomplete-trigger:focus-visible,:host(.in-group) .autocomplete-trigger:focus-within{outline:none}}:host([data-field-state=error]:not(.in-group)) .autocomplete-trigger:not(.disabled):not(:disabled){border-color:var(--error);background-color:var(--error-subtitle)}:host([data-field-state=error]:not(.in-group)) .autocomplete-trigger:not(.disabled):not(:disabled):focus-within,:host([data-field-state=error]:not(.in-group)) .autocomplete-trigger:not(.disabled):not(:disabled):focus-visible{box-shadow:var(--ds-field-focus-shadow-error)}:host([data-field-state=warning]:not(.in-group)) .autocomplete-trigger:not(.disabled):not(:disabled){border-color:var(--warning-text)}:host([data-field-state=warning]:not(.in-group)) .autocomplete-trigger:not(.disabled):not(:disabled):focus-within,:host([data-field-state=warning]:not(.in-group)) .autocomplete-trigger:not(.disabled):not(:disabled):focus-visible{box-shadow:var(--ds-field-focus-shadow-warning)}:host([data-field-state=success]:not(.in-group)) .autocomplete-trigger:not(.disabled):not(:disabled){border-color:var(--success)}:host([data-field-state=success]:not(.in-group)) .autocomplete-trigger:not(.disabled):not(:disabled):focus-within,:host([data-field-state=success]:not(.in-group)) .autocomplete-trigger:not(.disabled):not(:disabled):focus-visible{box-shadow:var(--ds-field-focus-shadow-success)}\n"], dependencies: [{ kind: "component", type: IconComponent, selector: "ds-icon", inputs: ["name", "size", "stroke", "ariaLabel"] }, { kind: "component", type: LoadingOverlayComponent, selector: "ds-loading-overlay", inputs: ["loading", "label", "blur", "spinnerSize", "insetTop", "inertContent"] }, { kind: "component", type: SkeletonComponent, selector: "ds-skeleton", inputs: ["width", "height", "circle", "inline", "shimmer"] }, { kind: "component", type: TagComponent, selector: "ds-tag", inputs: ["variant", "closable", "interactive", "selected", "closeLabel"], outputs: ["closed", "toggled"] }, { kind: "component", type: FieldMessageComponent, selector: "ds-field-message", inputs: ["text", "state", "messageId", "icon", "reserve", "changed"] }, { kind: "component", type: FieldStatusComponent, selector: "ds-field-status", inputs: ["pending", "changed"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: TooltipDirective, selector: "[dsTooltip], [dsTooltipWhenClipped]", inputs: ["dsTooltip", "dsTooltipConfig", "dsTooltipPlacement", "dsTooltipDelay", "dsTooltipArrow", "dsTooltipWhenClipped", "dsTooltipPinOnClick"] }] });
537
+ ], queries: [{ propertyName: "optionTemplate", first: true, predicate: DsOptionTemplateDirective, descendants: true, read: TemplateRef, isSignal: true }, { propertyName: "chipTemplate", first: true, predicate: DsChipTemplateDirective, 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 }, { propertyName: "createTemplate", first: true, predicate: DsCreateTemplateDirective, descendants: true, read: TemplateRef, isSignal: true }], viewQueries: [{ propertyName: "trigger", first: true, predicate: ["trigger"], descendants: true, isSignal: true }, { propertyName: "filterInput", first: true, predicate: ["filter"], descendants: true, isSignal: true }, { propertyName: "panelTpl", first: true, predicate: ["panel"], descendants: true, isSignal: true }, { propertyName: "chipRow", first: true, predicate: ["chipRow"], descendants: true, isSignal: true }], usesInheritance: true, 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<!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events, @angular-eslint/template/interactive-supports-focus -- click opens/focuses; keyboard runs through the inner <input role=\"combobox\"> (type/arrows/Enter/Esc) -->\n<div\n #trigger\n class=\"autocomplete-trigger\"\n [class]=\"sizeResolved()\"\n [class.disabled]=\"isDisabled()\"\n (click)=\"onTriggerClick()\">\n <span class=\"addon-slot prefix\">\n <ng-content select=\"[dsAutocompletePrefix]\"></ng-content>\n </span>\n\n @if (pickerTrigger(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n $implicit: triggerSelection(),\n selected: triggerSelection(),\n count: multiple() ? selectedTags().length : hasSingleValue() ? 1 : 0,\n open: isOpen(),\n disabled: isDisabled(),\n }\" />\n } @else if (multiple()) {\n <span\n #chipRow\n class=\"chip-row\"\n [class.fit]=\"fitsChipsToWidth()\">\n @for (selectedOption of visibleTags(); track selectedOption.value) {\n <ds-tag\n data-chip\n [closable]=\"true\"\n [closeLabel]=\"intl().picker.removeChip(selectedOption.label)\"\n (closed)=\"remove(selectedOption.value)\">\n @if (chipTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n $implicit: selectedOption,\n option: selectedOption,\n }\" />\n } @else {\n {{ selectedOption.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 } @else if (displayLabel()) {\n <span\n class=\"autocomplete-value\"\n [attr.title]=\"valueOverflow() === 'ellipsis' ? displayLabel() : null\">\n {{ displayLabel() }}\n </span>\n }\n\n <input\n #filter\n type=\"text\"\n class=\"autocomplete-input\"\n role=\"combobox\"\n aria-autocomplete=\"list\"\n [class.collapsed]=\"displayLabel() && !isOpen()\"\n [attr.aria-expanded]=\"isOpen()\"\n [attr.aria-controls]=\"listboxId\"\n [attr.aria-activedescendant]=\"activeDescendant()\"\n [attr.aria-busy]=\"loading() ? 'true' : null\"\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-invalid]=\"invalidResolved() ? 'true' : null\"\n [attr.aria-describedby]=\"describedByIds(hintId(), groupMessage())\"\n [disabled]=\"isDisabled()\"\n [value]=\"query()\"\n [placeholder]=\"placeholderText()\"\n (input)=\"onFilter($event)\"\n (focus)=\"openPanel()\"\n (blur)=\"markTouched()\"\n (keydown)=\"onKeydown($event)\" />\n\n <span class=\"addon-slot suffix\">\n <ng-content select=\"[dsAutocompleteSuffix]\"></ng-content>\n </span>\n\n @if (\n clearable() &&\n hasSingleValue() &&\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-field-status\n [pending]=\"pendingShown()\"\n [changed]=\"changedShown()\" />\n\n @if (showChevron()) {\n <ds-icon\n name=\"chevronDown\"\n class=\"autocomplete-chevron\"\n aria-hidden=\"true\"\n [size]=\"16\"\n (click)=\"togglePanel($event)\" />\n }\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 [changed]=\"changedShown()\" />\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: query(),\n }\" />\n </div>\n }\n\n <ds-loading-overlay\n class=\"list-overlay\"\n [loading]=\"listInert()\"\n [blur]=\"true\">\n <ul\n class=\"dropdown-list\"\n role=\"listbox\"\n [attr.aria-busy]=\"loading() ? 'true' : null\"\n [id]=\"listboxId\"\n [attr.aria-multiselectable]=\"multiple() ? 'true' : null\">\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 @for (option of item.options; track option.value) {\n <!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events, @angular-eslint/template/interactive-supports-focus -- listbox option; activated via the combobox input + aria-activedescendant, options aren't individually focusable -->\n <div\n role=\"option\"\n dsTooltipWhenClipped=\".option-label\"\n [class]=\"optionClass(option)\"\n [id]=\"optionId(flatIndexOf(option))\"\n [class.is-active]=\"flatIndexOf(option) === activeIndex()\"\n [attr.aria-selected]=\"isSelected(option)\"\n [attr.aria-disabled]=\"option.disabled ? 'true' : null\"\n (click)=\"onPick(option)\"\n (mouseenter)=\"\n cursorFromKeyboard.set(false);\n option.disabled || activeIndex.set(flatIndexOf(option))\n \">\n @if (multiple()) {\n <span\n class=\"check-box\"\n [class.checked]=\"isSelected(option)\">\n <span class=\"tick\"></span>\n </span>\n }\n\n @if (option.icon) {\n <ds-icon\n class=\"option-icon\"\n [name]=\"option.icon\"\n [size]=\"16\" />\n }\n\n <span 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\n @if (!multiple()) {\n <span\n class=\"option-check\"\n [class.is-shown]=\"isSelected(option)\">\n </span>\n }\n </div>\n }\n </li>\n } @else {\n @let option = item;\n\n <!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events, @angular-eslint/template/interactive-supports-focus -- listbox option; activated via the combobox input + aria-activedescendant, options aren't individually focusable -->\n <li\n role=\"option\"\n dsTooltipWhenClipped=\".option-label\"\n [class]=\"optionClass(option)\"\n [id]=\"optionId(flatIndexOf(option))\"\n [class.is-active]=\"flatIndexOf(option) === activeIndex()\"\n [attr.aria-selected]=\"isSelected(option)\"\n [attr.aria-disabled]=\"option.disabled ? 'true' : null\"\n (click)=\"onPick(option)\"\n (mouseenter)=\"\n cursorFromKeyboard.set(false);\n option.disabled || activeIndex.set(flatIndexOf(option))\n \">\n @if (multiple()) {\n <span\n class=\"check-box\"\n [class.checked]=\"isSelected(option)\">\n <span class=\"tick\"></span>\n </span>\n }\n\n @if (option.icon) {\n <ds-icon\n class=\"option-icon\"\n [name]=\"option.icon\"\n [size]=\"16\" />\n }\n\n <span 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\n @if (!multiple()) {\n <span\n class=\"option-check\"\n [class.is-shown]=\"isSelected(option)\">\n </span>\n }\n </li>\n }\n }\n\n @if (loading() && filteredOptions().length === 0) {\n @for (width of skeletonOptionWidths; track $index) {\n <li\n class=\"option is-skeleton\"\n role=\"presentation\">\n <ds-skeleton\n height=\"1lh\"\n [width]=\"width\" />\n </li>\n }\n } @else if (filteredOptions().length === 0 && !showCreateRow()) {\n <li\n class=\"empty\"\n role=\"presentation\">\n @if (emptyTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n $implicit: query(),\n query: query(),\n }\" />\n } @else {\n {{ intl().picker.noMatches }}\n }\n </li>\n }\n\n @if (showCreateRow()) {\n <!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events, @angular-eslint/template/interactive-supports-focus -- listbox option; activated via the combobox input + aria-activedescendant, options aren't individually focusable -->\n <li\n class=\"option create-row\"\n role=\"option\"\n dsTooltipWhenClipped=\".option-label\"\n [id]=\"optionId(visibleOptions().length)\"\n [class.is-active]=\"activeIndex() === visibleOptions().length\"\n [attr.aria-selected]=\"false\"\n (click)=\"onCreateNew()\"\n (mouseenter)=\"\n cursorFromKeyboard.set(false);\n activeIndex.set(visibleOptions().length)\n \">\n <ds-icon\n name=\"plus\"\n class=\"create-icon\"\n [size]=\"16\" />\n\n <span class=\"option-label\">\n @if (createTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n $implicit: query().trim(),\n query: query().trim(),\n }\" />\n } @else {\n {{ intl().picker.create(query().trim()) }}\n }\n </span>\n </li>\n }\n </ul>\n </ds-loading-overlay>\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: query(),\n }\" />\n </div>\n }\n </div>\n</ng-template>\n", styles: [":where(:host){box-sizing:border-box;interpolate-size:allow-keywords}:where(*){box-sizing:border-box}:where(button,input,select,textarea){font-family:inherit}:where(h1,h2,h3,h4,h5,h6){margin:0}:where(:host(:focus-visible),: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);border-radius:var(--focus-ring-radius)}@media(forced-colors:active){:where(:host(:focus-visible),: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-field));--_field-border-color-hover: var(--ds-field-border-color-hover, var(--border-field-hover));--_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));--ds-dropdown-panel-bg-color: var(--ds-autocomplete-panel-bg-color, initial);--ds-dropdown-panel-radius: var(--ds-autocomplete-panel-radius, initial);--ds-dropdown-panel-max-height: var(--ds-autocomplete-panel-max-height, var(--picker-maxh));--_autocomplete-focus-shadow: var(--ds-autocomplete-focus-shadow, var(--ds-field-focus-shadow));--_autocomplete-max-width: var(--ds-autocomplete-max-width, none);--_autocomplete-input-min-width: var(--ds-autocomplete-input-min-width, 40px);--_autocomplete-input-font-size: var(--ds-autocomplete-input-font-size, var(--_field-font-size));--_autocomplete-bg-color: var(--ds-autocomplete-bg-color, var(--surface-default));--_autocomplete-border-color: var(--ds-autocomplete-border-color, var(--_field-border-color));--_autocomplete-radius: var(--ds-autocomplete-radius, var(--ds-radius-control));--_autocomplete-border-color-focus: var(--ds-autocomplete-border-color-focus, var(--_field-border-color-focus));--_autocomplete-border-color-hover: var(--ds-autocomplete-border-color-hover, var(--_field-border-color-hover));--_autocomplete-text-color: var(--ds-autocomplete-text-color, var(--_field-text-color));--_autocomplete-placeholder-color: var(--ds-autocomplete-placeholder-color, var(--_field-placeholder-color));display:flex;flex-direction:column;gap:var(--field-label-gap);width:100%;max-width:var(--_autocomplete-max-width);position:relative}:host(.content-width){--_autocomplete-max-width: var(--ds-autocomplete-max-width, 100%);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)}.autocomplete-trigger{display:flex;align-items:center;gap:var(--space-2);width:100%;--_field-height: var(--ds-field-height, var(--field-h-md));min-height:var(--_field-height);padding:var(--space-1) var(--space-2);background:var(--_autocomplete-bg-color);border:var(--border-width-default) solid var(--_autocomplete-border-color);border-radius:var(--_autocomplete-radius);cursor:text;text-align:left;flex-wrap:wrap}.autocomplete-trigger:has(>.chip-row.fit){flex-wrap:nowrap}:host(:not(.value-wraps)) .autocomplete-trigger{flex-wrap:nowrap}.autocomplete-trigger{transition:border-color var(--duration-fast) var(--ease-standard)}.autocomplete-trigger .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}.autocomplete-trigger .clear-btn:hover{color:var(--text-primary);background:var(--surface-secondary)}.autocomplete-trigger .clear-btn:active:not(:disabled,[disabled],.is-disabled,.disabled,[aria-disabled=true]){filter:brightness(var(--ds-press-brightness, .9));transform:scale(var(--ds-press-scale, .97))}.autocomplete-trigger .clear-btn{position:relative}.autocomplete-trigger .clear-btn:before{content:\"\";position:absolute;top:50%;left:50%;width:max(100%,var(--hit-xs));height:max(100%,var(--hit-xs));translate:-50% -50%;border-radius:inherit}.autocomplete-trigger .clear-btn:focus-visible{outline-style:none}.autocomplete-trigger .clear-btn:focus-visible:before{outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:calc(var(--focus-ring-offset) - 2 * var(--focus-ring-width));animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}.autocomplete-trigger .addon-slot{display:inline-flex;align-items:center;align-self:stretch;color:var(--text-tertiary);flex-shrink:0}.autocomplete-trigger .addon-slot:empty{display:none}.autocomplete-trigger:hover:not(.disabled){border-color:var(--_autocomplete-border-color-hover)}@media not (forced-colors:active){.autocomplete-trigger .autocomplete-input:where(:focus-visible){outline:none}}.autocomplete-trigger:focus-within:not(.disabled){border-color:var(--_autocomplete-border-color-focus);box-shadow:var(--_autocomplete-focus-shadow)}@media not (forced-colors:active){.autocomplete-trigger:focus-within:not(.disabled){outline:none}}.autocomplete-trigger.disabled{background:var(--surface-disabled);border-color:var(--border-disabled);color:var(--text-disabled);cursor:not-allowed}.autocomplete-trigger.disabled .autocomplete-input{cursor:not-allowed;color:var(--text-disabled)}.autocomplete-trigger.disabled .autocomplete-value,.autocomplete-trigger.disabled .autocomplete-chevron{color:var(--text-disabled)}.autocomplete-trigger.sm{--_field-height: var(--ds-field-height, var(--field-h-sm));min-height:var(--_field-height)}.autocomplete-trigger.lg{--_field-height: var(--ds-field-height, var(--field-h-lg));min-height:var(--_field-height)}.chip-row{display:contents}.chip-row.fit{display:flex;flex-wrap:nowrap;align-items:center;min-width:0;gap:inherit;overflow:clip visible}.chip-row.fit>*{flex:0 1 auto;min-width:0;white-space:nowrap}.overflow{color:var(--text-secondary);font-weight:var(--font-weight-semibold);font-size:var(--font-size-xs)}.autocomplete-value{font:var(--font-weight-medium) var(--font-size-s)/var(--line-height-flat) var(--font-sans);color:var(--_autocomplete-text-color)}:host(:not(.value-wraps)) .autocomplete-value{min-width:0;overflow:clip visible;text-overflow:ellipsis;white-space:nowrap}.autocomplete-input{flex:1;min-width:var(--_autocomplete-input-min-width)}.autocomplete-input.collapsed{flex:0 0 0;min-width:0;width:0;padding:0}.autocomplete-input{border:0}@media not (forced-colors:active){.autocomplete-input{outline:none}}.autocomplete-input{background:transparent;font:var(--font-weight-regular) var(--_autocomplete-input-font-size)/var(--line-height-flat) var(--font-sans);color:var(--_autocomplete-text-color)}.autocomplete-input::placeholder{color:var(--_autocomplete-placeholder-color)}.autocomplete-chevron{color:var(--icon-default);margin-left:auto}.dropdown-panel .option.multi{padding-left:var(--space-2)}.dropdown-panel .check-box{flex:none;display:inline-flex;align-items:center;justify-content:center;width:var(--check-size);height:var(--check-size);border:var(--check-bw) solid var(--border-field);border-radius:var(--ds-radius-inner);background-color:var(--surface-default);color:var(--text-on-primary)}.dropdown-panel .check-box.checked{background-color:var(--accent);border-color:var(--accent)}.dropdown-panel .check-box .tick{--_check-mark-enter-duration: var(--ds-check-mark-enter-duration, var(--ds-motion-check-enter-duration));--_check-mark-enter-easing: var(--ds-check-mark-enter-easing, var(--ds-motion-check-enter-easing));--_check-mark-exit-duration: var(--ds-check-mark-exit-duration, var(--ds-motion-check-exit-duration));--_check-mark-exit-easing: var(--ds-check-mark-exit-easing, var(--ds-motion-check-exit-easing));width:var(--check-tick-size);height:var(--check-tick-size);transform:scale(.6);opacity:0;transform-origin:center;transition:transform var(--_check-mark-exit-duration) var(--_check-mark-exit-easing),opacity var(--_check-mark-exit-duration) var(--_check-mark-exit-easing);background-color:currentcolor}@media(forced-colors:active){.dropdown-panel .check-box .tick{background-color:CanvasText}}.dropdown-panel .check-box .tick{-webkit-mask:url(\"data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none'><path d='M2 6.5l2.5 2.5L10 3.5' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>\") center/contain no-repeat;mask:url(\"data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none'><path d='M2 6.5l2.5 2.5L10 3.5' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>\") center/contain no-repeat}.dropdown-panel .check-box.checked .tick{transform:scale(1);opacity:1;transition:transform var(--_check-mark-enter-duration) var(--_check-mark-enter-easing),opacity var(--_check-mark-enter-duration) var(--_check-mark-enter-easing)}.dropdown-panel .create-row{color:var(--accent)}.dropdown-panel .create-row .create-icon{flex:0 0 auto}:host(.in-group){width:auto;display:flex}:host(.in-group) .label,:host(.in-group) ds-field-message{display:none}:host(.in-group) .autocomplete-trigger{border:0;border-radius:0;background:transparent;flex:1;height:auto}:host(.in-group) .autocomplete-trigger:hover,:host(.in-group) .autocomplete-trigger:focus,:host(.in-group) .autocomplete-trigger:focus-visible,:host(.in-group) .autocomplete-trigger:focus-within{border:0;box-shadow:none}@media not (forced-colors:active){:host(.in-group) .autocomplete-trigger:hover,:host(.in-group) .autocomplete-trigger:focus,:host(.in-group) .autocomplete-trigger:focus-visible,:host(.in-group) .autocomplete-trigger:focus-within{outline:none}}:host([data-field-state=error]:not(.in-group)) .autocomplete-trigger:not(.disabled):not(:disabled){border-color:var(--error);background-color:var(--error-subtitle)}:host([data-field-state=error]:not(.in-group)) .autocomplete-trigger:not(.disabled):not(:disabled):focus-within,:host([data-field-state=error]:not(.in-group)) .autocomplete-trigger:not(.disabled):not(:disabled):focus-visible{box-shadow:var(--ds-field-focus-shadow-error)}:host([data-field-state=warning]:not(.in-group)) .autocomplete-trigger:not(.disabled):not(:disabled){border-color:var(--warning-text)}:host([data-field-state=warning]:not(.in-group)) .autocomplete-trigger:not(.disabled):not(:disabled):focus-within,:host([data-field-state=warning]:not(.in-group)) .autocomplete-trigger:not(.disabled):not(:disabled):focus-visible{box-shadow:var(--ds-field-focus-shadow-warning)}:host([data-field-state=success]:not(.in-group)) .autocomplete-trigger:not(.disabled):not(:disabled){border-color:var(--success)}:host([data-field-state=success]:not(.in-group)) .autocomplete-trigger:not(.disabled):not(:disabled):focus-within,:host([data-field-state=success]:not(.in-group)) .autocomplete-trigger:not(.disabled):not(:disabled):focus-visible{box-shadow:var(--ds-field-focus-shadow-success)}\n"], dependencies: [{ kind: "component", type: IconComponent, selector: "ds-icon", inputs: ["name", "size", "stroke", "ariaLabel"] }, { kind: "component", type: LoadingOverlayComponent, selector: "ds-loading-overlay", inputs: ["loading", "label", "blur", "spinnerSize", "insetTop", "inertContent"] }, { kind: "component", type: SkeletonComponent, selector: "ds-skeleton", inputs: ["width", "height", "circle", "inline", "shimmer"] }, { kind: "component", type: TagComponent, selector: "ds-tag", inputs: ["variant", "closable", "interactive", "selected", "closeLabel"], outputs: ["closed", "toggled"] }, { kind: "component", type: FieldMessageComponent, selector: "ds-field-message", inputs: ["text", "state", "messageId", "icon", "reserve", "changed"] }, { kind: "component", type: FieldStatusComponent, selector: "ds-field-status", inputs: ["pending", "changed"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: TooltipDirective, selector: "[dsTooltip], [dsTooltipWhenClipped]", inputs: ["dsTooltip", "dsTooltipConfig", "dsTooltipPlacement", "dsTooltipDelay", "dsTooltipArrow", "dsTooltipWhenClipped", "dsTooltipPinOnClick"] }] });
538
538
  }
539
539
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: AutocompleteComponent, decorators: [{
540
540
  type: Component,
@@ -558,7 +558,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImpo
558
558
  useExisting: forwardRef(() => AutocompleteComponent),
559
559
  multi: true,
560
560
  },
561
- ], 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<!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events, @angular-eslint/template/interactive-supports-focus -- click opens/focuses; keyboard runs through the inner <input role=\"combobox\"> (type/arrows/Enter/Esc) -->\n<div\n #trigger\n class=\"autocomplete-trigger\"\n [class]=\"sizeResolved()\"\n [class.disabled]=\"isDisabled()\"\n (click)=\"onTriggerClick()\">\n <span class=\"addon-slot prefix\">\n <ng-content select=\"[dsAutocompletePrefix]\"></ng-content>\n </span>\n\n @if (pickerTrigger(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n $implicit: triggerSelection(),\n selected: triggerSelection(),\n count: multiple() ? selectedTags().length : hasSingleValue() ? 1 : 0,\n open: isOpen(),\n disabled: isDisabled(),\n }\" />\n } @else if (multiple()) {\n <span\n #chipRow\n class=\"chip-row\"\n [class.fit]=\"fitsChipsToWidth()\">\n @for (selectedOption of visibleTags(); track selectedOption.value) {\n <ds-tag\n data-chip\n [closable]=\"true\"\n [closeLabel]=\"intl().picker.removeChip(selectedOption.label)\"\n (closed)=\"remove(selectedOption.value)\">\n @if (chipTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n $implicit: selectedOption,\n option: selectedOption,\n }\" />\n } @else {\n {{ selectedOption.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 } @else if (displayLabel()) {\n <span\n class=\"autocomplete-value\"\n [attr.title]=\"valueOverflow() === 'ellipsis' ? displayLabel() : null\">\n {{ displayLabel() }}\n </span>\n }\n\n <input\n #filter\n type=\"text\"\n class=\"autocomplete-input\"\n role=\"combobox\"\n aria-autocomplete=\"list\"\n [class.collapsed]=\"displayLabel() && !isOpen()\"\n [attr.aria-expanded]=\"isOpen()\"\n [attr.aria-controls]=\"listboxId\"\n [attr.aria-activedescendant]=\"activeDescendant()\"\n [attr.aria-busy]=\"loading() ? 'true' : null\"\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-invalid]=\"invalidResolved() ? 'true' : null\"\n [attr.aria-describedby]=\"describedByIds(hintId(), groupMessage())\"\n [disabled]=\"isDisabled()\"\n [value]=\"query()\"\n [placeholder]=\"placeholderText()\"\n (input)=\"onFilter($event)\"\n (focus)=\"openPanel()\"\n (blur)=\"markTouched()\"\n (keydown)=\"onKeydown($event)\" />\n\n <span class=\"addon-slot suffix\">\n <ng-content select=\"[dsAutocompleteSuffix]\"></ng-content>\n </span>\n\n @if (\n clearable() &&\n hasSingleValue() &&\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-field-status\n [pending]=\"pendingShown()\"\n [changed]=\"changedShown()\" />\n\n @if (showChevron()) {\n <ds-icon\n name=\"chevronDown\"\n class=\"autocomplete-chevron\"\n aria-hidden=\"true\"\n [size]=\"16\"\n (click)=\"togglePanel($event)\" />\n }\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 [changed]=\"changedShown()\" />\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: query(),\n }\" />\n </div>\n }\n\n <ds-loading-overlay\n class=\"list-overlay\"\n [loading]=\"listInert()\"\n [blur]=\"true\">\n <ul\n class=\"dropdown-list\"\n role=\"listbox\"\n [attr.aria-busy]=\"loading() ? 'true' : null\"\n [id]=\"listboxId\"\n [attr.aria-multiselectable]=\"multiple() ? 'true' : null\">\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 @for (option of item.options; track option.value) {\n <!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events, @angular-eslint/template/interactive-supports-focus -- listbox option; activated via the combobox input + aria-activedescendant, options aren't individually focusable -->\n <div\n role=\"option\"\n dsTooltipWhenClipped=\".option-label\"\n [class]=\"optionClass(option)\"\n [id]=\"optionId(flatIndexOf(option))\"\n [class.is-active]=\"flatIndexOf(option) === activeIndex()\"\n [attr.aria-selected]=\"isSelected(option)\"\n [attr.aria-disabled]=\"option.disabled ? 'true' : null\"\n (click)=\"onPick(option)\"\n (mouseenter)=\"\n cursorFromKeyboard.set(false);\n option.disabled || activeIndex.set(flatIndexOf(option))\n \">\n @if (multiple()) {\n <span\n class=\"check-box\"\n [class.checked]=\"isSelected(option)\">\n <span class=\"tick\"></span>\n </span>\n }\n\n @if (option.icon) {\n <ds-icon\n class=\"option-icon\"\n [name]=\"option.icon\"\n [size]=\"16\" />\n }\n\n <span 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\n @if (!multiple()) {\n <span\n class=\"option-check\"\n [class.is-shown]=\"isSelected(option)\">\n </span>\n }\n </div>\n }\n </li>\n } @else {\n @let option = item;\n\n <!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events, @angular-eslint/template/interactive-supports-focus -- listbox option; activated via the combobox input + aria-activedescendant, options aren't individually focusable -->\n <li\n role=\"option\"\n dsTooltipWhenClipped=\".option-label\"\n [class]=\"optionClass(option)\"\n [id]=\"optionId(flatIndexOf(option))\"\n [class.is-active]=\"flatIndexOf(option) === activeIndex()\"\n [attr.aria-selected]=\"isSelected(option)\"\n [attr.aria-disabled]=\"option.disabled ? 'true' : null\"\n (click)=\"onPick(option)\"\n (mouseenter)=\"\n cursorFromKeyboard.set(false);\n option.disabled || activeIndex.set(flatIndexOf(option))\n \">\n @if (multiple()) {\n <span\n class=\"check-box\"\n [class.checked]=\"isSelected(option)\">\n <span class=\"tick\"></span>\n </span>\n }\n\n @if (option.icon) {\n <ds-icon\n class=\"option-icon\"\n [name]=\"option.icon\"\n [size]=\"16\" />\n }\n\n <span 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\n @if (!multiple()) {\n <span\n class=\"option-check\"\n [class.is-shown]=\"isSelected(option)\">\n </span>\n }\n </li>\n }\n }\n\n @if (loading() && filteredOptions().length === 0) {\n @for (width of skeletonOptionWidths; track $index) {\n <li\n class=\"option is-skeleton\"\n role=\"presentation\">\n <ds-skeleton\n height=\"1lh\"\n [width]=\"width\" />\n </li>\n }\n } @else if (filteredOptions().length === 0 && !showCreateRow()) {\n <li\n class=\"empty\"\n role=\"presentation\">\n @if (emptyTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n $implicit: query(),\n query: query(),\n }\" />\n } @else {\n {{ intl().picker.noMatches }}\n }\n </li>\n }\n\n @if (showCreateRow()) {\n <!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events, @angular-eslint/template/interactive-supports-focus -- listbox option; activated via the combobox input + aria-activedescendant, options aren't individually focusable -->\n <li\n class=\"option create-row\"\n role=\"option\"\n dsTooltipWhenClipped=\".option-label\"\n [id]=\"optionId(visibleOptions().length)\"\n [class.is-active]=\"activeIndex() === visibleOptions().length\"\n [attr.aria-selected]=\"false\"\n (click)=\"onCreateNew()\"\n (mouseenter)=\"\n cursorFromKeyboard.set(false);\n activeIndex.set(visibleOptions().length)\n \">\n <ds-icon\n name=\"plus\"\n class=\"create-icon\"\n [size]=\"16\" />\n\n <span class=\"option-label\">\n @if (createTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n $implicit: query().trim(),\n query: query().trim(),\n }\" />\n } @else {\n {{ intl().picker.create(query().trim()) }}\n }\n </span>\n </li>\n }\n </ul>\n </ds-loading-overlay>\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: query(),\n }\" />\n </div>\n }\n </div>\n</ng-template>\n", styles: [":where(:host){box-sizing:border-box;interpolate-size:allow-keywords}:where(*){box-sizing:border-box}:where(button,input,select,textarea){font-family:inherit}:where(h1,h2,h3,h4,h5,h6){margin:0}:where(:host(:focus-visible),: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);border-radius:var(--focus-ring-radius)}@media(forced-colors:active){:where(:host(:focus-visible),: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-field));--_field-border-color-hover: var(--ds-field-border-color-hover, var(--border-field-hover));--_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));--ds-dropdown-panel-bg-color: var(--ds-autocomplete-panel-bg-color, initial);--ds-dropdown-panel-radius: var(--ds-autocomplete-panel-radius, initial);--ds-dropdown-panel-max-height: var(--ds-autocomplete-panel-max-height, var(--picker-maxh));--_autocomplete-focus-shadow: var(--ds-autocomplete-focus-shadow, var(--ds-field-focus-shadow));--_autocomplete-max-width: var(--ds-autocomplete-max-width, none);--_autocomplete-input-min-width: var(--ds-autocomplete-input-min-width, 40px);--_autocomplete-input-font-size: var(--ds-autocomplete-input-font-size, var(--_field-font-size));--_autocomplete-bg-color: var(--ds-autocomplete-bg-color, var(--surface-default));--_autocomplete-border-color: var(--ds-autocomplete-border-color, var(--_field-border-color));--_autocomplete-radius: var(--ds-autocomplete-radius, var(--ds-radius-control));--_autocomplete-border-color-focus: var(--ds-autocomplete-border-color-focus, var(--_field-border-color-focus));--_autocomplete-border-color-hover: var(--ds-autocomplete-border-color-hover, var(--_field-border-color-hover));--_autocomplete-text-color: var(--ds-autocomplete-text-color, var(--_field-text-color));--_autocomplete-placeholder-color: var(--ds-autocomplete-placeholder-color, var(--_field-placeholder-color));display:flex;flex-direction:column;gap:var(--field-label-gap);width:100%;max-width:var(--_autocomplete-max-width);position:relative}:host(.content-width){--_autocomplete-max-width: var(--ds-autocomplete-max-width, 100%);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)}.autocomplete-trigger{display:flex;align-items:center;gap:var(--space-2);width:100%;--_field-height: var(--ds-field-height, var(--field-h-md));min-height:var(--_field-height);padding:var(--space-1) var(--space-2);background:var(--_autocomplete-bg-color);border:var(--border-width-default) solid var(--_autocomplete-border-color);border-radius:var(--_autocomplete-radius);cursor:text;text-align:left;flex-wrap:wrap}.autocomplete-trigger:has(>.chip-row.fit){flex-wrap:nowrap}:host(:not(.value-wraps)) .autocomplete-trigger{flex-wrap:nowrap}.autocomplete-trigger{transition:border-color var(--duration-fast) var(--ease-standard)}.autocomplete-trigger .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}.autocomplete-trigger .clear-btn:hover{color:var(--text-primary);background:var(--surface-secondary)}.autocomplete-trigger .clear-btn:active:not(:disabled,[disabled],.is-disabled,.disabled,[aria-disabled=true]){filter:brightness(var(--ds-press-brightness, .9));transform:scale(var(--ds-press-scale, .97))}.autocomplete-trigger .clear-btn{position:relative}.autocomplete-trigger .clear-btn:before{content:\"\";position:absolute;top:50%;left:50%;width:max(100%,var(--hit-xs));height:max(100%,var(--hit-xs));translate:-50% -50%;border-radius:inherit}.autocomplete-trigger .clear-btn:focus-visible{outline-style:none}.autocomplete-trigger .clear-btn:focus-visible:before{outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:calc(var(--focus-ring-offset) - 2 * var(--focus-ring-width));animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}.autocomplete-trigger .addon-slot{display:inline-flex;align-items:center;align-self:stretch;color:var(--text-tertiary);flex-shrink:0}.autocomplete-trigger .addon-slot:empty{display:none}.autocomplete-trigger:hover:not(.disabled){border-color:var(--_autocomplete-border-color-hover)}@media not (forced-colors:active){.autocomplete-trigger .autocomplete-input:where(:focus-visible){outline:none}}.autocomplete-trigger:focus-within:not(.disabled){border-color:var(--_autocomplete-border-color-focus);box-shadow:var(--_autocomplete-focus-shadow)}@media not (forced-colors:active){.autocomplete-trigger:focus-within:not(.disabled){outline:none}}.autocomplete-trigger.disabled{background:var(--surface-disabled);border-color:var(--border-disabled);color:var(--text-disabled);cursor:not-allowed}.autocomplete-trigger.disabled .autocomplete-input{cursor:not-allowed;color:var(--text-disabled)}.autocomplete-trigger.disabled .autocomplete-value,.autocomplete-trigger.disabled .autocomplete-chevron{color:var(--text-disabled)}.autocomplete-trigger.sm{--_field-height: var(--ds-field-height, var(--field-h-sm));min-height:var(--_field-height)}.autocomplete-trigger.lg{--_field-height: var(--ds-field-height, var(--field-h-lg));min-height:var(--_field-height)}.chip-row{display:contents}.chip-row.fit{display:flex;flex-wrap:nowrap;align-items:center;min-width:0;gap:inherit;overflow:clip visible}.chip-row.fit>*{flex:0 1 auto;min-width:0;white-space:nowrap}.overflow{color:var(--text-secondary);font-weight:var(--font-weight-semibold);font-size:var(--font-size-xs)}.autocomplete-value{font:var(--font-weight-medium) var(--font-size-s)/var(--line-height-flat) var(--font-sans);color:var(--_autocomplete-text-color)}:host(:not(.value-wraps)) .autocomplete-value{min-width:0;overflow:clip visible;text-overflow:ellipsis;white-space:nowrap}.autocomplete-input{flex:1;min-width:var(--_autocomplete-input-min-width)}.autocomplete-input.collapsed{flex:0 0 0;min-width:0;width:0;padding:0}.autocomplete-input{border:0}@media not (forced-colors:active){.autocomplete-input{outline:none}}.autocomplete-input{background:transparent;font:var(--font-weight-regular) var(--_autocomplete-input-font-size)/var(--line-height-flat) var(--font-sans);color:var(--_autocomplete-text-color)}.autocomplete-input::placeholder{color:var(--_autocomplete-placeholder-color)}.autocomplete-chevron{color:var(--icon-default);margin-left:auto}.dropdown-panel .option.multi{padding-left:var(--space-2)}.dropdown-panel .check-box{flex:none;display:inline-flex;align-items:center;justify-content:center;width:var(--check-size);height:var(--check-size);border:var(--check-bw) solid var(--border-strong);border-radius:var(--ds-radius-inner);background-color:var(--surface-default);color:var(--text-on-primary)}.dropdown-panel .check-box.checked{background-color:var(--accent);border-color:var(--accent)}.dropdown-panel .check-box .tick{--_check-mark-enter-duration: var(--ds-check-mark-enter-duration, var(--ds-motion-check-enter-duration));--_check-mark-enter-easing: var(--ds-check-mark-enter-easing, var(--ds-motion-check-enter-easing));--_check-mark-exit-duration: var(--ds-check-mark-exit-duration, var(--ds-motion-check-exit-duration));--_check-mark-exit-easing: var(--ds-check-mark-exit-easing, var(--ds-motion-check-exit-easing));width:var(--check-tick-size);height:var(--check-tick-size);transform:scale(.6);opacity:0;transform-origin:center;transition:transform var(--_check-mark-exit-duration) var(--_check-mark-exit-easing),opacity var(--_check-mark-exit-duration) var(--_check-mark-exit-easing);background-color:currentcolor}@media(forced-colors:active){.dropdown-panel .check-box .tick{background-color:CanvasText}}.dropdown-panel .check-box .tick{-webkit-mask:url(\"data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none'><path d='M2 6.5l2.5 2.5L10 3.5' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>\") center/contain no-repeat;mask:url(\"data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none'><path d='M2 6.5l2.5 2.5L10 3.5' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>\") center/contain no-repeat}.dropdown-panel .check-box.checked .tick{transform:scale(1);opacity:1;transition:transform var(--_check-mark-enter-duration) var(--_check-mark-enter-easing),opacity var(--_check-mark-enter-duration) var(--_check-mark-enter-easing)}.dropdown-panel .create-row{color:var(--accent)}.dropdown-panel .create-row .create-icon{flex:0 0 auto}:host(.in-group){width:auto;display:flex}:host(.in-group) .label,:host(.in-group) ds-field-message{display:none}:host(.in-group) .autocomplete-trigger{border:0;border-radius:0;background:transparent;flex:1;height:auto}:host(.in-group) .autocomplete-trigger:hover,:host(.in-group) .autocomplete-trigger:focus,:host(.in-group) .autocomplete-trigger:focus-visible,:host(.in-group) .autocomplete-trigger:focus-within{border:0;box-shadow:none}@media not (forced-colors:active){:host(.in-group) .autocomplete-trigger:hover,:host(.in-group) .autocomplete-trigger:focus,:host(.in-group) .autocomplete-trigger:focus-visible,:host(.in-group) .autocomplete-trigger:focus-within{outline:none}}:host([data-field-state=error]:not(.in-group)) .autocomplete-trigger:not(.disabled):not(:disabled){border-color:var(--error);background-color:var(--error-subtitle)}:host([data-field-state=error]:not(.in-group)) .autocomplete-trigger:not(.disabled):not(:disabled):focus-within,:host([data-field-state=error]:not(.in-group)) .autocomplete-trigger:not(.disabled):not(:disabled):focus-visible{box-shadow:var(--ds-field-focus-shadow-error)}:host([data-field-state=warning]:not(.in-group)) .autocomplete-trigger:not(.disabled):not(:disabled){border-color:var(--warning-text)}:host([data-field-state=warning]:not(.in-group)) .autocomplete-trigger:not(.disabled):not(:disabled):focus-within,:host([data-field-state=warning]:not(.in-group)) .autocomplete-trigger:not(.disabled):not(:disabled):focus-visible{box-shadow:var(--ds-field-focus-shadow-warning)}:host([data-field-state=success]:not(.in-group)) .autocomplete-trigger:not(.disabled):not(:disabled){border-color:var(--success)}:host([data-field-state=success]:not(.in-group)) .autocomplete-trigger:not(.disabled):not(:disabled):focus-within,:host([data-field-state=success]:not(.in-group)) .autocomplete-trigger:not(.disabled):not(:disabled):focus-visible{box-shadow:var(--ds-field-focus-shadow-success)}\n"] }]
561
+ ], 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<!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events, @angular-eslint/template/interactive-supports-focus -- click opens/focuses; keyboard runs through the inner <input role=\"combobox\"> (type/arrows/Enter/Esc) -->\n<div\n #trigger\n class=\"autocomplete-trigger\"\n [class]=\"sizeResolved()\"\n [class.disabled]=\"isDisabled()\"\n (click)=\"onTriggerClick()\">\n <span class=\"addon-slot prefix\">\n <ng-content select=\"[dsAutocompletePrefix]\"></ng-content>\n </span>\n\n @if (pickerTrigger(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n $implicit: triggerSelection(),\n selected: triggerSelection(),\n count: multiple() ? selectedTags().length : hasSingleValue() ? 1 : 0,\n open: isOpen(),\n disabled: isDisabled(),\n }\" />\n } @else if (multiple()) {\n <span\n #chipRow\n class=\"chip-row\"\n [class.fit]=\"fitsChipsToWidth()\">\n @for (selectedOption of visibleTags(); track selectedOption.value) {\n <ds-tag\n data-chip\n [closable]=\"true\"\n [closeLabel]=\"intl().picker.removeChip(selectedOption.label)\"\n (closed)=\"remove(selectedOption.value)\">\n @if (chipTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n $implicit: selectedOption,\n option: selectedOption,\n }\" />\n } @else {\n {{ selectedOption.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 } @else if (displayLabel()) {\n <span\n class=\"autocomplete-value\"\n [attr.title]=\"valueOverflow() === 'ellipsis' ? displayLabel() : null\">\n {{ displayLabel() }}\n </span>\n }\n\n <input\n #filter\n type=\"text\"\n class=\"autocomplete-input\"\n role=\"combobox\"\n aria-autocomplete=\"list\"\n [class.collapsed]=\"displayLabel() && !isOpen()\"\n [attr.aria-expanded]=\"isOpen()\"\n [attr.aria-controls]=\"listboxId\"\n [attr.aria-activedescendant]=\"activeDescendant()\"\n [attr.aria-busy]=\"loading() ? 'true' : null\"\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-invalid]=\"invalidResolved() ? 'true' : null\"\n [attr.aria-describedby]=\"describedByIds(hintId(), groupMessage())\"\n [disabled]=\"isDisabled()\"\n [value]=\"query()\"\n [placeholder]=\"placeholderText()\"\n (input)=\"onFilter($event)\"\n (focus)=\"openPanel()\"\n (blur)=\"markTouched()\"\n (keydown)=\"onKeydown($event)\" />\n\n <span class=\"addon-slot suffix\">\n <ng-content select=\"[dsAutocompleteSuffix]\"></ng-content>\n </span>\n\n @if (\n clearable() &&\n hasSingleValue() &&\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-field-status\n [pending]=\"pendingShown()\"\n [changed]=\"changedShown()\" />\n\n @if (showChevron()) {\n <ds-icon\n name=\"chevronDown\"\n class=\"autocomplete-chevron\"\n aria-hidden=\"true\"\n [size]=\"16\"\n (click)=\"togglePanel($event)\" />\n }\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 [changed]=\"changedShown()\" />\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: query(),\n }\" />\n </div>\n }\n\n <ds-loading-overlay\n class=\"list-overlay\"\n [loading]=\"listInert()\"\n [blur]=\"true\">\n <ul\n class=\"dropdown-list\"\n role=\"listbox\"\n [attr.aria-busy]=\"loading() ? 'true' : null\"\n [id]=\"listboxId\"\n [attr.aria-multiselectable]=\"multiple() ? 'true' : null\">\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 @for (option of item.options; track option.value) {\n <!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events, @angular-eslint/template/interactive-supports-focus -- listbox option; activated via the combobox input + aria-activedescendant, options aren't individually focusable -->\n <div\n role=\"option\"\n dsTooltipWhenClipped=\".option-label\"\n [class]=\"optionClass(option)\"\n [id]=\"optionId(flatIndexOf(option))\"\n [class.is-active]=\"flatIndexOf(option) === activeIndex()\"\n [attr.aria-selected]=\"isSelected(option)\"\n [attr.aria-disabled]=\"option.disabled ? 'true' : null\"\n (click)=\"onPick(option)\"\n (mouseenter)=\"\n cursorFromKeyboard.set(false);\n option.disabled || activeIndex.set(flatIndexOf(option))\n \">\n @if (multiple()) {\n <span\n class=\"check-box\"\n [class.checked]=\"isSelected(option)\">\n <span class=\"tick\"></span>\n </span>\n }\n\n @if (option.icon) {\n <ds-icon\n class=\"option-icon\"\n [name]=\"option.icon\"\n [size]=\"16\" />\n }\n\n <span 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\n @if (!multiple()) {\n <span\n class=\"option-check\"\n [class.is-shown]=\"isSelected(option)\">\n </span>\n }\n </div>\n }\n </li>\n } @else {\n @let option = item;\n\n <!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events, @angular-eslint/template/interactive-supports-focus -- listbox option; activated via the combobox input + aria-activedescendant, options aren't individually focusable -->\n <li\n role=\"option\"\n dsTooltipWhenClipped=\".option-label\"\n [class]=\"optionClass(option)\"\n [id]=\"optionId(flatIndexOf(option))\"\n [class.is-active]=\"flatIndexOf(option) === activeIndex()\"\n [attr.aria-selected]=\"isSelected(option)\"\n [attr.aria-disabled]=\"option.disabled ? 'true' : null\"\n (click)=\"onPick(option)\"\n (mouseenter)=\"\n cursorFromKeyboard.set(false);\n option.disabled || activeIndex.set(flatIndexOf(option))\n \">\n @if (multiple()) {\n <span\n class=\"check-box\"\n [class.checked]=\"isSelected(option)\">\n <span class=\"tick\"></span>\n </span>\n }\n\n @if (option.icon) {\n <ds-icon\n class=\"option-icon\"\n [name]=\"option.icon\"\n [size]=\"16\" />\n }\n\n <span 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\n @if (!multiple()) {\n <span\n class=\"option-check\"\n [class.is-shown]=\"isSelected(option)\">\n </span>\n }\n </li>\n }\n }\n\n @if (loading() && filteredOptions().length === 0) {\n @for (width of skeletonOptionWidths; track $index) {\n <li\n class=\"option is-skeleton\"\n role=\"presentation\">\n <ds-skeleton\n height=\"1lh\"\n [width]=\"width\" />\n </li>\n }\n } @else if (filteredOptions().length === 0 && !showCreateRow()) {\n <li\n class=\"empty\"\n role=\"presentation\">\n @if (emptyTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n $implicit: query(),\n query: query(),\n }\" />\n } @else {\n {{ intl().picker.noMatches }}\n }\n </li>\n }\n\n @if (showCreateRow()) {\n <!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events, @angular-eslint/template/interactive-supports-focus -- listbox option; activated via the combobox input + aria-activedescendant, options aren't individually focusable -->\n <li\n class=\"option create-row\"\n role=\"option\"\n dsTooltipWhenClipped=\".option-label\"\n [id]=\"optionId(visibleOptions().length)\"\n [class.is-active]=\"activeIndex() === visibleOptions().length\"\n [attr.aria-selected]=\"false\"\n (click)=\"onCreateNew()\"\n (mouseenter)=\"\n cursorFromKeyboard.set(false);\n activeIndex.set(visibleOptions().length)\n \">\n <ds-icon\n name=\"plus\"\n class=\"create-icon\"\n [size]=\"16\" />\n\n <span class=\"option-label\">\n @if (createTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n $implicit: query().trim(),\n query: query().trim(),\n }\" />\n } @else {\n {{ intl().picker.create(query().trim()) }}\n }\n </span>\n </li>\n }\n </ul>\n </ds-loading-overlay>\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: query(),\n }\" />\n </div>\n }\n </div>\n</ng-template>\n", styles: [":where(:host){box-sizing:border-box;interpolate-size:allow-keywords}:where(*){box-sizing:border-box}:where(button,input,select,textarea){font-family:inherit}:where(h1,h2,h3,h4,h5,h6){margin:0}:where(:host(:focus-visible),: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);border-radius:var(--focus-ring-radius)}@media(forced-colors:active){:where(:host(:focus-visible),: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-field));--_field-border-color-hover: var(--ds-field-border-color-hover, var(--border-field-hover));--_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));--ds-dropdown-panel-bg-color: var(--ds-autocomplete-panel-bg-color, initial);--ds-dropdown-panel-radius: var(--ds-autocomplete-panel-radius, initial);--ds-dropdown-panel-max-height: var(--ds-autocomplete-panel-max-height, var(--picker-maxh));--_autocomplete-focus-shadow: var(--ds-autocomplete-focus-shadow, var(--ds-field-focus-shadow));--_autocomplete-max-width: var(--ds-autocomplete-max-width, none);--_autocomplete-input-min-width: var(--ds-autocomplete-input-min-width, 40px);--_autocomplete-input-font-size: var(--ds-autocomplete-input-font-size, var(--_field-font-size));--_autocomplete-bg-color: var(--ds-autocomplete-bg-color, var(--surface-default));--_autocomplete-border-color: var(--ds-autocomplete-border-color, var(--_field-border-color));--_autocomplete-radius: var(--ds-autocomplete-radius, var(--ds-radius-control));--_autocomplete-border-color-focus: var(--ds-autocomplete-border-color-focus, var(--_field-border-color-focus));--_autocomplete-border-color-hover: var(--ds-autocomplete-border-color-hover, var(--_field-border-color-hover));--_autocomplete-text-color: var(--ds-autocomplete-text-color, var(--_field-text-color));--_autocomplete-placeholder-color: var(--ds-autocomplete-placeholder-color, var(--_field-placeholder-color));display:flex;flex-direction:column;gap:var(--field-label-gap);width:100%;max-width:var(--_autocomplete-max-width);position:relative}:host(.content-width){--_autocomplete-max-width: var(--ds-autocomplete-max-width, 100%);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)}.autocomplete-trigger{display:flex;align-items:center;gap:var(--space-2);width:100%;--_field-height: var(--ds-field-height, var(--field-h-md));min-height:var(--_field-height);padding:var(--space-1) var(--space-2);background:var(--_autocomplete-bg-color);border:var(--border-width-default) solid var(--_autocomplete-border-color);border-radius:var(--_autocomplete-radius);cursor:text;text-align:left;flex-wrap:wrap}.autocomplete-trigger:has(>.chip-row.fit){flex-wrap:nowrap}:host(:not(.value-wraps)) .autocomplete-trigger{flex-wrap:nowrap}.autocomplete-trigger{transition:border-color var(--duration-fast) var(--ease-standard)}.autocomplete-trigger .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}.autocomplete-trigger .clear-btn:hover{color:var(--text-primary);background:var(--surface-secondary)}.autocomplete-trigger .clear-btn:active:not(:disabled,[disabled],.is-disabled,.disabled,[aria-disabled=true]){filter:brightness(var(--ds-press-brightness, .9));transform:scale(var(--ds-press-scale, .97))}.autocomplete-trigger .clear-btn{position:relative}.autocomplete-trigger .clear-btn:before{content:\"\";position:absolute;top:50%;left:50%;width:max(100%,var(--hit-xs));height:max(100%,var(--hit-xs));translate:-50% -50%;border-radius:inherit}.autocomplete-trigger .clear-btn:focus-visible{outline-style:none}.autocomplete-trigger .clear-btn:focus-visible:before{outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:calc(var(--focus-ring-offset) - 2 * var(--focus-ring-width));animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}.autocomplete-trigger .addon-slot{display:inline-flex;align-items:center;align-self:stretch;color:var(--text-tertiary);flex-shrink:0}.autocomplete-trigger .addon-slot:empty{display:none}.autocomplete-trigger:hover:not(.disabled){border-color:var(--_autocomplete-border-color-hover)}@media not (forced-colors:active){.autocomplete-trigger .autocomplete-input:where(:focus-visible){outline:none}}.autocomplete-trigger:focus-within:not(.disabled){border-color:var(--_autocomplete-border-color-focus);box-shadow:var(--_autocomplete-focus-shadow)}@media not (forced-colors:active){.autocomplete-trigger:focus-within:not(.disabled){outline:none}}.autocomplete-trigger.disabled{background:var(--surface-disabled);border-color:var(--border-disabled);color:var(--text-disabled);cursor:not-allowed}.autocomplete-trigger.disabled .autocomplete-input{cursor:not-allowed;color:var(--text-disabled)}.autocomplete-trigger.disabled .autocomplete-value,.autocomplete-trigger.disabled .autocomplete-chevron{color:var(--text-disabled)}.autocomplete-trigger.sm{--_field-height: var(--ds-field-height, var(--field-h-sm));min-height:var(--_field-height)}.autocomplete-trigger.lg{--_field-height: var(--ds-field-height, var(--field-h-lg));min-height:var(--_field-height)}.chip-row{display:contents}.chip-row.fit{display:flex;flex-wrap:nowrap;align-items:center;min-width:0;gap:inherit;overflow:clip visible}.chip-row.fit>*{flex:0 1 auto;min-width:0;white-space:nowrap}.overflow{color:var(--text-secondary);font-weight:var(--font-weight-semibold);font-size:var(--font-size-xs)}.autocomplete-value{font:var(--font-weight-medium) var(--font-size-s)/var(--line-height-flat) var(--font-sans);color:var(--_autocomplete-text-color)}:host(:not(.value-wraps)) .autocomplete-value{min-width:0;overflow:clip visible;text-overflow:ellipsis;white-space:nowrap}.autocomplete-input{flex:1;min-width:var(--_autocomplete-input-min-width)}.autocomplete-input.collapsed{flex:0 0 0;min-width:0;width:0;padding:0}.autocomplete-input{border:0}@media not (forced-colors:active){.autocomplete-input{outline:none}}.autocomplete-input{background:transparent;font:var(--font-weight-regular) var(--_autocomplete-input-font-size)/var(--line-height-flat) var(--font-sans);color:var(--_autocomplete-text-color)}.autocomplete-input::placeholder{color:var(--_autocomplete-placeholder-color)}.autocomplete-chevron{color:var(--icon-default);margin-left:auto}.dropdown-panel .option.multi{padding-left:var(--space-2)}.dropdown-panel .check-box{flex:none;display:inline-flex;align-items:center;justify-content:center;width:var(--check-size);height:var(--check-size);border:var(--check-bw) solid var(--border-field);border-radius:var(--ds-radius-inner);background-color:var(--surface-default);color:var(--text-on-primary)}.dropdown-panel .check-box.checked{background-color:var(--accent);border-color:var(--accent)}.dropdown-panel .check-box .tick{--_check-mark-enter-duration: var(--ds-check-mark-enter-duration, var(--ds-motion-check-enter-duration));--_check-mark-enter-easing: var(--ds-check-mark-enter-easing, var(--ds-motion-check-enter-easing));--_check-mark-exit-duration: var(--ds-check-mark-exit-duration, var(--ds-motion-check-exit-duration));--_check-mark-exit-easing: var(--ds-check-mark-exit-easing, var(--ds-motion-check-exit-easing));width:var(--check-tick-size);height:var(--check-tick-size);transform:scale(.6);opacity:0;transform-origin:center;transition:transform var(--_check-mark-exit-duration) var(--_check-mark-exit-easing),opacity var(--_check-mark-exit-duration) var(--_check-mark-exit-easing);background-color:currentcolor}@media(forced-colors:active){.dropdown-panel .check-box .tick{background-color:CanvasText}}.dropdown-panel .check-box .tick{-webkit-mask:url(\"data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none'><path d='M2 6.5l2.5 2.5L10 3.5' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>\") center/contain no-repeat;mask:url(\"data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none'><path d='M2 6.5l2.5 2.5L10 3.5' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>\") center/contain no-repeat}.dropdown-panel .check-box.checked .tick{transform:scale(1);opacity:1;transition:transform var(--_check-mark-enter-duration) var(--_check-mark-enter-easing),opacity var(--_check-mark-enter-duration) var(--_check-mark-enter-easing)}.dropdown-panel .create-row{color:var(--accent)}.dropdown-panel .create-row .create-icon{flex:0 0 auto}:host(.in-group){width:auto;display:flex}:host(.in-group) .label,:host(.in-group) ds-field-message{display:none}:host(.in-group) .autocomplete-trigger{border:0;border-radius:0;background:transparent;flex:1;height:auto}:host(.in-group) .autocomplete-trigger:hover,:host(.in-group) .autocomplete-trigger:focus,:host(.in-group) .autocomplete-trigger:focus-visible,:host(.in-group) .autocomplete-trigger:focus-within{border:0;box-shadow:none}@media not (forced-colors:active){:host(.in-group) .autocomplete-trigger:hover,:host(.in-group) .autocomplete-trigger:focus,:host(.in-group) .autocomplete-trigger:focus-visible,:host(.in-group) .autocomplete-trigger:focus-within{outline:none}}:host([data-field-state=error]:not(.in-group)) .autocomplete-trigger:not(.disabled):not(:disabled){border-color:var(--error);background-color:var(--error-subtitle)}:host([data-field-state=error]:not(.in-group)) .autocomplete-trigger:not(.disabled):not(:disabled):focus-within,:host([data-field-state=error]:not(.in-group)) .autocomplete-trigger:not(.disabled):not(:disabled):focus-visible{box-shadow:var(--ds-field-focus-shadow-error)}:host([data-field-state=warning]:not(.in-group)) .autocomplete-trigger:not(.disabled):not(:disabled){border-color:var(--warning-text)}:host([data-field-state=warning]:not(.in-group)) .autocomplete-trigger:not(.disabled):not(:disabled):focus-within,:host([data-field-state=warning]:not(.in-group)) .autocomplete-trigger:not(.disabled):not(:disabled):focus-visible{box-shadow:var(--ds-field-focus-shadow-warning)}:host([data-field-state=success]:not(.in-group)) .autocomplete-trigger:not(.disabled):not(:disabled){border-color:var(--success)}:host([data-field-state=success]:not(.in-group)) .autocomplete-trigger:not(.disabled):not(:disabled):focus-within,:host([data-field-state=success]:not(.in-group)) .autocomplete-trigger:not(.disabled):not(:disabled):focus-visible{box-shadow:var(--ds-field-focus-shadow-success)}\n"] }]
562
562
  }], ctorParameters: () => [], propDecorators: { options: [{ type: i0.Input, args: [{ isSignal: true, alias: "options", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], multiple: [{ type: i0.Input, args: [{ isSignal: true, alias: "multiple", required: false }] }], showChevron: [{ type: i0.Input, args: [{ isSignal: true, alias: "showChevron", required: false }] }], maxVisibleChips: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxVisibleChips", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], width: [{ type: i0.Input, args: [{ isSignal: true, alias: "width", required: false }] }], valueOverflow: [{ type: i0.Input, args: [{ isSignal: true, alias: "valueOverflow", required: false }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], success: [{ type: i0.Input, args: [{ isSignal: true, alias: "success", required: false }] }], allowCreate: [{ type: i0.Input, args: [{ isSignal: true, alias: "allowCreate", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], compareWith: [{ type: i0.Input, args: [{ isSignal: true, alias: "compareWith", required: false }] }], name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", 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 }] }], clearable: [{ type: i0.Input, args: [{ isSignal: true, alias: "clearable", required: false }] }], searchPlaceholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "searchPlaceholder", required: false }] }], filterWith: [{ type: i0.Input, args: [{ isSignal: true, alias: "filterWith", required: false }] }], filterChange: [{ type: i0.Output, args: ["filterChange"] }], 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 }] }], required: [{ type: i0.Input, args: [{ isSignal: true, alias: "required", required: false }] }], optional: [{ type: i0.Input, args: [{ isSignal: true, alias: "optional", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], create: [{ type: i0.Output, args: ["create"] }], optionTemplate: [{ type: i0.ContentChild, args: [i0.forwardRef(() => DsOptionTemplateDirective), { ...{
563
563
  read: TemplateRef,
564
564
  }, isSignal: true }] }], chipTemplate: [{ type: i0.ContentChild, args: [i0.forwardRef(() => DsChipTemplateDirective), { ...{