@slotted/angular 0.1.0-beta.35 → 0.1.0-beta.36

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 (73) hide show
  1. package/docs/button.json +10 -7
  2. package/docs/button.md +6 -6
  3. package/docs/command-palette.json +2 -1
  4. package/docs/command-palette.md +1 -1
  5. package/docs/dashboard-grid.json +2 -1
  6. package/docs/dashboard-grid.md +1 -1
  7. package/docs/entity-picker.json +2 -1
  8. package/docs/entity-picker.md +1 -1
  9. package/docs/field-group.json +1 -1
  10. package/docs/field-group.md +1 -1
  11. package/docs/guidelines/index.md +2 -0
  12. package/docs/guidelines/own-elements.md +20 -0
  13. package/docs/index.md +1 -1
  14. package/docs/list.json +2 -1
  15. package/docs/list.md +2 -2
  16. package/docs/page.json +1 -1
  17. package/docs/page.md +1 -1
  18. package/docs/progress-indicator.json +1 -39
  19. package/docs/progress-indicator.md +1 -6
  20. package/docs/radio-group.json +1 -18
  21. package/docs/radio-group.md +1 -3
  22. package/docs/skills/build-own-element/SKILL.md +42 -2
  23. package/docs/sparkline.json +1 -416
  24. package/docs/sparkline.md +2 -186
  25. package/docs/tokens.md +12 -0
  26. package/fesm2022/slotted-angular-button.mjs +48 -40
  27. package/fesm2022/slotted-angular-button.mjs.map +1 -1
  28. package/fesm2022/slotted-angular-chart.mjs +2 -2
  29. package/fesm2022/slotted-angular-chart.mjs.map +1 -1
  30. package/fesm2022/slotted-angular-command-palette.mjs +2 -2
  31. package/fesm2022/slotted-angular-command-palette.mjs.map +1 -1
  32. package/fesm2022/slotted-angular-dashboard-grid.mjs +2 -2
  33. package/fesm2022/slotted-angular-dashboard-grid.mjs.map +1 -1
  34. package/fesm2022/slotted-angular-data-list.mjs +2 -2
  35. package/fesm2022/slotted-angular-data-list.mjs.map +1 -1
  36. package/fesm2022/slotted-angular-entity-picker.mjs +2 -2
  37. package/fesm2022/slotted-angular-entity-picker.mjs.map +1 -1
  38. package/fesm2022/slotted-angular-field-group.mjs +2 -2
  39. package/fesm2022/slotted-angular-field-group.mjs.map +1 -1
  40. package/fesm2022/slotted-angular-list-item.mjs +2 -2
  41. package/fesm2022/slotted-angular-list-item.mjs.map +1 -1
  42. package/fesm2022/slotted-angular-list.mjs +3 -3
  43. package/fesm2022/slotted-angular-list.mjs.map +1 -1
  44. package/fesm2022/slotted-angular-loading-overlay.mjs +2 -2
  45. package/fesm2022/slotted-angular-loading-overlay.mjs.map +1 -1
  46. package/fesm2022/slotted-angular-page.mjs +6 -2
  47. package/fesm2022/slotted-angular-page.mjs.map +1 -1
  48. package/fesm2022/slotted-angular-progress-indicator.mjs +7 -106
  49. package/fesm2022/slotted-angular-progress-indicator.mjs.map +1 -1
  50. package/fesm2022/slotted-angular-radio-group.mjs +12 -45
  51. package/fesm2022/slotted-angular-radio-group.mjs.map +1 -1
  52. package/fesm2022/slotted-angular-sparkline.mjs +4 -295
  53. package/fesm2022/slotted-angular-sparkline.mjs.map +1 -1
  54. package/fesm2022/slotted-angular-split-button.mjs +4 -4
  55. package/fesm2022/slotted-angular-split-button.mjs.map +1 -1
  56. package/fesm2022/slotted-angular-table.mjs +2 -2
  57. package/fesm2022/slotted-angular-table.mjs.map +1 -1
  58. package/fesm2022/slotted-angular-tooltip.mjs +2 -2
  59. package/fesm2022/slotted-angular-tooltip.mjs.map +1 -1
  60. package/fesm2022/slotted-angular-upload.mjs +2 -2
  61. package/fesm2022/slotted-angular-upload.mjs.map +1 -1
  62. package/package.json +3 -3
  63. package/types/slotted-angular-button.d.ts +20 -10
  64. package/types/slotted-angular-button.d.ts.map +1 -1
  65. package/types/slotted-angular-list.d.ts +6 -4
  66. package/types/slotted-angular-list.d.ts.map +1 -1
  67. package/types/slotted-angular-page.d.ts.map +1 -1
  68. package/types/slotted-angular-progress-indicator.d.ts +2 -46
  69. package/types/slotted-angular-progress-indicator.d.ts.map +1 -1
  70. package/types/slotted-angular-radio-group.d.ts +4 -22
  71. package/types/slotted-angular-radio-group.d.ts.map +1 -1
  72. package/types/slotted-angular-sparkline.d.ts +4 -86
  73. package/types/slotted-angular-sparkline.d.ts.map +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"slotted-angular-loading-overlay.mjs","sources":["../../loading-overlay/src/loading-overlay-defaults.ts","../../loading-overlay/src/loading-overlay.constants.ts","../../loading-overlay/src/loading-overlay.ts","../../loading-overlay/src/slotted-angular-loading-overlay.ts"],"sourcesContent":["import { inject, InjectionToken } from '@angular/core';\n\nimport type {\n LoadingOverlayLive,\n LoadingOverlaySize,\n LoadingOverlayVeil,\n} from './loading-overlay.constants';\n\n/**\n * What every overlay in an application looks like, and how a wait is timed,\n * before any of them states anything of its own.\n *\n * The two durations are here rather than on an overlay because the policy is\n * an application's: a team decides once that a wait under two hundred\n * milliseconds is not worth reporting, and every region inherits it. The\n * family ships both at zero because it cannot know them, so an application\n * that sets neither pays for no timer.\n */\nexport interface LoadingOverlayDefaults {\n delay?: number;\n live?: LoadingOverlayLive;\n loadedLabel?: string;\n minDuration?: number;\n size?: LoadingOverlaySize;\n veil?: LoadingOverlayVeil;\n}\n\nexport const LOADING_OVERLAY_DEFAULTS_TOKEN = new InjectionToken<LoadingOverlayDefaults>(\n 'slotted loading overlay defaults',\n { providedIn: 'root', factory: (): LoadingOverlayDefaults => ({}) },\n);\n\n/**\n * An overlay that states any of these still wins: an explicit input is never\n * overridden by the token. The words the family writes come from the language\n * in force (`provideSlotted`).\n */\nexport function provideLoadingOverlayDefaults(defaults: LoadingOverlayDefaults) {\n return { provide: LOADING_OVERLAY_DEFAULTS_TOKEN, useValue: defaults };\n}\n\nexport function injectLoadingOverlayDefaults(): LoadingOverlayDefaults {\n return inject(LOADING_OVERLAY_DEFAULTS_TOKEN);\n}\n","/**\n * What is covered. `region` is the box the family wraps and the safe default;\n * `page` is the whole viewport, and `docs/component-features.md` §9 warns\n * against reaching for it over a local operation.\n */\nexport type LoadingOverlayScope = 'region' | 'page';\n\n/** How the covered content is obscured. `none` blocks and dims nothing. */\nexport type LoadingOverlayVeil = 'wash' | 'blur' | 'none';\n\nexport type LoadingOverlaySize = 'sm' | 'md' | 'lg';\n\n/**\n * Whether the wait announces itself. `skeleton`'s own axis and vocabulary:\n * `off` is for a page that already says the same thing somewhere else.\n */\nexport type LoadingOverlayLive = 'polite' | 'off';\n\n/**\n * Why a cancellation was asked for. `dismiss` is the reader pressing the\n * control; `escape` is the key. There is no third: the family holds no timer\n * and the application does not ask itself to cancel.\n */\nexport type LoadingOverlayCancelReason = 'dismiss' | 'escape';\n\n/**\n * The ask, and it commits nothing.\n *\n * There is deliberately no `cancel()` on it, which is the one place this\n * request differs from every other in the library. A request can be refused\n * only where something would otherwise commit, and nothing does here: the\n * family does not lower `loading`, does not hide itself and does not move\n * focus. The consumer aborts its own work and lowers `loading` when it has.\n */\nexport interface LoadingOverlayCancelRequest {\n readonly reason: LoadingOverlayCancelReason;\n /** The event the ask came from: a press on the control, or the key. */\n readonly source: Event;\n}\n\nexport const LOADING_OVERLAY_DEFAULT_LIVE: LoadingOverlayLive = 'polite';\nexport const LOADING_OVERLAY_DEFAULT_SIZE: LoadingOverlaySize = 'md';\nexport const LOADING_OVERLAY_DEFAULT_VEIL: LoadingOverlayVeil = 'wash';\n","import { createDismissableLayer } from '@slotted/core/dismissable-layer';\nimport type { DismissableLayerHandle } from '@slotted/core/dismissable-layer';\nimport { createFocusScope } from '@slotted/core/focus';\nimport {\n loadingOverlayMessages,\n type LoadingOverlayMessages,\n type PartialMessages,\n} from '@slotted/core/i18n';\nimport { initialLoadingVisibility, nextLoadingVisibility } from '@slotted/core/loading';\nimport type { LoadingVisibilityState } from '@slotted/core/loading';\nimport { createPortalRoot } from '@slotted/core/portal';\nimport type { PortalRootHandle } from '@slotted/core/portal';\nimport { createPresence } from '@slotted/core/presence';\nimport type { PresenceHandle } from '@slotted/core/presence';\nimport {\n booleanAttribute,\n ChangeDetectionStrategy,\n Component,\n computed,\n contentChild,\n DestroyRef,\n Directive,\n effect,\n ElementRef,\n inject,\n input,\n numberAttribute,\n output,\n signal,\n untracked,\n viewChild,\n ViewEncapsulation,\n} from '@angular/core';\nimport { injectMessages } from '@slotted/angular/i18n';\nimport { SlLoader } from '@slotted/angular/progress-indicator';\n\nimport { injectLoadingOverlayDefaults } from './loading-overlay-defaults';\nimport {\n LOADING_OVERLAY_DEFAULT_LIVE,\n LOADING_OVERLAY_DEFAULT_SIZE,\n LOADING_OVERLAY_DEFAULT_VEIL,\n type LoadingOverlayCancelReason,\n type LoadingOverlayCancelRequest,\n type LoadingOverlayLive,\n type LoadingOverlayScope,\n type LoadingOverlaySize,\n type LoadingOverlayVeil,\n} from './loading-overlay.constants';\n\n/**\n * The mark the consumer puts in the panel, in place of the family's own.\n *\n * It writes nothing and behaves in no way: it exists so the overlay can ask\n * whether a mark was projected at all, which decides whether the slot centers\n * its contents or lets them fill it. A determinate bar has no intrinsic width\n * to be centerd at.\n */\n@Directive({ selector: '[slLoadingOverlayIndicator]', standalone: true })\nexport class SlLoadingOverlayIndicator {}\n\n/**\n * A region of the page taken out of reach while a wait the consumer owns runs.\n *\n * The content stays: in the document, measured, and the thing the region's\n * geometry comes from. That is the whole difference from `skeleton`, which\n * stands in for content that has not arrived, and the reason this family\n * writes `inert` rather than replacing anything.\n *\n * The selector is a bare attribute, so the element stays the consumer's: a\n * region is whatever already wraps the content — a `section`, a card, a list\n * item — and wrapping it in a second element would change their layout to\n * carry an attribute. `skeleton`'s region is written the same way and for the\n * same reason.\n *\n * Four things are composed rather than written here. `@slotted/core/loading`\n * decides when the layer is painted; `@slotted/core/presence` keeps the panel\n * in the document through the wash's exit; `@slotted/core/focus` moves focus\n * out of the content before it goes inert and puts it back after; and, in page\n * scope, `@slotted/core/dismissable-layer` in modal mode makes the rest of the\n * document inert and locks its scroll.\n */\n@Component({\n selector: '[slLoadingOverlay]',\n standalone: true,\n imports: [SlLoader],\n template: `\n @if (liveValue() !== 'off') {\n <span\n data-part=\"announcement\"\n data-part-announcement=\"\"\n data-ui=\"visually-hidden\"\n data-ui-visually-hidden=\"\"\n role=\"status\"\n >{{ announcement() }}</span\n >\n }\n\n @if (scope() === 'region') {\n <div data-part=\"content\" data-part-content=\"\" #content [attr.inert]=\"painted() ? '' : null\">\n <ng-content />\n </div>\n }\n\n <div\n data-part=\"scrim\"\n data-part-scrim=\"\"\n #scrim\n [attr.data-loading]=\"painted() ? '' : null\"\n (keydown.escape)=\"onEscape($event)\"\n >\n @if (mounted()) {\n <div data-part=\"panel\" data-part-panel=\"\" #panel tabindex=\"-1\">\n <span\n data-part=\"indicator\"\n data-part-indicator=\"\"\n [attr.data-default]=\"ownMark() ? '' : null\"\n >\n <ng-content select=\"[slLoadingOverlayIndicator]\">\n <div slLoader contained decorative [size]=\"sizeValue()\"></div>\n </ng-content>\n </span>\n <span aria-hidden=\"true\" data-part=\"label\" data-part-label=\"\">{{ labelValue() }}</span>\n @if (description(); as text) {\n <span aria-hidden=\"true\" data-part=\"description\" data-part-description=\"\">{{\n text\n }}</span>\n }\n @if (cancellable()) {\n <ng-content select=\"[slLoadingOverlayCancel]\">\n <button\n data-part=\"cancel\"\n data-part-cancel=\"\"\n type=\"button\"\n (click)=\"requestCancel($event)\"\n >\n {{ t('cancel') }}\n </button>\n </ng-content>\n }\n </div>\n }\n </div>\n `,\n styleUrls: [\n '../../../styles/src/loading-overlay/loading-overlay.css',\n '../../../styles/src/progress-indicator/progress-indicator.css',\n '../../../styles/src/visually-hidden/visually-hidden.css',\n ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n exportAs: 'slLoadingOverlay',\n host: {\n 'data-ui': 'loading-overlay',\n 'data-ui-loading-overlay': '',\n 'data-part': 'root',\n 'data-part-root': '',\n '[attr.data-scope]': 'scope()',\n '[attr.data-size]': 'sizeValue()',\n '[attr.data-veil]': 'veilValue()',\n '[attr.data-loading]': 'painted() ? \"\" : null',\n /* ARIA 1.2 asks for it on the region until it is finished loading. Page\n scope writes it nowhere: the busy region would be the document root, and\n this family owns no part of it. */\n '[attr.aria-busy]': 'scope() === \"region\" && painted() ? \"true\" : null',\n },\n})\nexport class SlLoadingOverlay {\n /**\n * Whether the data is still on its way. The consumer's own fact: the family\n * never moves it, so there is no `model()` here and no request for it.\n *\n * Blocking is the default, because a consumer who forgets the input sees a\n * covered region on the first render, while the other default leaves a\n * region reachable during a real wait and says nothing.\n */\n readonly loading = input(true, { transform: booleanAttribute });\n readonly scope = input<LoadingOverlayScope>('region');\n readonly veil = input<LoadingOverlayVeil | undefined>(undefined);\n readonly size = input<LoadingOverlaySize | undefined>(undefined);\n readonly live = input<LoadingOverlayLive | undefined>(undefined);\n /**\n * Words laid over the catalog of the language in force, key by key: the\n * short line (`label`), painted in the panel and announced once, and the\n * cancel control's words (`cancel`).\n */\n readonly messages = input<PartialMessages<LoadingOverlayMessages> | undefined>(undefined);\n readonly loadedLabel = input<string | undefined>(undefined);\n readonly description = input<string | undefined>(undefined);\n readonly cancellable = input(false, { transform: booleanAttribute });\n readonly delay = input<number | undefined, unknown>(undefined, { transform: optionalNumber });\n readonly minDuration = input<number | undefined, unknown>(undefined, {\n transform: optionalNumber,\n });\n /** Where the page-scoped layer is portalled. Defaults to the document body. */\n readonly container = input<HTMLElement | null | undefined>(undefined);\n\n /**\n * Asks to stop, carrying the reason and the event. The family commits\n * nothing: abort the work and lower `loading` when it has stopped.\n */\n readonly cancel = output<LoadingOverlayCancelRequest>();\n /**\n * The moment the covered content is reachable again, which is later than\n * `loading` turning false whenever `minDuration` is holding the layer. An\n * application moving focus on the input would move it under the wash.\n */\n readonly reveal = output<void>();\n\n private readonly defaults = injectLoadingOverlayDefaults();\n /** The family's words in the language in force, with this overlay's `messages` laid over them. */\n readonly t = injectMessages(loadingOverlayMessages, this.messages);\n private readonly host = inject<ElementRef<HTMLElement>>(ElementRef);\n\n /**\n * Whether the mark in the panel is the family's own. A consumer's mark fills\n * the slot and the family's is centerd in it, and only a content query can\n * tell the two apart: `ng-content` fallback content leaves no trace in the\n * DOM that CSS could ask about without reaching into the nested family.\n */\n private readonly projectedMark = contentChild(SlLoadingOverlayIndicator);\n protected readonly ownMark = computed(() => this.projectedMark() === undefined);\n\n private readonly contentRef = viewChild<ElementRef<HTMLElement>>('content');\n private readonly scrimRef = viewChild<ElementRef<HTMLElement>>('scrim');\n private readonly panelRef = viewChild<ElementRef<HTMLElement>>('panel');\n\n readonly sizeValue = computed(\n () => this.size() ?? this.defaults.size ?? LOADING_OVERLAY_DEFAULT_SIZE,\n );\n readonly veilValue = computed(\n () => this.veil() ?? this.defaults.veil ?? LOADING_OVERLAY_DEFAULT_VEIL,\n );\n readonly liveValue = computed(\n () => this.live() ?? this.defaults.live ?? LOADING_OVERLAY_DEFAULT_LIVE,\n );\n readonly labelValue = computed(() => this.t('label'));\n private readonly delayValue = computed(() => this.delay() ?? this.defaults.delay ?? 0);\n private readonly holdValue = computed(() => this.minDuration() ?? this.defaults.minDuration ?? 0);\n\n /** Whether the layer is painted, which is not the `loading` input. */\n readonly painted = signal(false);\n /** Whether the panel belongs in the document, which outlives `painted`. */\n readonly mounted = signal(false);\n\n /**\n * Emptying a live region announces nothing, which is what makes one wait one\n * announcement rather than two. A completion message is opt-in for the same\n * reason: a page of six regions would otherwise say six things nobody asked\n * to hear. `skeleton` established the rule and this family takes it whole.\n */\n readonly announcement = computed(() =>\n this.painted() ? this.labelValue() : (this.loadedLabel() ?? this.defaults.loadedLabel ?? ''),\n );\n\n private machine: LoadingVisibilityState = initialLoadingVisibility;\n private timer: ReturnType<typeof setTimeout> | undefined;\n private presence: PresenceHandle | undefined;\n private portal: PortalRootHandle | undefined;\n private layer: DismissableLayerHandle | undefined;\n\n constructor() {\n const destroy = inject(DestroyRef);\n destroy.onDestroy(() => {\n clearTimeout(this.timer);\n this.presence?.destroy();\n this.layer?.destroy();\n this.portal?.release();\n });\n\n effect(() => {\n const request = {\n loading: this.loading(),\n delay: this.delayValue(),\n minDuration: this.holdValue(),\n };\n untracked(() => this.settle(request));\n });\n\n /**\n * The wash is in the document for the life of the family, because a\n * transition needs a style the browser computed last and a node that has\n * just been mounted has none. The panel is not: `presence` mounts it while\n * the layer is painted and holds it through the wash's own exit, so\n * nothing turns a mark nobody is looking at and a resting layer holds no\n * control for Tab to find.\n */\n effect(() => {\n const scrim = this.scrimRef()?.nativeElement;\n const present = this.painted();\n untracked(() => {\n this.presence ??= createPresence({\n present,\n onStatusChange: () => this.mounted.set(this.presence?.mounted ?? false),\n });\n if (scrim !== undefined) this.presence.setNode(scrim);\n this.presence.sync(present);\n this.mounted.set(this.presence.mounted);\n });\n });\n\n /**\n * Page scope moves the host into a portal root and hands the rest to\n * `dismissable-layer` in modal mode, which writes `inert` on every sibling\n * of that root, locks the document scroll, and takes `Escape` in the\n * capture phase. Outside press is refused outright — a press on the wash is\n * a reader trying to reach what is behind it, and the operation has not\n * finished.\n */\n effect(() => {\n if (this.scope() !== 'page') return;\n const named = this.container();\n untracked(() => {\n this.portal?.release();\n this.portal = createPortalRoot(\n named === undefined || named === null ? {} : { container: named },\n );\n this.portal.container?.append(this.host.nativeElement);\n });\n });\n\n effect((onCleanup) => {\n const panel = this.panelRef()?.nativeElement;\n if (this.scope() !== 'page' || !this.painted() || panel === undefined) return;\n const escape = this.cancellable();\n\n const handle = createDismissableLayer(this.host.nativeElement, {\n content: panel,\n escape,\n modal: true,\n onDismiss: (request) => {\n if (request.reason !== 'escape') return;\n this.ask('escape', (request.source ?? new Event('keydown')) as Event);\n },\n outsidePress: false,\n });\n this.layer = handle;\n onCleanup(() => {\n handle.destroy();\n if (this.layer === handle) this.layer = undefined;\n });\n });\n\n /**\n * The defect none of the surveyed implementations has, because none of\n * them makes anything inert: making an element inert while it holds focus\n * drops focus to the body, and the reader who was typing loses their\n * place.\n *\n * Focus is read before the content goes inert. If it was inside, it moves\n * into the panel — the control when there is one, the panel itself\n * otherwise, which is the `'container'` destination the APG advises for\n * content that has to be read before it is operated. If it was somewhere\n * else, nothing moves: a background save does not take the caret out of\n * another form.\n */\n effect((onCleanup) => {\n const panel = this.panelRef()?.nativeElement;\n if (!this.painted() || panel === undefined) return;\n const page = this.scope() === 'page';\n const cancellable = this.cancellable();\n\n const active = panel.ownerDocument.activeElement;\n const displaced =\n page || (active !== null && (this.contentRef()?.nativeElement.contains(active) ?? false));\n if (!displaced) return;\n\n const scope = createFocusScope(panel, {\n contain: page,\n initial: cancellable\n ? () => panel.querySelector<HTMLElement>('[data-part=\"cancel\"]')\n : 'container',\n });\n scope.enter();\n onCleanup(() => scope.destroy());\n });\n }\n\n /**\n * `Escape` in region scope, where there is no dismissable layer to take it.\n * The listener is on the layer rather than on the document, so the key only\n * asks when focus is inside the thing it is about: an overlay covering a card\n * in the corner of a page has no claim on a key pressed elsewhere.\n */\n protected onEscape(event: Event) {\n if (this.scope() === 'page' || !this.cancellable()) return;\n event.stopPropagation();\n this.ask('escape', event);\n }\n\n /**\n * Public because the projection directive below calls it: a consumer's own\n * control is the same ask as the family's own.\n */\n requestCancel(source: Event) {\n this.ask('dismiss', source);\n }\n\n private ask(reason: LoadingOverlayCancelReason, source: Event) {\n this.cancel.emit({ reason, source });\n }\n\n /**\n * One step of the shared machine, plus at most one timer. The rule lives in\n * `@slotted/core/loading` rather than here so React and Angular cannot\n * disagree about when a layer appears — a difference no test that looked at\n * either binding alone would report.\n */\n private settle(request: { loading: boolean; delay: number; minDuration: number }) {\n clearTimeout(this.timer);\n const answer = nextLoadingVisibility({ ...request, now: Date.now(), state: this.machine });\n this.machine = answer.state;\n\n const was = this.painted();\n this.painted.set(answer.state.visible);\n if (was && !answer.state.visible) this.reveal.emit();\n\n if (answer.wait === null) return;\n this.timer = setTimeout(() => this.settle(request), answer.wait);\n }\n}\n\n/**\n * Absence has to survive the transform. `numberAttribute` maps an unset input\n * to `NaN`, and `NaN` is a value: it would stop the application's own timing\n * decision from ever reaching an overlay that says nothing.\n */\nfunction optionalNumber(value: unknown): number | undefined {\n return value === undefined || value === null || value === '' ? undefined : numberAttribute(value);\n}\n\n/**\n * A consumer's own control, put where the family's would have been.\n *\n * It writes the part and takes the press; everything else about the element is\n * the consumer's, including its paint — the family's own control rules are\n * written `:not([data-ui])`, so a `sl-button` here is a button and not a button\n * wearing this family's clothes as well.\n */\n@Directive({\n selector: '[slLoadingOverlayCancel]',\n standalone: true,\n host: {\n 'data-part': 'cancel',\n 'data-part-cancel': '',\n '(click)': 'overlay.requestCancel($event)',\n },\n})\nexport class SlLoadingOverlayCancel {\n protected readonly overlay = inject(SlLoadingOverlay);\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;AA2BO,MAAM,8BAA8B,GAAG,IAAI,cAAc,CAC9D,kCAAkC,EAClC,EAAE,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,OAA+B,EAAE,CAAC,EAAE;AAGrE;;;;AAIG;AACG,SAAU,6BAA6B,CAAC,QAAgC,EAAA;IAC5E,OAAO,EAAE,OAAO,EAAE,8BAA8B,EAAE,QAAQ,EAAE,QAAQ,EAAE;AACxE;SAEgB,4BAA4B,GAAA;AAC1C,IAAA,OAAO,MAAM,CAAC,8BAA8B,CAAC;AAC/C;;ACHO,MAAM,4BAA4B,GAAuB,QAAQ;AACjE,MAAM,4BAA4B,GAAuB,IAAI;AAC7D,MAAM,4BAA4B,GAAuB,MAAM;;ACOtE;;;;;;;AAOG;MAEU,yBAAyB,CAAA;uGAAzB,yBAAyB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;2FAAzB,yBAAyB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,6BAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;2FAAzB,yBAAyB,EAAA,UAAA,EAAA,CAAA;kBADrC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA,EAAE,QAAQ,EAAE,6BAA6B,EAAE,UAAU,EAAE,IAAI,EAAE;;AAGxE;;;;;;;;;;;;;;;;;;;;A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AA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;2FAAtB,sBAAsB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,0BAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,WAAA,EAAA,QAAA,EAAA,kBAAA,EAAA,EAAA,EAAA,EAAA,SAAA,EAAA,EAAA,OAAA,EAAA,+BAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;2FAAtB,sBAAsB,EAAA,UAAA,EAAA,CAAA;kBATlC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,0BAA0B;AACpC,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,IAAI,EAAE;AACJ,wBAAA,WAAW,EAAE,QAAQ;AACrB,wBAAA,kBAAkB,EAAE,EAAE;AACtB,wBAAA,SAAS,EAAE,+BAA+B;AAC3C,qBAAA;AACF,iBAAA;;;AC9bD;;AAEG;;"}
1
+ {"version":3,"file":"slotted-angular-loading-overlay.mjs","sources":["../../loading-overlay/src/loading-overlay-defaults.ts","../../loading-overlay/src/loading-overlay.constants.ts","../../loading-overlay/src/loading-overlay.ts","../../loading-overlay/src/slotted-angular-loading-overlay.ts"],"sourcesContent":["import { inject, InjectionToken } from '@angular/core';\n\nimport type {\n LoadingOverlayLive,\n LoadingOverlaySize,\n LoadingOverlayVeil,\n} from './loading-overlay.constants';\n\n/**\n * What every overlay in an application looks like, and how a wait is timed,\n * before any of them states anything of its own.\n *\n * The two durations are here rather than on an overlay because the policy is\n * an application's: a team decides once that a wait under two hundred\n * milliseconds is not worth reporting, and every region inherits it. The\n * family ships both at zero because it cannot know them, so an application\n * that sets neither pays for no timer.\n */\nexport interface LoadingOverlayDefaults {\n delay?: number;\n live?: LoadingOverlayLive;\n loadedLabel?: string;\n minDuration?: number;\n size?: LoadingOverlaySize;\n veil?: LoadingOverlayVeil;\n}\n\nexport const LOADING_OVERLAY_DEFAULTS_TOKEN = new InjectionToken<LoadingOverlayDefaults>(\n 'slotted loading overlay defaults',\n { providedIn: 'root', factory: (): LoadingOverlayDefaults => ({}) },\n);\n\n/**\n * An overlay that states any of these still wins: an explicit input is never\n * overridden by the token. The words the family writes come from the language\n * in force (`provideSlotted`).\n */\nexport function provideLoadingOverlayDefaults(defaults: LoadingOverlayDefaults) {\n return { provide: LOADING_OVERLAY_DEFAULTS_TOKEN, useValue: defaults };\n}\n\nexport function injectLoadingOverlayDefaults(): LoadingOverlayDefaults {\n return inject(LOADING_OVERLAY_DEFAULTS_TOKEN);\n}\n","/**\n * What is covered. `region` is the box the family wraps and the safe default;\n * `page` is the whole viewport, and `docs/component-features.md` §9 warns\n * against reaching for it over a local operation.\n */\nexport type LoadingOverlayScope = 'region' | 'page';\n\n/** How the covered content is obscured. `none` blocks and dims nothing. */\nexport type LoadingOverlayVeil = 'wash' | 'blur' | 'none';\n\nexport type LoadingOverlaySize = 'sm' | 'md' | 'lg';\n\n/**\n * Whether the wait announces itself. `skeleton`'s own axis and vocabulary:\n * `off` is for a page that already says the same thing somewhere else.\n */\nexport type LoadingOverlayLive = 'polite' | 'off';\n\n/**\n * Why a cancellation was asked for. `dismiss` is the reader pressing the\n * control; `escape` is the key. There is no third: the family holds no timer\n * and the application does not ask itself to cancel.\n */\nexport type LoadingOverlayCancelReason = 'dismiss' | 'escape';\n\n/**\n * The ask, and it commits nothing.\n *\n * There is deliberately no `cancel()` on it, which is the one place this\n * request differs from every other in the library. A request can be refused\n * only where something would otherwise commit, and nothing does here: the\n * family does not lower `loading`, does not hide itself and does not move\n * focus. The consumer aborts its own work and lowers `loading` when it has.\n */\nexport interface LoadingOverlayCancelRequest {\n readonly reason: LoadingOverlayCancelReason;\n /** The event the ask came from: a press on the control, or the key. */\n readonly source: Event;\n}\n\nexport const LOADING_OVERLAY_DEFAULT_LIVE: LoadingOverlayLive = 'polite';\nexport const LOADING_OVERLAY_DEFAULT_SIZE: LoadingOverlaySize = 'md';\nexport const LOADING_OVERLAY_DEFAULT_VEIL: LoadingOverlayVeil = 'wash';\n","import { createDismissableLayer } from '@slotted/core/dismissable-layer';\nimport type { DismissableLayerHandle } from '@slotted/core/dismissable-layer';\nimport { createFocusScope } from '@slotted/core/focus';\nimport {\n loadingOverlayMessages,\n type LoadingOverlayMessages,\n type PartialMessages,\n} from '@slotted/core/i18n';\nimport { initialLoadingVisibility, nextLoadingVisibility } from '@slotted/core/loading';\nimport type { LoadingVisibilityState } from '@slotted/core/loading';\nimport { createPortalRoot } from '@slotted/core/portal';\nimport type { PortalRootHandle } from '@slotted/core/portal';\nimport { createPresence } from '@slotted/core/presence';\nimport type { PresenceHandle } from '@slotted/core/presence';\nimport {\n booleanAttribute,\n ChangeDetectionStrategy,\n Component,\n computed,\n contentChild,\n DestroyRef,\n Directive,\n effect,\n ElementRef,\n inject,\n input,\n numberAttribute,\n output,\n signal,\n untracked,\n viewChild,\n ViewEncapsulation,\n} from '@angular/core';\nimport { injectMessages } from '@slotted/angular/i18n';\nimport { SlLoader } from '@slotted/angular/progress-indicator';\n\nimport { injectLoadingOverlayDefaults } from './loading-overlay-defaults';\nimport {\n LOADING_OVERLAY_DEFAULT_LIVE,\n LOADING_OVERLAY_DEFAULT_SIZE,\n LOADING_OVERLAY_DEFAULT_VEIL,\n type LoadingOverlayCancelReason,\n type LoadingOverlayCancelRequest,\n type LoadingOverlayLive,\n type LoadingOverlayScope,\n type LoadingOverlaySize,\n type LoadingOverlayVeil,\n} from './loading-overlay.constants';\n\n/**\n * The mark the consumer puts in the panel, in place of the family's own.\n *\n * It writes nothing and behaves in no way: it exists so the overlay can ask\n * whether a mark was projected at all, which decides whether the slot centers\n * its contents or lets them fill it. A determinate bar has no intrinsic width\n * to be centerd at.\n */\n@Directive({ selector: '[slLoadingOverlayIndicator]', standalone: true })\nexport class SlLoadingOverlayIndicator {}\n\n/**\n * A region of the page taken out of reach while a wait the consumer owns runs.\n *\n * The content stays: in the document, measured, and the thing the region's\n * geometry comes from. That is the whole difference from `skeleton`, which\n * stands in for content that has not arrived, and the reason this family\n * writes `inert` rather than replacing anything.\n *\n * The selector is a bare attribute, so the element stays the consumer's: a\n * region is whatever already wraps the content — a `section`, a card, a list\n * item — and wrapping it in a second element would change their layout to\n * carry an attribute. `skeleton`'s region is written the same way and for the\n * same reason.\n *\n * Four things are composed rather than written here. `@slotted/core/loading`\n * decides when the layer is painted; `@slotted/core/presence` keeps the panel\n * in the document through the wash's exit; `@slotted/core/focus` moves focus\n * out of the content before it goes inert and puts it back after; and, in page\n * scope, `@slotted/core/dismissable-layer` in modal mode makes the rest of the\n * document inert and locks its scroll.\n */\n@Component({\n selector: '[slLoadingOverlay]',\n standalone: true,\n imports: [SlLoader],\n template: `\n @if (liveValue() !== 'off') {\n <span\n data-part=\"announcement\"\n data-part-announcement=\"\"\n data-ui=\"visually-hidden\"\n data-ui-visually-hidden=\"\"\n role=\"status\"\n >{{ announcement() }}</span\n >\n }\n\n @if (scope() === 'region') {\n <div data-part=\"content\" data-part-content=\"\" #content [attr.inert]=\"painted() ? '' : null\">\n <ng-content />\n </div>\n }\n\n <div\n data-part=\"scrim\"\n data-part-scrim=\"\"\n #scrim\n [attr.data-loading]=\"painted() ? '' : null\"\n (keydown.escape)=\"onEscape($event)\"\n >\n @if (mounted()) {\n <div data-part=\"panel\" data-part-panel=\"\" #panel tabindex=\"-1\">\n <span\n data-part=\"indicator\"\n data-part-indicator=\"\"\n [attr.data-default]=\"ownMark() ? '' : null\"\n >\n <ng-content select=\"[slLoadingOverlayIndicator]\">\n <div slLoader contained decorative [size]=\"sizeValue()\"></div>\n </ng-content>\n </span>\n <span aria-hidden=\"true\" data-part=\"label\" data-part-label=\"\">{{ labelValue() }}</span>\n @if (description(); as text) {\n <span aria-hidden=\"true\" data-part=\"description\" data-part-description=\"\">{{\n text\n }}</span>\n }\n @if (cancellable()) {\n <ng-content select=\"[slLoadingOverlayCancel]\">\n <button\n data-part=\"cancel\"\n data-part-cancel=\"\"\n type=\"button\"\n (click)=\"requestCancel($event)\"\n >\n {{ t('cancel') }}\n </button>\n </ng-content>\n }\n </div>\n }\n </div>\n `,\n styleUrls: [\n '../../../styles/src/loading-overlay/loading-overlay.css',\n '../../../styles/src/progress-indicator/progress-indicator.css',\n '../../../styles/src/visually-hidden/visually-hidden.css',\n ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n exportAs: 'slLoadingOverlay',\n host: {\n 'data-ui': 'loading-overlay',\n 'data-ui-loading-overlay': '',\n 'data-part': 'root',\n 'data-part-root': '',\n '[attr.data-scope]': 'scope()',\n '[attr.data-size]': 'sizeValue()',\n '[attr.data-veil]': 'veilValue()',\n '[attr.data-loading]': 'painted() ? \"\" : null',\n /* ARIA 1.2 asks for it on the region until it is finished loading. Page\n scope writes it nowhere: the busy region would be the document root, and\n this family owns no part of it. */\n '[attr.aria-busy]': 'scope() === \"region\" && painted() ? \"true\" : null',\n },\n})\nexport class SlLoadingOverlay {\n /**\n * Whether the data is still on its way. The consumer's own fact: the family\n * never moves it, so there is no `model()` here and no request for it.\n *\n * Blocking is the default, because a consumer who forgets the input sees a\n * covered region on the first render, while the other default leaves a\n * region reachable during a real wait and says nothing.\n */\n readonly loading = input(true, { transform: booleanAttribute });\n readonly scope = input<LoadingOverlayScope>('region');\n readonly veil = input<LoadingOverlayVeil | undefined>(undefined);\n readonly size = input<LoadingOverlaySize | undefined>(undefined);\n readonly live = input<LoadingOverlayLive | undefined>(undefined);\n /**\n * Words laid over the catalog of the language in force, key by key: the\n * short line (`label`), painted in the panel and announced once, and the\n * cancel control's words (`cancel`).\n */\n readonly messages = input<PartialMessages<LoadingOverlayMessages> | undefined>(undefined);\n readonly loadedLabel = input<string | undefined>(undefined);\n readonly description = input<string | undefined>(undefined);\n readonly cancellable = input(false, { transform: booleanAttribute });\n readonly delay = input<number | undefined, unknown>(undefined, { transform: optionalNumber });\n readonly minDuration = input<number | undefined, unknown>(undefined, {\n transform: optionalNumber,\n });\n /** Where the page-scoped layer is portalled. Defaults to the document body. */\n readonly container = input<HTMLElement | null | undefined>(undefined);\n\n /**\n * Asks to stop, carrying the reason and the event. The family commits\n * nothing: abort the work and lower `loading` when it has stopped.\n */\n readonly cancel = output<LoadingOverlayCancelRequest>();\n /**\n * The moment the covered content is reachable again, which is later than\n * `loading` turning false whenever `minDuration` is holding the layer. An\n * application moving focus on the input would move it under the wash.\n */\n readonly reveal = output<void>();\n\n private readonly defaults = injectLoadingOverlayDefaults();\n /** The family's words in the language in force, with this overlay's `messages` laid over them. */\n readonly t = injectMessages(loadingOverlayMessages, this.messages);\n private readonly host = inject<ElementRef<HTMLElement>>(ElementRef);\n\n /**\n * Whether the mark in the panel is the family's own. A consumer's mark fills\n * the slot and the family's is centerd in it, and only a content query can\n * tell the two apart: `ng-content` fallback content leaves no trace in the\n * DOM that CSS could ask about without reaching into the nested family.\n */\n private readonly projectedMark = contentChild(SlLoadingOverlayIndicator);\n protected readonly ownMark = computed(() => this.projectedMark() === undefined);\n\n private readonly contentRef = viewChild<ElementRef<HTMLElement>>('content');\n private readonly scrimRef = viewChild<ElementRef<HTMLElement>>('scrim');\n private readonly panelRef = viewChild<ElementRef<HTMLElement>>('panel');\n\n readonly sizeValue = computed(\n () => this.size() ?? this.defaults.size ?? LOADING_OVERLAY_DEFAULT_SIZE,\n );\n readonly veilValue = computed(\n () => this.veil() ?? this.defaults.veil ?? LOADING_OVERLAY_DEFAULT_VEIL,\n );\n readonly liveValue = computed(\n () => this.live() ?? this.defaults.live ?? LOADING_OVERLAY_DEFAULT_LIVE,\n );\n readonly labelValue = computed(() => this.t('label'));\n private readonly delayValue = computed(() => this.delay() ?? this.defaults.delay ?? 0);\n private readonly holdValue = computed(() => this.minDuration() ?? this.defaults.minDuration ?? 0);\n\n /** Whether the layer is painted, which is not the `loading` input. */\n readonly painted = signal(false);\n /** Whether the panel belongs in the document, which outlives `painted`. */\n readonly mounted = signal(false);\n\n /**\n * Emptying a live region announces nothing, which is what makes one wait one\n * announcement rather than two. A completion message is opt-in for the same\n * reason: a page of six regions would otherwise say six things nobody asked\n * to hear. `skeleton` established the rule and this family takes it whole.\n */\n readonly announcement = computed(() =>\n this.painted() ? this.labelValue() : (this.loadedLabel() ?? this.defaults.loadedLabel ?? ''),\n );\n\n private machine: LoadingVisibilityState = initialLoadingVisibility;\n private timer: ReturnType<typeof setTimeout> | undefined;\n private presence: PresenceHandle | undefined;\n private portal: PortalRootHandle | undefined;\n private layer: DismissableLayerHandle | undefined;\n\n constructor() {\n const destroy = inject(DestroyRef);\n destroy.onDestroy(() => {\n clearTimeout(this.timer);\n this.presence?.destroy();\n this.layer?.destroy();\n this.portal?.release();\n });\n\n effect(() => {\n const request = {\n loading: this.loading(),\n delay: this.delayValue(),\n minDuration: this.holdValue(),\n };\n untracked(() => this.settle(request));\n });\n\n /**\n * The wash is in the document for the life of the family, because a\n * transition needs a style the browser computed last and a node that has\n * just been mounted has none. The panel is not: `presence` mounts it while\n * the layer is painted and holds it through the wash's own exit, so\n * nothing turns a mark nobody is looking at and a resting layer holds no\n * control for Tab to find.\n */\n effect(() => {\n const scrim = this.scrimRef()?.nativeElement;\n const present = this.painted();\n untracked(() => {\n this.presence ??= createPresence({\n present,\n onStatusChange: () => this.mounted.set(this.presence?.mounted ?? false),\n });\n if (scrim !== undefined) this.presence.setNode(scrim);\n this.presence.sync(present);\n this.mounted.set(this.presence.mounted);\n });\n });\n\n /**\n * Page scope moves the host into a portal root and hands the rest to\n * `dismissable-layer` in modal mode, which writes `inert` on every sibling\n * of that root, locks the document scroll, and takes `Escape` in the\n * capture phase. Outside press is refused outright — a press on the wash is\n * a reader trying to reach what is behind it, and the operation has not\n * finished.\n */\n effect(() => {\n if (this.scope() !== 'page') return;\n const named = this.container();\n untracked(() => {\n this.portal?.release();\n this.portal = createPortalRoot(\n named === undefined || named === null ? {} : { container: named },\n );\n this.portal.container?.append(this.host.nativeElement);\n });\n });\n\n effect((onCleanup) => {\n const panel = this.panelRef()?.nativeElement;\n if (this.scope() !== 'page' || !this.painted() || panel === undefined) return;\n const escape = this.cancellable();\n\n const handle = createDismissableLayer(this.host.nativeElement, {\n content: panel,\n escape,\n modal: true,\n onDismiss: (request) => {\n if (request.reason !== 'escape') return;\n this.ask('escape', (request.source ?? new Event('keydown')) as Event);\n },\n outsidePress: false,\n });\n this.layer = handle;\n onCleanup(() => {\n handle.destroy();\n if (this.layer === handle) this.layer = undefined;\n });\n });\n\n /**\n * The defect none of the surveyed implementations has, because none of\n * them makes anything inert: making an element inert while it holds focus\n * drops focus to the body, and the reader who was typing loses their\n * place.\n *\n * Focus is read before the content goes inert. If it was inside, it moves\n * into the panel — the control when there is one, the panel itself\n * otherwise, which is the `'container'` destination the APG advises for\n * content that has to be read before it is operated. If it was somewhere\n * else, nothing moves: a background save does not take the caret out of\n * another form.\n */\n effect((onCleanup) => {\n const panel = this.panelRef()?.nativeElement;\n if (!this.painted() || panel === undefined) return;\n const page = this.scope() === 'page';\n const cancellable = this.cancellable();\n\n const active = panel.ownerDocument.activeElement;\n const displaced =\n page || (active !== null && (this.contentRef()?.nativeElement.contains(active) ?? false));\n if (!displaced) return;\n\n const scope = createFocusScope(panel, {\n contain: page,\n initial: cancellable\n ? () => panel.querySelector<HTMLElement>('[data-part=\"cancel\"]')\n : 'container',\n });\n scope.enter();\n onCleanup(() => scope.destroy());\n });\n }\n\n /**\n * `Escape` in region scope, where there is no dismissable layer to take it.\n * The listener is on the layer rather than on the document, so the key only\n * asks when focus is inside the thing it is about: an overlay covering a card\n * in the corner of a page has no claim on a key pressed elsewhere.\n */\n protected onEscape(event: Event) {\n if (this.scope() === 'page' || !this.cancellable()) return;\n event.stopPropagation();\n this.ask('escape', event);\n }\n\n /**\n * Public because the projection directive below calls it: a consumer's own\n * control is the same ask as the family's own.\n */\n requestCancel(source: Event) {\n this.ask('dismiss', source);\n }\n\n private ask(reason: LoadingOverlayCancelReason, source: Event) {\n this.cancel.emit({ reason, source });\n }\n\n /**\n * One step of the shared machine, plus at most one timer. The rule lives in\n * `@slotted/core/loading` rather than here so React and Angular cannot\n * disagree about when a layer appears — a difference no test that looked at\n * either binding alone would report.\n */\n private settle(request: { loading: boolean; delay: number; minDuration: number }) {\n clearTimeout(this.timer);\n const answer = nextLoadingVisibility({ ...request, now: Date.now(), state: this.machine });\n this.machine = answer.state;\n\n const was = this.painted();\n this.painted.set(answer.state.visible);\n if (was && !answer.state.visible) this.reveal.emit();\n\n if (answer.wait === null) return;\n this.timer = setTimeout(() => this.settle(request), answer.wait);\n }\n}\n\n/**\n * Absence has to survive the transform. `numberAttribute` maps an unset input\n * to `NaN`, and `NaN` is a value: it would stop the application's own timing\n * decision from ever reaching an overlay that says nothing.\n */\nfunction optionalNumber(value: unknown): number | undefined {\n return value === undefined || value === null || value === '' ? undefined : numberAttribute(value);\n}\n\n/**\n * A consumer's own control, put where the family's would have been.\n *\n * It writes the part and takes the press; everything else about the element is\n * the consumer's, including its paint — the family's own control rules are\n * written `:not([data-ui])`, so a `sl-button` here is a button and not a button\n * wearing this family's clothes as well.\n */\n@Directive({\n selector: '[slLoadingOverlayCancel]',\n standalone: true,\n host: {\n 'data-part': 'cancel',\n 'data-part-cancel': '',\n '(click)': 'overlay.requestCancel($event)',\n },\n})\nexport class SlLoadingOverlayCancel {\n protected readonly overlay = inject(SlLoadingOverlay);\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;AA2BO,MAAM,8BAA8B,GAAG,IAAI,cAAc,CAC9D,kCAAkC,EAClC,EAAE,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,OAA+B,EAAE,CAAC,EAAE;AAGrE;;;;AAIG;AACG,SAAU,6BAA6B,CAAC,QAAgC,EAAA;IAC5E,OAAO,EAAE,OAAO,EAAE,8BAA8B,EAAE,QAAQ,EAAE,QAAQ,EAAE;AACxE;SAEgB,4BAA4B,GAAA;AAC1C,IAAA,OAAO,MAAM,CAAC,8BAA8B,CAAC;AAC/C;;ACHO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read on a size report only: the observer reports once as it observes. */
156
- const measure = () => this.sizeClass.set(sizeClassOf(this.native.getBoundingClientRect().width));
155
+ /* Read on a size report only: the observer reports once as it observes. A
156
+ box of 0 is not laid out, and injectPageSizeClass reads the viewport. */
157
+ const measure = () => {
158
+ const { width } = this.native.getBoundingClientRect();
159
+ this.sizeClass.set(width === 0 ? null : sizeClassOf(width));
160
+ };
157
161
  const target = findScrollParent(this.native) ?? this.native.ownerDocument.documentElement;
158
162
  const bar = () => this.native.querySelector(':scope > [data-part="footer"]');
159
163
  /* The property inherits, so every write invalidates style for everything
@@ -1 +1 @@
1
- {"version":3,"file":"slotted-angular-page.mjs","sources":["../../page/src/page-defaults.ts","../../page/src/page.ts","../../page/src/slotted-angular-page.ts"],"sourcesContent":["import { inject, InjectionToken } from '@angular/core';\n\n/** The width of the content column: the container's own sizes. */\nexport type PageWidth = 'measure' | 'content' | 'wide' | 'full' | 'bleed';\n\n/** The inset of the content column from the edge of the page: the container's own steps. */\nexport type PageInset = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;\n\n/**\n * Who scrolls. `ancestor` puts the page inside whatever scrolls and makes it\n * at least as tall as that, so the footer has a bottom to stick to. `self`\n * makes the page's own scroll part the scroller, with the footer below it.\n */\nexport type PageScroll = 'ancestor' | 'self';\n\n/** The ground: the sunken canvas of an application, or the plain surface of a document. */\nexport type PageGround = 'sunken' | 'surface';\n\n/** Whether the root is the document's `main` landmark. */\nexport type PageLandmark = 'main' | 'none';\n\nexport interface PageDefaults {\n ground: PageGround;\n inset: PageInset;\n landmark: PageLandmark;\n scroll: PageScroll;\n width: PageWidth;\n}\n\nconst FALLBACK: PageDefaults = {\n ground: 'sunken',\n inset: 6,\n landmark: 'main',\n scroll: 'ancestor',\n width: 'wide',\n};\n\nexport const PAGE_DEFAULTS = new InjectionToken<PageDefaults>('slotted page defaults', {\n providedIn: 'root',\n factory: () => FALLBACK,\n});\n\n/**\n * An application decides once how its pages are laid out — the measure, the\n * inset, who scrolls, the ground — rather than repeating the same inputs on\n * every route. A page that states any of them itself still wins. Its words\n * come from the language in force (`provideSlotted`).\n */\nexport function providePageDefaults(defaults: Partial<PageDefaults>) {\n return {\n provide: PAGE_DEFAULTS,\n useFactory: (): PageDefaults => ({ ...FALLBACK, ...defaults }),\n };\n}\n\n/** What a page renders as here, before it states anything of its own. */\nexport function injectPageDefaults(): PageDefaults {\n return inject(PAGE_DEFAULTS);\n}\n","import { createPresence } from '@slotted/core/presence';\nimport type { PresenceStatus } from '@slotted/core/presence';\nimport { sizeClassOf } from '@slotted/core/measure';\nimport type { SizeClass } from '@slotted/core/measure';\nimport { findScrollParent } from '@slotted/core/sticky-header';\nimport { SlContainer } from '@slotted/angular/container';\nimport { injectMessages } from '@slotted/angular/i18n';\nimport { SlHeadingLevel } from '@slotted/angular/typography';\nimport { pageMessages, type PageMessages, type PartialMessages } from '@slotted/core/i18n';\nimport {\n afterNextRender,\n booleanAttribute,\n ChangeDetectionStrategy,\n Component,\n computed,\n DestroyRef,\n effect,\n ElementRef,\n HostAttributeToken,\n inject,\n input,\n isDevMode,\n signal,\n ViewEncapsulation,\n} from '@angular/core';\nimport type { Signal } from '@angular/core';\n\nimport { injectPageDefaults } from './page-defaults';\nimport type { PageGround, PageInset, PageLandmark, PageScroll, PageWidth } from './page-defaults';\n\nexport type {\n PageDefaults,\n PageGround,\n PageInset,\n PageLandmark,\n PageScroll,\n PageWidth,\n} from './page-defaults';\n\n/** The custom property the scroller carries for what sticks above the footer. */\nexport const STICKY_BOTTOM_PROPERTY = '--slotted-page-sticky-bottom';\n\n/**\n * The custom property the scroller carries for its own visible height: a\n * sticky element of the consumer's caps its height by it rather than by the\n * viewport, which an inset canvas makes taller than the scroller.\n */\nexport const SCROLLPORT_BLOCK_SIZE_PROPERTY = '--slotted-page-scrollport-block-size';\n\n/**\n * The inset lives on the body, so content written straight into the page is\n * drawn against the viewport's edges and nothing else says why. A header is\n * not that content — it carries its own inset — so it is the one child the\n * check passes over.\n */\nfunction warnWithoutBody(root: HTMLElement) {\n const scroll = root.querySelector(':scope > [data-part=\"scroll\"]');\n if (scroll === null) return;\n const content = [...scroll.children].filter(\n (child) => child.getAttribute('data-ui') !== 'page-header',\n );\n if (content.length === 0) return;\n if (content.some((child) => child.getAttribute('data-part') === 'body')) return;\n console.warn(\n 'slPage has content outside slPageBody. Content outside the body receives no inset: wrap it in an element carrying slPageBody.',\n );\n}\n\n/**\n * The column of a screen: who scrolls, how wide the content is, where the\n * footer stays, how much air the body has.\n *\n * **The header is a direct child of what scrolls.** There is no header part: a\n * `sticky` element never leaves the box that contains it, so a wrapper exactly\n * the header's height would pin nothing. The element carrying `slPageHeader`\n * is projected first into the scroll part, beside the body.\n *\n * **The footer is projected outside the scroll part** — below the scroller\n * under `self`, stuck to the bottom of the root under `ancestor` — which is\n * what content projection is for. It keeps its box through its exit on\n * `open`, so the bar slides out rather than vanishing.\n *\n * **The element is the consumer's.** `<main slPage>` is the main landmark and\n * the directive adds nothing; `<div slPage>` gets `role=\"main\"` unless\n * `landmark=\"none\"` says the document already has one.\n */\n@Component({\n selector: '[slPage]',\n standalone: true,\n exportAs: 'slPage',\n template: `<div data-part=\"scroll\" data-part-scroll=\"\">\n <ng-content select=\"[slPageHeader]\" />\n <ng-content />\n </div>\n <ng-content select=\"[slPageFooter]\" />`,\n styleUrl: '../../../styles/src/page/page.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: {\n 'data-ui': 'page',\n 'data-ui-page': '',\n 'data-part': 'root',\n 'data-part-root': '',\n '[attr.role]': 'role()',\n '[attr.data-width]': 'resolvedWidth()',\n '[attr.data-scroll]': 'resolvedScroll()',\n '[attr.data-ground]': 'resolvedGround()',\n '[attr.data-fill]': \"fill() ? '' : null\",\n '[attr.data-loading]': \"loading() ? '' : null\",\n },\n})\nexport class SlPage {\n /** Defaults to the provider, then `wide`. */\n readonly width = input<PageWidth | undefined>(undefined);\n /** Defaults to the provider, then `6`. */\n readonly inset = input<PageInset | undefined>(undefined);\n /** Defaults to the provider, then `ancestor`. */\n readonly scroll = input<PageScroll | undefined>(undefined);\n /** Defaults to the provider, then `sunken`. */\n readonly ground = input<PageGround | undefined>(undefined);\n /** Defaults to the provider, then `main`. */\n readonly landmark = input<PageLandmark | undefined>(undefined);\n /**\n * Fills the height it was given: the body stops growing with its content and\n * the container inside it stretches to what is left. With `scroll=\"self\"`\n * nothing then scrolls outside the body, so the body's principal scroller —\n * not a form control, and at least half the body's height — is what\n * collapses the header: past 16 pixels down it snaps the area shut, and back\n * at its top it opens it again. From 600 pixels of the page's width up;\n * below it the page scrolls as it does without `fill`.\n */\n readonly fill = input(false, { transform: booleanAttribute });\n /** The body carries `aria-busy`; what stands in for the content is each family's own placeholder. */\n readonly loading = input(false, { transform: booleanAttribute });\n /**\n * Words laid over the catalog of the language in force: the footer's\n * accessible name (`footer`). A static `aria-label` on the footer still wins.\n */\n readonly messages = input<PartialMessages<PageMessages> | undefined>(undefined);\n\n private readonly defaults = injectPageDefaults();\n private readonly native: HTMLElement = inject(ElementRef).nativeElement;\n private readonly writtenRole = inject(new HostAttributeToken('role'), { optional: true });\n\n readonly resolvedWidth = computed(() => this.width() ?? this.defaults.width);\n readonly resolvedInset = computed(() => this.inset() ?? this.defaults.inset);\n readonly resolvedScroll = computed(() => this.scroll() ?? this.defaults.scroll);\n readonly resolvedGround = computed(() => this.ground() ?? this.defaults.ground);\n readonly resolvedLandmark = computed(() => this.landmark() ?? this.defaults.landmark);\n /** The family's words in the language in force, with this page's `messages` laid over them. */\n readonly t = injectMessages(pageMessages, this.messages);\n /**\n * The page's size class from its own width, which a split view narrows\n * while the viewport stays; `null` before it is measured. It changes only\n * when a threshold is crossed. Read it through `injectPageSizeClass()`.\n */\n readonly sizeClass = signal<SizeClass | null>(null);\n\n /** `role=\"main\"` only where the element is not already `main`, and only when asked. */\n protected readonly role = computed(() => {\n if (this.writtenRole !== null) return this.writtenRole;\n if (this.resolvedLandmark() !== 'main') return null;\n return this.native.tagName === 'MAIN' ? null : 'main';\n });\n\n constructor() {\n const destroyRef = inject(DestroyRef);\n afterNextRender(() => {\n if (isDevMode()) warnWithoutBody(this.native);\n if (typeof ResizeObserver === 'undefined') return;\n /* Read on a size report only: the observer reports once as it observes. */\n const measure = () =>\n this.sizeClass.set(sizeClassOf(this.native.getBoundingClientRect().width));\n const target = findScrollParent(this.native) ?? this.native.ownerDocument.documentElement;\n const bar = () => this.native.querySelector<HTMLElement>(':scope > [data-part=\"footer\"]');\n /* The property inherits, so every write invalidates style for everything\n under the scroller: it is written only when the height changes. */\n const write = (property: string, length: number) => {\n const value = `${length}px`;\n if (target.style.getPropertyValue(property) === value) return;\n target.style.setProperty(property, value);\n };\n /* Under `self` the page's own scroll part is what scrolls. */\n const scroller =\n (this.resolvedScroll() === 'self'\n ? this.native.querySelector<HTMLElement>(':scope > [data-part=\"scroll\"]')\n : null) ?? target;\n const publish = () => {\n const height = this.resolvedScroll() === 'self' ? 0 : (bar()?.offsetHeight ?? 0);\n write(STICKY_BOTTOM_PROPERTY, height);\n };\n /* The scroller is read on a size report only, never while rendering:\n the observer reports once as soon as it observes. */\n const observer = new ResizeObserver(() => {\n measure();\n publish();\n write(SCROLLPORT_BLOCK_SIZE_PROPERTY, scroller.clientHeight);\n });\n observer.observe(this.native);\n observer.observe(scroller);\n const footer = bar();\n if (footer !== null) observer.observe(footer);\n publish();\n destroyRef.onDestroy(() => {\n observer.disconnect();\n target.style.removeProperty(STICKY_BOTTOM_PROPERTY);\n target.style.removeProperty(SCROLLPORT_BLOCK_SIZE_PROPERTY);\n });\n });\n }\n}\n\n/**\n * The size class to compose by, from the page's own width: `compact` under 600\n * pixels, `medium` under 1024, `expanded` from there, the thresholds of the\n * page's container queries. A split view narrows the page while the viewport\n * stays, and code that chose by `matchMedia` disagreed with the stylesheet;\n * this follows the page. Outside a page, or before it is measured, it reads\n * the viewport. Call it in an injection context.\n */\nexport function injectPageSizeClass(): Signal<SizeClass> {\n const page = inject(SlPage, { optional: true });\n const viewport = signal<SizeClass>(viewportClass());\n\n if (typeof window !== 'undefined') {\n const onResize = () => viewport.set(viewportClass());\n window.addEventListener('resize', onResize);\n inject(DestroyRef).onDestroy(() => window.removeEventListener('resize', onResize));\n }\n\n return computed(() => page?.sizeClass() ?? viewport());\n}\n\n/* A server has no width: the class a desktop renders first. */\nfunction viewportClass(): SizeClass {\n return typeof window === 'undefined' ? 'expanded' : sizeClassOf(window.innerWidth);\n}\n\n/**\n * The padded column: one container at the page's width and inset, and one\n * outline step deeper than the header — `slHeadingLevel` is a host directive,\n * so a section written directly in the body takes `h2`.\n */\n@Component({\n selector: '[slPageBody]',\n standalone: true,\n exportAs: 'slPageBody',\n imports: [SlContainer],\n hostDirectives: [SlHeadingLevel],\n template: `<div slContainer [size]=\"page?.resolvedWidth()\" [inset]=\"page?.resolvedInset()\">\n <ng-content />\n </div>`,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: {\n 'data-part': 'body',\n 'data-part-body': '',\n '[attr.data-flow]': 'flow()',\n '[attr.aria-busy]': \"page?.loading() ? 'true' : null\",\n },\n})\nexport class SlPageBody {\n /**\n * How the body lays out what is written in it. `blocks` stacks its direct\n * children at `--slotted-page-block-gap`, and a section without a surface at\n * `--slotted-page-section-gap`; `none` leaves a body that is not a list of\n * blocks (a workspace, a split) to its own layout.\n */\n readonly flow = input<'blocks' | 'none'>('blocks');\n protected readonly page = inject(SlPage, { optional: true });\n}\n\n/**\n * The bar for the actions that finish the task. In the flow and never fixed:\n * it takes its own height, so the last line of content scrolls up to it\n * rather than under it. `open` keeps the element through its exit, so the bar\n * slides out rather than vanishing; the status reaches the DOM for the\n * stylesheet to transition on.\n */\n@Component({\n selector: '[slPageFooter]',\n standalone: true,\n exportAs: 'slPageFooter',\n imports: [SlContainer],\n template: `<div slContainer [size]=\"page?.resolvedWidth()\" [inset]=\"page?.resolvedInset()\">\n <div data-part=\"actions\" data-part-actions=\"\"><ng-content /></div>\n </div>`,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: {\n 'data-part': 'footer',\n 'data-part-footer': '',\n '[attr.aria-label]': 'label()',\n '[attr.data-status]': 'status()',\n '[attr.hidden]': \"status() === 'unmounted' ? '' : null\",\n },\n})\nexport class SlPageFooter {\n /** Whether the bar is shown. `false` slides it out and hides it once it has left. */\n readonly open = input(true, { transform: booleanAttribute });\n\n protected readonly page = inject(SlPage, { optional: true });\n private readonly written = inject(new HostAttributeToken('aria-label'), { optional: true });\n private readonly native: HTMLElement = inject(ElementRef).nativeElement;\n protected readonly status = signal<PresenceStatus>('open');\n /** A footer outside a page still speaks the language in force. */\n private readonly own = injectMessages(pageMessages);\n\n protected readonly label = computed(\n () => this.written ?? (this.page === null ? this.own('footer') : this.page.t('footer')),\n );\n\n constructor() {\n const presence = createPresence({\n present: this.open(),\n skipInitialAnimation: true,\n onStatusChange: (next) => this.status.set(next),\n });\n presence.setNode(this.native);\n effect(() => presence.sync(this.open()));\n inject(DestroyRef).onDestroy(() => presence.destroy());\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;AA6BA,MAAM,QAAQ,GAAiB;AAC7B,IAAA,MAAM,EAAE,QAAQ;AAChB,IAAA,KAAK,EAAE,CAAC;AACR,IAAA,QAAQ,EAAE,MAAM;AAChB,IAAA,MAAM,EAAE,UAAU;AAClB,IAAA,KAAK,EAAE,MAAM;CACd;MAEY,aAAa,GAAG,IAAI,cAAc,CAAe,uBAAuB,EAAE;AACrF,IAAA,UAAU,EAAE,MAAM;AAClB,IAAA,OAAO,EAAE,MAAM,QAAQ;AACxB,CAAA;AAED;;;;;AAKG;AACG,SAAU,mBAAmB,CAAC,QAA+B,EAAA;IACjE,OAAO;AACL,QAAA,OAAO,EAAE,aAAa;AACtB,QAAA,UAAU,EAAE,OAAqB,EAAE,GAAG,Q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Q,EAAE,CAAA;;AAEH,QAAA,CAAA;oBACP,eAAe,EAAE,uBAAuB,CAAC,MAAM;oBAC/C,aAAa,EAAE,iBAAiB,CAAC,IAAI;AACrC,oBAAA,IAAI,EAAE;AACJ,wBAAA,WAAW,EAAE,QAAQ;AACrB,wBAAA,kBAAkB,EAAE,EAAE;AACtB,wBAAA,mBAAmB,EAAE,SAAS;AAC9B,wBAAA,oBAAoB,EAAE,UAAU;AAChC,wBAAA,eAAe,EAAE,sCAAsC;AACxD,qBAAA;AACF,iBAAA;;;ACxSD;;AAEG;;"}
1
+ {"version":3,"file":"slotted-angular-page.mjs","sources":["../../page/src/page-defaults.ts","../../page/src/page.ts","../../page/src/slotted-angular-page.ts"],"sourcesContent":["import { inject, InjectionToken } from '@angular/core';\n\n/** The width of the content column: the container's own sizes. */\nexport type PageWidth = 'measure' | 'content' | 'wide' | 'full' | 'bleed';\n\n/** The inset of the content column from the edge of the page: the container's own steps. */\nexport type PageInset = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;\n\n/**\n * Who scrolls. `ancestor` puts the page inside whatever scrolls and makes it\n * at least as tall as that, so the footer has a bottom to stick to. `self`\n * makes the page's own scroll part the scroller, with the footer below it.\n */\nexport type PageScroll = 'ancestor' | 'self';\n\n/** The ground: the sunken canvas of an application, or the plain surface of a document. */\nexport type PageGround = 'sunken' | 'surface';\n\n/** Whether the root is the document's `main` landmark. */\nexport type PageLandmark = 'main' | 'none';\n\nexport interface PageDefaults {\n ground: PageGround;\n inset: PageInset;\n landmark: PageLandmark;\n scroll: PageScroll;\n width: PageWidth;\n}\n\nconst FALLBACK: PageDefaults = {\n ground: 'sunken',\n inset: 6,\n landmark: 'main',\n scroll: 'ancestor',\n width: 'wide',\n};\n\nexport const PAGE_DEFAULTS = new InjectionToken<PageDefaults>('slotted page defaults', {\n providedIn: 'root',\n factory: () => FALLBACK,\n});\n\n/**\n * An application decides once how its pages are laid out — the measure, the\n * inset, who scrolls, the ground — rather than repeating the same inputs on\n * every route. A page that states any of them itself still wins. Its words\n * come from the language in force (`provideSlotted`).\n */\nexport function providePageDefaults(defaults: Partial<PageDefaults>) {\n return {\n provide: PAGE_DEFAULTS,\n useFactory: (): PageDefaults => ({ ...FALLBACK, ...defaults }),\n };\n}\n\n/** What a page renders as here, before it states anything of its own. */\nexport function injectPageDefaults(): PageDefaults {\n return inject(PAGE_DEFAULTS);\n}\n","import { createPresence } from '@slotted/core/presence';\nimport type { PresenceStatus } from '@slotted/core/presence';\nimport { sizeClassOf } from '@slotted/core/measure';\nimport type { SizeClass } from '@slotted/core/measure';\nimport { findScrollParent } from '@slotted/core/sticky-header';\nimport { SlContainer } from '@slotted/angular/container';\nimport { injectMessages } from '@slotted/angular/i18n';\nimport { SlHeadingLevel } from '@slotted/angular/typography';\nimport { pageMessages, type PageMessages, type PartialMessages } from '@slotted/core/i18n';\nimport {\n afterNextRender,\n booleanAttribute,\n ChangeDetectionStrategy,\n Component,\n computed,\n DestroyRef,\n effect,\n ElementRef,\n HostAttributeToken,\n inject,\n input,\n isDevMode,\n signal,\n ViewEncapsulation,\n} from '@angular/core';\nimport type { Signal } from '@angular/core';\n\nimport { injectPageDefaults } from './page-defaults';\nimport type { PageGround, PageInset, PageLandmark, PageScroll, PageWidth } from './page-defaults';\n\nexport type {\n PageDefaults,\n PageGround,\n PageInset,\n PageLandmark,\n PageScroll,\n PageWidth,\n} from './page-defaults';\n\n/** The custom property the scroller carries for what sticks above the footer. */\nexport const STICKY_BOTTOM_PROPERTY = '--slotted-page-sticky-bottom';\n\n/**\n * The custom property the scroller carries for its own visible height: a\n * sticky element of the consumer's caps its height by it rather than by the\n * viewport, which an inset canvas makes taller than the scroller.\n */\nexport const SCROLLPORT_BLOCK_SIZE_PROPERTY = '--slotted-page-scrollport-block-size';\n\n/**\n * The inset lives on the body, so content written straight into the page is\n * drawn against the viewport's edges and nothing else says why. A header is\n * not that content — it carries its own inset — so it is the one child the\n * check passes over.\n */\nfunction warnWithoutBody(root: HTMLElement) {\n const scroll = root.querySelector(':scope > [data-part=\"scroll\"]');\n if (scroll === null) return;\n const content = [...scroll.children].filter(\n (child) => child.getAttribute('data-ui') !== 'page-header',\n );\n if (content.length === 0) return;\n if (content.some((child) => child.getAttribute('data-part') === 'body')) return;\n console.warn(\n 'slPage has content outside slPageBody. Content outside the body receives no inset: wrap it in an element carrying slPageBody.',\n );\n}\n\n/**\n * The column of a screen: who scrolls, how wide the content is, where the\n * footer stays, how much air the body has.\n *\n * **The header is a direct child of what scrolls.** There is no header part: a\n * `sticky` element never leaves the box that contains it, so a wrapper exactly\n * the header's height would pin nothing. The element carrying `slPageHeader`\n * is projected first into the scroll part, beside the body.\n *\n * **The footer is projected outside the scroll part** — below the scroller\n * under `self`, stuck to the bottom of the root under `ancestor` — which is\n * what content projection is for. It keeps its box through its exit on\n * `open`, so the bar slides out rather than vanishing.\n *\n * **The element is the consumer's.** `<main slPage>` is the main landmark and\n * the directive adds nothing; `<div slPage>` gets `role=\"main\"` unless\n * `landmark=\"none\"` says the document already has one.\n */\n@Component({\n selector: '[slPage]',\n standalone: true,\n exportAs: 'slPage',\n template: `<div data-part=\"scroll\" data-part-scroll=\"\">\n <ng-content select=\"[slPageHeader]\" />\n <ng-content />\n </div>\n <ng-content select=\"[slPageFooter]\" />`,\n styleUrl: '../../../styles/src/page/page.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: {\n 'data-ui': 'page',\n 'data-ui-page': '',\n 'data-part': 'root',\n 'data-part-root': '',\n '[attr.role]': 'role()',\n '[attr.data-width]': 'resolvedWidth()',\n '[attr.data-scroll]': 'resolvedScroll()',\n '[attr.data-ground]': 'resolvedGround()',\n '[attr.data-fill]': \"fill() ? '' : null\",\n '[attr.data-loading]': \"loading() ? '' : null\",\n },\n})\nexport class SlPage {\n /** Defaults to the provider, then `wide`. */\n readonly width = input<PageWidth | undefined>(undefined);\n /** Defaults to the provider, then `6`. */\n readonly inset = input<PageInset | undefined>(undefined);\n /** Defaults to the provider, then `ancestor`. */\n readonly scroll = input<PageScroll | undefined>(undefined);\n /** Defaults to the provider, then `sunken`. */\n readonly ground = input<PageGround | undefined>(undefined);\n /** Defaults to the provider, then `main`. */\n readonly landmark = input<PageLandmark | undefined>(undefined);\n /**\n * Fills the height it was given: the body stops growing with its content and\n * the container inside it stretches to what is left. With `scroll=\"self\"`\n * nothing then scrolls outside the body, so the body's principal scroller —\n * not a form control, and at least half the body's height — is what\n * collapses the header: past 16 pixels down it snaps the area shut, and back\n * at its top it opens it again. From 600 pixels of the page's width up;\n * below it the page scrolls as it does without `fill`.\n */\n readonly fill = input(false, { transform: booleanAttribute });\n /** The body carries `aria-busy`; what stands in for the content is each family's own placeholder. */\n readonly loading = input(false, { transform: booleanAttribute });\n /**\n * Words laid over the catalog of the language in force: the footer's\n * accessible name (`footer`). A static `aria-label` on the footer still wins.\n */\n readonly messages = input<PartialMessages<PageMessages> | undefined>(undefined);\n\n private readonly defaults = injectPageDefaults();\n private readonly native: HTMLElement = inject(ElementRef).nativeElement;\n private readonly writtenRole = inject(new HostAttributeToken('role'), { optional: true });\n\n readonly resolvedWidth = computed(() => this.width() ?? this.defaults.width);\n readonly resolvedInset = computed(() => this.inset() ?? this.defaults.inset);\n readonly resolvedScroll = computed(() => this.scroll() ?? this.defaults.scroll);\n readonly resolvedGround = computed(() => this.ground() ?? this.defaults.ground);\n readonly resolvedLandmark = computed(() => this.landmark() ?? this.defaults.landmark);\n /** The family's words in the language in force, with this page's `messages` laid over them. */\n readonly t = injectMessages(pageMessages, this.messages);\n /**\n * The page's size class from its own width, which a split view narrows\n * while the viewport stays; `null` before it is measured. It changes only\n * when a threshold is crossed. Read it through `injectPageSizeClass()`.\n */\n readonly sizeClass = signal<SizeClass | null>(null);\n\n /** `role=\"main\"` only where the element is not already `main`, and only when asked. */\n protected readonly role = computed(() => {\n if (this.writtenRole !== null) return this.writtenRole;\n if (this.resolvedLandmark() !== 'main') return null;\n return this.native.tagName === 'MAIN' ? null : 'main';\n });\n\n constructor() {\n const destroyRef = inject(DestroyRef);\n afterNextRender(() => {\n if (isDevMode()) warnWithoutBody(this.native);\n if (typeof ResizeObserver === 'undefined') return;\n /* Read on a size report only: the observer reports once as it observes. A\n box of 0 is not laid out, and injectPageSizeClass reads the viewport. */\n const measure = () => {\n const { width } = this.native.getBoundingClientRect();\n this.sizeClass.set(width === 0 ? null : sizeClassOf(width));\n };\n const target = findScrollParent(this.native) ?? this.native.ownerDocument.documentElement;\n const bar = () => this.native.querySelector<HTMLElement>(':scope > [data-part=\"footer\"]');\n /* The property inherits, so every write invalidates style for everything\n under the scroller: it is written only when the height changes. */\n const write = (property: string, length: number) => {\n const value = `${length}px`;\n if (target.style.getPropertyValue(property) === value) return;\n target.style.setProperty(property, value);\n };\n /* Under `self` the page's own scroll part is what scrolls. */\n const scroller =\n (this.resolvedScroll() === 'self'\n ? this.native.querySelector<HTMLElement>(':scope > [data-part=\"scroll\"]')\n : null) ?? target;\n const publish = () => {\n const height = this.resolvedScroll() === 'self' ? 0 : (bar()?.offsetHeight ?? 0);\n write(STICKY_BOTTOM_PROPERTY, height);\n };\n /* The scroller is read on a size report only, never while rendering:\n the observer reports once as soon as it observes. */\n const observer = new ResizeObserver(() => {\n measure();\n publish();\n write(SCROLLPORT_BLOCK_SIZE_PROPERTY, scroller.clientHeight);\n });\n observer.observe(this.native);\n observer.observe(scroller);\n const footer = bar();\n if (footer !== null) observer.observe(footer);\n publish();\n destroyRef.onDestroy(() => {\n observer.disconnect();\n target.style.removeProperty(STICKY_BOTTOM_PROPERTY);\n target.style.removeProperty(SCROLLPORT_BLOCK_SIZE_PROPERTY);\n });\n });\n }\n}\n\n/**\n * The size class to compose by, from the page's own width: `compact` under 600\n * pixels, `medium` under 1024, `expanded` from there, the thresholds of the\n * page's container queries. A split view narrows the page while the viewport\n * stays, and code that chose by `matchMedia` disagreed with the stylesheet;\n * this follows the page. Outside a page, or before it is measured, it reads\n * the viewport. Call it in an injection context.\n */\nexport function injectPageSizeClass(): Signal<SizeClass> {\n const page = inject(SlPage, { optional: true });\n const viewport = signal<SizeClass>(viewportClass());\n\n if (typeof window !== 'undefined') {\n const onResize = () => viewport.set(viewportClass());\n window.addEventListener('resize', onResize);\n inject(DestroyRef).onDestroy(() => window.removeEventListener('resize', onResize));\n }\n\n return computed(() => page?.sizeClass() ?? viewport());\n}\n\n/* A server has no width: the class a desktop renders first. */\nfunction viewportClass(): SizeClass {\n return typeof window === 'undefined' ? 'expanded' : sizeClassOf(window.innerWidth);\n}\n\n/**\n * The padded column: one container at the page's width and inset, and one\n * outline step deeper than the header — `slHeadingLevel` is a host directive,\n * so a section written directly in the body takes `h2`.\n */\n@Component({\n selector: '[slPageBody]',\n standalone: true,\n exportAs: 'slPageBody',\n imports: [SlContainer],\n hostDirectives: [SlHeadingLevel],\n template: `<div slContainer [size]=\"page?.resolvedWidth()\" [inset]=\"page?.resolvedInset()\">\n <ng-content />\n </div>`,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: {\n 'data-part': 'body',\n 'data-part-body': '',\n '[attr.data-flow]': 'flow()',\n '[attr.aria-busy]': \"page?.loading() ? 'true' : null\",\n },\n})\nexport class SlPageBody {\n /**\n * How the body lays out what is written in it. `blocks` stacks its direct\n * children at `--slotted-page-block-gap`, and a section without a surface at\n * `--slotted-page-section-gap`; `none` leaves a body that is not a list of\n * blocks (a workspace, a split) to its own layout.\n */\n readonly flow = input<'blocks' | 'none'>('blocks');\n protected readonly page = inject(SlPage, { optional: true });\n}\n\n/**\n * The bar for the actions that finish the task. In the flow and never fixed:\n * it takes its own height, so the last line of content scrolls up to it\n * rather than under it. `open` keeps the element through its exit, so the bar\n * slides out rather than vanishing; the status reaches the DOM for the\n * stylesheet to transition on.\n */\n@Component({\n selector: '[slPageFooter]',\n standalone: true,\n exportAs: 'slPageFooter',\n imports: [SlContainer],\n template: `<div slContainer [size]=\"page?.resolvedWidth()\" [inset]=\"page?.resolvedInset()\">\n <div data-part=\"actions\" data-part-actions=\"\"><ng-content /></div>\n </div>`,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: {\n 'data-part': 'footer',\n 'data-part-footer': '',\n '[attr.aria-label]': 'label()',\n '[attr.data-status]': 'status()',\n '[attr.hidden]': \"status() === 'unmounted' ? '' : null\",\n },\n})\nexport class SlPageFooter {\n /** Whether the bar is shown. `false` slides it out and hides it once it has left. */\n readonly open = input(true, { transform: booleanAttribute });\n\n protected readonly page = inject(SlPage, { optional: true });\n private readonly written = inject(new HostAttributeToken('aria-label'), { optional: true });\n private readonly native: HTMLElement = inject(ElementRef).nativeElement;\n protected readonly status = signal<PresenceStatus>('open');\n /** A footer outside a page still speaks the language in force. */\n private readonly own = injectMessages(pageMessages);\n\n protected readonly label = computed(\n () => this.written ?? (this.page === null ? this.own('footer') : this.page.t('footer')),\n );\n\n constructor() {\n const presence = createPresence({\n present: this.open(),\n skipInitialAnimation: true,\n onStatusChange: (next) => this.status.set(next),\n });\n presence.setNode(this.native);\n effect(() => presence.sync(this.open()));\n inject(DestroyRef).onDestroy(() => presence.destroy());\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;AA6BA,MAAM,QAAQ,GAAiB;AAC7B,IAAA,MAAM,EAAE,QAAQ;AAChB,IAAA,KAAK,EAAE,CAAC;AACR,IAAA,QAAQ,EAAE,MAAM;AAChB,IAAA,MAAM,EAAE,UAAU;AAClB,IAAA,KAAK,EAAE,MAAM;CACd;MAEY,aAAa,GAAG,IAAI,cAAc,CAAe,uBAAuB,EAAE;AACrF,IAAA,UAAU,EAAE,MAAM;AAClB,IAAA,OAAO,EAAE,MAAM,QAAQ;AACxB,CAAA;AAED;;;;;AAKG;AACG,SAAU,mBAAmB,CAAC,QAA+B,EAAA;IACjE,OAAO;AACL,QAAA,OAAO,EAAE,aAAa;AACt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