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