@vonage/vivid 5.1.0 → 5.3.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 (386) hide show
  1. package/accordion-item/definition.cjs +2 -1
  2. package/accordion-item/definition.js +2 -1
  3. package/alert/index.cjs +1 -1
  4. package/alert/index.js +1 -1
  5. package/audio-player/definition.cjs +41 -6
  6. package/audio-player/definition.js +41 -6
  7. package/audio-player/index.cjs +27 -25
  8. package/audio-player/index.js +88 -62
  9. package/badge/index.cjs +2 -2
  10. package/badge/index.js +4 -4
  11. package/banner/index.cjs +3 -3
  12. package/banner/index.js +6 -6
  13. package/breadcrumb-item/index.cjs +1 -1
  14. package/breadcrumb-item/index.js +1 -1
  15. package/bundled/affix.cjs +7 -7
  16. package/bundled/affix.js +5 -5
  17. package/bundled/anchored.cjs +1 -1
  18. package/bundled/anchored.js +6 -6
  19. package/bundled/attribute-binding-behaviour.cjs +1 -1
  20. package/bundled/attribute-binding-behaviour.js +15 -13
  21. package/bundled/base-color-picker.cjs +13 -0
  22. package/bundled/base-color-picker.js +194 -0
  23. package/bundled/button.cjs +1 -1
  24. package/bundled/button.js +2 -2
  25. package/bundled/calendar-picker.template.cjs +1 -1
  26. package/bundled/calendar-picker.template.js +21 -21
  27. package/bundled/char-count.cjs +1 -1
  28. package/bundled/char-count.js +1 -1
  29. package/bundled/children.cjs +1 -1
  30. package/bundled/children.js +28 -20
  31. package/bundled/definition.cjs +3 -3
  32. package/bundled/definition.js +38 -38
  33. package/bundled/definition10.cjs +72 -18
  34. package/bundled/definition10.js +351 -65
  35. package/bundled/definition11.cjs +19 -10
  36. package/bundled/definition11.js +66 -37
  37. package/bundled/definition12.cjs +10 -1
  38. package/bundled/definition12.js +38 -14
  39. package/bundled/definition13.cjs +1 -73
  40. package/bundled/definition13.js +15 -354
  41. package/bundled/definition15.cjs +1 -1
  42. package/bundled/definition15.js +1 -1
  43. package/bundled/definition16.cjs +2 -2
  44. package/bundled/definition16.js +8 -8
  45. package/bundled/definition17.cjs +7 -7
  46. package/bundled/definition17.js +17 -17
  47. package/bundled/definition19.cjs +17 -14
  48. package/bundled/definition19.js +85 -77
  49. package/bundled/definition2.cjs +9 -5
  50. package/bundled/definition2.js +21 -17
  51. package/bundled/definition22.cjs +9 -9
  52. package/bundled/definition22.js +31 -31
  53. package/bundled/definition3.cjs +1 -1
  54. package/bundled/definition3.js +1 -1
  55. package/bundled/definition6.cjs +6 -6
  56. package/bundled/definition6.js +34 -31
  57. package/bundled/definition7.cjs +1 -1
  58. package/bundled/definition7.js +6 -6
  59. package/bundled/definition8.cjs +2 -2
  60. package/bundled/definition8.js +4 -4
  61. package/bundled/definition9.cjs +1 -1
  62. package/bundled/definition9.js +1 -1
  63. package/bundled/delegates-aria.cjs +1 -1
  64. package/bundled/delegates-aria.js +59 -46
  65. package/bundled/form-associated.cjs +1 -1
  66. package/bundled/form-associated.js +3 -3
  67. package/bundled/host-semantics.cjs +1 -1
  68. package/bundled/host-semantics.js +48 -34
  69. package/bundled/localized.cjs +1 -1
  70. package/bundled/localized.js +43 -31
  71. package/bundled/mixins.cjs +18 -18
  72. package/bundled/mixins.js +99 -93
  73. package/bundled/normalize.cjs +1 -0
  74. package/bundled/normalize.js +7 -0
  75. package/bundled/picker-field.template.cjs +18 -13
  76. package/bundled/picker-field.template.js +45 -37
  77. package/bundled/ref.cjs +1 -1
  78. package/bundled/ref.js +8 -25
  79. package/bundled/repeat.cjs +1 -1
  80. package/bundled/repeat.js +459 -233
  81. package/bundled/slider.template.cjs +1 -1
  82. package/bundled/slider.template.js +2 -2
  83. package/bundled/slotted.cjs +1 -1
  84. package/bundled/slotted.js +62 -45
  85. package/bundled/text-field.cjs +1 -1
  86. package/bundled/text-field.js +1 -1
  87. package/bundled/time-selection-picker.template.cjs +1 -1
  88. package/bundled/time-selection-picker.template.js +5 -5
  89. package/bundled/vivid-element.cjs +1 -1
  90. package/bundled/vivid-element.js +2126 -1172
  91. package/bundled/when.cjs +1 -1
  92. package/bundled/when.js +8 -7
  93. package/bundled/with-contextual-help.cjs +1 -1
  94. package/bundled/with-contextual-help.js +17 -7
  95. package/calendar/definition.cjs +1 -1
  96. package/calendar/definition.js +2 -2
  97. package/calendar/index.cjs +1 -1
  98. package/calendar/index.js +6 -6
  99. package/calendar-event/index.cjs +1 -1
  100. package/calendar-event/index.js +1 -1
  101. package/card/definition.cjs +10 -2
  102. package/card/definition.js +10 -2
  103. package/card/index.cjs +19 -11
  104. package/card/index.js +35 -27
  105. package/color-picker/definition.cjs +1079 -0
  106. package/color-picker/definition.js +1073 -0
  107. package/color-picker/index.cjs +127 -0
  108. package/color-picker/index.js +726 -0
  109. package/combobox/definition.cjs +13 -6
  110. package/combobox/definition.js +14 -7
  111. package/combobox/index.cjs +15 -11
  112. package/combobox/index.js +82 -75
  113. package/contextual-help/index.cjs +1 -1
  114. package/contextual-help/index.js +1 -1
  115. package/custom-elements.json +1621 -325
  116. package/data-grid/definition.cjs +862 -27
  117. package/data-grid/definition.js +863 -28
  118. package/data-grid/index.cjs +25 -25
  119. package/data-grid/index.js +175 -168
  120. package/date-picker/index.cjs +1 -1
  121. package/date-picker/index.js +2 -2
  122. package/date-range-picker/index.cjs +1 -1
  123. package/date-range-picker/index.js +2 -2
  124. package/date-time-picker/index.cjs +1 -1
  125. package/date-time-picker/index.js +2 -2
  126. package/dial-pad/definition.cjs +55 -1
  127. package/dial-pad/definition.js +56 -2
  128. package/dial-pad/index.cjs +21 -18
  129. package/dial-pad/index.js +138 -104
  130. package/dialog/definition.cjs +4 -1
  131. package/dialog/definition.js +4 -1
  132. package/dialog/index.cjs +21 -18
  133. package/dialog/index.js +43 -40
  134. package/empty-state/definition.cjs +7 -2
  135. package/empty-state/definition.js +7 -2
  136. package/empty-state/index.cjs +10 -5
  137. package/empty-state/index.js +18 -13
  138. package/fab/index.cjs +2 -2
  139. package/fab/index.js +4 -4
  140. package/file-picker/definition.cjs +16 -7
  141. package/file-picker/definition.js +17 -8
  142. package/file-picker/index.cjs +12 -9
  143. package/file-picker/index.js +103 -93
  144. package/icon/definition.cjs +10 -6
  145. package/icon/definition.js +10 -6
  146. package/index.cjs +4 -0
  147. package/index.js +1 -0
  148. package/lib/accordion-item/accordion-item.d.ts +2 -2
  149. package/lib/action-group/action-group.d.ts +2 -2
  150. package/lib/alert/alert.d.ts +4 -4
  151. package/lib/audio-player/audio-player.d.ts +6 -2
  152. package/lib/avatar/avatar.d.ts +2 -2
  153. package/lib/badge/badge.d.ts +2 -2
  154. package/lib/banner/banner.d.ts +6 -6
  155. package/lib/breadcrumb/breadcrumb.d.ts +2 -2
  156. package/lib/breadcrumb-item/breadcrumb-item.d.ts +2 -2
  157. package/lib/button/button.d.ts +6 -6
  158. package/lib/button/button.template.d.ts +2 -1
  159. package/lib/calendar/calendar.d.ts +1 -1
  160. package/lib/calendar-event/calendar-event.d.ts +2 -2
  161. package/lib/card/card.d.ts +2 -2
  162. package/lib/checkbox/checkbox.d.ts +12 -12
  163. package/lib/color-picker/color-picker.d.ts +2420 -0
  164. package/lib/color-picker/color-picker.template.d.ts +3 -0
  165. package/lib/color-picker/definition.d.ts +4 -0
  166. package/lib/color-picker/locale.d.ts +9 -0
  167. package/lib/combobox/combobox.d.ts +495 -78
  168. package/lib/components.d.ts +1 -0
  169. package/lib/data-grid/data-grid-cell.d.ts +4 -4
  170. package/lib/data-grid/data-grid-row.d.ts +3 -4
  171. package/lib/data-grid/data-grid.d.ts +1 -2
  172. package/lib/date-picker/date-picker.d.ts +906 -894
  173. package/lib/date-range-picker/date-range-picker.d.ts +596 -590
  174. package/lib/date-time-picker/date-time-picker.d.ts +907 -895
  175. package/lib/dial-pad/dial-pad.d.ts +3 -2
  176. package/lib/dial-pad/dial-pad.template.d.ts +1 -1
  177. package/lib/dial-pad/locale.d.ts +1 -0
  178. package/lib/dialog/dialog.d.ts +4 -4
  179. package/lib/divider/divider.d.ts +2 -2
  180. package/lib/fab/fab.d.ts +2 -2
  181. package/lib/file-picker/file-picker.d.ts +495 -78
  182. package/lib/header/header.d.ts +2 -2
  183. package/lib/menu/menu.d.ts +5 -4
  184. package/lib/menu-item/menu-item.d.ts +4 -4
  185. package/lib/nav/nav.d.ts +2 -2
  186. package/lib/nav-disclosure/nav-disclosure.d.ts +4 -4
  187. package/lib/nav-item/nav-item.d.ts +4 -4
  188. package/lib/note/note.d.ts +2 -2
  189. package/lib/number-field/number-field.d.ts +19 -18
  190. package/lib/option/option.d.ts +4 -4
  191. package/lib/pagination/pagination.d.ts +2 -2
  192. package/lib/progress/progress.d.ts +2 -2
  193. package/lib/progress-ring/progress-ring.d.ts +2 -2
  194. package/lib/radio/radio.d.ts +6 -6
  195. package/lib/radio-group/radio-group.d.ts +2 -2
  196. package/lib/range-slider/range-slider.d.ts +6 -6
  197. package/lib/rich-text-editor/menubar/menubar.d.ts +2 -2
  198. package/lib/rich-text-editor/rich-text-editor.d.ts +2 -2
  199. package/lib/searchable-select/option-tag.d.ts +2 -2
  200. package/lib/searchable-select/searchable-select.d.ts +521 -104
  201. package/lib/select/select.d.ts +484 -67
  202. package/lib/selectable-box/selectable-box.d.ts +2 -2
  203. package/lib/simple-color-picker/locale.d.ts +0 -1
  204. package/lib/simple-color-picker/simple-color-picker.d.ts +47 -821
  205. package/lib/slider/slider.d.ts +6 -6
  206. package/lib/split-button/split-button.d.ts +6 -6
  207. package/lib/switch/switch.d.ts +4 -4
  208. package/lib/tab/tab.d.ts +6 -6
  209. package/lib/tab-panel/tab-panel.d.ts +2 -2
  210. package/lib/tag/tag.d.ts +6 -6
  211. package/lib/tag-group/tag-group.d.ts +2 -2
  212. package/lib/tag-name-map.d.ts +2 -1
  213. package/lib/text-area/text-area.d.ts +17 -16
  214. package/lib/text-field/text-field.d.ts +19 -18
  215. package/lib/time-picker/time-picker.d.ts +579 -573
  216. package/lib/toggletip/toggletip.d.ts +4 -4
  217. package/lib/tooltip/tooltip.d.ts +2 -2
  218. package/lib/tree-item/tree-item.d.ts +4 -4
  219. package/lib/tree-view/tree-view.d.ts +2 -2
  220. package/lib/video-player/video-player.d.ts +2 -2
  221. package/locales/de-DE.cjs +15 -3
  222. package/locales/de-DE.js +15 -3
  223. package/locales/en-GB.cjs +15 -3
  224. package/locales/en-GB.js +15 -3
  225. package/locales/en-US.cjs +15 -3
  226. package/locales/en-US.js +15 -3
  227. package/locales/ja-JP.cjs +15 -3
  228. package/locales/ja-JP.js +15 -3
  229. package/locales/zh-CN.cjs +15 -3
  230. package/locales/zh-CN.js +15 -3
  231. package/menu/definition.cjs +8 -4
  232. package/menu/definition.js +9 -5
  233. package/note/index.cjs +2 -2
  234. package/note/index.js +4 -4
  235. package/number-field/definition.cjs +3 -3
  236. package/number-field/definition.js +4 -4
  237. package/number-field/index.cjs +8 -8
  238. package/number-field/index.js +41 -40
  239. package/option/index.cjs +1 -1
  240. package/option/index.js +1 -1
  241. package/package.json +5 -5
  242. package/pagination/definition.cjs +2 -1
  243. package/pagination/definition.js +2 -1
  244. package/pagination/index.cjs +12 -12
  245. package/pagination/index.js +59 -59
  246. package/progress/index.cjs +1 -1
  247. package/progress/index.js +1 -1
  248. package/radio/definition.cjs +9 -9
  249. package/radio/definition.js +10 -10
  250. package/radio-group/definition.cjs +2 -1
  251. package/radio-group/definition.js +2 -1
  252. package/radio-group/index.cjs +5 -5
  253. package/radio-group/index.js +80 -77
  254. package/range-slider/index.cjs +1 -1
  255. package/range-slider/index.js +1 -1
  256. package/rich-text-editor/definition.cjs +1 -1
  257. package/rich-text-editor/definition.js +2 -2
  258. package/rich-text-editor/index.cjs +2 -2
  259. package/rich-text-editor/index.js +3 -3
  260. package/searchable-select/definition.cjs +30 -21
  261. package/searchable-select/definition.js +31 -22
  262. package/searchable-select/index.cjs +28 -25
  263. package/searchable-select/index.js +149 -140
  264. package/select/definition.cjs +15 -7
  265. package/select/definition.js +16 -8
  266. package/selectable-box/definition.cjs +1 -1
  267. package/selectable-box/definition.js +1 -1
  268. package/selectable-box/index.cjs +3 -3
  269. package/selectable-box/index.js +20 -20
  270. package/shared/aria/aria-change-subscription.d.ts +0 -1
  271. package/shared/aria/aria-mixin.d.ts +2 -2
  272. package/shared/aria/delegate-aria-behavior.d.ts +5 -10
  273. package/shared/aria/delegates-aria.d.ts +3 -3
  274. package/shared/aria/host-semantics-behavior.d.ts +5 -8
  275. package/shared/aria/host-semantics.d.ts +3 -3
  276. package/shared/color-picker/base-color-picker.d.ts +436 -0
  277. package/shared/color-picker/index.d.ts +1 -0
  278. package/shared/color-picker/locale.d.ts +3 -0
  279. package/shared/color-picker/utils.d.ts +1 -0
  280. package/shared/deprecation/replaced-props.d.ts +317 -2
  281. package/shared/design-system/defineVividComponent.d.ts +2 -2
  282. package/shared/feedback/feedback-message.d.ts +2 -2
  283. package/shared/feedback/mixins.d.ts +4 -4
  284. package/shared/foundation/button/button.d.ts +4 -4
  285. package/shared/foundation/form-associated/form-associated.d.ts +4 -4
  286. package/shared/foundation/vivid-element/vivid-element.d.ts +335 -8
  287. package/shared/localization/Locale.d.ts +4 -0
  288. package/shared/patterns/affix.d.ts +4 -4
  289. package/shared/patterns/anchored.d.ts +4 -4
  290. package/shared/patterns/char-count/char-count.d.ts +2 -2
  291. package/shared/patterns/form-elements/form-element.d.ts +4 -4
  292. package/shared/patterns/form-elements/index.d.ts +1 -0
  293. package/shared/patterns/form-elements/with-contextual-help.d.ts +7 -6
  294. package/shared/patterns/form-elements/with-error-text.d.ts +6 -6
  295. package/shared/patterns/form-elements/with-success-text.d.ts +2 -2
  296. package/shared/patterns/linkable.d.ts +2 -2
  297. package/shared/patterns/localized.d.ts +2 -2
  298. package/shared/patterns/trapped-focus.d.ts +2 -2
  299. package/shared/picker-field/mixins/calendar-picker.d.ts +454 -451
  300. package/shared/picker-field/mixins/calendar-picker.template.d.ts +454 -451
  301. package/shared/picker-field/mixins/inline-time-picker/inline-time-picker.d.ts +2 -2
  302. package/shared/picker-field/mixins/min-max-calendar-picker.d.ts +600 -594
  303. package/shared/picker-field/mixins/single-date-picker.d.ts +746 -737
  304. package/shared/picker-field/mixins/single-value-picker.d.ts +451 -448
  305. package/shared/picker-field/mixins/time-selection-picker.d.ts +580 -574
  306. package/shared/picker-field/mixins/time-selection-picker.template.d.ts +579 -573
  307. package/shared/picker-field/picker-field.d.ts +495 -78
  308. package/shared/templating/attribute-binding-behaviour.d.ts +3 -4
  309. package/shared/templating/render-in-light-dom.d.ts +13 -12
  310. package/side-drawer/index.cjs +1 -1
  311. package/side-drawer/index.js +1 -1
  312. package/simple-color-picker/definition.cjs +28 -215
  313. package/simple-color-picker/definition.js +29 -216
  314. package/simple-color-picker/index.cjs +9 -21
  315. package/simple-color-picker/index.js +71 -185
  316. package/styles/core/all.css +1 -1
  317. package/styles/core/theme.css +1 -1
  318. package/styles/core/typography.css +1 -1
  319. package/styles/tokens/theme-dark.css +4 -4
  320. package/styles/tokens/theme-light.css +4 -4
  321. package/styles/tokens/vivid-2-compat.css +1 -1
  322. package/switch/index.cjs +2 -2
  323. package/switch/index.js +4 -4
  324. package/tabs/definition.cjs +1 -1
  325. package/tabs/definition.js +2 -2
  326. package/tabs/index.cjs +2 -2
  327. package/tabs/index.js +16 -16
  328. package/tag/index.cjs +1 -1
  329. package/tag/index.js +1 -1
  330. package/text-area/definition.cjs +1 -1
  331. package/text-area/definition.js +1 -1
  332. package/text-area/index.cjs +3 -3
  333. package/text-area/index.js +9 -9
  334. package/text-field/definition.cjs +3 -3
  335. package/text-field/definition.js +4 -4
  336. package/text-field/index.cjs +1 -1
  337. package/text-field/index.js +1 -1
  338. package/time-picker/index.cjs +1 -1
  339. package/time-picker/index.js +2 -2
  340. package/toggletip/definition.cjs +1 -1
  341. package/toggletip/definition.js +2 -2
  342. package/tree-view/definition.cjs +1 -1
  343. package/tree-view/definition.js +2 -2
  344. package/tree-view/index.cjs +2 -2
  345. package/tree-view/index.js +6 -6
  346. package/unbundled/_commonjsHelpers.cjs +36 -0
  347. package/unbundled/_commonjsHelpers.js +32 -0
  348. package/unbundled/affix.cjs +1 -1
  349. package/unbundled/affix.js +1 -1
  350. package/unbundled/attribute-binding-behaviour.cjs +11 -10
  351. package/unbundled/attribute-binding-behaviour.js +11 -10
  352. package/unbundled/base-color-picker.cjs +278 -0
  353. package/unbundled/base-color-picker.js +275 -0
  354. package/unbundled/button.cjs +1 -1
  355. package/unbundled/button.js +2 -2
  356. package/unbundled/calendar-picker.template.cjs +3 -3
  357. package/unbundled/calendar-picker.template.js +4 -4
  358. package/unbundled/definition2.cjs +1 -1
  359. package/unbundled/definition2.js +2 -2
  360. package/unbundled/definition3.cjs +2 -1
  361. package/unbundled/definition3.js +2 -1
  362. package/unbundled/delegates-aria.cjs +67 -33
  363. package/unbundled/delegates-aria.js +69 -35
  364. package/unbundled/form-associated.cjs +2 -2
  365. package/unbundled/form-associated.js +3 -3
  366. package/unbundled/host-semantics.cjs +47 -22
  367. package/unbundled/host-semantics.js +48 -23
  368. package/unbundled/mixins.cjs +34 -27
  369. package/unbundled/mixins.js +35 -28
  370. package/unbundled/picker-field.template.cjs +13 -5
  371. package/unbundled/picker-field.template.js +14 -6
  372. package/unbundled/text-field.cjs +1 -1
  373. package/unbundled/text-field.js +1 -1
  374. package/unbundled/time-selection-picker.template.cjs +4 -4
  375. package/unbundled/time-selection-picker.template.js +5 -5
  376. package/unbundled/vivid-element.cjs +22 -15
  377. package/unbundled/vivid-element.js +23 -15
  378. package/unbundled/with-contextual-help.cjs +11 -0
  379. package/unbundled/with-contextual-help.js +11 -0
  380. package/video-player/definition.cjs +69007 -1
  381. package/video-player/definition.js +69007 -1
  382. package/video-player/index.cjs +35 -35
  383. package/video-player/index.js +1358 -1384
  384. package/visually-hidden/index.cjs +1 -1
  385. package/visually-hidden/index.js +1 -1
  386. package/vivid.api.json +347 -69
@@ -1,36 +1,39 @@
1
- import { B as V, c as z, b as E } from "../bundled/definition3.js";
2
- import { P, p as L } from "../bundled/definition9.js";
1
+ import { B as z, c as E, b as P } from "../bundled/definition3.js";
2
+ import { P as L, p as B } from "../bundled/definition9.js";
3
3
  import { I as M, i as I } from "../bundled/definition2.js";
4
- import { P as B, p as A } from "../bundled/definition15.js";
5
- import { V as C, O as T, D as W, a as f, n as F, o as p, h as d, c as N, d as D } from "../bundled/vivid-element.js";
6
- import { W as K, f as q } from "../bundled/mixins.js";
7
- import { s as H } from "../bundled/scrollIntoView.js";
8
- import { D as j, d as U } from "../bundled/delegates-aria.js";
9
- import { F as G } from "../bundled/form-associated.js";
10
- import { W as J } from "../bundled/with-error-text.js";
11
- import { W as Q } from "../bundled/with-success-text.js";
12
- import { F as X } from "../bundled/form-element.js";
13
- import { A as Y, a as Z, I as ee } from "../bundled/affix.js";
14
- import { L as R } from "../bundled/localized.js";
15
- import { i as te } from "../bundled/option.js";
4
+ import { P as A, p as W } from "../bundled/definition15.js";
5
+ import { V as F, O as T, U 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";
15
+ import { L as V } from "../bundled/localized.js";
16
+ import { i as ae } from "../bundled/option.js";
16
17
  import { w as v } from "../bundled/when.js";
18
+ import { s as O } from "../bundled/slotted.js";
17
19
  import { r as x } from "../bundled/ref.js";
18
- import { s as oe } from "../bundled/slotted.js";
19
- import { c as w } from "../bundled/class-names.js";
20
- import { r as y } from "../bundled/repeat.js";
21
- const ae = ".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}", ie = '.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}';
22
- var se = Object.defineProperty, r = (s, t, e, a) => {
20
+ import { r as w } from "../bundled/repeat.js";
21
+ import { c as y } from "../bundled/class-names.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) => {
23
24
  for (var i = void 0, l = s.length - 1, g; l >= 0; l--)
24
25
  (g = s[l]) && (i = g(t, e, i) || i);
25
- return i && se(t, e, i), i;
26
+ return i && le(t, e, i), i;
26
27
  };
27
- const m = 8, le = 100, O = 10, ne = (s) => typeof s == "string";
28
- class n extends K(
29
- J(
30
- Q(
31
- X(
32
- j(
33
- Y(R(G(C)))
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)))
36
+ )
34
37
  )
35
38
  )
36
39
  )
@@ -42,8 +45,8 @@ class n extends K(
42
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));
43
46
  }
44
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) => {
45
- ne(t) || super.setFormValue(t, e);
46
- }, this._changeDescription = "", this.#d = new ResizeObserver(() => {
48
+ re(t) || super.setFormValue(t, e);
49
+ }, this._changeDescription = "", this.#p = new ResizeObserver(() => {
47
50
  this.#u();
48
51
  });
49
52
  }
@@ -62,8 +65,8 @@ class n extends K(
62
65
  this.values = [this.values[0]];
63
66
  return;
64
67
  }
65
- if (this.values.some((t) => !this.#p(t))) {
66
- this.values = this.values.filter((t) => this.#p(t));
68
+ if (this.values.some((t) => !this.#d(t))) {
69
+ this.values = this.values.filter((t) => this.#d(t));
67
70
  return;
68
71
  }
69
72
  this.value = this.values.length ? this.values[0] : "", this.#c(), this.#m(), this.$fastController.isConnected && this.#u(), this.#g();
@@ -86,7 +89,7 @@ class n extends K(
86
89
  initialValuesChanged() {
87
90
  this.dirtyValue || (this.values = this.initialValues, this.dirtyValue = !1);
88
91
  }
89
- #p(t) {
92
+ #d(t) {
90
93
  return this._slottedOptions.some((e) => e.value === t);
91
94
  }
92
95
  /**
@@ -172,13 +175,13 @@ class n extends K(
172
175
  this.open = !0;
173
176
  break;
174
177
  }
175
- return this.#y(), !1;
178
+ return this.#w(), !1;
176
179
  case "End":
177
180
  if (!this.open) {
178
181
  this.open = !0;
179
182
  break;
180
183
  }
181
- return this.#w(), !1;
184
+ return this.#y(), !1;
182
185
  case "PageUp":
183
186
  if (!this.open) {
184
187
  this.open = !0;
@@ -304,7 +307,7 @@ class n extends K(
304
307
  Math.min(this._filteredEnabledOptions.length - 1, t)
305
308
  ) : t = null), this._highlightedOptionIndex = t, typeof this._highlightedOptionIndex == "number") {
306
309
  const e = this._filteredEnabledOptions[this._highlightedOptionIndex];
307
- e._highlighted = !0, e.setAttribute("data-highlighted", ""), H(e, this._listbox, "nearest"), this._changeDescription = this.locale.searchableSelect.optionFocusedMessage(
310
+ e._highlighted = !0, e.setAttribute("data-highlighted", ""), q(e, this._listbox, "nearest"), this._changeDescription = this.locale.searchableSelect.optionFocusedMessage(
308
311
  e._getAccessibleName(),
309
312
  this._highlightedOptionIndex + 1,
310
313
  this._filteredEnabledOptions.length,
@@ -317,22 +320,22 @@ class n extends K(
317
320
  this._filteredEnabledOptions[this._highlightedOptionIndex]
318
321
  );
319
322
  }
320
- #y() {
323
+ #w() {
321
324
  this.#e(0);
322
325
  }
323
- #w() {
326
+ #y() {
324
327
  this.#e(
325
328
  this._filteredEnabledOptions.length - 1
326
329
  );
327
330
  }
328
331
  #$() {
329
332
  this.#e(
330
- (this._highlightedOptionIndex ?? this._filteredEnabledOptions.length) - O
333
+ (this._highlightedOptionIndex ?? this._filteredEnabledOptions.length) - S
331
334
  );
332
335
  }
333
336
  #T() {
334
337
  this.#e(
335
- (this._highlightedOptionIndex ?? -1) + O
338
+ (this._highlightedOptionIndex ?? -1) + S
336
339
  );
337
340
  }
338
341
  #O() {
@@ -395,7 +398,7 @@ class n extends K(
395
398
  return;
396
399
  }
397
400
  const t = this._contentArea.getBoundingClientRect().width, e = [[]];
398
- let a = 0, i = le, l;
401
+ let a = 0, i = ne, l;
399
402
  for (l = this.values.length - 1; l >= 0; l--) {
400
403
  const h = this.maxLines && a === this.maxLines - 1, u = this.#n(
401
404
  this._tagLabelForValue(this.values[l]),
@@ -451,7 +454,7 @@ class n extends K(
451
454
  case "Delete":
452
455
  case "Enter":
453
456
  case " ": {
454
- this._onTagRemoved(this.values[e]), W.processUpdates(), this.#i(this.#I(e));
457
+ this._onTagRemoved(this.values[e]), N.process(), this.#i(this.#C(e));
455
458
  break;
456
459
  }
457
460
  case "ArrowLeft":
@@ -482,7 +485,7 @@ class n extends K(
482
485
  return e;
483
486
  return null;
484
487
  }
485
- #I(t) {
488
+ #C(t) {
486
489
  return this.#v(t - 1) ?? this.#r(t);
487
490
  }
488
491
  /**
@@ -532,6 +535,12 @@ class n extends K(
532
535
  for (const e of t)
533
536
  e.disabled = !1;
534
537
  }
538
+ /**
539
+ * @internal
540
+ */
541
+ get _hasSelectionCount() {
542
+ return this.multiple && this.maxSelected && this.maxSelected >= 1;
543
+ }
535
544
  #f() {
536
545
  return this.initialValues.length ? this.initialValues : this.initialValue ? [this.initialValue] : [];
537
546
  }
@@ -557,7 +566,7 @@ class n extends K(
557
566
  formResetCallback() {
558
567
  super.formResetCallback(), this.#a(this.#f());
559
568
  }
560
- #d;
569
+ #p;
561
570
  /**
562
571
  * @internal
563
572
  */
@@ -571,10 +580,10 @@ class n extends K(
571
580
  return this.open ? (this.open = !1, !1) : !0;
572
581
  }
573
582
  connectedCallback() {
574
- super.connectedCallback(), this.values.length || (this.values = this.#f()), this.#d.observe(this._contentArea);
583
+ super.connectedCallback(), this.values.length || (this.values = this.#f()), this.#p.observe(this._contentArea);
575
584
  }
576
585
  disconnectedCallback() {
577
- super.disconnectedCallback(), this.#d.disconnect();
586
+ super.disconnectedCallback(), this.#p.disconnect();
578
587
  }
579
588
  /**
580
589
  * @internal
@@ -593,7 +602,7 @@ class n extends K(
593
602
  */
594
603
  _onMouseDown(t) {
595
604
  const e = t.composedPath()[0];
596
- return !t.defaultPrevented && e !== this._input ? (this._input.focus(), !1) : !0;
605
+ return !t.defaultPrevented && e !== this._input && !this._isFromContextualHelp(t) ? (this._input.focus(), !1) : !0;
597
606
  }
598
607
  }
599
608
  r([
@@ -618,31 +627,31 @@ r([
618
627
  f({ attribute: "external-tags", mode: "boolean" })
619
628
  ], n.prototype, "externalTags");
620
629
  r([
621
- f({ attribute: "max-lines", converter: F })
630
+ f({ attribute: "max-lines", converter: D })
622
631
  ], n.prototype, "maxLines");
623
632
  r([
624
- p
633
+ d
625
634
  ], n.prototype, "values");
626
635
  r([
627
- p
636
+ d
628
637
  ], n.prototype, "initialValues");
629
638
  r([
630
- p
639
+ d
631
640
  ], n.prototype, "_input");
632
641
  r([
633
- p
642
+ d
634
643
  ], n.prototype, "_currentSearchText");
635
644
  r([
636
- p
645
+ d
637
646
  ], n.prototype, "_slottedOptions");
638
647
  r([
639
- p
648
+ d
640
649
  ], n.prototype, "optionFilter");
641
650
  r([
642
- p
651
+ d
643
652
  ], n.prototype, "_filteredOptions");
644
653
  r([
645
- p
654
+ d
646
655
  ], n.prototype, "_filteredEnabledOptions");
647
656
  r([
648
657
  f({
@@ -650,44 +659,44 @@ r([
650
659
  })
651
660
  ], n.prototype, "loading");
652
661
  r([
653
- p
662
+ d
654
663
  ], n.prototype, "_highlightedOptionIndex");
655
664
  r([
656
- p
665
+ d
657
666
  ], n.prototype, "_contentArea");
658
667
  r([
659
- p
668
+ d
660
669
  ], n.prototype, "_numElidedTags");
661
670
  r([
662
- p
671
+ d
663
672
  ], n.prototype, "_tagRows");
664
673
  r([
665
- p
674
+ d
666
675
  ], n.prototype, "_lastTagRow");
667
676
  r([
668
- p
677
+ d
669
678
  ], n.prototype, "_listbox");
670
679
  r([
671
680
  f({ mode: "boolean" })
672
681
  ], n.prototype, "clearable");
673
682
  r([
674
- f({ attribute: "max-selected", converter: F })
683
+ f({ attribute: "max-selected", converter: D })
675
684
  ], n.prototype, "maxSelected");
676
685
  r([
677
- p
686
+ d
678
687
  ], n.prototype, "_slottedDisabledOptions");
679
688
  r([
680
- p
689
+ d
681
690
  ], n.prototype, "_changeDescription");
682
691
  r([
683
- p
692
+ d
684
693
  ], n.prototype, "_anchor");
685
- var re = Object.defineProperty, _ = (s, t, e, a) => {
694
+ var ce = Object.defineProperty, _ = (s, t, e, a) => {
686
695
  for (var i = void 0, l = s.length - 1, g; l >= 0; l--)
687
696
  (g = s[l]) && (i = g(t, e, i) || i);
688
- return i && re(t, e, i), i;
697
+ return i && ce(t, e, i), i;
689
698
  };
690
- class b extends R(C) {
699
+ class b extends V(F) {
691
700
  constructor() {
692
701
  super(...arguments), this.removable = !1, this.disabled = !1, this.hasIconPlaceholder = !1;
693
702
  }
@@ -701,7 +710,7 @@ _([
701
710
  f
702
711
  ], b.prototype, "shape");
703
712
  _([
704
- p
713
+ d
705
714
  ], b.prototype, "connotation");
706
715
  _([
707
716
  f
@@ -713,9 +722,9 @@ _([
713
722
  f({ mode: "boolean" })
714
723
  ], b.prototype, "disabled");
715
724
  _([
716
- p
725
+ d
717
726
  ], b.prototype, "hasIconPlaceholder");
718
- const ce = (s) => w(
727
+ const pe = (s) => y(
719
728
  ["disabled", s.disabled],
720
729
  [`appearance-${s.appearance}`, !!s.appearance],
721
730
  [`shape-${s.shape}`, !!s.shape],
@@ -724,12 +733,12 @@ const ce = (s) => w(
724
733
  ["has-highlighted-option", s._highlightedOptionIndex !== null]
725
734
  );
726
735
  function de() {
727
- return d`
736
+ return p`
728
737
  <label for="control" class="label" id="label"> ${(s) => s.label} </label>
729
738
  `;
730
739
  }
731
- function pe() {
732
- return d`
740
+ function he() {
741
+ return p`
733
742
  <span
734
743
  id="selection-count"
735
744
  class="selection-count"
@@ -741,9 +750,9 @@ function pe() {
741
750
  >
742
751
  `;
743
752
  }
744
- const S = (s, t) => {
753
+ const k = (s, t) => {
745
754
  const e = s.tagFor(b);
746
- return d`
755
+ return p`
747
756
  <div class="tag-wrapper">
748
757
  <${e}
749
758
  class="tag"
@@ -761,9 +770,9 @@ const S = (s, t) => {
761
770
  </${e}>
762
771
  </div>
763
772
  `;
764
- }, k = (s, t) => {
773
+ }, C = (s, t) => {
765
774
  const e = s.tagFor(b);
766
- return d`
775
+ return p`
767
776
  <${e}
768
777
  class="tag"
769
778
  tabindex="-1"
@@ -774,37 +783,37 @@ const S = (s, t) => {
774
783
  </${e}>
775
784
  `;
776
785
  };
777
- function he(s) {
778
- const t = s.tagFor(V), e = s.tagFor(B), a = Z(s), i = z(s), l = S(s, (o) => o.parent), g = S(
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(
779
788
  s,
780
789
  (o) => o.parentContext.parent
781
- ), h = k(s, (o, c) => o), u = k(
790
+ ), h = C(s, (o, c) => o), u = C(
782
791
  s,
783
792
  (o, c) => c.parent
784
793
  );
785
- return d`
794
+ return p`
786
795
  <div
787
- class="fieldset ${ce}"
796
+ class="fieldset ${pe}"
788
797
  @click="${(o, c) => o._onFieldsetClick(c.event)}"
789
798
  ${x("_anchor")}
790
799
  >
791
- ${(o) => a(o.icon, ee.Slot)}
800
+ ${(o) => a(o.icon, oe.Slot)}
792
801
  <div class="content-area" ${x("_contentArea")}>
793
- ${y(
802
+ ${w(
794
803
  (o) => o._tagRows,
795
- d`
804
+ p`
796
805
  <div class="tag-row">
797
806
  ${v(
798
807
  (o, c) => c.isFirst && c.parent._numElidedTags,
799
808
  u
800
809
  )}
801
- ${y((o) => o, g)}
810
+ ${w((o) => o, g)}
802
811
  </div>
803
812
  `,
804
813
  { positioning: !0 }
805
814
  )}
806
815
  <div
807
- class="tag-row ${(o) => w([
816
+ class="tag-row ${(o) => y([
808
817
  "contains-only-input",
809
818
  o._tagRows.length > 0 && o._lastTagRow.length === 0
810
819
  ])}"
@@ -813,14 +822,14 @@ function he(s) {
813
822
  (o) => o._tagRows.length === 0 && o._numElidedTags,
814
823
  h
815
824
  )}
816
- ${y((o) => o._lastTagRow, l)}
825
+ ${w((o) => o._lastTagRow, l)}
817
826
  <input
818
827
  id="control"
819
828
  class="control"
820
829
  autocomplete="off"
821
830
  aria-controls="listbox"
822
831
  aria-describedby="${(o) => o._feedbackDescribedBy} ${(o) => o.multiple && o.maxSelected && o.maxSelected >= 1 ? "selection-count" : null}"
823
- ${U({
832
+ ${G({
824
833
  role: "combobox",
825
834
  ariaAutoComplete: "list",
826
835
  ariaHasPopup: "listbox",
@@ -846,7 +855,7 @@ function he(s) {
846
855
  <slot name="meta"></slot>
847
856
  ${v(
848
857
  (o) => o._shouldShowClearButton,
849
- d`<${t}
858
+ p`<${t}
850
859
  aria-label="${(o) => o.locale.searchableSelect.clearButtonLabel}"
851
860
  @click="${(o) => o._onClearButtonClick()}"
852
861
  @mousedown="${() => !1}"
@@ -861,45 +870,45 @@ function he(s) {
861
870
  <div @mousedown="${() => !1}" @click="${(o) => o._onChevronClick()}">
862
871
  ${v(
863
872
  (o) => o.loading,
864
- d`<${e} indeterminate size="-6" aria-hidden="true"></${e}>`
873
+ p`<${e} indeterminate size="-6" aria-hidden="true"></${e}>`
865
874
  )}
866
875
  ${v((o) => !o.loading, i)}
867
876
  </div>
868
877
  </div>
869
878
  `;
870
879
  }
871
- function ue(s) {
880
+ function ve(s) {
872
881
  return s.open && s.fixedDropdown ? `--_searchable-select-fixed-width: ${Math.round(
873
882
  s.getBoundingClientRect().width
874
883
  )}px` : null;
875
884
  }
876
- function ve(s) {
877
- const t = s.tagFor(P);
878
- return d`
879
- ${v(
880
- (e) => e.label || e.multiple && e.maxSelected && e.maxSelected >= 1,
881
- d`
882
- <div>
883
- ${v((e) => e.label, de())}
884
- ${v(
885
- (e) => e.multiple && e.maxSelected && e.maxSelected >= 1,
886
- pe()
887
- )}
888
- </div>
889
- `
885
+ function fe(s) {
886
+ const t = s.tagFor(L);
887
+ return p`
888
+ <div class="label-wrapper" ?hidden=${(e) => !e.label && !e._hasContextualHelp && !e._hasSelectionCount}>
889
+ ${v(
890
+ (e) => e.label || e._hasSelectionCount,
891
+ p`
892
+ <div>
893
+ ${v((e) => e.label, de())}
894
+ ${v((e) => e._hasSelectionCount, he())}
895
+ </div>
896
+ `
890
897
  )}
898
+ <slot name="contextual-help" ${O("_contextualHelpSlottedContent")}></slot>
899
+ </div>
891
900
  <span aria-live="assertive" aria-relevant="text" class="visually-hidden">
892
901
  ${(e) => e._changeDescription}
893
902
  </span>
894
903
  <div>
895
- ${he(s)}
904
+ ${ue(s)}
896
905
  <div class="popup-wrapper">
897
906
  <${t}
898
907
  :anchor="${(e) => e._anchor}"
899
908
  :open="${(e) => e.open}"
900
909
  class="popup"
901
910
  placement="bottom-start"
902
- style="${ue}"
911
+ style="${ve}"
903
912
  strategy="${(e) => e.fixedDropdown ? "fixed" : "absolute"}">
904
913
  <div
905
914
  class="listbox"
@@ -911,30 +920,30 @@ function ve(s) {
911
920
  @mousedown="${() => !1}"
912
921
  >
913
922
  <slot
914
- ${oe({
915
- filter: te,
923
+ ${O({
924
+ filter: ae,
916
925
  flatten: !0,
917
926
  property: "_slottedOptions"
918
927
  })}>
919
928
  </slot>
920
929
  ${v(
921
930
  (e) => e._filteredOptions.length === 0,
922
- d`<div class="empty-message">
931
+ p`<div class="empty-message">
923
932
  ${v(
924
933
  (e) => e.loading,
925
- d`<slot name="loading-options">
934
+ p`<slot name="loading-options">
926
935
  ${(e) => e.locale.searchableSelect.loadingOptionsMessage}
927
936
  </slot>`
928
937
  )}
929
938
  ${v(
930
939
  (e) => !e.loading && e.searchText === "",
931
- d`<slot name="no-options">
940
+ p`<slot name="no-options">
932
941
  ${(e) => e.locale.searchableSelect.noOptionsMessage}
933
942
  </slot>`
934
943
  )}
935
944
  ${v(
936
945
  (e) => !e.loading && e.searchText !== "",
937
- d`<slot name="no-matches">
946
+ p`<slot name="no-matches">
938
947
  ${(e) => e.locale.searchableSelect.noMatchesMessage}
939
948
  </slot>`
940
949
  )}
@@ -946,27 +955,27 @@ function ve(s) {
946
955
  </div>
947
956
  `;
948
957
  }
949
- const fe = (s) => {
950
- const t = s.tagFor(b);
951
- return d`
958
+ const ge = (s) => {
959
+ const t = s.tagFor(b, !0);
960
+ return p`
952
961
  <template
953
962
  :_optionTagTagName="${() => t}"
954
963
  @mousedown="${(e, a) => e._onMouseDown(a.event)}"
955
964
  >
956
965
  <div class="control-wrapper">
957
- ${ve(s)} ${(e) => e._getFeedbackTemplate(s)}
966
+ ${fe(s)} ${(e) => e._getFeedbackTemplate(s)}
958
967
  </div>
959
968
  </template>
960
969
  `;
961
- }, ge = ({ shape: s, connotation: t, disabled: e, removable: a }) => w(
970
+ }, be = ({ shape: s, connotation: t, disabled: e, removable: a }) => y(
962
971
  "base",
963
972
  ["disabled", e],
964
973
  ["removable", a],
965
974
  [`shape-${s}`, !!s],
966
975
  [`connotation-${t}`, !!t]
967
976
  );
968
- function be(s) {
969
- return d`
977
+ function me(s) {
978
+ return p`
970
979
  <span
971
980
  class="remove-button"
972
981
  aria-label="${(t) => t.locale.searchableSelect.removeTagButtonLabel(t.label)}"
@@ -978,48 +987,48 @@ function be(s) {
978
987
  </span>
979
988
  `;
980
989
  }
981
- const me = (s) => {
990
+ const _e = (s) => {
982
991
  const t = s.tagFor(M);
983
- return d`<span class="${ge}" aria-disabled="${(e) => e.disabled}">
992
+ return p`<span class="${be}" aria-disabled="${(e) => e.disabled}">
984
993
  <slot name="icon" aria-hidden="true">
985
994
  ${v(
986
995
  (e) => e.hasIconPlaceholder,
987
- d`<div class="icon-placeholder"></div>`
996
+ p`<div class="icon-placeholder"></div>`
988
997
  )}
989
998
  </slot>
990
999
  ${v(
991
1000
  (e) => e.label,
992
- (e) => d`<span class="label">${e.label}</span>`
1001
+ (e) => p`<span class="label">${e.label}</span>`
993
1002
  )}
994
- ${v((e) => e.removable, be(t))}
1003
+ ${v((e) => e.removable, me(t))}
995
1004
  </span>`;
996
- }, _e = D(
1005
+ }, xe = R(
997
1006
  "option-tag",
998
1007
  b,
999
- me,
1008
+ _e,
1000
1009
  [I],
1001
1010
  {
1002
- styles: [ie],
1011
+ styles: [se],
1003
1012
  shadowOptions: {
1004
1013
  delegatesFocus: !0
1005
1014
  }
1006
1015
  }
1007
- ), xe = D(
1016
+ ), we = R(
1008
1017
  "searchable-select",
1009
1018
  n,
1010
- fe,
1019
+ ge,
1011
1020
  [
1012
- E,
1013
- L,
1021
+ P,
1022
+ B,
1014
1023
  I,
1015
- _e,
1016
- A,
1017
- q
1024
+ xe,
1025
+ W,
1026
+ j
1018
1027
  ],
1019
1028
  {
1020
- styles: ae
1029
+ styles: ie
1021
1030
  }
1022
- ), ye = N(
1023
- xe
1031
+ ), ye = H(
1032
+ we
1024
1033
  );
1025
1034
  ye();