@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-tabs.mjs","sources":["../../tabs/src/tabs-defaults.ts","../../tabs/src/tabs.ts","../../tabs/src/tabs-parts.ts","../../tabs/src/slotted-angular-tabs.ts"],"sourcesContent":["import { inject, Injectable, InjectionToken } from '@angular/core';\n\n/** Whether moving focus to a tab also selects it. */\nexport type TabsActivation = 'automatic' | 'manual';\n\n/** Which way the list runs. A horizontal list scrolls; a vertical one stacks. */\nexport type TabsOrientation = 'horizontal' | 'vertical';\n\n/** The type step the list and its tabs sit at. */\nexport type TabsSize = 'sm' | 'md' | 'lg';\n\n/**\n * How the list is drawn. `line` is a row of labels over a hairline; `contained`\n * is a sunken track holding a surface per tab. Both paint the same marker,\n * which is what survives the `high-contrast` scheme.\n */\nexport type TabsVariant = 'line' | 'contained';\n\n/**\n * Whether the list draws the line its tabs stand on. `none` is for a list that\n * sits on a line the page already drew — a card header's edge, a table's own\n * rule — where two hairlines a pixel apart read as one smudge.\n */\nexport type TabsTrack = 'line' | 'none';\n\n/** Whether each tab is as wide as its label or takes an equal share of the line. */\nexport type TabsFit = 'auto' | 'equal';\n\n/**\n * When a panel exists. The names are Cloudscape's, which are the clearest three\n * words in the field for the same three behaviours.\n */\nexport type TabsMount = 'active' | 'lazy' | 'eager';\n\n/** Which way the selection travelled, from the two indices. */\nexport type TabsActivationDirection = 'forward' | 'backward' | 'none';\n\nexport interface TabsDefaults {\n activation: TabsActivation;\n fit: TabsFit;\n track: TabsTrack;\n loop: boolean;\n mount: TabsMount;\n orientation: TabsOrientation;\n size: TabsSize;\n variant: TabsVariant;\n}\n\nconst FALLBACK: TabsDefaults = {\n activation: 'automatic',\n fit: 'auto',\n loop: true,\n mount: 'active',\n orientation: 'horizontal',\n size: 'md',\n track: 'line',\n variant: 'line',\n};\n\nexport const TABS_DEFAULTS = new InjectionToken<TabsDefaults>('slotted tabs defaults', {\n providedIn: 'root',\n factory: () => FALLBACK,\n});\n\n/**\n * An application decides once how its tabs look and behave, rather than\n * repeating the same seven inputs on every family in a product. A family that\n * states any of them itself still wins.\n */\nexport function provideTabsDefaults(defaults: Partial<TabsDefaults>) {\n return {\n provide: TABS_DEFAULTS,\n useFactory: (): TabsDefaults => ({ ...FALLBACK, ...defaults }),\n };\n}\n\n/** What a tabs family renders as here, before it states anything of its own. */\nexport function injectTabsDefaults(): TabsDefaults {\n return inject(TABS_DEFAULTS);\n}\n\n/**\n * Application-scoped rather than module-scoped, for the reason `field` records:\n * a module-level counter produces colliding sequences when two applications\n * render in one server process, and the server and the client sequences must\n * match for hydration.\n */\n@Injectable({ providedIn: 'root' })\nexport class SlTabsIdFactory {\n private count = 0;\n\n next() {\n this.count += 1;\n return `slotted-tabs-${this.count}`;\n }\n}\n","import { createRemovalFocus, createRovingTabindex } from '@slotted/core/focus';\nimport type { RemovalFocusHandle, RovingTabindexHandle } from '@slotted/core/focus';\nimport { createIndicator } from '@slotted/core/measure';\nimport { createScrollAffordance, NOT_OVERFLOWING } from '@slotted/core/overflow';\nimport type { OverflowState, ScrollAffordanceHandle } from '@slotted/core/overflow';\nimport { createControllable } from '@slotted/core/state';\nimport type { ChangeRequest } from '@slotted/core/state';\nimport {\n afterNextRender,\n booleanAttribute,\n ChangeDetectionStrategy,\n Component,\n computed,\n DestroyRef,\n inject,\n Injector,\n input,\n output,\n signal,\n ViewEncapsulation,\n} from '@angular/core';\nimport type { OnInit } from '@angular/core';\nimport { SlGlyph, SlIcon } from '@slotted/angular/icon';\n\nimport { injectTabsDefaults, SlTabsIdFactory } from './tabs-defaults';\nimport type {\n TabsActivation,\n TabsActivationDirection,\n TabsFit,\n TabsMount,\n TabsOrientation,\n TabsSize,\n TabsTrack,\n TabsVariant,\n} from './tabs-defaults';\n\nexport type {\n TabsActivation,\n TabsActivationDirection,\n TabsDefaults,\n TabsFit,\n TabsMount,\n TabsOrientation,\n TabsSize,\n TabsTrack,\n TabsVariant,\n} from './tabs-defaults';\n\n/** Every tab in the list, in the order the DOM holds them. */\nexport const TAB_SELECTOR = '[data-part=\"tab\"]';\n\n/** Why the selection moved. */\nexport type TabsSelectionReason = 'pointer' | 'keyboard' | 'remove' | 'programmatic';\n\n/** Why a tab was dismissed. */\nexport type TabsDismissReason = 'pointer' | 'keyboard';\n\n/**\n * The request a dismissal carries. It holds no value pair, because nothing is\n * replacing anything: the value being dismissed is `value`, and the shape is\n * `tag`'s, which set the convention for a removal in this library.\n */\nexport interface TabsDismissRequest {\n readonly value: string;\n readonly reason: TabsDismissReason;\n readonly source: Event;\n readonly cancelled: boolean;\n cancel(): void;\n}\n\n/**\n * An identifier from a value, injectively.\n *\n * A value is the consumer's own string and may hold a space, which no\n * identifier may. Escaping the characters an identifier refuses — rather than\n * replacing them — is what keeps two values from wiring one panel.\n */\nexport function escapeTabValue(value: string): string {\n return value.replace(/[^\\w-]/g, (character) => `-${character.charCodeAt(0).toString(16)}-`);\n}\n\n/**\n * One view out of several, and the panels under it.\n *\n * **The keyboard is the APG's, and it is implemented once.** The list is a\n * roving tab stop from `@slotted/core/focus`: `Tab` enters on the selected tab,\n * the arrows of the flow axis move and wrap, `Home` and `End` reach the ends,\n * and the cross axis is left alone so the page still scrolls with focus inside\n * a horizontal list. `Delete` dismisses a dismissible tab, and focus lands\n * where the pattern says.\n *\n * **The marker moves without a measurement.** The root records which way the\n * selection travelled and the stylesheet turns that into a transform origin, so\n * the family is right in a server response and during the first paint.\n *\n * **The paging controls belong to the root**, because the root owns the observer\n * that knows whether they are needed. They are out of the tab sequence and out\n * of the accessibility tree: the arrows already reach every tab and bring it\n * into view.\n */\n@Component({\n selector: '[slTabs]',\n standalone: true,\n imports: [SlGlyph, SlIcon],\n exportAs: 'slTabs',\n template: `<ng-content />\n @if (paging()) {\n <button\n aria-hidden=\"true\"\n data-part=\"scroll\"\n data-part-scroll=\"\"\n data-direction=\"start\"\n type=\"button\"\n tabindex=\"-1\"\n [disabled]=\"overflow().atStart\"\n (click)=\"page(-1)\"\n >\n <span slIcon directional><svg slGlyph name=\"chevron-right\"></svg></span>\n </button>\n <button\n aria-hidden=\"true\"\n data-part=\"scroll\"\n data-part-scroll=\"\"\n data-direction=\"end\"\n type=\"button\"\n tabindex=\"-1\"\n [disabled]=\"overflow().atEnd\"\n (click)=\"page(1)\"\n >\n <span slIcon directional><svg slGlyph name=\"chevron-right\"></svg></span>\n </button>\n }`,\n styleUrl: '../../../styles/src/tabs/tabs.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: {\n 'data-ui': 'tabs',\n 'data-ui-tabs': '',\n 'data-part': 'root',\n 'data-part-root': '',\n '[attr.data-size]': 'resolvedSize()',\n '[attr.data-variant]': 'resolvedVariant()',\n '[attr.data-track]': 'resolvedTrack()',\n '[attr.data-orientation]': 'resolvedOrientation()',\n '[attr.data-fit]': 'resolvedFit()',\n '[attr.data-activation-direction]': 'direction()',\n '[attr.data-disabled]': \"disabled() ? '' : null\",\n '[attr.data-overflowing]': \"overflow().overflowing ? '' : null\",\n },\n})\nexport class SlTabs implements OnInit {\n /** Present means the consumer owns the selection. */\n readonly value = input<string | undefined>(undefined);\n /** The value an uncontrolled family starts from, read once. */\n readonly defaultValue = input<string | undefined>(undefined);\n readonly activation = input<TabsActivation | undefined>(undefined);\n readonly orientation = input<TabsOrientation | undefined>(undefined);\n readonly size = input<TabsSize | undefined>(undefined);\n readonly variant = input<TabsVariant | undefined>(undefined);\n /** `none` draws no line at all, for a list standing on one the page drew. */\n readonly track = input<TabsTrack | undefined>(undefined);\n readonly fit = input<TabsFit | undefined>(undefined);\n readonly mount = input<TabsMount | undefined>(undefined);\n readonly loop = input<boolean | undefined, boolean | string | undefined>(undefined, {\n transform: (state) => (state === undefined ? undefined : booleanAttribute(state)),\n });\n /** Reaches every tab as the native attribute, which is also what makes the\n browser skip it with the arrow keys. */\n readonly disabled = input(false, { transform: booleanAttribute });\n\n /** One output for one transition, carrying the reason and the event. */\n readonly valueChange = output<ChangeRequest<string | undefined>>();\n /**\n * Asked before a tab is dismissed. The family removes nothing: the consumer\n * owns the collection, and a component that removed itself would render\n * nothing while the consumer's array still held the item.\n */\n readonly tabDismiss = output<TabsDismissRequest>();\n\n private readonly defaults = injectTabsDefaults();\n private readonly baseId = inject(SlTabsIdFactory).next();\n private readonly destroyRef = inject(DestroyRef);\n private readonly injector = inject(Injector);\n\n private readonly own = signal<string | undefined>(undefined);\n private readonly listElement = signal<HTMLElement | null>(null);\n private readonly seen = new Set<string>();\n private roving: RovingTabindexHandle | null = null;\n private affordance: ScrollAffordanceHandle | null = null;\n\n protected readonly direction = signal<TabsActivationDirection>('none');\n protected readonly overflow = signal<OverflowState>(NOT_OVERFLOWING);\n\n readonly selection = computed(() => this.value() ?? this.own());\n readonly resolvedActivation = computed(() => this.activation() ?? this.defaults.activation);\n readonly resolvedOrientation = computed(() => this.orientation() ?? this.defaults.orientation);\n readonly resolvedSize = computed(() => this.size() ?? this.defaults.size);\n readonly resolvedVariant = computed(() => this.variant() ?? this.defaults.variant);\n readonly resolvedTrack = computed(() => this.track() ?? this.defaults.track);\n readonly resolvedFit = computed(() => this.fit() ?? this.defaults.fit);\n readonly resolvedMount = computed(() => this.mount() ?? this.defaults.mount);\n readonly resolvedLoop = computed(() => this.loop() ?? this.defaults.loop);\n\n protected readonly paging = computed(\n () => this.overflow().overflowing && this.resolvedOrientation() === 'horizontal',\n );\n\n constructor() {\n /**\n * The list constructs before this runs and hands over its element; the\n * handles are created once, after the first render, because two of them\n * measure and all three read the DOM the tabs are in.\n */\n afterNextRender(() => {\n const list = this.listElement();\n if (list !== null) this.observe(list);\n });\n }\n\n ngOnInit() {\n if (this.value() === undefined) this.own.set(this.defaultValue());\n const start = this.selection();\n if (start !== undefined) this.seen.add(start);\n }\n\n /** The identifiers a tab and its panel are wired together with. */\n identify(value: string) {\n const escaped = escapeTabValue(value);\n return { panelId: `${this.baseId}-panel-${escaped}`, tabId: `${this.baseId}-tab-${escaped}` };\n }\n\n /** Whether this value is the selected one. Read by every tab and panel. */\n holds(value: string): boolean {\n return this.selection() === value;\n }\n\n /** Whether this value has ever been selected, which is what `lazy` reads. */\n hasSeen(value: string): boolean {\n return this.seen.has(value);\n }\n\n /**\n * The list hands the root its element. The root owns the roving tab stop, the\n * removal focus and the overflow observer — all three are about that element,\n * and the root is what holds the value they act on.\n */\n attachList(element: HTMLElement) {\n this.listElement.set(element);\n }\n\n private tabElements(): HTMLElement[] {\n const list = this.listElement();\n return list === null ? [] : [...list.querySelectorAll<HTMLElement>(TAB_SELECTOR)];\n }\n\n private indexOf(value: string | undefined): number {\n if (value === undefined) return -1;\n return this.tabElements().findIndex((item) => item.getAttribute('data-value') === value);\n }\n\n /**\n * Asks the family to select one value. The direction is set in the same turn,\n * so the marker's origin and the selection reach the DOM in one paint.\n */\n select(next: string, reason: TabsSelectionReason, source?: Event) {\n if (next === this.selection()) return;\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(next, reason, source);\n if (cancelled) return;\n\n const from = this.indexOf(this.selection());\n const to = this.indexOf(next);\n if (from !== -1 && to !== -1) this.direction.set(to > from ? 'forward' : 'backward');\n\n this.seen.add(next);\n if (moved) this.own.set(next);\n\n /* The tab stop follows the selection, which is where `Tab` from outside the\n list lands. The DOM order does not change here, so the index is read\n straight away rather than waiting for a render. */\n if (to !== -1) this.roving?.setActive(to);\n this.revealSelected();\n }\n\n /**\n * The neighbour a dismissal leaves the selection to: the tab that followed\n * the dismissed one, or the one before it when the dismissed tab was last.\n * It is the APG's own focus rule for `Delete`, applied to the value.\n */\n private neighbourOf(dismissed: string): string | undefined {\n const values = this.tabElements()\n .map((item) => item.getAttribute('data-value'))\n .filter((candidate): candidate is string => candidate !== null);\n const index = values.indexOf(dismissed);\n if (index === -1) return undefined;\n return values[index + 1] ?? values[index - 1];\n }\n\n dismiss(value: string, reason: TabsDismissReason, source: Event) {\n let cancelled = false;\n const request: TabsDismissRequest = {\n value,\n reason,\n source,\n get cancelled() {\n return cancelled;\n },\n cancel() {\n cancelled = true;\n },\n };\n this.tabDismiss.emit(request);\n if (cancelled) return;\n\n if (!this.holds(value)) return;\n const next = this.neighbourOf(value);\n if (next !== undefined) this.select(next, 'remove', source);\n }\n\n /** Puts the tab stop on the selected tab and brings it into view. */\n syncSelection() {\n const index = this.indexOf(this.selection());\n if (index === -1) return;\n this.roving?.setActive(index);\n this.revealSelected();\n }\n\n private revealSelected() {\n const item = this.tabElements()[this.indexOf(this.selection())];\n if (item !== undefined) this.affordance?.reveal(item);\n }\n\n protected page(direction: -1 | 1) {\n this.affordance?.page(direction);\n }\n\n private observe(list: HTMLElement) {\n const tabindex = createRovingTabindex(list, {\n crossAxis: false,\n itemSelector: TAB_SELECTOR,\n loop: this.resolvedLoop(),\n onMove: (_index, item) => {\n this.affordance?.reveal(item);\n if (this.resolvedActivation() !== 'automatic') return;\n const next = item.getAttribute('data-value');\n if (next !== null) this.select(next, 'keyboard');\n },\n orientation: () => this.resolvedOrientation(),\n });\n this.roving = tabindex;\n\n /**\n * Where the keyboard goes when the tab it was on is dismissed. The list\n * is the last resort, which is why it holds `tabindex=\"-1\"`: a list\n * emptied by its final dismissal keeps focus rather than returning it\n * to the top of the page.\n */\n const removal: RemovalFocusHandle = createRemovalFocus(list, {\n itemSelector: TAB_SELECTOR,\n });\n /**\n * A list that starts to overflow — on its first render, or later when its\n * stylesheet arrives, a drawer opens or a hidden panel is shown — draws its\n * paging controls, and they narrow it: a tab revealed against the wider list\n * ended behind the end control. The selected tab is revealed again once the\n * controls are in the layout, on that transition and on no other, so a\n * reader scrolling the list keeps control.\n */\n let overflowing = false;\n const affordance = createScrollAffordance(list, {\n onChange: (state) => {\n this.overflow.set(state);\n if (state.overflowing && !overflowing) {\n afterNextRender(() => this.revealSelected(), { injector: this.injector });\n }\n overflowing = state.overflowing;\n },\n });\n this.affordance = affordance;\n this.overflow.set(affordance.state());\n\n /** The marker the list draws under the selected tab, measured by `createIndicator`. */\n const indicator = createIndicator(list, {\n orientation: () => this.resolvedOrientation(),\n part: 'marker',\n target: () =>\n list.querySelector<HTMLElement>(\n ':scope > [data-part=\"item\"][data-selected] > [data-part=\"tab\"]',\n ),\n });\n\n /**\n * A tab arriving or leaving has to reach both handles, and neither\n * binding can be told by the other's change detection. The DOM is the\n * one thing they agree on.\n */\n const observer = new MutationObserver(() => {\n tabindex.refresh();\n affordance.refresh();\n this.syncSelection();\n });\n observer.observe(list, { childList: true, subtree: true });\n this.syncSelection();\n\n this.destroyRef.onDestroy(() => {\n observer.disconnect();\n indicator.destroy();\n removal.destroy();\n affordance.destroy();\n tabindex.destroy();\n this.roving = null;\n this.affordance = null;\n });\n }\n}\n","import { NgTemplateOutlet } from '@angular/common';\nimport {\n booleanAttribute,\n ChangeDetectionStrategy,\n Component,\n computed,\n contentChild,\n Directive,\n ElementRef,\n inject,\n input,\n TemplateRef,\n ViewEncapsulation,\n} from '@angular/core';\nimport { SlGlyph, SlIcon } from '@slotted/angular/icon';\n\nimport { SlTabs } from './tabs';\nimport type { TabsDismissReason, TabsSelectionReason } from './tabs';\n\n/**\n * A click synthesised by the keyboard reports no detail; a real one reports the\n * click count. It is why `Enter`, `Space` and a pointer are told apart without a\n * key listener existing for activation.\n */\nfunction activationReason(event: Event): TabsSelectionReason {\n return event instanceof MouseEvent && event.detail === 0 ? 'keyboard' : 'pointer';\n}\n\n/**\n * The list of tabs, and the one tab stop the family holds.\n *\n * It hands its element to the root, which owns the roving tab stop, the removal\n * focus and the overflow observer. `tabindex=\"-1\"` is the last resort of the\n * removal focus: a list emptied by its final dismissal keeps focus rather than\n * returning it to the top of the page.\n *\n * Its accessible name is the consumer's own `aria-label` or `aria-labelledby`:\n * only the page knows what the set of views is for.\n */\n@Directive({\n selector: '[slTabList]',\n standalone: true,\n exportAs: 'slTabList',\n host: {\n 'data-part': 'list',\n 'data-part-list': '',\n role: 'tablist',\n tabindex: '-1',\n '[attr.aria-orientation]': 'ariaOrientation()',\n },\n})\nexport class SlTabList {\n private readonly tabs = inject(SlTabs);\n\n protected readonly ariaOrientation = computed(() =>\n this.tabs.resolvedOrientation() === 'vertical' ? 'vertical' : null,\n );\n\n constructor() {\n this.tabs.attachList(inject(ElementRef<HTMLElement>).nativeElement);\n }\n}\n\n/**\n * What precedes the label inside a tab, such as an icon. It stands beside the\n * words rather than inside them, so the tab's gap spaces it and only the words\n * are clipped under `fit=\"equal\"`; the part sizes an icon to the tab's icon step.\n */\n@Directive({\n selector: '[slTabStart]',\n standalone: true,\n exportAs: 'slTabStart',\n host: { 'data-part': 'start', 'data-part-start': '' },\n})\nexport class SlTabStart {}\n\n/** What follows the label inside a tab, such as a count. */\n@Directive({\n selector: '[slTabEnd]',\n standalone: true,\n exportAs: 'slTabEnd',\n host: { 'data-part': 'end', 'data-part-end': '' },\n})\nexport class SlTabEnd {}\n\n/**\n * One tab, in the box that holds it.\n *\n * The host is that box, and it is presentational because a `button` may not\n * contain a `button`: a dismissible tab needs somewhere to put its second\n * control.\n *\n * `href` makes the control an anchor, and a click carrying a modifier key is\n * left to the browser so a deep link still opens in a new browser tab.\n */\n@Component({\n selector: '[slTab]',\n standalone: true,\n imports: [NgTemplateOutlet, SlGlyph, SlIcon],\n exportAs: 'slTab',\n /* The words and what stands beside them are written once and placed in\n whichever control the tab renders: a selecting `ng-content` repeated in\n both branches left the button branch without its icon and its count. */\n template: `<ng-template #content\n ><ng-content select=\"[slTabStart]\" /><span data-part=\"label\" data-part-label=\"\"\n ><ng-content /></span\n ><ng-content select=\"[slTabEnd]\"\n /></ng-template>\n @if (href(); as destination) {\n <a\n #control\n data-part=\"tab\"\n data-part-tab=\"\"\n role=\"tab\"\n [attr.id]=\"tabId()\"\n [attr.href]=\"destination\"\n [attr.data-value]=\"value()\"\n [attr.aria-controls]=\"panelId()\"\n [attr.aria-selected]=\"selected()\"\n [attr.aria-disabled]=\"resolvedDisabled() ? 'true' : null\"\n [attr.aria-keyshortcuts]=\"dismissible() ? 'Delete' : null\"\n [attr.tabindex]=\"selected() ? 0 : -1\"\n (click)=\"onClick($event)\"\n (keydown)=\"onKeydown($event)\"\n ><ng-container [ngTemplateOutlet]=\"content\"\n /></a>\n } @else {\n <button\n #control\n data-part=\"tab\"\n data-part-tab=\"\"\n role=\"tab\"\n type=\"button\"\n [attr.id]=\"tabId()\"\n [attr.data-value]=\"value()\"\n [attr.aria-controls]=\"panelId()\"\n [attr.aria-selected]=\"selected()\"\n [attr.aria-keyshortcuts]=\"dismissible() ? 'Delete' : null\"\n [disabled]=\"resolvedDisabled()\"\n [attr.tabindex]=\"selected() ? 0 : -1\"\n (click)=\"onClick($event)\"\n (keydown)=\"onKeydown($event)\"\n >\n <ng-container [ngTemplateOutlet]=\"content\" />\n </button>\n }\n @if (dismissible()) {\n <button\n data-part=\"dismiss\"\n data-part-dismiss=\"\"\n type=\"button\"\n tabindex=\"-1\"\n [attr.aria-label]=\"dismissLabel()\"\n [disabled]=\"resolvedDisabled()\"\n (click)=\"onDismiss($event)\"\n >\n <span slIcon><svg slGlyph name=\"x\"></svg></span>\n </button>\n }`,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: {\n 'data-part': 'item',\n 'data-part-item': '',\n role: 'presentation',\n '[attr.data-selected]': \"selected() ? '' : null\",\n },\n})\nexport class SlTab {\n /** What this tab selects. It is what the family's value holds. */\n readonly value = input.required<string>();\n /** Unstated rather than `false`, so the tab defers to the family. */\n readonly disabled = input<boolean | undefined, boolean | string | undefined>(undefined, {\n transform: (state) => (state === undefined ? undefined : booleanAttribute(state)),\n });\n /** Whether this tab carries a control that closes it. */\n readonly dismissible = input(false, { transform: booleanAttribute });\n /** The accessible name of that control. Required whenever it is drawn. */\n readonly dismissLabel = input<string | undefined>(undefined);\n /** Makes the control an anchor, for a view a router can deep-link to. */\n readonly href = input<string | undefined>(undefined);\n /**\n * The id of the element this tab controls, when it is not a panel of this\n * family: a strip over one region whose content the value filters — a\n * feed, a table — names that region here, and `aria-controls` says so.\n */\n readonly controls = input<string | undefined>(undefined);\n\n /** The family this tab belongs to. Public, because a template may read it. */\n readonly tabs = inject(SlTabs);\n\n readonly selected = computed(() => this.tabs.holds(this.value()));\n /**\n * A family out of action takes every tab with it. The tab's own input can\n * only add to that, never subtract: a consumer that writes `[disabled]=\"false\"`\n * on a tab inside a disabled family is saying nothing about that family, and a\n * template that binds an expression writes `false` where it means \"not this\n * one\" — which is how every tab stayed operable while the family reported\n * itself disabled.\n */\n readonly resolvedDisabled = computed(() => this.tabs.disabled() || (this.disabled() ?? false));\n\n protected readonly tabId = computed(() => this.tabs.identify(this.value()).tabId);\n protected readonly panelId = computed(\n () => this.controls() ?? this.tabs.identify(this.value()).panelId,\n );\n\n protected onClick(event: MouseEvent) {\n if (event.defaultPrevented || this.resolvedDisabled()) return;\n /* A modifier click on a link is the reader asking the browser for a new\n window, and swallowing it is what turns a real destination into a\n decoration. */\n if (\n this.href() !== undefined &&\n (event.metaKey || event.ctrlKey || event.shiftKey || event.altKey)\n ) {\n return;\n }\n if (this.href() !== undefined) event.preventDefault();\n this.tabs.select(this.value(), activationReason(event), event);\n }\n\n /**\n * `Delete` closes the tab, which is the key the APG names for it. A held key\n * repeats, and a repeat would close the tab focus has just landed on.\n */\n protected onKeydown(event: KeyboardEvent) {\n if (event.defaultPrevented || event.repeat) return;\n if (!this.dismissible() || this.resolvedDisabled()) return;\n if (event.key !== 'Delete') return;\n\n event.preventDefault();\n this.tabs.dismiss(this.value(), 'keyboard' satisfies TabsDismissReason, event);\n }\n\n protected onDismiss(event: MouseEvent) {\n /* The control sits inside the item, whose click would otherwise select the\n tab that is being closed. */\n event.stopPropagation();\n this.tabs.dismiss(this.value(), 'pointer', event);\n }\n}\n\n/**\n * The content of a panel, as a template the panel instantiates.\n *\n * Projected markup is built by the consumer's own view whether a panel shows it\n * or not: a component inside a closed panel is constructed, change-detected and\n * keeps its state, and only its DOM is detached. A template is what `mount` can\n * act on. Under `active` it is instantiated on selection and destroyed after,\n * under `lazy` it is instantiated on first selection and kept, under `eager` it\n * is instantiated up front. It is the shape of Angular Material's `matTabContent`.\n *\n * It must be a direct child of the panel, so a panel never takes the template of\n * a family nested inside it.\n */\n@Directive({\n selector: 'ng-template[slTabPanelContent]',\n standalone: true,\n})\nexport class SlTabPanelContent {\n readonly template = inject(TemplateRef);\n}\n\n/**\n * The content of one tab.\n *\n * It is in the page's tab sequence, which is where `Tab` from the list goes, and\n * it is hidden with the attribute rather than with a class: a screen reader,\n * find-in-page and `:target` all already understand `hidden`.\n *\n * The panel itself always exists, so every tab's `aria-controls` names an\n * element. Whether its content is in the DOM is what `mount` decides. Content\n * written inside `<ng-template slTabPanelContent>` is also only built when\n * `mount` says so; projected markup is built by the consumer's view regardless.\n */\n@Component({\n selector: '[slTabPanel]',\n standalone: true,\n imports: [NgTemplateOutlet],\n exportAs: 'slTabPanel',\n template: `@if (present()) {\n @if (content(); as deferred) {\n <ng-container [ngTemplateOutlet]=\"deferred.template\" />\n } @else {\n <ng-content />\n }\n }`,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: {\n 'data-part': 'panel',\n 'data-part-panel': '',\n role: 'tabpanel',\n tabindex: '0',\n '[attr.id]': 'panelId()',\n '[attr.aria-labelledby]': 'tabId()',\n '[attr.hidden]': \"selected() ? null : ''\",\n },\n})\nexport class SlTabPanel {\n /** The tab this panel belongs to. */\n readonly value = input.required<string>();\n\n private readonly tabs = inject(SlTabs);\n\n /** The deferred content, when the consumer wrote one. */\n protected readonly content = contentChild(SlTabPanelContent, { descendants: false });\n\n readonly selected = computed(() => this.tabs.holds(this.value()));\n\n protected readonly panelId = computed(() => this.tabs.identify(this.value()).panelId);\n protected readonly tabId = computed(() => this.tabs.identify(this.value()).tabId);\n protected readonly present = computed(() => {\n const mount = this.tabs.resolvedMount();\n if (mount === 'eager') return true;\n if (this.selected()) return true;\n return mount === 'lazy' && this.tabs.hasSeen(this.value());\n });\n}\n\n/**\n * The slot beside the list, on the same row.\n *\n * What belongs in it is a `toolbar`: one tab stop for however many actions the\n * page puts there, which is what keeps the distance between the tab list and the\n * panel to the two stops the pattern asks for.\n */\n@Directive({\n selector: '[slTabActions]',\n standalone: true,\n exportAs: 'slTabActions',\n host: { 'data-part': 'actions', 'data-part-actions': '' },\n})\nexport class SlTabActions {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;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AA,cAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;2FAAZ,YAAY,EAAA,UAAA,EAAA,CAAA;kBANxB,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,gBAAgB;AAC1B,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,QAAQ,EAAE,cAAc;oBACxB,IAAI,EAAE,EAAE,WAAW,EAAE,SAAS,EAAE,mBAAmB,EAAE,EAAE,EAAE;AAC1D,iBAAA;;;AC7UD;;AAEG;;"}
1
+ {"version":3,"file":"slotted-angular-tabs.mjs","sources":["../../tabs/src/tabs-defaults.ts","../../tabs/src/tabs.ts","../../tabs/src/tabs-parts.ts","../../tabs/src/slotted-angular-tabs.ts"],"sourcesContent":["import { inject, Injectable, InjectionToken } from '@angular/core';\n\n/** Whether moving focus to a tab also selects it. */\nexport type TabsActivation = 'automatic' | 'manual';\n\n/** Which way the list runs. A horizontal list scrolls; a vertical one stacks. */\nexport type TabsOrientation = 'horizontal' | 'vertical';\n\n/** The type step the list and its tabs sit at. */\nexport type TabsSize = 'sm' | 'md' | 'lg';\n\n/**\n * How the list is drawn. `line` is a row of labels over a hairline; `contained`\n * is a sunken track holding a surface per tab. Both paint the same marker,\n * which is what survives the `high-contrast` scheme.\n */\nexport type TabsVariant = 'line' | 'contained';\n\n/**\n * Whether the list draws the line its tabs stand on. `none` is for a list that\n * sits on a line the page already drew — a card header's edge, a table's own\n * rule — where two hairlines a pixel apart read as one smudge.\n */\nexport type TabsTrack = 'line' | 'none';\n\n/** Whether each tab is as wide as its label or takes an equal share of the line. */\nexport type TabsFit = 'auto' | 'equal';\n\n/**\n * When a panel exists. The names are Cloudscape's, which are the clearest three\n * words in the field for the same three behaviors.\n */\nexport type TabsMount = 'active' | 'lazy' | 'eager';\n\n/** Which way the selection travelled, from the two indices. */\nexport type TabsActivationDirection = 'forward' | 'backward' | 'none';\n\nexport interface TabsDefaults {\n activation: TabsActivation;\n fit: TabsFit;\n track: TabsTrack;\n loop: boolean;\n mount: TabsMount;\n orientation: TabsOrientation;\n size: TabsSize;\n variant: TabsVariant;\n}\n\nconst FALLBACK: TabsDefaults = {\n activation: 'automatic',\n fit: 'auto',\n loop: true,\n mount: 'active',\n orientation: 'horizontal',\n size: 'md',\n track: 'line',\n variant: 'line',\n};\n\nexport const TABS_DEFAULTS = new InjectionToken<TabsDefaults>('slotted tabs defaults', {\n providedIn: 'root',\n factory: () => FALLBACK,\n});\n\n/**\n * An application decides once how its tabs look and behave, rather than\n * repeating the same seven inputs on every family in a product. A family that\n * states any of them itself still wins.\n */\nexport function provideTabsDefaults(defaults: Partial<TabsDefaults>) {\n return {\n provide: TABS_DEFAULTS,\n useFactory: (): TabsDefaults => ({ ...FALLBACK, ...defaults }),\n };\n}\n\n/** What a tabs family renders as here, before it states anything of its own. */\nexport function injectTabsDefaults(): TabsDefaults {\n return inject(TABS_DEFAULTS);\n}\n\n/**\n * Application-scoped rather than module-scoped, for the reason `field` records:\n * a module-level counter produces colliding sequences when two applications\n * render in one server process, and the server and the client sequences must\n * match for hydration.\n */\n@Injectable({ providedIn: 'root' })\nexport class SlTabsIdFactory {\n private count = 0;\n\n next() {\n this.count += 1;\n return `slotted-tabs-${this.count}`;\n }\n}\n","import { createRemovalFocus, createRovingTabindex } from '@slotted/core/focus';\nimport type { RemovalFocusHandle, RovingTabindexHandle } from '@slotted/core/focus';\nimport { createIndicator } from '@slotted/core/measure';\nimport { createScrollAffordance, NOT_OVERFLOWING } from '@slotted/core/overflow';\nimport type { OverflowState, ScrollAffordanceHandle } from '@slotted/core/overflow';\nimport { createControllable } from '@slotted/core/state';\nimport type { ChangeRequest } from '@slotted/core/state';\nimport {\n afterNextRender,\n booleanAttribute,\n ChangeDetectionStrategy,\n Component,\n computed,\n DestroyRef,\n inject,\n Injector,\n input,\n output,\n signal,\n ViewEncapsulation,\n} from '@angular/core';\nimport type { OnInit } from '@angular/core';\nimport { SlGlyph, SlIcon } from '@slotted/angular/icon';\n\nimport { injectTabsDefaults, SlTabsIdFactory } from './tabs-defaults';\nimport type {\n TabsActivation,\n TabsActivationDirection,\n TabsFit,\n TabsMount,\n TabsOrientation,\n TabsSize,\n TabsTrack,\n TabsVariant,\n} from './tabs-defaults';\n\nexport type {\n TabsActivation,\n TabsActivationDirection,\n TabsDefaults,\n TabsFit,\n TabsMount,\n TabsOrientation,\n TabsSize,\n TabsTrack,\n TabsVariant,\n} from './tabs-defaults';\n\n/** Every tab in the list, in the order the DOM holds them. */\nexport const TAB_SELECTOR = '[data-part=\"tab\"]';\n\n/** Why the selection moved. */\nexport type TabsSelectionReason = 'pointer' | 'keyboard' | 'remove' | 'programmatic';\n\n/** Why a tab was dismissed. */\nexport type TabsDismissReason = 'pointer' | 'keyboard';\n\n/**\n * The request a dismissal carries. It holds no value pair, because nothing is\n * replacing anything: the value being dismissed is `value`, and the shape is\n * `tag`'s, which set the convention for a removal in this library.\n */\nexport interface TabsDismissRequest {\n readonly value: string;\n readonly reason: TabsDismissReason;\n readonly source: Event;\n readonly cancelled: boolean;\n cancel(): void;\n}\n\n/**\n * An identifier from a value, injectively.\n *\n * A value is the consumer's own string and may hold a space, which no\n * identifier may. Escaping the characters an identifier refuses — rather than\n * replacing them — is what keeps two values from wiring one panel.\n */\nexport function escapeTabValue(value: string): string {\n return value.replace(/[^\\w-]/g, (character) => `-${character.charCodeAt(0).toString(16)}-`);\n}\n\n/**\n * One view out of several, and the panels under it.\n *\n * **The keyboard is the APG's, and it is implemented once.** The list is a\n * roving tab stop from `@slotted/core/focus`: `Tab` enters on the selected tab,\n * the arrows of the flow axis move and wrap, `Home` and `End` reach the ends,\n * and the cross axis is left alone so the page still scrolls with focus inside\n * a horizontal list. `Delete` dismisses a dismissible tab, and focus lands\n * where the pattern says.\n *\n * **The marker moves without a measurement.** The root records which way the\n * selection travelled and the stylesheet turns that into a transform origin, so\n * the family is right in a server response and during the first paint.\n *\n * **The paging controls belong to the root**, because the root owns the observer\n * that knows whether they are needed. They are out of the tab sequence and out\n * of the accessibility tree: the arrows already reach every tab and bring it\n * into view.\n */\n@Component({\n selector: '[slTabs]',\n standalone: true,\n imports: [SlGlyph, SlIcon],\n exportAs: 'slTabs',\n template: `<ng-content />\n @if (paging()) {\n <button\n aria-hidden=\"true\"\n data-part=\"scroll\"\n data-part-scroll=\"\"\n data-direction=\"start\"\n type=\"button\"\n tabindex=\"-1\"\n [disabled]=\"overflow().atStart\"\n (click)=\"page(-1)\"\n >\n <span slIcon directional><svg slGlyph name=\"chevron-right\"></svg></span>\n </button>\n <button\n aria-hidden=\"true\"\n data-part=\"scroll\"\n data-part-scroll=\"\"\n data-direction=\"end\"\n type=\"button\"\n tabindex=\"-1\"\n [disabled]=\"overflow().atEnd\"\n (click)=\"page(1)\"\n >\n <span slIcon directional><svg slGlyph name=\"chevron-right\"></svg></span>\n </button>\n }`,\n styleUrl: '../../../styles/src/tabs/tabs.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: {\n 'data-ui': 'tabs',\n 'data-ui-tabs': '',\n 'data-part': 'root',\n 'data-part-root': '',\n '[attr.data-size]': 'resolvedSize()',\n '[attr.data-variant]': 'resolvedVariant()',\n '[attr.data-track]': 'resolvedTrack()',\n '[attr.data-orientation]': 'resolvedOrientation()',\n '[attr.data-fit]': 'resolvedFit()',\n '[attr.data-activation-direction]': 'direction()',\n '[attr.data-disabled]': \"disabled() ? '' : null\",\n '[attr.data-overflowing]': \"overflow().overflowing ? '' : null\",\n },\n})\nexport class SlTabs implements OnInit {\n /** Present means the consumer owns the selection. */\n readonly value = input<string | undefined>(undefined);\n /** The value an uncontrolled family starts from, read once. */\n readonly defaultValue = input<string | undefined>(undefined);\n readonly activation = input<TabsActivation | undefined>(undefined);\n readonly orientation = input<TabsOrientation | undefined>(undefined);\n readonly size = input<TabsSize | undefined>(undefined);\n readonly variant = input<TabsVariant | undefined>(undefined);\n /** `none` draws no line at all, for a list standing on one the page drew. */\n readonly track = input<TabsTrack | undefined>(undefined);\n readonly fit = input<TabsFit | undefined>(undefined);\n readonly mount = input<TabsMount | undefined>(undefined);\n readonly loop = input<boolean | undefined, boolean | string | undefined>(undefined, {\n transform: (state) => (state === undefined ? undefined : booleanAttribute(state)),\n });\n /** Reaches every tab as the native attribute, which is also what makes the\n browser skip it with the arrow keys. */\n readonly disabled = input(false, { transform: booleanAttribute });\n\n /** One output for one transition, carrying the reason and the event. */\n readonly valueChange = output<ChangeRequest<string | undefined>>();\n /**\n * Asked before a tab is dismissed. The family removes nothing: the consumer\n * owns the collection, and a component that removed itself would render\n * nothing while the consumer's array still held the item.\n */\n readonly tabDismiss = output<TabsDismissRequest>();\n\n private readonly defaults = injectTabsDefaults();\n private readonly baseId = inject(SlTabsIdFactory).next();\n private readonly destroyRef = inject(DestroyRef);\n private readonly injector = inject(Injector);\n\n private readonly own = signal<string | undefined>(undefined);\n private readonly listElement = signal<HTMLElement | null>(null);\n private readonly seen = new Set<string>();\n private roving: RovingTabindexHandle | null = null;\n private affordance: ScrollAffordanceHandle | null = null;\n\n protected readonly direction = signal<TabsActivationDirection>('none');\n protected readonly overflow = signal<OverflowState>(NOT_OVERFLOWING);\n\n readonly selection = computed(() => this.value() ?? this.own());\n readonly resolvedActivation = computed(() => this.activation() ?? this.defaults.activation);\n readonly resolvedOrientation = computed(() => this.orientation() ?? this.defaults.orientation);\n readonly resolvedSize = computed(() => this.size() ?? this.defaults.size);\n readonly resolvedVariant = computed(() => this.variant() ?? this.defaults.variant);\n readonly resolvedTrack = computed(() => this.track() ?? this.defaults.track);\n readonly resolvedFit = computed(() => this.fit() ?? this.defaults.fit);\n readonly resolvedMount = computed(() => this.mount() ?? this.defaults.mount);\n readonly resolvedLoop = computed(() => this.loop() ?? this.defaults.loop);\n\n protected readonly paging = computed(\n () => this.overflow().overflowing && this.resolvedOrientation() === 'horizontal',\n );\n\n constructor() {\n /**\n * The list constructs before this runs and hands over its element; the\n * handles are created once, after the first render, because two of them\n * measure and all three read the DOM the tabs are in.\n */\n afterNextRender(() => {\n const list = this.listElement();\n if (list !== null) this.observe(list);\n });\n }\n\n ngOnInit() {\n if (this.value() === undefined) this.own.set(this.defaultValue());\n const start = this.selection();\n if (start !== undefined) this.seen.add(start);\n }\n\n /** The identifiers a tab and its panel are wired together with. */\n identify(value: string) {\n const escaped = escapeTabValue(value);\n return { panelId: `${this.baseId}-panel-${escaped}`, tabId: `${this.baseId}-tab-${escaped}` };\n }\n\n /** Whether this value is the selected one. Read by every tab and panel. */\n holds(value: string): boolean {\n return this.selection() === value;\n }\n\n /** Whether this value has ever been selected, which is what `lazy` reads. */\n hasSeen(value: string): boolean {\n return this.seen.has(value);\n }\n\n /**\n * The list hands the root its element. The root owns the roving tab stop, the\n * removal focus and the overflow observer — all three are about that element,\n * and the root is what holds the value they act on.\n */\n attachList(element: HTMLElement) {\n this.listElement.set(element);\n }\n\n private tabElements(): HTMLElement[] {\n const list = this.listElement();\n return list === null ? [] : [...list.querySelectorAll<HTMLElement>(TAB_SELECTOR)];\n }\n\n private indexOf(value: string | undefined): number {\n if (value === undefined) return -1;\n return this.tabElements().findIndex((item) => item.getAttribute('data-value') === value);\n }\n\n /**\n * Asks the family to select one value. The direction is set in the same turn,\n * so the marker's origin and the selection reach the DOM in one paint.\n */\n select(next: string, reason: TabsSelectionReason, source?: Event) {\n if (next === this.selection()) return;\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(next, reason, source);\n if (cancelled) return;\n\n const from = this.indexOf(this.selection());\n const to = this.indexOf(next);\n if (from !== -1 && to !== -1) this.direction.set(to > from ? 'forward' : 'backward');\n\n this.seen.add(next);\n if (moved) this.own.set(next);\n\n /* The tab stop follows the selection, which is where `Tab` from outside the\n list lands. The DOM order does not change here, so the index is read\n straight away rather than waiting for a render. */\n if (to !== -1) this.roving?.setActive(to);\n this.revealSelected();\n }\n\n /**\n * The neighbour a dismissal leaves the selection to: the tab that followed\n * the dismissed one, or the one before it when the dismissed tab was last.\n * It is the APG's own focus rule for `Delete`, applied to the value.\n */\n private neighbourOf(dismissed: string): string | undefined {\n const values = this.tabElements()\n .map((item) => item.getAttribute('data-value'))\n .filter((candidate): candidate is string => candidate !== null);\n const index = values.indexOf(dismissed);\n if (index === -1) return undefined;\n return values[index + 1] ?? values[index - 1];\n }\n\n dismiss(value: string, reason: TabsDismissReason, source: Event) {\n let cancelled = false;\n const request: TabsDismissRequest = {\n value,\n reason,\n source,\n get cancelled() {\n return cancelled;\n },\n cancel() {\n cancelled = true;\n },\n };\n this.tabDismiss.emit(request);\n if (cancelled) return;\n\n if (!this.holds(value)) return;\n const next = this.neighbourOf(value);\n if (next !== undefined) this.select(next, 'remove', source);\n }\n\n /** Puts the tab stop on the selected tab and brings it into view. */\n syncSelection() {\n const index = this.indexOf(this.selection());\n if (index === -1) return;\n this.roving?.setActive(index);\n this.revealSelected();\n }\n\n private revealSelected() {\n const item = this.tabElements()[this.indexOf(this.selection())];\n if (item !== undefined) this.affordance?.reveal(item);\n }\n\n protected page(direction: -1 | 1) {\n this.affordance?.page(direction);\n }\n\n private observe(list: HTMLElement) {\n const tabindex = createRovingTabindex(list, {\n crossAxis: false,\n itemSelector: TAB_SELECTOR,\n loop: this.resolvedLoop(),\n onMove: (_index, item) => {\n this.affordance?.reveal(item);\n if (this.resolvedActivation() !== 'automatic') return;\n const next = item.getAttribute('data-value');\n if (next !== null) this.select(next, 'keyboard');\n },\n orientation: () => this.resolvedOrientation(),\n });\n this.roving = tabindex;\n\n /**\n * Where the keyboard goes when the tab it was on is dismissed. The list\n * is the last resort, which is why it holds `tabindex=\"-1\"`: a list\n * emptied by its final dismissal keeps focus rather than returning it\n * to the top of the page.\n */\n const removal: RemovalFocusHandle = createRemovalFocus(list, {\n itemSelector: TAB_SELECTOR,\n });\n /**\n * A list that starts to overflow — on its first render, or later when its\n * stylesheet arrives, a drawer opens or a hidden panel is shown — draws its\n * paging controls, and they narrow it: a tab revealed against the wider list\n * ended behind the end control. The selected tab is revealed again once the\n * controls are in the layout, on that transition and on no other, so a\n * reader scrolling the list keeps control.\n */\n let overflowing = false;\n const affordance = createScrollAffordance(list, {\n onChange: (state) => {\n this.overflow.set(state);\n if (state.overflowing && !overflowing) {\n afterNextRender(() => this.revealSelected(), { injector: this.injector });\n }\n overflowing = state.overflowing;\n },\n });\n this.affordance = affordance;\n this.overflow.set(affordance.state());\n\n /** The marker the list draws under the selected tab, measured by `createIndicator`. */\n const indicator = createIndicator(list, {\n orientation: () => this.resolvedOrientation(),\n part: 'marker',\n target: () =>\n list.querySelector<HTMLElement>(\n ':scope > [data-part=\"item\"][data-selected] > [data-part=\"tab\"]',\n ),\n });\n\n /**\n * A tab arriving or leaving has to reach both handles, and neither\n * binding can be told by the other's change detection. The DOM is the\n * one thing they agree on.\n */\n const observer = new MutationObserver(() => {\n tabindex.refresh();\n affordance.refresh();\n this.syncSelection();\n });\n observer.observe(list, { childList: true, subtree: true });\n this.syncSelection();\n\n this.destroyRef.onDestroy(() => {\n observer.disconnect();\n indicator.destroy();\n removal.destroy();\n affordance.destroy();\n tabindex.destroy();\n this.roving = null;\n this.affordance = null;\n });\n }\n}\n","import { NgTemplateOutlet } from '@angular/common';\nimport {\n booleanAttribute,\n ChangeDetectionStrategy,\n Component,\n computed,\n contentChild,\n Directive,\n ElementRef,\n inject,\n input,\n TemplateRef,\n ViewEncapsulation,\n} from '@angular/core';\nimport { SlGlyph, SlIcon } from '@slotted/angular/icon';\n\nimport { SlTabs } from './tabs';\nimport type { TabsDismissReason, TabsSelectionReason } from './tabs';\n\n/**\n * A click synthesised by the keyboard reports no detail; a real one reports the\n * click count. It is why `Enter`, `Space` and a pointer are told apart without a\n * key listener existing for activation.\n */\nfunction activationReason(event: Event): TabsSelectionReason {\n return event instanceof MouseEvent && event.detail === 0 ? 'keyboard' : 'pointer';\n}\n\n/**\n * The list of tabs, and the one tab stop the family holds.\n *\n * It hands its element to the root, which owns the roving tab stop, the removal\n * focus and the overflow observer. `tabindex=\"-1\"` is the last resort of the\n * removal focus: a list emptied by its final dismissal keeps focus rather than\n * returning it to the top of the page.\n *\n * Its accessible name is the consumer's own `aria-label` or `aria-labelledby`:\n * only the page knows what the set of views is for.\n */\n@Directive({\n selector: '[slTabList]',\n standalone: true,\n exportAs: 'slTabList',\n host: {\n 'data-part': 'list',\n 'data-part-list': '',\n role: 'tablist',\n tabindex: '-1',\n '[attr.aria-orientation]': 'ariaOrientation()',\n },\n})\nexport class SlTabList {\n private readonly tabs = inject(SlTabs);\n\n protected readonly ariaOrientation = computed(() =>\n this.tabs.resolvedOrientation() === 'vertical' ? 'vertical' : null,\n );\n\n constructor() {\n this.tabs.attachList(inject(ElementRef<HTMLElement>).nativeElement);\n }\n}\n\n/**\n * What precedes the label inside a tab, such as an icon. It stands beside the\n * words rather than inside them, so the tab's gap spaces it and only the words\n * are clipped under `fit=\"equal\"`; the part sizes an icon to the tab's icon step.\n */\n@Directive({\n selector: '[slTabStart]',\n standalone: true,\n exportAs: 'slTabStart',\n host: { 'data-part': 'start', 'data-part-start': '' },\n})\nexport class SlTabStart {}\n\n/** What follows the label inside a tab, such as a count. */\n@Directive({\n selector: '[slTabEnd]',\n standalone: true,\n exportAs: 'slTabEnd',\n host: { 'data-part': 'end', 'data-part-end': '' },\n})\nexport class SlTabEnd {}\n\n/**\n * One tab, in the box that holds it.\n *\n * The host is that box, and it is presentational because a `button` may not\n * contain a `button`: a dismissible tab needs somewhere to put its second\n * control.\n *\n * `href` makes the control an anchor, and a click carrying a modifier key is\n * left to the browser so a deep link still opens in a new browser tab.\n */\n@Component({\n selector: '[slTab]',\n standalone: true,\n imports: [NgTemplateOutlet, SlGlyph, SlIcon],\n exportAs: 'slTab',\n /* The words and what stands beside them are written once and placed in\n whichever control the tab renders: a selecting `ng-content` repeated in\n both branches left the button branch without its icon and its count. */\n template: `<ng-template #content\n ><ng-content select=\"[slTabStart]\" /><span data-part=\"label\" data-part-label=\"\"\n ><ng-content /></span\n ><ng-content select=\"[slTabEnd]\"\n /></ng-template>\n @if (href(); as destination) {\n <a\n #control\n data-part=\"tab\"\n data-part-tab=\"\"\n role=\"tab\"\n [attr.id]=\"tabId()\"\n [attr.href]=\"destination\"\n [attr.data-value]=\"value()\"\n [attr.aria-controls]=\"panelId()\"\n [attr.aria-selected]=\"selected()\"\n [attr.aria-disabled]=\"resolvedDisabled() ? 'true' : null\"\n [attr.aria-keyshortcuts]=\"dismissible() ? 'Delete' : null\"\n [attr.tabindex]=\"selected() ? 0 : -1\"\n (click)=\"onClick($event)\"\n (keydown)=\"onKeydown($event)\"\n ><ng-container [ngTemplateOutlet]=\"content\"\n /></a>\n } @else {\n <button\n #control\n data-part=\"tab\"\n data-part-tab=\"\"\n role=\"tab\"\n type=\"button\"\n [attr.id]=\"tabId()\"\n [attr.data-value]=\"value()\"\n [attr.aria-controls]=\"panelId()\"\n [attr.aria-selected]=\"selected()\"\n [attr.aria-keyshortcuts]=\"dismissible() ? 'Delete' : null\"\n [disabled]=\"resolvedDisabled()\"\n [attr.tabindex]=\"selected() ? 0 : -1\"\n (click)=\"onClick($event)\"\n (keydown)=\"onKeydown($event)\"\n >\n <ng-container [ngTemplateOutlet]=\"content\" />\n </button>\n }\n @if (dismissible()) {\n <button\n data-part=\"dismiss\"\n data-part-dismiss=\"\"\n type=\"button\"\n tabindex=\"-1\"\n [attr.aria-label]=\"dismissLabel()\"\n [disabled]=\"resolvedDisabled()\"\n (click)=\"onDismiss($event)\"\n >\n <span slIcon><svg slGlyph name=\"x\"></svg></span>\n </button>\n }`,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: {\n 'data-part': 'item',\n 'data-part-item': '',\n role: 'presentation',\n '[attr.data-selected]': \"selected() ? '' : null\",\n },\n})\nexport class SlTab {\n /** What this tab selects. It is what the family's value holds. */\n readonly value = input.required<string>();\n /** Unstated rather than `false`, so the tab defers to the family. */\n readonly disabled = input<boolean | undefined, boolean | string | undefined>(undefined, {\n transform: (state) => (state === undefined ? undefined : booleanAttribute(state)),\n });\n /** Whether this tab carries a control that closes it. */\n readonly dismissible = input(false, { transform: booleanAttribute });\n /** The accessible name of that control. Required whenever it is drawn. */\n readonly dismissLabel = input<string | undefined>(undefined);\n /** Makes the control an anchor, for a view a router can deep-link to. */\n readonly href = input<string | undefined>(undefined);\n /**\n * The id of the element this tab controls, when it is not a panel of this\n * family: a strip over one region whose content the value filters — a\n * feed, a table — names that region here, and `aria-controls` says so.\n */\n readonly controls = input<string | undefined>(undefined);\n\n /** The family this tab belongs to. Public, because a template may read it. */\n readonly tabs = inject(SlTabs);\n\n readonly selected = computed(() => this.tabs.holds(this.value()));\n /**\n * A family out of action takes every tab with it. The tab's own input can\n * only add to that, never subtract: a consumer that writes `[disabled]=\"false\"`\n * on a tab inside a disabled family is saying nothing about that family, and a\n * template that binds an expression writes `false` where it means \"not this\n * one\" — which is how every tab stayed operable while the family reported\n * itself disabled.\n */\n readonly resolvedDisabled = computed(() => this.tabs.disabled() || (this.disabled() ?? false));\n\n protected readonly tabId = computed(() => this.tabs.identify(this.value()).tabId);\n protected readonly panelId = computed(\n () => this.controls() ?? this.tabs.identify(this.value()).panelId,\n );\n\n protected onClick(event: MouseEvent) {\n if (event.defaultPrevented || this.resolvedDisabled()) return;\n /* A modifier click on a link is the reader asking the browser for a new\n window, and swallowing it is what turns a real destination into a\n decoration. */\n if (\n this.href() !== undefined &&\n (event.metaKey || event.ctrlKey || event.shiftKey || event.altKey)\n ) {\n return;\n }\n if (this.href() !== undefined) event.preventDefault();\n this.tabs.select(this.value(), activationReason(event), event);\n }\n\n /**\n * `Delete` closes the tab, which is the key the APG names for it. A held key\n * repeats, and a repeat would close the tab focus has just landed on.\n */\n protected onKeydown(event: KeyboardEvent) {\n if (event.defaultPrevented || event.repeat) return;\n if (!this.dismissible() || this.resolvedDisabled()) return;\n if (event.key !== 'Delete') return;\n\n event.preventDefault();\n this.tabs.dismiss(this.value(), 'keyboard' satisfies TabsDismissReason, event);\n }\n\n protected onDismiss(event: MouseEvent) {\n /* The control sits inside the item, whose click would otherwise select the\n tab that is being closed. */\n event.stopPropagation();\n this.tabs.dismiss(this.value(), 'pointer', event);\n }\n}\n\n/**\n * The content of a panel, as a template the panel instantiates.\n *\n * Projected markup is built by the consumer's own view whether a panel shows it\n * or not: a component inside a closed panel is constructed, change-detected and\n * keeps its state, and only its DOM is detached. A template is what `mount` can\n * act on. Under `active` it is instantiated on selection and destroyed after,\n * under `lazy` it is instantiated on first selection and kept, under `eager` it\n * is instantiated up front. It is the shape of Angular Material's `matTabContent`.\n *\n * It must be a direct child of the panel, so a panel never takes the template of\n * a family nested inside it.\n */\n@Directive({\n selector: 'ng-template[slTabPanelContent]',\n standalone: true,\n})\nexport class SlTabPanelContent {\n readonly template = inject(TemplateRef);\n}\n\n/**\n * The content of one tab.\n *\n * It is in the page's tab sequence, which is where `Tab` from the list goes, and\n * it is hidden with the attribute rather than with a class: a screen reader,\n * find-in-page and `:target` all already understand `hidden`.\n *\n * The panel itself always exists, so every tab's `aria-controls` names an\n * element. Whether its content is in the DOM is what `mount` decides. Content\n * written inside `<ng-template slTabPanelContent>` is also only built when\n * `mount` says so; projected markup is built by the consumer's view regardless.\n */\n@Component({\n selector: '[slTabPanel]',\n standalone: true,\n imports: [NgTemplateOutlet],\n exportAs: 'slTabPanel',\n template: `@if (present()) {\n @if (content(); as deferred) {\n <ng-container [ngTemplateOutlet]=\"deferred.template\" />\n } @else {\n <ng-content />\n }\n }`,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: {\n 'data-part': 'panel',\n 'data-part-panel': '',\n role: 'tabpanel',\n tabindex: '0',\n '[attr.id]': 'panelId()',\n '[attr.aria-labelledby]': 'tabId()',\n '[attr.hidden]': \"selected() ? null : ''\",\n },\n})\nexport class SlTabPanel {\n /** The tab this panel belongs to. */\n readonly value = input.required<string>();\n\n private readonly tabs = inject(SlTabs);\n\n /** The deferred content, when the consumer wrote one. */\n protected readonly content = contentChild(SlTabPanelContent, { descendants: false });\n\n readonly selected = computed(() => this.tabs.holds(this.value()));\n\n protected readonly panelId = computed(() => this.tabs.identify(this.value()).panelId);\n protected readonly tabId = computed(() => this.tabs.identify(this.value()).tabId);\n protected readonly present = computed(() => {\n const mount = this.tabs.resolvedMount();\n if (mount === 'eager') return true;\n if (this.selected()) return true;\n return mount === 'lazy' && this.tabs.hasSeen(this.value());\n });\n}\n\n/**\n * The slot beside the list, on the same row.\n *\n * What belongs in it is a `toolbar`: one tab stop for however many actions the\n * page puts there, which is what keeps the distance between the tab list and the\n * panel to the two stops the pattern asks for.\n */\n@Directive({\n selector: '[slTabActions]',\n standalone: true,\n exportAs: 'slTabActions',\n host: { 'data-part': 'actions', 'data-part-actions': '' },\n})\nexport class SlTabActions {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;AAgDA,MAAM,QAAQ,GAAiB;AAC7B,IAAA,UAAU,EAAE,WAAW;AACvB,IAAA,GAAG,EAAE,MAAM;AACX,IAAA,IAAI,EAAE,IAAI;AACV,IAAA,KAAK,EAAE,QAAQ;AACf,IAAA,WAAW,EAAE,YAAY;AACzB,IAAA,IAAI,EAAE,IAAI;AACV,IAAA,KAAK,EAAE,MAAM;AACb,IAAA,OAAO,EAAE,MAAM;CAChB;MAEY,aAAa,GAAG,IAAI,cAAc,CAAe,uBAAuB,EAAE;AACrF,IAAA,UAAU,EAAE,MAAM;AAClB,IAAA,OAAO,EAAE,MAAM,QAAQ;AACxB,CAAA;AAED;;;;AAIG;AACG,SAAU,mBAAmB,CAAC,QAA+B,EAAA;IACjE,OAAO;AACL,QAAA,OAAO,EAAE,aAAa;AACtB,QAAA,UAAU,EAAE,OAAqB,EAAE,GAAG,QAAQ,EAAE,GAAG,QAAQ,EAAE,CAAC;KAC/D;AACH;AAEA;SACgB,k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A,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,OAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,YAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,UAAA,CAAA,MAAA,iBAAiB,CAAA,EAAA,EAAA,GAAE,EAAE,WAAW,EAAE,KAAK,EAAE,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;AAcrF;;;;;;AAMG;MAOU,YAAY,CAAA;uGAAZ,YAAY,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;2FAAZ,YAAY,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,gBAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,WAAA,EAAA,SAAA,EAAA,mBAAA,EAAA,EAAA,EAAA,EAAA,EAAA,QAAA,EAAA,CAAA,cAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;2FAAZ,YAAY,EAAA,UAAA,EAAA,CAAA;kBANxB,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,gBAAgB;AAC1B,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,QAAQ,EAAE,cAAc;oBACxB,IAAI,EAAE,EAAE,WAAW,EAAE,SAAS,EAAE,mBAAmB,EAAE,EAAE,EAAE;AAC1D,iBAAA;;;AC7UD;;AAEG;;"}
@@ -403,7 +403,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImpor
403
403
 
404
404
  /**
405
405
  * A glyph or an avatar before the words. The artwork is the consumer's, and
406
- * the part gives it a box that is sized and centred; the directive is written
406
+ * the part gives it a box that is sized and centerd; the directive is written
407
407
  * on the element the page already has, so nothing is wrapped.
408
408
  */
409
409
  class SlTagStart {
@@ -1 +1 @@
1
- {"version":3,"file":"slotted-angular-tag.mjs","sources":["../../tag/src/tag-defaults.ts","../../tag/src/tag-group.ts","../../tag/src/tag.ts","../../tag/src/tag-body.ts","../../tag/src/tag-content.ts","../../tag/src/tag-remove.ts","../../tag/src/tag-toggle.ts","../../tag/src/slotted-angular-tag.ts"],"sourcesContent":["import { inject, Injectable, InjectionToken } from '@angular/core';\n\n/** Which of the five semantic colours the tag speaks in. */\nexport type TagTone = 'accent' | 'secondary' | 'info' | 'success' | 'warning' | 'danger';\n\n/** How that colour is painted. `soft` is the tinted chip a tag usually is. */\nexport type TagVariant = 'solid' | 'soft' | 'outline' | 'dashed';\n\nexport type TagSize = 'sm' | 'md' | 'lg';\n\nexport type TagShape = 'pill' | 'square';\n\nexport type TagOrientation = 'horizontal' | 'vertical';\n\nexport interface TagDefaults {\n shape: TagShape;\n size: TagSize;\n tone: TagTone;\n variant: TagVariant;\n}\n\nconst FALLBACK: TagDefaults = {\n shape: 'pill',\n size: 'md',\n tone: 'secondary',\n variant: 'soft',\n};\n\nexport const TAG_DEFAULTS = new InjectionToken<TagDefaults>('slotted tag defaults', {\n providedIn: 'root',\n factory: () => FALLBACK,\n});\n\n/**\n * An application decides once how its tags are painted and how large they are,\n * rather than repeating four inputs on every chip in a filter bar. A tag that\n * states any of them itself still wins: an explicit input is never overridden\n * by the token. The remove control's word comes from the language in force\n * (`provideSlotted`).\n */\nexport function provideTagDefaults(defaults: Partial<TagDefaults>) {\n return {\n provide: TAG_DEFAULTS,\n useFactory: (): TagDefaults => ({\n shape: defaults.shape ?? FALLBACK.shape,\n size: defaults.size ?? FALLBACK.size,\n tone: defaults.tone ?? FALLBACK.tone,\n variant: defaults.variant ?? FALLBACK.variant,\n }),\n };\n}\n\n/** What a tag renders as here, before it states anything of its own. */\nexport function injectTagDefaults(): TagDefaults {\n return inject(TAG_DEFAULTS);\n}\n\n/**\n * Application-scoped rather than module-scoped, for the reason the field\n * primitive records: a module-level counter produces colliding sequences when\n * two applications render in one server process, and the server and the client\n * sequences must match for hydration.\n */\n@Injectable({ providedIn: 'root' })\nexport class SlTagIdFactory {\n private count = 0;\n\n next() {\n this.count += 1;\n return `slotted-tag-${this.count}`;\n }\n}\n","import { createRemovalFocus, createRovingTabindex } from '@slotted/core/focus';\nimport type { RemovalFocusHandle, RovingTabindexHandle } from '@slotted/core/focus';\nimport {\n afterNextRender,\n booleanAttribute,\n computed,\n DestroyRef,\n Directive,\n ElementRef,\n HostAttributeToken,\n inject,\n input,\n} from '@angular/core';\n\nimport type { TagOrientation } from './tag-defaults';\n\n/**\n * Every control the keyboard moves between, in the order the DOM holds them: a\n * chip's own control, then its remove control, then the next chip's. Read\n * literally from the APG Toolbar pattern, which needs no second axis to reach\n * a control inside an item.\n */\nconst CONTROL_SELECTOR = '[data-part=\"body\"]:is(a, button), [data-part=\"remove\"]';\n\n/**\n * The run of tags, and the keyboard that belongs to it.\n *\n * It is a toolbar: the APG pattern for \"a container for grouping a set of\n * controls, such as buttons\". One tab stop, arrow keys between the controls\n * inside it, `Home` and `End` at the ends. React Aria and Angular Material\n * reach for the Grid pattern instead, which buys a second axis at the price of\n * two wrapper elements per chip and a `gridcell` role over every button; a\n * single wrapping run does not need the second axis.\n *\n * Writing `role=\"list\"` on the element turns the keyboard off and makes every\n * chip a `listitem`. A list is a structure rather than a widget, its items are\n * not controls to move between, and a screen reader announces its length.\n */\n@Directive({\n selector: '[slTagGroup]',\n standalone: true,\n exportAs: 'slTagGroup',\n host: {\n 'data-ui': 'tag',\n 'data-ui-tag': '',\n 'data-part': 'group',\n 'data-part-group': '',\n tabindex: '-1',\n '[attr.data-orientation]': 'orientation()',\n '[attr.role]': 'role()',\n '[attr.aria-orientation]': 'ariaOrientation()',\n },\n})\nexport class SlTagGroup {\n /** Which way the run reads. `vertical` also writes `aria-orientation`. */\n readonly orientation = input<TagOrientation>('horizontal');\n /** Whether the arrow keys wrap past the ends of the run. */\n readonly loop = input(true, { transform: booleanAttribute });\n\n private readonly element = inject(ElementRef<HTMLElement>).nativeElement;\n private readonly writtenRole = inject(new HostAttributeToken('role'), { optional: true });\n\n protected readonly role = computed(() => this.writtenRole ?? 'toolbar');\n private readonly roving = computed(() => this.role() === 'toolbar');\n protected readonly ariaOrientation = computed(() =>\n /* `horizontal` is the toolbar role's own default, so only the other one is\n written; a list has no orientation to state. */\n this.roving() && this.orientation() === 'vertical' ? 'vertical' : null,\n );\n\n /** What a chip inside this run calls itself. A toolbar's items are its controls. */\n readonly itemRole = computed(() => (this.role() === 'list' ? 'listitem' : undefined));\n\n constructor() {\n const destroyRef = inject(DestroyRef);\n\n afterNextRender(() => {\n if (!this.roving()) return;\n\n const tabindex: RovingTabindexHandle = createRovingTabindex(this.element, {\n itemSelector: CONTROL_SELECTOR,\n loop: this.loop(),\n orientation: () => this.orientation(),\n });\n /**\n * Where the keyboard goes when the chip it was on is taken away. The\n * container is the last resort, which is why it holds `tabindex=\"-1\"`: a\n * group emptied by its final removal keeps focus rather than returning\n * it to the top of the page.\n */\n const removal: RemovalFocusHandle = createRemovalFocus(this.element, {\n itemSelector: CONTROL_SELECTOR,\n });\n /**\n * The tab stop has to survive a chip arriving or leaving, and neither\n * binding can be told by the other's change detection. The DOM is the\n * one thing both of them agree on.\n */\n const observer = new MutationObserver(() => tabindex.refresh());\n observer.observe(this.element, { childList: true, subtree: true });\n\n destroyRef.onDestroy(() => {\n observer.disconnect();\n removal.destroy();\n tabindex.destroy();\n });\n });\n }\n}\n","import { tagMessages, type PartialMessages, type TagMessages } from '@slotted/core/i18n';\nimport type { ChangeReason } from '@slotted/core/state';\nimport {\n booleanAttribute,\n ChangeDetectionStrategy,\n Component,\n computed,\n HostAttributeToken,\n inject,\n input,\n output,\n signal,\n ViewEncapsulation,\n} from '@angular/core';\nimport { injectMessages } from '@slotted/angular/i18n';\n\nimport { injectTagDefaults, SlTagIdFactory } from './tag-defaults';\nimport type { TagShape, TagSize, TagTone, TagVariant } from './tag-defaults';\nimport { SlTagGroup } from './tag-group';\n\nexport type { TagOrientation, TagShape, TagSize, TagTone, TagVariant } from './tag-defaults';\n\n/**\n * How the removal was asked for. `remove` is the control at the end of the\n * chip; `keyboard` is `Backspace` or `Delete` pressed on it.\n */\nexport type TagRemoveReason = Extract<ChangeReason, 'remove' | 'keyboard'>;\n\n/**\n * A request to be taken out of the collection that holds the tag, and never a\n * value: the tag does not own whether it exists. Refusing it is what stops the\n * group from moving focus, which is the one thing the family would otherwise\n * commit on its own.\n */\nexport interface TagRemoveRequest {\n readonly reason: TagRemoveReason;\n readonly source: Event;\n readonly cancelled: boolean;\n cancel(): void;\n}\n\n/**\n * The chip box: an entity, a filter or a compact value. It is not metadata —\n * that is `badge`, and the two share this tone and this type scale on purpose.\n *\n * **The root is never the interactive element.** A `button` cannot contain a\n * `button` and an `a` cannot contain either, so a chip that both acts and\n * removes has to put its two controls side by side. The chip is written on the\n * consumer's own `span`; what the chip *is* is decided by the element under\n * `slTagBody`: a `span` does nothing, a `button` runs a command, an `a`\n * navigates, and `slTagToggle` holds a selection. The element is the member,\n * which is what keeps `routerLink`, `type` and every native attribute on the\n * element that owns them.\n */\n@Component({\n selector: '[slTag]',\n standalone: true,\n exportAs: 'slTag',\n template: '<ng-content></ng-content>',\n styleUrl: '../../../styles/src/tag/tag.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: {\n 'data-ui': 'tag',\n 'data-ui-tag': '',\n 'data-part': 'root',\n 'data-part-root': '',\n '[attr.data-tone]': 'resolvedTone()',\n '[attr.data-variant]': 'resolvedVariant()',\n '[attr.data-size]': 'resolvedSize()',\n '[attr.data-shape]': 'resolvedShape()',\n '[attr.data-disabled]': \"disabled() ? '' : null\",\n '[attr.data-selected]': \"selected() ? '' : null\",\n '[attr.role]': 'role()',\n '(keydown)': 'onKeydown($event)',\n },\n})\nexport class SlTag {\n /** Defaults to the provider, then to `secondary`. */\n readonly tone = input<TagTone | undefined>(undefined);\n /** Defaults to the provider, then to `soft`. */\n readonly variant = input<TagVariant | undefined>(undefined);\n /** Defaults to the provider, then to `md`. */\n readonly size = input<TagSize | undefined>(undefined);\n /** Defaults to the provider, then to `pill`. */\n readonly shape = input<TagShape | undefined>(undefined);\n /** Refuses every interaction the tag offers, including its removal. */\n readonly disabled = input(false, { transform: booleanAttribute });\n /**\n * Whether the chip can be removed at all. React reads the same fact from\n * whether a handler was passed; Angular cannot see whether an output was\n * subscribed, so the opt-in is stated — the asymmetry `button` recorded for\n * its own toggle.\n */\n readonly removable = input(false, { transform: booleanAttribute });\n /** Refuses the removal while the rest of the tag stays operable. */\n readonly removeDisabled = input(false, { transform: booleanAttribute });\n /**\n * Words laid over the catalog of the language in force, key by key: `remove`\n * is the word the remove control announces before the tag's own label, so it\n * reads \"Remove Design\" rather than \"Remove\".\n */\n readonly messages = input<PartialMessages<TagMessages> | undefined>(undefined);\n\n /** One output for one transition, carrying the reason, the event and `cancel()`. */\n readonly remove = output<TagRemoveRequest>();\n\n private readonly defaults = injectTagDefaults();\n private readonly group = inject(SlTagGroup, { optional: true, skipSelf: true });\n /** An explicit role the consumer wrote is never replaced by an inferred one. */\n private readonly writtenRole = inject(new HostAttributeToken('role'), { optional: true });\n\n /**\n * One identifier for the chip, from which the label's and the hidden word's\n * are derived. Deriving beats registering: the remove control needs the\n * label's id before the body has had a chance to announce one.\n */\n readonly id = inject(SlTagIdFactory).next();\n readonly labelId = `${this.id}-label`;\n readonly removeWordId = `${this.id}-remove`;\n\n /** Set by `slTagToggle`, which is the one member that holds a selection. */\n private readonly selectedState = signal(false);\n\n protected readonly resolvedTone = computed(() => this.tone() ?? this.defaults.tone);\n protected readonly resolvedVariant = computed(() => this.variant() ?? this.defaults.variant);\n protected readonly resolvedSize = computed(() => this.size() ?? this.defaults.size);\n protected readonly resolvedShape = computed(() => this.shape() ?? this.defaults.shape);\n protected readonly role = computed(() => this.writtenRole ?? this.group?.itemRole() ?? null);\n\n readonly selected = computed(() => this.selectedState());\n /** The family's words in the language in force, with this tag's `messages` laid over them. */\n readonly t = injectMessages(tagMessages, this.messages);\n readonly removeRefused = computed(() => this.disabled() || this.removeDisabled());\n\n /** Called by the toggle, which owns the value and only reports it here. */\n setSelected(selected: boolean) {\n this.selectedState.set(selected);\n }\n\n /**\n * The request the remove control and the keyboard both make. Nothing is\n * committed here: the tag does not own whether it exists, and a consumer\n * that refuses the request leaves the chip and the keyboard where they were.\n */\n requestRemoval(reason: TagRemoveReason, source: Event) {\n if (!this.removable() || this.removeRefused()) return;\n\n let cancelled = false;\n this.remove.emit({\n reason,\n source,\n get cancelled() {\n return cancelled;\n },\n cancel() {\n cancelled = true;\n },\n });\n }\n\n /**\n * `Backspace` and `Delete` on a removable chip, which is the shortcut MUI,\n * Primer, React Aria and Angular Material all ship. It is bound to the chip\n * box rather than to either control, so it answers wherever focus is inside\n * the chip, and a consumer's own handler runs first and can refuse it by\n * calling `preventDefault`.\n *\n * A held key repeats, and a repeat would remove the chip focus has just\n * landed on. The default is prevented because `Backspace` still navigates\n * back in some browsers when nothing is being edited.\n */\n protected onKeydown(event: KeyboardEvent) {\n if (event.repeat || event.defaultPrevented) return;\n if (event.key !== 'Backspace' && event.key !== 'Delete') return;\n if (!this.removable() || this.removeRefused()) return;\n\n event.preventDefault();\n this.requestRemoval('keyboard', event);\n }\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n computed,\n DestroyRef,\n effect,\n ElementRef,\n inject,\n Renderer2,\n ViewEncapsulation,\n} from '@angular/core';\n\nimport { SlTag } from './tag';\n\n/**\n * The template every content box shares. The words get a box of their own — it\n * is what `text-box` needs to trim the line to the cap and the baseline, what\n * `text-overflow` needs to clip a long value, and what `aria-labelledby` on\n * the remove control points at so it announces the value rather than the word\n * \"Remove\" on its own.\n *\n * Every space between these tags is load-bearing: Angular collapses a newline\n * between two nodes into a space, and a space beside the label box would put a\n * word gap inside the chip that the family's own `gap` is already drawing.\n */\nexport const TAG_BODY_TEMPLATE =\n '<ng-content select=\"[slTagStart]\"></ng-content>' +\n '<span data-part=\"label\" data-part-label=\"\" [id]=\"tag.labelId\"><ng-content></ng-content></span>' +\n '<ng-content select=\"[slTagEnd]\"></ng-content>';\n\n/**\n * The content box, and the primary target when there is one. It is written on\n * the element the chip *is*: a `span` that does nothing, a `button` that runs\n * a command, an `a` that navigates. The element is the member, which is what\n * keeps `routerLink`, `type`, `download` and every native listener on the\n * element that owns them.\n *\n * `disabled` belongs to the chip rather than to this element, because a chip\n * is unavailable as a whole. What that means depends on the element, and the\n * platform only offers one of the two forms per element.\n */\n@Component({\n selector: '[slTagBody]',\n standalone: true,\n exportAs: 'slTagBody',\n template: TAG_BODY_TEMPLATE,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: {\n 'data-part': 'body',\n 'data-part-body': '',\n '[attr.disabled]': 'nativelyDisabled()',\n '[attr.aria-disabled]': 'ariaDisabled()',\n '[attr.role]': 'anchorRole()',\n },\n})\nexport class SlTagBody {\n protected readonly tag = inject(SlTag);\n\n private readonly element = inject(ElementRef<HTMLElement>).nativeElement;\n private readonly renderer = inject(Renderer2);\n private readonly isButton = this.element.tagName === 'BUTTON';\n private readonly isAnchor = this.element.tagName === 'A';\n\n protected readonly nativelyDisabled = computed(() =>\n this.isButton && this.tag.disabled() ? '' : null,\n );\n protected readonly ariaDisabled = computed(() =>\n this.isAnchor && this.tag.disabled() ? 'true' : null,\n );\n /** An anchor without a destination is no longer a link, so it says it is one. */\n protected readonly anchorRole = computed(() =>\n this.isAnchor && this.tag.disabled() ? 'link' : null,\n );\n\n /**\n * A disabled anchor keeps its place in the tab sequence and loses its\n * destination, which is the line `link` draws for the same case: an anchor\n * without an `href` would drop out of the tab sequence and take its own\n * explanation with it. The attribute is withheld rather than overwritten, so\n * it is given back the moment the chip becomes available again.\n */\n private withheldHref: string | null = null;\n\n constructor() {\n if (this.isAnchor) {\n effect(() => {\n if (this.tag.disabled()) {\n this.withheldHref ??= this.element.getAttribute('href');\n this.renderer.removeAttribute(this.element, 'href');\n this.renderer.setAttribute(this.element, 'tabindex', '0');\n return;\n }\n if (this.withheldHref !== null) {\n this.renderer.setAttribute(this.element, 'href', this.withheldHref);\n this.withheldHref = null;\n }\n });\n }\n\n /**\n * The capture phase, because a control that is unavailable must refuse the\n * activation before any listener the consumer attached to it can run. A\n * natively disabled button needs none of this; an anchor and a `span` with\n * a listener on it do.\n */\n if (!this.isButton) {\n const destroyRef = inject(DestroyRef);\n const refuse = (event: Event) => {\n if (!this.tag.disabled()) return;\n event.preventDefault();\n event.stopPropagation();\n event.stopImmediatePropagation();\n };\n for (const type of ['click', 'auxclick', 'keydown']) {\n this.element.addEventListener(type, refuse, { capture: true });\n destroyRef.onDestroy(() =>\n this.element.removeEventListener(type, refuse, { capture: true }),\n );\n }\n }\n }\n}\n","import { Directive } from '@angular/core';\n\n/**\n * A glyph or an avatar before the words. The artwork is the consumer's, and\n * the part gives it a box that is sized and centred; the directive is written\n * on the element the page already has, so nothing is wrapped.\n */\n@Directive({\n selector: '[slTagStart]',\n standalone: true,\n exportAs: 'slTagStart',\n host: { 'data-part': 'start', 'data-part-start': '' },\n})\nexport class SlTagStart {}\n\n/** A glyph after the words. */\n@Directive({\n selector: '[slTagEnd]',\n standalone: true,\n exportAs: 'slTagEnd',\n host: { 'data-part': 'end', 'data-part-end': '' },\n})\nexport class SlTagEnd {}\n","import {\n ChangeDetectionStrategy,\n Component,\n computed,\n inject,\n ViewEncapsulation,\n} from '@angular/core';\nimport { SlGlyph, SlIcon } from '@slotted/angular/icon';\n\nimport { SlTag } from './tag';\n\n/**\n * The control at the end of the chip, on the consumer's own button so its\n * listeners and its attributes stay theirs. The glyph is the family's `x`,\n * drawn as the `Glyph` element unless the consumer wrote content of their own:\n * a character is never an icon.\n *\n * Its name is composed rather than repeated. The hidden word and the tag's own\n * label are joined by `aria-labelledby`, so it announces \"Remove Design\"\n * without the consumer writing the value a second time — the string four of\n * the surveyed implementations make the consumer keep in step with the value\n * by hand. Text referenced by `aria-labelledby` counts even when the element\n * holding it is hidden, which is what lets the word cost no space.\n */\n@Component({\n selector: 'button[slTagRemove]',\n standalone: true,\n exportAs: 'slTagRemove',\n imports: [SlGlyph, SlIcon],\n template: `<ng-content\n ><span slIcon><svg slGlyph name=\"x\"></svg></span></ng-content\n ><span hidden [id]=\"tag.removeWordId\">{{ tag.t('remove') }}</span>`,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: {\n 'data-part': 'remove',\n 'data-part-remove': '',\n type: 'button',\n '[attr.aria-labelledby]': 'labelledBy()',\n '[attr.disabled]': \"tag.removeRefused() ? '' : null\",\n '(click)': 'onClick($event)',\n },\n})\nexport class SlTagRemove {\n protected readonly tag = inject(SlTag);\n\n protected readonly labelledBy = computed(() => `${this.tag.removeWordId} ${this.tag.labelId}`);\n\n protected onClick(event: MouseEvent) {\n /* The X is its own target. A handler the consumer put on the chip is about\n the chip, and a removal is not a press of it. */\n event.stopPropagation();\n this.tag.requestRemoval('remove', event);\n }\n}\n","import { createControllable } from '@slotted/core/state';\nimport type { ChangeReason, ChangeRequest } from '@slotted/core/state';\nimport {\n booleanAttribute,\n ChangeDetectionStrategy,\n Component,\n computed,\n effect,\n inject,\n input,\n output,\n signal,\n ViewEncapsulation,\n} from '@angular/core';\nimport type { Signal, WritableSignal } from '@angular/core';\nimport { SlGlyph, SlIcon } from '@slotted/angular/icon';\n\nimport { SlTag } from './tag';\nimport { TAG_BODY_TEMPLATE } from './tag-body';\n\n/**\n * A native button fires the same `click` for a pointer, for Space and for\n * Enter, which is why the family uses one — and why the reason a selection\n * moved has to be recovered from the event. A click synthesised by the\n * keyboard reports no detail; a real one reports the click count.\n */\nfunction activationReason(event: Event): ChangeReason {\n return event instanceof MouseEvent && event.detail === 0 ? 'keyboard' : 'pointer';\n}\n\n/**\n * The controlled and uncontrolled pair, decided by whether the consumer passed\n * a value. `@slotted/core/state` owns that decision so the two bindings cannot\n * disagree about who holds the value; the signal below is only where an\n * uncontrolled chip keeps its own.\n */\nclass SelectionState {\n private readonly own: WritableSignal<boolean | undefined> = signal(undefined);\n\n constructor(\n private readonly source: {\n selected: Signal<boolean | undefined>;\n defaultSelected: Signal<boolean>;\n emit: (request: ChangeRequest<boolean>) => void;\n },\n ) {}\n\n readonly value = () => this.source.selected() ?? this.own() ?? this.source.defaultSelected();\n\n request(event: Event) {\n const next = !this.value();\n const state = createControllable<boolean>({\n controlled: this.source.selected(),\n initial: this.value(),\n onRequest: (request) => this.source.emit(request),\n });\n\n if (state.request(next, activationReason(event), event)) this.own.set(next);\n }\n}\n\n/**\n * A chip that holds a selection: a filter that is on, a facet that is chosen.\n * Carbon calls it a selectable tag, Ant a checkable tag, Fluent a selected\n * tag — and none of them ships the uncontrolled half, so a filter bar cannot\n * be written without a piece of application state for every chip in it.\n *\n * It announces `aria-pressed` rather than `aria-selected`, which is a\n * deliberate departure with a cost: `aria-selected` is only valid inside a\n * `listbox`, a `grid` or a `tree`, and an `option` may not contain the remove\n * control this family puts beside the label. The family keeps `selected` as\n * its own word and writes `data-selected` for styling.\n *\n * The label never changes with the state — the APG's rule for a toggle — so\n * \"Aberto\" stays \"Aberto\" and the state is announced beside it.\n */\n@Component({\n selector: 'button[slTagToggle]',\n standalone: true,\n exportAs: 'slTagToggle',\n imports: [SlGlyph, SlIcon],\n /* The selection mark's check, which the sheet uncovers when the chip is on. */\n template: `<span aria-hidden=\"true\" data-part=\"indicator\" data-part-indicator=\"\"\n ><span slIcon><svg slGlyph name=\"check\"></svg></span></span\n >${TAG_BODY_TEMPLATE}`,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: {\n 'data-part': 'body',\n 'data-part-body': '',\n type: 'button',\n '[attr.aria-pressed]': 'isSelected()',\n '[attr.disabled]': \"tag.disabled() ? '' : null\",\n '(click)': 'onClick($event)',\n },\n})\nexport class SlTagToggle {\n /** Present means controlled, for the life of the component. */\n readonly selected = input<boolean | undefined, boolean | string | undefined>(undefined, {\n transform: (value) => (value === undefined ? undefined : booleanAttribute(value)),\n });\n readonly defaultSelected = input(false, { transform: booleanAttribute });\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\n * `[(selected)]` because a two-way binding has one slot and cannot carry any\n * of those, and a second output for the same transition would be the same\n * failure stated twice.\n */\n readonly selectedChange = output<ChangeRequest<boolean>>();\n\n protected readonly tag = inject(SlTag);\n\n private readonly state = new SelectionState({\n selected: this.selected,\n defaultSelected: this.defaultSelected,\n emit: (request) => this.selectedChange.emit(request),\n });\n\n protected readonly isSelected = computed(() => this.state.value());\n\n constructor() {\n /* The chip box paints the selection; the control owns it. */\n effect(() => this.tag.setSelected(this.isSelected()));\n }\n\n protected onClick(event: MouseEvent) {\n if (this.tag.disabled()) return;\n /* A consumer that calls preventDefault has refused the activation, and a\n refused activation moves nothing. */\n if (event.defaultPrevented) return;\n this.state.request(event);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;AAqBA,MAAM,QAAQ,GAAgB;AAC5B,IAAA,KAAK,EAAE,MAAM;AACb,IAAA,IAAI,EAAE,IAAI;AACV,IAAA,IAAI,EAAE,WAAW;AACjB,IAAA,OAAO,EAAE,MAAM;CAChB;MAEY,YAAY,GAAG,IAAI,cAAc,CAAc,sBAAsB,EAAE;AAClF,IAAA,UAAU,EAAE,MAAM;AAClB,IAAA,OAAO,EAAE,MAAM,QAAQ;AACxB,CAAA;AAED;;;;;;AAMG;AACG,SAAU,kBAAkB,CAAC,QAA8B,EAAA;IAC/D,OAAO;AACL,QAAA,OAAO,EAAE,YAAY;AACrB,QAAA,UAAU,EAAE,OAAoB;AAC9B,YAAA,KAAK,EAAE,QAAQ,CAAC,KAAK,IAAI,QAAQ,CAAC,KAAK;AACvC,YAAA,IAAI,EAAE,QAAQ,CAAC,IAAI,IAAI,QAAQ,CAAC,IAAI;AACpC,YAAA,IAAI,EAAE,QAAQ,CAAC,IAAI,IAAI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["../../tag/src/tag-defaults.ts","../../tag/src/tag-group.ts","../../tag/src/tag.ts","../../tag/src/tag-body.ts","../../tag/src/tag-content.ts","../../tag/src/tag-remove.ts","../../tag/src/tag-toggle.ts","../../tag/src/slotted-angular-tag.ts"],"sourcesContent":["import { inject, Injectable, InjectionToken } from '@angular/core';\n\n/** Which of the five semantic colors the tag speaks in. */\nexport type TagTone = 'accent' | 'secondary' | 'info' | 'success' | 'warning' | 'danger';\n\n/** How that color is painted. `soft` is the tinted chip a tag usually is. */\nexport type TagVariant = 'solid' | 'soft' | 'outline' | 'dashed';\n\nexport type TagSize = 'sm' | 'md' | 'lg';\n\nexport type TagShape = 'pill' | 'square';\n\nexport type TagOrientation = 'horizontal' | 'vertical';\n\nexport interface TagDefaults {\n shape: TagShape;\n size: TagSize;\n tone: TagTone;\n variant: TagVariant;\n}\n\nconst FALLBACK: TagDefaults = {\n shape: 'pill',\n size: 'md',\n tone: 'secondary',\n variant: 'soft',\n};\n\nexport const TAG_DEFAULTS = new InjectionToken<TagDefaults>('slotted tag defaults', {\n providedIn: 'root',\n factory: () => FALLBACK,\n});\n\n/**\n * An application decides once how its tags are painted and how large they are,\n * rather than repeating four inputs on every chip in a filter bar. A tag that\n * states any of them itself still wins: an explicit input is never overridden\n * by the token. The remove control's word comes from the language in force\n * (`provideSlotted`).\n */\nexport function provideTagDefaults(defaults: Partial<TagDefaults>) {\n return {\n provide: TAG_DEFAULTS,\n useFactory: (): TagDefaults => ({\n shape: defaults.shape ?? FALLBACK.shape,\n size: defaults.size ?? FALLBACK.size,\n tone: defaults.tone ?? FALLBACK.tone,\n variant: defaults.variant ?? FALLBACK.variant,\n }),\n };\n}\n\n/** What a tag renders as here, before it states anything of its own. */\nexport function injectTagDefaults(): TagDefaults {\n return inject(TAG_DEFAULTS);\n}\n\n/**\n * Application-scoped rather than module-scoped, for the reason the field\n * primitive records: a module-level counter produces colliding sequences when\n * two applications render in one server process, and the server and the client\n * sequences must match for hydration.\n */\n@Injectable({ providedIn: 'root' })\nexport class SlTagIdFactory {\n private count = 0;\n\n next() {\n this.count += 1;\n return `slotted-tag-${this.count}`;\n }\n}\n","import { createRemovalFocus, createRovingTabindex } from '@slotted/core/focus';\nimport type { RemovalFocusHandle, RovingTabindexHandle } from '@slotted/core/focus';\nimport {\n afterNextRender,\n booleanAttribute,\n computed,\n DestroyRef,\n Directive,\n ElementRef,\n HostAttributeToken,\n inject,\n input,\n} from '@angular/core';\n\nimport type { TagOrientation } from './tag-defaults';\n\n/**\n * Every control the keyboard moves between, in the order the DOM holds them: a\n * chip's own control, then its remove control, then the next chip's. Read\n * literally from the APG Toolbar pattern, which needs no second axis to reach\n * a control inside an item.\n */\nconst CONTROL_SELECTOR = '[data-part=\"body\"]:is(a, button), [data-part=\"remove\"]';\n\n/**\n * The run of tags, and the keyboard that belongs to it.\n *\n * It is a toolbar: the APG pattern for \"a container for grouping a set of\n * controls, such as buttons\". One tab stop, arrow keys between the controls\n * inside it, `Home` and `End` at the ends. React Aria and Angular Material\n * reach for the Grid pattern instead, which buys a second axis at the price of\n * two wrapper elements per chip and a `gridcell` role over every button; a\n * single wrapping run does not need the second axis.\n *\n * Writing `role=\"list\"` on the element turns the keyboard off and makes every\n * chip a `listitem`. A list is a structure rather than a widget, its items are\n * not controls to move between, and a screen reader announces its length.\n */\n@Directive({\n selector: '[slTagGroup]',\n standalone: true,\n exportAs: 'slTagGroup',\n host: {\n 'data-ui': 'tag',\n 'data-ui-tag': '',\n 'data-part': 'group',\n 'data-part-group': '',\n tabindex: '-1',\n '[attr.data-orientation]': 'orientation()',\n '[attr.role]': 'role()',\n '[attr.aria-orientation]': 'ariaOrientation()',\n },\n})\nexport class SlTagGroup {\n /** Which way the run reads. `vertical` also writes `aria-orientation`. */\n readonly orientation = input<TagOrientation>('horizontal');\n /** Whether the arrow keys wrap past the ends of the run. */\n readonly loop = input(true, { transform: booleanAttribute });\n\n private readonly element = inject(ElementRef<HTMLElement>).nativeElement;\n private readonly writtenRole = inject(new HostAttributeToken('role'), { optional: true });\n\n protected readonly role = computed(() => this.writtenRole ?? 'toolbar');\n private readonly roving = computed(() => this.role() === 'toolbar');\n protected readonly ariaOrientation = computed(() =>\n /* `horizontal` is the toolbar role's own default, so only the other one is\n written; a list has no orientation to state. */\n this.roving() && this.orientation() === 'vertical' ? 'vertical' : null,\n );\n\n /** What a chip inside this run calls itself. A toolbar's items are its controls. */\n readonly itemRole = computed(() => (this.role() === 'list' ? 'listitem' : undefined));\n\n constructor() {\n const destroyRef = inject(DestroyRef);\n\n afterNextRender(() => {\n if (!this.roving()) return;\n\n const tabindex: RovingTabindexHandle = createRovingTabindex(this.element, {\n itemSelector: CONTROL_SELECTOR,\n loop: this.loop(),\n orientation: () => this.orientation(),\n });\n /**\n * Where the keyboard goes when the chip it was on is taken away. The\n * container is the last resort, which is why it holds `tabindex=\"-1\"`: a\n * group emptied by its final removal keeps focus rather than returning\n * it to the top of the page.\n */\n const removal: RemovalFocusHandle = createRemovalFocus(this.element, {\n itemSelector: CONTROL_SELECTOR,\n });\n /**\n * The tab stop has to survive a chip arriving or leaving, and neither\n * binding can be told by the other's change detection. The DOM is the\n * one thing both of them agree on.\n */\n const observer = new MutationObserver(() => tabindex.refresh());\n observer.observe(this.element, { childList: true, subtree: true });\n\n destroyRef.onDestroy(() => {\n observer.disconnect();\n removal.destroy();\n tabindex.destroy();\n });\n });\n }\n}\n","import { tagMessages, type PartialMessages, type TagMessages } from '@slotted/core/i18n';\nimport type { ChangeReason } from '@slotted/core/state';\nimport {\n booleanAttribute,\n ChangeDetectionStrategy,\n Component,\n computed,\n HostAttributeToken,\n inject,\n input,\n output,\n signal,\n ViewEncapsulation,\n} from '@angular/core';\nimport { injectMessages } from '@slotted/angular/i18n';\n\nimport { injectTagDefaults, SlTagIdFactory } from './tag-defaults';\nimport type { TagShape, TagSize, TagTone, TagVariant } from './tag-defaults';\nimport { SlTagGroup } from './tag-group';\n\nexport type { TagOrientation, TagShape, TagSize, TagTone, TagVariant } from './tag-defaults';\n\n/**\n * How the removal was asked for. `remove` is the control at the end of the\n * chip; `keyboard` is `Backspace` or `Delete` pressed on it.\n */\nexport type TagRemoveReason = Extract<ChangeReason, 'remove' | 'keyboard'>;\n\n/**\n * A request to be taken out of the collection that holds the tag, and never a\n * value: the tag does not own whether it exists. Refusing it is what stops the\n * group from moving focus, which is the one thing the family would otherwise\n * commit on its own.\n */\nexport interface TagRemoveRequest {\n readonly reason: TagRemoveReason;\n readonly source: Event;\n readonly cancelled: boolean;\n cancel(): void;\n}\n\n/**\n * The chip box: an entity, a filter or a compact value. It is not metadata —\n * that is `badge`, and the two share this tone and this type scale on purpose.\n *\n * **The root is never the interactive element.** A `button` cannot contain a\n * `button` and an `a` cannot contain either, so a chip that both acts and\n * removes has to put its two controls side by side. The chip is written on the\n * consumer's own `span`; what the chip *is* is decided by the element under\n * `slTagBody`: a `span` does nothing, a `button` runs a command, an `a`\n * navigates, and `slTagToggle` holds a selection. The element is the member,\n * which is what keeps `routerLink`, `type` and every native attribute on the\n * element that owns them.\n */\n@Component({\n selector: '[slTag]',\n standalone: true,\n exportAs: 'slTag',\n template: '<ng-content></ng-content>',\n styleUrl: '../../../styles/src/tag/tag.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: {\n 'data-ui': 'tag',\n 'data-ui-tag': '',\n 'data-part': 'root',\n 'data-part-root': '',\n '[attr.data-tone]': 'resolvedTone()',\n '[attr.data-variant]': 'resolvedVariant()',\n '[attr.data-size]': 'resolvedSize()',\n '[attr.data-shape]': 'resolvedShape()',\n '[attr.data-disabled]': \"disabled() ? '' : null\",\n '[attr.data-selected]': \"selected() ? '' : null\",\n '[attr.role]': 'role()',\n '(keydown)': 'onKeydown($event)',\n },\n})\nexport class SlTag {\n /** Defaults to the provider, then to `secondary`. */\n readonly tone = input<TagTone | undefined>(undefined);\n /** Defaults to the provider, then to `soft`. */\n readonly variant = input<TagVariant | undefined>(undefined);\n /** Defaults to the provider, then to `md`. */\n readonly size = input<TagSize | undefined>(undefined);\n /** Defaults to the provider, then to `pill`. */\n readonly shape = input<TagShape | undefined>(undefined);\n /** Refuses every interaction the tag offers, including its removal. */\n readonly disabled = input(false, { transform: booleanAttribute });\n /**\n * Whether the chip can be removed at all. React reads the same fact from\n * whether a handler was passed; Angular cannot see whether an output was\n * subscribed, so the opt-in is stated — the asymmetry `button` recorded for\n * its own toggle.\n */\n readonly removable = input(false, { transform: booleanAttribute });\n /** Refuses the removal while the rest of the tag stays operable. */\n readonly removeDisabled = input(false, { transform: booleanAttribute });\n /**\n * Words laid over the catalog of the language in force, key by key: `remove`\n * is the word the remove control announces before the tag's own label, so it\n * reads \"Remove Design\" rather than \"Remove\".\n */\n readonly messages = input<PartialMessages<TagMessages> | undefined>(undefined);\n\n /** One output for one transition, carrying the reason, the event and `cancel()`. */\n readonly remove = output<TagRemoveRequest>();\n\n private readonly defaults = injectTagDefaults();\n private readonly group = inject(SlTagGroup, { optional: true, skipSelf: true });\n /** An explicit role the consumer wrote is never replaced by an inferred one. */\n private readonly writtenRole = inject(new HostAttributeToken('role'), { optional: true });\n\n /**\n * One identifier for the chip, from which the label's and the hidden word's\n * are derived. Deriving beats registering: the remove control needs the\n * label's id before the body has had a chance to announce one.\n */\n readonly id = inject(SlTagIdFactory).next();\n readonly labelId = `${this.id}-label`;\n readonly removeWordId = `${this.id}-remove`;\n\n /** Set by `slTagToggle`, which is the one member that holds a selection. */\n private readonly selectedState = signal(false);\n\n protected readonly resolvedTone = computed(() => this.tone() ?? this.defaults.tone);\n protected readonly resolvedVariant = computed(() => this.variant() ?? this.defaults.variant);\n protected readonly resolvedSize = computed(() => this.size() ?? this.defaults.size);\n protected readonly resolvedShape = computed(() => this.shape() ?? this.defaults.shape);\n protected readonly role = computed(() => this.writtenRole ?? this.group?.itemRole() ?? null);\n\n readonly selected = computed(() => this.selectedState());\n /** The family's words in the language in force, with this tag's `messages` laid over them. */\n readonly t = injectMessages(tagMessages, this.messages);\n readonly removeRefused = computed(() => this.disabled() || this.removeDisabled());\n\n /** Called by the toggle, which owns the value and only reports it here. */\n setSelected(selected: boolean) {\n this.selectedState.set(selected);\n }\n\n /**\n * The request the remove control and the keyboard both make. Nothing is\n * committed here: the tag does not own whether it exists, and a consumer\n * that refuses the request leaves the chip and the keyboard where they were.\n */\n requestRemoval(reason: TagRemoveReason, source: Event) {\n if (!this.removable() || this.removeRefused()) return;\n\n let cancelled = false;\n this.remove.emit({\n reason,\n source,\n get cancelled() {\n return cancelled;\n },\n cancel() {\n cancelled = true;\n },\n });\n }\n\n /**\n * `Backspace` and `Delete` on a removable chip, which is the shortcut MUI,\n * Primer, React Aria and Angular Material all ship. It is bound to the chip\n * box rather than to either control, so it answers wherever focus is inside\n * the chip, and a consumer's own handler runs first and can refuse it by\n * calling `preventDefault`.\n *\n * A held key repeats, and a repeat would remove the chip focus has just\n * landed on. The default is prevented because `Backspace` still navigates\n * back in some browsers when nothing is being edited.\n */\n protected onKeydown(event: KeyboardEvent) {\n if (event.repeat || event.defaultPrevented) return;\n if (event.key !== 'Backspace' && event.key !== 'Delete') return;\n if (!this.removable() || this.removeRefused()) return;\n\n event.preventDefault();\n this.requestRemoval('keyboard', event);\n }\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n computed,\n DestroyRef,\n effect,\n ElementRef,\n inject,\n Renderer2,\n ViewEncapsulation,\n} from '@angular/core';\n\nimport { SlTag } from './tag';\n\n/**\n * The template every content box shares. The words get a box of their own — it\n * is what `text-box` needs to trim the line to the cap and the baseline, what\n * `text-overflow` needs to clip a long value, and what `aria-labelledby` on\n * the remove control points at so it announces the value rather than the word\n * \"Remove\" on its own.\n *\n * Every space between these tags is load-bearing: Angular collapses a newline\n * between two nodes into a space, and a space beside the label box would put a\n * word gap inside the chip that the family's own `gap` is already drawing.\n */\nexport const TAG_BODY_TEMPLATE =\n '<ng-content select=\"[slTagStart]\"></ng-content>' +\n '<span data-part=\"label\" data-part-label=\"\" [id]=\"tag.labelId\"><ng-content></ng-content></span>' +\n '<ng-content select=\"[slTagEnd]\"></ng-content>';\n\n/**\n * The content box, and the primary target when there is one. It is written on\n * the element the chip *is*: a `span` that does nothing, a `button` that runs\n * a command, an `a` that navigates. The element is the member, which is what\n * keeps `routerLink`, `type`, `download` and every native listener on the\n * element that owns them.\n *\n * `disabled` belongs to the chip rather than to this element, because a chip\n * is unavailable as a whole. What that means depends on the element, and the\n * platform only offers one of the two forms per element.\n */\n@Component({\n selector: '[slTagBody]',\n standalone: true,\n exportAs: 'slTagBody',\n template: TAG_BODY_TEMPLATE,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: {\n 'data-part': 'body',\n 'data-part-body': '',\n '[attr.disabled]': 'nativelyDisabled()',\n '[attr.aria-disabled]': 'ariaDisabled()',\n '[attr.role]': 'anchorRole()',\n },\n})\nexport class SlTagBody {\n protected readonly tag = inject(SlTag);\n\n private readonly element = inject(ElementRef<HTMLElement>).nativeElement;\n private readonly renderer = inject(Renderer2);\n private readonly isButton = this.element.tagName === 'BUTTON';\n private readonly isAnchor = this.element.tagName === 'A';\n\n protected readonly nativelyDisabled = computed(() =>\n this.isButton && this.tag.disabled() ? '' : null,\n );\n protected readonly ariaDisabled = computed(() =>\n this.isAnchor && this.tag.disabled() ? 'true' : null,\n );\n /** An anchor without a destination is no longer a link, so it says it is one. */\n protected readonly anchorRole = computed(() =>\n this.isAnchor && this.tag.disabled() ? 'link' : null,\n );\n\n /**\n * A disabled anchor keeps its place in the tab sequence and loses its\n * destination, which is the line `link` draws for the same case: an anchor\n * without an `href` would drop out of the tab sequence and take its own\n * explanation with it. The attribute is withheld rather than overwritten, so\n * it is given back the moment the chip becomes available again.\n */\n private withheldHref: string | null = null;\n\n constructor() {\n if (this.isAnchor) {\n effect(() => {\n if (this.tag.disabled()) {\n this.withheldHref ??= this.element.getAttribute('href');\n this.renderer.removeAttribute(this.element, 'href');\n this.renderer.setAttribute(this.element, 'tabindex', '0');\n return;\n }\n if (this.withheldHref !== null) {\n this.renderer.setAttribute(this.element, 'href', this.withheldHref);\n this.withheldHref = null;\n }\n });\n }\n\n /**\n * The capture phase, because a control that is unavailable must refuse the\n * activation before any listener the consumer attached to it can run. A\n * natively disabled button needs none of this; an anchor and a `span` with\n * a listener on it do.\n */\n if (!this.isButton) {\n const destroyRef = inject(DestroyRef);\n const refuse = (event: Event) => {\n if (!this.tag.disabled()) return;\n event.preventDefault();\n event.stopPropagation();\n event.stopImmediatePropagation();\n };\n for (const type of ['click', 'auxclick', 'keydown']) {\n this.element.addEventListener(type, refuse, { capture: true });\n destroyRef.onDestroy(() =>\n this.element.removeEventListener(type, refuse, { capture: true }),\n );\n }\n }\n }\n}\n","import { Directive } from '@angular/core';\n\n/**\n * A glyph or an avatar before the words. The artwork is the consumer's, and\n * the part gives it a box that is sized and centerd; the directive is written\n * on the element the page already has, so nothing is wrapped.\n */\n@Directive({\n selector: '[slTagStart]',\n standalone: true,\n exportAs: 'slTagStart',\n host: { 'data-part': 'start', 'data-part-start': '' },\n})\nexport class SlTagStart {}\n\n/** A glyph after the words. */\n@Directive({\n selector: '[slTagEnd]',\n standalone: true,\n exportAs: 'slTagEnd',\n host: { 'data-part': 'end', 'data-part-end': '' },\n})\nexport class SlTagEnd {}\n","import {\n ChangeDetectionStrategy,\n Component,\n computed,\n inject,\n ViewEncapsulation,\n} from '@angular/core';\nimport { SlGlyph, SlIcon } from '@slotted/angular/icon';\n\nimport { SlTag } from './tag';\n\n/**\n * The control at the end of the chip, on the consumer's own button so its\n * listeners and its attributes stay theirs. The glyph is the family's `x`,\n * drawn as the `Glyph` element unless the consumer wrote content of their own:\n * a character is never an icon.\n *\n * Its name is composed rather than repeated. The hidden word and the tag's own\n * label are joined by `aria-labelledby`, so it announces \"Remove Design\"\n * without the consumer writing the value a second time — the string four of\n * the surveyed implementations make the consumer keep in step with the value\n * by hand. Text referenced by `aria-labelledby` counts even when the element\n * holding it is hidden, which is what lets the word cost no space.\n */\n@Component({\n selector: 'button[slTagRemove]',\n standalone: true,\n exportAs: 'slTagRemove',\n imports: [SlGlyph, SlIcon],\n template: `<ng-content\n ><span slIcon><svg slGlyph name=\"x\"></svg></span></ng-content\n ><span hidden [id]=\"tag.removeWordId\">{{ tag.t('remove') }}</span>`,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: {\n 'data-part': 'remove',\n 'data-part-remove': '',\n type: 'button',\n '[attr.aria-labelledby]': 'labelledBy()',\n '[attr.disabled]': \"tag.removeRefused() ? '' : null\",\n '(click)': 'onClick($event)',\n },\n})\nexport class SlTagRemove {\n protected readonly tag = inject(SlTag);\n\n protected readonly labelledBy = computed(() => `${this.tag.removeWordId} ${this.tag.labelId}`);\n\n protected onClick(event: MouseEvent) {\n /* The X is its own target. A handler the consumer put on the chip is about\n the chip, and a removal is not a press of it. */\n event.stopPropagation();\n this.tag.requestRemoval('remove', event);\n }\n}\n","import { createControllable } from '@slotted/core/state';\nimport type { ChangeReason, ChangeRequest } from '@slotted/core/state';\nimport {\n booleanAttribute,\n ChangeDetectionStrategy,\n Component,\n computed,\n effect,\n inject,\n input,\n output,\n signal,\n ViewEncapsulation,\n} from '@angular/core';\nimport type { Signal, WritableSignal } from '@angular/core';\nimport { SlGlyph, SlIcon } from '@slotted/angular/icon';\n\nimport { SlTag } from './tag';\nimport { TAG_BODY_TEMPLATE } from './tag-body';\n\n/**\n * A native button fires the same `click` for a pointer, for Space and for\n * Enter, which is why the family uses one — and why the reason a selection\n * moved has to be recovered from the event. A click synthesised by the\n * keyboard reports no detail; a real one reports the click count.\n */\nfunction activationReason(event: Event): ChangeReason {\n return event instanceof MouseEvent && event.detail === 0 ? 'keyboard' : 'pointer';\n}\n\n/**\n * The controlled and uncontrolled pair, decided by whether the consumer passed\n * a value. `@slotted/core/state` owns that decision so the two bindings cannot\n * disagree about who holds the value; the signal below is only where an\n * uncontrolled chip keeps its own.\n */\nclass SelectionState {\n private readonly own: WritableSignal<boolean | undefined> = signal(undefined);\n\n constructor(\n private readonly source: {\n selected: Signal<boolean | undefined>;\n defaultSelected: Signal<boolean>;\n emit: (request: ChangeRequest<boolean>) => void;\n },\n ) {}\n\n readonly value = () => this.source.selected() ?? this.own() ?? this.source.defaultSelected();\n\n request(event: Event) {\n const next = !this.value();\n const state = createControllable<boolean>({\n controlled: this.source.selected(),\n initial: this.value(),\n onRequest: (request) => this.source.emit(request),\n });\n\n if (state.request(next, activationReason(event), event)) this.own.set(next);\n }\n}\n\n/**\n * A chip that holds a selection: a filter that is on, a facet that is chosen.\n * Carbon calls it a selectable tag, Ant a checkable tag, Fluent a selected\n * tag — and none of them ships the uncontrolled half, so a filter bar cannot\n * be written without a piece of application state for every chip in it.\n *\n * It announces `aria-pressed` rather than `aria-selected`, which is a\n * deliberate departure with a cost: `aria-selected` is only valid inside a\n * `listbox`, a `grid` or a `tree`, and an `option` may not contain the remove\n * control this family puts beside the label. The family keeps `selected` as\n * its own word and writes `data-selected` for styling.\n *\n * The label never changes with the state — the APG's rule for a toggle — so\n * \"Aberto\" stays \"Aberto\" and the state is announced beside it.\n */\n@Component({\n selector: 'button[slTagToggle]',\n standalone: true,\n exportAs: 'slTagToggle',\n imports: [SlGlyph, SlIcon],\n /* The selection mark's check, which the sheet uncovers when the chip is on. */\n template: `<span aria-hidden=\"true\" data-part=\"indicator\" data-part-indicator=\"\"\n ><span slIcon><svg slGlyph name=\"check\"></svg></span></span\n >${TAG_BODY_TEMPLATE}`,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: {\n 'data-part': 'body',\n 'data-part-body': '',\n type: 'button',\n '[attr.aria-pressed]': 'isSelected()',\n '[attr.disabled]': \"tag.disabled() ? '' : null\",\n '(click)': 'onClick($event)',\n },\n})\nexport class SlTagToggle {\n /** Present means controlled, for the life of the component. */\n readonly selected = input<boolean | undefined, boolean | string | undefined>(undefined, {\n transform: (value) => (value === undefined ? undefined : booleanAttribute(value)),\n });\n readonly defaultSelected = input(false, { transform: booleanAttribute });\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\n * `[(selected)]` because a two-way binding has one slot and cannot carry any\n * of those, and a second output for the same transition would be the same\n * failure stated twice.\n */\n readonly selectedChange = output<ChangeRequest<boolean>>();\n\n protected readonly tag = inject(SlTag);\n\n private readonly state = new SelectionState({\n selected: this.selected,\n defaultSelected: this.defaultSelected,\n emit: (request) => this.selectedChange.emit(request),\n });\n\n protected readonly isSelected = computed(() => this.state.value());\n\n constructor() {\n /* The chip box paints the selection; the control owns it. */\n effect(() => this.tag.setSelected(this.isSelected()));\n }\n\n protected onClick(event: MouseEvent) {\n if (this.tag.disabled()) return;\n /* A consumer that calls preventDefault has refused the activation, and a\n refused activation moves nothing. */\n if (event.defaultPrevented) return;\n this.state.request(event);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;AAqBA,MAAM,QAAQ,GAAgB;AAC5B,IAAA,KAAK,EAAE,MAAM;AACb,IAAA,IAAI,EAAE,IAAI;AACV,IAAA,IAAI,EAAE,WAAW;AACjB,IAAA,OAAO,EAAE,MAAM;CAChB;MAEY,YAAY,GAAG,IAAI,cAAc,CAAc,sBAAsB,EAAE;AAClF,IAAA,UAAU,EAAE,MAAM;AAClB,IAAA,OAAO,EAAE,MAAM,QAAQ;AACxB,CAAA;AAED;;;;;;AAMG;AACG,SAAU,kBAAkB,CAAC,QAA8B,EAAA;IAC/D,OAAO;AACL,QAAA,OAAO,EAAE,YAAY;AACrB,QAAA,UAAU,EAAE,OAAoB;AAC9B,YAAA,KAAK,EAAE,QAAQ,CAAC,KAAK,IAAI,QAAQ,CAAC,KAAK;AACvC,YAAA,IAAI,EAAE,QAAQ,CAAC,IAAI,IAAI,QAAQ,CAAC,IAAI;AACpC,YAAA,IAAI,EAAE,QAAQ,CAAC,IAAI,IAAI,QAAQ,CAAC,IAAI;AACpC,YAAA,OAAO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sequence
551
- * `@slotted/core/tags` states — normalise, judge, deduplicate, cap — and each
551
+ * `@slotted/core/tags` states — normalize, judge, deduplicate, cap — and each
552
552
  * refusal is reported under its cause rather than dropped.
553
553
  */
554
554
  admit(candidates, source, replacing) {