@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,45 +1,44 @@
1
1
  import { P as C, p as A } from "./definition9.js";
2
2
  import { i as D } from "./definition2.js";
3
- import { l as H } from "./definition10.js";
4
- import { D as E, O as u, o as c, a as p, v as V, h, c as F, d as z } from "./vivid-element.js";
5
- import { a as T, f as W } from "./mixins.js";
6
- import { L as m } from "./listbox.js";
7
- import { H as L, a as P } from "./host-semantics.js";
8
- import { F as B } from "./form-associated.js";
3
+ import { L as H, l as E } from "./definition11.js";
4
+ import { U as V, O as u, o as p, a as c, v as F, h, c as z, d as T } from "./vivid-element.js";
5
+ import { a as W, f as L } from "./mixins.js";
6
+ import { L as S } from "./listbox.js";
7
+ import { H as P, a as B } from "./host-semantics.js";
8
+ import { F as N } from "./form-associated.js";
9
9
  import { i as v } from "./numbers.js";
10
10
  import { W as M } from "./with-contextual-help.js";
11
- import { W as N } from "./with-error-text.js";
12
- import { W as j } from "./with-success-text.js";
13
- import { F as K } from "./form-element.js";
14
- import { A as R, a as q, I as U } from "./affix.js";
15
- import { u as X } from "./strings.js";
16
- import { l as _, d as k, m as O, k as I, c as w, b as S, a as $, f as G } from "./key-codes.js";
17
- import { L as J } from "./option.js";
11
+ import { W as j } from "./with-error-text.js";
12
+ import { W as K } from "./with-success-text.js";
13
+ import { F as R } from "./form-element.js";
14
+ import { A as U, a as q, I as X } from "./affix.js";
15
+ import { u as G } from "./strings.js";
16
+ import { l as g, d as y, m as _, k, c as I, b as O, a as w, f as J } from "./key-codes.js";
18
17
  import { c as Q } from "./definition3.js";
19
18
  import { h as Y } from "./index.js";
20
- import { r as f } from "./ref.js";
21
- import { w as b } from "./when.js";
22
- import { s as g } from "./slotted.js";
19
+ import { r as b } from "./ref.js";
20
+ import { w as f } from "./when.js";
21
+ import { s as x } from "./slotted.js";
23
22
  import { c as Z } from "./class-names.js";
24
23
  const ee = ".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)}:host(:focus-visible){outline:none}:host{display:inline-flex;flex-direction:column;gap:4px;--_low-ink-color: var(--vvd-color-neutral-600);--focus-stroke-gap-color: transparent}:host([disabled]){--_low-ink-color: var(--vvd-color-neutral-400);cursor:not-allowed}.label{color:var(--vvd-color-canvas-text);contain:inline-size;font:var(--vvd-typography-base)}.control{--_appearance-color-text: var(--vvd-color-canvas-text);--_appearance-color-fill: var(--vvd-color-canvas);--_appearance-color-outline: var(--vvd-color-neutral-500)}.control.appearance-ghost{--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: transparent;--_appearance-color-outline: transparent}@media (hover: hover){.control: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)}.control: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}}.control.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)}.control.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}.control: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)}.control:disabled.appearance-ghost{--_appearance-color-text: var(--vvd-color-neutral-300);--_appearance-color-fill: transparent;--_appearance-color-outline: transparent}.control.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)}.control.disabled.appearance-ghost{--_appearance-color-text: var(--vvd-color-neutral-300);--_appearance-color-fill: transparent;--_appearance-color-outline: transparent}.control.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)}.control.readonly:where(:not(.disabled,:disabled)).appearance-ghost{--_appearance-color-text: var(--vvd-color-neutral-600);--_appearance-color-fill: transparent;--_appearance-color-outline: transparent}.control.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)}.control.error:where(:not(.disabled,:disabled)).appearance-ghost{--_appearance-color-text: notSet;--_appearance-color-fill: var(--vvd-color-alert-50);--_appearance-color-outline: transparent}.control.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)}.control.success:where(:not(.disabled,:disabled)).appearance-ghost{--_appearance-color-text: notSet;--_appearance-color-fill: var(--vvd-color-success-50);--_appearance-color-outline: transparent}.control{--_connotation-color-primary: var(--vvd-select-accent-primary, var(--vvd-color-canvas-text));--_connotation-color-primary-text: var(--vvd-select-accent-primary-text, var(--vvd-color-canvas));--_connotation-color-primary-increment: var(--vvd-select-accent-primary-increment, var(--vvd-color-neutral-800));--_connotation-color-intermediate: var(--vvd-select-accent-intermediate, var(--vvd-color-neutral-500));--_connotation-color-faint: var(--vvd-select-accent-faint, var(--vvd-color-neutral-50));--_connotation-color-soft: var(--vvd-select-accent-soft, var(--vvd-color-neutral-100));--_connotation-color-firm: var(--vvd-select-accent-firm, var(--vvd-color-canvas-text));--_connotation-color-fierce: var(--vvd-select-accent-fierce, var(--vvd-color-neutral-700))}.control{border-radius:var(--_select-control-border-radius);block-size:var(--_select-block-size);padding-inline:var(--_select-padding-inline)}.control{--_select-icon-size: calc(1px*(40 + 4*clamp(-1, var(--vvd-size-density, 0), 2))/2) ;--_select-block-size: calc(1px*(40 + 4*clamp(-1, var(--vvd-size-density, 0), 2))) ;--_select-padding-inline: calc(1px*(40 + 4*clamp(-1, var(--vvd-size-density, 0), 2))*.4) ;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;transition:box-shadow .2s,background-color .2s}.control.size-condensed{--_select-icon-size: calc(1px*(40 + 4*clamp(-1, var(--vvd-size-density, 0), 2))*.4) ;--_select-block-size: calc(1px*(32 + 4*clamp(-1, var(--vvd-size-density, 0), 2))) ;--_select-padding-inline: calc(1px*(24 + 4*clamp(-1, var(--vvd-size-density, 0), 2))/2) }.control.size-condensed:not(.shape-pill){--_select-control-border-radius: 4px}.control-wrapper{position:relative}.control:not(.disabled){cursor:pointer}.control.disabled{pointer-events:none}.control:not(.shape-pill){--_select-control-border-radius: 8px}.control.shape-pill{--_select-control-border-radius: 24px}:host(:focus-visible) .control{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))}.listbox{display:flex;max-height:var(--select-height, 408px);flex-direction:column;padding:4px;gap:2px;overflow-y:auto}:host([multiple]:focus-visible) .listbox{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));border-radius:8px}.selected-value{display:flex;overflow:hidden;flex-grow:1;align-items:center;column-gap:12px;white-space:nowrap}.selected-value .text{overflow:hidden;max-inline-size:100%;text-overflow:ellipsis}.control.shows-placeholder .selected-value .text{color:var(--vvd-color-neutral-600)}.selected-value slot[name=icon]{flex:0 0 var(--_select-icon-size);font-size:var(--_select-icon-size);line-height:1}.control.has-meta .selected-value{padding-inline-end:8px}.feedback-wrapper{display:contents}::part(popup-base){inline-size:max-content;min-inline-size:var(--_select-fixed-width, 100%)}:host([multiple]) ::part(popup-base){position:static}.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}";
25
- var te = Object.defineProperty, oe = Object.getOwnPropertyDescriptor, n = (a, e, t, o) => {
26
- for (var i = o > 1 ? void 0 : o ? oe(e, t) : e, l = a.length - 1, s; l >= 0; l--)
27
- (s = a[l]) && (i = (o ? s(e, t, i) : s(i)) || i);
28
- return o && i && te(e, t, i), i;
24
+ var te = Object.defineProperty, oe = Object.getOwnPropertyDescriptor, l = (n, e, t, o) => {
25
+ for (var a = o > 1 ? void 0 : o ? oe(e, t) : e, r = n.length - 1, s; r >= 0; r--)
26
+ (s = n[r]) && (a = (o ? s(e, t, a) : s(a)) || a);
27
+ return o && a && te(e, t, a), a;
29
28
  };
30
- class r extends T(
29
+ class i extends W(
31
30
  M(
32
- N(
33
- j(
34
- K(
35
- L(R(B(m)))
31
+ j(
32
+ K(
33
+ R(
34
+ P(U(N(S)))
36
35
  )
37
36
  )
38
37
  )
39
38
  )
40
39
  ) {
41
40
  constructor() {
42
- super(...arguments), this.proxy = document.createElement("select"), this.activeIndex = -1, this.rangeStartIndex = -1, this.open = !1, this.listboxId = X("listbox-"), this.maxHeight = 0, this.fixedDropdown = !1, this.placeholderOption = null, this._feedbackWrapper = null;
41
+ super(...arguments), this.proxy = document.createElement("select"), this.activeIndex = -1, this.rangeStartIndex = -1, this.open = !1, this.listboxId = G("listbox-"), this.maxHeight = 0, this.fixedDropdown = !1, this._feedbackWrapper = null;
43
42
  }
44
43
  /**
45
44
  * Returns the last checked option.
@@ -200,8 +199,8 @@ class r extends T(
200
199
  return;
201
200
  }
202
201
  if (this.$fastController.isConnected) {
203
- const o = this.getTypeaheadMatches(), i = this.options.indexOf(o[0]);
204
- i > -1 && (this.activeIndex = i, this.uncheckAllOptions(), this.checkActiveIndex()), this.typeaheadExpired = !1;
202
+ const o = this.getTypeaheadMatches(), a = this.options.indexOf(o[0]);
203
+ a > -1 && (this.activeIndex = a, this.uncheckAllOptions(), this.checkActiveIndex()), this.typeaheadExpired = !1;
205
204
  }
206
205
  }
207
206
  /**
@@ -226,11 +225,11 @@ class r extends T(
226
225
  if (!this.collapsible)
227
226
  return;
228
227
  if (this.open) {
229
- this.focusAndScrollOptionIntoView(), this.indexWhenOpened = this.selectedIndex, E.queueUpdate(() => this.focus());
228
+ this.focusAndScrollOptionIntoView(), this.indexWhenOpened = this.selectedIndex, V.enqueue(() => this.focus());
230
229
  return;
231
230
  }
232
- const o = e === !0 && t === !1, i = this.indexWhenOpened !== this.selectedIndex;
233
- o && i && this.updateValue(!0);
231
+ const o = e === !0 && t === !1, a = this.indexWhenOpened !== this.selectedIndex;
232
+ o && a && this.updateValue(!0);
234
233
  }
235
234
  get collapsible() {
236
235
  return !this.multiple;
@@ -239,16 +238,8 @@ class r extends T(
239
238
  * @internal
240
239
  */
241
240
  valueChanged(e, t) {
242
- let o = t;
243
- if (this.length) {
244
- const i = this._options.findIndex((x) => x.value === t), l = this._options[this.selectedIndex]?.value ?? null, s = this._options[i]?.value ?? null;
245
- (i === -1 || l !== s) && (o = "", this.selectedIndex = i), o = this.firstSelectedOption?.value ?? o;
246
- }
247
- if (t !== o) {
248
- this.value = o;
249
- return;
250
- }
251
- super.valueChanged(e, t), this.updateDisplayValue();
241
+ const o = this.options.findIndex((s) => s.value === t), a = this._validSelectedIndex(o), r = this.options[a]?.value ?? "";
242
+ this.selectedIndex !== a && (this.selectedIndex = a), t === r && (super.valueChanged(e, t), this.updateDisplayValue());
252
243
  }
253
244
  /**
254
245
  * Sets the value and display value to match the first selected option.
@@ -343,9 +334,9 @@ class r extends T(
343
334
  * @internal
344
335
  */
345
336
  selectedOptionsChanged(e, t) {
346
- super.selectedOptionsChanged(e, t), this.options.forEach((o, i) => {
347
- const l = this.proxy.options.item(i);
348
- l && (l.selected = o.selected);
337
+ super.selectedOptionsChanged(e, t), this.options.forEach((o, a) => {
338
+ const r = this.proxy.options.item(a);
339
+ r && (r.selected = o.selected);
349
340
  });
350
341
  }
351
342
  /**
@@ -369,31 +360,31 @@ class r extends T(
369
360
  return;
370
361
  const { key: t, shiftKey: o } = e;
371
362
  switch (this.shouldSkipFocus = !1, t) {
372
- case $: {
363
+ case w: {
373
364
  this.checkFirstOption(o);
374
365
  return;
375
366
  }
376
- case S: {
367
+ case O: {
377
368
  this.checkNextOption(o);
378
369
  return;
379
370
  }
380
- case w: {
371
+ case I: {
381
372
  this.checkPreviousOption(o);
382
373
  return;
383
374
  }
384
- case I: {
375
+ case k: {
385
376
  this.checkLastOption(o);
386
377
  return;
387
378
  }
388
- case O: {
379
+ case _: {
389
380
  this.focusAndScrollOptionIntoView();
390
381
  return;
391
382
  }
392
- case k: {
383
+ case y: {
393
384
  this.uncheckAllOptions(), this.checkActiveIndex();
394
385
  return;
395
386
  }
396
- case _:
387
+ case g:
397
388
  if (e.preventDefault(), this.typeaheadExpired) {
398
389
  this.toggleSelectedForAllCheckedOptions();
399
390
  return;
@@ -413,27 +404,27 @@ class r extends T(
413
404
  keydownHandler(e) {
414
405
  const t = this.selectedIndex;
415
406
  switch (this.multiple ? this.multipleKeydownHandler(e) : super.keydownHandler(e), e.key) {
416
- case _: {
407
+ case g: {
417
408
  e.preventDefault(), this.collapsible && this.typeaheadExpired && (this.open = !this.open);
418
409
  break;
419
410
  }
420
- case $:
421
- case I: {
411
+ case w:
412
+ case k: {
422
413
  e.preventDefault();
423
414
  break;
424
415
  }
425
- case G: {
416
+ case J: {
426
417
  e.preventDefault(), this.open = !this.open;
427
418
  break;
428
419
  }
429
- case k: {
420
+ case y: {
430
421
  this.collapsible && this.open && (e.preventDefault(), this.open = !1);
431
422
  break;
432
423
  }
433
- case O:
424
+ case _:
434
425
  return this.collapsible && this.open && (e.preventDefault(), this.open = !1), !0;
435
426
  }
436
- return this.collapsible && !this.open && this.selectedIndex !== t && this.updateValue(!0), !(e.key === S || e.key === w);
427
+ return this.collapsible && !this.open && this.selectedIndex !== t && this.updateValue(!0), !(e.key === O || e.key === I);
437
428
  }
438
429
  connectedCallback() {
439
430
  super.connectedCallback(), this.addEventListener("focusout", this.focusoutHandler), this.addEventListener("contentchange", this.updateDisplayValue);
@@ -451,148 +442,145 @@ class r extends T(
451
442
  get displayValue() {
452
443
  return u.track(this, "displayValue"), this.firstSelectedOption?.getAttribute("label") ?? this.firstSelectedOption?.text ?? this.placeholder ?? "";
453
444
  }
454
- setDefaultSelectedOption() {
455
- const t = Array.from(this.children).filter(
456
- m.slottedOptionFilter
457
- ).findIndex(
458
- (o) => o.hasAttribute("selected") || o.selected || o.value === this.value
445
+ _newDefaultSelectedIndex(e, t, o) {
446
+ const a = super._newDefaultSelectedIndex(
447
+ e,
448
+ t,
449
+ o
459
450
  );
460
- if (t === -1 && !this.placeholderOption) {
461
- this.selectedIndex = 0;
462
- return;
463
- }
464
- if (t !== -1 || this.placeholder !== "") {
465
- this.selectedIndex = t;
466
- return;
451
+ if (a === null && o === -1 && !this.placeholder) {
452
+ const r = this.getNextSelectableIndex(0);
453
+ if (r !== -1)
454
+ return r;
467
455
  }
456
+ return a;
457
+ }
458
+ _isDefaultSelected(e) {
459
+ return super._isDefaultSelected(e) || e.value === this.initialValue;
468
460
  }
469
461
  /*
470
462
  * @internal
471
463
  */
472
464
  slottedOptionsChanged(e, t) {
473
- this.options.forEach((i) => {
474
- u.getNotifier(i).unsubscribe(this, "value");
475
- }), super.slottedOptionsChanged(e, t), this.options.forEach((i) => {
476
- u.getNotifier(i).subscribe(this, "value");
465
+ this.options.forEach((a) => {
466
+ u.getNotifier(a).unsubscribe(this, "value");
467
+ }), super.slottedOptionsChanged(e, t), this.options.forEach((a) => {
468
+ u.getNotifier(a).subscribe(this, "value");
477
469
  }), this.setProxyOptions(), this.updateValue();
478
470
  const o = this.getAttribute("scale") || this.scale;
479
- t.forEach((i) => {
480
- o && (i.setAttribute("scale", o), i.scale = o);
471
+ t.forEach((a) => {
472
+ o && (a.setAttribute("scale", o), a.scale = o);
481
473
  }), this.proxy.value = this.value, this.validate();
482
474
  }
483
475
  formResetCallback() {
484
- this.setProxyOptions(), super.setDefaultSelectedOption(), this.selectedIndex === -1 && (this.selectedIndex = 0), this.placeholder && (this.selectedIndex = -1);
476
+ this.setProxyOptions(), this.selectedIndex = this._newDefaultSelectedIndex([], this.options, -1) ?? -1;
485
477
  }
486
478
  }
487
- n([
488
- c
489
- ], r.prototype, "activeIndex", 2);
490
- n([
491
- p({ mode: "boolean" })
492
- ], r.prototype, "multiple", 2);
493
- n([
494
- p({ attribute: "open", mode: "boolean" })
495
- ], r.prototype, "open", 2);
496
- n([
497
- V
498
- ], r.prototype, "collapsible", 1);
499
- n([
500
- c
501
- ], r.prototype, "control", 2);
502
- n([
503
- c
504
- ], r.prototype, "maxHeight", 2);
505
- n([
506
- c
507
- ], r.prototype, "_anchor", 2);
508
- n([
509
- p()
510
- ], r.prototype, "scale", 2);
511
- n([
479
+ l([
512
480
  p
513
- ], r.prototype, "appearance", 2);
514
- n([
481
+ ], i.prototype, "activeIndex", 2);
482
+ l([
483
+ c({ mode: "boolean" })
484
+ ], i.prototype, "multiple", 2);
485
+ l([
486
+ c({ attribute: "open", mode: "boolean" })
487
+ ], i.prototype, "open", 2);
488
+ l([
489
+ F
490
+ ], i.prototype, "collapsible", 1);
491
+ l([
515
492
  p
516
- ], r.prototype, "shape", 2);
517
- n([
518
- p({ mode: "boolean", attribute: "fixed-dropdown" })
519
- ], r.prototype, "fixedDropdown", 2);
520
- n([
493
+ ], i.prototype, "control", 2);
494
+ l([
521
495
  p
522
- ], r.prototype, "placeholder", 2);
523
- n([
496
+ ], i.prototype, "maxHeight", 2);
497
+ l([
498
+ p
499
+ ], i.prototype, "_anchor", 2);
500
+ l([
501
+ c()
502
+ ], i.prototype, "scale", 2);
503
+ l([
524
504
  c
525
- ], r.prototype, "placeholderOption", 2);
526
- n([
505
+ ], i.prototype, "appearance", 2);
506
+ l([
527
507
  c
528
- ], r.prototype, "_feedbackWrapper", 2);
529
- n([
508
+ ], i.prototype, "shape", 2);
509
+ l([
510
+ c({ mode: "boolean", attribute: "fixed-dropdown" })
511
+ ], i.prototype, "fixedDropdown", 2);
512
+ l([
530
513
  c
531
- ], r.prototype, "metaSlottedContent", 2);
514
+ ], i.prototype, "placeholder", 2);
515
+ l([
516
+ p
517
+ ], i.prototype, "_feedbackWrapper", 2);
518
+ l([
519
+ p
520
+ ], i.prototype, "metaSlottedContent", 2);
532
521
  const ae = ({
533
- shape: a,
522
+ shape: n,
534
523
  disabled: e,
535
524
  appearance: t,
536
525
  metaSlottedContent: o,
537
- errorValidationMessage: i,
538
- successText: l,
526
+ errorValidationMessage: a,
527
+ successText: r,
539
528
  placeholder: s,
540
- value: x,
541
- scale: y
529
+ value: $,
530
+ scale: m
542
531
  }) => Z(
543
532
  ["disabled", e],
544
533
  [`appearance-${t}`, !!t],
545
- [`shape-${a}`, !!a],
534
+ [`shape-${n}`, !!n],
546
535
  ["has-meta", !!o?.length],
547
- ["error", !!i],
548
- ["success", !!l],
549
- ["shows-placeholder", !!s && !x],
550
- [`size-${y}`, !!y]
536
+ ["error", !!a],
537
+ ["success", !!r],
538
+ ["shows-placeholder", !!s && !$],
539
+ [`size-${m}`, !!m]
551
540
  );
552
- function ie() {
541
+ function ne() {
553
542
  return h` <label
554
- for="${(a) => a.multiple ? null : "control"}"
543
+ for="${(n) => n.multiple ? null : "control"}"
555
544
  class="label"
556
545
  id="label"
557
546
  >
558
- ${(a) => a.label}
547
+ ${(n) => n.label}
559
548
  </label>`;
560
549
  }
561
- function re(a) {
562
- const e = a.tagFor(J);
550
+ function re(n) {
551
+ const e = n.tagFor(H);
563
552
  return h`
564
- <${e} ${f("placeholderOption")}
565
- text="${(t) => t.placeholder}" hidden disabled>
553
+ <${e} text="${(t) => t.placeholder}" hidden disabled>
566
554
  </${e}>`;
567
555
  }
568
- function ne(a) {
569
- const e = q(a), t = Q(a);
556
+ function ie(n) {
557
+ const e = q(n), t = Q(n);
570
558
  return h` <div
571
559
  class="control ${ae}"
572
- ${f("_anchor")}
560
+ ${b("_anchor")}
573
561
  id="control"
574
562
  ?disabled="${(o) => o.disabled}"
575
563
  >
576
564
  <div class="selected-value">
577
- ${(o) => e(o.icon, U.Slot)}
565
+ ${(o) => e(o.icon, X.Slot)}
578
566
  <span class="text">${(o) => o.displayValue}</span>
579
- <slot name="meta" ${g("metaSlottedContent")}></slot>
567
+ <slot name="meta" ${x("metaSlottedContent")}></slot>
580
568
  </div>
581
569
  ${t}
582
570
  </div>`;
583
571
  }
584
- function le(a) {
585
- return a.open && a.fixedDropdown ? `--_select-fixed-width: ${Math.round(a.getBoundingClientRect().width)}px` : null;
572
+ function le(n) {
573
+ return n.open && n.fixedDropdown ? `--_select-fixed-width: ${Math.round(n.getBoundingClientRect().width)}px` : null;
586
574
  }
587
- function se(a) {
588
- const e = a.tagFor(C);
575
+ function se(n) {
576
+ const e = n.tagFor(C);
589
577
  return h`
590
578
  <div class="label-wrapper" ?hidden=${(t) => !t.label && !t._hasContextualHelp}>
591
- ${b((t) => t.label, ie())}
592
- <slot name="contextual-help" ${g("_contextualHelpSlottedContent")}></slot>
579
+ ${f((t) => t.label, ne())}
580
+ <slot name="contextual-help" ${x("_contextualHelpSlottedContent")}></slot>
593
581
  </div>
594
582
  <div class="control-wrapper">
595
- ${b((t) => !t.multiple, ne(a))}
583
+ ${f((t) => !t.multiple, ie(n))}
596
584
  <${e} class="popup"
597
585
  style="${le}"
598
586
  ?open="${(t) => t.collapsible ? t.open : !0}"
@@ -607,11 +595,11 @@ function se(a) {
607
595
  aria-labelledby="${(t) => t.multiple && t.label ? "label" : null}"
608
596
  ?disabled="${(t) => t.disabled}"
609
597
  ?hidden="${(t) => t.collapsible ? !t.open : !1}"
610
- ${f("listbox")}>
611
- ${b((t) => t.placeholder, re(a))}
598
+ ${b("listbox")}>
599
+ ${f((t) => t.placeholder, re(n))}
612
600
  <slot
613
- ${g({
614
- filter: m.slottedOptionFilter,
601
+ ${x({
602
+ filter: S.slottedOptionFilter,
615
603
  flatten: !0,
616
604
  property: "slottedOptions"
617
605
  })}>
@@ -621,13 +609,13 @@ function se(a) {
621
609
  </div>
622
610
  `;
623
611
  }
624
- function d(a) {
625
- return (e, t) => t.event.composedPath().includes(e._feedbackWrapper) ? !0 : a(e, t.event);
612
+ function d(n) {
613
+ return (e, t) => t.event.composedPath().includes(e._feedbackWrapper) ? !0 : n(e, t.event);
626
614
  }
627
- const ce = (a) => h`
615
+ const ce = (n) => h`
628
616
  <template
629
617
  class="base"
630
- ${P({
618
+ ${B({
631
619
  role: "combobox",
632
620
  ariaLabel: (e) => e.ariaLabel ?? e.label,
633
621
  ariaHasPopup: (e) => e.collapsible ? "listbox" : "false",
@@ -648,27 +636,27 @@ const ce = (a) => h`
648
636
  (e, t) => e.mousedownHandler(t)
649
637
  )}"
650
638
  >
651
- ${se(a)}
652
- <div class="feedback-wrapper" ${f("_feedbackWrapper")}>
653
- ${(e) => e._getFeedbackTemplate(a)}
639
+ ${se(n)}
640
+ <div class="feedback-wrapper" ${b("_feedbackWrapper")}>
641
+ ${(e) => e._getFeedbackTemplate(n)}
654
642
  </div>
655
643
  </template>
656
- `, pe = z(
644
+ `, pe = T(
657
645
  "select",
658
- r,
646
+ i,
659
647
  ce,
660
648
  [
661
649
  A,
662
650
  D,
663
- H,
664
- W
651
+ E,
652
+ L
665
653
  ],
666
654
  {
667
655
  styles: ee
668
656
  }
669
- ), Fe = F(pe);
657
+ ), Ve = z(pe);
670
658
  export {
671
- r as S,
672
- Fe as r,
659
+ i as S,
660
+ Ve as r,
673
661
  pe as s
674
662
  };
@@ -1,4 +1,4 @@
1
- "use strict";const r=require("./vivid-element.cjs"),h=require("./definition12.cjs"),u=require("./_has.cjs"),b=require("./class-names.cjs"),d=require("./when.cjs"),w=":host{display:inline-block;vertical-align:sub}.control.connotation-accent{--_connotation-color-primary: var(--vvd-icon-accent-primary, var(--vvd-color-canvas-text))}.control.connotation-announcement{--_connotation-color-primary: var(--vvd-icon-announcement-primary, var(--vvd-color-announcement-500))}.control.connotation-cta{--_connotation-color-primary: var(--vvd-icon-cta-primary, var(--vvd-color-cta-500))}.control.connotation-success{--_connotation-color-primary: var(--vvd-icon-success-primary, var(--vvd-color-success-500))}.control.connotation-warning{--_connotation-color-primary: var(--vvd-icon-warning-primary, var(--vvd-color-warning-300))}.control.connotation-alert{--_connotation-color-primary: var(--vvd-icon-alert-primary, var(--vvd-color-alert-500))}.control.connotation-information{--_connotation-color-primary: var(--vvd-icon-information-primary, var(--vvd-color-information-500))}.control.size--6{--_icon-block-size: calc(1px*(40 + 4*clamp(-1, var(--vvd-size-density, 0), 2)) - (1px*(24 + 4*clamp(-1, var(--vvd-size-density, 0), 2)))) }.control.size--5{--_icon-block-size: calc(1px*(20 + 4*clamp(-1, var(--vvd-size-density, 0), 2))) }.control.size--4{--_icon-block-size: calc(1px*(24 + 4*clamp(-1, var(--vvd-size-density, 0), 2))) }.control.size--3{--_icon-block-size: calc(1px*(28 + 4*clamp(-1, var(--vvd-size-density, 0), 2))) }.control.size--2{--_icon-block-size: calc(1px*(32 + 4*clamp(-1, var(--vvd-size-density, 0), 2))) }.control.size--1{--_icon-block-size: calc(1px*(36 + 4*clamp(-1, var(--vvd-size-density, 0), 2))) }.control.size-0{--_icon-block-size: calc(1px*(40 + 4*clamp(-1, var(--vvd-size-density, 0), 2))) }.control.size-1{--_icon-block-size: calc(1px*(44 + 4*clamp(-1, var(--vvd-size-density, 0), 2))) }.control.size-2{--_icon-block-size: calc(1px*(48 + 4*clamp(-1, var(--vvd-size-density, 0), 2))) }.control.size-3{--_icon-block-size: calc(1px*(52 + 4*clamp(-1, var(--vvd-size-density, 0), 2))) }.control.size-4{--_icon-block-size: calc(1px*(56 + 4*clamp(-1, var(--vvd-size-density, 0), 2))) }.control.size-5{--_icon-block-size: calc(1px*(60 + 4*clamp(-1, var(--vvd-size-density, 0), 2))) }.control:not(.size--6,.size--5,.size--4,.size--3,.size--2,.size--1,.size-0,.size-1,.size-2,.size-3,.size-4,.size-5){--_icon-block-size: 1em}.control{display:flex;margin:unset;block-size:var(--_icon-block-size);color:currentColor;contain:strict;inline-size:var(--_icon-block-size)}.control[class*=connotation]{color:var(--_connotation-color-primary)}slot,svg,::slotted(:where(svg,img)){margin:auto;block-size:inherit;inline-size:inherit}";function x(n,o){switch(n){case 0:return function(){return o.apply(this,arguments)};case 1:return function(e){return o.apply(this,arguments)};case 2:return function(e,t){return o.apply(this,arguments)};case 3:return function(e,t,i){return o.apply(this,arguments)};case 4:return function(e,t,i,a){return o.apply(this,arguments)};case 5:return function(e,t,i,a,s){return o.apply(this,arguments)};case 6:return function(e,t,i,a,s,v){return o.apply(this,arguments)};case 7:return function(e,t,i,a,s,v,p){return o.apply(this,arguments)};case 8:return function(e,t,i,a,s,v,p,m){return o.apply(this,arguments)};case 9:return function(e,t,i,a,s,v,p,m,f){return o.apply(this,arguments)};case 10:return function(e,t,i,a,s,v,p,m,f,U){return o.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function k(n){return n}var C=u._curry1(k),L=u._curry2(function(o,e){var t={};return x(e.length,function(){var i=o.apply(this,arguments);return u._has(i,t)||(t[i]=e.apply(this,arguments)),t[i]})});const $="https://icon.resources.vonage.com",y="4.6.9",E={toView(n){return n===void 0?null:n.toString()},fromView(n){if(typeof n=="string"&&(n=parseFloat(n.toString())),typeof n=="number")return isNaN(n)||!isFinite(n)?void 0:n}},g=`<svg width="80%" height="80%" viewBox="0 0 64 64">
1
+ "use strict";const r=require("./vivid-element.cjs"),h=require("./definition13.cjs"),u=require("./_has.cjs"),b=require("./class-names.cjs"),d=require("./when.cjs"),w=":host{display:inline-block;vertical-align:sub}.control.connotation-accent{--_connotation-color-primary: var(--vvd-icon-accent-primary, var(--vvd-color-canvas-text))}.control.connotation-announcement{--_connotation-color-primary: var(--vvd-icon-announcement-primary, var(--vvd-color-announcement-500))}.control.connotation-cta{--_connotation-color-primary: var(--vvd-icon-cta-primary, var(--vvd-color-cta-500))}.control.connotation-success{--_connotation-color-primary: var(--vvd-icon-success-primary, var(--vvd-color-success-500))}.control.connotation-warning{--_connotation-color-primary: var(--vvd-icon-warning-primary, var(--vvd-color-warning-300))}.control.connotation-alert{--_connotation-color-primary: var(--vvd-icon-alert-primary, var(--vvd-color-alert-500))}.control.connotation-information{--_connotation-color-primary: var(--vvd-icon-information-primary, var(--vvd-color-information-500))}.control.size--6{--_icon-block-size: calc(1px*(40 + 4*clamp(-1, var(--vvd-size-density, 0), 2)) - (1px*(24 + 4*clamp(-1, var(--vvd-size-density, 0), 2)))) }.control.size--5{--_icon-block-size: calc(1px*(20 + 4*clamp(-1, var(--vvd-size-density, 0), 2))) }.control.size--4{--_icon-block-size: calc(1px*(24 + 4*clamp(-1, var(--vvd-size-density, 0), 2))) }.control.size--3{--_icon-block-size: calc(1px*(28 + 4*clamp(-1, var(--vvd-size-density, 0), 2))) }.control.size--2{--_icon-block-size: calc(1px*(32 + 4*clamp(-1, var(--vvd-size-density, 0), 2))) }.control.size--1{--_icon-block-size: calc(1px*(36 + 4*clamp(-1, var(--vvd-size-density, 0), 2))) }.control.size-0{--_icon-block-size: calc(1px*(40 + 4*clamp(-1, var(--vvd-size-density, 0), 2))) }.control.size-1{--_icon-block-size: calc(1px*(44 + 4*clamp(-1, var(--vvd-size-density, 0), 2))) }.control.size-2{--_icon-block-size: calc(1px*(48 + 4*clamp(-1, var(--vvd-size-density, 0), 2))) }.control.size-3{--_icon-block-size: calc(1px*(52 + 4*clamp(-1, var(--vvd-size-density, 0), 2))) }.control.size-4{--_icon-block-size: calc(1px*(56 + 4*clamp(-1, var(--vvd-size-density, 0), 2))) }.control.size-5{--_icon-block-size: calc(1px*(60 + 4*clamp(-1, var(--vvd-size-density, 0), 2))) }.control:not(.size--6,.size--5,.size--4,.size--3,.size--2,.size--1,.size-0,.size-1,.size-2,.size-3,.size-4,.size-5){--_icon-block-size: 1em}.control{display:flex;margin:unset;block-size:var(--_icon-block-size);color:currentColor;contain:strict;inline-size:var(--_icon-block-size)}.control[class*=connotation]{color:var(--_connotation-color-primary)}slot,svg,::slotted(:where(svg,img)){margin:auto;block-size:inherit;inline-size:inherit}";function x(n,o){switch(n){case 0:return function(){return o.apply(this,arguments)};case 1:return function(e){return o.apply(this,arguments)};case 2:return function(e,t){return o.apply(this,arguments)};case 3:return function(e,t,i){return o.apply(this,arguments)};case 4:return function(e,t,i,a){return o.apply(this,arguments)};case 5:return function(e,t,i,a,s){return o.apply(this,arguments)};case 6:return function(e,t,i,a,s,v){return o.apply(this,arguments)};case 7:return function(e,t,i,a,s,v,p){return o.apply(this,arguments)};case 8:return function(e,t,i,a,s,v,p,m){return o.apply(this,arguments)};case 9:return function(e,t,i,a,s,v,p,m,f){return o.apply(this,arguments)};case 10:return function(e,t,i,a,s,v,p,m,f,U){return o.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function k(n){return n}var C=u._curry1(k),L=u._curry2(function(o,e){var t={};return x(e.length,function(){var i=o.apply(this,arguments);return u._has(i,t)||(t[i]=e.apply(this,arguments)),t[i]})});const $="https://icon.resources.vonage.com",y="4.6.9",E={toView(n){return n===void 0?null:n.toString()},fromView(n){if(typeof n=="string"&&(n=parseFloat(n.toString())),typeof n=="number")return isNaN(n)||!isFinite(n)?void 0:n}},g=`<svg width="80%" height="80%" viewBox="0 0 64 64">
2
2
  <g>
3
3
  <g stroke-width="6" stroke-linecap="round" fill="none">
4
4
  <path stroke="currentColor" d="M4,32 c0,15,12,28,28,28c8,0,16-4,21-9">
@@ -10,11 +10,15 @@
10
10
  </g>
11
11
  </g>
12
12
  </svg>`;var O=Object.defineProperty,D=Object.getOwnPropertyDescriptor,l=(n,o,e,t)=>{for(var i=t>1?void 0:t?D(o,e):o,a=n.length-1,s;a>=0;a--)(s=n[a])&&(i=(t?s(o,e,i):s(i))||i);return t&&i&&O(o,e,i),i};const I=500,S=2e3,z=(n,o)=>[$,`v${o}`,n].join("/"),T=({ok:n,headers:o})=>{if(!n||o.get("content-type")!=="image/svg+xml")throw new Error("Something went wrong")},N=n=>(T(n),n.text()),P=(n,o)=>fetch(z([n,"svg"].join("."),y),{signal:o}).then(N),R=L(C,(n,o)=>n.trim()?P(n,o):Promise.resolve(""));class c extends r.VividElement{constructor(){super(...arguments),this.iconLoaded=!1,this.#t=null}get iconUrl(){return this.name?z(`${this.name}.svg`,y):this._svg}#t;async nameChanged(){this.#t&&this.#t.abort(),this.#t=new AbortController,this._svg=void 0,this.iconLoaded=!1;let o=setTimeout(()=>{this._svg=g,o=setTimeout(()=>{this._svg===g&&(this._svg=void 0)},S)},I);await R(this.name?this.name:"",this.#t.signal).then(e=>{this._svg=e}).catch(()=>{this._svg=void 0}).finally(()=>{clearTimeout(o),this.iconLoaded=!0})}}l([r.attr],c.prototype,"connotation",2);l([r.attr({converter:E})],c.prototype,"size",2);l([r.observable],c.prototype,"_svg",2);l([r.observable],c.prototype,"iconLoaded",2);l([r.attr],c.prototype,"label",2);l([r.attr],c.prototype,"name",2);l([r.volatile],c.prototype,"iconUrl",1);const V=({connotation:n,size:o})=>b.classNames("control",[`connotation-${n}`,!!n],[`size-${o}`,typeof o=="number"]),A=n=>{const o=n.tagFor(h.VisuallyHidden),e=t=>!t.label||t.label.trim().length===0;return r.html`
13
- <figure class="${V}" ?aria-hidden="${t=>e(t)}" ?aria-busy="${t=>!t.iconLoaded}">
13
+ <figure
14
+ class="${V}"
15
+ ?aria-hidden="${t=>e(t)}"
16
+ ?aria-busy="${t=>!t?.iconLoaded}"
17
+ >
14
18
  <slot>
15
- ${d.when(t=>!t.iconLoaded,r.html`<img alt="${t=>t.name}" src="${t=>t.iconUrl}" />`)}
16
- ${d.when(t=>t.iconLoaded&&t._svg,t=>r.html`${t._svg}`)}
19
+ ${d.when(t=>!t?.iconLoaded,r.html`<img alt="${t=>t?.name}" src="${t=>t?.iconUrl}" />`)}
20
+ ${d.when(t=>t?.iconLoaded&&t?._svg,t=>r.html`${r.html.partial(t._svg)}`)}
17
21
  </slot>
18
- <${o} class="label">${t=>t.label}</${o}>
22
+ <${o} class="label">${t=>t?.label}</${o}>
19
23
  </figure>
20
24
  `},_=r.defineVividComponent("icon",c,A,[h.visuallyHiddenDefinition],{styles:w}),H=r.createRegisterFunction(_);exports.Icon=c;exports.iconDefinition=_;exports.registerIcon=H;
@@ -1,5 +1,5 @@
1
- import { V as f, a as v, o as y, v as b, h as m, c as w, d as x } from "./vivid-element.js";
2
- import { V as k, v as C } from "./definition12.js";
1
+ import { V as f, a as p, o as y, v as b, h as v, c as w, d as x } from "./vivid-element.js";
2
+ import { V as k, v as C } from "./definition13.js";
3
3
  import { a as L, b as $, _ as E } from "./_has.js";
4
4
  import { c as O } from "./class-names.js";
5
5
  import { w as d } from "./when.js";
@@ -35,19 +35,19 @@ function T(o, n) {
35
35
  return n.apply(this, arguments);
36
36
  };
37
37
  case 7:
38
- return function(a, t, r, e, i, l, p) {
38
+ return function(a, t, r, e, i, l, m) {
39
39
  return n.apply(this, arguments);
40
40
  };
41
41
  case 8:
42
- return function(a, t, r, e, i, l, p, u) {
42
+ return function(a, t, r, e, i, l, m, u) {
43
43
  return n.apply(this, arguments);
44
44
  };
45
45
  case 9:
46
- return function(a, t, r, e, i, l, p, u, _) {
46
+ return function(a, t, r, e, i, l, m, u, _) {
47
47
  return n.apply(this, arguments);
48
48
  };
49
49
  case 10:
50
- return function(a, t, r, e, i, l, p, u, _, G) {
50
+ return function(a, t, r, e, i, l, m, u, _, G) {
51
51
  return n.apply(this, arguments);
52
52
  };
53
53
  default:
@@ -123,10 +123,10 @@ class s extends f {
123
123
  }
124
124
  }
125
125
  c([
126
- v
126
+ p
127
127
  ], s.prototype, "connotation", 2);
128
128
  c([
129
- v({ converter: P })
129
+ p({ converter: P })
130
130
  ], s.prototype, "size", 2);
131
131
  c([
132
132
  y
@@ -135,10 +135,10 @@ c([
135
135
  y
136
136
  ], s.prototype, "iconLoaded", 2);
137
137
  c([
138
- v
138
+ p
139
139
  ], s.prototype, "label", 2);
140
140
  c([
141
- v
141
+ p
142
142
  ], s.prototype, "name", 2);
143
143
  c([
144
144
  b
@@ -149,19 +149,23 @@ const W = ({ connotation: o, size: n }) => O(
149
149
  [`size-${n}`, typeof n == "number"]
150
150
  ), Y = (o) => {
151
151
  const n = o.tagFor(k), a = (t) => !t.label || t.label.trim().length === 0;
152
- return m`
153
- <figure class="${W}" ?aria-hidden="${(t) => a(t)}" ?aria-busy="${(t) => !t.iconLoaded}">
152
+ return v`
153
+ <figure
154
+ class="${W}"
155
+ ?aria-hidden="${(t) => a(t)}"
156
+ ?aria-busy="${(t) => !t?.iconLoaded}"
157
+ >
154
158
  <slot>
155
159
  ${d(
156
- (t) => !t.iconLoaded,
157
- m`<img alt="${(t) => t.name}" src="${(t) => t.iconUrl}" />`
160
+ (t) => !t?.iconLoaded,
161
+ v`<img alt="${(t) => t?.name}" src="${(t) => t?.iconUrl}" />`
158
162
  )}
159
163
  ${d(
160
- (t) => t.iconLoaded && t._svg,
161
- (t) => m`${t._svg}`
164
+ (t) => t?.iconLoaded && t?._svg,
165
+ (t) => v`${v.partial(t._svg)}`
162
166
  )}
163
167
  </slot>
164
- <${n} class="label">${(t) => t.label}</${n}>
168
+ <${n} class="label">${(t) => t?.label}</${n}>
165
169
  </figure>
166
170
  `;
167
171
  }, q = x(