@slotted/angular 0.0.0-stage → 0.1.0-beta.1

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 (793) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +51 -2
  3. package/docs/AGENTS.snippet.md +10 -0
  4. package/docs/accordion.json +345 -0
  5. package/docs/accordion.md +207 -0
  6. package/docs/action-bar.json +421 -0
  7. package/docs/action-bar.md +364 -0
  8. package/docs/action-sheet.json +210 -0
  9. package/docs/action-sheet.md +19 -0
  10. package/docs/alert.json +407 -0
  11. package/docs/alert.md +239 -0
  12. package/docs/app-shell.examples.md +349 -0
  13. package/docs/app-shell.json +835 -0
  14. package/docs/app-shell.md +214 -0
  15. package/docs/aspect-ratio.json +159 -0
  16. package/docs/aspect-ratio.md +134 -0
  17. package/docs/attachment.json +486 -0
  18. package/docs/attachment.md +253 -0
  19. package/docs/avatar-group.json +208 -0
  20. package/docs/avatar-group.md +130 -0
  21. package/docs/avatar.json +342 -0
  22. package/docs/avatar.md +142 -0
  23. package/docs/badge.json +334 -0
  24. package/docs/badge.md +138 -0
  25. package/docs/breadcrumb.json +368 -0
  26. package/docs/breadcrumb.md +237 -0
  27. package/docs/button-group.json +158 -0
  28. package/docs/button-group.md +72 -0
  29. package/docs/button.examples.md +621 -0
  30. package/docs/button.json +977 -0
  31. package/docs/button.md +200 -0
  32. package/docs/calendar.json +592 -0
  33. package/docs/calendar.md +242 -0
  34. package/docs/card.json +283 -0
  35. package/docs/card.md +130 -0
  36. package/docs/carousel.json +560 -0
  37. package/docs/carousel.md +357 -0
  38. package/docs/cascader.json +933 -0
  39. package/docs/cascader.md +379 -0
  40. package/docs/chart.examples.md +582 -0
  41. package/docs/chart.json +1359 -0
  42. package/docs/chart.md +187 -0
  43. package/docs/checkbox-group.examples.md +612 -0
  44. package/docs/checkbox-group.json +395 -0
  45. package/docs/checkbox-group.md +106 -0
  46. package/docs/checkbox.examples.md +546 -0
  47. package/docs/checkbox.json +506 -0
  48. package/docs/checkbox.md +104 -0
  49. package/docs/code-block.json +616 -0
  50. package/docs/code-block.md +303 -0
  51. package/docs/collapsible.json +456 -0
  52. package/docs/collapsible.md +261 -0
  53. package/docs/color-picker.json +523 -0
  54. package/docs/color-picker.md +201 -0
  55. package/docs/column-manager.json +486 -0
  56. package/docs/column-manager.md +277 -0
  57. package/docs/combobox.examples.md +1732 -0
  58. package/docs/combobox.json +1250 -0
  59. package/docs/combobox.md +209 -0
  60. package/docs/command-palette.json +800 -0
  61. package/docs/command-palette.md +419 -0
  62. package/docs/container.json +156 -0
  63. package/docs/container.md +92 -0
  64. package/docs/context-menu.json +231 -0
  65. package/docs/context-menu.md +176 -0
  66. package/docs/currency-field.examples.md +321 -0
  67. package/docs/currency-field.json +649 -0
  68. package/docs/currency-field.md +128 -0
  69. package/docs/dashboard-grid.json +680 -0
  70. package/docs/dashboard-grid.md +265 -0
  71. package/docs/data-grid.examples.md +3064 -0
  72. package/docs/data-grid.json +1577 -0
  73. package/docs/data-grid.md +237 -0
  74. package/docs/data-grid.props.md +81 -0
  75. package/docs/data-list.json +685 -0
  76. package/docs/data-list.md +327 -0
  77. package/docs/date-field.json +490 -0
  78. package/docs/date-field.md +235 -0
  79. package/docs/date-picker.examples.md +1226 -0
  80. package/docs/date-picker.json +696 -0
  81. package/docs/date-picker.md +121 -0
  82. package/docs/date-range-picker.examples.md +1300 -0
  83. package/docs/date-range-picker.json +903 -0
  84. package/docs/date-range-picker.md +142 -0
  85. package/docs/datetime-field.json +665 -0
  86. package/docs/datetime-field.md +337 -0
  87. package/docs/datetime-picker.examples.md +1269 -0
  88. package/docs/datetime-picker.json +928 -0
  89. package/docs/datetime-picker.md +150 -0
  90. package/docs/datetime-range-picker.examples.md +225 -0
  91. package/docs/datetime-range-picker.json +1015 -0
  92. package/docs/datetime-range-picker.md +162 -0
  93. package/docs/description-list.json +471 -0
  94. package/docs/description-list.md +268 -0
  95. package/docs/detail-panel.json +530 -0
  96. package/docs/detail-panel.md +361 -0
  97. package/docs/dialog.examples.md +2467 -0
  98. package/docs/dialog.json +1141 -0
  99. package/docs/dialog.md +217 -0
  100. package/docs/dialog.props.md +63 -0
  101. package/docs/divider.json +148 -0
  102. package/docs/divider.md +83 -0
  103. package/docs/drawer.examples.md +1929 -0
  104. package/docs/drawer.json +753 -0
  105. package/docs/drawer.md +199 -0
  106. package/docs/entity-picker.json +946 -0
  107. package/docs/entity-picker.md +365 -0
  108. package/docs/event-calendar.examples.md +308 -0
  109. package/docs/event-calendar.json +1202 -0
  110. package/docs/event-calendar.md +201 -0
  111. package/docs/field-group.json +333 -0
  112. package/docs/field-group.md +181 -0
  113. package/docs/field.examples.md +676 -0
  114. package/docs/field.json +528 -0
  115. package/docs/field.md +127 -0
  116. package/docs/filter-bar.json +817 -0
  117. package/docs/filter-bar.md +380 -0
  118. package/docs/form.json +378 -0
  119. package/docs/form.md +235 -0
  120. package/docs/fullscreen.json +395 -0
  121. package/docs/fullscreen.md +225 -0
  122. package/docs/grid.json +176 -0
  123. package/docs/grid.md +74 -0
  124. package/docs/highlight.json +279 -0
  125. package/docs/highlight.md +210 -0
  126. package/docs/hover-card.json +254 -0
  127. package/docs/hover-card.md +213 -0
  128. package/docs/icon.json +173 -0
  129. package/docs/icon.md +101 -0
  130. package/docs/image.json +476 -0
  131. package/docs/image.md +254 -0
  132. package/docs/import-export-center.json +836 -0
  133. package/docs/import-export-center.md +345 -0
  134. package/docs/index.md +141 -0
  135. package/docs/inline-message.json +312 -0
  136. package/docs/inline-message.md +191 -0
  137. package/docs/inline.json +149 -0
  138. package/docs/inline.md +72 -0
  139. package/docs/kbd.json +350 -0
  140. package/docs/kbd.md +210 -0
  141. package/docs/link.json +264 -0
  142. package/docs/link.md +167 -0
  143. package/docs/list-item.json +463 -0
  144. package/docs/list-item.md +236 -0
  145. package/docs/list.json +321 -0
  146. package/docs/list.md +185 -0
  147. package/docs/listbox.json +807 -0
  148. package/docs/listbox.md +413 -0
  149. package/docs/loading-overlay.json +440 -0
  150. package/docs/loading-overlay.md +248 -0
  151. package/docs/markdown.json +461 -0
  152. package/docs/markdown.md +266 -0
  153. package/docs/menu.examples.md +1651 -0
  154. package/docs/menu.json +922 -0
  155. package/docs/menu.md +155 -0
  156. package/docs/menubar.json +292 -0
  157. package/docs/menubar.md +173 -0
  158. package/docs/message-scroller.json +401 -0
  159. package/docs/message-scroller.md +212 -0
  160. package/docs/message.json +862 -0
  161. package/docs/message.md +473 -0
  162. package/docs/multi-select.examples.md +1922 -0
  163. package/docs/multi-select.json +1314 -0
  164. package/docs/multi-select.md +213 -0
  165. package/docs/navigation-menu.json +529 -0
  166. package/docs/navigation-menu.md +329 -0
  167. package/docs/notification-center.json +664 -0
  168. package/docs/notification-center.md +372 -0
  169. package/docs/number-field.examples.md +1078 -0
  170. package/docs/number-field.json +668 -0
  171. package/docs/number-field.md +137 -0
  172. package/docs/otp-input.json +479 -0
  173. package/docs/otp-input.md +291 -0
  174. package/docs/page-header.json +574 -0
  175. package/docs/page-header.md +338 -0
  176. package/docs/page.json +332 -0
  177. package/docs/page.md +184 -0
  178. package/docs/pagination.json +434 -0
  179. package/docs/pagination.md +238 -0
  180. package/docs/popover.examples.md +1235 -0
  181. package/docs/popover.json +656 -0
  182. package/docs/popover.md +199 -0
  183. package/docs/progress-indicator.json +501 -0
  184. package/docs/progress-indicator.md +329 -0
  185. package/docs/prompt-composer.json +498 -0
  186. package/docs/prompt-composer.md +278 -0
  187. package/docs/prose.json +357 -0
  188. package/docs/prose.md +226 -0
  189. package/docs/radio-group.examples.md +626 -0
  190. package/docs/radio-group.json +541 -0
  191. package/docs/radio-group.md +112 -0
  192. package/docs/rating.json +1053 -0
  193. package/docs/rating.md +435 -0
  194. package/docs/result-state.json +376 -0
  195. package/docs/result-state.md +286 -0
  196. package/docs/saved-views.json +384 -0
  197. package/docs/saved-views.md +242 -0
  198. package/docs/scroll-area.json +120 -0
  199. package/docs/scroll-area.md +8 -0
  200. package/docs/section.json +344 -0
  201. package/docs/section.md +208 -0
  202. package/docs/segmented-control.json +429 -0
  203. package/docs/segmented-control.md +240 -0
  204. package/docs/select.examples.md +1214 -0
  205. package/docs/select.json +1147 -0
  206. package/docs/select.md +199 -0
  207. package/docs/side-navigation.json +632 -0
  208. package/docs/side-navigation.md +430 -0
  209. package/docs/skeleton.json +358 -0
  210. package/docs/skeleton.md +223 -0
  211. package/docs/slider.json +522 -0
  212. package/docs/slider.md +261 -0
  213. package/docs/sparkline.json +426 -0
  214. package/docs/sparkline.md +206 -0
  215. package/docs/split-button.json +361 -0
  216. package/docs/split-button.md +275 -0
  217. package/docs/splitter.json +142 -0
  218. package/docs/splitter.md +14 -0
  219. package/docs/stack.json +135 -0
  220. package/docs/stack.md +74 -0
  221. package/docs/stat-card.json +529 -0
  222. package/docs/stat-card.md +270 -0
  223. package/docs/status-indicator.json +314 -0
  224. package/docs/status-indicator.md +197 -0
  225. package/docs/stepper.json +451 -0
  226. package/docs/stepper.md +250 -0
  227. package/docs/switch.json +451 -0
  228. package/docs/switch.md +508 -0
  229. package/docs/table-of-contents.json +553 -0
  230. package/docs/table-of-contents.md +289 -0
  231. package/docs/table.examples.md +1981 -0
  232. package/docs/table.json +1059 -0
  233. package/docs/table.md +290 -0
  234. package/docs/tabs.examples.md +1370 -0
  235. package/docs/tabs.json +661 -0
  236. package/docs/tabs.md +211 -0
  237. package/docs/tag.json +813 -0
  238. package/docs/tag.md +241 -0
  239. package/docs/tags-input.json +771 -0
  240. package/docs/tags-input.md +361 -0
  241. package/docs/text-field.examples.md +821 -0
  242. package/docs/text-field.json +604 -0
  243. package/docs/text-field.md +125 -0
  244. package/docs/textarea.examples.md +612 -0
  245. package/docs/textarea.json +440 -0
  246. package/docs/textarea.md +98 -0
  247. package/docs/time-field.json +584 -0
  248. package/docs/time-field.md +291 -0
  249. package/docs/time-picker.json +679 -0
  250. package/docs/time-picker.md +315 -0
  251. package/docs/time-range-picker.examples.md +191 -0
  252. package/docs/time-range-picker.json +924 -0
  253. package/docs/time-range-picker.md +152 -0
  254. package/docs/timeline.json +839 -0
  255. package/docs/timeline.md +401 -0
  256. package/docs/toast.json +642 -0
  257. package/docs/toast.md +311 -0
  258. package/docs/toggle-group.json +417 -0
  259. package/docs/toggle-group.md +255 -0
  260. package/docs/toggle.json +326 -0
  261. package/docs/toggle.md +222 -0
  262. package/docs/toolbar.json +380 -0
  263. package/docs/toolbar.md +240 -0
  264. package/docs/tooltip.examples.md +664 -0
  265. package/docs/tooltip.json +604 -0
  266. package/docs/tooltip.md +146 -0
  267. package/docs/top-navigation.examples.md +287 -0
  268. package/docs/top-navigation.json +648 -0
  269. package/docs/top-navigation.md +138 -0
  270. package/docs/tour.json +759 -0
  271. package/docs/tour.md +337 -0
  272. package/docs/transfer.json +746 -0
  273. package/docs/transfer.md +273 -0
  274. package/docs/tree.json +918 -0
  275. package/docs/tree.md +397 -0
  276. package/docs/typography.json +317 -0
  277. package/docs/typography.md +107 -0
  278. package/docs/upload.examples.md +358 -0
  279. package/docs/upload.json +1103 -0
  280. package/docs/upload.md +166 -0
  281. package/docs/visually-hidden.json +71 -0
  282. package/docs/visually-hidden.md +42 -0
  283. package/docs/wizard.json +724 -0
  284. package/docs/wizard.md +295 -0
  285. package/fesm2022/slotted-angular-accordion.mjs +247 -0
  286. package/fesm2022/slotted-angular-accordion.mjs.map +1 -0
  287. package/fesm2022/slotted-angular-action-bar.mjs +639 -0
  288. package/fesm2022/slotted-angular-action-bar.mjs.map +1 -0
  289. package/fesm2022/slotted-angular-action-sheet.mjs +749 -0
  290. package/fesm2022/slotted-angular-action-sheet.mjs.map +1 -0
  291. package/fesm2022/slotted-angular-alert.mjs +427 -0
  292. package/fesm2022/slotted-angular-alert.mjs.map +1 -0
  293. package/fesm2022/slotted-angular-app-shell.mjs +1334 -0
  294. package/fesm2022/slotted-angular-app-shell.mjs.map +1 -0
  295. package/fesm2022/slotted-angular-aspect-ratio.mjs +63 -0
  296. package/fesm2022/slotted-angular-aspect-ratio.mjs.map +1 -0
  297. package/fesm2022/slotted-angular-attachment.mjs +595 -0
  298. package/fesm2022/slotted-angular-attachment.mjs.map +1 -0
  299. package/fesm2022/slotted-angular-avatar-group.mjs +230 -0
  300. package/fesm2022/slotted-angular-avatar-group.mjs.map +1 -0
  301. package/fesm2022/slotted-angular-avatar.mjs +330 -0
  302. package/fesm2022/slotted-angular-avatar.mjs.map +1 -0
  303. package/fesm2022/slotted-angular-badge.mjs +255 -0
  304. package/fesm2022/slotted-angular-badge.mjs.map +1 -0
  305. package/fesm2022/slotted-angular-breadcrumb.mjs +544 -0
  306. package/fesm2022/slotted-angular-breadcrumb.mjs.map +1 -0
  307. package/fesm2022/slotted-angular-button-group.mjs +146 -0
  308. package/fesm2022/slotted-angular-button-group.mjs.map +1 -0
  309. package/fesm2022/slotted-angular-button.mjs +692 -0
  310. package/fesm2022/slotted-angular-button.mjs.map +1 -0
  311. package/fesm2022/slotted-angular-calendar.mjs +916 -0
  312. package/fesm2022/slotted-angular-calendar.mjs.map +1 -0
  313. package/fesm2022/slotted-angular-card.mjs +225 -0
  314. package/fesm2022/slotted-angular-card.mjs.map +1 -0
  315. package/fesm2022/slotted-angular-carousel.mjs +840 -0
  316. package/fesm2022/slotted-angular-carousel.mjs.map +1 -0
  317. package/fesm2022/slotted-angular-cascader.mjs +1839 -0
  318. package/fesm2022/slotted-angular-cascader.mjs.map +1 -0
  319. package/fesm2022/slotted-angular-chart.mjs +974 -0
  320. package/fesm2022/slotted-angular-chart.mjs.map +1 -0
  321. package/fesm2022/slotted-angular-checkbox-group.mjs +283 -0
  322. package/fesm2022/slotted-angular-checkbox-group.mjs.map +1 -0
  323. package/fesm2022/slotted-angular-checkbox.mjs +468 -0
  324. package/fesm2022/slotted-angular-checkbox.mjs.map +1 -0
  325. package/fesm2022/slotted-angular-code-block.mjs +476 -0
  326. package/fesm2022/slotted-angular-code-block.mjs.map +1 -0
  327. package/fesm2022/slotted-angular-collapsible.mjs +479 -0
  328. package/fesm2022/slotted-angular-collapsible.mjs.map +1 -0
  329. package/fesm2022/slotted-angular-color-picker.mjs +910 -0
  330. package/fesm2022/slotted-angular-color-picker.mjs.map +1 -0
  331. package/fesm2022/slotted-angular-column-manager.mjs +1037 -0
  332. package/fesm2022/slotted-angular-column-manager.mjs.map +1 -0
  333. package/fesm2022/slotted-angular-combobox.mjs +1480 -0
  334. package/fesm2022/slotted-angular-combobox.mjs.map +1 -0
  335. package/fesm2022/slotted-angular-command-palette.mjs +1283 -0
  336. package/fesm2022/slotted-angular-command-palette.mjs.map +1 -0
  337. package/fesm2022/slotted-angular-container.mjs +105 -0
  338. package/fesm2022/slotted-angular-container.mjs.map +1 -0
  339. package/fesm2022/slotted-angular-context-menu.mjs +221 -0
  340. package/fesm2022/slotted-angular-context-menu.mjs.map +1 -0
  341. package/fesm2022/slotted-angular-currency-field.mjs +1131 -0
  342. package/fesm2022/slotted-angular-currency-field.mjs.map +1 -0
  343. package/fesm2022/slotted-angular-dashboard-grid.mjs +1928 -0
  344. package/fesm2022/slotted-angular-dashboard-grid.mjs.map +1 -0
  345. package/fesm2022/slotted-angular-data-grid.mjs +6697 -0
  346. package/fesm2022/slotted-angular-data-grid.mjs.map +1 -0
  347. package/fesm2022/slotted-angular-data-list.mjs +1418 -0
  348. package/fesm2022/slotted-angular-data-list.mjs.map +1 -0
  349. package/fesm2022/slotted-angular-date-field.mjs +772 -0
  350. package/fesm2022/slotted-angular-date-field.mjs.map +1 -0
  351. package/fesm2022/slotted-angular-date-picker.mjs +690 -0
  352. package/fesm2022/slotted-angular-date-picker.mjs.map +1 -0
  353. package/fesm2022/slotted-angular-date-range-picker.mjs +1150 -0
  354. package/fesm2022/slotted-angular-date-range-picker.mjs.map +1 -0
  355. package/fesm2022/slotted-angular-datetime-field.mjs +1058 -0
  356. package/fesm2022/slotted-angular-datetime-field.mjs.map +1 -0
  357. package/fesm2022/slotted-angular-datetime-picker.mjs +1362 -0
  358. package/fesm2022/slotted-angular-datetime-picker.mjs.map +1 -0
  359. package/fesm2022/slotted-angular-datetime-range-picker.mjs +1872 -0
  360. package/fesm2022/slotted-angular-datetime-range-picker.mjs.map +1 -0
  361. package/fesm2022/slotted-angular-description-list.mjs +545 -0
  362. package/fesm2022/slotted-angular-description-list.mjs.map +1 -0
  363. package/fesm2022/slotted-angular-detail-panel.mjs +754 -0
  364. package/fesm2022/slotted-angular-detail-panel.mjs.map +1 -0
  365. package/fesm2022/slotted-angular-dialog.mjs +980 -0
  366. package/fesm2022/slotted-angular-dialog.mjs.map +1 -0
  367. package/fesm2022/slotted-angular-divider.mjs +76 -0
  368. package/fesm2022/slotted-angular-divider.mjs.map +1 -0
  369. package/fesm2022/slotted-angular-drawer.mjs +1397 -0
  370. package/fesm2022/slotted-angular-drawer.mjs.map +1 -0
  371. package/fesm2022/slotted-angular-entity-picker.mjs +1987 -0
  372. package/fesm2022/slotted-angular-entity-picker.mjs.map +1 -0
  373. package/fesm2022/slotted-angular-event-calendar.mjs +2934 -0
  374. package/fesm2022/slotted-angular-event-calendar.mjs.map +1 -0
  375. package/fesm2022/slotted-angular-field-group.mjs +301 -0
  376. package/fesm2022/slotted-angular-field-group.mjs.map +1 -0
  377. package/fesm2022/slotted-angular-field.mjs +928 -0
  378. package/fesm2022/slotted-angular-field.mjs.map +1 -0
  379. package/fesm2022/slotted-angular-filter-bar.mjs +3107 -0
  380. package/fesm2022/slotted-angular-filter-bar.mjs.map +1 -0
  381. package/fesm2022/slotted-angular-form.mjs +592 -0
  382. package/fesm2022/slotted-angular-form.mjs.map +1 -0
  383. package/fesm2022/slotted-angular-fullscreen.mjs +314 -0
  384. package/fesm2022/slotted-angular-fullscreen.mjs.map +1 -0
  385. package/fesm2022/slotted-angular-grid.mjs +58 -0
  386. package/fesm2022/slotted-angular-grid.mjs.map +1 -0
  387. package/fesm2022/slotted-angular-highlight.mjs +123 -0
  388. package/fesm2022/slotted-angular-highlight.mjs.map +1 -0
  389. package/fesm2022/slotted-angular-hover-card.mjs +326 -0
  390. package/fesm2022/slotted-angular-hover-card.mjs.map +1 -0
  391. package/fesm2022/slotted-angular-i18n.mjs +75 -0
  392. package/fesm2022/slotted-angular-i18n.mjs.map +1 -0
  393. package/fesm2022/slotted-angular-icon.mjs +232 -0
  394. package/fesm2022/slotted-angular-icon.mjs.map +1 -0
  395. package/fesm2022/slotted-angular-image.mjs +442 -0
  396. package/fesm2022/slotted-angular-image.mjs.map +1 -0
  397. package/fesm2022/slotted-angular-import-export-center.mjs +1792 -0
  398. package/fesm2022/slotted-angular-import-export-center.mjs.map +1 -0
  399. package/fesm2022/slotted-angular-inline-message.mjs +280 -0
  400. package/fesm2022/slotted-angular-inline-message.mjs.map +1 -0
  401. package/fesm2022/slotted-angular-inline.mjs +52 -0
  402. package/fesm2022/slotted-angular-inline.mjs.map +1 -0
  403. package/fesm2022/slotted-angular-kbd.mjs +284 -0
  404. package/fesm2022/slotted-angular-kbd.mjs.map +1 -0
  405. package/fesm2022/slotted-angular-link.mjs +182 -0
  406. package/fesm2022/slotted-angular-link.mjs.map +1 -0
  407. package/fesm2022/slotted-angular-list-item.mjs +367 -0
  408. package/fesm2022/slotted-angular-list-item.mjs.map +1 -0
  409. package/fesm2022/slotted-angular-list.mjs +256 -0
  410. package/fesm2022/slotted-angular-list.mjs.map +1 -0
  411. package/fesm2022/slotted-angular-listbox.mjs +1274 -0
  412. package/fesm2022/slotted-angular-listbox.mjs.map +1 -0
  413. package/fesm2022/slotted-angular-loading-overlay.mjs +451 -0
  414. package/fesm2022/slotted-angular-loading-overlay.mjs.map +1 -0
  415. package/fesm2022/slotted-angular-markdown.mjs +914 -0
  416. package/fesm2022/slotted-angular-markdown.mjs.map +1 -0
  417. package/fesm2022/slotted-angular-menu.mjs +1211 -0
  418. package/fesm2022/slotted-angular-menu.mjs.map +1 -0
  419. package/fesm2022/slotted-angular-menubar.mjs +230 -0
  420. package/fesm2022/slotted-angular-menubar.mjs.map +1 -0
  421. package/fesm2022/slotted-angular-message-scroller.mjs +378 -0
  422. package/fesm2022/slotted-angular-message-scroller.mjs.map +1 -0
  423. package/fesm2022/slotted-angular-message.mjs +866 -0
  424. package/fesm2022/slotted-angular-message.mjs.map +1 -0
  425. package/fesm2022/slotted-angular-multi-select.mjs +1939 -0
  426. package/fesm2022/slotted-angular-multi-select.mjs.map +1 -0
  427. package/fesm2022/slotted-angular-navigation-menu.mjs +770 -0
  428. package/fesm2022/slotted-angular-navigation-menu.mjs.map +1 -0
  429. package/fesm2022/slotted-angular-notification-center.mjs +1172 -0
  430. package/fesm2022/slotted-angular-notification-center.mjs.map +1 -0
  431. package/fesm2022/slotted-angular-number-field.mjs +966 -0
  432. package/fesm2022/slotted-angular-number-field.mjs.map +1 -0
  433. package/fesm2022/slotted-angular-otp-input.mjs +629 -0
  434. package/fesm2022/slotted-angular-otp-input.mjs.map +1 -0
  435. package/fesm2022/slotted-angular-page-header.mjs +788 -0
  436. package/fesm2022/slotted-angular-page-header.mjs.map +1 -0
  437. package/fesm2022/slotted-angular-page.mjs +255 -0
  438. package/fesm2022/slotted-angular-page.mjs.map +1 -0
  439. package/fesm2022/slotted-angular-pagination.mjs +562 -0
  440. package/fesm2022/slotted-angular-pagination.mjs.map +1 -0
  441. package/fesm2022/slotted-angular-popover.mjs +799 -0
  442. package/fesm2022/slotted-angular-popover.mjs.map +1 -0
  443. package/fesm2022/slotted-angular-progress-indicator.mjs +572 -0
  444. package/fesm2022/slotted-angular-progress-indicator.mjs.map +1 -0
  445. package/fesm2022/slotted-angular-prompt-composer.mjs +596 -0
  446. package/fesm2022/slotted-angular-prompt-composer.mjs.map +1 -0
  447. package/fesm2022/slotted-angular-prose.mjs +314 -0
  448. package/fesm2022/slotted-angular-prose.mjs.map +1 -0
  449. package/fesm2022/slotted-angular-radio-group.mjs +469 -0
  450. package/fesm2022/slotted-angular-radio-group.mjs.map +1 -0
  451. package/fesm2022/slotted-angular-rating.mjs +1174 -0
  452. package/fesm2022/slotted-angular-rating.mjs.map +1 -0
  453. package/fesm2022/slotted-angular-result-state.mjs +330 -0
  454. package/fesm2022/slotted-angular-result-state.mjs.map +1 -0
  455. package/fesm2022/slotted-angular-saved-views.mjs +877 -0
  456. package/fesm2022/slotted-angular-saved-views.mjs.map +1 -0
  457. package/fesm2022/slotted-angular-scroll-area.mjs +294 -0
  458. package/fesm2022/slotted-angular-scroll-area.mjs.map +1 -0
  459. package/fesm2022/slotted-angular-section.mjs +266 -0
  460. package/fesm2022/slotted-angular-section.mjs.map +1 -0
  461. package/fesm2022/slotted-angular-segmented-control.mjs +454 -0
  462. package/fesm2022/slotted-angular-segmented-control.mjs.map +1 -0
  463. package/fesm2022/slotted-angular-select.mjs +1899 -0
  464. package/fesm2022/slotted-angular-select.mjs.map +1 -0
  465. package/fesm2022/slotted-angular-side-navigation.mjs +1042 -0
  466. package/fesm2022/slotted-angular-side-navigation.mjs.map +1 -0
  467. package/fesm2022/slotted-angular-skeleton.mjs +316 -0
  468. package/fesm2022/slotted-angular-skeleton.mjs.map +1 -0
  469. package/fesm2022/slotted-angular-slider.mjs +586 -0
  470. package/fesm2022/slotted-angular-slider.mjs.map +1 -0
  471. package/fesm2022/slotted-angular-sparkline.mjs +235 -0
  472. package/fesm2022/slotted-angular-sparkline.mjs.map +1 -0
  473. package/fesm2022/slotted-angular-split-button.mjs +331 -0
  474. package/fesm2022/slotted-angular-split-button.mjs.map +1 -0
  475. package/fesm2022/slotted-angular-splitter.mjs +516 -0
  476. package/fesm2022/slotted-angular-splitter.mjs.map +1 -0
  477. package/fesm2022/slotted-angular-stack.mjs +48 -0
  478. package/fesm2022/slotted-angular-stack.mjs.map +1 -0
  479. package/fesm2022/slotted-angular-stat-card.mjs +478 -0
  480. package/fesm2022/slotted-angular-stat-card.mjs.map +1 -0
  481. package/fesm2022/slotted-angular-status-indicator.mjs +155 -0
  482. package/fesm2022/slotted-angular-status-indicator.mjs.map +1 -0
  483. package/fesm2022/slotted-angular-stepper.mjs +536 -0
  484. package/fesm2022/slotted-angular-stepper.mjs.map +1 -0
  485. package/fesm2022/slotted-angular-switch.mjs +447 -0
  486. package/fesm2022/slotted-angular-switch.mjs.map +1 -0
  487. package/fesm2022/slotted-angular-table-of-contents.mjs +750 -0
  488. package/fesm2022/slotted-angular-table-of-contents.mjs.map +1 -0
  489. package/fesm2022/slotted-angular-table.mjs +2518 -0
  490. package/fesm2022/slotted-angular-table.mjs.map +1 -0
  491. package/fesm2022/slotted-angular-tabs.mjs +829 -0
  492. package/fesm2022/slotted-angular-tabs.mjs.map +1 -0
  493. package/fesm2022/slotted-angular-tag.mjs +595 -0
  494. package/fesm2022/slotted-angular-tag.mjs.map +1 -0
  495. package/fesm2022/slotted-angular-tags-input.mjs +1211 -0
  496. package/fesm2022/slotted-angular-tags-input.mjs.map +1 -0
  497. package/fesm2022/slotted-angular-text-field.mjs +674 -0
  498. package/fesm2022/slotted-angular-text-field.mjs.map +1 -0
  499. package/fesm2022/slotted-angular-textarea.mjs +275 -0
  500. package/fesm2022/slotted-angular-textarea.mjs.map +1 -0
  501. package/fesm2022/slotted-angular-theme.mjs +45 -0
  502. package/fesm2022/slotted-angular-theme.mjs.map +1 -0
  503. package/fesm2022/slotted-angular-time-field.mjs +895 -0
  504. package/fesm2022/slotted-angular-time-field.mjs.map +1 -0
  505. package/fesm2022/slotted-angular-time-picker.mjs +856 -0
  506. package/fesm2022/slotted-angular-time-picker.mjs.map +1 -0
  507. package/fesm2022/slotted-angular-time-range-picker.mjs +1534 -0
  508. package/fesm2022/slotted-angular-time-range-picker.mjs.map +1 -0
  509. package/fesm2022/slotted-angular-timeline.mjs +928 -0
  510. package/fesm2022/slotted-angular-timeline.mjs.map +1 -0
  511. package/fesm2022/slotted-angular-toast.mjs +917 -0
  512. package/fesm2022/slotted-angular-toast.mjs.map +1 -0
  513. package/fesm2022/slotted-angular-toggle-group.mjs +311 -0
  514. package/fesm2022/slotted-angular-toggle-group.mjs.map +1 -0
  515. package/fesm2022/slotted-angular-toggle.mjs +162 -0
  516. package/fesm2022/slotted-angular-toggle.mjs.map +1 -0
  517. package/fesm2022/slotted-angular-toolbar.mjs +536 -0
  518. package/fesm2022/slotted-angular-toolbar.mjs.map +1 -0
  519. package/fesm2022/slotted-angular-tooltip.mjs +798 -0
  520. package/fesm2022/slotted-angular-tooltip.mjs.map +1 -0
  521. package/fesm2022/slotted-angular-top-navigation.mjs +1308 -0
  522. package/fesm2022/slotted-angular-top-navigation.mjs.map +1 -0
  523. package/fesm2022/slotted-angular-tour.mjs +1330 -0
  524. package/fesm2022/slotted-angular-tour.mjs.map +1 -0
  525. package/fesm2022/slotted-angular-transfer.mjs +1406 -0
  526. package/fesm2022/slotted-angular-transfer.mjs.map +1 -0
  527. package/fesm2022/slotted-angular-tree.mjs +1448 -0
  528. package/fesm2022/slotted-angular-tree.mjs.map +1 -0
  529. package/fesm2022/slotted-angular-typography.mjs +184 -0
  530. package/fesm2022/slotted-angular-typography.mjs.map +1 -0
  531. package/fesm2022/slotted-angular-upload.mjs +1523 -0
  532. package/fesm2022/slotted-angular-upload.mjs.map +1 -0
  533. package/fesm2022/slotted-angular-visually-hidden.mjs +32 -0
  534. package/fesm2022/slotted-angular-visually-hidden.mjs.map +1 -0
  535. package/fesm2022/slotted-angular-wizard.mjs +1715 -0
  536. package/fesm2022/slotted-angular-wizard.mjs.map +1 -0
  537. package/fesm2022/slotted-angular.mjs +4 -0
  538. package/fesm2022/slotted-angular.mjs.map +1 -0
  539. package/package.json +537 -3
  540. package/types/slotted-angular-accordion.d.ts +156 -0
  541. package/types/slotted-angular-accordion.d.ts.map +1 -0
  542. package/types/slotted-angular-action-bar.d.ts +291 -0
  543. package/types/slotted-angular-action-bar.d.ts.map +1 -0
  544. package/types/slotted-angular-action-sheet.d.ts +294 -0
  545. package/types/slotted-angular-action-sheet.d.ts.map +1 -0
  546. package/types/slotted-angular-alert.d.ts +214 -0
  547. package/types/slotted-angular-alert.d.ts.map +1 -0
  548. package/types/slotted-angular-app-shell.d.ts +549 -0
  549. package/types/slotted-angular-app-shell.d.ts.map +1 -0
  550. package/types/slotted-angular-aspect-ratio.d.ts +57 -0
  551. package/types/slotted-angular-aspect-ratio.d.ts.map +1 -0
  552. package/types/slotted-angular-attachment.d.ts +294 -0
  553. package/types/slotted-angular-attachment.d.ts.map +1 -0
  554. package/types/slotted-angular-avatar-group.d.ts +119 -0
  555. package/types/slotted-angular-avatar-group.d.ts.map +1 -0
  556. package/types/slotted-angular-avatar.d.ts +202 -0
  557. package/types/slotted-angular-avatar.d.ts.map +1 -0
  558. package/types/slotted-angular-badge.d.ts +166 -0
  559. package/types/slotted-angular-badge.d.ts.map +1 -0
  560. package/types/slotted-angular-breadcrumb.d.ts +251 -0
  561. package/types/slotted-angular-breadcrumb.d.ts.map +1 -0
  562. package/types/slotted-angular-button-group.d.ts +89 -0
  563. package/types/slotted-angular-button-group.d.ts.map +1 -0
  564. package/types/slotted-angular-button.d.ts +390 -0
  565. package/types/slotted-angular-button.d.ts.map +1 -0
  566. package/types/slotted-angular-calendar.d.ts +280 -0
  567. package/types/slotted-angular-calendar.d.ts.map +1 -0
  568. package/types/slotted-angular-card.d.ts +140 -0
  569. package/types/slotted-angular-card.d.ts.map +1 -0
  570. package/types/slotted-angular-carousel.d.ts +288 -0
  571. package/types/slotted-angular-carousel.d.ts.map +1 -0
  572. package/types/slotted-angular-cascader.d.ts +351 -0
  573. package/types/slotted-angular-cascader.d.ts.map +1 -0
  574. package/types/slotted-angular-chart.d.ts +319 -0
  575. package/types/slotted-angular-chart.d.ts.map +1 -0
  576. package/types/slotted-angular-checkbox-group.d.ts +156 -0
  577. package/types/slotted-angular-checkbox-group.d.ts.map +1 -0
  578. package/types/slotted-angular-checkbox.d.ts +197 -0
  579. package/types/slotted-angular-checkbox.d.ts.map +1 -0
  580. package/types/slotted-angular-code-block.d.ts +158 -0
  581. package/types/slotted-angular-code-block.d.ts.map +1 -0
  582. package/types/slotted-angular-collapsible.d.ts +272 -0
  583. package/types/slotted-angular-collapsible.d.ts.map +1 -0
  584. package/types/slotted-angular-color-picker.d.ts +181 -0
  585. package/types/slotted-angular-color-picker.d.ts.map +1 -0
  586. package/types/slotted-angular-column-manager.d.ts +200 -0
  587. package/types/slotted-angular-column-manager.d.ts.map +1 -0
  588. package/types/slotted-angular-combobox.d.ts +449 -0
  589. package/types/slotted-angular-combobox.d.ts.map +1 -0
  590. package/types/slotted-angular-command-palette.d.ts +256 -0
  591. package/types/slotted-angular-command-palette.d.ts.map +1 -0
  592. package/types/slotted-angular-container.d.ts +84 -0
  593. package/types/slotted-angular-container.d.ts.map +1 -0
  594. package/types/slotted-angular-context-menu.d.ts +84 -0
  595. package/types/slotted-angular-context-menu.d.ts.map +1 -0
  596. package/types/slotted-angular-currency-field.d.ts +480 -0
  597. package/types/slotted-angular-currency-field.d.ts.map +1 -0
  598. package/types/slotted-angular-dashboard-grid.d.ts +341 -0
  599. package/types/slotted-angular-dashboard-grid.d.ts.map +1 -0
  600. package/types/slotted-angular-data-grid.d.ts +1077 -0
  601. package/types/slotted-angular-data-grid.d.ts.map +1 -0
  602. package/types/slotted-angular-data-list.d.ts +272 -0
  603. package/types/slotted-angular-data-list.d.ts.map +1 -0
  604. package/types/slotted-angular-date-field.d.ts +320 -0
  605. package/types/slotted-angular-date-field.d.ts.map +1 -0
  606. package/types/slotted-angular-date-picker.d.ts +224 -0
  607. package/types/slotted-angular-date-picker.d.ts.map +1 -0
  608. package/types/slotted-angular-date-range-picker.d.ts +310 -0
  609. package/types/slotted-angular-date-range-picker.d.ts.map +1 -0
  610. package/types/slotted-angular-datetime-field.d.ts +362 -0
  611. package/types/slotted-angular-datetime-field.d.ts.map +1 -0
  612. package/types/slotted-angular-datetime-picker.d.ts +370 -0
  613. package/types/slotted-angular-datetime-picker.d.ts.map +1 -0
  614. package/types/slotted-angular-datetime-range-picker.d.ts +459 -0
  615. package/types/slotted-angular-datetime-range-picker.d.ts.map +1 -0
  616. package/types/slotted-angular-description-list.d.ts +281 -0
  617. package/types/slotted-angular-description-list.d.ts.map +1 -0
  618. package/types/slotted-angular-detail-panel.d.ts +240 -0
  619. package/types/slotted-angular-detail-panel.d.ts.map +1 -0
  620. package/types/slotted-angular-dialog.d.ts +497 -0
  621. package/types/slotted-angular-dialog.d.ts.map +1 -0
  622. package/types/slotted-angular-divider.d.ts +40 -0
  623. package/types/slotted-angular-divider.d.ts.map +1 -0
  624. package/types/slotted-angular-drawer.d.ts +532 -0
  625. package/types/slotted-angular-drawer.d.ts.map +1 -0
  626. package/types/slotted-angular-entity-picker.d.ts +338 -0
  627. package/types/slotted-angular-entity-picker.d.ts.map +1 -0
  628. package/types/slotted-angular-event-calendar.d.ts +574 -0
  629. package/types/slotted-angular-event-calendar.d.ts.map +1 -0
  630. package/types/slotted-angular-field-group.d.ts +152 -0
  631. package/types/slotted-angular-field-group.d.ts.map +1 -0
  632. package/types/slotted-angular-field.d.ts +535 -0
  633. package/types/slotted-angular-field.d.ts.map +1 -0
  634. package/types/slotted-angular-filter-bar.d.ts +573 -0
  635. package/types/slotted-angular-filter-bar.d.ts.map +1 -0
  636. package/types/slotted-angular-form.d.ts +298 -0
  637. package/types/slotted-angular-form.d.ts.map +1 -0
  638. package/types/slotted-angular-fullscreen.d.ts +145 -0
  639. package/types/slotted-angular-fullscreen.d.ts.map +1 -0
  640. package/types/slotted-angular-grid.d.ts +50 -0
  641. package/types/slotted-angular-grid.d.ts.map +1 -0
  642. package/types/slotted-angular-highlight.d.ts +93 -0
  643. package/types/slotted-angular-highlight.d.ts.map +1 -0
  644. package/types/slotted-angular-hover-card.d.ts +140 -0
  645. package/types/slotted-angular-hover-card.d.ts.map +1 -0
  646. package/types/slotted-angular-i18n.d.ts +46 -0
  647. package/types/slotted-angular-i18n.d.ts.map +1 -0
  648. package/types/slotted-angular-icon.d.ts +94 -0
  649. package/types/slotted-angular-icon.d.ts.map +1 -0
  650. package/types/slotted-angular-image.d.ts +251 -0
  651. package/types/slotted-angular-image.d.ts.map +1 -0
  652. package/types/slotted-angular-import-export-center.d.ts +351 -0
  653. package/types/slotted-angular-import-export-center.d.ts.map +1 -0
  654. package/types/slotted-angular-inline-message.d.ts +195 -0
  655. package/types/slotted-angular-inline-message.d.ts.map +1 -0
  656. package/types/slotted-angular-inline.d.ts +41 -0
  657. package/types/slotted-angular-inline.d.ts.map +1 -0
  658. package/types/slotted-angular-kbd.d.ts +174 -0
  659. package/types/slotted-angular-kbd.d.ts.map +1 -0
  660. package/types/slotted-angular-link.d.ts +94 -0
  661. package/types/slotted-angular-link.d.ts.map +1 -0
  662. package/types/slotted-angular-list-item.d.ts +210 -0
  663. package/types/slotted-angular-list-item.d.ts.map +1 -0
  664. package/types/slotted-angular-list.d.ts +176 -0
  665. package/types/slotted-angular-list.d.ts.map +1 -0
  666. package/types/slotted-angular-listbox.d.ts +470 -0
  667. package/types/slotted-angular-listbox.d.ts.map +1 -0
  668. package/types/slotted-angular-loading-overlay.d.ts +219 -0
  669. package/types/slotted-angular-loading-overlay.d.ts.map +1 -0
  670. package/types/slotted-angular-markdown.d.ts +172 -0
  671. package/types/slotted-angular-markdown.d.ts.map +1 -0
  672. package/types/slotted-angular-menu.d.ts +448 -0
  673. package/types/slotted-angular-menu.d.ts.map +1 -0
  674. package/types/slotted-angular-menubar.d.ts +90 -0
  675. package/types/slotted-angular-menubar.d.ts.map +1 -0
  676. package/types/slotted-angular-message-scroller.d.ts +151 -0
  677. package/types/slotted-angular-message-scroller.d.ts.map +1 -0
  678. package/types/slotted-angular-message.d.ts +348 -0
  679. package/types/slotted-angular-message.d.ts.map +1 -0
  680. package/types/slotted-angular-multi-select.d.ts +462 -0
  681. package/types/slotted-angular-multi-select.d.ts.map +1 -0
  682. package/types/slotted-angular-navigation-menu.d.ts +309 -0
  683. package/types/slotted-angular-navigation-menu.d.ts.map +1 -0
  684. package/types/slotted-angular-notification-center.d.ts +318 -0
  685. package/types/slotted-angular-notification-center.d.ts.map +1 -0
  686. package/types/slotted-angular-number-field.d.ts +402 -0
  687. package/types/slotted-angular-number-field.d.ts.map +1 -0
  688. package/types/slotted-angular-otp-input.d.ts +286 -0
  689. package/types/slotted-angular-otp-input.d.ts.map +1 -0
  690. package/types/slotted-angular-page-header.d.ts +334 -0
  691. package/types/slotted-angular-page-header.d.ts.map +1 -0
  692. package/types/slotted-angular-page.d.ts +141 -0
  693. package/types/slotted-angular-page.d.ts.map +1 -0
  694. package/types/slotted-angular-pagination.d.ts +213 -0
  695. package/types/slotted-angular-pagination.d.ts.map +1 -0
  696. package/types/slotted-angular-popover.d.ts +366 -0
  697. package/types/slotted-angular-popover.d.ts.map +1 -0
  698. package/types/slotted-angular-progress-indicator.d.ts +312 -0
  699. package/types/slotted-angular-progress-indicator.d.ts.map +1 -0
  700. package/types/slotted-angular-prompt-composer.d.ts +242 -0
  701. package/types/slotted-angular-prompt-composer.d.ts.map +1 -0
  702. package/types/slotted-angular-prose.d.ts +171 -0
  703. package/types/slotted-angular-prose.d.ts.map +1 -0
  704. package/types/slotted-angular-radio-group.d.ts +268 -0
  705. package/types/slotted-angular-radio-group.d.ts.map +1 -0
  706. package/types/slotted-angular-rating.d.ts +374 -0
  707. package/types/slotted-angular-rating.d.ts.map +1 -0
  708. package/types/slotted-angular-result-state.d.ts +217 -0
  709. package/types/slotted-angular-result-state.d.ts.map +1 -0
  710. package/types/slotted-angular-saved-views.d.ts +198 -0
  711. package/types/slotted-angular-saved-views.d.ts.map +1 -0
  712. package/types/slotted-angular-scroll-area.d.ts +186 -0
  713. package/types/slotted-angular-scroll-area.d.ts.map +1 -0
  714. package/types/slotted-angular-section.d.ts +143 -0
  715. package/types/slotted-angular-section.d.ts.map +1 -0
  716. package/types/slotted-angular-segmented-control.d.ts +251 -0
  717. package/types/slotted-angular-segmented-control.d.ts.map +1 -0
  718. package/types/slotted-angular-select.d.ts +507 -0
  719. package/types/slotted-angular-select.d.ts.map +1 -0
  720. package/types/slotted-angular-side-navigation.d.ts +373 -0
  721. package/types/slotted-angular-side-navigation.d.ts.map +1 -0
  722. package/types/slotted-angular-skeleton.d.ts +198 -0
  723. package/types/slotted-angular-skeleton.d.ts.map +1 -0
  724. package/types/slotted-angular-slider.d.ts +216 -0
  725. package/types/slotted-angular-slider.d.ts.map +1 -0
  726. package/types/slotted-angular-sparkline.d.ts +106 -0
  727. package/types/slotted-angular-sparkline.d.ts.map +1 -0
  728. package/types/slotted-angular-split-button.d.ts +180 -0
  729. package/types/slotted-angular-split-button.d.ts.map +1 -0
  730. package/types/slotted-angular-splitter.d.ts +206 -0
  731. package/types/slotted-angular-splitter.d.ts.map +1 -0
  732. package/types/slotted-angular-stack.d.ts +38 -0
  733. package/types/slotted-angular-stack.d.ts.map +1 -0
  734. package/types/slotted-angular-stat-card.d.ts +232 -0
  735. package/types/slotted-angular-stat-card.d.ts.map +1 -0
  736. package/types/slotted-angular-status-indicator.d.ts +106 -0
  737. package/types/slotted-angular-status-indicator.d.ts.map +1 -0
  738. package/types/slotted-angular-stepper.d.ts +198 -0
  739. package/types/slotted-angular-stepper.d.ts.map +1 -0
  740. package/types/slotted-angular-switch.d.ts +243 -0
  741. package/types/slotted-angular-switch.d.ts.map +1 -0
  742. package/types/slotted-angular-table-of-contents.d.ts +210 -0
  743. package/types/slotted-angular-table-of-contents.d.ts.map +1 -0
  744. package/types/slotted-angular-table.d.ts +888 -0
  745. package/types/slotted-angular-table.d.ts.map +1 -0
  746. package/types/slotted-angular-tabs.d.ts +340 -0
  747. package/types/slotted-angular-tabs.d.ts.map +1 -0
  748. package/types/slotted-angular-tag.d.ts +279 -0
  749. package/types/slotted-angular-tag.d.ts.map +1 -0
  750. package/types/slotted-angular-tags-input.d.ts +302 -0
  751. package/types/slotted-angular-tags-input.d.ts.map +1 -0
  752. package/types/slotted-angular-text-field.d.ts +334 -0
  753. package/types/slotted-angular-text-field.d.ts.map +1 -0
  754. package/types/slotted-angular-textarea.d.ts +150 -0
  755. package/types/slotted-angular-textarea.d.ts.map +1 -0
  756. package/types/slotted-angular-theme.d.ts +26 -0
  757. package/types/slotted-angular-theme.d.ts.map +1 -0
  758. package/types/slotted-angular-time-field.d.ts +300 -0
  759. package/types/slotted-angular-time-field.d.ts.map +1 -0
  760. package/types/slotted-angular-time-picker.d.ts +260 -0
  761. package/types/slotted-angular-time-picker.d.ts.map +1 -0
  762. package/types/slotted-angular-time-range-picker.d.ts +401 -0
  763. package/types/slotted-angular-time-range-picker.d.ts.map +1 -0
  764. package/types/slotted-angular-timeline.d.ts +329 -0
  765. package/types/slotted-angular-timeline.d.ts.map +1 -0
  766. package/types/slotted-angular-toast.d.ts +340 -0
  767. package/types/slotted-angular-toast.d.ts.map +1 -0
  768. package/types/slotted-angular-toggle-group.d.ts +167 -0
  769. package/types/slotted-angular-toggle-group.d.ts.map +1 -0
  770. package/types/slotted-angular-toggle.d.ts +106 -0
  771. package/types/slotted-angular-toggle.d.ts.map +1 -0
  772. package/types/slotted-angular-toolbar.d.ts +252 -0
  773. package/types/slotted-angular-toolbar.d.ts.map +1 -0
  774. package/types/slotted-angular-tooltip.d.ts +388 -0
  775. package/types/slotted-angular-tooltip.d.ts.map +1 -0
  776. package/types/slotted-angular-top-navigation.d.ts +442 -0
  777. package/types/slotted-angular-top-navigation.d.ts.map +1 -0
  778. package/types/slotted-angular-tour.d.ts +440 -0
  779. package/types/slotted-angular-tour.d.ts.map +1 -0
  780. package/types/slotted-angular-transfer.d.ts +296 -0
  781. package/types/slotted-angular-transfer.d.ts.map +1 -0
  782. package/types/slotted-angular-tree.d.ts +499 -0
  783. package/types/slotted-angular-tree.d.ts.map +1 -0
  784. package/types/slotted-angular-typography.d.ts +89 -0
  785. package/types/slotted-angular-typography.d.ts.map +1 -0
  786. package/types/slotted-angular-upload.d.ts +365 -0
  787. package/types/slotted-angular-upload.d.ts.map +1 -0
  788. package/types/slotted-angular-visually-hidden.d.ts +19 -0
  789. package/types/slotted-angular-visually-hidden.d.ts.map +1 -0
  790. package/types/slotted-angular-wizard.d.ts +441 -0
  791. package/types/slotted-angular-wizard.d.ts.map +1 -0
  792. package/types/slotted-angular.d.ts +3 -0
  793. package/types/slotted-angular.d.ts.map +1 -0
@@ -0,0 +1,1480 @@
1
+ import { createFilter, moveIndex } from '@slotted/core/collection';
2
+ import { pressOrigin, createDismissableLayer } from '@slotted/core/dismissable-layer';
3
+ import { comboboxMessages } from '@slotted/core/i18n';
4
+ import { createPortalRoot } from '@slotted/core/portal';
5
+ import { createPositioner } from '@slotted/core/positioner';
6
+ import { createPresence } from '@slotted/core/presence';
7
+ import { createControllable } from '@slotted/core/state';
8
+ import * as i0 from '@angular/core';
9
+ import { InjectionToken, inject, booleanAttribute, numberAttribute, model, output, input, computed, ViewContainerRef, Injector, viewChild, signal, HostAttributeToken, DestroyRef, effect, untracked, afterNextRender, forwardRef, ViewEncapsulation, ChangeDetectionStrategy, Component, Directive, ElementRef, afterRenderEffect } from '@angular/core';
10
+ import { NG_VALUE_ACCESSOR, NG_VALIDATORS } from '@angular/forms';
11
+ import { injectMessages, injectLocale } from '@slotted/angular/i18n';
12
+ import { SlGlyph, SlIcon } from '@slotted/angular/icon';
13
+ import { SlField } from '@slotted/angular/field';
14
+ import { matchRanges } from '@slotted/core/highlight';
15
+ import { SlHighlight } from '@slotted/angular/highlight';
16
+
17
+ /**
18
+ * The numbers, and why they are these numbers. The reasoning is the React
19
+ * binding's, in `packages/react/src/combobox/combobox-defaults.tsx`; the two
20
+ * tables are held to each other by the contract, which declares every one of
21
+ * them as a default.
22
+ */
23
+ const COMBOBOX_FALLBACK = {
24
+ align: 'start',
25
+ alignOffset: 0,
26
+ allowsCustomValue: false,
27
+ autocomplete: 'list',
28
+ autoHighlight: false,
29
+ clearable: true,
30
+ closeOnEscape: true,
31
+ closeOnOutsidePress: true,
32
+ closeOnSelect: true,
33
+ collisionPadding: 8,
34
+ disabled: false,
35
+ flip: true,
36
+ fullWidth: true,
37
+ hideWhenDetached: true,
38
+ highlightMatch: true,
39
+ invalid: false,
40
+ loading: false,
41
+ loop: false,
42
+ mount: 'active',
43
+ openOn: 'input',
44
+ portal: true,
45
+ readOnly: false,
46
+ required: false,
47
+ shift: true,
48
+ side: 'bottom',
49
+ sideOffset: 4,
50
+ size: 'md',
51
+ strategy: 'absolute',
52
+ variant: 'outline',
53
+ width: 'content',
54
+ };
55
+ const COMBOBOX_DEFAULTS = new InjectionToken('COMBOBOX_DEFAULTS', {
56
+ providedIn: 'root',
57
+ factory: () => COMBOBOX_FALLBACK,
58
+ });
59
+ /**
60
+ * The decisions an application takes once. Its words come from the language in
61
+ * force (`provideSlotted`).
62
+ */
63
+ function provideComboboxDefaults(defaults) {
64
+ return { provide: COMBOBOX_DEFAULTS, useValue: { ...COMBOBOX_FALLBACK, ...defaults } };
65
+ }
66
+ function injectComboboxDefaults() {
67
+ return inject(COMBOBOX_DEFAULTS);
68
+ }
69
+
70
+ /**
71
+ * A filtered-out option stays in the DOM and is hidden, so that the element a
72
+ * reader's pointer is over survives a keystroke. It is therefore not part of
73
+ * the result set, and every count, every move and every completion has to skip
74
+ * it — which is what the `:not([hidden])` is for.
75
+ */
76
+ const OPTION_SELECTOR = "[data-part='item']:not([hidden])";
77
+ const isGroup = (entry) => 'options' in entry;
78
+ const flatten = (items) => items === undefined ? [] : items.flatMap((entry) => (isGroup(entry) ? entry.options : [entry]));
79
+ /**
80
+ * A text input with a listbox of options filtered by what was typed.
81
+ *
82
+ * **The host element is the control**, as `sl-select`'s is: the frame carries
83
+ * `data-ui`, and the input, the clear button, the trigger and the hidden
84
+ * submission field are its template. The popup is an `ng-template` built into
85
+ * the portal when it opens.
86
+ *
87
+ * **The typed text and the chosen key are two contracts.** `inputValue` and
88
+ * `value` are separate models, each with its own request, because a list whose
89
+ * labels are not unique cannot derive one from the other.
90
+ *
91
+ * **Every text-editing key stays the browser's.** The key handler binds the
92
+ * arrows, `Enter`, `Escape` and the page keys, and nothing else — the pattern's
93
+ * IMPORTANT note asks exactly that.
94
+ */
95
+ class SlCombobox {
96
+ static flag = (given) => given === undefined ? undefined : booleanAttribute(given);
97
+ static count = (given) => given === undefined ? undefined : numberAttribute(given);
98
+ /** The chosen option's key. */
99
+ value = model(null, /* @ts-ignore */
100
+ ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
101
+ valueChangeRequest = output();
102
+ /** What an unbound `value` starts from, read once. It seeds the key and not the text. */
103
+ defaultValue = input(undefined, /* @ts-ignore */
104
+ ...(ngDevMode ? [{ debugName: "defaultValue" }] : /* istanbul ignore next */ []));
105
+ /** The characters in the field, which are not the chosen key. */
106
+ inputValue = model('', /* @ts-ignore */
107
+ ...(ngDevMode ? [{ debugName: "inputValue" }] : /* istanbul ignore next */ []));
108
+ inputValueChangeRequest = output();
109
+ open = model(false, /* @ts-ignore */
110
+ ...(ngDevMode ? [{ debugName: "open" }] : /* istanbul ignore next */ []));
111
+ openChangeRequest = output();
112
+ highlightedValue = model(null, /* @ts-ignore */
113
+ ...(ngDevMode ? [{ debugName: "highlightedValue" }] : /* istanbul ignore next */ []));
114
+ highlightedValueChangeRequest = output();
115
+ /** The last option came into view; the consumer fetches the next page. */
116
+ loadMore = output();
117
+ /** The text the field refused, and why (CB7). */
118
+ inputReset = output();
119
+ /** The query the reader asked to add. The collection is the consumer's (CB8). */
120
+ create = output();
121
+ /** Whether the consumer will take a value the collection does not hold (CB8). */
122
+ creatable = input(undefined, { ...(ngDevMode ? { debugName: "creatable" } : /* istanbul ignore next */ {}), transform: SlCombobox.flag });
123
+ ariaLabel = input(undefined, { ...(ngDevMode ? { debugName: "ariaLabel" } : /* istanbul ignore next */ {}), alias: 'aria-label' });
124
+ placeholder = input('', /* @ts-ignore */
125
+ ...(ngDevMode ? [{ debugName: "placeholder" }] : /* istanbul ignore next */ []));
126
+ name = input(undefined, /* @ts-ignore */
127
+ ...(ngDevMode ? [{ debugName: "name" }] : /* istanbul ignore next */ []));
128
+ form = input(undefined, /* @ts-ignore */
129
+ ...(ngDevMode ? [{ debugName: "form" }] : /* istanbul ignore next */ []));
130
+ items = input(undefined, /* @ts-ignore */
131
+ ...(ngDevMode ? [{ debugName: "items" }] : /* istanbul ignore next */ []));
132
+ total = input(undefined, { ...(ngDevMode ? { debugName: "total" } : /* istanbul ignore next */ {}), transform: SlCombobox.count });
133
+ /** BCP 47, for the comparison the default filter makes. The language in force when absent. */
134
+ locale = input(undefined, /* @ts-ignore */
135
+ ...(ngDevMode ? [{ debugName: "locale" }] : /* istanbul ignore next */ []));
136
+ filter = input(undefined, /* @ts-ignore */
137
+ ...(ngDevMode ? [{ debugName: "filter" }] : /* istanbul ignore next */ []));
138
+ size = input(undefined, /* @ts-ignore */
139
+ ...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
140
+ variant = input(undefined, /* @ts-ignore */
141
+ ...(ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []));
142
+ side = input(undefined, /* @ts-ignore */
143
+ ...(ngDevMode ? [{ debugName: "side" }] : /* istanbul ignore next */ []));
144
+ align = input(undefined, /* @ts-ignore */
145
+ ...(ngDevMode ? [{ debugName: "align" }] : /* istanbul ignore next */ []));
146
+ width = input(undefined, /* @ts-ignore */
147
+ ...(ngDevMode ? [{ debugName: "width" }] : /* istanbul ignore next */ []));
148
+ mount = input(undefined, /* @ts-ignore */
149
+ ...(ngDevMode ? [{ debugName: "mount" }] : /* istanbul ignore next */ []));
150
+ strategy = input(undefined, /* @ts-ignore */
151
+ ...(ngDevMode ? [{ debugName: "strategy" }] : /* istanbul ignore next */ []));
152
+ autocomplete = input(undefined, /* @ts-ignore */
153
+ ...(ngDevMode ? [{ debugName: "autocomplete" }] : /* istanbul ignore next */ []));
154
+ openOn = input(undefined, /* @ts-ignore */
155
+ ...(ngDevMode ? [{ debugName: "openOn" }] : /* istanbul ignore next */ []));
156
+ /**
157
+ * Words laid over the catalog of the language in force, key by key: the
158
+ * clear and trigger buttons, the offer to create, the empty, loading and
159
+ * count sentences.
160
+ */
161
+ messages = input(undefined, /* @ts-ignore */
162
+ ...(ngDevMode ? [{ debugName: "messages" }] : /* istanbul ignore next */ []));
163
+ sideOffset = input(undefined, { ...(ngDevMode ? { debugName: "sideOffset" } : /* istanbul ignore next */ {}), transform: SlCombobox.count });
164
+ alignOffset = input(undefined, { ...(ngDevMode ? { debugName: "alignOffset" } : /* istanbul ignore next */ {}), transform: SlCombobox.count });
165
+ collisionPadding = input(undefined, { ...(ngDevMode ? { debugName: "collisionPadding" } : /* istanbul ignore next */ {}), transform: SlCombobox.count });
166
+ allowsCustomValue = input(undefined, { ...(ngDevMode ? { debugName: "allowsCustomValue" } : /* istanbul ignore next */ {}), transform: SlCombobox.flag });
167
+ autoHighlight = input(undefined, { ...(ngDevMode ? { debugName: "autoHighlight" } : /* istanbul ignore next */ {}), transform: SlCombobox.flag });
168
+ highlightMatch = input(undefined, { ...(ngDevMode ? { debugName: "highlightMatch" } : /* istanbul ignore next */ {}), transform: SlCombobox.flag });
169
+ clearable = input(undefined, { ...(ngDevMode ? { debugName: "clearable" } : /* istanbul ignore next */ {}), transform: SlCombobox.flag });
170
+ loop = input(undefined, { ...(ngDevMode ? { debugName: "loop" } : /* istanbul ignore next */ {}), transform: SlCombobox.flag });
171
+ closeOnSelect = input(undefined, { ...(ngDevMode ? { debugName: "closeOnSelect" } : /* istanbul ignore next */ {}), transform: SlCombobox.flag });
172
+ closeOnEscape = input(undefined, { ...(ngDevMode ? { debugName: "closeOnEscape" } : /* istanbul ignore next */ {}), transform: SlCombobox.flag });
173
+ closeOnOutsidePress = input(undefined, { ...(ngDevMode ? { debugName: "closeOnOutsidePress" } : /* istanbul ignore next */ {}), transform: SlCombobox.flag });
174
+ flip = input(undefined, { ...(ngDevMode ? { debugName: "flip" } : /* istanbul ignore next */ {}), transform: SlCombobox.flag });
175
+ shift = input(undefined, { ...(ngDevMode ? { debugName: "shift" } : /* istanbul ignore next */ {}), transform: SlCombobox.flag });
176
+ hideWhenDetached = input(undefined, { ...(ngDevMode ? { debugName: "hideWhenDetached" } : /* istanbul ignore next */ {}), transform: SlCombobox.flag });
177
+ portal = input(undefined, { ...(ngDevMode ? { debugName: "portal" } : /* istanbul ignore next */ {}), transform: SlCombobox.flag });
178
+ fullWidth = input(undefined, { ...(ngDevMode ? { debugName: "fullWidth" } : /* istanbul ignore next */ {}), transform: SlCombobox.flag });
179
+ disabled = input(undefined, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: SlCombobox.flag });
180
+ readOnly = input(undefined, { ...(ngDevMode ? { debugName: "readOnly" } : /* istanbul ignore next */ {}), transform: SlCombobox.flag });
181
+ required = input(undefined, { ...(ngDevMode ? { debugName: "required" } : /* istanbul ignore next */ {}), transform: SlCombobox.flag });
182
+ invalid = input(undefined, { ...(ngDevMode ? { debugName: "invalid" } : /* istanbul ignore next */ {}), transform: SlCombobox.flag });
183
+ loading = input(false, { ...(ngDevMode ? { debugName: "loading" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
184
+ defaults = injectComboboxDefaults();
185
+ /** The family's words in the language in force, with this combobox's `messages` laid over them. */
186
+ t = injectMessages(comboboxMessages, this.messages);
187
+ inForceLocale = injectLocale();
188
+ /** The locale the default filter compares in: the `locale` input, or the language in force. */
189
+ resolvedLocale = computed(() => this.locale() ?? this.inForceLocale(), /* @ts-ignore */
190
+ ...(ngDevMode ? [{ debugName: "resolvedLocale" }] : /* istanbul ignore next */ []));
191
+ viewContainer = inject(ViewContainerRef);
192
+ injector = inject(Injector);
193
+ template = viewChild.required('layer', /* @ts-ignore */
194
+ ...(ngDevMode ? [{ debugName: "template" }] : /* istanbul ignore next */ []));
195
+ controlRef = viewChild.required('control', /* @ts-ignore */
196
+ ...(ngDevMode ? [{ debugName: "controlRef" }] : /* istanbul ignore next */ []));
197
+ field = inject(SlField, { optional: true });
198
+ identifier = Math.random().toString(36).slice(2, 8);
199
+ contentId = `sl-combobox-${this.identifier}`;
200
+ ownId = `sl-combobox-input-${this.identifier}`;
201
+ registry = signal(new Map(), /* @ts-ignore */
202
+ ...(ngDevMode ? [{ debugName: "registry" }] : /* istanbul ignore next */ []));
203
+ optionCount = signal(0, /* @ts-ignore */
204
+ ...(ngDevMode ? [{ debugName: "optionCount" }] : /* istanbul ignore next */ []));
205
+ /**
206
+ * The completion `autocomplete="both"` shows: the rest of the first match, or
207
+ * `null`. It is part of what the input renders rather than a write onto the
208
+ * element, so nothing has to fight Angular for the value.
209
+ */
210
+ completion = signal(null, /* @ts-ignore */
211
+ ...(ngDevMode ? [{ debugName: "completion" }] : /* istanbul ignore next */ []));
212
+ wantsCompletion = false;
213
+ entry = 'none';
214
+ view = null;
215
+ layerNode = null;
216
+ surfaceNode = null;
217
+ portalRoot = null;
218
+ positioner = null;
219
+ layer = null;
220
+ presence = null;
221
+ observer = null;
222
+ disabledByForm = signal(undefined, /* @ts-ignore */
223
+ ...(ngDevMode ? [{ debugName: "disabledByForm" }] : /* istanbul ignore next */ []));
224
+ hostId = inject(new HostAttributeToken('id'), { optional: true });
225
+ onChange = () => undefined;
226
+ onTouched = () => undefined;
227
+ resolvedSize = computed(() => this.size() ?? this.field?.size() ?? this.defaults.size, /* @ts-ignore */
228
+ ...(ngDevMode ? [{ debugName: "resolvedSize" }] : /* istanbul ignore next */ []));
229
+ resolvedVariant = computed(() => this.variant() ?? this.defaults.variant, /* @ts-ignore */
230
+ ...(ngDevMode ? [{ debugName: "resolvedVariant" }] : /* istanbul ignore next */ []));
231
+ resolvedAlign = computed(() => this.align() ?? this.defaults.align, /* @ts-ignore */
232
+ ...(ngDevMode ? [{ debugName: "resolvedAlign" }] : /* istanbul ignore next */ []));
233
+ resolvedSide = computed(() => this.side() ?? this.defaults.side, /* @ts-ignore */
234
+ ...(ngDevMode ? [{ debugName: "resolvedSide" }] : /* istanbul ignore next */ []));
235
+ resolvedWidth = computed(() => this.width() ?? this.defaults.width, /* @ts-ignore */
236
+ ...(ngDevMode ? [{ debugName: "resolvedWidth" }] : /* istanbul ignore next */ []));
237
+ resolvedMount = computed(() => this.mount() ?? this.defaults.mount, /* @ts-ignore */
238
+ ...(ngDevMode ? [{ debugName: "resolvedMount" }] : /* istanbul ignore next */ []));
239
+ resolvedAutocomplete = computed(() => this.autocomplete() ?? this.defaults.autocomplete, /* @ts-ignore */
240
+ ...(ngDevMode ? [{ debugName: "resolvedAutocomplete" }] : /* istanbul ignore next */ []));
241
+ resolvedOpenOn = computed(() => this.openOn() ?? this.defaults.openOn, /* @ts-ignore */
242
+ ...(ngDevMode ? [{ debugName: "resolvedOpenOn" }] : /* istanbul ignore next */ []));
243
+ resolvedLoop = computed(() => this.loop() ?? this.defaults.loop, /* @ts-ignore */
244
+ ...(ngDevMode ? [{ debugName: "resolvedLoop" }] : /* istanbul ignore next */ []));
245
+ resolvedClearable = computed(() => this.clearable() ?? this.defaults.clearable, /* @ts-ignore */
246
+ ...(ngDevMode ? [{ debugName: "resolvedClearable" }] : /* istanbul ignore next */ []));
247
+ resolvedFullWidth = computed(() => this.fullWidth() ?? this.defaults.fullWidth, /* @ts-ignore */
248
+ ...(ngDevMode ? [{ debugName: "resolvedFullWidth" }] : /* istanbul ignore next */ []));
249
+ resolvedCloseOnSelect = computed(() => this.closeOnSelect() ?? this.defaults.closeOnSelect, /* @ts-ignore */
250
+ ...(ngDevMode ? [{ debugName: "resolvedCloseOnSelect" }] : /* istanbul ignore next */ []));
251
+ resolvedAllowsCustomValue = computed(() => this.allowsCustomValue() ?? this.defaults.allowsCustomValue, /* @ts-ignore */
252
+ ...(ngDevMode ? [{ debugName: "resolvedAllowsCustomValue" }] : /* istanbul ignore next */ []));
253
+ resolvedAutoHighlight = computed(() => this.autoHighlight() ?? this.defaults.autoHighlight, /* @ts-ignore */
254
+ ...(ngDevMode ? [{ debugName: "resolvedAutoHighlight" }] : /* istanbul ignore next */ []));
255
+ resolvedHighlightMatch = computed(() => this.highlightMatch() ?? this.defaults.highlightMatch, /* @ts-ignore */
256
+ ...(ngDevMode ? [{ debugName: "resolvedHighlightMatch" }] : /* istanbul ignore next */ []));
257
+ /**
258
+ * The offer to add what was typed (CB8): the query, while the consumer will
259
+ * take one, the reader typed something and nothing in the collection matched
260
+ * it. It is one expression, so the row and the commit cannot disagree about
261
+ * whether an offer is standing.
262
+ */
263
+ creating = computed(() => (this.creatable() ?? false) && this.query() !== '' && this.optionCount() === 0
264
+ ? this.query()
265
+ : null, /* @ts-ignore */
266
+ ...(ngDevMode ? [{ debugName: "creating" }] : /* istanbul ignore next */ []));
267
+ resolvedDisabled = computed(() => this.disabled() ?? this.disabledByForm() ?? this.field?.disabled() ?? this.defaults.disabled, /* @ts-ignore */
268
+ ...(ngDevMode ? [{ debugName: "resolvedDisabled" }] : /* istanbul ignore next */ []));
269
+ resolvedReadOnly = computed(() => this.readOnly() ?? this.field?.readOnly() ?? this.defaults.readOnly, /* @ts-ignore */
270
+ ...(ngDevMode ? [{ debugName: "resolvedReadOnly" }] : /* istanbul ignore next */ []));
271
+ resolvedRequired = computed(() => this.required() ?? this.field?.required() ?? this.defaults.required, /* @ts-ignore */
272
+ ...(ngDevMode ? [{ debugName: "resolvedRequired" }] : /* istanbul ignore next */ []));
273
+ resolvedInvalid = computed(() => this.invalid() ?? this.field?.invalid() ?? this.defaults.invalid, /* @ts-ignore */
274
+ ...(ngDevMode ? [{ debugName: "resolvedInvalid" }] : /* istanbul ignore next */ []));
275
+ isOpen = computed(() => this.open() && !this.resolvedDisabled(), /* @ts-ignore */
276
+ ...(ngDevMode ? [{ debugName: "isOpen" }] : /* istanbul ignore next */ []));
277
+ controlId = computed(() => this.hostId ?? this.field?.ids().control ?? this.ownId, /* @ts-ignore */
278
+ ...(ngDevMode ? [{ debugName: "controlId" }] : /* istanbul ignore next */ []));
279
+ describedBy = computed(() => this.field?.describedBy() ?? null, /* @ts-ignore */
280
+ ...(ngDevMode ? [{ debugName: "describedBy" }] : /* istanbul ignore next */ []));
281
+ display = computed(() => this.completion() ?? this.inputValue(), /* @ts-ignore */
282
+ ...(ngDevMode ? [{ debugName: "display" }] : /* istanbul ignore next */ []));
283
+ declared = computed(() => {
284
+ const table = new Map();
285
+ for (const option of flatten(this.items()))
286
+ table.set(option.value, option.label);
287
+ return table;
288
+ }, /* @ts-ignore */
289
+ ...(ngDevMode ? [{ debugName: "declared" }] : /* istanbul ignore next */ []));
290
+ /**
291
+ * The query the options filter against, and it is not always the typed text:
292
+ * once an option has been committed the input holds its label, and filtering
293
+ * on that would leave the popup showing the one option already chosen.
294
+ */
295
+ query = computed(() => {
296
+ const held = this.value();
297
+ const committed = held === null ? undefined : this.labelFor(held);
298
+ return this.inputValue() === committed ? '' : this.inputValue();
299
+ }, /* @ts-ignore */
300
+ ...(ngDevMode ? [{ debugName: "query" }] : /* istanbul ignore next */ []));
301
+ fallbackFilter = computed(() => createFilter({ locale: this.resolvedLocale() }), /* @ts-ignore */
302
+ ...(ngDevMode ? [{ debugName: "fallbackFilter" }] : /* istanbul ignore next */ []));
303
+ showClear = computed(() => this.resolvedClearable() &&
304
+ this.inputValue() !== '' &&
305
+ !this.resolvedDisabled() &&
306
+ !this.resolvedReadOnly(), /* @ts-ignore */
307
+ ...(ngDevMode ? [{ debugName: "showClear" }] : /* istanbul ignore next */ []));
308
+ activeDescendant = computed(() => {
309
+ const held = this.highlightedValue();
310
+ return this.isOpen() && held !== null ? this.optionId(held) : null;
311
+ }, /* @ts-ignore */
312
+ ...(ngDevMode ? [{ debugName: "activeDescendant" }] : /* istanbul ignore next */ []));
313
+ statusMessage = computed(() => {
314
+ if (this.loading())
315
+ return this.t('loading');
316
+ const count = this.optionCount();
317
+ return count === 0 ? '' : this.t('count', { count });
318
+ }, /* @ts-ignore */
319
+ ...(ngDevMode ? [{ debugName: "statusMessage" }] : /* istanbul ignore next */ []));
320
+ constructor() {
321
+ const destroyRef = inject(DestroyRef);
322
+ effect(() => {
323
+ const open = this.isOpen();
324
+ untracked(() => (open ? this.show() : this.hide()));
325
+ });
326
+ afterNextRender(() => {
327
+ if (this.resolvedMount() === 'eager' && !this.isOpen())
328
+ this.build();
329
+ });
330
+ destroyRef.onDestroy(() => this.teardown());
331
+ }
332
+ /**
333
+ * The uncontrolled start, read once. It is read here rather than in the
334
+ * constructor because that is where Angular has finished writing the inputs.
335
+ * A `value` the consumer bound is already in the model and wins; the seed
336
+ * fills a model still at its declared default, and leaves `inputValue`
337
+ * alone because the text and the key are two contracts.
338
+ */
339
+ ngOnInit() {
340
+ const seed = this.defaultValue();
341
+ if (seed === undefined || seed === null || this.value() !== null)
342
+ return;
343
+ this.value.set(seed);
344
+ }
345
+ optionId(value) {
346
+ return `${this.contentId}-option-${encodeURIComponent(value)}`;
347
+ }
348
+ labelFor(value) {
349
+ return this.declared().get(value) ?? this.registry().get(value);
350
+ }
351
+ registerLabel(value, label) {
352
+ if (this.registry().get(value) === label)
353
+ return;
354
+ const next = new Map(this.registry());
355
+ next.set(value, label);
356
+ this.registry.set(next);
357
+ }
358
+ /**
359
+ * Three answers, and `undefined` is not one of them: an absent `filter` asks
360
+ * for the library's own locale-sensitive `contains`, `null` turns filtering
361
+ * off, and a function replaces the comparison.
362
+ */
363
+ matches(label) {
364
+ const query = this.query();
365
+ const given = this.filter();
366
+ if (query === '' || given === null)
367
+ return true;
368
+ if (given !== undefined)
369
+ return given(label, query);
370
+ return this.fallbackFilter().contains(label, query);
371
+ }
372
+ recount() {
373
+ /* The offer to add what was typed is drawn *because* the count is nought,
374
+ so counting it would take it away, which would bring it back (CB8). */
375
+ this.optionCount.set(this.options().filter((option) => option.dataset['create'] === undefined).length);
376
+ this.applyCompletion();
377
+ this.dropStaleHighlight();
378
+ if (this.isOpen() && this.resolvedAutoHighlight())
379
+ this.land();
380
+ }
381
+ options() {
382
+ return [...(this.surfaceNode?.querySelectorAll(OPTION_SELECTOR) ?? [])];
383
+ }
384
+ focus() {
385
+ this.controlRef().nativeElement.focus({ preventScroll: true });
386
+ }
387
+ scrollToKey(value) {
388
+ const option = this.options().find((candidate) => candidate.dataset['value'] === value);
389
+ if (typeof option?.scrollIntoView === 'function')
390
+ option.scrollIntoView({ block: 'nearest' });
391
+ }
392
+ setOpen(next, reason, source) {
393
+ if (next === this.isOpen())
394
+ return;
395
+ const state = createControllable({
396
+ initial: this.isOpen(),
397
+ onRequest: (request) => this.openChangeRequest.emit(request),
398
+ });
399
+ if (!state.request(next, reason, source))
400
+ return;
401
+ this.open.set(next);
402
+ if (!next) {
403
+ this.highlightedValue.set(null);
404
+ this.entry = 'none';
405
+ }
406
+ }
407
+ setHighlighted(next, reason, source) {
408
+ if (next === this.highlightedValue())
409
+ return;
410
+ const state = createControllable({
411
+ initial: this.highlightedValue(),
412
+ onRequest: (request) => this.highlightedValueChangeRequest.emit(request),
413
+ });
414
+ if (state.request(next, reason, source)) {
415
+ this.highlightedValue.set(next);
416
+ if (next !== null)
417
+ this.scrollToKey(next);
418
+ }
419
+ }
420
+ setInputValue(next, reason, source) {
421
+ /* Whatever moves the text withdraws the completion: it is an offer about
422
+ text that no longer exists. */
423
+ this.completion.set(null);
424
+ if (next === this.inputValue())
425
+ return;
426
+ const state = createControllable({
427
+ initial: this.inputValue(),
428
+ onRequest: (request) => this.inputValueChangeRequest.emit(request),
429
+ });
430
+ if (state.request(next, reason, source))
431
+ this.inputValue.set(next);
432
+ }
433
+ select(next, reason, source) {
434
+ if (next === this.value())
435
+ return;
436
+ const state = createControllable({
437
+ initial: this.value(),
438
+ onRequest: (request) => this.valueChangeRequest.emit(request),
439
+ });
440
+ if (!state.request(next, reason, source))
441
+ return;
442
+ this.value.set(next);
443
+ this.onChange(next);
444
+ this.onTouched();
445
+ }
446
+ clear(reason, source) {
447
+ this.select(null, reason, source);
448
+ this.setInputValue('', reason === 'clear' ? 'clear' : 'programmatic', source);
449
+ }
450
+ /** Takes an option: the key, the label into the field, and the popup shut. */
451
+ commitOption(value, reason, source) {
452
+ this.select(value, reason, source);
453
+ this.setInputValue(this.labelFor(value) ?? value, 'select', source);
454
+ if (this.resolvedCloseOnSelect())
455
+ this.setOpen(false, 'select', source);
456
+ }
457
+ onInput(event) {
458
+ const next = event.target.value;
459
+ const growing = next.length > this.inputValue().length;
460
+ this.setInputValue(next, 'keyboard', event);
461
+ /* A reader who is deleting is taking the text apart; writing the rest of a
462
+ word back into a field they are emptying is what makes `both` unusable. */
463
+ this.wantsCompletion = this.resolvedAutocomplete() === 'both' && growing;
464
+ if (this.resolvedOpenOn() === 'input' && !this.isOpen() && !this.resolvedReadOnly()) {
465
+ this.entry = this.resolvedAutoHighlight() ? 'first' : 'none';
466
+ this.setOpen(true, 'keyboard', event);
467
+ }
468
+ else {
469
+ /* After the render the new query causes: read now, the surface still
470
+ holds the options the previous query kept, and the completion — which
471
+ is consumed once — would be measured against the wrong first match. */
472
+ afterNextRender(() => this.recount(), { injector: this.injector });
473
+ }
474
+ }
475
+ onFocus() {
476
+ if (this.resolvedOpenOn() !== 'focus' || this.resolvedReadOnly() || this.isOpen())
477
+ return;
478
+ this.entry = 'selected';
479
+ this.setOpen(true, 'keyboard');
480
+ }
481
+ /* A press on the input opens a closed popup and never closes an open one,
482
+ because the same press places the caret. Under `focus` the press has
483
+ already opened it through focus, so this finds it open. */
484
+ onClick(event) {
485
+ if (event.defaultPrevented || this.resolvedOpenOn() === 'manual' || this.isOpen())
486
+ return;
487
+ if (this.resolvedDisabled() || this.resolvedReadOnly())
488
+ return;
489
+ this.entry = 'selected';
490
+ this.setOpen(true, 'pointer', event);
491
+ }
492
+ onBlur(event) {
493
+ this.onTouched();
494
+ const next = event.relatedTarget;
495
+ if (next instanceof Node && this.surfaceNode?.contains(next) === true)
496
+ return;
497
+ /* A press on the popup's own surface — its padding, a group heading, its
498
+ scrollbar — takes focus off the input and reports `relatedTarget: null`,
499
+ which is indistinguishable from the reader leaving. The layer stack
500
+ already records where the press in flight went down, so ask it (CB11). */
501
+ const began = pressOrigin(this.controlRef().nativeElement.ownerDocument);
502
+ if (began instanceof Node && this.surfaceNode?.contains(began) === true)
503
+ return;
504
+ /* The last moment at which the reader is still choosing, which is where
505
+ text that matched no option is settled (CB7). */
506
+ this.settleInput(event);
507
+ if (this.isOpen())
508
+ this.setOpen(false, 'blur', event);
509
+ }
510
+ /**
511
+ * The option whose label *is* the text, by the same collator the filter used:
512
+ * a reader who typed an option in full has chosen it, and comparing with
513
+ * `===` would refuse `resume` for `Resumé` on a page the filter had just
514
+ * matched.
515
+ */
516
+ valueForLabel(text) {
517
+ if (text === '')
518
+ return undefined;
519
+ const filter = this.fallbackFilter();
520
+ for (const [candidate, label] of this.declared()) {
521
+ if (filter.equals(label, text))
522
+ return candidate;
523
+ }
524
+ for (const [candidate, label] of this.registry()) {
525
+ if (filter.equals(label, text))
526
+ return candidate;
527
+ }
528
+ return undefined;
529
+ }
530
+ /**
531
+ * What becomes of text that matched no option, at the moment the reader
532
+ * leaves the field (CB7). `combobox`'s React binding states the reasoning;
533
+ * the three answers are the same, in the same order. Text that *is* an option
534
+ * is that option; text that is not, in a field that allows one of its own, is
535
+ * the value; text that is not, in a field that does not, is undone and the
536
+ * caller is told what was refused.
537
+ */
538
+ settleInput(source) {
539
+ const text = this.inputValue();
540
+ const matched = this.valueForLabel(text);
541
+ if (matched !== undefined) {
542
+ if (matched !== this.value())
543
+ this.select(matched, 'blur', source);
544
+ this.setInputValue(this.labelFor(matched) ?? text, 'blur', source);
545
+ return;
546
+ }
547
+ if (text === '') {
548
+ if (this.value() !== null)
549
+ this.select(null, 'blur', source);
550
+ return;
551
+ }
552
+ if (this.resolvedAllowsCustomValue()) {
553
+ if (text !== this.value())
554
+ this.select(text, 'blur', source);
555
+ return;
556
+ }
557
+ const held = this.value();
558
+ this.setInputValue(held === null ? '' : (this.labelFor(held) ?? ''), 'blur', source);
559
+ this.inputReset.emit({ rejected: text, reason: 'blur' });
560
+ }
561
+ onClear(event) {
562
+ this.clear('clear', event);
563
+ this.focus();
564
+ }
565
+ onToggle(event) {
566
+ if (this.resolvedDisabled() || this.resolvedReadOnly())
567
+ return;
568
+ this.entry = 'selected';
569
+ this.setOpen(!this.isOpen(), 'pointer', event);
570
+ this.focus();
571
+ }
572
+ onKeyDown(event) {
573
+ if (this.resolvedDisabled())
574
+ return;
575
+ const alt = event.altKey;
576
+ switch (event.key) {
577
+ case 'ArrowDown':
578
+ if (this.resolvedReadOnly())
579
+ return;
580
+ event.preventDefault();
581
+ if (!this.isOpen())
582
+ this.openWith(alt ? 'none' : 'first', event);
583
+ else if (!alt)
584
+ this.move('next', event);
585
+ return;
586
+ case 'ArrowUp':
587
+ if (this.resolvedReadOnly())
588
+ return;
589
+ event.preventDefault();
590
+ if (alt)
591
+ this.setOpen(false, 'keyboard', event);
592
+ else if (!this.isOpen())
593
+ this.openWith('last', event);
594
+ else
595
+ this.move('previous', event);
596
+ return;
597
+ case 'PageDown':
598
+ if (!this.isOpen())
599
+ return;
600
+ event.preventDefault();
601
+ this.move('pageDown', event);
602
+ return;
603
+ case 'PageUp':
604
+ if (!this.isOpen())
605
+ return;
606
+ event.preventDefault();
607
+ this.move('pageUp', event);
608
+ return;
609
+ case 'Enter':
610
+ if (!this.isOpen() && !this.resolvedAllowsCustomValue())
611
+ return;
612
+ event.preventDefault();
613
+ this.commitFromKeyboard(event);
614
+ return;
615
+ case 'Escape':
616
+ this.onEscape(event);
617
+ return;
618
+ case 'Tab':
619
+ /* Not prevented, and no highlight is committed: one the reader arrowed
620
+ past is not a choice they made. A completion still standing is. */
621
+ if (this.completion() !== null)
622
+ this.commitFromKeyboard(event);
623
+ else if (this.isOpen())
624
+ this.setOpen(false, 'dismiss', event);
625
+ return;
626
+ default:
627
+ /* Every other key is the browser's, which the pattern asks for by name. */
628
+ break;
629
+ }
630
+ }
631
+ onEscape(event) {
632
+ if (this.isOpen()) {
633
+ event.preventDefault();
634
+ this.setOpen(false, 'escape', event);
635
+ return;
636
+ }
637
+ const held = this.value();
638
+ if (held === null)
639
+ return;
640
+ event.preventDefault();
641
+ const label = this.labelFor(held) ?? '';
642
+ if (this.inputValue() === label)
643
+ this.clear('keyboard', event);
644
+ else
645
+ this.setInputValue(label, 'keyboard', event);
646
+ }
647
+ commitFromKeyboard(event) {
648
+ const standing = this.completion();
649
+ if (this.highlightedValue() === null && standing !== null) {
650
+ const suggested = this.options().find((option) => this.labelOf(option) === standing);
651
+ if (suggested !== undefined) {
652
+ this.commitOption(suggested.dataset['value'] ?? '', 'keyboard', event);
653
+ return;
654
+ }
655
+ }
656
+ const held = this.highlightedValue();
657
+ if (held !== null && held === this.creating()) {
658
+ this.takeOffer(held, 'keyboard', event);
659
+ return;
660
+ }
661
+ if (held !== null) {
662
+ this.commitOption(held, 'keyboard', event);
663
+ return;
664
+ }
665
+ if (this.resolvedAllowsCustomValue()) {
666
+ this.select(this.inputValue() === '' ? null : this.inputValue(), 'keyboard', event);
667
+ }
668
+ else {
669
+ const value = this.value();
670
+ this.setInputValue(value === null ? '' : (this.labelFor(value) ?? ''), 'select', event);
671
+ }
672
+ this.setOpen(false, 'select', event);
673
+ }
674
+ /**
675
+ * An option refuses the press, and this one is an option (CB11). The rule
676
+ * itself lives on `SlComboboxOption`; the offer is written by this template,
677
+ * so it repeats the one line rather than the reason.
678
+ */
679
+ onOptionPointerDown(event) {
680
+ if (event.defaultPrevented)
681
+ return;
682
+ event.preventDefault();
683
+ }
684
+ onCreateClick(query, event) {
685
+ this.takeOffer(query, 'pointer', event);
686
+ this.focus();
687
+ }
688
+ /**
689
+ * Taking the offer reports the query and selects nothing: the collection does
690
+ * not hold the value yet, and a control naming an option that does not exist
691
+ * is a control whose value and picture disagree — the fault CB7 fixed at the
692
+ * other end. What the consumer does with it is the consumer's (CB8).
693
+ */
694
+ takeOffer(query, reason, event) {
695
+ this.create.emit({ query, reason });
696
+ this.setOpen(false, 'select', event);
697
+ }
698
+ labelOf(option) {
699
+ return (option.dataset['textValue'] ??
700
+ option.querySelector("[data-part='label']")?.textContent?.trim() ??
701
+ '');
702
+ }
703
+ openWith(entry, event) {
704
+ this.entry = entry;
705
+ this.setOpen(true, 'keyboard', event);
706
+ }
707
+ move(intent, event) {
708
+ const list = this.options();
709
+ if (list.length === 0)
710
+ return;
711
+ const held = this.highlightedValue();
712
+ const index = moveIndex({
713
+ enabled: list.map((option) => option.dataset['disabled'] === undefined),
714
+ from: held === null ? -1 : list.findIndex((option) => option.dataset['value'] === held),
715
+ intent,
716
+ loop: this.resolvedLoop(),
717
+ });
718
+ if (index !== -1)
719
+ this.setHighlighted(list[index]?.dataset['value'] ?? null, 'keyboard', event);
720
+ }
721
+ /** The filter took the highlighted option away, so the highlight goes too. */
722
+ dropStaleHighlight() {
723
+ const held = this.highlightedValue();
724
+ if (held === null)
725
+ return;
726
+ const kept = this.options().some((option) => option.dataset['value'] === held);
727
+ if (!kept)
728
+ this.setHighlighted(null, 'keyboard');
729
+ }
730
+ applyCompletion() {
731
+ if (!this.wantsCompletion)
732
+ return;
733
+ this.wantsCompletion = false;
734
+ const typed = this.inputValue();
735
+ if (typed === '')
736
+ return;
737
+ const first = this.options().find((option) => option.dataset['disabled'] === undefined);
738
+ if (first === undefined)
739
+ return;
740
+ const label = this.labelOf(first);
741
+ if (!label.toLowerCase().startsWith(typed.toLowerCase()) || label === typed)
742
+ return;
743
+ this.completion.set(label);
744
+ /* The completion is shown as a selected range, so the next character typed
745
+ replaces it and Backspace withdraws it. */
746
+ queueMicrotask(() => {
747
+ const element = this.controlRef().nativeElement;
748
+ if (element.value === label)
749
+ element.setSelectionRange(typed.length, label.length);
750
+ });
751
+ }
752
+ show() {
753
+ this.build();
754
+ this.position();
755
+ this.bind();
756
+ this.enter();
757
+ }
758
+ build() {
759
+ if (this.view !== null) {
760
+ this.presence?.sync(this.isOpen());
761
+ this.view.detectChanges();
762
+ return;
763
+ }
764
+ this.portalRoot = createPortalRoot({
765
+ origin: this.controlRef().nativeElement,
766
+ disabled: this.portal() === false,
767
+ });
768
+ this.view = this.viewContainer.createEmbeddedView(this.template());
769
+ this.view.detectChanges();
770
+ this.layerNode = this.view.rootNodes.find((node) => node instanceof HTMLElement);
771
+ this.surfaceNode = this.layerNode?.querySelector("[data-part='content']") ?? null;
772
+ if (this.layerNode === null)
773
+ return;
774
+ this.portalRoot.container?.append(this.layerNode);
775
+ this.presence = createPresence({ present: this.isOpen() });
776
+ this.presence.setNode(this.layerNode);
777
+ }
778
+ position() {
779
+ if (this.layerNode === null)
780
+ return;
781
+ const anchor = this.controlRef().nativeElement.parentElement;
782
+ if (anchor === null)
783
+ return;
784
+ this.positioner?.destroy();
785
+ this.positioner = createPositioner(anchor, this.layerNode, {
786
+ align: this.resolvedAlign(),
787
+ alignOffset: this.alignOffset() ?? this.defaults.alignOffset,
788
+ boundaryPadding: this.collisionPadding() ?? this.defaults.collisionPadding,
789
+ flip: this.flip() ?? this.defaults.flip,
790
+ hideWhenDetached: this.hideWhenDetached() ?? this.defaults.hideWhenDetached,
791
+ matchWidth: this.resolvedWidth() === 'anchor',
792
+ shift: this.shift() ?? this.defaults.shift,
793
+ side: this.resolvedSide(),
794
+ sideOffset: this.sideOffset() ?? this.defaults.sideOffset,
795
+ strategy: this.strategy() ?? this.defaults.strategy,
796
+ });
797
+ void this.positioner.update();
798
+ }
799
+ bind() {
800
+ if (this.layerNode === null)
801
+ return;
802
+ this.layer = createDismissableLayer(this.layerNode, {
803
+ branches: [this.controlRef().nativeElement.parentElement].filter((branch) => branch !== null),
804
+ escape: this.closeOnEscape() ?? this.defaults.closeOnEscape,
805
+ focusOutside: false,
806
+ modal: false,
807
+ outsidePress: this.closeOnOutsidePress() ?? this.defaults.closeOnOutsidePress,
808
+ scrollLock: false,
809
+ onDismiss: (request) => {
810
+ this.setOpen(false, request.reason === 'escape' ? 'escape' : 'outsidePress', request.source);
811
+ },
812
+ });
813
+ this.observeEnd();
814
+ }
815
+ /**
816
+ * The last row came into view, so there is more to fetch. An observer rather
817
+ * than a scroll listener: the question is whether the end of the list is
818
+ * visible, and a scroll handler answers it by measuring on every frame.
819
+ */
820
+ observeEnd() {
821
+ this.observer?.disconnect();
822
+ this.observer = null;
823
+ const root = this.surfaceNode;
824
+ if (root === null || typeof IntersectionObserver !== 'function')
825
+ return;
826
+ const last = this.options().at(-1);
827
+ if (last === undefined)
828
+ return;
829
+ this.observer = new IntersectionObserver((entries) => {
830
+ if (entries.some((entry) => entry.isIntersecting))
831
+ this.loadMore.emit();
832
+ }, { root });
833
+ this.observer.observe(last);
834
+ }
835
+ enter() {
836
+ this.recount();
837
+ this.land();
838
+ }
839
+ /**
840
+ * Where the highlight lands: the chosen option, or — with `autoHighlight`,
841
+ * when none is showing — the first match. The contract's `focus.onOpen`
842
+ * asks it of every opening, a press or a focus included, and of every query
843
+ * typed while the popup stays open, so `Enter` always has a match under it.
844
+ */
845
+ land() {
846
+ if (this.entry === 'none')
847
+ return;
848
+ if (this.entry === 'selected') {
849
+ const held = this.value();
850
+ const shown = this.options().some((option) => option.dataset['value'] === held && option.dataset['disabled'] === undefined);
851
+ if (held !== null && shown)
852
+ this.setHighlighted(held, 'keyboard');
853
+ else if (this.resolvedAutoHighlight())
854
+ this.move('first');
855
+ return;
856
+ }
857
+ this.move(this.entry);
858
+ }
859
+ hide() {
860
+ this.unbind();
861
+ if (this.resolvedMount() === 'active')
862
+ this.teardown();
863
+ }
864
+ unbind() {
865
+ this.layer?.destroy();
866
+ this.positioner?.destroy();
867
+ this.observer?.disconnect();
868
+ this.layer = null;
869
+ this.positioner = null;
870
+ this.observer = null;
871
+ }
872
+ teardown() {
873
+ this.unbind();
874
+ this.presence?.destroy();
875
+ this.portalRoot?.release();
876
+ this.layerNode?.remove();
877
+ this.view?.destroy();
878
+ this.presence = null;
879
+ this.portalRoot = null;
880
+ this.layerNode = null;
881
+ this.surfaceNode = null;
882
+ this.view = null;
883
+ }
884
+ writeValue(value) {
885
+ this.value.set(value ?? null);
886
+ this.inputValue.set(value === null ? '' : (this.labelFor(value) ?? value));
887
+ }
888
+ registerOnChange(fn) {
889
+ this.onChange = fn;
890
+ }
891
+ registerOnTouched(fn) {
892
+ this.onTouched = fn;
893
+ }
894
+ setDisabledState(isDisabled) {
895
+ this.disabledByForm.set(isDisabled);
896
+ }
897
+ /**
898
+ * Two validities the family owns, and neither is one a native input can
899
+ * describe: a required control with nothing chosen, and a control holding
900
+ * text that matches no option when a custom value is not allowed.
901
+ */
902
+ validate() {
903
+ if (this.resolvedRequired() && this.value() === null)
904
+ return { required: true };
905
+ if (this.resolvedAllowsCustomValue())
906
+ return null;
907
+ if (this.value() === null && this.inputValue() !== '')
908
+ return { unmatched: true };
909
+ return null;
910
+ }
911
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlCombobox, deps: [], target: i0.ɵɵFactoryTarget.Component });
912
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.7", type: SlCombobox, isStandalone: true, selector: "sl-combobox", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, defaultValue: { classPropertyName: "defaultValue", publicName: "defaultValue", isSignal: true, isRequired: false, transformFunction: null }, inputValue: { classPropertyName: "inputValue", publicName: "inputValue", isSignal: true, isRequired: false, transformFunction: null }, open: { classPropertyName: "open", publicName: "open", isSignal: true, isRequired: false, transformFunction: null }, highlightedValue: { classPropertyName: "highlightedValue", publicName: "highlightedValue", isSignal: true, isRequired: false, transformFunction: null }, creatable: { classPropertyName: "creatable", publicName: "creatable", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "aria-label", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, form: { classPropertyName: "form", publicName: "form", isSignal: true, isRequired: false, transformFunction: null }, items: { classPropertyName: "items", publicName: "items", isSignal: true, isRequired: false, transformFunction: null }, total: { classPropertyName: "total", publicName: "total", isSignal: true, isRequired: false, transformFunction: null }, locale: { classPropertyName: "locale", publicName: "locale", isSignal: true, isRequired: false, transformFunction: null }, filter: { classPropertyName: "filter", publicName: "filter", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, side: { classPropertyName: "side", publicName: "side", isSignal: true, isRequired: false, transformFunction: null }, align: { classPropertyName: "align", publicName: "align", isSignal: true, isRequired: false, transformFunction: null }, width: { classPropertyName: "width", publicName: "width", isSignal: true, isRequired: false, transformFunction: null }, mount: { classPropertyName: "mount", publicName: "mount", isSignal: true, isRequired: false, transformFunction: null }, strategy: { classPropertyName: "strategy", publicName: "strategy", isSignal: true, isRequired: false, transformFunction: null }, autocomplete: { classPropertyName: "autocomplete", publicName: "autocomplete", isSignal: true, isRequired: false, transformFunction: null }, openOn: { classPropertyName: "openOn", publicName: "openOn", isSignal: true, isRequired: false, transformFunction: null }, messages: { classPropertyName: "messages", publicName: "messages", isSignal: true, isRequired: false, transformFunction: null }, sideOffset: { classPropertyName: "sideOffset", publicName: "sideOffset", isSignal: true, isRequired: false, transformFunction: null }, alignOffset: { classPropertyName: "alignOffset", publicName: "alignOffset", isSignal: true, isRequired: false, transformFunction: null }, collisionPadding: { classPropertyName: "collisionPadding", publicName: "collisionPadding", isSignal: true, isRequired: false, transformFunction: null }, allowsCustomValue: { classPropertyName: "allowsCustomValue", publicName: "allowsCustomValue", isSignal: true, isRequired: false, transformFunction: null }, autoHighlight: { classPropertyName: "autoHighlight", publicName: "autoHighlight", isSignal: true, isRequired: false, transformFunction: null }, highlightMatch: { classPropertyName: "highlightMatch", publicName: "highlightMatch", isSignal: true, isRequired: false, transformFunction: null }, clearable: { classPropertyName: "clearable", publicName: "clearable", isSignal: true, isRequired: false, transformFunction: null }, loop: { classPropertyName: "loop", publicName: "loop", isSignal: true, isRequired: false, transformFunction: null }, closeOnSelect: { classPropertyName: "closeOnSelect", publicName: "closeOnSelect", isSignal: true, isRequired: false, transformFunction: null }, closeOnEscape: { classPropertyName: "closeOnEscape", publicName: "closeOnEscape", isSignal: true, isRequired: false, transformFunction: null }, closeOnOutsidePress: { classPropertyName: "closeOnOutsidePress", publicName: "closeOnOutsidePress", isSignal: true, isRequired: false, transformFunction: null }, flip: { classPropertyName: "flip", publicName: "flip", isSignal: true, isRequired: false, transformFunction: null }, shift: { classPropertyName: "shift", publicName: "shift", isSignal: true, isRequired: false, transformFunction: null }, hideWhenDetached: { classPropertyName: "hideWhenDetached", publicName: "hideWhenDetached", isSignal: true, isRequired: false, transformFunction: null }, portal: { classPropertyName: "portal", publicName: "portal", isSignal: true, isRequired: false, transformFunction: null }, fullWidth: { classPropertyName: "fullWidth", publicName: "fullWidth", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, readOnly: { classPropertyName: "readOnly", publicName: "readOnly", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, invalid: { classPropertyName: "invalid", publicName: "invalid", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange", valueChangeRequest: "valueChangeRequest", inputValue: "inputValueChange", inputValueChangeRequest: "inputValueChangeRequest", open: "openChange", openChangeRequest: "openChangeRequest", highlightedValue: "highlightedValueChange", highlightedValueChangeRequest: "highlightedValueChangeRequest", loadMore: "loadMore", inputReset: "inputReset", create: "create" }, host: { attributes: { "data-ui": "combobox", "data-part": "root" }, properties: { "attr.aria-label": "null", "attr.data-size": "resolvedSize()", "attr.data-variant": "resolvedVariant()", "attr.data-full-width": "resolvedFullWidth() ? '' : null", "attr.data-open": "isOpen() ? '' : null", "attr.data-disabled": "resolvedDisabled() ? '' : null", "attr.data-readonly": "resolvedReadOnly() ? '' : null", "attr.data-invalid": "resolvedInvalid() ? '' : null", "attr.data-required": "resolvedRequired() ? '' : null", "attr.data-loading": "loading() ? '' : null" } }, providers: [
913
+ { provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => SlCombobox), multi: true },
914
+ { provide: NG_VALIDATORS, useExisting: forwardRef(() => SlCombobox), multi: true },
915
+ ], viewQueries: [{ propertyName: "template", first: true, predicate: ["layer"], descendants: true, isSignal: true }, { propertyName: "controlRef", first: true, predicate: ["control"], descendants: true, isSignal: true }], exportAs: ["slCombobox"], ngImport: i0, template: `
916
+ <input
917
+ #control
918
+ type="text"
919
+ role="combobox"
920
+ data-part="input"
921
+ [id]="controlId()"
922
+ [value]="display()"
923
+ [disabled]="resolvedDisabled()"
924
+ [readOnly]="resolvedReadOnly()"
925
+ [required]="resolvedRequired()"
926
+ [placeholder]="placeholder()"
927
+ [attr.aria-autocomplete]="resolvedAutocomplete()"
928
+ [attr.aria-expanded]="isOpen()"
929
+ [attr.aria-controls]="isOpen() ? contentId : null"
930
+ [attr.aria-activedescendant]="activeDescendant()"
931
+ [attr.aria-label]="ariaLabel() ?? null"
932
+ [attr.aria-describedby]="describedBy()"
933
+ [attr.aria-readonly]="resolvedReadOnly() ? true : null"
934
+ [attr.aria-invalid]="resolvedInvalid() ? true : null"
935
+ (input)="onInput($event)"
936
+ (keydown)="onKeyDown($event)"
937
+ (focus)="onFocus()"
938
+ (click)="onClick($event)"
939
+ (blur)="onBlur($event)"
940
+ />
941
+
942
+ @if (showClear()) {
943
+ <button
944
+ type="button"
945
+ data-part="clear"
946
+ [attr.aria-label]="t('clear')"
947
+ (click)="onClear($event)"
948
+ >
949
+ <span slIcon><svg slGlyph name="x"></svg></span>
950
+ </button>
951
+ }
952
+ <button
953
+ type="button"
954
+ tabindex="-1"
955
+ data-part="trigger"
956
+ [disabled]="resolvedDisabled()"
957
+ [attr.aria-label]="t('trigger')"
958
+ (click)="onToggle($event)"
959
+ >
960
+ @if (loading()) {
961
+ <span data-part="busy" data-ui="spinner" aria-hidden="true"></span>
962
+ } @else {
963
+ <span data-part="arrow"
964
+ ><span slIcon><svg slGlyph name="chevron-down"></svg></span
965
+ ></span>
966
+ }
967
+ </button>
968
+
969
+ @if (name(); as submissionName) {
970
+ <input
971
+ type="text"
972
+ aria-hidden="true"
973
+ tabindex="-1"
974
+ readonly
975
+ [name]="submissionName"
976
+ [attr.form]="form() ?? null"
977
+ [value]="value() ?? ''"
978
+ [required]="resolvedRequired()"
979
+ style="
980
+ position: absolute;
981
+ inline-size: 1px;
982
+ block-size: 1px;
983
+ padding: 0;
984
+ border: 0;
985
+ overflow: hidden;
986
+ clip-path: inset(50%);
987
+ white-space: nowrap;
988
+ "
989
+ />
990
+ }
991
+
992
+ <ng-template #layer>
993
+ <div
994
+ data-ui="combobox"
995
+ data-part="positioner"
996
+ [attr.data-align]="resolvedAlign()"
997
+ [attr.data-size]="resolvedSize()"
998
+ [attr.data-width]="resolvedWidth()"
999
+ [attr.data-open]="isOpen() ? '' : null"
1000
+ [attr.inert]="isOpen() ? null : ''"
1001
+ >
1002
+ <div
1003
+ data-part="content"
1004
+ role="listbox"
1005
+ [id]="contentId"
1006
+ [attr.aria-label]="ariaLabel() ?? null"
1007
+ [attr.aria-busy]="loading() ? true : null"
1008
+ [attr.data-loading]="loading() ? '' : null"
1009
+ >
1010
+ <ng-content />
1011
+ <!--
1012
+ The offer to add what was typed (CB8). It is an option, not a
1013
+ button: ArrowDown reaches it, aria-activedescendant names it and
1014
+ Enter takes it, through the machinery every other option uses. It
1015
+ replaces the empty message rather than standing beside it.
1016
+ -->
1017
+ @if (!loading() && creating(); as query) {
1018
+ <div
1019
+ role="option"
1020
+ data-part="item"
1021
+ data-create
1022
+ [attr.data-value]="query"
1023
+ [id]="optionId(query)"
1024
+ [attr.data-current]="highlightedValue() === query ? '' : null"
1025
+ (click)="onCreateClick(query, $event)"
1026
+ (pointerdown)="onOptionPointerDown($event)"
1027
+ (pointerenter)="setHighlighted(query, 'pointer', $event)"
1028
+ >
1029
+ <span data-part="label">{{ t('create', { query: query }) }}</span>
1030
+ </div>
1031
+ } @else if (!loading() && optionCount() === 0) {
1032
+ <div data-part="empty">{{ t('empty') }}</div>
1033
+ }
1034
+ @if (loading()) {
1035
+ <!--
1036
+ The wait, as the shape of the list that is coming: three rows the
1037
+ height of an option, drawn by the skeleton sheet (SL6/CB5). Hidden
1038
+ assistive technology — the status row is the live region.
1039
+ -->
1040
+ <div data-part="placeholder" aria-hidden="true">
1041
+ @for (row of [0, 1, 2]; track row) {
1042
+ <div>
1043
+ <span data-ui="skeleton" data-part="root" data-shape="text" data-loading></span>
1044
+ </div>
1045
+ }
1046
+ </div>
1047
+ }
1048
+ <div
1049
+ data-part="status"
1050
+ role="status"
1051
+ aria-live="polite"
1052
+ [attr.data-loading]="loading() ? '' : null"
1053
+ >
1054
+ {{ statusMessage() }}
1055
+ </div>
1056
+ </div>
1057
+ </div>
1058
+ </ng-template>
1059
+ `, isInline: true, styles: ["@layer slotted.components{[data-ui=combobox][data-part=root]{--_font-size: var(--slotted-control-font-size-md, 13px);--_height: var(--slotted-control-height-md, 34px);--_padding-inline: var(--slotted-control-padding-inline-md, 13px);--_gap: var(--slotted-control-gap-md, 8px);--_icon-floor: var(--slotted-combobox-icon-size-min, 14px);--_icon-size: max(var(--_icon-floor), var(--slotted-control-icon-size-md, 16px));--_inner-size: var(--slotted-control-inner-size-md, 24px);--_action-size: var( --slotted-combobox-action-size, min(calc(var(--_icon-size) + 2 * var(--slotted-space-2, .25rem)), var(--_inner-size)) );align-items:center;background-color:var(--slotted-combobox-background, var(--slotted-control-surface, Field));border:var(--slotted-control-border-width, 1px) solid var(--slotted-combobox-border-color, var(--slotted-control-border-color, ButtonBorder));border-radius:var(--slotted-combobox-radius, var(--slotted-control-radius, 4px));box-shadow:var(--slotted-combobox-shadow, var(--slotted-control-shadow, none));box-sizing:border-box;color:var(--slotted-combobox-color, var(--slotted-text, CanvasText));display:flex;font-family:var(--slotted-control-font-family, system-ui, sans-serif);font-size:var(--_font-size);gap:var(--slotted-space-1, .125rem);inline-size:100%;min-inline-size:0;min-block-size:var(--_height);padding-inline-start:var(--_padding-inline);padding-inline-end:max(0px,calc(var(--_padding-inline) - (var(--_action-size) - var(--_icon-size)) / 2));transition:background-color var(--slotted-control-transition-duration) var(--slotted-control-transition-easing),border-color var(--slotted-control-transition-duration) var(--slotted-control-transition-easing),box-shadow var(--slotted-control-transition-duration) var(--slotted-control-transition-easing)}[data-ui=combobox][data-part=root]:not([data-full-width]){inline-size:auto}[data-ui=combobox]>[data-part=input]{background-color:transparent;align-self:stretch;margin-block:calc(var(--slotted-control-border-width, 1px) * -1);border:0;color:inherit;flex:1 1 auto;font:inherit;outline:none;padding:0;min-inline-size:0;text-overflow:ellipsis}[data-ui=combobox]>[data-part=input]::placeholder{color:var(--slotted-combobox-placeholder-color, var(--slotted-text-muted, GrayText));text-overflow:ellipsis}[data-ui=combobox]>[data-part=input]::selection{background-color:var( --slotted-combobox-completion-background, var(--slotted-tone-accent-surface) );color:var(--slotted-combobox-completion-color, var(--slotted-tone-accent-text))}[data-ui=combobox]>[data-part=input]:autofill{box-shadow:inset 0 0 0 100px var(--slotted-combobox-autofill-background, var(--slotted-tone-accent-surface));-webkit-text-fill-color:var(--slotted-combobox-color, var(--slotted-text, CanvasText))}[data-ui=combobox]>:is([data-part=clear],[data-part=trigger]){align-items:center;appearance:none;background-color:transparent;block-size:var(--_action-size);border:0;border-radius:var(--slotted-combobox-radius, var(--slotted-control-radius, 4px));color:var(--slotted-combobox-action-color, var(--slotted-text-muted, GrayText));cursor:pointer;display:inline-flex;flex:0 0 auto;inline-size:var(--_action-size);justify-content:center;padding:0;position:relative;touch-action:manipulation;transition:background-color var(--slotted-control-transition-duration) var(--slotted-control-transition-easing),color var(--slotted-control-transition-duration) var(--slotted-control-transition-easing);-webkit-tap-highlight-color:transparent}[data-ui=combobox]>:is([data-part=clear],[data-part=trigger]):after{content:\"\";inset:min(0px,calc((100% - var(--slotted-target-min, 24px)) / 2));position:absolute}@media(pointer:coarse){[data-ui=combobox]>:is([data-part=clear],[data-part=trigger]):after{inset:min(0px,calc((100% - var(--slotted-target-comfortable, 44px)) / 2))}[data-ui=combobox]>[data-part=clear]:has(+[data-part=trigger]:not([hidden])):after{inset-inline-end:0}[data-ui=combobox]>[data-part=clear]:not([hidden])+[data-part=trigger]:after{inset-inline-start:0}}[data-ui=combobox]>:is([data-part=clear],[data-part=trigger]){--slotted-icon-size: var(--_icon-size)}[data-ui=combobox] [data-part=arrow]{align-items:center;block-size:var(--_icon-size);display:flex;inline-size:var(--_icon-size);justify-content:center}[data-ui=combobox] [data-part=arrow]>[data-ui=icon]{transition:rotate var(--slotted-control-transition-duration) var(--slotted-control-transition-easing)}[data-ui=combobox][data-open] [data-part=arrow]>[data-ui=icon]{rotate:180deg}[data-ui=combobox] [data-part=busy]{--slotted-spinner-size: var(--_icon-size);color:var(--slotted-combobox-arrow-color, var(--slotted-text-muted, GrayText));flex:none}[data-ui=combobox][data-part=root][data-size=sm]{--_font-size: var(--slotted-control-font-size-sm, 12px);--_height: var(--slotted-control-height-sm, 30px);--_padding-inline: var(--slotted-control-padding-inline-sm, 10px);--_gap: var(--slotted-control-gap-sm, 6px);--_icon-size: max(var(--_icon-floor), var(--slotted-control-icon-size-sm, 14px));--_inner-size: var(--slotted-control-inner-size-sm, 22px)}[data-ui=combobox][data-part=root][data-size=md]{--_font-size: var(--slotted-control-font-size-md, 13px);--_height: var(--slotted-control-height-md, 34px);--_padding-inline: var(--slotted-control-padding-inline-md, 13px);--_gap: var(--slotted-control-gap-md, 8px);--_icon-size: max(var(--_icon-floor), var(--slotted-control-icon-size-md, 16px));--_inner-size: var(--slotted-control-inner-size-md, 24px)}[data-ui=combobox][data-part=root][data-size=lg]{--_font-size: var(--slotted-control-font-size-lg, 14px);--_height: var(--slotted-control-height-lg, 38px);--_padding-inline: var(--slotted-control-padding-inline-lg, 16px);--_gap: var(--slotted-control-gap-lg, 8px);--_icon-size: max(var(--_icon-floor), var(--slotted-control-icon-size-lg, 18px));--_inner-size: var(--slotted-control-inner-size-lg, 28px)}[data-ui=combobox][data-part=root][data-variant=subtle]{background-color:var( --slotted-combobox-subtle-background, var(--slotted-surface-sunken, Canvas) );border-color:var( --slotted-combobox-subtle-border-color, var(--slotted-border-subtle, ButtonBorder) )}[data-ui=combobox][data-part=root][data-variant=plain]{background-color:transparent;border-color:transparent;border-radius:var(--slotted-radius-none, 0px);box-shadow:none}@media(forced-colors:active){[data-ui=combobox][data-part=root][data-variant=plain]{border-color:ButtonBorder}}[data-ui=combobox][data-part=root]:hover:not([data-disabled]):not([data-readonly]):not([data-invalid]){border-color:var(--slotted-combobox-hover-border-color, var(--slotted-tone-accent-border))}[data-ui=combobox][data-part=root][data-variant=subtle]:hover:not([data-disabled]):not([data-readonly]):not([data-invalid]){background-color:var( --slotted-combobox-subtle-hover-background, var(--slotted-tone-secondary-subtle-hover) )}[data-ui=combobox][data-part=root][data-variant=plain]:hover:not([data-disabled]):not([data-readonly]):not([data-invalid]){background-color:var( --slotted-combobox-plain-hover-background, var(--slotted-tone-secondary-subtle-hover) );border-color:transparent}[data-ui=combobox][data-part=root]:has(>[data-part=input]:focus-visible){box-shadow:var(--slotted-control-shadow-focus-geometry, 0 1px 4px -1px) var(--slotted-focus-ring-color, Highlight);outline:var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);outline-offset:var(--slotted-focus-ring-offset, 2px)}[data-ui=combobox][data-part=root][data-variant=plain]:has(>[data-part=input]:focus-visible){box-shadow:none;outline-offset:calc(var(--slotted-focus-ring-offset, 2px) * -1)}[data-ui=combobox][data-part=root][data-open]:not([data-disabled]){border-color:var(--slotted-combobox-open-border-color, var(--slotted-tone-accent-border))}[data-ui=combobox][data-part=root][data-invalid]{--slotted-focus-ring-color: var( --slotted-combobox-invalid-focus-ring-color, var(--slotted-focus-ring-color-invalid, Highlight) );--_invalid-edge-width: var( --slotted-combobox-invalid-edge-width, var(--slotted-control-invalid-edge-width, 1px) );--_invalid-edge-color: var( --slotted-combobox-invalid-border-color, var(--slotted-tone-danger-border) );--_invalid-edge: inset 0 0 0 var(--_invalid-edge-width) var(--_invalid-edge-color);border-color:var(--slotted-combobox-invalid-border-color, var(--slotted-tone-danger-border));box-shadow:var(--_invalid-edge)}[data-ui=combobox][data-part=root][data-invalid]:has(>[data-part=input]:focus-visible){box-shadow:var(--_invalid-edge),var(--slotted-control-shadow-focus-geometry, 0 1px 4px -1px) var(--slotted-focus-ring-color, Highlight)}[data-ui=combobox][data-part=root][data-variant=plain][data-invalid]:has(>[data-part=input]:focus-visible){box-shadow:inset 0 0 0 calc(var(--slotted-focus-ring-offset, 2px) - var(--slotted-control-border-width, 1px) + var(--_invalid-edge-width)) var(--_invalid-edge-color)}@media(forced-colors:active){[data-ui=combobox][data-part=root][data-invalid]{outline:var(--_invalid-edge-width) solid CanvasText;outline-offset:calc(-1 * (var(--slotted-control-border-width, 1px) + var(--_invalid-edge-width)))}[data-ui=combobox][data-part=root][data-invalid]:has(>[data-part=input]:focus-visible){outline:calc(var(--slotted-focus-ring-width, 2px) + var(--_invalid-edge-width)) double var(--slotted-focus-ring-color, Highlight);outline-offset:var(--slotted-focus-ring-offset, 2px)}[data-ui=combobox][data-part=root][data-variant=plain][data-invalid]:has(>[data-part=input]:focus-visible){outline:calc(var(--slotted-focus-ring-width, 2px) + var(--_invalid-edge-width)) double var(--slotted-focus-ring-color, Highlight);outline-offset:calc(-1 * (var(--slotted-focus-ring-width, 2px) + var(--_invalid-edge-width)))}}[data-ui=combobox][data-part=root][data-readonly]{background-color:var( --slotted-combobox-readonly-background, var(--slotted-tone-secondary-subtle-hover) )}[data-ui=combobox][data-part=root][data-readonly] [data-part=arrow]{opacity:.5}[data-ui=combobox][data-part=root][data-disabled],[data-ui=combobox][data-part=root]:has(>[data-part=input]:disabled){background-color:var( --slotted-combobox-disabled-background, var(--slotted-disabled-background) );border-color:var(--slotted-combobox-disabled-border-color, var(--slotted-disabled-border));box-shadow:none;color:var(--slotted-combobox-disabled-color, var(--slotted-disabled-foreground));cursor:not-allowed}[data-ui=combobox]>:is([data-part=clear],[data-part=trigger]):hover:not(:disabled):not([data-disabled]){background-color:var( --slotted-combobox-action-hover-background, var(--slotted-tone-secondary-subtle-hover) )}[data-ui=combobox]>:is([data-part=clear],[data-part=trigger]):active:not(:disabled):not([data-disabled]){background-color:var( --slotted-combobox-action-active-background, var(--slotted-tone-secondary-subtle-active) )}[data-ui=combobox]>:is([data-part=clear],[data-part=trigger]):focus-visible{outline:var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);outline-offset:calc(var(--slotted-focus-ring-offset, 2px) * -1)}[data-ui=combobox][data-part=positioner]{--_surface: var(--slotted-combobox-surface, var(--slotted-surface-raised, #ffffff));--_text: var(--slotted-combobox-content-text, var(--slotted-text, #0f172a));--_muted: var(--slotted-combobox-content-text-muted, var(--slotted-text-muted, #5b6b7f));--_border-color: var( --slotted-combobox-content-border-color, var(--slotted-border-subtle, #e2e8f0) );--_border-width: var(--slotted-border-width-thin, 1px);--_radius: var(--slotted-combobox-content-radius, var(--slotted-radius-lg, 8px));--_shadow: var(--slotted-combobox-content-shadow, var(--slotted-shadow-md));--_highlight: var(--slotted-combobox-highlight, var(--slotted-tone-secondary-subtle-active));--_highlight-active: var( --slotted-combobox-highlight-active, var(--slotted-tone-accent-surface) );--_selected-color: var(--slotted-combobox-selected-color, var(--slotted-tone-accent-text));--_inset-block: var(--slotted-combobox-content-padding-block, var(--slotted-space-2, .25rem));--_inset-inline: var( --slotted-combobox-content-padding-inline, var(--slotted-space-2, .25rem) );--_item-inset: var(--slotted-control-padding-inline-md, .8125rem);--_item-height: var(--slotted-control-height-md, 34px);--_item-radius: var(--slotted-combobox-item-radius, var(--slotted-control-radius));--_content-font-size: var(--slotted-control-font-size-md, 13px);--_secondary-font-size: var(--slotted-control-font-size-sm, 12px);--_content-icon-size: var(--slotted-control-icon-size-md, 16px);--_column-gap: var(--slotted-control-gap-md, .5rem);--_measure: var(--slotted-combobox-measure, 24rem);position:absolute;inset-block-start:0;z-index:calc(var(--slotted-z-index-popover, 1100) + var(--slotted-layer-depth, 0));isolation:isolate;box-sizing:border-box;pointer-events:none;opacity:0;--_enter-distance: var(--slotted-space-2, .25rem);translate:0 calc(-1 * var(--_enter-distance));transition:opacity var(--slotted-duration-short) var(--slotted-easing-exit),translate var(--slotted-duration-short) var(--slotted-easing-exit)}[data-ui=combobox][data-part=positioner][data-side=top]{translate:0 var(--_enter-distance)}[data-ui=combobox][data-part=positioner]:is([data-side=left],[data-side=right]){translate:0 0}[data-ui=combobox][data-part=positioner][data-open]{opacity:1;translate:0 0;transition:none}[data-ui=combobox][data-part=positioner][data-open][data-positioned]{animation:slotted-combobox-enter-down var(--slotted-duration-medium) var(--slotted-easing-enter)}[data-ui=combobox][data-part=positioner][data-open][data-positioned][data-side=top]{animation-name:slotted-combobox-enter-up}[data-ui=combobox][data-part=positioner][data-open][data-positioned]:is([data-side=left],[data-side=right]){animation-name:slotted-combobox-fade}@keyframes slotted-combobox-enter-down{0%{opacity:0;translate:0 calc(-1 * var(--_enter-distance))}}@keyframes slotted-combobox-enter-up{0%{opacity:0;translate:0 var(--_enter-distance)}}@keyframes slotted-combobox-fade{0%{opacity:0}}@media(prefers-reduced-motion:reduce){[data-ui=combobox][data-part=positioner],[data-ui=combobox][data-part=positioner][data-side=top],[data-ui=combobox][data-part=positioner][data-side=left],[data-ui=combobox][data-part=positioner][data-side=right]{translate:0 0;transition:opacity var(--slotted-duration-short) var(--slotted-easing-exit)}[data-ui=combobox][data-part=positioner][data-open][data-positioned],[data-ui=combobox][data-part=positioner][data-open][data-positioned][data-side=top],[data-ui=combobox][data-part=positioner][data-open][data-positioned][data-side=left],[data-ui=combobox][data-part=positioner][data-open][data-positioned][data-side=right]{animation-name:slotted-combobox-fade}}[data-ui=combobox][data-part=positioner][data-detached]{visibility:hidden}[data-ui=combobox][data-part=positioner][data-width=anchor]{inline-size:var(--slotted-positioner-anchor-width, auto)}[data-ui=combobox][data-part=positioner][data-width=content]{inline-size:max-content;max-inline-size:min(var(--_measure),var(--slotted-positioner-available-width, 100vw));min-inline-size:var(--slotted-positioner-anchor-width, auto)}[data-ui=combobox][data-part=positioner][data-size=sm]{--_item-inset: var(--slotted-control-padding-inline-sm, .625rem);--_item-height: var(--slotted-control-height-sm, 30px);--_content-font-size: var(--slotted-control-font-size-sm, 12px);--_secondary-font-size: var(--slotted-font-size-xs, .75rem);--_content-icon-size: var(--slotted-control-icon-size-sm, 14px);--_column-gap: var(--slotted-control-gap-sm, .375rem)}[data-ui=combobox][data-part=positioner][data-size=lg]{--_item-inset: var(--slotted-control-padding-inline-lg, 1rem);--_item-height: var(--slotted-control-height-lg, 38px);--_content-font-size: var(--slotted-control-font-size-lg, 14px);--_secondary-font-size: var(--slotted-control-font-size-sm, 12px);--_content-icon-size: var(--slotted-control-icon-size-lg, 18px);--_column-gap: var(--slotted-control-gap-lg, .5rem)}[data-ui=combobox]>[data-part=content]{background:var(--_surface);border:var(--_border-width) solid var(--_border-color);border-radius:var(--_radius);box-shadow:var(--_shadow);box-sizing:border-box;color:var(--_text);display:grid;font-family:var(--slotted-font-family-sans);font-size:var(--_content-font-size);grid-template-columns:auto minmax(0,1fr) auto;max-block-size:calc(var(--slotted-positioner-available-height, 100vh) - var(--slotted-space-5, .75rem));outline:none;overflow-y:auto;overscroll-behavior:contain;padding-block:var(--_inset-block);padding-inline:var(--_inset-inline);pointer-events:auto}[data-ui=combobox]>[data-part=content]:focus-visible{outline:none}[data-ui=combobox] [data-part=group]{display:grid;grid-column:1 / -1;grid-template-columns:subgrid}[data-ui=combobox] [data-part=group-label]{color:var(--_muted);font-size:var(--_secondary-font-size);font-weight:var(--slotted-font-weight-semibold, 600);grid-column:1 / -1;line-height:var(--slotted-line-height-sm, 1.45);padding-block:var(--slotted-space-2, .25rem);padding-inline:var(--_item-inset)}[data-ui=combobox] [data-part=item]{align-content:center;border-radius:var(--_item-radius);box-sizing:border-box;cursor:pointer;display:grid;grid-column:1 / -1;grid-template-columns:subgrid;line-height:var(--slotted-line-height-md, 1.5);min-block-size:var(--_item-height);padding-block:var(--slotted-space-2, .25rem);padding-inline:var(--_item-inset);row-gap:var(--slotted-space-1, .125rem);-webkit-user-select:none;user-select:none;transition:background-color var(--slotted-control-transition-duration, var(--slotted-duration-short)) var(--slotted-control-transition-easing, var(--slotted-easing-standard)),color var(--slotted-control-transition-duration, var(--slotted-duration-short)) var(--slotted-control-transition-easing, var(--slotted-easing-standard))}[data-ui=combobox] [data-part=item][data-current]{background-color:var(--_highlight);box-shadow:inset 0 0 0 var(--slotted-border-width-thin, 1px) var(--slotted-combobox-highlight-ring, var(--slotted-tone-accent-border))}[data-ui=combobox] [data-part=item]:not([data-disabled]):active{background-color:var(--_highlight-active)}[data-ui=combobox] [data-part=item][data-selected]{color:var(--_selected-color)}[data-ui=combobox] [data-part=item][data-selected]+[data-part=item][data-selected]{border-start-end-radius:0;border-start-start-radius:0}[data-ui=combobox] [data-part=item][data-selected]:has(+[data-part=item][data-selected]){border-end-end-radius:0;border-end-start-radius:0}[data-ui=combobox] [data-part=item][data-selected]>[data-part=label]{font-weight:var(--slotted-font-weight-medium, 500)}[data-ui=combobox] [data-part=item][data-disabled]{color:var(--slotted-disabled-foreground, #64748b);cursor:not-allowed}[data-ui=combobox] [data-part=item][data-disabled][data-current]{box-shadow:inset 0 0 0 var(--slotted-border-width-thin, 1px) var(--slotted-disabled-border, #cbd5e1);color:var(--slotted-disabled-foreground, #64748b)}[data-ui=combobox] :is([data-part=indicator],[data-part=icon]){block-size:1lh}[data-ui=combobox] [data-part=icon]{--slotted-icon-size: var(--_content-icon-size);align-items:center;display:flex;grid-column:1;grid-row:1;inline-size:var(--_content-icon-size);justify-content:center;justify-self:center;margin-inline-end:var(--_column-gap)}[data-ui=combobox] [data-part=label]{grid-column:2;grid-row:1;min-inline-size:0;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere}[data-ui=combobox] [data-part=description]{color:var(--_muted);font-size:var(--_secondary-font-size);grid-column:2;grid-row:2;line-height:var(--slotted-line-height-sm, 1.45);min-inline-size:0;overflow-wrap:anywhere}[data-ui=combobox] [data-part=item][data-disabled]>[data-part=description]{color:inherit}[data-ui=combobox] [data-part=indicator]{--slotted-icon-size: var(--_content-icon-size);align-items:center;display:flex;grid-column:3;grid-row:1;inline-size:var(--_content-icon-size);justify-content:center;justify-self:end;margin-inline-start:var(--_column-gap);opacity:0;transition:opacity var(--slotted-duration-short) var(--slotted-easing-standard)}[data-ui=combobox] [data-part=item][data-selected]>[data-part=indicator]{opacity:1}[data-ui=combobox] [data-part=separator]{background-color:var(--slotted-combobox-separator-color, var(--_border-color));block-size:var(--_border-width);border:0;grid-column:1 / -1;margin-block:var(--slotted-space-2, .25rem);margin-inline:0}[data-ui=combobox] :is([data-part=empty],[data-part=status]){color:var(--_muted);unicode-bidi:plaintext;grid-column:1 / -1;min-inline-size:min(12rem,100%);padding-block:var(--slotted-space-5, .75rem);padding-inline:var(--_item-inset);text-align:center}[data-ui=combobox] [data-part=status]:empty{display:none}[data-ui=combobox] [data-part=placeholder]{display:grid;grid-column:1 / -1;padding-block:var(--slotted-space-2, .25rem);padding-inline:var(--_item-inset)}[data-ui=combobox] [data-part=placeholder]>*{align-items:center;display:flex;min-block-size:var(--_item-height)}[data-ui=combobox] [data-part=placeholder]>[data-ui=skeleton]{align-self:center}[data-ui=combobox] [data-part=placeholder]>:nth-child(2) [data-ui=skeleton]{inline-size:78%}[data-ui=combobox] [data-part=placeholder]>:nth-child(3) [data-ui=skeleton]{inline-size:56%}[data-ui=combobox]>[data-part=content][data-loading]{cursor:progress}@media(forced-colors:active){[data-ui=combobox] [data-part=item][data-current]{background-color:Highlight;color:HighlightText;forced-color-adjust:none}[data-ui=combobox] [data-part=item][data-disabled][data-current]{background-color:Highlight;color:GrayText}}}\n"], dependencies: [{ kind: "component", type: SlGlyph, selector: "svg[slGlyph]", inputs: ["name", "solid"] }, { kind: "component", type: SlIcon, selector: "[slIcon]", inputs: ["directional", "label", "size", "tone"], exportAs: ["slIcon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
1060
+ }
1061
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlCombobox, decorators: [{
1062
+ type: Component,
1063
+ args: [{ selector: 'sl-combobox', standalone: true, exportAs: 'slCombobox', imports: [SlGlyph, SlIcon], changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, providers: [
1064
+ { provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => SlCombobox), multi: true },
1065
+ { provide: NG_VALIDATORS, useExisting: forwardRef(() => SlCombobox), multi: true },
1066
+ ], host: {
1067
+ 'data-ui': 'combobox',
1068
+ 'data-part': 'root',
1069
+ /* The name a page writes on the element is forwarded to the control, and
1070
+ the root keeps none: ARIA 1.2 does not name a generic element. */
1071
+ '[attr.aria-label]': 'null',
1072
+ '[attr.data-size]': 'resolvedSize()',
1073
+ '[attr.data-variant]': 'resolvedVariant()',
1074
+ '[attr.data-full-width]': "resolvedFullWidth() ? '' : null",
1075
+ '[attr.data-open]': "isOpen() ? '' : null",
1076
+ '[attr.data-disabled]': "resolvedDisabled() ? '' : null",
1077
+ '[attr.data-readonly]': "resolvedReadOnly() ? '' : null",
1078
+ '[attr.data-invalid]': "resolvedInvalid() ? '' : null",
1079
+ '[attr.data-required]': "resolvedRequired() ? '' : null",
1080
+ '[attr.data-loading]': "loading() ? '' : null",
1081
+ }, template: `
1082
+ <input
1083
+ #control
1084
+ type="text"
1085
+ role="combobox"
1086
+ data-part="input"
1087
+ [id]="controlId()"
1088
+ [value]="display()"
1089
+ [disabled]="resolvedDisabled()"
1090
+ [readOnly]="resolvedReadOnly()"
1091
+ [required]="resolvedRequired()"
1092
+ [placeholder]="placeholder()"
1093
+ [attr.aria-autocomplete]="resolvedAutocomplete()"
1094
+ [attr.aria-expanded]="isOpen()"
1095
+ [attr.aria-controls]="isOpen() ? contentId : null"
1096
+ [attr.aria-activedescendant]="activeDescendant()"
1097
+ [attr.aria-label]="ariaLabel() ?? null"
1098
+ [attr.aria-describedby]="describedBy()"
1099
+ [attr.aria-readonly]="resolvedReadOnly() ? true : null"
1100
+ [attr.aria-invalid]="resolvedInvalid() ? true : null"
1101
+ (input)="onInput($event)"
1102
+ (keydown)="onKeyDown($event)"
1103
+ (focus)="onFocus()"
1104
+ (click)="onClick($event)"
1105
+ (blur)="onBlur($event)"
1106
+ />
1107
+
1108
+ @if (showClear()) {
1109
+ <button
1110
+ type="button"
1111
+ data-part="clear"
1112
+ [attr.aria-label]="t('clear')"
1113
+ (click)="onClear($event)"
1114
+ >
1115
+ <span slIcon><svg slGlyph name="x"></svg></span>
1116
+ </button>
1117
+ }
1118
+ <button
1119
+ type="button"
1120
+ tabindex="-1"
1121
+ data-part="trigger"
1122
+ [disabled]="resolvedDisabled()"
1123
+ [attr.aria-label]="t('trigger')"
1124
+ (click)="onToggle($event)"
1125
+ >
1126
+ @if (loading()) {
1127
+ <span data-part="busy" data-ui="spinner" aria-hidden="true"></span>
1128
+ } @else {
1129
+ <span data-part="arrow"
1130
+ ><span slIcon><svg slGlyph name="chevron-down"></svg></span
1131
+ ></span>
1132
+ }
1133
+ </button>
1134
+
1135
+ @if (name(); as submissionName) {
1136
+ <input
1137
+ type="text"
1138
+ aria-hidden="true"
1139
+ tabindex="-1"
1140
+ readonly
1141
+ [name]="submissionName"
1142
+ [attr.form]="form() ?? null"
1143
+ [value]="value() ?? ''"
1144
+ [required]="resolvedRequired()"
1145
+ style="
1146
+ position: absolute;
1147
+ inline-size: 1px;
1148
+ block-size: 1px;
1149
+ padding: 0;
1150
+ border: 0;
1151
+ overflow: hidden;
1152
+ clip-path: inset(50%);
1153
+ white-space: nowrap;
1154
+ "
1155
+ />
1156
+ }
1157
+
1158
+ <ng-template #layer>
1159
+ <div
1160
+ data-ui="combobox"
1161
+ data-part="positioner"
1162
+ [attr.data-align]="resolvedAlign()"
1163
+ [attr.data-size]="resolvedSize()"
1164
+ [attr.data-width]="resolvedWidth()"
1165
+ [attr.data-open]="isOpen() ? '' : null"
1166
+ [attr.inert]="isOpen() ? null : ''"
1167
+ >
1168
+ <div
1169
+ data-part="content"
1170
+ role="listbox"
1171
+ [id]="contentId"
1172
+ [attr.aria-label]="ariaLabel() ?? null"
1173
+ [attr.aria-busy]="loading() ? true : null"
1174
+ [attr.data-loading]="loading() ? '' : null"
1175
+ >
1176
+ <ng-content />
1177
+ <!--
1178
+ The offer to add what was typed (CB8). It is an option, not a
1179
+ button: ArrowDown reaches it, aria-activedescendant names it and
1180
+ Enter takes it, through the machinery every other option uses. It
1181
+ replaces the empty message rather than standing beside it.
1182
+ -->
1183
+ @if (!loading() && creating(); as query) {
1184
+ <div
1185
+ role="option"
1186
+ data-part="item"
1187
+ data-create
1188
+ [attr.data-value]="query"
1189
+ [id]="optionId(query)"
1190
+ [attr.data-current]="highlightedValue() === query ? '' : null"
1191
+ (click)="onCreateClick(query, $event)"
1192
+ (pointerdown)="onOptionPointerDown($event)"
1193
+ (pointerenter)="setHighlighted(query, 'pointer', $event)"
1194
+ >
1195
+ <span data-part="label">{{ t('create', { query: query }) }}</span>
1196
+ </div>
1197
+ } @else if (!loading() && optionCount() === 0) {
1198
+ <div data-part="empty">{{ t('empty') }}</div>
1199
+ }
1200
+ @if (loading()) {
1201
+ <!--
1202
+ The wait, as the shape of the list that is coming: three rows the
1203
+ height of an option, drawn by the skeleton sheet (SL6/CB5). Hidden
1204
+ assistive technology — the status row is the live region.
1205
+ -->
1206
+ <div data-part="placeholder" aria-hidden="true">
1207
+ @for (row of [0, 1, 2]; track row) {
1208
+ <div>
1209
+ <span data-ui="skeleton" data-part="root" data-shape="text" data-loading></span>
1210
+ </div>
1211
+ }
1212
+ </div>
1213
+ }
1214
+ <div
1215
+ data-part="status"
1216
+ role="status"
1217
+ aria-live="polite"
1218
+ [attr.data-loading]="loading() ? '' : null"
1219
+ >
1220
+ {{ statusMessage() }}
1221
+ </div>
1222
+ </div>
1223
+ </div>
1224
+ </ng-template>
1225
+ `, styles: ["@layer slotted.components{[data-ui=combobox][data-part=root]{--_font-size: var(--slotted-control-font-size-md, 13px);--_height: var(--slotted-control-height-md, 34px);--_padding-inline: var(--slotted-control-padding-inline-md, 13px);--_gap: var(--slotted-control-gap-md, 8px);--_icon-floor: var(--slotted-combobox-icon-size-min, 14px);--_icon-size: max(var(--_icon-floor), var(--slotted-control-icon-size-md, 16px));--_inner-size: var(--slotted-control-inner-size-md, 24px);--_action-size: var( --slotted-combobox-action-size, min(calc(var(--_icon-size) + 2 * var(--slotted-space-2, .25rem)), var(--_inner-size)) );align-items:center;background-color:var(--slotted-combobox-background, var(--slotted-control-surface, Field));border:var(--slotted-control-border-width, 1px) solid var(--slotted-combobox-border-color, var(--slotted-control-border-color, ButtonBorder));border-radius:var(--slotted-combobox-radius, var(--slotted-control-radius, 4px));box-shadow:var(--slotted-combobox-shadow, var(--slotted-control-shadow, none));box-sizing:border-box;color:var(--slotted-combobox-color, var(--slotted-text, CanvasText));display:flex;font-family:var(--slotted-control-font-family, system-ui, sans-serif);font-size:var(--_font-size);gap:var(--slotted-space-1, .125rem);inline-size:100%;min-inline-size:0;min-block-size:var(--_height);padding-inline-start:var(--_padding-inline);padding-inline-end:max(0px,calc(var(--_padding-inline) - (var(--_action-size) - var(--_icon-size)) / 2));transition:background-color var(--slotted-control-transition-duration) var(--slotted-control-transition-easing),border-color var(--slotted-control-transition-duration) var(--slotted-control-transition-easing),box-shadow var(--slotted-control-transition-duration) var(--slotted-control-transition-easing)}[data-ui=combobox][data-part=root]:not([data-full-width]){inline-size:auto}[data-ui=combobox]>[data-part=input]{background-color:transparent;align-self:stretch;margin-block:calc(var(--slotted-control-border-width, 1px) * -1);border:0;color:inherit;flex:1 1 auto;font:inherit;outline:none;padding:0;min-inline-size:0;text-overflow:ellipsis}[data-ui=combobox]>[data-part=input]::placeholder{color:var(--slotted-combobox-placeholder-color, var(--slotted-text-muted, GrayText));text-overflow:ellipsis}[data-ui=combobox]>[data-part=input]::selection{background-color:var( --slotted-combobox-completion-background, var(--slotted-tone-accent-surface) );color:var(--slotted-combobox-completion-color, var(--slotted-tone-accent-text))}[data-ui=combobox]>[data-part=input]:autofill{box-shadow:inset 0 0 0 100px var(--slotted-combobox-autofill-background, var(--slotted-tone-accent-surface));-webkit-text-fill-color:var(--slotted-combobox-color, var(--slotted-text, CanvasText))}[data-ui=combobox]>:is([data-part=clear],[data-part=trigger]){align-items:center;appearance:none;background-color:transparent;block-size:var(--_action-size);border:0;border-radius:var(--slotted-combobox-radius, var(--slotted-control-radius, 4px));color:var(--slotted-combobox-action-color, var(--slotted-text-muted, GrayText));cursor:pointer;display:inline-flex;flex:0 0 auto;inline-size:var(--_action-size);justify-content:center;padding:0;position:relative;touch-action:manipulation;transition:background-color var(--slotted-control-transition-duration) var(--slotted-control-transition-easing),color var(--slotted-control-transition-duration) var(--slotted-control-transition-easing);-webkit-tap-highlight-color:transparent}[data-ui=combobox]>:is([data-part=clear],[data-part=trigger]):after{content:\"\";inset:min(0px,calc((100% - var(--slotted-target-min, 24px)) / 2));position:absolute}@media(pointer:coarse){[data-ui=combobox]>:is([data-part=clear],[data-part=trigger]):after{inset:min(0px,calc((100% - var(--slotted-target-comfortable, 44px)) / 2))}[data-ui=combobox]>[data-part=clear]:has(+[data-part=trigger]:not([hidden])):after{inset-inline-end:0}[data-ui=combobox]>[data-part=clear]:not([hidden])+[data-part=trigger]:after{inset-inline-start:0}}[data-ui=combobox]>:is([data-part=clear],[data-part=trigger]){--slotted-icon-size: var(--_icon-size)}[data-ui=combobox] [data-part=arrow]{align-items:center;block-size:var(--_icon-size);display:flex;inline-size:var(--_icon-size);justify-content:center}[data-ui=combobox] [data-part=arrow]>[data-ui=icon]{transition:rotate var(--slotted-control-transition-duration) var(--slotted-control-transition-easing)}[data-ui=combobox][data-open] [data-part=arrow]>[data-ui=icon]{rotate:180deg}[data-ui=combobox] [data-part=busy]{--slotted-spinner-size: var(--_icon-size);color:var(--slotted-combobox-arrow-color, var(--slotted-text-muted, GrayText));flex:none}[data-ui=combobox][data-part=root][data-size=sm]{--_font-size: var(--slotted-control-font-size-sm, 12px);--_height: var(--slotted-control-height-sm, 30px);--_padding-inline: var(--slotted-control-padding-inline-sm, 10px);--_gap: var(--slotted-control-gap-sm, 6px);--_icon-size: max(var(--_icon-floor), var(--slotted-control-icon-size-sm, 14px));--_inner-size: var(--slotted-control-inner-size-sm, 22px)}[data-ui=combobox][data-part=root][data-size=md]{--_font-size: var(--slotted-control-font-size-md, 13px);--_height: var(--slotted-control-height-md, 34px);--_padding-inline: var(--slotted-control-padding-inline-md, 13px);--_gap: var(--slotted-control-gap-md, 8px);--_icon-size: max(var(--_icon-floor), var(--slotted-control-icon-size-md, 16px));--_inner-size: var(--slotted-control-inner-size-md, 24px)}[data-ui=combobox][data-part=root][data-size=lg]{--_font-size: var(--slotted-control-font-size-lg, 14px);--_height: var(--slotted-control-height-lg, 38px);--_padding-inline: var(--slotted-control-padding-inline-lg, 16px);--_gap: var(--slotted-control-gap-lg, 8px);--_icon-size: max(var(--_icon-floor), var(--slotted-control-icon-size-lg, 18px));--_inner-size: var(--slotted-control-inner-size-lg, 28px)}[data-ui=combobox][data-part=root][data-variant=subtle]{background-color:var( --slotted-combobox-subtle-background, var(--slotted-surface-sunken, Canvas) );border-color:var( --slotted-combobox-subtle-border-color, var(--slotted-border-subtle, ButtonBorder) )}[data-ui=combobox][data-part=root][data-variant=plain]{background-color:transparent;border-color:transparent;border-radius:var(--slotted-radius-none, 0px);box-shadow:none}@media(forced-colors:active){[data-ui=combobox][data-part=root][data-variant=plain]{border-color:ButtonBorder}}[data-ui=combobox][data-part=root]:hover:not([data-disabled]):not([data-readonly]):not([data-invalid]){border-color:var(--slotted-combobox-hover-border-color, var(--slotted-tone-accent-border))}[data-ui=combobox][data-part=root][data-variant=subtle]:hover:not([data-disabled]):not([data-readonly]):not([data-invalid]){background-color:var( --slotted-combobox-subtle-hover-background, var(--slotted-tone-secondary-subtle-hover) )}[data-ui=combobox][data-part=root][data-variant=plain]:hover:not([data-disabled]):not([data-readonly]):not([data-invalid]){background-color:var( --slotted-combobox-plain-hover-background, var(--slotted-tone-secondary-subtle-hover) );border-color:transparent}[data-ui=combobox][data-part=root]:has(>[data-part=input]:focus-visible){box-shadow:var(--slotted-control-shadow-focus-geometry, 0 1px 4px -1px) var(--slotted-focus-ring-color, Highlight);outline:var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);outline-offset:var(--slotted-focus-ring-offset, 2px)}[data-ui=combobox][data-part=root][data-variant=plain]:has(>[data-part=input]:focus-visible){box-shadow:none;outline-offset:calc(var(--slotted-focus-ring-offset, 2px) * -1)}[data-ui=combobox][data-part=root][data-open]:not([data-disabled]){border-color:var(--slotted-combobox-open-border-color, var(--slotted-tone-accent-border))}[data-ui=combobox][data-part=root][data-invalid]{--slotted-focus-ring-color: var( --slotted-combobox-invalid-focus-ring-color, var(--slotted-focus-ring-color-invalid, Highlight) );--_invalid-edge-width: var( --slotted-combobox-invalid-edge-width, var(--slotted-control-invalid-edge-width, 1px) );--_invalid-edge-color: var( --slotted-combobox-invalid-border-color, var(--slotted-tone-danger-border) );--_invalid-edge: inset 0 0 0 var(--_invalid-edge-width) var(--_invalid-edge-color);border-color:var(--slotted-combobox-invalid-border-color, var(--slotted-tone-danger-border));box-shadow:var(--_invalid-edge)}[data-ui=combobox][data-part=root][data-invalid]:has(>[data-part=input]:focus-visible){box-shadow:var(--_invalid-edge),var(--slotted-control-shadow-focus-geometry, 0 1px 4px -1px) var(--slotted-focus-ring-color, Highlight)}[data-ui=combobox][data-part=root][data-variant=plain][data-invalid]:has(>[data-part=input]:focus-visible){box-shadow:inset 0 0 0 calc(var(--slotted-focus-ring-offset, 2px) - var(--slotted-control-border-width, 1px) + var(--_invalid-edge-width)) var(--_invalid-edge-color)}@media(forced-colors:active){[data-ui=combobox][data-part=root][data-invalid]{outline:var(--_invalid-edge-width) solid CanvasText;outline-offset:calc(-1 * (var(--slotted-control-border-width, 1px) + var(--_invalid-edge-width)))}[data-ui=combobox][data-part=root][data-invalid]:has(>[data-part=input]:focus-visible){outline:calc(var(--slotted-focus-ring-width, 2px) + var(--_invalid-edge-width)) double var(--slotted-focus-ring-color, Highlight);outline-offset:var(--slotted-focus-ring-offset, 2px)}[data-ui=combobox][data-part=root][data-variant=plain][data-invalid]:has(>[data-part=input]:focus-visible){outline:calc(var(--slotted-focus-ring-width, 2px) + var(--_invalid-edge-width)) double var(--slotted-focus-ring-color, Highlight);outline-offset:calc(-1 * (var(--slotted-focus-ring-width, 2px) + var(--_invalid-edge-width)))}}[data-ui=combobox][data-part=root][data-readonly]{background-color:var( --slotted-combobox-readonly-background, var(--slotted-tone-secondary-subtle-hover) )}[data-ui=combobox][data-part=root][data-readonly] [data-part=arrow]{opacity:.5}[data-ui=combobox][data-part=root][data-disabled],[data-ui=combobox][data-part=root]:has(>[data-part=input]:disabled){background-color:var( --slotted-combobox-disabled-background, var(--slotted-disabled-background) );border-color:var(--slotted-combobox-disabled-border-color, var(--slotted-disabled-border));box-shadow:none;color:var(--slotted-combobox-disabled-color, var(--slotted-disabled-foreground));cursor:not-allowed}[data-ui=combobox]>:is([data-part=clear],[data-part=trigger]):hover:not(:disabled):not([data-disabled]){background-color:var( --slotted-combobox-action-hover-background, var(--slotted-tone-secondary-subtle-hover) )}[data-ui=combobox]>:is([data-part=clear],[data-part=trigger]):active:not(:disabled):not([data-disabled]){background-color:var( --slotted-combobox-action-active-background, var(--slotted-tone-secondary-subtle-active) )}[data-ui=combobox]>:is([data-part=clear],[data-part=trigger]):focus-visible{outline:var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);outline-offset:calc(var(--slotted-focus-ring-offset, 2px) * -1)}[data-ui=combobox][data-part=positioner]{--_surface: var(--slotted-combobox-surface, var(--slotted-surface-raised, #ffffff));--_text: var(--slotted-combobox-content-text, var(--slotted-text, #0f172a));--_muted: var(--slotted-combobox-content-text-muted, var(--slotted-text-muted, #5b6b7f));--_border-color: var( --slotted-combobox-content-border-color, var(--slotted-border-subtle, #e2e8f0) );--_border-width: var(--slotted-border-width-thin, 1px);--_radius: var(--slotted-combobox-content-radius, var(--slotted-radius-lg, 8px));--_shadow: var(--slotted-combobox-content-shadow, var(--slotted-shadow-md));--_highlight: var(--slotted-combobox-highlight, var(--slotted-tone-secondary-subtle-active));--_highlight-active: var( --slotted-combobox-highlight-active, var(--slotted-tone-accent-surface) );--_selected-color: var(--slotted-combobox-selected-color, var(--slotted-tone-accent-text));--_inset-block: var(--slotted-combobox-content-padding-block, var(--slotted-space-2, .25rem));--_inset-inline: var( --slotted-combobox-content-padding-inline, var(--slotted-space-2, .25rem) );--_item-inset: var(--slotted-control-padding-inline-md, .8125rem);--_item-height: var(--slotted-control-height-md, 34px);--_item-radius: var(--slotted-combobox-item-radius, var(--slotted-control-radius));--_content-font-size: var(--slotted-control-font-size-md, 13px);--_secondary-font-size: var(--slotted-control-font-size-sm, 12px);--_content-icon-size: var(--slotted-control-icon-size-md, 16px);--_column-gap: var(--slotted-control-gap-md, .5rem);--_measure: var(--slotted-combobox-measure, 24rem);position:absolute;inset-block-start:0;z-index:calc(var(--slotted-z-index-popover, 1100) + var(--slotted-layer-depth, 0));isolation:isolate;box-sizing:border-box;pointer-events:none;opacity:0;--_enter-distance: var(--slotted-space-2, .25rem);translate:0 calc(-1 * var(--_enter-distance));transition:opacity var(--slotted-duration-short) var(--slotted-easing-exit),translate var(--slotted-duration-short) var(--slotted-easing-exit)}[data-ui=combobox][data-part=positioner][data-side=top]{translate:0 var(--_enter-distance)}[data-ui=combobox][data-part=positioner]:is([data-side=left],[data-side=right]){translate:0 0}[data-ui=combobox][data-part=positioner][data-open]{opacity:1;translate:0 0;transition:none}[data-ui=combobox][data-part=positioner][data-open][data-positioned]{animation:slotted-combobox-enter-down var(--slotted-duration-medium) var(--slotted-easing-enter)}[data-ui=combobox][data-part=positioner][data-open][data-positioned][data-side=top]{animation-name:slotted-combobox-enter-up}[data-ui=combobox][data-part=positioner][data-open][data-positioned]:is([data-side=left],[data-side=right]){animation-name:slotted-combobox-fade}@keyframes slotted-combobox-enter-down{0%{opacity:0;translate:0 calc(-1 * var(--_enter-distance))}}@keyframes slotted-combobox-enter-up{0%{opacity:0;translate:0 var(--_enter-distance)}}@keyframes slotted-combobox-fade{0%{opacity:0}}@media(prefers-reduced-motion:reduce){[data-ui=combobox][data-part=positioner],[data-ui=combobox][data-part=positioner][data-side=top],[data-ui=combobox][data-part=positioner][data-side=left],[data-ui=combobox][data-part=positioner][data-side=right]{translate:0 0;transition:opacity var(--slotted-duration-short) var(--slotted-easing-exit)}[data-ui=combobox][data-part=positioner][data-open][data-positioned],[data-ui=combobox][data-part=positioner][data-open][data-positioned][data-side=top],[data-ui=combobox][data-part=positioner][data-open][data-positioned][data-side=left],[data-ui=combobox][data-part=positioner][data-open][data-positioned][data-side=right]{animation-name:slotted-combobox-fade}}[data-ui=combobox][data-part=positioner][data-detached]{visibility:hidden}[data-ui=combobox][data-part=positioner][data-width=anchor]{inline-size:var(--slotted-positioner-anchor-width, auto)}[data-ui=combobox][data-part=positioner][data-width=content]{inline-size:max-content;max-inline-size:min(var(--_measure),var(--slotted-positioner-available-width, 100vw));min-inline-size:var(--slotted-positioner-anchor-width, auto)}[data-ui=combobox][data-part=positioner][data-size=sm]{--_item-inset: var(--slotted-control-padding-inline-sm, .625rem);--_item-height: var(--slotted-control-height-sm, 30px);--_content-font-size: var(--slotted-control-font-size-sm, 12px);--_secondary-font-size: var(--slotted-font-size-xs, .75rem);--_content-icon-size: var(--slotted-control-icon-size-sm, 14px);--_column-gap: var(--slotted-control-gap-sm, .375rem)}[data-ui=combobox][data-part=positioner][data-size=lg]{--_item-inset: var(--slotted-control-padding-inline-lg, 1rem);--_item-height: var(--slotted-control-height-lg, 38px);--_content-font-size: var(--slotted-control-font-size-lg, 14px);--_secondary-font-size: var(--slotted-control-font-size-sm, 12px);--_content-icon-size: var(--slotted-control-icon-size-lg, 18px);--_column-gap: var(--slotted-control-gap-lg, .5rem)}[data-ui=combobox]>[data-part=content]{background:var(--_surface);border:var(--_border-width) solid var(--_border-color);border-radius:var(--_radius);box-shadow:var(--_shadow);box-sizing:border-box;color:var(--_text);display:grid;font-family:var(--slotted-font-family-sans);font-size:var(--_content-font-size);grid-template-columns:auto minmax(0,1fr) auto;max-block-size:calc(var(--slotted-positioner-available-height, 100vh) - var(--slotted-space-5, .75rem));outline:none;overflow-y:auto;overscroll-behavior:contain;padding-block:var(--_inset-block);padding-inline:var(--_inset-inline);pointer-events:auto}[data-ui=combobox]>[data-part=content]:focus-visible{outline:none}[data-ui=combobox] [data-part=group]{display:grid;grid-column:1 / -1;grid-template-columns:subgrid}[data-ui=combobox] [data-part=group-label]{color:var(--_muted);font-size:var(--_secondary-font-size);font-weight:var(--slotted-font-weight-semibold, 600);grid-column:1 / -1;line-height:var(--slotted-line-height-sm, 1.45);padding-block:var(--slotted-space-2, .25rem);padding-inline:var(--_item-inset)}[data-ui=combobox] [data-part=item]{align-content:center;border-radius:var(--_item-radius);box-sizing:border-box;cursor:pointer;display:grid;grid-column:1 / -1;grid-template-columns:subgrid;line-height:var(--slotted-line-height-md, 1.5);min-block-size:var(--_item-height);padding-block:var(--slotted-space-2, .25rem);padding-inline:var(--_item-inset);row-gap:var(--slotted-space-1, .125rem);-webkit-user-select:none;user-select:none;transition:background-color var(--slotted-control-transition-duration, var(--slotted-duration-short)) var(--slotted-control-transition-easing, var(--slotted-easing-standard)),color var(--slotted-control-transition-duration, var(--slotted-duration-short)) var(--slotted-control-transition-easing, var(--slotted-easing-standard))}[data-ui=combobox] [data-part=item][data-current]{background-color:var(--_highlight);box-shadow:inset 0 0 0 var(--slotted-border-width-thin, 1px) var(--slotted-combobox-highlight-ring, var(--slotted-tone-accent-border))}[data-ui=combobox] [data-part=item]:not([data-disabled]):active{background-color:var(--_highlight-active)}[data-ui=combobox] [data-part=item][data-selected]{color:var(--_selected-color)}[data-ui=combobox] [data-part=item][data-selected]+[data-part=item][data-selected]{border-start-end-radius:0;border-start-start-radius:0}[data-ui=combobox] [data-part=item][data-selected]:has(+[data-part=item][data-selected]){border-end-end-radius:0;border-end-start-radius:0}[data-ui=combobox] [data-part=item][data-selected]>[data-part=label]{font-weight:var(--slotted-font-weight-medium, 500)}[data-ui=combobox] [data-part=item][data-disabled]{color:var(--slotted-disabled-foreground, #64748b);cursor:not-allowed}[data-ui=combobox] [data-part=item][data-disabled][data-current]{box-shadow:inset 0 0 0 var(--slotted-border-width-thin, 1px) var(--slotted-disabled-border, #cbd5e1);color:var(--slotted-disabled-foreground, #64748b)}[data-ui=combobox] :is([data-part=indicator],[data-part=icon]){block-size:1lh}[data-ui=combobox] [data-part=icon]{--slotted-icon-size: var(--_content-icon-size);align-items:center;display:flex;grid-column:1;grid-row:1;inline-size:var(--_content-icon-size);justify-content:center;justify-self:center;margin-inline-end:var(--_column-gap)}[data-ui=combobox] [data-part=label]{grid-column:2;grid-row:1;min-inline-size:0;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere}[data-ui=combobox] [data-part=description]{color:var(--_muted);font-size:var(--_secondary-font-size);grid-column:2;grid-row:2;line-height:var(--slotted-line-height-sm, 1.45);min-inline-size:0;overflow-wrap:anywhere}[data-ui=combobox] [data-part=item][data-disabled]>[data-part=description]{color:inherit}[data-ui=combobox] [data-part=indicator]{--slotted-icon-size: var(--_content-icon-size);align-items:center;display:flex;grid-column:3;grid-row:1;inline-size:var(--_content-icon-size);justify-content:center;justify-self:end;margin-inline-start:var(--_column-gap);opacity:0;transition:opacity var(--slotted-duration-short) var(--slotted-easing-standard)}[data-ui=combobox] [data-part=item][data-selected]>[data-part=indicator]{opacity:1}[data-ui=combobox] [data-part=separator]{background-color:var(--slotted-combobox-separator-color, var(--_border-color));block-size:var(--_border-width);border:0;grid-column:1 / -1;margin-block:var(--slotted-space-2, .25rem);margin-inline:0}[data-ui=combobox] :is([data-part=empty],[data-part=status]){color:var(--_muted);unicode-bidi:plaintext;grid-column:1 / -1;min-inline-size:min(12rem,100%);padding-block:var(--slotted-space-5, .75rem);padding-inline:var(--_item-inset);text-align:center}[data-ui=combobox] [data-part=status]:empty{display:none}[data-ui=combobox] [data-part=placeholder]{display:grid;grid-column:1 / -1;padding-block:var(--slotted-space-2, .25rem);padding-inline:var(--_item-inset)}[data-ui=combobox] [data-part=placeholder]>*{align-items:center;display:flex;min-block-size:var(--_item-height)}[data-ui=combobox] [data-part=placeholder]>[data-ui=skeleton]{align-self:center}[data-ui=combobox] [data-part=placeholder]>:nth-child(2) [data-ui=skeleton]{inline-size:78%}[data-ui=combobox] [data-part=placeholder]>:nth-child(3) [data-ui=skeleton]{inline-size:56%}[data-ui=combobox]>[data-part=content][data-loading]{cursor:progress}@media(forced-colors:active){[data-ui=combobox] [data-part=item][data-current]{background-color:Highlight;color:HighlightText;forced-color-adjust:none}[data-ui=combobox] [data-part=item][data-disabled][data-current]{background-color:Highlight;color:GrayText}}}\n"] }]
1226
+ }], ctorParameters: () => [], propDecorators: { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], valueChangeRequest: [{ type: i0.Output, args: ["valueChangeRequest"] }], defaultValue: [{ type: i0.Input, args: [{ isSignal: true, alias: "defaultValue", required: false }] }], inputValue: [{ type: i0.Input, args: [{ isSignal: true, alias: "inputValue", required: false }] }, { type: i0.Output, args: ["inputValueChange"] }], inputValueChangeRequest: [{ type: i0.Output, args: ["inputValueChangeRequest"] }], open: [{ type: i0.Input, args: [{ isSignal: true, alias: "open", required: false }] }, { type: i0.Output, args: ["openChange"] }], openChangeRequest: [{ type: i0.Output, args: ["openChangeRequest"] }], highlightedValue: [{ type: i0.Input, args: [{ isSignal: true, alias: "highlightedValue", required: false }] }, { type: i0.Output, args: ["highlightedValueChange"] }], highlightedValueChangeRequest: [{ type: i0.Output, args: ["highlightedValueChangeRequest"] }], loadMore: [{ type: i0.Output, args: ["loadMore"] }], inputReset: [{ type: i0.Output, args: ["inputReset"] }], create: [{ type: i0.Output, args: ["create"] }], creatable: [{ type: i0.Input, args: [{ isSignal: true, alias: "creatable", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "aria-label", required: false }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: false }] }], form: [{ type: i0.Input, args: [{ isSignal: true, alias: "form", required: false }] }], items: [{ type: i0.Input, args: [{ isSignal: true, alias: "items", required: false }] }], total: [{ type: i0.Input, args: [{ isSignal: true, alias: "total", required: false }] }], locale: [{ type: i0.Input, args: [{ isSignal: true, alias: "locale", required: false }] }], filter: [{ type: i0.Input, args: [{ isSignal: true, alias: "filter", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], side: [{ type: i0.Input, args: [{ isSignal: true, alias: "side", required: false }] }], align: [{ type: i0.Input, args: [{ isSignal: true, alias: "align", required: false }] }], width: [{ type: i0.Input, args: [{ isSignal: true, alias: "width", required: false }] }], mount: [{ type: i0.Input, args: [{ isSignal: true, alias: "mount", required: false }] }], strategy: [{ type: i0.Input, args: [{ isSignal: true, alias: "strategy", required: false }] }], autocomplete: [{ type: i0.Input, args: [{ isSignal: true, alias: "autocomplete", required: false }] }], openOn: [{ type: i0.Input, args: [{ isSignal: true, alias: "openOn", required: false }] }], messages: [{ type: i0.Input, args: [{ isSignal: true, alias: "messages", required: false }] }], sideOffset: [{ type: i0.Input, args: [{ isSignal: true, alias: "sideOffset", required: false }] }], alignOffset: [{ type: i0.Input, args: [{ isSignal: true, alias: "alignOffset", required: false }] }], collisionPadding: [{ type: i0.Input, args: [{ isSignal: true, alias: "collisionPadding", required: false }] }], allowsCustomValue: [{ type: i0.Input, args: [{ isSignal: true, alias: "allowsCustomValue", required: false }] }], autoHighlight: [{ type: i0.Input, args: [{ isSignal: true, alias: "autoHighlight", required: false }] }], highlightMatch: [{ type: i0.Input, args: [{ isSignal: true, alias: "highlightMatch", required: false }] }], clearable: [{ type: i0.Input, args: [{ isSignal: true, alias: "clearable", required: false }] }], loop: [{ type: i0.Input, args: [{ isSignal: true, alias: "loop", required: false }] }], closeOnSelect: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeOnSelect", required: false }] }], closeOnEscape: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeOnEscape", required: false }] }], closeOnOutsidePress: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeOnOutsidePress", required: false }] }], flip: [{ type: i0.Input, args: [{ isSignal: true, alias: "flip", required: false }] }], shift: [{ type: i0.Input, args: [{ isSignal: true, alias: "shift", required: false }] }], hideWhenDetached: [{ type: i0.Input, args: [{ isSignal: true, alias: "hideWhenDetached", required: false }] }], portal: [{ type: i0.Input, args: [{ isSignal: true, alias: "portal", required: false }] }], fullWidth: [{ type: i0.Input, args: [{ isSignal: true, alias: "fullWidth", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], readOnly: [{ type: i0.Input, args: [{ isSignal: true, alias: "readOnly", required: false }] }], required: [{ type: i0.Input, args: [{ isSignal: true, alias: "required", required: false }] }], invalid: [{ type: i0.Input, args: [{ isSignal: true, alias: "invalid", required: false }] }], loading: [{ type: i0.Input, args: [{ isSignal: true, alias: "loading", required: false }] }], template: [{ type: i0.ViewChild, args: ['layer', { isSignal: true }] }], controlRef: [{ type: i0.ViewChild, args: ['control', { isSignal: true }] }] } });
1227
+
1228
+ /**
1229
+ * The first column, holding an element of the consumer's own — an avatar, a
1230
+ * logo — where the `icon` input names only a glyph. React's `icon` prop takes
1231
+ * any element, and this is the same column in the same part.
1232
+ */
1233
+ class SlComboboxItemIcon {
1234
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlComboboxItemIcon, deps: [], target: i0.ɵɵFactoryTarget.Directive });
1235
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.7", type: SlComboboxItemIcon, isStandalone: true, selector: "[slComboboxItemIcon]", host: { attributes: { "data-part": "icon" } }, ngImport: i0 });
1236
+ }
1237
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlComboboxItemIcon, decorators: [{
1238
+ type: Directive,
1239
+ args: [{
1240
+ selector: '[slComboboxItemIcon]',
1241
+ standalone: true,
1242
+ host: { 'data-part': 'icon' },
1243
+ }]
1244
+ }] });
1245
+ /**
1246
+ * One option, and the one that decides whether it belongs in the results.
1247
+ *
1248
+ * **Each option filters itself.** The family holds the query and the
1249
+ * comparison; the option holds its own label. An option that does not match
1250
+ * renders nothing at all, so the popup's DOM *is* the result set — which is
1251
+ * what makes the count, the keyboard model and the empty row read one answer.
1252
+ *
1253
+ * `label` is an input rather than projected content here, and that is the one
1254
+ * place this binding differs from its React counterpart: a comparison and a
1255
+ * split both need the text before the view exists, and Angular has no way to
1256
+ * read projected content that has not been created.
1257
+ */
1258
+ class SlComboboxItem {
1259
+ value = input.required(/* @ts-ignore */
1260
+ ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
1261
+ /** What the reader sees, what the filter compares, and what the mark splits. */
1262
+ label = input.required(/* @ts-ignore */
1263
+ ...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
1264
+ disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
1265
+ description = input(undefined, /* @ts-ignore */
1266
+ ...(ngDevMode ? [{ debugName: "description" }] : /* istanbul ignore next */ []));
1267
+ /**
1268
+ * The glyph drawn in the first column, as a `Glyph` inside an `Icon` box. An
1269
+ * element of the consumer's own goes there through `slComboboxItemIcon`.
1270
+ */
1271
+ icon = input(undefined, /* @ts-ignore */
1272
+ ...(ngDevMode ? [{ debugName: "icon" }] : /* istanbul ignore next */ []));
1273
+ position = input(undefined, { ...(ngDevMode ? { debugName: "position" } : /* istanbul ignore next */ {}), transform: (given) => given === undefined ? undefined : numberAttribute(given) });
1274
+ combobox = inject(SlCombobox);
1275
+ host = inject((ElementRef));
1276
+ optionId = computed(() => this.combobox.optionId(this.value()), /* @ts-ignore */
1277
+ ...(ngDevMode ? [{ debugName: "optionId" }] : /* istanbul ignore next */ []));
1278
+ selected = computed(() => this.combobox.value() === this.value(), /* @ts-ignore */
1279
+ ...(ngDevMode ? [{ debugName: "selected" }] : /* istanbul ignore next */ []));
1280
+ current = computed(() => this.combobox.highlightedValue() === this.value(), /* @ts-ignore */
1281
+ ...(ngDevMode ? [{ debugName: "current" }] : /* istanbul ignore next */ []));
1282
+ visible = computed(() => this.combobox.matches(this.label()), /* @ts-ignore */
1283
+ ...(ngDevMode ? [{ debugName: "visible" }] : /* istanbul ignore next */ []));
1284
+ /**
1285
+ * The spans the query matched, from the same collator the filter used, drawn
1286
+ * by the `highlight` family inside this family's label. An `indexOf` beside
1287
+ * a locale-sensitive filter marks nothing on the row it has just matched.
1288
+ */
1289
+ ranges = computed(() => {
1290
+ const query = this.combobox.query();
1291
+ if (!this.combobox.resolvedHighlightMatch() || query === '')
1292
+ return [];
1293
+ return matchRanges(this.label(), query, { locale: this.combobox.resolvedLocale() });
1294
+ }, /* @ts-ignore */
1295
+ ...(ngDevMode ? [{ debugName: "ranges" }] : /* istanbul ignore next */ []));
1296
+ constructor() {
1297
+ /**
1298
+ * A hidden option is out of the result set, so the count and the label
1299
+ * registry both have to see the change. `hidden` rather than an `@if`,
1300
+ * because an option that is destroyed and rebuilt on every keystroke loses
1301
+ * its element identity — and with it whatever the reader's pointer was on.
1302
+ */
1303
+ afterRenderEffect(() => {
1304
+ this.visible();
1305
+ this.combobox.registerLabel(this.value(), this.label());
1306
+ this.combobox.recount();
1307
+ });
1308
+ inject(DestroyRef).onDestroy(() => this.combobox.recount());
1309
+ }
1310
+ onPointerEnter(event) {
1311
+ if (this.disabled())
1312
+ return;
1313
+ this.combobox.setHighlighted(this.value(), 'pointer', event);
1314
+ }
1315
+ /**
1316
+ * Only to stop the browser moving focus off the input: an option cannot hold
1317
+ * focus, so a press on it would take focus to the body — and the settling of
1318
+ * CB7 would run on the query the reader was in the middle of choosing from,
1319
+ * before the click arrived (CB11).
1320
+ */
1321
+ onPointerDown(event) {
1322
+ if (event.defaultPrevented)
1323
+ return;
1324
+ event.preventDefault();
1325
+ }
1326
+ onClick(event) {
1327
+ if (this.disabled())
1328
+ return;
1329
+ this.combobox.commitOption(this.value(), 'pointer', event);
1330
+ this.combobox.focus();
1331
+ }
1332
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlComboboxItem, deps: [], target: i0.ɵɵFactoryTarget.Component });
1333
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.7", type: SlComboboxItem, isStandalone: true, selector: "sl-combobox-item", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: true, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: true, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, description: { classPropertyName: "description", publicName: "description", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, position: { classPropertyName: "position", publicName: "position", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-part": "item", "role": "option" }, listeners: { "click": "onClick($event)", "pointerdown": "onPointerDown($event)", "pointerenter": "onPointerEnter($event)" }, properties: { "id": "optionId()", "hidden": "!visible()", "attr.data-value": "value()", "attr.data-text-value": "label()", "attr.aria-selected": "selected()", "attr.aria-disabled": "disabled() ? true : null", "attr.aria-posinset": "position() ?? null", "attr.aria-setsize": "position() === undefined ? null : (combobox.total() ?? null)", "attr.data-disabled": "disabled() ? '' : null", "attr.data-selected": "selected() ? '' : null", "attr.data-current": "current() ? '' : null" } }, exportAs: ["slComboboxItem"], ngImport: i0, template: `
1334
+ <ng-content select="[slComboboxItemIcon]" />
1335
+ @if (icon(); as glyph) {
1336
+ <span data-part="icon"
1337
+ ><span slIcon><svg slGlyph [name]="glyph"></svg></span
1338
+ ></span>
1339
+ }
1340
+ <span data-part="label">
1341
+ @if (ranges().length > 0) {
1342
+ <span slHighlight [text]="label()" [ranges]="ranges()"></span>
1343
+ } @else {
1344
+ {{ label() }}
1345
+ }
1346
+ </span>
1347
+ @if (description()) {
1348
+ <span data-part="description">{{ description() }}</span>
1349
+ }
1350
+ <span data-part="indicator"
1351
+ ><span slIcon><svg slGlyph name="check"></svg></span
1352
+ ></span>
1353
+ `, isInline: true, dependencies: [{ kind: "component", type: SlGlyph, selector: "svg[slGlyph]", inputs: ["name", "solid"] }, { kind: "component", type: SlHighlight, selector: "[slHighlight]", inputs: ["text", "query", "ranges", "matcher", "current", "locale", "sensitivity", "occurrences", "disabled"], exportAs: ["slHighlight"] }, { kind: "component", type: SlIcon, selector: "[slIcon]", inputs: ["directional", "label", "size", "tone"], exportAs: ["slIcon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
1354
+ }
1355
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlComboboxItem, decorators: [{
1356
+ type: Component,
1357
+ args: [{
1358
+ selector: 'sl-combobox-item',
1359
+ standalone: true,
1360
+ exportAs: 'slComboboxItem',
1361
+ changeDetection: ChangeDetectionStrategy.OnPush,
1362
+ encapsulation: ViewEncapsulation.None,
1363
+ imports: [SlGlyph, SlHighlight, SlIcon],
1364
+ host: {
1365
+ 'data-part': 'item',
1366
+ role: 'option',
1367
+ '[id]': 'optionId()',
1368
+ '[hidden]': '!visible()',
1369
+ '[attr.data-value]': 'value()',
1370
+ '[attr.data-text-value]': 'label()',
1371
+ '[attr.aria-selected]': 'selected()',
1372
+ '[attr.aria-disabled]': 'disabled() ? true : null',
1373
+ '[attr.aria-posinset]': 'position() ?? null',
1374
+ '[attr.aria-setsize]': 'position() === undefined ? null : (combobox.total() ?? null)',
1375
+ '[attr.data-disabled]': "disabled() ? '' : null",
1376
+ '[attr.data-selected]': "selected() ? '' : null",
1377
+ '[attr.data-current]': "current() ? '' : null",
1378
+ '(click)': 'onClick($event)',
1379
+ '(pointerdown)': 'onPointerDown($event)',
1380
+ '(pointerenter)': 'onPointerEnter($event)',
1381
+ },
1382
+ template: `
1383
+ <ng-content select="[slComboboxItemIcon]" />
1384
+ @if (icon(); as glyph) {
1385
+ <span data-part="icon"
1386
+ ><span slIcon><svg slGlyph [name]="glyph"></svg></span
1387
+ ></span>
1388
+ }
1389
+ <span data-part="label">
1390
+ @if (ranges().length > 0) {
1391
+ <span slHighlight [text]="label()" [ranges]="ranges()"></span>
1392
+ } @else {
1393
+ {{ label() }}
1394
+ }
1395
+ </span>
1396
+ @if (description()) {
1397
+ <span data-part="description">{{ description() }}</span>
1398
+ }
1399
+ <span data-part="indicator"
1400
+ ><span slIcon><svg slGlyph name="check"></svg></span
1401
+ ></span>
1402
+ `,
1403
+ }]
1404
+ }], ctorParameters: () => [], propDecorators: { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: true }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: true }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], description: [{ type: i0.Input, args: [{ isSignal: true, alias: "description", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], position: [{ type: i0.Input, args: [{ isSignal: true, alias: "position", required: false }] }] } });
1405
+ /**
1406
+ * A set of options under a heading, named by `aria-labelledby` pointing at its
1407
+ * own label. A group whose every option was filtered away is hidden: a heading
1408
+ * with no options under it says a category matched when none did.
1409
+ */
1410
+ class SlComboboxGroup {
1411
+ label = input.required(/* @ts-ignore */
1412
+ ...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
1413
+ labelId = `sl-combobox-group-${Math.random().toString(36).slice(2, 8)}`;
1414
+ host = inject((ElementRef));
1415
+ combobox = inject(SlCombobox);
1416
+ empty = signal(false, /* @ts-ignore */
1417
+ ...(ngDevMode ? [{ debugName: "empty" }] : /* istanbul ignore next */ []));
1418
+ constructor() {
1419
+ /**
1420
+ * Measured after render rather than computed from the query: whether a
1421
+ * group still holds an option is a fact about the DOM its own children
1422
+ * produced, and a computed that read the DOM would be right once and stale
1423
+ * from then on.
1424
+ */
1425
+ afterRenderEffect(() => {
1426
+ this.combobox.query();
1427
+ const element = this.host.nativeElement;
1428
+ this.empty.set(element.querySelector("[data-part='item']:not([hidden])") === null);
1429
+ });
1430
+ }
1431
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlComboboxGroup, deps: [], target: i0.ɵɵFactoryTarget.Component });
1432
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.1.7", type: SlComboboxGroup, isStandalone: true, selector: "sl-combobox-group", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: true, transformFunction: null } }, host: { attributes: { "data-part": "group", "role": "group" }, properties: { "attr.aria-labelledby": "labelId", "hidden": "empty()" } }, exportAs: ["slComboboxGroup"], ngImport: i0, template: `
1433
+ <div data-part="group-label" [id]="labelId">{{ label() }}</div>
1434
+ <ng-content />
1435
+ `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
1436
+ }
1437
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlComboboxGroup, decorators: [{
1438
+ type: Component,
1439
+ args: [{
1440
+ selector: 'sl-combobox-group',
1441
+ standalone: true,
1442
+ exportAs: 'slComboboxGroup',
1443
+ changeDetection: ChangeDetectionStrategy.OnPush,
1444
+ encapsulation: ViewEncapsulation.None,
1445
+ host: {
1446
+ 'data-part': 'group',
1447
+ role: 'group',
1448
+ '[attr.aria-labelledby]': 'labelId',
1449
+ '[hidden]': 'empty()',
1450
+ },
1451
+ template: `
1452
+ <div data-part="group-label" [id]="labelId">{{ label() }}</div>
1453
+ <ng-content />
1454
+ `,
1455
+ }]
1456
+ }], ctorParameters: () => [], propDecorators: { label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: true }] }] } });
1457
+ /** A line between two sets of options. */
1458
+ class SlComboboxSeparator {
1459
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlComboboxSeparator, deps: [], target: i0.ɵɵFactoryTarget.Component });
1460
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.1.7", type: SlComboboxSeparator, isStandalone: true, selector: "sl-combobox-separator", host: { attributes: { "data-part": "separator", "role": "separator" } }, exportAs: ["slComboboxSeparator"], ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
1461
+ }
1462
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlComboboxSeparator, decorators: [{
1463
+ type: Component,
1464
+ args: [{
1465
+ selector: 'sl-combobox-separator',
1466
+ standalone: true,
1467
+ exportAs: 'slComboboxSeparator',
1468
+ changeDetection: ChangeDetectionStrategy.OnPush,
1469
+ encapsulation: ViewEncapsulation.None,
1470
+ host: { 'data-part': 'separator', role: 'separator' },
1471
+ template: '',
1472
+ }]
1473
+ }] });
1474
+
1475
+ /**
1476
+ * Generated bundle index. Do not edit.
1477
+ */
1478
+
1479
+ export { COMBOBOX_DEFAULTS, COMBOBOX_FALLBACK, SlCombobox, SlComboboxGroup, SlComboboxItem, SlComboboxItemIcon, SlComboboxSeparator, injectComboboxDefaults, provideComboboxDefaults };
1480
+ //# sourceMappingURL=slotted-angular-combobox.mjs.map