@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
@@ -0,0 +1,2767 @@
1
+ import { defineComponent as G, useSlots as we, useAttrs as Ut, computed as b, ref as R, openBlock as m, createBlock as E, unref as _, normalizeClass as _e, withCtx as F, createTextVNode as H, toDisplayString as M, createCommentVNode as J, createElementBlock as q, createElementVNode as w, renderSlot as re, createVNode as C, watch as he, nextTick as st, resolveComponent as D, withKeys as ye, toRef as Q, onBeforeUpdate as He, provide as Vt, mergeProps as ue, Fragment as Te, reactive as it, createSlots as Ee, renderList as ce, normalizeProps as Re, guardReactiveProps as Oe, onMounted as kt, resolveDynamicComponent as Me, withDirectives as Ve, vShow as ke } from "vue";
2
+ import { B as Ie, b as Se } from "./search-bar.C__L0enF.js";
3
+ import { u as Lt } from "./use-bento-toast-controller.BDYlxAYq.js";
4
+ import { u as de } from "./i18n.DL9GT2-k.js";
5
+ import { _ as Rt } from "./modal.vue_vue_type_script_setup_true_lang.Bh6Q4yIf.js";
6
+ import { g as Ot } from "./base-modal.BPaKKH3Q.js";
7
+ import { B as wt } from "./button.Br6CyG40.js";
8
+ import { B as ze, I as Nt } from "./popover.CczC6Fhk.js";
9
+ import { B as Mt } from "./directive.O3yEdalv.js";
10
+ import { a as Kt } from "./tooltip.DvsfWV0-.js";
11
+ import { g as qe } from "./unique-id.XFfoKuc2.js";
12
+ import { u as Ht } from "./use-click-outside.D6aIgS15.js";
13
+ import { B as me, d as qt } from "./typography.z9P0Ec3Q.js";
14
+ import { u as rt } from "./aria-label.CaUURpnB.js";
15
+ import { B as ut, a as Je } from "./base-button.BxUrydaP.js";
16
+ import { g as dt } from "./get-slot-text.D5WBGjic.js";
17
+ import { u as ct } from "./use-has-slot.B7eQSabc.js";
18
+ import { C as bt, a as ft } from "./chevron-up.DQZG_BP3.js";
19
+ import { _ as W } from "./_plugin-vue_export-helper.CHgC5LLL.js";
20
+ import { B as jt } from "./teleport.L8qFCYpr.js";
21
+ import { B as Yt } from "./radio-group.C18T8QQs.js";
22
+ import { B as vt } from "./input-field.f4lqnh2q.js";
23
+ import { u as pt, B as zt } from "./dropdown.DQpKDlC-.js";
24
+ import { g as Jt } from "./focus-trap.CwkbHfT8.js";
25
+ import { B as je } from "./divider.ugNXYI-T.js";
26
+ import { B as Gt } from "./date-picker.D36sJUDB.js";
27
+ import { f as pe } from "./date.D8rQMzMG.js";
28
+ import { l as ie, a as mt, b as yt } from "./index.B_UZQ6qF.js";
29
+ import { a as Wt, i as Zt } from "./calendar.D--sOCBT.js";
30
+ import { B as Qt, D as Xt, i as Ge } from "./date-range-picker.rytlJBZs.js";
31
+ import { D as We } from "./date-input.BqBdAO1E.js";
32
+ import { B as xt } from "./button-actions.hdK5IgrZ.js";
33
+ import { B as el } from "./avatar.mNlMngHQ.js";
34
+ import { c as Ze, b as tl } from "./use-cached-selected-values.DaSn9dB9.js";
35
+ import { L as ht } from "./listbox-option-tag.QqDEHMKB.js";
36
+ import { u as ll } from "./use-country-items.DQR8plsq.js";
37
+ import { B as al } from "./payment-method.-3VYG5ud.js";
38
+ import { R as Le } from "./refresh.DvQeGwUF.js";
39
+ import { F as nl } from "./fixed-scroller.DwYB1pqo.js";
40
+ import "../assets/filter-bar.css";
41
+ const ol = { class: "b-filter-bar-button__container" }, sl = { class: "b-filter-bar-button__label-container" }, il = {
42
+ key: 1,
43
+ class: "b-filter-bar-button__chevron"
44
+ }, rl = {}, ul = /* @__PURE__ */ G({
45
+ ...rl,
46
+ __name: "filter-bar-button",
47
+ props: {
48
+ /**
49
+ * The number of applied values within the filter.
50
+ * Text can also be applied here such as 'All'.
51
+ * e.g. if 2 items in a dropdown filter have been applied, the number 2 will be shown here.
52
+ */
53
+ appliedFiltersCount: { type: [String, Number], default: null },
54
+ /**
55
+ * Disables button functionality.
56
+ */
57
+ disabled: { type: Boolean, default: !1 },
58
+ /**
59
+ * Signifies if the filter is open or closed.
60
+ */
61
+ isFilterOpen: { type: Boolean, default: !1 },
62
+ /**
63
+ * Toggles if a chevron icon should be displayed in the button.
64
+ * The chevron will change depending on the open state of the filter.
65
+ */
66
+ hasChevron: { type: Boolean, default: !1 },
67
+ /**
68
+ * A secondary label to be added next to the primary for additional filtering information.
69
+ * i.e. Can be used to show the set value for said filter.
70
+ */
71
+ secondaryLabel: { type: String, default: null }
72
+ },
73
+ emits: ["click"],
74
+ setup(e, { emit: l }) {
75
+ const n = e, s = l, t = we(), i = Ut(), a = ct(t), u = b(() => t.default ? dt(t)("default") : null), o = rt({ ariaLabel: u }), r = R(null), p = b(() => {
76
+ var d;
77
+ return {
78
+ "aria-controls": (d = i["aria-controls"]) == null ? void 0 : d.toString()
79
+ };
80
+ }), I = b(() => ({
81
+ "b-filter-bar-button--filter-open": n.isFilterOpen,
82
+ "b-filter-bar-button--active": n.appliedFiltersCount || n.secondaryLabel || n.hasChevron,
83
+ "b-filter-bar-button--with-secondary-label": n.secondaryLabel,
84
+ "b-filter-bar-button--with-chevron": n.hasChevron
85
+ })), A = (d) => {
86
+ n.disabled || s("click", d);
87
+ };
88
+ return (d, g) => (m(), E(_(ut), {
89
+ ref_key: "filterBarButtonRef",
90
+ ref: r,
91
+ class: _e(["b-filter-bar-button", I.value]),
92
+ disabled: e.disabled,
93
+ "aria-label": _(o),
94
+ "aria-controls": p.value["aria-controls"],
95
+ type: "button",
96
+ onClick: A
97
+ }, {
98
+ iconRight: F(() => [
99
+ e.appliedFiltersCount && !e.hasChevron ? (m(), E(_(me), {
100
+ key: 0,
101
+ class: "b-filter-bar-button__counter",
102
+ el: "span",
103
+ variant: "body",
104
+ stronger: ""
105
+ }, {
106
+ default: F(() => [
107
+ H(M(e.appliedFiltersCount), 1)
108
+ ]),
109
+ _: 1
110
+ })) : J("", !0),
111
+ e.hasChevron ? (m(), q("div", il, [
112
+ e.isFilterOpen ? (m(), E(_(bt), {
113
+ key: 0,
114
+ "aria-hidden": "true"
115
+ })) : (m(), E(_(ft), {
116
+ key: 1,
117
+ "aria-hidden": "true"
118
+ }))
119
+ ])) : J("", !0)
120
+ ]),
121
+ default: F(() => [
122
+ w("div", ol, [
123
+ _(a)("iconLeft") ? re(d.$slots, "iconLeft", { key: 0 }, void 0, !0) : J("", !0),
124
+ w("div", sl, [
125
+ C(_(me), {
126
+ el: "span",
127
+ variant: "body",
128
+ stronger: "",
129
+ class: "b-filter-bar-button__label"
130
+ }, {
131
+ default: F(() => [
132
+ re(d.$slots, "default", {}, void 0, !0)
133
+ ]),
134
+ _: 3
135
+ }),
136
+ e.secondaryLabel ? (m(), E(_(me), {
137
+ key: 0,
138
+ el: "span",
139
+ variant: "body",
140
+ stronger: "",
141
+ class: "b-filter-bar-button__secondary-label"
142
+ }, {
143
+ default: F(() => [
144
+ H(M(e.secondaryLabel), 1)
145
+ ]),
146
+ _: 1
147
+ })) : J("", !0)
148
+ ])
149
+ ])
150
+ ]),
151
+ _: 3
152
+ }, 8, ["class", "disabled", "aria-label", "aria-controls"]));
153
+ }
154
+ }), Be = /* @__PURE__ */ W(ul, [["__scopeId", "data-v-fe3e2223"]]);
155
+ var S = /* @__PURE__ */ ((e) => (e.INPUT = "input", e.UPDATE = "update", e))(S || {}), De = /* @__PURE__ */ ((e) => (e.INPUT = "input", e.UPDATE_FILTER_VALUES = "update:filter-values", e))(De || {}), le = /* @__PURE__ */ ((e) => (e.INPUT = "BentoInputFilter", e.BOOLEAN = "BentoBooleanFilter", e.RANGE = "BentoRangeFilter", e.SELECT = "BentoSelectFilter", e.SELECT_AVATAR = "BentoSelectAvatarFilter", e.SELECT_COUNTRY = "BentoSelectCountryFilter", e.SELECT_CURRENCY = "BentoSelectCurrencyFilter", e.SELECT_PAYMENT_METHOD = "BentoSelectPaymentMethodFilter", e.SELECT_TAG = "BentoSelectTagFilter", e.DATE = "BentoDateFilter", e.DATE_RANGE = "BentoDateRangeFilter", e))(le || {}), ne = /* @__PURE__ */ ((e) => (e.APPLY = "apply", e.CLEAR = "clear", e.OPEN = "open", e.CLOSE = "close", e.RESET = "reset", e))(ne || {});
156
+ const Qe = {
157
+ "en-US": {
158
+ clear: "Clear",
159
+ apply: "Apply",
160
+ reset: "Reset",
161
+ filterButton: "Filter by {function}"
162
+ },
163
+ "de-DE": {
164
+ clear: "Alle löschen",
165
+ apply: "Bewerben"
166
+ },
167
+ "fr-FR": {
168
+ clear: "Effacer",
169
+ apply: "Postuler"
170
+ },
171
+ "ja-JP": {
172
+ clear: "クリア",
173
+ apply: "適用"
174
+ },
175
+ "pt-BR": {
176
+ clear: "Limpar",
177
+ apply: "Candidatar-se"
178
+ },
179
+ "es-ES": {
180
+ clear: "Borrar",
181
+ apply: "Aplicar"
182
+ }
183
+ }, dl = G({
184
+ i18n: { messages: Qe },
185
+ name: "bento-base-filter",
186
+ components: {
187
+ BentoPopover: ze,
188
+ BentoTeleport: jt,
189
+ FilterBarButton: Be
190
+ },
191
+ directives: { BentoClickOutsideDirective: Mt },
192
+ props: {
193
+ /**
194
+ * Total count of applied filters
195
+ */
196
+ appliedFiltersCount: { type: [String, Number], default: null },
197
+ /**
198
+ * Overrides the label of the popover visibility toggle button text.
199
+ */
200
+ buttonLabel: { type: String, default: void 0 },
201
+ /**
202
+ * Sets the secondary label text of the popover visibility toggle button text.
203
+ */
204
+ buttonSecondaryLabel: { type: String, default: void 0 },
205
+ /**
206
+ * Default value of the filter to reset to.
207
+ */
208
+ defaultValue: {
209
+ type: [Object, Number, Boolean, Array, String],
210
+ default: null
211
+ },
212
+ /**
213
+ * Renders the base filter's slot content only - leaving out the button and the popover.
214
+ * Used for the allFiltersModal component.
215
+ */
216
+ onlySlot: { type: Boolean, default: !1 },
217
+ /**
218
+ * Allows to handle the controls (apply/clear) from outside
219
+ * of the component
220
+ */
221
+ controlled: { type: Boolean, default: !1 },
222
+ /**
223
+ * Disable the "apply" button
224
+ */
225
+ disableApplyButton: { type: Boolean, default: !1 },
226
+ /**
227
+ * Disable the secondary button action.
228
+ */
229
+ disableSecondaryButton: { type: Boolean, default: !1 },
230
+ /**
231
+ * Filter name/key referencing the actual property name in the data set.
232
+ * Should be unique per filter bar.
233
+ */
234
+ field: { type: String, required: !0 },
235
+ /**
236
+ * Label text to be displayed
237
+ */
238
+ label: { type: String, required: !0 },
239
+ /**
240
+ * Sets the size of the container to fit its content
241
+ */
242
+ fitContent: ze.props.fitContent
243
+ },
244
+ emits: [
245
+ ne.APPLY,
246
+ ne.CLEAR,
247
+ ne.OPEN,
248
+ ne.CLOSE,
249
+ ne.RESET
250
+ ],
251
+ setup(e, { emit: l }) {
252
+ const { t: n } = de({ messages: Qe }), s = qe("base-filter-popover"), t = R(!1), i = R(null), a = R(null), u = b(() => e.defaultValue !== null), o = b(
253
+ () => u.value ? n("filterButton", {
254
+ function: e.label
255
+ }) : r.value
256
+ ), r = b(() => e.buttonLabel || e.label), p = () => {
257
+ t.value && (t.value = !1, st(() => {
258
+ var P, k;
259
+ (k = (P = i.value) == null ? void 0 : P.$el) == null || k.focus();
260
+ }), l(ne.CLOSE));
261
+ }, I = () => {
262
+ p(), u.value ? l(ne.RESET) : l(ne.CLEAR);
263
+ }, A = () => p(), d = () => {
264
+ t.value ? p() : (t.value = !0, l(ne.OPEN));
265
+ }, g = () => {
266
+ p(), l(ne.APPLY);
267
+ }, V = b(() => [
268
+ {
269
+ title: n("apply"),
270
+ event: g,
271
+ disabled: e.disableApplyButton
272
+ },
273
+ {
274
+ title: u.value ? n("reset") : n("clear"),
275
+ event: I,
276
+ disabled: e.disableSecondaryButton
277
+ }
278
+ ]);
279
+ return he(
280
+ () => t.value,
281
+ (P, k) => {
282
+ var U, $;
283
+ !P && k && ($ = (U = i.value) == null ? void 0 : U.filterBarButtonRef) != null && $.bentoBaseButtonRef && i.value.filterBarButtonRef.bentoBaseButtonRef.focus();
284
+ }
285
+ ), Ht(a, A, { ignore: [i] }), {
286
+ // Values
287
+ actions: V,
288
+ popoverId: s,
289
+ isFilterOpen: t,
290
+ isPersistentFilter: u,
291
+ computedAriaLabel: o,
292
+ computedButtonText: r,
293
+ // Enums
294
+ BentoTooltipPosition: Kt,
295
+ // Events
296
+ onClickFilter: d,
297
+ onClickApply: g,
298
+ onClickSecondaryAction: I,
299
+ onClickOutside: A,
300
+ closePopover: p,
301
+ // Refs
302
+ filterButtonRef: i,
303
+ popoverRef: a
304
+ };
305
+ }
306
+ }), cl = { key: 0 }, bl = {
307
+ key: 1,
308
+ class: "b-base-filter"
309
+ };
310
+ function fl(e, l, n, s, t, i) {
311
+ const a = D("filter-bar-button"), u = D("bento-popover"), o = D("bento-teleport");
312
+ return e.onlySlot ? (m(), q("div", cl, [
313
+ re(e.$slots, "default", {}, void 0, !0)
314
+ ])) : (m(), q("div", bl, [
315
+ C(a, {
316
+ ref: "filterButtonRef",
317
+ "aria-label": e.computedAriaLabel,
318
+ "aria-controls": e.isFilterOpen ? e.popoverId : null,
319
+ "has-chevron": e.isPersistentFilter,
320
+ "is-filter-open": e.isFilterOpen,
321
+ "applied-filters-count": e.appliedFiltersCount,
322
+ "secondary-label": e.buttonSecondaryLabel,
323
+ onClick: e.onClickFilter,
324
+ onKeydown: ye(e.closePopover, ["esc"])
325
+ }, {
326
+ default: F(() => [
327
+ H(M(e.computedButtonText), 1)
328
+ ]),
329
+ _: 1
330
+ }, 8, ["aria-label", "aria-controls", "has-chevron", "is-filter-open", "applied-filters-count", "secondary-label", "onClick", "onKeydown"]),
331
+ e.filterButtonRef ? (m(), E(o, { key: 0 }, {
332
+ default: F(() => [
333
+ e.filterButtonRef ? (m(), E(u, {
334
+ key: 0,
335
+ id: e.popoverId,
336
+ ref: "popoverRef",
337
+ class: "b-base-filter__popover",
338
+ divider: "",
339
+ open: e.isFilterOpen,
340
+ actions: e.controlled ? null : e.actions,
341
+ "actions-layout": "space-between",
342
+ "target-element": e.filterButtonRef,
343
+ title: e.controlled ? null : e.label,
344
+ "fit-content": e.fitContent,
345
+ position: "bottom-start",
346
+ "without-space": e.controlled,
347
+ "fallback-position": ["bottom-end"]
348
+ }, {
349
+ default: F(() => [
350
+ w("div", {
351
+ onKeydown: l[0] || (l[0] = ye((...r) => e.closePopover && e.closePopover(...r), ["esc"]))
352
+ }, [
353
+ re(e.$slots, "default", {}, void 0, !0)
354
+ ], 32)
355
+ ]),
356
+ _: 3
357
+ }, 8, ["id", "open", "actions", "target-element", "title", "fit-content", "without-space"])) : J("", !0)
358
+ ]),
359
+ _: 3
360
+ })) : J("", !0)
361
+ ]));
362
+ }
363
+ const Ce = /* @__PURE__ */ W(dl, [["render", fl], ["__scopeId", "data-v-f1b07c85"]]), vl = (e) => e instanceof Array, Xe = (e) => vl(e) ? e.length === 0 || e.every((l) => l === "") : !e, xe = (e, l) => JSON.stringify(e) === JSON.stringify(l), Fe = (e, l) => {
364
+ const n = R(e.value);
365
+ he(
366
+ () => e.value,
367
+ () => {
368
+ n.value = e.value;
369
+ }
370
+ );
371
+ const s = b(() => Xe(e.value)), t = b(
372
+ () => l.value !== null ? xe(l.value, e.value) : s.value
373
+ ), i = b(() => xe(n.value, e.value) || Xe(n.value) && s.value);
374
+ return {
375
+ internalFilterValue: n,
376
+ isSecondaryButtonDisabled: t,
377
+ isApplyButtonDisabled: i
378
+ };
379
+ }, be = (e, l) => {
380
+ const n = e == null ? void 0 : e.toString();
381
+ return (n == null ? void 0 : n.length) > l ? `${n == null ? void 0 : n.slice(0, l)}...` : n;
382
+ }, pl = G({
383
+ name: "bento-input-filter",
384
+ components: {
385
+ BentoBaseFilter: Ce,
386
+ BentoInputField: vt
387
+ },
388
+ props: {
389
+ /**
390
+ * Default value of the filter to reset to.
391
+ */
392
+ defaultValue: { type: String, default: null },
393
+ /**
394
+ * Filter name/key referencing the actual property name in the data set.
395
+ * Should be unique per filter bar.
396
+ */
397
+ field: { type: String, required: !0 },
398
+ /**
399
+ * Label text to be displayed
400
+ */
401
+ label: { type: String, required: !0 },
402
+ /**
403
+ * Current value of the filter.
404
+ * If the options.variant is equal to 'dropdown', the value should be of type `{ inputValue: string | null; dropdownValue?: string }`.
405
+ */
406
+ value: { type: [String, Object], default: null },
407
+ /**
408
+ * Renders the base filter's slot content only - leaving out the button and the popover.
409
+ * Used for the allFiltersModal component.
410
+ */
411
+ onlySlot: { type: Boolean, default: !1 },
412
+ /**
413
+ * List of options that are needed to setup the filter
414
+ * Available options:
415
+ * - dropdown: all the dropdown properties that can be set in the inner dropdown of the input field. @see BentoDropdown for more info.
416
+ * - dropdownPosition: allow the user to set the dropdown on the left or right side. Accepts the `start` or `end` values.
417
+ */
418
+ options: {
419
+ type: Object,
420
+ default: void 0
421
+ }
422
+ },
423
+ emits: [S.INPUT, S.UPDATE],
424
+ setup(e, { emit: l }) {
425
+ var Y, B;
426
+ const n = R(null), s = R((B = (Y = e == null ? void 0 : e.options) == null ? void 0 : Y.dropdown) == null ? void 0 : B.value), t = b(
427
+ () => {
428
+ var c, f;
429
+ return ((c = e == null ? void 0 : e.options) == null ? void 0 : c.variant) === "dropdown" && ((f = e == null ? void 0 : e.options) == null ? void 0 : f.dropdown) !== void 0;
430
+ }
431
+ ), i = b(
432
+ () => {
433
+ var c;
434
+ return t.value ? { ...(c = e == null ? void 0 : e.options) == null ? void 0 : c.dropdown, value: s.value } : void 0;
435
+ }
436
+ ), a = b(() => {
437
+ var c;
438
+ return ((c = e == null ? void 0 : e.options) == null ? void 0 : c.variant) === "dropdown" ? "dropdown" : "default";
439
+ }), u = b(
440
+ () => {
441
+ var c;
442
+ return t.value ? (c = e.value) == null ? void 0 : c.inputValue : e == null ? void 0 : e.value;
443
+ }
444
+ ), { internalFilterValue: o, isSecondaryButtonDisabled: r, isApplyButtonDisabled: p } = Fe(
445
+ u,
446
+ Q(e, "defaultValue")
447
+ ), I = b(
448
+ () => e.defaultValue === null ? e.label : be(u.value, 18)
449
+ ), A = b(
450
+ () => e.defaultValue === null ? be(u.value, 12) : null
451
+ ), d = b(() => ({
452
+ "b-input-filter--only-slot": e.onlySlot
453
+ }));
454
+ He(() => {
455
+ o.value === "" && (o.value = null);
456
+ }), he(n, () => {
457
+ var c;
458
+ (c = n.value) == null || c.focusInput();
459
+ });
460
+ const g = () => {
461
+ o.value = u.value;
462
+ }, V = () => {
463
+ !o.value && e.defaultValue !== null && (o.value = e.defaultValue), l(S.UPDATE, {
464
+ ...e,
465
+ value: t.value ? { inputValue: o.value, dropdownValue: s.value } : o.value
466
+ });
467
+ }, P = () => l(S.UPDATE, { ...e, value: e.defaultValue }), k = () => {
468
+ o.value = null, V();
469
+ }, U = () => {
470
+ l(S.INPUT, { ...e, value: o.value });
471
+ }, $ = (c) => {
472
+ o.value = c;
473
+ }, j = (c) => {
474
+ s.value = c;
475
+ };
476
+ return Vt(Nt, t.value), {
477
+ // Values
478
+ buttonLabel: I,
479
+ buttonSecondaryLabel: A,
480
+ conditionalClasses: d,
481
+ dropdownProp: i,
482
+ inputVariant: a,
483
+ internalFilterValue: o,
484
+ isApplyButtonDisabled: p,
485
+ isDropdownVariant: t,
486
+ isSecondaryButtonDisabled: r,
487
+ // Refs
488
+ inputTextRef: n,
489
+ // Events
490
+ updateFilter: V,
491
+ clearFilter: k,
492
+ openFilter: g,
493
+ resetFilter: P,
494
+ onDropdownInput: j,
495
+ onInput: U,
496
+ setInternalFilterValue: $
497
+ };
498
+ }
499
+ });
500
+ function ml(e, l, n, s, t, i) {
501
+ const a = D("bento-input-field"), u = D("bento-base-filter");
502
+ return m(), E(u, ue(e.$props, {
503
+ "button-label": e.buttonLabel,
504
+ "button-secondary-label": e.buttonSecondaryLabel,
505
+ "disable-apply-button": e.isApplyButtonDisabled,
506
+ "disable-secondary-button": e.isSecondaryButtonDisabled,
507
+ "only-slot": e.onlySlot,
508
+ "popover-overflow-visible": e.isDropdownVariant,
509
+ onApply: e.updateFilter,
510
+ onClear: e.clearFilter,
511
+ onOpen: e.openFilter,
512
+ onReset: e.resetFilter
513
+ }), {
514
+ default: F(() => {
515
+ var o;
516
+ return [
517
+ w("div", {
518
+ class: _e(["b-input-filter", e.conditionalClasses]),
519
+ onKeydown: l[0] || (l[0] = ye((...r) => e.updateFilter && e.updateFilter(...r), ["enter"])),
520
+ onInput: l[1] || (l[1] = (...r) => e.onInput && e.onInput(...r))
521
+ }, [
522
+ C(a, {
523
+ ref: "inputTextRef",
524
+ dropdown: e.dropdownProp,
525
+ "dropdown-position": (o = e.options) == null ? void 0 : o.dropdownPosition,
526
+ variant: e.inputVariant,
527
+ value: e.internalFilterValue,
528
+ onInput: e.setInternalFilterValue,
529
+ onDropdownInput: e.onDropdownInput
530
+ }, null, 8, ["dropdown", "dropdown-position", "variant", "value", "onInput", "onDropdownInput"])
531
+ ], 34)
532
+ ];
533
+ }),
534
+ _: 1
535
+ }, 16, ["button-label", "button-secondary-label", "disable-apply-button", "disable-secondary-button", "only-slot", "popover-overflow-visible", "onApply", "onClear", "onOpen", "onReset"]);
536
+ }
537
+ const Ft = /* @__PURE__ */ W(pl, [["render", ml], ["__scopeId", "data-v-4f3a323d"]]), yl = G({
538
+ name: "bento-date-filter",
539
+ components: {
540
+ BentoBaseFilter: Ce,
541
+ BentoDatePicker: Gt,
542
+ BentoDivider: je,
543
+ Calendar: Wt
544
+ },
545
+ props: {
546
+ isDateInput: { type: Boolean, default: !0 },
547
+ /**
548
+ * Default value of the filter to reset to.
549
+ */
550
+ defaultValue: { type: Date, default: null },
551
+ /**
552
+ * Filter name/key referencing the actual property name in the data set.
553
+ * Should be unique per filter bar.
554
+ */
555
+ field: { type: String, required: !0 },
556
+ /**
557
+ * Label text to be displayed
558
+ */
559
+ label: { type: String, required: !0 },
560
+ /**
561
+ * Renders the base filter's slot content only - leaving out the button and the popover.
562
+ * Used for the allFiltersModal component.
563
+ */
564
+ onlySlot: { type: Boolean, default: !1 },
565
+ /**
566
+ * List of options that are needed to setup the filter
567
+ * Available options:
568
+ * - firstDayOfWeek: Allows you to set the first day of the week. 0 is sunday, 1 is monday, 6 is saturday
569
+ * - isDateDisabled: Indicate if a date should be disabled or not
570
+ */
571
+ options: {
572
+ type: Object,
573
+ default: void 0
574
+ },
575
+ /**
576
+ * Current value of the filter
577
+ */
578
+ value: { type: Date, default: void 0 }
579
+ },
580
+ emits: [S.INPUT, S.UPDATE],
581
+ setup(e, { emit: l }) {
582
+ const { locale: n } = de(void 0, !0), s = { de: mt, enUS: ie, fr: yt }, { internalFilterValue: t, isSecondaryButtonDisabled: i, isApplyButtonDisabled: a } = Fe(
583
+ Q(e, "value"),
584
+ Q(e, "defaultValue")
585
+ ), u = b(
586
+ () => e.value ? pe(e.value, "dd MMM, yyyy", {
587
+ locale: s[n.value.substring(0, 2)] || ie
588
+ }) : null
589
+ ), o = b(
590
+ () => e.defaultValue === null ? e.label : u.value
591
+ ), r = b(
592
+ () => e.defaultValue === null ? u.value : null
593
+ ), p = () => {
594
+ l(S.UPDATE, { ...e, value: t.value });
595
+ }, I = () => {
596
+ t.value = null, p();
597
+ }, A = () => {
598
+ t.value = e.defaultValue, p();
599
+ }, d = () => {
600
+ t.value = e.value;
601
+ }, g = (P) => {
602
+ t.value = P, l(S.INPUT, { ...e, value: t.value });
603
+ };
604
+ return {
605
+ // Values
606
+ internalFilterValue: t,
607
+ isApplyButtonDisabled: a,
608
+ isSecondaryButtonDisabled: i,
609
+ buttonLabel: o,
610
+ buttonSecondaryLabel: r,
611
+ // Events
612
+ clearFilter: I,
613
+ onDateSelected: g,
614
+ openFilter: d,
615
+ updateFilter: p,
616
+ resetFilter: A,
617
+ onDateInputSelected: (P) => {
618
+ t.value = P, g(P), p();
619
+ }
620
+ };
621
+ }
622
+ }), hl = { class: "b-date-filter" };
623
+ function Fl(e, l, n, s, t, i) {
624
+ const a = D("bento-date-picker"), u = D("bento-divider"), o = D("calendar"), r = D("bento-base-filter");
625
+ return m(), E(r, {
626
+ "button-label": e.buttonLabel,
627
+ "button-secondary-label": e.buttonSecondaryLabel,
628
+ "default-value": e.defaultValue,
629
+ "disable-apply-button": e.isApplyButtonDisabled,
630
+ "disable-secondary-button": e.isSecondaryButtonDisabled,
631
+ field: e.field,
632
+ label: e.label,
633
+ "only-slot": e.onlySlot,
634
+ "fit-content": "",
635
+ onApply: e.updateFilter,
636
+ onClear: e.clearFilter,
637
+ onOpen: e.openFilter,
638
+ onReset: e.resetFilter
639
+ }, {
640
+ default: F(() => {
641
+ var p, I, A, d;
642
+ return [
643
+ e.onlySlot ? (m(), E(a, {
644
+ key: 0,
645
+ value: e.internalFilterValue,
646
+ "first-day-of-week": (p = e.options) == null ? void 0 : p.firstDayOfWeek,
647
+ "is-date-disabled": (I = e.options) == null ? void 0 : I.isDateDisabled,
648
+ onInput: e.onDateInputSelected
649
+ }, null, 8, ["value", "first-day-of-week", "is-date-disabled", "onInput"])) : (m(), q(Te, { key: 1 }, [
650
+ C(u, { class: "b-date-filter__divider" }),
651
+ w("div", hl, [
652
+ C(o, {
653
+ "first-day-of-week": (A = e.options) == null ? void 0 : A.firstDayOfWeek,
654
+ "is-date-disabled": (d = e.options) == null ? void 0 : d.isDateDisabled,
655
+ "number-of-months": 1,
656
+ value: e.internalFilterValue,
657
+ onInput: e.onDateSelected
658
+ }, null, 8, ["first-day-of-week", "is-date-disabled", "value", "onInput"])
659
+ ])
660
+ ], 64))
661
+ ];
662
+ }),
663
+ _: 1
664
+ }, 8, ["button-label", "button-secondary-label", "default-value", "disable-apply-button", "disable-secondary-button", "field", "label", "only-slot", "onApply", "onClear", "onOpen", "onReset"]);
665
+ }
666
+ const gt = /* @__PURE__ */ W(yl, [["render", Fl], ["__scopeId", "data-v-66ffdc53"]]), et = {
667
+ "en-US": {
668
+ clear: "Clear",
669
+ reset: "Reset",
670
+ apply: "Apply"
671
+ },
672
+ "de-DE": {
673
+ clear: "Alle löschen",
674
+ apply: "Bewerben"
675
+ },
676
+ "fr-FR": {
677
+ clear: "Effacer",
678
+ apply: "Postuler"
679
+ },
680
+ "ja-JP": {
681
+ clear: "クリア",
682
+ apply: "適用"
683
+ },
684
+ "pt-BR": {
685
+ clear: "Limpar",
686
+ apply: "Candidatar-se"
687
+ },
688
+ "es-ES": {
689
+ clear: "Borrar",
690
+ apply: "Aplicar"
691
+ }
692
+ }, gl = G({
693
+ i18n: { messages: et },
694
+ name: "bento-date-range-filter",
695
+ components: {
696
+ BentoBaseFilter: Ce,
697
+ BentoButtonActions: xt,
698
+ BentoDateRangePicker: Qt,
699
+ BentoTypography: me,
700
+ BentoDivider: je,
701
+ DateRangePickerCalendar: Xt
702
+ },
703
+ props: {
704
+ /**
705
+ * Default value of the filter to reset to.
706
+ */
707
+ defaultValue: { type: Object, default: null },
708
+ /**
709
+ * Filter name/key referencing the actual property name in the data set.
710
+ * Should be unique per filter bar.
711
+ */
712
+ field: { type: String, required: !0 },
713
+ /**
714
+ * Label text to be displayed
715
+ */
716
+ label: { type: String, required: !0 },
717
+ /**
718
+ * Renders the base filter's slot content only - leaving out the button and the popover.
719
+ * Used for the allFiltersModal component.
720
+ */
721
+ onlySlot: { type: Boolean, default: !1 },
722
+ /**
723
+ * List of options that are needed to setup the filter
724
+ * Available options:
725
+ * - allowTimeInput: Allows user to enter time values in the form
726
+ * - firstDayOfWeek: Allows user to set the first day of the week. 0 is sunday, 1 is monday, 6 is saturday
727
+ * - isDateDisabled: Indicate if a date should be disabled or not
728
+ * - maxRange: Set a maximum number of dates to be selectable by the range
729
+ * - numberOfMonths: Number of months rendered on pane
730
+ * - quickSelectRanges: An array that sets the custom range dropdown items. @see BentoDateRangePicker
731
+ * - showEndDateOnOpen: Upon opening date range picker, end date's month will be pre-selected.
732
+ */
733
+ options: {
734
+ type: Object,
735
+ default: void 0
736
+ },
737
+ /**
738
+ * Current value of the filter
739
+ */
740
+ value: {
741
+ type: Object,
742
+ default: () => ({ startDate: void 0, endDate: void 0 })
743
+ }
744
+ },
745
+ emits: [S.INPUT, S.UPDATE],
746
+ setup(e, { emit: l }) {
747
+ var se, oe, fe, z;
748
+ const { locale: n, t: s } = de({ messages: et }), t = { de: mt, enUS: ie, fr: yt }, { internalFilterValue: i, isSecondaryButtonDisabled: a, isApplyButtonDisabled: u } = Fe(
749
+ Q(e, "value"),
750
+ Q(e, "defaultValue")
751
+ ), o = R(!1), r = (h) => h ? pe(h, We.NUMERIC_DATE_YEAR_FIRST, {
752
+ locale: t[n.value.substring(0, 2)] || ie
753
+ }) : void 0, p = (h) => h ? pe(h, We.HOUR_MINUTE_SECONDS, {
754
+ locale: t[n.value.substring(0, 2)] || ie
755
+ }) : "", I = R(null), A = R(!1), d = it({
756
+ startDate: r((se = e.value) == null ? void 0 : se.startDate),
757
+ endDate: r((oe = e.value) == null ? void 0 : oe.endDate),
758
+ startTime: p((fe = e.value) == null ? void 0 : fe.startDate),
759
+ endTime: p((z = e.value) == null ? void 0 : z.endDate)
760
+ });
761
+ function g(h) {
762
+ return (h == null ? void 0 : h.length) !== void 0;
763
+ }
764
+ const V = b(() => {
765
+ var h, K, O, y, v, T, N, Z, x;
766
+ if (!((h = e.value) != null && h.startDate) && !e.value.endDate)
767
+ return null;
768
+ if (g((K = e.options) == null ? void 0 : K.quickSelectRanges) && ((y = (O = e.options) == null ? void 0 : O.quickSelectRanges) == null ? void 0 : y.length) > 0) {
769
+ const ee = (T = (v = e.options) == null ? void 0 : v.quickSelectRanges) == null ? void 0 : T.find(
770
+ ({ data: te }) => Ge(te == null ? void 0 : te.startDate, e.value.startDate) && Ge(te == null ? void 0 : te.endDate, e.value.endDate)
771
+ );
772
+ if (ee)
773
+ return ee.label;
774
+ }
775
+ return Zt((N = e.value) == null ? void 0 : N.startDate, (Z = e.value) == null ? void 0 : Z.endDate) && ((x = e == null ? void 0 : e.options) != null && x.allowTimeInput) ? `${pe(e.value.startDate, "dd MMM, yyyy HH:mm:ss", {
776
+ locale: t[n.value.substring(0, 2)] || ie
777
+ })} - ${pe(e.value.endDate, "HH:mm:ss", {
778
+ locale: t[n.value.substring(0, 2)] || ie
779
+ })}` : `${pe(e.value.startDate, "dd MMM, yyyy", {
780
+ locale: t[n.value.substring(0, 2)] || ie
781
+ })} - ${pe(e.value.endDate, "dd MMM, yyyy", {
782
+ locale: t[n.value.substring(0, 2)] || ie
783
+ })}`;
784
+ }), P = b(
785
+ () => e.defaultValue === null ? e.label : V.value
786
+ ), k = b(
787
+ () => e.defaultValue === null ? V.value : null
788
+ ), U = () => {
789
+ I.value.closePopover();
790
+ const { onlySlot: h, ...K } = e;
791
+ l(S.UPDATE, { ...K, value: i.value });
792
+ }, $ = () => {
793
+ i.value = void 0, U();
794
+ }, j = () => {
795
+ i.value = e.defaultValue, U();
796
+ }, Y = () => {
797
+ i.value = e.value;
798
+ }, B = (h) => {
799
+ o.value = !1, i.value = h, d.startDate = r(h.startDate), d.endDate = r(h.endDate), l(S.INPUT, { ...e, value: i.value });
800
+ }, c = (h) => {
801
+ h != null && h.startDate && (h != null && h.endDate) && (i.value = h, d.startDate = r(h.startDate), d.endDate = r(h.endDate), l(S.INPUT, { ...e, value: i.value }));
802
+ }, f = (h) => {
803
+ B(h), l(S.INPUT, { ...e, value: i.value });
804
+ }, L = b(
805
+ () => [
806
+ {
807
+ title: s("apply"),
808
+ event: U,
809
+ disabled: o.value || A.value || u.value
810
+ },
811
+ {
812
+ title: e.defaultValue ? s("reset") : s("clear"),
813
+ event: e.defaultValue ? j : $,
814
+ disabled: A.value && a.value
815
+ }
816
+ ]
817
+ );
818
+ return {
819
+ // Refs
820
+ baseFilter: I,
821
+ // Values
822
+ actions: L,
823
+ formData: d,
824
+ internalFilterValue: i,
825
+ isApplyButtonDisabled: u,
826
+ isSecondaryButtonDisabled: a,
827
+ isSelectingDate: o,
828
+ buttonLabel: P,
829
+ buttonSecondaryLabel: k,
830
+ // Events
831
+ onDateSelected: B,
832
+ openFilter: Y,
833
+ updateFilter: U,
834
+ onDatePickerRangeError: () => {
835
+ A.value = !0, i.value = { startDate: void 0, endDate: void 0 }, l(S.INPUT, { ...e, value: i.value });
836
+ },
837
+ onDatePickerRangeFormDateInputUpdate: (h) => {
838
+ A.value = !1, h.startTime && (d.startTime = h.startTime), h.endTime && (d.endTime = h.endTime);
839
+ },
840
+ onDateInputSelected: f,
841
+ onRangeSelectorInput: c
842
+ };
843
+ }
844
+ }), Sl = {
845
+ key: 1,
846
+ class: "b-date-range-filter"
847
+ };
848
+ function Bl(e, l, n, s, t, i) {
849
+ const a = D("bento-date-range-picker"), u = D("bento-typography"), o = D("bento-divider"), r = D("bento-button-actions"), p = D("date-range-picker-calendar"), I = D("bento-base-filter");
850
+ return m(), E(I, {
851
+ ref: "baseFilter",
852
+ class: "b-base-filter-date-range-filter",
853
+ "button-label": e.buttonLabel,
854
+ "button-secondary-label": e.buttonSecondaryLabel,
855
+ controlled: !e.onlySlot,
856
+ "disable-apply-button": e.isApplyButtonDisabled,
857
+ "disable-secondary-button": e.isSecondaryButtonDisabled,
858
+ "default-value": e.defaultValue,
859
+ field: e.field,
860
+ label: e.label,
861
+ "only-slot": e.onlySlot,
862
+ "fit-content": "",
863
+ onOpen: e.openFilter
864
+ }, {
865
+ default: F(() => {
866
+ var A, d, g, V, P, k, U, $, j, Y, B, c, f, L, X;
867
+ return [
868
+ e.onlySlot ? (m(), E(a, {
869
+ key: 0,
870
+ "allow-time-input": (A = e.options) == null ? void 0 : A.allowTimeInput,
871
+ value: e.internalFilterValue,
872
+ "first-day-of-week": (d = e.options) == null ? void 0 : d.firstDayOfWeek,
873
+ "is-date-disabled": (g = e.options) == null ? void 0 : g.isDateDisabled,
874
+ "number-of-months": (V = e.options) == null ? void 0 : V.numberOfMonths,
875
+ "quick-select-ranges": (P = e.options) == null ? void 0 : P.quickSelectRanges,
876
+ onInput: e.onDateInputSelected
877
+ }, null, 8, ["allow-time-input", "value", "first-day-of-week", "is-date-disabled", "number-of-months", "quick-select-ranges", "onInput"])) : (m(), q("div", Sl, [
878
+ C(p, {
879
+ "allow-time-input": (k = e.options) == null ? void 0 : k.allowTimeInput,
880
+ "first-day-of-week": (U = e.options) == null ? void 0 : U.firstDayOfWeek,
881
+ "is-date-disabled": ($ = e.options) == null ? void 0 : $.isDateDisabled,
882
+ granularities: (j = e.options) == null ? void 0 : j.granularities,
883
+ "max-range": (Y = e.options) == null ? void 0 : Y.maxRange,
884
+ min: (B = e.options) == null ? void 0 : B.min,
885
+ max: (c = e.options) == null ? void 0 : c.max,
886
+ "number-of-months": (f = e.options) == null ? void 0 : f.numberOfMonths,
887
+ "quick-select-ranges": (L = e.options) == null ? void 0 : L.quickSelectRanges,
888
+ value: e.internalFilterValue,
889
+ "date-form-data": e.formData,
890
+ "show-end-date-on-open": (X = e.options) == null ? void 0 : X.showEndDateOnOpen,
891
+ onInput: e.onDateSelected,
892
+ onCustomRange: e.onRangeSelectorInput,
893
+ onError: e.onDatePickerRangeError,
894
+ onFormDate: e.onDatePickerRangeFormDateInputUpdate,
895
+ onStartDateSelected: l[0] || (l[0] = (ae) => e.isSelectingDate = !0)
896
+ }, {
897
+ title: F(() => [
898
+ C(u, {
899
+ strongest: "",
900
+ variant: "body",
901
+ el: "span"
902
+ }, {
903
+ default: F(() => [
904
+ H(M(e.label), 1)
905
+ ]),
906
+ _: 1
907
+ })
908
+ ]),
909
+ actions: F(() => [
910
+ C(o, { class: "b-date-range-filter__divider" }),
911
+ C(r, {
912
+ class: "b-date-range-filter__actions",
913
+ actions: e.actions,
914
+ layout: "space-between"
915
+ }, null, 8, ["actions"])
916
+ ]),
917
+ _: 1
918
+ }, 8, ["allow-time-input", "first-day-of-week", "is-date-disabled", "granularities", "max-range", "min", "max", "number-of-months", "quick-select-ranges", "value", "date-form-data", "show-end-date-on-open", "onInput", "onCustomRange", "onError", "onFormDate"])
919
+ ]))
920
+ ];
921
+ }),
922
+ _: 1
923
+ }, 8, ["button-label", "button-secondary-label", "controlled", "disable-apply-button", "disable-secondary-button", "default-value", "field", "label", "only-slot", "onOpen"]);
924
+ }
925
+ const St = /* @__PURE__ */ W(gl, [["render", Bl], ["__scopeId", "data-v-d02451b0"]]), Bt = {
926
+ "en-US": {
927
+ all: "All",
928
+ noFiltersMatchThisSearch: "No filters match this search",
929
+ searchFilter: "Search {filter}"
930
+ }
931
+ }, _l = { class: "b-select-filter-button__search-bar" }, Cl = { class: "b-select-filter-button__divider" }, Al = {
932
+ i18n: { messages: Bt }
933
+ }, $l = /* @__PURE__ */ G({
934
+ ...Al,
935
+ __name: "select-filter-button",
936
+ props: {
937
+ /**
938
+ * Default value of the filter to reset to.
939
+ *
940
+ */
941
+ defaultValue: {
942
+ type: [String, Number, Array],
943
+ default: null
944
+ },
945
+ /**
946
+ * Filter name/key referencing the actual property name in the data set.
947
+ * Should be unique per filter bar.
948
+ */
949
+ field: { type: String, required: !0 },
950
+ /**
951
+ * Label text to be displayed
952
+ */
953
+ label: { type: String, required: !0 },
954
+ /**
955
+ * Renders the base filter's slot content only - leaving out the button and the popover.
956
+ * Used for the allFiltersModal component.
957
+ */
958
+ onlySlot: { type: Boolean, default: !1 },
959
+ /**
960
+ * List of options that are needed to setup the filter
961
+ * Available options:
962
+ * - multiple: If "true", the user will be able to select multiple items.
963
+ * - listboxItems: The option elements to populate the filter with.
964
+ *
965
+ * @default undefined
966
+ */
967
+ options: {
968
+ type: Object,
969
+ default: void 0
970
+ },
971
+ /**
972
+ * Current value of the filter
973
+ *
974
+ * @default undefined
975
+ */
976
+ value: {
977
+ type: [String, Number, Array],
978
+ default: void 0
979
+ }
980
+ },
981
+ emits: ["input", "update"],
982
+ setup(e, { emit: l }) {
983
+ var oe, fe;
984
+ const n = we(), s = l, t = e, { t: i, locale: a } = de({ messages: Bt }), u = R(""), o = Q(t, "options"), r = R(t.options.listboxItems), { cachedSelectedListboxOptions: p, setCachedValues: I, resetCache: A } = Ze(
985
+ r,
986
+ Q(t, "value"),
987
+ Q(o.value, "multiple")
988
+ ), { cachedSelectedListboxOptions: d } = Ze(
989
+ r,
990
+ Q(t, "defaultValue"),
991
+ Q(o.value, "multiple")
992
+ ), { internalFilterValue: g, isSecondaryButtonDisabled: V, isApplyButtonDisabled: P } = Fe(p, d);
993
+ he(o, () => {
994
+ r.value = o.value.listboxItems;
995
+ });
996
+ const k = pt(
997
+ u,
998
+ r,
999
+ (fe = (oe = t.options) == null ? void 0 : oe.search) == null ? void 0 : fe.searchEvent
1000
+ ), U = b(() => i("noFiltersMatchThisSearch")), $ = b(() => {
1001
+ var z, h, K, O, y, v, T, N, Z, x;
1002
+ if (t.defaultValue === null)
1003
+ return t.label;
1004
+ if (t.options.multiple) {
1005
+ const ee = (z = t.value) == null ? void 0 : z.length;
1006
+ if (ee === t.options.listboxItems.length)
1007
+ return (h = t == null ? void 0 : t.options) != null && h.messagesPersistentButtonLabelAllSelectedKey ? (O = t == null ? void 0 : t.options) == null ? void 0 : O.messages[a.value][(K = t == null ? void 0 : t.options) == null ? void 0 : K.messagesPersistentButtonLabelAllSelectedKey] : (y = t == null ? void 0 : t.options) == null ? void 0 : y.messages[a.value].persistentButtonLabelAllSelected;
1008
+ const ve = ((v = t == null ? void 0 : t.options) != null && v.messagesPersistentButtonLabelPartiallySelectedKey ? (N = t == null ? void 0 : t.options) == null ? void 0 : N.messages[a.value][(T = t == null ? void 0 : t.options) == null ? void 0 : T.messagesPersistentButtonLabelPartiallySelectedKey] : (Z = t == null ? void 0 : t.options) == null ? void 0 : Z.messages[a.value].persistentButtonLabelPartiallySelected).split("|").map((Pe) => Pe.trim());
1009
+ return ee === 1 ? ve[0].replace("{count}", ee) : ve[1].replace("{count}", ee);
1010
+ }
1011
+ return (x = p.value) != null && x.length ? be(p.value[0].label, 18) : "";
1012
+ }), j = b(() => {
1013
+ var z, h;
1014
+ if (t.defaultValue === null && (!t.options.multiple || ((z = t.value) == null ? void 0 : z.length) === 1)) {
1015
+ const K = t.options.listboxItems.flatMap((O) => O.items ? O.items : O);
1016
+ return be(
1017
+ (h = K.find(
1018
+ ({ value: O }) => {
1019
+ var y;
1020
+ return Array.isArray(t.value) ? (y = t == null ? void 0 : t.value) == null ? void 0 : y.includes(O) : O === t.value;
1021
+ }
1022
+ )) == null ? void 0 : h.label,
1023
+ 12
1024
+ );
1025
+ }
1026
+ return null;
1027
+ }), Y = b(() => qe(`filter-listbox-${t.field}`)), B = (z) => {
1028
+ g.value = z;
1029
+ const { onlySlot: h, ...K } = t;
1030
+ if (t.options.multiple) {
1031
+ const y = z.length ? g.value.map(({ value: v }) => v) : null;
1032
+ s(S.INPUT, { ...K, value: y });
1033
+ return;
1034
+ }
1035
+ const O = z.length ? z[0].value : null;
1036
+ s(S.INPUT, { ...K, value: O });
1037
+ }, c = () => {
1038
+ var O, y, v;
1039
+ const { onlySlot: z, ...h } = t;
1040
+ if (t.options.multiple) {
1041
+ g.value && ((O = g.value) == null ? void 0 : O.length) === 0 && (g.value = t.defaultValue !== null ? d.value : void 0);
1042
+ const T = (y = g.value) != null && y.length ? (v = g.value) == null ? void 0 : v.map(({ value: N }) => N) : null;
1043
+ s(S.UPDATE, {
1044
+ ...h,
1045
+ value: T
1046
+ });
1047
+ return;
1048
+ }
1049
+ const K = g.value.length ? g.value[0].value : void 0;
1050
+ s(S.UPDATE, { ...h, value: K });
1051
+ }, f = () => {
1052
+ g.value = p.value;
1053
+ }, L = () => {
1054
+ u.value && (u.value = "");
1055
+ }, X = () => {
1056
+ I(d.value), g.value = d.value, c();
1057
+ }, ae = () => {
1058
+ A(), g.value = [], c();
1059
+ }, se = b(() => {
1060
+ var K, O;
1061
+ if (t.value == null || t.defaultValue !== null || !t.options.multiple)
1062
+ return null;
1063
+ const z = (K = t.options.listboxItems) == null ? void 0 : K.reduce((y, v) => {
1064
+ var T;
1065
+ return y += (T = v == null ? void 0 : v.items) != null && T.length ? v.items.length : 1, y;
1066
+ }, 0), h = (O = t.value) == null ? void 0 : O.length;
1067
+ return h === 1 ? null : h === z ? i("all") : h;
1068
+ });
1069
+ return (z, h) => (m(), E(_(Ce), {
1070
+ "applied-filters-count": se.value,
1071
+ "button-label": $.value,
1072
+ "button-secondary-label": j.value,
1073
+ "disable-apply-button": _(P),
1074
+ "disable-secondary-button": _(V),
1075
+ "default-value": e.defaultValue,
1076
+ label: e.label,
1077
+ field: e.field,
1078
+ "only-slot": !1,
1079
+ onApply: c,
1080
+ onClear: ae,
1081
+ onReset: X,
1082
+ onOpen: f,
1083
+ onClose: L
1084
+ }, {
1085
+ default: F(() => {
1086
+ var K, O, y, v, T, N, Z, x, ee, te, ve, Pe, Ye;
1087
+ return [
1088
+ w("div", _l, [
1089
+ C(_(Ie), {
1090
+ "debounce-time": (O = (K = e.options) == null ? void 0 : K.search) == null ? void 0 : O.debounceTime,
1091
+ value: u.value,
1092
+ "input-field-aria-label": _(i)("searchFilter", { filter: e.label.toLocaleLowerCase() }),
1093
+ onInput: h[0] || (h[0] = (Ne) => u.value = Ne)
1094
+ }, null, 8, ["debounce-time", "value", "input-field-aria-label"])
1095
+ ]),
1096
+ w("div", Cl, [
1097
+ C(_(je))
1098
+ ]),
1099
+ C(_(tl), {
1100
+ id: Y.value,
1101
+ "aria-label": e.label,
1102
+ class: "b-select-filter-button__wrapper",
1103
+ "empty-state": (y = e.options) == null ? void 0 : y.emptyState,
1104
+ "has-more-items": (T = (v = e.options) == null ? void 0 : v.lazy) == null ? void 0 : T.hasMoreItems,
1105
+ items: _(k),
1106
+ "is-option-disabled": (N = e.options) == null ? void 0 : N.isOptionDisabled,
1107
+ "lazy-load-type": (x = (Z = e.options) == null ? void 0 : Z.lazy) == null ? void 0 : x.lazyLoadType,
1108
+ loading: (te = (ee = e.options) == null ? void 0 : ee.lazy) == null ? void 0 : te.loading,
1109
+ multiple: (ve = e.options) == null ? void 0 : ve.multiple,
1110
+ "static-categories": (Pe = e.options) == null ? void 0 : Pe.staticCategories,
1111
+ "no-results-message": U.value,
1112
+ searching: !!u.value,
1113
+ "selected-value": _(g),
1114
+ "virtual-scroll": (Ye = e.options) == null ? void 0 : Ye.virtualScroll,
1115
+ onSelect: B,
1116
+ onSpacePressed: B,
1117
+ onEnterPressed: B,
1118
+ onShowMore: h[1] || (h[1] = (Ne) => {
1119
+ var $e, Ue;
1120
+ return (Ue = ($e = e.options) == null ? void 0 : $e.lazy) == null ? void 0 : Ue.showMoreEvent();
1121
+ })
1122
+ }, Ee({ _: 2 }, [
1123
+ ce(_(n), (Ne, $e) => ({
1124
+ name: $e,
1125
+ fn: F((Ue) => [
1126
+ re(z.$slots, $e, Re(Oe(Ue)), void 0, !0)
1127
+ ])
1128
+ }))
1129
+ ]), 1032, ["id", "aria-label", "empty-state", "has-more-items", "items", "is-option-disabled", "lazy-load-type", "loading", "multiple", "static-categories", "no-results-message", "searching", "selected-value", "virtual-scroll"])
1130
+ ];
1131
+ }),
1132
+ _: 3
1133
+ }, 8, ["applied-filters-count", "button-label", "button-secondary-label", "disable-apply-button", "disable-secondary-button", "default-value", "label", "field"]));
1134
+ }
1135
+ }), Dl = /* @__PURE__ */ W($l, [["__scopeId", "data-v-f85eb0e9"]]), _t = {
1136
+ "en-US": {
1137
+ noFiltersMatchThisSearch: "No filters match this search"
1138
+ }
1139
+ }, Il = {
1140
+ i18n: { messages: _t },
1141
+ name: "select-filter-dropdown"
1142
+ }, Tl = /* @__PURE__ */ G({
1143
+ ...Il,
1144
+ props: {
1145
+ /**
1146
+ * Default value of the filter to reset to.
1147
+ *
1148
+ */
1149
+ defaultValue: {
1150
+ type: [String, Number, Array],
1151
+ default: null
1152
+ },
1153
+ /**
1154
+ * Filter name/key referencing the actual property name in the data set.
1155
+ * Should be unique per filter bar.
1156
+ */
1157
+ field: { type: String, required: !0 },
1158
+ /**
1159
+ * Label text to be displayed
1160
+ */
1161
+ label: { type: String, required: !0 },
1162
+ /**
1163
+ * Renders the base filter's slot content only - leaving out the button and the popover.
1164
+ * Used for the allFiltersModal component.
1165
+ *
1166
+ */
1167
+ onlySlot: { type: Boolean, default: !1 },
1168
+ /**
1169
+ * List of options that are needed to setup the filter
1170
+ * Available options:
1171
+ * - multiple: If "true", the user will be able to select multiple items.
1172
+ * - listboxItems: The option elements to populate the filter with.
1173
+ *
1174
+ * @default undefined
1175
+ */
1176
+ options: {
1177
+ type: Object,
1178
+ default: void 0
1179
+ },
1180
+ /**
1181
+ * Current value of the filter
1182
+ *
1183
+ * @default undefined
1184
+ */
1185
+ value: {
1186
+ type: [String, Number, Array],
1187
+ default: void 0
1188
+ }
1189
+ },
1190
+ emits: ["input", "update"],
1191
+ setup(e, { emit: l }) {
1192
+ const { t: n } = de({ messages: _t }), s = we(), t = l, i = e, { internalFilterValue: a } = Fe(Q(i, "value"), Q(i, "defaultValue")), u = R(""), o = Q(i, "options"), r = R(i.options.listboxItems);
1193
+ he(o, () => {
1194
+ r.value = o.value.listboxItems;
1195
+ });
1196
+ const p = b(() => n("noFiltersMatchThisSearch")), I = (A) => {
1197
+ a.value = A;
1198
+ const { onlySlot: d, ...g } = i;
1199
+ t(S.INPUT, { ...g, value: a.value });
1200
+ };
1201
+ return (A, d) => {
1202
+ var g, V, P;
1203
+ return m(), E(_(zt), {
1204
+ value: _(a),
1205
+ items: e.options.listboxItems,
1206
+ multiple: (g = e.options) == null ? void 0 : g.multiple,
1207
+ "static-categories": (V = e.options) == null ? void 0 : V.staticCategories,
1208
+ "no-results-message": p.value,
1209
+ searching: !!u.value,
1210
+ "is-option-disabled": e.options.isOptionDisabled,
1211
+ "dynamic-filtering": !0,
1212
+ "empty-state": (P = e.options) == null ? void 0 : P.emptyState,
1213
+ onInput: I
1214
+ }, Ee({ _: 2 }, [
1215
+ ce(_(s), (k, U) => ({
1216
+ name: U,
1217
+ fn: F(($) => [
1218
+ re(A.$slots, U, Re(Oe($)))
1219
+ ])
1220
+ }))
1221
+ ]), 1032, ["value", "items", "multiple", "static-categories", "no-results-message", "searching", "is-option-disabled", "empty-state"]);
1222
+ };
1223
+ }
1224
+ }), Ae = {
1225
+ /**
1226
+ * Default value of the filter to reset to.
1227
+ *
1228
+ */
1229
+ defaultValue: {
1230
+ type: [String, Number, Array],
1231
+ default: null
1232
+ },
1233
+ /**
1234
+ * Filter name/key referencing the actual property name in the data set.
1235
+ * Should be unique per filter bar.
1236
+ */
1237
+ field: { type: String, required: !0 },
1238
+ /**
1239
+ * Label text to be displayed
1240
+ */
1241
+ label: { type: String, required: !0 },
1242
+ /**
1243
+ * Renders the base filter's slot content only - leaving out the button and the popover.
1244
+ * Used for the allFiltersModal component.
1245
+ *
1246
+ */
1247
+ onlySlot: { type: Boolean, default: !1 },
1248
+ /**
1249
+ * List of options that are needed to setup the filter
1250
+ * Available options:
1251
+ * - multiple: If "true", the user will be able to select multiple items.
1252
+ * - listboxItems: The option elements to populate the filter with.
1253
+ *
1254
+ * @default undefined
1255
+ */
1256
+ options: {
1257
+ type: Object,
1258
+ default: void 0
1259
+ },
1260
+ /**
1261
+ * Current value of the filter
1262
+ *
1263
+ * @default undefined
1264
+ */
1265
+ value: {
1266
+ type: [String, Number, Array],
1267
+ default: void 0
1268
+ }
1269
+ }, El = {}, ge = /* @__PURE__ */ G({
1270
+ ...El,
1271
+ __name: "select-filter",
1272
+ props: Ae,
1273
+ emits: ["input", "update"],
1274
+ setup(e, { emit: l }) {
1275
+ const n = we(), s = l, t = (a) => s("input", a), i = (a) => s("update", a);
1276
+ return (a, u) => a.onlySlot ? (m(), E(_(Tl), {
1277
+ key: 0,
1278
+ "default-value": a.defaultValue,
1279
+ field: a.field,
1280
+ label: a.label,
1281
+ options: a.options,
1282
+ value: a.value,
1283
+ onInput: t,
1284
+ onUpdate: i
1285
+ }, Ee({ _: 2 }, [
1286
+ ce(_(n), (o, r) => ({
1287
+ name: r,
1288
+ fn: F((p) => [
1289
+ re(a.$slots, r, Re(Oe(p)))
1290
+ ])
1291
+ }))
1292
+ ]), 1032, ["default-value", "field", "label", "options", "value"])) : (m(), E(_(Dl), {
1293
+ key: 1,
1294
+ "default-value": a.defaultValue,
1295
+ field: a.field,
1296
+ label: a.label,
1297
+ options: a.options,
1298
+ value: a.value,
1299
+ onInput: t,
1300
+ onUpdate: i
1301
+ }, Ee({ _: 2 }, [
1302
+ ce(_(n), (o, r) => ({
1303
+ name: r,
1304
+ fn: F((p) => [
1305
+ re(a.$slots, r, Re(Oe(p)))
1306
+ ])
1307
+ }))
1308
+ ]), 1032, ["default-value", "field", "label", "options", "value"]));
1309
+ }
1310
+ }), Pl = G({
1311
+ name: "bento-select-avatar-filter",
1312
+ components: {
1313
+ BentoSelectFilter: ge,
1314
+ BentoAvatar: el
1315
+ },
1316
+ props: {
1317
+ ...Ae,
1318
+ /**
1319
+ * List of options that are needed to setup the country filter
1320
+ * Available options:
1321
+ * - multiple: If "true", the user will be able to select multiple items.
1322
+ * - listboxItems: The option elements to populate the filter with {@see BentoSelectCountryFilterOptions}
1323
+ */
1324
+ options: {
1325
+ type: Object,
1326
+ default: void 0
1327
+ }
1328
+ },
1329
+ emits: [S.INPUT, S.UPDATE],
1330
+ setup(e, { emit: l }) {
1331
+ return {
1332
+ // Enums
1333
+ BentoFilterEvent: S,
1334
+ // Methods
1335
+ onUpdate: (s) => l(S.UPDATE, s)
1336
+ };
1337
+ }
1338
+ });
1339
+ function Ul(e, l, n, s, t, i) {
1340
+ const a = D("bento-avatar"), u = D("bento-select-filter");
1341
+ return m(), E(u, ue(e.$props, {
1342
+ field: e.field,
1343
+ label: e.label,
1344
+ onUpdate: e.onUpdate,
1345
+ onInput: l[0] || (l[0] = (o) => e.$emit(e.BentoFilterEvent.INPUT, o))
1346
+ }), {
1347
+ default: F(({ label: o, data: r }) => [
1348
+ C(a, {
1349
+ username: o,
1350
+ src: r
1351
+ }, null, 8, ["username", "src"])
1352
+ ]),
1353
+ _: 1
1354
+ }, 16, ["field", "label", "onUpdate"]);
1355
+ }
1356
+ const Ct = /* @__PURE__ */ W(Pl, [["render", Ul]]), Vl = G({
1357
+ name: "bento-select-country-filter",
1358
+ components: {
1359
+ BentoSelectFilter: ge,
1360
+ ListboxOptionTag: ht
1361
+ },
1362
+ props: {
1363
+ ...Ae,
1364
+ /**
1365
+ * List of options that are needed to setup the country filter
1366
+ * Available options:
1367
+ * - multiple: If "true", the user will be able to select multiple items.
1368
+ * - listboxItems: The option elements to populate the filter with {@see BentoSelectCurrencyFilterOptions}
1369
+ */
1370
+ options: {
1371
+ type: Object,
1372
+ default: void 0
1373
+ }
1374
+ },
1375
+ emits: [S.INPUT, S.UPDATE],
1376
+ setup(e, { emit: l }) {
1377
+ return {
1378
+ // Enums
1379
+ BentoFilterEvent: S,
1380
+ // Methods
1381
+ onUpdate: (s) => {
1382
+ l(S.UPDATE, s);
1383
+ }
1384
+ };
1385
+ }
1386
+ });
1387
+ function kl(e, l, n, s, t, i) {
1388
+ const a = D("listbox-option-tag"), u = D("bento-select-filter");
1389
+ return m(), E(u, ue(e.$props, {
1390
+ field: e.field,
1391
+ label: e.label,
1392
+ onUpdate: e.onUpdate,
1393
+ onInput: l[0] || (l[0] = (o) => e.$emit(e.BentoFilterEvent.INPUT, o))
1394
+ }), {
1395
+ default: F((o) => [
1396
+ C(a, { option: o }, null, 8, ["option"])
1397
+ ]),
1398
+ _: 1
1399
+ }, 16, ["field", "label", "onUpdate"]);
1400
+ }
1401
+ const At = /* @__PURE__ */ W(Vl, [["render", kl]]), Ll = {
1402
+ name: "bento-select-country-filter"
1403
+ }, $t = /* @__PURE__ */ G({
1404
+ ...Ll,
1405
+ props: {
1406
+ ...Ae,
1407
+ /**
1408
+ * List of options that are needed to setup the country filter
1409
+ * Available options:
1410
+ * - multiple: If "true", the user will be able to select multiple items.
1411
+ * - listboxItems: The option elements to populate the filter with {@see BentoSelectCountryFilterOptions}
1412
+ * - variant: Which label variant to display for the option item.
1413
+ */
1414
+ options: {
1415
+ type: Object,
1416
+ default: void 0
1417
+ }
1418
+ },
1419
+ emits: [S.INPUT, S.UPDATE],
1420
+ setup(e, { emit: l }) {
1421
+ const n = e, s = l, t = R(n.options.variant), i = R(n.options.listboxItems);
1422
+ he([() => n.options.variant, () => n.options.listboxItems], () => {
1423
+ t.value = n.options.variant, i.value = n.options.listboxItems;
1424
+ });
1425
+ const a = (r) => s(S.UPDATE, r), u = ll(t, i), o = b(() => ({
1426
+ ...n != null && n.options ? n.options : {},
1427
+ listboxItems: u.value
1428
+ }));
1429
+ return (!t.value || t.value === "custom") && qt(
1430
+ 'BentoSelectCountryFilter type with `options.variant==="custom"`',
1431
+ "Use any of the other BentoSelectCountryFilter variants instead OR use BentoSelectFilter type for custom labels",
1432
+ "2.0.0"
1433
+ ), (r, p) => (m(), E(ge, ue(n, {
1434
+ field: r.field,
1435
+ label: r.label,
1436
+ options: o.value,
1437
+ onUpdate: a,
1438
+ onInput: p[0] || (p[0] = (I) => r.$emit(_(S).INPUT, I))
1439
+ }), {
1440
+ default: F(({ label: I }) => [
1441
+ C(_(me), { el: "span" }, {
1442
+ default: F(() => [
1443
+ H(M(I), 1)
1444
+ ]),
1445
+ _: 2
1446
+ }, 1024)
1447
+ ]),
1448
+ _: 1
1449
+ }, 16, ["field", "label", "options"]));
1450
+ }
1451
+ }), Rl = G({
1452
+ name: "bento-select-payment-method-filter",
1453
+ components: {
1454
+ BentoSelectFilter: ge,
1455
+ BentoPaymentMethod: al
1456
+ },
1457
+ props: {
1458
+ ...Ae,
1459
+ /**
1460
+ * List of options that are needed to setup the payment method filter
1461
+ * Available options:
1462
+ * - multiple: If "true", the user will be able to select multiple items.
1463
+ * - listboxItems: The option elements to populate the filter with {@see BentoSelectPaymentMethodFilterOptions}
1464
+ */
1465
+ options: {
1466
+ type: Object,
1467
+ default: void 0
1468
+ }
1469
+ },
1470
+ emits: [S.INPUT, S.UPDATE],
1471
+ setup(e, { emit: l }) {
1472
+ return {
1473
+ // Enums
1474
+ BentoFilterEvent: S,
1475
+ // Methods
1476
+ onUpdate: (s) => l(S.UPDATE, s)
1477
+ };
1478
+ }
1479
+ });
1480
+ function Ol(e, l, n, s, t, i) {
1481
+ const a = D("bento-payment-method"), u = D("bento-select-filter");
1482
+ return m(), E(u, ue(e.$props, {
1483
+ field: e.field,
1484
+ label: e.label,
1485
+ onUpdate: e.onUpdate,
1486
+ onInput: l[0] || (l[0] = (o) => e.$emit(e.BentoFilterEvent.INPUT, o))
1487
+ }), {
1488
+ default: F(({ value: o, label: r }) => [
1489
+ C(a, {
1490
+ type: o,
1491
+ label: r
1492
+ }, null, 8, ["type", "label"])
1493
+ ]),
1494
+ _: 1
1495
+ }, 16, ["field", "label", "onUpdate"]);
1496
+ }
1497
+ const Dt = /* @__PURE__ */ W(Rl, [["render", Ol]]), wl = G({
1498
+ name: "bento-select-country-filter",
1499
+ components: {
1500
+ BentoSelectFilter: ge,
1501
+ ListboxOptionTag: ht
1502
+ },
1503
+ props: {
1504
+ ...Ae,
1505
+ /**
1506
+ * List of options that are needed to setup the tag filter
1507
+ * Available options:
1508
+ * - multiple: If "true", the user will be able to select multiple items.
1509
+ * - listboxItems: The option elements to populate the filter with {@see BentoSelectTagFilterOptions}
1510
+ */
1511
+ options: {
1512
+ type: Object,
1513
+ default: void 0
1514
+ }
1515
+ },
1516
+ emits: [S.INPUT, S.UPDATE],
1517
+ setup(e, { emit: l }) {
1518
+ const n = (i) => l(S.UPDATE, i), s = b(
1519
+ () => {
1520
+ var i, a;
1521
+ return (a = (i = e == null ? void 0 : e.options) == null ? void 0 : i.listboxItems) == null ? void 0 : a.map(({ label: u, value: o, variant: r }) => ({ label: u, value: o, data: r }));
1522
+ }
1523
+ );
1524
+ return {
1525
+ // Values
1526
+ countryOptions: b(() => ({
1527
+ ...e.options,
1528
+ listboxItems: s.value
1529
+ })),
1530
+ // Methods
1531
+ onUpdate: n,
1532
+ // Enums
1533
+ BentoFilterEvent: S
1534
+ };
1535
+ }
1536
+ });
1537
+ function Nl(e, l, n, s, t, i) {
1538
+ const a = D("listbox-option-tag"), u = D("bento-select-filter");
1539
+ return m(), E(u, ue(e.$props, {
1540
+ field: e.field,
1541
+ label: e.label,
1542
+ options: e.countryOptions,
1543
+ onUpdate: e.onUpdate,
1544
+ onInput: l[0] || (l[0] = (o) => e.$emit(e.BentoFilterEvent.INPUT, o))
1545
+ }), {
1546
+ default: F(({ label: o, data: r }) => [
1547
+ C(a, {
1548
+ option: { value: o, data: r, label: "" }
1549
+ }, null, 8, ["option"])
1550
+ ]),
1551
+ _: 1
1552
+ }, 16, ["field", "label", "options", "onUpdate"]);
1553
+ }
1554
+ const It = /* @__PURE__ */ W(wl, [["render", Nl]]), tt = {
1555
+ "en-US": {
1556
+ yes: "Yes",
1557
+ no: "No"
1558
+ }
1559
+ }, Ml = G({
1560
+ name: "bento-boolean-filter",
1561
+ i18n: { messages: tt },
1562
+ components: { BentoBaseFilter: Ce, BentoRadioGroup: Yt },
1563
+ props: {
1564
+ /**
1565
+ * Default value of the filter to reset to.
1566
+ */
1567
+ defaultValue: { type: [String, Boolean], default: null },
1568
+ /**
1569
+ * Filter name/key referencing the actual property name in the data set.
1570
+ * Should be unique per filter bar.
1571
+ */
1572
+ field: { type: String, required: !0 },
1573
+ /**
1574
+ * Label text to be displayed
1575
+ */
1576
+ label: { type: String, required: !0 },
1577
+ /**
1578
+ * Current value of the filter
1579
+ */
1580
+ value: { type: [String, Boolean], default: null },
1581
+ /**
1582
+ * Renders the base filter's slot content only - leaving out the button and the popover.
1583
+ * Used for the allFiltersModal component.
1584
+ */
1585
+ onlySlot: { type: Boolean, default: !1 },
1586
+ /**
1587
+ * List of options that are needed to setup the filter
1588
+ * Available options:
1589
+ * - listboxItems: The option elements to populate the filter with.
1590
+ */
1591
+ options: {
1592
+ type: Object,
1593
+ default: void 0
1594
+ }
1595
+ },
1596
+ emits: [S.INPUT, S.UPDATE],
1597
+ setup(e, { emit: l }) {
1598
+ const { t: n } = de({ messages: tt }), s = ($) => typeof $ == "boolean" ? $ == null ? void 0 : $.toString() : $, t = ($) => {
1599
+ var j, Y, B, c;
1600
+ return ((Y = (j = e == null ? void 0 : e.options) == null ? void 0 : j.positiveOption) == null ? void 0 : Y.value) !== void 0 && ((c = (B = e == null ? void 0 : e.options) == null ? void 0 : B.negativeOption) == null ? void 0 : c.value) !== void 0 && typeof e.options.positiveOption.value == "boolean" && typeof e.options.negativeOption.value == "boolean" && typeof $ == "string" ? $ === "true" : $;
1601
+ }, i = b(() => s(e.defaultValue)), a = b(() => s(e.value)), u = b(() => e.options && e.options.positiveOption && e.options.negativeOption ? [
1602
+ {
1603
+ ...e.options.positiveOption,
1604
+ value: s(e.options.positiveOption.value)
1605
+ },
1606
+ {
1607
+ ...e.options.negativeOption,
1608
+ value: s(e.options.negativeOption.value)
1609
+ }
1610
+ ] : [
1611
+ { value: "yes", label: n("yes") },
1612
+ { value: "no", label: n("no") }
1613
+ ]), { internalFilterValue: o, isSecondaryButtonDisabled: r, isApplyButtonDisabled: p } = Fe(
1614
+ a,
1615
+ i
1616
+ ), I = b(
1617
+ () => e.defaultValue === null ? e.label : be(u.value.find(({ value: $ }) => $ === a.value).label, 18)
1618
+ ), A = b(
1619
+ () => {
1620
+ var $;
1621
+ return e.defaultValue === null ? be(($ = u.value.find(({ value: j }) => j === a.value)) == null ? void 0 : $.label, 12) : null;
1622
+ }
1623
+ ), d = b(() => ({
1624
+ "b-boolean-filter--only-slot": e.onlySlot
1625
+ }));
1626
+ He(() => {
1627
+ o.value || (o.value = null);
1628
+ });
1629
+ const g = ($) => {
1630
+ o.value = $, l(S.INPUT, {
1631
+ ...e,
1632
+ value: t(o.value)
1633
+ });
1634
+ }, V = () => {
1635
+ o.value = a.value;
1636
+ }, P = () => {
1637
+ l(S.UPDATE, {
1638
+ ...e,
1639
+ value: t(o.value)
1640
+ });
1641
+ };
1642
+ return {
1643
+ // Values
1644
+ items: u,
1645
+ conditionalClasses: d,
1646
+ buttonLabel: I,
1647
+ buttonSecondaryLabel: A,
1648
+ internalFilterValue: o,
1649
+ isApplyButtonDisabled: p,
1650
+ isSecondaryButtonDisabled: r,
1651
+ translatedValue: a,
1652
+ translatedDefaultValue: i,
1653
+ // Events
1654
+ onInput: g,
1655
+ updateFilter: P,
1656
+ clearFilter: () => {
1657
+ o.value = null, P();
1658
+ },
1659
+ openFilter: V,
1660
+ resetFilter: () => l(S.UPDATE, { ...e, value: e.defaultValue })
1661
+ };
1662
+ }
1663
+ });
1664
+ function Kl(e, l, n, s, t, i) {
1665
+ const a = D("bento-radio-group"), u = D("bento-base-filter");
1666
+ return m(), E(u, ue(e.$props, {
1667
+ value: e.translatedValue,
1668
+ "default-value": e.translatedDefaultValue,
1669
+ "button-label": e.buttonLabel,
1670
+ "button-secondary-label": e.buttonSecondaryLabel,
1671
+ "disable-apply-button": e.isApplyButtonDisabled,
1672
+ "disable-secondary-button": e.isSecondaryButtonDisabled,
1673
+ "only-slot": e.onlySlot,
1674
+ onApply: e.updateFilter,
1675
+ onClear: e.clearFilter,
1676
+ onOpen: e.openFilter,
1677
+ onReset: e.resetFilter
1678
+ }), {
1679
+ default: F(() => [
1680
+ w("div", {
1681
+ class: _e(["b-boolean-filter", e.conditionalClasses]),
1682
+ onKeydown: l[0] || (l[0] = ye((...o) => e.updateFilter && e.updateFilter(...o), ["enter"]))
1683
+ }, [
1684
+ C(a, {
1685
+ items: e.items,
1686
+ label: e.label,
1687
+ "model-value": e.internalFilterValue,
1688
+ "hide-label": "",
1689
+ "onUpdate:modelValue": e.onInput
1690
+ }, null, 8, ["items", "label", "model-value", "onUpdate:modelValue"])
1691
+ ], 34)
1692
+ ]),
1693
+ _: 1
1694
+ }, 16, ["value", "default-value", "button-label", "button-secondary-label", "disable-apply-button", "disable-secondary-button", "only-slot", "onApply", "onClear", "onOpen", "onReset"]);
1695
+ }
1696
+ const Tt = /* @__PURE__ */ W(Ml, [["render", Kl], ["__scopeId", "data-v-1fa97477"]]), lt = {
1697
+ "en-US": {
1698
+ from: "From",
1699
+ to: "To"
1700
+ }
1701
+ }, Hl = G({
1702
+ name: "bento-range-filter",
1703
+ i18n: { messages: lt },
1704
+ components: { BentoBaseFilter: Ce, BentoInputField: vt },
1705
+ props: {
1706
+ /**
1707
+ * Default value of the filter to reset to.
1708
+ */
1709
+ defaultValue: { type: Array, default: null },
1710
+ /**
1711
+ * Filter name/key referencing the actual property name in the data set.
1712
+ * Should be unique per filter bar.
1713
+ */
1714
+ field: { type: String, required: !0 },
1715
+ /**
1716
+ * Label text to be displayed
1717
+ */
1718
+ label: { type: String, required: !0 },
1719
+ /**
1720
+ * Current value of the filter
1721
+ */
1722
+ value: { type: Array, default: () => ["", ""] },
1723
+ /**
1724
+ * Renders the base filter's slot content only - leaving out the button and the popover.
1725
+ * Used for the allFiltersModal component.
1726
+ */
1727
+ onlySlot: { type: Boolean, default: !1 }
1728
+ },
1729
+ emits: [S.INPUT, S.UPDATE],
1730
+ setup(e, { emit: l }) {
1731
+ const { t: n } = de({ messages: lt }), s = R(null), { internalFilterValue: t, isSecondaryButtonDisabled: i, isApplyButtonDisabled: a } = Fe(
1732
+ Q(e, "value"),
1733
+ Q(e, "defaultValue")
1734
+ ), u = b(() => {
1735
+ var B, c, f, L, X, ae, se, oe;
1736
+ if (!((B = e.value) != null && B[0]) && !((c = e.value) != null && c[1]))
1737
+ return null;
1738
+ let U = "";
1739
+ (f = e.value) != null && f[0] ? (L = e.value) != null && L[1] || (U = "≥") : U = "≤";
1740
+ const $ = (X = e.value) != null && X[0] ? `${be(e.value[0], 5)}` : "", j = (ae = e.value) != null && ae[0] && ((se = e.value) != null && se[1]) ? " - " : "", Y = (oe = e.value) != null && oe[1] ? `${be(e.value[1], 5)}` : "";
1741
+ return `${U}${$}${j}${Y}`;
1742
+ }), o = b(
1743
+ () => e.defaultValue === null ? e.label : u.value
1744
+ ), r = b(
1745
+ () => e.defaultValue === null ? u.value : null
1746
+ ), p = b(() => ({
1747
+ "b-range-filter--only-slot": e.onlySlot
1748
+ })), I = () => {
1749
+ t.value = e.value, st(() => s.value.focusInput());
1750
+ }, A = () => {
1751
+ l(S.INPUT, { ...e, value: t.value });
1752
+ }, d = (U) => {
1753
+ t.value = [U, t.value[1]], A();
1754
+ }, g = (U) => {
1755
+ t.value = [t.value[0], U], A();
1756
+ }, V = () => {
1757
+ t.value.some((U) => U) || (t.value = e.defaultValue !== null ? e.defaultValue : void 0), l(S.UPDATE, {
1758
+ ...e,
1759
+ value: t.value
1760
+ });
1761
+ };
1762
+ return {
1763
+ // Values
1764
+ inputTextRef: s,
1765
+ conditionalClasses: p,
1766
+ internalFilterValue: t,
1767
+ isApplyButtonDisabled: a,
1768
+ isSecondaryButtonDisabled: i,
1769
+ buttonLabel: o,
1770
+ buttonSecondaryLabel: r,
1771
+ // Events
1772
+ updateFrom: d,
1773
+ updateTo: g,
1774
+ updateFilter: V,
1775
+ clearFilter: () => {
1776
+ t.value = ["", ""], V();
1777
+ },
1778
+ openFilter: I,
1779
+ resetFilter: () => l(S.UPDATE, { ...e, value: e.defaultValue }),
1780
+ // Translations
1781
+ t: n
1782
+ };
1783
+ }
1784
+ });
1785
+ function ql(e, l, n, s, t, i) {
1786
+ const a = D("bento-input-field"), u = D("bento-base-filter");
1787
+ return m(), E(u, ue(e.$props, {
1788
+ "disable-apply-button": e.isApplyButtonDisabled,
1789
+ "disable-secondary-button": e.isSecondaryButtonDisabled,
1790
+ "button-label": e.buttonLabel,
1791
+ "button-secondary-label": e.buttonSecondaryLabel,
1792
+ "only-slot": e.onlySlot,
1793
+ onApply: e.updateFilter,
1794
+ onClear: e.clearFilter,
1795
+ onOpen: e.openFilter,
1796
+ onReset: e.resetFilter
1797
+ }), {
1798
+ default: F(() => [
1799
+ w("div", {
1800
+ class: _e(["b-range-filter", e.conditionalClasses]),
1801
+ onKeydown: l[0] || (l[0] = ye((...o) => e.updateFilter && e.updateFilter(...o), ["enter"]))
1802
+ }, [
1803
+ C(a, {
1804
+ ref: "inputTextRef",
1805
+ value: e.internalFilterValue ? e.internalFilterValue[0] : "",
1806
+ type: "number",
1807
+ "aria-label": e.t("from").toString(),
1808
+ onInput: e.updateFrom
1809
+ }, {
1810
+ default: F(() => [
1811
+ H(M(e.t("from")), 1)
1812
+ ]),
1813
+ _: 1
1814
+ }, 8, ["value", "aria-label", "onInput"]),
1815
+ C(a, {
1816
+ class: "b-range-filter__input-field",
1817
+ value: e.internalFilterValue ? e.internalFilterValue[1] : "",
1818
+ type: "number",
1819
+ "aria-label": e.t("to"),
1820
+ onInput: e.updateTo
1821
+ }, {
1822
+ default: F(() => [
1823
+ H(M(e.t("to")), 1)
1824
+ ]),
1825
+ _: 1
1826
+ }, 8, ["value", "aria-label", "onInput"])
1827
+ ], 34)
1828
+ ]),
1829
+ _: 1
1830
+ }, 16, ["disable-apply-button", "disable-secondary-button", "button-label", "button-secondary-label", "only-slot", "onApply", "onClear", "onOpen", "onReset"]);
1831
+ }
1832
+ const Et = /* @__PURE__ */ W(Hl, [["render", ql], ["__scopeId", "data-v-901ba107"]]);
1833
+ var Ke = /* @__PURE__ */ ((e) => (e.INPUT = "input", e))(Ke || {});
1834
+ const jl = G({
1835
+ name: "base-filter-button",
1836
+ components: { BaseButton: ut, BentoTypography: me, ChevronUpIcon: bt, ChevronDownIcon: ft },
1837
+ props: {
1838
+ /**
1839
+ * The number of applies values within the filter.
1840
+ * e.g. if 2 items in a dropdown filter have been applied, the number 2 will be shown here.
1841
+ */
1842
+ amountAppliedValues: { type: [Number, String], default: null },
1843
+ /**
1844
+ * Disables button functionality.
1845
+ */
1846
+ disabled: { type: Boolean, default: !1 },
1847
+ /**
1848
+ * Signifies if the filter is open or closed.
1849
+ */
1850
+ isFilterOpen: { type: Boolean, default: !1 },
1851
+ /**
1852
+ * Toggles if a chevron icon should be displayed in the button.
1853
+ * The chevron will change depending on the open state of the filter.
1854
+ */
1855
+ hasChevron: { type: Boolean, default: !1 },
1856
+ /**
1857
+ * Renders the text in a stronger variant.
1858
+ */
1859
+ bold: { type: Boolean, default: !1 }
1860
+ },
1861
+ emits: [Je.CLICK],
1862
+ setup(e, { slots: l, emit: n, attrs: s }) {
1863
+ const t = b(() => l.default ? dt(l)("default") : null), i = rt({ ariaLabel: t }), a = R(null), u = b(() => {
1864
+ var p;
1865
+ return {
1866
+ "aria-controls": (p = s["aria-controls"]) == null ? void 0 : p.toString()
1867
+ };
1868
+ }), o = b(() => ({
1869
+ "b-base-filter-button--with-chevron": e.hasChevron,
1870
+ "b-base-filter-button--filter-open": e.isFilterOpen
1871
+ }));
1872
+ return {
1873
+ // Values
1874
+ ariaAttributes: u,
1875
+ computedAriaLabel: i,
1876
+ conditionalClasses: o,
1877
+ // Methods
1878
+ onClickButton: () => {
1879
+ e.disabled || n(Je.CLICK);
1880
+ },
1881
+ hasSlot: ct(l),
1882
+ // Refs
1883
+ baseFilterButtonRef: a
1884
+ };
1885
+ }
1886
+ }), Yl = { class: "b-base-filter-button__default-container" }, zl = { class: "b-base-filter-button__label-container" }, Jl = {
1887
+ key: 0,
1888
+ class: "b-base-filter-button__counter-wrapper"
1889
+ };
1890
+ function Gl(e, l, n, s, t, i) {
1891
+ const a = D("bento-typography"), u = D("chevron-up-icon"), o = D("chevron-down-icon"), r = D("base-button");
1892
+ return m(), E(r, {
1893
+ ref: "baseFilterButtonRef",
1894
+ class: _e(["b-base-filter-button", e.conditionalClasses]),
1895
+ disabled: e.disabled,
1896
+ "aria-label": e.computedAriaLabel,
1897
+ "aria-controls": e.ariaAttributes["aria-controls"],
1898
+ type: "button",
1899
+ onClick: e.onClickButton
1900
+ }, Ee({
1901
+ default: F(() => [
1902
+ w("div", Yl, [
1903
+ w("div", zl, [
1904
+ C(a, {
1905
+ el: "span",
1906
+ variant: "body",
1907
+ stronger: e.bold,
1908
+ class: "b-base-filter-button__label"
1909
+ }, {
1910
+ default: F(() => [
1911
+ re(e.$slots, "default", {}, void 0, !0)
1912
+ ]),
1913
+ _: 3
1914
+ }, 8, ["stronger"])
1915
+ ]),
1916
+ e.amountAppliedValues && !e.hasChevron ? (m(), q("div", Jl, [
1917
+ C(a, {
1918
+ class: "b-base-filter-button__counter",
1919
+ el: "span",
1920
+ variant: "body",
1921
+ stronger: ""
1922
+ }, {
1923
+ default: F(() => [
1924
+ H(M(e.amountAppliedValues), 1)
1925
+ ]),
1926
+ _: 1
1927
+ })
1928
+ ])) : J("", !0)
1929
+ ])
1930
+ ]),
1931
+ _: 2
1932
+ }, [
1933
+ e.hasChevron ? {
1934
+ name: "iconRight",
1935
+ fn: F(() => [
1936
+ e.isFilterOpen ? (m(), E(u, {
1937
+ key: 0,
1938
+ "aria-hidden": "true"
1939
+ })) : (m(), E(o, {
1940
+ key: 1,
1941
+ "aria-hidden": "true"
1942
+ }))
1943
+ ]),
1944
+ key: "0"
1945
+ } : void 0
1946
+ ]), 1032, ["class", "disabled", "aria-label", "aria-controls", "onClick"]);
1947
+ }
1948
+ const Wl = /* @__PURE__ */ W(jl, [["render", Gl], ["__scopeId", "data-v-af9efc73"]]), Zl = G({
1949
+ name: "all-filters-modal-button",
1950
+ components: { BaseFilterButton: Wl },
1951
+ props: {
1952
+ /**
1953
+ * Button label to be displayed
1954
+ */
1955
+ label: { type: String, required: !0 },
1956
+ /**
1957
+ * Total count of applied filters
1958
+ */
1959
+ appliedFiltersCount: { type: [Number, String], default: null },
1960
+ /**
1961
+ * Indicates whether the filter popover tied to this button is showing
1962
+ */
1963
+ isFilterOpen: { type: Boolean, default: !1 },
1964
+ /**
1965
+ * Disables button functionality.
1966
+ */
1967
+ disabled: { type: Boolean, default: !1 }
1968
+ },
1969
+ emits: ["click"],
1970
+ setup(e, { emit: l }) {
1971
+ return {
1972
+ conditionalClasses: b(() => ({
1973
+ "b-all-filters-modal-button--with-counter": e.appliedFiltersCount,
1974
+ "b-all-filters-modal-button--filter-open": e.isFilterOpen
1975
+ })),
1976
+ onClick: () => {
1977
+ l("click");
1978
+ }
1979
+ };
1980
+ }
1981
+ });
1982
+ function Ql(e, l, n, s, t, i) {
1983
+ const a = D("base-filter-button");
1984
+ return m(), E(a, {
1985
+ class: _e(["b-all-filters-modal-button", e.conditionalClasses]),
1986
+ "amount-applied-values": e.appliedFiltersCount,
1987
+ "is-filter-open": e.isFilterOpen,
1988
+ disabled: e.disabled,
1989
+ onClick: e.onClick
1990
+ }, {
1991
+ default: F(() => [
1992
+ H(M(e.label), 1)
1993
+ ]),
1994
+ _: 1
1995
+ }, 8, ["class", "amount-applied-values", "is-filter-open", "disabled", "onClick"]);
1996
+ }
1997
+ const Xl = /* @__PURE__ */ W(Zl, [["render", Ql], ["__scopeId", "data-v-b96a672f"]]);
1998
+ let at = 0;
1999
+ const xl = {
2000
+ beforeCreate() {
2001
+ this.uuid = at.toString(), at += 1;
2002
+ }
2003
+ }, ea = { key: 0 };
2004
+ function ta(e, l, n, s, t, i) {
2005
+ return m(), q("svg", ue({ role: "img" }, e.$attrs, {
2006
+ class: "ui-assets-icons-16",
2007
+ xmlns: "http://www.w3.org/2000/svg",
2008
+ width: "16",
2009
+ height: "16",
2010
+ fill: "none"
2011
+ }), [
2012
+ e.$attrs["svg-title"] ? (m(), q("title", ea, M(e.$attrs["svg-title"]), 1)) : J("", !0),
2013
+ l[0] || (l[0] = w("path", {
2014
+ fill: "#00112C",
2015
+ d: "M12.6465 4.58337C12.32 3.42912 11.2588 2.58337 10 2.58337C8.74122 2.58337 7.67998 3.42912 7.35352 4.58337H1.25V6.08337H7.35352C7.67998 7.23763 8.74122 8.08337 10 8.08337C11.2588 8.08337 12.32 7.23763 12.6465 6.08337H14.75V4.58337H12.6465ZM11.25 5.33337C11.25 6.02373 10.6904 6.58337 10 6.58337C9.30964 6.58337 8.75 6.02373 8.75 5.33337C8.75 4.64302 9.30964 4.08337 10 4.08337C10.6904 4.08337 11.25 4.64302 11.25 5.33337Z"
2016
+ }, null, -1)),
2017
+ l[1] || (l[1] = w("path", {
2018
+ fill: "#00112C",
2019
+ d: "M4 7.91687C5.25878 7.91687 6.32002 8.76262 6.64648 9.91687H14.75V11.4169H6.64648C6.32002 12.5711 5.25878 13.4169 4 13.4169C2.48122 13.4169 1.25 12.1857 1.25 10.6669C1.25 9.14809 2.48122 7.91687 4 7.91687ZM5.25 10.6669C5.25 9.97651 4.69036 9.41687 4 9.41687C3.30964 9.41687 2.75 9.97651 2.75 10.6669C2.75 11.3572 3.30964 11.9169 4 11.9169C4.69036 11.9169 5.25 11.3572 5.25 10.6669Z"
2020
+ }, null, -1))
2021
+ ], 16);
2022
+ }
2023
+ const la = /* @__PURE__ */ W(xl, [["render", ta]]), nt = {
2024
+ "en-US": {
2025
+ all: "All",
2026
+ activeFilters: "Active filters",
2027
+ allFilters: "All filters",
2028
+ applyAll: "Apply all",
2029
+ cancel: "Cancel",
2030
+ clear: "Clear",
2031
+ clearAll: "Clear all",
2032
+ noFiltersMatchThisSearch: "No filters match this search",
2033
+ otherFilters: "Other filters",
2034
+ searchBar: "Search bar"
2035
+ }
2036
+ }, aa = G({
2037
+ i18n: { messages: nt },
2038
+ name: "all-filters-modal",
2039
+ components: {
2040
+ AllFiltersModalButton: Xl,
2041
+ BentoBooleanFilter: Tt,
2042
+ BentoButton: wt,
2043
+ BentoDateFilter: gt,
2044
+ BentoDateRangeFilter: St,
2045
+ BentoInputFilter: Ft,
2046
+ BentoModal: Rt,
2047
+ BentoRangeFilter: Et,
2048
+ BentoSearchBar: Ie,
2049
+ BentoSelectAvatarFilter: Ct,
2050
+ BentoSelectCurrencyFilter: At,
2051
+ BentoSelectCountryFilter: $t,
2052
+ BentoSelectFilter: ge,
2053
+ BentoSelectPaymentMethodFilter: Dt,
2054
+ BentoSelectTagFilter: It,
2055
+ BentoTypography: me,
2056
+ FilterBarButton: Be,
2057
+ SlidersIcon: la
2058
+ },
2059
+ props: {
2060
+ /**
2061
+ * Array of filters based on {@see FilterBarModel}.
2062
+ * Each one of the elements in the array correspond to a filter that will
2063
+ * be created and rendered in the AllFiltersModal.
2064
+ *
2065
+ * Can be used with v-model or independently with the @input event.
2066
+ *
2067
+ * @example
2068
+ * [{
2069
+ * field: 'company',
2070
+ * label: 'Company',
2071
+ * value: '200',
2072
+ * type: FilterType.TEXT,
2073
+ * }, {
2074
+ * field: 'name',
2075
+ * label: 'Name',
2076
+ * value: null,
2077
+ * type: FilterType.TEXT,
2078
+ * }]
2079
+ */
2080
+ value: {
2081
+ type: Array,
2082
+ default: () => []
2083
+ }
2084
+ },
2085
+ emits: [Ke.INPUT],
2086
+ setup(e, { emit: l }) {
2087
+ const n = it({ value: e.value }), s = R(n.value), t = qe("all-filters-modal"), i = R([]), a = R(!1), u = R(0), o = R(null), r = R(""), { t: p } = de({ messages: nt }), I = pt(r, Q(s, "value")), A = R({});
2088
+ He(() => {
2089
+ A.value = [];
2090
+ }), he(
2091
+ () => e.value,
2092
+ () => {
2093
+ n.value = e.value, s.value = e.value;
2094
+ }
2095
+ );
2096
+ const d = (y) => (
2097
+ /* eslint-disable-next-line no-nested-ternary */
2098
+ y.sort((v, T) => v.label > T.label ? 1 : T.label > v.label ? -1 : 0)
2099
+ ), g = b(
2100
+ () => d(
2101
+ I.value.filter(
2102
+ (y) => {
2103
+ var v, T;
2104
+ return Array.isArray(y.value) ? ((v = y.value) == null ? void 0 : v.length) && ((T = y.value) == null ? void 0 : T.find((N) => N !== "")) : y.value;
2105
+ }
2106
+ )
2107
+ )
2108
+ ), V = b(
2109
+ () => d(
2110
+ I.value.filter(
2111
+ (y) => {
2112
+ var v, T;
2113
+ return Array.isArray(y.value) ? ((v = y.value) == null ? void 0 : v.length) === 0 || ((T = y.value) == null ? void 0 : T.every((N) => N === "")) : !y.value;
2114
+ }
2115
+ )
2116
+ )
2117
+ ), P = b(() => {
2118
+ var y;
2119
+ return r.value && ((y = I.value) == null ? void 0 : y.length) === 0;
2120
+ }), k = b(() => s.value[u.value]), U = () => {
2121
+ const y = g.value.length ? g.value[0] : V.value[0], v = s.value.findIndex(
2122
+ (T) => T.label === y.label && T.field === y.field
2123
+ );
2124
+ u.value = v;
2125
+ };
2126
+ kt(() => {
2127
+ U();
2128
+ });
2129
+ const $ = (y) => y.map((v) => {
2130
+ var T, N, Z, x, ee, te;
2131
+ switch (v.type) {
2132
+ case le.SELECT:
2133
+ case le.SELECT_AVATAR:
2134
+ case le.SELECT_COUNTRY:
2135
+ case le.SELECT_CURRENCY:
2136
+ case le.SELECT_PAYMENT_METHOD:
2137
+ case le.SELECT_TAG:
2138
+ switch ((T = v.options) == null ? void 0 : T.multiple) {
2139
+ case !0:
2140
+ return {
2141
+ label: v.label,
2142
+ field: v.field,
2143
+ count: (N = v.value) != null && N.length ? (Z = v.value) == null ? void 0 : Z.length : null
2144
+ };
2145
+ default:
2146
+ return {
2147
+ label: v.label,
2148
+ field: v.field,
2149
+ count: v.value == null ? null : 1
2150
+ };
2151
+ }
2152
+ case le.DATE_RANGE:
2153
+ return {
2154
+ label: v.label,
2155
+ field: v.field,
2156
+ count: ((x = v.value) == null ? void 0 : x.startDate) != null && ((ee = v.value) == null ? void 0 : ee.endDate) != null ? 1 : null
2157
+ };
2158
+ case le.RANGE:
2159
+ return {
2160
+ label: v.label,
2161
+ field: v.field,
2162
+ count: (te = v.value) != null && te.find((ve) => ve !== "") ? 1 : null
2163
+ };
2164
+ case le.INPUT:
2165
+ case le.BOOLEAN:
2166
+ case le.DATE:
2167
+ default:
2168
+ return {
2169
+ label: v.label,
2170
+ field: v.field,
2171
+ count: v.value != null ? 1 : null
2172
+ };
2173
+ }
2174
+ }), j = b(
2175
+ () => {
2176
+ var y;
2177
+ return Array.isArray(k.value.value) ? ((y = k.value) == null ? void 0 : y.value.length) && k.value.value.find((v) => v !== "") : !!s.value[u.value].value;
2178
+ }
2179
+ ), Y = b(
2180
+ () => {
2181
+ var y;
2182
+ return (y = $(n.value)) == null ? void 0 : y.filter(({ count: v }) => !!v).length;
2183
+ }
2184
+ ), B = () => {
2185
+ a.value ? a.value = !1 : a.value = !0;
2186
+ }, c = (y) => {
2187
+ var T, N, Z;
2188
+ const v = $(s.value).find((x) => x.field === y.field).count;
2189
+ return y.type.includes("BentoSelect") && ((T = y.options) != null && T.multiple) && v === ((Z = (N = y.options) == null ? void 0 : N.listboxItems) == null ? void 0 : Z.length) ? p("all") : v;
2190
+ }, f = (y, v) => {
2191
+ u.value = s.value.findIndex(
2192
+ (T) => T.label === y && T.field === v
2193
+ );
2194
+ }, L = () => {
2195
+ r.value = "";
2196
+ }, X = () => {
2197
+ a.value = !1, n.value = e.value, s.value = e.value, L(), U();
2198
+ }, ae = (y) => {
2199
+ const v = s.value.map(({ value: T, ...N }, Z) => Z === u.value ? { value: y.value, ...N } : { value: T, ...N });
2200
+ s.value = v;
2201
+ }, se = () => {
2202
+ ae({
2203
+ field: k.value.field,
2204
+ label: k.value.label,
2205
+ type: k.value.type,
2206
+ value: void 0
2207
+ });
2208
+ }, oe = () => {
2209
+ s.value = n.value.map(({ value: y, ...v }) => ({
2210
+ ...v,
2211
+ value: void 0
2212
+ }));
2213
+ }, fe = () => {
2214
+ l(Ke.INPUT, s.value), a.value = !1;
2215
+ }, z = b(
2216
+ () => JSON.stringify(s.value) === JSON.stringify(e.value)
2217
+ ), h = b(() => [
2218
+ {
2219
+ title: p("applyAll"),
2220
+ disabled: z.value,
2221
+ event: fe
2222
+ },
2223
+ {
2224
+ title: p("cancel"),
2225
+ event: X
2226
+ },
2227
+ {
2228
+ title: p("clearAll"),
2229
+ disabled: !Y.value,
2230
+ event: oe
2231
+ }
2232
+ ]);
2233
+ return {
2234
+ // Enums
2235
+ BentoModalEvent: Ot,
2236
+ // Values
2237
+ allFiltersModalUniqueId: t,
2238
+ allFiltersModalFiltersSection: i,
2239
+ allFiltersModalFilterButtons: A,
2240
+ numberOfActiveFilters: Y,
2241
+ isEmptyResultForSearchFilter: P,
2242
+ isModalOpen: a,
2243
+ isClearButtonEnabled: j,
2244
+ activeFilters: g,
2245
+ otherFilters: V,
2246
+ modalActions: h,
2247
+ selectedFilter: k,
2248
+ selectedFilterRef: o,
2249
+ filters: n,
2250
+ searchTerm: r,
2251
+ // Methods
2252
+ onClickAllFiltersModal: B,
2253
+ getFilterCount: c,
2254
+ cancel: X,
2255
+ selectFilter: f,
2256
+ clearFilter: se,
2257
+ updateFilter: ae,
2258
+ onSearchbarClear: L,
2259
+ onKeydownRight: () => {
2260
+ Jt(1, o.value.$el).focus();
2261
+ },
2262
+ onKeydownLeft: () => {
2263
+ A.value[k.value.label].$el.focus();
2264
+ },
2265
+ // Translations
2266
+ t: p
2267
+ };
2268
+ }
2269
+ }), na = { class: "b-all-filters-modal" }, oa = {
2270
+ key: 0,
2271
+ class: "b-all-filters-modal__empty-search-message"
2272
+ }, sa = {
2273
+ key: 1,
2274
+ class: "b-all-filters-modal__filters-section"
2275
+ }, ia = ["aria-labelledby"], ra = {
2276
+ key: 2,
2277
+ class: "b-all-filters-modal__filters-section"
2278
+ }, ua = ["aria-labelledby"], da = { class: "b-all-filters-modal__selected-filter-text" }, ca = { class: "b-all-filters-modal__selected-filter-component" }, ba = { class: "b-all-filters-modal__clear-button" };
2279
+ function fa(e, l, n, s, t, i) {
2280
+ const a = D("sliders-icon"), u = D("filter-bar-button"), o = D("bento-search-bar"), r = D("bento-typography"), p = D("all-filters-modal-button"), I = D("bento-button"), A = D("bento-modal");
2281
+ return m(), q("div", na, [
2282
+ C(u, {
2283
+ "is-filter-open": e.isModalOpen,
2284
+ "applied-filters-count": e.numberOfActiveFilters,
2285
+ onClick: e.onClickAllFiltersModal
2286
+ }, {
2287
+ iconLeft: F(() => [
2288
+ C(a, { "aria-hidden": "true" })
2289
+ ]),
2290
+ default: F(() => [
2291
+ H(M(e.t("allFilters")) + " ", 1)
2292
+ ]),
2293
+ _: 1
2294
+ }, 8, ["is-filter-open", "applied-filters-count", "onClick"]),
2295
+ C(A, {
2296
+ class: "'b-all-filters-modal__modal'",
2297
+ "is-open": e.isModalOpen,
2298
+ "with-column-layout": !0,
2299
+ size: "large",
2300
+ actions: e.modalActions,
2301
+ "is-dismissible": !1,
2302
+ "hide-close-button": "",
2303
+ onCloseModal: e.cancel
2304
+ }, {
2305
+ default: F(() => [
2306
+ H(M(e.t("allFilters")), 1)
2307
+ ]),
2308
+ "content-col-1": F(() => [
2309
+ w("div", {
2310
+ ref: "allFiltersModalFiltersSection",
2311
+ class: "b-all-filters-modal__filters",
2312
+ onKeydown: l[1] || (l[1] = ye((...d) => e.onKeydownRight && e.onKeydownRight(...d), ["right"]))
2313
+ }, [
2314
+ C(o, {
2315
+ class: "b-all-filters-modal__search-bar",
2316
+ value: e.searchTerm,
2317
+ "input-field-aria-label": e.t("searchBar").toString(),
2318
+ onInput: l[0] || (l[0] = (d) => e.searchTerm = d),
2319
+ onClear: e.onSearchbarClear
2320
+ }, null, 8, ["value", "input-field-aria-label", "onClear"]),
2321
+ e.isEmptyResultForSearchFilter ? (m(), q("div", oa, [
2322
+ C(r, { el: "span" }, {
2323
+ default: F(() => [
2324
+ H(M(e.t("noFiltersMatchThisSearch")), 1)
2325
+ ]),
2326
+ _: 1
2327
+ })
2328
+ ])) : J("", !0),
2329
+ e.activeFilters.length ? (m(), q("div", sa, [
2330
+ C(r, {
2331
+ id: `active-filters-${e.allFiltersModalUniqueId}`,
2332
+ class: "b-all-filters-modal__filters-section-title",
2333
+ el: "span",
2334
+ variant: "caption"
2335
+ }, {
2336
+ default: F(() => [
2337
+ H(M(e.t("activeFilters")), 1)
2338
+ ]),
2339
+ _: 1
2340
+ }, 8, ["id"]),
2341
+ w("ul", {
2342
+ class: "b-all-filters-modal__filters-list",
2343
+ "aria-labelledby": `active-filters-${e.allFiltersModalUniqueId}`
2344
+ }, [
2345
+ (m(!0), q(Te, null, ce(e.activeFilters, (d) => (m(), q("li", {
2346
+ key: `${d.label}-${d.field}`
2347
+ }, [
2348
+ C(p, {
2349
+ ref_for: !0,
2350
+ ref: (g) => e.allFiltersModalFilterButtons[d.label] = g,
2351
+ label: d.label,
2352
+ "applied-filters-count": e.getFilterCount(d),
2353
+ "is-filter-open": e.selectedFilter.label === d.label,
2354
+ onClick: (g) => e.selectFilter(d.label, d.field)
2355
+ }, null, 8, ["label", "applied-filters-count", "is-filter-open", "onClick"])
2356
+ ]))), 128))
2357
+ ], 8, ia)
2358
+ ])) : J("", !0),
2359
+ e.otherFilters.length ? (m(), q("div", ra, [
2360
+ e.activeFilters.length ? (m(), E(r, {
2361
+ key: 0,
2362
+ id: `other-filters-${e.allFiltersModalUniqueId}`,
2363
+ class: "b-all-filters-modal__filters-section-title",
2364
+ el: "span",
2365
+ variant: "caption"
2366
+ }, {
2367
+ default: F(() => [
2368
+ H(M(e.t("otherFilters")), 1)
2369
+ ]),
2370
+ _: 1
2371
+ }, 8, ["id"])) : J("", !0),
2372
+ w("ul", {
2373
+ class: "b-all-filters-modal__filters-list",
2374
+ "aria-labelledby": `other-filters-${e.allFiltersModalUniqueId}`
2375
+ }, [
2376
+ (m(!0), q(Te, null, ce(e.otherFilters, (d) => (m(), q("li", {
2377
+ key: `${d.label}-${d.field}`
2378
+ }, [
2379
+ C(p, {
2380
+ ref_for: !0,
2381
+ ref: (g) => e.allFiltersModalFilterButtons[d.label] = g,
2382
+ label: d.label,
2383
+ "applied-filters-count": e.getFilterCount(d),
2384
+ "is-filter-open": e.selectedFilter.label === d.label,
2385
+ onClick: (g) => e.selectFilter(d.label, d.field)
2386
+ }, null, 8, ["label", "applied-filters-count", "is-filter-open", "onClick"])
2387
+ ]))), 128))
2388
+ ], 8, ua)
2389
+ ])) : J("", !0)
2390
+ ], 544)
2391
+ ]),
2392
+ "content-col-2": F(() => [
2393
+ w("div", {
2394
+ class: "b-all-filters-modal__selected-filter-content",
2395
+ onKeydown: l[2] || (l[2] = ye((...d) => e.onKeydownLeft && e.onKeydownLeft(...d), ["left"]))
2396
+ }, [
2397
+ w("div", da, [
2398
+ C(r, {
2399
+ el: "div",
2400
+ variant: "title",
2401
+ medium: ""
2402
+ }, {
2403
+ default: F(() => [
2404
+ H(M(e.selectedFilter.label), 1)
2405
+ ]),
2406
+ _: 1
2407
+ }),
2408
+ e.selectedFilter.description ? (m(), E(r, {
2409
+ key: 0,
2410
+ el: "div",
2411
+ variant: "body",
2412
+ wide: ""
2413
+ }, {
2414
+ default: F(() => [
2415
+ H(M(e.selectedFilter.description), 1)
2416
+ ]),
2417
+ _: 1
2418
+ })) : J("", !0)
2419
+ ]),
2420
+ w("div", ca, [
2421
+ (m(), E(Me(e.selectedFilter.type), {
2422
+ ref: "selectedFilterRef",
2423
+ key: e.selectedFilter.field,
2424
+ field: e.selectedFilter.field,
2425
+ label: e.selectedFilter.label,
2426
+ options: e.selectedFilter.options,
2427
+ value: e.selectedFilter.value,
2428
+ "default-value": e.selectedFilter.defaultValue,
2429
+ "only-slot": !0,
2430
+ onInput: e.updateFilter
2431
+ }, null, 40, ["field", "label", "options", "value", "default-value", "onInput"]))
2432
+ ]),
2433
+ w("div", ba, [
2434
+ C(I, {
2435
+ variant: "secondary",
2436
+ disabled: !e.isClearButtonEnabled,
2437
+ onClick: e.clearFilter
2438
+ }, {
2439
+ default: F(() => [
2440
+ H(M(e.t("clear")), 1)
2441
+ ]),
2442
+ _: 1
2443
+ }, 8, ["disabled", "onClick"])
2444
+ ])
2445
+ ], 32)
2446
+ ]),
2447
+ _: 1
2448
+ }, 8, ["is-open", "actions", "onCloseModal"])
2449
+ ]);
2450
+ }
2451
+ const ot = /* @__PURE__ */ W(aa, [["render", fa], ["__scopeId", "data-v-c106a692"]]), Pt = {
2452
+ "en-US": {
2453
+ clearAll: "Clear filters",
2454
+ filtersHaveBeenCleared: "Filters have been cleared.",
2455
+ filtersHaveBeenReset: "Filters have been reset.",
2456
+ undo: "Undo",
2457
+ resetAll: "Reset filters",
2458
+ searchBar: "Search bar"
2459
+ }
2460
+ }, va = { class: "b-filter-bar" }, pa = { class: "b-filter-bar__container" }, ma = {
2461
+ key: 0,
2462
+ class: "b-filter-bar__before-filters"
2463
+ }, ya = { class: "b-filter-bar__filters-container" }, ha = { class: "b-filter-bar__filters" }, Fa = { class: "b-filter-bar__scroller-content" }, ga = {
2464
+ key: 0,
2465
+ class: "b-filter-bar__actions"
2466
+ }, Sa = {
2467
+ i18n: { messages: Pt },
2468
+ name: "bento-filter-bar",
2469
+ components: {
2470
+ BentoBooleanFilter: Tt,
2471
+ BentoDateFilter: gt,
2472
+ BentoDateRangeFilter: St,
2473
+ BentoInputFilter: Ft,
2474
+ BentoRangeFilter: Et,
2475
+ BentoSelectAvatarFilter: Ct,
2476
+ BentoSelectCountryFilter: $t,
2477
+ BentoSelectCurrencyFilter: At,
2478
+ BentoSelectFilter: ge,
2479
+ BentoSelectPaymentMethodFilter: Dt,
2480
+ BentoSelectTagFilter: It
2481
+ }
2482
+ }, Ba = /* @__PURE__ */ G({
2483
+ ...Sa,
2484
+ props: {
2485
+ /**
2486
+ * Array of filters based on {@see BentoFilterBarModel}.
2487
+ * Each one of the elements in the array correspond to a filter that will
2488
+ * be created and rendered in the FilterBar.
2489
+ *
2490
+ * @example
2491
+ * [{
2492
+ * field: 'company',
2493
+ * label: 'Company',
2494
+ * type: FilterType.TEXT,
2495
+ * }, {
2496
+ * field: 'name',
2497
+ * label: 'Name',
2498
+ * type: FilterType.TEXT,
2499
+ * }]
2500
+ */
2501
+ config: {
2502
+ type: Array,
2503
+ default: () => []
2504
+ },
2505
+ /**
2506
+ * Search term useful to filter all the data by text.
2507
+ * If the value is non-existant (null or undefined) the search bar won't be enabled.
2508
+ */
2509
+ searchTerm: {
2510
+ type: Ie.props.value.type,
2511
+ default: void 0
2512
+ },
2513
+ /**
2514
+ * @deprecated from version 2.0.0. Use the config property instead.
2515
+ */
2516
+ /**
2517
+ * Array of filters based on {@see BentoFilterBarModel}.
2518
+ * Each one of the elements in the array correspond to a filter that will
2519
+ * be created and rendered in the FilterBar.
2520
+ *
2521
+ * Can be used with v-model or independently with the @input event.
2522
+ *
2523
+ * @example
2524
+ * [{
2525
+ * field: 'company',
2526
+ * label: 'Company',
2527
+ * value: '200',
2528
+ * type: FilterType.TEXT,
2529
+ * }, {
2530
+ * field: 'name',
2531
+ * label: 'Name',
2532
+ * value: null,
2533
+ * type: FilterType.TEXT,
2534
+ * }]
2535
+ */
2536
+ value: {
2537
+ type: Array,
2538
+ default: () => []
2539
+ },
2540
+ /**
2541
+ * An array of the values for each filter in the filter bar.
2542
+ * {@see BentoFilterValues}
2543
+ *
2544
+ * @example
2545
+ * [{
2546
+ * field: 'company',
2547
+ * value: '200',
2548
+ * }, {
2549
+ * field: 'name',
2550
+ * value: 'some text',
2551
+ * }]
2552
+ */
2553
+ filterValues: {
2554
+ type: Array,
2555
+ default: () => []
2556
+ },
2557
+ /**
2558
+ * Will show all applied filters even if their visibility is set to false.
2559
+ */
2560
+ showAppliedHiddenFilters: {
2561
+ type: Boolean,
2562
+ default: !1
2563
+ }
2564
+ },
2565
+ emits: [
2566
+ De.INPUT,
2567
+ De.UPDATE_FILTER_VALUES,
2568
+ Se.CLEAR,
2569
+ Se.INPUT,
2570
+ Se.UPDATE
2571
+ ],
2572
+ setup(e, { expose: l, emit: n }) {
2573
+ const s = e, t = n, { t: i } = de({ messages: Pt }), a = b(
2574
+ () => {
2575
+ var B, c;
2576
+ return (c = ((B = s.config) == null ? void 0 : B.length) > 0 ? s.config : s.value) == null ? void 0 : c.map((f) => {
2577
+ var X;
2578
+ let L = (X = s.filterValues.find(({ field: ae }) => ae === f.field)) == null ? void 0 : X.value;
2579
+ return L === void 0 && (L = (f == null ? void 0 : f.value) === void 0 && (f == null ? void 0 : f.defaultValue) !== void 0 ? f == null ? void 0 : f.defaultValue : f == null ? void 0 : f.value), { ...f, value: L !== void 0 ? L : f == null ? void 0 : f.value };
2580
+ });
2581
+ }
2582
+ ), { addToast: u } = Lt(), o = b(() => i("searchBar")), r = b(() => a.value.some(
2583
+ ({ visible: c }) => c != null
2584
+ ) ? a.value.some(({ visible: c }) => !c) : !1), p = b(
2585
+ () => a.value.filter(({ defaultValue: B }) => B !== void 0)
2586
+ ), I = b(() => a.value.some(
2587
+ ({ visible: c }) => c != null
2588
+ ) ? a.value.filter(
2589
+ ({ defaultValue: c, visible: f, value: L }) => c === void 0 && f || s.showAppliedHiddenFilters && L != null
2590
+ ) : a.value.filter(
2591
+ ({ defaultValue: c, value: f }) => c === void 0 || s.showAppliedHiddenFilters && f != null
2592
+ )), A = b(() => s.searchTerm != null), d = b(
2593
+ () => a.value.filter(({ defaultValue: B }) => B == null).some(({ value: B }) => B != null)
2594
+ ), g = b(() => p.value.length === 0 && d.value), V = b(() => p.value.length === 0 ? !1 : !a.value.filter(({ defaultValue: c }) => c !== void 0 || c !== null).every(({ value: c, defaultValue: f }) => JSON.stringify(c) === JSON.stringify(f)) || d.value), P = (B) => {
2595
+ t(De.INPUT, B), t(
2596
+ De.UPDATE_FILTER_VALUES,
2597
+ B == null ? void 0 : B.filter(({ value: c }) => c !== null || c !== void 0).map(({ field: c, value: f }) => ({ field: c, value: f }))
2598
+ );
2599
+ }, k = (B) => {
2600
+ const c = a.value.findIndex(
2601
+ (L) => L.field === B.field
2602
+ ), f = a.value.slice();
2603
+ f[c].value = B.value, P(f);
2604
+ }, U = () => {
2605
+ const B = a.value.slice(), c = a.value.map(({ value: f, ...L }) => ({
2606
+ ...L,
2607
+ value: void 0
2608
+ }));
2609
+ u({
2610
+ text: i("filtersHaveBeenCleared"),
2611
+ action: {
2612
+ handler: () => P(B),
2613
+ text: i("undo")
2614
+ }
2615
+ }), P(c);
2616
+ }, $ = () => {
2617
+ const B = a.value.slice(), c = a.value.map(({ defaultValue: f, ...L }) => ({
2618
+ ...L,
2619
+ defaultValue: f,
2620
+ value: f
2621
+ }));
2622
+ u({
2623
+ text: i("filtersHaveBeenReset"),
2624
+ action: {
2625
+ handler: () => P(B),
2626
+ text: i("undo")
2627
+ }
2628
+ }), P(c);
2629
+ }, j = (B) => {
2630
+ t(Se.INPUT, B), t(Se.UPDATE, B);
2631
+ }, Y = () => {
2632
+ t(Se.CLEAR);
2633
+ };
2634
+ return l({ isClearAllVisible: g, clearAllFilters: U, isResetAllVisible: V, resetAllFilters: $ }), (B, c) => (m(), q("div", va, [
2635
+ w("div", pa, [
2636
+ A.value || r.value || g.value || V.value ? (m(), q("div", ma, [
2637
+ A.value ? (m(), E(_(Ie), {
2638
+ key: 0,
2639
+ class: "b-filter-bar__search-bar",
2640
+ "input-field-aria-label": o.value,
2641
+ value: e.searchTerm,
2642
+ condensed: "",
2643
+ onInput: j,
2644
+ onClear: Y
2645
+ }, null, 8, ["input-field-aria-label", "value"])) : J("", !0),
2646
+ r.value ? (m(), E(ot, {
2647
+ key: 1,
2648
+ class: "b-filter-bar__all-filters-modal",
2649
+ value: a.value,
2650
+ onInput: P
2651
+ }, null, 8, ["value"])) : J("", !0),
2652
+ Ve(C(_(Be), {
2653
+ class: "b-filter-bar__clear-all",
2654
+ onClick: U
2655
+ }, {
2656
+ iconLeft: F(() => [
2657
+ C(_(Le), { "aria-hidden": "true" })
2658
+ ]),
2659
+ default: F(() => [
2660
+ H(M(_(i)("clearAll")) + " ", 1)
2661
+ ]),
2662
+ _: 1
2663
+ }, 512), [
2664
+ [ke, g.value]
2665
+ ]),
2666
+ Ve(C(_(Be), {
2667
+ class: "b-filter-bar__reset-all",
2668
+ onClick: $
2669
+ }, {
2670
+ iconLeft: F(() => [
2671
+ C(_(Le), { "aria-hidden": "true" })
2672
+ ]),
2673
+ default: F(() => [
2674
+ H(M(_(i)("resetAll")) + " ", 1)
2675
+ ]),
2676
+ _: 1
2677
+ }, 512), [
2678
+ [ke, V.value]
2679
+ ])
2680
+ ])) : J("", !0),
2681
+ w("div", ya, [
2682
+ w("div", ha, [
2683
+ C(_(nl), {
2684
+ class: "b-filter-bar__fixed-scroller",
2685
+ condensed: ""
2686
+ }, {
2687
+ default: F(() => [
2688
+ w("div", Fa, [
2689
+ A.value ? (m(), E(_(Ie), {
2690
+ key: 0,
2691
+ class: "b-filter-bar__search-bar",
2692
+ "input-field-aria-label": o.value,
2693
+ value: e.searchTerm,
2694
+ condensed: "",
2695
+ onInput: j,
2696
+ onClear: Y
2697
+ }, null, 8, ["input-field-aria-label", "value"])) : J("", !0),
2698
+ p.value.length ? (m(!0), q(Te, { key: 1 }, ce(p.value, (f) => (m(), E(Me(f.type), {
2699
+ key: f.field,
2700
+ field: f.field,
2701
+ label: f.label,
2702
+ options: f.options,
2703
+ value: f.value,
2704
+ "default-value": f.defaultValue,
2705
+ onUpdate: k
2706
+ }, null, 40, ["field", "label", "options", "value", "default-value"]))), 128)) : J("", !0),
2707
+ (m(!0), q(Te, null, ce(I.value, (f) => (m(), E(Me(f.type), {
2708
+ key: f.field,
2709
+ field: f.field,
2710
+ label: f.label,
2711
+ options: f.options,
2712
+ value: f.value,
2713
+ onUpdate: k
2714
+ }, null, 40, ["field", "label", "options", "value"]))), 128))
2715
+ ])
2716
+ ]),
2717
+ _: 1
2718
+ })
2719
+ ]),
2720
+ r.value || g.value || V.value ? (m(), q("div", ga, [
2721
+ r.value ? (m(), E(ot, {
2722
+ key: 0,
2723
+ class: "b-filter-bar__all-filters-modal",
2724
+ value: a.value,
2725
+ onInput: P
2726
+ }, null, 8, ["value"])) : J("", !0),
2727
+ Ve(C(_(Be), {
2728
+ class: "b-filter-bar__clear-all",
2729
+ onClick: U
2730
+ }, {
2731
+ iconLeft: F(() => [
2732
+ C(_(Le), { "aria-hidden": "true" })
2733
+ ]),
2734
+ default: F(() => [
2735
+ H(M(_(i)("clearAll")) + " ", 1)
2736
+ ]),
2737
+ _: 1
2738
+ }, 512), [
2739
+ [ke, g.value]
2740
+ ]),
2741
+ Ve(C(_(Be), {
2742
+ class: "b-filter-bar__reset-all",
2743
+ onClick: $
2744
+ }, {
2745
+ iconLeft: F(() => [
2746
+ C(_(Le), { "aria-hidden": "true" })
2747
+ ]),
2748
+ default: F(() => [
2749
+ H(M(_(i)("resetAll")) + " ", 1)
2750
+ ]),
2751
+ _: 1
2752
+ }, 512), [
2753
+ [ke, V.value]
2754
+ ])
2755
+ ])) : J("", !0)
2756
+ ])
2757
+ ])
2758
+ ]));
2759
+ }
2760
+ }), un = /* @__PURE__ */ W(Ba, [["__scopeId", "data-v-1bd520ea"]]);
2761
+ export {
2762
+ un as B,
2763
+ S as a,
2764
+ De as b,
2765
+ le as c
2766
+ };
2767
+ //# sourceMappingURL=filter-bar.-G1-moOO.js.map