@vonage/vivid 5.2.0 → 5.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (433) hide show
  1. package/accordion-item/definition.cjs +2 -1
  2. package/accordion-item/definition.js +3 -2
  3. package/alert/definition.cjs +1 -1
  4. package/alert/definition.js +2 -2
  5. package/alert/index.cjs +1 -1
  6. package/alert/index.js +1 -1
  7. package/audio-player/definition.cjs +4 -2
  8. package/audio-player/definition.js +4 -2
  9. package/audio-player/index.cjs +5 -3
  10. package/audio-player/index.js +5 -3
  11. package/badge/definition.js +1 -1
  12. package/badge/index.cjs +2 -2
  13. package/badge/index.js +4 -4
  14. package/banner/definition.js +1 -1
  15. package/banner/index.cjs +3 -3
  16. package/banner/index.js +6 -6
  17. package/breadcrumb-item/index.cjs +1 -1
  18. package/breadcrumb-item/index.js +1 -1
  19. package/bundled/affix.cjs +7 -7
  20. package/bundled/affix.js +5 -5
  21. package/bundled/anchored.cjs +1 -1
  22. package/bundled/anchored.js +6 -6
  23. package/bundled/attribute-binding-behaviour.cjs +1 -1
  24. package/bundled/attribute-binding-behaviour.js +15 -13
  25. package/bundled/base-color-picker.cjs +13 -0
  26. package/bundled/base-color-picker.js +194 -0
  27. package/bundled/button.cjs +1 -1
  28. package/bundled/button.js +2 -2
  29. package/bundled/calendar-picker.template.cjs +7 -7
  30. package/bundled/calendar-picker.template.js +118 -118
  31. package/bundled/char-count.cjs +1 -1
  32. package/bundled/char-count.js +1 -1
  33. package/bundled/children.cjs +1 -1
  34. package/bundled/children.js +28 -20
  35. package/bundled/definition.cjs +3 -3
  36. package/bundled/definition.js +38 -38
  37. package/bundled/definition10.cjs +72 -18
  38. package/bundled/definition10.js +351 -65
  39. package/bundled/definition11.cjs +19 -10
  40. package/bundled/definition11.js +217 -36
  41. package/bundled/definition12.cjs +10 -1
  42. package/bundled/definition12.js +38 -14
  43. package/bundled/definition13.cjs +1 -73
  44. package/bundled/definition13.js +15 -354
  45. package/bundled/definition15.cjs +1 -1
  46. package/bundled/definition15.js +1 -1
  47. package/bundled/definition16.cjs +2 -2
  48. package/bundled/definition16.js +8 -8
  49. package/bundled/definition17.cjs +7 -7
  50. package/bundled/definition17.js +17 -17
  51. package/bundled/definition19.cjs +23 -24
  52. package/bundled/definition19.js +151 -163
  53. package/bundled/definition2.cjs +9 -5
  54. package/bundled/definition2.js +21 -17
  55. package/bundled/definition22.cjs +9 -9
  56. package/bundled/definition22.js +31 -31
  57. package/bundled/definition3.cjs +1 -1
  58. package/bundled/definition3.js +1 -1
  59. package/bundled/definition6.cjs +3 -3
  60. package/bundled/definition6.js +28 -28
  61. package/bundled/definition7.cjs +1 -1
  62. package/bundled/definition7.js +6 -6
  63. package/bundled/definition8.cjs +2 -2
  64. package/bundled/definition8.js +4 -4
  65. package/bundled/definition9.cjs +5 -5
  66. package/bundled/definition9.js +394 -392
  67. package/bundled/delegates-aria.cjs +1 -1
  68. package/bundled/delegates-aria.js +59 -46
  69. package/bundled/form-associated.cjs +1 -1
  70. package/bundled/form-associated.js +3 -3
  71. package/bundled/host-semantics.cjs +1 -1
  72. package/bundled/host-semantics.js +48 -34
  73. package/bundled/listbox.cjs +1 -1
  74. package/bundled/listbox.js +82 -102
  75. package/bundled/localized.cjs +1 -1
  76. package/bundled/localized.js +51 -36
  77. package/bundled/mixins.cjs +18 -18
  78. package/bundled/mixins.js +99 -93
  79. package/bundled/normalize.cjs +1 -0
  80. package/bundled/normalize.js +7 -0
  81. package/bundled/picker-field.template.cjs +1 -1
  82. package/bundled/picker-field.template.js +4 -4
  83. package/bundled/ref.cjs +1 -1
  84. package/bundled/ref.js +8 -25
  85. package/bundled/repeat.cjs +1 -1
  86. package/bundled/repeat.js +459 -233
  87. package/bundled/slider.template.cjs +1 -1
  88. package/bundled/slider.template.js +2 -2
  89. package/bundled/slotted.cjs +1 -1
  90. package/bundled/slotted.js +62 -45
  91. package/bundled/time-selection-picker.template.cjs +1 -1
  92. package/bundled/time-selection-picker.template.js +5 -5
  93. package/bundled/vivid-element.cjs +5 -1
  94. package/bundled/vivid-element.js +2159 -1162
  95. package/bundled/when.cjs +1 -1
  96. package/bundled/when.js +8 -7
  97. package/calendar/definition.cjs +1 -1
  98. package/calendar/definition.js +2 -2
  99. package/calendar/index.cjs +1 -1
  100. package/calendar/index.js +15 -15
  101. package/calendar-event/index.cjs +1 -1
  102. package/calendar-event/index.js +1 -1
  103. package/card/definition.cjs +11 -3
  104. package/card/definition.js +11 -3
  105. package/card/index.cjs +19 -11
  106. package/card/index.js +35 -27
  107. package/color-picker/definition.cjs +1079 -0
  108. package/color-picker/definition.js +1073 -0
  109. package/color-picker/index.cjs +127 -0
  110. package/color-picker/index.js +726 -0
  111. package/combobox/definition.cjs +8 -28
  112. package/combobox/definition.js +10 -30
  113. package/combobox/index.cjs +7 -7
  114. package/combobox/index.js +60 -74
  115. package/contextual-help/index.cjs +1 -1
  116. package/contextual-help/index.js +1 -1
  117. package/custom-elements.json +1670 -163
  118. package/data-grid/definition.cjs +862 -27
  119. package/data-grid/definition.js +863 -28
  120. package/data-grid/index.cjs +25 -25
  121. package/data-grid/index.js +175 -168
  122. package/date-picker/definition.cjs +1 -1
  123. package/date-picker/definition.js +1 -1
  124. package/date-picker/index.cjs +1 -1
  125. package/date-picker/index.js +2 -2
  126. package/date-range-picker/definition.cjs +1 -1
  127. package/date-range-picker/definition.js +1 -1
  128. package/date-range-picker/index.cjs +1 -1
  129. package/date-range-picker/index.js +2 -2
  130. package/date-time-picker/definition.cjs +1 -1
  131. package/date-time-picker/definition.js +1 -1
  132. package/date-time-picker/index.cjs +1 -1
  133. package/date-time-picker/index.js +2 -2
  134. package/dial-pad/definition.cjs +4 -0
  135. package/dial-pad/definition.js +4 -0
  136. package/dial-pad/index.cjs +3 -3
  137. package/dial-pad/index.js +42 -39
  138. package/dialog/definition.cjs +6 -3
  139. package/dialog/definition.js +6 -3
  140. package/dialog/index.cjs +22 -19
  141. package/dialog/index.js +48 -45
  142. package/elevation/definition.cjs +1 -1
  143. package/elevation/definition.js +1 -1
  144. package/empty-state/definition.cjs +7 -2
  145. package/empty-state/definition.js +7 -2
  146. package/empty-state/index.cjs +10 -5
  147. package/empty-state/index.js +18 -13
  148. package/fab/definition.js +1 -1
  149. package/fab/index.cjs +2 -2
  150. package/fab/index.js +4 -4
  151. package/file-picker/definition.cjs +2 -2
  152. package/file-picker/definition.js +3 -3
  153. package/file-picker/index.cjs +1 -1
  154. package/file-picker/index.js +4 -4
  155. package/header/definition.cjs +1 -1
  156. package/header/definition.js +1 -1
  157. package/icon/definition.cjs +10 -6
  158. package/icon/definition.js +10 -6
  159. package/index.cjs +7 -4
  160. package/index.js +3 -3
  161. package/lib/accordion/accordion.d.ts +1 -1
  162. package/lib/accordion/definition.d.ts +1 -1
  163. package/lib/accordion-item/accordion-item.d.ts +2 -2
  164. package/lib/action-group/action-group.d.ts +2 -2
  165. package/lib/alert/alert.d.ts +4 -4
  166. package/lib/audio-player/audio-player.d.ts +3 -3
  167. package/lib/avatar/avatar.d.ts +2 -2
  168. package/lib/badge/badge.d.ts +2 -2
  169. package/lib/banner/banner.d.ts +6 -6
  170. package/lib/breadcrumb/breadcrumb.d.ts +2 -2
  171. package/lib/breadcrumb-item/breadcrumb-item.d.ts +2 -2
  172. package/lib/button/button.d.ts +6 -6
  173. package/lib/button/button.template.d.ts +2 -1
  174. package/lib/calendar/calendar.d.ts +1 -1
  175. package/lib/calendar-event/calendar-event.d.ts +2 -2
  176. package/lib/card/card.d.ts +2 -2
  177. package/lib/checkbox/checkbox.d.ts +12 -12
  178. package/lib/color-picker/color-picker.d.ts +2420 -0
  179. package/lib/color-picker/color-picker.template.d.ts +3 -0
  180. package/lib/color-picker/definition.d.ts +4 -0
  181. package/lib/color-picker/locale.d.ts +9 -0
  182. package/lib/combobox/combobox.d.ts +15 -14
  183. package/lib/combobox/combobox.options.d.ts +1 -1
  184. package/lib/components.d.ts +1 -0
  185. package/lib/data-grid/data-grid-cell.d.ts +4 -4
  186. package/lib/data-grid/data-grid-row.d.ts +3 -4
  187. package/lib/data-grid/data-grid.d.ts +1 -2
  188. package/lib/date-picker/date-picker.d.ts +54 -54
  189. package/lib/date-range-picker/date-range-picker.d.ts +28 -28
  190. package/lib/date-time-picker/date-time-picker.d.ts +56 -56
  191. package/lib/dial-pad/dial-pad.d.ts +3 -2
  192. package/lib/dialog/dialog.d.ts +4 -4
  193. package/lib/divider/divider.d.ts +3 -3
  194. package/lib/fab/fab.d.ts +2 -2
  195. package/lib/file-picker/file-picker.d.ts +14 -14
  196. package/lib/header/header.d.ts +2 -2
  197. package/lib/menu/menu.d.ts +4 -4
  198. package/lib/menu-item/menu-item-role.d.ts +1 -1
  199. package/lib/menu-item/menu-item.d.ts +4 -4
  200. package/lib/nav/nav.d.ts +2 -2
  201. package/lib/nav-disclosure/nav-disclosure.d.ts +4 -4
  202. package/lib/nav-item/nav-item.d.ts +4 -4
  203. package/lib/note/note.d.ts +2 -2
  204. package/lib/number-field/number-field.d.ts +18 -18
  205. package/lib/option/option.d.ts +4 -4
  206. package/lib/pagination/pagination.d.ts +2 -2
  207. package/lib/popup/popup.d.ts +1 -1
  208. package/lib/progress/progress.d.ts +2 -2
  209. package/lib/progress-ring/progress-ring.d.ts +2 -2
  210. package/lib/radio/radio.d.ts +6 -6
  211. package/lib/radio-group/radio-group.d.ts +2 -2
  212. package/lib/range-slider/range-slider.d.ts +6 -6
  213. package/lib/rich-text-editor/menubar/menubar.d.ts +2 -2
  214. package/lib/rich-text-editor/rich-text-editor.d.ts +2 -2
  215. package/lib/searchable-select/locale.d.ts +4 -0
  216. package/lib/searchable-select/option-tag.d.ts +2 -2
  217. package/lib/searchable-select/searchable-select.d.ts +21 -18
  218. package/lib/select/select.d.ts +19 -17
  219. package/lib/selectable-box/selectable-box.d.ts +2 -2
  220. package/lib/simple-color-picker/locale.d.ts +0 -1
  221. package/lib/simple-color-picker/simple-color-picker.d.ts +47 -821
  222. package/lib/slider/slider.d.ts +7 -7
  223. package/lib/split-button/split-button.d.ts +6 -6
  224. package/lib/switch/switch.d.ts +4 -4
  225. package/lib/tab/tab.d.ts +6 -6
  226. package/lib/tab-panel/tab-panel.d.ts +2 -2
  227. package/lib/tabs/tabs.d.ts +2 -2
  228. package/lib/tag/tag.d.ts +6 -6
  229. package/lib/tag-group/tag-group.d.ts +2 -2
  230. package/lib/tag-name-map.d.ts +2 -1
  231. package/lib/text-area/text-area.d.ts +17 -17
  232. package/lib/text-field/text-field.d.ts +19 -19
  233. package/lib/time-picker/time-picker.d.ts +28 -28
  234. package/lib/toggletip/toggletip.d.ts +4 -4
  235. package/lib/tooltip/tooltip.d.ts +2 -2
  236. package/lib/tree-item/tree-item.d.ts +4 -4
  237. package/lib/tree-view/tree-view.d.ts +2 -2
  238. package/lib/video-player/video-player.d.ts +2 -2
  239. package/locales/de-DE.cjs +17 -2
  240. package/locales/de-DE.js +17 -2
  241. package/locales/en-GB.cjs +17 -2
  242. package/locales/en-GB.js +17 -2
  243. package/locales/en-US.cjs +17 -2
  244. package/locales/en-US.js +17 -2
  245. package/locales/ja-JP.cjs +17 -2
  246. package/locales/ja-JP.js +17 -2
  247. package/locales/zh-CN.cjs +17 -2
  248. package/locales/zh-CN.js +17 -2
  249. package/menu/definition.cjs +6 -6
  250. package/menu/definition.js +7 -7
  251. package/nav-disclosure/definition.js +1 -1
  252. package/nav-item/definition.js +1 -1
  253. package/note/definition.js +1 -1
  254. package/note/index.cjs +2 -2
  255. package/note/index.js +4 -4
  256. package/number-field/definition.cjs +1 -1
  257. package/number-field/definition.js +3 -3
  258. package/number-field/index.cjs +5 -5
  259. package/number-field/index.js +21 -21
  260. package/option/definition.cjs +6 -77
  261. package/option/definition.js +3 -78
  262. package/option/index.cjs +1 -1
  263. package/option/index.js +1 -1
  264. package/package.json +34 -8
  265. package/pagination/definition.cjs +2 -1
  266. package/pagination/definition.js +2 -1
  267. package/pagination/index.cjs +12 -12
  268. package/pagination/index.js +59 -59
  269. package/popup/definition.cjs +2 -2
  270. package/popup/definition.js +2 -2
  271. package/progress/index.cjs +1 -1
  272. package/progress/index.js +1 -1
  273. package/radio/definition.cjs +9 -9
  274. package/radio/definition.js +10 -10
  275. package/radio-group/definition.cjs +2 -1
  276. package/radio-group/definition.js +2 -1
  277. package/radio-group/index.cjs +5 -5
  278. package/radio-group/index.js +80 -77
  279. package/range-slider/definition.cjs +1 -1
  280. package/range-slider/definition.js +1 -1
  281. package/range-slider/index.cjs +1 -1
  282. package/range-slider/index.js +1 -1
  283. package/rich-text-editor/definition.cjs +3 -4
  284. package/rich-text-editor/definition.js +3 -4
  285. package/rich-text-editor/index.cjs +27 -27
  286. package/rich-text-editor/index.js +1208 -1198
  287. package/searchable-select/definition.cjs +106 -14
  288. package/searchable-select/definition.js +107 -15
  289. package/searchable-select/index.cjs +81 -69
  290. package/searchable-select/index.js +362 -276
  291. package/select/definition.cjs +25 -42
  292. package/select/definition.js +26 -43
  293. package/selectable-box/definition.cjs +1 -1
  294. package/selectable-box/definition.js +1 -1
  295. package/selectable-box/index.cjs +3 -3
  296. package/selectable-box/index.js +20 -20
  297. package/shared/aria/aria-change-subscription.d.ts +0 -1
  298. package/shared/aria/aria-mixin.d.ts +3 -3
  299. package/shared/aria/delegate-aria-behavior.d.ts +5 -10
  300. package/shared/aria/delegates-aria.d.ts +3 -3
  301. package/shared/aria/host-semantics-behavior.d.ts +5 -8
  302. package/shared/aria/host-semantics.d.ts +3 -3
  303. package/shared/color-picker/base-color-picker.d.ts +436 -0
  304. package/shared/color-picker/index.d.ts +1 -0
  305. package/shared/color-picker/locale.d.ts +3 -0
  306. package/shared/color-picker/utils.d.ts +1 -0
  307. package/shared/deprecation/replaced-props.d.ts +317 -2
  308. package/shared/design-system/defineVividComponent.d.ts +2 -2
  309. package/shared/feedback/feedback-message.d.ts +2 -2
  310. package/shared/feedback/mixins.d.ts +4 -4
  311. package/shared/foundation/button/button.d.ts +4 -4
  312. package/shared/foundation/form-associated/form-associated.d.ts +4 -4
  313. package/shared/foundation/listbox/listbox.d.ts +4 -0
  314. package/shared/foundation/vivid-element/vivid-element.d.ts +335 -8
  315. package/shared/localization/Locale.d.ts +4 -0
  316. package/shared/patterns/affix.d.ts +4 -4
  317. package/shared/patterns/anchored.d.ts +4 -4
  318. package/shared/patterns/char-count/char-count.d.ts +2 -2
  319. package/shared/patterns/form-elements/form-element.d.ts +4 -4
  320. package/shared/patterns/form-elements/with-contextual-help.d.ts +6 -6
  321. package/shared/patterns/form-elements/with-error-text.d.ts +6 -6
  322. package/shared/patterns/form-elements/with-success-text.d.ts +2 -2
  323. package/shared/patterns/linkable.d.ts +2 -2
  324. package/shared/patterns/localized.d.ts +2 -2
  325. package/shared/patterns/trapped-focus.d.ts +2 -2
  326. package/shared/picker-field/mixins/calendar-picker.d.ts +14 -14
  327. package/shared/picker-field/mixins/calendar-picker.template.d.ts +14 -14
  328. package/shared/picker-field/mixins/inline-time-picker/inline-time-picker.d.ts +2 -2
  329. package/shared/picker-field/mixins/min-max-calendar-picker.d.ts +28 -28
  330. package/shared/picker-field/mixins/single-date-picker.d.ts +40 -40
  331. package/shared/picker-field/mixins/single-value-picker.d.ts +12 -12
  332. package/shared/picker-field/mixins/time-selection-picker.d.ts +29 -29
  333. package/shared/picker-field/mixins/time-selection-picker.template.d.ts +28 -28
  334. package/shared/picker-field/picker-field.d.ts +14 -14
  335. package/shared/templating/attribute-binding-behaviour.d.ts +3 -4
  336. package/shared/templating/render-in-light-dom.d.ts +13 -12
  337. package/side-drawer/index.cjs +1 -1
  338. package/side-drawer/index.js +1 -1
  339. package/simple-color-picker/definition.cjs +29 -216
  340. package/simple-color-picker/definition.js +30 -217
  341. package/simple-color-picker/index.cjs +9 -21
  342. package/simple-color-picker/index.js +71 -185
  343. package/slider/definition.cjs +1 -1
  344. package/slider/definition.js +1 -1
  345. package/split-button/definition.js +1 -1
  346. package/styles/core/all.css +1 -1
  347. package/styles/core/theme.css +1 -1
  348. package/styles/core/typography.css +1 -1
  349. package/styles/tokens/theme-dark.css +4 -4
  350. package/styles/tokens/theme-light.css +4 -4
  351. package/styles/tokens/vivid-2-compat.css +1 -1
  352. package/switch/index.cjs +2 -2
  353. package/switch/index.js +4 -4
  354. package/tab/definition.js +1 -1
  355. package/tabs/definition.cjs +1 -1
  356. package/tabs/definition.js +2 -2
  357. package/tabs/index.cjs +2 -2
  358. package/tabs/index.js +16 -16
  359. package/tag/definition.js +1 -1
  360. package/tag/index.cjs +1 -1
  361. package/tag/index.js +1 -1
  362. package/text-area/index.cjs +3 -3
  363. package/text-area/index.js +8 -8
  364. package/text-field/definition.cjs +2 -2
  365. package/text-field/definition.js +4 -4
  366. package/text-field/index.cjs +1 -1
  367. package/text-field/index.js +1 -1
  368. package/time-picker/definition.cjs +1 -1
  369. package/time-picker/definition.js +1 -1
  370. package/time-picker/index.cjs +1 -1
  371. package/time-picker/index.js +2 -2
  372. package/toggletip/definition.cjs +2 -2
  373. package/toggletip/definition.js +3 -3
  374. package/tooltip/definition.cjs +1 -1
  375. package/tooltip/definition.js +1 -1
  376. package/tree-item/definition.cjs +1 -1
  377. package/tree-item/definition.js +1 -1
  378. package/tree-view/definition.cjs +2 -2
  379. package/tree-view/definition.js +3 -3
  380. package/tree-view/index.cjs +2 -2
  381. package/tree-view/index.js +6 -6
  382. package/unbundled/_commonjsHelpers.cjs +36 -0
  383. package/unbundled/_commonjsHelpers.js +32 -0
  384. package/unbundled/affix.cjs +1 -1
  385. package/unbundled/affix.js +2 -2
  386. package/unbundled/attribute-binding-behaviour.cjs +11 -10
  387. package/unbundled/attribute-binding-behaviour.js +11 -10
  388. package/unbundled/base-color-picker.cjs +278 -0
  389. package/unbundled/base-color-picker.js +275 -0
  390. package/unbundled/button.cjs +1 -1
  391. package/unbundled/button.js +2 -2
  392. package/unbundled/calendar-picker.template.cjs +4 -4
  393. package/unbundled/calendar-picker.template.js +5 -5
  394. package/unbundled/definition.js +1 -1
  395. package/unbundled/definition2.cjs +1 -1
  396. package/unbundled/definition2.js +3 -3
  397. package/unbundled/definition3.cjs +222 -140
  398. package/unbundled/definition3.js +220 -138
  399. package/unbundled/definition4.cjs +145 -235
  400. package/unbundled/definition4.js +143 -233
  401. package/unbundled/definition5.cjs +269 -27
  402. package/unbundled/definition5.js +267 -26
  403. package/unbundled/definition6.cjs +56 -0
  404. package/unbundled/definition6.js +52 -0
  405. package/unbundled/delegates-aria.cjs +67 -33
  406. package/unbundled/delegates-aria.js +69 -35
  407. package/unbundled/form-associated.cjs +2 -2
  408. package/unbundled/form-associated.js +3 -3
  409. package/unbundled/host-semantics.cjs +47 -22
  410. package/unbundled/host-semantics.js +48 -23
  411. package/unbundled/listbox.cjs +41 -63
  412. package/unbundled/listbox.js +39 -61
  413. package/unbundled/mixins.cjs +34 -27
  414. package/unbundled/mixins.js +35 -28
  415. package/unbundled/picker-field.template.cjs +3 -3
  416. package/unbundled/picker-field.template.js +4 -4
  417. package/unbundled/slider.template.cjs +1 -1
  418. package/unbundled/slider.template.js +1 -1
  419. package/unbundled/time-selection-picker.template.cjs +4 -4
  420. package/unbundled/time-selection-picker.template.js +5 -5
  421. package/unbundled/vivid-element.cjs +22 -15
  422. package/unbundled/vivid-element.js +23 -15
  423. package/video-player/definition.cjs +69047 -1
  424. package/video-player/definition.js +69047 -1
  425. package/video-player/index.cjs +36 -36
  426. package/video-player/index.js +1895 -1905
  427. package/visually-hidden/index.cjs +1 -1
  428. package/visually-hidden/index.js +1 -1
  429. package/vivid.api.json +719 -224
  430. package/bundled/option.cjs +0 -1
  431. package/bundled/option.js +0 -158
  432. package/unbundled/option.cjs +0 -217
  433. package/unbundled/option.js +0 -214
@@ -1,15 +1,16 @@
1
- import { I as B, i as Q } from "../bundled/definition2.js";
2
- import { V as I, h as f, a as m, o as n, D as x, O as F, n as j, c as N, d as E } from "../bundled/vivid-element.js";
3
- import { V as W, v as J } from "../bundled/definition12.js";
4
- import { d as X, e as Y, f as O, k as P, a as z, g as Z, h as ee, i as te, j as oe, b as le, c as ie, l as ae } from "../bundled/key-codes.js";
1
+ import { I as j, i as N } from "../bundled/definition2.js";
2
+ import { V as E, h as f, a as m, o as a, b as z, U as x, O as R, n as W, c as J, d as F } from "../bundled/vivid-element.js";
3
+ import { V as X, v as Y } from "../bundled/definition13.js";
5
4
  import { R as G } from "../bundled/repeat.js";
6
- import { H as A, a as L } from "../bundled/host-semantics.js";
7
- import { c as M } from "../bundled/children.js";
8
- import { s as U, e as K } from "../bundled/slotted.js";
9
- import { L as ne } from "../bundled/localized.js";
10
- import { c as V } from "../bundled/class-names.js";
11
- import { w as q } from "../bundled/when.js";
12
- const R = "focus", S = "focusin", w = "focusout", y = "keydown", re = ":host{display:block}:host([generate-header=sticky]){max-block-size:400px}.base{--scrollbar-track-color: transparent;--scrollbar-thumb-color: color-mix(in srgb, var(--vvd-color-neutral-950), transparent 70%)}.base{scrollbar-color:var(--scrollbar-thumb-color) var(--scrollbar-track-color);scrollbar-width:thin}.base ::-webkit-scrollbar{width:4px}.base ::-webkit-scrollbar-track{background:var(--scrollbar-track-color)}.base ::-webkit-scrollbar-thumb{border:0;border-radius:4px;background-color:var(--scrollbar-fallback-track-color, var(--scrollbar-thumb-color))}.base{position:relative;overflow:auto;block-size:inherit;inline-size:100%;max-block-size:inherit}", se = ".base.connotation-cta{--_connotation-color-primary: var(--vvd-data-grid-row-cta-primary, var(--vvd-color-cta-500));--_connotation-color-primary-text: var(--vvd-data-grid-row-cta-primary-text, var(--vvd-color-canvas));--_connotation-color-primary-increment: var(--vvd-data-grid-row-cta-primary-increment, var(--vvd-color-cta-600));--_connotation-color-firm: var(--vvd-data-grid-row-cta-firm, var(--vvd-color-cta-600));--_connotation-color-faint: var(--vvd-data-grid-row-cta-faint, var(--vvd-color-cta-50));--_connotation-color-soft: var(--vvd-data-grid-row-cta-soft, var(--vvd-color-cta-100));--_connotation-color-pale: var(--vvd-data-grid-row-cta-pale, var(--vvd-color-cta-300));--_connotation-color-dim: var(--vvd-data-grid-row-cta-dim, var(--vvd-color-cta-200))}.base:not(.connotation-cta){--_connotation-color-primary: var(--vvd-data-grid-row-accent-primary, var(--vvd-color-canvas-text));--_connotation-color-primary-text: var(--vvd-data-grid-row-accent-primary-text, var(--vvd-color-canvas));--_connotation-color-primary-increment: var(--vvd-data-grid-row-accent-primary-increment, var(--vvd-color-neutral-800));--_connotation-color-firm: var(--vvd-data-grid-row-accent-firm, var(--vvd-color-canvas-text));--_connotation-color-faint: var(--vvd-data-grid-row-accent-faint, var(--vvd-color-neutral-50));--_connotation-color-soft: var(--vvd-data-grid-row-accent-soft, var(--vvd-color-neutral-100));--_connotation-color-pale: var(--vvd-data-grid-row-accent-pale, var(--vvd-color-neutral-300));--_connotation-color-dim: var(--vvd-data-grid-row-accent-dim, var(--vvd-color-neutral-200))}.base{--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: transparent;--_appearance-color-outline: transparent}@media (hover: hover){.base:hover:where(:not(.disabled,:disabled,.readonly)){--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: var(--_connotation-color-faint);--_appearance-color-outline: transparent}}.base.hover:where(:not(.disabled,:disabled,.readonly)){--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: var(--_connotation-color-faint);--_appearance-color-outline: transparent}.base.selected:where(:not(.disabled,:disabled)){--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: var(--_connotation-color-soft);--_appearance-color-outline: transparent}@media (hover: hover){.base.selected:hover:where(:not(.disabled,:disabled,.readonly)){--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: var(--_connotation-color-dim);--_appearance-color-outline: transparent}}.base.selected.hover:where(:not(.disabled,:disabled,.readonly)){--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: var(--_connotation-color-dim);--_appearance-color-outline: transparent}.base{display:grid;width:100%;box-sizing:border-box;color:var(--vvd-color-canvas-text)}:host([row-type=sticky-header]) .base{position:sticky;z-index:9;top:0;background:var(--data-grid-row-background, var(--vvd-color-canvas))}:host([row-type=hidden-header]) .base{display:none}:host(:is([selected]):not([row-type*=header])) .base{background-color:var(--_appearance-color-fill)}", ce = ':host{block-size:100%;min-inline-size:80px}:host(:focus-visible){outline:none}:host([data-fixed]){position:sticky;z-index:5;background:var(--data-grid-cell-background, var(--vvd-color-surface-2dp))}:host([data-fixed]):before{position:absolute;z-index:1;top:0;right:0;width:1px;block-size:100%;box-shadow:4px 0 4px #0000001a,2px 0 2px #0000000d,1px 0 1px #0000000d;content:"";pointer-events:none}.base.connotation-cta{--_connotation-color-primary: var(--vvd-data-grid-cell-cta-primary, var(--vvd-color-cta-500));--_connotation-color-primary-text: var(--vvd-data-grid-cell-cta-primary-text, var(--vvd-color-canvas));--_connotation-color-primary-increment: var(--vvd-data-grid-cell-cta-primary-increment, var(--vvd-color-cta-600));--_connotation-color-firm: var(--vvd-data-grid-cell-cta-firm, var(--vvd-color-cta-600));--_connotation-color-soft: var(--vvd-data-grid-cell-cta-soft, var(--vvd-color-cta-100));--_connotation-color-faint: var(--vvd-data-grid-cell-cta-faint, var(--vvd-color-cta-50));--_connotation-color-pale: var(--vvd-data-grid-cell-cta-pale, var(--vvd-color-cta-300));--_connotation-color-dim: var(--vvd-data-grid-cell-cta-dim, var(--vvd-color-cta-200))}.base:not(.connotation-cta){--_connotation-color-primary: var(--vvd-data-grid-cell-accent-primary, var(--vvd-color-canvas-text));--_connotation-color-primary-text: var(--vvd-data-grid-cell-accent-primary-text, var(--vvd-color-canvas));--_connotation-color-primary-increment: var(--vvd-data-grid-cell-accent-primary-increment, var(--vvd-color-neutral-800));--_connotation-color-firm: var(--vvd-data-grid-cell-accent-firm, var(--vvd-color-canvas-text));--_connotation-color-soft: var(--vvd-data-grid-cell-accent-soft, var(--vvd-color-neutral-100));--_connotation-color-faint: var(--vvd-data-grid-cell-accent-faint, var(--vvd-color-neutral-50));--_connotation-color-pale: var(--vvd-data-grid-cell-accent-pale, var(--vvd-color-neutral-300));--_connotation-color-dim: var(--vvd-data-grid-cell-accent-dim, var(--vvd-color-neutral-200))}.base{--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: transparent;--_appearance-color-outline: transparent}@media (hover: hover){.base:hover:where(:not(.disabled,:disabled,.readonly)){--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: var(--_connotation-color-faint);--_appearance-color-outline: transparent}}.base.hover:where(:not(.disabled,:disabled,.readonly)){--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: var(--_connotation-color-faint);--_appearance-color-outline: transparent}.base.selected:where(:not(.disabled,:disabled)){--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: var(--_connotation-color-soft);--_appearance-color-outline: transparent}@media (hover: hover){.base.selected:hover:where(:not(.disabled,:disabled,.readonly)){--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: var(--_connotation-color-dim);--_appearance-color-outline: transparent}}.base.selected.hover:where(:not(.disabled,:disabled,.readonly)){--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: var(--_connotation-color-dim);--_appearance-color-outline: transparent}.base{display:flex;box-sizing:border-box;align-items:center;border-bottom:1px solid var(--vvd-color-neutral-300);block-size:var(--data-grid-cell-block-size, var(--_data-grid-cell-default-block-size));color:var(--_appearance-color-text);font:var(--vvd-typography-base);min-block-size:calc(1px*(48 + 4*clamp(-1,var(--vvd-size-density, 0),2)));padding-block:13px 14px;padding-inline:12px}:host(:focus-visible) .base{--focus-stroke-gap-color: transparent;box-shadow:0 0 0 4px color-mix(in srgb,var(--vvd-color-cta-500),transparent 85%),inset 0 0 0 3px var(--focus-stroke-gap-color, currentColor);outline:1px solid var(--focus-stroke-color, var(--vvd-color-cta-500));outline-offset:calc(-1px - var(--focus-inset, 0px))}:host([cell-type=columnheader]) .base{border-color:var(--vvd-color-canvas-text);font:var(--vvd-typography-base-bold);--_data-grid-cell-default-block-size: calc(1px*(48 + 4*clamp(-1, var(--vvd-size-density, 0), 2))) ;--_data-grid-cell-default-white-space: nowrap}:host(:not([cell-type=columnheader])) .base{--_data-grid-cell-default-block-size: 100%;--_data-grid-cell-default-white-space: normal}:host(:is([selected]):not([cell-type=columnheader])) .base{background-color:var(--_appearance-color-fill)}slot{display:block;overflow:hidden;text-overflow:ellipsis;white-space:var(--data-grid-cell-white-space, var(--_data-grid-cell-default-white-space))}:host(:not([cell-type=columnheader][aria-sort])) slot{inline-size:100%}.header-icon{margin-inline-start:16px}', D = {
5
+ import { n as D } from "../bundled/normalize.js";
6
+ import { d as Z, e as ee, f as A, k as P, a as L, g as te, h as oe, i as le, j as ie, b as ne, c as ae, l as re } from "../bundled/key-codes.js";
7
+ import { H as M, a as U } from "../bundled/host-semantics.js";
8
+ import { c as K } from "../bundled/children.js";
9
+ import { s as V, e as q } from "../bundled/slotted.js";
10
+ import { L as se } from "../bundled/localized.js";
11
+ import { c as Q } from "../bundled/class-names.js";
12
+ import { w as B } from "../bundled/when.js";
13
+ const S = "focus", H = "focusin", w = "focusout", y = "keydown", ce = ":host{display:block}:host([generate-header=sticky]){max-block-size:400px}.base{--scrollbar-track-color: transparent;--scrollbar-thumb-color: color-mix(in srgb, var(--vvd-color-neutral-950), transparent 70%)}.base{scrollbar-color:var(--scrollbar-thumb-color) var(--scrollbar-track-color);scrollbar-width:thin}.base ::-webkit-scrollbar{width:4px}.base ::-webkit-scrollbar-track{background:var(--scrollbar-track-color)}.base ::-webkit-scrollbar-thumb{border:0;border-radius:4px;background-color:var(--scrollbar-fallback-track-color, var(--scrollbar-thumb-color))}.base{position:relative;overflow:auto;block-size:inherit;inline-size:100%;max-block-size:inherit}", de = ".base.connotation-cta{--_connotation-color-primary: var(--vvd-data-grid-row-cta-primary, var(--vvd-color-cta-500));--_connotation-color-primary-text: var(--vvd-data-grid-row-cta-primary-text, var(--vvd-color-canvas));--_connotation-color-primary-increment: var(--vvd-data-grid-row-cta-primary-increment, var(--vvd-color-cta-600));--_connotation-color-firm: var(--vvd-data-grid-row-cta-firm, var(--vvd-color-cta-600));--_connotation-color-faint: var(--vvd-data-grid-row-cta-faint, var(--vvd-color-cta-50));--_connotation-color-soft: var(--vvd-data-grid-row-cta-soft, var(--vvd-color-cta-100));--_connotation-color-pale: var(--vvd-data-grid-row-cta-pale, var(--vvd-color-cta-300));--_connotation-color-dim: var(--vvd-data-grid-row-cta-dim, var(--vvd-color-cta-200))}.base:not(.connotation-cta){--_connotation-color-primary: var(--vvd-data-grid-row-accent-primary, var(--vvd-color-canvas-text));--_connotation-color-primary-text: var(--vvd-data-grid-row-accent-primary-text, var(--vvd-color-canvas));--_connotation-color-primary-increment: var(--vvd-data-grid-row-accent-primary-increment, var(--vvd-color-neutral-800));--_connotation-color-firm: var(--vvd-data-grid-row-accent-firm, var(--vvd-color-canvas-text));--_connotation-color-faint: var(--vvd-data-grid-row-accent-faint, var(--vvd-color-neutral-50));--_connotation-color-soft: var(--vvd-data-grid-row-accent-soft, var(--vvd-color-neutral-100));--_connotation-color-pale: var(--vvd-data-grid-row-accent-pale, var(--vvd-color-neutral-300));--_connotation-color-dim: var(--vvd-data-grid-row-accent-dim, var(--vvd-color-neutral-200))}.base{--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: transparent;--_appearance-color-outline: transparent}@media (hover: hover){.base:hover:where(:not(.disabled,:disabled,.readonly)){--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: var(--_connotation-color-faint);--_appearance-color-outline: transparent}}.base.hover:where(:not(.disabled,:disabled,.readonly)){--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: var(--_connotation-color-faint);--_appearance-color-outline: transparent}.base.selected:where(:not(.disabled,:disabled)){--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: var(--_connotation-color-soft);--_appearance-color-outline: transparent}@media (hover: hover){.base.selected:hover:where(:not(.disabled,:disabled,.readonly)){--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: var(--_connotation-color-dim);--_appearance-color-outline: transparent}}.base.selected.hover:where(:not(.disabled,:disabled,.readonly)){--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: var(--_connotation-color-dim);--_appearance-color-outline: transparent}.base{display:grid;width:100%;box-sizing:border-box;color:var(--vvd-color-canvas-text)}:host([row-type=sticky-header]) .base{position:sticky;z-index:9;top:0;background:var(--data-grid-row-background, var(--vvd-color-canvas))}:host([row-type=hidden-header]) .base{display:none}:host(:is([selected]):not([row-type*=header])) .base{background-color:var(--_appearance-color-fill)}", ue = ':host{block-size:100%;min-inline-size:80px}:host(:focus-visible){outline:none}:host([data-fixed]){position:sticky;z-index:5;background:var(--data-grid-cell-background, var(--vvd-color-surface-2dp))}:host([data-fixed]):before{position:absolute;z-index:1;top:0;right:0;width:1px;block-size:100%;box-shadow:4px 0 4px #0000001a,2px 0 2px #0000000d,1px 0 1px #0000000d;content:"";pointer-events:none}.base.connotation-cta{--_connotation-color-primary: var(--vvd-data-grid-cell-cta-primary, var(--vvd-color-cta-500));--_connotation-color-primary-text: var(--vvd-data-grid-cell-cta-primary-text, var(--vvd-color-canvas));--_connotation-color-primary-increment: var(--vvd-data-grid-cell-cta-primary-increment, var(--vvd-color-cta-600));--_connotation-color-firm: var(--vvd-data-grid-cell-cta-firm, var(--vvd-color-cta-600));--_connotation-color-soft: var(--vvd-data-grid-cell-cta-soft, var(--vvd-color-cta-100));--_connotation-color-faint: var(--vvd-data-grid-cell-cta-faint, var(--vvd-color-cta-50));--_connotation-color-pale: var(--vvd-data-grid-cell-cta-pale, var(--vvd-color-cta-300));--_connotation-color-dim: var(--vvd-data-grid-cell-cta-dim, var(--vvd-color-cta-200))}.base:not(.connotation-cta){--_connotation-color-primary: var(--vvd-data-grid-cell-accent-primary, var(--vvd-color-canvas-text));--_connotation-color-primary-text: var(--vvd-data-grid-cell-accent-primary-text, var(--vvd-color-canvas));--_connotation-color-primary-increment: var(--vvd-data-grid-cell-accent-primary-increment, var(--vvd-color-neutral-800));--_connotation-color-firm: var(--vvd-data-grid-cell-accent-firm, var(--vvd-color-canvas-text));--_connotation-color-soft: var(--vvd-data-grid-cell-accent-soft, var(--vvd-color-neutral-100));--_connotation-color-faint: var(--vvd-data-grid-cell-accent-faint, var(--vvd-color-neutral-50));--_connotation-color-pale: var(--vvd-data-grid-cell-accent-pale, var(--vvd-color-neutral-300));--_connotation-color-dim: var(--vvd-data-grid-cell-accent-dim, var(--vvd-color-neutral-200))}.base{--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: transparent;--_appearance-color-outline: transparent}@media (hover: hover){.base:hover:where(:not(.disabled,:disabled,.readonly)){--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: var(--_connotation-color-faint);--_appearance-color-outline: transparent}}.base.hover:where(:not(.disabled,:disabled,.readonly)){--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: var(--_connotation-color-faint);--_appearance-color-outline: transparent}.base.selected:where(:not(.disabled,:disabled)){--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: var(--_connotation-color-soft);--_appearance-color-outline: transparent}@media (hover: hover){.base.selected:hover:where(:not(.disabled,:disabled,.readonly)){--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: var(--_connotation-color-dim);--_appearance-color-outline: transparent}}.base.selected.hover:where(:not(.disabled,:disabled,.readonly)){--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: var(--_connotation-color-dim);--_appearance-color-outline: transparent}.base{display:flex;box-sizing:border-box;align-items:center;border-bottom:1px solid var(--vvd-color-neutral-300);block-size:var(--data-grid-cell-block-size, var(--_data-grid-cell-default-block-size));color:var(--_appearance-color-text);font:var(--vvd-typography-base);min-block-size:calc(1px*(48 + 4*clamp(-1,var(--vvd-size-density, 0),2)));padding-block:13px 14px;padding-inline:12px}:host(:focus-visible) .base{--focus-stroke-gap-color: transparent;box-shadow:0 0 0 4px color-mix(in srgb,var(--vvd-color-cta-500),transparent 85%),inset 0 0 0 3px var(--focus-stroke-gap-color, currentColor);outline:1px solid var(--focus-stroke-color, var(--vvd-color-cta-500));outline-offset:calc(-1px - var(--focus-inset, 0px))}:host([cell-type=columnheader]) .base{border-color:var(--vvd-color-canvas-text);font:var(--vvd-typography-base-bold);--_data-grid-cell-default-block-size: calc(1px*(48 + 4*clamp(-1, var(--vvd-size-density, 0), 2))) ;--_data-grid-cell-default-white-space: nowrap}:host(:not([cell-type=columnheader])) .base{--_data-grid-cell-default-block-size: 100%;--_data-grid-cell-default-white-space: normal}:host(:is([selected]):not([cell-type=columnheader])) .base{background-color:var(--_appearance-color-fill)}slot{display:block;overflow:hidden;text-overflow:ellipsis;white-space:var(--data-grid-cell-white-space, var(--_data-grid-cell-default-white-space))}:host(:not([cell-type=columnheader][aria-sort])) slot{inline-size:100%}.header-icon{margin-inline-start:16px}', T = {
13
14
  none: "none",
14
15
  ascending: "ascending",
15
16
  descending: "descending",
@@ -26,26 +27,26 @@ const R = "focus", S = "focusin", w = "focusout", y = "keydown", re = ":host{dis
26
27
  default: "default",
27
28
  header: "header",
28
29
  stickyHeader: "sticky-header"
29
- }, H = {
30
+ }, O = {
30
31
  columnheader: "columnheader",
31
32
  rowheader: "rowheader",
32
33
  default: "gridcell"
33
34
  };
34
- var de = Object.defineProperty, C = (i, e, t, l) => {
35
- for (var o = void 0, a = i.length - 1, r; a >= 0; a--)
36
- (r = i[a]) && (o = r(e, t, o) || o);
37
- return o && de(e, t, o), o;
35
+ var he = Object.defineProperty, C = (i, e, t, l) => {
36
+ for (var o = void 0, n = i.length - 1, r; n >= 0; n--)
37
+ (r = i[n]) && (o = r(e, t, o) || o);
38
+ return o && he(e, t, o), o;
38
39
  };
39
- const ue = f`
40
+ const fe = f`
40
41
  <template>
41
42
  ${(i) => i.rowData === null || i.columnDefinition === null || i.columnDefinition.columnDataKey === null ? null : i.rowData[i.columnDefinition.columnDataKey]}
42
43
  </template>
43
- `, he = f`
44
+ `, me = f`
44
45
  <template>
45
46
  ${(i) => i.columnDefinition.title === void 0 ? i.columnDefinition.columnDataKey : i.columnDefinition.title}
46
47
  </template>
47
48
  `;
48
- class p extends ne(A(I)) {
49
+ class p extends se(M(E)) {
49
50
  constructor() {
50
51
  super(...arguments), this.cellType = g.default, this.rowData = null, this.columnDefinition = null, this.isActiveCell = !1, this.customCellView = null, this.updateCellStyle = () => {
51
52
  this.gridColumn && !this.gridColumn.includes("undefined") ? this.style.gridColumn = this.gridColumn : this.style.removeProperty("grid-column");
@@ -87,13 +88,13 @@ class p extends ne(A(I)) {
87
88
  * @internal
88
89
  */
89
90
  connectedCallback() {
90
- super.connectedCallback(), this.addEventListener(S, this.handleFocusin), this.addEventListener(w, this.handleFocusout), this.addEventListener(y, this.handleKeydown), this.style.gridColumn = `${this.columnDefinition?.gridColumn === void 0 ? 0 : this.columnDefinition.gridColumn}`, this.updateCellView(), this.updateCellStyle(), this.updateFixedStyle();
91
+ super.connectedCallback(), this.addEventListener(H, this.handleFocusin), this.addEventListener(w, this.handleFocusout), this.addEventListener(y, this.handleKeydown), this.style.gridColumn = `${this.columnDefinition?.gridColumn === void 0 ? 0 : this.columnDefinition.gridColumn}`, this.updateCellView(), this.updateCellStyle(), this.updateFixedStyle();
91
92
  }
92
93
  /**
93
94
  * @internal
94
95
  */
95
96
  disconnectedCallback() {
96
- super.disconnectedCallback(), this.removeEventListener(S, this.handleFocusin), this.removeEventListener(
97
+ super.disconnectedCallback(), this.removeEventListener(H, this.handleFocusin), this.removeEventListener(
97
98
  w,
98
99
  this.handleFocusout
99
100
  ), this.removeEventListener(y, this.handleKeydown), this.disconnectCellView();
@@ -123,8 +124,8 @@ class p extends ne(A(I)) {
123
124
  handleKeydown(e) {
124
125
  if (!(e.defaultPrevented || this.columnDefinition === null || this.cellType === g.default && this.columnDefinition.cellInternalFocusQueue !== !0 || this.cellType === g.columnHeader && this.columnDefinition.headerCellInternalFocusQueue !== !0))
125
126
  switch (e.key) {
126
- case O:
127
- case Y:
127
+ case A:
128
+ case ee:
128
129
  if (this.contains(document.activeElement) && document.activeElement !== this)
129
130
  return;
130
131
  switch (this.cellType) {
@@ -142,7 +143,7 @@ class p extends ne(A(I)) {
142
143
  break;
143
144
  }
144
145
  break;
145
- case X:
146
+ case Z:
146
147
  this.contains(document.activeElement) && document.activeElement !== this && (this.focus(), e.preventDefault());
147
148
  break;
148
149
  }
@@ -154,7 +155,7 @@ class p extends ne(A(I)) {
154
155
  this.columnDefinition.headerCellTemplate !== void 0 ? this.customCellView = this.columnDefinition.headerCellTemplate.render(
155
156
  this,
156
157
  this
157
- ) : this.customCellView = he.render(
158
+ ) : this.customCellView = me.render(
158
159
  this,
159
160
  this
160
161
  );
@@ -164,10 +165,10 @@ class p extends ne(A(I)) {
164
165
  this.columnDefinition.cellTemplate !== void 0 ? this.customCellView = this.columnDefinition.cellTemplate.render(
165
166
  this,
166
167
  this
167
- ) : this.customCellView = ue.render(this, this);
168
+ ) : this.customCellView = fe.render(this, this);
168
169
  break;
169
170
  }
170
- this.columnDefinition?.sortable ? this.columnDefinition.sortDirection ? this.sortDirection = this.columnDefinition.sortDirection : this.sortDirection = D.none : this.sortDirection = void 0;
171
+ this.columnDefinition?.sortable ? this.columnDefinition.sortDirection ? this.sortDirection = this.columnDefinition.sortDirection : this.sortDirection = T.none : this.sortDirection = void 0;
171
172
  }
172
173
  }
173
174
  disconnectCellView() {
@@ -215,13 +216,13 @@ C([
215
216
  m({ attribute: "grid-column" })
216
217
  ], p.prototype, "gridColumn");
217
218
  C([
218
- n
219
+ a
219
220
  ], p.prototype, "rowData");
220
221
  C([
221
- n
222
+ a
222
223
  ], p.prototype, "columnDefinition");
223
224
  C([
224
- n
225
+ a
225
226
  ], p.prototype, "_selectable");
226
227
  C([
227
228
  m({ mode: "boolean" })
@@ -229,14 +230,14 @@ C([
229
230
  C([
230
231
  m({ attribute: "sort-direction" })
231
232
  ], p.prototype, "sortDirection");
232
- var fe = Object.defineProperty, u = (i, e, t, l) => {
233
- for (var o = void 0, a = i.length - 1, r; a >= 0; a--)
234
- (r = i[a]) && (o = r(e, t, o) || o);
235
- return o && fe(e, t, o), o;
233
+ var pe = Object.defineProperty, u = (i, e, t, l) => {
234
+ for (var o = void 0, n = i.length - 1, r; n >= 0; n--)
235
+ (r = i[n]) && (o = r(e, t, o) || o);
236
+ return o && pe(e, t, o), o;
236
237
  };
237
- class c extends A(I) {
238
+ class c extends M(E) {
238
239
  constructor() {
239
- super(...arguments), this.rowType = v.default, this.rowData = null, this.columnDefinitions = null, this.cellsRepeatBehavior = null, this.cellsPlaceholder = null, this.focusColumnIndex = 0, this.updateRowStyle = () => {
240
+ super(...arguments), this.rowType = v.default, this.rowData = null, this.columnDefinitions = null, this.behaviorOrchestrator = null, this.focusColumnIndex = 0, this.updateRowStyle = () => {
240
241
  this.style.gridTemplateColumns = this.gridTemplateColumns;
241
242
  }, this.ariaSelected = null, this._selectable = !1, this.selected = !1;
242
243
  }
@@ -268,11 +269,14 @@ class c extends A(I) {
268
269
  * @internal
269
270
  */
270
271
  connectedCallback() {
271
- super.connectedCallback(), this.cellsRepeatBehavior === null && (this.cellsPlaceholder = document.createComment(""), this.appendChild(this.cellsPlaceholder), this.updateItemTemplate(), this.cellsRepeatBehavior = new G(
272
- (e) => e.columnDefinitions,
273
- (e) => e.activeCellItemTemplate,
274
- { positioning: !0 }
275
- ).createBehavior(this.cellsPlaceholder), this.$fastController.addBehaviors([this.cellsRepeatBehavior])), this.addEventListener("cell-focused", this.handleCellFocus), this.addEventListener(w, this.handleFocusout), this.addEventListener(y, this.handleKeydown), this.updateRowStyle();
272
+ super.connectedCallback(), this.behaviorOrchestrator === null && (this.updateItemTemplate(), this.behaviorOrchestrator = z.create(this), this.$fastController.addBehavior(this.behaviorOrchestrator), this.behaviorOrchestrator.addBehaviorFactory(
273
+ new G(
274
+ D((e) => e.columnDefinitions),
275
+ D((e) => e.activeCellItemTemplate),
276
+ { positioning: !0 }
277
+ ),
278
+ this.appendChild(document.createComment(""))
279
+ )), this.addEventListener("cell-focused", this.handleCellFocus), this.addEventListener(w, this.handleFocusout), this.addEventListener(y, this.handleKeydown), this.updateRowStyle();
276
280
  }
277
281
  /**
278
282
  * @internal
@@ -294,16 +298,16 @@ class c extends A(I) {
294
298
  return;
295
299
  let t = 0;
296
300
  switch (e.key) {
297
- case ee:
301
+ case oe:
298
302
  t = Math.max(0, this.focusColumnIndex - 1), this.cellElements[t].focus(), e.preventDefault();
299
303
  break;
300
- case Z:
304
+ case te:
301
305
  t = Math.min(
302
306
  this.cellElements.length - 1,
303
307
  this.focusColumnIndex + 1
304
308
  ), this.cellElements[t].focus(), e.preventDefault();
305
309
  break;
306
- case z:
310
+ case L:
307
311
  e.ctrlKey || (this.cellElements[0].focus(), e.preventDefault());
308
312
  break;
309
313
  case P:
@@ -328,42 +332,42 @@ u([
328
332
  m({ attribute: "row-type" })
329
333
  ], c.prototype, "rowType");
330
334
  u([
331
- n
335
+ a
332
336
  ], c.prototype, "rowData");
333
337
  u([
334
- n
338
+ a
335
339
  ], c.prototype, "columnDefinitions");
336
340
  u([
337
- n
341
+ a
338
342
  ], c.prototype, "cellItemTemplate");
339
343
  u([
340
- n
344
+ a
341
345
  ], c.prototype, "headerCellItemTemplate");
342
346
  u([
343
- n
347
+ a
344
348
  ], c.prototype, "rowIndex");
345
349
  u([
346
- n
350
+ a
347
351
  ], c.prototype, "activeCellItemTemplate");
348
352
  u([
349
- n
353
+ a
350
354
  ], c.prototype, "defaultCellItemTemplate");
351
355
  u([
352
- n
356
+ a
353
357
  ], c.prototype, "defaultHeaderCellItemTemplate");
354
358
  u([
355
- n
359
+ a
356
360
  ], c.prototype, "cellElements");
357
361
  u([
358
- n
362
+ a
359
363
  ], c.prototype, "_selectable");
360
364
  u([
361
365
  m({ mode: "boolean" })
362
366
  ], c.prototype, "selected");
363
- var me = Object.defineProperty, d = (i, e, t, l) => {
364
- for (var o = void 0, a = i.length - 1, r; a >= 0; a--)
365
- (r = i[a]) && (o = r(e, t, o) || o);
366
- return o && me(e, t, o), o;
367
+ var ve = Object.defineProperty, d = (i, e, t, l) => {
368
+ for (var o = void 0, n = i.length - 1, r; n >= 0; n--)
369
+ (r = i[n]) && (o = r(e, t, o) || o);
370
+ return o && ve(e, t, o), o;
367
371
  };
368
372
  const h = {
369
373
  none: "none",
@@ -371,9 +375,9 @@ const h = {
371
375
  multiRow: "multi-row",
372
376
  singleCell: "single-cell",
373
377
  multiCell: "multi-cell"
374
- }, s = class T extends I {
378
+ }, s = class k extends E {
375
379
  constructor() {
376
- super(), this.noTabbing = !1, this.generateHeader = b.default, this.rowsData = [], this.columnDefinitions = null, this.focusRowIndex = 0, this.focusColumnIndex = 0, this.fixedColumnsPositions = [], this.rowsRepeatBehavior = null, this.rowsPlaceholder = null, this.generatedHeader = null, this.isUpdatingFocus = !1, this.pendingFocusUpdate = !1, this.rowindexUpdateQueued = !1, this.columnDefinitionsStale = !0, this.generatedGridTemplateColumns = "", this.focusOnCell = (e, t, l) => {
380
+ super(), this.noTabbing = !1, this.generateHeader = b.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, l) => {
377
381
  if (this.rowElements.length === 0) {
378
382
  this.focusRowIndex = 0, this.focusColumnIndex = 0;
379
383
  return;
@@ -395,7 +399,7 @@ const h = {
395
399
  });
396
400
  }), this.queueRowIndexUpdate());
397
401
  }, this.queueRowIndexUpdate = () => {
398
- this.rowindexUpdateQueued || (this.rowindexUpdateQueued = !0, x.queueUpdate(this.updateRowIndexes));
402
+ this.rowindexUpdateQueued || (this.rowindexUpdateQueued = !0, x.enqueue(this.updateRowIndexes));
399
403
  }, this.updateRowIndexes = () => {
400
404
  let e = this.gridTemplateColumns;
401
405
  if (e === void 0) {
@@ -419,7 +423,7 @@ const h = {
419
423
  this.#i({ target: e, ctrlKey: t, shiftKey: l, metaKey: o });
420
424
  return;
421
425
  }
422
- (this.selectionMode === h.singleRow || this.selectionMode === h.multiRow) && this.#a({ target: e, ctrlKey: t, shiftKey: l, metaKey: o });
426
+ (this.selectionMode === h.singleRow || this.selectionMode === h.multiRow) && this.#n({ target: e, ctrlKey: t, shiftKey: l, metaKey: o });
423
427
  }
424
428
  }, this.#i = ({
425
429
  target: e,
@@ -427,25 +431,25 @@ const h = {
427
431
  shiftKey: l,
428
432
  metaKey: o
429
433
  }) => {
430
- const a = e;
434
+ const n = e;
431
435
  if (this.selectionMode === h.multiCell && (t || l || o))
432
- a.selected = !this.#r.includes(a);
436
+ n.selected = !this.#r.includes(n);
433
437
  else {
434
- const r = a.selected;
435
- this._resetSelection(!0), a.selected = !r;
438
+ const r = n.selected;
439
+ this._resetSelection(!0), n.selected = !r;
436
440
  }
437
- }, this.#a = ({
441
+ }, this.#n = ({
438
442
  target: e,
439
443
  ctrlKey: t,
440
444
  shiftKey: l,
441
445
  metaKey: o
442
446
  }) => {
443
- const a = e.parentNode;
447
+ const n = e.parentNode;
444
448
  if (this.selectionMode === h.multiRow && (t || l || o))
445
- a.selected = !this.#n.includes(a);
449
+ n.selected = !this.#a.includes(n);
446
450
  else {
447
- const r = a.selected;
448
- this._resetSelection(!0), a.selected = !r;
451
+ const r = n.selected;
452
+ this._resetSelection(!0), n.selected = !r;
449
453
  }
450
454
  }, this.#o = {
451
455
  handleChange(e, t) {
@@ -511,7 +515,7 @@ const h = {
511
515
  * @internal
512
516
  */
513
517
  rowsDataChanged() {
514
- this.columnDefinitions === null && this.rowsData.length > 0 && (this.columnDefinitions = T.generateColumns(this.rowsData[0])), this.$fastController.isConnected && this.toggleGeneratedHeader();
518
+ this.columnDefinitions === null && this.rowsData.length > 0 && (this.columnDefinitions = k.generateColumns(this.rowsData[0])), this.$fastController.isConnected && this.toggleGeneratedHeader();
515
519
  }
516
520
  /**
517
521
  * @internal
@@ -521,7 +525,7 @@ const h = {
521
525
  this.generatedGridTemplateColumns = "";
522
526
  return;
523
527
  }
524
- this.generatedGridTemplateColumns = T.generateTemplateColumns(
528
+ this.generatedGridTemplateColumns = k.generateTemplateColumns(
525
529
  this.columnDefinitions
526
530
  ), this.$fastController.isConnected && (this.columnDefinitionsStale = !0, this.queueRowIndexUpdate());
527
531
  }
@@ -561,11 +565,14 @@ const h = {
561
565
  * @internal
562
566
  */
563
567
  connectedCallback() {
564
- super.connectedCallback(), this.rowItemTemplate === void 0 && (this.rowItemTemplate = this.defaultRowItemTemplate), this.rowsPlaceholder = document.createComment(""), this.appendChild(this.rowsPlaceholder), this.toggleGeneratedHeader(), this.rowsRepeatBehavior = new G(
565
- (e) => e.rowsData,
566
- (e) => e.rowItemTemplate,
567
- { positioning: !0 }
568
- ).createBehavior(this.rowsPlaceholder), this.$fastController.addBehaviors([this.rowsRepeatBehavior]), this.addEventListener("row-focused", this.handleRowFocus), this.addEventListener(R, this.handleFocus), this.addEventListener(y, this.handleKeydown), this.addEventListener(w, this.handleFocusOut), this.observer = new MutationObserver(this.onChildListChange), this.observer.observe(this, { childList: !0 }), this.setupResizeObserver(), x.queueUpdate(this.queueRowIndexUpdate), this.#e(), F.getNotifier(this).subscribe(
568
+ super.connectedCallback(), this.rowItemTemplate === void 0 && (this.rowItemTemplate = this.defaultRowItemTemplate), this.behaviorOrchestrator === null && (this.behaviorOrchestrator = z.create(this), this.$fastController.addBehavior(this.behaviorOrchestrator), this.behaviorOrchestrator.addBehaviorFactory(
569
+ new G(
570
+ D((e) => e.rowsData),
571
+ D((e) => e.rowItemTemplate),
572
+ { positioning: !0 }
573
+ ),
574
+ this.appendChild(document.createComment(""))
575
+ )), this.toggleGeneratedHeader(), this.addEventListener("row-focused", this.handleRowFocus), this.addEventListener(S, this.handleFocus), this.addEventListener(y, this.handleKeydown), this.addEventListener(w, this.handleFocusOut), this.observer = new MutationObserver(this.onChildListChange), this.observer.observe(this, { childList: !0 }), this.setupResizeObserver(), x.enqueue(this.queueRowIndexUpdate), this.#e(), R.getNotifier(this).subscribe(
569
576
  this.#o,
570
577
  "columnDefinitions"
571
578
  );
@@ -574,10 +581,10 @@ const h = {
574
581
  * @internal
575
582
  */
576
583
  disconnectedCallback() {
577
- super.disconnectedCallback(), this.removeEventListener("row-focused", this.handleRowFocus), this.removeEventListener(R, this.handleFocus), this.removeEventListener(y, this.handleKeydown), this.removeEventListener(
584
+ super.disconnectedCallback(), this.removeEventListener("row-focused", this.handleRowFocus), this.removeEventListener(S, this.handleFocus), this.removeEventListener(y, this.handleKeydown), this.removeEventListener(
578
585
  w,
579
586
  this.handleFocusOut
580
- ), this.observer.disconnect(), this.resizeObserver && (this.resizeObserver.disconnect(), this.resizeObserver = void 0), this.rowsPlaceholder = null, this.generatedHeader = null, F.getNotifier(this).unsubscribe(
587
+ ), this.observer.disconnect(), this.resizeObserver && (this.resizeObserver.disconnect(), this.resizeObserver = void 0), this.generatedHeader = null, R.getNotifier(this).unsubscribe(
581
588
  this.#o,
582
589
  "columnDefinitions"
583
590
  );
@@ -609,15 +616,15 @@ const h = {
609
616
  if (e.defaultPrevented)
610
617
  return;
611
618
  let t;
612
- const l = this.rowElements.length - 1, o = this.offsetHeight + this.scrollTop, a = this.rowElements[l];
619
+ const l = this.rowElements.length - 1, o = this.offsetHeight + this.scrollTop, n = this.rowElements[l];
613
620
  switch (e.key) {
614
- case ie:
621
+ case ae:
615
622
  e.preventDefault(), this.focusOnCell(this.focusRowIndex - 1, this.focusColumnIndex, !0);
616
623
  break;
617
- case le:
624
+ case ne:
618
625
  e.preventDefault(), this.focusOnCell(this.focusRowIndex + 1, this.focusColumnIndex, !0);
619
626
  break;
620
- case oe:
627
+ case ie:
621
628
  if (e.preventDefault(), this.rowElements.length === 0) {
622
629
  this.focusOnCell(0, 0, !1);
623
630
  break;
@@ -635,12 +642,12 @@ const h = {
635
642
  }
636
643
  this.focusOnCell(t, this.focusColumnIndex, !1);
637
644
  break;
638
- case te:
645
+ case le:
639
646
  if (e.preventDefault(), this.rowElements.length === 0) {
640
647
  this.focusOnCell(0, 0, !1);
641
648
  break;
642
649
  }
643
- if (this.focusRowIndex >= l || a.offsetTop + a.offsetHeight <= o) {
650
+ if (this.focusRowIndex >= l || n.offsetTop + n.offsetHeight <= o) {
644
651
  this.focusOnCell(l, this.focusColumnIndex, !1);
645
652
  return;
646
653
  }
@@ -654,7 +661,7 @@ const h = {
654
661
  }
655
662
  this.focusOnCell(t, this.focusColumnIndex, !1);
656
663
  break;
657
- case z:
664
+ case L:
658
665
  e.ctrlKey && (e.preventDefault(), this.focusOnCell(0, 0, !0));
659
666
  break;
660
667
  case P:
@@ -667,7 +674,7 @@ const h = {
667
674
  }
668
675
  }
669
676
  queueFocusUpdate() {
670
- this.isUpdatingFocus && this.contains(document.activeElement) || this.pendingFocusUpdate === !1 && (this.pendingFocusUpdate = !0, x.queueUpdate(() => this.updateFocus()));
677
+ this.isUpdatingFocus && this.contains(document.activeElement) || this.pendingFocusUpdate === !1 && (this.pendingFocusUpdate = !0, x.enqueue(() => this.updateFocus()));
671
678
  }
672
679
  updateFocus() {
673
680
  this.pendingFocusUpdate = !1, this.focusOnCell(this.focusRowIndex, this.focusColumnIndex, !0);
@@ -689,20 +696,20 @@ const h = {
689
696
  slottedRowElementsChanged(e, t) {
690
697
  this._resetSelection();
691
698
  }
692
- get #n() {
699
+ get #a() {
693
700
  return this.rowElements.filter((e) => e.selected);
694
701
  }
695
702
  get #r() {
696
703
  return this.rowElements.reduce((e, t) => {
697
704
  const o = Array.from(t.children).filter(
698
- (a) => a.selected
705
+ (n) => n.selected
699
706
  );
700
707
  return e.concat(o);
701
708
  }, []);
702
709
  }
703
710
  selectionModeChanged(e) {
704
711
  if (e === void 0) {
705
- x.queueUpdate(this._resetSelection);
712
+ x.enqueue(this._resetSelection);
706
713
  return;
707
714
  }
708
715
  this._resetSelection(!0);
@@ -710,7 +717,7 @@ const h = {
710
717
  #l;
711
718
  #t;
712
719
  #i;
713
- #a;
720
+ #n;
714
721
  #o;
715
722
  static generateColumns(e) {
716
723
  return Object.keys(e).map((t, l) => ({
@@ -739,8 +746,8 @@ const h = {
739
746
  );
740
747
  this.fixedColumnsPositions.forEach((l, o) => {
741
748
  if (o < t.length) {
742
- const a = t[o];
743
- typeof a.setFixedPosition == "function" && a.setFixedPosition(`${l}px`);
749
+ const n = t[o];
750
+ typeof n.setFixedPosition == "function" && n.setFixedPosition(`${l}px`);
744
751
  }
745
752
  });
746
753
  });
@@ -773,8 +780,8 @@ const h = {
773
780
  );
774
781
  this.fixedColumnsPositions.forEach((l, o) => {
775
782
  if (o < t.length) {
776
- const a = t[o];
777
- typeof a.setFixedPosition == "function" && a.setFixedPosition(void 0);
783
+ const n = t[o];
784
+ typeof n.setFixedPosition == "function" && n.setFixedPosition(void 0);
778
785
  }
779
786
  });
780
787
  }), this.fixedColumnsPositions = [];
@@ -790,46 +797,46 @@ d([
790
797
  m({ attribute: "grid-template-columns" })
791
798
  ], s.prototype, "gridTemplateColumns");
792
799
  d([
793
- n
800
+ a
794
801
  ], s.prototype, "rowsData");
795
802
  d([
796
- n
803
+ a
797
804
  ], s.prototype, "columnDefinitions");
798
805
  d([
799
- n
806
+ a
800
807
  ], s.prototype, "rowItemTemplate");
801
808
  d([
802
- n
809
+ a
803
810
  ], s.prototype, "cellItemTemplate");
804
811
  d([
805
- n
812
+ a
806
813
  ], s.prototype, "headerCellItemTemplate");
807
814
  d([
808
- n
815
+ a
809
816
  ], s.prototype, "focusRowIndex");
810
817
  d([
811
- n
818
+ a
812
819
  ], s.prototype, "focusColumnIndex");
813
820
  d([
814
- m({ attribute: "fixed-columns", converter: j })
821
+ m({ attribute: "fixed-columns", converter: W })
815
822
  ], s.prototype, "fixedColumns");
816
823
  d([
817
- n
824
+ a
818
825
  ], s.prototype, "defaultRowItemTemplate");
819
826
  d([
820
- n
827
+ a
821
828
  ], s.prototype, "rowElementTag");
822
829
  d([
823
- n
830
+ a
824
831
  ], s.prototype, "rowElements");
825
832
  d([
826
- n
833
+ a
827
834
  ], s.prototype, "slottedRowElements");
828
835
  d([
829
836
  m({ attribute: "selection-mode" })
830
837
  ], s.prototype, "selectionMode");
831
- let pe = s;
832
- function ve(i) {
838
+ let ge = s;
839
+ function Ce(i) {
833
840
  const e = i.tagFor(c);
834
841
  return f`
835
842
  <${e}
@@ -839,10 +846,10 @@ function ve(i) {
839
846
  ></${e}>
840
847
  `;
841
848
  }
842
- function ge(i) {
849
+ function be(i) {
843
850
  return i.selectionMode === void 0 || i.selectionMode === h.none ? null : i.selectionMode.includes("multi") ? "true" : "false";
844
851
  }
845
- function Ce(i) {
852
+ function we(i) {
846
853
  if (i.columnDefinitions === null) {
847
854
  const e = i.querySelector(
848
855
  '[cell-type="columnheader"]'
@@ -855,35 +862,35 @@ function Ce(i) {
855
862
  }
856
863
  }
857
864
  }
858
- function be(i, { event: e }) {
865
+ function ye(i, { event: e }) {
859
866
  e.stopPropagation();
860
867
  }
861
- const we = (i) => {
862
- const e = ve(i), t = i.tagFor(c);
868
+ const _e = (i) => {
869
+ const e = Ce(i), t = i.tagFor(c, !0);
863
870
  return f`
864
871
  <template
865
- aria-multiselectable="${ge}"
872
+ aria-multiselectable="${be}"
866
873
  role="grid"
867
874
  tabindex="0"
868
- @sort="${be}"
875
+ @sort="${ye}"
869
876
  :rowElementTag="${() => t}"
870
877
  :defaultRowItemTemplate="${e}"
871
- ${M({
878
+ ${K({
872
879
  property: "rowElements",
873
- filter: K("[role=row],[data-vvd-component=data-grid-row]")
880
+ filter: q("[role=row],[data-vvd-component=data-grid-row]")
874
881
  })}
875
882
  >
876
883
  <div class="base">
877
- ${Ce}
878
- <slot ${U("slottedRowElements")}></slot>
884
+ ${we}
885
+ <slot ${V("slottedRowElements")}></slot>
879
886
  </div>
880
887
  </template>
881
888
  `;
882
889
  };
883
- function ye(i) {
890
+ function xe(i) {
884
891
  return i._selectable && i.selected ? "true" : i._selectable && !i.selected ? "false" : null;
885
892
  }
886
- function _e(i) {
893
+ function De(i) {
887
894
  const e = i.tagFor(p);
888
895
  return f`
889
896
  <${e}
@@ -895,7 +902,7 @@ function _e(i) {
895
902
  ></${e}>
896
903
  `;
897
904
  }
898
- function xe(i) {
905
+ function Te(i) {
899
906
  const e = i.tagFor(p);
900
907
  return f`
901
908
  <${e}
@@ -905,20 +912,20 @@ function xe(i) {
905
912
  ></${e}>
906
913
  `;
907
914
  }
908
- const De = (i) => {
909
- const e = _e(i), t = xe(i), l = (o) => V("base", ["selected", !!o.selected]);
915
+ const ke = (i) => {
916
+ const e = De(i), t = Te(i), l = (o) => Q("base", ["selected", !!o.selected]);
910
917
  return f`
911
918
  <template
912
- ${L({
919
+ ${U({
913
920
  role: "row",
914
- ariaSelected: ye
921
+ ariaSelected: xe
915
922
  })}
916
923
  class="${(o) => o.rowType !== "default" ? o.rowType : ""}"
917
924
  :defaultCellItemTemplate="${e}"
918
925
  :defaultHeaderCellItemTemplate="${t}"
919
- ${M({
926
+ ${K({
920
927
  property: "cellElements",
921
- filter: K(
928
+ filter: q(
922
929
  '[role="cell"],[role="gridcell"],[role="columnheader"],[role="rowheader"],[data-vvd-component="data-grid-cell"]'
923
930
  )
924
931
  })}
@@ -927,85 +934,85 @@ const De = (i) => {
927
934
  class="${l}"
928
935
  style="grid-template-columns: ${(o) => o.gridTemplateColumns};"
929
936
  >
930
- <slot ${U("slottedCellElements")}></slot>
937
+ <slot ${V("slottedCellElements")}></slot>
931
938
  </div>
932
939
  </template>
933
940
  `;
934
941
  };
935
- function k(i) {
936
- return i.cellType === "columnheader" && i.sortDirection !== void 0 && i.sortDirection !== D.other;
942
+ function I(i) {
943
+ return i.cellType === "columnheader" && i.sortDirection !== void 0 && i.sortDirection !== T.other;
937
944
  }
938
- function Te(i) {
939
- return i.sortDirection === D.ascending ? "sort-asc-solid" : i.sortDirection === D.descending ? "sort-desc-solid" : "sort-solid";
945
+ function Ie(i) {
946
+ return i.sortDirection === T.ascending ? "sort-asc-solid" : i.sortDirection === T.descending ? "sort-desc-solid" : "sort-solid";
940
947
  }
941
- function ke(i) {
948
+ function Ee(i) {
942
949
  return i._selectable && i.selected ? "true" : i._selectable && !i.selected ? "false" : null;
943
950
  }
944
- function Ie(i) {
945
- const e = i.tagFor(B);
951
+ function Fe(i) {
952
+ const e = i.tagFor(j);
946
953
  return f`
947
- ${q(
948
- k,
954
+ ${B(
955
+ I,
949
956
  f`
950
- <${e} class="header-icon" name="${Te}"></${e}>
957
+ <${e} class="header-icon" name="${Ie}"></${e}>
951
958
  `
952
959
  )}
953
960
  `;
954
961
  }
955
- function Ee(i, e) {
956
- return (e.key === O || e.key === ae) && i._handleInteraction(), !0;
962
+ function $e(i, e) {
963
+ return (e.key === A || e.key === re) && i._handleInteraction(), !0;
957
964
  }
958
- const $e = (i) => {
959
- const e = i.tagFor(W), t = (l) => V("base", ["selected", !!l.selected]);
965
+ const Re = (i) => {
966
+ const e = i.tagFor(X), t = (l) => Q("base", ["selected", !!l.selected]);
960
967
  return f`
961
968
  <template
962
969
  tabindex="-1"
963
- ${L({
964
- role: (l) => H[l.cellType] ?? H.default,
965
- ariaSelected: ke,
970
+ ${U({
971
+ role: (l) => O[l.cellType] ?? O.default,
972
+ ariaSelected: Ee,
966
973
  ariaSort: (l) => l.sortDirection ?? null
967
974
  })}
968
975
  @click="${(l) => l._handleInteraction()}"
969
- @keydown="${(l, o) => Ee(l, o.event)}"
976
+ @keydown="${(l, o) => $e(l, o.event)}"
970
977
  >
971
978
  <div
972
979
  class="${t}"
973
- role="${(l) => k(l) ? "button" : void 0}"
980
+ role="${(l) => I(l) ? "button" : void 0}"
974
981
  >
975
982
  ${(l) => l.selected ? f`<${e}>${(o) => o.locale.dataGrid.cell.selected}</${e}>` : null}
976
983
  <slot></slot>
977
- ${q(
978
- k,
984
+ ${B(
985
+ I,
979
986
  f`<${e}>${(l) => l.locale.dataGrid.cell.button}</${e}>
980
987
  `
981
988
  )}
982
- ${(l) => Ie(i)}
989
+ ${(l) => Fe(i)}
983
990
  </div>
984
991
  </template>
985
992
  `;
986
- }, Fe = E(
993
+ }, Se = F(
987
994
  "data-grid-cell",
988
995
  p,
989
- $e,
990
- [Q, J],
996
+ Re,
997
+ [N, Y],
991
998
  {
992
- styles: ce
999
+ styles: ue
993
1000
  }
994
- ), Re = E(
1001
+ ), He = F(
995
1002
  "data-grid-row",
996
1003
  c,
997
- De,
998
- [Fe],
1004
+ ke,
1005
+ [Se],
999
1006
  {
1000
- styles: se
1007
+ styles: de
1001
1008
  }
1002
- ), Se = E(
1009
+ ), Oe = F(
1003
1010
  "data-grid",
1004
- pe,
1005
- we,
1006
- [Re],
1011
+ ge,
1012
+ _e,
1013
+ [He],
1007
1014
  {
1008
- styles: re
1015
+ styles: ce
1009
1016
  }
1010
- ), He = N(Se);
1011
- He();
1017
+ ), ze = J(Oe);
1018
+ ze();