@slotted/angular 0.1.0-beta.29 → 0.1.0-beta.30

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 (397) hide show
  1. package/docs/AGENTS.snippet.md +1 -1
  2. package/docs/accordion.json +5 -5
  3. package/docs/accordion.md +12 -12
  4. package/docs/action-bar.json +20 -20
  5. package/docs/action-bar.md +28 -28
  6. package/docs/action-sheet.json +4 -4
  7. package/docs/action-sheet.md +12 -12
  8. package/docs/alert.json +10 -10
  9. package/docs/alert.md +16 -16
  10. package/docs/app-shell.examples.md +7 -7
  11. package/docs/app-shell.json +13 -13
  12. package/docs/app-shell.md +3 -3
  13. package/docs/avatar-group.json +1 -1
  14. package/docs/avatar-group.md +1 -1
  15. package/docs/avatar.json +10 -10
  16. package/docs/avatar.md +9 -9
  17. package/docs/badge.json +3 -3
  18. package/docs/badge.md +3 -3
  19. package/docs/breadcrumb.json +2 -2
  20. package/docs/breadcrumb.md +2 -2
  21. package/docs/button-group.json +1 -1
  22. package/docs/button-group.md +1 -1
  23. package/docs/button.json +11 -11
  24. package/docs/button.md +7 -7
  25. package/docs/calendar.json +4 -4
  26. package/docs/calendar.md +3 -3
  27. package/docs/card.json +2 -2
  28. package/docs/card.md +2 -2
  29. package/docs/carousel.json +10 -10
  30. package/docs/carousel.md +11 -11
  31. package/docs/chart.examples.md +32 -32
  32. package/docs/chart.json +33 -33
  33. package/docs/chart.md +4 -4
  34. package/docs/checkbox-group.examples.md +13 -13
  35. package/docs/checkbox-group.json +7 -7
  36. package/docs/checkbox-group.md +2 -2
  37. package/docs/checkbox.examples.md +7 -7
  38. package/docs/checkbox.json +6 -6
  39. package/docs/checkbox.md +3 -3
  40. package/docs/code-block.json +1 -1
  41. package/docs/code-block.md +1 -1
  42. package/docs/collapsible.json +11 -11
  43. package/docs/collapsible.md +19 -19
  44. package/docs/color-picker.json +26 -26
  45. package/docs/color-picker.md +16 -16
  46. package/docs/combobox.json +2 -2
  47. package/docs/combobox.md +2 -2
  48. package/docs/context-menu.json +1 -1
  49. package/docs/context-menu.md +1 -1
  50. package/docs/currency-field.examples.md +3 -3
  51. package/docs/currency-field.json +6 -6
  52. package/docs/currency-field.md +4 -4
  53. package/docs/dashboard-grid.json +1 -1
  54. package/docs/data-grid.examples.md +1 -1
  55. package/docs/data-grid.json +2 -2
  56. package/docs/data-grid.props.md +1 -1
  57. package/docs/date-field.json +3 -3
  58. package/docs/date-field.md +5 -5
  59. package/docs/date-picker.json +1 -1
  60. package/docs/date-range-picker.json +1 -1
  61. package/docs/datetime-field.json +4 -4
  62. package/docs/datetime-field.md +9 -9
  63. package/docs/datetime-picker.json +1 -1
  64. package/docs/datetime-range-picker.examples.md +3 -3
  65. package/docs/datetime-range-picker.json +4 -4
  66. package/docs/datetime-range-picker.md +2 -2
  67. package/docs/description-list.json +5 -5
  68. package/docs/description-list.md +4 -4
  69. package/docs/detail-panel.json +10 -10
  70. package/docs/detail-panel.md +12 -12
  71. package/docs/dialog.examples.md +5 -5
  72. package/docs/dialog.json +10 -10
  73. package/docs/dialog.md +2 -2
  74. package/docs/dialog.props.md +2 -2
  75. package/docs/drawer.examples.md +13 -13
  76. package/docs/drawer.json +6 -6
  77. package/docs/event-calendar.examples.md +3 -3
  78. package/docs/event-calendar.json +5 -5
  79. package/docs/event-calendar.md +2 -2
  80. package/docs/field-group.json +6 -6
  81. package/docs/field-group.md +11 -11
  82. package/docs/field.examples.md +3 -3
  83. package/docs/field.json +4 -4
  84. package/docs/field.md +1 -1
  85. package/docs/form.json +8 -8
  86. package/docs/form.md +12 -12
  87. package/docs/fullscreen.json +4 -4
  88. package/docs/fullscreen.md +7 -7
  89. package/docs/guidelines/async-feedback.md +2 -2
  90. package/docs/guidelines/builders.md +1 -1
  91. package/docs/guidelines/composition.md +4 -4
  92. package/docs/guidelines/conversations.md +1 -1
  93. package/docs/guidelines/index.md +2 -2
  94. package/docs/guidelines/layout-alignment.md +5 -5
  95. package/docs/guidelines/overviews.md +3 -3
  96. package/docs/guidelines/own-elements.md +7 -7
  97. package/docs/guidelines/record-pages.md +1 -1
  98. package/docs/highlight.json +9 -9
  99. package/docs/highlight.md +14 -14
  100. package/docs/icon.json +2 -2
  101. package/docs/icon.md +2 -2
  102. package/docs/image.json +3 -3
  103. package/docs/image.md +3 -3
  104. package/docs/import-export-center.json +23 -23
  105. package/docs/import-export-center.md +17 -17
  106. package/docs/inline-message.json +15 -15
  107. package/docs/inline-message.md +22 -22
  108. package/docs/inline.json +1 -1
  109. package/docs/inline.md +1 -1
  110. package/docs/kbd.json +2 -2
  111. package/docs/kbd.md +2 -2
  112. package/docs/link.json +6 -6
  113. package/docs/link.md +6 -6
  114. package/docs/list-item.json +1 -1
  115. package/docs/list-item.md +1 -1
  116. package/docs/list.json +1 -1
  117. package/docs/listbox.json +1 -1
  118. package/docs/listbox.md +1 -1
  119. package/docs/loading-overlay.json +3 -3
  120. package/docs/loading-overlay.md +3 -3
  121. package/docs/message-scroller.json +1 -1
  122. package/docs/message-scroller.md +1 -1
  123. package/docs/message.json +11 -11
  124. package/docs/message.md +17 -17
  125. package/docs/multi-select.json +1 -1
  126. package/docs/notification-center.json +16 -16
  127. package/docs/notification-center.md +18 -22
  128. package/docs/number-field.examples.md +3 -3
  129. package/docs/number-field.json +3 -3
  130. package/docs/otp-input.json +10 -10
  131. package/docs/otp-input.md +13 -13
  132. package/docs/page-header.json +9 -9
  133. package/docs/page-header.md +20 -22
  134. package/docs/pagination.json +2 -2
  135. package/docs/pagination.md +1 -1
  136. package/docs/popover.examples.md +1 -1
  137. package/docs/popover.json +3 -3
  138. package/docs/popover.md +1 -1
  139. package/docs/progress-indicator.json +4 -4
  140. package/docs/progress-indicator.md +4 -4
  141. package/docs/prompt-composer.json +4 -4
  142. package/docs/prompt-composer.md +5 -5
  143. package/docs/prose.json +1 -1
  144. package/docs/prose.md +1 -1
  145. package/docs/radio-group.examples.md +19 -19
  146. package/docs/radio-group.json +12 -12
  147. package/docs/radio-group.md +3 -3
  148. package/docs/rating.json +23 -23
  149. package/docs/rating.md +25 -34
  150. package/docs/result-state.json +12 -12
  151. package/docs/result-state.md +17 -17
  152. package/docs/saved-views.json +1 -1
  153. package/docs/scroll-area.json +5 -5
  154. package/docs/scroll-area.md +6 -6
  155. package/docs/section.json +6 -6
  156. package/docs/section.md +12 -12
  157. package/docs/segmented-control.json +14 -14
  158. package/docs/segmented-control.md +32 -32
  159. package/docs/skeleton.json +1 -1
  160. package/docs/skeleton.md +1 -1
  161. package/docs/skills/build-own-element/SKILL.md +3 -3
  162. package/docs/skills/compose-screen/SKILL.md +2 -2
  163. package/docs/skills/index.md +2 -2
  164. package/docs/skills/review-screen/SKILL.md +3 -3
  165. package/docs/skills/theme-app/SKILL.md +9 -9
  166. package/docs/skills/waiting-states/SKILL.md +1 -1
  167. package/docs/slider.json +8 -8
  168. package/docs/slider.md +12 -12
  169. package/docs/sparkline.json +8 -8
  170. package/docs/sparkline.md +6 -6
  171. package/docs/split-button.json +11 -11
  172. package/docs/split-button.md +25 -27
  173. package/docs/stack.json +1 -1
  174. package/docs/stack.md +1 -1
  175. package/docs/stat-card.json +3 -3
  176. package/docs/stat-card.md +2 -2
  177. package/docs/status-indicator.json +8 -8
  178. package/docs/status-indicator.md +5 -5
  179. package/docs/stepper.json +4 -4
  180. package/docs/stepper.md +4 -4
  181. package/docs/switch.json +5 -5
  182. package/docs/switch.md +7 -7
  183. package/docs/table-of-contents.json +11 -11
  184. package/docs/table-of-contents.md +12 -12
  185. package/docs/table.examples.md +1 -1
  186. package/docs/table.json +1 -1
  187. package/docs/tabs.json +1 -1
  188. package/docs/tabs.md +1 -1
  189. package/docs/tag.json +17 -17
  190. package/docs/tag.md +14 -14
  191. package/docs/tags-input.json +1 -1
  192. package/docs/tags-input.md +1 -1
  193. package/docs/text-field.examples.md +6 -6
  194. package/docs/text-field.json +4 -4
  195. package/docs/textarea.examples.md +7 -7
  196. package/docs/textarea.json +3 -3
  197. package/docs/time-field.json +3 -3
  198. package/docs/time-field.md +6 -6
  199. package/docs/time-picker.json +5 -5
  200. package/docs/time-picker.md +6 -6
  201. package/docs/time-range-picker.examples.md +5 -5
  202. package/docs/time-range-picker.json +5 -5
  203. package/docs/time-range-picker.md +1 -1
  204. package/docs/toast.json +6 -6
  205. package/docs/toast.md +6 -6
  206. package/docs/toggle-group.json +12 -12
  207. package/docs/toggle-group.md +28 -28
  208. package/docs/toggle.json +8 -8
  209. package/docs/toggle.md +7 -7
  210. package/docs/tokens.md +15 -15
  211. package/docs/toolbar.json +11 -11
  212. package/docs/toolbar.md +23 -23
  213. package/docs/tooltip.json +3 -3
  214. package/docs/tooltip.md +3 -3
  215. package/docs/top-navigation.examples.md +11 -15
  216. package/docs/top-navigation.json +9 -9
  217. package/docs/top-navigation.md +7 -7
  218. package/docs/tour.json +9 -9
  219. package/docs/tour.md +6 -6
  220. package/docs/typography.json +2 -2
  221. package/docs/typography.md +2 -2
  222. package/docs/upload.examples.md +3 -3
  223. package/docs/upload.json +9 -9
  224. package/docs/upload.md +4 -4
  225. package/fesm2022/slotted-angular-alert.mjs +2 -2
  226. package/fesm2022/slotted-angular-alert.mjs.map +1 -1
  227. package/fesm2022/slotted-angular-app-shell.mjs +10 -10
  228. package/fesm2022/slotted-angular-app-shell.mjs.map +1 -1
  229. package/fesm2022/slotted-angular-avatar-group.mjs +4 -4
  230. package/fesm2022/slotted-angular-avatar-group.mjs.map +1 -1
  231. package/fesm2022/slotted-angular-avatar.mjs +3 -3
  232. package/fesm2022/slotted-angular-avatar.mjs.map +1 -1
  233. package/fesm2022/slotted-angular-badge.mjs +1 -1
  234. package/fesm2022/slotted-angular-badge.mjs.map +1 -1
  235. package/fesm2022/slotted-angular-breadcrumb.mjs +1 -1
  236. package/fesm2022/slotted-angular-breadcrumb.mjs.map +1 -1
  237. package/fesm2022/slotted-angular-button-group.mjs +1 -1
  238. package/fesm2022/slotted-angular-button-group.mjs.map +1 -1
  239. package/fesm2022/slotted-angular-button.mjs +2 -2
  240. package/fesm2022/slotted-angular-button.mjs.map +1 -1
  241. package/fesm2022/slotted-angular-card.mjs +1 -1
  242. package/fesm2022/slotted-angular-card.mjs.map +1 -1
  243. package/fesm2022/slotted-angular-chart.mjs +2 -2
  244. package/fesm2022/slotted-angular-chart.mjs.map +1 -1
  245. package/fesm2022/slotted-angular-checkbox.mjs +1 -1
  246. package/fesm2022/slotted-angular-checkbox.mjs.map +1 -1
  247. package/fesm2022/slotted-angular-code-block.mjs +1 -1
  248. package/fesm2022/slotted-angular-code-block.mjs.map +1 -1
  249. package/fesm2022/slotted-angular-collapsible.mjs +1 -1
  250. package/fesm2022/slotted-angular-collapsible.mjs.map +1 -1
  251. package/fesm2022/slotted-angular-color-picker.mjs +6 -6
  252. package/fesm2022/slotted-angular-color-picker.mjs.map +1 -1
  253. package/fesm2022/slotted-angular-column-manager.mjs +3 -1
  254. package/fesm2022/slotted-angular-column-manager.mjs.map +1 -1
  255. package/fesm2022/slotted-angular-currency-field.mjs +2 -2
  256. package/fesm2022/slotted-angular-currency-field.mjs.map +1 -1
  257. package/fesm2022/slotted-angular-data-grid.mjs +1 -1
  258. package/fesm2022/slotted-angular-data-grid.mjs.map +1 -1
  259. package/fesm2022/slotted-angular-datetime-field.mjs +1 -1
  260. package/fesm2022/slotted-angular-datetime-field.mjs.map +1 -1
  261. package/fesm2022/slotted-angular-datetime-range-picker.mjs +6 -6
  262. package/fesm2022/slotted-angular-datetime-range-picker.mjs.map +1 -1
  263. package/fesm2022/slotted-angular-description-list.mjs +3 -3
  264. package/fesm2022/slotted-angular-description-list.mjs.map +1 -1
  265. package/fesm2022/slotted-angular-dialog.mjs +3 -3
  266. package/fesm2022/slotted-angular-dialog.mjs.map +1 -1
  267. package/fesm2022/slotted-angular-drawer.mjs +1 -1
  268. package/fesm2022/slotted-angular-drawer.mjs.map +1 -1
  269. package/fesm2022/slotted-angular-event-calendar.mjs +3 -3
  270. package/fesm2022/slotted-angular-event-calendar.mjs.map +1 -1
  271. package/fesm2022/slotted-angular-field.mjs +2 -2
  272. package/fesm2022/slotted-angular-field.mjs.map +1 -1
  273. package/fesm2022/slotted-angular-form.mjs +6 -6
  274. package/fesm2022/slotted-angular-form.mjs.map +1 -1
  275. package/fesm2022/slotted-angular-grid.mjs +2 -2
  276. package/fesm2022/slotted-angular-grid.mjs.map +1 -1
  277. package/fesm2022/slotted-angular-highlight.mjs +1 -1
  278. package/fesm2022/slotted-angular-highlight.mjs.map +1 -1
  279. package/fesm2022/slotted-angular-icon.mjs +3 -3
  280. package/fesm2022/slotted-angular-icon.mjs.map +1 -1
  281. package/fesm2022/slotted-angular-import-export-center.mjs +10 -10
  282. package/fesm2022/slotted-angular-import-export-center.mjs.map +1 -1
  283. package/fesm2022/slotted-angular-inline-message.mjs +4 -4
  284. package/fesm2022/slotted-angular-inline-message.mjs.map +1 -1
  285. package/fesm2022/slotted-angular-inline.mjs +3 -3
  286. package/fesm2022/slotted-angular-inline.mjs.map +1 -1
  287. package/fesm2022/slotted-angular-kbd.mjs.map +1 -1
  288. package/fesm2022/slotted-angular-list.mjs +1 -1
  289. package/fesm2022/slotted-angular-list.mjs.map +1 -1
  290. package/fesm2022/slotted-angular-listbox.mjs +2 -2
  291. package/fesm2022/slotted-angular-listbox.mjs.map +1 -1
  292. package/fesm2022/slotted-angular-loading-overlay.mjs +3 -3
  293. package/fesm2022/slotted-angular-loading-overlay.mjs.map +1 -1
  294. package/fesm2022/slotted-angular-menu.mjs +2 -2
  295. package/fesm2022/slotted-angular-menu.mjs.map +1 -1
  296. package/fesm2022/slotted-angular-message-scroller.mjs +1 -1
  297. package/fesm2022/slotted-angular-message-scroller.mjs.map +1 -1
  298. package/fesm2022/slotted-angular-notification-center.mjs +3 -3
  299. package/fesm2022/slotted-angular-notification-center.mjs.map +1 -1
  300. package/fesm2022/slotted-angular-number-field.mjs +1 -1
  301. package/fesm2022/slotted-angular-number-field.mjs.map +1 -1
  302. package/fesm2022/slotted-angular-otp-input.mjs +1 -1
  303. package/fesm2022/slotted-angular-otp-input.mjs.map +1 -1
  304. package/fesm2022/slotted-angular-popover.mjs +2 -2
  305. package/fesm2022/slotted-angular-popover.mjs.map +1 -1
  306. package/fesm2022/slotted-angular-progress-indicator.mjs +2 -2
  307. package/fesm2022/slotted-angular-progress-indicator.mjs.map +1 -1
  308. package/fesm2022/slotted-angular-radio-group.mjs +2 -2
  309. package/fesm2022/slotted-angular-radio-group.mjs.map +1 -1
  310. package/fesm2022/slotted-angular-rating.mjs +5 -5
  311. package/fesm2022/slotted-angular-rating.mjs.map +1 -1
  312. package/fesm2022/slotted-angular-result-state.mjs.map +1 -1
  313. package/fesm2022/slotted-angular-segmented-control.mjs +1 -1
  314. package/fesm2022/slotted-angular-segmented-control.mjs.map +1 -1
  315. package/fesm2022/slotted-angular-slider.mjs +3 -3
  316. package/fesm2022/slotted-angular-slider.mjs.map +1 -1
  317. package/fesm2022/slotted-angular-stack.mjs +2 -2
  318. package/fesm2022/slotted-angular-stack.mjs.map +1 -1
  319. package/fesm2022/slotted-angular-status-indicator.mjs +1 -1
  320. package/fesm2022/slotted-angular-status-indicator.mjs.map +1 -1
  321. package/fesm2022/slotted-angular-switch.mjs.map +1 -1
  322. package/fesm2022/slotted-angular-table.mjs +2 -2
  323. package/fesm2022/slotted-angular-table.mjs.map +1 -1
  324. package/fesm2022/slotted-angular-tabs.mjs.map +1 -1
  325. package/fesm2022/slotted-angular-tag.mjs +1 -1
  326. package/fesm2022/slotted-angular-tag.mjs.map +1 -1
  327. package/fesm2022/slotted-angular-tags-input.mjs +1 -1
  328. package/fesm2022/slotted-angular-tags-input.mjs.map +1 -1
  329. package/fesm2022/slotted-angular-theme.mjs.map +1 -1
  330. package/fesm2022/slotted-angular-time-range-picker.mjs +6 -6
  331. package/fesm2022/slotted-angular-time-range-picker.mjs.map +1 -1
  332. package/fesm2022/slotted-angular-toast.mjs +2 -2
  333. package/fesm2022/slotted-angular-toast.mjs.map +1 -1
  334. package/fesm2022/slotted-angular-toggle-group.mjs.map +1 -1
  335. package/fesm2022/slotted-angular-toggle.mjs.map +1 -1
  336. package/fesm2022/slotted-angular-tour.mjs +3 -3
  337. package/fesm2022/slotted-angular-tour.mjs.map +1 -1
  338. package/fesm2022/slotted-angular-typography.mjs +1 -1
  339. package/fesm2022/slotted-angular-typography.mjs.map +1 -1
  340. package/fesm2022/slotted-angular-upload.mjs +2 -2
  341. package/fesm2022/slotted-angular-upload.mjs.map +1 -1
  342. package/fesm2022/slotted-angular-wizard.mjs +6 -6
  343. package/fesm2022/slotted-angular-wizard.mjs.map +1 -1
  344. package/package.json +15 -3
  345. package/types/slotted-angular-alert.d.ts +3 -3
  346. package/types/slotted-angular-app-shell.d.ts +4 -4
  347. package/types/slotted-angular-avatar-group.d.ts +3 -3
  348. package/types/slotted-angular-avatar.d.ts +6 -6
  349. package/types/slotted-angular-badge.d.ts +3 -3
  350. package/types/slotted-angular-breadcrumb.d.ts +1 -1
  351. package/types/slotted-angular-button-group.d.ts +1 -1
  352. package/types/slotted-angular-button.d.ts +2 -2
  353. package/types/slotted-angular-card.d.ts +1 -1
  354. package/types/slotted-angular-chart.d.ts +2 -2
  355. package/types/slotted-angular-checkbox.d.ts +1 -1
  356. package/types/slotted-angular-code-block.d.ts +1 -1
  357. package/types/slotted-angular-collapsible.d.ts +1 -1
  358. package/types/slotted-angular-color-picker.d.ts +6 -6
  359. package/types/slotted-angular-column-manager.d.ts +1 -1
  360. package/types/slotted-angular-column-manager.d.ts.map +1 -1
  361. package/types/slotted-angular-currency-field.d.ts +1 -1
  362. package/types/slotted-angular-data-grid.d.ts +1 -1
  363. package/types/slotted-angular-datetime-range-picker.d.ts +1 -1
  364. package/types/slotted-angular-description-list.d.ts +1 -1
  365. package/types/slotted-angular-field.d.ts +2 -2
  366. package/types/slotted-angular-form.d.ts +1 -1
  367. package/types/slotted-angular-highlight.d.ts +1 -1
  368. package/types/slotted-angular-icon.d.ts +2 -2
  369. package/types/slotted-angular-import-export-center.d.ts +9 -9
  370. package/types/slotted-angular-inline-message.d.ts +3 -3
  371. package/types/slotted-angular-inline.d.ts +1 -1
  372. package/types/slotted-angular-kbd.d.ts +1 -1
  373. package/types/slotted-angular-list.d.ts +1 -1
  374. package/types/slotted-angular-listbox.d.ts +2 -2
  375. package/types/slotted-angular-loading-overlay.d.ts +3 -3
  376. package/types/slotted-angular-menu.d.ts +1 -1
  377. package/types/slotted-angular-message-scroller.d.ts +1 -1
  378. package/types/slotted-angular-notification-center.d.ts +4 -4
  379. package/types/slotted-angular-otp-input.d.ts +1 -1
  380. package/types/slotted-angular-progress-indicator.d.ts +2 -2
  381. package/types/slotted-angular-radio-group.d.ts +2 -2
  382. package/types/slotted-angular-rating.d.ts +2 -2
  383. package/types/slotted-angular-result-state.d.ts +1 -1
  384. package/types/slotted-angular-segmented-control.d.ts +2 -2
  385. package/types/slotted-angular-status-indicator.d.ts +2 -2
  386. package/types/slotted-angular-switch.d.ts +1 -1
  387. package/types/slotted-angular-table.d.ts +1 -1
  388. package/types/slotted-angular-tabs.d.ts +1 -1
  389. package/types/slotted-angular-tag.d.ts +3 -3
  390. package/types/slotted-angular-tags-input.d.ts +1 -1
  391. package/types/slotted-angular-theme.d.ts +1 -1
  392. package/types/slotted-angular-time-range-picker.d.ts +1 -1
  393. package/types/slotted-angular-toast.d.ts +4 -4
  394. package/types/slotted-angular-toggle-group.d.ts +1 -1
  395. package/types/slotted-angular-toggle.d.ts +1 -1
  396. package/types/slotted-angular-tour.d.ts +2 -2
  397. package/types/slotted-angular-wizard.d.ts +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"slotted-angular-inline-message.mjs","sources":["../../inline-message/src/inline-message-defaults.ts","../../inline-message/src/inline-message.ts","../../inline-message/src/inline-message-parts.ts","../../inline-message/src/slotted-angular-inline-message.ts"],"sourcesContent":["import { inject, Injectable, InjectionToken } from '@angular/core';\n\n/** Which of the five semantic colours the message speaks in. */\nexport type InlineMessageTone = 'accent' | 'secondary' | 'info' | 'success' | 'warning' | 'danger';\n\n/**\n * The type step the message sits at. `sm` sits beside a compact field; `md`\n * beside a large field. A message about a section is an alert. Both read the control scales, which the theme\n * restates per density.\n */\nexport type InlineMessageSize = 'sm' | 'md';\n\n/**\n * Which mark the message draws. `glyph` is the tone's own silhouette — the\n * circled information, check, diamond and circled exclamation. `dot` is a\n * neutral bullet in the tone's ink, the same shape for every tone including\n * the help tone that draws no silhouette at all, so a column of messages under\n * one field starts on one left edge. `none` draws nothing, and the tone is\n * then said by the ink and by the weight of the sentence: it is what `field`\n * and `field-group` ask for, because a silhouette repeated under every control\n * of a form is texture rather than a warning (F2).\n */\nexport type InlineMessageMark = 'glyph' | 'dot' | 'none';\n\n/**\n * Whether the message announces itself, and how loudly. `off` is the default,\n * because the WAI-ARIA APG records that a message already present when the page\n * finishes loading is not announced whatever role it carries.\n */\nexport type InlineMessageLive = 'off' | 'polite' | 'assertive';\n\n/**\n * The word a reader hears before the message. `null` is a tone that is not a\n * severity — help and information announce themselves by their sentence.\n */\nexport type InlineMessagePrefixes = Record<InlineMessageTone, string | null>;\n\n/**\n * The word a reader hears before the message, per tone.\n *\n * GOV.UK's Error message component publishes the idea and hard-codes the word;\n * this table generalises it to every tone that is a severity and puts it behind\n * the token below, which is the only translation surface this library has\n * today. `accent`, `secondary` and `info` carry none: information and help announce\n * themselves by their sentence, and a reader told “Information:” before every\n * hint hears one more word per field for nothing.\n */\nexport const INLINE_MESSAGE_PREFIXES: InlineMessagePrefixes = {\n accent: null,\n secondary: null,\n info: null,\n success: 'Success:',\n warning: 'Warning:',\n danger: 'Error:',\n};\n\nexport interface InlineMessageDefaults {\n live: InlineMessageLive;\n mark: InlineMessageMark;\n prefixes: InlineMessagePrefixes;\n size: InlineMessageSize;\n tone: InlineMessageTone;\n}\n\nconst FALLBACK: InlineMessageDefaults = {\n live: 'off',\n mark: 'glyph',\n prefixes: INLINE_MESSAGE_PREFIXES,\n size: 'sm',\n tone: 'secondary',\n};\n\nexport const INLINE_MESSAGE_DEFAULTS = new InjectionToken<InlineMessageDefaults>(\n 'slotted inline message defaults',\n { providedIn: 'root', factory: () => FALLBACK },\n);\n\n/**\n * An application decides once what its messages are painted like and — the one\n * that matters — what its severities are called, rather than repeating the same\n * inputs on every field in a form. A message that states any of them itself\n * still wins: an explicit input is never overridden by the token.\n *\n * `prefixes` is merged over the shipped table rather than replacing it, so a\n * Portuguese application writes the three words it has and inherits the shape.\n */\nexport function provideInlineMessageDefaults(\n defaults: Partial<Omit<InlineMessageDefaults, 'prefixes'>> & {\n prefixes?: Partial<InlineMessagePrefixes>;\n },\n) {\n return {\n provide: INLINE_MESSAGE_DEFAULTS,\n useFactory: (): InlineMessageDefaults => ({\n live: defaults.live ?? FALLBACK.live,\n mark: defaults.mark ?? FALLBACK.mark,\n prefixes: { ...FALLBACK.prefixes, ...defaults.prefixes },\n size: defaults.size ?? FALLBACK.size,\n tone: defaults.tone ?? FALLBACK.tone,\n }),\n };\n}\n\n/** What a message renders as here, before it states anything of its own. */\nexport function injectInlineMessageDefaults(): InlineMessageDefaults {\n return inject(INLINE_MESSAGE_DEFAULTS);\n}\n\n/**\n * Application-scoped rather than module-scoped, for the reason `tag` records: a\n * module-level counter produces colliding sequences when two applications\n * render in one server process, and the server and the client sequences must\n * match for hydration.\n */\n@Injectable({ providedIn: 'root' })\nexport class SlInlineMessageIdFactory {\n private count = 0;\n\n next() {\n this.count += 1;\n return `slotted-inline-message-${this.count}`;\n }\n}\n","import {\n booleanAttribute,\n ChangeDetectionStrategy,\n Component,\n computed,\n contentChild,\n Directive,\n forwardRef,\n HostAttributeToken,\n inject,\n input,\n ViewEncapsulation,\n} from '@angular/core';\nimport { BUTTON_DEFAULTS_TOKEN } from '@slotted/angular/button';\nimport { SlGlyph, SlIcon } from '@slotted/angular/icon';\nimport type { GlyphName } from '@slotted/angular/icon';\n\nimport { injectInlineMessageDefaults, SlInlineMessageIdFactory } from './inline-message-defaults';\nimport type {\n InlineMessageLive,\n InlineMessageMark,\n InlineMessageSize,\n InlineMessageTone,\n} from './inline-message-defaults';\n\nexport type {\n InlineMessageLive,\n InlineMessageMark,\n InlineMessagePrefixes,\n InlineMessageSize,\n InlineMessageTone,\n} from './inline-message-defaults';\n\n/**\n * The glyph each tone draws: `specs/components/inline-message/contract.json`\n * holds the map. Help is not a severity and draws none.\n */\nconst TONE_GLYPH: Record<InlineMessageTone, GlyphName | null> = {\n accent: 'status-info',\n secondary: null,\n info: 'status-info',\n success: 'status-success',\n warning: 'status-warning',\n danger: 'status-danger',\n};\n\n/**\n * The two roles that announce, and the value that does not. Both roles imply\n * `aria-live` and `aria-atomic`, so the whole message is read rather than the\n * word that changed, and nothing here writes either attribute by hand.\n */\nconst LIVE_ROLE: Record<InlineMessageLive, string | null> = {\n off: null,\n polite: 'status',\n assertive: 'alert',\n};\n\n/**\n * One sentence about one field or one control; a message about a section is\n * an alert. Help, an error, a warning, a confirmation, or a wait.\n *\n * The directive is written on the consumer's own element, and the element it\n * belongs on is a `p`: the message is a sentence of prose about something else,\n * and a paragraph is the box a screen reader reads as one unit.\n *\n * **The severity is a word as well as a colour.** A reader who cannot see the\n * message hears the sentence and nothing else — neither the red ink nor the\n * crossed circle reaches the accessibility tree — so the family writes the\n * severity in clipped text before the message, which is GOV.UK's answer\n * generalised to every tone and to a table an application replaces once.\n *\n * **The role goes on this element, not on an inner one.** `slAlert` puts its\n * live role on the text part because it has a dismiss button beside the text,\n * and MDN's `alert` role reference is explicit that the role is for text\n * content alone. This family has no controls, so there is nothing to keep out.\n */\n/** What the message queries for, declared before the directive it stands for. */\nexport abstract class SlInlineMessageActionsRef {}\n\n@Component({\n selector: '[slInlineMessage]',\n standalone: true,\n exportAs: 'slInlineMessage',\n imports: [SlGlyph, SlIcon],\n template: `@if (prefixWord() !== '') {\n <span data-part=\"prefix\" data-part-prefix=\"\">{{ prefixWord() }}</span>\n }\n @if (!hideIcon()) {\n <span aria-hidden=\"true\" data-part=\"icon\" data-part-icon=\"\"\n ><ng-content select=\"[slInlineMessageIcon]\">\n @if (glyph(); as name) {\n <span slIcon><svg slGlyph [name]=\"name\"></svg></span>\n }</ng-content\n ></span>\n }\n <span\n data-part=\"text\"\n data-part-text=\"\"\n [attr.id]=\"grouped() ? textId : null\"\n [attr.role]=\"grouped() ? liveRole() : null\"\n ><ng-content\n /></span>\n <ng-content select=\"[slInlineMessageActions]\" />`,\n styleUrl: '../../../styles/src/inline-message/inline-message.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: {\n 'data-ui': 'inline-message',\n 'data-ui-inline-message': '',\n 'data-part': 'root',\n 'data-part-root': '',\n '[attr.data-tone]': 'resolvedTone()',\n '[attr.data-size]': 'resolvedSize()',\n '[attr.data-live]': 'resolvedLive()',\n '[attr.data-mark]': 'resolvedMark()',\n '[attr.data-loading]': \"loading() ? '' : null\",\n '[attr.data-disabled]': \"disabled() === true ? '' : null\",\n '[attr.data-reserve]': \"reserve() ? '' : null\",\n '[attr.role]': 'role()',\n '[attr.aria-labelledby]': 'grouped() ? textId : null',\n '[attr.id]': 'messageId',\n },\n})\nexport class SlInlineMessage {\n /** Defaults to the token, then to `secondary` — help text. */\n readonly tone = input<InlineMessageTone | undefined>(undefined);\n /** Defaults to the token, then to `sm`. */\n readonly size = input<InlineMessageSize | undefined>(undefined);\n /** Defaults to the token, then to `off`. */\n readonly live = input<InlineMessageLive | undefined>(undefined);\n /**\n * Which mark is drawn. Defaults to the token, then to `glyph`. `slField` and\n * `slFieldGroup` ask for `none` instead, because a form reads a column of\n * sentences rather than a column of silhouettes.\n */\n readonly mark = input<InlineMessageMark | undefined>(undefined);\n /**\n * The word read before the message. Unstated is the tone's own — `Error:`,\n * `Warning:`, `Success:` — and the empty string removes it, for a message\n * whose sentence already names the severity.\n */\n readonly prefix = input<string | undefined>(undefined);\n /**\n * Removes the mark's box from the markup, for a message that carries its own\n * artwork beside it. `mark='none'` is the other way to draw nothing: it is an\n * axis a provider can set for every message under it, and it leaves the box\n * in place for `reserve` to hold a line open with.\n */\n readonly hideIcon = input(false, { transform: booleanAttribute });\n /** The message is waiting for something: the mark becomes a turning ring. */\n readonly loading = input(false, { transform: booleanAttribute });\n /**\n * Unstated rather than `false`, so a `field` can answer it once this family\n * is inside one. Stated, it wins.\n */\n readonly disabled = input<boolean | undefined, boolean | string | undefined>(undefined, {\n transform: (value) => (value === undefined ? undefined : booleanAttribute(value)),\n });\n /**\n * Holds one line box open whether or not there is a message, so the form\n * below does not move when the error arrives.\n */\n readonly reserve = input(false, { transform: booleanAttribute });\n\n private readonly defaults = injectInlineMessageDefaults();\n\n /**\n * An identifier bound by whatever renders the message. It is what a family\n * that composes with this one — `field`, whose description and error *are*\n * inline messages — uses to give the message an identifier derived from its\n * own base, which a static attribute cannot express and a directive on the\n * same element cannot write.\n */\n readonly id = input<string | undefined>(undefined);\n\n private readonly writtenId = inject(new HostAttributeToken('id'), { optional: true });\n private readonly generatedId = inject(SlInlineMessageIdFactory).next();\n\n /**\n * The identifier an `aria-describedby` or an `aria-errormessage` points at.\n * A consumer's own is never replaced, and the generated one is reachable from\n * a template through `exportAs` — which is the reach an Angular template has\n * and a React consumer answers with `useId` in their own component.\n *\n * A getter rather than a signal, so `message.messageId` keeps reading as a\n * value in every template that already writes it. The host binding below\n * calls it in a reactive context, so the `id` input above is tracked.\n */\n get messageId(): string {\n return this.id() ?? this.writtenId ?? this.generatedId;\n }\n /** The sentence's id, which names the group a message with actions becomes. */\n protected get textId(): string {\n return `${this.messageId}-text`;\n }\n\n /**\n * A role the consumer wrote is never replaced by the family's. A host binding\n * wins over a static attribute in Angular, so the written value has to be\n * read before the binding is computed rather than after — the asymmetry with\n * React, where a consumer's prop simply spreads over the family's.\n */\n private readonly writtenRole = inject(new HostAttributeToken('role'), { optional: true });\n\n protected readonly resolvedTone = computed(() => this.tone() ?? this.defaults.tone);\n readonly resolvedSize = computed(() => this.size() ?? this.defaults.size);\n protected readonly resolvedLive = computed(() => this.live() ?? this.defaults.live);\n protected readonly resolvedMark = computed(() => this.mark() ?? this.defaults.mark);\n /* The glyph the family draws when the page supplies none. A message that is\n waiting draws a ring instead, and one that asked for no mark draws none. */\n protected readonly glyph = computed<GlyphName | null>(() => {\n const mark = this.resolvedMark();\n if (this.loading() || mark === 'none') return null;\n return mark === 'dot' ? 'dot' : TONE_GLYPH[this.resolvedTone()];\n });\n protected readonly liveRole = computed(() => LIVE_ROLE[this.resolvedLive()]);\n /**\n * A message that holds `[slInlineMessageActions]` is a group named by its\n * sentence, written on a `div`: a paragraph cannot hold a button. Its live\n * role moves to the sentence, so the buttons are not announced with it.\n */\n private readonly actions = contentChild(SlInlineMessageActionsRef);\n protected readonly grouped = computed(() => this.actions() !== undefined);\n protected readonly role = computed(\n () => this.writtenRole ?? (this.grouped() ? 'group' : this.liveRole()),\n );\n\n /* Unstated asks the table; the empty string is a consumer removing the word. */\n protected readonly prefixWord = computed(\n () => this.prefix() ?? this.defaults.prefixes[this.resolvedTone()] ?? '',\n );\n}\n\n/**\n * The answers a message offers, after its sentence: two amounts the reader\n * may have meant, a way to undo. Written on a `div` inside the message, which\n * is then a `div` itself; the buttons take the message's size.\n */\n@Directive({\n selector: '[slInlineMessageActions]',\n standalone: true,\n exportAs: 'slInlineMessageActions',\n host: { 'data-part': 'actions', 'data-part-actions': '' },\n providers: [\n { provide: SlInlineMessageActionsRef, useExisting: forwardRef(() => SlInlineMessageActions) },\n {\n provide: BUTTON_DEFAULTS_TOKEN,\n useFactory: () => ({\n ...inject(BUTTON_DEFAULTS_TOKEN, { skipSelf: true }),\n size: inject(SlInlineMessage).resolvedSize(),\n }),\n },\n ],\n})\nexport class SlInlineMessageActions {}\n","import { Directive } from '@angular/core';\n\n/**\n * A mark the page supplies instead of the tone's own. It is projected into the\n * box the family draws, so it keeps the size, the colour and the place on the\n * message's first line the tone's mark would have had.\n *\n * It is a marker rather than a component: what goes inside is the page's own\n * artwork, and the family has nothing to add to it beyond where it sits.\n */\n@Directive({\n selector: '[slInlineMessageIcon]',\n standalone: true,\n exportAs: 'slInlineMessage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,yBAAyB,EAAE,WAAW,EAAE,UAAU,CAAC,MAAK,sBAAuB,CAAC,EAAE;AAC7F,wBAAA;AACE,4BAAA,OAAO,EAAE,qBAAqB;AAC9B,4BAAA,UAAU,EAAE,OAAO;gCACjB,GAAG,MAAM,CAAC,qBAAqB,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;AACpD,gCAAA,IAAI,EAAE,MAAM,CAAC,eAAe,CAAC,CAAC,YAAY,EAAE;6BAC7C,CAAC;AACH,yBAAA;AACF,qBAAA;AACF,iBAAA;;;AC3PD;;;;;;;AAOG;MAMU,mBAAmB,CAAA;uGAAnB,mBAAmB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;2FAAnB,mBAAmB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,uBAAA,EAAA,QAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;2FAAnB,mBAAmB,EAAA,UAAA,EAAA,CAAA;kBAL/B,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,uBAAuB;AACjC,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,QAAQ,EAAE,qBAAqB;AAChC,iBAAA;;;ACdD;;AAEG;;"}
1
+ {"version":3,"file":"slotted-angular-inline-message.mjs","sources":["../../inline-message/src/inline-message-defaults.ts","../../inline-message/src/inline-message.ts","../../inline-message/src/inline-message-parts.ts","../../inline-message/src/slotted-angular-inline-message.ts"],"sourcesContent":["import { inject, Injectable, InjectionToken } from '@angular/core';\n\n/** Which of the five semantic colors the message speaks in. */\nexport type InlineMessageTone = 'accent' | 'secondary' | 'info' | 'success' | 'warning' | 'danger';\n\n/**\n * The type step the message sits at. `sm` sits beside a compact field; `md`\n * beside a large field. A message about a section is an alert. Both read the control scales, which the theme\n * restates per density.\n */\nexport type InlineMessageSize = 'sm' | 'md';\n\n/**\n * Which mark the message draws. `glyph` is the tone's own silhouette — the\n * circled information, check, diamond and circled exclamation. `dot` is a\n * neutral bullet in the tone's ink, the same shape for every tone including\n * the help tone that draws no silhouette at all, so a column of messages under\n * one field starts on one left edge. `none` draws nothing, and the tone is\n * then said by the ink and by the weight of the sentence: it is what `field`\n * and `field-group` ask for, because a silhouette repeated under every control\n * of a form is texture rather than a warning (F2).\n */\nexport type InlineMessageMark = 'glyph' | 'dot' | 'none';\n\n/**\n * Whether the message announces itself, and how loudly. `off` is the default,\n * because the WAI-ARIA APG records that a message already present when the page\n * finishes loading is not announced whatever role it carries.\n */\nexport type InlineMessageLive = 'off' | 'polite' | 'assertive';\n\n/**\n * The word a reader hears before the message. `null` is a tone that is not a\n * severity — help and information announce themselves by their sentence.\n */\nexport type InlineMessagePrefixes = Record<InlineMessageTone, string | null>;\n\n/**\n * The word a reader hears before the message, per tone.\n *\n * GOV.UK's Error message component publishes the idea and hard-codes the word;\n * this table generalizes it to every tone that is a severity and puts it behind\n * the token below, which is the only translation surface this library has\n * today. `accent`, `secondary` and `info` carry none: information and help announce\n * themselves by their sentence, and a reader told “Information:” before every\n * hint hears one more word per field for nothing.\n */\nexport const INLINE_MESSAGE_PREFIXES: InlineMessagePrefixes = {\n accent: null,\n secondary: null,\n info: null,\n success: 'Success:',\n warning: 'Warning:',\n danger: 'Error:',\n};\n\nexport interface InlineMessageDefaults {\n live: InlineMessageLive;\n mark: InlineMessageMark;\n prefixes: InlineMessagePrefixes;\n size: InlineMessageSize;\n tone: InlineMessageTone;\n}\n\nconst FALLBACK: InlineMessageDefaults = {\n live: 'off',\n mark: 'glyph',\n prefixes: INLINE_MESSAGE_PREFIXES,\n size: 'sm',\n tone: 'secondary',\n};\n\nexport const INLINE_MESSAGE_DEFAULTS = new InjectionToken<InlineMessageDefaults>(\n 'slotted inline message defaults',\n { providedIn: 'root', factory: () => FALLBACK },\n);\n\n/**\n * An application decides once what its messages are painted like and — the one\n * that matters — what its severities are called, rather than repeating the same\n * inputs on every field in a form. A message that states any of them itself\n * still wins: an explicit input is never overridden by the token.\n *\n * `prefixes` is merged over the shipped table rather than replacing it, so a\n * Portuguese application writes the three words it has and inherits the shape.\n */\nexport function provideInlineMessageDefaults(\n defaults: Partial<Omit<InlineMessageDefaults, 'prefixes'>> & {\n prefixes?: Partial<InlineMessagePrefixes>;\n },\n) {\n return {\n provide: INLINE_MESSAGE_DEFAULTS,\n useFactory: (): InlineMessageDefaults => ({\n live: defaults.live ?? FALLBACK.live,\n mark: defaults.mark ?? FALLBACK.mark,\n prefixes: { ...FALLBACK.prefixes, ...defaults.prefixes },\n size: defaults.size ?? FALLBACK.size,\n tone: defaults.tone ?? FALLBACK.tone,\n }),\n };\n}\n\n/** What a message renders as here, before it states anything of its own. */\nexport function injectInlineMessageDefaults(): InlineMessageDefaults {\n return inject(INLINE_MESSAGE_DEFAULTS);\n}\n\n/**\n * Application-scoped rather than module-scoped, for the reason `tag` records: a\n * module-level counter produces colliding sequences when two applications\n * render in one server process, and the server and the client sequences must\n * match for hydration.\n */\n@Injectable({ providedIn: 'root' })\nexport class SlInlineMessageIdFactory {\n private count = 0;\n\n next() {\n this.count += 1;\n return `slotted-inline-message-${this.count}`;\n }\n}\n","import {\n booleanAttribute,\n ChangeDetectionStrategy,\n Component,\n computed,\n contentChild,\n Directive,\n forwardRef,\n HostAttributeToken,\n inject,\n input,\n ViewEncapsulation,\n} from '@angular/core';\nimport { BUTTON_DEFAULTS_TOKEN } from '@slotted/angular/button';\nimport { SlGlyph, SlIcon } from '@slotted/angular/icon';\nimport type { GlyphName } from '@slotted/angular/icon';\n\nimport { injectInlineMessageDefaults, SlInlineMessageIdFactory } from './inline-message-defaults';\nimport type {\n InlineMessageLive,\n InlineMessageMark,\n InlineMessageSize,\n InlineMessageTone,\n} from './inline-message-defaults';\n\nexport type {\n InlineMessageLive,\n InlineMessageMark,\n InlineMessagePrefixes,\n InlineMessageSize,\n InlineMessageTone,\n} from './inline-message-defaults';\n\n/**\n * The glyph each tone draws: `specs/components/inline-message/contract.json`\n * holds the map. Help is not a severity and draws none.\n */\nconst TONE_GLYPH: Record<InlineMessageTone, GlyphName | null> = {\n accent: 'status-info',\n secondary: null,\n info: 'status-info',\n success: 'status-success',\n warning: 'status-warning',\n danger: 'status-danger',\n};\n\n/**\n * The two roles that announce, and the value that does not. Both roles imply\n * `aria-live` and `aria-atomic`, so the whole message is read rather than the\n * word that changed, and nothing here writes either attribute by hand.\n */\nconst LIVE_ROLE: Record<InlineMessageLive, string | null> = {\n off: null,\n polite: 'status',\n assertive: 'alert',\n};\n\n/**\n * One sentence about one field or one control; a message about a section is\n * an alert. Help, an error, a warning, a confirmation, or a wait.\n *\n * The directive is written on the consumer's own element, and the element it\n * belongs on is a `p`: the message is a sentence of prose about something else,\n * and a paragraph is the box a screen reader reads as one unit.\n *\n * **The severity is a word as well as a color.** A reader who cannot see the\n * message hears the sentence and nothing else — neither the red ink nor the\n * crossed circle reaches the accessibility tree — so the family writes the\n * severity in clipped text before the message, which is GOV.UK's answer\n * generalized to every tone and to a table an application replaces once.\n *\n * **The role goes on this element, not on an inner one.** `slAlert` puts its\n * live role on the text part because it has a dismiss button beside the text,\n * and MDN's `alert` role reference is explicit that the role is for text\n * content alone. This family has no controls, so there is nothing to keep out.\n */\n/** What the message queries for, declared before the directive it stands for. */\nexport abstract class SlInlineMessageActionsRef {}\n\n@Component({\n selector: '[slInlineMessage]',\n standalone: true,\n exportAs: 'slInlineMessage',\n imports: [SlGlyph, SlIcon],\n template: `@if (prefixWord() !== '') {\n <span data-part=\"prefix\" data-part-prefix=\"\">{{ prefixWord() }}</span>\n }\n @if (!hideIcon()) {\n <span aria-hidden=\"true\" data-part=\"icon\" data-part-icon=\"\"\n ><ng-content select=\"[slInlineMessageIcon]\">\n @if (glyph(); as name) {\n <span slIcon><svg slGlyph [name]=\"name\"></svg></span>\n }</ng-content\n ></span>\n }\n <span\n data-part=\"text\"\n data-part-text=\"\"\n [attr.id]=\"grouped() ? textId : null\"\n [attr.role]=\"grouped() ? liveRole() : null\"\n ><ng-content\n /></span>\n <ng-content select=\"[slInlineMessageActions]\" />`,\n styleUrl: '../../../styles/src/inline-message/inline-message.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: {\n 'data-ui': 'inline-message',\n 'data-ui-inline-message': '',\n 'data-part': 'root',\n 'data-part-root': '',\n '[attr.data-tone]': 'resolvedTone()',\n '[attr.data-size]': 'resolvedSize()',\n '[attr.data-live]': 'resolvedLive()',\n '[attr.data-mark]': 'resolvedMark()',\n '[attr.data-loading]': \"loading() ? '' : null\",\n '[attr.data-disabled]': \"disabled() === true ? '' : null\",\n '[attr.data-reserve]': \"reserve() ? '' : null\",\n '[attr.role]': 'role()',\n '[attr.aria-labelledby]': 'grouped() ? textId : null',\n '[attr.id]': 'messageId',\n },\n})\nexport class SlInlineMessage {\n /** Defaults to the token, then to `secondary` — help text. */\n readonly tone = input<InlineMessageTone | undefined>(undefined);\n /** Defaults to the token, then to `sm`. */\n readonly size = input<InlineMessageSize | undefined>(undefined);\n /** Defaults to the token, then to `off`. */\n readonly live = input<InlineMessageLive | undefined>(undefined);\n /**\n * Which mark is drawn. Defaults to the token, then to `glyph`. `slField` and\n * `slFieldGroup` ask for `none` instead, because a form reads a column of\n * sentences rather than a column of silhouettes.\n */\n readonly mark = input<InlineMessageMark | undefined>(undefined);\n /**\n * The word read before the message. Unstated is the tone's own — `Error:`,\n * `Warning:`, `Success:` — and the empty string removes it, for a message\n * whose sentence already names the severity.\n */\n readonly prefix = input<string | undefined>(undefined);\n /**\n * Removes the mark's box from the markup, for a message that carries its own\n * artwork beside it. `mark='none'` is the other way to draw nothing: it is an\n * axis a provider can set for every message under it, and it leaves the box\n * in place for `reserve` to hold a line open with.\n */\n readonly hideIcon = input(false, { transform: booleanAttribute });\n /** The message is waiting for something: the mark becomes a turning ring. */\n readonly loading = input(false, { transform: booleanAttribute });\n /**\n * Unstated rather than `false`, so a `field` can answer it once this family\n * is inside one. Stated, it wins.\n */\n readonly disabled = input<boolean | undefined, boolean | string | undefined>(undefined, {\n transform: (value) => (value === undefined ? undefined : booleanAttribute(value)),\n });\n /**\n * Holds one line box open whether or not there is a message, so the form\n * below does not move when the error arrives.\n */\n readonly reserve = input(false, { transform: booleanAttribute });\n\n private readonly defaults = injectInlineMessageDefaults();\n\n /**\n * An identifier bound by whatever renders the message. It is what a family\n * that composes with this one — `field`, whose description and error *are*\n * inline messages — uses to give the message an identifier derived from its\n * own base, which a static attribute cannot express and a directive on the\n * same element cannot write.\n */\n readonly id = input<string | undefined>(undefined);\n\n private readonly writtenId = inject(new HostAttributeToken('id'), { optional: true });\n private readonly generatedId = inject(SlInlineMessageIdFactory).next();\n\n /**\n * The identifier an `aria-describedby` or an `aria-errormessage` points at.\n * A consumer's own is never replaced, and the generated one is reachable from\n * a template through `exportAs` — which is the reach an Angular template has\n * and a React consumer answers with `useId` in their own component.\n *\n * A getter rather than a signal, so `message.messageId` keeps reading as a\n * value in every template that already writes it. The host binding below\n * calls it in a reactive context, so the `id` input above is tracked.\n */\n get messageId(): string {\n return this.id() ?? this.writtenId ?? this.generatedId;\n }\n /** The sentence's id, which names the group a message with actions becomes. */\n protected get textId(): string {\n return `${this.messageId}-text`;\n }\n\n /**\n * A role the consumer wrote is never replaced by the family's. A host binding\n * wins over a static attribute in Angular, so the written value has to be\n * read before the binding is computed rather than after — the asymmetry with\n * React, where a consumer's prop simply spreads over the family's.\n */\n private readonly writtenRole = inject(new HostAttributeToken('role'), { optional: true });\n\n protected readonly resolvedTone = computed(() => this.tone() ?? this.defaults.tone);\n readonly resolvedSize = computed(() => this.size() ?? this.defaults.size);\n protected readonly resolvedLive = computed(() => this.live() ?? this.defaults.live);\n protected readonly resolvedMark = computed(() => this.mark() ?? this.defaults.mark);\n /* The glyph the family draws when the page supplies none. A message that is\n waiting draws a ring instead, and one that asked for no mark draws none. */\n protected readonly glyph = computed<GlyphName | null>(() => {\n const mark = this.resolvedMark();\n if (this.loading() || mark === 'none') return null;\n return mark === 'dot' ? 'dot' : TONE_GLYPH[this.resolvedTone()];\n });\n protected readonly liveRole = computed(() => LIVE_ROLE[this.resolvedLive()]);\n /**\n * A message that holds `[slInlineMessageActions]` is a group named by its\n * sentence, written on a `div`: a paragraph cannot hold a button. Its live\n * role moves to the sentence, so the buttons are not announced with it.\n */\n private readonly actions = contentChild(SlInlineMessageActionsRef);\n protected readonly grouped = computed(() => this.actions() !== undefined);\n protected readonly role = computed(\n () => this.writtenRole ?? (this.grouped() ? 'group' : this.liveRole()),\n );\n\n /* Unstated asks the table; the empty string is a consumer removing the word. */\n protected readonly prefixWord = computed(\n () => this.prefix() ?? this.defaults.prefixes[this.resolvedTone()] ?? '',\n );\n}\n\n/**\n * The answers a message offers, after its sentence: two amounts the reader\n * may have meant, a way to undo. Written on a `div` inside the message, which\n * is then a `div` itself; the buttons take the message's size.\n */\n@Directive({\n selector: '[slInlineMessageActions]',\n standalone: true,\n exportAs: 'slInlineMessageActions',\n host: { 'data-part': 'actions', 'data-part-actions': '' },\n providers: [\n { provide: SlInlineMessageActionsRef, useExisting: forwardRef(() => SlInlineMessageActions) },\n {\n provide: BUTTON_DEFAULTS_TOKEN,\n useFactory: () => ({\n ...inject(BUTTON_DEFAULTS_TOKEN, { skipSelf: true }),\n size: inject(SlInlineMessage).resolvedSize(),\n }),\n },\n ],\n})\nexport class SlInlineMessageActions {}\n","import { Directive } from '@angular/core';\n\n/**\n * A mark the page supplies instead of the tone's own. It is projected into the\n * box the family draws, so it keeps the size, the color and the place on the\n * message's first line the tone's mark would have had.\n *\n * It is a marker rather than a component: what goes inside is the page's own\n * artwork, and the family has nothing to add to it beyond where it sits.\n */\n@Directive({\n selector: '[slInlineMessageIcon]',\n standalone: true,\n exportAs: 'slInlineMessageIcon',\n})\nexport class SlInlineMessageIcon {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;AAqCA;;;;;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B;AAC9B,4BAAA,UAAU,EAAE,OAAO;gCACjB,GAAG,MAAM,CAAC,qBAAqB,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;AACpD,gCAAA,IAAI,EAAE,MAAM,CAAC,eAAe,CAAC,CAAC,YAAY,EAAE;6BAC7C,CAAC;AACH,yBAAA;AACF,qBAAA;AACF,iBAAA;;;AC3PD;;;;;;;AAOG;MAMU,mBAAmB,CAAA;uGAAnB,mBAAmB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;2FAAnB,mBAAmB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,uBAAA,EAAA,QAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;2FAAnB,mBAAmB,EAAA,UAAA,EAAA,CAAA;kBAL/B,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,uBAAuB;AACjC,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,QAAQ,EAAE,qBAAqB;AAChC,iBAAA;;;ACdD;;AAEG;;"}
@@ -7,7 +7,7 @@ import { input, ViewEncapsulation, ChangeDetectionStrategy, Component } from '@a
7
7
  * wrote, so a list of tags stays a list.
8
8
  *
9
9
  * An axis reaches the stylesheet only when someone decided it. The base rule
10
- * already carries the family defaults — wrapping, centred, separated by half a
10
+ * already carries the family defaults — wrapping, centerd, separated by half a
11
11
  * rem — and a layout is the most numerous element in a document.
12
12
  *
13
13
  * There is no input that reverses the children. The order they are written in
@@ -38,8 +38,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImpor
38
38
  'data-part-root': '',
39
39
  '[attr.data-gap]': 'gap() ?? null',
40
40
  '[attr.data-align]': 'align() ?? null',
41
- /* `align` is also an obsolete HTML attribute a browser still honours on a
42
- div, centring its text; written statically for the input it would stay. */
41
+ /* `align` is also an obsolete HTML attribute a browser still honors on a
42
+ div, centering its text; written statically for the input it would stay. */
43
43
  '[attr.align]': 'null',
44
44
  '[attr.data-justify]': 'justify() ?? null',
45
45
  '[attr.data-wrap]': 'wrap() ?? null',
@@ -1 +1 @@
1
- {"version":3,"file":"slotted-angular-inline.mjs","sources":["../../inline/src/inline.ts","../../inline/src/slotted-angular-inline.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, input, ViewEncapsulation } from '@angular/core';\n\n/**\n * A step on the space scale. Separation is chosen from the scale rather than\n * stated as a length, so a theme retunes every layout at once and no component\n * invents a rhythm of its own. `0` is the absence of separation.\n */\nexport type InlineGap = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;\n\n/** Across the flow, which for a run is the block axis. */\nexport type InlineAlign = 'start' | 'center' | 'end' | 'stretch' | 'baseline';\n\n/** Along the flow, which for a run is the inline axis. */\nexport type InlineJustify = 'start' | 'center' | 'end' | 'between' | 'around' | 'evenly';\n\nexport type InlineWrap = 'wrap' | 'nowrap';\n\n/**\n * Inline arranges its children along the inline axis and lets them wrap. It\n * paints nothing and adds no semantics: the element is the one the consumer\n * wrote, so a list of tags stays a list.\n *\n * An axis reaches the stylesheet only when someone decided it. The base rule\n * already carries the family defaults — wrapping, centred, separated by half a\n * rem — and a layout is the most numerous element in a document.\n *\n * There is no input that reverses the children. The order they are written in\n * is the order they are read in, by a screen reader and by the Tab key alike.\n */\n@Component({\n selector: '[slInline]',\n standalone: true,\n exportAs: 'slInline',\n template: '<ng-content></ng-content>',\n styleUrl: '../../../styles/src/inline/inline.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: {\n 'data-ui': 'inline',\n 'data-ui-inline': '',\n 'data-part': 'root',\n 'data-part-root': '',\n '[attr.data-gap]': 'gap() ?? null',\n '[attr.data-align]': 'align() ?? null',\n /* `align` is also an obsolete HTML attribute a browser still honours on a\n div, centring its text; written statically for the input it would stay. */\n '[attr.align]': 'null',\n '[attr.data-justify]': 'justify() ?? null',\n '[attr.data-wrap]': 'wrap() ?? null',\n },\n})\nexport class SlInline {\n /** Positions items across the flow. `baseline` puts their type on one line. */\n readonly align = input<InlineAlign>();\n /** Separation between items, as a step on the space scale. */\n readonly gap = input<InlineGap>();\n /** Positions items along the flow, and distributes the space between them. */\n readonly justify = input<InlineJustify>();\n /** `nowrap` keeps one line, and overflows a container narrower than it. */\n readonly wrap = input<InlineWrap>();\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;AAiBA;;;;;;;;;;;AAWG;MAuBU,QAAQ,CAAA;;AAEV,IAAA,KAAK,GAAG,KAAK;yFAAe;;AAE5B,IAAA,GAAG,GAAG,KAAK;uFAAa;;AAExB,IAAA,OAAO,GAAG,KAAK;2FAAiB;;AAEhC,IAAA,IAAI,GAAG,KAAK;wFAAc;uGARxB,QAAQ,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAAR,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,QAAQ,m3BAlBT,2BAA2B,EAAA,QAAA,EAAA,IAAA,EAAA,MAAA,EAAA,CAAA,ozDAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,aAAA,EAAA,EAAA,CAAA,iBAAA,CAAA,IAAA,EAAA,CAAA;;2FAkB1B,QAAQ,EAAA,UAAA,EAAA,CAAA;kBAtBpB,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,YAAY,EAAA,UAAA,EACV,IAAI,EAAA,QAAA,EACN,UAAU,YACV,2BAA2B,EAAA,eAAA,EAEpB,uBAAuB,CAAC,MAAM,EAAA,aAAA,EAChC,iBAAiB,CAAC,IAAI,EAAA,IAAA,EAC/B;AACJ,wBAAA,SAAS,EAAE,QAAQ;AACnB,wBAAA,gBAAgB,EAAE,EAAE;AACpB,wBAAA,WAAW,EAAE,MAAM;AACnB,wBAAA,gBAAgB,EAAE,EAAE;AACpB,wBAAA,iBAAiB,EAAE,eAAe;AAClC,wBAAA,mBAAmB,EAAE,iBAAiB;AACtC;AAC6E;AAC7E,wBAAA,cAAc,EAAE,MAAM;AACtB,wBAAA,qBAAqB,EAAE,mBAAmB;AAC1C,wBAAA,kBAAkB,EAAE,gBAAgB;AACrC,qBAAA,EAAA,MAAA,EAAA,CAAA,ozDAAA,CAAA,EAAA;;;ACjDH;;AAEG;;"}
1
+ {"version":3,"file":"slotted-angular-inline.mjs","sources":["../../inline/src/inline.ts","../../inline/src/slotted-angular-inline.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, input, ViewEncapsulation } from '@angular/core';\n\n/**\n * A step on the space scale. Separation is chosen from the scale rather than\n * stated as a length, so a theme retunes every layout at once and no component\n * invents a rhythm of its own. `0` is the absence of separation.\n */\nexport type InlineGap = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;\n\n/** Across the flow, which for a run is the block axis. */\nexport type InlineAlign = 'start' | 'center' | 'end' | 'stretch' | 'baseline';\n\n/** Along the flow, which for a run is the inline axis. */\nexport type InlineJustify = 'start' | 'center' | 'end' | 'between' | 'around' | 'evenly';\n\nexport type InlineWrap = 'wrap' | 'nowrap';\n\n/**\n * Inline arranges its children along the inline axis and lets them wrap. It\n * paints nothing and adds no semantics: the element is the one the consumer\n * wrote, so a list of tags stays a list.\n *\n * An axis reaches the stylesheet only when someone decided it. The base rule\n * already carries the family defaults — wrapping, centerd, separated by half a\n * rem — and a layout is the most numerous element in a document.\n *\n * There is no input that reverses the children. The order they are written in\n * is the order they are read in, by a screen reader and by the Tab key alike.\n */\n@Component({\n selector: '[slInline]',\n standalone: true,\n exportAs: 'slInline',\n template: '<ng-content></ng-content>',\n styleUrl: '../../../styles/src/inline/inline.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: {\n 'data-ui': 'inline',\n 'data-ui-inline': '',\n 'data-part': 'root',\n 'data-part-root': '',\n '[attr.data-gap]': 'gap() ?? null',\n '[attr.data-align]': 'align() ?? null',\n /* `align` is also an obsolete HTML attribute a browser still honors on a\n div, centering its text; written statically for the input it would stay. */\n '[attr.align]': 'null',\n '[attr.data-justify]': 'justify() ?? null',\n '[attr.data-wrap]': 'wrap() ?? null',\n },\n})\nexport class SlInline {\n /** Positions items across the flow. `baseline` puts their type on one line. */\n readonly align = input<InlineAlign>();\n /** Separation between items, as a step on the space scale. */\n readonly gap = input<InlineGap>();\n /** Positions items along the flow, and distributes the space between them. */\n readonly justify = input<InlineJustify>();\n /** `nowrap` keeps one line, and overflows a container narrower than it. */\n readonly wrap = input<InlineWrap>();\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;AAiBA;;;;;;;;;;;AAWG;MAuBU,QAAQ,CAAA;;AAEV,IAAA,KAAK,GAAG,KAAK;yFAAe;;AAE5B,IAAA,GAAG,GAAG,KAAK;uFAAa;;AAExB,IAAA,OAAO,GAAG,KAAK;2FAAiB;;AAEhC,IAAA,IAAI,GAAG,KAAK;wFAAc;uGARxB,QAAQ,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAAR,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,QAAQ,m3BAlBT,2BAA2B,EAAA,QAAA,EAAA,IAAA,EAAA,MAAA,EAAA,CAAA,ozDAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,aAAA,EAAA,EAAA,CAAA,iBAAA,CAAA,IAAA,EAAA,CAAA;;2FAkB1B,QAAQ,EAAA,UAAA,EAAA,CAAA;kBAtBpB,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,YAAY,EAAA,UAAA,EACV,IAAI,EAAA,QAAA,EACN,UAAU,YACV,2BAA2B,EAAA,eAAA,EAEpB,uBAAuB,CAAC,MAAM,EAAA,aAAA,EAChC,iBAAiB,CAAC,IAAI,EAAA,IAAA,EAC/B;AACJ,wBAAA,SAAS,EAAE,QAAQ;AACnB,wBAAA,gBAAgB,EAAE,EAAE;AACpB,wBAAA,WAAW,EAAE,MAAM;AACnB,wBAAA,gBAAgB,EAAE,EAAE;AACpB,wBAAA,iBAAiB,EAAE,eAAe;AAClC,wBAAA,mBAAmB,EAAE,iBAAiB;AACtC;AAC8E;AAC9E,wBAAA,cAAc,EAAE,MAAM;AACtB,wBAAA,qBAAqB,EAAE,mBAAmB;AAC1C,wBAAA,kBAAkB,EAAE,gBAAgB;AACrC,qBAAA,EAAA,MAAA,EAAA,CAAA,ozDAAA,CAAA,EAAA;;;ACjDH;;AAEG;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"slotted-angular-kbd.mjs","sources":["../../kbd/src/kbd-defaults.ts","../../kbd/src/kbd-axes.ts","../../kbd/src/kbd.ts","../../kbd/src/shortcut.ts","../../kbd/src/slotted-angular-kbd.ts"],"sourcesContent":["import { inject, InjectionToken, isDevMode, PLATFORM_ID } from '@angular/core';\nimport { isPlatformBrowser } from '@angular/common';\n\nimport type { KbdPlatform, KbdPlatformInput } from '@slotted/core/keys';\nimport { resolvePlatform } from '@slotted/core/keys';\n\nexport type { KbdPlatform, KbdPlatformInput } from '@slotted/core/keys';\n\n/**\n * Four absolute heights — 16, 20, 24 and 28 pixels — and one that reads the text\n * around it. `inherit` is the step prose wants: an absolute cap inside a heading\n * is a stamp, and one in fine print is a slab.\n */\nexport type KbdSize = 'xs' | 'sm' | 'md' | 'lg' | 'inherit';\n\n/**\n * `raised` is the only value that looks like a key. `outline` owns no ground,\n * so it carries over any surface. `soft` is the tinted chip. `plain` is the\n * menu-row form, and it takes the colour of the text it sits in.\n */\nexport type KbdVariant = 'raised' | 'outline' | 'soft' | 'plain';\n\nexport interface KbdDefaults {\n /**\n * `auto` asks the runtime. State it instead where the page is rendered on a\n * server: nothing is detected then, and the first paint is already right.\n */\n platform: KbdPlatformInput;\n size: KbdSize;\n variant: KbdVariant;\n /** Between two simultaneous keys. A Mac joins with nothing whatever this says. */\n separator: string;\n /** Replaces what the eye sees, per key token: `{ ctrl: 'Strg' }`. */\n legends: Readonly<Record<string, string>> | undefined;\n /** Replaces what a reader hears, per key token: `{ ctrl: 'Steuerung' }`. */\n names: Readonly<Record<string, string>> | undefined;\n}\n\nconst FALLBACK: KbdDefaults = {\n platform: 'auto',\n size: 'md',\n variant: 'raised',\n separator: '+',\n legends: undefined,\n names: undefined,\n};\n\nexport const KBD_DEFAULTS = new InjectionToken<KbdDefaults>('slotted kbd defaults', {\n providedIn: 'root',\n factory: () => FALLBACK,\n});\n\n/**\n * An application decides once which platform its shortcuts are written for, how\n * its keys are painted, and which legends and names it writes in place of the\n * catalog's for particular keys. A key that states any of them itself still\n * wins: an explicit input is never overridden by the token. The words come from\n * the `keys` catalog of the language in force (`provideSlotted`).\n */\nexport function provideKbdDefaults(defaults: Partial<KbdDefaults>) {\n return {\n provide: KBD_DEFAULTS,\n useFactory: (): KbdDefaults => ({\n platform: defaults.platform ?? FALLBACK.platform,\n size: defaults.size ?? FALLBACK.size,\n variant: defaults.variant ?? FALLBACK.variant,\n separator: defaults.separator ?? FALLBACK.separator,\n legends: defaults.legends ?? FALLBACK.legends,\n names: defaults.names ?? FALLBACK.names,\n }),\n };\n}\n\n/** What a key renders as here, before it states anything of its own. */\nexport function injectKbdDefaults(): KbdDefaults {\n return inject(KBD_DEFAULTS);\n}\n\n/**\n * The reader's platform, resolved synchronously in the browser and never on the\n * server.\n *\n * The asymmetry with the React binding is deliberate and is the one worth\n * recording. React has `useSyncExternalStore`, which distinguishes a hydrating\n * render from a plain client one, so it can be right on the first paint of a\n * client-rendered page *and* free of hydration mismatches on a server-rendered\n * one. Angular exposes no equivalent, so the choice is between a flash on every\n * page and a mismatch on hydrated ones. This binding takes neither: it resolves\n * at once in the browser, which is right for the client-rendered application,\n * and an application that server-renders states `platform` through\n * `provideKbdDefaults` — at which point nothing is detected at all.\n *\n * A development-mode warning is what stops that requirement from being\n * discovered by a reader seeing `Ctrl` on their Mac.\n */\nexport function injectKbdPlatform(): (stated?: KbdPlatformInput) => KbdPlatform {\n const defaults = injectKbdDefaults();\n const browser = isPlatformBrowser(inject(PLATFORM_ID));\n\n if (!browser && defaults.platform === 'auto' && isDevMode()) {\n console.warn(\n '[slotted/kbd] The platform cannot be detected on the server, so every shortcut is ' +\n 'rendered for `other`. Call provideKbdDefaults({ platform }) to state it.',\n );\n }\n\n return (stated?: KbdPlatformInput) => {\n const requested = stated ?? defaults.platform;\n if (requested !== 'auto') return requested;\n return browser ? resolvePlatform('auto') : 'other';\n };\n}\n","import { inject, InjectionToken } from '@angular/core';\nimport type { Signal } from '@angular/core';\n\nimport type { KbdPlatformInput, KbdSize, KbdVariant } from './kbd-defaults';\n\n/**\n * What a combination hands to the keys inside it.\n *\n * Only what the combination was told is handed on: a key that states its own\n * size still wins, and a combination that states nothing hands on nothing, so\n * the provider's default is still what answers. Without this a page writing its\n * own keys inside a `Shortcut` would have to repeat four inputs on each of\n * them, and a key that forgot one would be painted differently from the\n * combination holding it.\n */\nexport interface SlShortcutAxesValue {\n platform: Signal<KbdPlatformInput | undefined>;\n size: Signal<KbdSize | undefined>;\n variant: Signal<KbdVariant | undefined>;\n disabled: Signal<boolean | undefined>;\n}\n\nconst SHORTCUT_AXES = new InjectionToken<SlShortcutAxesValue>('slotted kbd shortcut axes');\n\n/**\n * A namespace rather than a class, because there is nothing to instantiate: the\n * combination provides its own signals and a key reads them if it has a\n * combination to read.\n */\nexport const SlShortcutAxes = {\n token: SHORTCUT_AXES,\n injectOptional: (): SlShortcutAxesValue | null =>\n inject(SHORTCUT_AXES, { optional: true, skipSelf: false }),\n} as const;\n","import {\n booleanAttribute,\n ChangeDetectionStrategy,\n Component,\n computed,\n input,\n ViewEncapsulation,\n} from '@angular/core';\n\nimport { injectMessages } from '@slotted/angular/i18n';\nimport { keysMessages, type KeysMessages, type PartialMessages } from '@slotted/core/i18n';\nimport { resolveKey } from '@slotted/core/keys';\n\nimport { injectKbdDefaults, injectKbdPlatform } from './kbd-defaults';\nimport type { KbdPlatformInput, KbdSize, KbdVariant } from './kbd-defaults';\nimport { SlShortcutAxes } from './kbd-axes';\n\n/**\n * One key of a keyboard, drawn so a reader can find it on theirs.\n *\n * The directive is written on the consumer's own `<kbd>`, which is the element\n * the HTML Standard defines for exactly this and the reason this binding needs\n * no `render` prop: substituting the element is Angular's default.\n *\n * It is not a control: nothing here is focusable, nothing answers hover, and\n * nothing binds a shortcut. Registering one is the application's, because WCAG\n * 2.2 2.1.4 Character Key Shortcuts can only be answered by whoever knows\n * whether the shortcut can be turned off.\n */\n@Component({\n selector: 'kbd[slKbd]',\n standalone: true,\n exportAs: 'slKbd',\n /**\n * A named key wins over projected content, because it is the more specific of\n * two explicit instructions — and because content cannot be asked whether it\n * exists, so any rule that depended on the answer would be one only the React\n * binding could keep.\n *\n * Every space in this template is load-bearing: Angular collapses a newline\n * between two nodes into a space, and a space inside the legend would be a\n * space inside the key's word.\n */\n // prettier-ignore\n template: `<span data-part=\"legend\" data-part-legend=\"\" [attr.aria-hidden]=\"key() ? true : null\" [attr.data-legend]=\"key()?.symbolic ? 'symbol' : null\">@if (key(); as resolved) {{{ resolved.legend }}} @else {<ng-content></ng-content>}</span>@if (key()?.name; as name) {<span data-part=\"name\" data-part-name=\"\">{{ name }}</span>}`,\n styleUrl: '../../../styles/src/kbd/kbd.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: {\n 'data-ui': 'kbd',\n 'data-ui-kbd': '',\n 'data-part': 'root',\n 'data-part-root': '',\n '[attr.data-size]': 'resolvedSize()',\n '[attr.data-variant]': 'resolvedVariant()',\n '[attr.data-key]': 'key()?.token ?? null',\n '[attr.data-platform]': 'keyName() ? resolvedPlatform() : null',\n '[attr.data-disabled]': 'resolvedDisabled() ? \"\" : null',\n },\n})\nexport class SlKbd {\n /**\n * A token from the vocabulary — `mod`, `meta`, `shift`, `escape`, `up` — or\n * any of its aliases. It resolves to the legend the reader's platform draws\n * and the word a screen reader hears in place of it.\n */\n readonly keyName = input<string | undefined>(undefined);\n /** Defaults to the combination, then to the provider, then to `auto`. */\n readonly platform = input<KbdPlatformInput | undefined>(undefined);\n /** Defaults to the combination, then to the provider, then to `md`. */\n readonly size = input<KbdSize | undefined>(undefined);\n /** Defaults to the combination, then to the provider, then to `raised`. */\n readonly variant = input<KbdVariant | undefined>(undefined);\n /**\n * Dims the key without claiming the item's semantics. `kbd` may carry only\n * the global ARIA attributes, and `aria-disabled` is not one of them, so the\n * row this key belongs to is what says it is unavailable.\n */\n readonly disabled = input(undefined, { transform: booleanAttribute });\n /**\n * Words laid over the `keys` catalog of the language in force, key by key:\n * `legends.*` for what a cap shows, `names.*` for what a reader hears.\n */\n readonly messages = input<PartialMessages<KeysMessages> | undefined>(undefined);\n\n private readonly defaults = injectKbdDefaults();\n private readonly platformOf = injectKbdPlatform();\n private readonly t = injectMessages(keysMessages, this.messages);\n /**\n * The combination this key sits in, when it sits in one. It is optional, so a\n * key written on its own works, and a key written by hand inside a `Shortcut`\n * is painted like the combination around it without repeating four inputs.\n */\n private readonly group = SlShortcutAxes.injectOptional();\n\n protected readonly resolvedPlatform = computed(() =>\n this.platformOf(this.platform() ?? this.group?.platform()),\n );\n protected readonly resolvedSize = computed(\n () => this.size() ?? this.group?.size() ?? this.defaults.size,\n );\n protected readonly resolvedVariant = computed(\n () => this.variant() ?? this.group?.variant() ?? this.defaults.variant,\n );\n protected readonly resolvedDisabled = computed(\n () => this.disabled() ?? this.group?.disabled() ?? false,\n );\n\n protected readonly key = computed(() => {\n const token = this.keyName();\n if (token === undefined || token === '') return undefined;\n return resolveKey(token, {\n platform: this.resolvedPlatform(),\n t: this.t,\n legends: this.defaults.legends,\n names: this.defaults.names,\n });\n });\n}\n","import {\n booleanAttribute,\n ChangeDetectionStrategy,\n Component,\n computed,\n forwardRef,\n input,\n ViewEncapsulation,\n} from '@angular/core';\n\nimport { injectMessages } from '@slotted/angular/i18n';\nimport { keysMessages, type KeysMessages, type PartialMessages } from '@slotted/core/i18n';\nimport { resolveShortcut } from '@slotted/core/keys';\n\nimport { SlShortcutAxes } from './kbd-axes';\nimport { injectKbdDefaults, injectKbdPlatform } from './kbd-defaults';\nimport type { KbdPlatformInput, KbdSize, KbdVariant } from './kbd-defaults';\n\n/**\n * A whole key combination, and the element the HTML Standard says it is:\n * “nesting a `kbd` element within another `kbd` element represents an actual key\n * or other unit of input as a portion of a larger input”. shadcn's `KbdGroup` is\n * a `div`, and Chakra and Radix put the whole combination inside one `kbd` as\n * text; this is the markup the specification describes.\n *\n * `keys` is written once and rendered for the reader's platform. The modifiers\n * are reordered into that platform's own convention — the Apple Style Guide\n * writes Fn, Control, Option, Shift, Command, and Microsoft writes the Windows\n * key ahead of Ctrl, Alt and Shift — so one authored string is right on both.\n * The escape hatch is composition rather than a fifth input: keys projected into\n * this element are rendered exactly as written.\n */\n@Component({\n selector: 'kbd[slShortcut]',\n standalone: true,\n exportAs: 'slShortcut',\n /**\n * The key markup is written here as well as in `SlKbd`, because a rendered key\n * has no token to hand back to that component — the combination resolved it\n * already, under its own `legends` and `names`. The two are held identical by\n * `kbd.spec.ts`, which renders the same key both ways and compares the DOM,\n * rather than by a shared helper that could only serve one of them.\n *\n * Every space is load-bearing: Angular collapses a newline between two nodes\n * into a space, and a space between two caps is a space the gap already owns.\n */\n // prettier-ignore\n template: `@if (resolved(); as shortcut) {@for (step of shortcut.steps; track $index) {@if (!$first) {<span data-part=\"separator\" data-part-separator=\"\" data-separator=\"then\">{{ shortcut.thenLabel }}</span>}@for (key of step; track $index) {@if (!$first && shortcut.separator) {<span aria-hidden=\"true\" data-part=\"separator\" data-part-separator=\"\" data-separator=\"plus\">{{ shortcut.separator }}</span>}<kbd data-ui=\"kbd\" data-ui-kbd=\"\" data-part=\"root\" data-part-root=\"\" [attr.data-key]=\"key.token\" [attr.data-platform]=\"shortcut.platform\" [attr.data-size]=\"resolvedSize()\" [attr.data-variant]=\"resolvedVariant()\" [attr.data-disabled]=\"disabled() ? '' : null\"><span data-part=\"legend\" data-part-legend=\"\" aria-hidden=\"true\" [attr.data-legend]=\"key.symbolic ? 'symbol' : null\">{{ key.legend }}</span>@if (key.name; as name) {<span data-part=\"name\" data-part-name=\"\">{{ name }}</span>}</kbd>}}} @else {<ng-content></ng-content>}`,\n styleUrl: '../../../styles/src/kbd/kbd.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n providers: [\n {\n provide: SlShortcutAxes.token,\n /* The decorator runs before the class binding exists. */\n useExisting: forwardRef(() => SlShortcut),\n },\n ],\n host: {\n 'data-ui': 'kbd',\n 'data-ui-kbd': '',\n 'data-part': 'shortcut',\n 'data-part-shortcut': '',\n '[attr.data-platform]': 'resolvedPlatform()',\n '[attr.data-size]': 'resolvedSize()',\n '[attr.data-variant]': 'resolvedVariant()',\n '[attr.data-disabled]': 'disabled() ? \"\" : null',\n /**\n * A combination with nothing in it is nothing, not an empty cap at the end\n * of a row announcing that a shortcut exists. The React binding returns\n * nothing; this directive is written on an element the consumer owns, so it\n * cannot un-write it, and `display: none` is the same outcome the platform\n * can give from here. The inline style is what beats the family's own\n * `display: inline-flex`, which the `hidden` attribute would lose to.\n */\n '[style.display]': 'empty() ? \"none\" : null',\n },\n})\nexport class SlShortcut {\n /**\n * The shortcut, written once: `+` joins keys pressed together and whitespace\n * joins the steps of a sequence.\n */\n readonly keys = input<string | undefined>(undefined);\n /** Defaults to the provider, then to `auto`. */\n readonly platform = input<KbdPlatformInput | undefined>(undefined);\n /** Defaults to the provider, then to `md`. */\n readonly size = input<KbdSize | undefined>(undefined);\n /** Defaults to the provider, then to `raised`. */\n readonly variant = input<KbdVariant | undefined>(undefined);\n readonly disabled = input(undefined, { transform: booleanAttribute });\n /** Between two simultaneous keys. Defaults to the provider, then to `+`. */\n readonly separator = input<string | undefined>(undefined);\n /**\n * Words laid over the `keys` catalog of the language in force, key by key:\n * `legends.*`, `names.*`, and `then` between two steps of a sequence.\n */\n readonly messages = input<PartialMessages<KeysMessages> | undefined>(undefined);\n /** Replaces what the eye sees, per key token. Defaults to the provider. */\n readonly legends = input<Readonly<Record<string, string>> | undefined>(undefined);\n /** Replaces what a reader hears, per key token. Defaults to the provider. */\n readonly names = input<Readonly<Record<string, string>> | undefined>(undefined);\n\n private readonly defaults = injectKbdDefaults();\n private readonly platformOf = injectKbdPlatform();\n private readonly t = injectMessages(keysMessages, this.messages);\n\n protected readonly resolvedPlatform = computed(() => this.platformOf(this.platform()));\n protected readonly resolvedSize = computed(() => this.size() ?? this.defaults.size);\n protected readonly resolvedVariant = computed(() => this.variant() ?? this.defaults.variant);\n\n protected readonly resolved = computed(() => {\n const keys = this.keys();\n if (keys === undefined) return undefined;\n return resolveShortcut(keys, {\n platform: this.resolvedPlatform(),\n t: this.t,\n legends: this.legends() ?? this.defaults.legends,\n names: this.names() ?? this.defaults.names,\n separator: this.separator() ?? this.defaults.separator,\n });\n });\n\n protected readonly empty = computed(() => this.resolved()?.steps.length === 0);\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;AAsCA,MAAM,QAAQ,GAAgB;AAC5B,IAAA,QAAQ,EAAE,MAAM;AAChB,IAAA,IAAI,EAAE,IAAI;AACV,IAAA,OAAO,EAAE,QAAQ;AACjB,IAAA,SAAS,EAAE,GAAG;AACd,IAAA,OAAO,EAAE,SAAS;AAClB,IAAA,KAAK,EAAE,SAAS;CACjB;MAEY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AAE,cAAc,CAAC,KAAK;;AAE7B,4BAAA,WAAW,EAAE,UAAU,CAAC,gBAAgB,CAAC;AAC1C,yBAAA;qBACF,EAAA,IAAA,EACK;AACJ,wBAAA,SAAS,EAAE,KAAK;AAChB,wBAAA,aAAa,EAAE,EAAE;AACjB,wBAAA,WAAW,EAAE,UAAU;AACvB,wBAAA,oBAAoB,EAAE,EAAE;AACxB,wBAAA,sBAAsB,EAAE,oBAAoB;AAC5C,wBAAA,kBAAkB,EAAE,gBAAgB;AACpC,wBAAA,qBAAqB,EAAE,mBAAmB;AAC1C,wBAAA,sBAAsB,EAAE,wBAAwB;AAChD;;;;;;;AAOG;AACH,wBAAA,iBAAiB,EAAE,yBAAyB;AAC7C,qBAAA,EAAA,MAAA,EAAA,CAAA,2iLAAA,CAAA,EAAA;;;AC5EH;;AAEG;;"}
1
+ {"version":3,"file":"slotted-angular-kbd.mjs","sources":["../../kbd/src/kbd-defaults.ts","../../kbd/src/kbd-axes.ts","../../kbd/src/kbd.ts","../../kbd/src/shortcut.ts","../../kbd/src/slotted-angular-kbd.ts"],"sourcesContent":["import { inject, InjectionToken, isDevMode, PLATFORM_ID } from '@angular/core';\nimport { isPlatformBrowser } from '@angular/common';\n\nimport type { KbdPlatform, KbdPlatformInput } from '@slotted/core/keys';\nimport { resolvePlatform } from '@slotted/core/keys';\n\nexport type { KbdPlatform, KbdPlatformInput } from '@slotted/core/keys';\n\n/**\n * Four absolute heights — 16, 20, 24 and 28 pixels — and one that reads the text\n * around it. `inherit` is the step prose wants: an absolute cap inside a heading\n * is a stamp, and one in fine print is a slab.\n */\nexport type KbdSize = 'xs' | 'sm' | 'md' | 'lg' | 'inherit';\n\n/**\n * `raised` is the only value that looks like a key. `outline` owns no ground,\n * so it carries over any surface. `soft` is the tinted chip. `plain` is the\n * menu-row form, and it takes the color of the text it sits in.\n */\nexport type KbdVariant = 'raised' | 'outline' | 'soft' | 'plain';\n\nexport interface KbdDefaults {\n /**\n * `auto` asks the runtime. State it instead where the page is rendered on a\n * server: nothing is detected then, and the first paint is already right.\n */\n platform: KbdPlatformInput;\n size: KbdSize;\n variant: KbdVariant;\n /** Between two simultaneous keys. A Mac joins with nothing whatever this says. */\n separator: string;\n /** Replaces what the eye sees, per key token: `{ ctrl: 'Strg' }`. */\n legends: Readonly<Record<string, string>> | undefined;\n /** Replaces what a reader hears, per key token: `{ ctrl: 'Steuerung' }`. */\n names: Readonly<Record<string, string>> | undefined;\n}\n\nconst FALLBACK: KbdDefaults = {\n platform: 'auto',\n size: 'md',\n variant: 'raised',\n separator: '+',\n legends: undefined,\n names: undefined,\n};\n\nexport const KBD_DEFAULTS = new InjectionToken<KbdDefaults>('slotted kbd defaults', {\n providedIn: 'root',\n factory: () => FALLBACK,\n});\n\n/**\n * An application decides once which platform its shortcuts are written for, how\n * its keys are painted, and which legends and names it writes in place of the\n * catalog's for particular keys. A key that states any of them itself still\n * wins: an explicit input is never overridden by the token. The words come from\n * the `keys` catalog of the language in force (`provideSlotted`).\n */\nexport function provideKbdDefaults(defaults: Partial<KbdDefaults>) {\n return {\n provide: KBD_DEFAULTS,\n useFactory: (): KbdDefaults => ({\n platform: defaults.platform ?? FALLBACK.platform,\n size: defaults.size ?? FALLBACK.size,\n variant: defaults.variant ?? FALLBACK.variant,\n separator: defaults.separator ?? FALLBACK.separator,\n legends: defaults.legends ?? FALLBACK.legends,\n names: defaults.names ?? FALLBACK.names,\n }),\n };\n}\n\n/** What a key renders as here, before it states anything of its own. */\nexport function injectKbdDefaults(): KbdDefaults {\n return inject(KBD_DEFAULTS);\n}\n\n/**\n * The reader's platform, resolved synchronously in the browser and never on the\n * server.\n *\n * The asymmetry with the React binding is deliberate and is the one worth\n * recording. React has `useSyncExternalStore`, which distinguishes a hydrating\n * render from a plain client one, so it can be right on the first paint of a\n * client-rendered page *and* free of hydration mismatches on a server-rendered\n * one. Angular exposes no equivalent, so the choice is between a flash on every\n * page and a mismatch on hydrated ones. This binding takes neither: it resolves\n * at once in the browser, which is right for the client-rendered application,\n * and an application that server-renders states `platform` through\n * `provideKbdDefaults` — at which point nothing is detected at all.\n *\n * A development-mode warning is what stops that requirement from being\n * discovered by a reader seeing `Ctrl` on their Mac.\n */\nexport function injectKbdPlatform(): (stated?: KbdPlatformInput) => KbdPlatform {\n const defaults = injectKbdDefaults();\n const browser = isPlatformBrowser(inject(PLATFORM_ID));\n\n if (!browser && defaults.platform === 'auto' && isDevMode()) {\n console.warn(\n '[slotted/kbd] The platform cannot be detected on the server, so every shortcut is ' +\n 'rendered for `other`. Call provideKbdDefaults({ platform }) to state it.',\n );\n }\n\n return (stated?: KbdPlatformInput) => {\n const requested = stated ?? defaults.platform;\n if (requested !== 'auto') return requested;\n return browser ? resolvePlatform('auto') : 'other';\n };\n}\n","import { inject, InjectionToken } from '@angular/core';\nimport type { Signal } from '@angular/core';\n\nimport type { KbdPlatformInput, KbdSize, KbdVariant } from './kbd-defaults';\n\n/**\n * What a combination hands to the keys inside it.\n *\n * Only what the combination was told is handed on: a key that states its own\n * size still wins, and a combination that states nothing hands on nothing, so\n * the provider's default is still what answers. Without this a page writing its\n * own keys inside a `Shortcut` would have to repeat four inputs on each of\n * them, and a key that forgot one would be painted differently from the\n * combination holding it.\n */\nexport interface SlShortcutAxesValue {\n platform: Signal<KbdPlatformInput | undefined>;\n size: Signal<KbdSize | undefined>;\n variant: Signal<KbdVariant | undefined>;\n disabled: Signal<boolean | undefined>;\n}\n\nconst SHORTCUT_AXES = new InjectionToken<SlShortcutAxesValue>('slotted kbd shortcut axes');\n\n/**\n * A namespace rather than a class, because there is nothing to instantiate: the\n * combination provides its own signals and a key reads them if it has a\n * combination to read.\n */\nexport const SlShortcutAxes = {\n token: SHORTCUT_AXES,\n injectOptional: (): SlShortcutAxesValue | null =>\n inject(SHORTCUT_AXES, { optional: true, skipSelf: false }),\n} as const;\n","import {\n booleanAttribute,\n ChangeDetectionStrategy,\n Component,\n computed,\n input,\n ViewEncapsulation,\n} from '@angular/core';\n\nimport { injectMessages } from '@slotted/angular/i18n';\nimport { keysMessages, type KeysMessages, type PartialMessages } from '@slotted/core/i18n';\nimport { resolveKey } from '@slotted/core/keys';\n\nimport { injectKbdDefaults, injectKbdPlatform } from './kbd-defaults';\nimport type { KbdPlatformInput, KbdSize, KbdVariant } from './kbd-defaults';\nimport { SlShortcutAxes } from './kbd-axes';\n\n/**\n * One key of a keyboard, drawn so a reader can find it on theirs.\n *\n * The directive is written on the consumer's own `<kbd>`, which is the element\n * the HTML Standard defines for exactly this and the reason this binding needs\n * no `render` prop: substituting the element is Angular's default.\n *\n * It is not a control: nothing here is focusable, nothing answers hover, and\n * nothing binds a shortcut. Registering one is the application's, because WCAG\n * 2.2 2.1.4 Character Key Shortcuts can only be answered by whoever knows\n * whether the shortcut can be turned off.\n */\n@Component({\n selector: 'kbd[slKbd]',\n standalone: true,\n exportAs: 'slKbd',\n /**\n * A named key wins over projected content, because it is the more specific of\n * two explicit instructions — and because content cannot be asked whether it\n * exists, so any rule that depended on the answer would be one only the React\n * binding could keep.\n *\n * Every space in this template is load-bearing: Angular collapses a newline\n * between two nodes into a space, and a space inside the legend would be a\n * space inside the key's word.\n */\n // prettier-ignore\n template: `<span data-part=\"legend\" data-part-legend=\"\" [attr.aria-hidden]=\"key() ? true : null\" [attr.data-legend]=\"key()?.symbolic ? 'symbol' : null\">@if (key(); as resolved) {{{ resolved.legend }}} @else {<ng-content></ng-content>}</span>@if (key()?.name; as name) {<span data-part=\"name\" data-part-name=\"\">{{ name }}</span>}`,\n styleUrl: '../../../styles/src/kbd/kbd.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: {\n 'data-ui': 'kbd',\n 'data-ui-kbd': '',\n 'data-part': 'root',\n 'data-part-root': '',\n '[attr.data-size]': 'resolvedSize()',\n '[attr.data-variant]': 'resolvedVariant()',\n '[attr.data-key]': 'key()?.token ?? null',\n '[attr.data-platform]': 'keyName() ? resolvedPlatform() : null',\n '[attr.data-disabled]': 'resolvedDisabled() ? \"\" : null',\n },\n})\nexport class SlKbd {\n /**\n * A token from the vocabulary — `mod`, `meta`, `shift`, `escape`, `up` — or\n * any of its aliases. It resolves to the legend the reader's platform draws\n * and the word a screen reader hears in place of it.\n */\n readonly keyName = input<string | undefined>(undefined);\n /** Defaults to the combination, then to the provider, then to `auto`. */\n readonly platform = input<KbdPlatformInput | undefined>(undefined);\n /** Defaults to the combination, then to the provider, then to `md`. */\n readonly size = input<KbdSize | undefined>(undefined);\n /** Defaults to the combination, then to the provider, then to `raised`. */\n readonly variant = input<KbdVariant | undefined>(undefined);\n /**\n * Dims the key without claiming the item's semantics. `kbd` may carry only\n * the global ARIA attributes, and `aria-disabled` is not one of them, so the\n * row this key belongs to is what says it is unavailable.\n */\n readonly disabled = input(undefined, { transform: booleanAttribute });\n /**\n * Words laid over the `keys` catalog of the language in force, key by key:\n * `legends.*` for what a cap shows, `names.*` for what a reader hears.\n */\n readonly messages = input<PartialMessages<KeysMessages> | undefined>(undefined);\n\n private readonly defaults = injectKbdDefaults();\n private readonly platformOf = injectKbdPlatform();\n private readonly t = injectMessages(keysMessages, this.messages);\n /**\n * The combination this key sits in, when it sits in one. It is optional, so a\n * key written on its own works, and a key written by hand inside a `Shortcut`\n * is painted like the combination around it without repeating four inputs.\n */\n private readonly group = SlShortcutAxes.injectOptional();\n\n protected readonly resolvedPlatform = computed(() =>\n this.platformOf(this.platform() ?? this.group?.platform()),\n );\n protected readonly resolvedSize = computed(\n () => this.size() ?? this.group?.size() ?? this.defaults.size,\n );\n protected readonly resolvedVariant = computed(\n () => this.variant() ?? this.group?.variant() ?? this.defaults.variant,\n );\n protected readonly resolvedDisabled = computed(\n () => this.disabled() ?? this.group?.disabled() ?? false,\n );\n\n protected readonly key = computed(() => {\n const token = this.keyName();\n if (token === undefined || token === '') return undefined;\n return resolveKey(token, {\n platform: this.resolvedPlatform(),\n t: this.t,\n legends: this.defaults.legends,\n names: this.defaults.names,\n });\n });\n}\n","import {\n booleanAttribute,\n ChangeDetectionStrategy,\n Component,\n computed,\n forwardRef,\n input,\n ViewEncapsulation,\n} from '@angular/core';\n\nimport { injectMessages } from '@slotted/angular/i18n';\nimport { keysMessages, type KeysMessages, type PartialMessages } from '@slotted/core/i18n';\nimport { resolveShortcut } from '@slotted/core/keys';\n\nimport { SlShortcutAxes } from './kbd-axes';\nimport { injectKbdDefaults, injectKbdPlatform } from './kbd-defaults';\nimport type { KbdPlatformInput, KbdSize, KbdVariant } from './kbd-defaults';\n\n/**\n * A whole key combination, and the element the HTML Standard says it is:\n * “nesting a `kbd` element within another `kbd` element represents an actual key\n * or other unit of input as a portion of a larger input”. shadcn's `KbdGroup` is\n * a `div`, and Chakra and Radix put the whole combination inside one `kbd` as\n * text; this is the markup the specification describes.\n *\n * `keys` is written once and rendered for the reader's platform. The modifiers\n * are reordered into that platform's own convention — the Apple Style Guide\n * writes Fn, Control, Option, Shift, Command, and Microsoft writes the Windows\n * key ahead of Ctrl, Alt and Shift — so one authored string is right on both.\n * The escape hatch is composition rather than a fifth input: keys projected into\n * this element are rendered exactly as written.\n */\n@Component({\n selector: 'kbd[slShortcut]',\n standalone: true,\n exportAs: 'slShortcut',\n /**\n * The key markup is written here as well as in `SlKbd`, because a rendered key\n * has no token to hand back to that component — the combination resolved it\n * already, under its own `legends` and `names`. The two are held identical by\n * `kbd.spec.ts`, which renders the same key both ways and compares the DOM,\n * rather than by a shared helper that could only serve one of them.\n *\n * Every space is load-bearing: Angular collapses a newline between two nodes\n * into a space, and a space between two caps is a space the gap already owns.\n */\n // prettier-ignore\n template: `@if (resolved(); as shortcut) {@for (step of shortcut.steps; track $index) {@if (!$first) {<span data-part=\"separator\" data-part-separator=\"\" data-separator=\"then\">{{ shortcut.thenLabel }}</span>}@for (key of step; track $index) {@if (!$first && shortcut.separator) {<span aria-hidden=\"true\" data-part=\"separator\" data-part-separator=\"\" data-separator=\"plus\">{{ shortcut.separator }}</span>}<kbd data-ui=\"kbd\" data-ui-kbd=\"\" data-part=\"root\" data-part-root=\"\" [attr.data-key]=\"key.token\" [attr.data-platform]=\"shortcut.platform\" [attr.data-size]=\"resolvedSize()\" [attr.data-variant]=\"resolvedVariant()\" [attr.data-disabled]=\"disabled() ? '' : null\"><span data-part=\"legend\" data-part-legend=\"\" aria-hidden=\"true\" [attr.data-legend]=\"key.symbolic ? 'symbol' : null\">{{ key.legend }}</span>@if (key.name; as name) {<span data-part=\"name\" data-part-name=\"\">{{ name }}</span>}</kbd>}}} @else {<ng-content></ng-content>}`,\n styleUrl: '../../../styles/src/kbd/kbd.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n providers: [\n {\n provide: SlShortcutAxes.token,\n /* The decorator runs before the class binding exists. */\n useExisting: forwardRef(() => SlShortcut),\n },\n ],\n host: {\n 'data-ui': 'kbd',\n 'data-ui-kbd': '',\n 'data-part': 'shortcut',\n 'data-part-shortcut': '',\n '[attr.data-platform]': 'resolvedPlatform()',\n '[attr.data-size]': 'resolvedSize()',\n '[attr.data-variant]': 'resolvedVariant()',\n '[attr.data-disabled]': 'disabled() ? \"\" : null',\n /**\n * A combination with nothing in it is nothing, not an empty cap at the end\n * of a row announcing that a shortcut exists. The React binding returns\n * nothing; this directive is written on an element the consumer owns, so it\n * cannot un-write it, and `display: none` is the same outcome the platform\n * can give from here. The inline style is what beats the family's own\n * `display: inline-flex`, which the `hidden` attribute would lose to.\n */\n '[style.display]': 'empty() ? \"none\" : null',\n },\n})\nexport class SlShortcut {\n /**\n * The shortcut, written once: `+` joins keys pressed together and whitespace\n * joins the steps of a sequence.\n */\n readonly keys = input<string | undefined>(undefined);\n /** Defaults to the provider, then to `auto`. */\n readonly platform = input<KbdPlatformInput | undefined>(undefined);\n /** Defaults to the provider, then to `md`. */\n readonly size = input<KbdSize | undefined>(undefined);\n /** Defaults to the provider, then to `raised`. */\n readonly variant = input<KbdVariant | undefined>(undefined);\n readonly disabled = input(undefined, { transform: booleanAttribute });\n /** Between two simultaneous keys. Defaults to the provider, then to `+`. */\n readonly separator = input<string | undefined>(undefined);\n /**\n * Words laid over the `keys` catalog of the language in force, key by key:\n * `legends.*`, `names.*`, and `then` between two steps of a sequence.\n */\n readonly messages = input<PartialMessages<KeysMessages> | undefined>(undefined);\n /** Replaces what the eye sees, per key token. Defaults to the provider. */\n readonly legends = input<Readonly<Record<string, string>> | undefined>(undefined);\n /** Replaces what a reader hears, per key token. Defaults to the provider. */\n readonly names = input<Readonly<Record<string, string>> | undefined>(undefined);\n\n private readonly defaults = injectKbdDefaults();\n private readonly platformOf = injectKbdPlatform();\n private readonly t = injectMessages(keysMessages, this.messages);\n\n protected readonly resolvedPlatform = computed(() => this.platformOf(this.platform()));\n protected readonly resolvedSize = computed(() => this.size() ?? this.defaults.size);\n protected readonly resolvedVariant = computed(() => this.variant() ?? this.defaults.variant);\n\n protected readonly resolved = computed(() => {\n const keys = this.keys();\n if (keys === undefined) return undefined;\n return resolveShortcut(keys, {\n platform: this.resolvedPlatform(),\n t: this.t,\n legends: this.legends() ?? this.defaults.legends,\n names: this.names() ?? this.defaults.names,\n separator: this.separator() ?? this.defaults.separator,\n });\n });\n\n protected readonly empty = computed(() => this.resolved()?.steps.length === 0);\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;AAsCA,MAAM,QAAQ,GAAgB;AAC5B,IAAA,QAAQ,EAAE,MAAM;AAChB,IAAA,IAAI,EAAE,IAAI;AACV,IAAA,OAAO,EAAE,QAAQ;AACjB,IAAA,SAAS,EAAE,GAAG;AACd,IAAA,OAAO,EAAE,SAAS;AAClB,IAAA,KAAK,EAAE,SAAS;CACjB;MAEY,YAAY,GAAG,IAAI,cAAc,CAAc,sBAAsB,EAAE;AAClF,IAAA,UAAU,EAAE,MAAM;AAClB,IAAA,OAAO,EAAE,MAAM,QAAQ;AACxB,CAAA;AAED;;;;;;AAMG;AACG,SAAU,kBAAkB,CAAC,QAA8B,EAAA;IAC/D,OAAO;AAC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EAAE,UAAU;AACvB,wBAAA,oBAAoB,EAAE,EAAE;AACxB,wBAAA,sBAAsB,EAAE,oBAAoB;AAC5C,wBAAA,kBAAkB,EAAE,gBAAgB;AACpC,wBAAA,qBAAqB,EAAE,mBAAmB;AAC1C,wBAAA,sBAAsB,EAAE,wBAAwB;AAChD;;;;;;;AAOG;AACH,wBAAA,iBAAiB,EAAE,yBAAyB;AAC7C,qBAAA,EAAA,MAAA,EAAA,CAAA,2iLAAA,CAAA,EAAA;;;AC5EH;;AAEG;;"}
@@ -158,7 +158,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImpor
158
158
  class SlListSectionLabel {
159
159
  /**
160
160
  * How the heading is drawn. `caption` is the small muted name; `ruled` is the
161
- * name in the text colour over a rule, with no ground behind it.
161
+ * name in the text color over a rule, with no ground behind it.
162
162
  */
163
163
  variant = input('caption', /* @ts-ignore */
164
164
  ...(ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []));
@@ -1 +1 @@
1
- {"version":3,"file":"slotted-angular-list.mjs","sources":["../../list/src/list-defaults.ts","../../list/src/list.ts","../../list/src/list-parts.ts","../../list/src/slotted-angular-list.ts"],"sourcesContent":["import { inject, Injectable, InjectionToken } from '@angular/core';\n\n/** How the rows are told apart. The vocabulary is `accordion`'s. */\nexport type ListVariant = 'plain' | 'ruled' | 'framed' | 'separated';\n\n/** The room a row gets. Density is the application's choice; this is not. */\nexport type ListSize = 'sm' | 'md' | 'lg';\n\n/**\n * What is painted in the marker column. It is a separate question from\n * `ordered`: an ordered set whose rows carry their own badges paints no number\n * and still reads in order.\n */\nexport type ListMarker = 'none' | 'bullet' | 'number';\n\nexport interface ListDefaults {\n inset: boolean;\n marker: ListMarker;\n size: ListSize;\n variant: ListVariant;\n}\n\nconst FALLBACK: ListDefaults = { inset: false, marker: 'none', size: 'md', variant: 'plain' };\n\nexport const LIST_DEFAULTS = new InjectionToken<ListDefaults>('slotted list defaults', {\n providedIn: 'root',\n factory: () => FALLBACK,\n});\n\n/**\n * An application decides once how its lists are told apart and how much room a\n * row gets, rather than repeating four inputs on every list. A list that states\n * any of them itself still wins: an explicit input is never overridden by the\n * token.\n */\nexport function provideListDefaults(defaults: Partial<ListDefaults>) {\n return {\n provide: LIST_DEFAULTS,\n useFactory: (): ListDefaults => ({\n inset: defaults.inset ?? FALLBACK.inset,\n marker: defaults.marker ?? FALLBACK.marker,\n size: defaults.size ?? FALLBACK.size,\n variant: defaults.variant ?? FALLBACK.variant,\n }),\n };\n}\n\n/** What a list renders as here, before it states anything of its own. */\nexport function injectListDefaults(): ListDefaults {\n return inject(LIST_DEFAULTS);\n}\n\n/**\n * A group's heading names its own nested list, so the heading needs an id and\n * the id has to be the same string on the server and in the browser. A counter\n * held by the injector produces one; `Math.random` would not match for\n * hydration.\n */\n@Injectable({ providedIn: 'root' })\nexport class SlListIdFactory {\n private count = 0;\n\n next() {\n this.count += 1;\n return `slotted-list-${this.count}`;\n }\n}\n","import {\n booleanAttribute,\n ChangeDetectionStrategy,\n Component,\n computed,\n HostAttributeToken,\n inject,\n input,\n ViewEncapsulation,\n} from '@angular/core';\n\nimport { injectListDefaults } from './list-defaults';\nimport type { ListMarker, ListSize, ListVariant } from './list-defaults';\n\nexport type { ListMarker, ListSize, ListVariant } from './list-defaults';\n\n/**\n * A vertical run of related rows. The rows are `slListItem`, a family of its\n * own; this one decides how they are told apart, how much room each gets, what\n * is painted in the marker column and whether they keep their inline padding,\n * and hands those four down through the injector.\n *\n * The directive goes on the element the page wrote — `<ul slList>` or\n * `<ol slList>` — because the element carries the reading order and that is the\n * page's decision, not the family's.\n *\n * **`role=\"list\"` is written, and it is not redundant.** The family draws its\n * own marker, because a row is a content box beside its independent targets and\n * CSS has no `display` that is both `list-item` and a grid. Safari and\n * VoiceOver drop list semantics the moment CSS removes the marker, so the role\n * restores what the layout costs. A `role` the consumer wrote themselves — a\n * `menu`, a `listbox` they are wiring — survives.\n *\n * The set holds no state a consumer can own. Selection with roving focus is\n * `listbox`'s and `table`'s: ARIA 1.2 does not allow `aria-selected` on\n * `listitem`, so a selection model here would announce nothing.\n */\n@Component({\n selector: 'ul[slList], ol[slList]',\n standalone: true,\n exportAs: 'slList',\n template: '<ng-content></ng-content>',\n styleUrl: '../../../styles/src/list/list.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: {\n 'data-ui': 'list',\n 'data-ui-list': '',\n 'data-part': 'root',\n 'data-part-root': '',\n '[attr.role]': 'role()',\n '[attr.data-variant]': 'resolvedVariant()',\n '[attr.data-size]': 'resolvedSize()',\n '[attr.data-marker]': 'resolvedMarker()',\n '[attr.data-inset]': \"resolvedInset() ? '' : null\",\n '[attr.data-loading]': \"loading() ? '' : null\",\n '[attr.aria-busy]': \"loading() ? 'true' : null\",\n },\n})\nexport class SlList {\n /** How the rows are told apart. Falls back to the injected default. */\n readonly variant = input<ListVariant>();\n /** The room a row gets. Falls back to the injected default. */\n readonly size = input<ListSize>();\n /** What is painted in the marker column. Falls back to the injected default. */\n readonly marker = input<ListMarker>();\n /**\n * Takes the rows' inline padding away, for a list inside a box that already\n * pads its own content. The rule and the fill still run edge to edge.\n */\n readonly inset = input<boolean | undefined, boolean | string | undefined>(undefined, {\n transform: (state) => (state === undefined ? undefined : booleanAttribute(state)),\n });\n /**\n * `aria-busy` on the set, which ARIA 1.2 §5.2.6 asks of a container whose\n * rows have not arrived. The family draws no placeholder: `skeleton` owns\n * that geometry and goes inside the rows.\n */\n readonly loading = input(false, { transform: booleanAttribute });\n\n private readonly defaults = injectListDefaults();\n\n /** A role the consumer wrote is never replaced by the family's. */\n private readonly writtenRole = inject(new HostAttributeToken('role'), { optional: true });\n\n protected readonly role = computed(() => this.writtenRole ?? 'list');\n /* Public, because a row reads them: the set is what a row asks when it has\n not been told itself. `role` stays protected — it is the host's alone. */\n readonly resolvedVariant = computed(() => this.variant() ?? this.defaults.variant);\n readonly resolvedSize = computed(() => this.size() ?? this.defaults.size);\n readonly resolvedMarker = computed(() => this.marker() ?? this.defaults.marker);\n\n /**\n * Read by every row under this set, and by the row's own input first. The\n * input stays `undefined` until it is written, so a list that states\n * `inset=\"false\"` under a provider that states `true` keeps its own answer —\n * `booleanAttribute` alone would fold the two together.\n */\n readonly resolvedInset = computed(() => (this.inset() ?? this.defaults.inset) === true);\n}\n","import {\n booleanAttribute,\n Directive,\n HostAttributeToken,\n inject,\n input,\n signal,\n} from '@angular/core';\n\nimport { SlListIdFactory } from './list-defaults';\n\n/**\n * A group inside the set: the `li` holding a heading and a nested list, which\n * is the grouping HTML already has. MUI, Angular Material, Primer and React\n * Aria each leave the heading loose among the rows instead, so a reader hears a\n * heading inside a set rather than a set with a name.\n *\n * The three elements are the consumer's own, which is what this ecosystem\n * composes with: the heading keeps whichever level the document needs, and the\n * nested list keeps `ul` or `ol` to match the set around it. React reads the\n * heading element off a `level` input instead, because there the component owns\n * the tag; both reach the same accessibility tree.\n */\n/** How a group heading is drawn. */\nexport type ListSectionLabelVariant = 'caption' | 'ruled';\n\n@Directive({\n selector: 'li[slListSection]',\n standalone: true,\n exportAs: 'slListSection',\n host: { 'data-part': 'section', 'data-part-section': '' },\n})\nexport class SlListSection {\n /**\n * The id the heading carries and the nested list names itself by. It is held\n * here rather than passed between the two, because the pair is the group and\n * neither half can name the other on its own.\n */\n readonly labelId = signal<string | undefined>(undefined);\n}\n\n/**\n * The group's name. It shares the row's inline inset, so the heading and the\n * titles under it stand in one column — the alignment that makes a grouped list\n * read as one list rather than as several.\n */\n@Directive({\n selector: '[slListSectionLabel]',\n standalone: true,\n exportAs: 'slListSectionLabel',\n host: {\n 'data-part': 'section-label',\n 'data-part-section-label': '',\n '[attr.id]': 'id',\n '[attr.data-sticky]': \"sticky() ? '' : null\",\n '[attr.data-variant]': 'variant()',\n },\n})\nexport class SlListSectionLabel {\n /**\n * How the heading is drawn. `caption` is the small muted name; `ruled` is the\n * name in the text colour over a rule, with no ground behind it.\n */\n readonly variant = input<ListSectionLabelVariant>('caption');\n /**\n * Keeps the name in place while its own rows scroll past it. It takes the\n * set's surface and the library's sticky stack level, which is what a\n * consumer writing `position: sticky` alone does not get.\n */\n readonly sticky = input(false, { transform: booleanAttribute });\n\n private readonly section = inject(SlListSection, { optional: true });\n /** An id the consumer wrote is never replaced by the family's. */\n private readonly written = inject(new HostAttributeToken('id'), { optional: true });\n\n readonly id = this.written ?? inject(SlListIdFactory).next();\n\n constructor() {\n this.section?.labelId.set(this.id);\n }\n}\n\n/**\n * What stands at the end of a group heading, on the line of the name: a day's\n * balance, a count. Set in tabular figures.\n */\n@Directive({\n selector: '[slListSectionEnd]',\n standalone: true,\n host: { 'data-part': 'section-end', 'data-part-section-end': '' },\n})\nexport class SlListSectionEnd {}\n\n/**\n * The rows of one group. `role=\"list\"` for the same reason the set writes it:\n * the family draws its own marker, and the native one is what Safari and\n * VoiceOver read the semantics from.\n */\n@Directive({\n selector: 'ul[slListSectionList], ol[slListSectionList]',\n standalone: true,\n exportAs: 'slListSectionList',\n host: {\n 'data-part': 'section-list',\n 'data-part-section-list': '',\n '[attr.role]': 'role',\n '[attr.aria-labelledby]': 'labelledBy()',\n },\n})\nexport class SlListSectionList {\n private readonly section = inject(SlListSection, { optional: true });\n /** A role the consumer wrote is never replaced by the family's. */\n private readonly writtenRole = inject(new HostAttributeToken('role'), { optional: true });\n private readonly writtenLabelledBy = inject(new HostAttributeToken('aria-labelledby'), {\n optional: true,\n });\n\n readonly role = this.writtenRole ?? 'list';\n\n readonly labelledBy = () => this.writtenLabelledBy ?? this.section?.labelId() ?? null;\n}\n\n/**\n * What the set says when it holds nothing. It is an `li`, so the reader hears\n * \"list, one item\" and then the message; a message outside the list leaves them\n * with \"list, zero items\" and silence, and leaves the words outside the box a\n * framed set paints.\n *\n * The family supplies the box, the height and the muted ink. The words are the\n * page's, and `result-state` is what goes in here.\n */\n@Directive({\n selector: 'li[slListEmpty]',\n standalone: true,\n exportAs: 'slListEmpty',\n host: { 'data-part': 'empty',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B,IAAI,EAAE,EAAE,WAAW,EAAE,OAAO,EAAE,iBAAiB,EAAE,EAAE,EAAE;AACtD,iBAAA;;;ACxID;;AAEG;;"}
1
+ {"version":3,"file":"slotted-angular-list.mjs","sources":["../../list/src/list-defaults.ts","../../list/src/list.ts","../../list/src/list-parts.ts","../../list/src/slotted-angular-list.ts"],"sourcesContent":["import { inject, Injectable, InjectionToken } from '@angular/core';\n\n/** How the rows are told apart. The vocabulary is `accordion`'s. */\nexport type ListVariant = 'plain' | 'ruled' | 'framed' | 'separated';\n\n/** The room a row gets. Density is the application's choice; this is not. */\nexport type ListSize = 'sm' | 'md' | 'lg';\n\n/**\n * What is painted in the marker column. It is a separate question from\n * `ordered`: an ordered set whose rows carry their own badges paints no number\n * and still reads in order.\n */\nexport type ListMarker = 'none' | 'bullet' | 'number';\n\nexport interface ListDefaults {\n inset: boolean;\n marker: ListMarker;\n size: ListSize;\n variant: ListVariant;\n}\n\nconst FALLBACK: ListDefaults = { inset: false, marker: 'none', size: 'md', variant: 'plain' };\n\nexport const LIST_DEFAULTS = new InjectionToken<ListDefaults>('slotted list defaults', {\n providedIn: 'root',\n factory: () => FALLBACK,\n});\n\n/**\n * An application decides once how its lists are told apart and how much room a\n * row gets, rather than repeating four inputs on every list. A list that states\n * any of them itself still wins: an explicit input is never overridden by the\n * token.\n */\nexport function provideListDefaults(defaults: Partial<ListDefaults>) {\n return {\n provide: LIST_DEFAULTS,\n useFactory: (): ListDefaults => ({\n inset: defaults.inset ?? FALLBACK.inset,\n marker: defaults.marker ?? FALLBACK.marker,\n size: defaults.size ?? FALLBACK.size,\n variant: defaults.variant ?? FALLBACK.variant,\n }),\n };\n}\n\n/** What a list renders as here, before it states anything of its own. */\nexport function injectListDefaults(): ListDefaults {\n return inject(LIST_DEFAULTS);\n}\n\n/**\n * A group's heading names its own nested list, so the heading needs an id and\n * the id has to be the same string on the server and in the browser. A counter\n * held by the injector produces one; `Math.random` would not match for\n * hydration.\n */\n@Injectable({ providedIn: 'root' })\nexport class SlListIdFactory {\n private count = 0;\n\n next() {\n this.count += 1;\n return `slotted-list-${this.count}`;\n }\n}\n","import {\n booleanAttribute,\n ChangeDetectionStrategy,\n Component,\n computed,\n HostAttributeToken,\n inject,\n input,\n ViewEncapsulation,\n} from '@angular/core';\n\nimport { injectListDefaults } from './list-defaults';\nimport type { ListMarker, ListSize, ListVariant } from './list-defaults';\n\nexport type { ListMarker, ListSize, ListVariant } from './list-defaults';\n\n/**\n * A vertical run of related rows. The rows are `slListItem`, a family of its\n * own; this one decides how they are told apart, how much room each gets, what\n * is painted in the marker column and whether they keep their inline padding,\n * and hands those four down through the injector.\n *\n * The directive goes on the element the page wrote — `<ul slList>` or\n * `<ol slList>` — because the element carries the reading order and that is the\n * page's decision, not the family's.\n *\n * **`role=\"list\"` is written, and it is not redundant.** The family draws its\n * own marker, because a row is a content box beside its independent targets and\n * CSS has no `display` that is both `list-item` and a grid. Safari and\n * VoiceOver drop list semantics the moment CSS removes the marker, so the role\n * restores what the layout costs. A `role` the consumer wrote themselves — a\n * `menu`, a `listbox` they are wiring — survives.\n *\n * The set holds no state a consumer can own. Selection with roving focus is\n * `listbox`'s and `table`'s: ARIA 1.2 does not allow `aria-selected` on\n * `listitem`, so a selection model here would announce nothing.\n */\n@Component({\n selector: 'ul[slList], ol[slList]',\n standalone: true,\n exportAs: 'slList',\n template: '<ng-content></ng-content>',\n styleUrl: '../../../styles/src/list/list.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: {\n 'data-ui': 'list',\n 'data-ui-list': '',\n 'data-part': 'root',\n 'data-part-root': '',\n '[attr.role]': 'role()',\n '[attr.data-variant]': 'resolvedVariant()',\n '[attr.data-size]': 'resolvedSize()',\n '[attr.data-marker]': 'resolvedMarker()',\n '[attr.data-inset]': \"resolvedInset() ? '' : null\",\n '[attr.data-loading]': \"loading() ? '' : null\",\n '[attr.aria-busy]': \"loading() ? 'true' : null\",\n },\n})\nexport class SlList {\n /** How the rows are told apart. Falls back to the injected default. */\n readonly variant = input<ListVariant>();\n /** The room a row gets. Falls back to the injected default. */\n readonly size = input<ListSize>();\n /** What is painted in the marker column. Falls back to the injected default. */\n readonly marker = input<ListMarker>();\n /**\n * Takes the rows' inline padding away, for a list inside a box that already\n * pads its own content. The rule and the fill still run edge to edge.\n */\n readonly inset = input<boolean | undefined, boolean | string | undefined>(undefined, {\n transform: (state) => (state === undefined ? undefined : booleanAttribute(state)),\n });\n /**\n * `aria-busy` on the set, which ARIA 1.2 §5.2.6 asks of a container whose\n * rows have not arrived. The family draws no placeholder: `skeleton` owns\n * that geometry and goes inside the rows.\n */\n readonly loading = input(false, { transform: booleanAttribute });\n\n private readonly defaults = injectListDefaults();\n\n /** A role the consumer wrote is never replaced by the family's. */\n private readonly writtenRole = inject(new HostAttributeToken('role'), { optional: true });\n\n protected readonly role = computed(() => this.writtenRole ?? 'list');\n /* Public, because a row reads them: the set is what a row asks when it has\n not been told itself. `role` stays protected — it is the host's alone. */\n readonly resolvedVariant = computed(() => this.variant() ?? this.defaults.variant);\n readonly resolvedSize = computed(() => this.size() ?? this.defaults.size);\n readonly resolvedMarker = computed(() => this.marker() ?? this.defaults.marker);\n\n /**\n * Read by every row under this set, and by the row's own input first. The\n * input stays `undefined` until it is written, so a list that states\n * `inset=\"false\"` under a provider that states `true` keeps its own answer —\n * `booleanAttribute` alone would fold the two together.\n */\n readonly resolvedInset = computed(() => (this.inset() ?? this.defaults.inset) === true);\n}\n","import {\n booleanAttribute,\n Directive,\n HostAttributeToken,\n inject,\n input,\n signal,\n} from '@angular/core';\n\nimport { SlListIdFactory } from './list-defaults';\n\n/**\n * A group inside the set: the `li` holding a heading and a nested list, which\n * is the grouping HTML already has. MUI, Angular Material, Primer and React\n * Aria each leave the heading loose among the rows instead, so a reader hears a\n * heading inside a set rather than a set with a name.\n *\n * The three elements are the consumer's own, which is what this ecosystem\n * composes with: the heading keeps whichever level the document needs, and the\n * nested list keeps `ul` or `ol` to match the set around it. React reads the\n * heading element off a `level` input instead, because there the component owns\n * the tag; both reach the same accessibility tree.\n */\n/** How a group heading is drawn. */\nexport type ListSectionLabelVariant = 'caption' | 'ruled';\n\n@Directive({\n selector: 'li[slListSection]',\n standalone: true,\n exportAs: 'slListSection',\n host: { 'data-part': 'section', 'data-part-section': '' },\n})\nexport class SlListSection {\n /**\n * The id the heading carries and the nested list names itself by. It is held\n * here rather than passed between the two, because the pair is the group and\n * neither half can name the other on its own.\n */\n readonly labelId = signal<string | undefined>(undefined);\n}\n\n/**\n * The group's name. It shares the row's inline inset, so the heading and the\n * titles under it stand in one column — the alignment that makes a grouped list\n * read as one list rather than as several.\n */\n@Directive({\n selector: '[slListSectionLabel]',\n standalone: true,\n exportAs: 'slListSectionLabel',\n host: {\n 'data-part': 'section-label',\n 'data-part-section-label': '',\n '[attr.id]': 'id',\n '[attr.data-sticky]': \"sticky() ? '' : null\",\n '[attr.data-variant]': 'variant()',\n },\n})\nexport class SlListSectionLabel {\n /**\n * How the heading is drawn. `caption` is the small muted name; `ruled` is the\n * name in the text color over a rule, with no ground behind it.\n */\n readonly variant = input<ListSectionLabelVariant>('caption');\n /**\n * Keeps the name in place while its own rows scroll past it. It takes the\n * set's surface and the library's sticky stack level, which is what a\n * consumer writing `position: sticky` alone does not get.\n */\n readonly sticky = input(false, { transform: booleanAttribute });\n\n private readonly section = inject(SlListSection, { optional: true });\n /** An id the consumer wrote is never replaced by the family's. */\n private readonly written = inject(new HostAttributeToken('id'), { optional: true });\n\n readonly id = this.written ?? inject(SlListIdFactory).next();\n\n constructor() {\n this.section?.labelId.set(this.id);\n }\n}\n\n/**\n * What stands at the end of a group heading, on the line of the name: a day's\n * balance, a count. Set in tabular figures.\n */\n@Directive({\n selector: '[slListSectionEnd]',\n standalone: true,\n host: { 'data-part': 'section-end', 'data-part-section-end': '' },\n})\nexport class SlListSectionEnd {}\n\n/**\n * The rows of one group. `role=\"list\"` for the same reason the set writes it:\n * the family draws its own marker, and the native one is what Safari and\n * VoiceOver read the semantics from.\n */\n@Directive({\n selector: 'ul[slListSectionList], ol[slListSectionList]',\n standalone: true,\n exportAs: 'slListSectionList',\n host: {\n 'data-part': 'section-list',\n 'data-part-section-list': '',\n '[attr.role]': 'role',\n '[attr.aria-labelledby]': 'labelledBy()',\n },\n})\nexport class SlListSectionList {\n private readonly section = inject(SlListSection, { optional: true });\n /** A role the consumer wrote is never replaced by the family's. */\n private readonly writtenRole = inject(new HostAttributeToken('role'), { optional: true });\n private readonly writtenLabelledBy = inject(new HostAttributeToken('aria-labelledby'), {\n optional: true,\n });\n\n readonly role = this.writtenRole ?? 'list';\n\n readonly labelledBy = () => this.writtenLabelledBy ?? this.section?.labelId() ?? null;\n}\n\n/**\n * What the set says when it holds nothing. It is an `li`, so the reader hears\n * \"list, one item\" and then the message; a message outside the list leaves them\n * with \"list, zero items\" and silence, and leaves the words outside the box a\n * framed set paints.\n *\n * The family supplies the box, the height and the muted ink. The words are the\n * page's, and `result-state` is what goes in here.\n */\n@Directive({\n selector: 'li[slListEmpty]',\n standalone: true,\n exportAs: 'slListEmpty',\n host: { 'data-part': 'empty', 'data-part-empty': '' },\n})\nexport class SlListEmpty {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;AAsBA,MAAM,QAAQ,GAAiB,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE;MAEhF,aAAa,GAAG,IAAI,cAAc,CAAe,uBAAuB,EAAE;AACrF,IAAA,UAAU,EAAE,MAAM;AAClB,IAAA,OAAO,EAAE,MAAM,QAAQ;AACxB,CAAA;AAED;;;;;AAKG;AACG,SAAU,mBAAmB,CAAC,QAA+B,EAAA;IACjE,OAAO;AACL,QAAA,OAAO,EAAE,aAAa;AACtB,QAAA,UAAU,EAAE,OAAqB;AAC/B,YAAA,KAAK,EAAE,QAAQ,CAAC,KAAK,I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AAW,EAAE,cAAc;AAC3B,wBAAA,wBAAwB,EAAE,EAAE;AAC5B,wBAAA,aAAa,EAAE,MAAM;AACrB,wBAAA,wBAAwB,EAAE,cAAc;AACzC,qBAAA;AACF,iBAAA;;AAcD;;;;;;;;AAQG;MAOU,WAAW,CAAA;uGAAX,WAAW,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;2FAAX,WAAW,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,WAAA,EAAA,OAAA,EAAA,iBAAA,EAAA,EAAA,EAAA,EAAA,EAAA,QAAA,EAAA,CAAA,aAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;2FAAX,WAAW,EAAA,UAAA,EAAA,CAAA;kBANvB,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,iBAAiB;AAC3B,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,QAAQ,EAAE,aAAa;oBACvB,IAAI,EAAE,EAAE,WAAW,EAAE,OAAO,EAAE,iBAAiB,EAAE,EAAE,EAAE;AACtD,iBAAA;;;ACxID;;AAEG;;"}
@@ -190,7 +190,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImpor
190
190
  * A group of options, named by its own label. The pattern requires the name —
191
191
  * "each option group has an accessible name provided via aria-label or
192
192
  * aria-labelledby" — and requires the group to hold at least one option, which
193
- * is the consumer's to honour.
193
+ * is the consumer's to honor.
194
194
  */
195
195
  class SlListboxGroup {
196
196
  /** The group's accessible name, rendered as its own label row. */
@@ -260,7 +260,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImpor
260
260
  /**
261
261
  * The option's own artwork, in the same column the mark uses and never beside
262
262
  * it: a `span[slIcon]` holding an `svg[slGlyph]`, or an element of the page's
263
- * own. The column sizes and centres it; no stylesheet fills it.
263
+ * own. The column sizes and centers it; no stylesheet fills it.
264
264
  */
265
265
  class SlListboxIcon {
266
266
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlListboxIcon, deps: [], target: i0.ɵɵFactoryTarget.Directive });