@slotted/angular 0.1.0-beta.21 → 0.1.0-beta.23
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.
- package/docs/alert.json +2 -2
- package/docs/alert.md +4 -4
- package/docs/chart.json +1 -0
- package/docs/chart.md +1 -1
- package/docs/drawer.examples.md +1 -1
- package/docs/drawer.json +4 -1
- package/docs/drawer.md +1 -1
- package/docs/markdown.json +1 -1
- package/docs/markdown.md +1 -1
- package/docs/skills/theme-app/SKILL.md +6 -2
- package/docs/stat-card.json +7 -0
- package/docs/stat-card.md +1 -0
- package/fesm2022/slotted-angular-alert.mjs +26 -1
- package/fesm2022/slotted-angular-alert.mjs.map +1 -1
- package/fesm2022/slotted-angular-chart.mjs +2 -2
- package/fesm2022/slotted-angular-chart.mjs.map +1 -1
- package/fesm2022/slotted-angular-drawer.mjs +2 -2
- package/fesm2022/slotted-angular-drawer.mjs.map +1 -1
- package/fesm2022/slotted-angular-page.mjs +2 -2
- package/fesm2022/slotted-angular-page.mjs.map +1 -1
- package/fesm2022/slotted-angular-stat-card.mjs +41 -10
- package/fesm2022/slotted-angular-stat-card.mjs.map +1 -1
- package/package.json +3 -3
- package/types/slotted-angular-alert.d.ts +1 -1
- package/types/slotted-angular-alert.d.ts.map +1 -1
- package/types/slotted-angular-stat-card.d.ts +13 -2
- package/types/slotted-angular-stat-card.d.ts.map +1 -1
package/docs/alert.json
CHANGED
|
@@ -383,9 +383,9 @@
|
|
|
383
383
|
{
|
|
384
384
|
"id": "actions",
|
|
385
385
|
"title": "What the message asks for",
|
|
386
|
-
"note": "The controls are the consumer’s own buttons, in a part outside the live region — a reader hearing the message is not read two button labels in the middle of it. They stack when the box is narrow. actionsPlacement=\"end\" puts them at the end of the message’s own line once the box is 40rem wide, which a page banner does by default.",
|
|
386
|
+
"note": "The controls are the consumer’s own buttons, in a part outside the live region — a reader hearing the message is not read two button labels in the middle of it. They stack when the box is narrow. actionsPlacement=\"end\" puts them at the end of the message’s own line once the box is 40rem wide, which a page banner does by default. Each Button in the part takes the alert’s tone and the sm size; a Button that states its own tone or size keeps it. The first action is solid and every other one ghost; outline draws no fill over the alert’s ground and is not used here.",
|
|
387
387
|
"language": "html",
|
|
388
|
-
"source": "<section slAlert tone=\"warning\">\n <div slAlertContent>\n <div slAlertTitle>Sua assinatura expira em três dias</div>\n </div>\n <div slAlertActions>\n <button slButton
|
|
388
|
+
"source": "<section slAlert tone=\"warning\">\n <div slAlertContent>\n <div slAlertTitle>Sua assinatura expira em três dias</div>\n </div>\n <div slAlertActions>\n <button slButton type=\"button\">Renovar</button>\n <button slButton variant=\"ghost\" type=\"button\">Ver planos</button>\n </div>\n</section>\n\n<section slAlert actionsPlacement=\"end\">\n <div slAlertContent>\n <p slAlertDescription>A sugestão altera três linhas do plano.</p>\n </div>\n <div slAlertActions>\n <button slButton type=\"button\">Aplicar</button>\n </div>\n</section>\n",
|
|
389
389
|
"verdict": "excerpt"
|
|
390
390
|
},
|
|
391
391
|
{
|
package/docs/alert.md
CHANGED
|
@@ -163,7 +163,7 @@ Excerpt — not a complete module
|
|
|
163
163
|
|
|
164
164
|
### What the message asks for
|
|
165
165
|
|
|
166
|
-
The controls are the consumer’s own buttons, in a part outside the live region — a reader hearing the message is not read two button labels in the middle of it. They stack when the box is narrow. actionsPlacement="end" puts them at the end of the message’s own line once the box is 40rem wide, which a page banner does by default.
|
|
166
|
+
The controls are the consumer’s own buttons, in a part outside the live region — a reader hearing the message is not read two button labels in the middle of it. They stack when the box is narrow. actionsPlacement="end" puts them at the end of the message’s own line once the box is 40rem wide, which a page banner does by default. Each Button in the part takes the alert’s tone and the sm size; a Button that states its own tone or size keeps it. The first action is solid and every other one ghost; outline draws no fill over the alert’s ground and is not used here.
|
|
167
167
|
|
|
168
168
|
Excerpt — not a complete module
|
|
169
169
|
|
|
@@ -173,8 +173,8 @@ Excerpt — not a complete module
|
|
|
173
173
|
<div slAlertTitle>Sua assinatura expira em três dias</div>
|
|
174
174
|
</div>
|
|
175
175
|
<div slAlertActions>
|
|
176
|
-
<button slButton
|
|
177
|
-
<button slButton
|
|
176
|
+
<button slButton type="button">Renovar</button>
|
|
177
|
+
<button slButton variant="ghost" type="button">Ver planos</button>
|
|
178
178
|
</div>
|
|
179
179
|
</section>
|
|
180
180
|
|
|
@@ -183,7 +183,7 @@ Excerpt — not a complete module
|
|
|
183
183
|
<p slAlertDescription>A sugestão altera três linhas do plano.</p>
|
|
184
184
|
</div>
|
|
185
185
|
<div slAlertActions>
|
|
186
|
-
<button slButton
|
|
186
|
+
<button slButton type="button">Aplicar</button>
|
|
187
187
|
</div>
|
|
188
188
|
</section>
|
|
189
189
|
```
|
package/docs/chart.json
CHANGED
|
@@ -949,6 +949,7 @@
|
|
|
949
949
|
"--slotted-chart-label-size",
|
|
950
950
|
"--slotted-chart-line-width",
|
|
951
951
|
"--slotted-chart-marker-size",
|
|
952
|
+
"--slotted-chart-overlay-backdrop-filter",
|
|
952
953
|
"--slotted-chart-plot-block-size",
|
|
953
954
|
"--slotted-chart-plot-block-size-lg",
|
|
954
955
|
"--slotted-chart-plot-block-size-sm",
|
package/docs/chart.md
CHANGED
|
@@ -181,7 +181,7 @@ Excerpt — not a complete module
|
|
|
181
181
|
|
|
182
182
|
## Tokens
|
|
183
183
|
|
|
184
|
-
`--slotted-border-strong`, `--slotted-border-subtle`, `--slotted-border-width-medium`, `--slotted-border-width-thick`, `--slotted-border-width-thin`, `--slotted-chart-area-opacity`, `--slotted-chart-axis-color`, `--slotted-chart-band-color`, `--slotted-chart-bar-radius`, `--slotted-chart-card-padding-block`, `--slotted-chart-card-padding-inline`, `--slotted-chart-card-radius`, `--slotted-chart-color-1`, `--slotted-chart-color-2`, `--slotted-chart-color-3`, `--slotted-chart-color-4`, `--slotted-chart-color-5`, `--slotted-chart-color-6`, `--slotted-chart-color-7`, `--slotted-chart-color-8`, `--slotted-chart-crosshair-color`, `--slotted-chart-focus-color`, `--slotted-chart-gap`, `--slotted-chart-grid-color`, `--slotted-chart-inset`, `--slotted-chart-label-color`, `--slotted-chart-label-size`, `--slotted-chart-line-width`, `--slotted-chart-marker-size`, `--slotted-chart-plot-block-size`, `--slotted-chart-plot-block-size-lg`, `--slotted-chart-plot-block-size-sm`, `--slotted-chart-radius`, `--slotted-chart-reference-color`, `--slotted-chart-sequential-color`, `--slotted-chart-skeleton-hole`, `--slotted-chart-surface`, `--slotted-chart-tooltip-surface`, `--slotted-control-border-color`, `--slotted-control-font-size-sm`, `--slotted-control-gap-md`, `--slotted-control-gap-sm`, `--slotted-control-height-sm`, `--slotted-control-inner-size-sm`, `--slotted-control-radius`, `--slotted-data-1`, `--slotted-data-2`, `--slotted-data-3`, `--slotted-data-4`, `--slotted-data-5`, `--slotted-data-6`, `--slotted-data-7`, `--slotted-data-8`, `--slotted-duration-instant`, `--slotted-duration-long`, `--slotted-duration-short`, `--slotted-easing-standard`, `--slotted-focus-ring-color`, `--slotted-focus-ring-offset`, `--slotted-focus-ring-width`, `--slotted-font-family-heading`, `--slotted-font-family-sans`, `--slotted-font-size-2xl`, `--slotted-font-size-lg`, `--slotted-font-size-md`, `--slotted-font-size-sm`, `--slotted-font-size-xl`, `--slotted-font-size-xs`, `--slotted-font-weight-medium`, `--slotted-font-weight-semibold`, `--slotted-line-height-2xl`, `--slotted-line-height-lg`, `--slotted-line-height-md`, `--slotted-line-height-sm`, `--slotted-line-height-xs`, `--slotted-radius-full`, `--slotted-radius-lg`, `--slotted-radius-md`, `--slotted-radius-sm`, `--slotted-radius-xs`, `--slotted-shadow-md`, `--slotted-space-1`, `--slotted-space-12`, `--slotted-space-2`, `--slotted-space-3`, `--slotted-space-4`, `--slotted-space-5`, `--slotted-space-6`, `--slotted-space-8`, `--slotted-space-9`, `--slotted-surface`, `--slotted-surface-raised`, `--slotted-target-comfortable`, `--slotted-target-min`, `--slotted-text`, `--slotted-text-muted`, `--slotted-tone-accent-text`, `--slotted-tone-danger-text`, `--slotted-tone-info-text`, `--slotted-tone-secondary-subtle-hover`, `--slotted-tone-secondary-surface`, `--slotted-tone-secondary-text`, `--slotted-tone-success-text`, `--slotted-tone-warning-text`, `--slotted-z-index-overlay`, `--slotted-z-index-popover`
|
|
184
|
+
`--slotted-border-strong`, `--slotted-border-subtle`, `--slotted-border-width-medium`, `--slotted-border-width-thick`, `--slotted-border-width-thin`, `--slotted-chart-area-opacity`, `--slotted-chart-axis-color`, `--slotted-chart-band-color`, `--slotted-chart-bar-radius`, `--slotted-chart-card-padding-block`, `--slotted-chart-card-padding-inline`, `--slotted-chart-card-radius`, `--slotted-chart-color-1`, `--slotted-chart-color-2`, `--slotted-chart-color-3`, `--slotted-chart-color-4`, `--slotted-chart-color-5`, `--slotted-chart-color-6`, `--slotted-chart-color-7`, `--slotted-chart-color-8`, `--slotted-chart-crosshair-color`, `--slotted-chart-focus-color`, `--slotted-chart-gap`, `--slotted-chart-grid-color`, `--slotted-chart-inset`, `--slotted-chart-label-color`, `--slotted-chart-label-size`, `--slotted-chart-line-width`, `--slotted-chart-marker-size`, `--slotted-chart-overlay-backdrop-filter`, `--slotted-chart-plot-block-size`, `--slotted-chart-plot-block-size-lg`, `--slotted-chart-plot-block-size-sm`, `--slotted-chart-radius`, `--slotted-chart-reference-color`, `--slotted-chart-sequential-color`, `--slotted-chart-skeleton-hole`, `--slotted-chart-surface`, `--slotted-chart-tooltip-surface`, `--slotted-control-border-color`, `--slotted-control-font-size-sm`, `--slotted-control-gap-md`, `--slotted-control-gap-sm`, `--slotted-control-height-sm`, `--slotted-control-inner-size-sm`, `--slotted-control-radius`, `--slotted-data-1`, `--slotted-data-2`, `--slotted-data-3`, `--slotted-data-4`, `--slotted-data-5`, `--slotted-data-6`, `--slotted-data-7`, `--slotted-data-8`, `--slotted-duration-instant`, `--slotted-duration-long`, `--slotted-duration-short`, `--slotted-easing-standard`, `--slotted-focus-ring-color`, `--slotted-focus-ring-offset`, `--slotted-focus-ring-width`, `--slotted-font-family-heading`, `--slotted-font-family-sans`, `--slotted-font-size-2xl`, `--slotted-font-size-lg`, `--slotted-font-size-md`, `--slotted-font-size-sm`, `--slotted-font-size-xl`, `--slotted-font-size-xs`, `--slotted-font-weight-medium`, `--slotted-font-weight-semibold`, `--slotted-line-height-2xl`, `--slotted-line-height-lg`, `--slotted-line-height-md`, `--slotted-line-height-sm`, `--slotted-line-height-xs`, `--slotted-radius-full`, `--slotted-radius-lg`, `--slotted-radius-md`, `--slotted-radius-sm`, `--slotted-radius-xs`, `--slotted-shadow-md`, `--slotted-space-1`, `--slotted-space-12`, `--slotted-space-2`, `--slotted-space-3`, `--slotted-space-4`, `--slotted-space-5`, `--slotted-space-6`, `--slotted-space-8`, `--slotted-space-9`, `--slotted-surface`, `--slotted-surface-raised`, `--slotted-target-comfortable`, `--slotted-target-min`, `--slotted-text`, `--slotted-text-muted`, `--slotted-tone-accent-text`, `--slotted-tone-danger-text`, `--slotted-tone-info-text`, `--slotted-tone-secondary-subtle-hover`, `--slotted-tone-secondary-surface`, `--slotted-tone-secondary-text`, `--slotted-tone-success-text`, `--slotted-tone-warning-text`, `--slotted-z-index-overlay`, `--slotted-z-index-popover`
|
|
185
185
|
|
|
186
186
|
## Examples
|
|
187
187
|
|
package/docs/drawer.examples.md
CHANGED
|
@@ -167,7 +167,7 @@ Excerpt — not a complete module
|
|
|
167
167
|
|
|
168
168
|
### A bottom sheet as a phone draws one
|
|
169
169
|
|
|
170
|
-
The sheet measures what it holds — the default size on top and bottom — stops at forty rems on a wide layer, and is moved by the platform’s own scroll, so the finger, the fling and the landing on a stop run on the compositor. The opening, the close and a tap on the grabber travel in --slotted-drawer-slide-duration and --slotted-easing-
|
|
170
|
+
The sheet measures what it holds — the default size on top and bottom — stops at forty rems on a wide layer, and is moved by the platform’s own scroll, so the finger, the fling and the landing on a stop run on the compositor. The opening, the close and a tap on the grabber travel in --slotted-drawer-slide-duration and --slotted-drawer-slide-easing (default --slotted-easing-standard) going up, and in --slotted-drawer-slide-exit-duration and --slotted-drawer-slide-exit-easing (default --slotted-easing-exit) going down. The sheet and its content are one scroll: pushing up lifts the sheet to the top of the screen and, without letting go, goes on through the list under the header, which sticks there; pulling down from the top of the list brings the sheet down. A fling out of the list stops at its top and never closes the sheet. A tap on the grabber walks the stops.
|
|
171
171
|
|
|
172
172
|
Example
|
|
173
173
|
|
package/docs/drawer.json
CHANGED
|
@@ -470,6 +470,7 @@
|
|
|
470
470
|
"--slotted-drawer-extent-md",
|
|
471
471
|
"--slotted-drawer-extent-sm",
|
|
472
472
|
"--slotted-drawer-extent-xl",
|
|
473
|
+
"--slotted-drawer-footer-backdrop-filter",
|
|
473
474
|
"--slotted-drawer-footer-surface",
|
|
474
475
|
"--slotted-drawer-radius",
|
|
475
476
|
"--slotted-drawer-radius-expanded",
|
|
@@ -481,7 +482,9 @@
|
|
|
481
482
|
"--slotted-drawer-sheet-height",
|
|
482
483
|
"--slotted-drawer-sheet-inline-size",
|
|
483
484
|
"--slotted-drawer-slide-duration",
|
|
485
|
+
"--slotted-drawer-slide-easing",
|
|
484
486
|
"--slotted-drawer-slide-exit-duration",
|
|
487
|
+
"--slotted-drawer-slide-exit-easing",
|
|
485
488
|
"--slotted-drawer-surface",
|
|
486
489
|
"--slotted-drawer-title-color",
|
|
487
490
|
"--slotted-drawer-title-font-family",
|
|
@@ -579,7 +582,7 @@
|
|
|
579
582
|
{
|
|
580
583
|
"id": "sheet",
|
|
581
584
|
"title": "A bottom sheet as a phone draws one",
|
|
582
|
-
"note": "The sheet measures what it holds — the default size on top and bottom — stops at forty rems on a wide layer, and is moved by the platform’s own scroll, so the finger, the fling and the landing on a stop run on the compositor. The opening, the close and a tap on the grabber travel in --slotted-drawer-slide-duration and --slotted-easing-
|
|
585
|
+
"note": "The sheet measures what it holds — the default size on top and bottom — stops at forty rems on a wide layer, and is moved by the platform’s own scroll, so the finger, the fling and the landing on a stop run on the compositor. The opening, the close and a tap on the grabber travel in --slotted-drawer-slide-duration and --slotted-drawer-slide-easing (default --slotted-easing-standard) going up, and in --slotted-drawer-slide-exit-duration and --slotted-drawer-slide-exit-easing (default --slotted-easing-exit) going down. The sheet and its content are one scroll: pushing up lifts the sheet to the top of the screen and, without letting go, goes on through the list under the header, which sticks there; pulling down from the top of the list brings the sheet down. A fling out of the list stops at its top and never closes the sheet. A tap on the grabber walks the stops.",
|
|
583
586
|
"language": "ts",
|
|
584
587
|
"source": "import { Component, computed, signal } from '@angular/core';\nimport { SlButton } from '@slotted/angular/button';\nimport {\n SlDrawer,\n SlDrawerBody,\n SlDrawerClose,\n SlDrawerDescription,\n SlDrawerFooter,\n SlDrawerHeader,\n SlDrawerResizer,\n SlDrawerTitle,\n SlDrawerTrigger,\n} from '@slotted/angular/drawer';\nimport { SlFieldGroup, SlFieldGroupLegend } from '@slotted/angular/field-group';\nimport { SlInline } from '@slotted/angular/inline';\nimport { SlRadio, SlRadioGroup } from '@slotted/angular/radio-group';\nimport { SlText } from '@slotted/angular/typography';\n\nconst WINDOWS = [\n { value: 'morning', label: 'Thursday 8 October, 8 AM to noon' },\n { value: 'afternoon', label: 'Thursday 8 October, 1 to 5 PM' },\n { value: 'friday', label: 'Friday 9 October, 8 AM to noon' },\n];\n\n@Component({\n selector: 'app-drawer-sheet',\n imports: [\n SlButton,\n SlDrawer,\n SlDrawerBody,\n SlDrawerClose,\n SlDrawerDescription,\n SlDrawerFooter,\n SlDrawerHeader,\n SlDrawerResizer,\n SlDrawerTitle,\n SlDrawerTrigger,\n SlFieldGroup,\n SlFieldGroupLegend,\n SlInline,\n SlRadio,\n SlRadioGroup,\n SlText,\n ],\n template: `\n <div slInline align=\"center\" [gap]=\"3\">\n <span slText size=\"sm\">Pickup: {{ pickupLabel() }}</span>\n <button slButton size=\"sm\" tone=\"secondary\" variant=\"outline\" [slDrawerTrigger]=\"drawer\">\n Reschedule\n </button>\n <sl-drawer #drawer=\"slDrawer\" side=\"bottom\" [open]=\"open()\" (openChange)=\"toggle($event)\">\n <div slDrawerResizer></div>\n <header slDrawerHeader>\n <h2 slDrawerTitle>Reschedule pickup</h2>\n <p slDrawerDescription>Shipment SH-4471, UPS Ground from Reno, NV.</p>\n <button slDrawerClose></button>\n </header>\n <div slDrawerBody>\n <fieldset slFieldGroup>\n <legend slFieldGroupLegend>Pickup window</legend>\n <div slRadioGroup [value]=\"draft()\" (valueChange)=\"draft.set($event.value ?? draft())\">\n @for (window of windows; track window.value) {\n <div slRadio [value]=\"window.value\">{{ window.label }}</div>\n }\n </div>\n </fieldset>\n </div>\n <footer slDrawerFooter>\n <button slButton variant=\"ghost\" tone=\"secondary\" (click)=\"open.set(false)\">\n Cancel\n </button>\n <button slButton (click)=\"reschedule()\">Reschedule</button>\n </footer>\n </sl-drawer>\n </div>\n `,\n})\nexport class DrawerSheet {\n readonly windows = WINDOWS;\n readonly open = signal(false);\n readonly pickup = signal('morning');\n readonly draft = signal(this.pickup());\n readonly pickupLabel = computed(\n () => WINDOWS.find((window) => window.value === this.pickup())?.label,\n );\n\n toggle(next: boolean): void {\n if (next) this.draft.set(this.pickup());\n this.open.set(next);\n }\n\n reschedule(): void {\n this.pickup.set(this.draft());\n this.open.set(false);\n }\n}\n",
|
|
585
588
|
"verdict": "example"
|
package/docs/drawer.md
CHANGED
|
@@ -194,7 +194,7 @@ export class DrawerBasic {
|
|
|
194
194
|
|
|
195
195
|
## Tokens
|
|
196
196
|
|
|
197
|
-
`--slotted-border-strong`, `--slotted-border-subtle`, `--slotted-border-width-thick`, `--slotted-border-width-thin`, `--slotted-control-font-family`, `--slotted-control-icon-size-md`, `--slotted-control-inner-size-md`, `--slotted-control-radius`, `--slotted-control-transition-duration`, `--slotted-control-transition-easing`, `--slotted-drawer-backdrop-filter`, `--slotted-drawer-body-color`, `--slotted-drawer-border-color`, `--slotted-drawer-close-active-background`, `--slotted-drawer-close-color`, `--slotted-drawer-close-hover-background`, `--slotted-drawer-color`, `--slotted-drawer-description-color`, `--slotted-drawer-extent`, `--slotted-drawer-extent-lg`, `--slotted-drawer-extent-md`, `--slotted-drawer-extent-sm`, `--slotted-drawer-extent-xl`, `--slotted-drawer-footer-surface`, `--slotted-drawer-radius`, `--slotted-drawer-radius-expanded`, `--slotted-drawer-resizer-line-active-color`, `--slotted-drawer-resizer-line-color`, `--slotted-drawer-rule-color`, `--slotted-drawer-scrim`, `--slotted-drawer-sheet-floor`, `--slotted-drawer-sheet-height`, `--slotted-drawer-sheet-inline-size`, `--slotted-drawer-slide-duration`, `--slotted-drawer-slide-exit-duration`, `--slotted-drawer-surface`, `--slotted-drawer-title-color`, `--slotted-drawer-title-font-family`, `--slotted-duration-instant`, `--slotted-duration-long`, `--slotted-duration-medium`, `--slotted-duration-short`, `--slotted-easing-enter`, `--slotted-easing-exit`, `--slotted-easing-standard`, `--slotted-focus-ring-color`, `--slotted-focus-ring-offset`, `--slotted-focus-ring-width`, `--slotted-font-family-heading`, `--slotted-font-family-sans`, `--slotted-font-size-lg`, `--slotted-font-size-md`, `--slotted-font-size-xl`, `--slotted-font-weight-semibold`, `--slotted-line-height-lg`, `--slotted-line-height-md`, `--slotted-radius-full`, `--slotted-radius-lg`, `--slotted-radius-sm`, `--slotted-scrim`, `--slotted-shadow-lg`, `--slotted-space-11`, `--slotted-space-12`, `--slotted-space-2`, `--slotted-space-4`, `--slotted-space-5`, `--slotted-space-6`, `--slotted-space-7`, `--slotted-space-8`, `--slotted-space-9`, `--slotted-surface-raised`, `--slotted-surface-sunken`, `--slotted-target-comfortable`, `--slotted-target-min`, `--slotted-text`, `--slotted-text-muted`, `--slotted-tone-secondary-subtle-active`, `--slotted-tone-secondary-subtle-hover`, `--slotted-z-index-overlay`
|
|
197
|
+
`--slotted-border-strong`, `--slotted-border-subtle`, `--slotted-border-width-thick`, `--slotted-border-width-thin`, `--slotted-control-font-family`, `--slotted-control-icon-size-md`, `--slotted-control-inner-size-md`, `--slotted-control-radius`, `--slotted-control-transition-duration`, `--slotted-control-transition-easing`, `--slotted-drawer-backdrop-filter`, `--slotted-drawer-body-color`, `--slotted-drawer-border-color`, `--slotted-drawer-close-active-background`, `--slotted-drawer-close-color`, `--slotted-drawer-close-hover-background`, `--slotted-drawer-color`, `--slotted-drawer-description-color`, `--slotted-drawer-extent`, `--slotted-drawer-extent-lg`, `--slotted-drawer-extent-md`, `--slotted-drawer-extent-sm`, `--slotted-drawer-extent-xl`, `--slotted-drawer-footer-backdrop-filter`, `--slotted-drawer-footer-surface`, `--slotted-drawer-radius`, `--slotted-drawer-radius-expanded`, `--slotted-drawer-resizer-line-active-color`, `--slotted-drawer-resizer-line-color`, `--slotted-drawer-rule-color`, `--slotted-drawer-scrim`, `--slotted-drawer-sheet-floor`, `--slotted-drawer-sheet-height`, `--slotted-drawer-sheet-inline-size`, `--slotted-drawer-slide-duration`, `--slotted-drawer-slide-easing`, `--slotted-drawer-slide-exit-duration`, `--slotted-drawer-slide-exit-easing`, `--slotted-drawer-surface`, `--slotted-drawer-title-color`, `--slotted-drawer-title-font-family`, `--slotted-duration-instant`, `--slotted-duration-long`, `--slotted-duration-medium`, `--slotted-duration-short`, `--slotted-easing-enter`, `--slotted-easing-exit`, `--slotted-easing-standard`, `--slotted-focus-ring-color`, `--slotted-focus-ring-offset`, `--slotted-focus-ring-width`, `--slotted-font-family-heading`, `--slotted-font-family-sans`, `--slotted-font-size-lg`, `--slotted-font-size-md`, `--slotted-font-size-xl`, `--slotted-font-weight-semibold`, `--slotted-line-height-lg`, `--slotted-line-height-md`, `--slotted-radius-full`, `--slotted-radius-lg`, `--slotted-radius-sm`, `--slotted-scrim`, `--slotted-shadow-lg`, `--slotted-space-11`, `--slotted-space-12`, `--slotted-space-2`, `--slotted-space-4`, `--slotted-space-5`, `--slotted-space-6`, `--slotted-space-7`, `--slotted-space-8`, `--slotted-space-9`, `--slotted-surface-raised`, `--slotted-surface-sunken`, `--slotted-target-comfortable`, `--slotted-target-min`, `--slotted-text`, `--slotted-text-muted`, `--slotted-tone-secondary-subtle-active`, `--slotted-tone-secondary-subtle-hover`, `--slotted-z-index-overlay`
|
|
198
198
|
|
|
199
199
|
## Examples
|
|
200
200
|
|
package/docs/markdown.json
CHANGED
|
@@ -125,7 +125,7 @@
|
|
|
125
125
|
"type": "string",
|
|
126
126
|
"defaultValue": "—",
|
|
127
127
|
"appliesTo": "[slMarkdown]",
|
|
128
|
-
"description": "The document as CommonMark text, read by parseMarkdown in place of tree: the syntax of the types in allow is read and any other stays text. Paragraphs, ATX headings, fenced code, quotes, rules, nested lists, code spans, strong, emphasis, links, escapes and hard breaks;
|
|
128
|
+
"description": "The document as CommonMark text, read by parseMarkdown in place of tree: the syntax of the types in allow is read and any other stays text. Paragraphs, ATX headings, fenced code, quotes, rules, GFM tables, nested lists, code spans, strong, emphasis, links, escapes and hard breaks; images and HTML need an adapter"
|
|
129
129
|
},
|
|
130
130
|
{
|
|
131
131
|
"name": "size",
|
package/docs/markdown.md
CHANGED
|
@@ -45,7 +45,7 @@ Excerpt — not a complete module
|
|
|
45
45
|
| Name | Type | Default | Applies to | Description |
|
|
46
46
|
| --- | --- | --- | --- | --- |
|
|
47
47
|
| `tree` | `MarkdownNode \| null` | — | [slMarkdown] | The document in mdast; never HTML |
|
|
48
|
-
| `source` | `string` | — | [slMarkdown] | The document as CommonMark text, read by parseMarkdown in place of tree: the syntax of the types in allow is read and any other stays text. Paragraphs, ATX headings, fenced code, quotes, rules, nested lists, code spans, strong, emphasis, links, escapes and hard breaks;
|
|
48
|
+
| `source` | `string` | — | [slMarkdown] | The document as CommonMark text, read by parseMarkdown in place of tree: the syntax of the types in allow is read and any other stays text. Paragraphs, ATX headings, fenced code, quotes, rules, GFM tables, nested lists, code spans, strong, emphasis, links, escapes and hard breaks; images and HTML need an adapter |
|
|
49
49
|
| `size` | `'md' \| 'lg' \| 'xl'` | lg | [slMarkdown] | The region’s type step, from prose |
|
|
50
50
|
| `flow` | `'tight' \| 'normal' \| 'loose'` | normal | [slMarkdown] | The space between blocks, from prose |
|
|
51
51
|
| `status` | `'ready' \| 'error'` | ready | [slMarkdown] | error replaces the document with the error part |
|
|
@@ -79,8 +79,12 @@ has.
|
|
|
79
79
|
`--slotted-page-footer-background` with
|
|
80
80
|
`--slotted-page-footer-backdrop-filter`, and
|
|
81
81
|
`--slotted-detail-panel-footer-background` with
|
|
82
|
-
`--slotted-detail-panel-footer-backdrop-filter`, and a
|
|
83
|
-
`--slotted-
|
|
82
|
+
`--slotted-detail-panel-footer-backdrop-filter`, and a drawer's footer
|
|
83
|
+
`--slotted-drawer-footer-surface` with
|
|
84
|
+
`--slotted-drawer-footer-backdrop-filter`, and a dialog's panel
|
|
85
|
+
`--slotted-dialog-surface` with `--slotted-dialog-backdrop-filter`. The
|
|
86
|
+
chart's tooltip, menu and help read one filter,
|
|
87
|
+
`--slotted-chart-overlay-backdrop-filter`.
|
|
84
88
|
|
|
85
89
|
## 4. Restyle a control
|
|
86
90
|
|
package/docs/stat-card.json
CHANGED
|
@@ -258,6 +258,13 @@
|
|
|
258
258
|
"appliesTo": "slStatCard, slStatCardValue, slStatCardDelta",
|
|
259
259
|
"description": "How a number is written. On the root, the default for the value and the delta"
|
|
260
260
|
},
|
|
261
|
+
{
|
|
262
|
+
"name": "emphasis",
|
|
263
|
+
"type": "'none' | 'whole'",
|
|
264
|
+
"defaultValue": "'none'",
|
|
265
|
+
"appliesTo": "slStatCardValue",
|
|
266
|
+
"description": "whole draws the symbol, the decimals and the suffix of a numeric value in the unit part, so the whole units carry the figure; the text is the formatter’s either way"
|
|
267
|
+
},
|
|
261
268
|
{
|
|
262
269
|
"name": "messages",
|
|
263
270
|
"type": "Partial<StatCardMessages>",
|
package/docs/stat-card.md
CHANGED
|
@@ -76,6 +76,7 @@ Excerpt — not a complete module
|
|
|
76
76
|
| `tone` | `'neutral' \| 'accent' \| 'secondary' \| 'info' \| 'success' \| 'warning' \| 'danger'` | — | slStatCard, slStatCardDelta | An explicit tone, which wins over the derived one. On the root it is what the trend hands its sparkline |
|
|
77
77
|
| `locale` | `string` | — | slStatCard | BCP 47, for every number the card formats; the language in force when absent |
|
|
78
78
|
| `formatOptions` | `Intl.NumberFormatOptions` | — | slStatCard, slStatCardValue, slStatCardDelta | How a number is written. On the root, the default for the value and the delta |
|
|
79
|
+
| `emphasis` | `'none' \| 'whole'` | 'none' | slStatCardValue | whole draws the symbol, the decimals and the suffix of a numeric value in the unit part, so the whole units carry the figure; the text is the formatter’s either way |
|
|
79
80
|
| `messages` | `Partial<StatCardMessages>` | — | slStatCard | Words laid over the language in force, key by key: up, down and flat, heard before the delta; empty, shown in place of a missing value |
|
|
80
81
|
| `value` | `number \| string` | — | slStatCardValue, slStatCardDelta | A number the card formats, or text as written. On a delta, unset means the root’s delta |
|
|
81
82
|
| `format` | `'percent' \| 'decimal'` | percent | slStatCardDelta | percent reads the value as a fraction; decimal reads it as it is. The sign is shown except on nought |
|
|
@@ -4,6 +4,7 @@ import * as i0 from '@angular/core';
|
|
|
4
4
|
import { InjectionToken, inject, Injectable, Directive, input, booleanAttribute, output, ElementRef, HostAttributeToken, signal, computed, contentChild, effect, DestroyRef, ViewEncapsulation, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
5
5
|
import { injectMessages } from '@slotted/angular/i18n';
|
|
6
6
|
import { SlGlyph, SlIcon } from '@slotted/angular/icon';
|
|
7
|
+
import { BUTTON_DEFAULTS_TOKEN } from '@slotted/angular/button';
|
|
7
8
|
|
|
8
9
|
const FALLBACK = {
|
|
9
10
|
live: 'off',
|
|
@@ -412,6 +413,29 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImpor
|
|
|
412
413
|
host: { 'data-part': 'description', 'data-part-description': '' },
|
|
413
414
|
}]
|
|
414
415
|
}] });
|
|
416
|
+
/**
|
|
417
|
+
* The buttons in the actions part take the alert's tone and the small size,
|
|
418
|
+
* through `button`'s own defaults: a button that states an axis still wins,
|
|
419
|
+
* and the variant stays the application's or the button's.
|
|
420
|
+
*/
|
|
421
|
+
function provideActionsPaint() {
|
|
422
|
+
return {
|
|
423
|
+
provide: BUTTON_DEFAULTS_TOKEN,
|
|
424
|
+
useFactory: () => {
|
|
425
|
+
const alert = inject(SlAlert);
|
|
426
|
+
const inherited = inject(BUTTON_DEFAULTS_TOKEN, { skipSelf: true });
|
|
427
|
+
return {
|
|
428
|
+
size: 'sm',
|
|
429
|
+
get tone() {
|
|
430
|
+
return alert.resolvedTone();
|
|
431
|
+
},
|
|
432
|
+
get variant() {
|
|
433
|
+
return inherited.variant;
|
|
434
|
+
},
|
|
435
|
+
};
|
|
436
|
+
},
|
|
437
|
+
};
|
|
438
|
+
}
|
|
415
439
|
/**
|
|
416
440
|
* The controls that act on the message, outside the region that announces: a
|
|
417
441
|
* reader hearing the message is not read the labels of two buttons in the
|
|
@@ -420,7 +444,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImpor
|
|
|
420
444
|
*/
|
|
421
445
|
class SlAlertActions {
|
|
422
446
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlAlertActions, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
423
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.7", type: SlAlertActions, isStandalone: true, selector: "[slAlertActions]", host: { attributes: { "data-part": "actions", "data-part-actions": "" } }, exportAs: ["slAlertActions"], ngImport: i0 });
|
|
447
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.7", type: SlAlertActions, isStandalone: true, selector: "[slAlertActions]", host: { attributes: { "data-part": "actions", "data-part-actions": "" } }, providers: [provideActionsPaint()], exportAs: ["slAlertActions"], ngImport: i0 });
|
|
424
448
|
}
|
|
425
449
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlAlertActions, decorators: [{
|
|
426
450
|
type: Directive,
|
|
@@ -429,6 +453,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImpor
|
|
|
429
453
|
standalone: true,
|
|
430
454
|
exportAs: 'slAlertActions',
|
|
431
455
|
host: { 'data-part': 'actions', 'data-part-actions': '' },
|
|
456
|
+
providers: [provideActionsPaint()],
|
|
432
457
|
}]
|
|
433
458
|
}] });
|
|
434
459
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"slotted-angular-alert.mjs","sources":["../../alert/src/alert-defaults.ts","../../alert/src/alert.ts","../../alert/src/alert-parts.ts","../../alert/src/slotted-angular-alert.ts"],"sourcesContent":["import { inject, Injectable, InjectionToken } from '@angular/core';\n\n/** Which of the five semantic colours the message speaks in. */\nexport type AlertTone = 'accent' | 'secondary' | 'info' | 'success' | 'warning' | 'danger';\n\n/** How that colour is painted. `soft` is the tinted box an alert usually is. */\nexport type AlertVariant = 'soft' | 'outline' | 'solid';\n\n/**\n * The scope the message applies to, which is the guide's three recipes as one\n * axis: an alert beside the thing it is about, a callout inside a section, a\n * banner across a page.\n */\nexport type AlertReach = 'inline' | 'section' | 'page';\n\n/**\n * Whether the message announces itself, and how loudly. `off` is the default,\n * because the WAI-ARIA APG records that screen readers do not inform users of\n * alerts already present when the page finishes loading.\n */\nexport type AlertLive = 'off' | 'polite' | 'assertive';\n\n/**\n * Where the actions stand: on a row under the words, or at the end of the\n * words' own row once the box is 40rem wide.\n */\nexport type AlertActionsPlacement = 'below' | 'end';\n\nexport interface AlertDefaults {\n live: AlertLive;\n reach: AlertReach;\n tone: AlertTone;\n variant: AlertVariant;\n}\n\nconst FALLBACK: AlertDefaults = {\n live: 'off',\n reach: 'section',\n tone: 'accent',\n variant: 'soft',\n};\n\nexport const ALERT_DEFAULTS = new InjectionToken<AlertDefaults>('slotted alert defaults', {\n providedIn: 'root',\n factory: () => FALLBACK,\n});\n\n/**\n * An application decides once how its messages are painted, at what reach and\n * how loud, rather than repeating the same inputs on every alert in a settings\n * page. An alert that states any of them itself still wins: an explicit input is\n * never overridden by the token. The dismiss control's name comes from the\n * language in force (`provideSlotted`).\n */\nexport function provideAlertDefaults(defaults: Partial<AlertDefaults>) {\n return {\n provide: ALERT_DEFAULTS,\n useFactory: (): AlertDefaults => ({\n live: defaults.live ?? FALLBACK.live,\n reach: defaults.reach ?? FALLBACK.reach,\n tone: defaults.tone ?? FALLBACK.tone,\n variant: defaults.variant ?? FALLBACK.variant,\n }),\n };\n}\n\n/** What an alert renders as here, before it states anything of its own. */\nexport function injectAlertDefaults(): AlertDefaults {\n return inject(ALERT_DEFAULTS);\n}\n\n/**\n * Application-scoped rather than module-scoped, for the reason `tag` records: a\n * module-level counter produces colliding sequences when two applications\n * render in one server process, and the server and the client sequences must\n * match for hydration.\n */\n@Injectable({ providedIn: 'root' })\nexport class SlAlertIdFactory {\n private count = 0;\n\n next() {\n this.count += 1;\n return `slotted-alert-${this.count}`;\n }\n}\n","import { alertMessages, type AlertMessages, type PartialMessages } from '@slotted/core/i18n';\nimport { createControllable } from '@slotted/core/state';\nimport type { ChangeRequest } from '@slotted/core/state';\nimport {\n booleanAttribute,\n ChangeDetectionStrategy,\n Component,\n computed,\n contentChild,\n DestroyRef,\n Directive,\n effect,\n ElementRef,\n HostAttributeToken,\n inject,\n input,\n output,\n signal,\n ViewEncapsulation,\n} from '@angular/core';\nimport { injectMessages } from '@slotted/angular/i18n';\nimport { SlGlyph, SlIcon } from '@slotted/angular/icon';\nimport type { GlyphName } from '@slotted/angular/icon';\n\nimport { injectAlertDefaults, SlAlertIdFactory } from './alert-defaults';\nimport type {\n AlertActionsPlacement,\n AlertLive,\n AlertReach,\n AlertTone,\n AlertVariant,\n} from './alert-defaults';\n\nexport type {\n AlertActionsPlacement,\n AlertLive,\n AlertReach,\n AlertTone,\n AlertVariant,\n} from './alert-defaults';\n\n/**\n * The glyph each tone draws, in its solid form: `specs/components/alert/contract.json`\n * holds the map. Every one is circled, so every mark is the same disc and the\n * symbol cut out of it tells the tones apart. `secondary` draws none: a neutral\n * note has no severity to state, and a disc with nothing cut out of it said\n * nothing. Its absence is itself the difference under forced colours.\n */\nconst TONE_GLYPH: Record<AlertTone, GlyphName | null> = {\n accent: 'status-info',\n secondary: null,\n info: 'status-info',\n success: 'status-success',\n warning: 'status-warning',\n danger: 'status-danger',\n};\n\n/**\n * Why the message closed. `dismiss` is the control at its corner;\n * `programmatic` is the application asking through `exportAs`. `escape` is\n * deliberately absent: an alert is not a dismissable layer, and one inside a\n * dialog would swallow the dialog's Escape.\n */\nexport type AlertCloseReason = 'dismiss' | 'programmatic';\n\n/**\n * A message about the page, a section, or the thing beside it.\n *\n * The directive is written on the consumer's own element, and the element it\n * belongs on is a `section`: named by its own title through `aria-labelledby`,\n * a `section` is a `region` landmark a reader can jump to, and unnamed it is a\n * plain grouping element that costs nothing.\n *\n * **The box is not the live region.** MDN's `alert` role reference states that\n * the role \"should only be used for text content, not interactive elements such\n * as links or buttons\", and every alert worth shipping has a dismiss control.\n * `slAlertContent` is what announces, and it holds the title and the\n * description alone; the actions and the dismiss control are its siblings.\n *\n * **Closing hides rather than removes.** A live region has to be in the\n * document before its text changes, so an alert that removed itself could not\n * announce the second time the message arrived — and `data-open` is only a\n * state a consumer can style if the element is there to carry it.\n */\n/**\n * A mark the page supplies instead of the tone's own. It is projected into the\n * box the family draws, so it keeps the size, the colour and the place on the\n * message's first line that the tone's own mark would have had.\n */\n@Directive({\n selector: '[slAlertIcon]',\n standalone: true,\n exportAs: 'slAlertIcon',\n})\nexport class SlAlertIcon {}\n\n@Component({\n selector: '[slAlert]',\n standalone: true,\n exportAs: 'slAlert',\n imports: [SlGlyph, SlIcon],\n template: `@if (!hideIcon() && (glyph() || suppliedIcon())) {\n <span aria-hidden=\"true\" data-part=\"icon\" data-part-icon=\"\"\n ><ng-content select=\"[slAlertIcon]\">\n @if (glyph(); as name) {\n <span slIcon><svg slGlyph [name]=\"name\" solid></svg></span>\n }</ng-content\n ></span>\n }\n <ng-content />\n @if (dismissible()) {\n <button\n type=\"button\"\n data-part=\"dismiss\"\n data-part-dismiss=\"\"\n [attr.aria-label]=\"t('dismiss')\"\n (click)=\"onDismiss($event)\"\n >\n <span slIcon><svg slGlyph name=\"x\"></svg></span>\n </button>\n }`,\n styleUrl: '../../../styles/src/alert/alert.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: {\n 'data-ui': 'alert',\n 'data-ui-alert': '',\n 'data-part': 'root',\n 'data-part-root': '',\n '[attr.data-tone]': 'resolvedTone()',\n '[attr.data-variant]': 'resolvedVariant()',\n '[attr.data-reach]': 'resolvedReach()',\n '[attr.data-actions-placement]': 'resolvedActionsPlacement()',\n '[attr.data-live]': 'resolvedLive()',\n '[attr.data-open]': \"isOpen() ? '' : null\",\n '[attr.hidden]': \"isOpen() ? null : ''\",\n '[attr.tabindex]': 'writtenTabIndex ?? -1',\n '[attr.aria-labelledby]': 'labelledBy()',\n '(focusin)': 'onFocusIn($event)',\n '(focusout)': 'onFocusOut($event)',\n },\n})\nexport class SlAlert {\n /** Defaults to the provider, then to `accent`. */\n readonly tone = input<AlertTone | undefined>(undefined);\n /** Defaults to the provider, then to `soft`. */\n readonly variant = input<AlertVariant | undefined>(undefined);\n /** Defaults to the provider, then to `section`. */\n readonly reach = input<AlertReach | undefined>(undefined);\n /** Defaults to the provider, then to `off`. */\n readonly live = input<AlertLive | undefined>(undefined);\n /** Defaults to `end` for a `page` banner and to `below` for every other reach. */\n readonly actionsPlacement = input<AlertActionsPlacement | undefined>(undefined);\n /** Draws no mark at all, for a callout carrying its own artwork. */\n readonly hideIcon = input(false, { transform: booleanAttribute });\n /**\n * Renders the control that closes the message. React reads the same fact from\n * whether a handler was passed; Angular cannot see whether an output was\n * subscribed, so the opt-in is stated — the asymmetry `tag` recorded.\n */\n readonly dismissible = input(false, { transform: booleanAttribute });\n /** Words laid over the catalog of the language in force, key by key: what that control announces (`dismiss`). */\n readonly messages = input<PartialMessages<AlertMessages> | undefined>(undefined);\n /** Present means controlled, for the life of the component. */\n readonly open = input<boolean | undefined, boolean | string | undefined>(undefined, {\n transform: (value) => (value === undefined ? undefined : booleanAttribute(value)),\n });\n /** The openness an uncontrolled alert starts from, read once. */\n readonly defaultOpen = input(true, { transform: booleanAttribute });\n /**\n * Returns the keyboard to where it came from when the message closes with\n * focus inside it. Nothing moves when focus was never there.\n */\n readonly restoreFocus = input(true, { transform: booleanAttribute });\n\n /**\n * One output for one transition, carrying the value, the value it replaces,\n * the reason, the originating event and `cancel()`. There is no `[(open)]`\n * because a two-way binding has one slot and cannot carry any of those.\n */\n readonly openChange = output<ChangeRequest<boolean>>();\n\n private readonly defaults = injectAlertDefaults();\n /** The family's words in the language in force, with this alert's `messages` laid over them. */\n readonly t = injectMessages(alertMessages, this.messages);\n private readonly host = inject<ElementRef<HTMLElement>>(ElementRef);\n /** An explicit tab index the consumer wrote is never replaced by the family's. */\n protected readonly writtenTabIndex = inject(new HostAttributeToken('tabindex'), {\n optional: true,\n });\n\n /** The identifier the title writes, and the box is named by. */\n readonly titleId = `${inject(SlAlertIdFactory).next()}-title`;\n\n private readonly own = signal<boolean | undefined>(undefined);\n private readonly titlePresent = signal(false);\n\n /**\n * Where the keyboard came from, and whether it is here now. Both are read at\n * the moment the message closes, when the element focus was on may already be\n * gone — so they are remembered as focus crosses the boundary rather than\n * looked up in the DOM afterwards.\n */\n private cameFrom: HTMLElement | null = null;\n private holdsFocus = false;\n\n protected readonly resolvedTone = computed(() => this.tone() ?? this.defaults.tone);\n protected readonly glyph = computed(() => TONE_GLYPH[this.resolvedTone()]);\n /** A mark the page projected, which draws even where the tone has none. */\n protected readonly suppliedIcon = contentChild(SlAlertIcon);\n protected readonly resolvedVariant = computed(() => this.variant() ?? this.defaults.variant);\n protected readonly resolvedReach = computed(() => this.reach() ?? this.defaults.reach);\n protected readonly resolvedActionsPlacement = computed(\n () => this.actionsPlacement() ?? (this.resolvedReach() === 'page' ? 'end' : 'below'),\n );\n readonly resolvedLive = computed(() => this.live() ?? this.defaults.live);\n\n readonly isOpen = computed(() => this.open() ?? this.own() ?? this.defaultOpen());\n\n /**\n * A `section` with an `aria-labelledby` pointing at nothing has no accessible\n * name and is not a landmark, so the attribute is written only once a title\n * has said it exists.\n */\n protected readonly labelledBy = computed(() => (this.titlePresent() ? this.titleId : null));\n\n constructor() {\n let previous = this.isOpen();\n effect(() => {\n const next = this.isOpen();\n if (previous && !next) this.restore();\n previous = next;\n });\n /* The message removed by the consumer rather than closed by itself. */\n inject(DestroyRef).onDestroy(() => this.restore());\n }\n\n /** Called by `slAlertTitle`, which is the part that names the box. */\n registerTitle(present: boolean) {\n this.titlePresent.set(present);\n }\n\n /** Sends the keyboard to the message. The family never does this by itself. */\n focus() {\n this.host.nativeElement.focus();\n }\n\n /**\n * Asks to open or close, carrying `programmatic` as the reason. It is the\n * reach a template has and React does not: JSX can re-render an input, and an\n * Angular template can only call a method on the instance `exportAs` gives it.\n */\n setOpen(next: boolean) {\n this.request(next, 'programmatic');\n }\n\n protected onDismiss(event: MouseEvent) {\n /* A consumer that called preventDefault has refused the dismissal, and a\n refused dismissal moves nothing. */\n if (event.defaultPrevented) return;\n this.request(false, 'dismiss', event);\n }\n\n protected onFocusIn(event: FocusEvent) {\n const previous = event.relatedTarget;\n if (previous instanceof HTMLElement && !this.host.nativeElement.contains(previous)) {\n this.cameFrom = previous;\n }\n this.holdsFocus = true;\n }\n\n protected onFocusOut(event: FocusEvent) {\n const next = event.relatedTarget;\n if (!(next instanceof Node) || !this.host.nativeElement.contains(next)) {\n this.holdsFocus = false;\n }\n }\n\n private request(next: boolean, reason: AlertCloseReason, source?: Event) {\n const state = createControllable<boolean>({\n controlled: this.open(),\n initial: this.isOpen(),\n onRequest: (request) => this.openChange.emit(request),\n });\n\n if (state.request(next, reason, source)) this.own.set(next);\n }\n\n private restore() {\n if (!this.restoreFocus() || !this.holdsFocus) return;\n this.holdsFocus = false;\n const target = this.cameFrom;\n if (target === null || !target.isConnected) return;\n target.focus();\n }\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n computed,\n Directive,\n inject,\n ViewEncapsulation,\n} from '@angular/core';\n\nimport { SlAlert } from './alert';\nimport type { AlertLive } from './alert-defaults';\n\n/**\n * The two roles that announce, and the value that does not. Both roles imply\n * `aria-live` and `aria-atomic`, so the whole message is read rather than the\n * word that changed, and nothing here writes either attribute by hand.\n */\nconst LIVE_ROLE: Record<AlertLive, string | null> = {\n off: null,\n polite: 'status',\n assertive: 'alert',\n};\n\n/**\n * The message itself, and the only part that announces.\n *\n * It is written explicitly rather than wrapped around the alert's projected\n * content, because a box that guessed which of its children were text would be\n * guessing about the one thing a reader hears. Fluent's `MessageBarBody` is the\n * only surveyed implementation with the same shape, and it is the only one\n * whose region excludes its own controls.\n */\n@Directive({\n selector: '[slAlertContent]',\n standalone: true,\n exportAs: 'slAlertContent',\n host: {\n 'data-part': 'content',\n 'data-part-content': '',\n '[attr.role]': 'role()',\n },\n})\nexport class SlAlertContent {\n private readonly alert = inject(SlAlert);\n\n protected readonly role = computed(() => LIVE_ROLE[this.alert.resolvedLive()]);\n}\n\n/**\n * The message's name, and the box's.\n *\n * The element is the consumer's: a heading puts the alert in the document\n * outline, which is right for a page banner and wrong for the alert beside a\n * field group, and only the page knows which. Writing `<h3 slAlertTitle>` is\n * how a page that wants one says so, and Angular needs no `render` prop to\n * allow it.\n */\n@Component({\n selector: '[slAlertTitle]',\n standalone: true,\n exportAs: 'slAlertTitle',\n template: '<ng-content />',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: {\n 'data-part': 'title',\n 'data-part-title': '',\n '[attr.id]': 'alert.titleId',\n },\n})\nexport class SlAlertTitle {\n protected readonly alert = inject(SlAlert);\n\n constructor() {\n this.alert.registerTitle(true);\n }\n\n ngOnDestroy() {\n this.alert.registerTitle(false);\n }\n}\n\n/** The message. Written on the consumer's own `p`, which is what prose is. */\n@Directive({\n selector: '[slAlertDescription]',\n standalone: true,\n exportAs: 'slAlertDescription',\n host: { 'data-part': 'description', 'data-part-description': '' },\n})\nexport class SlAlertDescription {}\n\n/**\n * The controls that act on the message, outside the region that announces: a\n * reader hearing the message is not read the labels of two buttons in the\n * middle of it. What goes in is the consumer's own buttons, because `button`\n * already owns what a button is.\n */\n@Directive({\n selector: '[slAlertActions]',\n standalone: true,\n exportAs: 'slAlertActions',\n host: { 'data-part': 'actions', 'data-part-actions': '' },\n})\nexport class SlAlertActions {}\n\n/* `SlAlertIcon` lives in `./alert`: the alert reads whether one was projected. */\nexport { SlAlertIcon } from './alert';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;AAmCA,MAAM,QAAQ,GAAkB;AAC9B,IAAA,IAAI,EAAE,KAAK;AACX,IAAA,KAAK,EAAE,SAAS;AAChB,IAAA,IAAI,EAAE,QAAQ;AACd,IAAA,OAAO,EAAE,MAAM;CAChB;MAEY,cAAc,GAAG,IAAI,cAAc,CAAgB,wBAAwB,EAAE;AACxF,IAAA,UAAU,EAAE,MAAM;AAClB,IAAA,OAAO,EAAE,MAAM,QAAQ;AACxB,CAAA;AAED;;;;;;AAMG;AACG,SAAU,oBAAoB,CAAC,QAAgC,EAAA;IACnE,OAAO;AACL,QAAA,OAAO,EAAE,cAAc;AACvB,QAAA,UAAU,EAAE,OAAsB;AAChC,YAAA,IAAI,EAAE,QAAQ,CAAC,IAAI,IAAI,QAAQ,CAAC,IAAI;AACpC,YAAA,KAAK,EAAE,QAAQ,CAAC,KAAK,IAAI,QAAQ,CAAC,KAAK;AACvC,YAAA,IAAI,EAAE,QAAQ,CAAC,IAAI,IAAI,QAAQ,CAAC,IAAI;AACpC,YAAA,OAAO,EAAE,QAAQ,CAAC,OAAO,IAAI,QAAQ,CAAC,OAAO;SAC9C,CAAC;KACH;AACH;AAEA;SACgB,mBAAmB,GAAA;AACjC,IAAA,OAAO,MAAM,CAAC,cAAc,CAAC;AAC/B;AAEA;;;;;AAKG;MAEU,gBAAgB,CAAA;IACnB,KAAK,GAAG,CAAC;IAEjB,IAAI,GAAA;AACF,QAAA,IAAI,CAAC,KAAK,IAAI,C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AA;AACT,oBAAA,QAAQ,EAAE,sBAAsB;AAChC,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,QAAQ,EAAE,oBAAoB;oBAC9B,IAAI,EAAE,EAAE,WAAW,EAAE,aAAa,EAAE,uBAAuB,EAAE,EAAE,EAAE;AAClE,iBAAA;;AAGD;;;;;AAKG;MAOU,cAAc,CAAA;uGAAd,cAAc,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;2FAAd,cAAc,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,kBAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,WAAA,EAAA,SAAA,EAAA,mBAAA,EAAA,EAAA,EAAA,EAAA,EAAA,QAAA,EAAA,CAAA,gBAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;2FAAd,cAAc,EAAA,UAAA,EAAA,CAAA;kBAN1B,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,kBAAkB;AAC5B,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,QAAQ,EAAE,gBAAgB;oBAC1B,IAAI,EAAE,EAAE,WAAW,EAAE,SAAS,EAAE,mBAAmB,EAAE,EAAE,EAAE;AAC1D,iBAAA;;;ACtGD;;AAEG;;"}
|
|
1
|
+
{"version":3,"file":"slotted-angular-alert.mjs","sources":["../../alert/src/alert-defaults.ts","../../alert/src/alert.ts","../../alert/src/alert-parts.ts","../../alert/src/slotted-angular-alert.ts"],"sourcesContent":["import { inject, Injectable, InjectionToken } from '@angular/core';\n\n/** Which of the five semantic colours the message speaks in. */\nexport type AlertTone = 'accent' | 'secondary' | 'info' | 'success' | 'warning' | 'danger';\n\n/** How that colour is painted. `soft` is the tinted box an alert usually is. */\nexport type AlertVariant = 'soft' | 'outline' | 'solid';\n\n/**\n * The scope the message applies to, which is the guide's three recipes as one\n * axis: an alert beside the thing it is about, a callout inside a section, a\n * banner across a page.\n */\nexport type AlertReach = 'inline' | 'section' | 'page';\n\n/**\n * Whether the message announces itself, and how loudly. `off` is the default,\n * because the WAI-ARIA APG records that screen readers do not inform users of\n * alerts already present when the page finishes loading.\n */\nexport type AlertLive = 'off' | 'polite' | 'assertive';\n\n/**\n * Where the actions stand: on a row under the words, or at the end of the\n * words' own row once the box is 40rem wide.\n */\nexport type AlertActionsPlacement = 'below' | 'end';\n\nexport interface AlertDefaults {\n live: AlertLive;\n reach: AlertReach;\n tone: AlertTone;\n variant: AlertVariant;\n}\n\nconst FALLBACK: AlertDefaults = {\n live: 'off',\n reach: 'section',\n tone: 'accent',\n variant: 'soft',\n};\n\nexport const ALERT_DEFAULTS = new InjectionToken<AlertDefaults>('slotted alert defaults', {\n providedIn: 'root',\n factory: () => FALLBACK,\n});\n\n/**\n * An application decides once how its messages are painted, at what reach and\n * how loud, rather than repeating the same inputs on every alert in a settings\n * page. An alert that states any of them itself still wins: an explicit input is\n * never overridden by the token. The dismiss control's name comes from the\n * language in force (`provideSlotted`).\n */\nexport function provideAlertDefaults(defaults: Partial<AlertDefaults>) {\n return {\n provide: ALERT_DEFAULTS,\n useFactory: (): AlertDefaults => ({\n live: defaults.live ?? FALLBACK.live,\n reach: defaults.reach ?? FALLBACK.reach,\n tone: defaults.tone ?? FALLBACK.tone,\n variant: defaults.variant ?? FALLBACK.variant,\n }),\n };\n}\n\n/** What an alert renders as here, before it states anything of its own. */\nexport function injectAlertDefaults(): AlertDefaults {\n return inject(ALERT_DEFAULTS);\n}\n\n/**\n * Application-scoped rather than module-scoped, for the reason `tag` records: a\n * module-level counter produces colliding sequences when two applications\n * render in one server process, and the server and the client sequences must\n * match for hydration.\n */\n@Injectable({ providedIn: 'root' })\nexport class SlAlertIdFactory {\n private count = 0;\n\n next() {\n this.count += 1;\n return `slotted-alert-${this.count}`;\n }\n}\n","import { alertMessages, type AlertMessages, type PartialMessages } from '@slotted/core/i18n';\nimport { createControllable } from '@slotted/core/state';\nimport type { ChangeRequest } from '@slotted/core/state';\nimport {\n booleanAttribute,\n ChangeDetectionStrategy,\n Component,\n computed,\n contentChild,\n DestroyRef,\n Directive,\n effect,\n ElementRef,\n HostAttributeToken,\n inject,\n input,\n output,\n signal,\n ViewEncapsulation,\n} from '@angular/core';\nimport { injectMessages } from '@slotted/angular/i18n';\nimport { SlGlyph, SlIcon } from '@slotted/angular/icon';\nimport type { GlyphName } from '@slotted/angular/icon';\n\nimport { injectAlertDefaults, SlAlertIdFactory } from './alert-defaults';\nimport type {\n AlertActionsPlacement,\n AlertLive,\n AlertReach,\n AlertTone,\n AlertVariant,\n} from './alert-defaults';\n\nexport type {\n AlertActionsPlacement,\n AlertLive,\n AlertReach,\n AlertTone,\n AlertVariant,\n} from './alert-defaults';\n\n/**\n * The glyph each tone draws, in its solid form: `specs/components/alert/contract.json`\n * holds the map. Every one is circled, so every mark is the same disc and the\n * symbol cut out of it tells the tones apart. `secondary` draws none: a neutral\n * note has no severity to state, and a disc with nothing cut out of it said\n * nothing. Its absence is itself the difference under forced colours.\n */\nconst TONE_GLYPH: Record<AlertTone, GlyphName | null> = {\n accent: 'status-info',\n secondary: null,\n info: 'status-info',\n success: 'status-success',\n warning: 'status-warning',\n danger: 'status-danger',\n};\n\n/**\n * Why the message closed. `dismiss` is the control at its corner;\n * `programmatic` is the application asking through `exportAs`. `escape` is\n * deliberately absent: an alert is not a dismissable layer, and one inside a\n * dialog would swallow the dialog's Escape.\n */\nexport type AlertCloseReason = 'dismiss' | 'programmatic';\n\n/**\n * A message about the page, a section, or the thing beside it.\n *\n * The directive is written on the consumer's own element, and the element it\n * belongs on is a `section`: named by its own title through `aria-labelledby`,\n * a `section` is a `region` landmark a reader can jump to, and unnamed it is a\n * plain grouping element that costs nothing.\n *\n * **The box is not the live region.** MDN's `alert` role reference states that\n * the role \"should only be used for text content, not interactive elements such\n * as links or buttons\", and every alert worth shipping has a dismiss control.\n * `slAlertContent` is what announces, and it holds the title and the\n * description alone; the actions and the dismiss control are its siblings.\n *\n * **Closing hides rather than removes.** A live region has to be in the\n * document before its text changes, so an alert that removed itself could not\n * announce the second time the message arrived — and `data-open` is only a\n * state a consumer can style if the element is there to carry it.\n */\n/**\n * A mark the page supplies instead of the tone's own. It is projected into the\n * box the family draws, so it keeps the size, the colour and the place on the\n * message's first line that the tone's own mark would have had.\n */\n@Directive({\n selector: '[slAlertIcon]',\n standalone: true,\n exportAs: 'slAlertIcon',\n})\nexport class SlAlertIcon {}\n\n@Component({\n selector: '[slAlert]',\n standalone: true,\n exportAs: 'slAlert',\n imports: [SlGlyph, SlIcon],\n template: `@if (!hideIcon() && (glyph() || suppliedIcon())) {\n <span aria-hidden=\"true\" data-part=\"icon\" data-part-icon=\"\"\n ><ng-content select=\"[slAlertIcon]\">\n @if (glyph(); as name) {\n <span slIcon><svg slGlyph [name]=\"name\" solid></svg></span>\n }</ng-content\n ></span>\n }\n <ng-content />\n @if (dismissible()) {\n <button\n type=\"button\"\n data-part=\"dismiss\"\n data-part-dismiss=\"\"\n [attr.aria-label]=\"t('dismiss')\"\n (click)=\"onDismiss($event)\"\n >\n <span slIcon><svg slGlyph name=\"x\"></svg></span>\n </button>\n }`,\n styleUrl: '../../../styles/src/alert/alert.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: {\n 'data-ui': 'alert',\n 'data-ui-alert': '',\n 'data-part': 'root',\n 'data-part-root': '',\n '[attr.data-tone]': 'resolvedTone()',\n '[attr.data-variant]': 'resolvedVariant()',\n '[attr.data-reach]': 'resolvedReach()',\n '[attr.data-actions-placement]': 'resolvedActionsPlacement()',\n '[attr.data-live]': 'resolvedLive()',\n '[attr.data-open]': \"isOpen() ? '' : null\",\n '[attr.hidden]': \"isOpen() ? null : ''\",\n '[attr.tabindex]': 'writtenTabIndex ?? -1',\n '[attr.aria-labelledby]': 'labelledBy()',\n '(focusin)': 'onFocusIn($event)',\n '(focusout)': 'onFocusOut($event)',\n },\n})\nexport class SlAlert {\n /** Defaults to the provider, then to `accent`. */\n readonly tone = input<AlertTone | undefined>(undefined);\n /** Defaults to the provider, then to `soft`. */\n readonly variant = input<AlertVariant | undefined>(undefined);\n /** Defaults to the provider, then to `section`. */\n readonly reach = input<AlertReach | undefined>(undefined);\n /** Defaults to the provider, then to `off`. */\n readonly live = input<AlertLive | undefined>(undefined);\n /** Defaults to `end` for a `page` banner and to `below` for every other reach. */\n readonly actionsPlacement = input<AlertActionsPlacement | undefined>(undefined);\n /** Draws no mark at all, for a callout carrying its own artwork. */\n readonly hideIcon = input(false, { transform: booleanAttribute });\n /**\n * Renders the control that closes the message. React reads the same fact from\n * whether a handler was passed; Angular cannot see whether an output was\n * subscribed, so the opt-in is stated — the asymmetry `tag` recorded.\n */\n readonly dismissible = input(false, { transform: booleanAttribute });\n /** Words laid over the catalog of the language in force, key by key: what that control announces (`dismiss`). */\n readonly messages = input<PartialMessages<AlertMessages> | undefined>(undefined);\n /** Present means controlled, for the life of the component. */\n readonly open = input<boolean | undefined, boolean | string | undefined>(undefined, {\n transform: (value) => (value === undefined ? undefined : booleanAttribute(value)),\n });\n /** The openness an uncontrolled alert starts from, read once. */\n readonly defaultOpen = input(true, { transform: booleanAttribute });\n /**\n * Returns the keyboard to where it came from when the message closes with\n * focus inside it. Nothing moves when focus was never there.\n */\n readonly restoreFocus = input(true, { transform: booleanAttribute });\n\n /**\n * One output for one transition, carrying the value, the value it replaces,\n * the reason, the originating event and `cancel()`. There is no `[(open)]`\n * because a two-way binding has one slot and cannot carry any of those.\n */\n readonly openChange = output<ChangeRequest<boolean>>();\n\n private readonly defaults = injectAlertDefaults();\n /** The family's words in the language in force, with this alert's `messages` laid over them. */\n readonly t = injectMessages(alertMessages, this.messages);\n private readonly host = inject<ElementRef<HTMLElement>>(ElementRef);\n /** An explicit tab index the consumer wrote is never replaced by the family's. */\n protected readonly writtenTabIndex = inject(new HostAttributeToken('tabindex'), {\n optional: true,\n });\n\n /** The identifier the title writes, and the box is named by. */\n readonly titleId = `${inject(SlAlertIdFactory).next()}-title`;\n\n private readonly own = signal<boolean | undefined>(undefined);\n private readonly titlePresent = signal(false);\n\n /**\n * Where the keyboard came from, and whether it is here now. Both are read at\n * the moment the message closes, when the element focus was on may already be\n * gone — so they are remembered as focus crosses the boundary rather than\n * looked up in the DOM afterwards.\n */\n private cameFrom: HTMLElement | null = null;\n private holdsFocus = false;\n\n readonly resolvedTone = computed(() => this.tone() ?? this.defaults.tone);\n protected readonly glyph = computed(() => TONE_GLYPH[this.resolvedTone()]);\n /** A mark the page projected, which draws even where the tone has none. */\n protected readonly suppliedIcon = contentChild(SlAlertIcon);\n protected readonly resolvedVariant = computed(() => this.variant() ?? this.defaults.variant);\n protected readonly resolvedReach = computed(() => this.reach() ?? this.defaults.reach);\n protected readonly resolvedActionsPlacement = computed(\n () => this.actionsPlacement() ?? (this.resolvedReach() === 'page' ? 'end' : 'below'),\n );\n readonly resolvedLive = computed(() => this.live() ?? this.defaults.live);\n\n readonly isOpen = computed(() => this.open() ?? this.own() ?? this.defaultOpen());\n\n /**\n * A `section` with an `aria-labelledby` pointing at nothing has no accessible\n * name and is not a landmark, so the attribute is written only once a title\n * has said it exists.\n */\n protected readonly labelledBy = computed(() => (this.titlePresent() ? this.titleId : null));\n\n constructor() {\n let previous = this.isOpen();\n effect(() => {\n const next = this.isOpen();\n if (previous && !next) this.restore();\n previous = next;\n });\n /* The message removed by the consumer rather than closed by itself. */\n inject(DestroyRef).onDestroy(() => this.restore());\n }\n\n /** Called by `slAlertTitle`, which is the part that names the box. */\n registerTitle(present: boolean) {\n this.titlePresent.set(present);\n }\n\n /** Sends the keyboard to the message. The family never does this by itself. */\n focus() {\n this.host.nativeElement.focus();\n }\n\n /**\n * Asks to open or close, carrying `programmatic` as the reason. It is the\n * reach a template has and React does not: JSX can re-render an input, and an\n * Angular template can only call a method on the instance `exportAs` gives it.\n */\n setOpen(next: boolean) {\n this.request(next, 'programmatic');\n }\n\n protected onDismiss(event: MouseEvent) {\n /* A consumer that called preventDefault has refused the dismissal, and a\n refused dismissal moves nothing. */\n if (event.defaultPrevented) return;\n this.request(false, 'dismiss', event);\n }\n\n protected onFocusIn(event: FocusEvent) {\n const previous = event.relatedTarget;\n if (previous instanceof HTMLElement && !this.host.nativeElement.contains(previous)) {\n this.cameFrom = previous;\n }\n this.holdsFocus = true;\n }\n\n protected onFocusOut(event: FocusEvent) {\n const next = event.relatedTarget;\n if (!(next instanceof Node) || !this.host.nativeElement.contains(next)) {\n this.holdsFocus = false;\n }\n }\n\n private request(next: boolean, reason: AlertCloseReason, source?: Event) {\n const state = createControllable<boolean>({\n controlled: this.open(),\n initial: this.isOpen(),\n onRequest: (request) => this.openChange.emit(request),\n });\n\n if (state.request(next, reason, source)) this.own.set(next);\n }\n\n private restore() {\n if (!this.restoreFocus() || !this.holdsFocus) return;\n this.holdsFocus = false;\n const target = this.cameFrom;\n if (target === null || !target.isConnected) return;\n target.focus();\n }\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n computed,\n Directive,\n inject,\n ViewEncapsulation,\n} from '@angular/core';\nimport { BUTTON_DEFAULTS_TOKEN } from '@slotted/angular/button';\nimport type { ButtonDefaults } from '@slotted/angular/button';\n\nimport { SlAlert } from './alert';\nimport type { AlertLive } from './alert-defaults';\n\n/**\n * The two roles that announce, and the value that does not. Both roles imply\n * `aria-live` and `aria-atomic`, so the whole message is read rather than the\n * word that changed, and nothing here writes either attribute by hand.\n */\nconst LIVE_ROLE: Record<AlertLive, string | null> = {\n off: null,\n polite: 'status',\n assertive: 'alert',\n};\n\n/**\n * The message itself, and the only part that announces.\n *\n * It is written explicitly rather than wrapped around the alert's projected\n * content, because a box that guessed which of its children were text would be\n * guessing about the one thing a reader hears. Fluent's `MessageBarBody` is the\n * only surveyed implementation with the same shape, and it is the only one\n * whose region excludes its own controls.\n */\n@Directive({\n selector: '[slAlertContent]',\n standalone: true,\n exportAs: 'slAlertContent',\n host: {\n 'data-part': 'content',\n 'data-part-content': '',\n '[attr.role]': 'role()',\n },\n})\nexport class SlAlertContent {\n private readonly alert = inject(SlAlert);\n\n protected readonly role = computed(() => LIVE_ROLE[this.alert.resolvedLive()]);\n}\n\n/**\n * The message's name, and the box's.\n *\n * The element is the consumer's: a heading puts the alert in the document\n * outline, which is right for a page banner and wrong for the alert beside a\n * field group, and only the page knows which. Writing `<h3 slAlertTitle>` is\n * how a page that wants one says so, and Angular needs no `render` prop to\n * allow it.\n */\n@Component({\n selector: '[slAlertTitle]',\n standalone: true,\n exportAs: 'slAlertTitle',\n template: '<ng-content />',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: {\n 'data-part': 'title',\n 'data-part-title': '',\n '[attr.id]': 'alert.titleId',\n },\n})\nexport class SlAlertTitle {\n protected readonly alert = inject(SlAlert);\n\n constructor() {\n this.alert.registerTitle(true);\n }\n\n ngOnDestroy() {\n this.alert.registerTitle(false);\n }\n}\n\n/** The message. Written on the consumer's own `p`, which is what prose is. */\n@Directive({\n selector: '[slAlertDescription]',\n standalone: true,\n exportAs: 'slAlertDescription',\n host: { 'data-part': 'description', 'data-part-description': '' },\n})\nexport class SlAlertDescription {}\n\n/**\n * The buttons in the actions part take the alert's tone and the small size,\n * through `button`'s own defaults: a button that states an axis still wins,\n * and the variant stays the application's or the button's.\n */\nfunction provideActionsPaint() {\n return {\n provide: BUTTON_DEFAULTS_TOKEN,\n useFactory: (): ButtonDefaults => {\n const alert = inject(SlAlert);\n const inherited = inject(BUTTON_DEFAULTS_TOKEN, { skipSelf: true });\n\n return {\n size: 'sm',\n get tone() {\n return alert.resolvedTone();\n },\n get variant() {\n return inherited.variant;\n },\n };\n },\n };\n}\n\n/**\n * The controls that act on the message, outside the region that announces: a\n * reader hearing the message is not read the labels of two buttons in the\n * middle of it. What goes in is the consumer's own buttons, because `button`\n * already owns what a button is.\n */\n@Directive({\n selector: '[slAlertActions]',\n standalone: true,\n exportAs: 'slAlertActions',\n host: { 'data-part': 'actions', 'data-part-actions': '' },\n providers: [provideActionsPaint()],\n})\nexport class SlAlertActions {}\n\n/* `SlAlertIcon` lives in `./alert`: the alert reads whether one was projected. */\nexport { SlAlertIcon } from './alert';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;AAmCA,MAAM,QAAQ,GAAkB;AAC9B,IAAA,IAAI,EAAE,KAAK;AACX,IAAA,KAAK,EAAE,SAAS;AAChB,IAAA,IAAI,EAAE,QAAQ;AACd,IAAA,OAAO,EAAE,MAAM;CAChB;MAEY,cAAc,GAAG,IAAI,cAAc,CAAgB,wBAAwB,EAAE;AACxF,IAAA,UAAU,EAAE,MAAM;AAClB,IAAA,OAAO,EAAE,MAAM,QAAQ;AACxB,CAAA;AAED;;;;;;AAMG;AACG,SAAU,oBAAoB,CAAC,QAAgC,EAAA;IACnE,OAAO;AACL,QAAA,OAAO,EAAE,cAAc;AACvB,QAAA,UAAU,EAAE,OAAsB;AAChC,YAAA,IAAI,EAAE,QAAQ,CAAC,IAAI,IAAI,QAAQ,CAAC,IAAI;AACpC,YAAA,KAAK,EAAE,QAAQ,CAAC,KAAK,IAAI,QAAQ,CAAC,KAAK;AACvC,YAAA,IAAI,EAAE,QAAQ,CAAC,IAAI,IAAI,QAAQ,CAAC,IAAI;AACpC,YAAA,OAAO,EAAE,QAAQ,CAAC,OAAO,IAAI,QAAQ,CAAC,OAAO;SAC9C,CAAC;KACH;AACH;AAEA;SACgB,mBAAmB,GAAA;AACjC,IAAA,OAAO,MAAM,CAAC,cAAc,CAAC;AAC/B;AAEA;;;;;AAKG;MAEU,gBAAgB,CAAA;IACnB,KAAK,GAAG,CAAC;IAEjB,IAAI,GAAA;AACF,QAAA,IAAI,CAAC,KAAK,IAAI,CAAC;AACf,QAAA,OAAO,CAAA,cAAA,EAAiB,IAAI,CAAC,KAAK,EAAE;IACtC;uGANW,gBAAgB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAA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