@slotted/angular 0.1.0-beta.15 → 0.1.0-beta.17

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 (83) hide show
  1. package/docs/calendar.json +19 -1
  2. package/docs/calendar.md +3 -1
  3. package/docs/dashboard-grid.json +31 -9
  4. package/docs/dashboard-grid.md +15 -6
  5. package/docs/drawer.json +13 -4
  6. package/docs/drawer.md +5 -4
  7. package/docs/guidelines/index.md +2 -0
  8. package/docs/guidelines/layout-alignment.md +2 -2
  9. package/docs/guidelines/overviews.md +21 -1
  10. package/docs/link.json +16 -0
  11. package/docs/link.md +3 -1
  12. package/docs/list-item.json +10 -2
  13. package/docs/list-item.md +16 -13
  14. package/docs/markdown.json +7 -0
  15. package/docs/markdown.md +1 -0
  16. package/docs/message-scroller.json +1 -1
  17. package/docs/page.json +2 -2
  18. package/docs/page.md +1 -1
  19. package/docs/prompt-composer.json +9 -2
  20. package/docs/prompt-composer.md +3 -1
  21. package/docs/skills/compose-screen/SKILL.md +10 -1
  22. package/docs/skills/review-screen/SKILL.md +22 -20
  23. package/docs/stat-card.json +7 -4
  24. package/docs/stat-card.md +4 -4
  25. package/fesm2022/slotted-angular-attachment.mjs +2 -2
  26. package/fesm2022/slotted-angular-attachment.mjs.map +1 -1
  27. package/fesm2022/slotted-angular-calendar.mjs +32 -11
  28. package/fesm2022/slotted-angular-calendar.mjs.map +1 -1
  29. package/fesm2022/slotted-angular-chart.mjs +8 -2
  30. package/fesm2022/slotted-angular-chart.mjs.map +1 -1
  31. package/fesm2022/slotted-angular-dashboard-grid.mjs +171 -27
  32. package/fesm2022/slotted-angular-dashboard-grid.mjs.map +1 -1
  33. package/fesm2022/slotted-angular-date-picker.mjs +1 -1
  34. package/fesm2022/slotted-angular-date-picker.mjs.map +1 -1
  35. package/fesm2022/slotted-angular-date-range-picker.mjs +1 -1
  36. package/fesm2022/slotted-angular-date-range-picker.mjs.map +1 -1
  37. package/fesm2022/slotted-angular-datetime-picker.mjs +1 -1
  38. package/fesm2022/slotted-angular-datetime-picker.mjs.map +1 -1
  39. package/fesm2022/slotted-angular-datetime-range-picker.mjs +1 -1
  40. package/fesm2022/slotted-angular-datetime-range-picker.mjs.map +1 -1
  41. package/fesm2022/slotted-angular-dialog.mjs +4 -4
  42. package/fesm2022/slotted-angular-dialog.mjs.map +1 -1
  43. package/fesm2022/slotted-angular-drawer.mjs +17 -3
  44. package/fesm2022/slotted-angular-drawer.mjs.map +1 -1
  45. package/fesm2022/slotted-angular-link.mjs +10 -3
  46. package/fesm2022/slotted-angular-link.mjs.map +1 -1
  47. package/fesm2022/slotted-angular-list-item.mjs +44 -7
  48. package/fesm2022/slotted-angular-list-item.mjs.map +1 -1
  49. package/fesm2022/slotted-angular-markdown.mjs +28 -14
  50. package/fesm2022/slotted-angular-markdown.mjs.map +1 -1
  51. package/fesm2022/slotted-angular-message.mjs +4 -4
  52. package/fesm2022/slotted-angular-message.mjs.map +1 -1
  53. package/fesm2022/slotted-angular-page.mjs +26 -6
  54. package/fesm2022/slotted-angular-page.mjs.map +1 -1
  55. package/fesm2022/slotted-angular-prompt-composer.mjs +77 -4
  56. package/fesm2022/slotted-angular-prompt-composer.mjs.map +1 -1
  57. package/fesm2022/slotted-angular-section.mjs +2 -2
  58. package/fesm2022/slotted-angular-section.mjs.map +1 -1
  59. package/fesm2022/slotted-angular-stat-card.mjs +37 -6
  60. package/fesm2022/slotted-angular-stat-card.mjs.map +1 -1
  61. package/fesm2022/slotted-angular-table.mjs +2 -2
  62. package/fesm2022/slotted-angular-table.mjs.map +1 -1
  63. package/package.json +3 -3
  64. package/types/slotted-angular-calendar.d.ts +15 -2
  65. package/types/slotted-angular-calendar.d.ts.map +1 -1
  66. package/types/slotted-angular-chart.d.ts +9 -9
  67. package/types/slotted-angular-chart.d.ts.map +1 -1
  68. package/types/slotted-angular-dashboard-grid.d.ts +63 -7
  69. package/types/slotted-angular-dashboard-grid.d.ts.map +1 -1
  70. package/types/slotted-angular-drawer.d.ts +6 -1
  71. package/types/slotted-angular-drawer.d.ts.map +1 -1
  72. package/types/slotted-angular-link.d.ts +8 -2
  73. package/types/slotted-angular-link.d.ts.map +1 -1
  74. package/types/slotted-angular-list-item.d.ts +4 -0
  75. package/types/slotted-angular-list-item.d.ts.map +1 -1
  76. package/types/slotted-angular-markdown.d.ts +6 -1
  77. package/types/slotted-angular-markdown.d.ts.map +1 -1
  78. package/types/slotted-angular-page.d.ts +7 -1
  79. package/types/slotted-angular-page.d.ts.map +1 -1
  80. package/types/slotted-angular-prompt-composer.d.ts +24 -1
  81. package/types/slotted-angular-prompt-composer.d.ts.map +1 -1
  82. package/types/slotted-angular-stat-card.d.ts +8 -3
  83. package/types/slotted-angular-stat-card.d.ts.map +1 -1
@@ -120,6 +120,13 @@
120
120
  "appliesTo": "[slMarkdown]",
121
121
  "description": "The document in mdast; never HTML"
122
122
  },
123
+ {
124
+ "name": "source",
125
+ "type": "string",
126
+ "defaultValue": "—",
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; tables, images and HTML need an adapter"
129
+ },
123
130
  {
124
131
  "name": "size",
125
132
  "type": "'md' | 'lg' | 'xl'",
package/docs/markdown.md CHANGED
@@ -45,6 +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; tables, images and HTML need an adapter |
48
49
  | `size` | `'md' \| 'lg' \| 'xl'` | lg | [slMarkdown] | The region’s type step, from prose |
49
50
  | `flow` | `'tight' \| 'normal' \| 'loose'` | normal | [slMarkdown] | The space between blocks, from prose |
50
51
  | `status` | `'ready' \| 'error'` | ready | [slMarkdown] | error replaces the document with the error part |
@@ -68,7 +68,7 @@
68
68
  "part": "root",
69
69
  "element": "div",
70
70
  "required": true,
71
- "purpose": "The frame. Fills a bounded parent; the engine writes data-scrollable, data-following and data-pending on it while the reader scrolls."
71
+ "purpose": "The frame. Fills a bounded parent; the engine writes data-scrollable, data-following and data-pending on it while the reader scrolls. data-pending hides the content until the opening position is applied, and content that holds no item is never pending."
72
72
  },
73
73
  {
74
74
  "part": "viewport",
package/docs/page.json CHANGED
@@ -203,11 +203,11 @@
203
203
  "description": "The five decisions an application takes once. A page that states any of them itself still wins"
204
204
  },
205
205
  {
206
- "name": "--slotted-page-sticky-top, --slotted-page-sticky-bottom",
206
+ "name": "--slotted-page-sticky-top, --slotted-page-sticky-bottom, --slotted-page-scrollport-block-size",
207
207
  "type": "runtime properties on the scroller",
208
208
  "defaultValue": "—",
209
209
  "appliesTo": "every family under the page, and the consumer’s own sticky elements inside it",
210
- "description": "The height of the chrome that stays at the top, written by the header, and of the footer, written by the page. A section’s sticky header reads the first; a table with stickyTo=\"page\" reads both through the bridge the page writes on its root. A consumer’s own position: sticky element reads the first as well: inset-block-start: calc(var(--slotted-page-sticky-top, 0px) + gap) stops it under the chrome instead of behind the stuck header, and max-block-size: calc(100dvh - var(--slotted-page-sticky-top, 0px) - gap) bounds one that may be taller than the viewport"
210
+ "description": "The height of the chrome that stays at the top, written by the header, of the footer, and of the scroller itself, written by the page. A section’s sticky header reads the first; a table with stickyTo=\"page\" reads both through the bridge the page writes on its root. A consumer’s own position: sticky element reads the first as well: inset-block-start: calc(var(--slotted-page-sticky-top, 0px) + gap) stops it under the chrome instead of behind the stuck header, and max-block-size: calc(var(--slotted-page-scrollport-block-size, 100dvh) - var(--slotted-page-sticky-top, 0px) - var(--slotted-page-sticky-bottom, 0px) - 2 * gap) bounds one that may be taller than the scroller. The third is the scroller’s visible height, written by the page; under an inset canvas the scroller is shorter than the viewport"
211
211
  },
212
212
  {
213
213
  "name": "native attributes",
package/docs/page.md CHANGED
@@ -49,7 +49,7 @@ Excerpt — not a complete module
49
49
  | `slPage on any element` | `directive` | — | the consumer’s own element | main keeps its native landmark; an article or a div gets role="main" unless landmark="none". The scroll part is the component’s, because it is the scroller |
50
50
  | `exportAs slPage` | `SlPage` | — | a template reference | The resolved width, inset, scroll and ground as signals, which the header and the footer inject |
51
51
  | `providePageDefaults()` | `{ width, inset, scroll, ground, landmark }` | — | an injector | The five decisions an application takes once. A page that states any of them itself still wins |
52
- | `--slotted-page-sticky-top, --slotted-page-sticky-bottom` | `runtime properties on the scroller` | — | every family under the page, and the consumer’s own sticky elements inside it | The height of the chrome that stays at the top, written by the header, and of the footer, written by the page. A section’s sticky header reads the first; a table with stickyTo="page" reads both through the bridge the page writes on its root. A consumer’s own position: sticky element reads the first as well: inset-block-start: calc(var(--slotted-page-sticky-top, 0px) + gap) stops it under the chrome instead of behind the stuck header, and max-block-size: calc(100dvh - var(--slotted-page-sticky-top, 0px) - gap) bounds one that may be taller than the viewport |
52
+ | `--slotted-page-sticky-top, --slotted-page-sticky-bottom, --slotted-page-scrollport-block-size` | `runtime properties on the scroller` | — | every family under the page, and the consumer’s own sticky elements inside it | The height of the chrome that stays at the top, written by the header, of the footer, and of the scroller itself, written by the page. A section’s sticky header reads the first; a table with stickyTo="page" reads both through the bridge the page writes on its root. A consumer’s own position: sticky element reads the first as well: inset-block-start: calc(var(--slotted-page-sticky-top, 0px) + gap) stops it under the chrome instead of behind the stuck header, and max-block-size: calc(var(--slotted-page-scrollport-block-size, 100dvh) - var(--slotted-page-sticky-top, 0px) - var(--slotted-page-sticky-bottom, 0px) - 2 * gap) bounds one that may be taller than the scroller. The third is the scroller’s visible height, written by the page; under an inset canvas the scroller is shorter than the viewport |
53
53
  | `native attributes` | `on every part` | — | every part | Every directive sits on the consumer’s own element, so id, class, role and every listener stay where they were written; role and aria-label are read with HostAttributeToken before anything is written over them |
54
54
 
55
55
  ## Axes and defaults
@@ -75,6 +75,7 @@
75
75
  "footer",
76
76
  "action",
77
77
  "attach",
78
+ "dictate",
78
79
  "submit",
79
80
  "ring",
80
81
  "glow"
@@ -84,7 +85,7 @@
84
85
  "docs": {
85
86
  "promptComposer": {
86
87
  "imports": {
87
- "source": "import {\n providePromptComposerDefaults,\n SlPromptComposer,\n SlPromptComposerAction,\n SlPromptComposerAttach,\n SlPromptComposerFooter,\n SlPromptComposerHeader,\n SlPromptComposerInput,\n SlPromptComposerSubmit,\n} from '@slotted/angular/prompt-composer';",
88
+ "source": "import {\n providePromptComposerDefaults,\n SlPromptComposer,\n SlPromptComposerAction,\n SlPromptComposerAttach,\n SlPromptComposerDictate,\n SlPromptComposerFooter,\n SlPromptComposerHeader,\n SlPromptComposerInput,\n SlPromptComposerSubmit,\n} from '@slotted/angular/prompt-composer';",
88
89
  "selector": "form[slPromptComposer]",
89
90
  "exportAs": "slPromptComposer"
90
91
  },
@@ -125,6 +126,12 @@
125
126
  "required": false,
126
127
  "purpose": "Opens the file chooser with the composer’s accept and multiple, and hands the choice to (attach) with reason \"pointer\"."
127
128
  },
129
+ {
130
+ "part": "dictate",
131
+ "element": "button[slPromptComposerDictate]",
132
+ "required": false,
133
+ "purpose": "The microphone: dictation through the platform’s SpeechRecognition, in the lang input or the nearest lang attribute. Each final phrase is written at the end of the value through (valueChange) with reason \"dictation\"; the button is aria-pressed while the engine listens, a second press stops it, and “Listening” is announced as it starts. Without a recognition engine the button is hidden."
134
+ },
128
135
  {
129
136
  "part": "submit",
130
137
  "element": "button[slPromptComposerSubmit]",
@@ -306,7 +313,7 @@
306
313
  {
307
314
  "name": "(valueChange)",
308
315
  "payload": "ChangeRequest<string>",
309
- "when": "On slPromptComposerInput, before the value moves: reason \"keyboard\" for an edit, \"submit\" for the clearing after an accepted send. cancel() refuses the move."
316
+ "when": "On slPromptComposerInput, before the value moves: reason \"keyboard\" for an edit, \"dictation\" for a phrase slPromptComposerDictate wrote, \"submit\" for the clearing after an accepted send. cancel() refuses the move."
310
317
  },
311
318
  {
312
319
  "name": "(valueSubmit)",
@@ -11,6 +11,7 @@ import {
11
11
  SlPromptComposer,
12
12
  SlPromptComposerAction,
13
13
  SlPromptComposerAttach,
14
+ SlPromptComposerDictate,
14
15
  SlPromptComposerFooter,
15
16
  SlPromptComposerHeader,
16
17
  SlPromptComposerInput,
@@ -48,6 +49,7 @@ Excerpt — not a complete module
48
49
  | `footer` | any element carrying slPromptComposerFooter | no |
49
50
  | `action` | button[slPromptComposerAction] | no |
50
51
  | `attach` | button[slPromptComposerAttach] | no |
52
+ | `dictate` | button[slPromptComposerDictate] | no |
51
53
  | `submit` | button[slPromptComposerSubmit] | no |
52
54
  | `ring` | span, aria-hidden | no |
53
55
  | `glow` | span, aria-hidden | no |
@@ -83,7 +85,7 @@ Excerpt — not a complete module
83
85
 
84
86
  | Name | Payload | When |
85
87
  | --- | --- | --- |
86
- | `(valueChange)` | `ChangeRequest<string>` | On slPromptComposerInput, before the value moves: reason "keyboard" for an edit, "submit" for the clearing after an accepted send. cancel() refuses the move. |
88
+ | `(valueChange)` | `ChangeRequest<string>` | On slPromptComposerInput, before the value moves: reason "keyboard" for an edit, "dictation" for a phrase slPromptComposerDictate wrote, "submit" for the clearing after an accepted send. cancel() refuses the move. |
87
89
  | `(valueSubmit)` | `ChangeRequest<string>` | On slPromptComposer, before the message is sent from Enter, Mod+Enter or the send — reason "keyboard" or "pointer". cancel() keeps the value; otherwise it is cleared. |
88
90
  | `(stop)` | `PromptComposerStopEvent — { reason, source }` | The stop button, while status is "streaming". “Stopped” is announced. |
89
91
  | `(attach)` | `PromptComposerAttachEvent — { files, reason, rejected, source }` | Files from the paperclip ("pointer"), a paste ("paste") or a drop ("drop"), after accept, maxSize, maxFiles and multiple. |
@@ -41,7 +41,9 @@ topics.
41
41
  1. `../../guidelines/index.md`.
42
42
  2. `../../guidelines/composition.md`, always.
43
43
  3. The topic of step 2. Add `layout-alignment.md` and `shell-composition.md`
44
- when the screen places controls in a row or in the application frame.
44
+ when the screen places controls in a row, makes an element of its own
45
+ `position: sticky` (a summary or a preview beside a form or a list), or
46
+ works in the application frame.
45
47
  4. Add `errors-and-conflicts.md` and `reading-permissions.md` when the screen
46
48
  writes data or reads under a role.
47
49
  5. When the screen writes an element of its own, follow
@@ -74,6 +76,10 @@ element stands in that slot.
74
76
  useDeferredValue or startTransition) (CP-09). A list longer than a hundred
75
77
  rows is a `data-grid`, which windows its rows where it has a height of its
76
78
  own and is served in pages below 600 pixels (LP-12, LP-14). Its columns, its disabled keys and a function row key are module constants or memoised: a new one on a render of the screen renders every mounted row again. Its renderers, its messages and its tree may be written inline.
79
+ - An element of the screen's own made `position: sticky` stops under the
80
+ page's chrome: its offset starts at `--slotted-page-sticky-top`, and its
81
+ height cap subtracts it (LA-06). An offset from the scroller's edge alone
82
+ sticks it behind the stuck header.
77
83
  - Where no anatomy answers the problem, the screen writes an element of its
78
84
  own instead of bending a family into a shape it does not have (CP-04). That
79
85
  element is built with `../../skills/build-own-element/SKILL.md`.
@@ -101,3 +107,6 @@ Every region filled by a request and every control that starts one follow
101
107
  against the task, and the reason is written beside it.
102
108
  6. At 360 pixels with a coarse pointer, the header's actions and the footer's
103
109
  actions each occupy one row (LA-03, LA-07).
110
+ 7. Each element of the screen's own made sticky: scroll until the page header
111
+ sticks, at two positions; its top stands at or below the header's title
112
+ area (LA-06 Check).
@@ -32,26 +32,28 @@ A review answers one question per rule read: does the screen pass the rule's
32
32
 
33
33
  Each search below finds a defect without running the screen.
34
34
 
35
- | Search the screen's files for | Defect | Rule |
36
- | ------------------------------------------------------------------------------------------------------------------------------------------------------------ | --------------------------------------------------------- | ------------ |
37
- | A colour literal (hex, rgb, hsl, oklch), a length in pixels or rem other than zero, or a font size, in the screen's CSS | a value the theme has a token for | CP-05, OE-01 |
38
- | A rule of the application's CSS that sets colour, border, radius, padding or type on a family's `data-ui` or `data-part` | the screen restyles a family instead of setting its axes | OE-08 |
39
- | A control that starts a request and is not in its `loading` state until the answer, except a Refresh of the whole page | a control that fires twice | AF-03 |
40
- | A Refresh of the whole page drawing a spinner on its button, or a refetch of data on screen with no `page-header` progress bar | a wait in the wrong place, and no wait shown for the page | AF-07 |
41
- | An empty state drawn from the initial value of the data, before the first answer | a wait shown as nothing | AF-01 |
42
- | A spinner standing in a region that has no items yet | placeholders missing | AF-02 |
43
- | Siblings of the page's own spaced by margins, or text with a font size of its own | layout outside the primitives | CP-02 |
44
- | A grid or flex track around a family that scrolls, with no zero minimum | the page scrolls, not the family | CP-03 |
45
- | A badge, a tag or a colour beside a family that already draws the same state | a state stated twice | CP-06 |
46
- | An element of the screen's own that takes focus with no ring in its `focus-visible` state | focus not drawn | OE-03 |
47
- | A `data-grid` or `table` with no `variant` on a page whose `width` is not `bleed` | a grid with no frame on the page's surface | LP-15 |
48
- | A list page's `page-header` with a heading and no subheading, no figures and no solid primary action | a header that does not say what the list covers | LP-16 |
49
- | A grid whose column state unpins its `actions` column | the row's actions leave the frame | LP-17 |
50
- | A row of `stat-card`s where a label has more than three words, or one card has a comparison the others lack | a row of cards with no shared structure | OV-06 |
51
- | Two destinations of the navigation whose `page`s state different `width`s | the column's edges move between destinations | CP-10 |
52
- | A write whose success handler refreshes only the region of the control that wrote | figures elsewhere stay stale after the write | AF-08 |
53
- | Two or more actions in a `page-header`'s `actions` outside a `toolbar` that folds into its menu, or toolbar items with no counterpart beside the primary one | a header whose actions wrap on a phone | LA-03 |
54
- | A footer `action-bar` of three or more actions with no overflow control, or a secondary action with no counterpart | a footer that stacks into a column on a phone | LA-07 |
35
+ | Search the screen's files for | Defect | Rule |
36
+ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | --------------------------------------------------------- | ------------ |
37
+ | A colour literal (hex, rgb, hsl, oklch), a length in pixels or rem other than zero, or a font size, in the screen's CSS | a value the theme has a token for | CP-05, OE-01 |
38
+ | A rule of the application's CSS that sets colour, border, radius, padding or type on a family's `data-ui` or `data-part` | the screen restyles a family instead of setting its axes | OE-08 |
39
+ | A control that starts a request and is not in its `loading` state until the answer, except a Refresh of the whole page | a control that fires twice | AF-03 |
40
+ | A Refresh of the whole page drawing a spinner on its button, or a refetch of data on screen with no `page-header` progress bar | a wait in the wrong place, and no wait shown for the page | AF-07 |
41
+ | An empty state drawn from the initial value of the data, before the first answer | a wait shown as nothing | AF-01 |
42
+ | A spinner standing in a region that has no items yet | placeholders missing | AF-02 |
43
+ | Siblings of the page's own spaced by margins, or text with a font size of its own | layout outside the primitives | CP-02 |
44
+ | A grid or flex track around a family that scrolls, with no zero minimum | the page scrolls, not the family | CP-03 |
45
+ | A badge, a tag or a colour beside a family that already draws the same state | a state stated twice | CP-06 |
46
+ | An element of the screen's own that takes focus with no ring in its `focus-visible` state | focus not drawn | OE-03 |
47
+ | A `data-grid` or `table` with no `variant` on a page whose `width` is not `bleed` | a grid with no frame on the page's surface | LP-15 |
48
+ | A list page's `page-header` with a heading and no subheading, no figures and no solid primary action | a header that does not say what the list covers | LP-16 |
49
+ | A grid whose column state unpins its `actions` column | the row's actions leave the frame | LP-17 |
50
+ | A row of `stat-card`s where a label has more than three words, or one card has a comparison the others lack | a row of cards with no shared structure | OV-06 |
51
+ | A `stat-card` without the `plain` `fill`, or a `chart` with the `card` `variant`, inside a widget of the `dashboard-grid`, a `section` with the `surface` `ground` or a `card` | a frame inside a frame | OV-08 |
52
+ | A menu, a toggle or a state of the application's own that hides, orders or resizes the blocks of an overview | an arranged overview built outside `dashboard-grid` | OV-07 |
53
+ | Two destinations of the navigation whose `page`s state different `width`s | the column's edges move between destinations | CP-10 |
54
+ | A write whose success handler refreshes only the region of the control that wrote | figures elsewhere stay stale after the write | AF-08 |
55
+ | Two or more actions in a `page-header`'s `actions` outside a `toolbar` that folds into its menu, or toolbar items with no counterpart beside the primary one | a header whose actions wrap on a phone | LA-03 |
56
+ | A footer `action-bar` of three or more actions with no overflow control, or a secondary action with no counterpart | a footer that stacks into a column on a phone | LA-07 |
55
57
 
56
58
  A rule whose `Check` needs the screen running — a size class, a throttled
57
59
  network, the accessibility tree — is run when the environment can run it, and
@@ -178,7 +178,7 @@
178
178
  "part": "trend",
179
179
  "element": "div",
180
180
  "required": false,
181
- "purpose": "Where a sparkline goes: beside the figure, or under it when stacked or under 220 pixels. Hands the sparkline the card’s tone and ground; a block placeholder while loading; hidden under forty pixels."
181
+ "purpose": "Where a sparkline goes: beside the figure, or under it when stacked or under 220 pixels. Hands the sparkline the card’s tone, ground and box, and draws a line smoothed and washed unless the application or the sparkline says otherwise; a block placeholder in the same box while loading; hidden under forty pixels."
182
182
  },
183
183
  {
184
184
  "part": "message",
@@ -307,7 +307,7 @@
307
307
  "type": "projected content",
308
308
  "defaultValue": "—",
309
309
  "appliesTo": "slStatCard",
310
- "description": "Takes an slSparkline and hands it the card’s tone through --slotted-sparkline-color and its ground for the marker’s ring; a tone or series on the sparkline still wins"
310
+ "description": "Takes an slSparkline and hands it the card’s tone through --slotted-sparkline-color, its ground for the marker’s ring, and curve=\"monotone\" with area unless the sparkline defaults or the sparkline state otherwise; a tone or series on the sparkline still wins"
311
311
  },
312
312
  {
313
313
  "name": "aria-label, aria-labelledby, id",
@@ -416,6 +416,9 @@
416
416
  "--slotted-stat-card-region-gap-sm",
417
417
  "--slotted-stat-card-shadow",
418
418
  "--slotted-stat-card-shadow-elevated",
419
+ "--slotted-stat-card-trend-block-size",
420
+ "--slotted-stat-card-trend-block-size-lg",
421
+ "--slotted-stat-card-trend-block-size-sm",
419
422
  "--slotted-stat-card-trend-gap",
420
423
  "--slotted-stat-card-trend-gap-lg",
421
424
  "--slotted-stat-card-trend-gap-sm",
@@ -484,7 +487,7 @@
484
487
  {
485
488
  "id": "layout",
486
489
  "title": "The trend beside the figure, or under it",
487
- "note": "inline puts the sparkline in a column beside the value, centred on the figure; stacked gives it the full width on the last row, level with the bottom of every card in the row. Under 220 pixels a card stacks on its own and drops the value one step.",
490
+ "note": "inline puts the sparkline in a column beside the value, as tall as the figure; stacked runs it to the card’s edges on the last row, level with the bottom of every card in the row. Under 220 pixels a card stacks on its own and drops the value one step.",
488
491
  "language": "html",
489
492
  "source": "<div slStatCard layout=\"inline\">…</div>\n<div slStatCard layout=\"stacked\">…</div>\n",
490
493
  "verdict": "excerpt"
@@ -492,7 +495,7 @@
492
495
  {
493
496
  "id": "loading",
494
497
  "title": "The layout is kept while the value is on its way",
495
- "note": "Every text part stands in with a placeholder of its own line height and the trend with a block the sparkline’s height, so nothing moves when the numbers arrive; the previous value is not shown as if it were current.",
498
+ "note": "Every text part stands in with a placeholder of its own line height and the trend with a block in the trend’s own box, so nothing moves when the numbers arrive; the previous value is not shown as if it were current.",
496
499
  "language": "html",
497
500
  "source": "<div slStatCard [loading]=\"pending()\">\n <div slStatCardHeader><span slStatCardLabel>Open orders</span></div>\n <div slStatCardFigure>\n <span slStatCardValue [value]=\"orders().total\"></span>\n <span slStatCardDelta [value]=\"orders().delta\"></span>\n </div>\n <div slStatCardTrend><span slSparkline [data]=\"orders().series\"></span></div>\n</div>\n",
498
501
  "verdict": "excerpt"
package/docs/stat-card.md CHANGED
@@ -82,7 +82,7 @@ Excerpt — not a complete module
82
82
  | `projected content` | `ng-content` | — | slStatCardValue, slStatCardDelta | Your own rendering after the formatted number: a unit, or the whole text when value is unset |
83
83
  | `[slStatCard…]` | `attribute selectors` | — | your elements | Every part is a directive on the element you wrote: a heading for the label, an anchor for the action, a p for the comparison |
84
84
  | `exportAs` | `template reference` | — | slStatCard, slStatCardValue, slStatCardDelta, slStatCardTrend, … | Reaches the instance: the derived tone, the trend, the formatted text |
85
- | `slStatCardTrend` | `projected content` | — | slStatCard | Takes an slSparkline and hands it the card’s tone through --slotted-sparkline-color and its ground for the marker’s ring; a tone or series on the sparkline still wins |
85
+ | `slStatCardTrend` | `projected content` | — | slStatCard | Takes an slSparkline and hands it the card’s tone through --slotted-sparkline-color, its ground for the marker’s ring, and curve="monotone" with area unless the sparkline defaults or the sparkline state otherwise; a tone or series on the sparkline still wins |
86
86
  | `aria-label, aria-labelledby, id` | `attributes` | — | your elements | A name or an id you wrote on the host or on the label wins over the generated one |
87
87
  | `trendOf, toneOf` | `function` | — | Application | The two derivations, exported for a delta you format yourself |
88
88
  | `provideStatCardDefaults` | `StatCardDefaults` | — | Application | Sets goodWhen, size, fill, layout and formatOptions once, in a route or the application config; an input still wins |
@@ -110,7 +110,7 @@ Excerpt — not a complete module
110
110
 
111
111
  ## Tokens
112
112
 
113
- `--slotted-border-subtle`, `--slotted-border-width-thin`, `--slotted-control-icon-size-md`, `--slotted-control-icon-size-sm`, `--slotted-font-family-sans`, `--slotted-font-size-2xl`, `--slotted-font-size-3xl`, `--slotted-font-size-4xl`, `--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-letter-spacing-tighter`, `--slotted-line-height-2xl`, `--slotted-line-height-3xl`, `--slotted-line-height-4xl`, `--slotted-line-height-md`, `--slotted-line-height-sm`, `--slotted-line-height-xl`, `--slotted-line-height-xs`, `--slotted-radius-lg`, `--slotted-radius-none`, `--slotted-shadow-md`, `--slotted-space-1`, `--slotted-space-11`, `--slotted-space-12`, `--slotted-space-2`, `--slotted-space-3`, `--slotted-space-4`, `--slotted-space-5`, `--slotted-space-6`, `--slotted-space-7`, `--slotted-space-8`, `--slotted-space-9`, `--slotted-sparkline-block-size`, `--slotted-sparkline-block-size-lg`, `--slotted-sparkline-block-size-sm`, `--slotted-stat-card-background`, `--slotted-stat-card-background-subtle`, `--slotted-stat-card-border-color`, `--slotted-stat-card-border-width`, `--slotted-stat-card-color`, `--slotted-stat-card-color-muted`, `--slotted-stat-card-delta-font-size`, `--slotted-stat-card-delta-font-size-lg`, `--slotted-stat-card-delta-font-size-sm`, `--slotted-stat-card-indicator-size`, `--slotted-stat-card-indicator-size-lg`, `--slotted-stat-card-label-font-size`, `--slotted-stat-card-label-font-size-lg`, `--slotted-stat-card-label-font-size-sm`, `--slotted-stat-card-label-line-height`, `--slotted-stat-card-label-line-height-lg`, `--slotted-stat-card-label-line-height-sm`, `--slotted-stat-card-min-inline-size`, `--slotted-stat-card-padding-block`, `--slotted-stat-card-padding-block-lg`, `--slotted-stat-card-padding-block-sm`, `--slotted-stat-card-padding-inline`, `--slotted-stat-card-padding-inline-lg`, `--slotted-stat-card-padding-inline-sm`, `--slotted-stat-card-prose-font-size`, `--slotted-stat-card-prose-font-size-lg`, `--slotted-stat-card-prose-line-height`, `--slotted-stat-card-prose-line-height-lg`, `--slotted-stat-card-radius`, `--slotted-stat-card-region-gap`, `--slotted-stat-card-region-gap-lg`, `--slotted-stat-card-region-gap-sm`, `--slotted-stat-card-shadow`, `--slotted-stat-card-shadow-elevated`, `--slotted-stat-card-trend-gap`, `--slotted-stat-card-trend-gap-lg`, `--slotted-stat-card-trend-gap-sm`, `--slotted-stat-card-trend-inline-size`, `--slotted-stat-card-trend-inline-size-lg`, `--slotted-stat-card-trend-inline-size-sm`, `--slotted-stat-card-value-font-size`, `--slotted-stat-card-value-font-size-lg`, `--slotted-stat-card-value-font-size-sm`, `--slotted-stat-card-value-line-height`, `--slotted-stat-card-value-line-height-lg`, `--slotted-stat-card-value-line-height-sm`, `--slotted-surface-raised`, `--slotted-surface-sunken`, `--slotted-target-comfortable`, `--slotted-text`, `--slotted-text-muted`, `--slotted-tone-accent-text`, `--slotted-tone-danger-text`, `--slotted-tone-info-text`, `--slotted-tone-secondary-text`, `--slotted-tone-success-text`, `--slotted-tone-warning-text`
113
+ `--slotted-border-subtle`, `--slotted-border-width-thin`, `--slotted-control-icon-size-md`, `--slotted-control-icon-size-sm`, `--slotted-font-family-sans`, `--slotted-font-size-2xl`, `--slotted-font-size-3xl`, `--slotted-font-size-4xl`, `--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-letter-spacing-tighter`, `--slotted-line-height-2xl`, `--slotted-line-height-3xl`, `--slotted-line-height-4xl`, `--slotted-line-height-md`, `--slotted-line-height-sm`, `--slotted-line-height-xl`, `--slotted-line-height-xs`, `--slotted-radius-lg`, `--slotted-radius-none`, `--slotted-shadow-md`, `--slotted-space-1`, `--slotted-space-11`, `--slotted-space-12`, `--slotted-space-2`, `--slotted-space-3`, `--slotted-space-4`, `--slotted-space-5`, `--slotted-space-6`, `--slotted-space-7`, `--slotted-space-8`, `--slotted-space-9`, `--slotted-sparkline-block-size`, `--slotted-sparkline-block-size-lg`, `--slotted-sparkline-block-size-sm`, `--slotted-stat-card-background`, `--slotted-stat-card-background-subtle`, `--slotted-stat-card-border-color`, `--slotted-stat-card-border-width`, `--slotted-stat-card-color`, `--slotted-stat-card-color-muted`, `--slotted-stat-card-delta-font-size`, `--slotted-stat-card-delta-font-size-lg`, `--slotted-stat-card-delta-font-size-sm`, `--slotted-stat-card-indicator-size`, `--slotted-stat-card-indicator-size-lg`, `--slotted-stat-card-label-font-size`, `--slotted-stat-card-label-font-size-lg`, `--slotted-stat-card-label-font-size-sm`, `--slotted-stat-card-label-line-height`, `--slotted-stat-card-label-line-height-lg`, `--slotted-stat-card-label-line-height-sm`, `--slotted-stat-card-min-inline-size`, `--slotted-stat-card-padding-block`, `--slotted-stat-card-padding-block-lg`, `--slotted-stat-card-padding-block-sm`, `--slotted-stat-card-padding-inline`, `--slotted-stat-card-padding-inline-lg`, `--slotted-stat-card-padding-inline-sm`, `--slotted-stat-card-prose-font-size`, `--slotted-stat-card-prose-font-size-lg`, `--slotted-stat-card-prose-line-height`, `--slotted-stat-card-prose-line-height-lg`, `--slotted-stat-card-radius`, `--slotted-stat-card-region-gap`, `--slotted-stat-card-region-gap-lg`, `--slotted-stat-card-region-gap-sm`, `--slotted-stat-card-shadow`, `--slotted-stat-card-shadow-elevated`, `--slotted-stat-card-trend-block-size`, `--slotted-stat-card-trend-block-size-lg`, `--slotted-stat-card-trend-block-size-sm`, `--slotted-stat-card-trend-gap`, `--slotted-stat-card-trend-gap-lg`, `--slotted-stat-card-trend-gap-sm`, `--slotted-stat-card-trend-inline-size`, `--slotted-stat-card-trend-inline-size-lg`, `--slotted-stat-card-trend-inline-size-sm`, `--slotted-stat-card-value-font-size`, `--slotted-stat-card-value-font-size-lg`, `--slotted-stat-card-value-font-size-sm`, `--slotted-stat-card-value-line-height`, `--slotted-stat-card-value-line-height-lg`, `--slotted-stat-card-value-line-height-sm`, `--slotted-surface-raised`, `--slotted-surface-sunken`, `--slotted-target-comfortable`, `--slotted-text`, `--slotted-text-muted`, `--slotted-tone-accent-text`, `--slotted-tone-danger-text`, `--slotted-tone-info-text`, `--slotted-tone-secondary-text`, `--slotted-tone-success-text`, `--slotted-tone-warning-text`
114
114
 
115
115
  ## Examples
116
116
 
@@ -183,7 +183,7 @@ Excerpt — not a complete module
183
183
 
184
184
  ### The trend beside the figure, or under it
185
185
 
186
- inline puts the sparkline in a column beside the value, centred on the figure; stacked gives it the full width on the last row, level with the bottom of every card in the row. Under 220 pixels a card stacks on its own and drops the value one step.
186
+ inline puts the sparkline in a column beside the value, as tall as the figure; stacked runs it to the card’s edges on the last row, level with the bottom of every card in the row. Under 220 pixels a card stacks on its own and drops the value one step.
187
187
 
188
188
  Excerpt — not a complete module
189
189
 
@@ -194,7 +194,7 @@ Excerpt — not a complete module
194
194
 
195
195
  ### The layout is kept while the value is on its way
196
196
 
197
- Every text part stands in with a placeholder of its own line height and the trend with a block the sparkline’s height, so nothing moves when the numbers arrive; the previous value is not shown as if it were current.
197
+ Every text part stands in with a placeholder of its own line height and the trend with a block in the trend’s own box, so nothing moves when the numbers arrive; the previous value is not shown as if it were current.
198
198
 
199
199
  Excerpt — not a complete module
200
200
 
@@ -290,7 +290,7 @@ class SlAttachmentPreview {
290
290
  ...(ngDevMode ? [{ debugName: "extension" }] : /* istanbul ignore next */ []));
291
291
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlAttachmentPreview, deps: [], target: i0.ɵɵFactoryTarget.Component });
292
292
  static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.7", type: SlAttachmentPreview, isStandalone: true, selector: "[slAttachmentPreview]", inputs: { src: { classPropertyName: "src", publicName: "src", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "aria-hidden": "true", "data-part": "preview", "data-part-preview": "" }, properties: { "attr.data-kind": "owner.kind()", "attr.data-extension": "extension()" } }, exportAs: ["slAttachmentPreview"], ngImport: i0, template: `@if (picture()) {
293
- <img alt="" [src]="src()" (error)="failed.set(src())" />
293
+ <img alt="" decoding="async" loading="lazy" [src]="src()" (error)="failed.set(src())" />
294
294
  } @else {
295
295
  <span slIcon><svg slGlyph [name]="glyph()"></svg></span>
296
296
  }`, isInline: true, dependencies: [{ kind: "component", type: SlGlyph, selector: "svg[slGlyph]", inputs: ["name", "solid"] }, { kind: "component", type: SlIcon, selector: "[slIcon]", inputs: ["directional", "label", "size", "tone"], exportAs: ["slIcon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
@@ -303,7 +303,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImpor
303
303
  exportAs: 'slAttachmentPreview',
304
304
  imports: [SlGlyph, SlIcon],
305
305
  template: `@if (picture()) {
306
- <img alt="" [src]="src()" (error)="failed.set(src())" />
306
+ <img alt="" decoding="async" loading="lazy" [src]="src()" (error)="failed.set(src())" />
307
307
  } @else {
308
308
  <span slIcon><svg slGlyph [name]="glyph()"></svg></span>
309
309
  }`,
@@ -1 +1 @@
1
- {"version":3,"file":"slotted-angular-attachment.mjs","sources":["../../attachment/src/attachment-defaults.ts","../../attachment/src/attachment.ts","../../attachment/src/attachment-parts.ts","../../attachment/src/slotted-angular-attachment.ts"],"sourcesContent":["import { inject, InjectionToken } from '@angular/core';\nimport type { GlyphName } from '@slotted/core/glyph';\nimport type { ChangeReason } from '@slotted/core/state';\nimport type { FileKind } from '@slotted/core/upload';\n\nexport type AttachmentSize = 'sm' | 'md' | 'lg';\nexport type AttachmentOrientation = 'horizontal' | 'vertical';\nexport type AttachmentLayout = 'list' | 'grid' | 'strip';\n\n/**\n * What the family needs to know about a file, and a `File` already is one. A\n * record from a server needs only the name: the kind is read from the media\n * type when there is one and from the extension when there is not.\n */\nexport interface AttachmentFile {\n readonly name: string;\n readonly type?: string | undefined;\n readonly size?: number | undefined;\n}\n\n/** How the removal was asked for: the remove control, or `Backspace` / `Delete`. */\nexport type AttachmentRemoveReason = Extract<ChangeReason, 'remove' | 'keyboard'>;\n\n/** A request to leave the consumer's list. It carries no value; nothing is committed. */\nexport interface AttachmentRemoveRequest {\n readonly reason: AttachmentRemoveReason;\n readonly file: AttachmentFile;\n readonly source: Event;\n}\n\nexport interface AttachmentDefaults {\n layout: AttachmentLayout;\n orientation: AttachmentOrientation;\n size: AttachmentSize;\n}\n\nconst FALLBACK: AttachmentDefaults = {\n layout: 'list',\n orientation: 'horizontal',\n size: 'md',\n};\n\nexport const ATTACHMENT_DEFAULTS = new InjectionToken<AttachmentDefaults>(\n 'slotted attachment defaults',\n { providedIn: 'root', factory: () => FALLBACK },\n);\n\n/**\n * An application decides once how large its attachments are and how a set of\n * them is arranged. A group or an attachment that states either still wins.\n * Their words and the locale that writes their sizes come from the language\n * in force (`provideSlotted`).\n */\nexport function provideAttachmentDefaults(defaults: Partial<AttachmentDefaults>) {\n return {\n provide: ATTACHMENT_DEFAULTS,\n useFactory: (): AttachmentDefaults => ({\n layout: defaults.layout ?? FALLBACK.layout,\n orientation: defaults.orientation ?? FALLBACK.orientation,\n size: defaults.size ?? FALLBACK.size,\n }),\n };\n}\n\nexport function injectAttachmentDefaults(): AttachmentDefaults {\n return inject(ATTACHMENT_DEFAULTS);\n}\n\n/**\n * The mark knocked out of each kind's tile — `upload`'s map, restated because\n * that one is private to `upload`. The contract test reads both contracts'\n * `kinds` and refuses a drift.\n */\nexport const ATTACHMENT_KIND_GLYPH: Readonly<Record<FileKind, GlyphName>> = {\n archive: 'file-archive',\n audio: 'file-audio',\n document: 'file-type',\n image: 'file-image',\n other: 'file',\n pdf: 'file-text',\n presentation: 'presentation',\n spreadsheet: 'file-spreadsheet',\n video: 'file-video',\n};\n\n/**\n * The controls `removal-focus` counts. An attachment in a set holds the same\n * controls as its neighbours, so the position focus had among them is the\n * position of the same control on the attachment that took its place. A\n * remove control of an attachment that is not removable is hidden, and is not\n * counted.\n */\nexport const ATTACHMENT_CONTROL_SELECTOR =\n '[data-part=\"trigger\"], [data-part=\"action\"], [data-part=\"remove\"]:not([hidden])';\n","import {\n booleanAttribute,\n ChangeDetectionStrategy,\n Component,\n computed,\n DestroyRef,\n Directive,\n ElementRef,\n HostAttributeToken,\n inject,\n input,\n output,\n signal,\n ViewEncapsulation,\n} from '@angular/core';\nimport { injectLocale, injectMessages } from '@slotted/angular/i18n';\nimport { createRemovalFocus } from '@slotted/core/focus';\nimport {\n attachmentMessages,\n type AttachmentMessages,\n type PartialMessages,\n} from '@slotted/core/i18n';\nimport { fileKind, splitName } from '@slotted/core/upload';\n\nimport { ATTACHMENT_CONTROL_SELECTOR, injectAttachmentDefaults } from './attachment-defaults';\nimport type {\n AttachmentFile,\n AttachmentLayout,\n AttachmentOrientation,\n AttachmentRemoveReason,\n AttachmentRemoveRequest,\n AttachmentSize,\n} from './attachment-defaults';\n\nlet nextId = 0;\n\n/**\n * A set of attachments on the `ul` the page wrote: a column, a wrapping grid\n * or one line that scrolls. It hands its size and orientation to every\n * attachment that does not state its own.\n *\n * It keeps the keyboard where it was when an attachment leaves: focus goes to\n * the control that took the removed one's place, then to the last one, then\n * to the list itself — which is why the list takes `tabindex=\"-1\"`.\n * `removal-focus` observes the DOM, so it is right however the consumer\n * removed the file.\n */\n@Directive({\n selector: '[slAttachmentGroup]',\n standalone: true,\n exportAs: 'slAttachmentGroup',\n host: {\n 'data-ui': 'attachment',\n 'data-ui-attachment': '',\n 'data-part': 'group',\n 'data-part-group': '',\n '[attr.data-layout]': 'resolvedLayout()',\n '[attr.data-size]': 'resolvedSize()',\n '[attr.data-orientation]': 'resolvedOrientation()',\n '[attr.tabindex]': 'tabindex',\n },\n})\nexport class SlAttachmentGroup {\n /** A column, a wrapping grid, or one line that scrolls. Falls back to the token. */\n readonly layout = input<AttachmentLayout | undefined>(undefined);\n /** Handed to every attachment that does not state its own. */\n readonly size = input<AttachmentSize | undefined>(undefined);\n /** Handed to every attachment that does not state its own. */\n readonly orientation = input<AttachmentOrientation | undefined>(undefined);\n\n private readonly defaults = injectAttachmentDefaults();\n /** A `tabindex` the page wrote is kept; otherwise the list takes focus only by script. */\n protected readonly tabindex =\n inject(new HostAttributeToken('tabindex'), { optional: true }) ?? '-1';\n\n readonly resolvedLayout = computed(() => this.layout() ?? this.defaults.layout);\n readonly resolvedSize = computed(() => this.size() ?? this.defaults.size);\n readonly resolvedOrientation = computed(() => this.orientation() ?? this.defaults.orientation);\n\n constructor() {\n const host = inject<ElementRef<HTMLElement>>(ElementRef).nativeElement;\n const removal = createRemovalFocus(host, { itemSelector: ATTACHMENT_CONTROL_SELECTOR });\n inject(DestroyRef).onDestroy(() => removal.destroy());\n }\n}\n\n/**\n * One file that already belongs to something — a message, a record, a tray —\n * on the `li` (inside `slAttachmentGroup`) or `div` (alone) the page wrote.\n * The parts inside read the file from here: the tile its kind, the trigger its\n * name, the detail its size.\n *\n * **Removal is a request.** `removable` draws `slAttachmentRemove` and makes\n * `Backspace` and `Delete` answer anywhere inside the attachment; `(remove)`\n * carries the reason and the file, and the list stays the page's. A held key\n * does not repeat the request.\n *\n * **The refusal runs first.** A click inside the trigger, or on a family\n * action written on an `a`, is refused here in the capture phase while the\n * attachment is loading or disabled: a directive's host listener and a\n * `(click)` the page wrote on the same element run in registration order, and\n * the page's was registered first — the ordering `list-item` found.\n */\n@Component({\n selector: '[slAttachment]',\n standalone: true,\n exportAs: 'slAttachment',\n template: '<ng-content></ng-content>',\n styleUrl: '../../../styles/src/attachment/attachment.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: {\n 'data-ui': 'attachment',\n 'data-ui-attachment': '',\n 'data-part': 'root',\n 'data-part-root': '',\n '[attr.data-kind]': 'kind()',\n '[attr.data-size]': 'resolvedSize()',\n '[attr.data-orientation]': 'resolvedOrientation()',\n '[attr.data-invalid]': \"invalid() ? '' : null\",\n '[attr.data-loading]': \"loading() ? '' : null\",\n '[attr.data-disabled]': \"disabled() ? '' : null\",\n '[attr.aria-busy]': \"loading() ? 'true' : null\",\n '(keydown)': 'handleKeydown($event)',\n },\n})\nexport class SlAttachment {\n /** The file: its name, and its media type and size when they are known. */\n readonly file = input.required<AttachmentFile>();\n /** The room the attachment gets. Falls back to the group, then the token, then `md`. */\n readonly size = input<AttachmentSize | undefined>(undefined);\n /** A row, or a card stood on end. Falls back to the group, then the token. */\n readonly orientation = input<AttachmentOrientation | undefined>(undefined);\n /** The file failed; painted from `data-invalid`, never `aria-invalid` on a list item. */\n readonly invalid = input(false, { transform: booleanAttribute });\n /** Still on its way: `aria-busy`, the trigger refused, remove still operable. */\n readonly loading = input(false, { transform: booleanAttribute });\n /** Cannot be reached: the trigger, every action and remove are refused. */\n readonly disabled = input(false, { transform: booleanAttribute });\n /** Draws `slAttachmentRemove` and lets `Backspace` and `Delete` ask for removal. */\n readonly removable = input(false, { transform: booleanAttribute });\n /**\n * Words laid over the catalog of the language in force, key by key: the\n * remove control's name (`remove`, with the file's `{name}`) and the tile's\n * word for a file without an extension.\n */\n readonly messages = input<PartialMessages<AttachmentMessages> | undefined>(undefined);\n\n /** Asks to be taken out of the list. Not emitted while disabled, nor for a repeated key. */\n readonly remove = output<AttachmentRemoveRequest>();\n\n private readonly defaults = injectAttachmentDefaults();\n private readonly group = inject(SlAttachmentGroup, { optional: true });\n\n readonly id = `sl-attachment-${nextId++}`;\n readonly ids = { detail: `${this.id}-detail`, message: `${this.id}-message` };\n /** The language in force, which writes the size the detail line shows. */\n readonly locale = injectLocale();\n /** The family's words in the language in force, with this attachment's `messages` laid over them. */\n readonly t = injectMessages(attachmentMessages, this.messages);\n\n readonly resolvedSize = computed(() => this.size() ?? this.group?.size() ?? this.defaults.size);\n readonly resolvedOrientation = computed(\n () => this.orientation() ?? this.group?.orientation() ?? this.defaults.orientation,\n );\n readonly kind = computed(() => {\n const file = this.file();\n return fileKind({ name: file.name, type: file.type ?? '' });\n });\n readonly split = computed(() => splitName(this.file().name));\n readonly blocked = computed(() => this.disabled() || this.loading());\n\n /**\n * The ids of the describing parts on the page, so the trigger names only\n * what exists — and the id each part actually carries, which is the page's\n * own when it wrote one.\n */\n readonly described = signal<{ detail: string | null; message: string | null }>({\n detail: null,\n message: null,\n });\n\n constructor() {\n const host = inject<ElementRef<HTMLElement>>(ElementRef).nativeElement;\n const refuse = (event: Event) => {\n const target = event.target as Element | null;\n const trigger = target?.closest('[data-part=\"trigger\"]') != null;\n const link = target?.closest('a[data-part=\"action\"]') != null;\n if (!(trigger && this.blocked()) && !(link && this.disabled())) return;\n event.preventDefault();\n event.stopImmediatePropagation();\n };\n host.addEventListener('click', refuse, { capture: true });\n inject(DestroyRef).onDestroy(() =>\n host.removeEventListener('click', refuse, { capture: true }),\n );\n }\n\n describe(part: 'detail' | 'message', id: string | null) {\n this.described.update((current) =>\n current[part] === id ? current : { ...current, [part]: id },\n );\n }\n\n request(reason: AttachmentRemoveReason, source: Event) {\n if (!this.removable() || this.disabled()) return;\n this.remove.emit({ reason, file: this.file(), source });\n }\n\n protected handleKeydown(event: KeyboardEvent) {\n if (event.defaultPrevented || event.repeat) return;\n if (event.key !== 'Backspace' && event.key !== 'Delete') return;\n if (!this.removable() || this.disabled()) return;\n /* A field the page put inside an attachment keeps its own editing keys. */\n const target = event.target as HTMLElement;\n if (target.isContentEditable || target.closest('input, textarea, select') !== null) return;\n event.preventDefault();\n this.request('keyboard', event);\n }\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n computed,\n DestroyRef,\n Directive,\n ElementRef,\n HostAttributeToken,\n inject,\n input,\n signal,\n ViewEncapsulation,\n} from '@angular/core';\nimport { SlGlyph, SlIcon } from '@slotted/angular/icon';\nimport { SlProgressBar } from '@slotted/angular/progress-indicator';\nimport { formatBytes } from '@slotted/core/upload';\n\nimport { SlAttachment } from './attachment';\nimport { ATTACHMENT_KIND_GLYPH } from './attachment-defaults';\n\nfunction attachment(): SlAttachment {\n const owner = inject(SlAttachment, { optional: true });\n if (owner === null) throw new Error('An attachment part is rendered outside slAttachment.');\n return owner;\n}\n\n/**\n * Registers a describing part with its attachment for as long as it exists,\n * under the id it carries: the page's own when it wrote one.\n */\nfunction describes(part: 'detail' | 'message') {\n const owner = attachment();\n const id = inject(new HostAttributeToken('id'), { optional: true }) ?? owner.ids[part];\n owner.describe(part, id);\n inject(DestroyRef).onDestroy(() => owner.describe(part, null));\n return { owner, id };\n}\n\n/**\n * The kind's tile with the kind's mark knocked out of it, or the thumbnail the\n * page gives. A thumbnail that fails to load returns to the tile: the failure\n * is this part's own state, not a state of the file. Hidden from assistive\n * technology, because the name already says what the file is.\n */\n@Component({\n selector: '[slAttachmentPreview]',\n standalone: true,\n exportAs: 'slAttachmentPreview',\n imports: [SlGlyph, SlIcon],\n template: `@if (picture()) {\n <img alt=\"\" [src]=\"src()\" (error)=\"failed.set(src())\" />\n } @else {\n <span slIcon><svg slGlyph [name]=\"glyph()\"></svg></span>\n }`,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: {\n 'aria-hidden': 'true',\n 'data-part': 'preview',\n 'data-part-preview': '',\n '[attr.data-kind]': 'owner.kind()',\n '[attr.data-extension]': 'extension()',\n },\n})\nexport class SlAttachmentPreview {\n /** A thumbnail. Absent, or failing to load, the kind's tile is drawn instead. */\n readonly src = input<string | undefined>(undefined);\n\n protected readonly owner = attachment();\n protected readonly failed = signal<string | undefined>(undefined);\n protected readonly picture = computed(() => {\n const src = this.src();\n return src !== undefined && src !== this.failed();\n });\n protected readonly glyph = computed(() => ATTACHMENT_KIND_GLYPH[this.owner.kind()]);\n protected readonly extension = computed(() => {\n const extension = this.owner.split().extension;\n return extension === '' ? this.owner.t('noExtension') : extension.slice(1).toUpperCase();\n });\n}\n\n/** The text column, and the one box in the attachment that may shrink. */\n@Directive({\n selector: '[slAttachmentBody]',\n standalone: true,\n exportAs: 'slAttachmentBody',\n host: { 'data-part': 'body', 'data-part-body': '' },\n})\nexport class SlAttachmentBody {}\n\n/**\n * The file name as two runs — the stem, which shrinks to an ellipsis, and the\n * extension, which does not — in the name's own direction. Content the page\n * projects replaces the two runs.\n */\n@Component({\n selector: '[slAttachmentFilename]',\n standalone: true,\n exportAs: 'slAttachmentFilename',\n template: `<ng-content\n ><span data-part=\"name\" data-part-name=\"\">{{ owner.split().stem }}</span>\n @if (owner.split().extension) {\n <span data-part=\"extension\" data-part-extension=\"\">{{ owner.split().extension }}</span>\n }\n </ng-content>`,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: {\n 'data-part': 'filename',\n 'data-part-filename': '',\n '[attr.dir]': 'dir',\n },\n})\nexport class SlAttachmentFilename {\n protected readonly owner = attachment();\n protected readonly dir = inject(new HostAttributeToken('dir'), { optional: true }) ?? 'auto';\n}\n\n/**\n * The file's target: `<a slAttachmentTrigger [href]>` for a file with an\n * address, so `href`, `download` and a modified click stay the platform's;\n * `<button slAttachmentTrigger>` for a viewer the page opens. Named by the\n * file, described by the detail and the message, and stretched over the whole\n * attachment. A `button` takes the native `disabled` while the file is loading\n * or unavailable; an `a` takes `aria-disabled` and keeps its destination, and\n * `slAttachment` refuses the activation.\n */\n@Component({\n selector: 'a[slAttachmentTrigger], button[slAttachmentTrigger]',\n standalone: true,\n exportAs: 'slAttachmentTrigger',\n imports: [SlAttachmentFilename],\n template: `<ng-content><span slAttachmentFilename></span></ng-content>`,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: {\n 'data-part': 'trigger',\n 'data-part-trigger': '',\n '[attr.title]': 'title ?? owner.file().name',\n '[attr.aria-describedby]': 'describedBy()',\n '[attr.disabled]': \"isButton && owner.blocked() ? '' : null\",\n '[attr.aria-disabled]': \"!isButton && owner.blocked() ? 'true' : null\",\n '[attr.type]': \"isButton ? (type ?? 'button') : null\",\n },\n})\nexport class SlAttachmentTrigger {\n protected readonly owner = attachment();\n protected readonly isButton =\n inject<ElementRef<HTMLElement>>(ElementRef).nativeElement.tagName === 'BUTTON';\n protected readonly title = inject(new HostAttributeToken('title'), { optional: true });\n protected readonly type = inject(new HostAttributeToken('type'), { optional: true });\n /** A description the page wrote comes first; the family's ids are joined to it. */\n private readonly written = inject(new HostAttributeToken('aria-describedby'), {\n optional: true,\n });\n\n protected readonly describedBy = computed(() => {\n const described = this.owner.described();\n const ids = [\n ...(this.written === null ? [] : [this.written]),\n ...(described.detail === null ? [] : [described.detail]),\n ...(described.message === null ? [] : [described.message]),\n ];\n return ids.length === 0 ? null : ids.join(' ');\n });\n}\n\n/**\n * The line under the name. With nothing projected it writes the size with\n * `formatBytes` in the language in force; anything the page writes replaces it.\n */\n@Component({\n selector: '[slAttachmentDetail]',\n standalone: true,\n exportAs: 'slAttachmentDetail',\n template: `<ng-content>{{ bytes() }}</ng-content>`,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: {\n 'data-part': 'detail',\n 'data-part-detail': '',\n '[attr.id]': 'wiring.id',\n },\n})\nexport class SlAttachmentDetail {\n protected readonly wiring = describes('detail');\n protected readonly owner = this.wiring.owner;\n protected readonly bytes = computed(() => {\n const size = this.owner.file().size;\n return size === undefined ? '' : formatBytes(size, this.owner.locale());\n });\n}\n\n/** Why the file failed, or anything longer than a line the page must say about it. */\n@Directive({\n selector: '[slAttachmentMessage]',\n standalone: true,\n exportAs: 'slAttachmentMessage',\n host: {\n 'data-part': 'message',\n 'data-part-message': '',\n '[attr.id]': 'wiring.id',\n },\n})\nexport class SlAttachmentMessage {\n protected readonly wiring = describes('message');\n}\n\n/**\n * The transfer, as the attachment's bottom edge: `slProgressBar`, named by the\n * file so a reader hears the name and the percentage together. Without a\n * `value` the bar is indeterminate.\n */\n@Component({\n selector: '[slAttachmentProgress]',\n standalone: true,\n exportAs: 'slAttachmentProgress',\n imports: [SlProgressBar],\n template: `<div\n slProgressBar\n hideLabel\n size=\"sm\"\n [label]=\"owner.file().name\"\n [tone]=\"owner.invalid() ? 'danger' : 'accent'\"\n [value]=\"value() ?? null\"\n ></div>`,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: { 'data-part': 'progress', 'data-part-progress': '' },\n})\nexport class SlAttachmentProgress {\n /** Per cent, 0 to 100. Absent, the bar is indeterminate. */\n readonly value = input<number | null | undefined>(undefined);\n\n protected readonly owner = attachment();\n}\n\n/**\n * The controls the application offers on the file, beside the trigger and\n * above its stretched target: interactive content may not nest inside `a` or\n * `button`.\n */\n@Directive({\n selector: '[slAttachmentActions]',\n standalone: true,\n exportAs: 'slAttachmentActions',\n host: { 'data-part': 'actions', 'data-part-actions': '' },\n})\nexport class SlAttachmentActions {}\n\n/**\n * One icon control of the application's own, on the `button` or the `a` the\n * page wrote — an `a` with `download` is a download. It needs an\n * `aria-label`. An unavailable attachment disables it: the native `disabled`\n * on a button, `aria-disabled` on a link, whose activation `slAttachment`\n * refuses.\n */\n@Directive({\n selector: 'button[slAttachmentAction], a[slAttachmentAction]',\n standalone: true,\n exportAs: 'slAttachmentAction',\n host: {\n 'data-part': 'action',\n 'data-part-action': '',\n '[attr.disabled]': \"isButton && owner.disabled() ? '' : null\",\n '[attr.aria-disabled]': \"!isButton && owner.disabled() ? 'true' : null\",\n '[attr.type]': \"isButton ? (type ?? 'button') : null\",\n },\n})\nexport class SlAttachmentAction {\n protected readonly owner = attachment();\n protected readonly isButton =\n inject<ElementRef<HTMLElement>>(ElementRef).nativeElement.tagName === 'BUTTON';\n protected readonly type = inject(new HostAttributeToken('type'), { optional: true });\n}\n\n/**\n * Asks to take the attachment out of its list, on the `button` the page\n * wrote. Hidden unless the attachment is `removable`, so a read-only thread\n * shows no control that does nothing. Its name is the word and the file,\n * `Remove claim-form.pdf`, unless the page wrote its own `aria-label`.\n */\n@Component({\n selector: 'button[slAttachmentRemove]',\n standalone: true,\n exportAs: 'slAttachmentRemove',\n imports: [SlGlyph, SlIcon],\n template: `<ng-content\n ><span slIcon><svg slGlyph name=\"x\"></svg></span\n ></ng-content>`,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: {\n 'data-part': 'remove',\n 'data-part-remove': '',\n type: 'button',\n '[attr.hidden]': \"owner.removable() ? null : ''\",\n '[attr.aria-label]': 'label()',\n '[attr.disabled]': \"owner.disabled() ? '' : null\",\n '(click)': 'owner.request(\"remove\", $event)',\n },\n})\nexport class SlAttachmentRemove {\n protected readonly owner = attachment();\n private readonly written = inject(new HostAttributeToken('aria-label'), { optional: true });\n protected readonly label = computed(\n () => this.written ?? this.owner.t('remove', { name: this.owner.file().name }),\n );\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;AAoCA,MAAM,QAAQ,GAAuB;AACnC,IAAA,MAAM,EAAE,MAAM;AACd,IAAA,WAAW,EAAE,YAAY;AACzB,IAAA,IAAI,EAAE,IAAI;CACX;MAEY,mBAAmB,GAAG,IAAI,cAAc,CACnD,6BAA6B,EAC7B,EAAE,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,QAAQ,EAAE;AAGjD;;;;;AAKG;AACG,SAAU,yBAAyB,CAAC,QAAqC,EAAA;IAC7E,OAAO;AACL,QAAA,OAAO,EAAE,mBAAmB;AAC5B,QAAA,UAAU,EAAE,OAA2B;AACrC,YAAA,MAAM,EAAE,QAAQ,CAAC,MAAM,IAAI,QAAQ,CAAC,MAAM;AAC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EAAA,WAAA,EAAA,IAAA,EAHL,OAAO,oFAAE,MAAM,EAAA,QAAA,EAAA,UAAA,EAAA,MAAA,EAAA,CAAA,aAAA,EAAA,OAAA,EAAA,MAAA,EAAA,MAAA,CAAA,EAAA,QAAA,EAAA,CAAA,QAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,aAAA,EAAA,EAAA,CAAA,iBAAA,CAAA,IAAA,EAAA,CAAA;;2FAgBd,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBApB9B,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,4BAA4B;AACtC,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,QAAQ,EAAE,oBAAoB;AAC9B,oBAAA,OAAO,EAAE,CAAC,OAAO,EAAE,MAAM,CAAC;AAC1B,oBAAA,QAAQ,EAAE,CAAA;;AAEK,gBAAA,CAAA;oBACf,eAAe,EAAE,uBAAuB,CAAC,MAAM;oBAC/C,aAAa,EAAE,iBAAiB,CAAC,IAAI;AACrC,oBAAA,IAAI,EAAE;AACJ,wBAAA,WAAW,EAAE,QAAQ;AACrB,wBAAA,kBAAkB,EAAE,EAAE;AACtB,wBAAA,IAAI,EAAE,QAAQ;AACd,wBAAA,eAAe,EAAE,+BAA+B;AAChD,wBAAA,mBAAmB,EAAE,SAAS;AAC9B,wBAAA,iBAAiB,EAAE,8BAA8B;AACjD,wBAAA,SAAS,EAAE,iCAAiC;AAC7C,qBAAA;AACF,iBAAA;;;AC7SD;;AAEG;;"}
1
+ {"version":3,"file":"slotted-angular-attachment.mjs","sources":["../../attachment/src/attachment-defaults.ts","../../attachment/src/attachment.ts","../../attachment/src/attachment-parts.ts","../../attachment/src/slotted-angular-attachment.ts"],"sourcesContent":["import { inject, InjectionToken } from '@angular/core';\nimport type { GlyphName } from '@slotted/core/glyph';\nimport type { ChangeReason } from '@slotted/core/state';\nimport type { FileKind } from '@slotted/core/upload';\n\nexport type AttachmentSize = 'sm' | 'md' | 'lg';\nexport type AttachmentOrientation = 'horizontal' | 'vertical';\nexport type AttachmentLayout = 'list' | 'grid' | 'strip';\n\n/**\n * What the family needs to know about a file, and a `File` already is one. A\n * record from a server needs only the name: the kind is read from the media\n * type when there is one and from the extension when there is not.\n */\nexport interface AttachmentFile {\n readonly name: string;\n readonly type?: string | undefined;\n readonly size?: number | undefined;\n}\n\n/** How the removal was asked for: the remove control, or `Backspace` / `Delete`. */\nexport type AttachmentRemoveReason = Extract<ChangeReason, 'remove' | 'keyboard'>;\n\n/** A request to leave the consumer's list. It carries no value; nothing is committed. */\nexport interface AttachmentRemoveRequest {\n readonly reason: AttachmentRemoveReason;\n readonly file: AttachmentFile;\n readonly source: Event;\n}\n\nexport interface AttachmentDefaults {\n layout: AttachmentLayout;\n orientation: AttachmentOrientation;\n size: AttachmentSize;\n}\n\nconst FALLBACK: AttachmentDefaults = {\n layout: 'list',\n orientation: 'horizontal',\n size: 'md',\n};\n\nexport const ATTACHMENT_DEFAULTS = new InjectionToken<AttachmentDefaults>(\n 'slotted attachment defaults',\n { providedIn: 'root', factory: () => FALLBACK },\n);\n\n/**\n * An application decides once how large its attachments are and how a set of\n * them is arranged. A group or an attachment that states either still wins.\n * Their words and the locale that writes their sizes come from the language\n * in force (`provideSlotted`).\n */\nexport function provideAttachmentDefaults(defaults: Partial<AttachmentDefaults>) {\n return {\n provide: ATTACHMENT_DEFAULTS,\n useFactory: (): AttachmentDefaults => ({\n layout: defaults.layout ?? FALLBACK.layout,\n orientation: defaults.orientation ?? FALLBACK.orientation,\n size: defaults.size ?? FALLBACK.size,\n }),\n };\n}\n\nexport function injectAttachmentDefaults(): AttachmentDefaults {\n return inject(ATTACHMENT_DEFAULTS);\n}\n\n/**\n * The mark knocked out of each kind's tile — `upload`'s map, restated because\n * that one is private to `upload`. The contract test reads both contracts'\n * `kinds` and refuses a drift.\n */\nexport const ATTACHMENT_KIND_GLYPH: Readonly<Record<FileKind, GlyphName>> = {\n archive: 'file-archive',\n audio: 'file-audio',\n document: 'file-type',\n image: 'file-image',\n other: 'file',\n pdf: 'file-text',\n presentation: 'presentation',\n spreadsheet: 'file-spreadsheet',\n video: 'file-video',\n};\n\n/**\n * The controls `removal-focus` counts. An attachment in a set holds the same\n * controls as its neighbours, so the position focus had among them is the\n * position of the same control on the attachment that took its place. A\n * remove control of an attachment that is not removable is hidden, and is not\n * counted.\n */\nexport const ATTACHMENT_CONTROL_SELECTOR =\n '[data-part=\"trigger\"], [data-part=\"action\"], [data-part=\"remove\"]:not([hidden])';\n","import {\n booleanAttribute,\n ChangeDetectionStrategy,\n Component,\n computed,\n DestroyRef,\n Directive,\n ElementRef,\n HostAttributeToken,\n inject,\n input,\n output,\n signal,\n ViewEncapsulation,\n} from '@angular/core';\nimport { injectLocale, injectMessages } from '@slotted/angular/i18n';\nimport { createRemovalFocus } from '@slotted/core/focus';\nimport {\n attachmentMessages,\n type AttachmentMessages,\n type PartialMessages,\n} from '@slotted/core/i18n';\nimport { fileKind, splitName } from '@slotted/core/upload';\n\nimport { ATTACHMENT_CONTROL_SELECTOR, injectAttachmentDefaults } from './attachment-defaults';\nimport type {\n AttachmentFile,\n AttachmentLayout,\n AttachmentOrientation,\n AttachmentRemoveReason,\n AttachmentRemoveRequest,\n AttachmentSize,\n} from './attachment-defaults';\n\nlet nextId = 0;\n\n/**\n * A set of attachments on the `ul` the page wrote: a column, a wrapping grid\n * or one line that scrolls. It hands its size and orientation to every\n * attachment that does not state its own.\n *\n * It keeps the keyboard where it was when an attachment leaves: focus goes to\n * the control that took the removed one's place, then to the last one, then\n * to the list itself — which is why the list takes `tabindex=\"-1\"`.\n * `removal-focus` observes the DOM, so it is right however the consumer\n * removed the file.\n */\n@Directive({\n selector: '[slAttachmentGroup]',\n standalone: true,\n exportAs: 'slAttachmentGroup',\n host: {\n 'data-ui': 'attachment',\n 'data-ui-attachment': '',\n 'data-part': 'group',\n 'data-part-group': '',\n '[attr.data-layout]': 'resolvedLayout()',\n '[attr.data-size]': 'resolvedSize()',\n '[attr.data-orientation]': 'resolvedOrientation()',\n '[attr.tabindex]': 'tabindex',\n },\n})\nexport class SlAttachmentGroup {\n /** A column, a wrapping grid, or one line that scrolls. Falls back to the token. */\n readonly layout = input<AttachmentLayout | undefined>(undefined);\n /** Handed to every attachment that does not state its own. */\n readonly size = input<AttachmentSize | undefined>(undefined);\n /** Handed to every attachment that does not state its own. */\n readonly orientation = input<AttachmentOrientation | undefined>(undefined);\n\n private readonly defaults = injectAttachmentDefaults();\n /** A `tabindex` the page wrote is kept; otherwise the list takes focus only by script. */\n protected readonly tabindex =\n inject(new HostAttributeToken('tabindex'), { optional: true }) ?? '-1';\n\n readonly resolvedLayout = computed(() => this.layout() ?? this.defaults.layout);\n readonly resolvedSize = computed(() => this.size() ?? this.defaults.size);\n readonly resolvedOrientation = computed(() => this.orientation() ?? this.defaults.orientation);\n\n constructor() {\n const host = inject<ElementRef<HTMLElement>>(ElementRef).nativeElement;\n const removal = createRemovalFocus(host, { itemSelector: ATTACHMENT_CONTROL_SELECTOR });\n inject(DestroyRef).onDestroy(() => removal.destroy());\n }\n}\n\n/**\n * One file that already belongs to something — a message, a record, a tray —\n * on the `li` (inside `slAttachmentGroup`) or `div` (alone) the page wrote.\n * The parts inside read the file from here: the tile its kind, the trigger its\n * name, the detail its size.\n *\n * **Removal is a request.** `removable` draws `slAttachmentRemove` and makes\n * `Backspace` and `Delete` answer anywhere inside the attachment; `(remove)`\n * carries the reason and the file, and the list stays the page's. A held key\n * does not repeat the request.\n *\n * **The refusal runs first.** A click inside the trigger, or on a family\n * action written on an `a`, is refused here in the capture phase while the\n * attachment is loading or disabled: a directive's host listener and a\n * `(click)` the page wrote on the same element run in registration order, and\n * the page's was registered first — the ordering `list-item` found.\n */\n@Component({\n selector: '[slAttachment]',\n standalone: true,\n exportAs: 'slAttachment',\n template: '<ng-content></ng-content>',\n styleUrl: '../../../styles/src/attachment/attachment.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: {\n 'data-ui': 'attachment',\n 'data-ui-attachment': '',\n 'data-part': 'root',\n 'data-part-root': '',\n '[attr.data-kind]': 'kind()',\n '[attr.data-size]': 'resolvedSize()',\n '[attr.data-orientation]': 'resolvedOrientation()',\n '[attr.data-invalid]': \"invalid() ? '' : null\",\n '[attr.data-loading]': \"loading() ? '' : null\",\n '[attr.data-disabled]': \"disabled() ? '' : null\",\n '[attr.aria-busy]': \"loading() ? 'true' : null\",\n '(keydown)': 'handleKeydown($event)',\n },\n})\nexport class SlAttachment {\n /** The file: its name, and its media type and size when they are known. */\n readonly file = input.required<AttachmentFile>();\n /** The room the attachment gets. Falls back to the group, then the token, then `md`. */\n readonly size = input<AttachmentSize | undefined>(undefined);\n /** A row, or a card stood on end. Falls back to the group, then the token. */\n readonly orientation = input<AttachmentOrientation | undefined>(undefined);\n /** The file failed; painted from `data-invalid`, never `aria-invalid` on a list item. */\n readonly invalid = input(false, { transform: booleanAttribute });\n /** Still on its way: `aria-busy`, the trigger refused, remove still operable. */\n readonly loading = input(false, { transform: booleanAttribute });\n /** Cannot be reached: the trigger, every action and remove are refused. */\n readonly disabled = input(false, { transform: booleanAttribute });\n /** Draws `slAttachmentRemove` and lets `Backspace` and `Delete` ask for removal. */\n readonly removable = input(false, { transform: booleanAttribute });\n /**\n * Words laid over the catalog of the language in force, key by key: the\n * remove control's name (`remove`, with the file's `{name}`) and the tile's\n * word for a file without an extension.\n */\n readonly messages = input<PartialMessages<AttachmentMessages> | undefined>(undefined);\n\n /** Asks to be taken out of the list. Not emitted while disabled, nor for a repeated key. */\n readonly remove = output<AttachmentRemoveRequest>();\n\n private readonly defaults = injectAttachmentDefaults();\n private readonly group = inject(SlAttachmentGroup, { optional: true });\n\n readonly id = `sl-attachment-${nextId++}`;\n readonly ids = { detail: `${this.id}-detail`, message: `${this.id}-message` };\n /** The language in force, which writes the size the detail line shows. */\n readonly locale = injectLocale();\n /** The family's words in the language in force, with this attachment's `messages` laid over them. */\n readonly t = injectMessages(attachmentMessages, this.messages);\n\n readonly resolvedSize = computed(() => this.size() ?? this.group?.size() ?? this.defaults.size);\n readonly resolvedOrientation = computed(\n () => this.orientation() ?? this.group?.orientation() ?? this.defaults.orientation,\n );\n readonly kind = computed(() => {\n const file = this.file();\n return fileKind({ name: file.name, type: file.type ?? '' });\n });\n readonly split = computed(() => splitName(this.file().name));\n readonly blocked = computed(() => this.disabled() || this.loading());\n\n /**\n * The ids of the describing parts on the page, so the trigger names only\n * what exists — and the id each part actually carries, which is the page's\n * own when it wrote one.\n */\n readonly described = signal<{ detail: string | null; message: string | null }>({\n detail: null,\n message: null,\n });\n\n constructor() {\n const host = inject<ElementRef<HTMLElement>>(ElementRef).nativeElement;\n const refuse = (event: Event) => {\n const target = event.target as Element | null;\n const trigger = target?.closest('[data-part=\"trigger\"]') != null;\n const link = target?.closest('a[data-part=\"action\"]') != null;\n if (!(trigger && this.blocked()) && !(link && this.disabled())) return;\n event.preventDefault();\n event.stopImmediatePropagation();\n };\n host.addEventListener('click', refuse, { capture: true });\n inject(DestroyRef).onDestroy(() =>\n host.removeEventListener('click', refuse, { capture: true }),\n );\n }\n\n describe(part: 'detail' | 'message', id: string | null) {\n this.described.update((current) =>\n current[part] === id ? current : { ...current, [part]: id },\n );\n }\n\n request(reason: AttachmentRemoveReason, source: Event) {\n if (!this.removable() || this.disabled()) return;\n this.remove.emit({ reason, file: this.file(), source });\n }\n\n protected handleKeydown(event: KeyboardEvent) {\n if (event.defaultPrevented || event.repeat) return;\n if (event.key !== 'Backspace' && event.key !== 'Delete') return;\n if (!this.removable() || this.disabled()) return;\n /* A field the page put inside an attachment keeps its own editing keys. */\n const target = event.target as HTMLElement;\n if (target.isContentEditable || target.closest('input, textarea, select') !== null) return;\n event.preventDefault();\n this.request('keyboard', event);\n }\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n computed,\n DestroyRef,\n Directive,\n ElementRef,\n HostAttributeToken,\n inject,\n input,\n signal,\n ViewEncapsulation,\n} from '@angular/core';\nimport { SlGlyph, SlIcon } from '@slotted/angular/icon';\nimport { SlProgressBar } from '@slotted/angular/progress-indicator';\nimport { formatBytes } from '@slotted/core/upload';\n\nimport { SlAttachment } from './attachment';\nimport { ATTACHMENT_KIND_GLYPH } from './attachment-defaults';\n\nfunction attachment(): SlAttachment {\n const owner = inject(SlAttachment, { optional: true });\n if (owner === null) throw new Error('An attachment part is rendered outside slAttachment.');\n return owner;\n}\n\n/**\n * Registers a describing part with its attachment for as long as it exists,\n * under the id it carries: the page's own when it wrote one.\n */\nfunction describes(part: 'detail' | 'message') {\n const owner = attachment();\n const id = inject(new HostAttributeToken('id'), { optional: true }) ?? owner.ids[part];\n owner.describe(part, id);\n inject(DestroyRef).onDestroy(() => owner.describe(part, null));\n return { owner, id };\n}\n\n/**\n * The kind's tile with the kind's mark knocked out of it, or the thumbnail the\n * page gives. A thumbnail that fails to load returns to the tile: the failure\n * is this part's own state, not a state of the file. Hidden from assistive\n * technology, because the name already says what the file is.\n */\n@Component({\n selector: '[slAttachmentPreview]',\n standalone: true,\n exportAs: 'slAttachmentPreview',\n imports: [SlGlyph, SlIcon],\n template: `@if (picture()) {\n <img alt=\"\" decoding=\"async\" loading=\"lazy\" [src]=\"src()\" (error)=\"failed.set(src())\" />\n } @else {\n <span slIcon><svg slGlyph [name]=\"glyph()\"></svg></span>\n }`,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: {\n 'aria-hidden': 'true',\n 'data-part': 'preview',\n 'data-part-preview': '',\n '[attr.data-kind]': 'owner.kind()',\n '[attr.data-extension]': 'extension()',\n },\n})\nexport class SlAttachmentPreview {\n /** A thumbnail. Absent, or failing to load, the kind's tile is drawn instead. */\n readonly src = input<string | undefined>(undefined);\n\n protected readonly owner = attachment();\n protected readonly failed = signal<string | undefined>(undefined);\n protected readonly picture = computed(() => {\n const src = this.src();\n return src !== undefined && src !== this.failed();\n });\n protected readonly glyph = computed(() => ATTACHMENT_KIND_GLYPH[this.owner.kind()]);\n protected readonly extension = computed(() => {\n const extension = this.owner.split().extension;\n return extension === '' ? this.owner.t('noExtension') : extension.slice(1).toUpperCase();\n });\n}\n\n/** The text column, and the one box in the attachment that may shrink. */\n@Directive({\n selector: '[slAttachmentBody]',\n standalone: true,\n exportAs: 'slAttachmentBody',\n host: { 'data-part': 'body', 'data-part-body': '' },\n})\nexport class SlAttachmentBody {}\n\n/**\n * The file name as two runs — the stem, which shrinks to an ellipsis, and the\n * extension, which does not — in the name's own direction. Content the page\n * projects replaces the two runs.\n */\n@Component({\n selector: '[slAttachmentFilename]',\n standalone: true,\n exportAs: 'slAttachmentFilename',\n template: `<ng-content\n ><span data-part=\"name\" data-part-name=\"\">{{ owner.split().stem }}</span>\n @if (owner.split().extension) {\n <span data-part=\"extension\" data-part-extension=\"\">{{ owner.split().extension }}</span>\n }\n </ng-content>`,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: {\n 'data-part': 'filename',\n 'data-part-filename': '',\n '[attr.dir]': 'dir',\n },\n})\nexport class SlAttachmentFilename {\n protected readonly owner = attachment();\n protected readonly dir = inject(new HostAttributeToken('dir'), { optional: true }) ?? 'auto';\n}\n\n/**\n * The file's target: `<a slAttachmentTrigger [href]>` for a file with an\n * address, so `href`, `download` and a modified click stay the platform's;\n * `<button slAttachmentTrigger>` for a viewer the page opens. Named by the\n * file, described by the detail and the message, and stretched over the whole\n * attachment. A `button` takes the native `disabled` while the file is loading\n * or unavailable; an `a` takes `aria-disabled` and keeps its destination, and\n * `slAttachment` refuses the activation.\n */\n@Component({\n selector: 'a[slAttachmentTrigger], button[slAttachmentTrigger]',\n standalone: true,\n exportAs: 'slAttachmentTrigger',\n imports: [SlAttachmentFilename],\n template: `<ng-content><span slAttachmentFilename></span></ng-content>`,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: {\n 'data-part': 'trigger',\n 'data-part-trigger': '',\n '[attr.title]': 'title ?? owner.file().name',\n '[attr.aria-describedby]': 'describedBy()',\n '[attr.disabled]': \"isButton && owner.blocked() ? '' : null\",\n '[attr.aria-disabled]': \"!isButton && owner.blocked() ? 'true' : null\",\n '[attr.type]': \"isButton ? (type ?? 'button') : null\",\n },\n})\nexport class SlAttachmentTrigger {\n protected readonly owner = attachment();\n protected readonly isButton =\n inject<ElementRef<HTMLElement>>(ElementRef).nativeElement.tagName === 'BUTTON';\n protected readonly title = inject(new HostAttributeToken('title'), { optional: true });\n protected readonly type = inject(new HostAttributeToken('type'), { optional: true });\n /** A description the page wrote comes first; the family's ids are joined to it. */\n private readonly written = inject(new HostAttributeToken('aria-describedby'), {\n optional: true,\n });\n\n protected readonly describedBy = computed(() => {\n const described = this.owner.described();\n const ids = [\n ...(this.written === null ? [] : [this.written]),\n ...(described.detail === null ? [] : [described.detail]),\n ...(described.message === null ? [] : [described.message]),\n ];\n return ids.length === 0 ? null : ids.join(' ');\n });\n}\n\n/**\n * The line under the name. With nothing projected it writes the size with\n * `formatBytes` in the language in force; anything the page writes replaces it.\n */\n@Component({\n selector: '[slAttachmentDetail]',\n standalone: true,\n exportAs: 'slAttachmentDetail',\n template: `<ng-content>{{ bytes() }}</ng-content>`,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: {\n 'data-part': 'detail',\n 'data-part-detail': '',\n '[attr.id]': 'wiring.id',\n },\n})\nexport class SlAttachmentDetail {\n protected readonly wiring = describes('detail');\n protected readonly owner = this.wiring.owner;\n protected readonly bytes = computed(() => {\n const size = this.owner.file().size;\n return size === undefined ? '' : formatBytes(size, this.owner.locale());\n });\n}\n\n/** Why the file failed, or anything longer than a line the page must say about it. */\n@Directive({\n selector: '[slAttachmentMessage]',\n standalone: true,\n exportAs: 'slAttachmentMessage',\n host: {\n 'data-part': 'message',\n 'data-part-message': '',\n '[attr.id]': 'wiring.id',\n },\n})\nexport class SlAttachmentMessage {\n protected readonly wiring = describes('message');\n}\n\n/**\n * The transfer, as the attachment's bottom edge: `slProgressBar`, named by the\n * file so a reader hears the name and the percentage together. Without a\n * `value` the bar is indeterminate.\n */\n@Component({\n selector: '[slAttachmentProgress]',\n standalone: true,\n exportAs: 'slAttachmentProgress',\n imports: [SlProgressBar],\n template: `<div\n slProgressBar\n hideLabel\n size=\"sm\"\n [label]=\"owner.file().name\"\n [tone]=\"owner.invalid() ? 'danger' : 'accent'\"\n [value]=\"value() ?? null\"\n ></div>`,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: { 'data-part': 'progress', 'data-part-progress': '' },\n})\nexport class SlAttachmentProgress {\n /** Per cent, 0 to 100. Absent, the bar is indeterminate. */\n readonly value = input<number | null | undefined>(undefined);\n\n protected readonly owner = attachment();\n}\n\n/**\n * The controls the application offers on the file, beside the trigger and\n * above its stretched target: interactive content may not nest inside `a` or\n * `button`.\n */\n@Directive({\n selector: '[slAttachmentActions]',\n standalone: true,\n exportAs: 'slAttachmentActions',\n host: { 'data-part': 'actions', 'data-part-actions': '' },\n})\nexport class SlAttachmentActions {}\n\n/**\n * One icon control of the application's own, on the `button` or the `a` the\n * page wrote — an `a` with `download` is a download. It needs an\n * `aria-label`. An unavailable attachment disables it: the native `disabled`\n * on a button, `aria-disabled` on a link, whose activation `slAttachment`\n * refuses.\n */\n@Directive({\n selector: 'button[slAttachmentAction], a[slAttachmentAction]',\n standalone: true,\n exportAs: 'slAttachmentAction',\n host: {\n 'data-part': 'action',\n 'data-part-action': '',\n '[attr.disabled]': \"isButton && owner.disabled() ? '' : null\",\n '[attr.aria-disabled]': \"!isButton && owner.disabled() ? 'true' : null\",\n '[attr.type]': \"isButton ? (type ?? 'button') : null\",\n },\n})\nexport class SlAttachmentAction {\n protected readonly owner = attachment();\n protected readonly isButton =\n inject<ElementRef<HTMLElement>>(ElementRef).nativeElement.tagName === 'BUTTON';\n protected readonly type = inject(new HostAttributeToken('type'), { optional: true });\n}\n\n/**\n * Asks to take the attachment out of its list, on the `button` the page\n * wrote. Hidden unless the attachment is `removable`, so a read-only thread\n * shows no control that does nothing. Its name is the word and the file,\n * `Remove claim-form.pdf`, unless the page wrote its own `aria-label`.\n */\n@Component({\n selector: 'button[slAttachmentRemove]',\n standalone: true,\n exportAs: 'slAttachmentRemove',\n imports: [SlGlyph, SlIcon],\n template: `<ng-content\n ><span slIcon><svg slGlyph name=\"x\"></svg></span\n ></ng-content>`,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: {\n 'data-part': 'remove',\n 'data-part-remove': '',\n type: 'button',\n '[attr.hidden]': \"owner.removable() ? null : ''\",\n '[attr.aria-label]': 'label()',\n '[attr.disabled]': \"owner.disabled() ? '' : null\",\n '(click)': 'owner.request(\"remove\", $event)',\n },\n})\nexport class SlAttachmentRemove {\n protected readonly owner = attachment();\n private readonly written = inject(new HostAttributeToken('aria-label'), { optional: true });\n protected readonly label = computed(\n () => this.written ?? this.owner.t('remove', { name: this.owner.file().name }),\n );\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;AAoCA,MAAM,QAAQ,GAAuB;AACnC,IAAA,MAAM,EAAE,MAAM;AACd,IAAA,WAAW,EAAE,YAAY;AACzB,IAAA,IAAI,EAAE,IAAI;CACX;MAEY,mBAAmB,GAAG,IAAI,cAAc,CACnD,6BAA6B,EAC7B,EAAE,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,QAAQ,EAAE;AAGjD;;;;;AAKG;AACG,SAAU,yBAAyB,CAAC,QAAqC,EAAA;IAC7E,OAAO;AACL,QAAA,OAAO,EAAE,mBAAmB;AAC5B,QAAA,UAAU,EAAE,OAA2B;AACrC,YAAA,MAAM,EAAE,QAAQ,CAAC,MAAM,IAAI,QAAQ,CAAC,MAAM;AAC1C,YAAA,WAAW,EAAE,QAAQ,CAAC,WAAW,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