@adyen/bento-vue2 1.8.0 → 1.9.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 (264) hide show
  1. package/dist/@types/packages/vue2/src/components/data-grid/composables/useKeyboardNavigator/useKeyboardNavigator.d.ts +6 -2
  2. package/dist/@types/packages/vue2/src/components/data-grid/composables/useScroller/useScroller.d.ts +6 -0
  3. package/dist/@types/packages/vue2/src/components/data-grid/data-grid.vue.d.ts +23 -391
  4. package/dist/@types/packages/vue2/src/components/divider/divider.vue.d.ts +1 -5
  5. package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-default-textbox/dropdown-default-textbox.vue.d.ts +10 -0
  6. package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-avatar/dropdown-avatar.vue.d.ts +9 -0
  7. package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-country/dropdown-country.vue.d.ts +9 -0
  8. package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-currency/dropdown-currency.vue.d.ts +9 -0
  9. package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-payment-method/dropdown-payment-method.vue.d.ts +9 -0
  10. package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-tag/dropdown-tag.vue.d.ts +9 -0
  11. package/dist/@types/packages/vue2/src/components/dropdown/dropdown.vue.d.ts +12 -0
  12. package/dist/@types/packages/vue2/src/components/filter-bar/components/base-filter/base-filter.vue.d.ts +1 -0
  13. package/dist/@types/packages/vue2/src/components/input-field/input-field.types.d.ts +1 -3
  14. package/dist/@types/packages/vue2/src/components/internal/field-label/field-label.vue.d.ts +9 -0
  15. package/dist/accordion.js +3 -3
  16. package/dist/action-bar.js +8 -8
  17. package/dist/alert.js +26 -26
  18. package/dist/alert.js.map +1 -1
  19. package/dist/assets/base-modal.css +1 -1
  20. package/dist/assets/checkbox.css +1 -1
  21. package/dist/assets/copy.css +1 -1
  22. package/dist/assets/cross.css +1 -1
  23. package/dist/assets/dropdown-default-textbox.css +1 -1
  24. package/dist/assets/dropdown.css +1 -1
  25. package/dist/assets/field-label.css +1 -1
  26. package/dist/assets/index.css +1 -1
  27. package/dist/assets/index10.css +1 -1
  28. package/dist/assets/index11.css +1 -1
  29. package/dist/assets/index12.css +1 -1
  30. package/dist/assets/index13.css +1 -1
  31. package/dist/assets/index14.css +1 -1
  32. package/dist/assets/index15.css +1 -1
  33. package/dist/assets/index16.css +1 -1
  34. package/dist/assets/index17.css +1 -1
  35. package/dist/assets/index18.css +1 -1
  36. package/dist/assets/index19.css +1 -1
  37. package/dist/assets/index2.css +1 -1
  38. package/dist/assets/index20.css +1 -1
  39. package/dist/assets/index21.css +1 -1
  40. package/dist/assets/index22.css +1 -1
  41. package/dist/assets/index23.css +1 -1
  42. package/dist/assets/index24.css +1 -1
  43. package/dist/assets/index25.css +1 -1
  44. package/dist/assets/index26.css +1 -1
  45. package/dist/assets/index27.css +1 -1
  46. package/dist/assets/index28.css +1 -1
  47. package/dist/assets/index29.css +1 -1
  48. package/dist/assets/index3.css +1 -1
  49. package/dist/assets/index30.css +1 -1
  50. package/dist/assets/index31.css +1 -1
  51. package/dist/assets/index32.css +1 -1
  52. package/dist/assets/index33.css +1 -1
  53. package/dist/assets/index34.css +1 -1
  54. package/dist/assets/index35.css +1 -1
  55. package/dist/assets/index36.css +1 -1
  56. package/dist/assets/index37.css +1 -1
  57. package/dist/assets/index38.css +1 -1
  58. package/dist/assets/index39.css +1 -1
  59. package/dist/assets/index4.css +1 -1
  60. package/dist/assets/index40.css +1 -1
  61. package/dist/assets/index41.css +1 -1
  62. package/dist/assets/index42.css +1 -1
  63. package/dist/assets/index43.css +1 -1
  64. package/dist/assets/index44.css +1 -1
  65. package/dist/assets/index45.css +1 -1
  66. package/dist/assets/index5.css +1 -1
  67. package/dist/assets/index6.css +1 -1
  68. package/dist/assets/index7.css +1 -1
  69. package/dist/assets/index8.css +1 -1
  70. package/dist/assets/index9.css +1 -1
  71. package/dist/assets/listbox.css +1 -1
  72. package/dist/avatar-image.js +1 -1
  73. package/dist/badge.js +2 -2
  74. package/dist/button.js +5 -5
  75. package/dist/card.js +5 -5
  76. package/dist/checkbox.js +6 -6
  77. package/dist/chunks/arrow-left.2db60716.js +26 -0
  78. package/dist/chunks/arrow-left.2db60716.js.map +1 -0
  79. package/dist/chunks/{base-button.7886a7e6.js → base-button.df9a9bea.js} +3 -3
  80. package/dist/chunks/{base-button.7886a7e6.js.map → base-button.df9a9bea.js.map} +1 -1
  81. package/dist/chunks/{base-modal.31634fe8.js → base-modal.75319f4e.js} +8 -8
  82. package/dist/chunks/{base-modal.31634fe8.js.map → base-modal.75319f4e.js.map} +1 -1
  83. package/dist/chunks/{button-actions-with-menu.5faea13e.js → button-actions-with-menu.32770485.js} +3 -3
  84. package/dist/chunks/{button-actions-with-menu.5faea13e.js.map → button-actions-with-menu.32770485.js.map} +1 -1
  85. package/dist/chunks/{button.e09d5980.js → button.7dd8d4de.js} +3 -3
  86. package/dist/chunks/{button.e09d5980.js.map → button.7dd8d4de.js.map} +1 -1
  87. package/dist/chunks/{calendar.47e9e755.js → calendar.a885d8fc.js} +6 -6
  88. package/dist/chunks/{calendar.47e9e755.js.map → calendar.a885d8fc.js.map} +1 -1
  89. package/dist/chunks/{checkbox.2277450e.js → checkbox.65743b08.js} +33 -33
  90. package/dist/chunks/checkbox.65743b08.js.map +1 -0
  91. package/dist/chunks/checkmark-circle-fill.345311d2.js +26 -0
  92. package/dist/chunks/checkmark-circle-fill.345311d2.js.map +1 -0
  93. package/dist/chunks/checkmark-small.520f01b1.js +26 -0
  94. package/dist/chunks/checkmark-small.520f01b1.js.map +1 -0
  95. package/dist/chunks/checkmark.a6ed8f47.js +26 -0
  96. package/dist/chunks/checkmark.a6ed8f47.js.map +1 -0
  97. package/dist/chunks/chevron-left.5edf02ac.js +47 -0
  98. package/dist/chunks/chevron-left.5edf02ac.js.map +1 -0
  99. package/dist/chunks/chevron-up.81185563.js +47 -0
  100. package/dist/chunks/chevron-up.81185563.js.map +1 -0
  101. package/dist/chunks/{controls-group.6c5bfccd.js → controls-group.dd967ccf.js} +3 -3
  102. package/dist/chunks/{controls-group.6c5bfccd.js.map → controls-group.dd967ccf.js.map} +1 -1
  103. package/dist/chunks/copy.e12b418e.js +103 -0
  104. package/dist/chunks/copy.e12b418e.js.map +1 -0
  105. package/dist/chunks/cross-circle-fill.7c07d16a.js +26 -0
  106. package/dist/chunks/cross-circle-fill.7c07d16a.js.map +1 -0
  107. package/dist/chunks/cross.04678d81.js +26 -0
  108. package/dist/chunks/cross.04678d81.js.map +1 -0
  109. package/dist/chunks/{dropdown-default-textbox.25134789.js → dropdown-default-textbox.465db4d4.js} +29 -24
  110. package/dist/chunks/{dropdown-default-textbox.25134789.js.map → dropdown-default-textbox.465db4d4.js.map} +1 -1
  111. package/dist/chunks/{dropdown.ce937989.js → dropdown.6461dbe3.js} +212 -205
  112. package/dist/chunks/dropdown.6461dbe3.js.map +1 -0
  113. package/dist/chunks/field-label.01df3cba.js +111 -0
  114. package/dist/chunks/field-label.01df3cba.js.map +1 -0
  115. package/dist/chunks/{fixed-scroller.8994e30a.js → fixed-scroller.42354ccc.js} +4 -4
  116. package/dist/chunks/{fixed-scroller.8994e30a.js.map → fixed-scroller.42354ccc.js.map} +1 -1
  117. package/dist/chunks/{footer-actions.c9b2cb74.js → footer-actions.2cd9079e.js} +3 -3
  118. package/dist/chunks/{footer-actions.c9b2cb74.js.map → footer-actions.2cd9079e.js.map} +1 -1
  119. package/dist/chunks/{get-slot-text.c1114034.js → get-slot-text.99c3d860.js} +2 -2
  120. package/dist/chunks/{get-slot-text.c1114034.js.map → get-slot-text.99c3d860.js.map} +1 -1
  121. package/dist/chunks/{grid-layout.a806acb2.js → grid-layout.e0025286.js} +2 -2
  122. package/dist/chunks/{grid-layout.a806acb2.js.map → grid-layout.e0025286.js.map} +1 -1
  123. package/dist/chunks/{i18n.155748d6.js → i18n.eb5b985b.js} +2 -2
  124. package/dist/chunks/{i18n.155748d6.js.map → i18n.eb5b985b.js.map} +1 -1
  125. package/dist/chunks/{index.89942d3a.js → index.02da8d63.js} +6 -5
  126. package/dist/chunks/{index.89942d3a.js.map → index.02da8d63.js.map} +1 -1
  127. package/dist/chunks/{index.a5de5242.js → index.0890dc99.js} +7 -7
  128. package/dist/chunks/{index.a5de5242.js.map → index.0890dc99.js.map} +1 -1
  129. package/dist/chunks/{index.66503760.js → index.152b2b16.js} +4 -4
  130. package/dist/chunks/{index.66503760.js.map → index.152b2b16.js.map} +1 -1
  131. package/dist/chunks/{index.a99ffd48.js → index.16914bb1.js} +30 -29
  132. package/dist/chunks/{index.a99ffd48.js.map → index.16914bb1.js.map} +1 -1
  133. package/dist/chunks/{index.b83f8b7e.js → index.322692c8.js} +3 -3
  134. package/dist/chunks/{index.b83f8b7e.js.map → index.322692c8.js.map} +1 -1
  135. package/dist/chunks/index.4c062058.js +8 -0
  136. package/dist/chunks/{index.af05ced4.js.map → index.4c062058.js.map} +1 -1
  137. package/dist/chunks/{index.86fc63ca.js → index.6cef7328.js} +3 -3
  138. package/dist/chunks/{index.86fc63ca.js.map → index.6cef7328.js.map} +1 -1
  139. package/dist/chunks/{index.965ac1af.js → index.b201e81d.js} +2 -2
  140. package/dist/chunks/{index.965ac1af.js.map → index.b201e81d.js.map} +1 -1
  141. package/dist/chunks/{index.210d2169.js → index.d1beb704.js} +7 -7
  142. package/dist/chunks/{index.210d2169.js.map → index.d1beb704.js.map} +1 -1
  143. package/dist/chunks/{index.d8bd7596.js → index.f358c4bd.js} +9 -9
  144. package/dist/chunks/index.f358c4bd.js.map +1 -0
  145. package/dist/chunks/info-filled.27bd4bfb.js +47 -0
  146. package/dist/chunks/info-filled.27bd4bfb.js.map +1 -0
  147. package/dist/chunks/{listbox-option-tag.97af47fc.js → listbox-option-tag.55cd9c16.js} +8 -7
  148. package/dist/chunks/{listbox-option-tag.97af47fc.js.map → listbox-option-tag.55cd9c16.js.map} +1 -1
  149. package/dist/chunks/{listbox.d039b178.js → listbox.a117e6d4.js} +45 -41
  150. package/dist/chunks/{listbox.d039b178.js.map → listbox.a117e6d4.js.map} +1 -1
  151. package/dist/chunks/{loading-button.9a9cbbad.js → loading-button.459b9ab4.js} +4 -4
  152. package/dist/chunks/{loading-button.9a9cbbad.js.map → loading-button.459b9ab4.js.map} +1 -1
  153. package/dist/chunks/refresh.71a03998.js +26 -0
  154. package/dist/chunks/refresh.71a03998.js.map +1 -0
  155. package/dist/chunks/search.471270fe.js +26 -0
  156. package/dist/chunks/search.471270fe.js.map +1 -0
  157. package/dist/chunks/{toastController.0e01443d.js → toastController.fd667b68.js} +2 -2
  158. package/dist/chunks/{toastController.0e01443d.js.map → toastController.fd667b68.js.map} +1 -1
  159. package/dist/chunks/{tooltip.ecd0f707.js → tooltip.b8929659.js} +4 -4
  160. package/dist/chunks/{tooltip.ecd0f707.js.map → tooltip.b8929659.js.map} +1 -1
  161. package/dist/chunks/{use-default-slot-validator.cbdfe693.js → use-default-slot-validator.b9bff4c6.js} +2 -2
  162. package/dist/chunks/{use-default-slot-validator.cbdfe693.js.map → use-default-slot-validator.b9bff4c6.js.map} +1 -1
  163. package/dist/chunks/use-has-slot.fbeb19ec.js +6 -0
  164. package/dist/chunks/{use-has-slot.6052d56a.js.map → use-has-slot.fbeb19ec.js.map} +1 -1
  165. package/dist/chunks/{useCountryItems.5d7b436e.js → useCountryItems.34ac8740.js} +2 -2
  166. package/dist/chunks/{useCountryItems.5d7b436e.js.map → useCountryItems.34ac8740.js.map} +1 -1
  167. package/dist/code-snippet.js +106 -106
  168. package/dist/code-snippet.js.map +1 -1
  169. package/dist/country.js +3 -3
  170. package/dist/currency.js +2 -2
  171. package/dist/data-grid.js +768 -832
  172. package/dist/data-grid.js.map +1 -1
  173. package/dist/date-picker.js +23 -22
  174. package/dist/date-picker.js.map +1 -1
  175. package/dist/date-range-picker.js +2 -2
  176. package/dist/date.js +1 -1
  177. package/dist/divider.js +13 -27
  178. package/dist/divider.js.map +1 -1
  179. package/dist/dropdown.js +5 -5
  180. package/dist/empty-state.js +3 -3
  181. package/dist/filter-bar.js +695 -565
  182. package/dist/filter-bar.js.map +1 -1
  183. package/dist/focus-trap.js +1 -1
  184. package/dist/form-layout.js +3 -3
  185. package/dist/header.js +5 -5
  186. package/dist/index.js +16 -16
  187. package/dist/info-icon.js +5 -5
  188. package/dist/info-icon.js.map +1 -1
  189. package/dist/input-field.js +40 -42
  190. package/dist/input-field.js.map +1 -1
  191. package/dist/internal.js +8 -8
  192. package/dist/link.js +2 -2
  193. package/dist/loading-indicator.js +1 -1
  194. package/dist/menu.js +1 -1
  195. package/dist/modal.js +5 -5
  196. package/dist/pagination.js +45 -45
  197. package/dist/pagination.js.map +1 -1
  198. package/dist/payment-method.js +3 -3
  199. package/dist/payment-method.js.map +1 -1
  200. package/dist/popover.js +1 -1
  201. package/dist/popper-container.js +1 -1
  202. package/dist/radio-group.js +7 -7
  203. package/dist/search-bar.js +5 -5
  204. package/dist/segmented-control.js +5 -5
  205. package/dist/sidepanel.js +8 -8
  206. package/dist/status.js +2 -2
  207. package/dist/stepper.js +40 -40
  208. package/dist/stepper.js.map +1 -1
  209. package/dist/structured-list.js +1 -1
  210. package/dist/summary-grid.js +5 -5
  211. package/dist/tabs.js +3 -3
  212. package/dist/tag.js +4 -4
  213. package/dist/textarea.js +21 -21
  214. package/dist/textarea.js.map +1 -1
  215. package/dist/timeline.js +113 -113
  216. package/dist/timeline.js.map +1 -1
  217. package/dist/toast.js +6 -6
  218. package/dist/toggle.js +6 -6
  219. package/dist/tutorial.js +71 -71
  220. package/dist/tutorial.js.map +1 -1
  221. package/dist/typography.js +1 -1
  222. package/dist/web-types.json +650 -615
  223. package/package.json +4 -4
  224. package/dist/assets/arrow-left.css +0 -1
  225. package/dist/assets/checkmark-circle-fill.css +0 -1
  226. package/dist/assets/checkmark-small.css +0 -1
  227. package/dist/assets/checkmark.css +0 -1
  228. package/dist/assets/chevron-left.css +0 -1
  229. package/dist/assets/chevron-up.css +0 -1
  230. package/dist/assets/cross-circle-fill.css +0 -1
  231. package/dist/assets/info-filled.css +0 -1
  232. package/dist/assets/refresh.css +0 -1
  233. package/dist/assets/search.css +0 -1
  234. package/dist/chunks/arrow-left.1d5d08bd.js +0 -26
  235. package/dist/chunks/arrow-left.1d5d08bd.js.map +0 -1
  236. package/dist/chunks/checkbox.2277450e.js.map +0 -1
  237. package/dist/chunks/checkmark-circle-fill.2cfbb81b.js +0 -26
  238. package/dist/chunks/checkmark-circle-fill.2cfbb81b.js.map +0 -1
  239. package/dist/chunks/checkmark-small.5ca15f00.js +0 -26
  240. package/dist/chunks/checkmark-small.5ca15f00.js.map +0 -1
  241. package/dist/chunks/checkmark.78f3ed9c.js +0 -26
  242. package/dist/chunks/checkmark.78f3ed9c.js.map +0 -1
  243. package/dist/chunks/chevron-left.c10778d3.js +0 -47
  244. package/dist/chunks/chevron-left.c10778d3.js.map +0 -1
  245. package/dist/chunks/chevron-up.674ec2e5.js +0 -47
  246. package/dist/chunks/chevron-up.674ec2e5.js.map +0 -1
  247. package/dist/chunks/copy.a85c2e9f.js +0 -103
  248. package/dist/chunks/copy.a85c2e9f.js.map +0 -1
  249. package/dist/chunks/cross-circle-fill.d5e9ae44.js +0 -26
  250. package/dist/chunks/cross-circle-fill.d5e9ae44.js.map +0 -1
  251. package/dist/chunks/cross.a2cadac5.js +0 -26
  252. package/dist/chunks/cross.a2cadac5.js.map +0 -1
  253. package/dist/chunks/dropdown.ce937989.js.map +0 -1
  254. package/dist/chunks/field-label.330edb60.js +0 -107
  255. package/dist/chunks/field-label.330edb60.js.map +0 -1
  256. package/dist/chunks/index.af05ced4.js +0 -7
  257. package/dist/chunks/index.d8bd7596.js.map +0 -1
  258. package/dist/chunks/info-filled.48f3268f.js +0 -47
  259. package/dist/chunks/info-filled.48f3268f.js.map +0 -1
  260. package/dist/chunks/refresh.eb485c6f.js +0 -26
  261. package/dist/chunks/refresh.eb485c6f.js.map +0 -1
  262. package/dist/chunks/search.a8055e95.js +0 -26
  263. package/dist/chunks/search.a8055e95.js.map +0 -1
  264. package/dist/chunks/use-has-slot.6052d56a.js +0 -6
package/dist/data-grid.js CHANGED
@@ -1,467 +1,494 @@
1
- import { ref as E, reactive as se, toRefs as ie, computed as L, watchEffect as St, onMounted as Se, nextTick as G, watch as B, onUnmounted as Le, onBeforeUpdate as Lt, defineComponent as j, toRef as ye, inject as de } from "vue";
1
+ import { ref as R, reactive as ne, toRefs as ie, computed as y, watchEffect as ht, onMounted as Oe, nextTick as G, watch as B, onUnmounted as Ae, onBeforeUpdate as Lt, defineComponent as Y, toRef as we, useSlots as St, inject as ve } from "vue";
2
2
  import { BentoActionBar as yt } from "./action-bar.js";
3
- import { B as Ee } from "./chunks/checkbox.2277450e.js";
4
- import { BentoEmptyState as Et } from "./empty-state.js";
5
- import { BentoFilterBar as K } from "./filter-bar.js";
6
- import { BentoLoadingIndicator as Re } from "./loading-indicator.js";
7
- import { BentoPagination as Rt } from "./pagination.js";
8
- import { B as le, p as Tt } from "./chunks/index.965ac1af.js";
9
- import { g as It } from "./chunks/get-slot-text.c1114034.js";
10
- import { u as Ot } from "./chunks/aria-label.ac9651a5.js";
11
- import { o as Te } from "./chunks/resize.a041304d.js";
12
- import { u as Ie } from "./chunks/i18n.155748d6.js";
3
+ import { B as Ne } from "./chunks/checkbox.65743b08.js";
4
+ import { BentoPagination as Et } from "./pagination.js";
5
+ import { BentoLoadingIndicator as Pe } from "./loading-indicator.js";
6
+ import { B as le, p as Rt } from "./chunks/index.b201e81d.js";
7
+ import { o as De } from "./chunks/resize.a041304d.js";
8
+ import { u as Tt } from "./chunks/aria-label.ac9651a5.js";
9
+ import { g as It } from "./chunks/get-slot-text.99c3d860.js";
10
+ import { u as Ue } from "./chunks/i18n.eb5b985b.js";
11
+ import { BentoEmptyState as Ot } from "./empty-state.js";
12
+ import { BentoFilterBar as Q } from "./filter-bar.js";
13
13
  import { E as At } from "./chunks/tabs.keys.358742f2.js";
14
- import { B as ce, a as wt } from "./chunks/index.210d2169.js";
15
- import { a as Nt } from "./chunks/button.e09d5980.js";
16
- import { BentoToggle as Oe } from "./toggle.js";
14
+ import { K as z } from "./chunks/tooltip.b8929659.js";
15
+ import { B as me, a as wt } from "./chunks/index.d1beb704.js";
16
+ import { a as Nt } from "./chunks/button.7dd8d4de.js";
17
+ import { BentoToggle as $e } from "./toggle.js";
17
18
  import { BentoSearchBar as Pt } from "./search-bar.js";
18
- import { u as Ut } from "./chunks/dropdown.ce937989.js";
19
- import { n as M } from "./chunks/_plugin-vue2_normalizer.71e2aa87.js";
20
- import { C as Dt } from "./chunks/cross.a2cadac5.js";
21
- import { S as Mt } from "./chunks/search.a8055e95.js";
22
- import { g as $t } from "./chunks/unique-id.a2a2b458.js";
19
+ import { u as Dt } from "./chunks/dropdown.6461dbe3.js";
20
+ import { n as D } from "./chunks/_plugin-vue2_normalizer.71e2aa87.js";
21
+ import { C as Ut } from "./chunks/cross.04678d81.js";
22
+ import { S as $t } from "./chunks/search.471270fe.js";
23
+ import { g as Mt } from "./chunks/unique-id.a2a2b458.js";
23
24
  import { B as zt } from "./chunks/directive.0408e565.js";
24
25
  import { BentoInfoIcon as xt } from "./info-icon.js";
25
- import { B as Ft } from "./chunks/index.d8bd7596.js";
26
- import { K as x } from "./chunks/tooltip.ecd0f707.js";
27
- import { A as Gt } from "./chunks/arrow-left.1d5d08bd.js";
28
- import { l as ue } from "./chunks/events.58c00e6d.js";
29
- import { B as Wt, a as kt } from "./chunks/loading-button.9a9cbbad.js";
30
- import "./assets/index43.css";
31
- var Q = /* @__PURE__ */ ((t) => (t.WRAP = "wrap", t.ELLIPSIS = "ellipsis", t))(Q || {}), ee = /* @__PURE__ */ ((t) => (t.OUTLINE = "outline", t.SCROLL = "scroll", t.STICKY_FILTERS = "sticky-filters", t))(ee || {}), W = /* @__PURE__ */ ((t) => (t.ASCENDING = "asc", t.DESCENDING = "desc", t))(W || {}), m = /* @__PURE__ */ ((t) => (t.COLUMNS = "columns", t.COLUMN_RESIZE = "column-resize", t.ITEMS_PAGE = "items-page", t.NAVIGATE = "navigate", t.FILTER_SEARCH_INPUT = "filter-search-input", t.FILTER_SEARCH_CLEAR = "filter-search-clear", t.UPDATE_COLUMNS = "update:columns", t.UPDATE_CONDENSED = "update:condensed", t.UPDATE_FILTERS = "update:filters", t.UPDATE_FILTER_VALUES = "update:filter-values", t.UPDATE_FILTER_SEARCH_TERM = "update:filter-search-term", t.UPDATE_PAGINATION = "update:pagination", t.UPDATE_SELECTION = "update:selection", t.UPDATE_SHOW_MORE = "update:show-more", t.UPDATE_SORT_BY = "update:sort-by", t.ROW_CLICK = "row-click", t.SELECT = "select", t.SORT = "sort", t))(m || {}), te = /* @__PURE__ */ ((t) => (t.ASCENDING = "ascending", t.DESCENDING = "descending", t.NONE = "none", t))(te || {}), R = /* @__PURE__ */ ((t) => (t.COLUMN_RESIZE = "column-resize", t.COLUMN_RESIZING = "column-resizing", t.SORT = "sort", t.SELECT_ALL_ROWS = "select-all-rows", t.COLUMN_MOVE = "column-move", t.COLUMN_UPDATE = "column-update", t.COLUMN_MENU_OPEN = "column-menu-open", t.COLUMN_MENU_CLOSE = "column-menu-close", t.COLUMN_DRAG_START = "column-dragstart", t.COLUMN_DRAG_ENTER = "column-dragenter", t.COLUMN_DRAG_END = "column-dragend", t.COLUMN_DROP = "column-drop", t))(R || {});
32
- const Bt = (t, e) => {
33
- const n = E(!1), s = E(void 0), d = t.value.reduce((S, A) => (S[A.field] = null, S), {}), a = se(d), C = ie(a);
34
- let _ = 0, g = "";
35
- const c = L(
36
- () => Object.fromEntries(t.value.map(({ field: S, width: A, minWidth: T }) => [S, { width: A, minWidth: T }]))
26
+ import { B as Ft } from "./chunks/index.f358c4bd.js";
27
+ import { A as Gt } from "./chunks/arrow-left.2db60716.js";
28
+ import { l as pe } from "./chunks/events.58c00e6d.js";
29
+ import { B as Bt, a as Wt } from "./chunks/loading-button.459b9ab4.js";
30
+ import "./assets/index4.css";
31
+ var K = /* @__PURE__ */ ((n) => (n.WRAP = "wrap", n.ELLIPSIS = "ellipsis", n))(K || {}), ee = /* @__PURE__ */ ((n) => (n.OUTLINE = "outline", n.SCROLL = "scroll", n.STICKY_FILTERS = "sticky-filters", n))(ee || {}), W = /* @__PURE__ */ ((n) => (n.ASCENDING = "asc", n.DESCENDING = "desc", n))(W || {}), h = /* @__PURE__ */ ((n) => (n.COLUMNS = "columns", n.COLUMN_RESIZE = "column-resize", n.ITEMS_PAGE = "items-page", n.NAVIGATE = "navigate", n.FILTER_SEARCH_INPUT = "filter-search-input", n.FILTER_SEARCH_CLEAR = "filter-search-clear", n.UPDATE_COLUMNS = "update:columns", n.UPDATE_CONDENSED = "update:condensed", n.UPDATE_FILTERS = "update:filters", n.UPDATE_FILTER_VALUES = "update:filter-values", n.UPDATE_FILTER_SEARCH_TERM = "update:filter-search-term", n.UPDATE_PAGINATION = "update:pagination", n.UPDATE_SELECTION = "update:selection", n.UPDATE_SHOW_MORE = "update:show-more", n.UPDATE_SORT_BY = "update:sort-by", n.ROW_CLICK = "row-click", n.SELECT = "select", n.SORT = "sort", n))(h || {}), te = /* @__PURE__ */ ((n) => (n.ASCENDING = "ascending", n.DESCENDING = "descending", n.NONE = "none", n))(te || {}), T = /* @__PURE__ */ ((n) => (n.COLUMN_RESIZE = "column-resize", n.COLUMN_RESIZING = "column-resizing", n.SORT = "sort", n.SELECT_ALL_ROWS = "select-all-rows", n.COLUMN_MOVE = "column-move", n.COLUMN_UPDATE = "column-update", n.COLUMN_MENU_OPEN = "column-menu-open", n.COLUMN_MENU_CLOSE = "column-menu-close", n.COLUMN_DRAG_START = "column-dragstart", n.COLUMN_DRAG_ENTER = "column-dragenter", n.COLUMN_DRAG_END = "column-dragend", n.COLUMN_DROP = "column-drop", n))(T || {});
32
+ const kt = (n, e) => {
33
+ const s = R(!1), t = R(void 0), _ = n.value.reduce((f, b) => (f[b.field] = null, f), {}), l = ne(_), v = ie(l);
34
+ let d = 0, g = "";
35
+ const m = y(
36
+ () => Object.fromEntries(n.value.map(({ field: f, width: b, minWidth: S }) => [f, { width: b, minWidth: S }]))
37
37
  );
38
- St(() => s.value = c.value);
39
- let u = null, o = null;
40
- const h = (S) => {
41
- const A = S.clientX - _, T = g, v = s.value[T].width + A;
42
- s.value[T].width = v > c.value[T].minWidth ? v : c.value[T].minWidth, e(R.COLUMN_RESIZING, s.value), _ = S.clientX;
43
- }, r = () => {
44
- n.value = !1, u == null || u(), o == null || o(), g && e(R.COLUMN_RESIZE, {
38
+ ht(() => t.value = m.value);
39
+ let p = null, a = null;
40
+ const E = (f) => {
41
+ const b = f.clientX - d, S = g, C = t.value[S].width + b;
42
+ t.value[S].width = C > m.value[S].minWidth ? C : m.value[S].minWidth, e(T.COLUMN_RESIZING, t.value), d = f.clientX;
43
+ }, o = () => {
44
+ s.value = !1, p == null || p(), a == null || a(), g && e(T.COLUMN_RESIZE, {
45
45
  field: g,
46
- width: s.value[g].width
47
- }), u = null, o = null, g = "", _ = null;
46
+ width: t.value[g].width
47
+ }), p = null, a = null, g = "", d = null;
48
48
  };
49
- return { resizeData: s, allColumnRefs: C, startResize: (S, A, T) => {
50
- if (T.preventDefault(), S) {
51
- if (n.value = !0, T.buttons !== 1) {
52
- r();
49
+ return { resizeData: t, allColumnRefs: v, startResize: (f, b, S) => {
50
+ if (S.preventDefault(), f) {
51
+ if (s.value = !0, S.buttons !== 1) {
52
+ o();
53
53
  return;
54
54
  }
55
- g = A, _ = T.clientX, u = ue(window, "mousemove", h), o = ue(window, "mouseup", r);
55
+ g = b, d = S.clientX, p = pe(window, "mousemove", E), a = pe(window, "mouseup", o);
56
56
  }
57
- }, isResizing: n };
58
- }, Vt = Bt, Ht = 100, _e = 50, V = "b-select", Zt = (t, e, n) => {
59
- const s = {}, d = [], a = (_) => {
60
- const g = s[_];
61
- g && g.frozen !== !0 && (s[_].frozen = !0, d.push(_));
57
+ }, isResizing: s };
58
+ }, Vt = kt, Ht = 100, be = 50, V = "b-select", Zt = (n, e, s) => {
59
+ const t = {}, _ = [], l = (d) => {
60
+ const g = t[d];
61
+ g && g.frozen !== !0 && (t[d].frozen = !0, _.push(d));
62
62
  };
63
- function C() {
64
- if (d.length === n.length)
63
+ function v() {
64
+ if (_.length === s.length)
65
65
  return;
66
- const _ = { min: {}, max: {} };
67
- let g = t, c = e, u = 0;
68
- d.forEach((o) => {
69
- g -= s[o].computedWidth, c -= s[o].flex;
66
+ const d = { min: {}, max: {} };
67
+ let g = n, m = e, p = 0;
68
+ _.forEach((a) => {
69
+ g -= t[a].computedWidth, m -= t[a].flex;
70
70
  });
71
- for (let o = 0, h = n.length; o < h; o += 1) {
72
- const r = n[o];
73
- if (s[r.field] && s[r.field].frozen === !0)
71
+ for (let a = 0, E = s.length; a < E; a += 1) {
72
+ const o = s[a];
73
+ if (t[o.field] && t[o.field].frozen === !0)
74
74
  continue;
75
- let S = g / c * r.flex;
76
- S < r.minWidth && (u += r.minWidth - S, S = r.minWidth, _.min[r.field] = !0), s[r.field] = {
75
+ let f = g / m * o.flex;
76
+ f < o.minWidth && (p += o.minWidth - f, f = o.minWidth, d.min[o.field] = !0), t[o.field] = {
77
77
  frozen: !1,
78
- computedWidth: S,
79
- flex: r.flex
78
+ computedWidth: f,
79
+ flex: o.flex
80
80
  };
81
81
  }
82
- u > 0 ? Object.keys(_.min).forEach((o) => {
83
- a(o);
84
- }) : n.forEach(({ field: o }) => {
85
- a(o);
86
- }), C();
82
+ p > 0 ? Object.keys(d.min).forEach((a) => {
83
+ l(a);
84
+ }) : s.forEach(({ field: a }) => {
85
+ l(a);
86
+ }), v();
87
87
  }
88
- return C(), s;
89
- }, jt = (t, e, n, s, d) => {
90
- const a = E(t), C = E(e), _ = E(n), g = E(s), c = E(!1), u = E();
91
- let o = null;
92
- Se(() => {
88
+ return v(), t;
89
+ }, jt = (n, e, s, t, _) => {
90
+ const l = R(n), v = R(e), d = R(s), g = R(t), m = R(!1), p = R();
91
+ let a = null;
92
+ Oe(() => {
93
93
  G(() => {
94
- _.value && (u.value = _.value.getBoundingClientRect().width);
95
- const v = B(
96
- _,
94
+ d.value && (p.value = d.value.getBoundingClientRect().width);
95
+ const C = B(
96
+ d,
97
97
  () => {
98
- _.value && (G(() => v()), o = Te(_.value, ({ width: w }) => {
99
- u.value = w;
98
+ d.value && (G(() => C()), a = De(d.value, ({ width: A }) => {
99
+ p.value = A;
100
100
  }));
101
101
  },
102
102
  { immediate: !0 }
103
103
  );
104
104
  });
105
- }), Le(() => {
106
- o == null || o.disconnect();
105
+ }), Ae(() => {
106
+ a == null || a.disconnect();
107
107
  }), Lt(() => {
108
- var v;
109
- g.value && ((v = Object.keys(g.value)) == null ? void 0 : v.length) > 0 && Object.keys(g.value).forEach((i) => {
108
+ var C;
109
+ g.value && ((C = Object.keys(g.value)) == null ? void 0 : C.length) > 0 && Object.keys(g.value).forEach((i) => {
110
110
  g.value[i] = [];
111
111
  });
112
112
  });
113
- const h = L(() => {
114
- const v = [];
115
- let w = 0, i = 0;
116
- const f = {};
117
- let p = a.value.filter((N) => N.visible !== !1);
118
- d != null && d.hasSelectableColumn.value && (p = [{ field: V, label: "", width: 40 }, ...p]), p.forEach((N) => {
119
- const O = { ...N };
120
- let z;
121
- O.flex && O.flex > 0 ? (w += O.flex, z = 0, v.push(O)) : z = Math.max(
122
- (O == null ? void 0 : O.width) ?? Ht,
123
- (O == null ? void 0 : O.minWidth) ?? _e
124
- ), i += z, O.width = z, O.minWidth = (O == null ? void 0 : O.minWidth) ?? _e, f[O.field] = O;
113
+ const E = y(() => {
114
+ const C = [];
115
+ let A = 0, i = 0;
116
+ const u = {};
117
+ let L = l.value.filter((N) => N.visible !== !1);
118
+ _ != null && _.hasSelectableColumn.value && (L = [{ field: V, label: "", width: 40 }, ...L]), L.forEach((N) => {
119
+ const w = { ...N };
120
+ let $;
121
+ w.flex && w.flex > 0 ? (A += w.flex, $ = 0, C.push(w)) : $ = Math.max(
122
+ (w == null ? void 0 : w.width) ?? Ht,
123
+ (w == null ? void 0 : w.minWidth) ?? be
124
+ ), i += $, w.width = $, w.minWidth = (w == null ? void 0 : w.minWidth) ?? be, u[w.field] = w;
125
125
  });
126
- const I = Math.max(u.value - i, 0);
127
- if (w > 0 && u.value > 0) {
128
- const N = Zt(I, w, v);
129
- Object.keys(N).forEach((O) => {
130
- f[O].width = N[O].computedWidth;
126
+ const I = Math.max(p.value - i, 0);
127
+ if (A > 0 && p.value > 0) {
128
+ const N = Zt(I, A, C);
129
+ Object.keys(N).forEach((w) => {
130
+ u[w].width = N[w].computedWidth;
131
131
  });
132
132
  }
133
- return Object.values(f);
134
- }), r = E(void 0), b = (v) => {
135
- r.value = { ...r.value, ...v };
133
+ return Object.values(u);
134
+ }), o = R(void 0), c = (C) => {
135
+ o.value = { ...o.value, ...C };
136
136
  };
137
- a.value.some((v) => v == null ? void 0 : v.autoWidth) && B(
138
- [() => a.value, () => C.value],
137
+ l.value.some((C) => C == null ? void 0 : C.autoWidth) && B(
138
+ [() => l.value, () => v.value],
139
139
  async () => {
140
- c.value = !0, await G(), a == null || a.value.filter((v) => v == null ? void 0 : v.autoWidth).forEach(({ field: v, minWidth: w }) => {
141
- var f, p;
142
- const i = (p = (f = g.value) == null ? void 0 : f[v]) == null ? void 0 : p.reduce(
140
+ m.value = !0, await G(), l == null || l.value.filter((C) => C == null ? void 0 : C.autoWidth).forEach(({ field: C, minWidth: A }) => {
141
+ var u, L;
142
+ const i = (L = (u = g.value) == null ? void 0 : u[C]) == null ? void 0 : L.reduce(
143
143
  (I, N) => Math.max(I, N != null && N.offsetWidth ? N.offsetWidth + 4 : 0),
144
144
  0
145
145
  );
146
- (w === void 0 || i > w) && b({
147
- [v]: {
146
+ (A === void 0 || i > A) && c({
147
+ [C]: {
148
148
  width: i
149
149
  }
150
150
  });
151
- }), c.value = !1;
151
+ }), m.value = !1;
152
152
  },
153
153
  { immediate: !0 }
154
154
  );
155
- const S = L(
156
- () => h.value.map((v) => {
157
- var w, i;
155
+ const f = y(
156
+ () => E.value.map((C) => {
157
+ var A, i;
158
158
  return {
159
- ...v,
159
+ ...C,
160
160
  // Override column width with resized ones
161
- width: ((i = (w = r.value) == null ? void 0 : w[v.field]) == null ? void 0 : i.width) ?? v.width
161
+ width: ((i = (A = o.value) == null ? void 0 : A[C.field]) == null ? void 0 : i.width) ?? C.width
162
162
  };
163
163
  })
164
- ), A = L(() => S.value.reduce((v, w) => w.width + v, 0)), T = L(() => ({
165
- width: u.value > A.value ? "100%" : "fit-content"
164
+ ), b = y(() => f.value.reduce((C, A) => A.width + C, 0)), S = y(() => ({
165
+ width: p.value > b.value ? "100%" : "fit-content"
166
166
  }));
167
- return { columnDefs: S, gridColumnWidthStyle: T, onColumnWidthOverride: b, isMeasuringColumnWidths: c };
168
- }, Yt = jt, Xt = (t, e, n) => ({ conditionalSortDirectionClasses: (a, C) => ({
169
- "b-data-grid-columns__column-sort-icon--sorted": t.value.some(
170
- (_) => _.field === a && _.direction === C
167
+ return { columnDefs: f, gridColumnWidthStyle: S, onColumnWidthOverride: c, isMeasuringColumnWidths: m };
168
+ }, Yt = jt, Xt = (n, e, s) => ({ conditionalSortDirectionClasses: (l, v) => ({
169
+ "b-data-grid-columns__column-sort-icon--sorted": n.value.some(
170
+ (d) => d.field === l && d.direction === v
171
171
  )
172
- }), sortByColumnField: (a) => {
172
+ }), sortByColumnField: (l) => {
173
173
  var g;
174
- if (!e.value.some((c) => c.field === a && c.sortable))
174
+ if (!e.value.some((m) => m.field === l && m.sortable))
175
175
  return;
176
- const _ = [{
177
- field: a,
178
- direction: ((g = t.value.find((c) => c.field === a)) == null ? void 0 : g.direction) === W.ASCENDING ? W.DESCENDING : W.ASCENDING
176
+ const d = [{
177
+ field: l,
178
+ direction: ((g = n.value.find((m) => m.field === l)) == null ? void 0 : g.direction) === W.ASCENDING ? W.DESCENDING : W.ASCENDING
179
179
  }];
180
- n(R.SORT, _);
181
- } }), qt = (t, e, n, s, d) => {
182
- const a = E(t.value), C = se({
180
+ s(T.SORT, d);
181
+ } }), qt = (n, e, s, t, _) => {
182
+ const l = R(n.value ?? []), v = ne({
183
183
  allItemsSelected: !1,
184
184
  isIndeterminate: !1
185
- }), _ = () => {
186
- e(m.SELECT, a.value), e(m.UPDATE_SELECTION, a.value);
187
- }, g = (u) => {
185
+ }), d = () => {
186
+ e(h.SELECT, l.value), e(h.UPDATE_SELECTION, l.value);
187
+ }, g = (a) => {
188
+ var o;
189
+ l.value = a;
190
+ const E = ((o = s.value) == null ? void 0 : o.length) > 0 && s.value.every((c) => l.value.includes(t(c)));
191
+ v.isIndeterminate = l.value.length > 0 && !E, E ? v.allItemsSelected = !0 : (v.isIndeterminate || !E) && (v.allItemsSelected = !1);
192
+ }, m = (a) => {
188
193
  G(() => {
189
- var o, h;
190
- u ? a.value = (h = (o = n.value) == null ? void 0 : o.filter((r) => !d(r))) == null ? void 0 : h.map((r) => s(r)) : a.value = [], C.allItemsSelected = u, C.isIndeterminate = !1, _();
194
+ var E, o;
195
+ g(
196
+ a ? (o = (E = s.value) == null ? void 0 : E.filter((c) => !_(c))) == null ? void 0 : o.map((c) => t(c)) : []
197
+ ), d();
191
198
  });
192
- }, c = (u) => {
199
+ }, p = (a) => {
193
200
  G(() => {
194
- var h, r;
195
- a.value = u;
196
- const o = ((h = n.value) == null ? void 0 : h.length) > 0 && ((r = n.value) == null ? void 0 : r.filter((b) => !d(b)).every((b) => a.value.includes(s(b))));
197
- C.isIndeterminate = a.value.length > 0 && !o, o ? C.allItemsSelected = !0 : (C.isIndeterminate || !o) && (C.allItemsSelected = !1), _();
201
+ g(a), d();
198
202
  });
199
203
  };
200
- return c(t.value), { onAllRowSelect: g, onRowSelect: c, allItemsSelectedState: C, selectedItems: a };
204
+ return B(
205
+ () => n.value,
206
+ () => {
207
+ g(n.value ?? []);
208
+ },
209
+ { immediate: !0 }
210
+ ), B(
211
+ () => s.value,
212
+ () => {
213
+ g(l.value);
214
+ }
215
+ ), { onAllRowSelect: m, onRowSelect: p, allItemsSelectedState: v, selectedItems: l };
201
216
  };
202
- var D = ((t) => (t[t.ARROW_DOWN = x.ARROW_DOWN] = "ARROW_DOWN", t[t.ARROW_UP = x.ARROW_UP] = "ARROW_UP", t[t.ARROW_LEFT = x.ARROW_LEFT] = "ARROW_LEFT", t[t.ARROW_RIGHT = x.ARROW_RIGHT] = "ARROW_RIGHT", t[t.PAGE_UP = x.PAGE_UP] = "PAGE_UP", t[t.PAGE_DOWN = x.PAGE_DOWN] = "PAGE_DOWN", t[t.END = x.END] = "END", t[t.HOME = x.HOME] = "HOME", t))(D || {});
203
- const Jt = (t, e) => {
204
- const n = (c) => Math.floor(c / e.value), s = (c, u, o) => {
205
- const h = t.value.length - 1, r = e.value - 1, b = n(c), S = c - e.value * b;
217
+ var P = ((n) => (n[n.ARROW_DOWN = z.ARROW_DOWN] = "ARROW_DOWN", n[n.ARROW_UP = z.ARROW_UP] = "ARROW_UP", n[n.ARROW_LEFT = z.ARROW_LEFT] = "ARROW_LEFT", n[n.ARROW_RIGHT = z.ARROW_RIGHT] = "ARROW_RIGHT", n[n.PAGE_UP = z.PAGE_UP] = "PAGE_UP", n[n.PAGE_DOWN = z.PAGE_DOWN] = "PAGE_DOWN", n[n.END = z.END] = "END", n[n.HOME = z.HOME] = "HOME", n))(P || {});
218
+ const Jt = (n, e, s) => {
219
+ const t = y(() => {
220
+ const o = e.value.filter(({ visible: c }) => c !== !1);
221
+ return s.value ? o.length + 1 : o.length;
222
+ }), _ = y(
223
+ () => [...Object.values(n.value)].flat(1).sort((o, c) => {
224
+ const f = Number(o.getAttribute("data-cellindex")), b = Number(c.getAttribute("data-cellindex"));
225
+ return f > b ? 1 : b > f ? -1 : 0;
226
+ })
227
+ ), l = (o) => Math.floor(o / t.value), v = (o, c, f) => {
228
+ const b = _.value.length - 1, S = t.value - 1, C = l(o), A = o - t.value * C;
206
229
  return {
207
- [D.PAGE_UP]: S,
208
- [D.PAGE_DOWN]: h - r + S,
209
- [D.END]: o ? h : e.value * b + r,
210
- [D.HOME]: o ? 0 : e.value * b
211
- }[u];
212
- }, d = (c, u) => {
213
- const h = {
214
- [D.ARROW_DOWN]: e.value,
215
- [D.ARROW_UP]: -e.value,
216
- [D.ARROW_LEFT]: -1,
217
- [D.ARROW_RIGHT]: 1
218
- }[u], r = c + h;
219
- return r < 0 || r >= t.value.length ? c : r;
220
- }, a = (c) => [
221
- D.PAGE_UP,
222
- D.PAGE_DOWN,
223
- D.END,
224
- D.HOME
225
- ].includes(c), C = (c, u, o) => {
226
- const h = t.value.indexOf(c);
227
- return a(u) ? s(h, u, o) : d(h, u);
228
- };
230
+ [P.PAGE_UP]: A,
231
+ [P.PAGE_DOWN]: b - S + A,
232
+ [P.END]: f ? b : t.value * C + S,
233
+ [P.HOME]: f ? 0 : t.value * C
234
+ }[c];
235
+ }, d = (o, c) => {
236
+ const b = {
237
+ [P.ARROW_DOWN]: t.value,
238
+ [P.ARROW_UP]: -t.value,
239
+ [P.ARROW_LEFT]: -1,
240
+ [P.ARROW_RIGHT]: 1
241
+ }[c], S = o + b;
242
+ return S < 0 || S >= _.value.length ? o : S;
243
+ }, g = (o) => [
244
+ P.PAGE_UP,
245
+ P.PAGE_DOWN,
246
+ P.END,
247
+ P.HOME
248
+ ].includes(o), m = (o, c, f) => {
249
+ const b = _.value.indexOf(o);
250
+ return g(c) ? v(b, c, f) : d(b, c);
251
+ }, p = (o, c, f) => {
252
+ if (!_.value.includes(o))
253
+ return;
254
+ const b = m(o, c, f);
255
+ _.value[b].focus();
256
+ }, a = (o) => o in P;
229
257
  return {
230
- focusOnNextGridcell: (c, u, o) => {
231
- if (!t.value.includes(c))
232
- return;
233
- const h = C(c, u, o);
234
- t.value[h].focus();
235
- },
236
- isNavigationKeyCode: (c) => c in D
258
+ isNavigationKeyCode: a,
259
+ focusOnNextGridcell: p,
260
+ navigationInput: (o) => {
261
+ const { ctrlKey: c, keyCode: f, target: b } = o;
262
+ Object.values(n.value).flat(1).includes(b) && a(f) && p(b, f, c);
263
+ }
237
264
  };
238
- }, Kt = (t, e, n, s) => {
239
- const d = E(t), a = E(e), C = E(n), _ = L(() => d.value !== "none"), g = L(() => d.value === "automatic"), c = () => {
240
- s(m.UPDATE_SHOW_MORE);
265
+ }, Qt = (n, e, s, t) => {
266
+ const _ = R(n), l = R(e), v = R(s), d = y(() => _.value !== "none"), g = y(() => _.value === "automatic"), m = () => {
267
+ t(h.UPDATE_SHOW_MORE);
241
268
  };
242
269
  return B(
243
- () => a.value,
270
+ () => l.value,
244
271
  () => {
245
272
  if (g.value) {
246
- const o = C.value.offsetHeight - a.value;
247
- (o === 0 || o === 1) && c();
273
+ const a = v.value.offsetHeight - l.value;
274
+ (a === 0 || a === 1) && m();
248
275
  }
249
276
  }
250
- ), { isLazyLoad: _, isInfiniteScroll: g, verticalScrollPosition: a, emitLazyLoadEvent: c };
251
- }, Qt = (t, e, n) => {
252
- const s = E(t), d = E(e), a = se({
277
+ ), { isLazyLoad: d, isInfiniteScroll: g, verticalScrollPosition: l, emitLazyLoadEvent: m };
278
+ }, Kt = (n, e, s) => {
279
+ const t = R(n), _ = R(e), l = ne({
253
280
  dragging: null,
254
281
  dragToLeft: null,
255
282
  target: null
256
- }), C = (r, b = 0) => {
257
- const S = s.value.findIndex((v) => v.field === r.field), A = S + b;
258
- if (A < 0 || A > s.value.length - 1)
283
+ }), v = (o, c = 0) => {
284
+ const f = t.value.findIndex((C) => C.field === o.field), b = f + c;
285
+ if (b < 0 || b > t.value.length - 1)
259
286
  return;
260
- const T = [...s.value];
261
- T.splice(A, 0, T.splice(S, 1)[0]), n(m.COLUMNS, T), n(m.UPDATE_COLUMNS, T);
262
- }, _ = (r, b) => {
263
- a.dragging = r, b.dataTransfer.setData("text", ""), b.dataTransfer.dropEffect = "move";
264
- }, g = (r, b) => {
265
- a.target = r;
266
- const S = b.currentTarget.getBoundingClientRect(), A = S.left + S.width / 2, T = b.clientX ?? 0;
267
- a.dragToLeft = T <= A;
268
- }, c = (r) => {
269
- var b, S;
270
- if (((b = a.dragging) == null ? void 0 : b.field) !== r.field) {
271
- const A = s.value.findIndex((p) => {
287
+ const S = [...t.value];
288
+ S.splice(b, 0, S.splice(f, 1)[0]), s(h.COLUMNS, S), s(h.UPDATE_COLUMNS, S);
289
+ }, d = (o, c) => {
290
+ l.dragging = o, c.dataTransfer.setData("text", ""), c.dataTransfer.dropEffect = "move";
291
+ }, g = (o, c) => {
292
+ l.target = o;
293
+ const f = c.currentTarget.getBoundingClientRect(), b = f.left + f.width / 2, S = c.clientX ?? 0;
294
+ l.dragToLeft = S <= b;
295
+ }, m = (o) => {
296
+ var c, f;
297
+ if (((c = l.dragging) == null ? void 0 : c.field) !== o.field) {
298
+ const b = t.value.findIndex((L) => {
272
299
  var I;
273
- return p.field === ((I = a.dragging) == null ? void 0 : I.field);
274
- }), T = s.value.findIndex((p) => p.field === r.field), v = a.dragToLeft ? T : T + 1, w = v > A ? v - 1 : v;
275
- let i = [...s.value];
300
+ return L.field === ((I = l.dragging) == null ? void 0 : I.field);
301
+ }), S = t.value.findIndex((L) => L.field === o.field), C = l.dragToLeft ? S : S + 1, A = C > b ? C - 1 : C;
302
+ let i = [...t.value];
276
303
  i.splice(
277
- w === -1 ? 0 : w,
304
+ A === -1 ? 0 : A,
278
305
  0,
279
- i.splice(A, 1)[0]
306
+ i.splice(b, 1)[0]
280
307
  );
281
- const f = s.value.findIndex((p) => !(p != null && p.frozen));
282
- ((S = a.dragging) == null ? void 0 : S.frozen) !== r.frozen && v !== f && (i = i.map(
283
- (p) => {
308
+ const u = t.value.findIndex((L) => !(L != null && L.frozen));
309
+ ((f = l.dragging) == null ? void 0 : f.frozen) !== o.frozen && C !== u && (i = i.map(
310
+ (L) => {
284
311
  var I;
285
- return ((I = a.dragging) == null ? void 0 : I.field) === p.field ? { ...p, frozen: !!(r != null && r.frozen) } : p;
312
+ return ((I = l.dragging) == null ? void 0 : I.field) === L.field ? { ...L, frozen: !!(o != null && o.frozen) } : L;
286
313
  }
287
- )), n(m.COLUMNS, i), n(m.UPDATE_COLUMNS, i);
314
+ )), s(h.COLUMNS, i), s(h.UPDATE_COLUMNS, i);
288
315
  }
289
- a.dragging = null, a.target = null;
290
- }, u = () => {
291
- a.dragging = null, a.dragToLeft = null, a.target = null;
292
- }, o = L(() => d.value ? {
293
- [R.COLUMN_DRAG_START]: (r, b) => _(r, b),
294
- [R.COLUMN_DRAG_ENTER]: (r, b) => g(r, b),
295
- [R.COLUMN_DROP]: (r) => c(r),
296
- [R.COLUMN_DRAG_END]: () => u()
297
- } : {}), h = L(() => (r) => d.value ? {
298
- dragenter: (b) => {
299
- b.preventDefault(), g(r, b);
316
+ l.dragging = null, l.target = null;
317
+ }, p = () => {
318
+ l.dragging = null, l.dragToLeft = null, l.target = null;
319
+ }, a = y(() => _.value ? {
320
+ [T.COLUMN_DRAG_START]: (o, c) => d(o, c),
321
+ [T.COLUMN_DRAG_ENTER]: (o, c) => g(o, c),
322
+ [T.COLUMN_DROP]: (o) => m(o),
323
+ [T.COLUMN_DRAG_END]: () => p()
324
+ } : {}), E = y(() => (o) => _.value ? {
325
+ dragenter: (c) => {
326
+ c.preventDefault(), g(o, c);
300
327
  },
301
328
  drop: () => {
302
- c(r);
329
+ m(o);
303
330
  },
304
- dragover: (b) => {
305
- b.preventDefault();
331
+ dragover: (c) => {
332
+ c.preventDefault();
306
333
  }
307
334
  } : {});
308
335
  return {
309
336
  // Values
310
- draggingColumns: a,
337
+ draggingColumns: l,
311
338
  // Methods
312
- draggingEventsForColumns: o,
313
- draggingEventsForRowCell: h,
314
- onMoveColumnByOffset: C
339
+ draggingEventsForColumns: a,
340
+ draggingEventsForRowCell: E,
341
+ onMoveColumnByOffset: v
315
342
  };
316
- }, en = (t, e) => {
317
- const n = E(t), s = L(
318
- () => [...n.value].sort((o, h) => o.frozen === h.frozen ? 0 : o.frozen ? -1 : 1)
319
- ), d = L(() => s.value.filter((o) => o.frozen)), a = L(() => s.value.filter((o) => !o.frozen)), C = L(
343
+ }, es = (n, e) => {
344
+ const s = R(n), t = y(
345
+ () => [...s.value].sort((a, E) => a.frozen === E.frozen ? 0 : a.frozen ? -1 : 1)
346
+ ), _ = y(() => t.value.filter((a) => a.frozen)), l = y(() => t.value.filter((a) => !a.frozen)), v = y(
320
347
  () => [
321
- { columnSet: d.value, id: "frozen", isFrozenColumns: !0 },
322
- { columnSet: a.value, id: "unfrozen" }
323
- ].filter(({ columnSet: o }) => o.length)
324
- ), _ = L(
325
- () => n.value.filter((o) => (o == null ? void 0 : o.visible) !== !1 && (o == null ? void 0 : o.field) !== V).length === 1
326
- ), g = (o) => e(m.UPDATE_CONDENSED, o), c = (o) => {
327
- e(m.COLUMNS, o), e(m.UPDATE_COLUMNS, o);
348
+ { columnSet: _.value, id: "frozen", isFrozenColumns: !0 },
349
+ { columnSet: l.value, id: "unfrozen" }
350
+ ].filter(({ columnSet: a }) => a.length)
351
+ ), d = y(
352
+ () => s.value.filter((a) => (a == null ? void 0 : a.visible) !== !1 && (a == null ? void 0 : a.field) !== V).length === 1
353
+ ), g = (a) => e(h.UPDATE_CONDENSED, a), m = (a) => {
354
+ e(h.COLUMNS, a), e(h.UPDATE_COLUMNS, a);
328
355
  };
329
356
  return {
330
357
  // Values
331
- columnSets: C,
332
- isOnlyOneVisibleColumn: _,
333
- sortedColumns: s,
358
+ columnSets: v,
359
+ isOnlyOneVisibleColumn: d,
360
+ sortedColumns: t,
334
361
  // Methods
335
362
  onConfigSettingsUpdate: g,
336
- onConfigSettingsColumnsUpdate: c,
337
- onConfigSettingsColumnUpdate: (o) => {
338
- const h = s.value.map(
339
- (r) => (r == null ? void 0 : r.field) === o.field ? o : r
363
+ onConfigSettingsColumnsUpdate: m,
364
+ onConfigSettingsColumnUpdate: (a) => {
365
+ const E = t.value.map(
366
+ (o) => (o == null ? void 0 : o.field) === a.field ? a : o
340
367
  );
341
- c(h);
368
+ m(E);
342
369
  }
343
370
  };
344
371
  };
345
- let fe = 0;
346
- const tn = {
372
+ let he = 0;
373
+ const ts = {
347
374
  beforeCreate() {
348
- this.uuid = fe.toString(), fe += 1;
375
+ this.uuid = he.toString(), he += 1;
349
376
  }
350
377
  };
351
- var nn = function() {
352
- var e = this, n = e._self._c;
353
- return n("svg", e._b({ attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", e.$attrs, !1), [e.$attrs["svg-title"] ? n("title", [e._v(e._s(e.$attrs["svg-title"]))]) : e._e(), n("path", { attrs: { fill: "#00112C", "fill-rule": "evenodd", d: "M11 10.75C11.2841 10.75 11.5438 10.5895 11.6708 10.3354C11.7979 10.0813 11.7705 9.77726 11.6 9.55L8.6 5.55C8.45836 5.36115 8.23607 5.25 8.00001 5.25C7.76394 5.25 7.54165 5.36115 7.40001 5.55L4.4 9.55C4.22956 9.77726 4.20214 10.0813 4.32918 10.3354C4.45623 10.5895 4.71593 10.75 5 10.75L11 10.75Z", "clip-rule": "evenodd" } })]);
354
- }, sn = [], ln = /* @__PURE__ */ M(
355
- tn,
356
- nn,
357
- sn,
378
+ var ss = function() {
379
+ var e = this, s = e._self._c;
380
+ return s("svg", e._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", e.$attrs, !1), [e.$attrs["svg-title"] ? s("title", [e._v(e._s(e.$attrs["svg-title"]))]) : e._e(), s("path", { attrs: { fill: "#00112C", d: "M8 4.75L3.5 10.75L12.5 10.75L8 4.75Z" } })]);
381
+ }, ns = [], is = /* @__PURE__ */ D(
382
+ ts,
383
+ ss,
384
+ ns,
358
385
  !1,
359
386
  null,
360
- "4ebc0033",
387
+ null,
361
388
  null,
362
389
  null
363
390
  );
364
- const an = ln.exports;
365
- let ge = 0;
366
- const on = {
391
+ const ls = is.exports;
392
+ let Le = 0;
393
+ const as = {
367
394
  beforeCreate() {
368
- this.uuid = ge.toString(), ge += 1;
395
+ this.uuid = Le.toString(), Le += 1;
369
396
  }
370
397
  };
371
- var rn = function() {
372
- var e = this, n = e._self._c;
373
- return n("svg", e._b({ attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", e.$attrs, !1), [e.$attrs["svg-title"] ? n("title", [e._v(e._s(e.$attrs["svg-title"]))]) : e._e(), n("path", { attrs: { fill: "#00112C", "fill-rule": "evenodd", d: "M5 5.25C4.71593 5.25 4.45623 5.4105 4.32918 5.66459C4.20214 5.91868 4.22956 6.22274 4.4 6.45L7.4 10.45C7.54165 10.6389 7.76394 10.75 8 10.75C8.23607 10.75 8.45836 10.6389 8.6 10.45L11.6 6.45C11.7705 6.22274 11.7979 5.91868 11.6708 5.66459C11.5438 5.4105 11.2841 5.25 11 5.25H5Z", "clip-rule": "evenodd" } })]);
374
- }, dn = [], cn = /* @__PURE__ */ M(
375
- on,
376
- rn,
377
- dn,
398
+ var os = function() {
399
+ var e = this, s = e._self._c;
400
+ return s("svg", e._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", e.$attrs, !1), [e.$attrs["svg-title"] ? s("title", [e._v(e._s(e.$attrs["svg-title"]))]) : e._e(), s("path", { attrs: { fill: "#00112C", d: "M8 11.25L12.5 5.25H3.5L8 11.25Z" } })]);
401
+ }, rs = [], ds = /* @__PURE__ */ D(
402
+ as,
403
+ os,
404
+ rs,
378
405
  !1,
379
406
  null,
380
- "bda8fd91",
407
+ null,
381
408
  null,
382
409
  null
383
410
  );
384
- const un = cn.exports;
385
- let Ce = 0;
386
- const _n = {
411
+ const cs = ds.exports;
412
+ let Se = 0;
413
+ const us = {
387
414
  beforeCreate() {
388
- this.uuid = Ce.toString(), Ce += 1;
415
+ this.uuid = Se.toString(), Se += 1;
389
416
  }
390
417
  };
391
- var fn = function() {
392
- var e = this, n = e._self._c;
393
- return n("svg", e._b({ attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", e.$attrs, !1), [e.$attrs["svg-title"] ? n("title", [e._v(e._s(e.$attrs["svg-title"]))]) : e._e(), n("path", { attrs: { fill: "#00112C", "fill-rule": "evenodd", d: "M9.53 13.55L14.53 8.55C14.6 8.48 14.66 8.4 14.69 8.31C14.72 8.22 14.75 8.12 14.75 8.02C14.75 8.02 14.75 7.92 14.75 7.87C14.75 7.83 14.75 7.79 14.75 7.75C14.71 7.65 14.65 7.55 14.57 7.48L9.57 2.48C9.43 2.34 9.23 2.25 9.03 2.25C8.83 2.25 8.63 2.33 8.48 2.47C8.33 2.61 8.25 2.81 8.25 3.01C8.25 3.21 8.33 3.41 8.47 3.56L12.19 7.28H2C1.8 7.28 1.61 7.36 1.47 7.5C1.33 7.64 1.25 7.83 1.25 8.03C1.25 8.23 1.33 8.42 1.47 8.56C1.61 8.7 1.8 8.78 2 8.78H12.19L8.47 12.5C8.34 12.64 8.27 12.83 8.27 13.02C8.27 13.21 8.35 13.4 8.49 13.54C8.63 13.68 8.81 13.76 9.01 13.76C9.2 13.76 9.39 13.69 9.53 13.56V13.55Z", "clip-rule": "evenodd" } })]);
394
- }, gn = [], Cn = /* @__PURE__ */ M(
395
- _n,
396
- fn,
397
- gn,
418
+ var _s = function() {
419
+ var e = this, s = e._self._c;
420
+ return s("svg", e._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", e.$attrs, !1), [e.$attrs["svg-title"] ? s("title", [e._v(e._s(e.$attrs["svg-title"]))]) : e._e(), s("path", { attrs: { fill: "#00112C", d: "M12.1933 8.7454L7.93903 12.9996L8.99969 14.0603L15.0604 7.99963L8.99969 1.93896L7.93903 2.99963L12.1848 7.24541L1.24902 7.25658L1.25056 8.75658L12.1933 8.7454Z" } })]);
421
+ }, gs = [], fs = /* @__PURE__ */ D(
422
+ us,
423
+ _s,
424
+ gs,
398
425
  !1,
399
426
  null,
400
- "1954bfce",
427
+ null,
401
428
  null,
402
429
  null
403
430
  );
404
- const vn = Cn.exports;
405
- let ve = 0;
406
- const mn = {
431
+ const Cs = fs.exports;
432
+ let ye = 0;
433
+ const vs = {
407
434
  beforeCreate() {
408
- this.uuid = ve.toString(), ve += 1;
435
+ this.uuid = ye.toString(), ye += 1;
409
436
  }
410
437
  };
411
- var bn = function() {
412
- var e = this, n = e._self._c;
413
- return n("svg", e._b({ attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", e.$attrs, !1), [e.$attrs["svg-title"] ? n("title", [e._v(e._s(e.$attrs["svg-title"]))]) : e._e(), n("path", { attrs: { fill: "#00112C", "fill-rule": "evenodd", d: "M7.03033 0.96967C6.73744 0.676777 6.26256 0.676777 5.96967 0.96967C5.67678 1.26256 5.67678 1.73744 5.96967 2.03033L7.25 3.31066V5.06654L5.83093 5.88398L4.3138 5.00601L3.8442 3.25567C3.73686 2.8556 3.32553 2.6183 2.92547 2.72563C2.5254 2.83297 2.2881 3.2443 2.39543 3.64436L2.75109 4.96998L1.42547 5.32563C1.0254 5.43297 0.788098 5.8443 0.895433 6.24436C1.00277 6.64443 1.4141 6.88173 1.81416 6.7744L3.56372 6.305L5.08008 7.18253V8.81748L3.56369 9.69502L1.81416 9.22563C1.4141 9.1183 1.00277 9.3556 0.895433 9.75567C0.788098 10.1557 1.0254 10.5671 1.42547 10.6744L2.75109 11.0301L2.39543 12.3557C2.2881 12.7557 2.5254 13.1671 2.92547 13.2744C3.32553 13.3817 3.73686 13.1444 3.8442 12.7444L4.31381 10.994L5.83093 10.116L7.25 10.9335V12.6893L5.96967 13.9697C5.67678 14.2626 5.67678 14.7374 5.96967 15.0303C6.26256 15.3232 6.73744 15.3232 7.03033 15.0303L8 14.0607L8.96967 15.0303C9.26256 15.3232 9.73744 15.3232 10.0303 15.0303C10.3232 14.7374 10.3232 14.2626 10.0303 13.9697L8.75 12.6893V10.9336L10.1692 10.116L11.6857 10.9936L12.1554 12.7444C12.2627 13.1444 12.6741 13.3817 13.0741 13.2744C13.4742 13.1671 13.7115 12.7557 13.6042 12.3557L13.4374 11.7342C13.4337 11.7143 13.4292 11.6943 13.4238 11.6745L13.2497 11.0297L14.5741 10.6744C14.9742 10.5671 15.2115 10.1557 15.1042 9.75567C14.9968 9.3556 14.5855 9.1183 14.1854 9.22563L13.564 9.39237C13.5441 9.39606 13.5241 9.40058 13.5042 9.40595L12.4356 9.69456L10.9201 8.81752V7.18249L12.4363 6.30504L14.1857 6.7744C14.5858 6.88173 14.9971 6.64443 15.1045 6.24436C15.2118 5.8443 14.9745 5.43297 14.5744 5.32563L13.2488 4.96998L13.6045 3.64436C13.7118 3.2443 13.4745 2.83297 13.0744 2.72563C12.6744 2.6183 12.263 2.8556 12.1557 3.25567L11.6861 5.00615L10.1692 5.88396L8.75 5.06645V3.31066L10.0303 2.03033C10.3232 1.73744 10.3232 1.26256 10.0303 0.96967C9.73744 0.676777 9.26256 0.676777 8.96967 0.96967L8 1.93934L7.03033 0.96967ZM6.58008 8.81649V7.18351L8.00008 6.36553L9.42008 7.18351V8.81649L8.00008 9.63447L6.58008 8.81649Z", "clip-rule": "evenodd" } })]);
414
- }, pn = [], hn = /* @__PURE__ */ M(
415
- mn,
416
- bn,
417
- pn,
438
+ var ms = function() {
439
+ var e = this, s = e._self._c;
440
+ return s("svg", e._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", e.$attrs, !1), [e.$attrs["svg-title"] ? s("title", [e._v(e._s(e.$attrs["svg-title"]))]) : e._e(), s("g", { attrs: { "clip-path": "url(#uia-icons-16-freeze__a" + e.uuid + ")" } }, [s("path", { attrs: { fill: "#00112C", d: "M7.99989 14.0605L9.49989 15.5605L10.5605 14.4999L8.75 12.6893V10.9334L10.169 10.116L11.6861 10.9939L12.3501 13.4688L13.7988 13.0801L13.2488 11.0301L15.2988 10.4801L14.9101 9.03129L12.4363 9.695L10.9199 8.81745V7.18276L12.4365 6.3051L14.9101 6.96875L15.2988 5.51999L13.2488 4.96999L13.7988 2.91999L12.3501 2.53129L11.686 5.00635L10.1693 5.88407L8.75 5.06648L8.75 3.31043L10.5605 1.49989L9.49989 0.439226L7.99989 1.93923L6.49989 0.439226L5.43923 1.49989L7.25 3.31066V5.06639L5.83078 5.88392L4.31419 5.00626L3.65018 2.53129L2.20141 2.91998L2.384 3.60052L2.38063 3.60143L2.75032 4.97028L0.701408 5.51999L1.0901 6.96875L1.7708 6.78612L1.77173 6.78955L3.56437 6.30541L5.07992 7.18246L5.07992 8.81775L3.564 9.69502L1.0901 9.03129L0.701408 10.4801L2.75141 11.0301L2.20141 13.0801L3.65018 13.4687L4.31414 10.994L5.83106 10.1161L7.25 10.9335V12.6891L5.43923 14.4999L6.49989 15.5605L7.99989 14.0605ZM9.41992 7.18345V8.81644L7.99992 9.63441L6.57992 8.81644L6.57992 7.18345L7.99992 6.36548L9.41992 7.18345Z" } })]), s("defs", [s("clipPath", { attrs: { id: "uia-icons-16-freeze__a" + e.uuid } }, [s("rect", { attrs: { width: "16", height: "16", fill: "#fff", transform: "matrix(1 0 0 -1 0 16)" } })])])]);
441
+ }, ps = [], bs = /* @__PURE__ */ D(
442
+ vs,
443
+ ms,
444
+ ps,
418
445
  !1,
419
446
  null,
420
- "9da4de4c",
447
+ null,
421
448
  null,
422
449
  null
423
450
  );
424
- const Ae = hn.exports;
425
- let me = 0;
426
- const Sn = {
451
+ const Me = bs.exports;
452
+ let Ee = 0;
453
+ const hs = {
427
454
  beforeCreate() {
428
- this.uuid = me.toString(), me += 1;
455
+ this.uuid = Ee.toString(), Ee += 1;
429
456
  }
430
457
  };
431
- var Ln = function() {
432
- var e = this, n = e._self._c;
433
- return n("svg", e._b({ attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", e.$attrs, !1), [e.$attrs["svg-title"] ? n("title", [e._v(e._s(e.$attrs["svg-title"]))]) : e._e(), n("path", { attrs: { fill: "#00112C", "fill-rule": "evenodd", d: "M1.85822 8.00063C2.23115 8.61494 2.6599 9.19394 3.1392 9.73021C3.41522 10.0391 3.38862 10.5132 3.07978 10.7892C2.77094 11.0652 2.29681 11.0386 2.02078 10.7298C1.37391 10.006 0.808653 9.21323 0.335231 8.36577C0.209001 8.13981 0.2082 7.86474 0.333112 7.63805C0.481818 7.36817 1.22715 6.04687 2.49452 4.78481C3.75589 3.52873 5.61815 2.25 7.98999 2.25H7.99122C8.59964 2.251 9.20512 2.33426 9.79122 2.4975C10.1903 2.60864 10.4236 3.02221 10.3125 3.42123C10.2014 3.82026 9.78778 4.05364 9.38876 3.9425C8.9331 3.81559 8.46237 3.75083 7.98937 3.75C6.18148 3.75022 4.67897 4.7264 3.55296 5.84769C2.73159 6.66562 2.15512 7.51757 1.85822 8.00063Z", "clip-rule": "evenodd" } }), n("path", { attrs: { fill: "#00112C", "fill-rule": "evenodd", d: "M12.9002 5.21082C13.209 4.9348 13.6832 4.9614 13.9592 5.27024C14.6061 5.99402 15.1713 6.7868 15.6448 7.63425C15.771 7.86021 15.7718 8.13529 15.6469 8.36198C15.4982 8.63186 14.7528 9.95316 13.4855 11.2152C12.2241 12.4713 10.3618 13.75 7.98999 13.75L7.98876 13.75C7.38034 13.749 6.77486 13.6658 6.18876 13.5025C5.78973 13.3914 5.55635 12.9778 5.66749 12.5788C5.77863 12.1798 6.1922 11.9464 6.59123 12.0575C7.0469 12.1844 7.51763 12.2492 7.99064 12.25C9.79852 12.2498 11.301 11.2736 12.427 10.1523C13.2484 9.3344 13.8249 8.48246 14.1218 7.99939C13.7488 7.38508 13.3201 6.80609 12.8408 6.26982C12.5648 5.96097 12.5914 5.48685 12.9002 5.21082Z", "clip-rule": "evenodd" } }), n("path", { attrs: { fill: "#00112C", "fill-rule": "evenodd", d: "M13.5203 3.53033C13.8132 3.23744 13.8132 2.76256 13.5203 2.46967C13.2274 2.17678 12.7526 2.17678 12.4597 2.46967L2.45966 12.4697C2.16677 12.7626 2.16677 13.2374 2.45966 13.5303C2.75255 13.8232 3.22743 13.8232 3.52032 13.5303L13.5203 3.53033Z", "clip-rule": "evenodd" } })]);
434
- }, yn = [], En = /* @__PURE__ */ M(
435
- Sn,
436
- Ln,
437
- yn,
458
+ var Ls = function() {
459
+ var e = this, s = e._self._c;
460
+ return s("svg", e._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", e.$attrs, !1), [e.$attrs["svg-title"] ? s("title", [e._v(e._s(e.$attrs["svg-title"]))]) : e._e(), s("path", { attrs: { fill: "#00112C", d: "M2.99035 14.0608L14.051 3.00011L12.9903 1.93945L1.92969 13.0001L2.99035 14.0608Z" } }), s("path", { attrs: { fill: "#00112C", d: "M13.9404 5.23L12.8704 6.3C13.4704 6.97 13.9004 7.62 14.1304 8C13.4704 9.07 11.2504 12.25 8.00039 12.25C7.67039 12.25 7.34039 12.22 7.03039 12.14L5.80039 13.37C6.48039 13.61 7.21039 13.75 8.00039 13.75C12.7425 13.75 15.4838 8.69421 15.6649 8.36011C15.6671 8.35603 15.6689 8.35265 15.6704 8.35L15.8504 8L15.6704 7.65C15.6204 7.55 15.0204 6.43 13.9404 5.23Z" } }), s("path", { attrs: { fill: "#00112C", d: "M8.96039 3.85C8.65039 3.78 8.33039 3.75 8.00039 3.75C4.75039 3.75 2.53039 6.93 1.87039 8C2.10039 8.38 2.53039 9.02 3.12039 9.69L2.06039 10.75C0.98039 9.56 0.380391 8.45 0.330391 8.35L0.150391 8L0.330391 7.65C0.331838 7.64735 0.333668 7.64397 0.33588 7.63989C0.517034 7.30578 3.25829 2.25 8.00039 2.25C8.79039 2.25 9.52039 2.39 10.1904 2.62L8.96039 3.85Z" } })]);
461
+ }, Ss = [], ys = /* @__PURE__ */ D(
462
+ hs,
463
+ Ls,
464
+ Ss,
438
465
  !1,
439
466
  null,
440
- "2fe7aaf4",
467
+ null,
441
468
  null,
442
469
  null
443
470
  );
444
- const Rn = En.exports;
445
- let be = 0;
446
- const Tn = {
471
+ const Es = ys.exports;
472
+ let Re = 0;
473
+ const Rs = {
447
474
  beforeCreate() {
448
- this.uuid = be.toString(), be += 1;
475
+ this.uuid = Re.toString(), Re += 1;
449
476
  }
450
477
  };
451
- var In = function() {
452
- var e = this, n = e._self._c;
453
- return n("svg", e._b({ attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", e.$attrs, !1), [e.$attrs["svg-title"] ? n("title", [e._v(e._s(e.$attrs["svg-title"]))]) : e._e(), n("path", { attrs: { fill: "#00112C", "fill-rule": "evenodd", d: "M5.2525 8C5.2525 6.48 6.4825 5.25 8.0025 5.25C9.5225 5.25 10.7525 6.48 10.7525 8C10.7525 9.52 9.5225 10.75 8.0025 10.75C6.4825 10.75 5.2525 9.52 5.2525 8ZM6.7525 8C6.7525 8.69 7.3125 9.25 8.0025 9.25C8.6925 9.25 9.2525 8.69 9.2525 8C9.2525 7.31 8.6925 6.75 8.0025 6.75C7.3125 6.75 6.7525 7.31 6.7525 8Z", "clip-rule": "evenodd" } }), n("path", { attrs: { fill: "#00112C", "fill-rule": "evenodd", d: "M8.0025 2.25C12.8125 2.25 15.5625 7.43 15.6725 7.65C15.7825 7.87 15.7825 8.12 15.6725 8.34C15.6711 8.34265 15.6692 8.34603 15.667 8.35011C15.4859 8.6842 12.7446 13.74 8.0025 13.74C3.2025 13.74 0.4425 8.56 0.3325 8.34C0.2225 8.13 0.2225 7.87 0.3325 7.65C0.334097 7.64707 0.336157 7.64327 0.33868 7.63861C0.525781 7.29307 3.2565 2.25 8.0025 2.25ZM1.8725 8C2.5325 9.07 4.7525 12.25 8.0025 12.25C11.2425 12.25 13.4725 9.07 14.1325 8C13.4725 6.93 11.2425 3.75 8.0025 3.75C4.7625 3.75 2.5325 6.93 1.8725 8Z", "clip-rule": "evenodd" } })]);
454
- }, On = [], An = /* @__PURE__ */ M(
455
- Tn,
456
- In,
457
- On,
478
+ var Ts = function() {
479
+ var e = this, s = e._self._c;
480
+ return s("svg", e._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", e.$attrs, !1), [e.$attrs["svg-title"] ? s("title", [e._v(e._s(e.$attrs["svg-title"]))]) : e._e(), s("path", { attrs: { fill: "#00112C", d: "M8 5.25C6.48122 5.25 5.25 6.48122 5.25 8C5.25 9.51878 6.48122 10.75 8 10.75C9.51878 10.75 10.75 9.51878 10.75 8C10.75 6.48122 9.51878 5.25 8 5.25ZM6.75 8C6.75 7.30964 7.30964 6.75 8 6.75C8.69036 6.75 9.25 7.30964 9.25 8C9.25 8.69036 8.69036 9.25 8 9.25C7.30964 9.25 6.75 8.69036 6.75 8Z" } }), s("path", { attrs: { fill: "#00112C", d: "M7.99964 2.25C5.50387 2.25 3.57073 3.66588 2.3086 4.9806C1.6704 5.64539 1.18078 6.30745 0.850599 6.80272C0.685043 7.05106 0.558349 7.2593 0.471981 7.40748C0.428769 7.48162 0.395568 7.54087 0.372564 7.58275C0.36106 7.60369 0.352097 7.6203 0.345701 7.63227L0.338032 7.64672L0.335646 7.65126L0.334488 7.65348L0.154297 8L0.334225 8.34601L0.999638 8C0.334225 8.34601 0.334814 8.34715 0.334814 8.34715L0.335646 8.34874L0.338032 8.35328L0.345701 8.36773C0.352097 8.3797 0.36106 8.39631 0.372564 8.41725C0.395568 8.45913 0.428769 8.51838 0.471981 8.59252C0.558349 8.7407 0.685043 8.94894 0.850599 9.19728C1.18078 9.69255 1.6704 10.3546 2.3086 11.0194C3.57073 12.3341 5.50387 13.75 7.99964 13.75C10.4954 13.75 12.4285 12.3341 13.6907 11.0194C14.3289 10.3546 14.8185 9.69255 15.1487 9.19728C15.3142 8.94894 15.4409 8.7407 15.5273 8.59252C15.5705 8.51838 15.6037 8.45913 15.6267 8.41725C15.6382 8.39631 15.6472 8.3797 15.6536 8.36773L15.6612 8.35328L15.6636 8.34874L15.6648 8.34652L15.845 8L15.6651 7.65399L14.9996 8C15.6651 7.65399 15.6645 7.65285 15.6645 7.65285L15.6636 7.65126L15.6612 7.64672L15.6536 7.63227C15.6472 7.6203 15.6382 7.60369 15.6267 7.58275C15.6037 7.54087 15.5705 7.48162 15.5273 7.40748C15.4409 7.2593 15.3142 7.05106 15.1487 6.80272C14.8185 6.30745 14.3289 5.64539 13.6907 4.9806C12.4285 3.66588 10.4954 2.25 7.99964 2.25ZM14.9996 8L15.6648 8.34652C15.6648 8.34652 15.6651 8.34601 14.9996 8ZM0.999638 8L0.334488 7.65348C0.334488 7.65348 0.334225 7.65399 0.999638 8ZM2.09867 8.36522C2.00649 8.22694 1.92852 8.10363 1.86519 8C1.92852 7.89637 2.00649 7.77306 2.09867 7.63478C2.39349 7.19255 2.82887 6.60461 3.39068 6.0194C4.52855 4.83412 6.09541 3.75 7.99964 3.75C9.90387 3.75 11.4707 4.83412 12.6086 6.0194C13.1704 6.60461 13.6058 7.19255 13.9006 7.63478C13.9928 7.77306 14.0708 7.89637 14.1341 8C14.0708 8.10363 13.9928 8.22694 13.9006 8.36522C13.6058 8.80745 13.1704 9.39539 12.6086 9.9806C11.4707 11.1659 9.90387 12.25 7.99964 12.25C6.09541 12.25 4.52855 11.1659 3.39068 9.9806C2.82887 9.39539 2.39349 8.80745 2.09867 8.36522Z" } })]);
481
+ }, Is = [], Os = /* @__PURE__ */ D(
482
+ Rs,
483
+ Ts,
484
+ Is,
458
485
  !1,
459
486
  null,
460
- "6e578b8e",
487
+ null,
461
488
  null,
462
489
  null
463
490
  );
464
- const wn = An.exports, Nn = {
491
+ const As = Os.exports, ws = {
465
492
  "en-US": {
466
493
  moveColumnLeft: "Move column left",
467
494
  moveColumnRight: "Move column right",
@@ -470,16 +497,16 @@ const wn = An.exports, Nn = {
470
497
  showColumn: "Show column",
471
498
  hideColumn: "Hide column"
472
499
  }
473
- }, Pn = j({
474
- i18n: { messages: Nn },
500
+ }, Ns = Y({
501
+ i18n: { messages: ws },
475
502
  name: "data-grid-columns",
476
503
  components: {
477
- BentoCheckbox: Ee,
504
+ BentoCheckbox: Ne,
478
505
  BentoInfoIcon: xt,
479
506
  BentoTypography: le,
480
507
  BentoMenu: Ft,
481
- TriangleUp: an,
482
- TriangleDown: un
508
+ TriangleUp: ls,
509
+ TriangleDown: cs
483
510
  },
484
511
  props: {
485
512
  /**
@@ -556,192 +583,192 @@ const wn = An.exports, Nn = {
556
583
  }
557
584
  },
558
585
  emits: [
559
- R.COLUMN_RESIZE,
560
- R.COLUMN_RESIZING,
561
- R.SORT,
562
- R.SELECT_ALL_ROWS,
563
- R.COLUMN_DRAG_START,
564
- R.COLUMN_DRAG_ENTER,
565
- R.COLUMN_DROP,
566
- R.COLUMN_DRAG_END,
567
- R.COLUMN_MOVE,
568
- R.COLUMN_UPDATE,
569
- R.COLUMN_MENU_OPEN,
570
- R.COLUMN_MENU_CLOSE
586
+ T.COLUMN_RESIZE,
587
+ T.COLUMN_RESIZING,
588
+ T.SORT,
589
+ T.SELECT_ALL_ROWS,
590
+ T.COLUMN_DRAG_START,
591
+ T.COLUMN_DRAG_ENTER,
592
+ T.COLUMN_DROP,
593
+ T.COLUMN_DRAG_END,
594
+ T.COLUMN_MOVE,
595
+ T.COLUMN_UPDATE,
596
+ T.COLUMN_MENU_OPEN,
597
+ T.COLUMN_MENU_CLOSE
571
598
  ],
572
- setup(t, { emit: e }) {
573
- const { t: n } = Ie(), { columns: s, sortBy: d } = ie(t), a = E(t.allItemsSelectedState), C = (i) => e(R.SELECT_ALL_ROWS, i), _ = (i) => i.field === V, { startResize: g, isResizing: c } = Vt(s, e), { conditionalSortDirectionClasses: u, sortByColumnField: o } = Xt(d, s, e), h = (i) => {
599
+ setup(n, { emit: e }) {
600
+ const { t: s } = Ue(), { columns: t, sortBy: _ } = ie(n), l = R(n.allItemsSelectedState), v = (i) => e(T.SELECT_ALL_ROWS, i), d = (i) => i.field === V, { startResize: g, isResizing: m } = Vt(t, e), { conditionalSortDirectionClasses: p, sortByColumnField: a } = Xt(_, t, e), E = (i) => {
574
601
  var I;
575
602
  if (!i.sortable)
576
603
  return null;
577
- const f = (I = t.sortBy.find(({ field: N }) => N === i.field)) == null ? void 0 : I.direction;
578
- return f ? {
604
+ const u = (I = n.sortBy.find(({ field: N }) => N === i.field)) == null ? void 0 : I.direction;
605
+ return u ? {
579
606
  [W.ASCENDING]: te.ASCENDING,
580
607
  [W.DESCENDING]: te.DESCENDING
581
- }[f] : te.NONE;
582
- }, r = L(() => (i) => t.hasDraggableColumns ? {
583
- dragstart: (f) => {
584
- e(R.COLUMN_DRAG_START, i, f);
608
+ }[u] : te.NONE;
609
+ }, o = y(() => (i) => n.hasDraggableColumns ? {
610
+ dragstart: (u) => {
611
+ e(T.COLUMN_DRAG_START, i, u);
585
612
  },
586
- dragover: (f) => {
587
- f.preventDefault();
613
+ dragover: (u) => {
614
+ u.preventDefault();
588
615
  },
589
- dragenter: (f) => {
590
- f.preventDefault(), e(R.COLUMN_DRAG_ENTER, i, f);
616
+ dragenter: (u) => {
617
+ u.preventDefault(), e(T.COLUMN_DRAG_ENTER, i, u);
591
618
  },
592
619
  drop: () => {
593
- e(R.COLUMN_DROP, i);
620
+ e(T.COLUMN_DROP, i);
594
621
  },
595
622
  dragend: () => {
596
- e(R.COLUMN_DRAG_END);
623
+ e(T.COLUMN_DRAG_END);
597
624
  }
598
- } : {}), b = L(() => (i) => [
625
+ } : {}), c = y(() => (i) => [
599
626
  {
600
- text: n("moveColumnLeft"),
601
- handler: () => e(R.COLUMN_MOVE, i, -1),
627
+ text: s("moveColumnLeft"),
628
+ handler: () => e(T.COLUMN_MOVE, i, -1),
602
629
  icon: Gt,
603
- disabled: t.columns[0].field === i.field
630
+ disabled: n.columns[0].field === i.field
604
631
  },
605
632
  {
606
- text: n("moveColumnRight"),
607
- handler: () => e(R.COLUMN_MOVE, i, 1),
608
- icon: vn,
609
- disabled: t.columns[t.columns.length - 1].field === i.field
633
+ text: s("moveColumnRight"),
634
+ handler: () => e(T.COLUMN_MOVE, i, 1),
635
+ icon: Cs,
636
+ disabled: n.columns[n.columns.length - 1].field === i.field
610
637
  },
611
638
  {
612
- text: i != null && i.frozen ? n("unfreezeColumn") : n("freezeColumn"),
613
- handler: () => e(R.COLUMN_UPDATE, { ...i, frozen: !(i != null && i.frozen) }),
614
- icon: Ae
639
+ text: i != null && i.frozen ? s("unfreezeColumn") : s("freezeColumn"),
640
+ handler: () => e(T.COLUMN_UPDATE, { ...i, frozen: !(i != null && i.frozen) }),
641
+ icon: Me
615
642
  },
616
643
  {
617
- text: (i == null ? void 0 : i.visible) !== !1 ? n("hideColumn") : n("showColumn"),
644
+ text: (i == null ? void 0 : i.visible) !== !1 ? s("hideColumn") : s("showColumn"),
618
645
  handler: () => {
619
- e(R.COLUMN_UPDATE, {
646
+ e(T.COLUMN_UPDATE, {
620
647
  ...i,
621
648
  visible: (i == null ? void 0 : i.visible) === !1
622
649
  });
623
650
  },
624
- icon: (i == null ? void 0 : i.visible) !== !1 ? Rn : wn,
625
- disabled: (i == null ? void 0 : i.mandatory) || (i == null ? void 0 : i.visible) !== !1 && t.isOnlyOneVisibleColumn
651
+ icon: (i == null ? void 0 : i.visible) !== !1 ? Es : As,
652
+ disabled: (i == null ? void 0 : i.mandatory) || (i == null ? void 0 : i.visible) !== !1 && n.isOnlyOneVisibleColumn
626
653
  }
627
- ]), S = (i) => {
628
- let f = {};
629
- return _(i) || (f = {
630
- ...r.value(i)
631
- }), i.sortable && (f.click = () => o(i.field), f.keydown = (p) => {
632
- p.keyCode === x.ENTER && o(i.field);
633
- }), f;
634
- }, A = L(
654
+ ]), f = (i) => {
655
+ let u = {};
656
+ return d(i) || (u = {
657
+ ...o.value(i)
658
+ }), i.sortable && (u.click = () => a(i.field), u.keydown = (L) => {
659
+ L.keyCode === z.ENTER && a(i.field);
660
+ }), u;
661
+ }, b = y(
635
662
  () => {
636
663
  var i;
637
- return (i = s.value[0]) != null && i.frozen ? { "b-data-grid-columns--frozen": !0 } : {
664
+ return (i = t.value[0]) != null && i.frozen ? { "b-data-grid-columns--frozen": !0 } : {
638
665
  "b-data-grid-columns--unfrozen": !0,
639
- "b-data-grid-columns--config-settings-margin": t.hasColumnPanel
666
+ "b-data-grid-columns--config-settings-margin": n.hasColumnPanel
640
667
  };
641
668
  }
642
- ), T = (i, f) => i && f === 0 ? ce.BOTTOM_START : ce.BOTTOM_END, v = (i) => {
643
- var f, p, I, N, O, z, Y, X, H, q;
669
+ ), S = (i, u) => i && u === 0 ? me.BOTTOM_START : me.BOTTOM_END, C = (i) => {
670
+ var u, L, I, N, w, $, k, X, H, q;
644
671
  return {
645
672
  "b-data-grid-columns__column--sortable": i.sortable,
646
- "b-data-grid-columns__column--padding-left-unset": ((f = i == null ? void 0 : i.padding) == null ? void 0 : f.left) === !1,
647
- "b-data-grid-columns__column--padding-right-unset": ((p = i == null ? void 0 : i.padding) == null ? void 0 : p.right) === !1,
673
+ "b-data-grid-columns__column--padding-left-unset": ((u = i == null ? void 0 : i.padding) == null ? void 0 : u.left) === !1,
674
+ "b-data-grid-columns__column--padding-right-unset": ((L = i == null ? void 0 : i.padding) == null ? void 0 : L.right) === !1,
648
675
  "b-data-grid-columns__column--numeric": i == null ? void 0 : i.numeric,
649
676
  "b-data-grid-columns__column--frozen": i == null ? void 0 : i.frozen,
650
- "b-data-grid-columns__column--is-re-ordering": (i == null ? void 0 : i.field) === ((N = (I = t.draggingColumns) == null ? void 0 : I.dragging) == null ? void 0 : N.field),
651
- "b-data-grid-columns__column--is-re-ordering-target-left": (i == null ? void 0 : i.field) === ((z = (O = t.draggingColumns) == null ? void 0 : O.target) == null ? void 0 : z.field) && ((Y = t.draggingColumns) == null ? void 0 : Y.dragToLeft),
652
- "b-data-grid-columns__column--is-re-ordering-target-right": (i == null ? void 0 : i.field) === ((H = (X = t.draggingColumns) == null ? void 0 : X.target) == null ? void 0 : H.field) && !((q = t.draggingColumns) != null && q.dragToLeft)
677
+ "b-data-grid-columns__column--is-re-ordering": (i == null ? void 0 : i.field) === ((N = (I = n.draggingColumns) == null ? void 0 : I.dragging) == null ? void 0 : N.field),
678
+ "b-data-grid-columns__column--is-re-ordering-target-left": (i == null ? void 0 : i.field) === (($ = (w = n.draggingColumns) == null ? void 0 : w.target) == null ? void 0 : $.field) && ((k = n.draggingColumns) == null ? void 0 : k.dragToLeft),
679
+ "b-data-grid-columns__column--is-re-ordering-target-right": (i == null ? void 0 : i.field) === ((H = (X = n.draggingColumns) == null ? void 0 : X.target) == null ? void 0 : H.field) && !((q = n.draggingColumns) != null && q.dragToLeft)
653
680
  };
654
- }, w = L(() => ({
655
- "b-data-grid-columns__column-separator-container--is-resizeable": t.hasResizableColumns
681
+ }, A = y(() => ({
682
+ "b-data-grid-columns__column-separator-container--is-resizeable": n.hasResizableColumns
656
683
  }));
657
684
  return {
658
685
  // Values
659
686
  DATAGRID_SELECT_FIELD_NAME: V,
660
687
  // Styles and classes
661
- conditionalColumnClasses: v,
662
- conditionalColumnSeparatorClasses: w,
663
- conditionalColumnsClasses: A,
688
+ conditionalColumnClasses: C,
689
+ conditionalColumnSeparatorClasses: A,
690
+ conditionalColumnsClasses: b,
664
691
  // Selecting
665
- allItemsSelectedCheckboxState: a,
666
- isSelectColumn: _,
667
- onAllRowSelect: C,
692
+ allItemsSelectedCheckboxState: l,
693
+ isSelectColumn: d,
694
+ onAllRowSelect: v,
668
695
  // Sorting
669
- conditionalSortDirectionClasses: u,
670
- sortByColumnField: o,
671
- getSortingColumnDirection: h,
696
+ conditionalSortDirectionClasses: p,
697
+ sortByColumnField: a,
698
+ getSortingColumnDirection: E,
672
699
  // Resizing
673
700
  startResize: g,
674
- isResizing: c,
701
+ isResizing: m,
675
702
  // Event handlers
676
- dataGridColumnEvents: S,
703
+ dataGridColumnEvents: f,
677
704
  // Dragging
678
- draggingEventsForColumn: r,
705
+ draggingEventsForColumn: o,
679
706
  // Contextual menu
680
- contextualMenuData: b,
681
- computeMenuPosition: T,
707
+ contextualMenuData: c,
708
+ computeMenuPosition: S,
682
709
  // Enums
683
710
  BentoDatagridSortDirection: W,
684
- DatagridColumnsEvent: R
711
+ DatagridColumnsEvent: T
685
712
  };
686
713
  }
687
714
  });
688
- var Un = function() {
689
- var e = this, n = e._self._c;
690
- return e._self._setupProxy, n("div", { staticClass: "b-data-grid-columns", class: e.conditionalColumnsClasses, attrs: { "data-testid": "data-grid-columns" } }, e._l(e.columns, function(s, d) {
691
- return n("div", e._g({ key: s.field, staticClass: "b-data-grid-columns__column", class: e.conditionalColumnClasses(s), style: { width: `${s.width}px` }, attrs: { "aria-colindex": d + 1, "aria-label": s.label, "aria-sort": e.getSortingColumnDirection(s), "data-testid": `${s.field}-column-header`, draggable: e.hasDraggableColumns && !e.isResizing && !e.isSelectColumn(s), role: "columnheader", tabindex: s.sortable ? "0" : "-1" } }, e.dataGridColumnEvents(s)), [e.isSelectColumn(s) ? [n("bento-checkbox", { attrs: { "model-value": e.allItemsSelectedCheckboxState.allItemsSelected, "data-testid": "checkbox-select-all", indeterminate: e.allItemsSelectedCheckboxState.isIndeterminate, value: "data-grid-select-all" }, on: { "update:model-value": e.onAllRowSelect } })] : [n("bento-typography", { staticClass: "b-data-grid-columns__column-header", attrs: { el: "div", strongest: "" } }, [e._t(`head-${s.field}`, function() {
692
- return [n("span", [e._v(e._s(s.label))]), s.infoIconTooltip ? n("bento-info-icon", { attrs: { "tooltip-text": s.infoIconTooltip } }) : e._e()];
693
- }, { column: s })], 2), s.sortable || e.hasColumnPanel ? n("div", { staticClass: "b-data-grid-columns__column-actions" }, [s.sortable ? n("div", { staticClass: "b-data-grid-columns__column-sort" }, [n("triangle-up", { staticClass: "b-data-grid-columns__column-sort-icon", class: e.conditionalSortDirectionClasses(s.field, e.BentoDatagridSortDirection.ASCENDING), attrs: { "svg-title": `${s.field} sort ascending`, "data-testid": `${s.field}-sort-icon-asc` } }), n("triangle-down", { staticClass: "b-data-grid-columns__column-sort-icon", class: e.conditionalSortDirectionClasses(s.field, e.BentoDatagridSortDirection.DESCENDING), attrs: { "svg-title": `${s.field}sort descending`, "data-testid": `${s.field}-sort-icon-desc` } })], 1) : e._e(), e.hasColumnPanel ? n("bento-menu", { staticClass: "b-data-grid-columns__menu", attrs: { data: e.contextualMenuData(s), "menu-position": e.computeMenuPosition(e.hasFirstColumnPanelRightAligned, d), "menu-fixed-positioning": !0, button: { variant: "tertiary" } }, on: { open: function(a) {
715
+ var Ps = function() {
716
+ var e = this, s = e._self._c;
717
+ return e._self._setupProxy, s("div", { staticClass: "b-data-grid-columns", class: e.conditionalColumnsClasses, attrs: { "data-testid": "data-grid-columns" } }, e._l(e.columns, function(t, _) {
718
+ return s("div", e._g({ key: t.field, staticClass: "b-data-grid-columns__column", class: e.conditionalColumnClasses(t), style: { width: `${t.width}px` }, attrs: { "aria-colindex": _ + 1, "aria-label": t.label, "aria-sort": e.getSortingColumnDirection(t), "data-testid": `${t.field}-column-header`, draggable: e.hasDraggableColumns && !e.isResizing && !e.isSelectColumn(t), role: "columnheader", tabindex: t.sortable ? "0" : "-1" } }, e.dataGridColumnEvents(t)), [e.isSelectColumn(t) ? [s("bento-checkbox", { attrs: { "model-value": e.allItemsSelectedCheckboxState.allItemsSelected, "data-testid": "checkbox-select-all", indeterminate: e.allItemsSelectedCheckboxState.isIndeterminate, value: "data-grid-select-all" }, on: { "update:model-value": e.onAllRowSelect } })] : [s("bento-typography", { staticClass: "b-data-grid-columns__column-header", attrs: { el: "div", strongest: "" } }, [e._t(`head-${t.field}`, function() {
719
+ return [s("span", [e._v(e._s(t.label))]), t.infoIconTooltip ? s("bento-info-icon", { attrs: { "tooltip-text": t.infoIconTooltip } }) : e._e()];
720
+ }, { column: t })], 2), t.sortable || e.hasColumnPanel ? s("div", { staticClass: "b-data-grid-columns__column-actions" }, [t.sortable ? s("div", { staticClass: "b-data-grid-columns__column-sort" }, [s("triangle-up", { staticClass: "b-data-grid-columns__column-sort-icon", class: e.conditionalSortDirectionClasses(t.field, e.BentoDatagridSortDirection.ASCENDING), attrs: { "svg-title": `${t.field} sort ascending`, "data-testid": `${t.field}-sort-icon-asc` } }), s("triangle-down", { staticClass: "b-data-grid-columns__column-sort-icon", class: e.conditionalSortDirectionClasses(t.field, e.BentoDatagridSortDirection.DESCENDING), attrs: { "svg-title": `${t.field}sort descending`, "data-testid": `${t.field}-sort-icon-desc` } })], 1) : e._e(), e.hasColumnPanel ? s("bento-menu", { staticClass: "b-data-grid-columns__menu", attrs: { data: e.contextualMenuData(t), "menu-position": e.computeMenuPosition(e.hasFirstColumnPanelRightAligned, _), "menu-fixed-positioning": !0, button: { variant: "tertiary" } }, on: { open: function(l) {
694
721
  return e.$emit(e.DatagridColumnsEvent.COLUMN_MENU_OPEN);
695
- }, close: function(a) {
722
+ }, close: function(l) {
696
723
  return e.$emit(e.DatagridColumnsEvent.COLUMN_MENU_CLOSE);
697
- } } }) : e._e()], 1) : e._e(), n("div", { staticClass: "b-data-grid-columns__column-separator-container", class: e.conditionalColumnSeparatorClasses, attrs: { "data-testid": `data-grid-column-${s.field}`, role: "presentation" }, on: { mousedown: function(a) {
698
- return e.startResize(e.hasResizableColumns, s.field, a);
699
- }, click: function(a) {
700
- a.stopPropagation();
701
- } } }, [!e.isFrozenColumns || e.isFrozenColumns && d !== e.columns.length - 1 ? n("div", { staticClass: "b-data-grid-columns__column-separator" }) : e._e()])]], 2);
724
+ } } }) : e._e()], 1) : e._e(), s("div", { staticClass: "b-data-grid-columns__column-separator-container", class: e.conditionalColumnSeparatorClasses, attrs: { "data-testid": `data-grid-column-${t.field}`, role: "presentation" }, on: { mousedown: function(l) {
725
+ return e.startResize(e.hasResizableColumns, t.field, l);
726
+ }, click: function(l) {
727
+ l.stopPropagation();
728
+ } } }, [!e.isFrozenColumns || e.isFrozenColumns && _ !== e.columns.length - 1 ? s("div", { staticClass: "b-data-grid-columns__column-separator" }) : e._e()])]], 2);
702
729
  }), 0);
703
- }, Dn = [], Mn = /* @__PURE__ */ M(
704
- Pn,
705
- Un,
706
- Dn,
730
+ }, Ds = [], Us = /* @__PURE__ */ D(
731
+ Ns,
732
+ Ps,
733
+ Ds,
707
734
  !1,
708
735
  null,
709
736
  "037928b9",
710
737
  null,
711
738
  null
712
739
  );
713
- const $n = Mn.exports;
714
- var F = /* @__PURE__ */ ((t) => (t.CONFIG_SETTINGS = "config-settings", t.UPDATE_COLUMNS = "update:columns", t))(F || {});
715
- let pe = 0;
716
- const zn = {
740
+ const $s = Us.exports;
741
+ var F = /* @__PURE__ */ ((n) => (n.CONFIG_SETTINGS = "config-settings", n.UPDATE_COLUMNS = "update:columns", n))(F || {});
742
+ let Te = 0;
743
+ const Ms = {
717
744
  beforeCreate() {
718
- this.uuid = pe.toString(), pe += 1;
745
+ this.uuid = Te.toString(), Te += 1;
719
746
  }
720
747
  };
721
- var xn = function() {
722
- var e = this, n = e._self._c;
723
- return n("svg", e._b({ attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", e.$attrs, !1), [e.$attrs["svg-title"] ? n("title", [e._v(e._s(e.$attrs["svg-title"]))]) : e._e(), n("g", { attrs: { "clip-path": "url(#uia-icons-16-settings__a" + e.uuid + ")" } }, [n("path", { attrs: { fill: "#00112C", "fill-rule": "evenodd", d: "M8.75 1C8.75 0.585786 8.41421 0.25 8 0.25C7.58579 0.25 7.25 0.585786 7.25 1V1.2979C6.57635 1.37321 5.91783 1.54959 5.29672 1.82106L5.15026 1.56623C4.94387 1.2071 4.48542 1.08329 4.12629 1.28969C3.76716 1.49608 3.64335 1.95453 3.84974 2.31366L3.99751 2.57078C3.45281 2.97189 2.97145 3.45265 2.56967 3.99684L2.31372 3.84974C1.95459 3.64335 1.49614 3.76716 1.28975 4.12629C1.08335 4.48542 1.20717 4.94387 1.56629 5.15026L1.81832 5.29511C1.54577 5.91658 1.36849 6.57567 1.29247 7.25H1C0.585786 7.25 0.25 7.58579 0.25 8C0.25 8.41421 0.585786 8.75 1 8.75H1.29249C1.36851 9.42433 1.54581 10.0834 1.81837 10.7049L1.56629 10.8497C1.20717 11.0561 1.08335 11.5146 1.28975 11.8737C1.49614 12.2328 1.95459 12.3567 2.31372 12.1503L2.56974 12.0031C2.97151 12.5473 3.45284 13.028 3.99752 13.4291L3.84974 13.6862C3.64335 14.0454 3.76716 14.5038 4.12629 14.7102C4.48542 14.9166 4.94387 14.7928 5.15027 14.4337L5.29669 14.1789C5.91781 14.4504 6.57634 14.6267 7.25 14.7021V15C7.25 15.4142 7.58579 15.75 8 15.75C8.41421 15.75 8.75 15.4142 8.75 15V14.7021C9.42366 14.6267 10.0822 14.4504 10.7033 14.1789L10.8497 14.4337C11.0561 14.7928 11.5146 14.9166 11.8737 14.7102C12.2328 14.5038 12.3567 14.0454 12.1503 13.6862L12.0025 13.4291C12.5472 13.028 13.0285 12.5473 13.4303 12.0031L13.6863 12.1503C14.0454 12.3567 14.5039 12.2328 14.7103 11.8737C14.9167 11.5146 14.7928 11.0561 14.4337 10.8497L14.1817 10.7049C14.4542 10.0834 14.6315 9.42433 14.7075 8.75H15C15.4142 8.75 15.75 8.41421 15.75 8C15.75 7.58579 15.4142 7.25 15 7.25H14.7075C14.6315 6.57567 14.4542 5.91659 14.1817 5.29512L14.4337 5.15027C14.7928 4.94387 14.9167 4.48542 14.7103 4.12629C14.5039 3.76716 14.0454 3.64335 13.6863 3.84974L13.4303 3.99685C13.0285 3.45266 12.5472 2.9719 12.0025 2.57079L12.1503 2.31366C12.3567 1.95453 12.2328 1.49608 11.8737 1.28969C11.5146 1.08329 11.0561 1.2071 10.8497 1.56623L10.7033 1.82106C10.0822 1.54959 9.42365 1.37321 8.75 1.2979V1ZM3.46027 10.6263C3.46894 10.6414 3.47703 10.6567 3.48455 10.6721C3.81553 11.2301 4.24603 11.7202 4.75273 12.119L6.02977 9.90977C5.87643 9.75181 5.74113 9.57619 5.62698 9.38602L5.62041 9.37508C5.5299 9.2183 5.45553 9.0535 5.39784 8.88345C5.36087 8.77446 5.33077 8.66327 5.30773 8.55053C5.27085 8.37007 5.25205 8.18563 5.25205 7.99994C5.25205 7.51721 5.37912 7.04299 5.62048 6.62494L5.62686 6.61388C5.74103 6.4237 5.87643 6.24812 6.02979 6.09014L4.75273 3.88083C4.24621 4.27955 3.81584 4.76943 3.4849 5.32721C3.47729 5.34287 3.46908 5.35839 3.46027 5.37372C3.45059 5.39055 3.44036 5.40687 3.42962 5.42266C2.98528 6.20874 2.75106 7.09641 2.75 7.99994C2.75106 8.90376 2.98543 9.79172 3.43005 10.578C3.44064 10.5936 3.45072 10.6097 3.46027 10.6263ZM9.22412 7.75044C9.24103 7.83222 9.24976 7.9158 9.25 7.99998C9.24939 8.21721 9.19217 8.4305 9.08403 8.61885C8.96887 8.80892 8.80952 8.96837 8.61952 9.08363C8.43083 9.1913 8.21731 9.24795 8 9.24795C7.78331 9.24795 7.57039 9.19162 7.3821 9.08455C7.19161 8.96935 7.03182 8.80977 6.91637 8.61945C6.876 8.5487 6.84279 8.47445 6.81706 8.39782C6.80127 8.35077 6.78829 8.30283 6.77819 8.25425C6.76089 8.17096 6.75208 8.08579 6.75208 8.00002C6.75208 7.78271 6.80873 7.56919 6.91639 7.38051C7.03152 7.19073 7.19073 7.03152 7.38051 6.91639C7.56919 6.80873 7.78271 6.75208 8.00002 6.75208C8.21734 6.75208 8.43085 6.80873 8.61954 6.91639C8.80954 7.03165 8.96889 7.1911 9.08405 7.38117C9.12468 7.45192 9.15811 7.52619 9.18406 7.60287C9.20042 7.6512 9.21379 7.70048 9.22412 7.75044ZM10.6447 7.24995H13.1953C13.102 6.60939 12.8908 5.98951 12.5703 5.4225C12.5596 5.40676 12.5494 5.39049 12.5397 5.37372C12.531 5.35844 12.5228 5.34299 12.5152 5.32739C12.0559 4.55324 11.4051 3.90987 10.625 3.45947C9.8269 2.99869 8.92157 2.7561 8 2.7561C7.33041 2.7561 6.66938 2.88417 6.05183 3.13095L7.32631 5.3358C7.54562 5.28038 7.77186 5.252 8 5.252C8.48273 5.252 8.95695 5.37907 9.375 5.62043L9.38606 5.62681C9.79104 5.86991 10.1299 6.20898 10.373 6.61395L10.3788 6.62358C10.4505 6.74721 10.5122 6.87582 10.5635 7.00811C10.5944 7.08748 10.6214 7.16818 10.6447 7.24995ZM6.05183 12.869L7.3263 10.6642C7.54562 10.7196 7.77187 10.748 8.00002 10.748C8.48275 10.748 8.95697 10.6209 9.37502 10.3795L9.38602 10.3731C9.791 10.13 10.13 9.791 10.3731 9.38602L10.3788 9.37636C10.4935 9.17854 10.5826 8.96807 10.6448 8.75H13.1953C13.102 9.3907 12.8907 10.0107 12.5701 10.5778C12.5594 10.5935 12.5493 10.6096 12.5397 10.6263C12.531 10.6415 12.5229 10.6568 12.5154 10.6723C12.0574 11.4444 11.4089 12.0864 10.6317 12.5366L10.6263 12.5397L10.6183 12.5443C9.82186 13.0026 8.919 13.2438 8 13.2438C7.33041 13.2438 6.66938 13.1158 6.05183 12.869Z", "clip-rule": "evenodd" } })]), n("defs", [n("clipPath", { attrs: { id: "uia-icons-16-settings__a" + e.uuid } }, [n("rect", { attrs: { width: "16", height: "16", fill: "#fff" } })])])]);
724
- }, Fn = [], Gn = /* @__PURE__ */ M(
725
- zn,
726
- xn,
727
- Fn,
748
+ var zs = function() {
749
+ var e = this, s = e._self._c;
750
+ return s("svg", e._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", e.$attrs, !1), [e.$attrs["svg-title"] ? s("title", [e._v(e._s(e.$attrs["svg-title"]))]) : e._e(), s("g", { attrs: { fill: "#00112C", "clip-path": "url(#uia-icons-16-settings__a" + e.uuid + ")" } }, [s("path", { attrs: { d: "M8 5.25C6.48122 5.25 5.25 6.48122 5.25 8C5.25 9.51878 6.48122 10.75 8 10.75C9.51878 10.75 10.75 9.51878 10.75 8C10.75 6.48122 9.51878 5.25 8 5.25ZM6.75 8C6.75 7.30964 7.30964 6.75 8 6.75C8.69036 6.75 9.25 7.30964 9.25 8C9.25 8.69036 8.69036 9.25 8 9.25C7.30964 9.25 6.75 8.69036 6.75 8Z" } }), s("path", { attrs: { d: "M6.84701 0.973015L6.59985 0.35083L5.9537 0.526056C4.64534 0.880867 3.48225 1.56808 2.55285 2.48641L2.07533 2.95826L2.49158 3.48495C2.79648 3.87074 2.85279 4.419 2.58992 4.87589C2.32905 5.32931 1.82436 5.55631 1.33473 5.48726L0.677319 5.39455L0.505539 6.03586C0.33838 6.65992 0.25 7.32519 0.25 7.99991C0.25 8.67463 0.33838 9.3399 0.505539 9.96396L0.677319 10.6053L1.33473 10.5126C1.82436 10.4435 2.32905 10.6705 2.58992 11.1239C2.85279 11.5808 2.79648 12.1291 2.49158 12.5149L2.07533 13.0416L2.55285 13.5134C3.48225 14.4317 4.64534 15.119 5.9537 15.4738L6.59985 15.649L6.84701 15.0268C7.02659 14.5748 7.47549 14.2499 8 14.2499C8.52452 14.2499 8.97341 14.5748 9.15299 15.0268L9.40016 15.649L10.0463 15.4738C11.3547 15.119 12.5177 14.4317 13.4471 13.5134L13.9247 13.0416L13.5084 12.5149C13.2035 12.1291 13.1472 11.5808 13.4101 11.1239C13.671 10.6705 14.1756 10.4435 14.6653 10.5126L15.3227 10.6053L15.4945 9.96396C15.6616 9.3399 15.75 8.67463 15.75 7.99991C15.75 7.32519 15.6616 6.65992 15.4945 6.03586L15.3227 5.39455L14.6653 5.48726C14.1756 5.55631 13.671 5.32931 13.4101 4.87589C13.1472 4.419 13.2035 3.87074 13.5084 3.48495L13.9247 2.95826L13.4471 2.48641C12.5177 1.56808 11.3547 0.880867 10.0463 0.526056L9.40016 0.35083L9.15299 0.973015C8.97341 1.42506 8.52452 1.74991 8 1.74991C7.47549 1.74991 7.02659 1.42506 6.84701 0.973015ZM3.89008 5.62393C4.33946 4.84286 4.36394 3.9353 4.03405 3.16853C4.55803 2.73795 5.15349 2.39116 5.80146 2.14902C6.30062 2.81653 7.10051 3.24991 8 3.24991C8.89949 3.24991 9.69938 2.81653 10.1985 2.14902C10.8465 2.39116 11.442 2.73795 11.966 3.16853C11.6361 3.9353 11.6605 4.84287 12.1099 5.62393C12.5612 6.40839 13.3382 6.88092 14.1658 6.97982C14.221 7.31075 14.25 7.65319 14.25 7.99991C14.25 8.34663 14.221 8.68908 14.1658 9.02001C13.3382 9.11891 12.5612 9.59143 12.1099 10.3759C11.6605 11.157 11.6361 12.0645 11.9659 12.8313C11.442 13.2619 10.8465 13.6087 10.1985 13.8508C9.69938 13.1833 8.89949 12.7499 8 12.7499C7.10051 12.7499 6.30062 13.1833 5.80146 13.8508C5.15349 13.6087 4.55803 13.2619 4.03405 12.8313C4.36394 12.0645 4.33946 11.157 3.89008 10.3759C3.43875 9.59143 2.66177 9.1189 1.8342 9.02C1.77896 8.68908 1.75 8.34663 1.75 7.99991C1.75 7.65319 1.77896 7.31074 1.8342 6.97982C2.66177 6.88092 3.43875 6.40839 3.89008 5.62393Z" } })]), s("defs", [s("clipPath", { attrs: { id: "uia-icons-16-settings__a" + e.uuid } }, [s("rect", { attrs: { width: "16", height: "16", fill: "#fff" } })])])]);
751
+ }, xs = [], Fs = /* @__PURE__ */ D(
752
+ Ms,
753
+ zs,
754
+ xs,
728
755
  !1,
729
756
  null,
730
- "6e917c82",
757
+ null,
731
758
  null,
732
759
  null
733
760
  );
734
- const Wn = Gn.exports, kn = {
761
+ const Gs = Fs.exports, Bs = {
735
762
  "en-US": {
736
763
  toggleColumnVisibility: "Toggle {label} column visibility",
737
764
  toggleColumnFreeze: "Toggle {label} column freeze"
738
765
  }
739
- }, Bn = j({
740
- i18n: { messages: kn },
766
+ }, Ws = Y({
767
+ i18n: { messages: Bs },
741
768
  name: "bento-data-grid",
742
769
  components: {
743
- BentoFreezeIcon: Ae,
744
- BentoToggle: Oe
770
+ BentoFreezeIcon: Me,
771
+ BentoToggle: $e
745
772
  },
746
773
  props: {
747
774
  /**
@@ -760,54 +787,54 @@ const Wn = Gn.exports, kn = {
760
787
  }
761
788
  },
762
789
  emits: ["visible-column", "updated-column"],
763
- setup(t, { emit: e }) {
764
- const n = E(!1), s = L(() => {
765
- var u;
766
- return (u = t.column) == null ? void 0 : u.frozen;
767
- }), d = L(() => {
768
- var u;
769
- return ((u = t.column) == null ? void 0 : u.visible) !== !1;
770
- }), a = () => {
771
- e("visible-column", { ...t.column, visible: !d.value });
772
- }, C = () => {
773
- e("updated-column", { ...t.column, frozen: !s.value });
774
- }, _ = () => {
775
- s.value || (n.value = !0);
790
+ setup(n, { emit: e }) {
791
+ const s = R(!1), t = y(() => {
792
+ var p;
793
+ return (p = n.column) == null ? void 0 : p.frozen;
794
+ }), _ = y(() => {
795
+ var p;
796
+ return ((p = n.column) == null ? void 0 : p.visible) !== !1;
797
+ }), l = () => {
798
+ e("visible-column", { ...n.column, visible: !_.value });
799
+ }, v = () => {
800
+ e("updated-column", { ...n.column, frozen: !t.value });
801
+ }, d = () => {
802
+ t.value || (s.value = !0);
776
803
  }, g = () => {
777
- s.value || (n.value = !1);
778
- }, c = L(() => ({
779
- ["b-data-grid-config-settings-column-row__freeze-icon--frozen"]: s.value
804
+ t.value || (s.value = !1);
805
+ }, m = y(() => ({
806
+ ["b-data-grid-config-settings-column-row__freeze-icon--frozen"]: t.value
780
807
  }));
781
808
  return {
782
809
  // Values
783
- isFreezeIconOptionShown: n,
784
- isColumnFrozen: s,
785
- freezeIconConditionalClasses: c,
786
- isColumnVisible: d,
810
+ isFreezeIconOptionShown: s,
811
+ isColumnFrozen: t,
812
+ freezeIconConditionalClasses: m,
813
+ isColumnVisible: _,
787
814
  // Methods
788
- toggleColumnVisibility: a,
789
- showFreezeIcon: _,
815
+ toggleColumnVisibility: l,
816
+ showFreezeIcon: d,
790
817
  hideFreezeIcon: g,
791
- toggleColumnFreeze: C
818
+ toggleColumnFreeze: v
792
819
  };
793
820
  }
794
821
  });
795
- var Vn = function() {
796
- var e = this, n = e._self._c;
797
- return e._self._setupProxy, n("div", { staticClass: "b-data-grid-config-settings-column-row", on: { mouseover: e.showFreezeIcon, mouseleave: e.hideFreezeIcon } }, [n("bento-toggle", { attrs: { "aria-label": e.$t("toggleColumnVisibility", { label: e.column.label }), disabled: e.isColumnVisibilityToggleDisabled, "label-position": "after", value: e.isColumnVisible }, on: { input: e.toggleColumnVisibility } }, [e._v(" " + e._s(e.column.label) + " ")]), n("bento-freeze-icon", { directives: [{ name: "show", rawName: "v-show", value: e.isColumnFrozen || e.isFreezeIconOptionShown, expression: "isColumnFrozen || isFreezeIconOptionShown" }], staticClass: "b-data-grid-config-settings-column-row__freeze-icon", class: e.freezeIconConditionalClasses, attrs: { "aria-label": e.$t("toggleColumnFreeze", { label: e.column.label }) }, nativeOn: { click: function(s) {
822
+ var ks = function() {
823
+ var e = this, s = e._self._c;
824
+ return e._self._setupProxy, s("div", { staticClass: "b-data-grid-config-settings-column-row", on: { mouseover: e.showFreezeIcon, mouseleave: e.hideFreezeIcon } }, [s("bento-toggle", { attrs: { "aria-label": e.$t("toggleColumnVisibility", { label: e.column.label }), disabled: e.isColumnVisibilityToggleDisabled, "label-position": "after", value: e.isColumnVisible }, on: { input: e.toggleColumnVisibility } }, [e._v(" " + e._s(e.column.label) + " ")]), s("bento-freeze-icon", { directives: [{ name: "show", rawName: "v-show", value: e.isColumnFrozen || e.isFreezeIconOptionShown, expression: "isColumnFrozen || isFreezeIconOptionShown" }], staticClass: "b-data-grid-config-settings-column-row__freeze-icon", class: e.freezeIconConditionalClasses, attrs: { "aria-label": e.$t("toggleColumnFreeze", { label: e.column.label }) }, nativeOn: { click: function(t) {
798
825
  return e.toggleColumnFreeze.apply(null, arguments);
799
826
  } } })], 1);
800
- }, Hn = [], Zn = /* @__PURE__ */ M(
801
- Bn,
802
- Vn,
803
- Hn,
827
+ }, Vs = [], Hs = /* @__PURE__ */ D(
828
+ Ws,
829
+ ks,
830
+ Vs,
804
831
  !1,
805
832
  null,
806
833
  "246774cd",
807
834
  null,
808
835
  null
809
836
  );
810
- const jn = Zn.exports, Yn = {
837
+ const Zs = Hs.exports, js = {
811
838
  "en-US": {
812
839
  closeConfigSettingsPanel: "Close configuration settings panel",
813
840
  configSettingsPanel: "Configuration settings Panel",
@@ -823,18 +850,18 @@ const jn = Zn.exports, Yn = {
823
850
  closeSearch: "Close search",
824
851
  noColumnsMatch: "No columns match this search"
825
852
  }
826
- }, Xn = j({
827
- i18n: { messages: Yn },
853
+ }, Ys = Y({
854
+ i18n: { messages: js },
828
855
  name: "bento-data-grid",
829
856
  components: {
830
- BentoCrossIcon: Dt,
857
+ BentoCrossIcon: Ut,
831
858
  BentoPopover: wt,
832
- BentoSettingsIcon: Wn,
859
+ BentoSettingsIcon: Gs,
833
860
  BentoButton: Nt,
834
- BentoDataGridConfigSettingsConfigRow: jn,
861
+ BentoDataGridConfigSettingsConfigRow: Zs,
835
862
  BentoSearchBar: Pt,
836
- BentoSearchIcon: Mt,
837
- BentoToggle: Oe,
863
+ BentoSearchIcon: $t,
864
+ BentoToggle: $e,
838
865
  BentoTypography: le
839
866
  },
840
867
  directives: { BentoClickOutsideDirective: zt },
@@ -855,95 +882,95 @@ const jn = Zn.exports, Yn = {
855
882
  }
856
883
  },
857
884
  emits: [F.CONFIG_SETTINGS, F.UPDATE_COLUMNS],
858
- setup(t, { emit: e }) {
859
- const n = E(null), s = $t("data-grid-config-settings-popover"), d = E(null), a = E(!1), C = E(!0), _ = E(""), g = ye(t, "columns"), c = E(!1), u = Ut(_, g), o = () => {
860
- _.value = "";
861
- }, h = L(
862
- () => !t.columns.some((f) => f.visible === !1 && !f.mandatory)
863
- ), r = () => {
864
- o(), c.value = !c.value, c.value && G(() => {
865
- var f;
866
- return (f = d.value.bentoInputField) == null ? void 0 : f.focusInput();
867
- }), C.value = h.value;
868
- }, b = (f) => f.mandatory ?? !1, S = (f) => {
869
- const p = t.columns.map((I) => ({
885
+ setup(n, { emit: e }) {
886
+ const s = R(null), t = Mt("data-grid-config-settings-popover"), _ = R(null), l = R(!1), v = R(!0), d = R(""), g = we(n, "columns"), m = R(!1), p = Dt(d, g), a = () => {
887
+ d.value = "";
888
+ }, E = y(
889
+ () => !n.columns.some((u) => u.visible === !1 && !u.mandatory)
890
+ ), o = () => {
891
+ a(), m.value = !m.value, m.value && G(() => {
892
+ var u;
893
+ return (u = _.value.bentoInputField) == null ? void 0 : u.focusInput();
894
+ }), v.value = E.value;
895
+ }, c = (u) => u.mandatory ?? !1, f = (u) => {
896
+ const L = n.columns.map((I) => ({
870
897
  ...I,
871
- visible: f.field === I.field ? f.visible : I.visible
898
+ visible: u.field === I.field ? u.visible : I.visible
872
899
  }));
873
- e(F.UPDATE_COLUMNS, p);
874
- }, A = (f) => {
875
- f ? e(
900
+ e(F.UPDATE_COLUMNS, L);
901
+ }, b = (u) => {
902
+ u ? e(
876
903
  F.UPDATE_COLUMNS,
877
- t.columns.map((p) => ({ ...p, visible: !0 }))
904
+ n.columns.map((L) => ({ ...L, visible: !0 }))
878
905
  ) : e(
879
906
  F.UPDATE_COLUMNS,
880
- t.columns.map((p) => ({ ...p, visible: (p == null ? void 0 : p.mandatory) === !0 }))
907
+ n.columns.map((L) => ({ ...L, visible: (L == null ? void 0 : L.mandatory) === !0 }))
881
908
  );
882
- }, T = (f) => {
883
- const p = t.columns.map((I) => ({
909
+ }, S = (u) => {
910
+ const L = n.columns.map((I) => ({
884
911
  ...I,
885
- frozen: f.field === I.field ? !!(f != null && f.frozen) : !!(I != null && I.frozen)
912
+ frozen: u.field === I.field ? !!(u != null && u.frozen) : !!(I != null && I.frozen)
886
913
  }));
887
- e(F.UPDATE_COLUMNS, p);
888
- }, v = (f) => {
889
- a.value = f, C.value = h.value;
914
+ e(F.UPDATE_COLUMNS, L);
915
+ }, C = (u) => {
916
+ l.value = u, v.value = E.value;
890
917
  };
891
918
  return {
892
919
  // Values
893
- configSettingsButtonRef: n,
894
- popoverId: s,
895
- isConfigSettingsPanelOpen: a,
896
- allColumnsVisbilityToggleState: C,
897
- filteredColumnVisibilityColumns: u,
898
- searchTerm: _,
899
- isColumnVisibilityFilterShown: c,
900
- searchBarRef: d,
920
+ configSettingsButtonRef: s,
921
+ popoverId: t,
922
+ isConfigSettingsPanelOpen: l,
923
+ allColumnsVisbilityToggleState: v,
924
+ filteredColumnVisibilityColumns: p,
925
+ searchTerm: d,
926
+ isColumnVisibilityFilterShown: m,
927
+ searchBarRef: _,
901
928
  DATAGRID_SELECT_FIELD_NAME: V,
902
929
  // Methods
903
- setConfigSettingsPanelVisibility: v,
904
- emitCondensedToggle: (f) => e(F.CONFIG_SETTINGS, f),
905
- toggleAllColumnVisibility: A,
906
- clearAction: o,
907
- toggleColumnFilter: r,
908
- emitVisibleColumns: S,
909
- emitFrozenColumns: T,
910
- onClickOutside: () => v(!1),
911
- isColumnVisibilityToggleDisabled: b
930
+ setConfigSettingsPanelVisibility: C,
931
+ emitCondensedToggle: (u) => e(F.CONFIG_SETTINGS, u),
932
+ toggleAllColumnVisibility: b,
933
+ clearAction: a,
934
+ toggleColumnFilter: o,
935
+ emitVisibleColumns: f,
936
+ emitFrozenColumns: S,
937
+ onClickOutside: () => C(!1),
938
+ isColumnVisibilityToggleDisabled: c
912
939
  };
913
940
  }
914
941
  });
915
- var qn = function() {
916
- var e = this, n = e._self._c;
917
- return e._self._setupProxy, n("div", { directives: [{ name: "bento-click-outside-directive", rawName: "v-bento-click-outside-directive", value: e.onClickOutside, expression: "onClickOutside" }], staticClass: "b-data-grid-config-settings" }, [n("div", { staticClass: "b-data-grid-config-settings__button-and-separator" }, [n("div", { staticClass: "b-data-grid-config-settings__column-separator" }), n("div", { ref: "configSettingsButtonRef", staticClass: "b-data-grid-config-settings__button-container" }, [n("bento-button", { attrs: { "aria-controls": e.isConfigSettingsPanelOpen ? e.popoverId : null, variant: "tertiary" }, on: { click: function(s) {
942
+ var Xs = function() {
943
+ var e = this, s = e._self._c;
944
+ return e._self._setupProxy, s("div", { directives: [{ name: "bento-click-outside-directive", rawName: "v-bento-click-outside-directive", value: e.onClickOutside, expression: "onClickOutside" }], staticClass: "b-data-grid-config-settings" }, [s("div", { staticClass: "b-data-grid-config-settings__button-and-separator" }, [s("div", { staticClass: "b-data-grid-config-settings__column-separator" }), s("div", { ref: "configSettingsButtonRef", staticClass: "b-data-grid-config-settings__button-container" }, [s("bento-button", { attrs: { "aria-controls": e.isConfigSettingsPanelOpen ? e.popoverId : null, variant: "tertiary" }, on: { click: function(t) {
918
945
  return e.setConfigSettingsPanelVisibility(!e.isConfigSettingsPanelOpen);
919
946
  } }, scopedSlots: e._u([{ key: "iconLeft", fn: function() {
920
- return [n("bento-settings-icon", { attrs: { "svg-title": e.$t("toggleConfigSettingsPanelVisibility") } })];
921
- }, proxy: !0 }]) })], 1)]), e.configSettingsButtonRef ? n("bento-popover", { staticClass: "b-data-grid-config-settings__panel", attrs: { id: e.popoverId, open: e.isConfigSettingsPanelOpen, "aria-label": e.$t("configSettingsPanel"), "target-element": e.configSettingsButtonRef, position: "bottom-end" } }, [n("div", { staticClass: "b-data-grid-config-settings__panel-header" }, [n("bento-typography", { attrs: { el: "span", strongest: "" } }, [e._v(" " + e._s(e.$t("displayOptions")) + " ")]), n("bento-button", { attrs: { variant: "tertiary" }, on: { click: function(s) {
947
+ return [s("bento-settings-icon", { attrs: { "svg-title": e.$t("toggleConfigSettingsPanelVisibility") } })];
948
+ }, proxy: !0 }]) })], 1)]), e.configSettingsButtonRef ? s("bento-popover", { staticClass: "b-data-grid-config-settings__panel", attrs: { id: e.popoverId, open: e.isConfigSettingsPanelOpen, "aria-label": e.$t("configSettingsPanel"), "target-element": e.configSettingsButtonRef, position: "bottom-end" } }, [s("div", { staticClass: "b-data-grid-config-settings__panel-header" }, [s("bento-typography", { attrs: { el: "span", strongest: "" } }, [e._v(" " + e._s(e.$t("displayOptions")) + " ")]), s("bento-button", { attrs: { variant: "tertiary" }, on: { click: function(t) {
922
949
  return e.setConfigSettingsPanelVisibility(!1);
923
950
  } }, scopedSlots: e._u([{ key: "iconLeft", fn: function() {
924
- return [n("bento-cross-icon", { attrs: { "svg-title": e.$t("closeConfigSettingsPanel") } })];
925
- }, proxy: !0 }], null, !1, 13708930) })], 1), n("div", { staticClass: "b-data-grid-config-settings__condensed-view-settings" }, [n("bento-typography", { staticClass: "b-data-grid-config-settings__condensed-view-title", attrs: { el: "span", stronger: "" } }, [e._v(" " + e._s(e.$t("size")) + " ")]), n("bento-toggle", { attrs: { "label-position": "after", "aria-label": e.$t("condensedToggle"), value: e.condensed }, on: { input: e.emitCondensedToggle } }, [e._v(" " + e._s(e.$t("condensed")) + " ")])], 1), n("div", { staticClass: "b-data-grid-config-settings__column-visibility-settings" }, [n("div", { staticClass: "b-data-grid-config-settings__column-visibility-header" }, [n("bento-typography", { staticClass: "b-data-grid-config-settings__column-visibility-title", attrs: { el: "span", stronger: "" } }, [e._v(" " + e._s(e.$t("columns")) + " ")]), e.isColumnVisibilityFilterShown ? n("bento-button", { attrs: { variant: "tertiary" }, on: { click: e.toggleColumnFilter }, scopedSlots: e._u([{ key: "iconLeft", fn: function() {
926
- return [n("bento-cross-icon")];
927
- }, proxy: !0 }], null, !1, 2651303519) }, [e._v(" " + e._s(e.$t("closeSearch")) + " ")]) : n("bento-button", { attrs: { variant: "tertiary" }, on: { click: e.toggleColumnFilter }, scopedSlots: e._u([{ key: "iconLeft", fn: function() {
928
- return [n("bento-search-icon")];
929
- }, proxy: !0 }], null, !1, 2341044271) }, [e._v(" " + e._s(e.$t("search")) + " ")])], 1), e.isColumnVisibilityFilterShown ? n("div", { staticClass: "b-data-grid-config-settings__column-visibility-search" }, [n("bento-search-bar", { ref: "searchBarRef", attrs: { value: e.searchTerm, "input-field-aria-label": e.$t("columnVisibilitySearchFilter").toString() }, on: { input: function(s) {
930
- e.searchTerm = s;
931
- }, clear: e.clearAction, "escape-pressed": function(s) {
951
+ return [s("bento-cross-icon", { attrs: { "svg-title": e.$t("closeConfigSettingsPanel") } })];
952
+ }, proxy: !0 }], null, !1, 13708930) })], 1), s("div", { staticClass: "b-data-grid-config-settings__condensed-view-settings" }, [s("bento-typography", { staticClass: "b-data-grid-config-settings__condensed-view-title", attrs: { el: "span", stronger: "" } }, [e._v(" " + e._s(e.$t("size")) + " ")]), s("bento-toggle", { attrs: { "label-position": "after", "aria-label": e.$t("condensedToggle"), value: e.condensed }, on: { input: e.emitCondensedToggle } }, [e._v(" " + e._s(e.$t("condensed")) + " ")])], 1), s("div", { staticClass: "b-data-grid-config-settings__column-visibility-settings" }, [s("div", { staticClass: "b-data-grid-config-settings__column-visibility-header" }, [s("bento-typography", { staticClass: "b-data-grid-config-settings__column-visibility-title", attrs: { el: "span", stronger: "" } }, [e._v(" " + e._s(e.$t("columns")) + " ")]), e.isColumnVisibilityFilterShown ? s("bento-button", { attrs: { variant: "tertiary" }, on: { click: e.toggleColumnFilter }, scopedSlots: e._u([{ key: "iconLeft", fn: function() {
953
+ return [s("bento-cross-icon")];
954
+ }, proxy: !0 }], null, !1, 2651303519) }, [e._v(" " + e._s(e.$t("closeSearch")) + " ")]) : s("bento-button", { attrs: { variant: "tertiary" }, on: { click: e.toggleColumnFilter }, scopedSlots: e._u([{ key: "iconLeft", fn: function() {
955
+ return [s("bento-search-icon")];
956
+ }, proxy: !0 }], null, !1, 2341044271) }, [e._v(" " + e._s(e.$t("search")) + " ")])], 1), e.isColumnVisibilityFilterShown ? s("div", { staticClass: "b-data-grid-config-settings__column-visibility-search" }, [s("bento-search-bar", { ref: "searchBarRef", attrs: { value: e.searchTerm, "input-field-aria-label": e.$t("columnVisibilitySearchFilter").toString() }, on: { input: function(t) {
957
+ e.searchTerm = t;
958
+ }, clear: e.clearAction, "escape-pressed": function(t) {
932
959
  return e.toggleColumnFilter();
933
- } } })], 1) : n("div", { staticClass: "b-data-grid-config-settings__column-visibility-show-all" }, [n("bento-toggle", { attrs: { "label-position": "after", value: e.allColumnsVisbilityToggleState }, on: { input: e.toggleAllColumnVisibility } }, [e._v(" " + e._s(e.$t("showAllColumns", { numberOfColumns: e.columns.length })) + " ")])], 1), n("div", { staticClass: "b-data-grid-config-settings__column-visibility-toggles" }, [e._l(e.filteredColumnVisibilityColumns, function(s) {
934
- return n("div", { key: s.field }, [s.field !== e.DATAGRID_SELECT_FIELD_NAME ? n("bento-data-grid-config-settings-config-row", { attrs: { column: s, "is-column-visibility-toggle-disabled": e.isColumnVisibilityToggleDisabled(s) }, on: { "visible-column": e.emitVisibleColumns, "updated-column": e.emitFrozenColumns } }) : e._e()], 1);
935
- }), e.filteredColumnVisibilityColumns.length === 0 ? n("bento-typography", { staticClass: "b-data-grid-config-settings__column-visibility-empty-search-message", attrs: { el: "span" } }, [e._v(" " + e._s(e.$t("noColumnsMatch")) + " ")]) : e._e()], 2)])]) : e._e()], 1);
936
- }, Jn = [], Kn = /* @__PURE__ */ M(
937
- Xn,
938
- qn,
939
- Jn,
960
+ } } })], 1) : s("div", { staticClass: "b-data-grid-config-settings__column-visibility-show-all" }, [s("bento-toggle", { attrs: { "label-position": "after", value: e.allColumnsVisbilityToggleState }, on: { input: e.toggleAllColumnVisibility } }, [e._v(" " + e._s(e.$t("showAllColumns", { numberOfColumns: e.columns.length })) + " ")])], 1), s("div", { staticClass: "b-data-grid-config-settings__column-visibility-toggles" }, [e._l(e.filteredColumnVisibilityColumns, function(t) {
961
+ return s("div", { key: t.field }, [t.field !== e.DATAGRID_SELECT_FIELD_NAME ? s("bento-data-grid-config-settings-config-row", { attrs: { column: t, "is-column-visibility-toggle-disabled": e.isColumnVisibilityToggleDisabled(t) }, on: { "visible-column": e.emitVisibleColumns, "updated-column": e.emitFrozenColumns } }) : e._e()], 1);
962
+ }), e.filteredColumnVisibilityColumns.length === 0 ? s("bento-typography", { staticClass: "b-data-grid-config-settings__column-visibility-empty-search-message", attrs: { el: "span" } }, [e._v(" " + e._s(e.$t("noColumnsMatch")) + " ")]) : e._e()], 2)])]) : e._e()], 1);
963
+ }, qs = [], Js = /* @__PURE__ */ D(
964
+ Ys,
965
+ Xs,
966
+ qs,
940
967
  !1,
941
968
  null,
942
969
  "86ff67f7",
943
970
  null,
944
971
  null
945
972
  );
946
- const Qn = Kn.exports, we = {
973
+ const Qs = Js.exports, ze = {
947
974
  "en-US": {
948
975
  gettingYourData: "Getting your data",
949
976
  loading: "Loading",
@@ -953,47 +980,47 @@ const Qn = Kn.exports, we = {
953
980
  sortInactive: "{field} sort inactive",
954
981
  selectRow: "Select row"
955
982
  }
956
- }, es = {
957
- i18n: { messages: we }
958
- }, ts = /* @__PURE__ */ j({
959
- ...es,
983
+ }, Ks = {
984
+ i18n: { messages: ze }
985
+ }, en = /* @__PURE__ */ Y({
986
+ ...Ks,
960
987
  __name: "data-grid-lazy-load",
961
988
  props: {
962
989
  loading: { type: Boolean },
963
990
  isInfiniteScroll: { type: Boolean }
964
991
  },
965
- setup(t) {
966
- return { __sfc: !0, BentoLoadingButton: Wt, BentoLoadingButtonState: kt, BentoLoadingIndicator: Re, BentoDatagridEvent: m };
992
+ setup(n) {
993
+ return { __sfc: !0, BentoLoadingButton: Bt, BentoLoadingButtonState: Wt, BentoLoadingIndicator: Pe, BentoDatagridEvent: h };
967
994
  }
968
995
  });
969
- var ns = function() {
970
- var e = this, n = e._self._c, s = e._self._setupProxy;
971
- return n("div", { staticClass: "b-data-grid-lazy-load" }, [e.loading && e.isInfiniteScroll ? n(s.BentoLoadingIndicator) : e._e(), e.loading && !e.isInfiniteScroll ? n(s.BentoLoadingButton, { attrs: { variant: "secondary", state: s.BentoLoadingButtonState.LOADING } }, [e._v(e._s(e.$t("loading")))]) : e._e(), !e.loading && !e.isInfiniteScroll ? n(s.BentoLoadingButton, { attrs: { state: s.BentoLoadingButtonState.START, variant: "secondary" }, on: { click: function(d) {
972
- return e.$emit(s.BentoDatagridEvent.UPDATE_SHOW_MORE);
996
+ var tn = function() {
997
+ var e = this, s = e._self._c, t = e._self._setupProxy;
998
+ return s("div", { staticClass: "b-data-grid-lazy-load" }, [e.loading && e.isInfiniteScroll ? s(t.BentoLoadingIndicator) : e._e(), e.loading && !e.isInfiniteScroll ? s(t.BentoLoadingButton, { attrs: { variant: "secondary", state: t.BentoLoadingButtonState.LOADING } }, [e._v(e._s(e.$t("loading")))]) : e._e(), !e.loading && !e.isInfiniteScroll ? s(t.BentoLoadingButton, { attrs: { state: t.BentoLoadingButtonState.START, variant: "secondary" }, on: { click: function(_) {
999
+ return e.$emit(t.BentoDatagridEvent.UPDATE_SHOW_MORE);
973
1000
  } } }, [e._v(e._s(e.$t("showMore")))]) : e._e()], 1);
974
- }, ss = [], is = /* @__PURE__ */ M(
975
- ts,
976
- ns,
977
- ss,
1001
+ }, sn = [], nn = /* @__PURE__ */ D(
1002
+ en,
1003
+ tn,
1004
+ sn,
978
1005
  !1,
979
1006
  null,
980
1007
  "434be84c",
981
1008
  null,
982
1009
  null
983
1010
  );
984
- const ls = is.exports, he = (t, e) => {
985
- const n = E(0);
986
- let s = null;
987
- const d = () => {
988
- t != null && t.value && e.value && (n.value = t.value.offsetHeight);
1011
+ const ln = nn.exports, Ie = (n, e) => {
1012
+ const s = R(0);
1013
+ let t = null;
1014
+ const _ = () => {
1015
+ n != null && n.value && e.value && (s.value = n.value.offsetHeight);
989
1016
  };
990
- return Se(() => {
1017
+ return Oe(() => {
991
1018
  G(() => {
992
- const a = B(
993
- t,
1019
+ const l = B(
1020
+ n,
994
1021
  () => {
995
- t != null && t.value && (G(() => a()), s = Te(t.value, () => {
996
- d();
1022
+ n != null && n.value && (G(() => l()), t = De(n.value, () => {
1023
+ _();
997
1024
  }));
998
1025
  },
999
1026
  { immediate: !0 }
@@ -1001,30 +1028,48 @@ const ls = is.exports, he = (t, e) => {
1001
1028
  B(
1002
1029
  e,
1003
1030
  () => {
1004
- e.value ? d() : n.value = 0;
1031
+ e.value ? _() : s.value = 0;
1005
1032
  },
1006
1033
  { immediate: !0 }
1007
1034
  );
1008
1035
  });
1009
- }), Le(() => {
1010
- s == null || s.disconnect();
1011
- }), n;
1012
- }, as = Symbol("data-grid-template injection key"), os = j({
1013
- i18n: { messages: we },
1014
- name: "bento-data-grid",
1015
- components: {
1016
- BentoActionBar: yt,
1017
- BentoCheckbox: Ee,
1018
- BentoDataGridConfigSettings: Qn,
1019
- BentoEmptyState: Et,
1020
- BentoLoadingIndicator: Re,
1021
- BentoPagination: Rt,
1022
- BentoFilterBar: K,
1023
- BentoTypography: le,
1024
- DataGridColumns: $n,
1025
- DataGridLazyLoad: ls
1026
- },
1036
+ }), Ae(() => {
1037
+ t == null || t.disconnect();
1038
+ }), s;
1039
+ }, an = (n, e, s) => {
1040
+ const t = R(0);
1041
+ return B(
1042
+ () => t.value,
1043
+ () => {
1044
+ n.value.scrollLeft = t.value, e.value.scrollLeft = t.value;
1045
+ }
1046
+ ), {
1047
+ // Values
1048
+ scrollLeftPosition: t,
1049
+ // Methods
1050
+ updateScrollPosition: (v) => {
1051
+ t.value = v.target.scrollLeft, s.value = n.value.scrollHeight - v.target.scrollTop;
1052
+ },
1053
+ updateScrollPositionOnFrozenColumnsNavigation: () => {
1054
+ n.value.scrollLeft = 0, n.value.style.overflowX = "hidden", setTimeout(() => {
1055
+ n.value.style.overflowX = "auto";
1056
+ });
1057
+ }
1058
+ };
1059
+ }, on = Symbol("data-grid-template injection key"), rn = {
1060
+ i18n: { messages: ze },
1061
+ name: "bento-data-grid"
1062
+ }, dn = /* @__PURE__ */ Y({
1063
+ ...rn,
1027
1064
  props: {
1065
+ /**
1066
+ * When true, will emit a 'rowClick' event when a row is clicked. Will add cursor: pointer to rows.
1067
+ */
1068
+ allowRowClicks: { type: Boolean, default: !1 },
1069
+ /**
1070
+ * When true, column headers will become draggable, allowing users to rearrange columns.
1071
+ */
1072
+ allowColumnDragAndDrop: { type: Boolean, default: !0 },
1028
1073
  /**
1029
1074
  * List of actions that will be rendered in the action bar when user selects items.
1030
1075
  *
@@ -1039,14 +1084,6 @@ const ls = is.exports, he = (t, e) => {
1039
1084
  type: Array,
1040
1085
  default: null
1041
1086
  },
1042
- /**
1043
- * When true, will emit a 'rowClick' event when a row is clicked. Will add cursor: pointer to rows.
1044
- */
1045
- allowRowClicks: { type: Boolean, default: !1 },
1046
- /**
1047
- * When true, column headers will become draggable, allowing users to rearrange columns.
1048
- */
1049
- allowColumnDragAndDrop: { type: Boolean, default: !0 },
1050
1087
  /**
1051
1088
  * Sets the row cells to the condensed padding state.
1052
1089
  */
@@ -1084,7 +1121,7 @@ const ls = is.exports, he = (t, e) => {
1084
1121
  * {@see BentoFilterBarModel}
1085
1122
  */
1086
1123
  filters: {
1087
- type: K.props.value.type,
1124
+ type: Q.props.value.type,
1088
1125
  default: void 0
1089
1126
  },
1090
1127
  /**
@@ -1092,14 +1129,14 @@ const ls = is.exports, he = (t, e) => {
1092
1129
  * {@see BentoFilterValues}
1093
1130
  */
1094
1131
  filterValues: {
1095
- type: K.props.filterValues.type,
1132
+ type: Q.props.filterValues.type,
1096
1133
  default: () => []
1097
1134
  },
1098
1135
  /**
1099
1136
  * Filter bar search term useful to filter all the data by text
1100
1137
  */
1101
1138
  filterSearchTerm: {
1102
- type: K.props.searchTerm.type,
1139
+ type: Q.props.searchTerm.type,
1103
1140
  default: void 0
1104
1141
  },
1105
1142
  /**
@@ -1112,7 +1149,7 @@ const ls = is.exports, he = (t, e) => {
1112
1149
  */
1113
1150
  getDataItemId: {
1114
1151
  type: Function,
1115
- default: (t) => t.id
1152
+ default: (n) => n.id
1116
1153
  },
1117
1154
  /**
1118
1155
  * If resize is enabled
@@ -1138,7 +1175,7 @@ const ls = is.exports, he = (t, e) => {
1138
1175
  lazyLoadType: {
1139
1176
  type: String,
1140
1177
  default: "none",
1141
- validator: (t) => ["automatic", "button", "none"].includes(t)
1178
+ validator: (n) => ["automatic", "button", "none"].includes(n)
1142
1179
  },
1143
1180
  /**
1144
1181
  * If the loading indicator should be shown.
@@ -1216,291 +1253,190 @@ const ls = is.exports, he = (t, e) => {
1216
1253
  }
1217
1254
  },
1218
1255
  emits: [
1219
- m.COLUMNS,
1220
- m.COLUMN_RESIZE,
1221
- m.ITEMS_PAGE,
1222
- m.FILTER_SEARCH_INPUT,
1223
- m.FILTER_SEARCH_CLEAR,
1224
- m.NAVIGATE,
1225
- m.UPDATE_COLUMNS,
1226
- m.UPDATE_CONDENSED,
1227
- m.UPDATE_FILTER_VALUES,
1228
- m.UPDATE_FILTERS,
1229
- m.UPDATE_FILTER_SEARCH_TERM,
1230
- m.UPDATE_SHOW_MORE,
1231
- m.UPDATE_PAGINATION,
1232
- m.UPDATE_SELECTION,
1233
- m.UPDATE_SORT_BY,
1234
- m.ROW_CLICK,
1235
- m.SELECT,
1236
- m.SORT
1256
+ h.COLUMNS,
1257
+ h.COLUMN_RESIZE,
1258
+ h.ITEMS_PAGE,
1259
+ h.FILTER_SEARCH_INPUT,
1260
+ h.FILTER_SEARCH_CLEAR,
1261
+ h.NAVIGATE,
1262
+ h.UPDATE_COLUMNS,
1263
+ h.UPDATE_CONDENSED,
1264
+ h.UPDATE_FILTER_VALUES,
1265
+ h.UPDATE_FILTERS,
1266
+ h.UPDATE_FILTER_SEARCH_TERM,
1267
+ h.UPDATE_SHOW_MORE,
1268
+ h.UPDATE_PAGINATION,
1269
+ h.UPDATE_SELECTION,
1270
+ h.UPDATE_SORT_BY,
1271
+ h.ROW_CLICK,
1272
+ h.SELECT,
1273
+ h.SORT
1237
1274
  ],
1238
- setup(t, { emit: e, slots: n }) {
1239
- const s = E(null), d = E(), a = E(null), C = E(null), _ = E(), g = E(0), c = E(null), { allowColumnDragAndDrop: u, columns: o, data: h, lazyLoadType: r, selectable: b, selection: S } = ie(t), { t: A } = Ie(), { isLazyLoad: T, isInfiniteScroll: v, verticalScrollPosition: w, emitLazyLoadEvent: i } = Kt(
1240
- r,
1241
- c,
1242
- s,
1243
- e
1244
- ), f = de(
1245
- as,
1275
+ setup(n, { expose: e, emit: s }) {
1276
+ const t = n, _ = St(), l = R(null), v = R(), d = R(null), g = R(null), m = R(), p = R(null), { allowColumnDragAndDrop: a, columns: E, data: o, lazyLoadType: c, selectable: f, selection: b } = ie(t), { t: S } = Ue(), C = ve(
1277
+ on,
1246
1278
  () => ({
1247
1279
  isDataGridTemplate: !1,
1248
- stickyTabs: E(!1),
1249
- tabsRef: E(null)
1280
+ stickyTabs: R(!1),
1281
+ tabsRef: R(null)
1250
1282
  })
1251
- ), { isDataGridTemplate: p, stickyTabs: I, tabsRef: N } = f(), { columnDefs: O, onColumnWidthOverride: z, gridColumnWidthStyle: Y, isMeasuringColumnWidths: X } = Yt(o, h, s, a, {
1252
- hasSelectableColumn: b
1253
- }), H = he(N, I), q = L(
1254
- () => t.stickyFilters ? `${H.value}px` : null
1255
- ), Ne = he(C, ye(t, "stickyFilters")), Pe = L(
1256
- () => `${Ne.value + H.value}px`
1283
+ ), { isDataGridTemplate: A, stickyTabs: i, tabsRef: u } = C(), L = y(() => t.fitContent || A ? 0 : null), { columnDefs: I, onColumnWidthOverride: N, gridColumnWidthStyle: w, isMeasuringColumnWidths: $ } = Yt(E, o, l, d, {
1284
+ hasSelectableColumn: f
1285
+ }), k = Ie(u, i), X = y(
1286
+ () => t.stickyFilters ? `${k.value}px` : null
1287
+ ), H = Ie(g, we(t, "stickyFilters")), q = y(
1288
+ () => `${H.value + k.value}px`
1257
1289
  ), {
1258
- sortedColumns: Ue,
1259
- columnSets: ne,
1260
- isOnlyOneVisibleColumn: De,
1261
- onConfigSettingsUpdate: Me,
1262
- onConfigSettingsColumnsUpdate: $e,
1263
- onConfigSettingsColumnUpdate: ze
1264
- } = en(O, e), { draggingColumns: $, draggingEventsForColumns: xe, draggingEventsForRowCell: ae, onMoveColumnByOffset: Fe } = Qt(Ue, u, e), { onAllRowSelect: Ge, onRowSelect: We, selectedItems: J, allItemsSelectedState: ke } = qt(
1265
- S,
1266
- e,
1267
- h,
1290
+ sortedColumns: ae,
1291
+ columnSets: se,
1292
+ isOnlyOneVisibleColumn: xe,
1293
+ onConfigSettingsUpdate: Fe,
1294
+ onConfigSettingsColumnsUpdate: Ge,
1295
+ onConfigSettingsColumnUpdate: Be
1296
+ } = es(I, s), { draggingColumns: U, draggingEventsForColumns: We, draggingEventsForRowCell: oe, onMoveColumnByOffset: ke } = Kt(ae, a, s), { onAllRowSelect: Ve, onRowSelect: He, selectedItems: J, allItemsSelectedState: Ze } = qt(
1297
+ b,
1298
+ s,
1299
+ o,
1268
1300
  t.getDataItemId,
1269
1301
  t.isDataItemDisabled
1270
- ), Be = L(() => t.fitContent || p ? 0 : null), oe = L(() => {
1271
- var l;
1272
- return ((l = J.value) == null ? void 0 : l.length) ?? 0;
1273
- }), Ve = L(() => t.bulkActions && oe.value > 0), He = L(() => ({
1302
+ ), { navigationInput: je } = Jt(d, E, f), { isLazyLoad: re, isInfiniteScroll: Ye, verticalScrollPosition: de, emitLazyLoadEvent: Xe } = Qt(
1303
+ c,
1304
+ p,
1305
+ l,
1306
+ s
1307
+ ), { updateScrollPosition: qe, updateScrollPositionOnFrozenColumnsNavigation: ce } = an(
1308
+ l,
1309
+ v,
1310
+ de
1311
+ ), ue = () => {
1312
+ m.value.isClearAllVisible ? m.value.clearAllFilters() : m.value.isResetAllVisible && m.value.resetAllFilters();
1313
+ }, Je = y(() => {
1314
+ var r, O;
1315
+ return {
1316
+ ...t.emptyState,
1317
+ variant: ((r = t.emptyState) == null ? void 0 : r.variant) === "embedded" || ((O = t.emptyState) == null ? void 0 : O.variant) === "basic" ? t.emptyState.variant : "basic"
1318
+ };
1319
+ }), Qe = y(() => ({
1274
1320
  [`b-data-grid--${ee.OUTLINE}`]: t.outline,
1275
- [`b-data-grid--${ee.SCROLL}`]: t.fitContent || T.value,
1321
+ [`b-data-grid--${ee.SCROLL}`]: t.fitContent || re.value,
1276
1322
  [`b-data-grid--${ee.STICKY_FILTERS}`]: t.filters && t.stickyFilters
1277
- })), Ze = L(() => ne.value.findIndex((l) => l.columnSet.length)), je = (l) => {
1278
- var y;
1323
+ })), Ke = y(() => se.value.findIndex((r) => r.columnSet.length)), et = (r) => {
1324
+ var O;
1279
1325
  return {
1280
- "b-data-grid__row--disabled": t.isDataItemDisabled(l),
1326
+ "b-data-grid__row--disabled": t.isDataItemDisabled(r),
1281
1327
  "b-data-grid__row--row-clicks-enabled": t.allowRowClicks,
1282
- "b-data-grid__cell--is-re-ordering": ((y = $.target) == null ? void 0 : y.field) !== void 0,
1283
- "b-data-grid__row--highlighted": t.highlightedRows.includes(t.getDataItemId(l)) || J.value.includes(t.getDataItemId(l))
1328
+ "b-data-grid__cell--is-re-ordering": ((O = U.target) == null ? void 0 : O.field) !== void 0,
1329
+ "b-data-grid__row--highlighted": t.highlightedRows.includes(t.getDataItemId(r)) || J.value.includes(t.getDataItemId(r))
1284
1330
  };
1285
- }, Ye = (l) => ({
1286
- "b-data-grid__row-cell-set--frozen": l,
1287
- "b-data-grid__row-cell-set--unfrozen": !l,
1288
- "b-data-grid__row-cell-set--config-settings-margin": !l && t.columnPanel
1289
- }), Xe = (l) => {
1290
- var y, P, U, k, Z;
1331
+ }, tt = (r) => ({
1332
+ "b-data-grid__row-cell-set--frozen": r,
1333
+ "b-data-grid__row-cell-set--unfrozen": !r,
1334
+ "b-data-grid__row-cell-set--config-settings-margin": !r && t.columnPanel
1335
+ }), st = (r) => {
1336
+ var O, M, x, Z, j;
1291
1337
  return {
1292
- "b-data-grid__cell--padding-left-unset": ((y = l == null ? void 0 : l.padding) == null ? void 0 : y.left) === !1,
1293
- "b-data-grid__cell--padding-right-unset": ((P = l == null ? void 0 : l.padding) == null ? void 0 : P.right) === !1,
1294
- "b-data-grid__cell--numeric": l == null ? void 0 : l.numeric,
1338
+ "b-data-grid__cell--padding-left-unset": ((O = r == null ? void 0 : r.padding) == null ? void 0 : O.left) === !1,
1339
+ "b-data-grid__cell--padding-right-unset": ((M = r == null ? void 0 : r.padding) == null ? void 0 : M.right) === !1,
1340
+ "b-data-grid__cell--numeric": r == null ? void 0 : r.numeric,
1295
1341
  "b-data-grid__cell--condensed": t.condensed,
1296
- "b-data-grid__cell--frozen": l == null ? void 0 : l.frozen,
1297
- [`b-data-grid__cell--overflow-${Q.ELLIPSIS}`]: (l == null ? void 0 : l.overflow) === Q.ELLIPSIS,
1298
- "b-data-grid__cell--is-column-re-ordering": ((U = $.dragging) == null ? void 0 : U.field) === l.field,
1299
- "b-data-grid__cell--is-column-re-order-target-left": ((k = $.target) == null ? void 0 : k.field) === l.field && ($ == null ? void 0 : $.dragToLeft),
1300
- "b-data-grid__cell--is-column-re-order-target-right": ((Z = $.target) == null ? void 0 : Z.field) === l.field && !($ != null && $.dragToLeft)
1342
+ "b-data-grid__cell--frozen": r == null ? void 0 : r.frozen,
1343
+ [`b-data-grid__cell--overflow-${K.ELLIPSIS}`]: (r == null ? void 0 : r.overflow) === K.ELLIPSIS,
1344
+ "b-data-grid__cell--is-column-re-ordering": ((x = U.dragging) == null ? void 0 : x.field) === r.field,
1345
+ "b-data-grid__cell--is-column-re-order-target-left": ((Z = U.target) == null ? void 0 : Z.field) === r.field && (U == null ? void 0 : U.dragToLeft),
1346
+ "b-data-grid__cell--is-column-re-order-target-right": ((j = U.target) == null ? void 0 : j.field) === r.field && !(U != null && U.dragToLeft)
1301
1347
  };
1302
- }, qe = (l, y) => (l == null ? void 0 : l.overflow) === Q.ELLIPSIS ? `${y}` : void 0, Je = (l) => l ?? "-", Ke = (l, y, P) => {
1303
- var U;
1304
- ((U = a.value) == null ? void 0 : U[y]) === void 0 && (a.value = { ...a.value, [y]: [] }), a.value[y][P] = l;
1305
- }, Qe = L(() => {
1306
- var l, y, P, U, k, Z;
1348
+ }, nt = y(() => {
1349
+ var r, O, M, x, Z, j;
1307
1350
  return {
1308
- "b-data-grid__pagination--padding-left-unset": ((P = (y = (l = t.columns) == null ? void 0 : l[0]) == null ? void 0 : y.padding) == null ? void 0 : P.left) === !1,
1309
- "b-data-grid__pagination--padding-right-unset": ((Z = (k = (U = t.columns) == null ? void 0 : U[t.columns.length - 1]) == null ? void 0 : k.padding) == null ? void 0 : Z.right) === !1,
1310
- "b-data-grid__pagination--sticky": !!t.stickyPagination || p
1351
+ "b-data-grid__pagination--padding-left-unset": ((M = (O = (r = t.columns) == null ? void 0 : r[0]) == null ? void 0 : O.padding) == null ? void 0 : M.left) === !1,
1352
+ "b-data-grid__pagination--padding-right-unset": ((j = (Z = (x = t.columns) == null ? void 0 : x[t.columns.length - 1]) == null ? void 0 : Z.padding) == null ? void 0 : j.right) === !1,
1353
+ "b-data-grid__pagination--sticky": !!t.stickyPagination || A
1311
1354
  };
1312
- }), et = L(() => {
1313
- var l;
1355
+ }), it = y(() => {
1356
+ var r;
1314
1357
  return {
1315
- height: `${(l = d.value) == null ? void 0 : l.clientHeight}px`
1358
+ height: `${(r = v.value) == null ? void 0 : r.clientHeight}px`
1316
1359
  };
1317
- }), tt = Ot({
1318
- label: n != null && n.header ? It(n)("header") : null,
1360
+ }), lt = (r, O) => (r == null ? void 0 : r.overflow) === K.ELLIPSIS ? `${O}` : void 0, at = (r) => r ?? "-", ot = (r, O, M) => {
1361
+ var x;
1362
+ ((x = d.value) == null ? void 0 : x[O]) === void 0 && (d.value = { ...d.value, [O]: [] }), d.value[O][M] = r;
1363
+ }, rt = (r, O) => {
1364
+ t.allowRowClicks && s(h.ROW_CLICK, r, O);
1365
+ }, dt = Tt({
1366
+ label: _ != null && _.header ? It(_)("header") : null,
1319
1367
  defaultFallback: "data grid"
1320
- }), nt = (l) => {
1368
+ }), ct = (r) => {
1321
1369
  if (!t.selectable)
1322
1370
  return null;
1323
- const y = t.getDataItemId(l);
1324
- return J.value.includes(y).toString();
1325
- }, st = (l) => e(m.COLUMN_RESIZE, l), it = (l) => {
1326
- e(m.UPDATE_SORT_BY, l), e(m.SORT, l);
1327
- }, lt = (l) => {
1328
- e(m.NAVIGATE, l), e(m.UPDATE_PAGINATION, {
1371
+ const O = t.getDataItemId(r);
1372
+ return J.value.includes(O).toString();
1373
+ }, _e = (r, O) => r + se.value.length * O, ut = (r, O, M) => E.value.length * r + _e(O, M), ge = y(() => {
1374
+ var r;
1375
+ return ((r = J.value) == null ? void 0 : r.length) ?? 0;
1376
+ }), _t = y(() => t.bulkActions && ge.value > 0), gt = (r) => s(h.COLUMN_RESIZE, r), ft = (r) => {
1377
+ s(h.UPDATE_SORT_BY, r), s(h.SORT, r);
1378
+ }, Ct = (r) => {
1379
+ s(h.NAVIGATE, r), s(h.UPDATE_PAGINATION, {
1329
1380
  ...t.pagination,
1330
- page: l
1331
- });
1332
- }, at = (l) => e(m.ITEMS_PAGE, l), ot = () => {
1333
- e(m.FILTER_SEARCH_CLEAR);
1334
- }, rt = (l) => {
1335
- e(m.UPDATE_FILTER_SEARCH_TERM, l), e(m.FILTER_SEARCH_INPUT, l);
1336
- }, dt = () => {
1337
- _.value.isClearAllVisible ? _.value.clearAllFilters() : _.value.isResetAllVisible && _.value.resetAllFilters();
1338
- }, ct = L(() => {
1339
- var l, y;
1340
- return {
1341
- ...t.emptyState,
1342
- variant: ((l = t.emptyState) == null ? void 0 : l.variant) === "embedded" || ((y = t.emptyState) == null ? void 0 : y.variant) === "basic" ? t.emptyState.variant : "basic"
1343
- };
1344
- }), ut = (l, y) => {
1345
- t.allowRowClicks && e(m.ROW_CLICK, l, y);
1346
- }, _t = L(() => {
1347
- const l = o.value.filter(({ visible: y }) => y !== !1);
1348
- return b.value ? l.length + 1 : l.length;
1349
- }), ft = L(
1350
- () => [...Object.values(a.value)].flat(1).sort((l, y) => {
1351
- const P = Number(l.getAttribute("data-cellindex")), U = Number(y.getAttribute("data-cellindex"));
1352
- return P > U ? 1 : U > P ? -1 : 0;
1353
- })
1354
- ), { focusOnNextGridcell: gt, isNavigationKeyCode: Ct } = Jt(ft, _t), vt = (l) => {
1355
- const { ctrlKey: y, keyCode: P, target: U } = l;
1356
- Object.values(a.value).flat(1).includes(U) && Ct(P) && gt(U, P, y);
1357
- };
1358
- B(
1359
- () => g.value,
1360
- () => {
1361
- s.value.scrollLeft = g.value, d.value.scrollLeft = g.value;
1362
- }
1363
- );
1364
- const mt = (l) => {
1365
- g.value = l.target.scrollLeft, w.value = s.value.scrollHeight - l.target.scrollTop;
1366
- }, bt = () => {
1367
- s.value.scrollLeft = 0, s.value.style.overflowX = "hidden", setTimeout(() => {
1368
- s.value.style.overflowX = "auto";
1381
+ page: r
1369
1382
  });
1370
- }, pt = (l) => {
1371
- const y = {
1372
- ...ae.value(l)
1383
+ }, vt = (r) => s(h.ITEMS_PAGE, r), mt = () => {
1384
+ s(h.FILTER_SEARCH_CLEAR);
1385
+ }, pt = (r) => {
1386
+ s(h.UPDATE_FILTER_SEARCH_TERM, r), s(h.FILTER_SEARCH_INPUT, r);
1387
+ }, bt = (r) => {
1388
+ const O = {
1389
+ ...oe.value(r)
1373
1390
  };
1374
- return l.frozen && (y.focus = bt), y;
1375
- }, re = (l, y) => l + ne.value.length * y, ht = (l, y, P) => o.value.length * l + re(y, P);
1376
- return L(() => o.value.some((l) => l.mandatory)).value || Tt(
1391
+ return r.frozen && (O.focus = ce), O;
1392
+ }, fe = y(() => E.value.some((r) => r.mandatory));
1393
+ fe.value || Rt(
1377
1394
  "WARNING: At least one BentoDataGrid column should be set as mandatory to ensure data is always displayed correctly."
1378
- ), de(At, () => null)(t.tabTitle), {
1379
- // Refs
1380
- body: s,
1381
- columnDefs: O,
1382
- columnSets: ne,
1383
- gridcellRefs: a,
1384
- filtersRef: C,
1385
- // Calculate dynamic top position for sticky elements
1386
- computedStickyFiltersTopPosition: q,
1387
- computedColumnHeadersTopPosition: Pe,
1388
- // Column width auto
1389
- isMeasuringColumnWidths: X,
1390
- // $scopedSlots/$slots children
1391
- slots: n,
1392
- // Labels and text
1393
- ariaGridHeaderText: tt,
1394
- conditionalTitleAttribute: qe,
1395
- getRowData: Je,
1396
- // Styles and classes
1397
- gridColumnWidthStyle: Y,
1398
- conditionalGridClasses: He,
1399
- conditionalRowClasses: je,
1400
- conditionalRowSetClasses: Ye,
1401
- conditionalRowCellClasses: Xe,
1402
- conditionalPaginationClasses: Qe,
1403
- // Empty state
1404
- limitedEmptyStateProps: ct,
1405
- // Resizing
1406
- onColumnWidthOverride: z,
1407
- onColumnResized: st,
1408
- // Sorting
1409
- onSort: it,
1410
- // Select
1411
- allItemsSelectedState: ke,
1412
- selectedItems: J,
1413
- onAllRowSelect: Ge,
1414
- onRowSelect: We,
1415
- DATAGRID_SELECT_FIELD_NAME: V,
1416
- onRowClick: ut,
1417
- getRowAriaSelectedValue: nt,
1418
- itemsSelectedCounter: oe,
1419
- showActionBar: Ve,
1420
- // Config settings (and column updating)
1421
- onConfigSettingsUpdate: Me,
1422
- onConfigSettingsColumnsUpdate: $e,
1423
- onConfigSettingsColumnUpdate: ze,
1424
- columnsRef: d,
1425
- configSettingsButtonStyle: et,
1426
- isOnlyOneVisibleColumn: De,
1427
- computedColumnsTabIndex: Be,
1428
- // Enums
1429
- BentoDatagridSortDirection: W,
1430
- BentoDatagridEvent: m,
1431
- // Pagination props and events
1432
- onPaginationNavigate: lt,
1433
- onItemsPerPageChange: at,
1434
- // Filterbar
1435
- filterBarRef: _,
1436
- onEmptyStateClearResetButtonClick: dt,
1437
- onSearchTermCleared: ot,
1438
- onSearchTermInput: rt,
1439
- // Re-ordering columns
1440
- onMoveColumnByOffset: Fe,
1441
- draggingColumns: $,
1442
- draggingEventsForColumns: xe,
1443
- draggingEventsForRowCell: ae,
1444
- // Sync body and column headers scrolling
1445
- updateScrollPosition: mt,
1446
- // Lazy loading/infinite scrolling
1447
- isLazyLoad: T,
1448
- isInfiniteScroll: v,
1449
- emitLazyLoadEvent: i,
1450
- // Leftmost column panel alignment
1451
- computedColumnPanelAlignment: Ze,
1452
- // Gridcells events
1453
- gridcellEvents: pt,
1454
- registerRowCellRef: Ke,
1455
- // Keyboard navigation
1456
- getCellindex: ht,
1457
- getColIndex: re,
1458
- navigationInput: vt,
1459
- // Translations
1460
- t: A
1461
- };
1395
+ );
1396
+ const Ce = ve(At, () => null);
1397
+ return Ce(t.tabTitle), e({ onEmptyStateClearResetButtonClick: ue }), { __sfc: !0, props: t, emit: s, slots: _, body: l, columnsRef: v, gridcellRefs: d, filtersRef: g, filterBarRef: m, verticalScrollPositionRef: p, allowColumnDragAndDrop: a, columns: E, data: o, lazyLoadType: c, selectable: f, selection: b, t: S, registerDatagridInDataGridTemplate: C, isDataGridTemplate: A, stickyTabs: i, tabsRef: u, computedColumnsTabIndex: L, columnDefs: I, onColumnWidthOverride: N, gridColumnWidthStyle: w, isMeasuringColumnWidths: $, stickyFiltersHeight: k, computedStickyFiltersTopPosition: X, columnHeadersHeight: H, computedColumnHeadersTopPosition: q, sortedColumns: ae, columnSets: se, isOnlyOneVisibleColumn: xe, onConfigSettingsUpdate: Fe, onConfigSettingsColumnsUpdate: Ge, onConfigSettingsColumnUpdate: Be, draggingColumns: U, draggingEventsForColumns: We, draggingEventsForRowCell: oe, onMoveColumnByOffset: ke, onAllRowSelect: Ve, onRowSelect: He, selectedItems: J, allItemsSelectedState: Ze, navigationInput: je, isLazyLoad: re, isInfiniteScroll: Ye, verticalScrollPosition: de, emitLazyLoadEvent: Xe, updateScrollPosition: qe, updateScrollPositionOnFrozenColumnsNavigation: ce, onEmptyStateClearResetButtonClick: ue, limitedEmptyStateProps: Je, conditionalGridClasses: Qe, computedColumnPanelAlignment: Ke, conditionalRowClasses: et, conditionalRowSetClasses: tt, conditionalRowCellClasses: st, conditionalPaginationClasses: nt, configSettingsButtonStyle: it, conditionalTitleAttribute: lt, getRowData: at, registerRowCellRef: ot, onRowClick: rt, ariaGridHeaderText: dt, getRowAriaSelectedValue: ct, getColIndex: _e, getCellindex: ut, itemsSelectedCounter: ge, showActionBar: _t, onColumnResized: gt, onSort: ft, onPaginationNavigate: Ct, onItemsPerPageChange: vt, onSearchTermCleared: mt, onSearchTermInput: pt, gridcellEvents: bt, hasMandatoryColumn: fe, setTitle: Ce, BentoActionBar: yt, BentoCheckbox: Ne, BentoPagination: Et, BentoLoadingIndicator: Pe, BentoTypography: le, BentoDataGridConfigSettings: Qs, DataGridColumns: $s, DataGridLazyLoad: ln, DATAGRID_SELECT_FIELD_NAME: V, BentoDatagridEvent: h, BentoEmptyState: Ot, BentoFilterBar: Q };
1462
1398
  }
1463
1399
  });
1464
- var rs = function() {
1465
- var s;
1466
- var e = this, n = e._self._c;
1467
- return e._self._setupProxy, n("div", { staticClass: "b-data-grid", class: e.conditionalGridClasses, attrs: { role: "grid", "aria-rowcount": e.data.length, "aria-colcount": e.columns.length, "aria-label": e.ariaGridHeaderText } }, [e.filters ? n("div", { ref: "filtersRef", staticClass: "b-data-grid__filters", style: { top: e.computedStickyFiltersTopPosition } }, [e.filters ? n("bento-filter-bar", { ref: "filterBarRef", attrs: { config: e.filters, "filter-values": e.filterValues, "search-term": e.filterSearchTerm }, on: { "search-input": e.onSearchTermInput, "search-clear": e.onSearchTermCleared, input: (d) => e.$emit(e.BentoDatagridEvent.UPDATE_FILTERS, d), "update:filter-values": (d) => e.$emit(e.BentoDatagridEvent.UPDATE_FILTER_VALUES, d) } }) : e._e()], 1) : e._e(), e.$slots.header ? n("div", { staticClass: "b-data-grid__header" }, [e._t("header")], 2) : e._e(), n("div", { staticClass: "b-data-grid__column-headers", style: { top: e.computedColumnHeadersTopPosition } }, [e.columnPanel ? n("bento-data-grid-config-settings", { staticClass: "b-data-grid__config-settings", style: e.configSettingsButtonStyle, attrs: { columns: e.columns, condensed: e.condensed }, on: { "config-settings": e.onConfigSettingsUpdate, "update:columns": e.onConfigSettingsColumnsUpdate } }) : e._e(), n("div", { ref: "columnsRef", staticClass: "b-data-grid__columns-row", attrs: { role: "rowgroup", tabindex: e.computedColumnsTabIndex }, on: { scroll: e.updateScrollPosition } }, [n("div", { staticClass: "b-data-grid__columns", style: e.gridColumnWidthStyle, attrs: { role: "row" } }, [e._l(e.columnSets, function({ columnSet: d, id: a, isFrozenColumns: C }, _) {
1468
- return [d != null && d.length ? n("data-grid-columns", e._g({ key: `data-grid-columns-${a}`, attrs: { columns: d, "has-resizable-columns": e.hasResizableColumns, "sort-by": e.sortBy, "all-items-selected-state": e.allItemsSelectedState, "is-frozen-columns": C, "dragging-columns": e.draggingColumns, "has-draggable-columns": e.allowColumnDragAndDrop, "has-column-panel": e.columnPanel, "has-first-column-panel-right-aligned": _ === e.computedColumnPanelAlignment, "is-only-one-visible-column": e.isOnlyOneVisibleColumn }, on: { "column-move": e.onMoveColumnByOffset, "column-update": e.onConfigSettingsColumnUpdate, "column-resize": e.onColumnResized, "column-resizing": e.onColumnWidthOverride, "select-all-rows": e.onAllRowSelect, sort: e.onSort }, scopedSlots: e._u([e._l(e.slots, function(g, c) {
1469
- return { key: c, fn: function(u) {
1470
- return [e._t(c, null, null, u)];
1400
+ var cn = function() {
1401
+ var _;
1402
+ var e = this, s = e._self._c, t = e._self._setupProxy;
1403
+ return s("div", { staticClass: "b-data-grid", class: t.conditionalGridClasses, attrs: { role: "grid", "aria-rowcount": t.data.length, "aria-colcount": t.columns.length, "aria-label": t.ariaGridHeaderText } }, [e.filters ? s("div", { ref: "filtersRef", staticClass: "b-data-grid__filters", style: { top: t.computedStickyFiltersTopPosition } }, [e.filters ? s(t.BentoFilterBar, { ref: "filterBarRef", attrs: { config: e.filters, "filter-values": e.filterValues, "search-term": e.filterSearchTerm }, on: { "search-input": t.onSearchTermInput, "search-clear": t.onSearchTermCleared, input: (l) => e.$emit(t.BentoDatagridEvent.UPDATE_FILTERS, l), "update:filter-values": (l) => e.$emit(t.BentoDatagridEvent.UPDATE_FILTER_VALUES, l) } }) : e._e()], 1) : e._e(), e.$slots.header ? s("div", { staticClass: "b-data-grid__header" }, [e._t("header")], 2) : e._e(), s("div", { staticClass: "b-data-grid__column-headers", style: { top: t.computedColumnHeadersTopPosition } }, [e.columnPanel ? s(t.BentoDataGridConfigSettings, { staticClass: "b-data-grid__config-settings", style: t.configSettingsButtonStyle, attrs: { columns: t.columns, condensed: e.condensed }, on: { "config-settings": t.onConfigSettingsUpdate, "update:columns": t.onConfigSettingsColumnsUpdate } }) : e._e(), s("div", { ref: "columnsRef", staticClass: "b-data-grid__columns-row", attrs: { role: "rowgroup", tabindex: t.computedColumnsTabIndex }, on: { scroll: t.updateScrollPosition } }, [s("div", { staticClass: "b-data-grid__columns", style: t.gridColumnWidthStyle, attrs: { role: "row" } }, [e._l(t.columnSets, function({ columnSet: l, id: v, isFrozenColumns: d }, g) {
1404
+ return [l != null && l.length ? s(t.DataGridColumns, e._g({ key: `data-grid-columns-${v}`, attrs: { columns: l, "has-resizable-columns": e.hasResizableColumns, "sort-by": e.sortBy, "all-items-selected-state": t.allItemsSelectedState, "is-frozen-columns": d, "dragging-columns": t.draggingColumns, "has-draggable-columns": t.allowColumnDragAndDrop, "has-column-panel": e.columnPanel, "has-first-column-panel-right-aligned": g === t.computedColumnPanelAlignment, "is-only-one-visible-column": t.isOnlyOneVisibleColumn }, on: { "column-move": t.onMoveColumnByOffset, "column-update": t.onConfigSettingsColumnUpdate, "column-resize": t.onColumnResized, "column-resizing": t.onColumnWidthOverride, "select-all-rows": t.onAllRowSelect, sort: t.onSort }, scopedSlots: e._u([e._l(t.slots, function(m, p) {
1405
+ return { key: p, fn: function(a) {
1406
+ return [e._t(p, null, null, a)];
1471
1407
  } };
1472
- })], null, !0) }, e.draggingEventsForColumns)) : e._e()];
1473
- })], 2)])], 1), n("div", { ref: "body", staticClass: "b-data-grid__body", attrs: { "data-testid": "data-grid-body", tabindex: e.loading ? "0" : "-1", "aria-busy": e.loading, "aria-live": "polite" }, on: { scroll: e.updateScrollPosition } }, [e.loading && !e.isLazyLoad ? n("div", { staticClass: "b-data-grid__loading" }, [n("bento-loading-indicator", { staticClass: "b-data-grid__loading-indicator", attrs: { large: "" } }), n("bento-typography", { attrs: { el: "span", variant: "caption" } }, [e._v(e._s(e.t("gettingYourData")))])], 1) : ((s = e.data) == null ? void 0 : s.length) === 0 && e.emptyState ? n("div", { staticClass: "b-data-grid__empty-state" }, [n("bento-empty-state", e._b({}, "bento-empty-state", e.limitedEmptyStateProps, !1))], 1) : n("div", { staticClass: "b-data-grid__rows", attrs: { role: "rowgroup" }, on: { keydown: e.navigationInput } }, e._l(e.data, function(d, a) {
1474
- return n("div", { key: a, staticClass: "b-data-grid__row", class: e.conditionalRowClasses(d), style: e.gridColumnWidthStyle, attrs: { role: "row", "aria-rowindex": a + 1, "aria-selected": e.getRowAriaSelectedValue(d) }, on: { click: function(C) {
1475
- return e.onRowClick(d, C);
1476
- } } }, [e._l(e.columnSets, function({ columnSet: C, id: _, isFrozenColumns: g }, c) {
1477
- return [C != null && C.length ? n("div", { key: `data-grid-rows-${_}`, staticClass: "b-data-grid__cells", class: e.conditionalRowSetClasses(g), attrs: { "data-testid": `data-grid-${_}-rows` } }, e._l(C, function(u, o) {
1478
- return n("div", e._g({ key: `cell-${u.field}`, ref: (h) => e.registerRowCellRef(h, u.field, a), refInFor: !0, staticClass: "b-data-grid__cell", class: e.conditionalRowCellClasses(u), style: {
1479
- width: u.autoWidth && e.isMeasuringColumnWidths ? "auto" : `${u.width}px`
1480
- }, attrs: { "data-testid": `cell-${u.field}`, "data-cellindex": e.getCellindex(a, o, c), role: "gridcell", tabindex: e.getCellindex(a, o, c) === 0 ? "0" : "-1", "aria-colindex": e.getColIndex(o, c) + 1 } }, e.gridcellEvents(u)), [u.field !== e.DATAGRID_SELECT_FIELD_NAME ? [n("bento-typography", { attrs: { el: "div" } }, [e._t(`item-${u.field}`, function() {
1481
- return [n("span", { attrs: { title: e.conditionalTitleAttribute(u, d[u.field]) } }, [e._v(e._s(e.getRowData(d[u.field])))])];
1482
- }, { item: d })], 2)] : [n("bento-checkbox", { attrs: { "aria-label": e.t("selectRow"), "model-value": e.selectedItems, disabled: e.isDataItemDisabled(d), value: e.getDataItemId(d) }, on: { "update:model-value": e.onRowSelect } })]], 2);
1408
+ })], null, !0) }, t.draggingEventsForColumns)) : e._e()];
1409
+ })], 2)])], 1), s("div", { ref: "body", staticClass: "b-data-grid__body", attrs: { "data-testid": "data-grid-body", tabindex: e.loading ? "0" : "-1", "aria-busy": e.loading, "aria-live": "polite" }, on: { scroll: t.updateScrollPosition } }, [e.loading && !t.isLazyLoad ? s("div", { staticClass: "b-data-grid__loading" }, [s(t.BentoLoadingIndicator, { staticClass: "b-data-grid__loading-indicator", attrs: { large: "" } }), s(t.BentoTypography, { attrs: { el: "span", variant: "caption" } }, [e._v(e._s(t.t("gettingYourData")))])], 1) : ((_ = t.data) == null ? void 0 : _.length) === 0 && e.emptyState ? s("div", { staticClass: "b-data-grid__empty-state" }, [s(t.BentoEmptyState, e._b({}, "bento-empty-state", t.limitedEmptyStateProps, !1))], 1) : s("div", { staticClass: "b-data-grid__rows", attrs: { role: "rowgroup" }, on: { keydown: t.navigationInput } }, e._l(t.data, function(l, v) {
1410
+ return s("div", { key: v, staticClass: "b-data-grid__row", class: t.conditionalRowClasses(l), style: t.gridColumnWidthStyle, attrs: { role: "row", "aria-rowindex": v + 1, "aria-selected": t.getRowAriaSelectedValue(l) }, on: { click: function(d) {
1411
+ return t.onRowClick(l, d);
1412
+ } } }, [e._l(t.columnSets, function({ columnSet: d, id: g, isFrozenColumns: m }, p) {
1413
+ return [d != null && d.length ? s("div", { key: `data-grid-rows-${g}`, staticClass: "b-data-grid__cells", class: t.conditionalRowSetClasses(m), attrs: { "data-testid": `data-grid-${g}-rows` } }, e._l(d, function(a, E) {
1414
+ return s("div", e._g({ key: `cell-${a.field}`, ref: (o) => t.registerRowCellRef(o, a.field, v), refInFor: !0, staticClass: "b-data-grid__cell", class: t.conditionalRowCellClasses(a), style: {
1415
+ width: a.autoWidth && t.isMeasuringColumnWidths ? "auto" : `${a.width}px`
1416
+ }, attrs: { "data-testid": `cell-${a.field}`, "data-cellindex": t.getCellindex(v, E, p), role: "gridcell", tabindex: t.getCellindex(v, E, p) === 0 ? "0" : "-1", "aria-colindex": t.getColIndex(E, p) + 1 } }, t.gridcellEvents(a)), [a.field !== t.DATAGRID_SELECT_FIELD_NAME ? [s(t.BentoTypography, { attrs: { el: "div" } }, [e._t(`item-${a.field}`, function() {
1417
+ return [s("span", { attrs: { title: t.conditionalTitleAttribute(a, l[a.field]) } }, [e._v(e._s(t.getRowData(l[a.field])))])];
1418
+ }, { item: l })], 2)] : [s(t.BentoCheckbox, { attrs: { "aria-label": t.t("selectRow"), "model-value": t.selectedItems, disabled: e.isDataItemDisabled(l), value: e.getDataItemId(l) }, on: { "update:model-value": t.onRowSelect } })]], 2);
1483
1419
  }), 0) : e._e()];
1484
1420
  })], 2);
1485
- }), 0)]), e.isLazyLoad ? n("data-grid-lazy-load", { attrs: { loading: e.loading, "is-infinite-scroll": e.isInfiniteScroll }, on: { "update:show-more": e.emitLazyLoadEvent } }) : e._e(), e.pagination && !e.isLazyLoad ? n("div", { staticClass: "b-data-grid__pagination", class: e.conditionalPaginationClasses, attrs: { "data-testid": "pagination-container" } }, [n("bento-pagination", e._b({ attrs: { "aria-label": `${e.ariaGridHeaderText} navigation` }, on: { navigate: e.onPaginationNavigate, "items-page": e.onItemsPerPageChange } }, "bento-pagination", e.pagination, !1))], 1) : e._e(), e.$slots.footer ? n("div", { staticClass: "b-data-grid__footer" }, [e._t("footer")], 2) : e._e(), e.showActionBar ? n("bento-action-bar", { attrs: { actions: e.bulkActions, "item-counter": e.itemsSelectedCounter, "extra-bottom-spacing": e.stickyPagination }, on: { close: function(d) {
1486
- return e.onAllRowSelect(!1);
1421
+ }), 0)]), t.isLazyLoad ? s(t.DataGridLazyLoad, { attrs: { loading: e.loading, "is-infinite-scroll": t.isInfiniteScroll }, on: { "update:show-more": t.emitLazyLoadEvent } }) : e._e(), e.pagination && !t.isLazyLoad ? s("div", { staticClass: "b-data-grid__pagination", class: t.conditionalPaginationClasses, attrs: { "data-testid": "pagination-container" } }, [s(t.BentoPagination, e._b({ attrs: { "aria-label": `${t.ariaGridHeaderText} navigation` }, on: { navigate: t.onPaginationNavigate, "items-page": t.onItemsPerPageChange } }, "bento-pagination", e.pagination, !1))], 1) : e._e(), e.$slots.footer ? s("div", { staticClass: "b-data-grid__footer" }, [e._t("footer")], 2) : e._e(), t.showActionBar ? s(t.BentoActionBar, { attrs: { actions: e.bulkActions, "item-counter": t.itemsSelectedCounter, "extra-bottom-spacing": e.stickyPagination }, on: { close: function(l) {
1422
+ return t.onAllRowSelect(!1);
1487
1423
  } } }) : e._e()], 1);
1488
- }, ds = [], cs = /* @__PURE__ */ M(
1489
- os,
1490
- rs,
1491
- ds,
1424
+ }, un = [], _n = /* @__PURE__ */ D(
1425
+ dn,
1426
+ cn,
1427
+ un,
1492
1428
  !1,
1493
1429
  null,
1494
- "1e3bb939",
1430
+ "e4c4d1b1",
1495
1431
  null,
1496
1432
  null
1497
1433
  );
1498
- const ks = cs.exports;
1434
+ const Wn = _n.exports;
1499
1435
  export {
1500
- Q as BentoColumnOverflow,
1501
- ks as BentoDataGrid,
1436
+ K as BentoColumnOverflow,
1437
+ Wn as BentoDataGrid,
1502
1438
  te as BentoDatagridAriaSortValue,
1503
- m as BentoDatagridEvent,
1439
+ h as BentoDatagridEvent,
1504
1440
  W as BentoDatagridSortDirection,
1505
1441
  ee as BentoDatagridStyleState
1506
1442
  };