@adyen/bento-vue3 1.32.0 → 1.33.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 (593) hide show
  1. package/dist/@types/packages/vue2/src/components/accordion/accordion.vue.d.ts +5 -5
  2. package/dist/@types/packages/vue2/src/components/accordion/components/accordion-item.vue.d.ts +6 -6
  3. package/dist/@types/packages/vue2/src/components/action-bar/action-bar.vue.d.ts +8 -8
  4. package/dist/@types/packages/vue2/src/components/alert/alert.vue.d.ts +8 -8
  5. package/dist/@types/packages/vue2/src/components/avatar/avatar.vue.d.ts +6 -6
  6. package/dist/@types/packages/vue2/src/components/avatar/components/avatar-image/avatar-image.vue.d.ts +8 -8
  7. package/dist/@types/packages/vue2/src/components/button/button.vue.d.ts +9 -9
  8. package/dist/@types/packages/vue2/src/components/button/components/button-actions/button-actions.vue.d.ts +5 -5
  9. package/dist/@types/packages/vue2/src/components/button/components/loading-button/loading-button.vue.d.ts +7 -7
  10. package/dist/@types/packages/vue2/src/components/button/components/toggle-button/toggle-button.vue.d.ts +6 -6
  11. package/dist/@types/packages/vue2/src/components/card/card.vue.d.ts +8 -8
  12. package/dist/@types/packages/vue2/src/components/checkbox/checkbox.vue.d.ts +481 -22
  13. package/dist/@types/packages/vue2/src/components/checkbox/components/checkbox-group/checkbox-group.vue.d.ts +764 -12
  14. package/dist/@types/packages/vue2/src/components/click-outside/click-outside.d.ts +6 -6
  15. package/dist/@types/packages/vue2/src/components/code-snippet/code-snippet.vue.d.ts +2149 -17
  16. package/dist/@types/packages/vue2/src/components/country/composables/use-country-capital/use-country-capital.d.ts +1 -1
  17. package/dist/@types/packages/vue2/src/components/country/composables/use-country-name/use-country-name.d.ts +1 -1
  18. package/dist/@types/packages/vue2/src/components/country/composables/use-country-phone-code/use-country-phon-code.d.ts +1 -1
  19. package/dist/@types/packages/vue2/src/components/country/country.vue.d.ts +158 -8
  20. package/dist/@types/packages/vue2/src/components/currency/currency.vue.d.ts +157 -7
  21. package/dist/@types/packages/vue2/src/components/dashed-underline/dashed-underline.vue.d.ts +6 -6
  22. package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-cell/data-grid-cell.types.d.ts +2 -2
  23. package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-cell/data-grid-cell.vue.d.ts +10 -10
  24. package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-cell-actions/data-grid-cell-actions.vue.d.ts +6 -6
  25. package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-columns/data-grid-columns.vue.d.ts +10 -10
  26. package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-config-settings/components/data-grid-config-settings-column-row/data-grid-config-settings-column-row.vue.d.ts +229 -10
  27. package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-config-settings/data-grid-config-settings.vue.d.ts +1304 -16
  28. package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-lazy-load/data-grid-lazy-load.vue.d.ts +5 -5
  29. package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-static-icon/data-grid-static-icon.vue.d.ts +6 -6
  30. package/dist/@types/packages/vue2/src/components/data-grid/composables/use-calculate-column-width/use-calculate-column-width.d.ts +63 -5
  31. package/dist/@types/packages/vue2/src/components/data-grid/composables/use-calculate-column-width/use-calculate-column-width.types.d.ts +1 -1
  32. package/dist/@types/packages/vue2/src/components/data-grid/composables/use-calculate-sticky-element-height/use-calculate-sticky-element-height.d.ts +4 -4
  33. package/dist/@types/packages/vue2/src/components/data-grid/composables/use-column-hovering/use-column-hovering.d.ts +61 -2
  34. package/dist/@types/packages/vue2/src/components/data-grid/composables/use-column-hovering/use-column-hovering.types.d.ts +1 -1
  35. package/dist/@types/packages/vue2/src/components/data-grid/composables/use-column-reorderer/use-column-reorderer.d.ts +3 -3
  36. package/dist/@types/packages/vue2/src/components/data-grid/composables/use-config-settings/use-config-settings.d.ts +4 -4
  37. package/dist/@types/packages/vue2/src/components/data-grid/composables/use-keyboard-navigator/use-keyboard-navigator.d.ts +1 -1
  38. package/dist/@types/packages/vue2/src/components/data-grid/composables/use-lazy-loading/use-lazy-loading.d.ts +4 -4
  39. package/dist/@types/packages/vue2/src/components/data-grid/composables/use-resizer.d.ts +62 -4
  40. package/dist/@types/packages/vue2/src/components/data-grid/composables/use-scroller/use-scroller.d.ts +5 -5
  41. package/dist/@types/packages/vue2/src/components/data-grid/composables/use-selector.d.ts +2 -2
  42. package/dist/@types/packages/vue2/src/components/data-grid/composables/use-sorter.d.ts +1 -1
  43. package/dist/@types/packages/vue2/src/components/data-grid/data-grid.vue.d.ts +43 -9
  44. package/dist/@types/packages/vue2/src/components/date/date.vue.d.ts +157 -7
  45. package/dist/@types/packages/vue2/src/components/date-picker/composables/use-date-picker-single-calendar-text.types.d.ts +1 -1
  46. package/dist/@types/packages/vue2/src/components/date-picker/date-picker.vue.d.ts +1701 -21
  47. package/dist/@types/packages/vue2/src/components/date-range-picker/components/date-range-picker-calendar/date-range-picker-calendar.vue.d.ts +2725 -147
  48. package/dist/@types/packages/vue2/src/components/date-range-picker/composables/use-date-range-picker-calendar-text.types.d.ts +3 -2
  49. package/dist/@types/packages/vue2/src/components/date-range-picker/date-range-picker.vue.d.ts +3739 -18
  50. package/dist/@types/packages/vue2/src/components/divider/divider.vue.d.ts +1 -1
  51. package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-base-textbox/dropdown-base-textbox.types.d.ts +1 -1
  52. package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-base-textbox/dropdown-base-textbox.vue.d.ts +9 -9
  53. package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-default-textbox/dropdown-default-textbox.vue.d.ts +9 -9
  54. package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-options-container/composables/use-dropdown-options-listbox.d.ts +8 -2
  55. package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-options-container/dropdown-options-container.vue.d.ts +10 -10
  56. package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-small-textbox/dropdown-small-textbox.vue.d.ts +8 -8
  57. package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-avatar/dropdown-avatar.vue.d.ts +4 -4
  58. package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-country/composables/use-country-items.d.ts +1 -1
  59. package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-country/dropdown-country.vue.d.ts +4 -4
  60. package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-currency/dropdown-currency.vue.d.ts +4 -4
  61. package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-payment-method/dropdown-payment-method.vue.d.ts +4 -4
  62. package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-tag/dropdown-tag.vue.d.ts +4 -4
  63. package/dist/@types/packages/vue2/src/components/dropdown/composables/use-display-value.d.ts +1 -1
  64. package/dist/@types/packages/vue2/src/components/dropdown/composables/use-display-value.types.d.ts +1 -1
  65. package/dist/@types/packages/vue2/src/components/dropdown/composables/use-keyboard-navigation.d.ts +1 -1
  66. package/dist/@types/packages/vue2/src/components/dropdown/composables/use-keyboard-navigation.types.d.ts +1 -1
  67. package/dist/@types/packages/vue2/src/components/dropdown/dropdown.vue.d.ts +455 -11
  68. package/dist/@types/packages/vue2/src/components/empty-state/empty-state.vue.d.ts +5 -5
  69. package/dist/@types/packages/vue2/src/components/filter-bar/components/all-filters-modal/all-filters-modal.vue.d.ts +18251 -1703
  70. package/dist/@types/packages/vue2/src/components/filter-bar/components/all-filters-modal/components/all-filters-modal-button/all-filters-modal-button.vue.d.ts +422 -7
  71. package/dist/@types/packages/vue2/src/components/filter-bar/components/base-filter/base-filter.vue.d.ts +557 -16
  72. package/dist/@types/packages/vue2/src/components/filter-bar/components/base-filter/composables/use-base-filter.d.ts +7 -5
  73. package/dist/@types/packages/vue2/src/components/filter-bar/components/base-filter-button/base-filter-button.vue.d.ts +361 -10
  74. package/dist/@types/packages/vue2/src/components/filter-bar/components/boolean-filter/boolean-filter.vue.d.ts +931 -17
  75. package/dist/@types/packages/vue2/src/components/filter-bar/components/date-filter/date-filter.vue.d.ts +3284 -76
  76. package/dist/@types/packages/vue2/src/components/filter-bar/components/date-range-filter/date-range-filter.vue.d.ts +7588 -145
  77. package/dist/@types/packages/vue2/src/components/filter-bar/components/filter-bar-button/filter-bar-button.vue.d.ts +6 -6
  78. package/dist/@types/packages/vue2/src/components/filter-bar/components/input-filter/input-filter.vue.d.ts +1061 -19
  79. package/dist/@types/packages/vue2/src/components/filter-bar/components/range-filter/range-filter.vue.d.ts +1056 -14
  80. package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/components/select-filter-button/select-filter-button.vue.d.ts +8 -8
  81. package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/components/select-filter-dropdown/select-filter-dropdown.vue.d.ts +8 -8
  82. package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/select-filter.props.d.ts +59 -0
  83. package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/select-filter.vue.d.ts +19 -80
  84. package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/variants/select-avatar-filter/select-avatar-filter.vue.d.ts +229 -6
  85. package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/variants/select-country-filter/select-country-filter.vue.d.ts +73 -9
  86. package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/variants/select-currency-filter/select-currency-filter.vue.d.ts +559 -6
  87. package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/variants/select-payment-method-filter/select-payment-method-filter.vue.d.ts +384 -6
  88. package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/variants/select-tag-filter/select-tag-filter.vue.d.ts +587 -7
  89. package/dist/@types/packages/vue2/src/components/filter-bar/filter-bar.vue.d.ts +16154 -21
  90. package/dist/@types/packages/vue2/src/components/focus-trap/focus-trap.vue.d.ts +8 -8
  91. package/dist/@types/packages/vue2/src/components/form-layout/components/form-layout-field-tip/form-layout-field-tip.vue.d.ts +5 -5
  92. package/dist/@types/packages/vue2/src/components/form-layout/components/form-layout-group/form-layout-group.vue.d.ts +5 -5
  93. package/dist/@types/packages/vue2/src/components/form-layout/components/form-layout-title/form-layout-title.vue.d.ts +4 -4
  94. package/dist/@types/packages/vue2/src/components/form-layout/form-layout.vue.d.ts +4 -4
  95. package/dist/@types/packages/vue2/src/components/header/components/info-icon-with-popover/info-icon-with-popover.vue.d.ts +4 -4
  96. package/dist/@types/packages/vue2/src/components/header/header.vue.d.ts +388 -10
  97. package/dist/@types/packages/vue2/src/components/image/image.vue.d.ts +7 -7
  98. package/dist/@types/packages/vue2/src/components/info-icon/info-icon.vue.d.ts +17 -5
  99. package/dist/@types/packages/vue2/src/components/input-field/input-field.vue.d.ts +12 -12
  100. package/dist/@types/packages/vue2/src/components/inspector/inspector.vue.d.ts +9 -9
  101. package/dist/@types/packages/vue2/src/components/internal/base-button/base-button.vue.d.ts +161 -11
  102. package/dist/@types/packages/vue2/src/components/internal/button-actions-with-menu/button-actions-with-menu.vue.d.ts +5 -5
  103. package/dist/@types/packages/vue2/src/components/internal/calendar/calendar.types.d.ts +1 -1
  104. package/dist/@types/packages/vue2/src/components/internal/calendar/calendar.vue.d.ts +726 -144
  105. package/dist/@types/packages/vue2/src/components/internal/calendar/components/calendar-month/calendar-month.vue.d.ts +582 -15
  106. package/dist/@types/packages/vue2/src/components/internal/calendar/components/calendar-month/components/calendar-month-day/__test__/calendar-month-day-stub.vue.d.ts +287 -4
  107. package/dist/@types/packages/vue2/src/components/internal/calendar/components/calendar-month/components/calendar-month-day/calendar-month-day.props.d.ts +34 -0
  108. package/dist/@types/packages/vue2/src/components/internal/calendar/components/calendar-month/components/calendar-month-day/calendar-month-day.vue.d.ts +197 -38
  109. package/dist/@types/packages/vue2/src/components/internal/calendar/components/calendar-month/composables/move-calendar-date.d.ts +5 -135
  110. package/dist/@types/packages/vue2/src/components/internal/checkbox-input/checkbox-input.vue.d.ts +8 -8
  111. package/dist/@types/packages/vue2/src/components/internal/controls-group/controls-group.vue.d.ts +4 -4
  112. package/dist/@types/packages/vue2/src/components/internal/copy/copy.vue.d.ts +185 -9
  113. package/dist/@types/packages/vue2/src/components/internal/dialog-page/dialog-page.types.d.ts +1 -1
  114. package/dist/@types/packages/vue2/src/components/internal/dialog-page/dialog-page.vue.d.ts +7 -7
  115. package/dist/@types/packages/vue2/src/components/internal/error-message/error-message.vue.d.ts +3 -3
  116. package/dist/@types/packages/vue2/src/components/internal/field-label/field-label.vue.d.ts +4 -4
  117. package/dist/@types/packages/vue2/src/components/internal/fixed-scroller/composables/useFixedScroller.d.ts +19 -19
  118. package/dist/@types/packages/vue2/src/components/internal/fixed-scroller/fixed-scroller.vue.d.ts +4 -4
  119. package/dist/@types/packages/vue2/src/components/internal/footer-actions/footer-actions.vue.d.ts +5 -5
  120. package/dist/@types/packages/vue2/src/components/internal/grid-layout/grid-layout.vue.d.ts +7 -7
  121. package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-multi-select/components/listbox-multi-select-chips/listbox-multi-select-chips.vue.d.ts +7 -7
  122. package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-multi-select/components/listbox-multi-select-options/components/listbox-multi-select-category/listbox-multi-select-category.vue.d.ts +801 -53
  123. package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-multi-select/components/listbox-multi-select-options/listbox-multi-select-options.vue.d.ts +1631 -8
  124. package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-multi-select/listbox-multi-select.vue.d.ts +2534 -21
  125. package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-option/listbox-option.vue.d.ts +7 -7
  126. package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-option-tag/listbox-option-tag.vue.d.ts +357 -6
  127. package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-single-select/components/listbox-single-select-category/listbox-single-select-category.vue.d.ts +153 -3
  128. package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-single-select/listbox-single-select.vue.d.ts +409 -12
  129. package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-single-select-option/listbox-single-select-option.vue.d.ts +197 -10
  130. package/dist/@types/packages/vue2/src/components/internal/listbox/composables/use-cached-selected-values/use-cached-selected-values.d.ts +8 -2
  131. package/dist/@types/packages/vue2/src/components/internal/listbox/composables/use-multi-level-items/use-multi-level-items.d.ts +3 -3
  132. package/dist/@types/packages/vue2/src/components/internal/listbox/listbox.vue.d.ts +3552 -50
  133. package/dist/@types/packages/vue2/src/components/internal/radio-input/radio-input.vue.d.ts +7 -7
  134. package/dist/@types/packages/vue2/src/components/internal/teleport/teleport.vue.d.ts +5 -5
  135. package/dist/@types/packages/vue2/src/components/link/link.vue.d.ts +8 -8
  136. package/dist/@types/packages/vue2/src/components/loading-indicator/loading-indicator.vue.d.ts +7 -7
  137. package/dist/@types/packages/vue2/src/components/menu/components/menu-item/menu-item.vue.d.ts +358 -8
  138. package/dist/@types/packages/vue2/src/components/menu/components/menu-item-list/menu-item-list.vue.d.ts +992 -16
  139. package/dist/@types/packages/vue2/src/components/menu/components/menu-list-container/menu-list-container.vue.d.ts +1 -1
  140. package/dist/@types/packages/vue2/src/components/menu/components/sub-menu-item-list/sub-menu-item-list.vue.d.ts +469 -9
  141. package/dist/@types/packages/vue2/src/components/menu/menu.vue.d.ts +1579 -15
  142. package/dist/@types/packages/vue2/src/components/modal/components/base-modal/base-modal.vue.d.ts +9 -9
  143. package/dist/@types/packages/vue2/src/components/modal/components/modal-default/modal-default.vue.d.ts +7 -7
  144. package/dist/@types/packages/vue2/src/components/modal/components/modal-dialog/modal-dialog.vue.d.ts +7 -7
  145. package/dist/@types/packages/vue2/src/components/modal/components/modal-page/modal-page.vue.d.ts +5 -5
  146. package/dist/@types/packages/vue2/src/components/modal/modal.types.d.ts +1 -1
  147. package/dist/@types/packages/vue2/src/components/modal/modal.vue.d.ts +350 -8
  148. package/dist/@types/packages/vue2/src/components/modal-fullscreen/components/modal-fullscreen-page.vue.d.ts +5 -5
  149. package/dist/@types/packages/vue2/src/components/modal-fullscreen/modal-fullscreen.vue.d.ts +7 -7
  150. package/dist/@types/packages/vue2/src/components/pagination/components/pagination-context/pagination-context.vue.d.ts +1481 -7
  151. package/dist/@types/packages/vue2/src/components/pagination/components/pagination-controls/pagination-controls.vue.d.ts +179 -10
  152. package/dist/@types/packages/vue2/src/components/pagination/components/pagination-results-per-page/pagination-results-per-page.vue.d.ts +1489 -9
  153. package/dist/@types/packages/vue2/src/components/pagination/pagination.vue.d.ts +3264 -10
  154. package/dist/@types/packages/vue2/src/components/payment-method/composables/use-payment-icon/use-payment-icon.d.ts +2 -2
  155. package/dist/@types/packages/vue2/src/components/payment-method/payment-method.vue.d.ts +159 -8
  156. package/dist/@types/packages/vue2/src/components/popover/components/popover-dismiss-button/popover-dismiss-button.vue.d.ts +172 -6
  157. package/dist/@types/packages/vue2/src/components/popover/components/popover-image/popover-image.vue.d.ts +3 -3
  158. package/dist/@types/packages/vue2/src/components/popover/components/popover-title/popover-title.vue.d.ts +157 -7
  159. package/dist/@types/packages/vue2/src/components/popover/popover.vue.d.ts +8 -8
  160. package/dist/@types/packages/vue2/src/components/popper-container/popper-container.vue.d.ts +7 -7
  161. package/dist/@types/packages/vue2/src/components/radio-group/components/radio-button/radio-button.vue.d.ts +16 -8
  162. package/dist/@types/packages/vue2/src/components/radio-group/radio-group.vue.d.ts +7 -7
  163. package/dist/@types/packages/vue2/src/components/search-bar/search-bar.vue.d.ts +10 -10
  164. package/dist/@types/packages/vue2/src/components/search-bar/useSearchBarDataFilter.d.ts +2 -2
  165. package/dist/@types/packages/vue2/src/components/secondary-nav/components/secondary-nav-category/secondary-nav-category.vue.d.ts +5 -5
  166. package/dist/@types/packages/vue2/src/components/secondary-nav/components/secondary-nav-item/secondary-nav-item.vue.d.ts +7 -7
  167. package/dist/@types/packages/vue2/src/components/secondary-nav/secondary-nav.keys.d.ts +1 -1
  168. package/dist/@types/packages/vue2/src/components/secondary-nav/secondary-nav.types.d.ts +1 -1
  169. package/dist/@types/packages/vue2/src/components/secondary-nav/secondary-nav.vue.d.ts +7 -7
  170. package/dist/@types/packages/vue2/src/components/segmented-control/components/segmented-control-button/segmented-control-button.vue.d.ts +8 -8
  171. package/dist/@types/packages/vue2/src/components/segmented-control/segmented-control.vue.d.ts +8 -8
  172. package/dist/@types/packages/vue2/src/components/selection-card/components/selection-card-group/selection-card-group.vue.d.ts +7 -7
  173. package/dist/@types/packages/vue2/src/components/selection-card/selection-card.types.d.ts +1 -0
  174. package/dist/@types/packages/vue2/src/components/selection-card/selection-card.vue.d.ts +22 -7
  175. package/dist/@types/packages/vue2/src/components/sidepanel/components/sidepanel-page.vue.d.ts +5 -5
  176. package/dist/@types/packages/vue2/src/components/sidepanel/sidepanel.vue.d.ts +6 -6
  177. package/dist/@types/packages/vue2/src/components/status/status.vue.d.ts +5 -5
  178. package/dist/@types/packages/vue2/src/components/stepper/components/step/step.vue.d.ts +6 -6
  179. package/dist/@types/packages/vue2/src/components/stepper/composables/use-keyboard-navigation/use-keyboard-navigation.d.ts +2 -2
  180. package/dist/@types/packages/vue2/src/components/stepper/composables/use-step-register/use-step-register.d.ts +1 -1
  181. package/dist/@types/packages/vue2/src/components/stepper/stepper.types.d.ts +2 -2
  182. package/dist/@types/packages/vue2/src/components/stepper/stepper.vue.d.ts +7 -7
  183. package/dist/@types/packages/vue2/src/components/structured-list/components/structered-list-item/structured-list-item.vue.d.ts +5 -5
  184. package/dist/@types/packages/vue2/src/components/structured-list/structured-list.vue.d.ts +6 -6
  185. package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item/summary-grid-item.vue.d.ts +619 -11
  186. package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item-amount/summary-grid-item-amount.vue.d.ts +733 -5
  187. package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item-custom/summary-grid-item-custom.vue.d.ts +733 -5
  188. package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item-numeric/summary-grid-item-numeric.vue.d.ts +733 -5
  189. package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item-percentage/summary-grid-item-percentage.vue.d.ts +733 -5
  190. package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item-text/summary-grid-item-text.vue.d.ts +732 -4
  191. package/dist/@types/packages/vue2/src/components/summary-grid/summary-grid.vue.d.ts +49 -6
  192. package/dist/@types/packages/vue2/src/components/tabs/components/tab.types.d.ts +1 -1
  193. package/dist/@types/packages/vue2/src/components/tabs/components/tab.vue.d.ts +6 -6
  194. package/dist/@types/packages/vue2/src/components/tabs/tabs.types.d.ts +1 -1
  195. package/dist/@types/packages/vue2/src/components/tabs/tabs.vue.d.ts +300 -25
  196. package/dist/@types/packages/vue2/src/components/tag/tag.vue.d.ts +171 -11
  197. package/dist/@types/packages/vue2/src/components/textarea/textarea.vue.d.ts +12 -12
  198. package/dist/@types/packages/vue2/src/components/timeline/components/timeline-item/timeline-item.vue.d.ts +1080 -19
  199. package/dist/@types/packages/vue2/src/components/timeline/timeline.types.d.ts +1 -1
  200. package/dist/@types/packages/vue2/src/components/timeline/timeline.vue.d.ts +367 -10
  201. package/dist/@types/packages/vue2/src/components/toast/components/toast-item/toast-item.vue.d.ts +4 -4
  202. package/dist/@types/packages/vue2/src/components/toast/components/toast-shadow-stack/toast-shadow-stack.vue.d.ts +3 -3
  203. package/dist/@types/packages/vue2/src/components/toast/toast.vue.d.ts +1 -1
  204. package/dist/@types/packages/vue2/src/components/toggle/toggle.vue.d.ts +162 -11
  205. package/dist/@types/packages/vue2/src/components/tooltip/tooltip.vue.d.ts +437 -8
  206. package/dist/@types/packages/vue2/src/components/tutorial/components/tutorial-popover/components/tutorial-indicator/tutorial-indicator.vue.d.ts +3 -3
  207. package/dist/@types/packages/vue2/src/components/tutorial/components/tutorial-popover/tutorial-popover.vue.d.ts +14 -28
  208. package/dist/@types/packages/vue2/src/components/tutorial/tutorial.types.d.ts +1 -1
  209. package/dist/@types/packages/vue2/src/components/tutorial/tutorial.vue.d.ts +7 -7
  210. package/dist/@types/packages/vue2/src/components/typography/typography.vue.d.ts +6 -6
  211. package/dist/@types/packages/vue2/src/composables/initials.d.ts +1 -1
  212. package/dist/@types/packages/vue2/src/composables/use-bento-toast-controller/use-bento-toast-controller.types.d.ts +1 -1
  213. package/dist/@types/packages/vue2/src/composables/use-checkbox-select-all/use-checkbox-select-all.d.ts +1 -1
  214. package/dist/@types/packages/vue2/src/composables/use-default-slot-validator/use-default-slot-validator.d.ts +1 -1
  215. package/dist/@types/packages/vue2/src/composables/use-expandable-content-height/use-expandable-content-height.d.ts +3 -3
  216. package/dist/@types/packages/vue2/src/composables/use-form-layout-loading/use-form-layout-loading.d.ts +2 -2
  217. package/dist/@types/packages/vue2/src/composables/use-form-validate/use-form.d.ts +3 -3
  218. package/dist/@types/packages/vue2/src/composables/use-has-slot/use-has-slot.d.ts +2 -2
  219. package/dist/@types/packages/vue2/src/composables/use-virtual-list/use-virtual-list.d.ts +6 -6
  220. package/dist/@types/packages/vue2/src/composables/use-virtual-list/use-virtual-list.types.d.ts +2 -2
  221. package/dist/@types/packages/vue2/src/directives/click-outside/directive.d.ts +1 -1
  222. package/dist/@types/packages/vue2/src/directives/keyboard-navigation/keyboard-navigation.d.ts +1 -1
  223. package/dist/@types/packages/vue2/src/directives/keyboard-navigation/keyboard-navigation.types.d.ts +1 -1
  224. package/dist/@types/packages/vue2/src/install.d.ts +1 -1
  225. package/dist/@types/packages/vue2/src/templates/dashboard-template/components/dashboard-section/dashboard-section.vue.d.ts +6 -6
  226. package/dist/@types/packages/vue2/src/templates/dashboard-template/dashboard-template.vue.d.ts +6 -6
  227. package/dist/@types/packages/vue2/src/templates/data-grid-template/data-grid-template.types.d.ts +2 -2
  228. package/dist/@types/packages/vue2/src/templates/data-grid-template/data-grid-template.vue.d.ts +7 -7
  229. package/dist/@types/packages/vue2/src/types/elements.d.ts +1 -1
  230. package/dist/@types/packages/vue2/src/types/maybe-ref.d.ts +1 -1
  231. package/dist/@types/packages/vue2/src/types/refs.d.ts +2 -2
  232. package/dist/@types/packages/vue2/src/utils/ts/aria-label.d.ts +1 -1
  233. package/dist/@types/packages/vue2/src/utils/ts/get-slot-text/get-slot-text.d.ts +1 -1
  234. package/dist/@types/packages/vue2/src/utils/ts/i18n.d.ts +1 -1
  235. package/dist/@types/packages/vue2/src/utils/ts/storybook.d.ts +1 -1
  236. package/dist/accordion.js +1 -1
  237. package/dist/action-bar.js +1 -1
  238. package/dist/alert.js +1 -1
  239. package/dist/assets/accordion-item.css +1 -1
  240. package/dist/assets/action-bar.css +1 -1
  241. package/dist/assets/alert.css +1 -1
  242. package/dist/assets/avatar.css +1 -1
  243. package/dist/assets/base-button.css +1 -1
  244. package/dist/assets/base-modal.css +1 -1
  245. package/dist/assets/button-actions-with-menu.css +1 -1
  246. package/dist/assets/button-actions.css +1 -1
  247. package/dist/assets/button.css +1 -1
  248. package/dist/assets/calendar.css +1 -1
  249. package/dist/assets/card.css +1 -1
  250. package/dist/assets/checkbox-group.css +1 -1
  251. package/dist/assets/checkbox-input.css +1 -1
  252. package/dist/assets/checkbox.css +1 -1
  253. package/dist/assets/code-snippet.css +1 -1
  254. package/dist/assets/controls-group.css +1 -1
  255. package/dist/assets/copy.css +1 -1
  256. package/dist/assets/country.css +1 -1
  257. package/dist/assets/dashboard-section.css +1 -1
  258. package/dist/assets/dashed-underline.css +1 -1
  259. package/dist/assets/data-grid-template.css +1 -1
  260. package/dist/assets/data-grid.css +1 -1
  261. package/dist/assets/date-picker.css +1 -1
  262. package/dist/assets/date-range-picker.css +1 -1
  263. package/dist/assets/dialog-page.css +1 -1
  264. package/dist/assets/dropdown-default-textbox.css +1 -1
  265. package/dist/assets/dropdown-tag.css +1 -1
  266. package/dist/assets/dropdown.css +1 -1
  267. package/dist/assets/empty-state.css +1 -1
  268. package/dist/assets/error-message.css +1 -1
  269. package/dist/assets/filter-bar.css +1 -1
  270. package/dist/assets/fixed-scroller.css +1 -1
  271. package/dist/assets/footer-actions.css +1 -1
  272. package/dist/assets/form-layout-title.css +1 -1
  273. package/dist/assets/grid-layout.css +1 -1
  274. package/dist/assets/header.css +1 -1
  275. package/dist/assets/info-icon.css +1 -1
  276. package/dist/assets/input-field.css +1 -1
  277. package/dist/assets/inspector.css +1 -1
  278. package/dist/assets/link.css +1 -1
  279. package/dist/assets/listbox-option-tag.css +1 -1
  280. package/dist/assets/loading-indicator.css +1 -1
  281. package/dist/assets/menu.css +1 -1
  282. package/dist/assets/modal-fullscreen.css +1 -1
  283. package/dist/assets/pagination.css +1 -1
  284. package/dist/assets/payment-method.css +1 -1
  285. package/dist/assets/popover.css +1 -1
  286. package/dist/assets/popper-container.css +1 -1
  287. package/dist/assets/radio-group.css +1 -1
  288. package/dist/assets/radio-input.css +1 -1
  289. package/dist/assets/search-bar.css +1 -1
  290. package/dist/assets/secondary-nav.css +1 -1
  291. package/dist/assets/segmented-control.css +1 -1
  292. package/dist/assets/selection-card-group.css +1 -1
  293. package/dist/assets/sidepanel.css +1 -1
  294. package/dist/assets/status.css +1 -1
  295. package/dist/assets/step.css +1 -1
  296. package/dist/assets/structured-list-item.css +1 -1
  297. package/dist/assets/summary-grid-item-custom.css +1 -1
  298. package/dist/assets/tabs.css +1 -1
  299. package/dist/assets/tag.css +1 -1
  300. package/dist/assets/textarea.css +1 -1
  301. package/dist/assets/timeline-item.css +1 -1
  302. package/dist/assets/toast.css +1 -1
  303. package/dist/assets/toggle.css +1 -1
  304. package/dist/assets/tooltip.css +1 -1
  305. package/dist/assets/tutorial.css +1 -1
  306. package/dist/assets/typography.css +1 -1
  307. package/dist/assets/use-cached-selected-values.css +1 -1
  308. package/dist/avatar.js +1 -1
  309. package/dist/button.js +4 -4
  310. package/dist/card.js +1 -1
  311. package/dist/checkbox.js +3 -3
  312. package/dist/chunks/accordion-item.CQ8DLt9l.js +126 -0
  313. package/dist/chunks/{accordion-item.C7rQK0Xh.js.map → accordion-item.CQ8DLt9l.js.map} +1 -1
  314. package/dist/chunks/{action-bar.2Ch92mVR.js → action-bar.BsULBDh4.js} +62 -62
  315. package/dist/chunks/{action-bar.2Ch92mVR.js.map → action-bar.BsULBDh4.js.map} +1 -1
  316. package/dist/chunks/alert.Bz4tNKDH.js +162 -0
  317. package/dist/chunks/{alert.BOqbFni9.js.map → alert.Bz4tNKDH.js.map} +1 -1
  318. package/dist/chunks/avatar.mNlMngHQ.js +94 -0
  319. package/dist/chunks/{avatar.DWSW4vWC.js.map → avatar.mNlMngHQ.js.map} +1 -1
  320. package/dist/chunks/{base-button.jyEuuRdl.js → base-button.BxUrydaP.js} +2 -2
  321. package/dist/chunks/{base-button.jyEuuRdl.js.map → base-button.BxUrydaP.js.map} +1 -1
  322. package/dist/chunks/{base-modal.09efJqFH.js → base-modal.BPaKKH3Q.js} +186 -189
  323. package/dist/chunks/base-modal.BPaKKH3Q.js.map +1 -0
  324. package/dist/chunks/{button-actions-with-menu.DAxUzw2c.js → button-actions-with-menu.Cv1s9I3x.js} +16 -16
  325. package/dist/chunks/{button-actions-with-menu.DAxUzw2c.js.map → button-actions-with-menu.Cv1s9I3x.js.map} +1 -1
  326. package/dist/chunks/{button-actions.Dkrp7NsY.js → button-actions.hdK5IgrZ.js} +32 -32
  327. package/dist/chunks/{button-actions.Dkrp7NsY.js.map → button-actions.hdK5IgrZ.js.map} +1 -1
  328. package/dist/chunks/{button.BbV2BOSa.js → button.Br6CyG40.js} +39 -39
  329. package/dist/chunks/{button.BbV2BOSa.js.map → button.Br6CyG40.js.map} +1 -1
  330. package/dist/chunks/{calendar.DrP5wyvL.js → calendar.D--sOCBT.js} +153 -153
  331. package/dist/chunks/calendar.D--sOCBT.js.map +1 -0
  332. package/dist/chunks/card.BvSoujBc.js +205 -0
  333. package/dist/chunks/{card.BKtIXyL-.js.map → card.BvSoujBc.js.map} +1 -1
  334. package/dist/chunks/{checkbox-group.CEzhFcdh.js → checkbox-group.DovPyqmF.js} +20 -20
  335. package/dist/chunks/{checkbox-group.CEzhFcdh.js.map → checkbox-group.DovPyqmF.js.map} +1 -1
  336. package/dist/chunks/{checkbox-input.CR1lHf7f.js → checkbox-input.JdcvpfTa.js} +56 -54
  337. package/dist/chunks/checkbox-input.JdcvpfTa.js.map +1 -0
  338. package/dist/chunks/{checkbox.Blsg-Tvr.js → checkbox.FQ03XNeR.js} +6 -6
  339. package/dist/chunks/{checkbox.Blsg-Tvr.js.map → checkbox.FQ03XNeR.js.map} +1 -1
  340. package/dist/chunks/checkmark-circle-fill.ChV7Jy6r.js +44 -0
  341. package/dist/chunks/{checkmark-circle-fill.D29b-JWj.js.map → checkmark-circle-fill.ChV7Jy6r.js.map} +1 -1
  342. package/dist/chunks/checkmark-small.DEc2T64_.js +29 -0
  343. package/dist/chunks/{checkmark-small.BCeGkayS.js.map → checkmark-small.DEc2T64_.js.map} +1 -1
  344. package/dist/chunks/chevron-left.NvV5m76j.js +52 -0
  345. package/dist/chunks/{chevron-left.4JHuWe7i.js.map → chevron-left.NvV5m76j.js.map} +1 -1
  346. package/dist/chunks/chevron-up.DQZG_BP3.js +52 -0
  347. package/dist/chunks/{chevron-up.5-KtIp8i.js.map → chevron-up.DQZG_BP3.js.map} +1 -1
  348. package/dist/chunks/{code-snippet.DyvQts81.js → code-snippet.BP2IQQvW.js} +117 -117
  349. package/dist/chunks/{code-snippet.DyvQts81.js.map → code-snippet.BP2IQQvW.js.map} +1 -1
  350. package/dist/chunks/{controls-group.CLureEBJ.js → controls-group.CY5Hi11Y.js} +18 -18
  351. package/dist/chunks/{controls-group.CLureEBJ.js.map → controls-group.CY5Hi11Y.js.map} +1 -1
  352. package/dist/chunks/{copy._G3BOh-w.js → copy.h-wVGvID.js} +26 -26
  353. package/dist/chunks/{copy._G3BOh-w.js.map → copy.h-wVGvID.js.map} +1 -1
  354. package/dist/chunks/{country.DfvzuoT-.js → country.CVI-oSer.js} +3 -3
  355. package/dist/chunks/{country.DfvzuoT-.js.map → country.CVI-oSer.js.map} +1 -1
  356. package/dist/chunks/cross-circle-fill-small.BXO78Wde.js +29 -0
  357. package/dist/chunks/{cross-circle-fill-small.DiZWEd7W.js.map → cross-circle-fill-small.BXO78Wde.js.map} +1 -1
  358. package/dist/chunks/cross-circle-fill.DN5b3_eL.js +44 -0
  359. package/dist/chunks/{cross-circle-fill.vLaelNTN.js.map → cross-circle-fill.DN5b3_eL.js.map} +1 -1
  360. package/dist/chunks/cross-small.CXWTuKA_.js +29 -0
  361. package/dist/chunks/{cross-small.48UCoOqB.js.map → cross-small.CXWTuKA_.js.map} +1 -1
  362. package/dist/chunks/cross.OvPfvoqX.js +29 -0
  363. package/dist/chunks/{cross.BlL0FyHo.js.map → cross.OvPfvoqX.js.map} +1 -1
  364. package/dist/chunks/{currency.CUF_wGMv.js → currency.CFJy6QYU.js} +2 -2
  365. package/dist/chunks/{currency.CUF_wGMv.js.map → currency.CFJy6QYU.js.map} +1 -1
  366. package/dist/chunks/dashboard-section.DcvZOi79.js +167 -0
  367. package/dist/chunks/{dashboard-section.CwOasd7G.js.map → dashboard-section.DcvZOi79.js.map} +1 -1
  368. package/dist/chunks/dashed-underline.C7eCX1CM.js +79 -0
  369. package/dist/chunks/{dashed-underline.D_262wln.js.map → dashed-underline.C7eCX1CM.js.map} +1 -1
  370. package/dist/chunks/data-grid-template.C_8bGAC6.js +93 -0
  371. package/dist/chunks/data-grid-template.C_8bGAC6.js.map +1 -0
  372. package/dist/chunks/data-grid.DWJmWbjg.js +2766 -0
  373. package/dist/chunks/data-grid.DWJmWbjg.js.map +1 -0
  374. package/dist/chunks/{date-picker.CKiY1ZtA.js → date-picker.D36sJUDB.js} +8 -8
  375. package/dist/chunks/{date-picker.CKiY1ZtA.js.map → date-picker.D36sJUDB.js.map} +1 -1
  376. package/dist/chunks/date-range-picker.rytlJBZs.js +942 -0
  377. package/dist/chunks/date-range-picker.rytlJBZs.js.map +1 -0
  378. package/dist/chunks/{date.DXg5sG5Z.js → date.D8rQMzMG.js} +3 -3
  379. package/dist/chunks/{date.DXg5sG5Z.js.map → date.D8rQMzMG.js.map} +1 -1
  380. package/dist/chunks/dialog-page.DALFn9KR.js +171 -0
  381. package/dist/chunks/{dialog-page.CBim-VWH.js.map → dialog-page.DALFn9KR.js.map} +1 -1
  382. package/dist/chunks/divider.ugNXYI-T.js +22 -0
  383. package/dist/chunks/{divider.CnwfddJD.js.map → divider.ugNXYI-T.js.map} +1 -1
  384. package/dist/chunks/{dropdown-default-textbox.Bues7tON.js → dropdown-default-textbox.Bu4bpNGU.js} +116 -116
  385. package/dist/chunks/{dropdown-default-textbox.Bues7tON.js.map → dropdown-default-textbox.Bu4bpNGU.js.map} +1 -1
  386. package/dist/chunks/{dropdown-tag.BiVKlJ-B.js → dropdown-tag.CocbqRcO.js} +67 -67
  387. package/dist/chunks/{dropdown-tag.BiVKlJ-B.js.map → dropdown-tag.CocbqRcO.js.map} +1 -1
  388. package/dist/chunks/{dropdown.CZyiZiox.js → dropdown.DQpKDlC-.js} +355 -355
  389. package/dist/chunks/{dropdown.CZyiZiox.js.map → dropdown.DQpKDlC-.js.map} +1 -1
  390. package/dist/chunks/{empty-state.CApqeBsH.js → empty-state.CyEWCcDk.js} +48 -48
  391. package/dist/chunks/{empty-state.CApqeBsH.js.map → empty-state.CyEWCcDk.js.map} +1 -1
  392. package/dist/chunks/{error-message.DCScf_vk.js → error-message.BfOmvPPb.js} +13 -13
  393. package/dist/chunks/{error-message.DCScf_vk.js.map → error-message.BfOmvPPb.js.map} +1 -1
  394. package/dist/chunks/es6.BvpG4Oi6.js.map +1 -1
  395. package/dist/chunks/expand.CgwNEbbz.js +33 -0
  396. package/dist/chunks/{expand.D1DTqaBO.js.map → expand.CgwNEbbz.js.map} +1 -1
  397. package/dist/chunks/filter-bar.-G1-moOO.js +2767 -0
  398. package/dist/chunks/filter-bar.-G1-moOO.js.map +1 -0
  399. package/dist/chunks/{fixed-scroller.BN3jp9Ss.js → fixed-scroller.DwYB1pqo.js} +4 -4
  400. package/dist/chunks/fixed-scroller.DwYB1pqo.js.map +1 -0
  401. package/dist/chunks/focus-trap.CwkbHfT8.js.map +1 -1
  402. package/dist/chunks/{footer-actions.Dj2vH6Hj.js → footer-actions.gtxofUAa.js} +19 -19
  403. package/dist/chunks/{footer-actions.Dj2vH6Hj.js.map → footer-actions.gtxofUAa.js.map} +1 -1
  404. package/dist/chunks/{form-layout-title.BKJPBhsv.js → form-layout-title.Boi0QQZL.js} +42 -42
  405. package/dist/chunks/{form-layout-title.BKJPBhsv.js.map → form-layout-title.Boi0QQZL.js.map} +1 -1
  406. package/dist/chunks/grid-layout.CqLbbEzI.js.map +1 -1
  407. package/dist/chunks/{header.DygonMXo.js → header.BLKs2Erq.js} +8 -8
  408. package/dist/chunks/{header.DygonMXo.js.map → header.BLKs2Erq.js.map} +1 -1
  409. package/dist/chunks/i18n.DL9GT2-k.js +3086 -0
  410. package/dist/chunks/i18n.DL9GT2-k.js.map +1 -0
  411. package/dist/chunks/image.0KzfycGE.js.map +1 -1
  412. package/dist/chunks/{info-icon.Bb20bxQm.js → info-icon.DIu8FeJC.js} +4 -4
  413. package/dist/chunks/{info-icon.Bb20bxQm.js.map → info-icon.DIu8FeJC.js.map} +1 -1
  414. package/dist/chunks/info.CIFBUqf-.js +44 -0
  415. package/dist/chunks/{info.CNegCnli.js.map → info.CIFBUqf-.js.map} +1 -1
  416. package/dist/chunks/{input-field.dPEY8nfT.js → input-field.f4lqnh2q.js} +66 -66
  417. package/dist/chunks/{input-field.dPEY8nfT.js.map → input-field.f4lqnh2q.js.map} +1 -1
  418. package/dist/chunks/inspector.types.t2SPyhw3.js +116 -0
  419. package/dist/chunks/{inspector.types.BpPQ6zrm.js.map → inspector.types.t2SPyhw3.js.map} +1 -1
  420. package/dist/chunks/link.2YS7haGc.js +110 -0
  421. package/dist/chunks/link.2YS7haGc.js.map +1 -0
  422. package/dist/chunks/{listbox-option-tag.BU_sJ_KV.js → listbox-option-tag.QqDEHMKB.js} +3 -3
  423. package/dist/chunks/{listbox-option-tag.BU_sJ_KV.js.map → listbox-option-tag.QqDEHMKB.js.map} +1 -1
  424. package/dist/chunks/{loading-button.CrijUhme.js → loading-button.Mx-oDIGy.js} +39 -39
  425. package/dist/chunks/{loading-button.CrijUhme.js.map → loading-button.Mx-oDIGy.js.map} +1 -1
  426. package/dist/chunks/{menu.CE8khC0O.js → menu.DFMKn3Zr.js} +96 -96
  427. package/dist/chunks/{menu.CE8khC0O.js.map → menu.DFMKn3Zr.js.map} +1 -1
  428. package/dist/chunks/{modal-fullscreen.DYfgO3lG.js → modal-fullscreen.Caqa7dDp.js} +80 -80
  429. package/dist/chunks/{modal-fullscreen.DYfgO3lG.js.map → modal-fullscreen.Caqa7dDp.js.map} +1 -1
  430. package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.uUB7rtBH.js → modal.vue_vue_type_script_setup_true_lang.Bh6Q4yIf.js} +136 -136
  431. package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.uUB7rtBH.js.map → modal.vue_vue_type_script_setup_true_lang.Bh6Q4yIf.js.map} +1 -1
  432. package/dist/chunks/on-click-outside.MUWbmGDn.js.map +1 -1
  433. package/dist/chunks/{pagination.DfKNN2Mb.js → pagination.B4ker8JJ.js} +130 -130
  434. package/dist/chunks/{pagination.DfKNN2Mb.js.map → pagination.B4ker8JJ.js.map} +1 -1
  435. package/dist/chunks/{payment-method.Dyrh0PaX.js → payment-method.-3VYG5ud.js} +2 -2
  436. package/dist/chunks/{payment-method.Dyrh0PaX.js.map → payment-method.-3VYG5ud.js.map} +1 -1
  437. package/dist/chunks/{popover.BSGQxusD.js → popover.CczC6Fhk.js} +63 -63
  438. package/dist/chunks/{popover.BSGQxusD.js.map → popover.CczC6Fhk.js.map} +1 -1
  439. package/dist/chunks/{popper-container.DigB3V2j.js → popper-container.DFpaesDm.js} +239 -239
  440. package/dist/chunks/{popper-container.DigB3V2j.js.map → popper-container.DFpaesDm.js.map} +1 -1
  441. package/dist/chunks/{radio-group.CIXsaLLX.js → radio-group.C18T8QQs.js} +112 -112
  442. package/dist/chunks/{radio-group.CIXsaLLX.js.map → radio-group.C18T8QQs.js.map} +1 -1
  443. package/dist/chunks/{radio-input.Dp-se-SR.js → radio-input.DtvlM-mr.js} +20 -20
  444. package/dist/chunks/{radio-input.Dp-se-SR.js.map → radio-input.DtvlM-mr.js.map} +1 -1
  445. package/dist/chunks/refresh.DvQeGwUF.js +29 -0
  446. package/dist/chunks/{refresh.BfxRdaQb.js.map → refresh.DvQeGwUF.js.map} +1 -1
  447. package/dist/chunks/{search-bar.exXNyvwZ.js → search-bar.C__L0enF.js} +39 -39
  448. package/dist/chunks/{search-bar.exXNyvwZ.js.map → search-bar.C__L0enF.js.map} +1 -1
  449. package/dist/chunks/search.EnLryD8V.js +44 -0
  450. package/dist/chunks/{search.0lh99z1F.js.map → search.EnLryD8V.js.map} +1 -1
  451. package/dist/chunks/secondary-nav.DCe7I3pu.js +137 -0
  452. package/dist/chunks/{secondary-nav.CRJ27DQY.js.map → secondary-nav.DCe7I3pu.js.map} +1 -1
  453. package/dist/chunks/segmented-control.DbR5NYWR.js +142 -0
  454. package/dist/chunks/{segmented-control.hE7kcMb7.js.map → segmented-control.DbR5NYWR.js.map} +1 -1
  455. package/dist/chunks/{selection-card-group.Bxv-t-CN.js → selection-card-group.DNZTT85O.js} +129 -122
  456. package/dist/chunks/selection-card-group.DNZTT85O.js.map +1 -0
  457. package/dist/chunks/{sidepanel.C6ndYx2_.js → sidepanel.CprbeR-2.js} +76 -76
  458. package/dist/chunks/{sidepanel.C6ndYx2_.js.map → sidepanel.CprbeR-2.js.map} +1 -1
  459. package/dist/chunks/{status.types.wKICxOth.js → status.types.r9TfZmvE.js} +12 -12
  460. package/dist/chunks/{status.types.wKICxOth.js.map → status.types.r9TfZmvE.js.map} +1 -1
  461. package/dist/chunks/step.ClnCjesW.js +284 -0
  462. package/dist/chunks/step.ClnCjesW.js.map +1 -0
  463. package/dist/chunks/structured-list-item.Z-1ivOFu.js +101 -0
  464. package/dist/chunks/{structured-list-item.CnrBWJgo.js.map → structured-list-item.Z-1ivOFu.js.map} +1 -1
  465. package/dist/chunks/{summary-grid-item-custom.BMK48oR5.js → summary-grid-item-custom.Dq3IIEvH.js} +5 -5
  466. package/dist/chunks/{summary-grid-item-custom.BMK48oR5.js.map → summary-grid-item-custom.Dq3IIEvH.js.map} +1 -1
  467. package/dist/chunks/{tabs.BeCbcy81.js → tabs.xY_6yqmE.js} +3 -3
  468. package/dist/chunks/{tabs.BeCbcy81.js.map → tabs.xY_6yqmE.js.map} +1 -1
  469. package/dist/chunks/{tag.BZ90rkBe.js → tag.RYw4OhWk.js} +3 -3
  470. package/dist/chunks/{tag.BZ90rkBe.js.map → tag.RYw4OhWk.js.map} +1 -1
  471. package/dist/chunks/teleport.L8qFCYpr.js.map +1 -1
  472. package/dist/chunks/{textarea.C9dCXF7c.js → textarea.C-Oje7QC.js} +100 -101
  473. package/dist/chunks/{textarea.C9dCXF7c.js.map → textarea.C-Oje7QC.js.map} +1 -1
  474. package/dist/chunks/{timeline-item.DVugzZI5.js → timeline-item.FTU5rl7e.js} +209 -209
  475. package/dist/chunks/{timeline-item.DVugzZI5.js.map → timeline-item.FTU5rl7e.js.map} +1 -1
  476. package/dist/chunks/toast.LNgV2jhU.js +215 -0
  477. package/dist/chunks/{toast.CtEylmx6.js.map → toast.LNgV2jhU.js.map} +1 -1
  478. package/dist/chunks/{toggle-button.CYVGUQYj.js → toggle-button.CBRd1v6x.js} +19 -19
  479. package/dist/chunks/{toggle-button.CYVGUQYj.js.map → toggle-button.CBRd1v6x.js.map} +1 -1
  480. package/dist/chunks/{toggle.D1DUlF_5.js → toggle.8t4flh_3.js} +3 -3
  481. package/dist/chunks/{toggle.D1DUlF_5.js.map → toggle.8t4flh_3.js.map} +1 -1
  482. package/dist/chunks/{tooltip.CVUXkVlR.js → tooltip.DvsfWV0-.js} +3 -3
  483. package/dist/chunks/{tooltip.CVUXkVlR.js.map → tooltip.DvsfWV0-.js.map} +1 -1
  484. package/dist/chunks/tutorial.vue_vue_type_script_setup_true_lang.DgbanhBM.js +409 -0
  485. package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.Dorj2fX-.js.map → tutorial.vue_vue_type_script_setup_true_lang.DgbanhBM.js.map} +1 -1
  486. package/dist/chunks/{typography.CSIykcgS.js → typography.z9P0Ec3Q.js} +22 -22
  487. package/dist/chunks/{typography.CSIykcgS.js.map → typography.z9P0Ec3Q.js.map} +1 -1
  488. package/dist/chunks/{use-bento-toast-controller.kD6xtHQE.js → use-bento-toast-controller.BDYlxAYq.js} +2 -2
  489. package/dist/chunks/{use-bento-toast-controller.kD6xtHQE.js.map → use-bento-toast-controller.BDYlxAYq.js.map} +1 -1
  490. package/dist/chunks/{use-cached-selected-values.DplP72ef.js → use-cached-selected-values.DaSn9dB9.js} +593 -589
  491. package/dist/chunks/use-cached-selected-values.DaSn9dB9.js.map +1 -0
  492. package/dist/chunks/{use-country-items.CongYNiX.js → use-country-items.DQR8plsq.js} +2 -2
  493. package/dist/chunks/{use-country-items.CongYNiX.js.map → use-country-items.DQR8plsq.js.map} +1 -1
  494. package/dist/chunks/use-expandable-content-height.GkjjbmPy.js.map +1 -1
  495. package/dist/chunks/warning-filled.Dm_HhqzW.js +29 -0
  496. package/dist/chunks/{warning-filled.DHw1rVWs.js.map → warning-filled.Dm_HhqzW.js.map} +1 -1
  497. package/dist/code-snippet.js +1 -1
  498. package/dist/country.js +1 -1
  499. package/dist/currency.js +1 -1
  500. package/dist/dashboard-template.js +1 -1
  501. package/dist/dashed-underline.js +1 -1
  502. package/dist/data-grid-template.js +1 -1
  503. package/dist/data-grid.js +1 -1
  504. package/dist/date-picker.js +2 -2
  505. package/dist/date-range-picker.js +2 -2
  506. package/dist/date.js +1 -1
  507. package/dist/divider.js +1 -1
  508. package/dist/dropdown.js +4 -4
  509. package/dist/empty-state.js +1 -1
  510. package/dist/filter-bar.js +1 -1
  511. package/dist/form-layout.js +1 -1
  512. package/dist/header.js +1 -1
  513. package/dist/index.js +69 -67
  514. package/dist/index.js.map +1 -1
  515. package/dist/info-icon.js +1 -1
  516. package/dist/input-field.js +1 -1
  517. package/dist/inspector.js +1 -1
  518. package/dist/internal.js +8 -8
  519. package/dist/link.js +1 -1
  520. package/dist/menu.js +1 -1
  521. package/dist/modal-fullscreen.js +1 -1
  522. package/dist/modal.js +2 -2
  523. package/dist/pagination.js +1 -1
  524. package/dist/payment-method.js +1 -1
  525. package/dist/popover.js +1 -1
  526. package/dist/popper-container.js +1 -1
  527. package/dist/radio-group.js +2 -2
  528. package/dist/search-bar.js +2 -2
  529. package/dist/secondary-nav.js +1 -1
  530. package/dist/segmented-control.js +1 -1
  531. package/dist/selection-card.js +1 -1
  532. package/dist/sidepanel.js +1 -1
  533. package/dist/status.js +1 -1
  534. package/dist/stepper.js +1 -1
  535. package/dist/structured-list.js +1 -1
  536. package/dist/summary-grid.js +1 -1
  537. package/dist/tabs.js +1 -1
  538. package/dist/tag.js +1 -1
  539. package/dist/textarea.js +1 -1
  540. package/dist/timeline.js +1 -1
  541. package/dist/toast.js +1 -1
  542. package/dist/toggle.js +1 -1
  543. package/dist/tutorial.js +1 -1
  544. package/dist/typography.js +1 -1
  545. package/dist/web-types.json +1 -1
  546. package/package.json +4 -4
  547. package/dist/chunks/accordion-item.C7rQK0Xh.js +0 -126
  548. package/dist/chunks/alert.BOqbFni9.js +0 -162
  549. package/dist/chunks/avatar.DWSW4vWC.js +0 -94
  550. package/dist/chunks/base-modal.09efJqFH.js.map +0 -1
  551. package/dist/chunks/calendar.DrP5wyvL.js.map +0 -1
  552. package/dist/chunks/card.BKtIXyL-.js +0 -205
  553. package/dist/chunks/checkbox-input.CR1lHf7f.js.map +0 -1
  554. package/dist/chunks/checkmark-circle-fill.D29b-JWj.js +0 -44
  555. package/dist/chunks/checkmark-small.BCeGkayS.js +0 -29
  556. package/dist/chunks/chevron-left.4JHuWe7i.js +0 -52
  557. package/dist/chunks/chevron-up.5-KtIp8i.js +0 -52
  558. package/dist/chunks/cross-circle-fill-small.DiZWEd7W.js +0 -29
  559. package/dist/chunks/cross-circle-fill.vLaelNTN.js +0 -44
  560. package/dist/chunks/cross-small.48UCoOqB.js +0 -29
  561. package/dist/chunks/cross.BlL0FyHo.js +0 -29
  562. package/dist/chunks/dashboard-section.CwOasd7G.js +0 -167
  563. package/dist/chunks/dashed-underline.D_262wln.js +0 -79
  564. package/dist/chunks/data-grid-template.ViVmshHU.js +0 -93
  565. package/dist/chunks/data-grid-template.ViVmshHU.js.map +0 -1
  566. package/dist/chunks/data-grid.CCVRJrXT.js +0 -2765
  567. package/dist/chunks/data-grid.CCVRJrXT.js.map +0 -1
  568. package/dist/chunks/date-range-picker.T10FmcWb.js +0 -923
  569. package/dist/chunks/date-range-picker.T10FmcWb.js.map +0 -1
  570. package/dist/chunks/dialog-page.CBim-VWH.js +0 -171
  571. package/dist/chunks/divider.CnwfddJD.js +0 -22
  572. package/dist/chunks/expand.D1DTqaBO.js +0 -33
  573. package/dist/chunks/filter-bar.DCaEgOFF.js +0 -2809
  574. package/dist/chunks/filter-bar.DCaEgOFF.js.map +0 -1
  575. package/dist/chunks/fixed-scroller.BN3jp9Ss.js.map +0 -1
  576. package/dist/chunks/i18n.DY5YXG5f.js +0 -2652
  577. package/dist/chunks/i18n.DY5YXG5f.js.map +0 -1
  578. package/dist/chunks/info.CNegCnli.js +0 -44
  579. package/dist/chunks/inspector.types.BpPQ6zrm.js +0 -116
  580. package/dist/chunks/link.DgEKZGKQ.js +0 -110
  581. package/dist/chunks/link.DgEKZGKQ.js.map +0 -1
  582. package/dist/chunks/refresh.BfxRdaQb.js +0 -29
  583. package/dist/chunks/search.0lh99z1F.js +0 -44
  584. package/dist/chunks/secondary-nav.CRJ27DQY.js +0 -137
  585. package/dist/chunks/segmented-control.hE7kcMb7.js +0 -142
  586. package/dist/chunks/selection-card-group.Bxv-t-CN.js.map +0 -1
  587. package/dist/chunks/step.D3y_Iv1_.js +0 -284
  588. package/dist/chunks/step.D3y_Iv1_.js.map +0 -1
  589. package/dist/chunks/structured-list-item.CnrBWJgo.js +0 -101
  590. package/dist/chunks/toast.CtEylmx6.js +0 -215
  591. package/dist/chunks/tutorial.vue_vue_type_script_setup_true_lang.Dorj2fX-.js +0 -408
  592. package/dist/chunks/use-cached-selected-values.DplP72ef.js.map +0 -1
  593. package/dist/chunks/warning-filled.DHw1rVWs.js +0 -29
@@ -1,2765 +0,0 @@
1
- import { ref as R, reactive as et, toRefs as tt, computed as A, watchEffect as Rn, watch as ge, onMounted as nt, nextTick as de, onUnmounted as kt, onBeforeUpdate as An, openBlock as r, createElementBlock as b, mergeProps as X, toDisplayString as G, createCommentVNode as U, createElementVNode as C, defineComponent as Le, normalizeClass as re, unref as n, Fragment as ue, renderList as ve, toHandlers as Ze, createVNode as V, withCtx as W, renderSlot as ye, createBlock as P, withModifiers as Tn, resolveComponent as ae, createTextVNode as Q, withDirectives as lt, vShow as wn, toRef as Dt, resolveDirective as Nn, Transition as Mn, createSlots as Be, resolveDynamicComponent as $e, pushScopeId as Un, popScopeId as kn, provide as Dn, useSlots as Pn, inject as ut, normalizeStyle as Ge, normalizeProps as Xe, guardReactiveProps as Ke } from "vue";
2
- import { C as Fn } from "./checkmark-circle-fill.D29b-JWj.js";
3
- import { W as zn } from "./warning-filled.DHw1rVWs.js";
4
- import { _ as x } from "./_plugin-vue_export-helper.CHgC5LLL.js";
5
- import { C as Pt } from "./cross.BlL0FyHo.js";
6
- import { N as gt } from "./checkbox-input.CR1lHf7f.js";
7
- import { K as he, B as Wn } from "./tooltip.CVUXkVlR.js";
8
- import { d as Gn } from "./popper-container.DigB3V2j.js";
9
- import { B as Hn } from "./action-bar.2Ch92mVR.js";
10
- import { B as Vn } from "./pagination.DfKNN2Mb.js";
11
- import { B as Ft } from "./loading-indicator.BFMEf39U.js";
12
- import { B as xe, p as zt } from "./typography.CSIykcgS.js";
13
- import { u as Bn } from "./aria-label.CaUURpnB.js";
14
- import { g as Zn } from "./get-slot-text.D5WBGjic.js";
15
- import { u as Ee } from "./i18n.DY5YXG5f.js";
16
- import { B as xn } from "./empty-state.CApqeBsH.js";
17
- import { B as He } from "./filter-bar.DCaEgOFF.js";
18
- import { E as jn } from "./tabs.keys.Bc2pSKRw.js";
19
- import { D as qn } from "./data-grid-template.keys.2_AkxuNT.js";
20
- import { o as Wt } from "./resize.Bqks3WUm.js";
21
- import { a as ft, B as Yn } from "./popover.BSGQxusD.js";
22
- import { B as Gt } from "./button.BbV2BOSa.js";
23
- import { B as Ht } from "./toggle.D1DUlF_5.js";
24
- import { B as Xn } from "./search-bar.exXNyvwZ.js";
25
- import { u as Kn } from "./dropdown.CZyiZiox.js";
26
- import { B as Jn } from "./directive.O3yEdalv.js";
27
- import { g as Qn } from "./unique-id.XFfoKuc2.js";
28
- import { S as el } from "./search.0lh99z1F.js";
29
- import { B as Vt } from "./toggle-button.CYVGUQYj.js";
30
- import { B as Bt } from "./checkbox.Blsg-Tvr.js";
31
- import { B as tl } from "./info-icon.Bb20bxQm.js";
32
- import { B as Je, O as nl, D as ll } from "./menu.CE8khC0O.js";
33
- import { A as sl } from "./dialog-page.CBim-VWH.js";
34
- import { l as vt } from "./events.CMzGybJJ.js";
35
- import { C as ol } from "./copy._G3BOh-w.js";
36
- import { B as mt, a as ht } from "./loading-button.CrijUhme.js";
37
- import "../assets/data-grid.css";
38
- var Qe = /* @__PURE__ */ ((e) => (e.WRAP = "wrap", e.ELLIPSIS = "ellipsis", e))(Qe || {}), _e = /* @__PURE__ */ ((e) => (e.OUTLINE = "outline", e.SCROLL = "scroll", e.STICKY_FILTERS = "sticky-filters", e.OVERFLOW_SHADOW_LEFT = "overflow-shadow-left", e.OVERFLOW_SHADOW_RIGHT = "overflow-shadow-right", e.NO_SPACING_TOP = "no-spacing-top", e))(_e || {}), pe = /* @__PURE__ */ ((e) => (e.ASCENDING = "asc", e.DESCENDING = "desc", e))(pe || {}), N = /* @__PURE__ */ ((e) => (e.COLUMNS = "columns", e.COLUMN_RESIZE = "column-resize", e.ITEMS_PAGE = "items-page", e.NAVIGATE = "navigate", e.FILTER_SEARCH_INPUT = "filter-search-input", e.FILTER_SEARCH_CLEAR = "filter-search-clear", e.UPDATE_COLUMNS = "update:columns", e.UPDATE_CONDENSED = "update:condensed", e.UPDATE_FILTERS = "update:filters", e.UPDATE_FILTER_VALUES = "update:filter-values", e.UPDATE_FILTER_SEARCH_TERM = "update:filter-search-term", e.UPDATE_PAGINATION = "update:pagination", e.UPDATE_SELECTION = "update:selection", e.UPDATE_SHOW_MORE = "update:show-more", e.UPDATE_SORT_BY = "update:sort-by", e.ROW_CLICK = "row-click", e.SELECT = "select", e.SELECT_ALL_ACROSS_PAGES = "select-all-across-pages", e.SORT = "sort", e))(N || {}), Ve = /* @__PURE__ */ ((e) => (e.ASCENDING = "ascending", e.DESCENDING = "descending", e.NONE = "none", e))(Ve || {}), Z = /* @__PURE__ */ ((e) => (e.COLUMN_RESIZE = "column-resize", e.COLUMN_RESIZING = "column-resizing", e.SORT = "sort", e.SELECT_ALL_ROWS = "select-all-rows", e.SELECT_ALL_ACROSS_PAGES = "select-all-across-pages", e.COLUMN_MOVE = "column-move", e.COLUMN_UPDATE = "column-update", e.COLUMN_MENU_OPEN = "column-menu-open", e.COLUMN_MENU_CLOSE = "column-menu-close", e.COLUMN_HOVER = "column-hover", e.COLUMN_DRAG_START = "column-dragstart", e.COLUMN_DRAG_ENTER = "column-dragenter", e.COLUMN_DRAG_END = "column-dragend", e.COLUMN_DROP = "column-drop", e))(Z || {});
39
- const il = (e, u) => {
40
- const a = R(null), t = R(!1), g = R(void 0), o = e.value.reduce((L, y) => (L[y.field] = null, L), {}), f = et(o), p = tt(f);
41
- let v = 0, $ = "";
42
- const I = A(
43
- () => Object.fromEntries(e.value.map(({ field: L, width: y, minWidth: M }) => [L, { width: y, minWidth: M }]))
44
- );
45
- Rn(() => g.value = I.value);
46
- let c = null, d = null;
47
- const i = (L) => {
48
- const y = L.clientX - v, M = $, k = g.value[M].width + y;
49
- g.value[M].width = k > I.value[M].minWidth ? k : I.value[M].minWidth, u(Z.COLUMN_RESIZING, g.value), v = L.clientX;
50
- }, l = () => {
51
- t.value = !1, c == null || c(), d == null || d(), $ && u(Z.COLUMN_RESIZE, {
52
- field: $,
53
- width: g.value[$].width
54
- }), c = null, d = null, $ = "", v = null;
55
- }, E = (L, y, M) => {
56
- if (M.preventDefault(), L) {
57
- if (t.value = !0, M.buttons !== 1) {
58
- l();
59
- return;
60
- }
61
- $ = y, v = M.clientX, c = vt(window, "mousemove", i), d = vt(window, "mouseup", l);
62
- }
63
- };
64
- return ge(
65
- () => t.value,
66
- (L, y) => {
67
- !L && y && (u(Z.COLUMN_HOVER, a.value), a.value = null);
68
- }
69
- ), {
70
- resizeData: g,
71
- allColumnRefs: p,
72
- startResize: E,
73
- isResizing: t,
74
- columnHoverEventToEmitAfterResizing: a
75
- };
76
- }, al = 100, _t = 50, be = "b-select", rl = 32, dl = 56, cl = 1, ul = 16, gl = (e, u, a) => {
77
- const t = {}, g = [], o = (p) => {
78
- const v = t[p];
79
- v && v.frozen !== !0 && (t[p].frozen = !0, g.push(p));
80
- };
81
- function f() {
82
- if (g.length === a.length)
83
- return;
84
- const p = { min: {}, max: {} };
85
- let v = e, $ = u, I = 0;
86
- g.forEach((c) => {
87
- v -= t[c].computedWidth, $ -= t[c].flex;
88
- });
89
- for (let c = 0, d = a.length; c < d; c += 1) {
90
- const i = a[c];
91
- if (t[i.field] && t[i.field].frozen === !0)
92
- continue;
93
- let E = v / $ * i.flex;
94
- E < i.minWidth && (I += i.minWidth - E, E = i.minWidth, p.min[i.field] = !0), t[i.field] = {
95
- frozen: !1,
96
- computedWidth: E,
97
- flex: i.flex
98
- };
99
- }
100
- I > 0 ? Object.keys(p.min).forEach((c) => {
101
- o(c);
102
- }) : a.forEach(({ field: c }) => {
103
- o(c);
104
- }), f();
105
- }
106
- return f(), t;
107
- }, Ct = (e, u) => {
108
- let a = cl;
109
- return u && (a += ul * 2), e != null && e.offsetWidth ? e.offsetWidth + a : 0;
110
- }, fl = (e, u, a, t, g, o) => {
111
- const f = R(e.value), p = R(u), v = R(a), $ = R(t), I = R(g), c = R(!1);
112
- ge(
113
- () => e.value,
114
- (h, m) => {
115
- var H, q;
116
- const O = (h == null ? void 0 : h.map(({ field: Y }) => Y).toString()) === (m == null ? void 0 : m.map(({ field: Y }) => Y).toString());
117
- if (!((H = o == null ? void 0 : o.allowColumnDragAndDrop) != null && H.value) || !O) {
118
- f.value = e.value;
119
- return;
120
- }
121
- f.value = ((q = f.value) == null ? void 0 : q.length) === 0 ? e.value : e.value.sort((Y, ee) => {
122
- const se = f.value.findIndex((B) => B.field === Y.field), te = f.value.findIndex((B) => B.field === ee.field);
123
- return se === -1 ? 1 : te === -1 ? -1 : se - te;
124
- });
125
- }
126
- );
127
- const d = R();
128
- let i = null;
129
- const l = A(() => {
130
- var se, te;
131
- const h = [];
132
- let m = 0, O = 0;
133
- const H = {};
134
- let q = f.value.filter((B) => B.visible !== !1);
135
- const Y = f.value.filter((B) => B.visible === !1);
136
- if ((se = o == null ? void 0 : o.hasSelectableColumn) != null && se.value) {
137
- const B = (te = o == null ? void 0 : o.hasSelectableAcrossPages) != null && te.value ? dl : rl;
138
- q = [
139
- {
140
- field: be,
141
- label: "",
142
- minWidth: B,
143
- width: B,
144
- frozen: !0,
145
- padding: { left: !1, right: !1 }
146
- },
147
- ...q
148
- ];
149
- }
150
- q.forEach((B) => {
151
- const F = { ...B };
152
- let fe;
153
- F.flex && F.flex > 0 ? (m += F.flex, fe = 0, h.push(F)) : fe = Math.max(
154
- (F == null ? void 0 : F.width) ?? al,
155
- (F == null ? void 0 : F.minWidth) ?? _t
156
- ), O += fe, F.width = fe, F.minWidth = (F == null ? void 0 : F.minWidth) ?? _t, H[F.field] = F;
157
- });
158
- const ee = Math.max(d.value - O, 0);
159
- if (m > 0 && d.value > 0) {
160
- const B = gl(ee, m, h);
161
- Object.keys(B).forEach((F) => {
162
- H[F].width = B[F].computedWidth;
163
- });
164
- }
165
- return Y.forEach((B) => {
166
- const F = { ...B };
167
- H[F.field] = F;
168
- }), Object.values(H);
169
- }), E = R(void 0), L = (h) => {
170
- E.value = { ...E.value, ...h };
171
- }, y = async () => {
172
- f.value.some((h) => h == null ? void 0 : h.autoWidth) && (c.value = !0, await de(), await de(), f == null || f.value.filter((h) => h == null ? void 0 : h.autoWidth).forEach(({ field: h, minWidth: m }) => {
173
- var Y, ee, se, te;
174
- const O = Ct(
175
- (Y = $.value) == null ? void 0 : Y[h],
176
- (ee = o == null ? void 0 : o.hasColumnPanel) == null ? void 0 : ee.value
177
- ), H = (te = (se = I.value) == null ? void 0 : se[h]) == null ? void 0 : te.reduce(
178
- (B, F) => Math.max(B, Ct(F)),
179
- 0
180
- ), q = Math.max(O, H ?? 0);
181
- (m === void 0 || q > m) && L({
182
- [h]: {
183
- width: q
184
- }
185
- });
186
- }), c.value = !1);
187
- };
188
- ge([() => f.value, () => p.value], async () => {
189
- f.value.some((h) => h == null ? void 0 : h.autoWidth) && await y();
190
- });
191
- const M = A(
192
- () => l.value.map((h) => {
193
- var m, O;
194
- return {
195
- ...h,
196
- // Override column width with resized ones
197
- width: ((O = (m = E.value) == null ? void 0 : m[h.field]) == null ? void 0 : O.width) ?? h.width
198
- };
199
- })
200
- ), k = A(
201
- () => {
202
- var h;
203
- return (h = M.value) == null ? void 0 : h.filter(({ visible: m }) => m !== !1).reduce((m, O) => O.width + m, 0);
204
- }
205
- ), j = A(
206
- () => d.value <= k.value
207
- ), _ = A(() => ({
208
- width: d.value > k.value ? "100%" : "fit-content"
209
- }));
210
- return nt(() => {
211
- var h;
212
- de(() => {
213
- v.value && (d.value = v.value.getBoundingClientRect().width);
214
- const m = ge(
215
- v,
216
- () => {
217
- v.value && (de(() => m()), i = Wt(v.value, ({ width: O }) => {
218
- d.value = O;
219
- }));
220
- },
221
- { immediate: !0 }
222
- );
223
- }), (h = document == null ? void 0 : document.fonts) != null && h.ready ? document.fonts.ready.then(() => {
224
- y();
225
- }) : y();
226
- }), kt(() => {
227
- i == null || i.disconnect();
228
- }), An(() => {
229
- var h;
230
- I.value && ((h = Object.keys(I.value)) == null ? void 0 : h.length) > 0 && Object.keys(I.value).forEach((O) => {
231
- I.value[O] = [];
232
- });
233
- }), {
234
- columnDefs: M,
235
- gridColumnWidthStyle: _,
236
- onColumnWidthOverride: L,
237
- isMeasuringColumnWidths: c,
238
- isTotalWidthOfColumnsTakingUpAllAvailableGridWidth: j,
239
- columns: f
240
- };
241
- }, vl = (e, u, a, t, g) => {
242
- const o = R(e.value ?? []), f = et({
243
- allItemsSelected: !1,
244
- isIndeterminate: !1
245
- }), p = () => {
246
- u(N.SELECT, o.value), u(N.UPDATE_SELECTION, o.value);
247
- }, v = (c) => {
248
- var i, l, E, L, y;
249
- if (o.value = c, ((i = a.value) == null ? void 0 : i.length) > 0 && ((l = a.value) == null ? void 0 : l.filter((M) => !g(M)).every((M) => o.value.includes(t(M))))) {
250
- f.allItemsSelected = !0;
251
- const M = ((E = a.value) == null ? void 0 : E.length) > 0 && a.value.every((k) => o.value.includes(t(k)));
252
- f.isIndeterminate = !M;
253
- } else
254
- f.allItemsSelected = !1, f.isIndeterminate = ((L = o.value) == null ? void 0 : L.length) > 0 && ((y = a.value) == null ? void 0 : y.length) > 0 && a.value.some((M) => o.value.includes(t(M)));
255
- }, $ = (c) => {
256
- de(() => {
257
- var d, i, l;
258
- if (f.allItemsSelected = c, c) {
259
- o.value = (i = (d = a.value) == null ? void 0 : d.filter((L) => !g(L))) == null ? void 0 : i.map((L) => t(L));
260
- const E = ((l = a.value) == null ? void 0 : l.length) > 0 && a.value.every((L) => o.value.includes(t(L)));
261
- f.isIndeterminate = o.value.length > 0 && !E;
262
- } else
263
- o.value = [], f.isIndeterminate = !1;
264
- p();
265
- });
266
- }, I = (c) => {
267
- de(() => {
268
- v(c), p();
269
- });
270
- };
271
- return ge(
272
- () => e.value,
273
- () => {
274
- v(e.value ?? []);
275
- },
276
- { immediate: !0 }
277
- ), ge(
278
- () => a.value,
279
- () => {
280
- v(o.value);
281
- }
282
- ), { onAllRowSelect: $, onRowSelect: I, allItemsSelectedState: f, selectedItems: o };
283
- }, ml = (e, u, a) => ({ isSorting: (f) => e.value.some((p) => p.field === f), getSortingDirection: (f) => {
284
- var p;
285
- return (p = e.value.find((v) => v.field === f)) == null ? void 0 : p.direction;
286
- }, sortByColumnField: (f) => {
287
- var $;
288
- if (!u.value.some((I) => I.field === f && I.sortable))
289
- return;
290
- const v = [{
291
- field: f,
292
- direction: (($ = e.value.find((I) => I.field === f)) == null ? void 0 : $.direction) === pe.ASCENDING ? pe.DESCENDING : pe.ASCENDING
293
- }];
294
- a(Z.SORT, v);
295
- } });
296
- var J = ((e) => (e[e.ARROW_DOWN = he.ARROW_DOWN] = "ARROW_DOWN", e[e.ARROW_UP = he.ARROW_UP] = "ARROW_UP", e[e.ARROW_LEFT = he.ARROW_LEFT] = "ARROW_LEFT", e[e.ARROW_RIGHT = he.ARROW_RIGHT] = "ARROW_RIGHT", e[e.PAGE_UP = he.PAGE_UP] = "PAGE_UP", e[e.PAGE_DOWN = he.PAGE_DOWN] = "PAGE_DOWN", e[e.END = he.END] = "END", e[e.HOME = he.HOME] = "HOME", e))(J || {});
297
- const hl = (e, u, a) => {
298
- const t = A(() => {
299
- const i = u.value.filter(({ visible: l }) => l !== !1);
300
- return a.value ? i.length + 1 : i.length;
301
- }), g = A(
302
- () => [...Object.values(e.value)].flat(1).sort((i, l) => {
303
- const E = Number(i.getAttribute("data-cellindex")), L = Number(l.getAttribute("data-cellindex"));
304
- return E > L ? 1 : L > E ? -1 : 0;
305
- })
306
- ), o = (i) => Math.floor(i / t.value), f = (i, l, E) => {
307
- const L = g.value.length - 1, y = t.value - 1, M = o(i), k = i - t.value * M;
308
- return {
309
- [J.PAGE_UP]: k,
310
- [J.PAGE_DOWN]: L - y + k,
311
- [J.END]: E ? L : t.value * M + y,
312
- [J.HOME]: E ? 0 : t.value * M
313
- }[l];
314
- }, p = (i, l) => {
315
- const L = {
316
- [J.ARROW_DOWN]: t.value,
317
- [J.ARROW_UP]: -t.value,
318
- [J.ARROW_LEFT]: -1,
319
- [J.ARROW_RIGHT]: 1
320
- }[l], y = i + L;
321
- return y < 0 || y >= g.value.length ? i : y;
322
- }, v = (i) => [
323
- J.PAGE_UP,
324
- J.PAGE_DOWN,
325
- J.END,
326
- J.HOME
327
- ].includes(i), $ = (i, l, E) => {
328
- const L = g.value.indexOf(i);
329
- return v(l) ? f(L, l, E) : p(L, l);
330
- }, I = (i, l, E) => {
331
- if (!g.value.includes(i))
332
- return;
333
- const L = $(i, l, E);
334
- g.value[L].focus();
335
- }, c = (i) => i in J;
336
- return {
337
- isNavigationKeyCode: c,
338
- focusOnNextGridcell: I,
339
- navigationInput: (i) => {
340
- const { ctrlKey: l, keyCode: E, target: L } = i;
341
- Object.values(e.value).flat(1).includes(L) && c(E) && I(L, E, l);
342
- }
343
- };
344
- }, _l = 90, Cl = (e, u, a, t, g) => {
345
- const o = R(e), f = R(u), p = R(a), v = R(t), $ = A(() => o.value !== "none"), I = A(() => o.value === "automatic"), c = () => {
346
- g(N.UPDATE_SHOW_MORE);
347
- };
348
- return ge(
349
- () => f.value,
350
- () => {
351
- I.value && p.value.offsetHeight / f.value * 100 > _l && !v.value && c();
352
- }
353
- ), { isLazyLoad: $, isInfiniteScroll: I, verticalScrollPosition: f, emitLazyLoadEvent: c };
354
- }, pl = (e, u, a) => {
355
- const t = R(e), g = R(u), o = et({
356
- dragging: null,
357
- dragToLeft: null,
358
- target: null
359
- }), f = (i, l = 0) => {
360
- const E = t.value.findIndex((M) => M.field === i.field), L = E + l;
361
- if (L < 0 || L > t.value.length - 1)
362
- return;
363
- const y = [...t.value];
364
- y.splice(L, 0, y.splice(E, 1)[0]), a(N.COLUMNS, y), a(N.UPDATE_COLUMNS, y);
365
- }, p = (i, l) => {
366
- o.dragging = i, l.dataTransfer.setData("text", ""), l.dataTransfer.dropEffect = "move";
367
- }, v = (i, l) => {
368
- o.target = i;
369
- const E = l.currentTarget.getBoundingClientRect(), L = E.left + E.width / 2, y = l.clientX ?? 0;
370
- o.dragToLeft = y <= L;
371
- }, $ = (i) => {
372
- var l, E;
373
- if (((l = o.dragging) == null ? void 0 : l.field) !== i.field) {
374
- const L = t.value.findIndex((h) => {
375
- var m;
376
- return h.field === ((m = o.dragging) == null ? void 0 : m.field);
377
- }), y = t.value.findIndex((h) => h.field === i.field), M = o.dragToLeft ? y : y + 1, k = M > L ? M - 1 : M;
378
- let j = [...t.value];
379
- j.splice(
380
- k === -1 ? 0 : k,
381
- 0,
382
- j.splice(L, 1)[0]
383
- );
384
- const _ = t.value.findIndex((h) => !(h != null && h.frozen));
385
- ((E = o.dragging) == null ? void 0 : E.frozen) !== i.frozen && M !== _ && (j = j.map(
386
- (h) => {
387
- var m;
388
- return ((m = o.dragging) == null ? void 0 : m.field) === h.field ? { ...h, frozen: !!(i != null && i.frozen) } : h;
389
- }
390
- )), a(N.COLUMNS, j), a(N.UPDATE_COLUMNS, j);
391
- }
392
- o.dragging = null, o.target = null;
393
- }, I = () => {
394
- o.dragging = null, o.dragToLeft = null, o.target = null;
395
- }, c = A(() => g.value ? {
396
- [Z.COLUMN_DRAG_START]: (i, l) => p(i, l),
397
- [Z.COLUMN_DRAG_ENTER]: (i, l) => v(i, l),
398
- [Z.COLUMN_DROP]: (i) => $(i),
399
- [Z.COLUMN_DRAG_END]: () => I()
400
- } : {}), d = A(() => (i) => g.value ? {
401
- dragenter: (l) => {
402
- l.preventDefault(), v(i, l);
403
- },
404
- drop: () => {
405
- $(i);
406
- },
407
- dragover: (l) => {
408
- l.preventDefault();
409
- }
410
- } : {});
411
- return {
412
- // Values
413
- draggingColumns: o,
414
- // Methods
415
- draggingEventsForColumns: c,
416
- draggingEventsForRowCell: d,
417
- onMoveColumnByOffset: f
418
- };
419
- }, Ll = (e, u) => {
420
- const a = R(e), t = A(
421
- () => [...a.value].sort((c, d) => c.frozen === d.frozen ? 0 : c.frozen ? -1 : 1)
422
- ), g = A(
423
- () => t.value.filter((c) => c.frozen && c.visible !== !1)
424
- ), o = A(
425
- () => t.value.filter((c) => !c.frozen && c.visible !== !1)
426
- ), f = A(
427
- () => [
428
- { columnSet: g.value, id: "frozen", isFrozenColumns: !0 },
429
- { columnSet: o.value, id: "unfrozen" }
430
- ].filter(({ columnSet: c }) => c.length)
431
- ), p = A(
432
- () => a.value.filter((c) => (c == null ? void 0 : c.visible) !== !1 && (c == null ? void 0 : c.field) !== be).length === 1
433
- ), v = (c) => u(N.UPDATE_CONDENSED, c), $ = (c) => {
434
- u(N.COLUMNS, c), u(N.UPDATE_COLUMNS, c);
435
- };
436
- return {
437
- // Values
438
- columnSets: f,
439
- isOnlyOneVisibleColumn: p,
440
- sortedColumns: t,
441
- // Methods
442
- onConfigSettingsUpdate: v,
443
- onConfigSettingsColumnsUpdate: $,
444
- onConfigSettingsColumnUpdate: (c) => {
445
- const d = t.value.map(
446
- (i) => (i == null ? void 0 : i.field) === c.field ? c : i
447
- );
448
- $(d);
449
- }
450
- };
451
- }, pt = (e, u) => {
452
- const a = R(0);
453
- let t = null;
454
- const g = () => {
455
- e != null && e.value && u.value && (a.value = e.value.offsetHeight);
456
- };
457
- return nt(() => {
458
- de(() => {
459
- const o = ge(
460
- e,
461
- () => {
462
- e != null && e.value && (de(() => o()), t = Wt(e.value, () => {
463
- g();
464
- }));
465
- },
466
- { immediate: !0 }
467
- );
468
- ge(
469
- u,
470
- () => {
471
- u.value ? g() : a.value = 0;
472
- },
473
- { immediate: !0 }
474
- );
475
- });
476
- }), kt(() => {
477
- t == null || t.disconnect();
478
- }), a;
479
- }, Sl = (e, u, a) => {
480
- const t = R(0), g = R(!1), o = R(!1);
481
- return ge(
482
- () => t.value,
483
- () => {
484
- e.value.scrollLeft = t.value, u.value.scrollLeft = t.value, g.value = !!t.value, o.value = u.value.scrollWidth - u.value.offsetWidth > t.value;
485
- }
486
- ), nt(async () => {
487
- var v, $;
488
- await de(), await de(), ((v = u.value) == null ? void 0 : v.offsetWidth) < (($ = u.value) == null ? void 0 : $.scrollWidth) && (o.value = !0);
489
- }), {
490
- // Values
491
- scrollLeftPosition: t,
492
- hasLeftOverflow: g,
493
- hasRightOverflow: o,
494
- // Methods
495
- updateScrollPosition: (v) => {
496
- t.value = v.target.scrollLeft, a.value = e.value.scrollHeight - v.target.scrollTop;
497
- },
498
- updateScrollPositionOnFrozenColumnsNavigation: (v) => {
499
- v.key !== "Tab" && v.key !== "ArrowRight" && v.key !== "ArrowLeft" || (v.preventDefault(), e.value.scrollLeft = 0, e.value.style.overflowX = "hidden", setTimeout(() => {
500
- e.value.style.overflowX = "auto";
501
- }));
502
- }
503
- };
504
- }, bl = (e, u, a, t) => {
505
- const g = R(null), o = A(() => {
506
- var E, L, y, M;
507
- if (!g.value || g.value.field === be)
508
- return {
509
- hoveredOverColumnField: "",
510
- isSeparatorOffset: !1,
511
- noBorderLeft: !1,
512
- noBorderRight: !1
513
- };
514
- const f = (L = (E = e.value.find((k) => k.isFrozenColumns)) == null ? void 0 : E.columnSet) == null ? void 0 : L.filter((k) => k.field !== be), p = e.value.find((k) => !(k != null && k.isFrozenColumns)), v = g.value.frozen && (f == null ? void 0 : f[0].field) === g.value.field, $ = !g.value.frozen && ((y = p == null ? void 0 : p.columnSet) == null ? void 0 : y[0].field) === g.value.field, I = (u.value || a.value) && v, c = (u.value || a.value) && !f && $, d = f && $, i = (f == null ? void 0 : f.length) > 0 && g.value.frozen && (f == null ? void 0 : f[f.length - 1].field) === g.value.field, l = a.value && t.value && !g.value.frozen && ((M = p == null ? void 0 : p.columnSet) == null ? void 0 : M[p.columnSet.length - 1].field) === g.value.field;
515
- return {
516
- hoveredOverColumnField: g.value.field,
517
- isSeparatorOffset: l,
518
- noBorderLeft: !!I || !!c || !!d,
519
- noBorderRight: !!i || !!l
520
- };
521
- });
522
- return {
523
- hoveredOverColumn: g,
524
- hoveredOverColumnState: o
525
- };
526
- };
527
- let Lt = 0;
528
- const El = {
529
- beforeCreate() {
530
- this.uuid = Lt.toString(), Lt += 1;
531
- }
532
- }, yl = { key: 0 }, Ol = ["clip-path"], Il = /* @__PURE__ */ C("path", { d: "M9.06077 4.00011L5.00011 -0.0605469L0.939453 4.00011L2.00011 5.06077L4.25 2.81089V10.75H5.75V2.81066L8.00011 5.06077L9.06077 4.00011Z" }, null, -1), $l = /* @__PURE__ */ C("path", { d: "M10.25 13.1893L8.00011 10.9395L6.93945 12.0001L11.0001 16.0608L15.0608 12.0001L14.0001 10.9395L11.75 13.1896V5.25H10.25V13.1893Z" }, null, -1), Rl = [
533
- Il,
534
- $l
535
- ], Al = ["id"], Tl = /* @__PURE__ */ C("rect", {
536
- width: "16",
537
- height: "16",
538
- fill: "#fff"
539
- }, null, -1), wl = [
540
- Tl
541
- ];
542
- function Nl(e, u, a, t, g, o) {
543
- return r(), b("svg", X({ role: "img" }, e.$attrs, {
544
- class: "ui-assets-icons-16",
545
- xmlns: "http://www.w3.org/2000/svg",
546
- width: "16",
547
- height: "16",
548
- fill: "none"
549
- }), [
550
- e.$attrs["svg-title"] ? (r(), b("title", yl, G(e.$attrs["svg-title"]), 1)) : U("", !0),
551
- C("g", {
552
- fill: "#00112C",
553
- "clip-path": "url(#uia-icons-16-arrow_up_down_sort__a" + e.uuid + ")"
554
- }, Rl, 8, Ol),
555
- C("defs", null, [
556
- C("clipPath", {
557
- id: "uia-icons-16-arrow_up_down_sort__a" + e.uuid
558
- }, wl, 8, Al)
559
- ])
560
- ], 16);
561
- }
562
- const Ml = /* @__PURE__ */ x(El, [["render", Nl]]);
563
- let St = 0;
564
- const Ul = {
565
- beforeCreate() {
566
- this.uuid = St.toString(), St += 1;
567
- }
568
- }, kl = { key: 0 }, Dl = /* @__PURE__ */ C("path", {
569
- fill: "#00112C",
570
- 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"
571
- }, null, -1);
572
- function Pl(e, u, a, t, g, o) {
573
- return r(), b("svg", X({ role: "img" }, e.$attrs, {
574
- class: "ui-assets-icons-16",
575
- xmlns: "http://www.w3.org/2000/svg",
576
- width: "16",
577
- height: "16",
578
- fill: "none"
579
- }), [
580
- e.$attrs["svg-title"] ? (r(), b("title", kl, G(e.$attrs["svg-title"]), 1)) : U("", !0),
581
- Dl
582
- ], 16);
583
- }
584
- const Fl = /* @__PURE__ */ x(Ul, [["render", Pl]]);
585
- let bt = 0;
586
- const zl = {
587
- beforeCreate() {
588
- this.uuid = bt.toString(), bt += 1;
589
- }
590
- }, Wl = { key: 0 }, Gl = ["clip-path"], Hl = /* @__PURE__ */ C("path", {
591
- fill: "#00112C",
592
- 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"
593
- }, null, -1), Vl = [
594
- Hl
595
- ], Bl = ["id"], Zl = /* @__PURE__ */ C("rect", {
596
- width: "16",
597
- height: "16",
598
- fill: "#fff",
599
- transform: "matrix(1 0 0 -1 0 16)"
600
- }, null, -1), xl = [
601
- Zl
602
- ];
603
- function jl(e, u, a, t, g, o) {
604
- return r(), b("svg", X({ role: "img" }, e.$attrs, {
605
- class: "ui-assets-icons-16",
606
- xmlns: "http://www.w3.org/2000/svg",
607
- width: "16",
608
- height: "16",
609
- fill: "none"
610
- }), [
611
- e.$attrs["svg-title"] ? (r(), b("title", Wl, G(e.$attrs["svg-title"]), 1)) : U("", !0),
612
- C("g", {
613
- "clip-path": "url(#uia-icons-16-freeze__a" + e.uuid + ")"
614
- }, Vl, 8, Gl),
615
- C("defs", null, [
616
- C("clipPath", {
617
- id: "uia-icons-16-freeze__a" + e.uuid
618
- }, xl, 8, Bl)
619
- ])
620
- ], 16);
621
- }
622
- const Zt = /* @__PURE__ */ x(zl, [["render", jl]]);
623
- let Et = 0;
624
- const ql = {
625
- beforeCreate() {
626
- this.uuid = Et.toString(), Et += 1;
627
- }
628
- }, Yl = { key: 0 }, Xl = /* @__PURE__ */ C("path", {
629
- fill: "#00112C",
630
- d: "M2.99035 14.0608L14.051 3.00011L12.9903 1.93945L1.92969 13.0001L2.99035 14.0608Z"
631
- }, null, -1), Kl = /* @__PURE__ */ C("path", {
632
- fill: "#00112C",
633
- 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"
634
- }, null, -1), Jl = /* @__PURE__ */ C("path", {
635
- fill: "#00112C",
636
- 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"
637
- }, null, -1);
638
- function Ql(e, u, a, t, g, o) {
639
- return r(), b("svg", X({ role: "img" }, e.$attrs, {
640
- class: "ui-assets-icons-16",
641
- xmlns: "http://www.w3.org/2000/svg",
642
- width: "16",
643
- height: "16",
644
- fill: "none"
645
- }), [
646
- e.$attrs["svg-title"] ? (r(), b("title", Yl, G(e.$attrs["svg-title"]), 1)) : U("", !0),
647
- Xl,
648
- Kl,
649
- Jl
650
- ], 16);
651
- }
652
- const es = /* @__PURE__ */ x(ql, [["render", Ql]]);
653
- let yt = 0;
654
- const ts = {
655
- beforeCreate() {
656
- this.uuid = yt.toString(), yt += 1;
657
- }
658
- }, ns = { key: 0 }, ls = ["clip-path"], ss = /* @__PURE__ */ C("path", { d: "M12.0001 1.93945L16.0608 6.00011L15.0001 7.06077L12.75 4.81066V12.75H11.25V4.81089L9.00011 7.06077L7.93945 6.00011L12.0001 1.93945Z" }, null, -1), os = /* @__PURE__ */ C("path", { d: "M6.75 7.25H1.25V8.75H6.75V7.25Z" }, null, -1), is = /* @__PURE__ */ C("path", { d: "M1.25 11.25H8.75V12.75H1.25V11.25Z" }, null, -1), as = /* @__PURE__ */ C("path", { d: "M6.75 3.25H1.25V4.75H6.75V3.25Z" }, null, -1), rs = [
659
- ss,
660
- os,
661
- is,
662
- as
663
- ], ds = ["id"], cs = /* @__PURE__ */ C("rect", {
664
- width: "16",
665
- height: "16",
666
- fill: "#fff"
667
- }, null, -1), us = [
668
- cs
669
- ];
670
- function gs(e, u, a, t, g, o) {
671
- return r(), b("svg", X({ role: "img" }, e.$attrs, {
672
- class: "ui-assets-icons-16",
673
- xmlns: "http://www.w3.org/2000/svg",
674
- width: "16",
675
- height: "16",
676
- fill: "none"
677
- }), [
678
- e.$attrs["svg-title"] ? (r(), b("title", ns, G(e.$attrs["svg-title"]), 1)) : U("", !0),
679
- C("g", {
680
- fill: "#00112C",
681
- "clip-path": "url(#uia-icons-16-sort_ascending__a" + e.uuid + ")"
682
- }, rs, 8, ls),
683
- C("defs", null, [
684
- C("clipPath", {
685
- id: "uia-icons-16-sort_ascending__a" + e.uuid
686
- }, us, 8, ds)
687
- ])
688
- ], 16);
689
- }
690
- const fs = /* @__PURE__ */ x(ts, [["render", gs]]);
691
- let Ot = 0;
692
- const vs = {
693
- beforeCreate() {
694
- this.uuid = Ot.toString(), Ot += 1;
695
- }
696
- }, ms = { key: 0 }, hs = ["clip-path"], _s = /* @__PURE__ */ C("path", { d: "M12.75 3.25V11.1896L15.0001 8.93945L16.0608 10.0001L12.0001 14.0608L7.93945 10.0001L9.00011 8.93945L11.25 11.1893V3.25H12.75Z" }, null, -1), Cs = /* @__PURE__ */ C("path", { d: "M6.75 7.25H1.25V8.75H6.75V7.25Z" }, null, -1), ps = /* @__PURE__ */ C("path", { d: "M1.25 3.25H9.09V4.75H1.25V3.25Z" }, null, -1), Ls = /* @__PURE__ */ C("path", { d: "M6.75 11.25H1.25V12.75H6.75V11.25Z" }, null, -1), Ss = [
697
- _s,
698
- Cs,
699
- ps,
700
- Ls
701
- ], bs = ["id"], Es = /* @__PURE__ */ C("rect", {
702
- width: "16",
703
- height: "16",
704
- fill: "#fff"
705
- }, null, -1), ys = [
706
- Es
707
- ];
708
- function Os(e, u, a, t, g, o) {
709
- return r(), b("svg", X({ role: "img" }, e.$attrs, {
710
- class: "ui-assets-icons-16",
711
- xmlns: "http://www.w3.org/2000/svg",
712
- width: "16",
713
- height: "16",
714
- fill: "none"
715
- }), [
716
- e.$attrs["svg-title"] ? (r(), b("title", ms, G(e.$attrs["svg-title"]), 1)) : U("", !0),
717
- C("g", {
718
- fill: "#00112C",
719
- "clip-path": "url(#uia-icons-16-sort_descending__a" + e.uuid + ")"
720
- }, Ss, 8, hs),
721
- C("defs", null, [
722
- C("clipPath", {
723
- id: "uia-icons-16-sort_descending__a" + e.uuid
724
- }, ys, 8, bs)
725
- ])
726
- ], 16);
727
- }
728
- const Is = /* @__PURE__ */ x(vs, [["render", Os]]);
729
- let It = 0;
730
- const $s = {
731
- beforeCreate() {
732
- this.uuid = It.toString(), It += 1;
733
- }
734
- }, Rs = { key: 0 }, As = /* @__PURE__ */ C("path", {
735
- fill: "#00112C",
736
- 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"
737
- }, null, -1), Ts = /* @__PURE__ */ C("path", {
738
- fill: "#00112C",
739
- 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"
740
- }, null, -1);
741
- function ws(e, u, a, t, g, o) {
742
- return r(), b("svg", X({ role: "img" }, e.$attrs, {
743
- class: "ui-assets-icons-16",
744
- xmlns: "http://www.w3.org/2000/svg",
745
- width: "16",
746
- height: "16",
747
- fill: "none"
748
- }), [
749
- e.$attrs["svg-title"] ? (r(), b("title", Rs, G(e.$attrs["svg-title"]), 1)) : U("", !0),
750
- As,
751
- Ts
752
- ], 16);
753
- }
754
- const Ns = /* @__PURE__ */ x($s, [["render", ws]]);
755
- let $t = 0;
756
- const Ms = {
757
- beforeCreate() {
758
- this.uuid = $t.toString(), $t += 1;
759
- }
760
- }, Us = { key: 0 }, ks = /* @__PURE__ */ C("path", {
761
- fill: "#00112C",
762
- d: "M8 11.25L12.5 5.25H3.5L8 11.25Z"
763
- }, null, -1);
764
- function Ds(e, u, a, t, g, o) {
765
- return r(), b("svg", X({ role: "img" }, e.$attrs, {
766
- class: "ui-assets-icons-16",
767
- xmlns: "http://www.w3.org/2000/svg",
768
- width: "16",
769
- height: "16",
770
- fill: "none"
771
- }), [
772
- e.$attrs["svg-title"] ? (r(), b("title", Us, G(e.$attrs["svg-title"]), 1)) : U("", !0),
773
- ks
774
- ], 16);
775
- }
776
- const Ps = /* @__PURE__ */ x(Ms, [["render", Ds]]), xt = {
777
- "en-US": {
778
- sortColumn: "Sort {name} column",
779
- sortColumnInAscendingOrder: "Sort {name} column in ascending order",
780
- sortColumnInDescendingOrder: "Sort {name} column in descending order",
781
- freezeColumn: "Freeze column",
782
- hideColumn: "Hide column",
783
- moveColumnLeft: "Move column left",
784
- moveColumnRight: "Move column right",
785
- selectAll: "Select all",
786
- selectPage: "Select this page",
787
- selectionMenu: "Selection menu",
788
- showColumn: "Show column",
789
- unfreezeColumn: "Unfreeze column",
790
- columnActions: "{name} column actions"
791
- }
792
- }, Fs = ["aria-colindex", "aria-label", "aria-sort", "data-testid", "draggable", "tabindex"], zs = ["aria-label"], Ws = { class: "b-data-grid-columns__label" }, Gs = {
793
- key: 0,
794
- class: "b-data-grid-columns__column-info-icon"
795
- }, Hs = {
796
- key: 1,
797
- class: "b-data-grid-columns__column-sort"
798
- }, Vs = ["data-testid", "onMousedown"], Bs = {
799
- key: 0,
800
- class: "b-data-grid-columns__column-separator"
801
- }, Zs = {
802
- key: 1,
803
- class: "b-data-grid-columns__select-column"
804
- }, xs = {
805
- i18n: { messages: xt },
806
- name: "data-grid-columns"
807
- }, js = /* @__PURE__ */ Le({
808
- ...xs,
809
- props: {
810
- /**
811
- * Column definitions using 'key' to relate to data object.
812
- */
813
- columns: {
814
- type: Array,
815
- required: !0
816
- },
817
- /**
818
- * Columns being dragged, contains dragging column and a target column
819
- */
820
- draggingColumns: {
821
- type: Object,
822
- default: void 0
823
- },
824
- /**
825
- * Toggle the columns draggable events.
826
- */
827
- hasDraggableColumns: {
828
- type: Boolean,
829
- default: !0
830
- },
831
- /**
832
- * If resize is enabled
833
- */
834
- hasResizableColumns: {
835
- type: Boolean,
836
- default: !0
837
- },
838
- /**
839
- * Signifies if the column panel is enabled.
840
- */
841
- hasColumnPanel: {
842
- type: Boolean,
843
- default: !1
844
- },
845
- /**
846
- * If set to true, aligns the first column panel to the right of its button.
847
- */
848
- hasFirstColumnPanelRightAligned: {
849
- type: Boolean,
850
- default: !1
851
- },
852
- /**
853
- * If the data grid has overflow on the left side
854
- */
855
- hasLeftOverflow: {
856
- type: Boolean,
857
- default: !1
858
- },
859
- /**
860
- * The column hovered over state and whether the hovered over column should show a border right or left.
861
- */
862
- hoveredOverColumnState: {
863
- type: Object,
864
- required: !0
865
- },
866
- /**
867
- * Toggled to true when the DataGrid has auto width columns and is measuring the
868
- */
869
- isMeasuringColumnWidths: {
870
- type: Boolean,
871
- default: !1
872
- },
873
- /**
874
- * Used to disable hiding the last visible column.
875
- */
876
- isOnlyOneVisibleColumn: {
877
- type: Boolean,
878
- default: !1
879
- },
880
- /**
881
- * If these columns are frozen (pinned) columns
882
- */
883
- isFrozenColumns: {
884
- type: Boolean,
885
- default: !1
886
- },
887
- /**
888
- * Show frozen columns separator
889
- */
890
- showFrozenColumnsSeparator: {
891
- type: Boolean,
892
- default: !1
893
- },
894
- /**
895
- * The column all items selected state
896
- */
897
- allItemsSelectedState: {
898
- type: Object,
899
- default: void 0
900
- },
901
- /**
902
- * Adds an extra option when selecting all, to select items in other pages too
903
- */
904
- selectableAcrossPages: {
905
- type: Boolean,
906
- default: !1
907
- },
908
- /**
909
- * Sortby handles proper rendering of sort icon in header. Sorting currently is only supported server side.
910
- * It does make sure the currently sorted column has a more visible sort icon, and the sort icon points in the right direction.
911
- */
912
- sortBy: {
913
- type: Array,
914
- // NOTE: is an array to allow multi-sorting in the future
915
- default: () => []
916
- },
917
- /**
918
- * Truncates all data grid column headers
919
- */
920
- truncateColumnHeaders: {
921
- type: Boolean,
922
- default: !1
923
- }
924
- },
925
- emits: ["column-hover"],
926
- setup(e, { expose: u, emit: a }) {
927
- const t = e, g = 100, { t: o } = Ee({ messages: xt }), { columns: f, sortBy: p } = tt(t), v = R({}), $ = R({}), I = R(), c = R(), d = (s) => a(Z.SELECT_ALL_ROWS, s), i = (s) => s.field === be, l = A(() => [
928
- {
929
- text: o("selectPage"),
930
- handler: () => d(!0)
931
- },
932
- {
933
- text: o("selectAll"),
934
- handler: () => a(Z.SELECT_ALL_ACROSS_PAGES)
935
- }
936
- ]), { startResize: E, isResizing: L, columnHoverEventToEmitAfterResizing: y } = il(f, a), { isSorting: M, getSortingDirection: k, sortByColumnField: j } = ml(p, f, a), _ = (s) => {
937
- var oe;
938
- if (!s.sortable)
939
- return null;
940
- const D = (oe = t.sortBy.find(({ field: K }) => K === s.field)) == null ? void 0 : oe.direction;
941
- return D ? {
942
- [pe.ASCENDING]: Ve.ASCENDING,
943
- [pe.DESCENDING]: Ve.DESCENDING
944
- }[D] : Ve.NONE;
945
- }, h = A(() => (s) => t.hasDraggableColumns ? {
946
- dragstart: (D) => {
947
- a(Z.COLUMN_DRAG_START, s, D);
948
- },
949
- dragover: (D) => {
950
- D.preventDefault();
951
- },
952
- dragenter: (D) => {
953
- D.preventDefault(), a(Z.COLUMN_DRAG_ENTER, s, D);
954
- },
955
- drop: () => {
956
- a(Z.COLUMN_DROP, s);
957
- },
958
- dragend: () => {
959
- a(Z.COLUMN_DRAG_END);
960
- }
961
- } : {}), m = A(() => (s) => [
962
- {
963
- text: o("moveColumnLeft"),
964
- handler: () => a(Z.COLUMN_MOVE, s, -1),
965
- icon: sl,
966
- disabled: t.columns[0].field === s.field
967
- },
968
- {
969
- text: o("moveColumnRight"),
970
- handler: () => a(Z.COLUMN_MOVE, s, 1),
971
- icon: Fl,
972
- disabled: t.columns[t.columns.length - 1].field === s.field
973
- },
974
- {
975
- text: s != null && s.frozen ? o("unfreezeColumn") : o("freezeColumn"),
976
- handler: () => a(Z.COLUMN_UPDATE, { ...s, frozen: !(s != null && s.frozen) }),
977
- icon: Zt
978
- },
979
- {
980
- text: (s == null ? void 0 : s.visible) !== !1 ? o("hideColumn") : o("showColumn"),
981
- handler: () => {
982
- a(Z.COLUMN_UPDATE, {
983
- ...s,
984
- visible: (s == null ? void 0 : s.visible) === !1
985
- });
986
- },
987
- icon: (s == null ? void 0 : s.visible) !== !1 ? es : Ns,
988
- disabled: (s == null ? void 0 : s.mandatory) || (s == null ? void 0 : s.visible) !== !1 && t.isOnlyOneVisibleColumn
989
- }
990
- ]), O = (s) => {
991
- I.value = s.field, c.value && clearTimeout(c.value);
992
- }, H = () => {
993
- const s = setTimeout(() => {
994
- I.value = "";
995
- }, g);
996
- c.value = s;
997
- }, q = (s) => {
998
- let D = {
999
- mouseenter: () => {
1000
- O(s), L.value ? y.value = s : a("column-hover", s);
1001
- },
1002
- mouseleave: () => {
1003
- H(), L.value ? y.value = null : a("column-hover", null);
1004
- },
1005
- focus: () => O(s)
1006
- };
1007
- return i(s) || (D = {
1008
- ...D,
1009
- ...h.value(s)
1010
- }), D;
1011
- }, Y = (s) => s.infoIconTooltip || s.sortable || t.hasColumnPanel, ee = (s, D) => {
1012
- var T;
1013
- ((T = v.value) == null ? void 0 : T[D]) === void 0 && (v.value = { ...v.value, [D]: null }), s !== null && (v.value[D] = s);
1014
- }, se = A(() => {
1015
- var D;
1016
- const s = {
1017
- "b-data-grid-columns--is-measuring": t.isMeasuringColumnWidths
1018
- };
1019
- return (D = f.value[0]) != null && D.frozen ? {
1020
- ...s,
1021
- "b-data-grid-columns--frozen": !0,
1022
- "b-data-grid-columns--frozen-separator": t.showFrozenColumnsSeparator,
1023
- "b-data-grid-columns--overflow-shadow-left": t.hasLeftOverflow
1024
- } : {
1025
- ...s,
1026
- "b-data-grid-columns--unfrozen": !0
1027
- };
1028
- }), te = (s, D) => s && D === 0 ? ft.BOTTOM_START : ft.BOTTOM_END, B = (s, D) => {
1029
- var T, oe, K, Ae, me, Te, we, Ne, Me, Oe;
1030
- return {
1031
- "b-data-grid-columns__column--column-hovered": s.field === t.hoveredOverColumnState.hoveredOverColumnField,
1032
- "b-data-grid-columns__column--column-hovered-no-border-left": s.field === t.hoveredOverColumnState.hoveredOverColumnField && t.hoveredOverColumnState.noBorderLeft,
1033
- "b-data-grid-columns__column--column-hovered-no-border-right": s.field === t.hoveredOverColumnState.hoveredOverColumnField && t.hoveredOverColumnState.noBorderRight,
1034
- "b-data-grid-columns__column--last-frozen-frozen-column": t.isFrozenColumns && D === f.value.length - 1,
1035
- "b-data-grid-columns__column--sortable": s.sortable,
1036
- "b-data-grid-columns__column--padding-left-unset": ((T = s == null ? void 0 : s.padding) == null ? void 0 : T.left) === !1,
1037
- "b-data-grid-columns__column--padding-right-unset": ((oe = s == null ? void 0 : s.padding) == null ? void 0 : oe.right) === !1,
1038
- "b-data-grid-columns__column--numeric": s == null ? void 0 : s.numeric,
1039
- "b-data-grid-columns__column--frozen": s == null ? void 0 : s.frozen,
1040
- "b-data-grid-columns__column--is-re-ordering": (s == null ? void 0 : s.field) === ((Ae = (K = t.draggingColumns) == null ? void 0 : K.dragging) == null ? void 0 : Ae.field),
1041
- "b-data-grid-columns__column--is-re-ordering-target-left": (s == null ? void 0 : s.field) === ((Te = (me = t.draggingColumns) == null ? void 0 : me.target) == null ? void 0 : Te.field) && ((we = t.draggingColumns) == null ? void 0 : we.dragToLeft),
1042
- "b-data-grid-columns__column--is-re-ordering-target-right": (s == null ? void 0 : s.field) === ((Me = (Ne = t.draggingColumns) == null ? void 0 : Ne.target) == null ? void 0 : Me.field) && !((Oe = t.draggingColumns) != null && Oe.dragToLeft),
1043
- "b-data-grid-columns__column--with-sorting-or-column-panel": s.sortable || s.infoIconTooltip || t.hasColumnPanel && I.value === s.field || t.selectableAcrossPages
1044
- };
1045
- }, F = (s) => ({
1046
- "b-data-grid-columns__column-header-and-actions--numeric": s == null ? void 0 : s.numeric
1047
- }), fe = (s) => ({
1048
- "b-data-grid-columns__column-actions--numeric": s == null ? void 0 : s.numeric
1049
- }), qe = (s) => ({
1050
- "b-data-grid-columns__column-separator-container--is-resizeable": t.hasResizableColumns,
1051
- "b-data-grid-columns__column-separator-container--is-offset": t.hoveredOverColumnState.hoveredOverColumnField === s.field && t.hoveredOverColumnState.isSeparatorOffset
1052
- }), Re = A(() => ({
1053
- "b-data-grid-columns__column-header--truncated": t.truncateColumnHeaders
1054
- }));
1055
- return u({
1056
- columnHeaderRefs: v
1057
- }), (s, D) => (r(), b("div", {
1058
- class: re(["b-data-grid-columns", n(se)]),
1059
- "data-testid": "data-grid-columns"
1060
- }, [
1061
- (r(!0), b(ue, null, ve(n(f), (T, oe) => (r(), b("div", X({
1062
- key: T.field,
1063
- ref_for: !0,
1064
- ref: (K) => ee(K, T.field),
1065
- "aria-colindex": oe + 1,
1066
- "aria-label": T.label,
1067
- "aria-sort": _(T),
1068
- class: [B(T, oe), "b-data-grid-columns__column"],
1069
- "data-testid": `${T.field}-column-header`,
1070
- draggable: e.hasDraggableColumns && !n(L) && !i(T),
1071
- role: "columnheader",
1072
- tabindex: T.sortable || e.hasColumnPanel || T.infoIconTooltip ? "0" : "-1",
1073
- style: { width: T.autoWidth && e.isMeasuringColumnWidths ? "auto" : `${T.width}px` }
1074
- }, Ze(q(T), !0)), [
1075
- i(T) ? (r(), b("div", Zs, [
1076
- V(n(Bt), {
1077
- "model-value": e.allItemsSelectedState.allItemsSelected,
1078
- "data-testid": "checkbox-select-all",
1079
- indeterminate: e.allItemsSelectedState.isIndeterminate,
1080
- value: "data-grid-select-all",
1081
- "onUpdate:modelValue": d
1082
- }, null, 8, ["model-value", "indeterminate"]),
1083
- e.selectableAcrossPages ? (r(), P(n(Je), {
1084
- key: 0,
1085
- class: "b-data-grid-columns__select-column-menu",
1086
- data: n(l),
1087
- "menu-position": "bottom-start",
1088
- "menu-fixed-positioning": "",
1089
- button: { variant: "tertiary", condensed: !0 }
1090
- }, {
1091
- iconLeft: W(() => [
1092
- V(n(Ps), {
1093
- "svg-title": n(o)("selectionMenu")
1094
- }, null, 8, ["svg-title"])
1095
- ]),
1096
- _: 1
1097
- }, 8, ["data"])) : U("", !0)
1098
- ])) : (r(), b(ue, { key: 0 }, [
1099
- C("div", {
1100
- "aria-label": n(o)("columnActions", { name: T.label }),
1101
- "aria-live": "polite",
1102
- role: "region",
1103
- class: re(["b-data-grid-columns__column-header-and-actions", F(T)])
1104
- }, [
1105
- V(n(xe), {
1106
- el: "div",
1107
- strongest: "",
1108
- class: re(["b-data-grid-columns__column-header", n(Re)])
1109
- }, {
1110
- default: W(() => [
1111
- ye(s.$slots, `head-${T.field}`, { column: T }, () => [
1112
- C("span", Ws, G(T.label), 1)
1113
- ], !0)
1114
- ]),
1115
- _: 2
1116
- }, 1032, ["class"]),
1117
- Y(T) ? (r(), b("div", {
1118
- key: 0,
1119
- class: re(["b-data-grid-columns__column-actions", fe(T)])
1120
- }, [
1121
- T.infoIconTooltip ? (r(), b("div", Gs, [
1122
- V(n(tl), {
1123
- "tooltip-text": T.infoIconTooltip
1124
- }, null, 8, ["tooltip-text"])
1125
- ])) : U("", !0),
1126
- T.sortable ? (r(), b("div", Hs, [
1127
- V(n(Vt), {
1128
- condensed: "",
1129
- toggled: n(M)(T.field),
1130
- variant: "tertiary",
1131
- onClick: (K) => n(j)(T.field)
1132
- }, {
1133
- iconLeft: W(() => [
1134
- n(k)(T.field) ? n(k)(T.field) === n(pe).ASCENDING ? (r(), P(n(fs), {
1135
- key: 1,
1136
- "svg-title": n(o)("sortColumnInDescendingOrder", { name: T.label })
1137
- }, null, 8, ["svg-title"])) : n(k)(T.field) === n(pe).DESCENDING ? (r(), P(n(Is), {
1138
- key: 2,
1139
- "svg-title": n(o)("sortColumnInAscendingOrder", { name: T.label })
1140
- }, null, 8, ["svg-title"])) : U("", !0) : (r(), P(n(Ml), {
1141
- key: 0,
1142
- "svg-title": n(o)("sortColumn", { name: T.label })
1143
- }, null, 8, ["svg-title"]))
1144
- ]),
1145
- _: 2
1146
- }, 1032, ["toggled", "onClick"])
1147
- ])) : U("", !0),
1148
- e.hasColumnPanel && I.value === T.field ? (r(), P(n(Je), {
1149
- key: 2,
1150
- ref_for: !0,
1151
- ref: (K) => $.value[T.field] = K,
1152
- class: "b-data-grid-columns__menu",
1153
- data: n(m)(T),
1154
- "menu-position": te(e.hasFirstColumnPanelRightAligned, oe),
1155
- "menu-fixed-positioning": !0,
1156
- button: { variant: "tertiary", condensed: !0 },
1157
- onOpen: D[0] || (D[0] = (K) => s.$emit(n(Z).COLUMN_MENU_OPEN)),
1158
- onClose: D[1] || (D[1] = (K) => s.$emit(n(Z).COLUMN_MENU_CLOSE))
1159
- }, null, 8, ["data", "menu-position"])) : U("", !0)
1160
- ], 2)) : U("", !0)
1161
- ], 10, zs),
1162
- C("div", {
1163
- "data-testid": `data-grid-column-${T.field}`,
1164
- class: re(["b-data-grid-columns__column-separator-container", qe(T)]),
1165
- role: "presentation",
1166
- onMousedown: (K) => n(E)(e.hasResizableColumns, T.field, K),
1167
- onClick: D[2] || (D[2] = Tn(() => {
1168
- }, ["stop"]))
1169
- }, [
1170
- !e.isFrozenColumns || e.isFrozenColumns && oe !== n(f).length - 1 ? (r(), b("div", Bs)) : U("", !0)
1171
- ], 42, Vs)
1172
- ], 64))
1173
- ], 16, Fs))), 128))
1174
- ], 2));
1175
- }
1176
- }), qs = /* @__PURE__ */ x(js, [["__scopeId", "data-v-85b904ac"]]);
1177
- var Ce = /* @__PURE__ */ ((e) => (e.CONFIG_SETTINGS = "config-settings", e.UPDATE_COLUMNS = "update:columns", e))(Ce || {});
1178
- let Rt = 0;
1179
- const Ys = {
1180
- beforeCreate() {
1181
- this.uuid = Rt.toString(), Rt += 1;
1182
- }
1183
- }, Xs = { key: 0 }, Ks = ["clip-path"], Js = /* @__PURE__ */ C("path", { 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" }, null, -1), Qs = /* @__PURE__ */ C("path", { 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" }, null, -1), eo = [
1184
- Js,
1185
- Qs
1186
- ], to = ["id"], no = /* @__PURE__ */ C("rect", {
1187
- width: "16",
1188
- height: "16",
1189
- fill: "#fff"
1190
- }, null, -1), lo = [
1191
- no
1192
- ];
1193
- function so(e, u, a, t, g, o) {
1194
- return r(), b("svg", X({ role: "img" }, e.$attrs, {
1195
- class: "ui-assets-icons-16",
1196
- xmlns: "http://www.w3.org/2000/svg",
1197
- width: "16",
1198
- height: "16",
1199
- fill: "none"
1200
- }), [
1201
- e.$attrs["svg-title"] ? (r(), b("title", Xs, G(e.$attrs["svg-title"]), 1)) : U("", !0),
1202
- C("g", {
1203
- fill: "#00112C",
1204
- "clip-path": "url(#uia-icons-16-settings__a" + e.uuid + ")"
1205
- }, eo, 8, Ks),
1206
- C("defs", null, [
1207
- C("clipPath", {
1208
- id: "uia-icons-16-settings__a" + e.uuid
1209
- }, lo, 8, to)
1210
- ])
1211
- ], 16);
1212
- }
1213
- const oo = /* @__PURE__ */ x(Ys, [["render", so]]), At = {
1214
- "en-US": {
1215
- toggleColumnVisibility: "Toggle {label} column visibility",
1216
- toggleColumnFreeze: "Toggle {label} column freeze"
1217
- }
1218
- }, io = Le({
1219
- i18n: { messages: At },
1220
- name: "bento-data-grid",
1221
- components: {
1222
- BentoFreezeIcon: Zt,
1223
- BentoToggle: Ht
1224
- },
1225
- props: {
1226
- /**
1227
- * Is column visibitlity toggle disabled
1228
- */
1229
- isColumnVisibilityToggleDisabled: {
1230
- type: Boolean,
1231
- required: !0
1232
- },
1233
- /**
1234
- * Column definition
1235
- */
1236
- column: {
1237
- type: Object,
1238
- required: !0
1239
- }
1240
- },
1241
- emits: ["visible-column", "updated-column"],
1242
- setup(e, { emit: u }) {
1243
- const { t: a } = Ee({ messages: At }), t = R(!1), g = A(() => {
1244
- var c;
1245
- return (c = e.column) == null ? void 0 : c.frozen;
1246
- }), o = A(() => {
1247
- var c;
1248
- return ((c = e.column) == null ? void 0 : c.visible) !== !1;
1249
- }), f = () => {
1250
- u("visible-column", { ...e.column, visible: !o.value });
1251
- }, p = () => {
1252
- u("updated-column", { ...e.column, frozen: !g.value });
1253
- }, v = () => {
1254
- g.value || (t.value = !0);
1255
- }, $ = () => {
1256
- g.value || (t.value = !1);
1257
- }, I = A(() => ({
1258
- "b-data-grid-config-settings-column-row__freeze-icon--frozen": g.value
1259
- }));
1260
- return {
1261
- // Values
1262
- isFreezeIconOptionShown: t,
1263
- isColumnFrozen: g,
1264
- freezeIconConditionalClasses: I,
1265
- isColumnVisible: o,
1266
- // Methods
1267
- toggleColumnVisibility: f,
1268
- showFreezeIcon: v,
1269
- hideFreezeIcon: $,
1270
- toggleColumnFreeze: p,
1271
- // Translations
1272
- t: a
1273
- };
1274
- }
1275
- });
1276
- function ao(e, u, a, t, g, o) {
1277
- const f = ae("bento-toggle"), p = ae("bento-freeze-icon");
1278
- return r(), b("div", {
1279
- class: "b-data-grid-config-settings-column-row",
1280
- onMouseover: u[0] || (u[0] = (...v) => e.showFreezeIcon && e.showFreezeIcon(...v)),
1281
- onMouseleave: u[1] || (u[1] = (...v) => e.hideFreezeIcon && e.hideFreezeIcon(...v))
1282
- }, [
1283
- V(f, {
1284
- "aria-label": e.t("toggleColumnVisibility", { label: e.column.label }),
1285
- disabled: e.isColumnVisibilityToggleDisabled,
1286
- "label-position": "after",
1287
- value: e.isColumnVisible,
1288
- onInput: e.toggleColumnVisibility
1289
- }, {
1290
- default: W(() => [
1291
- Q(G(e.column.label), 1)
1292
- ]),
1293
- _: 1
1294
- }, 8, ["aria-label", "disabled", "value", "onInput"]),
1295
- lt(V(p, {
1296
- "aria-label": e.t("toggleColumnFreeze", { label: e.column.label }),
1297
- class: re(["b-data-grid-config-settings-column-row__freeze-icon", e.freezeIconConditionalClasses]),
1298
- onClick: e.toggleColumnFreeze
1299
- }, null, 8, ["aria-label", "class", "onClick"]), [
1300
- [wn, e.isColumnFrozen || e.isFreezeIconOptionShown]
1301
- ])
1302
- ], 32);
1303
- }
1304
- const ro = /* @__PURE__ */ x(io, [["render", ao], ["__scopeId", "data-v-bb87a729"]]), Tt = {
1305
- "en-US": {
1306
- closeConfigSettingsPanel: "Close configuration settings panel",
1307
- configSettingsPanel: "Configuration settings Panel",
1308
- displayOptions: "Display options",
1309
- condensed: "Condensed",
1310
- condensedToggle: "Condensed toggle",
1311
- size: "Size",
1312
- toggleConfigSettingsPanelVisibility: "Toggle Configuration settings panel visibility",
1313
- columns: "Columns",
1314
- showAllColumns: "Show all columns ({numberOfColumns})",
1315
- columnVisibilitySearchFilter: "Column visibility search filter",
1316
- search: "Search",
1317
- closeSearch: "Close search",
1318
- noColumnsMatch: "No columns match this search"
1319
- }
1320
- }, co = Le({
1321
- i18n: { messages: Tt },
1322
- name: "bento-data-grid",
1323
- components: {
1324
- BentoButton: Gt,
1325
- BentoCrossIcon: Pt,
1326
- BentoPopover: Yn,
1327
- BentoSettingsIcon: oo,
1328
- BentoToggleButton: Vt,
1329
- BentoDataGridConfigSettingsConfigRow: ro,
1330
- BentoSearchBar: Xn,
1331
- BentoSearchIcon: el,
1332
- BentoToggle: Ht,
1333
- BentoTypography: xe
1334
- },
1335
- directives: { BentoClickOutsideDirective: Jn },
1336
- props: {
1337
- /**
1338
- * Column definitions
1339
- */
1340
- columns: {
1341
- type: Array,
1342
- required: !0
1343
- },
1344
- /**
1345
- * Sets the row cells to the condensed padding state.
1346
- */
1347
- condensed: {
1348
- type: Boolean,
1349
- default: !1
1350
- }
1351
- },
1352
- emits: [Ce.CONFIG_SETTINGS, Ce.UPDATE_COLUMNS],
1353
- setup(e, { emit: u }) {
1354
- const { t: a } = Ee({ messages: Tt }), t = R(null), g = Qn("data-grid-config-settings-popover"), o = R(null), f = R(!1), p = R(!0), v = R(null), $ = R(""), I = Dt(e, "columns"), c = R(!1), d = Kn($, I), i = () => {
1355
- $.value = "";
1356
- }, l = A(
1357
- () => !e.columns.some((m) => m.visible === !1 && !m.mandatory)
1358
- ), E = () => {
1359
- i(), c.value = !c.value, c.value ? de(() => {
1360
- var m;
1361
- return (m = o.value.$refs.bentoInputField) == null ? void 0 : m.focusInput();
1362
- }) : de(() => {
1363
- var m, O;
1364
- return (O = (m = v == null ? void 0 : v.value) == null ? void 0 : m.$el) == null ? void 0 : O.focus();
1365
- }), p.value = l.value;
1366
- }, L = (m) => m.mandatory ?? !1, y = (m) => {
1367
- const O = e.columns.map((H) => ({
1368
- ...H,
1369
- visible: m.field === H.field ? m.visible : H.visible
1370
- }));
1371
- u(Ce.UPDATE_COLUMNS, O);
1372
- }, M = (m) => {
1373
- m ? u(
1374
- Ce.UPDATE_COLUMNS,
1375
- e.columns.map((O) => ({ ...O, visible: !0 }))
1376
- ) : u(
1377
- Ce.UPDATE_COLUMNS,
1378
- e.columns.map((O) => ({ ...O, visible: (O == null ? void 0 : O.mandatory) === !0 }))
1379
- );
1380
- }, k = (m) => {
1381
- const O = e.columns.map((H) => ({
1382
- ...H,
1383
- frozen: m.field === H.field ? !!(m != null && m.frozen) : !!(H != null && H.frozen)
1384
- }));
1385
- u(Ce.UPDATE_COLUMNS, O);
1386
- }, j = (m) => {
1387
- f.value = m, p.value = l.value;
1388
- };
1389
- return {
1390
- // Values
1391
- configSettingsButtonRef: t,
1392
- popoverId: g,
1393
- isConfigSettingsPanelOpen: f,
1394
- allColumnsVisbilityToggleState: p,
1395
- filteredColumnVisibilityColumns: d,
1396
- searchTerm: $,
1397
- isColumnVisibilityFilterShown: c,
1398
- searchBarRef: o,
1399
- searchButtonRef: v,
1400
- DATAGRID_SELECT_FIELD_NAME: be,
1401
- // Methods
1402
- setConfigSettingsPanelVisibility: j,
1403
- emitCondensedToggle: (m) => u(Ce.CONFIG_SETTINGS, m),
1404
- toggleAllColumnVisibility: M,
1405
- clearAction: i,
1406
- toggleColumnFilter: E,
1407
- emitVisibleColumns: y,
1408
- emitFrozenColumns: k,
1409
- onClickOutside: () => j(!1),
1410
- isColumnVisibilityToggleDisabled: L,
1411
- // Translations
1412
- t: a
1413
- };
1414
- }
1415
- }), uo = { class: "b-data-grid-config-settings" }, go = { class: "b-data-grid-config-settings__button-and-separator" }, fo = {
1416
- ref: "configSettingsButtonRef",
1417
- class: "b-data-grid-config-settings__button-container"
1418
- }, vo = { class: "b-data-grid-config-settings__panel-header" }, mo = { class: "b-data-grid-config-settings__condensed-view-settings" }, ho = { class: "b-data-grid-config-settings__column-visibility-settings" }, _o = { class: "b-data-grid-config-settings__column-visibility-header" }, Co = {
1419
- key: 0,
1420
- class: "b-data-grid-config-settings__column-visibility-search"
1421
- }, po = {
1422
- key: 1,
1423
- class: "b-data-grid-config-settings__column-visibility-show-all"
1424
- }, Lo = { class: "b-data-grid-config-settings__column-visibility-toggles" };
1425
- function So(e, u, a, t, g, o) {
1426
- const f = ae("bento-settings-icon"), p = ae("bento-toggle-button"), v = ae("bento-typography"), $ = ae("bento-cross-icon"), I = ae("bento-button"), c = ae("bento-toggle"), d = ae("bento-search-icon"), i = ae("bento-search-bar"), l = ae("bento-data-grid-config-settings-config-row"), E = ae("bento-popover"), L = Nn("bento-click-outside-directive");
1427
- return lt((r(), b("div", uo, [
1428
- C("div", go, [
1429
- C("div", fo, [
1430
- V(p, {
1431
- "aria-controls": e.isConfigSettingsPanelOpen ? e.popoverId : null,
1432
- variant: "tertiary",
1433
- condensed: "",
1434
- toggled: e.isConfigSettingsPanelOpen,
1435
- onClick: u[0] || (u[0] = (y) => e.setConfigSettingsPanelVisibility(!e.isConfigSettingsPanelOpen))
1436
- }, {
1437
- iconLeft: W(() => [
1438
- V(f, {
1439
- "svg-title": e.t("toggleConfigSettingsPanelVisibility")
1440
- }, null, 8, ["svg-title"])
1441
- ]),
1442
- _: 1
1443
- }, 8, ["aria-controls", "toggled"])
1444
- ], 512)
1445
- ]),
1446
- e.configSettingsButtonRef ? (r(), P(E, {
1447
- key: 0,
1448
- id: e.popoverId,
1449
- open: e.isConfigSettingsPanelOpen,
1450
- class: "b-data-grid-config-settings__panel",
1451
- "aria-label": e.t("configSettingsPanel"),
1452
- "target-element": e.configSettingsButtonRef,
1453
- position: "bottom-end"
1454
- }, {
1455
- default: W(() => [
1456
- C("div", vo, [
1457
- V(v, {
1458
- el: "span",
1459
- strongest: ""
1460
- }, {
1461
- default: W(() => [
1462
- Q(G(e.t("displayOptions")), 1)
1463
- ]),
1464
- _: 1
1465
- }),
1466
- V(I, {
1467
- variant: "tertiary",
1468
- onClick: u[1] || (u[1] = (y) => e.setConfigSettingsPanelVisibility(!1))
1469
- }, {
1470
- iconLeft: W(() => [
1471
- V($, {
1472
- "svg-title": e.t("closeConfigSettingsPanel")
1473
- }, null, 8, ["svg-title"])
1474
- ]),
1475
- _: 1
1476
- })
1477
- ]),
1478
- C("div", mo, [
1479
- V(v, {
1480
- class: "b-data-grid-config-settings__condensed-view-title",
1481
- el: "span",
1482
- stronger: ""
1483
- }, {
1484
- default: W(() => [
1485
- Q(G(e.t("size")), 1)
1486
- ]),
1487
- _: 1
1488
- }),
1489
- V(c, {
1490
- "label-position": "after",
1491
- "aria-label": e.t("condensedToggle"),
1492
- value: e.condensed,
1493
- onInput: e.emitCondensedToggle
1494
- }, {
1495
- default: W(() => [
1496
- Q(G(e.t("condensed")), 1)
1497
- ]),
1498
- _: 1
1499
- }, 8, ["aria-label", "value", "onInput"])
1500
- ]),
1501
- C("div", ho, [
1502
- C("div", _o, [
1503
- V(v, {
1504
- class: "b-data-grid-config-settings__column-visibility-title",
1505
- el: "span",
1506
- stronger: ""
1507
- }, {
1508
- default: W(() => [
1509
- Q(G(e.t("columns")), 1)
1510
- ]),
1511
- _: 1
1512
- }),
1513
- e.isColumnVisibilityFilterShown ? (r(), P(I, {
1514
- key: 1,
1515
- variant: "tertiary",
1516
- onClick: e.toggleColumnFilter
1517
- }, {
1518
- iconLeft: W(() => [
1519
- V($)
1520
- ]),
1521
- default: W(() => [
1522
- Q(" " + G(e.t("closeSearch")), 1)
1523
- ]),
1524
- _: 1
1525
- }, 8, ["onClick"])) : (r(), P(I, {
1526
- key: 0,
1527
- ref: "searchButtonRef",
1528
- variant: "tertiary",
1529
- onClick: e.toggleColumnFilter
1530
- }, {
1531
- iconLeft: W(() => [
1532
- V(d)
1533
- ]),
1534
- default: W(() => [
1535
- Q(G(e.t("search")), 1)
1536
- ]),
1537
- _: 1
1538
- }, 8, ["onClick"]))
1539
- ]),
1540
- e.isColumnVisibilityFilterShown ? (r(), b("div", Co, [
1541
- V(i, {
1542
- ref: "searchBarRef",
1543
- value: e.searchTerm,
1544
- "input-field-aria-label": e.t("columnVisibilitySearchFilter").toString(),
1545
- onInput: u[2] || (u[2] = (y) => e.searchTerm = y),
1546
- onClear: e.clearAction,
1547
- onEscapePressed: e.toggleColumnFilter
1548
- }, null, 8, ["value", "input-field-aria-label", "onClear", "onEscapePressed"])
1549
- ])) : (r(), b("div", po, [
1550
- V(c, {
1551
- "label-position": "after",
1552
- value: e.allColumnsVisbilityToggleState,
1553
- onInput: e.toggleAllColumnVisibility
1554
- }, {
1555
- default: W(() => [
1556
- Q(G(e.t("showAllColumns", { numberOfColumns: e.columns.length })), 1)
1557
- ]),
1558
- _: 1
1559
- }, 8, ["value", "onInput"])
1560
- ])),
1561
- C("div", Lo, [
1562
- (r(!0), b(ue, null, ve(e.filteredColumnVisibilityColumns, (y) => (r(), b("div", {
1563
- key: y.field
1564
- }, [
1565
- y.field !== e.DATAGRID_SELECT_FIELD_NAME ? (r(), P(l, {
1566
- key: 0,
1567
- column: y,
1568
- "is-column-visibility-toggle-disabled": e.isColumnVisibilityToggleDisabled(y),
1569
- onVisibleColumn: e.emitVisibleColumns,
1570
- onUpdatedColumn: e.emitFrozenColumns
1571
- }, null, 8, ["column", "is-column-visibility-toggle-disabled", "onVisibleColumn", "onUpdatedColumn"])) : U("", !0)
1572
- ]))), 128)),
1573
- e.filteredColumnVisibilityColumns.length === 0 ? (r(), P(v, {
1574
- key: 0,
1575
- el: "span",
1576
- class: "b-data-grid-config-settings__column-visibility-empty-search-message"
1577
- }, {
1578
- default: W(() => [
1579
- Q(G(e.t("noColumnsMatch")), 1)
1580
- ]),
1581
- _: 1
1582
- })) : U("", !0)
1583
- ])
1584
- ])
1585
- ]),
1586
- _: 1
1587
- }, 8, ["id", "open", "aria-label", "target-element"])) : U("", !0)
1588
- ])), [
1589
- [L, e.onClickOutside]
1590
- ]);
1591
- }
1592
- const bo = /* @__PURE__ */ x(co, [["render", So], ["__scopeId", "data-v-e2bc2576"]]), je = {
1593
- "en-US": {
1594
- gettingYourData: "Getting your data",
1595
- loading: "Loading",
1596
- showMore: "Show more",
1597
- sortAscending: "{field} sort ascending",
1598
- sortDescending: "{field} sort descending",
1599
- sortInactive: "{field} sort inactive",
1600
- selectRow: "Select row"
1601
- }
1602
- }, Eo = { class: "b-data-grid-lazy-load" }, yo = {
1603
- i18n: { messages: je }
1604
- }, Oo = /* @__PURE__ */ Le({
1605
- ...yo,
1606
- __name: "data-grid-lazy-load",
1607
- props: {
1608
- loading: { type: Boolean },
1609
- isInfiniteScroll: { type: Boolean }
1610
- },
1611
- setup(e) {
1612
- const { t: u } = Ee({ messages: je });
1613
- return (a, t) => (r(), b("div", Eo, [
1614
- e.loading && e.isInfiniteScroll ? (r(), P(n(Ft), { key: 0 })) : U("", !0),
1615
- e.loading && !e.isInfiniteScroll ? (r(), P(n(mt), {
1616
- key: 1,
1617
- variant: "secondary",
1618
- state: n(ht).LOADING
1619
- }, {
1620
- default: W(() => [
1621
- Q(G(n(u)("loading")), 1)
1622
- ]),
1623
- _: 1
1624
- }, 8, ["state"])) : U("", !0),
1625
- !e.loading && !e.isInfiniteScroll ? (r(), P(n(mt), {
1626
- key: 2,
1627
- state: n(ht).START,
1628
- variant: "secondary",
1629
- onClick: t[0] || (t[0] = (g) => a.$emit(n(N).UPDATE_SHOW_MORE))
1630
- }, {
1631
- default: W(() => [
1632
- Q(G(n(u)("showMore")), 1)
1633
- ]),
1634
- _: 1
1635
- }, 8, ["state"])) : U("", !0)
1636
- ]));
1637
- }
1638
- }), Io = /* @__PURE__ */ x(Oo, [["__scopeId", "data-v-a4824c2d"]]);
1639
- let wt = 0;
1640
- const $o = {
1641
- beforeCreate() {
1642
- this.uuid = wt.toString(), wt += 1;
1643
- }
1644
- }, Ro = { key: 0 }, Ao = /* @__PURE__ */ C("path", {
1645
- fill: "#00112C",
1646
- d: "M12.9243 1.86372C12.0456 0.985043 10.621 0.985041 9.74234 1.86372L1.25 10.3561V14.7501H5.64399L14.1363 6.25772C15.015 5.37904 15.015 3.95442 14.1363 3.07574L12.9243 1.86372ZM10.803 2.92438C11.0959 2.63149 11.5708 2.63149 11.8637 2.92438L13.0757 4.1364C13.3686 4.42929 13.3686 4.90416 13.0757 5.19706L12.3333 5.93947L10.0606 3.6668L10.803 2.92438ZM8.99993 4.72746L11.2726 7.00013L5.02267 13.2501H2.75V10.9774L8.99993 4.72746Z"
1647
- }, null, -1);
1648
- function To(e, u, a, t, g, o) {
1649
- return r(), b("svg", X({ role: "img" }, e.$attrs, {
1650
- class: "ui-assets-icons-16",
1651
- xmlns: "http://www.w3.org/2000/svg",
1652
- width: "16",
1653
- height: "16",
1654
- fill: "none"
1655
- }), [
1656
- e.$attrs["svg-title"] ? (r(), b("title", Ro, G(e.$attrs["svg-title"]), 1)) : U("", !0),
1657
- Ao
1658
- ], 16);
1659
- }
1660
- const wo = /* @__PURE__ */ x($o, [["render", To]]);
1661
- let Nt = 0;
1662
- const No = {
1663
- beforeCreate() {
1664
- this.uuid = Nt.toString(), Nt += 1;
1665
- }
1666
- }, Mo = { key: 0 }, Uo = /* @__PURE__ */ C("path", {
1667
- fill: "#00112C",
1668
- d: "M2.93933 11.9999L10.1893 4.74989H5.24999V3.24989H12.75V10.7499H11.25V5.81055L3.99999 13.0605L2.93933 11.9999Z"
1669
- }, null, -1);
1670
- function ko(e, u, a, t, g, o) {
1671
- return r(), b("svg", X({ role: "img" }, e.$attrs, {
1672
- class: "ui-assets-icons-16",
1673
- xmlns: "http://www.w3.org/2000/svg",
1674
- width: "16",
1675
- height: "16",
1676
- fill: "none"
1677
- }), [
1678
- e.$attrs["svg-title"] ? (r(), b("title", Mo, G(e.$attrs["svg-title"]), 1)) : U("", !0),
1679
- Uo
1680
- ], 16);
1681
- }
1682
- const Mt = /* @__PURE__ */ x(No, [["render", ko]]), jt = {
1683
- "en-US": {
1684
- copy: "Copy",
1685
- edit: "Edit",
1686
- open: "Open",
1687
- more: "More"
1688
- }
1689
- }, Do = (e) => (Un("data-v-da2fa02e"), e = e(), kn(), e), Po = { class: "b-data-grid-cell-actions" }, Fo = /* @__PURE__ */ Do(() => /* @__PURE__ */ C("div", { class: "b-data-grid-cell-actions__background-gradient" }, null, -1)), zo = {
1690
- class: "b-data-grid-cell-actions__actions",
1691
- role: "group"
1692
- }, Wo = {
1693
- i18n: { messages: jt },
1694
- name: "data-grid-cell-actions"
1695
- }, Go = /* @__PURE__ */ Le({
1696
- ...Wo,
1697
- props: {
1698
- /**
1699
- * Column definitions using 'key' to relate to data object.
1700
- */
1701
- cellActions: {
1702
- type: Array,
1703
- required: !0,
1704
- validator: (e) => (e == null ? void 0 : e.length) <= 2
1705
- },
1706
- /**
1707
- * The column field key.
1708
- */
1709
- columnKey: {
1710
- type: String,
1711
- required: !0
1712
- },
1713
- /**
1714
- * The row data item object.
1715
- */
1716
- rowDataItem: {
1717
- type: Object,
1718
- required: !0
1719
- }
1720
- },
1721
- emits: ["menu-item-click-close"],
1722
- setup(e, { emit: u }) {
1723
- const a = e, { t } = Ee({ messages: jt }), g = A(() => {
1724
- var d;
1725
- return ((d = a.cellActions) == null ? void 0 : d.length) > 2 && zt(
1726
- "WARNING: BentoDataGrid Cell actions can only have a maximum of 2 actions, if you need more consider using the menuData property instead."
1727
- ), a.cellActions.slice(0, 2);
1728
- }), o = A(() => (d, i) => {
1729
- if (!(!i && d.isShort || i && !d.isShort))
1730
- switch (d.variant) {
1731
- case "copy":
1732
- return t("copy");
1733
- case "edit":
1734
- return t("edit");
1735
- case "open":
1736
- return t("open");
1737
- case "more":
1738
- return t("more");
1739
- default:
1740
- return d.title;
1741
- }
1742
- }), f = (d) => (d == null ? void 0 : d.event) !== void 0 ? {
1743
- click: () => d.event(a.rowDataItem, a.columnKey)
1744
- } : {}, p = (d) => ({
1745
- ...d,
1746
- handler: () => {
1747
- d != null && d.handler && typeof d.handler == "function" && (d == null || d.handler()), d != null && d.event && typeof d.event == "function" && (d == null || d.event(a.rowDataItem, a.columnKey));
1748
- }
1749
- }), v = (d) => d.map((i) => {
1750
- const l = i;
1751
- return l != null && l.items && (l.items = v(l.items)), { ...p(l) };
1752
- }), $ = (d) => {
1753
- var i, l;
1754
- return (d == null ? void 0 : d.getCopyData) !== void 0 ? d.getCopyData(a.rowDataItem, a.columnKey) : (l = (i = a.rowDataItem) == null ? void 0 : i[a.columnKey]) == null ? void 0 : l.toString();
1755
- }, I = (d) => d.iconRight || ((d == null ? void 0 : d.variant) === "more" || (d == null ? void 0 : d.variant) === "open") && !d.isShort, c = (d) => d.iconLeft || (d == null ? void 0 : d.variant) === "more";
1756
- return (d, i) => (r(), P(Mn, {
1757
- name: "b-data-grid-cell-actions__animation",
1758
- appear: ""
1759
- }, {
1760
- default: W(() => [
1761
- C("div", Po, [
1762
- Fo,
1763
- C("div", zo, [
1764
- (r(!0), b(ue, null, ve(n(g), (l, E) => (r(), b("div", {
1765
- key: E,
1766
- class: "b-data-grid-cell-actions__action"
1767
- }, [
1768
- l.menuData ? (r(), P(n(Je), {
1769
- key: 0,
1770
- data: v(l.menuData),
1771
- button: {
1772
- condensed: !0,
1773
- variant: "secondary",
1774
- disabled: l.disabled
1775
- },
1776
- teleport: "",
1777
- onMenuItemClick: i[0] || (i[0] = (L) => u("menu-item-click-close"))
1778
- }, Be({ _: 2 }, [
1779
- c(l) ? {
1780
- name: "iconLeft",
1781
- fn: W(() => [
1782
- (l == null ? void 0 : l.variant) === "more" ? (r(), P(n(nl), {
1783
- key: 0,
1784
- "svg-title": n(o)(l, !0)
1785
- }, null, 8, ["svg-title"])) : (r(), P($e(l.iconLeft), {
1786
- key: 1,
1787
- "svg-title": n(o)(l, !0)
1788
- }, null, 8, ["svg-title"]))
1789
- ]),
1790
- key: "0"
1791
- } : void 0,
1792
- l != null && l.isShort ? void 0 : {
1793
- name: "default",
1794
- fn: W(() => [
1795
- Q(G(n(o)(l)), 1)
1796
- ]),
1797
- key: "1"
1798
- },
1799
- I(l) ? {
1800
- name: "iconRight",
1801
- fn: W(() => [
1802
- (l == null ? void 0 : l.variant) === "open" ? (r(), P(n(Mt), {
1803
- key: 0,
1804
- "svg-title": n(o)(l, !0)
1805
- }, null, 8, ["svg-title"])) : (r(), P($e(l.iconRight), {
1806
- key: 1,
1807
- "svg-title": l.title
1808
- }, null, 8, ["svg-title"]))
1809
- ]),
1810
- key: "2"
1811
- } : void 0
1812
- ]), 1032, ["data", "button"])) : l.variant === "copy" ? (r(), P(n(ol), {
1813
- key: 1,
1814
- text: $(l),
1815
- "button-text": n(o)(l),
1816
- button: {
1817
- condensed: !0,
1818
- variant: "secondary"
1819
- }
1820
- }, null, 8, ["text", "button-text"])) : (r(), P(n(Gt), X({
1821
- key: 2,
1822
- condensed: "",
1823
- variant: "secondary",
1824
- critical: l.critical,
1825
- disabled: l.disabled,
1826
- link: l.link
1827
- }, Ze(f(l))), Be({ _: 2 }, [
1828
- l.iconLeft || l.variant === "edit" ? {
1829
- name: "iconLeft",
1830
- fn: W(() => [
1831
- (l == null ? void 0 : l.variant) === "edit" ? (r(), P(n(wo), {
1832
- key: 0,
1833
- "svg-title": n(o)(l, !0)
1834
- }, null, 8, ["svg-title"])) : (r(), P($e(l.iconLeft), {
1835
- key: 1,
1836
- "svg-title": l.title
1837
- }, null, 8, ["svg-title"]))
1838
- ]),
1839
- key: "0"
1840
- } : void 0,
1841
- l != null && l.isShort ? void 0 : {
1842
- name: "default",
1843
- fn: W(() => [
1844
- Q(G(n(o)(l)), 1)
1845
- ]),
1846
- key: "1"
1847
- },
1848
- l.iconRight || l.variant === "open" ? {
1849
- name: "iconRight",
1850
- fn: W(() => [
1851
- (l == null ? void 0 : l.variant) === "open" ? (r(), P(n(Mt), {
1852
- key: 0,
1853
- "svg-title": n(o)(l, !0)
1854
- }, null, 8, ["svg-title"])) : (r(), P($e(l.iconRight), {
1855
- key: 1,
1856
- "svg-title": l.title
1857
- }, null, 8, ["svg-title"]))
1858
- ]),
1859
- key: "2"
1860
- } : void 0
1861
- ]), 1040, ["critical", "disabled", "link"]))
1862
- ]))), 128))
1863
- ])
1864
- ])
1865
- ]),
1866
- _: 1
1867
- }));
1868
- }
1869
- }), Ho = /* @__PURE__ */ x(Go, [["__scopeId", "data-v-da2fa02e"]]);
1870
- var le = /* @__PURE__ */ ((e) => (e.COLUMN_HOVERED = "column-hovered", e.COLUMN_HOVERED_NO_BORDER_LEFT = "column-hovered-no-border-left", e.COLUMN_HOVERED_NO_BORDER_RIGHT = "column-hovered-no-border-right", e.CONDENSED = "condensed", e.FROZEN = "frozen", e.IS_COLUMN_REORDERING = "is-column-re-ordering", e.IS_COLUMN_REORDERING_TARGET_LEFT = "is-column-re-order-target-left", e.IS_COLUMN_REORDERING_TARGET_RIGHT = "is-column-re-order-target-right", e.LAST_FROZEN_COLUMN_CELL = "last-frozen-column-cell", e.NUMERIC = "numeric", e.OVERFLOW_ELLIPSIS = "overflow-ellipsis", e.PADDING_LEFT_UNSET = "padding-left-unset", e.PADDING_RIGHT_UNSET = "padding-right-unset", e))(le || {});
1871
- const qt = {
1872
- "en-US": {
1873
- selectRow: "Select row"
1874
- }
1875
- }, Vo = ["data-testid", "data-cellindex", "tabindex", "aria-colindex"], Bo = ["title"], Zo = {
1876
- key: 0,
1877
- class: "b-data-grid-cell__cell-actions"
1878
- }, xo = {
1879
- i18n: { messages: qt },
1880
- name: "data-grid-cell"
1881
- }, jo = /* @__PURE__ */ Le({
1882
- ...xo,
1883
- props: {
1884
- draggingEventsForRowCell: {
1885
- type: Function,
1886
- required: !0
1887
- },
1888
- /**
1889
- * The columns sets including
1890
- */
1891
- columnSets: {
1892
- type: Array,
1893
- required: !0
1894
- },
1895
- /**
1896
- * The columns set we are iterating over
1897
- */
1898
- column: {
1899
- type: Object,
1900
- required: !0
1901
- },
1902
- colIndex: {
1903
- type: Number,
1904
- required: !0
1905
- },
1906
- columnSetIndex: {
1907
- type: Number,
1908
- required: !0
1909
- },
1910
- /**
1911
- * Sets the row cells to the condensed padding state.
1912
- */
1913
- condensed: {
1914
- type: Boolean,
1915
- default: !1
1916
- },
1917
- /**
1918
- * Columns being dragged, contains dragging column and a target column
1919
- */
1920
- draggingColumns: {
1921
- type: Object,
1922
- default: void 0
1923
- },
1924
- /**
1925
- * A customisable method to retrieve a unique identifier for a data item in the array of data supplied.
1926
- * This is used selecting and performance reasons and must exist in each data item.
1927
- */
1928
- getDataItemId: {
1929
- type: Function,
1930
- default: (e) => e.id
1931
- },
1932
- /**
1933
- * The column hovered over state and whether the hovered over column should show a border right or left.
1934
- */
1935
- hoveredOverColumnState: {
1936
- type: Object,
1937
- required: !0
1938
- },
1939
- /**
1940
- * A customisable method to determine if a row is not selectable.
1941
- * The default is that every row is selectable.
1942
- */
1943
- isDataItemDisabled: {
1944
- type: Function,
1945
- default: () => !1
1946
- },
1947
- isMeasuringColumnWidths: {
1948
- type: Boolean,
1949
- default: !1
1950
- },
1951
- /**
1952
- * The row data object
1953
- */
1954
- rowData: {
1955
- type: Object,
1956
- required: !0
1957
- },
1958
- rowIndex: {
1959
- type: Number,
1960
- required: !0
1961
- },
1962
- selectedItems: {
1963
- type: Array,
1964
- required: !0
1965
- }
1966
- },
1967
- emits: ["on-frozen-columns-key-press", "select-row", "register-row-cell-element", "cell-hovered"],
1968
- setup(e, { expose: u, emit: a }) {
1969
- const t = e, { t: g } = Ee({ messages: qt }), o = R(null), f = R(null), p = R(!1), v = R([]), $ = A(() => {
1970
- var _;
1971
- return !!((_ = t.rowData) != null && _[t.column.field]);
1972
- }), I = (_, h) => (_ == null ? void 0 : _.overflow) === Qe.ELLIPSIS ? `${h}` : void 0, c = (_) => _ ?? "-", d = (_) => t.columnSets.slice(0, _).reduce((h, { columnSet: m }) => h + m.length, 0), i = (_, h) => _ + d(h), l = (_, h, m) => d() * _ + i(h, m), E = (_) => {
1973
- var h;
1974
- (_ === null || !o.value.contains(_) && !((h = v.value) != null && h.map((m) => m.value).some((m) => m === _ || (m == null ? void 0 : m.contains(_))))) && (p.value = !1);
1975
- }, L = () => {
1976
- p.value = !1;
1977
- }, y = (_) => {
1978
- const m = { ...{
1979
- ...t.draggingEventsForRowCell(_)
1980
- } };
1981
- return _.frozen && (m.keyup = (O) => a("on-frozen-columns-key-press", O), m.keydown = (O) => a("on-frozen-columns-key-press", O)), _.cellActions && (m.mouseenter = () => {
1982
- p.value = !0;
1983
- }, m.mouseleave = (O) => {
1984
- p.value = !1, E(O == null ? void 0 : O.relatedTarget);
1985
- }, m.mouseleave = (O) => {
1986
- E(O == null ? void 0 : O.relatedTarget);
1987
- }, m.focus = (O) => {
1988
- p.value = !0;
1989
- }, m.focusout = (O) => {
1990
- E(O == null ? void 0 : O.relatedTarget);
1991
- }), m;
1992
- };
1993
- ge(
1994
- () => p.value,
1995
- () => {
1996
- p.value === !0 ? a("cell-hovered", t.rowIndex) : a("cell-hovered", -1);
1997
- }
1998
- ), Dn(ll, {
1999
- registerMenuContainerElement: (_) => {
2000
- v.value.push(_);
2001
- },
2002
- menuMouseLeave: (_) => {
2003
- o.value.contains(_ == null ? void 0 : _.relatedTarget) || (p.value = !1);
2004
- }
2005
- });
2006
- const j = (_) => {
2007
- var h, m, O, H, q, Y, ee;
2008
- return {
2009
- [`b-data-grid-cell--${le.COLUMN_HOVERED}`]: (_ == null ? void 0 : _.field) === t.hoveredOverColumnState.hoveredOverColumnField,
2010
- [`b-data-grid-cell--${le.COLUMN_HOVERED_NO_BORDER_LEFT}`]: (_ == null ? void 0 : _.field) === t.hoveredOverColumnState.hoveredOverColumnField && t.hoveredOverColumnState.noBorderLeft,
2011
- [`b-data-grid-cell--${le.COLUMN_HOVERED_NO_BORDER_RIGHT}`]: (_ == null ? void 0 : _.field) === t.hoveredOverColumnState.hoveredOverColumnField && t.hoveredOverColumnState.noBorderRight,
2012
- [`b-data-grid-cell--${le.PADDING_LEFT_UNSET}`]: ((h = _ == null ? void 0 : _.padding) == null ? void 0 : h.left) === !1,
2013
- [`b-data-grid-cell--${le.PADDING_RIGHT_UNSET}`]: ((m = _ == null ? void 0 : _.padding) == null ? void 0 : m.right) === !1,
2014
- [`b-data-grid-cell--${le.NUMERIC}`]: _ == null ? void 0 : _.numeric,
2015
- [`b-data-grid-cell--${le.CONDENSED}`]: t.condensed,
2016
- [`b-data-grid-cell--${le.OVERFLOW_ELLIPSIS}`]: (_ == null ? void 0 : _.overflow) === Qe.ELLIPSIS,
2017
- [`b-data-grid-cell--${le.IS_COLUMN_REORDERING}`]: ((O = t.draggingColumns.dragging) == null ? void 0 : O.field) === _.field,
2018
- [`b-data-grid-cell--${le.IS_COLUMN_REORDERING_TARGET_LEFT}`]: ((H = t.draggingColumns.target) == null ? void 0 : H.field) === _.field && ((q = t.draggingColumns) == null ? void 0 : q.dragToLeft),
2019
- [`b-data-grid-cell--${le.IS_COLUMN_REORDERING_TARGET_RIGHT}`]: ((Y = t.draggingColumns.target) == null ? void 0 : Y.field) === _.field && !((ee = t.draggingColumns) != null && ee.dragToLeft),
2020
- [`b-data-grid-cell--${le.FROZEN}`]: _ == null ? void 0 : _.frozen
2021
- };
2022
- };
2023
- return u({
2024
- gridcellRef: o
2025
- }), (_, h) => {
2026
- var m;
2027
- return r(), b("div", X({
2028
- key: `cell-${e.column.field}`,
2029
- ref_key: "gridcellRef",
2030
- ref: o,
2031
- "data-testid": `cell-${e.column.field}`,
2032
- "data-cellindex": l(e.rowIndex, e.colIndex, e.columnSetIndex),
2033
- class: ["b-data-grid-cell", j(e.column)],
2034
- role: "gridcell",
2035
- tabindex: l(e.rowIndex, e.colIndex, e.columnSetIndex) === 0 ? "0" : "-1",
2036
- "aria-colindex": i(e.colIndex, e.columnSetIndex) + 1,
2037
- style: {
2038
- width: e.column.autoWidth && e.isMeasuringColumnWidths ? "auto" : `${e.column.width}px`
2039
- }
2040
- }, Ze(y(e.column), !0)), [
2041
- e.column.field !== n(be) ? (r(), b(ue, { key: 0 }, [
2042
- V(n(xe), { el: "div" }, {
2043
- default: W(() => [
2044
- ye(_.$slots, `item-${e.column.field}`, { item: e.rowData }, () => [
2045
- C("span", {
2046
- title: I(e.column, e.rowData[e.column.field])
2047
- }, G(c(e.rowData[e.column.field])), 9, Bo)
2048
- ], !0)
2049
- ]),
2050
- _: 3
2051
- }),
2052
- ((m = e.column.cellActions) == null ? void 0 : m.length) > 0 ? (r(), b("div", Zo, [
2053
- p.value && n($) ? (r(), P(Ho, {
2054
- key: 0,
2055
- ref_key: "cellActionsRef",
2056
- ref: f,
2057
- "cell-actions": e.column.cellActions,
2058
- "column-key": e.column.field,
2059
- "row-data-item": e.rowData,
2060
- onMenuItemClickClose: L
2061
- }, null, 8, ["cell-actions", "column-key", "row-data-item"])) : U("", !0)
2062
- ])) : U("", !0)
2063
- ], 64)) : (r(), P(n(Bt), {
2064
- key: 1,
2065
- class: "b-data-grid-cell__select-cell",
2066
- "aria-label": n(g)("selectRow"),
2067
- "model-value": e.selectedItems,
2068
- disabled: e.isDataItemDisabled(e.rowData),
2069
- value: e.getDataItemId(e.rowData),
2070
- "onUpdate:modelValue": h[0] || (h[0] = (O) => _.$emit("select-row", O))
2071
- }, null, 8, ["aria-label", "model-value", "disabled", "value"]))
2072
- ], 16, Vo);
2073
- };
2074
- }
2075
- }), qo = /* @__PURE__ */ x(jo, [["__scopeId", "data-v-18072f16"]]);
2076
- let Ut = 0;
2077
- const Yo = {
2078
- beforeCreate() {
2079
- this.uuid = Ut.toString(), Ut += 1;
2080
- }
2081
- }, Xo = { key: 0 }, Ko = ["clip-path"], Jo = /* @__PURE__ */ C("path", {
2082
- fill: "#00112C",
2083
- d: "M0.25 8C0.25 3.71979 3.71979 0.25 8 0.25C12.2802 0.25 15.75 3.71979 15.75 8C15.75 12.2802 12.2802 15.75 8 15.75C3.71979 15.75 0.25 12.2802 0.25 8ZM8.75 8.75V4.25H7.25V8.75H8.75ZM8 11.5C8.41421 11.5 8.75 11.1642 8.75 10.75C8.75 10.3358 8.41421 10 8 10C7.58579 10 7.25 10.3358 7.25 10.75C7.25 11.1642 7.58579 11.5 8 11.5Z"
2084
- }, null, -1), Qo = [
2085
- Jo
2086
- ], ei = ["id"], ti = /* @__PURE__ */ C("rect", {
2087
- width: "16",
2088
- height: "16",
2089
- fill: "#fff"
2090
- }, null, -1), ni = [
2091
- ti
2092
- ];
2093
- function li(e, u, a, t, g, o) {
2094
- return r(), b("svg", X({ role: "img" }, e.$attrs, {
2095
- class: "ui-assets-icons-16",
2096
- xmlns: "http://www.w3.org/2000/svg",
2097
- width: "16",
2098
- height: "16",
2099
- fill: "none"
2100
- }), [
2101
- e.$attrs["svg-title"] ? (r(), b("title", Xo, G(e.$attrs["svg-title"]), 1)) : U("", !0),
2102
- C("g", {
2103
- "clip-path": "url(#uia-icons-16-warning_circle_fill__a" + e.uuid + ")"
2104
- }, Qo, 8, Ko),
2105
- C("defs", null, [
2106
- C("clipPath", {
2107
- id: "uia-icons-16-warning_circle_fill__a" + e.uuid
2108
- }, ni, 8, ei)
2109
- ])
2110
- ], 16);
2111
- }
2112
- const si = /* @__PURE__ */ x(Yo, [["render", li]]), oi = ["aria-label"], ii = {}, ai = /* @__PURE__ */ Le({
2113
- ...ii,
2114
- __name: "data-grid-static-icon",
2115
- props: {
2116
- colored: { type: Boolean, default: !1 },
2117
- tooltipText: null,
2118
- variant: { default: "no-value" }
2119
- },
2120
- setup(e) {
2121
- const u = e, a = A(() => {
2122
- switch (u.variant) {
2123
- case "checkmark":
2124
- return Fn;
2125
- case "warning":
2126
- return zn;
2127
- case "error":
2128
- return si;
2129
- case "cross":
2130
- return Pt;
2131
- case "no-value":
2132
- return gt;
2133
- default:
2134
- return gt;
2135
- }
2136
- }), t = A(() => ({
2137
- "b-data-grid-static-icon--colored": u.colored && u.variant !== "no-value"
2138
- })), g = A(() => `b-data-grid-static-icon__${u.variant}`), o = A(() => Gn.AUTO);
2139
- return (f, p) => lt((r(), b("div", {
2140
- "aria-label": e.tooltipText,
2141
- class: re(["b-data-grid-static-icon", n(t)]),
2142
- tabindex: "0"
2143
- }, [
2144
- (r(), P($e(n(a)), {
2145
- class: re(n(g)),
2146
- "svg-title": e.tooltipText
2147
- }, null, 8, ["class", "svg-title"]))
2148
- ], 10, oi)), [
2149
- [n(Wn), e.tooltipText, n(o)]
2150
- ]);
2151
- }
2152
- }), la = /* @__PURE__ */ x(ai, [["__scopeId", "data-v-3ee55e9a"]]), ri = ["aria-rowcount", "aria-colcount", "aria-label"], di = {
2153
- key: 1,
2154
- class: "b-data-grid__header"
2155
- }, ci = ["tabindex"], ui = ["tabindex", "aria-busy"], gi = {
2156
- key: 0,
2157
- class: "b-data-grid__loading"
2158
- }, fi = {
2159
- key: 1,
2160
- class: "b-data-grid__empty-state"
2161
- }, vi = ["aria-rowindex", "aria-selected", "onClick"], mi = ["data-testid"], hi = {
2162
- key: 4,
2163
- class: "b-data-grid__footer"
2164
- }, _i = {
2165
- i18n: { messages: je },
2166
- name: "bento-data-grid"
2167
- }, Ci = /* @__PURE__ */ Le({
2168
- ..._i,
2169
- props: {
2170
- /**
2171
- * When true, will emit a 'rowClick' event when a row is clicked. Will add cursor: pointer to rows.
2172
- */
2173
- allowRowClicks: { type: Boolean, default: !1 },
2174
- /**
2175
- * When true, column headers will become draggable, allowing users to rearrange columns.
2176
- */
2177
- allowColumnDragAndDrop: { type: Boolean, default: !0 },
2178
- /**
2179
- * List of actions that will be rendered in the action bar when user selects items.
2180
- *
2181
- * Each object in the list should have a `title`, an `event` and,
2182
- * optionally, an `icon`.
2183
- *
2184
- * The component will display 4 actions and the hide the rest inside a menu.
2185
- *
2186
- * @see BentoButton for a list of all the other props supported by each button action.
2187
- */
2188
- bulkActions: {
2189
- type: Array,
2190
- default: null
2191
- },
2192
- /**
2193
- * Sets the row cells to the condensed padding state.
2194
- */
2195
- condensed: {
2196
- type: Boolean,
2197
- default: !1
2198
- },
2199
- /**
2200
- * Column definitions using 'key' to relate to data object.
2201
- */
2202
- columns: {
2203
- type: Array,
2204
- required: !0
2205
- },
2206
- /**
2207
- * Enables / hides the display options panel and the column contextual menu functionality.
2208
- */
2209
- columnPanel: { type: Boolean, default: !1 },
2210
- /**
2211
- * An array of data objects to display.
2212
- */
2213
- data: {
2214
- type: Array,
2215
- required: !0
2216
- },
2217
- /**
2218
- * Empty state props that will be passed down to inner empty-state component
2219
- */
2220
- emptyState: {
2221
- type: Object,
2222
- default: void 0
2223
- },
2224
- /**
2225
- * filter-bar value (i.e. filters) that will be passed down to inner filter-bar component
2226
- * {@see BentoFilterBarModel}
2227
- */
2228
- filters: {
2229
- type: He.props.value.type,
2230
- default: void 0
2231
- },
2232
- /**
2233
- * An array of the values for each filter set in `value`.
2234
- * {@see BentoFilterValues}
2235
- */
2236
- filterValues: {
2237
- type: He.props.filterValues.type,
2238
- default: () => []
2239
- },
2240
- /**
2241
- * Filter bar search term useful to filter all the data by text
2242
- */
2243
- filterSearchTerm: {
2244
- type: He.props.searchTerm.type,
2245
- default: void 0
2246
- },
2247
- /**
2248
- * Allows the grid to be rendered inside a confined space.
2249
- */
2250
- fitContent: { type: Boolean, default: !1 },
2251
- /**
2252
- * A customisable method to retrieve a unique identifier for a data item in the array of data supplied.
2253
- * This is used selecting and performance reasons and must exist in each data item.
2254
- */
2255
- getDataItemId: {
2256
- type: Function,
2257
- default: (e) => e.id
2258
- },
2259
- /**
2260
- * If resize is enabled
2261
- */
2262
- hasResizableColumns: {
2263
- type: Boolean,
2264
- default: !0
2265
- },
2266
- /**
2267
- * A customisable method to determine if a row is not selectable.
2268
- * The default is that every row is selectable.
2269
- */
2270
- isDataItemDisabled: {
2271
- type: Function,
2272
- default: () => !1
2273
- },
2274
- /**
2275
- * The type of `Lazy Load`.
2276
- * Type "automatic" will enable infinite scrolling
2277
- * Type "button" will enable lazy loading with "Show more" button
2278
- * @values automatic, button, none
2279
- */
2280
- lazyLoadType: {
2281
- type: String,
2282
- default: "none",
2283
- validator: (e) => ["automatic", "button", "none"].includes(e)
2284
- },
2285
- /**
2286
- * If the loading indicator should be shown.
2287
- */
2288
- loading: {
2289
- type: Boolean,
2290
- default: !1
2291
- },
2292
- /**
2293
- * Enables / Disables the table's surrounding border.
2294
- */
2295
- outline: {
2296
- type: Boolean,
2297
- default: !1
2298
- },
2299
- /**
2300
- * Pagination props that will be passed down to inner pagination component
2301
- */
2302
- pagination: {
2303
- type: Object,
2304
- default: void 0
2305
- },
2306
- /**
2307
- * Adds an extra option when selecting all items that allows user to select items in other pages too.
2308
- */
2309
- selectableAcrossPages: {
2310
- type: Boolean,
2311
- default: !1
2312
- },
2313
- /**
2314
- * Make pagination stick to the bottom of the page when the data-grid is bigger than the screen.
2315
- * Because styles have to be applied to pagination container element, this has to be a data-grid prop (rather than a pagination prop).
2316
- */
2317
- stickyPagination: {
2318
- type: Boolean,
2319
- default: !1
2320
- },
2321
- /**
2322
- * Make data-grid filters stick to the top of the page along with the data-grid headers.
2323
- * Defaults to true.
2324
- */
2325
- stickyFilters: {
2326
- type: Boolean,
2327
- default: !0
2328
- },
2329
- /**
2330
- * Enables / Disables rows to be selected via a checkbox. On select the "select" event will be emitted.
2331
- */
2332
- selectable: {
2333
- type: Boolean,
2334
- default: !1
2335
- },
2336
- /**
2337
- * Selected items
2338
- */
2339
- selection: {
2340
- type: Array,
2341
- default: () => []
2342
- },
2343
- /**
2344
- * Highlighted items
2345
- */
2346
- highlightedRows: {
2347
- type: Array,
2348
- default: () => []
2349
- },
2350
- /**
2351
- * Renders the data grid with no top spacing, to render inside containers that already have spacing
2352
- */
2353
- noSpacingTop: {
2354
- type: Boolean,
2355
- default: !1
2356
- },
2357
- /**
2358
- * Sortby handles proper rendering of sort icon in header. Sorting currently is only supported server side.
2359
- * It does make sure the currently sorted column has a more visible sort icon, and the sort icon points in the right direction.
2360
- */
2361
- sortBy: {
2362
- type: Array,
2363
- // NOTE: is an array to allow multi-sorting in the future
2364
- default: () => []
2365
- },
2366
- /**
2367
- * Title of the data grid to be rendered as tab title when a data grid is passed in a tab layout.
2368
- */
2369
- tabTitle: {
2370
- type: String,
2371
- default: null
2372
- },
2373
- /**
2374
- * Truncates all data grid column headers
2375
- */
2376
- truncateColumnHeaders: {
2377
- type: Boolean,
2378
- default: !1
2379
- }
2380
- },
2381
- emits: [
2382
- N.COLUMNS,
2383
- N.COLUMN_RESIZE,
2384
- N.ITEMS_PAGE,
2385
- N.FILTER_SEARCH_INPUT,
2386
- N.FILTER_SEARCH_CLEAR,
2387
- N.NAVIGATE,
2388
- N.UPDATE_COLUMNS,
2389
- N.UPDATE_CONDENSED,
2390
- N.UPDATE_FILTER_VALUES,
2391
- N.UPDATE_FILTERS,
2392
- N.UPDATE_FILTER_SEARCH_TERM,
2393
- N.UPDATE_SHOW_MORE,
2394
- N.UPDATE_PAGINATION,
2395
- N.UPDATE_SELECTION,
2396
- N.UPDATE_SORT_BY,
2397
- N.ROW_CLICK,
2398
- N.SELECT,
2399
- N.SELECT_ALL_ACROSS_PAGES,
2400
- N.SORT
2401
- ],
2402
- setup(e, { expose: u, emit: a }) {
2403
- const t = e, g = Pn(), o = R(null), f = R(), p = R({}), v = R(null), $ = R(null), I = R(), c = R(null), {
2404
- allowColumnDragAndDrop: d,
2405
- columns: i,
2406
- columnPanel: l,
2407
- data: E,
2408
- lazyLoadType: L,
2409
- selectable: y,
2410
- selection: M,
2411
- loading: k,
2412
- selectableAcrossPages: j,
2413
- outline: _
2414
- } = tt(t), h = R(-1), { t: m } = Ee({ messages: je }), O = A(() => te.value.filter((S) => S.frozen).length), H = ut(
2415
- qn,
2416
- () => ({
2417
- isDataGridTemplate: !1,
2418
- stickyTabs: R(!1),
2419
- tabsRef: R(null)
2420
- })
2421
- ), { isDataGridTemplate: q, stickyTabs: Y, tabsRef: ee } = H(), se = A(() => t.fitContent || q ? 0 : null), {
2422
- columnDefs: te,
2423
- onColumnWidthOverride: B,
2424
- gridColumnWidthStyle: F,
2425
- isMeasuringColumnWidths: fe,
2426
- isTotalWidthOfColumnsTakingUpAllAvailableGridWidth: qe,
2427
- columns: Re
2428
- } = fl(i, E, o, p, v, {
2429
- hasColumnPanel: l,
2430
- hasSelectableColumn: y,
2431
- hasSelectableAcrossPages: j,
2432
- allowColumnDragAndDrop: d
2433
- }), s = (S, ...w) => {
2434
- (S === N.COLUMNS || S === N.UPDATE_COLUMNS) && ([Re.value] = w), a(S, ...w);
2435
- }, D = pt(ee, Y), T = A(
2436
- () => t.stickyFilters ? `${D.value}px` : null
2437
- ), oe = pt($, Dt(t, "stickyFilters")), K = A(
2438
- () => `${oe.value + D.value}px`
2439
- ), {
2440
- sortedColumns: Ae,
2441
- columnSets: me,
2442
- isOnlyOneVisibleColumn: Te,
2443
- onConfigSettingsUpdate: we,
2444
- onConfigSettingsColumnsUpdate: Ne,
2445
- onConfigSettingsColumnUpdate: Me
2446
- } = Ll(te, s), { hoveredOverColumn: Oe, hoveredOverColumnState: st } = bl(
2447
- me,
2448
- y,
2449
- _,
2450
- qe
2451
- ), { draggingColumns: Ye, draggingEventsForColumns: Yt, draggingEventsForRowCell: Xt, onMoveColumnByOffset: Kt } = pl(Ae, d, s), { onAllRowSelect: ot, onRowSelect: Jt, selectedItems: Ue, allItemsSelectedState: Qt } = vl(
2452
- M,
2453
- s,
2454
- E,
2455
- t.getDataItemId,
2456
- t.isDataItemDisabled
2457
- ), { navigationInput: it } = hl(v, i, y), { isLazyLoad: ke, isInfiniteScroll: en, verticalScrollPosition: tn, emitLazyLoadEvent: nn } = Cl(
2458
- L,
2459
- c,
2460
- o,
2461
- k,
2462
- s
2463
- ), { updateScrollPosition: De, updateScrollPositionOnFrozenColumnsNavigation: ln, hasLeftOverflow: Pe, hasRightOverflow: sn } = Sl(o, f, tn), on = () => {
2464
- I.value.isClearAllVisible ? I.value.clearAllFilters() : I.value.isResetAllVisible && I.value.resetAllFilters();
2465
- }, an = A(() => {
2466
- var S, w;
2467
- return {
2468
- ...t.emptyState,
2469
- variant: ((S = t.emptyState) == null ? void 0 : S.variant) === "embedded" || ((w = t.emptyState) == null ? void 0 : w.variant) === "basic" ? t.emptyState.variant : "basic"
2470
- };
2471
- }), rn = A(() => ({
2472
- [`b-data-grid--${_e.OUTLINE}`]: t.outline,
2473
- [`b-data-grid--${_e.SCROLL}`]: t.fitContent || ke.value,
2474
- [`b-data-grid--${_e.STICKY_FILTERS}`]: t.filters && t.stickyFilters,
2475
- [`b-data-grid--${_e.OVERFLOW_SHADOW_LEFT}`]: Pe.value && !O.value,
2476
- [`b-data-grid--${_e.OVERFLOW_SHADOW_RIGHT}`]: sn.value,
2477
- [`b-data-grid--${_e.NO_SPACING_TOP}`]: t.noSpacingTop
2478
- })), dn = A(() => me.value.findIndex((S) => S.columnSet.length)), cn = (S, w) => {
2479
- var ie;
2480
- return {
2481
- "b-data-grid__row--disabled": t.isDataItemDisabled(S),
2482
- "b-data-grid__row--row-clicks-enabled": t.allowRowClicks,
2483
- "b-data-grid__cell--is-re-ordering": ((ie = Ye.target) == null ? void 0 : ie.field) !== void 0,
2484
- "b-data-grid__row--highlighted": t.highlightedRows.includes(t.getDataItemId(S)) || Ue.value.includes(t.getDataItemId(S)),
2485
- "b-data-grid__row--hovered": h.value === w
2486
- };
2487
- }, at = A(() => !(t.selectable && O.value === 1) || Pe.value), un = (S) => ({
2488
- "b-data-grid__row-cell-set--frozen": S,
2489
- [`b-data-grid__row-cell-set--${_e.OVERFLOW_SHADOW_LEFT}`]: S && Pe.value,
2490
- "b-data-grid__row-cell-set--frozen-separator": S && at.value,
2491
- "b-data-grid__row-cell-set--unfrozen": !S,
2492
- "b-data-grid__row-cell-set--is-measuring": fe.value
2493
- }), gn = A(() => {
2494
- var S, w, ie, z, ne, ce;
2495
- return {
2496
- "b-data-grid__pagination--padding-left-unset": ((ie = (w = (S = t.columns) == null ? void 0 : S[0]) == null ? void 0 : w.padding) == null ? void 0 : ie.left) === !1,
2497
- "b-data-grid__pagination--padding-right-unset": ((ce = (ne = (z = t.columns) == null ? void 0 : z[t.columns.length - 1]) == null ? void 0 : ne.padding) == null ? void 0 : ce.right) === !1,
2498
- "b-data-grid__pagination--sticky": !!t.stickyPagination || q
2499
- };
2500
- }), fn = (S) => {
2501
- const w = S;
2502
- S !== null && (w != null && w.columnHeaderRefs) && Object.entries(w == null ? void 0 : w.columnHeaderRefs).forEach(([ie, z]) => {
2503
- p.value[ie] = z;
2504
- });
2505
- }, vn = (S, w, ie) => {
2506
- var ne;
2507
- const z = S;
2508
- ((ne = v.value) == null ? void 0 : ne[w]) === void 0 && (v.value = { ...v.value, [w]: [] }), S !== null && (z != null && z.gridcellRef) && (v.value[w][ie] = z.gridcellRef);
2509
- }, mn = (S, w) => {
2510
- t.allowRowClicks && s(N.ROW_CLICK, S, w);
2511
- }, hn = (S) => {
2512
- h.value = S;
2513
- }, _n = A(() => !!t.selectableAcrossPages && !!t.pagination), rt = Bn({
2514
- label: g != null && g.header ? Zn(g)("header") : null,
2515
- defaultFallback: "data grid"
2516
- }), Cn = (S) => {
2517
- if (!t.selectable)
2518
- return null;
2519
- const w = t.getDataItemId(S);
2520
- return Ue.value.includes(w).toString();
2521
- }, dt = A(() => {
2522
- var S;
2523
- return ((S = Ue.value) == null ? void 0 : S.length) ?? 0;
2524
- }), pn = A(() => t.bulkActions && dt.value > 0), Ln = (S) => s(N.COLUMN_RESIZE, S), Sn = (S) => {
2525
- s(N.UPDATE_SORT_BY, S), s(N.SORT, S);
2526
- }, bn = (S, w) => {
2527
- s(N.NAVIGATE, S), s(N.UPDATE_PAGINATION, {
2528
- ...t.pagination,
2529
- size: w,
2530
- page: S
2531
- });
2532
- }, En = (S) => {
2533
- s(N.ITEMS_PAGE, S);
2534
- }, yn = () => {
2535
- s(N.FILTER_SEARCH_CLEAR);
2536
- }, On = (S) => {
2537
- s(N.UPDATE_FILTER_SEARCH_TERM, S), s(N.FILTER_SEARCH_INPUT, S);
2538
- };
2539
- return A(() => i.value.some((S) => S.mandatory)).value || zt(
2540
- "WARNING: At least one BentoDataGrid column should be set as mandatory to ensure data is always displayed correctly."
2541
- ), ut(jn, () => null)(t.tabTitle), u({ onEmptyStateClearResetButtonClick: on }), (S, w) => {
2542
- var ie;
2543
- return r(), b("div", {
2544
- class: re(["b-data-grid", n(rn)]),
2545
- role: "grid",
2546
- "aria-rowcount": n(E).length,
2547
- "aria-colcount": n(i).length,
2548
- "aria-label": n(rt)
2549
- }, [
2550
- e.filters ? (r(), b("div", {
2551
- key: 0,
2552
- ref_key: "filtersRef",
2553
- ref: $,
2554
- class: "b-data-grid__filters",
2555
- style: Ge({ top: n(T) })
2556
- }, [
2557
- e.filters ? (r(), P(He, {
2558
- key: 0,
2559
- ref_key: "filterBarRef",
2560
- ref: I,
2561
- config: e.filters,
2562
- "filter-values": e.filterValues,
2563
- "search-term": e.filterSearchTerm,
2564
- onSearchInput: On,
2565
- onSearchClear: yn,
2566
- onInput: w[0] || (w[0] = (z) => S.$emit(n(N).UPDATE_FILTERS, z)),
2567
- "onUpdate:filterValues": w[1] || (w[1] = (z) => S.$emit(n(N).UPDATE_FILTER_VALUES, z))
2568
- }, null, 8, ["config", "filter-values", "search-term"])) : U("", !0)
2569
- ], 4)) : U("", !0),
2570
- S.$slots.header ? (r(), b("div", di, [
2571
- ye(S.$slots, "header", {}, void 0, !0)
2572
- ])) : U("", !0),
2573
- C("div", {
2574
- class: "b-data-grid__column-headers",
2575
- style: Ge({ top: n(K) })
2576
- }, [
2577
- n(l) ? (r(), P(n(bo), {
2578
- key: 0,
2579
- class: "b-data-grid__config-settings",
2580
- columns: n(Re),
2581
- condensed: e.condensed,
2582
- onConfigSettings: n(we),
2583
- "onUpdate:columns": n(Ne)
2584
- }, null, 8, ["columns", "condensed", "onConfigSettings", "onUpdate:columns"])) : U("", !0),
2585
- C("div", {
2586
- ref_key: "columnsRef",
2587
- ref: f,
2588
- role: "rowgroup",
2589
- class: "b-data-grid__columns-row",
2590
- tabindex: n(se),
2591
- onScroll: w[4] || (w[4] = //@ts-ignore
2592
- (...z) => n(De) && n(De)(...z))
2593
- }, [
2594
- C("div", {
2595
- style: Ge(n(F)),
2596
- class: "b-data-grid__columns",
2597
- role: "row"
2598
- }, [
2599
- (r(!0), b(ue, null, ve(n(me), ({ columnSet: z, id: ne, isFrozenColumns: ce }, Fe) => (r(), b(ue, null, [
2600
- z != null && z.length ? (r(), P(n(qs), X({
2601
- key: `data-grid-columns-${ne}`,
2602
- ref_for: !0,
2603
- ref: (Se) => fn(Se),
2604
- columns: z,
2605
- "has-resizable-columns": e.hasResizableColumns,
2606
- "sort-by": e.sortBy,
2607
- "all-items-selected-state": n(Qt),
2608
- "is-frozen-columns": ce,
2609
- "show-frozen-columns-separator": n(at),
2610
- "dragging-columns": n(Ye),
2611
- "has-draggable-columns": n(d),
2612
- "has-column-panel": n(l),
2613
- "has-left-overflow": n(Pe),
2614
- "has-first-column-panel-right-aligned": Fe === n(dn),
2615
- "hovered-over-column-state": n(st),
2616
- "is-measuring-column-widths": n(fe),
2617
- "is-only-one-visible-column": n(Te),
2618
- "selectable-across-pages": n(_n),
2619
- "truncate-column-headers": e.truncateColumnHeaders
2620
- }, Ze(n(Yt)), {
2621
- onColumnHover: w[2] || (w[2] = (Se) => Oe.value = Se),
2622
- onColumnMove: n(Kt),
2623
- onColumnUpdate: n(Me),
2624
- onColumnResize: Ln,
2625
- onColumnResizing: n(B),
2626
- onSelectAllRows: n(ot),
2627
- onSelectAllAcrossPages: w[3] || (w[3] = (Se) => s(n(N).SELECT_ALL_ACROSS_PAGES)),
2628
- onSort: Sn
2629
- }), Be({ _: 2 }, [
2630
- ve(n(g), (Se, ze) => ({
2631
- name: ze,
2632
- fn: W((Ie) => [
2633
- ye(S.$slots, ze, Xe(Ke(Ie)), void 0, !0)
2634
- ])
2635
- }))
2636
- ]), 1040, ["columns", "has-resizable-columns", "sort-by", "all-items-selected-state", "is-frozen-columns", "show-frozen-columns-separator", "dragging-columns", "has-draggable-columns", "has-column-panel", "has-left-overflow", "has-first-column-panel-right-aligned", "hovered-over-column-state", "is-measuring-column-widths", "is-only-one-visible-column", "selectable-across-pages", "truncate-column-headers", "onColumnMove", "onColumnUpdate", "onColumnResizing", "onSelectAllRows"])) : U("", !0)
2637
- ], 64))), 256))
2638
- ], 4)
2639
- ], 40, ci)
2640
- ], 4),
2641
- C("div", {
2642
- ref_key: "body",
2643
- ref: o,
2644
- "data-testid": "data-grid-body",
2645
- class: "b-data-grid__body",
2646
- tabindex: n(k) ? "0" : "-1",
2647
- "aria-busy": n(k),
2648
- "aria-live": "polite",
2649
- onScroll: w[7] || (w[7] = //@ts-ignore
2650
- (...z) => n(De) && n(De)(...z))
2651
- }, [
2652
- n(k) && !n(ke) ? (r(), b("div", gi, [
2653
- V(n(Ft), {
2654
- class: "b-data-grid__loading-indicator",
2655
- large: ""
2656
- }),
2657
- V(n(xe), {
2658
- el: "span",
2659
- variant: "caption"
2660
- }, {
2661
- default: W(() => [
2662
- Q(G(n(m)("gettingYourData")), 1)
2663
- ]),
2664
- _: 1
2665
- })
2666
- ])) : ((ie = n(E)) == null ? void 0 : ie.length) === 0 && e.emptyState ? (r(), b("div", fi, [
2667
- V(n(xn), Xe(Ke(n(an))), null, 16)
2668
- ])) : (r(), b("div", {
2669
- key: 2,
2670
- class: "b-data-grid__rows",
2671
- role: "rowgroup",
2672
- onKeydown: w[6] || (w[6] = //@ts-ignore
2673
- (...z) => n(it) && n(it)(...z))
2674
- }, [
2675
- (r(!0), b(ue, null, ve(n(E), (z, ne) => (r(), b("div", {
2676
- key: ne,
2677
- style: Ge(n(F)),
2678
- class: re(["b-data-grid__row", cn(z, ne)]),
2679
- role: "row",
2680
- "aria-rowindex": ne + 1,
2681
- "aria-selected": Cn(z),
2682
- onClick: (ce) => mn(z, ce)
2683
- }, [
2684
- (r(!0), b(ue, null, ve(n(me), ({ columnSet: ce, id: Fe, isFrozenColumns: Se }, ze) => (r(), b(ue, null, [
2685
- ce != null && ce.length ? (r(), b("div", {
2686
- key: `data-grid-rows-${Fe}`,
2687
- class: re(["b-data-grid__cells", un(Se)]),
2688
- "data-testid": `data-grid-${Fe}-rows`
2689
- }, [
2690
- (r(!0), b(ue, null, ve(ce, (Ie, In) => (r(), P(n(qo), {
2691
- key: `cell-${Ie.field}`,
2692
- ref_for: !0,
2693
- ref: (We) => vn(We, Ie.field, ne),
2694
- column: Ie,
2695
- "column-set-index": ze,
2696
- "col-index": In,
2697
- "column-sets": n(me),
2698
- condensed: e.condensed,
2699
- "dragging-columns": n(Ye),
2700
- "dragging-events-for-row-cell": n(Xt),
2701
- "get-data-item-id": e.getDataItemId,
2702
- "hovered-over-column-state": n(st),
2703
- "is-data-item-disabled": e.isDataItemDisabled,
2704
- "is-measuring-column-widths": n(fe),
2705
- "row-data": z,
2706
- "row-index": ne,
2707
- "selected-items": n(Ue),
2708
- onCellHover: w[5] || (w[5] = (We) => Oe.value = We),
2709
- onOnFrozenColumnsKeyPress: n(ln),
2710
- onSelectRow: n(Jt),
2711
- onCellHovered: hn
2712
- }, Be({ _: 2 }, [
2713
- ve(n(g), (We, ct) => ({
2714
- name: ct,
2715
- fn: W(($n) => [
2716
- ye(S.$slots, ct, Xe(Ke($n)), void 0, !0)
2717
- ])
2718
- }))
2719
- ]), 1032, ["column", "column-set-index", "col-index", "column-sets", "condensed", "dragging-columns", "dragging-events-for-row-cell", "get-data-item-id", "hovered-over-column-state", "is-data-item-disabled", "is-measuring-column-widths", "row-data", "row-index", "selected-items", "onOnFrozenColumnsKeyPress", "onSelectRow"]))), 128))
2720
- ], 10, mi)) : U("", !0)
2721
- ], 64))), 256))
2722
- ], 14, vi))), 128))
2723
- ], 32))
2724
- ], 40, ui),
2725
- n(ke) ? (r(), P(n(Io), {
2726
- key: 2,
2727
- loading: n(k),
2728
- "is-infinite-scroll": n(en),
2729
- "onUpdate:showMore": n(nn)
2730
- }, null, 8, ["loading", "is-infinite-scroll", "onUpdate:showMore"])) : U("", !0),
2731
- e.pagination && !n(ke) ? (r(), b("div", {
2732
- key: 3,
2733
- "data-testid": "pagination-container",
2734
- class: re(["b-data-grid__pagination", n(gn)])
2735
- }, [
2736
- V(n(Vn), X(e.pagination, {
2737
- "aria-label": `${n(rt)} navigation`,
2738
- onNavigate: bn,
2739
- onItemsPage: En
2740
- }), null, 16, ["aria-label"])
2741
- ], 2)) : U("", !0),
2742
- S.$slots.footer ? (r(), b("div", hi, [
2743
- ye(S.$slots, "footer", {}, void 0, !0)
2744
- ])) : U("", !0),
2745
- n(pn) ? (r(), P(n(Hn), {
2746
- key: 5,
2747
- actions: e.bulkActions,
2748
- "item-counter": n(dt),
2749
- "extra-bottom-spacing": e.stickyPagination,
2750
- onClose: w[8] || (w[8] = (z) => n(ot)(!1))
2751
- }, null, 8, ["actions", "item-counter", "extra-bottom-spacing"])) : U("", !0)
2752
- ], 10, ri);
2753
- };
2754
- }
2755
- }), sa = /* @__PURE__ */ x(Ci, [["__scopeId", "data-v-c4f76f50"]]);
2756
- export {
2757
- Qe as B,
2758
- la as a,
2759
- _e as b,
2760
- pe as c,
2761
- sa as d,
2762
- N as e,
2763
- Ve as f
2764
- };
2765
- //# sourceMappingURL=data-grid.CCVRJrXT.js.map