@slotted/angular 0.1.0-beta.19 → 0.1.0-beta.20
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 +13 -2
- package/docs/alert.md +12 -1
- package/docs/button.examples.md +15 -0
- package/docs/button.json +114 -0
- package/docs/button.md +24 -0
- package/fesm2022/slotted-angular-alert.mjs +10 -4
- package/fesm2022/slotted-angular-alert.mjs.map +1 -1
- package/fesm2022/slotted-angular-button.mjs +77 -1
- package/fesm2022/slotted-angular-button.mjs.map +1 -1
- package/fesm2022/slotted-angular-date-picker.mjs +2 -2
- package/fesm2022/slotted-angular-date-picker.mjs.map +1 -1
- package/fesm2022/slotted-angular-markdown.mjs +1 -1
- package/fesm2022/slotted-angular-markdown.mjs.map +1 -1
- package/fesm2022/slotted-angular-select.mjs +2 -2
- package/fesm2022/slotted-angular-select.mjs.map +1 -1
- package/fesm2022/slotted-angular-wizard.mjs +1 -1
- package/fesm2022/slotted-angular-wizard.mjs.map +1 -1
- package/package.json +3 -3
- package/types/slotted-angular-alert.d.ts +10 -2
- package/types/slotted-angular-alert.d.ts.map +1 -1
- package/types/slotted-angular-button.d.ts +34 -1
- package/types/slotted-angular-button.d.ts.map +1 -1
package/docs/alert.json
CHANGED
|
@@ -29,6 +29,10 @@
|
|
|
29
29
|
"off",
|
|
30
30
|
"polite",
|
|
31
31
|
"assertive"
|
|
32
|
+
],
|
|
33
|
+
"actionsPlacement": [
|
|
34
|
+
"below",
|
|
35
|
+
"end"
|
|
32
36
|
]
|
|
33
37
|
},
|
|
34
38
|
"members": {
|
|
@@ -147,6 +151,13 @@
|
|
|
147
151
|
"appliesTo": "slAlert",
|
|
148
152
|
"description": "Whether the text announces itself. polite writes role=\"status\" on the slAlertContent element and assertive writes role=\"alert\"; both imply aria-live and aria-atomic, and neither is written on the box"
|
|
149
153
|
},
|
|
154
|
+
{
|
|
155
|
+
"name": "actionsPlacement",
|
|
156
|
+
"type": "'below' | 'end'",
|
|
157
|
+
"defaultValue": "end for reach='page', below otherwise",
|
|
158
|
+
"appliesTo": "slAlert",
|
|
159
|
+
"description": "Where the actions stand. below puts them on a row under the words; end puts them at the end of the words’ line, before the dismiss control, once the box is 40rem wide, and under the words below that width"
|
|
160
|
+
},
|
|
150
161
|
{
|
|
151
162
|
"name": "hideIcon",
|
|
152
163
|
"type": "boolean",
|
|
@@ -372,9 +383,9 @@
|
|
|
372
383
|
{
|
|
373
384
|
"id": "actions",
|
|
374
385
|
"title": "What the message asks for",
|
|
375
|
-
"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.",
|
|
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.",
|
|
376
387
|
"language": "html",
|
|
377
|
-
"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 size=\"sm\" tone=\"warning\" type=\"button\">Renovar</button>\n <button slButton size=\"sm\" tone=\"warning\" variant=\"ghost\" type=\"button\">Ver planos</button>\n </div>\n</section>\n",
|
|
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 size=\"sm\" tone=\"warning\" type=\"button\">Renovar</button>\n <button slButton size=\"sm\" tone=\"warning\" 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 size=\"sm\" type=\"button\">Aplicar</button>\n </div>\n</section>\n",
|
|
378
389
|
"verdict": "excerpt"
|
|
379
390
|
},
|
|
380
391
|
{
|
package/docs/alert.md
CHANGED
|
@@ -52,6 +52,7 @@ Excerpt — not a complete module
|
|
|
52
52
|
| `variant` | `'soft' \| 'outline' \| 'solid'` | soft | slAlert | How that colour is painted. soft carries the tone’s surface and its border, outline the border alone, solid the tone’s fill and the ink the theme measures against it |
|
|
53
53
|
| `reach` | `'inline' \| 'section' \| 'page'` | section | slAlert | The scope the message applies to. inline is tightest and sits beside a field group; page loses its corners and its inline edges because it runs to both edges of what holds it |
|
|
54
54
|
| `live` | `'off' \| 'polite' \| 'assertive'` | off | slAlert | Whether the text announces itself. polite writes role="status" on the slAlertContent element and assertive writes role="alert"; both imply aria-live and aria-atomic, and neither is written on the box |
|
|
55
|
+
| `actionsPlacement` | `'below' \| 'end'` | end for reach='page', below otherwise | slAlert | Where the actions stand. below puts them on a row under the words; end puts them at the end of the words’ line, before the dismiss control, once the box is 40rem wide, and under the words below that width |
|
|
55
56
|
| `hideIcon` | `boolean` | false | slAlert | Draws no mark at all, for a callout that carries its own artwork in the body |
|
|
56
57
|
| `dismissible` | `boolean` | false | slAlert | Renders the control that closes the message. Angular cannot see whether an output is subscribed, so the opt-in is stated — the asymmetry with React that tag recorded first |
|
|
57
58
|
| `messages` | `Partial<AlertMessages>` | — | slAlert | Words laid over the language in force, key by key: what that control announces (dismiss) |
|
|
@@ -78,6 +79,7 @@ Excerpt — not a complete module
|
|
|
78
79
|
| `variant` | `soft`, `outline`, `solid` | `soft` |
|
|
79
80
|
| `reach` | `inline`, `section`, `page` | `section` |
|
|
80
81
|
| `live` | `off`, `polite`, `assertive` | `off` |
|
|
82
|
+
| `actionsPlacement` | `below`, `end` | — |
|
|
81
83
|
|
|
82
84
|
## Rules
|
|
83
85
|
|
|
@@ -161,7 +163,7 @@ Excerpt — not a complete module
|
|
|
161
163
|
|
|
162
164
|
### What the message asks for
|
|
163
165
|
|
|
164
|
-
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.
|
|
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.
|
|
165
167
|
|
|
166
168
|
Excerpt — not a complete module
|
|
167
169
|
|
|
@@ -175,6 +177,15 @@ Excerpt — not a complete module
|
|
|
175
177
|
<button slButton size="sm" tone="warning" variant="ghost" type="button">Ver planos</button>
|
|
176
178
|
</div>
|
|
177
179
|
</section>
|
|
180
|
+
|
|
181
|
+
<section slAlert actionsPlacement="end">
|
|
182
|
+
<div slAlertContent>
|
|
183
|
+
<p slAlertDescription>A sugestão altera três linhas do plano.</p>
|
|
184
|
+
</div>
|
|
185
|
+
<div slAlertActions>
|
|
186
|
+
<button slButton size="sm" type="button">Aplicar</button>
|
|
187
|
+
</div>
|
|
188
|
+
</section>
|
|
178
189
|
```
|
|
179
190
|
|
|
180
191
|
### What a reader hears, and when
|
package/docs/button.examples.md
CHANGED
|
@@ -79,6 +79,21 @@ Excerpt — not a complete module
|
|
|
79
79
|
</button>
|
|
80
80
|
```
|
|
81
81
|
|
|
82
|
+
### Previous and next record
|
|
83
|
+
|
|
84
|
+
Excerpt — not a complete module
|
|
85
|
+
|
|
86
|
+
```html
|
|
87
|
+
<div slButtonGroup aria-label="Records">
|
|
88
|
+
<a slIconButtonLink aria-label="Previous record" routerLink="/records/1">
|
|
89
|
+
<ng-icon aria-hidden="true" name="lucideChevronLeft"></ng-icon>
|
|
90
|
+
</a>
|
|
91
|
+
<a slIconButtonLink aria-label="Next record" routerLink="/records/3">
|
|
92
|
+
<ng-icon aria-hidden="true" name="lucideChevronRight"></ng-icon>
|
|
93
|
+
</a>
|
|
94
|
+
</div>
|
|
95
|
+
```
|
|
96
|
+
|
|
82
97
|
### A toggle that owns its own state
|
|
83
98
|
|
|
84
99
|
Excerpt — not a complete module
|
package/docs/button.json
CHANGED
|
@@ -138,6 +138,32 @@
|
|
|
138
138
|
"indicator"
|
|
139
139
|
]
|
|
140
140
|
},
|
|
141
|
+
"iconButtonLink": {
|
|
142
|
+
"nativeElement": "a",
|
|
143
|
+
"defaults": {
|
|
144
|
+
"tone": "secondary",
|
|
145
|
+
"variant": "ghost",
|
|
146
|
+
"size": "md",
|
|
147
|
+
"shape": "square",
|
|
148
|
+
"disabled": false
|
|
149
|
+
},
|
|
150
|
+
"capabilities": [
|
|
151
|
+
"appearance",
|
|
152
|
+
"shape",
|
|
153
|
+
"disabled"
|
|
154
|
+
],
|
|
155
|
+
"states": [
|
|
156
|
+
"default",
|
|
157
|
+
"hover",
|
|
158
|
+
"active",
|
|
159
|
+
"focus-visible",
|
|
160
|
+
"disabled"
|
|
161
|
+
],
|
|
162
|
+
"parts": [
|
|
163
|
+
"root",
|
|
164
|
+
"icon"
|
|
165
|
+
]
|
|
166
|
+
},
|
|
141
167
|
"toggleButton": {
|
|
142
168
|
"nativeElement": "button",
|
|
143
169
|
"defaults": {
|
|
@@ -574,6 +600,86 @@
|
|
|
574
600
|
"Add a tooltip when the icon alone does not say what the action does. The accessible name does not replace a visible label."
|
|
575
601
|
]
|
|
576
602
|
},
|
|
603
|
+
"iconButtonLink": {
|
|
604
|
+
"imports": {
|
|
605
|
+
"source": "import {\n provideButtonDefaults,\n SlButton,\n SlButtonEnd,\n SlButtonLink,\n SlButtonStart,\n SlIconButton,\n SlToggleButton,\n} from '@slotted/angular/button';",
|
|
606
|
+
"selector": "a[slIconButtonLink]",
|
|
607
|
+
"exportAs": "slIconButtonLink"
|
|
608
|
+
},
|
|
609
|
+
"anatomy": [
|
|
610
|
+
{
|
|
611
|
+
"part": "root",
|
|
612
|
+
"element": "the anchor element you write",
|
|
613
|
+
"required": true,
|
|
614
|
+
"purpose": "The control. Carries data-ui=\"button\", data-tone, data-variant and data-size. It also carries data-shape, and data-disabled when it applies."
|
|
615
|
+
},
|
|
616
|
+
{
|
|
617
|
+
"part": "icon",
|
|
618
|
+
"element": "span",
|
|
619
|
+
"required": true,
|
|
620
|
+
"purpose": "Wraps the projected icon."
|
|
621
|
+
}
|
|
622
|
+
],
|
|
623
|
+
"api": [
|
|
624
|
+
{
|
|
625
|
+
"name": "aria-label | aria-labelledby",
|
|
626
|
+
"type": "string",
|
|
627
|
+
"defaultValue": "required",
|
|
628
|
+
"appliesTo": "SlIconButtonLink",
|
|
629
|
+
"description": "The accessible name. Required, because an icon supplies no text; a missing name throws in development. When both are present, aria-labelledby names the link."
|
|
630
|
+
},
|
|
631
|
+
{
|
|
632
|
+
"name": "href",
|
|
633
|
+
"type": "string",
|
|
634
|
+
"defaultValue": "—",
|
|
635
|
+
"appliesTo": "SlIconButtonLink",
|
|
636
|
+
"description": "The destination. A disabled SlIconButtonLink does not render it."
|
|
637
|
+
},
|
|
638
|
+
{
|
|
639
|
+
"name": "tone",
|
|
640
|
+
"type": "accent | secondary | neutral | info | success | warning | danger",
|
|
641
|
+
"defaultValue": "secondary",
|
|
642
|
+
"appliesTo": "SlIconButtonLink",
|
|
643
|
+
"description": "The semantic colour: accent for the primary action, secondary for a neutral one, neutral for a primary action drawn in ink where the accent is kept for data, and success, warning or danger for what the action does."
|
|
644
|
+
},
|
|
645
|
+
{
|
|
646
|
+
"name": "variant",
|
|
647
|
+
"type": "solid | outline | ghost",
|
|
648
|
+
"defaultValue": "ghost",
|
|
649
|
+
"appliesTo": "SlIconButtonLink",
|
|
650
|
+
"description": "How the tone is painted: solid, outline or ghost."
|
|
651
|
+
},
|
|
652
|
+
{
|
|
653
|
+
"name": "size",
|
|
654
|
+
"type": "sm | md | lg",
|
|
655
|
+
"defaultValue": "md",
|
|
656
|
+
"appliesTo": "SlIconButtonLink",
|
|
657
|
+
"description": "The step of the control scale. Each step reads the --slotted-control-* tokens, so the density of the theme sets the height."
|
|
658
|
+
},
|
|
659
|
+
{
|
|
660
|
+
"name": "shape",
|
|
661
|
+
"type": "square | circle",
|
|
662
|
+
"defaultValue": "square",
|
|
663
|
+
"appliesTo": "SlIconButtonLink",
|
|
664
|
+
"description": "The corners of the control: square keeps the radius of the control scale, circle rounds it fully. Both are as wide as they are tall."
|
|
665
|
+
},
|
|
666
|
+
{
|
|
667
|
+
"name": "disabled",
|
|
668
|
+
"type": "boolean",
|
|
669
|
+
"defaultValue": "false",
|
|
670
|
+
"appliesTo": "SlIconButtonLink",
|
|
671
|
+
"description": "Removes the href and refuses activation. The link stays focusable with role=\"link\" and aria-disabled."
|
|
672
|
+
}
|
|
673
|
+
],
|
|
674
|
+
"composition": [],
|
|
675
|
+
"events": [],
|
|
676
|
+
"accessibility": [
|
|
677
|
+
"SlIconButtonLink applies to an anchor, so it is announced as a link and activates on Enter. Use it for an icon-only control that navigates, such as the previous and next record; an icon-only action is an SlIconButton.",
|
|
678
|
+
"An accessible name is required: pass aria-label or aria-labelledby. An icon supplies no text the name could be computed from.",
|
|
679
|
+
"routerLink works on the same anchor and writes its href. Do not also set href.",
|
|
680
|
+
"A disabled SlIconButtonLink renders no href and stays in the tab sequence with role=\"link\" and aria-disabled."
|
|
681
|
+
]
|
|
682
|
+
},
|
|
577
683
|
"toggleButton": {
|
|
578
684
|
"imports": {
|
|
579
685
|
"source": "import {\n provideButtonDefaults,\n SlButton,\n SlButtonEnd,\n SlButtonLink,\n SlButtonStart,\n SlIconButton,\n SlToggleButton,\n} from '@slotted/angular/button';",
|
|
@@ -877,6 +983,14 @@
|
|
|
877
983
|
"source": "<button slIconButton aria-label=\"Bold\" [pressed]=\"bold()\" (pressedChange)=\"bold.set($event.value)\">\n <ng-icon aria-hidden=\"true\" name=\"lucideBold\" />\n</button>\n",
|
|
878
984
|
"verdict": "excerpt"
|
|
879
985
|
},
|
|
986
|
+
{
|
|
987
|
+
"id": "angular-icon-button-link-router",
|
|
988
|
+
"title": "Previous and next record",
|
|
989
|
+
"note": null,
|
|
990
|
+
"language": "html",
|
|
991
|
+
"source": "<div slButtonGroup aria-label=\"Records\">\n <a slIconButtonLink aria-label=\"Previous record\" routerLink=\"/records/1\">\n <ng-icon aria-hidden=\"true\" name=\"lucideChevronLeft\"></ng-icon>\n </a>\n <a slIconButtonLink aria-label=\"Next record\" routerLink=\"/records/3\">\n <ng-icon aria-hidden=\"true\" name=\"lucideChevronRight\"></ng-icon>\n </a>\n</div>\n",
|
|
992
|
+
"verdict": "excerpt"
|
|
993
|
+
},
|
|
880
994
|
{
|
|
881
995
|
"id": "angular-toggle-button-uncontrolled",
|
|
882
996
|
"title": "A toggle that owns its own state",
|
package/docs/button.md
CHANGED
|
@@ -23,6 +23,8 @@ Selector: `a[slButtonLink]` · exportAs: `slButtonLink`
|
|
|
23
23
|
|
|
24
24
|
Selector: `button[slIconButton]` · exportAs: `slIconButton`
|
|
25
25
|
|
|
26
|
+
Selector: `a[slIconButtonLink]` · exportAs: `slIconButtonLink`
|
|
27
|
+
|
|
26
28
|
Selector: `button[slToggleButton]` · exportAs: `slToggleButton`
|
|
27
29
|
|
|
28
30
|
## Minimal example
|
|
@@ -74,6 +76,13 @@ export class ButtonBasic {
|
|
|
74
76
|
| `icon` | span | yes |
|
|
75
77
|
| `indicator` | span with role="progressbar" | no |
|
|
76
78
|
|
|
79
|
+
### iconButtonLink
|
|
80
|
+
|
|
81
|
+
| Part | Element | Required |
|
|
82
|
+
| --- | --- | --- |
|
|
83
|
+
| `root` | the anchor element you write | yes |
|
|
84
|
+
| `icon` | span | yes |
|
|
85
|
+
|
|
77
86
|
### toggleButton
|
|
78
87
|
|
|
79
88
|
| Part | Element | Required |
|
|
@@ -138,6 +147,18 @@ export class ButtonBasic {
|
|
|
138
147
|
| `pressedChange` | `ChangeRequest<boolean>` | — | SlIconButton | Emits the request: value, previous value, reason (pointer or keyboard), event and cancel(). |
|
|
139
148
|
| `type` | `button \| submit \| reset` | button | SlIconButton | The native button type. Set submit only for a button that submits its form. |
|
|
140
149
|
|
|
150
|
+
### iconButtonLink
|
|
151
|
+
|
|
152
|
+
| Name | Type | Default | Applies to | Description |
|
|
153
|
+
| --- | --- | --- | --- | --- |
|
|
154
|
+
| `aria-label \| aria-labelledby` | `string` | required | SlIconButtonLink | The accessible name. Required, because an icon supplies no text; a missing name throws in development. When both are present, aria-labelledby names the link. |
|
|
155
|
+
| `href` | `string` | — | SlIconButtonLink | The destination. A disabled SlIconButtonLink does not render it. |
|
|
156
|
+
| `tone` | `accent \| secondary \| neutral \| info \| success \| warning \| danger` | secondary | SlIconButtonLink | The semantic colour: accent for the primary action, secondary for a neutral one, neutral for a primary action drawn in ink where the accent is kept for data, and success, warning or danger for what the action does. |
|
|
157
|
+
| `variant` | `solid \| outline \| ghost` | ghost | SlIconButtonLink | How the tone is painted: solid, outline or ghost. |
|
|
158
|
+
| `size` | `sm \| md \| lg` | md | SlIconButtonLink | The step of the control scale. Each step reads the --slotted-control-* tokens, so the density of the theme sets the height. |
|
|
159
|
+
| `shape` | `square \| circle` | square | SlIconButtonLink | The corners of the control: square keeps the radius of the control scale, circle rounds it fully. Both are as wide as they are tall. |
|
|
160
|
+
| `disabled` | `boolean` | false | SlIconButtonLink | Removes the href and refuses activation. The link stays focusable with role="link" and aria-disabled. |
|
|
161
|
+
|
|
141
162
|
### toggleButton
|
|
142
163
|
|
|
143
164
|
| Name | Type | Default | Applies to | Description |
|
|
@@ -188,6 +209,9 @@ export class ButtonBasic {
|
|
|
188
209
|
- A pressed icon button uses the selected colours of the theme — accent text on the accent selection background, inside the accent edge — whatever its tone and variant. On hover it uses the hover step of that background, not the neutral hover of an unpressed button.
|
|
189
210
|
- The control is as wide as it is tall, at the control height, and never smaller than the WCAG 2.2 minimum target of 24 by 24 CSS pixels at any density.
|
|
190
211
|
- Add a tooltip when the icon alone does not say what the action does. The accessible name does not replace a visible label.
|
|
212
|
+
- SlIconButtonLink applies to an anchor, so it is announced as a link and activates on Enter. Use it for an icon-only control that navigates, such as the previous and next record; an icon-only action is an SlIconButton.
|
|
213
|
+
- An accessible name is required: pass aria-label or aria-labelledby. An icon supplies no text the name could be computed from.
|
|
214
|
+
- A disabled SlIconButtonLink renders no href and stays in the tab sequence with role="link" and aria-disabled.
|
|
191
215
|
- SlToggleButton applies to a native button and sets aria-pressed, so it is announced as a toggle button and activates on Space and Enter.
|
|
192
216
|
- Keep the label the same in both states: "Mute" stays "Mute" and the state is announced beside it. When the label has to change, use SlButton.
|
|
193
217
|
- There is no [(pressed)]: a two-way binding carries only the value, and the change request also carries the reason and cancel(). One output, pressedChange, carries the whole request.
|
|
@@ -121,6 +121,9 @@ class SlAlert {
|
|
|
121
121
|
/** Defaults to the provider, then to `off`. */
|
|
122
122
|
live = input(undefined, /* @ts-ignore */
|
|
123
123
|
...(ngDevMode ? [{ debugName: "live" }] : /* istanbul ignore next */ []));
|
|
124
|
+
/** Defaults to `end` for a `page` banner and to `below` for every other reach. */
|
|
125
|
+
actionsPlacement = input(undefined, /* @ts-ignore */
|
|
126
|
+
...(ngDevMode ? [{ debugName: "actionsPlacement" }] : /* istanbul ignore next */ []));
|
|
124
127
|
/** Draws no mark at all, for a callout carrying its own artwork. */
|
|
125
128
|
hideIcon = input(false, { ...(ngDevMode ? { debugName: "hideIcon" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
126
129
|
/**
|
|
@@ -180,6 +183,8 @@ class SlAlert {
|
|
|
180
183
|
...(ngDevMode ? [{ debugName: "resolvedVariant" }] : /* istanbul ignore next */ []));
|
|
181
184
|
resolvedReach = computed(() => this.reach() ?? this.defaults.reach, /* @ts-ignore */
|
|
182
185
|
...(ngDevMode ? [{ debugName: "resolvedReach" }] : /* istanbul ignore next */ []));
|
|
186
|
+
resolvedActionsPlacement = computed(() => this.actionsPlacement() ?? (this.resolvedReach() === 'page' ? 'end' : 'below'), /* @ts-ignore */
|
|
187
|
+
...(ngDevMode ? [{ debugName: "resolvedActionsPlacement" }] : /* istanbul ignore next */ []));
|
|
183
188
|
resolvedLive = computed(() => this.live() ?? this.defaults.live, /* @ts-ignore */
|
|
184
189
|
...(ngDevMode ? [{ debugName: "resolvedLive" }] : /* istanbul ignore next */ []));
|
|
185
190
|
isOpen = computed(() => this.open() ?? this.own() ?? this.defaultOpen(), /* @ts-ignore */
|
|
@@ -257,7 +262,7 @@ class SlAlert {
|
|
|
257
262
|
target.focus();
|
|
258
263
|
}
|
|
259
264
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlAlert, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
260
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.7", type: SlAlert, isStandalone: true, selector: "[slAlert]", inputs: { tone: { classPropertyName: "tone", publicName: "tone", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, reach: { classPropertyName: "reach", publicName: "reach", isSignal: true, isRequired: false, transformFunction: null }, live: { classPropertyName: "live", publicName: "live", isSignal: true, isRequired: false, transformFunction: null }, hideIcon: { classPropertyName: "hideIcon", publicName: "hideIcon", isSignal: true, isRequired: false, transformFunction: null }, dismissible: { classPropertyName: "dismissible", publicName: "dismissible", isSignal: true, isRequired: false, transformFunction: null }, messages: { classPropertyName: "messages", publicName: "messages", isSignal: true, isRequired: false, transformFunction: null }, open: { classPropertyName: "open", publicName: "open", isSignal: true, isRequired: false, transformFunction: null }, defaultOpen: { classPropertyName: "defaultOpen", publicName: "defaultOpen", isSignal: true, isRequired: false, transformFunction: null }, restoreFocus: { classPropertyName: "restoreFocus", publicName: "restoreFocus", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { openChange: "openChange" }, host: { attributes: { "data-ui": "alert", "data-ui-alert": "", "data-part": "root", "data-part-root": "" }, listeners: { "focusin": "onFocusIn($event)", "focusout": "onFocusOut($event)" }, properties: { "attr.data-tone": "resolvedTone()", "attr.data-variant": "resolvedVariant()", "attr.data-reach": "resolvedReach()", "attr.data-live": "resolvedLive()", "attr.data-open": "isOpen() ? '' : null", "attr.hidden": "isOpen() ? null : ''", "attr.tabindex": "writtenTabIndex ?? -1", "attr.aria-labelledby": "labelledBy()" } }, queries: [{ propertyName: "suppliedIcon", first: true, predicate: SlAlertIcon, descendants: true, isSignal: true }], exportAs: ["slAlert"], ngImport: i0, template: `@if (!hideIcon() && (glyph() || suppliedIcon())) {
|
|
265
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.7", type: SlAlert, isStandalone: true, selector: "[slAlert]", inputs: { tone: { classPropertyName: "tone", publicName: "tone", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, reach: { classPropertyName: "reach", publicName: "reach", isSignal: true, isRequired: false, transformFunction: null }, live: { classPropertyName: "live", publicName: "live", isSignal: true, isRequired: false, transformFunction: null }, actionsPlacement: { classPropertyName: "actionsPlacement", publicName: "actionsPlacement", isSignal: true, isRequired: false, transformFunction: null }, hideIcon: { classPropertyName: "hideIcon", publicName: "hideIcon", isSignal: true, isRequired: false, transformFunction: null }, dismissible: { classPropertyName: "dismissible", publicName: "dismissible", isSignal: true, isRequired: false, transformFunction: null }, messages: { classPropertyName: "messages", publicName: "messages", isSignal: true, isRequired: false, transformFunction: null }, open: { classPropertyName: "open", publicName: "open", isSignal: true, isRequired: false, transformFunction: null }, defaultOpen: { classPropertyName: "defaultOpen", publicName: "defaultOpen", isSignal: true, isRequired: false, transformFunction: null }, restoreFocus: { classPropertyName: "restoreFocus", publicName: "restoreFocus", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { openChange: "openChange" }, host: { attributes: { "data-ui": "alert", "data-ui-alert": "", "data-part": "root", "data-part-root": "" }, listeners: { "focusin": "onFocusIn($event)", "focusout": "onFocusOut($event)" }, properties: { "attr.data-tone": "resolvedTone()", "attr.data-variant": "resolvedVariant()", "attr.data-reach": "resolvedReach()", "attr.data-actions-placement": "resolvedActionsPlacement()", "attr.data-live": "resolvedLive()", "attr.data-open": "isOpen() ? '' : null", "attr.hidden": "isOpen() ? null : ''", "attr.tabindex": "writtenTabIndex ?? -1", "attr.aria-labelledby": "labelledBy()" } }, queries: [{ propertyName: "suppliedIcon", first: true, predicate: SlAlertIcon, descendants: true, isSignal: true }], exportAs: ["slAlert"], ngImport: i0, template: `@if (!hideIcon() && (glyph() || suppliedIcon())) {
|
|
261
266
|
<span aria-hidden="true" data-part="icon" data-part-icon=""
|
|
262
267
|
><ng-content select="[slAlertIcon]">
|
|
263
268
|
@if (glyph(); as name) {
|
|
@@ -276,7 +281,7 @@ class SlAlert {
|
|
|
276
281
|
>
|
|
277
282
|
<span slIcon><svg slGlyph name="x"></svg></span>
|
|
278
283
|
</button>
|
|
279
|
-
}`, isInline: true, styles: ["@layer slotted.components{[data-ui-alert][data-part-root]{--_solid: var(--slotted-tone-accent-solid);--_on-solid: var(--slotted-tone-accent-on-solid);--_surface: var(--slotted-tone-accent-surface);--_border: var(--slotted-tone-accent-border);--_text: var(--slotted-tone-accent-text);--_state-hover: color-mix( in oklab, currentcolor var(--slotted-alert-state-layer-hover, 10%), transparent );--_state-active: color-mix( in oklab, currentcolor var(--slotted-alert-state-layer-active, 16%), transparent );--_font-size: var(--slotted-control-font-size-md, 13px);--_description-font-size: var(--slotted-control-font-size-md, 13px);--_glyph-size: var(--slotted-control-icon-size-md, 16px);--_inner-size: var(--slotted-control-inner-size-md, 24px);--_mark-size: round(nearest, 1.2em, 2px);--_line-height: var(--slotted-line-height-md, 1.5);--_inset-block: var(--slotted-alert-padding-block, var(--slotted-space-5, .75rem));--_inset-inline: var(--slotted-alert-padding-inline, var(--slotted-space-6, 1rem));--_column-gap: var(--slotted-alert-column-gap, var(--slotted-space-4, .5rem));--_row-gap: var(--slotted-alert-row-gap, var(--slotted-space-5, .75rem));--_text-gap: var(--slotted-alert-text-gap, var(--slotted-space-2, .25rem));--_radius: var(--slotted-alert-radius, var(--slotted-radius-md, 6px));--_border-width: var(--slotted-alert-border-width, var(--slotted-border-width-thin, 1px));--_dismiss-size: var( --slotted-alert-dismiss-size, max( var(--slotted-target-min, 24px), min(calc(var(--_glyph-size) + 2 * var(--slotted-space-2, .25rem)), var(--_inner-size)) ) );container-name:slotted-alert;container-type:inline-size;inline-size:100%;background-color:transparent;border:var(--_border-width) solid transparent;border-radius:var(--_radius);box-sizing:border-box;color:var(--_text);column-gap:0;display:grid;font-family:var(--slotted-alert-font-family, var(--slotted-control-font-family, sans-serif));font-size:var(--_font-size);grid-template-columns:auto minmax(0,1fr) auto;line-height:round(nearest,calc(var(--_line-height) * 1em),2px);padding-block:var(--_inset-block);padding-inline:var(--_inset-inline);row-gap:var(--_row-gap);transition:opacity var(--slotted-duration-short) var(--slotted-easing-enter),translate var(--slotted-duration-short) var(--slotted-easing-enter),display var(--slotted-duration-short) var(--slotted-easing-enter);transition-behavior:allow-discrete}[data-ui-alert][data-part-root][hidden]{display:none;opacity:0;transition:opacity var(--slotted-duration-short) var(--slotted-easing-exit),translate var(--slotted-duration-short) var(--slotted-easing-exit),display var(--slotted-duration-short) var(--slotted-easing-exit);translate:0 calc(-1 * var(--slotted-space-2, .25rem))}@starting-style{[data-ui-alert][data-part-root]:is([data-live=polite],[data-live=assertive]){opacity:0;translate:0 calc(-1 * var(--slotted-space-2, .25rem))}}[data-ui-alert][data-part-root][data-tone=accent]{--_solid: var(--slotted-tone-accent-solid);--_on-solid: var(--slotted-tone-accent-on-solid);--_surface: var(--slotted-tone-accent-surface);--_border: var(--slotted-tone-accent-border);--_text: var(--slotted-tone-accent-text)}[data-ui-alert][data-part-root][data-tone=secondary]{--_solid: var(--slotted-tone-secondary-solid);--_on-solid: var(--slotted-tone-secondary-on-solid);--_surface: var(--slotted-tone-secondary-surface);--_border: var(--slotted-tone-secondary-border);--_text: var(--slotted-tone-secondary-text)}[data-ui-alert][data-part-root][data-tone=success]{--_solid: var(--slotted-tone-success-solid);--_on-solid: var(--slotted-tone-success-on-solid);--_surface: var(--slotted-tone-success-surface);--_border: var(--slotted-tone-success-border);--_text: var(--slotted-tone-success-text)}[data-ui-alert][data-part-root][data-tone=info]{--_solid: var(--slotted-tone-info-solid);--_on-solid: var(--slotted-tone-info-on-solid);--_surface: var(--slotted-tone-info-surface);--_border: var(--slotted-tone-info-border);--_text: var(--slotted-tone-info-text)}[data-ui-alert][data-part-root][data-tone=warning]{--_solid: var(--slotted-tone-warning-solid);--_on-solid: var(--slotted-tone-warning-on-solid);--_surface: var(--slotted-tone-warning-surface);--_border: var(--slotted-tone-warning-border);--_text: var(--slotted-tone-warning-text)}[data-ui-alert][data-part-root][data-tone=danger]{--_solid: var(--slotted-tone-danger-solid);--_on-solid: var(--slotted-tone-danger-on-solid);--_surface: var(--slotted-tone-danger-surface);--_border: var(--slotted-tone-danger-border);--_text: var(--slotted-tone-danger-text)}[data-ui-alert][data-part-root][data-variant=soft]{background-color:var(--_surface);border-color:var(--_border)}[data-ui-alert][data-part-root][data-variant=outline]{background-color:transparent;border-color:var(--_border)}[data-ui-alert][data-part-root][data-variant=solid]{background-color:var(--_solid);border-color:var(--_solid);color:var(--_on-solid)}[data-ui-alert][data-part-root][data-reach=inline]{--_font-size: var(--slotted-control-font-size-sm, 12px);--_description-font-size: var(--slotted-control-font-size-sm, 12px);--_glyph-size: var(--slotted-control-icon-size-sm, 14px);--_inner-size: var(--slotted-control-inner-size-sm, 22px);--_inset-block: var(--slotted-alert-padding-block, var(--slotted-space-4, .5rem));--_inset-inline: var(--slotted-alert-padding-inline, var(--slotted-space-5, .75rem));--_row-gap: var(--slotted-alert-row-gap, var(--slotted-space-4, .5rem));--_radius: var(--slotted-alert-radius, var(--slotted-radius-sm, 4px))}[data-ui-alert][data-part-root][data-reach=page]{--_font-size: var(--slotted-control-font-size-lg, 14px);--_glyph-size: var(--slotted-control-icon-size-lg, 18px);--_inner-size: var(--slotted-control-inner-size-lg, 28px);--_inset-block: var(--slotted-alert-padding-block, var(--slotted-space-6, 1rem));--_inset-inline: var(--slotted-alert-padding-inline, var(--slotted-space-7, 1.25rem));--_radius: var(--slotted-alert-radius, 0);border-block-start-width:0;border-inline-width:0}[data-ui-alert][data-part-root][data-reach=page][data-variant=solid]{border-block-start-width:var(--_border-width);border-inline-width:var(--_border-width)}[data-ui-alert]>[data-part-icon]{--slotted-icon-size: var(--_mark-size);align-items:center;align-self:baseline;block-size:var(--_mark-size);contain:layout;display:flex;grid-column:1;grid-row:1;inline-size:var(--_mark-size);inset-block-start:round(nearest,(var(--_mark-size) - 1cap) / 2,1px);justify-content:center;margin-block-start:calc(-1 * var(--_mark-size));margin-inline-end:var(--_column-gap);position:relative}[data-ui-alert]>[data-part-content]{align-self:baseline;display:grid;grid-column:2;grid-row:1;grid-template-columns:minmax(0,1fr);min-inline-size:0;row-gap:var(--_text-gap)}[data-ui-alert] [data-part-title]{font-family:var( --slotted-alert-title-font-family, var( --slotted-font-family-heading, var(--slotted-font-family-sans, ui-sans-serif, system-ui, sans-serif) ) );font-size:inherit;font-weight:var(--slotted-alert-title-font-weight, var(--slotted-font-weight-semibold, 600));line-height:inherit;margin:0;min-inline-size:0;overflow-wrap:anywhere}[data-ui-alert] [data-part-description]{font-size:var(--_description-font-size);line-height:round(nearest,calc(var(--_line-height) * 1em),2px);margin:0;min-inline-size:0;overflow-wrap:anywhere}[data-ui-alert]>[data-part-actions]{align-items:center;display:flex;flex-wrap:wrap;gap:var(--slotted-alert-actions-gap, var(--slotted-space-3, .375rem));grid-column:2;grid-row:2;min-inline-size:0}[data-ui-alert]>[data-part-dismiss]{--slotted-icon-size: var(--_glyph-size);align-items:center;align-self:start;appearance:none;background-color:transparent;block-size:var(--_dismiss-size);border:0;border-radius:var(--slotted-alert-dismiss-radius, var(--slotted-control-radius, 4px));color:inherit;cursor:pointer;display:inline-flex;flex:none;font:inherit;grid-column:3;grid-row:1;inline-size:var(--_dismiss-size);justify-content:center;margin-block-end:calc((1lh - var(--_dismiss-size)) / 2);margin-block-start:calc((1lh - var(--_dismiss-size)) / 2);margin-inline-end:calc((1lh - var(--_dismiss-size)) / 2);margin-inline-start:var(--_column-gap);padding:0;transition:background-color var(--slotted-control-transition-duration) var(--slotted-control-transition-easing),color var(--slotted-control-transition-duration) var(--slotted-control-transition-easing)}[data-ui-alert]>[data-part-dismiss]:enabled:hover{background-color:var(--_state-hover)}[data-ui-alert]>[data-part-dismiss]:enabled:active{background-color:var(--_state-active)}[data-ui-alert]>[data-part-dismiss]:disabled{color:var(--slotted-disabled-foreground);cursor:default}@media(pointer:coarse){[data-ui-alert]>[data-part-dismiss]{position:relative}[data-ui-alert]>[data-part-dismiss]:after{content:\"\";inset:min(0px,calc((100% - var(--slotted-target-comfortable, 44px)) / 2));position:absolute}}[data-ui-alert]>[data-part-dismiss]:focus-visible{outline:var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);outline-offset:calc(-1 * var(--slotted-focus-ring-width, 2px))}[data-ui-alert][data-variant=solid]>[data-part-dismiss]:focus-visible{box-shadow:inset 0 0 0 calc(2 * var(--slotted-focus-ring-width, 2px)) var(--_on-solid)}[data-ui-alert][data-part-root]:focus-visible{outline:var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);outline-offset:var(--slotted-focus-ring-offset, 2px)}@container slotted-alert (max-width: 22rem){[data-ui-alert]>[data-part-actions]{align-items:flex-start;flex-direction:column}}@container slotted-alert (min-width: 40rem){[data-ui-alert][data-reach=page]>[data-part-actions]{align-self:center;grid-column:3;grid-row:1;margin-inline-start:var(--_column-gap)}[data-ui-alert][data-reach=page]>[data-part-dismiss]{align-self:center;grid-column:4;margin-block:0}}@media(forced-colors:active){[data-ui-alert][data-part-root][data-variant]{background-color:Canvas;border-color:CanvasText;color:CanvasText}[data-ui-alert]>[data-part-dismiss]{color:CanvasText}[data-ui-alert]>[data-part-dismiss]:enabled:hover,[data-ui-alert]>[data-part-dismiss]:enabled:active{background-color:Highlight;color:HighlightText}}}\n"], dependencies: [{ kind: "component", type: SlGlyph, selector: "svg[slGlyph]", inputs: ["name", "solid"] }, { kind: "component", type: SlIcon, selector: "[slIcon]", inputs: ["directional", "label", "size", "tone"], exportAs: ["slIcon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
284
|
+
}`, isInline: true, styles: ["@layer slotted.components{[data-ui-alert][data-part-root]{--_solid: var(--slotted-tone-accent-solid);--_on-solid: var(--slotted-tone-accent-on-solid);--_surface: var(--slotted-tone-accent-surface);--_border: var(--slotted-tone-accent-border);--_text: var(--slotted-tone-accent-text);--_state-hover: color-mix( in oklab, currentcolor var(--slotted-alert-state-layer-hover, 10%), transparent );--_state-active: color-mix( in oklab, currentcolor var(--slotted-alert-state-layer-active, 16%), transparent );--_font-size: var(--slotted-control-font-size-md, 13px);--_description-font-size: var(--slotted-control-font-size-md, 13px);--_glyph-size: var(--slotted-control-icon-size-md, 16px);--_inner-size: var(--slotted-control-inner-size-md, 24px);--_mark-size: round(nearest, 1.2em, 2px);--_line-height: var(--slotted-line-height-md, 1.5);--_inset-block: var(--slotted-alert-padding-block, var(--slotted-space-5, .75rem));--_inset-inline: var(--slotted-alert-padding-inline, var(--slotted-space-6, 1rem));--_column-gap: var(--slotted-alert-column-gap, var(--slotted-space-4, .5rem));--_row-gap: var(--slotted-alert-row-gap, var(--slotted-space-5, .75rem));--_text-gap: var(--slotted-alert-text-gap, var(--slotted-space-2, .25rem));--_radius: var(--slotted-alert-radius, var(--slotted-radius-md, 6px));--_border-width: var(--slotted-alert-border-width, var(--slotted-border-width-thin, 1px));--_dismiss-size: var( --slotted-alert-dismiss-size, max( var(--slotted-target-min, 24px), min(calc(var(--_glyph-size) + 2 * var(--slotted-space-2, .25rem)), var(--_inner-size)) ) );container-name:slotted-alert;container-type:inline-size;inline-size:100%;background-color:transparent;border:var(--_border-width) solid transparent;border-radius:var(--_radius);box-sizing:border-box;color:var(--_text);column-gap:0;display:grid;font-family:var(--slotted-alert-font-family, var(--slotted-control-font-family, sans-serif));font-size:var(--_font-size);grid-template-columns:auto minmax(0,1fr) auto;line-height:round(nearest,calc(var(--_line-height) * 1em),2px);padding-block:var(--_inset-block);padding-inline:var(--_inset-inline);row-gap:var(--_row-gap);transition:opacity var(--slotted-duration-short) var(--slotted-easing-enter),translate var(--slotted-duration-short) var(--slotted-easing-enter),display var(--slotted-duration-short) var(--slotted-easing-enter);transition-behavior:allow-discrete}[data-ui-alert][data-part-root][hidden]{display:none;opacity:0;transition:opacity var(--slotted-duration-short) var(--slotted-easing-exit),translate var(--slotted-duration-short) var(--slotted-easing-exit),display var(--slotted-duration-short) var(--slotted-easing-exit);translate:0 calc(-1 * var(--slotted-space-2, .25rem))}@starting-style{[data-ui-alert][data-part-root]:is([data-live=polite],[data-live=assertive]){opacity:0;translate:0 calc(-1 * var(--slotted-space-2, .25rem))}}[data-ui-alert][data-part-root][data-tone=accent]{--_solid: var(--slotted-tone-accent-solid);--_on-solid: var(--slotted-tone-accent-on-solid);--_surface: var(--slotted-tone-accent-surface);--_border: var(--slotted-tone-accent-border);--_text: var(--slotted-tone-accent-text)}[data-ui-alert][data-part-root][data-tone=secondary]{--_solid: var(--slotted-tone-secondary-solid);--_on-solid: var(--slotted-tone-secondary-on-solid);--_surface: var(--slotted-tone-secondary-surface);--_border: var(--slotted-tone-secondary-border);--_text: var(--slotted-tone-secondary-text)}[data-ui-alert][data-part-root][data-tone=success]{--_solid: var(--slotted-tone-success-solid);--_on-solid: var(--slotted-tone-success-on-solid);--_surface: var(--slotted-tone-success-surface);--_border: var(--slotted-tone-success-border);--_text: var(--slotted-tone-success-text)}[data-ui-alert][data-part-root][data-tone=info]{--_solid: var(--slotted-tone-info-solid);--_on-solid: var(--slotted-tone-info-on-solid);--_surface: var(--slotted-tone-info-surface);--_border: var(--slotted-tone-info-border);--_text: var(--slotted-tone-info-text)}[data-ui-alert][data-part-root][data-tone=warning]{--_solid: var(--slotted-tone-warning-solid);--_on-solid: var(--slotted-tone-warning-on-solid);--_surface: var(--slotted-tone-warning-surface);--_border: var(--slotted-tone-warning-border);--_text: var(--slotted-tone-warning-text)}[data-ui-alert][data-part-root][data-tone=danger]{--_solid: var(--slotted-tone-danger-solid);--_on-solid: var(--slotted-tone-danger-on-solid);--_surface: var(--slotted-tone-danger-surface);--_border: var(--slotted-tone-danger-border);--_text: var(--slotted-tone-danger-text)}[data-ui-alert][data-part-root][data-variant=soft]{background-color:var(--_surface);border-color:var(--_border)}[data-ui-alert][data-part-root][data-variant=outline]{background-color:transparent;border-color:var(--_border)}[data-ui-alert][data-part-root][data-variant=solid]{background-color:var(--_solid);border-color:var(--_solid);color:var(--_on-solid)}[data-ui-alert][data-part-root][data-reach=inline]{--_font-size: var(--slotted-control-font-size-sm, 12px);--_description-font-size: var(--slotted-control-font-size-sm, 12px);--_glyph-size: var(--slotted-control-icon-size-sm, 14px);--_inner-size: var(--slotted-control-inner-size-sm, 22px);--_inset-block: var(--slotted-alert-padding-block, var(--slotted-space-4, .5rem));--_inset-inline: var(--slotted-alert-padding-inline, var(--slotted-space-5, .75rem));--_row-gap: var(--slotted-alert-row-gap, var(--slotted-space-4, .5rem));--_radius: var(--slotted-alert-radius, var(--slotted-radius-sm, 4px))}[data-ui-alert][data-part-root][data-reach=page]{--_font-size: var(--slotted-control-font-size-lg, 14px);--_glyph-size: var(--slotted-control-icon-size-lg, 18px);--_inner-size: var(--slotted-control-inner-size-lg, 28px);--_inset-block: var(--slotted-alert-padding-block, var(--slotted-space-6, 1rem));--_inset-inline: var(--slotted-alert-padding-inline, var(--slotted-space-7, 1.25rem));--_radius: var(--slotted-alert-radius, 0);border-block-start-width:0;border-inline-width:0}[data-ui-alert][data-part-root][data-reach=page][data-variant=solid]{border-block-start-width:var(--_border-width);border-inline-width:var(--_border-width)}[data-ui-alert]>[data-part-icon]{--slotted-icon-size: var(--_mark-size);align-items:center;align-self:baseline;block-size:var(--_mark-size);contain:layout;display:flex;grid-column:1;grid-row:1;inline-size:var(--_mark-size);inset-block-start:round(nearest,(var(--_mark-size) - 1cap) / 2,1px);justify-content:center;margin-block-start:calc(-1 * var(--_mark-size));margin-inline-end:var(--_column-gap);position:relative}[data-ui-alert]>[data-part-content]{align-self:baseline;display:grid;grid-column:2;grid-row:1;grid-template-columns:minmax(0,1fr);min-inline-size:0;row-gap:var(--_text-gap)}[data-ui-alert] [data-part-title]{font-family:var( --slotted-alert-title-font-family, var( --slotted-font-family-heading, var(--slotted-font-family-sans, ui-sans-serif, system-ui, sans-serif) ) );font-size:inherit;font-weight:var(--slotted-alert-title-font-weight, var(--slotted-font-weight-semibold, 600));line-height:inherit;margin:0;min-inline-size:0;overflow-wrap:anywhere}[data-ui-alert] [data-part-description]{font-size:var(--_description-font-size);line-height:round(nearest,calc(var(--_line-height) * 1em),2px);margin:0;min-inline-size:0;overflow-wrap:anywhere}[data-ui-alert]>[data-part-actions]{align-items:center;display:flex;flex-wrap:wrap;gap:var(--slotted-alert-actions-gap, var(--slotted-space-3, .375rem));grid-column:2;grid-row:2;min-inline-size:0}[data-ui-alert]>[data-part-dismiss]{--slotted-icon-size: var(--_glyph-size);align-items:center;align-self:start;appearance:none;background-color:transparent;block-size:var(--_dismiss-size);border:0;border-radius:var(--slotted-alert-dismiss-radius, var(--slotted-control-radius, 4px));color:inherit;cursor:pointer;display:inline-flex;flex:none;font:inherit;grid-column:3;grid-row:1;inline-size:var(--_dismiss-size);justify-content:center;margin-block-end:calc((1lh - var(--_dismiss-size)) / 2);margin-block-start:calc((1lh - var(--_dismiss-size)) / 2);margin-inline-end:calc((1lh - var(--_dismiss-size)) / 2);margin-inline-start:var(--_column-gap);padding:0;transition:background-color var(--slotted-control-transition-duration) var(--slotted-control-transition-easing),color var(--slotted-control-transition-duration) var(--slotted-control-transition-easing)}[data-ui-alert]>[data-part-dismiss]:enabled:hover{background-color:var(--_state-hover)}[data-ui-alert]>[data-part-dismiss]:enabled:active{background-color:var(--_state-active)}[data-ui-alert]>[data-part-dismiss]:disabled{color:var(--slotted-disabled-foreground);cursor:default}@media(pointer:coarse){[data-ui-alert]>[data-part-dismiss]{position:relative}[data-ui-alert]>[data-part-dismiss]:after{content:\"\";inset:min(0px,calc((100% - var(--slotted-target-comfortable, 44px)) / 2));position:absolute}}[data-ui-alert]>[data-part-dismiss]:focus-visible{outline:var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);outline-offset:calc(-1 * var(--slotted-focus-ring-width, 2px))}[data-ui-alert][data-variant=solid]>[data-part-dismiss]:focus-visible{box-shadow:inset 0 0 0 calc(2 * var(--slotted-focus-ring-width, 2px)) var(--_on-solid)}[data-ui-alert][data-part-root]:focus-visible{outline:var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);outline-offset:var(--slotted-focus-ring-offset, 2px)}@container slotted-alert (max-width: 22rem){[data-ui-alert]>[data-part-actions]{align-items:flex-start;flex-direction:column}}@container slotted-alert (min-width: 40rem){[data-ui-alert][data-actions-placement=end]>[data-part-actions]{align-self:baseline;grid-column:3;grid-row:1;margin-inline-start:var(--_column-gap)}[data-ui-alert][data-actions-placement=end]>[data-part-dismiss]{grid-column:4}}@media(forced-colors:active){[data-ui-alert][data-part-root][data-variant]{background-color:Canvas;border-color:CanvasText;color:CanvasText}[data-ui-alert]>[data-part-dismiss]{color:CanvasText}[data-ui-alert]>[data-part-dismiss]:enabled:hover,[data-ui-alert]>[data-part-dismiss]:enabled:active{background-color:Highlight;color:HighlightText}}}\n"], dependencies: [{ kind: "component", type: SlGlyph, selector: "svg[slGlyph]", inputs: ["name", "solid"] }, { kind: "component", type: SlIcon, selector: "[slIcon]", inputs: ["directional", "label", "size", "tone"], exportAs: ["slIcon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
280
285
|
}
|
|
281
286
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlAlert, decorators: [{
|
|
282
287
|
type: Component,
|
|
@@ -307,6 +312,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImpor
|
|
|
307
312
|
'[attr.data-tone]': 'resolvedTone()',
|
|
308
313
|
'[attr.data-variant]': 'resolvedVariant()',
|
|
309
314
|
'[attr.data-reach]': 'resolvedReach()',
|
|
315
|
+
'[attr.data-actions-placement]': 'resolvedActionsPlacement()',
|
|
310
316
|
'[attr.data-live]': 'resolvedLive()',
|
|
311
317
|
'[attr.data-open]': "isOpen() ? '' : null",
|
|
312
318
|
'[attr.hidden]': "isOpen() ? null : ''",
|
|
@@ -314,8 +320,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImpor
|
|
|
314
320
|
'[attr.aria-labelledby]': 'labelledBy()',
|
|
315
321
|
'(focusin)': 'onFocusIn($event)',
|
|
316
322
|
'(focusout)': 'onFocusOut($event)',
|
|
317
|
-
}, styles: ["@layer slotted.components{[data-ui-alert][data-part-root]{--_solid: var(--slotted-tone-accent-solid);--_on-solid: var(--slotted-tone-accent-on-solid);--_surface: var(--slotted-tone-accent-surface);--_border: var(--slotted-tone-accent-border);--_text: var(--slotted-tone-accent-text);--_state-hover: color-mix( in oklab, currentcolor var(--slotted-alert-state-layer-hover, 10%), transparent );--_state-active: color-mix( in oklab, currentcolor var(--slotted-alert-state-layer-active, 16%), transparent );--_font-size: var(--slotted-control-font-size-md, 13px);--_description-font-size: var(--slotted-control-font-size-md, 13px);--_glyph-size: var(--slotted-control-icon-size-md, 16px);--_inner-size: var(--slotted-control-inner-size-md, 24px);--_mark-size: round(nearest, 1.2em, 2px);--_line-height: var(--slotted-line-height-md, 1.5);--_inset-block: var(--slotted-alert-padding-block, var(--slotted-space-5, .75rem));--_inset-inline: var(--slotted-alert-padding-inline, var(--slotted-space-6, 1rem));--_column-gap: var(--slotted-alert-column-gap, var(--slotted-space-4, .5rem));--_row-gap: var(--slotted-alert-row-gap, var(--slotted-space-5, .75rem));--_text-gap: var(--slotted-alert-text-gap, var(--slotted-space-2, .25rem));--_radius: var(--slotted-alert-radius, var(--slotted-radius-md, 6px));--_border-width: var(--slotted-alert-border-width, var(--slotted-border-width-thin, 1px));--_dismiss-size: var( --slotted-alert-dismiss-size, max( var(--slotted-target-min, 24px), min(calc(var(--_glyph-size) + 2 * var(--slotted-space-2, .25rem)), var(--_inner-size)) ) );container-name:slotted-alert;container-type:inline-size;inline-size:100%;background-color:transparent;border:var(--_border-width) solid transparent;border-radius:var(--_radius);box-sizing:border-box;color:var(--_text);column-gap:0;display:grid;font-family:var(--slotted-alert-font-family, var(--slotted-control-font-family, sans-serif));font-size:var(--_font-size);grid-template-columns:auto minmax(0,1fr) auto;line-height:round(nearest,calc(var(--_line-height) * 1em),2px);padding-block:var(--_inset-block);padding-inline:var(--_inset-inline);row-gap:var(--_row-gap);transition:opacity var(--slotted-duration-short) var(--slotted-easing-enter),translate var(--slotted-duration-short) var(--slotted-easing-enter),display var(--slotted-duration-short) var(--slotted-easing-enter);transition-behavior:allow-discrete}[data-ui-alert][data-part-root][hidden]{display:none;opacity:0;transition:opacity var(--slotted-duration-short) var(--slotted-easing-exit),translate var(--slotted-duration-short) var(--slotted-easing-exit),display var(--slotted-duration-short) var(--slotted-easing-exit);translate:0 calc(-1 * var(--slotted-space-2, .25rem))}@starting-style{[data-ui-alert][data-part-root]:is([data-live=polite],[data-live=assertive]){opacity:0;translate:0 calc(-1 * var(--slotted-space-2, .25rem))}}[data-ui-alert][data-part-root][data-tone=accent]{--_solid: var(--slotted-tone-accent-solid);--_on-solid: var(--slotted-tone-accent-on-solid);--_surface: var(--slotted-tone-accent-surface);--_border: var(--slotted-tone-accent-border);--_text: var(--slotted-tone-accent-text)}[data-ui-alert][data-part-root][data-tone=secondary]{--_solid: var(--slotted-tone-secondary-solid);--_on-solid: var(--slotted-tone-secondary-on-solid);--_surface: var(--slotted-tone-secondary-surface);--_border: var(--slotted-tone-secondary-border);--_text: var(--slotted-tone-secondary-text)}[data-ui-alert][data-part-root][data-tone=success]{--_solid: var(--slotted-tone-success-solid);--_on-solid: var(--slotted-tone-success-on-solid);--_surface: var(--slotted-tone-success-surface);--_border: var(--slotted-tone-success-border);--_text: var(--slotted-tone-success-text)}[data-ui-alert][data-part-root][data-tone=info]{--_solid: var(--slotted-tone-info-solid);--_on-solid: var(--slotted-tone-info-on-solid);--_surface: var(--slotted-tone-info-surface);--_border: var(--slotted-tone-info-border);--_text: var(--slotted-tone-info-text)}[data-ui-alert][data-part-root][data-tone=warning]{--_solid: var(--slotted-tone-warning-solid);--_on-solid: var(--slotted-tone-warning-on-solid);--_surface: var(--slotted-tone-warning-surface);--_border: var(--slotted-tone-warning-border);--_text: var(--slotted-tone-warning-text)}[data-ui-alert][data-part-root][data-tone=danger]{--_solid: var(--slotted-tone-danger-solid);--_on-solid: var(--slotted-tone-danger-on-solid);--_surface: var(--slotted-tone-danger-surface);--_border: var(--slotted-tone-danger-border);--_text: var(--slotted-tone-danger-text)}[data-ui-alert][data-part-root][data-variant=soft]{background-color:var(--_surface);border-color:var(--_border)}[data-ui-alert][data-part-root][data-variant=outline]{background-color:transparent;border-color:var(--_border)}[data-ui-alert][data-part-root][data-variant=solid]{background-color:var(--_solid);border-color:var(--_solid);color:var(--_on-solid)}[data-ui-alert][data-part-root][data-reach=inline]{--_font-size: var(--slotted-control-font-size-sm, 12px);--_description-font-size: var(--slotted-control-font-size-sm, 12px);--_glyph-size: var(--slotted-control-icon-size-sm, 14px);--_inner-size: var(--slotted-control-inner-size-sm, 22px);--_inset-block: var(--slotted-alert-padding-block, var(--slotted-space-4, .5rem));--_inset-inline: var(--slotted-alert-padding-inline, var(--slotted-space-5, .75rem));--_row-gap: var(--slotted-alert-row-gap, var(--slotted-space-4, .5rem));--_radius: var(--slotted-alert-radius, var(--slotted-radius-sm, 4px))}[data-ui-alert][data-part-root][data-reach=page]{--_font-size: var(--slotted-control-font-size-lg, 14px);--_glyph-size: var(--slotted-control-icon-size-lg, 18px);--_inner-size: var(--slotted-control-inner-size-lg, 28px);--_inset-block: var(--slotted-alert-padding-block, var(--slotted-space-6, 1rem));--_inset-inline: var(--slotted-alert-padding-inline, var(--slotted-space-7, 1.25rem));--_radius: var(--slotted-alert-radius, 0);border-block-start-width:0;border-inline-width:0}[data-ui-alert][data-part-root][data-reach=page][data-variant=solid]{border-block-start-width:var(--_border-width);border-inline-width:var(--_border-width)}[data-ui-alert]>[data-part-icon]{--slotted-icon-size: var(--_mark-size);align-items:center;align-self:baseline;block-size:var(--_mark-size);contain:layout;display:flex;grid-column:1;grid-row:1;inline-size:var(--_mark-size);inset-block-start:round(nearest,(var(--_mark-size) - 1cap) / 2,1px);justify-content:center;margin-block-start:calc(-1 * var(--_mark-size));margin-inline-end:var(--_column-gap);position:relative}[data-ui-alert]>[data-part-content]{align-self:baseline;display:grid;grid-column:2;grid-row:1;grid-template-columns:minmax(0,1fr);min-inline-size:0;row-gap:var(--_text-gap)}[data-ui-alert] [data-part-title]{font-family:var( --slotted-alert-title-font-family, var( --slotted-font-family-heading, var(--slotted-font-family-sans, ui-sans-serif, system-ui, sans-serif) ) );font-size:inherit;font-weight:var(--slotted-alert-title-font-weight, var(--slotted-font-weight-semibold, 600));line-height:inherit;margin:0;min-inline-size:0;overflow-wrap:anywhere}[data-ui-alert] [data-part-description]{font-size:var(--_description-font-size);line-height:round(nearest,calc(var(--_line-height) * 1em),2px);margin:0;min-inline-size:0;overflow-wrap:anywhere}[data-ui-alert]>[data-part-actions]{align-items:center;display:flex;flex-wrap:wrap;gap:var(--slotted-alert-actions-gap, var(--slotted-space-3, .375rem));grid-column:2;grid-row:2;min-inline-size:0}[data-ui-alert]>[data-part-dismiss]{--slotted-icon-size: var(--_glyph-size);align-items:center;align-self:start;appearance:none;background-color:transparent;block-size:var(--_dismiss-size);border:0;border-radius:var(--slotted-alert-dismiss-radius, var(--slotted-control-radius, 4px));color:inherit;cursor:pointer;display:inline-flex;flex:none;font:inherit;grid-column:3;grid-row:1;inline-size:var(--_dismiss-size);justify-content:center;margin-block-end:calc((1lh - var(--_dismiss-size)) / 2);margin-block-start:calc((1lh - var(--_dismiss-size)) / 2);margin-inline-end:calc((1lh - var(--_dismiss-size)) / 2);margin-inline-start:var(--_column-gap);padding:0;transition:background-color var(--slotted-control-transition-duration) var(--slotted-control-transition-easing),color var(--slotted-control-transition-duration) var(--slotted-control-transition-easing)}[data-ui-alert]>[data-part-dismiss]:enabled:hover{background-color:var(--_state-hover)}[data-ui-alert]>[data-part-dismiss]:enabled:active{background-color:var(--_state-active)}[data-ui-alert]>[data-part-dismiss]:disabled{color:var(--slotted-disabled-foreground);cursor:default}@media(pointer:coarse){[data-ui-alert]>[data-part-dismiss]{position:relative}[data-ui-alert]>[data-part-dismiss]:after{content:\"\";inset:min(0px,calc((100% - var(--slotted-target-comfortable, 44px)) / 2));position:absolute}}[data-ui-alert]>[data-part-dismiss]:focus-visible{outline:var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);outline-offset:calc(-1 * var(--slotted-focus-ring-width, 2px))}[data-ui-alert][data-variant=solid]>[data-part-dismiss]:focus-visible{box-shadow:inset 0 0 0 calc(2 * var(--slotted-focus-ring-width, 2px)) var(--_on-solid)}[data-ui-alert][data-part-root]:focus-visible{outline:var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);outline-offset:var(--slotted-focus-ring-offset, 2px)}@container slotted-alert (max-width: 22rem){[data-ui-alert]>[data-part-actions]{align-items:flex-start;flex-direction:column}}@container slotted-alert (min-width: 40rem){[data-ui-alert][data-reach=page]>[data-part-actions]{align-self:center;grid-column:3;grid-row:1;margin-inline-start:var(--_column-gap)}[data-ui-alert][data-reach=page]>[data-part-dismiss]{align-self:center;grid-column:4;margin-block:0}}@media(forced-colors:active){[data-ui-alert][data-part-root][data-variant]{background-color:Canvas;border-color:CanvasText;color:CanvasText}[data-ui-alert]>[data-part-dismiss]{color:CanvasText}[data-ui-alert]>[data-part-dismiss]:enabled:hover,[data-ui-alert]>[data-part-dismiss]:enabled:active{background-color:Highlight;color:HighlightText}}}\n"] }]
|
|
318
|
-
}], ctorParameters: () => [], propDecorators: { tone: [{ type: i0.Input, args: [{ isSignal: true, alias: "tone", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], reach: [{ type: i0.Input, args: [{ isSignal: true, alias: "reach", required: false }] }], live: [{ type: i0.Input, args: [{ isSignal: true, alias: "live", required: false }] }], hideIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "hideIcon", required: false }] }], dismissible: [{ type: i0.Input, args: [{ isSignal: true, alias: "dismissible", required: false }] }], messages: [{ type: i0.Input, args: [{ isSignal: true, alias: "messages", required: false }] }], open: [{ type: i0.Input, args: [{ isSignal: true, alias: "open", required: false }] }], defaultOpen: [{ type: i0.Input, args: [{ isSignal: true, alias: "defaultOpen", required: false }] }], restoreFocus: [{ type: i0.Input, args: [{ isSignal: true, alias: "restoreFocus", required: false }] }], openChange: [{ type: i0.Output, args: ["openChange"] }], suppliedIcon: [{ type: i0.ContentChild, args: [i0.forwardRef(() => SlAlertIcon), { isSignal: true }] }] } });
|
|
323
|
+
}, styles: ["@layer slotted.components{[data-ui-alert][data-part-root]{--_solid: var(--slotted-tone-accent-solid);--_on-solid: var(--slotted-tone-accent-on-solid);--_surface: var(--slotted-tone-accent-surface);--_border: var(--slotted-tone-accent-border);--_text: var(--slotted-tone-accent-text);--_state-hover: color-mix( in oklab, currentcolor var(--slotted-alert-state-layer-hover, 10%), transparent );--_state-active: color-mix( in oklab, currentcolor var(--slotted-alert-state-layer-active, 16%), transparent );--_font-size: var(--slotted-control-font-size-md, 13px);--_description-font-size: var(--slotted-control-font-size-md, 13px);--_glyph-size: var(--slotted-control-icon-size-md, 16px);--_inner-size: var(--slotted-control-inner-size-md, 24px);--_mark-size: round(nearest, 1.2em, 2px);--_line-height: var(--slotted-line-height-md, 1.5);--_inset-block: var(--slotted-alert-padding-block, var(--slotted-space-5, .75rem));--_inset-inline: var(--slotted-alert-padding-inline, var(--slotted-space-6, 1rem));--_column-gap: var(--slotted-alert-column-gap, var(--slotted-space-4, .5rem));--_row-gap: var(--slotted-alert-row-gap, var(--slotted-space-5, .75rem));--_text-gap: var(--slotted-alert-text-gap, var(--slotted-space-2, .25rem));--_radius: var(--slotted-alert-radius, var(--slotted-radius-md, 6px));--_border-width: var(--slotted-alert-border-width, var(--slotted-border-width-thin, 1px));--_dismiss-size: var( --slotted-alert-dismiss-size, max( var(--slotted-target-min, 24px), min(calc(var(--_glyph-size) + 2 * var(--slotted-space-2, .25rem)), var(--_inner-size)) ) );container-name:slotted-alert;container-type:inline-size;inline-size:100%;background-color:transparent;border:var(--_border-width) solid transparent;border-radius:var(--_radius);box-sizing:border-box;color:var(--_text);column-gap:0;display:grid;font-family:var(--slotted-alert-font-family, var(--slotted-control-font-family, sans-serif));font-size:var(--_font-size);grid-template-columns:auto minmax(0,1fr) auto;line-height:round(nearest,calc(var(--_line-height) * 1em),2px);padding-block:var(--_inset-block);padding-inline:var(--_inset-inline);row-gap:var(--_row-gap);transition:opacity var(--slotted-duration-short) var(--slotted-easing-enter),translate var(--slotted-duration-short) var(--slotted-easing-enter),display var(--slotted-duration-short) var(--slotted-easing-enter);transition-behavior:allow-discrete}[data-ui-alert][data-part-root][hidden]{display:none;opacity:0;transition:opacity var(--slotted-duration-short) var(--slotted-easing-exit),translate var(--slotted-duration-short) var(--slotted-easing-exit),display var(--slotted-duration-short) var(--slotted-easing-exit);translate:0 calc(-1 * var(--slotted-space-2, .25rem))}@starting-style{[data-ui-alert][data-part-root]:is([data-live=polite],[data-live=assertive]){opacity:0;translate:0 calc(-1 * var(--slotted-space-2, .25rem))}}[data-ui-alert][data-part-root][data-tone=accent]{--_solid: var(--slotted-tone-accent-solid);--_on-solid: var(--slotted-tone-accent-on-solid);--_surface: var(--slotted-tone-accent-surface);--_border: var(--slotted-tone-accent-border);--_text: var(--slotted-tone-accent-text)}[data-ui-alert][data-part-root][data-tone=secondary]{--_solid: var(--slotted-tone-secondary-solid);--_on-solid: var(--slotted-tone-secondary-on-solid);--_surface: var(--slotted-tone-secondary-surface);--_border: var(--slotted-tone-secondary-border);--_text: var(--slotted-tone-secondary-text)}[data-ui-alert][data-part-root][data-tone=success]{--_solid: var(--slotted-tone-success-solid);--_on-solid: var(--slotted-tone-success-on-solid);--_surface: var(--slotted-tone-success-surface);--_border: var(--slotted-tone-success-border);--_text: var(--slotted-tone-success-text)}[data-ui-alert][data-part-root][data-tone=info]{--_solid: var(--slotted-tone-info-solid);--_on-solid: var(--slotted-tone-info-on-solid);--_surface: var(--slotted-tone-info-surface);--_border: var(--slotted-tone-info-border);--_text: var(--slotted-tone-info-text)}[data-ui-alert][data-part-root][data-tone=warning]{--_solid: var(--slotted-tone-warning-solid);--_on-solid: var(--slotted-tone-warning-on-solid);--_surface: var(--slotted-tone-warning-surface);--_border: var(--slotted-tone-warning-border);--_text: var(--slotted-tone-warning-text)}[data-ui-alert][data-part-root][data-tone=danger]{--_solid: var(--slotted-tone-danger-solid);--_on-solid: var(--slotted-tone-danger-on-solid);--_surface: var(--slotted-tone-danger-surface);--_border: var(--slotted-tone-danger-border);--_text: var(--slotted-tone-danger-text)}[data-ui-alert][data-part-root][data-variant=soft]{background-color:var(--_surface);border-color:var(--_border)}[data-ui-alert][data-part-root][data-variant=outline]{background-color:transparent;border-color:var(--_border)}[data-ui-alert][data-part-root][data-variant=solid]{background-color:var(--_solid);border-color:var(--_solid);color:var(--_on-solid)}[data-ui-alert][data-part-root][data-reach=inline]{--_font-size: var(--slotted-control-font-size-sm, 12px);--_description-font-size: var(--slotted-control-font-size-sm, 12px);--_glyph-size: var(--slotted-control-icon-size-sm, 14px);--_inner-size: var(--slotted-control-inner-size-sm, 22px);--_inset-block: var(--slotted-alert-padding-block, var(--slotted-space-4, .5rem));--_inset-inline: var(--slotted-alert-padding-inline, var(--slotted-space-5, .75rem));--_row-gap: var(--slotted-alert-row-gap, var(--slotted-space-4, .5rem));--_radius: var(--slotted-alert-radius, var(--slotted-radius-sm, 4px))}[data-ui-alert][data-part-root][data-reach=page]{--_font-size: var(--slotted-control-font-size-lg, 14px);--_glyph-size: var(--slotted-control-icon-size-lg, 18px);--_inner-size: var(--slotted-control-inner-size-lg, 28px);--_inset-block: var(--slotted-alert-padding-block, var(--slotted-space-6, 1rem));--_inset-inline: var(--slotted-alert-padding-inline, var(--slotted-space-7, 1.25rem));--_radius: var(--slotted-alert-radius, 0);border-block-start-width:0;border-inline-width:0}[data-ui-alert][data-part-root][data-reach=page][data-variant=solid]{border-block-start-width:var(--_border-width);border-inline-width:var(--_border-width)}[data-ui-alert]>[data-part-icon]{--slotted-icon-size: var(--_mark-size);align-items:center;align-self:baseline;block-size:var(--_mark-size);contain:layout;display:flex;grid-column:1;grid-row:1;inline-size:var(--_mark-size);inset-block-start:round(nearest,(var(--_mark-size) - 1cap) / 2,1px);justify-content:center;margin-block-start:calc(-1 * var(--_mark-size));margin-inline-end:var(--_column-gap);position:relative}[data-ui-alert]>[data-part-content]{align-self:baseline;display:grid;grid-column:2;grid-row:1;grid-template-columns:minmax(0,1fr);min-inline-size:0;row-gap:var(--_text-gap)}[data-ui-alert] [data-part-title]{font-family:var( --slotted-alert-title-font-family, var( --slotted-font-family-heading, var(--slotted-font-family-sans, ui-sans-serif, system-ui, sans-serif) ) );font-size:inherit;font-weight:var(--slotted-alert-title-font-weight, var(--slotted-font-weight-semibold, 600));line-height:inherit;margin:0;min-inline-size:0;overflow-wrap:anywhere}[data-ui-alert] [data-part-description]{font-size:var(--_description-font-size);line-height:round(nearest,calc(var(--_line-height) * 1em),2px);margin:0;min-inline-size:0;overflow-wrap:anywhere}[data-ui-alert]>[data-part-actions]{align-items:center;display:flex;flex-wrap:wrap;gap:var(--slotted-alert-actions-gap, var(--slotted-space-3, .375rem));grid-column:2;grid-row:2;min-inline-size:0}[data-ui-alert]>[data-part-dismiss]{--slotted-icon-size: var(--_glyph-size);align-items:center;align-self:start;appearance:none;background-color:transparent;block-size:var(--_dismiss-size);border:0;border-radius:var(--slotted-alert-dismiss-radius, var(--slotted-control-radius, 4px));color:inherit;cursor:pointer;display:inline-flex;flex:none;font:inherit;grid-column:3;grid-row:1;inline-size:var(--_dismiss-size);justify-content:center;margin-block-end:calc((1lh - var(--_dismiss-size)) / 2);margin-block-start:calc((1lh - var(--_dismiss-size)) / 2);margin-inline-end:calc((1lh - var(--_dismiss-size)) / 2);margin-inline-start:var(--_column-gap);padding:0;transition:background-color var(--slotted-control-transition-duration) var(--slotted-control-transition-easing),color var(--slotted-control-transition-duration) var(--slotted-control-transition-easing)}[data-ui-alert]>[data-part-dismiss]:enabled:hover{background-color:var(--_state-hover)}[data-ui-alert]>[data-part-dismiss]:enabled:active{background-color:var(--_state-active)}[data-ui-alert]>[data-part-dismiss]:disabled{color:var(--slotted-disabled-foreground);cursor:default}@media(pointer:coarse){[data-ui-alert]>[data-part-dismiss]{position:relative}[data-ui-alert]>[data-part-dismiss]:after{content:\"\";inset:min(0px,calc((100% - var(--slotted-target-comfortable, 44px)) / 2));position:absolute}}[data-ui-alert]>[data-part-dismiss]:focus-visible{outline:var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);outline-offset:calc(-1 * var(--slotted-focus-ring-width, 2px))}[data-ui-alert][data-variant=solid]>[data-part-dismiss]:focus-visible{box-shadow:inset 0 0 0 calc(2 * var(--slotted-focus-ring-width, 2px)) var(--_on-solid)}[data-ui-alert][data-part-root]:focus-visible{outline:var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);outline-offset:var(--slotted-focus-ring-offset, 2px)}@container slotted-alert (max-width: 22rem){[data-ui-alert]>[data-part-actions]{align-items:flex-start;flex-direction:column}}@container slotted-alert (min-width: 40rem){[data-ui-alert][data-actions-placement=end]>[data-part-actions]{align-self:baseline;grid-column:3;grid-row:1;margin-inline-start:var(--_column-gap)}[data-ui-alert][data-actions-placement=end]>[data-part-dismiss]{grid-column:4}}@media(forced-colors:active){[data-ui-alert][data-part-root][data-variant]{background-color:Canvas;border-color:CanvasText;color:CanvasText}[data-ui-alert]>[data-part-dismiss]{color:CanvasText}[data-ui-alert]>[data-part-dismiss]:enabled:hover,[data-ui-alert]>[data-part-dismiss]:enabled:active{background-color:Highlight;color:HighlightText}}}\n"] }]
|
|
324
|
+
}], ctorParameters: () => [], propDecorators: { tone: [{ type: i0.Input, args: [{ isSignal: true, alias: "tone", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], reach: [{ type: i0.Input, args: [{ isSignal: true, alias: "reach", required: false }] }], live: [{ type: i0.Input, args: [{ isSignal: true, alias: "live", required: false }] }], actionsPlacement: [{ type: i0.Input, args: [{ isSignal: true, alias: "actionsPlacement", required: false }] }], hideIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "hideIcon", required: false }] }], dismissible: [{ type: i0.Input, args: [{ isSignal: true, alias: "dismissible", required: false }] }], messages: [{ type: i0.Input, args: [{ isSignal: true, alias: "messages", required: false }] }], open: [{ type: i0.Input, args: [{ isSignal: true, alias: "open", required: false }] }], defaultOpen: [{ type: i0.Input, args: [{ isSignal: true, alias: "defaultOpen", required: false }] }], restoreFocus: [{ type: i0.Input, args: [{ isSignal: true, alias: "restoreFocus", required: false }] }], openChange: [{ type: i0.Output, args: ["openChange"] }], suppliedIcon: [{ type: i0.ContentChild, args: [i0.forwardRef(() => SlAlertIcon), { isSignal: true }] }] } });
|
|
319
325
|
|
|
320
326
|
/**
|
|
321
327
|
* The two roles that announce, and the value that does not. Both roles imply
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"slotted-angular-alert.mjs","sources":["../../alert/src/alert-defaults.ts","../../alert/src/alert.ts","../../alert/src/alert-parts.ts","../../alert/src/slotted-angular-alert.ts"],"sourcesContent":["import { inject, Injectable, InjectionToken } from '@angular/core';\n\n/** Which of the five semantic colours the message speaks in. */\nexport type AlertTone = 'accent' | 'secondary' | 'info' | 'success' | 'warning' | 'danger';\n\n/** How that colour is painted. `soft` is the tinted box an alert usually is. */\nexport type AlertVariant = 'soft' | 'outline' | 'solid';\n\n/**\n * The scope the message applies to, which is the guide's three recipes as one\n * axis: an alert beside the thing it is about, a callout inside a section, a\n * banner across a page.\n */\nexport type AlertReach = 'inline' | 'section' | 'page';\n\n/**\n * Whether the message announces itself, and how loudly. `off` is the default,\n * because the WAI-ARIA APG records that screen readers do not inform users of\n * alerts already present when the page finishes loading.\n */\nexport type AlertLive = 'off' | 'polite' | 'assertive';\n\nexport interface AlertDefaults {\n live: AlertLive;\n reach: AlertReach;\n tone: AlertTone;\n variant: AlertVariant;\n}\n\nconst FALLBACK: AlertDefaults = {\n live: 'off',\n reach: 'section',\n tone: 'accent',\n variant: 'soft',\n};\n\nexport const ALERT_DEFAULTS = new InjectionToken<AlertDefaults>('slotted alert defaults', {\n providedIn: 'root',\n factory: () => FALLBACK,\n});\n\n/**\n * An application decides once how its messages are painted, at what reach and\n * how loud, rather than repeating the same inputs on every alert in a settings\n * page. An alert that states any of them itself still wins: an explicit input is\n * never overridden by the token. The dismiss control's name comes from the\n * language in force (`provideSlotted`).\n */\nexport function provideAlertDefaults(defaults: Partial<AlertDefaults>) {\n return {\n provide: ALERT_DEFAULTS,\n useFactory: (): AlertDefaults => ({\n live: defaults.live ?? FALLBACK.live,\n reach: defaults.reach ?? FALLBACK.reach,\n tone: defaults.tone ?? FALLBACK.tone,\n variant: defaults.variant ?? FALLBACK.variant,\n }),\n };\n}\n\n/** What an alert renders as here, before it states anything of its own. */\nexport function injectAlertDefaults(): AlertDefaults {\n return inject(ALERT_DEFAULTS);\n}\n\n/**\n * Application-scoped rather than module-scoped, for the reason `tag` records: a\n * module-level counter produces colliding sequences when two applications\n * render in one server process, and the server and the client sequences must\n * match for hydration.\n */\n@Injectable({ providedIn: 'root' })\nexport class SlAlertIdFactory {\n private count = 0;\n\n next() {\n this.count += 1;\n return `slotted-alert-${this.count}`;\n }\n}\n","import { alertMessages, type AlertMessages, type PartialMessages } from '@slotted/core/i18n';\nimport { createControllable } from '@slotted/core/state';\nimport type { ChangeRequest } from '@slotted/core/state';\nimport {\n booleanAttribute,\n ChangeDetectionStrategy,\n Component,\n computed,\n contentChild,\n DestroyRef,\n Directive,\n effect,\n ElementRef,\n HostAttributeToken,\n inject,\n input,\n output,\n signal,\n ViewEncapsulation,\n} from '@angular/core';\nimport { injectMessages } from '@slotted/angular/i18n';\nimport { SlGlyph, SlIcon } from '@slotted/angular/icon';\nimport type { GlyphName } from '@slotted/angular/icon';\n\nimport { injectAlertDefaults, SlAlertIdFactory } from './alert-defaults';\nimport type { AlertLive, AlertReach, AlertTone, AlertVariant } from './alert-defaults';\n\nexport type { AlertLive, AlertReach, AlertTone, AlertVariant } from './alert-defaults';\n\n/**\n * The glyph each tone draws, in its solid form: `specs/components/alert/contract.json`\n * holds the map. Every one is circled, so every mark is the same disc and the\n * symbol cut out of it tells the tones apart. `secondary` draws none: a neutral\n * note has no severity to state, and a disc with nothing cut out of it said\n * nothing. Its absence is itself the difference under forced colours.\n */\nconst TONE_GLYPH: Record<AlertTone, GlyphName | null> = {\n accent: 'status-info',\n secondary: null,\n info: 'status-info',\n success: 'status-success',\n warning: 'status-warning',\n danger: 'status-danger',\n};\n\n/**\n * Why the message closed. `dismiss` is the control at its corner;\n * `programmatic` is the application asking through `exportAs`. `escape` is\n * deliberately absent: an alert is not a dismissable layer, and one inside a\n * dialog would swallow the dialog's Escape.\n */\nexport type AlertCloseReason = 'dismiss' | 'programmatic';\n\n/**\n * A message about the page, a section, or the thing beside it.\n *\n * The directive is written on the consumer's own element, and the element it\n * belongs on is a `section`: named by its own title through `aria-labelledby`,\n * a `section` is a `region` landmark a reader can jump to, and unnamed it is a\n * plain grouping element that costs nothing.\n *\n * **The box is not the live region.** MDN's `alert` role reference states that\n * the role \"should only be used for text content, not interactive elements such\n * as links or buttons\", and every alert worth shipping has a dismiss control.\n * `slAlertContent` is what announces, and it holds the title and the\n * description alone; the actions and the dismiss control are its siblings.\n *\n * **Closing hides rather than removes.** A live region has to be in the\n * document before its text changes, so an alert that removed itself could not\n * announce the second time the message arrived — and `data-open` is only a\n * state a consumer can style if the element is there to carry it.\n */\n/**\n * A mark the page supplies instead of the tone's own. It is projected into the\n * box the family draws, so it keeps the size, the colour and the place on the\n * message's first line that the tone's own mark would have had.\n */\n@Directive({\n selector: '[slAlertIcon]',\n standalone: true,\n exportAs: 'slAlertIcon',\n})\nexport class SlAlertIcon {}\n\n@Component({\n selector: '[slAlert]',\n standalone: true,\n exportAs: 'slAlert',\n imports: [SlGlyph, SlIcon],\n template: `@if (!hideIcon() && (glyph() || suppliedIcon())) {\n <span aria-hidden=\"true\" data-part=\"icon\" data-part-icon=\"\"\n ><ng-content select=\"[slAlertIcon]\">\n @if (glyph(); as name) {\n <span slIcon><svg slGlyph [name]=\"name\" solid></svg></span>\n }</ng-content\n ></span>\n }\n <ng-content />\n @if (dismissible()) {\n <button\n type=\"button\"\n data-part=\"dismiss\"\n data-part-dismiss=\"\"\n [attr.aria-label]=\"t('dismiss')\"\n (click)=\"onDismiss($event)\"\n >\n <span slIcon><svg slGlyph name=\"x\"></svg></span>\n </button>\n }`,\n styleUrl: '../../../styles/src/alert/alert.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: {\n 'data-ui': 'alert',\n 'data-ui-alert': '',\n 'data-part': 'root',\n 'data-part-root': '',\n '[attr.data-tone]': 'resolvedTone()',\n '[attr.data-variant]': 'resolvedVariant()',\n '[attr.data-reach]': 'resolvedReach()',\n '[attr.data-live]': 'resolvedLive()',\n '[attr.data-open]': \"isOpen() ? '' : null\",\n '[attr.hidden]': \"isOpen() ? null : ''\",\n '[attr.tabindex]': 'writtenTabIndex ?? -1',\n '[attr.aria-labelledby]': 'labelledBy()',\n '(focusin)': 'onFocusIn($event)',\n '(focusout)': 'onFocusOut($event)',\n },\n})\nexport class SlAlert {\n /** Defaults to the provider, then to `accent`. */\n readonly tone = input<AlertTone | undefined>(undefined);\n /** Defaults to the provider, then to `soft`. */\n readonly variant = input<AlertVariant | undefined>(undefined);\n /** Defaults to the provider, then to `section`. */\n readonly reach = input<AlertReach | undefined>(undefined);\n /** Defaults to the provider, then to `off`. */\n readonly live = input<AlertLive | undefined>(undefined);\n /** Draws no mark at all, for a callout carrying its own artwork. */\n readonly hideIcon = input(false, { transform: booleanAttribute });\n /**\n * Renders the control that closes the message. React reads the same fact from\n * whether a handler was passed; Angular cannot see whether an output was\n * subscribed, so the opt-in is stated — the asymmetry `tag` recorded.\n */\n readonly dismissible = input(false, { transform: booleanAttribute });\n /** Words laid over the catalog of the language in force, key by key: what that control announces (`dismiss`). */\n readonly messages = input<PartialMessages<AlertMessages> | undefined>(undefined);\n /** Present means controlled, for the life of the component. */\n readonly open = input<boolean | undefined, boolean | string | undefined>(undefined, {\n transform: (value) => (value === undefined ? undefined : booleanAttribute(value)),\n });\n /** The openness an uncontrolled alert starts from, read once. */\n readonly defaultOpen = input(true, { transform: booleanAttribute });\n /**\n * Returns the keyboard to where it came from when the message closes with\n * focus inside it. Nothing moves when focus was never there.\n */\n readonly restoreFocus = input(true, { transform: booleanAttribute });\n\n /**\n * One output for one transition, carrying the value, the value it replaces,\n * the reason, the originating event and `cancel()`. There is no `[(open)]`\n * because a two-way binding has one slot and cannot carry any of those.\n */\n readonly openChange = output<ChangeRequest<boolean>>();\n\n private readonly defaults = injectAlertDefaults();\n /** The family's words in the language in force, with this alert's `messages` laid over them. */\n readonly t = injectMessages(alertMessages, this.messages);\n private readonly host = inject<ElementRef<HTMLElement>>(ElementRef);\n /** An explicit tab index the consumer wrote is never replaced by the family's. */\n protected readonly writtenTabIndex = inject(new HostAttributeToken('tabindex'), {\n optional: true,\n });\n\n /** The identifier the title writes, and the box is named by. */\n readonly titleId = `${inject(SlAlertIdFactory).next()}-title`;\n\n private readonly own = signal<boolean | undefined>(undefined);\n private readonly titlePresent = signal(false);\n\n /**\n * Where the keyboard came from, and whether it is here now. Both are read at\n * the moment the message closes, when the element focus was on may already be\n * gone — so they are remembered as focus crosses the boundary rather than\n * looked up in the DOM afterwards.\n */\n private cameFrom: HTMLElement | null = null;\n private holdsFocus = false;\n\n protected readonly resolvedTone = computed(() => this.tone() ?? this.defaults.tone);\n protected readonly glyph = computed(() => TONE_GLYPH[this.resolvedTone()]);\n /** A mark the page projected, which draws even where the tone has none. */\n protected readonly suppliedIcon = contentChild(SlAlertIcon);\n protected readonly resolvedVariant = computed(() => this.variant() ?? this.defaults.variant);\n protected readonly resolvedReach = computed(() => this.reach() ?? this.defaults.reach);\n readonly resolvedLive = computed(() => this.live() ?? this.defaults.live);\n\n readonly isOpen = computed(() => this.open() ?? this.own() ?? this.defaultOpen());\n\n /**\n * A `section` with an `aria-labelledby` pointing at nothing has no accessible\n * name and is not a landmark, so the attribute is written only once a title\n * has said it exists.\n */\n protected readonly labelledBy = computed(() => (this.titlePresent() ? this.titleId : null));\n\n constructor() {\n let previous = this.isOpen();\n effect(() => {\n const next = this.isOpen();\n if (previous && !next) this.restore();\n previous = next;\n });\n /* The message removed by the consumer rather than closed by itself. */\n inject(DestroyRef).onDestroy(() => this.restore());\n }\n\n /** Called by `slAlertTitle`, which is the part that names the box. */\n registerTitle(present: boolean) {\n this.titlePresent.set(present);\n }\n\n /** Sends the keyboard to the message. The family never does this by itself. */\n focus() {\n this.host.nativeElement.focus();\n }\n\n /**\n * Asks to open or close, carrying `programmatic` as the reason. It is the\n * reach a template has and React does not: JSX can re-render an input, and an\n * Angular template can only call a method on the instance `exportAs` gives it.\n */\n setOpen(next: boolean) {\n this.request(next, 'programmatic');\n }\n\n protected onDismiss(event: MouseEvent) {\n /* A consumer that called preventDefault has refused the dismissal, and a\n refused dismissal moves nothing. */\n if (event.defaultPrevented) return;\n this.request(false, 'dismiss', event);\n }\n\n protected onFocusIn(event: FocusEvent) {\n const previous = event.relatedTarget;\n if (previous instanceof HTMLElement && !this.host.nativeElement.contains(previous)) {\n this.cameFrom = previous;\n }\n this.holdsFocus = true;\n }\n\n protected onFocusOut(event: FocusEvent) {\n const next = event.relatedTarget;\n if (!(next instanceof Node) || !this.host.nativeElement.contains(next)) {\n this.holdsFocus = false;\n }\n }\n\n private request(next: boolean, reason: AlertCloseReason, source?: Event) {\n const state = createControllable<boolean>({\n controlled: this.open(),\n initial: this.isOpen(),\n onRequest: (request) => this.openChange.emit(request),\n });\n\n if (state.request(next, reason, source)) this.own.set(next);\n }\n\n private restore() {\n if (!this.restoreFocus() || !this.holdsFocus) return;\n this.holdsFocus = false;\n const target = this.cameFrom;\n if (target === null || !target.isConnected) return;\n target.focus();\n }\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n computed,\n Directive,\n inject,\n ViewEncapsulation,\n} from '@angular/core';\n\nimport { SlAlert } from './alert';\nimport type { AlertLive } from './alert-defaults';\n\n/**\n * The two roles that announce, and the value that does not. Both roles imply\n * `aria-live` and `aria-atomic`, so the whole message is read rather than the\n * word that changed, and nothing here writes either attribute by hand.\n */\nconst LIVE_ROLE: Record<AlertLive, string | null> = {\n off: null,\n polite: 'status',\n assertive: 'alert',\n};\n\n/**\n * The message itself, and the only part that announces.\n *\n * It is written explicitly rather than wrapped around the alert's projected\n * content, because a box that guessed which of its children were text would be\n * guessing about the one thing a reader hears. Fluent's `MessageBarBody` is the\n * only surveyed implementation with the same shape, and it is the only one\n * whose region excludes its own controls.\n */\n@Directive({\n selector: '[slAlertContent]',\n standalone: true,\n exportAs: 'slAlertContent',\n host: {\n 'data-part': 'content',\n 'data-part-content': '',\n '[attr.role]': 'role()',\n },\n})\nexport class SlAlertContent {\n private readonly alert = inject(SlAlert);\n\n protected readonly role = computed(() => LIVE_ROLE[this.alert.resolvedLive()]);\n}\n\n/**\n * The message's name, and the box's.\n *\n * The element is the consumer's: a heading puts the alert in the document\n * outline, which is right for a page banner and wrong for the alert beside a\n * field group, and only the page knows which. Writing `<h3 slAlertTitle>` is\n * how a page that wants one says so, and Angular needs no `render` prop to\n * allow it.\n */\n@Component({\n selector: '[slAlertTitle]',\n standalone: true,\n exportAs: 'slAlertTitle',\n template: '<ng-content />',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: {\n 'data-part': 'title',\n 'data-part-title': '',\n '[attr.id]': 'alert.titleId',\n },\n})\nexport class SlAlertTitle {\n protected readonly alert = inject(SlAlert);\n\n constructor() {\n this.alert.registerTitle(true);\n }\n\n ngOnDestroy() {\n this.alert.registerTitle(false);\n }\n}\n\n/** The message. Written on the consumer's own `p`, which is what prose is. */\n@Directive({\n selector: '[slAlertDescription]',\n standalone: true,\n exportAs: 'slAlertDescription',\n host: { 'data-part': 'description', 'data-part-description': '' },\n})\nexport class SlAlertDescription {}\n\n/**\n * The controls that act on the message, outside the region that announces: a\n * reader hearing the message is not read the labels of two buttons in the\n * middle of it. What goes in is the consumer's own buttons, because `button`\n * already owns what a button is.\n */\n@Directive({\n selector: '[slAlertActions]',\n standalone: true,\n exportAs: 'slAlertActions',\n host: { 'data-part': 'actions', 'data-part-actions': '' },\n})\nexport class SlAlertActions {}\n\n/* `SlAlertIcon` lives in `./alert`: the alert reads whether one was projected. */\nexport { SlAlertIcon } from './alert';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;AA6BA,MAAM,QAAQ,GAAkB;AAC9B,IAAA,IAAI,EAAE,KAAK;AACX,IAAA,KAAK,EAAE,SAAS;AAChB,IAAA,IAAI,EAAE,QAAQ;AACd,IAAA,OAAO,EAAE,MAAM;CAChB;MAEY,cAAc,GAAG,IAAI,cAAc,CAAgB,wBAAwB,EAAE;AACxF,IAAA,UAAU,EAAE,MAAM;AAClB,IAAA,OAAO,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,CA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,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 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;;;;;;AA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