@slotted/angular 0.1.0-beta.34 → 0.1.0-beta.36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/docs/accordion.json +2 -0
- package/docs/accordion.md +1 -1
- package/docs/avatar.json +1 -0
- package/docs/avatar.md +1 -1
- package/docs/badge.json +1 -0
- package/docs/badge.md +1 -1
- package/docs/button.json +59 -2
- package/docs/button.md +8 -1
- package/docs/calendar.json +59 -0
- package/docs/calendar.md +8 -1
- package/docs/card.json +7 -0
- package/docs/card.md +1 -0
- package/docs/chart.json +32 -4
- package/docs/chart.md +9 -5
- package/docs/checkbox.json +8 -3
- package/docs/checkbox.md +3 -3
- package/docs/collapsible.json +33 -1
- package/docs/collapsible.md +5 -1
- package/docs/command-palette.json +3 -1
- package/docs/command-palette.md +1 -1
- package/docs/dashboard-grid.json +13 -4
- package/docs/dashboard-grid.md +3 -2
- package/docs/description-list.json +9 -1
- package/docs/description-list.md +2 -1
- package/docs/entity-picker.json +4 -2
- package/docs/entity-picker.md +2 -2
- package/docs/field-group.json +1 -1
- package/docs/field-group.md +1 -1
- package/docs/floating-panel.json +203 -0
- package/docs/floating-panel.md +97 -0
- package/docs/guidelines/index.md +2 -0
- package/docs/guidelines/own-elements.md +20 -0
- package/docs/index.md +3 -1
- package/docs/inline-message.json +1 -0
- package/docs/inline-message.md +1 -1
- package/docs/kbd.json +1 -0
- package/docs/kbd.md +1 -1
- package/docs/link.json +1 -1
- package/docs/link.md +1 -1
- package/docs/list-item.json +31 -8
- package/docs/list-item.md +19 -6
- package/docs/list.json +14 -0
- package/docs/list.md +3 -1
- package/docs/listbox.json +13 -0
- package/docs/listbox.md +2 -1
- package/docs/markdown.json +1 -1
- package/docs/markdown.md +1 -1
- package/docs/message.json +17 -2
- package/docs/message.md +4 -2
- package/docs/meter.json +248 -0
- package/docs/meter.md +121 -0
- package/docs/page.json +21 -0
- package/docs/page.md +3 -1
- package/docs/prompt-composer.json +1 -1
- package/docs/rating.json +1 -0
- package/docs/rating.md +1 -1
- package/docs/section.json +28 -3
- package/docs/section.md +6 -3
- package/docs/segmented-control.json +5 -4
- package/docs/segmented-control.md +3 -3
- package/docs/side-navigation.json +8 -0
- package/docs/side-navigation.md +2 -1
- package/docs/skills/build-own-element/SKILL.md +42 -2
- package/docs/slider.json +8 -0
- package/docs/slider.md +2 -1
- package/docs/sparkline.json +1 -1
- package/docs/sparkline.md +1 -1
- package/docs/stat-card.json +7 -0
- package/docs/stat-card.md +1 -0
- package/docs/switch.json +16 -0
- package/docs/switch.md +3 -1
- package/docs/table.json +39 -1
- package/docs/table.md +6 -1
- package/docs/tag.json +1 -0
- package/docs/tag.md +1 -1
- package/docs/tokens.md +13 -1
- package/docs/toolbar.json +2 -1
- package/docs/toolbar.md +1 -1
- package/docs/top-navigation.json +1 -0
- package/docs/top-navigation.md +1 -1
- package/docs/typography.json +15 -0
- package/docs/typography.md +3 -1
- package/fesm2022/slotted-angular-accordion.mjs +2 -2
- package/fesm2022/slotted-angular-accordion.mjs.map +1 -1
- package/fesm2022/slotted-angular-avatar.mjs +2 -2
- package/fesm2022/slotted-angular-avatar.mjs.map +1 -1
- package/fesm2022/slotted-angular-badge.mjs +2 -2
- package/fesm2022/slotted-angular-badge.mjs.map +1 -1
- package/fesm2022/slotted-angular-button.mjs +87 -23
- package/fesm2022/slotted-angular-button.mjs.map +1 -1
- package/fesm2022/slotted-angular-calendar.mjs +114 -23
- package/fesm2022/slotted-angular-calendar.mjs.map +1 -1
- package/fesm2022/slotted-angular-card.mjs +15 -5
- package/fesm2022/slotted-angular-card.mjs.map +1 -1
- package/fesm2022/slotted-angular-cascader.mjs +5 -5
- package/fesm2022/slotted-angular-cascader.mjs.map +1 -1
- package/fesm2022/slotted-angular-chart.mjs +47 -5
- package/fesm2022/slotted-angular-chart.mjs.map +1 -1
- package/fesm2022/slotted-angular-checkbox.mjs +2 -2
- package/fesm2022/slotted-angular-checkbox.mjs.map +1 -1
- package/fesm2022/slotted-angular-collapsible.mjs +69 -8
- package/fesm2022/slotted-angular-collapsible.mjs.map +1 -1
- package/fesm2022/slotted-angular-column-manager.mjs +1 -1
- package/fesm2022/slotted-angular-column-manager.mjs.map +1 -1
- package/fesm2022/slotted-angular-combobox.mjs +2 -2
- package/fesm2022/slotted-angular-combobox.mjs.map +1 -1
- package/fesm2022/slotted-angular-command-palette.mjs +11 -2
- package/fesm2022/slotted-angular-command-palette.mjs.map +1 -1
- package/fesm2022/slotted-angular-dashboard-grid.mjs +19 -5
- package/fesm2022/slotted-angular-dashboard-grid.mjs.map +1 -1
- package/fesm2022/slotted-angular-data-grid.mjs +40 -15
- package/fesm2022/slotted-angular-data-grid.mjs.map +1 -1
- package/fesm2022/slotted-angular-data-list.mjs +2 -2
- package/fesm2022/slotted-angular-data-list.mjs.map +1 -1
- package/fesm2022/slotted-angular-date-picker.mjs +1 -1
- package/fesm2022/slotted-angular-date-picker.mjs.map +1 -1
- package/fesm2022/slotted-angular-date-range-picker.mjs +1 -1
- package/fesm2022/slotted-angular-date-range-picker.mjs.map +1 -1
- package/fesm2022/slotted-angular-datetime-picker.mjs +1 -1
- package/fesm2022/slotted-angular-datetime-picker.mjs.map +1 -1
- package/fesm2022/slotted-angular-datetime-range-picker.mjs +1 -1
- package/fesm2022/slotted-angular-datetime-range-picker.mjs.map +1 -1
- package/fesm2022/slotted-angular-description-list.mjs +13 -6
- package/fesm2022/slotted-angular-description-list.mjs.map +1 -1
- package/fesm2022/slotted-angular-detail-panel.mjs +1 -1
- package/fesm2022/slotted-angular-detail-panel.mjs.map +1 -1
- package/fesm2022/slotted-angular-entity-picker.mjs +14 -2
- package/fesm2022/slotted-angular-entity-picker.mjs.map +1 -1
- package/fesm2022/slotted-angular-field-group.mjs +2 -2
- package/fesm2022/slotted-angular-field-group.mjs.map +1 -1
- package/fesm2022/slotted-angular-filter-bar.mjs +4 -4
- package/fesm2022/slotted-angular-filter-bar.mjs.map +1 -1
- package/fesm2022/slotted-angular-floating-panel.mjs +257 -0
- package/fesm2022/slotted-angular-floating-panel.mjs.map +1 -0
- package/fesm2022/slotted-angular-import-export-center.mjs +1 -1
- package/fesm2022/slotted-angular-import-export-center.mjs.map +1 -1
- package/fesm2022/slotted-angular-inline-message.mjs +2 -2
- package/fesm2022/slotted-angular-inline-message.mjs.map +1 -1
- package/fesm2022/slotted-angular-kbd.mjs +4 -4
- package/fesm2022/slotted-angular-kbd.mjs.map +1 -1
- package/fesm2022/slotted-angular-list-item.mjs +41 -6
- package/fesm2022/slotted-angular-list-item.mjs.map +1 -1
- package/fesm2022/slotted-angular-list.mjs +20 -4
- package/fesm2022/slotted-angular-list.mjs.map +1 -1
- package/fesm2022/slotted-angular-listbox.mjs +63 -6
- package/fesm2022/slotted-angular-listbox.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-message.mjs +78 -36
- package/fesm2022/slotted-angular-message.mjs.map +1 -1
- package/fesm2022/slotted-angular-meter.mjs +108 -0
- package/fesm2022/slotted-angular-meter.mjs.map +1 -0
- package/fesm2022/slotted-angular-multi-select.mjs +2 -2
- package/fesm2022/slotted-angular-multi-select.mjs.map +1 -1
- package/fesm2022/slotted-angular-notification-center.mjs +1 -1
- package/fesm2022/slotted-angular-notification-center.mjs.map +1 -1
- package/fesm2022/slotted-angular-page.mjs +53 -6
- package/fesm2022/slotted-angular-page.mjs.map +1 -1
- package/fesm2022/slotted-angular-prompt-composer.mjs +24 -6
- package/fesm2022/slotted-angular-prompt-composer.mjs.map +1 -1
- package/fesm2022/slotted-angular-rating.mjs +6 -6
- package/fesm2022/slotted-angular-rating.mjs.map +1 -1
- package/fesm2022/slotted-angular-saved-views.mjs +1 -1
- package/fesm2022/slotted-angular-saved-views.mjs.map +1 -1
- package/fesm2022/slotted-angular-section.mjs +23 -6
- package/fesm2022/slotted-angular-section.mjs.map +1 -1
- package/fesm2022/slotted-angular-segmented-control.mjs +29 -7
- package/fesm2022/slotted-angular-segmented-control.mjs.map +1 -1
- package/fesm2022/slotted-angular-select.mjs +42 -18
- package/fesm2022/slotted-angular-select.mjs.map +1 -1
- package/fesm2022/slotted-angular-side-navigation.mjs +29 -7
- package/fesm2022/slotted-angular-side-navigation.mjs.map +1 -1
- package/fesm2022/slotted-angular-slider.mjs +26 -16
- package/fesm2022/slotted-angular-slider.mjs.map +1 -1
- package/fesm2022/slotted-angular-split-button.mjs +4 -4
- package/fesm2022/slotted-angular-split-button.mjs.map +1 -1
- package/fesm2022/slotted-angular-stat-card.mjs +82 -28
- package/fesm2022/slotted-angular-stat-card.mjs.map +1 -1
- package/fesm2022/slotted-angular-status-indicator.mjs +2 -2
- package/fesm2022/slotted-angular-status-indicator.mjs.map +1 -1
- package/fesm2022/slotted-angular-switch.mjs +14 -4
- package/fesm2022/slotted-angular-switch.mjs.map +1 -1
- package/fesm2022/slotted-angular-table.mjs +76 -15
- package/fesm2022/slotted-angular-table.mjs.map +1 -1
- package/fesm2022/slotted-angular-tag.mjs +2 -2
- package/fesm2022/slotted-angular-tag.mjs.map +1 -1
- package/fesm2022/slotted-angular-tags-input.mjs +2 -2
- package/fesm2022/slotted-angular-tags-input.mjs.map +1 -1
- package/fesm2022/slotted-angular-toolbar.mjs +2 -2
- package/fesm2022/slotted-angular-toolbar.mjs.map +1 -1
- package/fesm2022/slotted-angular-tooltip.mjs +2 -2
- package/fesm2022/slotted-angular-tooltip.mjs.map +1 -1
- package/fesm2022/slotted-angular-top-navigation.mjs +2 -2
- package/fesm2022/slotted-angular-top-navigation.mjs.map +1 -1
- package/fesm2022/slotted-angular-tour.mjs +1 -1
- package/fesm2022/slotted-angular-tour.mjs.map +1 -1
- package/fesm2022/slotted-angular-transfer.mjs +1 -1
- package/fesm2022/slotted-angular-transfer.mjs.map +1 -1
- package/fesm2022/slotted-angular-typography.mjs +31 -6
- package/fesm2022/slotted-angular-typography.mjs.map +1 -1
- package/fesm2022/slotted-angular-wizard.mjs +1 -1
- package/fesm2022/slotted-angular-wizard.mjs.map +1 -1
- package/package.json +11 -3
- package/types/slotted-angular-button.d.ts +57 -5
- package/types/slotted-angular-button.d.ts.map +1 -1
- package/types/slotted-angular-calendar.d.ts +62 -5
- package/types/slotted-angular-calendar.d.ts.map +1 -1
- package/types/slotted-angular-card.d.ts +7 -1
- package/types/slotted-angular-card.d.ts.map +1 -1
- package/types/slotted-angular-chart.d.ts +10 -2
- package/types/slotted-angular-chart.d.ts.map +1 -1
- package/types/slotted-angular-checkbox.d.ts +3 -1
- package/types/slotted-angular-checkbox.d.ts.map +1 -1
- package/types/slotted-angular-collapsible.d.ts +29 -3
- package/types/slotted-angular-collapsible.d.ts.map +1 -1
- package/types/slotted-angular-command-palette.d.ts.map +1 -1
- package/types/slotted-angular-dashboard-grid.d.ts +9 -1
- package/types/slotted-angular-dashboard-grid.d.ts.map +1 -1
- package/types/slotted-angular-data-grid.d.ts +5 -1
- package/types/slotted-angular-data-grid.d.ts.map +1 -1
- package/types/slotted-angular-description-list.d.ts +11 -3
- package/types/slotted-angular-description-list.d.ts.map +1 -1
- package/types/slotted-angular-entity-picker.d.ts +1 -0
- package/types/slotted-angular-entity-picker.d.ts.map +1 -1
- package/types/slotted-angular-floating-panel.d.ts +82 -0
- package/types/slotted-angular-floating-panel.d.ts.map +1 -0
- package/types/slotted-angular-list-item.d.ts +33 -6
- package/types/slotted-angular-list-item.d.ts.map +1 -1
- package/types/slotted-angular-list.d.ts +45 -29
- package/types/slotted-angular-list.d.ts.map +1 -1
- package/types/slotted-angular-listbox.d.ts +7 -1
- package/types/slotted-angular-listbox.d.ts.map +1 -1
- package/types/slotted-angular-message.d.ts +17 -3
- package/types/slotted-angular-message.d.ts.map +1 -1
- package/types/slotted-angular-meter.d.ts +67 -0
- package/types/slotted-angular-meter.d.ts.map +1 -0
- package/types/slotted-angular-page.d.ts +33 -10
- package/types/slotted-angular-page.d.ts.map +1 -1
- package/types/slotted-angular-prompt-composer.d.ts +2 -0
- package/types/slotted-angular-prompt-composer.d.ts.map +1 -1
- package/types/slotted-angular-section.d.ts +18 -3
- package/types/slotted-angular-section.d.ts.map +1 -1
- package/types/slotted-angular-segmented-control.d.ts +8 -2
- package/types/slotted-angular-segmented-control.d.ts.map +1 -1
- package/types/slotted-angular-select.d.ts.map +1 -1
- package/types/slotted-angular-side-navigation.d.ts +14 -2
- package/types/slotted-angular-side-navigation.d.ts.map +1 -1
- package/types/slotted-angular-slider.d.ts +7 -1
- package/types/slotted-angular-slider.d.ts.map +1 -1
- package/types/slotted-angular-stat-card.d.ts +20 -2
- package/types/slotted-angular-stat-card.d.ts.map +1 -1
- package/types/slotted-angular-switch.d.ts +16 -2
- package/types/slotted-angular-switch.d.ts.map +1 -1
- package/types/slotted-angular-table.d.ts +32 -3
- package/types/slotted-angular-table.d.ts.map +1 -1
- package/types/slotted-angular-typography.d.ts +21 -2
- package/types/slotted-angular-typography.d.ts.map +1 -1
package/docs/table.json
CHANGED
|
@@ -68,6 +68,10 @@
|
|
|
68
68
|
"start",
|
|
69
69
|
"center",
|
|
70
70
|
"end"
|
|
71
|
+
],
|
|
72
|
+
"guides": [
|
|
73
|
+
true,
|
|
74
|
+
false
|
|
71
75
|
]
|
|
72
76
|
},
|
|
73
77
|
"members": {
|
|
@@ -91,7 +95,8 @@
|
|
|
91
95
|
"cellAlign": "center",
|
|
92
96
|
"blockAlign": "center",
|
|
93
97
|
"stickyFooter": false,
|
|
94
|
-
"searchThreshold": 8
|
|
98
|
+
"searchThreshold": 8,
|
|
99
|
+
"guides": true
|
|
95
100
|
},
|
|
96
101
|
"capabilities": [
|
|
97
102
|
"sort",
|
|
@@ -439,6 +444,13 @@
|
|
|
439
444
|
"appliesTo": "slTable",
|
|
440
445
|
"description": "A tinted ground on every second record"
|
|
441
446
|
},
|
|
447
|
+
{
|
|
448
|
+
"name": "guides",
|
|
449
|
+
"type": "boolean",
|
|
450
|
+
"defaultValue": "true",
|
|
451
|
+
"appliesTo": "slTable",
|
|
452
|
+
"description": "A line per ancestor level beside the rows that name a parent, on the center of the expander one level up"
|
|
453
|
+
},
|
|
442
454
|
{
|
|
443
455
|
"name": "stickyHeader",
|
|
444
456
|
"type": "boolean",
|
|
@@ -600,6 +612,20 @@
|
|
|
600
612
|
"appliesTo": "slTableRow",
|
|
601
613
|
"description": "The record key the selection and the expansion are held by"
|
|
602
614
|
},
|
|
615
|
+
{
|
|
616
|
+
"name": "level",
|
|
617
|
+
"type": "number",
|
|
618
|
+
"defaultValue": "—",
|
|
619
|
+
"appliesTo": "slTableRow",
|
|
620
|
+
"description": "How deep the row sits under the rows that fold it, from 0. The first cell that is not the selection is indented by this many steps, and a cell without an expander keeps its box as space"
|
|
621
|
+
},
|
|
622
|
+
{
|
|
623
|
+
"name": "parent",
|
|
624
|
+
"type": "string",
|
|
625
|
+
"defaultValue": "—",
|
|
626
|
+
"appliesTo": "slTableRow",
|
|
627
|
+
"description": "The value of the row whose expander folds this one. The consumer writes the @if around it, table.isExpanded(parent), as for a detail row."
|
|
628
|
+
},
|
|
603
629
|
{
|
|
604
630
|
"name": "disabled",
|
|
605
631
|
"type": "boolean",
|
|
@@ -621,6 +647,13 @@
|
|
|
621
647
|
"appliesTo": "slTableRow",
|
|
622
648
|
"description": "The record open elsewhere on the page, a detail pane beside the table, written as aria-current"
|
|
623
649
|
},
|
|
650
|
+
{
|
|
651
|
+
"name": "visuallyHidden",
|
|
652
|
+
"type": "boolean",
|
|
653
|
+
"defaultValue": "false",
|
|
654
|
+
"appliesTo": "slTableCaption",
|
|
655
|
+
"description": "Keeps the caption as the accessible name of the table and draws nothing, for a table under a heading that already names it"
|
|
656
|
+
},
|
|
624
657
|
{
|
|
625
658
|
"name": "muted",
|
|
626
659
|
"type": "boolean",
|
|
@@ -816,12 +849,14 @@
|
|
|
816
849
|
"--slotted-radius-sm",
|
|
817
850
|
"--slotted-shadow-xs",
|
|
818
851
|
"--slotted-space-2",
|
|
852
|
+
"--slotted-space-4",
|
|
819
853
|
"--slotted-space-5",
|
|
820
854
|
"--slotted-space-9",
|
|
821
855
|
"--slotted-surface",
|
|
822
856
|
"--slotted-table-border-color",
|
|
823
857
|
"--slotted-table-border-color-strong",
|
|
824
858
|
"--slotted-table-border-width",
|
|
859
|
+
"--slotted-table-caption-surface",
|
|
825
860
|
"--slotted-table-cell-padding-block",
|
|
826
861
|
"--slotted-table-cell-padding-inline",
|
|
827
862
|
"--slotted-table-color",
|
|
@@ -835,6 +870,8 @@
|
|
|
835
870
|
"--slotted-table-group-color",
|
|
836
871
|
"--slotted-table-group-sticky-offset",
|
|
837
872
|
"--slotted-table-group-surface",
|
|
873
|
+
"--slotted-table-guide-color",
|
|
874
|
+
"--slotted-table-header-backdrop-filter",
|
|
838
875
|
"--slotted-table-header-surface",
|
|
839
876
|
"--slotted-table-header-surface-hover",
|
|
840
877
|
"--slotted-table-icon-size",
|
|
@@ -853,6 +890,7 @@
|
|
|
853
890
|
"--slotted-table-sticky-offset-end",
|
|
854
891
|
"--slotted-table-sticky-surface",
|
|
855
892
|
"--slotted-table-surface",
|
|
893
|
+
"--slotted-table-tree-indent",
|
|
856
894
|
"--slotted-target-comfortable",
|
|
857
895
|
"--slotted-target-min",
|
|
858
896
|
"--slotted-text",
|
package/docs/table.md
CHANGED
|
@@ -207,6 +207,7 @@ export class TableBasic {
|
|
|
207
207
|
| `variant` | `'plain' \| 'ruled' \| 'framed'` | ruled | slTable | How much of a frame the set is given |
|
|
208
208
|
| `edges` | `'inset' \| 'flush'` | inset | slTable | Whether the first and the last column keep the cell inset on their outer side. flush lines a plain or ruled table up with the heading around it, leaving the theme’s --slotted-table-edge-inset (0 unless set); a framed table ignores it. Sticky and selection columns keep their own offsets |
|
|
209
209
|
| `striped` | `boolean` | false | slTable | A tinted ground on every second record |
|
|
210
|
+
| `guides` | `boolean` | true | slTable | A line per ancestor level beside the rows that name a parent, on the center of the expander one level up |
|
|
210
211
|
| `stickyHeader` | `boolean` | false | slTable | Whether the header stays while the body scrolls |
|
|
211
212
|
| `stickyFooter` | `boolean` | false | slTable | Whether the summary rows stay while the body scrolls. It pins the tfoot and not the footer bar, which never scrolls. |
|
|
212
213
|
| `stickyTo` | `'scroll' \| 'page'` | scroll | slTable | What the header stays inside: this table own scroller, or whatever scrolls outside it. page releases the scroller, so the table stops scrolling sideways in its frame. |
|
|
@@ -230,9 +231,12 @@ export class TableBasic {
|
|
|
230
231
|
| `scrollLabel` | `string` | — | slTableContent | The name the scrolling region takes while it overflows, over the catalog’s |
|
|
231
232
|
| `scrollLabelledBy` | `string` | — | slTableContent | The element that names the region instead, usually the caption |
|
|
232
233
|
| `value` | `string` | — | slTableRow | The record key the selection and the expansion are held by |
|
|
234
|
+
| `level` | `number` | — | slTableRow | How deep the row sits under the rows that fold it, from 0. The first cell that is not the selection is indented by this many steps, and a cell without an expander keeps its box as space |
|
|
235
|
+
| `parent` | `string` | — | slTableRow | The value of the row whose expander folds this one. The consumer writes the @if around it, table.isExpanded(parent), as for a detail row. |
|
|
233
236
|
| `disabled` | `boolean` | false | slTableRow | A record the reader may not choose; it leaves the set the header covers |
|
|
234
237
|
| `rowIndex` | `number` | — | slTableRow | The record position in the whole set, written as aria-rowindex |
|
|
235
238
|
| `current` | `boolean` | false | slTableRow | The record open elsewhere on the page, a detail pane beside the table, written as aria-current |
|
|
239
|
+
| `visuallyHidden` | `boolean` | false | slTableCaption | Keeps the caption as the accessible name of the table and draws nothing, for a table under a heading that already names it |
|
|
236
240
|
| `muted` | `boolean` | false | slTableRow | Draws the row in the muted ink, for a record that is no longer active; the row stays selectable and pressable |
|
|
237
241
|
| `interactive` | `boolean` | false | slTableRow | Paints the row as a thing the pointer presses; stated beside (action) |
|
|
238
242
|
| `(action)` | `MouseEvent` | — | slTableRow | A click anywhere in the row that lands on no control of its own; the first link or button in the row is the keyboard way in |
|
|
@@ -280,6 +284,7 @@ export class TableBasic {
|
|
|
280
284
|
| `text` | `wrap`, `truncate`, `nowrap` | `wrap` |
|
|
281
285
|
| `sticky` | `start`, `end` | `start` |
|
|
282
286
|
| `blockAlign` | `start`, `center`, `end` | `center` |
|
|
287
|
+
| `guides` | `true`, `false` | `true` |
|
|
283
288
|
|
|
284
289
|
## Rules
|
|
285
290
|
|
|
@@ -295,7 +300,7 @@ export class TableBasic {
|
|
|
295
300
|
|
|
296
301
|
## Tokens
|
|
297
302
|
|
|
298
|
-
`--slotted-border-strong`, `--slotted-border-subtle`, `--slotted-border-width-thin`, `--slotted-control-font-family`, `--slotted-control-font-size-md`, `--slotted-control-gap-md`, `--slotted-control-height-md`, `--slotted-control-icon-size-md`, `--slotted-control-padding-inline-md`, `--slotted-control-transition-duration`, `--slotted-control-transition-easing`, `--slotted-disabled-foreground`, `--slotted-duration-short`, `--slotted-easing-standard`, `--slotted-focus-ring-color`, `--slotted-focus-ring-offset`, `--slotted-focus-ring-width`, `--slotted-font-size-xs`, `--slotted-font-weight-medium`, `--slotted-font-weight-regular`, `--slotted-font-weight-semibold`, `--slotted-ground`, `--slotted-line-height-md`, `--slotted-radius-md`, `--slotted-radius-sm`, `--slotted-shadow-xs`, `--slotted-space-2`, `--slotted-space-5`, `--slotted-space-9`, `--slotted-surface`, `--slotted-table-border-color`, `--slotted-table-border-color-strong`, `--slotted-table-border-width`, `--slotted-table-cell-padding-block`, `--slotted-table-cell-padding-inline`, `--slotted-table-color`, `--slotted-table-color-muted`, `--slotted-table-column-actions-size`, `--slotted-table-control-radius`, `--slotted-table-edge-inset`, `--slotted-table-font-family`, `--slotted-table-font-size`, `--slotted-table-gap`, `--slotted-table-group-color`, `--slotted-table-group-sticky-offset`, `--slotted-table-group-surface`, `--slotted-table-header-surface`, `--slotted-table-header-surface-hover`, `--slotted-table-icon-size`, `--slotted-table-radius`, `--slotted-table-row-color-selected`, `--slotted-table-row-min-block-size`, `--slotted-table-row-surface-current`, `--slotted-table-row-surface-hover`, `--slotted-table-row-surface-selected`, `--slotted-table-row-surface-selected-hover`, `--slotted-table-row-surface-stripe`, `--slotted-table-selection-size`, `--slotted-table-shadow`, `--slotted-table-sticky-inset`, `--slotted-table-sticky-offset`, `--slotted-table-sticky-offset-end`, `--slotted-table-sticky-surface`, `--slotted-table-surface`, `--slotted-target-comfortable`, `--slotted-target-min`, `--slotted-text`, `--slotted-text-muted`, `--slotted-tone-accent-subtle-hover`, `--slotted-tone-accent-surface`, `--slotted-tone-accent-text`, `--slotted-tone-secondary-subtle-active`, `--slotted-tone-secondary-subtle-hover`, `--slotted-z-index-sticky`
|
|
303
|
+
`--slotted-border-strong`, `--slotted-border-subtle`, `--slotted-border-width-thin`, `--slotted-control-font-family`, `--slotted-control-font-size-md`, `--slotted-control-gap-md`, `--slotted-control-height-md`, `--slotted-control-icon-size-md`, `--slotted-control-padding-inline-md`, `--slotted-control-transition-duration`, `--slotted-control-transition-easing`, `--slotted-disabled-foreground`, `--slotted-duration-short`, `--slotted-easing-standard`, `--slotted-focus-ring-color`, `--slotted-focus-ring-offset`, `--slotted-focus-ring-width`, `--slotted-font-size-xs`, `--slotted-font-weight-medium`, `--slotted-font-weight-regular`, `--slotted-font-weight-semibold`, `--slotted-ground`, `--slotted-line-height-md`, `--slotted-radius-md`, `--slotted-radius-sm`, `--slotted-shadow-xs`, `--slotted-space-2`, `--slotted-space-4`, `--slotted-space-5`, `--slotted-space-9`, `--slotted-surface`, `--slotted-table-border-color`, `--slotted-table-border-color-strong`, `--slotted-table-border-width`, `--slotted-table-caption-surface`, `--slotted-table-cell-padding-block`, `--slotted-table-cell-padding-inline`, `--slotted-table-color`, `--slotted-table-color-muted`, `--slotted-table-column-actions-size`, `--slotted-table-control-radius`, `--slotted-table-edge-inset`, `--slotted-table-font-family`, `--slotted-table-font-size`, `--slotted-table-gap`, `--slotted-table-group-color`, `--slotted-table-group-sticky-offset`, `--slotted-table-group-surface`, `--slotted-table-guide-color`, `--slotted-table-header-backdrop-filter`, `--slotted-table-header-surface`, `--slotted-table-header-surface-hover`, `--slotted-table-icon-size`, `--slotted-table-radius`, `--slotted-table-row-color-selected`, `--slotted-table-row-min-block-size`, `--slotted-table-row-surface-current`, `--slotted-table-row-surface-hover`, `--slotted-table-row-surface-selected`, `--slotted-table-row-surface-selected-hover`, `--slotted-table-row-surface-stripe`, `--slotted-table-selection-size`, `--slotted-table-shadow`, `--slotted-table-sticky-inset`, `--slotted-table-sticky-offset`, `--slotted-table-sticky-offset-end`, `--slotted-table-sticky-surface`, `--slotted-table-surface`, `--slotted-table-tree-indent`, `--slotted-target-comfortable`, `--slotted-target-min`, `--slotted-text`, `--slotted-text-muted`, `--slotted-tone-accent-subtle-hover`, `--slotted-tone-accent-surface`, `--slotted-tone-accent-text`, `--slotted-tone-secondary-subtle-active`, `--slotted-tone-secondary-subtle-hover`, `--slotted-z-index-sticky`
|
|
299
304
|
|
|
300
305
|
## Examples
|
|
301
306
|
|
package/docs/tag.json
CHANGED
package/docs/tag.md
CHANGED
|
@@ -121,7 +121,7 @@ Excerpt — not a complete module
|
|
|
121
121
|
|
|
122
122
|
## Tokens
|
|
123
123
|
|
|
124
|
-
`--slotted-border-width-thin`, `--slotted-control-font-family`, `--slotted-control-font-size-lg`, `--slotted-control-font-size-md`, `--slotted-control-font-size-sm`, `--slotted-control-icon-size-md`, `--slotted-control-icon-size-sm`, `--slotted-control-inner-size`, `--slotted-control-inner-size-md`, `--slotted-control-inner-size-sm`, `--slotted-control-transition-duration`, `--slotted-control-transition-easing`, `--slotted-disabled-background`, `--slotted-disabled-border`, `--slotted-disabled-foreground`, `--slotted-duration-short`, `--slotted-easing-standard`, `--slotted-focus-ring-color`, `--slotted-focus-ring-offset`, `--slotted-focus-ring-width`, `--slotted-font-weight-medium`, `--slotted-line-height-xs`, `--slotted-radius-full`, `--slotted-radius-sm`, `--slotted-space-1`, `--slotted-space-2`, `--slotted-space-3`, `--slotted-space-4`, `--slotted-space-5`, `--slotted-tag-border-color`, `--slotted-tag-border-width`, `--slotted-tag-font-family`, `--slotted-tag-font-weight`, `--slotted-tag-group-gap`, `--slotted-tag-inset-block`, `--slotted-tag-inset-inline`, `--slotted-tag-state-layer-active`, `--slotted-tag-state-layer-hover`, `--slotted-target-comfortable`, `--slotted-target-min`, `--slotted-tone-accent-border`, `--slotted-tone-accent-on-solid`, `--slotted-tone-accent-solid`, `--slotted-tone-accent-solid-active`, `--slotted-tone-accent-solid-hover`, `--slotted-tone-accent-subtle-active`, `--slotted-tone-accent-subtle-hover`, `--slotted-tone-accent-surface`, `--slotted-tone-accent-text`, `--slotted-tone-danger-border`, `--slotted-tone-danger-on-solid`, `--slotted-tone-danger-solid`, `--slotted-tone-danger-solid-active`, `--slotted-tone-danger-solid-hover`, `--slotted-tone-danger-subtle-active`, `--slotted-tone-danger-subtle-hover`, `--slotted-tone-danger-surface`, `--slotted-tone-danger-text`, `--slotted-tone-info-border`, `--slotted-tone-info-on-solid`, `--slotted-tone-info-solid`, `--slotted-tone-info-solid-active`, `--slotted-tone-info-solid-hover`, `--slotted-tone-info-subtle-active`, `--slotted-tone-info-subtle-hover`, `--slotted-tone-info-surface`, `--slotted-tone-info-text`, `--slotted-tone-secondary-border`, `--slotted-tone-secondary-on-solid`, `--slotted-tone-secondary-solid-active`, `--slotted-tone-secondary-solid-hover`, `--slotted-tone-secondary-subtle-active`, `--slotted-tone-secondary-subtle-hover`, `--slotted-tone-secondary-surface`, `--slotted-tone-secondary-text`, `--slotted-tone-success-border`, `--slotted-tone-success-on-solid`, `--slotted-tone-success-solid`, `--slotted-tone-success-solid-active`, `--slotted-tone-success-solid-hover`, `--slotted-tone-success-subtle-active`, `--slotted-tone-success-subtle-hover`, `--slotted-tone-success-surface`, `--slotted-tone-success-text`, `--slotted-tone-warning-border`, `--slotted-tone-warning-on-solid`, `--slotted-tone-warning-solid`, `--slotted-tone-warning-solid-active`, `--slotted-tone-warning-solid-hover`, `--slotted-tone-warning-subtle-active`, `--slotted-tone-warning-subtle-hover`, `--slotted-tone-warning-surface`, `--slotted-tone-warning-text`
|
|
124
|
+
`--slotted-border-width-thin`, `--slotted-control-font-family`, `--slotted-control-font-size-lg`, `--slotted-control-font-size-md`, `--slotted-control-font-size-sm`, `--slotted-control-icon-size-md`, `--slotted-control-icon-size-sm`, `--slotted-control-inner-size`, `--slotted-control-inner-size-md`, `--slotted-control-inner-size-sm`, `--slotted-control-transition-duration`, `--slotted-control-transition-easing`, `--slotted-disabled-background`, `--slotted-disabled-border`, `--slotted-disabled-foreground`, `--slotted-duration-short`, `--slotted-easing-standard`, `--slotted-focus-ring-color`, `--slotted-focus-ring-offset`, `--slotted-focus-ring-width`, `--slotted-font-weight-medium`, `--slotted-line-height-xs`, `--slotted-radius-full`, `--slotted-radius-sm`, `--slotted-space-1`, `--slotted-space-2`, `--slotted-space-3`, `--slotted-space-4`, `--slotted-space-5`, `--slotted-tag-border-color`, `--slotted-tag-border-width`, `--slotted-tag-font-family`, `--slotted-tag-font-weight`, `--slotted-tag-group-gap`, `--slotted-tag-inset-block`, `--slotted-tag-inset-inline`, `--slotted-tag-state-layer-active`, `--slotted-tag-state-layer-hover`, `--slotted-target-comfortable`, `--slotted-target-min`, `--slotted-text-box-edge`, `--slotted-tone-accent-border`, `--slotted-tone-accent-on-solid`, `--slotted-tone-accent-solid`, `--slotted-tone-accent-solid-active`, `--slotted-tone-accent-solid-hover`, `--slotted-tone-accent-subtle-active`, `--slotted-tone-accent-subtle-hover`, `--slotted-tone-accent-surface`, `--slotted-tone-accent-text`, `--slotted-tone-danger-border`, `--slotted-tone-danger-on-solid`, `--slotted-tone-danger-solid`, `--slotted-tone-danger-solid-active`, `--slotted-tone-danger-solid-hover`, `--slotted-tone-danger-subtle-active`, `--slotted-tone-danger-subtle-hover`, `--slotted-tone-danger-surface`, `--slotted-tone-danger-text`, `--slotted-tone-info-border`, `--slotted-tone-info-on-solid`, `--slotted-tone-info-solid`, `--slotted-tone-info-solid-active`, `--slotted-tone-info-solid-hover`, `--slotted-tone-info-subtle-active`, `--slotted-tone-info-subtle-hover`, `--slotted-tone-info-surface`, `--slotted-tone-info-text`, `--slotted-tone-secondary-border`, `--slotted-tone-secondary-on-solid`, `--slotted-tone-secondary-solid-active`, `--slotted-tone-secondary-solid-hover`, `--slotted-tone-secondary-subtle-active`, `--slotted-tone-secondary-subtle-hover`, `--slotted-tone-secondary-surface`, `--slotted-tone-secondary-text`, `--slotted-tone-success-border`, `--slotted-tone-success-on-solid`, `--slotted-tone-success-solid`, `--slotted-tone-success-solid-active`, `--slotted-tone-success-solid-hover`, `--slotted-tone-success-subtle-active`, `--slotted-tone-success-subtle-hover`, `--slotted-tone-success-surface`, `--slotted-tone-success-text`, `--slotted-tone-warning-border`, `--slotted-tone-warning-on-solid`, `--slotted-tone-warning-solid`, `--slotted-tone-warning-solid-active`, `--slotted-tone-warning-solid-hover`, `--slotted-tone-warning-subtle-active`, `--slotted-tone-warning-subtle-hover`, `--slotted-tone-warning-surface`, `--slotted-tone-warning-text`
|
|
125
125
|
|
|
126
126
|
## Examples
|
|
127
127
|
|
package/docs/tokens.md
CHANGED
|
@@ -428,7 +428,7 @@ The size of a selection control and of the halo behind it.
|
|
|
428
428
|
| `--slotted-selection-size-sm` | The box of a checkbox and the circle of a radio at the small step. | 14px |
|
|
429
429
|
| `--slotted-selection-size-md` | The box and the circle at the medium step. | 16px |
|
|
430
430
|
| `--slotted-selection-size-lg` | The box and the circle at the large step. | 18px |
|
|
431
|
-
| `--slotted-selection-halo-opacity` | The share of `--slotted-tone-accent-text` in the halo behind a selection control under the pointer. | 0.
|
|
431
|
+
| `--slotted-selection-halo-opacity` | The share of `--slotted-tone-accent-text` in the halo behind a selection control under the pointer. | 0.14 |
|
|
432
432
|
|
|
433
433
|
## highlight
|
|
434
434
|
|
|
@@ -438,6 +438,18 @@ How strong the band behind a matched span is.
|
|
|
438
438
|
| --- | --- | --- |
|
|
439
439
|
| `--slotted-highlight-tint-opacity` | The share of `--slotted-tone-accent-text` in the band behind a matched span. | 0.075 |
|
|
440
440
|
|
|
441
|
+
## mark
|
|
442
|
+
|
|
443
|
+
How the track, the dot and the ring of a small data mark are drawn.
|
|
444
|
+
|
|
445
|
+
| Token | Meaning | Default value |
|
|
446
|
+
| --- | --- | --- |
|
|
447
|
+
| `--slotted-mark-track-thickness` | The thickness of the track a mark is placed on. | 0.25rem |
|
|
448
|
+
| `--slotted-mark-dot-size` | The diameter of a dot that stands for one value. | 0.375rem |
|
|
449
|
+
| `--slotted-mark-ring-width` | The width of the ring that separates the current value's dot from what it covers. | 2px |
|
|
450
|
+
| `--slotted-mark-track-color` | The color of the track, quieter than any mark on it. | by scheme |
|
|
451
|
+
| `--slotted-mark-ring-color` | The color of that ring: the ground a mark stands on. | by scheme |
|
|
452
|
+
|
|
441
453
|
## current
|
|
442
454
|
|
|
443
455
|
How the place the reader is on is marked.
|
package/docs/toolbar.json
CHANGED
|
@@ -285,7 +285,8 @@
|
|
|
285
285
|
"--slotted-toolbar-overflow-hover-background",
|
|
286
286
|
"--slotted-toolbar-overflow-hover-color",
|
|
287
287
|
"--slotted-toolbar-overflow-open-background",
|
|
288
|
-
"--slotted-toolbar-separator-color"
|
|
288
|
+
"--slotted-toolbar-separator-color",
|
|
289
|
+
"--slotted-toolbar-shadow"
|
|
289
290
|
],
|
|
290
291
|
"examples": [
|
|
291
292
|
{
|
package/docs/toolbar.md
CHANGED
|
@@ -77,7 +77,7 @@ Excerpt — not a complete module
|
|
|
77
77
|
|
|
78
78
|
## Tokens
|
|
79
79
|
|
|
80
|
-
`--slotted-border-subtle`, `--slotted-border-width-thin`, `--slotted-control-border-color`, `--slotted-control-font-family`, `--slotted-control-font-size-lg`, `--slotted-control-font-size-md`, `--slotted-control-font-size-sm`, `--slotted-control-gap-lg`, `--slotted-control-gap-md`, `--slotted-control-gap-sm`, `--slotted-control-height-lg`, `--slotted-control-height-md`, `--slotted-control-height-sm`, `--slotted-control-icon-size-lg`, `--slotted-control-icon-size-md`, `--slotted-control-icon-size-sm`, `--slotted-control-inner-size-lg`, `--slotted-control-inner-size-md`, `--slotted-control-inner-size-sm`, `--slotted-control-radius`, `--slotted-control-transition-duration`, `--slotted-control-transition-easing`, `--slotted-disabled-foreground`, `--slotted-focus-ring-color`, `--slotted-focus-ring-offset`, `--slotted-focus-ring-width`, `--slotted-radius-md`, `--slotted-space-1`, `--slotted-space-2`, `--slotted-space-3`, `--slotted-surface-raised`, `--slotted-target-comfortable`, `--slotted-target-min`, `--slotted-text`, `--slotted-text-muted`, `--slotted-tone-secondary-subtle-active`, `--slotted-tone-secondary-subtle-hover`, `--slotted-toolbar-background`, `--slotted-toolbar-border-color`, `--slotted-toolbar-gap`, `--slotted-toolbar-inset`, `--slotted-toolbar-overflow-active-background`, `--slotted-toolbar-overflow-color`, `--slotted-toolbar-overflow-hover-background`, `--slotted-toolbar-overflow-hover-color`, `--slotted-toolbar-overflow-open-background`, `--slotted-toolbar-separator-color`
|
|
80
|
+
`--slotted-border-subtle`, `--slotted-border-width-thin`, `--slotted-control-border-color`, `--slotted-control-font-family`, `--slotted-control-font-size-lg`, `--slotted-control-font-size-md`, `--slotted-control-font-size-sm`, `--slotted-control-gap-lg`, `--slotted-control-gap-md`, `--slotted-control-gap-sm`, `--slotted-control-height-lg`, `--slotted-control-height-md`, `--slotted-control-height-sm`, `--slotted-control-icon-size-lg`, `--slotted-control-icon-size-md`, `--slotted-control-icon-size-sm`, `--slotted-control-inner-size-lg`, `--slotted-control-inner-size-md`, `--slotted-control-inner-size-sm`, `--slotted-control-radius`, `--slotted-control-transition-duration`, `--slotted-control-transition-easing`, `--slotted-disabled-foreground`, `--slotted-focus-ring-color`, `--slotted-focus-ring-offset`, `--slotted-focus-ring-width`, `--slotted-radius-md`, `--slotted-space-1`, `--slotted-space-2`, `--slotted-space-3`, `--slotted-surface-raised`, `--slotted-target-comfortable`, `--slotted-target-min`, `--slotted-text`, `--slotted-text-muted`, `--slotted-tone-secondary-subtle-active`, `--slotted-tone-secondary-subtle-hover`, `--slotted-toolbar-background`, `--slotted-toolbar-border-color`, `--slotted-toolbar-gap`, `--slotted-toolbar-inset`, `--slotted-toolbar-overflow-active-background`, `--slotted-toolbar-overflow-color`, `--slotted-toolbar-overflow-hover-background`, `--slotted-toolbar-overflow-hover-color`, `--slotted-toolbar-overflow-open-background`, `--slotted-toolbar-separator-color`, `--slotted-toolbar-shadow`
|
|
81
81
|
|
|
82
82
|
## Examples
|
|
83
83
|
|
package/docs/top-navigation.json
CHANGED
package/docs/top-navigation.md
CHANGED
|
@@ -131,7 +131,7 @@ Excerpt — not a complete module
|
|
|
131
131
|
|
|
132
132
|
## Tokens
|
|
133
133
|
|
|
134
|
-
`--slotted-app-shell-row-font-size`, `--slotted-app-shell-row-height`, `--slotted-app-shell-row-inset`, `--slotted-app-shell-row-line-height`, `--slotted-border-subtle`, `--slotted-border-width-thick`, `--slotted-border-width-thin`, `--slotted-control-font-family`, `--slotted-control-font-size-lg`, `--slotted-control-font-size-md`, `--slotted-control-font-size-sm`, `--slotted-control-gap-lg`, `--slotted-control-gap-md`, `--slotted-control-gap-sm`, `--slotted-control-height-lg`, `--slotted-control-height-md`, `--slotted-control-height-sm`, `--slotted-control-icon-size-lg`, `--slotted-control-icon-size-md`, `--slotted-control-icon-size-sm`, `--slotted-control-line-height`, `--slotted-control-padding-inline-lg`, `--slotted-control-padding-inline-md`, `--slotted-control-padding-inline-sm`, `--slotted-control-radius`, `--slotted-control-transition-duration`, `--slotted-control-transition-easing`, `--slotted-current-edge`, `--slotted-disabled-foreground`, `--slotted-duration-instant`, `--slotted-duration-medium`, `--slotted-duration-short`, `--slotted-easing-enter`, `--slotted-easing-exit`, `--slotted-easing-standard`, `--slotted-focus-ring-color`, `--slotted-focus-ring-offset`, `--slotted-focus-ring-width`, `--slotted-font-size-lg`, `--slotted-font-size-md`, `--slotted-font-size-sm`, `--slotted-font-size-xs`, `--slotted-font-weight-medium`, `--slotted-font-weight-semibold`, `--slotted-line-height-md`, `--slotted-line-height-sm`, `--slotted-line-height-xs`, `--slotted-radius-full`, `--slotted-radius-lg`, `--slotted-shadow-md`, `--slotted-space-1`, `--slotted-space-2`, `--slotted-space-3`, `--slotted-space-4`, `--slotted-space-5`, `--slotted-space-6`, `--slotted-surface`, `--slotted-surface-raised`, `--slotted-text`, `--slotted-text-muted`, `--slotted-tone-accent-on-solid`, `--slotted-tone-accent-solid`, `--slotted-tone-accent-surface`, `--slotted-tone-accent-text`, `--slotted-tone-secondary-subtle-active`, `--slotted-tone-secondary-subtle-hover`, `--slotted-top-navigation-active-background`, `--slotted-top-navigation-block-size`, `--slotted-top-navigation-border-color`, `--slotted-top-navigation-color`, `--slotted-top-navigation-count-background`, `--slotted-top-navigation-count-color`, `--slotted-top-navigation-current-background`, `--slotted-top-navigation-current-color`, `--slotted-top-navigation-current-edge`, `--slotted-top-navigation-hover-background`, `--slotted-top-navigation-inset`, `--slotted-top-navigation-muted-color`, `--slotted-top-navigation-name-font-size`, `--slotted-top-navigation-name-max`, `--slotted-top-navigation-panel-radius`, `--slotted-top-navigation-panel-shadow`, `--slotted-top-navigation-panel-size`, `--slotted-top-navigation-panel-surface`, `--slotted-top-navigation-radius`, `--slotted-top-navigation-search-min`, `--slotted-top-navigation-search-size`, `--slotted-top-navigation-surface`, `--slotted-z-index-popover`
|
|
134
|
+
`--slotted-app-shell-row-font-size`, `--slotted-app-shell-row-height`, `--slotted-app-shell-row-inset`, `--slotted-app-shell-row-line-height`, `--slotted-border-subtle`, `--slotted-border-width-thick`, `--slotted-border-width-thin`, `--slotted-control-font-family`, `--slotted-control-font-size-lg`, `--slotted-control-font-size-md`, `--slotted-control-font-size-sm`, `--slotted-control-gap-lg`, `--slotted-control-gap-md`, `--slotted-control-gap-sm`, `--slotted-control-height-lg`, `--slotted-control-height-md`, `--slotted-control-height-sm`, `--slotted-control-icon-size-lg`, `--slotted-control-icon-size-md`, `--slotted-control-icon-size-sm`, `--slotted-control-line-height`, `--slotted-control-padding-inline-lg`, `--slotted-control-padding-inline-md`, `--slotted-control-padding-inline-sm`, `--slotted-control-radius`, `--slotted-control-transition-duration`, `--slotted-control-transition-easing`, `--slotted-current-edge`, `--slotted-disabled-foreground`, `--slotted-duration-instant`, `--slotted-duration-medium`, `--slotted-duration-short`, `--slotted-easing-enter`, `--slotted-easing-exit`, `--slotted-easing-standard`, `--slotted-focus-ring-color`, `--slotted-focus-ring-offset`, `--slotted-focus-ring-width`, `--slotted-font-size-lg`, `--slotted-font-size-md`, `--slotted-font-size-sm`, `--slotted-font-size-xs`, `--slotted-font-weight-medium`, `--slotted-font-weight-semibold`, `--slotted-line-height-md`, `--slotted-line-height-sm`, `--slotted-line-height-xs`, `--slotted-radius-full`, `--slotted-radius-lg`, `--slotted-shadow-md`, `--slotted-space-1`, `--slotted-space-2`, `--slotted-space-3`, `--slotted-space-4`, `--slotted-space-5`, `--slotted-space-6`, `--slotted-surface`, `--slotted-surface-raised`, `--slotted-text`, `--slotted-text-box-edge`, `--slotted-text-muted`, `--slotted-tone-accent-on-solid`, `--slotted-tone-accent-solid`, `--slotted-tone-accent-surface`, `--slotted-tone-accent-text`, `--slotted-tone-secondary-subtle-active`, `--slotted-tone-secondary-subtle-hover`, `--slotted-top-navigation-active-background`, `--slotted-top-navigation-block-size`, `--slotted-top-navigation-border-color`, `--slotted-top-navigation-color`, `--slotted-top-navigation-count-background`, `--slotted-top-navigation-count-color`, `--slotted-top-navigation-current-background`, `--slotted-top-navigation-current-color`, `--slotted-top-navigation-current-edge`, `--slotted-top-navigation-hover-background`, `--slotted-top-navigation-inset`, `--slotted-top-navigation-muted-color`, `--slotted-top-navigation-name-font-size`, `--slotted-top-navigation-name-max`, `--slotted-top-navigation-panel-radius`, `--slotted-top-navigation-panel-shadow`, `--slotted-top-navigation-panel-size`, `--slotted-top-navigation-panel-surface`, `--slotted-top-navigation-radius`, `--slotted-top-navigation-search-min`, `--slotted-top-navigation-search-size`, `--slotted-top-navigation-surface`, `--slotted-z-index-popover`
|
|
135
135
|
|
|
136
136
|
## Examples
|
|
137
137
|
|
package/docs/typography.json
CHANGED
|
@@ -158,6 +158,13 @@
|
|
|
158
158
|
"defaultValue": "—",
|
|
159
159
|
"appliesTo": "slText",
|
|
160
160
|
"description": "Keeps one line, or the given number; the string stays whole"
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
"name": "textBox",
|
|
164
|
+
"type": "'none' | 'start' | 'end' | 'both' | { trim, edge? }",
|
|
165
|
+
"defaultValue": "none",
|
|
166
|
+
"appliesTo": "slText",
|
|
167
|
+
"description": "Takes the half-leading off the start, the end or both edges, so the text shares a top edge, a bottom edge and an optical center with what stands beside it. edge is an over edge (text, cap, ex, ideographic, ideographic-ink) or an { over, under } pair, and defaults to --slotted-text-box-edge (cap alphabetic), which the families that trim their own labels read too. A trimmed box clips descenders under overflow hidden or a line clamp, a focus ring or a ground hugs the cap height, and only the first and last line of a wrapped text are trimmed"
|
|
161
168
|
}
|
|
162
169
|
],
|
|
163
170
|
"composition": [],
|
|
@@ -229,6 +236,13 @@
|
|
|
229
236
|
"defaultValue": "—",
|
|
230
237
|
"appliesTo": "slHeading",
|
|
231
238
|
"description": "Keeps the given number of lines; the string stays whole"
|
|
239
|
+
},
|
|
240
|
+
{
|
|
241
|
+
"name": "textBox",
|
|
242
|
+
"type": "'none' | 'start' | 'end' | 'both' | { trim, edge? }",
|
|
243
|
+
"defaultValue": "none",
|
|
244
|
+
"appliesTo": "slHeading",
|
|
245
|
+
"description": "Takes the half-leading off the start, the end or both edges, so the text shares a top edge, a bottom edge and an optical center with what stands beside it. edge is an over edge (text, cap, ex, ideographic, ideographic-ink) or an { over, under } pair, and defaults to --slotted-text-box-edge (cap alphabetic), which the families that trim their own labels read too. A trimmed box clips descenders under overflow hidden or a line clamp, a focus ring or a ground hugs the cap height, and only the first and last line of a wrapped text are trimmed"
|
|
232
246
|
}
|
|
233
247
|
],
|
|
234
248
|
"composition": [],
|
|
@@ -263,6 +277,7 @@
|
|
|
263
277
|
"--slotted-line-height-xl",
|
|
264
278
|
"--slotted-line-height-xs",
|
|
265
279
|
"--slotted-text",
|
|
280
|
+
"--slotted-text-box-edge",
|
|
266
281
|
"--slotted-text-inverse",
|
|
267
282
|
"--slotted-text-muted",
|
|
268
283
|
"--slotted-tone-accent-text",
|
package/docs/typography.md
CHANGED
|
@@ -25,6 +25,7 @@ Excerpt — not a complete module
|
|
|
25
25
|
| `transform` | `'none' \| 'uppercase' \| 'capitalize'` | — | slText | Letter case, with the tracking capitals need |
|
|
26
26
|
| `numeric` | `'normal' \| 'tabular'` | — | slText | Tabular figures for a column of numbers |
|
|
27
27
|
| `truncate` | `boolean \| number` | — | slText | Keeps one line, or the given number; the string stays whole |
|
|
28
|
+
| `textBox` | `'none' \| 'start' \| 'end' \| 'both' \| { trim, edge? }` | none | slText | Takes the half-leading off the start, the end or both edges, so the text shares a top edge, a bottom edge and an optical center with what stands beside it. edge is an over edge (text, cap, ex, ideographic, ideographic-ink) or an { over, under } pair, and defaults to --slotted-text-box-edge (cap alphabetic), which the families that trim their own labels read too. A trimmed box clips descenders under overflow hidden or a line clamp, a focus ring or a ground hugs the cap height, and only the first and last line of a wrapped text are trimmed |
|
|
28
29
|
|
|
29
30
|
### heading
|
|
30
31
|
|
|
@@ -38,6 +39,7 @@ Excerpt — not a complete module
|
|
|
38
39
|
| `transform` | `'none' \| 'uppercase' \| 'capitalize'` | — | slHeading | Letter case |
|
|
39
40
|
| `numeric` | `'normal' \| 'tabular'` | — | slHeading | Tabular figures |
|
|
40
41
|
| `truncate` | `boolean \| number` | — | slHeading | Keeps the given number of lines; the string stays whole |
|
|
42
|
+
| `textBox` | `'none' \| 'start' \| 'end' \| 'both' \| { trim, edge? }` | none | slHeading | Takes the half-leading off the start, the end or both edges, so the text shares a top edge, a bottom edge and an optical center with what stands beside it. edge is an over edge (text, cap, ex, ideographic, ideographic-ink) or an { over, under } pair, and defaults to --slotted-text-box-edge (cap alphabetic), which the families that trim their own labels read too. A trimmed box clips descenders under overflow hidden or a line clamp, a focus ring or a ground hugs the cap height, and only the first and last line of a wrapped text are trimmed |
|
|
41
43
|
|
|
42
44
|
## Axes and defaults
|
|
43
45
|
|
|
@@ -67,7 +69,7 @@ Excerpt — not a complete module
|
|
|
67
69
|
|
|
68
70
|
## Tokens
|
|
69
71
|
|
|
70
|
-
`--slotted-font-family-heading`, `--slotted-font-family-sans`, `--slotted-font-size-2xl`, `--slotted-font-size-3xl`, `--slotted-font-size-lg`, `--slotted-font-size-md`, `--slotted-font-size-sm`, `--slotted-font-size-xl`, `--slotted-font-size-xs`, `--slotted-font-weight-medium`, `--slotted-font-weight-regular`, `--slotted-font-weight-semibold`, `--slotted-line-height-2xl`, `--slotted-line-height-3xl`, `--slotted-line-height-lg`, `--slotted-line-height-md`, `--slotted-line-height-sm`, `--slotted-line-height-xl`, `--slotted-line-height-xs`, `--slotted-text`, `--slotted-text-inverse`, `--slotted-text-muted`, `--slotted-tone-accent-text`, `--slotted-tone-danger-text`, `--slotted-tone-info-text`, `--slotted-tone-success-text`, `--slotted-tone-warning-text`, `--slotted-typography-font-family`, `--slotted-typography-lines`, `--slotted-typography-uppercase-tracking`
|
|
72
|
+
`--slotted-font-family-heading`, `--slotted-font-family-sans`, `--slotted-font-size-2xl`, `--slotted-font-size-3xl`, `--slotted-font-size-lg`, `--slotted-font-size-md`, `--slotted-font-size-sm`, `--slotted-font-size-xl`, `--slotted-font-size-xs`, `--slotted-font-weight-medium`, `--slotted-font-weight-regular`, `--slotted-font-weight-semibold`, `--slotted-line-height-2xl`, `--slotted-line-height-3xl`, `--slotted-line-height-lg`, `--slotted-line-height-md`, `--slotted-line-height-sm`, `--slotted-line-height-xl`, `--slotted-line-height-xs`, `--slotted-text`, `--slotted-text-box-edge`, `--slotted-text-inverse`, `--slotted-text-muted`, `--slotted-tone-accent-text`, `--slotted-tone-danger-text`, `--slotted-tone-info-text`, `--slotted-tone-success-text`, `--slotted-tone-warning-text`, `--slotted-typography-font-family`, `--slotted-typography-lines`, `--slotted-typography-uppercase-tracking`
|
|
71
73
|
|
|
72
74
|
## Examples
|
|
73
75
|
|
|
@@ -226,7 +226,7 @@ class SlAccordion {
|
|
|
226
226
|
this.value.set(next);
|
|
227
227
|
}
|
|
228
228
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlAccordion, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
229
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.1.7", type: SlAccordion, isStandalone: true, selector: "[slAccordion]", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, multiple: { classPropertyName: "multiple", publicName: "multiple", isSignal: true, isRequired: false, transformFunction: null }, requireOpen: { classPropertyName: "requireOpen", publicName: "requireOpen", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, indicator: { classPropertyName: "indicator", publicName: "indicator", isSignal: true, isRequired: false, transformFunction: null }, togglePlacement: { classPropertyName: "togglePlacement", publicName: "togglePlacement", isSignal: true, isRequired: false, transformFunction: null }, headingLevel: { classPropertyName: "headingLevel", publicName: "headingLevel", isSignal: true, isRequired: false, transformFunction: null }, mount: { classPropertyName: "mount", publicName: "mount", isSignal: true, isRequired: false, transformFunction: null }, truncate: { classPropertyName: "truncate", publicName: "truncate", isSignal: true, isRequired: false, transformFunction: null }, loop: { classPropertyName: "loop", publicName: "loop", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange", valueChangeRequest: "valueChangeRequest" }, host: { attributes: { "data-ui": "accordion", "data-ui-accordion": "", "data-part": "root", "data-part-root": "" }, properties: { "attr.data-size": "resolvedSize()", "attr.data-variant": "resolvedVariant()", "attr.data-disabled": "disabled() ? '' : null" } }, exportAs: ["slAccordion"], ngImport: i0, template: '<ng-content />', isInline: true, styles: ["@layer slotted.components{[data-ui-accordion]{--_rule-size: var(--slotted-border-width-thin, 1px);--_gap: var(--slotted-space-4, .5rem);display:grid;grid-auto-flow:row;grid-auto-rows:min-content;min-inline-size:0}[data-ui-accordion][data-size=sm]{--_gap: var(--slotted-space-3, .375rem)}[data-ui-accordion][data-size=lg]{--_gap: var(--slotted-space-5, .75rem)}[data-ui-accordion][data-variant=ruled]{border-block-end:var(--_rule-size) solid var(--slotted-accordion-rule-color, var(--slotted-border-subtle, ButtonBorder))}[data-ui-accordion][data-variant=framed]{background-color:var(--slotted-accordion-surface, var(--slotted-surface-raised, Canvas));border:var(--
|
|
229
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.1.7", type: SlAccordion, isStandalone: true, selector: "[slAccordion]", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, multiple: { classPropertyName: "multiple", publicName: "multiple", isSignal: true, isRequired: false, transformFunction: null }, requireOpen: { classPropertyName: "requireOpen", publicName: "requireOpen", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, indicator: { classPropertyName: "indicator", publicName: "indicator", isSignal: true, isRequired: false, transformFunction: null }, togglePlacement: { classPropertyName: "togglePlacement", publicName: "togglePlacement", isSignal: true, isRequired: false, transformFunction: null }, headingLevel: { classPropertyName: "headingLevel", publicName: "headingLevel", isSignal: true, isRequired: false, transformFunction: null }, mount: { classPropertyName: "mount", publicName: "mount", isSignal: true, isRequired: false, transformFunction: null }, truncate: { classPropertyName: "truncate", publicName: "truncate", isSignal: true, isRequired: false, transformFunction: null }, loop: { classPropertyName: "loop", publicName: "loop", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange", valueChangeRequest: "valueChangeRequest" }, host: { attributes: { "data-ui": "accordion", "data-ui-accordion": "", "data-part": "root", "data-part-root": "" }, properties: { "attr.data-size": "resolvedSize()", "attr.data-variant": "resolvedVariant()", "attr.data-disabled": "disabled() ? '' : null" } }, exportAs: ["slAccordion"], ngImport: i0, template: '<ng-content />', isInline: true, styles: ["@layer slotted.components{[data-ui-accordion]{--_rule-size: var(--slotted-border-width-thin, 1px);--_gap: var(--slotted-space-4, .5rem);display:grid;grid-auto-flow:row;grid-auto-rows:min-content;min-inline-size:0}[data-ui-accordion][data-size=sm]{--_gap: var(--slotted-space-3, .375rem)}[data-ui-accordion][data-size=lg]{--_gap: var(--slotted-space-5, .75rem)}[data-ui-accordion][data-variant=ruled]{border-block-end:var(--_rule-size) solid var(--slotted-accordion-rule-color, var(--slotted-border-subtle, ButtonBorder))}[data-ui-accordion][data-variant=framed]{background-color:var(--slotted-accordion-surface, var(--slotted-surface-raised, Canvas));border-radius:var(--slotted-accordion-radius, var(--slotted-radius-md, 6px));--_frame-edge: var( --slotted-accordion-border-color, var(--slotted-accordion-rule-color, var(--slotted-border-subtle, ButtonBorder)) );box-shadow:var(--slotted-accordion-shadow, none);overflow:clip;position:relative}[data-ui-accordion][data-variant=framed]:before{border:var(--_rule-size) solid var(--_frame-edge);border-radius:inherit;content:\"\";inset:0;pointer-events:none;position:absolute;z-index:1}[data-ui-accordion][data-variant=framed]>:first-child{border-block-start-color:transparent}[data-ui-accordion][data-variant=separated]{row-gap:var(--slotted-accordion-gap, var(--_gap))}[data-ui-accordion][data-disabled]{color:var(--slotted-disabled-foreground, GrayText)}}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
230
230
|
}
|
|
231
231
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlAccordion, decorators: [{
|
|
232
232
|
type: Component,
|
|
@@ -238,7 +238,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImpor
|
|
|
238
238
|
'[attr.data-size]': 'resolvedSize()',
|
|
239
239
|
'[attr.data-variant]': 'resolvedVariant()',
|
|
240
240
|
'[attr.data-disabled]': "disabled() ? '' : null",
|
|
241
|
-
}, styles: ["@layer slotted.components{[data-ui-accordion]{--_rule-size: var(--slotted-border-width-thin, 1px);--_gap: var(--slotted-space-4, .5rem);display:grid;grid-auto-flow:row;grid-auto-rows:min-content;min-inline-size:0}[data-ui-accordion][data-size=sm]{--_gap: var(--slotted-space-3, .375rem)}[data-ui-accordion][data-size=lg]{--_gap: var(--slotted-space-5, .75rem)}[data-ui-accordion][data-variant=ruled]{border-block-end:var(--_rule-size) solid var(--slotted-accordion-rule-color, var(--slotted-border-subtle, ButtonBorder))}[data-ui-accordion][data-variant=framed]{background-color:var(--slotted-accordion-surface, var(--slotted-surface-raised, Canvas));border:var(--
|
|
241
|
+
}, styles: ["@layer slotted.components{[data-ui-accordion]{--_rule-size: var(--slotted-border-width-thin, 1px);--_gap: var(--slotted-space-4, .5rem);display:grid;grid-auto-flow:row;grid-auto-rows:min-content;min-inline-size:0}[data-ui-accordion][data-size=sm]{--_gap: var(--slotted-space-3, .375rem)}[data-ui-accordion][data-size=lg]{--_gap: var(--slotted-space-5, .75rem)}[data-ui-accordion][data-variant=ruled]{border-block-end:var(--_rule-size) solid var(--slotted-accordion-rule-color, var(--slotted-border-subtle, ButtonBorder))}[data-ui-accordion][data-variant=framed]{background-color:var(--slotted-accordion-surface, var(--slotted-surface-raised, Canvas));border-radius:var(--slotted-accordion-radius, var(--slotted-radius-md, 6px));--_frame-edge: var( --slotted-accordion-border-color, var(--slotted-accordion-rule-color, var(--slotted-border-subtle, ButtonBorder)) );box-shadow:var(--slotted-accordion-shadow, none);overflow:clip;position:relative}[data-ui-accordion][data-variant=framed]:before{border:var(--_rule-size) solid var(--_frame-edge);border-radius:inherit;content:\"\";inset:0;pointer-events:none;position:absolute;z-index:1}[data-ui-accordion][data-variant=framed]>:first-child{border-block-start-color:transparent}[data-ui-accordion][data-variant=separated]{row-gap:var(--slotted-accordion-gap, var(--_gap))}[data-ui-accordion][data-disabled]{color:var(--slotted-disabled-foreground, GrayText)}}\n"] }]
|
|
242
242
|
}], ctorParameters: () => [], propDecorators: { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], multiple: [{ type: i0.Input, args: [{ isSignal: true, alias: "multiple", required: false }] }], requireOpen: [{ type: i0.Input, args: [{ isSignal: true, alias: "requireOpen", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], indicator: [{ type: i0.Input, args: [{ isSignal: true, alias: "indicator", required: false }] }], togglePlacement: [{ type: i0.Input, args: [{ isSignal: true, alias: "togglePlacement", required: false }] }], headingLevel: [{ type: i0.Input, args: [{ isSignal: true, alias: "headingLevel", required: false }] }], mount: [{ type: i0.Input, args: [{ isSignal: true, alias: "mount", required: false }] }], truncate: [{ type: i0.Input, args: [{ isSignal: true, alias: "truncate", required: false }] }], loop: [{ type: i0.Input, args: [{ isSignal: true, alias: "loop", required: false }] }], valueChangeRequest: [{ type: i0.Output, args: ["valueChangeRequest"] }] } });
|
|
243
243
|
|
|
244
244
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"slotted-angular-accordion.mjs","sources":["../../accordion/src/accordion-defaults.ts","../../accordion/src/accordion.ts","../../accordion/src/slotted-angular-accordion.ts"],"sourcesContent":["import { inject, Injectable, InjectionToken } from '@angular/core';\n\n/** The type step the set and its items sit at. */\nexport type AccordionSize = 'sm' | 'md' | 'lg';\n\n/**\n * How the set is drawn. `plain` paints nothing, `ruled` puts one hairline per\n * seam, `framed` wraps the ruled set in one frame, and `separated` gives every\n * item a card of its own.\n */\nexport type AccordionVariant = 'plain' | 'ruled' | 'framed' | 'separated';\n\n/** The mark each header carries. Handed to every item. */\nexport type AccordionIndicator = 'chevron' | 'plus-minus' | 'none';\n\n/** Which side of the words that mark stands on. Handed to every item. */\nexport type AccordionTogglePlacement = 'end' | 'start';\n\n/**\n * The heading level every item's header answers to. `3` is the default, which\n * is the level the APG's own example uses for a set inside a section.\n */\nexport type AccordionHeadingLevel = 'none' | '1' | '2' | '3' | '4' | '5' | '6';\n\n/** When each panel's content exists. Handed to every item. */\nexport type AccordionMount = 'active' | 'lazy' | 'eager' | 'until-found';\n\n/** Why the set of open panels moved. */\nexport type AccordionSelectionReason = 'pointer' | 'keyboard' | 'select' | 'programmatic';\n\nexport interface AccordionDefaults {\n headingLevel: AccordionHeadingLevel;\n indicator: AccordionIndicator;\n loop: boolean;\n mount: AccordionMount;\n multiple: boolean;\n requireOpen: boolean;\n size: AccordionSize;\n togglePlacement: AccordionTogglePlacement;\n truncate: boolean;\n variant: AccordionVariant;\n}\n\nconst FALLBACK: AccordionDefaults = {\n headingLevel: '3',\n indicator: 'chevron',\n loop: true,\n mount: 'eager',\n multiple: false,\n requireOpen: false,\n size: 'md',\n togglePlacement: 'end',\n truncate: false,\n variant: 'ruled',\n};\n\nexport const ACCORDION_DEFAULTS = new InjectionToken<AccordionDefaults>(\n 'slotted accordion defaults',\n { providedIn: 'root', factory: () => FALLBACK },\n);\n\n/**\n * An application decides once how its accordions look and behave, rather than\n * repeating the same ten inputs on every set in a product. A set that states\n * any of them itself still wins.\n */\nexport function provideAccordionDefaults(defaults: Partial<AccordionDefaults>) {\n return {\n provide: ACCORDION_DEFAULTS,\n useFactory: (): AccordionDefaults => ({ ...FALLBACK, ...defaults }),\n };\n}\n\n/** What an accordion renders as here, before it states anything of its own. */\nexport function injectAccordionDefaults(): AccordionDefaults {\n return inject(ACCORDION_DEFAULTS);\n}\n\n/**\n * Application-scoped rather than module-scoped, for the reason `field` records:\n * a 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 SlAccordionIdFactory {\n private count = 0;\n\n next() {\n this.count += 1;\n return `slotted-collapsible-${this.count}`;\n }\n}\n","import { isHeldOpen, nextOpenValues, sameOpenValues } from '@slotted/core/disclosure';\nimport { createArrowNavigation } from '@slotted/core/focus';\nimport { createControllable } from '@slotted/core/state';\nimport type { ChangeRequest } from '@slotted/core/state';\nimport {\n afterNextRender,\n booleanAttribute,\n ChangeDetectionStrategy,\n Component,\n computed,\n DestroyRef,\n ElementRef,\n inject,\n input,\n model,\n output,\n ViewEncapsulation,\n} from '@angular/core';\n\nimport { ACCORDION_DEFAULTS, injectAccordionDefaults } from './accordion-defaults';\nimport type {\n AccordionHeadingLevel,\n AccordionIndicator,\n AccordionMount,\n AccordionSelectionReason,\n AccordionSize,\n AccordionTogglePlacement,\n AccordionVariant,\n} from './accordion-defaults';\n\nexport type {\n AccordionDefaults,\n AccordionHeadingLevel,\n AccordionIndicator,\n AccordionMount,\n AccordionSelectionReason,\n AccordionSize,\n AccordionTogglePlacement,\n AccordionVariant,\n} from './accordion-defaults';\n\n/**\n * The header of every item this set owns, and of no set nested inside it.\n * `:scope` is what keeps a nested accordion's headers out of the outer one's\n * arrow ring: root, item, header, trigger is exactly four levels.\n */\nexport const ACCORDION_TRIGGER_SELECTOR =\n ':scope > * > [data-part=\"header\"] > [data-part=\"trigger\"]';\n\n/** The variant the set hands its items, per variant the set is drawn in. */\nconst ITEM_VARIANT: Record<AccordionVariant, 'plain' | 'ruled' | 'framed'> = {\n plain: 'plain',\n ruled: 'ruled',\n framed: 'ruled',\n separated: 'framed',\n};\n\n/**\n * A set of disclosures that share a value.\n *\n * **The keyboard is the pattern's, plus four keys that are not.** `Enter`,\n * `Space`, `Tab` and `Shift + Tab` are the platform's, and every header stays\n * in the page tab sequence — `w3c/aria-practices#3434` removed the roving\n * alternative from the pattern, and Base UI deprecated its own `loopFocus` and\n * `orientation` in the same change. `ArrowDown`, `ArrowUp`, `Home` and `End`\n * are shipped on top of that sequence, because Radix and Ark both ship them and\n * readers have learned them; they move focus and write no `tabindex`.\n *\n * **`requireOpen` marks the header it holds.** The pattern asks an accordion\n * that does not permit a panel to be collapsed to write `aria-disabled=\"true\"`\n * on that header, and the APG's own example is the only surveyed source that\n * ships it.\n *\n * **The items are `collapsible`s, and nothing here selects into them.** The set\n * hands each one its appearance as a value, which is the rule `checkbox-group`\n * set for every group family in the library.\n */\n@Component({\n selector: '[slAccordion]',\n standalone: true,\n exportAs: 'slAccordion',\n template: '<ng-content />',\n styleUrl: '../../../styles/src/accordion/accordion.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: {\n 'data-ui': 'accordion',\n 'data-ui-accordion': '',\n 'data-part': 'root',\n 'data-part-root': '',\n '[attr.data-size]': 'resolvedSize()',\n '[attr.data-variant]': 'resolvedVariant()',\n '[attr.data-disabled]': \"disabled() ? '' : null\",\n },\n})\nexport class SlAccordion {\n /** The set of open values. Two-way, so a template may bind it directly. */\n readonly value = model<readonly string[]>([]);\n readonly multiple = input(false, { transform: booleanAttribute });\n /**\n * Whether the set refuses to empty. The one open header then carries\n * `aria-disabled=\"true\"`, which is what the pattern asks of an accordion that\n * does not permit its panel to be collapsed.\n */\n readonly requireOpen = input(false, { transform: booleanAttribute });\n readonly disabled = input(false, { transform: booleanAttribute });\n readonly size = input<AccordionSize | undefined>(undefined);\n readonly variant = input<AccordionVariant | undefined>(undefined);\n readonly indicator = input<AccordionIndicator | undefined>(undefined);\n readonly togglePlacement = input<AccordionTogglePlacement | undefined>(undefined);\n readonly headingLevel = input<AccordionHeadingLevel | undefined>(undefined);\n readonly mount = input<AccordionMount | undefined>(undefined);\n readonly truncate = input<boolean | undefined, boolean | string | undefined>(undefined, {\n transform: (state) => (state === undefined ? undefined : booleanAttribute(state)),\n });\n readonly loop = input<boolean | undefined, boolean | string | undefined>(undefined, {\n transform: (state) => (state === undefined ? undefined : booleanAttribute(state)),\n });\n\n /**\n * One output for one transition, carrying the reason and the event. `value`\n * is the two-way half the ecosystem expects; this is the half a boolean\n * cannot say.\n */\n readonly valueChangeRequest = output<ChangeRequest<readonly string[]>>();\n\n private readonly defaults = injectAccordionDefaults();\n private readonly host: HTMLElement = inject(ElementRef).nativeElement;\n private readonly destroyRef = inject(DestroyRef);\n\n readonly resolvedSize = computed(() => this.size() ?? this.defaults.size);\n readonly resolvedVariant = computed(() => this.variant() ?? this.defaults.variant);\n readonly resolvedIndicator = computed(() => this.indicator() ?? this.defaults.indicator);\n readonly resolvedTogglePlacement = computed(\n () => this.togglePlacement() ?? this.defaults.togglePlacement,\n );\n readonly resolvedHeadingLevel = computed(() => this.headingLevel() ?? this.defaults.headingLevel);\n readonly resolvedMount = computed(() => this.mount() ?? this.defaults.mount);\n readonly resolvedTruncate = computed(() => this.truncate() ?? this.defaults.truncate);\n readonly resolvedLoop = computed(() => this.loop() ?? this.defaults.loop);\n readonly resolvedMultiple = computed(() => this.multiple() ?? this.defaults.multiple);\n readonly resolvedRequireOpen = computed(() => this.requireOpen() ?? this.defaults.requireOpen);\n\n /** The variant this set hands each of its items, which is not always its own. */\n readonly itemVariant = computed(() => ITEM_VARIANT[this.resolvedVariant()]);\n\n constructor() {\n /**\n * The arrows move focus and nothing else. The engine writes no `tabindex`,\n * which is the whole difference between it and the roving stop `tabs` uses.\n */\n afterNextRender(() => {\n const navigation = createArrowNavigation(this.host, {\n itemSelector: ACCORDION_TRIGGER_SELECTOR,\n loop: () => this.resolvedLoop(),\n orientation: () => 'vertical',\n });\n const observer = new MutationObserver(() => navigation.refresh());\n observer.observe(this.host, { childList: true, subtree: true });\n\n this.destroyRef.onDestroy(() => {\n observer.disconnect();\n navigation.destroy();\n });\n });\n }\n\n private options() {\n return { multiple: this.resolvedMultiple(), requireOpen: this.resolvedRequireOpen() };\n }\n\n /** Whether this value is one of the open ones. */\n holds(value: string): boolean {\n return this.value().includes(value);\n }\n\n /** Whether this value is open and the set refuses to let it close. */\n isHeld(value: string): boolean {\n return isHeldOpen(this.value(), value, this.options());\n }\n\n /** Asks the set to open or close one value. */\n toggle(value: string, reason: AccordionSelectionReason, source?: Event) {\n const next = nextOpenValues(this.value(), value, this.options());\n if (next === this.value()) return;\n this.commit(next, reason, source);\n }\n\n /**\n * Opens every item that is not disabled. It is Angular Material's `openAll`,\n * and it is reached through `exportAs` rather than through a handle.\n */\n openAll() {\n const values = this.items()\n .filter((item) => !item.hasAttribute('data-disabled'))\n .map((item) => item.getAttribute('data-value') ?? '');\n this.commit(this.resolvedMultiple() ? values : values.slice(0, 1), 'programmatic');\n }\n\n /** Closes every item, unless `requireOpen` holds the last one. */\n closeAll() {\n const current = this.value();\n if (this.resolvedRequireOpen() && current.length > 0) {\n this.commit(current.slice(0, 1), 'programmatic');\n return;\n }\n this.commit([], 'programmatic');\n }\n\n /**\n * The items, read from the DOM rather than from a registry. It is the one\n * order that is never stale, and it is how `tabs` reads its own collection.\n */\n private items(): HTMLElement[] {\n return [...this.host.querySelectorAll<HTMLElement>(':scope > [data-value]')];\n }\n\n private commit(next: readonly string[], reason: AccordionSelectionReason, source?: Event) {\n let cancelled = false;\n const state = createControllable<readonly string[]>({\n /* A `model` writes the change back itself, so the state is owned here and\n the request is what a consumer inspects and may refuse. */\n initial: this.value(),\n /* Two arrays are never `Object.is`, so a set states its own equality or\n emits a request on every change detection. */\n equals: sameOpenValues,\n onRequest: (request) => {\n this.valueChangeRequest.emit(request);\n cancelled = request.cancelled;\n },\n });\n const moved = state.request(next, reason, source);\n if (cancelled || !moved) return;\n this.value.set(next);\n }\n}\n\nexport { ACCORDION_DEFAULTS, injectAccordionDefaults };\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;AA2CA,MAAM,QAAQ,GAAsB;AAClC,IAAA,YAAY,EAAE,GAAG;AACjB,IAAA,SAAS,EAAE,SAAS;AACpB,IAAA,IAAI,EAAE,IAAI;AACV,IAAA,KAAK,EAAE,OAAO;AACd,IAAA,QAAQ,EAAE,KAAK;AACf,IAAA,WAAW,EAAE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,MAAM;AACnB,wBAAA,gBAAgB,EAAE,EAAE;AACpB,wBAAA,kBAAkB,EAAE,gBAAgB;AACpC,wBAAA,qBAAqB,EAAE,mBAAmB;AAC1C,wBAAA,sBAAsB,EAAE,wBAAwB;AACjD,qBAAA,EAAA,MAAA,EAAA,CAAA,ymCAAA,CAAA,EAAA;;;AC7FH;;AAEG;;"}
|
|
1
|
+
{"version":3,"file":"slotted-angular-accordion.mjs","sources":["../../accordion/src/accordion-defaults.ts","../../accordion/src/accordion.ts","../../accordion/src/slotted-angular-accordion.ts"],"sourcesContent":["import { inject, Injectable, InjectionToken } from '@angular/core';\n\n/** The type step the set and its items sit at. */\nexport type AccordionSize = 'sm' | 'md' | 'lg';\n\n/**\n * How the set is drawn. `plain` paints nothing, `ruled` puts one hairline per\n * seam, `framed` wraps the ruled set in one frame, and `separated` gives every\n * item a card of its own.\n */\nexport type AccordionVariant = 'plain' | 'ruled' | 'framed' | 'separated';\n\n/** The mark each header carries. Handed to every item. */\nexport type AccordionIndicator = 'chevron' | 'plus-minus' | 'none';\n\n/** Which side of the words that mark stands on. Handed to every item. */\nexport type AccordionTogglePlacement = 'end' | 'start';\n\n/**\n * The heading level every item's header answers to. `3` is the default, which\n * is the level the APG's own example uses for a set inside a section.\n */\nexport type AccordionHeadingLevel = 'none' | '1' | '2' | '3' | '4' | '5' | '6';\n\n/** When each panel's content exists. Handed to every item. */\nexport type AccordionMount = 'active' | 'lazy' | 'eager' | 'until-found';\n\n/** Why the set of open panels moved. */\nexport type AccordionSelectionReason = 'pointer' | 'keyboard' | 'select' | 'programmatic';\n\nexport interface AccordionDefaults {\n headingLevel: AccordionHeadingLevel;\n indicator: AccordionIndicator;\n loop: boolean;\n mount: AccordionMount;\n multiple: boolean;\n requireOpen: boolean;\n size: AccordionSize;\n togglePlacement: AccordionTogglePlacement;\n truncate: boolean;\n variant: AccordionVariant;\n}\n\nconst FALLBACK: AccordionDefaults = {\n headingLevel: '3',\n indicator: 'chevron',\n loop: true,\n mount: 'eager',\n multiple: false,\n requireOpen: false,\n size: 'md',\n togglePlacement: 'end',\n truncate: false,\n variant: 'ruled',\n};\n\nexport const ACCORDION_DEFAULTS = new InjectionToken<AccordionDefaults>(\n 'slotted accordion defaults',\n { providedIn: 'root', factory: () => FALLBACK },\n);\n\n/**\n * An application decides once how its accordions look and behave, rather than\n * repeating the same ten inputs on every set in a product. A set that states\n * any of them itself still wins.\n */\nexport function provideAccordionDefaults(defaults: Partial<AccordionDefaults>) {\n return {\n provide: ACCORDION_DEFAULTS,\n useFactory: (): AccordionDefaults => ({ ...FALLBACK, ...defaults }),\n };\n}\n\n/** What an accordion renders as here, before it states anything of its own. */\nexport function injectAccordionDefaults(): AccordionDefaults {\n return inject(ACCORDION_DEFAULTS);\n}\n\n/**\n * Application-scoped rather than module-scoped, for the reason `field` records:\n * a 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 SlAccordionIdFactory {\n private count = 0;\n\n next() {\n this.count += 1;\n return `slotted-collapsible-${this.count}`;\n }\n}\n","import { isHeldOpen, nextOpenValues, sameOpenValues } from '@slotted/core/disclosure';\nimport { createArrowNavigation } from '@slotted/core/focus';\nimport { createControllable } from '@slotted/core/state';\nimport type { ChangeRequest } from '@slotted/core/state';\nimport {\n afterNextRender,\n booleanAttribute,\n ChangeDetectionStrategy,\n Component,\n computed,\n DestroyRef,\n ElementRef,\n inject,\n input,\n model,\n output,\n ViewEncapsulation,\n} from '@angular/core';\n\nimport { ACCORDION_DEFAULTS, injectAccordionDefaults } from './accordion-defaults';\nimport type {\n AccordionHeadingLevel,\n AccordionIndicator,\n AccordionMount,\n AccordionSelectionReason,\n AccordionSize,\n AccordionTogglePlacement,\n AccordionVariant,\n} from './accordion-defaults';\n\nexport type {\n AccordionDefaults,\n AccordionHeadingLevel,\n AccordionIndicator,\n AccordionMount,\n AccordionSelectionReason,\n AccordionSize,\n AccordionTogglePlacement,\n AccordionVariant,\n} from './accordion-defaults';\n\n/**\n * The header of every item this set owns, and of no set nested inside it.\n * `:scope` is what keeps a nested accordion's headers out of the outer one's\n * arrow ring: root, item, header, trigger is exactly four levels.\n */\nexport const ACCORDION_TRIGGER_SELECTOR =\n ':scope > * > [data-part=\"header\"] > [data-part=\"trigger\"]';\n\n/** The variant the set hands its items, per variant the set is drawn in. */\nconst ITEM_VARIANT: Record<AccordionVariant, 'plain' | 'ruled' | 'framed'> = {\n plain: 'plain',\n ruled: 'ruled',\n framed: 'ruled',\n separated: 'framed',\n};\n\n/**\n * A set of disclosures that share a value.\n *\n * **The keyboard is the pattern's, plus four keys that are not.** `Enter`,\n * `Space`, `Tab` and `Shift + Tab` are the platform's, and every header stays\n * in the page tab sequence — `w3c/aria-practices#3434` removed the roving\n * alternative from the pattern, and Base UI deprecated its own `loopFocus` and\n * `orientation` in the same change. `ArrowDown`, `ArrowUp`, `Home` and `End`\n * are shipped on top of that sequence, because Radix and Ark both ship them and\n * readers have learned them; they move focus and write no `tabindex`.\n *\n * **`requireOpen` marks the header it holds.** The pattern asks an accordion\n * that does not permit a panel to be collapsed to write `aria-disabled=\"true\"`\n * on that header, and the APG's own example is the only surveyed source that\n * ships it.\n *\n * **The items are `collapsible`s, and nothing here selects into them.** The set\n * hands each one its appearance as a value, which is the rule `checkbox-group`\n * set for every group family in the library.\n */\n@Component({\n selector: '[slAccordion]',\n standalone: true,\n exportAs: 'slAccordion',\n template: '<ng-content />',\n styleUrl: '../../../styles/src/accordion/accordion.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: {\n 'data-ui': 'accordion',\n 'data-ui-accordion': '',\n 'data-part': 'root',\n 'data-part-root': '',\n '[attr.data-size]': 'resolvedSize()',\n '[attr.data-variant]': 'resolvedVariant()',\n '[attr.data-disabled]': \"disabled() ? '' : null\",\n },\n})\nexport class SlAccordion {\n /** The set of open values. Two-way, so a template may bind it directly. */\n readonly value = model<readonly string[]>([]);\n readonly multiple = input(false, { transform: booleanAttribute });\n /**\n * Whether the set refuses to empty. The one open header then carries\n * `aria-disabled=\"true\"`, which is what the pattern asks of an accordion that\n * does not permit its panel to be collapsed.\n */\n readonly requireOpen = input(false, { transform: booleanAttribute });\n readonly disabled = input(false, { transform: booleanAttribute });\n readonly size = input<AccordionSize | undefined>(undefined);\n readonly variant = input<AccordionVariant | undefined>(undefined);\n readonly indicator = input<AccordionIndicator | undefined>(undefined);\n readonly togglePlacement = input<AccordionTogglePlacement | undefined>(undefined);\n readonly headingLevel = input<AccordionHeadingLevel | undefined>(undefined);\n readonly mount = input<AccordionMount | undefined>(undefined);\n readonly truncate = input<boolean | undefined, boolean | string | undefined>(undefined, {\n transform: (state) => (state === undefined ? undefined : booleanAttribute(state)),\n });\n readonly loop = input<boolean | undefined, boolean | string | undefined>(undefined, {\n transform: (state) => (state === undefined ? undefined : booleanAttribute(state)),\n });\n\n /**\n * One output for one transition, carrying the reason and the event. `value`\n * is the two-way half the ecosystem expects; this is the half a boolean\n * cannot say.\n */\n readonly valueChangeRequest = output<ChangeRequest<readonly string[]>>();\n\n private readonly defaults = injectAccordionDefaults();\n private readonly host: HTMLElement = inject(ElementRef).nativeElement;\n private readonly destroyRef = inject(DestroyRef);\n\n readonly resolvedSize = computed(() => this.size() ?? this.defaults.size);\n readonly resolvedVariant = computed(() => this.variant() ?? this.defaults.variant);\n readonly resolvedIndicator = computed(() => this.indicator() ?? this.defaults.indicator);\n readonly resolvedTogglePlacement = computed(\n () => this.togglePlacement() ?? this.defaults.togglePlacement,\n );\n readonly resolvedHeadingLevel = computed(() => this.headingLevel() ?? this.defaults.headingLevel);\n readonly resolvedMount = computed(() => this.mount() ?? this.defaults.mount);\n readonly resolvedTruncate = computed(() => this.truncate() ?? this.defaults.truncate);\n readonly resolvedLoop = computed(() => this.loop() ?? this.defaults.loop);\n readonly resolvedMultiple = computed(() => this.multiple() ?? this.defaults.multiple);\n readonly resolvedRequireOpen = computed(() => this.requireOpen() ?? this.defaults.requireOpen);\n\n /** The variant this set hands each of its items, which is not always its own. */\n readonly itemVariant = computed(() => ITEM_VARIANT[this.resolvedVariant()]);\n\n constructor() {\n /**\n * The arrows move focus and nothing else. The engine writes no `tabindex`,\n * which is the whole difference between it and the roving stop `tabs` uses.\n */\n afterNextRender(() => {\n const navigation = createArrowNavigation(this.host, {\n itemSelector: ACCORDION_TRIGGER_SELECTOR,\n loop: () => this.resolvedLoop(),\n orientation: () => 'vertical',\n });\n const observer = new MutationObserver(() => navigation.refresh());\n observer.observe(this.host, { childList: true, subtree: true });\n\n this.destroyRef.onDestroy(() => {\n observer.disconnect();\n navigation.destroy();\n });\n });\n }\n\n private options() {\n return { multiple: this.resolvedMultiple(), requireOpen: this.resolvedRequireOpen() };\n }\n\n /** Whether this value is one of the open ones. */\n holds(value: string): boolean {\n return this.value().includes(value);\n }\n\n /** Whether this value is open and the set refuses to let it close. */\n isHeld(value: string): boolean {\n return isHeldOpen(this.value(), value, this.options());\n }\n\n /** Asks the set to open or close one value. */\n toggle(value: string, reason: AccordionSelectionReason, source?: Event) {\n const next = nextOpenValues(this.value(), value, this.options());\n if (next === this.value()) return;\n this.commit(next, reason, source);\n }\n\n /**\n * Opens every item that is not disabled. It is Angular Material's `openAll`,\n * and it is reached through `exportAs` rather than through a handle.\n */\n openAll() {\n const values = this.items()\n .filter((item) => !item.hasAttribute('data-disabled'))\n .map((item) => item.getAttribute('data-value') ?? '');\n this.commit(this.resolvedMultiple() ? values : values.slice(0, 1), 'programmatic');\n }\n\n /** Closes every item, unless `requireOpen` holds the last one. */\n closeAll() {\n const current = this.value();\n if (this.resolvedRequireOpen() && current.length > 0) {\n this.commit(current.slice(0, 1), 'programmatic');\n return;\n }\n this.commit([], 'programmatic');\n }\n\n /**\n * The items, read from the DOM rather than from a registry. It is the one\n * order that is never stale, and it is how `tabs` reads its own collection.\n */\n private items(): HTMLElement[] {\n return [...this.host.querySelectorAll<HTMLElement>(':scope > [data-value]')];\n }\n\n private commit(next: readonly string[], reason: AccordionSelectionReason, source?: Event) {\n let cancelled = false;\n const state = createControllable<readonly string[]>({\n /* A `model` writes the change back itself, so the state is owned here and\n the request is what a consumer inspects and may refuse. */\n initial: this.value(),\n /* Two arrays are never `Object.is`, so a set states its own equality or\n emits a request on every change detection. */\n equals: sameOpenValues,\n onRequest: (request) => {\n this.valueChangeRequest.emit(request);\n cancelled = request.cancelled;\n },\n });\n const moved = state.request(next, reason, source);\n if (cancelled || !moved) return;\n this.value.set(next);\n }\n}\n\nexport { ACCORDION_DEFAULTS, injectAccordionDefaults };\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;AA2CA,MAAM,QAAQ,GAAsB;AAClC,IAAA,YAAY,EAAE,GAAG;AACjB,IAAA,SAAS,EAAE,SAAS;AACpB,IAAA,IAAI,EAAE,IAAI;AACV,IAAA,KAAK,EAAE,OAAO;AACd,IAAA,QAAQ,EAAE,KAAK;AACf,IAAA,WAAW,EAAE,KAAK;AAClB,IAAA,IAAI,EAAE,IAAI;AACV,IAAA,eAAe,EAAE,KAAK;AACtB,IAAA,QAAQ,EAAE,KAAK;AACf,IAAA,OAAO,EAAE,OAAO;CACjB;MAEY,kBAAkB,GAAG,IAAI,cAAc,CAClD,4BAA4B,EAC5B,EAAE,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,QAAQ,EAAE;AAGjD;;;;AAIG;AACG,SAAU,wBAAwB,CAAC,QAAoC,EAAA;IAC3E,OAAO;AACL,QAAA,OAAO,EAAE,kBAAkB;AAC3B,QAAA,UAAU,EAAE,OAA0B,EAAE,GAAG,QAAQ,EAAE,GAAG,QAAQ,EAAE,CAAC;KACpE;AACH;AAEA;SACgB,uBAAuB,GAAA;AACrC,IAAA,OAAO,MAAM,CAAC,kBAAkB,CAAC;AACnC;AAEA;;;;;AAKG;MAEU,oBAAoB,CAAA;IACvB,KAAK,GAAG,CAAC;IAEjB,IAAI,GAAA;AACF,QAAA,I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A,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,WAAW,68DAdZ,gBAAgB,EAAA,QAAA,EAAA,IAAA,EAAA,MAAA,EAAA,CAAA,k4CAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,aAAA,EAAA,EAAA,CAAA,iBAAA,CAAA,IAAA,EAAA,CAAA;;2FAcf,WAAW,EAAA,UAAA,EAAA,CAAA;kBAlBvB,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,eAAe,EAAA,UAAA,EACb,IAAI,EAAA,QAAA,EACN,aAAa,YACb,gBAAgB,EAAA,eAAA,EAET,uBAAuB,CAAC,MAAM,EAAA,aAAA,EAChC,iBAAiB,CAAC,IAAI,EAAA,IAAA,EAC/B;AACJ,wBAAA,SAAS,EAAE,WAAW;AACtB,wBAAA,mBAAmB,EAAE,EAAE;AACvB,wBAAA,WAAW,EAAE,MAAM;AACnB,wBAAA,gBAAgB,EAAE,EAAE;AACpB,wBAAA,kBAAkB,EAAE,gBAAgB;AACpC,wBAAA,qBAAqB,EAAE,mBAAmB;AAC1C,wBAAA,sBAAsB,EAAE,wBAAwB;AACjD,qBAAA,EAAA,MAAA,EAAA,CAAA,k4CAAA,CAAA,EAAA;;;AC7FH;;AAEG;;"}
|
|
@@ -289,7 +289,7 @@ class SlAvatar {
|
|
|
289
289
|
}
|
|
290
290
|
}
|
|
291
291
|
<ng-content select="[slAvatarFallback]"></ng-content
|
|
292
|
-
></span>`, isInline: true, styles: ["@layer slotted.components{[data-ui-avatar][data-part-root]{--_solid: var(--slotted-tone-secondary-solid-hover);--_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);--_size: var(--slotted-avatar-size, var(--slotted-avatar-size-md, 36px));--_initials-size: var(--slotted-avatar-initials-size, calc(var(--_size) * .4));--_glyph-size: var(--slotted-avatar-glyph-size, calc(var(--_size) * .68));--_radius: var(--slotted-radius-full, 9999px);--_edge-width: var(--slotted-avatar-border-width, var(--slotted-border-width-thin, 1px));--_edge: var(--_border);--_solid-edge: var(--_border);--_ring-width: var(--slotted-avatar-ring-width, 0);--_ring-color: var(--slotted-avatar-ring-color, var(--slotted-surface, Canvas));--_elevation: var(--slotted-avatar-elevation, 0 0 transparent);align-items:center;appearance:none;block-size:var(--_size);border-color:var(--_edge);border-radius:var(--_radius);border-style:solid;border-width:var(--_edge-width);box-shadow:0 0 0 var(--_ring-width) var(--_ring-color),var(--_elevation);box-sizing:border-box;display:inline-flex;flex:none;font-family:var(--slotted-avatar-font-family, var(--slotted-control-font-family, sans-serif));font-size:var(--_initials-size);font-weight:var(--slotted-avatar-font-weight, var(--slotted-font-weight-medium, 500));inline-size:var(--_size);justify-content:center;line-height:1;padding:0;isolation:isolate;position:relative;text-decoration:none;transition:border-color var(--slotted-duration-short) var(--slotted-easing-standard),background-color var(--slotted-duration-short) var(--slotted-easing-standard),box-shadow var(--slotted-duration-short) var(--slotted-easing-standard),transform var(--slotted-duration-short) var(--slotted-easing-standard);-webkit-user-select:none;user-select:none;vertical-align:middle}[data-ui-avatar][data-part-root][data-tone=accent]{--_solid: var(--slotted-tone-accent-solid);--_solid-edge: 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-avatar][data-part-root][data-tone=success]{--_solid: var(--slotted-tone-success-solid);--_solid-edge: 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-avatar][data-part-root][data-tone=info]{--_solid: var(--slotted-tone-info-solid);--_solid-edge: 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-avatar][data-part-root][data-tone=warning]{--_solid: var(--slotted-tone-warning-solid);--_solid-edge: 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-avatar][data-part-root][data-tone=danger]{--_solid: var(--slotted-tone-danger-solid);--_solid-edge: 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-avatar][data-part-root][data-variant=soft]{--_ground: var(--_surface, ButtonFace);background-color:var(--_ground);color:var(--_text, ButtonText)}[data-ui-avatar][data-part-root][data-variant=solid]{--_edge: var(--_solid-edge);--_ground: var(--_solid, ButtonFace);background-color:var(--_ground);color:var(--_on-solid, ButtonText)}[data-ui-avatar][data-part-root][data-shape=square]{--_radius: var(--slotted-avatar-radius, round(nearest, calc(var(--_size) / 6), 1px))}[data-ui-avatar][data-part-root][data-size=xs]{--slotted-avatar-size: var(--slotted-avatar-size-xs, 24px)}[data-ui-avatar][data-part-root][data-size=sm]{--slotted-avatar-size: var(--slotted-avatar-size-sm, 28px)}[data-ui-avatar][data-part-root][data-size=md]{--slotted-avatar-size: var(--slotted-avatar-size-md, 36px)}[data-ui-avatar][data-part-root][data-size=lg]{--slotted-avatar-size: var(--slotted-avatar-size-lg, 48px)}[data-ui-avatar][data-part-root][data-size=xl]{--slotted-avatar-size: var(--slotted-avatar-size-xl, 64px)}[data-ui-avatar] [data-part-image]{block-size:100%;border-radius:inherit;inline-size:100%;inset:0;object-fit:cover;opacity:0;position:absolute;transition:opacity var(--slotted-duration-short) var(--slotted-easing-exit)}[data-ui-avatar][data-status=loaded] [data-part-image]{opacity:1;transition-timing-function:var(--slotted-easing-enter)}[data-ui-avatar] [data-part-fallback]{--slotted-icon-size: var(--_glyph-size);align-items:center;block-size:100%;border-radius:inherit;display:flex;inline-size:100%;justify-content:center;overflow:hidden;transition:opacity var(--slotted-duration-short) var(--slotted-easing-enter)}[data-ui-avatar][data-status=loaded] [data-part-fallback]{opacity:0;transition-timing-function:var(--slotted-easing-exit)}@supports (text-box: trim-both cap alphabetic){[data-ui-avatar] [data-part-fallback]:not(:has(>*)){align-content:center;display:block;text-align:center;text-box:trim-both cap alphabetic}}[data-ui-avatar][data-part-root][data-status=loaded]{--_ground: transparent;--_edge: var(--slotted-border-subtle, ButtonBorder)}[data-ui-avatar][data-part-root][data-surface=none]{--_ground: transparent}[data-ui-avatar][data-part-root][data-surface=plate]{--_edge: var(--slotted-border-subtle, ButtonBorder);--_ground: var(--slotted-avatar-plate-surface, #ffffff);color:var(--slotted-avatar-plate-color, #1f2937)}[data-ui-avatar][data-part-root][data-disabled]{--_solid: var(--slotted-disabled-background, Canvas);--_on-solid: var(--slotted-disabled-foreground, GrayText);--_surface: var(--slotted-disabled-background, Canvas);--_text: var(--slotted-disabled-foreground, GrayText);--_edge: var(--slotted-disabled-border, GrayText)}[data-ui-avatar][data-part-root][data-disabled] [data-part-image]{filter:var(--slotted-avatar-disabled-image-filter, grayscale(1) opacity(.5))}[data-ui-avatar][data-part-root]:any-link,button[data-ui-avatar][data-part-root],[data-ui-avatar][data-part-root][tabindex]{cursor:pointer;overflow:clip;overflow-clip-margin:var(--slotted-target-min, 24px)}[data-ui-avatar][data-part-root]:any-link:not([data-disabled]):hover,button[data-ui-avatar][data-part-root]:not([data-disabled]):hover,[data-ui-avatar][data-part-root][tabindex]:not([data-disabled]):hover{background-color:color-mix(in oklab,var(--_ground),currentColor var(--slotted-avatar-state-layer-hover, 8%))}[data-ui-avatar][data-part-root]:any-link:not([data-disabled]):active,button[data-ui-avatar][data-part-root]:not([data-disabled]):active,[data-ui-avatar][data-part-root][tabindex]:not([data-disabled]):active{background-color:color-mix(in oklab,var(--_ground),currentColor var(--slotted-avatar-state-layer-active, 14%))}[data-ui-avatar][data-status=loaded]:any-link:not([data-disabled]):hover,button[data-ui-avatar][data-status=loaded]:not([data-disabled]):hover,[data-ui-avatar][data-status=loaded][tabindex]:not([data-disabled]):hover{--_edge: var(--slotted-border-strong, CanvasText);--slotted-avatar-ring-width: var(--slotted-border-width-thin, 1px);--slotted-avatar-ring-color: var(--slotted-border-strong, CanvasText)}[data-ui-avatar][data-status=loaded]:any-link:not([data-disabled]):active,button[data-ui-avatar][data-status=loaded]:not([data-disabled]):active,[data-ui-avatar][data-status=loaded][tabindex]:not([data-disabled]):active{--slotted-avatar-ring-width: var(--slotted-border-width-thick, 2px)}[data-ui-avatar][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)}[data-ui-avatar][data-part-root]:any-link:after,button[data-ui-avatar][data-part-root]:after,[data-ui-avatar][data-part-root][tabindex]:after{content:\"\";inset:min(0px,calc((100% - var(--slotted-target-min, 24px)) / 2));position:absolute}@media(forced-colors:active){[data-ui-avatar][data-part-root]{--_edge: currentColor}}}\n"], dependencies: [{ kind: "directive", type: SlAvatarImage, selector: "img[slAvatarImage]", exportAs: ["slAvatarImage"] }, { 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 });
|
|
292
|
+
></span>`, isInline: true, styles: ["@layer slotted.components{[data-ui-avatar][data-part-root]{--_solid: var(--slotted-tone-secondary-solid-hover);--_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);--_size: var(--slotted-avatar-size, var(--slotted-avatar-size-md, 36px));--_initials-size: var(--slotted-avatar-initials-size, calc(var(--_size) * .4));--_glyph-size: var(--slotted-avatar-glyph-size, calc(var(--_size) * .68));--_radius: var(--slotted-radius-full, 9999px);--_edge-width: var(--slotted-avatar-border-width, var(--slotted-border-width-thin, 1px));--_edge: var(--_border);--_solid-edge: var(--_border);--_ring-width: var(--slotted-avatar-ring-width, 0);--_ring-color: var(--slotted-avatar-ring-color, var(--slotted-surface, Canvas));--_elevation: var(--slotted-avatar-elevation, 0 0 transparent);align-items:center;appearance:none;block-size:var(--_size);border-color:var(--_edge);border-radius:var(--_radius);border-style:solid;border-width:var(--_edge-width);box-shadow:0 0 0 var(--_ring-width) var(--_ring-color),var(--_elevation);box-sizing:border-box;display:inline-flex;flex:none;font-family:var(--slotted-avatar-font-family, var(--slotted-control-font-family, sans-serif));font-size:var(--_initials-size);font-weight:var(--slotted-avatar-font-weight, var(--slotted-font-weight-medium, 500));inline-size:var(--_size);justify-content:center;line-height:1;padding:0;isolation:isolate;position:relative;text-decoration:none;transition:border-color var(--slotted-duration-short) var(--slotted-easing-standard),background-color var(--slotted-duration-short) var(--slotted-easing-standard),box-shadow var(--slotted-duration-short) var(--slotted-easing-standard),transform var(--slotted-duration-short) var(--slotted-easing-standard);-webkit-user-select:none;user-select:none;vertical-align:middle}[data-ui-avatar][data-part-root][data-tone=accent]{--_solid: var(--slotted-tone-accent-solid);--_solid-edge: 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-avatar][data-part-root][data-tone=success]{--_solid: var(--slotted-tone-success-solid);--_solid-edge: 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-avatar][data-part-root][data-tone=info]{--_solid: var(--slotted-tone-info-solid);--_solid-edge: 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-avatar][data-part-root][data-tone=warning]{--_solid: var(--slotted-tone-warning-solid);--_solid-edge: 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-avatar][data-part-root][data-tone=danger]{--_solid: var(--slotted-tone-danger-solid);--_solid-edge: 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-avatar][data-part-root][data-variant=soft]{--_ground: var(--_surface, ButtonFace);background-color:var(--_ground);color:var(--_text, ButtonText)}[data-ui-avatar][data-part-root][data-variant=solid]{--_edge: var(--_solid-edge);--_ground: var(--_solid, ButtonFace);background-color:var(--_ground);color:var(--_on-solid, ButtonText)}[data-ui-avatar][data-part-root][data-shape=square]{--_radius: var(--slotted-avatar-radius, round(nearest, calc(var(--_size) / 6), 1px))}[data-ui-avatar][data-part-root][data-size=xs]{--slotted-avatar-size: var(--slotted-avatar-size-xs, 24px)}[data-ui-avatar][data-part-root][data-size=sm]{--slotted-avatar-size: var(--slotted-avatar-size-sm, 28px)}[data-ui-avatar][data-part-root][data-size=md]{--slotted-avatar-size: var(--slotted-avatar-size-md, 36px)}[data-ui-avatar][data-part-root][data-size=lg]{--slotted-avatar-size: var(--slotted-avatar-size-lg, 48px)}[data-ui-avatar][data-part-root][data-size=xl]{--slotted-avatar-size: var(--slotted-avatar-size-xl, 64px)}[data-ui-avatar] [data-part-image]{block-size:100%;border-radius:inherit;inline-size:100%;inset:0;object-fit:cover;opacity:0;position:absolute;transition:opacity var(--slotted-duration-short) var(--slotted-easing-exit)}[data-ui-avatar][data-status=loaded] [data-part-image]{opacity:1;transition-timing-function:var(--slotted-easing-enter)}[data-ui-avatar] [data-part-fallback]{--slotted-icon-size: var(--_glyph-size);align-items:center;block-size:100%;border-radius:inherit;display:flex;inline-size:100%;justify-content:center;overflow:hidden;transition:opacity var(--slotted-duration-short) var(--slotted-easing-enter)}[data-ui-avatar][data-status=loaded] [data-part-fallback]{opacity:0;transition-timing-function:var(--slotted-easing-exit)}@supports (text-box: trim-both cap alphabetic){[data-ui-avatar] [data-part-fallback]:not(:has(>*)){align-content:center;display:block;text-align:center;text-box:trim-both var(--slotted-text-box-edge, cap alphabetic)}}[data-ui-avatar][data-part-root][data-status=loaded]{--_ground: transparent;--_edge: var(--slotted-border-subtle, ButtonBorder)}[data-ui-avatar][data-part-root][data-surface=none]{--_ground: transparent}[data-ui-avatar][data-part-root][data-surface=plate]{--_edge: var(--slotted-border-subtle, ButtonBorder);--_ground: var(--slotted-avatar-plate-surface, #ffffff);color:var(--slotted-avatar-plate-color, #1f2937)}[data-ui-avatar][data-part-root][data-disabled]{--_solid: var(--slotted-disabled-background, Canvas);--_on-solid: var(--slotted-disabled-foreground, GrayText);--_surface: var(--slotted-disabled-background, Canvas);--_text: var(--slotted-disabled-foreground, GrayText);--_edge: var(--slotted-disabled-border, GrayText)}[data-ui-avatar][data-part-root][data-disabled] [data-part-image]{filter:var(--slotted-avatar-disabled-image-filter, grayscale(1) opacity(.5))}[data-ui-avatar][data-part-root]:any-link,button[data-ui-avatar][data-part-root],[data-ui-avatar][data-part-root][tabindex]{cursor:pointer;overflow:clip;overflow-clip-margin:var(--slotted-target-min, 24px)}[data-ui-avatar][data-part-root]:any-link:not([data-disabled]):hover,button[data-ui-avatar][data-part-root]:not([data-disabled]):hover,[data-ui-avatar][data-part-root][tabindex]:not([data-disabled]):hover{background-color:color-mix(in oklab,var(--_ground),currentColor var(--slotted-avatar-state-layer-hover, 8%))}[data-ui-avatar][data-part-root]:any-link:not([data-disabled]):active,button[data-ui-avatar][data-part-root]:not([data-disabled]):active,[data-ui-avatar][data-part-root][tabindex]:not([data-disabled]):active{background-color:color-mix(in oklab,var(--_ground),currentColor var(--slotted-avatar-state-layer-active, 14%))}[data-ui-avatar][data-status=loaded]:any-link:not([data-disabled]):hover,button[data-ui-avatar][data-status=loaded]:not([data-disabled]):hover,[data-ui-avatar][data-status=loaded][tabindex]:not([data-disabled]):hover{--_edge: var(--slotted-border-strong, CanvasText);--slotted-avatar-ring-width: var(--slotted-border-width-thin, 1px);--slotted-avatar-ring-color: var(--slotted-border-strong, CanvasText)}[data-ui-avatar][data-status=loaded]:any-link:not([data-disabled]):active,button[data-ui-avatar][data-status=loaded]:not([data-disabled]):active,[data-ui-avatar][data-status=loaded][tabindex]:not([data-disabled]):active{--slotted-avatar-ring-width: var(--slotted-border-width-thick, 2px)}[data-ui-avatar][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)}[data-ui-avatar][data-part-root]:any-link:after,button[data-ui-avatar][data-part-root]:after,[data-ui-avatar][data-part-root][tabindex]:after{content:\"\";inset:min(0px,calc((100% - var(--slotted-target-min, 24px)) / 2));position:absolute}@media(forced-colors:active){[data-ui-avatar][data-part-root]{--_edge: currentColor}}}\n"], dependencies: [{ kind: "directive", type: SlAvatarImage, selector: "img[slAvatarImage]", exportAs: ["slAvatarImage"] }, { 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 });
|
|
293
293
|
}
|
|
294
294
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlAvatar, decorators: [{
|
|
295
295
|
type: Component,
|
|
@@ -326,7 +326,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImpor
|
|
|
326
326
|
'[attr.role]': 'role()',
|
|
327
327
|
'[attr.aria-label]': 'ariaLabel()',
|
|
328
328
|
'[attr.aria-hidden]': 'ariaHidden()',
|
|
329
|
-
}, styles: ["@layer slotted.components{[data-ui-avatar][data-part-root]{--_solid: var(--slotted-tone-secondary-solid-hover);--_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);--_size: var(--slotted-avatar-size, var(--slotted-avatar-size-md, 36px));--_initials-size: var(--slotted-avatar-initials-size, calc(var(--_size) * .4));--_glyph-size: var(--slotted-avatar-glyph-size, calc(var(--_size) * .68));--_radius: var(--slotted-radius-full, 9999px);--_edge-width: var(--slotted-avatar-border-width, var(--slotted-border-width-thin, 1px));--_edge: var(--_border);--_solid-edge: var(--_border);--_ring-width: var(--slotted-avatar-ring-width, 0);--_ring-color: var(--slotted-avatar-ring-color, var(--slotted-surface, Canvas));--_elevation: var(--slotted-avatar-elevation, 0 0 transparent);align-items:center;appearance:none;block-size:var(--_size);border-color:var(--_edge);border-radius:var(--_radius);border-style:solid;border-width:var(--_edge-width);box-shadow:0 0 0 var(--_ring-width) var(--_ring-color),var(--_elevation);box-sizing:border-box;display:inline-flex;flex:none;font-family:var(--slotted-avatar-font-family, var(--slotted-control-font-family, sans-serif));font-size:var(--_initials-size);font-weight:var(--slotted-avatar-font-weight, var(--slotted-font-weight-medium, 500));inline-size:var(--_size);justify-content:center;line-height:1;padding:0;isolation:isolate;position:relative;text-decoration:none;transition:border-color var(--slotted-duration-short) var(--slotted-easing-standard),background-color var(--slotted-duration-short) var(--slotted-easing-standard),box-shadow var(--slotted-duration-short) var(--slotted-easing-standard),transform var(--slotted-duration-short) var(--slotted-easing-standard);-webkit-user-select:none;user-select:none;vertical-align:middle}[data-ui-avatar][data-part-root][data-tone=accent]{--_solid: var(--slotted-tone-accent-solid);--_solid-edge: 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-avatar][data-part-root][data-tone=success]{--_solid: var(--slotted-tone-success-solid);--_solid-edge: 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-avatar][data-part-root][data-tone=info]{--_solid: var(--slotted-tone-info-solid);--_solid-edge: 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-avatar][data-part-root][data-tone=warning]{--_solid: var(--slotted-tone-warning-solid);--_solid-edge: 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-avatar][data-part-root][data-tone=danger]{--_solid: var(--slotted-tone-danger-solid);--_solid-edge: 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-avatar][data-part-root][data-variant=soft]{--_ground: var(--_surface, ButtonFace);background-color:var(--_ground);color:var(--_text, ButtonText)}[data-ui-avatar][data-part-root][data-variant=solid]{--_edge: var(--_solid-edge);--_ground: var(--_solid, ButtonFace);background-color:var(--_ground);color:var(--_on-solid, ButtonText)}[data-ui-avatar][data-part-root][data-shape=square]{--_radius: var(--slotted-avatar-radius, round(nearest, calc(var(--_size) / 6), 1px))}[data-ui-avatar][data-part-root][data-size=xs]{--slotted-avatar-size: var(--slotted-avatar-size-xs, 24px)}[data-ui-avatar][data-part-root][data-size=sm]{--slotted-avatar-size: var(--slotted-avatar-size-sm, 28px)}[data-ui-avatar][data-part-root][data-size=md]{--slotted-avatar-size: var(--slotted-avatar-size-md, 36px)}[data-ui-avatar][data-part-root][data-size=lg]{--slotted-avatar-size: var(--slotted-avatar-size-lg, 48px)}[data-ui-avatar][data-part-root][data-size=xl]{--slotted-avatar-size: var(--slotted-avatar-size-xl, 64px)}[data-ui-avatar] [data-part-image]{block-size:100%;border-radius:inherit;inline-size:100%;inset:0;object-fit:cover;opacity:0;position:absolute;transition:opacity var(--slotted-duration-short) var(--slotted-easing-exit)}[data-ui-avatar][data-status=loaded] [data-part-image]{opacity:1;transition-timing-function:var(--slotted-easing-enter)}[data-ui-avatar] [data-part-fallback]{--slotted-icon-size: var(--_glyph-size);align-items:center;block-size:100%;border-radius:inherit;display:flex;inline-size:100%;justify-content:center;overflow:hidden;transition:opacity var(--slotted-duration-short) var(--slotted-easing-enter)}[data-ui-avatar][data-status=loaded] [data-part-fallback]{opacity:0;transition-timing-function:var(--slotted-easing-exit)}@supports (text-box: trim-both cap alphabetic){[data-ui-avatar] [data-part-fallback]:not(:has(>*)){align-content:center;display:block;text-align:center;text-box:trim-both cap alphabetic}}[data-ui-avatar][data-part-root][data-status=loaded]{--_ground: transparent;--_edge: var(--slotted-border-subtle, ButtonBorder)}[data-ui-avatar][data-part-root][data-surface=none]{--_ground: transparent}[data-ui-avatar][data-part-root][data-surface=plate]{--_edge: var(--slotted-border-subtle, ButtonBorder);--_ground: var(--slotted-avatar-plate-surface, #ffffff);color:var(--slotted-avatar-plate-color, #1f2937)}[data-ui-avatar][data-part-root][data-disabled]{--_solid: var(--slotted-disabled-background, Canvas);--_on-solid: var(--slotted-disabled-foreground, GrayText);--_surface: var(--slotted-disabled-background, Canvas);--_text: var(--slotted-disabled-foreground, GrayText);--_edge: var(--slotted-disabled-border, GrayText)}[data-ui-avatar][data-part-root][data-disabled] [data-part-image]{filter:var(--slotted-avatar-disabled-image-filter, grayscale(1) opacity(.5))}[data-ui-avatar][data-part-root]:any-link,button[data-ui-avatar][data-part-root],[data-ui-avatar][data-part-root][tabindex]{cursor:pointer;overflow:clip;overflow-clip-margin:var(--slotted-target-min, 24px)}[data-ui-avatar][data-part-root]:any-link:not([data-disabled]):hover,button[data-ui-avatar][data-part-root]:not([data-disabled]):hover,[data-ui-avatar][data-part-root][tabindex]:not([data-disabled]):hover{background-color:color-mix(in oklab,var(--_ground),currentColor var(--slotted-avatar-state-layer-hover, 8%))}[data-ui-avatar][data-part-root]:any-link:not([data-disabled]):active,button[data-ui-avatar][data-part-root]:not([data-disabled]):active,[data-ui-avatar][data-part-root][tabindex]:not([data-disabled]):active{background-color:color-mix(in oklab,var(--_ground),currentColor var(--slotted-avatar-state-layer-active, 14%))}[data-ui-avatar][data-status=loaded]:any-link:not([data-disabled]):hover,button[data-ui-avatar][data-status=loaded]:not([data-disabled]):hover,[data-ui-avatar][data-status=loaded][tabindex]:not([data-disabled]):hover{--_edge: var(--slotted-border-strong, CanvasText);--slotted-avatar-ring-width: var(--slotted-border-width-thin, 1px);--slotted-avatar-ring-color: var(--slotted-border-strong, CanvasText)}[data-ui-avatar][data-status=loaded]:any-link:not([data-disabled]):active,button[data-ui-avatar][data-status=loaded]:not([data-disabled]):active,[data-ui-avatar][data-status=loaded][tabindex]:not([data-disabled]):active{--slotted-avatar-ring-width: var(--slotted-border-width-thick, 2px)}[data-ui-avatar][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)}[data-ui-avatar][data-part-root]:any-link:after,button[data-ui-avatar][data-part-root]:after,[data-ui-avatar][data-part-root][tabindex]:after{content:\"\";inset:min(0px,calc((100% - var(--slotted-target-min, 24px)) / 2));position:absolute}@media(forced-colors:active){[data-ui-avatar][data-part-root]{--_edge: currentColor}}}\n"] }]
|
|
329
|
+
}, styles: ["@layer slotted.components{[data-ui-avatar][data-part-root]{--_solid: var(--slotted-tone-secondary-solid-hover);--_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);--_size: var(--slotted-avatar-size, var(--slotted-avatar-size-md, 36px));--_initials-size: var(--slotted-avatar-initials-size, calc(var(--_size) * .4));--_glyph-size: var(--slotted-avatar-glyph-size, calc(var(--_size) * .68));--_radius: var(--slotted-radius-full, 9999px);--_edge-width: var(--slotted-avatar-border-width, var(--slotted-border-width-thin, 1px));--_edge: var(--_border);--_solid-edge: var(--_border);--_ring-width: var(--slotted-avatar-ring-width, 0);--_ring-color: var(--slotted-avatar-ring-color, var(--slotted-surface, Canvas));--_elevation: var(--slotted-avatar-elevation, 0 0 transparent);align-items:center;appearance:none;block-size:var(--_size);border-color:var(--_edge);border-radius:var(--_radius);border-style:solid;border-width:var(--_edge-width);box-shadow:0 0 0 var(--_ring-width) var(--_ring-color),var(--_elevation);box-sizing:border-box;display:inline-flex;flex:none;font-family:var(--slotted-avatar-font-family, var(--slotted-control-font-family, sans-serif));font-size:var(--_initials-size);font-weight:var(--slotted-avatar-font-weight, var(--slotted-font-weight-medium, 500));inline-size:var(--_size);justify-content:center;line-height:1;padding:0;isolation:isolate;position:relative;text-decoration:none;transition:border-color var(--slotted-duration-short) var(--slotted-easing-standard),background-color var(--slotted-duration-short) var(--slotted-easing-standard),box-shadow var(--slotted-duration-short) var(--slotted-easing-standard),transform var(--slotted-duration-short) var(--slotted-easing-standard);-webkit-user-select:none;user-select:none;vertical-align:middle}[data-ui-avatar][data-part-root][data-tone=accent]{--_solid: var(--slotted-tone-accent-solid);--_solid-edge: 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-avatar][data-part-root][data-tone=success]{--_solid: var(--slotted-tone-success-solid);--_solid-edge: 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-avatar][data-part-root][data-tone=info]{--_solid: var(--slotted-tone-info-solid);--_solid-edge: 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-avatar][data-part-root][data-tone=warning]{--_solid: var(--slotted-tone-warning-solid);--_solid-edge: 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-avatar][data-part-root][data-tone=danger]{--_solid: var(--slotted-tone-danger-solid);--_solid-edge: 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-avatar][data-part-root][data-variant=soft]{--_ground: var(--_surface, ButtonFace);background-color:var(--_ground);color:var(--_text, ButtonText)}[data-ui-avatar][data-part-root][data-variant=solid]{--_edge: var(--_solid-edge);--_ground: var(--_solid, ButtonFace);background-color:var(--_ground);color:var(--_on-solid, ButtonText)}[data-ui-avatar][data-part-root][data-shape=square]{--_radius: var(--slotted-avatar-radius, round(nearest, calc(var(--_size) / 6), 1px))}[data-ui-avatar][data-part-root][data-size=xs]{--slotted-avatar-size: var(--slotted-avatar-size-xs, 24px)}[data-ui-avatar][data-part-root][data-size=sm]{--slotted-avatar-size: var(--slotted-avatar-size-sm, 28px)}[data-ui-avatar][data-part-root][data-size=md]{--slotted-avatar-size: var(--slotted-avatar-size-md, 36px)}[data-ui-avatar][data-part-root][data-size=lg]{--slotted-avatar-size: var(--slotted-avatar-size-lg, 48px)}[data-ui-avatar][data-part-root][data-size=xl]{--slotted-avatar-size: var(--slotted-avatar-size-xl, 64px)}[data-ui-avatar] [data-part-image]{block-size:100%;border-radius:inherit;inline-size:100%;inset:0;object-fit:cover;opacity:0;position:absolute;transition:opacity var(--slotted-duration-short) var(--slotted-easing-exit)}[data-ui-avatar][data-status=loaded] [data-part-image]{opacity:1;transition-timing-function:var(--slotted-easing-enter)}[data-ui-avatar] [data-part-fallback]{--slotted-icon-size: var(--_glyph-size);align-items:center;block-size:100%;border-radius:inherit;display:flex;inline-size:100%;justify-content:center;overflow:hidden;transition:opacity var(--slotted-duration-short) var(--slotted-easing-enter)}[data-ui-avatar][data-status=loaded] [data-part-fallback]{opacity:0;transition-timing-function:var(--slotted-easing-exit)}@supports (text-box: trim-both cap alphabetic){[data-ui-avatar] [data-part-fallback]:not(:has(>*)){align-content:center;display:block;text-align:center;text-box:trim-both var(--slotted-text-box-edge, cap alphabetic)}}[data-ui-avatar][data-part-root][data-status=loaded]{--_ground: transparent;--_edge: var(--slotted-border-subtle, ButtonBorder)}[data-ui-avatar][data-part-root][data-surface=none]{--_ground: transparent}[data-ui-avatar][data-part-root][data-surface=plate]{--_edge: var(--slotted-border-subtle, ButtonBorder);--_ground: var(--slotted-avatar-plate-surface, #ffffff);color:var(--slotted-avatar-plate-color, #1f2937)}[data-ui-avatar][data-part-root][data-disabled]{--_solid: var(--slotted-disabled-background, Canvas);--_on-solid: var(--slotted-disabled-foreground, GrayText);--_surface: var(--slotted-disabled-background, Canvas);--_text: var(--slotted-disabled-foreground, GrayText);--_edge: var(--slotted-disabled-border, GrayText)}[data-ui-avatar][data-part-root][data-disabled] [data-part-image]{filter:var(--slotted-avatar-disabled-image-filter, grayscale(1) opacity(.5))}[data-ui-avatar][data-part-root]:any-link,button[data-ui-avatar][data-part-root],[data-ui-avatar][data-part-root][tabindex]{cursor:pointer;overflow:clip;overflow-clip-margin:var(--slotted-target-min, 24px)}[data-ui-avatar][data-part-root]:any-link:not([data-disabled]):hover,button[data-ui-avatar][data-part-root]:not([data-disabled]):hover,[data-ui-avatar][data-part-root][tabindex]:not([data-disabled]):hover{background-color:color-mix(in oklab,var(--_ground),currentColor var(--slotted-avatar-state-layer-hover, 8%))}[data-ui-avatar][data-part-root]:any-link:not([data-disabled]):active,button[data-ui-avatar][data-part-root]:not([data-disabled]):active,[data-ui-avatar][data-part-root][tabindex]:not([data-disabled]):active{background-color:color-mix(in oklab,var(--_ground),currentColor var(--slotted-avatar-state-layer-active, 14%))}[data-ui-avatar][data-status=loaded]:any-link:not([data-disabled]):hover,button[data-ui-avatar][data-status=loaded]:not([data-disabled]):hover,[data-ui-avatar][data-status=loaded][tabindex]:not([data-disabled]):hover{--_edge: var(--slotted-border-strong, CanvasText);--slotted-avatar-ring-width: var(--slotted-border-width-thin, 1px);--slotted-avatar-ring-color: var(--slotted-border-strong, CanvasText)}[data-ui-avatar][data-status=loaded]:any-link:not([data-disabled]):active,button[data-ui-avatar][data-status=loaded]:not([data-disabled]):active,[data-ui-avatar][data-status=loaded][tabindex]:not([data-disabled]):active{--slotted-avatar-ring-width: var(--slotted-border-width-thick, 2px)}[data-ui-avatar][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)}[data-ui-avatar][data-part-root]:any-link:after,button[data-ui-avatar][data-part-root]:after,[data-ui-avatar][data-part-root][tabindex]:after{content:\"\";inset:min(0px,calc((100% - var(--slotted-target-min, 24px)) / 2));position:absolute}@media(forced-colors:active){[data-ui-avatar][data-part-root]{--_edge: currentColor}}}\n"] }]
|
|
330
330
|
}], propDecorators: { name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: false }] }], src: [{ type: i0.Input, args: [{ isSignal: true, alias: "src", required: false }] }], initialsOverride: [{ type: i0.Input, args: [{ isSignal: true, alias: "initials", required: false }] }], idFor: [{ type: i0.Input, args: [{ isSignal: true, alias: "idFor", required: false }] }], locale: [{ type: i0.Input, args: [{ isSignal: true, alias: "locale", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], shape: [{ type: i0.Input, args: [{ isSignal: true, alias: "shape", required: false }] }], tone: [{ type: i0.Input, args: [{ isSignal: true, alias: "tone", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], surface: [{ type: i0.Input, args: [{ isSignal: true, alias: "surface", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], decorative: [{ type: i0.Input, args: [{ isSignal: true, alias: "decorative", required: false }] }], status: [{ type: i0.Input, args: [{ isSignal: true, alias: "status", required: false }] }], statusChange: [{ type: i0.Output, args: ["statusChange"] }], custom: [{ type: i0.ContentChild, args: [i0.forwardRef(() => SlAvatarFallback), { isSignal: true }] }], projected: [{ type: i0.ContentChild, args: [i0.forwardRef(() => SlAvatarImage), { isSignal: true }] }] } });
|
|
331
331
|
|
|
332
332
|
/**
|