@ids-group-ltd/ids-design-system 0.13.0 → 0.13.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 (104) hide show
  1. package/CHANGELOG.md +656 -3
  2. package/components.md +32 -11
  3. package/docs/agent/INDEX.md +2 -0
  4. package/docs/agent/charts/ds-bar-chart.md +1 -1
  5. package/docs/agent/charts/ds-column-chart.md +1 -1
  6. package/docs/agent/charts/ds-config.md +12 -0
  7. package/docs/agent/charts/ds-donut-chart.md +2 -2
  8. package/docs/agent/charts/ds-funnel-chart.md +1 -1
  9. package/docs/agent/charts/ds-line-chart.md +3 -2
  10. package/docs/agent/feedback/ds-meter.md +11 -0
  11. package/docs/agent/feedback/ds-progress.md +4 -1
  12. package/docs/agent/forms/ds-button.md +1 -1
  13. package/docs/agent/forms/ds-icon-button.md +1 -1
  14. package/docs/agent/surfaces/ds-card.md +1 -1
  15. package/fesm2022/ids-group-ltd-ids-design-system-components-accordion.mjs +2 -2
  16. package/fesm2022/ids-group-ltd-ids-design-system-components-accordion.mjs.map +1 -1
  17. package/fesm2022/ids-group-ltd-ids-design-system-components-alert.mjs +2 -2
  18. package/fesm2022/ids-group-ltd-ids-design-system-components-alert.mjs.map +1 -1
  19. package/fesm2022/ids-group-ltd-ids-design-system-components-autocomplete.mjs +9 -4
  20. package/fesm2022/ids-group-ltd-ids-design-system-components-autocomplete.mjs.map +1 -1
  21. package/fesm2022/ids-group-ltd-ids-design-system-components-banner.mjs +2 -2
  22. package/fesm2022/ids-group-ltd-ids-design-system-components-banner.mjs.map +1 -1
  23. package/fesm2022/ids-group-ltd-ids-design-system-components-bar-chart.mjs +100 -15
  24. package/fesm2022/ids-group-ltd-ids-design-system-components-bar-chart.mjs.map +1 -1
  25. package/fesm2022/ids-group-ltd-ids-design-system-components-bottom-sheet.mjs +2 -2
  26. package/fesm2022/ids-group-ltd-ids-design-system-components-bottom-sheet.mjs.map +1 -1
  27. package/fesm2022/ids-group-ltd-ids-design-system-components-button.mjs +3 -0
  28. package/fesm2022/ids-group-ltd-ids-design-system-components-button.mjs.map +1 -1
  29. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-legend.mjs +47 -5
  30. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-legend.mjs.map +1 -1
  31. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-tooltip.mjs +155 -21
  32. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-tooltip.mjs.map +1 -1
  33. package/fesm2022/ids-group-ltd-ids-design-system-components-color-picker.mjs +9 -4
  34. package/fesm2022/ids-group-ltd-ids-design-system-components-color-picker.mjs.map +1 -1
  35. package/fesm2022/ids-group-ltd-ids-design-system-components-column-chart.mjs +81 -18
  36. package/fesm2022/ids-group-ltd-ids-design-system-components-column-chart.mjs.map +1 -1
  37. package/fesm2022/ids-group-ltd-ids-design-system-components-date-picker.mjs +9 -4
  38. package/fesm2022/ids-group-ltd-ids-design-system-components-date-picker.mjs.map +1 -1
  39. package/fesm2022/ids-group-ltd-ids-design-system-components-donut-chart.mjs +75 -23
  40. package/fesm2022/ids-group-ltd-ids-design-system-components-donut-chart.mjs.map +1 -1
  41. package/fesm2022/ids-group-ltd-ids-design-system-components-drawer.mjs +2 -1
  42. package/fesm2022/ids-group-ltd-ids-design-system-components-drawer.mjs.map +1 -1
  43. package/fesm2022/ids-group-ltd-ids-design-system-components-empty-state.mjs +2 -2
  44. package/fesm2022/ids-group-ltd-ids-design-system-components-empty-state.mjs.map +1 -1
  45. package/fesm2022/ids-group-ltd-ids-design-system-components-funnel-chart.mjs +107 -19
  46. package/fesm2022/ids-group-ltd-ids-design-system-components-funnel-chart.mjs.map +1 -1
  47. package/fesm2022/ids-group-ltd-ids-design-system-components-line-chart.mjs +236 -31
  48. package/fesm2022/ids-group-ltd-ids-design-system-components-line-chart.mjs.map +1 -1
  49. package/fesm2022/ids-group-ltd-ids-design-system-components-list.mjs +2 -1
  50. package/fesm2022/ids-group-ltd-ids-design-system-components-list.mjs.map +1 -1
  51. package/fesm2022/ids-group-ltd-ids-design-system-components-meter.mjs +61 -0
  52. package/fesm2022/ids-group-ltd-ids-design-system-components-meter.mjs.map +1 -0
  53. package/fesm2022/ids-group-ltd-ids-design-system-components-modal.mjs +4 -4
  54. package/fesm2022/ids-group-ltd-ids-design-system-components-modal.mjs.map +1 -1
  55. package/fesm2022/ids-group-ltd-ids-design-system-components-multi-select.mjs +9 -4
  56. package/fesm2022/ids-group-ltd-ids-design-system-components-multi-select.mjs.map +1 -1
  57. package/fesm2022/ids-group-ltd-ids-design-system-components-page-header.mjs +2 -2
  58. package/fesm2022/ids-group-ltd-ids-design-system-components-page-header.mjs.map +1 -1
  59. package/fesm2022/ids-group-ltd-ids-design-system-components-pagination.mjs +1 -1
  60. package/fesm2022/ids-group-ltd-ids-design-system-components-pagination.mjs.map +1 -1
  61. package/fesm2022/ids-group-ltd-ids-design-system-components-progress.mjs +34 -10
  62. package/fesm2022/ids-group-ltd-ids-design-system-components-progress.mjs.map +1 -1
  63. package/fesm2022/ids-group-ltd-ids-design-system-components-select.mjs +9 -4
  64. package/fesm2022/ids-group-ltd-ids-design-system-components-select.mjs.map +1 -1
  65. package/fesm2022/ids-group-ltd-ids-design-system-components-table.mjs +2 -2
  66. package/fesm2022/ids-group-ltd-ids-design-system-components-table.mjs.map +1 -1
  67. package/fesm2022/ids-group-ltd-ids-design-system-components-time-picker.mjs +9 -4
  68. package/fesm2022/ids-group-ltd-ids-design-system-components-time-picker.mjs.map +1 -1
  69. package/fesm2022/ids-group-ltd-ids-design-system-components-toast.mjs +2 -2
  70. package/fesm2022/ids-group-ltd-ids-design-system-components-toast.mjs.map +1 -1
  71. package/fesm2022/ids-group-ltd-ids-design-system-components.mjs +119 -13
  72. package/fesm2022/ids-group-ltd-ids-design-system-components.mjs.map +1 -1
  73. package/fesm2022/ids-group-ltd-ids-design-system-core.mjs.map +1 -1
  74. package/fesm2022/ids-group-ltd-ids-design-system.mjs +1 -0
  75. package/fesm2022/ids-group-ltd-ids-design-system.mjs.map +1 -1
  76. package/migrations/0.13.1.json +236 -0
  77. package/migrations/0.13.2.json +269 -0
  78. package/package.json +9 -1
  79. package/styles/_chart-frame.scss +116 -4
  80. package/styles/_chart-interactive.scss +27 -7
  81. package/styles/_chart-motion.scss +61 -18
  82. package/styles/_dropdown-overlay.scss +9 -3
  83. package/styles/_focus.scss +10 -1
  84. package/styles/_overlay-motion.scss +11 -1
  85. package/styles/_tokens-charts.scss +5 -0
  86. package/types/ids-group-ltd-ids-design-system-components-autocomplete.d.ts +6 -1
  87. package/types/ids-group-ltd-ids-design-system-components-bar-chart.d.ts +87 -10
  88. package/types/ids-group-ltd-ids-design-system-components-button.d.ts +1 -0
  89. package/types/ids-group-ltd-ids-design-system-components-chart-legend.d.ts +25 -2
  90. package/types/ids-group-ltd-ids-design-system-components-chart-tooltip.d.ts +23 -3
  91. package/types/ids-group-ltd-ids-design-system-components-color-picker.d.ts +6 -1
  92. package/types/ids-group-ltd-ids-design-system-components-column-chart.d.ts +60 -9
  93. package/types/ids-group-ltd-ids-design-system-components-date-picker.d.ts +6 -1
  94. package/types/ids-group-ltd-ids-design-system-components-donut-chart.d.ts +53 -13
  95. package/types/ids-group-ltd-ids-design-system-components-funnel-chart.d.ts +73 -11
  96. package/types/ids-group-ltd-ids-design-system-components-line-chart.d.ts +116 -12
  97. package/types/ids-group-ltd-ids-design-system-components-meter.d.ts +36 -0
  98. package/types/ids-group-ltd-ids-design-system-components-multi-select.d.ts +6 -1
  99. package/types/ids-group-ltd-ids-design-system-components-progress.d.ts +21 -3
  100. package/types/ids-group-ltd-ids-design-system-components-select.d.ts +6 -1
  101. package/types/ids-group-ltd-ids-design-system-components-time-picker.d.ts +6 -1
  102. package/types/ids-group-ltd-ids-design-system-components.d.ts +47 -5
  103. package/types/ids-group-ltd-ids-design-system-core.d.ts +40 -1
  104. package/types/ids-group-ltd-ids-design-system.d.ts +6 -5
@@ -2,36 +2,60 @@ import * as i0 from '@angular/core';
2
2
  import { input, booleanAttribute, computed, ViewEncapsulation, Component } from '@angular/core';
3
3
 
4
4
  class ProgressComponent {
5
- /** Progress 0–100; clamped, and ignored while `indeterminate`. */
5
+ /** Progress in units of `max`, so 0–100 by default; clamped, and ignored while
6
+ * `indeterminate`. */
6
7
  value = input(0, ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
8
+ /** The full scale `value` and `target` are read against. Left at 100 they are percentages, which
9
+ * is why nothing existing changes. Set it to the real total — `[value]="37" [max]="80"` — and
10
+ * the accessible name carries "37 of 80" rather than the 46% a caller would otherwise have to
11
+ * compute and a screen reader would read instead. Zero or less falls back to 100, because a
12
+ * scale with no width has no fraction to draw. */
13
+ max = input(100, ...(ngDevMode ? [{ debugName: "max" }] : /* istanbul ignore next */ []));
7
14
  /** Colour variant — drives the success/warning/error styling. */
8
15
  variant = input('default', ...(ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []));
9
16
  /** Indeterminate (unknown-duration) animation instead of a fixed `value`. */
10
17
  indeterminate = input(false, { ...(ngDevMode ? { debugName: "indeterminate" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
11
- /** Accessible name for the progress bar (e.g. "Upload progress"). */
18
+ /** Accessible name for the progress bar (e.g. "Upload progress"). With a `target` set, name the
19
+ * comparison here — the mark is drawn, and `role="progressbar"` has no second value to announce,
20
+ * so "Resolved 62% against a 75% target" is what reaches a screen reader. */
12
21
  ariaLabel = input(null, ...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
13
- clampedValue = computed(() => {
14
- const value = this.value();
15
- return Math.max(0, Math.min(100, value));
16
- }, ...(ngDevMode ? [{ debugName: "clampedValue" }] : /* istanbul ignore next */ []));
22
+ /** A second point on the same scale as `value`, drawn as a hairline across the track — a goal or
23
+ * a baseline to read `value` against. Clamped like `value`, ignored while `indeterminate`, and
24
+ * unset draws nothing. */
25
+ target = input(null, ...(ngDevMode ? [{ debugName: "target" }] : /* istanbul ignore next */ []));
26
+ scale = computed(() => {
27
+ const max = this.max();
28
+ return max > 0 ? max : 100;
29
+ }, ...(ngDevMode ? [{ debugName: "scale" }] : /* istanbul ignore next */ []));
30
+ clampedValue = computed(() => Math.max(0, Math.min(this.scale(), this.value())), ...(ngDevMode ? [{ debugName: "clampedValue" }] : /* istanbul ignore next */ []));
31
+ /** Width and offset are percentages of the track whatever the scale is. */
32
+ valuePercent = computed(() => (this.clampedValue() / this.scale()) * 100, ...(ngDevMode ? [{ debugName: "valuePercent" }] : /* istanbul ignore next */ []));
33
+ clampedTarget = computed(() => {
34
+ const target = this.target();
35
+ return target == null ? null : Math.max(0, Math.min(this.scale(), target));
36
+ }, ...(ngDevMode ? [{ debugName: "clampedTarget" }] : /* istanbul ignore next */ []));
37
+ targetPercent = computed(() => {
38
+ const target = this.clampedTarget();
39
+ return target == null ? null : (target / this.scale()) * 100;
40
+ }, ...(ngDevMode ? [{ debugName: "targetPercent" }] : /* istanbul ignore next */ []));
17
41
  isIndet = computed(() => this.indeterminate(), ...(ngDevMode ? [{ debugName: "isIndet" }] : /* istanbul ignore next */ []));
18
42
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: ProgressComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
19
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: ProgressComponent, isStandalone: true, selector: "ds-progress", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, indeterminate: { classPropertyName: "indeterminate", publicName: "indeterminate", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "role": "progressbar", "aria-valuemin": "0", "aria-valuemax": "100" }, properties: { "attr.aria-valuenow": "isIndet() ? null : clampedValue()", "attr.aria-label": "ariaLabel()", "class.success": "variant() === 'success'", "class.warning": "variant() === 'warning'", "class.error": "variant() === 'error'", "class.indeterminate": "isIndet()" } }, ngImport: i0, template: "@if (isIndet()) {\n <span></span>\n} @else {\n <span [style.width.%]=\"clampedValue()\"></span>\n}\n", styles: ["@charset \"UTF-8\";:host{--_progress-height: var(--ds-progress-height, var(--progress-h));--_progress-track-color: var(--ds-progress-track-color, var(--surface-muted));--_progress-bar-color: var(--ds-progress-bar-color, var(--accent));display:block;width:100%;height:var(--_progress-height);background:var(--_progress-track-color);border-radius:var(--radius-pill);overflow:hidden}:host>span{display:block;height:100%;background:var(--_progress-bar-color);border-radius:var(--radius-pill);transition:width var(--duration-base) var(--ease-standard)}:host(.success){--_progress-bar-color-success: var(--ds-progress-bar-color-success, var(--success))}:host(.warning){--_progress-bar-color-warning: var(--ds-progress-bar-color-warning, var(--yellow-500))}:host(.error){--_progress-bar-color-error: var(--ds-progress-bar-color-error, var(--error))}:host(.success)>span{background:var(--_progress-bar-color-success)}:host(.warning)>span{background:var(--_progress-bar-color-warning)}:host(.error)>span{background:var(--_progress-bar-color-error)}:host(.indeterminate)>span{width:30%;animation:progress-indet var(--duration-loop-slow) var(--ease-standard) infinite}@keyframes progress-indet{0%{transform:translate(-100%)}to{transform:translate(400%)}}\n"] });
43
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: ProgressComponent, isStandalone: true, selector: "ds-progress", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, max: { classPropertyName: "max", publicName: "max", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, indeterminate: { classPropertyName: "indeterminate", publicName: "indeterminate", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, target: { classPropertyName: "target", publicName: "target", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "role": "progressbar", "aria-valuemin": "0" }, properties: { "attr.aria-valuemax": "scale()", "attr.aria-valuenow": "isIndet() ? null : clampedValue()", "attr.aria-label": "ariaLabel()", "class.success": "variant() === 'success'", "class.warning": "variant() === 'warning'", "class.error": "variant() === 'error'", "class.indeterminate": "isIndet()" } }, ngImport: i0, template: "@if (isIndet()) {\n <span></span>\n} @else {\n <span [style.width.%]=\"valuePercent()\"></span>\n\n @if (targetPercent() !== null) {\n <div\n class=\"target\"\n [style.left.%]=\"targetPercent()\">\n </div>\n }\n}\n", styles: ["@charset \"UTF-8\";:host{--_progress-height: var(--ds-progress-height, var(--progress-h));--_progress-track-color: var(--ds-progress-track-color, var(--surface-muted));--_progress-bar-color: var(--ds-progress-bar-color, var(--accent));--_progress-target-color: var(--ds-progress-target-color, var(--text-primary));--_progress-target-width: var(--ds-progress-target-width, 2px);display:block;position:relative;width:100%;height:var(--_progress-height);background:var(--_progress-track-color);border-radius:var(--radius-pill);overflow:hidden}:host>span{display:block;height:100%;background:var(--_progress-bar-color);border-radius:var(--radius-pill);transition:width var(--duration-base) var(--ease-standard)}:host>.target{position:absolute;top:0;height:100%;width:var(--_progress-target-width);transform:translate(-50%);background:var(--_progress-target-color);transition:left var(--duration-base) var(--ease-standard)}:host(.success){--_progress-bar-color-success: var(--ds-progress-bar-color-success, var(--success))}:host(.warning){--_progress-bar-color-warning: var(--ds-progress-bar-color-warning, var(--yellow-500))}:host(.error){--_progress-bar-color-error: var(--ds-progress-bar-color-error, var(--error))}:host(.success)>span{background:var(--_progress-bar-color-success)}:host(.warning)>span{background:var(--_progress-bar-color-warning)}:host(.error)>span{background:var(--_progress-bar-color-error)}:host(.indeterminate)>span{width:30%;animation:progress-indet var(--duration-loop-slow) var(--ease-standard) infinite}@keyframes progress-indet{0%{transform:translate(-100%)}to{transform:translate(400%)}}\n"] });
20
44
  }
21
45
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: ProgressComponent, decorators: [{
22
46
  type: Component,
23
47
  args: [{ selector: 'ds-progress', standalone: true, imports: [], encapsulation: ViewEncapsulation.Emulated, host: {
24
48
  role: 'progressbar',
25
49
  'aria-valuemin': '0',
26
- 'aria-valuemax': '100',
50
+ '[attr.aria-valuemax]': 'scale()',
27
51
  '[attr.aria-valuenow]': 'isIndet() ? null : clampedValue()',
28
52
  '[attr.aria-label]': 'ariaLabel()',
29
53
  '[class.success]': "variant() === 'success'",
30
54
  '[class.warning]': "variant() === 'warning'",
31
55
  '[class.error]': "variant() === 'error'",
32
56
  '[class.indeterminate]': 'isIndet()',
33
- }, template: "@if (isIndet()) {\n <span></span>\n} @else {\n <span [style.width.%]=\"clampedValue()\"></span>\n}\n", styles: ["@charset \"UTF-8\";:host{--_progress-height: var(--ds-progress-height, var(--progress-h));--_progress-track-color: var(--ds-progress-track-color, var(--surface-muted));--_progress-bar-color: var(--ds-progress-bar-color, var(--accent));display:block;width:100%;height:var(--_progress-height);background:var(--_progress-track-color);border-radius:var(--radius-pill);overflow:hidden}:host>span{display:block;height:100%;background:var(--_progress-bar-color);border-radius:var(--radius-pill);transition:width var(--duration-base) var(--ease-standard)}:host(.success){--_progress-bar-color-success: var(--ds-progress-bar-color-success, var(--success))}:host(.warning){--_progress-bar-color-warning: var(--ds-progress-bar-color-warning, var(--yellow-500))}:host(.error){--_progress-bar-color-error: var(--ds-progress-bar-color-error, var(--error))}:host(.success)>span{background:var(--_progress-bar-color-success)}:host(.warning)>span{background:var(--_progress-bar-color-warning)}:host(.error)>span{background:var(--_progress-bar-color-error)}:host(.indeterminate)>span{width:30%;animation:progress-indet var(--duration-loop-slow) var(--ease-standard) infinite}@keyframes progress-indet{0%{transform:translate(-100%)}to{transform:translate(400%)}}\n"] }]
34
- }], propDecorators: { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], indeterminate: [{ type: i0.Input, args: [{ isSignal: true, alias: "indeterminate", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }] } });
57
+ }, template: "@if (isIndet()) {\n <span></span>\n} @else {\n <span [style.width.%]=\"valuePercent()\"></span>\n\n @if (targetPercent() !== null) {\n <div\n class=\"target\"\n [style.left.%]=\"targetPercent()\">\n </div>\n }\n}\n", styles: ["@charset \"UTF-8\";:host{--_progress-height: var(--ds-progress-height, var(--progress-h));--_progress-track-color: var(--ds-progress-track-color, var(--surface-muted));--_progress-bar-color: var(--ds-progress-bar-color, var(--accent));--_progress-target-color: var(--ds-progress-target-color, var(--text-primary));--_progress-target-width: var(--ds-progress-target-width, 2px);display:block;position:relative;width:100%;height:var(--_progress-height);background:var(--_progress-track-color);border-radius:var(--radius-pill);overflow:hidden}:host>span{display:block;height:100%;background:var(--_progress-bar-color);border-radius:var(--radius-pill);transition:width var(--duration-base) var(--ease-standard)}:host>.target{position:absolute;top:0;height:100%;width:var(--_progress-target-width);transform:translate(-50%);background:var(--_progress-target-color);transition:left var(--duration-base) var(--ease-standard)}:host(.success){--_progress-bar-color-success: var(--ds-progress-bar-color-success, var(--success))}:host(.warning){--_progress-bar-color-warning: var(--ds-progress-bar-color-warning, var(--yellow-500))}:host(.error){--_progress-bar-color-error: var(--ds-progress-bar-color-error, var(--error))}:host(.success)>span{background:var(--_progress-bar-color-success)}:host(.warning)>span{background:var(--_progress-bar-color-warning)}:host(.error)>span{background:var(--_progress-bar-color-error)}:host(.indeterminate)>span{width:30%;animation:progress-indet var(--duration-loop-slow) var(--ease-standard) infinite}@keyframes progress-indet{0%{transform:translate(-100%)}to{transform:translate(400%)}}\n"] }]
58
+ }], propDecorators: { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }], max: [{ type: i0.Input, args: [{ isSignal: true, alias: "max", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], indeterminate: [{ type: i0.Input, args: [{ isSignal: true, alias: "indeterminate", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], target: [{ type: i0.Input, args: [{ isSignal: true, alias: "target", required: false }] }] } });
35
59
 
36
60
  /**
37
61
  * Generated bundle index. Do not edit.
@@ -1 +1 @@
1
- {"version":3,"file":"ids-group-ltd-ids-design-system-components-progress.mjs","sources":["../../../src/lib/components/progress/progress.component.ts","../../../src/lib/components/progress/progress.component.html","../../../src/lib/components/progress/ids-group-ltd-ids-design-system-components-progress.ts"],"sourcesContent":["import {\n Component,\n ViewEncapsulation,\n booleanAttribute,\n computed,\n input,\n} from '@angular/core';\nimport type { ProgressVariant } from './progress.types';\n\n@Component({\n selector: 'ds-progress',\n standalone: true,\n imports: [],\n templateUrl: './progress.component.html',\n styleUrl: './progress.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n host: {\n role: 'progressbar',\n 'aria-valuemin': '0',\n 'aria-valuemax': '100',\n '[attr.aria-valuenow]': 'isIndet() ? null : clampedValue()',\n '[attr.aria-label]': 'ariaLabel()',\n '[class.success]': \"variant() === 'success'\",\n '[class.warning]': \"variant() === 'warning'\",\n '[class.error]': \"variant() === 'error'\",\n '[class.indeterminate]': 'isIndet()',\n },\n})\nexport class ProgressComponent {\n /** Progress 0–100; clamped, and ignored while `indeterminate`. */\n readonly value = input<number>(0);\n /** Colour variant — drives the success/warning/error styling. */\n readonly variant = input<ProgressVariant>('default');\n /** Indeterminate (unknown-duration) animation instead of a fixed `value`. */\n readonly indeterminate = input(false, { transform: booleanAttribute });\n /** Accessible name for the progress bar (e.g. \"Upload progress\"). */\n readonly ariaLabel = input<string | null>(null);\n\n protected readonly clampedValue = computed(() => {\n const value = this.value();\n\n return Math.max(0, Math.min(100, value));\n });\n\n protected readonly isIndet = computed(() => this.indeterminate());\n}\n","@if (isIndet()) {\n <span></span>\n} @else {\n <span [style.width.%]=\"clampedValue()\"></span>\n}\n","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;AACpB,wBAAA,eAAe,EAAE,KAAK;AACtB,wBAAA,sBAAsB,EAAE,mCAAmC;AAC3D,wBAAA,mBAAmB,EAAE,aAAa;AAClC,wBAAA,iBAAiB,EAAE,yBAAyB;AAC5C,wBAAA,iBAAiB,EAAE,yBAAyB;AAC5C,wBAAA,eAAe,EAAE,uBAAuB;AACxC,wBAAA,uBAAuB,EAAE,WAAW;AACrC,qBAAA,EAAA,QAAA,EAAA,wGAAA,EAAA,MAAA,EAAA,CAAA,+tCAAA,CAAA,EAAA;;;AE1BH;;AAEG;;;;"}
1
+ {"version":3,"file":"ids-group-ltd-ids-design-system-components-progress.mjs","sources":["../../../src/lib/components/progress/progress.component.ts","../../../src/lib/components/progress/progress.component.html","../../../src/lib/components/progress/ids-group-ltd-ids-design-system-components-progress.ts"],"sourcesContent":["import {\n Component,\n ViewEncapsulation,\n booleanAttribute,\n computed,\n input,\n} from '@angular/core';\nimport type { ProgressVariant } from './progress.types';\n\n@Component({\n selector: 'ds-progress',\n standalone: true,\n imports: [],\n templateUrl: './progress.component.html',\n styleUrl: './progress.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n host: {\n role: 'progressbar',\n 'aria-valuemin': '0',\n '[attr.aria-valuemax]': 'scale()',\n '[attr.aria-valuenow]': 'isIndet() ? null : clampedValue()',\n '[attr.aria-label]': 'ariaLabel()',\n '[class.success]': \"variant() === 'success'\",\n '[class.warning]': \"variant() === 'warning'\",\n '[class.error]': \"variant() === 'error'\",\n '[class.indeterminate]': 'isIndet()',\n },\n})\nexport class ProgressComponent {\n /** Progress in units of `max`, so 0–100 by default; clamped, and ignored while\n * `indeterminate`. */\n readonly value = input<number>(0);\n /** The full scale `value` and `target` are read against. Left at 100 they are percentages, which\n * is why nothing existing changes. Set it to the real total — `[value]=\"37\" [max]=\"80\"` — and\n * the accessible name carries \"37 of 80\" rather than the 46% a caller would otherwise have to\n * compute and a screen reader would read instead. Zero or less falls back to 100, because a\n * scale with no width has no fraction to draw. */\n readonly max = input<number>(100);\n /** Colour variant — drives the success/warning/error styling. */\n readonly variant = input<ProgressVariant>('default');\n /** Indeterminate (unknown-duration) animation instead of a fixed `value`. */\n readonly indeterminate = input(false, { transform: booleanAttribute });\n /** Accessible name for the progress bar (e.g. \"Upload progress\"). With a `target` set, name the\n * comparison here — the mark is drawn, and `role=\"progressbar\"` has no second value to announce,\n * so \"Resolved 62% against a 75% target\" is what reaches a screen reader. */\n readonly ariaLabel = input<string | null>(null);\n /** A second point on the same scale as `value`, drawn as a hairline across the track — a goal or\n * a baseline to read `value` against. Clamped like `value`, ignored while `indeterminate`, and\n * unset draws nothing. */\n readonly target = input<number | null>(null);\n\n protected readonly scale = computed(() => {\n const max = this.max();\n\n return max > 0 ? max : 100;\n });\n\n protected readonly clampedValue = computed(() =>\n Math.max(0, Math.min(this.scale(), this.value())),\n );\n\n /** Width and offset are percentages of the track whatever the scale is. */\n protected readonly valuePercent = computed(\n () => (this.clampedValue() / this.scale()) * 100,\n );\n\n protected readonly clampedTarget = computed(() => {\n const target = this.target();\n\n return target == null ? null : Math.max(0, Math.min(this.scale(), target));\n });\n\n protected readonly targetPercent = computed(() => {\n const target = this.clampedTarget();\n\n return target == null ? null : (target / this.scale()) * 100;\n });\n\n protected readonly isIndet = computed(() => this.indeterminate());\n}\n","@if (isIndet()) {\n <span></span>\n} @else {\n <span [style.width.%]=\"valuePercent()\"></span>\n\n @if (targetPercent() !== null) {\n <div\n class=\"target\"\n [style.left.%]=\"targetPercent()\">\n </div>\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;MA4Ba,iBAAiB,CAAA;AAC5B;AACuB;AACd,IAAA,KAAK,GAAG,KAAK,CAAS,CAAC,4EAAC;AACjC;;;;AAImD;AAC1C,IAAA,GAAG,GAAG,KAAK,CAAS,GAAG,0EAAC;;AAExB,IAAA,OAAO,GAAG,KAAK,CAAkB,SAAS,8EAAC;;IAE3C,aAAa,GAAG,KAAK,CAAC,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AAC9D,IAAA,CAAC,oFAAC;IAEiB,OAAO,GAAG,QAAQ,CAAC,MAAM,IAAI,CAAC,aAAa,EAAE,EAAA,IAAA,SAAA,GAAA,CAAA,EAAA,SAAA,EAAA,SAAA,EAAA,CAAA,8BAAA,EAAA,CAAA,CAAC;wGAlDtD,iBAAiB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAAjB,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,iBAAiB,msCC5B9B,4OAYA,EAAA,MAAA,EAAA,CAAA,klDAAA,CAAA,EAAA,CAAA;;4FDgBa,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAnB7B,SAAS;+BACE,aAAa,EAAA,UAAA,EACX,IAAI,EAAA,OAAA,EACP,EAAE,iBAGI,iBAAiB,CAAC,QAAQ,EAAA,IAAA,EACnC;AACJ,wBAAA,IAAI,EAAE,aAAa;AACnB,wBAAA,eAAe,EAAE,GAAG;AACpB,wBAAA,sBAAsB,EAAE,SAAS;AACjC,wBAAA,sBAAsB,EAAE,mCAAmC;AAC3D,wBAAA,mBAAmB,EAAE,aAAa;AAClC,wBAAA,iBAAiB,EAAE,yBAAyB;AAC5C,wBAAA,iBAAiB,EAAE,yBAAyB;AAC5C,wBAAA,eAAe,EAAE,uBAAuB;AACxC,wBAAA,uBAAuB,EAAE,WAAW;AACrC,qBAAA,EAAA,QAAA,EAAA,4OAAA,EAAA,MAAA,EAAA,CAAA,klDAAA,CAAA,EAAA;;;AE1BH;;AAEG;;;;"}
@@ -4,7 +4,7 @@ import { NG_VALUE_ACCESSOR } from '@angular/forms';
4
4
  import { Overlay } from '@angular/cdk/overlay';
5
5
  import { TemplatePortal } from '@angular/cdk/portal';
6
6
  import * as i1 from '@ids-group-ltd/ids-design-system/components';
7
- import { DsControlValueAccessor, DsStaticPreview, trimmedText, DsOptionTemplateDirective, DsPickerTriggerDirective, DsPanelHeaderTemplateDirective, DsPanelFooterTemplateDirective, DsGroupLabelTemplateDirective, DsEmptyTemplateDirective, nextControlId, resolveFieldMessage, scrollActiveOptionIntoView, announceOptionCount, dropdownOverlay, prepareOverlayEnter, forwardOverlayTokens, closeOnOutsidePointer, closeOnScroll, clearOnDetach, disposeWithLeave, createTypeAhead } from '@ids-group-ltd/ids-design-system/components';
7
+ import { DsControlValueAccessor, DsStaticPreview, trimmedText, DsOptionTemplateDirective, DsPickerTriggerDirective, DsPanelHeaderTemplateDirective, DsPanelFooterTemplateDirective, DsGroupLabelTemplateDirective, DsEmptyTemplateDirective, nextControlId, resolveFieldMessage, scrollActiveOptionIntoView, announceOptionCount, dropdownOverlay, panelClassesOf, prepareOverlayEnter, forwardOverlayTokens, closeOnOutsidePointer, closeOnScroll, clearOnDetach, disposeWithLeave, createTypeAhead } from '@ids-group-ltd/ids-design-system/components';
8
8
  import { NgTemplateOutlet } from '@angular/common';
9
9
  import { IconComponent } from '@ids-group-ltd/ids-design-system/icons';
10
10
  import { SpinnerComponent } from '@ids-group-ltd/ids-design-system/components/spinner';
@@ -66,6 +66,11 @@ class SelectComponent extends DsControlValueAccessor {
66
66
  * than the panel otherwise walks the cursor out of sight. Set `false` only if
67
67
  * you are driving the scroll position yourself. */
68
68
  scrollActiveIntoView = input(true, { ...(ngDevMode ? { debugName: "scrollActiveIntoView" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
69
+ /** Extra classes for the portaled panel, beside `ds-dropdown-panel`,
70
+ * `ds-overlay-pane` and this component's own `ds-select-panel`. The panel is
71
+ * portaled out of the host, so a class on the pane is the only way a consumer
72
+ * stylesheet reaches ONE instance of it. */
73
+ panelClass = input([], ...(ngDevMode ? [{ debugName: "panelClass" }] : /* istanbul ignore next */ []));
69
74
  /** Prevents opening the dropdown while still allowing focus. */
70
75
  readOnly = input(false, { ...(ngDevMode ? { debugName: "readOnly" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
71
76
  /**
@@ -217,7 +222,7 @@ class SelectComponent extends DsControlValueAccessor {
217
222
  }
218
223
  const triggerElement = this.trigger().nativeElement;
219
224
  const triggerWidth = triggerElement.getBoundingClientRect().width;
220
- const { positionStrategy, config } = dropdownOverlay(this.overlay, triggerElement);
225
+ const { positionStrategy, config } = dropdownOverlay(this.overlay, triggerElement, ['ds-select-panel', ...panelClassesOf(this.panelClass())]);
221
226
  if (this.width() === 'content') {
222
227
  config.minWidth = triggerWidth;
223
228
  }
@@ -419,7 +424,7 @@ class SelectComponent extends DsControlValueAccessor {
419
424
  return firstEnabledIndex(this.cursorList());
420
425
  }
421
426
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: SelectComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
422
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: SelectComponent, isStandalone: true, selector: "ds-select", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null }, width: { classPropertyName: "width", publicName: "width", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, scrollActiveIntoView: { classPropertyName: "scrollActiveIntoView", publicName: "scrollActiveIntoView", isSignal: true, isRequired: false, transformFunction: null }, readOnly: { classPropertyName: "readOnly", publicName: "readOnly", isSignal: true, isRequired: false, transformFunction: null }, readonlyBinding: { classPropertyName: "readonlyBinding", publicName: "readonly", isSignal: true, isRequired: false, transformFunction: null }, success: { classPropertyName: "success", publicName: "success", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, optional: { classPropertyName: "optional", publicName: "optional", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, clearable: { classPropertyName: "clearable", publicName: "clearable", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange", opened: "opened", closed: "closed" }, host: { properties: { "attr.data-field-state": "controlState()", "class.in-group": "inGroup", "class.content-width": "width() === 'content'" } }, providers: [
427
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: SelectComponent, isStandalone: true, selector: "ds-select", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null }, width: { classPropertyName: "width", publicName: "width", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, scrollActiveIntoView: { classPropertyName: "scrollActiveIntoView", publicName: "scrollActiveIntoView", isSignal: true, isRequired: false, transformFunction: null }, panelClass: { classPropertyName: "panelClass", publicName: "panelClass", isSignal: true, isRequired: false, transformFunction: null }, readOnly: { classPropertyName: "readOnly", publicName: "readOnly", isSignal: true, isRequired: false, transformFunction: null }, readonlyBinding: { classPropertyName: "readonlyBinding", publicName: "readonly", isSignal: true, isRequired: false, transformFunction: null }, success: { classPropertyName: "success", publicName: "success", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, optional: { classPropertyName: "optional", publicName: "optional", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, clearable: { classPropertyName: "clearable", publicName: "clearable", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange", opened: "opened", closed: "closed" }, host: { properties: { "attr.data-field-state": "controlState()", "class.in-group": "inGroup", "class.content-width": "width() === 'content'" } }, providers: [
423
428
  {
424
429
  provide: NG_VALUE_ACCESSOR,
425
430
  useExisting: forwardRef(() => SelectComponent),
@@ -445,7 +450,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImpo
445
450
  multi: true,
446
451
  },
447
452
  ], 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 (optional)\n </span>\n }\n </span>\n}\n\n<div\n #trigger\n role=\"combobox\"\n aria-haspopup=\"listbox\"\n [class]=\"triggerClasses()\"\n [attr.name]=\"name()\"\n [attr.tabindex]=\"isDisabled() ? -1 : 0\"\n [attr.aria-expanded]=\"open() || preview.staticPreview()\"\n [attr.aria-controls]=\"listboxId\"\n [attr.aria-activedescendant]=\"activeDescendant()\"\n [attr.aria-labelledby]=\"label() ? labelId : null\"\n [attr.aria-label]=\"resolvedAriaLabel()\"\n [attr.aria-invalid]=\"invalidResolved() ? 'true' : null\"\n [attr.aria-describedby]=\"describedByIds(hintId(), groupMessage())\"\n [attr.aria-required]=\"required() ? 'true' : null\"\n [attr.aria-disabled]=\"isDisabled() ? 'true' : null\"\n (click)=\"toggle()\"\n (keydown)=\"onTriggerKeydown($event)\">\n @if (selectedOption()?.icon) {\n <ds-icon\n class=\"trigger-icon\"\n [name]=\"selectedOption()!.icon!\"\n [size]=\"16\" />\n }\n\n @if (pickerTrigger(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n $implicit: selectedOption(),\n selected: selectedOption(),\n count: hasValue() ? 1 : 0,\n open: open(),\n disabled: isDisabled(),\n }\" />\n } @else {\n <span\n class=\"trigger-text\"\n [class.is-placeholder]=\"!hasValue()\">\n {{ displayLabel() }}\n </span>\n }\n\n @if (\n clearable() &&\n hasValue() &&\n !isDisabled() &&\n !isReadOnly()\n ) {\n <button\n type=\"button\"\n class=\"clear-btn\"\n aria-label=\"Clear selection\"\n (click)=\"clearValue($event)\">\n <ds-icon\n name=\"x\"\n [size]=\"14\" />\n </button>\n }\n\n <span class=\"chevron\">\n <ds-icon\n name=\"chevronDown\"\n [size]=\"14\" />\n </span>\n</div>\n\n<ds-field-message\n [icon]=\"messageIcon()\"\n [text]=\"message().text\"\n [state]=\"message().state\"\n [messageId]=\"hintId()\"\n [reserve]=\"reserveMessageResolved()\" />\n\n@if (preview.staticPreview()) {\n <div class=\"ds-dropdown-panel\">\n <ng-container [ngTemplateOutlet]=\"panelContentTpl()\" />\n </div>\n}\n\n<ng-template #panel>\n <ng-container [ngTemplateOutlet]=\"panelContentTpl()\" />\n</ng-template>\n\n<ng-template #panelContent>\n <div class=\"dropdown-panel\">\n @if (panelHeaderTemplate(); as tpl) {\n <div class=\"panel-header\">\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n count: options().length,\n total: options().length,\n query: '',\n }\" />\n </div>\n }\n\n <ul\n class=\"dropdown-list\"\n role=\"listbox\"\n [attr.aria-busy]=\"loading() ? 'true' : null\"\n [id]=\"listboxId\"\n [attr.aria-labelledby]=\"label() ? labelId : null\">\n @for (item of options(); track $index; let groupIdx = $index) {\n @if (isOptionGroup(item)) {\n <li\n class=\"optgroup\"\n role=\"group\"\n [attr.aria-label]=\"item.label\">\n <span\n class=\"optgroup-label\"\n [class.is-first]=\"groupIdx === 0\">\n @if (groupLabelTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n $implicit: item,\n group: item,\n count: item.options.length,\n }\" />\n } @else {\n {{ item.label }}\n }\n </span>\n\n <ul\n class=\"optgroup-list\"\n role=\"presentation\">\n @for (opt of item.options; track opt.value) {\n <li role=\"presentation\">\n <button\n type=\"button\"\n role=\"option\"\n tabindex=\"-1\"\n class=\"option\"\n [id]=\"optionId(flatIndexOf(opt))\"\n [attr.aria-selected]=\"isSelected(opt)\"\n [attr.aria-disabled]=\"\n isOptionDisabled(opt, item.disabled) ? 'true' : null\n \"\n [attr.aria-describedby]=\"\n opt.disabled && opt.disabledReason\n ? optionId(flatIndexOf(opt)) + '-reason'\n : null\n \"\n [class.is-selected]=\"isSelected(opt)\"\n [class.is-active]=\"isActive(flatIndexOf(opt))\"\n [class.is-disabled]=\"isOptionDisabled(opt, item.disabled)\"\n [disabled]=\"isOptionDisabled(opt, item.disabled)\"\n (click)=\"pick(opt, item.disabled)\"\n (mouseenter)=\"\n cursorFromKeyboard.set(false);\n activeIndex.set(flatIndexOf(opt))\n \">\n @if (opt.icon) {\n <ds-icon\n class=\"option-icon\"\n [name]=\"opt.icon\"\n [size]=\"16\" />\n }\n\n @if (opt.disabled && opt.disabledReason) {\n <span\n class=\"option-reason\"\n [id]=\"optionId(flatIndexOf(opt)) + '-reason'\">\n {{ opt.disabledReason }}\n </span>\n }\n\n <span class=\"option-label\">\n @if (optionTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n $implicit: opt,\n option: opt,\n }\" />\n } @else {\n {{ opt.label }}\n }\n </span>\n\n <span\n class=\"option-check\"\n [class.is-shown]=\"isSelected(opt)\">\n </span>\n </button>\n </li>\n }\n </ul>\n </li>\n } @else {\n <li role=\"presentation\">\n <button\n type=\"button\"\n role=\"option\"\n tabindex=\"-1\"\n class=\"option\"\n [id]=\"optionId(flatIndexOf(item))\"\n [attr.aria-selected]=\"isSelected(item)\"\n [attr.aria-disabled]=\"item.disabled ? 'true' : null\"\n [class.is-selected]=\"isSelected(item)\"\n [class.is-active]=\"isActive(flatIndexOf(item))\"\n [class.is-disabled]=\"item.disabled\"\n [disabled]=\"item.disabled\"\n (click)=\"pick(item)\"\n (mouseenter)=\"\n cursorFromKeyboard.set(false);\n activeIndex.set(flatIndexOf(item))\n \">\n @if (item.icon) {\n <ds-icon\n class=\"option-icon\"\n [name]=\"item.icon\"\n [size]=\"16\" />\n }\n\n <span class=\"option-label\">\n @if (optionTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n $implicit: item,\n option: item,\n }\" />\n } @else {\n {{ item.label }}\n }\n </span>\n\n <span\n class=\"option-check\"\n [class.is-shown]=\"isSelected(item)\">\n </span>\n </button>\n </li>\n }\n }\n\n @if (loading()) {\n <li\n class=\"empty t-s\"\n role=\"presentation\">\n <ds-spinner size=\"sm\" />\n </li>\n } @else if (options().length === 0) {\n <li\n class=\"empty t-s\"\n role=\"presentation\">\n @if (emptyTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" />\n } @else {\n No options\n }\n </li>\n }\n </ul>\n\n @if (panelFooterTemplate(); as tpl) {\n <div class=\"panel-footer\">\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n count: options().length,\n total: options().length,\n query: '',\n }\" />\n </div>\n }\n </div>\n</ng-template>\n", styles: ["@charset \"UTF-8\";:where(:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}@keyframes ds-focus-ring-in{0%{outline-color:transparent}}:root[data-focus=ring]{--ds-field-focus-shadow: var(--focus-ring);--ds-field-focus-shadow-error: var(--focus-ring-error)}:root[data-focus=edge]{--focus-ring-offset: 0px;--ds-field-focus-shadow: 0 0 0 var(--border-width-default) var(--primary);--ds-field-focus-shadow-error: 0 0 0 var(--border-width-default) var(--error)}[data-focus=inset]{--focus-ring-offset: calc(-1 * var(--focus-ring-width));--ds-field-focus-shadow: var(--focus-ring-inset);--ds-field-focus-shadow-error: var(--focus-ring-inset-error)}@media(forced-colors:active){:where(:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}:host{--_select-focus-shadow: var(--ds-select-focus-shadow, var(--ds-field-focus-shadow));--_select-focus-shadow-error: var(--ds-select-focus-shadow-error, var(--ds-field-focus-shadow-error));--_select-bg-color: var(--ds-select-bg-color, var(--surface-default));--_select-border-color: var(--ds-select-border-color, var(--border-default));--_select-text-color: var(--ds-select-text-color, var(--text-primary));--_select-radius: var(--ds-select-radius, var(--ds-radius-control));display:flex;flex-direction:column;gap:var(--field-label-gap);width:100%}:host(.content-width){width:fit-content}.label{--_field-label-font-size: var(--ds-field-label-font-size, var(--font-size-xs));--_field-label-weight: var(--ds-field-label-weight, var(--font-weight-bold));--_field-label-color: var(--ds-field-label-color, var(--text-secondary));--_field-label-transform: var(--ds-field-label-transform, none);--_field-label-tracking: var(--ds-field-label-tracking, normal);display:flex;align-items:center;gap:var(--field-gap-req);font:var(--_field-label-weight) var(--_field-label-font-size)/var(--line-height-base) var(--font-sans);color:var(--_field-label-color);text-transform:var(--_field-label-transform);letter-spacing:var(--_field-label-tracking)}.label .req{color:var(--error);font-weight:var(--font-weight-semibold)}.label .optional-marker{color:var(--text-tertiary);font-weight:var(--font-weight-regular)}.dropdown{display:flex;align-items:center;gap:var(--space-2);width:100%;background:var(--_select-bg-color);border:var(--border-width-default) solid var(--_select-border-color);border-radius:var(--_select-radius);padding:var(--field-pad-y) var(--field-pad-x);--_field-box-height: var(--ds-field-height, var(--field-h-md));height:var(--_field-box-height);font:var(--font-weight-regular) var(--font-size-s)/var(--line-height-base) var(--font-sans);color:var(--_select-text-color);text-align:left;cursor:pointer;transition:border-color var(--duration-fast) var(--ease-standard),box-shadow var(--duration-fast) var(--ease-standard),background var(--duration-fast) var(--ease-standard)}.dropdown .trigger-text{flex:1;min-width:0;overflow:clip;overflow-clip-margin:var(--space-1);text-overflow:ellipsis;white-space:nowrap}.dropdown .trigger-text.is-placeholder{color:var(--text-tertiary)}.dropdown .trigger-icon{color:var(--icon-default);flex:0 0 auto}.dropdown .clear-btn{border:0;background:transparent;display:inline-flex;align-items:center;justify-content:center;color:var(--icon-default);border-radius:var(--ds-radius-inner);padding:var(--space-0-5);cursor:pointer;flex:0 0 auto}.dropdown .clear-btn:hover{color:var(--text-primary);background:var(--surface-secondary)}.dropdown .clear-btn:active:not(:disabled,[disabled],.is-disabled){filter:brightness(var(--ds-press-brightness, .9));transform:scale(var(--ds-press-scale, .97))}.dropdown .chevron{display:inline-flex;align-items:center;justify-content:center;color:var(--icon-default);transition:transform var(--duration-fast) var(--ease-standard)}.dropdown:hover:not(:disabled){border-color:var(--border-strong)}@media not (forced-colors:active){.dropdown:focus-visible{outline:none}}.dropdown:focus-visible{border-color:var(--accent);box-shadow:var(--_select-focus-shadow)}.dropdown.open{border-color:var(--accent);box-shadow:var(--_select-focus-shadow)}.dropdown.open .chevron{transform:rotate(180deg)}.dropdown.readonly{background:var(--surface-secondary);border-color:var(--border-divider);color:var(--text-secondary);cursor:default}.dropdown.readonly:hover{border-color:var(--border-divider)}.dropdown.readonly .chevron{display:none}.dropdown.disabled,.dropdown:disabled{background:var(--surface-disabled);border-color:var(--border-disabled);color:var(--text-disabled);cursor:not-allowed}.dropdown.disabled .chevron,.dropdown:disabled .chevron{color:var(--icon-muted)}.dropdown.sm{--_field-box-height: var(--ds-field-height, var(--field-h-sm));height:var(--_field-box-height);padding:0 var(--space-2)}.dropdown.lg{--_field-box-height: var(--ds-field-height, var(--field-h-lg));height:var(--_field-box-height)}:host(.in-group){width:auto;display:flex}:host(.in-group) .label,:host(.in-group) ds-field-message{display:none}:host(.in-group) .dropdown{border:0;border-radius:0;background:transparent;flex:1;height:auto}:host(.in-group) .dropdown:hover,:host(.in-group) .dropdown:focus,:host(.in-group) .dropdown:focus-visible,:host(.in-group) .dropdown:focus-within{border:0;box-shadow:none}@media not (forced-colors:active){:host(.in-group) .dropdown:hover,:host(.in-group) .dropdown:focus,:host(.in-group) .dropdown:focus-visible,:host(.in-group) .dropdown:focus-within{outline:none}}:host([data-field-state=error]:not(.in-group)) .dropdown:not(.disabled):not(:disabled){border-color:var(--error);background-color:var(--error-subtitle)}:host([data-field-state=error]:not(.in-group)) .dropdown:not(.disabled):not(:disabled):focus-within,:host([data-field-state=error]:not(.in-group)) .dropdown:not(.disabled):not(:disabled):focus-visible{box-shadow:var(--_select-focus-shadow-error)}:host([data-field-state=warning]:not(.in-group)) .dropdown:not(.disabled):not(:disabled){border-color:var(--warning-text)}:host([data-field-state=success]:not(.in-group)) .dropdown:not(.disabled):not(:disabled){border-color:var(--success)}\n"] }]
448
- }], ctorParameters: () => [], propDecorators: { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], options: [{ type: i0.Input, args: [{ isSignal: true, alias: "options", required: false }] }], width: [{ type: i0.Input, args: [{ isSignal: true, alias: "width", required: false }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], loading: [{ type: i0.Input, args: [{ isSignal: true, alias: "loading", required: false }] }], opened: [{ type: i0.Output, args: ["opened"] }], closed: [{ type: i0.Output, args: ["closed"] }], scrollActiveIntoView: [{ type: i0.Input, args: [{ isSignal: true, alias: "scrollActiveIntoView", required: false }] }], readOnly: [{ type: i0.Input, args: [{ isSignal: true, alias: "readOnly", required: false }] }], readonlyBinding: [{ type: i0.Input, args: [{ isSignal: true, alias: "readonly", required: false }] }], success: [{ type: i0.Input, args: [{ isSignal: true, alias: "success", required: false }] }], required: [{ type: i0.Input, args: [{ isSignal: true, alias: "required", required: false }] }], optional: [{ type: i0.Input, args: [{ isSignal: true, alias: "optional", required: false }] }], name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], clearable: [{ type: i0.Input, args: [{ isSignal: true, alias: "clearable", required: false }] }], optionTemplate: [{ type: i0.ContentChild, args: [i0.forwardRef(() => DsOptionTemplateDirective), { ...{
453
+ }], ctorParameters: () => [], propDecorators: { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], options: [{ type: i0.Input, args: [{ isSignal: true, alias: "options", required: false }] }], width: [{ type: i0.Input, args: [{ isSignal: true, alias: "width", required: false }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], loading: [{ type: i0.Input, args: [{ isSignal: true, alias: "loading", required: false }] }], opened: [{ type: i0.Output, args: ["opened"] }], closed: [{ type: i0.Output, args: ["closed"] }], scrollActiveIntoView: [{ type: i0.Input, args: [{ isSignal: true, alias: "scrollActiveIntoView", required: false }] }], panelClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "panelClass", required: false }] }], readOnly: [{ type: i0.Input, args: [{ isSignal: true, alias: "readOnly", required: false }] }], readonlyBinding: [{ type: i0.Input, args: [{ isSignal: true, alias: "readonly", required: false }] }], success: [{ type: i0.Input, args: [{ isSignal: true, alias: "success", required: false }] }], required: [{ type: i0.Input, args: [{ isSignal: true, alias: "required", required: false }] }], optional: [{ type: i0.Input, args: [{ isSignal: true, alias: "optional", required: false }] }], name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], clearable: [{ type: i0.Input, args: [{ isSignal: true, alias: "clearable", required: false }] }], optionTemplate: [{ type: i0.ContentChild, args: [i0.forwardRef(() => DsOptionTemplateDirective), { ...{
449
454
  read: TemplateRef,
450
455
  }, isSignal: true }] }], pickerTrigger: [{ type: i0.ContentChild, args: [i0.forwardRef(() => DsPickerTriggerDirective), { ...{
451
456
  read: TemplateRef,
@@ -1 +1 @@
1
- {"version":3,"file":"ids-group-ltd-ids-design-system-components-select.mjs","sources":["../../../src/lib/components/select/select.types.ts","../../../src/lib/components/select/select.component.ts","../../../src/lib/components/select/select.component.html","../../../src/lib/components/select/ids-group-ltd-ids-design-system-components-select.ts"],"sourcesContent":["import type {\n DsOption,\n DsOptionGroup,\n DsOptionItem,\n} from '@ids-group-ltd/ids-design-system/core';\nimport { isDsOptionGroup } from '@ids-group-ltd/ids-design-system/core';\nimport type { DsControlWidth } from '@ids-group-ltd/ids-design-system/core';\n\nexport interface SelectOption extends DsOption<string> {}\n\nexport type SelectWidth = DsControlWidth;\n\nexport interface SelectOptionGroup extends DsOptionGroup<string> {}\n\nexport type SelectItem = DsOptionItem<string>;\n\nexport function isSelectOptionGroup(\n item: SelectItem,\n): item is SelectOptionGroup {\n return isDsOptionGroup(item);\n}\n","import {\n Component,\n ElementRef,\n type OnDestroy,\n TemplateRef,\n contentChild,\n ViewContainerRef,\n ViewEncapsulation,\n booleanAttribute,\n computed,\n effect,\n forwardRef,\n inject,\n input,\n output,\n model,\n signal,\n viewChild,\n} from '@angular/core';\nimport { NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { Overlay, OverlayRef } from '@angular/cdk/overlay';\nimport { TemplatePortal } from '@angular/cdk/portal';\nimport {\n clearOnDetach,\n closeOnOutsidePointer,\n closeOnScroll,\n disposeWithLeave,\n dropdownOverlay,\n type DsOverlayCloseCause,\n forwardOverlayTokens,\n prepareOverlayEnter,\n} from '@ids-group-ltd/ids-design-system/components';\nimport { NgTemplateOutlet } from '@angular/common';\nimport { IconComponent } from '@ids-group-ltd/ids-design-system/icons';\nimport { SpinnerComponent } from '@ids-group-ltd/ids-design-system/components/spinner';\nimport { DsControlValueAccessor } from '@ids-group-ltd/ids-design-system/components';\nimport {\n describedByIds,\n groupInvalid,\n groupMessageId,\n inFieldGroup,\n} from '@ids-group-ltd/ids-design-system/components/field-group';\nimport { DsStaticPreview } from '@ids-group-ltd/ids-design-system/components';\nimport {\n isSelectOptionGroup,\n type SelectItem,\n type SelectOption,\n type SelectOptionGroup,\n type SelectWidth,\n} from './select.types';\nimport type { DsSize } from '@ids-group-ltd/ids-design-system/core';\nimport { FieldMessageComponent } from '@ids-group-ltd/ids-design-system/components/field-message';\nimport {\n resolveFieldMessage,\n trimmedText,\n} from '@ids-group-ltd/ids-design-system/components';\nimport { nextControlId } from '@ids-group-ltd/ids-design-system/components';\nimport { resolveWithConfig } from '@ids-group-ltd/ids-design-system/core';\nimport { DsOptionTemplateDirective } from '@ids-group-ltd/ids-design-system/components';\nimport { DsPickerTriggerDirective } from '@ids-group-ltd/ids-design-system/components';\nimport { DsEmptyTemplateDirective } from '@ids-group-ltd/ids-design-system/components';\nimport { DsPanelHeaderTemplateDirective } from '@ids-group-ltd/ids-design-system/components';\nimport { DsPanelFooterTemplateDirective } from '@ids-group-ltd/ids-design-system/components';\nimport { DsGroupLabelTemplateDirective } from '@ids-group-ltd/ids-design-system/components';\nimport {\n firstEnabledIndex as firstEnabledOf,\n lastEnabledIndex as lastEnabledOf,\n nextEnabledIndex,\n} from '@ids-group-ltd/ids-design-system/core';\nimport { scrollActiveOptionIntoView } from '@ids-group-ltd/ids-design-system/components';\nimport { announceOptionCount } from '@ids-group-ltd/ids-design-system/components';\nimport { createTypeAhead } from '@ids-group-ltd/ids-design-system/components';\n\n@Component({\n selector: 'ds-select',\n standalone: true,\n imports: [\n SpinnerComponent,\n IconComponent,\n NgTemplateOutlet,\n FieldMessageComponent,\n ],\n host: {\n '[attr.data-field-state]': 'controlState()',\n '[class.in-group]': 'inGroup',\n '[class.content-width]': \"width() === 'content'\",\n },\n templateUrl: './select.component.html',\n styleUrl: './select.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n hostDirectives: [{ directive: DsStaticPreview, inputs: ['staticPreview'] }],\n providers: [\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => SelectComponent),\n multi: true,\n },\n ],\n})\nexport class SelectComponent\n extends DsControlValueAccessor<string>\n implements OnDestroy\n{\n private readonly overlay = inject(Overlay);\n /** Segment of a ds-field-group: the group owns the border, radius and focus\n * ring, so .in-group strips this control back to its bare contents. */\n protected readonly inGroup = inFieldGroup();\n\n private readonly vcr = inject(ViewContainerRef);\n private readonly host = inject(ElementRef<HTMLElement>);\n protected readonly preview = inject(DsStaticPreview);\n\n /** Selected option's value, two-way bound. */\n readonly value = model<string>('');\n /** Flat options or option groups rendered in the dropdown panel. */\n readonly options = input<readonly SelectItem[]>([]);\n /** Public panel tokens forwarded onto the portaled overlay pane on open, so a\n * consumer's `ds-select { --ds-dropdown-panel-*: … }` reaches it. */\n private readonly panelTokens = [\n '--ds-dropdown-panel-bg-color',\n '--ds-dropdown-panel-minw',\n '--ds-dropdown-panel-maxw',\n '--ds-option-selected-bg-color',\n '--ds-option-selected-label-color',\n '--ds-option-selected-bg-color-hover',\n '--ds-option-check-color',\n ];\n\n /** Trigger width — `fill` stretches to the container and pins the panel to the\n * trigger's width; `content` hugs the trigger's own content and takes that width\n * as the panel's FLOOR, so the panel can still grow to its options. */\n readonly width = input<SelectWidth>('fill');\n /** Shown in the trigger when nothing is selected. */\n readonly placeholder = input<string>('');\n /** Trigger height — sm/md/lg.\n * Unset falls back to `DS_CONFIG.control.size`, then `'md'`. */\n readonly size = input<DsSize | null>(null);\n readonly sizeResolved = resolveWithConfig(\n this.size,\n (config) => config.control?.size,\n 'md' as DsSize,\n );\n /** Label shown above the trigger. */\n readonly label = input<string>('');\n /** Disables the trigger and blocks all interaction. */\n readonly disabled = input(false, { transform: booleanAttribute });\n /** Options are still being fetched. The panel shows a spinner instead of the\n * empty row — which would otherwise claim there are no matches — and the list\n * reports `aria-busy`. */\n readonly loading = input(false, { transform: booleanAttribute });\n /** The panel opened. The moment to fetch options for a picker whose list is\n * loaded on demand. */\n readonly opened = output<void>();\n /** The panel closed, for any reason — a pick, Escape, an outside click, a scroll. */\n readonly closed = output<void>();\n /** Scrolls the keyboard cursor's row into view. On by default: a list longer\n * than the panel otherwise walks the cursor out of sight. Set `false` only if\n * you are driving the scroll position yourself. */\n readonly scrollActiveIntoView = input(true, { transform: booleanAttribute });\n /** Prevents opening the dropdown while still allowing focus. */\n readonly readOnly = input(false, { transform: booleanAttribute });\n /**\n * The contract spelling of `readOnly`: signal forms binds by NAME, so a\n * `readonly()` rule reaches nothing without it.\n */\n readonly readonlyBinding = input(false, {\n // eslint-disable-next-line @angular-eslint/no-input-rename\n alias: 'readonly',\n transform: booleanAttribute,\n });\n protected readonly isReadOnly = computed(\n () => this.readOnly() || this.readonlyBinding(),\n );\n /** Confirmation text, shown when there is no error or warning — and it paints\n * the field's success border. A string like `warning`: the text IS the state. */\n readonly success = input<string, string | null | undefined>('', {\n transform: trimmedText,\n });\n /** Marks the field required — shows an asterisk and sets `aria-required`. */\n readonly required = input(false, { transform: booleanAttribute });\n /** Shows an \"(optional)\" marker next to the label (ignored when `required`). */\n readonly optional = input(false, { transform: booleanAttribute });\n /** Native `name` attribute forwarded to the trigger. */\n readonly name = input<string | null>(null);\n /** Accessible name when no visible `label` is provided. */\n readonly ariaLabel = input<string | null>(null);\n /** Shows an inline clear (×) button when a value is selected. */\n readonly clearable = input(false, { transform: booleanAttribute });\n\n protected readonly optionTemplate = contentChild(DsOptionTemplateDirective, {\n read: TemplateRef,\n });\n protected readonly pickerTrigger = contentChild(DsPickerTriggerDirective, {\n read: TemplateRef,\n });\n protected readonly panelHeaderTemplate = contentChild(\n DsPanelHeaderTemplateDirective,\n { read: TemplateRef },\n );\n protected readonly panelFooterTemplate = contentChild(\n DsPanelFooterTemplateDirective,\n { read: TemplateRef },\n );\n protected readonly groupLabelTemplate = contentChild(\n DsGroupLabelTemplateDirective,\n { read: TemplateRef },\n );\n protected readonly emptyTemplate = contentChild(DsEmptyTemplateDirective, {\n read: TemplateRef,\n });\n\n protected readonly uid = nextControlId('ds-select');\n protected readonly labelId = `${this.uid}-label`;\n protected readonly listboxId = `${this.uid}-listbox`;\n protected readonly hintId = computed(() =>\n this.message().text ? `${this.uid}-hint` : null,\n );\n private readonly fieldMessage = resolveFieldMessage({\n disabled: () => this.isDisabled(),\n hint: this.hint,\n warning: this.warning,\n error: this.error,\n errors: this.errors,\n invalid: this.invalid,\n success: this.success,\n touchedSelf: this.touchedSelf,\n touched: this.touched,\n });\n protected readonly message = this.fieldMessage.message;\n protected readonly controlState = this.fieldMessage.controlState;\n protected readonly groupMessage = groupMessageId();\n protected readonly describedByIds = describedByIds;\n protected readonly invalidResolved = groupInvalid(this.fieldMessage.invalid);\n protected optionId(flatIndex: number): string {\n return `${this.uid}-opt-${flatIndex}`;\n }\n /** Active option for `aria-activedescendant` (combobox keeps DOM focus). */\n protected readonly activeDescendant = computed(() => {\n const index = this.activeIndex();\n\n return this.open() && index >= 0 ? this.optionId(index) : null;\n });\n protected readonly resolvedAriaLabel = computed(() =>\n this.label() ? null : this.ariaLabel() || this.placeholder() || null,\n );\n\n protected readonly isDisabled = computed(\n () => this.disabled() || this.formDisabled(),\n );\n\n protected readonly trigger =\n viewChild.required<ElementRef<HTMLElement>>('trigger');\n protected readonly panelTpl =\n viewChild.required<TemplateRef<unknown>>('panel');\n protected readonly panelContentTpl =\n viewChild.required<TemplateRef<unknown>>('panelContent');\n protected readonly open = signal<boolean>(false);\n protected readonly activeIndex = signal<number>(-1);\n\n private overlayRef: OverlayRef | null = null;\n\n // An entry's index here IS `activeIndex` — group headers are not entries, so\n // keyboard nav never lands on one.\n protected readonly flatOptions = computed<\n { option: SelectOption; groupDisabled: boolean }[]\n >(() => {\n const out: { option: SelectOption; groupDisabled: boolean }[] = [];\n for (const item of this.options()) {\n if (isSelectOptionGroup(item)) {\n const groupDisabled = !!item.disabled;\n for (const opt of item.options) {\n out.push({ option: opt, groupDisabled });\n }\n } else {\n out.push({ option: item, groupDisabled: false });\n }\n }\n\n return out;\n });\n\n protected readonly selectedOption = computed<SelectOption | null>(() => {\n const current = this.value();\n const found = this.flatOptions().find(\n ({ option }) => option.value === current,\n );\n\n return found?.option ?? null;\n });\n\n protected readonly displayLabel = computed<string>(() => {\n return this.selectedOption()?.label ?? this.placeholder();\n });\n\n protected readonly hasValue = computed<boolean>(\n () => !!this.selectedOption(),\n );\n\n protected readonly triggerClasses = computed<string>(() => {\n const parts = ['dropdown'];\n if (this.sizeResolved() === 'sm') {\n parts.push('sm');\n }\n if (this.sizeResolved() === 'lg') {\n parts.push('lg');\n }\n if (this.isDisabled()) {\n parts.push('disabled');\n }\n if (this.isReadOnly()) {\n parts.push('readonly');\n }\n if (this.invalidResolved()) {\n parts.push('error');\n }\n if (this.open() || this.preview.staticPreview()) {\n parts.push('open');\n }\n\n return parts.join(' ');\n });\n\n constructor() {\n super();\n scrollActiveOptionIntoView(\n this.activeDescendant,\n this.scrollActiveIntoView,\n this.cursorFromKeyboard,\n );\n announceOptionCount(\n computed(() => this.flatOptions().length),\n this.open,\n );\n\n effect(() => {\n if (!this.open()) {\n return;\n }\n const index = this.flatOptions().findIndex(\n ({ option }) => option.value === this.value(),\n );\n this.activeIndex.set(index >= 0 ? index : this.firstEnabledIndex());\n });\n }\n\n protected isOptionGroup(item: SelectItem): item is SelectOptionGroup {\n return isSelectOptionGroup(item);\n }\n\n protected flatIndexOf(opt: SelectOption): number {\n return this.flatOptions().findIndex(({ option }) => option === opt);\n }\n\n protected toggle(): void {\n if (\n this.isDisabled() ||\n this.isReadOnly() ||\n this.preview.staticPreview()\n ) {\n return;\n }\n if (this.open()) {\n this.close();\n } else {\n this.openPanel();\n }\n }\n\n protected openPanel(): void {\n if (this.overlayRef) {\n return;\n }\n const triggerElement = this.trigger().nativeElement;\n const triggerWidth = triggerElement.getBoundingClientRect().width;\n const { positionStrategy, config } = dropdownOverlay(\n this.overlay,\n triggerElement,\n );\n if (this.width() === 'content') {\n config.minWidth = triggerWidth;\n } else {\n config.width = triggerWidth;\n }\n this.overlayRef = this.overlay.create(config);\n prepareOverlayEnter(\n this.overlayRef,\n this.host.nativeElement,\n positionStrategy,\n );\n forwardOverlayTokens(\n this.overlayRef,\n this.host.nativeElement,\n this.panelTokens,\n );\n closeOnOutsidePointer(\n this.overlayRef,\n (target) => this.trigger().nativeElement.contains(target),\n () => this.close('dismiss'),\n );\n const removeScrollClose = closeOnScroll(this.overlayRef, () =>\n this.close('dismiss'),\n );\n clearOnDetach(this.overlayRef, {\n current: () => this.overlayRef,\n always: removeScrollClose,\n clear: () => {\n this.overlayRef = null;\n this.setOpen(false);\n },\n });\n const portal = new TemplatePortal(this.panelTpl(), this.vcr);\n this.overlayRef.attach(portal);\n this.setOpen(true);\n }\n\n protected close(cause: DsOverlayCloseCause = 'select'): void {\n disposeWithLeave(this.overlayRef, cause);\n this.overlayRef = null;\n this.setOpen(false);\n this.activeIndex.set(-1);\n this.markTouched();\n }\n\n ngOnDestroy(): void {\n this.overlayRef?.dispose();\n this.overlayRef = null;\n }\n\n protected pick(option: SelectOption, groupDisabled = false): void {\n if (option.disabled || groupDisabled) {\n return;\n }\n this.value.set(option.value);\n this.close();\n this.trigger().nativeElement.focus();\n }\n\n protected clearValue(event: MouseEvent): void {\n event.stopPropagation();\n this.clear();\n this.markTouched();\n }\n\n /**\n * Empties the selection from outside — a \"reset filters\" button, a form the app\n * clears itself.\n *\n * Deliberately does NOT move focus: the caller may be navigating away, and\n * stealing focus back into a field they just left is worse than leaving it.\n */\n clear(): void {\n this.value.set('');\n if (this.open()) {\n this.close('dismiss');\n }\n }\n\n protected isSelected(option: SelectOption): boolean {\n return option.value === this.value();\n }\n\n protected isOptionDisabled(\n option: SelectOption,\n groupDisabled = false,\n ): boolean {\n return !!option.disabled || groupDisabled;\n }\n\n protected onTriggerKeydown(event: KeyboardEvent): void {\n this.cursorFromKeyboard.set(true);\n if (\n this.isDisabled() ||\n this.isReadOnly() ||\n this.preview.staticPreview()\n ) {\n return;\n }\n // Only handle keys aimed at the trigger itself — a keydown bubbling up from\n // the nested clear <button> must reach its own activation (Enter/Space to\n // clear), not be hijacked here into reopening the panel.\n if (event.target !== event.currentTarget) {\n return;\n }\n const key = event.key;\n if (!this.open()) {\n if (\n key === 'ArrowDown' ||\n key === 'ArrowUp' ||\n key === 'Enter' ||\n key === ' '\n ) {\n event.preventDefault();\n this.openPanel();\n\n return;\n }\n // A native <select> commits as you type without opening, so the value changes under\n // the closed trigger.\n if (this.handleTypeAhead(key)) {\n event.preventDefault();\n this.pickActive();\n }\n\n return;\n }\n if (key === 'Tab') {\n // Close the panel but let Tab move focus naturally (no preventDefault),\n // else the open overlay panel lingers behind the moved focus.\n this.close();\n\n return;\n }\n if (key === 'Escape') {\n event.preventDefault();\n this.close('dismiss');\n\n return;\n }\n if (key === 'ArrowDown') {\n event.preventDefault();\n this.moveActive(1);\n\n return;\n }\n if (key === 'ArrowUp') {\n event.preventDefault();\n this.moveActive(-1);\n\n return;\n }\n if (key === 'Enter' || key === ' ') {\n event.preventDefault();\n const index = this.activeIndex();\n const entry = this.flatOptions()[index];\n if (entry) {\n this.pick(entry.option, entry.groupDisabled);\n }\n\n return;\n }\n if (key === 'PageDown') {\n event.preventDefault();\n this.moveActive(SelectComponent.pageStep);\n\n return;\n }\n if (key === 'PageUp') {\n event.preventDefault();\n this.moveActive(-SelectComponent.pageStep);\n\n return;\n }\n if (key === 'Home') {\n event.preventDefault();\n this.activeIndex.set(this.firstEnabledIndex());\n\n return;\n }\n if (key === 'End') {\n event.preventDefault();\n this.activeIndex.set(this.lastEnabledIndex());\n\n return;\n }\n if (this.handleTypeAhead(key)) {\n event.preventDefault();\n }\n }\n\n private pickActive(): void {\n const entry = this.flatOptions()[this.activeIndex()];\n if (entry) {\n this.pick(entry.option, entry.groupDisabled);\n }\n }\n\n protected isActive(index: number): boolean {\n return this.activeIndex() === index;\n }\n\n private readonly typeAhead = createTypeAhead();\n\n private handleTypeAhead(key: string): boolean {\n const index = this.typeAhead.match(\n key,\n this.flatOptions().map((entry) => entry.option.label),\n this.activeIndex(),\n );\n if (index < 0) {\n return false;\n }\n this.activeIndex.set(index);\n\n return true;\n }\n\n protected readonly cursorFromKeyboard = signal(false);\n\n private cursorList() {\n const opts = this.flatOptions();\n\n return {\n length: opts.length,\n isEnabled: (index: number) =>\n !opts[index].option.disabled && !opts[index].groupDisabled,\n };\n }\n\n /** How far PageUp and PageDown move. Ten rows is the native `<select>` step and\n * the APG listbox example's — a fixed number rather than a measured screenful,\n * so the jump is the same wherever the panel happens to be clipped. */\n private static readonly pageStep = 10;\n\n private moveActive(delta: number): void {\n const next = nextEnabledIndex(this.cursorList(), this.activeIndex(), delta);\n if (next >= 0) {\n this.activeIndex.set(next);\n }\n }\n\n private setOpen(next: boolean): void {\n if (this.open() === next) {\n return;\n }\n this.open.set(next);\n (next ? this.opened : this.closed).emit();\n }\n\n private lastEnabledIndex(): number {\n return lastEnabledOf(this.cursorList());\n }\n\n private firstEnabledIndex(): number {\n return firstEnabledOf(this.cursorList());\n }\n}\n","@if (label()) {\n <span\n class=\"label\"\n [id]=\"labelId\">\n {{ label() }}\n @if (required()) {\n <span\n class=\"req\"\n aria-hidden=\"true\">\n *\n </span>\n } @else if (optional()) {\n <span\n class=\"optional-marker\"\n aria-hidden=\"true\">\n (optional)\n </span>\n }\n </span>\n}\n\n<div\n #trigger\n role=\"combobox\"\n aria-haspopup=\"listbox\"\n [class]=\"triggerClasses()\"\n [attr.name]=\"name()\"\n [attr.tabindex]=\"isDisabled() ? -1 : 0\"\n [attr.aria-expanded]=\"open() || preview.staticPreview()\"\n [attr.aria-controls]=\"listboxId\"\n [attr.aria-activedescendant]=\"activeDescendant()\"\n [attr.aria-labelledby]=\"label() ? labelId : null\"\n [attr.aria-label]=\"resolvedAriaLabel()\"\n [attr.aria-invalid]=\"invalidResolved() ? 'true' : null\"\n [attr.aria-describedby]=\"describedByIds(hintId(), groupMessage())\"\n [attr.aria-required]=\"required() ? 'true' : null\"\n [attr.aria-disabled]=\"isDisabled() ? 'true' : null\"\n (click)=\"toggle()\"\n (keydown)=\"onTriggerKeydown($event)\">\n @if (selectedOption()?.icon) {\n <ds-icon\n class=\"trigger-icon\"\n [name]=\"selectedOption()!.icon!\"\n [size]=\"16\" />\n }\n\n @if (pickerTrigger(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n $implicit: selectedOption(),\n selected: selectedOption(),\n count: hasValue() ? 1 : 0,\n open: open(),\n disabled: isDisabled(),\n }\" />\n } @else {\n <span\n class=\"trigger-text\"\n [class.is-placeholder]=\"!hasValue()\">\n {{ displayLabel() }}\n </span>\n }\n\n @if (\n clearable() &&\n hasValue() &&\n !isDisabled() &&\n !isReadOnly()\n ) {\n <button\n type=\"button\"\n class=\"clear-btn\"\n aria-label=\"Clear selection\"\n (click)=\"clearValue($event)\">\n <ds-icon\n name=\"x\"\n [size]=\"14\" />\n </button>\n }\n\n <span class=\"chevron\">\n <ds-icon\n name=\"chevronDown\"\n [size]=\"14\" />\n </span>\n</div>\n\n<ds-field-message\n [icon]=\"messageIcon()\"\n [text]=\"message().text\"\n [state]=\"message().state\"\n [messageId]=\"hintId()\"\n [reserve]=\"reserveMessageResolved()\" />\n\n@if (preview.staticPreview()) {\n <div class=\"ds-dropdown-panel\">\n <ng-container [ngTemplateOutlet]=\"panelContentTpl()\" />\n </div>\n}\n\n<ng-template #panel>\n <ng-container [ngTemplateOutlet]=\"panelContentTpl()\" />\n</ng-template>\n\n<ng-template #panelContent>\n <div class=\"dropdown-panel\">\n @if (panelHeaderTemplate(); as tpl) {\n <div class=\"panel-header\">\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n count: options().length,\n total: options().length,\n query: '',\n }\" />\n </div>\n }\n\n <ul\n class=\"dropdown-list\"\n role=\"listbox\"\n [attr.aria-busy]=\"loading() ? 'true' : null\"\n [id]=\"listboxId\"\n [attr.aria-labelledby]=\"label() ? labelId : null\">\n @for (item of options(); track $index; let groupIdx = $index) {\n @if (isOptionGroup(item)) {\n <li\n class=\"optgroup\"\n role=\"group\"\n [attr.aria-label]=\"item.label\">\n <span\n class=\"optgroup-label\"\n [class.is-first]=\"groupIdx === 0\">\n @if (groupLabelTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n $implicit: item,\n group: item,\n count: item.options.length,\n }\" />\n } @else {\n {{ item.label }}\n }\n </span>\n\n <ul\n class=\"optgroup-list\"\n role=\"presentation\">\n @for (opt of item.options; track opt.value) {\n <li role=\"presentation\">\n <button\n type=\"button\"\n role=\"option\"\n tabindex=\"-1\"\n class=\"option\"\n [id]=\"optionId(flatIndexOf(opt))\"\n [attr.aria-selected]=\"isSelected(opt)\"\n [attr.aria-disabled]=\"\n isOptionDisabled(opt, item.disabled) ? 'true' : null\n \"\n [attr.aria-describedby]=\"\n opt.disabled && opt.disabledReason\n ? optionId(flatIndexOf(opt)) + '-reason'\n : null\n \"\n [class.is-selected]=\"isSelected(opt)\"\n [class.is-active]=\"isActive(flatIndexOf(opt))\"\n [class.is-disabled]=\"isOptionDisabled(opt, item.disabled)\"\n [disabled]=\"isOptionDisabled(opt, item.disabled)\"\n (click)=\"pick(opt, item.disabled)\"\n (mouseenter)=\"\n cursorFromKeyboard.set(false);\n activeIndex.set(flatIndexOf(opt))\n \">\n @if (opt.icon) {\n <ds-icon\n class=\"option-icon\"\n [name]=\"opt.icon\"\n [size]=\"16\" />\n }\n\n @if (opt.disabled && opt.disabledReason) {\n <span\n class=\"option-reason\"\n [id]=\"optionId(flatIndexOf(opt)) + '-reason'\">\n {{ opt.disabledReason }}\n </span>\n }\n\n <span class=\"option-label\">\n @if (optionTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n $implicit: opt,\n option: opt,\n }\" />\n } @else {\n {{ opt.label }}\n }\n </span>\n\n <span\n class=\"option-check\"\n [class.is-shown]=\"isSelected(opt)\">\n </span>\n </button>\n </li>\n }\n </ul>\n </li>\n } @else {\n <li role=\"presentation\">\n <button\n type=\"button\"\n role=\"option\"\n tabindex=\"-1\"\n class=\"option\"\n [id]=\"optionId(flatIndexOf(item))\"\n [attr.aria-selected]=\"isSelected(item)\"\n [attr.aria-disabled]=\"item.disabled ? 'true' : null\"\n [class.is-selected]=\"isSelected(item)\"\n [class.is-active]=\"isActive(flatIndexOf(item))\"\n [class.is-disabled]=\"item.disabled\"\n [disabled]=\"item.disabled\"\n (click)=\"pick(item)\"\n (mouseenter)=\"\n cursorFromKeyboard.set(false);\n activeIndex.set(flatIndexOf(item))\n \">\n @if (item.icon) {\n <ds-icon\n class=\"option-icon\"\n [name]=\"item.icon\"\n [size]=\"16\" />\n }\n\n <span class=\"option-label\">\n @if (optionTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n $implicit: item,\n option: item,\n }\" />\n } @else {\n {{ item.label }}\n }\n </span>\n\n <span\n class=\"option-check\"\n [class.is-shown]=\"isSelected(item)\">\n </span>\n </button>\n </li>\n }\n }\n\n @if (loading()) {\n <li\n class=\"empty t-s\"\n role=\"presentation\">\n <ds-spinner size=\"sm\" />\n </li>\n } @else if (options().length === 0) {\n <li\n class=\"empty t-s\"\n role=\"presentation\">\n @if (emptyTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" />\n } @else {\n No options\n }\n </li>\n }\n </ul>\n\n @if (panelFooterTemplate(); as tpl) {\n <div class=\"panel-footer\">\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n count: options().length,\n total: options().length,\n query: '',\n }\" />\n </div>\n }\n </div>\n</ng-template>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["lastEnabledOf","firstEnabledOf"],"mappings":";;;;;;;;;;;;;;AAgBM,SAAU,mBAAmB,CACjC,IAAgB,EAAA;AAEhB,IAAA,OAAO,eAAe,CAAC,IAAI,CAAC;AAC9B;;AC+EM,MAAO,eACX,SAAQ,sBAA8B,CAAA;AAGrB,IAAA,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC;AAC1C;AACwE;IACrD,OAAO,GAAG,YAAY,EAAE;AAE1B,IAAA,GAAG,GAAG,MAAM,CAAC,gBAAgB,CAAC;AAC9B,IAAA,IAAI,GAAG,MAAM,EAAC,UAAuB,EAAC;AACpC,IAAA,OAAO,GAAG,MAAM,CAAC,eAAe,CAAC;;AAG3C,IAAA,KAAK,GAAG,KAAK,CAAS,EAAE,4EAAC;;AAEzB,IAAA,OAAO,GAAG,KAAK,CAAwB,EAAE,8EAAC;AACnD;AACsE;AACrD,IAAA,WAAW,GAAG;QAC7B,8BAA8B;QAC9B,0BAA0B;QAC1B,0BAA0B;QAC1B,+BAA+B;QAC/B,kCAAkC;QAClC,qCAAqC;QACrC,yBAAyB;KAC1B;AAED;;AAEwE;AAC/D,IAAA,KAAK,GAAG,KAAK,CAAc,MAAM,4EAAC;;AAElC,IAAA,WAAW,GAAG,KAAK,CAAS,EAAE,kFAAC;AACxC;AACiE;AACxD,IAAA,IAAI,GAAG,KAAK,CAAgB,IAAI,2EAAC;IACjC,YAAY,GAAG,iBAAiB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AA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,OAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,SAAA,EAAA,IAAA,EAAA,CA0C6C,SAAS,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,QAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,SAAA,EAAA,IAAA,EAAA,CAEZ,OAAO,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,SAAA,EAAA,IAAA,EAAA,CAEP,cAAc,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AE/P3D;;AAEG;;;;"}
1
+ {"version":3,"file":"ids-group-ltd-ids-design-system-components-select.mjs","sources":["../../../src/lib/components/select/select.types.ts","../../../src/lib/components/select/select.component.ts","../../../src/lib/components/select/select.component.html","../../../src/lib/components/select/ids-group-ltd-ids-design-system-components-select.ts"],"sourcesContent":["import type {\n DsOption,\n DsOptionGroup,\n DsOptionItem,\n} from '@ids-group-ltd/ids-design-system/core';\nimport { isDsOptionGroup } from '@ids-group-ltd/ids-design-system/core';\nimport type { DsControlWidth } from '@ids-group-ltd/ids-design-system/core';\n\nexport interface SelectOption extends DsOption<string> {}\n\nexport type SelectWidth = DsControlWidth;\n\nexport interface SelectOptionGroup extends DsOptionGroup<string> {}\n\nexport type SelectItem = DsOptionItem<string>;\n\nexport function isSelectOptionGroup(\n item: SelectItem,\n): item is SelectOptionGroup {\n return isDsOptionGroup(item);\n}\n","import {\n Component,\n ElementRef,\n type OnDestroy,\n TemplateRef,\n contentChild,\n ViewContainerRef,\n ViewEncapsulation,\n booleanAttribute,\n computed,\n effect,\n forwardRef,\n inject,\n input,\n output,\n model,\n signal,\n viewChild,\n} from '@angular/core';\nimport { NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { Overlay, OverlayRef } from '@angular/cdk/overlay';\nimport { TemplatePortal } from '@angular/cdk/portal';\nimport {\n clearOnDetach,\n closeOnOutsidePointer,\n closeOnScroll,\n disposeWithLeave,\n dropdownOverlay,\n type DsOverlayCloseCause,\n forwardOverlayTokens,\n panelClassesOf,\n prepareOverlayEnter,\n} from '@ids-group-ltd/ids-design-system/components';\nimport { NgTemplateOutlet } from '@angular/common';\nimport { IconComponent } from '@ids-group-ltd/ids-design-system/icons';\nimport { SpinnerComponent } from '@ids-group-ltd/ids-design-system/components/spinner';\nimport { DsControlValueAccessor } from '@ids-group-ltd/ids-design-system/components';\nimport {\n describedByIds,\n groupInvalid,\n groupMessageId,\n inFieldGroup,\n} from '@ids-group-ltd/ids-design-system/components/field-group';\nimport { DsStaticPreview } from '@ids-group-ltd/ids-design-system/components';\nimport {\n isSelectOptionGroup,\n type SelectItem,\n type SelectOption,\n type SelectOptionGroup,\n type SelectWidth,\n} from './select.types';\nimport type { DsSize } from '@ids-group-ltd/ids-design-system/core';\nimport { FieldMessageComponent } from '@ids-group-ltd/ids-design-system/components/field-message';\nimport {\n resolveFieldMessage,\n trimmedText,\n} from '@ids-group-ltd/ids-design-system/components';\nimport { nextControlId } from '@ids-group-ltd/ids-design-system/components';\nimport { resolveWithConfig } from '@ids-group-ltd/ids-design-system/core';\nimport { DsOptionTemplateDirective } from '@ids-group-ltd/ids-design-system/components';\nimport { DsPickerTriggerDirective } from '@ids-group-ltd/ids-design-system/components';\nimport { DsEmptyTemplateDirective } from '@ids-group-ltd/ids-design-system/components';\nimport { DsPanelHeaderTemplateDirective } from '@ids-group-ltd/ids-design-system/components';\nimport { DsPanelFooterTemplateDirective } from '@ids-group-ltd/ids-design-system/components';\nimport { DsGroupLabelTemplateDirective } from '@ids-group-ltd/ids-design-system/components';\nimport {\n firstEnabledIndex as firstEnabledOf,\n lastEnabledIndex as lastEnabledOf,\n nextEnabledIndex,\n} from '@ids-group-ltd/ids-design-system/core';\nimport { scrollActiveOptionIntoView } from '@ids-group-ltd/ids-design-system/components';\nimport { announceOptionCount } from '@ids-group-ltd/ids-design-system/components';\nimport { createTypeAhead } from '@ids-group-ltd/ids-design-system/components';\n\n@Component({\n selector: 'ds-select',\n standalone: true,\n imports: [\n SpinnerComponent,\n IconComponent,\n NgTemplateOutlet,\n FieldMessageComponent,\n ],\n host: {\n '[attr.data-field-state]': 'controlState()',\n '[class.in-group]': 'inGroup',\n '[class.content-width]': \"width() === 'content'\",\n },\n templateUrl: './select.component.html',\n styleUrl: './select.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n hostDirectives: [{ directive: DsStaticPreview, inputs: ['staticPreview'] }],\n providers: [\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => SelectComponent),\n multi: true,\n },\n ],\n})\nexport class SelectComponent\n extends DsControlValueAccessor<string>\n implements OnDestroy\n{\n private readonly overlay = inject(Overlay);\n /** Segment of a ds-field-group: the group owns the border, radius and focus\n * ring, so .in-group strips this control back to its bare contents. */\n protected readonly inGroup = inFieldGroup();\n\n private readonly vcr = inject(ViewContainerRef);\n private readonly host = inject(ElementRef<HTMLElement>);\n protected readonly preview = inject(DsStaticPreview);\n\n /** Selected option's value, two-way bound. */\n readonly value = model<string>('');\n /** Flat options or option groups rendered in the dropdown panel. */\n readonly options = input<readonly SelectItem[]>([]);\n /** Public panel tokens forwarded onto the portaled overlay pane on open, so a\n * consumer's `ds-select { --ds-dropdown-panel-*: … }` reaches it. */\n private readonly panelTokens = [\n '--ds-dropdown-panel-bg-color',\n '--ds-dropdown-panel-minw',\n '--ds-dropdown-panel-maxw',\n '--ds-option-selected-bg-color',\n '--ds-option-selected-label-color',\n '--ds-option-selected-bg-color-hover',\n '--ds-option-check-color',\n ];\n\n /** Trigger width — `fill` stretches to the container and pins the panel to the\n * trigger's width; `content` hugs the trigger's own content and takes that width\n * as the panel's FLOOR, so the panel can still grow to its options. */\n readonly width = input<SelectWidth>('fill');\n /** Shown in the trigger when nothing is selected. */\n readonly placeholder = input<string>('');\n /** Trigger height — sm/md/lg.\n * Unset falls back to `DS_CONFIG.control.size`, then `'md'`. */\n readonly size = input<DsSize | null>(null);\n readonly sizeResolved = resolveWithConfig(\n this.size,\n (config) => config.control?.size,\n 'md' as DsSize,\n );\n /** Label shown above the trigger. */\n readonly label = input<string>('');\n /** Disables the trigger and blocks all interaction. */\n readonly disabled = input(false, { transform: booleanAttribute });\n /** Options are still being fetched. The panel shows a spinner instead of the\n * empty row — which would otherwise claim there are no matches — and the list\n * reports `aria-busy`. */\n readonly loading = input(false, { transform: booleanAttribute });\n /** The panel opened. The moment to fetch options for a picker whose list is\n * loaded on demand. */\n readonly opened = output<void>();\n /** The panel closed, for any reason — a pick, Escape, an outside click, a scroll. */\n readonly closed = output<void>();\n /** Scrolls the keyboard cursor's row into view. On by default: a list longer\n * than the panel otherwise walks the cursor out of sight. Set `false` only if\n * you are driving the scroll position yourself. */\n readonly scrollActiveIntoView = input(true, { transform: booleanAttribute });\n /** Extra classes for the portaled panel, beside `ds-dropdown-panel`,\n * `ds-overlay-pane` and this component's own `ds-select-panel`. The panel is\n * portaled out of the host, so a class on the pane is the only way a consumer\n * stylesheet reaches ONE instance of it. */\n readonly panelClass = input<string | readonly string[]>([]);\n /** Prevents opening the dropdown while still allowing focus. */\n readonly readOnly = input(false, { transform: booleanAttribute });\n /**\n * The contract spelling of `readOnly`: signal forms binds by NAME, so a\n * `readonly()` rule reaches nothing without it.\n */\n readonly readonlyBinding = input(false, {\n // eslint-disable-next-line @angular-eslint/no-input-rename\n alias: 'readonly',\n transform: booleanAttribute,\n });\n protected readonly isReadOnly = computed(\n () => this.readOnly() || this.readonlyBinding(),\n );\n /** Confirmation text, shown when there is no error or warning — and it paints\n * the field's success border. A string like `warning`: the text IS the state. */\n readonly success = input<string, string | null | undefined>('', {\n transform: trimmedText,\n });\n /** Marks the field required — shows an asterisk and sets `aria-required`. */\n readonly required = input(false, { transform: booleanAttribute });\n /** Shows an \"(optional)\" marker next to the label (ignored when `required`). */\n readonly optional = input(false, { transform: booleanAttribute });\n /** Native `name` attribute forwarded to the trigger. */\n readonly name = input<string | null>(null);\n /** Accessible name when no visible `label` is provided. */\n readonly ariaLabel = input<string | null>(null);\n /** Shows an inline clear (×) button when a value is selected. */\n readonly clearable = input(false, { transform: booleanAttribute });\n\n protected readonly optionTemplate = contentChild(DsOptionTemplateDirective, {\n read: TemplateRef,\n });\n protected readonly pickerTrigger = contentChild(DsPickerTriggerDirective, {\n read: TemplateRef,\n });\n protected readonly panelHeaderTemplate = contentChild(\n DsPanelHeaderTemplateDirective,\n { read: TemplateRef },\n );\n protected readonly panelFooterTemplate = contentChild(\n DsPanelFooterTemplateDirective,\n { read: TemplateRef },\n );\n protected readonly groupLabelTemplate = contentChild(\n DsGroupLabelTemplateDirective,\n { read: TemplateRef },\n );\n protected readonly emptyTemplate = contentChild(DsEmptyTemplateDirective, {\n read: TemplateRef,\n });\n\n protected readonly uid = nextControlId('ds-select');\n protected readonly labelId = `${this.uid}-label`;\n protected readonly listboxId = `${this.uid}-listbox`;\n protected readonly hintId = computed(() =>\n this.message().text ? `${this.uid}-hint` : null,\n );\n private readonly fieldMessage = resolveFieldMessage({\n disabled: () => this.isDisabled(),\n hint: this.hint,\n warning: this.warning,\n error: this.error,\n errors: this.errors,\n invalid: this.invalid,\n success: this.success,\n touchedSelf: this.touchedSelf,\n touched: this.touched,\n });\n protected readonly message = this.fieldMessage.message;\n protected readonly controlState = this.fieldMessage.controlState;\n protected readonly groupMessage = groupMessageId();\n protected readonly describedByIds = describedByIds;\n protected readonly invalidResolved = groupInvalid(this.fieldMessage.invalid);\n protected optionId(flatIndex: number): string {\n return `${this.uid}-opt-${flatIndex}`;\n }\n /** Active option for `aria-activedescendant` (combobox keeps DOM focus). */\n protected readonly activeDescendant = computed(() => {\n const index = this.activeIndex();\n\n return this.open() && index >= 0 ? this.optionId(index) : null;\n });\n protected readonly resolvedAriaLabel = computed(() =>\n this.label() ? null : this.ariaLabel() || this.placeholder() || null,\n );\n\n protected readonly isDisabled = computed(\n () => this.disabled() || this.formDisabled(),\n );\n\n protected readonly trigger =\n viewChild.required<ElementRef<HTMLElement>>('trigger');\n protected readonly panelTpl =\n viewChild.required<TemplateRef<unknown>>('panel');\n protected readonly panelContentTpl =\n viewChild.required<TemplateRef<unknown>>('panelContent');\n protected readonly open = signal<boolean>(false);\n protected readonly activeIndex = signal<number>(-1);\n\n private overlayRef: OverlayRef | null = null;\n\n // An entry's index here IS `activeIndex` — group headers are not entries, so\n // keyboard nav never lands on one.\n protected readonly flatOptions = computed<\n { option: SelectOption; groupDisabled: boolean }[]\n >(() => {\n const out: { option: SelectOption; groupDisabled: boolean }[] = [];\n for (const item of this.options()) {\n if (isSelectOptionGroup(item)) {\n const groupDisabled = !!item.disabled;\n for (const opt of item.options) {\n out.push({ option: opt, groupDisabled });\n }\n } else {\n out.push({ option: item, groupDisabled: false });\n }\n }\n\n return out;\n });\n\n protected readonly selectedOption = computed<SelectOption | null>(() => {\n const current = this.value();\n const found = this.flatOptions().find(\n ({ option }) => option.value === current,\n );\n\n return found?.option ?? null;\n });\n\n protected readonly displayLabel = computed<string>(() => {\n return this.selectedOption()?.label ?? this.placeholder();\n });\n\n protected readonly hasValue = computed<boolean>(\n () => !!this.selectedOption(),\n );\n\n protected readonly triggerClasses = computed<string>(() => {\n const parts = ['dropdown'];\n if (this.sizeResolved() === 'sm') {\n parts.push('sm');\n }\n if (this.sizeResolved() === 'lg') {\n parts.push('lg');\n }\n if (this.isDisabled()) {\n parts.push('disabled');\n }\n if (this.isReadOnly()) {\n parts.push('readonly');\n }\n if (this.invalidResolved()) {\n parts.push('error');\n }\n if (this.open() || this.preview.staticPreview()) {\n parts.push('open');\n }\n\n return parts.join(' ');\n });\n\n constructor() {\n super();\n scrollActiveOptionIntoView(\n this.activeDescendant,\n this.scrollActiveIntoView,\n this.cursorFromKeyboard,\n );\n announceOptionCount(\n computed(() => this.flatOptions().length),\n this.open,\n );\n\n effect(() => {\n if (!this.open()) {\n return;\n }\n const index = this.flatOptions().findIndex(\n ({ option }) => option.value === this.value(),\n );\n this.activeIndex.set(index >= 0 ? index : this.firstEnabledIndex());\n });\n }\n\n protected isOptionGroup(item: SelectItem): item is SelectOptionGroup {\n return isSelectOptionGroup(item);\n }\n\n protected flatIndexOf(opt: SelectOption): number {\n return this.flatOptions().findIndex(({ option }) => option === opt);\n }\n\n protected toggle(): void {\n if (\n this.isDisabled() ||\n this.isReadOnly() ||\n this.preview.staticPreview()\n ) {\n return;\n }\n if (this.open()) {\n this.close();\n } else {\n this.openPanel();\n }\n }\n\n protected openPanel(): void {\n if (this.overlayRef) {\n return;\n }\n const triggerElement = this.trigger().nativeElement;\n const triggerWidth = triggerElement.getBoundingClientRect().width;\n const { positionStrategy, config } = dropdownOverlay(\n this.overlay,\n triggerElement,\n ['ds-select-panel', ...panelClassesOf(this.panelClass())],\n );\n if (this.width() === 'content') {\n config.minWidth = triggerWidth;\n } else {\n config.width = triggerWidth;\n }\n this.overlayRef = this.overlay.create(config);\n prepareOverlayEnter(\n this.overlayRef,\n this.host.nativeElement,\n positionStrategy,\n );\n forwardOverlayTokens(\n this.overlayRef,\n this.host.nativeElement,\n this.panelTokens,\n );\n closeOnOutsidePointer(\n this.overlayRef,\n (target) => this.trigger().nativeElement.contains(target),\n () => this.close('dismiss'),\n );\n const removeScrollClose = closeOnScroll(this.overlayRef, () =>\n this.close('dismiss'),\n );\n clearOnDetach(this.overlayRef, {\n current: () => this.overlayRef,\n always: removeScrollClose,\n clear: () => {\n this.overlayRef = null;\n this.setOpen(false);\n },\n });\n const portal = new TemplatePortal(this.panelTpl(), this.vcr);\n this.overlayRef.attach(portal);\n this.setOpen(true);\n }\n\n protected close(cause: DsOverlayCloseCause = 'select'): void {\n disposeWithLeave(this.overlayRef, cause);\n this.overlayRef = null;\n this.setOpen(false);\n this.activeIndex.set(-1);\n this.markTouched();\n }\n\n ngOnDestroy(): void {\n this.overlayRef?.dispose();\n this.overlayRef = null;\n }\n\n protected pick(option: SelectOption, groupDisabled = false): void {\n if (option.disabled || groupDisabled) {\n return;\n }\n this.value.set(option.value);\n this.close();\n this.trigger().nativeElement.focus();\n }\n\n protected clearValue(event: MouseEvent): void {\n event.stopPropagation();\n this.clear();\n this.markTouched();\n }\n\n /**\n * Empties the selection from outside — a \"reset filters\" button, a form the app\n * clears itself.\n *\n * Deliberately does NOT move focus: the caller may be navigating away, and\n * stealing focus back into a field they just left is worse than leaving it.\n */\n clear(): void {\n this.value.set('');\n if (this.open()) {\n this.close('dismiss');\n }\n }\n\n protected isSelected(option: SelectOption): boolean {\n return option.value === this.value();\n }\n\n protected isOptionDisabled(\n option: SelectOption,\n groupDisabled = false,\n ): boolean {\n return !!option.disabled || groupDisabled;\n }\n\n protected onTriggerKeydown(event: KeyboardEvent): void {\n this.cursorFromKeyboard.set(true);\n if (\n this.isDisabled() ||\n this.isReadOnly() ||\n this.preview.staticPreview()\n ) {\n return;\n }\n // Only handle keys aimed at the trigger itself — a keydown bubbling up from\n // the nested clear <button> must reach its own activation (Enter/Space to\n // clear), not be hijacked here into reopening the panel.\n if (event.target !== event.currentTarget) {\n return;\n }\n const key = event.key;\n if (!this.open()) {\n if (\n key === 'ArrowDown' ||\n key === 'ArrowUp' ||\n key === 'Enter' ||\n key === ' '\n ) {\n event.preventDefault();\n this.openPanel();\n\n return;\n }\n // A native <select> commits as you type without opening, so the value changes under\n // the closed trigger.\n if (this.handleTypeAhead(key)) {\n event.preventDefault();\n this.pickActive();\n }\n\n return;\n }\n if (key === 'Tab') {\n // Close the panel but let Tab move focus naturally (no preventDefault),\n // else the open overlay panel lingers behind the moved focus.\n this.close();\n\n return;\n }\n if (key === 'Escape') {\n event.preventDefault();\n this.close('dismiss');\n\n return;\n }\n if (key === 'ArrowDown') {\n event.preventDefault();\n this.moveActive(1);\n\n return;\n }\n if (key === 'ArrowUp') {\n event.preventDefault();\n this.moveActive(-1);\n\n return;\n }\n if (key === 'Enter' || key === ' ') {\n event.preventDefault();\n const index = this.activeIndex();\n const entry = this.flatOptions()[index];\n if (entry) {\n this.pick(entry.option, entry.groupDisabled);\n }\n\n return;\n }\n if (key === 'PageDown') {\n event.preventDefault();\n this.moveActive(SelectComponent.pageStep);\n\n return;\n }\n if (key === 'PageUp') {\n event.preventDefault();\n this.moveActive(-SelectComponent.pageStep);\n\n return;\n }\n if (key === 'Home') {\n event.preventDefault();\n this.activeIndex.set(this.firstEnabledIndex());\n\n return;\n }\n if (key === 'End') {\n event.preventDefault();\n this.activeIndex.set(this.lastEnabledIndex());\n\n return;\n }\n if (this.handleTypeAhead(key)) {\n event.preventDefault();\n }\n }\n\n private pickActive(): void {\n const entry = this.flatOptions()[this.activeIndex()];\n if (entry) {\n this.pick(entry.option, entry.groupDisabled);\n }\n }\n\n protected isActive(index: number): boolean {\n return this.activeIndex() === index;\n }\n\n private readonly typeAhead = createTypeAhead();\n\n private handleTypeAhead(key: string): boolean {\n const index = this.typeAhead.match(\n key,\n this.flatOptions().map((entry) => entry.option.label),\n this.activeIndex(),\n );\n if (index < 0) {\n return false;\n }\n this.activeIndex.set(index);\n\n return true;\n }\n\n protected readonly cursorFromKeyboard = signal(false);\n\n private cursorList() {\n const opts = this.flatOptions();\n\n return {\n length: opts.length,\n isEnabled: (index: number) =>\n !opts[index].option.disabled && !opts[index].groupDisabled,\n };\n }\n\n /** How far PageUp and PageDown move. Ten rows is the native `<select>` step and\n * the APG listbox example's — a fixed number rather than a measured screenful,\n * so the jump is the same wherever the panel happens to be clipped. */\n private static readonly pageStep = 10;\n\n private moveActive(delta: number): void {\n const next = nextEnabledIndex(this.cursorList(), this.activeIndex(), delta);\n if (next >= 0) {\n this.activeIndex.set(next);\n }\n }\n\n private setOpen(next: boolean): void {\n if (this.open() === next) {\n return;\n }\n this.open.set(next);\n (next ? this.opened : this.closed).emit();\n }\n\n private lastEnabledIndex(): number {\n return lastEnabledOf(this.cursorList());\n }\n\n private firstEnabledIndex(): number {\n return firstEnabledOf(this.cursorList());\n }\n}\n","@if (label()) {\n <span\n class=\"label\"\n [id]=\"labelId\">\n {{ label() }}\n @if (required()) {\n <span\n class=\"req\"\n aria-hidden=\"true\">\n *\n </span>\n } @else if (optional()) {\n <span\n class=\"optional-marker\"\n aria-hidden=\"true\">\n (optional)\n </span>\n }\n </span>\n}\n\n<div\n #trigger\n role=\"combobox\"\n aria-haspopup=\"listbox\"\n [class]=\"triggerClasses()\"\n [attr.name]=\"name()\"\n [attr.tabindex]=\"isDisabled() ? -1 : 0\"\n [attr.aria-expanded]=\"open() || preview.staticPreview()\"\n [attr.aria-controls]=\"listboxId\"\n [attr.aria-activedescendant]=\"activeDescendant()\"\n [attr.aria-labelledby]=\"label() ? labelId : null\"\n [attr.aria-label]=\"resolvedAriaLabel()\"\n [attr.aria-invalid]=\"invalidResolved() ? 'true' : null\"\n [attr.aria-describedby]=\"describedByIds(hintId(), groupMessage())\"\n [attr.aria-required]=\"required() ? 'true' : null\"\n [attr.aria-disabled]=\"isDisabled() ? 'true' : null\"\n (click)=\"toggle()\"\n (keydown)=\"onTriggerKeydown($event)\">\n @if (selectedOption()?.icon) {\n <ds-icon\n class=\"trigger-icon\"\n [name]=\"selectedOption()!.icon!\"\n [size]=\"16\" />\n }\n\n @if (pickerTrigger(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n $implicit: selectedOption(),\n selected: selectedOption(),\n count: hasValue() ? 1 : 0,\n open: open(),\n disabled: isDisabled(),\n }\" />\n } @else {\n <span\n class=\"trigger-text\"\n [class.is-placeholder]=\"!hasValue()\">\n {{ displayLabel() }}\n </span>\n }\n\n @if (\n clearable() &&\n hasValue() &&\n !isDisabled() &&\n !isReadOnly()\n ) {\n <button\n type=\"button\"\n class=\"clear-btn\"\n aria-label=\"Clear selection\"\n (click)=\"clearValue($event)\">\n <ds-icon\n name=\"x\"\n [size]=\"14\" />\n </button>\n }\n\n <span class=\"chevron\">\n <ds-icon\n name=\"chevronDown\"\n [size]=\"14\" />\n </span>\n</div>\n\n<ds-field-message\n [icon]=\"messageIcon()\"\n [text]=\"message().text\"\n [state]=\"message().state\"\n [messageId]=\"hintId()\"\n [reserve]=\"reserveMessageResolved()\" />\n\n@if (preview.staticPreview()) {\n <div class=\"ds-dropdown-panel\">\n <ng-container [ngTemplateOutlet]=\"panelContentTpl()\" />\n </div>\n}\n\n<ng-template #panel>\n <ng-container [ngTemplateOutlet]=\"panelContentTpl()\" />\n</ng-template>\n\n<ng-template #panelContent>\n <div class=\"dropdown-panel\">\n @if (panelHeaderTemplate(); as tpl) {\n <div class=\"panel-header\">\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n count: options().length,\n total: options().length,\n query: '',\n }\" />\n </div>\n }\n\n <ul\n class=\"dropdown-list\"\n role=\"listbox\"\n [attr.aria-busy]=\"loading() ? 'true' : null\"\n [id]=\"listboxId\"\n [attr.aria-labelledby]=\"label() ? labelId : null\">\n @for (item of options(); track $index; let groupIdx = $index) {\n @if (isOptionGroup(item)) {\n <li\n class=\"optgroup\"\n role=\"group\"\n [attr.aria-label]=\"item.label\">\n <span\n class=\"optgroup-label\"\n [class.is-first]=\"groupIdx === 0\">\n @if (groupLabelTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n $implicit: item,\n group: item,\n count: item.options.length,\n }\" />\n } @else {\n {{ item.label }}\n }\n </span>\n\n <ul\n class=\"optgroup-list\"\n role=\"presentation\">\n @for (opt of item.options; track opt.value) {\n <li role=\"presentation\">\n <button\n type=\"button\"\n role=\"option\"\n tabindex=\"-1\"\n class=\"option\"\n [id]=\"optionId(flatIndexOf(opt))\"\n [attr.aria-selected]=\"isSelected(opt)\"\n [attr.aria-disabled]=\"\n isOptionDisabled(opt, item.disabled) ? 'true' : null\n \"\n [attr.aria-describedby]=\"\n opt.disabled && opt.disabledReason\n ? optionId(flatIndexOf(opt)) + '-reason'\n : null\n \"\n [class.is-selected]=\"isSelected(opt)\"\n [class.is-active]=\"isActive(flatIndexOf(opt))\"\n [class.is-disabled]=\"isOptionDisabled(opt, item.disabled)\"\n [disabled]=\"isOptionDisabled(opt, item.disabled)\"\n (click)=\"pick(opt, item.disabled)\"\n (mouseenter)=\"\n cursorFromKeyboard.set(false);\n activeIndex.set(flatIndexOf(opt))\n \">\n @if (opt.icon) {\n <ds-icon\n class=\"option-icon\"\n [name]=\"opt.icon\"\n [size]=\"16\" />\n }\n\n @if (opt.disabled && opt.disabledReason) {\n <span\n class=\"option-reason\"\n [id]=\"optionId(flatIndexOf(opt)) + '-reason'\">\n {{ opt.disabledReason }}\n </span>\n }\n\n <span class=\"option-label\">\n @if (optionTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n $implicit: opt,\n option: opt,\n }\" />\n } @else {\n {{ opt.label }}\n }\n </span>\n\n <span\n class=\"option-check\"\n [class.is-shown]=\"isSelected(opt)\">\n </span>\n </button>\n </li>\n }\n </ul>\n </li>\n } @else {\n <li role=\"presentation\">\n <button\n type=\"button\"\n role=\"option\"\n tabindex=\"-1\"\n class=\"option\"\n [id]=\"optionId(flatIndexOf(item))\"\n [attr.aria-selected]=\"isSelected(item)\"\n [attr.aria-disabled]=\"item.disabled ? 'true' : null\"\n [class.is-selected]=\"isSelected(item)\"\n [class.is-active]=\"isActive(flatIndexOf(item))\"\n [class.is-disabled]=\"item.disabled\"\n [disabled]=\"item.disabled\"\n (click)=\"pick(item)\"\n (mouseenter)=\"\n cursorFromKeyboard.set(false);\n activeIndex.set(flatIndexOf(item))\n \">\n @if (item.icon) {\n <ds-icon\n class=\"option-icon\"\n [name]=\"item.icon\"\n [size]=\"16\" />\n }\n\n <span class=\"option-label\">\n @if (optionTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n $implicit: item,\n option: item,\n }\" />\n } @else {\n {{ item.label }}\n }\n </span>\n\n <span\n class=\"option-check\"\n [class.is-shown]=\"isSelected(item)\">\n </span>\n </button>\n </li>\n }\n }\n\n @if (loading()) {\n <li\n class=\"empty t-s\"\n role=\"presentation\">\n <ds-spinner size=\"sm\" />\n </li>\n } @else if (options().length === 0) {\n <li\n class=\"empty t-s\"\n role=\"presentation\">\n @if (emptyTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" />\n } @else {\n No options\n }\n </li>\n }\n </ul>\n\n @if (panelFooterTemplate(); as tpl) {\n <div class=\"panel-footer\">\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n count: options().length,\n total: options().length,\n query: '',\n }\" />\n </div>\n }\n </div>\n</ng-template>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["lastEnabledOf","firstEnabledOf"],"mappings":";;;;;;;;;;;;;;AAgBM,SAAU,mBAAmB,CACjC,IAAgB,EAAA;AAEhB,IAAA,OAAO,eAAe,CAAC,IAAI,CAAC;AAC9B;;ACgFM,MAAO,eACX,SAAQ,sBAA8B,CAAA;AAGrB,IAAA,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC;AAC1C;AACwE;IACrD,OAAO,GAAG,YAAY,EAAE;AAE1B,IAAA,GAAG,GAAG,MAAM,CAAC,gBAAgB,CAAC;AAC9B,IAAA,IAAI,GAAG,MAAM,EAAC,UAAuB,EAAC;AACpC,IAAA,OAAO,GAAG,MAAM,CAAC,eAAe,CAAC;;AAG3C,IAAA,KAAK,GAAG,KAAK,CAAS,EAAE,4EAAC;;AAEzB,IAAA,OAAO,GAAG,KAAK,CAAwB,EAAE,8EAAC;AACnD;AACsE;AACrD,IAAA,WAAW,GAAG;QAC7B,8BAA8B;QAC9B,0BAA0B;QAC1B,0BAA0B;QAC1B,+BAA+B;QAC/B,kCAAkC;QAClC,qCAAqC;QACrC,yBAAyB;KAC1B;AAED;;AAEwE;AAC/D,IAAA,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