@slotted/angular 0.1.0-beta.20 → 0.1.0-beta.22
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/chart.examples.md +15 -1
- package/docs/chart.json +4 -3
- package/docs/chart.md +2 -2
- package/docs/drawer.examples.md +1 -1
- package/docs/drawer.json +2 -1
- package/docs/drawer.md +1 -1
- package/docs/markdown.json +1 -1
- package/docs/markdown.md +1 -1
- package/docs/skills/theme-app/SKILL.md +6 -2
- package/docs/stat-card.json +7 -0
- package/docs/stat-card.md +1 -0
- package/docs/tag.json +10 -9
- package/docs/tag.md +5 -5
- package/fesm2022/slotted-angular-cascader.mjs +4 -4
- package/fesm2022/slotted-angular-cascader.mjs.map +1 -1
- package/fesm2022/slotted-angular-chart.mjs +6 -3
- package/fesm2022/slotted-angular-chart.mjs.map +1 -1
- package/fesm2022/slotted-angular-color-picker.mjs +2 -2
- package/fesm2022/slotted-angular-color-picker.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-currency-field.mjs +2 -2
- package/fesm2022/slotted-angular-currency-field.mjs.map +1 -1
- package/fesm2022/slotted-angular-date-field.mjs +2 -2
- package/fesm2022/slotted-angular-date-field.mjs.map +1 -1
- package/fesm2022/slotted-angular-date-picker.mjs +2 -2
- package/fesm2022/slotted-angular-date-picker.mjs.map +1 -1
- package/fesm2022/slotted-angular-date-range-picker.mjs +2 -2
- package/fesm2022/slotted-angular-date-range-picker.mjs.map +1 -1
- package/fesm2022/slotted-angular-datetime-field.mjs +2 -2
- package/fesm2022/slotted-angular-datetime-field.mjs.map +1 -1
- package/fesm2022/slotted-angular-datetime-picker.mjs +2 -2
- package/fesm2022/slotted-angular-datetime-picker.mjs.map +1 -1
- package/fesm2022/slotted-angular-datetime-range-picker.mjs +2 -2
- package/fesm2022/slotted-angular-datetime-range-picker.mjs.map +1 -1
- package/fesm2022/slotted-angular-drawer.mjs +4 -4
- package/fesm2022/slotted-angular-drawer.mjs.map +1 -1
- package/fesm2022/slotted-angular-entity-picker.mjs +2 -2
- package/fesm2022/slotted-angular-entity-picker.mjs.map +1 -1
- package/fesm2022/slotted-angular-multi-select.mjs +2 -2
- package/fesm2022/slotted-angular-multi-select.mjs.map +1 -1
- package/fesm2022/slotted-angular-number-field.mjs +2 -2
- package/fesm2022/slotted-angular-number-field.mjs.map +1 -1
- package/fesm2022/slotted-angular-page.mjs +2 -2
- package/fesm2022/slotted-angular-page.mjs.map +1 -1
- package/fesm2022/slotted-angular-select.mjs +2 -2
- package/fesm2022/slotted-angular-select.mjs.map +1 -1
- package/fesm2022/slotted-angular-stat-card.mjs +41 -10
- package/fesm2022/slotted-angular-stat-card.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-text-field.mjs +2 -2
- package/fesm2022/slotted-angular-text-field.mjs.map +1 -1
- package/fesm2022/slotted-angular-textarea.mjs +2 -2
- package/fesm2022/slotted-angular-textarea.mjs.map +1 -1
- package/fesm2022/slotted-angular-time-field.mjs +2 -2
- package/fesm2022/slotted-angular-time-field.mjs.map +1 -1
- package/fesm2022/slotted-angular-time-picker.mjs +2 -2
- package/fesm2022/slotted-angular-time-picker.mjs.map +1 -1
- package/fesm2022/slotted-angular-time-range-picker.mjs +2 -2
- package/fesm2022/slotted-angular-time-range-picker.mjs.map +1 -1
- package/package.json +3 -3
- package/types/slotted-angular-chart.d.ts +3 -1
- package/types/slotted-angular-chart.d.ts.map +1 -1
- package/types/slotted-angular-stat-card.d.ts +13 -2
- package/types/slotted-angular-stat-card.d.ts.map +1 -1
- package/types/slotted-angular-tag.d.ts +1 -1
package/docs/chart.examples.md
CHANGED
|
@@ -498,13 +498,27 @@ Excerpt — not a complete module
|
|
|
498
498
|
|
|
499
499
|
### On the page, or as a card
|
|
500
500
|
|
|
501
|
-
plain sits on the page’s own surface for a report; card draws its own surface, border and padding, and fills the grid cell it is given.
|
|
501
|
+
plain sits on the page’s own surface for a report; card draws its own surface, border and padding, and fills the grid cell it is given. Inside a section whose heading already names the chart, leave title out and write aria-label: it names the plot.
|
|
502
502
|
|
|
503
503
|
Excerpt — not a complete module
|
|
504
504
|
|
|
505
505
|
```html
|
|
506
506
|
<figure slChart variant="plain" [data]="monthly" [series]="revenue"></figure>
|
|
507
507
|
<figure slChart variant="card" [data]="monthly" [series]="revenue"></figure>
|
|
508
|
+
|
|
509
|
+
<section slSection>
|
|
510
|
+
<div slSectionHeader>
|
|
511
|
+
<div slSectionTitle><h2 slSectionHeading>Receita</h2></div>
|
|
512
|
+
</div>
|
|
513
|
+
<div slSectionBody>
|
|
514
|
+
<figure
|
|
515
|
+
slChart
|
|
516
|
+
aria-label="Receita, últimos 12 meses"
|
|
517
|
+
[data]="monthly"
|
|
518
|
+
[series]="revenue"
|
|
519
|
+
></figure>
|
|
520
|
+
</div>
|
|
521
|
+
</section>
|
|
508
522
|
```
|
|
509
523
|
|
|
510
524
|
### The controls, and when to show them
|
package/docs/chart.json
CHANGED
|
@@ -580,7 +580,7 @@
|
|
|
580
580
|
"type": "string",
|
|
581
581
|
"defaultValue": "—",
|
|
582
582
|
"appliesTo": "slChart",
|
|
583
|
-
"description": "The caption, and the plot’s accessible name. Taken from the native title attribute, which the figure does not keep"
|
|
583
|
+
"description": "The caption, and the plot’s accessible name. Taken from the native title attribute, which the figure does not keep. Without title, the plot is named by the aria-label written on the figure; use it when a surrounding heading already names the chart"
|
|
584
584
|
},
|
|
585
585
|
{
|
|
586
586
|
"name": "description",
|
|
@@ -949,6 +949,7 @@
|
|
|
949
949
|
"--slotted-chart-label-size",
|
|
950
950
|
"--slotted-chart-line-width",
|
|
951
951
|
"--slotted-chart-marker-size",
|
|
952
|
+
"--slotted-chart-overlay-backdrop-filter",
|
|
952
953
|
"--slotted-chart-plot-block-size",
|
|
953
954
|
"--slotted-chart-plot-block-size-lg",
|
|
954
955
|
"--slotted-chart-plot-block-size-sm",
|
|
@@ -1311,9 +1312,9 @@
|
|
|
1311
1312
|
{
|
|
1312
1313
|
"id": "card",
|
|
1313
1314
|
"title": "On the page, or as a card",
|
|
1314
|
-
"note": "plain sits on the page’s own surface for a report; card draws its own surface, border and padding, and fills the grid cell it is given.",
|
|
1315
|
+
"note": "plain sits on the page’s own surface for a report; card draws its own surface, border and padding, and fills the grid cell it is given. Inside a section whose heading already names the chart, leave title out and write aria-label: it names the plot.",
|
|
1315
1316
|
"language": "html",
|
|
1316
|
-
"source": "<figure slChart variant=\"plain\" [data]=\"monthly\" [series]=\"revenue\"></figure>\n<figure slChart variant=\"card\" [data]=\"monthly\" [series]=\"revenue\"></figure>\n",
|
|
1317
|
+
"source": "<figure slChart variant=\"plain\" [data]=\"monthly\" [series]=\"revenue\"></figure>\n<figure slChart variant=\"card\" [data]=\"monthly\" [series]=\"revenue\"></figure>\n\n<section slSection>\n <div slSectionHeader>\n <div slSectionTitle><h2 slSectionHeading>Receita</h2></div>\n </div>\n <div slSectionBody>\n <figure\n slChart\n aria-label=\"Receita, últimos 12 meses\"\n [data]=\"monthly\"\n [series]=\"revenue\"\n ></figure>\n </div>\n</section>\n",
|
|
1317
1318
|
"verdict": "excerpt"
|
|
1318
1319
|
},
|
|
1319
1320
|
{
|
package/docs/chart.md
CHANGED
|
@@ -90,7 +90,7 @@ Excerpt — not a complete module
|
|
|
90
90
|
| `annotations` | `readonly ChartAnnotation[]` | — | slChart | Lines and bands on either axis, labelled, in a tone. On the category axis a value names a category by its key or its x value; one that names none is not drawn |
|
|
91
91
|
| `recordKey` | `string` | — | slChart | The field that names a record when x is a value axis, for points and selection |
|
|
92
92
|
| `locale` | `string` | — | slChart | BCP 47, for every number and date; the language in force when absent |
|
|
93
|
-
| `title` | `string` | — | slChart | The caption, and the plot’s accessible name. Taken from the native title attribute, which the figure does not keep |
|
|
93
|
+
| `title` | `string` | — | slChart | The caption, and the plot’s accessible name. Taken from the native title attribute, which the figure does not keep. Without title, the plot is named by the aria-label written on the figure; use it when a surrounding heading already names the chart |
|
|
94
94
|
| `description` | `string` | — | slChart | One line under the title |
|
|
95
95
|
| `help` | `string` | — | slChart | A note behind an information control beside the title |
|
|
96
96
|
| `messages` | `Partial<ChartMessages>` | — | slChart | Words laid over the language in force, key by key: every word the chart writes or says, with {slots} |
|
|
@@ -181,7 +181,7 @@ Excerpt — not a complete module
|
|
|
181
181
|
|
|
182
182
|
## Tokens
|
|
183
183
|
|
|
184
|
-
`--slotted-border-strong`, `--slotted-border-subtle`, `--slotted-border-width-medium`, `--slotted-border-width-thick`, `--slotted-border-width-thin`, `--slotted-chart-area-opacity`, `--slotted-chart-axis-color`, `--slotted-chart-band-color`, `--slotted-chart-bar-radius`, `--slotted-chart-card-padding-block`, `--slotted-chart-card-padding-inline`, `--slotted-chart-card-radius`, `--slotted-chart-color-1`, `--slotted-chart-color-2`, `--slotted-chart-color-3`, `--slotted-chart-color-4`, `--slotted-chart-color-5`, `--slotted-chart-color-6`, `--slotted-chart-color-7`, `--slotted-chart-color-8`, `--slotted-chart-crosshair-color`, `--slotted-chart-focus-color`, `--slotted-chart-gap`, `--slotted-chart-grid-color`, `--slotted-chart-inset`, `--slotted-chart-label-color`, `--slotted-chart-label-size`, `--slotted-chart-line-width`, `--slotted-chart-marker-size`, `--slotted-chart-plot-block-size`, `--slotted-chart-plot-block-size-lg`, `--slotted-chart-plot-block-size-sm`, `--slotted-chart-radius`, `--slotted-chart-reference-color`, `--slotted-chart-sequential-color`, `--slotted-chart-skeleton-hole`, `--slotted-chart-surface`, `--slotted-chart-tooltip-surface`, `--slotted-control-border-color`, `--slotted-control-font-size-sm`, `--slotted-control-gap-md`, `--slotted-control-gap-sm`, `--slotted-control-height-sm`, `--slotted-control-inner-size-sm`, `--slotted-control-radius`, `--slotted-data-1`, `--slotted-data-2`, `--slotted-data-3`, `--slotted-data-4`, `--slotted-data-5`, `--slotted-data-6`, `--slotted-data-7`, `--slotted-data-8`, `--slotted-duration-instant`, `--slotted-duration-long`, `--slotted-duration-short`, `--slotted-easing-standard`, `--slotted-focus-ring-color`, `--slotted-focus-ring-offset`, `--slotted-focus-ring-width`, `--slotted-font-family-heading`, `--slotted-font-family-sans`, `--slotted-font-size-2xl`, `--slotted-font-size-lg`, `--slotted-font-size-md`, `--slotted-font-size-sm`, `--slotted-font-size-xl`, `--slotted-font-size-xs`, `--slotted-font-weight-medium`, `--slotted-font-weight-semibold`, `--slotted-line-height-2xl`, `--slotted-line-height-lg`, `--slotted-line-height-md`, `--slotted-line-height-sm`, `--slotted-line-height-xs`, `--slotted-radius-full`, `--slotted-radius-lg`, `--slotted-radius-md`, `--slotted-radius-sm`, `--slotted-radius-xs`, `--slotted-shadow-md`, `--slotted-space-1`, `--slotted-space-12`, `--slotted-space-2`, `--slotted-space-3`, `--slotted-space-4`, `--slotted-space-5`, `--slotted-space-6`, `--slotted-space-8`, `--slotted-space-9`, `--slotted-surface`, `--slotted-surface-raised`, `--slotted-target-comfortable`, `--slotted-target-min`, `--slotted-text`, `--slotted-text-muted`, `--slotted-tone-accent-text`, `--slotted-tone-danger-text`, `--slotted-tone-info-text`, `--slotted-tone-secondary-subtle-hover`, `--slotted-tone-secondary-surface`, `--slotted-tone-secondary-text`, `--slotted-tone-success-text`, `--slotted-tone-warning-text`, `--slotted-z-index-overlay`, `--slotted-z-index-popover`
|
|
184
|
+
`--slotted-border-strong`, `--slotted-border-subtle`, `--slotted-border-width-medium`, `--slotted-border-width-thick`, `--slotted-border-width-thin`, `--slotted-chart-area-opacity`, `--slotted-chart-axis-color`, `--slotted-chart-band-color`, `--slotted-chart-bar-radius`, `--slotted-chart-card-padding-block`, `--slotted-chart-card-padding-inline`, `--slotted-chart-card-radius`, `--slotted-chart-color-1`, `--slotted-chart-color-2`, `--slotted-chart-color-3`, `--slotted-chart-color-4`, `--slotted-chart-color-5`, `--slotted-chart-color-6`, `--slotted-chart-color-7`, `--slotted-chart-color-8`, `--slotted-chart-crosshair-color`, `--slotted-chart-focus-color`, `--slotted-chart-gap`, `--slotted-chart-grid-color`, `--slotted-chart-inset`, `--slotted-chart-label-color`, `--slotted-chart-label-size`, `--slotted-chart-line-width`, `--slotted-chart-marker-size`, `--slotted-chart-overlay-backdrop-filter`, `--slotted-chart-plot-block-size`, `--slotted-chart-plot-block-size-lg`, `--slotted-chart-plot-block-size-sm`, `--slotted-chart-radius`, `--slotted-chart-reference-color`, `--slotted-chart-sequential-color`, `--slotted-chart-skeleton-hole`, `--slotted-chart-surface`, `--slotted-chart-tooltip-surface`, `--slotted-control-border-color`, `--slotted-control-font-size-sm`, `--slotted-control-gap-md`, `--slotted-control-gap-sm`, `--slotted-control-height-sm`, `--slotted-control-inner-size-sm`, `--slotted-control-radius`, `--slotted-data-1`, `--slotted-data-2`, `--slotted-data-3`, `--slotted-data-4`, `--slotted-data-5`, `--slotted-data-6`, `--slotted-data-7`, `--slotted-data-8`, `--slotted-duration-instant`, `--slotted-duration-long`, `--slotted-duration-short`, `--slotted-easing-standard`, `--slotted-focus-ring-color`, `--slotted-focus-ring-offset`, `--slotted-focus-ring-width`, `--slotted-font-family-heading`, `--slotted-font-family-sans`, `--slotted-font-size-2xl`, `--slotted-font-size-lg`, `--slotted-font-size-md`, `--slotted-font-size-sm`, `--slotted-font-size-xl`, `--slotted-font-size-xs`, `--slotted-font-weight-medium`, `--slotted-font-weight-semibold`, `--slotted-line-height-2xl`, `--slotted-line-height-lg`, `--slotted-line-height-md`, `--slotted-line-height-sm`, `--slotted-line-height-xs`, `--slotted-radius-full`, `--slotted-radius-lg`, `--slotted-radius-md`, `--slotted-radius-sm`, `--slotted-radius-xs`, `--slotted-shadow-md`, `--slotted-space-1`, `--slotted-space-12`, `--slotted-space-2`, `--slotted-space-3`, `--slotted-space-4`, `--slotted-space-5`, `--slotted-space-6`, `--slotted-space-8`, `--slotted-space-9`, `--slotted-surface`, `--slotted-surface-raised`, `--slotted-target-comfortable`, `--slotted-target-min`, `--slotted-text`, `--slotted-text-muted`, `--slotted-tone-accent-text`, `--slotted-tone-danger-text`, `--slotted-tone-info-text`, `--slotted-tone-secondary-subtle-hover`, `--slotted-tone-secondary-surface`, `--slotted-tone-secondary-text`, `--slotted-tone-success-text`, `--slotted-tone-warning-text`, `--slotted-z-index-overlay`, `--slotted-z-index-popover`
|
|
185
185
|
|
|
186
186
|
## Examples
|
|
187
187
|
|
package/docs/drawer.examples.md
CHANGED
|
@@ -167,7 +167,7 @@ Excerpt — not a complete module
|
|
|
167
167
|
|
|
168
168
|
### A bottom sheet as a phone draws one
|
|
169
169
|
|
|
170
|
-
The sheet measures what it holds — the default size on top and bottom — stops at forty rems on a wide layer, and is moved by the platform’s own scroll, so the finger, the fling and the landing on a stop run on the compositor. The sheet and its content are one scroll: pushing up lifts the sheet to the top of the screen and, without letting go, goes on through the list under the header, which sticks there; pulling down from the top of the list brings the sheet down. A fling out of the list stops at its top and never closes the sheet. A tap on the grabber walks the stops.
|
|
170
|
+
The sheet measures what it holds — the default size on top and bottom — stops at forty rems on a wide layer, and is moved by the platform’s own scroll, so the finger, the fling and the landing on a stop run on the compositor. The opening, the close and a tap on the grabber travel in --slotted-drawer-slide-duration and --slotted-easing-enter going up, and in --slotted-drawer-slide-exit-duration and --slotted-easing-exit going down. The sheet and its content are one scroll: pushing up lifts the sheet to the top of the screen and, without letting go, goes on through the list under the header, which sticks there; pulling down from the top of the list brings the sheet down. A fling out of the list stops at its top and never closes the sheet. A tap on the grabber walks the stops.
|
|
171
171
|
|
|
172
172
|
Example
|
|
173
173
|
|
package/docs/drawer.json
CHANGED
|
@@ -470,6 +470,7 @@
|
|
|
470
470
|
"--slotted-drawer-extent-md",
|
|
471
471
|
"--slotted-drawer-extent-sm",
|
|
472
472
|
"--slotted-drawer-extent-xl",
|
|
473
|
+
"--slotted-drawer-footer-backdrop-filter",
|
|
473
474
|
"--slotted-drawer-footer-surface",
|
|
474
475
|
"--slotted-drawer-radius",
|
|
475
476
|
"--slotted-drawer-radius-expanded",
|
|
@@ -579,7 +580,7 @@
|
|
|
579
580
|
{
|
|
580
581
|
"id": "sheet",
|
|
581
582
|
"title": "A bottom sheet as a phone draws one",
|
|
582
|
-
"note": "The sheet measures what it holds — the default size on top and bottom — stops at forty rems on a wide layer, and is moved by the platform’s own scroll, so the finger, the fling and the landing on a stop run on the compositor. The sheet and its content are one scroll: pushing up lifts the sheet to the top of the screen and, without letting go, goes on through the list under the header, which sticks there; pulling down from the top of the list brings the sheet down. A fling out of the list stops at its top and never closes the sheet. A tap on the grabber walks the stops.",
|
|
583
|
+
"note": "The sheet measures what it holds — the default size on top and bottom — stops at forty rems on a wide layer, and is moved by the platform’s own scroll, so the finger, the fling and the landing on a stop run on the compositor. The opening, the close and a tap on the grabber travel in --slotted-drawer-slide-duration and --slotted-easing-enter going up, and in --slotted-drawer-slide-exit-duration and --slotted-easing-exit going down. The sheet and its content are one scroll: pushing up lifts the sheet to the top of the screen and, without letting go, goes on through the list under the header, which sticks there; pulling down from the top of the list brings the sheet down. A fling out of the list stops at its top and never closes the sheet. A tap on the grabber walks the stops.",
|
|
583
584
|
"language": "ts",
|
|
584
585
|
"source": "import { Component, computed, signal } from '@angular/core';\nimport { SlButton } from '@slotted/angular/button';\nimport {\n SlDrawer,\n SlDrawerBody,\n SlDrawerClose,\n SlDrawerDescription,\n SlDrawerFooter,\n SlDrawerHeader,\n SlDrawerResizer,\n SlDrawerTitle,\n SlDrawerTrigger,\n} from '@slotted/angular/drawer';\nimport { SlFieldGroup, SlFieldGroupLegend } from '@slotted/angular/field-group';\nimport { SlInline } from '@slotted/angular/inline';\nimport { SlRadio, SlRadioGroup } from '@slotted/angular/radio-group';\nimport { SlText } from '@slotted/angular/typography';\n\nconst WINDOWS = [\n { value: 'morning', label: 'Thursday 8 October, 8 AM to noon' },\n { value: 'afternoon', label: 'Thursday 8 October, 1 to 5 PM' },\n { value: 'friday', label: 'Friday 9 October, 8 AM to noon' },\n];\n\n@Component({\n selector: 'app-drawer-sheet',\n imports: [\n SlButton,\n SlDrawer,\n SlDrawerBody,\n SlDrawerClose,\n SlDrawerDescription,\n SlDrawerFooter,\n SlDrawerHeader,\n SlDrawerResizer,\n SlDrawerTitle,\n SlDrawerTrigger,\n SlFieldGroup,\n SlFieldGroupLegend,\n SlInline,\n SlRadio,\n SlRadioGroup,\n SlText,\n ],\n template: `\n <div slInline align=\"center\" [gap]=\"3\">\n <span slText size=\"sm\">Pickup: {{ pickupLabel() }}</span>\n <button slButton size=\"sm\" tone=\"secondary\" variant=\"outline\" [slDrawerTrigger]=\"drawer\">\n Reschedule\n </button>\n <sl-drawer #drawer=\"slDrawer\" side=\"bottom\" [open]=\"open()\" (openChange)=\"toggle($event)\">\n <div slDrawerResizer></div>\n <header slDrawerHeader>\n <h2 slDrawerTitle>Reschedule pickup</h2>\n <p slDrawerDescription>Shipment SH-4471, UPS Ground from Reno, NV.</p>\n <button slDrawerClose></button>\n </header>\n <div slDrawerBody>\n <fieldset slFieldGroup>\n <legend slFieldGroupLegend>Pickup window</legend>\n <div slRadioGroup [value]=\"draft()\" (valueChange)=\"draft.set($event.value ?? draft())\">\n @for (window of windows; track window.value) {\n <div slRadio [value]=\"window.value\">{{ window.label }}</div>\n }\n </div>\n </fieldset>\n </div>\n <footer slDrawerFooter>\n <button slButton variant=\"ghost\" tone=\"secondary\" (click)=\"open.set(false)\">\n Cancel\n </button>\n <button slButton (click)=\"reschedule()\">Reschedule</button>\n </footer>\n </sl-drawer>\n </div>\n `,\n})\nexport class DrawerSheet {\n readonly windows = WINDOWS;\n readonly open = signal(false);\n readonly pickup = signal('morning');\n readonly draft = signal(this.pickup());\n readonly pickupLabel = computed(\n () => WINDOWS.find((window) => window.value === this.pickup())?.label,\n );\n\n toggle(next: boolean): void {\n if (next) this.draft.set(this.pickup());\n this.open.set(next);\n }\n\n reschedule(): void {\n this.pickup.set(this.draft());\n this.open.set(false);\n }\n}\n",
|
|
585
586
|
"verdict": "example"
|
package/docs/drawer.md
CHANGED
|
@@ -194,7 +194,7 @@ export class DrawerBasic {
|
|
|
194
194
|
|
|
195
195
|
## Tokens
|
|
196
196
|
|
|
197
|
-
`--slotted-border-strong`, `--slotted-border-subtle`, `--slotted-border-width-thick`, `--slotted-border-width-thin`, `--slotted-control-font-family`, `--slotted-control-icon-size-md`, `--slotted-control-inner-size-md`, `--slotted-control-radius`, `--slotted-control-transition-duration`, `--slotted-control-transition-easing`, `--slotted-drawer-backdrop-filter`, `--slotted-drawer-body-color`, `--slotted-drawer-border-color`, `--slotted-drawer-close-active-background`, `--slotted-drawer-close-color`, `--slotted-drawer-close-hover-background`, `--slotted-drawer-color`, `--slotted-drawer-description-color`, `--slotted-drawer-extent`, `--slotted-drawer-extent-lg`, `--slotted-drawer-extent-md`, `--slotted-drawer-extent-sm`, `--slotted-drawer-extent-xl`, `--slotted-drawer-footer-surface`, `--slotted-drawer-radius`, `--slotted-drawer-radius-expanded`, `--slotted-drawer-resizer-line-active-color`, `--slotted-drawer-resizer-line-color`, `--slotted-drawer-rule-color`, `--slotted-drawer-scrim`, `--slotted-drawer-sheet-floor`, `--slotted-drawer-sheet-height`, `--slotted-drawer-sheet-inline-size`, `--slotted-drawer-slide-duration`, `--slotted-drawer-slide-exit-duration`, `--slotted-drawer-surface`, `--slotted-drawer-title-color`, `--slotted-drawer-title-font-family`, `--slotted-duration-instant`, `--slotted-duration-long`, `--slotted-duration-medium`, `--slotted-duration-short`, `--slotted-easing-enter`, `--slotted-easing-exit`, `--slotted-easing-standard`, `--slotted-focus-ring-color`, `--slotted-focus-ring-offset`, `--slotted-focus-ring-width`, `--slotted-font-family-heading`, `--slotted-font-family-sans`, `--slotted-font-size-lg`, `--slotted-font-size-md`, `--slotted-font-size-xl`, `--slotted-font-weight-semibold`, `--slotted-line-height-lg`, `--slotted-line-height-md`, `--slotted-radius-full`, `--slotted-radius-lg`, `--slotted-radius-sm`, `--slotted-scrim`, `--slotted-shadow-lg`, `--slotted-space-11`, `--slotted-space-12`, `--slotted-space-2`, `--slotted-space-4`, `--slotted-space-5`, `--slotted-space-6`, `--slotted-space-7`, `--slotted-space-8`, `--slotted-space-9`, `--slotted-surface-raised`, `--slotted-surface-sunken`, `--slotted-target-comfortable`, `--slotted-target-min`, `--slotted-text`, `--slotted-text-muted`, `--slotted-tone-secondary-subtle-active`, `--slotted-tone-secondary-subtle-hover`, `--slotted-z-index-overlay`
|
|
197
|
+
`--slotted-border-strong`, `--slotted-border-subtle`, `--slotted-border-width-thick`, `--slotted-border-width-thin`, `--slotted-control-font-family`, `--slotted-control-icon-size-md`, `--slotted-control-inner-size-md`, `--slotted-control-radius`, `--slotted-control-transition-duration`, `--slotted-control-transition-easing`, `--slotted-drawer-backdrop-filter`, `--slotted-drawer-body-color`, `--slotted-drawer-border-color`, `--slotted-drawer-close-active-background`, `--slotted-drawer-close-color`, `--slotted-drawer-close-hover-background`, `--slotted-drawer-color`, `--slotted-drawer-description-color`, `--slotted-drawer-extent`, `--slotted-drawer-extent-lg`, `--slotted-drawer-extent-md`, `--slotted-drawer-extent-sm`, `--slotted-drawer-extent-xl`, `--slotted-drawer-footer-backdrop-filter`, `--slotted-drawer-footer-surface`, `--slotted-drawer-radius`, `--slotted-drawer-radius-expanded`, `--slotted-drawer-resizer-line-active-color`, `--slotted-drawer-resizer-line-color`, `--slotted-drawer-rule-color`, `--slotted-drawer-scrim`, `--slotted-drawer-sheet-floor`, `--slotted-drawer-sheet-height`, `--slotted-drawer-sheet-inline-size`, `--slotted-drawer-slide-duration`, `--slotted-drawer-slide-exit-duration`, `--slotted-drawer-surface`, `--slotted-drawer-title-color`, `--slotted-drawer-title-font-family`, `--slotted-duration-instant`, `--slotted-duration-long`, `--slotted-duration-medium`, `--slotted-duration-short`, `--slotted-easing-enter`, `--slotted-easing-exit`, `--slotted-easing-standard`, `--slotted-focus-ring-color`, `--slotted-focus-ring-offset`, `--slotted-focus-ring-width`, `--slotted-font-family-heading`, `--slotted-font-family-sans`, `--slotted-font-size-lg`, `--slotted-font-size-md`, `--slotted-font-size-xl`, `--slotted-font-weight-semibold`, `--slotted-line-height-lg`, `--slotted-line-height-md`, `--slotted-radius-full`, `--slotted-radius-lg`, `--slotted-radius-sm`, `--slotted-scrim`, `--slotted-shadow-lg`, `--slotted-space-11`, `--slotted-space-12`, `--slotted-space-2`, `--slotted-space-4`, `--slotted-space-5`, `--slotted-space-6`, `--slotted-space-7`, `--slotted-space-8`, `--slotted-space-9`, `--slotted-surface-raised`, `--slotted-surface-sunken`, `--slotted-target-comfortable`, `--slotted-target-min`, `--slotted-text`, `--slotted-text-muted`, `--slotted-tone-secondary-subtle-active`, `--slotted-tone-secondary-subtle-hover`, `--slotted-z-index-overlay`
|
|
198
198
|
|
|
199
199
|
## Examples
|
|
200
200
|
|
package/docs/markdown.json
CHANGED
|
@@ -125,7 +125,7 @@
|
|
|
125
125
|
"type": "string",
|
|
126
126
|
"defaultValue": "—",
|
|
127
127
|
"appliesTo": "[slMarkdown]",
|
|
128
|
-
"description": "The document as CommonMark text, read by parseMarkdown in place of tree: the syntax of the types in allow is read and any other stays text. Paragraphs, ATX headings, fenced code, quotes, rules, nested lists, code spans, strong, emphasis, links, escapes and hard breaks;
|
|
128
|
+
"description": "The document as CommonMark text, read by parseMarkdown in place of tree: the syntax of the types in allow is read and any other stays text. Paragraphs, ATX headings, fenced code, quotes, rules, GFM tables, nested lists, code spans, strong, emphasis, links, escapes and hard breaks; images and HTML need an adapter"
|
|
129
129
|
},
|
|
130
130
|
{
|
|
131
131
|
"name": "size",
|
package/docs/markdown.md
CHANGED
|
@@ -45,7 +45,7 @@ Excerpt — not a complete module
|
|
|
45
45
|
| Name | Type | Default | Applies to | Description |
|
|
46
46
|
| --- | --- | --- | --- | --- |
|
|
47
47
|
| `tree` | `MarkdownNode \| null` | — | [slMarkdown] | The document in mdast; never HTML |
|
|
48
|
-
| `source` | `string` | — | [slMarkdown] | The document as CommonMark text, read by parseMarkdown in place of tree: the syntax of the types in allow is read and any other stays text. Paragraphs, ATX headings, fenced code, quotes, rules, nested lists, code spans, strong, emphasis, links, escapes and hard breaks;
|
|
48
|
+
| `source` | `string` | — | [slMarkdown] | The document as CommonMark text, read by parseMarkdown in place of tree: the syntax of the types in allow is read and any other stays text. Paragraphs, ATX headings, fenced code, quotes, rules, GFM tables, nested lists, code spans, strong, emphasis, links, escapes and hard breaks; images and HTML need an adapter |
|
|
49
49
|
| `size` | `'md' \| 'lg' \| 'xl'` | lg | [slMarkdown] | The region’s type step, from prose |
|
|
50
50
|
| `flow` | `'tight' \| 'normal' \| 'loose'` | normal | [slMarkdown] | The space between blocks, from prose |
|
|
51
51
|
| `status` | `'ready' \| 'error'` | ready | [slMarkdown] | error replaces the document with the error part |
|
|
@@ -79,8 +79,12 @@ has.
|
|
|
79
79
|
`--slotted-page-footer-background` with
|
|
80
80
|
`--slotted-page-footer-backdrop-filter`, and
|
|
81
81
|
`--slotted-detail-panel-footer-background` with
|
|
82
|
-
`--slotted-detail-panel-footer-backdrop-filter`, and a
|
|
83
|
-
`--slotted-
|
|
82
|
+
`--slotted-detail-panel-footer-backdrop-filter`, and a drawer's footer
|
|
83
|
+
`--slotted-drawer-footer-surface` with
|
|
84
|
+
`--slotted-drawer-footer-backdrop-filter`, and a dialog's panel
|
|
85
|
+
`--slotted-dialog-surface` with `--slotted-dialog-backdrop-filter`. The
|
|
86
|
+
chart's tooltip, menu and help read one filter,
|
|
87
|
+
`--slotted-chart-overlay-backdrop-filter`.
|
|
84
88
|
|
|
85
89
|
## 4. Restyle a control
|
|
86
90
|
|
package/docs/stat-card.json
CHANGED
|
@@ -258,6 +258,13 @@
|
|
|
258
258
|
"appliesTo": "slStatCard, slStatCardValue, slStatCardDelta",
|
|
259
259
|
"description": "How a number is written. On the root, the default for the value and the delta"
|
|
260
260
|
},
|
|
261
|
+
{
|
|
262
|
+
"name": "emphasis",
|
|
263
|
+
"type": "'none' | 'whole'",
|
|
264
|
+
"defaultValue": "'none'",
|
|
265
|
+
"appliesTo": "slStatCardValue",
|
|
266
|
+
"description": "whole draws the symbol, the decimals and the suffix of a numeric value in the unit part, so the whole units carry the figure; the text is the formatter’s either way"
|
|
267
|
+
},
|
|
261
268
|
{
|
|
262
269
|
"name": "messages",
|
|
263
270
|
"type": "Partial<StatCardMessages>",
|
package/docs/stat-card.md
CHANGED
|
@@ -76,6 +76,7 @@ Excerpt — not a complete module
|
|
|
76
76
|
| `tone` | `'neutral' \| 'accent' \| 'secondary' \| 'info' \| 'success' \| 'warning' \| 'danger'` | — | slStatCard, slStatCardDelta | An explicit tone, which wins over the derived one. On the root it is what the trend hands its sparkline |
|
|
77
77
|
| `locale` | `string` | — | slStatCard | BCP 47, for every number the card formats; the language in force when absent |
|
|
78
78
|
| `formatOptions` | `Intl.NumberFormatOptions` | — | slStatCard, slStatCardValue, slStatCardDelta | How a number is written. On the root, the default for the value and the delta |
|
|
79
|
+
| `emphasis` | `'none' \| 'whole'` | 'none' | slStatCardValue | whole draws the symbol, the decimals and the suffix of a numeric value in the unit part, so the whole units carry the figure; the text is the formatter’s either way |
|
|
79
80
|
| `messages` | `Partial<StatCardMessages>` | — | slStatCard | Words laid over the language in force, key by key: up, down and flat, heard before the delta; empty, shown in place of a missing value |
|
|
80
81
|
| `value` | `number \| string` | — | slStatCardValue, slStatCardDelta | A number the card formats, or text as written. On a delta, unset means the root’s delta |
|
|
81
82
|
| `format` | `'percent' \| 'decimal'` | percent | slStatCardDelta | percent reads the value as a fraction; decimal reads it as it is. The sign is shown except on nought |
|
package/docs/tag.json
CHANGED
|
@@ -18,7 +18,8 @@
|
|
|
18
18
|
"variant": [
|
|
19
19
|
"solid",
|
|
20
20
|
"soft",
|
|
21
|
-
"outline"
|
|
21
|
+
"outline",
|
|
22
|
+
"dashed"
|
|
22
23
|
],
|
|
23
24
|
"size": [
|
|
24
25
|
"sm",
|
|
@@ -189,10 +190,10 @@
|
|
|
189
190
|
},
|
|
190
191
|
{
|
|
191
192
|
"name": "variant",
|
|
192
|
-
"type": "'solid' | 'soft' | 'outline'",
|
|
193
|
+
"type": "'solid' | 'soft' | 'outline' | 'dashed'",
|
|
193
194
|
"defaultValue": "soft",
|
|
194
195
|
"appliesTo": "slTag",
|
|
195
|
-
"description": "How that colour is painted: filled, tinted, or
|
|
196
|
+
"description": "How that colour is painted: filled, tinted, an edge alone, or that edge in dashes. A selected tag fills whatever its variant"
|
|
196
197
|
},
|
|
197
198
|
{
|
|
198
199
|
"name": "size",
|
|
@@ -323,10 +324,10 @@
|
|
|
323
324
|
},
|
|
324
325
|
{
|
|
325
326
|
"name": "variant",
|
|
326
|
-
"type": "'solid' | 'soft' | 'outline'",
|
|
327
|
+
"type": "'solid' | 'soft' | 'outline' | 'dashed'",
|
|
327
328
|
"defaultValue": "soft",
|
|
328
329
|
"appliesTo": "slTag",
|
|
329
|
-
"description": "How that colour is painted: filled, tinted, or
|
|
330
|
+
"description": "How that colour is painted: filled, tinted, an edge alone, or that edge in dashes. A selected tag fills whatever its variant"
|
|
330
331
|
},
|
|
331
332
|
{
|
|
332
333
|
"name": "size",
|
|
@@ -429,10 +430,10 @@
|
|
|
429
430
|
},
|
|
430
431
|
{
|
|
431
432
|
"name": "variant",
|
|
432
|
-
"type": "'solid' | 'soft' | 'outline'",
|
|
433
|
+
"type": "'solid' | 'soft' | 'outline' | 'dashed'",
|
|
433
434
|
"defaultValue": "soft",
|
|
434
435
|
"appliesTo": "slTag",
|
|
435
|
-
"description": "How that colour is painted: filled, tinted, or
|
|
436
|
+
"description": "How that colour is painted: filled, tinted, an edge alone, or that edge in dashes. A selected tag fills whatever its variant"
|
|
436
437
|
},
|
|
437
438
|
{
|
|
438
439
|
"name": "size",
|
|
@@ -535,10 +536,10 @@
|
|
|
535
536
|
},
|
|
536
537
|
{
|
|
537
538
|
"name": "variant",
|
|
538
|
-
"type": "'solid' | 'soft' | 'outline'",
|
|
539
|
+
"type": "'solid' | 'soft' | 'outline' | 'dashed'",
|
|
539
540
|
"defaultValue": "soft",
|
|
540
541
|
"appliesTo": "slTag",
|
|
541
|
-
"description": "How that colour is painted: filled, tinted, or
|
|
542
|
+
"description": "How that colour is painted: filled, tinted, an edge alone, or that edge in dashes. A selected tag fills whatever its variant"
|
|
542
543
|
},
|
|
543
544
|
{
|
|
544
545
|
"name": "size",
|
package/docs/tag.md
CHANGED
|
@@ -18,7 +18,7 @@ Excerpt — not a complete module
|
|
|
18
18
|
| Name | Type | Default | Applies to | Description |
|
|
19
19
|
| --- | --- | --- | --- | --- |
|
|
20
20
|
| `tone` | `'accent' \| 'secondary' \| 'info' \| 'success' \| 'warning' \| 'danger'` | secondary | slTag | Which of the five semantic colours the tag speaks in |
|
|
21
|
-
| `variant` | `'solid' \| 'soft' \| 'outline'` | soft | slTag | How that colour is painted: filled, tinted, or
|
|
21
|
+
| `variant` | `'solid' \| 'soft' \| 'outline' \| 'dashed'` | soft | slTag | How that colour is painted: filled, tinted, an edge alone, or that edge in dashes. A selected tag fills whatever its variant |
|
|
22
22
|
| `size` | `'sm' \| 'md' \| 'lg'` | md | slTag | Type, glyph and gap come from the control scale, so a tag shrinks with density beside the controls it sits with |
|
|
23
23
|
| `shape` | `'pill' \| 'square'` | pill | slTag | A rounded chip, or a rectangle with the small corner radius |
|
|
24
24
|
| `start` | `slTagStart` | — | slTag | A glyph or an avatar before the words: the directive on the consumer’s own element, projected into the content box |
|
|
@@ -39,7 +39,7 @@ Excerpt — not a complete module
|
|
|
39
39
|
| Name | Type | Default | Applies to | Description |
|
|
40
40
|
| --- | --- | --- | --- | --- |
|
|
41
41
|
| `tone` | `'accent' \| 'secondary' \| 'info' \| 'success' \| 'warning' \| 'danger'` | secondary | slTag | Which of the five semantic colours the tag speaks in |
|
|
42
|
-
| `variant` | `'solid' \| 'soft' \| 'outline'` | soft | slTag | How that colour is painted: filled, tinted, or
|
|
42
|
+
| `variant` | `'solid' \| 'soft' \| 'outline' \| 'dashed'` | soft | slTag | How that colour is painted: filled, tinted, an edge alone, or that edge in dashes. A selected tag fills whatever its variant |
|
|
43
43
|
| `size` | `'sm' \| 'md' \| 'lg'` | md | slTag | Type, glyph and gap come from the control scale, so a tag shrinks with density beside the controls it sits with |
|
|
44
44
|
| `shape` | `'pill' \| 'square'` | pill | slTag | A rounded chip, or a rectangle with the small corner radius |
|
|
45
45
|
| `start` | `slTagStart` | — | slTagBody | A glyph or an avatar before the words: the directive on the consumer’s own element, projected into the content box |
|
|
@@ -56,7 +56,7 @@ Excerpt — not a complete module
|
|
|
56
56
|
| Name | Type | Default | Applies to | Description |
|
|
57
57
|
| --- | --- | --- | --- | --- |
|
|
58
58
|
| `tone` | `'accent' \| 'secondary' \| 'info' \| 'success' \| 'warning' \| 'danger'` | secondary | slTag | Which of the five semantic colours the tag speaks in |
|
|
59
|
-
| `variant` | `'solid' \| 'soft' \| 'outline'` | soft | slTag | How that colour is painted: filled, tinted, or
|
|
59
|
+
| `variant` | `'solid' \| 'soft' \| 'outline' \| 'dashed'` | soft | slTag | How that colour is painted: filled, tinted, an edge alone, or that edge in dashes. A selected tag fills whatever its variant |
|
|
60
60
|
| `size` | `'sm' \| 'md' \| 'lg'` | md | slTag | Type, glyph and gap come from the control scale, so a tag shrinks with density beside the controls it sits with |
|
|
61
61
|
| `shape` | `'pill' \| 'square'` | pill | slTag | A rounded chip, or a rectangle with the small corner radius |
|
|
62
62
|
| `start` | `slTagStart` | — | slTagBody | A glyph or an avatar before the words: the directive on the consumer’s own element, projected into the content box |
|
|
@@ -73,7 +73,7 @@ Excerpt — not a complete module
|
|
|
73
73
|
| Name | Type | Default | Applies to | Description |
|
|
74
74
|
| --- | --- | --- | --- | --- |
|
|
75
75
|
| `tone` | `'accent' \| 'secondary' \| 'info' \| 'success' \| 'warning' \| 'danger'` | secondary | slTag | Which of the five semantic colours the tag speaks in |
|
|
76
|
-
| `variant` | `'solid' \| 'soft' \| 'outline'` | soft | slTag | How that colour is painted: filled, tinted, or
|
|
76
|
+
| `variant` | `'solid' \| 'soft' \| 'outline' \| 'dashed'` | soft | slTag | How that colour is painted: filled, tinted, an edge alone, or that edge in dashes. A selected tag fills whatever its variant |
|
|
77
77
|
| `size` | `'sm' \| 'md' \| 'lg'` | md | slTag | Type, glyph and gap come from the control scale, so a tag shrinks with density beside the controls it sits with |
|
|
78
78
|
| `shape` | `'pill' \| 'square'` | pill | slTag | A rounded chip, or a rectangle with the small corner radius |
|
|
79
79
|
| `start` | `slTagStart` | — | slTagToggle | A glyph or an avatar before the words: the directive on the consumer’s own element, projected into the content box |
|
|
@@ -92,7 +92,7 @@ Excerpt — not a complete module
|
|
|
92
92
|
| Axis | Values | Default |
|
|
93
93
|
| --- | --- | --- |
|
|
94
94
|
| `tone` | `accent`, `secondary`, `info`, `success`, `warning`, `danger` | `secondary` |
|
|
95
|
-
| `variant` | `solid`, `soft`, `outline` | `soft` |
|
|
95
|
+
| `variant` | `solid`, `soft`, `outline`, `dashed` | `soft` |
|
|
96
96
|
| `size` | `sm`, `md`, `lg` | `md` |
|
|
97
97
|
| `shape` | `pill`, `square` | `pill` |
|
|
98
98
|
| `orientation` | `horizontal`, `vertical` | `horizontal` |
|