@slotted/angular 0.1.0-beta.30 → 0.1.0-beta.32

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 (125) hide show
  1. package/docs/alert.json +1 -1
  2. package/docs/alert.md +1 -1
  3. package/docs/app-shell.json +1 -1
  4. package/docs/app-shell.md +1 -1
  5. package/docs/card.json +1 -0
  6. package/docs/card.md +1 -1
  7. package/docs/cascader.json +1 -0
  8. package/docs/cascader.md +1 -1
  9. package/docs/chart.examples.md +11 -1
  10. package/docs/chart.json +36 -2
  11. package/docs/chart.md +7 -3
  12. package/docs/collapsible.json +1 -0
  13. package/docs/collapsible.md +1 -1
  14. package/docs/combobox.json +1 -0
  15. package/docs/combobox.md +1 -1
  16. package/docs/dashboard-grid.json +21 -0
  17. package/docs/dashboard-grid.md +3 -0
  18. package/docs/dialog.json +2 -0
  19. package/docs/dialog.md +1 -1
  20. package/docs/drawer.json +1 -0
  21. package/docs/drawer.md +1 -1
  22. package/docs/entity-picker.json +1 -0
  23. package/docs/entity-picker.md +1 -1
  24. package/docs/form.json +1 -1
  25. package/docs/form.md +1 -1
  26. package/docs/import-export-center.json +1 -0
  27. package/docs/import-export-center.md +1 -1
  28. package/docs/index.md +1 -1
  29. package/docs/list.examples.md +907 -0
  30. package/docs/list.json +121 -33
  31. package/docs/list.md +73 -137
  32. package/docs/menu.json +1 -0
  33. package/docs/menu.md +1 -1
  34. package/docs/multi-select.json +1 -0
  35. package/docs/multi-select.md +1 -1
  36. package/docs/navigation-menu.json +1 -0
  37. package/docs/navigation-menu.md +1 -1
  38. package/docs/notification-center.json +1 -0
  39. package/docs/notification-center.md +1 -1
  40. package/docs/page-header.json +1 -1
  41. package/docs/page-header.md +1 -1
  42. package/docs/popover.json +1 -0
  43. package/docs/popover.md +1 -1
  44. package/docs/result-state.json +1 -0
  45. package/docs/result-state.md +1 -1
  46. package/docs/section.json +1 -1
  47. package/docs/section.md +1 -1
  48. package/docs/select.json +1 -0
  49. package/docs/select.md +1 -1
  50. package/docs/skills/compose-screen/SKILL.md +5 -0
  51. package/docs/skills/review-screen/SKILL.md +23 -22
  52. package/docs/table.json +7 -0
  53. package/docs/table.md +1 -0
  54. package/docs/toast.json +1 -0
  55. package/docs/toast.md +1 -1
  56. package/docs/tokens.md +8 -0
  57. package/docs/tour.json +1 -0
  58. package/docs/tour.md +1 -1
  59. package/fesm2022/slotted-angular-alert.mjs +2 -2
  60. package/fesm2022/slotted-angular-alert.mjs.map +1 -1
  61. package/fesm2022/slotted-angular-app-shell.mjs +2 -2
  62. package/fesm2022/slotted-angular-app-shell.mjs.map +1 -1
  63. package/fesm2022/slotted-angular-card.mjs +2 -2
  64. package/fesm2022/slotted-angular-cascader.mjs +4 -4
  65. package/fesm2022/slotted-angular-cascader.mjs.map +1 -1
  66. package/fesm2022/slotted-angular-chart.mjs +13 -7
  67. package/fesm2022/slotted-angular-chart.mjs.map +1 -1
  68. package/fesm2022/slotted-angular-collapsible.mjs +2 -2
  69. package/fesm2022/slotted-angular-collapsible.mjs.map +1 -1
  70. package/fesm2022/slotted-angular-combobox.mjs +2 -2
  71. package/fesm2022/slotted-angular-combobox.mjs.map +1 -1
  72. package/fesm2022/slotted-angular-dashboard-grid.mjs +123 -54
  73. package/fesm2022/slotted-angular-dashboard-grid.mjs.map +1 -1
  74. package/fesm2022/slotted-angular-date-field.mjs +5 -3
  75. package/fesm2022/slotted-angular-date-field.mjs.map +1 -1
  76. package/fesm2022/slotted-angular-dialog.mjs +4 -4
  77. package/fesm2022/slotted-angular-dialog.mjs.map +1 -1
  78. package/fesm2022/slotted-angular-drawer.mjs +2 -2
  79. package/fesm2022/slotted-angular-drawer.mjs.map +1 -1
  80. package/fesm2022/slotted-angular-entity-picker.mjs +2 -2
  81. package/fesm2022/slotted-angular-entity-picker.mjs.map +1 -1
  82. package/fesm2022/slotted-angular-form.mjs +2 -2
  83. package/fesm2022/slotted-angular-form.mjs.map +1 -1
  84. package/fesm2022/slotted-angular-import-export-center.mjs +2 -2
  85. package/fesm2022/slotted-angular-import-export-center.mjs.map +1 -1
  86. package/fesm2022/slotted-angular-menu.mjs +2 -2
  87. package/fesm2022/slotted-angular-menu.mjs.map +1 -1
  88. package/fesm2022/slotted-angular-message.mjs +4 -4
  89. package/fesm2022/slotted-angular-message.mjs.map +1 -1
  90. package/fesm2022/slotted-angular-multi-select.mjs +2 -2
  91. package/fesm2022/slotted-angular-multi-select.mjs.map +1 -1
  92. package/fesm2022/slotted-angular-navigation-menu.mjs +4 -4
  93. package/fesm2022/slotted-angular-navigation-menu.mjs.map +1 -1
  94. package/fesm2022/slotted-angular-notification-center.mjs +2 -2
  95. package/fesm2022/slotted-angular-notification-center.mjs.map +1 -1
  96. package/fesm2022/slotted-angular-page-header.mjs +2 -2
  97. package/fesm2022/slotted-angular-page-header.mjs.map +1 -1
  98. package/fesm2022/slotted-angular-popover.mjs +2 -2
  99. package/fesm2022/slotted-angular-popover.mjs.map +1 -1
  100. package/fesm2022/slotted-angular-result-state.mjs +2 -2
  101. package/fesm2022/slotted-angular-result-state.mjs.map +1 -1
  102. package/fesm2022/slotted-angular-scroll-area.mjs +2 -2
  103. package/fesm2022/slotted-angular-scroll-area.mjs.map +1 -1
  104. package/fesm2022/slotted-angular-section.mjs +2 -2
  105. package/fesm2022/slotted-angular-section.mjs.map +1 -1
  106. package/fesm2022/slotted-angular-select.mjs +2 -2
  107. package/fesm2022/slotted-angular-select.mjs.map +1 -1
  108. package/fesm2022/slotted-angular-side-navigation.mjs +2 -2
  109. package/fesm2022/slotted-angular-side-navigation.mjs.map +1 -1
  110. package/fesm2022/slotted-angular-table.mjs +11 -4
  111. package/fesm2022/slotted-angular-table.mjs.map +1 -1
  112. package/fesm2022/slotted-angular-toast.mjs +2 -2
  113. package/fesm2022/slotted-angular-toast.mjs.map +1 -1
  114. package/fesm2022/slotted-angular-top-navigation.mjs +2 -2
  115. package/fesm2022/slotted-angular-top-navigation.mjs.map +1 -1
  116. package/fesm2022/slotted-angular-tour.mjs +2 -2
  117. package/fesm2022/slotted-angular-tour.mjs.map +1 -1
  118. package/package.json +3 -3
  119. package/types/slotted-angular-chart.d.ts.map +1 -1
  120. package/types/slotted-angular-dashboard-grid.d.ts +3 -1
  121. package/types/slotted-angular-dashboard-grid.d.ts.map +1 -1
  122. package/types/slotted-angular-date-field.d.ts +1 -0
  123. package/types/slotted-angular-date-field.d.ts.map +1 -1
  124. package/types/slotted-angular-table.d.ts +7 -1
  125. package/types/slotted-angular-table.d.ts.map +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"slotted-angular-result-state.mjs","sources":["../../result-state/src/result-state-defaults.ts","../../result-state/src/result-state.ts","../../result-state/src/result-state-parts.ts","../../result-state/src/slotted-angular-result-state.ts"],"sourcesContent":["import { inject, Injectable, InjectionToken } from '@angular/core';\n\n/**\n * What the region is reporting. Seven values rather than one component per\n * semantic, which is what the guide's section 17 asks of `empty-state` and\n * `error-state`.\n *\n * It is not a tone. Two pairs share one — `empty`, `no-results` and\n * `not-found` are all secondary, `forbidden` and `offline` are both warning —\n * so naming the axis `tone` would have made `forbidden` and `offline` one\n * value.\n */\nexport type ResultStateStatus =\n 'empty' | 'no-results' | 'not-found' | 'error' | 'forbidden' | 'offline' | 'success';\n\n/**\n * Which scope the message applies to, which is the axis `alert` already\n * speaks: a row inside a cell, a panel inside a card, the whole route. The\n * geometry follows from the scope; a size axis would say the same message can\n * be drawn large or small, which is not the choice a consumer is making.\n */\nexport type ResultStateReach = 'inline' | 'section' | 'page';\n\n/** Whether the region reads centerd or from the inline edge. */\nexport type ResultStateAlign = 'center' | 'start';\n\n/**\n * The picture the family draws around the page's glyph: a framed tile, three\n * layers leaning back, or a stack of cards, all in the neutral surface and\n * border roles. `none` draws nothing of the family's own, and `inline` reach\n * draws none of them.\n */\nexport type ResultStateIllustration = 'none' | 'tile' | 'stack' | 'cards';\n\n/**\n * Whether the text announces itself, and how loudly. The default is `polite`,\n * where `alert`'s is `off`: WCAG 2.2's Understanding document for SC 4.1.3\n * names this family's own text as its example of a status message, and a\n * result state is by definition the outcome of an operation.\n */\nexport type ResultStateLive = 'off' | 'polite' | 'assertive';\n\nexport interface ResultStateDefaults {\n align: ResultStateAlign;\n illustration: ResultStateIllustration;\n live: ResultStateLive;\n reach: ResultStateReach;\n status: ResultStateStatus;\n}\n\nconst FALLBACK: ResultStateDefaults = {\n align: 'center',\n illustration: 'none',\n live: 'polite',\n reach: 'section',\n status: 'empty',\n};\n\nexport const RESULT_STATE_DEFAULTS = new InjectionToken<ResultStateDefaults>(\n 'slotted result-state defaults',\n { providedIn: 'root', factory: () => FALLBACK },\n);\n\n/**\n * An application decides once how its empty and error regions are drawn, and\n * whether they announce, rather than repeating the inputs on every table in a\n * data-dense screen. A region that states any of them itself still wins: an\n * explicit input is never overridden by the token.\n */\nexport function provideResultStateDefaults(defaults: Partial<ResultStateDefaults>) {\n return {\n provide: RESULT_STATE_DEFAULTS,\n useFactory: (): ResultStateDefaults => ({\n align: defaults.align ?? FALLBACK.align,\n illustration: defaults.illustration ?? FALLBACK.illustration,\n live: defaults.live ?? FALLBACK.live,\n reach: defaults.reach ?? FALLBACK.reach,\n status: defaults.status ?? FALLBACK.status,\n }),\n };\n}\n\n/** What a result state renders as here, before it states anything of its own. */\nexport function injectResultStateDefaults(): ResultStateDefaults {\n return inject(RESULT_STATE_DEFAULTS);\n}\n\n/**\n * Application-scoped rather than module-scoped, for the reason `tag` and\n * `alert` both record: a module-level counter produces colliding sequences when\n * two applications render in one server process, and the server and the client\n * sequences have to match for hydration.\n */\n@Injectable({ providedIn: 'root' })\nexport class SlResultStateIdFactory {\n private count = 0;\n\n next() {\n this.count += 1;\n return `slotted-result-state-${this.count}`;\n }\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n computed,\n ElementRef,\n HostAttributeToken,\n inject,\n input,\n signal,\n ViewEncapsulation,\n} from '@angular/core';\n\nimport { injectResultStateDefaults, SlResultStateIdFactory } from './result-state-defaults';\nimport type {\n ResultStateAlign,\n ResultStateIllustration,\n ResultStateLive,\n ResultStateReach,\n ResultStateStatus,\n} from './result-state-defaults';\n\nexport type {\n ResultStateAlign,\n ResultStateIllustration,\n ResultStateLive,\n ResultStateReach,\n ResultStateStatus,\n} from './result-state-defaults';\n\n/**\n * The region that stands in for content that is not there, and says what to do\n * next.\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. The APG's region landmark practice\n * states that \"a region landmark must have a label\", which is why the attribute\n * is written only once a title has said it exists.\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 this family has a row of buttons in it.\n * `slResultStateContent` is what announces, and it holds the title and the\n * description alone; the mark, the actions and the footer are its siblings.\n *\n * **It announces by default.** WCAG 2.2's Understanding document for SC 4.1.3\n * names this family's own text as its example of a status message. `alert`\n * defaults to silence because an alert may be a standing notice; a result is\n * always the outcome of an operation.\n */\n@Component({\n selector: '[slResultState]',\n standalone: true,\n exportAs: 'slResultState',\n /* The picture box is always in the markup and empty until the page fills\n it: the stylesheet withdraws an empty box, so a region with no picture is\n a title, a description and an action with nothing standing above them\n (RS1). A stack of cards is the one drawing that stands without a glyph. */\n template: `<div aria-hidden=\"true\" data-part=\"media\" data-part-media=\"\">\n <ng-content select=\"[slResultStateMedia]\" />\n </div>\n <ng-content />`,\n styleUrl: '../../../styles/src/result-state/result-state.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: {\n 'data-ui': 'result-state',\n 'data-ui-result-state': '',\n 'data-part': 'root',\n 'data-part-root': '',\n '[attr.data-status]': 'resolvedStatus()',\n '[attr.data-reach]': 'resolvedReach()',\n '[attr.data-align]': 'resolvedAlign()',\n '[attr.data-illustration]': 'resolvedIllustration()',\n '[attr.data-live]': 'resolvedLive()',\n '[attr.tabindex]': 'writtenTabIndex ?? -1',\n '[attr.aria-labelledby]': 'labelledBy()',\n },\n})\nexport class SlResultState {\n /** Defaults to the provider, then to `empty`. */\n readonly status = input<ResultStateStatus | undefined>(undefined);\n /** Defaults to the provider, then to `section`. */\n readonly reach = input<ResultStateReach | undefined>(undefined);\n /** Defaults to the provider, then to `center`. */\n readonly align = input<ResultStateAlign | undefined>(undefined);\n /** Defaults to the provider, then to `polite`. */\n readonly live = input<ResultStateLive | undefined>(undefined);\n /**\n * The drawing made around the projected `slResultStateMedia`. Defaults to\n * the provider, then to `none`. `tile` and `stack` frame a glyph and draw\n * nothing without one; `cards` puts the glyph where a row's thumbnail would\n * be and draws its two lines with or without it.\n */\n readonly illustration = input<ResultStateIllustration | undefined>(undefined);\n private readonly defaults = injectResultStateDefaults();\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(SlResultStateIdFactory).next()}-title`;\n\n /** The identifier the title actually carries, which is not always ours. */\n private readonly labelId = signal<string | null>(null);\n\n protected readonly resolvedStatus = computed(() => this.status() ?? this.defaults.status);\n protected readonly resolvedReach = computed(() => this.reach() ?? this.defaults.reach);\n protected readonly resolvedAlign = computed(() => this.align() ?? this.defaults.align);\n protected readonly resolvedIllustration = computed(\n () => this.illustration() ?? this.defaults.illustration,\n );\n readonly resolvedLive = computed(() => this.live() ?? this.defaults.live);\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.labelId());\n\n /**\n * Called by `slResultStateTitle`, which is the part that names the box. It\n * carries the identifier rather than a boolean, because a page that wrote its\n * own `id` on the title keeps it, and the box has to point at the one that is\n * actually in the DOM.\n */\n registerTitle(id: string | null) {\n this.labelId.set(id);\n }\n\n /**\n * Sends the keyboard to the message. The family never does this by itself:\n * moving focus unprompted is a change of context nobody asked for, and the\n * moment an application wants it — a filter has just emptied a table — is one\n * only the application knows.\n *\n * It is the reach a template has and React does not: JSX re-renders an input,\n * and an Angular template calls a method on the instance `exportAs` gives it.\n */\n focus() {\n this.host.nativeElement.focus();\n }\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n computed,\n Directive,\n HostAttributeToken,\n inject,\n ViewEncapsulation,\n} from '@angular/core';\n\nimport { SlResultState } from './result-state';\nimport type { ResultStateLive } from './result-state-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<ResultStateLive, 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 region'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. None of the seven surveyed\n * implementations writes a live role of any kind, while WCAG 2.2's\n * Understanding document for SC 4.1.3 names \"No results returned\" as its own\n * example of a status message.\n */\n@Directive({\n selector: '[slResultStateContent]',\n standalone: true,\n exportAs: 'slResultStateContent',\n host: {\n 'data-part': 'content',\n 'data-part-content': '',\n '[attr.role]': 'role()',\n },\n})\nexport class SlResultStateContent {\n private readonly region = inject(SlResultState);\n\n protected readonly role = computed(() => LIVE_ROLE[this.region.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 region in the document\n * outline, which is right for a full-page 404 and wrong for the empty state of\n * one card in a grid of twelve, and only the page knows which. Writing\n * `<h2 slResultStateTitle>` is how a page that wants one says so, and Angular\n * needs no `render` prop to allow it.\n *\n * Atlassian's `headingLevel`, one to six, is the field's answer. A numeric\n * input invites a skipped level, which the guide's section 10 forbids.\n */\n@Component({\n selector: '[slResultStateTitle]',\n standalone: true,\n exportAs: 'slResultStateTitle',\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]': 'id',\n },\n})\nexport class SlResultStateTitle {\n protected readonly region = inject(SlResultState);\n\n /**\n * The family's identifier, unless the page wrote one of its own — a skip\n * target, an anchor. Reading it before the host binding writes over it is\n * what keeps the consumer's attribute alive, and telling the box which\n * identifier won is what keeps `aria-labelledby` pointing at an element that\n * exists.\n */\n readonly id = inject(new HostAttributeToken('id'), { optional: true }) ?? this.region.titleId;\n\n constructor() {\n this.region.registerTitle(this.id);\n }\n\n ngOnDestroy() {\n this.region.registerTitle(null);\n }\n}\n\n/** The message. Written on the consumer's own `p`, which is what prose is. */\n@Directive({\n selector: '[slResultStateDescription]',\n standalone: true,\n exportAs: 'slResultStateDescription',\n host: { 'data-part': 'description', 'data-part-description': '' },\n})\nexport class SlResultStateDescription {}\n\n/**\n * The controls that get the reader out of the situation, outside the region\n * that announces. What goes in is the consumer's own buttons, because `button`\n * already owns what a button is — including `loading`, which is what a retry in\n * flight is.\n */\n@Directive({\n selector: '[slResultStateActions]',\n standalone: true,\n exportAs: 'slResultStateActions',\n host: { 'data-part': 'actions', 'data-part-actions': '' },\n})\nexport class SlResultStateActions {}\n\n/**\n * The line under the actions: the documentation link that is not a call to\n * action. Polaris calls it `footerContent` and Atlassian a `tertiaryAction`,\n * and both are right that it is neither of the buttons above it.\n */\n@Directive({\n selector: '[slResultStateFooter]',\n standalone: true,\n exportAs: 'slResultStateFooter',\n host: { 'data-part': 'footer', 'data-part-footer': '' },\n})\nexport class SlResultStateFooter {}\n\n/**\n * Artwork the page supplies instead of the status's own mark. It is projected\n * into the box the family draws, so it keeps the height the reach gives it —\n * which is what stops an illustration that has not loaded from moving the\n * title and the actions when it arrives.\n */\n@Directive({\n selector: '[slResultStateMedia]',\n standalone: true,\n exportAs: 'slResultStateMedia',\n})\nexport class SlResultStateMedia {}\n","/**\n * Generated bundle index.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BAAA,EAAA,QAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;2FAAlB,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAL9B,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,sBAAsB;AAChC,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,QAAQ,EAAE,oBAAoB;AAC/B,iBAAA;;;AC9ID;;AAEG;;"}
1
+ {"version":3,"file":"slotted-angular-result-state.mjs","sources":["../../result-state/src/result-state-defaults.ts","../../result-state/src/result-state.ts","../../result-state/src/result-state-parts.ts","../../result-state/src/slotted-angular-result-state.ts"],"sourcesContent":["import { inject, Injectable, InjectionToken } from '@angular/core';\n\n/**\n * What the region is reporting. Seven values rather than one component per\n * semantic, which is what the guide's section 17 asks of `empty-state` and\n * `error-state`.\n *\n * It is not a tone. Two pairs share one — `empty`, `no-results` and\n * `not-found` are all secondary, `forbidden` and `offline` are both warning —\n * so naming the axis `tone` would have made `forbidden` and `offline` one\n * value.\n */\nexport type ResultStateStatus =\n 'empty' | 'no-results' | 'not-found' | 'error' | 'forbidden' | 'offline' | 'success';\n\n/**\n * Which scope the message applies to, which is the axis `alert` already\n * speaks: a row inside a cell, a panel inside a card, the whole route. The\n * geometry follows from the scope; a size axis would say the same message can\n * be drawn large or small, which is not the choice a consumer is making.\n */\nexport type ResultStateReach = 'inline' | 'section' | 'page';\n\n/** Whether the region reads centerd or from the inline edge. */\nexport type ResultStateAlign = 'center' | 'start';\n\n/**\n * The picture the family draws around the page's glyph: a framed tile, three\n * layers leaning back, or a stack of cards, all in the neutral surface and\n * border roles. `none` draws nothing of the family's own, and `inline` reach\n * draws none of them.\n */\nexport type ResultStateIllustration = 'none' | 'tile' | 'stack' | 'cards';\n\n/**\n * Whether the text announces itself, and how loudly. The default is `polite`,\n * where `alert`'s is `off`: WCAG 2.2's Understanding document for SC 4.1.3\n * names this family's own text as its example of a status message, and a\n * result state is by definition the outcome of an operation.\n */\nexport type ResultStateLive = 'off' | 'polite' | 'assertive';\n\nexport interface ResultStateDefaults {\n align: ResultStateAlign;\n illustration: ResultStateIllustration;\n live: ResultStateLive;\n reach: ResultStateReach;\n status: ResultStateStatus;\n}\n\nconst FALLBACK: ResultStateDefaults = {\n align: 'center',\n illustration: 'none',\n live: 'polite',\n reach: 'section',\n status: 'empty',\n};\n\nexport const RESULT_STATE_DEFAULTS = new InjectionToken<ResultStateDefaults>(\n 'slotted result-state defaults',\n { providedIn: 'root', factory: () => FALLBACK },\n);\n\n/**\n * An application decides once how its empty and error regions are drawn, and\n * whether they announce, rather than repeating the inputs on every table in a\n * data-dense screen. A region that states any of them itself still wins: an\n * explicit input is never overridden by the token.\n */\nexport function provideResultStateDefaults(defaults: Partial<ResultStateDefaults>) {\n return {\n provide: RESULT_STATE_DEFAULTS,\n useFactory: (): ResultStateDefaults => ({\n align: defaults.align ?? FALLBACK.align,\n illustration: defaults.illustration ?? FALLBACK.illustration,\n live: defaults.live ?? FALLBACK.live,\n reach: defaults.reach ?? FALLBACK.reach,\n status: defaults.status ?? FALLBACK.status,\n }),\n };\n}\n\n/** What a result state renders as here, before it states anything of its own. */\nexport function injectResultStateDefaults(): ResultStateDefaults {\n return inject(RESULT_STATE_DEFAULTS);\n}\n\n/**\n * Application-scoped rather than module-scoped, for the reason `tag` and\n * `alert` both record: a module-level counter produces colliding sequences when\n * two applications render in one server process, and the server and the client\n * sequences have to match for hydration.\n */\n@Injectable({ providedIn: 'root' })\nexport class SlResultStateIdFactory {\n private count = 0;\n\n next() {\n this.count += 1;\n return `slotted-result-state-${this.count}`;\n }\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n computed,\n ElementRef,\n HostAttributeToken,\n inject,\n input,\n signal,\n ViewEncapsulation,\n} from '@angular/core';\n\nimport { injectResultStateDefaults, SlResultStateIdFactory } from './result-state-defaults';\nimport type {\n ResultStateAlign,\n ResultStateIllustration,\n ResultStateLive,\n ResultStateReach,\n ResultStateStatus,\n} from './result-state-defaults';\n\nexport type {\n ResultStateAlign,\n ResultStateIllustration,\n ResultStateLive,\n ResultStateReach,\n ResultStateStatus,\n} from './result-state-defaults';\n\n/**\n * The region that stands in for content that is not there, and says what to do\n * next.\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. The APG's region landmark practice\n * states that \"a region landmark must have a label\", which is why the attribute\n * is written only once a title has said it exists.\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 this family has a row of buttons in it.\n * `slResultStateContent` is what announces, and it holds the title and the\n * description alone; the mark, the actions and the footer are its siblings.\n *\n * **It announces by default.** WCAG 2.2's Understanding document for SC 4.1.3\n * names this family's own text as its example of a status message. `alert`\n * defaults to silence because an alert may be a standing notice; a result is\n * always the outcome of an operation.\n */\n@Component({\n selector: '[slResultState]',\n standalone: true,\n exportAs: 'slResultState',\n /* The picture box is always in the markup and empty until the page fills\n it: the stylesheet withdraws an empty box, so a region with no picture is\n a title, a description and an action with nothing standing above them\n (RS1). A stack of cards is the one drawing that stands without a glyph. */\n template: `<div aria-hidden=\"true\" data-part=\"media\" data-part-media=\"\">\n <ng-content select=\"[slResultStateMedia]\" />\n </div>\n <ng-content />`,\n styleUrl: '../../../styles/src/result-state/result-state.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: {\n 'data-ui': 'result-state',\n 'data-ui-result-state': '',\n 'data-part': 'root',\n 'data-part-root': '',\n '[attr.data-status]': 'resolvedStatus()',\n '[attr.data-reach]': 'resolvedReach()',\n '[attr.data-align]': 'resolvedAlign()',\n '[attr.data-illustration]': 'resolvedIllustration()',\n '[attr.data-live]': 'resolvedLive()',\n '[attr.tabindex]': 'writtenTabIndex ?? -1',\n '[attr.aria-labelledby]': 'labelledBy()',\n },\n})\nexport class SlResultState {\n /** Defaults to the provider, then to `empty`. */\n readonly status = input<ResultStateStatus | undefined>(undefined);\n /** Defaults to the provider, then to `section`. */\n readonly reach = input<ResultStateReach | undefined>(undefined);\n /** Defaults to the provider, then to `center`. */\n readonly align = input<ResultStateAlign | undefined>(undefined);\n /** Defaults to the provider, then to `polite`. */\n readonly live = input<ResultStateLive | undefined>(undefined);\n /**\n * The drawing made around the projected `slResultStateMedia`. Defaults to\n * the provider, then to `none`. `tile` and `stack` frame a glyph and draw\n * nothing without one; `cards` puts the glyph where a row's thumbnail would\n * be and draws its two lines with or without it.\n */\n readonly illustration = input<ResultStateIllustration | undefined>(undefined);\n private readonly defaults = injectResultStateDefaults();\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(SlResultStateIdFactory).next()}-title`;\n\n /** The identifier the title actually carries, which is not always ours. */\n private readonly labelId = signal<string | null>(null);\n\n protected readonly resolvedStatus = computed(() => this.status() ?? this.defaults.status);\n protected readonly resolvedReach = computed(() => this.reach() ?? this.defaults.reach);\n protected readonly resolvedAlign = computed(() => this.align() ?? this.defaults.align);\n protected readonly resolvedIllustration = computed(\n () => this.illustration() ?? this.defaults.illustration,\n );\n readonly resolvedLive = computed(() => this.live() ?? this.defaults.live);\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.labelId());\n\n /**\n * Called by `slResultStateTitle`, which is the part that names the box. It\n * carries the identifier rather than a boolean, because a page that wrote its\n * own `id` on the title keeps it, and the box has to point at the one that is\n * actually in the DOM.\n */\n registerTitle(id: string | null) {\n this.labelId.set(id);\n }\n\n /**\n * Sends the keyboard to the message. The family never does this by itself:\n * moving focus unprompted is a change of context nobody asked for, and the\n * moment an application wants it — a filter has just emptied a table — is one\n * only the application knows.\n *\n * It is the reach a template has and React does not: JSX re-renders an input,\n * and an Angular template calls a method on the instance `exportAs` gives it.\n */\n focus() {\n this.host.nativeElement.focus();\n }\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n computed,\n Directive,\n HostAttributeToken,\n inject,\n ViewEncapsulation,\n} from '@angular/core';\n\nimport { SlResultState } from './result-state';\nimport type { ResultStateLive } from './result-state-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<ResultStateLive, 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 region'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. None of the seven surveyed\n * implementations writes a live role of any kind, while WCAG 2.2's\n * Understanding document for SC 4.1.3 names \"No results returned\" as its own\n * example of a status message.\n */\n@Directive({\n selector: '[slResultStateContent]',\n standalone: true,\n exportAs: 'slResultStateContent',\n host: {\n 'data-part': 'content',\n 'data-part-content': '',\n '[attr.role]': 'role()',\n },\n})\nexport class SlResultStateContent {\n private readonly region = inject(SlResultState);\n\n protected readonly role = computed(() => LIVE_ROLE[this.region.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 region in the document\n * outline, which is right for a full-page 404 and wrong for the empty state of\n * one card in a grid of twelve, and only the page knows which. Writing\n * `<h2 slResultStateTitle>` is how a page that wants one says so, and Angular\n * needs no `render` prop to allow it.\n *\n * Atlassian's `headingLevel`, one to six, is the field's answer. A numeric\n * input invites a skipped level, which the guide's section 10 forbids.\n */\n@Component({\n selector: '[slResultStateTitle]',\n standalone: true,\n exportAs: 'slResultStateTitle',\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]': 'id',\n },\n})\nexport class SlResultStateTitle {\n protected readonly region = inject(SlResultState);\n\n /**\n * The family's identifier, unless the page wrote one of its own — a skip\n * target, an anchor. Reading it before the host binding writes over it is\n * what keeps the consumer's attribute alive, and telling the box which\n * identifier won is what keeps `aria-labelledby` pointing at an element that\n * exists.\n */\n readonly id = inject(new HostAttributeToken('id'), { optional: true }) ?? this.region.titleId;\n\n constructor() {\n this.region.registerTitle(this.id);\n }\n\n ngOnDestroy() {\n this.region.registerTitle(null);\n }\n}\n\n/** The message. Written on the consumer's own `p`, which is what prose is. */\n@Directive({\n selector: '[slResultStateDescription]',\n standalone: true,\n exportAs: 'slResultStateDescription',\n host: { 'data-part': 'description', 'data-part-description': '' },\n})\nexport class SlResultStateDescription {}\n\n/**\n * The controls that get the reader out of the situation, outside the region\n * that announces. What goes in is the consumer's own buttons, because `button`\n * already owns what a button is — including `loading`, which is what a retry in\n * flight is.\n */\n@Directive({\n selector: '[slResultStateActions]',\n standalone: true,\n exportAs: 'slResultStateActions',\n host: { 'data-part': 'actions', 'data-part-actions': '' },\n})\nexport class SlResultStateActions {}\n\n/**\n * The line under the actions: the documentation link that is not a call to\n * action. Polaris calls it `footerContent` and Atlassian a `tertiaryAction`,\n * and both are right that it is neither of the buttons above it.\n */\n@Directive({\n selector: '[slResultStateFooter]',\n standalone: true,\n exportAs: 'slResultStateFooter',\n host: { 'data-part': 'footer', 'data-part-footer': '' },\n})\nexport class SlResultStateFooter {}\n\n/**\n * Artwork the page supplies instead of the status's own mark. It is projected\n * into the box the family draws, so it keeps the height the reach gives it —\n * which is what stops an illustration that has not loaded from moving the\n * title and the actions when it arrives.\n */\n@Directive({\n selector: '[slResultStateMedia]',\n standalone: true,\n exportAs: 'slResultStateMedia',\n})\nexport class SlResultStateMedia {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"m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AAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;2FAAlB,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAL9B,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,sBAAsB;AAChC,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,QAAQ,EAAE,oBAAoB;AAC/B,iBAAA;;;AC9ID;;AAEG;;"}
@@ -233,7 +233,7 @@ class SlScrollArea {
233
233
  >
234
234
  <ng-content />
235
235
  </div>
236
- `, isInline: true, styles: ["@layer slotted.components{[data-ui-scroll-area]{--_fade: min(var(--slotted-scroll-area-fade-size, var(--slotted-space-8, 1.5rem)), 20%);--_thumb: var(--slotted-scroll-area-thumb-color, var(--slotted-border-strong, ButtonBorder));--_track: var(--slotted-scroll-area-track-color, var(--slotted-surface-sunken, Canvas));display:grid;box-sizing:border-box;min-block-size:0;min-inline-size:0}[data-ui-scroll-area]>[data-part-viewport]{--_scroll-area-fade-block-start: var(--_fade);--_scroll-area-fade-block-end: var(--_fade);--_scroll-area-fade-inline-start: var(--_fade);--_scroll-area-fade-inline-end: var(--_fade);--_fade-top: var(--_scroll-area-fade-block-start);--_fade-bottom: var(--_scroll-area-fade-block-end);--_fade-left: var(--_scroll-area-fade-inline-start);--_fade-right: var(--_scroll-area-fade-inline-end);box-sizing:border-box;min-block-size:0;min-inline-size:0;border-radius:inherit;scrollbar-gutter:stable;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:var(--_thumb) var(--_track);-webkit-mask-image:linear-gradient(to bottom,transparent 0,#000 var(--_fade-top),#000 calc(100% - var(--_fade-bottom)),transparent 100%),linear-gradient(to right,transparent 0,#000 var(--_fade-left),#000 calc(100% - var(--_fade-right)),transparent 100%);mask-image:linear-gradient(to bottom,transparent 0,#000 var(--_fade-top),#000 calc(100% - var(--_fade-bottom)),transparent 100%),linear-gradient(to right,transparent 0,#000 var(--_fade-left),#000 calc(100% - var(--_fade-right)),transparent 100%);-webkit-mask-composite:source-in;mask-composite:intersect;transition:--_scroll-area-fade-block-start var(--slotted-duration-short) var(--slotted-easing-standard),--_scroll-area-fade-block-end var(--slotted-duration-short) var(--slotted-easing-standard),--_scroll-area-fade-inline-start var(--slotted-duration-short) var(--slotted-easing-standard),--_scroll-area-fade-inline-end var(--slotted-duration-short) var(--slotted-easing-standard)}[data-ui-scroll-area]:dir(rtl)>[data-part-viewport]{--_fade-left: var(--_scroll-area-fade-inline-end);--_fade-right: var(--_scroll-area-fade-inline-start)}[data-ui-scroll-area][data-axis=block]>[data-part-viewport]{overflow-x:hidden;overflow-y:auto;overflow-inline:hidden;overflow-block:auto}[data-ui-scroll-area][data-axis=inline]>[data-part-viewport]{overflow-x:auto;overflow-y:hidden;overflow-inline:auto;overflow-block:hidden}[data-ui-scroll-area][data-axis=both]>[data-part-viewport]{overflow:auto}[data-ui-scroll-area][data-scrollbars=always][data-axis=block]>[data-part-viewport]{overflow-y:scroll;overflow-block:scroll}[data-ui-scroll-area][data-scrollbars=always][data-axis=inline]>[data-part-viewport]{overflow-x:scroll;overflow-inline:scroll}[data-ui-scroll-area][data-scrollbars=always][data-axis=both]>[data-part-viewport]{overflow:scroll}[data-ui-scroll-area][data-scrollbars=none]>[data-part-viewport]{scrollbar-width:none}[data-ui-scroll-area][data-scrollbars=hover]>[data-part-viewport]{scrollbar-color:transparent transparent;transition:scrollbar-color var(--slotted-duration-short) var(--slotted-easing-standard),--_scroll-area-fade-block-start var(--slotted-duration-short) var(--slotted-easing-standard),--_scroll-area-fade-block-end var(--slotted-duration-short) var(--slotted-easing-standard),--_scroll-area-fade-inline-start var(--slotted-duration-short) var(--slotted-easing-standard),--_scroll-area-fade-inline-end var(--slotted-duration-short) var(--slotted-easing-standard)}[data-ui-scroll-area][data-scrollbars=hover]:not([data-disabled]):hover>[data-part-viewport],[data-ui-scroll-area][data-scrollbars=hover]:focus-within>[data-part-viewport]{scrollbar-color:var(--_thumb) var(--_track)}[data-ui-scroll-area][data-gutter=auto]>[data-part-viewport]{scrollbar-gutter:auto}[data-ui-scroll-area][data-gutter=both-edges]>[data-part-viewport]{scrollbar-gutter:stable both-edges}[data-ui-scroll-area][data-overscroll=auto]>[data-part-viewport]{overscroll-behavior:auto}[data-ui-scroll-area][data-overscroll=none]>[data-part-viewport]{overscroll-behavior:none}[data-ui-scroll-area][data-axis=inline]>[data-part-viewport]{overscroll-behavior-y:auto;overscroll-behavior-block:auto}[data-ui-scroll-area][data-axis=block]>[data-part-viewport]{overscroll-behavior-x:auto;overscroll-behavior-inline:auto}[data-ui-scroll-area][data-at-block-start]>[data-part-viewport]{--_scroll-area-fade-block-start: 0px}[data-ui-scroll-area][data-at-block-end]>[data-part-viewport]{--_scroll-area-fade-block-end: 0px}[data-ui-scroll-area][data-at-inline-start]>[data-part-viewport]{--_scroll-area-fade-inline-start: 0px}[data-ui-scroll-area][data-at-inline-end]>[data-part-viewport]{--_scroll-area-fade-inline-end: 0px}[data-ui-scroll-area][data-fade=end]>[data-part-viewport]{--_scroll-area-fade-block-start: 0px;--_scroll-area-fade-inline-start: 0px}[data-ui-scroll-area][data-fade=none]>[data-part-viewport],[data-ui-scroll-area][data-sideways]>[data-part-viewport]{-webkit-mask-image:none;mask-image:none}[data-ui-scroll-area]>[data-part-viewport]>[data-part-content]{box-sizing:border-box;min-inline-size:fit-content;padding:var(--slotted-scroll-area-inset, var(--slotted-space-5, .75rem))}[data-ui-scroll-area]>[data-part-viewport]:focus{outline:none}[data-ui-scroll-area]:has(>[data-part-viewport]:focus-visible[data-focus-origin=keyboard]){outline:var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);outline-offset:var(--slotted-focus-ring-offset, 2px)}@media print{[data-ui-scroll-area],[data-ui-scroll-area]>[data-part-viewport]{max-block-size:none;max-inline-size:none;overflow:visible;-webkit-mask-image:none;mask-image:none}}@media(forced-colors:active){[data-ui-scroll-area]>[data-part-viewport]{-webkit-mask-image:none;mask-image:none;scrollbar-color:auto}}}@property --_scroll-area-fade-block-start{syntax: \"<length-percentage>\"; inherits: false; initial-value: 0px;}@property --_scroll-area-fade-block-end{syntax: \"<length-percentage>\"; inherits: false; initial-value: 0px;}@property --_scroll-area-fade-inline-start{syntax: \"<length-percentage>\"; inherits: false; initial-value: 0px;}@property --_scroll-area-fade-inline-end{syntax: \"<length-percentage>\"; inherits: false; initial-value: 0px;}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
236
+ `, isInline: true, styles: ["@layer slotted.components{[data-ui-scroll-area]{--_fade: min(var(--slotted-scroll-area-fade-size, var(--slotted-space-8, 1.5rem)), 20%);--_thumb: var(--slotted-scroll-area-thumb-color, var(--slotted-border-strong, ButtonBorder));--_track: var(--slotted-scroll-area-track-color, var(--slotted-surface-sunken, Canvas));display:grid;grid-template-rows:minmax(0,1fr);box-sizing:border-box;min-block-size:0;min-inline-size:0}[data-ui-scroll-area]>[data-part-viewport]{--_scroll-area-fade-block-start: var(--_fade);--_scroll-area-fade-block-end: var(--_fade);--_scroll-area-fade-inline-start: var(--_fade);--_scroll-area-fade-inline-end: var(--_fade);--_fade-top: var(--_scroll-area-fade-block-start);--_fade-bottom: var(--_scroll-area-fade-block-end);--_fade-left: var(--_scroll-area-fade-inline-start);--_fade-right: var(--_scroll-area-fade-inline-end);box-sizing:border-box;min-block-size:0;min-inline-size:0;border-radius:inherit;scrollbar-gutter:stable;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:var(--_thumb) var(--_track);-webkit-mask-image:linear-gradient(to bottom,transparent 0,#000 var(--_fade-top),#000 calc(100% - var(--_fade-bottom)),transparent 100%),linear-gradient(to right,transparent 0,#000 var(--_fade-left),#000 calc(100% - var(--_fade-right)),transparent 100%);mask-image:linear-gradient(to bottom,transparent 0,#000 var(--_fade-top),#000 calc(100% - var(--_fade-bottom)),transparent 100%),linear-gradient(to right,transparent 0,#000 var(--_fade-left),#000 calc(100% - var(--_fade-right)),transparent 100%);-webkit-mask-composite:source-in;mask-composite:intersect;transition:--_scroll-area-fade-block-start var(--slotted-duration-short) var(--slotted-easing-standard),--_scroll-area-fade-block-end var(--slotted-duration-short) var(--slotted-easing-standard),--_scroll-area-fade-inline-start var(--slotted-duration-short) var(--slotted-easing-standard),--_scroll-area-fade-inline-end var(--slotted-duration-short) var(--slotted-easing-standard)}[data-ui-scroll-area]:dir(rtl)>[data-part-viewport]{--_fade-left: var(--_scroll-area-fade-inline-end);--_fade-right: var(--_scroll-area-fade-inline-start)}[data-ui-scroll-area][data-axis=block]>[data-part-viewport]{overflow-x:hidden;overflow-y:auto;overflow-inline:hidden;overflow-block:auto}[data-ui-scroll-area][data-axis=inline]>[data-part-viewport]{overflow-x:auto;overflow-y:hidden;overflow-inline:auto;overflow-block:hidden}[data-ui-scroll-area][data-axis=both]>[data-part-viewport]{overflow:auto}[data-ui-scroll-area][data-scrollbars=always][data-axis=block]>[data-part-viewport]{overflow-y:scroll;overflow-block:scroll}[data-ui-scroll-area][data-scrollbars=always][data-axis=inline]>[data-part-viewport]{overflow-x:scroll;overflow-inline:scroll}[data-ui-scroll-area][data-scrollbars=always][data-axis=both]>[data-part-viewport]{overflow:scroll}[data-ui-scroll-area][data-scrollbars=none]>[data-part-viewport]{scrollbar-width:none}[data-ui-scroll-area][data-scrollbars=hover]>[data-part-viewport]{scrollbar-color:transparent transparent;transition:scrollbar-color var(--slotted-duration-short) var(--slotted-easing-standard),--_scroll-area-fade-block-start var(--slotted-duration-short) var(--slotted-easing-standard),--_scroll-area-fade-block-end var(--slotted-duration-short) var(--slotted-easing-standard),--_scroll-area-fade-inline-start var(--slotted-duration-short) var(--slotted-easing-standard),--_scroll-area-fade-inline-end var(--slotted-duration-short) var(--slotted-easing-standard)}[data-ui-scroll-area][data-scrollbars=hover]:not([data-disabled]):hover>[data-part-viewport],[data-ui-scroll-area][data-scrollbars=hover]:focus-within>[data-part-viewport]{scrollbar-color:var(--_thumb) var(--_track)}[data-ui-scroll-area][data-gutter=auto]>[data-part-viewport]{scrollbar-gutter:auto}[data-ui-scroll-area][data-gutter=both-edges]>[data-part-viewport]{scrollbar-gutter:stable both-edges}[data-ui-scroll-area][data-overscroll=auto]>[data-part-viewport]{overscroll-behavior:auto}[data-ui-scroll-area][data-overscroll=none]>[data-part-viewport]{overscroll-behavior:none}[data-ui-scroll-area][data-axis=inline]>[data-part-viewport]{overscroll-behavior-y:auto;overscroll-behavior-block:auto}[data-ui-scroll-area][data-axis=block]>[data-part-viewport]{overscroll-behavior-x:auto;overscroll-behavior-inline:auto}[data-ui-scroll-area][data-at-block-start]>[data-part-viewport]{--_scroll-area-fade-block-start: 0px}[data-ui-scroll-area][data-at-block-end]>[data-part-viewport]{--_scroll-area-fade-block-end: 0px}[data-ui-scroll-area][data-at-inline-start]>[data-part-viewport]{--_scroll-area-fade-inline-start: 0px}[data-ui-scroll-area][data-at-inline-end]>[data-part-viewport]{--_scroll-area-fade-inline-end: 0px}[data-ui-scroll-area][data-fade=end]>[data-part-viewport]{--_scroll-area-fade-block-start: 0px;--_scroll-area-fade-inline-start: 0px}[data-ui-scroll-area][data-fade=none]>[data-part-viewport],[data-ui-scroll-area][data-sideways]>[data-part-viewport]{-webkit-mask-image:none;mask-image:none}[data-ui-scroll-area]>[data-part-viewport]>[data-part-content]{box-sizing:border-box;min-inline-size:fit-content;padding:var(--slotted-scroll-area-inset, var(--slotted-space-5, .75rem))}[data-ui-scroll-area]>[data-part-viewport]:focus{outline:none}[data-ui-scroll-area]:has(>[data-part-viewport]:focus-visible[data-focus-origin=keyboard]){outline:var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);outline-offset:var(--slotted-focus-ring-offset, 2px)}@media print{[data-ui-scroll-area],[data-ui-scroll-area]>[data-part-viewport]{max-block-size:none;max-inline-size:none;overflow:visible;-webkit-mask-image:none;mask-image:none}}@media(forced-colors:active){[data-ui-scroll-area]>[data-part-viewport]{-webkit-mask-image:none;mask-image:none;scrollbar-color:auto}}}@property --_scroll-area-fade-block-start{syntax: \"<length-percentage>\"; inherits: false; initial-value: 0px;}@property --_scroll-area-fade-block-end{syntax: \"<length-percentage>\"; inherits: false; initial-value: 0px;}@property --_scroll-area-fade-inline-start{syntax: \"<length-percentage>\"; inherits: false; initial-value: 0px;}@property --_scroll-area-fade-inline-end{syntax: \"<length-percentage>\"; inherits: false; initial-value: 0px;}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
237
237
  }
238
238
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlScrollArea, decorators: [{
239
239
  type: Component,
@@ -268,7 +268,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImpor
268
268
  '[attr.data-sideways]': "sideways() ? '' : null",
269
269
  '[style.max-block-size]': 'maxBlockSize() ?? null',
270
270
  '[style.max-inline-size]': 'maxInlineSize() ?? null',
271
- }, styles: ["@layer slotted.components{[data-ui-scroll-area]{--_fade: min(var(--slotted-scroll-area-fade-size, var(--slotted-space-8, 1.5rem)), 20%);--_thumb: var(--slotted-scroll-area-thumb-color, var(--slotted-border-strong, ButtonBorder));--_track: var(--slotted-scroll-area-track-color, var(--slotted-surface-sunken, Canvas));display:grid;box-sizing:border-box;min-block-size:0;min-inline-size:0}[data-ui-scroll-area]>[data-part-viewport]{--_scroll-area-fade-block-start: var(--_fade);--_scroll-area-fade-block-end: var(--_fade);--_scroll-area-fade-inline-start: var(--_fade);--_scroll-area-fade-inline-end: var(--_fade);--_fade-top: var(--_scroll-area-fade-block-start);--_fade-bottom: var(--_scroll-area-fade-block-end);--_fade-left: var(--_scroll-area-fade-inline-start);--_fade-right: var(--_scroll-area-fade-inline-end);box-sizing:border-box;min-block-size:0;min-inline-size:0;border-radius:inherit;scrollbar-gutter:stable;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:var(--_thumb) var(--_track);-webkit-mask-image:linear-gradient(to bottom,transparent 0,#000 var(--_fade-top),#000 calc(100% - var(--_fade-bottom)),transparent 100%),linear-gradient(to right,transparent 0,#000 var(--_fade-left),#000 calc(100% - var(--_fade-right)),transparent 100%);mask-image:linear-gradient(to bottom,transparent 0,#000 var(--_fade-top),#000 calc(100% - var(--_fade-bottom)),transparent 100%),linear-gradient(to right,transparent 0,#000 var(--_fade-left),#000 calc(100% - var(--_fade-right)),transparent 100%);-webkit-mask-composite:source-in;mask-composite:intersect;transition:--_scroll-area-fade-block-start var(--slotted-duration-short) var(--slotted-easing-standard),--_scroll-area-fade-block-end var(--slotted-duration-short) var(--slotted-easing-standard),--_scroll-area-fade-inline-start var(--slotted-duration-short) var(--slotted-easing-standard),--_scroll-area-fade-inline-end var(--slotted-duration-short) var(--slotted-easing-standard)}[data-ui-scroll-area]:dir(rtl)>[data-part-viewport]{--_fade-left: var(--_scroll-area-fade-inline-end);--_fade-right: var(--_scroll-area-fade-inline-start)}[data-ui-scroll-area][data-axis=block]>[data-part-viewport]{overflow-x:hidden;overflow-y:auto;overflow-inline:hidden;overflow-block:auto}[data-ui-scroll-area][data-axis=inline]>[data-part-viewport]{overflow-x:auto;overflow-y:hidden;overflow-inline:auto;overflow-block:hidden}[data-ui-scroll-area][data-axis=both]>[data-part-viewport]{overflow:auto}[data-ui-scroll-area][data-scrollbars=always][data-axis=block]>[data-part-viewport]{overflow-y:scroll;overflow-block:scroll}[data-ui-scroll-area][data-scrollbars=always][data-axis=inline]>[data-part-viewport]{overflow-x:scroll;overflow-inline:scroll}[data-ui-scroll-area][data-scrollbars=always][data-axis=both]>[data-part-viewport]{overflow:scroll}[data-ui-scroll-area][data-scrollbars=none]>[data-part-viewport]{scrollbar-width:none}[data-ui-scroll-area][data-scrollbars=hover]>[data-part-viewport]{scrollbar-color:transparent transparent;transition:scrollbar-color var(--slotted-duration-short) var(--slotted-easing-standard),--_scroll-area-fade-block-start var(--slotted-duration-short) var(--slotted-easing-standard),--_scroll-area-fade-block-end var(--slotted-duration-short) var(--slotted-easing-standard),--_scroll-area-fade-inline-start var(--slotted-duration-short) var(--slotted-easing-standard),--_scroll-area-fade-inline-end var(--slotted-duration-short) var(--slotted-easing-standard)}[data-ui-scroll-area][data-scrollbars=hover]:not([data-disabled]):hover>[data-part-viewport],[data-ui-scroll-area][data-scrollbars=hover]:focus-within>[data-part-viewport]{scrollbar-color:var(--_thumb) var(--_track)}[data-ui-scroll-area][data-gutter=auto]>[data-part-viewport]{scrollbar-gutter:auto}[data-ui-scroll-area][data-gutter=both-edges]>[data-part-viewport]{scrollbar-gutter:stable both-edges}[data-ui-scroll-area][data-overscroll=auto]>[data-part-viewport]{overscroll-behavior:auto}[data-ui-scroll-area][data-overscroll=none]>[data-part-viewport]{overscroll-behavior:none}[data-ui-scroll-area][data-axis=inline]>[data-part-viewport]{overscroll-behavior-y:auto;overscroll-behavior-block:auto}[data-ui-scroll-area][data-axis=block]>[data-part-viewport]{overscroll-behavior-x:auto;overscroll-behavior-inline:auto}[data-ui-scroll-area][data-at-block-start]>[data-part-viewport]{--_scroll-area-fade-block-start: 0px}[data-ui-scroll-area][data-at-block-end]>[data-part-viewport]{--_scroll-area-fade-block-end: 0px}[data-ui-scroll-area][data-at-inline-start]>[data-part-viewport]{--_scroll-area-fade-inline-start: 0px}[data-ui-scroll-area][data-at-inline-end]>[data-part-viewport]{--_scroll-area-fade-inline-end: 0px}[data-ui-scroll-area][data-fade=end]>[data-part-viewport]{--_scroll-area-fade-block-start: 0px;--_scroll-area-fade-inline-start: 0px}[data-ui-scroll-area][data-fade=none]>[data-part-viewport],[data-ui-scroll-area][data-sideways]>[data-part-viewport]{-webkit-mask-image:none;mask-image:none}[data-ui-scroll-area]>[data-part-viewport]>[data-part-content]{box-sizing:border-box;min-inline-size:fit-content;padding:var(--slotted-scroll-area-inset, var(--slotted-space-5, .75rem))}[data-ui-scroll-area]>[data-part-viewport]:focus{outline:none}[data-ui-scroll-area]:has(>[data-part-viewport]:focus-visible[data-focus-origin=keyboard]){outline:var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);outline-offset:var(--slotted-focus-ring-offset, 2px)}@media print{[data-ui-scroll-area],[data-ui-scroll-area]>[data-part-viewport]{max-block-size:none;max-inline-size:none;overflow:visible;-webkit-mask-image:none;mask-image:none}}@media(forced-colors:active){[data-ui-scroll-area]>[data-part-viewport]{-webkit-mask-image:none;mask-image:none;scrollbar-color:auto}}}@property --_scroll-area-fade-block-start{syntax: \"<length-percentage>\"; inherits: false; initial-value: 0px;}@property --_scroll-area-fade-block-end{syntax: \"<length-percentage>\"; inherits: false; initial-value: 0px;}@property --_scroll-area-fade-inline-start{syntax: \"<length-percentage>\"; inherits: false; initial-value: 0px;}@property --_scroll-area-fade-inline-end{syntax: \"<length-percentage>\"; inherits: false; initial-value: 0px;}\n"] }]
271
+ }, styles: ["@layer slotted.components{[data-ui-scroll-area]{--_fade: min(var(--slotted-scroll-area-fade-size, var(--slotted-space-8, 1.5rem)), 20%);--_thumb: var(--slotted-scroll-area-thumb-color, var(--slotted-border-strong, ButtonBorder));--_track: var(--slotted-scroll-area-track-color, var(--slotted-surface-sunken, Canvas));display:grid;grid-template-rows:minmax(0,1fr);box-sizing:border-box;min-block-size:0;min-inline-size:0}[data-ui-scroll-area]>[data-part-viewport]{--_scroll-area-fade-block-start: var(--_fade);--_scroll-area-fade-block-end: var(--_fade);--_scroll-area-fade-inline-start: var(--_fade);--_scroll-area-fade-inline-end: var(--_fade);--_fade-top: var(--_scroll-area-fade-block-start);--_fade-bottom: var(--_scroll-area-fade-block-end);--_fade-left: var(--_scroll-area-fade-inline-start);--_fade-right: var(--_scroll-area-fade-inline-end);box-sizing:border-box;min-block-size:0;min-inline-size:0;border-radius:inherit;scrollbar-gutter:stable;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:var(--_thumb) var(--_track);-webkit-mask-image:linear-gradient(to bottom,transparent 0,#000 var(--_fade-top),#000 calc(100% - var(--_fade-bottom)),transparent 100%),linear-gradient(to right,transparent 0,#000 var(--_fade-left),#000 calc(100% - var(--_fade-right)),transparent 100%);mask-image:linear-gradient(to bottom,transparent 0,#000 var(--_fade-top),#000 calc(100% - var(--_fade-bottom)),transparent 100%),linear-gradient(to right,transparent 0,#000 var(--_fade-left),#000 calc(100% - var(--_fade-right)),transparent 100%);-webkit-mask-composite:source-in;mask-composite:intersect;transition:--_scroll-area-fade-block-start var(--slotted-duration-short) var(--slotted-easing-standard),--_scroll-area-fade-block-end var(--slotted-duration-short) var(--slotted-easing-standard),--_scroll-area-fade-inline-start var(--slotted-duration-short) var(--slotted-easing-standard),--_scroll-area-fade-inline-end var(--slotted-duration-short) var(--slotted-easing-standard)}[data-ui-scroll-area]:dir(rtl)>[data-part-viewport]{--_fade-left: var(--_scroll-area-fade-inline-end);--_fade-right: var(--_scroll-area-fade-inline-start)}[data-ui-scroll-area][data-axis=block]>[data-part-viewport]{overflow-x:hidden;overflow-y:auto;overflow-inline:hidden;overflow-block:auto}[data-ui-scroll-area][data-axis=inline]>[data-part-viewport]{overflow-x:auto;overflow-y:hidden;overflow-inline:auto;overflow-block:hidden}[data-ui-scroll-area][data-axis=both]>[data-part-viewport]{overflow:auto}[data-ui-scroll-area][data-scrollbars=always][data-axis=block]>[data-part-viewport]{overflow-y:scroll;overflow-block:scroll}[data-ui-scroll-area][data-scrollbars=always][data-axis=inline]>[data-part-viewport]{overflow-x:scroll;overflow-inline:scroll}[data-ui-scroll-area][data-scrollbars=always][data-axis=both]>[data-part-viewport]{overflow:scroll}[data-ui-scroll-area][data-scrollbars=none]>[data-part-viewport]{scrollbar-width:none}[data-ui-scroll-area][data-scrollbars=hover]>[data-part-viewport]{scrollbar-color:transparent transparent;transition:scrollbar-color var(--slotted-duration-short) var(--slotted-easing-standard),--_scroll-area-fade-block-start var(--slotted-duration-short) var(--slotted-easing-standard),--_scroll-area-fade-block-end var(--slotted-duration-short) var(--slotted-easing-standard),--_scroll-area-fade-inline-start var(--slotted-duration-short) var(--slotted-easing-standard),--_scroll-area-fade-inline-end var(--slotted-duration-short) var(--slotted-easing-standard)}[data-ui-scroll-area][data-scrollbars=hover]:not([data-disabled]):hover>[data-part-viewport],[data-ui-scroll-area][data-scrollbars=hover]:focus-within>[data-part-viewport]{scrollbar-color:var(--_thumb) var(--_track)}[data-ui-scroll-area][data-gutter=auto]>[data-part-viewport]{scrollbar-gutter:auto}[data-ui-scroll-area][data-gutter=both-edges]>[data-part-viewport]{scrollbar-gutter:stable both-edges}[data-ui-scroll-area][data-overscroll=auto]>[data-part-viewport]{overscroll-behavior:auto}[data-ui-scroll-area][data-overscroll=none]>[data-part-viewport]{overscroll-behavior:none}[data-ui-scroll-area][data-axis=inline]>[data-part-viewport]{overscroll-behavior-y:auto;overscroll-behavior-block:auto}[data-ui-scroll-area][data-axis=block]>[data-part-viewport]{overscroll-behavior-x:auto;overscroll-behavior-inline:auto}[data-ui-scroll-area][data-at-block-start]>[data-part-viewport]{--_scroll-area-fade-block-start: 0px}[data-ui-scroll-area][data-at-block-end]>[data-part-viewport]{--_scroll-area-fade-block-end: 0px}[data-ui-scroll-area][data-at-inline-start]>[data-part-viewport]{--_scroll-area-fade-inline-start: 0px}[data-ui-scroll-area][data-at-inline-end]>[data-part-viewport]{--_scroll-area-fade-inline-end: 0px}[data-ui-scroll-area][data-fade=end]>[data-part-viewport]{--_scroll-area-fade-block-start: 0px;--_scroll-area-fade-inline-start: 0px}[data-ui-scroll-area][data-fade=none]>[data-part-viewport],[data-ui-scroll-area][data-sideways]>[data-part-viewport]{-webkit-mask-image:none;mask-image:none}[data-ui-scroll-area]>[data-part-viewport]>[data-part-content]{box-sizing:border-box;min-inline-size:fit-content;padding:var(--slotted-scroll-area-inset, var(--slotted-space-5, .75rem))}[data-ui-scroll-area]>[data-part-viewport]:focus{outline:none}[data-ui-scroll-area]:has(>[data-part-viewport]:focus-visible[data-focus-origin=keyboard]){outline:var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);outline-offset:var(--slotted-focus-ring-offset, 2px)}@media print{[data-ui-scroll-area],[data-ui-scroll-area]>[data-part-viewport]{max-block-size:none;max-inline-size:none;overflow:visible;-webkit-mask-image:none;mask-image:none}}@media(forced-colors:active){[data-ui-scroll-area]>[data-part-viewport]{-webkit-mask-image:none;mask-image:none;scrollbar-color:auto}}}@property --_scroll-area-fade-block-start{syntax: \"<length-percentage>\"; inherits: false; initial-value: 0px;}@property --_scroll-area-fade-block-end{syntax: \"<length-percentage>\"; inherits: false; initial-value: 0px;}@property --_scroll-area-fade-inline-start{syntax: \"<length-percentage>\"; inherits: false; initial-value: 0px;}@property --_scroll-area-fade-inline-end{syntax: \"<length-percentage>\"; inherits: false; initial-value: 0px;}\n"] }]
272
272
  }], ctorParameters: () => [], propDecorators: { axis: [{ type: i0.Input, args: [{ isSignal: true, alias: "axis", required: false }] }], scrollbars: [{ type: i0.Input, args: [{ isSignal: true, alias: "scrollbars", required: false }] }], gutter: [{ type: i0.Input, args: [{ isSignal: true, alias: "gutter", required: false }] }], fade: [{ type: i0.Input, args: [{ isSignal: true, alias: "fade", required: false }] }], overscroll: [{ type: i0.Input, args: [{ isSignal: true, alias: "overscroll", required: false }] }], maxBlockSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxBlockSize", required: false }] }], maxInlineSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxInlineSize", required: false }] }], tabbable: [{ type: i0.Input, args: [{ isSignal: true, alias: "tabbable", required: false }] }], labelledBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "labelledBy", required: false }] }], messages: [{ type: i0.Input, args: [{ isSignal: true, alias: "messages", required: false }] }], scrollChange: [{ type: i0.Output, args: ["scrollChange"] }], overflowChange: [{ type: i0.Output, args: ["overflowChange"] }], viewportRef: [{ type: i0.ViewChild, args: ['viewport', { isSignal: true }] }] } });
273
273
  /**
274
274
  * The inset that scrolls with the content.
@@ -1 +1 @@
1
- {"version":3,"file":"slotted-angular-scroll-area.mjs","sources":["../../scroll-area/src/scroll-area-defaults.ts","../../scroll-area/src/scroll-area.ts","../../scroll-area/src/slotted-angular-scroll-area.ts"],"sourcesContent":["import { inject, InjectionToken } from '@angular/core';\n\n/** Which axes scroll. Logical, so a vertical writing mode needs no second vocabulary. */\nexport type ScrollAreaAxis = 'block' | 'inline' | 'both';\n\n/**\n * What the scrollbar does. `auto` is `overflow: auto`; `always` is\n * `overflow: scroll`; `hover` paints the bar transparent until a pointer or the\n * keyboard is inside; `none` removes the bar and leaves the scrolling.\n *\n * `scroll` — visible only while scrolling, which Radix and Mantine both ship —\n * is folded into `hover`, because it is what a platform overlay scrollbar\n * already does on its own.\n */\nexport type ScrollAreaScrollbars = 'auto' | 'always' | 'hover' | 'none';\n\n/** `scrollbar-gutter`, and `stable` is the default because content that shifts is the defect. */\nexport type ScrollAreaGutter = 'auto' | 'stable' | 'both-edges';\n\n/**\n * Where the veil is drawn. `both` dims what the reader has passed as well as\n * what is ahead; `end` only what is ahead; `none` leaves the scrollbar to say\n * there is more.\n */\nexport type ScrollAreaFade = 'both' | 'end' | 'none';\n\n/** `overscroll-behavior`, and `contain` is the default. */\nexport type ScrollAreaOverscroll = 'contain' | 'auto' | 'none';\n\nexport interface ScrollAreaDefaults {\n axis: ScrollAreaAxis;\n scrollbars: ScrollAreaScrollbars;\n gutter: ScrollAreaGutter;\n fade: ScrollAreaFade;\n overscroll: ScrollAreaOverscroll;\n}\n\nconst FALLBACK: ScrollAreaDefaults = {\n axis: 'block',\n fade: 'both',\n gutter: 'stable',\n overscroll: 'contain',\n scrollbars: 'auto',\n};\n\nexport const SCROLL_AREA_DEFAULTS = new InjectionToken<ScrollAreaDefaults>(\n 'slotted scroll-area defaults',\n { providedIn: 'root', factory: () => FALLBACK },\n);\n\n/**\n * An application decides once what its scroll areas look like — whether the\n * bar waits for a hand, whether the veil dims both ends — rather than repeating\n * it on fifty of them. A region's name comes from the language in force\n * (`provideSlotted`).\n *\n * None of the five surveyed implementations has an equivalent: each takes its\n * policy per instance, and Mantine's `type` in particular is written on every\n * call site of every product that uses it.\n */\nexport function provideScrollAreaDefaults(defaults: Partial<ScrollAreaDefaults>) {\n return {\n provide: SCROLL_AREA_DEFAULTS,\n useFactory: (): ScrollAreaDefaults => ({ ...FALLBACK, ...defaults }),\n };\n}\n\n/** What a scroll area is here, before it states anything of its own. */\nexport function injectScrollAreaDefaults(): ScrollAreaDefaults {\n return inject(SCROLL_AREA_DEFAULTS);\n}\n","import { createFocusOrigin } from '@slotted/core/focus';\nimport {\n createScrollEdges,\n NO_SCROLL_EDGES,\n scrollEdgeAttributes,\n type LogicalEdge,\n type ScrollEdgesHandle,\n type ScrollEdgesState,\n type ScrollPosition,\n} from '@slotted/core/overflow';\nimport {\n afterNextRender,\n booleanAttribute,\n ChangeDetectionStrategy,\n Component,\n computed,\n DestroyRef,\n Directive,\n ElementRef,\n inject,\n input,\n output,\n signal,\n viewChild,\n ViewEncapsulation,\n} from '@angular/core';\nimport { injectMessages } from '@slotted/angular/i18n';\nimport {\n scrollAreaMessages,\n type PartialMessages,\n type ScrollAreaMessages,\n} from '@slotted/core/i18n';\n\nimport { injectScrollAreaDefaults } from './scroll-area-defaults';\nimport type {\n ScrollAreaAxis,\n ScrollAreaFade,\n ScrollAreaGutter,\n ScrollAreaOverscroll,\n ScrollAreaScrollbars,\n} from './scroll-area-defaults';\n\n/** What `scrollChange` carries: where the scroller is, and the event that moved it. */\nexport interface ScrollAreaScrollEvent {\n readonly position: ScrollPosition;\n readonly source: Event;\n}\n\n/**\n * A scrollport, and the box that frames it.\n *\n * The scrollbar is the platform's, themed by the stylesheet through\n * `scrollbar-color`; the keyboard is the platform's too. What this component\n * adds is the measurement of whether the content overflows and which of its\n * ends show, published on the frame for CSS and emitted to the consumer, and\n * the tab stop a scrolling region owes a keyboard together with the name that\n * tab stop owes a screen reader — both written only while the content actually\n * overflows, which is the pattern `prose` shipped first for one block inside a\n * document.\n *\n * The frame is the consumer's own element — `<div slScrollArea>` — and the\n * scrollport is the component's, projected into: the frame is where a border,\n * a radius and a ground go, and the scrollport is the element the veil is on.\n * A consumer's own attributes on the host are never written over, because the\n * family writes its role, its tab stop and its name on an element it owns.\n *\n * The scroll position is never held. The browser moves it on a wheel, a\n * fling, a `Tab` into a child, an anchor navigation and a printed page, and a\n * consumer holding the value would have to accept every one of those or fight\n * the platform. It is emitted, and the instance moves it.\n */\n@Component({\n selector: '[slScrollArea]',\n standalone: true,\n exportAs: 'slScrollArea',\n template: `\n <div\n #viewport\n data-part=\"viewport\"\n data-part-viewport=\"\"\n [attr.role]=\"wired() ? 'region' : null\"\n [attr.tabindex]=\"wired() ? '0' : null\"\n [attr.aria-label]=\"ariaLabel()\"\n [attr.aria-labelledby]=\"ariaLabelledBy()\"\n (scroll)=\"onScroll($event)\"\n >\n <ng-content />\n </div>\n `,\n styleUrl: '../../../styles/src/scroll-area/scroll-area.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: {\n 'data-ui': 'scroll-area',\n 'data-ui-scroll-area': '',\n 'data-part': 'root',\n 'data-part-root': '',\n '[attr.data-axis]': 'resolvedAxis()',\n '[attr.data-scrollbars]': 'resolvedScrollbars()',\n '[attr.data-gutter]': 'resolvedGutter()',\n '[attr.data-fade]': 'resolvedFade()',\n '[attr.data-overscroll]': 'resolvedOverscroll()',\n '[attr.data-overflowing]': \"edgeAttributes()['data-overflowing'] ?? null\",\n '[attr.data-at-block-start]': \"edgeAttributes()['data-at-block-start'] ?? null\",\n '[attr.data-at-block-end]': \"edgeAttributes()['data-at-block-end'] ?? null\",\n '[attr.data-at-inline-start]': \"edgeAttributes()['data-at-inline-start'] ?? null\",\n '[attr.data-at-inline-end]': \"edgeAttributes()['data-at-inline-end'] ?? null\",\n '[attr.data-sideways]': \"sideways() ? '' : null\",\n '[style.max-block-size]': 'maxBlockSize() ?? null',\n '[style.max-inline-size]': 'maxInlineSize() ?? null',\n },\n})\nexport class SlScrollArea {\n readonly axis = input<ScrollAreaAxis | undefined>(undefined);\n readonly scrollbars = input<ScrollAreaScrollbars | undefined>(undefined);\n readonly gutter = input<ScrollAreaGutter | undefined>(undefined);\n readonly fade = input<ScrollAreaFade | undefined>(undefined);\n readonly overscroll = input<ScrollAreaOverscroll | undefined>(undefined);\n\n /**\n * Scroll only past this size, as any CSS length. It is Mantine's\n * `ScrollArea.Autosize` as one binding rather than a second component.\n */\n readonly maxBlockSize = input<string | undefined>(undefined);\n readonly maxInlineSize = input<string | undefined>(undefined);\n\n /**\n * Whether the scrollport joins the tab sequence while it overflows.\n *\n * On by default, because content that scrolls has to be scrollable by\n * keyboard and a scrollport with no tab stop is not — unless a child of it\n * already takes focus. A consumer who knows the content is reachable another\n * way turns it off and carries the reason.\n */\n readonly tabbable = input(true, { transform: booleanAttribute });\n\n /**\n * The name the region is announced by. Resolved in one order: `labelledBy`,\n * then `messages.label`, then the catalog of the language in force.\n */\n readonly labelledBy = input<string | undefined>(undefined);\n /** Words laid over the catalog of the language in force: the region's name (`label`). */\n readonly messages = input<PartialMessages<ScrollAreaMessages> | undefined>(undefined);\n\n /**\n * The position, as a distance from each logical start, on every scroll. It\n * is a report and not a request: the browser moves the position on a wheel,\n * a fling, a `Tab` into a child and a printed page, and a consumer holding it\n * would have to accept every one of those.\n */\n readonly scrollChange = output<ScrollAreaScrollEvent>();\n\n /** The measurement, and only a new one: which axes overflow, and which ends show. */\n readonly overflowChange = output<ScrollEdgesState>();\n\n private readonly defaults = injectScrollAreaDefaults();\n /** The family's words in the language in force, with this area's `messages` laid over them. */\n readonly t = injectMessages(scrollAreaMessages, this.messages);\n private readonly element = inject(ElementRef<HTMLElement>).nativeElement as HTMLElement;\n private readonly destroyRef = inject(DestroyRef);\n private readonly viewportRef = viewChild.required<ElementRef<HTMLElement>>('viewport');\n\n /**\n * The measurement, as a signal, so the attributes it becomes are rendered.\n * Before the first render it is the state of content that fits — four ends\n * showing and nothing overflowing — which paints no veil and writes no tab\n * stop, so a server render and its hydration agree and the veil does not\n * flash on before the browser has said whether there is anything behind it.\n */\n private readonly measured = signal<ScrollEdgesState>(NO_SCROLL_EDGES);\n protected readonly sideways = signal(false);\n private edges: ScrollEdgesHandle | null = null;\n\n protected readonly resolvedAxis = computed(() => this.axis() ?? this.defaults.axis);\n protected readonly resolvedScrollbars = computed(\n () => this.scrollbars() ?? this.defaults.scrollbars,\n );\n protected readonly resolvedGutter = computed(() => this.gutter() ?? this.defaults.gutter);\n protected readonly resolvedFade = computed(() => this.fade() ?? this.defaults.fade);\n protected readonly resolvedOverscroll = computed(\n () => this.overscroll() ?? this.defaults.overscroll,\n );\n\n protected readonly edgeAttributes = computed(() => scrollEdgeAttributes(this.measured()));\n\n protected readonly overflowing = computed(() => {\n const state = this.measured();\n return state.block.overflowing || state.inline.overflowing;\n });\n protected readonly wired = computed(() => this.overflowing() && this.tabbable());\n protected readonly ariaLabelledBy = computed(() =>\n this.wired() ? (this.labelledBy() ?? null) : null,\n );\n protected readonly ariaLabel = computed(() => {\n if (!this.wired() || this.labelledBy() !== undefined) return null;\n return this.t('label');\n });\n\n constructor() {\n /**\n * After the first render and only in a browser: Angular builds the\n * component during a server render too, and there is nothing to measure\n * there. The wiring appears at the first moment a browser can say whether\n * the content overflows at all.\n */\n afterNextRender(() => {\n const viewport = this.viewportRef().nativeElement;\n const handle = createScrollEdges(viewport, {\n onChange: (next) => {\n this.measured.set(next);\n if (this.edges !== null) this.sideways.set(this.edges.sideways());\n this.overflowChange.emit(next);\n },\n });\n this.edges = handle;\n this.measured.set(handle.state());\n this.sideways.set(handle.sideways());\n\n /** A click on the content focuses the scrollport; its ring is for the keyboard (`createFocusOrigin`). */\n const origin = createFocusOrigin(viewport);\n this.destroyRef.onDestroy(origin.destroy);\n });\n\n this.destroyRef.onDestroy(() => {\n this.edges?.destroy();\n this.edges = null;\n });\n }\n\n /** The frame: the consumer's own element. */\n get root(): HTMLElement {\n return this.element;\n }\n\n /** The scrollport: the element that scrolls and takes focus. */\n get viewport(): HTMLElement {\n return this.viewportRef().nativeElement;\n }\n\n /** The last measurement: whether each axis overflows, and which of its ends show. */\n state(): ScrollEdgesState {\n return this.edges?.state() ?? NO_SCROLL_EDGES;\n }\n\n /** The distance from each logical start, read now. */\n position(): ScrollPosition {\n return this.edges?.position() ?? { block: 0, inline: 0 };\n }\n\n /** Moves to a logical position. An axis left out is an axis left alone. */\n scrollTo(target: Partial<ScrollPosition>): void {\n this.edges?.scrollTo(target);\n }\n\n /** Moves to one end of one axis. */\n scrollToEdge(edge: LogicalEdge): void {\n this.edges?.scrollToEdge(edge);\n }\n\n /** Brings one element into view by the shortest movement that does it, without moving anything else. */\n reveal(element: Element): void {\n this.edges?.reveal(element);\n }\n\n /** Measures again, after content the observer could not see changed. */\n refresh(): void {\n this.edges?.refresh();\n }\n\n /** Moves focus to the scrollport. */\n focus(): void {\n this.viewport.focus();\n }\n\n protected onScroll(event: Event) {\n if (this.edges === null) return;\n this.scrollChange.emit({ position: this.edges.position(), source: event });\n }\n}\n\n/**\n * The inset that scrolls with the content.\n *\n * Padding on a scrollport is not applied at the end edge of its scrollable\n * overflow in every engine, so an inset that has to survive a scroll to the\n * end goes on an element inside it. The family states no inset of its own: the\n * directive exists to give the consumer's one a place to live, on the\n * consumer's own element, and an area whose content already carries its own\n * inset uses no `slScrollAreaContent` at all.\n */\n@Directive({\n selector: '[slScrollAreaContent]',\n standalone: true,\n exportAs: 'slScrollAreaContent',\n host: { 'data-part': 'content', 'data-part-content': '' },\n})\nexport class SlScrollAreaContent {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;AAqCA,MAAM,QAAQ,GAAuB;AACnC,IAAA,IAAI,EAAE,OAAO;AACb,IAAA,IAAI,EAAE,MAAM;AACZ,IAAA,MAAM,EAAE,QAAQ;AAChB,IAAA,UAAU,EAAE,SAAS;AACrB,IAAA,UAAU,EAAE,MAAM;CACnB;MAEY,oBAAoB,GAAG,IAAI,cAAc,CACpD,8BAA8B,EAC9B,EAAE,UAAU,EAAE,MAAM,EAAE,OAAO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AA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;AAwHvF;;;;;;;;;AASG;MAOU,mBAAmB,CAAA;uGAAnB,mBAAmB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;2FAAnB,mBAAmB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,uBAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,WAAA,EAAA,SAAA,EAAA,mBAAA,EAAA,EAAA,EAAA,EAAA,EAAA,QAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;2FAAnB,mBAAmB,EAAA,UAAA,EAAA,CAAA;kBAN/B,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,uBAAuB;AACjC,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,QAAQ,EAAE,qBAAqB;oBAC/B,IAAI,EAAE,EAAE,WAAW,EAAE,SAAS,EAAE,mBAAmB,EAAE,EAAE,EAAE;AAC1D,iBAAA;;;ACvSD;;AAEG;;"}
1
+ {"version":3,"file":"slotted-angular-scroll-area.mjs","sources":["../../scroll-area/src/scroll-area-defaults.ts","../../scroll-area/src/scroll-area.ts","../../scroll-area/src/slotted-angular-scroll-area.ts"],"sourcesContent":["import { inject, InjectionToken } from '@angular/core';\n\n/** Which axes scroll. Logical, so a vertical writing mode needs no second vocabulary. */\nexport type ScrollAreaAxis = 'block' | 'inline' | 'both';\n\n/**\n * What the scrollbar does. `auto` is `overflow: auto`; `always` is\n * `overflow: scroll`; `hover` paints the bar transparent until a pointer or the\n * keyboard is inside; `none` removes the bar and leaves the scrolling.\n *\n * `scroll` — visible only while scrolling, which Radix and Mantine both ship —\n * is folded into `hover`, because it is what a platform overlay scrollbar\n * already does on its own.\n */\nexport type ScrollAreaScrollbars = 'auto' | 'always' | 'hover' | 'none';\n\n/** `scrollbar-gutter`, and `stable` is the default because content that shifts is the defect. */\nexport type ScrollAreaGutter = 'auto' | 'stable' | 'both-edges';\n\n/**\n * Where the veil is drawn. `both` dims what the reader has passed as well as\n * what is ahead; `end` only what is ahead; `none` leaves the scrollbar to say\n * there is more.\n */\nexport type ScrollAreaFade = 'both' | 'end' | 'none';\n\n/** `overscroll-behavior`, and `contain` is the default. */\nexport type ScrollAreaOverscroll = 'contain' | 'auto' | 'none';\n\nexport interface ScrollAreaDefaults {\n axis: ScrollAreaAxis;\n scrollbars: ScrollAreaScrollbars;\n gutter: ScrollAreaGutter;\n fade: ScrollAreaFade;\n overscroll: ScrollAreaOverscroll;\n}\n\nconst FALLBACK: ScrollAreaDefaults = {\n axis: 'block',\n fade: 'both',\n gutter: 'stable',\n overscroll: 'contain',\n scrollbars: 'auto',\n};\n\nexport const SCROLL_AREA_DEFAULTS = new InjectionToken<ScrollAreaDefaults>(\n 'slotted scroll-area defaults',\n { providedIn: 'root', factory: () => FALLBACK },\n);\n\n/**\n * An application decides once what its scroll areas look like — whether the\n * bar waits for a hand, whether the veil dims both ends — rather than repeating\n * it on fifty of them. A region's name comes from the language in force\n * (`provideSlotted`).\n *\n * None of the five surveyed implementations has an equivalent: each takes its\n * policy per instance, and Mantine's `type` in particular is written on every\n * call site of every product that uses it.\n */\nexport function provideScrollAreaDefaults(defaults: Partial<ScrollAreaDefaults>) {\n return {\n provide: SCROLL_AREA_DEFAULTS,\n useFactory: (): ScrollAreaDefaults => ({ ...FALLBACK, ...defaults }),\n };\n}\n\n/** What a scroll area is here, before it states anything of its own. */\nexport function injectScrollAreaDefaults(): ScrollAreaDefaults {\n return inject(SCROLL_AREA_DEFAULTS);\n}\n","import { createFocusOrigin } from '@slotted/core/focus';\nimport {\n createScrollEdges,\n NO_SCROLL_EDGES,\n scrollEdgeAttributes,\n type LogicalEdge,\n type ScrollEdgesHandle,\n type ScrollEdgesState,\n type ScrollPosition,\n} from '@slotted/core/overflow';\nimport {\n afterNextRender,\n booleanAttribute,\n ChangeDetectionStrategy,\n Component,\n computed,\n DestroyRef,\n Directive,\n ElementRef,\n inject,\n input,\n output,\n signal,\n viewChild,\n ViewEncapsulation,\n} from '@angular/core';\nimport { injectMessages } from '@slotted/angular/i18n';\nimport {\n scrollAreaMessages,\n type PartialMessages,\n type ScrollAreaMessages,\n} from '@slotted/core/i18n';\n\nimport { injectScrollAreaDefaults } from './scroll-area-defaults';\nimport type {\n ScrollAreaAxis,\n ScrollAreaFade,\n ScrollAreaGutter,\n ScrollAreaOverscroll,\n ScrollAreaScrollbars,\n} from './scroll-area-defaults';\n\n/** What `scrollChange` carries: where the scroller is, and the event that moved it. */\nexport interface ScrollAreaScrollEvent {\n readonly position: ScrollPosition;\n readonly source: Event;\n}\n\n/**\n * A scrollport, and the box that frames it.\n *\n * The scrollbar is the platform's, themed by the stylesheet through\n * `scrollbar-color`; the keyboard is the platform's too. What this component\n * adds is the measurement of whether the content overflows and which of its\n * ends show, published on the frame for CSS and emitted to the consumer, and\n * the tab stop a scrolling region owes a keyboard together with the name that\n * tab stop owes a screen reader — both written only while the content actually\n * overflows, which is the pattern `prose` shipped first for one block inside a\n * document.\n *\n * The frame is the consumer's own element — `<div slScrollArea>` — and the\n * scrollport is the component's, projected into: the frame is where a border,\n * a radius and a ground go, and the scrollport is the element the veil is on.\n * A consumer's own attributes on the host are never written over, because the\n * family writes its role, its tab stop and its name on an element it owns.\n *\n * The scroll position is never held. The browser moves it on a wheel, a\n * fling, a `Tab` into a child, an anchor navigation and a printed page, and a\n * consumer holding the value would have to accept every one of those or fight\n * the platform. It is emitted, and the instance moves it.\n */\n@Component({\n selector: '[slScrollArea]',\n standalone: true,\n exportAs: 'slScrollArea',\n template: `\n <div\n #viewport\n data-part=\"viewport\"\n data-part-viewport=\"\"\n [attr.role]=\"wired() ? 'region' : null\"\n [attr.tabindex]=\"wired() ? '0' : null\"\n [attr.aria-label]=\"ariaLabel()\"\n [attr.aria-labelledby]=\"ariaLabelledBy()\"\n (scroll)=\"onScroll($event)\"\n >\n <ng-content />\n </div>\n `,\n styleUrl: '../../../styles/src/scroll-area/scroll-area.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: {\n 'data-ui': 'scroll-area',\n 'data-ui-scroll-area': '',\n 'data-part': 'root',\n 'data-part-root': '',\n '[attr.data-axis]': 'resolvedAxis()',\n '[attr.data-scrollbars]': 'resolvedScrollbars()',\n '[attr.data-gutter]': 'resolvedGutter()',\n '[attr.data-fade]': 'resolvedFade()',\n '[attr.data-overscroll]': 'resolvedOverscroll()',\n '[attr.data-overflowing]': \"edgeAttributes()['data-overflowing'] ?? null\",\n '[attr.data-at-block-start]': \"edgeAttributes()['data-at-block-start'] ?? null\",\n '[attr.data-at-block-end]': \"edgeAttributes()['data-at-block-end'] ?? null\",\n '[attr.data-at-inline-start]': \"edgeAttributes()['data-at-inline-start'] ?? null\",\n '[attr.data-at-inline-end]': \"edgeAttributes()['data-at-inline-end'] ?? null\",\n '[attr.data-sideways]': \"sideways() ? '' : null\",\n '[style.max-block-size]': 'maxBlockSize() ?? null',\n '[style.max-inline-size]': 'maxInlineSize() ?? null',\n },\n})\nexport class SlScrollArea {\n readonly axis = input<ScrollAreaAxis | undefined>(undefined);\n readonly scrollbars = input<ScrollAreaScrollbars | undefined>(undefined);\n readonly gutter = input<ScrollAreaGutter | undefined>(undefined);\n readonly fade = input<ScrollAreaFade | undefined>(undefined);\n readonly overscroll = input<ScrollAreaOverscroll | undefined>(undefined);\n\n /**\n * Scroll only past this size, as any CSS length. It is Mantine's\n * `ScrollArea.Autosize` as one binding rather than a second component.\n */\n readonly maxBlockSize = input<string | undefined>(undefined);\n readonly maxInlineSize = input<string | undefined>(undefined);\n\n /**\n * Whether the scrollport joins the tab sequence while it overflows.\n *\n * On by default, because content that scrolls has to be scrollable by\n * keyboard and a scrollport with no tab stop is not — unless a child of it\n * already takes focus. A consumer who knows the content is reachable another\n * way turns it off and carries the reason.\n */\n readonly tabbable = input(true, { transform: booleanAttribute });\n\n /**\n * The name the region is announced by. Resolved in one order: `labelledBy`,\n * then `messages.label`, then the catalog of the language in force.\n */\n readonly labelledBy = input<string | undefined>(undefined);\n /** Words laid over the catalog of the language in force: the region's name (`label`). */\n readonly messages = input<PartialMessages<ScrollAreaMessages> | undefined>(undefined);\n\n /**\n * The position, as a distance from each logical start, on every scroll. It\n * is a report and not a request: the browser moves the position on a wheel,\n * a fling, a `Tab` into a child and a printed page, and a consumer holding it\n * would have to accept every one of those.\n */\n readonly scrollChange = output<ScrollAreaScrollEvent>();\n\n /** The measurement, and only a new one: which axes overflow, and which ends show. */\n readonly overflowChange = output<ScrollEdgesState>();\n\n private readonly defaults = injectScrollAreaDefaults();\n /** The family's words in the language in force, with this area's `messages` laid over them. */\n readonly t = injectMessages(scrollAreaMessages, this.messages);\n private readonly element = inject(ElementRef<HTMLElement>).nativeElement as HTMLElement;\n private readonly destroyRef = inject(DestroyRef);\n private readonly viewportRef = viewChild.required<ElementRef<HTMLElement>>('viewport');\n\n /**\n * The measurement, as a signal, so the attributes it becomes are rendered.\n * Before the first render it is the state of content that fits — four ends\n * showing and nothing overflowing — which paints no veil and writes no tab\n * stop, so a server render and its hydration agree and the veil does not\n * flash on before the browser has said whether there is anything behind it.\n */\n private readonly measured = signal<ScrollEdgesState>(NO_SCROLL_EDGES);\n protected readonly sideways = signal(false);\n private edges: ScrollEdgesHandle | null = null;\n\n protected readonly resolvedAxis = computed(() => this.axis() ?? this.defaults.axis);\n protected readonly resolvedScrollbars = computed(\n () => this.scrollbars() ?? this.defaults.scrollbars,\n );\n protected readonly resolvedGutter = computed(() => this.gutter() ?? this.defaults.gutter);\n protected readonly resolvedFade = computed(() => this.fade() ?? this.defaults.fade);\n protected readonly resolvedOverscroll = computed(\n () => this.overscroll() ?? this.defaults.overscroll,\n );\n\n protected readonly edgeAttributes = computed(() => scrollEdgeAttributes(this.measured()));\n\n protected readonly overflowing = computed(() => {\n const state = this.measured();\n return state.block.overflowing || state.inline.overflowing;\n });\n protected readonly wired = computed(() => this.overflowing() && this.tabbable());\n protected readonly ariaLabelledBy = computed(() =>\n this.wired() ? (this.labelledBy() ?? null) : null,\n );\n protected readonly ariaLabel = computed(() => {\n if (!this.wired() || this.labelledBy() !== undefined) return null;\n return this.t('label');\n });\n\n constructor() {\n /**\n * After the first render and only in a browser: Angular builds the\n * component during a server render too, and there is nothing to measure\n * there. The wiring appears at the first moment a browser can say whether\n * the content overflows at all.\n */\n afterNextRender(() => {\n const viewport = this.viewportRef().nativeElement;\n const handle = createScrollEdges(viewport, {\n onChange: (next) => {\n this.measured.set(next);\n if (this.edges !== null) this.sideways.set(this.edges.sideways());\n this.overflowChange.emit(next);\n },\n });\n this.edges = handle;\n this.measured.set(handle.state());\n this.sideways.set(handle.sideways());\n\n /** A click on the content focuses the scrollport; its ring is for the keyboard (`createFocusOrigin`). */\n const origin = createFocusOrigin(viewport);\n this.destroyRef.onDestroy(origin.destroy);\n });\n\n this.destroyRef.onDestroy(() => {\n this.edges?.destroy();\n this.edges = null;\n });\n }\n\n /** The frame: the consumer's own element. */\n get root(): HTMLElement {\n return this.element;\n }\n\n /** The scrollport: the element that scrolls and takes focus. */\n get viewport(): HTMLElement {\n return this.viewportRef().nativeElement;\n }\n\n /** The last measurement: whether each axis overflows, and which of its ends show. */\n state(): ScrollEdgesState {\n return this.edges?.state() ?? NO_SCROLL_EDGES;\n }\n\n /** The distance from each logical start, read now. */\n position(): ScrollPosition {\n return this.edges?.position() ?? { block: 0, inline: 0 };\n }\n\n /** Moves to a logical position. An axis left out is an axis left alone. */\n scrollTo(target: Partial<ScrollPosition>): void {\n this.edges?.scrollTo(target);\n }\n\n /** Moves to one end of one axis. */\n scrollToEdge(edge: LogicalEdge): void {\n this.edges?.scrollToEdge(edge);\n }\n\n /** Brings one element into view by the shortest movement that does it, without moving anything else. */\n reveal(element: Element): void {\n this.edges?.reveal(element);\n }\n\n /** Measures again, after content the observer could not see changed. */\n refresh(): void {\n this.edges?.refresh();\n }\n\n /** Moves focus to the scrollport. */\n focus(): void {\n this.viewport.focus();\n }\n\n protected onScroll(event: Event) {\n if (this.edges === null) return;\n this.scrollChange.emit({ position: this.edges.position(), source: event });\n }\n}\n\n/**\n * The inset that scrolls with the content.\n *\n * Padding on a scrollport is not applied at the end edge of its scrollable\n * overflow in every engine, so an inset that has to survive a scroll to the\n * end goes on an element inside it. The family states no inset of its own: the\n * directive exists to give the consumer's one a place to live, on the\n * consumer's own element, and an area whose content already carries its own\n * inset uses no `slScrollAreaContent` at all.\n */\n@Directive({\n selector: '[slScrollAreaContent]',\n standalone: true,\n exportAs: 'slScrollAreaContent',\n host: { 'data-part': 'content', 'data-part-content': '' },\n})\nexport class SlScrollAreaContent {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;AAqCA,MAAM,QAAQ,GAAuB;AACnC,IAAA,IAAI,EAAE,OAAO;AACb,IAAA,IAAI,EAAE,MAAM;AACZ,IAAA,MAAM,EAAE,QAAQ;AAChB,IAAA,UAAU,EAAE,SAAS;AACrB,IAAA,UAAU,EAAE,MAAM;CACnB;MAEY,oBAAoB,GAAG,IAAI,cAAc,CACpD,8BAA8B,EAC9B,EAAE,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,QAAQ,EAAE;AAGjD;;;;;;;;;AASG;AACG,SAAU,yBAAyB,CAAC,QAAqC,EAAA;IAC7E,OAAO;AACL,QAAA,OAAO,EAAE,oBAAoB;AAC7B,QAAA,UAAU,EAAE,OAA2B,EAAE,GAAG,QAAQ,EAAE,GAAG,QAAQ,EAAE,CAAC;KACrE;AACH;AAEA;SACgB,wBAAwB,GAAA;AACtC,IAAA,OAAO,MAAM,CAAC,oBAAoB,CAAC;AACrC;;ACtBA;;;;;;;;;;;;;;;;;;;;;;AAsBG;MA0CU,YAAY,CAAA;IACd,IAAI,GAAG,KAAK,CAA6B,SAAS;6EAAC;IACnD,UAA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EAAA,EAAA,EAAA,CAAA;;2FAAnB,mBAAmB,EAAA,UAAA,EAAA,CAAA;kBAN/B,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,uBAAuB;AACjC,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,QAAQ,EAAE,qBAAqB;oBAC/B,IAAI,EAAE,EAAE,WAAW,EAAE,SAAS,EAAE,mBAAmB,EAAE,EAAE,EAAE;AAC1D,iBAAA;;;ACvSD;;AAEG;;"}
@@ -148,7 +148,7 @@ class SlSection {
148
148
  });
149
149
  }
150
150
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlSection, deps: [], target: i0.ɵɵFactoryTarget.Component });
151
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.1.7", type: SlSection, isStandalone: true, selector: "[slSection]", inputs: { size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, level: { classPropertyName: "level", publicName: "level", isSignal: true, isRequired: false, transformFunction: null }, ground: { classPropertyName: "ground", publicName: "ground", isSignal: true, isRequired: false, transformFunction: null }, divider: { classPropertyName: "divider", publicName: "divider", isSignal: true, isRequired: false, transformFunction: null }, sticky: { classPropertyName: "sticky", publicName: "sticky", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-ui": "section", "data-ui-section": "", "data-part": "root", "data-part-root": "" }, properties: { "attr.id": "id()", "attr.aria-labelledby": "hasHeading() ? headingId() : null", "attr.data-size": "resolvedSize()", "attr.data-level": "resolvedLevel()", "attr.data-ground": "resolvedGround()", "attr.data-divider": "resolvedDivider() ? '' : null", "attr.data-sticky": "resolvedSticky() ? '' : null" } }, exportAs: ["slSection"], ngImport: i0, template: '<ng-content />', isInline: true, styles: ["@layer slotted.components{[data-ui-section]{--_gap: var(--slotted-section-gap, var(--slotted-space-5, .75rem));--_text: var(--slotted-text, CanvasText);--_muted: var(--slotted-text-muted, GrayText);--_rule: var(--slotted-section-border, var(--slotted-border-subtle, ButtonBorder));--_heading-size: var(--slotted-section-heading-size-md, var(--slotted-font-size-xs, .75rem));--_heading-line-height: var(--slotted-line-height-xs, 1.4);--_subheading-size: var( --slotted-section-subheading-size-md, var(--slotted-font-size-md, .875rem) );--_subheading-line-height: var(--slotted-line-height-md, 1.5);--_ground: var(--slotted-page-ground, var(--slotted-surface, Canvas));color:var(--_text);display:flex;flex-direction:column;font-family:var(--slotted-font-family-sans, ui-sans-serif, system-ui, sans-serif);gap:var(--_gap);min-inline-size:0;scroll-margin-block-start:var(--slotted-page-sticky-top, 0px)}[data-ui-section][data-size=sm]{--_heading-size: var(--slotted-section-heading-size-sm, var(--slotted-font-size-xs, .75rem));--_heading-line-height: var(--slotted-line-height-xs, 1.4);--_subheading-size: var( --slotted-section-subheading-size-sm, var(--slotted-font-size-sm, .8125rem) );--_subheading-line-height: var(--slotted-line-height-sm, 1.45)}[data-ui-section][data-size=lg]{--_heading-size: var(--slotted-section-heading-size-lg, var(--slotted-font-size-sm, .8125rem));--_heading-line-height: var(--slotted-line-height-sm, 1.45);--_subheading-size: var( --slotted-section-subheading-size-lg, var(--slotted-font-size-lg, 1rem) );--_subheading-line-height: var(--slotted-line-height-lg, 1.5)}:is([data-ui-container],[data-part-body])>[data-ui-section]+[data-ui-section]{margin-block-start:var(--slotted-section-spacing, var(--slotted-space-9, 2rem))}[data-ui-section]>[data-part-body]>[data-ui-section]:not(:first-child){margin-block-start:var(--slotted-section-subsection-spacing, var(--slotted-space-7, 1.25rem))}[data-ui-section][data-ground=surface]{--_ground: var(--slotted-section-surface, var(--slotted-surface-raised, Canvas));--slotted-ground: var(--_ground);background-color:var(--_ground);border:var(--slotted-border-width-thin, 1px) solid var(--_rule);border-radius:var(--slotted-section-radius, var(--slotted-radius-lg, 8px));padding:var(--slotted-section-inset, var(--slotted-space-6, 1rem))}[data-ui-section]>[data-part-header]{align-items:baseline;container-type:inline-size;display:grid;grid-template-columns:minmax(0,1fr);min-inline-size:0}[data-ui-section][data-divider]>[data-part-header]{border-block-end:var(--slotted-border-width-thin, 1px) solid var(--_rule);padding-block-end:var(--slotted-space-4, .5rem)}[data-ui-section][data-ground=surface][data-divider]>[data-part-header]{margin-inline:calc(-1 * var(--slotted-section-inset, var(--slotted-space-6, 1rem)));padding-inline:var(--slotted-section-inset, var(--slotted-space-6, 1rem))}[data-ui-section][data-sticky]>[data-part-header]{background-color:var(--slotted-section-header-background, var(--_ground));inset-block-start:var(--slotted-page-sticky-top, 0px);margin-block-start:calc(-1 * var(--slotted-space-4, .5rem));padding-block-start:var(--slotted-space-4, .5rem);position:sticky;z-index:var(--slotted-z-index-sticky, 100)}[data-ui-section][data-sticky]{--_above: var(--slotted-page-sticky-top, 0px)}[data-ui-section][data-sticky]>[data-part-body]{--slotted-page-sticky-top: calc(var(--_above) + var(--slotted-section-header-size, 0px));--slotted-table-sticky-offset: var(--slotted-page-sticky-top)}[data-ui-section]>[data-part-header]>[data-part-title]{align-items:baseline;display:grid;grid-column:1;grid-row:1 / span 3;grid-template-columns:minmax(min-content,max-content) 1fr;grid-template-rows:subgrid;min-inline-size:0}[data-ui-section]>[data-part-header]>[data-part-title]>[data-part-eyebrow]{color:var(--_muted);font-size:var(--slotted-font-size-xs, .75rem);grid-column:1 / -1;grid-row:1;margin-block-end:var(--slotted-space-1, .125rem);font-weight:var(--slotted-font-weight-semibold, 600);letter-spacing:.06em;line-height:var(--slotted-line-height-xs, 1.4);text-transform:uppercase}[data-ui-section]>[data-part-header]>[data-part-title]>[data-part-heading]{color:var(--_text);font-family:var( --slotted-font-family-heading, var(--slotted-font-family-sans, ui-sans-serif, system-ui, sans-serif) );font-size:var(--_heading-size);font-weight:var(--slotted-font-weight-semibold, 600);letter-spacing:.08em;line-height:var(--_heading-line-height);text-transform:uppercase;grid-column:1;grid-row:2;margin:0;min-inline-size:0;overflow-wrap:break-word;text-wrap:pretty}[data-ui-section] [data-ui-section]>[data-part-header]>[data-part-title]>[data-part-heading]{color:var(--_muted);font-size:var(--_subheading-size);letter-spacing:normal;line-height:var(--_subheading-line-height);text-transform:none}[data-ui-section]>[data-part-header]>[data-part-title]>[data-part-tags]{align-items:baseline;display:flex;flex-wrap:wrap;gap:var(--slotted-space-3, .375rem);grid-column:2;grid-row:2;justify-self:start;margin-inline-start:var(--slotted-space-4, .5rem)}[data-ui-section]>[data-part-header]>[data-part-title]>[data-part-tags]:empty{display:none}[data-ui-section]>[data-part-header]>[data-part-title]>[data-part-description]{color:var(--_muted);font-size:var(--slotted-font-size-sm, .8125rem);grid-column:1 / -1;grid-row:3;line-height:var(--slotted-line-height-sm, 1.45);margin:var(--slotted-space-1, .125rem) 0 0;max-inline-size:var(--slotted-section-description-measure, 70ch);text-wrap:pretty}[data-ui-section]>[data-part-header]>[data-part-actions]{--slotted-link-font-size: var(--slotted-font-size-sm, .8125rem);align-items:center;display:flex;gap:var(--slotted-control-gap-md, 8px);grid-column:2;grid-row:2;margin-inline-start:var(--slotted-space-6, 1rem)}[data-ui-section]>[data-part-header]>[data-part-actions]:empty{display:none}@container (inline-size < 20rem){[data-ui-section]>[data-part-header]>[data-part-actions]{grid-column:1 / -1;grid-row:4;justify-self:end;margin:var(--slotted-space-3, .375rem) 0 0}}[data-ui-section]>[data-part-body]{min-inline-size:0}}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
151
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.1.7", type: SlSection, isStandalone: true, selector: "[slSection]", inputs: { size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, level: { classPropertyName: "level", publicName: "level", isSignal: true, isRequired: false, transformFunction: null }, ground: { classPropertyName: "ground", publicName: "ground", isSignal: true, isRequired: false, transformFunction: null }, divider: { classPropertyName: "divider", publicName: "divider", isSignal: true, isRequired: false, transformFunction: null }, sticky: { classPropertyName: "sticky", publicName: "sticky", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-ui": "section", "data-ui-section": "", "data-part": "root", "data-part-root": "" }, properties: { "attr.id": "id()", "attr.aria-labelledby": "hasHeading() ? headingId() : null", "attr.data-size": "resolvedSize()", "attr.data-level": "resolvedLevel()", "attr.data-ground": "resolvedGround()", "attr.data-divider": "resolvedDivider() ? '' : null", "attr.data-sticky": "resolvedSticky() ? '' : null" } }, exportAs: ["slSection"], ngImport: i0, template: '<ng-content />', isInline: true, styles: ["@layer slotted.components{[data-ui-section]{--_gap: var(--slotted-section-gap, var(--slotted-space-5, .75rem));--_text: var(--slotted-text, CanvasText);--_muted: var(--slotted-text-muted, GrayText);--_rule: var(--slotted-section-border, var(--slotted-border-subtle, ButtonBorder));--_heading-size: var(--slotted-section-heading-size-md, var(--slotted-font-size-xs, .75rem));--_heading-line-height: var(--slotted-line-height-xs, 1.4);--_subheading-size: var( --slotted-section-subheading-size-md, var(--slotted-font-size-md, .875rem) );--_subheading-line-height: var(--slotted-line-height-md, 1.5);--_ground: var(--slotted-page-ground, var(--slotted-surface, Canvas));color:var(--_text);display:flex;flex-direction:column;font-family:var(--slotted-font-family-sans, ui-sans-serif, system-ui, sans-serif);gap:var(--_gap);min-inline-size:0;scroll-margin-block-start:var(--slotted-page-sticky-top, 0px)}[data-ui-section][data-size=sm]{--_heading-size: var(--slotted-section-heading-size-sm, var(--slotted-font-size-xs, .75rem));--_heading-line-height: var(--slotted-line-height-xs, 1.4);--_subheading-size: var( --slotted-section-subheading-size-sm, var(--slotted-font-size-sm, .8125rem) );--_subheading-line-height: var(--slotted-line-height-sm, 1.45)}[data-ui-section][data-size=lg]{--_heading-size: var(--slotted-section-heading-size-lg, var(--slotted-font-size-sm, .8125rem));--_heading-line-height: var(--slotted-line-height-sm, 1.45);--_subheading-size: var( --slotted-section-subheading-size-lg, var(--slotted-font-size-lg, 1rem) );--_subheading-line-height: var(--slotted-line-height-lg, 1.5)}:is([data-ui-container],[data-part-body])>[data-ui-section]+[data-ui-section]{margin-block-start:var(--slotted-section-spacing, var(--slotted-space-9, 2rem))}[data-ui-section]>[data-part-body]>[data-ui-section]:not(:first-child){margin-block-start:var(--slotted-section-subsection-spacing, var(--slotted-space-7, 1.25rem))}[data-ui-section][data-ground=surface]{--_ground: var(--slotted-section-surface, var(--slotted-surface-raised, Canvas));--slotted-ground: var(--_ground);background-color:var(--_ground);border:var(--slotted-border-width-thin, 1px) solid var(--_rule);border-radius:var(--slotted-section-radius, var(--slotted-radius-lg, 8px));padding:var(--slotted-section-inset, var(--slotted-space-6, 1rem))}[data-ui-section]>[data-part-header]{align-items:baseline;container-type:inline-size;display:grid;grid-template-columns:minmax(0,1fr);min-inline-size:0}[data-ui-section][data-divider]>[data-part-header]{border-block-end:var(--slotted-border-width-thin, 1px) solid var(--_rule);padding-block-end:var(--slotted-space-4, .5rem)}[data-ui-section][data-ground=surface][data-divider]>[data-part-header]{margin-inline:calc(-1 * var(--slotted-section-inset, var(--slotted-space-6, 1rem)));padding-inline:var(--slotted-section-inset, var(--slotted-space-6, 1rem))}[data-ui-section][data-sticky]>[data-part-header]{background-color:var(--slotted-section-header-background, var(--_ground));inset-block-start:var(--slotted-page-sticky-top, 0px);margin-block-start:calc(-1 * var(--slotted-space-4, .5rem));padding-block-start:var(--slotted-space-4, .5rem);position:sticky;z-index:var(--slotted-z-index-sticky, 100)}[data-ui-section][data-sticky]{--_above: var(--slotted-page-sticky-top, 0px)}[data-ui-section][data-sticky]>[data-part-body]{--slotted-page-sticky-top: calc(var(--_above) + var(--slotted-section-header-size, 0px));--slotted-table-sticky-offset: var(--slotted-page-sticky-top)}[data-ui-section]>[data-part-header]>[data-part-title]{align-items:baseline;display:grid;grid-column:1;grid-row:1 / span 3;grid-template-columns:minmax(min-content,max-content) 1fr;grid-template-rows:subgrid;min-inline-size:0}[data-ui-section]>[data-part-header]>[data-part-title]>[data-part-eyebrow]{color:var(--_muted);font-size:var(--slotted-font-size-xs, .75rem);grid-column:1 / -1;grid-row:1;margin-block-end:var(--slotted-space-1, .125rem);font-weight:var(--slotted-font-weight-semibold, 600);letter-spacing:.06em;line-height:var(--slotted-line-height-xs, 1.4);text-transform:uppercase}[data-ui-section]>[data-part-header]>[data-part-title]>[data-part-heading]{color:var(--_text);font-family:var( --slotted-font-family-heading, var(--slotted-font-family-sans, ui-sans-serif, system-ui, sans-serif) );font-size:var(--_heading-size);font-weight:var(--slotted-font-weight-semibold, 600);letter-spacing:.08em;line-height:var(--_heading-line-height);text-transform:uppercase;grid-column:1;grid-row:2;margin:0;min-inline-size:0;overflow-wrap:break-word;text-wrap:pretty}[data-ui-section] [data-ui-section]>[data-part-header]>[data-part-title]>[data-part-heading]{color:var(--_muted);font-size:var(--_subheading-size);letter-spacing:normal;line-height:var(--_subheading-line-height);text-transform:none}[data-ui-section]>[data-part-header]>[data-part-title]>[data-part-tags]{align-items:baseline;display:flex;flex-wrap:wrap;gap:var(--slotted-space-3, .375rem);grid-column:2;grid-row:2;justify-self:start;margin-inline-start:var(--slotted-space-4, .5rem)}[data-ui-section]>[data-part-header]>[data-part-title]>[data-part-tags]:empty{display:none}[data-ui-section]>[data-part-header]>[data-part-title]>[data-part-description]{color:var(--_muted);font-size:var(--slotted-font-size-sm, .8125rem);grid-column:1 / -1;grid-row:3;line-height:var(--slotted-line-height-sm, 1.45);margin:var(--slotted-space-1, .125rem) 0 0;max-inline-size:var(--slotted-section-description-measure, 70ch);text-wrap:pretty}[data-ui-section]>[data-part-header]>[data-part-actions]{--slotted-link-font-size: var(--slotted-font-size-sm, .8125rem);align-items:center;display:flex;gap:var(--slotted-action-gap, 8px);grid-column:2;grid-row:2;margin-inline-start:var(--slotted-space-6, 1rem)}[data-ui-section]>[data-part-header]>[data-part-actions]:empty{display:none}@container (inline-size < 20rem){[data-ui-section]>[data-part-header]>[data-part-actions]{grid-column:1 / -1;grid-row:4;justify-self:end;margin:var(--slotted-space-3, .375rem) 0 0}}[data-ui-section]>[data-part-body]{min-inline-size:0}}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
152
152
  }
153
153
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlSection, decorators: [{
154
154
  type: Component,
@@ -164,7 +164,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImpor
164
164
  '[attr.data-ground]': 'resolvedGround()',
165
165
  '[attr.data-divider]': "resolvedDivider() ? '' : null",
166
166
  '[attr.data-sticky]': "resolvedSticky() ? '' : null",
167
- }, styles: ["@layer slotted.components{[data-ui-section]{--_gap: var(--slotted-section-gap, var(--slotted-space-5, .75rem));--_text: var(--slotted-text, CanvasText);--_muted: var(--slotted-text-muted, GrayText);--_rule: var(--slotted-section-border, var(--slotted-border-subtle, ButtonBorder));--_heading-size: var(--slotted-section-heading-size-md, var(--slotted-font-size-xs, .75rem));--_heading-line-height: var(--slotted-line-height-xs, 1.4);--_subheading-size: var( --slotted-section-subheading-size-md, var(--slotted-font-size-md, .875rem) );--_subheading-line-height: var(--slotted-line-height-md, 1.5);--_ground: var(--slotted-page-ground, var(--slotted-surface, Canvas));color:var(--_text);display:flex;flex-direction:column;font-family:var(--slotted-font-family-sans, ui-sans-serif, system-ui, sans-serif);gap:var(--_gap);min-inline-size:0;scroll-margin-block-start:var(--slotted-page-sticky-top, 0px)}[data-ui-section][data-size=sm]{--_heading-size: var(--slotted-section-heading-size-sm, var(--slotted-font-size-xs, .75rem));--_heading-line-height: var(--slotted-line-height-xs, 1.4);--_subheading-size: var( --slotted-section-subheading-size-sm, var(--slotted-font-size-sm, .8125rem) );--_subheading-line-height: var(--slotted-line-height-sm, 1.45)}[data-ui-section][data-size=lg]{--_heading-size: var(--slotted-section-heading-size-lg, var(--slotted-font-size-sm, .8125rem));--_heading-line-height: var(--slotted-line-height-sm, 1.45);--_subheading-size: var( --slotted-section-subheading-size-lg, var(--slotted-font-size-lg, 1rem) );--_subheading-line-height: var(--slotted-line-height-lg, 1.5)}:is([data-ui-container],[data-part-body])>[data-ui-section]+[data-ui-section]{margin-block-start:var(--slotted-section-spacing, var(--slotted-space-9, 2rem))}[data-ui-section]>[data-part-body]>[data-ui-section]:not(:first-child){margin-block-start:var(--slotted-section-subsection-spacing, var(--slotted-space-7, 1.25rem))}[data-ui-section][data-ground=surface]{--_ground: var(--slotted-section-surface, var(--slotted-surface-raised, Canvas));--slotted-ground: var(--_ground);background-color:var(--_ground);border:var(--slotted-border-width-thin, 1px) solid var(--_rule);border-radius:var(--slotted-section-radius, var(--slotted-radius-lg, 8px));padding:var(--slotted-section-inset, var(--slotted-space-6, 1rem))}[data-ui-section]>[data-part-header]{align-items:baseline;container-type:inline-size;display:grid;grid-template-columns:minmax(0,1fr);min-inline-size:0}[data-ui-section][data-divider]>[data-part-header]{border-block-end:var(--slotted-border-width-thin, 1px) solid var(--_rule);padding-block-end:var(--slotted-space-4, .5rem)}[data-ui-section][data-ground=surface][data-divider]>[data-part-header]{margin-inline:calc(-1 * var(--slotted-section-inset, var(--slotted-space-6, 1rem)));padding-inline:var(--slotted-section-inset, var(--slotted-space-6, 1rem))}[data-ui-section][data-sticky]>[data-part-header]{background-color:var(--slotted-section-header-background, var(--_ground));inset-block-start:var(--slotted-page-sticky-top, 0px);margin-block-start:calc(-1 * var(--slotted-space-4, .5rem));padding-block-start:var(--slotted-space-4, .5rem);position:sticky;z-index:var(--slotted-z-index-sticky, 100)}[data-ui-section][data-sticky]{--_above: var(--slotted-page-sticky-top, 0px)}[data-ui-section][data-sticky]>[data-part-body]{--slotted-page-sticky-top: calc(var(--_above) + var(--slotted-section-header-size, 0px));--slotted-table-sticky-offset: var(--slotted-page-sticky-top)}[data-ui-section]>[data-part-header]>[data-part-title]{align-items:baseline;display:grid;grid-column:1;grid-row:1 / span 3;grid-template-columns:minmax(min-content,max-content) 1fr;grid-template-rows:subgrid;min-inline-size:0}[data-ui-section]>[data-part-header]>[data-part-title]>[data-part-eyebrow]{color:var(--_muted);font-size:var(--slotted-font-size-xs, .75rem);grid-column:1 / -1;grid-row:1;margin-block-end:var(--slotted-space-1, .125rem);font-weight:var(--slotted-font-weight-semibold, 600);letter-spacing:.06em;line-height:var(--slotted-line-height-xs, 1.4);text-transform:uppercase}[data-ui-section]>[data-part-header]>[data-part-title]>[data-part-heading]{color:var(--_text);font-family:var( --slotted-font-family-heading, var(--slotted-font-family-sans, ui-sans-serif, system-ui, sans-serif) );font-size:var(--_heading-size);font-weight:var(--slotted-font-weight-semibold, 600);letter-spacing:.08em;line-height:var(--_heading-line-height);text-transform:uppercase;grid-column:1;grid-row:2;margin:0;min-inline-size:0;overflow-wrap:break-word;text-wrap:pretty}[data-ui-section] [data-ui-section]>[data-part-header]>[data-part-title]>[data-part-heading]{color:var(--_muted);font-size:var(--_subheading-size);letter-spacing:normal;line-height:var(--_subheading-line-height);text-transform:none}[data-ui-section]>[data-part-header]>[data-part-title]>[data-part-tags]{align-items:baseline;display:flex;flex-wrap:wrap;gap:var(--slotted-space-3, .375rem);grid-column:2;grid-row:2;justify-self:start;margin-inline-start:var(--slotted-space-4, .5rem)}[data-ui-section]>[data-part-header]>[data-part-title]>[data-part-tags]:empty{display:none}[data-ui-section]>[data-part-header]>[data-part-title]>[data-part-description]{color:var(--_muted);font-size:var(--slotted-font-size-sm, .8125rem);grid-column:1 / -1;grid-row:3;line-height:var(--slotted-line-height-sm, 1.45);margin:var(--slotted-space-1, .125rem) 0 0;max-inline-size:var(--slotted-section-description-measure, 70ch);text-wrap:pretty}[data-ui-section]>[data-part-header]>[data-part-actions]{--slotted-link-font-size: var(--slotted-font-size-sm, .8125rem);align-items:center;display:flex;gap:var(--slotted-control-gap-md, 8px);grid-column:2;grid-row:2;margin-inline-start:var(--slotted-space-6, 1rem)}[data-ui-section]>[data-part-header]>[data-part-actions]:empty{display:none}@container (inline-size < 20rem){[data-ui-section]>[data-part-header]>[data-part-actions]{grid-column:1 / -1;grid-row:4;justify-self:end;margin:var(--slotted-space-3, .375rem) 0 0}}[data-ui-section]>[data-part-body]{min-inline-size:0}}\n"] }]
167
+ }, styles: ["@layer slotted.components{[data-ui-section]{--_gap: var(--slotted-section-gap, var(--slotted-space-5, .75rem));--_text: var(--slotted-text, CanvasText);--_muted: var(--slotted-text-muted, GrayText);--_rule: var(--slotted-section-border, var(--slotted-border-subtle, ButtonBorder));--_heading-size: var(--slotted-section-heading-size-md, var(--slotted-font-size-xs, .75rem));--_heading-line-height: var(--slotted-line-height-xs, 1.4);--_subheading-size: var( --slotted-section-subheading-size-md, var(--slotted-font-size-md, .875rem) );--_subheading-line-height: var(--slotted-line-height-md, 1.5);--_ground: var(--slotted-page-ground, var(--slotted-surface, Canvas));color:var(--_text);display:flex;flex-direction:column;font-family:var(--slotted-font-family-sans, ui-sans-serif, system-ui, sans-serif);gap:var(--_gap);min-inline-size:0;scroll-margin-block-start:var(--slotted-page-sticky-top, 0px)}[data-ui-section][data-size=sm]{--_heading-size: var(--slotted-section-heading-size-sm, var(--slotted-font-size-xs, .75rem));--_heading-line-height: var(--slotted-line-height-xs, 1.4);--_subheading-size: var( --slotted-section-subheading-size-sm, var(--slotted-font-size-sm, .8125rem) );--_subheading-line-height: var(--slotted-line-height-sm, 1.45)}[data-ui-section][data-size=lg]{--_heading-size: var(--slotted-section-heading-size-lg, var(--slotted-font-size-sm, .8125rem));--_heading-line-height: var(--slotted-line-height-sm, 1.45);--_subheading-size: var( --slotted-section-subheading-size-lg, var(--slotted-font-size-lg, 1rem) );--_subheading-line-height: var(--slotted-line-height-lg, 1.5)}:is([data-ui-container],[data-part-body])>[data-ui-section]+[data-ui-section]{margin-block-start:var(--slotted-section-spacing, var(--slotted-space-9, 2rem))}[data-ui-section]>[data-part-body]>[data-ui-section]:not(:first-child){margin-block-start:var(--slotted-section-subsection-spacing, var(--slotted-space-7, 1.25rem))}[data-ui-section][data-ground=surface]{--_ground: var(--slotted-section-surface, var(--slotted-surface-raised, Canvas));--slotted-ground: var(--_ground);background-color:var(--_ground);border:var(--slotted-border-width-thin, 1px) solid var(--_rule);border-radius:var(--slotted-section-radius, var(--slotted-radius-lg, 8px));padding:var(--slotted-section-inset, var(--slotted-space-6, 1rem))}[data-ui-section]>[data-part-header]{align-items:baseline;container-type:inline-size;display:grid;grid-template-columns:minmax(0,1fr);min-inline-size:0}[data-ui-section][data-divider]>[data-part-header]{border-block-end:var(--slotted-border-width-thin, 1px) solid var(--_rule);padding-block-end:var(--slotted-space-4, .5rem)}[data-ui-section][data-ground=surface][data-divider]>[data-part-header]{margin-inline:calc(-1 * var(--slotted-section-inset, var(--slotted-space-6, 1rem)));padding-inline:var(--slotted-section-inset, var(--slotted-space-6, 1rem))}[data-ui-section][data-sticky]>[data-part-header]{background-color:var(--slotted-section-header-background, var(--_ground));inset-block-start:var(--slotted-page-sticky-top, 0px);margin-block-start:calc(-1 * var(--slotted-space-4, .5rem));padding-block-start:var(--slotted-space-4, .5rem);position:sticky;z-index:var(--slotted-z-index-sticky, 100)}[data-ui-section][data-sticky]{--_above: var(--slotted-page-sticky-top, 0px)}[data-ui-section][data-sticky]>[data-part-body]{--slotted-page-sticky-top: calc(var(--_above) + var(--slotted-section-header-size, 0px));--slotted-table-sticky-offset: var(--slotted-page-sticky-top)}[data-ui-section]>[data-part-header]>[data-part-title]{align-items:baseline;display:grid;grid-column:1;grid-row:1 / span 3;grid-template-columns:minmax(min-content,max-content) 1fr;grid-template-rows:subgrid;min-inline-size:0}[data-ui-section]>[data-part-header]>[data-part-title]>[data-part-eyebrow]{color:var(--_muted);font-size:var(--slotted-font-size-xs, .75rem);grid-column:1 / -1;grid-row:1;margin-block-end:var(--slotted-space-1, .125rem);font-weight:var(--slotted-font-weight-semibold, 600);letter-spacing:.06em;line-height:var(--slotted-line-height-xs, 1.4);text-transform:uppercase}[data-ui-section]>[data-part-header]>[data-part-title]>[data-part-heading]{color:var(--_text);font-family:var( --slotted-font-family-heading, var(--slotted-font-family-sans, ui-sans-serif, system-ui, sans-serif) );font-size:var(--_heading-size);font-weight:var(--slotted-font-weight-semibold, 600);letter-spacing:.08em;line-height:var(--_heading-line-height);text-transform:uppercase;grid-column:1;grid-row:2;margin:0;min-inline-size:0;overflow-wrap:break-word;text-wrap:pretty}[data-ui-section] [data-ui-section]>[data-part-header]>[data-part-title]>[data-part-heading]{color:var(--_muted);font-size:var(--_subheading-size);letter-spacing:normal;line-height:var(--_subheading-line-height);text-transform:none}[data-ui-section]>[data-part-header]>[data-part-title]>[data-part-tags]{align-items:baseline;display:flex;flex-wrap:wrap;gap:var(--slotted-space-3, .375rem);grid-column:2;grid-row:2;justify-self:start;margin-inline-start:var(--slotted-space-4, .5rem)}[data-ui-section]>[data-part-header]>[data-part-title]>[data-part-tags]:empty{display:none}[data-ui-section]>[data-part-header]>[data-part-title]>[data-part-description]{color:var(--_muted);font-size:var(--slotted-font-size-sm, .8125rem);grid-column:1 / -1;grid-row:3;line-height:var(--slotted-line-height-sm, 1.45);margin:var(--slotted-space-1, .125rem) 0 0;max-inline-size:var(--slotted-section-description-measure, 70ch);text-wrap:pretty}[data-ui-section]>[data-part-header]>[data-part-actions]{--slotted-link-font-size: var(--slotted-font-size-sm, .8125rem);align-items:center;display:flex;gap:var(--slotted-action-gap, 8px);grid-column:2;grid-row:2;margin-inline-start:var(--slotted-space-6, 1rem)}[data-ui-section]>[data-part-header]>[data-part-actions]:empty{display:none}@container (inline-size < 20rem){[data-ui-section]>[data-part-header]>[data-part-actions]{grid-column:1 / -1;grid-row:4;justify-self:end;margin:var(--slotted-space-3, .375rem) 0 0}}[data-ui-section]>[data-part-body]{min-inline-size:0}}\n"] }]
168
168
  }], ctorParameters: () => [], propDecorators: { size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], level: [{ type: i0.Input, args: [{ isSignal: true, alias: "level", required: false }] }], ground: [{ type: i0.Input, args: [{ isSignal: true, alias: "ground", required: false }] }], divider: [{ type: i0.Input, args: [{ isSignal: true, alias: "divider", required: false }] }], sticky: [{ type: i0.Input, args: [{ isSignal: true, alias: "sticky", required: false }] }] } });
169
169
 
170
170
  const HEADINGS = new Set(['H1', 'H2', 'H3', 'H4', 'H5', 'H6']);
@@ -1 +1 @@
1
- {"version":3,"file":"slotted-angular-section.mjs","sources":["../../section/src/section-defaults.ts","../../section/src/section.ts","../../section/src/section-parts.ts","../../section/src/slotted-angular-section.ts"],"sourcesContent":["import { inject, Injectable, InjectionToken } from '@angular/core';\n\n/** The type step the heading sits at, independent of its rank. */\nexport type SectionSize = 'sm' | 'md' | 'lg';\n\n/** The rank of the heading. `auto` takes the one the outline gives. */\nexport type SectionLevel = 'auto' | '1' | '2' | '3' | '4' | '5' | '6';\n\n/** The ground: nothing, or a surface with an edge and a radius and no shadow. */\nexport type SectionGround = 'none' | 'surface';\n\nexport interface SectionDefaults {\n divider: boolean;\n ground: SectionGround;\n size: SectionSize;\n sticky: boolean;\n}\n\nconst FALLBACK: SectionDefaults = {\n divider: false,\n ground: 'none',\n size: 'md',\n sticky: false,\n};\n\nexport const SECTION_DEFAULTS = new InjectionToken<SectionDefaults>('slotted section defaults', {\n providedIn: 'root',\n factory: () => FALLBACK,\n});\n\n/**\n * An application decides once how its sections separate — a rule, a surface,\n * the step of their headings — rather than repeating the same inputs on every\n * one. A section that states any of them itself still wins.\n */\nexport function provideSectionDefaults(defaults: Partial<SectionDefaults>) {\n return {\n provide: SECTION_DEFAULTS,\n useFactory: (): SectionDefaults => ({ ...FALLBACK, ...defaults }),\n };\n}\n\n/** What a section renders as here, before it states anything of its own. */\nexport function injectSectionDefaults(): SectionDefaults {\n return inject(SECTION_DEFAULTS);\n}\n\n/** Application-scoped, for the reason `field` records: the server and the client sequences must match. */\n@Injectable({ providedIn: 'root' })\nexport class SlSectionIdFactory {\n private count = 0;\n\n next() {\n this.count += 1;\n return `slotted-section-${this.count}`;\n }\n}\n","import { SlHeadingLevel } from '@slotted/angular/typography';\nimport { observeStuck } from '@slotted/core/sticky-header';\nimport type { HeadingLevelValue } from '@slotted/angular/typography';\nimport {\n booleanAttribute,\n ChangeDetectionStrategy,\n Component,\n computed,\n effect,\n ElementRef,\n HostAttributeToken,\n inject,\n input,\n signal,\n ViewEncapsulation,\n} from '@angular/core';\n\nimport { injectSectionDefaults, SlSectionIdFactory } from './section-defaults';\nimport type { SectionGround, SectionLevel, SectionSize } from './section-defaults';\n\nexport type { SectionDefaults, SectionGround, SectionLevel, SectionSize } from './section-defaults';\n\n/**\n * One unit of content inside a page: a header — eyebrow, heading,\n * description, actions — and a body one outline step deeper.\n *\n * **The rank is the outline's.** `typography` owns it: the heading takes the\n * rank `slHeadingLevel` gives — `h2` directly in a page body, one deeper\n * inside another section's body — unless `level` says otherwise. The element\n * is the consumer's: `<h2 slSectionHeading>` is a native heading and the\n * directive adds nothing to it; `<div slSectionHeading>` gets `role=\"heading\"`\n * and the level the section resolved.\n *\n * **A region only when it has a name.** The root is `aria-labelledby` its\n * heading once one is rendered, which makes the `section` a region landmark.\n *\n * **The hooks anchor navigation needs.** The root carries an `id`, the\n * consumer's own or a generated one, and a scroll margin the height of the\n * page's fixed chrome, so a hash link lands under the header.\n */\n/** The measured height of a sticky section's header, written on the root. */\nexport const HEADER_SIZE_PROPERTY = '--slotted-section-header-size';\n\n@Component({\n selector: '[slSection]',\n standalone: true,\n exportAs: 'slSection',\n template: '<ng-content />',\n styleUrl: '../../../styles/src/section/section.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: {\n 'data-ui': 'section',\n 'data-ui-section': '',\n 'data-part': 'root',\n 'data-part-root': '',\n '[attr.id]': 'id()',\n '[attr.aria-labelledby]': 'hasHeading() ? headingId() : null',\n '[attr.data-size]': 'resolvedSize()',\n '[attr.data-level]': 'resolvedLevel()',\n '[attr.data-ground]': 'resolvedGround()',\n '[attr.data-divider]': \"resolvedDivider() ? '' : null\",\n '[attr.data-sticky]': \"resolvedSticky() ? '' : null\",\n },\n})\nexport class SlSection {\n readonly size = input<SectionSize | undefined>(undefined);\n /** Defaults to `auto`: the rank the outline gives. */\n readonly level = input<SectionLevel | undefined>(undefined);\n readonly ground = input<SectionGround | undefined>(undefined);\n readonly divider = input<boolean | undefined, boolean | string | undefined>(undefined, {\n transform: (state) => (state === undefined ? undefined : booleanAttribute(state)),\n });\n readonly sticky = input<boolean | undefined, boolean | string | undefined>(undefined, {\n transform: (state) => (state === undefined ? undefined : booleanAttribute(state)),\n });\n\n private readonly defaults = injectSectionDefaults();\n private readonly outline = inject(SlHeadingLevel, { optional: true });\n private readonly writtenId = inject(new HostAttributeToken('id'), { optional: true });\n private readonly generated = inject(SlSectionIdFactory).next();\n\n /** Whether a heading is rendered, which is what makes the section a region. */\n readonly hasHeading = signal(false);\n /** The header element, handed over by `slSectionHeader`, so a sticky header can be measured. */\n readonly header = signal<HTMLElement | null>(null);\n\n private readonly native: HTMLElement = inject(ElementRef).nativeElement;\n\n readonly id = computed(() => this.writtenId ?? this.generated);\n readonly headingId = computed(() => `${this.id()}-heading`);\n readonly resolvedSize = computed(() => this.size() ?? this.defaults.size);\n readonly resolvedGround = computed(() => this.ground() ?? this.defaults.ground);\n readonly resolvedDivider = computed(() => (this.divider() ?? this.defaults.divider) === true);\n readonly resolvedSticky = computed(() => (this.sticky() ?? this.defaults.sticky) === true);\n readonly resolvedLevel = computed<HeadingLevelValue>(() => {\n const level = this.level();\n if (level === undefined || level === 'auto') return this.outline?.level ?? 1;\n return Number(level) as HeadingLevelValue;\n });\n\n constructor() {\n /**\n * A sticky header is chrome for what is under it: its height, measured,\n * goes on the root as `--slotted-section-header-size`, and the stylesheet\n * republishes `--slotted-page-sticky-top` for the body as page plus\n * header, so a table's column header or a nested section stops under this\n * header. Written on the element, so a resize costs no change detection.\n */\n effect((onCleanup) => {\n const header = this.header();\n if (!this.resolvedSticky() || header === null) return;\n /* Rounded up: a fractional height rounded down leaves a hairline gap the rows show through. */\n const write = () =>\n this.native.style.setProperty(\n HEADER_SIZE_PROPERTY,\n `${Math.ceil(header.getBoundingClientRect().height || header.offsetHeight)}px`,\n );\n write();\n const sizes = typeof ResizeObserver === 'undefined' ? null : new ResizeObserver(write);\n sizes?.observe(header);\n onCleanup(() => {\n sizes?.disconnect();\n this.native.style.removeProperty(HEADER_SIZE_PROPERTY);\n });\n });\n\n /**\n * `data-stuck` on the header while content passes under it, so a theme\n * can paint the header's ground only then. Written on the element, so a\n * scroll costs no change detection.\n */\n effect((onCleanup) => {\n const header = this.header();\n if (!this.resolvedSticky() || header === null) return;\n const stop = observeStuck(header, (stuck) => {\n if (stuck) header.setAttribute('data-stuck', '');\n else header.removeAttribute('data-stuck');\n });\n onCleanup(() => {\n stop();\n header.removeAttribute('data-stuck');\n });\n });\n }\n}\n","import { SlHeadingLevel } from '@slotted/angular/typography';\nimport { computed, Directive, ElementRef, inject, isDevMode } from '@angular/core';\nimport type { OnDestroy, OnInit } from '@angular/core';\n\nimport { SlSection } from './section';\n\nconst HEADINGS = new Set(['H1', 'H2', 'H3', 'H4', 'H5', 'H6']);\n\n/**\n * The row above the body: the title column and the actions. It hands the\n * root its element, so a sticky header's height reaches the stylesheet.\n */\n@Directive({\n selector: '[slSectionHeader]',\n standalone: true,\n host: { 'data-part': 'header', 'data-part-header': '' },\n})\nexport class SlSectionHeader implements OnInit, OnDestroy {\n private readonly section = inject(SlSection);\n private readonly native: HTMLElement = inject(ElementRef).nativeElement;\n\n ngOnInit() {\n this.section.header.set(this.native);\n }\n\n ngOnDestroy() {\n if (this.section.header() === this.native) this.section.header.set(null);\n }\n}\n\n/** Eyebrow, heading, tags, description, in that order. */\n@Directive({\n selector: '[slSectionTitle]',\n standalone: true,\n host: { 'data-part': 'title', 'data-part-title': '' },\n})\nexport class SlSectionTitle {}\n\n/** A short overline above the heading — a count, a category. Structural, not status. */\n@Directive({\n selector: '[slSectionEyebrow]',\n standalone: true,\n host: { 'data-part': 'eyebrow', 'data-part-eyebrow': '' },\n})\nexport class SlSectionEyebrow {}\n\n/**\n * Badges or tags beside the heading — a count, a status — on its baseline.\n * Outside the heading, so they are not read into the region's name.\n */\n@Directive({\n selector: '[slSectionTags]',\n standalone: true,\n host: { 'data-part': 'tags', 'data-part-tags': '' },\n})\nexport class SlSectionTags {}\n\n/** A paragraph under the heading, in the muted text, with a measure. */\n@Directive({\n selector: '[slSectionDescription]',\n standalone: true,\n host: { 'data-part': 'description', 'data-part-description': '' },\n})\nexport class SlSectionDescription implements OnInit {\n private readonly native: HTMLElement = inject(ElementRef).nativeElement;\n\n ngOnInit() {\n if (isDevMode() && this.native.parentElement?.getAttribute('data-part') !== 'title') {\n console.warn(\n 'slSectionDescription is written outside slSectionTitle, so the stylesheet does not reach it and it renders unstyled. Move it inside slSectionTitle.',\n );\n }\n }\n}\n\n/** The end of the heading's row, on its baseline: a button, a toolbar, a link. */\n@Directive({\n selector: '[slSectionActions]',\n standalone: true,\n host: { 'data-part': 'actions', 'data-part-actions': '' },\n})\nexport class SlSectionActions {}\n\n/**\n * The heading, at the rank the section resolved. Rendering it is what makes\n * the section a region: the root names it through `aria-labelledby`. The\n * element is the consumer's own — a native heading gets nothing added, and\n * anything else gets `role=\"heading\"` and `aria-level`.\n */\n@Directive({\n selector: '[slSectionHeading]',\n standalone: true,\n exportAs: 'slSectionHeading',\n host: {\n 'data-part': 'heading',\n 'data-part-heading': '',\n '[attr.id]': 'section.headingId()',\n '[attr.role]': 'ariaRole()',\n '[attr.aria-level]': 'ariaLevel()',\n },\n})\nexport class SlSectionHeading implements OnInit, OnDestroy {\n protected readonly section = inject(SlSection);\n private readonly native: HTMLElement = inject(ElementRef).nativeElement;\n private readonly isNativeHeading = HEADINGS.has(this.native.tagName);\n\n protected readonly ariaRole = computed(() => (this.isNativeHeading ? null : 'heading'));\n protected readonly ariaLevel = computed(() =>\n this.isNativeHeading ? null : this.section.resolvedLevel(),\n );\n\n ngOnInit() {\n this.section.hasHeading.set(true);\n }\n\n ngOnDestroy() {\n this.section.hasHeading.set(false);\n }\n}\n\n/** The content, one outline step deeper: `slHeadingLevel` is a host directive. */\n@Directive({\n selector: '[slSectionBody]',\n standalone: true,\n hostDirectives: [SlHeadingLevel],\n host: { 'data-part': 'body', 'data-part-body': '' },\n})\nexport class SlSectionBody {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;AAkBA,MAAM,QAAQ,GAAoB;AAChC,IAAA,OAAO,EAAE,KAAK;AACd,IAAA,MAAM,EAAE,MAAM;AACd,IAAA,IAAI,EAAE,IAAI;AACV,IAAA,MAAM,EAAE,KAAK;CACd;MAEY,gBAAgB,GAAG,IAAI,cAAc,CAAkB,0BAA0B,EAAE;AAC9F,IAAA,UAAU,EAAE,MAAM;AAClB,IAAA,OAAO,EAAE,MAAM,QAAQ;AACxB,CAAA;AAED;;;;AAIG;AACG,SAAU,sBAAsB,CAAC,QAAkC,EAAA;IACvE,OAAO;AACL,QAAA,OAAO,EAAE,gBAAgB;AACzB,QAAA,UAAU,EAAE,OAAwB,EAAE,GAAG,QAAQ,EAAE,GAAG,QAAQ,EAAE,CAAC;KAClE;AACH;AAEA;SACgB,qBAAqB,GAAA;AACnC,IAAA,OAAO,MAAM,CAAC,gBAAgB,CAAC;AACjC;AAEA;MAEa,kBAAkB,CAAA;IACrB,KAAK,GAAG,CAAC;IAEjB,IAAI,GAAA;AACF,QAAA,IAAI,CAAC,KAAK,IAAI,CAAC;AACf,QAAA,OAAO,CAAA,gBAAA,EAAmB,IAAI,CAAC,KAAK,EAAE;IACxC;uGANW,kBAAkB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA;AAAlB,IAAA,OAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,kBAAkB,cADL,MAAM,EAAA,CAAA;;2FACnB,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAD9B,UAAU;mBAAC,EAAE,UAAU,E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AC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,oBAAoB;AAC9B,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,QAAQ,EAAE,kBAAkB;AAC5B,oBAAA,IAAI,EAAE;AACJ,wBAAA,WAAW,EAAE,SAAS;AACtB,wBAAA,mBAAmB,EAAE,EAAE;AACvB,wBAAA,WAAW,EAAE,qBAAqB;AAClC,wBAAA,aAAa,EAAE,YAAY;AAC3B,wBAAA,mBAAmB,EAAE,aAAa;AACnC,qBAAA;AACF,iBAAA;;AAoBD;MAOa,aAAa,CAAA;uGAAb,aAAa,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;2FAAb,aAAa,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,WAAA,EAAA,MAAA,EAAA,gBAAA,EAAA,EAAA,EAAA,EAAA,EAAA,cAAA,EAAA,CAAA,EAAA,SAAA,EAAA,EAAA,CAAA,cAAA,EAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;2FAAb,aAAa,EAAA,UAAA,EAAA,CAAA;kBANzB,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,iBAAiB;AAC3B,oBAAA,UAAU,EAAE,IAAI;oBAChB,cAAc,EAAE,CAAC,cAAc,CAAC;oBAChC,IAAI,EAAE,EAAE,WAAW,EAAE,MAAM,EAAE,gBAAgB,EAAE,EAAE,EAAE;AACpD,iBAAA;;;AC9HD;;AAEG;;"}
1
+ {"version":3,"file":"slotted-angular-section.mjs","sources":["../../section/src/section-defaults.ts","../../section/src/section.ts","../../section/src/section-parts.ts","../../section/src/slotted-angular-section.ts"],"sourcesContent":["import { inject, Injectable, InjectionToken } from '@angular/core';\n\n/** The type step the heading sits at, independent of its rank. */\nexport type SectionSize = 'sm' | 'md' | 'lg';\n\n/** The rank of the heading. `auto` takes the one the outline gives. */\nexport type SectionLevel = 'auto' | '1' | '2' | '3' | '4' | '5' | '6';\n\n/** The ground: nothing, or a surface with an edge and a radius and no shadow. */\nexport type SectionGround = 'none' | 'surface';\n\nexport interface SectionDefaults {\n divider: boolean;\n ground: SectionGround;\n size: SectionSize;\n sticky: boolean;\n}\n\nconst FALLBACK: SectionDefaults = {\n divider: false,\n ground: 'none',\n size: 'md',\n sticky: false,\n};\n\nexport const SECTION_DEFAULTS = new InjectionToken<SectionDefaults>('slotted section defaults', {\n providedIn: 'root',\n factory: () => FALLBACK,\n});\n\n/**\n * An application decides once how its sections separate — a rule, a surface,\n * the step of their headings — rather than repeating the same inputs on every\n * one. A section that states any of them itself still wins.\n */\nexport function provideSectionDefaults(defaults: Partial<SectionDefaults>) {\n return {\n provide: SECTION_DEFAULTS,\n useFactory: (): SectionDefaults => ({ ...FALLBACK, ...defaults }),\n };\n}\n\n/** What a section renders as here, before it states anything of its own. */\nexport function injectSectionDefaults(): SectionDefaults {\n return inject(SECTION_DEFAULTS);\n}\n\n/** Application-scoped, for the reason `field` records: the server and the client sequences must match. */\n@Injectable({ providedIn: 'root' })\nexport class SlSectionIdFactory {\n private count = 0;\n\n next() {\n this.count += 1;\n return `slotted-section-${this.count}`;\n }\n}\n","import { SlHeadingLevel } from '@slotted/angular/typography';\nimport { observeStuck } from '@slotted/core/sticky-header';\nimport type { HeadingLevelValue } from '@slotted/angular/typography';\nimport {\n booleanAttribute,\n ChangeDetectionStrategy,\n Component,\n computed,\n effect,\n ElementRef,\n HostAttributeToken,\n inject,\n input,\n signal,\n ViewEncapsulation,\n} from '@angular/core';\n\nimport { injectSectionDefaults, SlSectionIdFactory } from './section-defaults';\nimport type { SectionGround, SectionLevel, SectionSize } from './section-defaults';\n\nexport type { SectionDefaults, SectionGround, SectionLevel, SectionSize } from './section-defaults';\n\n/**\n * One unit of content inside a page: a header — eyebrow, heading,\n * description, actions — and a body one outline step deeper.\n *\n * **The rank is the outline's.** `typography` owns it: the heading takes the\n * rank `slHeadingLevel` gives — `h2` directly in a page body, one deeper\n * inside another section's body — unless `level` says otherwise. The element\n * is the consumer's: `<h2 slSectionHeading>` is a native heading and the\n * directive adds nothing to it; `<div slSectionHeading>` gets `role=\"heading\"`\n * and the level the section resolved.\n *\n * **A region only when it has a name.** The root is `aria-labelledby` its\n * heading once one is rendered, which makes the `section` a region landmark.\n *\n * **The hooks anchor navigation needs.** The root carries an `id`, the\n * consumer's own or a generated one, and a scroll margin the height of the\n * page's fixed chrome, so a hash link lands under the header.\n */\n/** The measured height of a sticky section's header, written on the root. */\nexport const HEADER_SIZE_PROPERTY = '--slotted-section-header-size';\n\n@Component({\n selector: '[slSection]',\n standalone: true,\n exportAs: 'slSection',\n template: '<ng-content />',\n styleUrl: '../../../styles/src/section/section.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: {\n 'data-ui': 'section',\n 'data-ui-section': '',\n 'data-part': 'root',\n 'data-part-root': '',\n '[attr.id]': 'id()',\n '[attr.aria-labelledby]': 'hasHeading() ? headingId() : null',\n '[attr.data-size]': 'resolvedSize()',\n '[attr.data-level]': 'resolvedLevel()',\n '[attr.data-ground]': 'resolvedGround()',\n '[attr.data-divider]': \"resolvedDivider() ? '' : null\",\n '[attr.data-sticky]': \"resolvedSticky() ? '' : null\",\n },\n})\nexport class SlSection {\n readonly size = input<SectionSize | undefined>(undefined);\n /** Defaults to `auto`: the rank the outline gives. */\n readonly level = input<SectionLevel | undefined>(undefined);\n readonly ground = input<SectionGround | undefined>(undefined);\n readonly divider = input<boolean | undefined, boolean | string | undefined>(undefined, {\n transform: (state) => (state === undefined ? undefined : booleanAttribute(state)),\n });\n readonly sticky = input<boolean | undefined, boolean | string | undefined>(undefined, {\n transform: (state) => (state === undefined ? undefined : booleanAttribute(state)),\n });\n\n private readonly defaults = injectSectionDefaults();\n private readonly outline = inject(SlHeadingLevel, { optional: true });\n private readonly writtenId = inject(new HostAttributeToken('id'), { optional: true });\n private readonly generated = inject(SlSectionIdFactory).next();\n\n /** Whether a heading is rendered, which is what makes the section a region. */\n readonly hasHeading = signal(false);\n /** The header element, handed over by `slSectionHeader`, so a sticky header can be measured. */\n readonly header = signal<HTMLElement | null>(null);\n\n private readonly native: HTMLElement = inject(ElementRef).nativeElement;\n\n readonly id = computed(() => this.writtenId ?? this.generated);\n readonly headingId = computed(() => `${this.id()}-heading`);\n readonly resolvedSize = computed(() => this.size() ?? this.defaults.size);\n readonly resolvedGround = computed(() => this.ground() ?? this.defaults.ground);\n readonly resolvedDivider = computed(() => (this.divider() ?? this.defaults.divider) === true);\n readonly resolvedSticky = computed(() => (this.sticky() ?? this.defaults.sticky) === true);\n readonly resolvedLevel = computed<HeadingLevelValue>(() => {\n const level = this.level();\n if (level === undefined || level === 'auto') return this.outline?.level ?? 1;\n return Number(level) as HeadingLevelValue;\n });\n\n constructor() {\n /**\n * A sticky header is chrome for what is under it: its height, measured,\n * goes on the root as `--slotted-section-header-size`, and the stylesheet\n * republishes `--slotted-page-sticky-top` for the body as page plus\n * header, so a table's column header or a nested section stops under this\n * header. Written on the element, so a resize costs no change detection.\n */\n effect((onCleanup) => {\n const header = this.header();\n if (!this.resolvedSticky() || header === null) return;\n /* Rounded up: a fractional height rounded down leaves a hairline gap the rows show through. */\n const write = () =>\n this.native.style.setProperty(\n HEADER_SIZE_PROPERTY,\n `${Math.ceil(header.getBoundingClientRect().height || header.offsetHeight)}px`,\n );\n write();\n const sizes = typeof ResizeObserver === 'undefined' ? null : new ResizeObserver(write);\n sizes?.observe(header);\n onCleanup(() => {\n sizes?.disconnect();\n this.native.style.removeProperty(HEADER_SIZE_PROPERTY);\n });\n });\n\n /**\n * `data-stuck` on the header while content passes under it, so a theme\n * can paint the header's ground only then. Written on the element, so a\n * scroll costs no change detection.\n */\n effect((onCleanup) => {\n const header = this.header();\n if (!this.resolvedSticky() || header === null) return;\n const stop = observeStuck(header, (stuck) => {\n if (stuck) header.setAttribute('data-stuck', '');\n else header.removeAttribute('data-stuck');\n });\n onCleanup(() => {\n stop();\n header.removeAttribute('data-stuck');\n });\n });\n }\n}\n","import { SlHeadingLevel } from '@slotted/angular/typography';\nimport { computed, Directive, ElementRef, inject, isDevMode } from '@angular/core';\nimport type { OnDestroy, OnInit } from '@angular/core';\n\nimport { SlSection } from './section';\n\nconst HEADINGS = new Set(['H1', 'H2', 'H3', 'H4', 'H5', 'H6']);\n\n/**\n * The row above the body: the title column and the actions. It hands the\n * root its element, so a sticky header's height reaches the stylesheet.\n */\n@Directive({\n selector: '[slSectionHeader]',\n standalone: true,\n host: { 'data-part': 'header', 'data-part-header': '' },\n})\nexport class SlSectionHeader implements OnInit, OnDestroy {\n private readonly section = inject(SlSection);\n private readonly native: HTMLElement = inject(ElementRef).nativeElement;\n\n ngOnInit() {\n this.section.header.set(this.native);\n }\n\n ngOnDestroy() {\n if (this.section.header() === this.native) this.section.header.set(null);\n }\n}\n\n/** Eyebrow, heading, tags, description, in that order. */\n@Directive({\n selector: '[slSectionTitle]',\n standalone: true,\n host: { 'data-part': 'title', 'data-part-title': '' },\n})\nexport class SlSectionTitle {}\n\n/** A short overline above the heading — a count, a category. Structural, not status. */\n@Directive({\n selector: '[slSectionEyebrow]',\n standalone: true,\n host: { 'data-part': 'eyebrow', 'data-part-eyebrow': '' },\n})\nexport class SlSectionEyebrow {}\n\n/**\n * Badges or tags beside the heading — a count, a status — on its baseline.\n * Outside the heading, so they are not read into the region's name.\n */\n@Directive({\n selector: '[slSectionTags]',\n standalone: true,\n host: { 'data-part': 'tags', 'data-part-tags': '' },\n})\nexport class SlSectionTags {}\n\n/** A paragraph under the heading, in the muted text, with a measure. */\n@Directive({\n selector: '[slSectionDescription]',\n standalone: true,\n host: { 'data-part': 'description', 'data-part-description': '' },\n})\nexport class SlSectionDescription implements OnInit {\n private readonly native: HTMLElement = inject(ElementRef).nativeElement;\n\n ngOnInit() {\n if (isDevMode() && this.native.parentElement?.getAttribute('data-part') !== 'title') {\n console.warn(\n 'slSectionDescription is written outside slSectionTitle, so the stylesheet does not reach it and it renders unstyled. Move it inside slSectionTitle.',\n );\n }\n }\n}\n\n/** The end of the heading's row, on its baseline: a button, a toolbar, a link. */\n@Directive({\n selector: '[slSectionActions]',\n standalone: true,\n host: { 'data-part': 'actions', 'data-part-actions': '' },\n})\nexport class SlSectionActions {}\n\n/**\n * The heading, at the rank the section resolved. Rendering it is what makes\n * the section a region: the root names it through `aria-labelledby`. The\n * element is the consumer's own — a native heading gets nothing added, and\n * anything else gets `role=\"heading\"` and `aria-level`.\n */\n@Directive({\n selector: '[slSectionHeading]',\n standalone: true,\n exportAs: 'slSectionHeading',\n host: {\n 'data-part': 'heading',\n 'data-part-heading': '',\n '[attr.id]': 'section.headingId()',\n '[attr.role]': 'ariaRole()',\n '[attr.aria-level]': 'ariaLevel()',\n },\n})\nexport class SlSectionHeading implements OnInit, OnDestroy {\n protected readonly section = inject(SlSection);\n private readonly native: HTMLElement = inject(ElementRef).nativeElement;\n private readonly isNativeHeading = HEADINGS.has(this.native.tagName);\n\n protected readonly ariaRole = computed(() => (this.isNativeHeading ? null : 'heading'));\n protected readonly ariaLevel = computed(() =>\n this.isNativeHeading ? null : this.section.resolvedLevel(),\n );\n\n ngOnInit() {\n this.section.hasHeading.set(true);\n }\n\n ngOnDestroy() {\n this.section.hasHeading.set(false);\n }\n}\n\n/** The content, one outline step deeper: `slHeadingLevel` is a host directive. */\n@Directive({\n selector: '[slSectionBody]',\n standalone: true,\n hostDirectives: [SlHeadingLevel],\n host: { 'data-part': 'body', 'data-part-body': '' },\n})\nexport class SlSectionBody {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;AAkBA,MAAM,QAAQ,GAAoB;AAChC,IAAA,OAAO,EAAE,KAAK;AACd,IAAA,MAAM,EAAE,MAAM;AACd,IAAA,IAAI,EAAE,IAAI;AACV,IAAA,MAAM,EAAE,K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