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

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 (116) hide show
  1. package/CHANGELOG.md +423 -3
  2. package/agent/INDEX.md +12 -2
  3. package/agent/feedback/ds-alert.md +3 -2
  4. package/agent/feedback/ds-attachment.md +12 -0
  5. package/agent/feedback/ds-chat-attachment.md +10 -0
  6. package/agent/feedback/ds-chat-message.md +11 -0
  7. package/agent/feedback/ds-chat-step.md +10 -0
  8. package/agent/feedback/ds-chat-steps.md +10 -0
  9. package/agent/feedback/ds-chat-thread.md +11 -0
  10. package/agent/feedback/ds-timeline-item.md +3 -1
  11. package/agent/feedback/ds-timeline.md +9 -0
  12. package/agent/feedback/ds-toast.md +1 -1
  13. package/agent/feedback/ds-tree.md +3 -1
  14. package/agent/forms/ds-chat-input.md +16 -0
  15. package/agent/forms/ds-inline-edit.md +14 -0
  16. package/agent/foundations/tokens.md +3 -3
  17. package/agent/navigation/ds-splitter.md +14 -0
  18. package/agent/platform/toast-service.md +3 -2
  19. package/agent/tables/ds-table.md +1 -1
  20. package/components.md +110 -11
  21. package/fesm2022/ids-group-ltd-ids-design-system-components-alert.mjs +5 -3
  22. package/fesm2022/ids-group-ltd-ids-design-system-components-alert.mjs.map +1 -1
  23. package/fesm2022/ids-group-ltd-ids-design-system-components-app-layout.mjs +2 -2
  24. package/fesm2022/ids-group-ltd-ids-design-system-components-app-layout.mjs.map +1 -1
  25. package/fesm2022/ids-group-ltd-ids-design-system-components-autocomplete.mjs +2 -2
  26. package/fesm2022/ids-group-ltd-ids-design-system-components-autocomplete.mjs.map +1 -1
  27. package/fesm2022/ids-group-ltd-ids-design-system-components-button.mjs +2 -2
  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-chat.mjs +928 -0
  30. package/fesm2022/ids-group-ltd-ids-design-system-components-chat.mjs.map +1 -0
  31. package/fesm2022/ids-group-ltd-ids-design-system-components-color-picker.mjs +2 -2
  32. package/fesm2022/ids-group-ltd-ids-design-system-components-color-picker.mjs.map +1 -1
  33. package/fesm2022/ids-group-ltd-ids-design-system-components-date-picker.mjs +2 -2
  34. package/fesm2022/ids-group-ltd-ids-design-system-components-date-picker.mjs.map +1 -1
  35. package/fesm2022/ids-group-ltd-ids-design-system-components-drawer.mjs +2 -2
  36. package/fesm2022/ids-group-ltd-ids-design-system-components-drawer.mjs.map +1 -1
  37. package/fesm2022/ids-group-ltd-ids-design-system-components-field-group.mjs +2 -2
  38. package/fesm2022/ids-group-ltd-ids-design-system-components-field-group.mjs.map +1 -1
  39. package/fesm2022/ids-group-ltd-ids-design-system-components-inline-edit.mjs +107 -0
  40. package/fesm2022/ids-group-ltd-ids-design-system-components-inline-edit.mjs.map +1 -0
  41. package/fesm2022/ids-group-ltd-ids-design-system-components-input.mjs +2 -2
  42. package/fesm2022/ids-group-ltd-ids-design-system-components-input.mjs.map +1 -1
  43. package/fesm2022/ids-group-ltd-ids-design-system-components-list.mjs +2 -2
  44. package/fesm2022/ids-group-ltd-ids-design-system-components-list.mjs.map +1 -1
  45. package/fesm2022/ids-group-ltd-ids-design-system-components-menu.mjs +2 -2
  46. package/fesm2022/ids-group-ltd-ids-design-system-components-menu.mjs.map +1 -1
  47. package/fesm2022/ids-group-ltd-ids-design-system-components-modal.mjs +4 -4
  48. package/fesm2022/ids-group-ltd-ids-design-system-components-modal.mjs.map +1 -1
  49. package/fesm2022/ids-group-ltd-ids-design-system-components-multi-select.mjs +2 -2
  50. package/fesm2022/ids-group-ltd-ids-design-system-components-multi-select.mjs.map +1 -1
  51. package/fesm2022/ids-group-ltd-ids-design-system-components-number-stepper.mjs +2 -2
  52. package/fesm2022/ids-group-ltd-ids-design-system-components-number-stepper.mjs.map +1 -1
  53. package/fesm2022/ids-group-ltd-ids-design-system-components-otp-input.mjs +2 -2
  54. package/fesm2022/ids-group-ltd-ids-design-system-components-otp-input.mjs.map +1 -1
  55. package/fesm2022/ids-group-ltd-ids-design-system-components-popover.mjs +16 -12
  56. package/fesm2022/ids-group-ltd-ids-design-system-components-popover.mjs.map +1 -1
  57. package/fesm2022/ids-group-ltd-ids-design-system-components-search.mjs +2 -2
  58. package/fesm2022/ids-group-ltd-ids-design-system-components-search.mjs.map +1 -1
  59. package/fesm2022/ids-group-ltd-ids-design-system-components-select.mjs +2 -2
  60. package/fesm2022/ids-group-ltd-ids-design-system-components-select.mjs.map +1 -1
  61. package/fesm2022/ids-group-ltd-ids-design-system-components-splitter.mjs +465 -0
  62. package/fesm2022/ids-group-ltd-ids-design-system-components-splitter.mjs.map +1 -0
  63. package/fesm2022/ids-group-ltd-ids-design-system-components-stepper.mjs +2 -2
  64. package/fesm2022/ids-group-ltd-ids-design-system-components-stepper.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-textarea.mjs +4 -2
  68. package/fesm2022/ids-group-ltd-ids-design-system-components-textarea.mjs.map +1 -1
  69. package/fesm2022/ids-group-ltd-ids-design-system-components-time-picker.mjs +2 -2
  70. package/fesm2022/ids-group-ltd-ids-design-system-components-time-picker.mjs.map +1 -1
  71. package/fesm2022/ids-group-ltd-ids-design-system-components-timeline.mjs +74 -17
  72. package/fesm2022/ids-group-ltd-ids-design-system-components-timeline.mjs.map +1 -1
  73. package/fesm2022/ids-group-ltd-ids-design-system-components-toast.mjs +163 -20
  74. package/fesm2022/ids-group-ltd-ids-design-system-components-toast.mjs.map +1 -1
  75. package/fesm2022/ids-group-ltd-ids-design-system-components-tooltip.mjs +4 -19
  76. package/fesm2022/ids-group-ltd-ids-design-system-components-tooltip.mjs.map +1 -1
  77. package/fesm2022/ids-group-ltd-ids-design-system-components-tree.mjs +182 -24
  78. package/fesm2022/ids-group-ltd-ids-design-system-components-tree.mjs.map +1 -1
  79. package/fesm2022/ids-group-ltd-ids-design-system-components.mjs +31 -4
  80. package/fesm2022/ids-group-ltd-ids-design-system-components.mjs.map +1 -1
  81. package/fesm2022/ids-group-ltd-ids-design-system-core.mjs +74 -0
  82. package/fesm2022/ids-group-ltd-ids-design-system-core.mjs.map +1 -1
  83. package/fesm2022/ids-group-ltd-ids-design-system-icons.mjs +4 -2
  84. package/fesm2022/ids-group-ltd-ids-design-system-icons.mjs.map +1 -1
  85. package/fesm2022/ids-group-ltd-ids-design-system.mjs +4 -1
  86. package/fesm2022/ids-group-ltd-ids-design-system.mjs.map +1 -1
  87. package/migrations/0.11.2.json +1 -0
  88. package/migrations/1.0.1.json +4 -0
  89. package/migrations/1.0.2.json +37 -1
  90. package/migrations/1.1.0.json +208 -0
  91. package/migrations/1.1.1.json +190 -0
  92. package/migrations/README.md +6 -6
  93. package/package.json +25 -1
  94. package/schematics/check-overrides/surface.json +199 -6
  95. package/styles/_dropdown-overlay.scss +11 -6
  96. package/styles/_field-box.scss +2 -2
  97. package/styles/_step-marker.scss +51 -0
  98. package/styles/_tokens.scss +5 -3
  99. package/themes/README.md +2 -1
  100. package/themes/_semantic.scss +15 -0
  101. package/themes/dark/_palette.scss +1 -2
  102. package/themes/dark/_theme.scss +32 -3
  103. package/types/ids-group-ltd-ids-design-system-components-alert.d.ts +3 -1
  104. package/types/ids-group-ltd-ids-design-system-components-button.d.ts +2 -2
  105. package/types/ids-group-ltd-ids-design-system-components-chart.d.ts +1 -1
  106. package/types/ids-group-ltd-ids-design-system-components-chat.d.ts +377 -0
  107. package/types/ids-group-ltd-ids-design-system-components-inline-edit.d.ts +43 -0
  108. package/types/ids-group-ltd-ids-design-system-components-pie-chart.d.ts +1 -1
  109. package/types/ids-group-ltd-ids-design-system-components-splitter.d.ts +97 -0
  110. package/types/ids-group-ltd-ids-design-system-components-textarea.d.ts +2 -0
  111. package/types/ids-group-ltd-ids-design-system-components-timeline.d.ts +34 -5
  112. package/types/ids-group-ltd-ids-design-system-components-toast.d.ts +53 -4
  113. package/types/ids-group-ltd-ids-design-system-components-tree.d.ts +87 -7
  114. package/types/ids-group-ltd-ids-design-system-components.d.ts +8 -4
  115. package/types/ids-group-ltd-ids-design-system-core.d.ts +126 -0
  116. package/types/ids-group-ltd-ids-design-system.d.ts +6 -3
@@ -401,7 +401,7 @@ class AppLayoutComponent {
401
401
  this.destroyRef.onDestroy(() => desktop.removeEventListener('change', sync));
402
402
  }
403
403
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: AppLayoutComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
404
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "21.2.22", type: AppLayoutComponent, isStandalone: true, selector: "ds-app-layout", inputs: { topbarSpan: { classPropertyName: "topbarSpan", publicName: "topbarSpan", isSignal: true, isRequired: false, transformFunction: null }, railOpen: { classPropertyName: "railOpen", publicName: "railOpen", isSignal: true, isRequired: false, transformFunction: null }, railLabel: { classPropertyName: "railLabel", publicName: "railLabel", isSignal: true, isRequired: false, transformFunction: null }, restoreScroll: { classPropertyName: "restoreScroll", publicName: "restoreScroll", isSignal: true, isRequired: false, transformFunction: null }, restoreScrollTimeout: { classPropertyName: "restoreScrollTimeout", publicName: "restoreScrollTimeout", isSignal: true, isRequired: false, transformFunction: null }, scrollReset: { classPropertyName: "scrollReset", publicName: "scrollReset", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { railOpen: "railOpenChange" }, host: { listeners: { "document:keydown.escape": "closeRail()" }, properties: { "class.app-layout": "true", "class.topbar-full": "topbarSpan() === 'full'", "class.rail-open": "railOpen()" } }, providers: [AppLayoutScrollService], viewQueries: [{ propertyName: "content", first: true, predicate: ["content"], descendants: true, isSignal: true }], ngImport: i0, template: "<!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events, @angular-eslint/template/interactive-supports-focus -- scrim; click dismisses, keyboard dismisses via Escape (host document:keydown.escape) -->\n<div\n class=\"scrim\"\n [class.open]=\"railOpen()\"\n (click)=\"closeRail()\">\n</div>\n\n<div\n class=\"rail\"\n [class.open]=\"railOpen()\"\n [id]=\"railId\"\n [attr.role]=\"compact() ? 'dialog' : null\"\n [attr.aria-modal]=\"compact() ? 'true' : null\"\n [attr.aria-label]=\"compact() ? railLabelResolved() : null\"\n [attr.inert]=\"compact() && !railOpen() ? '' : null\"\n [cdkTrapFocus]=\"compact() && railOpen()\"\n [cdkTrapFocusAutoCapture]=\"compact() && railOpen()\">\n <ng-content select=\"[sidenav]\"></ng-content>\n</div>\n\n<div class=\"bar\">\n <ng-content select=\"[topbar]\"></ng-content>\n</div>\n\n<main\n #content\n class=\"content\"\n tabindex=\"-1\">\n <div class=\"inner\">\n <ng-content></ng-content>\n </div>\n</main>\n", styles: [":where(:host){box-sizing:border-box;interpolate-size:allow-keywords}:where(*){box-sizing:border-box}:where(button,input,select,textarea){font-family:inherit}:where(h1,h2,h3,h4,h5,h6){margin:0}:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard);border-radius:var(--focus-ring-radius)}@media(forced-colors:active){:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}:host{--_app-layout-desktop-min-width: var(--bp-lg, 1024px);--_app-layout-padding-x: var(--ds-app-layout-padding-x, var(--space-6));--_app-layout-padding-y: var(--ds-app-layout-padding-y, var(--space-6));--_app-layout-content-max-width: var(--ds-app-layout-content-max-width, none);--_app-layout-rail-bg-color: var(--ds-app-layout-rail-bg-color, var(--surface-overlay));--_app-layout-rail-shadow: var(--ds-app-layout-rail-shadow, var(--ds-elevation-modal));--_app-layout-scrim-color: var(--ds-app-layout-scrim-color, var(--scrim, hsl(220deg 20% 12% / 45%)));display:grid;grid-template-areas:\"sidenav topbar\" \"sidenav content\";grid-template-columns:auto 1fr;grid-template-rows:auto 1fr;height:var(--ds-app-layout-height, 100dvh);position:relative;isolation:isolate;overflow:hidden}:host(.topbar-full){grid-template-areas:\"topbar topbar\" \"sidenav content\"}.rail{display:grid;grid-area:sidenav;overflow-y:auto}@media(width<1024px){.rail{position:absolute;z-index:var(--layer-drawer);top:0;bottom:0;left:0;background:var(--_app-layout-rail-bg-color);box-shadow:var(--_app-layout-rail-shadow);transform:translate(-100%);transition:transform var(--duration-base) var(--ease-standard)}.rail.open{transform:translate(0)}}.scrim{display:none}@media(width<1024px){.scrim{display:block;position:absolute;z-index:calc(var(--layer-drawer) - 1);inset:0;background:var(--_app-layout-scrim-color);opacity:0;transition:opacity var(--duration-base) var(--ease-standard),visibility var(--duration-base) var(--ease-standard);visibility:hidden}.scrim.open{opacity:1;visibility:visible}}.bar{display:grid;grid-area:topbar}.content{grid-area:content;padding:var(--_app-layout-padding-y) var(--_app-layout-padding-x);padding-right:calc(var(--_app-layout-padding-x) - var(--ds-scrollbar-width, 0px));overflow:auto;scrollbar-gutter:stable}@media not (forced-colors:active){.content:focus{outline:none}}.inner{max-width:var(--_app-layout-content-max-width);margin-inline:auto}\n"], dependencies: [{ kind: "ngmodule", type: A11yModule }, { kind: "directive", type: i1.CdkTrapFocus, selector: "[cdkTrapFocus]", inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"], exportAs: ["cdkTrapFocus"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
404
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "21.2.22", type: AppLayoutComponent, isStandalone: true, selector: "ds-app-layout", inputs: { topbarSpan: { classPropertyName: "topbarSpan", publicName: "topbarSpan", isSignal: true, isRequired: false, transformFunction: null }, railOpen: { classPropertyName: "railOpen", publicName: "railOpen", isSignal: true, isRequired: false, transformFunction: null }, railLabel: { classPropertyName: "railLabel", publicName: "railLabel", isSignal: true, isRequired: false, transformFunction: null }, restoreScroll: { classPropertyName: "restoreScroll", publicName: "restoreScroll", isSignal: true, isRequired: false, transformFunction: null }, restoreScrollTimeout: { classPropertyName: "restoreScrollTimeout", publicName: "restoreScrollTimeout", isSignal: true, isRequired: false, transformFunction: null }, scrollReset: { classPropertyName: "scrollReset", publicName: "scrollReset", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { railOpen: "railOpenChange" }, host: { listeners: { "document:keydown.escape": "closeRail()" }, properties: { "class.app-layout": "true", "class.topbar-full": "topbarSpan() === 'full'", "class.rail-open": "railOpen()" } }, providers: [AppLayoutScrollService], viewQueries: [{ propertyName: "content", first: true, predicate: ["content"], descendants: true, isSignal: true }], ngImport: i0, template: "<!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events, @angular-eslint/template/interactive-supports-focus -- scrim; click dismisses, keyboard dismisses via Escape (host document:keydown.escape) -->\n<div\n class=\"scrim\"\n [class.open]=\"railOpen()\"\n (click)=\"closeRail()\">\n</div>\n\n<div\n class=\"rail\"\n [class.open]=\"railOpen()\"\n [id]=\"railId\"\n [attr.role]=\"compact() ? 'dialog' : null\"\n [attr.aria-modal]=\"compact() ? 'true' : null\"\n [attr.aria-label]=\"compact() ? railLabelResolved() : null\"\n [attr.inert]=\"compact() && !railOpen() ? '' : null\"\n [cdkTrapFocus]=\"compact() && railOpen()\"\n [cdkTrapFocusAutoCapture]=\"compact() && railOpen()\">\n <ng-content select=\"[sidenav]\"></ng-content>\n</div>\n\n<div class=\"bar\">\n <ng-content select=\"[topbar]\"></ng-content>\n</div>\n\n<main\n #content\n class=\"content\"\n tabindex=\"-1\">\n <div class=\"inner\">\n <ng-content></ng-content>\n </div>\n</main>\n", styles: [":where(:host){box-sizing:border-box;interpolate-size:allow-keywords}:where(*){box-sizing:border-box}:where(button,input,select,textarea){font-family:inherit}:where(h1,h2,h3,h4,h5,h6){margin:0}:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard);border-radius:var(--focus-ring-radius)}@media(forced-colors:active){:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}:host{--_app-layout-desktop-min-width: var(--bp-lg, 1024px);--_app-layout-padding-x: var(--ds-app-layout-padding-x, var(--space-6));--_app-layout-padding-y: var(--ds-app-layout-padding-y, var(--space-6));--_app-layout-content-max-width: var(--ds-app-layout-content-max-width, none);--_app-layout-rail-bg-color: var(--ds-app-layout-rail-bg-color, var(--surface-overlay));--_app-layout-rail-shadow: var(--ds-app-layout-rail-shadow, var(--ds-elevation-modal));--_app-layout-scrim-color: var(--ds-app-layout-scrim-color, var(--scrim, hsl(220deg 20% 12% / 45%)));display:grid;grid-template-areas:\"sidenav topbar\" \"sidenav content\";grid-template-columns:auto 1fr;grid-template-rows:auto 1fr;height:var(--ds-app-layout-height, 100dvh);position:relative;isolation:isolate;overflow:hidden}:host(.topbar-full){grid-template-areas:\"topbar topbar\" \"sidenav content\"}.rail{display:grid;grid-area:sidenav;overflow-y:auto}@media(width<1024px){.rail{--surface-secondary: var(--surface-overlay-secondary);--surface-muted: var(--surface-overlay-muted);--surface-tint: var(--surface-overlay-tint);--accent-surface-tint: var(--surface-overlay-tint);--accent-strong: var(--accent-strong-overlay);position:absolute;z-index:var(--layer-drawer);top:0;bottom:0;left:0;background:var(--_app-layout-rail-bg-color);box-shadow:var(--_app-layout-rail-shadow);transform:translate(-100%);transition:transform var(--duration-base) var(--ease-standard)}.rail.open{transform:translate(0)}}.scrim{display:none}@media(width<1024px){.scrim{display:block;position:absolute;z-index:calc(var(--layer-drawer) - 1);inset:0;background:var(--_app-layout-scrim-color);opacity:0;transition:opacity var(--duration-base) var(--ease-standard),visibility var(--duration-base) var(--ease-standard);visibility:hidden}.scrim.open{opacity:1;visibility:visible}}.bar{display:grid;grid-area:topbar}.content{grid-area:content;padding:var(--_app-layout-padding-y) var(--_app-layout-padding-x);padding-right:calc(var(--_app-layout-padding-x) - var(--ds-scrollbar-width, 0px));overflow:auto;scrollbar-gutter:stable}@media not (forced-colors:active){.content:focus{outline:none}}.inner{max-width:var(--_app-layout-content-max-width);margin-inline:auto}\n"], dependencies: [{ kind: "ngmodule", type: A11yModule }, { kind: "directive", type: i1.CdkTrapFocus, selector: "[cdkTrapFocus]", inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"], exportAs: ["cdkTrapFocus"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
405
405
  }
406
406
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: AppLayoutComponent, decorators: [{
407
407
  type: Component,
@@ -410,7 +410,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImpo
410
410
  '[class.topbar-full]': "topbarSpan() === 'full'",
411
411
  '[class.rail-open]': 'railOpen()',
412
412
  '(document:keydown.escape)': 'closeRail()',
413
- }, providers: [AppLayoutScrollService], template: "<!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events, @angular-eslint/template/interactive-supports-focus -- scrim; click dismisses, keyboard dismisses via Escape (host document:keydown.escape) -->\n<div\n class=\"scrim\"\n [class.open]=\"railOpen()\"\n (click)=\"closeRail()\">\n</div>\n\n<div\n class=\"rail\"\n [class.open]=\"railOpen()\"\n [id]=\"railId\"\n [attr.role]=\"compact() ? 'dialog' : null\"\n [attr.aria-modal]=\"compact() ? 'true' : null\"\n [attr.aria-label]=\"compact() ? railLabelResolved() : null\"\n [attr.inert]=\"compact() && !railOpen() ? '' : null\"\n [cdkTrapFocus]=\"compact() && railOpen()\"\n [cdkTrapFocusAutoCapture]=\"compact() && railOpen()\">\n <ng-content select=\"[sidenav]\"></ng-content>\n</div>\n\n<div class=\"bar\">\n <ng-content select=\"[topbar]\"></ng-content>\n</div>\n\n<main\n #content\n class=\"content\"\n tabindex=\"-1\">\n <div class=\"inner\">\n <ng-content></ng-content>\n </div>\n</main>\n", styles: [":where(:host){box-sizing:border-box;interpolate-size:allow-keywords}:where(*){box-sizing:border-box}:where(button,input,select,textarea){font-family:inherit}:where(h1,h2,h3,h4,h5,h6){margin:0}:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard);border-radius:var(--focus-ring-radius)}@media(forced-colors:active){:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}:host{--_app-layout-desktop-min-width: var(--bp-lg, 1024px);--_app-layout-padding-x: var(--ds-app-layout-padding-x, var(--space-6));--_app-layout-padding-y: var(--ds-app-layout-padding-y, var(--space-6));--_app-layout-content-max-width: var(--ds-app-layout-content-max-width, none);--_app-layout-rail-bg-color: var(--ds-app-layout-rail-bg-color, var(--surface-overlay));--_app-layout-rail-shadow: var(--ds-app-layout-rail-shadow, var(--ds-elevation-modal));--_app-layout-scrim-color: var(--ds-app-layout-scrim-color, var(--scrim, hsl(220deg 20% 12% / 45%)));display:grid;grid-template-areas:\"sidenav topbar\" \"sidenav content\";grid-template-columns:auto 1fr;grid-template-rows:auto 1fr;height:var(--ds-app-layout-height, 100dvh);position:relative;isolation:isolate;overflow:hidden}:host(.topbar-full){grid-template-areas:\"topbar topbar\" \"sidenav content\"}.rail{display:grid;grid-area:sidenav;overflow-y:auto}@media(width<1024px){.rail{position:absolute;z-index:var(--layer-drawer);top:0;bottom:0;left:0;background:var(--_app-layout-rail-bg-color);box-shadow:var(--_app-layout-rail-shadow);transform:translate(-100%);transition:transform var(--duration-base) var(--ease-standard)}.rail.open{transform:translate(0)}}.scrim{display:none}@media(width<1024px){.scrim{display:block;position:absolute;z-index:calc(var(--layer-drawer) - 1);inset:0;background:var(--_app-layout-scrim-color);opacity:0;transition:opacity var(--duration-base) var(--ease-standard),visibility var(--duration-base) var(--ease-standard);visibility:hidden}.scrim.open{opacity:1;visibility:visible}}.bar{display:grid;grid-area:topbar}.content{grid-area:content;padding:var(--_app-layout-padding-y) var(--_app-layout-padding-x);padding-right:calc(var(--_app-layout-padding-x) - var(--ds-scrollbar-width, 0px));overflow:auto;scrollbar-gutter:stable}@media not (forced-colors:active){.content:focus{outline:none}}.inner{max-width:var(--_app-layout-content-max-width);margin-inline:auto}\n"] }]
413
+ }, providers: [AppLayoutScrollService], template: "<!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events, @angular-eslint/template/interactive-supports-focus -- scrim; click dismisses, keyboard dismisses via Escape (host document:keydown.escape) -->\n<div\n class=\"scrim\"\n [class.open]=\"railOpen()\"\n (click)=\"closeRail()\">\n</div>\n\n<div\n class=\"rail\"\n [class.open]=\"railOpen()\"\n [id]=\"railId\"\n [attr.role]=\"compact() ? 'dialog' : null\"\n [attr.aria-modal]=\"compact() ? 'true' : null\"\n [attr.aria-label]=\"compact() ? railLabelResolved() : null\"\n [attr.inert]=\"compact() && !railOpen() ? '' : null\"\n [cdkTrapFocus]=\"compact() && railOpen()\"\n [cdkTrapFocusAutoCapture]=\"compact() && railOpen()\">\n <ng-content select=\"[sidenav]\"></ng-content>\n</div>\n\n<div class=\"bar\">\n <ng-content select=\"[topbar]\"></ng-content>\n</div>\n\n<main\n #content\n class=\"content\"\n tabindex=\"-1\">\n <div class=\"inner\">\n <ng-content></ng-content>\n </div>\n</main>\n", styles: [":where(:host){box-sizing:border-box;interpolate-size:allow-keywords}:where(*){box-sizing:border-box}:where(button,input,select,textarea){font-family:inherit}:where(h1,h2,h3,h4,h5,h6){margin:0}:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard);border-radius:var(--focus-ring-radius)}@media(forced-colors:active){:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}:host{--_app-layout-desktop-min-width: var(--bp-lg, 1024px);--_app-layout-padding-x: var(--ds-app-layout-padding-x, var(--space-6));--_app-layout-padding-y: var(--ds-app-layout-padding-y, var(--space-6));--_app-layout-content-max-width: var(--ds-app-layout-content-max-width, none);--_app-layout-rail-bg-color: var(--ds-app-layout-rail-bg-color, var(--surface-overlay));--_app-layout-rail-shadow: var(--ds-app-layout-rail-shadow, var(--ds-elevation-modal));--_app-layout-scrim-color: var(--ds-app-layout-scrim-color, var(--scrim, hsl(220deg 20% 12% / 45%)));display:grid;grid-template-areas:\"sidenav topbar\" \"sidenav content\";grid-template-columns:auto 1fr;grid-template-rows:auto 1fr;height:var(--ds-app-layout-height, 100dvh);position:relative;isolation:isolate;overflow:hidden}:host(.topbar-full){grid-template-areas:\"topbar topbar\" \"sidenav content\"}.rail{display:grid;grid-area:sidenav;overflow-y:auto}@media(width<1024px){.rail{--surface-secondary: var(--surface-overlay-secondary);--surface-muted: var(--surface-overlay-muted);--surface-tint: var(--surface-overlay-tint);--accent-surface-tint: var(--surface-overlay-tint);--accent-strong: var(--accent-strong-overlay);position:absolute;z-index:var(--layer-drawer);top:0;bottom:0;left:0;background:var(--_app-layout-rail-bg-color);box-shadow:var(--_app-layout-rail-shadow);transform:translate(-100%);transition:transform var(--duration-base) var(--ease-standard)}.rail.open{transform:translate(0)}}.scrim{display:none}@media(width<1024px){.scrim{display:block;position:absolute;z-index:calc(var(--layer-drawer) - 1);inset:0;background:var(--_app-layout-scrim-color);opacity:0;transition:opacity var(--duration-base) var(--ease-standard),visibility var(--duration-base) var(--ease-standard);visibility:hidden}.scrim.open{opacity:1;visibility:visible}}.bar{display:grid;grid-area:topbar}.content{grid-area:content;padding:var(--_app-layout-padding-y) var(--_app-layout-padding-x);padding-right:calc(var(--_app-layout-padding-x) - var(--ds-scrollbar-width, 0px));overflow:auto;scrollbar-gutter:stable}@media not (forced-colors:active){.content:focus{outline:none}}.inner{max-width:var(--_app-layout-content-max-width);margin-inline:auto}\n"] }]
414
414
  }], ctorParameters: () => [], propDecorators: { topbarSpan: [{ type: i0.Input, args: [{ isSignal: true, alias: "topbarSpan", required: false }] }], railOpen: [{ type: i0.Input, args: [{ isSignal: true, alias: "railOpen", required: false }] }, { type: i0.Output, args: ["railOpenChange"] }], railLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "railLabel", required: false }] }], restoreScroll: [{ type: i0.Input, args: [{ isSignal: true, alias: "restoreScroll", required: false }] }], restoreScrollTimeout: [{ type: i0.Input, args: [{ isSignal: true, alias: "restoreScrollTimeout", required: false }] }], scrollReset: [{ type: i0.Input, args: [{ isSignal: true, alias: "scrollReset", required: false }] }], content: [{ type: i0.ViewChild, args: ['content', { isSignal: true }] }] } });
415
415
 
416
416
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"ids-group-ltd-ids-design-system-components-app-layout.mjs","sources":["../../../src/lib/components/app-layout/scrollbar-width.service.ts","../../../src/lib/components/app-layout/layout-navigation.service.ts","../../../src/lib/components/app-layout/layout-scroll.service.ts","../../../src/lib/components/app-layout/app-layout.component.ts","../../../src/lib/components/app-layout/app-layout.component.html","../../../src/lib/components/app-layout/rail-trigger.directive.ts","../../../src/lib/components/app-layout/ids-group-ltd-ids-design-system-components-app-layout.ts"],"sourcesContent":["import { DOCUMENT } from '@angular/common';\nimport { DestroyRef, inject, Injectable, signal } from '@angular/core';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport { debounceTime, fromEvent } from 'rxjs';\n\n/**\n * Measures the native scrollbar width per device and publishes it as\n * `--ds-scrollbar-width` on `:root` (recomputed on debounced resize; 0 with\n * overlay scrollbars). `ds-app-layout` subtracts it from the content region's\n * right padding. Internal, instantiated by `ds-app-layout`.\n */\n@Injectable({ providedIn: 'root' })\nexport class ScrollbarWidthService {\n private readonly document = inject(DOCUMENT);\n private readonly window = this.document.defaultView!;\n\n readonly width = signal(this.measureWidth());\n\n constructor() {\n const destroyRef = inject(DestroyRef);\n\n this.applyToCss(this.width());\n\n fromEvent(this.window, 'resize')\n .pipe(debounceTime(200), takeUntilDestroyed(destroyRef))\n .subscribe(() => {\n const value = this.measureWidth();\n this.width.set(value);\n this.applyToCss(value);\n });\n }\n\n private measureWidth(): number {\n const probe = this.document.createElement('div');\n probe.style.cssText =\n 'overflow:scroll;width:100px;height:100px;position:absolute;top:-9999px';\n this.document.body.appendChild(probe);\n\n const inner = this.document.createElement('div');\n inner.style.cssText = 'width:100%;height:1px';\n probe.appendChild(inner);\n\n const width =\n probe.getBoundingClientRect().width - inner.getBoundingClientRect().width;\n\n probe.remove();\n\n return width;\n }\n\n private applyToCss(value: number): void {\n this.document.documentElement.style.setProperty(\n '--ds-scrollbar-width',\n `${value}px`,\n );\n }\n}\n","import { Injectable, inject } from '@angular/core';\nimport { NavigationEnd, Router } from '@angular/router';\nimport { distinctUntilChanged, filter, map, type Observable } from 'rxjs';\n\n/**\n * Emits the new path whenever navigation lands on a DIFFERENT one; query- or\n * fragment-only navigations are ignored. Read `pathChanged` instead of\n * re-deriving the path change:\n *\n * ```ts\n * private readonly navigation = inject(AppLayoutNavigationService);\n * constructor() {\n * this.navigation.pathChanged\n * .pipe(takeUntilDestroyed())\n * .subscribe((path) => …);\n * }\n * ```\n *\n * A navigation that changes the path while staying on the same screen (a scroll\n * spy rewriting the URL, a wizard step) must carry `state: { dsSamePage: true }`,\n * which is skipped here; otherwise the scroll reset and the spy ping-pong.\n *\n * `AppLayoutScrollService` depends on it, so a consumer providing THAT\n * outside `ds-app-layout` needs this one resolvable too.\n */\n@Injectable({ providedIn: 'root' })\nexport class AppLayoutNavigationService {\n private readonly router = inject(Router);\n\n readonly pathChanged: Observable<string> = this.router.events.pipe(\n filter((event): event is NavigationEnd => event instanceof NavigationEnd),\n filter(() => !this.samePage()),\n map((event) => event.urlAfterRedirects.split(/[?#]/)[0]),\n distinctUntilChanged(),\n );\n\n // `lastSuccessfulNavigation`, not `getCurrentNavigation()`: the latter is\n // already cleared by the time NavigationEnd reaches a subscriber.\n private samePage(): boolean {\n const state = this.router.lastSuccessfulNavigation()?.extras.state;\n\n return state?.['dsSamePage'] === true;\n }\n}\n","import {\n DestroyRef,\n Injectable,\n type Signal,\n inject,\n signal,\n} from '@angular/core';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport { NavigationEnd, NavigationStart, Router } from '@angular/router';\nimport { filter } from 'rxjs/operators';\nimport { AppLayoutNavigationService } from './layout-navigation.service';\n\nconst STORAGE_KEY = 'ds-app-layout:scroll';\n\nconst MAX_ENTRIES = 20;\n\n// NOT `scroll`: our own restore emits one and would cancel itself.\nconst CANCEL_EVENTS = ['wheel', 'touchstart', 'keydown'] as const;\n\nconst pathOf = (url: string): string => url.split(/[?#]/)[0];\n\n/**\n * When the layout resets the content scroll to the top.\n *\n * `'path'` (default): only when navigation lands on a different PATH.\n * `'always'` resets on every navigation. `'never'` leaves it to the screen,\n * which can call `AppLayoutScrollService.scrollToTop()`.\n */\nexport type DsAppLayoutScrollReset = 'path' | 'never' | 'always';\n\n/**\n * Owns the layout's content scroller. The window never scrolls in the\n * fixed-frame layout, so the router's window-based scrolling no-ops; this\n * service resets the registered container when navigation lands on a different\n * PATH. Provided by `ds-app-layout`; routed pages can inject it and call\n * `scrollToTop()`.\n *\n * With `restoreScroll` on the layout it also restores the reader's place, but\n * only when armed: going BACK restores, following a link does not.\n */\n@Injectable()\nexport class AppLayoutScrollService {\n private readonly navigation = inject(AppLayoutNavigationService);\n private readonly router = inject(Router);\n private readonly destroyRef = inject(DestroyRef);\n private readonly container = signal<Element | null>(null);\n\n /** The content scroller, once the layout has rendered it. */\n readonly scroller: Signal<Element | null> = this.container.asReadonly();\n\n // null = restoration off.\n private restoreTimeoutMs: number | null = null;\n private resetStrategy: DsAppLayoutScrollReset = 'path';\n private armed = false;\n private pendingOffset: number | null = null;\n private endRestore: (() => void) | null = null;\n private firstNavigation = true;\n\n constructor() {\n this.navigation.pathChanged\n .pipe(takeUntilDestroyed(this.destroyRef))\n // Skipped while a restore is armed: the reset would undo the offset about to be applied.\n .subscribe(() => {\n if (this.resetStrategy === 'path' && !this.armed) {\n this.scrollToTop();\n }\n });\n\n this.router.events\n .pipe(\n filter(\n (event): event is NavigationStart => event instanceof NavigationStart,\n ),\n takeUntilDestroyed(this.destroyRef),\n )\n .subscribe((event) => this.onNavigationStart(event));\n\n this.router.events\n .pipe(\n filter(\n (event): event is NavigationEnd => event instanceof NavigationEnd,\n ),\n takeUntilDestroyed(this.destroyRef),\n )\n .subscribe(() => this.onNavigationEnd());\n\n this.destroyRef.onDestroy(() => this.finishRestore());\n }\n\n /** Wiring for `ds-app-layout`; not for consumers. */\n setScrollContainer(element: Element): void {\n this.container.set(element);\n }\n\n /** Wiring: `ds-app-layout` mirrors its `restoreScroll` inputs through here. */\n configureRestore(timeoutMs: number | null): void {\n this.restoreTimeoutMs = timeoutMs;\n }\n\n /** Wiring: `ds-app-layout` mirrors its `scrollReset` input through here. */\n configureReset(strategy: DsAppLayoutScrollReset): void {\n this.resetStrategy = strategy;\n }\n\n scrollToTop(): void {\n this.scrollTo(0);\n }\n\n /** Scrolls the content region to an absolute offset. Assigns `scrollTop`, so `scroll-behavior: smooth` cannot animate it. */\n scrollTo(top: number): void {\n const element = this.container();\n if (element) {\n element.scrollTop = top;\n }\n }\n\n /**\n * Takes the offset this navigation is going to restore, and cancels the restore.\n * For a host that must know the offset BEFORE it builds rows (a virtualizer).\n * Returns null when nothing is pending.\n */\n consumePendingOffset(): number | null {\n const offset = this.pendingOffset;\n if (offset === null) {\n return null;\n }\n this.finishRestore();\n\n return offset;\n }\n\n /** Optional: tells the layout the route's content is in the DOM, ending the restore wait early. */\n contentReady(): void {\n if (this.pendingOffset !== null) {\n this.applyClamped(this.pendingOffset);\n this.finishRestore();\n }\n }\n\n private onNavigationStart(event: NavigationStart): void {\n const wasFirst = this.firstNavigation;\n this.firstNavigation = false;\n if (this.restoreTimeoutMs === null) {\n return;\n }\n this.remember(pathOf(this.router.url), this.container()?.scrollTop ?? 0);\n\n const explicit =\n this.router.currentNavigation()?.extras.state?.['dsRestoreScroll'] ===\n true;\n const offset = this.recall(pathOf(event.url));\n this.armed =\n offset !== null &&\n (event.navigationTrigger === 'popstate' || explicit || wasFirst);\n this.pendingOffset = this.armed ? offset : null;\n }\n\n private onNavigationEnd(): void {\n // `pathChanged` ignores query/fragment-only navigations, which 'always' still resets.\n if (this.resetStrategy === 'always' && !this.armed) {\n this.scrollToTop();\n }\n if (!this.armed || this.pendingOffset === null) {\n this.armed = false;\n\n return;\n }\n this.armed = false;\n this.beginRestore(this.pendingOffset);\n }\n\n private beginRestore(target: number): void {\n this.finishRestore(/* keepPending */ true);\n const element = this.container();\n if (!element) {\n this.pendingOffset = null;\n\n return;\n }\n\n const deadline = window.setTimeout(() => {\n this.applyClamped(target);\n this.finishRestore();\n }, this.restoreTimeoutMs ?? 0);\n\n const settle = (): void => {\n if (element.scrollHeight - element.clientHeight >= target) {\n this.scrollTo(target);\n this.finishRestore();\n }\n };\n\n // Observe the child: the container's own box does not change as content arrives.\n const growth = new ResizeObserver(settle);\n growth.observe(element.firstElementChild ?? element);\n\n const cancel = (): void => this.finishRestore();\n for (const type of CANCEL_EVENTS) {\n element.addEventListener(type, cancel, { passive: true });\n }\n // A bfcache restore brings its own scroll position back.\n const onPageShow = (event: PageTransitionEvent): void => {\n if (event.persisted) {\n this.finishRestore();\n }\n };\n window.addEventListener('pageshow', onPageShow);\n\n this.endRestore = () => {\n growth.disconnect();\n clearTimeout(deadline);\n for (const type of CANCEL_EVENTS) {\n element.removeEventListener(type, cancel);\n }\n window.removeEventListener('pageshow', onPageShow);\n };\n\n settle();\n }\n\n private applyClamped(target: number): void {\n const element = this.container();\n if (!element) {\n return;\n }\n this.scrollTo(\n Math.min(target, element.scrollHeight - element.clientHeight),\n );\n }\n\n private finishRestore(keepPending = false): void {\n this.endRestore?.();\n this.endRestore = null;\n if (!keepPending) {\n this.pendingOffset = null;\n }\n }\n\n // Guarded: Safari private mode throws on write, and that must not break navigation.\n private read(): Record<string, number> {\n try {\n const raw = sessionStorage.getItem(STORAGE_KEY);\n\n return raw ? (JSON.parse(raw) as Record<string, number>) : {};\n } catch {\n return {};\n }\n }\n\n private remember(path: string, offset: number): void {\n const entries = this.read();\n // Re-insert so the key moves to the end and the oldest is dropped below.\n delete entries[path];\n entries[path] = Math.round(offset);\n const keys = Object.keys(entries);\n for (const stale of keys.slice(0, Math.max(0, keys.length - MAX_ENTRIES))) {\n delete entries[stale];\n }\n try {\n sessionStorage.setItem(STORAGE_KEY, JSON.stringify(entries));\n } catch {\n // Full or blocked: losing the position is acceptable.\n }\n }\n\n private recall(path: string): number | null {\n const offset = this.read()[path];\n\n return typeof offset === 'number' && offset > 0 ? offset : null;\n }\n}\n","import { A11yModule } from '@angular/cdk/a11y';\nimport {\n ChangeDetectionStrategy,\n Component,\n DestroyRef,\n ElementRef,\n ViewEncapsulation,\n afterNextRender,\n booleanAttribute,\n computed,\n effect,\n inject,\n input,\n model,\n signal,\n viewChild,\n} from '@angular/core';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport { DS_INTL } from '@ids-group-ltd/ids-design-system/core';\nimport { ScrollbarWidthService } from './scrollbar-width.service';\nimport { AppLayoutNavigationService } from './layout-navigation.service';\nimport {\n AppLayoutScrollService,\n type DsAppLayoutScrollReset,\n} from './layout-scroll.service';\nimport { nextControlId } from '@ids-group-ltd/ids-design-system/components';\n\n/**\n * Fixed-frame application layout: the host is pinned to the viewport and ONLY\n * the content region scrolls, so the sidenav rail and topbar stay put.\n * Consumers project their own chrome into the slots:\n *\n * ```html\n * <ds-app-layout>\n * <ds-sidenav sidenav>…</ds-sidenav>\n * <ds-topbar topbar>…</ds-topbar>\n * <router-outlet />\n * </ds-app-layout>\n * ```\n *\n * The layout renders the `<main>` landmark itself, so do not nest another\n * `<main>` in the content. Scroll-to-top is built in (`AppLayoutScrollService`)\n * and fires when navigation changes the PATH; call `scrollToTop()` for other\n * changes that want the top. The content padding compensates the native\n * scrollbar width so the right inset equals the left. Requires the application\n * router (`provideRouter`).\n *\n * Below the `lg` breakpoint the rail becomes a modal overlay driven by\n * `[(railOpen)]`; put the burger wherever the design wants it inside your own\n * projected topbar.\n */\n@Component({\n selector: 'ds-app-layout',\n standalone: true,\n imports: [A11yModule],\n templateUrl: './app-layout.component.html',\n styleUrl: './app-layout.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '[class.app-layout]': 'true',\n '[class.topbar-full]': \"topbarSpan() === 'full'\",\n '[class.rail-open]': 'railOpen()',\n '(document:keydown.escape)': 'closeRail()',\n },\n providers: [AppLayoutScrollService],\n})\nexport class AppLayoutComponent {\n /** `'content'` (default): rail spans the full height, topbar sits above the content only. `'full'`: topbar spans the full width. */\n readonly topbarSpan = input<'content' | 'full'>('content');\n\n /** Whether the rail is open as an overlay. Ignored at and above the `lg` breakpoint. */\n readonly railOpen = model(false);\n\n /** Accessible name for the rail while it is a modal overlay. Unset falls back to\n * `DS_INTL.appLayout.railLabel`. */\n readonly railLabel = input<string | null>(null);\n private readonly intl = inject(DS_INTL);\n protected readonly railLabelResolved = computed(\n () => this.railLabel() ?? this.intl().appLayout.railLabel,\n );\n\n /**\n * Remember the content scroll per path and restore it on the way BACK. Off by\n * default. Restores on a history traversal, on `state: { dsRestoreScroll: true }`,\n * and on the first navigation after a reload.\n */\n readonly restoreScroll = input(false, { transform: booleanAttribute });\n\n /** Milliseconds to wait for the restored content to grow tall enough. Only with `restoreScroll`. */\n readonly restoreScrollTimeout = input(2000);\n\n /** When the content scroll resets to the top: on path change (`'path'`), also on query/fragment-only navigation (`'always'`), or never (`'never'`). */\n readonly scrollReset = input<DsAppLayoutScrollReset>('path');\n\n /** True only while the rail is an overlay; gates the dialog semantics. */\n protected readonly compact = signal(false);\n\n /** Whether the rail is currently an overlay rather than part of the layout. */\n readonly railOverlay = this.compact.asReadonly();\n\n /** Id of the rail panel, for a trigger's `aria-controls`. */\n readonly railId = nextControlId('ds-rail');\n\n private readonly layoutScroll = inject(AppLayoutScrollService);\n private readonly navigation = inject(AppLayoutNavigationService);\n private readonly destroyRef = inject(DestroyRef);\n private readonly content =\n viewChild.required<ElementRef<HTMLElement>>('content');\n\n constructor() {\n // Root service: instantiating it publishes --ds-scrollbar-width.\n inject(ScrollbarWidthService);\n\n effect(() => {\n this.layoutScroll.configureRestore(\n this.restoreScroll() ? this.restoreScrollTimeout() : null,\n );\n this.layoutScroll.configureReset(this.scrollReset());\n });\n\n afterNextRender(() => {\n this.layoutScroll.setScrollContainer(this.content().nativeElement);\n this.watchDesktopBreakpoint();\n });\n\n // Not closeRail(): returning focus to the burger would override where the router put it.\n this.navigation.pathChanged\n .pipe(takeUntilDestroyed(this.destroyRef))\n .subscribe(() => this.railOpen.set(false));\n }\n\n /** Dismissal: Escape or the scrim. Restores focus, which navigation must not. */\n protected closeRail(): void {\n if (!this.railOpen()) {\n return;\n }\n this.railOpen.set(false);\n if (!this.compact()) {\n return;\n }\n // cdkTrapFocusAutoCapture returns focus only on destroy, so focus would stay in the off-canvas panel.\n this.content()\n .nativeElement.ownerDocument.querySelector<HTMLElement>(\n `[aria-controls=\"${this.railId}\"]`,\n )\n ?.focus();\n }\n\n private watchDesktopBreakpoint(): void {\n // The host resolves `--bp-lg`, falling back to the Sass value its media queries use; the content element inherits it.\n const lg = getComputedStyle(this.content().nativeElement)\n .getPropertyValue('--_app-layout-desktop-min-width')\n .trim();\n const desktop = window.matchMedia(`(width >= ${lg})`);\n const sync = (): void => {\n this.compact.set(!desktop.matches);\n // Not closeRail(): its focus restore targets a trigger hidden on desktop.\n if (desktop.matches) {\n this.railOpen.set(false);\n }\n };\n sync();\n desktop.addEventListener('change', sync);\n this.destroyRef.onDestroy(() =>\n desktop.removeEventListener('change', sync),\n );\n }\n}\n","<!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events, @angular-eslint/template/interactive-supports-focus -- scrim; click dismisses, keyboard dismisses via Escape (host document:keydown.escape) -->\n<div\n class=\"scrim\"\n [class.open]=\"railOpen()\"\n (click)=\"closeRail()\">\n</div>\n\n<div\n class=\"rail\"\n [class.open]=\"railOpen()\"\n [id]=\"railId\"\n [attr.role]=\"compact() ? 'dialog' : null\"\n [attr.aria-modal]=\"compact() ? 'true' : null\"\n [attr.aria-label]=\"compact() ? railLabelResolved() : null\"\n [attr.inert]=\"compact() && !railOpen() ? '' : null\"\n [cdkTrapFocus]=\"compact() && railOpen()\"\n [cdkTrapFocusAutoCapture]=\"compact() && railOpen()\">\n <ng-content select=\"[sidenav]\"></ng-content>\n</div>\n\n<div class=\"bar\">\n <ng-content select=\"[topbar]\"></ng-content>\n</div>\n\n<main\n #content\n class=\"content\"\n tabindex=\"-1\">\n <div class=\"inner\">\n <ng-content></ng-content>\n </div>\n</main>\n","import { Directive, inject } from '@angular/core';\nimport { AppLayoutComponent } from './app-layout.component';\n\n/**\n * Wires a consumer's own burger to the layout's overlay rail: toggles\n * `[(railOpen)]` on click and keeps `aria-expanded` / `aria-controls` in sync, so\n * the trigger and the panel are related for a screen reader.\n *\n * ```html\n * <ds-app-layout>\n * <ds-topbar topbar>\n * <button dsRailTrigger type=\"button\" aria-label=\"Navigation\">☰</button>\n * </ds-topbar>\n * </ds-app-layout>\n * ```\n *\n * PUT IT ON THE FOCUSABLE CONTROL, not on a wrapper: on `<ds-icon-button>` the\n * host is the wrapper, not the inner `<button>`. With a DS button, skip this\n * directive and bind its forwarding inputs instead:\n * `[ariaExpanded]=\"layout.railOverlay() ? layout.railOpen() : null\"`,\n * `[ariaControls]=\"layout.railOverlay() ? layout.railId : null\"` and\n * `(pressed)=\"layout.railOpen.set(!layout.railOpen())\"` off a\n * `<ds-app-layout #layout>` template ref.\n *\n * Both attributes are dropped while the rail is NOT an overlay, since\n * `aria-expanded=\"false\"` would misstate a permanently visible rail.\n *\n * Must sit inside a `ds-app-layout`.\n */\n@Directive({\n selector: '[dsRailTrigger]',\n standalone: true,\n host: {\n '[attr.aria-expanded]': 'layout.railOverlay() ? layout.railOpen() : null',\n '[attr.aria-controls]': 'layout.railOverlay() ? layout.railId : null',\n '(click)': 'toggle()',\n },\n})\nexport class RailTriggerDirective {\n protected readonly layout = inject(AppLayoutComponent);\n\n protected toggle(): void {\n this.layout.railOpen.update((open) => !open);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["filter"],"mappings":";;;;;;;;;;;;AAKA;;;;;AAKG;MAEU,qBAAqB,CAAA;AACf,IAAA,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC;AAC3B,IAAA,MAAM,GAAG,IAAI,CAAC,QAAQ,CAAC,WAAY;IAE3C,KAAK,GAAG,MAAM,CAAC,IAAI,CAAC,YAAY,EAAE,4EAAC;AAE5C,IAAA,WAAA,GAAA;AACE,QAAA,MAAM,UAAU,GAAG,MAAM,CAAC,UAAU,CAAC;QAErC,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC;AAE7B,QAAA,SAAS,CAAC,IAAI,CAAC,MAAM,EAAE,QAAQ;aAC5B,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,EAAE,kBAAkB,CAAC,UAAU,CAAC;aACtD,SAAS,CAAC,MAAK;AACd,YAAA,MAAM,KAAK,GAAG,IAAI,CAAC,YAAY,EAAE;AACjC,YAAA,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC;AACrB,YAAA,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC;AACxB,QAAA,CAAC,CAAC;IACN;IAEQ,YAAY,GAAA;QAClB,MAAM,KAAK,GAAG,IAAI,CAAC,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC;QAChD,KAAK,CAAC,KAAK,CAAC,OAAO;AACjB,YAAA,wEAAwE;QAC1E,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC;QAErC,MAAM,KAAK,GAAG,IAAI,CAAC,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC;AAChD,QAAA,KAAK,CAAC,K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ltd-ids-design-system-components-app-layout.mjs","sources":["../../../src/lib/components/app-layout/scrollbar-width.service.ts","../../../src/lib/components/app-layout/layout-navigation.service.ts","../../../src/lib/components/app-layout/layout-scroll.service.ts","../../../src/lib/components/app-layout/app-layout.component.ts","../../../src/lib/components/app-layout/app-layout.component.html","../../../src/lib/components/app-layout/rail-trigger.directive.ts","../../../src/lib/components/app-layout/ids-group-ltd-ids-design-system-components-app-layout.ts"],"sourcesContent":["import { DOCUMENT } from '@angular/common';\nimport { DestroyRef, inject, Injectable, signal } from '@angular/core';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport { debounceTime, fromEvent } from 'rxjs';\n\n/**\n * Measures the native scrollbar width per device and publishes it as\n * `--ds-scrollbar-width` on `:root` (recomputed on debounced resize; 0 with\n * overlay scrollbars). `ds-app-layout` subtracts it from the content region's\n * right padding. Internal, instantiated by `ds-app-layout`.\n */\n@Injectable({ providedIn: 'root' })\nexport class ScrollbarWidthService {\n private readonly document = inject(DOCUMENT);\n private readonly window = this.document.defaultView!;\n\n readonly width = signal(this.measureWidth());\n\n constructor() {\n const destroyRef = inject(DestroyRef);\n\n this.applyToCss(this.width());\n\n fromEvent(this.window, 'resize')\n .pipe(debounceTime(200), takeUntilDestroyed(destroyRef))\n .subscribe(() => {\n const value = this.measureWidth();\n this.width.set(value);\n this.applyToCss(value);\n });\n }\n\n private measureWidth(): number {\n const probe = this.document.createElement('div');\n probe.style.cssText =\n 'overflow:scroll;width:100px;height:100px;position:absolute;top:-9999px';\n this.document.body.appendChild(probe);\n\n const inner = this.document.createElement('div');\n inner.style.cssText = 'width:100%;height:1px';\n probe.appendChild(inner);\n\n const width =\n probe.getBoundingClientRect().width - inner.getBoundingClientRect().width;\n\n probe.remove();\n\n return width;\n }\n\n private applyToCss(value: number): void {\n this.document.documentElement.style.setProperty(\n '--ds-scrollbar-width',\n `${value}px`,\n );\n }\n}\n","import { Injectable, inject } from '@angular/core';\nimport { NavigationEnd, Router } from '@angular/router';\nimport { distinctUntilChanged, filter, map, type Observable } from 'rxjs';\n\n/**\n * Emits the new path whenever navigation lands on a DIFFERENT one; query- or\n * fragment-only navigations are ignored. Read `pathChanged` instead of\n * re-deriving the path change:\n *\n * ```ts\n * private readonly navigation = inject(AppLayoutNavigationService);\n * constructor() {\n * this.navigation.pathChanged\n * .pipe(takeUntilDestroyed())\n * .subscribe((path) => …);\n * }\n * ```\n *\n * A navigation that changes the path while staying on the same screen (a scroll\n * spy rewriting the URL, a wizard step) must carry `state: { dsSamePage: true }`,\n * which is skipped here; otherwise the scroll reset and the spy ping-pong.\n *\n * `AppLayoutScrollService` depends on it, so a consumer providing THAT\n * outside `ds-app-layout` needs this one resolvable too.\n */\n@Injectable({ providedIn: 'root' })\nexport class AppLayoutNavigationService {\n private readonly router = inject(Router);\n\n readonly pathChanged: Observable<string> = this.router.events.pipe(\n filter((event): event is NavigationEnd => event instanceof NavigationEnd),\n filter(() => !this.samePage()),\n map((event) => event.urlAfterRedirects.split(/[?#]/)[0]),\n distinctUntilChanged(),\n );\n\n // `lastSuccessfulNavigation`, not `getCurrentNavigation()`: the latter is\n // already cleared by the time NavigationEnd reaches a subscriber.\n private samePage(): boolean {\n const state = this.router.lastSuccessfulNavigation()?.extras.state;\n\n return state?.['dsSamePage'] === true;\n }\n}\n","import {\n DestroyRef,\n Injectable,\n type Signal,\n inject,\n signal,\n} from '@angular/core';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport { NavigationEnd, NavigationStart, Router } from '@angular/router';\nimport { filter } from 'rxjs/operators';\nimport { AppLayoutNavigationService } from './layout-navigation.service';\n\nconst STORAGE_KEY = 'ds-app-layout:scroll';\n\nconst MAX_ENTRIES = 20;\n\n// NOT `scroll`: our own restore emits one and would cancel itself.\nconst CANCEL_EVENTS = ['wheel', 'touchstart', 'keydown'] as const;\n\nconst pathOf = (url: string): string => url.split(/[?#]/)[0];\n\n/**\n * When the layout resets the content scroll to the top.\n *\n * `'path'` (default): only when navigation lands on a different PATH.\n * `'always'` resets on every navigation. `'never'` leaves it to the screen,\n * which can call `AppLayoutScrollService.scrollToTop()`.\n */\nexport type DsAppLayoutScrollReset = 'path' | 'never' | 'always';\n\n/**\n * Owns the layout's content scroller. The window never scrolls in the\n * fixed-frame layout, so the router's window-based scrolling no-ops; this\n * service resets the registered container when navigation lands on a different\n * PATH. Provided by `ds-app-layout`; routed pages can inject it and call\n * `scrollToTop()`.\n *\n * With `restoreScroll` on the layout it also restores the reader's place, but\n * only when armed: going BACK restores, following a link does not.\n */\n@Injectable()\nexport class AppLayoutScrollService {\n private readonly navigation = inject(AppLayoutNavigationService);\n private readonly router = inject(Router);\n private readonly destroyRef = inject(DestroyRef);\n private readonly container = signal<Element | null>(null);\n\n /** The content scroller, once the layout has rendered it. */\n readonly scroller: Signal<Element | null> = this.container.asReadonly();\n\n // null = restoration off.\n private restoreTimeoutMs: number | null = null;\n private resetStrategy: DsAppLayoutScrollReset = 'path';\n private armed = false;\n private pendingOffset: number | null = null;\n private endRestore: (() => void) | null = null;\n private firstNavigation = true;\n\n constructor() {\n this.navigation.pathChanged\n .pipe(takeUntilDestroyed(this.destroyRef))\n // Skipped while a restore is armed: the reset would undo the offset about to be applied.\n .subscribe(() => {\n if (this.resetStrategy === 'path' && !this.armed) {\n this.scrollToTop();\n }\n });\n\n this.router.events\n .pipe(\n filter(\n (event): event is NavigationStart => event instanceof NavigationStart,\n ),\n takeUntilDestroyed(this.destroyRef),\n )\n .subscribe((event) => this.onNavigationStart(event));\n\n this.router.events\n .pipe(\n filter(\n (event): event is NavigationEnd => event instanceof NavigationEnd,\n ),\n takeUntilDestroyed(this.destroyRef),\n )\n .subscribe(() => this.onNavigationEnd());\n\n this.destroyRef.onDestroy(() => this.finishRestore());\n }\n\n /** Wiring for `ds-app-layout`; not for consumers. */\n setScrollContainer(element: Element): void {\n this.container.set(element);\n }\n\n /** Wiring: `ds-app-layout` mirrors its `restoreScroll` inputs through here. */\n configureRestore(timeoutMs: number | null): void {\n this.restoreTimeoutMs = timeoutMs;\n }\n\n /** Wiring: `ds-app-layout` mirrors its `scrollReset` input through here. */\n configureReset(strategy: DsAppLayoutScrollReset): void {\n this.resetStrategy = strategy;\n }\n\n scrollToTop(): void {\n this.scrollTo(0);\n }\n\n /** Scrolls the content region to an absolute offset. Assigns `scrollTop`, so `scroll-behavior: smooth` cannot animate it. */\n scrollTo(top: number): void {\n const element = this.container();\n if (element) {\n element.scrollTop = top;\n }\n }\n\n /**\n * Takes the offset this navigation is going to restore, and cancels the restore.\n * For a host that must know the offset BEFORE it builds rows (a virtualizer).\n * Returns null when nothing is pending.\n */\n consumePendingOffset(): number | null {\n const offset = this.pendingOffset;\n if (offset === null) {\n return null;\n }\n this.finishRestore();\n\n return offset;\n }\n\n /** Optional: tells the layout the route's content is in the DOM, ending the restore wait early. */\n contentReady(): void {\n if (this.pendingOffset !== null) {\n this.applyClamped(this.pendingOffset);\n this.finishRestore();\n }\n }\n\n private onNavigationStart(event: NavigationStart): void {\n const wasFirst = this.firstNavigation;\n this.firstNavigation = false;\n if (this.restoreTimeoutMs === null) {\n return;\n }\n this.remember(pathOf(this.router.url), this.container()?.scrollTop ?? 0);\n\n const explicit =\n this.router.currentNavigation()?.extras.state?.['dsRestoreScroll'] ===\n true;\n const offset = this.recall(pathOf(event.url));\n this.armed =\n offset !== null &&\n (event.navigationTrigger === 'popstate' || explicit || wasFirst);\n this.pendingOffset = this.armed ? offset : null;\n }\n\n private onNavigationEnd(): void {\n // `pathChanged` ignores query/fragment-only navigations, which 'always' still resets.\n if (this.resetStrategy === 'always' && !this.armed) {\n this.scrollToTop();\n }\n if (!this.armed || this.pendingOffset === null) {\n this.armed = false;\n\n return;\n }\n this.armed = false;\n this.beginRestore(this.pendingOffset);\n }\n\n private beginRestore(target: number): void {\n this.finishRestore(/* keepPending */ true);\n const element = this.container();\n if (!element) {\n this.pendingOffset = null;\n\n return;\n }\n\n const deadline = window.setTimeout(() => {\n this.applyClamped(target);\n this.finishRestore();\n }, this.restoreTimeoutMs ?? 0);\n\n const settle = (): void => {\n if (element.scrollHeight - element.clientHeight >= target) {\n this.scrollTo(target);\n this.finishRestore();\n }\n };\n\n // Observe the child: the container's own box does not change as content arrives.\n const growth = new ResizeObserver(settle);\n growth.observe(element.firstElementChild ?? element);\n\n const cancel = (): void => this.finishRestore();\n for (const type of CANCEL_EVENTS) {\n element.addEventListener(type, cancel, { passive: true });\n }\n // A bfcache restore brings its own scroll position back.\n const onPageShow = (event: PageTransitionEvent): void => {\n if (event.persisted) {\n this.finishRestore();\n }\n };\n window.addEventListener('pageshow', onPageShow);\n\n this.endRestore = () => {\n growth.disconnect();\n clearTimeout(deadline);\n for (const type of CANCEL_EVENTS) {\n element.removeEventListener(type, cancel);\n }\n window.removeEventListener('pageshow', onPageShow);\n };\n\n settle();\n }\n\n private applyClamped(target: number): void {\n const element = this.container();\n if (!element) {\n return;\n }\n this.scrollTo(\n Math.min(target, element.scrollHeight - element.clientHeight),\n );\n }\n\n private finishRestore(keepPending = false): void {\n this.endRestore?.();\n this.endRestore = null;\n if (!keepPending) {\n this.pendingOffset = null;\n }\n }\n\n // Guarded: Safari private mode throws on write, and that must not break navigation.\n private read(): Record<string, number> {\n try {\n const raw = sessionStorage.getItem(STORAGE_KEY);\n\n return raw ? (JSON.parse(raw) as Record<string, number>) : {};\n } catch {\n return {};\n }\n }\n\n private remember(path: string, offset: number): void {\n const entries = this.read();\n // Re-insert so the key moves to the end and the oldest is dropped below.\n delete entries[path];\n entries[path] = Math.round(offset);\n const keys = Object.keys(entries);\n for (const stale of keys.slice(0, Math.max(0, keys.length - MAX_ENTRIES))) {\n delete entries[stale];\n }\n try {\n sessionStorage.setItem(STORAGE_KEY, JSON.stringify(entries));\n } catch {\n // Full or blocked: losing the position is acceptable.\n }\n }\n\n private recall(path: string): number | null {\n const offset = this.read()[path];\n\n return typeof offset === 'number' && offset > 0 ? offset : null;\n }\n}\n","import { A11yModule } from '@angular/cdk/a11y';\nimport {\n ChangeDetectionStrategy,\n Component,\n DestroyRef,\n ElementRef,\n ViewEncapsulation,\n afterNextRender,\n booleanAttribute,\n computed,\n effect,\n inject,\n input,\n model,\n signal,\n viewChild,\n} from '@angular/core';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport { DS_INTL } from '@ids-group-ltd/ids-design-system/core';\nimport { ScrollbarWidthService } from './scrollbar-width.service';\nimport { AppLayoutNavigationService } from './layout-navigation.service';\nimport {\n AppLayoutScrollService,\n type DsAppLayoutScrollReset,\n} from './layout-scroll.service';\nimport { nextControlId } from '@ids-group-ltd/ids-design-system/components';\n\n/**\n * Fixed-frame application layout: the host is pinned to the viewport and ONLY\n * the content region scrolls, so the sidenav rail and topbar stay put.\n * Consumers project their own chrome into the slots:\n *\n * ```html\n * <ds-app-layout>\n * <ds-sidenav sidenav>…</ds-sidenav>\n * <ds-topbar topbar>…</ds-topbar>\n * <router-outlet />\n * </ds-app-layout>\n * ```\n *\n * The layout renders the `<main>` landmark itself, so do not nest another\n * `<main>` in the content. Scroll-to-top is built in (`AppLayoutScrollService`)\n * and fires when navigation changes the PATH; call `scrollToTop()` for other\n * changes that want the top. The content padding compensates the native\n * scrollbar width so the right inset equals the left. Requires the application\n * router (`provideRouter`).\n *\n * Below the `lg` breakpoint the rail becomes a modal overlay driven by\n * `[(railOpen)]`; put the burger wherever the design wants it inside your own\n * projected topbar.\n */\n@Component({\n selector: 'ds-app-layout',\n standalone: true,\n imports: [A11yModule],\n templateUrl: './app-layout.component.html',\n styleUrl: './app-layout.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '[class.app-layout]': 'true',\n '[class.topbar-full]': \"topbarSpan() === 'full'\",\n '[class.rail-open]': 'railOpen()',\n '(document:keydown.escape)': 'closeRail()',\n },\n providers: [AppLayoutScrollService],\n})\nexport class AppLayoutComponent {\n /** `'content'` (default): rail spans the full height, topbar sits above the content only. `'full'`: topbar spans the full width. */\n readonly topbarSpan = input<'content' | 'full'>('content');\n\n /** Whether the rail is open as an overlay. Ignored at and above the `lg` breakpoint. */\n readonly railOpen = model(false);\n\n /** Accessible name for the rail while it is a modal overlay. Unset falls back to\n * `DS_INTL.appLayout.railLabel`. */\n readonly railLabel = input<string | null>(null);\n private readonly intl = inject(DS_INTL);\n protected readonly railLabelResolved = computed(\n () => this.railLabel() ?? this.intl().appLayout.railLabel,\n );\n\n /**\n * Remember the content scroll per path and restore it on the way BACK. Off by\n * default. Restores on a history traversal, on `state: { dsRestoreScroll: true }`,\n * and on the first navigation after a reload.\n */\n readonly restoreScroll = input(false, { transform: booleanAttribute });\n\n /** Milliseconds to wait for the restored content to grow tall enough. Only with `restoreScroll`. */\n readonly restoreScrollTimeout = input(2000);\n\n /** When the content scroll resets to the top: on path change (`'path'`), also on query/fragment-only navigation (`'always'`), or never (`'never'`). */\n readonly scrollReset = input<DsAppLayoutScrollReset>('path');\n\n /** True only while the rail is an overlay; gates the dialog semantics. */\n protected readonly compact = signal(false);\n\n /** Whether the rail is currently an overlay rather than part of the layout. */\n readonly railOverlay = this.compact.asReadonly();\n\n /** Id of the rail panel, for a trigger's `aria-controls`. */\n readonly railId = nextControlId('ds-rail');\n\n private readonly layoutScroll = inject(AppLayoutScrollService);\n private readonly navigation = inject(AppLayoutNavigationService);\n private readonly destroyRef = inject(DestroyRef);\n private readonly content =\n viewChild.required<ElementRef<HTMLElement>>('content');\n\n constructor() {\n // Root service: instantiating it publishes --ds-scrollbar-width.\n inject(ScrollbarWidthService);\n\n effect(() => {\n this.layoutScroll.configureRestore(\n this.restoreScroll() ? this.restoreScrollTimeout() : null,\n );\n this.layoutScroll.configureReset(this.scrollReset());\n });\n\n afterNextRender(() => {\n this.layoutScroll.setScrollContainer(this.content().nativeElement);\n this.watchDesktopBreakpoint();\n });\n\n // Not closeRail(): returning focus to the burger would override where the router put it.\n this.navigation.pathChanged\n .pipe(takeUntilDestroyed(this.destroyRef))\n .subscribe(() => this.railOpen.set(false));\n }\n\n /** Dismissal: Escape or the scrim. Restores focus, which navigation must not. */\n protected closeRail(): void {\n if (!this.railOpen()) {\n return;\n }\n this.railOpen.set(false);\n if (!this.compact()) {\n return;\n }\n // cdkTrapFocusAutoCapture returns focus only on destroy, so focus would stay in the off-canvas panel.\n this.content()\n .nativeElement.ownerDocument.querySelector<HTMLElement>(\n `[aria-controls=\"${this.railId}\"]`,\n )\n ?.focus();\n }\n\n private watchDesktopBreakpoint(): void {\n // The host resolves `--bp-lg`, falling back to the Sass value its media queries use; the content element inherits it.\n const lg = getComputedStyle(this.content().nativeElement)\n .getPropertyValue('--_app-layout-desktop-min-width')\n .trim();\n const desktop = window.matchMedia(`(width >= ${lg})`);\n const sync = (): void => {\n this.compact.set(!desktop.matches);\n // Not closeRail(): its focus restore targets a trigger hidden on desktop.\n if (desktop.matches) {\n this.railOpen.set(false);\n }\n };\n sync();\n desktop.addEventListener('change', sync);\n this.destroyRef.onDestroy(() =>\n desktop.removeEventListener('change', sync),\n );\n }\n}\n","<!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events, @angular-eslint/template/interactive-supports-focus -- scrim; click dismisses, keyboard dismisses via Escape (host document:keydown.escape) -->\n<div\n class=\"scrim\"\n [class.open]=\"railOpen()\"\n (click)=\"closeRail()\">\n</div>\n\n<div\n class=\"rail\"\n [class.open]=\"railOpen()\"\n [id]=\"railId\"\n [attr.role]=\"compact() ? 'dialog' : null\"\n [attr.aria-modal]=\"compact() ? 'true' : null\"\n [attr.aria-label]=\"compact() ? railLabelResolved() : null\"\n [attr.inert]=\"compact() && !railOpen() ? '' : null\"\n [cdkTrapFocus]=\"compact() && railOpen()\"\n [cdkTrapFocusAutoCapture]=\"compact() && railOpen()\">\n <ng-content select=\"[sidenav]\"></ng-content>\n</div>\n\n<div class=\"bar\">\n <ng-content select=\"[topbar]\"></ng-content>\n</div>\n\n<main\n #content\n class=\"content\"\n tabindex=\"-1\">\n <div class=\"inner\">\n <ng-content></ng-content>\n </div>\n</main>\n","import { Directive, inject } from '@angular/core';\nimport { AppLayoutComponent } from './app-layout.component';\n\n/**\n * Wires a consumer's own burger to the layout's overlay rail: toggles\n * `[(railOpen)]` on click and keeps `aria-expanded` / `aria-controls` in sync, so\n * the trigger and the panel are related for a screen reader.\n *\n * ```html\n * <ds-app-layout>\n * <ds-topbar topbar>\n * <button dsRailTrigger type=\"button\" aria-label=\"Navigation\">☰</button>\n * </ds-topbar>\n * </ds-app-layout>\n * ```\n *\n * PUT IT ON THE FOCUSABLE CONTROL, not on a wrapper: on `<ds-icon-button>` the\n * host is the wrapper, not the inner `<button>`. With a DS button, skip this\n * directive and bind its forwarding inputs instead:\n * `[ariaExpanded]=\"layout.railOverlay() ? layout.railOpen() : null\"`,\n * `[ariaControls]=\"layout.railOverlay() ? layout.railId : null\"` and\n * `(pressed)=\"layout.railOpen.set(!layout.railOpen())\"` off a\n * `<ds-app-layout #layout>` template ref.\n *\n * Both attributes are dropped while the rail is NOT an overlay, since\n * `aria-expanded=\"false\"` would misstate a permanently visible rail.\n *\n * Must sit inside a `ds-app-layout`.\n */\n@Directive({\n selector: '[dsRailTrigger]',\n standalone: true,\n host: {\n '[attr.aria-expanded]': 'layout.railOverlay() ? layout.railOpen() : null',\n '[attr.aria-controls]': 'layout.railOverlay() ? layout.railId : null',\n '(click)': 'toggle()',\n },\n})\nexport class RailTriggerDirective {\n protected readonly layout = inject(AppLayoutComponent);\n\n protected toggle(): void {\n this.layout.railOpen.update((open) => !open);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["filter"],"mappings":";;;;;;;;;;;;AAKA;;;;;AAKG;MAEU,qBAAqB,CAAA;AACf,IAAA,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC;AAC3B,IAAA,MAAM,GAAG,IAAI,CAAC,QAAQ,CAAC,WAAY;IAE3C,KAAK,GAAG,MAAM,CAAC,IAAI,CAAC,YAAY,EAAE,4EAAC;AAE5C,IAAA,WAAA,GAAA;AACE,QAAA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AQ,CAAC,MAAM,CAAC,CAAC,IAAI,KAAK,CAAC,IAAI,CAAC;IAC9C;wGALW,oBAAoB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;4FAApB,oBAAoB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,SAAA,EAAA,EAAA,OAAA,EAAA,UAAA,EAAA,EAAA,UAAA,EAAA,EAAA,oBAAA,EAAA,iDAAA,EAAA,oBAAA,EAAA,6CAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;4FAApB,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBAThC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,iBAAiB;AAC3B,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,IAAI,EAAE;AACJ,wBAAA,sBAAsB,EAAE,iDAAiD;AACzE,wBAAA,sBAAsB,EAAE,6CAA6C;AACrE,wBAAA,SAAS,EAAE,UAAU;AACtB,qBAAA;AACF,iBAAA;;;ACrCD;;AAEG;;;;"}
@@ -534,7 +534,7 @@ class AutocompleteComponent extends DsControlValueAccessor {
534
534
  useExisting: forwardRef(() => AutocompleteComponent),
535
535
  multi: true,
536
536
  },
537
- ], queries: [{ propertyName: "optionTemplate", first: true, predicate: DsOptionTemplateDirective, descendants: true, read: TemplateRef, isSignal: true }, { propertyName: "chipTemplate", first: true, predicate: DsChipTemplateDirective, descendants: true, read: TemplateRef, isSignal: true }, { propertyName: "pickerTrigger", first: true, predicate: DsPickerTriggerDirective, descendants: true, read: TemplateRef, isSignal: true }, { propertyName: "panelHeaderTemplate", first: true, predicate: DsPanelHeaderTemplateDirective, descendants: true, read: TemplateRef, isSignal: true }, { propertyName: "panelFooterTemplate", first: true, predicate: DsPanelFooterTemplateDirective, descendants: true, read: TemplateRef, isSignal: true }, { propertyName: "groupLabelTemplate", first: true, predicate: DsGroupLabelTemplateDirective, descendants: true, read: TemplateRef, isSignal: true }, { propertyName: "emptyTemplate", first: true, predicate: DsEmptyTemplateDirective, descendants: true, read: TemplateRef, isSignal: true }, { propertyName: "createTemplate", first: true, predicate: DsCreateTemplateDirective, descendants: true, read: TemplateRef, isSignal: true }], viewQueries: [{ propertyName: "trigger", first: true, predicate: ["trigger"], descendants: true, isSignal: true }, { propertyName: "filterInput", first: true, predicate: ["filter"], descendants: true, isSignal: true }, { propertyName: "panelTpl", first: true, predicate: ["panel"], descendants: true, isSignal: true }, { propertyName: "chipRow", first: true, predicate: ["chipRow"], descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "@if (label()) {\n <span\n class=\"label\"\n [id]=\"labelId\">\n {{ label() }}\n @if (required()) {\n <span\n class=\"req\"\n aria-hidden=\"true\">\n *\n </span>\n } @else if (optional()) {\n <span\n class=\"optional-marker\"\n aria-hidden=\"true\">\n {{ intl().field.optional }}\n </span>\n }\n </span>\n}\n\n<!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events, @angular-eslint/template/interactive-supports-focus -- click opens/focuses; keyboard runs through the inner <input role=\"combobox\"> (type/arrows/Enter/Esc) -->\n<div\n #trigger\n class=\"autocomplete-trigger\"\n [class]=\"sizeResolved()\"\n [class.disabled]=\"isDisabled()\"\n (click)=\"onTriggerClick()\">\n <span class=\"addon-slot prefix\">\n <ng-content select=\"[dsAutocompletePrefix]\"></ng-content>\n </span>\n\n @if (pickerTrigger(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n $implicit: triggerSelection(),\n selected: triggerSelection(),\n count: multiple() ? selectedTags().length : hasSingleValue() ? 1 : 0,\n open: isOpen(),\n disabled: isDisabled(),\n }\" />\n } @else if (multiple()) {\n <span\n #chipRow\n class=\"chip-row\"\n [class.fit]=\"fitsChipsToWidth()\">\n @for (selectedOption of visibleTags(); track selectedOption.value) {\n <ds-tag\n data-chip\n [closable]=\"true\"\n [closeLabel]=\"intl().picker.removeChip(selectedOption.label)\"\n (closed)=\"remove(selectedOption.value)\">\n @if (chipTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n $implicit: selectedOption,\n option: selectedOption,\n }\" />\n } @else {\n {{ selectedOption.label }}\n }\n </ds-tag>\n }\n\n @if (overflowCount() > 0) {\n <span\n class=\"overflow\"\n data-chip-overflow>\n {{ intl().picker.moreChips(overflowCount()) }}\n </span>\n }\n </span>\n } @else if (displayLabel()) {\n <span\n class=\"autocomplete-value\"\n [attr.title]=\"valueOverflow() === 'ellipsis' ? displayLabel() : null\">\n {{ displayLabel() }}\n </span>\n }\n\n <input\n #filter\n type=\"text\"\n class=\"autocomplete-input\"\n role=\"combobox\"\n aria-autocomplete=\"list\"\n [class.collapsed]=\"displayLabel() && !isOpen()\"\n [attr.aria-expanded]=\"isOpen()\"\n [attr.aria-controls]=\"listboxId\"\n [attr.aria-activedescendant]=\"activeDescendant()\"\n [attr.aria-busy]=\"loading() ? 'true' : null\"\n [attr.aria-labelledby]=\"label() ? labelId : null\"\n [attr.aria-label]=\"resolvedAriaLabel()\"\n [attr.aria-required]=\"required() ? 'true' : null\"\n [attr.aria-readonly]=\"isReadOnly() ? 'true' : null\"\n [attr.name]=\"name()\"\n [attr.aria-invalid]=\"invalidResolved() ? 'true' : null\"\n [attr.aria-describedby]=\"describedByIds(hintId(), groupMessage())\"\n [disabled]=\"isDisabled()\"\n [value]=\"query()\"\n [placeholder]=\"placeholderText()\"\n (input)=\"onFilter($event)\"\n (focus)=\"openPanel()\"\n (blur)=\"markTouched()\"\n (keydown)=\"onKeydown($event)\" />\n\n <span class=\"addon-slot suffix\">\n <ng-content select=\"[dsAutocompleteSuffix]\"></ng-content>\n </span>\n\n @if (\n clearable() &&\n hasSingleValue() &&\n !isDisabled() &&\n !isReadOnly()\n ) {\n <button\n type=\"button\"\n class=\"clear-btn\"\n [attr.aria-label]=\"intl().picker.clearSelection\"\n (click)=\"clearValue($event)\">\n <ds-icon\n name=\"x\"\n [size]=\"14\" />\n </button>\n }\n\n <ds-field-status\n [pending]=\"pendingShown()\"\n [changed]=\"changedShown()\" />\n\n @if (showChevron()) {\n <ds-icon\n name=\"chevronDown\"\n class=\"autocomplete-chevron\"\n aria-hidden=\"true\"\n [size]=\"16\"\n (click)=\"togglePanel($event)\" />\n }\n</div>\n\n<ds-field-message\n [icon]=\"messageIcon()\"\n [text]=\"message().text\"\n [state]=\"message().state\"\n [messageId]=\"hintId()\"\n [reserve]=\"reserveMessageResolved()\"\n [changed]=\"changedShown()\" />\n\n<ng-template #panel>\n <div class=\"dropdown-panel\">\n @if (panelHeaderTemplate(); as tpl) {\n <div class=\"panel-header\">\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n count: filteredOptions().length,\n total: allOptions().length,\n query: query(),\n }\" />\n </div>\n }\n\n <ds-loading-overlay\n class=\"list-overlay\"\n [loading]=\"listInert()\"\n [blur]=\"true\">\n <ul\n class=\"dropdown-list\"\n role=\"listbox\"\n [attr.aria-busy]=\"loading() ? 'true' : null\"\n [id]=\"listboxId\"\n [attr.aria-multiselectable]=\"multiple() ? 'true' : null\">\n @for (item of filteredItems(); track $index; let itemIdx = $index) {\n @if (isGroup(item)) {\n <li\n class=\"optgroup\"\n role=\"group\"\n [attr.aria-label]=\"item.label\">\n <span\n class=\"optgroup-label\"\n [class.is-first]=\"itemIdx === 0\">\n @if (groupLabelTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n $implicit: item,\n group: item,\n count: item.options.length,\n }\" />\n } @else {\n {{ item.label }}\n }\n </span>\n\n @for (option of item.options; track option.value) {\n <!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events, @angular-eslint/template/interactive-supports-focus -- listbox option; activated via the combobox input + aria-activedescendant, options aren't individually focusable -->\n <div\n role=\"option\"\n dsTooltipWhenClipped=\".option-label\"\n [class]=\"optionClass(option)\"\n [id]=\"optionId(flatIndexOf(option))\"\n [class.is-active]=\"flatIndexOf(option) === activeIndex()\"\n [attr.aria-selected]=\"isSelected(option)\"\n [attr.aria-disabled]=\"option.disabled ? 'true' : null\"\n (click)=\"onPick(option)\"\n (mouseenter)=\"\n cursorFromKeyboard.set(false);\n option.disabled || activeIndex.set(flatIndexOf(option))\n \">\n @if (multiple()) {\n <span\n class=\"check-box\"\n [class.checked]=\"isSelected(option)\">\n <span class=\"tick\"></span>\n </span>\n }\n\n @if (option.icon) {\n <ds-icon\n class=\"option-icon\"\n [name]=\"option.icon\"\n [size]=\"16\" />\n }\n\n <span class=\"option-label\">\n @if (optionTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n $implicit: option,\n option: option,\n }\" />\n } @else {\n {{ option.label }}\n }\n </span>\n\n @if (!multiple()) {\n <span\n class=\"option-check\"\n [class.is-shown]=\"isSelected(option)\">\n </span>\n }\n </div>\n }\n </li>\n } @else {\n @let option = item;\n\n <!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events, @angular-eslint/template/interactive-supports-focus -- listbox option; activated via the combobox input + aria-activedescendant, options aren't individually focusable -->\n <li\n role=\"option\"\n dsTooltipWhenClipped=\".option-label\"\n [class]=\"optionClass(option)\"\n [id]=\"optionId(flatIndexOf(option))\"\n [class.is-active]=\"flatIndexOf(option) === activeIndex()\"\n [attr.aria-selected]=\"isSelected(option)\"\n [attr.aria-disabled]=\"option.disabled ? 'true' : null\"\n (click)=\"onPick(option)\"\n (mouseenter)=\"\n cursorFromKeyboard.set(false);\n option.disabled || activeIndex.set(flatIndexOf(option))\n \">\n @if (multiple()) {\n <span\n class=\"check-box\"\n [class.checked]=\"isSelected(option)\">\n <span class=\"tick\"></span>\n </span>\n }\n\n @if (option.icon) {\n <ds-icon\n class=\"option-icon\"\n [name]=\"option.icon\"\n [size]=\"16\" />\n }\n\n <span class=\"option-label\">\n @if (optionTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n $implicit: option,\n option: option,\n }\" />\n } @else {\n {{ option.label }}\n }\n </span>\n\n @if (!multiple()) {\n <span\n class=\"option-check\"\n [class.is-shown]=\"isSelected(option)\">\n </span>\n }\n </li>\n }\n }\n\n @if (loading() && filteredOptions().length === 0) {\n @for (width of skeletonOptionWidths; track $index) {\n <li\n class=\"option is-skeleton\"\n role=\"presentation\">\n <ds-skeleton\n height=\"1lh\"\n [width]=\"width\" />\n </li>\n }\n } @else if (filteredOptions().length === 0 && !showCreateRow()) {\n <li\n class=\"empty\"\n role=\"presentation\">\n @if (emptyTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n $implicit: query(),\n query: query(),\n }\" />\n } @else {\n {{ intl().picker.noMatches }}\n }\n </li>\n }\n\n @if (showCreateRow()) {\n <!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events, @angular-eslint/template/interactive-supports-focus -- listbox option; activated via the combobox input + aria-activedescendant, options aren't individually focusable -->\n <li\n class=\"option create-row\"\n role=\"option\"\n dsTooltipWhenClipped=\".option-label\"\n [id]=\"optionId(visibleOptions().length)\"\n [class.is-active]=\"activeIndex() === visibleOptions().length\"\n [attr.aria-selected]=\"false\"\n (click)=\"onCreateNew()\"\n (mouseenter)=\"\n cursorFromKeyboard.set(false);\n activeIndex.set(visibleOptions().length)\n \">\n <ds-icon\n name=\"plus\"\n class=\"create-icon\"\n [size]=\"16\" />\n\n <span class=\"option-label\">\n @if (createTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n $implicit: query().trim(),\n query: query().trim(),\n }\" />\n } @else {\n {{ intl().picker.create(query().trim()) }}\n }\n </span>\n </li>\n }\n </ul>\n </ds-loading-overlay>\n\n @if (panelFooterTemplate(); as tpl) {\n <div class=\"panel-footer\">\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n count: filteredOptions().length,\n total: allOptions().length,\n query: query(),\n }\" />\n </div>\n }\n </div>\n</ng-template>\n", styles: [":where(:host){box-sizing:border-box;interpolate-size:allow-keywords}:where(*){box-sizing:border-box}:where(button,input,select,textarea){font-family:inherit}:where(h1,h2,h3,h4,h5,h6){margin:0}:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard);border-radius:var(--focus-ring-radius)}@media(forced-colors:active){:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}:host{--_field-border-color: var(--ds-field-border-color, var(--border-default));--_field-border-color-hover: var(--ds-field-border-color-hover, var(--border-strong));--_field-border-color-focus: var(--ds-field-border-color-focus, var(--accent));--_field-text-color: var(--ds-field-text-color, var(--text-primary));--_field-placeholder-color: var(--ds-field-placeholder-color, var(--text-tertiary));--_field-font-size: var(--ds-field-font-size, var(--font-size-s));--ds-dropdown-panel-bg-color: var(--ds-autocomplete-panel-bg-color, initial);--ds-dropdown-panel-radius: var(--ds-autocomplete-panel-radius, initial);--ds-dropdown-panel-max-height: var(--ds-autocomplete-panel-max-height, var(--picker-maxh));--_autocomplete-focus-shadow: var(--ds-autocomplete-focus-shadow, var(--ds-field-focus-shadow));--_autocomplete-max-width: var(--ds-autocomplete-max-width, none);--_autocomplete-input-min-width: var(--ds-autocomplete-input-min-width, 40px);--_autocomplete-input-font-size: var(--ds-autocomplete-input-font-size, var(--_field-font-size));--_autocomplete-bg-color: var(--ds-autocomplete-bg-color, var(--surface-default));--_autocomplete-border-color: var(--ds-autocomplete-border-color, var(--_field-border-color));--_autocomplete-radius: var(--ds-autocomplete-radius, var(--ds-radius-control));--_autocomplete-border-color-focus: var(--ds-autocomplete-border-color-focus, var(--_field-border-color-focus));--_autocomplete-border-color-hover: var(--ds-autocomplete-border-color-hover, var(--_field-border-color-hover));--_autocomplete-text-color: var(--ds-autocomplete-text-color, var(--_field-text-color));--_autocomplete-placeholder-color: var(--ds-autocomplete-placeholder-color, var(--_field-placeholder-color));display:flex;flex-direction:column;gap:var(--field-label-gap);width:100%;max-width:var(--_autocomplete-max-width);position:relative}:host(.content-width){--_autocomplete-max-width: var(--ds-autocomplete-max-width, 100%);width:fit-content}.label{--_field-label-font-size: var(--ds-field-label-font-size, var(--font-size-xs));--_field-label-font-weight: var(--ds-field-label-font-weight, var(--font-weight-bold));--_field-label-color: var(--ds-field-label-color, var(--text-secondary));--_field-label-text-transform: var(--ds-field-label-text-transform, none);--_field-label-letter-spacing: var(--ds-field-label-letter-spacing, normal);display:flex;align-items:center;gap:var(--field-gap-req);font:var(--_field-label-font-weight) var(--_field-label-font-size)/var(--line-height-base) var(--font-sans);color:var(--_field-label-color);text-transform:var(--_field-label-text-transform);letter-spacing:var(--_field-label-letter-spacing)}.label .req{color:var(--error);font-weight:var(--font-weight-semibold)}.label .optional-marker{color:var(--text-tertiary);font-weight:var(--font-weight-regular)}.autocomplete-trigger{display:flex;align-items:center;gap:var(--space-2);width:100%;--_field-height: var(--ds-field-height, var(--field-h-md));min-height:var(--_field-height);padding:var(--space-1) var(--space-2);background:var(--_autocomplete-bg-color);border:var(--border-width-default) solid var(--_autocomplete-border-color);border-radius:var(--_autocomplete-radius);cursor:text;text-align:left;flex-wrap:wrap}.autocomplete-trigger:has(>.chip-row.fit){flex-wrap:nowrap}:host(:not(.value-wraps)) .autocomplete-trigger{flex-wrap:nowrap}.autocomplete-trigger{transition:border-color var(--duration-fast) var(--ease-standard)}.autocomplete-trigger .clear-btn{border:0;background:transparent;display:inline-flex;align-items:center;justify-content:center;color:var(--icon-default);border-radius:var(--ds-radius-inner);padding:var(--space-0-5);cursor:pointer;flex:0 0 auto}.autocomplete-trigger .clear-btn:hover{color:var(--text-primary);background:var(--surface-secondary)}.autocomplete-trigger .clear-btn:active:not(:disabled,[disabled],.is-disabled,.disabled,[aria-disabled=true]){filter:brightness(var(--ds-press-brightness, .9));transform:scale(var(--ds-press-scale, .97))}.autocomplete-trigger .clear-btn{position:relative}.autocomplete-trigger .clear-btn:before{content:\"\";position:absolute;top:50%;left:50%;width:max(100%,var(--hit-xs));height:max(100%,var(--hit-xs));translate:-50% -50%;border-radius:inherit}.autocomplete-trigger .clear-btn:focus-visible{outline-style:none}.autocomplete-trigger .clear-btn:focus-visible:before{outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:calc(var(--focus-ring-offset) - 2 * var(--focus-ring-width));animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}.autocomplete-trigger .addon-slot{display:inline-flex;align-items:center;align-self:stretch;color:var(--text-tertiary);flex-shrink:0}.autocomplete-trigger .addon-slot:empty{display:none}.autocomplete-trigger:hover:not(.disabled){border-color:var(--_autocomplete-border-color-hover)}@media not (forced-colors:active){.autocomplete-trigger .autocomplete-input:where(:focus-visible){outline:none}}.autocomplete-trigger:focus-within:not(.disabled){border-color:var(--_autocomplete-border-color-focus);box-shadow:var(--_autocomplete-focus-shadow)}@media not (forced-colors:active){.autocomplete-trigger:focus-within:not(.disabled){outline:none}}.autocomplete-trigger.disabled{background:var(--surface-disabled);border-color:var(--border-disabled);color:var(--text-disabled);cursor:not-allowed}.autocomplete-trigger.disabled .autocomplete-input{cursor:not-allowed;color:var(--text-disabled)}.autocomplete-trigger.disabled .autocomplete-value,.autocomplete-trigger.disabled .autocomplete-chevron{color:var(--text-disabled)}.autocomplete-trigger.sm{--_field-height: var(--ds-field-height, var(--field-h-sm));min-height:var(--_field-height)}.autocomplete-trigger.lg{--_field-height: var(--ds-field-height, var(--field-h-lg));min-height:var(--_field-height)}.chip-row{display:contents}.chip-row.fit{display:flex;flex-wrap:nowrap;align-items:center;min-width:0;gap:inherit;overflow:clip visible}.chip-row.fit>*{flex:0 1 auto;min-width:0;white-space:nowrap}.overflow{color:var(--text-secondary);font-weight:var(--font-weight-semibold);font-size:var(--font-size-xs)}.autocomplete-value{font:var(--font-weight-medium) var(--font-size-s)/var(--line-height-flat) var(--font-sans);color:var(--_autocomplete-text-color)}:host(:not(.value-wraps)) .autocomplete-value{min-width:0;overflow:clip visible;text-overflow:ellipsis;white-space:nowrap}.autocomplete-input{flex:1;min-width:var(--_autocomplete-input-min-width)}.autocomplete-input.collapsed{flex:0 0 0;min-width:0;width:0;padding:0}.autocomplete-input{border:0}@media not (forced-colors:active){.autocomplete-input{outline:none}}.autocomplete-input{background:transparent;font:var(--font-weight-regular) var(--_autocomplete-input-font-size)/var(--line-height-flat) var(--font-sans);color:var(--_autocomplete-text-color)}.autocomplete-input::placeholder{color:var(--_autocomplete-placeholder-color)}.autocomplete-chevron{color:var(--icon-default);margin-left:auto}.dropdown-panel .option.multi{padding-left:var(--space-2)}.dropdown-panel .check-box{flex:none;display:inline-flex;align-items:center;justify-content:center;width:var(--check-size);height:var(--check-size);border:var(--check-bw) solid var(--border-strong);border-radius:var(--ds-radius-inner);background-color:var(--surface-default);color:var(--text-on-primary)}.dropdown-panel .check-box.checked{background-color:var(--accent);border-color:var(--accent)}.dropdown-panel .check-box .tick{--_check-mark-enter-duration: var(--ds-check-mark-enter-duration, var(--ds-motion-check-enter-duration));--_check-mark-enter-easing: var(--ds-check-mark-enter-easing, var(--ds-motion-check-enter-easing));--_check-mark-exit-duration: var(--ds-check-mark-exit-duration, var(--ds-motion-check-exit-duration));--_check-mark-exit-easing: var(--ds-check-mark-exit-easing, var(--ds-motion-check-exit-easing));width:var(--check-tick-size);height:var(--check-tick-size);transform:scale(.6);opacity:0;transform-origin:center;transition:transform var(--_check-mark-exit-duration) var(--_check-mark-exit-easing),opacity var(--_check-mark-exit-duration) var(--_check-mark-exit-easing);background-color:currentcolor}@media(forced-colors:active){.dropdown-panel .check-box .tick{background-color:CanvasText}}.dropdown-panel .check-box .tick{-webkit-mask:url(\"data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none'><path d='M2 6.5l2.5 2.5L10 3.5' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>\") center/contain no-repeat;mask:url(\"data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none'><path d='M2 6.5l2.5 2.5L10 3.5' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>\") center/contain no-repeat}.dropdown-panel .check-box.checked .tick{transform:scale(1);opacity:1;transition:transform var(--_check-mark-enter-duration) var(--_check-mark-enter-easing),opacity var(--_check-mark-enter-duration) var(--_check-mark-enter-easing)}.dropdown-panel .create-row{color:var(--accent)}.dropdown-panel .create-row .create-icon{flex:0 0 auto}:host(.in-group){width:auto;display:flex}:host(.in-group) .label,:host(.in-group) ds-field-message{display:none}:host(.in-group) .autocomplete-trigger{border:0;border-radius:0;background:transparent;flex:1;height:auto}:host(.in-group) .autocomplete-trigger:hover,:host(.in-group) .autocomplete-trigger:focus,:host(.in-group) .autocomplete-trigger:focus-visible,:host(.in-group) .autocomplete-trigger:focus-within{border:0;box-shadow:none}@media not (forced-colors:active){:host(.in-group) .autocomplete-trigger:hover,:host(.in-group) .autocomplete-trigger:focus,:host(.in-group) .autocomplete-trigger:focus-visible,:host(.in-group) .autocomplete-trigger:focus-within{outline:none}}:host([data-field-state=error]:not(.in-group)) .autocomplete-trigger:not(.disabled):not(:disabled){border-color:var(--error);background-color:var(--error-subtitle)}:host([data-field-state=error]:not(.in-group)) .autocomplete-trigger:not(.disabled):not(:disabled):focus-within,:host([data-field-state=error]:not(.in-group)) .autocomplete-trigger:not(.disabled):not(:disabled):focus-visible{box-shadow:var(--ds-field-focus-shadow-error)}:host([data-field-state=warning]:not(.in-group)) .autocomplete-trigger:not(.disabled):not(:disabled){border-color:var(--warning-text)}:host([data-field-state=warning]:not(.in-group)) .autocomplete-trigger:not(.disabled):not(:disabled):focus-within,:host([data-field-state=warning]:not(.in-group)) .autocomplete-trigger:not(.disabled):not(:disabled):focus-visible{box-shadow:var(--ds-field-focus-shadow-warning)}:host([data-field-state=success]:not(.in-group)) .autocomplete-trigger:not(.disabled):not(:disabled){border-color:var(--success)}:host([data-field-state=success]:not(.in-group)) .autocomplete-trigger:not(.disabled):not(:disabled):focus-within,:host([data-field-state=success]:not(.in-group)) .autocomplete-trigger:not(.disabled):not(:disabled):focus-visible{box-shadow:var(--ds-field-focus-shadow-success)}\n"], dependencies: [{ kind: "component", type: IconComponent, selector: "ds-icon", inputs: ["name", "size", "stroke", "ariaLabel"] }, { kind: "component", type: LoadingOverlayComponent, selector: "ds-loading-overlay", inputs: ["loading", "label", "blur", "spinnerSize", "insetTop", "inertContent"] }, { kind: "component", type: SkeletonComponent, selector: "ds-skeleton", inputs: ["width", "height", "circle", "inline", "shimmer"] }, { kind: "component", type: TagComponent, selector: "ds-tag", inputs: ["variant", "closable", "interactive", "selected", "closeLabel"], outputs: ["closed", "toggled"] }, { kind: "component", type: FieldMessageComponent, selector: "ds-field-message", inputs: ["text", "state", "messageId", "icon", "reserve", "changed"] }, { kind: "component", type: FieldStatusComponent, selector: "ds-field-status", inputs: ["pending", "changed"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: TooltipDirective, selector: "[dsTooltip], [dsTooltipWhenClipped]", inputs: ["dsTooltip", "dsTooltipConfig", "dsTooltipPlacement", "dsTooltipDelay", "dsTooltipArrow", "dsTooltipWhenClipped", "dsTooltipPinOnClick"] }] });
537
+ ], queries: [{ propertyName: "optionTemplate", first: true, predicate: DsOptionTemplateDirective, descendants: true, read: TemplateRef, isSignal: true }, { propertyName: "chipTemplate", first: true, predicate: DsChipTemplateDirective, descendants: true, read: TemplateRef, isSignal: true }, { propertyName: "pickerTrigger", first: true, predicate: DsPickerTriggerDirective, descendants: true, read: TemplateRef, isSignal: true }, { propertyName: "panelHeaderTemplate", first: true, predicate: DsPanelHeaderTemplateDirective, descendants: true, read: TemplateRef, isSignal: true }, { propertyName: "panelFooterTemplate", first: true, predicate: DsPanelFooterTemplateDirective, descendants: true, read: TemplateRef, isSignal: true }, { propertyName: "groupLabelTemplate", first: true, predicate: DsGroupLabelTemplateDirective, descendants: true, read: TemplateRef, isSignal: true }, { propertyName: "emptyTemplate", first: true, predicate: DsEmptyTemplateDirective, descendants: true, read: TemplateRef, isSignal: true }, { propertyName: "createTemplate", first: true, predicate: DsCreateTemplateDirective, descendants: true, read: TemplateRef, isSignal: true }], viewQueries: [{ propertyName: "trigger", first: true, predicate: ["trigger"], descendants: true, isSignal: true }, { propertyName: "filterInput", first: true, predicate: ["filter"], descendants: true, isSignal: true }, { propertyName: "panelTpl", first: true, predicate: ["panel"], descendants: true, isSignal: true }, { propertyName: "chipRow", first: true, predicate: ["chipRow"], descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "@if (label()) {\n <span\n class=\"label\"\n [id]=\"labelId\">\n {{ label() }}\n @if (required()) {\n <span\n class=\"req\"\n aria-hidden=\"true\">\n *\n </span>\n } @else if (optional()) {\n <span\n class=\"optional-marker\"\n aria-hidden=\"true\">\n {{ intl().field.optional }}\n </span>\n }\n </span>\n}\n\n<!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events, @angular-eslint/template/interactive-supports-focus -- click opens/focuses; keyboard runs through the inner <input role=\"combobox\"> (type/arrows/Enter/Esc) -->\n<div\n #trigger\n class=\"autocomplete-trigger\"\n [class]=\"sizeResolved()\"\n [class.disabled]=\"isDisabled()\"\n (click)=\"onTriggerClick()\">\n <span class=\"addon-slot prefix\">\n <ng-content select=\"[dsAutocompletePrefix]\"></ng-content>\n </span>\n\n @if (pickerTrigger(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n $implicit: triggerSelection(),\n selected: triggerSelection(),\n count: multiple() ? selectedTags().length : hasSingleValue() ? 1 : 0,\n open: isOpen(),\n disabled: isDisabled(),\n }\" />\n } @else if (multiple()) {\n <span\n #chipRow\n class=\"chip-row\"\n [class.fit]=\"fitsChipsToWidth()\">\n @for (selectedOption of visibleTags(); track selectedOption.value) {\n <ds-tag\n data-chip\n [closable]=\"true\"\n [closeLabel]=\"intl().picker.removeChip(selectedOption.label)\"\n (closed)=\"remove(selectedOption.value)\">\n @if (chipTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n $implicit: selectedOption,\n option: selectedOption,\n }\" />\n } @else {\n {{ selectedOption.label }}\n }\n </ds-tag>\n }\n\n @if (overflowCount() > 0) {\n <span\n class=\"overflow\"\n data-chip-overflow>\n {{ intl().picker.moreChips(overflowCount()) }}\n </span>\n }\n </span>\n } @else if (displayLabel()) {\n <span\n class=\"autocomplete-value\"\n [attr.title]=\"valueOverflow() === 'ellipsis' ? displayLabel() : null\">\n {{ displayLabel() }}\n </span>\n }\n\n <input\n #filter\n type=\"text\"\n class=\"autocomplete-input\"\n role=\"combobox\"\n aria-autocomplete=\"list\"\n [class.collapsed]=\"displayLabel() && !isOpen()\"\n [attr.aria-expanded]=\"isOpen()\"\n [attr.aria-controls]=\"listboxId\"\n [attr.aria-activedescendant]=\"activeDescendant()\"\n [attr.aria-busy]=\"loading() ? 'true' : null\"\n [attr.aria-labelledby]=\"label() ? labelId : null\"\n [attr.aria-label]=\"resolvedAriaLabel()\"\n [attr.aria-required]=\"required() ? 'true' : null\"\n [attr.aria-readonly]=\"isReadOnly() ? 'true' : null\"\n [attr.name]=\"name()\"\n [attr.aria-invalid]=\"invalidResolved() ? 'true' : null\"\n [attr.aria-describedby]=\"describedByIds(hintId(), groupMessage())\"\n [disabled]=\"isDisabled()\"\n [value]=\"query()\"\n [placeholder]=\"placeholderText()\"\n (input)=\"onFilter($event)\"\n (focus)=\"openPanel()\"\n (blur)=\"markTouched()\"\n (keydown)=\"onKeydown($event)\" />\n\n <span class=\"addon-slot suffix\">\n <ng-content select=\"[dsAutocompleteSuffix]\"></ng-content>\n </span>\n\n @if (\n clearable() &&\n hasSingleValue() &&\n !isDisabled() &&\n !isReadOnly()\n ) {\n <button\n type=\"button\"\n class=\"clear-btn\"\n [attr.aria-label]=\"intl().picker.clearSelection\"\n (click)=\"clearValue($event)\">\n <ds-icon\n name=\"x\"\n [size]=\"14\" />\n </button>\n }\n\n <ds-field-status\n [pending]=\"pendingShown()\"\n [changed]=\"changedShown()\" />\n\n @if (showChevron()) {\n <ds-icon\n name=\"chevronDown\"\n class=\"autocomplete-chevron\"\n aria-hidden=\"true\"\n [size]=\"16\"\n (click)=\"togglePanel($event)\" />\n }\n</div>\n\n<ds-field-message\n [icon]=\"messageIcon()\"\n [text]=\"message().text\"\n [state]=\"message().state\"\n [messageId]=\"hintId()\"\n [reserve]=\"reserveMessageResolved()\"\n [changed]=\"changedShown()\" />\n\n<ng-template #panel>\n <div class=\"dropdown-panel\">\n @if (panelHeaderTemplate(); as tpl) {\n <div class=\"panel-header\">\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n count: filteredOptions().length,\n total: allOptions().length,\n query: query(),\n }\" />\n </div>\n }\n\n <ds-loading-overlay\n class=\"list-overlay\"\n [loading]=\"listInert()\"\n [blur]=\"true\">\n <ul\n class=\"dropdown-list\"\n role=\"listbox\"\n [attr.aria-busy]=\"loading() ? 'true' : null\"\n [id]=\"listboxId\"\n [attr.aria-multiselectable]=\"multiple() ? 'true' : null\">\n @for (item of filteredItems(); track $index; let itemIdx = $index) {\n @if (isGroup(item)) {\n <li\n class=\"optgroup\"\n role=\"group\"\n [attr.aria-label]=\"item.label\">\n <span\n class=\"optgroup-label\"\n [class.is-first]=\"itemIdx === 0\">\n @if (groupLabelTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n $implicit: item,\n group: item,\n count: item.options.length,\n }\" />\n } @else {\n {{ item.label }}\n }\n </span>\n\n @for (option of item.options; track option.value) {\n <!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events, @angular-eslint/template/interactive-supports-focus -- listbox option; activated via the combobox input + aria-activedescendant, options aren't individually focusable -->\n <div\n role=\"option\"\n dsTooltipWhenClipped=\".option-label\"\n [class]=\"optionClass(option)\"\n [id]=\"optionId(flatIndexOf(option))\"\n [class.is-active]=\"flatIndexOf(option) === activeIndex()\"\n [attr.aria-selected]=\"isSelected(option)\"\n [attr.aria-disabled]=\"option.disabled ? 'true' : null\"\n (click)=\"onPick(option)\"\n (mouseenter)=\"\n cursorFromKeyboard.set(false);\n option.disabled || activeIndex.set(flatIndexOf(option))\n \">\n @if (multiple()) {\n <span\n class=\"check-box\"\n [class.checked]=\"isSelected(option)\">\n <span class=\"tick\"></span>\n </span>\n }\n\n @if (option.icon) {\n <ds-icon\n class=\"option-icon\"\n [name]=\"option.icon\"\n [size]=\"16\" />\n }\n\n <span class=\"option-label\">\n @if (optionTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n $implicit: option,\n option: option,\n }\" />\n } @else {\n {{ option.label }}\n }\n </span>\n\n @if (!multiple()) {\n <span\n class=\"option-check\"\n [class.is-shown]=\"isSelected(option)\">\n </span>\n }\n </div>\n }\n </li>\n } @else {\n @let option = item;\n\n <!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events, @angular-eslint/template/interactive-supports-focus -- listbox option; activated via the combobox input + aria-activedescendant, options aren't individually focusable -->\n <li\n role=\"option\"\n dsTooltipWhenClipped=\".option-label\"\n [class]=\"optionClass(option)\"\n [id]=\"optionId(flatIndexOf(option))\"\n [class.is-active]=\"flatIndexOf(option) === activeIndex()\"\n [attr.aria-selected]=\"isSelected(option)\"\n [attr.aria-disabled]=\"option.disabled ? 'true' : null\"\n (click)=\"onPick(option)\"\n (mouseenter)=\"\n cursorFromKeyboard.set(false);\n option.disabled || activeIndex.set(flatIndexOf(option))\n \">\n @if (multiple()) {\n <span\n class=\"check-box\"\n [class.checked]=\"isSelected(option)\">\n <span class=\"tick\"></span>\n </span>\n }\n\n @if (option.icon) {\n <ds-icon\n class=\"option-icon\"\n [name]=\"option.icon\"\n [size]=\"16\" />\n }\n\n <span class=\"option-label\">\n @if (optionTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n $implicit: option,\n option: option,\n }\" />\n } @else {\n {{ option.label }}\n }\n </span>\n\n @if (!multiple()) {\n <span\n class=\"option-check\"\n [class.is-shown]=\"isSelected(option)\">\n </span>\n }\n </li>\n }\n }\n\n @if (loading() && filteredOptions().length === 0) {\n @for (width of skeletonOptionWidths; track $index) {\n <li\n class=\"option is-skeleton\"\n role=\"presentation\">\n <ds-skeleton\n height=\"1lh\"\n [width]=\"width\" />\n </li>\n }\n } @else if (filteredOptions().length === 0 && !showCreateRow()) {\n <li\n class=\"empty\"\n role=\"presentation\">\n @if (emptyTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n $implicit: query(),\n query: query(),\n }\" />\n } @else {\n {{ intl().picker.noMatches }}\n }\n </li>\n }\n\n @if (showCreateRow()) {\n <!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events, @angular-eslint/template/interactive-supports-focus -- listbox option; activated via the combobox input + aria-activedescendant, options aren't individually focusable -->\n <li\n class=\"option create-row\"\n role=\"option\"\n dsTooltipWhenClipped=\".option-label\"\n [id]=\"optionId(visibleOptions().length)\"\n [class.is-active]=\"activeIndex() === visibleOptions().length\"\n [attr.aria-selected]=\"false\"\n (click)=\"onCreateNew()\"\n (mouseenter)=\"\n cursorFromKeyboard.set(false);\n activeIndex.set(visibleOptions().length)\n \">\n <ds-icon\n name=\"plus\"\n class=\"create-icon\"\n [size]=\"16\" />\n\n <span class=\"option-label\">\n @if (createTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n $implicit: query().trim(),\n query: query().trim(),\n }\" />\n } @else {\n {{ intl().picker.create(query().trim()) }}\n }\n </span>\n </li>\n }\n </ul>\n </ds-loading-overlay>\n\n @if (panelFooterTemplate(); as tpl) {\n <div class=\"panel-footer\">\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n count: filteredOptions().length,\n total: allOptions().length,\n query: query(),\n }\" />\n </div>\n }\n </div>\n</ng-template>\n", styles: [":where(:host){box-sizing:border-box;interpolate-size:allow-keywords}:where(*){box-sizing:border-box}:where(button,input,select,textarea){font-family:inherit}:where(h1,h2,h3,h4,h5,h6){margin:0}:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard);border-radius:var(--focus-ring-radius)}@media(forced-colors:active){:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}:host{--_field-border-color: var(--ds-field-border-color, var(--border-field));--_field-border-color-hover: var(--ds-field-border-color-hover, var(--border-field-hover));--_field-border-color-focus: var(--ds-field-border-color-focus, var(--accent));--_field-text-color: var(--ds-field-text-color, var(--text-primary));--_field-placeholder-color: var(--ds-field-placeholder-color, var(--text-tertiary));--_field-font-size: var(--ds-field-font-size, var(--font-size-s));--ds-dropdown-panel-bg-color: var(--ds-autocomplete-panel-bg-color, initial);--ds-dropdown-panel-radius: var(--ds-autocomplete-panel-radius, initial);--ds-dropdown-panel-max-height: var(--ds-autocomplete-panel-max-height, var(--picker-maxh));--_autocomplete-focus-shadow: var(--ds-autocomplete-focus-shadow, var(--ds-field-focus-shadow));--_autocomplete-max-width: var(--ds-autocomplete-max-width, none);--_autocomplete-input-min-width: var(--ds-autocomplete-input-min-width, 40px);--_autocomplete-input-font-size: var(--ds-autocomplete-input-font-size, var(--_field-font-size));--_autocomplete-bg-color: var(--ds-autocomplete-bg-color, var(--surface-default));--_autocomplete-border-color: var(--ds-autocomplete-border-color, var(--_field-border-color));--_autocomplete-radius: var(--ds-autocomplete-radius, var(--ds-radius-control));--_autocomplete-border-color-focus: var(--ds-autocomplete-border-color-focus, var(--_field-border-color-focus));--_autocomplete-border-color-hover: var(--ds-autocomplete-border-color-hover, var(--_field-border-color-hover));--_autocomplete-text-color: var(--ds-autocomplete-text-color, var(--_field-text-color));--_autocomplete-placeholder-color: var(--ds-autocomplete-placeholder-color, var(--_field-placeholder-color));display:flex;flex-direction:column;gap:var(--field-label-gap);width:100%;max-width:var(--_autocomplete-max-width);position:relative}:host(.content-width){--_autocomplete-max-width: var(--ds-autocomplete-max-width, 100%);width:fit-content}.label{--_field-label-font-size: var(--ds-field-label-font-size, var(--font-size-xs));--_field-label-font-weight: var(--ds-field-label-font-weight, var(--font-weight-bold));--_field-label-color: var(--ds-field-label-color, var(--text-secondary));--_field-label-text-transform: var(--ds-field-label-text-transform, none);--_field-label-letter-spacing: var(--ds-field-label-letter-spacing, normal);display:flex;align-items:center;gap:var(--field-gap-req);font:var(--_field-label-font-weight) var(--_field-label-font-size)/var(--line-height-base) var(--font-sans);color:var(--_field-label-color);text-transform:var(--_field-label-text-transform);letter-spacing:var(--_field-label-letter-spacing)}.label .req{color:var(--error);font-weight:var(--font-weight-semibold)}.label .optional-marker{color:var(--text-tertiary);font-weight:var(--font-weight-regular)}.autocomplete-trigger{display:flex;align-items:center;gap:var(--space-2);width:100%;--_field-height: var(--ds-field-height, var(--field-h-md));min-height:var(--_field-height);padding:var(--space-1) var(--space-2);background:var(--_autocomplete-bg-color);border:var(--border-width-default) solid var(--_autocomplete-border-color);border-radius:var(--_autocomplete-radius);cursor:text;text-align:left;flex-wrap:wrap}.autocomplete-trigger:has(>.chip-row.fit){flex-wrap:nowrap}:host(:not(.value-wraps)) .autocomplete-trigger{flex-wrap:nowrap}.autocomplete-trigger{transition:border-color var(--duration-fast) var(--ease-standard)}.autocomplete-trigger .clear-btn{border:0;background:transparent;display:inline-flex;align-items:center;justify-content:center;color:var(--icon-default);border-radius:var(--ds-radius-inner);padding:var(--space-0-5);cursor:pointer;flex:0 0 auto}.autocomplete-trigger .clear-btn:hover{color:var(--text-primary);background:var(--surface-secondary)}.autocomplete-trigger .clear-btn:active:not(:disabled,[disabled],.is-disabled,.disabled,[aria-disabled=true]){filter:brightness(var(--ds-press-brightness, .9));transform:scale(var(--ds-press-scale, .97))}.autocomplete-trigger .clear-btn{position:relative}.autocomplete-trigger .clear-btn:before{content:\"\";position:absolute;top:50%;left:50%;width:max(100%,var(--hit-xs));height:max(100%,var(--hit-xs));translate:-50% -50%;border-radius:inherit}.autocomplete-trigger .clear-btn:focus-visible{outline-style:none}.autocomplete-trigger .clear-btn:focus-visible:before{outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:calc(var(--focus-ring-offset) - 2 * var(--focus-ring-width));animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}.autocomplete-trigger .addon-slot{display:inline-flex;align-items:center;align-self:stretch;color:var(--text-tertiary);flex-shrink:0}.autocomplete-trigger .addon-slot:empty{display:none}.autocomplete-trigger:hover:not(.disabled){border-color:var(--_autocomplete-border-color-hover)}@media not (forced-colors:active){.autocomplete-trigger .autocomplete-input:where(:focus-visible){outline:none}}.autocomplete-trigger:focus-within:not(.disabled){border-color:var(--_autocomplete-border-color-focus);box-shadow:var(--_autocomplete-focus-shadow)}@media not (forced-colors:active){.autocomplete-trigger:focus-within:not(.disabled){outline:none}}.autocomplete-trigger.disabled{background:var(--surface-disabled);border-color:var(--border-disabled);color:var(--text-disabled);cursor:not-allowed}.autocomplete-trigger.disabled .autocomplete-input{cursor:not-allowed;color:var(--text-disabled)}.autocomplete-trigger.disabled .autocomplete-value,.autocomplete-trigger.disabled .autocomplete-chevron{color:var(--text-disabled)}.autocomplete-trigger.sm{--_field-height: var(--ds-field-height, var(--field-h-sm));min-height:var(--_field-height)}.autocomplete-trigger.lg{--_field-height: var(--ds-field-height, var(--field-h-lg));min-height:var(--_field-height)}.chip-row{display:contents}.chip-row.fit{display:flex;flex-wrap:nowrap;align-items:center;min-width:0;gap:inherit;overflow:clip visible}.chip-row.fit>*{flex:0 1 auto;min-width:0;white-space:nowrap}.overflow{color:var(--text-secondary);font-weight:var(--font-weight-semibold);font-size:var(--font-size-xs)}.autocomplete-value{font:var(--font-weight-medium) var(--font-size-s)/var(--line-height-flat) var(--font-sans);color:var(--_autocomplete-text-color)}:host(:not(.value-wraps)) .autocomplete-value{min-width:0;overflow:clip visible;text-overflow:ellipsis;white-space:nowrap}.autocomplete-input{flex:1;min-width:var(--_autocomplete-input-min-width)}.autocomplete-input.collapsed{flex:0 0 0;min-width:0;width:0;padding:0}.autocomplete-input{border:0}@media not (forced-colors:active){.autocomplete-input{outline:none}}.autocomplete-input{background:transparent;font:var(--font-weight-regular) var(--_autocomplete-input-font-size)/var(--line-height-flat) var(--font-sans);color:var(--_autocomplete-text-color)}.autocomplete-input::placeholder{color:var(--_autocomplete-placeholder-color)}.autocomplete-chevron{color:var(--icon-default);margin-left:auto}.dropdown-panel .option.multi{padding-left:var(--space-2)}.dropdown-panel .check-box{flex:none;display:inline-flex;align-items:center;justify-content:center;width:var(--check-size);height:var(--check-size);border:var(--check-bw) solid var(--border-strong);border-radius:var(--ds-radius-inner);background-color:var(--surface-default);color:var(--text-on-primary)}.dropdown-panel .check-box.checked{background-color:var(--accent);border-color:var(--accent)}.dropdown-panel .check-box .tick{--_check-mark-enter-duration: var(--ds-check-mark-enter-duration, var(--ds-motion-check-enter-duration));--_check-mark-enter-easing: var(--ds-check-mark-enter-easing, var(--ds-motion-check-enter-easing));--_check-mark-exit-duration: var(--ds-check-mark-exit-duration, var(--ds-motion-check-exit-duration));--_check-mark-exit-easing: var(--ds-check-mark-exit-easing, var(--ds-motion-check-exit-easing));width:var(--check-tick-size);height:var(--check-tick-size);transform:scale(.6);opacity:0;transform-origin:center;transition:transform var(--_check-mark-exit-duration) var(--_check-mark-exit-easing),opacity var(--_check-mark-exit-duration) var(--_check-mark-exit-easing);background-color:currentcolor}@media(forced-colors:active){.dropdown-panel .check-box .tick{background-color:CanvasText}}.dropdown-panel .check-box .tick{-webkit-mask:url(\"data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none'><path d='M2 6.5l2.5 2.5L10 3.5' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>\") center/contain no-repeat;mask:url(\"data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none'><path d='M2 6.5l2.5 2.5L10 3.5' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>\") center/contain no-repeat}.dropdown-panel .check-box.checked .tick{transform:scale(1);opacity:1;transition:transform var(--_check-mark-enter-duration) var(--_check-mark-enter-easing),opacity var(--_check-mark-enter-duration) var(--_check-mark-enter-easing)}.dropdown-panel .create-row{color:var(--accent)}.dropdown-panel .create-row .create-icon{flex:0 0 auto}:host(.in-group){width:auto;display:flex}:host(.in-group) .label,:host(.in-group) ds-field-message{display:none}:host(.in-group) .autocomplete-trigger{border:0;border-radius:0;background:transparent;flex:1;height:auto}:host(.in-group) .autocomplete-trigger:hover,:host(.in-group) .autocomplete-trigger:focus,:host(.in-group) .autocomplete-trigger:focus-visible,:host(.in-group) .autocomplete-trigger:focus-within{border:0;box-shadow:none}@media not (forced-colors:active){:host(.in-group) .autocomplete-trigger:hover,:host(.in-group) .autocomplete-trigger:focus,:host(.in-group) .autocomplete-trigger:focus-visible,:host(.in-group) .autocomplete-trigger:focus-within{outline:none}}:host([data-field-state=error]:not(.in-group)) .autocomplete-trigger:not(.disabled):not(:disabled){border-color:var(--error);background-color:var(--error-subtitle)}:host([data-field-state=error]:not(.in-group)) .autocomplete-trigger:not(.disabled):not(:disabled):focus-within,:host([data-field-state=error]:not(.in-group)) .autocomplete-trigger:not(.disabled):not(:disabled):focus-visible{box-shadow:var(--ds-field-focus-shadow-error)}:host([data-field-state=warning]:not(.in-group)) .autocomplete-trigger:not(.disabled):not(:disabled){border-color:var(--warning-text)}:host([data-field-state=warning]:not(.in-group)) .autocomplete-trigger:not(.disabled):not(:disabled):focus-within,:host([data-field-state=warning]:not(.in-group)) .autocomplete-trigger:not(.disabled):not(:disabled):focus-visible{box-shadow:var(--ds-field-focus-shadow-warning)}:host([data-field-state=success]:not(.in-group)) .autocomplete-trigger:not(.disabled):not(:disabled){border-color:var(--success)}:host([data-field-state=success]:not(.in-group)) .autocomplete-trigger:not(.disabled):not(:disabled):focus-within,:host([data-field-state=success]:not(.in-group)) .autocomplete-trigger:not(.disabled):not(:disabled):focus-visible{box-shadow:var(--ds-field-focus-shadow-success)}\n"], dependencies: [{ kind: "component", type: IconComponent, selector: "ds-icon", inputs: ["name", "size", "stroke", "ariaLabel"] }, { kind: "component", type: LoadingOverlayComponent, selector: "ds-loading-overlay", inputs: ["loading", "label", "blur", "spinnerSize", "insetTop", "inertContent"] }, { kind: "component", type: SkeletonComponent, selector: "ds-skeleton", inputs: ["width", "height", "circle", "inline", "shimmer"] }, { kind: "component", type: TagComponent, selector: "ds-tag", inputs: ["variant", "closable", "interactive", "selected", "closeLabel"], outputs: ["closed", "toggled"] }, { kind: "component", type: FieldMessageComponent, selector: "ds-field-message", inputs: ["text", "state", "messageId", "icon", "reserve", "changed"] }, { kind: "component", type: FieldStatusComponent, selector: "ds-field-status", inputs: ["pending", "changed"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: TooltipDirective, selector: "[dsTooltip], [dsTooltipWhenClipped]", inputs: ["dsTooltip", "dsTooltipConfig", "dsTooltipPlacement", "dsTooltipDelay", "dsTooltipArrow", "dsTooltipWhenClipped", "dsTooltipPinOnClick"] }] });
538
538
  }
539
539
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: AutocompleteComponent, decorators: [{
540
540
  type: Component,
@@ -558,7 +558,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImpo
558
558
  useExisting: forwardRef(() => AutocompleteComponent),
559
559
  multi: true,
560
560
  },
561
- ], template: "@if (label()) {\n <span\n class=\"label\"\n [id]=\"labelId\">\n {{ label() }}\n @if (required()) {\n <span\n class=\"req\"\n aria-hidden=\"true\">\n *\n </span>\n } @else if (optional()) {\n <span\n class=\"optional-marker\"\n aria-hidden=\"true\">\n {{ intl().field.optional }}\n </span>\n }\n </span>\n}\n\n<!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events, @angular-eslint/template/interactive-supports-focus -- click opens/focuses; keyboard runs through the inner <input role=\"combobox\"> (type/arrows/Enter/Esc) -->\n<div\n #trigger\n class=\"autocomplete-trigger\"\n [class]=\"sizeResolved()\"\n [class.disabled]=\"isDisabled()\"\n (click)=\"onTriggerClick()\">\n <span class=\"addon-slot prefix\">\n <ng-content select=\"[dsAutocompletePrefix]\"></ng-content>\n </span>\n\n @if (pickerTrigger(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n $implicit: triggerSelection(),\n selected: triggerSelection(),\n count: multiple() ? selectedTags().length : hasSingleValue() ? 1 : 0,\n open: isOpen(),\n disabled: isDisabled(),\n }\" />\n } @else if (multiple()) {\n <span\n #chipRow\n class=\"chip-row\"\n [class.fit]=\"fitsChipsToWidth()\">\n @for (selectedOption of visibleTags(); track selectedOption.value) {\n <ds-tag\n data-chip\n [closable]=\"true\"\n [closeLabel]=\"intl().picker.removeChip(selectedOption.label)\"\n (closed)=\"remove(selectedOption.value)\">\n @if (chipTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n $implicit: selectedOption,\n option: selectedOption,\n }\" />\n } @else {\n {{ selectedOption.label }}\n }\n </ds-tag>\n }\n\n @if (overflowCount() > 0) {\n <span\n class=\"overflow\"\n data-chip-overflow>\n {{ intl().picker.moreChips(overflowCount()) }}\n </span>\n }\n </span>\n } @else if (displayLabel()) {\n <span\n class=\"autocomplete-value\"\n [attr.title]=\"valueOverflow() === 'ellipsis' ? displayLabel() : null\">\n {{ displayLabel() }}\n </span>\n }\n\n <input\n #filter\n type=\"text\"\n class=\"autocomplete-input\"\n role=\"combobox\"\n aria-autocomplete=\"list\"\n [class.collapsed]=\"displayLabel() && !isOpen()\"\n [attr.aria-expanded]=\"isOpen()\"\n [attr.aria-controls]=\"listboxId\"\n [attr.aria-activedescendant]=\"activeDescendant()\"\n [attr.aria-busy]=\"loading() ? 'true' : null\"\n [attr.aria-labelledby]=\"label() ? labelId : null\"\n [attr.aria-label]=\"resolvedAriaLabel()\"\n [attr.aria-required]=\"required() ? 'true' : null\"\n [attr.aria-readonly]=\"isReadOnly() ? 'true' : null\"\n [attr.name]=\"name()\"\n [attr.aria-invalid]=\"invalidResolved() ? 'true' : null\"\n [attr.aria-describedby]=\"describedByIds(hintId(), groupMessage())\"\n [disabled]=\"isDisabled()\"\n [value]=\"query()\"\n [placeholder]=\"placeholderText()\"\n (input)=\"onFilter($event)\"\n (focus)=\"openPanel()\"\n (blur)=\"markTouched()\"\n (keydown)=\"onKeydown($event)\" />\n\n <span class=\"addon-slot suffix\">\n <ng-content select=\"[dsAutocompleteSuffix]\"></ng-content>\n </span>\n\n @if (\n clearable() &&\n hasSingleValue() &&\n !isDisabled() &&\n !isReadOnly()\n ) {\n <button\n type=\"button\"\n class=\"clear-btn\"\n [attr.aria-label]=\"intl().picker.clearSelection\"\n (click)=\"clearValue($event)\">\n <ds-icon\n name=\"x\"\n [size]=\"14\" />\n </button>\n }\n\n <ds-field-status\n [pending]=\"pendingShown()\"\n [changed]=\"changedShown()\" />\n\n @if (showChevron()) {\n <ds-icon\n name=\"chevronDown\"\n class=\"autocomplete-chevron\"\n aria-hidden=\"true\"\n [size]=\"16\"\n (click)=\"togglePanel($event)\" />\n }\n</div>\n\n<ds-field-message\n [icon]=\"messageIcon()\"\n [text]=\"message().text\"\n [state]=\"message().state\"\n [messageId]=\"hintId()\"\n [reserve]=\"reserveMessageResolved()\"\n [changed]=\"changedShown()\" />\n\n<ng-template #panel>\n <div class=\"dropdown-panel\">\n @if (panelHeaderTemplate(); as tpl) {\n <div class=\"panel-header\">\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n count: filteredOptions().length,\n total: allOptions().length,\n query: query(),\n }\" />\n </div>\n }\n\n <ds-loading-overlay\n class=\"list-overlay\"\n [loading]=\"listInert()\"\n [blur]=\"true\">\n <ul\n class=\"dropdown-list\"\n role=\"listbox\"\n [attr.aria-busy]=\"loading() ? 'true' : null\"\n [id]=\"listboxId\"\n [attr.aria-multiselectable]=\"multiple() ? 'true' : null\">\n @for (item of filteredItems(); track $index; let itemIdx = $index) {\n @if (isGroup(item)) {\n <li\n class=\"optgroup\"\n role=\"group\"\n [attr.aria-label]=\"item.label\">\n <span\n class=\"optgroup-label\"\n [class.is-first]=\"itemIdx === 0\">\n @if (groupLabelTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n $implicit: item,\n group: item,\n count: item.options.length,\n }\" />\n } @else {\n {{ item.label }}\n }\n </span>\n\n @for (option of item.options; track option.value) {\n <!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events, @angular-eslint/template/interactive-supports-focus -- listbox option; activated via the combobox input + aria-activedescendant, options aren't individually focusable -->\n <div\n role=\"option\"\n dsTooltipWhenClipped=\".option-label\"\n [class]=\"optionClass(option)\"\n [id]=\"optionId(flatIndexOf(option))\"\n [class.is-active]=\"flatIndexOf(option) === activeIndex()\"\n [attr.aria-selected]=\"isSelected(option)\"\n [attr.aria-disabled]=\"option.disabled ? 'true' : null\"\n (click)=\"onPick(option)\"\n (mouseenter)=\"\n cursorFromKeyboard.set(false);\n option.disabled || activeIndex.set(flatIndexOf(option))\n \">\n @if (multiple()) {\n <span\n class=\"check-box\"\n [class.checked]=\"isSelected(option)\">\n <span class=\"tick\"></span>\n </span>\n }\n\n @if (option.icon) {\n <ds-icon\n class=\"option-icon\"\n [name]=\"option.icon\"\n [size]=\"16\" />\n }\n\n <span class=\"option-label\">\n @if (optionTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n $implicit: option,\n option: option,\n }\" />\n } @else {\n {{ option.label }}\n }\n </span>\n\n @if (!multiple()) {\n <span\n class=\"option-check\"\n [class.is-shown]=\"isSelected(option)\">\n </span>\n }\n </div>\n }\n </li>\n } @else {\n @let option = item;\n\n <!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events, @angular-eslint/template/interactive-supports-focus -- listbox option; activated via the combobox input + aria-activedescendant, options aren't individually focusable -->\n <li\n role=\"option\"\n dsTooltipWhenClipped=\".option-label\"\n [class]=\"optionClass(option)\"\n [id]=\"optionId(flatIndexOf(option))\"\n [class.is-active]=\"flatIndexOf(option) === activeIndex()\"\n [attr.aria-selected]=\"isSelected(option)\"\n [attr.aria-disabled]=\"option.disabled ? 'true' : null\"\n (click)=\"onPick(option)\"\n (mouseenter)=\"\n cursorFromKeyboard.set(false);\n option.disabled || activeIndex.set(flatIndexOf(option))\n \">\n @if (multiple()) {\n <span\n class=\"check-box\"\n [class.checked]=\"isSelected(option)\">\n <span class=\"tick\"></span>\n </span>\n }\n\n @if (option.icon) {\n <ds-icon\n class=\"option-icon\"\n [name]=\"option.icon\"\n [size]=\"16\" />\n }\n\n <span class=\"option-label\">\n @if (optionTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n $implicit: option,\n option: option,\n }\" />\n } @else {\n {{ option.label }}\n }\n </span>\n\n @if (!multiple()) {\n <span\n class=\"option-check\"\n [class.is-shown]=\"isSelected(option)\">\n </span>\n }\n </li>\n }\n }\n\n @if (loading() && filteredOptions().length === 0) {\n @for (width of skeletonOptionWidths; track $index) {\n <li\n class=\"option is-skeleton\"\n role=\"presentation\">\n <ds-skeleton\n height=\"1lh\"\n [width]=\"width\" />\n </li>\n }\n } @else if (filteredOptions().length === 0 && !showCreateRow()) {\n <li\n class=\"empty\"\n role=\"presentation\">\n @if (emptyTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n $implicit: query(),\n query: query(),\n }\" />\n } @else {\n {{ intl().picker.noMatches }}\n }\n </li>\n }\n\n @if (showCreateRow()) {\n <!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events, @angular-eslint/template/interactive-supports-focus -- listbox option; activated via the combobox input + aria-activedescendant, options aren't individually focusable -->\n <li\n class=\"option create-row\"\n role=\"option\"\n dsTooltipWhenClipped=\".option-label\"\n [id]=\"optionId(visibleOptions().length)\"\n [class.is-active]=\"activeIndex() === visibleOptions().length\"\n [attr.aria-selected]=\"false\"\n (click)=\"onCreateNew()\"\n (mouseenter)=\"\n cursorFromKeyboard.set(false);\n activeIndex.set(visibleOptions().length)\n \">\n <ds-icon\n name=\"plus\"\n class=\"create-icon\"\n [size]=\"16\" />\n\n <span class=\"option-label\">\n @if (createTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n $implicit: query().trim(),\n query: query().trim(),\n }\" />\n } @else {\n {{ intl().picker.create(query().trim()) }}\n }\n </span>\n </li>\n }\n </ul>\n </ds-loading-overlay>\n\n @if (panelFooterTemplate(); as tpl) {\n <div class=\"panel-footer\">\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n count: filteredOptions().length,\n total: allOptions().length,\n query: query(),\n }\" />\n </div>\n }\n </div>\n</ng-template>\n", styles: [":where(:host){box-sizing:border-box;interpolate-size:allow-keywords}:where(*){box-sizing:border-box}:where(button,input,select,textarea){font-family:inherit}:where(h1,h2,h3,h4,h5,h6){margin:0}:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard);border-radius:var(--focus-ring-radius)}@media(forced-colors:active){:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}:host{--_field-border-color: var(--ds-field-border-color, var(--border-default));--_field-border-color-hover: var(--ds-field-border-color-hover, var(--border-strong));--_field-border-color-focus: var(--ds-field-border-color-focus, var(--accent));--_field-text-color: var(--ds-field-text-color, var(--text-primary));--_field-placeholder-color: var(--ds-field-placeholder-color, var(--text-tertiary));--_field-font-size: var(--ds-field-font-size, var(--font-size-s));--ds-dropdown-panel-bg-color: var(--ds-autocomplete-panel-bg-color, initial);--ds-dropdown-panel-radius: var(--ds-autocomplete-panel-radius, initial);--ds-dropdown-panel-max-height: var(--ds-autocomplete-panel-max-height, var(--picker-maxh));--_autocomplete-focus-shadow: var(--ds-autocomplete-focus-shadow, var(--ds-field-focus-shadow));--_autocomplete-max-width: var(--ds-autocomplete-max-width, none);--_autocomplete-input-min-width: var(--ds-autocomplete-input-min-width, 40px);--_autocomplete-input-font-size: var(--ds-autocomplete-input-font-size, var(--_field-font-size));--_autocomplete-bg-color: var(--ds-autocomplete-bg-color, var(--surface-default));--_autocomplete-border-color: var(--ds-autocomplete-border-color, var(--_field-border-color));--_autocomplete-radius: var(--ds-autocomplete-radius, var(--ds-radius-control));--_autocomplete-border-color-focus: var(--ds-autocomplete-border-color-focus, var(--_field-border-color-focus));--_autocomplete-border-color-hover: var(--ds-autocomplete-border-color-hover, var(--_field-border-color-hover));--_autocomplete-text-color: var(--ds-autocomplete-text-color, var(--_field-text-color));--_autocomplete-placeholder-color: var(--ds-autocomplete-placeholder-color, var(--_field-placeholder-color));display:flex;flex-direction:column;gap:var(--field-label-gap);width:100%;max-width:var(--_autocomplete-max-width);position:relative}:host(.content-width){--_autocomplete-max-width: var(--ds-autocomplete-max-width, 100%);width:fit-content}.label{--_field-label-font-size: var(--ds-field-label-font-size, var(--font-size-xs));--_field-label-font-weight: var(--ds-field-label-font-weight, var(--font-weight-bold));--_field-label-color: var(--ds-field-label-color, var(--text-secondary));--_field-label-text-transform: var(--ds-field-label-text-transform, none);--_field-label-letter-spacing: var(--ds-field-label-letter-spacing, normal);display:flex;align-items:center;gap:var(--field-gap-req);font:var(--_field-label-font-weight) var(--_field-label-font-size)/var(--line-height-base) var(--font-sans);color:var(--_field-label-color);text-transform:var(--_field-label-text-transform);letter-spacing:var(--_field-label-letter-spacing)}.label .req{color:var(--error);font-weight:var(--font-weight-semibold)}.label .optional-marker{color:var(--text-tertiary);font-weight:var(--font-weight-regular)}.autocomplete-trigger{display:flex;align-items:center;gap:var(--space-2);width:100%;--_field-height: var(--ds-field-height, var(--field-h-md));min-height:var(--_field-height);padding:var(--space-1) var(--space-2);background:var(--_autocomplete-bg-color);border:var(--border-width-default) solid var(--_autocomplete-border-color);border-radius:var(--_autocomplete-radius);cursor:text;text-align:left;flex-wrap:wrap}.autocomplete-trigger:has(>.chip-row.fit){flex-wrap:nowrap}:host(:not(.value-wraps)) .autocomplete-trigger{flex-wrap:nowrap}.autocomplete-trigger{transition:border-color var(--duration-fast) var(--ease-standard)}.autocomplete-trigger .clear-btn{border:0;background:transparent;display:inline-flex;align-items:center;justify-content:center;color:var(--icon-default);border-radius:var(--ds-radius-inner);padding:var(--space-0-5);cursor:pointer;flex:0 0 auto}.autocomplete-trigger .clear-btn:hover{color:var(--text-primary);background:var(--surface-secondary)}.autocomplete-trigger .clear-btn:active:not(:disabled,[disabled],.is-disabled,.disabled,[aria-disabled=true]){filter:brightness(var(--ds-press-brightness, .9));transform:scale(var(--ds-press-scale, .97))}.autocomplete-trigger .clear-btn{position:relative}.autocomplete-trigger .clear-btn:before{content:\"\";position:absolute;top:50%;left:50%;width:max(100%,var(--hit-xs));height:max(100%,var(--hit-xs));translate:-50% -50%;border-radius:inherit}.autocomplete-trigger .clear-btn:focus-visible{outline-style:none}.autocomplete-trigger .clear-btn:focus-visible:before{outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:calc(var(--focus-ring-offset) - 2 * var(--focus-ring-width));animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}.autocomplete-trigger .addon-slot{display:inline-flex;align-items:center;align-self:stretch;color:var(--text-tertiary);flex-shrink:0}.autocomplete-trigger .addon-slot:empty{display:none}.autocomplete-trigger:hover:not(.disabled){border-color:var(--_autocomplete-border-color-hover)}@media not (forced-colors:active){.autocomplete-trigger .autocomplete-input:where(:focus-visible){outline:none}}.autocomplete-trigger:focus-within:not(.disabled){border-color:var(--_autocomplete-border-color-focus);box-shadow:var(--_autocomplete-focus-shadow)}@media not (forced-colors:active){.autocomplete-trigger:focus-within:not(.disabled){outline:none}}.autocomplete-trigger.disabled{background:var(--surface-disabled);border-color:var(--border-disabled);color:var(--text-disabled);cursor:not-allowed}.autocomplete-trigger.disabled .autocomplete-input{cursor:not-allowed;color:var(--text-disabled)}.autocomplete-trigger.disabled .autocomplete-value,.autocomplete-trigger.disabled .autocomplete-chevron{color:var(--text-disabled)}.autocomplete-trigger.sm{--_field-height: var(--ds-field-height, var(--field-h-sm));min-height:var(--_field-height)}.autocomplete-trigger.lg{--_field-height: var(--ds-field-height, var(--field-h-lg));min-height:var(--_field-height)}.chip-row{display:contents}.chip-row.fit{display:flex;flex-wrap:nowrap;align-items:center;min-width:0;gap:inherit;overflow:clip visible}.chip-row.fit>*{flex:0 1 auto;min-width:0;white-space:nowrap}.overflow{color:var(--text-secondary);font-weight:var(--font-weight-semibold);font-size:var(--font-size-xs)}.autocomplete-value{font:var(--font-weight-medium) var(--font-size-s)/var(--line-height-flat) var(--font-sans);color:var(--_autocomplete-text-color)}:host(:not(.value-wraps)) .autocomplete-value{min-width:0;overflow:clip visible;text-overflow:ellipsis;white-space:nowrap}.autocomplete-input{flex:1;min-width:var(--_autocomplete-input-min-width)}.autocomplete-input.collapsed{flex:0 0 0;min-width:0;width:0;padding:0}.autocomplete-input{border:0}@media not (forced-colors:active){.autocomplete-input{outline:none}}.autocomplete-input{background:transparent;font:var(--font-weight-regular) var(--_autocomplete-input-font-size)/var(--line-height-flat) var(--font-sans);color:var(--_autocomplete-text-color)}.autocomplete-input::placeholder{color:var(--_autocomplete-placeholder-color)}.autocomplete-chevron{color:var(--icon-default);margin-left:auto}.dropdown-panel .option.multi{padding-left:var(--space-2)}.dropdown-panel .check-box{flex:none;display:inline-flex;align-items:center;justify-content:center;width:var(--check-size);height:var(--check-size);border:var(--check-bw) solid var(--border-strong);border-radius:var(--ds-radius-inner);background-color:var(--surface-default);color:var(--text-on-primary)}.dropdown-panel .check-box.checked{background-color:var(--accent);border-color:var(--accent)}.dropdown-panel .check-box .tick{--_check-mark-enter-duration: var(--ds-check-mark-enter-duration, var(--ds-motion-check-enter-duration));--_check-mark-enter-easing: var(--ds-check-mark-enter-easing, var(--ds-motion-check-enter-easing));--_check-mark-exit-duration: var(--ds-check-mark-exit-duration, var(--ds-motion-check-exit-duration));--_check-mark-exit-easing: var(--ds-check-mark-exit-easing, var(--ds-motion-check-exit-easing));width:var(--check-tick-size);height:var(--check-tick-size);transform:scale(.6);opacity:0;transform-origin:center;transition:transform var(--_check-mark-exit-duration) var(--_check-mark-exit-easing),opacity var(--_check-mark-exit-duration) var(--_check-mark-exit-easing);background-color:currentcolor}@media(forced-colors:active){.dropdown-panel .check-box .tick{background-color:CanvasText}}.dropdown-panel .check-box .tick{-webkit-mask:url(\"data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none'><path d='M2 6.5l2.5 2.5L10 3.5' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>\") center/contain no-repeat;mask:url(\"data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none'><path d='M2 6.5l2.5 2.5L10 3.5' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>\") center/contain no-repeat}.dropdown-panel .check-box.checked .tick{transform:scale(1);opacity:1;transition:transform var(--_check-mark-enter-duration) var(--_check-mark-enter-easing),opacity var(--_check-mark-enter-duration) var(--_check-mark-enter-easing)}.dropdown-panel .create-row{color:var(--accent)}.dropdown-panel .create-row .create-icon{flex:0 0 auto}:host(.in-group){width:auto;display:flex}:host(.in-group) .label,:host(.in-group) ds-field-message{display:none}:host(.in-group) .autocomplete-trigger{border:0;border-radius:0;background:transparent;flex:1;height:auto}:host(.in-group) .autocomplete-trigger:hover,:host(.in-group) .autocomplete-trigger:focus,:host(.in-group) .autocomplete-trigger:focus-visible,:host(.in-group) .autocomplete-trigger:focus-within{border:0;box-shadow:none}@media not (forced-colors:active){:host(.in-group) .autocomplete-trigger:hover,:host(.in-group) .autocomplete-trigger:focus,:host(.in-group) .autocomplete-trigger:focus-visible,:host(.in-group) .autocomplete-trigger:focus-within{outline:none}}:host([data-field-state=error]:not(.in-group)) .autocomplete-trigger:not(.disabled):not(:disabled){border-color:var(--error);background-color:var(--error-subtitle)}:host([data-field-state=error]:not(.in-group)) .autocomplete-trigger:not(.disabled):not(:disabled):focus-within,:host([data-field-state=error]:not(.in-group)) .autocomplete-trigger:not(.disabled):not(:disabled):focus-visible{box-shadow:var(--ds-field-focus-shadow-error)}:host([data-field-state=warning]:not(.in-group)) .autocomplete-trigger:not(.disabled):not(:disabled){border-color:var(--warning-text)}:host([data-field-state=warning]:not(.in-group)) .autocomplete-trigger:not(.disabled):not(:disabled):focus-within,:host([data-field-state=warning]:not(.in-group)) .autocomplete-trigger:not(.disabled):not(:disabled):focus-visible{box-shadow:var(--ds-field-focus-shadow-warning)}:host([data-field-state=success]:not(.in-group)) .autocomplete-trigger:not(.disabled):not(:disabled){border-color:var(--success)}:host([data-field-state=success]:not(.in-group)) .autocomplete-trigger:not(.disabled):not(:disabled):focus-within,:host([data-field-state=success]:not(.in-group)) .autocomplete-trigger:not(.disabled):not(:disabled):focus-visible{box-shadow:var(--ds-field-focus-shadow-success)}\n"] }]
561
+ ], template: "@if (label()) {\n <span\n class=\"label\"\n [id]=\"labelId\">\n {{ label() }}\n @if (required()) {\n <span\n class=\"req\"\n aria-hidden=\"true\">\n *\n </span>\n } @else if (optional()) {\n <span\n class=\"optional-marker\"\n aria-hidden=\"true\">\n {{ intl().field.optional }}\n </span>\n }\n </span>\n}\n\n<!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events, @angular-eslint/template/interactive-supports-focus -- click opens/focuses; keyboard runs through the inner <input role=\"combobox\"> (type/arrows/Enter/Esc) -->\n<div\n #trigger\n class=\"autocomplete-trigger\"\n [class]=\"sizeResolved()\"\n [class.disabled]=\"isDisabled()\"\n (click)=\"onTriggerClick()\">\n <span class=\"addon-slot prefix\">\n <ng-content select=\"[dsAutocompletePrefix]\"></ng-content>\n </span>\n\n @if (pickerTrigger(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n $implicit: triggerSelection(),\n selected: triggerSelection(),\n count: multiple() ? selectedTags().length : hasSingleValue() ? 1 : 0,\n open: isOpen(),\n disabled: isDisabled(),\n }\" />\n } @else if (multiple()) {\n <span\n #chipRow\n class=\"chip-row\"\n [class.fit]=\"fitsChipsToWidth()\">\n @for (selectedOption of visibleTags(); track selectedOption.value) {\n <ds-tag\n data-chip\n [closable]=\"true\"\n [closeLabel]=\"intl().picker.removeChip(selectedOption.label)\"\n (closed)=\"remove(selectedOption.value)\">\n @if (chipTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n $implicit: selectedOption,\n option: selectedOption,\n }\" />\n } @else {\n {{ selectedOption.label }}\n }\n </ds-tag>\n }\n\n @if (overflowCount() > 0) {\n <span\n class=\"overflow\"\n data-chip-overflow>\n {{ intl().picker.moreChips(overflowCount()) }}\n </span>\n }\n </span>\n } @else if (displayLabel()) {\n <span\n class=\"autocomplete-value\"\n [attr.title]=\"valueOverflow() === 'ellipsis' ? displayLabel() : null\">\n {{ displayLabel() }}\n </span>\n }\n\n <input\n #filter\n type=\"text\"\n class=\"autocomplete-input\"\n role=\"combobox\"\n aria-autocomplete=\"list\"\n [class.collapsed]=\"displayLabel() && !isOpen()\"\n [attr.aria-expanded]=\"isOpen()\"\n [attr.aria-controls]=\"listboxId\"\n [attr.aria-activedescendant]=\"activeDescendant()\"\n [attr.aria-busy]=\"loading() ? 'true' : null\"\n [attr.aria-labelledby]=\"label() ? labelId : null\"\n [attr.aria-label]=\"resolvedAriaLabel()\"\n [attr.aria-required]=\"required() ? 'true' : null\"\n [attr.aria-readonly]=\"isReadOnly() ? 'true' : null\"\n [attr.name]=\"name()\"\n [attr.aria-invalid]=\"invalidResolved() ? 'true' : null\"\n [attr.aria-describedby]=\"describedByIds(hintId(), groupMessage())\"\n [disabled]=\"isDisabled()\"\n [value]=\"query()\"\n [placeholder]=\"placeholderText()\"\n (input)=\"onFilter($event)\"\n (focus)=\"openPanel()\"\n (blur)=\"markTouched()\"\n (keydown)=\"onKeydown($event)\" />\n\n <span class=\"addon-slot suffix\">\n <ng-content select=\"[dsAutocompleteSuffix]\"></ng-content>\n </span>\n\n @if (\n clearable() &&\n hasSingleValue() &&\n !isDisabled() &&\n !isReadOnly()\n ) {\n <button\n type=\"button\"\n class=\"clear-btn\"\n [attr.aria-label]=\"intl().picker.clearSelection\"\n (click)=\"clearValue($event)\">\n <ds-icon\n name=\"x\"\n [size]=\"14\" />\n </button>\n }\n\n <ds-field-status\n [pending]=\"pendingShown()\"\n [changed]=\"changedShown()\" />\n\n @if (showChevron()) {\n <ds-icon\n name=\"chevronDown\"\n class=\"autocomplete-chevron\"\n aria-hidden=\"true\"\n [size]=\"16\"\n (click)=\"togglePanel($event)\" />\n }\n</div>\n\n<ds-field-message\n [icon]=\"messageIcon()\"\n [text]=\"message().text\"\n [state]=\"message().state\"\n [messageId]=\"hintId()\"\n [reserve]=\"reserveMessageResolved()\"\n [changed]=\"changedShown()\" />\n\n<ng-template #panel>\n <div class=\"dropdown-panel\">\n @if (panelHeaderTemplate(); as tpl) {\n <div class=\"panel-header\">\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n count: filteredOptions().length,\n total: allOptions().length,\n query: query(),\n }\" />\n </div>\n }\n\n <ds-loading-overlay\n class=\"list-overlay\"\n [loading]=\"listInert()\"\n [blur]=\"true\">\n <ul\n class=\"dropdown-list\"\n role=\"listbox\"\n [attr.aria-busy]=\"loading() ? 'true' : null\"\n [id]=\"listboxId\"\n [attr.aria-multiselectable]=\"multiple() ? 'true' : null\">\n @for (item of filteredItems(); track $index; let itemIdx = $index) {\n @if (isGroup(item)) {\n <li\n class=\"optgroup\"\n role=\"group\"\n [attr.aria-label]=\"item.label\">\n <span\n class=\"optgroup-label\"\n [class.is-first]=\"itemIdx === 0\">\n @if (groupLabelTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n $implicit: item,\n group: item,\n count: item.options.length,\n }\" />\n } @else {\n {{ item.label }}\n }\n </span>\n\n @for (option of item.options; track option.value) {\n <!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events, @angular-eslint/template/interactive-supports-focus -- listbox option; activated via the combobox input + aria-activedescendant, options aren't individually focusable -->\n <div\n role=\"option\"\n dsTooltipWhenClipped=\".option-label\"\n [class]=\"optionClass(option)\"\n [id]=\"optionId(flatIndexOf(option))\"\n [class.is-active]=\"flatIndexOf(option) === activeIndex()\"\n [attr.aria-selected]=\"isSelected(option)\"\n [attr.aria-disabled]=\"option.disabled ? 'true' : null\"\n (click)=\"onPick(option)\"\n (mouseenter)=\"\n cursorFromKeyboard.set(false);\n option.disabled || activeIndex.set(flatIndexOf(option))\n \">\n @if (multiple()) {\n <span\n class=\"check-box\"\n [class.checked]=\"isSelected(option)\">\n <span class=\"tick\"></span>\n </span>\n }\n\n @if (option.icon) {\n <ds-icon\n class=\"option-icon\"\n [name]=\"option.icon\"\n [size]=\"16\" />\n }\n\n <span class=\"option-label\">\n @if (optionTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n $implicit: option,\n option: option,\n }\" />\n } @else {\n {{ option.label }}\n }\n </span>\n\n @if (!multiple()) {\n <span\n class=\"option-check\"\n [class.is-shown]=\"isSelected(option)\">\n </span>\n }\n </div>\n }\n </li>\n } @else {\n @let option = item;\n\n <!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events, @angular-eslint/template/interactive-supports-focus -- listbox option; activated via the combobox input + aria-activedescendant, options aren't individually focusable -->\n <li\n role=\"option\"\n dsTooltipWhenClipped=\".option-label\"\n [class]=\"optionClass(option)\"\n [id]=\"optionId(flatIndexOf(option))\"\n [class.is-active]=\"flatIndexOf(option) === activeIndex()\"\n [attr.aria-selected]=\"isSelected(option)\"\n [attr.aria-disabled]=\"option.disabled ? 'true' : null\"\n (click)=\"onPick(option)\"\n (mouseenter)=\"\n cursorFromKeyboard.set(false);\n option.disabled || activeIndex.set(flatIndexOf(option))\n \">\n @if (multiple()) {\n <span\n class=\"check-box\"\n [class.checked]=\"isSelected(option)\">\n <span class=\"tick\"></span>\n </span>\n }\n\n @if (option.icon) {\n <ds-icon\n class=\"option-icon\"\n [name]=\"option.icon\"\n [size]=\"16\" />\n }\n\n <span class=\"option-label\">\n @if (optionTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n $implicit: option,\n option: option,\n }\" />\n } @else {\n {{ option.label }}\n }\n </span>\n\n @if (!multiple()) {\n <span\n class=\"option-check\"\n [class.is-shown]=\"isSelected(option)\">\n </span>\n }\n </li>\n }\n }\n\n @if (loading() && filteredOptions().length === 0) {\n @for (width of skeletonOptionWidths; track $index) {\n <li\n class=\"option is-skeleton\"\n role=\"presentation\">\n <ds-skeleton\n height=\"1lh\"\n [width]=\"width\" />\n </li>\n }\n } @else if (filteredOptions().length === 0 && !showCreateRow()) {\n <li\n class=\"empty\"\n role=\"presentation\">\n @if (emptyTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n $implicit: query(),\n query: query(),\n }\" />\n } @else {\n {{ intl().picker.noMatches }}\n }\n </li>\n }\n\n @if (showCreateRow()) {\n <!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events, @angular-eslint/template/interactive-supports-focus -- listbox option; activated via the combobox input + aria-activedescendant, options aren't individually focusable -->\n <li\n class=\"option create-row\"\n role=\"option\"\n dsTooltipWhenClipped=\".option-label\"\n [id]=\"optionId(visibleOptions().length)\"\n [class.is-active]=\"activeIndex() === visibleOptions().length\"\n [attr.aria-selected]=\"false\"\n (click)=\"onCreateNew()\"\n (mouseenter)=\"\n cursorFromKeyboard.set(false);\n activeIndex.set(visibleOptions().length)\n \">\n <ds-icon\n name=\"plus\"\n class=\"create-icon\"\n [size]=\"16\" />\n\n <span class=\"option-label\">\n @if (createTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n $implicit: query().trim(),\n query: query().trim(),\n }\" />\n } @else {\n {{ intl().picker.create(query().trim()) }}\n }\n </span>\n </li>\n }\n </ul>\n </ds-loading-overlay>\n\n @if (panelFooterTemplate(); as tpl) {\n <div class=\"panel-footer\">\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n count: filteredOptions().length,\n total: allOptions().length,\n query: query(),\n }\" />\n </div>\n }\n </div>\n</ng-template>\n", styles: [":where(:host){box-sizing:border-box;interpolate-size:allow-keywords}:where(*){box-sizing:border-box}:where(button,input,select,textarea){font-family:inherit}:where(h1,h2,h3,h4,h5,h6){margin:0}:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard);border-radius:var(--focus-ring-radius)}@media(forced-colors:active){:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}:host{--_field-border-color: var(--ds-field-border-color, var(--border-field));--_field-border-color-hover: var(--ds-field-border-color-hover, var(--border-field-hover));--_field-border-color-focus: var(--ds-field-border-color-focus, var(--accent));--_field-text-color: var(--ds-field-text-color, var(--text-primary));--_field-placeholder-color: var(--ds-field-placeholder-color, var(--text-tertiary));--_field-font-size: var(--ds-field-font-size, var(--font-size-s));--ds-dropdown-panel-bg-color: var(--ds-autocomplete-panel-bg-color, initial);--ds-dropdown-panel-radius: var(--ds-autocomplete-panel-radius, initial);--ds-dropdown-panel-max-height: var(--ds-autocomplete-panel-max-height, var(--picker-maxh));--_autocomplete-focus-shadow: var(--ds-autocomplete-focus-shadow, var(--ds-field-focus-shadow));--_autocomplete-max-width: var(--ds-autocomplete-max-width, none);--_autocomplete-input-min-width: var(--ds-autocomplete-input-min-width, 40px);--_autocomplete-input-font-size: var(--ds-autocomplete-input-font-size, var(--_field-font-size));--_autocomplete-bg-color: var(--ds-autocomplete-bg-color, var(--surface-default));--_autocomplete-border-color: var(--ds-autocomplete-border-color, var(--_field-border-color));--_autocomplete-radius: var(--ds-autocomplete-radius, var(--ds-radius-control));--_autocomplete-border-color-focus: var(--ds-autocomplete-border-color-focus, var(--_field-border-color-focus));--_autocomplete-border-color-hover: var(--ds-autocomplete-border-color-hover, var(--_field-border-color-hover));--_autocomplete-text-color: var(--ds-autocomplete-text-color, var(--_field-text-color));--_autocomplete-placeholder-color: var(--ds-autocomplete-placeholder-color, var(--_field-placeholder-color));display:flex;flex-direction:column;gap:var(--field-label-gap);width:100%;max-width:var(--_autocomplete-max-width);position:relative}:host(.content-width){--_autocomplete-max-width: var(--ds-autocomplete-max-width, 100%);width:fit-content}.label{--_field-label-font-size: var(--ds-field-label-font-size, var(--font-size-xs));--_field-label-font-weight: var(--ds-field-label-font-weight, var(--font-weight-bold));--_field-label-color: var(--ds-field-label-color, var(--text-secondary));--_field-label-text-transform: var(--ds-field-label-text-transform, none);--_field-label-letter-spacing: var(--ds-field-label-letter-spacing, normal);display:flex;align-items:center;gap:var(--field-gap-req);font:var(--_field-label-font-weight) var(--_field-label-font-size)/var(--line-height-base) var(--font-sans);color:var(--_field-label-color);text-transform:var(--_field-label-text-transform);letter-spacing:var(--_field-label-letter-spacing)}.label .req{color:var(--error);font-weight:var(--font-weight-semibold)}.label .optional-marker{color:var(--text-tertiary);font-weight:var(--font-weight-regular)}.autocomplete-trigger{display:flex;align-items:center;gap:var(--space-2);width:100%;--_field-height: var(--ds-field-height, var(--field-h-md));min-height:var(--_field-height);padding:var(--space-1) var(--space-2);background:var(--_autocomplete-bg-color);border:var(--border-width-default) solid var(--_autocomplete-border-color);border-radius:var(--_autocomplete-radius);cursor:text;text-align:left;flex-wrap:wrap}.autocomplete-trigger:has(>.chip-row.fit){flex-wrap:nowrap}:host(:not(.value-wraps)) .autocomplete-trigger{flex-wrap:nowrap}.autocomplete-trigger{transition:border-color var(--duration-fast) var(--ease-standard)}.autocomplete-trigger .clear-btn{border:0;background:transparent;display:inline-flex;align-items:center;justify-content:center;color:var(--icon-default);border-radius:var(--ds-radius-inner);padding:var(--space-0-5);cursor:pointer;flex:0 0 auto}.autocomplete-trigger .clear-btn:hover{color:var(--text-primary);background:var(--surface-secondary)}.autocomplete-trigger .clear-btn:active:not(:disabled,[disabled],.is-disabled,.disabled,[aria-disabled=true]){filter:brightness(var(--ds-press-brightness, .9));transform:scale(var(--ds-press-scale, .97))}.autocomplete-trigger .clear-btn{position:relative}.autocomplete-trigger .clear-btn:before{content:\"\";position:absolute;top:50%;left:50%;width:max(100%,var(--hit-xs));height:max(100%,var(--hit-xs));translate:-50% -50%;border-radius:inherit}.autocomplete-trigger .clear-btn:focus-visible{outline-style:none}.autocomplete-trigger .clear-btn:focus-visible:before{outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:calc(var(--focus-ring-offset) - 2 * var(--focus-ring-width));animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}.autocomplete-trigger .addon-slot{display:inline-flex;align-items:center;align-self:stretch;color:var(--text-tertiary);flex-shrink:0}.autocomplete-trigger .addon-slot:empty{display:none}.autocomplete-trigger:hover:not(.disabled){border-color:var(--_autocomplete-border-color-hover)}@media not (forced-colors:active){.autocomplete-trigger .autocomplete-input:where(:focus-visible){outline:none}}.autocomplete-trigger:focus-within:not(.disabled){border-color:var(--_autocomplete-border-color-focus);box-shadow:var(--_autocomplete-focus-shadow)}@media not (forced-colors:active){.autocomplete-trigger:focus-within:not(.disabled){outline:none}}.autocomplete-trigger.disabled{background:var(--surface-disabled);border-color:var(--border-disabled);color:var(--text-disabled);cursor:not-allowed}.autocomplete-trigger.disabled .autocomplete-input{cursor:not-allowed;color:var(--text-disabled)}.autocomplete-trigger.disabled .autocomplete-value,.autocomplete-trigger.disabled .autocomplete-chevron{color:var(--text-disabled)}.autocomplete-trigger.sm{--_field-height: var(--ds-field-height, var(--field-h-sm));min-height:var(--_field-height)}.autocomplete-trigger.lg{--_field-height: var(--ds-field-height, var(--field-h-lg));min-height:var(--_field-height)}.chip-row{display:contents}.chip-row.fit{display:flex;flex-wrap:nowrap;align-items:center;min-width:0;gap:inherit;overflow:clip visible}.chip-row.fit>*{flex:0 1 auto;min-width:0;white-space:nowrap}.overflow{color:var(--text-secondary);font-weight:var(--font-weight-semibold);font-size:var(--font-size-xs)}.autocomplete-value{font:var(--font-weight-medium) var(--font-size-s)/var(--line-height-flat) var(--font-sans);color:var(--_autocomplete-text-color)}:host(:not(.value-wraps)) .autocomplete-value{min-width:0;overflow:clip visible;text-overflow:ellipsis;white-space:nowrap}.autocomplete-input{flex:1;min-width:var(--_autocomplete-input-min-width)}.autocomplete-input.collapsed{flex:0 0 0;min-width:0;width:0;padding:0}.autocomplete-input{border:0}@media not (forced-colors:active){.autocomplete-input{outline:none}}.autocomplete-input{background:transparent;font:var(--font-weight-regular) var(--_autocomplete-input-font-size)/var(--line-height-flat) var(--font-sans);color:var(--_autocomplete-text-color)}.autocomplete-input::placeholder{color:var(--_autocomplete-placeholder-color)}.autocomplete-chevron{color:var(--icon-default);margin-left:auto}.dropdown-panel .option.multi{padding-left:var(--space-2)}.dropdown-panel .check-box{flex:none;display:inline-flex;align-items:center;justify-content:center;width:var(--check-size);height:var(--check-size);border:var(--check-bw) solid var(--border-strong);border-radius:var(--ds-radius-inner);background-color:var(--surface-default);color:var(--text-on-primary)}.dropdown-panel .check-box.checked{background-color:var(--accent);border-color:var(--accent)}.dropdown-panel .check-box .tick{--_check-mark-enter-duration: var(--ds-check-mark-enter-duration, var(--ds-motion-check-enter-duration));--_check-mark-enter-easing: var(--ds-check-mark-enter-easing, var(--ds-motion-check-enter-easing));--_check-mark-exit-duration: var(--ds-check-mark-exit-duration, var(--ds-motion-check-exit-duration));--_check-mark-exit-easing: var(--ds-check-mark-exit-easing, var(--ds-motion-check-exit-easing));width:var(--check-tick-size);height:var(--check-tick-size);transform:scale(.6);opacity:0;transform-origin:center;transition:transform var(--_check-mark-exit-duration) var(--_check-mark-exit-easing),opacity var(--_check-mark-exit-duration) var(--_check-mark-exit-easing);background-color:currentcolor}@media(forced-colors:active){.dropdown-panel .check-box .tick{background-color:CanvasText}}.dropdown-panel .check-box .tick{-webkit-mask:url(\"data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none'><path d='M2 6.5l2.5 2.5L10 3.5' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>\") center/contain no-repeat;mask:url(\"data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none'><path d='M2 6.5l2.5 2.5L10 3.5' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>\") center/contain no-repeat}.dropdown-panel .check-box.checked .tick{transform:scale(1);opacity:1;transition:transform var(--_check-mark-enter-duration) var(--_check-mark-enter-easing),opacity var(--_check-mark-enter-duration) var(--_check-mark-enter-easing)}.dropdown-panel .create-row{color:var(--accent)}.dropdown-panel .create-row .create-icon{flex:0 0 auto}:host(.in-group){width:auto;display:flex}:host(.in-group) .label,:host(.in-group) ds-field-message{display:none}:host(.in-group) .autocomplete-trigger{border:0;border-radius:0;background:transparent;flex:1;height:auto}:host(.in-group) .autocomplete-trigger:hover,:host(.in-group) .autocomplete-trigger:focus,:host(.in-group) .autocomplete-trigger:focus-visible,:host(.in-group) .autocomplete-trigger:focus-within{border:0;box-shadow:none}@media not (forced-colors:active){:host(.in-group) .autocomplete-trigger:hover,:host(.in-group) .autocomplete-trigger:focus,:host(.in-group) .autocomplete-trigger:focus-visible,:host(.in-group) .autocomplete-trigger:focus-within{outline:none}}:host([data-field-state=error]:not(.in-group)) .autocomplete-trigger:not(.disabled):not(:disabled){border-color:var(--error);background-color:var(--error-subtitle)}:host([data-field-state=error]:not(.in-group)) .autocomplete-trigger:not(.disabled):not(:disabled):focus-within,:host([data-field-state=error]:not(.in-group)) .autocomplete-trigger:not(.disabled):not(:disabled):focus-visible{box-shadow:var(--ds-field-focus-shadow-error)}:host([data-field-state=warning]:not(.in-group)) .autocomplete-trigger:not(.disabled):not(:disabled){border-color:var(--warning-text)}:host([data-field-state=warning]:not(.in-group)) .autocomplete-trigger:not(.disabled):not(:disabled):focus-within,:host([data-field-state=warning]:not(.in-group)) .autocomplete-trigger:not(.disabled):not(:disabled):focus-visible{box-shadow:var(--ds-field-focus-shadow-warning)}:host([data-field-state=success]:not(.in-group)) .autocomplete-trigger:not(.disabled):not(:disabled){border-color:var(--success)}:host([data-field-state=success]:not(.in-group)) .autocomplete-trigger:not(.disabled):not(:disabled):focus-within,:host([data-field-state=success]:not(.in-group)) .autocomplete-trigger:not(.disabled):not(:disabled):focus-visible{box-shadow:var(--ds-field-focus-shadow-success)}\n"] }]
562
562
  }], ctorParameters: () => [], propDecorators: { options: [{ type: i0.Input, args: [{ isSignal: true, alias: "options", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], multiple: [{ type: i0.Input, args: [{ isSignal: true, alias: "multiple", required: false }] }], showChevron: [{ type: i0.Input, args: [{ isSignal: true, alias: "showChevron", required: false }] }], maxVisibleChips: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxVisibleChips", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], width: [{ type: i0.Input, args: [{ isSignal: true, alias: "width", required: false }] }], valueOverflow: [{ type: i0.Input, args: [{ isSignal: true, alias: "valueOverflow", required: false }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], success: [{ type: i0.Input, args: [{ isSignal: true, alias: "success", required: false }] }], allowCreate: [{ type: i0.Input, args: [{ isSignal: true, alias: "allowCreate", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], compareWith: [{ type: i0.Input, args: [{ isSignal: true, alias: "compareWith", required: false }] }], name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: false }] }], panelClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "panelClass", required: false }] }], readOnly: [{ type: i0.Input, args: [{ isSignal: true, alias: "readOnly", required: false }] }], readonlyBinding: [{ type: i0.Input, args: [{ isSignal: true, alias: "readonly", required: false }] }], clearable: [{ type: i0.Input, args: [{ isSignal: true, alias: "clearable", required: false }] }], searchPlaceholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "searchPlaceholder", required: false }] }], filterWith: [{ type: i0.Input, args: [{ isSignal: true, alias: "filterWith", required: false }] }], filterChange: [{ type: i0.Output, args: ["filterChange"] }], loading: [{ type: i0.Input, args: [{ isSignal: true, alias: "loading", required: false }] }], opened: [{ type: i0.Output, args: ["opened"] }], closed: [{ type: i0.Output, args: ["closed"] }], scrollActiveIntoView: [{ type: i0.Input, args: [{ isSignal: true, alias: "scrollActiveIntoView", required: false }] }], required: [{ type: i0.Input, args: [{ isSignal: true, alias: "required", required: false }] }], optional: [{ type: i0.Input, args: [{ isSignal: true, alias: "optional", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], create: [{ type: i0.Output, args: ["create"] }], optionTemplate: [{ type: i0.ContentChild, args: [i0.forwardRef(() => DsOptionTemplateDirective), { ...{
563
563
  read: TemplateRef,
564
564
  }, isSignal: true }] }], chipTemplate: [{ type: i0.ContentChild, args: [i0.forwardRef(() => DsChipTemplateDirective), { ...{