@slotted/angular 0.1.0-beta.20 → 0.1.0-beta.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. package/docs/chart.examples.md +15 -1
  2. package/docs/chart.json +3 -3
  3. package/docs/chart.md +1 -1
  4. package/docs/drawer.examples.md +1 -1
  5. package/docs/drawer.json +1 -1
  6. package/docs/tag.json +10 -9
  7. package/docs/tag.md +5 -5
  8. package/fesm2022/slotted-angular-cascader.mjs +4 -4
  9. package/fesm2022/slotted-angular-cascader.mjs.map +1 -1
  10. package/fesm2022/slotted-angular-chart.mjs +6 -3
  11. package/fesm2022/slotted-angular-chart.mjs.map +1 -1
  12. package/fesm2022/slotted-angular-color-picker.mjs +2 -2
  13. package/fesm2022/slotted-angular-color-picker.mjs.map +1 -1
  14. package/fesm2022/slotted-angular-combobox.mjs +2 -2
  15. package/fesm2022/slotted-angular-combobox.mjs.map +1 -1
  16. package/fesm2022/slotted-angular-currency-field.mjs +2 -2
  17. package/fesm2022/slotted-angular-currency-field.mjs.map +1 -1
  18. package/fesm2022/slotted-angular-date-field.mjs +2 -2
  19. package/fesm2022/slotted-angular-date-field.mjs.map +1 -1
  20. package/fesm2022/slotted-angular-date-picker.mjs +2 -2
  21. package/fesm2022/slotted-angular-date-picker.mjs.map +1 -1
  22. package/fesm2022/slotted-angular-date-range-picker.mjs +2 -2
  23. package/fesm2022/slotted-angular-date-range-picker.mjs.map +1 -1
  24. package/fesm2022/slotted-angular-datetime-field.mjs +2 -2
  25. package/fesm2022/slotted-angular-datetime-field.mjs.map +1 -1
  26. package/fesm2022/slotted-angular-datetime-picker.mjs +2 -2
  27. package/fesm2022/slotted-angular-datetime-picker.mjs.map +1 -1
  28. package/fesm2022/slotted-angular-datetime-range-picker.mjs +2 -2
  29. package/fesm2022/slotted-angular-datetime-range-picker.mjs.map +1 -1
  30. package/fesm2022/slotted-angular-drawer.mjs +2 -2
  31. package/fesm2022/slotted-angular-drawer.mjs.map +1 -1
  32. package/fesm2022/slotted-angular-entity-picker.mjs +2 -2
  33. package/fesm2022/slotted-angular-entity-picker.mjs.map +1 -1
  34. package/fesm2022/slotted-angular-multi-select.mjs +2 -2
  35. package/fesm2022/slotted-angular-multi-select.mjs.map +1 -1
  36. package/fesm2022/slotted-angular-number-field.mjs +2 -2
  37. package/fesm2022/slotted-angular-number-field.mjs.map +1 -1
  38. package/fesm2022/slotted-angular-select.mjs +2 -2
  39. package/fesm2022/slotted-angular-select.mjs.map +1 -1
  40. package/fesm2022/slotted-angular-tag.mjs +2 -2
  41. package/fesm2022/slotted-angular-tag.mjs.map +1 -1
  42. package/fesm2022/slotted-angular-tags-input.mjs +2 -2
  43. package/fesm2022/slotted-angular-tags-input.mjs.map +1 -1
  44. package/fesm2022/slotted-angular-text-field.mjs +2 -2
  45. package/fesm2022/slotted-angular-text-field.mjs.map +1 -1
  46. package/fesm2022/slotted-angular-textarea.mjs +2 -2
  47. package/fesm2022/slotted-angular-textarea.mjs.map +1 -1
  48. package/fesm2022/slotted-angular-time-field.mjs +2 -2
  49. package/fesm2022/slotted-angular-time-field.mjs.map +1 -1
  50. package/fesm2022/slotted-angular-time-picker.mjs +2 -2
  51. package/fesm2022/slotted-angular-time-picker.mjs.map +1 -1
  52. package/fesm2022/slotted-angular-time-range-picker.mjs +2 -2
  53. package/fesm2022/slotted-angular-time-range-picker.mjs.map +1 -1
  54. package/package.json +3 -3
  55. package/types/slotted-angular-chart.d.ts +3 -1
  56. package/types/slotted-angular-chart.d.ts.map +1 -1
  57. package/types/slotted-angular-tag.d.ts +1 -1
@@ -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",
@@ -1311,9 +1311,9 @@
1311
1311
  {
1312
1312
  "id": "card",
1313
1313
  "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.",
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. Inside a section whose heading already names the chart, leave title out and write aria-label: it names the plot.",
1315
1315
  "language": "html",
1316
- "source": "<figure slChart variant=\"plain\" [data]=\"monthly\" [series]=\"revenue\"></figure>\n<figure slChart variant=\"card\" [data]=\"monthly\" [series]=\"revenue\"></figure>\n",
1316
+ "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
1317
  "verdict": "excerpt"
1318
1318
  },
1319
1319
  {
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} |
@@ -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
@@ -579,7 +579,7 @@
579
579
  {
580
580
  "id": "sheet",
581
581
  "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.",
582
+ "note": "The sheet measures what it holds — the default size on top and bottom — stops at forty rems on a wide layer, and is moved by the platform’s own scroll, so the finger, the fling and the landing on a stop run on the compositor. The opening, the close and a tap on the grabber travel in --slotted-drawer-slide-duration and --slotted-easing-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
583
  "language": "ts",
584
584
  "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
585
  "verdict": "example"
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 an edge alone. A selected tag fills whatever its variant"
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 an edge alone. A selected tag fills whatever its variant"
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 an edge alone. A selected tag fills whatever its variant"
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 an edge alone. A selected tag fills whatever its variant"
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 an edge alone. A selected tag fills whatever its variant |
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 an edge alone. A selected tag fills whatever its variant |
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 an edge alone. A selected tag fills whatever its variant |
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 an edge alone. A selected tag fills whatever its variant |
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` |