@ids-group-ltd/ids-design-system 0.12.0 → 0.12.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 (158) hide show
  1. package/CHANGELOG.md +322 -52
  2. package/fesm2022/ids-group-ltd-ids-design-system-components-accordion.mjs +2 -2
  3. package/fesm2022/ids-group-ltd-ids-design-system-components-accordion.mjs.map +1 -1
  4. package/fesm2022/ids-group-ltd-ids-design-system-components-alert.mjs +2 -2
  5. package/fesm2022/ids-group-ltd-ids-design-system-components-alert.mjs.map +1 -1
  6. package/fesm2022/ids-group-ltd-ids-design-system-components-app-layout.mjs +2 -2
  7. package/fesm2022/ids-group-ltd-ids-design-system-components-app-layout.mjs.map +1 -1
  8. package/fesm2022/ids-group-ltd-ids-design-system-components-auth-layout.mjs +2 -2
  9. package/fesm2022/ids-group-ltd-ids-design-system-components-auth-layout.mjs.map +1 -1
  10. package/fesm2022/ids-group-ltd-ids-design-system-components-autocomplete.mjs +2 -2
  11. package/fesm2022/ids-group-ltd-ids-design-system-components-autocomplete.mjs.map +1 -1
  12. package/fesm2022/ids-group-ltd-ids-design-system-components-avatar-group.mjs +2 -2
  13. package/fesm2022/ids-group-ltd-ids-design-system-components-avatar-group.mjs.map +1 -1
  14. package/fesm2022/ids-group-ltd-ids-design-system-components-avatar.mjs +2 -2
  15. package/fesm2022/ids-group-ltd-ids-design-system-components-avatar.mjs.map +1 -1
  16. package/fesm2022/ids-group-ltd-ids-design-system-components-badge.mjs +2 -2
  17. package/fesm2022/ids-group-ltd-ids-design-system-components-badge.mjs.map +1 -1
  18. package/fesm2022/ids-group-ltd-ids-design-system-components-banner.mjs +2 -2
  19. package/fesm2022/ids-group-ltd-ids-design-system-components-banner.mjs.map +1 -1
  20. package/fesm2022/ids-group-ltd-ids-design-system-components-bottom-sheet.mjs +2 -2
  21. package/fesm2022/ids-group-ltd-ids-design-system-components-bottom-sheet.mjs.map +1 -1
  22. package/fesm2022/ids-group-ltd-ids-design-system-components-breadcrumbs.mjs +2 -2
  23. package/fesm2022/ids-group-ltd-ids-design-system-components-breadcrumbs.mjs.map +1 -1
  24. package/fesm2022/ids-group-ltd-ids-design-system-components-button.mjs +2 -2
  25. package/fesm2022/ids-group-ltd-ids-design-system-components-button.mjs.map +1 -1
  26. package/fesm2022/ids-group-ltd-ids-design-system-components-calendar-day.mjs +2 -2
  27. package/fesm2022/ids-group-ltd-ids-design-system-components-calendar-day.mjs.map +1 -1
  28. package/fesm2022/ids-group-ltd-ids-design-system-components-card.mjs +2 -2
  29. package/fesm2022/ids-group-ltd-ids-design-system-components-card.mjs.map +1 -1
  30. package/fesm2022/ids-group-ltd-ids-design-system-components-checkbox.mjs +2 -2
  31. package/fesm2022/ids-group-ltd-ids-design-system-components-checkbox.mjs.map +1 -1
  32. package/fesm2022/ids-group-ltd-ids-design-system-components-color-picker.mjs +2 -2
  33. package/fesm2022/ids-group-ltd-ids-design-system-components-color-picker.mjs.map +1 -1
  34. package/fesm2022/ids-group-ltd-ids-design-system-components-date-picker.mjs +2 -2
  35. package/fesm2022/ids-group-ltd-ids-design-system-components-date-picker.mjs.map +1 -1
  36. package/fesm2022/ids-group-ltd-ids-design-system-components-description-list.mjs +2 -2
  37. package/fesm2022/ids-group-ltd-ids-design-system-components-description-list.mjs.map +1 -1
  38. package/fesm2022/ids-group-ltd-ids-design-system-components-drawer.mjs +2 -2
  39. package/fesm2022/ids-group-ltd-ids-design-system-components-drawer.mjs.map +1 -1
  40. package/fesm2022/ids-group-ltd-ids-design-system-components-dropzone.mjs +2 -2
  41. package/fesm2022/ids-group-ltd-ids-design-system-components-dropzone.mjs.map +1 -1
  42. package/fesm2022/ids-group-ltd-ids-design-system-components-empty-state.mjs +2 -2
  43. package/fesm2022/ids-group-ltd-ids-design-system-components-empty-state.mjs.map +1 -1
  44. package/fesm2022/ids-group-ltd-ids-design-system-components-field-message.mjs +2 -2
  45. package/fesm2022/ids-group-ltd-ids-design-system-components-field-message.mjs.map +1 -1
  46. package/fesm2022/ids-group-ltd-ids-design-system-components-filter-bar.mjs +2 -2
  47. package/fesm2022/ids-group-ltd-ids-design-system-components-filter-bar.mjs.map +1 -1
  48. package/fesm2022/ids-group-ltd-ids-design-system-components-icon-button.mjs +2 -2
  49. package/fesm2022/ids-group-ltd-ids-design-system-components-icon-button.mjs.map +1 -1
  50. package/fesm2022/ids-group-ltd-ids-design-system-components-input.mjs +2 -2
  51. package/fesm2022/ids-group-ltd-ids-design-system-components-input.mjs.map +1 -1
  52. package/fesm2022/ids-group-ltd-ids-design-system-components-list.mjs +2 -2
  53. package/fesm2022/ids-group-ltd-ids-design-system-components-list.mjs.map +1 -1
  54. package/fesm2022/ids-group-ltd-ids-design-system-components-loading-overlay.mjs +2 -2
  55. package/fesm2022/ids-group-ltd-ids-design-system-components-loading-overlay.mjs.map +1 -1
  56. package/fesm2022/ids-group-ltd-ids-design-system-components-menu.mjs +12 -5
  57. package/fesm2022/ids-group-ltd-ids-design-system-components-menu.mjs.map +1 -1
  58. package/fesm2022/ids-group-ltd-ids-design-system-components-modal.mjs +6 -6
  59. package/fesm2022/ids-group-ltd-ids-design-system-components-modal.mjs.map +1 -1
  60. package/fesm2022/ids-group-ltd-ids-design-system-components-multi-select.mjs +2 -2
  61. package/fesm2022/ids-group-ltd-ids-design-system-components-multi-select.mjs.map +1 -1
  62. package/fesm2022/ids-group-ltd-ids-design-system-components-number-stepper.mjs +2 -2
  63. package/fesm2022/ids-group-ltd-ids-design-system-components-number-stepper.mjs.map +1 -1
  64. package/fesm2022/ids-group-ltd-ids-design-system-components-otp-input.mjs +2 -2
  65. package/fesm2022/ids-group-ltd-ids-design-system-components-otp-input.mjs.map +1 -1
  66. package/fesm2022/ids-group-ltd-ids-design-system-components-pagination.mjs +2 -2
  67. package/fesm2022/ids-group-ltd-ids-design-system-components-pagination.mjs.map +1 -1
  68. package/fesm2022/ids-group-ltd-ids-design-system-components-password-rules.mjs +2 -2
  69. package/fesm2022/ids-group-ltd-ids-design-system-components-password-rules.mjs.map +1 -1
  70. package/fesm2022/ids-group-ltd-ids-design-system-components-popover.mjs +2 -2
  71. package/fesm2022/ids-group-ltd-ids-design-system-components-popover.mjs.map +1 -1
  72. package/fesm2022/ids-group-ltd-ids-design-system-components-radio-group.mjs +21 -8
  73. package/fesm2022/ids-group-ltd-ids-design-system-components-radio-group.mjs.map +1 -1
  74. package/fesm2022/ids-group-ltd-ids-design-system-components-search.mjs +2 -2
  75. package/fesm2022/ids-group-ltd-ids-design-system-components-search.mjs.map +1 -1
  76. package/fesm2022/ids-group-ltd-ids-design-system-components-segmented.mjs +2 -2
  77. package/fesm2022/ids-group-ltd-ids-design-system-components-segmented.mjs.map +1 -1
  78. package/fesm2022/ids-group-ltd-ids-design-system-components-select.mjs +2 -2
  79. package/fesm2022/ids-group-ltd-ids-design-system-components-select.mjs.map +1 -1
  80. package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav-footer.mjs +2 -2
  81. package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav-footer.mjs.map +1 -1
  82. package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav.mjs +6 -6
  83. package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav.mjs.map +1 -1
  84. package/fesm2022/ids-group-ltd-ids-design-system-components-skeleton.mjs +2 -2
  85. package/fesm2022/ids-group-ltd-ids-design-system-components-skeleton.mjs.map +1 -1
  86. package/fesm2022/ids-group-ltd-ids-design-system-components-slider.mjs +2 -2
  87. package/fesm2022/ids-group-ltd-ids-design-system-components-slider.mjs.map +1 -1
  88. package/fesm2022/ids-group-ltd-ids-design-system-components-split-button.mjs +15 -5
  89. package/fesm2022/ids-group-ltd-ids-design-system-components-split-button.mjs.map +1 -1
  90. package/fesm2022/ids-group-ltd-ids-design-system-components-stat.mjs +2 -2
  91. package/fesm2022/ids-group-ltd-ids-design-system-components-stat.mjs.map +1 -1
  92. package/fesm2022/ids-group-ltd-ids-design-system-components-stepper.mjs +2 -2
  93. package/fesm2022/ids-group-ltd-ids-design-system-components-stepper.mjs.map +1 -1
  94. package/fesm2022/ids-group-ltd-ids-design-system-components-switch.mjs +2 -2
  95. package/fesm2022/ids-group-ltd-ids-design-system-components-switch.mjs.map +1 -1
  96. package/fesm2022/ids-group-ltd-ids-design-system-components-table-columns.mjs +440 -0
  97. package/fesm2022/ids-group-ltd-ids-design-system-components-table-columns.mjs.map +1 -0
  98. package/fesm2022/ids-group-ltd-ids-design-system-components-table-export.mjs +186 -0
  99. package/fesm2022/ids-group-ltd-ids-design-system-components-table-export.mjs.map +1 -0
  100. package/fesm2022/ids-group-ltd-ids-design-system-components-table-resize.mjs +227 -0
  101. package/fesm2022/ids-group-ltd-ids-design-system-components-table-resize.mjs.map +1 -0
  102. package/fesm2022/ids-group-ltd-ids-design-system-components-table.mjs +223 -432
  103. package/fesm2022/ids-group-ltd-ids-design-system-components-table.mjs.map +1 -1
  104. package/fesm2022/ids-group-ltd-ids-design-system-components-tabs.mjs +2 -2
  105. package/fesm2022/ids-group-ltd-ids-design-system-components-tabs.mjs.map +1 -1
  106. package/fesm2022/ids-group-ltd-ids-design-system-components-tag.mjs +2 -2
  107. package/fesm2022/ids-group-ltd-ids-design-system-components-tag.mjs.map +1 -1
  108. package/fesm2022/ids-group-ltd-ids-design-system-components-textarea.mjs +2 -2
  109. package/fesm2022/ids-group-ltd-ids-design-system-components-textarea.mjs.map +1 -1
  110. package/fesm2022/ids-group-ltd-ids-design-system-components-time-picker.mjs +4 -4
  111. package/fesm2022/ids-group-ltd-ids-design-system-components-time-picker.mjs.map +1 -1
  112. package/fesm2022/ids-group-ltd-ids-design-system-components-timeline.mjs +2 -2
  113. package/fesm2022/ids-group-ltd-ids-design-system-components-timeline.mjs.map +1 -1
  114. package/fesm2022/ids-group-ltd-ids-design-system-components-toast.mjs +9 -7
  115. package/fesm2022/ids-group-ltd-ids-design-system-components-toast.mjs.map +1 -1
  116. package/fesm2022/ids-group-ltd-ids-design-system-components-toggle-button.mjs +2 -2
  117. package/fesm2022/ids-group-ltd-ids-design-system-components-toggle-button.mjs.map +1 -1
  118. package/fesm2022/ids-group-ltd-ids-design-system-components-tree.mjs +2 -2
  119. package/fesm2022/ids-group-ltd-ids-design-system-components-tree.mjs.map +1 -1
  120. package/fesm2022/ids-group-ltd-ids-design-system-components-w3w.mjs +2 -2
  121. package/fesm2022/ids-group-ltd-ids-design-system-components-w3w.mjs.map +1 -1
  122. package/fesm2022/ids-group-ltd-ids-design-system-core.mjs +12 -4
  123. package/fesm2022/ids-group-ltd-ids-design-system-core.mjs.map +1 -1
  124. package/fesm2022/ids-group-ltd-ids-design-system-icons.mjs +2 -38
  125. package/fesm2022/ids-group-ltd-ids-design-system-icons.mjs.map +1 -1
  126. package/fesm2022/ids-group-ltd-ids-design-system.mjs +3 -0
  127. package/fesm2022/ids-group-ltd-ids-design-system.mjs.map +1 -1
  128. package/migrations/0.10.0.json +1 -1
  129. package/migrations/0.10.1.json +1 -1
  130. package/migrations/0.10.2.json +1 -30
  131. package/migrations/0.11.1.json +0 -23
  132. package/migrations/0.11.3.json +1 -1
  133. package/migrations/0.11.4.json +27 -7
  134. package/migrations/0.12.1.json +215 -0
  135. package/migrations/0.5.0.json +0 -54
  136. package/migrations/0.5.1.json +3 -1
  137. package/migrations/0.7.0.json +0 -11
  138. package/migrations/0.9.0.json +22 -3
  139. package/migrations/0.9.1.json +1 -1
  140. package/package.json +25 -1
  141. package/styles/_check-box.scss +84 -0
  142. package/styles/_check-mark.scss +59 -0
  143. package/styles/_dropdown-overlay.scss +12 -2
  144. package/styles/_field-group-segment.scss +4 -1
  145. package/styles/_focus.scss +103 -50
  146. package/styles/_link.scss +4 -2
  147. package/styles/_tokens.scss +20 -0
  148. package/styles/_typography.scss +6 -0
  149. package/themes/_semantic.scss +7 -8
  150. package/types/ids-group-ltd-ids-design-system-components-menu.d.ts +3 -0
  151. package/types/ids-group-ltd-ids-design-system-components-radio-group.d.ts +8 -4
  152. package/types/ids-group-ltd-ids-design-system-components-split-button.d.ts +3 -2
  153. package/types/ids-group-ltd-ids-design-system-components-table-columns.d.ts +43 -0
  154. package/types/ids-group-ltd-ids-design-system-components-table-export.d.ts +48 -0
  155. package/types/ids-group-ltd-ids-design-system-components-table-resize.d.ts +79 -0
  156. package/types/ids-group-ltd-ids-design-system-components-table.d.ts +179 -155
  157. package/types/ids-group-ltd-ids-design-system-core.d.ts +12 -4
  158. package/types/ids-group-ltd-ids-design-system.d.ts +3 -0
@@ -32,7 +32,7 @@ class ListItemComponent {
32
32
  /** Fires when the clickable row's button is activated. */
33
33
  activated = output();
34
34
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: ListItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
35
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: ListItemComponent, isStandalone: true, selector: "ds-list-item", inputs: { title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, subtitle: { classPropertyName: "subtitle", publicName: "subtitle", isSignal: true, isRequired: false, transformFunction: null }, clickable: { classPropertyName: "clickable", publicName: "clickable", isSignal: true, isRequired: false, transformFunction: null }, selected: { classPropertyName: "selected", publicName: "selected", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { activated: "activated" }, host: { attributes: { "role": "listitem" }, properties: { "attr.aria-current": "selected() ? 'true' : null", "class.clickable": "clickable()", "class.selected": "selected()", "class.disabled": "disabled()" } }, ngImport: i0, template: "<span class=\"leading\">\n <ng-content select=\"[leading]\"></ng-content>\n</span>\n\n<!-- `[leading]` and `[trailing]` are siblings of the activator, never inside it: a\n row that carries its own control (a checkbox, a kebab) alongside a row-level\n action cannot nest that control in a <button> \u2014 invalid, and its click would\n bubble into `activated`. Legal here because `role=\"listitem\"` places no\n restriction on interactive descendants, unlike `role=\"option\"`. -->\n@if (clickable()) {\n <button\n type=\"button\"\n class=\"activator\"\n [disabled]=\"disabled()\"\n (click)=\"activated.emit()\"\n >\n <ng-container [ngTemplateOutlet]=\"body\"></ng-container>\n </button>\n} @else {\n <ng-container [ngTemplateOutlet]=\"body\"></ng-container>\n}\n\n<span class=\"trailing\">\n <ng-content select=\"[trailing]\"></ng-content>\n</span>\n\n<ng-template #body>\n <span class=\"body\">\n @if (title()) {\n <span class=\"title\">\n {{ title() }}\n </span>\n }\n\n @if (subtitle()) {\n <span class=\"subtitle\">\n {{ subtitle() }}\n </span>\n }\n\n <ng-content></ng-content>\n </span>\n</ng-template>\n", styles: [":where(:focus-visible){outline:none;box-shadow:var(--ds-control-focus-shadow)}:root[data-focus=ring]{--ds-field-focus-shadow: var(--focus-ring);--ds-field-focus-shadow-error: var(--focus-ring-error)}:root[data-focus=field]{--ds-control-focus-shadow: var(--focus-field);--ds-control-focus-shadow-error: var(--focus-field-error)}:root[data-focus=edge]{--ds-field-focus-shadow: 0 0 0 var(--border-width-default) var(--primary);--ds-field-focus-shadow-error: 0 0 0 var(--border-width-default) var(--error);--ds-control-focus-shadow: 0 0 0 var(--border-width-default) var(--primary);--ds-control-focus-shadow-error: 0 0 0 var(--border-width-default) var(--error)}[data-focus=inset]{--ds-field-focus-shadow: var(--focus-ring-inset);--ds-field-focus-shadow-error: var(--focus-ring-inset-error);--ds-control-focus-shadow: var(--focus-ring-inset);--ds-control-focus-shadow-error: var(--focus-ring-inset-error)}:root[data-focus=outline]{--ds-field-focus-shadow: none;--ds-field-focus-shadow-error: none;--ds-control-focus-shadow: none;--ds-control-focus-shadow-error: none}:root[data-focus=outline] :where(:focus-visible){outline:var(--border-width-strong) solid var(--primary);outline-offset:var(--focus-ring-offset)}@media(forced-colors:active){:where(:focus-visible){outline:var(--border-width-strong) solid CanvasText;outline-offset:var(--focus-ring-offset)}}:host{--_list-item-pad-y: var(--ds-list-item-pad-y, var(--list-item-pad-y));--_list-item-pad-x: var(--ds-list-item-pad-x, var(--list-item-pad-x));--_list-item-gap: var(--ds-list-item-gap, var(--list-item-gap));--_list-item-hover-bg-color: var(--ds-list-item-hover-bg-color, var(--surface-secondary));--_list-item-selected-bg-color: var(--ds-list-item-selected-bg-color, var(--accent-surface-tint));--_list-item-selected-label-color: var(--ds-list-item-selected-label-color, var(--accent-strong));--_list-item-selected-icon-color: var(--ds-list-item-selected-icon-color, var(--_list-item-selected-label-color));--_list-item-label-color: var(--ds-list-item-label-color, var(--text-primary));--_list-item-subtitle-color: var(--ds-list-item-subtitle-color, var(--text-tertiary));display:flex;align-items:center;gap:var(--_list-item-gap);padding:var(--_list-item-pad-y) var(--_list-item-pad-x);transition:background-color var(--duration-fast) var(--ease-standard)}.activator{display:flex;align-items:center;flex:1;min-width:0;padding:0;border:0;background:transparent;color:var(--text-primary);font:inherit;text-align:left}button.activator{cursor:pointer}button.activator:focus-visible{outline:var(--border-width-strong) solid var(--focus-ring-color);outline-offset:calc(-1 * var(--border-width-strong));box-shadow:none}button.activator:disabled{cursor:not-allowed}:host(:has(button.activator:hover)){background-color:var(--_list-item-hover-bg-color)}:host(:has(button.activator:active:not(:disabled))){background-color:var(--surface-muted)}.leading,.trailing{display:inline-flex;align-items:center;flex:none}.leading:empty,.trailing:empty{display:none}.trailing{color:var(--text-tertiary)}.body{display:flex;flex-direction:column;gap:var(--space-px);flex:1;min-width:0}.title{color:var(--_list-item-label-color);font:var(--font-weight-semibold) var(--font-size-s)/var(--line-height-base) var(--font-sans)}.subtitle{color:var(--_list-item-subtitle-color);font:var(--font-weight-regular) var(--font-size-xs)/var(--line-height-base) var(--font-sans)}:host(.selected){background-color:var(--_list-item-selected-bg-color)}:host(.selected) .title{color:var(--_list-item-selected-label-color)}:host(.selected) .leading{color:var(--_list-item-selected-icon-color)}:host(.disabled) .title,:host(.disabled) .subtitle,:host(.disabled) .trailing{color:var(--text-disabled)}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
35
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: ListItemComponent, isStandalone: true, selector: "ds-list-item", inputs: { title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, subtitle: { classPropertyName: "subtitle", publicName: "subtitle", isSignal: true, isRequired: false, transformFunction: null }, clickable: { classPropertyName: "clickable", publicName: "clickable", isSignal: true, isRequired: false, transformFunction: null }, selected: { classPropertyName: "selected", publicName: "selected", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { activated: "activated" }, host: { attributes: { "role": "listitem" }, properties: { "attr.aria-current": "selected() ? 'true' : null", "class.clickable": "clickable()", "class.selected": "selected()", "class.disabled": "disabled()" } }, ngImport: i0, template: "<span class=\"leading\">\n <ng-content select=\"[leading]\"></ng-content>\n</span>\n\n<!-- `[leading]` and `[trailing]` are siblings of the activator, never inside it: a\n row that carries its own control (a checkbox, a kebab) alongside a row-level\n action cannot nest that control in a <button> \u2014 invalid, and its click would\n bubble into `activated`. Legal here because `role=\"listitem\"` places no\n restriction on interactive descendants, unlike `role=\"option\"`. -->\n@if (clickable()) {\n <button\n type=\"button\"\n class=\"activator\"\n [disabled]=\"disabled()\"\n (click)=\"activated.emit()\">\n <ng-container [ngTemplateOutlet]=\"body\"></ng-container>\n </button>\n} @else {\n <ng-container [ngTemplateOutlet]=\"body\"></ng-container>\n}\n\n<span class=\"trailing\">\n <ng-content select=\"[trailing]\"></ng-content>\n</span>\n\n<ng-template #body>\n <span class=\"body\">\n @if (title()) {\n <span class=\"title\">\n {{ title() }}\n </span>\n }\n\n @if (subtitle()) {\n <span class=\"subtitle\">\n {{ subtitle() }}\n </span>\n }\n\n <ng-content></ng-content>\n </span>\n</ng-template>\n", styles: [":where(:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}@keyframes ds-focus-ring-in{0%{outline-color:transparent}}:root[data-focus=ring]{--ds-field-focus-shadow: var(--focus-ring);--ds-field-focus-shadow-error: var(--focus-ring-error)}:root[data-focus=edge]{--focus-ring-offset: 0px;--ds-field-focus-shadow: 0 0 0 var(--border-width-default) var(--primary);--ds-field-focus-shadow-error: 0 0 0 var(--border-width-default) var(--error)}[data-focus=inset]{--focus-ring-offset: calc(-1 * var(--focus-ring-width));--ds-field-focus-shadow: var(--focus-ring-inset);--ds-field-focus-shadow-error: var(--focus-ring-inset-error)}@media(forced-colors:active){:where(:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}:host{--_list-item-pad-y: var(--ds-list-item-pad-y, var(--list-item-pad-y));--_list-item-pad-x: var(--ds-list-item-pad-x, var(--list-item-pad-x));--_list-item-gap: var(--ds-list-item-gap, var(--list-item-gap));--_list-item-hover-bg-color: var(--ds-list-item-hover-bg-color, var(--surface-secondary));--_list-item-selected-bg-color: var(--ds-list-item-selected-bg-color, var(--accent-surface-tint));--_list-item-selected-label-color: var(--ds-list-item-selected-label-color, var(--accent-strong));--_list-item-selected-icon-color: var(--ds-list-item-selected-icon-color, var(--_list-item-selected-label-color));--_list-item-label-color: var(--ds-list-item-label-color, var(--text-primary));--_list-item-subtitle-color: var(--ds-list-item-subtitle-color, var(--text-tertiary));display:flex;align-items:center;gap:var(--_list-item-gap);padding:var(--_list-item-pad-y) var(--_list-item-pad-x);transition:background-color var(--duration-fast) var(--ease-standard)}.activator{display:flex;align-items:center;flex:1;min-width:0;padding:0;border:0;background:transparent;color:var(--text-primary);font:inherit;text-align:left}button.activator{cursor:pointer}button.activator:focus-visible{outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:calc(-1 * var(--focus-ring-width));animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}button.activator:disabled{cursor:not-allowed}:host(:has(button.activator:hover)){background-color:var(--_list-item-hover-bg-color)}:host(:has(button.activator:active:not(:disabled))){background-color:var(--surface-muted)}.leading,.trailing{display:inline-flex;align-items:center;flex:none}.leading:empty,.trailing:empty{display:none}.trailing{color:var(--text-tertiary)}.body{display:flex;flex-direction:column;gap:var(--space-px);flex:1;min-width:0}.title{color:var(--_list-item-label-color);font:var(--font-weight-semibold) var(--font-size-s)/var(--line-height-base) var(--font-sans)}.subtitle{color:var(--_list-item-subtitle-color);font:var(--font-weight-regular) var(--font-size-xs)/var(--line-height-base) var(--font-sans)}:host(.selected){background-color:var(--_list-item-selected-bg-color)}:host(.selected) .title{color:var(--_list-item-selected-label-color)}:host(.selected) .leading{color:var(--_list-item-selected-icon-color)}:host(.disabled) .title,:host(.disabled) .subtitle,:host(.disabled) .trailing{color:var(--text-disabled)}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
36
36
  }
37
37
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: ListItemComponent, decorators: [{
38
38
  type: Component,
@@ -42,7 +42,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImpo
42
42
  '[class.clickable]': 'clickable()',
43
43
  '[class.selected]': 'selected()',
44
44
  '[class.disabled]': 'disabled()',
45
- }, template: "<span class=\"leading\">\n <ng-content select=\"[leading]\"></ng-content>\n</span>\n\n<!-- `[leading]` and `[trailing]` are siblings of the activator, never inside it: a\n row that carries its own control (a checkbox, a kebab) alongside a row-level\n action cannot nest that control in a <button> \u2014 invalid, and its click would\n bubble into `activated`. Legal here because `role=\"listitem\"` places no\n restriction on interactive descendants, unlike `role=\"option\"`. -->\n@if (clickable()) {\n <button\n type=\"button\"\n class=\"activator\"\n [disabled]=\"disabled()\"\n (click)=\"activated.emit()\"\n >\n <ng-container [ngTemplateOutlet]=\"body\"></ng-container>\n </button>\n} @else {\n <ng-container [ngTemplateOutlet]=\"body\"></ng-container>\n}\n\n<span class=\"trailing\">\n <ng-content select=\"[trailing]\"></ng-content>\n</span>\n\n<ng-template #body>\n <span class=\"body\">\n @if (title()) {\n <span class=\"title\">\n {{ title() }}\n </span>\n }\n\n @if (subtitle()) {\n <span class=\"subtitle\">\n {{ subtitle() }}\n </span>\n }\n\n <ng-content></ng-content>\n </span>\n</ng-template>\n", styles: [":where(:focus-visible){outline:none;box-shadow:var(--ds-control-focus-shadow)}:root[data-focus=ring]{--ds-field-focus-shadow: var(--focus-ring);--ds-field-focus-shadow-error: var(--focus-ring-error)}:root[data-focus=field]{--ds-control-focus-shadow: var(--focus-field);--ds-control-focus-shadow-error: var(--focus-field-error)}:root[data-focus=edge]{--ds-field-focus-shadow: 0 0 0 var(--border-width-default) var(--primary);--ds-field-focus-shadow-error: 0 0 0 var(--border-width-default) var(--error);--ds-control-focus-shadow: 0 0 0 var(--border-width-default) var(--primary);--ds-control-focus-shadow-error: 0 0 0 var(--border-width-default) var(--error)}[data-focus=inset]{--ds-field-focus-shadow: var(--focus-ring-inset);--ds-field-focus-shadow-error: var(--focus-ring-inset-error);--ds-control-focus-shadow: var(--focus-ring-inset);--ds-control-focus-shadow-error: var(--focus-ring-inset-error)}:root[data-focus=outline]{--ds-field-focus-shadow: none;--ds-field-focus-shadow-error: none;--ds-control-focus-shadow: none;--ds-control-focus-shadow-error: none}:root[data-focus=outline] :where(:focus-visible){outline:var(--border-width-strong) solid var(--primary);outline-offset:var(--focus-ring-offset)}@media(forced-colors:active){:where(:focus-visible){outline:var(--border-width-strong) solid CanvasText;outline-offset:var(--focus-ring-offset)}}:host{--_list-item-pad-y: var(--ds-list-item-pad-y, var(--list-item-pad-y));--_list-item-pad-x: var(--ds-list-item-pad-x, var(--list-item-pad-x));--_list-item-gap: var(--ds-list-item-gap, var(--list-item-gap));--_list-item-hover-bg-color: var(--ds-list-item-hover-bg-color, var(--surface-secondary));--_list-item-selected-bg-color: var(--ds-list-item-selected-bg-color, var(--accent-surface-tint));--_list-item-selected-label-color: var(--ds-list-item-selected-label-color, var(--accent-strong));--_list-item-selected-icon-color: var(--ds-list-item-selected-icon-color, var(--_list-item-selected-label-color));--_list-item-label-color: var(--ds-list-item-label-color, var(--text-primary));--_list-item-subtitle-color: var(--ds-list-item-subtitle-color, var(--text-tertiary));display:flex;align-items:center;gap:var(--_list-item-gap);padding:var(--_list-item-pad-y) var(--_list-item-pad-x);transition:background-color var(--duration-fast) var(--ease-standard)}.activator{display:flex;align-items:center;flex:1;min-width:0;padding:0;border:0;background:transparent;color:var(--text-primary);font:inherit;text-align:left}button.activator{cursor:pointer}button.activator:focus-visible{outline:var(--border-width-strong) solid var(--focus-ring-color);outline-offset:calc(-1 * var(--border-width-strong));box-shadow:none}button.activator:disabled{cursor:not-allowed}:host(:has(button.activator:hover)){background-color:var(--_list-item-hover-bg-color)}:host(:has(button.activator:active:not(:disabled))){background-color:var(--surface-muted)}.leading,.trailing{display:inline-flex;align-items:center;flex:none}.leading:empty,.trailing:empty{display:none}.trailing{color:var(--text-tertiary)}.body{display:flex;flex-direction:column;gap:var(--space-px);flex:1;min-width:0}.title{color:var(--_list-item-label-color);font:var(--font-weight-semibold) var(--font-size-s)/var(--line-height-base) var(--font-sans)}.subtitle{color:var(--_list-item-subtitle-color);font:var(--font-weight-regular) var(--font-size-xs)/var(--line-height-base) var(--font-sans)}:host(.selected){background-color:var(--_list-item-selected-bg-color)}:host(.selected) .title{color:var(--_list-item-selected-label-color)}:host(.selected) .leading{color:var(--_list-item-selected-icon-color)}:host(.disabled) .title,:host(.disabled) .subtitle,:host(.disabled) .trailing{color:var(--text-disabled)}\n"] }]
45
+ }, template: "<span class=\"leading\">\n <ng-content select=\"[leading]\"></ng-content>\n</span>\n\n<!-- `[leading]` and `[trailing]` are siblings of the activator, never inside it: a\n row that carries its own control (a checkbox, a kebab) alongside a row-level\n action cannot nest that control in a <button> \u2014 invalid, and its click would\n bubble into `activated`. Legal here because `role=\"listitem\"` places no\n restriction on interactive descendants, unlike `role=\"option\"`. -->\n@if (clickable()) {\n <button\n type=\"button\"\n class=\"activator\"\n [disabled]=\"disabled()\"\n (click)=\"activated.emit()\">\n <ng-container [ngTemplateOutlet]=\"body\"></ng-container>\n </button>\n} @else {\n <ng-container [ngTemplateOutlet]=\"body\"></ng-container>\n}\n\n<span class=\"trailing\">\n <ng-content select=\"[trailing]\"></ng-content>\n</span>\n\n<ng-template #body>\n <span class=\"body\">\n @if (title()) {\n <span class=\"title\">\n {{ title() }}\n </span>\n }\n\n @if (subtitle()) {\n <span class=\"subtitle\">\n {{ subtitle() }}\n </span>\n }\n\n <ng-content></ng-content>\n </span>\n</ng-template>\n", styles: [":where(:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}@keyframes ds-focus-ring-in{0%{outline-color:transparent}}:root[data-focus=ring]{--ds-field-focus-shadow: var(--focus-ring);--ds-field-focus-shadow-error: var(--focus-ring-error)}:root[data-focus=edge]{--focus-ring-offset: 0px;--ds-field-focus-shadow: 0 0 0 var(--border-width-default) var(--primary);--ds-field-focus-shadow-error: 0 0 0 var(--border-width-default) var(--error)}[data-focus=inset]{--focus-ring-offset: calc(-1 * var(--focus-ring-width));--ds-field-focus-shadow: var(--focus-ring-inset);--ds-field-focus-shadow-error: var(--focus-ring-inset-error)}@media(forced-colors:active){:where(:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}:host{--_list-item-pad-y: var(--ds-list-item-pad-y, var(--list-item-pad-y));--_list-item-pad-x: var(--ds-list-item-pad-x, var(--list-item-pad-x));--_list-item-gap: var(--ds-list-item-gap, var(--list-item-gap));--_list-item-hover-bg-color: var(--ds-list-item-hover-bg-color, var(--surface-secondary));--_list-item-selected-bg-color: var(--ds-list-item-selected-bg-color, var(--accent-surface-tint));--_list-item-selected-label-color: var(--ds-list-item-selected-label-color, var(--accent-strong));--_list-item-selected-icon-color: var(--ds-list-item-selected-icon-color, var(--_list-item-selected-label-color));--_list-item-label-color: var(--ds-list-item-label-color, var(--text-primary));--_list-item-subtitle-color: var(--ds-list-item-subtitle-color, var(--text-tertiary));display:flex;align-items:center;gap:var(--_list-item-gap);padding:var(--_list-item-pad-y) var(--_list-item-pad-x);transition:background-color var(--duration-fast) var(--ease-standard)}.activator{display:flex;align-items:center;flex:1;min-width:0;padding:0;border:0;background:transparent;color:var(--text-primary);font:inherit;text-align:left}button.activator{cursor:pointer}button.activator:focus-visible{outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:calc(-1 * var(--focus-ring-width));animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}button.activator:disabled{cursor:not-allowed}:host(:has(button.activator:hover)){background-color:var(--_list-item-hover-bg-color)}:host(:has(button.activator:active:not(:disabled))){background-color:var(--surface-muted)}.leading,.trailing{display:inline-flex;align-items:center;flex:none}.leading:empty,.trailing:empty{display:none}.trailing{color:var(--text-tertiary)}.body{display:flex;flex-direction:column;gap:var(--space-px);flex:1;min-width:0}.title{color:var(--_list-item-label-color);font:var(--font-weight-semibold) var(--font-size-s)/var(--line-height-base) var(--font-sans)}.subtitle{color:var(--_list-item-subtitle-color);font:var(--font-weight-regular) var(--font-size-xs)/var(--line-height-base) var(--font-sans)}:host(.selected){background-color:var(--_list-item-selected-bg-color)}:host(.selected) .title{color:var(--_list-item-selected-label-color)}:host(.selected) .leading{color:var(--_list-item-selected-icon-color)}:host(.disabled) .title,:host(.disabled) .subtitle,:host(.disabled) .trailing{color:var(--text-disabled)}\n"] }]
46
46
  }], propDecorators: { title: [{ type: i0.Input, args: [{ isSignal: true, alias: "title", required: false }] }], subtitle: [{ type: i0.Input, args: [{ isSignal: true, alias: "subtitle", required: false }] }], clickable: [{ type: i0.Input, args: [{ isSignal: true, alias: "clickable", required: false }] }], selected: [{ type: i0.Input, args: [{ isSignal: true, alias: "selected", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], activated: [{ type: i0.Output, args: ["activated"] }] } });
47
47
 
48
48
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"ids-group-ltd-ids-design-system-components-list.mjs","sources":["../../../src/lib/components/list/list.component.ts","../../../src/lib/components/list/list-item.component.ts","../../../src/lib/components/list/list-item.component.html","../../../src/lib/components/list/ids-group-ltd-ids-design-system-components-list.ts"],"sourcesContent":["import {\n Component,\n ViewEncapsulation,\n booleanAttribute,\n input,\n} from '@angular/core';\n\n@Component({\n selector: 'ds-list',\n standalone: true,\n template: '<ng-content></ng-content>',\n styleUrl: './list.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n host: {\n role: 'list',\n '[class.dividers]': 'dividers()',\n },\n})\nexport class ListComponent {\n /** Draw a hairline separator between adjacent items. */\n readonly dividers = input(true, { transform: booleanAttribute });\n}\n","import {\n Component,\n ViewEncapsulation,\n booleanAttribute,\n input,\n output,\n} from '@angular/core';\nimport { NgTemplateOutlet } from '@angular/common';\n\n@Component({\n selector: 'ds-list-item',\n standalone: true,\n imports: [NgTemplateOutlet],\n templateUrl: './list-item.component.html',\n styleUrl: './list-item.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n host: {\n role: 'listitem',\n '[attr.aria-current]': \"selected() ? 'true' : null\",\n '[class.clickable]': 'clickable()',\n '[class.selected]': 'selected()',\n '[class.disabled]': 'disabled()',\n },\n})\nexport class ListItemComponent {\n /** Convenience text; richer middle content can be projected as default content. */\n readonly title = input<string>('');\n /** Secondary line below `title`. */\n readonly subtitle = input<string>('');\n /** Makes the row's text a button that emits `activated`. `[leading]` and\n * `[trailing]` stay outside it, so a row can hold its own controls as well. */\n readonly clickable = input(false, { transform: booleanAttribute });\n /** Marks the row current — `aria-current` and the selected tint. */\n readonly selected = input(false, { transform: booleanAttribute });\n /** Disables the row's own button. Controls projected into `[leading]` or\n * `[trailing]` keep their own disabled state. */\n readonly disabled = input(false, { transform: booleanAttribute });\n /** Fires when the clickable row's button is activated. */\n readonly activated = output<void>();\n}\n","<span class=\"leading\">\n <ng-content select=\"[leading]\"></ng-content>\n</span>\n\n<!-- `[leading]` and `[trailing]` are siblings of the activator, never inside it: a\n row that carries its own control (a checkbox, a kebab) alongside a row-level\n action cannot nest that control in a <button> — invalid, and its click would\n bubble into `activated`. Legal here because `role=\"listitem\"` places no\n restriction on interactive descendants, unlike `role=\"option\"`. -->\n@if (clickable()) {\n <button\n type=\"button\"\n class=\"activator\"\n [disabled]=\"disabled()\"\n (click)=\"activated.emit()\"\n >\n <ng-container [ngTemplateOutlet]=\"body\"></ng-container>\n </button>\n} @else {\n <ng-container [ngTemplateOutlet]=\"body\"></ng-container>\n}\n\n<span class=\"trailing\">\n <ng-content select=\"[trailing]\"></ng-content>\n</span>\n\n<ng-template #body>\n <span class=\"body\">\n @if (title()) {\n <span class=\"title\">\n {{ title() }}\n </span>\n }\n\n @if (subtitle()) {\n <span class=\"subtitle\">\n {{ subtitle() }}\n </span>\n }\n\n <ng-content></ng-content>\n </span>\n</ng-template>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;MAkBa,aAAa,CAAA;;IAEf,QAAQ,GAAG,KAAK,CAAC,IAAI,gFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;wGAFrD,aAAa,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAAb,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,aAAa,0SARd,2BAA2B,EAAA,QAAA,EAAA,IAAA,EAAA,MAAA,EAAA,CAAA,qQAAA,CAAA,EAAA,CAAA;;4FAQ1B,aAAa,EAAA,UAAA,EAAA,CAAA;kBAXzB,SAAS;+BACE,SAAS,EAAA,UAAA,EACP,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AA,MAAA,EAAA,CAAA,koHAAA,CAAA,EAAA;;;AEtBH;;AAEG;;;;"}
1
+ {"version":3,"file":"ids-group-ltd-ids-design-system-components-list.mjs","sources":["../../../src/lib/components/list/list.component.ts","../../../src/lib/components/list/list-item.component.ts","../../../src/lib/components/list/list-item.component.html","../../../src/lib/components/list/ids-group-ltd-ids-design-system-components-list.ts"],"sourcesContent":["import {\n Component,\n ViewEncapsulation,\n booleanAttribute,\n input,\n} from '@angular/core';\n\n@Component({\n selector: 'ds-list',\n standalone: true,\n template: '<ng-content></ng-content>',\n styleUrl: './list.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n host: {\n role: 'list',\n '[class.dividers]': 'dividers()',\n },\n})\nexport class ListComponent {\n /** Draw a hairline separator between adjacent items. */\n readonly dividers = input(true, { transform: booleanAttribute });\n}\n","import {\n Component,\n ViewEncapsulation,\n booleanAttribute,\n input,\n output,\n} from '@angular/core';\nimport { NgTemplateOutlet } from '@angular/common';\n\n@Component({\n selector: 'ds-list-item',\n standalone: true,\n imports: [NgTemplateOutlet],\n templateUrl: './list-item.component.html',\n styleUrl: './list-item.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n host: {\n role: 'listitem',\n '[attr.aria-current]': \"selected() ? 'true' : null\",\n '[class.clickable]': 'clickable()',\n '[class.selected]': 'selected()',\n '[class.disabled]': 'disabled()',\n },\n})\nexport class ListItemComponent {\n /** Convenience text; richer middle content can be projected as default content. */\n readonly title = input<string>('');\n /** Secondary line below `title`. */\n readonly subtitle = input<string>('');\n /** Makes the row's text a button that emits `activated`. `[leading]` and\n * `[trailing]` stay outside it, so a row can hold its own controls as well. */\n readonly clickable = input(false, { transform: booleanAttribute });\n /** Marks the row current — `aria-current` and the selected tint. */\n readonly selected = input(false, { transform: booleanAttribute });\n /** Disables the row's own button. Controls projected into `[leading]` or\n * `[trailing]` keep their own disabled state. */\n readonly disabled = input(false, { transform: booleanAttribute });\n /** Fires when the clickable row's button is activated. */\n readonly activated = output<void>();\n}\n","<span class=\"leading\">\n <ng-content select=\"[leading]\"></ng-content>\n</span>\n\n<!-- `[leading]` and `[trailing]` are siblings of the activator, never inside it: a\n row that carries its own control (a checkbox, a kebab) alongside a row-level\n action cannot nest that control in a <button> — invalid, and its click would\n bubble into `activated`. Legal here because `role=\"listitem\"` places no\n restriction on interactive descendants, unlike `role=\"option\"`. -->\n@if (clickable()) {\n <button\n type=\"button\"\n class=\"activator\"\n [disabled]=\"disabled()\"\n (click)=\"activated.emit()\">\n <ng-container [ngTemplateOutlet]=\"body\"></ng-container>\n </button>\n} @else {\n <ng-container [ngTemplateOutlet]=\"body\"></ng-container>\n}\n\n<span class=\"trailing\">\n <ng-content select=\"[trailing]\"></ng-content>\n</span>\n\n<ng-template #body>\n <span class=\"body\">\n @if (title()) {\n <span class=\"title\">\n {{ title() }}\n </span>\n }\n\n @if (subtitle()) {\n <span class=\"subtitle\">\n {{ subtitle() }}\n </span>\n }\n\n <ng-content></ng-content>\n </span>\n</ng-template>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;MAkBa,aAAa,CAAA;;IAEf,QAAQ,GAAG,KAAK,CAAC,IAAI,gFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;wGAFrD,aAAa,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAAb,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,aAAa,0SARd,2BAA2B,EAAA,QAAA,EAAA,IAAA,EAAA,MAAA,EAAA,CAAA,qQAAA,CAAA,EAAA,CAAA;;4FAQ1B,aAAa,EAAA,UAAA,EAAA,CAAA;kBAXzB,SAAS;+BACE,SAAS,EAAA,UAAA,EACP,IAAI,EAAA,QAAA,EACN,2BAA2B,iBAEtB,iBAAiB,CAAC,Q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;AAEG;;;;"}
@@ -26,13 +26,13 @@ class LoadingOverlayComponent {
26
26
  */
27
27
  inertContent = input(true, { ...(ngDevMode ? { debugName: "inertContent" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
28
28
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: LoadingOverlayComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
29
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: LoadingOverlayComponent, isStandalone: true, selector: "ds-loading-overlay", inputs: { loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, blur: { classPropertyName: "blur", publicName: "blur", isSignal: true, isRequired: false, transformFunction: null }, spinnerSize: { classPropertyName: "spinnerSize", publicName: "spinnerSize", isSignal: true, isRequired: false, transformFunction: null }, insetTop: { classPropertyName: "insetTop", publicName: "insetTop", isSignal: true, isRequired: false, transformFunction: null }, inertContent: { classPropertyName: "inertContent", publicName: "inertContent", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "attr.aria-busy": "loading() ? \"true\" : null" } }, ngImport: i0, template: "<div\n class=\"content\"\n [attr.inert]=\"loading() && inertContent() ? '' : null\"\n>\n <ng-content></ng-content>\n</div>\n\n@if (loading()) {\n <div\n class=\"scrim\"\n [class.blur]=\"blur()\"\n [style.top]=\"insetTop()\"\n >\n <ds-spinner [size]=\"spinnerSize()\" />\n\n @if (label()) {\n <span class=\"label\">\n {{ label() }}\n </span>\n }\n </div>\n}\n", styles: ["@charset \"UTF-8\";:host{display:block;position:relative;--_scrim-color: var(--ds-loading-overlay-scrim-color, color-mix( in srgb, var(--surface-canvas) calc(var(--opacity-scrim) * 100%), transparent ));--_label-color: var(--ds-loading-overlay-label-color, var(--text-secondary));--_enter-keyframes: var(--ds-loading-overlay-enter-keyframes, ds-fade-in);--_enter-duration: var(--ds-loading-overlay-enter-duration, var(--duration-fast));--_enter-easing: var(--ds-loading-overlay-enter-easing, var(--ease-standard));--_ds-enter-scale: var(--ds-loading-overlay-enter-scale, .96)}@media(prefers-reduced-motion:reduce){:host{--_enter-duration: 0ms}}.content{display:contents}.scrim{position:absolute;inset:0;z-index:var(--layer-raised);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--space-3);background-color:var(--_scrim-color);animation-name:var(--_enter-keyframes);animation-duration:var(--_enter-duration);animation-timing-function:var(--_enter-easing)}.scrim.blur{-webkit-backdrop-filter:blur(var(--blur-sm));backdrop-filter:blur(var(--blur-sm))}.label{color:var(--_label-color);font:var(--font-weight-medium) var(--font-size-s)/var(--line-height-base) var(--font-sans)}\n"], dependencies: [{ kind: "component", type: SpinnerComponent, selector: "ds-spinner", inputs: ["size"] }] });
29
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: LoadingOverlayComponent, isStandalone: true, selector: "ds-loading-overlay", inputs: { loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, blur: { classPropertyName: "blur", publicName: "blur", isSignal: true, isRequired: false, transformFunction: null }, spinnerSize: { classPropertyName: "spinnerSize", publicName: "spinnerSize", isSignal: true, isRequired: false, transformFunction: null }, insetTop: { classPropertyName: "insetTop", publicName: "insetTop", isSignal: true, isRequired: false, transformFunction: null }, inertContent: { classPropertyName: "inertContent", publicName: "inertContent", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "attr.aria-busy": "loading() ? \"true\" : null" } }, ngImport: i0, template: "<div\n class=\"content\"\n [attr.inert]=\"loading() && inertContent() ? '' : null\">\n <ng-content></ng-content>\n</div>\n\n@if (loading()) {\n <div\n class=\"scrim\"\n [class.blur]=\"blur()\"\n [style.top]=\"insetTop()\">\n <ds-spinner [size]=\"spinnerSize()\" />\n\n @if (label()) {\n <span class=\"label\">\n {{ label() }}\n </span>\n }\n </div>\n}\n", styles: ["@charset \"UTF-8\";:host{display:block;position:relative;--_scrim-color: var(--ds-loading-overlay-scrim-color, color-mix( in srgb, var(--surface-canvas) calc(var(--opacity-scrim) * 100%), transparent ));--_label-color: var(--ds-loading-overlay-label-color, var(--text-secondary));--_enter-keyframes: var(--ds-loading-overlay-enter-keyframes, ds-fade-in);--_enter-duration: var(--ds-loading-overlay-enter-duration, var(--duration-fast));--_enter-easing: var(--ds-loading-overlay-enter-easing, var(--ease-standard));--_ds-enter-scale: var(--ds-loading-overlay-enter-scale, .96)}@media(prefers-reduced-motion:reduce){:host{--_enter-duration: 0ms}}.content{display:contents}.scrim{position:absolute;inset:0;z-index:var(--layer-raised);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--space-3);background-color:var(--_scrim-color);animation-name:var(--_enter-keyframes);animation-duration:var(--_enter-duration);animation-timing-function:var(--_enter-easing)}.scrim.blur{-webkit-backdrop-filter:blur(var(--blur-sm));backdrop-filter:blur(var(--blur-sm))}.label{color:var(--_label-color);font:var(--font-weight-medium) var(--font-size-s)/var(--line-height-base) var(--font-sans)}\n"], dependencies: [{ kind: "component", type: SpinnerComponent, selector: "ds-spinner", inputs: ["size"] }] });
30
30
  }
31
31
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: LoadingOverlayComponent, decorators: [{
32
32
  type: Component,
33
33
  args: [{ selector: 'ds-loading-overlay', standalone: true, imports: [SpinnerComponent], encapsulation: ViewEncapsulation.Emulated, host: {
34
34
  '[attr.aria-busy]': 'loading() ? "true" : null',
35
- }, template: "<div\n class=\"content\"\n [attr.inert]=\"loading() && inertContent() ? '' : null\"\n>\n <ng-content></ng-content>\n</div>\n\n@if (loading()) {\n <div\n class=\"scrim\"\n [class.blur]=\"blur()\"\n [style.top]=\"insetTop()\"\n >\n <ds-spinner [size]=\"spinnerSize()\" />\n\n @if (label()) {\n <span class=\"label\">\n {{ label() }}\n </span>\n }\n </div>\n}\n", styles: ["@charset \"UTF-8\";:host{display:block;position:relative;--_scrim-color: var(--ds-loading-overlay-scrim-color, color-mix( in srgb, var(--surface-canvas) calc(var(--opacity-scrim) * 100%), transparent ));--_label-color: var(--ds-loading-overlay-label-color, var(--text-secondary));--_enter-keyframes: var(--ds-loading-overlay-enter-keyframes, ds-fade-in);--_enter-duration: var(--ds-loading-overlay-enter-duration, var(--duration-fast));--_enter-easing: var(--ds-loading-overlay-enter-easing, var(--ease-standard));--_ds-enter-scale: var(--ds-loading-overlay-enter-scale, .96)}@media(prefers-reduced-motion:reduce){:host{--_enter-duration: 0ms}}.content{display:contents}.scrim{position:absolute;inset:0;z-index:var(--layer-raised);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--space-3);background-color:var(--_scrim-color);animation-name:var(--_enter-keyframes);animation-duration:var(--_enter-duration);animation-timing-function:var(--_enter-easing)}.scrim.blur{-webkit-backdrop-filter:blur(var(--blur-sm));backdrop-filter:blur(var(--blur-sm))}.label{color:var(--_label-color);font:var(--font-weight-medium) var(--font-size-s)/var(--line-height-base) var(--font-sans)}\n"] }]
35
+ }, template: "<div\n class=\"content\"\n [attr.inert]=\"loading() && inertContent() ? '' : null\">\n <ng-content></ng-content>\n</div>\n\n@if (loading()) {\n <div\n class=\"scrim\"\n [class.blur]=\"blur()\"\n [style.top]=\"insetTop()\">\n <ds-spinner [size]=\"spinnerSize()\" />\n\n @if (label()) {\n <span class=\"label\">\n {{ label() }}\n </span>\n }\n </div>\n}\n", styles: ["@charset \"UTF-8\";:host{display:block;position:relative;--_scrim-color: var(--ds-loading-overlay-scrim-color, color-mix( in srgb, var(--surface-canvas) calc(var(--opacity-scrim) * 100%), transparent ));--_label-color: var(--ds-loading-overlay-label-color, var(--text-secondary));--_enter-keyframes: var(--ds-loading-overlay-enter-keyframes, ds-fade-in);--_enter-duration: var(--ds-loading-overlay-enter-duration, var(--duration-fast));--_enter-easing: var(--ds-loading-overlay-enter-easing, var(--ease-standard));--_ds-enter-scale: var(--ds-loading-overlay-enter-scale, .96)}@media(prefers-reduced-motion:reduce){:host{--_enter-duration: 0ms}}.content{display:contents}.scrim{position:absolute;inset:0;z-index:var(--layer-raised);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--space-3);background-color:var(--_scrim-color);animation-name:var(--_enter-keyframes);animation-duration:var(--_enter-duration);animation-timing-function:var(--_enter-easing)}.scrim.blur{-webkit-backdrop-filter:blur(var(--blur-sm));backdrop-filter:blur(var(--blur-sm))}.label{color:var(--_label-color);font:var(--font-weight-medium) var(--font-size-s)/var(--line-height-base) var(--font-sans)}\n"] }]
36
36
  }], propDecorators: { loading: [{ type: i0.Input, args: [{ isSignal: true, alias: "loading", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], blur: [{ type: i0.Input, args: [{ isSignal: true, alias: "blur", required: false }] }], spinnerSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "spinnerSize", required: false }] }], insetTop: [{ type: i0.Input, args: [{ isSignal: true, alias: "insetTop", required: false }] }], inertContent: [{ type: i0.Input, args: [{ isSignal: true, alias: "inertContent", required: false }] }] } });
37
37
 
38
38
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"ids-group-ltd-ids-design-system-components-loading-overlay.mjs","sources":["../../../src/lib/components/loading-overlay/loading-overlay.component.ts","../../../src/lib/components/loading-overlay/loading-overlay.component.html","../../../src/lib/components/loading-overlay/ids-group-ltd-ids-design-system-components-loading-overlay.ts"],"sourcesContent":["import {\n Component,\n ViewEncapsulation,\n booleanAttribute,\n input,\n} from '@angular/core';\nimport { SpinnerComponent } from '@ids-group-ltd/ids-design-system/components/spinner';\nimport type { DsSize } from '@ids-group-ltd/ids-design-system/core';\n\n@Component({\n selector: 'ds-loading-overlay',\n standalone: true,\n imports: [SpinnerComponent],\n templateUrl: './loading-overlay.component.html',\n styleUrl: './loading-overlay.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n host: {\n '[attr.aria-busy]': 'loading() ? \"true\" : null',\n },\n})\nexport class LoadingOverlayComponent {\n /** Show the scrim + spinner over the projected region. */\n readonly loading = input(false, { transform: booleanAttribute });\n /** Optional caption beneath the spinner. */\n readonly label = input<string>('');\n /** Backdrop-blur the projected content behind the scrim. */\n readonly blur = input(true, { transform: booleanAttribute });\n /** Size of the spinner shown in the scrim. */\n readonly spinnerSize = input<DsSize>('md');\n /** Offset the scrim top edge — useful when a sticky header should stay uncovered. */\n readonly insetTop = input<string>('0');\n\n /**\n * Whether the projected content goes `inert` while the scrim is up. On by\n * default, because a scrim that only stops the POINTER is the bug this exists\n * to prevent: focus walks straight under it, and a keyboard user activates a\n * control the mouse cannot even reach.\n *\n * Turn it off only when the scrim covers part of the content (`insetTop`), and\n * then mark the covered subtree `inert` yourself — a blanket flag would take\n * the uncovered part with it. `ds-table` does exactly that: the scrim starts\n * below the header, so sorting during a refresh stays possible.\n */\n readonly inertContent = input(true, { transform: booleanAttribute });\n}\n","<div\n class=\"content\"\n [attr.inert]=\"loading() && inertContent() ? '' : null\"\n>\n <ng-content></ng-content>\n</div>\n\n@if (loading()) {\n <div\n class=\"scrim\"\n [class.blur]=\"blur()\"\n [style.top]=\"insetTop()\"\n >\n <ds-spinner [size]=\"spinnerSize()\" />\n\n @if (label()) {\n <span class=\"label\">\n {{ label() }}\n </span>\n }\n </div>\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;MAoBa,uBAAuB,CAAA;;IAEzB,OAAO,GAAG,KAAK,CAAC,KAAK,+EAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;;AAEvD,IAAA,KAAK,GAAG,KAAK,CAAS,EAAE,4EAAC;;IAEzB,IAAI,GAAG,KAAK,CAAC,IAAI,4EAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;;AAEnD,IAAA,WAAW,GAAG,KAAK,CAAS,IAAI,kFAAC;;AAEjC,IAAA,QAAQ,GAAG,KA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AAA,gBAAA,EAAA,6BAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,ECpBpC,iZAsBA,EAAA,MAAA,EAAA,CAAA,8rCAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EDVY,gBAAgB,EAAA,QAAA,EAAA,YAAA,EAAA,MAAA,EAAA,CAAA,MAAA,CAAA,EAAA,CAAA,EAAA,CAAA;;4FAQf,uBAAuB,EAAA,UAAA,EAAA,CAAA;kBAXnC,SAAS;+BACE,oBAAoB,EAAA,UAAA,EAClB,IAAI,EAAA,OAAA,EACP,CAAC,gBAAgB,CAAC,EAAA,aAAA,EAGZ,iBAAiB,CAAC,QAAQ,EAAA,IAAA,EACnC;AACJ,wBAAA,kBAAkB,EAAE,2BAA2B;AAChD,qBAAA,EAAA,QAAA,EAAA,iZAAA,EAAA,MAAA,EAAA,CAAA,8rCAAA,CAAA,EAAA;;;AElBH;;AAEG;;;;"}
1
+ {"version":3,"file":"ids-group-ltd-ids-design-system-components-loading-overlay.mjs","sources":["../../../src/lib/components/loading-overlay/loading-overlay.component.ts","../../../src/lib/components/loading-overlay/loading-overlay.component.html","../../../src/lib/components/loading-overlay/ids-group-ltd-ids-design-system-components-loading-overlay.ts"],"sourcesContent":["import {\n Component,\n ViewEncapsulation,\n booleanAttribute,\n input,\n} from '@angular/core';\nimport { SpinnerComponent } from '@ids-group-ltd/ids-design-system/components/spinner';\nimport type { DsSize } from '@ids-group-ltd/ids-design-system/core';\n\n@Component({\n selector: 'ds-loading-overlay',\n standalone: true,\n imports: [SpinnerComponent],\n templateUrl: './loading-overlay.component.html',\n styleUrl: './loading-overlay.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n host: {\n '[attr.aria-busy]': 'loading() ? \"true\" : null',\n },\n})\nexport class LoadingOverlayComponent {\n /** Show the scrim + spinner over the projected region. */\n readonly loading = input(false, { transform: booleanAttribute });\n /** Optional caption beneath the spinner. */\n readonly label = input<string>('');\n /** Backdrop-blur the projected content behind the scrim. */\n readonly blur = input(true, { transform: booleanAttribute });\n /** Size of the spinner shown in the scrim. */\n readonly spinnerSize = input<DsSize>('md');\n /** Offset the scrim top edge — useful when a sticky header should stay uncovered. */\n readonly insetTop = input<string>('0');\n\n /**\n * Whether the projected content goes `inert` while the scrim is up. On by\n * default, because a scrim that only stops the POINTER is the bug this exists\n * to prevent: focus walks straight under it, and a keyboard user activates a\n * control the mouse cannot even reach.\n *\n * Turn it off only when the scrim covers part of the content (`insetTop`), and\n * then mark the covered subtree `inert` yourself — a blanket flag would take\n * the uncovered part with it. `ds-table` does exactly that: the scrim starts\n * below the header, so sorting during a refresh stays possible.\n */\n readonly inertContent = input(true, { transform: booleanAttribute });\n}\n","<div\n class=\"content\"\n [attr.inert]=\"loading() && inertContent() ? '' : null\">\n <ng-content></ng-content>\n</div>\n\n@if (loading()) {\n <div\n class=\"scrim\"\n [class.blur]=\"blur()\"\n [style.top]=\"insetTop()\">\n <ds-spinner [size]=\"spinnerSize()\" />\n\n @if (label()) {\n <span class=\"label\">\n {{ label() }}\n </span>\n }\n </div>\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;MAoBa,uBAAuB,CAAA;;IAEzB,OAAO,GAAG,KAAK,CAAC,KAAK,+EAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;;AAEvD,IAAA,KAAK,GAAG,KAAK,CAAS,EAAE,4EAAC;;IAEzB,IAAI,GAAG,KAAK,CAAC,IAAI,4EAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;;AAEnD,IAAA,WAAW,GAAG,KAAK,CAAS,IAAI,kFAAC;;AAEjC,IAAA,QAAQ,GAAG,KAAK,CAAS,GAAG,+EAAC;AAEtC;;;;;;;;;;AAUG;IACM,YAAY,GAAG,KAAK,CAAC,IAAI,oFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;wGAvBzD,uBAAuB,EAAA,IAAA,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,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EDRY,gBAAgB,EAAA,QAAA,EAAA,YAAA,EAAA,MAAA,EAAA,CAAA,MAAA,CAAA,EAAA,CAAA,EAAA,CAAA;;4FAQf,uBAAuB,EAAA,UAAA,EAAA,CAAA;kBAXnC,SAAS;+BACE,oBAAoB,EAAA,UAAA,EAClB,IAAI,EAAA,OAAA,EACP,CAAC,gBAAgB,CAAC,EAAA,aAAA,EAGZ,iBAAiB,CAAC,QAAQ,EAAA,IAAA,EACnC;AACJ,wBAAA,kBAAkB,EAAE,2BAA2B;AAChD,qBAAA,EAAA,QAAA,EAAA,2YAAA,EAAA,MAAA,EAAA,CAAA,8rCAAA,CAAA,EAAA;;;AElBH;;AAEG;;;;"}
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { inject, ViewContainerRef, ElementRef, viewChild, input, booleanAttribute, output, signal, ViewEncapsulation, Component, contentChildren, effect } from '@angular/core';
2
+ import { inject, ViewContainerRef, ElementRef, viewChild, input, booleanAttribute, output, signal, ViewEncapsulation, Component, contentChildren, computed, effect } from '@angular/core';
3
3
  import { Overlay } from '@angular/cdk/overlay';
4
4
  import { TemplatePortal } from '@angular/cdk/portal';
5
5
  import { IconComponent } from '@ids-group-ltd/ids-design-system/icons';
@@ -175,15 +175,18 @@ class MenuItemComponent {
175
175
  }
176
176
  }
177
177
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: MenuItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
178
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: MenuItemComponent, isStandalone: true, selector: "ds-menu-item", inputs: { icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, error: { classPropertyName: "error", publicName: "error", isSignal: true, isRequired: false, transformFunction: null }, quiet: { classPropertyName: "quiet", publicName: "quiet", isSignal: true, isRequired: false, transformFunction: null }, description: { classPropertyName: "description", publicName: "description", isSignal: true, isRequired: false, transformFunction: null }, submenu: { classPropertyName: "submenu", publicName: "submenu", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { pressed: "pressed" }, host: { attributes: { "role": "none" } }, viewQueries: [{ propertyName: "button", first: true, predicate: ["button"], descendants: true, isSignal: true }], ngImport: i0, template: "<button\n #button\n class=\"menu-item\"\n type=\"button\"\n role=\"menuitem\"\n [attr.tabindex]=\"tabbable() ? 0 : -1\"\n [attr.aria-disabled]=\"disabled() ? 'true' : null\"\n [class.disabled]=\"disabled()\"\n [class.error]=\"error()\"\n [class.quiet]=\"quiet()\"\n [class.has-submenu]=\"hasSubmenu()\"\n [attr.aria-haspopup]=\"hasSubmenu() ? 'menu' : null\"\n [attr.aria-expanded]=\"hasSubmenu() ? submenuOpen() : null\"\n [attr.aria-describedby]=\"description() ? descriptionId : null\"\n (click)=\"onClick($event)\"\n (keydown)=\"onKeydown($event)\"\n (mouseenter)=\"onMouseEnter()\"\n (mouseleave)=\"onMouseLeave($event)\"\n>\n @if (icon()) {\n <ds-icon\n [name]=\"icon()!\"\n [size]=\"16\"\n >\n </ds-icon>\n } @else {\n <span class=\"menu-item-icon\">\n <ng-content select=\"[icon]\"></ng-content>\n </span>\n }\n\n <span class=\"menu-item-body\">\n <ng-content></ng-content>\n\n @if (description()) {\n <span\n class=\"menu-item-description\"\n aria-hidden=\"true\"\n [id]=\"descriptionId\"\n >\n {{ description() }}\n </span>\n }\n </span>\n\n @if (hasSubmenu()) {\n <ds-icon\n class=\"submenu-chevron\"\n name=\"chevronRight\"\n [size]=\"14\"\n />\n }\n</button>\n", styles: ["@charset \"UTF-8\";:host{--_menu-item-label-color: var(--ds-menu-item-label-color, var(--text-primary));--_menu-item-focus-shadow: var(--ds-menu-item-focus-shadow, var(--ds-control-focus-shadow));--_menu-item-hover-bg-color: var(--ds-menu-item-hover-bg-color, var(--surface-secondary));--_menu-item-error-label-color: var(--ds-menu-item-error-label-color, var(--error-text));--_menu-item-quiet-label-color: var(--ds-menu-item-quiet-label-color, var(--text-secondary));--_menu-item-pad-x: var(--ds-menu-item-pad-x, var(--space-3));--_menu-item-pad-y: var(--ds-menu-item-pad-y, var(--space-2));--_menu-item-label-weight: var(--ds-menu-item-label-weight, var(--font-weight-medium));--_menu-item-label-font-size: var(--ds-menu-item-label-font-size, var(--font-size-s));--_menu-item-description-color: var(--ds-menu-item-description-color, var(--text-tertiary));--_menu-item-description-font-size: var(--ds-menu-item-description-font-size, var(--font-size-2xs));--_menu-item-description-max-width: var(--ds-menu-item-description-max-width, 14rem);display:block}.menu-item-body{display:flex;flex-direction:column;align-items:flex-start;min-width:0}.menu-item-description{display:block;max-width:var(--_menu-item-description-max-width);color:var(--_menu-item-description-color);font-size:var(--_menu-item-description-font-size);line-height:var(--line-height-snug);font-weight:var(--font-weight-regular);text-wrap:pretty}.menu-item{display:flex;align-items:center;gap:var(--space-2-5);width:100%;padding:var(--_menu-item-pad-y) var(--_menu-item-pad-x);background:transparent;border:0;border-radius:var(--ds-menu-item-radius, 0);font:var(--_menu-item-label-weight) var(--_menu-item-label-font-size)/var(--line-height-base) var(--font-sans);color:var(--_menu-item-label-color);cursor:pointer;text-align:left;transition:background-color var(--duration-fast) var(--ease-standard)}.menu-item:hover{background:var(--_menu-item-hover-bg-color)}.menu-item:active:not(.disabled){background:var(--surface-muted)}.menu-item:focus-visible{outline:none;box-shadow:inset var(--_menu-item-focus-shadow)}.menu-item.disabled{color:var(--text-disabled);cursor:not-allowed}.menu-item.disabled:hover{background:transparent}.menu-item.quiet{color:var(--_menu-item-quiet-label-color)}.menu-item.error{color:var(--_menu-item-error-label-color)}.menu-item.error:hover{background:var(--error-subtitle)}.menu-item .submenu-chevron{margin-left:auto;color:var(--icon-muted);flex-shrink:0}\n"], dependencies: [{ kind: "component", type: IconComponent, selector: "ds-icon", inputs: ["name", "size", "stroke", "ariaLabel"] }] });
178
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: MenuItemComponent, isStandalone: true, selector: "ds-menu-item", inputs: { icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, error: { classPropertyName: "error", publicName: "error", isSignal: true, isRequired: false, transformFunction: null }, quiet: { classPropertyName: "quiet", publicName: "quiet", isSignal: true, isRequired: false, transformFunction: null }, description: { classPropertyName: "description", publicName: "description", isSignal: true, isRequired: false, transformFunction: null }, submenu: { classPropertyName: "submenu", publicName: "submenu", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { pressed: "pressed" }, host: { attributes: { "role": "none" } }, viewQueries: [{ propertyName: "button", first: true, predicate: ["button"], descendants: true, isSignal: true }], ngImport: i0, template: "<button\n #button\n class=\"menu-item\"\n type=\"button\"\n role=\"menuitem\"\n [attr.tabindex]=\"tabbable() ? 0 : -1\"\n [attr.aria-disabled]=\"disabled() ? 'true' : null\"\n [class.disabled]=\"disabled()\"\n [class.error]=\"error()\"\n [class.quiet]=\"quiet()\"\n [class.has-submenu]=\"hasSubmenu()\"\n [attr.aria-haspopup]=\"hasSubmenu() ? 'menu' : null\"\n [attr.aria-expanded]=\"hasSubmenu() ? submenuOpen() : null\"\n [attr.aria-describedby]=\"description() ? descriptionId : null\"\n (click)=\"onClick($event)\"\n (keydown)=\"onKeydown($event)\"\n (mouseenter)=\"onMouseEnter()\"\n (mouseleave)=\"onMouseLeave($event)\">\n @if (icon()) {\n <ds-icon\n [name]=\"icon()!\"\n [size]=\"16\">\n </ds-icon>\n } @else {\n <span class=\"menu-item-icon\">\n <ng-content select=\"[icon]\"></ng-content>\n </span>\n }\n\n <span class=\"menu-item-body\">\n <ng-content></ng-content>\n\n @if (description()) {\n <span\n class=\"menu-item-description\"\n aria-hidden=\"true\"\n [id]=\"descriptionId\">\n {{ description() }}\n </span>\n }\n </span>\n\n @if (hasSubmenu()) {\n <ds-icon\n class=\"submenu-chevron\"\n name=\"chevronRight\"\n [size]=\"14\" />\n }\n</button>\n", styles: ["@charset \"UTF-8\";:where(:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}@keyframes ds-focus-ring-in{0%{outline-color:transparent}}:root[data-focus=ring]{--ds-field-focus-shadow: var(--focus-ring);--ds-field-focus-shadow-error: var(--focus-ring-error)}:root[data-focus=edge]{--focus-ring-offset: 0px;--ds-field-focus-shadow: 0 0 0 var(--border-width-default) var(--primary);--ds-field-focus-shadow-error: 0 0 0 var(--border-width-default) var(--error)}[data-focus=inset]{--focus-ring-offset: calc(-1 * var(--focus-ring-width));--ds-field-focus-shadow: var(--focus-ring-inset);--ds-field-focus-shadow-error: var(--focus-ring-inset-error)}@media(forced-colors:active){:where(:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}:host{--_menu-item-label-color: var(--ds-menu-item-label-color, var(--text-primary));--_menu-item-hover-bg-color: var(--ds-menu-item-hover-bg-color, var(--surface-secondary));--_menu-item-error-label-color: var(--ds-menu-item-error-label-color, var(--error-text));--_menu-item-quiet-label-color: var(--ds-menu-item-quiet-label-color, var(--text-secondary));--_menu-item-pad-x: var(--ds-menu-item-pad-x, var(--space-3));--_menu-item-pad-y: var(--ds-menu-item-pad-y, var(--space-2));--_menu-item-label-weight: var(--ds-menu-item-label-weight, var(--font-weight-medium));--_menu-item-label-font-size: var(--ds-menu-item-label-font-size, var(--font-size-s));--_menu-item-description-color: var(--ds-menu-item-description-color, var(--text-tertiary));--_menu-item-description-font-size: var(--ds-menu-item-description-font-size, var(--font-size-2xs));--_menu-item-description-max-width: var(--ds-menu-item-description-max-width, 14rem);--_menu-item-icon-size: var(--ds-menu-item-icon-size, 16px);display:block}.menu-item-body{display:flex;flex-direction:column;align-items:flex-start;min-width:0}.menu-item-icon{display:contents}:host-context(ds-menu.has-icons) .menu-item-icon{display:block;flex:none;width:var(--_menu-item-icon-size)}.menu-item-description{display:block;max-width:var(--_menu-item-description-max-width);color:var(--_menu-item-description-color);font-size:var(--_menu-item-description-font-size);line-height:var(--line-height-snug);font-weight:var(--font-weight-regular);text-wrap:pretty}.menu-item{display:flex;align-items:center;gap:var(--space-2-5);width:100%;padding:var(--_menu-item-pad-y) var(--_menu-item-pad-x);background:transparent;border:0;border-radius:var(--ds-menu-item-radius, 0);font:var(--_menu-item-label-weight) var(--_menu-item-label-font-size)/var(--line-height-base) var(--font-sans);color:var(--_menu-item-label-color);cursor:pointer;text-align:left;transition:background-color var(--duration-fast) var(--ease-standard)}.menu-item:hover{background:var(--_menu-item-hover-bg-color)}.menu-item:active:not(.disabled){background:var(--surface-muted)}.menu-item: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)}.menu-item.disabled{color:var(--text-disabled);cursor:not-allowed}.menu-item.disabled:hover{background:transparent}.menu-item.quiet{color:var(--_menu-item-quiet-label-color)}.menu-item.error{color:var(--_menu-item-error-label-color)}.menu-item.error:hover{background:var(--error-subtitle)}.menu-item .submenu-chevron{margin-left:auto;color:var(--icon-muted);flex-shrink:0}\n"], dependencies: [{ kind: "component", type: IconComponent, selector: "ds-icon", inputs: ["name", "size", "stroke", "ariaLabel"] }] });
179
179
  }
180
180
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: MenuItemComponent, decorators: [{
181
181
  type: Component,
182
- args: [{ selector: 'ds-menu-item', standalone: true, imports: [IconComponent], encapsulation: ViewEncapsulation.Emulated, host: { role: 'none' }, template: "<button\n #button\n class=\"menu-item\"\n type=\"button\"\n role=\"menuitem\"\n [attr.tabindex]=\"tabbable() ? 0 : -1\"\n [attr.aria-disabled]=\"disabled() ? 'true' : null\"\n [class.disabled]=\"disabled()\"\n [class.error]=\"error()\"\n [class.quiet]=\"quiet()\"\n [class.has-submenu]=\"hasSubmenu()\"\n [attr.aria-haspopup]=\"hasSubmenu() ? 'menu' : null\"\n [attr.aria-expanded]=\"hasSubmenu() ? submenuOpen() : null\"\n [attr.aria-describedby]=\"description() ? descriptionId : null\"\n (click)=\"onClick($event)\"\n (keydown)=\"onKeydown($event)\"\n (mouseenter)=\"onMouseEnter()\"\n (mouseleave)=\"onMouseLeave($event)\"\n>\n @if (icon()) {\n <ds-icon\n [name]=\"icon()!\"\n [size]=\"16\"\n >\n </ds-icon>\n } @else {\n <span class=\"menu-item-icon\">\n <ng-content select=\"[icon]\"></ng-content>\n </span>\n }\n\n <span class=\"menu-item-body\">\n <ng-content></ng-content>\n\n @if (description()) {\n <span\n class=\"menu-item-description\"\n aria-hidden=\"true\"\n [id]=\"descriptionId\"\n >\n {{ description() }}\n </span>\n }\n </span>\n\n @if (hasSubmenu()) {\n <ds-icon\n class=\"submenu-chevron\"\n name=\"chevronRight\"\n [size]=\"14\"\n />\n }\n</button>\n", styles: ["@charset \"UTF-8\";:host{--_menu-item-label-color: var(--ds-menu-item-label-color, var(--text-primary));--_menu-item-focus-shadow: var(--ds-menu-item-focus-shadow, var(--ds-control-focus-shadow));--_menu-item-hover-bg-color: var(--ds-menu-item-hover-bg-color, var(--surface-secondary));--_menu-item-error-label-color: var(--ds-menu-item-error-label-color, var(--error-text));--_menu-item-quiet-label-color: var(--ds-menu-item-quiet-label-color, var(--text-secondary));--_menu-item-pad-x: var(--ds-menu-item-pad-x, var(--space-3));--_menu-item-pad-y: var(--ds-menu-item-pad-y, var(--space-2));--_menu-item-label-weight: var(--ds-menu-item-label-weight, var(--font-weight-medium));--_menu-item-label-font-size: var(--ds-menu-item-label-font-size, var(--font-size-s));--_menu-item-description-color: var(--ds-menu-item-description-color, var(--text-tertiary));--_menu-item-description-font-size: var(--ds-menu-item-description-font-size, var(--font-size-2xs));--_menu-item-description-max-width: var(--ds-menu-item-description-max-width, 14rem);display:block}.menu-item-body{display:flex;flex-direction:column;align-items:flex-start;min-width:0}.menu-item-description{display:block;max-width:var(--_menu-item-description-max-width);color:var(--_menu-item-description-color);font-size:var(--_menu-item-description-font-size);line-height:var(--line-height-snug);font-weight:var(--font-weight-regular);text-wrap:pretty}.menu-item{display:flex;align-items:center;gap:var(--space-2-5);width:100%;padding:var(--_menu-item-pad-y) var(--_menu-item-pad-x);background:transparent;border:0;border-radius:var(--ds-menu-item-radius, 0);font:var(--_menu-item-label-weight) var(--_menu-item-label-font-size)/var(--line-height-base) var(--font-sans);color:var(--_menu-item-label-color);cursor:pointer;text-align:left;transition:background-color var(--duration-fast) var(--ease-standard)}.menu-item:hover{background:var(--_menu-item-hover-bg-color)}.menu-item:active:not(.disabled){background:var(--surface-muted)}.menu-item:focus-visible{outline:none;box-shadow:inset var(--_menu-item-focus-shadow)}.menu-item.disabled{color:var(--text-disabled);cursor:not-allowed}.menu-item.disabled:hover{background:transparent}.menu-item.quiet{color:var(--_menu-item-quiet-label-color)}.menu-item.error{color:var(--_menu-item-error-label-color)}.menu-item.error:hover{background:var(--error-subtitle)}.menu-item .submenu-chevron{margin-left:auto;color:var(--icon-muted);flex-shrink:0}\n"] }]
182
+ args: [{ selector: 'ds-menu-item', standalone: true, imports: [IconComponent], encapsulation: ViewEncapsulation.Emulated, host: { role: 'none' }, template: "<button\n #button\n class=\"menu-item\"\n type=\"button\"\n role=\"menuitem\"\n [attr.tabindex]=\"tabbable() ? 0 : -1\"\n [attr.aria-disabled]=\"disabled() ? 'true' : null\"\n [class.disabled]=\"disabled()\"\n [class.error]=\"error()\"\n [class.quiet]=\"quiet()\"\n [class.has-submenu]=\"hasSubmenu()\"\n [attr.aria-haspopup]=\"hasSubmenu() ? 'menu' : null\"\n [attr.aria-expanded]=\"hasSubmenu() ? submenuOpen() : null\"\n [attr.aria-describedby]=\"description() ? descriptionId : null\"\n (click)=\"onClick($event)\"\n (keydown)=\"onKeydown($event)\"\n (mouseenter)=\"onMouseEnter()\"\n (mouseleave)=\"onMouseLeave($event)\">\n @if (icon()) {\n <ds-icon\n [name]=\"icon()!\"\n [size]=\"16\">\n </ds-icon>\n } @else {\n <span class=\"menu-item-icon\">\n <ng-content select=\"[icon]\"></ng-content>\n </span>\n }\n\n <span class=\"menu-item-body\">\n <ng-content></ng-content>\n\n @if (description()) {\n <span\n class=\"menu-item-description\"\n aria-hidden=\"true\"\n [id]=\"descriptionId\">\n {{ description() }}\n </span>\n }\n </span>\n\n @if (hasSubmenu()) {\n <ds-icon\n class=\"submenu-chevron\"\n name=\"chevronRight\"\n [size]=\"14\" />\n }\n</button>\n", styles: ["@charset \"UTF-8\";:where(:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}@keyframes ds-focus-ring-in{0%{outline-color:transparent}}:root[data-focus=ring]{--ds-field-focus-shadow: var(--focus-ring);--ds-field-focus-shadow-error: var(--focus-ring-error)}:root[data-focus=edge]{--focus-ring-offset: 0px;--ds-field-focus-shadow: 0 0 0 var(--border-width-default) var(--primary);--ds-field-focus-shadow-error: 0 0 0 var(--border-width-default) var(--error)}[data-focus=inset]{--focus-ring-offset: calc(-1 * var(--focus-ring-width));--ds-field-focus-shadow: var(--focus-ring-inset);--ds-field-focus-shadow-error: var(--focus-ring-inset-error)}@media(forced-colors:active){:where(:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}:host{--_menu-item-label-color: var(--ds-menu-item-label-color, var(--text-primary));--_menu-item-hover-bg-color: var(--ds-menu-item-hover-bg-color, var(--surface-secondary));--_menu-item-error-label-color: var(--ds-menu-item-error-label-color, var(--error-text));--_menu-item-quiet-label-color: var(--ds-menu-item-quiet-label-color, var(--text-secondary));--_menu-item-pad-x: var(--ds-menu-item-pad-x, var(--space-3));--_menu-item-pad-y: var(--ds-menu-item-pad-y, var(--space-2));--_menu-item-label-weight: var(--ds-menu-item-label-weight, var(--font-weight-medium));--_menu-item-label-font-size: var(--ds-menu-item-label-font-size, var(--font-size-s));--_menu-item-description-color: var(--ds-menu-item-description-color, var(--text-tertiary));--_menu-item-description-font-size: var(--ds-menu-item-description-font-size, var(--font-size-2xs));--_menu-item-description-max-width: var(--ds-menu-item-description-max-width, 14rem);--_menu-item-icon-size: var(--ds-menu-item-icon-size, 16px);display:block}.menu-item-body{display:flex;flex-direction:column;align-items:flex-start;min-width:0}.menu-item-icon{display:contents}:host-context(ds-menu.has-icons) .menu-item-icon{display:block;flex:none;width:var(--_menu-item-icon-size)}.menu-item-description{display:block;max-width:var(--_menu-item-description-max-width);color:var(--_menu-item-description-color);font-size:var(--_menu-item-description-font-size);line-height:var(--line-height-snug);font-weight:var(--font-weight-regular);text-wrap:pretty}.menu-item{display:flex;align-items:center;gap:var(--space-2-5);width:100%;padding:var(--_menu-item-pad-y) var(--_menu-item-pad-x);background:transparent;border:0;border-radius:var(--ds-menu-item-radius, 0);font:var(--_menu-item-label-weight) var(--_menu-item-label-font-size)/var(--line-height-base) var(--font-sans);color:var(--_menu-item-label-color);cursor:pointer;text-align:left;transition:background-color var(--duration-fast) var(--ease-standard)}.menu-item:hover{background:var(--_menu-item-hover-bg-color)}.menu-item:active:not(.disabled){background:var(--surface-muted)}.menu-item: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)}.menu-item.disabled{color:var(--text-disabled);cursor:not-allowed}.menu-item.disabled:hover{background:transparent}.menu-item.quiet{color:var(--_menu-item-quiet-label-color)}.menu-item.error{color:var(--_menu-item-error-label-color)}.menu-item.error:hover{background:var(--error-subtitle)}.menu-item .submenu-chevron{margin-left:auto;color:var(--icon-muted);flex-shrink:0}\n"] }]
183
183
  }], propDecorators: { button: [{ type: i0.ViewChild, args: ['button', { isSignal: true }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], error: [{ type: i0.Input, args: [{ isSignal: true, alias: "error", required: false }] }], quiet: [{ type: i0.Input, args: [{ isSignal: true, alias: "quiet", required: false }] }], description: [{ type: i0.Input, args: [{ isSignal: true, alias: "description", required: false }] }], submenu: [{ type: i0.Input, args: [{ isSignal: true, alias: "submenu", required: false }] }], pressed: [{ type: i0.Output, args: ["pressed"] }] } });
184
184
 
185
185
  class MenuComponent {
186
186
  items = contentChildren(MenuItemComponent, ...(ngDevMode ? [{ debugName: "items" }] : /* istanbul ignore next */ []));
187
+ /** One item with an icon makes every item reserve the slot, so the labels share one axis. The
188
+ * menu owns the decision because an item would have to know its siblings to take it. */
189
+ anyIcon = computed(() => this.items().some((item) => item.icon() !== null), ...(ngDevMode ? [{ debugName: "anyIcon" }] : /* istanbul ignore next */ []));
187
190
  /** Index of the roving-focus item — the single item reachable via Tab. */
188
191
  activeIndex = signal(0, ...(ngDevMode ? [{ debugName: "activeIndex" }] : /* istanbul ignore next */ []));
189
192
  constructor() {
@@ -262,11 +265,15 @@ class MenuComponent {
262
265
  this.items()[index].focus();
263
266
  }
264
267
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: MenuComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
265
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "21.2.22", type: MenuComponent, isStandalone: true, selector: "ds-menu", host: { listeners: { "keydown": "onKeydown($event)" } }, queries: [{ propertyName: "items", predicate: MenuItemComponent, isSignal: true }], ngImport: i0, template: "<ul\n class=\"menu\"\n role=\"menu\"\n>\n <ng-content></ng-content>\n</ul>\n", styles: [":host{--_menu-bg-color: var(--ds-menu-bg-color, var(--surface-default));--_menu-border-color: var(--ds-menu-border-color, var(--border-divider));--_menu-min-width: var(--ds-menu-min-width, auto);--_menu-max-width: var(--ds-menu-max-width, none);--_menu-gap: var(--ds-menu-gap, var(--space-0-5));display:block;min-width:var(--_menu-min-width);max-width:var(--_menu-max-width);background:var(--_menu-bg-color);border:var(--border-width-default) solid var(--_menu-border-color);border-radius:var(--ds-menu-radius, var(--radius-md));padding:0;overflow:hidden}:host-context(.popover){background:transparent;border:0;padding:0;border-radius:var(--ds-menu-clip-radius, var(--radius-flat))}.menu{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:var(--_menu-gap)}\n"] });
268
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "21.2.22", type: MenuComponent, isStandalone: true, selector: "ds-menu", host: { attributes: { "data-focus": "inset" }, listeners: { "keydown": "onKeydown($event)" }, properties: { "class.has-icons": "anyIcon()" } }, queries: [{ propertyName: "items", predicate: MenuItemComponent, isSignal: true }], ngImport: i0, template: "<ul\n class=\"menu\"\n role=\"menu\">\n <ng-content></ng-content>\n</ul>\n", styles: [":host{--_menu-bg-color: var(--ds-menu-bg-color, var(--surface-default));--_menu-border-color: var(--ds-menu-border-color, var(--border-divider));--_menu-min-width: var(--ds-menu-min-width, auto);--_menu-max-width: var(--ds-menu-max-width, none);--_menu-gap: var(--ds-menu-gap, var(--space-0-5));display:block;min-width:var(--_menu-min-width);max-width:var(--_menu-max-width);background:var(--_menu-bg-color);border:var(--border-width-default) solid var(--_menu-border-color);border-radius:var(--ds-menu-radius, var(--radius-md));padding:0;overflow:hidden}:host-context(.popover){background:transparent;border:0;padding:0;border-radius:var(--ds-menu-clip-radius, var(--radius-flat))}.menu{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:var(--_menu-gap)}\n"] });
266
269
  }
267
270
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: MenuComponent, decorators: [{
268
271
  type: Component,
269
- args: [{ selector: 'ds-menu', standalone: true, encapsulation: ViewEncapsulation.Emulated, host: { '(keydown)': 'onKeydown($event)' }, template: "<ul\n class=\"menu\"\n role=\"menu\"\n>\n <ng-content></ng-content>\n</ul>\n", styles: [":host{--_menu-bg-color: var(--ds-menu-bg-color, var(--surface-default));--_menu-border-color: var(--ds-menu-border-color, var(--border-divider));--_menu-min-width: var(--ds-menu-min-width, auto);--_menu-max-width: var(--ds-menu-max-width, none);--_menu-gap: var(--ds-menu-gap, var(--space-0-5));display:block;min-width:var(--_menu-min-width);max-width:var(--_menu-max-width);background:var(--_menu-bg-color);border:var(--border-width-default) solid var(--_menu-border-color);border-radius:var(--ds-menu-radius, var(--radius-md));padding:0;overflow:hidden}:host-context(.popover){background:transparent;border:0;padding:0;border-radius:var(--ds-menu-clip-radius, var(--radius-flat))}.menu{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:var(--_menu-gap)}\n"] }]
272
+ args: [{ selector: 'ds-menu', standalone: true, encapsulation: ViewEncapsulation.Emulated, host: {
273
+ '(keydown)': 'onKeydown($event)',
274
+ 'data-focus': 'inset',
275
+ '[class.has-icons]': 'anyIcon()',
276
+ }, template: "<ul\n class=\"menu\"\n role=\"menu\">\n <ng-content></ng-content>\n</ul>\n", styles: [":host{--_menu-bg-color: var(--ds-menu-bg-color, var(--surface-default));--_menu-border-color: var(--ds-menu-border-color, var(--border-divider));--_menu-min-width: var(--ds-menu-min-width, auto);--_menu-max-width: var(--ds-menu-max-width, none);--_menu-gap: var(--ds-menu-gap, var(--space-0-5));display:block;min-width:var(--_menu-min-width);max-width:var(--_menu-max-width);background:var(--_menu-bg-color);border:var(--border-width-default) solid var(--_menu-border-color);border-radius:var(--ds-menu-radius, var(--radius-md));padding:0;overflow:hidden}:host-context(.popover){background:transparent;border:0;padding:0;border-radius:var(--ds-menu-clip-radius, var(--radius-flat))}.menu{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:var(--_menu-gap)}\n"] }]
270
277
  }], ctorParameters: () => [], propDecorators: { items: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => MenuItemComponent), { isSignal: true }] }] } });
271
278
 
272
279
  class MenuDividerComponent {
@@ -1 +1 @@
1
- {"version":3,"file":"ids-group-ltd-ids-design-system-components-menu.mjs","sources":["../../../src/lib/components/menu/menu-item.component.ts","../../../src/lib/components/menu/menu-item.component.html","../../../src/lib/components/menu/menu.component.ts","../../../src/lib/components/menu/menu.component.html","../../../src/lib/components/menu/menu-divider.component.ts","../../../src/lib/components/menu/ids-group-ltd-ids-design-system-components-menu.ts"],"sourcesContent":["import {\n Component,\n ElementRef,\n OnDestroy,\n TemplateRef,\n ViewContainerRef,\n ViewEncapsulation,\n booleanAttribute,\n inject,\n input,\n output,\n signal,\n viewChild,\n} from '@angular/core';\nimport { Overlay, OverlayRef } from '@angular/cdk/overlay';\nimport { TemplatePortal } from '@angular/cdk/portal';\nimport { IconComponent } from '@ids-group-ltd/ids-design-system/icons';\nimport { nextControlId } from '@ids-group-ltd/ids-design-system/components';\nimport type { IconName } from '@ids-group-ltd/ids-design-system/core';\nimport { DsOverlayCloseRef } from '@ids-group-ltd/ids-design-system/overlay';\nimport { prepareOverlayEnter } from '@ids-group-ltd/ids-design-system/components';\n\n@Component({\n selector: 'ds-menu-item',\n standalone: true,\n imports: [IconComponent],\n templateUrl: './menu-item.component.html',\n styleUrl: './menu-item.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n // The host sits between the role=\"menu\" <ul> and the role=\"menuitem\" button,\n // so mark it presentational to keep the menu→menuitem ownership intact.\n host: { role: 'none' },\n})\nexport class MenuItemComponent implements OnDestroy {\n // The containing overlay (e.g. popover), if any — selecting an item closes it.\n // Optional, so menu-items also work standalone.\n private readonly closeRef = inject(DsOverlayCloseRef, { optional: true });\n private readonly overlay = inject(Overlay);\n private readonly vcr = inject(ViewContainerRef);\n private readonly hostElement = inject(ElementRef<HTMLElement>);\n private readonly button =\n viewChild.required<ElementRef<HTMLButtonElement>>('button');\n\n /** Leading icon shown before the projected label. */\n readonly icon = input<IconName | null>(null);\n /** Blocks activation and styles the item as inactive. It stays\n * keyboard-focusable (`aria-disabled`, ARIA menu practice) and in `ds-menu`'s\n * roving order, so a `[dsTooltip]` explaining why can be reached and shown. */\n readonly disabled = input(false, { transform: booleanAttribute });\n /** Renders the item in an error/destructive style. */\n readonly error = input(false, { transform: booleanAttribute });\n /** Renders the item muted — a secondary row like \"Sign out\" under a divider,\n * still actionable but not competing with the items above it. */\n readonly quiet = input(false, { transform: booleanAttribute });\n /** A standing second line under the label — a limitation the action carries\n * (\"will not be saved\", \"read-only in this workspace\"). Visible without hover\n * or focus, which is what separates it from a `[dsTooltip]`.\n *\n * Reaches assistive tech as `aria-describedby`, NOT as part of the item's name:\n * the projected label names the action, and a caveat is a description of it.\n * That is why the line is `aria-hidden` in the DOM and referenced by id — inside\n * the button and visible, it would otherwise be concatenated into the name. */\n readonly description = input<string>('');\n /** Optional submenu template — renders a nested `ds-menu` on hover / ArrowRight. */\n readonly submenu = input<TemplateRef<unknown> | null>(null);\n /** Fires on click, unless the item is disabled or opens a submenu. */\n readonly pressed = output<MouseEvent>();\n\n protected readonly descriptionId = nextControlId('ds-menu-item-desc');\n\n /** Roving tabindex, owned by ds-menu — exactly one item is tabbable (0), the\n * rest -1. Defaults true so a standalone item (outside ds-menu) stays\n * reachable. */\n readonly tabbable = signal(true);\n readonly submenuOpen = signal(false);\n\n private submenuRef: OverlayRef | null = null;\n private openTimer: ReturnType<typeof setTimeout> | null = null;\n private closeTimer: ReturnType<typeof setTimeout> | null = null;\n\n /** Move keyboard focus to this item's control. */\n focus(): void {\n this.button().nativeElement.focus();\n }\n\n /** Whether `node` lives inside this item's control (used by ds-menu to find\n * the currently focused item during keyboard nav). */\n contains(node: Node | null): boolean {\n return !!node && this.button().nativeElement.contains(node);\n }\n\n /** Visible label text — used by ds-menu's type-ahead. */\n label(): string {\n return this.button().nativeElement.textContent?.trim() ?? '';\n }\n\n protected hasSubmenu(): boolean {\n return this.submenu() !== null;\n }\n\n protected onClick(event: MouseEvent): void {\n if (this.disabled()) {\n return;\n }\n if (this.hasSubmenu()) {\n this.openSubmenu();\n\n return;\n }\n this.pressed.emit(event);\n this.closeRef?.close();\n }\n\n protected onKeydown(event: KeyboardEvent): void {\n if (this.disabled() || !this.hasSubmenu()) {\n return;\n }\n if (event.key === 'ArrowRight') {\n event.preventDefault();\n event.stopPropagation();\n this.openSubmenu();\n }\n }\n\n protected onMouseEnter(): void {\n if (!this.hasSubmenu() || this.disabled()) {\n return;\n }\n this.clearCloseTimer();\n this.openTimer = setTimeout(() => this.openSubmenu(), 120);\n }\n\n protected onMouseLeave(event: MouseEvent): void {\n if (!this.hasSubmenu()) {\n return;\n }\n this.clearOpenTimer();\n // Delay close so moving into the submenu panel doesn't close it immediately.\n this.closeTimer = setTimeout(() => {\n // If focus/mouse is now inside the submenu panel, keep it open.\n const submenuElement = this.submenuRef?.overlayElement;\n if (\n submenuElement &&\n submenuElement.contains(event.relatedTarget as Node)\n ) {\n return;\n }\n this.closeSubmenu();\n }, 150);\n }\n\n openSubmenu(): void {\n if (this.disabled() || this.submenuRef || !this.submenu()) {\n return;\n }\n const trigger = this.hostElement.nativeElement;\n const positionStrategy = this.overlay\n .position()\n .flexibleConnectedTo(trigger)\n .withPositions([\n {\n originX: 'end',\n originY: 'top',\n overlayX: 'start',\n overlayY: 'top',\n offsetX: 2,\n },\n {\n originX: 'start',\n originY: 'top',\n overlayX: 'end',\n overlayY: 'top',\n offsetX: -2,\n },\n ]);\n\n this.submenuRef = this.overlay.create({\n positionStrategy,\n hasBackdrop: false,\n panelClass: 'ds-overlay-pane',\n scrollStrategy: this.overlay.scrollStrategies.reposition(),\n });\n prepareOverlayEnter(\n this.submenuRef,\n this.hostElement.nativeElement,\n positionStrategy,\n );\n\n this.submenuRef.keydownEvents().subscribe((event) => {\n if (event.key === 'Escape' || event.key === 'ArrowLeft') {\n event.preventDefault();\n this.closeSubmenu();\n this.focus();\n }\n });\n\n this.submenuRef.outsidePointerEvents().subscribe(() => this.closeSubmenu());\n\n this.submenuRef.attach(new TemplatePortal(this.submenu()!, this.vcr));\n\n this.submenuRef.overlayElement.addEventListener('mouseenter', () =>\n this.clearCloseTimer(),\n );\n this.submenuRef.overlayElement.addEventListener('mouseleave', () =>\n this.closeSubmenu(),\n );\n\n this.submenuOpen.set(true);\n }\n\n closeSubmenu(): void {\n this.submenuRef?.dispose();\n this.submenuRef = null;\n this.submenuOpen.set(false);\n }\n\n ngOnDestroy(): void {\n this.submenuRef?.dispose();\n this.clearOpenTimer();\n this.clearCloseTimer();\n }\n\n private clearOpenTimer(): void {\n if (this.openTimer !== null) {\n clearTimeout(this.openTimer);\n this.openTimer = null;\n }\n }\n\n private clearCloseTimer(): void {\n if (this.closeTimer !== null) {\n clearTimeout(this.closeTimer);\n this.closeTimer = null;\n }\n }\n}\n","<button\n #button\n class=\"menu-item\"\n type=\"button\"\n role=\"menuitem\"\n [attr.tabindex]=\"tabbable() ? 0 : -1\"\n [attr.aria-disabled]=\"disabled() ? 'true' : null\"\n [class.disabled]=\"disabled()\"\n [class.error]=\"error()\"\n [class.quiet]=\"quiet()\"\n [class.has-submenu]=\"hasSubmenu()\"\n [attr.aria-haspopup]=\"hasSubmenu() ? 'menu' : null\"\n [attr.aria-expanded]=\"hasSubmenu() ? submenuOpen() : null\"\n [attr.aria-describedby]=\"description() ? descriptionId : null\"\n (click)=\"onClick($event)\"\n (keydown)=\"onKeydown($event)\"\n (mouseenter)=\"onMouseEnter()\"\n (mouseleave)=\"onMouseLeave($event)\"\n>\n @if (icon()) {\n <ds-icon\n [name]=\"icon()!\"\n [size]=\"16\"\n >\n </ds-icon>\n } @else {\n <span class=\"menu-item-icon\">\n <ng-content select=\"[icon]\"></ng-content>\n </span>\n }\n\n <span class=\"menu-item-body\">\n <ng-content></ng-content>\n\n @if (description()) {\n <span\n class=\"menu-item-description\"\n aria-hidden=\"true\"\n [id]=\"descriptionId\"\n >\n {{ description() }}\n </span>\n }\n </span>\n\n @if (hasSubmenu()) {\n <ds-icon\n class=\"submenu-chevron\"\n name=\"chevronRight\"\n [size]=\"14\"\n />\n }\n</button>\n","import {\n Component,\n ViewEncapsulation,\n contentChildren,\n effect,\n signal,\n} from '@angular/core';\nimport { MenuItemComponent } from './menu-item.component';\nimport { isTextEntryTarget } from '@ids-group-ltd/ids-design-system/core';\n\n@Component({\n selector: 'ds-menu',\n standalone: true,\n templateUrl: './menu.component.html',\n styleUrl: './menu.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n // Keyboard nav bubbles up from the focused menuitem button. Hand-rolled roving\n // (mirrors ds-tabs) — kept signal-based and consistent with the rest of the DS.\n host: { '(keydown)': 'onKeydown($event)' },\n})\nexport class MenuComponent {\n private readonly items = contentChildren(MenuItemComponent);\n /** Index of the roving-focus item — the single item reachable via Tab. */\n private readonly activeIndex = signal(0);\n\n constructor() {\n // Roving tabindex: exactly one item is tabbable (0), the rest -1. Disabled\n // items stay in the order (APG menu practice) — they're focusable so a\n // tooltip explaining why can be read; activation is blocked in menu-item.\n effect(() => {\n const items = this.items();\n if (!items.length) {\n return;\n }\n let index = this.activeIndex();\n if (index >= items.length) {\n index = 0;\n }\n items.forEach((item, i) => item.tabbable.set(i === index));\n });\n }\n\n protected onKeydown(event: KeyboardEvent): void {\n const items = this.items();\n // A projected search/filter field owns its typing — type-ahead below would\n // eat every character it receives.\n if (!items.length || isTextEntryTarget(event)) {\n return;\n }\n const count = items.length;\n const focused = items.findIndex((item) =>\n item.contains(event.target as Node | null),\n );\n const from = focused >= 0 ? focused : this.activeIndex();\n\n // Single-character type-ahead: jump to the next item whose label starts\n // with the typed character.\n if (\n event.key.length === 1 &&\n /\\S/.test(event.key) &&\n !event.ctrlKey &&\n !event.metaKey &&\n !event.altKey\n ) {\n this.typeAhead(event.key, from, items);\n event.preventDefault();\n\n return;\n }\n\n let next: number;\n switch (event.key) {\n case 'ArrowDown':\n next = (from + 1) % count;\n break;\n case 'ArrowUp':\n next = (from - 1 + count) % count;\n break;\n case 'Home':\n next = 0;\n break;\n case 'End':\n next = count - 1;\n break;\n default:\n return;\n }\n event.preventDefault();\n // Disabled items are NOT skipped — they stay reachable (APG); onClick blocks\n // their activation.\n this.focusItem(next);\n }\n\n private typeAhead(\n char: string,\n from: number,\n items: readonly MenuItemComponent[],\n ): void {\n const needle = char.toLowerCase();\n const count = items.length;\n for (let offset = 1; offset <= count; offset++) {\n const i = (from + offset) % count;\n const item = items[i];\n if (item.label().toLowerCase().startsWith(needle)) {\n this.focusItem(i);\n\n return;\n }\n }\n }\n\n private focusItem(index: number): void {\n this.activeIndex.set(index);\n this.items()[index].focus();\n }\n}\n","<ul\n class=\"menu\"\n role=\"menu\"\n>\n <ng-content></ng-content>\n</ul>\n","import { Component, ViewEncapsulation } from '@angular/core';\n\n@Component({\n selector: 'ds-menu-divider',\n standalone: true,\n template: '<hr class=\"divider\" aria-hidden=\"true\" />',\n styleUrl: './menu-divider.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n host: { role: 'separator', 'aria-orientation': 'horizontal' },\n})\nexport class MenuDividerComponent {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;MAiCa,iBAAiB,CAAA;;;IAGX,QAAQ,GAAG,MAAM,CAAC,iBAAiB,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;AACxD,IAAA,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC;AACzB,IAAA,GAAG,GAAG,MAAM,CAAC,gBAAgB,CAAC;AAC9B,IAAA,WAAW,GAAG,MAAM,EAAC,UAAuB,EAAC;AAC7C,IAAA,MAAM,GACrB,SAAS,CAAC,QAAQ,CAAgC,QAAQ,CAAC;;AAGpD,IAAA,IAAI,GAAG,KAAK,CAAkB,IAAI,2EAAC;AAC5C;;AAEgF;IACvE,QAAQ,GAAG,KAAK,CAAC,KAAK,gFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;;IAExD,KAAK,GAAG,KAAK,CAAC,KAAK,6EAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;AAC9D;AACkE;IACzD,KAAK,GAAG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EAAA,MAAA,EAAA,CAAA,+wBAAA,CAAA,EAAA;uHAGD,iBAAiB,CAAA,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;MEX/C,oBAAoB,CAAA;wGAApB,oBAAoB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAApB,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,oBAAoB,4JALrB,2CAA2C,EAAA,QAAA,EAAA,IAAA,EAAA,MAAA,EAAA,CAAA,wVAAA,CAAA,EAAA,CAAA;;4FAK1C,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBARhC,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,iBAAiB,cACf,IAAI,EAAA,QAAA,EACN,2CAA2C,EAAA,aAAA,EAEtC,iBAAiB,CAAC,QAAQ,EAAA,IAAA,EACnC,EAAE,IAAI,EAAE,WAAW,EAAE,kBAAkB,EAAE,YAAY,EAAE,EAAA,MAAA,EAAA,CAAA,wVAAA,CAAA,EAAA;;;ACR/D;;AAEG;;;;"}
1
+ {"version":3,"file":"ids-group-ltd-ids-design-system-components-menu.mjs","sources":["../../../src/lib/components/menu/menu-item.component.ts","../../../src/lib/components/menu/menu-item.component.html","../../../src/lib/components/menu/menu.component.ts","../../../src/lib/components/menu/menu.component.html","../../../src/lib/components/menu/menu-divider.component.ts","../../../src/lib/components/menu/ids-group-ltd-ids-design-system-components-menu.ts"],"sourcesContent":["import {\n Component,\n ElementRef,\n OnDestroy,\n TemplateRef,\n ViewContainerRef,\n ViewEncapsulation,\n booleanAttribute,\n inject,\n input,\n output,\n signal,\n viewChild,\n} from '@angular/core';\nimport { Overlay, OverlayRef } from '@angular/cdk/overlay';\nimport { TemplatePortal } from '@angular/cdk/portal';\nimport { IconComponent } from '@ids-group-ltd/ids-design-system/icons';\nimport { nextControlId } from '@ids-group-ltd/ids-design-system/components';\nimport type { IconName } from '@ids-group-ltd/ids-design-system/core';\nimport { DsOverlayCloseRef } from '@ids-group-ltd/ids-design-system/overlay';\nimport { prepareOverlayEnter } from '@ids-group-ltd/ids-design-system/components';\n\n@Component({\n selector: 'ds-menu-item',\n standalone: true,\n imports: [IconComponent],\n templateUrl: './menu-item.component.html',\n styleUrl: './menu-item.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n // The host sits between the role=\"menu\" <ul> and the role=\"menuitem\" button,\n // so mark it presentational to keep the menu→menuitem ownership intact.\n host: { role: 'none' },\n})\nexport class MenuItemComponent implements OnDestroy {\n // The containing overlay (e.g. popover), if any — selecting an item closes it.\n // Optional, so menu-items also work standalone.\n private readonly closeRef = inject(DsOverlayCloseRef, { optional: true });\n private readonly overlay = inject(Overlay);\n private readonly vcr = inject(ViewContainerRef);\n private readonly hostElement = inject(ElementRef<HTMLElement>);\n private readonly button =\n viewChild.required<ElementRef<HTMLButtonElement>>('button');\n\n /** Leading icon shown before the projected label. */\n readonly icon = input<IconName | null>(null);\n /** Blocks activation and styles the item as inactive. It stays\n * keyboard-focusable (`aria-disabled`, ARIA menu practice) and in `ds-menu`'s\n * roving order, so a `[dsTooltip]` explaining why can be reached and shown. */\n readonly disabled = input(false, { transform: booleanAttribute });\n /** Renders the item in an error/destructive style. */\n readonly error = input(false, { transform: booleanAttribute });\n /** Renders the item muted — a secondary row like \"Sign out\" under a divider,\n * still actionable but not competing with the items above it. */\n readonly quiet = input(false, { transform: booleanAttribute });\n /** A standing second line under the label — a limitation the action carries\n * (\"will not be saved\", \"read-only in this workspace\"). Visible without hover\n * or focus, which is what separates it from a `[dsTooltip]`.\n *\n * Reaches assistive tech as `aria-describedby`, NOT as part of the item's name:\n * the projected label names the action, and a caveat is a description of it.\n * That is why the line is `aria-hidden` in the DOM and referenced by id — inside\n * the button and visible, it would otherwise be concatenated into the name. */\n readonly description = input<string>('');\n /** Optional submenu template — renders a nested `ds-menu` on hover / ArrowRight. */\n readonly submenu = input<TemplateRef<unknown> | null>(null);\n /** Fires on click, unless the item is disabled or opens a submenu. */\n readonly pressed = output<MouseEvent>();\n\n protected readonly descriptionId = nextControlId('ds-menu-item-desc');\n\n /** Roving tabindex, owned by ds-menu — exactly one item is tabbable (0), the\n * rest -1. Defaults true so a standalone item (outside ds-menu) stays\n * reachable. */\n readonly tabbable = signal(true);\n readonly submenuOpen = signal(false);\n\n private submenuRef: OverlayRef | null = null;\n private openTimer: ReturnType<typeof setTimeout> | null = null;\n private closeTimer: ReturnType<typeof setTimeout> | null = null;\n\n /** Move keyboard focus to this item's control. */\n focus(): void {\n this.button().nativeElement.focus();\n }\n\n /** Whether `node` lives inside this item's control (used by ds-menu to find\n * the currently focused item during keyboard nav). */\n contains(node: Node | null): boolean {\n return !!node && this.button().nativeElement.contains(node);\n }\n\n /** Visible label text — used by ds-menu's type-ahead. */\n label(): string {\n return this.button().nativeElement.textContent?.trim() ?? '';\n }\n\n protected hasSubmenu(): boolean {\n return this.submenu() !== null;\n }\n\n protected onClick(event: MouseEvent): void {\n if (this.disabled()) {\n return;\n }\n if (this.hasSubmenu()) {\n this.openSubmenu();\n\n return;\n }\n this.pressed.emit(event);\n this.closeRef?.close();\n }\n\n protected onKeydown(event: KeyboardEvent): void {\n if (this.disabled() || !this.hasSubmenu()) {\n return;\n }\n if (event.key === 'ArrowRight') {\n event.preventDefault();\n event.stopPropagation();\n this.openSubmenu();\n }\n }\n\n protected onMouseEnter(): void {\n if (!this.hasSubmenu() || this.disabled()) {\n return;\n }\n this.clearCloseTimer();\n this.openTimer = setTimeout(() => this.openSubmenu(), 120);\n }\n\n protected onMouseLeave(event: MouseEvent): void {\n if (!this.hasSubmenu()) {\n return;\n }\n this.clearOpenTimer();\n // Delay close so moving into the submenu panel doesn't close it immediately.\n this.closeTimer = setTimeout(() => {\n // If focus/mouse is now inside the submenu panel, keep it open.\n const submenuElement = this.submenuRef?.overlayElement;\n if (\n submenuElement &&\n submenuElement.contains(event.relatedTarget as Node)\n ) {\n return;\n }\n this.closeSubmenu();\n }, 150);\n }\n\n openSubmenu(): void {\n if (this.disabled() || this.submenuRef || !this.submenu()) {\n return;\n }\n const trigger = this.hostElement.nativeElement;\n const positionStrategy = this.overlay\n .position()\n .flexibleConnectedTo(trigger)\n .withPositions([\n {\n originX: 'end',\n originY: 'top',\n overlayX: 'start',\n overlayY: 'top',\n offsetX: 2,\n },\n {\n originX: 'start',\n originY: 'top',\n overlayX: 'end',\n overlayY: 'top',\n offsetX: -2,\n },\n ]);\n\n this.submenuRef = this.overlay.create({\n positionStrategy,\n hasBackdrop: false,\n panelClass: 'ds-overlay-pane',\n scrollStrategy: this.overlay.scrollStrategies.reposition(),\n });\n prepareOverlayEnter(\n this.submenuRef,\n this.hostElement.nativeElement,\n positionStrategy,\n );\n\n this.submenuRef.keydownEvents().subscribe((event) => {\n if (event.key === 'Escape' || event.key === 'ArrowLeft') {\n event.preventDefault();\n this.closeSubmenu();\n this.focus();\n }\n });\n\n this.submenuRef.outsidePointerEvents().subscribe(() => this.closeSubmenu());\n\n this.submenuRef.attach(new TemplatePortal(this.submenu()!, this.vcr));\n\n this.submenuRef.overlayElement.addEventListener('mouseenter', () =>\n this.clearCloseTimer(),\n );\n this.submenuRef.overlayElement.addEventListener('mouseleave', () =>\n this.closeSubmenu(),\n );\n\n this.submenuOpen.set(true);\n }\n\n closeSubmenu(): void {\n this.submenuRef?.dispose();\n this.submenuRef = null;\n this.submenuOpen.set(false);\n }\n\n ngOnDestroy(): void {\n this.submenuRef?.dispose();\n this.clearOpenTimer();\n this.clearCloseTimer();\n }\n\n private clearOpenTimer(): void {\n if (this.openTimer !== null) {\n clearTimeout(this.openTimer);\n this.openTimer = null;\n }\n }\n\n private clearCloseTimer(): void {\n if (this.closeTimer !== null) {\n clearTimeout(this.closeTimer);\n this.closeTimer = null;\n }\n }\n}\n","<button\n #button\n class=\"menu-item\"\n type=\"button\"\n role=\"menuitem\"\n [attr.tabindex]=\"tabbable() ? 0 : -1\"\n [attr.aria-disabled]=\"disabled() ? 'true' : null\"\n [class.disabled]=\"disabled()\"\n [class.error]=\"error()\"\n [class.quiet]=\"quiet()\"\n [class.has-submenu]=\"hasSubmenu()\"\n [attr.aria-haspopup]=\"hasSubmenu() ? 'menu' : null\"\n [attr.aria-expanded]=\"hasSubmenu() ? submenuOpen() : null\"\n [attr.aria-describedby]=\"description() ? descriptionId : null\"\n (click)=\"onClick($event)\"\n (keydown)=\"onKeydown($event)\"\n (mouseenter)=\"onMouseEnter()\"\n (mouseleave)=\"onMouseLeave($event)\">\n @if (icon()) {\n <ds-icon\n [name]=\"icon()!\"\n [size]=\"16\">\n </ds-icon>\n } @else {\n <span class=\"menu-item-icon\">\n <ng-content select=\"[icon]\"></ng-content>\n </span>\n }\n\n <span class=\"menu-item-body\">\n <ng-content></ng-content>\n\n @if (description()) {\n <span\n class=\"menu-item-description\"\n aria-hidden=\"true\"\n [id]=\"descriptionId\">\n {{ description() }}\n </span>\n }\n </span>\n\n @if (hasSubmenu()) {\n <ds-icon\n class=\"submenu-chevron\"\n name=\"chevronRight\"\n [size]=\"14\" />\n }\n</button>\n","import {\n Component,\n ViewEncapsulation,\n computed,\n contentChildren,\n effect,\n signal,\n} from '@angular/core';\nimport { MenuItemComponent } from './menu-item.component';\nimport { isTextEntryTarget } from '@ids-group-ltd/ids-design-system/core';\n\n@Component({\n selector: 'ds-menu',\n standalone: true,\n templateUrl: './menu.component.html',\n styleUrl: './menu.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n // Keyboard nav bubbles up from the focused menuitem button. Hand-rolled roving\n // (mirrors ds-tabs) — kept signal-based and consistent with the rest of the DS.\n // data-focus=\"inset\": the panel clips, so a ring drawn outward is lost. Belongs on the\n // clipping element — see styles/_focus.scss.\n host: {\n '(keydown)': 'onKeydown($event)',\n 'data-focus': 'inset',\n '[class.has-icons]': 'anyIcon()',\n },\n})\nexport class MenuComponent {\n private readonly items = contentChildren(MenuItemComponent);\n\n /** One item with an icon makes every item reserve the slot, so the labels share one axis. The\n * menu owns the decision because an item would have to know its siblings to take it. */\n protected readonly anyIcon = computed(() =>\n this.items().some((item) => item.icon() !== null),\n );\n /** Index of the roving-focus item — the single item reachable via Tab. */\n private readonly activeIndex = signal(0);\n\n constructor() {\n // Roving tabindex: exactly one item is tabbable (0), the rest -1. Disabled\n // items stay in the order (APG menu practice) — they're focusable so a\n // tooltip explaining why can be read; activation is blocked in menu-item.\n effect(() => {\n const items = this.items();\n if (!items.length) {\n return;\n }\n let index = this.activeIndex();\n if (index >= items.length) {\n index = 0;\n }\n items.forEach((item, i) => item.tabbable.set(i === index));\n });\n }\n\n protected onKeydown(event: KeyboardEvent): void {\n const items = this.items();\n // A projected search/filter field owns its typing — type-ahead below would\n // eat every character it receives.\n if (!items.length || isTextEntryTarget(event)) {\n return;\n }\n const count = items.length;\n const focused = items.findIndex((item) =>\n item.contains(event.target as Node | null),\n );\n const from = focused >= 0 ? focused : this.activeIndex();\n\n // Single-character type-ahead: jump to the next item whose label starts\n // with the typed character.\n if (\n event.key.length === 1 &&\n /\\S/.test(event.key) &&\n !event.ctrlKey &&\n !event.metaKey &&\n !event.altKey\n ) {\n this.typeAhead(event.key, from, items);\n event.preventDefault();\n\n return;\n }\n\n let next: number;\n switch (event.key) {\n case 'ArrowDown':\n next = (from + 1) % count;\n break;\n case 'ArrowUp':\n next = (from - 1 + count) % count;\n break;\n case 'Home':\n next = 0;\n break;\n case 'End':\n next = count - 1;\n break;\n default:\n return;\n }\n event.preventDefault();\n // Disabled items are NOT skipped — they stay reachable (APG); onClick blocks\n // their activation.\n this.focusItem(next);\n }\n\n private typeAhead(\n char: string,\n from: number,\n items: readonly MenuItemComponent[],\n ): void {\n const needle = char.toLowerCase();\n const count = items.length;\n for (let offset = 1; offset <= count; offset++) {\n const i = (from + offset) % count;\n const item = items[i];\n if (item.label().toLowerCase().startsWith(needle)) {\n this.focusItem(i);\n\n return;\n }\n }\n }\n\n private focusItem(index: number): void {\n this.activeIndex.set(index);\n this.items()[index].focus();\n }\n}\n","<ul\n class=\"menu\"\n role=\"menu\">\n <ng-content></ng-content>\n</ul>\n","import { Component, ViewEncapsulation } from '@angular/core';\n\n@Component({\n selector: 'ds-menu-divider',\n standalone: true,\n template: '<hr class=\"divider\" aria-hidden=\"true\" />',\n styleUrl: './menu-divider.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n host: { role: 'separator', 'aria-orientation': 'horizontal' },\n})\nexport class MenuDividerComponent {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;MAiCa,iBAAiB,CAAA;;;IAGX,QAAQ,GAAG,MAAM,CAAC,iBAAiB,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;AACxD,IAAA,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC;AACzB,IAAA,GAAG,GAAG,MAAM,CAAC,gBAAgB,CAAC;AAC9B,IAAA,WAAW,GAAG,MAAM,EAAC,UAAuB,EAAC;AAC7C,IAAA,MAAM,GACrB,SAAS,CAAC,QAAQ,CAAgC,QAAQ,CAAC;;AAGpD,IAAA,IAAI,GAAG,KAAK,CAAkB,IAAI,2EAAC;AAC5C;;AAEgF;IACvE,QAAQ,GAAG,KAAK,CAAC,KAAK,gFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;;IAExD,KAAK,GAAG,KAAK,CAAC,KAAK,6EAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;AAC9D;AACkE;IACzD,KAAK,GAAG,KAAK,CAAC,KAAK,6EAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;AAC9D;;;;;;;AAOgF;AACvE,IAAA,WAAW,GAAG,KAAK,CAAS,EAAE,kFAAC;;AAE/B,IAAA,OAAO,GAAG,KAAK,CAA8B,IAAI,8EAAC;;IAElD,OAAO,GAAG,MAAM,EAAc;AAEp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