@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-segmented-control.mjs","sources":["../../segmented-control/src/segmented-control-defaults.ts","../../segmented-control/src/segmented-control.ts","../../segmented-control/src/segmented-control-parts.ts","../../segmented-control/src/slotted-angular-segmented-control.ts"],"sourcesContent":["import { inject, Injectable, InjectionToken } from '@angular/core';\n\n/** The type step the control and every segment inside it sit at. */\nexport type SegmentedControlSize = 'sm' | 'md' | 'lg';\n\n/** How the segments flow. The thumb travels along the same axis. */\nexport type SegmentedControlOrientation = 'horizontal' | 'vertical';\n\n/**\n * What the control does when it is narrower than its labels need. `icons`\n * keeps the marks and hides the words — hidden, never removed, so the\n * accessible name of every segment is the same at every width.\n */\nexport type SegmentedControlCondense = 'none' | 'icons';\n\n/**\n * How the choice is drawn. `track` is a box with a thumb behind the chosen\n * segment; `underline` is the words alone, the chosen one in the text colour\n * and underlined. The semantics are the same radio group in both.\n */\nexport type SegmentedControlVariant = 'track' | 'underline';\n\nexport interface SegmentedControlDefaults {\n condense: SegmentedControlCondense;\n fullWidth: boolean;\n orientation: SegmentedControlOrientation;\n size: SegmentedControlSize;\n variant: SegmentedControlVariant;\n}\n\nconst FALLBACK: SegmentedControlDefaults = {\n condense: 'none',\n fullWidth: false,\n orientation: 'horizontal',\n size: 'md',\n variant: 'track',\n};\n\nexport const SEGMENTED_CONTROL_DEFAULTS = new InjectionToken<SegmentedControlDefaults>(\n 'slotted segmented control defaults',\n { providedIn: 'root', factory: () => FALLBACK },\n);\n\n/**\n * An application decides once how its segmented controls are drawn, rather\n * than repeating the same inputs on every one of them. A control that states\n * any of them itself still wins, and a field around it outranks this token for\n * `size`.\n */\nexport function provideSegmentedControlDefaults(defaults: Partial<SegmentedControlDefaults>) {\n return {\n provide: SEGMENTED_CONTROL_DEFAULTS,\n useFactory: (): SegmentedControlDefaults => ({ ...FALLBACK, ...defaults }),\n };\n}\n\n/** What a segmented control renders as here, before it states anything of its own. */\nexport function injectSegmentedControlDefaults(): SegmentedControlDefaults {\n return inject(SEGMENTED_CONTROL_DEFAULTS);\n}\n\n/**\n * Application-scoped rather than module-scoped, for the reason `field`\n * records: a module-level counter produces colliding sequences when two\n * applications render in one server process, and the server and the client\n * sequences must match for hydration.\n *\n * It answers for the control's generated `name` as well as for each segment's\n * identifier, because both have to be stable across the two renders.\n */\n@Injectable({ providedIn: 'root' })\nexport class SlSegmentedControlIdFactory {\n private count = 0;\n\n next() {\n this.count += 1;\n return `slotted-segmented-control-${this.count}`;\n }\n}\n","import { createControllable } from '@slotted/core/state';\nimport type { ChangeRequest } from '@slotted/core/state';\nimport {\n booleanAttribute,\n ChangeDetectionStrategy,\n Component,\n computed,\n forwardRef,\n HostAttributeToken,\n inject,\n input,\n output,\n signal,\n ViewEncapsulation,\n} from '@angular/core';\nimport type { OnInit } from '@angular/core';\nimport { NG_VALIDATORS, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport type {\n AbstractControl,\n ControlValueAccessor,\n ValidationErrors,\n Validator,\n} from '@angular/forms';\nimport { SlField } from '@slotted/angular/field';\nimport { SlFieldGroup } from '@slotted/angular/field-group';\n\nimport {\n injectSegmentedControlDefaults,\n SlSegmentedControlIdFactory,\n} from './segmented-control-defaults';\nimport type {\n SegmentedControlCondense,\n SegmentedControlOrientation,\n SegmentedControlSize,\n SegmentedControlVariant,\n} from './segmented-control-defaults';\n\nexport type {\n SegmentedControlCondense,\n SegmentedControlDefaults,\n SegmentedControlOrientation,\n SegmentedControlSize,\n SegmentedControlVariant,\n} from './segmented-control-defaults';\n\n/** Why the value moved. A segmented control can produce exactly these two. */\nexport type SegmentedControlSelectionReason = 'pointer' | 'keyboard';\n\n/**\n * What the control needs from each segment, and nothing more.\n *\n * A structural type rather than the segment's class, so the control does not\n * import the component that injects it — the cycle `text-field` breaks with an\n * abstract class, broken here with the smaller thing that works.\n */\nexport interface SlSegmentedControlSegment {\n /** What this segment selects. */\n value: () => string;\n /** Writes this segment's element from the control's value. */\n syncElement(): void;\n}\n\n/**\n * One choice out of a few, applied at once, on a track.\n *\n * **The keyboard is the platform's, and that is why the segments share a\n * `name`.** Native radios in one form owner with one name already implement\n * the APG's Radio Group table: Tab lands on the checked segment or on the\n * first, `Space` checks, both arrow axes move focus and the selection\n * together, the set wraps, and disabled segments are skipped — in a\n * right-to-left document too.\n *\n * **The role is conditional, and the condition is the field group.** A\n * `field-group` is a `fieldset` with a `legend`, which is already a named\n * group; a `radiogroup` inside it is the same set announced twice. A `role`\n * the consumer wrote wins over both.\n *\n * **`readOnly` is enforced, because the platform has none.** A radio ignores\n * `readonly`, so the control refuses the change on the segment's own `click` —\n * the one event a pointer and `Space` share — and announces `aria-readonly`.\n *\n * **The thumb's place is the checked index, and the count is how many\n * segments registered.** Both are written as custom properties on the host, so\n * the stylesheet needs no measurement: the thumb is one column wide and moves\n * by its own width times the index.\n */\n@Component({\n selector: '[slSegmentedControl]',\n standalone: true,\n exportAs: 'slSegmentedControl',\n template: `@if (checkedIndex() >= 0) {\n <span data-part=\"indicator\" data-part-indicator=\"\" aria-hidden=\"true\"></span>\n }\n <ng-content />`,\n styleUrl: '../../../styles/src/segmented-control/segmented-control.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n providers: [\n { provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => SlSegmentedControl), multi: true },\n { provide: NG_VALIDATORS, useExisting: forwardRef(() => SlSegmentedControl), multi: true },\n ],\n host: {\n 'data-ui': 'segmented-control',\n 'data-ui-segmented-control': '',\n 'data-part': 'root',\n 'data-part-root': '',\n '[attr.role]': 'resolvedRole()',\n '[attr.data-size]': 'resolvedSize()',\n '[attr.data-orientation]': 'resolvedOrientation()',\n '[attr.data-condense]': 'resolvedCondense()',\n '[attr.data-variant]': 'resolvedVariant()',\n '[attr.aria-labelledby]': 'labelledBy()',\n '[attr.data-full-width]': \"resolvedFullWidth() ? '' : null\",\n '[attr.data-disabled]': \"resolvedDisabled() === true ? '' : null\",\n '[attr.data-invalid]': \"resolvedInvalid() === true ? '' : null\",\n '[attr.data-readonly]': \"resolvedReadOnly() === true ? '' : null\",\n '[attr.aria-describedby]': 'describedBy()',\n '[attr.aria-invalid]': 'ariaInvalid()',\n '[attr.aria-readonly]': 'ariaReadOnly()',\n '[attr.aria-required]': 'ariaRequired()',\n '[attr.aria-orientation]': 'ariaOrientation()',\n '[style.--slotted-segmented-control-count]': 'count()',\n '[style.--slotted-segmented-control-index]': 'indexProperty()',\n },\n})\nexport class SlSegmentedControl implements ControlValueAccessor, OnInit, Validator {\n /** Present means the consumer owns the choice. */\n readonly value = input<string | undefined>(undefined);\n /** The value an uncontrolled control starts from, read once. */\n readonly defaultValue = input<string | undefined>(undefined);\n /**\n * The submission name the segments share, and the reason the platform\n * treats them as one radio group. Generated when it is not written, because\n * grouping is by name within the form owner and an unnamed set is not a set.\n */\n readonly name = input<string | undefined>(undefined);\n readonly size = input<SegmentedControlSize | undefined>(undefined);\n readonly orientation = input<SegmentedControlOrientation | undefined>(undefined);\n readonly condense = input<SegmentedControlCondense | undefined>(undefined);\n /** Defaults to the provider, then to `track`. */\n readonly variant = input<SegmentedControlVariant | undefined>(undefined);\n readonly fullWidth = input<boolean | undefined, boolean | string | undefined>(undefined, {\n transform: (value) => (value === undefined ? undefined : booleanAttribute(value)),\n });\n /** Unstated rather than `false`, so the control defers to the field around it. */\n readonly disabled = input<boolean | undefined, boolean | string | undefined>(undefined, {\n transform: (value) => (value === undefined ? undefined : booleanAttribute(value)),\n });\n readonly readOnly = input<boolean | undefined, boolean | string | undefined>(undefined, {\n transform: (value) => (value === undefined ? undefined : booleanAttribute(value)),\n });\n readonly invalid = input<boolean | undefined, boolean | string | undefined>(undefined, {\n transform: (value) => (value === undefined ? undefined : booleanAttribute(value)),\n });\n readonly required = input<boolean | undefined, boolean | string | undefined>(undefined, {\n transform: (value) => (value === undefined ? undefined : booleanAttribute(value)),\n });\n\n /**\n * One output for one transition. Its `previous` is `undefined` while nothing\n * has been chosen, which a request typed over `string` alone could not say.\n */\n readonly valueChange = output<ChangeRequest<string | undefined>>();\n\n private readonly field = inject(SlField, { optional: true });\n private readonly fieldGroup = inject(SlFieldGroup, { optional: true });\n private readonly defaults = injectSegmentedControlDefaults();\n private readonly generatedName = inject(SlSegmentedControlIdFactory).next();\n private readonly writtenRole = inject(new HostAttributeToken('role'), { optional: true });\n private readonly writtenLabel = inject(new HostAttributeToken('aria-label'), { optional: true });\n private readonly writtenLabelledBy = inject(new HostAttributeToken('aria-labelledby'), {\n optional: true,\n });\n /* A group has no element a label's for can reach, so inside a field the\n field's label names it where the root owns the role, unless the consumer\n named it themselves. */\n protected readonly labelledBy = computed(\n () =>\n this.writtenLabelledBy ??\n (this.writtenLabel === null && this.resolvedRole() !== null\n ? (this.field?.ids().label ?? null)\n : null),\n );\n private readonly writtenDescribedBy = inject(new HostAttributeToken('aria-describedby'), {\n optional: true,\n });\n\n private readonly segments = signal<readonly SlSegmentedControlSegment[]>([]);\n private readonly own = signal<string | undefined>(undefined);\n private readonly formDisabled = signal<boolean | undefined>(undefined);\n private onChangeFn: (value: string) => void = () => undefined;\n private onTouchedFn: () => void = () => undefined;\n\n readonly selection = computed(() => this.value() ?? this.own());\n readonly resolvedName = computed(() => this.name() ?? this.generatedName);\n\n /** How many segments the track holds, and which of them is checked. */\n readonly count = computed(() => this.segments().length);\n readonly checkedIndex = computed(() => {\n const current = this.selection();\n if (current === undefined) return -1;\n return this.segments().findIndex((segment) => segment.value() === current);\n });\n protected readonly indexProperty = computed(() => {\n const index = this.checkedIndex();\n return index < 0 ? null : index;\n });\n\n readonly resolvedSize = computed(\n () =>\n this.size() ??\n this.field?.resolvedSize() ??\n this.fieldGroup?.resolvedSize() ??\n this.defaults.size,\n );\n readonly resolvedOrientation = computed(() => this.orientation() ?? this.defaults.orientation);\n readonly resolvedCondense = computed(() => this.condense() ?? this.defaults.condense);\n readonly resolvedVariant = computed(() => this.variant() ?? this.defaults.variant);\n readonly resolvedFullWidth = computed(() => this.fullWidth() ?? this.defaults.fullWidth);\n readonly resolvedDisabled = computed(\n () => this.disabled() ?? this.formDisabled() ?? this.field?.resolvedDisabled(),\n );\n readonly resolvedReadOnly = computed(() => this.readOnly() ?? this.field?.resolvedReadOnly());\n readonly resolvedInvalid = computed(() => this.invalid() ?? this.field?.invalid());\n readonly resolvedRequired = computed(\n () => this.required() ?? this.field?.required() ?? this.fieldGroup?.required(),\n );\n\n protected readonly resolvedRole = computed(\n () => this.writtenRole ?? (this.fieldGroup === null ? 'radiogroup' : null),\n );\n protected readonly describedBy = computed(() => {\n const merged = [this.writtenDescribedBy, this.field?.describedBy()].filter(Boolean);\n return merged.length === 0 ? null : merged.join(' ');\n });\n protected readonly ariaInvalid = computed(() =>\n this.resolvedInvalid() === true ? 'true' : null,\n );\n protected readonly ariaReadOnly = computed(() =>\n this.resolvedReadOnly() === true ? 'true' : null,\n );\n protected readonly ariaRequired = computed(() =>\n this.resolvedRequired() === true ? 'true' : null,\n );\n /**\n * Only where the root owns the role, and only when the set flows the way\n * `radiogroup` does not already imply.\n */\n protected readonly ariaOrientation = computed(() =>\n this.resolvedRole() === 'radiogroup' && this.resolvedOrientation() === 'horizontal'\n ? 'horizontal'\n : null,\n );\n\n ngOnInit() {\n if (this.value() === undefined) this.own.set(this.defaultValue());\n }\n\n /** A segment joins the set, in the order the template holds it. */\n register(segment: SlSegmentedControlSegment) {\n this.segments.update((current) => [...current, segment]);\n }\n\n /** A segment leaves the set. */\n unregister(segment: SlSegmentedControlSegment) {\n this.segments.update((current) => current.filter((entry) => entry !== segment));\n }\n\n /**\n * Writes every segment's element from the value.\n *\n * The HTML standard's canceled activation behaviour for a radio restores the\n * *clicked* element and nothing else, so the option that was chosen before\n * the refused click stays unchecked. Angular writes a property binding only\n * when its value changes, and the neighbour's did not — the correction is\n * made here, which is the defect `radio-group` measured first.\n */\n restoreElements() {\n for (const segment of this.segments()) segment.syncElement();\n }\n\n /** Whether one value is the chosen one. Read by every segment in the set. */\n holds(value: string): boolean {\n return this.selection() === value;\n }\n\n /**\n * Asks the control to move to one value. Returns whether the value actually\n * moved — false while a consumer owns it, which is what tells the segment to\n * refuse the activation and let the platform put the element back.\n */\n select(value: string, reason: SegmentedControlSelectionReason, source: Event): boolean {\n if (this.resolvedReadOnly() === true) return false;\n\n let cancelled = false;\n const state = createControllable<string | undefined>({\n controlled: this.value(),\n initial: this.selection(),\n onRequest: (request) => {\n this.valueChange.emit(request);\n cancelled = request.cancelled;\n },\n });\n const moved = state.request(value, reason, source);\n if (cancelled || !moved) return false;\n this.own.set(value);\n this.onChangeFn(value);\n return true;\n }\n\n writeValue(value: string | null | undefined) {\n this.own.set(value ?? undefined);\n }\n\n registerOnChange(fn: (value: string) => void) {\n this.onChangeFn = fn;\n }\n\n registerOnTouched(fn: () => void) {\n this.onTouchedFn = fn;\n }\n\n setDisabledState(isDisabled: boolean) {\n this.formDisabled.set(isDisabled);\n }\n\n /** Marks the set touched, which a segment calls when it loses focus. */\n markTouched() {\n this.onTouchedFn();\n }\n\n /**\n * The control owns validity over the set, which no single segment can see:\n * \"choose one\" is a fact about the set and not about any one option.\n */\n validate(control: AbstractControl): ValidationErrors | null {\n if (this.resolvedRequired() !== true) return null;\n const value = control.value as string | null | undefined;\n return value === null || value === undefined || value === '' ? { required: true } : null;\n }\n}\n","import {\n booleanAttribute,\n ChangeDetectionStrategy,\n Component,\n computed,\n DestroyRef,\n Directive,\n ElementRef,\n HostAttributeToken,\n inject,\n input,\n viewChild,\n ViewEncapsulation,\n} from '@angular/core';\n\nimport { SlSegmentedControl } from './segmented-control';\nimport { SlSegmentedControlIdFactory } from './segmented-control-defaults';\nimport type {\n SegmentedControlSelectionReason,\n SlSegmentedControlSegment,\n} from './segmented-control';\n\n/**\n * The mark a segment is drawn with, on the consumer's own element.\n *\n * A directive rather than a slot, so an `ng-icon`, an inline `svg` or a\n * `span` all work and none of them loses its own semantics. It is hidden from\n * the reading order, because the words beside it — or the `aria-label` on the\n * radio — are what a reader hears.\n */\n@Directive({\n selector: '[slSegmentIcon]',\n standalone: true,\n exportAs: 'slSegmentIcon',\n host: {\n 'data-part': 'icon',\n 'data-part-icon': '',\n 'aria-hidden': 'true',\n },\n})\nexport class SlSegmentIcon {}\n\n/**\n * A click synthesised by the keyboard reports no detail; a real one reports\n * the click count. It is why `Space` and a pointer are told apart without a\n * key listener existing anywhere in the family.\n */\nfunction activationReason(event: Event): SegmentedControlSelectionReason {\n return event instanceof MouseEvent && event.detail === 0 ? 'keyboard' : 'pointer';\n}\n\n/**\n * One segment of the track.\n *\n * It is a part of `segmented-control` and not an entry point of its own:\n * outside a control it has no exclusive set to belong to, and the platform's\n * whole keyboard model is defined over the set. `SlSegmentedControl` is\n * injected without `optional`, so a segment written outside one fails at\n * construction rather than silently.\n *\n * The radio is real, visually hidden and left where it is: it covers the\n * segment and reaches the track's own edge, so the hit area is the control's\n * height rather than the thumb's.\n */\n@Component({\n selector: '[slSegment]',\n standalone: true,\n exportAs: 'slSegment',\n template: `<input\n #control\n data-part=\"control\"\n data-part-control=\"\"\n type=\"radio\"\n [attr.id]=\"controlId\"\n [attr.name]=\"control_.resolvedName()\"\n [attr.value]=\"value()\"\n [attr.aria-label]=\"ariaLabel\"\n [attr.aria-describedby]=\"writtenDescribedBy\"\n [attr.disabled]=\"disabledAttribute()\"\n [checked]=\"checked()\"\n (click)=\"onClick($event)\"\n (blur)=\"onBlur()\"\n />\n <ng-content select=\"[slSegmentIcon]\" />\n <span data-part=\"label\" data-part-label=\"\"><ng-content /></span>`,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: {\n 'data-part': 'item',\n 'data-part-item': '',\n '[attr.data-checked]': \"checked() ? '' : null\",\n '[attr.data-disabled]': \"resolvedDisabled() === true ? '' : null\",\n },\n})\nexport class SlSegment implements SlSegmentedControlSegment {\n /** What this segment selects. It is what the control's value holds. */\n readonly value = input.required<string>();\n /** Unstated rather than `false`, so the segment defers to the control. */\n readonly disabled = input<boolean | undefined, boolean | string | undefined>(undefined, {\n transform: (value) => (value === undefined ? undefined : booleanAttribute(value)),\n });\n\n /**\n * The control the segment belongs to. Injected without `optional`, and\n * public because the template reads the shared name from it and a consumer\n * reaching the segment through `exportAs` may want the resolved step.\n *\n * The trailing underscore keeps the name off `value`, which is the input.\n */\n readonly control_ = inject(SlSegmentedControl);\n\n private readonly writtenId = inject(new HostAttributeToken('id'), { optional: true });\n /**\n * Read from the host and written onto the radio: the name of a segment whose\n * mark is its whole content belongs to the control that holds the focus, and\n * an `aria-label` left on the `label` element would name it twice.\n */\n protected readonly ariaLabel = inject(new HostAttributeToken('aria-label'), { optional: true });\n protected readonly writtenDescribedBy = inject(new HostAttributeToken('aria-describedby'), {\n optional: true,\n });\n private readonly element = viewChild.required<ElementRef<HTMLInputElement>>('control');\n\n /** The identifier the radio carries. A consumer's own wins. */\n readonly controlId = this.writtenId ?? inject(SlSegmentedControlIdFactory).next();\n\n readonly checked = computed(() => this.control_.holds(this.value()));\n readonly resolvedDisabled = computed(() => this.disabled() ?? this.control_.resolvedDisabled());\n\n protected readonly disabledAttribute = computed(() =>\n this.resolvedDisabled() === true ? '' : null,\n );\n\n constructor() {\n this.control_.register(this);\n inject(DestroyRef).onDestroy(() => this.control_.unregister(this));\n }\n\n /** Writes this segment's element from the control's value. */\n syncElement() {\n this.element().nativeElement.checked = this.checked();\n }\n\n protected onClick(event: Event) {\n if (this.control_.select(this.value(), activationReason(event), event)) return;\n /* Refused: the platform's own selection is put back, on this element and\n on the neighbour the browser had already unchecked. */\n event.preventDefault();\n this.control_.restoreElements();\n }\n\n protected onBlur() {\n this.control_.markTouched();\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;AA8BA,MAAM,QAAQ,GAA6B;AACzC,IAAA,QAAQ,EAAE,MAAM;AAChB,IAAA,SAAS,EAAE,KAAK;AAChB,IAAA,WAAW,EAAE,YAAY;AACzB,IAAA,IAAI,EAAE,IAAI;AACV,IAAA,OAAO,EAAE,OAAO;CACjB;MAEY,0BAA0B,GAAG,IAAI,cAAc,CAC1D,oCAAoC,EACpC,EAAE,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,QAAQ,EAAE;AAGjD;;;;;AAKG;AACG,SAAU,+BAA+B,CAAC,QAA2C,EAAA;IACzF,OAAO;AACL,QAAA,OAAO,EAAE,0BAA0B;AACnC,QAAA,UAAU,EAAE,OAAiC,EAAE,GAAG,QAAQ,EAAE,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,iBAAA,CAAA,IAAA,EAAA,CAAA;;2FAUxD,SAAS,EAAA,UAAA,EAAA,CAAA;kBA9BrB,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,aAAa;AACvB,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,QAAQ,EAAE,WAAW;AACrB,oBAAA,QAAQ,EAAE,CAAA;;;;;;;;;;;;;;;;AAgByD,oEAAA,CAAA;oBACnE,eAAe,EAAE,uBAAuB,CAAC,MAAM;oBAC/C,aAAa,EAAE,iBAAiB,CAAC,IAAI;AACrC,oBAAA,IAAI,EAAE;AACJ,wBAAA,WAAW,EAAE,MAAM;AACnB,wBAAA,gBAAgB,EAAE,EAAE;AACpB,wBAAA,qBAAqB,EAAE,uBAAuB;AAC9C,wBAAA,sBAAsB,EAAE,yCAAyC;AAClE,qBAAA;AACF,iBAAA;wRA4B6E,SAAS,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;ACzHvF;;AAEG;;"}
1
+ {"version":3,"file":"slotted-angular-segmented-control.mjs","sources":["../../segmented-control/src/segmented-control-defaults.ts","../../segmented-control/src/segmented-control.ts","../../segmented-control/src/segmented-control-parts.ts","../../segmented-control/src/slotted-angular-segmented-control.ts"],"sourcesContent":["import { inject, Injectable, InjectionToken } from '@angular/core';\n\n/** The type step the control and every segment inside it sit at. */\nexport type SegmentedControlSize = 'sm' | 'md' | 'lg';\n\n/** How the segments flow. The thumb travels along the same axis. */\nexport type SegmentedControlOrientation = 'horizontal' | 'vertical';\n\n/**\n * What the control does when it is narrower than its labels need. `icons`\n * keeps the marks and hides the words — hidden, never removed, so the\n * accessible name of every segment is the same at every width.\n */\nexport type SegmentedControlCondense = 'none' | 'icons';\n\n/**\n * How the choice is drawn. `track` is a box with a thumb behind the chosen\n * segment; `underline` is the words alone, the chosen one in the text color\n * and underlined. The semantics are the same radio group in both.\n */\nexport type SegmentedControlVariant = 'track' | 'underline';\n\nexport interface SegmentedControlDefaults {\n condense: SegmentedControlCondense;\n fullWidth: boolean;\n orientation: SegmentedControlOrientation;\n size: SegmentedControlSize;\n variant: SegmentedControlVariant;\n}\n\nconst FALLBACK: SegmentedControlDefaults = {\n condense: 'none',\n fullWidth: false,\n orientation: 'horizontal',\n size: 'md',\n variant: 'track',\n};\n\nexport const SEGMENTED_CONTROL_DEFAULTS = new InjectionToken<SegmentedControlDefaults>(\n 'slotted segmented control defaults',\n { providedIn: 'root', factory: () => FALLBACK },\n);\n\n/**\n * An application decides once how its segmented controls are drawn, rather\n * than repeating the same inputs on every one of them. A control that states\n * any of them itself still wins, and a field around it outranks this token for\n * `size`.\n */\nexport function provideSegmentedControlDefaults(defaults: Partial<SegmentedControlDefaults>) {\n return {\n provide: SEGMENTED_CONTROL_DEFAULTS,\n useFactory: (): SegmentedControlDefaults => ({ ...FALLBACK, ...defaults }),\n };\n}\n\n/** What a segmented control renders as here, before it states anything of its own. */\nexport function injectSegmentedControlDefaults(): SegmentedControlDefaults {\n return inject(SEGMENTED_CONTROL_DEFAULTS);\n}\n\n/**\n * Application-scoped rather than module-scoped, for the reason `field`\n * records: a module-level counter produces colliding sequences when two\n * applications render in one server process, and the server and the client\n * sequences must match for hydration.\n *\n * It answers for the control's generated `name` as well as for each segment's\n * identifier, because both have to be stable across the two renders.\n */\n@Injectable({ providedIn: 'root' })\nexport class SlSegmentedControlIdFactory {\n private count = 0;\n\n next() {\n this.count += 1;\n return `slotted-segmented-control-${this.count}`;\n }\n}\n","import { createControllable } from '@slotted/core/state';\nimport type { ChangeRequest } from '@slotted/core/state';\nimport {\n booleanAttribute,\n ChangeDetectionStrategy,\n Component,\n computed,\n forwardRef,\n HostAttributeToken,\n inject,\n input,\n output,\n signal,\n ViewEncapsulation,\n} from '@angular/core';\nimport type { OnInit } from '@angular/core';\nimport { NG_VALIDATORS, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport type {\n AbstractControl,\n ControlValueAccessor,\n ValidationErrors,\n Validator,\n} from '@angular/forms';\nimport { SlField } from '@slotted/angular/field';\nimport { SlFieldGroup } from '@slotted/angular/field-group';\n\nimport {\n injectSegmentedControlDefaults,\n SlSegmentedControlIdFactory,\n} from './segmented-control-defaults';\nimport type {\n SegmentedControlCondense,\n SegmentedControlOrientation,\n SegmentedControlSize,\n SegmentedControlVariant,\n} from './segmented-control-defaults';\n\nexport type {\n SegmentedControlCondense,\n SegmentedControlDefaults,\n SegmentedControlOrientation,\n SegmentedControlSize,\n SegmentedControlVariant,\n} from './segmented-control-defaults';\n\n/** Why the value moved. A segmented control can produce exactly these two. */\nexport type SegmentedControlSelectionReason = 'pointer' | 'keyboard';\n\n/**\n * What the control needs from each segment, and nothing more.\n *\n * A structural type rather than the segment's class, so the control does not\n * import the component that injects it — the cycle `text-field` breaks with an\n * abstract class, broken here with the smaller thing that works.\n */\nexport interface SlSegmentedControlSegment {\n /** What this segment selects. */\n value: () => string;\n /** Writes this segment's element from the control's value. */\n syncElement(): void;\n}\n\n/**\n * One choice out of a few, applied at once, on a track.\n *\n * **The keyboard is the platform's, and that is why the segments share a\n * `name`.** Native radios in one form owner with one name already implement\n * the APG's Radio Group table: Tab lands on the checked segment or on the\n * first, `Space` checks, both arrow axes move focus and the selection\n * together, the set wraps, and disabled segments are skipped — in a\n * right-to-left document too.\n *\n * **The role is conditional, and the condition is the field group.** A\n * `field-group` is a `fieldset` with a `legend`, which is already a named\n * group; a `radiogroup` inside it is the same set announced twice. A `role`\n * the consumer wrote wins over both.\n *\n * **`readOnly` is enforced, because the platform has none.** A radio ignores\n * `readonly`, so the control refuses the change on the segment's own `click` —\n * the one event a pointer and `Space` share — and announces `aria-readonly`.\n *\n * **The thumb's place is the checked index, and the count is how many\n * segments registered.** Both are written as custom properties on the host, so\n * the stylesheet needs no measurement: the thumb is one column wide and moves\n * by its own width times the index.\n */\n@Component({\n selector: '[slSegmentedControl]',\n standalone: true,\n exportAs: 'slSegmentedControl',\n template: `@if (checkedIndex() >= 0) {\n <span data-part=\"indicator\" data-part-indicator=\"\" aria-hidden=\"true\"></span>\n }\n <ng-content />`,\n styleUrl: '../../../styles/src/segmented-control/segmented-control.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n providers: [\n { provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => SlSegmentedControl), multi: true },\n { provide: NG_VALIDATORS, useExisting: forwardRef(() => SlSegmentedControl), multi: true },\n ],\n host: {\n 'data-ui': 'segmented-control',\n 'data-ui-segmented-control': '',\n 'data-part': 'root',\n 'data-part-root': '',\n '[attr.role]': 'resolvedRole()',\n '[attr.data-size]': 'resolvedSize()',\n '[attr.data-orientation]': 'resolvedOrientation()',\n '[attr.data-condense]': 'resolvedCondense()',\n '[attr.data-variant]': 'resolvedVariant()',\n '[attr.aria-labelledby]': 'labelledBy()',\n '[attr.data-full-width]': \"resolvedFullWidth() ? '' : null\",\n '[attr.data-disabled]': \"resolvedDisabled() === true ? '' : null\",\n '[attr.data-invalid]': \"resolvedInvalid() === true ? '' : null\",\n '[attr.data-readonly]': \"resolvedReadOnly() === true ? '' : null\",\n '[attr.aria-describedby]': 'describedBy()',\n '[attr.aria-invalid]': 'ariaInvalid()',\n '[attr.aria-readonly]': 'ariaReadOnly()',\n '[attr.aria-required]': 'ariaRequired()',\n '[attr.aria-orientation]': 'ariaOrientation()',\n '[style.--slotted-segmented-control-count]': 'count()',\n '[style.--slotted-segmented-control-index]': 'indexProperty()',\n },\n})\nexport class SlSegmentedControl implements ControlValueAccessor, OnInit, Validator {\n /** Present means the consumer owns the choice. */\n readonly value = input<string | undefined>(undefined);\n /** The value an uncontrolled control starts from, read once. */\n readonly defaultValue = input<string | undefined>(undefined);\n /**\n * The submission name the segments share, and the reason the platform\n * treats them as one radio group. Generated when it is not written, because\n * grouping is by name within the form owner and an unnamed set is not a set.\n */\n readonly name = input<string | undefined>(undefined);\n readonly size = input<SegmentedControlSize | undefined>(undefined);\n readonly orientation = input<SegmentedControlOrientation | undefined>(undefined);\n readonly condense = input<SegmentedControlCondense | undefined>(undefined);\n /** Defaults to the provider, then to `track`. */\n readonly variant = input<SegmentedControlVariant | undefined>(undefined);\n readonly fullWidth = input<boolean | undefined, boolean | string | undefined>(undefined, {\n transform: (value) => (value === undefined ? undefined : booleanAttribute(value)),\n });\n /** Unstated rather than `false`, so the control defers to the field around it. */\n readonly disabled = input<boolean | undefined, boolean | string | undefined>(undefined, {\n transform: (value) => (value === undefined ? undefined : booleanAttribute(value)),\n });\n readonly readOnly = input<boolean | undefined, boolean | string | undefined>(undefined, {\n transform: (value) => (value === undefined ? undefined : booleanAttribute(value)),\n });\n readonly invalid = input<boolean | undefined, boolean | string | undefined>(undefined, {\n transform: (value) => (value === undefined ? undefined : booleanAttribute(value)),\n });\n readonly required = input<boolean | undefined, boolean | string | undefined>(undefined, {\n transform: (value) => (value === undefined ? undefined : booleanAttribute(value)),\n });\n\n /**\n * One output for one transition. Its `previous` is `undefined` while nothing\n * has been chosen, which a request typed over `string` alone could not say.\n */\n readonly valueChange = output<ChangeRequest<string | undefined>>();\n\n private readonly field = inject(SlField, { optional: true });\n private readonly fieldGroup = inject(SlFieldGroup, { optional: true });\n private readonly defaults = injectSegmentedControlDefaults();\n private readonly generatedName = inject(SlSegmentedControlIdFactory).next();\n private readonly writtenRole = inject(new HostAttributeToken('role'), { optional: true });\n private readonly writtenLabel = inject(new HostAttributeToken('aria-label'), { optional: true });\n private readonly writtenLabelledBy = inject(new HostAttributeToken('aria-labelledby'), {\n optional: true,\n });\n /* A group has no element a label's for can reach, so inside a field the\n field's label names it where the root owns the role, unless the consumer\n named it themselves. */\n protected readonly labelledBy = computed(\n () =>\n this.writtenLabelledBy ??\n (this.writtenLabel === null && this.resolvedRole() !== null\n ? (this.field?.ids().label ?? null)\n : null),\n );\n private readonly writtenDescribedBy = inject(new HostAttributeToken('aria-describedby'), {\n optional: true,\n });\n\n private readonly segments = signal<readonly SlSegmentedControlSegment[]>([]);\n private readonly own = signal<string | undefined>(undefined);\n private readonly formDisabled = signal<boolean | undefined>(undefined);\n private onChangeFn: (value: string) => void = () => undefined;\n private onTouchedFn: () => void = () => undefined;\n\n readonly selection = computed(() => this.value() ?? this.own());\n readonly resolvedName = computed(() => this.name() ?? this.generatedName);\n\n /** How many segments the track holds, and which of them is checked. */\n readonly count = computed(() => this.segments().length);\n readonly checkedIndex = computed(() => {\n const current = this.selection();\n if (current === undefined) return -1;\n return this.segments().findIndex((segment) => segment.value() === current);\n });\n protected readonly indexProperty = computed(() => {\n const index = this.checkedIndex();\n return index < 0 ? null : index;\n });\n\n readonly resolvedSize = computed(\n () =>\n this.size() ??\n this.field?.resolvedSize() ??\n this.fieldGroup?.resolvedSize() ??\n this.defaults.size,\n );\n readonly resolvedOrientation = computed(() => this.orientation() ?? this.defaults.orientation);\n readonly resolvedCondense = computed(() => this.condense() ?? this.defaults.condense);\n readonly resolvedVariant = computed(() => this.variant() ?? this.defaults.variant);\n readonly resolvedFullWidth = computed(() => this.fullWidth() ?? this.defaults.fullWidth);\n readonly resolvedDisabled = computed(\n () => this.disabled() ?? this.formDisabled() ?? this.field?.resolvedDisabled(),\n );\n readonly resolvedReadOnly = computed(() => this.readOnly() ?? this.field?.resolvedReadOnly());\n readonly resolvedInvalid = computed(() => this.invalid() ?? this.field?.invalid());\n readonly resolvedRequired = computed(\n () => this.required() ?? this.field?.required() ?? this.fieldGroup?.required(),\n );\n\n protected readonly resolvedRole = computed(\n () => this.writtenRole ?? (this.fieldGroup === null ? 'radiogroup' : null),\n );\n protected readonly describedBy = computed(() => {\n const merged = [this.writtenDescribedBy, this.field?.describedBy()].filter(Boolean);\n return merged.length === 0 ? null : merged.join(' ');\n });\n protected readonly ariaInvalid = computed(() =>\n this.resolvedInvalid() === true ? 'true' : null,\n );\n protected readonly ariaReadOnly = computed(() =>\n this.resolvedReadOnly() === true ? 'true' : null,\n );\n protected readonly ariaRequired = computed(() =>\n this.resolvedRequired() === true ? 'true' : null,\n );\n /**\n * Only where the root owns the role, and only when the set flows the way\n * `radiogroup` does not already imply.\n */\n protected readonly ariaOrientation = computed(() =>\n this.resolvedRole() === 'radiogroup' && this.resolvedOrientation() === 'horizontal'\n ? 'horizontal'\n : null,\n );\n\n ngOnInit() {\n if (this.value() === undefined) this.own.set(this.defaultValue());\n }\n\n /** A segment joins the set, in the order the template holds it. */\n register(segment: SlSegmentedControlSegment) {\n this.segments.update((current) => [...current, segment]);\n }\n\n /** A segment leaves the set. */\n unregister(segment: SlSegmentedControlSegment) {\n this.segments.update((current) => current.filter((entry) => entry !== segment));\n }\n\n /**\n * Writes every segment's element from the value.\n *\n * The HTML standard's canceled activation behavior for a radio restores the\n * *clicked* element and nothing else, so the option that was chosen before\n * the refused click stays unchecked. Angular writes a property binding only\n * when its value changes, and the neighbour's did not — the correction is\n * made here, which is the defect `radio-group` measured first.\n */\n restoreElements() {\n for (const segment of this.segments()) segment.syncElement();\n }\n\n /** Whether one value is the chosen one. Read by every segment in the set. */\n holds(value: string): boolean {\n return this.selection() === value;\n }\n\n /**\n * Asks the control to move to one value. Returns whether the value actually\n * moved — false while a consumer owns it, which is what tells the segment to\n * refuse the activation and let the platform put the element back.\n */\n select(value: string, reason: SegmentedControlSelectionReason, source: Event): boolean {\n if (this.resolvedReadOnly() === true) return false;\n\n let cancelled = false;\n const state = createControllable<string | undefined>({\n controlled: this.value(),\n initial: this.selection(),\n onRequest: (request) => {\n this.valueChange.emit(request);\n cancelled = request.cancelled;\n },\n });\n const moved = state.request(value, reason, source);\n if (cancelled || !moved) return false;\n this.own.set(value);\n this.onChangeFn(value);\n return true;\n }\n\n writeValue(value: string | null | undefined) {\n this.own.set(value ?? undefined);\n }\n\n registerOnChange(fn: (value: string) => void) {\n this.onChangeFn = fn;\n }\n\n registerOnTouched(fn: () => void) {\n this.onTouchedFn = fn;\n }\n\n setDisabledState(isDisabled: boolean) {\n this.formDisabled.set(isDisabled);\n }\n\n /** Marks the set touched, which a segment calls when it loses focus. */\n markTouched() {\n this.onTouchedFn();\n }\n\n /**\n * The control owns validity over the set, which no single segment can see:\n * \"choose one\" is a fact about the set and not about any one option.\n */\n validate(control: AbstractControl): ValidationErrors | null {\n if (this.resolvedRequired() !== true) return null;\n const value = control.value as string | null | undefined;\n return value === null || value === undefined || value === '' ? { required: true } : null;\n }\n}\n","import {\n booleanAttribute,\n ChangeDetectionStrategy,\n Component,\n computed,\n DestroyRef,\n Directive,\n ElementRef,\n HostAttributeToken,\n inject,\n input,\n viewChild,\n ViewEncapsulation,\n} from '@angular/core';\n\nimport { SlSegmentedControl } from './segmented-control';\nimport { SlSegmentedControlIdFactory } from './segmented-control-defaults';\nimport type {\n SegmentedControlSelectionReason,\n SlSegmentedControlSegment,\n} from './segmented-control';\n\n/**\n * The mark a segment is drawn with, on the consumer's own element.\n *\n * A directive rather than a slot, so an `ng-icon`, an inline `svg` or a\n * `span` all work and none of them loses its own semantics. It is hidden from\n * the reading order, because the words beside it — or the `aria-label` on the\n * radio — are what a reader hears.\n */\n@Directive({\n selector: '[slSegmentIcon]',\n standalone: true,\n exportAs: 'slSegmentIcon',\n host: {\n 'data-part': 'icon',\n 'data-part-icon': '',\n 'aria-hidden': 'true',\n },\n})\nexport class SlSegmentIcon {}\n\n/**\n * A click synthesised by the keyboard reports no detail; a real one reports\n * the click count. It is why `Space` and a pointer are told apart without a\n * key listener existing anywhere in the family.\n */\nfunction activationReason(event: Event): SegmentedControlSelectionReason {\n return event instanceof MouseEvent && event.detail === 0 ? 'keyboard' : 'pointer';\n}\n\n/**\n * One segment of the track.\n *\n * It is a part of `segmented-control` and not an entry point of its own:\n * outside a control it has no exclusive set to belong to, and the platform's\n * whole keyboard model is defined over the set. `SlSegmentedControl` is\n * injected without `optional`, so a segment written outside one fails at\n * construction rather than silently.\n *\n * The radio is real, visually hidden and left where it is: it covers the\n * segment and reaches the track's own edge, so the hit area is the control's\n * height rather than the thumb's.\n */\n@Component({\n selector: '[slSegment]',\n standalone: true,\n exportAs: 'slSegment',\n template: `<input\n #control\n data-part=\"control\"\n data-part-control=\"\"\n type=\"radio\"\n [attr.id]=\"controlId\"\n [attr.name]=\"control_.resolvedName()\"\n [attr.value]=\"value()\"\n [attr.aria-label]=\"ariaLabel\"\n [attr.aria-describedby]=\"writtenDescribedBy\"\n [attr.disabled]=\"disabledAttribute()\"\n [checked]=\"checked()\"\n (click)=\"onClick($event)\"\n (blur)=\"onBlur()\"\n />\n <ng-content select=\"[slSegmentIcon]\" />\n <span data-part=\"label\" data-part-label=\"\"><ng-content /></span>`,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: {\n 'data-part': 'item',\n 'data-part-item': '',\n '[attr.data-checked]': \"checked() ? '' : null\",\n '[attr.data-disabled]': \"resolvedDisabled() === true ? '' : null\",\n },\n})\nexport class SlSegment implements SlSegmentedControlSegment {\n /** What this segment selects. It is what the control's value holds. */\n readonly value = input.required<string>();\n /** Unstated rather than `false`, so the segment defers to the control. */\n readonly disabled = input<boolean | undefined, boolean | string | undefined>(undefined, {\n transform: (value) => (value === undefined ? undefined : booleanAttribute(value)),\n });\n\n /**\n * The control the segment belongs to. Injected without `optional`, and\n * public because the template reads the shared name from it and a consumer\n * reaching the segment through `exportAs` may want the resolved step.\n *\n * The trailing underscore keeps the name off `value`, which is the input.\n */\n readonly control_ = inject(SlSegmentedControl);\n\n private readonly writtenId = inject(new HostAttributeToken('id'), { optional: true });\n /**\n * Read from the host and written onto the radio: the name of a segment whose\n * mark is its whole content belongs to the control that holds the focus, and\n * an `aria-label` left on the `label` element would name it twice.\n */\n protected readonly ariaLabel = inject(new HostAttributeToken('aria-label'), { optional: true });\n protected readonly writtenDescribedBy = inject(new HostAttributeToken('aria-describedby'), {\n optional: true,\n });\n private readonly element = viewChild.required<ElementRef<HTMLInputElement>>('control');\n\n /** The identifier the radio carries. A consumer's own wins. */\n readonly controlId = this.writtenId ?? inject(SlSegmentedControlIdFactory).next();\n\n readonly checked = computed(() => this.control_.holds(this.value()));\n readonly resolvedDisabled = computed(() => this.disabled() ?? this.control_.resolvedDisabled());\n\n protected readonly disabledAttribute = computed(() =>\n this.resolvedDisabled() === true ? '' : null,\n );\n\n constructor() {\n this.control_.register(this);\n inject(DestroyRef).onDestroy(() => this.control_.unregister(this));\n }\n\n /** Writes this segment's element from the control's value. */\n syncElement() {\n this.element().nativeElement.checked = this.checked();\n }\n\n protected onClick(event: Event) {\n if (this.control_.select(this.value(), activationReason(event), event)) return;\n /* Refused: the platform's own selection is put back, on this element and\n on the neighbour the browser had already unchecked. */\n event.preventDefault();\n this.control_.restoreElements();\n }\n\n protected onBlur() {\n this.control_.markTouched();\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;AA8BA,MAAM,QAAQ,GAA6B;AACzC,IAAA,QAAQ,EAAE,MAAM;AAChB,IAAA,SAAS,EAAE,KAAK;AAChB,IAAA,WAAW,EAAE,YAAY;AACzB,IAAA,IAAI,EAAE,IAAI;AACV,IAAA,OAAO,EAAE,OAAO;CACjB;MAEY,0BAA0B,GAAG,IAAI,cAAc,CAC1D,oCAAoC,EACpC,EAAE,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,QAAQ,EAAE;AAGjD;;;;;AAKG;AACG,SAAU,+BAA+B,CAAC,QAA2C,EAAA;IACzF,OAAO;AACL,QAAA,OAAO,EAAE,0BAA0B;AACnC,QAAA,UAAU,EAAE,OAAiC,EAAE,GAAG,QAAQ,EAAE,GAAG,QAAQ,EAAE,CAAC;KAC3E;AACH;AAEA;SACgB,8BAA8B,GAAA;AAC5C,IAAA,OAAO,MAAM,CAAC,0BAA0B,CAAC;AAC3C;AAEA;;;;;;;;AAQG;MAEU,2BAA2B,CAAA;IAC9B,KAAK,GAAG,CAAC;IAEjB,IAAI,GAAA;AACF,QAAA,IAAI,CAAC,KAAK,IAAI,CAAC;AACf,QAAA,OAAO,CAAA,0BAAA,EAA6B,IAAI,CAAC,K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Ae,EAAE,uBAAuB,CAAC,MAAM;oBAC/C,aAAa,EAAE,iBAAiB,CAAC,IAAI;AACrC,oBAAA,IAAI,EAAE;AACJ,wBAAA,WAAW,EAAE,MAAM;AACnB,wBAAA,gBAAgB,EAAE,EAAE;AACpB,wBAAA,qBAAqB,EAAE,uBAAuB;AAC9C,wBAAA,sBAAsB,EAAE,yCAAyC;AAClE,qBAAA;AACF,iBAAA;wRA4B6E,SAAS,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;ACzHvF;;AAEG;;"}
@@ -2,7 +2,7 @@ import * as i0 from '@angular/core';
2
2
  import { InjectionToken, inject, numberAttribute, input, booleanAttribute, output, ElementRef, viewChild, HostAttributeToken, signal, computed, forwardRef, ViewEncapsulation, ChangeDetectionStrategy, Component } from '@angular/core';
3
3
  import { NG_VALUE_ACCESSOR } from '@angular/forms';
4
4
  import { createNumberFormat } from '@slotted/core/number';
5
- import { normaliseValues, fractionOfValue, thumbBounds, nearestThumb, fractionAtPoint, valueAtFraction, moveThumb, sameValues } from '@slotted/core/slider';
5
+ import { normalizeValues, fractionOfValue, thumbBounds, nearestThumb, fractionAtPoint, valueAtFraction, moveThumb, sameValues } from '@slotted/core/slider';
6
6
  import { createControllable } from '@slotted/core/state';
7
7
  import { SlField } from '@slotted/angular/field';
8
8
  import { injectLocale } from '@slotted/angular/i18n';
@@ -158,7 +158,7 @@ class SlSlider {
158
158
  values = computed(() => {
159
159
  const bound = this.value();
160
160
  const held = bound ?? this.formValue() ?? this.own() ?? this.defaultValue();
161
- return normaliseValues(toArray(held), this.scale());
161
+ return normalizeValues(toArray(held), this.scale());
162
162
  }, /* @ts-ignore */
163
163
  ...(ngDevMode ? [{ debugName: "values" }] : /* istanbul ignore next */ []));
164
164
  formatter = computed(() => {
@@ -277,7 +277,7 @@ class SlSlider {
277
277
  this.onTouchedFn();
278
278
  }
279
279
  writeValue(value) {
280
- this.formValue.set(value === null || value === undefined ? null : normaliseValues(toArray(value), this.scale()));
280
+ this.formValue.set(value === null || value === undefined ? null : normalizeValues(toArray(value), this.scale()));
281
281
  }
282
282
  registerOnChange(fn) {
283
283
  this.onChangeFn = fn;
@@ -1 +1 @@
1
- {"version":3,"file":"slotted-angular-slider.mjs","sources":["../../slider/src/slider-defaults.ts","../../slider/src/slider.ts","../../slider/src/slotted-angular-slider.ts"],"sourcesContent":["import { inject, InjectionToken } from '@angular/core';\n\n/** The type step the control sits at, matching the field around it. */\nexport type SliderSize = 'sm' | 'md' | 'lg';\n\n/**\n * Which axis the scale runs along. A vertical slider's minimum is at the\n * bottom, which is where the browser's own vertical range input and every\n * surveyed implementation put it.\n */\nexport type SliderOrientation = 'horizontal' | 'vertical';\n\n/**\n * When the value stands on the thumb. `auto` shows it while the thumb is being\n * dragged or has the caret, `always` shows it at rest as well, and `none`\n * withdraws it — which is what a scale whose values are words needs.\n */\nexport type SliderValueLabel = 'auto' | 'always' | 'none';\n\n/** Where the filled portion starts: an end of the scale, or a point on it. */\nexport type SliderOrigin = 'min' | 'max' | number;\n\n/** A tick on the scale, with the label that may become the announced value. */\nexport interface SliderMark {\n value: number;\n label?: string | undefined;\n}\n\nexport interface SliderDefaults {\n orientation: SliderOrientation;\n size: SliderSize;\n valueLabel: SliderValueLabel;\n}\n\nconst FALLBACK: SliderDefaults = {\n orientation: 'horizontal',\n size: 'md',\n valueLabel: 'auto',\n};\n\nexport const SLIDER_DEFAULTS = new InjectionToken<SliderDefaults>('slotted slider defaults', {\n providedIn: 'root',\n factory: () => FALLBACK,\n});\n\n/**\n * An application decides once what its sliders look like, rather than\n * repeating the same inputs on every scale. A slider that states any of them\n * itself still wins, and a slider inside a field takes the field's step before\n * this token's. The locale its values are written in comes from the language\n * in force (`provideSlotted`).\n */\nexport function provideSliderDefaults(defaults: Partial<SliderDefaults>) {\n return {\n provide: SLIDER_DEFAULTS,\n useFactory: (): SliderDefaults => ({ ...FALLBACK, ...defaults }),\n };\n}\n\n/** What a slider renders as here, before it states anything of its own. */\nexport function injectSliderDefaults(): SliderDefaults {\n return inject(SLIDER_DEFAULTS);\n}\n","import {\n booleanAttribute,\n ChangeDetectionStrategy,\n Component,\n computed,\n ElementRef,\n forwardRef,\n HostAttributeToken,\n inject,\n input,\n numberAttribute,\n output,\n signal,\n viewChild,\n ViewEncapsulation,\n} from '@angular/core';\nimport { NG_VALUE_ACCESSOR } from '@angular/forms';\nimport type { ControlValueAccessor } from '@angular/forms';\nimport { createNumberFormat } from '@slotted/core/number';\nimport {\n fractionAtPoint,\n fractionOfValue,\n moveThumb,\n nearestThumb,\n normaliseValues,\n sameValues,\n thumbBounds,\n valueAtFraction,\n} from '@slotted/core/slider';\nimport { createControllable } from '@slotted/core/state';\nimport type { ChangeReason, ChangeRequest } from '@slotted/core/state';\nimport { SlField } from '@slotted/angular/field';\nimport { injectLocale } from '@slotted/angular/i18n';\n\nimport { injectSliderDefaults } from './slider-defaults';\nimport type {\n SliderMark,\n SliderOrientation,\n SliderOrigin,\n SliderSize,\n SliderValueLabel,\n} from './slider-defaults';\n\nexport type {\n SliderMark,\n SliderOrientation,\n SliderOrigin,\n SliderSize,\n SliderValueLabel,\n} from './slider-defaults';\n\n/** `undefined` stays absent; anything else becomes a number. */\nconst optionalNumber = (value: unknown) =>\n value === undefined || value === null || value === '' ? undefined : numberAttribute(value);\n\nconst toArray = (value: number | readonly number[]): number[] =>\n Array.isArray(value) ? [...value] : [value as number];\n\n/**\n * A scale, a rail and one thumb per value.\n *\n * **Every thumb is a real `input[type=\"range\"]`.** Angular Material's own\n * thumbs are `input[matSliderThumb]` elements, and the element is taken for the\n * same reasons: it carries the `slider` role, `aria-valuenow`, `aria-valuemin`,\n * `aria-valuemax`, form submission, form reset and `disabled` without the\n * family writing any of them. It is invisible and unhittable, filling the thumb\n * it lives in, so the thumb a reader sees is this family's own element.\n *\n * **The family owns the keyboard and the pointer.** Browsers disagree about a\n * range input's larger step — Chrome moves Page Up by a tenth of the range and\n * Firefox by one step — and `largeStep` has to mean one thing in both bindings.\n *\n * **Two thumbs cannot cross, and the accessibility tree says so.** Each input's\n * own `min` and `max` follow its neighbour, which is what the APG's multi-thumb\n * pattern requires of the dependent sliders' announced range.\n *\n * **Unset means ask the field.** `disabled`, `readOnly` and `invalid` default to\n * `undefined` rather than `false`.\n */\n@Component({\n selector: '[slSlider]',\n standalone: true,\n exportAs: 'slSlider',\n template: `@if (resolvedValueLabel() !== 'none') {\n <output data-part=\"output\" data-part-output=\"\" [attr.for]=\"controlId()\">{{\n outputText()\n }}</output>\n }\n <div\n data-part=\"control\"\n data-part-control=\"\"\n (pointerdown)=\"onPointerDown($event)\"\n (pointermove)=\"onPointerMove($event)\"\n (pointerup)=\"onPointerUp($event)\"\n (pointercancel)=\"onPointerUp($event)\"\n >\n <div data-part=\"track\" data-part-track=\"\" #track>\n <div\n data-part=\"indicator\"\n data-part-indicator=\"\"\n [style.--_start]=\"span().start\"\n [style.--_end]=\"span().end\"\n ></div>\n @for (mark of markList(); track mark.value) {\n <span\n data-part=\"mark\"\n data-part-mark=\"\"\n [attr.data-edge]=\"edgeOf(mark.value)\"\n [style.--_position]=\"percentOf(mark.value)\"\n >\n @if (mark.label !== undefined) {\n <span data-part=\"mark-label\" data-part-mark-label=\"\">{{ mark.label }}</span>\n }\n </span>\n }\n @for (thumbValue of values(); track $index) {\n <div\n data-part=\"thumb\"\n data-part-thumb=\"\"\n [attr.data-index]=\"$index\"\n [attr.data-active]=\"dragging() === $index ? '' : null\"\n [style.--_position]=\"percentOf(thumbValue)\"\n >\n <input\n data-part=\"input\"\n data-part-input=\"\"\n type=\"range\"\n [attr.id]=\"$index === 0 ? controlId() : controlId() + '-' + $index\"\n [attr.name]=\"submissionName()\"\n [attr.form]=\"submissionForm()\"\n [attr.aria-label]=\"thumbLabelAt($index)\"\n [attr.aria-describedby]=\"describedBy()\"\n [attr.aria-invalid]=\"ariaInvalid()\"\n [attr.aria-required]=\"ariaRequired()\"\n [attr.aria-readonly]=\"resolvedReadOnly() === true ? 'true' : null\"\n [attr.aria-orientation]=\"resolvedOrientation()\"\n [attr.aria-valuetext]=\"valueTextOf(thumbValue)\"\n [attr.disabled]=\"resolvedDisabled() === true ? '' : null\"\n [min]=\"boundsAt($index).min\"\n [max]=\"boundsAt($index).max\"\n [step]=\"step()\"\n [value]=\"thumbValue\"\n (keydown)=\"onKeyDown($index, $event)\"\n (blur)=\"onTouched()\"\n />\n <span data-part=\"bubble\" data-part-bubble=\"\" aria-hidden=\"true\">{{\n valueTextOf(thumbValue)\n }}</span>\n </div>\n }\n </div>\n </div>`,\n styleUrl: '../../../styles/src/slider/slider.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => SlSlider), multi: true }],\n host: {\n 'data-ui': 'slider',\n 'data-ui-slider': '',\n 'data-part': 'root',\n 'data-part-root': '',\n '[attr.data-size]': 'resolvedSize()',\n '[attr.data-orientation]': 'resolvedOrientation()',\n '[attr.data-value-label]': 'resolvedValueLabel()',\n '[attr.data-marks]': 'marksMode()',\n '[attr.data-dragging]': \"dragging() === null ? null : ''\",\n '[attr.data-disabled]': \"resolvedDisabled() === true ? '' : null\",\n '[attr.data-invalid]': \"resolvedInvalid() === true ? '' : null\",\n '[attr.data-readonly]': \"resolvedReadOnly() === true ? '' : null\",\n },\n})\nexport class SlSlider implements ControlValueAccessor {\n /**\n * Present means the consumer owns the value, for the life of the component.\n * An array makes a range; a number makes one thumb, and the shape handed in\n * is the shape every request carries back.\n */\n readonly value = input<number | readonly number[] | undefined>(undefined);\n /** The value an uncontrolled slider starts from, read once. */\n readonly defaultValue = input<number | readonly number[]>(0);\n\n readonly min = input<number, unknown>(0, { transform: (raw) => optionalNumber(raw) ?? 0 });\n readonly max = input<number, unknown>(100, { transform: (raw) => optionalNumber(raw) ?? 100 });\n readonly step = input<number, unknown>(1, { transform: (raw) => optionalNumber(raw) ?? 1 });\n /** The amount `Shift` and the page keys move by. Defaults to `step * 10`. */\n readonly largeStep = input<number | undefined, unknown>(undefined, { transform: optionalNumber });\n /** How many steps must stay between two neighbouring thumbs. */\n readonly minStepsBetween = input<number, unknown>(0, {\n transform: (raw) => optionalNumber(raw) ?? 0,\n });\n /** Where the filled portion starts. Defaults to `min`. */\n readonly origin = input<SliderOrigin>('min');\n /** The ticks drawn beside the rail. A mark's label becomes its announced value. */\n readonly marks = input<readonly (number | SliderMark)[] | undefined>(undefined);\n /** How the value is written, through `Intl.NumberFormat`. */\n readonly format = input<Intl.NumberFormatOptions | undefined>(undefined);\n /** BCP 47. Unset, the language in force decides. */\n readonly locale = input<string | undefined>(undefined);\n /** The accessible name of each thumb, in order. */\n readonly thumbLabels = input<readonly string[] | undefined>(undefined);\n\n readonly size = input<SliderSize | undefined>(undefined);\n readonly orientation = input<SliderOrientation | undefined>(undefined);\n readonly valueLabel = input<SliderValueLabel | undefined>(undefined);\n\n /** Unstated rather than `false`, so the control defers to the field. */\n readonly disabled = input<boolean | undefined, boolean | string | undefined>(undefined, {\n transform: (raw) => (raw === undefined ? undefined : booleanAttribute(raw)),\n });\n readonly readOnly = input<boolean | undefined, boolean | string | undefined>(undefined, {\n transform: (raw) => (raw === undefined ? undefined : booleanAttribute(raw)),\n });\n readonly invalid = input<boolean | undefined, boolean | string | undefined>(undefined, {\n transform: (raw) => (raw === undefined ? undefined : booleanAttribute(raw)),\n });\n\n /**\n * One output for one transition, carrying the value, the value it replaces,\n * the reason, the originating event and `cancel()`. There is no `[(value)]`,\n * because a two-way binding has one slot and can carry none of those; a form\n * gets the same movement through `ControlValueAccessor`.\n */\n readonly valueChange = output<ChangeRequest<number | number[]>>();\n /**\n * The end of a drag, or a key that settled the value. A drag emits a hundred\n * changes and one commit; this is the commit.\n */\n readonly valueCommit = output<number | number[]>();\n\n private readonly element = inject<ElementRef<HTMLElement>>(ElementRef).nativeElement;\n private readonly track = viewChild<ElementRef<HTMLElement>>('track');\n private readonly field = inject(SlField, { optional: true });\n private readonly defaults = injectSliderDefaults();\n private readonly appLocale = injectLocale();\n\n private readonly writtenId = inject(new HostAttributeToken('id'), { optional: true });\n private readonly writtenName = inject(new HostAttributeToken('name'), { optional: true });\n private readonly writtenForm = inject(new HostAttributeToken('form'), { optional: true });\n private readonly writtenLabel = inject(new HostAttributeToken('aria-label'), { optional: true });\n private readonly writtenDescribedBy = inject(new HostAttributeToken('aria-describedby'), {\n optional: true,\n });\n private readonly writtenInvalid = inject(new HostAttributeToken('aria-invalid'), {\n optional: true,\n });\n private readonly writtenRequired = inject(new HostAttributeToken('aria-required'), {\n optional: true,\n });\n\n /** What the family holds when nobody else owns it. */\n private readonly own = signal<number[] | null>(null);\n private readonly formValue = signal<number[] | null>(null);\n private readonly formDisabled = signal<boolean | undefined>(undefined);\n protected readonly dragging = signal<number | null>(null);\n private onChangeFn: (value: number | number[]) => void = () => undefined;\n private onTouchedFn: () => void = () => undefined;\n\n protected readonly scale = computed(() => ({\n min: this.min(),\n max: this.max(),\n step: this.step(),\n }));\n\n /** The shape the consumer handed in is the shape every request carries back. */\n private readonly isRange = computed(() => {\n const bound = this.value();\n return Array.isArray(bound ?? this.defaultValue());\n });\n\n readonly values = computed<number[]>(() => {\n const bound = this.value();\n const held = bound ?? this.formValue() ?? this.own() ?? this.defaultValue();\n return normaliseValues(toArray(held), this.scale());\n });\n\n private readonly formatter = computed(() => {\n const options = this.format();\n return createNumberFormat({\n locale: this.locale() ?? this.appLocale(),\n ...(options === undefined ? {} : { options }),\n });\n });\n\n readonly resolvedSize = computed(\n () => this.size() ?? this.field?.resolvedSize() ?? this.defaults.size,\n );\n readonly resolvedOrientation = computed(() => this.orientation() ?? this.defaults.orientation);\n readonly resolvedValueLabel = computed(() => this.valueLabel() ?? this.defaults.valueLabel);\n readonly resolvedDisabled = computed(\n () => this.disabled() ?? this.formDisabled() ?? this.field?.resolvedDisabled(),\n );\n readonly resolvedReadOnly = computed(() => this.readOnly() ?? this.field?.resolvedReadOnly());\n readonly resolvedInvalid = computed(() => this.invalid() ?? this.field?.invalid());\n private readonly inert = computed(\n () => this.resolvedDisabled() === true || this.resolvedReadOnly() === true,\n );\n\n readonly controlId = computed(() => this.writtenId ?? this.field?.ids().control ?? null);\n protected readonly submissionName = computed(() => this.writtenName);\n protected readonly submissionForm = computed(() => this.writtenForm);\n\n protected readonly markList = computed<SliderMark[]>(() => {\n const marks = this.marks();\n if (marks === undefined) return [];\n return marks.map((mark) => (typeof mark === 'number' ? { value: mark } : mark));\n });\n\n protected readonly marksMode = computed(() => {\n const marks = this.markList();\n if (marks.length === 0) return null;\n return marks.some((mark) => mark.label !== undefined) ? 'labelled' : 'ticks';\n });\n\n protected readonly describedBy = computed(() => {\n const merged = [this.writtenDescribedBy, this.field?.describedBy()].filter(Boolean);\n return merged.length === 0 ? null : merged.join(' ');\n });\n protected readonly ariaInvalid = computed(\n () => this.writtenInvalid ?? (this.resolvedInvalid() === true ? 'true' : null),\n );\n protected readonly ariaRequired = computed(\n () => this.writtenRequired ?? (this.field?.required() === true ? 'true' : null),\n );\n\n /** Where the fill starts, which is an end of the scale or a point on it. */\n protected readonly span = computed(() => {\n const values = this.values();\n const scale = this.scale();\n const origin = this.origin();\n const originValue = origin === 'min' ? scale.min : origin === 'max' ? scale.max : origin;\n const first = values[0] ?? scale.min;\n const last = values[values.length - 1] ?? scale.min;\n const start = values.length > 1 ? first : Math.min(originValue, first);\n const end = values.length > 1 ? last : Math.max(originValue, first);\n return {\n start: fractionOfValue(start, scale) * 100,\n end: fractionOfValue(end, scale) * 100,\n };\n });\n\n protected readonly outputText = computed(() =>\n this.values()\n .map((value) => this.valueTextOf(value))\n .join(' – '),\n );\n\n /** The native element, for `focus()` on the root and for a consumer's own query. */\n get sliderElement(): HTMLElement {\n return this.element;\n }\n\n /** The one action a value cannot express: putting focus on a named thumb. */\n focusThumb(index = 0) {\n this.thumbInputs()[index]?.focus();\n }\n\n protected percentOf(value: number) {\n return fractionOfValue(value, this.scale()) * 100;\n }\n\n protected edgeOf(value: number) {\n if (value === this.min()) return 'start';\n if (value === this.max()) return 'end';\n return null;\n }\n\n protected boundsAt(index: number) {\n return thumbBounds({\n ...this.scale(),\n values: this.values(),\n index,\n minStepsBetween: this.minStepsBetween(),\n });\n }\n\n protected thumbLabelAt(index: number) {\n const labels = this.thumbLabels();\n if (labels?.[index] !== undefined) return labels[index];\n return this.values().length > 1 ? null : this.writtenLabel;\n }\n\n /**\n * The APG names `aria-valuetext` for a value that is not user-friendly, and\n * gives \"Monday\" as its example. A mark that already carries a label is that\n * string, so a five-step quality scale announces \"Medium\" rather than \"50\".\n */\n protected valueTextOf(value: number) {\n const labelled = this.markList().find(\n (mark) => mark.value === value && mark.label !== undefined,\n );\n return labelled?.label ?? this.formatter().format(value);\n }\n\n protected onTouched() {\n this.onTouchedFn();\n }\n\n writeValue(value: number | readonly number[] | null) {\n this.formValue.set(\n value === null || value === undefined ? null : normaliseValues(toArray(value), this.scale()),\n );\n }\n\n registerOnChange(fn: (value: number | number[]) => void) {\n this.onChangeFn = fn;\n }\n\n registerOnTouched(fn: () => void) {\n this.onTouchedFn = fn;\n }\n\n setDisabledState(isDisabled: boolean) {\n this.formDisabled.set(isDisabled);\n }\n\n protected onPointerDown(event: PointerEvent) {\n if (this.inert() || event.button !== 0) return;\n const target = this.valueAtPointer(event);\n if (target === null) return;\n\n const index = nearestThumb(this.values(), target);\n if (index === -1) return;\n\n event.preventDefault();\n this.thumbInputs()[index]?.focus();\n (event.currentTarget as HTMLElement).setPointerCapture(event.pointerId);\n this.dragging.set(index);\n this.move(index, target, 'pointer', event);\n }\n\n protected onPointerMove(event: PointerEvent) {\n const index = this.dragging();\n if (index === null) return;\n const target = this.valueAtPointer(event);\n if (target === null) return;\n this.move(index, target, 'pointer', event);\n }\n\n protected onPointerUp(event: PointerEvent) {\n if (this.dragging() === null) return;\n const host = event.currentTarget as HTMLElement;\n if (host.hasPointerCapture(event.pointerId)) host.releasePointerCapture(event.pointerId);\n this.dragging.set(null);\n this.valueCommit.emit(this.shape(this.values()));\n }\n\n /**\n * The whole keyboard table, and `preventDefault()` on every key in it. The\n * inline arrows follow the reading direction — in a mirrored document\n * `ArrowRight` moves the thumb toward the end of the track the reader sees —\n * and the block arrows do not, because a scale has a direction and bidi is\n * not it.\n */\n protected onKeyDown(index: number, event: KeyboardEvent) {\n if (event.defaultPrevented || this.inert()) return;\n\n const step = this.step();\n const large = this.largeStep() ?? step * 10;\n const amount = event.shiftKey ? large : step;\n const inlineSign = this.isRtl() ? -1 : 1;\n const current = this.values()[index] ?? this.min();\n const bounds = this.boundsAt(index);\n\n const stepBy = (direction: number, by: number) => {\n event.preventDefault();\n this.move(index, current + direction * by, 'keyboard', event);\n this.valueCommit.emit(this.shape(this.values()));\n };\n\n switch (event.key) {\n case 'ArrowRight':\n stepBy(inlineSign, amount);\n return;\n case 'ArrowLeft':\n stepBy(-inlineSign, amount);\n return;\n case 'ArrowUp':\n stepBy(1, amount);\n return;\n case 'ArrowDown':\n stepBy(-1, amount);\n return;\n case 'PageUp':\n stepBy(1, large);\n return;\n case 'PageDown':\n stepBy(-1, large);\n return;\n case 'Home':\n event.preventDefault();\n this.move(index, bounds.min, 'keyboard', event);\n this.valueCommit.emit(this.shape(this.values()));\n return;\n case 'End':\n event.preventDefault();\n this.move(index, bounds.max, 'keyboard', event);\n this.valueCommit.emit(this.shape(this.values()));\n return;\n default:\n }\n }\n\n private thumbInputs(): HTMLInputElement[] {\n return Array.from(this.element.querySelectorAll<HTMLInputElement>('[data-part=\"input\"]'));\n }\n\n /**\n * Which way the inline arrows move, read from the element rather than from an\n * input: a right-to-left document is a property of the page.\n */\n private isRtl() {\n const track = this.track()?.nativeElement;\n return track !== undefined && getComputedStyle(track).direction === 'rtl';\n }\n\n private valueAtPointer(event: PointerEvent) {\n const track = this.track()?.nativeElement;\n if (track === undefined) return null;\n const rect = track.getBoundingClientRect();\n const fraction = fractionAtPoint(\n { x: event.clientX, y: event.clientY },\n { rect, orientation: this.resolvedOrientation(), rtl: this.isRtl() },\n );\n return valueAtFraction(fraction, this.scale());\n }\n\n private shape(values: number[]): number | number[] {\n return this.isRange() ? values : (values[0] ?? this.min());\n }\n\n private move(index: number, next: number, reason: ChangeReason, source: Event | undefined) {\n const values = this.values();\n const moved = moveThumb({\n ...this.scale(),\n values,\n index,\n next,\n minStepsBetween: this.minStepsBetween(),\n });\n if (moved === values) return;\n this.request(moved, reason, source);\n }\n\n /**\n * Asks to move, and moves nothing the consumer owns. A refused request stops\n * here: a control that wrote the value regardless would show one the consumer\n * never accepted.\n */\n private request(next: number[], reason: ChangeReason, source: Event | undefined) {\n const current = this.values();\n if (sameValues(next, current)) return;\n\n let cancelled = false;\n /* The request is built over the shape the consumer handed in, so the value\n it carries and the value they passed are the same kind of thing — and so\n `cancel()` still belongs to the object that owns it. */\n const state = createControllable<number | number[]>({\n controlled: undefined,\n initial: this.shape(current),\n equals: (a, b) => (Array.isArray(a) && Array.isArray(b) ? sameValues(a, b) : Object.is(a, b)),\n onRequest: (pending) => {\n this.valueChange.emit(pending);\n cancelled = pending.cancelled;\n },\n });\n state.request(this.shape(next), reason, source);\n if (cancelled) return;\n\n this.onChangeFn(this.shape(next));\n /* A controlled slider never moves its own value: it asks, and waits. */\n if (this.value() !== undefined) return;\n this.formValue.set(next);\n this.own.set(next);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;AAkCA,MAAM,QAAQ,GAAmB;AAC/B,IAAA,WAAW,EAAE,YAAY;AACzB,IAAA,IAAI,EAAE,IAAI;AACV,IAAA,UAAU,EAAE,MAAM;CACnB;MAEY,eAAe,GAAG,IAAI,cAAc,CAAiB,yBAAyB,EAAE;AAC3F,IAAA,UAAU,EAAE,MAAM;AAClB,IAAA,OAAO,EAAE,MAAM,QAAQ;AACxB,CAAA;AAED;;;;;;AAMG;AACG,SAAU,qBAAqB,CAAC,QAAiC,EAAA;IACrE,OAAO;AACL,QAAA,OAAO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;AACnB,wBAAA,gBAAgB,EAAE,EAAE;AACpB,wBAAA,WAAW,EAAE,MAAM;AACnB,wBAAA,gBAAgB,EAAE,EAAE;AACpB,wBAAA,kBAAkB,EAAE,gBAAgB;AACpC,wBAAA,yBAAyB,EAAE,uBAAuB;AAClD,wBAAA,yBAAyB,EAAE,sBAAsB;AACjD,wBAAA,mBAAmB,EAAE,aAAa;AAClC,wBAAA,sBAAsB,EAAE,iCAAiC;AACzD,wBAAA,sBAAsB,EAAE,yCAAyC;AACjE,wBAAA,qBAAqB,EAAE,wCAAwC;AAC/D,wBAAA,sBAAsB,EAAE,yCAAyC;AAClE,qBAAA,EAAA,MAAA,EAAA,CAAA,kycAAA,CAAA,EAAA;m2DA6D2D,OAAO,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;ACtOrE;;AAEG;;"}
1
+ {"version":3,"file":"slotted-angular-slider.mjs","sources":["../../slider/src/slider-defaults.ts","../../slider/src/slider.ts","../../slider/src/slotted-angular-slider.ts"],"sourcesContent":["import { inject, InjectionToken } from '@angular/core';\n\n/** The type step the control sits at, matching the field around it. */\nexport type SliderSize = 'sm' | 'md' | 'lg';\n\n/**\n * Which axis the scale runs along. A vertical slider's minimum is at the\n * bottom, which is where the browser's own vertical range input and every\n * surveyed implementation put it.\n */\nexport type SliderOrientation = 'horizontal' | 'vertical';\n\n/**\n * When the value stands on the thumb. `auto` shows it while the thumb is being\n * dragged or has the caret, `always` shows it at rest as well, and `none`\n * withdraws it — which is what a scale whose values are words needs.\n */\nexport type SliderValueLabel = 'auto' | 'always' | 'none';\n\n/** Where the filled portion starts: an end of the scale, or a point on it. */\nexport type SliderOrigin = 'min' | 'max' | number;\n\n/** A tick on the scale, with the label that may become the announced value. */\nexport interface SliderMark {\n value: number;\n label?: string | undefined;\n}\n\nexport interface SliderDefaults {\n orientation: SliderOrientation;\n size: SliderSize;\n valueLabel: SliderValueLabel;\n}\n\nconst FALLBACK: SliderDefaults = {\n orientation: 'horizontal',\n size: 'md',\n valueLabel: 'auto',\n};\n\nexport const SLIDER_DEFAULTS = new InjectionToken<SliderDefaults>('slotted slider defaults', {\n providedIn: 'root',\n factory: () => FALLBACK,\n});\n\n/**\n * An application decides once what its sliders look like, rather than\n * repeating the same inputs on every scale. A slider that states any of them\n * itself still wins, and a slider inside a field takes the field's step before\n * this token's. The locale its values are written in comes from the language\n * in force (`provideSlotted`).\n */\nexport function provideSliderDefaults(defaults: Partial<SliderDefaults>) {\n return {\n provide: SLIDER_DEFAULTS,\n useFactory: (): SliderDefaults => ({ ...FALLBACK, ...defaults }),\n };\n}\n\n/** What a slider renders as here, before it states anything of its own. */\nexport function injectSliderDefaults(): SliderDefaults {\n return inject(SLIDER_DEFAULTS);\n}\n","import {\n booleanAttribute,\n ChangeDetectionStrategy,\n Component,\n computed,\n ElementRef,\n forwardRef,\n HostAttributeToken,\n inject,\n input,\n numberAttribute,\n output,\n signal,\n viewChild,\n ViewEncapsulation,\n} from '@angular/core';\nimport { NG_VALUE_ACCESSOR } from '@angular/forms';\nimport type { ControlValueAccessor } from '@angular/forms';\nimport { createNumberFormat } from '@slotted/core/number';\nimport {\n fractionAtPoint,\n fractionOfValue,\n moveThumb,\n nearestThumb,\n normalizeValues,\n sameValues,\n thumbBounds,\n valueAtFraction,\n} from '@slotted/core/slider';\nimport { createControllable } from '@slotted/core/state';\nimport type { ChangeReason, ChangeRequest } from '@slotted/core/state';\nimport { SlField } from '@slotted/angular/field';\nimport { injectLocale } from '@slotted/angular/i18n';\n\nimport { injectSliderDefaults } from './slider-defaults';\nimport type {\n SliderMark,\n SliderOrientation,\n SliderOrigin,\n SliderSize,\n SliderValueLabel,\n} from './slider-defaults';\n\nexport type {\n SliderMark,\n SliderOrientation,\n SliderOrigin,\n SliderSize,\n SliderValueLabel,\n} from './slider-defaults';\n\n/** `undefined` stays absent; anything else becomes a number. */\nconst optionalNumber = (value: unknown) =>\n value === undefined || value === null || value === '' ? undefined : numberAttribute(value);\n\nconst toArray = (value: number | readonly number[]): number[] =>\n Array.isArray(value) ? [...value] : [value as number];\n\n/**\n * A scale, a rail and one thumb per value.\n *\n * **Every thumb is a real `input[type=\"range\"]`.** Angular Material's own\n * thumbs are `input[matSliderThumb]` elements, and the element is taken for the\n * same reasons: it carries the `slider` role, `aria-valuenow`, `aria-valuemin`,\n * `aria-valuemax`, form submission, form reset and `disabled` without the\n * family writing any of them. It is invisible and unhittable, filling the thumb\n * it lives in, so the thumb a reader sees is this family's own element.\n *\n * **The family owns the keyboard and the pointer.** Browsers disagree about a\n * range input's larger step — Chrome moves Page Up by a tenth of the range and\n * Firefox by one step — and `largeStep` has to mean one thing in both bindings.\n *\n * **Two thumbs cannot cross, and the accessibility tree says so.** Each input's\n * own `min` and `max` follow its neighbour, which is what the APG's multi-thumb\n * pattern requires of the dependent sliders' announced range.\n *\n * **Unset means ask the field.** `disabled`, `readOnly` and `invalid` default to\n * `undefined` rather than `false`.\n */\n@Component({\n selector: '[slSlider]',\n standalone: true,\n exportAs: 'slSlider',\n template: `@if (resolvedValueLabel() !== 'none') {\n <output data-part=\"output\" data-part-output=\"\" [attr.for]=\"controlId()\">{{\n outputText()\n }}</output>\n }\n <div\n data-part=\"control\"\n data-part-control=\"\"\n (pointerdown)=\"onPointerDown($event)\"\n (pointermove)=\"onPointerMove($event)\"\n (pointerup)=\"onPointerUp($event)\"\n (pointercancel)=\"onPointerUp($event)\"\n >\n <div data-part=\"track\" data-part-track=\"\" #track>\n <div\n data-part=\"indicator\"\n data-part-indicator=\"\"\n [style.--_start]=\"span().start\"\n [style.--_end]=\"span().end\"\n ></div>\n @for (mark of markList(); track mark.value) {\n <span\n data-part=\"mark\"\n data-part-mark=\"\"\n [attr.data-edge]=\"edgeOf(mark.value)\"\n [style.--_position]=\"percentOf(mark.value)\"\n >\n @if (mark.label !== undefined) {\n <span data-part=\"mark-label\" data-part-mark-label=\"\">{{ mark.label }}</span>\n }\n </span>\n }\n @for (thumbValue of values(); track $index) {\n <div\n data-part=\"thumb\"\n data-part-thumb=\"\"\n [attr.data-index]=\"$index\"\n [attr.data-active]=\"dragging() === $index ? '' : null\"\n [style.--_position]=\"percentOf(thumbValue)\"\n >\n <input\n data-part=\"input\"\n data-part-input=\"\"\n type=\"range\"\n [attr.id]=\"$index === 0 ? controlId() : controlId() + '-' + $index\"\n [attr.name]=\"submissionName()\"\n [attr.form]=\"submissionForm()\"\n [attr.aria-label]=\"thumbLabelAt($index)\"\n [attr.aria-describedby]=\"describedBy()\"\n [attr.aria-invalid]=\"ariaInvalid()\"\n [attr.aria-required]=\"ariaRequired()\"\n [attr.aria-readonly]=\"resolvedReadOnly() === true ? 'true' : null\"\n [attr.aria-orientation]=\"resolvedOrientation()\"\n [attr.aria-valuetext]=\"valueTextOf(thumbValue)\"\n [attr.disabled]=\"resolvedDisabled() === true ? '' : null\"\n [min]=\"boundsAt($index).min\"\n [max]=\"boundsAt($index).max\"\n [step]=\"step()\"\n [value]=\"thumbValue\"\n (keydown)=\"onKeyDown($index, $event)\"\n (blur)=\"onTouched()\"\n />\n <span data-part=\"bubble\" data-part-bubble=\"\" aria-hidden=\"true\">{{\n valueTextOf(thumbValue)\n }}</span>\n </div>\n }\n </div>\n </div>`,\n styleUrl: '../../../styles/src/slider/slider.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => SlSlider), multi: true }],\n host: {\n 'data-ui': 'slider',\n 'data-ui-slider': '',\n 'data-part': 'root',\n 'data-part-root': '',\n '[attr.data-size]': 'resolvedSize()',\n '[attr.data-orientation]': 'resolvedOrientation()',\n '[attr.data-value-label]': 'resolvedValueLabel()',\n '[attr.data-marks]': 'marksMode()',\n '[attr.data-dragging]': \"dragging() === null ? null : ''\",\n '[attr.data-disabled]': \"resolvedDisabled() === true ? '' : null\",\n '[attr.data-invalid]': \"resolvedInvalid() === true ? '' : null\",\n '[attr.data-readonly]': \"resolvedReadOnly() === true ? '' : null\",\n },\n})\nexport class SlSlider implements ControlValueAccessor {\n /**\n * Present means the consumer owns the value, for the life of the component.\n * An array makes a range; a number makes one thumb, and the shape handed in\n * is the shape every request carries back.\n */\n readonly value = input<number | readonly number[] | undefined>(undefined);\n /** The value an uncontrolled slider starts from, read once. */\n readonly defaultValue = input<number | readonly number[]>(0);\n\n readonly min = input<number, unknown>(0, { transform: (raw) => optionalNumber(raw) ?? 0 });\n readonly max = input<number, unknown>(100, { transform: (raw) => optionalNumber(raw) ?? 100 });\n readonly step = input<number, unknown>(1, { transform: (raw) => optionalNumber(raw) ?? 1 });\n /** The amount `Shift` and the page keys move by. Defaults to `step * 10`. */\n readonly largeStep = input<number | undefined, unknown>(undefined, { transform: optionalNumber });\n /** How many steps must stay between two neighbouring thumbs. */\n readonly minStepsBetween = input<number, unknown>(0, {\n transform: (raw) => optionalNumber(raw) ?? 0,\n });\n /** Where the filled portion starts. Defaults to `min`. */\n readonly origin = input<SliderOrigin>('min');\n /** The ticks drawn beside the rail. A mark's label becomes its announced value. */\n readonly marks = input<readonly (number | SliderMark)[] | undefined>(undefined);\n /** How the value is written, through `Intl.NumberFormat`. */\n readonly format = input<Intl.NumberFormatOptions | undefined>(undefined);\n /** BCP 47. Unset, the language in force decides. */\n readonly locale = input<string | undefined>(undefined);\n /** The accessible name of each thumb, in order. */\n readonly thumbLabels = input<readonly string[] | undefined>(undefined);\n\n readonly size = input<SliderSize | undefined>(undefined);\n readonly orientation = input<SliderOrientation | undefined>(undefined);\n readonly valueLabel = input<SliderValueLabel | undefined>(undefined);\n\n /** Unstated rather than `false`, so the control defers to the field. */\n readonly disabled = input<boolean | undefined, boolean | string | undefined>(undefined, {\n transform: (raw) => (raw === undefined ? undefined : booleanAttribute(raw)),\n });\n readonly readOnly = input<boolean | undefined, boolean | string | undefined>(undefined, {\n transform: (raw) => (raw === undefined ? undefined : booleanAttribute(raw)),\n });\n readonly invalid = input<boolean | undefined, boolean | string | undefined>(undefined, {\n transform: (raw) => (raw === undefined ? undefined : booleanAttribute(raw)),\n });\n\n /**\n * One output for one transition, carrying the value, the value it replaces,\n * the reason, the originating event and `cancel()`. There is no `[(value)]`,\n * because a two-way binding has one slot and can carry none of those; a form\n * gets the same movement through `ControlValueAccessor`.\n */\n readonly valueChange = output<ChangeRequest<number | number[]>>();\n /**\n * The end of a drag, or a key that settled the value. A drag emits a hundred\n * changes and one commit; this is the commit.\n */\n readonly valueCommit = output<number | number[]>();\n\n private readonly element = inject<ElementRef<HTMLElement>>(ElementRef).nativeElement;\n private readonly track = viewChild<ElementRef<HTMLElement>>('track');\n private readonly field = inject(SlField, { optional: true });\n private readonly defaults = injectSliderDefaults();\n private readonly appLocale = injectLocale();\n\n private readonly writtenId = inject(new HostAttributeToken('id'), { optional: true });\n private readonly writtenName = inject(new HostAttributeToken('name'), { optional: true });\n private readonly writtenForm = inject(new HostAttributeToken('form'), { optional: true });\n private readonly writtenLabel = inject(new HostAttributeToken('aria-label'), { optional: true });\n private readonly writtenDescribedBy = inject(new HostAttributeToken('aria-describedby'), {\n optional: true,\n });\n private readonly writtenInvalid = inject(new HostAttributeToken('aria-invalid'), {\n optional: true,\n });\n private readonly writtenRequired = inject(new HostAttributeToken('aria-required'), {\n optional: true,\n });\n\n /** What the family holds when nobody else owns it. */\n private readonly own = signal<number[] | null>(null);\n private readonly formValue = signal<number[] | null>(null);\n private readonly formDisabled = signal<boolean | undefined>(undefined);\n protected readonly dragging = signal<number | null>(null);\n private onChangeFn: (value: number | number[]) => void = () => undefined;\n private onTouchedFn: () => void = () => undefined;\n\n protected readonly scale = computed(() => ({\n min: this.min(),\n max: this.max(),\n step: this.step(),\n }));\n\n /** The shape the consumer handed in is the shape every request carries back. */\n private readonly isRange = computed(() => {\n const bound = this.value();\n return Array.isArray(bound ?? this.defaultValue());\n });\n\n readonly values = computed<number[]>(() => {\n const bound = this.value();\n const held = bound ?? this.formValue() ?? this.own() ?? this.defaultValue();\n return normalizeValues(toArray(held), this.scale());\n });\n\n private readonly formatter = computed(() => {\n const options = this.format();\n return createNumberFormat({\n locale: this.locale() ?? this.appLocale(),\n ...(options === undefined ? {} : { options }),\n });\n });\n\n readonly resolvedSize = computed(\n () => this.size() ?? this.field?.resolvedSize() ?? this.defaults.size,\n );\n readonly resolvedOrientation = computed(() => this.orientation() ?? this.defaults.orientation);\n readonly resolvedValueLabel = computed(() => this.valueLabel() ?? this.defaults.valueLabel);\n readonly resolvedDisabled = computed(\n () => this.disabled() ?? this.formDisabled() ?? this.field?.resolvedDisabled(),\n );\n readonly resolvedReadOnly = computed(() => this.readOnly() ?? this.field?.resolvedReadOnly());\n readonly resolvedInvalid = computed(() => this.invalid() ?? this.field?.invalid());\n private readonly inert = computed(\n () => this.resolvedDisabled() === true || this.resolvedReadOnly() === true,\n );\n\n readonly controlId = computed(() => this.writtenId ?? this.field?.ids().control ?? null);\n protected readonly submissionName = computed(() => this.writtenName);\n protected readonly submissionForm = computed(() => this.writtenForm);\n\n protected readonly markList = computed<SliderMark[]>(() => {\n const marks = this.marks();\n if (marks === undefined) return [];\n return marks.map((mark) => (typeof mark === 'number' ? { value: mark } : mark));\n });\n\n protected readonly marksMode = computed(() => {\n const marks = this.markList();\n if (marks.length === 0) return null;\n return marks.some((mark) => mark.label !== undefined) ? 'labelled' : 'ticks';\n });\n\n protected readonly describedBy = computed(() => {\n const merged = [this.writtenDescribedBy, this.field?.describedBy()].filter(Boolean);\n return merged.length === 0 ? null : merged.join(' ');\n });\n protected readonly ariaInvalid = computed(\n () => this.writtenInvalid ?? (this.resolvedInvalid() === true ? 'true' : null),\n );\n protected readonly ariaRequired = computed(\n () => this.writtenRequired ?? (this.field?.required() === true ? 'true' : null),\n );\n\n /** Where the fill starts, which is an end of the scale or a point on it. */\n protected readonly span = computed(() => {\n const values = this.values();\n const scale = this.scale();\n const origin = this.origin();\n const originValue = origin === 'min' ? scale.min : origin === 'max' ? scale.max : origin;\n const first = values[0] ?? scale.min;\n const last = values[values.length - 1] ?? scale.min;\n const start = values.length > 1 ? first : Math.min(originValue, first);\n const end = values.length > 1 ? last : Math.max(originValue, first);\n return {\n start: fractionOfValue(start, scale) * 100,\n end: fractionOfValue(end, scale) * 100,\n };\n });\n\n protected readonly outputText = computed(() =>\n this.values()\n .map((value) => this.valueTextOf(value))\n .join(' – '),\n );\n\n /** The native element, for `focus()` on the root and for a consumer's own query. */\n get sliderElement(): HTMLElement {\n return this.element;\n }\n\n /** The one action a value cannot express: putting focus on a named thumb. */\n focusThumb(index = 0) {\n this.thumbInputs()[index]?.focus();\n }\n\n protected percentOf(value: number) {\n return fractionOfValue(value, this.scale()) * 100;\n }\n\n protected edgeOf(value: number) {\n if (value === this.min()) return 'start';\n if (value === this.max()) return 'end';\n return null;\n }\n\n protected boundsAt(index: number) {\n return thumbBounds({\n ...this.scale(),\n values: this.values(),\n index,\n minStepsBetween: this.minStepsBetween(),\n });\n }\n\n protected thumbLabelAt(index: number) {\n const labels = this.thumbLabels();\n if (labels?.[index] !== undefined) return labels[index];\n return this.values().length > 1 ? null : this.writtenLabel;\n }\n\n /**\n * The APG names `aria-valuetext` for a value that is not user-friendly, and\n * gives \"Monday\" as its example. A mark that already carries a label is that\n * string, so a five-step quality scale announces \"Medium\" rather than \"50\".\n */\n protected valueTextOf(value: number) {\n const labelled = this.markList().find(\n (mark) => mark.value === value && mark.label !== undefined,\n );\n return labelled?.label ?? this.formatter().format(value);\n }\n\n protected onTouched() {\n this.onTouchedFn();\n }\n\n writeValue(value: number | readonly number[] | null) {\n this.formValue.set(\n value === null || value === undefined ? null : normalizeValues(toArray(value), this.scale()),\n );\n }\n\n registerOnChange(fn: (value: number | number[]) => void) {\n this.onChangeFn = fn;\n }\n\n registerOnTouched(fn: () => void) {\n this.onTouchedFn = fn;\n }\n\n setDisabledState(isDisabled: boolean) {\n this.formDisabled.set(isDisabled);\n }\n\n protected onPointerDown(event: PointerEvent) {\n if (this.inert() || event.button !== 0) return;\n const target = this.valueAtPointer(event);\n if (target === null) return;\n\n const index = nearestThumb(this.values(), target);\n if (index === -1) return;\n\n event.preventDefault();\n this.thumbInputs()[index]?.focus();\n (event.currentTarget as HTMLElement).setPointerCapture(event.pointerId);\n this.dragging.set(index);\n this.move(index, target, 'pointer', event);\n }\n\n protected onPointerMove(event: PointerEvent) {\n const index = this.dragging();\n if (index === null) return;\n const target = this.valueAtPointer(event);\n if (target === null) return;\n this.move(index, target, 'pointer', event);\n }\n\n protected onPointerUp(event: PointerEvent) {\n if (this.dragging() === null) return;\n const host = event.currentTarget as HTMLElement;\n if (host.hasPointerCapture(event.pointerId)) host.releasePointerCapture(event.pointerId);\n this.dragging.set(null);\n this.valueCommit.emit(this.shape(this.values()));\n }\n\n /**\n * The whole keyboard table, and `preventDefault()` on every key in it. The\n * inline arrows follow the reading direction — in a mirrored document\n * `ArrowRight` moves the thumb toward the end of the track the reader sees —\n * and the block arrows do not, because a scale has a direction and bidi is\n * not it.\n */\n protected onKeyDown(index: number, event: KeyboardEvent) {\n if (event.defaultPrevented || this.inert()) return;\n\n const step = this.step();\n const large = this.largeStep() ?? step * 10;\n const amount = event.shiftKey ? large : step;\n const inlineSign = this.isRtl() ? -1 : 1;\n const current = this.values()[index] ?? this.min();\n const bounds = this.boundsAt(index);\n\n const stepBy = (direction: number, by: number) => {\n event.preventDefault();\n this.move(index, current + direction * by, 'keyboard', event);\n this.valueCommit.emit(this.shape(this.values()));\n };\n\n switch (event.key) {\n case 'ArrowRight':\n stepBy(inlineSign, amount);\n return;\n case 'ArrowLeft':\n stepBy(-inlineSign, amount);\n return;\n case 'ArrowUp':\n stepBy(1, amount);\n return;\n case 'ArrowDown':\n stepBy(-1, amount);\n return;\n case 'PageUp':\n stepBy(1, large);\n return;\n case 'PageDown':\n stepBy(-1, large);\n return;\n case 'Home':\n event.preventDefault();\n this.move(index, bounds.min, 'keyboard', event);\n this.valueCommit.emit(this.shape(this.values()));\n return;\n case 'End':\n event.preventDefault();\n this.move(index, bounds.max, 'keyboard', event);\n this.valueCommit.emit(this.shape(this.values()));\n return;\n default:\n }\n }\n\n private thumbInputs(): HTMLInputElement[] {\n return Array.from(this.element.querySelectorAll<HTMLInputElement>('[data-part=\"input\"]'));\n }\n\n /**\n * Which way the inline arrows move, read from the element rather than from an\n * input: a right-to-left document is a property of the page.\n */\n private isRtl() {\n const track = this.track()?.nativeElement;\n return track !== undefined && getComputedStyle(track).direction === 'rtl';\n }\n\n private valueAtPointer(event: PointerEvent) {\n const track = this.track()?.nativeElement;\n if (track === undefined) return null;\n const rect = track.getBoundingClientRect();\n const fraction = fractionAtPoint(\n { x: event.clientX, y: event.clientY },\n { rect, orientation: this.resolvedOrientation(), rtl: this.isRtl() },\n );\n return valueAtFraction(fraction, this.scale());\n }\n\n private shape(values: number[]): number | number[] {\n return this.isRange() ? values : (values[0] ?? this.min());\n }\n\n private move(index: number, next: number, reason: ChangeReason, source: Event | undefined) {\n const values = this.values();\n const moved = moveThumb({\n ...this.scale(),\n values,\n index,\n next,\n minStepsBetween: this.minStepsBetween(),\n });\n if (moved === values) return;\n this.request(moved, reason, source);\n }\n\n /**\n * Asks to move, and moves nothing the consumer owns. A refused request stops\n * here: a control that wrote the value regardless would show one the consumer\n * never accepted.\n */\n private request(next: number[], reason: ChangeReason, source: Event | undefined) {\n const current = this.values();\n if (sameValues(next, current)) return;\n\n let cancelled = false;\n /* The request is built over the shape the consumer handed in, so the value\n it carries and the value they passed are the same kind of thing — and so\n `cancel()` still belongs to the object that owns it. */\n const state = createControllable<number | number[]>({\n controlled: undefined,\n initial: this.shape(current),\n equals: (a, b) => (Array.isArray(a) && Array.isArray(b) ? sameValues(a, b) : Object.is(a, b)),\n onRequest: (pending) => {\n this.valueChange.emit(pending);\n cancelled = pending.cancelled;\n },\n });\n state.request(this.shape(next), reason, source);\n if (cancelled) return;\n\n this.onChangeFn(this.shape(next));\n /* A controlled slider never moves its own value: it asks, and waits. */\n if (this.value() !== undefined) return;\n this.formValue.set(next);\n this.own.set(next);\n }\n}\n","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,EAAA,QAAA,EACN,UAAU,EAAA,QAAA,EACV,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoED,UAAA,CAAA,EAAA,eAAA,EAEQ,uBAAuB,CAAC,MAAM,EAAA,aAAA,EAChC,iBAAiB,CAAC,IAAI,EAAA,SAAA,EAC1B,CAAC,EAAE,OAAO,EAAE,iBAAiB,EAAE,WAAW,EAAE,UAAU,CAAC,MAAK,QAAS,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,EAAA,IAAA,EAC3F;AACJ,wBAAA,SAAS,EAAE,QAAQ;AACnB,wBAAA,gBAAgB,EAAE,EAAE;AACpB,wBAAA,WAAW,EAAE,MAAM;AACnB,wBAAA,gBAAgB,EAAE,EAAE;AACpB,wBAAA,kBAAkB,EAAE,gBAAgB;AACpC,wBAAA,yBAAyB,EAAE,uBAAuB;AAClD,wBAAA,yBAAyB,EAAE,sBAAsB;AACjD,wBAAA,mBAAmB,EAAE,aAAa;AAClC,wBAAA,sBAAsB,EAAE,iCAAiC;AACzD,wBAAA,sBAAsB,EAAE,yCAAyC;AACjE,wBAAA,qBAAqB,EAAE,wCAAwC;AAC/D,wBAAA,sBAAsB,EAAE,yCAAyC;AAClE,qBAAA,EAAA,MAAA,EAAA,CAAA,kycAAA,CAAA,EAAA;m2DA6D2D,OAAO,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;ACtOrE;;AAEG;;"}
@@ -35,8 +35,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImpor
35
35
  'data-part-root': '',
36
36
  '[attr.data-gap]': 'gap() ?? null',
37
37
  '[attr.data-align]': 'align() ?? null',
38
- /* `align` is also an obsolete HTML attribute a browser still honours on a
39
- div, centring its text; written statically for the input it would stay. */
38
+ /* `align` is also an obsolete HTML attribute a browser still honors on a
39
+ div, centering its text; written statically for the input it would stay. */
40
40
  '[attr.align]': 'null',
41
41
  '[attr.data-justify]': 'justify() ?? null',
42
42
  }, styles: ["@layer slotted.components{[data-ui-stack]{--_gap: var(--slotted-space-6, 1rem);display:flex;flex-direction:column;gap:var(--_gap);min-inline-size:0}[data-ui-stack][data-gap=\"0\"]{--_gap: 0}[data-ui-stack][data-gap=\"1\"]{--_gap: var(--slotted-space-1, .125rem)}[data-ui-stack][data-gap=\"2\"]{--_gap: var(--slotted-space-2, .25rem)}[data-ui-stack][data-gap=\"3\"]{--_gap: var(--slotted-space-3, .375rem)}[data-ui-stack][data-gap=\"4\"]{--_gap: var(--slotted-space-4, .5rem)}[data-ui-stack][data-gap=\"5\"]{--_gap: var(--slotted-space-5, .75rem)}[data-ui-stack][data-gap=\"6\"]{--_gap: var(--slotted-space-6, 1rem)}[data-ui-stack][data-gap=\"7\"]{--_gap: var(--slotted-space-7, 1.25rem)}[data-ui-stack][data-gap=\"8\"]{--_gap: var(--slotted-space-8, 1.5rem)}[data-ui-stack][data-gap=\"9\"]{--_gap: var(--slotted-space-9, 2rem)}[data-ui-stack][data-gap=\"10\"]{--_gap: var(--slotted-space-10, 2.5rem)}[data-ui-stack][data-gap=\"11\"]{--_gap: var(--slotted-space-11, 3rem)}[data-ui-stack][data-gap=\"12\"]{--_gap: var(--slotted-space-12, 4rem)}[data-ui-stack][data-align=start]{align-items:start}[data-ui-stack][data-align=center]{align-items:center}[data-ui-stack][data-align=end]{align-items:end}[data-ui-stack][data-align=stretch]{align-items:stretch}[data-ui-stack][data-justify=start]{justify-content:start}[data-ui-stack][data-justify=center]{justify-content:center}[data-ui-stack][data-justify=end]{justify-content:end}[data-ui-stack][data-justify=between]{justify-content:space-between}[data-ui-stack][data-justify=around]{justify-content:space-around}[data-ui-stack][data-justify=evenly]{justify-content:space-evenly}}\n"] }]
@@ -1 +1 @@
1
- {"version":3,"file":"slotted-angular-stack.mjs","sources":["../../stack/src/stack.ts","../../stack/src/slotted-angular-stack.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 StackGap = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;\n\n/** Across the flow, which for a stack is the inline axis. */\nexport type StackAlign = 'start' | 'center' | 'end' | 'stretch';\n\n/** Along the flow, which for a stack is the block axis. */\nexport type StackJustify = 'start' | 'center' | 'end' | 'between' | 'around' | 'evenly';\n\n/**\n * Stack arranges its children along the block axis and separates them by one\n * step of the space scale. It paints nothing and adds no semantics: the element\n * is the one the consumer wrote, so a list stays a list and a form stays a form.\n *\n * An axis reaches the stylesheet only when someone decided it. The base rule\n * already carries the family default, and a layout is the most numerous element\n * 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: '[slStack]',\n standalone: true,\n exportAs: 'slStack',\n template: '<ng-content></ng-content>',\n styleUrl: '../../../styles/src/stack/stack.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: {\n 'data-ui': 'stack',\n 'data-ui-stack': '',\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 },\n})\nexport class SlStack {\n /** Positions children across the flow. Absent, they stretch. */\n readonly align = input<StackAlign>();\n /** Separation between children, as a step on the space scale. */\n readonly gap = input<StackGap>();\n /** Positions children along the flow; needs a block size to distribute. */\n readonly justify = input<StackJustify>();\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;AAeA;;;;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../stack/src/stack.ts","../../stack/src/slotted-angular-stack.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 StackGap = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;\n\n/** Across the flow, which for a stack is the inline axis. */\nexport type StackAlign = 'start' | 'center' | 'end' | 'stretch';\n\n/** Along the flow, which for a stack is the block axis. */\nexport type StackJustify = 'start' | 'center' | 'end' | 'between' | 'around' | 'evenly';\n\n/**\n * Stack arranges its children along the block axis and separates them by one\n * step of the space scale. It paints nothing and adds no semantics: the element\n * is the one the consumer wrote, so a list stays a list and a form stays a form.\n *\n * An axis reaches the stylesheet only when someone decided it. The base rule\n * already carries the family default, and a layout is the most numerous element\n * 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: '[slStack]',\n standalone: true,\n exportAs: 'slStack',\n template: '<ng-content></ng-content>',\n styleUrl: '../../../styles/src/stack/stack.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: {\n 'data-ui': 'stack',\n 'data-ui-stack': '',\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 },\n})\nexport class SlStack {\n /** Positions children across the flow. Absent, they stretch. */\n readonly align = input<StackAlign>();\n /** Separation between children, as a step on the space scale. */\n readonly gap = input<StackGap>();\n /** Positions children along the flow; needs a block size to distribute. */\n readonly justify = input<StackJustify>();\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './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95,7 +95,7 @@ class SlStatusIndicator {
95
95
  /**
96
96
  * A wave leaving the dot, for a change happening now. An icon mark does not
97
97
  * pulse, and the wave is withdrawn under reduced motion and under forced
98
- * colours, so nothing is ever said by the wave alone.
98
+ * colors, so nothing is ever said by the wave alone.
99
99
  */
100
100
  pulse = input(false, { ...(ngDevMode ? { debugName: "pulse" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
101
101
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"slotted-angular-status-indicator.mjs","sources":["../../status-indicator/src/status-indicator-defaults.ts","../../status-indicator/src/status-indicator.constants.ts","../../status-indicator/src/status-indicator.ts","../../status-indicator/src/slotted-angular-status-indicator.ts"],"sourcesContent":["import { inject, InjectionToken } from '@angular/core';\n\nimport type {\n StatusIndicatorLive,\n StatusIndicatorMark,\n StatusIndicatorSize,\n} from './status-indicator.constants';\n\n/**\n * What every status in an application looks like before any one of them states\n * anything of its own. The six words come from the language in force\n * (`provideSlotted`).\n */\nexport interface StatusIndicatorDefaults {\n live?: StatusIndicatorLive;\n mark?: StatusIndicatorMark;\n size?: StatusIndicatorSize;\n}\n\nexport const STATUS_INDICATOR_DEFAULTS_TOKEN = new InjectionToken<StatusIndicatorDefaults>(\n 'slotted status indicator defaults',\n { providedIn: 'root', factory: (): StatusIndicatorDefaults => ({}) },\n);\n\n/**\n * An application decides once how its statuses are marked, how large they are\n * and whether they announce. An indicator that states any of those still wins:\n * an explicit input is never overridden by the token.\n */\nexport function provideStatusIndicatorDefaults(defaults: StatusIndicatorDefaults) {\n return { provide: STATUS_INDICATOR_DEFAULTS_TOKEN, useValue: defaults };\n}\n\nexport function injectStatusIndicatorDefaults(): StatusIndicatorDefaults {\n return inject(STATUS_INDICATOR_DEFAULTS_TOKEN);\n}\n","import type { GlyphName } from '@slotted/angular/icon';\n\n/**\n * The six operational states. The vocabulary is closed, and that is a decision\n * rather than an omission: a seventh value would carry no tone, no glyph and\n * no fallback word, which are the three things this family exists to supply.\n */\nexport type StatusIndicatorStatus =\n 'neutral' | 'info' | 'success' | 'warning' | 'danger' | 'unknown';\n\n/** The compact mark, and the one that says the status without colour. */\nexport type StatusIndicatorMark = 'dot' | 'icon';\nexport type StatusIndicatorSize = 'sm' | 'md' | 'lg';\nexport type StatusIndicatorLive = 'off' | 'polite' | 'assertive';\n\nexport const STATUS_INDICATOR_DEFAULT_STATUS: StatusIndicatorStatus = 'neutral';\n\n/**\n * The glyph each status draws when the mark is an icon, as the contract's\n * `statusGlyphs` names it. Two statuses never share one: the icon mark is the\n * family's non-chromatic answer, and `neutral` and `unknown` share a tone.\n */\nexport const STATUS_INDICATOR_GLYPHS: Record<StatusIndicatorStatus, GlyphName> = {\n neutral: 'status-neutral',\n info: 'status-info',\n success: 'status-success',\n warning: 'status-warning',\n danger: 'status-failed',\n unknown: 'status-unknown',\n};\nexport const STATUS_INDICATOR_DEFAULT_MARK: StatusIndicatorMark = 'dot';\nexport const STATUS_INDICATOR_DEFAULT_SIZE: StatusIndicatorSize = 'md';\nexport const STATUS_INDICATOR_DEFAULT_LIVE: StatusIndicatorLive = 'off';\n\n/**\n * What `live` writes on the host. The names are the platform's: `status` is a\n * polite live region with an implicit `aria-atomic`, so the mark and its word\n * are announced as one thing; `alert` interrupts, which the APG's Alert\n * pattern reserves for a message that needs immediate attention.\n */\nexport const STATUS_INDICATOR_ROLE: Record<StatusIndicatorLive, string | null> = {\n off: null,\n polite: 'status',\n assertive: 'alert',\n};\n","import {\n booleanAttribute,\n ChangeDetectionStrategy,\n Component,\n computed,\n Directive,\n HostAttributeToken,\n inject,\n input,\n ViewEncapsulation,\n} from '@angular/core';\nimport { injectMessages } from '@slotted/angular/i18n';\nimport { SlGlyph, SlIcon } from '@slotted/angular/icon';\nimport {\n type PartialMessages,\n statusIndicatorMessages,\n type StatusIndicatorMessages,\n} from '@slotted/core/i18n';\n\nimport { injectStatusIndicatorDefaults } from './status-indicator-defaults';\nimport {\n STATUS_INDICATOR_DEFAULT_LIVE,\n STATUS_INDICATOR_DEFAULT_MARK,\n STATUS_INDICATOR_DEFAULT_SIZE,\n STATUS_INDICATOR_DEFAULT_STATUS,\n STATUS_INDICATOR_GLYPHS,\n STATUS_INDICATOR_ROLE,\n type StatusIndicatorLive,\n type StatusIndicatorMark,\n type StatusIndicatorSize,\n type StatusIndicatorStatus,\n} from './status-indicator.constants';\n\n/**\n * The operational state of something the application observes.\n *\n * The family reports; it never moves the value. That is why there is no\n * `model()` here and no output — `status` is the application's fact about a\n * system this component cannot see, the same relationship a progress range has\n * to the work it reports.\n *\n * It is always named. Given projected content, that content is the name; given\n * none, the status's own word is rendered and clipped from view. The fallback\n * belongs to `<ng-content>` rather than to a flag the component has to compute,\n * which is Angular's own answer to the question React answers with\n * `children === undefined`: the template knows whether anything was projected,\n * so nothing has to inspect the DOM to find out.\n *\n * The selector is a bare attribute, so the element stays the consumer's: a\n * status belongs in whatever a table cell, a list item or a heading already\n * is, and wrapping it in a second element would change their layout to carry\n * an attribute.\n */\n/**\n * A second, quieter line under the words — “62% · build”, “4 minutes ago” —\n * hanging under the first word. It is projected into the label, so it is read\n * with the words and belongs to their accessible name.\n */\n@Directive({\n selector: '[slStatusIndicatorDetail]',\n standalone: true,\n host: { 'data-part': 'detail', 'data-part-detail': '' },\n})\nexport class SlStatusIndicatorDetail {}\n\n@Component({\n selector: '[slStatusIndicator]',\n standalone: true,\n imports: [SlGlyph, SlIcon],\n /* The icon mark's glyph follows the status; the sheet sizes and colours it. */\n template: `<span aria-hidden=\"true\" data-part=\"mark\" data-part-mark=\"\">\n @if (markValue() === 'icon') {\n <span slIcon><svg slGlyph [name]=\"glyph()\"></svg></span>\n }</span\n ><span data-part=\"label\" data-part-label=\"\"\n ><ng-content\n ><span\n data-part=\"announcement\"\n data-part-announcement=\"\"\n data-ui=\"visually-hidden\"\n data-ui-visually-hidden=\"\"\n >{{ name() }}</span\n ></ng-content\n ><ng-content select=\"[slStatusIndicatorDetail]\"\n /></span>`,\n styleUrls: [\n '../../../styles/src/status-indicator/status-indicator.css',\n '../../../styles/src/visually-hidden/visually-hidden.css',\n ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n exportAs: 'slStatusIndicator',\n host: {\n 'data-ui': 'status-indicator',\n 'data-ui-status-indicator': '',\n 'data-part': 'root',\n 'data-part-root': '',\n '[attr.data-status]': 'status()',\n '[attr.data-mark]': 'markValue()',\n '[attr.data-size]': 'sizeValue()',\n '[attr.data-pulse]': 'pulse() ? \"\" : null',\n '[attr.role]': 'roleValue()',\n },\n})\nexport class SlStatusIndicator {\n readonly status = input<StatusIndicatorStatus>(STATUS_INDICATOR_DEFAULT_STATUS);\n readonly mark = input<StatusIndicatorMark | undefined>(undefined);\n readonly size = input<StatusIndicatorSize | undefined>(undefined);\n readonly live = input<StatusIndicatorLive | undefined>(undefined);\n /**\n * A wave leaving the dot, for a change happening now. An icon mark does not\n * pulse, and the wave is withdrawn under reduced motion and under forced\n * colours, so nothing is ever said by the wave alone.\n */\n readonly pulse = input(false, { transform: booleanAttribute });\n /**\n * What a reader hears when nothing was projected. Ignored when something\n * was, because naming an element twice is how a screen reader comes to read\n * “Success Healthy”. Falls back to the status's word in the catalog.\n */\n readonly label = input<string | undefined>(undefined);\n /**\n * Words laid over the catalog of the language in force, key by key: the\n * word each status is heard as when nothing was projected.\n */\n readonly messages = input<PartialMessages<StatusIndicatorMessages> | undefined>(undefined);\n\n private readonly defaults = injectStatusIndicatorDefaults();\n /** The family's words in the language in force, with this indicator's `messages` laid over them. */\n readonly t = injectMessages(statusIndicatorMessages, this.messages);\n /**\n * Read once, before the host binding writes one. A consumer who put\n * `role=\"note\"` on their own element keeps it, which is the rule\n * `frameworks.md` states for every static attribute a family writes over.\n */\n private readonly ownRole = inject(new HostAttributeToken('role'), { optional: true });\n\n readonly markValue = computed(\n () => this.mark() ?? this.defaults.mark ?? STATUS_INDICATOR_DEFAULT_MARK,\n );\n readonly sizeValue = computed(\n () => this.size() ?? this.defaults.size ?? STATUS_INDICATOR_DEFAULT_SIZE,\n );\n readonly liveValue = computed(\n () => this.live() ?? this.defaults.live ?? STATUS_INDICATOR_DEFAULT_LIVE,\n );\n\n readonly glyph = computed(() => STATUS_INDICATOR_GLYPHS[this.status()]);\n\n readonly roleValue = computed(() => this.ownRole ?? STATUS_INDICATOR_ROLE[this.liveValue()]);\n\n readonly name = computed(() => this.label() ?? this.t(this.status()));\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;AAmBO,MAAM,+BAA+B,GAAG,IAAI,cAAc,CAC/D,mCAAmC,EACnC,EAAE,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,OAAgC,EAAE,CAAC,EAAE;AAGtE;;;;AAIG;AACG,SAAU,8BAA8B,CAAC,QAAiC,EAAA;IAC9E,OAAO,EAAE,OAAO,EAAE,+BAA+B,EAAE,QAAQ,EAAE,QAAQ,EAAE;AACzE;SAEgB,6BAA6B,GAAA;AAC3C,IAAA,OAAO,MAAM,CAAC,+BAA+B,CAAC;AAChD;;ACpBO,MAAM,+BAA+B,GAA0B;AAEtE;;;;AAIG;AACI,MAAM,uBAAuB,GAA6C;AAC/E,IAAA,OAAO,EAAE,gBAAgB;AACzB,IAAA,IAAI,EAAE,aAAa;AACnB,IAAA,OAAO,EAAE,gBAAgB;AACzB,IAAA,OAAO,EAAE,gBAAgB;AACzB,IAAA,MAAM,EAAE,eAAe;AACvB,IAAA,OAAO,EAAE,gBAAgB;CAC1B;AACM,MAAM,6BAA6B,GAAwB;AAC3D,MAAM,6BAA6B,GAAwB;AAC3D,MAAM,6BAA6B,GAAwB;AAElE;;;;;AAKG;AACI,MAAM,qBAAqB,GAA+C;AAC/E,IAAA,GAAG,EAAE,IAAI;AACT,IAAA,MAAM,EAAE,QAAQ;AAChB,IAAA,SAAS,EAAE,OAAO;CACnB;;ACXD;;;;;;;;;;;;;;;;;;;AAmBG;AACH;;;;AAIG;MAMU,uBAAuB,CAAA;uGAAvB,u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CAAA,4tLAAA,EAAA,6QAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAhBF,OAAO,oFAAE,MAAM,EAAA,QAAA,EAAA,UAAA,EAAA,MAAA,EAAA,CAAA,aAAA,EAAA,OAAA,EAAA,MAAA,EAAA,MAAA,CAAA,EAAA,QAAA,EAAA,CAAA,QAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,aAAA,EAAA,EAAA,CAAA,iBAAA,CAAA,IAAA,EAAA,CAAA;;2FAoCd,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAvC7B,SAAS;+BACE,qBAAqB,EAAA,UAAA,EACnB,IAAI,EAAA,OAAA,EACP,CAAC,OAAO,EAAE,MAAM,CAAC,EAAA,QAAA,EAEhB,CAAA;;;;;;;;;;;;;;cAcE,EAAA,eAAA,EAKK,uBAAuB,CAAC,MAAM,EAAA,aAAA,EAChC,iBAAiB,CAAC,IAAI,EAAA,QAAA,EAC3B,mBAAmB,EAAA,IAAA,EACvB;AACJ,wBAAA,SAAS,EAAE,kBAAkB;AAC7B,wBAAA,0BAA0B,EAAE,EAAE;AAC9B,wBAAA,WAAW,EAAE,MAAM;AACnB,wBAAA,gBAAgB,EAAE,EAAE;AACpB,wBAAA,oBAAoB,EAAE,UAAU;AAChC,wBAAA,kBAAkB,EAAE,aAAa;AACjC,wBAAA,kBAAkB,EAAE,aAAa;AACjC,wBAAA,mBAAmB,EAAE,qBAAqB;AAC1C,wBAAA,aAAa,EAAE,aAAa;AAC7B,qBAAA,EAAA,MAAA,EAAA,CAAA,4tLAAA,EAAA,6QAAA,CAAA,EAAA;;;ACtGH;;AAEG;;"}
1
+ {"version":3,"file":"slotted-angular-status-indicator.mjs","sources":["../../status-indicator/src/status-indicator-defaults.ts","../../status-indicator/src/status-indicator.constants.ts","../../status-indicator/src/status-indicator.ts","../../status-indicator/src/slotted-angular-status-indicator.ts"],"sourcesContent":["import { inject, InjectionToken } from '@angular/core';\n\nimport type {\n StatusIndicatorLive,\n StatusIndicatorMark,\n StatusIndicatorSize,\n} from './status-indicator.constants';\n\n/**\n * What every status in an application looks like before any one of them states\n * anything of its own. The six words come from the language in force\n * (`provideSlotted`).\n */\nexport interface StatusIndicatorDefaults {\n live?: StatusIndicatorLive;\n mark?: StatusIndicatorMark;\n size?: StatusIndicatorSize;\n}\n\nexport const STATUS_INDICATOR_DEFAULTS_TOKEN = new InjectionToken<StatusIndicatorDefaults>(\n 'slotted status indicator defaults',\n { providedIn: 'root', factory: (): StatusIndicatorDefaults => ({}) },\n);\n\n/**\n * An application decides once how its statuses are marked, how large they are\n * and whether they announce. An indicator that states any of those still wins:\n * an explicit input is never overridden by the token.\n */\nexport function provideStatusIndicatorDefaults(defaults: StatusIndicatorDefaults) {\n return { provide: STATUS_INDICATOR_DEFAULTS_TOKEN, useValue: defaults };\n}\n\nexport function injectStatusIndicatorDefaults(): StatusIndicatorDefaults {\n return inject(STATUS_INDICATOR_DEFAULTS_TOKEN);\n}\n","import type { GlyphName } from '@slotted/angular/icon';\n\n/**\n * The six operational states. The vocabulary is closed, and that is a decision\n * rather than an omission: a seventh value would carry no tone, no glyph and\n * no fallback word, which are the three things this family exists to supply.\n */\nexport type StatusIndicatorStatus =\n 'neutral' | 'info' | 'success' | 'warning' | 'danger' | 'unknown';\n\n/** The compact mark, and the one that says the status without color. */\nexport type StatusIndicatorMark = 'dot' | 'icon';\nexport type StatusIndicatorSize = 'sm' | 'md' | 'lg';\nexport type StatusIndicatorLive = 'off' | 'polite' | 'assertive';\n\nexport const STATUS_INDICATOR_DEFAULT_STATUS: StatusIndicatorStatus = 'neutral';\n\n/**\n * The glyph each status draws when the mark is an icon, as the contract's\n * `statusGlyphs` names it. Two statuses never share one: the icon mark is the\n * family's non-chromatic answer, and `neutral` and `unknown` share a tone.\n */\nexport const STATUS_INDICATOR_GLYPHS: Record<StatusIndicatorStatus, GlyphName> = {\n neutral: 'status-neutral',\n info: 'status-info',\n success: 'status-success',\n warning: 'status-warning',\n danger: 'status-failed',\n unknown: 'status-unknown',\n};\nexport const STATUS_INDICATOR_DEFAULT_MARK: StatusIndicatorMark = 'dot';\nexport const STATUS_INDICATOR_DEFAULT_SIZE: StatusIndicatorSize = 'md';\nexport const STATUS_INDICATOR_DEFAULT_LIVE: StatusIndicatorLive = 'off';\n\n/**\n * What `live` writes on the host. The names are the platform's: `status` is a\n * polite live region with an implicit `aria-atomic`, so the mark and its word\n * are announced as one thing; `alert` interrupts, which the APG's Alert\n * pattern reserves for a message that needs immediate attention.\n */\nexport const STATUS_INDICATOR_ROLE: Record<StatusIndicatorLive, string | null> = {\n off: null,\n polite: 'status',\n assertive: 'alert',\n};\n","import {\n booleanAttribute,\n ChangeDetectionStrategy,\n Component,\n computed,\n Directive,\n HostAttributeToken,\n inject,\n input,\n ViewEncapsulation,\n} from '@angular/core';\nimport { injectMessages } from '@slotted/angular/i18n';\nimport { SlGlyph, SlIcon } from '@slotted/angular/icon';\nimport {\n type PartialMessages,\n statusIndicatorMessages,\n type StatusIndicatorMessages,\n} from '@slotted/core/i18n';\n\nimport { injectStatusIndicatorDefaults } from './status-indicator-defaults';\nimport {\n STATUS_INDICATOR_DEFAULT_LIVE,\n STATUS_INDICATOR_DEFAULT_MARK,\n STATUS_INDICATOR_DEFAULT_SIZE,\n STATUS_INDICATOR_DEFAULT_STATUS,\n STATUS_INDICATOR_GLYPHS,\n STATUS_INDICATOR_ROLE,\n type StatusIndicatorLive,\n type StatusIndicatorMark,\n type StatusIndicatorSize,\n type StatusIndicatorStatus,\n} from './status-indicator.constants';\n\n/**\n * The operational state of something the application observes.\n *\n * The family reports; it never moves the value. That is why there is no\n * `model()` here and no output — `status` is the application's fact about a\n * system this component cannot see, the same relationship a progress range has\n * to the work it reports.\n *\n * It is always named. Given projected content, that content is the name; given\n * none, the status's own word is rendered and clipped from view. The fallback\n * belongs to `<ng-content>` rather than to a flag the component has to compute,\n * which is Angular's own answer to the question React answers with\n * `children === undefined`: the template knows whether anything was projected,\n * so nothing has to inspect the DOM to find out.\n *\n * The selector is a bare attribute, so the element stays the consumer's: a\n * status belongs in whatever a table cell, a list item or a heading already\n * is, and wrapping it in a second element would change their layout to carry\n * an attribute.\n */\n/**\n * A second, quieter line under the words — “62% · build”, “4 minutes ago” —\n * hanging under the first word. It is projected into the label, so it is read\n * with the words and belongs to their accessible name.\n */\n@Directive({\n selector: '[slStatusIndicatorDetail]',\n standalone: true,\n host: { 'data-part': 'detail', 'data-part-detail': '' },\n})\nexport class SlStatusIndicatorDetail {}\n\n@Component({\n selector: '[slStatusIndicator]',\n standalone: true,\n imports: [SlGlyph, SlIcon],\n /* The icon mark's glyph follows the status; the sheet sizes and colors it. */\n template: `<span aria-hidden=\"true\" data-part=\"mark\" data-part-mark=\"\">\n @if (markValue() === 'icon') {\n <span slIcon><svg slGlyph [name]=\"glyph()\"></svg></span>\n }</span\n ><span data-part=\"label\" data-part-label=\"\"\n ><ng-content\n ><span\n data-part=\"announcement\"\n data-part-announcement=\"\"\n data-ui=\"visually-hidden\"\n data-ui-visually-hidden=\"\"\n >{{ name() }}</span\n ></ng-content\n ><ng-content select=\"[slStatusIndicatorDetail]\"\n /></span>`,\n styleUrls: [\n '../../../styles/src/status-indicator/status-indicator.css',\n '../../../styles/src/visually-hidden/visually-hidden.css',\n ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n exportAs: 'slStatusIndicator',\n host: {\n 'data-ui': 'status-indicator',\n 'data-ui-status-indicator': '',\n 'data-part': 'root',\n 'data-part-root': '',\n '[attr.data-status]': 'status()',\n '[attr.data-mark]': 'markValue()',\n '[attr.data-size]': 'sizeValue()',\n '[attr.data-pulse]': 'pulse() ? \"\" : null',\n '[attr.role]': 'roleValue()',\n },\n})\nexport class SlStatusIndicator {\n readonly status = input<StatusIndicatorStatus>(STATUS_INDICATOR_DEFAULT_STATUS);\n readonly mark = input<StatusIndicatorMark | undefined>(undefined);\n readonly size = input<StatusIndicatorSize | undefined>(undefined);\n readonly live = input<StatusIndicatorLive | undefined>(undefined);\n /**\n * A wave leaving the dot, for a change happening now. An icon mark does not\n * pulse, and the wave is withdrawn under reduced motion and under forced\n * colors, so nothing is ever said by the wave alone.\n */\n readonly pulse = input(false, { transform: booleanAttribute });\n /**\n * What a reader hears when nothing was projected. Ignored when something\n * was, because naming an element twice is how a screen reader comes to read\n * “Success Healthy”. Falls back to the status's word in the catalog.\n */\n readonly label = input<string | undefined>(undefined);\n /**\n * Words laid over the catalog of the language in force, key by key: the\n * word each status is heard as when nothing was projected.\n */\n readonly messages = input<PartialMessages<StatusIndicatorMessages> | undefined>(undefined);\n\n private readonly defaults = injectStatusIndicatorDefaults();\n /** The family's words in the language in force, with this indicator's `messages` laid over them. */\n readonly t = injectMessages(statusIndicatorMessages, this.messages);\n /**\n * Read once, before the host binding writes one. A consumer who put\n * `role=\"note\"` on their own element keeps it, which is the rule\n * `frameworks.md` states for every static attribute a family writes over.\n */\n private readonly ownRole = inject(new HostAttributeToken('role'), { optional: true });\n\n readonly markValue = computed(\n () => this.mark() ?? this.defaults.mark ?? STATUS_INDICATOR_DEFAULT_MARK,\n );\n readonly sizeValue = computed(\n () => this.size() ?? this.defaults.size ?? STATUS_INDICATOR_DEFAULT_SIZE,\n );\n readonly liveValue = computed(\n () => this.live() ?? this.defaults.live ?? STATUS_INDICATOR_DEFAULT_LIVE,\n );\n\n readonly glyph = computed(() => STATUS_INDICATOR_GLYPHS[this.status()]);\n\n readonly roleValue = computed(() => this.ownRole ?? STATUS_INDICATOR_ROLE[this.liveValue()]);\n\n readonly name = computed(() => this.label() ?? this.t(this.status()));\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;AAmBO,MAAM,+BAA+B,GAAG,IAAI,cAAc,CAC/D,mCAAmC,EACnC,EAAE,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,OA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