@ids-group-ltd/ids-design-system 1.0.0 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (97) hide show
  1. package/CHANGELOG.md +108 -23
  2. package/agent/forms/ds-autocomplete.md +1 -1
  3. package/agent/forms/ds-button.md +3 -3
  4. package/agent/forms/ds-checkbox.md +1 -1
  5. package/agent/forms/ds-color-picker.md +1 -1
  6. package/agent/forms/ds-date-picker.md +1 -1
  7. package/agent/forms/ds-icon-button.md +1 -1
  8. package/agent/forms/ds-input.md +1 -1
  9. package/agent/forms/ds-multi-select.md +1 -1
  10. package/agent/forms/ds-otp-input.md +1 -1
  11. package/agent/forms/ds-radio-group.md +1 -1
  12. package/agent/forms/ds-radio.md +1 -1
  13. package/agent/forms/ds-search.md +1 -1
  14. package/agent/forms/ds-segmented.md +1 -1
  15. package/agent/forms/ds-select.md +1 -1
  16. package/agent/forms/ds-slider.md +1 -1
  17. package/agent/forms/ds-switch.md +1 -1
  18. package/agent/forms/ds-textarea.md +1 -1
  19. package/agent/forms/ds-time-picker.md +1 -1
  20. package/agent/forms/the-picker-family-ds-select-ds-multi-select-ds-autocomplete.md +1 -1
  21. package/components.md +22 -22
  22. package/design-system.md +24 -0
  23. package/eslint/deprecated-api.json +7 -210
  24. package/fesm2022/ids-group-ltd-ids-design-system-components-autocomplete.mjs +2 -0
  25. package/fesm2022/ids-group-ltd-ids-design-system-components-autocomplete.mjs.map +1 -1
  26. package/fesm2022/ids-group-ltd-ids-design-system-components-button.mjs +22 -3
  27. package/fesm2022/ids-group-ltd-ids-design-system-components-button.mjs.map +1 -1
  28. package/fesm2022/ids-group-ltd-ids-design-system-components-chart.mjs +4 -3
  29. package/fesm2022/ids-group-ltd-ids-design-system-components-chart.mjs.map +1 -1
  30. package/fesm2022/ids-group-ltd-ids-design-system-components-checkbox.mjs +2 -0
  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 -0
  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 +27 -19
  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-filter-bar.mjs +1 -1
  37. package/fesm2022/ids-group-ltd-ids-design-system-components-filter-bar.mjs.map +1 -1
  38. package/fesm2022/ids-group-ltd-ids-design-system-components-icon-button.mjs +8 -4
  39. package/fesm2022/ids-group-ltd-ids-design-system-components-icon-button.mjs.map +1 -1
  40. package/fesm2022/ids-group-ltd-ids-design-system-components-input.mjs +2 -0
  41. package/fesm2022/ids-group-ltd-ids-design-system-components-input.mjs.map +1 -1
  42. package/fesm2022/ids-group-ltd-ids-design-system-components-menu.mjs +4 -4
  43. package/fesm2022/ids-group-ltd-ids-design-system-components-menu.mjs.map +1 -1
  44. package/fesm2022/ids-group-ltd-ids-design-system-components-modal.mjs +1 -1
  45. package/fesm2022/ids-group-ltd-ids-design-system-components-modal.mjs.map +1 -1
  46. package/fesm2022/ids-group-ltd-ids-design-system-components-multi-select.mjs +4 -2
  47. package/fesm2022/ids-group-ltd-ids-design-system-components-multi-select.mjs.map +1 -1
  48. package/fesm2022/ids-group-ltd-ids-design-system-components-otp-input.mjs +2 -0
  49. package/fesm2022/ids-group-ltd-ids-design-system-components-otp-input.mjs.map +1 -1
  50. package/fesm2022/ids-group-ltd-ids-design-system-components-pie-chart.mjs +4 -13
  51. package/fesm2022/ids-group-ltd-ids-design-system-components-pie-chart.mjs.map +1 -1
  52. package/fesm2022/ids-group-ltd-ids-design-system-components-popover.mjs +62 -5
  53. package/fesm2022/ids-group-ltd-ids-design-system-components-popover.mjs.map +1 -1
  54. package/fesm2022/ids-group-ltd-ids-design-system-components-radio-group.mjs +3 -0
  55. package/fesm2022/ids-group-ltd-ids-design-system-components-radio-group.mjs.map +1 -1
  56. package/fesm2022/ids-group-ltd-ids-design-system-components-segmented.mjs +2 -0
  57. package/fesm2022/ids-group-ltd-ids-design-system-components-segmented.mjs.map +1 -1
  58. package/fesm2022/ids-group-ltd-ids-design-system-components-select.mjs +2 -0
  59. package/fesm2022/ids-group-ltd-ids-design-system-components-select.mjs.map +1 -1
  60. package/fesm2022/ids-group-ltd-ids-design-system-components-slider.mjs +2 -0
  61. package/fesm2022/ids-group-ltd-ids-design-system-components-slider.mjs.map +1 -1
  62. package/fesm2022/ids-group-ltd-ids-design-system-components-switch.mjs +2 -0
  63. package/fesm2022/ids-group-ltd-ids-design-system-components-switch.mjs.map +1 -1
  64. package/fesm2022/ids-group-ltd-ids-design-system-components-table-export.mjs +1 -1
  65. package/fesm2022/ids-group-ltd-ids-design-system-components-table-export.mjs.map +1 -1
  66. package/fesm2022/ids-group-ltd-ids-design-system-components-table-resize.mjs +10 -7
  67. package/fesm2022/ids-group-ltd-ids-design-system-components-table-resize.mjs.map +1 -1
  68. package/fesm2022/ids-group-ltd-ids-design-system-components-table.mjs +2 -2
  69. package/fesm2022/ids-group-ltd-ids-design-system-components-table.mjs.map +1 -1
  70. package/fesm2022/ids-group-ltd-ids-design-system-components-textarea.mjs +2 -0
  71. package/fesm2022/ids-group-ltd-ids-design-system-components-textarea.mjs.map +1 -1
  72. package/fesm2022/ids-group-ltd-ids-design-system-components-time-picker.mjs +58 -8
  73. package/fesm2022/ids-group-ltd-ids-design-system-components-time-picker.mjs.map +1 -1
  74. package/fesm2022/ids-group-ltd-ids-design-system-components.mjs +53 -43
  75. package/fesm2022/ids-group-ltd-ids-design-system-components.mjs.map +1 -1
  76. package/fesm2022/ids-group-ltd-ids-design-system.mjs +2 -3
  77. package/fesm2022/ids-group-ltd-ids-design-system.mjs.map +1 -1
  78. package/migrations/0.15.1.json +4 -2
  79. package/migrations/0.15.3.json +14 -4
  80. package/migrations/1.0.0.json +0 -333
  81. package/migrations/1.0.1.json +36 -0
  82. package/migrations/1.0.2.json +70 -0
  83. package/package.json +5 -9
  84. package/schematics/check-overrides/surface.json +4 -1
  85. package/types/ids-group-ltd-ids-design-system-components-button.d.ts +11 -4
  86. package/types/ids-group-ltd-ids-design-system-components-chart.d.ts +1 -1
  87. package/types/ids-group-ltd-ids-design-system-components-date-picker.d.ts +2 -1
  88. package/types/ids-group-ltd-ids-design-system-components-icon-button.d.ts +6 -1
  89. package/types/ids-group-ltd-ids-design-system-components-pie-chart.d.ts +1 -1
  90. package/types/ids-group-ltd-ids-design-system-components-popover.d.ts +26 -2
  91. package/types/ids-group-ltd-ids-design-system-components-table-resize.d.ts +0 -1
  92. package/types/ids-group-ltd-ids-design-system-components-time-picker.d.ts +7 -0
  93. package/types/ids-group-ltd-ids-design-system-components.d.ts +25 -21
  94. package/types/ids-group-ltd-ids-design-system.d.ts +3 -4
  95. package/fesm2022/ids-group-ltd-ids-design-system-components-submitted.mjs +0 -52
  96. package/fesm2022/ids-group-ltd-ids-design-system-components-submitted.mjs.map +0 -1
  97. package/types/ids-group-ltd-ids-design-system-components-submitted.d.ts +0 -27
@@ -126,7 +126,7 @@ class FilterBarComponent {
126
126
  });
127
127
  }
128
128
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: FilterBarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
129
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: FilterBarComponent, isStandalone: true, selector: "ds-filter-bar", inputs: { moreLabel: { classPropertyName: "moreLabel", publicName: "moreLabel", isSignal: true, isRequired: false, transformFunction: null }, panelLabel: { classPropertyName: "panelLabel", publicName: "panelLabel", isSignal: true, isRequired: false, transformFunction: null }, triggerSize: { classPropertyName: "triggerSize", publicName: "triggerSize", isSignal: true, isRequired: false, transformFunction: null } }, queries: [{ propertyName: "items", predicate: FilterItemDirective, descendants: true, isSignal: true }], viewQueries: [{ propertyName: "row", first: true, predicate: ["row"], descendants: true, isSignal: true }], ngImport: i0, template: "<div\n #row\n class=\"row\">\n @for (item of inline(); track item) {\n <div\n class=\"item\"\n [style.width.px]=\"item.width()\">\n <ng-container [ngTemplateOutlet]=\"item.template\" />\n </div>\n }\n\n @if (collapsed().length) {\n <ds-button\n #moreTrigger\n class=\"more\"\n color=\"neutral\"\n variant=\"outline\"\n icon=\"filter\"\n [size]=\"triggerSize()\"\n [ariaExpanded]=\"more.opened()\"\n (pressed)=\"more.toggle(moreTrigger.controlRef().nativeElement)\">\n +{{ collapsed().length }} {{ moreLabelResolved() }}\n </ds-button>\n\n <ds-popover\n #more\n align=\"end\"\n panelRole=\"dialog\"\n [panelLabel]=\"panelLabelResolved()\">\n <div class=\"panel\">\n @for (item of collapsed(); track item) {\n <div\n class=\"item\"\n [style.width.px]=\"item.width()\">\n <ng-container [ngTemplateOutlet]=\"item.template\" />\n </div>\n }\n </div>\n </ds-popover>\n }\n</div>\n\n<div class=\"trailing\">\n <ng-content select=\"[dsFilterBarTrailing]\"></ng-content>\n</div>\n\n@if (devMode) {\n <span\n dsProjectionDropped=\"ds-filter-bar\"\n reason='a filter belongs in an <ng-template [dsFilterItem]=\"width\">, and anything else needs the dsFilterBarTrailing attribute to reach the trailing edge. Content carrying neither is not rendered.'>\n <ng-content></ng-content>\n </span>\n}\n", styles: [":where(:host){box-sizing:border-box;interpolate-size:allow-keywords}:where(*){box-sizing:border-box}:where(button,input,select,textarea){font-family:inherit}:where(h1,h2,h3,h4,h5,h6){margin:0}:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard);border-radius:var(--focus-ring-radius)}@media(forced-colors:active){:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}:host{--_filter-bar-gap: var(--ds-filter-bar-gap, var(--space-3));--_filter-bar-panel-gap: var(--ds-filter-bar-panel-gap, var(--space-4));display:flex;align-items:flex-end;gap:var(--_filter-bar-gap)}.row{display:flex;flex:1 1 auto;align-items:flex-end;gap:var(--_filter-bar-gap);min-width:0;overflow:clip visible;overflow-clip-margin:4px}.row:not(:has(*)){display:none}.item{flex:0 1 auto;min-width:0}.more{flex:0 0 auto}.panel{display:flex;flex-direction:column;gap:var(--_filter-bar-panel-gap)}.trailing{display:flex;flex:0 0 auto;align-items:flex-end;gap:var(--_filter-bar-gap);margin-left:auto}.trailing:not(:has(*)){display:none}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: ButtonComponent, selector: "ds-button", inputs: ["color", "variant", "align", "size", "routerLink", "href", "fragment", "queryParams", "queryParamsHandling", "target", "rel", "routerLinkActiveOptions", "ariaCurrent", "type", "disabled", "loading", "fullWidth", "ariaLabel", "icon", "trailingIcon", "ariaHasPopup", "ariaExpanded", "ariaControls", "disabledReason", "ariaDescribedBy"], outputs: ["pressed"] }, { kind: "component", type: PopoverComponent, selector: "ds-popover", inputs: ["align", "placement", "arrow", "panelRole", "panelLabel"] }, { kind: "directive", type: ProjectionDroppedDirective, selector: "[dsProjectionDropped]", inputs: ["dsProjectionDropped", "reason"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
129
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: FilterBarComponent, isStandalone: true, selector: "ds-filter-bar", inputs: { moreLabel: { classPropertyName: "moreLabel", publicName: "moreLabel", isSignal: true, isRequired: false, transformFunction: null }, panelLabel: { classPropertyName: "panelLabel", publicName: "panelLabel", isSignal: true, isRequired: false, transformFunction: null }, triggerSize: { classPropertyName: "triggerSize", publicName: "triggerSize", isSignal: true, isRequired: false, transformFunction: null } }, queries: [{ propertyName: "items", predicate: FilterItemDirective, descendants: true, isSignal: true }], viewQueries: [{ propertyName: "row", first: true, predicate: ["row"], descendants: true, isSignal: true }], ngImport: i0, template: "<div\n #row\n class=\"row\">\n @for (item of inline(); track item) {\n <div\n class=\"item\"\n [style.width.px]=\"item.width()\">\n <ng-container [ngTemplateOutlet]=\"item.template\" />\n </div>\n }\n\n @if (collapsed().length) {\n <ds-button\n #moreTrigger\n class=\"more\"\n color=\"neutral\"\n variant=\"outline\"\n icon=\"filter\"\n [size]=\"triggerSize()\"\n [ariaExpanded]=\"more.opened()\"\n (pressed)=\"more.toggle(moreTrigger.controlRef().nativeElement)\">\n +{{ collapsed().length }} {{ moreLabelResolved() }}\n </ds-button>\n\n <ds-popover\n #more\n align=\"end\"\n panelRole=\"dialog\"\n [panelLabel]=\"panelLabelResolved()\">\n <div class=\"panel\">\n @for (item of collapsed(); track item) {\n <div\n class=\"item\"\n [style.width.px]=\"item.width()\">\n <ng-container [ngTemplateOutlet]=\"item.template\" />\n </div>\n }\n </div>\n </ds-popover>\n }\n</div>\n\n<div class=\"trailing\">\n <ng-content select=\"[dsFilterBarTrailing]\"></ng-content>\n</div>\n\n@if (devMode) {\n <span\n dsProjectionDropped=\"ds-filter-bar\"\n reason='a filter belongs in an <ng-template [dsFilterItem]=\"width\">, and anything else needs the dsFilterBarTrailing attribute to reach the trailing edge. Content carrying neither is not rendered.'>\n <ng-content></ng-content>\n </span>\n}\n", styles: [":where(:host){box-sizing:border-box;interpolate-size:allow-keywords}:where(*){box-sizing:border-box}:where(button,input,select,textarea){font-family:inherit}:where(h1,h2,h3,h4,h5,h6){margin:0}:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard);border-radius:var(--focus-ring-radius)}@media(forced-colors:active){:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}:host{--_filter-bar-gap: var(--ds-filter-bar-gap, var(--space-3));--_filter-bar-panel-gap: var(--ds-filter-bar-panel-gap, var(--space-4));display:flex;align-items:flex-end;gap:var(--_filter-bar-gap)}.row{display:flex;flex:1 1 auto;align-items:flex-end;gap:var(--_filter-bar-gap);min-width:0;overflow:clip visible;overflow-clip-margin:4px}.row:not(:has(*)){display:none}.item{flex:0 1 auto;min-width:0}.more{flex:0 0 auto}.panel{display:flex;flex-direction:column;gap:var(--_filter-bar-panel-gap)}.trailing{display:flex;flex:0 0 auto;align-items:flex-end;gap:var(--_filter-bar-gap);margin-left:auto}.trailing:not(:has(*)){display:none}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: ButtonComponent, selector: "ds-button", inputs: ["color", "variant", "align", "size", "routerLink", "href", "fragment", "queryParams", "queryParamsHandling", "target", "rel", "routerLinkActiveOptions", "ariaCurrent", "type", "disabled", "loading", "loadingMode", "fullWidth", "ariaLabel", "icon", "trailingIcon", "ariaHasPopup", "ariaExpanded", "ariaControls", "disabledReason", "ariaDescribedBy"], outputs: ["pressed"] }, { kind: "component", type: PopoverComponent, selector: "ds-popover", inputs: ["align", "placement", "arrow", "panelRole", "panelLabel"] }, { kind: "directive", type: ProjectionDroppedDirective, selector: "[dsProjectionDropped]", inputs: ["dsProjectionDropped", "reason"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
130
130
  }
131
131
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: FilterBarComponent, decorators: [{
132
132
  type: Component,
@@ -1 +1 @@
1
- {"version":3,"file":"ids-group-ltd-ids-design-system-components-filter-bar.mjs","sources":["../../../src/lib/components/filter-bar/filter-item.directive.ts","../../../src/lib/components/filter-bar/filter-bar.component.ts","../../../src/lib/components/filter-bar/filter-bar.component.html","../../../src/lib/components/filter-bar/ids-group-ltd-ids-design-system-components-filter-bar.ts"],"sourcesContent":["import { Directive, TemplateRef, inject, input } from '@angular/core';\n\nconst DEFAULT_ITEM_WIDTH = 180;\n\nfunction toWidth(value: unknown): number {\n const width = Number(value);\n\n return Number.isFinite(width) && width > 0 ? width : DEFAULT_ITEM_WIDTH;\n}\n\n/**\n * One filter inside `ds-filter-bar`, with the width it should occupy:\n * `<ng-template [dsFilterItem]=\"220\"> <ds-date-picker … /> </ng-template>`.\n *\n * A template, because projected DOM cannot be relocated into the overflow panel. Crossing the\n * boundary destroys and re-creates the view, so a control's internal state (open panel, focus)\n * is lost on collapse; its value survives in the consumer's own signal or form control.\n *\n * The width is a contract, not a hint: a wider control is narrowed to fit the slot.\n */\n@Directive({\n selector: 'ng-template[dsFilterItem]',\n standalone: true,\n})\nexport class FilterItemDirective {\n readonly template = inject<TemplateRef<unknown>>(TemplateRef);\n\n /** Slot width in px. Bare `dsFilterItem` (or a non-positive value) means 180. */\n readonly width = input(DEFAULT_ITEM_WIDTH, {\n alias: 'dsFilterItem',\n transform: toWidth,\n });\n}\n","import { NgTemplateOutlet } from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n ElementRef,\n ViewEncapsulation,\n computed,\n contentChildren,\n effect,\n inject,\n input,\n isDevMode,\n signal,\n viewChild,\n} from '@angular/core';\nimport { ButtonComponent } from '@ids-group-ltd/ids-design-system/components/button';\nimport { PopoverComponent } from '@ids-group-ltd/ids-design-system/components/popover';\nimport { ProjectionDroppedDirective } from '@ids-group-ltd/ids-design-system/components';\nimport { DS_INTL } from '@ids-group-ltd/ids-design-system/core';\nimport type { DsSize } from '@ids-group-ltd/ids-design-system/core';\nimport { FilterItemDirective } from './filter-item.directive';\n\n// Room for the \"+N more\" trigger. Measuring it would loop (its width feeds the count that decides\n// whether it renders); inline slots may shrink, so a longer translation takes space from them.\nconst MORE_TRIGGER_WIDTH = 132;\n\n/**\n * Priority+ filter row: renders as many filters as fit and collapses the rest into a \"+N more\"\n * panel.\n *\n * The split comes from each item's declared width (`[dsFilterItem]`) plus one `ResizeObserver`\n * on the row, never from measuring the filters (they would flash before being removed).\n *\n * Anything marked `dsFilterBarTrailing` (search, a Clear button) sits at the trailing edge and\n * never collapses. Mark each control rather than wrapping them: a projected wrapper is a plain\n * block whose children stack.\n *\n * ```html\n * <ds-filter-bar>\n * <ng-template [dsFilterItem]=\"180\">\n * <ds-select label=\"Status\" … />\n * </ng-template>\n * <ng-template [dsFilterItem]=\"220\">\n * <ds-date-picker label=\"Opened\" … />\n * </ng-template>\n *\n * <ds-search dsFilterBarTrailing … />\n * <button dsFilterBarTrailing type=\"button\" class=\"link\">Clear</button>\n * </ds-filter-bar>\n * ```\n */\n@Component({\n selector: 'ds-filter-bar',\n standalone: true,\n imports: [\n NgTemplateOutlet,\n ButtonComponent,\n PopoverComponent,\n ProjectionDroppedDirective,\n ],\n templateUrl: './filter-bar.component.html',\n styleUrl: './filter-bar.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class FilterBarComponent {\n private readonly intl = inject(DS_INTL);\n\n /** Trailing word of the trigger, after the count (\"+2 filters\"). Unset falls back to\n * `DS_INTL.filterBar.more`. */\n readonly moreLabel = input<string | null>(null);\n protected readonly moreLabelResolved = computed(\n () => this.moreLabel() ?? this.intl().filterBar.more,\n );\n /** Accessible name of the overflow panel. Unset falls back to\n * `DS_INTL.filterBar.panelLabel`. */\n readonly panelLabel = input<string | null>(null);\n protected readonly panelLabelResolved = computed(\n () => this.panelLabel() ?? this.intl().filterBar.panelLabel,\n );\n /** Height of the \"+N\" trigger; set it to match the filters beside it. */\n readonly triggerSize = input<DsSize>('md');\n\n protected readonly devMode = isDevMode();\n\n // descendants: a filter inside @if or @for lives in an embedded view that a direct-children query misses.\n protected readonly items = contentChildren(FilterItemDirective, {\n descendants: true,\n });\n\n private readonly row = viewChild<ElementRef<HTMLElement>>('row');\n private readonly rowWidth = signal(0);\n // Read off the row so retuning --ds-filter-bar-gap cannot desynchronise the arithmetic.\n private readonly gap = signal(0);\n\n protected readonly inlineCount = computed<number>(() => {\n const items = this.items();\n const available = this.rowWidth();\n if (!available) {\n return items.length;\n }\n\n const gap = this.gap();\n const total = items.reduce(\n (sum, item, index) => sum + (index > 0 ? gap : 0) + item.width(),\n 0,\n );\n if (total <= available) {\n return items.length;\n }\n\n const budget = available - MORE_TRIGGER_WIDTH - gap;\n let used = 0;\n let count = 0;\n for (const item of items) {\n used += (count > 0 ? gap : 0) + item.width();\n if (used > budget) {\n break;\n }\n count++;\n }\n\n return count;\n });\n\n protected readonly inline = computed(() =>\n this.items().slice(0, this.inlineCount()),\n );\n\n readonly collapsed = computed(() => this.items().slice(this.inlineCount()));\n\n constructor() {\n effect((onCleanup) => {\n const row = this.row()?.nativeElement;\n if (!row) {\n return;\n }\n\n const measure = (): void => {\n this.rowWidth.set(row.clientWidth);\n this.gap.set(parseFloat(getComputedStyle(row).columnGap) || 0);\n };\n\n measure();\n const observer = new ResizeObserver(measure);\n observer.observe(row);\n onCleanup(() => observer.disconnect());\n });\n }\n}\n","<div\n #row\n class=\"row\">\n @for (item of inline(); track item) {\n <div\n class=\"item\"\n [style.width.px]=\"item.width()\">\n <ng-container [ngTemplateOutlet]=\"item.template\" />\n </div>\n }\n\n @if (collapsed().length) {\n <ds-button\n #moreTrigger\n class=\"more\"\n color=\"neutral\"\n variant=\"outline\"\n icon=\"filter\"\n [size]=\"triggerSize()\"\n [ariaExpanded]=\"more.opened()\"\n (pressed)=\"more.toggle(moreTrigger.controlRef().nativeElement)\">\n +{{ collapsed().length }} {{ moreLabelResolved() }}\n </ds-button>\n\n <ds-popover\n #more\n align=\"end\"\n panelRole=\"dialog\"\n [panelLabel]=\"panelLabelResolved()\">\n <div class=\"panel\">\n @for (item of collapsed(); track item) {\n <div\n class=\"item\"\n [style.width.px]=\"item.width()\">\n <ng-container [ngTemplateOutlet]=\"item.template\" />\n </div>\n }\n </div>\n </ds-popover>\n }\n</div>\n\n<div class=\"trailing\">\n <ng-content select=\"[dsFilterBarTrailing]\"></ng-content>\n</div>\n\n@if (devMode) {\n <span\n dsProjectionDropped=\"ds-filter-bar\"\n reason='a filter belongs in an <ng-template [dsFilterItem]=\"width\">, and anything else needs the dsFilterBarTrailing attribute to reach the trailing edge. Content carrying neither is not rendered.'>\n <ng-content></ng-content>\n </span>\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;AAEA,MAAM,kBAAkB,GAAG,GAAG;AAE9B,SAAS,OAAO,CAAC,KAAc,EAAA;AAC7B,IAAA,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC;AAE3B,IAAA,OAAO,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,KAAK,GAAG,CAAC,GAAG,KAAK,GAAG,kBAAkB;AACzE;AAEA;;;;;;;;;AASG;MAKU,mBAAmB,CAAA;AACrB,IAAA,QAAQ,GAAG,MAAM,CAAuB,WAAW,CAAC;;AAGpD,IAAA,KAAK,GAAG,KAAK,CAAC,kBAAkB,EAAA,EAAA,IAAA,SAAA,GAAA,EAAA,SAAA,EAAA,OAAA,EAAA,8BAAA,EAAA,CAAA,EACvC,KAAK,EAAE,cAAc;QACrB,SAAS,EAAE,OAAO,EAAA,CAClB;wGAPS,mBAAmB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;4FAAnB,mBAAmB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,2BAAA,EAAA,MAAA,EAAA,EAAA,KAAA,EAAA,EAAA,iBAAA,EAAA,OAAA,EAAA,UAAA,EAAA,cAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;4FAAnB,mBAAmB,EAAA,UAAA,EAAA,CAAA;kBAJ/B,SAAS;AAAC,YAAA,IAAA,EAAA,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EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AE1FjE;;AAEG;;;;"}
1
+ {"version":3,"file":"ids-group-ltd-ids-design-system-components-filter-bar.mjs","sources":["../../../src/lib/components/filter-bar/filter-item.directive.ts","../../../src/lib/components/filter-bar/filter-bar.component.ts","../../../src/lib/components/filter-bar/filter-bar.component.html","../../../src/lib/components/filter-bar/ids-group-ltd-ids-design-system-components-filter-bar.ts"],"sourcesContent":["import { Directive, TemplateRef, inject, input } from '@angular/core';\n\nconst DEFAULT_ITEM_WIDTH = 180;\n\nfunction toWidth(value: unknown): number {\n const width = Number(value);\n\n return Number.isFinite(width) && width > 0 ? width : DEFAULT_ITEM_WIDTH;\n}\n\n/**\n * One filter inside `ds-filter-bar`, with the width it should occupy:\n * `<ng-template [dsFilterItem]=\"220\"> <ds-date-picker … /> </ng-template>`.\n *\n * A template, because projected DOM cannot be relocated into the overflow panel. Crossing the\n * boundary destroys and re-creates the view, so a control's internal state (open panel, focus)\n * is lost on collapse; its value survives in the consumer's own signal or form control.\n *\n * The width is a contract, not a hint: a wider control is narrowed to fit the slot.\n */\n@Directive({\n selector: 'ng-template[dsFilterItem]',\n standalone: true,\n})\nexport class FilterItemDirective {\n readonly template = inject<TemplateRef<unknown>>(TemplateRef);\n\n /** Slot width in px. Bare `dsFilterItem` (or a non-positive value) means 180. */\n readonly width = input(DEFAULT_ITEM_WIDTH, {\n alias: 'dsFilterItem',\n transform: toWidth,\n });\n}\n","import { NgTemplateOutlet } from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n ElementRef,\n ViewEncapsulation,\n computed,\n contentChildren,\n effect,\n inject,\n input,\n isDevMode,\n signal,\n viewChild,\n} from '@angular/core';\nimport { ButtonComponent } from '@ids-group-ltd/ids-design-system/components/button';\nimport { PopoverComponent } from '@ids-group-ltd/ids-design-system/components/popover';\nimport { ProjectionDroppedDirective } from '@ids-group-ltd/ids-design-system/components';\nimport { DS_INTL } from '@ids-group-ltd/ids-design-system/core';\nimport type { DsSize } from '@ids-group-ltd/ids-design-system/core';\nimport { FilterItemDirective } from './filter-item.directive';\n\n// Room for the \"+N more\" trigger. Measuring it would loop (its width feeds the count that decides\n// whether it renders); inline slots may shrink, so a longer translation takes space from them.\nconst MORE_TRIGGER_WIDTH = 132;\n\n/**\n * Priority+ filter row: renders as many filters as fit and collapses the rest into a \"+N more\"\n * panel.\n *\n * The split comes from each item's declared width (`[dsFilterItem]`) plus one `ResizeObserver`\n * on the row, never from measuring the filters (they would flash before being removed).\n *\n * Anything marked `dsFilterBarTrailing` (search, a Clear button) sits at the trailing edge and\n * never collapses. Mark each control rather than wrapping them: a projected wrapper is a plain\n * block whose children stack.\n *\n * ```html\n * <ds-filter-bar>\n * <ng-template [dsFilterItem]=\"180\">\n * <ds-select label=\"Status\" … />\n * </ng-template>\n * <ng-template [dsFilterItem]=\"220\">\n * <ds-date-picker label=\"Opened\" … />\n * </ng-template>\n *\n * <ds-search dsFilterBarTrailing … />\n * <button dsFilterBarTrailing type=\"button\" class=\"link\">Clear</button>\n * </ds-filter-bar>\n * ```\n */\n@Component({\n selector: 'ds-filter-bar',\n standalone: true,\n imports: [\n NgTemplateOutlet,\n ButtonComponent,\n PopoverComponent,\n ProjectionDroppedDirective,\n ],\n templateUrl: './filter-bar.component.html',\n styleUrl: './filter-bar.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class FilterBarComponent {\n private readonly intl = inject(DS_INTL);\n\n /** Trailing word of the trigger, after the count (\"+2 filters\"). Unset falls back to\n * `DS_INTL.filterBar.more`. */\n readonly moreLabel = input<string | null>(null);\n protected readonly moreLabelResolved = computed(\n () => this.moreLabel() ?? this.intl().filterBar.more,\n );\n /** Accessible name of the overflow panel. Unset falls back to\n * `DS_INTL.filterBar.panelLabel`. */\n readonly panelLabel = input<string | null>(null);\n protected readonly panelLabelResolved = computed(\n () => this.panelLabel() ?? this.intl().filterBar.panelLabel,\n );\n /** Height of the \"+N\" trigger; set it to match the filters beside it. */\n readonly triggerSize = input<DsSize>('md');\n\n protected readonly devMode = isDevMode();\n\n // descendants: a filter inside @if or @for lives in an embedded view that a direct-children query misses.\n protected readonly items = contentChildren(FilterItemDirective, {\n descendants: true,\n });\n\n private readonly row = viewChild<ElementRef<HTMLElement>>('row');\n private readonly rowWidth = signal(0);\n // Read off the row so retuning --ds-filter-bar-gap cannot desynchronise the arithmetic.\n private readonly gap = signal(0);\n\n protected readonly inlineCount = computed<number>(() => {\n const items = this.items();\n const available = this.rowWidth();\n if (!available) {\n return items.length;\n }\n\n const gap = this.gap();\n const total = items.reduce(\n (sum, item, index) => sum + (index > 0 ? gap : 0) + item.width(),\n 0,\n );\n if (total <= available) {\n return items.length;\n }\n\n const budget = available - MORE_TRIGGER_WIDTH - gap;\n let used = 0;\n let count = 0;\n for (const item of items) {\n used += (count > 0 ? gap : 0) + item.width();\n if (used > budget) {\n break;\n }\n count++;\n }\n\n return count;\n });\n\n protected readonly inline = computed(() =>\n this.items().slice(0, this.inlineCount()),\n );\n\n readonly collapsed = computed(() => this.items().slice(this.inlineCount()));\n\n constructor() {\n effect((onCleanup) => {\n const row = this.row()?.nativeElement;\n if (!row) {\n return;\n }\n\n const measure = (): void => {\n this.rowWidth.set(row.clientWidth);\n this.gap.set(parseFloat(getComputedStyle(row).columnGap) || 0);\n };\n\n measure();\n const observer = new ResizeObserver(measure);\n observer.observe(row);\n onCleanup(() => observer.disconnect());\n });\n }\n}\n","<div\n #row\n class=\"row\">\n @for (item of inline(); track item) {\n <div\n class=\"item\"\n [style.width.px]=\"item.width()\">\n <ng-container [ngTemplateOutlet]=\"item.template\" />\n </div>\n }\n\n @if (collapsed().length) {\n <ds-button\n #moreTrigger\n class=\"more\"\n color=\"neutral\"\n variant=\"outline\"\n icon=\"filter\"\n [size]=\"triggerSize()\"\n [ariaExpanded]=\"more.opened()\"\n (pressed)=\"more.toggle(moreTrigger.controlRef().nativeElement)\">\n +{{ collapsed().length }} {{ moreLabelResolved() }}\n </ds-button>\n\n <ds-popover\n #more\n align=\"end\"\n panelRole=\"dialog\"\n [panelLabel]=\"panelLabelResolved()\">\n <div class=\"panel\">\n @for (item of collapsed(); track item) {\n <div\n class=\"item\"\n [style.width.px]=\"item.width()\">\n <ng-container [ngTemplateOutlet]=\"item.template\" />\n </div>\n }\n </div>\n </ds-popover>\n }\n</div>\n\n<div class=\"trailing\">\n <ng-content select=\"[dsFilterBarTrailing]\"></ng-content>\n</div>\n\n@if (devMode) {\n <span\n dsProjectionDropped=\"ds-filter-bar\"\n reason='a filter belongs in an <ng-template [dsFilterItem]=\"width\">, and anything else needs the dsFilterBarTrailing attribute to reach the trailing edge. Content carrying neither is not rendered.'>\n <ng-content></ng-content>\n </span>\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;AAEA,MAAM,kBAAkB,GAAG,GAAG;AAE9B,SAAS,OAAO,CAAC,KAAc,EAAA;AAC7B,IAAA,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC;AAE3B,IAAA,OAAO,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,KAAK,GAAG,CAAC,GAAG,KAAK,GAAG,kBAAkB;AACzE;AAEA;;;;;;;;;AASG;MAKU,mBAAmB,CAAA;AACrB,IAAA,QAAQ,GAAG,MAAM,CAAuB,WAAW,CAAC;;AAGpD,IAAA,KAAK,GAAG,KAAK,CAAC,kBAAkB,EAAA,EAAA,IAAA,SAAA,GAAA,EAAA,SAAA,EAAA,OAAA,EAAA,8BAAA,EAAA,CAAA,EACvC,KAAK,EAAE,cAAc;QACrB,SAAS,EAAE,OAAO,EAAA,CAClB;wGAPS,mBAAmB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;4FAAnB,mBAAmB,EAAA,YAAA,EAAA,IAAA,EAAA,Q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AAA,EAAA,IAAA,EAAA,EAAA,CAAA,eAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,UAAA,CAAA,MAAA,mBAAmB,CAAA,EAAA,EAAA,GAAE;AAC9D,4BAAA,WAAW,EAAE,IAAI;AAClB,yBAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,GAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,SAAA,EAAA,IAAA,EAAA,CAEyD,KAAK,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AE1FjE;;AAEG;;;;"}
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { input, booleanAttribute, output, computed, ViewEncapsulation, Component } from '@angular/core';
2
+ import { input, booleanAttribute, output, viewChild, computed, ViewEncapsulation, Component } from '@angular/core';
3
3
  import { IconComponent } from '@ids-group-ltd/ids-design-system/icons';
4
4
  import { resolveWithConfig } from '@ids-group-ltd/ids-design-system/core';
5
5
 
@@ -29,6 +29,8 @@ class IconButtonComponent {
29
29
  /** Toggle state: renders the pressed look and sets `aria-pressed`, `"false"` when bound off.
30
30
  * Unbound, the button is no toggle and carries no `aria-pressed`. */
31
31
  selected = input(null, { ...(ngDevMode ? { debugName: "selected" } : /* istanbul ignore next */ {}), transform: (value) => value == null ? null : booleanAttribute(value) });
32
+ /** `aria-haspopup` on the inner `<button>`; set when this button triggers an overlay. */
33
+ ariaHasPopup = input(null, ...(ngDevMode ? [{ debugName: "ariaHasPopup" }] : /* istanbul ignore next */ []));
32
34
  /** `aria-expanded` on the inner `<button>`; bind to the open state. On the host it would land
33
35
  * on a non-focusable wrapper. */
34
36
  ariaExpanded = input(null, ...(ngDevMode ? [{ debugName: "ariaExpanded" }] : /* istanbul ignore next */ []));
@@ -36,6 +38,8 @@ class IconButtonComponent {
36
38
  ariaControls = input(null, ...(ngDevMode ? [{ debugName: "ariaControls" }] : /* istanbul ignore next */ []));
37
39
  /** Fires on click unless disabled. */
38
40
  pressed = output();
41
+ /** The inner control, for an overlay to position against and restore focus to. */
42
+ controlRef = viewChild.required('btn');
39
43
  classes = computed(() => {
40
44
  const parts = ['icon-button', this.variant(), this.sizeResolved()];
41
45
  if (this.color() !== 'primary') {
@@ -63,12 +67,12 @@ class IconButtonComponent {
63
67
  this.pressed.emit(event);
64
68
  }
65
69
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: IconButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
66
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.22", type: IconButtonComponent, isStandalone: true, selector: "ds-icon-button", inputs: { icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: true, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: true, transformFunction: null }, ariaDescribedBy: { classPropertyName: "ariaDescribedBy", publicName: "ariaDescribedBy", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, selected: { classPropertyName: "selected", publicName: "selected", isSignal: true, isRequired: false, transformFunction: null }, ariaExpanded: { classPropertyName: "ariaExpanded", publicName: "ariaExpanded", isSignal: true, isRequired: false, transformFunction: null }, ariaControls: { classPropertyName: "ariaControls", publicName: "ariaControls", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { pressed: "pressed" }, ngImport: i0, template: "<!-- target-size-guard: --ds-icon-button-size, --hit-min (32px) and up -->\n<button\n [class]=\"classes()\"\n [type]=\"type()\"\n [disabled]=\"disabled()\"\n [attr.aria-label]=\"ariaLabel()\"\n [attr.aria-describedby]=\"ariaDescribedBy()\"\n [attr.aria-pressed]=\"selected()\"\n [attr.aria-expanded]=\"ariaExpanded()\"\n [attr.aria-controls]=\"ariaControls()\"\n (click)=\"onClick($event)\">\n <ds-icon\n [name]=\"icon()\"\n [size]=\"iconSize()\" />\n</button>\n", styles: [":where(:host){box-sizing:border-box;interpolate-size:allow-keywords}:where(*){box-sizing:border-box}:where(button,input,select,textarea){font-family:inherit}:where(h1,h2,h3,h4,h5,h6){margin:0}:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard);border-radius:var(--focus-ring-radius)}@media(forced-colors:active){:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}:host{display:inline-flex}.icon-button{--_family-base: var(--accent);--_family-on: var(--accent-on);--_family-strong: var(--accent-strong);--_family-subtitle: var(--accent-subtitle);--_family-muted: var(--accent-muted);--_family-muted-strong: var(--accent-muted-strong);--_icon-button-bg-color: var(--ds-icon-button-bg-color, transparent);--_icon-button-icon-color: var(--ds-icon-button-icon-color, var(--text-secondary));--_icon-button-border: var(--ds-icon-button-border, transparent);--_icon-button-border-hover: var(--ds-icon-button-border-hover, var(--_icon-button-border));--_icon-button-border-active: var(--ds-icon-button-border-active, var(--_icon-button-border-hover));--_icon-button-bg-color-hover: var(--ds-icon-button-bg-color-hover, var(--surface-muted));--_icon-button-bg-color-active: var(--ds-icon-button-bg-color-active, var(--_icon-button-bg-color-hover));--_icon-button-icon-color-hover: var(--ds-icon-button-icon-color-hover, var(--text-primary));--_icon-button-radius: var(--ds-icon-button-radius, var(--ds-radius-control));--_icon-button-press-scale: var(--ds-icon-button-press-scale, .96);--_icon-button-accent: var(--_icon-button-icon-color);--_icon-button-bg-color-disabled: var(--ds-icon-button-bg-color-disabled, transparent);--_icon-button-icon-color-disabled: var(--ds-icon-button-icon-color-disabled, oklch(from var(--_icon-button-accent) 70% .035 h));--_icon-button-border-disabled: var(--ds-icon-button-border-disabled, transparent);--_icon-button-size: var(--ds-icon-button-size, var(--hit-cozy));display:inline-flex;align-items:center;justify-content:center;width:var(--_icon-button-size);height:var(--_icon-button-size);aspect-ratio:1;padding:0;border:var(--border-width-default) solid var(--_icon-button-border);border-radius:var(--_icon-button-radius);background-color:var(--_icon-button-bg-color);color:var(--_icon-button-icon-color);cursor:pointer;-webkit-user-select:none;user-select:none;transition:background var(--duration-fast) var(--ease-standard),border-color var(--duration-fast) var(--ease-standard),color var(--duration-fast) var(--ease-standard),transform var(--duration-instant) var(--ease-standard),box-shadow var(--duration-fast) var(--ease-standard)}.icon-button:hover{background-color:var(--_icon-button-bg-color-hover);color:var(--_icon-button-icon-color-hover);border-color:var(--_icon-button-border-hover)}.icon-button:active{background-color:var(--_icon-button-bg-color-active);border-color:var(--_icon-button-border-active);transform:scale(var(--_icon-button-press-scale))}.icon-button: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)}.icon-button[disabled]{background-color:var(--_icon-button-bg-color-disabled);color:var(--_icon-button-icon-color-disabled);border-color:var(--_icon-button-border-disabled);cursor:not-allowed;pointer-events:none}.icon-button.sm{--_icon-button-size: var(--ds-icon-button-size, var(--hit-min));width:var(--_icon-button-size);height:var(--_icon-button-size)}.icon-button.md{--_icon-button-size: var(--ds-icon-button-size, var(--hit-cozy));width:var(--_icon-button-size);height:var(--_icon-button-size)}.icon-button.lg{--_icon-button-size: var(--ds-icon-button-size, var(--field-h-lg));width:var(--_icon-button-size);height:var(--_icon-button-size)}.icon-button.standard{--_icon-button-icon-color-disabled: var(--ds-icon-button-icon-color-disabled, color-mix(in srgb, var(--_icon-button-icon-color) 40%, var(--surface-default)))}.icon-button.filled{--_icon-button-bg-color: var(--ds-icon-button-bg-color, var(--_family-base));--_icon-button-icon-color: var(--ds-icon-button-icon-color, var(--_family-on));--_icon-button-bg-color-hover: var(--ds-icon-button-bg-color-hover, color-mix(in srgb, var(--_icon-button-bg-color) 88%, black));--_icon-button-bg-color-active: var(--ds-icon-button-bg-color-active, color-mix(in srgb, var(--_icon-button-bg-color) 76%, black));--_icon-button-icon-color-hover: var(--ds-icon-button-icon-color-hover, var(--_icon-button-icon-color));--_icon-button-accent: var(--_icon-button-bg-color);--_icon-button-bg-color-disabled: var(--ds-icon-button-bg-color-disabled, oklch(from var(--_icon-button-accent) 92% .03 h))}.icon-button.tonal{--_icon-button-bg-color: var(--ds-icon-button-bg-color, var(--_family-muted));--_icon-button-icon-color: var(--ds-icon-button-icon-color, var(--_family-strong));--_icon-button-bg-color-hover: var(--ds-icon-button-bg-color-hover, var(--_family-subtitle));--_icon-button-bg-color-active: var(--ds-icon-button-bg-color-active, var(--_family-muted-strong));--_icon-button-icon-color-hover: var(--ds-icon-button-icon-color-hover, var(--_family-strong));--_icon-button-bg-color-disabled: var(--ds-icon-button-bg-color-disabled, color-mix(in srgb, var(--_icon-button-bg-color) 28%, var(--surface-disabled)))}.icon-button.outlined{--_icon-button-bg-color: var(--ds-icon-button-bg-color, transparent);--_icon-button-icon-color: var(--ds-icon-button-icon-color, var(--text-primary));--_icon-button-border: var(--ds-icon-button-border, var(--border-default));--_icon-button-bg-color-hover: var(--ds-icon-button-bg-color-hover, var(--surface-secondary));--_icon-button-bg-color-active: var(--ds-icon-button-bg-color-active, var(--surface-muted));--_icon-button-icon-color-hover: var(--ds-icon-button-icon-color-hover, var(--text-primary));--_icon-button-bg-color-disabled: var(--ds-icon-button-bg-color-disabled, transparent);--_icon-button-border-disabled: var(--ds-icon-button-border-disabled, color-mix(in srgb, var(--_icon-button-border) 55%, var(--surface-disabled)))}.icon-button.color-secondary{--_family-base: var(--secondary);--_family-on: var(--secondary-on);--_family-strong: var(--secondary-strong);--_family-subtitle: var(--secondary-subtitle);--_family-muted: var(--secondary-muted);--_family-muted-strong: var(--secondary-muted-strong)}.icon-button.color-tertiary{--_family-base: var(--tertiary);--_family-on: var(--tertiary-on);--_family-strong: var(--tertiary-strong);--_family-subtitle: var(--tertiary-subtitle);--_family-muted: var(--tertiary-muted);--_family-muted-strong: var(--tertiary-muted-strong)}.icon-button.color-neutral{--_family-base: var(--text-secondary);--_family-on: var(--surface-default);--_family-strong: var(--text-primary);--_family-subtitle: var(--surface-secondary);--_family-muted: var(--surface-secondary);--_family-muted-strong: var(--border-default)}.icon-button.color-error{--_family-base: var(--error);--_family-on: var(--text-on-error);--_family-strong: var(--error-text);--_family-subtitle: var(--error-subtitle);--_family-muted: var(--error-muted);--_family-muted-strong: var(--error-muted-strong)}.icon-button.color-success{--_family-base: var(--success);--_family-on: var(--text-on-success);--_family-strong: var(--success-text);--_family-subtitle: var(--success-subtitle);--_family-muted: var(--success-muted);--_family-muted-strong: var(--success-muted-strong)}.icon-button.color-warning{--_family-base: var(--warning);--_family-on: var(--text-on-warning);--_family-strong: var(--warning-text);--_family-subtitle: var(--warning-subtitle);--_family-muted: var(--warning-muted);--_family-muted-strong: var(--warning-muted-strong)}.icon-button.selected{--_icon-button-bg-color: var(--ds-icon-button-bg-color, var(--_family-base));--_icon-button-icon-color: var(--ds-icon-button-icon-color, var(--_family-on));--_icon-button-border: var(--ds-icon-button-border, transparent);--_icon-button-bg-color-hover: var(--ds-icon-button-bg-color-hover, color-mix(in srgb, var(--_icon-button-bg-color) 88%, black));--_icon-button-bg-color-active: var(--ds-icon-button-bg-color-active, color-mix(in srgb, var(--_icon-button-bg-color) 76%, black));--_icon-button-icon-color-hover: var(--ds-icon-button-icon-color-hover, var(--_icon-button-icon-color));--_icon-button-accent: var(--_icon-button-bg-color);--_icon-button-bg-color-disabled: var(--ds-icon-button-bg-color-disabled, oklch(from var(--_icon-button-accent) 92% .03 h))}\n"], dependencies: [{ kind: "component", type: IconComponent, selector: "ds-icon", inputs: ["name", "size", "stroke", "ariaLabel"] }] });
70
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "21.2.22", type: IconButtonComponent, isStandalone: true, selector: "ds-icon-button", inputs: { icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: true, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: true, transformFunction: null }, ariaDescribedBy: { classPropertyName: "ariaDescribedBy", publicName: "ariaDescribedBy", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, selected: { classPropertyName: "selected", publicName: "selected", isSignal: true, isRequired: false, transformFunction: null }, ariaHasPopup: { classPropertyName: "ariaHasPopup", publicName: "ariaHasPopup", isSignal: true, isRequired: false, transformFunction: null }, ariaExpanded: { classPropertyName: "ariaExpanded", publicName: "ariaExpanded", isSignal: true, isRequired: false, transformFunction: null }, ariaControls: { classPropertyName: "ariaControls", publicName: "ariaControls", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { pressed: "pressed" }, viewQueries: [{ propertyName: "controlRef", first: true, predicate: ["btn"], descendants: true, isSignal: true }], ngImport: i0, template: "<!-- target-size-guard: --ds-icon-button-size, --hit-min (32px) and up -->\n<button\n #btn\n [class]=\"classes()\"\n [type]=\"type()\"\n [disabled]=\"disabled()\"\n [attr.aria-label]=\"ariaLabel()\"\n [attr.aria-describedby]=\"ariaDescribedBy()\"\n [attr.aria-pressed]=\"selected()\"\n [attr.aria-haspopup]=\"ariaHasPopup()\"\n [attr.aria-expanded]=\"ariaExpanded()\"\n [attr.aria-controls]=\"ariaControls()\"\n (click)=\"onClick($event)\">\n <ds-icon\n [name]=\"icon()\"\n [size]=\"iconSize()\" />\n</button>\n", styles: [":where(:host){box-sizing:border-box;interpolate-size:allow-keywords}:where(*){box-sizing:border-box}:where(button,input,select,textarea){font-family:inherit}:where(h1,h2,h3,h4,h5,h6){margin:0}:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard);border-radius:var(--focus-ring-radius)}@media(forced-colors:active){:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}:host{display:inline-flex}.icon-button{--_family-base: var(--accent);--_family-on: var(--accent-on);--_family-strong: var(--accent-strong);--_family-subtitle: var(--accent-subtitle);--_family-muted: var(--accent-muted);--_family-muted-strong: var(--accent-muted-strong);--_icon-button-bg-color: var(--ds-icon-button-bg-color, transparent);--_icon-button-icon-color: var(--ds-icon-button-icon-color, var(--text-secondary));--_icon-button-border: var(--ds-icon-button-border, transparent);--_icon-button-border-hover: var(--ds-icon-button-border-hover, var(--_icon-button-border));--_icon-button-border-active: var(--ds-icon-button-border-active, var(--_icon-button-border-hover));--_icon-button-bg-color-hover: var(--ds-icon-button-bg-color-hover, var(--surface-muted));--_icon-button-bg-color-active: var(--ds-icon-button-bg-color-active, var(--_icon-button-bg-color-hover));--_icon-button-icon-color-hover: var(--ds-icon-button-icon-color-hover, var(--text-primary));--_icon-button-radius: var(--ds-icon-button-radius, var(--ds-radius-control));--_icon-button-press-scale: var(--ds-icon-button-press-scale, .96);--_icon-button-accent: var(--_icon-button-icon-color);--_icon-button-bg-color-disabled: var(--ds-icon-button-bg-color-disabled, transparent);--_icon-button-icon-color-disabled: var(--ds-icon-button-icon-color-disabled, oklch(from var(--_icon-button-accent) 70% .035 h));--_icon-button-border-disabled: var(--ds-icon-button-border-disabled, transparent);--_icon-button-size: var(--ds-icon-button-size, var(--hit-cozy));display:inline-flex;align-items:center;justify-content:center;width:var(--_icon-button-size);height:var(--_icon-button-size);aspect-ratio:1;padding:0;border:var(--border-width-default) solid var(--_icon-button-border);border-radius:var(--_icon-button-radius);background-color:var(--_icon-button-bg-color);color:var(--_icon-button-icon-color);cursor:pointer;-webkit-user-select:none;user-select:none;transition:background var(--duration-fast) var(--ease-standard),border-color var(--duration-fast) var(--ease-standard),color var(--duration-fast) var(--ease-standard),transform var(--duration-instant) var(--ease-standard),box-shadow var(--duration-fast) var(--ease-standard)}.icon-button:hover{background-color:var(--_icon-button-bg-color-hover);color:var(--_icon-button-icon-color-hover);border-color:var(--_icon-button-border-hover)}.icon-button:active{background-color:var(--_icon-button-bg-color-active);border-color:var(--_icon-button-border-active);transform:scale(var(--_icon-button-press-scale))}.icon-button: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)}.icon-button[disabled]{background-color:var(--_icon-button-bg-color-disabled);color:var(--_icon-button-icon-color-disabled);border-color:var(--_icon-button-border-disabled);cursor:not-allowed;pointer-events:none}.icon-button.sm{--_icon-button-size: var(--ds-icon-button-size, var(--hit-min));width:var(--_icon-button-size);height:var(--_icon-button-size)}.icon-button.md{--_icon-button-size: var(--ds-icon-button-size, var(--hit-cozy));width:var(--_icon-button-size);height:var(--_icon-button-size)}.icon-button.lg{--_icon-button-size: var(--ds-icon-button-size, var(--field-h-lg));width:var(--_icon-button-size);height:var(--_icon-button-size)}.icon-button.standard{--_icon-button-icon-color-disabled: var(--ds-icon-button-icon-color-disabled, color-mix(in srgb, var(--_icon-button-icon-color) 40%, var(--surface-default)))}.icon-button.filled{--_icon-button-bg-color: var(--ds-icon-button-bg-color, var(--_family-base));--_icon-button-icon-color: var(--ds-icon-button-icon-color, var(--_family-on));--_icon-button-bg-color-hover: var(--ds-icon-button-bg-color-hover, color-mix(in srgb, var(--_icon-button-bg-color) 88%, black));--_icon-button-bg-color-active: var(--ds-icon-button-bg-color-active, color-mix(in srgb, var(--_icon-button-bg-color) 76%, black));--_icon-button-icon-color-hover: var(--ds-icon-button-icon-color-hover, var(--_icon-button-icon-color));--_icon-button-accent: var(--_icon-button-bg-color);--_icon-button-bg-color-disabled: var(--ds-icon-button-bg-color-disabled, oklch(from var(--_icon-button-accent) 92% .03 h))}.icon-button.tonal{--_icon-button-bg-color: var(--ds-icon-button-bg-color, var(--_family-muted));--_icon-button-icon-color: var(--ds-icon-button-icon-color, var(--_family-strong));--_icon-button-bg-color-hover: var(--ds-icon-button-bg-color-hover, var(--_family-subtitle));--_icon-button-bg-color-active: var(--ds-icon-button-bg-color-active, var(--_family-muted-strong));--_icon-button-icon-color-hover: var(--ds-icon-button-icon-color-hover, var(--_family-strong));--_icon-button-bg-color-disabled: var(--ds-icon-button-bg-color-disabled, color-mix(in srgb, var(--_icon-button-bg-color) 28%, var(--surface-disabled)))}.icon-button.outlined{--_icon-button-bg-color: var(--ds-icon-button-bg-color, transparent);--_icon-button-icon-color: var(--ds-icon-button-icon-color, var(--text-primary));--_icon-button-border: var(--ds-icon-button-border, var(--border-default));--_icon-button-bg-color-hover: var(--ds-icon-button-bg-color-hover, var(--surface-secondary));--_icon-button-bg-color-active: var(--ds-icon-button-bg-color-active, var(--surface-muted));--_icon-button-icon-color-hover: var(--ds-icon-button-icon-color-hover, var(--text-primary));--_icon-button-bg-color-disabled: var(--ds-icon-button-bg-color-disabled, transparent);--_icon-button-border-disabled: var(--ds-icon-button-border-disabled, color-mix(in srgb, var(--_icon-button-border) 55%, var(--surface-disabled)))}.icon-button.color-secondary{--_family-base: var(--secondary);--_family-on: var(--secondary-on);--_family-strong: var(--secondary-strong);--_family-subtitle: var(--secondary-subtitle);--_family-muted: var(--secondary-muted);--_family-muted-strong: var(--secondary-muted-strong)}.icon-button.color-tertiary{--_family-base: var(--tertiary);--_family-on: var(--tertiary-on);--_family-strong: var(--tertiary-strong);--_family-subtitle: var(--tertiary-subtitle);--_family-muted: var(--tertiary-muted);--_family-muted-strong: var(--tertiary-muted-strong)}.icon-button.color-neutral{--_family-base: var(--text-secondary);--_family-on: var(--surface-default);--_family-strong: var(--text-primary);--_family-subtitle: var(--surface-secondary);--_family-muted: var(--surface-secondary);--_family-muted-strong: var(--border-default)}.icon-button.color-error{--_family-base: var(--error);--_family-on: var(--text-on-error);--_family-strong: var(--error-text);--_family-subtitle: var(--error-subtitle);--_family-muted: var(--error-muted);--_family-muted-strong: var(--error-muted-strong)}.icon-button.color-success{--_family-base: var(--success);--_family-on: var(--text-on-success);--_family-strong: var(--success-text);--_family-subtitle: var(--success-subtitle);--_family-muted: var(--success-muted);--_family-muted-strong: var(--success-muted-strong)}.icon-button.color-warning{--_family-base: var(--warning);--_family-on: var(--text-on-warning);--_family-strong: var(--warning-text);--_family-subtitle: var(--warning-subtitle);--_family-muted: var(--warning-muted);--_family-muted-strong: var(--warning-muted-strong)}.icon-button.selected{--_icon-button-bg-color: var(--ds-icon-button-bg-color, var(--_family-base));--_icon-button-icon-color: var(--ds-icon-button-icon-color, var(--_family-on));--_icon-button-border: var(--ds-icon-button-border, transparent);--_icon-button-bg-color-hover: var(--ds-icon-button-bg-color-hover, color-mix(in srgb, var(--_icon-button-bg-color) 88%, black));--_icon-button-bg-color-active: var(--ds-icon-button-bg-color-active, color-mix(in srgb, var(--_icon-button-bg-color) 76%, black));--_icon-button-icon-color-hover: var(--ds-icon-button-icon-color-hover, var(--_icon-button-icon-color));--_icon-button-accent: var(--_icon-button-bg-color);--_icon-button-bg-color-disabled: var(--ds-icon-button-bg-color-disabled, oklch(from var(--_icon-button-accent) 92% .03 h))}\n"], dependencies: [{ kind: "component", type: IconComponent, selector: "ds-icon", inputs: ["name", "size", "stroke", "ariaLabel"] }] });
67
71
  }
68
72
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: IconButtonComponent, decorators: [{
69
73
  type: Component,
70
- args: [{ selector: 'ds-icon-button', standalone: true, imports: [IconComponent], encapsulation: ViewEncapsulation.Emulated, template: "<!-- target-size-guard: --ds-icon-button-size, --hit-min (32px) and up -->\n<button\n [class]=\"classes()\"\n [type]=\"type()\"\n [disabled]=\"disabled()\"\n [attr.aria-label]=\"ariaLabel()\"\n [attr.aria-describedby]=\"ariaDescribedBy()\"\n [attr.aria-pressed]=\"selected()\"\n [attr.aria-expanded]=\"ariaExpanded()\"\n [attr.aria-controls]=\"ariaControls()\"\n (click)=\"onClick($event)\">\n <ds-icon\n [name]=\"icon()\"\n [size]=\"iconSize()\" />\n</button>\n", styles: [":where(:host){box-sizing:border-box;interpolate-size:allow-keywords}:where(*){box-sizing:border-box}:where(button,input,select,textarea){font-family:inherit}:where(h1,h2,h3,h4,h5,h6){margin:0}:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard);border-radius:var(--focus-ring-radius)}@media(forced-colors:active){:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}:host{display:inline-flex}.icon-button{--_family-base: var(--accent);--_family-on: var(--accent-on);--_family-strong: var(--accent-strong);--_family-subtitle: var(--accent-subtitle);--_family-muted: var(--accent-muted);--_family-muted-strong: var(--accent-muted-strong);--_icon-button-bg-color: var(--ds-icon-button-bg-color, transparent);--_icon-button-icon-color: var(--ds-icon-button-icon-color, var(--text-secondary));--_icon-button-border: var(--ds-icon-button-border, transparent);--_icon-button-border-hover: var(--ds-icon-button-border-hover, var(--_icon-button-border));--_icon-button-border-active: var(--ds-icon-button-border-active, var(--_icon-button-border-hover));--_icon-button-bg-color-hover: var(--ds-icon-button-bg-color-hover, var(--surface-muted));--_icon-button-bg-color-active: var(--ds-icon-button-bg-color-active, var(--_icon-button-bg-color-hover));--_icon-button-icon-color-hover: var(--ds-icon-button-icon-color-hover, var(--text-primary));--_icon-button-radius: var(--ds-icon-button-radius, var(--ds-radius-control));--_icon-button-press-scale: var(--ds-icon-button-press-scale, .96);--_icon-button-accent: var(--_icon-button-icon-color);--_icon-button-bg-color-disabled: var(--ds-icon-button-bg-color-disabled, transparent);--_icon-button-icon-color-disabled: var(--ds-icon-button-icon-color-disabled, oklch(from var(--_icon-button-accent) 70% .035 h));--_icon-button-border-disabled: var(--ds-icon-button-border-disabled, transparent);--_icon-button-size: var(--ds-icon-button-size, var(--hit-cozy));display:inline-flex;align-items:center;justify-content:center;width:var(--_icon-button-size);height:var(--_icon-button-size);aspect-ratio:1;padding:0;border:var(--border-width-default) solid var(--_icon-button-border);border-radius:var(--_icon-button-radius);background-color:var(--_icon-button-bg-color);color:var(--_icon-button-icon-color);cursor:pointer;-webkit-user-select:none;user-select:none;transition:background var(--duration-fast) var(--ease-standard),border-color var(--duration-fast) var(--ease-standard),color var(--duration-fast) var(--ease-standard),transform var(--duration-instant) var(--ease-standard),box-shadow var(--duration-fast) var(--ease-standard)}.icon-button:hover{background-color:var(--_icon-button-bg-color-hover);color:var(--_icon-button-icon-color-hover);border-color:var(--_icon-button-border-hover)}.icon-button:active{background-color:var(--_icon-button-bg-color-active);border-color:var(--_icon-button-border-active);transform:scale(var(--_icon-button-press-scale))}.icon-button: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)}.icon-button[disabled]{background-color:var(--_icon-button-bg-color-disabled);color:var(--_icon-button-icon-color-disabled);border-color:var(--_icon-button-border-disabled);cursor:not-allowed;pointer-events:none}.icon-button.sm{--_icon-button-size: var(--ds-icon-button-size, var(--hit-min));width:var(--_icon-button-size);height:var(--_icon-button-size)}.icon-button.md{--_icon-button-size: var(--ds-icon-button-size, var(--hit-cozy));width:var(--_icon-button-size);height:var(--_icon-button-size)}.icon-button.lg{--_icon-button-size: var(--ds-icon-button-size, var(--field-h-lg));width:var(--_icon-button-size);height:var(--_icon-button-size)}.icon-button.standard{--_icon-button-icon-color-disabled: var(--ds-icon-button-icon-color-disabled, color-mix(in srgb, var(--_icon-button-icon-color) 40%, var(--surface-default)))}.icon-button.filled{--_icon-button-bg-color: var(--ds-icon-button-bg-color, var(--_family-base));--_icon-button-icon-color: var(--ds-icon-button-icon-color, var(--_family-on));--_icon-button-bg-color-hover: var(--ds-icon-button-bg-color-hover, color-mix(in srgb, var(--_icon-button-bg-color) 88%, black));--_icon-button-bg-color-active: var(--ds-icon-button-bg-color-active, color-mix(in srgb, var(--_icon-button-bg-color) 76%, black));--_icon-button-icon-color-hover: var(--ds-icon-button-icon-color-hover, var(--_icon-button-icon-color));--_icon-button-accent: var(--_icon-button-bg-color);--_icon-button-bg-color-disabled: var(--ds-icon-button-bg-color-disabled, oklch(from var(--_icon-button-accent) 92% .03 h))}.icon-button.tonal{--_icon-button-bg-color: var(--ds-icon-button-bg-color, var(--_family-muted));--_icon-button-icon-color: var(--ds-icon-button-icon-color, var(--_family-strong));--_icon-button-bg-color-hover: var(--ds-icon-button-bg-color-hover, var(--_family-subtitle));--_icon-button-bg-color-active: var(--ds-icon-button-bg-color-active, var(--_family-muted-strong));--_icon-button-icon-color-hover: var(--ds-icon-button-icon-color-hover, var(--_family-strong));--_icon-button-bg-color-disabled: var(--ds-icon-button-bg-color-disabled, color-mix(in srgb, var(--_icon-button-bg-color) 28%, var(--surface-disabled)))}.icon-button.outlined{--_icon-button-bg-color: var(--ds-icon-button-bg-color, transparent);--_icon-button-icon-color: var(--ds-icon-button-icon-color, var(--text-primary));--_icon-button-border: var(--ds-icon-button-border, var(--border-default));--_icon-button-bg-color-hover: var(--ds-icon-button-bg-color-hover, var(--surface-secondary));--_icon-button-bg-color-active: var(--ds-icon-button-bg-color-active, var(--surface-muted));--_icon-button-icon-color-hover: var(--ds-icon-button-icon-color-hover, var(--text-primary));--_icon-button-bg-color-disabled: var(--ds-icon-button-bg-color-disabled, transparent);--_icon-button-border-disabled: var(--ds-icon-button-border-disabled, color-mix(in srgb, var(--_icon-button-border) 55%, var(--surface-disabled)))}.icon-button.color-secondary{--_family-base: var(--secondary);--_family-on: var(--secondary-on);--_family-strong: var(--secondary-strong);--_family-subtitle: var(--secondary-subtitle);--_family-muted: var(--secondary-muted);--_family-muted-strong: var(--secondary-muted-strong)}.icon-button.color-tertiary{--_family-base: var(--tertiary);--_family-on: var(--tertiary-on);--_family-strong: var(--tertiary-strong);--_family-subtitle: var(--tertiary-subtitle);--_family-muted: var(--tertiary-muted);--_family-muted-strong: var(--tertiary-muted-strong)}.icon-button.color-neutral{--_family-base: var(--text-secondary);--_family-on: var(--surface-default);--_family-strong: var(--text-primary);--_family-subtitle: var(--surface-secondary);--_family-muted: var(--surface-secondary);--_family-muted-strong: var(--border-default)}.icon-button.color-error{--_family-base: var(--error);--_family-on: var(--text-on-error);--_family-strong: var(--error-text);--_family-subtitle: var(--error-subtitle);--_family-muted: var(--error-muted);--_family-muted-strong: var(--error-muted-strong)}.icon-button.color-success{--_family-base: var(--success);--_family-on: var(--text-on-success);--_family-strong: var(--success-text);--_family-subtitle: var(--success-subtitle);--_family-muted: var(--success-muted);--_family-muted-strong: var(--success-muted-strong)}.icon-button.color-warning{--_family-base: var(--warning);--_family-on: var(--text-on-warning);--_family-strong: var(--warning-text);--_family-subtitle: var(--warning-subtitle);--_family-muted: var(--warning-muted);--_family-muted-strong: var(--warning-muted-strong)}.icon-button.selected{--_icon-button-bg-color: var(--ds-icon-button-bg-color, var(--_family-base));--_icon-button-icon-color: var(--ds-icon-button-icon-color, var(--_family-on));--_icon-button-border: var(--ds-icon-button-border, transparent);--_icon-button-bg-color-hover: var(--ds-icon-button-bg-color-hover, color-mix(in srgb, var(--_icon-button-bg-color) 88%, black));--_icon-button-bg-color-active: var(--ds-icon-button-bg-color-active, color-mix(in srgb, var(--_icon-button-bg-color) 76%, black));--_icon-button-icon-color-hover: var(--ds-icon-button-icon-color-hover, var(--_icon-button-icon-color));--_icon-button-accent: var(--_icon-button-bg-color);--_icon-button-bg-color-disabled: var(--ds-icon-button-bg-color-disabled, oklch(from var(--_icon-button-accent) 92% .03 h))}\n"] }]
71
- }], propDecorators: { icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: true }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: true }] }], ariaDescribedBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaDescribedBy", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], color: [{ type: i0.Input, args: [{ isSignal: true, alias: "color", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], selected: [{ type: i0.Input, args: [{ isSignal: true, alias: "selected", required: false }] }], ariaExpanded: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaExpanded", required: false }] }], ariaControls: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaControls", required: false }] }], pressed: [{ type: i0.Output, args: ["pressed"] }] } });
74
+ args: [{ selector: 'ds-icon-button', standalone: true, imports: [IconComponent], encapsulation: ViewEncapsulation.Emulated, template: "<!-- target-size-guard: --ds-icon-button-size, --hit-min (32px) and up -->\n<button\n #btn\n [class]=\"classes()\"\n [type]=\"type()\"\n [disabled]=\"disabled()\"\n [attr.aria-label]=\"ariaLabel()\"\n [attr.aria-describedby]=\"ariaDescribedBy()\"\n [attr.aria-pressed]=\"selected()\"\n [attr.aria-haspopup]=\"ariaHasPopup()\"\n [attr.aria-expanded]=\"ariaExpanded()\"\n [attr.aria-controls]=\"ariaControls()\"\n (click)=\"onClick($event)\">\n <ds-icon\n [name]=\"icon()\"\n [size]=\"iconSize()\" />\n</button>\n", styles: [":where(:host){box-sizing:border-box;interpolate-size:allow-keywords}:where(*){box-sizing:border-box}:where(button,input,select,textarea){font-family:inherit}:where(h1,h2,h3,h4,h5,h6){margin:0}:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard);border-radius:var(--focus-ring-radius)}@media(forced-colors:active){:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}:host{display:inline-flex}.icon-button{--_family-base: var(--accent);--_family-on: var(--accent-on);--_family-strong: var(--accent-strong);--_family-subtitle: var(--accent-subtitle);--_family-muted: var(--accent-muted);--_family-muted-strong: var(--accent-muted-strong);--_icon-button-bg-color: var(--ds-icon-button-bg-color, transparent);--_icon-button-icon-color: var(--ds-icon-button-icon-color, var(--text-secondary));--_icon-button-border: var(--ds-icon-button-border, transparent);--_icon-button-border-hover: var(--ds-icon-button-border-hover, var(--_icon-button-border));--_icon-button-border-active: var(--ds-icon-button-border-active, var(--_icon-button-border-hover));--_icon-button-bg-color-hover: var(--ds-icon-button-bg-color-hover, var(--surface-muted));--_icon-button-bg-color-active: var(--ds-icon-button-bg-color-active, var(--_icon-button-bg-color-hover));--_icon-button-icon-color-hover: var(--ds-icon-button-icon-color-hover, var(--text-primary));--_icon-button-radius: var(--ds-icon-button-radius, var(--ds-radius-control));--_icon-button-press-scale: var(--ds-icon-button-press-scale, .96);--_icon-button-accent: var(--_icon-button-icon-color);--_icon-button-bg-color-disabled: var(--ds-icon-button-bg-color-disabled, transparent);--_icon-button-icon-color-disabled: var(--ds-icon-button-icon-color-disabled, oklch(from var(--_icon-button-accent) 70% .035 h));--_icon-button-border-disabled: var(--ds-icon-button-border-disabled, transparent);--_icon-button-size: var(--ds-icon-button-size, var(--hit-cozy));display:inline-flex;align-items:center;justify-content:center;width:var(--_icon-button-size);height:var(--_icon-button-size);aspect-ratio:1;padding:0;border:var(--border-width-default) solid var(--_icon-button-border);border-radius:var(--_icon-button-radius);background-color:var(--_icon-button-bg-color);color:var(--_icon-button-icon-color);cursor:pointer;-webkit-user-select:none;user-select:none;transition:background var(--duration-fast) var(--ease-standard),border-color var(--duration-fast) var(--ease-standard),color var(--duration-fast) var(--ease-standard),transform var(--duration-instant) var(--ease-standard),box-shadow var(--duration-fast) var(--ease-standard)}.icon-button:hover{background-color:var(--_icon-button-bg-color-hover);color:var(--_icon-button-icon-color-hover);border-color:var(--_icon-button-border-hover)}.icon-button:active{background-color:var(--_icon-button-bg-color-active);border-color:var(--_icon-button-border-active);transform:scale(var(--_icon-button-press-scale))}.icon-button: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)}.icon-button[disabled]{background-color:var(--_icon-button-bg-color-disabled);color:var(--_icon-button-icon-color-disabled);border-color:var(--_icon-button-border-disabled);cursor:not-allowed;pointer-events:none}.icon-button.sm{--_icon-button-size: var(--ds-icon-button-size, var(--hit-min));width:var(--_icon-button-size);height:var(--_icon-button-size)}.icon-button.md{--_icon-button-size: var(--ds-icon-button-size, var(--hit-cozy));width:var(--_icon-button-size);height:var(--_icon-button-size)}.icon-button.lg{--_icon-button-size: var(--ds-icon-button-size, var(--field-h-lg));width:var(--_icon-button-size);height:var(--_icon-button-size)}.icon-button.standard{--_icon-button-icon-color-disabled: var(--ds-icon-button-icon-color-disabled, color-mix(in srgb, var(--_icon-button-icon-color) 40%, var(--surface-default)))}.icon-button.filled{--_icon-button-bg-color: var(--ds-icon-button-bg-color, var(--_family-base));--_icon-button-icon-color: var(--ds-icon-button-icon-color, var(--_family-on));--_icon-button-bg-color-hover: var(--ds-icon-button-bg-color-hover, color-mix(in srgb, var(--_icon-button-bg-color) 88%, black));--_icon-button-bg-color-active: var(--ds-icon-button-bg-color-active, color-mix(in srgb, var(--_icon-button-bg-color) 76%, black));--_icon-button-icon-color-hover: var(--ds-icon-button-icon-color-hover, var(--_icon-button-icon-color));--_icon-button-accent: var(--_icon-button-bg-color);--_icon-button-bg-color-disabled: var(--ds-icon-button-bg-color-disabled, oklch(from var(--_icon-button-accent) 92% .03 h))}.icon-button.tonal{--_icon-button-bg-color: var(--ds-icon-button-bg-color, var(--_family-muted));--_icon-button-icon-color: var(--ds-icon-button-icon-color, var(--_family-strong));--_icon-button-bg-color-hover: var(--ds-icon-button-bg-color-hover, var(--_family-subtitle));--_icon-button-bg-color-active: var(--ds-icon-button-bg-color-active, var(--_family-muted-strong));--_icon-button-icon-color-hover: var(--ds-icon-button-icon-color-hover, var(--_family-strong));--_icon-button-bg-color-disabled: var(--ds-icon-button-bg-color-disabled, color-mix(in srgb, var(--_icon-button-bg-color) 28%, var(--surface-disabled)))}.icon-button.outlined{--_icon-button-bg-color: var(--ds-icon-button-bg-color, transparent);--_icon-button-icon-color: var(--ds-icon-button-icon-color, var(--text-primary));--_icon-button-border: var(--ds-icon-button-border, var(--border-default));--_icon-button-bg-color-hover: var(--ds-icon-button-bg-color-hover, var(--surface-secondary));--_icon-button-bg-color-active: var(--ds-icon-button-bg-color-active, var(--surface-muted));--_icon-button-icon-color-hover: var(--ds-icon-button-icon-color-hover, var(--text-primary));--_icon-button-bg-color-disabled: var(--ds-icon-button-bg-color-disabled, transparent);--_icon-button-border-disabled: var(--ds-icon-button-border-disabled, color-mix(in srgb, var(--_icon-button-border) 55%, var(--surface-disabled)))}.icon-button.color-secondary{--_family-base: var(--secondary);--_family-on: var(--secondary-on);--_family-strong: var(--secondary-strong);--_family-subtitle: var(--secondary-subtitle);--_family-muted: var(--secondary-muted);--_family-muted-strong: var(--secondary-muted-strong)}.icon-button.color-tertiary{--_family-base: var(--tertiary);--_family-on: var(--tertiary-on);--_family-strong: var(--tertiary-strong);--_family-subtitle: var(--tertiary-subtitle);--_family-muted: var(--tertiary-muted);--_family-muted-strong: var(--tertiary-muted-strong)}.icon-button.color-neutral{--_family-base: var(--text-secondary);--_family-on: var(--surface-default);--_family-strong: var(--text-primary);--_family-subtitle: var(--surface-secondary);--_family-muted: var(--surface-secondary);--_family-muted-strong: var(--border-default)}.icon-button.color-error{--_family-base: var(--error);--_family-on: var(--text-on-error);--_family-strong: var(--error-text);--_family-subtitle: var(--error-subtitle);--_family-muted: var(--error-muted);--_family-muted-strong: var(--error-muted-strong)}.icon-button.color-success{--_family-base: var(--success);--_family-on: var(--text-on-success);--_family-strong: var(--success-text);--_family-subtitle: var(--success-subtitle);--_family-muted: var(--success-muted);--_family-muted-strong: var(--success-muted-strong)}.icon-button.color-warning{--_family-base: var(--warning);--_family-on: var(--text-on-warning);--_family-strong: var(--warning-text);--_family-subtitle: var(--warning-subtitle);--_family-muted: var(--warning-muted);--_family-muted-strong: var(--warning-muted-strong)}.icon-button.selected{--_icon-button-bg-color: var(--ds-icon-button-bg-color, var(--_family-base));--_icon-button-icon-color: var(--ds-icon-button-icon-color, var(--_family-on));--_icon-button-border: var(--ds-icon-button-border, transparent);--_icon-button-bg-color-hover: var(--ds-icon-button-bg-color-hover, color-mix(in srgb, var(--_icon-button-bg-color) 88%, black));--_icon-button-bg-color-active: var(--ds-icon-button-bg-color-active, color-mix(in srgb, var(--_icon-button-bg-color) 76%, black));--_icon-button-icon-color-hover: var(--ds-icon-button-icon-color-hover, var(--_icon-button-icon-color));--_icon-button-accent: var(--_icon-button-bg-color);--_icon-button-bg-color-disabled: var(--ds-icon-button-bg-color-disabled, oklch(from var(--_icon-button-accent) 92% .03 h))}\n"] }]
75
+ }], propDecorators: { icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: true }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: true }] }], ariaDescribedBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaDescribedBy", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], color: [{ type: i0.Input, args: [{ isSignal: true, alias: "color", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], selected: [{ type: i0.Input, args: [{ isSignal: true, alias: "selected", required: false }] }], ariaHasPopup: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaHasPopup", required: false }] }], ariaExpanded: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaExpanded", required: false }] }], ariaControls: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaControls", required: false }] }], pressed: [{ type: i0.Output, args: ["pressed"] }], controlRef: [{ type: i0.ViewChild, args: ['btn', { isSignal: true }] }] } });
72
76
 
73
77
  /**
74
78
  * Generated bundle index. Do not edit.
@@ -1 +1 @@
1
- {"version":3,"file":"ids-group-ltd-ids-design-system-components-icon-button.mjs","sources":["../../../src/lib/components/icon-button/icon-button.component.ts","../../../src/lib/components/icon-button/icon-button.component.html","../../../src/lib/components/icon-button/ids-group-ltd-ids-design-system-components-icon-button.ts"],"sourcesContent":["import {\n Component,\n ViewEncapsulation,\n booleanAttribute,\n computed,\n input,\n output,\n} from '@angular/core';\nimport { IconComponent } from '@ids-group-ltd/ids-design-system/icons';\nimport type { IconName } from '@ids-group-ltd/ids-design-system/core';\nimport type { ButtonColor } from '@ids-group-ltd/ids-design-system/components/button';\nimport type { IconButtonType, IconButtonVariant } from './icon-button.types';\nimport type { DsSize } from '@ids-group-ltd/ids-design-system/core';\nimport { resolveWithConfig } from '@ids-group-ltd/ids-design-system/core';\n\n/**\n * Icon-only action button with variants (standard / filled / tonal / outlined) and an optional\n * toggle (`selected`) state. Use `ds-button` for labelled actions. `ariaLabel` is required.\n */\n@Component({\n selector: 'ds-icon-button',\n standalone: true,\n imports: [IconComponent],\n templateUrl: './icon-button.component.html',\n styleUrl: './icon-button.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n})\nexport class IconButtonComponent {\n /** Icon to render - the button's only visible content. */\n readonly icon = input.required<IconName>();\n /** Accessible name; required since the button has no visible text. */\n readonly ariaLabel = input.required<string>();\n /** `aria-describedby`: the id of text the app already renders beside the button, such as why\n * the action is refused. */\n readonly ariaDescribedBy = input<string | null>(null);\n /** Fill style; `standard` is chromeless. */\n readonly variant = input<IconButtonVariant>('standard');\n /** Brand/status hue family, shared with ds-button. `color` recolours the accent the fill uses. */\n readonly color = input<ButtonColor>('primary');\n /** Unset falls back to `DS_CONFIG.control.size`, then `'md'`. */\n readonly size = input<DsSize | null>(null);\n readonly sizeResolved = resolveWithConfig(\n this.size,\n (config) => config.control?.size,\n 'md' as DsSize,\n );\n /** Native `type`; defaults to `'button'` so it never submits an ancestor form. */\n readonly type = input<IconButtonType>('button');\n /** Disables the button and blocks `pressed`. */\n readonly disabled = input(false, { transform: booleanAttribute });\n /** Toggle state: renders the pressed look and sets `aria-pressed`, `\"false\"` when bound off.\n * Unbound, the button is no toggle and carries no `aria-pressed`. */\n readonly selected = input<boolean | null>(null, {\n transform: (value: unknown) =>\n value == null ? null : booleanAttribute(value),\n });\n /** `aria-expanded` on the inner `<button>`; bind to the open state. On the host it would land\n * on a non-focusable wrapper. */\n readonly ariaExpanded = input<boolean | null>(null);\n /** `aria-controls` on the inner `<button>`: the id of the panel this button opens. */\n readonly ariaControls = input<string | null>(null);\n /** Fires on click unless disabled. */\n readonly pressed = output<MouseEvent>();\n\n protected readonly classes = computed(() => {\n const parts = ['icon-button', this.variant(), this.sizeResolved()];\n if (this.color() !== 'primary') {\n parts.push(`color-${this.color()}`);\n }\n if (this.selected()) {\n parts.push('selected');\n }\n\n return parts.join(' ');\n });\n\n protected readonly iconSize = computed(() => {\n const size = this.sizeResolved();\n if (size === 'sm') {\n return 16;\n }\n if (size === 'lg') {\n return 24;\n }\n\n return 20;\n });\n\n protected onClick(event: MouseEvent): void {\n if (this.disabled()) {\n return;\n }\n this.pressed.emit(event);\n }\n}\n","<!-- target-size-guard: --ds-icon-button-size, --hit-min (32px) and up -->\n<button\n [class]=\"classes()\"\n [type]=\"type()\"\n [disabled]=\"disabled()\"\n [attr.aria-label]=\"ariaLabel()\"\n [attr.aria-describedby]=\"ariaDescribedBy()\"\n [attr.aria-pressed]=\"selected()\"\n [attr.aria-expanded]=\"ariaExpanded()\"\n [attr.aria-controls]=\"ariaControls()\"\n (click)=\"onClick($event)\">\n <ds-icon\n [name]=\"icon()\"\n [size]=\"iconSize()\" />\n</button>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;AAeA;;;AAGG;MASU,mBAAmB,CAAA;;AAErB,IAAA,IAAI,GAAG,KAAK,CAAC,QAAQ,0EAAY;;AAEjC,IAAA,SAAS,GAAG,KAAK,CAAC,QAAQ,+EAAU;AAC7C;AAC6B;AACpB,IAAA,eAAe,GAAG,KAAK,CAAgB,IAAI,sFAAC;;AAE5C,IAAA,OAAO,GAAG,KAAK,CAAoB,UAAU,8EAAC;;AAE9C,IAAA,KAAK,GAAG,KAAK,CAAc,SAAS,4EAAC;;AAErC,IAAA,IAAI,GAAG,KAAK,CAAgB,IAAI,2EAAC;IACjC,YAAY,GAAG,iBAAiB,CACvC,IAAI,CAAC,IAAI,EACT,CAAC,MAAM,KAAK,MAAM,CAAC,OAAO,EAAE,IAAI,EAChC,IAAc,CACf;;AAEQ,IAAA,IAAI,GAAG,KAAK,CAAiB,QAAQ,2EAAC;;IAEtC,QAAQ,GAAG,KAAK,CAAC,KAAK,gFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;AACjE;AACsE;IAC7D,QAAQ,GAAG,KAAK,CAAiB,IAAI,EAAA,EAAA,IAAA,SAAA,GAAA,EAAA,SAAA,EAAA,UAAA,EAAA,8BAAA,EAAA,CAAA,EAC5C,SAAS,EAAE,CAAC,KAAc,KACxB,KAAK,IAAI,IAAI,GAAG,IAAI,GAAG,gBAAgB,CAAC,KAAK,CAAC,EAAA,CAChD;AACF;AACkC;AACzB,IAAA,YAAY,GAAG,KAAK,CAAiB,IAAI,mFAAC;;AAE1C,IAAA,YAAY,GAAG,KAAK,CAAgB,IAAI,mFAAC;;IAE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,EAAA,IAAA,EAAA,EAAA,YAAA,EAAA,EAAA,iBAAA,EAAA,cAAA,EAAA,UAAA,EAAA,cAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,YAAA,EAAA,EAAA,iBAAA,EAAA,cAAA,EAAA,UAAA,EAAA,cAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,OAAA,EAAA,EAAA,OAAA,EAAA,SAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EC3BhC,geAeA,EAAA,MAAA,EAAA,CAAA,o9QAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EDOY,aAAa,EAAA,QAAA,EAAA,SAAA,EAAA,MAAA,EAAA,CAAA,MAAA,EAAA,MAAA,EAAA,QAAA,EAAA,WAAA,CAAA,EAAA,CAAA,EAAA,CAAA;;4FAKZ,mBAAmB,EAAA,UAAA,EAAA,CAAA;kBAR/B,SAAS;+BACE,gBAAgB,EAAA,UAAA,EACd,IAAI,EAAA,OAAA,EACP,CAAC,aAAa,CAAC,EAAA,aAAA,EAGT,iBAAiB,CAAC,QAAQ,EAAA,QAAA,EAAA,geAAA,EAAA,MAAA,EAAA,CAAA,o9QAAA,CAAA,EAAA;;;AEzB3C;;AAEG;;;;"}
1
+ {"version":3,"file":"ids-group-ltd-ids-design-system-components-icon-button.mjs","sources":["../../../src/lib/components/icon-button/icon-button.component.ts","../../../src/lib/components/icon-button/icon-button.component.html","../../../src/lib/components/icon-button/ids-group-ltd-ids-design-system-components-icon-button.ts"],"sourcesContent":["import {\n Component,\n ElementRef,\n ViewEncapsulation,\n booleanAttribute,\n computed,\n input,\n output,\n viewChild,\n} from '@angular/core';\nimport { IconComponent } from '@ids-group-ltd/ids-design-system/icons';\nimport type { IconName } from '@ids-group-ltd/ids-design-system/core';\nimport type { ButtonColor } from '@ids-group-ltd/ids-design-system/components/button';\nimport type { IconButtonType, IconButtonVariant } from './icon-button.types';\nimport type { DsSize } from '@ids-group-ltd/ids-design-system/core';\nimport { resolveWithConfig } from '@ids-group-ltd/ids-design-system/core';\n\n/**\n * Icon-only action button with variants (standard / filled / tonal / outlined) and an optional\n * toggle (`selected`) state. Use `ds-button` for labelled actions. `ariaLabel` is required.\n */\n@Component({\n selector: 'ds-icon-button',\n standalone: true,\n imports: [IconComponent],\n templateUrl: './icon-button.component.html',\n styleUrl: './icon-button.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n})\nexport class IconButtonComponent {\n /** Icon to render - the button's only visible content. */\n readonly icon = input.required<IconName>();\n /** Accessible name; required since the button has no visible text. */\n readonly ariaLabel = input.required<string>();\n /** `aria-describedby`: the id of text the app already renders beside the button, such as why\n * the action is refused. */\n readonly ariaDescribedBy = input<string | null>(null);\n /** Fill style; `standard` is chromeless. */\n readonly variant = input<IconButtonVariant>('standard');\n /** Brand/status hue family, shared with ds-button. `color` recolours the accent the fill uses. */\n readonly color = input<ButtonColor>('primary');\n /** Unset falls back to `DS_CONFIG.control.size`, then `'md'`. */\n readonly size = input<DsSize | null>(null);\n readonly sizeResolved = resolveWithConfig(\n this.size,\n (config) => config.control?.size,\n 'md' as DsSize,\n );\n /** Native `type`; defaults to `'button'` so it never submits an ancestor form. */\n readonly type = input<IconButtonType>('button');\n /** Disables the button and blocks `pressed`. */\n readonly disabled = input(false, { transform: booleanAttribute });\n /** Toggle state: renders the pressed look and sets `aria-pressed`, `\"false\"` when bound off.\n * Unbound, the button is no toggle and carries no `aria-pressed`. */\n readonly selected = input<boolean | null>(null, {\n transform: (value: unknown) =>\n value == null ? null : booleanAttribute(value),\n });\n /** `aria-haspopup` on the inner `<button>`; set when this button triggers an overlay. */\n readonly ariaHasPopup = input<\n 'true' | 'menu' | 'listbox' | 'tree' | 'grid' | 'dialog' | null\n >(null);\n /** `aria-expanded` on the inner `<button>`; bind to the open state. On the host it would land\n * on a non-focusable wrapper. */\n readonly ariaExpanded = input<boolean | null>(null);\n /** `aria-controls` on the inner `<button>`: the id of the panel this button opens. */\n readonly ariaControls = input<string | null>(null);\n /** Fires on click unless disabled. */\n readonly pressed = output<MouseEvent>();\n\n /** The inner control, for an overlay to position against and restore focus to. */\n readonly controlRef = viewChild.required<ElementRef<HTMLElement>>('btn');\n\n protected readonly classes = computed(() => {\n const parts = ['icon-button', this.variant(), this.sizeResolved()];\n if (this.color() !== 'primary') {\n parts.push(`color-${this.color()}`);\n }\n if (this.selected()) {\n parts.push('selected');\n }\n\n return parts.join(' ');\n });\n\n protected readonly iconSize = computed(() => {\n const size = this.sizeResolved();\n if (size === 'sm') {\n return 16;\n }\n if (size === 'lg') {\n return 24;\n }\n\n return 20;\n });\n\n protected onClick(event: MouseEvent): void {\n if (this.disabled()) {\n return;\n }\n this.pressed.emit(event);\n }\n}\n","<!-- target-size-guard: --ds-icon-button-size, --hit-min (32px) and up -->\n<button\n #btn\n [class]=\"classes()\"\n [type]=\"type()\"\n [disabled]=\"disabled()\"\n [attr.aria-label]=\"ariaLabel()\"\n [attr.aria-describedby]=\"ariaDescribedBy()\"\n [attr.aria-pressed]=\"selected()\"\n [attr.aria-haspopup]=\"ariaHasPopup()\"\n [attr.aria-expanded]=\"ariaExpanded()\"\n [attr.aria-controls]=\"ariaControls()\"\n (click)=\"onClick($event)\">\n <ds-icon\n [name]=\"icon()\"\n [size]=\"iconSize()\" />\n</button>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;AAiBA;;;AAGG;MASU,mBAAmB,CAAA;;AAErB,IAAA,IAAI,GAAG,KAAK,CAAC,QAAQ,0EAAY;;AAEjC,IAAA,SAAS,GAAG,KAAK,CAAC,QAAQ,+EAAU;AAC7C;AAC6B;AACpB,IAAA,eAAe,GAAG,KAAK,CAAgB,IAAI,sFAAC;;AAE5C,IAAA,OAAO,GAAG,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AA,cAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,OAAA,EAAA,EAAA,OAAA,EAAA,SAAA,EAAA,EAAA,WAAA,EAAA,CAAA,EAAA,YAAA,EAAA,YAAA,EAAA,KAAA,EAAA,IAAA,EAAA,SAAA,EAAA,CAAA,KAAA,CAAA,EAAA,WAAA,EAAA,IAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EC7BhC,mhBAiBA,EAAA,MAAA,EAAA,CAAA,o9QAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EDOY,aAAa,EAAA,QAAA,EAAA,SAAA,EAAA,MAAA,EAAA,CAAA,MAAA,EAAA,MAAA,EAAA,QAAA,EAAA,WAAA,CAAA,EAAA,CAAA,EAAA,CAAA;;4FAKZ,mBAAmB,EAAA,UAAA,EAAA,CAAA;kBAR/B,SAAS;+BACE,gBAAgB,EAAA,UAAA,EACd,IAAI,EAAA,OAAA,EACP,CAAC,aAAa,CAAC,EAAA,aAAA,EAGT,iBAAiB,CAAC,QAAQ,EAAA,QAAA,EAAA,mhBAAA,EAAA,MAAA,EAAA,CAAA,o9QAAA,CAAA,EAAA;iwCA4CyB,KAAK,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AEvEzE;;AAEG;;;;"}
@@ -112,6 +112,8 @@ class InputComponent extends DsControlValueAccessor {
112
112
  errors: this.errors,
113
113
  invalid: this.invalid,
114
114
  success: this.success,
115
+ touchedSelf: this.touchedSelf,
116
+ touched: this.touched,
115
117
  });
116
118
  message = this.fieldMessage.message;
117
119
  pendingShown = this.fieldMessage.pending;
@@ -1 +1 @@
1
- {"version":3,"file":"ids-group-ltd-ids-design-system-components-input.mjs","sources":["../../../src/lib/components/input/input.component.ts","../../../src/lib/components/input/input.component.html","../../../src/lib/components/input/ids-group-ltd-ids-design-system-components-input.ts"],"sourcesContent":["import {\n Component,\n ElementRef,\n ViewEncapsulation,\n booleanAttribute,\n computed,\n forwardRef,\n inject,\n input,\n model,\n output,\n viewChild,\n} from '@angular/core';\nimport { DS_INTL, optionalBound } from '@ids-group-ltd/ids-design-system/core';\nimport { FormsModule, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { IconComponent } from '@ids-group-ltd/ids-design-system/icons';\nimport { DsControlValueAccessor } from '@ids-group-ltd/ids-design-system/components';\nimport {\n FieldMessageComponent,\n FieldStatusComponent,\n} from '@ids-group-ltd/ids-design-system/components/field-message';\nimport {\n resolveFieldMessage,\n trimmedText,\n} from '@ids-group-ltd/ids-design-system/components';\nimport { nextControlId } from '@ids-group-ltd/ids-design-system/components';\nimport { FieldClickFocusDirective } from '@ids-group-ltd/ids-design-system/components';\nimport type { InputType } from './input.types';\nimport type { DsSize } from '@ids-group-ltd/ids-design-system/core';\nimport {\n describedByIds,\n groupInvalid,\n groupMessageId,\n inFieldGroup,\n} from '@ids-group-ltd/ids-design-system/components/field-group';\nimport { resolveWithConfig } from '@ids-group-ltd/ids-design-system/core';\n\n@Component({\n selector: 'ds-input',\n standalone: true,\n imports: [\n FormsModule,\n IconComponent,\n FieldMessageComponent,\n FieldStatusComponent,\n FieldClickFocusDirective,\n ],\n host: {\n '[attr.data-field-state]': 'controlState()',\n '[class.in-group]': 'inGroup',\n },\n templateUrl: './input.component.html',\n styleUrl: './input.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n providers: [\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => InputComponent),\n multi: true,\n },\n ],\n})\nexport class InputComponent extends DsControlValueAccessor<string> {\n protected readonly intl = inject(DS_INTL);\n private readonly control = viewChild<ElementRef<HTMLInputElement>>('control');\n protected readonly inGroup = inFieldGroup();\n\n /** Text value, two-way bound. */\n readonly value = model<string>('');\n /** Native input type; also drives the default clear button and password toggle. */\n readonly type = input<InputType>('text');\n /** Field height; falls back to `DS_CONFIG.control.size`, then `'md'`. */\n readonly size = input<DsSize | null>(null);\n readonly sizeResolved = resolveWithConfig(\n this.size,\n (config) => config.control?.size,\n 'md' as DsSize,\n );\n /** Label shown above the field. */\n readonly label = input<string>('');\n /** Placeholder shown when empty. */\n readonly placeholder = input<string>('');\n /** Disables the field and blocks all interaction. */\n readonly disabled = input(false, { transform: booleanAttribute });\n /** Prevents editing while still allowing focus and selection. */\n readonly readOnly = input(false, { transform: booleanAttribute });\n /** The contract spelling of `readOnly`: signal forms binds by NAME, so a `readonly()` rule reaches nothing without it. */\n readonly readonlyBinding = input(false, {\n // eslint-disable-next-line @angular-eslint/no-input-rename\n alias: 'readonly',\n transform: booleanAttribute,\n });\n protected readonly isReadOnly = computed(\n () => this.readOnly() || this.readonlyBinding(),\n );\n /** Confirmation text, shown when there is no error or warning; paints the success border. */\n readonly success = input<string, string | null | undefined>('', {\n transform: trimmedText,\n });\n /** Shows a trailing spinner, e.g. while async validation runs. The input stays editable. */\n readonly loading = input(false, { transform: booleanAttribute });\n /** Marks the field required - shows an asterisk and sets `aria-required`. */\n readonly required = input(false, { transform: booleanAttribute });\n /** Shows an \"(optional)\" marker next to the label (ignored when `required`). */\n readonly optional = input(false, { transform: booleanAttribute });\n /** Native `name` attribute. */\n readonly name = input<string | null>(null);\n /** Native `min` attribute - applies when `type=\"number\"`. */\n readonly min = input<number | null, number | null | undefined>(null, {\n transform: optionalBound,\n });\n /** Native `max` attribute - applies when `type=\"number\"`. */\n readonly max = input<number | null, number | null | undefined>(null, {\n transform: optionalBound,\n });\n /** Native `step` attribute - applies when `type=\"number\"`. */\n readonly step = input<number | null>(null);\n /** Native autocomplete token (e.g. \"email\", \"current-password\"). */\n readonly autocomplete = input<string | null>(null);\n /** Focuses the field automatically on render. */\n readonly autofocus = input(false, { transform: booleanAttribute });\n /** Accessible name when no visible `label` is provided; falls back to the placeholder. */\n readonly ariaLabel = input<string | null>(null);\n /** Extra element ids to describe the control with, merged with the field's own message id. Set on the inner `<input>`; on the host it would reach no screen reader. */\n readonly ariaDescribedBy = input<string | null>(null);\n /** Hard character cap: native maxlength plus a live \"{current}/{max}\" counter. */\n readonly maxLength = input<number | null, number | null | undefined>(null, {\n transform: optionalBound,\n });\n // Signal forms binds these by name; without them the native element advertises no rule.\n /** Native `minlength` attribute. */\n readonly minLength = input<number | null, number | null | undefined>(null, {\n transform: optionalBound,\n });\n /** Native `pattern` attribute - signal forms sends the schema's RegExp list. */\n readonly pattern = input<\n readonly RegExp[],\n readonly RegExp[] | string | undefined\n >([], {\n transform: (value) =>\n value === undefined\n ? []\n : typeof value === 'string'\n ? [new RegExp(value)]\n : value,\n });\n /** Native `enterkeyhint` attribute: labels the on-screen Enter key. */\n readonly enterKeyHint = input<\n 'enter' | 'done' | 'go' | 'next' | 'previous' | 'search' | 'send' | null\n >(null);\n /** Native `inputmode` attribute - hints the on-screen keyboard layout. */\n readonly inputMode = input<\n | 'none'\n | 'text'\n | 'decimal'\n | 'numeric'\n | 'tel'\n | 'search'\n | 'email'\n | 'url'\n | null\n >(null);\n /** Emits when the native input loses focus. */\n readonly blurred = output<void>();\n /** Shows a clear (×) button on a non-empty value. Defaults to true for `type=\"search\"`, false otherwise. */\n readonly clearable = input<boolean | null>(null);\n\n /** Shows a show/hide button when `type=\"password\"`. */\n readonly passwordToggle = input(false, { transform: booleanAttribute });\n /** Whether the password is currently shown as plain text, two-way bound. */\n readonly passwordVisible = model<boolean>(false);\n\n protected readonly canClear = computed<boolean>(() => {\n const explicit = this.clearable();\n if (explicit !== null) {\n return explicit;\n }\n\n return this.type() === 'search';\n });\n\n /** A native `pattern` takes one expression; several are ANDed with lookaheads. */\n protected readonly patternAttribute = computed(() => {\n const expressions = this.pattern();\n if (!expressions.length) {\n return null;\n }\n\n return (\n expressions.map((expression) => `(?=${expression.source})`).join('') +\n '.*'\n );\n });\n protected readonly uid = nextControlId('ds-input');\n protected readonly hintId = computed(() =>\n this.message().text || this.changedShown() ? `${this.uid}-hint` : null,\n );\n protected readonly describedBy = computed(() => {\n return describedByIds(\n this.hintId(),\n this.groupMessage(),\n this.ariaDescribedBy(),\n );\n });\n private readonly fieldMessage = resolveFieldMessage({\n pending: this.pending,\n dirty: this.dirty,\n showDirty: this.showDirtyResolved,\n disabled: () => this.isDisabled(),\n hint: this.hint,\n warning: this.warning,\n error: this.error,\n errors: this.errors,\n invalid: this.invalid,\n success: this.success,\n });\n protected readonly message = this.fieldMessage.message;\n protected readonly pendingShown = this.fieldMessage.pending;\n protected readonly changedShown = this.fieldMessage.changed;\n protected readonly controlState = this.fieldMessage.controlState;\n protected readonly groupMessage = groupMessageId();\n protected readonly invalidResolved = groupInvalid(this.fieldMessage.invalid);\n /** Only name via aria-label when there's no visible `<label for>`. */\n protected readonly resolvedAriaLabel = computed(() =>\n this.label() ? null : this.ariaLabel() || this.placeholder() || null,\n );\n\n protected readonly isDisabled = computed(\n () => this.disabled() || this.formDisabled(),\n );\n\n protected readonly currentLength = computed(() => this.value().length);\n protected readonly counterId = computed(() =>\n this.maxLength() !== null ? `${this.uid}-counter` : null,\n );\n\n protected readonly showPasswordToggle = computed<boolean>(\n () =>\n this.passwordToggle() && this.type() === 'password' && !this.isDisabled(),\n );\n\n protected readonly effectiveType = computed<InputType>(() =>\n this.passwordToggle() &&\n this.type() === 'password' &&\n this.passwordVisible()\n ? 'text'\n : this.type(),\n );\n\n protected togglePassword(): void {\n this.passwordVisible.update((visible) => !visible);\n }\n\n protected readonly wrapperClasses = computed(() => {\n const parts = ['field'];\n if (this.sizeResolved() === 'sm') {\n parts.push('sm');\n }\n if (this.sizeResolved() === 'lg') {\n parts.push('lg');\n }\n if (this.invalidResolved()) {\n parts.push('error');\n } else if (this.success().trim()) {\n parts.push('success');\n }\n if (this.isDisabled()) {\n parts.push('disabled');\n }\n if (this.isReadOnly()) {\n parts.push('read-only');\n }\n if (this.loading() || this.pendingShown()) {\n parts.push('loading');\n }\n\n return parts.join(' ');\n });\n\n /** Moves keyboard focus to the native input. */\n override focus(options?: FocusOptions): void {\n this.control()?.nativeElement.focus(options);\n }\n\n protected clear(): void {\n this.value.set('');\n }\n}\n","<div [class]=\"wrapperClasses()\">\n @if (label()) {\n <label\n class=\"label\"\n [attr.for]=\"uid\">\n {{ label() }}\n @if (required()) {\n <span\n class=\"req\"\n aria-hidden=\"true\">\n *\n </span>\n } @else if (optional()) {\n <span\n class=\"optional-marker\"\n aria-hidden=\"true\">\n {{ intl().field.optional }}\n </span>\n }\n </label>\n }\n\n <div\n class=\"control\"\n dsFieldClickFocus>\n <span class=\"addon-slot prefix\">\n <ng-content select=\"[dsInputPrefix]\"></ng-content>\n </span>\n\n <input\n #control\n [id]=\"uid\"\n [type]=\"effectiveType()\"\n [attr.name]=\"name()\"\n [attr.min]=\"min()\"\n [attr.max]=\"max()\"\n [attr.step]=\"step()\"\n [attr.autocomplete]=\"autocomplete()\"\n [attr.autofocus]=\"autofocus() ? '' : null\"\n [attr.placeholder]=\"placeholder() || null\"\n [attr.aria-label]=\"resolvedAriaLabel()\"\n [attr.aria-invalid]=\"invalidResolved() ? 'true' : null\"\n [attr.aria-describedby]=\"describedBy()\"\n [attr.aria-required]=\"required() ? 'true' : null\"\n [attr.enterkeyhint]=\"enterKeyHint()\"\n [attr.inputmode]=\"inputMode()\"\n [attr.maxlength]=\"maxLength()\"\n [attr.minlength]=\"minLength()\"\n [attr.pattern]=\"patternAttribute()\"\n [disabled]=\"isDisabled()\"\n [readOnly]=\"isReadOnly()\"\n [required]=\"required()\"\n [(ngModel)]=\"value\"\n (blur)=\"blurred.emit(); markTouched()\" />\n\n @if (\n canClear() &&\n value() &&\n !isDisabled()\n ) {\n <button\n type=\"button\"\n class=\"clear-btn\"\n [attr.aria-label]=\"intl().field.clearInput\"\n (click)=\"clear()\">\n </button>\n }\n\n @if (showPasswordToggle()) {\n <button\n type=\"button\"\n class=\"password-toggle\"\n tabindex=\"-1\"\n [attr.aria-label]=\"\n passwordVisible()\n ? intl().field.hidePassword\n : intl().field.showPassword\n \"\n (click)=\"togglePassword()\">\n <ds-icon\n [name]=\"passwordVisible() ? 'eye-off' : 'eye'\"\n [size]=\"16\" />\n </button>\n }\n\n <ds-field-status\n [pending]=\"loading() || pendingShown()\"\n [changed]=\"changedShown()\" />\n\n <span class=\"addon-slot suffix\">\n <ng-content select=\"[dsInputSuffix]\"></ng-content>\n </span>\n </div>\n\n @if (\n reserveMessageResolved() ||\n message().text ||\n changedShown() ||\n maxLength() !== null\n ) {\n <div class=\"field-footer\">\n <ds-field-message\n [icon]=\"messageIcon()\"\n [text]=\"message().text\"\n [state]=\"message().state\"\n [messageId]=\"hintId()\"\n [reserve]=\"reserveMessageResolved()\"\n [changed]=\"changedShown()\" />\n\n @if (maxLength() !== null) {\n <span\n class=\"char-counter\"\n aria-live=\"polite\"\n aria-atomic=\"true\"\n [id]=\"counterId()\">\n {{ currentLength() }}/{{ maxLength() }}\n </span>\n }\n </div>\n }\n</div>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;AA8DM,MAAO,cAAe,SAAQ,sBAA8B,CAAA;AAC7C,IAAA,IAAI,GAAG,MAAM,CAAC,OAAO,CAAC;AACxB,IAAA,OAAO,GAAG,SAAS,CAA+B,SAAS,8EAAC;IAC1D,OAAO,GAAG,YAAY,EAAE;;AAGlC,IAAA,KAAK,GAAG,KAAK,CAAS,EAAE,4EAAC;;AAEzB,IAAA,IAAI,GAAG,KAAK,CAAY,MAAM,2EAAC;;AAE/B,IAAA,IAAI,GAAG,KAAK,CAAgB,IAAI,2EAAC;IACjC,YAAY,GAAG,iBAAiB,CACvC,IAAI,CAAC,IAAI,EACT,CAAC,MAAM,KAAK,MAAM,CAAC,OAAO,EAAE,IAAI,EAChC,IAAc,CACf;;AAEQ,IAAA,KAAK,GAAG,KAAK,CAAS,EAAE,4EAAC;;AAEzB,IAAA,WAAW,GAAG,KAAK,CAAS,EAAE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KAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,KAAA,EAAA,WAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,OAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,MAAA,EAAA,IAAA,EAAA,CAAA,SAAA,CAAA,EAAA,CAAA,EAAA,SAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,KAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,KAAA,EAAA,WAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,cAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,KAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,KAAA,EAAA,gBAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,KAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,EAAA,CAAA,MAAA,EAAA,IAAA,EAAA,CAAA,uBAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AEhE9E;;AAEG;;;;"}
1
+ {"version":3,"file":"ids-group-ltd-ids-design-system-components-input.mjs","sources":["../../../src/lib/components/input/input.component.ts","../../../src/lib/components/input/input.component.html","../../../src/lib/components/input/ids-group-ltd-ids-design-system-components-input.ts"],"sourcesContent":["import {\n Component,\n ElementRef,\n ViewEncapsulation,\n booleanAttribute,\n computed,\n forwardRef,\n inject,\n input,\n model,\n output,\n viewChild,\n} from '@angular/core';\nimport { DS_INTL, optionalBound } from '@ids-group-ltd/ids-design-system/core';\nimport { FormsModule, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { IconComponent } from '@ids-group-ltd/ids-design-system/icons';\nimport { DsControlValueAccessor } from '@ids-group-ltd/ids-design-system/components';\nimport {\n FieldMessageComponent,\n FieldStatusComponent,\n} from '@ids-group-ltd/ids-design-system/components/field-message';\nimport {\n resolveFieldMessage,\n trimmedText,\n} from '@ids-group-ltd/ids-design-system/components';\nimport { nextControlId } from '@ids-group-ltd/ids-design-system/components';\nimport { FieldClickFocusDirective } from '@ids-group-ltd/ids-design-system/components';\nimport type { InputType } from './input.types';\nimport type { DsSize } from '@ids-group-ltd/ids-design-system/core';\nimport {\n describedByIds,\n groupInvalid,\n groupMessageId,\n inFieldGroup,\n} from '@ids-group-ltd/ids-design-system/components/field-group';\nimport { resolveWithConfig } from '@ids-group-ltd/ids-design-system/core';\n\n@Component({\n selector: 'ds-input',\n standalone: true,\n imports: [\n FormsModule,\n IconComponent,\n FieldMessageComponent,\n FieldStatusComponent,\n FieldClickFocusDirective,\n ],\n host: {\n '[attr.data-field-state]': 'controlState()',\n '[class.in-group]': 'inGroup',\n },\n templateUrl: './input.component.html',\n styleUrl: './input.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n providers: [\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => InputComponent),\n multi: true,\n },\n ],\n})\nexport class InputComponent extends DsControlValueAccessor<string> {\n protected readonly intl = inject(DS_INTL);\n private readonly control = viewChild<ElementRef<HTMLInputElement>>('control');\n protected readonly inGroup = inFieldGroup();\n\n /** Text value, two-way bound. */\n readonly value = model<string>('');\n /** Native input type; also drives the default clear button and password toggle. */\n readonly type = input<InputType>('text');\n /** Field height; falls back to `DS_CONFIG.control.size`, then `'md'`. */\n readonly size = input<DsSize | null>(null);\n readonly sizeResolved = resolveWithConfig(\n this.size,\n (config) => config.control?.size,\n 'md' as DsSize,\n );\n /** Label shown above the field. */\n readonly label = input<string>('');\n /** Placeholder shown when empty. */\n readonly placeholder = input<string>('');\n /** Disables the field and blocks all interaction. */\n readonly disabled = input(false, { transform: booleanAttribute });\n /** Prevents editing while still allowing focus and selection. */\n readonly readOnly = input(false, { transform: booleanAttribute });\n /** The contract spelling of `readOnly`: signal forms binds by NAME, so a `readonly()` rule reaches nothing without it. */\n readonly readonlyBinding = input(false, {\n // eslint-disable-next-line @angular-eslint/no-input-rename\n alias: 'readonly',\n transform: booleanAttribute,\n });\n protected readonly isReadOnly = computed(\n () => this.readOnly() || this.readonlyBinding(),\n );\n /** Confirmation text, shown when there is no error or warning; paints the success border. */\n readonly success = input<string, string | null | undefined>('', {\n transform: trimmedText,\n });\n /** Shows a trailing spinner, e.g. while async validation runs. The input stays editable. */\n readonly loading = input(false, { transform: booleanAttribute });\n /** Marks the field required - shows an asterisk and sets `aria-required`. */\n readonly required = input(false, { transform: booleanAttribute });\n /** Shows an \"(optional)\" marker next to the label (ignored when `required`). */\n readonly optional = input(false, { transform: booleanAttribute });\n /** Native `name` attribute. */\n readonly name = input<string | null>(null);\n /** Native `min` attribute - applies when `type=\"number\"`. */\n readonly min = input<number | null, number | null | undefined>(null, {\n transform: optionalBound,\n });\n /** Native `max` attribute - applies when `type=\"number\"`. */\n readonly max = input<number | null, number | null | undefined>(null, {\n transform: optionalBound,\n });\n /** Native `step` attribute - applies when `type=\"number\"`. */\n readonly step = input<number | null>(null);\n /** Native autocomplete token (e.g. \"email\", \"current-password\"). */\n readonly autocomplete = input<string | null>(null);\n /** Focuses the field automatically on render. */\n readonly autofocus = input(false, { transform: booleanAttribute });\n /** Accessible name when no visible `label` is provided; falls back to the placeholder. */\n readonly ariaLabel = input<string | null>(null);\n /** Extra element ids to describe the control with, merged with the field's own message id. Set on the inner `<input>`; on the host it would reach no screen reader. */\n readonly ariaDescribedBy = input<string | null>(null);\n /** Hard character cap: native maxlength plus a live \"{current}/{max}\" counter. */\n readonly maxLength = input<number | null, number | null | undefined>(null, {\n transform: optionalBound,\n });\n // Signal forms binds these by name; without them the native element advertises no rule.\n /** Native `minlength` attribute. */\n readonly minLength = input<number | null, number | null | undefined>(null, {\n transform: optionalBound,\n });\n /** Native `pattern` attribute - signal forms sends the schema's RegExp list. */\n readonly pattern = input<\n readonly RegExp[],\n readonly RegExp[] | string | undefined\n >([], {\n transform: (value) =>\n value === undefined\n ? []\n : typeof value === 'string'\n ? [new RegExp(value)]\n : value,\n });\n /** Native `enterkeyhint` attribute: labels the on-screen Enter key. */\n readonly enterKeyHint = input<\n 'enter' | 'done' | 'go' | 'next' | 'previous' | 'search' | 'send' | null\n >(null);\n /** Native `inputmode` attribute - hints the on-screen keyboard layout. */\n readonly inputMode = input<\n | 'none'\n | 'text'\n | 'decimal'\n | 'numeric'\n | 'tel'\n | 'search'\n | 'email'\n | 'url'\n | null\n >(null);\n /** Emits when the native input loses focus. */\n readonly blurred = output<void>();\n /** Shows a clear (×) button on a non-empty value. Defaults to true for `type=\"search\"`, false otherwise. */\n readonly clearable = input<boolean | null>(null);\n\n /** Shows a show/hide button when `type=\"password\"`. */\n readonly passwordToggle = input(false, { transform: booleanAttribute });\n /** Whether the password is currently shown as plain text, two-way bound. */\n readonly passwordVisible = model<boolean>(false);\n\n protected readonly canClear = computed<boolean>(() => {\n const explicit = this.clearable();\n if (explicit !== null) {\n return explicit;\n }\n\n return this.type() === 'search';\n });\n\n /** A native `pattern` takes one expression; several are ANDed with lookaheads. */\n protected readonly patternAttribute = computed(() => {\n const expressions = this.pattern();\n if (!expressions.length) {\n return null;\n }\n\n return (\n expressions.map((expression) => `(?=${expression.source})`).join('') +\n '.*'\n );\n });\n protected readonly uid = nextControlId('ds-input');\n protected readonly hintId = computed(() =>\n this.message().text || this.changedShown() ? `${this.uid}-hint` : null,\n );\n protected readonly describedBy = computed(() => {\n return describedByIds(\n this.hintId(),\n this.groupMessage(),\n this.ariaDescribedBy(),\n );\n });\n private readonly fieldMessage = resolveFieldMessage({\n pending: this.pending,\n dirty: this.dirty,\n showDirty: this.showDirtyResolved,\n disabled: () => this.isDisabled(),\n hint: this.hint,\n warning: this.warning,\n error: this.error,\n errors: this.errors,\n invalid: this.invalid,\n success: this.success,\n touchedSelf: this.touchedSelf,\n touched: this.touched,\n });\n protected readonly message = this.fieldMessage.message;\n protected readonly pendingShown = this.fieldMessage.pending;\n protected readonly changedShown = this.fieldMessage.changed;\n protected readonly controlState = this.fieldMessage.controlState;\n protected readonly groupMessage = groupMessageId();\n protected readonly invalidResolved = groupInvalid(this.fieldMessage.invalid);\n /** Only name via aria-label when there's no visible `<label for>`. */\n protected readonly resolvedAriaLabel = computed(() =>\n this.label() ? null : this.ariaLabel() || this.placeholder() || null,\n );\n\n protected readonly isDisabled = computed(\n () => this.disabled() || this.formDisabled(),\n );\n\n protected readonly currentLength = computed(() => this.value().length);\n protected readonly counterId = computed(() =>\n this.maxLength() !== null ? `${this.uid}-counter` : null,\n );\n\n protected readonly showPasswordToggle = computed<boolean>(\n () =>\n this.passwordToggle() && this.type() === 'password' && !this.isDisabled(),\n );\n\n protected readonly effectiveType = computed<InputType>(() =>\n this.passwordToggle() &&\n this.type() === 'password' &&\n this.passwordVisible()\n ? 'text'\n : this.type(),\n );\n\n protected togglePassword(): void {\n this.passwordVisible.update((visible) => !visible);\n }\n\n protected readonly wrapperClasses = computed(() => {\n const parts = ['field'];\n if (this.sizeResolved() === 'sm') {\n parts.push('sm');\n }\n if (this.sizeResolved() === 'lg') {\n parts.push('lg');\n }\n if (this.invalidResolved()) {\n parts.push('error');\n } else if (this.success().trim()) {\n parts.push('success');\n }\n if (this.isDisabled()) {\n parts.push('disabled');\n }\n if (this.isReadOnly()) {\n parts.push('read-only');\n }\n if (this.loading() || this.pendingShown()) {\n parts.push('loading');\n }\n\n return parts.join(' ');\n });\n\n /** Moves keyboard focus to the native input. */\n override focus(options?: FocusOptions): void {\n this.control()?.nativeElement.focus(options);\n }\n\n protected clear(): void {\n this.value.set('');\n }\n}\n","<div [class]=\"wrapperClasses()\">\n @if (label()) {\n <label\n class=\"label\"\n [attr.for]=\"uid\">\n {{ label() }}\n @if (required()) {\n <span\n class=\"req\"\n aria-hidden=\"true\">\n *\n </span>\n } @else if (optional()) {\n <span\n class=\"optional-marker\"\n aria-hidden=\"true\">\n {{ intl().field.optional }}\n </span>\n }\n </label>\n }\n\n <div\n class=\"control\"\n dsFieldClickFocus>\n <span class=\"addon-slot prefix\">\n <ng-content select=\"[dsInputPrefix]\"></ng-content>\n </span>\n\n <input\n #control\n [id]=\"uid\"\n [type]=\"effectiveType()\"\n [attr.name]=\"name()\"\n [attr.min]=\"min()\"\n [attr.max]=\"max()\"\n [attr.step]=\"step()\"\n [attr.autocomplete]=\"autocomplete()\"\n [attr.autofocus]=\"autofocus() ? '' : null\"\n [attr.placeholder]=\"placeholder() || null\"\n [attr.aria-label]=\"resolvedAriaLabel()\"\n [attr.aria-invalid]=\"invalidResolved() ? 'true' : null\"\n [attr.aria-describedby]=\"describedBy()\"\n [attr.aria-required]=\"required() ? 'true' : null\"\n [attr.enterkeyhint]=\"enterKeyHint()\"\n [attr.inputmode]=\"inputMode()\"\n [attr.maxlength]=\"maxLength()\"\n [attr.minlength]=\"minLength()\"\n [attr.pattern]=\"patternAttribute()\"\n [disabled]=\"isDisabled()\"\n [readOnly]=\"isReadOnly()\"\n [required]=\"required()\"\n [(ngModel)]=\"value\"\n (blur)=\"blurred.emit(); markTouched()\" />\n\n @if (\n canClear() &&\n value() &&\n !isDisabled()\n ) {\n <button\n type=\"button\"\n class=\"clear-btn\"\n [attr.aria-label]=\"intl().field.clearInput\"\n (click)=\"clear()\">\n </button>\n }\n\n @if (showPasswordToggle()) {\n <button\n type=\"button\"\n class=\"password-toggle\"\n tabindex=\"-1\"\n [attr.aria-label]=\"\n passwordVisible()\n ? intl().field.hidePassword\n : intl().field.showPassword\n \"\n (click)=\"togglePassword()\">\n <ds-icon\n [name]=\"passwordVisible() ? 'eye-off' : 'eye'\"\n [size]=\"16\" />\n </button>\n }\n\n <ds-field-status\n [pending]=\"loading() || pendingShown()\"\n [changed]=\"changedShown()\" />\n\n <span class=\"addon-slot suffix\">\n <ng-content select=\"[dsInputSuffix]\"></ng-content>\n </span>\n </div>\n\n @if (\n reserveMessageResolved() ||\n message().text ||\n changedShown() ||\n maxLength() !== null\n ) {\n <div class=\"field-footer\">\n <ds-field-message\n [icon]=\"messageIcon()\"\n [text]=\"message().text\"\n [state]=\"message().state\"\n [messageId]=\"hintId()\"\n [reserve]=\"reserveMessageResolved()\"\n [changed]=\"changedShown()\" />\n\n @if (maxLength() !== null) {\n <span\n class=\"char-counter\"\n aria-live=\"polite\"\n aria-atomic=\"true\"\n [id]=\"counterId()\">\n {{ currentLength() }}/{{ maxLength() }}\n </span>\n }\n </div>\n }\n</div>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;AA8DM,MAAO,cAAe,SAAQ,sBAA8B,CAAA;AAC7C,IAAA,IAAI,GAAG,MAAM,CAAC,OAAO,CAAC;AACxB,IAAA,OAAO,GAAG,SAAS,CAA+B,SAAS,8EAAC;IAC1D,OAAO,GAAG,YAAY,EAAE;;AAGlC,IAAA,KAAK,GAAG,KAAK,CAAS,EAAE,4EAAC;;AAEzB,IAAA,IAAI,GAAG,KAAK,CAAY,MAAM,2EAAC;;AAE/B,IAAA,IAAI,GAAG,KAAK,CAAgB,IAAI,2EAAC;IACjC,YAAY,GAAG,iBAAiB,CACvC,IAAI,CAAC,IAAI,EACT,CAAC,MAAM,KAAK,MAAM,CAAC,OAAO,EAAE,IAAI,EAChC,IAAc,CACf;;AAEQ,IAAA,KAAK,GAAG,KAAK,CAAS,EAAE,4EAAC;;AAEzB,IAAA,WAAW,GAAG,KAAK,CAAS,EAAE,kFAAC;;IAE/B,QAAQ,GAAG,KAAK,CAAC,KAAK,gFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;;IAExD,QAAQ,GAAG,KAAK,CAAC,KAAK,gFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;;IAExD,eAAe,GAAG,KAAK,CAAC,KAAK,EAAA,EAAA,IA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CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,MAAA,EAAA,IAAA,EAAA,CAAA,SAAA,CAAA,EAAA,CAAA,EAAA,SAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,KAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,KAAA,EAAA,WAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,cAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,KAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,KAAA,EAAA,gBAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,KAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,EAAA,CAAA,MAAA,EAAA,IAAA,EAAA,CAAA,uBAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AEhE9E;;AAEG;;;;"}
@@ -293,11 +293,11 @@ class MenuItemComponent {
293
293
  }
294
294
  }
295
295
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: MenuItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
296
- 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: [":where(:host){box-sizing:border-box;interpolate-size:allow-keywords}:where(*){box-sizing:border-box}:where(button,input,select,textarea){font-family:inherit}:where(h1,h2,h3,h4,h5,h6){margin:0}:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard);border-radius:var(--focus-ring-radius)}@media(forced-colors:active){:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}:host{--_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-padding-x: var(--ds-menu-item-padding-x, var(--space-3));--_menu-item-padding-y: var(--ds-menu-item-padding-y, var(--space-2));--_menu-item-label-font-weight: var(--ds-menu-item-label-font-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-padding-y) var(--_menu-item-padding-x);background:transparent;border:0;border-radius:var(--ds-menu-item-radius, 0);font:var(--_menu-item-label-font-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.error:active:not(.disabled){background:var(--error-muted)}.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"] }] });
296
+ 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: [":where(:host){box-sizing:border-box;interpolate-size:allow-keywords}:where(*){box-sizing:border-box}:where(button,input,select,textarea){font-family:inherit}:where(h1,h2,h3,h4,h5,h6){margin:0}:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard);border-radius:var(--focus-ring-radius)}@media(forced-colors:active){:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}:host{--_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-padding-x: var(--ds-menu-item-padding-x, var(--space-3));--_menu-item-padding-y: var(--ds-menu-item-padding-y, var(--space-2));--_menu-item-label-font-weight: var(--ds-menu-item-label-font-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-padding-y) var(--_menu-item-padding-x);background:transparent;border:0;border-radius:var(--ds-menu-item-radius, 0);font:var(--_menu-item-label-font-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)}:host(:first-child) .menu-item{border-start-start-radius:var(--ds-menu-item-radius, var(--_menu-edge-radius, 0));border-start-end-radius:var(--ds-menu-item-radius, var(--_menu-edge-radius, 0))}:host(:last-child) .menu-item{border-end-start-radius:var(--ds-menu-item-radius, var(--_menu-edge-radius, 0));border-end-end-radius:var(--ds-menu-item-radius, var(--_menu-edge-radius, 0))}.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:calc(-1 * var(--focus-ring-width));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.error:active:not(.disabled){background:var(--error-muted)}.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"] }] });
297
297
  }
298
298
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: MenuItemComponent, decorators: [{
299
299
  type: Component,
300
- 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: [":where(:host){box-sizing:border-box;interpolate-size:allow-keywords}:where(*){box-sizing:border-box}:where(button,input,select,textarea){font-family:inherit}:where(h1,h2,h3,h4,h5,h6){margin:0}:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard);border-radius:var(--focus-ring-radius)}@media(forced-colors:active){:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}:host{--_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-padding-x: var(--ds-menu-item-padding-x, var(--space-3));--_menu-item-padding-y: var(--ds-menu-item-padding-y, var(--space-2));--_menu-item-label-font-weight: var(--ds-menu-item-label-font-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-padding-y) var(--_menu-item-padding-x);background:transparent;border:0;border-radius:var(--ds-menu-item-radius, 0);font:var(--_menu-item-label-font-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.error:active:not(.disabled){background:var(--error-muted)}.menu-item .submenu-chevron{margin-left:auto;color:var(--icon-muted);flex-shrink:0}\n"] }]
300
+ 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: [":where(:host){box-sizing:border-box;interpolate-size:allow-keywords}:where(*){box-sizing:border-box}:where(button,input,select,textarea){font-family:inherit}:where(h1,h2,h3,h4,h5,h6){margin:0}:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard);border-radius:var(--focus-ring-radius)}@media(forced-colors:active){:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}:host{--_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-padding-x: var(--ds-menu-item-padding-x, var(--space-3));--_menu-item-padding-y: var(--ds-menu-item-padding-y, var(--space-2));--_menu-item-label-font-weight: var(--ds-menu-item-label-font-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-padding-y) var(--_menu-item-padding-x);background:transparent;border:0;border-radius:var(--ds-menu-item-radius, 0);font:var(--_menu-item-label-font-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)}:host(:first-child) .menu-item{border-start-start-radius:var(--ds-menu-item-radius, var(--_menu-edge-radius, 0));border-start-end-radius:var(--ds-menu-item-radius, var(--_menu-edge-radius, 0))}:host(:last-child) .menu-item{border-end-start-radius:var(--ds-menu-item-radius, var(--_menu-edge-radius, 0));border-end-end-radius:var(--ds-menu-item-radius, var(--_menu-edge-radius, 0))}.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:calc(-1 * var(--focus-ring-width));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.error:active:not(.disabled){background:var(--error-muted)}.menu-item .submenu-chevron{margin-left:auto;color:var(--icon-muted);flex-shrink:0}\n"] }]
301
301
  }], 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"] }] } });
302
302
 
303
303
  class MenuComponent {
@@ -396,7 +396,7 @@ class MenuComponent {
396
396
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: MenuComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
397
397
  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)", "focusin": "onFocusIn($event)", "focusout": "onFocusOut($event)" }, properties: { "class.has-icons": "anyIcon()" } }, providers: [
398
398
  { provide: MenuAim, useFactory: () => new MenuAim(inject(DOCUMENT)) },
399
- ], 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: [":where(:host){box-sizing:border-box;interpolate-size:allow-keywords}:where(*){box-sizing:border-box}:where(button,input,select,textarea){font-family:inherit}:where(h1,h2,h3,h4,h5,h6){margin:0}:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard);border-radius:var(--focus-ring-radius)}@media(forced-colors:active){:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}:host{--_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"] });
399
+ ], 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: [":where(:host){box-sizing:border-box;interpolate-size:allow-keywords}:where(*){box-sizing:border-box}:where(button,input,select,textarea){font-family:inherit}:where(h1,h2,h3,h4,h5,h6){margin:0}:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard);border-radius:var(--focus-ring-radius)}@media(forced-colors:active){:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}:host{--_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, 0px);--_menu-edge-radius: calc(var(--ds-menu-radius, var(--radius-md)) - var(--border-width-default));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-edge-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"] });
400
400
  }
401
401
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: MenuComponent, decorators: [{
402
402
  type: Component,
@@ -408,7 +408,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImpo
408
408
  '(focusout)': 'onFocusOut($event)',
409
409
  'data-focus': 'inset',
410
410
  '[class.has-icons]': 'anyIcon()',
411
- }, template: "<ul\n class=\"menu\"\n role=\"menu\">\n <ng-content></ng-content>\n</ul>\n", styles: [":where(:host){box-sizing:border-box;interpolate-size:allow-keywords}:where(*){box-sizing:border-box}:where(button,input,select,textarea){font-family:inherit}:where(h1,h2,h3,h4,h5,h6){margin:0}:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard);border-radius:var(--focus-ring-radius)}@media(forced-colors:active){:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}:host{--_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"] }]
411
+ }, template: "<ul\n class=\"menu\"\n role=\"menu\">\n <ng-content></ng-content>\n</ul>\n", styles: [":where(:host){box-sizing:border-box;interpolate-size:allow-keywords}:where(*){box-sizing:border-box}:where(button,input,select,textarea){font-family:inherit}:where(h1,h2,h3,h4,h5,h6){margin:0}:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard);border-radius:var(--focus-ring-radius)}@media(forced-colors:active){:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}:host{--_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, 0px);--_menu-edge-radius: calc(var(--ds-menu-radius, var(--radius-md)) - var(--border-width-default));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-edge-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"] }]
412
412
  }], ctorParameters: () => [], propDecorators: { items: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => MenuItemComponent), { isSignal: true }] }] } });
413
413
 
414
414
  class MenuDividerComponent {