@vonage/vivid 5.4.0 → 5.6.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 (351) hide show
  1. package/LICENSE.md +201 -0
  2. package/accordion/definition.cjs +5 -0
  3. package/accordion/definition.js +5 -0
  4. package/accordion/index.cjs +1 -1
  5. package/accordion/index.js +14 -3
  6. package/alert/definition.cjs +4 -12
  7. package/alert/definition.js +5 -13
  8. package/alert/index.cjs +11 -11
  9. package/alert/index.js +33 -37
  10. package/audio-player/definition.cjs +4 -0
  11. package/audio-player/definition.js +4 -0
  12. package/audio-player/index.cjs +1 -1
  13. package/audio-player/index.js +8 -2
  14. package/banner/definition.cjs +2 -4
  15. package/banner/definition.js +2 -4
  16. package/banner/index.cjs +2 -2
  17. package/banner/index.js +1 -1
  18. package/breadcrumb/definition.cjs +1 -0
  19. package/breadcrumb/definition.js +1 -0
  20. package/breadcrumb/index.cjs +1 -1
  21. package/breadcrumb/index.js +1 -0
  22. package/bundled/affix.js +1 -1
  23. package/bundled/anchored.cjs +1 -1
  24. package/bundled/anchored.js +6 -6
  25. package/bundled/attribute-binding-behaviour.cjs +1 -1
  26. package/bundled/attribute-binding-behaviour.js +3 -1
  27. package/bundled/base-color-picker.cjs +18 -13
  28. package/bundled/base-color-picker.js +107 -84
  29. package/bundled/base-progress.cjs +1 -1
  30. package/bundled/base-progress.js +3 -0
  31. package/bundled/button.cjs +1 -1
  32. package/bundled/button.js +14 -10
  33. package/bundled/calendar-picker.template.cjs +1 -1
  34. package/bundled/calendar-picker.template.js +4 -2
  35. package/bundled/char-count.cjs +1 -1
  36. package/bundled/char-count.js +1 -1
  37. package/bundled/definition10.cjs +7 -7
  38. package/bundled/definition10.js +29 -19
  39. package/bundled/definition11.cjs +12 -19
  40. package/bundled/definition11.js +73 -204
  41. package/bundled/definition12.cjs +19 -10
  42. package/bundled/definition12.js +218 -36
  43. package/bundled/definition13.cjs +10 -1
  44. package/bundled/definition13.js +38 -14
  45. package/bundled/definition14.cjs +1 -5
  46. package/bundled/definition14.js +15 -24
  47. package/bundled/definition15.cjs +5 -30
  48. package/bundled/definition15.js +22 -73
  49. package/bundled/definition16.cjs +30 -19
  50. package/bundled/definition16.js +74 -97
  51. package/bundled/definition17.cjs +19 -13
  52. package/bundled/definition17.js +86 -117
  53. package/bundled/definition18.cjs +13 -12
  54. package/bundled/definition18.js +125 -71
  55. package/bundled/definition19.cjs +16 -16
  56. package/bundled/definition19.js +132 -94
  57. package/bundled/definition2.cjs +8 -9
  58. package/bundled/definition2.js +89 -142
  59. package/bundled/definition22.cjs +1 -1
  60. package/bundled/definition22.js +1 -0
  61. package/bundled/definition3.cjs +1 -1
  62. package/bundled/definition3.js +2 -1
  63. package/bundled/definition5.cjs +1 -1
  64. package/bundled/definition5.js +9 -3
  65. package/bundled/definition6.cjs +1 -1
  66. package/bundled/definition6.js +1 -0
  67. package/bundled/definition7.cjs +1 -1
  68. package/bundled/definition7.js +7 -4
  69. package/bundled/definition8.cjs +1 -1
  70. package/bundled/definition8.js +1 -0
  71. package/bundled/definition9.cjs +6 -6
  72. package/bundled/definition9.js +545 -488
  73. package/bundled/delegates-aria.cjs +1 -1
  74. package/bundled/delegates-aria.js +3 -1
  75. package/bundled/form-associated.cjs +1 -1
  76. package/bundled/form-associated.js +11 -3
  77. package/bundled/host-semantics.js +4 -4
  78. package/bundled/listbox.cjs +1 -1
  79. package/bundled/listbox.js +22 -4
  80. package/bundled/localized.cjs +1 -1
  81. package/bundled/localized.js +149 -66
  82. package/bundled/mixins.cjs +4 -4
  83. package/bundled/mixins.js +11 -8
  84. package/bundled/picker-field.template.cjs +14 -14
  85. package/bundled/picker-field.template.js +36 -56
  86. package/bundled/scrollIntoView.cjs +1 -1
  87. package/bundled/scrollIntoView.js +4 -1
  88. package/bundled/text-field.cjs +1 -1
  89. package/bundled/text-field.js +1 -1
  90. package/bundled/time-selection-picker.template.cjs +12 -12
  91. package/bundled/time-selection-picker.template.js +16 -12
  92. package/bundled/trapped-focus.cjs +1 -0
  93. package/bundled/trapped-focus.js +26 -0
  94. package/bundled/vivid-element.cjs +4 -4
  95. package/bundled/vivid-element.js +529 -492
  96. package/calendar/definition.cjs +2 -0
  97. package/calendar/definition.js +2 -0
  98. package/calendar/index.cjs +13 -13
  99. package/calendar/index.js +174 -144
  100. package/checkbox/definition.cjs +1 -0
  101. package/checkbox/definition.js +1 -0
  102. package/color-picker/definition.cjs +213 -112
  103. package/color-picker/definition.js +213 -112
  104. package/color-picker/index.cjs +104 -75
  105. package/color-picker/index.js +417 -326
  106. package/combobox/definition.cjs +17 -6
  107. package/combobox/definition.js +17 -6
  108. package/combobox/index.cjs +14 -9
  109. package/combobox/index.js +54 -42
  110. package/contextual-help/index.cjs +1 -1
  111. package/contextual-help/index.js +1 -1
  112. package/custom-elements.json +6976 -484
  113. package/data-grid/definition.cjs +105 -7
  114. package/data-grid/definition.js +105 -7
  115. package/data-grid/index.cjs +52 -38
  116. package/data-grid/index.js +313 -242
  117. package/date-picker/index.cjs +1 -1
  118. package/date-picker/index.js +2 -2
  119. package/date-range-picker/definition.cjs +2 -0
  120. package/date-range-picker/definition.js +2 -0
  121. package/date-range-picker/index.cjs +1 -1
  122. package/date-range-picker/index.js +7 -3
  123. package/date-time-picker/index.cjs +1 -1
  124. package/date-time-picker/index.js +2 -2
  125. package/dial-pad/definition.cjs +148 -0
  126. package/dial-pad/definition.js +148 -0
  127. package/dial-pad/index.cjs +27 -20
  128. package/dial-pad/index.js +202 -101
  129. package/dialog/definition.cjs +1 -0
  130. package/dialog/definition.js +1 -0
  131. package/dialog/index.cjs +1 -1
  132. package/dialog/index.js +1 -0
  133. package/divider/index.cjs +1 -1
  134. package/divider/index.js +1 -1
  135. package/fab/definition.cjs +1 -0
  136. package/fab/definition.js +1 -0
  137. package/fab/index.cjs +1 -1
  138. package/fab/index.js +1 -0
  139. package/file-picker/definition.cjs +7 -2
  140. package/file-picker/definition.js +7 -2
  141. package/file-picker/index.cjs +6 -6
  142. package/file-picker/index.js +82 -73
  143. package/icon/definition.cjs +66 -41
  144. package/icon/definition.js +67 -42
  145. package/index.cjs +21 -0
  146. package/index.js +1 -1
  147. package/lib/color-picker/color-picker.d.ts +390 -12
  148. package/lib/color-picker/locale.d.ts +4 -0
  149. package/lib/data-grid/locale.d.ts +5 -0
  150. package/lib/date-picker/date-picker.d.ts +38 -38
  151. package/lib/date-range-picker/date-range-picker.d.ts +20 -20
  152. package/lib/date-time-picker/date-time-picker.d.ts +40 -40
  153. package/lib/dial-pad/dial-pad.d.ts +1 -0
  154. package/lib/icon/icon.d.ts +1 -1
  155. package/lib/menu/menu.d.ts +4 -4
  156. package/lib/rich-text-editor/definition.d.ts +3 -2
  157. package/lib/rich-text-editor/locale.d.ts +29 -3
  158. package/lib/rich-text-editor/popover.d.ts +19 -0
  159. package/lib/rich-text-editor/rich-text-editor.d.ts +16 -45
  160. package/lib/rich-text-editor/rich-text-editor.template.d.ts +2 -2
  161. package/lib/rich-text-editor/rte/config.d.ts +18 -0
  162. package/lib/rich-text-editor/rte/document.d.ts +28 -0
  163. package/lib/rich-text-editor/rte/exports.d.ts +23 -0
  164. package/lib/rich-text-editor/rte/feature.d.ts +46 -0
  165. package/lib/rich-text-editor/rte/features/internal/basic-text-blocks.d.ts +33 -0
  166. package/lib/rich-text-editor/rte/features/internal/foreign-html.d.ts +11 -0
  167. package/lib/rich-text-editor/rte/features/internal/history.d.ts +10 -0
  168. package/lib/rich-text-editor/rte/features/internal/text-style.d.ts +18 -0
  169. package/lib/rich-text-editor/rte/html-parser.d.ts +24 -0
  170. package/lib/rich-text-editor/rte/html-serializer.d.ts +30 -0
  171. package/lib/rich-text-editor/rte/instance.d.ts +57 -0
  172. package/lib/rich-text-editor/rte/utils/default-textblock.d.ts +2 -0
  173. package/lib/rich-text-editor/rte/utils/impl.d.ts +1 -0
  174. package/lib/rich-text-editor/rte/utils/textblock-attrs.d.ts +29 -0
  175. package/lib/rich-text-editor/rte/utils/textblock-marks.d.ts +10 -0
  176. package/lib/rich-text-editor/rte/utils/ui.d.ts +109 -0
  177. package/lib/simple-color-picker/simple-color-picker.d.ts +6 -5
  178. package/lib/text-area/text-area.d.ts +1 -1
  179. package/lib/text-field/text-field.d.ts +1 -1
  180. package/lib/time-picker/time-picker.d.ts +20 -20
  181. package/lib/toggletip/toggletip.d.ts +4 -4
  182. package/lib/tooltip/tooltip.d.ts +4 -4
  183. package/locales/de-DE.cjs +58 -7
  184. package/locales/de-DE.js +58 -7
  185. package/locales/en-GB.cjs +60 -9
  186. package/locales/en-GB.js +60 -9
  187. package/locales/en-US.cjs +60 -9
  188. package/locales/en-US.js +60 -9
  189. package/locales/ja-JP.cjs +59 -8
  190. package/locales/ja-JP.js +59 -8
  191. package/locales/zh-CN.cjs +58 -7
  192. package/locales/zh-CN.js +58 -7
  193. package/menu/definition.cjs +1 -0
  194. package/menu/definition.js +1 -0
  195. package/number-field/definition.cjs +5 -3
  196. package/number-field/definition.js +5 -3
  197. package/number-field/index.cjs +5 -3
  198. package/number-field/index.js +34 -32
  199. package/option/index.cjs +1 -1
  200. package/option/index.js +1 -1
  201. package/package.json +76 -62
  202. package/pagination/definition.cjs +2 -0
  203. package/pagination/definition.js +2 -0
  204. package/pagination/index.cjs +1 -1
  205. package/pagination/index.js +2 -0
  206. package/progress-ring/index.cjs +1 -1
  207. package/progress-ring/index.js +1 -1
  208. package/radio/definition.cjs +4 -0
  209. package/radio/definition.js +4 -0
  210. package/radio/index.cjs +1 -1
  211. package/radio/index.js +1 -1
  212. package/radio-group/index.cjs +1 -1
  213. package/radio-group/index.js +1 -1
  214. package/range-slider/definition.cjs +2 -1
  215. package/range-slider/definition.js +2 -1
  216. package/range-slider/index.cjs +1 -1
  217. package/range-slider/index.js +3 -1
  218. package/rich-text-editor/definition.cjs +17942 -1074
  219. package/rich-text-editor/definition.js +17926 -1079
  220. package/rich-text-editor/index.cjs +29 -130
  221. package/rich-text-editor/index.js +5565 -2474
  222. package/searchable-select/definition.cjs +6 -2
  223. package/searchable-select/definition.js +6 -2
  224. package/searchable-select/index.cjs +1 -1
  225. package/searchable-select/index.js +14 -10
  226. package/select/definition.cjs +22 -4
  227. package/select/definition.js +22 -4
  228. package/selectable-box/index.cjs +1 -1
  229. package/selectable-box/index.js +1 -1
  230. package/shared/color-picker/base-color-picker.d.ts +2 -1
  231. package/shared/patterns/anchored.d.ts +8 -8
  232. package/shared/patterns/char-count/char-count.d.ts +1 -1
  233. package/shared/patterns/localized.d.ts +386 -0
  234. package/shared/picker-field/mixins/calendar-picker.d.ts +10 -10
  235. package/shared/picker-field/mixins/calendar-picker.template.d.ts +10 -10
  236. package/shared/picker-field/mixins/min-max-calendar-picker.d.ts +20 -20
  237. package/shared/picker-field/mixins/single-date-picker.d.ts +28 -28
  238. package/shared/picker-field/mixins/single-value-picker.d.ts +8 -8
  239. package/shared/picker-field/mixins/time-selection-picker.d.ts +20 -20
  240. package/shared/picker-field/mixins/time-selection-picker.template.d.ts +20 -20
  241. package/shared/utils/promise.d.ts +7 -0
  242. package/simple-color-picker/definition.cjs +11 -6
  243. package/simple-color-picker/definition.js +11 -6
  244. package/simple-color-picker/index.cjs +6 -6
  245. package/simple-color-picker/index.js +44 -39
  246. package/slider/definition.cjs +7 -1
  247. package/slider/definition.js +7 -1
  248. package/styles/core/all.css +5 -1
  249. package/styles/core/theme.css +5 -1
  250. package/styles/core/typography.css +1 -1
  251. package/styles/tokens/theme-dark.css +4 -4
  252. package/styles/tokens/theme-light.css +4 -4
  253. package/styles/tokens/vivid-2-compat.css +1 -1
  254. package/switch/definition.cjs +1 -0
  255. package/switch/definition.js +1 -0
  256. package/switch/index.cjs +1 -1
  257. package/switch/index.js +1 -0
  258. package/tabs/definition.cjs +2 -0
  259. package/tabs/definition.js +2 -0
  260. package/tabs/index.cjs +1 -1
  261. package/tabs/index.js +2 -0
  262. package/tag/definition.cjs +34 -14
  263. package/tag/definition.js +34 -14
  264. package/tag/index.cjs +25 -12
  265. package/tag/index.js +64 -47
  266. package/tag-group/definition.cjs +1 -2
  267. package/tag-group/definition.js +1 -2
  268. package/tag-group/index.cjs +1 -1
  269. package/tag-group/index.js +11 -12
  270. package/text-area/definition.cjs +13 -7
  271. package/text-area/definition.js +13 -7
  272. package/text-area/index.cjs +6 -6
  273. package/text-area/index.js +20 -14
  274. package/text-field/definition.cjs +16 -6
  275. package/text-field/definition.js +16 -6
  276. package/time-picker/index.cjs +1 -1
  277. package/time-picker/index.js +1 -1
  278. package/toggletip/definition.cjs +5 -1
  279. package/toggletip/definition.js +5 -1
  280. package/toggletip/index.cjs +1 -1
  281. package/toggletip/index.js +1 -1
  282. package/tooltip/definition.cjs +6 -3
  283. package/tooltip/definition.js +6 -3
  284. package/tooltip/index.cjs +1 -1
  285. package/tooltip/index.js +1 -1
  286. package/tree-view/definition.cjs +28 -6
  287. package/tree-view/definition.js +28 -6
  288. package/tree-view/index.cjs +1 -1
  289. package/tree-view/index.js +28 -6
  290. package/unbundled/_commonjsHelpers.cjs +0 -26
  291. package/unbundled/_commonjsHelpers.js +1 -26
  292. package/unbundled/attribute-binding-behaviour.cjs +1 -0
  293. package/unbundled/attribute-binding-behaviour.js +1 -0
  294. package/unbundled/base-color-picker.cjs +45 -21
  295. package/unbundled/base-color-picker.js +45 -21
  296. package/unbundled/base-progress.cjs +3 -0
  297. package/unbundled/base-progress.js +3 -0
  298. package/unbundled/button.cjs +14 -10
  299. package/unbundled/button.js +14 -10
  300. package/unbundled/calendar-picker.template.cjs +3 -1
  301. package/unbundled/calendar-picker.template.js +3 -1
  302. package/unbundled/definition.cjs +1 -0
  303. package/unbundled/definition.js +1 -0
  304. package/unbundled/definition2.cjs +4 -1
  305. package/unbundled/definition2.js +4 -1
  306. package/unbundled/definition3.cjs +1 -0
  307. package/unbundled/definition3.js +1 -0
  308. package/unbundled/definition4.cjs +1 -0
  309. package/unbundled/definition4.js +1 -0
  310. package/unbundled/definition5.cjs +3 -2
  311. package/unbundled/definition5.js +4 -3
  312. package/unbundled/delegates-aria.cjs +1 -0
  313. package/unbundled/delegates-aria.js +1 -0
  314. package/unbundled/form-associated.cjs +4 -0
  315. package/unbundled/form-associated.js +4 -0
  316. package/unbundled/listbox.cjs +16 -1
  317. package/unbundled/listbox.js +16 -1
  318. package/unbundled/localized.cjs +36 -0
  319. package/unbundled/localized.js +37 -2
  320. package/unbundled/mixins.cjs +2 -0
  321. package/unbundled/mixins.js +2 -0
  322. package/unbundled/picker-field.template.cjs +3 -35
  323. package/unbundled/picker-field.template.js +3 -34
  324. package/unbundled/scrollIntoView.cjs +1 -0
  325. package/unbundled/scrollIntoView.js +1 -0
  326. package/unbundled/text-field.cjs +1 -1
  327. package/unbundled/text-field.js +1 -1
  328. package/unbundled/time-selection-picker.template.cjs +5 -1
  329. package/unbundled/time-selection-picker.template.js +5 -1
  330. package/unbundled/trapped-focus.cjs +37 -0
  331. package/unbundled/trapped-focus.js +34 -0
  332. package/unbundled/vivid-element.cjs +1 -1
  333. package/unbundled/vivid-element.js +1 -1
  334. package/video-player/definition.cjs +54 -44
  335. package/video-player/definition.js +50 -40
  336. package/video-player/index.cjs +28 -28
  337. package/video-player/index.js +1448 -1442
  338. package/visually-hidden/index.cjs +1 -1
  339. package/visually-hidden/index.js +1 -1
  340. package/vivid.api.json +6463 -6099
  341. package/bundled/_has.cjs +0 -1
  342. package/bundled/_has.js +0 -34
  343. package/lib/rich-text-editor/facades/prose-mirror-vivid.schema.d.ts +0 -4
  344. package/lib/rich-text-editor/facades/vivid-prose-mirror.facade.d.ts +0 -18
  345. package/lib/rich-text-editor/image-placeholder/definition.d.ts +0 -2
  346. package/lib/rich-text-editor/image-placeholder/image-placeholder.d.ts +0 -7
  347. package/lib/rich-text-editor/image-placeholder/image-placeholder.template.d.ts +0 -4
  348. package/lib/rich-text-editor/menubar/consts.d.ts +0 -18
  349. package/lib/rich-text-editor/menubar/definition.d.ts +0 -2
  350. package/lib/rich-text-editor/menubar/menubar.d.ts +0 -386
  351. package/lib/rich-text-editor/menubar/menubar.template.d.ts +0 -4
@@ -1,44 +1,43 @@
1
- import { P as C, p as A } from "./definition9.js";
2
- import { i as D } from "./definition2.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";
1
+ import { P as D, p as H } from "./definition9.js";
2
+ import { i as E } from "./definition2.js";
3
+ import { L as V, l as F } from "./definition12.js";
4
+ import { U as z, O as u, o as p, a as c, v as T, h, c as W, d as L } from "./vivid-element.js";
5
+ import { a as P, f as B } from "./mixins.js";
6
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";
7
+ import { H as N, a as M } from "./host-semantics.js";
8
+ import { F as K } from "./form-associated.js";
9
9
  import { i as v } from "./numbers.js";
10
- import { W as M } from "./with-contextual-help.js";
10
+ import { W as R } from "./with-contextual-help.js";
11
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";
17
- import { c as Q } from "./definition3.js";
18
- import { h as Y } from "./index.js";
12
+ import { W as U } from "./with-success-text.js";
13
+ import { F as q } from "./form-element.js";
14
+ import { A as X, a as G, I as J } from "./affix.js";
15
+ import { u as Q } 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 Y } from "./key-codes.js";
17
+ import { c as Z } from "./definition3.js";
18
+ import { h as ee } from "./index.js";
19
19
  import { r as b } from "./ref.js";
20
20
  import { w as f } from "./when.js";
21
21
  import { s as x } from "./slotted.js";
22
- import { c as Z } from "./class-names.js";
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}";
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;
22
+ import { c as te } from "./class-names.js";
23
+ var oe = Object.defineProperty, ae = Object.getOwnPropertyDescriptor, l = (r, e, t, o) => {
24
+ for (var a = o > 1 ? void 0 : o ? ae(e, t) : e, n = r.length - 1, s; n >= 0; n--)
25
+ (s = r[n]) && (a = (o ? s(e, t, a) : s(a)) || a);
26
+ return o && a && oe(e, t, a), a;
28
27
  };
29
- class i extends W(
30
- M(
28
+ class i extends P(
29
+ R(
31
30
  j(
32
- K(
33
- R(
34
- P(U(N(S)))
31
+ U(
32
+ q(
33
+ N(X(K(S)))
35
34
  )
36
35
  )
37
36
  )
38
37
  )
39
38
  ) {
40
39
  constructor() {
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;
40
+ super(...arguments), this.proxy = document.createElement("select"), this.activeIndex = -1, this.rangeStartIndex = -1, this.open = !1, this.listboxId = Q("listbox-"), this.maxHeight = 0, this.fixedDropdown = !1, this._feedbackWrapper = null;
42
41
  }
43
42
  /**
44
43
  * Returns the last checked option.
@@ -82,6 +81,7 @@ class i extends W(
82
81
  */
83
82
  checkActiveIndex() {
84
83
  const e = this.activeOption;
84
+ /* v8 ignore else -- @preserve */
85
85
  e && (e.checked = !0);
86
86
  }
87
87
  /**
@@ -95,9 +95,14 @@ class i extends W(
95
95
  * @internal
96
96
  */
97
97
  checkFirstOption(e) {
98
- e ? (this.rangeStartIndex === -1 && (this.rangeStartIndex = this.activeIndex + 1), this.options.forEach((t, o) => {
99
- t.checked = v(o, this.rangeStartIndex);
100
- })) : this.uncheckAllOptions(), this.activeIndex = 0, this.checkActiveIndex();
98
+ if (e) {
99
+ /* v8 ignore else -- @preserve */
100
+ this.rangeStartIndex === -1 && (this.rangeStartIndex = this.activeIndex + 1), this.options.forEach((t, o) => {
101
+ t.checked = v(o, this.rangeStartIndex);
102
+ });
103
+ } else
104
+ this.uncheckAllOptions();
105
+ this.activeIndex = 0, this.checkActiveIndex();
101
106
  }
102
107
  /**
103
108
  * Decrements the active index and sets the matching option as checked.
@@ -110,9 +115,14 @@ class i extends W(
110
115
  * @internal
111
116
  */
112
117
  checkLastOption(e) {
113
- e ? (this.rangeStartIndex === -1 && (this.rangeStartIndex = this.activeIndex), this.options.forEach((t, o) => {
114
- t.checked = v(o, this.rangeStartIndex, this.length);
115
- })) : this.uncheckAllOptions(), this.activeIndex = this.length - 1, this.checkActiveIndex();
118
+ if (e) {
119
+ /* v8 ignore else -- @preserve */
120
+ this.rangeStartIndex === -1 && (this.rangeStartIndex = this.activeIndex), this.options.forEach((t, o) => {
121
+ t.checked = v(o, this.rangeStartIndex, this.length);
122
+ });
123
+ } else
124
+ this.uncheckAllOptions();
125
+ this.activeIndex = this.length - 1, this.checkActiveIndex();
116
126
  }
117
127
  /**
118
128
  * Increments the active index and marks the matching option as checked.
@@ -125,9 +135,14 @@ class i extends W(
125
135
  * @internal
126
136
  */
127
137
  checkNextOption(e) {
128
- e ? (this.rangeStartIndex === -1 && (this.rangeStartIndex = this.activeIndex), this.options.forEach((t, o) => {
129
- t.checked = v(o, this.rangeStartIndex, this.activeIndex + 1);
130
- })) : this.uncheckAllOptions(), this.activeIndex += this.activeIndex < this.length - 1 ? 1 : 0, this.checkActiveIndex();
138
+ if (e) {
139
+ /* v8 ignore else -- @preserve */
140
+ this.rangeStartIndex === -1 && (this.rangeStartIndex = this.activeIndex), this.options.forEach((t, o) => {
141
+ t.checked = v(o, this.rangeStartIndex, this.activeIndex + 1);
142
+ });
143
+ } else
144
+ this.uncheckAllOptions();
145
+ this.activeIndex += this.activeIndex < this.length - 1 ? 1 : 0, this.checkActiveIndex();
131
146
  }
132
147
  /**
133
148
  * Decrements the active index and marks the matching option as checked.
@@ -140,9 +155,16 @@ class i extends W(
140
155
  * @internal
141
156
  */
142
157
  checkPreviousOption(e) {
143
- e ? (this.rangeStartIndex === -1 && (this.rangeStartIndex = this.activeIndex), this.checkedOptions.length === 1 && (this.rangeStartIndex += 1), this.options.forEach((t, o) => {
144
- t.checked = v(o, this.activeIndex, this.rangeStartIndex);
145
- })) : this.uncheckAllOptions(), this.activeIndex -= this.activeIndex > 0 ? 1 : 0, this.checkActiveIndex();
158
+ if (e) {
159
+ /* v8 ignore else -- @preserve */
160
+ this.rangeStartIndex === -1 && (this.rangeStartIndex = this.activeIndex);
161
+ /* v8 ignore else -- @preserve */
162
+ this.checkedOptions.length === 1 && (this.rangeStartIndex += 1), this.options.forEach((t, o) => {
163
+ t.checked = v(o, this.activeIndex, this.rangeStartIndex);
164
+ });
165
+ } else
166
+ this.uncheckAllOptions();
167
+ this.activeIndex -= this.activeIndex > 0 ? 1 : 0, this.checkActiveIndex();
146
168
  }
147
169
  /**
148
170
  * @internal
@@ -161,6 +183,7 @@ class i extends W(
161
183
  focusinHandler(e) {
162
184
  if (!this.multiple)
163
185
  return super.focusinHandler(e);
186
+ /* v8 ignore else -- @preserve */
164
187
  !this.shouldSkipFocus && e.target === e.currentTarget && (this.uncheckAllOptions(), this.activeIndex === -1 && (this.activeIndex = this.firstSelectedOptionIndex !== -1 ? this.firstSelectedOptionIndex : 0), this.checkActiveIndex(), this.setSelectedOptions(), this.focusAndScrollOptionIntoView()), this.shouldSkipFocus = !1;
165
188
  }
166
189
  /**
@@ -173,6 +196,7 @@ class i extends W(
173
196
  super.setSelectedOptions();
174
197
  return;
175
198
  }
199
+ /* v8 ignore else -- @preserve */
176
200
  this.$fastController.isConnected && this.options && (this.selectedOptions = this.options.filter((e) => e.selected), this.focusAndScrollOptionIntoView());
177
201
  }
178
202
  /**
@@ -198,6 +222,7 @@ class i extends W(
198
222
  super.typeaheadBufferChanged(e, t);
199
223
  return;
200
224
  }
225
+ /* v8 ignore if -- @preserve */
201
226
  if (this.$fastController.isConnected) {
202
227
  const o = this.getTypeaheadMatches(), a = this.options.indexOf(o[0]);
203
228
  a > -1 && (this.activeIndex = a, this.uncheckAllOptions(), this.checkActiveIndex()), this.typeaheadExpired = !1;
@@ -214,7 +239,9 @@ class i extends W(
214
239
  * @internal
215
240
  */
216
241
  uncheckAllOptions(e = !1) {
217
- this.options.forEach((t) => t.checked = !1), e || (this.rangeStartIndex = -1);
242
+ this.options.forEach((t) => t.checked = !1);
243
+ /* v8 ignore else -- @preserve */
244
+ e || (this.rangeStartIndex = -1);
218
245
  }
219
246
  /**
220
247
  * Sets focus when the open property changes.
@@ -225,7 +252,7 @@ class i extends W(
225
252
  if (!this.collapsible)
226
253
  return;
227
254
  if (this.open) {
228
- this.focusAndScrollOptionIntoView(), this.indexWhenOpened = this.selectedIndex, V.enqueue(() => this.focus());
255
+ this.focusAndScrollOptionIntoView(), this.indexWhenOpened = this.selectedIndex, z.enqueue(() => this.focus());
229
256
  return;
230
257
  }
231
258
  const o = e === !0 && t === !1, a = this.indexWhenOpened !== this.selectedIndex;
@@ -238,8 +265,8 @@ class i extends W(
238
265
  * @internal
239
266
  */
240
267
  valueChanged(e, t) {
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());
268
+ const o = this.options.findIndex((s) => s.value === t), a = this._validSelectedIndex(o), n = this.options[a]?.value ?? "";
269
+ this.selectedIndex !== a && (this.selectedIndex = a), t === n && (super.valueChanged(e, t), this.updateDisplayValue());
243
270
  }
244
271
  /**
245
272
  * Sets the value and display value to match the first selected option.
@@ -294,6 +321,7 @@ class i extends W(
294
321
  this.focus();
295
322
  return;
296
323
  }
324
+ /* v8 ignore else -- @preserve */
297
325
  this.options.includes(t) || (this.open = !1, this.indexWhenOpened !== this.selectedIndex && this.updateValue(!0));
298
326
  }
299
327
  /**
@@ -323,7 +351,9 @@ class i extends W(
323
351
  multipleChanged(e, t) {
324
352
  this.options.forEach((o) => {
325
353
  o.checked = t ? !1 : void 0;
326
- }), this.setSelectedOptions(), this.proxy && (this.proxy.multiple = t);
354
+ }), this.setSelectedOptions();
355
+ /* v8 ignore if -- @preserve */
356
+ this.proxy && (this.proxy.multiple = t);
327
357
  }
328
358
  /**
329
359
  * Updates the selectedness of each option when the list of selected options changes.
@@ -335,8 +365,8 @@ class i extends W(
335
365
  */
336
366
  selectedOptionsChanged(e, t) {
337
367
  super.selectedOptionsChanged(e, t), this.options.forEach((o, a) => {
338
- const r = this.proxy.options.item(a);
339
- r && (r.selected = o.selected);
368
+ const n = this.proxy.options.item(a);
369
+ n && (n.selected = o.selected);
340
370
  });
341
371
  }
342
372
  /**
@@ -345,6 +375,7 @@ class i extends W(
345
375
  * @internal
346
376
  */
347
377
  setProxyOptions() {
378
+ /* v8 ignore else -- @preserve */
348
379
  this.proxy instanceof HTMLSelectElement && this.options && (this.proxy.length = 0, this.options.forEach((e) => {
349
380
  const t = e.proxy || (e instanceof HTMLOptionElement ? e.cloneNode() : null);
350
381
  t && this.proxy.options.add(t);
@@ -384,12 +415,16 @@ class i extends W(
384
415
  this.uncheckAllOptions(), this.checkActiveIndex();
385
416
  return;
386
417
  }
387
- case g:
388
- if (e.preventDefault(), this.typeaheadExpired) {
418
+ case g: {
419
+ e.preventDefault();
420
+ /* v8 ignore else -- @preserve */
421
+ if (this.typeaheadExpired) {
389
422
  this.toggleSelectedForAllCheckedOptions();
390
423
  return;
391
424
  }
425
+ }
392
426
  default: {
427
+ /* v8 ignore else -- @preserve */
393
428
  t.length === 1 && this.handleTypeAhead(`${t}`);
394
429
  return;
395
430
  }
@@ -413,7 +448,7 @@ class i extends W(
413
448
  e.preventDefault();
414
449
  break;
415
450
  }
416
- case J: {
451
+ case Y: {
417
452
  e.preventDefault(), this.open = !this.open;
418
453
  break;
419
454
  }
@@ -449,9 +484,9 @@ class i extends W(
449
484
  o
450
485
  );
451
486
  if (a === null && o === -1 && !this.placeholder) {
452
- const r = this.getNextSelectableIndex(0);
453
- if (r !== -1)
454
- return r;
487
+ const n = this.getNextSelectableIndex(0);
488
+ if (n !== -1)
489
+ return n;
455
490
  }
456
491
  return a;
457
492
  }
@@ -486,7 +521,7 @@ l([
486
521
  c({ attribute: "open", mode: "boolean" })
487
522
  ], i.prototype, "open", 2);
488
523
  l([
489
- F
524
+ T
490
525
  ], i.prototype, "collapsible", 1);
491
526
  l([
492
527
  p
@@ -518,71 +553,74 @@ l([
518
553
  l([
519
554
  p
520
555
  ], i.prototype, "metaSlottedContent", 2);
521
- const ae = ({
522
- shape: n,
556
+ const re = ".label-wrapper{display:flex;flex-direction:row;align-items:center;gap:var(--label-wrapper-gap, 4px)}.label-wrapper[hidden]{display:none}.label:not(slot),.label::slotted(label){flex:0 1 auto}.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);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}.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}:host(:focus-within) .control:not(.has-activedescendant){--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))}:host(:not([multiple])) ::slotted([data-vvd-component=option][current-selected]){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}", ne = ({
557
+ shape: r,
523
558
  disabled: e,
524
559
  appearance: t,
525
560
  metaSlottedContent: o,
526
561
  errorValidationMessage: a,
527
- successText: r,
562
+ successText: n,
528
563
  placeholder: s,
529
564
  value: $,
530
- scale: m
531
- }) => Z(
565
+ scale: m,
566
+ _activeDescendant: C,
567
+ open: A
568
+ }) => te(
569
+ ["has-activedescendant", !!C && A],
532
570
  ["disabled", e],
533
571
  [`appearance-${t}`, !!t],
534
- [`shape-${n}`, !!n],
572
+ [`shape-${r}`, !!r],
535
573
  ["has-meta", !!o?.length],
536
574
  ["error", !!a],
537
- ["success", !!r],
575
+ ["success", !!n],
538
576
  ["shows-placeholder", !!s && !$],
539
577
  [`size-${m}`, !!m]
540
578
  );
541
- function ne() {
579
+ function ie() {
542
580
  return h` <label
543
- for="${(n) => n.multiple ? null : "control"}"
581
+ for="${(r) => r.multiple ? null : "control"}"
544
582
  class="label"
545
583
  id="label"
546
584
  >
547
- ${(n) => n.label}
585
+ ${(r) => r.label}
548
586
  </label>`;
549
587
  }
550
- function re(n) {
551
- const e = n.tagFor(H);
588
+ function le(r) {
589
+ const e = r.tagFor(V);
552
590
  return h`
553
591
  <${e} text="${(t) => t.placeholder}" hidden disabled>
554
592
  </${e}>`;
555
593
  }
556
- function ie(n) {
557
- const e = q(n), t = Q(n);
594
+ function se(r) {
595
+ const e = G(r), t = Z(r);
558
596
  return h` <div
559
- class="control ${ae}"
597
+ class="control ${ne}"
560
598
  ${b("_anchor")}
561
599
  id="control"
562
600
  ?disabled="${(o) => o.disabled}"
563
601
  >
564
602
  <div class="selected-value">
565
- ${(o) => e(o.icon, X.Slot)}
603
+ ${(o) => e(o.icon, J.Slot)}
566
604
  <span class="text">${(o) => o.displayValue}</span>
567
605
  <slot name="meta" ${x("metaSlottedContent")}></slot>
568
606
  </div>
569
607
  ${t}
570
608
  </div>`;
571
609
  }
572
- function le(n) {
573
- return n.open && n.fixedDropdown ? `--_select-fixed-width: ${Math.round(n.getBoundingClientRect().width)}px` : null;
610
+ function ce(r) {
611
+ return r.open && r.fixedDropdown ? `--_select-fixed-width: ${Math.round(r.getBoundingClientRect().width)}px` : null;
574
612
  }
575
- function se(n) {
576
- const e = n.tagFor(C);
613
+ function pe(r) {
614
+ const e = r.tagFor(D);
577
615
  return h`
578
616
  <div class="label-wrapper" ?hidden=${(t) => !t.label && !t._hasContextualHelp}>
579
- ${f((t) => t.label, ne())}
617
+ ${f((t) => t.label, ie())}
580
618
  <slot name="contextual-help" ${x("_contextualHelpSlottedContent")}></slot>
581
619
  </div>
582
620
  <div class="control-wrapper">
583
- ${f((t) => !t.multiple, ie(n))}
621
+ ${f((t) => !t.multiple, se(r))}
584
622
  <${e} class="popup"
585
- style="${le}"
623
+ style="${ce}"
586
624
  ?open="${(t) => t.collapsible ? t.open : !0}"
587
625
  :anchor="${(t) => t._anchor}"
588
626
  placement="bottom-start"
@@ -596,7 +634,7 @@ function se(n) {
596
634
  ?disabled="${(t) => t.disabled}"
597
635
  ?hidden="${(t) => t.collapsible ? !t.open : !1}"
598
636
  ${b("listbox")}>
599
- ${f((t) => t.placeholder, re(n))}
637
+ ${f((t) => t.placeholder, le(r))}
600
638
  <slot
601
639
  ${x({
602
640
  filter: S.slottedOptionFilter,
@@ -609,13 +647,13 @@ function se(n) {
609
647
  </div>
610
648
  `;
611
649
  }
612
- function d(n) {
613
- return (e, t) => t.event.composedPath().includes(e._feedbackWrapper) ? !0 : n(e, t.event);
650
+ function d(r) {
651
+ return (e, t) => t.event.composedPath().includes(e._feedbackWrapper) ? !0 : r(e, t.event);
614
652
  }
615
- const ce = (n) => h`
653
+ const de = (r) => h`
616
654
  <template
617
655
  class="base"
618
- ${B({
656
+ ${M({
619
657
  role: "combobox",
620
658
  ariaLabel: (e) => e.ariaLabel ?? e.label,
621
659
  ariaHasPopup: (e) => e.collapsible ? "listbox" : "false",
@@ -623,7 +661,7 @@ const ce = (n) => h`
623
661
  ariaDisabled: (e) => e.disabled
624
662
  })}
625
663
  aria-controls="${(e) => e.listboxId}"
626
- aria-activedescendant="${(e) => e._activeDescendant}"
664
+ aria-activedescendant="${(e) => e.open ? e._activeDescendant : null}"
627
665
  aria-describedby="${(e) => e._feedbackDescribedBy}"
628
666
  tabindex="${(e) => e.disabled ? null : "0"}"
629
667
  @click="${d((e, t) => e.clickHandler(t))}"
@@ -631,32 +669,32 @@ const ce = (n) => h`
631
669
  @focusout="${d(
632
670
  (e, t) => e.focusoutHandler(t)
633
671
  )}"
634
- @keydown="${d((e, t) => (e.open && Y(t), e.keydownHandler(t)))}"
672
+ @keydown="${d((e, t) => (e.open && ee(t), e.keydownHandler(t)))}"
635
673
  @mousedown="${d(
636
674
  (e, t) => e.mousedownHandler(t)
637
675
  )}"
638
676
  >
639
- ${se(n)}
677
+ ${pe(r)}
640
678
  <div class="feedback-wrapper" ${b("_feedbackWrapper")}>
641
- ${(e) => e._getFeedbackTemplate(n)}
679
+ ${(e) => e._getFeedbackTemplate(r)}
642
680
  </div>
643
681
  </template>
644
- `, pe = T(
682
+ `, he = L(
645
683
  "select",
646
684
  i,
647
- ce,
685
+ de,
648
686
  [
649
- A,
650
- D,
687
+ H,
651
688
  E,
652
- L
689
+ F,
690
+ B
653
691
  ],
654
692
  {
655
- styles: ee
693
+ styles: re
656
694
  }
657
- ), Ve = z(pe);
695
+ ), ze = W(he);
658
696
  export {
659
697
  i as S,
660
- Ve as r,
661
- pe as s
698
+ ze as r,
699
+ he as s
662
700
  };
@@ -1,4 +1,4 @@
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">
1
+ "use strict";const e=require("./vivid-element.cjs"),p=require("./definition14.cjs"),z=require("./class-names.cjs"),h=require("./when.cjs"),y=":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}",g="https://icon.resources.vonage.com",u="4.6.9",f={toView(o){return o===void 0?null:o.toString()},fromView(o){if(typeof o=="string"&&(o=parseFloat(o.toString())),typeof o=="number")return isNaN(o)||!isFinite(o)?void 0:o}},d=`<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">
@@ -9,16 +9,15 @@
9
9
  </animateTransform>
10
10
  </g>
11
11
  </g>
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`
12
+ </svg>`;var b=Object.defineProperty,v=(o,t,n,i)=>{for(var r=void 0,a=o.length-1,c;a>=0;a--)(c=o[a])&&(r=c(t,n,r)||r);return r&&b(t,n,r),r};const _=500,k=2e3,w=(o,t)=>[g,`v${t}`,o].join("/"),x=({ok:o,headers:t})=>{if(!o||t.get("content-type")!=="image/svg+xml")throw new Error("Something went wrong")},C=o=>(x(o),o.text()),E=(o,t)=>fetch(w(`${o}.svg`,u),{signal:t}).then(C),L=o=>(o??"").trim(),l=new Map,I=(o,t)=>{const n=L(o);if(!n)return Promise.resolve("");const i=l.get(n);if(i&&!i.signal?.aborted)return i.promise;const r=E(n,t).then(a=>{const c=l.get(n);if(c&&c.promise===r&&t.aborted)throw l.delete(n),t.reason??new DOMException("Aborted","AbortError");return a}).catch(a=>{const c=l.get(n);throw c&&c.promise===r&&l.delete(n),a});return l.set(n,{promise:r,signal:t}),r};class s extends e.VividElement{constructor(){super(...arguments),this.iconLoaded=!1,this.#o=0,this.#t=null}#o;#t;async nameChanged(){const t=++this.#o;this.#t&&this.#t.abort(),this.#t=new AbortController,this._svg=void 0,this.iconLoaded=!1;let n=setTimeout(()=>{/* v8 ignore else -- @preserve */this.#o===t&&(this._svg=d,n=setTimeout(()=>{/* v8 ignore else -- @preserve */this.#o===t&&this._svg===d&&(this._svg=void 0)},k))},_);try{const i=await I(this.name,this.#t.signal);/* v8 ignore else -- @preserve */this.#o===t&&(this._svg=i)}catch{this.#o===t&&(this._svg=void 0)}finally{this.#o===t&&(clearTimeout(n),this.iconLoaded=!0)}}}v([e.attr],s.prototype,"connotation");v([e.attr({converter:f})],s.prototype,"size");v([e.observable],s.prototype,"_svg");v([e.observable],s.prototype,"iconLoaded");v([e.attr],s.prototype,"label");v([e.attr],s.prototype,"name");const $=({connotation:o,size:t})=>z.classNames("control",[`connotation-${o}`,!!o],[`size-${t}`,typeof t=="number"]),O=o=>{const t=o.tagFor(p.VisuallyHidden),n=i=>!i.label||i.label.trim().length===0;return e.html`
13
13
  <figure
14
- class="${V}"
15
- ?aria-hidden="${t=>e(t)}"
16
- ?aria-busy="${t=>!t?.iconLoaded}"
14
+ class="${$}"
15
+ ?aria-hidden="${i=>n(i)}"
16
+ ?aria-busy="${i=>!i?.iconLoaded}"
17
17
  >
18
18
  <slot>
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)}`)}
19
+ ${h.when(i=>i?.iconLoaded&&i?._svg,i=>e.html`${e.html.partial(i._svg)}`)}
21
20
  </slot>
22
- <${o} class="label">${t=>t?.label}</${o}>
21
+ <${t} class="label">${i=>i?.label}</${t}>
23
22
  </figure>
24
- `},_=r.defineVividComponent("icon",c,A,[h.visuallyHiddenDefinition],{styles:w}),H=r.createRegisterFunction(_);exports.Icon=c;exports.iconDefinition=_;exports.registerIcon=H;
23
+ `},m=e.defineVividComponent("icon",s,O,[p.visuallyHiddenDefinition],{styles:y}),S=e.createRegisterFunction(m);exports.Icon=s;exports.iconDefinition=m;exports.registerIcon=S;