@slotted/angular 0.1.0-beta.12 → 0.1.0-beta.14

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 (115) hide show
  1. package/docs/action-bar.json +1 -0
  2. package/docs/action-bar.md +1 -1
  3. package/docs/action-sheet.json +391 -64
  4. package/docs/action-sheet.md +259 -0
  5. package/docs/alert.json +1 -1
  6. package/docs/alert.md +1 -1
  7. package/docs/combobox.json +1 -0
  8. package/docs/combobox.md +1 -1
  9. package/docs/data-grid.json +1 -1
  10. package/docs/date-picker.json +1 -0
  11. package/docs/date-picker.md +1 -1
  12. package/docs/drawer.json +1 -0
  13. package/docs/drawer.md +1 -1
  14. package/docs/entity-picker.json +1 -0
  15. package/docs/entity-picker.md +1 -1
  16. package/docs/inline-message.json +1 -1
  17. package/docs/inline-message.md +1 -1
  18. package/docs/kbd.json +3 -0
  19. package/docs/kbd.md +1 -1
  20. package/docs/menu.json +1 -0
  21. package/docs/menu.md +1 -1
  22. package/docs/popover.json +1 -0
  23. package/docs/popover.md +1 -1
  24. package/docs/scroll-area.json +266 -64
  25. package/docs/scroll-area.md +188 -0
  26. package/docs/section.json +11 -1
  27. package/docs/section.md +13 -12
  28. package/docs/select.json +1 -0
  29. package/docs/select.md +1 -1
  30. package/docs/skills/theme-app/SKILL.md +18 -4
  31. package/docs/splitter.json +279 -64
  32. package/docs/splitter.md +215 -0
  33. package/docs/status-indicator.json +16 -5
  34. package/docs/status-indicator.md +3 -1
  35. package/docs/table-of-contents.json +2 -1
  36. package/docs/table-of-contents.md +2 -2
  37. package/docs/tooltip.json +1 -0
  38. package/docs/tooltip.md +1 -1
  39. package/fesm2022/slotted-angular-action-bar.mjs +2 -2
  40. package/fesm2022/slotted-angular-action-bar.mjs.map +1 -1
  41. package/fesm2022/slotted-angular-alert.mjs +7 -7
  42. package/fesm2022/slotted-angular-alert.mjs.map +1 -1
  43. package/fesm2022/slotted-angular-chart.mjs +2 -2
  44. package/fesm2022/slotted-angular-chart.mjs.map +1 -1
  45. package/fesm2022/slotted-angular-combobox.mjs +2 -2
  46. package/fesm2022/slotted-angular-combobox.mjs.map +1 -1
  47. package/fesm2022/slotted-angular-date-picker.mjs +2 -2
  48. package/fesm2022/slotted-angular-date-picker.mjs.map +1 -1
  49. package/fesm2022/slotted-angular-dialog.mjs +8 -8
  50. package/fesm2022/slotted-angular-dialog.mjs.map +1 -1
  51. package/fesm2022/slotted-angular-drawer.mjs +172 -51
  52. package/fesm2022/slotted-angular-drawer.mjs.map +1 -1
  53. package/fesm2022/slotted-angular-entity-picker.mjs +2 -2
  54. package/fesm2022/slotted-angular-entity-picker.mjs.map +1 -1
  55. package/fesm2022/slotted-angular-icon.mjs +185 -87
  56. package/fesm2022/slotted-angular-icon.mjs.map +1 -1
  57. package/fesm2022/slotted-angular-inline-message.mjs +7 -7
  58. package/fesm2022/slotted-angular-inline-message.mjs.map +1 -1
  59. package/fesm2022/slotted-angular-kbd.mjs +4 -4
  60. package/fesm2022/slotted-angular-kbd.mjs.map +1 -1
  61. package/fesm2022/slotted-angular-menu.mjs +2 -2
  62. package/fesm2022/slotted-angular-menu.mjs.map +1 -1
  63. package/fesm2022/slotted-angular-multi-select.mjs +2 -2
  64. package/fesm2022/slotted-angular-multi-select.mjs.map +1 -1
  65. package/fesm2022/slotted-angular-popover.mjs +2 -2
  66. package/fesm2022/slotted-angular-popover.mjs.map +1 -1
  67. package/fesm2022/slotted-angular-section.mjs +30 -3
  68. package/fesm2022/slotted-angular-section.mjs.map +1 -1
  69. package/fesm2022/slotted-angular-select.mjs +2 -2
  70. package/fesm2022/slotted-angular-select.mjs.map +1 -1
  71. package/fesm2022/slotted-angular-status-indicator.mjs +30 -13
  72. package/fesm2022/slotted-angular-status-indicator.mjs.map +1 -1
  73. package/fesm2022/slotted-angular-table-of-contents.mjs +2 -2
  74. package/fesm2022/slotted-angular-table-of-contents.mjs.map +1 -1
  75. package/fesm2022/slotted-angular-theme.mjs +6 -3
  76. package/fesm2022/slotted-angular-theme.mjs.map +1 -1
  77. package/fesm2022/slotted-angular-toast.mjs +8 -8
  78. package/fesm2022/slotted-angular-toast.mjs.map +1 -1
  79. package/fesm2022/slotted-angular-tooltip.mjs +2 -2
  80. package/fesm2022/slotted-angular-tooltip.mjs.map +1 -1
  81. package/package.json +3 -3
  82. package/types/slotted-angular-alert.d.ts +2 -1
  83. package/types/slotted-angular-alert.d.ts.map +1 -1
  84. package/types/slotted-angular-attachment.d.ts +2 -1
  85. package/types/slotted-angular-attachment.d.ts.map +1 -1
  86. package/types/slotted-angular-code-block.d.ts +2 -1
  87. package/types/slotted-angular-code-block.d.ts.map +1 -1
  88. package/types/slotted-angular-collapsible.d.ts +2 -1
  89. package/types/slotted-angular-collapsible.d.ts.map +1 -1
  90. package/types/slotted-angular-combobox.d.ts +2 -1
  91. package/types/slotted-angular-combobox.d.ts.map +1 -1
  92. package/types/slotted-angular-dialog.d.ts +2 -1
  93. package/types/slotted-angular-dialog.d.ts.map +1 -1
  94. package/types/slotted-angular-drawer.d.ts +17 -0
  95. package/types/slotted-angular-drawer.d.ts.map +1 -1
  96. package/types/slotted-angular-icon.d.ts +12 -2
  97. package/types/slotted-angular-icon.d.ts.map +1 -1
  98. package/types/slotted-angular-inline-message.d.ts +3 -2
  99. package/types/slotted-angular-inline-message.d.ts.map +1 -1
  100. package/types/slotted-angular-multi-select.d.ts +2 -1
  101. package/types/slotted-angular-multi-select.d.ts.map +1 -1
  102. package/types/slotted-angular-section.d.ts +3 -1
  103. package/types/slotted-angular-section.d.ts.map +1 -1
  104. package/types/slotted-angular-select.d.ts +2 -1
  105. package/types/slotted-angular-select.d.ts.map +1 -1
  106. package/types/slotted-angular-status-indicator.d.ts +13 -3
  107. package/types/slotted-angular-status-indicator.d.ts.map +1 -1
  108. package/types/slotted-angular-stepper.d.ts +2 -1
  109. package/types/slotted-angular-stepper.d.ts.map +1 -1
  110. package/types/slotted-angular-theme.d.ts +6 -4
  111. package/types/slotted-angular-theme.d.ts.map +1 -1
  112. package/types/slotted-angular-toast.d.ts +4 -2
  113. package/types/slotted-angular-toast.d.ts.map +1 -1
  114. package/types/slotted-angular-upload.d.ts +4 -2
  115. package/types/slotted-angular-upload.d.ts.map +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"slotted-angular-action-bar.mjs","sources":["../../action-bar/src/action-bar-defaults.ts","../../action-bar/src/action-bar.ts","../../action-bar/src/action-bar-overflow.ts","../../action-bar/src/slotted-angular-action-bar.ts"],"sourcesContent":["import { inject, InjectionToken } from '@angular/core';\n\n/** Whether the bar paints a ground and a rule of its own. */\nexport type ActionBarVariant = 'plain' | 'raised';\n\n/** The step the bar's own inset, gap and separator sit at. */\nexport type ActionBarSize = 'sm' | 'md' | 'lg';\n\n/** Where the run of actions sits in the room left after the status. */\nexport type ActionBarAlign = 'end' | 'start' | 'center';\n\n/**\n * Where an action stands in the order of giving way.\n *\n * The five are adapted from `sap.m.OverflowToolbarPriority`, and they exist here\n * and not in `toolbar` because the two bars read in opposite directions. In a\n * bar of tools the first control is the most used, so giving way from the end\n * gives up the least used one. In a bar of actions the action that confirms is\n * at the **end** of the line, so giving way from the end would give up Save\n * first.\n *\n * - `pinned` never gives way.\n * - `high` gives way after `low` and `hide`, into the surface.\n * - `low` is the first rank to reach the surface, and the default for an action\n * that declares a counterpart.\n * - `hide` gives way before every other rank and is **not** offered in the\n * surface: a control that is not worth a row in a menu.\n * - `always` is never drawn in the bar; its counterpart is in the surface from\n * the start.\n */\nexport type ActionBarPriority = 'pinned' | 'high' | 'low' | 'hide' | 'always';\n\nexport interface ActionBarDefaults {\n align: ActionBarAlign;\n size: ActionBarSize;\n sticky: boolean;\n variant: ActionBarVariant;\n}\n\nconst FALLBACK: ActionBarDefaults = {\n align: 'end',\n size: 'md',\n sticky: false,\n variant: 'plain',\n};\n\nexport const ACTION_BAR_DEFAULTS = new InjectionToken<ActionBarDefaults>(\n 'slotted action bar defaults',\n { providedIn: 'root', factory: () => FALLBACK },\n);\n\n/**\n * An application decides once how its action bars are drawn — a product whose\n * bars are all raised, compact and stuck to the bottom of the page says so in\n * one place rather than on every bar. A bar that states any of them itself\n * still wins.\n */\nexport function provideActionBarDefaults(defaults: Partial<ActionBarDefaults>) {\n return {\n provide: ACTION_BAR_DEFAULTS,\n useFactory: (): ActionBarDefaults => ({ ...FALLBACK, ...defaults }),\n };\n}\n\n/** What a bar renders as here, before it states anything of its own. */\nexport function injectActionBarDefaults(): ActionBarDefaults {\n return inject(ACTION_BAR_DEFAULTS);\n}\n","import { createCollapse } from '@slotted/core/overflow';\nimport type { CollapseHandle } from '@slotted/core/overflow';\nimport { createPresence } from '@slotted/core/presence';\nimport type { PresenceStatus } from '@slotted/core/presence';\nimport {\n afterNextRender,\n booleanAttribute,\n ChangeDetectionStrategy,\n Component,\n computed,\n DestroyRef,\n Directive,\n effect,\n ElementRef,\n HostAttributeToken,\n inject,\n input,\n output,\n signal,\n TemplateRef,\n ViewEncapsulation,\n} from '@angular/core';\nimport { BUTTON_DEFAULTS_TOKEN } from '@slotted/angular/button';\nimport type { ButtonDefaults } from '@slotted/angular/button';\n\nimport { injectActionBarDefaults } from './action-bar-defaults';\nimport type {\n ActionBarAlign,\n ActionBarPriority,\n ActionBarSize,\n ActionBarVariant,\n} from './action-bar-defaults';\n\nexport type {\n ActionBarAlign,\n ActionBarDefaults,\n ActionBarPriority,\n ActionBarSize,\n ActionBarVariant,\n} from './action-bar-defaults';\n\n/**\n * The accessible name of the control that holds what did not fit. A string is\n * used verbatim; a function is given the number of actions behind the control,\n * because three dots say nothing about how much is behind them.\n */\nexport type ActionBarOverflowLabel = string | ((hidden: number) => string);\n\n/** One action the surface holds, in the order the bar holds it. */\nexport interface ActionBarSurfaceUnit {\n readonly id: string;\n readonly separatorBefore: boolean;\n}\n\n/** The attribute that says an action has somewhere to go. */\nexport const ACTION_BAR_UNIT_ATTRIBUTE = 'data-unit';\n\n/** The attribute the measurement reads a rank from. */\nexport const ACTION_BAR_PRIORITY_ATTRIBUTE = 'data-priority';\n\n/**\n * The custom property the stacking query raises, read back by the measurement.\n *\n * The breakpoint is literal because `@container (width < var(--x))` is invalid,\n * and it is written once — in the stylesheet. The binding asks CSS what it\n * decided rather than comparing widths of its own, so the layout and the\n * measurement cannot disagree about where the bar becomes a column.\n */\nexport const ACTION_BAR_STACK_PROPERTY = '--_stacked';\n\n/**\n * Where each rank stands in the order of giving way: the lowest goes first, and\n * position decides inside one rank.\n */\nexport const ACTION_BAR_RANK: Readonly<Record<ActionBarPriority, number>> = Object.freeze({\n always: 0,\n hide: 0,\n high: 2,\n low: 1,\n pinned: 0,\n});\n\nfunction priorityOf(unit: HTMLElement): ActionBarPriority {\n return (unit.getAttribute(ACTION_BAR_PRIORITY_ATTRIBUTE) as ActionBarPriority | null) ?? 'pinned';\n}\n\n/**\n * Everything the run lays out.\n *\n * The trigger is not one of them — a control that took part in its own\n * measurement would be counted twice, and the Angular trigger sits inside a\n * `display: contents` host of its own — and neither is an `always` action, which\n * is never in the bar to give way.\n */\nfunction unitsOf(container: HTMLElement) {\n return [...container.children].filter(\n (child): child is HTMLElement =>\n child instanceof HTMLElement &&\n child.getAttribute('data-part') !== 'overflow' &&\n child.querySelector('[data-part=\"overflow\"]') === null &&\n child.getAttribute(ACTION_BAR_PRIORITY_ATTRIBUTE) !== 'always',\n );\n}\n\n/**\n * Whether one of the bar's own rules sits between two units that are both in the\n * surface. It is read from the DOM because a separator is a sibling of the units\n * it divides and nothing in the component tree relates them.\n */\nfunction ruleBetween(from: Element, to: Element) {\n for (\n let node = from.nextElementSibling;\n node !== null && node !== to;\n node = node.nextElementSibling\n ) {\n if (node.getAttribute('data-part') === 'separator') return true;\n }\n return false;\n}\n\n/**\n * The one axis the bar hands down to the buttons inside it, through the button\n * family's own defaults token rather than through a second channel of this\n * family's invention. That is what keeps an explicit `size` on a button winning\n * over the bar, because it is the rule `button` already implements.\n *\n * The value is read through a getter so that a button's `computed` tracks the\n * bar's signal: a plain snapshot would fix the step at the moment the first\n * button was created and never move again.\n */\nfunction provideBarStep() {\n return {\n provide: BUTTON_DEFAULTS_TOKEN,\n useFactory: (): ButtonDefaults => {\n const bar = inject(SlActionBar);\n const inherited = inject(BUTTON_DEFAULTS_TOKEN, { skipSelf: true });\n\n return {\n ...inherited,\n get size() {\n return bar.resolvedSize();\n },\n };\n },\n };\n}\n\n/**\n * The actions that finish a task on a page or in a panel.\n *\n * **It is not a composite.** `Tab` reaches every action, in the order the author\n * wrote them, and the arrows are not bound. The controls here are the page's own\n * form actions, and a reader walking a form expects to arrive at Cancel and then\n * at Save; roving focus would make the whole bar one tab stop and put Save\n * behind an arrow key that announces nothing. A strip of ten icon buttons is a\n * `toolbar`, and that family binds the arrows against the APG.\n *\n * **What gives way is decided by rank, not by position**, which is the whole of\n * why this family stands beside `toolbar` rather than configuring it.\n *\n * **The action that confirms does not move.** The run carries an `auto` margin\n * against the bar's end edge, so a message appearing in the status, a button\n * going busy and a permission filter removing a control all move what is\n * *before* the last action and never the last action itself.\n */\n@Component({\n selector: '[slActionBar]',\n standalone: true,\n exportAs: 'slActionBar',\n template: '<ng-content />',\n styleUrl: '../../../styles/src/action-bar/action-bar.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n providers: [provideBarStep()],\n host: {\n 'data-ui': 'action-bar',\n 'data-ui-action-bar': '',\n 'data-part': 'root',\n 'data-part-root': '',\n '[attr.role]': 'role()',\n '[attr.data-variant]': 'resolvedVariant()',\n '[attr.data-size]': 'resolvedSize()',\n '[attr.data-align]': 'resolvedAlign()',\n '[attr.data-sticky]': 'resolvedSticky() ? \"\" : null',\n '[attr.data-collapsed]': 'collapsedCount()',\n '[attr.data-status]': 'presenceAttribute()',\n '[style.display]': 'mounted() ? null : \"none\"',\n },\n})\nexport class SlActionBar {\n readonly variant = input<ActionBarVariant | undefined>(undefined);\n readonly size = input<ActionBarSize | undefined>(undefined);\n readonly align = input<ActionBarAlign | undefined>(undefined);\n readonly sticky = input<boolean | undefined, boolean | string | undefined>(undefined, {\n transform: (state) => (state === undefined ? undefined : booleanAttribute(state)),\n });\n /**\n * Whether the bar belongs on screen at all. A bulk bar exists while there is a\n * selection and a contextual save bar while there are unsaved changes.\n *\n * It is an input rather than a two-way value: the bar never asks to appear or\n * to leave, so there is nothing to cancel.\n */\n readonly present = input<boolean, boolean | string | undefined>(true, {\n transform: (state) => (state === undefined ? true : booleanAttribute(state)),\n });\n\n /**\n * Reports how many actions gave way, once per change. The collapsed set is a\n * measurement rather than a value, so there is no two-way binding over it.\n */\n readonly overflowChange = output<number>();\n\n private readonly defaults = injectActionBarDefaults();\n private readonly element = inject(ElementRef<HTMLElement>).nativeElement;\n\n /**\n * A consumer who has ten icon-only actions and wants the composite may write\n * `role=\"toolbar\"` themselves, and what they wrote survives the host binding.\n * The arrows are still not bound, so that consumer wants `toolbar`.\n */\n private readonly statedRole = inject(new HostAttributeToken('role'), { optional: true });\n\n private readonly counterparts = signal(new Map<string, TemplateRef<unknown>>());\n private readonly trigger = signal<HTMLElement | null>(null);\n private readonly actions = signal<HTMLElement | null>(null);\n private readonly stacked = signal(false);\n private readonly ready = signal(false);\n private collapse: CollapseHandle | null = null;\n\n /** What the surface holds: the collapsed actions and every `always` one. */\n readonly surfaceUnits = signal<readonly ActionBarSurfaceUnit[]>([]);\n\n readonly resolvedVariant = computed(() => this.variant() ?? this.defaults.variant);\n readonly resolvedSize = computed(() => this.size() ?? this.defaults.size);\n readonly resolvedAlign = computed(() => this.align() ?? this.defaults.align);\n readonly resolvedSticky = computed(() => this.sticky() ?? this.defaults.sticky);\n\n protected readonly role = computed(() => this.statedRole ?? 'group');\n\n private readonly status = signal<PresenceStatus>('open');\n protected readonly mounted = computed(() => this.status() !== 'unmounted');\n protected readonly presenceAttribute = computed(() => {\n const status = this.status();\n return status === 'open' || status === 'unmounted' ? null : status;\n });\n\n protected readonly collapsedCount = computed(() =>\n this.trigger() === null ? null : String(this.surfaceUnits().length),\n );\n\n /** Records what an action becomes in the surface. */\n registerUnit(id: string, template: TemplateRef<unknown>) {\n this.counterparts.update((held) => new Map(held).set(id, template));\n }\n\n releaseUnit(id: string) {\n this.counterparts.update((held) => {\n const next = new Map(held);\n next.delete(id);\n return next;\n });\n }\n\n counterpart(id: string) {\n return this.counterparts().get(id) ?? null;\n }\n\n /** The control that opens what did not fit. The bar measures it. */\n registerTrigger(element: HTMLElement | null) {\n this.trigger.set(element);\n }\n\n /** The run, which is the box the collapse measures rather than the root. */\n registerActions(element: HTMLElement | null) {\n this.actions.set(element);\n }\n\n constructor() {\n const destroyRef = inject(DestroyRef);\n\n /**\n * The bar is held through its exit, so a bulk bar slides out rather than\n * vanishing. Carbon keeps its batch bar mounted and writes `aria-hidden` on\n * the root instead, which leaves the buttons inside reachable by `Tab`.\n */\n const presence = createPresence({\n present: true,\n skipInitialAnimation: true,\n onStatusChange: (next) => this.status.set(next),\n });\n presence.setNode(this.element);\n destroyRef.onDestroy(() => presence.destroy());\n\n effect(() => presence.sync(this.present()));\n\n afterNextRender(() => this.ready.set(true));\n\n /**\n * Whether the bar is drawn as a column. The number lives in the stylesheet's\n * container query, and this asks CSS what it decided rather than comparing\n * widths against a copy of it.\n */\n effect((onCleanup) => {\n const container = this.actions();\n if (container === null || !this.ready()) return;\n\n const read = () => {\n const view = container.ownerDocument?.defaultView;\n const raised =\n view?.getComputedStyle(container).getPropertyValue(ACTION_BAR_STACK_PROPERTY).trim() ===\n '1';\n if (this.stacked() !== raised) this.stacked.set(raised);\n };\n\n read();\n if (typeof ResizeObserver === 'undefined') return;\n const observer = new ResizeObserver(read);\n observer.observe(container);\n onCleanup(() => observer.disconnect());\n });\n\n /**\n * The collapse. It does not run while the bar is a column: a column has room\n * for every action, and a surface holding what did not fit would be a menu\n * for nothing. Leaving the effect destroys the handle, which reveals every\n * unit it had hidden.\n */\n effect((onCleanup) => {\n const container = this.actions();\n const trigger = this.trigger();\n if (container === null || !this.ready() || this.stacked()) return;\n\n const sync = (collapsedUnits: readonly HTMLElement[]) => {\n const collapsed = new Set(collapsedUnits);\n const held = [...container.children].filter(\n (child): child is HTMLElement =>\n child instanceof HTMLElement &&\n child.hasAttribute(ACTION_BAR_UNIT_ATTRIBUTE) &&\n (collapsed.has(child) ||\n child.getAttribute(ACTION_BAR_PRIORITY_ATTRIBUTE) === 'always'),\n );\n\n this.surfaceUnits.set(\n held.map((unit, index) => {\n const previous = held[index - 1];\n return {\n id: unit.getAttribute(ACTION_BAR_UNIT_ATTRIBUTE) ?? '',\n separatorBefore: previous !== undefined && ruleBetween(previous, unit),\n };\n }),\n );\n };\n\n const handle: CollapseHandle = createCollapse(container, {\n /* A pinned action has nowhere to go. Every other rank does, and `hide`'s\n somewhere is nowhere — it gives way and is not offered in the\n surface. */\n collapsible: (unit) => priorityOf(unit) !== 'pinned',\n divides: (unit) => unit.getAttribute('data-part') === 'separator',\n onChange: (units) => {\n sync(units);\n this.overflowChange.emit(\n units.filter((unit) => unit.hasAttribute(ACTION_BAR_UNIT_ATTRIBUTE)).length,\n );\n },\n rank: (unit) => ACTION_BAR_RANK[priorityOf(unit)],\n trigger: () => trigger,\n /* An `always` action is in the surface while every other one still fits,\n and a control that hid itself then would be a menu nobody can open. */\n triggerAlways: () =>\n container.querySelector(`[${ACTION_BAR_PRIORITY_ATTRIBUTE}='always']`) !== null,\n units: () => unitsOf(container),\n });\n\n this.collapse = handle;\n sync(handle.collapsed());\n\n /**\n * An action arriving or leaving invalidates the measurement — a bar that\n * grows a button collapses one — and an `always` action arriving changes\n * what the surface holds without changing what collapsed.\n */\n const observer = new MutationObserver(() => {\n handle.refresh();\n sync(handle.collapsed());\n });\n observer.observe(container, { childList: true, subtree: true });\n\n onCleanup(() => {\n observer.disconnect();\n handle.destroy();\n this.collapse = null;\n this.surfaceUnits.set([]);\n });\n });\n }\n\n /** Measures again, after the consumer changed something the DOM cannot report. */\n refresh() {\n this.collapse?.refresh();\n }\n}\n\n/**\n * The sentence at the start of the bar: a dirty-state marker, a timestamp, the\n * count of what is selected and the control that selects the rest.\n *\n * It is a slot rather than a component: the library already has\n * `inline-message`, `status-indicator` and `badge`, and `table` already owns the\n * selection and its count.\n */\n@Directive({\n selector: '[slActionBarStatus]',\n standalone: true,\n exportAs: 'slActionBarStatus',\n host: { 'data-part': 'status', 'data-part-status': '' },\n})\nexport class SlActionBarStatus {}\n\n/**\n * The run of actions, and the box the collapse measures.\n *\n * It is the run rather than the root, because the root is the query container\n * and a container is a container for its descendants and not for itself — so the\n * rule that turns the run into a column has to reach a descendant.\n */\n@Directive({\n selector: '[slActionBarActions]',\n standalone: true,\n exportAs: 'slActionBarActions',\n host: { 'data-part': 'actions', 'data-part-actions': '' },\n})\nexport class SlActionBarActions {\n private readonly bar = inject(SlActionBar);\n\n constructor() {\n const element = inject(ElementRef<HTMLElement>).nativeElement;\n this.bar.registerActions(element);\n inject(DestroyRef).onDestroy(() => this.bar.registerActions(null));\n }\n}\n\n/**\n * One action the bar may give up, its rank, and what it becomes when it goes.\n *\n * The rank and the counterpart are one fact seen from two sides. A control with\n * nothing to become in the surface is pinned — it has nowhere to go, which is\n * why the action that confirms stays visible — and a rank that needs somewhere\n * to go and has nowhere behaves as pinned too, so a consumer error leaves the\n * control on the bar rather than hiding it silently.\n */\n@Directive({\n selector: '[slActionBarAction]',\n standalone: true,\n exportAs: 'slActionBarAction',\n host: {\n 'data-part': 'action',\n 'data-part-action': '',\n '[attr.data-unit]': 'unitId()',\n '[attr.data-priority]': 'resolvedPriority()',\n '[attr.hidden]': 'resolvedPriority() === \"always\" ? \"\" : null',\n },\n})\nexport class SlActionBarAction {\n /**\n * What the action becomes in the surface when the bar has no room for it.\n *\n * It is deliberately not called `overflow`: that word names what a container\n * does with more content than it has room for, and one term with two meanings\n * is the ambiguity the contract exists to prevent.\n */\n readonly counterpart = input<TemplateRef<unknown> | undefined>(undefined, {\n alias: 'slActionBarActionCounterpart',\n });\n\n /**\n * Where this action stands in the order of giving way.\n *\n * It is the selector's own value, so the terse form reads as the sentence it\n * is — `slActionBarAction=\"high\"`. A bare `slActionBarAction` hands the\n * directive an empty string, which is the attribute being present rather than\n * a rank, and the transform reads it as unstated.\n */\n readonly priority = input<ActionBarPriority | undefined, ActionBarPriority | '' | undefined>(\n undefined,\n { alias: 'slActionBarAction', transform: (rank) => (rank === '' ? undefined : rank) },\n );\n\n private readonly bar = inject(SlActionBar, { optional: true });\n private readonly identity = `slotted-action-bar-unit-${(unitCount += 1)}`;\n\n protected readonly unitId = computed(() =>\n this.counterpart() === undefined ? null : this.identity,\n );\n\n readonly resolvedPriority = computed<ActionBarPriority>(() => {\n const stated = this.priority();\n const declared = this.counterpart() !== undefined;\n if (stated === undefined) return declared ? 'low' : 'pinned';\n if (stated === 'hide' || stated === 'pinned') return stated;\n return declared ? stated : 'pinned';\n });\n\n constructor() {\n const bar = this.bar;\n effect(() => {\n const template = this.counterpart();\n if (bar === null) return;\n if (template === undefined) bar.releaseUnit(this.identity);\n else bar.registerUnit(this.identity, template);\n });\n\n inject(DestroyRef).onDestroy(() => bar?.releaseUnit(this.identity));\n }\n}\n\nlet unitCount = 0;\n\n/**\n * A hairline between two runs of actions.\n *\n * It is the answer to the one line of `docs/component-features.md` §5 that names\n * no mechanism: a destructive action does not sit flush against a frequent one.\n * It is a part of this family rather than a `divider` because its geometry\n * belongs to the bar.\n */\n@Directive({\n selector: '[slActionBarSeparator]',\n standalone: true,\n exportAs: 'slActionBarSeparator',\n host: {\n 'data-part': 'separator',\n 'data-part-separator': '',\n role: 'separator',\n 'aria-orientation': 'vertical',\n },\n})\nexport class SlActionBarSeparator {}\n","import { actionBarMessages } from '@slotted/core/i18n';\nimport { writeSelectorKey } from '@slotted/core/selector-key';\nimport { NgTemplateOutlet } from '@angular/common';\nimport {\n afterNextRender,\n ChangeDetectionStrategy,\n Component,\n computed,\n DestroyRef,\n ElementRef,\n HostAttributeToken,\n inject,\n Injector,\n input,\n ViewEncapsulation,\n viewChild,\n} from '@angular/core';\nimport { injectMessages } from '@slotted/angular/i18n';\nimport { SlGlyph, SlIcon } from '@slotted/angular/icon';\nimport { SlMenu, SlMenuSeparator, SlMenuTrigger } from '@slotted/angular/menu';\nimport type { MenuAlign, MenuSide, MenuSize } from '@slotted/angular/menu';\n\nimport { SlActionBar } from './action-bar';\nimport type { ActionBarOverflowLabel } from './action-bar';\n\n/**\n * The control that opens what did not fit, and the surface holding it.\n *\n * It is `menu`'s own trigger and surface wearing this family's geometry, so the\n * keyboard, the dismissal and the focus return are `menu`'s and are not written\n * twice. What this family adds is the measurement: the bar decides which actions\n * give way, **by rank**, and the counterparts they declared are rendered here in\n * the order the bar holds them — with a separator wherever one of the bar's own\n * rules sits between two of them.\n *\n * The surface also holds every action ranked `always`, which was never drawn in\n * the bar at all. A reader opening the menu sees one list, so the two sources\n * are read together and in the bar's own order.\n *\n * The counterpart is an `ng-template` rendered through `NgTemplateOutlet` only\n * while its action is in the surface, so a menu item that is never reached\n * builds nothing. That is where the two bindings differ most, and it is idiom\n * rather than asymmetry: React's `ReactNode` is built with the element that\n * declares it, which is React's own answer and its own cost.\n *\n * **A template resolves its dependencies where it was written, not where it is\n * rendered.** The counterpart is authored beside the control it replaces, which\n * is outside the surface, so `slMenuItem` would look for the `SlMenu` above the\n * bar and find none. The outlet is therefore given an injector that provides the\n * surface this component draws.\n *\n * The host is `display: contents`, so the `button` below is a child of the run\n * itself: the part that carries the geometry has to be the box the bar lays out.\n *\n * **The `hidden` attribute on the trigger belongs to the bar.** `createCollapse`\n * writes it, because the same measurement that decides whether the control is\n * needed is the one that has to reveal it to read its width.\n */\n@Component({\n selector: 'sl-action-bar-overflow',\n standalone: true,\n exportAs: 'slActionBarOverflow',\n imports: [NgTemplateOutlet, SlGlyph, SlIcon, SlMenu, SlMenuSeparator, SlMenuTrigger],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: { style: 'display: contents' },\n template: `\n <button\n #trigger\n data-part=\"overflow\"\n data-part-overflow=\"\"\n type=\"button\"\n [slMenuTriggerFor]=\"surface\"\n [attr.aria-label]=\"name()\"\n >\n <span slIcon><svg slGlyph name=\"ellipsis\"></svg></span>\n </button>\n <sl-menu #surface [align]=\"align()\" [side]=\"side()\" [size]=\"size()\">\n @for (unit of bar.surfaceUnits(); track unit.id) {\n @if (unit.separatorBefore) {\n <hr slMenuSeparator />\n }\n <ng-container *ngTemplateOutlet=\"bar.counterpart(unit.id)!; injector: surfaceInjector()\" />\n }\n </sl-menu>\n `,\n})\nexport class SlActionBarOverflow {\n /** Where the surface sits against the trigger. */\n readonly align = input<MenuAlign | undefined>(undefined);\n readonly side = input<MenuSide | undefined>(undefined);\n /** The surface's own measure, which is `menu`'s axis rather than the bar's. */\n readonly size = input<MenuSize | undefined>(undefined);\n /**\n * The accessible name. Defaults to a count — \"3 more actions\" — because the\n * mark says nothing about how much is behind it.\n */\n readonly label = input<ActionBarOverflowLabel | undefined>(undefined);\n\n protected readonly bar = inject(SlActionBar);\n\n /** The counted default, in the language in force. */\n private readonly t = injectMessages(actionBarMessages);\n /** A name the consumer wrote on the host survives the counted default. */\n private readonly stated = inject(new HostAttributeToken('aria-label'), { optional: true });\n\n protected readonly name = computed(() => {\n if (this.stated !== null) return this.stated;\n const given = this.label();\n const hidden = this.bar.surfaceUnits().length;\n if (typeof given === 'function') return given(hidden);\n if (given !== undefined) return given;\n return this.t('more', { count: hidden });\n });\n\n private readonly trigger = viewChild.required<ElementRef<HTMLElement>>('trigger');\n private readonly surface = viewChild(SlMenu);\n private readonly injector = inject(Injector);\n\n /**\n * `null` until the view exists, which is also while the surface holds nothing\n * and the outlet renders nothing.\n */\n protected readonly surfaceInjector = computed(() => {\n const menu = this.surface();\n if (menu === undefined) return null;\n return Injector.create({\n parent: this.injector,\n providers: [{ provide: SlMenu, useValue: menu }],\n });\n });\n\n constructor() {\n const destroyRef = inject(DestroyRef);\n\n afterNextRender(() => {\n const element = this.trigger().nativeElement;\n\n /**\n * `slMenuTriggerFor` binds `[attr.data-part]` and resolves it to `null`\n * for a trigger that is neither a bar's item nor a submenu's, and a host\n * binding of `null` removes the attribute the author wrote. The part is\n * therefore written back after the first change detection, where nothing\n * writes over it again: the expression is a constant, so Angular applies\n * it once. `docs/build-briefing.md` records the rule; `toolbar` is where\n * it was learnt.\n */\n writeSelectorKey(element, 'part', 'overflow');\n\n /* The bar measures the control, so it has to hold it. */\n this.bar.registerTrigger(element);\n });\n destroyRef.onDestroy(() => this.bar.registerTrigger(null));\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;;AAuCA,MAAM,QAAQ,GAAsB;AAClC,IAAA,KAAK,EAAE,KAAK;AACZ,IAAA,IAAI,EAAE,IAAI;AACV,IAAA,MAAM,EAAE,KAAK;AACb,IAAA,OAAO,EAAE,OAAO;CACjB;MAEY,mBAAmB,GAAG,IAAI,cAAc,CACnD,6BAA6B,EAC7B,EAAE,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,QAAQ,EAAE;AAGjD;;;;;AAKG;AACG,SAAU,wBAAwB,CAAC,QAAoC,EAAA;IAC3E,OAAO;AACL,QAAA,OAAO,EAAE,mBAAmB;AAC5B,QAAA,UAAU,EAAE,OAA0B,EAAE,GAAG,QAAQ,EAAE,GAAG,QAAQ,EAAE,CAAC;KACpE;AACH;AAEA;SACgB,uBAAuB,GAAA;AACrC,IAAA,OAAO,MAAM,CAAC,mBAAmB,CAAC;AACpC;;ACbA;AACO,MAAM,yBAAyB,GAAG;AAEzC;AACO,MAAM,6BAA6B,GAAG;AAE7C;;;;;;;AAOG;AACI,MAAM,yBAAyB,GAAG;AAEzC;;;AAGG;AACI,MAAM,eAAe,GAAgD,MAAM,CAAC,MAAM,CAAC;AACxF,IAAA,MAAM,EAAE,CAAC;AACT,IAAA,IAAI,EAAE,CAAC;AACP,IAAA,IAAI,EAAE,CAAC;AACP,IAAA,GAAG,EAAE,CAAC;AACN,IAAA,MAAM,EAAE,CAAC;AACV,CAAA;AAED,SAA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IAAA,EAAA,KAAA,EAAA,OAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,IAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,KAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,KAAA,EAAA,MAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,IAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,KAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,KAAA,EAAA,MAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,KAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,KAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,KAAA,EAAA,OAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,OAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,SAAA,EAAA,IAAA,EAAA,CAAA,SAAS,qFAC3C,MAAM,CAAA,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;ACpH7C;;AAEG;;"}
1
+ {"version":3,"file":"slotted-angular-action-bar.mjs","sources":["../../action-bar/src/action-bar-defaults.ts","../../action-bar/src/action-bar.ts","../../action-bar/src/action-bar-overflow.ts","../../action-bar/src/slotted-angular-action-bar.ts"],"sourcesContent":["import { inject, InjectionToken } from '@angular/core';\n\n/** Whether the bar paints a ground and a rule of its own. */\nexport type ActionBarVariant = 'plain' | 'raised';\n\n/** The step the bar's own inset, gap and separator sit at. */\nexport type ActionBarSize = 'sm' | 'md' | 'lg';\n\n/** Where the run of actions sits in the room left after the status. */\nexport type ActionBarAlign = 'end' | 'start' | 'center';\n\n/**\n * Where an action stands in the order of giving way.\n *\n * The five are adapted from `sap.m.OverflowToolbarPriority`, and they exist here\n * and not in `toolbar` because the two bars read in opposite directions. In a\n * bar of tools the first control is the most used, so giving way from the end\n * gives up the least used one. In a bar of actions the action that confirms is\n * at the **end** of the line, so giving way from the end would give up Save\n * first.\n *\n * - `pinned` never gives way.\n * - `high` gives way after `low` and `hide`, into the surface.\n * - `low` is the first rank to reach the surface, and the default for an action\n * that declares a counterpart.\n * - `hide` gives way before every other rank and is **not** offered in the\n * surface: a control that is not worth a row in a menu.\n * - `always` is never drawn in the bar; its counterpart is in the surface from\n * the start.\n */\nexport type ActionBarPriority = 'pinned' | 'high' | 'low' | 'hide' | 'always';\n\nexport interface ActionBarDefaults {\n align: ActionBarAlign;\n size: ActionBarSize;\n sticky: boolean;\n variant: ActionBarVariant;\n}\n\nconst FALLBACK: ActionBarDefaults = {\n align: 'end',\n size: 'md',\n sticky: false,\n variant: 'plain',\n};\n\nexport const ACTION_BAR_DEFAULTS = new InjectionToken<ActionBarDefaults>(\n 'slotted action bar defaults',\n { providedIn: 'root', factory: () => FALLBACK },\n);\n\n/**\n * An application decides once how its action bars are drawn — a product whose\n * bars are all raised, compact and stuck to the bottom of the page says so in\n * one place rather than on every bar. A bar that states any of them itself\n * still wins.\n */\nexport function provideActionBarDefaults(defaults: Partial<ActionBarDefaults>) {\n return {\n provide: ACTION_BAR_DEFAULTS,\n useFactory: (): ActionBarDefaults => ({ ...FALLBACK, ...defaults }),\n };\n}\n\n/** What a bar renders as here, before it states anything of its own. */\nexport function injectActionBarDefaults(): ActionBarDefaults {\n return inject(ACTION_BAR_DEFAULTS);\n}\n","import { createCollapse } from '@slotted/core/overflow';\nimport type { CollapseHandle } from '@slotted/core/overflow';\nimport { createPresence } from '@slotted/core/presence';\nimport type { PresenceStatus } from '@slotted/core/presence';\nimport {\n afterNextRender,\n booleanAttribute,\n ChangeDetectionStrategy,\n Component,\n computed,\n DestroyRef,\n Directive,\n effect,\n ElementRef,\n HostAttributeToken,\n inject,\n input,\n output,\n signal,\n TemplateRef,\n ViewEncapsulation,\n} from '@angular/core';\nimport { BUTTON_DEFAULTS_TOKEN } from '@slotted/angular/button';\nimport type { ButtonDefaults } from '@slotted/angular/button';\n\nimport { injectActionBarDefaults } from './action-bar-defaults';\nimport type {\n ActionBarAlign,\n ActionBarPriority,\n ActionBarSize,\n ActionBarVariant,\n} from './action-bar-defaults';\n\nexport type {\n ActionBarAlign,\n ActionBarDefaults,\n ActionBarPriority,\n ActionBarSize,\n ActionBarVariant,\n} from './action-bar-defaults';\n\n/**\n * The accessible name of the control that holds what did not fit. A string is\n * used verbatim; a function is given the number of actions behind the control,\n * because three dots say nothing about how much is behind them.\n */\nexport type ActionBarOverflowLabel = string | ((hidden: number) => string);\n\n/** One action the surface holds, in the order the bar holds it. */\nexport interface ActionBarSurfaceUnit {\n readonly id: string;\n readonly separatorBefore: boolean;\n}\n\n/** The attribute that says an action has somewhere to go. */\nexport const ACTION_BAR_UNIT_ATTRIBUTE = 'data-unit';\n\n/** The attribute the measurement reads a rank from. */\nexport const ACTION_BAR_PRIORITY_ATTRIBUTE = 'data-priority';\n\n/**\n * The custom property the stacking query raises, read back by the measurement.\n *\n * The breakpoint is literal because `@container (width < var(--x))` is invalid,\n * and it is written once — in the stylesheet. The binding asks CSS what it\n * decided rather than comparing widths of its own, so the layout and the\n * measurement cannot disagree about where the bar becomes a column.\n */\nexport const ACTION_BAR_STACK_PROPERTY = '--_stacked';\n\n/**\n * Where each rank stands in the order of giving way: the lowest goes first, and\n * position decides inside one rank.\n */\nexport const ACTION_BAR_RANK: Readonly<Record<ActionBarPriority, number>> = Object.freeze({\n always: 0,\n hide: 0,\n high: 2,\n low: 1,\n pinned: 0,\n});\n\nfunction priorityOf(unit: HTMLElement): ActionBarPriority {\n return (unit.getAttribute(ACTION_BAR_PRIORITY_ATTRIBUTE) as ActionBarPriority | null) ?? 'pinned';\n}\n\n/**\n * Everything the run lays out.\n *\n * The trigger is not one of them — a control that took part in its own\n * measurement would be counted twice, and the Angular trigger sits inside a\n * `display: contents` host of its own — and neither is an `always` action, which\n * is never in the bar to give way.\n */\nfunction unitsOf(container: HTMLElement) {\n return [...container.children].filter(\n (child): child is HTMLElement =>\n child instanceof HTMLElement &&\n child.getAttribute('data-part') !== 'overflow' &&\n child.querySelector('[data-part=\"overflow\"]') === null &&\n child.getAttribute(ACTION_BAR_PRIORITY_ATTRIBUTE) !== 'always',\n );\n}\n\n/**\n * Whether one of the bar's own rules sits between two units that are both in the\n * surface. It is read from the DOM because a separator is a sibling of the units\n * it divides and nothing in the component tree relates them.\n */\nfunction ruleBetween(from: Element, to: Element) {\n for (\n let node = from.nextElementSibling;\n node !== null && node !== to;\n node = node.nextElementSibling\n ) {\n if (node.getAttribute('data-part') === 'separator') return true;\n }\n return false;\n}\n\n/**\n * The one axis the bar hands down to the buttons inside it, through the button\n * family's own defaults token rather than through a second channel of this\n * family's invention. That is what keeps an explicit `size` on a button winning\n * over the bar, because it is the rule `button` already implements.\n *\n * The value is read through a getter so that a button's `computed` tracks the\n * bar's signal: a plain snapshot would fix the step at the moment the first\n * button was created and never move again.\n */\nfunction provideBarStep() {\n return {\n provide: BUTTON_DEFAULTS_TOKEN,\n useFactory: (): ButtonDefaults => {\n const bar = inject(SlActionBar);\n const inherited = inject(BUTTON_DEFAULTS_TOKEN, { skipSelf: true });\n\n return {\n ...inherited,\n get size() {\n return bar.resolvedSize();\n },\n };\n },\n };\n}\n\n/**\n * The actions that finish a task on a page or in a panel.\n *\n * **It is not a composite.** `Tab` reaches every action, in the order the author\n * wrote them, and the arrows are not bound. The controls here are the page's own\n * form actions, and a reader walking a form expects to arrive at Cancel and then\n * at Save; roving focus would make the whole bar one tab stop and put Save\n * behind an arrow key that announces nothing. A strip of ten icon buttons is a\n * `toolbar`, and that family binds the arrows against the APG.\n *\n * **What gives way is decided by rank, not by position**, which is the whole of\n * why this family stands beside `toolbar` rather than configuring it.\n *\n * **The action that confirms does not move.** The run carries an `auto` margin\n * against the bar's end edge, so a message appearing in the status, a button\n * going busy and a permission filter removing a control all move what is\n * *before* the last action and never the last action itself.\n */\n@Component({\n selector: '[slActionBar]',\n standalone: true,\n exportAs: 'slActionBar',\n template: '<ng-content />',\n styleUrl: '../../../styles/src/action-bar/action-bar.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n providers: [provideBarStep()],\n host: {\n 'data-ui': 'action-bar',\n 'data-ui-action-bar': '',\n 'data-part': 'root',\n 'data-part-root': '',\n '[attr.role]': 'role()',\n '[attr.data-variant]': 'resolvedVariant()',\n '[attr.data-size]': 'resolvedSize()',\n '[attr.data-align]': 'resolvedAlign()',\n '[attr.data-sticky]': 'resolvedSticky() ? \"\" : null',\n '[attr.data-collapsed]': 'collapsedCount()',\n '[attr.data-status]': 'presenceAttribute()',\n '[style.display]': 'mounted() ? null : \"none\"',\n },\n})\nexport class SlActionBar {\n readonly variant = input<ActionBarVariant | undefined>(undefined);\n readonly size = input<ActionBarSize | undefined>(undefined);\n readonly align = input<ActionBarAlign | undefined>(undefined);\n readonly sticky = input<boolean | undefined, boolean | string | undefined>(undefined, {\n transform: (state) => (state === undefined ? undefined : booleanAttribute(state)),\n });\n /**\n * Whether the bar belongs on screen at all. A bulk bar exists while there is a\n * selection and a contextual save bar while there are unsaved changes.\n *\n * It is an input rather than a two-way value: the bar never asks to appear or\n * to leave, so there is nothing to cancel.\n */\n readonly present = input<boolean, boolean | string | undefined>(true, {\n transform: (state) => (state === undefined ? true : booleanAttribute(state)),\n });\n\n /**\n * Reports how many actions gave way, once per change. The collapsed set is a\n * measurement rather than a value, so there is no two-way binding over it.\n */\n readonly overflowChange = output<number>();\n\n private readonly defaults = injectActionBarDefaults();\n private readonly element = inject(ElementRef<HTMLElement>).nativeElement;\n\n /**\n * A consumer who has ten icon-only actions and wants the composite may write\n * `role=\"toolbar\"` themselves, and what they wrote survives the host binding.\n * The arrows are still not bound, so that consumer wants `toolbar`.\n */\n private readonly statedRole = inject(new HostAttributeToken('role'), { optional: true });\n\n private readonly counterparts = signal(new Map<string, TemplateRef<unknown>>());\n private readonly trigger = signal<HTMLElement | null>(null);\n private readonly actions = signal<HTMLElement | null>(null);\n private readonly stacked = signal(false);\n private readonly ready = signal(false);\n private collapse: CollapseHandle | null = null;\n\n /** What the surface holds: the collapsed actions and every `always` one. */\n readonly surfaceUnits = signal<readonly ActionBarSurfaceUnit[]>([]);\n\n readonly resolvedVariant = computed(() => this.variant() ?? this.defaults.variant);\n readonly resolvedSize = computed(() => this.size() ?? this.defaults.size);\n readonly resolvedAlign = computed(() => this.align() ?? this.defaults.align);\n readonly resolvedSticky = computed(() => this.sticky() ?? this.defaults.sticky);\n\n protected readonly role = computed(() => this.statedRole ?? 'group');\n\n private readonly status = signal<PresenceStatus>('open');\n protected readonly mounted = computed(() => this.status() !== 'unmounted');\n protected readonly presenceAttribute = computed(() => {\n const status = this.status();\n return status === 'open' || status === 'unmounted' ? null : status;\n });\n\n protected readonly collapsedCount = computed(() =>\n this.trigger() === null ? null : String(this.surfaceUnits().length),\n );\n\n /** Records what an action becomes in the surface. */\n registerUnit(id: string, template: TemplateRef<unknown>) {\n this.counterparts.update((held) => new Map(held).set(id, template));\n }\n\n releaseUnit(id: string) {\n this.counterparts.update((held) => {\n const next = new Map(held);\n next.delete(id);\n return next;\n });\n }\n\n counterpart(id: string) {\n return this.counterparts().get(id) ?? null;\n }\n\n /** The control that opens what did not fit. The bar measures it. */\n registerTrigger(element: HTMLElement | null) {\n this.trigger.set(element);\n }\n\n /** The run, which is the box the collapse measures rather than the root. */\n registerActions(element: HTMLElement | null) {\n this.actions.set(element);\n }\n\n constructor() {\n const destroyRef = inject(DestroyRef);\n\n /**\n * The bar is held through its exit, so a bulk bar slides out rather than\n * vanishing. Carbon keeps its batch bar mounted and writes `aria-hidden` on\n * the root instead, which leaves the buttons inside reachable by `Tab`.\n */\n const presence = createPresence({\n present: true,\n skipInitialAnimation: true,\n onStatusChange: (next) => this.status.set(next),\n });\n presence.setNode(this.element);\n destroyRef.onDestroy(() => presence.destroy());\n\n effect(() => presence.sync(this.present()));\n\n afterNextRender(() => this.ready.set(true));\n\n /**\n * Whether the bar is drawn as a column. The number lives in the stylesheet's\n * container query, and this asks CSS what it decided rather than comparing\n * widths against a copy of it.\n */\n effect((onCleanup) => {\n const container = this.actions();\n if (container === null || !this.ready()) return;\n\n const read = () => {\n const view = container.ownerDocument?.defaultView;\n const raised =\n view?.getComputedStyle(container).getPropertyValue(ACTION_BAR_STACK_PROPERTY).trim() ===\n '1';\n if (this.stacked() !== raised) this.stacked.set(raised);\n };\n\n read();\n if (typeof ResizeObserver === 'undefined') return;\n const observer = new ResizeObserver(read);\n observer.observe(container);\n onCleanup(() => observer.disconnect());\n });\n\n /**\n * The collapse. It does not run while the bar is a column: a column has room\n * for every action, and a surface holding what did not fit would be a menu\n * for nothing. Leaving the effect destroys the handle, which reveals every\n * unit it had hidden.\n */\n effect((onCleanup) => {\n const container = this.actions();\n const trigger = this.trigger();\n if (container === null || !this.ready() || this.stacked()) return;\n\n const sync = (collapsedUnits: readonly HTMLElement[]) => {\n const collapsed = new Set(collapsedUnits);\n const held = [...container.children].filter(\n (child): child is HTMLElement =>\n child instanceof HTMLElement &&\n child.hasAttribute(ACTION_BAR_UNIT_ATTRIBUTE) &&\n (collapsed.has(child) ||\n child.getAttribute(ACTION_BAR_PRIORITY_ATTRIBUTE) === 'always'),\n );\n\n this.surfaceUnits.set(\n held.map((unit, index) => {\n const previous = held[index - 1];\n return {\n id: unit.getAttribute(ACTION_BAR_UNIT_ATTRIBUTE) ?? '',\n separatorBefore: previous !== undefined && ruleBetween(previous, unit),\n };\n }),\n );\n };\n\n const handle: CollapseHandle = createCollapse(container, {\n /* A pinned action has nowhere to go. Every other rank does, and `hide`'s\n somewhere is nowhere — it gives way and is not offered in the\n surface. */\n collapsible: (unit) => priorityOf(unit) !== 'pinned',\n divides: (unit) => unit.getAttribute('data-part') === 'separator',\n onChange: (units) => {\n sync(units);\n this.overflowChange.emit(\n units.filter((unit) => unit.hasAttribute(ACTION_BAR_UNIT_ATTRIBUTE)).length,\n );\n },\n rank: (unit) => ACTION_BAR_RANK[priorityOf(unit)],\n trigger: () => trigger,\n /* An `always` action is in the surface while every other one still fits,\n and a control that hid itself then would be a menu nobody can open. */\n triggerAlways: () =>\n container.querySelector(`[${ACTION_BAR_PRIORITY_ATTRIBUTE}='always']`) !== null,\n units: () => unitsOf(container),\n });\n\n this.collapse = handle;\n sync(handle.collapsed());\n\n /**\n * An action arriving or leaving invalidates the measurement — a bar that\n * grows a button collapses one — and an `always` action arriving changes\n * what the surface holds without changing what collapsed.\n */\n const observer = new MutationObserver(() => {\n handle.refresh();\n sync(handle.collapsed());\n });\n observer.observe(container, { childList: true, subtree: true });\n\n onCleanup(() => {\n observer.disconnect();\n handle.destroy();\n this.collapse = null;\n this.surfaceUnits.set([]);\n });\n });\n }\n\n /** Measures again, after the consumer changed something the DOM cannot report. */\n refresh() {\n this.collapse?.refresh();\n }\n}\n\n/**\n * The sentence at the start of the bar: a dirty-state marker, a timestamp, the\n * count of what is selected and the control that selects the rest.\n *\n * It is a slot rather than a component: the library already has\n * `inline-message`, `status-indicator` and `badge`, and `table` already owns the\n * selection and its count.\n */\n@Directive({\n selector: '[slActionBarStatus]',\n standalone: true,\n exportAs: 'slActionBarStatus',\n host: { 'data-part': 'status', 'data-part-status': '' },\n})\nexport class SlActionBarStatus {}\n\n/**\n * The run of actions, and the box the collapse measures.\n *\n * It is the run rather than the root, because the root is the query container\n * and a container is a container for its descendants and not for itself — so the\n * rule that turns the run into a column has to reach a descendant.\n */\n@Directive({\n selector: '[slActionBarActions]',\n standalone: true,\n exportAs: 'slActionBarActions',\n host: { 'data-part': 'actions', 'data-part-actions': '' },\n})\nexport class SlActionBarActions {\n private readonly bar = inject(SlActionBar);\n\n constructor() {\n const element = inject(ElementRef<HTMLElement>).nativeElement;\n this.bar.registerActions(element);\n inject(DestroyRef).onDestroy(() => this.bar.registerActions(null));\n }\n}\n\n/**\n * One action the bar may give up, its rank, and what it becomes when it goes.\n *\n * The rank and the counterpart are one fact seen from two sides. A control with\n * nothing to become in the surface is pinned — it has nowhere to go, which is\n * why the action that confirms stays visible — and a rank that needs somewhere\n * to go and has nowhere behaves as pinned too, so a consumer error leaves the\n * control on the bar rather than hiding it silently.\n */\n@Directive({\n selector: '[slActionBarAction]',\n standalone: true,\n exportAs: 'slActionBarAction',\n host: {\n 'data-part': 'action',\n 'data-part-action': '',\n '[attr.data-unit]': 'unitId()',\n '[attr.data-priority]': 'resolvedPriority()',\n '[attr.hidden]': 'resolvedPriority() === \"always\" ? \"\" : null',\n },\n})\nexport class SlActionBarAction {\n /**\n * What the action becomes in the surface when the bar has no room for it.\n *\n * It is deliberately not called `overflow`: that word names what a container\n * does with more content than it has room for, and one term with two meanings\n * is the ambiguity the contract exists to prevent.\n */\n readonly counterpart = input<TemplateRef<unknown> | undefined>(undefined, {\n alias: 'slActionBarActionCounterpart',\n });\n\n /**\n * Where this action stands in the order of giving way.\n *\n * It is the selector's own value, so the terse form reads as the sentence it\n * is — `slActionBarAction=\"high\"`. A bare `slActionBarAction` hands the\n * directive an empty string, which is the attribute being present rather than\n * a rank, and the transform reads it as unstated.\n */\n readonly priority = input<ActionBarPriority | undefined, ActionBarPriority | '' | undefined>(\n undefined,\n { alias: 'slActionBarAction', transform: (rank) => (rank === '' ? undefined : rank) },\n );\n\n private readonly bar = inject(SlActionBar, { optional: true });\n private readonly identity = `slotted-action-bar-unit-${(unitCount += 1)}`;\n\n protected readonly unitId = computed(() =>\n this.counterpart() === undefined ? null : this.identity,\n );\n\n readonly resolvedPriority = computed<ActionBarPriority>(() => {\n const stated = this.priority();\n const declared = this.counterpart() !== undefined;\n if (stated === undefined) return declared ? 'low' : 'pinned';\n if (stated === 'hide' || stated === 'pinned') return stated;\n return declared ? stated : 'pinned';\n });\n\n constructor() {\n const bar = this.bar;\n effect(() => {\n const template = this.counterpart();\n if (bar === null) return;\n if (template === undefined) bar.releaseUnit(this.identity);\n else bar.registerUnit(this.identity, template);\n });\n\n inject(DestroyRef).onDestroy(() => bar?.releaseUnit(this.identity));\n }\n}\n\nlet unitCount = 0;\n\n/**\n * A hairline between two runs of actions.\n *\n * It is the answer to the one line of `docs/component-features.md` §5 that names\n * no mechanism: a destructive action does not sit flush against a frequent one.\n * It is a part of this family rather than a `divider` because its geometry\n * belongs to the bar.\n */\n@Directive({\n selector: '[slActionBarSeparator]',\n standalone: true,\n exportAs: 'slActionBarSeparator',\n host: {\n 'data-part': 'separator',\n 'data-part-separator': '',\n role: 'separator',\n 'aria-orientation': 'vertical',\n },\n})\nexport class SlActionBarSeparator {}\n","import { actionBarMessages } from '@slotted/core/i18n';\nimport { writeSelectorKey } from '@slotted/core/selector-key';\nimport { NgTemplateOutlet } from '@angular/common';\nimport {\n afterNextRender,\n ChangeDetectionStrategy,\n Component,\n computed,\n DestroyRef,\n ElementRef,\n HostAttributeToken,\n inject,\n Injector,\n input,\n ViewEncapsulation,\n viewChild,\n} from '@angular/core';\nimport { injectMessages } from '@slotted/angular/i18n';\nimport { SlGlyph, SlIcon } from '@slotted/angular/icon';\nimport { SlMenu, SlMenuSeparator, SlMenuTrigger } from '@slotted/angular/menu';\nimport type { MenuAlign, MenuSide, MenuSize } from '@slotted/angular/menu';\n\nimport { SlActionBar } from './action-bar';\nimport type { ActionBarOverflowLabel } from './action-bar';\n\n/**\n * The control that opens what did not fit, and the surface holding it.\n *\n * It is `menu`'s own trigger and surface wearing this family's geometry, so the\n * keyboard, the dismissal and the focus return are `menu`'s and are not written\n * twice. What this family adds is the measurement: the bar decides which actions\n * give way, **by rank**, and the counterparts they declared are rendered here in\n * the order the bar holds them — with a separator wherever one of the bar's own\n * rules sits between two of them.\n *\n * The surface also holds every action ranked `always`, which was never drawn in\n * the bar at all. A reader opening the menu sees one list, so the two sources\n * are read together and in the bar's own order.\n *\n * The counterpart is an `ng-template` rendered through `NgTemplateOutlet` only\n * while its action is in the surface, so a menu item that is never reached\n * builds nothing. That is where the two bindings differ most, and it is idiom\n * rather than asymmetry: React's `ReactNode` is built with the element that\n * declares it, which is React's own answer and its own cost.\n *\n * **A template resolves its dependencies where it was written, not where it is\n * rendered.** The counterpart is authored beside the control it replaces, which\n * is outside the surface, so `slMenuItem` would look for the `SlMenu` above the\n * bar and find none. The outlet is therefore given an injector that provides the\n * surface this component draws.\n *\n * The host is `display: contents`, so the `button` below is a child of the run\n * itself: the part that carries the geometry has to be the box the bar lays out.\n *\n * **The `hidden` attribute on the trigger belongs to the bar.** `createCollapse`\n * writes it, because the same measurement that decides whether the control is\n * needed is the one that has to reveal it to read its width.\n */\n@Component({\n selector: 'sl-action-bar-overflow',\n standalone: true,\n exportAs: 'slActionBarOverflow',\n imports: [NgTemplateOutlet, SlGlyph, SlIcon, SlMenu, SlMenuSeparator, SlMenuTrigger],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: { style: 'display: contents' },\n template: `\n <button\n #trigger\n data-part=\"overflow\"\n data-part-overflow=\"\"\n type=\"button\"\n [slMenuTriggerFor]=\"surface\"\n [attr.aria-label]=\"name()\"\n >\n <span slIcon><svg slGlyph name=\"ellipsis\"></svg></span>\n </button>\n <sl-menu #surface [align]=\"align()\" [side]=\"side()\" [size]=\"size()\">\n @for (unit of bar.surfaceUnits(); track unit.id) {\n @if (unit.separatorBefore) {\n <hr slMenuSeparator />\n }\n <ng-container *ngTemplateOutlet=\"bar.counterpart(unit.id)!; injector: surfaceInjector()\" />\n }\n </sl-menu>\n `,\n})\nexport class SlActionBarOverflow {\n /** Where the surface sits against the trigger. */\n readonly align = input<MenuAlign | undefined>(undefined);\n readonly side = input<MenuSide | undefined>(undefined);\n /** The surface's own measure, which is `menu`'s axis rather than the bar's. */\n readonly size = input<MenuSize | undefined>(undefined);\n /**\n * The accessible name. Defaults to a count — \"3 more actions\" — because the\n * mark says nothing about how much is behind it.\n */\n readonly label = input<ActionBarOverflowLabel | undefined>(undefined);\n\n protected readonly bar = inject(SlActionBar);\n\n /** The counted default, in the language in force. */\n private readonly t = injectMessages(actionBarMessages);\n /** A name the consumer wrote on the host survives the counted default. */\n private readonly stated = inject(new HostAttributeToken('aria-label'), { optional: true });\n\n protected readonly name = computed(() => {\n if (this.stated !== null) return this.stated;\n const given = this.label();\n const hidden = this.bar.surfaceUnits().length;\n if (typeof given === 'function') return given(hidden);\n if (given !== undefined) return given;\n return this.t('more', { count: hidden });\n });\n\n private readonly trigger = viewChild.required<ElementRef<HTMLElement>>('trigger');\n private readonly surface = viewChild(SlMenu);\n private readonly injector = inject(Injector);\n\n /**\n * `null` until the view exists, which is also while the surface holds nothing\n * and the outlet renders nothing.\n */\n protected readonly surfaceInjector = computed(() => {\n const menu = this.surface();\n if (menu === undefined) return null;\n return Injector.create({\n parent: this.injector,\n providers: [{ provide: SlMenu, useValue: menu }],\n });\n });\n\n constructor() {\n const destroyRef = inject(DestroyRef);\n\n afterNextRender(() => {\n const element = this.trigger().nativeElement;\n\n /**\n * `slMenuTriggerFor` binds `[attr.data-part]` and resolves it to `null`\n * for a trigger that is neither a bar's item nor a submenu's, and a host\n * binding of `null` removes the attribute the author wrote. The part is\n * therefore written back after the first change detection, where nothing\n * writes over it again: the expression is a constant, so Angular applies\n * it once. `docs/build-briefing.md` records the rule; `toolbar` is where\n * it was learnt.\n */\n writeSelectorKey(element, 'part', 'overflow');\n\n /* The bar measures the control, so it has to hold it. */\n this.bar.registerTrigger(element);\n });\n destroyRef.onDestroy(() => this.bar.registerTrigger(null));\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;;AAuCA,MAAM,QAAQ,GAAsB;AAClC,IAAA,KAAK,EAAE,KAAK;AACZ,IAAA,IAAI,EAAE,IAAI;AACV,IAAA,MAAM,EAAE,KAAK;AACb,IAAA,OAAO,EAAE,OAAO;CACjB;MAEY,mBAAmB,GAAG,IAAI,cAAc,CACnD,6BAA6B,EAC7B,EAAE,UAAU,E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A,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,OAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,SAAA,EAAA,IAAA,EAAA,CAAA,SAAS,qFAC3C,MAAM,CAAA,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;ACpH7C;;AAEG;;"}
@@ -65,12 +65,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImpor
65
65
  * nothing. Its absence is itself the difference under forced colours.
66
66
  */
67
67
  const TONE_GLYPH = {
68
- accent: 'circle-info',
68
+ accent: 'status-info',
69
69
  secondary: null,
70
- info: 'circle-info',
71
- success: 'circle-check',
72
- warning: 'circle-alert',
73
- danger: 'circle-x',
70
+ info: 'status-info',
71
+ success: 'status-success',
72
+ warning: 'status-warning',
73
+ danger: 'status-danger',
74
74
  };
75
75
  /**
76
76
  * A message about the page, a section, or the thing beside it.
@@ -276,7 +276,7 @@ class SlAlert {
276
276
  >
277
277
  <span slIcon><svg slGlyph name="x"></svg></span>
278
278
  </button>
279
- }`, isInline: true, styles: ["@layer slotted.components{[data-ui-alert][data-part-root]{--_solid: var(--slotted-tone-accent-solid);--_on-solid: var(--slotted-tone-accent-on-solid);--_surface: var(--slotted-tone-accent-surface);--_border: var(--slotted-tone-accent-border);--_text: var(--slotted-tone-accent-text);--_state-hover: color-mix( in oklab, currentcolor var(--slotted-alert-state-layer-hover, 10%), transparent );--_state-active: color-mix( in oklab, currentcolor var(--slotted-alert-state-layer-active, 16%), transparent );--_font-size: var(--slotted-control-font-size-md, 13px);--_description-font-size: var(--slotted-control-font-size-md, 13px);--_glyph-size: var(--slotted-control-icon-size-md, 16px);--_inner-size: var(--slotted-control-inner-size-md, 24px);--_mark-size: round(nearest, 1.2em, 2px);--_line-height: var(--slotted-line-height-md, 1.5);--_inset-block: var(--slotted-alert-padding-block, var(--slotted-space-5, .75rem));--_inset-inline: var(--slotted-alert-padding-inline, var(--slotted-space-6, 1rem));--_column-gap: var(--slotted-alert-column-gap, var(--slotted-space-4, .5rem));--_row-gap: var(--slotted-alert-row-gap, var(--slotted-space-5, .75rem));--_text-gap: var(--slotted-alert-text-gap, var(--slotted-space-2, .25rem));--_radius: var(--slotted-alert-radius, var(--slotted-radius-md, 6px));--_border-width: var(--slotted-alert-border-width, var(--slotted-border-width-thin, 1px));--_dismiss-size: var( --slotted-alert-dismiss-size, max( var(--slotted-target-min, 24px), min(calc(var(--_glyph-size) + 2 * var(--slotted-space-2, .25rem)), var(--_inner-size)) ) );container-name:slotted-alert;container-type:inline-size;inline-size:100%;background-color:transparent;border:var(--_border-width) solid transparent;border-radius:var(--_radius);box-sizing:border-box;color:var(--_text);column-gap:0;display:grid;font-family:var(--slotted-alert-font-family, var(--slotted-control-font-family, sans-serif));font-size:var(--_font-size);grid-template-columns:auto minmax(0,1fr) auto;line-height:round(nearest,calc(var(--_line-height) * 1em),2px);padding-block:var(--_inset-block);padding-inline:var(--_inset-inline);row-gap:var(--_row-gap);transition:opacity var(--slotted-duration-short) var(--slotted-easing-enter),translate var(--slotted-duration-short) var(--slotted-easing-enter),display var(--slotted-duration-short) var(--slotted-easing-enter);transition-behavior:allow-discrete}[data-ui-alert][data-part-root][hidden]{display:none;opacity:0;transition:opacity var(--slotted-duration-short) var(--slotted-easing-exit),translate var(--slotted-duration-short) var(--slotted-easing-exit),display var(--slotted-duration-short) var(--slotted-easing-exit);translate:0 calc(-1 * var(--slotted-space-2, .25rem))}@starting-style{[data-ui-alert][data-part-root]:is([data-live=polite],[data-live=assertive]){opacity:0;translate:0 calc(-1 * var(--slotted-space-2, .25rem))}}[data-ui-alert][data-part-root][data-tone=accent]{--_solid: var(--slotted-tone-accent-solid);--_on-solid: var(--slotted-tone-accent-on-solid);--_surface: var(--slotted-tone-accent-surface);--_border: var(--slotted-tone-accent-border);--_text: var(--slotted-tone-accent-text)}[data-ui-alert][data-part-root][data-tone=secondary]{--_solid: var(--slotted-tone-secondary-solid);--_on-solid: var(--slotted-tone-secondary-on-solid);--_surface: var(--slotted-tone-secondary-surface);--_border: var(--slotted-tone-secondary-border);--_text: var(--slotted-tone-secondary-text)}[data-ui-alert][data-part-root][data-tone=success]{--_solid: var(--slotted-tone-success-solid);--_on-solid: var(--slotted-tone-success-on-solid);--_surface: var(--slotted-tone-success-surface);--_border: var(--slotted-tone-success-border);--_text: var(--slotted-tone-success-text)}[data-ui-alert][data-part-root][data-tone=info]{--_solid: var(--slotted-tone-info-solid);--_on-solid: var(--slotted-tone-info-on-solid);--_surface: var(--slotted-tone-info-surface);--_border: var(--slotted-tone-info-border);--_text: var(--slotted-tone-info-text)}[data-ui-alert][data-part-root][data-tone=warning]{--_solid: var(--slotted-tone-warning-solid);--_on-solid: var(--slotted-tone-warning-on-solid);--_surface: var(--slotted-tone-warning-surface);--_border: var(--slotted-tone-warning-border);--_text: var(--slotted-tone-warning-text)}[data-ui-alert][data-part-root][data-tone=danger]{--_solid: var(--slotted-tone-danger-solid);--_on-solid: var(--slotted-tone-danger-on-solid);--_surface: var(--slotted-tone-danger-surface);--_border: var(--slotted-tone-danger-border);--_text: var(--slotted-tone-danger-text)}[data-ui-alert][data-part-root][data-variant=soft]{background-color:var(--_surface);border-color:var(--_border)}[data-ui-alert][data-part-root][data-variant=outline]{background-color:transparent;border-color:var(--_border)}[data-ui-alert][data-part-root][data-variant=solid]{background-color:var(--_solid);border-color:var(--_solid);color:var(--_on-solid)}[data-ui-alert][data-part-root][data-reach=inline]{--_font-size: var(--slotted-control-font-size-sm, 12px);--_description-font-size: var(--slotted-control-font-size-sm, 12px);--_glyph-size: var(--slotted-control-icon-size-sm, 14px);--_inner-size: var(--slotted-control-inner-size-sm, 22px);--_inset-block: var(--slotted-alert-padding-block, var(--slotted-space-4, .5rem));--_inset-inline: var(--slotted-alert-padding-inline, var(--slotted-space-5, .75rem));--_row-gap: var(--slotted-alert-row-gap, var(--slotted-space-4, .5rem));--_radius: var(--slotted-alert-radius, var(--slotted-radius-sm, 4px))}[data-ui-alert][data-part-root][data-reach=page]{--_font-size: var(--slotted-control-font-size-lg, 14px);--_glyph-size: var(--slotted-control-icon-size-lg, 18px);--_inner-size: var(--slotted-control-inner-size-lg, 28px);--_inset-block: var(--slotted-alert-padding-block, var(--slotted-space-6, 1rem));--_inset-inline: var(--slotted-alert-padding-inline, var(--slotted-space-7, 1.25rem));--_radius: var(--slotted-alert-radius, 0);border-block-start-width:0;border-inline-width:0}[data-ui-alert][data-part-root][data-reach=page][data-variant=solid]{border-block-start-width:var(--_border-width);border-inline-width:var(--_border-width)}[data-ui-alert]>[data-part-icon]{--slotted-icon-size: calc(var(--_mark-size) * 12 / 11);align-items:center;align-self:baseline;block-size:var(--_mark-size);contain:layout;display:flex;grid-column:1;grid-row:1;inline-size:var(--_mark-size);inset-block-start:round(nearest,(var(--_mark-size) - 1cap) / 2,1px);justify-content:center;margin-block-start:calc(-1 * var(--_mark-size));margin-inline-end:var(--_column-gap);position:relative}[data-ui-alert]>[data-part-content]{align-self:baseline;display:grid;grid-column:2;grid-row:1;grid-template-columns:minmax(0,1fr);min-inline-size:0;row-gap:var(--_text-gap)}[data-ui-alert] [data-part-title]{font-family:var( --slotted-alert-title-font-family, var( --slotted-font-family-heading, var(--slotted-font-family-sans, ui-sans-serif, system-ui, sans-serif) ) );font-size:inherit;font-weight:var(--slotted-alert-title-font-weight, var(--slotted-font-weight-semibold, 600));line-height:inherit;margin:0;min-inline-size:0;overflow-wrap:anywhere}[data-ui-alert] [data-part-description]{font-size:var(--_description-font-size);line-height:round(nearest,calc(var(--_line-height) * 1em),2px);margin:0;min-inline-size:0;overflow-wrap:anywhere}[data-ui-alert]>[data-part-actions]{align-items:center;display:flex;flex-wrap:wrap;gap:var(--slotted-alert-actions-gap, var(--slotted-space-3, .375rem));grid-column:2;grid-row:2;min-inline-size:0}[data-ui-alert]>[data-part-dismiss]{--slotted-icon-size: var(--_glyph-size);align-items:center;align-self:start;appearance:none;background-color:transparent;block-size:var(--_dismiss-size);border:0;border-radius:var(--slotted-alert-dismiss-radius, var(--slotted-control-radius, 4px));color:inherit;cursor:pointer;display:inline-flex;flex:none;font:inherit;grid-column:3;grid-row:1;inline-size:var(--_dismiss-size);justify-content:center;margin-block-end:calc((1lh - var(--_dismiss-size)) / 2);margin-block-start:calc((1lh - var(--_dismiss-size)) / 2);margin-inline-end:calc((1lh - var(--_dismiss-size)) / 2);margin-inline-start:var(--_column-gap);padding:0;transition:background-color var(--slotted-control-transition-duration) var(--slotted-control-transition-easing),color var(--slotted-control-transition-duration) var(--slotted-control-transition-easing)}[data-ui-alert]>[data-part-dismiss]:enabled:hover{background-color:var(--_state-hover)}[data-ui-alert]>[data-part-dismiss]:enabled:active{background-color:var(--_state-active)}[data-ui-alert]>[data-part-dismiss]:disabled{color:var(--slotted-disabled-foreground);cursor:default}@media(pointer:coarse){[data-ui-alert]>[data-part-dismiss]{position:relative}[data-ui-alert]>[data-part-dismiss]:after{content:\"\";inset:min(0px,calc((100% - var(--slotted-target-comfortable, 44px)) / 2));position:absolute}}[data-ui-alert]>[data-part-dismiss]:focus-visible{outline:var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);outline-offset:calc(-1 * var(--slotted-focus-ring-width, 2px))}[data-ui-alert][data-variant=solid]>[data-part-dismiss]:focus-visible{box-shadow:inset 0 0 0 calc(2 * var(--slotted-focus-ring-width, 2px)) var(--_on-solid)}[data-ui-alert][data-part-root]:focus-visible{outline:var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);outline-offset:var(--slotted-focus-ring-offset, 2px)}@container slotted-alert (max-width: 22rem){[data-ui-alert]>[data-part-actions]{align-items:flex-start;flex-direction:column}}@container slotted-alert (min-width: 40rem){[data-ui-alert][data-reach=page]>[data-part-actions]{align-self:center;grid-column:3;grid-row:1;margin-inline-start:var(--_column-gap)}[data-ui-alert][data-reach=page]>[data-part-dismiss]{align-self:center;grid-column:4;margin-block:0}}@media(forced-colors:active){[data-ui-alert][data-part-root][data-variant]{background-color:Canvas;border-color:CanvasText;color:CanvasText}[data-ui-alert]>[data-part-dismiss]{color:CanvasText}[data-ui-alert]>[data-part-dismiss]:enabled:hover,[data-ui-alert]>[data-part-dismiss]:enabled:active{background-color:Highlight;color:HighlightText}}}\n"], dependencies: [{ kind: "component", type: SlGlyph, selector: "svg[slGlyph]", inputs: ["name", "solid"] }, { kind: "component", type: SlIcon, selector: "[slIcon]", inputs: ["directional", "label", "size", "tone"], exportAs: ["slIcon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
279
+ }`, isInline: true, styles: ["@layer slotted.components{[data-ui-alert][data-part-root]{--_solid: var(--slotted-tone-accent-solid);--_on-solid: var(--slotted-tone-accent-on-solid);--_surface: var(--slotted-tone-accent-surface);--_border: var(--slotted-tone-accent-border);--_text: var(--slotted-tone-accent-text);--_state-hover: color-mix( in oklab, currentcolor var(--slotted-alert-state-layer-hover, 10%), transparent );--_state-active: color-mix( in oklab, currentcolor var(--slotted-alert-state-layer-active, 16%), transparent );--_font-size: var(--slotted-control-font-size-md, 13px);--_description-font-size: var(--slotted-control-font-size-md, 13px);--_glyph-size: var(--slotted-control-icon-size-md, 16px);--_inner-size: var(--slotted-control-inner-size-md, 24px);--_mark-size: round(nearest, 1.2em, 2px);--_line-height: var(--slotted-line-height-md, 1.5);--_inset-block: var(--slotted-alert-padding-block, var(--slotted-space-5, .75rem));--_inset-inline: var(--slotted-alert-padding-inline, var(--slotted-space-6, 1rem));--_column-gap: var(--slotted-alert-column-gap, var(--slotted-space-4, .5rem));--_row-gap: var(--slotted-alert-row-gap, var(--slotted-space-5, .75rem));--_text-gap: var(--slotted-alert-text-gap, var(--slotted-space-2, .25rem));--_radius: var(--slotted-alert-radius, var(--slotted-radius-md, 6px));--_border-width: var(--slotted-alert-border-width, var(--slotted-border-width-thin, 1px));--_dismiss-size: var( --slotted-alert-dismiss-size, max( var(--slotted-target-min, 24px), min(calc(var(--_glyph-size) + 2 * var(--slotted-space-2, .25rem)), var(--_inner-size)) ) );container-name:slotted-alert;container-type:inline-size;inline-size:100%;background-color:transparent;border:var(--_border-width) solid transparent;border-radius:var(--_radius);box-sizing:border-box;color:var(--_text);column-gap:0;display:grid;font-family:var(--slotted-alert-font-family, var(--slotted-control-font-family, sans-serif));font-size:var(--_font-size);grid-template-columns:auto minmax(0,1fr) auto;line-height:round(nearest,calc(var(--_line-height) * 1em),2px);padding-block:var(--_inset-block);padding-inline:var(--_inset-inline);row-gap:var(--_row-gap);transition:opacity var(--slotted-duration-short) var(--slotted-easing-enter),translate var(--slotted-duration-short) var(--slotted-easing-enter),display var(--slotted-duration-short) var(--slotted-easing-enter);transition-behavior:allow-discrete}[data-ui-alert][data-part-root][hidden]{display:none;opacity:0;transition:opacity var(--slotted-duration-short) var(--slotted-easing-exit),translate var(--slotted-duration-short) var(--slotted-easing-exit),display var(--slotted-duration-short) var(--slotted-easing-exit);translate:0 calc(-1 * var(--slotted-space-2, .25rem))}@starting-style{[data-ui-alert][data-part-root]:is([data-live=polite],[data-live=assertive]){opacity:0;translate:0 calc(-1 * var(--slotted-space-2, .25rem))}}[data-ui-alert][data-part-root][data-tone=accent]{--_solid: var(--slotted-tone-accent-solid);--_on-solid: var(--slotted-tone-accent-on-solid);--_surface: var(--slotted-tone-accent-surface);--_border: var(--slotted-tone-accent-border);--_text: var(--slotted-tone-accent-text)}[data-ui-alert][data-part-root][data-tone=secondary]{--_solid: var(--slotted-tone-secondary-solid);--_on-solid: var(--slotted-tone-secondary-on-solid);--_surface: var(--slotted-tone-secondary-surface);--_border: var(--slotted-tone-secondary-border);--_text: var(--slotted-tone-secondary-text)}[data-ui-alert][data-part-root][data-tone=success]{--_solid: var(--slotted-tone-success-solid);--_on-solid: var(--slotted-tone-success-on-solid);--_surface: var(--slotted-tone-success-surface);--_border: var(--slotted-tone-success-border);--_text: var(--slotted-tone-success-text)}[data-ui-alert][data-part-root][data-tone=info]{--_solid: var(--slotted-tone-info-solid);--_on-solid: var(--slotted-tone-info-on-solid);--_surface: var(--slotted-tone-info-surface);--_border: var(--slotted-tone-info-border);--_text: var(--slotted-tone-info-text)}[data-ui-alert][data-part-root][data-tone=warning]{--_solid: var(--slotted-tone-warning-solid);--_on-solid: var(--slotted-tone-warning-on-solid);--_surface: var(--slotted-tone-warning-surface);--_border: var(--slotted-tone-warning-border);--_text: var(--slotted-tone-warning-text)}[data-ui-alert][data-part-root][data-tone=danger]{--_solid: var(--slotted-tone-danger-solid);--_on-solid: var(--slotted-tone-danger-on-solid);--_surface: var(--slotted-tone-danger-surface);--_border: var(--slotted-tone-danger-border);--_text: var(--slotted-tone-danger-text)}[data-ui-alert][data-part-root][data-variant=soft]{background-color:var(--_surface);border-color:var(--_border)}[data-ui-alert][data-part-root][data-variant=outline]{background-color:transparent;border-color:var(--_border)}[data-ui-alert][data-part-root][data-variant=solid]{background-color:var(--_solid);border-color:var(--_solid);color:var(--_on-solid)}[data-ui-alert][data-part-root][data-reach=inline]{--_font-size: var(--slotted-control-font-size-sm, 12px);--_description-font-size: var(--slotted-control-font-size-sm, 12px);--_glyph-size: var(--slotted-control-icon-size-sm, 14px);--_inner-size: var(--slotted-control-inner-size-sm, 22px);--_inset-block: var(--slotted-alert-padding-block, var(--slotted-space-4, .5rem));--_inset-inline: var(--slotted-alert-padding-inline, var(--slotted-space-5, .75rem));--_row-gap: var(--slotted-alert-row-gap, var(--slotted-space-4, .5rem));--_radius: var(--slotted-alert-radius, var(--slotted-radius-sm, 4px))}[data-ui-alert][data-part-root][data-reach=page]{--_font-size: var(--slotted-control-font-size-lg, 14px);--_glyph-size: var(--slotted-control-icon-size-lg, 18px);--_inner-size: var(--slotted-control-inner-size-lg, 28px);--_inset-block: var(--slotted-alert-padding-block, var(--slotted-space-6, 1rem));--_inset-inline: var(--slotted-alert-padding-inline, var(--slotted-space-7, 1.25rem));--_radius: var(--slotted-alert-radius, 0);border-block-start-width:0;border-inline-width:0}[data-ui-alert][data-part-root][data-reach=page][data-variant=solid]{border-block-start-width:var(--_border-width);border-inline-width:var(--_border-width)}[data-ui-alert]>[data-part-icon]{--slotted-icon-size: var(--_mark-size);align-items:center;align-self:baseline;block-size:var(--_mark-size);contain:layout;display:flex;grid-column:1;grid-row:1;inline-size:var(--_mark-size);inset-block-start:round(nearest,(var(--_mark-size) - 1cap) / 2,1px);justify-content:center;margin-block-start:calc(-1 * var(--_mark-size));margin-inline-end:var(--_column-gap);position:relative}[data-ui-alert]>[data-part-content]{align-self:baseline;display:grid;grid-column:2;grid-row:1;grid-template-columns:minmax(0,1fr);min-inline-size:0;row-gap:var(--_text-gap)}[data-ui-alert] [data-part-title]{font-family:var( --slotted-alert-title-font-family, var( --slotted-font-family-heading, var(--slotted-font-family-sans, ui-sans-serif, system-ui, sans-serif) ) );font-size:inherit;font-weight:var(--slotted-alert-title-font-weight, var(--slotted-font-weight-semibold, 600));line-height:inherit;margin:0;min-inline-size:0;overflow-wrap:anywhere}[data-ui-alert] [data-part-description]{font-size:var(--_description-font-size);line-height:round(nearest,calc(var(--_line-height) * 1em),2px);margin:0;min-inline-size:0;overflow-wrap:anywhere}[data-ui-alert]>[data-part-actions]{align-items:center;display:flex;flex-wrap:wrap;gap:var(--slotted-alert-actions-gap, var(--slotted-space-3, .375rem));grid-column:2;grid-row:2;min-inline-size:0}[data-ui-alert]>[data-part-dismiss]{--slotted-icon-size: var(--_glyph-size);align-items:center;align-self:start;appearance:none;background-color:transparent;block-size:var(--_dismiss-size);border:0;border-radius:var(--slotted-alert-dismiss-radius, var(--slotted-control-radius, 4px));color:inherit;cursor:pointer;display:inline-flex;flex:none;font:inherit;grid-column:3;grid-row:1;inline-size:var(--_dismiss-size);justify-content:center;margin-block-end:calc((1lh - var(--_dismiss-size)) / 2);margin-block-start:calc((1lh - var(--_dismiss-size)) / 2);margin-inline-end:calc((1lh - var(--_dismiss-size)) / 2);margin-inline-start:var(--_column-gap);padding:0;transition:background-color var(--slotted-control-transition-duration) var(--slotted-control-transition-easing),color var(--slotted-control-transition-duration) var(--slotted-control-transition-easing)}[data-ui-alert]>[data-part-dismiss]:enabled:hover{background-color:var(--_state-hover)}[data-ui-alert]>[data-part-dismiss]:enabled:active{background-color:var(--_state-active)}[data-ui-alert]>[data-part-dismiss]:disabled{color:var(--slotted-disabled-foreground);cursor:default}@media(pointer:coarse){[data-ui-alert]>[data-part-dismiss]{position:relative}[data-ui-alert]>[data-part-dismiss]:after{content:\"\";inset:min(0px,calc((100% - var(--slotted-target-comfortable, 44px)) / 2));position:absolute}}[data-ui-alert]>[data-part-dismiss]:focus-visible{outline:var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);outline-offset:calc(-1 * var(--slotted-focus-ring-width, 2px))}[data-ui-alert][data-variant=solid]>[data-part-dismiss]:focus-visible{box-shadow:inset 0 0 0 calc(2 * var(--slotted-focus-ring-width, 2px)) var(--_on-solid)}[data-ui-alert][data-part-root]:focus-visible{outline:var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);outline-offset:var(--slotted-focus-ring-offset, 2px)}@container slotted-alert (max-width: 22rem){[data-ui-alert]>[data-part-actions]{align-items:flex-start;flex-direction:column}}@container slotted-alert (min-width: 40rem){[data-ui-alert][data-reach=page]>[data-part-actions]{align-self:center;grid-column:3;grid-row:1;margin-inline-start:var(--_column-gap)}[data-ui-alert][data-reach=page]>[data-part-dismiss]{align-self:center;grid-column:4;margin-block:0}}@media(forced-colors:active){[data-ui-alert][data-part-root][data-variant]{background-color:Canvas;border-color:CanvasText;color:CanvasText}[data-ui-alert]>[data-part-dismiss]{color:CanvasText}[data-ui-alert]>[data-part-dismiss]:enabled:hover,[data-ui-alert]>[data-part-dismiss]:enabled:active{background-color:Highlight;color:HighlightText}}}\n"], dependencies: [{ kind: "component", type: SlGlyph, selector: "svg[slGlyph]", inputs: ["name", "solid"] }, { kind: "component", type: SlIcon, selector: "[slIcon]", inputs: ["directional", "label", "size", "tone"], exportAs: ["slIcon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
280
280
  }
281
281
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlAlert, decorators: [{
282
282
  type: Component,
@@ -314,7 +314,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImpor
314
314
  '[attr.aria-labelledby]': 'labelledBy()',
315
315
  '(focusin)': 'onFocusIn($event)',
316
316
  '(focusout)': 'onFocusOut($event)',
317
- }, styles: ["@layer slotted.components{[data-ui-alert][data-part-root]{--_solid: var(--slotted-tone-accent-solid);--_on-solid: var(--slotted-tone-accent-on-solid);--_surface: var(--slotted-tone-accent-surface);--_border: var(--slotted-tone-accent-border);--_text: var(--slotted-tone-accent-text);--_state-hover: color-mix( in oklab, currentcolor var(--slotted-alert-state-layer-hover, 10%), transparent );--_state-active: color-mix( in oklab, currentcolor var(--slotted-alert-state-layer-active, 16%), transparent );--_font-size: var(--slotted-control-font-size-md, 13px);--_description-font-size: var(--slotted-control-font-size-md, 13px);--_glyph-size: var(--slotted-control-icon-size-md, 16px);--_inner-size: var(--slotted-control-inner-size-md, 24px);--_mark-size: round(nearest, 1.2em, 2px);--_line-height: var(--slotted-line-height-md, 1.5);--_inset-block: var(--slotted-alert-padding-block, var(--slotted-space-5, .75rem));--_inset-inline: var(--slotted-alert-padding-inline, var(--slotted-space-6, 1rem));--_column-gap: var(--slotted-alert-column-gap, var(--slotted-space-4, .5rem));--_row-gap: var(--slotted-alert-row-gap, var(--slotted-space-5, .75rem));--_text-gap: var(--slotted-alert-text-gap, var(--slotted-space-2, .25rem));--_radius: var(--slotted-alert-radius, var(--slotted-radius-md, 6px));--_border-width: var(--slotted-alert-border-width, var(--slotted-border-width-thin, 1px));--_dismiss-size: var( --slotted-alert-dismiss-size, max( var(--slotted-target-min, 24px), min(calc(var(--_glyph-size) + 2 * var(--slotted-space-2, .25rem)), var(--_inner-size)) ) );container-name:slotted-alert;container-type:inline-size;inline-size:100%;background-color:transparent;border:var(--_border-width) solid transparent;border-radius:var(--_radius);box-sizing:border-box;color:var(--_text);column-gap:0;display:grid;font-family:var(--slotted-alert-font-family, var(--slotted-control-font-family, sans-serif));font-size:var(--_font-size);grid-template-columns:auto minmax(0,1fr) auto;line-height:round(nearest,calc(var(--_line-height) * 1em),2px);padding-block:var(--_inset-block);padding-inline:var(--_inset-inline);row-gap:var(--_row-gap);transition:opacity var(--slotted-duration-short) var(--slotted-easing-enter),translate var(--slotted-duration-short) var(--slotted-easing-enter),display var(--slotted-duration-short) var(--slotted-easing-enter);transition-behavior:allow-discrete}[data-ui-alert][data-part-root][hidden]{display:none;opacity:0;transition:opacity var(--slotted-duration-short) var(--slotted-easing-exit),translate var(--slotted-duration-short) var(--slotted-easing-exit),display var(--slotted-duration-short) var(--slotted-easing-exit);translate:0 calc(-1 * var(--slotted-space-2, .25rem))}@starting-style{[data-ui-alert][data-part-root]:is([data-live=polite],[data-live=assertive]){opacity:0;translate:0 calc(-1 * var(--slotted-space-2, .25rem))}}[data-ui-alert][data-part-root][data-tone=accent]{--_solid: var(--slotted-tone-accent-solid);--_on-solid: var(--slotted-tone-accent-on-solid);--_surface: var(--slotted-tone-accent-surface);--_border: var(--slotted-tone-accent-border);--_text: var(--slotted-tone-accent-text)}[data-ui-alert][data-part-root][data-tone=secondary]{--_solid: var(--slotted-tone-secondary-solid);--_on-solid: var(--slotted-tone-secondary-on-solid);--_surface: var(--slotted-tone-secondary-surface);--_border: var(--slotted-tone-secondary-border);--_text: var(--slotted-tone-secondary-text)}[data-ui-alert][data-part-root][data-tone=success]{--_solid: var(--slotted-tone-success-solid);--_on-solid: var(--slotted-tone-success-on-solid);--_surface: var(--slotted-tone-success-surface);--_border: var(--slotted-tone-success-border);--_text: var(--slotted-tone-success-text)}[data-ui-alert][data-part-root][data-tone=info]{--_solid: var(--slotted-tone-info-solid);--_on-solid: var(--slotted-tone-info-on-solid);--_surface: var(--slotted-tone-info-surface);--_border: var(--slotted-tone-info-border);--_text: var(--slotted-tone-info-text)}[data-ui-alert][data-part-root][data-tone=warning]{--_solid: var(--slotted-tone-warning-solid);--_on-solid: var(--slotted-tone-warning-on-solid);--_surface: var(--slotted-tone-warning-surface);--_border: var(--slotted-tone-warning-border);--_text: var(--slotted-tone-warning-text)}[data-ui-alert][data-part-root][data-tone=danger]{--_solid: var(--slotted-tone-danger-solid);--_on-solid: var(--slotted-tone-danger-on-solid);--_surface: var(--slotted-tone-danger-surface);--_border: var(--slotted-tone-danger-border);--_text: var(--slotted-tone-danger-text)}[data-ui-alert][data-part-root][data-variant=soft]{background-color:var(--_surface);border-color:var(--_border)}[data-ui-alert][data-part-root][data-variant=outline]{background-color:transparent;border-color:var(--_border)}[data-ui-alert][data-part-root][data-variant=solid]{background-color:var(--_solid);border-color:var(--_solid);color:var(--_on-solid)}[data-ui-alert][data-part-root][data-reach=inline]{--_font-size: var(--slotted-control-font-size-sm, 12px);--_description-font-size: var(--slotted-control-font-size-sm, 12px);--_glyph-size: var(--slotted-control-icon-size-sm, 14px);--_inner-size: var(--slotted-control-inner-size-sm, 22px);--_inset-block: var(--slotted-alert-padding-block, var(--slotted-space-4, .5rem));--_inset-inline: var(--slotted-alert-padding-inline, var(--slotted-space-5, .75rem));--_row-gap: var(--slotted-alert-row-gap, var(--slotted-space-4, .5rem));--_radius: var(--slotted-alert-radius, var(--slotted-radius-sm, 4px))}[data-ui-alert][data-part-root][data-reach=page]{--_font-size: var(--slotted-control-font-size-lg, 14px);--_glyph-size: var(--slotted-control-icon-size-lg, 18px);--_inner-size: var(--slotted-control-inner-size-lg, 28px);--_inset-block: var(--slotted-alert-padding-block, var(--slotted-space-6, 1rem));--_inset-inline: var(--slotted-alert-padding-inline, var(--slotted-space-7, 1.25rem));--_radius: var(--slotted-alert-radius, 0);border-block-start-width:0;border-inline-width:0}[data-ui-alert][data-part-root][data-reach=page][data-variant=solid]{border-block-start-width:var(--_border-width);border-inline-width:var(--_border-width)}[data-ui-alert]>[data-part-icon]{--slotted-icon-size: calc(var(--_mark-size) * 12 / 11);align-items:center;align-self:baseline;block-size:var(--_mark-size);contain:layout;display:flex;grid-column:1;grid-row:1;inline-size:var(--_mark-size);inset-block-start:round(nearest,(var(--_mark-size) - 1cap) / 2,1px);justify-content:center;margin-block-start:calc(-1 * var(--_mark-size));margin-inline-end:var(--_column-gap);position:relative}[data-ui-alert]>[data-part-content]{align-self:baseline;display:grid;grid-column:2;grid-row:1;grid-template-columns:minmax(0,1fr);min-inline-size:0;row-gap:var(--_text-gap)}[data-ui-alert] [data-part-title]{font-family:var( --slotted-alert-title-font-family, var( --slotted-font-family-heading, var(--slotted-font-family-sans, ui-sans-serif, system-ui, sans-serif) ) );font-size:inherit;font-weight:var(--slotted-alert-title-font-weight, var(--slotted-font-weight-semibold, 600));line-height:inherit;margin:0;min-inline-size:0;overflow-wrap:anywhere}[data-ui-alert] [data-part-description]{font-size:var(--_description-font-size);line-height:round(nearest,calc(var(--_line-height) * 1em),2px);margin:0;min-inline-size:0;overflow-wrap:anywhere}[data-ui-alert]>[data-part-actions]{align-items:center;display:flex;flex-wrap:wrap;gap:var(--slotted-alert-actions-gap, var(--slotted-space-3, .375rem));grid-column:2;grid-row:2;min-inline-size:0}[data-ui-alert]>[data-part-dismiss]{--slotted-icon-size: var(--_glyph-size);align-items:center;align-self:start;appearance:none;background-color:transparent;block-size:var(--_dismiss-size);border:0;border-radius:var(--slotted-alert-dismiss-radius, var(--slotted-control-radius, 4px));color:inherit;cursor:pointer;display:inline-flex;flex:none;font:inherit;grid-column:3;grid-row:1;inline-size:var(--_dismiss-size);justify-content:center;margin-block-end:calc((1lh - var(--_dismiss-size)) / 2);margin-block-start:calc((1lh - var(--_dismiss-size)) / 2);margin-inline-end:calc((1lh - var(--_dismiss-size)) / 2);margin-inline-start:var(--_column-gap);padding:0;transition:background-color var(--slotted-control-transition-duration) var(--slotted-control-transition-easing),color var(--slotted-control-transition-duration) var(--slotted-control-transition-easing)}[data-ui-alert]>[data-part-dismiss]:enabled:hover{background-color:var(--_state-hover)}[data-ui-alert]>[data-part-dismiss]:enabled:active{background-color:var(--_state-active)}[data-ui-alert]>[data-part-dismiss]:disabled{color:var(--slotted-disabled-foreground);cursor:default}@media(pointer:coarse){[data-ui-alert]>[data-part-dismiss]{position:relative}[data-ui-alert]>[data-part-dismiss]:after{content:\"\";inset:min(0px,calc((100% - var(--slotted-target-comfortable, 44px)) / 2));position:absolute}}[data-ui-alert]>[data-part-dismiss]:focus-visible{outline:var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);outline-offset:calc(-1 * var(--slotted-focus-ring-width, 2px))}[data-ui-alert][data-variant=solid]>[data-part-dismiss]:focus-visible{box-shadow:inset 0 0 0 calc(2 * var(--slotted-focus-ring-width, 2px)) var(--_on-solid)}[data-ui-alert][data-part-root]:focus-visible{outline:var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);outline-offset:var(--slotted-focus-ring-offset, 2px)}@container slotted-alert (max-width: 22rem){[data-ui-alert]>[data-part-actions]{align-items:flex-start;flex-direction:column}}@container slotted-alert (min-width: 40rem){[data-ui-alert][data-reach=page]>[data-part-actions]{align-self:center;grid-column:3;grid-row:1;margin-inline-start:var(--_column-gap)}[data-ui-alert][data-reach=page]>[data-part-dismiss]{align-self:center;grid-column:4;margin-block:0}}@media(forced-colors:active){[data-ui-alert][data-part-root][data-variant]{background-color:Canvas;border-color:CanvasText;color:CanvasText}[data-ui-alert]>[data-part-dismiss]{color:CanvasText}[data-ui-alert]>[data-part-dismiss]:enabled:hover,[data-ui-alert]>[data-part-dismiss]:enabled:active{background-color:Highlight;color:HighlightText}}}\n"] }]
317
+ }, styles: ["@layer slotted.components{[data-ui-alert][data-part-root]{--_solid: var(--slotted-tone-accent-solid);--_on-solid: var(--slotted-tone-accent-on-solid);--_surface: var(--slotted-tone-accent-surface);--_border: var(--slotted-tone-accent-border);--_text: var(--slotted-tone-accent-text);--_state-hover: color-mix( in oklab, currentcolor var(--slotted-alert-state-layer-hover, 10%), transparent );--_state-active: color-mix( in oklab, currentcolor var(--slotted-alert-state-layer-active, 16%), transparent );--_font-size: var(--slotted-control-font-size-md, 13px);--_description-font-size: var(--slotted-control-font-size-md, 13px);--_glyph-size: var(--slotted-control-icon-size-md, 16px);--_inner-size: var(--slotted-control-inner-size-md, 24px);--_mark-size: round(nearest, 1.2em, 2px);--_line-height: var(--slotted-line-height-md, 1.5);--_inset-block: var(--slotted-alert-padding-block, var(--slotted-space-5, .75rem));--_inset-inline: var(--slotted-alert-padding-inline, var(--slotted-space-6, 1rem));--_column-gap: var(--slotted-alert-column-gap, var(--slotted-space-4, .5rem));--_row-gap: var(--slotted-alert-row-gap, var(--slotted-space-5, .75rem));--_text-gap: var(--slotted-alert-text-gap, var(--slotted-space-2, .25rem));--_radius: var(--slotted-alert-radius, var(--slotted-radius-md, 6px));--_border-width: var(--slotted-alert-border-width, var(--slotted-border-width-thin, 1px));--_dismiss-size: var( --slotted-alert-dismiss-size, max( var(--slotted-target-min, 24px), min(calc(var(--_glyph-size) + 2 * var(--slotted-space-2, .25rem)), var(--_inner-size)) ) );container-name:slotted-alert;container-type:inline-size;inline-size:100%;background-color:transparent;border:var(--_border-width) solid transparent;border-radius:var(--_radius);box-sizing:border-box;color:var(--_text);column-gap:0;display:grid;font-family:var(--slotted-alert-font-family, var(--slotted-control-font-family, sans-serif));font-size:var(--_font-size);grid-template-columns:auto minmax(0,1fr) auto;line-height:round(nearest,calc(var(--_line-height) * 1em),2px);padding-block:var(--_inset-block);padding-inline:var(--_inset-inline);row-gap:var(--_row-gap);transition:opacity var(--slotted-duration-short) var(--slotted-easing-enter),translate var(--slotted-duration-short) var(--slotted-easing-enter),display var(--slotted-duration-short) var(--slotted-easing-enter);transition-behavior:allow-discrete}[data-ui-alert][data-part-root][hidden]{display:none;opacity:0;transition:opacity var(--slotted-duration-short) var(--slotted-easing-exit),translate var(--slotted-duration-short) var(--slotted-easing-exit),display var(--slotted-duration-short) var(--slotted-easing-exit);translate:0 calc(-1 * var(--slotted-space-2, .25rem))}@starting-style{[data-ui-alert][data-part-root]:is([data-live=polite],[data-live=assertive]){opacity:0;translate:0 calc(-1 * var(--slotted-space-2, .25rem))}}[data-ui-alert][data-part-root][data-tone=accent]{--_solid: var(--slotted-tone-accent-solid);--_on-solid: var(--slotted-tone-accent-on-solid);--_surface: var(--slotted-tone-accent-surface);--_border: var(--slotted-tone-accent-border);--_text: var(--slotted-tone-accent-text)}[data-ui-alert][data-part-root][data-tone=secondary]{--_solid: var(--slotted-tone-secondary-solid);--_on-solid: var(--slotted-tone-secondary-on-solid);--_surface: var(--slotted-tone-secondary-surface);--_border: var(--slotted-tone-secondary-border);--_text: var(--slotted-tone-secondary-text)}[data-ui-alert][data-part-root][data-tone=success]{--_solid: var(--slotted-tone-success-solid);--_on-solid: var(--slotted-tone-success-on-solid);--_surface: var(--slotted-tone-success-surface);--_border: var(--slotted-tone-success-border);--_text: var(--slotted-tone-success-text)}[data-ui-alert][data-part-root][data-tone=info]{--_solid: var(--slotted-tone-info-solid);--_on-solid: var(--slotted-tone-info-on-solid);--_surface: var(--slotted-tone-info-surface);--_border: var(--slotted-tone-info-border);--_text: var(--slotted-tone-info-text)}[data-ui-alert][data-part-root][data-tone=warning]{--_solid: var(--slotted-tone-warning-solid);--_on-solid: var(--slotted-tone-warning-on-solid);--_surface: var(--slotted-tone-warning-surface);--_border: var(--slotted-tone-warning-border);--_text: var(--slotted-tone-warning-text)}[data-ui-alert][data-part-root][data-tone=danger]{--_solid: var(--slotted-tone-danger-solid);--_on-solid: var(--slotted-tone-danger-on-solid);--_surface: var(--slotted-tone-danger-surface);--_border: var(--slotted-tone-danger-border);--_text: var(--slotted-tone-danger-text)}[data-ui-alert][data-part-root][data-variant=soft]{background-color:var(--_surface);border-color:var(--_border)}[data-ui-alert][data-part-root][data-variant=outline]{background-color:transparent;border-color:var(--_border)}[data-ui-alert][data-part-root][data-variant=solid]{background-color:var(--_solid);border-color:var(--_solid);color:var(--_on-solid)}[data-ui-alert][data-part-root][data-reach=inline]{--_font-size: var(--slotted-control-font-size-sm, 12px);--_description-font-size: var(--slotted-control-font-size-sm, 12px);--_glyph-size: var(--slotted-control-icon-size-sm, 14px);--_inner-size: var(--slotted-control-inner-size-sm, 22px);--_inset-block: var(--slotted-alert-padding-block, var(--slotted-space-4, .5rem));--_inset-inline: var(--slotted-alert-padding-inline, var(--slotted-space-5, .75rem));--_row-gap: var(--slotted-alert-row-gap, var(--slotted-space-4, .5rem));--_radius: var(--slotted-alert-radius, var(--slotted-radius-sm, 4px))}[data-ui-alert][data-part-root][data-reach=page]{--_font-size: var(--slotted-control-font-size-lg, 14px);--_glyph-size: var(--slotted-control-icon-size-lg, 18px);--_inner-size: var(--slotted-control-inner-size-lg, 28px);--_inset-block: var(--slotted-alert-padding-block, var(--slotted-space-6, 1rem));--_inset-inline: var(--slotted-alert-padding-inline, var(--slotted-space-7, 1.25rem));--_radius: var(--slotted-alert-radius, 0);border-block-start-width:0;border-inline-width:0}[data-ui-alert][data-part-root][data-reach=page][data-variant=solid]{border-block-start-width:var(--_border-width);border-inline-width:var(--_border-width)}[data-ui-alert]>[data-part-icon]{--slotted-icon-size: var(--_mark-size);align-items:center;align-self:baseline;block-size:var(--_mark-size);contain:layout;display:flex;grid-column:1;grid-row:1;inline-size:var(--_mark-size);inset-block-start:round(nearest,(var(--_mark-size) - 1cap) / 2,1px);justify-content:center;margin-block-start:calc(-1 * var(--_mark-size));margin-inline-end:var(--_column-gap);position:relative}[data-ui-alert]>[data-part-content]{align-self:baseline;display:grid;grid-column:2;grid-row:1;grid-template-columns:minmax(0,1fr);min-inline-size:0;row-gap:var(--_text-gap)}[data-ui-alert] [data-part-title]{font-family:var( --slotted-alert-title-font-family, var( --slotted-font-family-heading, var(--slotted-font-family-sans, ui-sans-serif, system-ui, sans-serif) ) );font-size:inherit;font-weight:var(--slotted-alert-title-font-weight, var(--slotted-font-weight-semibold, 600));line-height:inherit;margin:0;min-inline-size:0;overflow-wrap:anywhere}[data-ui-alert] [data-part-description]{font-size:var(--_description-font-size);line-height:round(nearest,calc(var(--_line-height) * 1em),2px);margin:0;min-inline-size:0;overflow-wrap:anywhere}[data-ui-alert]>[data-part-actions]{align-items:center;display:flex;flex-wrap:wrap;gap:var(--slotted-alert-actions-gap, var(--slotted-space-3, .375rem));grid-column:2;grid-row:2;min-inline-size:0}[data-ui-alert]>[data-part-dismiss]{--slotted-icon-size: var(--_glyph-size);align-items:center;align-self:start;appearance:none;background-color:transparent;block-size:var(--_dismiss-size);border:0;border-radius:var(--slotted-alert-dismiss-radius, var(--slotted-control-radius, 4px));color:inherit;cursor:pointer;display:inline-flex;flex:none;font:inherit;grid-column:3;grid-row:1;inline-size:var(--_dismiss-size);justify-content:center;margin-block-end:calc((1lh - var(--_dismiss-size)) / 2);margin-block-start:calc((1lh - var(--_dismiss-size)) / 2);margin-inline-end:calc((1lh - var(--_dismiss-size)) / 2);margin-inline-start:var(--_column-gap);padding:0;transition:background-color var(--slotted-control-transition-duration) var(--slotted-control-transition-easing),color var(--slotted-control-transition-duration) var(--slotted-control-transition-easing)}[data-ui-alert]>[data-part-dismiss]:enabled:hover{background-color:var(--_state-hover)}[data-ui-alert]>[data-part-dismiss]:enabled:active{background-color:var(--_state-active)}[data-ui-alert]>[data-part-dismiss]:disabled{color:var(--slotted-disabled-foreground);cursor:default}@media(pointer:coarse){[data-ui-alert]>[data-part-dismiss]{position:relative}[data-ui-alert]>[data-part-dismiss]:after{content:\"\";inset:min(0px,calc((100% - var(--slotted-target-comfortable, 44px)) / 2));position:absolute}}[data-ui-alert]>[data-part-dismiss]:focus-visible{outline:var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);outline-offset:calc(-1 * var(--slotted-focus-ring-width, 2px))}[data-ui-alert][data-variant=solid]>[data-part-dismiss]:focus-visible{box-shadow:inset 0 0 0 calc(2 * var(--slotted-focus-ring-width, 2px)) var(--_on-solid)}[data-ui-alert][data-part-root]:focus-visible{outline:var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);outline-offset:var(--slotted-focus-ring-offset, 2px)}@container slotted-alert (max-width: 22rem){[data-ui-alert]>[data-part-actions]{align-items:flex-start;flex-direction:column}}@container slotted-alert (min-width: 40rem){[data-ui-alert][data-reach=page]>[data-part-actions]{align-self:center;grid-column:3;grid-row:1;margin-inline-start:var(--_column-gap)}[data-ui-alert][data-reach=page]>[data-part-dismiss]{align-self:center;grid-column:4;margin-block:0}}@media(forced-colors:active){[data-ui-alert][data-part-root][data-variant]{background-color:Canvas;border-color:CanvasText;color:CanvasText}[data-ui-alert]>[data-part-dismiss]{color:CanvasText}[data-ui-alert]>[data-part-dismiss]:enabled:hover,[data-ui-alert]>[data-part-dismiss]:enabled:active{background-color:Highlight;color:HighlightText}}}\n"] }]
318
318
  }], ctorParameters: () => [], propDecorators: { tone: [{ type: i0.Input, args: [{ isSignal: true, alias: "tone", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], reach: [{ type: i0.Input, args: [{ isSignal: true, alias: "reach", required: false }] }], live: [{ type: i0.Input, args: [{ isSignal: true, alias: "live", required: false }] }], hideIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "hideIcon", required: false }] }], dismissible: [{ type: i0.Input, args: [{ isSignal: true, alias: "dismissible", required: false }] }], messages: [{ type: i0.Input, args: [{ isSignal: true, alias: "messages", required: false }] }], open: [{ type: i0.Input, args: [{ isSignal: true, alias: "open", required: false }] }], defaultOpen: [{ type: i0.Input, args: [{ isSignal: true, alias: "defaultOpen", required: false }] }], restoreFocus: [{ type: i0.Input, args: [{ isSignal: true, alias: "restoreFocus", required: false }] }], openChange: [{ type: i0.Output, args: ["openChange"] }], suppliedIcon: [{ type: i0.ContentChild, args: [i0.forwardRef(() => SlAlertIcon), { isSignal: true }] }] } });
319
319
 
320
320
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"slotted-angular-alert.mjs","sources":["../../alert/src/alert-defaults.ts","../../alert/src/alert.ts","../../alert/src/alert-parts.ts","../../alert/src/slotted-angular-alert.ts"],"sourcesContent":["import { inject, Injectable, InjectionToken } from '@angular/core';\n\n/** Which of the five semantic colours the message speaks in. */\nexport type AlertTone = 'accent' | 'secondary' | 'info' | 'success' | 'warning' | 'danger';\n\n/** How that colour is painted. `soft` is the tinted box an alert usually is. */\nexport type AlertVariant = 'soft' | 'outline' | 'solid';\n\n/**\n * The scope the message applies to, which is the guide's three recipes as one\n * axis: an alert beside the thing it is about, a callout inside a section, a\n * banner across a page.\n */\nexport type AlertReach = 'inline' | 'section' | 'page';\n\n/**\n * Whether the message announces itself, and how loudly. `off` is the default,\n * because the WAI-ARIA APG records that screen readers do not inform users of\n * alerts already present when the page finishes loading.\n */\nexport type AlertLive = 'off' | 'polite' | 'assertive';\n\nexport interface AlertDefaults {\n live: AlertLive;\n reach: AlertReach;\n tone: AlertTone;\n variant: AlertVariant;\n}\n\nconst FALLBACK: AlertDefaults = {\n live: 'off',\n reach: 'section',\n tone: 'accent',\n variant: 'soft',\n};\n\nexport const ALERT_DEFAULTS = new InjectionToken<AlertDefaults>('slotted alert defaults', {\n providedIn: 'root',\n factory: () => FALLBACK,\n});\n\n/**\n * An application decides once how its messages are painted, at what reach and\n * how loud, rather than repeating the same inputs on every alert in a settings\n * page. An alert that states any of them itself still wins: an explicit input is\n * never overridden by the token. The dismiss control's name comes from the\n * language in force (`provideSlotted`).\n */\nexport function provideAlertDefaults(defaults: Partial<AlertDefaults>) {\n return {\n provide: ALERT_DEFAULTS,\n useFactory: (): AlertDefaults => ({\n live: defaults.live ?? FALLBACK.live,\n reach: defaults.reach ?? FALLBACK.reach,\n tone: defaults.tone ?? FALLBACK.tone,\n variant: defaults.variant ?? FALLBACK.variant,\n }),\n };\n}\n\n/** What an alert renders as here, before it states anything of its own. */\nexport function injectAlertDefaults(): AlertDefaults {\n return inject(ALERT_DEFAULTS);\n}\n\n/**\n * Application-scoped rather than module-scoped, for the reason `tag` records: a\n * module-level counter produces colliding sequences when two applications\n * render in one server process, and the server and the client sequences must\n * match for hydration.\n */\n@Injectable({ providedIn: 'root' })\nexport class SlAlertIdFactory {\n private count = 0;\n\n next() {\n this.count += 1;\n return `slotted-alert-${this.count}`;\n }\n}\n","import { alertMessages, type AlertMessages, type PartialMessages } from '@slotted/core/i18n';\nimport { createControllable } from '@slotted/core/state';\nimport type { ChangeRequest } from '@slotted/core/state';\nimport {\n booleanAttribute,\n ChangeDetectionStrategy,\n Component,\n computed,\n contentChild,\n DestroyRef,\n Directive,\n effect,\n ElementRef,\n HostAttributeToken,\n inject,\n input,\n output,\n signal,\n ViewEncapsulation,\n} from '@angular/core';\nimport { injectMessages } from '@slotted/angular/i18n';\nimport { SlGlyph, SlIcon } from '@slotted/angular/icon';\nimport type { GlyphName } from '@slotted/angular/icon';\n\nimport { injectAlertDefaults, SlAlertIdFactory } from './alert-defaults';\nimport type { AlertLive, AlertReach, AlertTone, AlertVariant } from './alert-defaults';\n\nexport type { AlertLive, AlertReach, AlertTone, AlertVariant } from './alert-defaults';\n\n/**\n * The glyph each tone draws, in its solid form: `specs/components/alert/contract.json`\n * holds the map. Every one is circled, so every mark is the same disc and the\n * symbol cut out of it tells the tones apart. `secondary` draws none: a neutral\n * note has no severity to state, and a disc with nothing cut out of it said\n * nothing. Its absence is itself the difference under forced colours.\n */\nconst TONE_GLYPH: Record<AlertTone, GlyphName | null> = {\n accent: 'circle-info',\n secondary: null,\n info: 'circle-info',\n success: 'circle-check',\n warning: 'circle-alert',\n danger: 'circle-x',\n};\n\n/**\n * Why the message closed. `dismiss` is the control at its corner;\n * `programmatic` is the application asking through `exportAs`. `escape` is\n * deliberately absent: an alert is not a dismissable layer, and one inside a\n * dialog would swallow the dialog's Escape.\n */\nexport type AlertCloseReason = 'dismiss' | 'programmatic';\n\n/**\n * A message about the page, a section, or the thing beside it.\n *\n * The directive is written on the consumer's own element, and the element it\n * belongs on is a `section`: named by its own title through `aria-labelledby`,\n * a `section` is a `region` landmark a reader can jump to, and unnamed it is a\n * plain grouping element that costs nothing.\n *\n * **The box is not the live region.** MDN's `alert` role reference states that\n * the role \"should only be used for text content, not interactive elements such\n * as links or buttons\", and every alert worth shipping has a dismiss control.\n * `slAlertContent` is what announces, and it holds the title and the\n * description alone; the actions and the dismiss control are its siblings.\n *\n * **Closing hides rather than removes.** A live region has to be in the\n * document before its text changes, so an alert that removed itself could not\n * announce the second time the message arrived — and `data-open` is only a\n * state a consumer can style if the element is there to carry it.\n */\n/**\n * A mark the page supplies instead of the tone's own. It is projected into the\n * box the family draws, so it keeps the size, the colour and the place on the\n * message's first line that the tone's own mark would have had.\n */\n@Directive({\n selector: '[slAlertIcon]',\n standalone: true,\n exportAs: 'slAlertIcon',\n})\nexport class SlAlertIcon {}\n\n@Component({\n selector: '[slAlert]',\n standalone: true,\n exportAs: 'slAlert',\n imports: [SlGlyph, SlIcon],\n template: `@if (!hideIcon() && (glyph() || suppliedIcon())) {\n <span aria-hidden=\"true\" data-part=\"icon\" data-part-icon=\"\"\n ><ng-content select=\"[slAlertIcon]\">\n @if (glyph(); as name) {\n <span slIcon><svg slGlyph [name]=\"name\" solid></svg></span>\n }</ng-content\n ></span>\n }\n <ng-content />\n @if (dismissible()) {\n <button\n type=\"button\"\n data-part=\"dismiss\"\n data-part-dismiss=\"\"\n [attr.aria-label]=\"t('dismiss')\"\n (click)=\"onDismiss($event)\"\n >\n <span slIcon><svg slGlyph name=\"x\"></svg></span>\n </button>\n }`,\n styleUrl: '../../../styles/src/alert/alert.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: {\n 'data-ui': 'alert',\n 'data-ui-alert': '',\n 'data-part': 'root',\n 'data-part-root': '',\n '[attr.data-tone]': 'resolvedTone()',\n '[attr.data-variant]': 'resolvedVariant()',\n '[attr.data-reach]': 'resolvedReach()',\n '[attr.data-live]': 'resolvedLive()',\n '[attr.data-open]': \"isOpen() ? '' : null\",\n '[attr.hidden]': \"isOpen() ? null : ''\",\n '[attr.tabindex]': 'writtenTabIndex ?? -1',\n '[attr.aria-labelledby]': 'labelledBy()',\n '(focusin)': 'onFocusIn($event)',\n '(focusout)': 'onFocusOut($event)',\n },\n})\nexport class SlAlert {\n /** Defaults to the provider, then to `accent`. */\n readonly tone = input<AlertTone | undefined>(undefined);\n /** Defaults to the provider, then to `soft`. */\n readonly variant = input<AlertVariant | undefined>(undefined);\n /** Defaults to the provider, then to `section`. */\n readonly reach = input<AlertReach | undefined>(undefined);\n /** Defaults to the provider, then to `off`. */\n readonly live = input<AlertLive | undefined>(undefined);\n /** Draws no mark at all, for a callout carrying its own artwork. */\n readonly hideIcon = input(false, { transform: booleanAttribute });\n /**\n * Renders the control that closes the message. React reads the same fact from\n * whether a handler was passed; Angular cannot see whether an output was\n * subscribed, so the opt-in is stated — the asymmetry `tag` recorded.\n */\n readonly dismissible = input(false, { transform: booleanAttribute });\n /** Words laid over the catalog of the language in force, key by key: what that control announces (`dismiss`). */\n readonly messages = input<PartialMessages<AlertMessages> | undefined>(undefined);\n /** Present means controlled, for the life of the component. */\n readonly open = input<boolean | undefined, boolean | string | undefined>(undefined, {\n transform: (value) => (value === undefined ? undefined : booleanAttribute(value)),\n });\n /** The openness an uncontrolled alert starts from, read once. */\n readonly defaultOpen = input(true, { transform: booleanAttribute });\n /**\n * Returns the keyboard to where it came from when the message closes with\n * focus inside it. Nothing moves when focus was never there.\n */\n readonly restoreFocus = input(true, { transform: booleanAttribute });\n\n /**\n * One output for one transition, carrying the value, the value it replaces,\n * the reason, the originating event and `cancel()`. There is no `[(open)]`\n * because a two-way binding has one slot and cannot carry any of those.\n */\n readonly openChange = output<ChangeRequest<boolean>>();\n\n private readonly defaults = injectAlertDefaults();\n /** The family's words in the language in force, with this alert's `messages` laid over them. */\n readonly t = injectMessages(alertMessages, this.messages);\n private readonly host = inject<ElementRef<HTMLElement>>(ElementRef);\n /** An explicit tab index the consumer wrote is never replaced by the family's. */\n protected readonly writtenTabIndex = inject(new HostAttributeToken('tabindex'), {\n optional: true,\n });\n\n /** The identifier the title writes, and the box is named by. */\n readonly titleId = `${inject(SlAlertIdFactory).next()}-title`;\n\n private readonly own = signal<boolean | undefined>(undefined);\n private readonly titlePresent = signal(false);\n\n /**\n * Where the keyboard came from, and whether it is here now. Both are read at\n * the moment the message closes, when the element focus was on may already be\n * gone — so they are remembered as focus crosses the boundary rather than\n * looked up in the DOM afterwards.\n */\n private cameFrom: HTMLElement | null = null;\n private holdsFocus = false;\n\n protected readonly resolvedTone = computed(() => this.tone() ?? this.defaults.tone);\n protected readonly glyph = computed(() => TONE_GLYPH[this.resolvedTone()]);\n /** A mark the page projected, which draws even where the tone has none. */\n protected readonly suppliedIcon = contentChild(SlAlertIcon);\n protected readonly resolvedVariant = computed(() => this.variant() ?? this.defaults.variant);\n protected readonly resolvedReach = computed(() => this.reach() ?? this.defaults.reach);\n readonly resolvedLive = computed(() => this.live() ?? this.defaults.live);\n\n readonly isOpen = computed(() => this.open() ?? this.own() ?? this.defaultOpen());\n\n /**\n * A `section` with an `aria-labelledby` pointing at nothing has no accessible\n * name and is not a landmark, so the attribute is written only once a title\n * has said it exists.\n */\n protected readonly labelledBy = computed(() => (this.titlePresent() ? this.titleId : null));\n\n constructor() {\n let previous = this.isOpen();\n effect(() => {\n const next = this.isOpen();\n if (previous && !next) this.restore();\n previous = next;\n });\n /* The message removed by the consumer rather than closed by itself. */\n inject(DestroyRef).onDestroy(() => this.restore());\n }\n\n /** Called by `slAlertTitle`, which is the part that names the box. */\n registerTitle(present: boolean) {\n this.titlePresent.set(present);\n }\n\n /** Sends the keyboard to the message. The family never does this by itself. */\n focus() {\n this.host.nativeElement.focus();\n }\n\n /**\n * Asks to open or close, carrying `programmatic` as the reason. It is the\n * reach a template has and React does not: JSX can re-render an input, and an\n * Angular template can only call a method on the instance `exportAs` gives it.\n */\n setOpen(next: boolean) {\n this.request(next, 'programmatic');\n }\n\n protected onDismiss(event: MouseEvent) {\n /* A consumer that called preventDefault has refused the dismissal, and a\n refused dismissal moves nothing. */\n if (event.defaultPrevented) return;\n this.request(false, 'dismiss', event);\n }\n\n protected onFocusIn(event: FocusEvent) {\n const previous = event.relatedTarget;\n if (previous instanceof HTMLElement && !this.host.nativeElement.contains(previous)) {\n this.cameFrom = previous;\n }\n this.holdsFocus = true;\n }\n\n protected onFocusOut(event: FocusEvent) {\n const next = event.relatedTarget;\n if (!(next instanceof Node) || !this.host.nativeElement.contains(next)) {\n this.holdsFocus = false;\n }\n }\n\n private request(next: boolean, reason: AlertCloseReason, source?: Event) {\n const state = createControllable<boolean>({\n controlled: this.open(),\n initial: this.isOpen(),\n onRequest: (request) => this.openChange.emit(request),\n });\n\n if (state.request(next, reason, source)) this.own.set(next);\n }\n\n private restore() {\n if (!this.restoreFocus() || !this.holdsFocus) return;\n this.holdsFocus = false;\n const target = this.cameFrom;\n if (target === null || !target.isConnected) return;\n target.focus();\n }\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n computed,\n Directive,\n inject,\n ViewEncapsulation,\n} from '@angular/core';\n\nimport { SlAlert } from './alert';\nimport type { AlertLive } from './alert-defaults';\n\n/**\n * The two roles that announce, and the value that does not. Both roles imply\n * `aria-live` and `aria-atomic`, so the whole message is read rather than the\n * word that changed, and nothing here writes either attribute by hand.\n */\nconst LIVE_ROLE: Record<AlertLive, string | null> = {\n off: null,\n polite: 'status',\n assertive: 'alert',\n};\n\n/**\n * The message itself, and the only part that announces.\n *\n * It is written explicitly rather than wrapped around the alert's projected\n * content, because a box that guessed which of its children were text would be\n * guessing about the one thing a reader hears. Fluent's `MessageBarBody` is the\n * only surveyed implementation with the same shape, and it is the only one\n * whose region excludes its own controls.\n */\n@Directive({\n selector: '[slAlertContent]',\n standalone: true,\n exportAs: 'slAlertContent',\n host: {\n 'data-part': 'content',\n 'data-part-content': '',\n '[attr.role]': 'role()',\n },\n})\nexport class SlAlertContent {\n private readonly alert = inject(SlAlert);\n\n protected readonly role = computed(() => LIVE_ROLE[this.alert.resolvedLive()]);\n}\n\n/**\n * The message's name, and the box's.\n *\n * The element is the consumer's: a heading puts the alert in the document\n * outline, which is right for a page banner and wrong for the alert beside a\n * field group, and only the page knows which. Writing `<h3 slAlertTitle>` is\n * how a page that wants one says so, and Angular needs no `render` prop to\n * allow it.\n */\n@Component({\n selector: '[slAlertTitle]',\n standalone: true,\n exportAs: 'slAlertTitle',\n template: '<ng-content />',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: {\n 'data-part': 'title',\n 'data-part-title': '',\n '[attr.id]': 'alert.titleId',\n },\n})\nexport class SlAlertTitle {\n protected readonly alert = inject(SlAlert);\n\n constructor() {\n this.alert.registerTitle(true);\n }\n\n ngOnDestroy() {\n this.alert.registerTitle(false);\n }\n}\n\n/** The message. Written on the consumer's own `p`, which is what prose is. */\n@Directive({\n selector: '[slAlertDescription]',\n standalone: true,\n exportAs: 'slAlertDescription',\n host: { 'data-part': 'description', 'data-part-description': '' },\n})\nexport class SlAlertDescription {}\n\n/**\n * The controls that act on the message, outside the region that announces: a\n * reader hearing the message is not read the labels of two buttons in the\n * middle of it. What goes in is the consumer's own buttons, because `button`\n * already owns what a button is.\n */\n@Directive({\n selector: '[slAlertActions]',\n standalone: true,\n exportAs: 'slAlertActions',\n host: { 'data-part': 'actions', 'data-part-actions': '' },\n})\nexport class SlAlertActions {}\n\n/* `SlAlertIcon` lives in `./alert`: the alert reads whether one was projected. */\nexport { SlAlertIcon } from './alert';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;AA6BA,MAAM,QAAQ,GAAkB;AAC9B,IAAA,IAAI,EAAE,KAAK;AACX,IAAA,KAAK,EAAE,SAAS;AAChB,IAAA,IAAI,EAAE,QAAQ;AACd,IAAA,OAAO,EAAE,MAAM;CAChB;MAEY,cAAc,GAAG,IAAI,cA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ert/src/alert.ts","../../alert/src/alert-parts.ts","../../alert/src/slotted-angular-alert.ts"],"sourcesContent":["import { inject, Injectable, InjectionToken } from '@angular/core';\n\n/** Which of the five semantic colours the message speaks in. */\nexport type AlertTone = 'accent' | 'secondary' | 'info' | 'success' | 'warning' | 'danger';\n\n/** How that colour is painted. `soft` is the tinted box an alert usually is. */\nexport type AlertVariant = 'soft' | 'outline' | 'solid';\n\n/**\n * The scope the message applies to, which is the guide's three recipes as one\n * axis: an alert beside the thing it is about, a callout inside a section, a\n * banner across a page.\n */\nexport type AlertReach = 'inline' | 'section' | 'page';\n\n/**\n * Whether the message announces itself, and how loudly. `off` is the default,\n * because the WAI-ARIA APG records that screen readers do not inform users of\n * alerts already present when the page finishes loading.\n */\nexport type AlertLive = 'off' | 'polite' | 'assertive';\n\nexport interface AlertDefaults {\n live: AlertLive;\n reach: AlertReach;\n tone: AlertTone;\n variant: AlertVariant;\n}\n\nconst FALLBACK: AlertDefaults = {\n live: 'off',\n reach: 'section',\n tone: 'accent',\n variant: 'soft',\n};\n\nexport const ALERT_DEFAULTS = new InjectionToken<AlertDefaults>('slotted alert defaults', {\n providedIn: 'root',\n factory: () => FALLBACK,\n});\n\n/**\n * An application decides once how its messages are painted, at what reach and\n * how loud, rather than repeating the same inputs on every alert in a settings\n * page. An alert that states any of them itself still wins: an explicit input is\n * never overridden by the token. The dismiss control's name comes from the\n * language in force (`provideSlotted`).\n */\nexport function provideAlertDefaults(defaults: Partial<AlertDefaults>) {\n return {\n provide: ALERT_DEFAULTS,\n useFactory: (): AlertDefaults => ({\n live: defaults.live ?? FALLBACK.live,\n reach: defaults.reach ?? FALLBACK.reach,\n tone: defaults.tone ?? FALLBACK.tone,\n variant: defaults.variant ?? FALLBACK.variant,\n }),\n };\n}\n\n/** What an alert renders as here, before it states anything of its own. */\nexport function injectAlertDefaults(): AlertDefaults {\n return inject(ALERT_DEFAULTS);\n}\n\n/**\n * Application-scoped rather than module-scoped, for the reason `tag` records: a\n * module-level counter produces colliding sequences when two applications\n * render in one server process, and the server and the client sequences must\n * match for hydration.\n */\n@Injectable({ providedIn: 'root' })\nexport class SlAlertIdFactory {\n private count = 0;\n\n next() {\n this.count += 1;\n return `slotted-alert-${this.count}`;\n }\n}\n","import { alertMessages, type AlertMessages, type PartialMessages } from '@slotted/core/i18n';\nimport { createControllable } from '@slotted/core/state';\nimport type { ChangeRequest } from '@slotted/core/state';\nimport {\n booleanAttribute,\n ChangeDetectionStrategy,\n Component,\n computed,\n contentChild,\n DestroyRef,\n Directive,\n effect,\n ElementRef,\n HostAttributeToken,\n inject,\n input,\n output,\n signal,\n ViewEncapsulation,\n} from '@angular/core';\nimport { injectMessages } from '@slotted/angular/i18n';\nimport { SlGlyph, SlIcon } from '@slotted/angular/icon';\nimport type { GlyphName } from '@slotted/angular/icon';\n\nimport { injectAlertDefaults, SlAlertIdFactory } from './alert-defaults';\nimport type { AlertLive, AlertReach, AlertTone, AlertVariant } from './alert-defaults';\n\nexport type { AlertLive, AlertReach, AlertTone, AlertVariant } from './alert-defaults';\n\n/**\n * The glyph each tone draws, in its solid form: `specs/components/alert/contract.json`\n * holds the map. Every one is circled, so every mark is the same disc and the\n * symbol cut out of it tells the tones apart. `secondary` draws none: a neutral\n * note has no severity to state, and a disc with nothing cut out of it said\n * nothing. Its absence is itself the difference under forced colours.\n */\nconst TONE_GLYPH: Record<AlertTone, GlyphName | null> = {\n accent: 'status-info',\n secondary: null,\n info: 'status-info',\n success: 'status-success',\n warning: 'status-warning',\n danger: 'status-danger',\n};\n\n/**\n * Why the message closed. `dismiss` is the control at its corner;\n * `programmatic` is the application asking through `exportAs`. `escape` is\n * deliberately absent: an alert is not a dismissable layer, and one inside a\n * dialog would swallow the dialog's Escape.\n */\nexport type AlertCloseReason = 'dismiss' | 'programmatic';\n\n/**\n * A message about the page, a section, or the thing beside it.\n *\n * The directive is written on the consumer's own element, and the element it\n * belongs on is a `section`: named by its own title through `aria-labelledby`,\n * a `section` is a `region` landmark a reader can jump to, and unnamed it is a\n * plain grouping element that costs nothing.\n *\n * **The box is not the live region.** MDN's `alert` role reference states that\n * the role \"should only be used for text content, not interactive elements such\n * as links or buttons\", and every alert worth shipping has a dismiss control.\n * `slAlertContent` is what announces, and it holds the title and the\n * description alone; the actions and the dismiss control are its siblings.\n *\n * **Closing hides rather than removes.** A live region has to be in the\n * document before its text changes, so an alert that removed itself could not\n * announce the second time the message arrived — and `data-open` is only a\n * state a consumer can style if the element is there to carry it.\n */\n/**\n * A mark the page supplies instead of the tone's own. It is projected into the\n * box the family draws, so it keeps the size, the colour and the place on the\n * message's first line that the tone's own mark would have had.\n */\n@Directive({\n selector: '[slAlertIcon]',\n standalone: true,\n exportAs: 'slAlertIcon',\n})\nexport class SlAlertIcon {}\n\n@Component({\n selector: '[slAlert]',\n standalone: true,\n exportAs: 'slAlert',\n imports: [SlGlyph, SlIcon],\n template: `@if (!hideIcon() && (glyph() || suppliedIcon())) {\n <span aria-hidden=\"true\" data-part=\"icon\" data-part-icon=\"\"\n ><ng-content select=\"[slAlertIcon]\">\n @if (glyph(); as name) {\n <span slIcon><svg slGlyph [name]=\"name\" solid></svg></span>\n }</ng-content\n ></span>\n }\n <ng-content />\n @if (dismissible()) {\n <button\n type=\"button\"\n data-part=\"dismiss\"\n data-part-dismiss=\"\"\n [attr.aria-label]=\"t('dismiss')\"\n (click)=\"onDismiss($event)\"\n >\n <span slIcon><svg slGlyph name=\"x\"></svg></span>\n </button>\n }`,\n styleUrl: '../../../styles/src/alert/alert.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: {\n 'data-ui': 'alert',\n 'data-ui-alert': '',\n 'data-part': 'root',\n 'data-part-root': '',\n '[attr.data-tone]': 'resolvedTone()',\n '[attr.data-variant]': 'resolvedVariant()',\n '[attr.data-reach]': 'resolvedReach()',\n '[attr.data-live]': 'resolvedLive()',\n '[attr.data-open]': \"isOpen() ? '' : null\",\n '[attr.hidden]': \"isOpen() ? null : ''\",\n '[attr.tabindex]': 'writtenTabIndex ?? -1',\n '[attr.aria-labelledby]': 'labelledBy()',\n '(focusin)': 'onFocusIn($event)',\n '(focusout)': 'onFocusOut($event)',\n },\n})\nexport class SlAlert {\n /** Defaults to the provider, then to `accent`. */\n readonly tone = input<AlertTone | undefined>(undefined);\n /** Defaults to the provider, then to `soft`. */\n readonly variant = input<AlertVariant | undefined>(undefined);\n /** Defaults to the provider, then to `section`. */\n readonly reach = input<AlertReach | undefined>(undefined);\n /** Defaults to the provider, then to `off`. */\n readonly live = input<AlertLive | undefined>(undefined);\n /** Draws no mark at all, for a callout carrying its own artwork. */\n readonly hideIcon = input(false, { transform: booleanAttribute });\n /**\n * Renders the control that closes the message. React reads the same fact from\n * whether a handler was passed; Angular cannot see whether an output was\n * subscribed, so the opt-in is stated — the asymmetry `tag` recorded.\n */\n readonly dismissible = input(false, { transform: booleanAttribute });\n /** Words laid over the catalog of the language in force, key by key: what that control announces (`dismiss`). */\n readonly messages = input<PartialMessages<AlertMessages> | undefined>(undefined);\n /** Present means controlled, for the life of the component. */\n readonly open = input<boolean | undefined, boolean | string | undefined>(undefined, {\n transform: (value) => (value === undefined ? undefined : booleanAttribute(value)),\n });\n /** The openness an uncontrolled alert starts from, read once. */\n readonly defaultOpen = input(true, { transform: booleanAttribute });\n /**\n * Returns the keyboard to where it came from when the message closes with\n * focus inside it. Nothing moves when focus was never there.\n */\n readonly restoreFocus = input(true, { transform: booleanAttribute });\n\n /**\n * One output for one transition, carrying the value, the value it replaces,\n * the reason, the originating event and `cancel()`. There is no `[(open)]`\n * because a two-way binding has one slot and cannot carry any of those.\n */\n readonly openChange = output<ChangeRequest<boolean>>();\n\n private readonly defaults = injectAlertDefaults();\n /** The family's words in the language in force, with this alert's `messages` laid over them. */\n readonly t = injectMessages(alertMessages, this.messages);\n private readonly host = inject<ElementRef<HTMLElement>>(ElementRef);\n /** An explicit tab index the consumer wrote is never replaced by the family's. */\n protected readonly writtenTabIndex = inject(new HostAttributeToken('tabindex'), {\n optional: true,\n });\n\n /** The identifier the title writes, and the box is named by. */\n readonly titleId = `${inject(SlAlertIdFactory).next()}-title`;\n\n private readonly own = signal<boolean | undefined>(undefined);\n private readonly titlePresent = signal(false);\n\n /**\n * Where the keyboard came from, and whether it is here now. Both are read at\n * the moment the message closes, when the element focus was on may already be\n * gone — so they are remembered as focus crosses the boundary rather than\n * looked up in the DOM afterwards.\n */\n private cameFrom: HTMLElement | null = null;\n private holdsFocus = false;\n\n protected readonly resolvedTone = computed(() => this.tone() ?? this.defaults.tone);\n protected readonly glyph = computed(() => TONE_GLYPH[this.resolvedTone()]);\n /** A mark the page projected, which draws even where the tone has none. */\n protected readonly suppliedIcon = contentChild(SlAlertIcon);\n protected readonly resolvedVariant = computed(() => this.variant() ?? this.defaults.variant);\n protected readonly resolvedReach = computed(() => this.reach() ?? this.defaults.reach);\n readonly resolvedLive = computed(() => this.live() ?? this.defaults.live);\n\n readonly isOpen = computed(() => this.open() ?? this.own() ?? this.defaultOpen());\n\n /**\n * A `section` with an `aria-labelledby` pointing at nothing has no accessible\n * name and is not a landmark, so the attribute is written only once a title\n * has said it exists.\n */\n protected readonly labelledBy = computed(() => (this.titlePresent() ? this.titleId : null));\n\n constructor() {\n let previous = this.isOpen();\n effect(() => {\n const next = this.isOpen();\n if (previous && !next) this.restore();\n previous = next;\n });\n /* The message removed by the consumer rather than closed by itself. */\n inject(DestroyRef).onDestroy(() => this.restore());\n }\n\n /** Called by `slAlertTitle`, which is the part that names the box. */\n registerTitle(present: boolean) {\n this.titlePresent.set(present);\n }\n\n /** Sends the keyboard to the message. The family never does this by itself. */\n focus() {\n this.host.nativeElement.focus();\n }\n\n /**\n * Asks to open or close, carrying `programmatic` as the reason. It is the\n * reach a template has and React does not: JSX can re-render an input, and an\n * Angular template can only call a method on the instance `exportAs` gives it.\n */\n setOpen(next: boolean) {\n this.request(next, 'programmatic');\n }\n\n protected onDismiss(event: MouseEvent) {\n /* A consumer that called preventDefault has refused the dismissal, and a\n refused dismissal moves nothing. */\n if (event.defaultPrevented) return;\n this.request(false, 'dismiss', event);\n }\n\n protected onFocusIn(event: FocusEvent) {\n const previous = event.relatedTarget;\n if (previous instanceof HTMLElement && !this.host.nativeElement.contains(previous)) {\n this.cameFrom = previous;\n }\n this.holdsFocus = true;\n }\n\n protected onFocusOut(event: FocusEvent) {\n const next = event.relatedTarget;\n if (!(next instanceof Node) || !this.host.nativeElement.contains(next)) {\n this.holdsFocus = false;\n }\n }\n\n private request(next: boolean, reason: AlertCloseReason, source?: Event) {\n const state = createControllable<boolean>({\n controlled: this.open(),\n initial: this.isOpen(),\n onRequest: (request) => this.openChange.emit(request),\n });\n\n if (state.request(next, reason, source)) this.own.set(next);\n }\n\n private restore() {\n if (!this.restoreFocus() || !this.holdsFocus) return;\n this.holdsFocus = false;\n const target = this.cameFrom;\n if (target === null || !target.isConnected) return;\n target.focus();\n }\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n computed,\n Directive,\n inject,\n ViewEncapsulation,\n} from '@angular/core';\n\nimport { SlAlert } from './alert';\nimport type { AlertLive } from './alert-defaults';\n\n/**\n * The two roles that announce, and the value that does not. Both roles imply\n * `aria-live` and `aria-atomic`, so the whole message is read rather than the\n * word that changed, and nothing here writes either attribute by hand.\n */\nconst LIVE_ROLE: Record<AlertLive, string | null> = {\n off: null,\n polite: 'status',\n assertive: 'alert',\n};\n\n/**\n * The message itself, and the only part that announces.\n *\n * It is written explicitly rather than wrapped around the alert's projected\n * content, because a box that guessed which of its children were text would be\n * guessing about the one thing a reader hears. Fluent's `MessageBarBody` is the\n * only surveyed implementation with the same shape, and it is the only one\n * whose region excludes its own controls.\n */\n@Directive({\n selector: '[slAlertContent]',\n standalone: true,\n exportAs: 'slAlertContent',\n host: {\n 'data-part': 'content',\n 'data-part-content': '',\n '[attr.role]': 'role()',\n },\n})\nexport class SlAlertContent {\n private readonly alert = inject(SlAlert);\n\n protected readonly role = computed(() => LIVE_ROLE[this.alert.resolvedLive()]);\n}\n\n/**\n * The message's name, and the box's.\n *\n * The element is the consumer's: a heading puts the alert in the document\n * outline, which is right for a page banner and wrong for the alert beside a\n * field group, and only the page knows which. Writing `<h3 slAlertTitle>` is\n * how a page that wants one says so, and Angular needs no `render` prop to\n * allow it.\n */\n@Component({\n selector: '[slAlertTitle]',\n standalone: true,\n exportAs: 'slAlertTitle',\n template: '<ng-content />',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: {\n 'data-part': 'title',\n 'data-part-title': '',\n '[attr.id]': 'alert.titleId',\n },\n})\nexport class SlAlertTitle {\n protected readonly alert = inject(SlAlert);\n\n constructor() {\n this.alert.registerTitle(true);\n }\n\n ngOnDestroy() {\n this.alert.registerTitle(false);\n }\n}\n\n/** The message. Written on the consumer's own `p`, which is what prose is. */\n@Directive({\n selector: '[slAlertDescription]',\n standalone: true,\n exportAs: 'slAlertDescription',\n host: { 'data-part': 'description', 'data-part-description': '' },\n})\nexport class SlAlertDescription {}\n\n/**\n * The controls that act on the message, outside the region that announces: a\n * reader hearing the message is not read the labels of two buttons in the\n * middle of it. What goes in is the consumer's own buttons, because `button`\n * already owns what a button is.\n */\n@Directive({\n selector: '[slAlertActions]',\n standalone: true,\n exportAs: 'slAlertActions',\n host: { 'data-part': 'actions', 'data-part-actions': '' },\n})\nexport class SlAlertActions {}\n\n/* `SlAlertIcon` lives in `./alert`: the alert reads whether one was projected. */\nexport { SlAlertIcon } from './alert';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;AA6BA,MAAM,QAAQ,GAAkB;AAC9B,IAAA,IAAI,EAAE,KAAK;AACX,IAAA,KAAK,EAAE,SAAS;AAChB,IAAA,IAAI,EAAE,QAAQ;AACd,IAAA,OAAO,EAAE,MAAM;CAChB;MAEY,cAAc,GAAG,IAAI,cAAc,CAAgB,wBAAwB,EAAE;AACxF,IAAA,UAAU,EAAE,MAAM;AAClB,IAAA,OAAO,EA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