@vonage/vivid 5.2.0 → 5.4.0

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 (433) hide show
  1. package/accordion-item/definition.cjs +2 -1
  2. package/accordion-item/definition.js +3 -2
  3. package/alert/definition.cjs +1 -1
  4. package/alert/definition.js +2 -2
  5. package/alert/index.cjs +1 -1
  6. package/alert/index.js +1 -1
  7. package/audio-player/definition.cjs +4 -2
  8. package/audio-player/definition.js +4 -2
  9. package/audio-player/index.cjs +5 -3
  10. package/audio-player/index.js +5 -3
  11. package/badge/definition.js +1 -1
  12. package/badge/index.cjs +2 -2
  13. package/badge/index.js +4 -4
  14. package/banner/definition.js +1 -1
  15. package/banner/index.cjs +3 -3
  16. package/banner/index.js +6 -6
  17. package/breadcrumb-item/index.cjs +1 -1
  18. package/breadcrumb-item/index.js +1 -1
  19. package/bundled/affix.cjs +7 -7
  20. package/bundled/affix.js +5 -5
  21. package/bundled/anchored.cjs +1 -1
  22. package/bundled/anchored.js +6 -6
  23. package/bundled/attribute-binding-behaviour.cjs +1 -1
  24. package/bundled/attribute-binding-behaviour.js +15 -13
  25. package/bundled/base-color-picker.cjs +13 -0
  26. package/bundled/base-color-picker.js +194 -0
  27. package/bundled/button.cjs +1 -1
  28. package/bundled/button.js +2 -2
  29. package/bundled/calendar-picker.template.cjs +7 -7
  30. package/bundled/calendar-picker.template.js +118 -118
  31. package/bundled/char-count.cjs +1 -1
  32. package/bundled/char-count.js +1 -1
  33. package/bundled/children.cjs +1 -1
  34. package/bundled/children.js +28 -20
  35. package/bundled/definition.cjs +3 -3
  36. package/bundled/definition.js +38 -38
  37. package/bundled/definition10.cjs +72 -18
  38. package/bundled/definition10.js +351 -65
  39. package/bundled/definition11.cjs +19 -10
  40. package/bundled/definition11.js +217 -36
  41. package/bundled/definition12.cjs +10 -1
  42. package/bundled/definition12.js +38 -14
  43. package/bundled/definition13.cjs +1 -73
  44. package/bundled/definition13.js +15 -354
  45. package/bundled/definition15.cjs +1 -1
  46. package/bundled/definition15.js +1 -1
  47. package/bundled/definition16.cjs +2 -2
  48. package/bundled/definition16.js +8 -8
  49. package/bundled/definition17.cjs +7 -7
  50. package/bundled/definition17.js +17 -17
  51. package/bundled/definition19.cjs +23 -24
  52. package/bundled/definition19.js +151 -163
  53. package/bundled/definition2.cjs +9 -5
  54. package/bundled/definition2.js +21 -17
  55. package/bundled/definition22.cjs +9 -9
  56. package/bundled/definition22.js +31 -31
  57. package/bundled/definition3.cjs +1 -1
  58. package/bundled/definition3.js +1 -1
  59. package/bundled/definition6.cjs +3 -3
  60. package/bundled/definition6.js +28 -28
  61. package/bundled/definition7.cjs +1 -1
  62. package/bundled/definition7.js +6 -6
  63. package/bundled/definition8.cjs +2 -2
  64. package/bundled/definition8.js +4 -4
  65. package/bundled/definition9.cjs +5 -5
  66. package/bundled/definition9.js +394 -392
  67. package/bundled/delegates-aria.cjs +1 -1
  68. package/bundled/delegates-aria.js +59 -46
  69. package/bundled/form-associated.cjs +1 -1
  70. package/bundled/form-associated.js +3 -3
  71. package/bundled/host-semantics.cjs +1 -1
  72. package/bundled/host-semantics.js +48 -34
  73. package/bundled/listbox.cjs +1 -1
  74. package/bundled/listbox.js +82 -102
  75. package/bundled/localized.cjs +1 -1
  76. package/bundled/localized.js +51 -36
  77. package/bundled/mixins.cjs +18 -18
  78. package/bundled/mixins.js +99 -93
  79. package/bundled/normalize.cjs +1 -0
  80. package/bundled/normalize.js +7 -0
  81. package/bundled/picker-field.template.cjs +1 -1
  82. package/bundled/picker-field.template.js +4 -4
  83. package/bundled/ref.cjs +1 -1
  84. package/bundled/ref.js +8 -25
  85. package/bundled/repeat.cjs +1 -1
  86. package/bundled/repeat.js +459 -233
  87. package/bundled/slider.template.cjs +1 -1
  88. package/bundled/slider.template.js +2 -2
  89. package/bundled/slotted.cjs +1 -1
  90. package/bundled/slotted.js +62 -45
  91. package/bundled/time-selection-picker.template.cjs +1 -1
  92. package/bundled/time-selection-picker.template.js +5 -5
  93. package/bundled/vivid-element.cjs +5 -1
  94. package/bundled/vivid-element.js +2159 -1162
  95. package/bundled/when.cjs +1 -1
  96. package/bundled/when.js +8 -7
  97. package/calendar/definition.cjs +1 -1
  98. package/calendar/definition.js +2 -2
  99. package/calendar/index.cjs +1 -1
  100. package/calendar/index.js +15 -15
  101. package/calendar-event/index.cjs +1 -1
  102. package/calendar-event/index.js +1 -1
  103. package/card/definition.cjs +11 -3
  104. package/card/definition.js +11 -3
  105. package/card/index.cjs +19 -11
  106. package/card/index.js +35 -27
  107. package/color-picker/definition.cjs +1079 -0
  108. package/color-picker/definition.js +1073 -0
  109. package/color-picker/index.cjs +127 -0
  110. package/color-picker/index.js +726 -0
  111. package/combobox/definition.cjs +8 -28
  112. package/combobox/definition.js +10 -30
  113. package/combobox/index.cjs +7 -7
  114. package/combobox/index.js +60 -74
  115. package/contextual-help/index.cjs +1 -1
  116. package/contextual-help/index.js +1 -1
  117. package/custom-elements.json +1670 -163
  118. package/data-grid/definition.cjs +862 -27
  119. package/data-grid/definition.js +863 -28
  120. package/data-grid/index.cjs +25 -25
  121. package/data-grid/index.js +175 -168
  122. package/date-picker/definition.cjs +1 -1
  123. package/date-picker/definition.js +1 -1
  124. package/date-picker/index.cjs +1 -1
  125. package/date-picker/index.js +2 -2
  126. package/date-range-picker/definition.cjs +1 -1
  127. package/date-range-picker/definition.js +1 -1
  128. package/date-range-picker/index.cjs +1 -1
  129. package/date-range-picker/index.js +2 -2
  130. package/date-time-picker/definition.cjs +1 -1
  131. package/date-time-picker/definition.js +1 -1
  132. package/date-time-picker/index.cjs +1 -1
  133. package/date-time-picker/index.js +2 -2
  134. package/dial-pad/definition.cjs +4 -0
  135. package/dial-pad/definition.js +4 -0
  136. package/dial-pad/index.cjs +3 -3
  137. package/dial-pad/index.js +42 -39
  138. package/dialog/definition.cjs +6 -3
  139. package/dialog/definition.js +6 -3
  140. package/dialog/index.cjs +22 -19
  141. package/dialog/index.js +48 -45
  142. package/elevation/definition.cjs +1 -1
  143. package/elevation/definition.js +1 -1
  144. package/empty-state/definition.cjs +7 -2
  145. package/empty-state/definition.js +7 -2
  146. package/empty-state/index.cjs +10 -5
  147. package/empty-state/index.js +18 -13
  148. package/fab/definition.js +1 -1
  149. package/fab/index.cjs +2 -2
  150. package/fab/index.js +4 -4
  151. package/file-picker/definition.cjs +2 -2
  152. package/file-picker/definition.js +3 -3
  153. package/file-picker/index.cjs +1 -1
  154. package/file-picker/index.js +4 -4
  155. package/header/definition.cjs +1 -1
  156. package/header/definition.js +1 -1
  157. package/icon/definition.cjs +10 -6
  158. package/icon/definition.js +10 -6
  159. package/index.cjs +7 -4
  160. package/index.js +3 -3
  161. package/lib/accordion/accordion.d.ts +1 -1
  162. package/lib/accordion/definition.d.ts +1 -1
  163. package/lib/accordion-item/accordion-item.d.ts +2 -2
  164. package/lib/action-group/action-group.d.ts +2 -2
  165. package/lib/alert/alert.d.ts +4 -4
  166. package/lib/audio-player/audio-player.d.ts +3 -3
  167. package/lib/avatar/avatar.d.ts +2 -2
  168. package/lib/badge/badge.d.ts +2 -2
  169. package/lib/banner/banner.d.ts +6 -6
  170. package/lib/breadcrumb/breadcrumb.d.ts +2 -2
  171. package/lib/breadcrumb-item/breadcrumb-item.d.ts +2 -2
  172. package/lib/button/button.d.ts +6 -6
  173. package/lib/button/button.template.d.ts +2 -1
  174. package/lib/calendar/calendar.d.ts +1 -1
  175. package/lib/calendar-event/calendar-event.d.ts +2 -2
  176. package/lib/card/card.d.ts +2 -2
  177. package/lib/checkbox/checkbox.d.ts +12 -12
  178. package/lib/color-picker/color-picker.d.ts +2420 -0
  179. package/lib/color-picker/color-picker.template.d.ts +3 -0
  180. package/lib/color-picker/definition.d.ts +4 -0
  181. package/lib/color-picker/locale.d.ts +9 -0
  182. package/lib/combobox/combobox.d.ts +15 -14
  183. package/lib/combobox/combobox.options.d.ts +1 -1
  184. package/lib/components.d.ts +1 -0
  185. package/lib/data-grid/data-grid-cell.d.ts +4 -4
  186. package/lib/data-grid/data-grid-row.d.ts +3 -4
  187. package/lib/data-grid/data-grid.d.ts +1 -2
  188. package/lib/date-picker/date-picker.d.ts +54 -54
  189. package/lib/date-range-picker/date-range-picker.d.ts +28 -28
  190. package/lib/date-time-picker/date-time-picker.d.ts +56 -56
  191. package/lib/dial-pad/dial-pad.d.ts +3 -2
  192. package/lib/dialog/dialog.d.ts +4 -4
  193. package/lib/divider/divider.d.ts +3 -3
  194. package/lib/fab/fab.d.ts +2 -2
  195. package/lib/file-picker/file-picker.d.ts +14 -14
  196. package/lib/header/header.d.ts +2 -2
  197. package/lib/menu/menu.d.ts +4 -4
  198. package/lib/menu-item/menu-item-role.d.ts +1 -1
  199. package/lib/menu-item/menu-item.d.ts +4 -4
  200. package/lib/nav/nav.d.ts +2 -2
  201. package/lib/nav-disclosure/nav-disclosure.d.ts +4 -4
  202. package/lib/nav-item/nav-item.d.ts +4 -4
  203. package/lib/note/note.d.ts +2 -2
  204. package/lib/number-field/number-field.d.ts +18 -18
  205. package/lib/option/option.d.ts +4 -4
  206. package/lib/pagination/pagination.d.ts +2 -2
  207. package/lib/popup/popup.d.ts +1 -1
  208. package/lib/progress/progress.d.ts +2 -2
  209. package/lib/progress-ring/progress-ring.d.ts +2 -2
  210. package/lib/radio/radio.d.ts +6 -6
  211. package/lib/radio-group/radio-group.d.ts +2 -2
  212. package/lib/range-slider/range-slider.d.ts +6 -6
  213. package/lib/rich-text-editor/menubar/menubar.d.ts +2 -2
  214. package/lib/rich-text-editor/rich-text-editor.d.ts +2 -2
  215. package/lib/searchable-select/locale.d.ts +4 -0
  216. package/lib/searchable-select/option-tag.d.ts +2 -2
  217. package/lib/searchable-select/searchable-select.d.ts +21 -18
  218. package/lib/select/select.d.ts +19 -17
  219. package/lib/selectable-box/selectable-box.d.ts +2 -2
  220. package/lib/simple-color-picker/locale.d.ts +0 -1
  221. package/lib/simple-color-picker/simple-color-picker.d.ts +47 -821
  222. package/lib/slider/slider.d.ts +7 -7
  223. package/lib/split-button/split-button.d.ts +6 -6
  224. package/lib/switch/switch.d.ts +4 -4
  225. package/lib/tab/tab.d.ts +6 -6
  226. package/lib/tab-panel/tab-panel.d.ts +2 -2
  227. package/lib/tabs/tabs.d.ts +2 -2
  228. package/lib/tag/tag.d.ts +6 -6
  229. package/lib/tag-group/tag-group.d.ts +2 -2
  230. package/lib/tag-name-map.d.ts +2 -1
  231. package/lib/text-area/text-area.d.ts +17 -17
  232. package/lib/text-field/text-field.d.ts +19 -19
  233. package/lib/time-picker/time-picker.d.ts +28 -28
  234. package/lib/toggletip/toggletip.d.ts +4 -4
  235. package/lib/tooltip/tooltip.d.ts +2 -2
  236. package/lib/tree-item/tree-item.d.ts +4 -4
  237. package/lib/tree-view/tree-view.d.ts +2 -2
  238. package/lib/video-player/video-player.d.ts +2 -2
  239. package/locales/de-DE.cjs +17 -2
  240. package/locales/de-DE.js +17 -2
  241. package/locales/en-GB.cjs +17 -2
  242. package/locales/en-GB.js +17 -2
  243. package/locales/en-US.cjs +17 -2
  244. package/locales/en-US.js +17 -2
  245. package/locales/ja-JP.cjs +17 -2
  246. package/locales/ja-JP.js +17 -2
  247. package/locales/zh-CN.cjs +17 -2
  248. package/locales/zh-CN.js +17 -2
  249. package/menu/definition.cjs +6 -6
  250. package/menu/definition.js +7 -7
  251. package/nav-disclosure/definition.js +1 -1
  252. package/nav-item/definition.js +1 -1
  253. package/note/definition.js +1 -1
  254. package/note/index.cjs +2 -2
  255. package/note/index.js +4 -4
  256. package/number-field/definition.cjs +1 -1
  257. package/number-field/definition.js +3 -3
  258. package/number-field/index.cjs +5 -5
  259. package/number-field/index.js +21 -21
  260. package/option/definition.cjs +6 -77
  261. package/option/definition.js +3 -78
  262. package/option/index.cjs +1 -1
  263. package/option/index.js +1 -1
  264. package/package.json +34 -8
  265. package/pagination/definition.cjs +2 -1
  266. package/pagination/definition.js +2 -1
  267. package/pagination/index.cjs +12 -12
  268. package/pagination/index.js +59 -59
  269. package/popup/definition.cjs +2 -2
  270. package/popup/definition.js +2 -2
  271. package/progress/index.cjs +1 -1
  272. package/progress/index.js +1 -1
  273. package/radio/definition.cjs +9 -9
  274. package/radio/definition.js +10 -10
  275. package/radio-group/definition.cjs +2 -1
  276. package/radio-group/definition.js +2 -1
  277. package/radio-group/index.cjs +5 -5
  278. package/radio-group/index.js +80 -77
  279. package/range-slider/definition.cjs +1 -1
  280. package/range-slider/definition.js +1 -1
  281. package/range-slider/index.cjs +1 -1
  282. package/range-slider/index.js +1 -1
  283. package/rich-text-editor/definition.cjs +3 -4
  284. package/rich-text-editor/definition.js +3 -4
  285. package/rich-text-editor/index.cjs +27 -27
  286. package/rich-text-editor/index.js +1208 -1198
  287. package/searchable-select/definition.cjs +106 -14
  288. package/searchable-select/definition.js +107 -15
  289. package/searchable-select/index.cjs +81 -69
  290. package/searchable-select/index.js +362 -276
  291. package/select/definition.cjs +25 -42
  292. package/select/definition.js +26 -43
  293. package/selectable-box/definition.cjs +1 -1
  294. package/selectable-box/definition.js +1 -1
  295. package/selectable-box/index.cjs +3 -3
  296. package/selectable-box/index.js +20 -20
  297. package/shared/aria/aria-change-subscription.d.ts +0 -1
  298. package/shared/aria/aria-mixin.d.ts +3 -3
  299. package/shared/aria/delegate-aria-behavior.d.ts +5 -10
  300. package/shared/aria/delegates-aria.d.ts +3 -3
  301. package/shared/aria/host-semantics-behavior.d.ts +5 -8
  302. package/shared/aria/host-semantics.d.ts +3 -3
  303. package/shared/color-picker/base-color-picker.d.ts +436 -0
  304. package/shared/color-picker/index.d.ts +1 -0
  305. package/shared/color-picker/locale.d.ts +3 -0
  306. package/shared/color-picker/utils.d.ts +1 -0
  307. package/shared/deprecation/replaced-props.d.ts +317 -2
  308. package/shared/design-system/defineVividComponent.d.ts +2 -2
  309. package/shared/feedback/feedback-message.d.ts +2 -2
  310. package/shared/feedback/mixins.d.ts +4 -4
  311. package/shared/foundation/button/button.d.ts +4 -4
  312. package/shared/foundation/form-associated/form-associated.d.ts +4 -4
  313. package/shared/foundation/listbox/listbox.d.ts +4 -0
  314. package/shared/foundation/vivid-element/vivid-element.d.ts +335 -8
  315. package/shared/localization/Locale.d.ts +4 -0
  316. package/shared/patterns/affix.d.ts +4 -4
  317. package/shared/patterns/anchored.d.ts +4 -4
  318. package/shared/patterns/char-count/char-count.d.ts +2 -2
  319. package/shared/patterns/form-elements/form-element.d.ts +4 -4
  320. package/shared/patterns/form-elements/with-contextual-help.d.ts +6 -6
  321. package/shared/patterns/form-elements/with-error-text.d.ts +6 -6
  322. package/shared/patterns/form-elements/with-success-text.d.ts +2 -2
  323. package/shared/patterns/linkable.d.ts +2 -2
  324. package/shared/patterns/localized.d.ts +2 -2
  325. package/shared/patterns/trapped-focus.d.ts +2 -2
  326. package/shared/picker-field/mixins/calendar-picker.d.ts +14 -14
  327. package/shared/picker-field/mixins/calendar-picker.template.d.ts +14 -14
  328. package/shared/picker-field/mixins/inline-time-picker/inline-time-picker.d.ts +2 -2
  329. package/shared/picker-field/mixins/min-max-calendar-picker.d.ts +28 -28
  330. package/shared/picker-field/mixins/single-date-picker.d.ts +40 -40
  331. package/shared/picker-field/mixins/single-value-picker.d.ts +12 -12
  332. package/shared/picker-field/mixins/time-selection-picker.d.ts +29 -29
  333. package/shared/picker-field/mixins/time-selection-picker.template.d.ts +28 -28
  334. package/shared/picker-field/picker-field.d.ts +14 -14
  335. package/shared/templating/attribute-binding-behaviour.d.ts +3 -4
  336. package/shared/templating/render-in-light-dom.d.ts +13 -12
  337. package/side-drawer/index.cjs +1 -1
  338. package/side-drawer/index.js +1 -1
  339. package/simple-color-picker/definition.cjs +29 -216
  340. package/simple-color-picker/definition.js +30 -217
  341. package/simple-color-picker/index.cjs +9 -21
  342. package/simple-color-picker/index.js +71 -185
  343. package/slider/definition.cjs +1 -1
  344. package/slider/definition.js +1 -1
  345. package/split-button/definition.js +1 -1
  346. package/styles/core/all.css +1 -1
  347. package/styles/core/theme.css +1 -1
  348. package/styles/core/typography.css +1 -1
  349. package/styles/tokens/theme-dark.css +4 -4
  350. package/styles/tokens/theme-light.css +4 -4
  351. package/styles/tokens/vivid-2-compat.css +1 -1
  352. package/switch/index.cjs +2 -2
  353. package/switch/index.js +4 -4
  354. package/tab/definition.js +1 -1
  355. package/tabs/definition.cjs +1 -1
  356. package/tabs/definition.js +2 -2
  357. package/tabs/index.cjs +2 -2
  358. package/tabs/index.js +16 -16
  359. package/tag/definition.js +1 -1
  360. package/tag/index.cjs +1 -1
  361. package/tag/index.js +1 -1
  362. package/text-area/index.cjs +3 -3
  363. package/text-area/index.js +8 -8
  364. package/text-field/definition.cjs +2 -2
  365. package/text-field/definition.js +4 -4
  366. package/text-field/index.cjs +1 -1
  367. package/text-field/index.js +1 -1
  368. package/time-picker/definition.cjs +1 -1
  369. package/time-picker/definition.js +1 -1
  370. package/time-picker/index.cjs +1 -1
  371. package/time-picker/index.js +2 -2
  372. package/toggletip/definition.cjs +2 -2
  373. package/toggletip/definition.js +3 -3
  374. package/tooltip/definition.cjs +1 -1
  375. package/tooltip/definition.js +1 -1
  376. package/tree-item/definition.cjs +1 -1
  377. package/tree-item/definition.js +1 -1
  378. package/tree-view/definition.cjs +2 -2
  379. package/tree-view/definition.js +3 -3
  380. package/tree-view/index.cjs +2 -2
  381. package/tree-view/index.js +6 -6
  382. package/unbundled/_commonjsHelpers.cjs +36 -0
  383. package/unbundled/_commonjsHelpers.js +32 -0
  384. package/unbundled/affix.cjs +1 -1
  385. package/unbundled/affix.js +2 -2
  386. package/unbundled/attribute-binding-behaviour.cjs +11 -10
  387. package/unbundled/attribute-binding-behaviour.js +11 -10
  388. package/unbundled/base-color-picker.cjs +278 -0
  389. package/unbundled/base-color-picker.js +275 -0
  390. package/unbundled/button.cjs +1 -1
  391. package/unbundled/button.js +2 -2
  392. package/unbundled/calendar-picker.template.cjs +4 -4
  393. package/unbundled/calendar-picker.template.js +5 -5
  394. package/unbundled/definition.js +1 -1
  395. package/unbundled/definition2.cjs +1 -1
  396. package/unbundled/definition2.js +3 -3
  397. package/unbundled/definition3.cjs +222 -140
  398. package/unbundled/definition3.js +220 -138
  399. package/unbundled/definition4.cjs +145 -235
  400. package/unbundled/definition4.js +143 -233
  401. package/unbundled/definition5.cjs +269 -27
  402. package/unbundled/definition5.js +267 -26
  403. package/unbundled/definition6.cjs +56 -0
  404. package/unbundled/definition6.js +52 -0
  405. package/unbundled/delegates-aria.cjs +67 -33
  406. package/unbundled/delegates-aria.js +69 -35
  407. package/unbundled/form-associated.cjs +2 -2
  408. package/unbundled/form-associated.js +3 -3
  409. package/unbundled/host-semantics.cjs +47 -22
  410. package/unbundled/host-semantics.js +48 -23
  411. package/unbundled/listbox.cjs +41 -63
  412. package/unbundled/listbox.js +39 -61
  413. package/unbundled/mixins.cjs +34 -27
  414. package/unbundled/mixins.js +35 -28
  415. package/unbundled/picker-field.template.cjs +3 -3
  416. package/unbundled/picker-field.template.js +4 -4
  417. package/unbundled/slider.template.cjs +1 -1
  418. package/unbundled/slider.template.js +1 -1
  419. package/unbundled/time-selection-picker.template.cjs +4 -4
  420. package/unbundled/time-selection-picker.template.js +5 -5
  421. package/unbundled/vivid-element.cjs +22 -15
  422. package/unbundled/vivid-element.js +23 -15
  423. package/video-player/definition.cjs +69047 -1
  424. package/video-player/definition.js +69047 -1
  425. package/video-player/index.cjs +36 -36
  426. package/video-player/index.js +1895 -1905
  427. package/visually-hidden/index.cjs +1 -1
  428. package/visually-hidden/index.js +1 -1
  429. package/vivid.api.json +719 -224
  430. package/bundled/option.cjs +0 -1
  431. package/bundled/option.js +0 -158
  432. package/unbundled/option.cjs +0 -217
  433. package/unbundled/option.js +0 -214
@@ -1,38 +1,40 @@
1
- import { B as z, c as E, b as P } from "../bundled/definition3.js";
2
- import { P as L, p as M } from "../bundled/definition9.js";
3
- import { I as B, i as I } from "../bundled/definition2.js";
4
- import { P as A, p as W } from "../bundled/definition15.js";
5
- import { V as F, O as T, D as N, a as f, n as D, o as d, h as p, c as H, d as R } from "../bundled/vivid-element.js";
6
- import { W as K, f as j } from "../bundled/mixins.js";
7
- import { s as q } from "../bundled/scrollIntoView.js";
8
- import { D as U, d as G } from "../bundled/delegates-aria.js";
9
- import { F as J } from "../bundled/form-associated.js";
10
- import { W as Q } from "../bundled/with-contextual-help.js";
11
- import { W as X } from "../bundled/with-error-text.js";
12
- import { W as Y } from "../bundled/with-success-text.js";
13
- import { F as Z } from "../bundled/form-element.js";
14
- import { A as ee, a as te, I as oe } from "../bundled/affix.js";
1
+ import { B as R, c as z, b as E } from "../bundled/definition3.js";
2
+ import { P as L, p as P } from "../bundled/definition9.js";
3
+ import { I as M, i as I } from "../bundled/definition2.js";
4
+ import { i as B, L as W, l as N } from "../bundled/definition11.js";
5
+ import { P as H, p as K } from "../bundled/definition15.js";
6
+ import { V as F, O, U as j, a as u, n as A, o as p, h as d, c as q, d as D } from "../bundled/vivid-element.js";
7
+ import { W as U, f as G } from "../bundled/mixins.js";
8
+ import { d as J } from "../bundled/definition14.js";
9
+ import { s as Q } from "../bundled/scrollIntoView.js";
10
+ import { D as X, d as Y } from "../bundled/delegates-aria.js";
11
+ import { F as Z } from "../bundled/form-associated.js";
12
+ import { W as ee } from "../bundled/with-contextual-help.js";
13
+ import { W as te } from "../bundled/with-error-text.js";
14
+ import { W as ae } from "../bundled/with-success-text.js";
15
+ import { F as oe } from "../bundled/form-element.js";
16
+ import { A as le, a as se, I as ie } from "../bundled/affix.js";
15
17
  import { L as V } from "../bundled/localized.js";
16
- import { i as ae } from "../bundled/option.js";
18
+ import { D as ne } from "../bundled/divider.js";
17
19
  import { w as v } from "../bundled/when.js";
18
- import { s as O } from "../bundled/slotted.js";
20
+ import { s as T } from "../bundled/slotted.js";
19
21
  import { r as x } from "../bundled/ref.js";
20
- import { c as y } from "../bundled/class-names.js";
21
- import { r as w } from "../bundled/repeat.js";
22
- const ie = ".chevron{display:flex;flex-shrink:0;font:var(--vvd-typography-base-extended);transform:rotate(0);transition:transform .2s}:host([data-expanded=true]) .chevron,:host([open]) .chevron{transform:rotate(180deg)}:not(.disabled) .chevron{cursor:pointer}.disabled .chevron{color:var(--_low-ink-color);cursor:not-allowed}:host(:focus-visible){outline:none}:host{display:inline-block;inline-size:300px;--_low-ink-color: var(--vvd-color-neutral-600)}:host([disabled]){--_low-ink-color: var(--vvd-color-neutral-400);cursor:not-allowed}.control-wrapper{display:flex;flex-direction:column;gap:4px}.label{color:var(--vvd-color-canvas-text);font:var(--vvd-typography-base)}.selection-count{color:var(--_low-ink-color);font:var(--vvd-typography-base)}.fieldset{--_connotation-color-primary: var(--vvd-searchable-select-accent-primary, var(--vvd-color-canvas-text));--_connotation-color-primary-text: var(--vvd-searchable-select-accent-primary-text, var(--vvd-color-canvas));--_connotation-color-primary-increment: var(--vvd-searchable-select-accent-primary-increment, var(--vvd-color-neutral-800));--_connotation-color-intermediate: var(--vvd-searchable-select-accent-intermediate, var(--vvd-color-neutral-500));--_connotation-color-faint: var(--vvd-searchable-select-accent-faint, var(--vvd-color-neutral-50));--_connotation-color-soft: var(--vvd-searchable-select-accent-soft, var(--vvd-color-neutral-100));--_connotation-color-firm: var(--vvd-searchable-select-accent-firm, var(--vvd-color-canvas-text));--_connotation-color-fierce: var(--vvd-searchable-select-accent-fierce, var(--vvd-color-neutral-700))}.fieldset{--_appearance-color-text: var(--vvd-color-canvas-text);--_appearance-color-fill: var(--vvd-color-canvas);--_appearance-color-outline: var(--vvd-color-neutral-500)}.fieldset.appearance-ghost{--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: transparent;--_appearance-color-outline: transparent}@media (hover: hover){.fieldset:hover:where(:not(.disabled,:disabled,.readonly)){--_appearance-color-text: var(--vvd-color-canvas-text);--_appearance-color-fill: var(--vvd-color-canvas);--_appearance-color-outline: var(--vvd-color-neutral-700)}.fieldset:hover:where(:not(.disabled,:disabled,.readonly)).appearance-ghost{--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: var(--_connotation-color-faint);--_appearance-color-outline: transparent}}.fieldset.hover:where(:not(.disabled,:disabled,.readonly)){--_appearance-color-text: var(--vvd-color-canvas-text);--_appearance-color-fill: var(--vvd-color-canvas);--_appearance-color-outline: var(--vvd-color-neutral-700)}.fieldset.hover:where(:not(.disabled,:disabled,.readonly)).appearance-ghost{--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: var(--_connotation-color-faint);--_appearance-color-outline: transparent}.fieldset:disabled{--_appearance-color-text: var(--vvd-color-neutral-300);--_appearance-color-fill: var(--vvd-color-neutral-100);--_appearance-color-outline: var(--vvd-color-neutral-300)}.fieldset:disabled.appearance-ghost{--_appearance-color-text: var(--vvd-color-neutral-300);--_appearance-color-fill: transparent;--_appearance-color-outline: transparent}.fieldset.disabled{--_appearance-color-text: var(--vvd-color-neutral-300);--_appearance-color-fill: var(--vvd-color-neutral-100);--_appearance-color-outline: var(--vvd-color-neutral-300)}.fieldset.disabled.appearance-ghost{--_appearance-color-text: var(--vvd-color-neutral-300);--_appearance-color-fill: transparent;--_appearance-color-outline: transparent}.fieldset.readonly:where(:not(.disabled,:disabled)){--_appearance-color-text: var(--vvd-color-canvas-text);--_appearance-color-fill: var(--vvd-color-neutral-200);--_appearance-color-outline: var(--vvd-color-neutral-400)}.fieldset.readonly:where(:not(.disabled,:disabled)).appearance-ghost{--_appearance-color-text: var(--vvd-color-neutral-600);--_appearance-color-fill: transparent;--_appearance-color-outline: transparent}.fieldset.error:where(:not(.disabled,:disabled)){--_appearance-color-text: notSet;--_appearance-color-fill: var(--vvd-color-alert-50);--_appearance-color-outline: var(--vvd-color-alert-500)}.fieldset.error:where(:not(.disabled,:disabled)).appearance-ghost{--_appearance-color-text: notSet;--_appearance-color-fill: var(--vvd-color-alert-50);--_appearance-color-outline: transparent}.fieldset.success:where(:not(.disabled,:disabled)){--_appearance-color-text: notSet;--_appearance-color-fill: var(--vvd-color-success-50);--_appearance-color-outline: var(--vvd-color-success-500)}.fieldset.success:where(:not(.disabled,:disabled)).appearance-ghost{--_appearance-color-text: notSet;--_appearance-color-fill: var(--vvd-color-success-50);--_appearance-color-outline: transparent}.fieldset{display:flex;align-items:center;justify-content:space-between;background-color:var(--_appearance-color-fill);box-shadow:inset 0 0 0 1px var(--_appearance-color-outline);color:var(--_appearance-color-text);font:var(--vvd-typography-base);gap:8px;padding-block:8px;padding-inline:16px;transition:box-shadow .2s,background-color .2s}@supports selector(:has(*)){.fieldset:not(.has-highlighted-option):has(input:focus){box-shadow:0 0 0 4px color-mix(in srgb,var(--vvd-color-cta-500),transparent 85%),inset 0 0 0 3px var(--focus-stroke-gap-color, currentColor);outline:1px solid var(--focus-stroke-color, var(--vvd-color-cta-500));outline-offset:calc(-1px - var(--focus-inset, 0px));--focus-stroke-gap-color: transparent}}@supports not selector(:has(*)){.fieldset:not(.has-highlighted-option):focus-within{box-shadow:0 0 0 4px color-mix(in srgb,var(--vvd-color-cta-500),transparent 85%),inset 0 0 0 3px var(--focus-stroke-gap-color, currentColor);outline:1px solid var(--focus-stroke-color, var(--vvd-color-cta-500));outline-offset:calc(-1px - var(--focus-inset, 0px));--focus-stroke-gap-color: transparent}}:host(:not([shape=pill])) .fieldset{border-radius:8px}:host([shape=pill]) .fieldset{border-radius:24px}.popup-wrapper{position:relative}.content-area{display:flex;overflow:hidden;flex:1;flex-direction:column;gap:8px;min-block-size:24px}.tag-row{display:flex;gap:8px;inline-size:100%}.tag-row.contains-only-input:not(:focus-within){display:contents}.tag-wrapper{overflow:hidden}.tag{max-inline-size:100%}input{box-sizing:border-box;flex:1;border:none;background:none;block-size:24px;font:var(--vvd-typography-base);max-inline-size:100%;min-inline-size:min(100px,40%);outline:none}.contains-only-input input:not(:focus){position:absolute;block-size:0;inline-size:0;min-inline-size:0;opacity:0;pointer-events:none}.listbox{display:flex;flex-direction:column;padding:4px;gap:2px;max-block-size:var(--searchable-select-height, 408px);overflow-y:auto}.empty-message{display:flex;align-items:center;justify-content:center;color:var(--vvd-color-neutral-300);font:var(--vvd-typography-base);min-block-size:40px;text-align:center}::part(popup-base){inline-size:max-content;min-inline-size:var(--_searchable-select-fixed-width, 100%)}slot[name=icon]{font-size:20px}.visually-hidden{position:absolute;overflow:hidden;width:1px;height:1px;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}::slotted([data-vvd-component=option][data-highlighted]){border-radius:8px;box-shadow:0 0 0 4px color-mix(in srgb,var(--vvd-color-cta-500),transparent 85%),inset 0 0 0 3px var(--focus-stroke-gap-color, currentColor);outline:1px solid var(--focus-stroke-color, var(--vvd-color-cta-500));outline-offset:calc(-1px - var(--focus-inset, 0px));--focus-stroke-gap-color: transparent}.label-wrapper{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:var(--label-wrapper-gap, 8px)}.label-wrapper[hidden]{display:none}.label-wrapper .label{flex:1 1 auto}.label-wrapper slot[name=contextual-help]::slotted([data-vvd-component=contextual-help]){margin-inline-start:auto}", se = '.base.connotation-cta{--_connotation-color-contrast: var(--vvd-option-tag-cta-contrast, var(--vvd-color-cta-800))}.base:not(.connotation-cta){--_connotation-color-contrast: var(--vvd-option-tag-accent-contrast, var(--vvd-color-neutral-800))}.base{position:relative;display:inline-flex;box-sizing:border-box;align-items:center;background-color:var(--fill-color);block-size:calc(1px*(24 + 4*clamp(-1,var(--vvd-size-density, 0),2)));box-shadow:inset 0 0 0 1px var(--outline-color);color:var(--text-color);column-gap:8px;font:var(--vvd-typography-base-bold);max-inline-size:100%;padding-inline:8px;user-select:none;vertical-align:middle}.base:not(.disabled){--text-color: var(--_connotation-color-contrast);--fill-color: var(--_connotation-color-soft);--outline-color: transparent}@supports (background-color: color-mix(in srgb,black 50%,white)){.base:not(.disabled){--fill-color: color-mix( in srgb, var(--_connotation-color-contrast), transparent 87.5% )}}.base.disabled{--text-color: var(--vvd-color-neutral-300);--fill-color: var(--vvd-color-neutral-200);--outline-color: transparent}@supports (background-color: color-mix(in srgb,black 50%,white)){.base.disabled{--fill-color: color-mix( in srgb, var(--vvd-color-neutral-800), transparent 87.5% )}}.base:not(.shape-pill){border-radius:4px}.base.shape-pill{border-radius:16px}.label{overflow:hidden;max-inline-size:100%;text-overflow:ellipsis;white-space:nowrap}slot[name=icon]{font-size:calc(calc(1px*(24 + 4*clamp(-1,var(--vvd-size-density, 0),2))) / 1.5);line-height:1}.icon-placeholder{inline-size:calc(calc(1px*(24 + 4*clamp(-1,var(--vvd-size-density, 0),2))) / 1.5)}.remove-button{display:flex;align-items:center;border-radius:inherit;cursor:pointer;outline:none}.disabled .remove-button{pointer-events:none}.remove-button:focus-visible:before{--focus-stroke-gap-color: transparent;box-shadow:0 0 0 4px color-mix(in srgb,var(--vvd-color-cta-500),transparent 85%),inset 0 0 0 3px var(--focus-stroke-gap-color, currentColor);outline:1px solid var(--focus-stroke-color, var(--vvd-color-cta-500));outline-offset:calc(-1px - var(--focus-inset, 0px));position:absolute;z-index:1;display:block;border-radius:inherit;content:"";inset:0;pointer-events:none}';
23
- var le = Object.defineProperty, r = (s, t, e, a) => {
24
- for (var i = void 0, l = s.length - 1, g; l >= 0; l--)
25
- (g = s[l]) && (i = g(t, e, i) || i);
26
- return i && le(t, e, i), i;
22
+ import { r as y } from "../bundled/repeat.js";
23
+ import { c as w } from "../bundled/class-names.js";
24
+ const re = ".chevron{display:flex;flex-shrink:0;font:var(--vvd-typography-base-extended);transform:rotate(0);transition:transform .2s}:host([data-expanded=true]) .chevron,:host([open]) .chevron{transform:rotate(180deg)}:not(.disabled) .chevron{cursor:pointer}.disabled .chevron{color:var(--_low-ink-color);cursor:not-allowed}:host(:focus-visible){outline:none}:host{display:inline-block;inline-size:300px;--_low-ink-color: var(--vvd-color-neutral-600)}:host([disabled]){--_low-ink-color: var(--vvd-color-neutral-400);cursor:not-allowed}.control-wrapper{display:flex;flex-direction:column;gap:4px}.label{color:var(--vvd-color-canvas-text);font:var(--vvd-typography-base)}.selection-count{color:var(--_low-ink-color);font:var(--vvd-typography-base)}.fieldset{--_connotation-color-primary: var(--vvd-searchable-select-accent-primary, var(--vvd-color-canvas-text));--_connotation-color-primary-text: var(--vvd-searchable-select-accent-primary-text, var(--vvd-color-canvas));--_connotation-color-primary-increment: var(--vvd-searchable-select-accent-primary-increment, var(--vvd-color-neutral-800));--_connotation-color-intermediate: var(--vvd-searchable-select-accent-intermediate, var(--vvd-color-neutral-500));--_connotation-color-faint: var(--vvd-searchable-select-accent-faint, var(--vvd-color-neutral-50));--_connotation-color-soft: var(--vvd-searchable-select-accent-soft, var(--vvd-color-neutral-100));--_connotation-color-firm: var(--vvd-searchable-select-accent-firm, var(--vvd-color-canvas-text));--_connotation-color-fierce: var(--vvd-searchable-select-accent-fierce, var(--vvd-color-neutral-700))}.fieldset{--_appearance-color-text: var(--vvd-color-canvas-text);--_appearance-color-fill: var(--vvd-color-canvas);--_appearance-color-outline: var(--vvd-color-neutral-500)}.fieldset.appearance-ghost{--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: transparent;--_appearance-color-outline: transparent}@media (hover: hover){.fieldset:hover:where(:not(.disabled,:disabled,.readonly)){--_appearance-color-text: var(--vvd-color-canvas-text);--_appearance-color-fill: var(--vvd-color-canvas);--_appearance-color-outline: var(--vvd-color-neutral-700)}.fieldset:hover:where(:not(.disabled,:disabled,.readonly)).appearance-ghost{--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: var(--_connotation-color-faint);--_appearance-color-outline: transparent}}.fieldset.hover:where(:not(.disabled,:disabled,.readonly)){--_appearance-color-text: var(--vvd-color-canvas-text);--_appearance-color-fill: var(--vvd-color-canvas);--_appearance-color-outline: var(--vvd-color-neutral-700)}.fieldset.hover:where(:not(.disabled,:disabled,.readonly)).appearance-ghost{--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: var(--_connotation-color-faint);--_appearance-color-outline: transparent}.fieldset:disabled{--_appearance-color-text: var(--vvd-color-neutral-300);--_appearance-color-fill: var(--vvd-color-neutral-100);--_appearance-color-outline: var(--vvd-color-neutral-300)}.fieldset:disabled.appearance-ghost{--_appearance-color-text: var(--vvd-color-neutral-300);--_appearance-color-fill: transparent;--_appearance-color-outline: transparent}.fieldset.disabled{--_appearance-color-text: var(--vvd-color-neutral-300);--_appearance-color-fill: var(--vvd-color-neutral-100);--_appearance-color-outline: var(--vvd-color-neutral-300)}.fieldset.disabled.appearance-ghost{--_appearance-color-text: var(--vvd-color-neutral-300);--_appearance-color-fill: transparent;--_appearance-color-outline: transparent}.fieldset.readonly:where(:not(.disabled,:disabled)){--_appearance-color-text: var(--vvd-color-canvas-text);--_appearance-color-fill: var(--vvd-color-neutral-200);--_appearance-color-outline: var(--vvd-color-neutral-400)}.fieldset.readonly:where(:not(.disabled,:disabled)).appearance-ghost{--_appearance-color-text: var(--vvd-color-neutral-600);--_appearance-color-fill: transparent;--_appearance-color-outline: transparent}.fieldset.error:where(:not(.disabled,:disabled)){--_appearance-color-text: notSet;--_appearance-color-fill: var(--vvd-color-alert-50);--_appearance-color-outline: var(--vvd-color-alert-500)}.fieldset.error:where(:not(.disabled,:disabled)).appearance-ghost{--_appearance-color-text: notSet;--_appearance-color-fill: var(--vvd-color-alert-50);--_appearance-color-outline: transparent}.fieldset.success:where(:not(.disabled,:disabled)){--_appearance-color-text: notSet;--_appearance-color-fill: var(--vvd-color-success-50);--_appearance-color-outline: var(--vvd-color-success-500)}.fieldset.success:where(:not(.disabled,:disabled)).appearance-ghost{--_appearance-color-text: notSet;--_appearance-color-fill: var(--vvd-color-success-50);--_appearance-color-outline: transparent}.fieldset{display:flex;align-items:center;justify-content:space-between;background-color:var(--_appearance-color-fill);box-shadow:inset 0 0 0 1px var(--_appearance-color-outline);color:var(--_appearance-color-text);font:var(--vvd-typography-base);gap:8px;padding-block:8px;padding-inline:16px;transition:box-shadow .2s,background-color .2s}@supports selector(:has(*)){.fieldset:not(.has-highlighted-option):has(input:focus){box-shadow:0 0 0 4px color-mix(in srgb,var(--vvd-color-cta-500),transparent 85%),inset 0 0 0 3px var(--focus-stroke-gap-color, currentColor);outline:1px solid var(--focus-stroke-color, var(--vvd-color-cta-500));outline-offset:calc(-1px - var(--focus-inset, 0px));--focus-stroke-gap-color: transparent}}@supports not selector(:has(*)){.fieldset:not(.has-highlighted-option):focus-within{box-shadow:0 0 0 4px color-mix(in srgb,var(--vvd-color-cta-500),transparent 85%),inset 0 0 0 3px var(--focus-stroke-gap-color, currentColor);outline:1px solid var(--focus-stroke-color, var(--vvd-color-cta-500));outline-offset:calc(-1px - var(--focus-inset, 0px));--focus-stroke-gap-color: transparent}}:host(:not([shape=pill])) .fieldset{border-radius:8px}:host([shape=pill]) .fieldset{border-radius:24px}.popup-wrapper{position:relative}.content-area{display:flex;overflow:hidden;flex:1;flex-direction:column;gap:8px;min-block-size:24px}.tag-row{display:flex;gap:8px;inline-size:100%}.tag-row.contains-only-input:not(:focus-within){display:contents}.tag-wrapper{overflow:hidden}.tag{max-inline-size:100%}input{box-sizing:border-box;flex:1;border:none;background:none;block-size:24px;font:var(--vvd-typography-base);max-inline-size:100%;min-inline-size:min(100px,40%);outline:none}.contains-only-input input:not(:focus){position:absolute;block-size:0;inline-size:0;min-inline-size:0;opacity:0;pointer-events:none}.listbox{display:flex;flex-direction:column;padding:4px;gap:2px;max-block-size:var(--searchable-select-height, 408px);overflow-y:auto}.empty-message{display:flex;align-items:center;justify-content:center;color:var(--vvd-color-neutral-300);font:var(--vvd-typography-base);min-block-size:40px;text-align:center}::part(popup-base){inline-size:max-content;min-inline-size:var(--_searchable-select-fixed-width, 100%)}slot[name=icon]{font-size:20px}.visually-hidden{position:absolute;overflow:hidden;width:1px;height:1px;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}::slotted([data-vvd-component=option][data-highlighted]),[data-select-all][data-highlighted]{border-radius:8px;box-shadow:0 0 0 4px color-mix(in srgb,var(--vvd-color-cta-500),transparent 85%),inset 0 0 0 3px var(--focus-stroke-gap-color, currentColor);outline:1px solid var(--focus-stroke-color, var(--vvd-color-cta-500));outline-offset:calc(-1px - var(--focus-inset, 0px));--focus-stroke-gap-color: transparent}.divider{margin-block:10px;margin-inline:12px}.label-wrapper{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:var(--label-wrapper-gap, 8px)}.label-wrapper[hidden]{display:none}.label-wrapper .label{flex:1 1 auto}.label-wrapper slot[name=contextual-help]::slotted([data-vvd-component=contextual-help]){margin-inline-start:auto}", ce = '.base.connotation-cta{--_connotation-color-contrast: var(--vvd-option-tag-cta-contrast, var(--vvd-color-cta-800))}.base:not(.connotation-cta){--_connotation-color-contrast: var(--vvd-option-tag-accent-contrast, var(--vvd-color-neutral-800))}.base{position:relative;display:inline-flex;box-sizing:border-box;align-items:center;background-color:var(--fill-color);block-size:calc(1px*(24 + 4*clamp(-1,var(--vvd-size-density, 0),2)));box-shadow:inset 0 0 0 1px var(--outline-color);color:var(--text-color);column-gap:8px;font:var(--vvd-typography-base-bold);max-inline-size:100%;padding-inline:8px;user-select:none;vertical-align:middle}.base:not(.disabled){--text-color: var(--_connotation-color-contrast);--fill-color: var(--_connotation-color-soft);--outline-color: transparent}@supports (background-color: color-mix(in srgb,black 50%,white)){.base:not(.disabled){--fill-color: color-mix( in srgb, var(--_connotation-color-contrast), transparent 87.5% )}}.base.disabled{--text-color: var(--vvd-color-neutral-300);--fill-color: var(--vvd-color-neutral-200);--outline-color: transparent}@supports (background-color: color-mix(in srgb,black 50%,white)){.base.disabled{--fill-color: color-mix( in srgb, var(--vvd-color-neutral-800), transparent 87.5% )}}.base:not(.shape-pill){border-radius:4px}.base.shape-pill{border-radius:16px}.label{overflow:hidden;max-inline-size:100%;text-overflow:ellipsis;white-space:nowrap}slot[name=icon]{font-size:calc(calc(1px*(24 + 4*clamp(-1,var(--vvd-size-density, 0),2))) / 1.5);line-height:1}.icon-placeholder{inline-size:calc(calc(1px*(24 + 4*clamp(-1,var(--vvd-size-density, 0),2))) / 1.5)}.remove-button{display:flex;align-items:center;border-radius:inherit;cursor:pointer;outline:none}.disabled .remove-button{pointer-events:none}.remove-button:focus-visible:before{--focus-stroke-gap-color: transparent;box-shadow:0 0 0 4px color-mix(in srgb,var(--vvd-color-cta-500),transparent 85%),inset 0 0 0 3px var(--focus-stroke-gap-color, currentColor);outline:1px solid var(--focus-stroke-color, var(--vvd-color-cta-500));outline-offset:calc(-1px - var(--focus-inset, 0px));position:absolute;z-index:1;display:block;border-radius:inherit;content:"";inset:0;pointer-events:none}';
25
+ var de = Object.defineProperty, r = (s, t, e, o) => {
26
+ for (var a = void 0, i = s.length - 1, g; i >= 0; i--)
27
+ (g = s[i]) && (a = g(t, e, a) || a);
28
+ return a && de(t, e, a), a;
27
29
  };
28
- const m = 8, ne = 100, S = 10, re = (s) => typeof s == "string";
29
- class n extends Q(
30
- K(
31
- X(
32
- Y(
33
- Z(
34
- U(
35
- ee(V(J(F)))
30
+ const _ = 8, pe = 100, S = 10, he = (s) => typeof s == "string";
31
+ class n extends ee(
32
+ U(
33
+ te(
34
+ ae(
35
+ oe(
36
+ X(
37
+ le(V(Z(F)))
36
38
  )
37
39
  )
38
40
  )
@@ -42,11 +44,11 @@ class n extends Q(
42
44
  constructor() {
43
45
  super(...arguments), this.fixedDropdown = !1, this.open = !1, this.multiple = !1, this.externalTags = !1, this.maxLines = null, this.values = [], this.initialValues = [], this._currentSearchText = null, this._areOptionsInitialized = !1, this.#s = {
44
46
  handleChange: (t, e) => {
45
- t.selected && !this.values.includes(t.value) ? this.values = [...this.values, t.value] : !t.selected && this.values.includes(t.value) && (this.values = this.values.filter((a) => a !== t.value));
47
+ t.selected && !this.values.includes(t.value) ? this.values = [...this.values, t.value] : !t.selected && this.values.includes(t.value) && (this.values = this.values.filter((o) => o !== t.value));
46
48
  }
47
- }, this.#t = /* @__PURE__ */ new Map(), this._filteredOptions = [], this._filteredEnabledOptions = [], this.loading = !1, this._highlightedOptionIndex = null, this._numElidedTags = 0, this._tagRows = [], this._lastTagRow = [], this.clearable = !1, this.maxSelected = null, this._slottedDisabledOptions = [], this.proxy = document.createElement("input"), this.setFormValue = (t, e) => {
48
- re(t) || super.setFormValue(t, e);
49
- }, this._changeDescription = "", this.#p = new ResizeObserver(() => {
49
+ }, this.#a = /* @__PURE__ */ new Map(), this._filteredOptions = [], this._filteredEnabledOptions = [], this.loading = !1, this._highlightedOptionIndex = null, this._numElidedTags = 0, this._tagRows = [], this._lastTagRow = [], this.clearable = !1, this.maxSelected = null, this._slottedDisabledOptions = [], this.enableSelectAll = !1, this.proxy = document.createElement("input"), this.setFormValue = (t, e) => {
50
+ he(t) || super.setFormValue(t, e);
51
+ }, this._changeDescription = "", this.#d = new ResizeObserver(() => {
50
52
  this.#u();
51
53
  });
52
54
  }
@@ -65,14 +67,14 @@ class n extends Q(
65
67
  this.values = [this.values[0]];
66
68
  return;
67
69
  }
68
- if (this.values.some((t) => !this.#d(t))) {
69
- this.values = this.values.filter((t) => this.#d(t));
70
+ if (this.values.some((t) => !this.#p(t))) {
71
+ this.values = this.values.filter((t) => this.#p(t));
70
72
  return;
71
73
  }
72
- this.value = this.values.length ? this.values[0] : "", this.#c(), this.#m(), this.$fastController.isConnected && this.#u(), this.#g();
74
+ this.value = this.values.length ? this.values[0] : "", this.#c(), this.#_(), this.$fastController.isConnected && this.#u(), this.#g();
73
75
  }
74
76
  }
75
- #a(t) {
77
+ #t(t) {
76
78
  this.values = t, this.$emit("change", void 0, {
77
79
  bubbles: !1
78
80
  }), this.$emit("input", void 0, {
@@ -80,8 +82,8 @@ class n extends Q(
80
82
  });
81
83
  }
82
84
  #b(t) {
83
- const e = new Set(this.values), a = new Set(t);
84
- this.values = [...this.values].filter((i) => a.has(i)).concat([...t].filter((i) => !e.has(i)));
85
+ const e = new Set(this.values), o = new Set(t);
86
+ this.values = [...this.values].filter((a) => o.has(a)).concat([...t].filter((a) => !e.has(a)));
85
87
  }
86
88
  /**
87
89
  * @internal
@@ -89,7 +91,7 @@ class n extends Q(
89
91
  initialValuesChanged() {
90
92
  this.dirtyValue || (this.values = this.initialValues, this.dirtyValue = !1);
91
93
  }
92
- #d(t) {
94
+ #p(t) {
93
95
  return this._slottedOptions.some((e) => e.value === t);
94
96
  }
95
97
  /**
@@ -98,10 +100,10 @@ class n extends Q(
98
100
  valueChanged(t, e) {
99
101
  if (super.valueChanged(t, e), !this._areOptionsInitialized)
100
102
  return;
101
- const a = this._slottedOptions.some(
102
- (i) => i.value === e
103
+ const o = this._slottedOptions.some(
104
+ (a) => a.value === e
103
105
  );
104
- this.values[0] !== e && (this.values = a ? [e] : []);
106
+ this.values[0] !== e && (this.values = o ? [e] : []);
105
107
  }
106
108
  get selectedIndex() {
107
109
  return this.values.length ? this._slottedOptions.findIndex(
@@ -175,13 +177,13 @@ class n extends Q(
175
177
  this.open = !0;
176
178
  break;
177
179
  }
178
- return this.#w(), !1;
180
+ return this.#y(), !1;
179
181
  case "End":
180
182
  if (!this.open) {
181
183
  this.open = !0;
182
184
  break;
183
185
  }
184
- return this.#y(), !1;
186
+ return this.#w(), !1;
185
187
  case "PageUp":
186
188
  if (!this.open) {
187
189
  this.open = !0;
@@ -193,13 +195,13 @@ class n extends Q(
193
195
  this.open = !0;
194
196
  break;
195
197
  }
196
- return this.#T(), !1;
198
+ return this.#O(), !1;
197
199
  case "ArrowUp":
198
200
  if (!this.open) {
199
201
  this.open = !0;
200
202
  break;
201
203
  }
202
- return this.#O(), !1;
204
+ return this.#T(), !1;
203
205
  case "ArrowDown":
204
206
  if (!this.open) {
205
207
  this.open = !0;
@@ -207,7 +209,7 @@ class n extends Q(
207
209
  }
208
210
  return this.#S(), !1;
209
211
  case "ArrowLeft":
210
- return this.multiple && this._inputValue === "" && this.values.length && !this.externalTags ? (this.#i(this.#r(this.values.length)), !1) : !0;
212
+ return this.multiple && this._inputValue === "" && this.values.length && !this.externalTags ? (this.#l(this.#r(this.values.length)), !1) : !0;
211
213
  case "Backspace":
212
214
  return this.multiple && this._inputValue === "" && this.values.length ? (this._onTagRemoved(this.values[this.values.length - 1]), !1) : !0;
213
215
  default:
@@ -219,33 +221,33 @@ class n extends Q(
219
221
  * @internal
220
222
  */
221
223
  _slottedOptionsChanged(t, e) {
222
- const a = !!this.querySelectorAll(":not([slot])").length;
223
- if (!e.length && a)
224
+ const o = !!this.querySelectorAll(":not([slot])").length;
225
+ if (!e.length && o)
224
226
  return;
225
227
  if (this._areOptionsInitialized = !0, t) {
226
228
  this._slottedDisabledOptions = [];
227
- for (const l of t)
228
- T.getNotifier(l).unsubscribe(this.#s, "selected");
229
+ for (const i of t)
230
+ O.getNotifier(i).unsubscribe(this.#s, "selected");
229
231
  }
230
232
  if (e)
231
- for (const l of e)
232
- l._displayCheckmark = !0, T.getNotifier(l).subscribe(this.#s, "selected");
233
- const i = [];
234
- for (const l of this._slottedOptions)
235
- (l.selected || l.value === this.value || this.values.includes(l.value)) && i.push(l.value), l.disabled && this._slottedDisabledOptions.push(l);
236
- this.#b(i), this.#o(), this.#c();
233
+ for (const i of e)
234
+ i._displayCheckmark = !0, O.getNotifier(i).subscribe(this.#s, "selected");
235
+ const a = [];
236
+ for (const i of this._slottedOptions)
237
+ (i.selected || i.value === this.value || this.values.includes(i.value)) && a.push(i.value), i.disabled && this._slottedDisabledOptions.push(i);
238
+ this.#b(a), this.#o(), this.#c();
237
239
  }
238
240
  #s;
239
- #m() {
241
+ #_() {
240
242
  for (const t of this._slottedOptions)
241
- t.selected = this.values.includes(t.value), this.#_(t);
243
+ t.selected = this.values.includes(t.value), this.#m(t);
242
244
  }
243
245
  #h(t) {
244
246
  const e = t.value;
245
- let a, i = !1;
246
- const l = !this.values.includes(e);
247
- this.multiple ? (l ? a = [...this.values, e] : a = this.values.filter((u) => u !== e), i = !0) : (l ? (a = [e], i = !0) : a = [], this.open = !1), this.#a(a);
248
- const g = l ? this.locale.searchableSelect.optionSelectedMessage(
247
+ let o, a = !1;
248
+ const i = !this.values.includes(e);
249
+ this.multiple ? (i ? o = [...this.values, e] : o = this.values.filter((f) => f !== e), a = !0) : (i ? (o = [e], a = !0) : o = [], this.open = !1), this.#t(o);
250
+ const g = i ? this.locale.searchableSelect.optionSelectedMessage(
249
251
  t._getAccessibleName()
250
252
  ) : this.locale.searchableSelect.optionDeselectedMessage(
251
253
  t._getAccessibleName()
@@ -253,10 +255,10 @@ class n extends Q(
253
255
  this.values.length,
254
256
  this.maxSelected
255
257
  ) : "";
256
- this._changeDescription = `${g} ${h}`, i && (this._currentSearchText = null);
258
+ this._changeDescription = `${g} ${h}`, a && (this._currentSearchText = null);
257
259
  }
258
- #t;
259
- #l(t) {
260
+ #a;
261
+ #i(t) {
260
262
  return t.querySelector('[slot="tag-icon"]');
261
263
  }
262
264
  /**
@@ -265,13 +267,13 @@ class n extends Q(
265
267
  _tagIconSlotName(t) {
266
268
  return `_tag-icon-${this.values.indexOf(t)}`;
267
269
  }
268
- #_(t) {
269
- if (t.selected && this.#l(t)) {
270
- let e = this.#t.get(t);
271
- e || (e = this.#l(t).cloneNode(!0), this.#t.set(t, e)), e.slot = this._tagIconSlotName(t.value), this.appendChild(e);
270
+ #m(t) {
271
+ if (t.selected && this.#i(t)) {
272
+ let e = this.#a.get(t);
273
+ e || (e = this.#i(t).cloneNode(!0), this.#a.set(t, e)), e.slot = this._tagIconSlotName(t.value), this.appendChild(e);
272
274
  } else {
273
- const e = this.#t.get(t);
274
- e && (e.remove(), this.#t.delete(t));
275
+ const e = this.#a.get(t);
276
+ e && (e.remove(), this.#a.delete(t));
275
277
  }
276
278
  }
277
279
  /**
@@ -293,9 +295,9 @@ class n extends Q(
293
295
  const i = !this.searchText || e(a, this.searchText);
294
296
  a._isNotMatching = !i, !a.hidden && i && t.push(a);
295
297
  }
296
- this.#e(null), this._filteredOptions = t, this._filteredEnabledOptions = t.filter(
297
- (a) => !a.disabled
298
- );
298
+ this.#e(null), this._filteredOptions = t;
299
+ const o = t.filter((a) => !a.disabled);
300
+ this._selectAllOption ? this._filteredEnabledOptions = [this._selectAllOption, ...o] : this._filteredEnabledOptions = o;
299
301
  }
300
302
  #e(t) {
301
303
  if (typeof this._highlightedOptionIndex == "number") {
@@ -307,7 +309,7 @@ class n extends Q(
307
309
  Math.min(this._filteredEnabledOptions.length - 1, t)
308
310
  ) : t = null), this._highlightedOptionIndex = t, typeof this._highlightedOptionIndex == "number") {
309
311
  const e = this._filteredEnabledOptions[this._highlightedOptionIndex];
310
- e._highlighted = !0, e.setAttribute("data-highlighted", ""), q(e, this._listbox, "nearest"), this._changeDescription = this.locale.searchableSelect.optionFocusedMessage(
312
+ e._highlighted = !0, e.setAttribute("data-highlighted", ""), Q(e, this._listbox, "nearest"), this._changeDescription = this.locale.searchableSelect.optionFocusedMessage(
311
313
  e._getAccessibleName(),
312
314
  this._highlightedOptionIndex + 1,
313
315
  this._filteredEnabledOptions.length,
@@ -316,14 +318,19 @@ class n extends Q(
316
318
  }
317
319
  }
318
320
  #x() {
319
- this._highlightedOptionIndex !== null && this.#h(
320
- this._filteredEnabledOptions[this._highlightedOptionIndex]
321
- );
321
+ if (this._highlightedOptionIndex === null)
322
+ return;
323
+ const t = this._filteredEnabledOptions[this._highlightedOptionIndex];
324
+ if (t.getAttribute("data-select-all") !== null) {
325
+ this._toggleSelectAll();
326
+ return;
327
+ }
328
+ this.#h(t);
322
329
  }
323
- #w() {
330
+ #y() {
324
331
  this.#e(0);
325
332
  }
326
- #y() {
333
+ #w() {
327
334
  this.#e(
328
335
  this._filteredEnabledOptions.length - 1
329
336
  );
@@ -333,12 +340,12 @@ class n extends Q(
333
340
  (this._highlightedOptionIndex ?? this._filteredEnabledOptions.length) - S
334
341
  );
335
342
  }
336
- #T() {
343
+ #O() {
337
344
  this.#e(
338
345
  (this._highlightedOptionIndex ?? -1) + S
339
346
  );
340
347
  }
341
- #O() {
348
+ #T() {
342
349
  this.#e(
343
350
  (this._highlightedOptionIndex ?? this._filteredEnabledOptions.length) - 1
344
351
  );
@@ -354,7 +361,7 @@ class n extends Q(
354
361
  */
355
362
  _tagLabelForValue(t) {
356
363
  return this._slottedOptions.find(
357
- (a) => a.value === t
364
+ (o) => o.value === t
358
365
  ).label;
359
366
  }
360
367
  /**
@@ -362,7 +369,7 @@ class n extends Q(
362
369
  */
363
370
  _tagConnotationForValue(t) {
364
371
  return this._slottedOptions.find(
365
- (a) => a.value === t
372
+ (o) => o.value === t
366
373
  ).tagConnotation;
367
374
  }
368
375
  /**
@@ -370,23 +377,23 @@ class n extends Q(
370
377
  */
371
378
  _isTagDisabled(t) {
372
379
  const e = this._slottedOptions.find(
373
- (a) => a.value === t
380
+ (o) => o.value === t
374
381
  );
375
382
  return this.disabled || e.disabled;
376
383
  }
377
384
  #k(t) {
378
385
  return this._slottedOptions?.find(
379
- (a) => a.value === t
386
+ (o) => o.value === t
380
387
  )?.label;
381
388
  }
382
389
  /**
383
390
  * @internal
384
391
  */
385
- #n(t, e, a) {
386
- const i = document.createElement(this._optionTagTagName);
387
- i.label = t, i.removable = e, i.style.cssText = "position: absolute; visibility: hidden;", i.hasIconPlaceholder = a, this.shadowRoot.appendChild(i);
388
- const l = i.getBoundingClientRect().width;
389
- return i.remove(), l;
392
+ #n(t, e, o) {
393
+ const a = document.createElement(this._optionTagTagName);
394
+ a.label = t, a.removable = e, a.style.cssText = "position: absolute; visibility: hidden;", a.hasIconPlaceholder = o, this.shadowRoot.appendChild(a);
395
+ const i = a.getBoundingClientRect().width;
396
+ return a.remove(), i;
390
397
  }
391
398
  #u() {
392
399
  if (!this.multiple) {
@@ -398,49 +405,49 @@ class n extends Q(
398
405
  return;
399
406
  }
400
407
  const t = this._contentArea.getBoundingClientRect().width, e = [[]];
401
- let a = 0, i = ne, l;
402
- for (l = this.values.length - 1; l >= 0; l--) {
403
- const h = this.maxLines && a === this.maxLines - 1, u = this.#n(
404
- this._tagLabelForValue(this.values[l]),
408
+ let o = 0, a = pe, i;
409
+ for (i = this.values.length - 1; i >= 0; i--) {
410
+ const h = this.maxLines && o === this.maxLines - 1, f = this.#n(
411
+ this._tagLabelForValue(this.values[i]),
405
412
  !0,
406
- this.#l(this.selectedOptions[l]) !== null
407
- ), o = {
408
- value: this.values[l],
409
- width: u
413
+ this.#i(this.selectedOptions[i]) !== null
414
+ ), l = {
415
+ value: this.values[i],
416
+ width: f
410
417
  };
411
418
  let c = 0;
412
419
  if (h) {
413
- const $ = l;
414
- $ && (c = m + this.#n($.toString(), !1, !1));
420
+ const $ = i;
421
+ $ && (c = _ + this.#n($.toString(), !1, !1));
415
422
  }
416
- if (i + m + u + c > t) {
423
+ if (a + _ + f + c > t) {
417
424
  if (h)
418
- if (l === this.values.length - 1)
419
- e[a].unshift(o), i += m + u;
425
+ if (i === this.values.length - 1)
426
+ e[o].unshift(l), a += _ + f;
420
427
  else
421
428
  break;
422
429
  else
423
- e.push([]), a++, e[a].unshift(o), i = u;
430
+ e.push([]), o++, e[o].unshift(l), a = f;
424
431
  continue;
425
432
  }
426
- e[a].unshift(o), i += m + u;
433
+ e[o].unshift(l), a += _ + f;
427
434
  }
428
- this._numElidedTags = l + 1, e.reverse();
435
+ this._numElidedTags = i + 1, e.reverse();
429
436
  for (let h = 0; h < e.length - 1; h++) {
430
- let u = e[h].map((o) => o.width).reduce((o, c) => o + c, 0) + (e[h].length - 1) * m;
431
- for (h === 0 && this._numElidedTags && (u += m + this.#n(this._numElidedTags.toString(), !1, !1)); e[h + 1].length && u + m + e[h + 1][0].width <= t; ) {
432
- const o = e[h + 1].shift();
433
- e[h].push(o), u += m + o.width;
437
+ let f = e[h].map((l) => l.width).reduce((l, c) => l + c, 0) + (e[h].length - 1) * _;
438
+ for (h === 0 && this._numElidedTags && (f += _ + this.#n(this._numElidedTags.toString(), !1, !1)); e[h + 1].length && f + _ + e[h + 1][0].width <= t; ) {
439
+ const l = e[h + 1].shift();
440
+ e[h].push(l), f += _ + l.width;
434
441
  }
435
442
  }
436
- const g = e.map((h) => h.map((u) => u.value));
443
+ const g = e.map((h) => h.map((f) => f.value));
437
444
  this._tagRows = g.slice(0, -1), this._lastTagRow = g.slice(-1)[0];
438
445
  }
439
446
  /**
440
447
  * @internal
441
448
  */
442
449
  _onTagRemoved(t) {
443
- this.#a(
450
+ this.#t(
444
451
  this.values.filter((e) => e !== t)
445
452
  ), this.#o();
446
453
  }
@@ -454,19 +461,19 @@ class n extends Q(
454
461
  case "Delete":
455
462
  case "Enter":
456
463
  case " ": {
457
- this._onTagRemoved(this.values[e]), N.processUpdates(), this.#i(this.#C(e));
464
+ this._onTagRemoved(this.values[e]), j.process(), this.#l(this.#C(e));
458
465
  break;
459
466
  }
460
467
  case "ArrowLeft":
461
- this.#i(this.#r(e) ?? e);
468
+ this.#l(this.#r(e) ?? e);
462
469
  break;
463
470
  case "ArrowRight":
464
- this.#i(this.#v(e));
471
+ this.#l(this.#v(e));
465
472
  break;
466
473
  }
467
474
  return !0;
468
475
  }
469
- #i(t) {
476
+ #l(t) {
470
477
  t === null ? this._input.focus() : this.shadowRoot.querySelector(`[data-index="${t}"]`)?.focus();
471
478
  }
472
479
  #r(t) {
@@ -497,6 +504,10 @@ class n extends Q(
497
504
  const e = t.target.closest(
498
505
  "option,[role=option],[data-vvd-component=option]"
499
506
  );
507
+ if (e?.getAttribute("data-select-all") !== null) {
508
+ this._toggleSelectAll();
509
+ return;
510
+ }
500
511
  e && !e.disabled && this.#h(e);
501
512
  }
502
513
  /**
@@ -509,7 +520,7 @@ class n extends Q(
509
520
  * @internal
510
521
  */
511
522
  _onClearButtonClick() {
512
- this.#a(
523
+ this.#t(
513
524
  this.selectedOptions.filter((t) => t.disabled).map((t) => t.value)
514
525
  );
515
526
  }
@@ -527,10 +538,10 @@ class n extends Q(
527
538
  );
528
539
  if (this.values.length >= this.maxSelected) {
529
540
  const e = t.filter(
530
- (a) => !this.selectedOptions.includes(a)
541
+ (o) => !this.selectedOptions.includes(o)
531
542
  );
532
- for (const a of e)
533
- a.disabled = !0;
543
+ for (const o of e)
544
+ o.disabled = !0;
534
545
  } else
535
546
  for (const e of t)
536
547
  e.disabled = !1;
@@ -541,6 +552,48 @@ class n extends Q(
541
552
  get _hasSelectionCount() {
542
553
  return this.multiple && this.maxSelected && this.maxSelected >= 1;
543
554
  }
555
+ /**
556
+ * @internal
557
+ */
558
+ get _selectableOptions() {
559
+ return this._slottedOptions?.filter(
560
+ (t) => !this._slottedDisabledOptions.includes(t) && !t.disabled
561
+ ) ?? [];
562
+ }
563
+ /**
564
+ * @internal
565
+ */
566
+ get _selectAllLabel() {
567
+ return this._isAllSelected ? this.deselectAllText ?? this.locale.searchableSelect.deselectAllLabel : this.selectAllText ?? this.locale.searchableSelect.selectAllLabel;
568
+ }
569
+ /**
570
+ * @internal
571
+ */
572
+ get _isAllSelected() {
573
+ const t = this.values;
574
+ if (!this.multiple || !this._slottedOptions) return !1;
575
+ const e = this._selectableOptions;
576
+ if (e.length === 0) return !1;
577
+ const o = new Set(t);
578
+ return e.every((a) => o.has(a.value));
579
+ }
580
+ /**
581
+ * @internal
582
+ */
583
+ _toggleSelectAll() {
584
+ const t = this._selectableOptions.map((a) => a.value);
585
+ if (this._isAllSelected) {
586
+ const a = this.values.filter(
587
+ (i) => !t.includes(i)
588
+ );
589
+ this.#t(a), this._changeDescription = this.locale.searchableSelect.deselectedAllMessage;
590
+ return;
591
+ }
592
+ const e = t.filter(
593
+ (a) => !this.values.includes(a)
594
+ ), o = [...this.values, ...e];
595
+ this.#t(o), this._changeDescription = this.locale.searchableSelect.selectedAllMessage;
596
+ }
544
597
  #f() {
545
598
  return this.initialValues.length ? this.initialValues : this.initialValue ? [this.initialValue] : [];
546
599
  }
@@ -564,9 +617,9 @@ class n extends Q(
564
617
  * @internal
565
618
  */
566
619
  formResetCallback() {
567
- super.formResetCallback(), this.#a(this.#f());
620
+ super.formResetCallback(), this.#t(this.#f());
568
621
  }
569
- #p;
622
+ #d;
570
623
  /**
571
624
  * @internal
572
625
  */
@@ -580,10 +633,10 @@ class n extends Q(
580
633
  return this.open ? (this.open = !1, !1) : !0;
581
634
  }
582
635
  connectedCallback() {
583
- super.connectedCallback(), this.values.length || (this.values = this.#f()), this.#p.observe(this._contentArea);
636
+ super.connectedCallback(), this.values.length || (this.values = this.#f()), this.#d.observe(this._contentArea);
584
637
  }
585
638
  disconnectedCallback() {
586
- super.disconnectedCallback(), this.#p.disconnect();
639
+ super.disconnectedCallback(), this.#d.disconnect();
587
640
  }
588
641
  /**
589
642
  * @internal
@@ -606,95 +659,107 @@ class n extends Q(
606
659
  }
607
660
  }
608
661
  r([
609
- f
662
+ u
610
663
  ], n.prototype, "appearance");
611
664
  r([
612
- f
665
+ u
613
666
  ], n.prototype, "shape");
614
667
  r([
615
- f({ mode: "boolean", attribute: "fixed-dropdown" })
668
+ u({ mode: "boolean", attribute: "fixed-dropdown" })
616
669
  ], n.prototype, "fixedDropdown");
617
670
  r([
618
- f
671
+ u
619
672
  ], n.prototype, "placeholder");
620
673
  r([
621
- f({ mode: "boolean" })
674
+ u({ mode: "boolean" })
622
675
  ], n.prototype, "open");
623
676
  r([
624
- f({ mode: "boolean" })
677
+ u({ mode: "boolean" })
625
678
  ], n.prototype, "multiple");
626
679
  r([
627
- f({ attribute: "external-tags", mode: "boolean" })
680
+ u({ attribute: "external-tags", mode: "boolean" })
628
681
  ], n.prototype, "externalTags");
629
682
  r([
630
- f({ attribute: "max-lines", converter: D })
683
+ u({ attribute: "max-lines", converter: A })
631
684
  ], n.prototype, "maxLines");
632
685
  r([
633
- d
686
+ p
634
687
  ], n.prototype, "values");
635
688
  r([
636
- d
689
+ p
637
690
  ], n.prototype, "initialValues");
638
691
  r([
639
- d
692
+ p
640
693
  ], n.prototype, "_input");
641
694
  r([
642
- d
695
+ p
643
696
  ], n.prototype, "_currentSearchText");
644
697
  r([
645
- d
698
+ p
646
699
  ], n.prototype, "_slottedOptions");
647
700
  r([
648
- d
701
+ p
649
702
  ], n.prototype, "optionFilter");
650
703
  r([
651
- d
704
+ p
652
705
  ], n.prototype, "_filteredOptions");
653
706
  r([
654
- d
707
+ p
655
708
  ], n.prototype, "_filteredEnabledOptions");
656
709
  r([
657
- f({
710
+ u({
658
711
  mode: "boolean"
659
712
  })
660
713
  ], n.prototype, "loading");
661
714
  r([
662
- d
715
+ p
663
716
  ], n.prototype, "_highlightedOptionIndex");
664
717
  r([
665
- d
718
+ p
666
719
  ], n.prototype, "_contentArea");
667
720
  r([
668
- d
721
+ p
669
722
  ], n.prototype, "_numElidedTags");
670
723
  r([
671
- d
724
+ p
672
725
  ], n.prototype, "_tagRows");
673
726
  r([
674
- d
727
+ p
675
728
  ], n.prototype, "_lastTagRow");
676
729
  r([
677
- d
730
+ p
678
731
  ], n.prototype, "_listbox");
679
732
  r([
680
- f({ mode: "boolean" })
733
+ u({ mode: "boolean" })
681
734
  ], n.prototype, "clearable");
682
735
  r([
683
- f({ attribute: "max-selected", converter: D })
736
+ u({ attribute: "max-selected", converter: A })
684
737
  ], n.prototype, "maxSelected");
685
738
  r([
686
- d
739
+ p
687
740
  ], n.prototype, "_slottedDisabledOptions");
688
741
  r([
689
- d
742
+ u({ attribute: "enable-select-all", mode: "boolean" })
743
+ ], n.prototype, "enableSelectAll");
744
+ r([
745
+ u({ attribute: "select-all-text" })
746
+ ], n.prototype, "selectAllText");
747
+ r([
748
+ u({ attribute: "deselect-all-text" })
749
+ ], n.prototype, "deselectAllText");
750
+ r([
751
+ p
752
+ ], n.prototype, "_selectAllOption");
753
+ r([
754
+ p
690
755
  ], n.prototype, "_changeDescription");
691
756
  r([
692
- d
757
+ p
693
758
  ], n.prototype, "_anchor");
694
- var ce = Object.defineProperty, _ = (s, t, e, a) => {
695
- for (var i = void 0, l = s.length - 1, g; l >= 0; l--)
696
- (g = s[l]) && (i = g(t, e, i) || i);
697
- return i && ce(t, e, i), i;
759
+ var ue = Object.defineProperty, m = (s, t, e, o) => {
760
+ for (var a = void 0, i = s.length - 1, g; i >= 0; i--)
761
+ (g = s[i]) && (a = g(t, e, a) || a);
762
+ return a && ue(t, e, a), a;
698
763
  };
699
764
  class b extends V(F) {
700
765
  constructor() {
@@ -706,25 +771,25 @@ class b extends V(F) {
706
771
  });
707
772
  }
708
773
  }
709
- _([
710
- f
774
+ m([
775
+ u
711
776
  ], b.prototype, "shape");
712
- _([
713
- d
777
+ m([
778
+ p
714
779
  ], b.prototype, "connotation");
715
- _([
716
- f
780
+ m([
781
+ u
717
782
  ], b.prototype, "label");
718
- _([
719
- f({ mode: "boolean" })
783
+ m([
784
+ u({ mode: "boolean" })
720
785
  ], b.prototype, "removable");
721
- _([
722
- f({ mode: "boolean" })
786
+ m([
787
+ u({ mode: "boolean" })
723
788
  ], b.prototype, "disabled");
724
- _([
725
- d
789
+ m([
790
+ p
726
791
  ], b.prototype, "hasIconPlaceholder");
727
- const pe = (s) => y(
792
+ const ve = (s) => w(
728
793
  ["disabled", s.disabled],
729
794
  [`appearance-${s.appearance}`, !!s.appearance],
730
795
  [`shape-${s.shape}`, !!s.shape],
@@ -732,13 +797,13 @@ const pe = (s) => y(
732
797
  ["success", !!s.successText],
733
798
  ["has-highlighted-option", s._highlightedOptionIndex !== null]
734
799
  );
735
- function de() {
736
- return p`
800
+ function fe() {
801
+ return d`
737
802
  <label for="control" class="label" id="label"> ${(s) => s.label} </label>
738
803
  `;
739
804
  }
740
- function he() {
741
- return p`
805
+ function ge() {
806
+ return d`
742
807
  <span
743
808
  id="selection-count"
744
809
  class="selection-count"
@@ -752,163 +817,178 @@ function he() {
752
817
  }
753
818
  const k = (s, t) => {
754
819
  const e = s.tagFor(b);
755
- return p`
820
+ return d`
756
821
  <div class="tag-wrapper">
757
822
  <${e}
758
823
  class="tag"
759
824
  tabindex="-1"
760
- data-index="${(a, i) => t(i).values.indexOf(a)}"
825
+ data-index="${(o, a) => t(a).values.indexOf(o)}"
761
826
  removable
762
- :label="${(a, i) => t(i)._tagLabelForValue(a)}"
763
- :shape="${(a, i) => t(i).shape}"
764
- :connotation="${(a, i) => t(i)._tagConnotationForValue(a)}"
765
- ?disabled="${(a, i) => t(i)._isTagDisabled(a)}"
766
- @remove="${(a, i) => t(i)._onTagRemoved(a)}"
767
- @keydown="${(a, i) => t(i)._onTagKeydown(i.event)}"
827
+ :label="${(o, a) => t(a)._tagLabelForValue(o)}"
828
+ :shape="${(o, a) => t(a).shape}"
829
+ :connotation="${(o, a) => t(a)._tagConnotationForValue(o)}"
830
+ ?disabled="${(o, a) => t(a)._isTagDisabled(o)}"
831
+ @remove="${(o, a) => t(a)._onTagRemoved(o)}"
832
+ @keydown="${(o, a) => t(a)._onTagKeydown(a.event)}"
768
833
  @mousedown="${() => !1}">
769
- <slot slot="icon" name="${(a, i) => t(i)._tagIconSlotName(a)}"></slot>
834
+ <slot slot="icon" name="${(o, a) => t(a)._tagIconSlotName(o)}"></slot>
770
835
  </${e}>
771
836
  </div>
772
837
  `;
773
838
  }, C = (s, t) => {
774
839
  const e = s.tagFor(b);
775
- return p`
840
+ return d`
776
841
  <${e}
777
842
  class="tag"
778
843
  tabindex="-1"
779
- :label="${(a, i) => t(a, i)._numElidedTags.toString()}"
780
- :shape="${(a, i) => t(a, i).shape}"
781
- ?disabled="${(a, i) => t(a, i).disabled}"
844
+ :label="${(o, a) => t(o, a)._numElidedTags.toString()}"
845
+ :shape="${(o, a) => t(o, a).shape}"
846
+ ?disabled="${(o, a) => t(o, a).disabled}"
782
847
  @mousedown="${() => !1}">
783
848
  </${e}>
784
849
  `;
785
850
  };
786
- function ue(s) {
787
- const t = s.tagFor(z), e = s.tagFor(A), a = te(s), i = E(s), l = k(s, (o) => o.parent), g = k(
851
+ function be(s) {
852
+ const t = s.tagFor(R), e = s.tagFor(H), o = se(s), a = z(s), i = k(s, (l) => l.parent), g = k(
788
853
  s,
789
- (o) => o.parentContext.parent
790
- ), h = C(s, (o, c) => o), u = C(
854
+ (l) => l.parentContext.parent
855
+ ), h = C(s, (l, c) => l), f = C(
791
856
  s,
792
- (o, c) => c.parent
857
+ (l, c) => c.parent
793
858
  );
794
- return p`
859
+ return d`
795
860
  <div
796
- class="fieldset ${pe}"
797
- @click="${(o, c) => o._onFieldsetClick(c.event)}"
861
+ class="fieldset ${ve}"
862
+ @click="${(l, c) => l._onFieldsetClick(c.event)}"
798
863
  ${x("_anchor")}
799
864
  >
800
- ${(o) => a(o.icon, oe.Slot)}
865
+ ${(l) => o(l.icon, ie.Slot)}
801
866
  <div class="content-area" ${x("_contentArea")}>
802
- ${w(
803
- (o) => o._tagRows,
804
- p`
867
+ ${y(
868
+ (l) => l._tagRows,
869
+ d`
805
870
  <div class="tag-row">
806
871
  ${v(
807
- (o, c) => c.isFirst && c.parent._numElidedTags,
808
- u
872
+ (l, c) => c.isFirst && c.parent._numElidedTags,
873
+ f
809
874
  )}
810
- ${w((o) => o, g)}
875
+ ${y((l) => l, g)}
811
876
  </div>
812
877
  `,
813
878
  { positioning: !0 }
814
879
  )}
815
880
  <div
816
- class="tag-row ${(o) => y([
881
+ class="tag-row ${(l) => w([
817
882
  "contains-only-input",
818
- o._tagRows.length > 0 && o._lastTagRow.length === 0
883
+ l._tagRows.length > 0 && l._lastTagRow.length === 0
819
884
  ])}"
820
885
  >
821
886
  ${v(
822
- (o) => o._tagRows.length === 0 && o._numElidedTags,
887
+ (l) => l._tagRows.length === 0 && l._numElidedTags,
823
888
  h
824
889
  )}
825
- ${w((o) => o._lastTagRow, l)}
890
+ ${y((l) => l._lastTagRow, i)}
826
891
  <input
827
892
  id="control"
828
893
  class="control"
829
894
  autocomplete="off"
830
895
  aria-controls="listbox"
831
- aria-describedby="${(o) => o._feedbackDescribedBy} ${(o) => o.multiple && o.maxSelected && o.maxSelected >= 1 ? "selection-count" : null}"
832
- ${G({
896
+ aria-describedby="${(l) => l._feedbackDescribedBy} ${(l) => l.multiple && l.maxSelected && l.maxSelected >= 1 ? "selection-count" : null}"
897
+ ${Y({
833
898
  role: "combobox",
834
899
  ariaAutoComplete: "list",
835
900
  ariaHasPopup: "listbox",
836
- ariaExpanded: (o) => o.open
901
+ ariaExpanded: (l) => l.open
837
902
  })}
838
- placeholder="${(o) => o.multiple && o.values.length ? "" : o.placeholder}"
903
+ placeholder="${(l) => l.multiple && l.values.length ? "" : l.placeholder}"
839
904
  type="text"
840
- ?disabled="${(o) => o.disabled}"
841
- :value="${(o) => o._inputValue}"
842
- @input="${(o, c) => {
843
- o._onInputInput(c.event), c.event.stopPropagation();
905
+ ?disabled="${(l) => l.disabled}"
906
+ :value="${(l) => l._inputValue}"
907
+ @input="${(l, c) => {
908
+ l._onInputInput(c.event), c.event.stopPropagation();
844
909
  }}"
845
- @change="${(o, c) => {
910
+ @change="${(l, c) => {
846
911
  c.event.stopPropagation();
847
912
  }}"
848
- @focus="${(o, c) => o._onInputFocus(c.event)}"
849
- @blur="${(o, c) => o._onInputBlur(c.event)}"
850
- @keydown="${(o, c) => o._onInputKeydown(c.event)}"
913
+ @focus="${(l, c) => l._onInputFocus(c.event)}"
914
+ @blur="${(l, c) => l._onInputBlur(c.event)}"
915
+ @keydown="${(l, c) => l._onInputKeydown(c.event)}"
851
916
  ${x("_input")}
852
917
  />
853
918
  </div>
854
919
  </div>
855
920
  <slot name="meta"></slot>
856
921
  ${v(
857
- (o) => o._shouldShowClearButton,
858
- p`<${t}
859
- aria-label="${(o) => o.locale.searchableSelect.clearButtonLabel}"
860
- @click="${(o) => o._onClearButtonClick()}"
922
+ (l) => l._shouldShowClearButton,
923
+ d`<${t}
924
+ aria-label="${(l) => l.locale.searchableSelect.clearButtonLabel}"
925
+ @click="${(l) => l._onClearButtonClick()}"
861
926
  @mousedown="${() => !1}"
862
- ?disabled="${(o) => o.disabled}"
863
- :shape="${(o) => o.shape}"
927
+ ?disabled="${(l) => l.disabled}"
928
+ :shape="${(l) => l.shape}"
864
929
  size="super-condensed"
865
930
  icon="close-line"
866
931
  appearance="ghost-light"
867
932
  tabindex="0"
868
933
  ></${t}>`
869
934
  )}
870
- <div @mousedown="${() => !1}" @click="${(o) => o._onChevronClick()}">
935
+ <div @mousedown="${() => !1}" @click="${(l) => l._onChevronClick()}">
871
936
  ${v(
872
- (o) => o.loading,
873
- p`<${e} indeterminate size="-6" aria-hidden="true"></${e}>`
937
+ (l) => l.loading,
938
+ d`<${e} indeterminate size="-6" aria-hidden="true"></${e}>`
874
939
  )}
875
- ${v((o) => !o.loading, i)}
940
+ ${v((l) => !l.loading, a)}
876
941
  </div>
877
942
  </div>
878
943
  `;
879
944
  }
880
- function ve(s) {
945
+ function _e(s) {
881
946
  return s.open && s.fixedDropdown ? `--_searchable-select-fixed-width: ${Math.round(
882
947
  s.getBoundingClientRect().width
883
948
  )}px` : null;
884
949
  }
885
- function fe(s) {
950
+ function me(s) {
951
+ const t = s.tagFor(W), e = s.tagFor(ne);
952
+ return d`
953
+ <${t}
954
+ data-select-all
955
+ tabindex="-1"
956
+ :text="${(o) => o._selectAllLabel}"
957
+ :selected="${(o) => o._isAllSelected}"
958
+ :_displayCheckmark="${() => !0}"
959
+ ?disabled="${(o) => o._selectableOptions.length === 0}"
960
+ ${x("_selectAllOption")}>
961
+ </${t}>
962
+ <${e} class="divider"></${e}>
963
+ `;
964
+ }
965
+ function xe(s) {
886
966
  const t = s.tagFor(L);
887
- return p`
967
+ return d`
888
968
  <div class="label-wrapper" ?hidden=${(e) => !e.label && !e._hasContextualHelp && !e._hasSelectionCount}>
889
969
  ${v(
890
970
  (e) => e.label || e._hasSelectionCount,
891
- p`
971
+ d`
892
972
  <div>
893
- ${v((e) => e.label, de())}
894
- ${v((e) => e._hasSelectionCount, he())}
973
+ ${v((e) => e.label, fe())}
974
+ ${v((e) => e._hasSelectionCount, ge())}
895
975
  </div>
896
976
  `
897
977
  )}
898
- <slot name="contextual-help" ${O("_contextualHelpSlottedContent")}></slot>
978
+ <slot name="contextual-help" ${T("_contextualHelpSlottedContent")}></slot>
899
979
  </div>
900
980
  <span aria-live="assertive" aria-relevant="text" class="visually-hidden">
901
981
  ${(e) => e._changeDescription}
902
982
  </span>
903
983
  <div>
904
- ${ue(s)}
984
+ ${be(s)}
905
985
  <div class="popup-wrapper">
906
986
  <${t}
907
987
  :anchor="${(e) => e._anchor}"
908
988
  :open="${(e) => e.open}"
909
989
  class="popup"
910
990
  placement="bottom-start"
911
- style="${ve}"
991
+ style="${_e}"
912
992
  strategy="${(e) => e.fixedDropdown ? "fixed" : "absolute"}">
913
993
  <div
914
994
  class="listbox"
@@ -916,34 +996,38 @@ function fe(s) {
916
996
  aria-multiselectable="${(e) => e.multiple}"
917
997
  aria-required="${(e) => e.required}"
918
998
  ${x("_listbox")}
919
- @click="${(e, a) => e._onListboxClick(a.event)}"
999
+ @click="${(e, o) => e._onListboxClick(o.event)}"
920
1000
  @mousedown="${() => !1}"
921
1001
  >
1002
+ ${v(
1003
+ (e) => e.enableSelectAll && e.multiple && !e.maxSelected,
1004
+ me(s)
1005
+ )}
922
1006
  <slot
923
- ${O({
924
- filter: ae,
1007
+ ${T({
1008
+ filter: B,
925
1009
  flatten: !0,
926
1010
  property: "_slottedOptions"
927
1011
  })}>
928
1012
  </slot>
929
1013
  ${v(
930
1014
  (e) => e._filteredOptions.length === 0,
931
- p`<div class="empty-message">
1015
+ d`<div class="empty-message">
932
1016
  ${v(
933
1017
  (e) => e.loading,
934
- p`<slot name="loading-options">
1018
+ d`<slot name="loading-options">
935
1019
  ${(e) => e.locale.searchableSelect.loadingOptionsMessage}
936
1020
  </slot>`
937
1021
  )}
938
1022
  ${v(
939
1023
  (e) => !e.loading && e.searchText === "",
940
- p`<slot name="no-options">
1024
+ d`<slot name="no-options">
941
1025
  ${(e) => e.locale.searchableSelect.noOptionsMessage}
942
1026
  </slot>`
943
1027
  )}
944
1028
  ${v(
945
1029
  (e) => !e.loading && e.searchText !== "",
946
- p`<slot name="no-matches">
1030
+ d`<slot name="no-matches">
947
1031
  ${(e) => e.locale.searchableSelect.noMatchesMessage}
948
1032
  </slot>`
949
1033
  )}
@@ -955,27 +1039,27 @@ function fe(s) {
955
1039
  </div>
956
1040
  `;
957
1041
  }
958
- const ge = (s) => {
959
- const t = s.tagFor(b);
960
- return p`
1042
+ const ye = (s) => {
1043
+ const t = s.tagFor(b, !0);
1044
+ return d`
961
1045
  <template
962
1046
  :_optionTagTagName="${() => t}"
963
- @mousedown="${(e, a) => e._onMouseDown(a.event)}"
1047
+ @mousedown="${(e, o) => e._onMouseDown(o.event)}"
964
1048
  >
965
1049
  <div class="control-wrapper">
966
- ${fe(s)} ${(e) => e._getFeedbackTemplate(s)}
1050
+ ${xe(s)} ${(e) => e._getFeedbackTemplate(s)}
967
1051
  </div>
968
1052
  </template>
969
1053
  `;
970
- }, be = ({ shape: s, connotation: t, disabled: e, removable: a }) => y(
1054
+ }, we = ({ shape: s, connotation: t, disabled: e, removable: o }) => w(
971
1055
  "base",
972
1056
  ["disabled", e],
973
- ["removable", a],
1057
+ ["removable", o],
974
1058
  [`shape-${s}`, !!s],
975
1059
  [`connotation-${t}`, !!t]
976
1060
  );
977
- function me(s) {
978
- return p`
1061
+ function $e(s) {
1062
+ return d`
979
1063
  <span
980
1064
  class="remove-button"
981
1065
  aria-label="${(t) => t.locale.searchableSelect.removeTagButtonLabel(t.label)}"
@@ -987,48 +1071,50 @@ function me(s) {
987
1071
  </span>
988
1072
  `;
989
1073
  }
990
- const _e = (s) => {
991
- const t = s.tagFor(B);
992
- return p`<span class="${be}" aria-disabled="${(e) => e.disabled}">
1074
+ const Oe = (s) => {
1075
+ const t = s.tagFor(M);
1076
+ return d`<span class="${we}" aria-disabled="${(e) => e.disabled}">
993
1077
  <slot name="icon" aria-hidden="true">
994
1078
  ${v(
995
1079
  (e) => e.hasIconPlaceholder,
996
- p`<div class="icon-placeholder"></div>`
1080
+ d`<div class="icon-placeholder"></div>`
997
1081
  )}
998
1082
  </slot>
999
1083
  ${v(
1000
1084
  (e) => e.label,
1001
- (e) => p`<span class="label">${e.label}</span>`
1085
+ (e) => d`<span class="label">${e.label}</span>`
1002
1086
  )}
1003
- ${v((e) => e.removable, me(t))}
1087
+ ${v((e) => e.removable, $e(t))}
1004
1088
  </span>`;
1005
- }, xe = R(
1089
+ }, Te = D(
1006
1090
  "option-tag",
1007
1091
  b,
1008
- _e,
1092
+ Oe,
1009
1093
  [I],
1010
1094
  {
1011
- styles: [se],
1095
+ styles: [ce],
1012
1096
  shadowOptions: {
1013
1097
  delegatesFocus: !0
1014
1098
  }
1015
1099
  }
1016
- ), we = R(
1100
+ ), Se = D(
1017
1101
  "searchable-select",
1018
1102
  n,
1019
- ge,
1103
+ ye,
1020
1104
  [
1105
+ E,
1021
1106
  P,
1022
- M,
1023
1107
  I,
1024
- xe,
1025
- W,
1026
- j
1108
+ Te,
1109
+ K,
1110
+ G,
1111
+ N,
1112
+ J
1027
1113
  ],
1028
1114
  {
1029
- styles: ie
1115
+ styles: re
1030
1116
  }
1031
- ), ye = H(
1032
- we
1117
+ ), ke = q(
1118
+ Se
1033
1119
  );
1034
- ye();
1120
+ ke();