@vonage/vivid 5.18.0 → 5.19.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 (559) hide show
  1. package/accordion/definition.cjs +0 -1
  2. package/accordion/definition.js +0 -1
  3. package/accordion/index.cjs +2 -2
  4. package/accordion/index.js +3 -4
  5. package/accordion-item/definition.cjs +0 -1
  6. package/accordion-item/definition.js +0 -1
  7. package/accordion-item/index.cjs +1 -1
  8. package/accordion-item/index.js +0 -2
  9. package/action-group/index.cjs +4 -4
  10. package/action-group/index.js +7 -7
  11. package/alert/definition.cjs +0 -1
  12. package/alert/definition.js +0 -1
  13. package/alert/index.cjs +5 -5
  14. package/alert/index.js +20 -21
  15. package/audio-player/definition.cjs +0 -1
  16. package/audio-player/definition.js +0 -1
  17. package/audio-player/index.cjs +13 -13
  18. package/audio-player/index.js +76 -77
  19. package/avatar/definition.cjs +0 -1
  20. package/avatar/definition.js +0 -1
  21. package/avatar/index.cjs +8 -8
  22. package/avatar/index.js +20 -21
  23. package/badge/definition.cjs +0 -1
  24. package/badge/definition.js +0 -1
  25. package/badge/index.cjs +1 -1
  26. package/badge/index.js +0 -2
  27. package/banner/definition.cjs +0 -1
  28. package/banner/definition.js +0 -1
  29. package/banner/index.cjs +4 -4
  30. package/banner/index.js +17 -18
  31. package/breadcrumb/index.cjs +2 -2
  32. package/breadcrumb/index.js +3 -3
  33. package/breadcrumb-item/definition.cjs +0 -1
  34. package/breadcrumb-item/definition.js +0 -1
  35. package/breadcrumb-item/index.cjs +5 -5
  36. package/breadcrumb-item/index.js +7 -8
  37. package/bundled/affix.cjs +2 -2
  38. package/bundled/affix.js +1 -1
  39. package/bundled/anchored.cjs +1 -1
  40. package/bundled/anchored.js +1 -1
  41. package/bundled/aria-binding-directive.cjs +1 -0
  42. package/bundled/aria-binding-directive.js +29 -0
  43. package/bundled/base-color-picker.cjs +3 -3
  44. package/bundled/base-color-picker.js +1 -1
  45. package/bundled/base-progress.cjs +1 -1
  46. package/bundled/base-progress.js +2 -2
  47. package/bundled/breadcrumb-item.cjs +1 -1
  48. package/bundled/breadcrumb-item.js +3 -3
  49. package/bundled/button.cjs +1 -1
  50. package/bundled/button.js +3 -3
  51. package/bundled/calendar-event.cjs +1 -1
  52. package/bundled/calendar-event.js +4 -4
  53. package/bundled/calendar-picker.template.cjs +20 -20
  54. package/bundled/calendar-picker.template.js +10 -10
  55. package/bundled/char-count.cjs +2 -2
  56. package/bundled/char-count.js +3 -3
  57. package/bundled/children.cjs +1 -1
  58. package/bundled/children.js +6 -6
  59. package/bundled/decorate.js +1 -1
  60. package/bundled/definition.cjs +1 -1
  61. package/bundled/definition.js +2 -2
  62. package/bundled/definition10.cjs +3 -3
  63. package/bundled/definition10.js +19 -19
  64. package/bundled/definition11.cjs +2 -2
  65. package/bundled/definition11.js +7 -7
  66. package/bundled/definition12.cjs +7 -7
  67. package/bundled/definition12.js +16 -16
  68. package/bundled/definition13.cjs +3 -3
  69. package/bundled/definition13.js +6 -6
  70. package/bundled/definition14.cjs +2 -2
  71. package/bundled/definition14.js +3 -3
  72. package/bundled/definition15.cjs +6 -6
  73. package/bundled/definition15.js +14 -14
  74. package/bundled/definition16.cjs +3 -3
  75. package/bundled/definition16.js +19 -19
  76. package/bundled/definition17.cjs +7 -7
  77. package/bundled/definition17.js +14 -14
  78. package/bundled/definition18.cjs +7 -7
  79. package/bundled/definition18.js +20 -20
  80. package/bundled/definition19.cjs +2 -2
  81. package/bundled/definition19.js +3 -3
  82. package/bundled/definition2.cjs +3 -3
  83. package/bundled/definition2.js +11 -11
  84. package/bundled/definition20.cjs +8 -8
  85. package/bundled/definition20.js +16 -17
  86. package/bundled/definition21.cjs +5 -5
  87. package/bundled/definition21.js +26 -26
  88. package/bundled/definition22.cjs +3 -3
  89. package/bundled/definition22.js +8 -8
  90. package/bundled/definition23.cjs +4 -4
  91. package/bundled/definition23.js +9 -9
  92. package/bundled/definition24.cjs +5 -5
  93. package/bundled/definition24.js +15 -15
  94. package/bundled/definition3.cjs +1 -1
  95. package/bundled/definition3.js +33 -33
  96. package/bundled/definition4.cjs +4 -4
  97. package/bundled/definition4.js +11 -11
  98. package/bundled/definition5.cjs +5 -5
  99. package/bundled/definition5.js +10 -10
  100. package/bundled/definition6.cjs +7 -7
  101. package/bundled/definition6.js +30 -30
  102. package/bundled/definition7.cjs +2 -2
  103. package/bundled/definition7.js +6 -6
  104. package/bundled/definition8.cjs +4 -4
  105. package/bundled/definition8.js +15 -15
  106. package/bundled/definition9.cjs +2 -2
  107. package/bundled/definition9.js +18 -18
  108. package/bundled/delegates-aria.cjs +1 -1
  109. package/bundled/delegates-aria.js +10 -49
  110. package/bundled/divider.cjs +1 -1
  111. package/bundled/divider.js +3 -3
  112. package/bundled/form-associated.cjs +1 -1
  113. package/bundled/form-associated.js +6 -6
  114. package/bundled/form-element.cjs +1 -1
  115. package/bundled/form-element.js +8 -6
  116. package/bundled/host-semantics.cjs +1 -1
  117. package/bundled/host-semantics.js +10 -39
  118. package/bundled/linkable.cjs +2 -2
  119. package/bundled/linkable.js +1 -1
  120. package/bundled/listbox.cjs +1 -1
  121. package/bundled/listbox.js +12 -12
  122. package/bundled/localized.cjs +1 -1
  123. package/bundled/localized.js +6 -6
  124. package/bundled/mixins.cjs +6 -6
  125. package/bundled/mixins.js +9 -9
  126. package/bundled/normalize.cjs +1 -1
  127. package/bundled/normalize.js +2 -2
  128. package/bundled/picker-field.template.cjs +1 -1
  129. package/bundled/picker-field.template.js +24 -23
  130. package/bundled/ref.cjs +1 -1
  131. package/bundled/ref.js +1 -1
  132. package/bundled/repeat.cjs +1 -1
  133. package/bundled/repeat.js +54 -54
  134. package/bundled/slider.template.cjs +7 -7
  135. package/bundled/slider.template.js +13 -13
  136. package/bundled/slottable-request.cjs +1 -1
  137. package/bundled/slottable-request.js +1 -1
  138. package/bundled/slotted.cjs +1 -1
  139. package/bundled/slotted.js +1 -1
  140. package/bundled/text-field.cjs +1 -1
  141. package/bundled/text-field.js +1 -1
  142. package/bundled/time-selection-picker.template.cjs +4 -4
  143. package/bundled/time-selection-picker.template.js +23 -23
  144. package/bundled/vivid-element.cjs +1 -1
  145. package/bundled/vivid-element.js +21 -19
  146. package/bundled/when.cjs +1 -1
  147. package/bundled/when.js +1 -1
  148. package/bundled/with-contextual-help.cjs +1 -1
  149. package/bundled/with-contextual-help.js +1 -1
  150. package/bundled/with-error-text.cjs +1 -1
  151. package/bundled/with-error-text.js +1 -1
  152. package/bundled/with-success-text.cjs +1 -1
  153. package/bundled/with-success-text.js +1 -1
  154. package/button/definition.cjs +0 -1
  155. package/button/definition.js +0 -1
  156. package/button/index.cjs +1 -1
  157. package/button/index.js +0 -2
  158. package/calendar/index.cjs +8 -8
  159. package/calendar/index.js +10 -10
  160. package/calendar-event/index.cjs +6 -6
  161. package/calendar-event/index.js +8 -8
  162. package/card/definition.cjs +0 -1
  163. package/card/definition.js +0 -1
  164. package/card/index.cjs +14 -14
  165. package/card/index.js +33 -34
  166. package/checkbox/definition.cjs +0 -1
  167. package/checkbox/definition.js +0 -1
  168. package/checkbox/index.cjs +1 -1
  169. package/checkbox/index.js +0 -2
  170. package/color-picker/definition.cjs +0 -1
  171. package/color-picker/definition.js +0 -1
  172. package/color-picker/index.cjs +15 -15
  173. package/color-picker/index.js +42 -42
  174. package/combobox/definition.cjs +0 -1
  175. package/combobox/definition.js +0 -1
  176. package/combobox/index.cjs +4 -4
  177. package/combobox/index.js +20 -21
  178. package/contextual-help/definition.cjs +0 -1
  179. package/contextual-help/definition.js +0 -1
  180. package/contextual-help/index.cjs +1 -1
  181. package/contextual-help/index.js +0 -2
  182. package/country/definition.cjs +0 -1
  183. package/country/definition.js +0 -1
  184. package/country/index.cjs +1 -1
  185. package/country/index.js +0 -2
  186. package/country-group/definition.cjs +0 -1
  187. package/country-group/definition.js +0 -1
  188. package/country-group/index.cjs +4 -4
  189. package/country-group/index.js +29 -29
  190. package/custom-elements.json +2544 -2688
  191. package/data-grid/definition.cjs +0 -1
  192. package/data-grid/definition.js +0 -1
  193. package/data-grid/index.cjs +14 -14
  194. package/data-grid/index.js +103 -104
  195. package/date-picker/definition.cjs +0 -1
  196. package/date-picker/definition.js +0 -1
  197. package/date-picker/index.cjs +1 -1
  198. package/date-picker/index.js +2 -3
  199. package/date-range-picker/definition.cjs +0 -1
  200. package/date-range-picker/definition.js +0 -1
  201. package/date-range-picker/index.cjs +1 -1
  202. package/date-range-picker/index.js +6 -7
  203. package/date-time-picker/definition.cjs +0 -1
  204. package/date-time-picker/definition.js +0 -1
  205. package/date-time-picker/index.cjs +2 -2
  206. package/date-time-picker/index.js +8 -9
  207. package/dial-pad/definition.cjs +0 -1
  208. package/dial-pad/definition.js +0 -1
  209. package/dial-pad/index.cjs +8 -8
  210. package/dial-pad/index.js +16 -17
  211. package/dialog/definition.cjs +0 -1
  212. package/dialog/definition.js +0 -1
  213. package/dialog/index.cjs +13 -10
  214. package/dialog/index.js +35 -33
  215. package/divider/index.cjs +1 -1
  216. package/divider/index.js +0 -1
  217. package/elevation/index.cjs +1 -1
  218. package/elevation/index.js +0 -1
  219. package/empty-state/definition.cjs +0 -1
  220. package/empty-state/definition.js +0 -1
  221. package/empty-state/index.cjs +4 -4
  222. package/empty-state/index.js +9 -10
  223. package/fab/definition.cjs +0 -1
  224. package/fab/definition.js +0 -1
  225. package/fab/index.cjs +3 -3
  226. package/fab/index.js +9 -10
  227. package/file-picker/definition.cjs +0 -1
  228. package/file-picker/definition.js +0 -1
  229. package/file-picker/index.cjs +7 -7
  230. package/file-picker/index.js +22 -23
  231. package/flag/definition.cjs +0 -1
  232. package/flag/definition.js +0 -1
  233. package/flag/index.cjs +3 -3
  234. package/flag/index.js +11 -11
  235. package/header/index.cjs +5 -5
  236. package/header/index.js +11 -11
  237. package/icon/definition.cjs +0 -1
  238. package/icon/definition.js +0 -1
  239. package/icon/index.cjs +1 -1
  240. package/icon/index.js +0 -2
  241. package/index.cjs +0 -1
  242. package/index.js +0 -1
  243. package/layout/index.cjs +2 -2
  244. package/layout/index.js +3 -3
  245. package/lib/avatar/avatar.d.ts +1 -1
  246. package/lib/breadcrumb-item/breadcrumb-item.d.ts +1 -1
  247. package/lib/button/button.d.ts +1 -1
  248. package/lib/card/card.d.ts +1 -1
  249. package/lib/nav-item/nav-item.d.ts +1 -1
  250. package/lib/rich-text-editor/rte/utils/ui.d.ts +2 -1
  251. package/locales/de-DE.cjs +1 -1
  252. package/locales/en-GB.cjs +1 -1
  253. package/locales/en-US.cjs +1 -1
  254. package/locales/ja-JP.cjs +1 -1
  255. package/locales/zh-CN.cjs +1 -1
  256. package/menu/definition.cjs +0 -1
  257. package/menu/definition.js +0 -1
  258. package/menu/index.cjs +1 -1
  259. package/menu/index.js +0 -2
  260. package/menu-item/definition.cjs +0 -1
  261. package/menu-item/definition.js +0 -1
  262. package/menu-item/index.cjs +1 -1
  263. package/menu-item/index.js +0 -2
  264. package/nav/index.cjs +2 -2
  265. package/nav/index.js +2 -2
  266. package/nav-disclosure/definition.cjs +0 -1
  267. package/nav-disclosure/definition.js +0 -1
  268. package/nav-disclosure/index.cjs +4 -4
  269. package/nav-disclosure/index.js +15 -16
  270. package/nav-item/definition.cjs +0 -1
  271. package/nav-item/definition.js +0 -1
  272. package/nav-item/index.cjs +2 -2
  273. package/nav-item/index.js +10 -11
  274. package/note/definition.cjs +0 -1
  275. package/note/definition.js +0 -1
  276. package/note/index.cjs +2 -2
  277. package/note/index.js +7 -8
  278. package/number-field/definition.cjs +0 -1
  279. package/number-field/definition.js +0 -1
  280. package/number-field/index.cjs +5 -5
  281. package/number-field/index.js +16 -17
  282. package/option/definition.cjs +0 -1
  283. package/option/definition.js +0 -1
  284. package/option/index.cjs +1 -1
  285. package/option/index.js +0 -2
  286. package/package.json +22 -22
  287. package/pagination/definition.cjs +0 -1
  288. package/pagination/definition.js +0 -1
  289. package/pagination/index.cjs +4 -4
  290. package/pagination/index.js +11 -12
  291. package/popover/definition.cjs +0 -1
  292. package/popover/definition.js +0 -1
  293. package/popover/index.cjs +6 -6
  294. package/popover/index.js +28 -29
  295. package/popup/definition.cjs +0 -1
  296. package/popup/definition.js +0 -1
  297. package/popup/index.cjs +1 -1
  298. package/popup/index.js +0 -2
  299. package/progress/index.cjs +5 -5
  300. package/progress/index.js +10 -10
  301. package/progress-ring/index.cjs +1 -1
  302. package/progress-ring/index.js +0 -1
  303. package/radio/index.cjs +1 -1
  304. package/radio/index.js +0 -1
  305. package/radio-group/definition.cjs +0 -1
  306. package/radio-group/definition.js +0 -1
  307. package/radio-group/index.cjs +6 -6
  308. package/radio-group/index.js +21 -21
  309. package/range-slider/definition.cjs +0 -1
  310. package/range-slider/definition.js +0 -1
  311. package/range-slider/index.cjs +5 -5
  312. package/range-slider/index.js +58 -59
  313. package/rich-text-editor/definition.cjs +0 -1
  314. package/rich-text-editor/definition.js +0 -1
  315. package/rich-text-editor/index.cjs +9 -9
  316. package/rich-text-editor/index.js +2016 -1947
  317. package/rich-text-view/index.cjs +1 -1
  318. package/rich-text-view/index.js +2 -2
  319. package/searchable-select/definition.cjs +0 -1
  320. package/searchable-select/definition.js +0 -1
  321. package/searchable-select/index.cjs +23 -23
  322. package/searchable-select/index.js +109 -108
  323. package/select/definition.cjs +0 -1
  324. package/select/definition.js +0 -1
  325. package/select/index.cjs +1 -1
  326. package/select/index.js +0 -2
  327. package/selectable-box/definition.cjs +0 -1
  328. package/selectable-box/definition.js +0 -1
  329. package/selectable-box/index.cjs +9 -9
  330. package/selectable-box/index.js +19 -20
  331. package/shared/aria/aria-binding-directive.d.ts +21 -0
  332. package/shared/aria/aria-change-subscription.d.ts +1 -0
  333. package/shared/aria/delegates-aria.d.ts +1 -1
  334. package/shared/aria/host-semantics.d.ts +1 -1
  335. package/shared/patterns/linkable.d.ts +1 -1
  336. package/side-drawer/index.cjs +3 -3
  337. package/side-drawer/index.js +4 -4
  338. package/simple-color-picker/definition.cjs +0 -1
  339. package/simple-color-picker/definition.js +0 -1
  340. package/simple-color-picker/index.cjs +2 -2
  341. package/simple-color-picker/index.js +19 -20
  342. package/slider/definition.cjs +0 -1
  343. package/slider/definition.js +0 -1
  344. package/slider/index.cjs +1 -1
  345. package/slider/index.js +0 -2
  346. package/split-button/definition.cjs +0 -1
  347. package/split-button/definition.js +0 -1
  348. package/split-button/index.cjs +6 -6
  349. package/split-button/index.js +17 -18
  350. package/status/definition.cjs +0 -1
  351. package/status/definition.js +0 -1
  352. package/status/index.cjs +2 -2
  353. package/status/index.js +8 -9
  354. package/switch/definition.cjs +0 -1
  355. package/switch/definition.js +0 -1
  356. package/switch/index.cjs +5 -5
  357. package/switch/index.js +9 -10
  358. package/tab/definition.cjs +0 -1
  359. package/tab/definition.js +0 -1
  360. package/tab/index.cjs +1 -1
  361. package/tab/index.js +0 -2
  362. package/tab-panel/index.cjs +1 -1
  363. package/tab-panel/index.js +0 -1
  364. package/table/definition.cjs +0 -1
  365. package/table/definition.js +0 -1
  366. package/table/index.cjs +9 -9
  367. package/table/index.js +21 -22
  368. package/tabs/definition.cjs +0 -1
  369. package/tabs/definition.js +0 -1
  370. package/tabs/index.cjs +2 -2
  371. package/tabs/index.js +25 -26
  372. package/tag/definition.cjs +0 -1
  373. package/tag/definition.js +0 -1
  374. package/tag/index.cjs +11 -11
  375. package/tag/index.js +21 -22
  376. package/tag-group/index.cjs +4 -4
  377. package/tag-group/index.js +6 -6
  378. package/text-area/definition.cjs +0 -1
  379. package/text-area/definition.js +0 -1
  380. package/text-area/index.cjs +4 -4
  381. package/text-area/index.js +24 -25
  382. package/text-field/definition.cjs +0 -1
  383. package/text-field/definition.js +0 -1
  384. package/text-field/index.cjs +1 -1
  385. package/text-field/index.js +0 -2
  386. package/time-picker/definition.cjs +0 -1
  387. package/time-picker/definition.js +0 -1
  388. package/time-picker/index.cjs +1 -1
  389. package/time-picker/index.js +2 -3
  390. package/toggletip/definition.cjs +0 -1
  391. package/toggletip/definition.js +0 -1
  392. package/toggletip/index.cjs +1 -1
  393. package/toggletip/index.js +0 -2
  394. package/tooltip/definition.cjs +0 -1
  395. package/tooltip/definition.js +0 -1
  396. package/tooltip/index.cjs +1 -1
  397. package/tooltip/index.js +0 -2
  398. package/tree-item/definition.cjs +0 -1
  399. package/tree-item/definition.js +0 -1
  400. package/tree-item/index.cjs +1 -1
  401. package/tree-item/index.js +0 -2
  402. package/tree-view/definition.cjs +0 -1
  403. package/tree-view/definition.js +0 -1
  404. package/tree-view/index.cjs +2 -2
  405. package/tree-view/index.js +5 -5
  406. package/unbundled/aria-binding-directive.cjs +42 -0
  407. package/unbundled/aria-binding-directive.js +36 -0
  408. package/unbundled/calendar-picker.template.cjs +1 -1
  409. package/unbundled/calendar-picker.template.js +1 -1
  410. package/unbundled/char-count.cjs +2 -1
  411. package/unbundled/char-count.js +2 -1
  412. package/unbundled/decorate.cjs +1 -1
  413. package/unbundled/decorate.js +1 -1
  414. package/unbundled/definition.js +1 -1
  415. package/unbundled/definition10.cjs +5 -4
  416. package/unbundled/definition10.js +6 -5
  417. package/unbundled/definition11.cjs +14 -10
  418. package/unbundled/definition11.js +15 -11
  419. package/unbundled/definition12.cjs +2 -2
  420. package/unbundled/definition12.js +3 -3
  421. package/unbundled/definition13.cjs +7 -6
  422. package/unbundled/definition13.js +8 -7
  423. package/unbundled/definition14.cjs +67 -58
  424. package/unbundled/definition14.js +68 -59
  425. package/unbundled/definition15.js +1 -1
  426. package/unbundled/definition16.js +1 -1
  427. package/unbundled/definition17.cjs +10 -8
  428. package/unbundled/definition17.js +11 -9
  429. package/unbundled/definition18.js +1 -1
  430. package/unbundled/definition19.js +1 -1
  431. package/unbundled/definition2.cjs +4 -2
  432. package/unbundled/definition2.js +5 -3
  433. package/unbundled/definition20.js +1 -1
  434. package/unbundled/definition21.js +1 -1
  435. package/unbundled/definition22.js +1 -1
  436. package/unbundled/definition23.cjs +1 -1
  437. package/unbundled/definition23.js +2 -2
  438. package/unbundled/definition24.cjs +17 -13
  439. package/unbundled/definition24.js +18 -14
  440. package/unbundled/definition25.js +1 -1
  441. package/unbundled/definition26.cjs +17 -1
  442. package/unbundled/definition26.js +18 -2
  443. package/unbundled/definition27.cjs +15 -12
  444. package/unbundled/definition27.js +16 -13
  445. package/unbundled/definition28.cjs +9 -6
  446. package/unbundled/definition28.js +10 -7
  447. package/unbundled/definition29.js +1 -1
  448. package/unbundled/definition3.js +1 -1
  449. package/unbundled/definition30.cjs +4 -2
  450. package/unbundled/definition30.js +5 -3
  451. package/unbundled/definition31.js +1 -1
  452. package/unbundled/definition32.cjs +30 -23
  453. package/unbundled/definition32.js +31 -24
  454. package/unbundled/definition33.cjs +4 -2
  455. package/unbundled/definition33.js +5 -3
  456. package/unbundled/definition34.cjs +200 -48
  457. package/unbundled/definition34.js +201 -49
  458. package/unbundled/definition35.js +1 -1
  459. package/unbundled/definition36.js +1 -1
  460. package/unbundled/definition37.js +1 -1
  461. package/unbundled/definition38.cjs +2 -1
  462. package/unbundled/definition38.js +3 -2
  463. package/unbundled/definition39.js +1 -1
  464. package/unbundled/definition4.cjs +6 -0
  465. package/unbundled/definition4.js +7 -1
  466. package/unbundled/definition40.js +1 -1
  467. package/unbundled/definition41.cjs +17 -12
  468. package/unbundled/definition41.js +18 -13
  469. package/unbundled/definition42.js +1 -1
  470. package/unbundled/definition43.js +1 -1
  471. package/unbundled/definition44.cjs +4 -3
  472. package/unbundled/definition44.js +5 -4
  473. package/unbundled/definition45.js +1 -1
  474. package/unbundled/definition46.js +1 -1
  475. package/unbundled/definition47.cjs +5 -4
  476. package/unbundled/definition47.js +6 -5
  477. package/unbundled/definition48.cjs +1 -1
  478. package/unbundled/definition48.js +2 -2
  479. package/unbundled/definition49.js +1 -1
  480. package/unbundled/definition5.js +1 -1
  481. package/unbundled/definition50.js +1 -1
  482. package/unbundled/definition51.cjs +1 -1
  483. package/unbundled/definition51.js +2 -2
  484. package/unbundled/definition52.js +1 -1
  485. package/unbundled/definition53.cjs +16 -12
  486. package/unbundled/definition53.js +17 -13
  487. package/unbundled/definition54.js +1 -1
  488. package/unbundled/definition55.cjs +25 -23
  489. package/unbundled/definition55.js +26 -24
  490. package/unbundled/definition56.cjs +2 -1
  491. package/unbundled/definition56.js +3 -2
  492. package/unbundled/definition57.cjs +72 -61
  493. package/unbundled/definition57.js +73 -62
  494. package/unbundled/definition58.cjs +34 -26
  495. package/unbundled/definition58.js +34 -26
  496. package/unbundled/definition59.cjs +1 -1
  497. package/unbundled/definition59.js +2 -2
  498. package/unbundled/definition6.js +1 -1
  499. package/unbundled/definition60.js +1 -1
  500. package/unbundled/definition61.cjs +15 -10
  501. package/unbundled/definition61.js +16 -11
  502. package/unbundled/definition62.js +1 -1
  503. package/unbundled/definition63.js +1 -1
  504. package/unbundled/definition64.cjs +20 -17
  505. package/unbundled/definition64.js +21 -18
  506. package/unbundled/definition65.js +1 -1
  507. package/unbundled/definition66.js +1 -1
  508. package/unbundled/definition67.cjs +1 -1
  509. package/unbundled/definition67.js +2 -2
  510. package/unbundled/definition68.js +1 -1
  511. package/unbundled/definition69.js +1 -1
  512. package/unbundled/definition7.js +1 -1
  513. package/unbundled/definition70.cjs +28 -23
  514. package/unbundled/definition70.js +29 -24
  515. package/unbundled/definition71.js +1 -1
  516. package/unbundled/definition72.cjs +6 -5
  517. package/unbundled/definition72.js +7 -6
  518. package/unbundled/definition73.cjs +13 -1
  519. package/unbundled/definition73.js +14 -2
  520. package/unbundled/definition74.js +1 -1
  521. package/unbundled/definition75.js +1 -1
  522. package/unbundled/definition76.cjs +2 -1
  523. package/unbundled/definition76.js +3 -2
  524. package/unbundled/definition77.cjs +1 -1
  525. package/unbundled/definition77.js +1 -1
  526. package/unbundled/definition8.js +1 -1
  527. package/unbundled/definition9.cjs +9 -7
  528. package/unbundled/definition9.js +10 -8
  529. package/unbundled/delegates-aria.cjs +5 -60
  530. package/unbundled/delegates-aria.js +6 -60
  531. package/unbundled/divider.cjs +6 -0
  532. package/unbundled/divider.js +6 -0
  533. package/unbundled/form-element.cjs +7 -5
  534. package/unbundled/form-element.js +7 -5
  535. package/unbundled/host-semantics.cjs +10 -45
  536. package/unbundled/host-semantics.js +10 -44
  537. package/unbundled/mixins.js +1 -1
  538. package/unbundled/picker-field.template.cjs +20 -15
  539. package/unbundled/picker-field.template.js +20 -15
  540. package/unbundled/text-field.cjs +1 -1
  541. package/unbundled/text-field.js +1 -1
  542. package/unbundled/time-selection-picker.template.cjs +4 -3
  543. package/unbundled/time-selection-picker.template.js +5 -4
  544. package/unbundled/vivid-element.cjs +10 -1
  545. package/unbundled/vivid-element.js +5 -2
  546. package/video-player/index.cjs +24 -24
  547. package/video-player/index.js +3087 -3010
  548. package/visually-hidden/index.cjs +1 -1
  549. package/visually-hidden/index.js +0 -1
  550. package/vivid.api.json +1 -1
  551. package/bundled/attribute-binding-behaviour.cjs +0 -1
  552. package/bundled/attribute-binding-behaviour.js +0 -18
  553. package/bundled/strings.cjs +0 -1
  554. package/bundled/strings.js +0 -7
  555. package/shared/aria/delegate-aria-behavior.d.ts +0 -23
  556. package/shared/aria/host-semantics-behavior.d.ts +0 -19
  557. package/shared/templating/attribute-binding-behaviour.d.ts +0 -14
  558. package/unbundled/attribute-binding-behaviour.cjs +0 -37
  559. package/unbundled/attribute-binding-behaviour.js +0 -31
@@ -1,16 +1,15 @@
1
1
  import { t as e } from "../bundled/localized.js";
2
- import { O as t, T as n, c as r, d as i, l as a, o, s, t as c, u as ee, w as l } from "../bundled/vivid-element.js";
3
- import { t as u } from "../bundled/repeat.js";
4
- import { t as d } from "../bundled/normalize.js";
5
- import { t as f } from "../bundled/when.js";
6
- import { r as p, t as m } from "../bundled/slotted.js";
7
- import { t as h } from "../bundled/children.js";
8
- import { n as g, r as _ } from "../bundled/definition.js";
9
- import "../bundled/numberConverter.js";
10
- import { t as v } from "../bundled/decorate.js";
11
- import { r as y, t as b } from "../bundled/definition2.js";
12
- import { t as x } from "../bundled/class-names.js";
13
- import { a as te, c as S, i as C, l as w, n as T, o as E, r as ne, s as D, t as O } from "../bundled/key-codes.js";
2
+ import { A as t, D as n, E as r, c as i, d as a, f as o, l as s, s as c, t as l, u } from "../bundled/vivid-element.js";
3
+ import { t as d } from "../bundled/repeat.js";
4
+ import { t as f } from "../bundled/normalize.js";
5
+ import { t as p } from "../bundled/when.js";
6
+ import { r as m, t as h } from "../bundled/slotted.js";
7
+ import { t as g } from "../bundled/children.js";
8
+ import { n as _, r as v } from "../bundled/definition.js";
9
+ import { t as y } from "../bundled/decorate.js";
10
+ import { r as b, t as x } from "../bundled/definition2.js";
11
+ import { t as S } from "../bundled/class-names.js";
12
+ import { a as C, c as ee, i as te, l as w, n as T, o as E, r as D, s as O, t as ne } from "../bundled/key-codes.js";
14
13
  import { n as k, t as A } from "../bundled/host-semantics.js";
15
14
  import { a as j, i as M, n as N, r as P, t as F } from "../bundled/data-grid.options.js";
16
15
  //#region ../../node_modules/.pnpm/@microsoft+fast-web-utilities@6.0.0/node_modules/@microsoft/fast-web-utilities/dist/events.js
@@ -20,7 +19,7 @@ var I = "focus", L = "focusin", R = "focusout", z = "keydown", B = ":host{displa
20
19
  multiRow: "multi-row",
21
20
  singleCell: "single-cell",
22
21
  multiCell: "multi-cell"
23
- }, W = class e extends c {
22
+ }, W = class e extends l {
24
23
  static generateTemplateColumns(e) {
25
24
  let t = "";
26
25
  return e.forEach((e) => {
@@ -71,10 +70,10 @@ var I = "focus", L = "focusin", R = "focusout", z = "keydown", B = ":host{displa
71
70
  }), this.resizeObserver.observe(this));
72
71
  }
73
72
  connectedCallback() {
74
- super.connectedCallback(), this.rowItemTemplate === void 0 && (this.rowItemTemplate = this.defaultRowItemTemplate), this.behaviorOrchestrator === null && (this.behaviorOrchestrator = r.create(this), this.$fastController.addBehavior(this.behaviorOrchestrator), this.behaviorOrchestrator.addBehaviorFactory(new u(d((e) => e.rowsData), d((e) => e.rowItemTemplate), { positioning: !0 }), this.appendChild(document.createComment("")))), this.toggleGeneratedHeader(), this.addEventListener("row-focused", this.handleRowFocus), this.addEventListener(I, this.handleFocus), this.addEventListener(z, this.handleKeydown), this.addEventListener(R, this.handleFocusOut), this.observer = new MutationObserver(this.onChildListChange), this.observer.observe(this, { childList: !0 }), this.setupResizeObserver(), t.enqueue(this.queueRowIndexUpdate), this.#e(), l.getNotifier(this).subscribe(this.#s, "columnDefinitions");
73
+ super.connectedCallback(), this.rowItemTemplate === void 0 && (this.rowItemTemplate = this.defaultRowItemTemplate), this.behaviorOrchestrator === null && (this.behaviorOrchestrator = s.create(this), this.$fastController.addBehavior(this.behaviorOrchestrator), this.behaviorOrchestrator.addBehaviorFactory(new d(f((e) => e.rowsData), f((e) => e.rowItemTemplate), { positioning: !0 }), this.appendChild(document.createComment("")))), this.toggleGeneratedHeader(), this.addEventListener("row-focused", this.handleRowFocus), this.addEventListener(I, this.handleFocus), this.addEventListener(z, this.handleKeydown), this.addEventListener(R, this.handleFocusOut), this.observer = new MutationObserver(this.onChildListChange), this.observer.observe(this, { childList: !0 }), this.setupResizeObserver(), t.enqueue(this.queueRowIndexUpdate), this.#e(), r.getNotifier(this).subscribe(this.#s, "columnDefinitions");
75
74
  }
76
75
  disconnectedCallback() {
77
- super.disconnectedCallback(), this.removeEventListener("row-focused", this.handleRowFocus), this.removeEventListener(I, this.handleFocus), this.removeEventListener(z, this.handleKeydown), this.removeEventListener(R, this.handleFocusOut), this.observer.disconnect(), this.resizeObserver &&= (this.resizeObserver.disconnect(), void 0), this.generatedHeader = null, l.getNotifier(this).unsubscribe(this.#s, "columnDefinitions");
76
+ super.disconnectedCallback(), this.removeEventListener("row-focused", this.handleRowFocus), this.removeEventListener(I, this.handleFocus), this.removeEventListener(z, this.handleKeydown), this.removeEventListener(R, this.handleFocusOut), this.observer.disconnect(), this.resizeObserver &&= (this.resizeObserver.disconnect(), void 0), this.generatedHeader = null, r.getNotifier(this).unsubscribe(this.#s, "columnDefinitions");
78
77
  }
79
78
  handleRowFocus(e) {
80
79
  this.isUpdatingFocus = !0;
@@ -91,10 +90,10 @@ var I = "focus", L = "focusin", R = "focusout", z = "keydown", B = ":host{displa
91
90
  if (e.defaultPrevented) return;
92
91
  let t, n = this.rowElements.length - 1, r = this.offsetHeight + this.scrollTop, i = this.rowElements[n];
93
92
  switch (e.key) {
94
- case C:
93
+ case te:
95
94
  e.preventDefault(), this.focusOnCell(this.focusRowIndex - 1, this.focusColumnIndex, !0);
96
95
  break;
97
- case O:
96
+ case ne:
98
97
  e.preventDefault(), this.focusOnCell(this.focusRowIndex + 1, this.focusColumnIndex, !0);
99
98
  break;
100
99
  case w:
@@ -115,7 +114,7 @@ var I = "focus", L = "focusin", R = "focusout", z = "keydown", B = ":host{displa
115
114
  }
116
115
  this.focusOnCell(t, this.focusColumnIndex, !1);
117
116
  break;
118
- case S:
117
+ case ee:
119
118
  if (e.preventDefault(), this.rowElements.length === 0) {
120
119
  this.focusOnCell(0, 0, !1);
121
120
  break;
@@ -134,7 +133,7 @@ var I = "focus", L = "focusin", R = "focusout", z = "keydown", B = ":host{displa
134
133
  }
135
134
  this.focusOnCell(t, this.focusColumnIndex, !1);
136
135
  break;
137
- case D:
136
+ case O:
138
137
  /* v8 ignore else -- @preserve */
139
138
  e.ctrlKey && (e.preventDefault(), this.focusOnCell(0, 0, !0));
140
139
  break;
@@ -177,44 +176,10 @@ var I = "focus", L = "focusin", R = "focusout", z = "keydown", B = ":host{displa
177
176
  }
178
177
  this._resetSelection(!0);
179
178
  }
180
- #r = (e) => {
181
- (e.key === "Enter" || e.key === " ") && this.#i(e);
182
- };
183
- #i = ({ target: e, ctrlKey: t, shiftKey: n, metaKey: r }) => {
184
- if (!(e.getAttribute("role") !== "gridcell" || e.getAttribute("cell-type") !== "default")) {
185
- if (this.selectionMode === U.singleCell || this.selectionMode === U.multiCell) {
186
- this.#a({
187
- target: e,
188
- ctrlKey: t,
189
- shiftKey: n,
190
- metaKey: r
191
- });
192
- return;
193
- }
194
- (this.selectionMode === U.singleRow || this.selectionMode === U.multiRow) && this.#o({
195
- target: e,
196
- ctrlKey: t,
197
- shiftKey: n,
198
- metaKey: r
199
- });
200
- }
201
- };
202
- #a = ({ target: e, ctrlKey: t, shiftKey: n, metaKey: r }) => {
203
- let i = e;
204
- if (this.selectionMode === U.multiCell && (t || n || r)) i.selected = !this.#n.includes(i);
205
- else {
206
- let e = i.selected;
207
- this._resetSelection(!0), i.selected = !e;
208
- }
209
- };
210
- #o = ({ target: e, ctrlKey: t, shiftKey: n, metaKey: r }) => {
211
- let i = e.parentNode;
212
- if (this.selectionMode === U.multiRow && (t || n || r)) i.selected = !this.#t.includes(i);
213
- else {
214
- let e = i.selected;
215
- this._resetSelection(!0), i.selected = !e;
216
- }
217
- };
179
+ #r;
180
+ #i;
181
+ #a;
182
+ #o;
218
183
  constructor() {
219
184
  super(), this.noTabbing = !1, this.generateHeader = j.default, this.rowsData = [], this.columnDefinitions = null, this.focusRowIndex = 0, this.focusColumnIndex = 0, this.fixedColumnsPositions = [], this.behaviorOrchestrator = null, this.generatedHeader = null, this.isUpdatingFocus = !1, this.pendingFocusUpdate = !1, this.rowindexUpdateQueued = !1, this.columnDefinitionsStale = !0, this.generatedGridTemplateColumns = "", this.focusOnCell = (e, t, n) => {
220
185
  if (this.rowElements.length === 0) {
@@ -248,7 +213,44 @@ var I = "focus", L = "focusin", R = "focusout", z = "keydown", B = ":host{displa
248
213
  let r = t;
249
214
  r.rowIndex = n, r.gridTemplateColumns = e, this.columnDefinitionsStale && (r.columnDefinitions = this.columnDefinitions);
250
215
  }), this.rowindexUpdateQueued = !1, this.columnDefinitionsStale = !1;
251
- }, this._resetSelection = (e = !1) => {
216
+ }, this.#r = (e) => {
217
+ (e.key === "Enter" || e.key === " ") && this.#i(e);
218
+ }, this.#i = ({ target: e, ctrlKey: t, shiftKey: n, metaKey: r }) => {
219
+ if (!(e.getAttribute("role") !== "gridcell" || e.getAttribute("cell-type") !== "default")) {
220
+ if (this.selectionMode === U.singleCell || this.selectionMode === U.multiCell) {
221
+ this.#a({
222
+ target: e,
223
+ ctrlKey: t,
224
+ shiftKey: n,
225
+ metaKey: r
226
+ });
227
+ return;
228
+ }
229
+ (this.selectionMode === U.singleRow || this.selectionMode === U.multiRow) && this.#o({
230
+ target: e,
231
+ ctrlKey: t,
232
+ shiftKey: n,
233
+ metaKey: r
234
+ });
235
+ }
236
+ }, this.#a = ({ target: e, ctrlKey: t, shiftKey: n, metaKey: r }) => {
237
+ let i = e;
238
+ if (this.selectionMode === U.multiCell && (t || n || r)) i.selected = !this.#n.includes(i);
239
+ else {
240
+ let e = i.selected;
241
+ this._resetSelection(!0), i.selected = !e;
242
+ }
243
+ }, this.#o = ({ target: e, ctrlKey: t, shiftKey: n, metaKey: r }) => {
244
+ let i = e.parentNode;
245
+ if (this.selectionMode === U.multiRow && (t || n || r)) i.selected = !this.#t.includes(i);
246
+ else {
247
+ let e = i.selected;
248
+ this._resetSelection(!0), i.selected = !e;
249
+ }
250
+ }, this.#s = { handleChange(e, t) {
251
+ /* v8 ignore else -- @preserve */
252
+ t === "columnDefinitions" && e.$fastController.isConnected && e.toggleGeneratedHeader();
253
+ } }, this._resetSelection = (e = !1) => {
252
254
  let t = Array.from(this.querySelectorAll("[role=\"gridcell\"], [cell-type=\"default\"]")), n = Array.from(this.querySelectorAll("[role=\"row\"], [row-type=\"default\"]"));
253
255
  if (this.selectionMode === U.singleCell || this.selectionMode === U.multiCell) {
254
256
  for (let n of t) n._selectable = !0, n.selected = e ? !1 : n.selected || !1;
@@ -261,10 +263,7 @@ var I = "focus", L = "focusin", R = "focusout", z = "keydown", B = ":host{displa
261
263
  }
262
264
  }, this.addEventListener("click", this.#i), this.addEventListener("keydown", this.#r);
263
265
  }
264
- #s = { handleChange(e, t) {
265
- /* v8 ignore else -- @preserve */
266
- t === "columnDefinitions" && e.$fastController.isConnected && e.toggleGeneratedHeader();
267
- } };
266
+ #s;
268
267
  static generateColumns(e) {
269
268
  return Object.keys(e).map((e, t) => ({
270
269
  columnDataKey: e,
@@ -314,16 +313,16 @@ var I = "focus", L = "focusin", R = "focusout", z = "keydown", B = ":host{displa
314
313
  }), this.fixedColumnsPositions = [];
315
314
  }
316
315
  };
317
- v([a({
316
+ y([u({
318
317
  attribute: "no-tabbing",
319
318
  mode: "boolean"
320
- })], W.prototype, "noTabbing", void 0), v([a({ attribute: "generate-header" })], W.prototype, "generateHeader", void 0), v([a({ attribute: "grid-template-columns" })], W.prototype, "gridTemplateColumns", void 0), v([n], W.prototype, "rowsData", void 0), v([n], W.prototype, "columnDefinitions", void 0), v([n], W.prototype, "rowItemTemplate", void 0), v([n], W.prototype, "cellItemTemplate", void 0), v([n], W.prototype, "headerCellItemTemplate", void 0), v([n], W.prototype, "focusRowIndex", void 0), v([n], W.prototype, "focusColumnIndex", void 0), v([a({
319
+ })], W.prototype, "noTabbing", void 0), y([u({ attribute: "generate-header" })], W.prototype, "generateHeader", void 0), y([u({ attribute: "grid-template-columns" })], W.prototype, "gridTemplateColumns", void 0), y([n], W.prototype, "rowsData", void 0), y([n], W.prototype, "columnDefinitions", void 0), y([n], W.prototype, "rowItemTemplate", void 0), y([n], W.prototype, "cellItemTemplate", void 0), y([n], W.prototype, "headerCellItemTemplate", void 0), y([n], W.prototype, "focusRowIndex", void 0), y([n], W.prototype, "focusColumnIndex", void 0), y([u({
321
320
  attribute: "fixed-columns",
322
- converter: ee
323
- })], W.prototype, "fixedColumns", void 0), v([n], W.prototype, "defaultRowItemTemplate", void 0), v([n], W.prototype, "rowElementTag", void 0), v([n], W.prototype, "rowElements", void 0), v([n], W.prototype, "slottedRowElements", void 0), v([a({ attribute: "selection-mode" })], W.prototype, "selectionMode", void 0);
321
+ converter: a
322
+ })], W.prototype, "fixedColumns", void 0), y([n], W.prototype, "defaultRowItemTemplate", void 0), y([n], W.prototype, "rowElementTag", void 0), y([n], W.prototype, "rowElements", void 0), y([n], W.prototype, "slottedRowElements", void 0), y([u({ attribute: "selection-mode" })], W.prototype, "selectionMode", void 0);
324
323
  //#endregion
325
324
  //#region src/lib/data-grid/data-grid-row.ts
326
- var G = class extends A(c) {
325
+ var G = class extends A(l) {
327
326
  constructor(...e) {
328
327
  super(...e), this.rowType = M.default, this.rowData = null, this.columnDefinitions = null, this.behaviorOrchestrator = null, this.focusColumnIndex = 0, this.updateRowStyle = () => {
329
328
  this.style.gridTemplateColumns = this.gridTemplateColumns;
@@ -342,7 +341,7 @@ var G = class extends A(c) {
342
341
  this.updateItemTemplate();
343
342
  }
344
343
  connectedCallback() {
345
- super.connectedCallback(), this.behaviorOrchestrator === null && (this.updateItemTemplate(), this.behaviorOrchestrator = r.create(this), this.$fastController.addBehavior(this.behaviorOrchestrator), this.behaviorOrchestrator.addBehaviorFactory(new u(d((e) => e.columnDefinitions), d((e) => e.activeCellItemTemplate), { positioning: !0 }), this.appendChild(document.createComment("")))), this.addEventListener("cell-focused", this.handleCellFocus), this.addEventListener(R, this.handleFocusout), this.addEventListener(z, this.handleKeydown), this.updateRowStyle();
344
+ super.connectedCallback(), this.behaviorOrchestrator === null && (this.updateItemTemplate(), this.behaviorOrchestrator = s.create(this), this.$fastController.addBehavior(this.behaviorOrchestrator), this.behaviorOrchestrator.addBehaviorFactory(new d(f((e) => e.columnDefinitions), f((e) => e.activeCellItemTemplate), { positioning: !0 }), this.appendChild(document.createComment("")))), this.addEventListener("cell-focused", this.handleCellFocus), this.addEventListener(R, this.handleFocusout), this.addEventListener(z, this.handleKeydown), this.updateRowStyle();
346
345
  }
347
346
  disconnectedCallback() {
348
347
  super.disconnectedCallback(), this.removeEventListener("cell-focused", this.handleCellFocus), this.removeEventListener(R, this.handleFocusout), this.removeEventListener(z, this.handleKeydown);
@@ -361,10 +360,10 @@ var G = class extends A(c) {
361
360
  case T:
362
361
  t = Math.max(0, this.focusColumnIndex - 1), this.cellElements[t].focus(), e.preventDefault();
363
362
  break;
364
- case ne:
363
+ case D:
365
364
  t = Math.min(this.cellElements.length - 1, this.focusColumnIndex + 1), this.cellElements[t].focus(), e.preventDefault();
366
365
  break;
367
- case D:
366
+ case O:
368
367
  e.ctrlKey || (this.cellElements[0].focus(), e.preventDefault());
369
368
  break;
370
369
  case "End":
@@ -379,12 +378,12 @@ var G = class extends A(c) {
379
378
  super.ariaSelectedChanged(e, t), this._selectable = t !== null, this.selected = t === "true";
380
379
  }
381
380
  };
382
- v([a({ attribute: "grid-template-columns" })], G.prototype, "gridTemplateColumns", void 0), v([a({ attribute: "row-type" })], G.prototype, "rowType", void 0), v([n], G.prototype, "rowData", void 0), v([n], G.prototype, "columnDefinitions", void 0), v([n], G.prototype, "cellItemTemplate", void 0), v([n], G.prototype, "headerCellItemTemplate", void 0), v([n], G.prototype, "rowIndex", void 0), v([n], G.prototype, "activeCellItemTemplate", void 0), v([n], G.prototype, "defaultCellItemTemplate", void 0), v([n], G.prototype, "defaultHeaderCellItemTemplate", void 0), v([n], G.prototype, "cellElements", void 0), v([n], G.prototype, "_selectable", void 0), v([a({ mode: "boolean" })], G.prototype, "selected", void 0);
381
+ y([u({ attribute: "grid-template-columns" })], G.prototype, "gridTemplateColumns", void 0), y([u({ attribute: "row-type" })], G.prototype, "rowType", void 0), y([n], G.prototype, "rowData", void 0), y([n], G.prototype, "columnDefinitions", void 0), y([n], G.prototype, "cellItemTemplate", void 0), y([n], G.prototype, "headerCellItemTemplate", void 0), y([n], G.prototype, "rowIndex", void 0), y([n], G.prototype, "activeCellItemTemplate", void 0), y([n], G.prototype, "defaultCellItemTemplate", void 0), y([n], G.prototype, "defaultHeaderCellItemTemplate", void 0), y([n], G.prototype, "cellElements", void 0), y([n], G.prototype, "_selectable", void 0), y([u({ mode: "boolean" })], G.prototype, "selected", void 0);
383
382
  //#endregion
384
383
  //#region src/lib/data-grid/data-grid.template.ts
385
384
  function K(e) {
386
385
  let t = e.tagFor(G);
387
- return i`
386
+ return o`
388
387
  <${t}
389
388
  :rowData="${(e) => e}"
390
389
  :cellItemTemplate="${(e, t) => t.parent.cellItemTemplate}"
@@ -405,39 +404,39 @@ function J(e) {
405
404
  }
406
405
  }
407
406
  }
408
- function re(e, { event: t }) {
407
+ function Y(e, { event: t }) {
409
408
  t.stopPropagation();
410
409
  }
411
- var Y = (e) => {
410
+ var X = (e) => {
412
411
  let t = K(e), n = e.tagFor(G, !0);
413
- return i`
412
+ return o`
414
413
  <template
415
414
  aria-multiselectable="${q}"
416
415
  role="grid"
417
416
  tabindex="0"
418
- @sort="${re}"
417
+ @sort="${Y}"
419
418
  :rowElementTag="${() => n}"
420
419
  :defaultRowItemTemplate="${t}"
421
- ${h({
420
+ ${g({
422
421
  property: "rowElements",
423
- filter: p("[role=row],[data-vvd-component=data-grid-row]")
422
+ filter: m("[role=row],[data-vvd-component=data-grid-row]")
424
423
  })}
425
424
  >
426
425
  <div class="base">
427
426
  ${J}
428
- <slot ${m("slottedRowElements")}></slot>
427
+ <slot ${h("slottedRowElements")}></slot>
429
428
  </div>
430
429
  </template>
431
430
  `;
432
- }, X = i`
431
+ }, re = o`
433
432
  <template>
434
433
  ${(e) => e.rowData === null || e.columnDefinition === null || e.columnDefinition.columnDataKey === null ? null : e.rowData[e.columnDefinition.columnDataKey]}
435
434
  </template>
436
- `, ie = i`
435
+ `, ie = o`
437
436
  <template>
438
437
  ${(e) => e.columnDefinition.title === void 0 ? e.columnDefinition.columnDataKey : e.columnDefinition.title}
439
438
  </template>
440
- `, Z = class extends e(A(c)) {
439
+ `, Z = class extends e(A(l)) {
441
440
  constructor(...e) {
442
441
  super(...e), this.cellType = P.default, this.rowData = null, this.columnDefinition = null, this.isActiveCell = !1, this.customCellView = null, this.updateCellStyle = () => {
443
442
  this.gridColumn && !this.gridColumn.includes("undefined") ? this.style.gridColumn = this.gridColumn : this.style.removeProperty("grid-column");
@@ -491,7 +490,7 @@ var Y = (e) => {
491
490
  }
492
491
  handleKeydown(e) {
493
492
  if (!(e.defaultPrevented || this.columnDefinition === null || this.cellType === P.default && this.columnDefinition.cellInternalFocusQueue !== !0 || this.cellType === P.columnHeader && this.columnDefinition.headerCellInternalFocusQueue !== !0)) switch (e.key) {
494
- case te:
493
+ case C:
495
494
  case "F2":
496
495
  if (this.contains(document.activeElement) && document.activeElement !== this) return;
497
496
  switch (this.cellType) {
@@ -523,7 +522,7 @@ var Y = (e) => {
523
522
  break;
524
523
  case P.rowHeader:
525
524
  case P.default:
526
- this.columnDefinition.cellTemplate === void 0 ? this.customCellView = X.render(this, this) : this.customCellView = this.columnDefinition.cellTemplate.render(this, this);
525
+ this.columnDefinition.cellTemplate === void 0 ? this.customCellView = re.render(this, this) : this.customCellView = this.columnDefinition.cellTemplate.render(this, this);
527
526
  break;
528
527
  }
529
528
  this.columnDefinition?.sortable ? this.columnDefinition.sortDirection ? this.sortDirection = this.columnDefinition.sortDirection : this.sortDirection = N.none : this.sortDirection = void 0;
@@ -558,7 +557,7 @@ var Y = (e) => {
558
557
  }), !0;
559
558
  }
560
559
  };
561
- v([a({ attribute: "cell-type" })], Z.prototype, "cellType", void 0), v([a({ attribute: "grid-column" })], Z.prototype, "gridColumn", void 0), v([n], Z.prototype, "rowData", void 0), v([n], Z.prototype, "columnDefinition", void 0), v([n], Z.prototype, "_selectable", void 0), v([a({ mode: "boolean" })], Z.prototype, "selected", void 0), v([a({ attribute: "sort-direction" })], Z.prototype, "sortDirection", void 0), v([n], Z.prototype, "_actionItemsSlottedContent", void 0);
560
+ y([u({ attribute: "cell-type" })], Z.prototype, "cellType", void 0), y([u({ attribute: "grid-column" })], Z.prototype, "gridColumn", void 0), y([n], Z.prototype, "rowData", void 0), y([n], Z.prototype, "columnDefinition", void 0), y([n], Z.prototype, "_selectable", void 0), y([u({ mode: "boolean" })], Z.prototype, "selected", void 0), y([u({ attribute: "sort-direction" })], Z.prototype, "sortDirection", void 0), y([n], Z.prototype, "_actionItemsSlottedContent", void 0);
562
561
  //#endregion
563
562
  //#region src/lib/data-grid/data-grid-row.template.ts
564
563
  function ae(e) {
@@ -566,7 +565,7 @@ function ae(e) {
566
565
  }
567
566
  function oe(e) {
568
567
  let t = e.tagFor(Z);
569
- return i`
568
+ return o`
570
569
  <${t}
571
570
  cell-type="${(e) => e.isRowHeader ? "rowheader" : void 0}"
572
571
  grid-column="${(e, t) => t.index + 1}"
@@ -578,7 +577,7 @@ function oe(e) {
578
577
  }
579
578
  function se(e) {
580
579
  let t = e.tagFor(Z);
581
- return i`
580
+ return o`
582
581
  <${t}
583
582
  cell-type="columnheader"
584
583
  grid-column="${(e, t) => t.index + 1}"
@@ -588,7 +587,7 @@ function se(e) {
588
587
  }
589
588
  var ce = (e) => {
590
589
  let t = oe(e), n = se(e);
591
- return i`
590
+ return o`
592
591
  <template
593
592
  ${k({
594
593
  role: "row",
@@ -597,16 +596,16 @@ var ce = (e) => {
597
596
  class="${(e) => e.rowType === "default" ? "" : e.rowType}"
598
597
  :defaultCellItemTemplate="${t}"
599
598
  :defaultHeaderCellItemTemplate="${n}"
600
- ${h({
599
+ ${g({
601
600
  property: "cellElements",
602
- filter: p("[role=\"cell\"],[role=\"gridcell\"],[role=\"columnheader\"],[role=\"rowheader\"],[data-vvd-component=\"data-grid-cell\"]")
601
+ filter: m("[role=\"cell\"],[role=\"gridcell\"],[role=\"columnheader\"],[role=\"rowheader\"],[data-vvd-component=\"data-grid-cell\"]")
603
602
  })}
604
603
  >
605
604
  <div
606
- class="${(e) => x("base", ["selected", !!e.selected])}"
605
+ class="${(e) => S("base", ["selected", !!e.selected])}"
607
606
  style="grid-template-columns: ${(e) => e.gridTemplateColumns};"
608
607
  >
609
- <slot ${m("slottedCellElements")}></slot>
608
+ <slot ${h("slottedCellElements")}></slot>
610
609
  </div>
611
610
  </template>
612
611
  `;
@@ -623,9 +622,9 @@ function ue(e) {
623
622
  return e._selectable && e.selected ? "true" : e._selectable && !e.selected ? "false" : null;
624
623
  }
625
624
  function de(e) {
626
- let t = e.tagFor(y);
627
- return i`
628
- ${f(Q, i`
625
+ let t = e.tagFor(b);
626
+ return o`
627
+ ${p(Q, o`
629
628
  <${t} class="header-icon" name="${le}"></${t}>
630
629
  `)}
631
630
  `;
@@ -659,9 +658,9 @@ function _e(e, t) {
659
658
  }
660
659
  //#endregion
661
660
  //#region src/lib/data-grid/index.ts
662
- s(o("data-grid", W, Y, [o("data-grid-row", G, ce, [o("data-grid-cell", Z, (e) => {
663
- let t = e.tagFor(_);
664
- return i`
661
+ i(c("data-grid", W, X, [c("data-grid-row", G, ce, [c("data-grid-cell", Z, (e) => {
662
+ let t = e.tagFor(v);
663
+ return o`
665
664
  <template
666
665
  tabindex="-1"
667
666
  ${k({
@@ -672,24 +671,24 @@ s(o("data-grid", W, Y, [o("data-grid-row", G, ce, [o("data-grid-cell", Z, (e) =>
672
671
  @click="${(e, t) => _e(e, t.event)}"
673
672
  @keydown="${(e, t) => ge(e, t.event)}"
674
673
  >
675
- <div class="${({ selected: e, _actionItemsSlottedContent: t }) => x("base", ["selected", !!e], ["has-action-items", !!t?.length])}">
674
+ <div class="${({ selected: e, _actionItemsSlottedContent: t }) => S("base", ["selected", !!e], ["has-action-items", !!t?.length])}">
676
675
  <div
677
676
  class="content"
678
677
  role="${(e) => Q(e) ? "button" : void 0}"
679
678
  >
680
- ${(e) => e.selected ? i`<${t}
679
+ ${(e) => e.selected ? o`<${t}
681
680
  data-announcement="selection"
682
681
  >
683
682
  ${(e) => e.locale.dataGrid.cell.selected}
684
683
  </${t}>` : null}
685
684
  <slot></slot>
686
- ${f(Q, i`<${t}
685
+ ${p(Q, o`<${t}
687
686
  data-announcement="button-role"
688
687
  >
689
688
  ${(e) => e.locale.dataGrid.cell.button}
690
689
  </${t}>
691
690
  `)}
692
- ${f(fe, i`<${t}
691
+ ${p(fe, o`<${t}
693
692
  aria-live="polite"
694
693
  data-announcement="sort-state"
695
694
  >
@@ -699,10 +698,10 @@ s(o("data-grid", W, Y, [o("data-grid-row", G, ce, [o("data-grid-cell", Z, (e) =>
699
698
  </div>
700
699
  <slot
701
700
  name="action-items"
702
- ${m("_actionItemsSlottedContent")}
701
+ ${h("_actionItemsSlottedContent")}
703
702
  ></slot>
704
703
  </div>
705
704
  </template>
706
705
  `;
707
- }, [b, g], { styles: H })], { styles: V })], { styles: B }))();
706
+ }, [x, _], { styles: H })], { styles: V })], { styles: B }))();
708
707
  //#endregion
@@ -1,5 +1,4 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- require("../unbundled/numberConverter.cjs");
3
2
  const require_definition = require("../unbundled/definition37.cjs");
4
3
  exports.VwcDatePickerElement = require_definition.DatePicker;
5
4
  exports.datePickerDefinition = require_definition.datePickerDefinition;
@@ -1,3 +1,2 @@
1
- import "../unbundled/numberConverter.js";
2
1
  import { n as registerDatePicker, r as DatePicker, t as datePickerDefinition } from "../unbundled/definition37.js";
3
2
  export { DatePicker as VwcDatePickerElement, datePickerDefinition, registerDatePicker };
@@ -1 +1 @@
1
- const e=require(`../bundled/vivid-element.cjs`),t=require(`../bundled/definition.cjs`);require(`../bundled/numberConverter.cjs`);const n=require(`../bundled/decorate.cjs`),r=require(`../bundled/definition6.cjs`),i=require(`../bundled/definition8.cjs`),a=require(`../bundled/definition12.cjs`),o=require(`../bundled/picker-field.template.cjs`),s=require(`../bundled/single-value-picker.cjs`),c=require(`../bundled/definition19.cjs`),l=require(`../bundled/calendar-picker.template.cjs`),u=require(`../bundled/single-date-picker.cjs`);var d=class extends u.t(s.t(l.n(l.i(o.n)))){_toPresentationValue(e){return l.a(e,this.locale.calendarPicker)}_parsePresentationValue(e){return l.o(e,this.locale.calendarPicker)}_dateValue(){return this.value}_withUpdatedDate(e){return e}constructor(){super(),this._isValidValue=l.l,this._textFieldSize=`20`,this.proxy.type=`date`}get _pickerButtonLabel(){return this.value?this.locale.calendarPicker.changeDateLabel(this._toPresentationValue(this.value)):this.locale.calendarPicker.chooseDateLabel}get _dialogLabel(){return this.locale.calendarPicker.chooseDateLabel}get _textFieldPlaceholder(){return this.locale.calendarPicker.dateFormatPlaceholder}_onDateClick(e){super._onDateClick(e),this._closePopup()}_getCustomValidationError(){return this._isPresentationValueInvalid()?this.locale.calendarPicker.invalidDateError:null}_focusableElsWithinDialog(){return this._dialogEl.querySelectorAll(`button, .vwc-button`)}get _pickerButtonIcon(){return`calendar-line`}};n.t([e.E],d.prototype,`_pickerButtonLabel`,null);var f=e.o(`date-picker`,d,e=>o.t(e,l.t(e),{withSeparator:!1,padded:!0}),[r.t,i.t,a.n,c.t,t.n],{styles:[o.r,l.u],shadowOptions:{delegatesFocus:!0}});e.s(f)();
1
+ const e=require(`../bundled/vivid-element.cjs`),t=require(`../bundled/definition.cjs`),n=require(`../bundled/decorate.cjs`),r=require(`../bundled/definition6.cjs`),i=require(`../bundled/definition8.cjs`),a=require(`../bundled/definition12.cjs`),o=require(`../bundled/picker-field.template.cjs`),s=require(`../bundled/single-value-picker.cjs`),c=require(`../bundled/definition19.cjs`),l=require(`../bundled/calendar-picker.template.cjs`),u=require(`../bundled/single-date-picker.cjs`);var d=class extends u.t(s.t(l.n(l.i(o.n)))){_toPresentationValue(e){return l.a(e,this.locale.calendarPicker)}_parsePresentationValue(e){return l.o(e,this.locale.calendarPicker)}_dateValue(){return this.value}_withUpdatedDate(e){return e}constructor(){super(),this._isValidValue=l.l,this._textFieldSize=`20`,this.proxy.type=`date`}get _pickerButtonLabel(){return this.value?this.locale.calendarPicker.changeDateLabel(this._toPresentationValue(this.value)):this.locale.calendarPicker.chooseDateLabel}get _dialogLabel(){return this.locale.calendarPicker.chooseDateLabel}get _textFieldPlaceholder(){return this.locale.calendarPicker.dateFormatPlaceholder}_onDateClick(e){super._onDateClick(e),this._closePopup()}_getCustomValidationError(){return this._isPresentationValueInvalid()?this.locale.calendarPicker.invalidDateError:null}_focusableElsWithinDialog(){return this._dialogEl.querySelectorAll(`button, .vwc-button`)}get _pickerButtonIcon(){return`calendar-line`}};n.t([e.O],d.prototype,`_pickerButtonLabel`,null);var f=e.s(`date-picker`,d,e=>o.t(e,l.t(e),{withSeparator:!1,padded:!0}),[r.t,i.t,a.n,c.t,t.n],{styles:[o.r,l.u],shadowOptions:{delegatesFocus:!0}});e.c(f)();
@@ -1,6 +1,5 @@
1
- import { E as e, o as t, s as n } from "../bundled/vivid-element.js";
1
+ import { O as e, c as t, s as n } from "../bundled/vivid-element.js";
2
2
  import { n as r } from "../bundled/definition.js";
3
- import "../bundled/numberConverter.js";
4
3
  import { t as i } from "../bundled/decorate.js";
5
4
  import { t as a } from "../bundled/definition6.js";
6
5
  import { t as o } from "../bundled/definition8.js";
@@ -51,7 +50,7 @@ var x = class extends b(d(g(m(c)))) {
51
50
  };
52
51
  //#endregion
53
52
  //#region src/lib/date-picker/index.ts
54
- i([e], x.prototype, "_pickerButtonLabel", null), n(t("date-picker", x, (e) => u(e, v(e), {
53
+ i([e], x.prototype, "_pickerButtonLabel", null), t(n("date-picker", x, (e) => u(e, v(e), {
55
54
  withSeparator: !1,
56
55
  padded: !0
57
56
  }), [
@@ -1,5 +1,4 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- require("../unbundled/numberConverter.cjs");
3
2
  const require_definition = require("../unbundled/definition38.cjs");
4
3
  exports.VwcDateRangePickerElement = require_definition.DateRangePicker;
5
4
  exports.dateRangePickerDefinition = require_definition.dateRangePickerDefinition;
@@ -1,3 +1,2 @@
1
- import "../unbundled/numberConverter.js";
2
1
  import { n as registerDateRangePicker, r as DateRangePicker, t as dateRangePickerDefinition } from "../unbundled/definition38.js";
3
2
  export { DateRangePicker as VwcDateRangePickerElement, dateRangePickerDefinition, registerDateRangePicker };
@@ -1 +1 @@
1
- const e=require(`../bundled/vivid-element.cjs`),t=require(`../bundled/definition.cjs`);require(`../bundled/numberConverter.cjs`);const n=require(`../bundled/decorate.cjs`),r=require(`../bundled/definition6.cjs`),i=require(`../bundled/definition8.cjs`),a=require(`../bundled/definition12.cjs`),o=require(`../bundled/picker-field.template.cjs`),s=require(`../bundled/definition19.cjs`),c=require(`../bundled/calendar-picker.template.cjs`);var l=(e,t)=>`${e} – ${t}`,u=(e,t)=>l(c.a(e.start,t),c.a(e.end,t)),d=(e,t)=>{let n=e.trim().split(/[\s—–-]+/);if(n.length!==2)throw Error(`Invalid date range: ${e}`);let[r,i]=n.map(e=>c.o(e,t));return{start:r,end:i}},f=e=>typeof e==`string`;function p(e){return!!e}var m=class extends c.n(c.i(o.n)){constructor(...e){super(...e),this.initialStart=``,this.initialEnd=``,this.start=``,this.end=``,this.setFormValue=(e,t)=>{f(e)||super.setFormValue(e,t)},this._numCalendars=2,this._hideDatesOutsideMonth=!0,this._textFieldSize=`30`}initialStartChanged(){this.dirtyValue||=(this.start=this.initialStart,!1)}initialEndChanged(){this.dirtyValue||=(this.end=this.initialEnd,!1)}#e=!1;startChanged(){if(this.start&&!c.l(this.start)){this.start=``;return}this.currentStart=this.start,this.dirtyValue=!0,this.#e||this.#n()}endChanged(){if(this.end&&!c.l(this.end)){this.end=``;return}this.currentEnd=this.end,this.dirtyValue=!0,this.#e||this.#n()}currentStartChanged(){this.start=this.currentStart}currentEndChanged(){this.end=this.currentEnd}#t(e){this.#e=!0,e.start!==void 0&&(this.start=e.start,this.$emit(`input:start`)),e.end!==void 0&&(this.end=e.end,this.$emit(`input:end`)),this.#e=!1,this.$emit(`input`),this.$emit(`change`),this.#n()}#n(){if(this.start&&this.end){if(c.s(this.start,this.end)>0){this.#t({start:this.end,end:this.start});return}this.value=l(this.start,this.end)}else this.value=``;this._updatePresentationValue();let e=this.start||this.end;e&&this._adjustSelectedMonthToEnsureVisibilityOf(e),this.#r()}_updatePresentationValue(){this.start&&this.end?this._presentationValue=u({start:this.start,end:this.end},this.locale.calendarPicker):this._presentationValue=``}nameChanged(e,t){super.nameChanged(e,t),this.#r()}#r(){if(!this.name||!this.start||!this.end)this.setFormValue(null);else{let e=new FormData;e.append(this.name,this.start),e.append(this.name,this.end),this.setFormValue(e)}}connectedCallback(){super.connectedCallback(),this.start||=this.initialStart,this.end||=this.initialEnd}#i(){let e=[this.start,this.end].filter(p),t=e.length===1;this._hoverDate&&t&&e.push(this._hoverDate);let[n,r]=e.sort(c.s);return{start:n,end:r}}_isDateAriaSelected(e){return this._isDateInSelectedRange(e)}_isDateInSelectedRange(e){let{start:t,end:n}=this.#i();return t&&n?c.s(e,t)>=0&&c.s(e,n)<=0:!1}_isDateRangeStart(e){return e===this.#i().start}_isDateRangeEnd(e){return e===this.#i().end}_getSelectedDates(){let e=[];return this.start&&e.push(this.start),this.end&&e.push(this.end),e}_onDateClick(e){this.start&&this.end?this.#t({start:e,end:``}):this.start?(this.#t({end:e}),this._closePopup()):this.end?(this.#t({start:e}),this._closePopup()):this.#t({start:e})}get _textFieldPlaceholder(){return l(this.locale.calendarPicker.dateFormatPlaceholder,this.locale.calendarPicker.dateFormatPlaceholder)}_onTextFieldChange(){if(this._presentationValue===``){this.#t({start:``,end:``});return}try{let{start:e,end:t}=d(this._presentationValue,this.locale.calendarPicker);this.#t({start:e,end:t})}catch{let e=this._presentationValue;this.#t({start:``,end:``}),this._presentationValue=e;return}}_onDateMouseEnter(e){this._hoverDate=e}_onDateMouseLeave(){this._hoverDate=void 0}_getCustomValidationError(){return this._isPresentationValueInvalid()?this.locale.calendarPicker.invalidDateRangeError:this.min&&this.start&&c.s(this.start,this.min)<0?this.locale.calendarPicker.startDateAfterMinDateError(c.a(this.min,this.locale.calendarPicker)):this.max&&this.end&&c.s(this.end,this.max)>0?this.locale.calendarPicker.endDateBeforeMaxDateError(c.a(this.max,this.locale.calendarPicker)):null}_isPresentationValueInvalid(){if(this._presentationValue===``)return!1;try{return d(this._presentationValue,this.locale.calendarPicker),!1}catch{return!0}}_onClearClick(){this.#t({start:``,end:``}),super._onClearClick()}formResetCallback(){this.#t({start:this.initialStart,end:this.initialEnd}),super.formResetCallback()}get _pickerButtonLabel(){return this.start&&this.end?this.locale.calendarPicker.changeDatesLabel(u({start:this.start,end:this.end},this.locale.calendarPicker)):this.locale.calendarPicker.chooseDatesLabel}get _dialogLabel(){return this.locale.calendarPicker.chooseDatesLabel}_focusableElsWithinDialog(){return this._dialogEl.querySelectorAll(`button, .vwc-button`)}get _pickerButtonIcon(){return`calendar-line`}};n.t([e.l({mode:`fromView`,attribute:`start`})],m.prototype,`initialStart`,void 0),n.t([e.l({mode:`fromView`,attribute:`end`})],m.prototype,`initialEnd`,void 0),n.t([e.T],m.prototype,`start`,void 0),n.t([e.T],m.prototype,`end`,void 0),n.t([e.l({attribute:`current-start`})],m.prototype,`currentStart`,void 0),n.t([e.l({attribute:`current-end`})],m.prototype,`currentEnd`,void 0),n.t([e.T],m.prototype,`_numCalendars`,void 0),n.t([e.T],m.prototype,`_hoverDate`,void 0),n.t([e.E],m.prototype,`_pickerButtonLabel`,null);var h=e.o(`date-range-picker`,m,e=>o.t(e,c.t(e),{withSeparator:!1,padded:!0}),[r.t,i.t,a.n,s.t,t.n],{styles:[o.r,c.u],shadowOptions:{delegatesFocus:!0}});e.s(h)();
1
+ const e=require(`../bundled/vivid-element.cjs`),t=require(`../bundled/definition.cjs`),n=require(`../bundled/decorate.cjs`),r=require(`../bundled/definition6.cjs`),i=require(`../bundled/definition8.cjs`),a=require(`../bundled/definition12.cjs`),o=require(`../bundled/picker-field.template.cjs`),s=require(`../bundled/definition19.cjs`),c=require(`../bundled/calendar-picker.template.cjs`);var l=(e,t)=>`${e} – ${t}`,u=(e,t)=>l(c.a(e.start,t),c.a(e.end,t)),d=(e,t)=>{let n=e.trim().split(/[\s—–-]+/);if(n.length!==2)throw Error(`Invalid date range: ${e}`);let[r,i]=n.map(e=>c.o(e,t));return{start:r,end:i}},f=e=>typeof e==`string`;function p(e){return!!e}var m=class extends c.n(c.i(o.n)){constructor(...e){super(...e),this.initialStart=``,this.initialEnd=``,this.#e=!1,this.start=``,this.end=``,this.setFormValue=(e,t)=>{f(e)||super.setFormValue(e,t)},this._numCalendars=2,this._hideDatesOutsideMonth=!0,this._textFieldSize=`30`}initialStartChanged(){this.dirtyValue||=(this.start=this.initialStart,!1)}initialEndChanged(){this.dirtyValue||=(this.end=this.initialEnd,!1)}#e;startChanged(){if(this.start&&!c.l(this.start)){this.start=``;return}this.currentStart=this.start,this.dirtyValue=!0,this.#e||this.#n()}endChanged(){if(this.end&&!c.l(this.end)){this.end=``;return}this.currentEnd=this.end,this.dirtyValue=!0,this.#e||this.#n()}currentStartChanged(){this.start=this.currentStart}currentEndChanged(){this.end=this.currentEnd}#t(e){this.#e=!0,e.start!==void 0&&(this.start=e.start,this.$emit(`input:start`)),e.end!==void 0&&(this.end=e.end,this.$emit(`input:end`)),this.#e=!1,this.$emit(`input`),this.$emit(`change`),this.#n()}#n(){if(this.start&&this.end){if(c.s(this.start,this.end)>0){this.#t({start:this.end,end:this.start});return}this.value=l(this.start,this.end)}else this.value=``;this._updatePresentationValue();let e=this.start||this.end;e&&this._adjustSelectedMonthToEnsureVisibilityOf(e),this.#r()}_updatePresentationValue(){this.start&&this.end?this._presentationValue=u({start:this.start,end:this.end},this.locale.calendarPicker):this._presentationValue=``}nameChanged(e,t){super.nameChanged(e,t),this.#r()}#r(){if(!this.name||!this.start||!this.end)this.setFormValue(null);else{let e=new FormData;e.append(this.name,this.start),e.append(this.name,this.end),this.setFormValue(e)}}connectedCallback(){super.connectedCallback(),this.start||=this.initialStart,this.end||=this.initialEnd}#i(){let e=[this.start,this.end].filter(p),t=e.length===1;this._hoverDate&&t&&e.push(this._hoverDate);let[n,r]=e.sort(c.s);return{start:n,end:r}}_isDateAriaSelected(e){return this._isDateInSelectedRange(e)}_isDateInSelectedRange(e){let{start:t,end:n}=this.#i();return t&&n?c.s(e,t)>=0&&c.s(e,n)<=0:!1}_isDateRangeStart(e){return e===this.#i().start}_isDateRangeEnd(e){return e===this.#i().end}_getSelectedDates(){let e=[];return this.start&&e.push(this.start),this.end&&e.push(this.end),e}_onDateClick(e){this.start&&this.end?this.#t({start:e,end:``}):this.start?(this.#t({end:e}),this._closePopup()):this.end?(this.#t({start:e}),this._closePopup()):this.#t({start:e})}get _textFieldPlaceholder(){return l(this.locale.calendarPicker.dateFormatPlaceholder,this.locale.calendarPicker.dateFormatPlaceholder)}_onTextFieldChange(){if(this._presentationValue===``){this.#t({start:``,end:``});return}try{let{start:e,end:t}=d(this._presentationValue,this.locale.calendarPicker);this.#t({start:e,end:t})}catch{let e=this._presentationValue;this.#t({start:``,end:``}),this._presentationValue=e;return}}_onDateMouseEnter(e){this._hoverDate=e}_onDateMouseLeave(){this._hoverDate=void 0}_getCustomValidationError(){return this._isPresentationValueInvalid()?this.locale.calendarPicker.invalidDateRangeError:this.min&&this.start&&c.s(this.start,this.min)<0?this.locale.calendarPicker.startDateAfterMinDateError(c.a(this.min,this.locale.calendarPicker)):this.max&&this.end&&c.s(this.end,this.max)>0?this.locale.calendarPicker.endDateBeforeMaxDateError(c.a(this.max,this.locale.calendarPicker)):null}_isPresentationValueInvalid(){if(this._presentationValue===``)return!1;try{return d(this._presentationValue,this.locale.calendarPicker),!1}catch{return!0}}_onClearClick(){this.#t({start:``,end:``}),super._onClearClick()}formResetCallback(){this.#t({start:this.initialStart,end:this.initialEnd}),super.formResetCallback()}get _pickerButtonLabel(){return this.start&&this.end?this.locale.calendarPicker.changeDatesLabel(u({start:this.start,end:this.end},this.locale.calendarPicker)):this.locale.calendarPicker.chooseDatesLabel}get _dialogLabel(){return this.locale.calendarPicker.chooseDatesLabel}_focusableElsWithinDialog(){return this._dialogEl.querySelectorAll(`button, .vwc-button`)}get _pickerButtonIcon(){return`calendar-line`}};n.t([e.u({mode:`fromView`,attribute:`start`})],m.prototype,`initialStart`,void 0),n.t([e.u({mode:`fromView`,attribute:`end`})],m.prototype,`initialEnd`,void 0),n.t([e.D],m.prototype,`start`,void 0),n.t([e.D],m.prototype,`end`,void 0),n.t([e.u({attribute:`current-start`})],m.prototype,`currentStart`,void 0),n.t([e.u({attribute:`current-end`})],m.prototype,`currentEnd`,void 0),n.t([e.D],m.prototype,`_numCalendars`,void 0),n.t([e.D],m.prototype,`_hoverDate`,void 0),n.t([e.O],m.prototype,`_pickerButtonLabel`,null);var h=e.s(`date-range-picker`,m,e=>o.t(e,c.t(e),{withSeparator:!1,padded:!0}),[r.t,i.t,a.n,s.t,t.n],{styles:[o.r,c.u],shadowOptions:{delegatesFocus:!0}});e.c(h)();
@@ -1,6 +1,5 @@
1
- import { E as e, T as t, l as n, o as r, s as i } from "../bundled/vivid-element.js";
1
+ import { D as e, O as t, c as n, s as r, u as i } from "../bundled/vivid-element.js";
2
2
  import { n as a } from "../bundled/definition.js";
3
- import "../bundled/numberConverter.js";
4
3
  import { t as o } from "../bundled/decorate.js";
5
4
  import { t as s } from "../bundled/definition6.js";
6
5
  import { t as c } from "../bundled/definition8.js";
@@ -23,7 +22,7 @@ function E(e) {
23
22
  }
24
23
  var D = class extends _(h(u)) {
25
24
  constructor(...e) {
26
- super(...e), this.initialStart = "", this.initialEnd = "", this.start = "", this.end = "", this.setFormValue = (e, t) => {
25
+ super(...e), this.initialStart = "", this.initialEnd = "", this.#e = !1, this.start = "", this.end = "", this.setFormValue = (e, t) => {
27
26
  T(e) || super.setFormValue(e, t);
28
27
  }, this._numCalendars = 2, this._hideDatesOutsideMonth = !0, this._textFieldSize = "30";
29
28
  }
@@ -33,7 +32,7 @@ var D = class extends _(h(u)) {
33
32
  initialEndChanged() {
34
33
  this.dirtyValue ||= (this.end = this.initialEnd, !1);
35
34
  }
36
- #e = !1;
35
+ #e;
37
36
  startChanged() {
38
37
  if (this.start && !g(this.start)) {
39
38
  this.start = "";
@@ -197,13 +196,13 @@ var D = class extends _(h(u)) {
197
196
  };
198
197
  //#endregion
199
198
  //#region src/lib/date-range-picker/index.ts
200
- o([n({
199
+ o([i({
201
200
  mode: "fromView",
202
201
  attribute: "start"
203
- })], D.prototype, "initialStart", void 0), o([n({
202
+ })], D.prototype, "initialStart", void 0), o([i({
204
203
  mode: "fromView",
205
204
  attribute: "end"
206
- })], D.prototype, "initialEnd", void 0), o([t], D.prototype, "start", void 0), o([t], D.prototype, "end", void 0), o([n({ attribute: "current-start" })], D.prototype, "currentStart", void 0), o([n({ attribute: "current-end" })], D.prototype, "currentEnd", void 0), o([t], D.prototype, "_numCalendars", void 0), o([t], D.prototype, "_hoverDate", void 0), o([e], D.prototype, "_pickerButtonLabel", null), i(r("date-range-picker", D, (e) => f(e, b(e), {
205
+ })], D.prototype, "initialEnd", void 0), o([e], D.prototype, "start", void 0), o([e], D.prototype, "end", void 0), o([i({ attribute: "current-start" })], D.prototype, "currentStart", void 0), o([i({ attribute: "current-end" })], D.prototype, "currentEnd", void 0), o([e], D.prototype, "_numCalendars", void 0), o([e], D.prototype, "_hoverDate", void 0), o([t], D.prototype, "_pickerButtonLabel", null), n(r("date-range-picker", D, (e) => f(e, b(e), {
207
206
  withSeparator: !1,
208
207
  padded: !0
209
208
  }), [
@@ -1,5 +1,4 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- require("../unbundled/numberConverter.cjs");
3
2
  const require_definition = require("../unbundled/definition39.cjs");
4
3
  exports.VwcDateTimePickerElement = require_definition.DateTimePicker;
5
4
  exports.dateTimePickerDefinition = require_definition.dateTimePickerDefinition;
@@ -1,3 +1,2 @@
1
- import "../unbundled/numberConverter.js";
2
1
  import { n as registerDateTimePicker, r as DateTimePicker, t as dateTimePickerDefinition } from "../unbundled/definition39.js";
3
2
  export { DateTimePicker as VwcDateTimePickerElement, dateTimePickerDefinition, registerDateTimePicker };
@@ -1,8 +1,8 @@
1
- const e=require(`../bundled/vivid-element.cjs`),t=require(`../bundled/definition.cjs`);require(`../bundled/numberConverter.cjs`);const n=require(`../bundled/decorate.cjs`),r=require(`../bundled/definition6.cjs`),i=require(`../bundled/definition8.cjs`),a=require(`../bundled/definition12.cjs`),o=require(`../bundled/picker-field.template.cjs`),s=require(`../bundled/time-selection-picker.template.cjs`),c=require(`../bundled/single-value-picker.cjs`),l=require(`../bundled/definition19.cjs`),u=require(`../bundled/calendar-picker.template.cjs`),d=require(`../bundled/single-date-picker.cjs`);var f=`.date-time-picker{gap:28px;padding-inline-start:12px;display:flex}.time-picker{padding-block:4px 12px}`,p=e=>e.split(`T`)[0]||``,m=e=>e.split(`T`)[1]||``,h=e=>{let[t=``,n=``]=e.split(`T`);return u.l(t)&&s.l(n)},g=(e,t,n,r)=>{let[i,a]=e.split(`T`);return`${u.a(i,t)} ${s.i(a,n,r)}`},_=(e,t,n)=>{let[r,...i]=e.split(` `);return`${u.o(r,t)}T${s.a(i.join(` `),n)}`},v={fromView:e=>e&&h(e)?e:``,toView(e){return e}},y=class extends s.o(d.t(c.t(u.i(o.n)))){get _resolvedMinDate(){return this.minDate||p(this.min)}get _resolvedMaxDate(){return this.maxDate||p(this.max)}get _resolvedMinTime(){return this.minTime||this.min&&p(this.min)===this._dateValue()&&m(this.min)||``}get _resolvedMaxTime(){return this.maxTime||this.max&&p(this.max)===this._dateValue()&&m(this.max)||``}_toPresentationValue(e){return g(e,this.locale.calendarPicker,this._displaySeconds,this._use12hClock)}_parsePresentationValue(e){return _(e,this.locale.calendarPicker,this._use12hClock)}_dateValue(){return p(this.value)}_withUpdatedDate(e){return`${e}T${m(this.value)||`00:00:00`}`}get _timeValue(){return m(this.value)}_withUpdatedTime(e){return`${p(this.value)||u.c()}T${e}`}constructor(){super(),this._isValidValue=h,this._textFieldSize=`30`,this.proxy.type=`datetime-local`,this.proxy.step=`1`,this.min=``,this.minDate=``,this.minTime=``,this.max=``,this.maxDate=``,this.maxTime=``}_getCustomValidationError(){return this._isPresentationValueInvalid()?this.locale.dateTimePicker.invalidDateTimeError:this._dateValue()&&this._resolvedMinDate&&u.s(this._dateValue(),this._resolvedMinDate)<0?this.locale.dateTimePicker.dateBeforeMinDateError(u.a(this._resolvedMinDate,this.locale.calendarPicker)):this._dateValue()&&this._resolvedMaxDate&&u.s(this._dateValue(),this._resolvedMaxDate)>0?this.locale.dateTimePicker.dateAfterMaxDateError(u.a(this._resolvedMaxDate,this.locale.calendarPicker)):this._timeValue&&this._resolvedMinTime&&s.c(this._timeValue,this._resolvedMinTime)<0?this.locale.dateTimePicker.timeBeforeMinTimeError(s.i(this._resolvedMinTime,this._displaySeconds,this._use12hClock)):this._timeValue&&this._resolvedMaxTime&&s.c(this._timeValue,this._resolvedMaxTime)>0?this.locale.dateTimePicker.timeAfterMaxTimeError(s.i(this._resolvedMaxTime,this._displaySeconds,this._use12hClock)):null}get _textFieldPlaceholder(){return`${this.locale.calendarPicker.dateFormatPlaceholder} ${this._timePlaceholder}`}get _pickerButtonLabel(){return this.value?this.locale.dateTimePicker.changeDateTimeLabel(this._toPresentationValue(this.value)):this.locale.dateTimePicker.chooseDateTimeLabel}_focusableElsWithinDialog(){return this._dialogEl.querySelectorAll(`#inline-time-picker, button, .vwc-button`)}get _pickerButtonIcon(){return`calendar-clock-line`}get _dialogLabel(){return this.locale.dateTimePicker.chooseDateTimeLabel}};n.t([e.l({converter:v})],y.prototype,`min`,void 0),n.t([e.l({converter:s.r,attribute:`min-time`})],y.prototype,`minTime`,void 0),n.t([e.l({converter:u.r,attribute:`min-date`})],y.prototype,`minDate`,void 0),n.t([e.l({converter:v})],y.prototype,`max`,void 0),n.t([e.l({converter:s.r,attribute:`max-time`})],y.prototype,`maxTime`,void 0),n.t([e.l({converter:u.r,attribute:`max-date`})],y.prototype,`maxDate`,void 0);var b=e.o(`date-time-picker`,y,t=>o.t(t,e.d`
1
+ const e=require(`../bundled/vivid-element.cjs`),t=require(`../bundled/definition.cjs`),n=require(`../bundled/decorate.cjs`),r=require(`../bundled/definition6.cjs`),i=require(`../bundled/definition8.cjs`),a=require(`../bundled/definition12.cjs`),o=require(`../bundled/picker-field.template.cjs`),s=require(`../bundled/time-selection-picker.template.cjs`),c=require(`../bundled/single-value-picker.cjs`),l=require(`../bundled/definition19.cjs`),u=require(`../bundled/calendar-picker.template.cjs`),d=require(`../bundled/single-date-picker.cjs`);var f=`.date-time-picker{gap:28px;padding-inline-start:12px;display:flex}.time-picker{padding-block:4px 12px}`,p=e=>e.split(`T`)[0]||``,m=e=>e.split(`T`)[1]||``,h=e=>{let[t=``,n=``]=e.split(`T`);return u.l(t)&&s.l(n)},g=(e,t,n,r)=>{let[i,a]=e.split(`T`);return`${u.a(i,t)} ${s.i(a,n,r)}`},_=(e,t,n)=>{let[r,...i]=e.split(` `);return`${u.o(r,t)}T${s.a(i.join(` `),n)}`},v={fromView:e=>e&&h(e)?e:``,toView(e){return e}},y=class extends s.o(d.t(c.t(u.i(o.n)))){get _resolvedMinDate(){return this.minDate||p(this.min)}get _resolvedMaxDate(){return this.maxDate||p(this.max)}get _resolvedMinTime(){return this.minTime||this.min&&p(this.min)===this._dateValue()&&m(this.min)||``}get _resolvedMaxTime(){return this.maxTime||this.max&&p(this.max)===this._dateValue()&&m(this.max)||``}_toPresentationValue(e){return g(e,this.locale.calendarPicker,this._displaySeconds,this._use12hClock)}_parsePresentationValue(e){return _(e,this.locale.calendarPicker,this._use12hClock)}_dateValue(){return p(this.value)}_withUpdatedDate(e){return`${e}T${m(this.value)||`00:00:00`}`}get _timeValue(){return m(this.value)}_withUpdatedTime(e){return`${p(this.value)||u.c()}T${e}`}constructor(){super(),this._isValidValue=h,this._textFieldSize=`30`,this.proxy.type=`datetime-local`,this.proxy.step=`1`,this.min=``,this.minDate=``,this.minTime=``,this.max=``,this.maxDate=``,this.maxTime=``}_getCustomValidationError(){return this._isPresentationValueInvalid()?this.locale.dateTimePicker.invalidDateTimeError:this._dateValue()&&this._resolvedMinDate&&u.s(this._dateValue(),this._resolvedMinDate)<0?this.locale.dateTimePicker.dateBeforeMinDateError(u.a(this._resolvedMinDate,this.locale.calendarPicker)):this._dateValue()&&this._resolvedMaxDate&&u.s(this._dateValue(),this._resolvedMaxDate)>0?this.locale.dateTimePicker.dateAfterMaxDateError(u.a(this._resolvedMaxDate,this.locale.calendarPicker)):this._timeValue&&this._resolvedMinTime&&s.c(this._timeValue,this._resolvedMinTime)<0?this.locale.dateTimePicker.timeBeforeMinTimeError(s.i(this._resolvedMinTime,this._displaySeconds,this._use12hClock)):this._timeValue&&this._resolvedMaxTime&&s.c(this._timeValue,this._resolvedMaxTime)>0?this.locale.dateTimePicker.timeAfterMaxTimeError(s.i(this._resolvedMaxTime,this._displaySeconds,this._use12hClock)):null}get _textFieldPlaceholder(){return`${this.locale.calendarPicker.dateFormatPlaceholder} ${this._timePlaceholder}`}get _pickerButtonLabel(){return this.value?this.locale.dateTimePicker.changeDateTimeLabel(this._toPresentationValue(this.value)):this.locale.dateTimePicker.chooseDateTimeLabel}_focusableElsWithinDialog(){return this._dialogEl.querySelectorAll(`#inline-time-picker, button, .vwc-button`)}get _pickerButtonIcon(){return`calendar-clock-line`}get _dialogLabel(){return this.locale.dateTimePicker.chooseDateTimeLabel}};n.t([e.u({converter:v})],y.prototype,`min`,void 0),n.t([e.u({converter:s.r,attribute:`min-time`})],y.prototype,`minTime`,void 0),n.t([e.u({converter:u.r,attribute:`min-date`})],y.prototype,`minDate`,void 0),n.t([e.u({converter:v})],y.prototype,`max`,void 0),n.t([e.u({converter:s.r,attribute:`max-time`})],y.prototype,`maxTime`,void 0),n.t([e.u({converter:u.r,attribute:`max-date`})],y.prototype,`maxDate`,void 0);var b=e.s(`date-time-picker`,y,t=>o.t(t,e.f`
2
2
  <div class="date-time-picker">
3
3
  ${()=>u.t(t)}
4
4
  <div class="time-picker">
5
5
  ${()=>s.t(t,9)}
6
6
  </div>
7
7
  </div>
8
- `,{withSeparator:!1,padded:!1}),[r.t,i.t,a.n,l.t,s.s,t.n],{styles:[o.r,u.u,f],shadowOptions:{delegatesFocus:!0}});e.s(b)();
8
+ `,{withSeparator:!1,padded:!1}),[r.t,i.t,a.n,l.t,s.s,t.n],{styles:[o.r,u.u,f],shadowOptions:{delegatesFocus:!0}});e.c(b)();