@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.
- package/dist/@types/packages/vue2/src/components/accordion/accordion.vue.d.ts +5 -5
- package/dist/@types/packages/vue2/src/components/accordion/components/accordion-item.vue.d.ts +6 -6
- package/dist/@types/packages/vue2/src/components/action-bar/action-bar.vue.d.ts +8 -8
- package/dist/@types/packages/vue2/src/components/alert/alert.vue.d.ts +8 -8
- package/dist/@types/packages/vue2/src/components/avatar/avatar.vue.d.ts +6 -6
- package/dist/@types/packages/vue2/src/components/avatar/components/avatar-image/avatar-image.vue.d.ts +8 -8
- package/dist/@types/packages/vue2/src/components/button/button.vue.d.ts +9 -9
- package/dist/@types/packages/vue2/src/components/button/components/button-actions/button-actions.vue.d.ts +5 -5
- package/dist/@types/packages/vue2/src/components/button/components/loading-button/loading-button.vue.d.ts +7 -7
- package/dist/@types/packages/vue2/src/components/button/components/toggle-button/toggle-button.vue.d.ts +6 -6
- package/dist/@types/packages/vue2/src/components/card/card.vue.d.ts +8 -8
- package/dist/@types/packages/vue2/src/components/checkbox/checkbox.vue.d.ts +481 -22
- package/dist/@types/packages/vue2/src/components/checkbox/components/checkbox-group/checkbox-group.vue.d.ts +764 -12
- package/dist/@types/packages/vue2/src/components/click-outside/click-outside.d.ts +6 -6
- package/dist/@types/packages/vue2/src/components/code-snippet/code-snippet.vue.d.ts +2149 -17
- package/dist/@types/packages/vue2/src/components/country/composables/use-country-capital/use-country-capital.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/country/composables/use-country-name/use-country-name.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/country/composables/use-country-phone-code/use-country-phon-code.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/country/country.vue.d.ts +158 -8
- package/dist/@types/packages/vue2/src/components/currency/currency.vue.d.ts +157 -7
- package/dist/@types/packages/vue2/src/components/dashed-underline/dashed-underline.vue.d.ts +6 -6
- package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-cell/data-grid-cell.types.d.ts +2 -2
- package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-cell/data-grid-cell.vue.d.ts +10 -10
- package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-cell-actions/data-grid-cell-actions.vue.d.ts +6 -6
- package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-columns/data-grid-columns.vue.d.ts +10 -10
- 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
- package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-config-settings/data-grid-config-settings.vue.d.ts +1304 -16
- package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-lazy-load/data-grid-lazy-load.vue.d.ts +5 -5
- package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-static-icon/data-grid-static-icon.vue.d.ts +6 -6
- package/dist/@types/packages/vue2/src/components/data-grid/composables/use-calculate-column-width/use-calculate-column-width.d.ts +63 -5
- package/dist/@types/packages/vue2/src/components/data-grid/composables/use-calculate-column-width/use-calculate-column-width.types.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/data-grid/composables/use-calculate-sticky-element-height/use-calculate-sticky-element-height.d.ts +4 -4
- package/dist/@types/packages/vue2/src/components/data-grid/composables/use-column-hovering/use-column-hovering.d.ts +61 -2
- package/dist/@types/packages/vue2/src/components/data-grid/composables/use-column-hovering/use-column-hovering.types.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/data-grid/composables/use-column-reorderer/use-column-reorderer.d.ts +3 -3
- package/dist/@types/packages/vue2/src/components/data-grid/composables/use-config-settings/use-config-settings.d.ts +4 -4
- package/dist/@types/packages/vue2/src/components/data-grid/composables/use-keyboard-navigator/use-keyboard-navigator.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/data-grid/composables/use-lazy-loading/use-lazy-loading.d.ts +4 -4
- package/dist/@types/packages/vue2/src/components/data-grid/composables/use-resizer.d.ts +62 -4
- package/dist/@types/packages/vue2/src/components/data-grid/composables/use-scroller/use-scroller.d.ts +5 -5
- package/dist/@types/packages/vue2/src/components/data-grid/composables/use-selector.d.ts +2 -2
- package/dist/@types/packages/vue2/src/components/data-grid/composables/use-sorter.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/data-grid/data-grid.vue.d.ts +43 -9
- package/dist/@types/packages/vue2/src/components/date/date.vue.d.ts +157 -7
- package/dist/@types/packages/vue2/src/components/date-picker/composables/use-date-picker-single-calendar-text.types.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/date-picker/date-picker.vue.d.ts +1701 -21
- package/dist/@types/packages/vue2/src/components/date-range-picker/components/date-range-picker-calendar/date-range-picker-calendar.vue.d.ts +2725 -147
- package/dist/@types/packages/vue2/src/components/date-range-picker/composables/use-date-range-picker-calendar-text.types.d.ts +3 -2
- package/dist/@types/packages/vue2/src/components/date-range-picker/date-range-picker.vue.d.ts +3739 -18
- package/dist/@types/packages/vue2/src/components/divider/divider.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-base-textbox/dropdown-base-textbox.types.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-base-textbox/dropdown-base-textbox.vue.d.ts +9 -9
- package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-default-textbox/dropdown-default-textbox.vue.d.ts +9 -9
- package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-options-container/composables/use-dropdown-options-listbox.d.ts +8 -2
- package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-options-container/dropdown-options-container.vue.d.ts +10 -10
- package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-small-textbox/dropdown-small-textbox.vue.d.ts +8 -8
- package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-avatar/dropdown-avatar.vue.d.ts +4 -4
- package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-country/composables/use-country-items.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-country/dropdown-country.vue.d.ts +4 -4
- package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-currency/dropdown-currency.vue.d.ts +4 -4
- package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-payment-method/dropdown-payment-method.vue.d.ts +4 -4
- package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-tag/dropdown-tag.vue.d.ts +4 -4
- package/dist/@types/packages/vue2/src/components/dropdown/composables/use-display-value.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/dropdown/composables/use-display-value.types.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/dropdown/composables/use-keyboard-navigation.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/dropdown/composables/use-keyboard-navigation.types.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/dropdown/dropdown.vue.d.ts +455 -11
- package/dist/@types/packages/vue2/src/components/empty-state/empty-state.vue.d.ts +5 -5
- package/dist/@types/packages/vue2/src/components/filter-bar/components/all-filters-modal/all-filters-modal.vue.d.ts +18251 -1703
- 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
- package/dist/@types/packages/vue2/src/components/filter-bar/components/base-filter/base-filter.vue.d.ts +557 -16
- package/dist/@types/packages/vue2/src/components/filter-bar/components/base-filter/composables/use-base-filter.d.ts +7 -5
- package/dist/@types/packages/vue2/src/components/filter-bar/components/base-filter-button/base-filter-button.vue.d.ts +361 -10
- package/dist/@types/packages/vue2/src/components/filter-bar/components/boolean-filter/boolean-filter.vue.d.ts +931 -17
- package/dist/@types/packages/vue2/src/components/filter-bar/components/date-filter/date-filter.vue.d.ts +3284 -76
- package/dist/@types/packages/vue2/src/components/filter-bar/components/date-range-filter/date-range-filter.vue.d.ts +7588 -145
- package/dist/@types/packages/vue2/src/components/filter-bar/components/filter-bar-button/filter-bar-button.vue.d.ts +6 -6
- package/dist/@types/packages/vue2/src/components/filter-bar/components/input-filter/input-filter.vue.d.ts +1061 -19
- package/dist/@types/packages/vue2/src/components/filter-bar/components/range-filter/range-filter.vue.d.ts +1056 -14
- package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/components/select-filter-button/select-filter-button.vue.d.ts +8 -8
- package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/components/select-filter-dropdown/select-filter-dropdown.vue.d.ts +8 -8
- package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/select-filter.props.d.ts +59 -0
- package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/select-filter.vue.d.ts +19 -80
- package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/variants/select-avatar-filter/select-avatar-filter.vue.d.ts +229 -6
- package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/variants/select-country-filter/select-country-filter.vue.d.ts +73 -9
- package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/variants/select-currency-filter/select-currency-filter.vue.d.ts +559 -6
- 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
- package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/variants/select-tag-filter/select-tag-filter.vue.d.ts +587 -7
- package/dist/@types/packages/vue2/src/components/filter-bar/filter-bar.vue.d.ts +16154 -21
- package/dist/@types/packages/vue2/src/components/focus-trap/focus-trap.vue.d.ts +8 -8
- package/dist/@types/packages/vue2/src/components/form-layout/components/form-layout-field-tip/form-layout-field-tip.vue.d.ts +5 -5
- package/dist/@types/packages/vue2/src/components/form-layout/components/form-layout-group/form-layout-group.vue.d.ts +5 -5
- package/dist/@types/packages/vue2/src/components/form-layout/components/form-layout-title/form-layout-title.vue.d.ts +4 -4
- package/dist/@types/packages/vue2/src/components/form-layout/form-layout.vue.d.ts +4 -4
- package/dist/@types/packages/vue2/src/components/header/components/info-icon-with-popover/info-icon-with-popover.vue.d.ts +4 -4
- package/dist/@types/packages/vue2/src/components/header/header.vue.d.ts +388 -10
- package/dist/@types/packages/vue2/src/components/image/image.vue.d.ts +7 -7
- package/dist/@types/packages/vue2/src/components/info-icon/info-icon.vue.d.ts +17 -5
- package/dist/@types/packages/vue2/src/components/input-field/input-field.vue.d.ts +12 -12
- package/dist/@types/packages/vue2/src/components/inspector/inspector.vue.d.ts +9 -9
- package/dist/@types/packages/vue2/src/components/internal/base-button/base-button.vue.d.ts +161 -11
- package/dist/@types/packages/vue2/src/components/internal/button-actions-with-menu/button-actions-with-menu.vue.d.ts +5 -5
- package/dist/@types/packages/vue2/src/components/internal/calendar/calendar.types.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/internal/calendar/calendar.vue.d.ts +726 -144
- package/dist/@types/packages/vue2/src/components/internal/calendar/components/calendar-month/calendar-month.vue.d.ts +582 -15
- 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
- package/dist/@types/packages/vue2/src/components/internal/calendar/components/calendar-month/components/calendar-month-day/calendar-month-day.props.d.ts +34 -0
- package/dist/@types/packages/vue2/src/components/internal/calendar/components/calendar-month/components/calendar-month-day/calendar-month-day.vue.d.ts +197 -38
- package/dist/@types/packages/vue2/src/components/internal/calendar/components/calendar-month/composables/move-calendar-date.d.ts +5 -135
- package/dist/@types/packages/vue2/src/components/internal/checkbox-input/checkbox-input.vue.d.ts +8 -8
- package/dist/@types/packages/vue2/src/components/internal/controls-group/controls-group.vue.d.ts +4 -4
- package/dist/@types/packages/vue2/src/components/internal/copy/copy.vue.d.ts +185 -9
- package/dist/@types/packages/vue2/src/components/internal/dialog-page/dialog-page.types.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/internal/dialog-page/dialog-page.vue.d.ts +7 -7
- package/dist/@types/packages/vue2/src/components/internal/error-message/error-message.vue.d.ts +3 -3
- package/dist/@types/packages/vue2/src/components/internal/field-label/field-label.vue.d.ts +4 -4
- package/dist/@types/packages/vue2/src/components/internal/fixed-scroller/composables/useFixedScroller.d.ts +19 -19
- package/dist/@types/packages/vue2/src/components/internal/fixed-scroller/fixed-scroller.vue.d.ts +4 -4
- package/dist/@types/packages/vue2/src/components/internal/footer-actions/footer-actions.vue.d.ts +5 -5
- package/dist/@types/packages/vue2/src/components/internal/grid-layout/grid-layout.vue.d.ts +7 -7
- 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
- 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
- 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
- package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-multi-select/listbox-multi-select.vue.d.ts +2534 -21
- package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-option/listbox-option.vue.d.ts +7 -7
- package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-option-tag/listbox-option-tag.vue.d.ts +357 -6
- 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
- package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-single-select/listbox-single-select.vue.d.ts +409 -12
- package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-single-select-option/listbox-single-select-option.vue.d.ts +197 -10
- package/dist/@types/packages/vue2/src/components/internal/listbox/composables/use-cached-selected-values/use-cached-selected-values.d.ts +8 -2
- package/dist/@types/packages/vue2/src/components/internal/listbox/composables/use-multi-level-items/use-multi-level-items.d.ts +3 -3
- package/dist/@types/packages/vue2/src/components/internal/listbox/listbox.vue.d.ts +3552 -50
- package/dist/@types/packages/vue2/src/components/internal/radio-input/radio-input.vue.d.ts +7 -7
- package/dist/@types/packages/vue2/src/components/internal/teleport/teleport.vue.d.ts +5 -5
- package/dist/@types/packages/vue2/src/components/link/link.vue.d.ts +8 -8
- package/dist/@types/packages/vue2/src/components/loading-indicator/loading-indicator.vue.d.ts +7 -7
- package/dist/@types/packages/vue2/src/components/menu/components/menu-item/menu-item.vue.d.ts +358 -8
- package/dist/@types/packages/vue2/src/components/menu/components/menu-item-list/menu-item-list.vue.d.ts +992 -16
- package/dist/@types/packages/vue2/src/components/menu/components/menu-list-container/menu-list-container.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/menu/components/sub-menu-item-list/sub-menu-item-list.vue.d.ts +469 -9
- package/dist/@types/packages/vue2/src/components/menu/menu.vue.d.ts +1579 -15
- package/dist/@types/packages/vue2/src/components/modal/components/base-modal/base-modal.vue.d.ts +9 -9
- package/dist/@types/packages/vue2/src/components/modal/components/modal-default/modal-default.vue.d.ts +7 -7
- package/dist/@types/packages/vue2/src/components/modal/components/modal-dialog/modal-dialog.vue.d.ts +7 -7
- package/dist/@types/packages/vue2/src/components/modal/components/modal-page/modal-page.vue.d.ts +5 -5
- package/dist/@types/packages/vue2/src/components/modal/modal.types.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/modal/modal.vue.d.ts +350 -8
- package/dist/@types/packages/vue2/src/components/modal-fullscreen/components/modal-fullscreen-page.vue.d.ts +5 -5
- package/dist/@types/packages/vue2/src/components/modal-fullscreen/modal-fullscreen.vue.d.ts +7 -7
- package/dist/@types/packages/vue2/src/components/pagination/components/pagination-context/pagination-context.vue.d.ts +1481 -7
- package/dist/@types/packages/vue2/src/components/pagination/components/pagination-controls/pagination-controls.vue.d.ts +179 -10
- package/dist/@types/packages/vue2/src/components/pagination/components/pagination-results-per-page/pagination-results-per-page.vue.d.ts +1489 -9
- package/dist/@types/packages/vue2/src/components/pagination/pagination.vue.d.ts +3264 -10
- package/dist/@types/packages/vue2/src/components/payment-method/composables/use-payment-icon/use-payment-icon.d.ts +2 -2
- package/dist/@types/packages/vue2/src/components/payment-method/payment-method.vue.d.ts +159 -8
- package/dist/@types/packages/vue2/src/components/popover/components/popover-dismiss-button/popover-dismiss-button.vue.d.ts +172 -6
- package/dist/@types/packages/vue2/src/components/popover/components/popover-image/popover-image.vue.d.ts +3 -3
- package/dist/@types/packages/vue2/src/components/popover/components/popover-title/popover-title.vue.d.ts +157 -7
- package/dist/@types/packages/vue2/src/components/popover/popover.vue.d.ts +8 -8
- package/dist/@types/packages/vue2/src/components/popper-container/popper-container.vue.d.ts +7 -7
- package/dist/@types/packages/vue2/src/components/radio-group/components/radio-button/radio-button.vue.d.ts +16 -8
- package/dist/@types/packages/vue2/src/components/radio-group/radio-group.vue.d.ts +7 -7
- package/dist/@types/packages/vue2/src/components/search-bar/search-bar.vue.d.ts +10 -10
- package/dist/@types/packages/vue2/src/components/search-bar/useSearchBarDataFilter.d.ts +2 -2
- package/dist/@types/packages/vue2/src/components/secondary-nav/components/secondary-nav-category/secondary-nav-category.vue.d.ts +5 -5
- package/dist/@types/packages/vue2/src/components/secondary-nav/components/secondary-nav-item/secondary-nav-item.vue.d.ts +7 -7
- package/dist/@types/packages/vue2/src/components/secondary-nav/secondary-nav.keys.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/secondary-nav/secondary-nav.types.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/secondary-nav/secondary-nav.vue.d.ts +7 -7
- package/dist/@types/packages/vue2/src/components/segmented-control/components/segmented-control-button/segmented-control-button.vue.d.ts +8 -8
- package/dist/@types/packages/vue2/src/components/segmented-control/segmented-control.vue.d.ts +8 -8
- package/dist/@types/packages/vue2/src/components/selection-card/components/selection-card-group/selection-card-group.vue.d.ts +7 -7
- package/dist/@types/packages/vue2/src/components/selection-card/selection-card.types.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/selection-card/selection-card.vue.d.ts +22 -7
- package/dist/@types/packages/vue2/src/components/sidepanel/components/sidepanel-page.vue.d.ts +5 -5
- package/dist/@types/packages/vue2/src/components/sidepanel/sidepanel.vue.d.ts +6 -6
- package/dist/@types/packages/vue2/src/components/status/status.vue.d.ts +5 -5
- package/dist/@types/packages/vue2/src/components/stepper/components/step/step.vue.d.ts +6 -6
- package/dist/@types/packages/vue2/src/components/stepper/composables/use-keyboard-navigation/use-keyboard-navigation.d.ts +2 -2
- package/dist/@types/packages/vue2/src/components/stepper/composables/use-step-register/use-step-register.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/stepper/stepper.types.d.ts +2 -2
- package/dist/@types/packages/vue2/src/components/stepper/stepper.vue.d.ts +7 -7
- package/dist/@types/packages/vue2/src/components/structured-list/components/structered-list-item/structured-list-item.vue.d.ts +5 -5
- package/dist/@types/packages/vue2/src/components/structured-list/structured-list.vue.d.ts +6 -6
- package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item/summary-grid-item.vue.d.ts +619 -11
- package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item-amount/summary-grid-item-amount.vue.d.ts +733 -5
- package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item-custom/summary-grid-item-custom.vue.d.ts +733 -5
- package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item-numeric/summary-grid-item-numeric.vue.d.ts +733 -5
- package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item-percentage/summary-grid-item-percentage.vue.d.ts +733 -5
- package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item-text/summary-grid-item-text.vue.d.ts +732 -4
- package/dist/@types/packages/vue2/src/components/summary-grid/summary-grid.vue.d.ts +49 -6
- package/dist/@types/packages/vue2/src/components/tabs/components/tab.types.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/tabs/components/tab.vue.d.ts +6 -6
- package/dist/@types/packages/vue2/src/components/tabs/tabs.types.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/tabs/tabs.vue.d.ts +300 -25
- package/dist/@types/packages/vue2/src/components/tag/tag.vue.d.ts +171 -11
- package/dist/@types/packages/vue2/src/components/textarea/textarea.vue.d.ts +12 -12
- package/dist/@types/packages/vue2/src/components/timeline/components/timeline-item/timeline-item.vue.d.ts +1080 -19
- package/dist/@types/packages/vue2/src/components/timeline/timeline.types.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/timeline/timeline.vue.d.ts +367 -10
- package/dist/@types/packages/vue2/src/components/toast/components/toast-item/toast-item.vue.d.ts +4 -4
- package/dist/@types/packages/vue2/src/components/toast/components/toast-shadow-stack/toast-shadow-stack.vue.d.ts +3 -3
- package/dist/@types/packages/vue2/src/components/toast/toast.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/toggle/toggle.vue.d.ts +162 -11
- package/dist/@types/packages/vue2/src/components/tooltip/tooltip.vue.d.ts +437 -8
- package/dist/@types/packages/vue2/src/components/tutorial/components/tutorial-popover/components/tutorial-indicator/tutorial-indicator.vue.d.ts +3 -3
- package/dist/@types/packages/vue2/src/components/tutorial/components/tutorial-popover/tutorial-popover.vue.d.ts +14 -28
- package/dist/@types/packages/vue2/src/components/tutorial/tutorial.types.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/tutorial/tutorial.vue.d.ts +7 -7
- package/dist/@types/packages/vue2/src/components/typography/typography.vue.d.ts +6 -6
- package/dist/@types/packages/vue2/src/composables/initials.d.ts +1 -1
- package/dist/@types/packages/vue2/src/composables/use-bento-toast-controller/use-bento-toast-controller.types.d.ts +1 -1
- package/dist/@types/packages/vue2/src/composables/use-checkbox-select-all/use-checkbox-select-all.d.ts +1 -1
- package/dist/@types/packages/vue2/src/composables/use-default-slot-validator/use-default-slot-validator.d.ts +1 -1
- package/dist/@types/packages/vue2/src/composables/use-expandable-content-height/use-expandable-content-height.d.ts +3 -3
- package/dist/@types/packages/vue2/src/composables/use-form-layout-loading/use-form-layout-loading.d.ts +2 -2
- package/dist/@types/packages/vue2/src/composables/use-form-validate/use-form.d.ts +3 -3
- package/dist/@types/packages/vue2/src/composables/use-has-slot/use-has-slot.d.ts +2 -2
- package/dist/@types/packages/vue2/src/composables/use-virtual-list/use-virtual-list.d.ts +6 -6
- package/dist/@types/packages/vue2/src/composables/use-virtual-list/use-virtual-list.types.d.ts +2 -2
- package/dist/@types/packages/vue2/src/directives/click-outside/directive.d.ts +1 -1
- package/dist/@types/packages/vue2/src/directives/keyboard-navigation/keyboard-navigation.d.ts +1 -1
- package/dist/@types/packages/vue2/src/directives/keyboard-navigation/keyboard-navigation.types.d.ts +1 -1
- package/dist/@types/packages/vue2/src/install.d.ts +1 -1
- package/dist/@types/packages/vue2/src/templates/dashboard-template/components/dashboard-section/dashboard-section.vue.d.ts +6 -6
- package/dist/@types/packages/vue2/src/templates/dashboard-template/dashboard-template.vue.d.ts +6 -6
- package/dist/@types/packages/vue2/src/templates/data-grid-template/data-grid-template.types.d.ts +2 -2
- package/dist/@types/packages/vue2/src/templates/data-grid-template/data-grid-template.vue.d.ts +7 -7
- package/dist/@types/packages/vue2/src/types/elements.d.ts +1 -1
- package/dist/@types/packages/vue2/src/types/maybe-ref.d.ts +1 -1
- package/dist/@types/packages/vue2/src/types/refs.d.ts +2 -2
- package/dist/@types/packages/vue2/src/utils/ts/aria-label.d.ts +1 -1
- package/dist/@types/packages/vue2/src/utils/ts/get-slot-text/get-slot-text.d.ts +1 -1
- package/dist/@types/packages/vue2/src/utils/ts/i18n.d.ts +1 -1
- package/dist/@types/packages/vue2/src/utils/ts/storybook.d.ts +1 -1
- package/dist/accordion.js +1 -1
- package/dist/action-bar.js +1 -1
- package/dist/alert.js +1 -1
- package/dist/assets/accordion-item.css +1 -1
- package/dist/assets/action-bar.css +1 -1
- package/dist/assets/alert.css +1 -1
- package/dist/assets/avatar.css +1 -1
- package/dist/assets/base-button.css +1 -1
- package/dist/assets/base-modal.css +1 -1
- package/dist/assets/button-actions-with-menu.css +1 -1
- package/dist/assets/button-actions.css +1 -1
- package/dist/assets/button.css +1 -1
- package/dist/assets/calendar.css +1 -1
- package/dist/assets/card.css +1 -1
- package/dist/assets/checkbox-group.css +1 -1
- package/dist/assets/checkbox-input.css +1 -1
- package/dist/assets/checkbox.css +1 -1
- package/dist/assets/code-snippet.css +1 -1
- package/dist/assets/controls-group.css +1 -1
- package/dist/assets/copy.css +1 -1
- package/dist/assets/country.css +1 -1
- package/dist/assets/dashboard-section.css +1 -1
- package/dist/assets/dashed-underline.css +1 -1
- package/dist/assets/data-grid-template.css +1 -1
- package/dist/assets/data-grid.css +1 -1
- package/dist/assets/date-picker.css +1 -1
- package/dist/assets/date-range-picker.css +1 -1
- package/dist/assets/dialog-page.css +1 -1
- package/dist/assets/dropdown-default-textbox.css +1 -1
- package/dist/assets/dropdown-tag.css +1 -1
- package/dist/assets/dropdown.css +1 -1
- package/dist/assets/empty-state.css +1 -1
- package/dist/assets/error-message.css +1 -1
- package/dist/assets/filter-bar.css +1 -1
- package/dist/assets/fixed-scroller.css +1 -1
- package/dist/assets/footer-actions.css +1 -1
- package/dist/assets/form-layout-title.css +1 -1
- package/dist/assets/grid-layout.css +1 -1
- package/dist/assets/header.css +1 -1
- package/dist/assets/info-icon.css +1 -1
- package/dist/assets/input-field.css +1 -1
- package/dist/assets/inspector.css +1 -1
- package/dist/assets/link.css +1 -1
- package/dist/assets/listbox-option-tag.css +1 -1
- package/dist/assets/loading-indicator.css +1 -1
- package/dist/assets/menu.css +1 -1
- package/dist/assets/modal-fullscreen.css +1 -1
- package/dist/assets/pagination.css +1 -1
- package/dist/assets/payment-method.css +1 -1
- package/dist/assets/popover.css +1 -1
- package/dist/assets/popper-container.css +1 -1
- package/dist/assets/radio-group.css +1 -1
- package/dist/assets/radio-input.css +1 -1
- package/dist/assets/search-bar.css +1 -1
- package/dist/assets/secondary-nav.css +1 -1
- package/dist/assets/segmented-control.css +1 -1
- package/dist/assets/selection-card-group.css +1 -1
- package/dist/assets/sidepanel.css +1 -1
- package/dist/assets/status.css +1 -1
- package/dist/assets/step.css +1 -1
- package/dist/assets/structured-list-item.css +1 -1
- package/dist/assets/summary-grid-item-custom.css +1 -1
- package/dist/assets/tabs.css +1 -1
- package/dist/assets/tag.css +1 -1
- package/dist/assets/textarea.css +1 -1
- package/dist/assets/timeline-item.css +1 -1
- package/dist/assets/toast.css +1 -1
- package/dist/assets/toggle.css +1 -1
- package/dist/assets/tooltip.css +1 -1
- package/dist/assets/tutorial.css +1 -1
- package/dist/assets/typography.css +1 -1
- package/dist/assets/use-cached-selected-values.css +1 -1
- package/dist/avatar.js +1 -1
- package/dist/button.js +4 -4
- package/dist/card.js +1 -1
- package/dist/checkbox.js +3 -3
- package/dist/chunks/accordion-item.CQ8DLt9l.js +126 -0
- package/dist/chunks/{accordion-item.C7rQK0Xh.js.map → accordion-item.CQ8DLt9l.js.map} +1 -1
- package/dist/chunks/{action-bar.2Ch92mVR.js → action-bar.BsULBDh4.js} +62 -62
- package/dist/chunks/{action-bar.2Ch92mVR.js.map → action-bar.BsULBDh4.js.map} +1 -1
- package/dist/chunks/alert.Bz4tNKDH.js +162 -0
- package/dist/chunks/{alert.BOqbFni9.js.map → alert.Bz4tNKDH.js.map} +1 -1
- package/dist/chunks/avatar.mNlMngHQ.js +94 -0
- package/dist/chunks/{avatar.DWSW4vWC.js.map → avatar.mNlMngHQ.js.map} +1 -1
- package/dist/chunks/{base-button.jyEuuRdl.js → base-button.BxUrydaP.js} +2 -2
- package/dist/chunks/{base-button.jyEuuRdl.js.map → base-button.BxUrydaP.js.map} +1 -1
- package/dist/chunks/{base-modal.09efJqFH.js → base-modal.BPaKKH3Q.js} +186 -189
- package/dist/chunks/base-modal.BPaKKH3Q.js.map +1 -0
- package/dist/chunks/{button-actions-with-menu.DAxUzw2c.js → button-actions-with-menu.Cv1s9I3x.js} +16 -16
- package/dist/chunks/{button-actions-with-menu.DAxUzw2c.js.map → button-actions-with-menu.Cv1s9I3x.js.map} +1 -1
- package/dist/chunks/{button-actions.Dkrp7NsY.js → button-actions.hdK5IgrZ.js} +32 -32
- package/dist/chunks/{button-actions.Dkrp7NsY.js.map → button-actions.hdK5IgrZ.js.map} +1 -1
- package/dist/chunks/{button.BbV2BOSa.js → button.Br6CyG40.js} +39 -39
- package/dist/chunks/{button.BbV2BOSa.js.map → button.Br6CyG40.js.map} +1 -1
- package/dist/chunks/{calendar.DrP5wyvL.js → calendar.D--sOCBT.js} +153 -153
- package/dist/chunks/calendar.D--sOCBT.js.map +1 -0
- package/dist/chunks/card.BvSoujBc.js +205 -0
- package/dist/chunks/{card.BKtIXyL-.js.map → card.BvSoujBc.js.map} +1 -1
- package/dist/chunks/{checkbox-group.CEzhFcdh.js → checkbox-group.DovPyqmF.js} +20 -20
- package/dist/chunks/{checkbox-group.CEzhFcdh.js.map → checkbox-group.DovPyqmF.js.map} +1 -1
- package/dist/chunks/{checkbox-input.CR1lHf7f.js → checkbox-input.JdcvpfTa.js} +56 -54
- package/dist/chunks/checkbox-input.JdcvpfTa.js.map +1 -0
- package/dist/chunks/{checkbox.Blsg-Tvr.js → checkbox.FQ03XNeR.js} +6 -6
- package/dist/chunks/{checkbox.Blsg-Tvr.js.map → checkbox.FQ03XNeR.js.map} +1 -1
- package/dist/chunks/checkmark-circle-fill.ChV7Jy6r.js +44 -0
- package/dist/chunks/{checkmark-circle-fill.D29b-JWj.js.map → checkmark-circle-fill.ChV7Jy6r.js.map} +1 -1
- package/dist/chunks/checkmark-small.DEc2T64_.js +29 -0
- package/dist/chunks/{checkmark-small.BCeGkayS.js.map → checkmark-small.DEc2T64_.js.map} +1 -1
- package/dist/chunks/chevron-left.NvV5m76j.js +52 -0
- package/dist/chunks/{chevron-left.4JHuWe7i.js.map → chevron-left.NvV5m76j.js.map} +1 -1
- package/dist/chunks/chevron-up.DQZG_BP3.js +52 -0
- package/dist/chunks/{chevron-up.5-KtIp8i.js.map → chevron-up.DQZG_BP3.js.map} +1 -1
- package/dist/chunks/{code-snippet.DyvQts81.js → code-snippet.BP2IQQvW.js} +117 -117
- package/dist/chunks/{code-snippet.DyvQts81.js.map → code-snippet.BP2IQQvW.js.map} +1 -1
- package/dist/chunks/{controls-group.CLureEBJ.js → controls-group.CY5Hi11Y.js} +18 -18
- package/dist/chunks/{controls-group.CLureEBJ.js.map → controls-group.CY5Hi11Y.js.map} +1 -1
- package/dist/chunks/{copy._G3BOh-w.js → copy.h-wVGvID.js} +26 -26
- package/dist/chunks/{copy._G3BOh-w.js.map → copy.h-wVGvID.js.map} +1 -1
- package/dist/chunks/{country.DfvzuoT-.js → country.CVI-oSer.js} +3 -3
- package/dist/chunks/{country.DfvzuoT-.js.map → country.CVI-oSer.js.map} +1 -1
- package/dist/chunks/cross-circle-fill-small.BXO78Wde.js +29 -0
- package/dist/chunks/{cross-circle-fill-small.DiZWEd7W.js.map → cross-circle-fill-small.BXO78Wde.js.map} +1 -1
- package/dist/chunks/cross-circle-fill.DN5b3_eL.js +44 -0
- package/dist/chunks/{cross-circle-fill.vLaelNTN.js.map → cross-circle-fill.DN5b3_eL.js.map} +1 -1
- package/dist/chunks/cross-small.CXWTuKA_.js +29 -0
- package/dist/chunks/{cross-small.48UCoOqB.js.map → cross-small.CXWTuKA_.js.map} +1 -1
- package/dist/chunks/cross.OvPfvoqX.js +29 -0
- package/dist/chunks/{cross.BlL0FyHo.js.map → cross.OvPfvoqX.js.map} +1 -1
- package/dist/chunks/{currency.CUF_wGMv.js → currency.CFJy6QYU.js} +2 -2
- package/dist/chunks/{currency.CUF_wGMv.js.map → currency.CFJy6QYU.js.map} +1 -1
- package/dist/chunks/dashboard-section.DcvZOi79.js +167 -0
- package/dist/chunks/{dashboard-section.CwOasd7G.js.map → dashboard-section.DcvZOi79.js.map} +1 -1
- package/dist/chunks/dashed-underline.C7eCX1CM.js +79 -0
- package/dist/chunks/{dashed-underline.D_262wln.js.map → dashed-underline.C7eCX1CM.js.map} +1 -1
- package/dist/chunks/data-grid-template.C_8bGAC6.js +93 -0
- package/dist/chunks/data-grid-template.C_8bGAC6.js.map +1 -0
- package/dist/chunks/data-grid.DWJmWbjg.js +2766 -0
- package/dist/chunks/data-grid.DWJmWbjg.js.map +1 -0
- package/dist/chunks/{date-picker.CKiY1ZtA.js → date-picker.D36sJUDB.js} +8 -8
- package/dist/chunks/{date-picker.CKiY1ZtA.js.map → date-picker.D36sJUDB.js.map} +1 -1
- package/dist/chunks/date-range-picker.rytlJBZs.js +942 -0
- package/dist/chunks/date-range-picker.rytlJBZs.js.map +1 -0
- package/dist/chunks/{date.DXg5sG5Z.js → date.D8rQMzMG.js} +3 -3
- package/dist/chunks/{date.DXg5sG5Z.js.map → date.D8rQMzMG.js.map} +1 -1
- package/dist/chunks/dialog-page.DALFn9KR.js +171 -0
- package/dist/chunks/{dialog-page.CBim-VWH.js.map → dialog-page.DALFn9KR.js.map} +1 -1
- package/dist/chunks/divider.ugNXYI-T.js +22 -0
- package/dist/chunks/{divider.CnwfddJD.js.map → divider.ugNXYI-T.js.map} +1 -1
- package/dist/chunks/{dropdown-default-textbox.Bues7tON.js → dropdown-default-textbox.Bu4bpNGU.js} +116 -116
- package/dist/chunks/{dropdown-default-textbox.Bues7tON.js.map → dropdown-default-textbox.Bu4bpNGU.js.map} +1 -1
- package/dist/chunks/{dropdown-tag.BiVKlJ-B.js → dropdown-tag.CocbqRcO.js} +67 -67
- package/dist/chunks/{dropdown-tag.BiVKlJ-B.js.map → dropdown-tag.CocbqRcO.js.map} +1 -1
- package/dist/chunks/{dropdown.CZyiZiox.js → dropdown.DQpKDlC-.js} +355 -355
- package/dist/chunks/{dropdown.CZyiZiox.js.map → dropdown.DQpKDlC-.js.map} +1 -1
- package/dist/chunks/{empty-state.CApqeBsH.js → empty-state.CyEWCcDk.js} +48 -48
- package/dist/chunks/{empty-state.CApqeBsH.js.map → empty-state.CyEWCcDk.js.map} +1 -1
- package/dist/chunks/{error-message.DCScf_vk.js → error-message.BfOmvPPb.js} +13 -13
- package/dist/chunks/{error-message.DCScf_vk.js.map → error-message.BfOmvPPb.js.map} +1 -1
- package/dist/chunks/es6.BvpG4Oi6.js.map +1 -1
- package/dist/chunks/expand.CgwNEbbz.js +33 -0
- package/dist/chunks/{expand.D1DTqaBO.js.map → expand.CgwNEbbz.js.map} +1 -1
- package/dist/chunks/filter-bar.-G1-moOO.js +2767 -0
- package/dist/chunks/filter-bar.-G1-moOO.js.map +1 -0
- package/dist/chunks/{fixed-scroller.BN3jp9Ss.js → fixed-scroller.DwYB1pqo.js} +4 -4
- package/dist/chunks/fixed-scroller.DwYB1pqo.js.map +1 -0
- package/dist/chunks/focus-trap.CwkbHfT8.js.map +1 -1
- package/dist/chunks/{footer-actions.Dj2vH6Hj.js → footer-actions.gtxofUAa.js} +19 -19
- package/dist/chunks/{footer-actions.Dj2vH6Hj.js.map → footer-actions.gtxofUAa.js.map} +1 -1
- package/dist/chunks/{form-layout-title.BKJPBhsv.js → form-layout-title.Boi0QQZL.js} +42 -42
- package/dist/chunks/{form-layout-title.BKJPBhsv.js.map → form-layout-title.Boi0QQZL.js.map} +1 -1
- package/dist/chunks/grid-layout.CqLbbEzI.js.map +1 -1
- package/dist/chunks/{header.DygonMXo.js → header.BLKs2Erq.js} +8 -8
- package/dist/chunks/{header.DygonMXo.js.map → header.BLKs2Erq.js.map} +1 -1
- package/dist/chunks/i18n.DL9GT2-k.js +3086 -0
- package/dist/chunks/i18n.DL9GT2-k.js.map +1 -0
- package/dist/chunks/image.0KzfycGE.js.map +1 -1
- package/dist/chunks/{info-icon.Bb20bxQm.js → info-icon.DIu8FeJC.js} +4 -4
- package/dist/chunks/{info-icon.Bb20bxQm.js.map → info-icon.DIu8FeJC.js.map} +1 -1
- package/dist/chunks/info.CIFBUqf-.js +44 -0
- package/dist/chunks/{info.CNegCnli.js.map → info.CIFBUqf-.js.map} +1 -1
- package/dist/chunks/{input-field.dPEY8nfT.js → input-field.f4lqnh2q.js} +66 -66
- package/dist/chunks/{input-field.dPEY8nfT.js.map → input-field.f4lqnh2q.js.map} +1 -1
- package/dist/chunks/inspector.types.t2SPyhw3.js +116 -0
- package/dist/chunks/{inspector.types.BpPQ6zrm.js.map → inspector.types.t2SPyhw3.js.map} +1 -1
- package/dist/chunks/link.2YS7haGc.js +110 -0
- package/dist/chunks/link.2YS7haGc.js.map +1 -0
- package/dist/chunks/{listbox-option-tag.BU_sJ_KV.js → listbox-option-tag.QqDEHMKB.js} +3 -3
- package/dist/chunks/{listbox-option-tag.BU_sJ_KV.js.map → listbox-option-tag.QqDEHMKB.js.map} +1 -1
- package/dist/chunks/{loading-button.CrijUhme.js → loading-button.Mx-oDIGy.js} +39 -39
- package/dist/chunks/{loading-button.CrijUhme.js.map → loading-button.Mx-oDIGy.js.map} +1 -1
- package/dist/chunks/{menu.CE8khC0O.js → menu.DFMKn3Zr.js} +96 -96
- package/dist/chunks/{menu.CE8khC0O.js.map → menu.DFMKn3Zr.js.map} +1 -1
- package/dist/chunks/{modal-fullscreen.DYfgO3lG.js → modal-fullscreen.Caqa7dDp.js} +80 -80
- package/dist/chunks/{modal-fullscreen.DYfgO3lG.js.map → modal-fullscreen.Caqa7dDp.js.map} +1 -1
- 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
- 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
- package/dist/chunks/on-click-outside.MUWbmGDn.js.map +1 -1
- package/dist/chunks/{pagination.DfKNN2Mb.js → pagination.B4ker8JJ.js} +130 -130
- package/dist/chunks/{pagination.DfKNN2Mb.js.map → pagination.B4ker8JJ.js.map} +1 -1
- package/dist/chunks/{payment-method.Dyrh0PaX.js → payment-method.-3VYG5ud.js} +2 -2
- package/dist/chunks/{payment-method.Dyrh0PaX.js.map → payment-method.-3VYG5ud.js.map} +1 -1
- package/dist/chunks/{popover.BSGQxusD.js → popover.CczC6Fhk.js} +63 -63
- package/dist/chunks/{popover.BSGQxusD.js.map → popover.CczC6Fhk.js.map} +1 -1
- package/dist/chunks/{popper-container.DigB3V2j.js → popper-container.DFpaesDm.js} +239 -239
- package/dist/chunks/{popper-container.DigB3V2j.js.map → popper-container.DFpaesDm.js.map} +1 -1
- package/dist/chunks/{radio-group.CIXsaLLX.js → radio-group.C18T8QQs.js} +112 -112
- package/dist/chunks/{radio-group.CIXsaLLX.js.map → radio-group.C18T8QQs.js.map} +1 -1
- package/dist/chunks/{radio-input.Dp-se-SR.js → radio-input.DtvlM-mr.js} +20 -20
- package/dist/chunks/{radio-input.Dp-se-SR.js.map → radio-input.DtvlM-mr.js.map} +1 -1
- package/dist/chunks/refresh.DvQeGwUF.js +29 -0
- package/dist/chunks/{refresh.BfxRdaQb.js.map → refresh.DvQeGwUF.js.map} +1 -1
- package/dist/chunks/{search-bar.exXNyvwZ.js → search-bar.C__L0enF.js} +39 -39
- package/dist/chunks/{search-bar.exXNyvwZ.js.map → search-bar.C__L0enF.js.map} +1 -1
- package/dist/chunks/search.EnLryD8V.js +44 -0
- package/dist/chunks/{search.0lh99z1F.js.map → search.EnLryD8V.js.map} +1 -1
- package/dist/chunks/secondary-nav.DCe7I3pu.js +137 -0
- package/dist/chunks/{secondary-nav.CRJ27DQY.js.map → secondary-nav.DCe7I3pu.js.map} +1 -1
- package/dist/chunks/segmented-control.DbR5NYWR.js +142 -0
- package/dist/chunks/{segmented-control.hE7kcMb7.js.map → segmented-control.DbR5NYWR.js.map} +1 -1
- package/dist/chunks/{selection-card-group.Bxv-t-CN.js → selection-card-group.DNZTT85O.js} +129 -122
- package/dist/chunks/selection-card-group.DNZTT85O.js.map +1 -0
- package/dist/chunks/{sidepanel.C6ndYx2_.js → sidepanel.CprbeR-2.js} +76 -76
- package/dist/chunks/{sidepanel.C6ndYx2_.js.map → sidepanel.CprbeR-2.js.map} +1 -1
- package/dist/chunks/{status.types.wKICxOth.js → status.types.r9TfZmvE.js} +12 -12
- package/dist/chunks/{status.types.wKICxOth.js.map → status.types.r9TfZmvE.js.map} +1 -1
- package/dist/chunks/step.ClnCjesW.js +284 -0
- package/dist/chunks/step.ClnCjesW.js.map +1 -0
- package/dist/chunks/structured-list-item.Z-1ivOFu.js +101 -0
- package/dist/chunks/{structured-list-item.CnrBWJgo.js.map → structured-list-item.Z-1ivOFu.js.map} +1 -1
- package/dist/chunks/{summary-grid-item-custom.BMK48oR5.js → summary-grid-item-custom.Dq3IIEvH.js} +5 -5
- package/dist/chunks/{summary-grid-item-custom.BMK48oR5.js.map → summary-grid-item-custom.Dq3IIEvH.js.map} +1 -1
- package/dist/chunks/{tabs.BeCbcy81.js → tabs.xY_6yqmE.js} +3 -3
- package/dist/chunks/{tabs.BeCbcy81.js.map → tabs.xY_6yqmE.js.map} +1 -1
- package/dist/chunks/{tag.BZ90rkBe.js → tag.RYw4OhWk.js} +3 -3
- package/dist/chunks/{tag.BZ90rkBe.js.map → tag.RYw4OhWk.js.map} +1 -1
- package/dist/chunks/teleport.L8qFCYpr.js.map +1 -1
- package/dist/chunks/{textarea.C9dCXF7c.js → textarea.C-Oje7QC.js} +100 -101
- package/dist/chunks/{textarea.C9dCXF7c.js.map → textarea.C-Oje7QC.js.map} +1 -1
- package/dist/chunks/{timeline-item.DVugzZI5.js → timeline-item.FTU5rl7e.js} +209 -209
- package/dist/chunks/{timeline-item.DVugzZI5.js.map → timeline-item.FTU5rl7e.js.map} +1 -1
- package/dist/chunks/toast.LNgV2jhU.js +215 -0
- package/dist/chunks/{toast.CtEylmx6.js.map → toast.LNgV2jhU.js.map} +1 -1
- package/dist/chunks/{toggle-button.CYVGUQYj.js → toggle-button.CBRd1v6x.js} +19 -19
- package/dist/chunks/{toggle-button.CYVGUQYj.js.map → toggle-button.CBRd1v6x.js.map} +1 -1
- package/dist/chunks/{toggle.D1DUlF_5.js → toggle.8t4flh_3.js} +3 -3
- package/dist/chunks/{toggle.D1DUlF_5.js.map → toggle.8t4flh_3.js.map} +1 -1
- package/dist/chunks/{tooltip.CVUXkVlR.js → tooltip.DvsfWV0-.js} +3 -3
- package/dist/chunks/{tooltip.CVUXkVlR.js.map → tooltip.DvsfWV0-.js.map} +1 -1
- package/dist/chunks/tutorial.vue_vue_type_script_setup_true_lang.DgbanhBM.js +409 -0
- 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
- package/dist/chunks/{typography.CSIykcgS.js → typography.z9P0Ec3Q.js} +22 -22
- package/dist/chunks/{typography.CSIykcgS.js.map → typography.z9P0Ec3Q.js.map} +1 -1
- package/dist/chunks/{use-bento-toast-controller.kD6xtHQE.js → use-bento-toast-controller.BDYlxAYq.js} +2 -2
- package/dist/chunks/{use-bento-toast-controller.kD6xtHQE.js.map → use-bento-toast-controller.BDYlxAYq.js.map} +1 -1
- package/dist/chunks/{use-cached-selected-values.DplP72ef.js → use-cached-selected-values.DaSn9dB9.js} +593 -589
- package/dist/chunks/use-cached-selected-values.DaSn9dB9.js.map +1 -0
- package/dist/chunks/{use-country-items.CongYNiX.js → use-country-items.DQR8plsq.js} +2 -2
- package/dist/chunks/{use-country-items.CongYNiX.js.map → use-country-items.DQR8plsq.js.map} +1 -1
- package/dist/chunks/use-expandable-content-height.GkjjbmPy.js.map +1 -1
- package/dist/chunks/warning-filled.Dm_HhqzW.js +29 -0
- package/dist/chunks/{warning-filled.DHw1rVWs.js.map → warning-filled.Dm_HhqzW.js.map} +1 -1
- package/dist/code-snippet.js +1 -1
- package/dist/country.js +1 -1
- package/dist/currency.js +1 -1
- package/dist/dashboard-template.js +1 -1
- package/dist/dashed-underline.js +1 -1
- package/dist/data-grid-template.js +1 -1
- package/dist/data-grid.js +1 -1
- package/dist/date-picker.js +2 -2
- package/dist/date-range-picker.js +2 -2
- package/dist/date.js +1 -1
- package/dist/divider.js +1 -1
- package/dist/dropdown.js +4 -4
- package/dist/empty-state.js +1 -1
- package/dist/filter-bar.js +1 -1
- package/dist/form-layout.js +1 -1
- package/dist/header.js +1 -1
- package/dist/index.js +69 -67
- package/dist/index.js.map +1 -1
- package/dist/info-icon.js +1 -1
- package/dist/input-field.js +1 -1
- package/dist/inspector.js +1 -1
- package/dist/internal.js +8 -8
- package/dist/link.js +1 -1
- package/dist/menu.js +1 -1
- package/dist/modal-fullscreen.js +1 -1
- package/dist/modal.js +2 -2
- package/dist/pagination.js +1 -1
- package/dist/payment-method.js +1 -1
- package/dist/popover.js +1 -1
- package/dist/popper-container.js +1 -1
- package/dist/radio-group.js +2 -2
- package/dist/search-bar.js +2 -2
- package/dist/secondary-nav.js +1 -1
- package/dist/segmented-control.js +1 -1
- package/dist/selection-card.js +1 -1
- package/dist/sidepanel.js +1 -1
- package/dist/status.js +1 -1
- package/dist/stepper.js +1 -1
- package/dist/structured-list.js +1 -1
- package/dist/summary-grid.js +1 -1
- package/dist/tabs.js +1 -1
- package/dist/tag.js +1 -1
- package/dist/textarea.js +1 -1
- package/dist/timeline.js +1 -1
- package/dist/toast.js +1 -1
- package/dist/toggle.js +1 -1
- package/dist/tutorial.js +1 -1
- package/dist/typography.js +1 -1
- package/dist/web-types.json +1 -1
- package/package.json +4 -4
- package/dist/chunks/accordion-item.C7rQK0Xh.js +0 -126
- package/dist/chunks/alert.BOqbFni9.js +0 -162
- package/dist/chunks/avatar.DWSW4vWC.js +0 -94
- package/dist/chunks/base-modal.09efJqFH.js.map +0 -1
- package/dist/chunks/calendar.DrP5wyvL.js.map +0 -1
- package/dist/chunks/card.BKtIXyL-.js +0 -205
- package/dist/chunks/checkbox-input.CR1lHf7f.js.map +0 -1
- package/dist/chunks/checkmark-circle-fill.D29b-JWj.js +0 -44
- package/dist/chunks/checkmark-small.BCeGkayS.js +0 -29
- package/dist/chunks/chevron-left.4JHuWe7i.js +0 -52
- package/dist/chunks/chevron-up.5-KtIp8i.js +0 -52
- package/dist/chunks/cross-circle-fill-small.DiZWEd7W.js +0 -29
- package/dist/chunks/cross-circle-fill.vLaelNTN.js +0 -44
- package/dist/chunks/cross-small.48UCoOqB.js +0 -29
- package/dist/chunks/cross.BlL0FyHo.js +0 -29
- package/dist/chunks/dashboard-section.CwOasd7G.js +0 -167
- package/dist/chunks/dashed-underline.D_262wln.js +0 -79
- package/dist/chunks/data-grid-template.ViVmshHU.js +0 -93
- package/dist/chunks/data-grid-template.ViVmshHU.js.map +0 -1
- package/dist/chunks/data-grid.CCVRJrXT.js +0 -2765
- package/dist/chunks/data-grid.CCVRJrXT.js.map +0 -1
- package/dist/chunks/date-range-picker.T10FmcWb.js +0 -923
- package/dist/chunks/date-range-picker.T10FmcWb.js.map +0 -1
- package/dist/chunks/dialog-page.CBim-VWH.js +0 -171
- package/dist/chunks/divider.CnwfddJD.js +0 -22
- package/dist/chunks/expand.D1DTqaBO.js +0 -33
- package/dist/chunks/filter-bar.DCaEgOFF.js +0 -2809
- package/dist/chunks/filter-bar.DCaEgOFF.js.map +0 -1
- package/dist/chunks/fixed-scroller.BN3jp9Ss.js.map +0 -1
- package/dist/chunks/i18n.DY5YXG5f.js +0 -2652
- package/dist/chunks/i18n.DY5YXG5f.js.map +0 -1
- package/dist/chunks/info.CNegCnli.js +0 -44
- package/dist/chunks/inspector.types.BpPQ6zrm.js +0 -116
- package/dist/chunks/link.DgEKZGKQ.js +0 -110
- package/dist/chunks/link.DgEKZGKQ.js.map +0 -1
- package/dist/chunks/refresh.BfxRdaQb.js +0 -29
- package/dist/chunks/search.0lh99z1F.js +0 -44
- package/dist/chunks/secondary-nav.CRJ27DQY.js +0 -137
- package/dist/chunks/segmented-control.hE7kcMb7.js +0 -142
- package/dist/chunks/selection-card-group.Bxv-t-CN.js.map +0 -1
- package/dist/chunks/step.D3y_Iv1_.js +0 -284
- package/dist/chunks/step.D3y_Iv1_.js.map +0 -1
- package/dist/chunks/structured-list-item.CnrBWJgo.js +0 -101
- package/dist/chunks/toast.CtEylmx6.js +0 -215
- package/dist/chunks/tutorial.vue_vue_type_script_setup_true_lang.Dorj2fX-.js +0 -408
- package/dist/chunks/use-cached-selected-values.DplP72ef.js.map +0 -1
- package/dist/chunks/warning-filled.DHw1rVWs.js +0 -29
|
@@ -1,41 +1,41 @@
|
|
|
1
|
-
import { computed as
|
|
2
|
-
import { B as
|
|
3
|
-
import { B as
|
|
4
|
-
import { B as
|
|
5
|
-
import { B as
|
|
6
|
-
import { u as ue } from "./i18n.
|
|
7
|
-
import { d as
|
|
8
|
-
import { _ as
|
|
9
|
-
import { B as Ce } from "./checkbox.
|
|
10
|
-
import { a as
|
|
11
|
-
import { B as
|
|
12
|
-
import { C as
|
|
13
|
-
import { B as
|
|
14
|
-
import { o as
|
|
1
|
+
import { computed as v, ref as M, onMounted as Oe, onUnmounted as Fe, watch as Ie, defineComponent as W, resolveComponent as L, openBlock as f, createElementBlock as _, createVNode as B, withCtx as T, createTextVNode as G, toDisplayString as w, createElementVNode as K, renderSlot as z, mergeProps as U, withKeys as ve, createCommentVNode as Y, createBlock as D, withModifiers as Ye, normalizeProps as ee, guardReactiveProps as ne, withDirectives as ae, vShow as Ae, toRef as se, resolveDirective as pe, toHandlers as te, Fragment as Z, renderList as x, createSlots as ie, normalizeClass as fe, unref as ce, normalizeStyle as Ke } from "vue";
|
|
2
|
+
import { B as F, a as Se } from "./keyboard-navigation.Clz1jOaA.js";
|
|
3
|
+
import { B as J } from "./typography.z9P0Ec3Q.js";
|
|
4
|
+
import { B as qe } from "./loading-indicator.BFMEf39U.js";
|
|
5
|
+
import { B as We } from "./empty-state.CyEWCcDk.js";
|
|
6
|
+
import { u as ue } from "./i18n.DL9GT2-k.js";
|
|
7
|
+
import { d as je } from "./debounce.DUTu11PS.js";
|
|
8
|
+
import { _ as q } from "./_plugin-vue_export-helper.CHgC5LLL.js";
|
|
9
|
+
import { B as Ce } from "./checkbox.FQ03XNeR.js";
|
|
10
|
+
import { a as He, C as Xe } from "./chevron-up.DQZG_BP3.js";
|
|
11
|
+
import { B as Ze } from "./base-button.BxUrydaP.js";
|
|
12
|
+
import { C as Je } from "./cross-small.CXWTuKA_.js";
|
|
13
|
+
import { B as Qe, a as he } from "./loading-button.Mx-oDIGy.js";
|
|
14
|
+
import { o as et } from "./resize.Bqks3WUm.js";
|
|
15
15
|
import "../assets/use-cached-selected-values.css";
|
|
16
|
-
const $e = (e, t,
|
|
17
|
-
const
|
|
16
|
+
const $e = (e, t, a, c) => {
|
|
17
|
+
const u = v(
|
|
18
18
|
() => {
|
|
19
|
-
var
|
|
20
|
-
return !!((
|
|
19
|
+
var l, r;
|
|
20
|
+
return !!((l = e.value) != null && l.length) && ((r = e.value) == null ? void 0 : r.length) === t.value.length;
|
|
21
21
|
}
|
|
22
|
-
),
|
|
23
|
-
var
|
|
24
|
-
return e.value == null || e.value.length === 0 ? !1 : ((
|
|
22
|
+
), n = v(() => {
|
|
23
|
+
var l;
|
|
24
|
+
return e.value == null || e.value.length === 0 ? !1 : ((l = e.value) == null ? void 0 : l.length) !== t.value.length;
|
|
25
25
|
});
|
|
26
26
|
return {
|
|
27
|
-
isAllSelected:
|
|
28
|
-
isIndeterminate:
|
|
29
|
-
toggleSelectAll: (
|
|
30
|
-
|
|
27
|
+
isAllSelected: u,
|
|
28
|
+
isIndeterminate: n,
|
|
29
|
+
toggleSelectAll: (l) => {
|
|
30
|
+
l ? a() : c();
|
|
31
31
|
}
|
|
32
32
|
};
|
|
33
33
|
};
|
|
34
|
-
function
|
|
35
|
-
const
|
|
36
|
-
let
|
|
37
|
-
const
|
|
38
|
-
const C = typeof
|
|
34
|
+
function tt(e, { disabled: t, itemHeight: a, overscan: c = 5, prefixHeight: u }) {
|
|
35
|
+
const n = M(null), s = M([]), l = M(0), r = M(0), i = M(0);
|
|
36
|
+
let y;
|
|
37
|
+
const o = v(() => {
|
|
38
|
+
const C = typeof a == "number" ? e.value.length * a : e.value.reduce((k, S, I) => k + a(I), 0), O = typeof a == "number" ? l.value * a : e.value.slice(0, l.value).reduce((k, S, I) => k + a(I), 0);
|
|
39
39
|
return {
|
|
40
40
|
style: {
|
|
41
41
|
marginTop: `${O}px`,
|
|
@@ -43,73 +43,73 @@ function st(e, { disabled: t, itemHeight: n, overscan: u = 5, prefixHeight: c })
|
|
|
43
43
|
}
|
|
44
44
|
};
|
|
45
45
|
}), d = () => {
|
|
46
|
-
const C = (
|
|
47
|
-
if (typeof
|
|
48
|
-
return Math.floor(O /
|
|
49
|
-
let
|
|
50
|
-
for (let
|
|
51
|
-
const
|
|
52
|
-
if (
|
|
53
|
-
S =
|
|
46
|
+
const C = (u == null ? void 0 : u.value) ?? 0, O = Math.max(n.value.scrollTop - C, 0);
|
|
47
|
+
if (typeof a == "number")
|
|
48
|
+
return Math.floor(O / a);
|
|
49
|
+
let k = 0, S = 0;
|
|
50
|
+
for (let I = 0; I < e.value.length; I += 1) {
|
|
51
|
+
const V = a(I);
|
|
52
|
+
if (k += V, k >= O) {
|
|
53
|
+
S = I;
|
|
54
54
|
break;
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
57
|
return S;
|
|
58
|
-
},
|
|
59
|
-
if (
|
|
60
|
-
return Math.ceil(
|
|
61
|
-
const C =
|
|
62
|
-
let O = 0,
|
|
58
|
+
}, R = () => {
|
|
59
|
+
if (i.value = n.value.clientHeight, typeof a == "number")
|
|
60
|
+
return Math.ceil(i.value / a);
|
|
61
|
+
const C = l.value ?? 0;
|
|
62
|
+
let O = 0, k = 0;
|
|
63
63
|
for (let S = C; S < e.value.length; S += 1) {
|
|
64
|
-
const
|
|
65
|
-
if (O +=
|
|
64
|
+
const I = a(S);
|
|
65
|
+
if (O += I, k = S, O > i.value)
|
|
66
66
|
break;
|
|
67
67
|
}
|
|
68
|
-
return
|
|
69
|
-
},
|
|
70
|
-
if (
|
|
71
|
-
const C =
|
|
72
|
-
|
|
68
|
+
return k - C;
|
|
69
|
+
}, $ = () => {
|
|
70
|
+
if (n.value) {
|
|
71
|
+
const C = R();
|
|
72
|
+
l.value = d(), r.value = Math.min(l.value + C + c, e.value.length), s.value = e.value.slice(l.value, r.value);
|
|
73
73
|
}
|
|
74
74
|
}, N = () => {
|
|
75
|
-
|
|
75
|
+
$();
|
|
76
76
|
};
|
|
77
77
|
t || (Oe(() => {
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
}),
|
|
81
|
-
}),
|
|
82
|
-
|
|
78
|
+
n.value && (i.value = n.value.clientHeight, y = et(n.value, ({ clientHeight: C }) => {
|
|
79
|
+
i.value = C, $();
|
|
80
|
+
}), $());
|
|
81
|
+
}), Fe(() => {
|
|
82
|
+
y == null || y.disconnect();
|
|
83
83
|
}), Ie(
|
|
84
84
|
() => e.value,
|
|
85
85
|
() => {
|
|
86
|
-
|
|
86
|
+
$();
|
|
87
87
|
}
|
|
88
88
|
));
|
|
89
|
-
const
|
|
90
|
-
ref:
|
|
89
|
+
const m = {
|
|
90
|
+
ref: n,
|
|
91
91
|
style: { overflowY: "auto" }
|
|
92
92
|
};
|
|
93
93
|
return t ? {
|
|
94
|
-
containerRef:
|
|
95
|
-
containerProps:
|
|
94
|
+
containerRef: n,
|
|
95
|
+
containerProps: m,
|
|
96
96
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
97
97
|
onScroll: () => {
|
|
98
98
|
},
|
|
99
99
|
list: e
|
|
100
100
|
} : {
|
|
101
|
-
containerRef:
|
|
102
|
-
containerProps:
|
|
101
|
+
containerRef: n,
|
|
102
|
+
containerProps: m,
|
|
103
103
|
onScroll: N,
|
|
104
104
|
list: s,
|
|
105
|
-
wrapperProps:
|
|
105
|
+
wrapperProps: o
|
|
106
106
|
};
|
|
107
107
|
}
|
|
108
|
-
var b = /* @__PURE__ */ ((e) => (e.SELECT = "select", e.SHOW_MORE = "show-more", e.ESCAPE = "escape-pressed", e.CLICK = "click", e.ENTER = "enter-pressed", e.SPACE = "space-pressed", e.TAB = "tab-pressed", e.CLOSE_DROPDOWN = "close-dropdown", e))(b || {}),
|
|
109
|
-
const
|
|
108
|
+
var b = /* @__PURE__ */ ((e) => (e.SELECT = "select", e.SHOW_MORE = "show-more", e.ESCAPE = "escape-pressed", e.CLICK = "click", e.ENTER = "enter-pressed", e.SPACE = "space-pressed", e.TAB = "tab-pressed", e.CLOSE_DROPDOWN = "close-dropdown", e))(b || {}), X = /* @__PURE__ */ ((e) => (e.AUTOMATIC = "automatic", e.BUTTON = "button", e.NONE = "none", e))(X || {});
|
|
109
|
+
const st = W({
|
|
110
110
|
name: "bento-listbox-static-category",
|
|
111
111
|
components: {
|
|
112
|
-
BentoTypography:
|
|
112
|
+
BentoTypography: J
|
|
113
113
|
},
|
|
114
114
|
props: {
|
|
115
115
|
/**
|
|
@@ -120,26 +120,26 @@ const lt = H({
|
|
|
120
120
|
required: !0
|
|
121
121
|
}
|
|
122
122
|
}
|
|
123
|
-
}),
|
|
124
|
-
function
|
|
123
|
+
}), lt = { class: "b-listbox-single-select-category" };
|
|
124
|
+
function ot(e, t, a, c, u, n) {
|
|
125
125
|
const s = L("bento-typography");
|
|
126
|
-
return
|
|
127
|
-
|
|
126
|
+
return f(), _("div", lt, [
|
|
127
|
+
B(s, {
|
|
128
128
|
variant: "caption",
|
|
129
129
|
el: "span",
|
|
130
130
|
class: "b-listbox-single-select-category__label-text"
|
|
131
131
|
}, {
|
|
132
|
-
default:
|
|
133
|
-
|
|
132
|
+
default: T(() => [
|
|
133
|
+
G(w(e.categoryLabel), 1)
|
|
134
134
|
]),
|
|
135
135
|
_: 1
|
|
136
136
|
}),
|
|
137
|
-
|
|
138
|
-
|
|
137
|
+
K("div", null, [
|
|
138
|
+
z(e.$slots, "default", {}, void 0, !0)
|
|
139
139
|
])
|
|
140
140
|
]);
|
|
141
141
|
}
|
|
142
|
-
const
|
|
142
|
+
const nt = /* @__PURE__ */ q(st, [["render", ot], ["__scopeId", "data-v-a90eff17"]]), it = W({
|
|
143
143
|
name: "bento-listbox-option",
|
|
144
144
|
props: {
|
|
145
145
|
/**
|
|
@@ -153,28 +153,28 @@ const it = /* @__PURE__ */ W(lt, [["render", nt], ["__scopeId", "data-v-a90eff17
|
|
|
153
153
|
},
|
|
154
154
|
emits: [b.CLICK, b.ENTER, b.SPACE, b.TAB],
|
|
155
155
|
setup(e, { emit: t }) {
|
|
156
|
-
const
|
|
156
|
+
const a = v(() => ({
|
|
157
157
|
"b-listbox-option--disabled": e.disabled,
|
|
158
158
|
"b-listbox-option--selected": e.selected
|
|
159
159
|
}));
|
|
160
160
|
return {
|
|
161
161
|
// Enums
|
|
162
|
-
BentoKeyboardNavigationKeyDownEvent:
|
|
162
|
+
BentoKeyboardNavigationKeyDownEvent: F,
|
|
163
163
|
BentoListboxEvent: b,
|
|
164
164
|
// Values
|
|
165
|
-
conditionalClasses:
|
|
165
|
+
conditionalClasses: a,
|
|
166
166
|
// Events
|
|
167
|
-
onClick: (
|
|
168
|
-
t(b.CLICK,
|
|
167
|
+
onClick: (n) => {
|
|
168
|
+
t(b.CLICK, n);
|
|
169
169
|
},
|
|
170
|
-
onOptionSelected: (
|
|
171
|
-
t(
|
|
170
|
+
onOptionSelected: (n, s) => {
|
|
171
|
+
t(n, s);
|
|
172
172
|
}
|
|
173
173
|
};
|
|
174
174
|
}
|
|
175
175
|
});
|
|
176
|
-
function
|
|
177
|
-
return
|
|
176
|
+
function at(e, t, a, c, u, n) {
|
|
177
|
+
return f(), _("label", U({
|
|
178
178
|
class: ["b-listbox-option", e.conditionalClasses],
|
|
179
179
|
role: "option"
|
|
180
180
|
}, e.$attrs, {
|
|
@@ -185,37 +185,37 @@ function rt(e, t, n, u, c, a) {
|
|
|
185
185
|
t[3] || (t[3] = ve((s) => e.onOptionSelected(e.BentoListboxEvent.TAB, s), ["tab"]))
|
|
186
186
|
]
|
|
187
187
|
}), [
|
|
188
|
-
|
|
188
|
+
z(e.$slots, "default", {}, void 0, !0)
|
|
189
189
|
], 16);
|
|
190
190
|
}
|
|
191
|
-
const de = /* @__PURE__ */
|
|
191
|
+
const de = /* @__PURE__ */ q(it, [["render", at], ["__scopeId", "data-v-18a61f5d"]]);
|
|
192
192
|
let Ee = 0;
|
|
193
|
-
const
|
|
193
|
+
const rt = {
|
|
194
194
|
beforeCreate() {
|
|
195
195
|
this.uuid = Ee.toString(), Ee += 1;
|
|
196
196
|
}
|
|
197
|
-
},
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
}, null, -1);
|
|
201
|
-
function bt(e, t, n, u, c, a) {
|
|
202
|
-
return v(), T("svg", F({ role: "img" }, e.$attrs, {
|
|
197
|
+
}, ct = { key: 0 };
|
|
198
|
+
function ut(e, t, a, c, u, n) {
|
|
199
|
+
return f(), _("svg", U({ role: "img" }, e.$attrs, {
|
|
203
200
|
class: "ui-assets-icons-16",
|
|
204
201
|
xmlns: "http://www.w3.org/2000/svg",
|
|
205
202
|
width: "16",
|
|
206
203
|
height: "16",
|
|
207
204
|
fill: "none"
|
|
208
205
|
}), [
|
|
209
|
-
e.$attrs["svg-title"] ? (
|
|
210
|
-
|
|
206
|
+
e.$attrs["svg-title"] ? (f(), _("title", ct, w(e.$attrs["svg-title"]), 1)) : Y("", !0),
|
|
207
|
+
t[0] || (t[0] = K("path", {
|
|
208
|
+
fill: "#00112C",
|
|
209
|
+
d: "M15.0608 4.00011L14.0001 2.93945L6.00011 10.9395L2.00011 6.93945L0.939453 8.00011L6.00011 13.0608L15.0608 4.00011Z"
|
|
210
|
+
}, null, -1))
|
|
211
211
|
], 16);
|
|
212
212
|
}
|
|
213
|
-
const
|
|
213
|
+
const dt = /* @__PURE__ */ q(rt, [["render", ut]]), bt = W({
|
|
214
214
|
name: "bento-listbox-single-select-option",
|
|
215
215
|
components: {
|
|
216
216
|
BentoListboxOption: de,
|
|
217
|
-
BentoTypography:
|
|
218
|
-
CheckmarkIcon:
|
|
217
|
+
BentoTypography: J,
|
|
218
|
+
CheckmarkIcon: dt
|
|
219
219
|
},
|
|
220
220
|
props: {
|
|
221
221
|
/**
|
|
@@ -237,58 +237,58 @@ const mt = /* @__PURE__ */ W(ct, [["render", bt]]), vt = H({
|
|
|
237
237
|
},
|
|
238
238
|
emits: [b.ENTER, b.SELECT, b.SPACE, b.TAB],
|
|
239
239
|
setup(e, { emit: t }) {
|
|
240
|
-
const
|
|
240
|
+
const a = (s) => {
|
|
241
241
|
e.disabled || t(s, e.option);
|
|
242
|
-
},
|
|
242
|
+
}, c = v(() => e.disabled ? !0 : null), u = v(() => e.selected ? !0 : null), n = v(() => e.disabled ? -1 : 0);
|
|
243
243
|
return {
|
|
244
244
|
// Values
|
|
245
|
-
ariaDisabled:
|
|
246
|
-
ariaSelected:
|
|
247
|
-
tabIndex:
|
|
245
|
+
ariaDisabled: c,
|
|
246
|
+
ariaSelected: u,
|
|
247
|
+
tabIndex: n,
|
|
248
248
|
// Enums
|
|
249
249
|
BentoListboxEvent: b,
|
|
250
250
|
// Events
|
|
251
|
-
onOptionSelected:
|
|
251
|
+
onOptionSelected: a
|
|
252
252
|
};
|
|
253
253
|
}
|
|
254
|
-
}),
|
|
255
|
-
function
|
|
256
|
-
const s = L("bento-typography"),
|
|
257
|
-
return
|
|
254
|
+
}), mt = { class: "b-listbox-single-select-option__text" }, vt = { class: "b-listbox-single-select-option__check-icon" };
|
|
255
|
+
function ft(e, t, a, c, u, n) {
|
|
256
|
+
const s = L("bento-typography"), l = L("checkmark-icon"), r = L("bento-listbox-option");
|
|
257
|
+
return f(), D(r, {
|
|
258
258
|
class: "b-listbox-single-select-option",
|
|
259
259
|
disabled: e.disabled,
|
|
260
260
|
selected: e.selected,
|
|
261
261
|
"aria-selected": e.ariaSelected,
|
|
262
262
|
"aria-disabled": e.ariaDisabled,
|
|
263
263
|
tabindex: e.tabIndex,
|
|
264
|
-
onClick: t[0] || (t[0] = (
|
|
265
|
-
onEnterPressed: t[1] || (t[1] = (
|
|
266
|
-
onSpacePressed: t[2] || (t[2] = Ye((
|
|
267
|
-
onTabPressed: t[3] || (t[3] = (
|
|
264
|
+
onClick: t[0] || (t[0] = (i) => e.onOptionSelected(e.BentoListboxEvent.SELECT)),
|
|
265
|
+
onEnterPressed: t[1] || (t[1] = (i) => e.onOptionSelected(e.BentoListboxEvent.ENTER)),
|
|
266
|
+
onSpacePressed: t[2] || (t[2] = Ye((i) => e.onOptionSelected(e.BentoListboxEvent.SPACE), ["prevent"])),
|
|
267
|
+
onTabPressed: t[3] || (t[3] = (i) => e.onOptionSelected(e.BentoListboxEvent.TAB))
|
|
268
268
|
}, {
|
|
269
|
-
default:
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
default:
|
|
274
|
-
|
|
269
|
+
default: T(() => [
|
|
270
|
+
z(e.$slots, "default", ee(ne(e.option)), () => [
|
|
271
|
+
K("span", mt, [
|
|
272
|
+
B(s, { el: "span" }, {
|
|
273
|
+
default: T(() => [
|
|
274
|
+
G(w(e.option.label), 1)
|
|
275
275
|
]),
|
|
276
276
|
_: 1
|
|
277
277
|
}),
|
|
278
|
-
e.option.description ? (
|
|
278
|
+
e.option.description ? (f(), D(s, {
|
|
279
279
|
key: 0,
|
|
280
280
|
class: "b-listbox-single-select-option__description",
|
|
281
281
|
el: "span"
|
|
282
282
|
}, {
|
|
283
|
-
default:
|
|
284
|
-
|
|
283
|
+
default: T(() => [
|
|
284
|
+
G(w(e.option.description), 1)
|
|
285
285
|
]),
|
|
286
286
|
_: 1
|
|
287
|
-
})) :
|
|
287
|
+
})) : Y("", !0)
|
|
288
288
|
])
|
|
289
289
|
], !0),
|
|
290
|
-
|
|
291
|
-
ae(
|
|
290
|
+
K("span", vt, [
|
|
291
|
+
ae(B(l, { "svg-title": "selected" }, null, 512), [
|
|
292
292
|
[Ae, e.selected]
|
|
293
293
|
])
|
|
294
294
|
])
|
|
@@ -296,15 +296,15 @@ function pt(e, t, n, u, c, a) {
|
|
|
296
296
|
_: 3
|
|
297
297
|
}, 8, ["disabled", "selected", "aria-selected", "aria-disabled", "tabindex"]);
|
|
298
298
|
}
|
|
299
|
-
const
|
|
300
|
-
const
|
|
301
|
-
() =>
|
|
302
|
-
),
|
|
299
|
+
const gt = /* @__PURE__ */ q(bt, [["render", ft], ["__scopeId", "data-v-226f4c84"]]), ke = ({ items: e, isOptionDisabled: t, hasStaticCategories: a }, c) => {
|
|
300
|
+
const u = v(
|
|
301
|
+
() => a.value ? e.value.flatMap((m) => m.items) : e.value
|
|
302
|
+
), n = v(() => u.value.length - 1), s = M(0);
|
|
303
303
|
Oe(() => {
|
|
304
|
-
t && (s.value = e.value.findIndex((
|
|
304
|
+
t && (s.value = e.value.findIndex((m) => !t(m)));
|
|
305
305
|
});
|
|
306
|
-
const
|
|
307
|
-
switch (
|
|
306
|
+
const l = (m) => !t || !!t && t(e.value[m]), r = (m) => !t || !!t && !t(e.value[m]), i = (m) => {
|
|
307
|
+
switch (m) {
|
|
308
308
|
case "increase":
|
|
309
309
|
s.value += 1;
|
|
310
310
|
break;
|
|
@@ -312,26 +312,26 @@ const yt = /* @__PURE__ */ W(vt, [["render", pt], ["__scopeId", "data-v-226f4c84
|
|
|
312
312
|
s.value -= 1;
|
|
313
313
|
break;
|
|
314
314
|
}
|
|
315
|
-
},
|
|
316
|
-
s.value !==
|
|
317
|
-
},
|
|
315
|
+
}, y = ({ edgeCaseItem: m, isItemBeforeEdgeCaseItem: C }, O, k) => {
|
|
316
|
+
s.value !== m && (C ? r(m) && i(k) : (i(k), l(s.value) && O()), c(s.value));
|
|
317
|
+
}, o = (m) => {
|
|
318
318
|
var O;
|
|
319
|
-
(O =
|
|
320
|
-
const C = s.value ===
|
|
321
|
-
|
|
319
|
+
(O = m == null ? void 0 : m.detail) == null || O.preventDefault();
|
|
320
|
+
const C = s.value === n.value - 2;
|
|
321
|
+
y(
|
|
322
322
|
{
|
|
323
323
|
isItemBeforeEdgeCaseItem: C,
|
|
324
|
-
edgeCaseItem:
|
|
324
|
+
edgeCaseItem: n.value
|
|
325
325
|
},
|
|
326
|
-
|
|
326
|
+
o,
|
|
327
327
|
"increase"
|
|
328
328
|
/* INCREASE */
|
|
329
329
|
);
|
|
330
|
-
}, d = (
|
|
330
|
+
}, d = (m) => {
|
|
331
331
|
var O;
|
|
332
|
-
(O =
|
|
332
|
+
(O = m == null ? void 0 : m.detail) == null || O.preventDefault();
|
|
333
333
|
const C = s.value === 1;
|
|
334
|
-
|
|
334
|
+
y(
|
|
335
335
|
{
|
|
336
336
|
edgeCaseItem: 0,
|
|
337
337
|
isItemBeforeEdgeCaseItem: C
|
|
@@ -343,22 +343,22 @@ const yt = /* @__PURE__ */ W(vt, [["render", pt], ["__scopeId", "data-v-226f4c84
|
|
|
343
343
|
};
|
|
344
344
|
return {
|
|
345
345
|
moveToFirstElement: () => {
|
|
346
|
-
s.value = 0,
|
|
346
|
+
s.value = 0, l(s.value) ? o() : c(s.value);
|
|
347
347
|
},
|
|
348
348
|
moveToLastElement: () => {
|
|
349
|
-
s.value =
|
|
349
|
+
s.value = n.value, l(s.value) ? d() : c(s.value);
|
|
350
350
|
},
|
|
351
|
-
moveToNextElement:
|
|
351
|
+
moveToNextElement: o,
|
|
352
352
|
moveToPreviousElement: d,
|
|
353
|
-
setListboxFocusedIndex: (
|
|
354
|
-
s.value =
|
|
353
|
+
setListboxFocusedIndex: (m) => {
|
|
354
|
+
s.value = m;
|
|
355
355
|
}
|
|
356
356
|
};
|
|
357
|
-
},
|
|
357
|
+
}, yt = W({
|
|
358
358
|
name: "bento-listbox-single-select",
|
|
359
359
|
components: {
|
|
360
|
-
BentoListboxSingleSelectCategory:
|
|
361
|
-
BentoListboxSingleSelectOption:
|
|
360
|
+
BentoListboxSingleSelectCategory: nt,
|
|
361
|
+
BentoListboxSingleSelectOption: gt
|
|
362
362
|
},
|
|
363
363
|
directives: { BentoKeyboardNavigationDirective: Se },
|
|
364
364
|
inheritAttrs: !1,
|
|
@@ -402,104 +402,104 @@ const yt = /* @__PURE__ */ W(vt, [["render", pt], ["__scopeId", "data-v-226f4c84
|
|
|
402
402
|
staticCategories: { type: Boolean, default: !1 }
|
|
403
403
|
},
|
|
404
404
|
emits: [b.SELECT, b.ENTER, b.SPACE, b.TAB],
|
|
405
|
-
setup(e, { emit: t, expose:
|
|
406
|
-
const
|
|
407
|
-
var
|
|
408
|
-
return !!((
|
|
409
|
-
}), s =
|
|
410
|
-
t(
|
|
411
|
-
}, r = (
|
|
412
|
-
moveToNextElement:
|
|
413
|
-
moveToPreviousElement:
|
|
414
|
-
moveToFirstElement:
|
|
405
|
+
setup(e, { emit: t, expose: a, slots: c }) {
|
|
406
|
+
const u = M([]), n = v(() => {
|
|
407
|
+
var m;
|
|
408
|
+
return !!((m = e.selectedValue) != null && m.length) && e.selectedValue.at(0);
|
|
409
|
+
}), s = v(() => !!e.items.some(({ items: m }) => !!m)), l = (m) => (C) => {
|
|
410
|
+
t(m, [C]);
|
|
411
|
+
}, r = (m) => u.value[m].$el.focus(), {
|
|
412
|
+
moveToNextElement: i,
|
|
413
|
+
moveToPreviousElement: y,
|
|
414
|
+
moveToFirstElement: o,
|
|
415
415
|
moveToLastElement: d,
|
|
416
|
-
setListboxFocusedIndex:
|
|
416
|
+
setListboxFocusedIndex: R
|
|
417
417
|
} = ke(
|
|
418
418
|
{
|
|
419
|
-
items:
|
|
419
|
+
items: se(e, "items"),
|
|
420
420
|
isOptionDisabled: e.isOptionDisabled,
|
|
421
|
-
hasStaticCategories:
|
|
421
|
+
hasStaticCategories: se(e, "staticCategories")
|
|
422
422
|
},
|
|
423
423
|
r
|
|
424
|
-
),
|
|
425
|
-
[
|
|
426
|
-
[
|
|
427
|
-
[
|
|
428
|
-
[
|
|
424
|
+
), $ = {
|
|
425
|
+
[F.ARROW_UP]: y,
|
|
426
|
+
[F.ARROW_DOWN]: i,
|
|
427
|
+
[F.HOME]: o,
|
|
428
|
+
[F.END]: d
|
|
429
429
|
}, N = {
|
|
430
|
-
[b.SELECT]:
|
|
431
|
-
[b.SPACE]:
|
|
432
|
-
[b.TAB]:
|
|
433
|
-
[b.ENTER]:
|
|
430
|
+
[b.SELECT]: l(b.SELECT),
|
|
431
|
+
[b.SPACE]: l(b.SPACE),
|
|
432
|
+
[b.TAB]: l(b.TAB),
|
|
433
|
+
[b.ENTER]: l(b.ENTER)
|
|
434
434
|
};
|
|
435
|
-
return
|
|
435
|
+
return a({
|
|
436
436
|
/**
|
|
437
437
|
* Reference for a single listbox item.
|
|
438
438
|
* Required for keyboard navigation in dropdown as $children is removed in vue@3
|
|
439
439
|
*/
|
|
440
|
-
listboxItemRef:
|
|
440
|
+
listboxItemRef: u,
|
|
441
441
|
/**
|
|
442
442
|
* Method to set the index of the item to be focused on
|
|
443
443
|
* Used for focus management to be kept in-sync with parent e.g. dropdowns
|
|
444
444
|
*/
|
|
445
|
-
setListboxFocusedIndex:
|
|
445
|
+
setListboxFocusedIndex: R
|
|
446
446
|
}), {
|
|
447
447
|
// Enums
|
|
448
448
|
BentoListboxEvent: b,
|
|
449
449
|
// Values
|
|
450
|
-
listboxItemRef:
|
|
451
|
-
selectedItem:
|
|
452
|
-
slots:
|
|
450
|
+
listboxItemRef: u,
|
|
451
|
+
selectedItem: n,
|
|
452
|
+
slots: c,
|
|
453
453
|
// Computed
|
|
454
454
|
hasCategories: s,
|
|
455
455
|
// Methods
|
|
456
|
-
onOptionSelected:
|
|
456
|
+
onOptionSelected: l,
|
|
457
457
|
// Keyboard navigation
|
|
458
|
-
listboxListeners:
|
|
458
|
+
listboxListeners: $,
|
|
459
459
|
listboxOptionListeners: N
|
|
460
460
|
};
|
|
461
461
|
}
|
|
462
462
|
});
|
|
463
|
-
function
|
|
464
|
-
const s = L("bento-listbox-single-select-option"),
|
|
465
|
-
return ae((
|
|
466
|
-
e.hasCategories && e.staticCategories ? (
|
|
467
|
-
key:
|
|
468
|
-
"category-label":
|
|
463
|
+
function pt(e, t, a, c, u, n) {
|
|
464
|
+
const s = L("bento-listbox-single-select-option"), l = L("bento-listbox-single-select-category"), r = pe("bento-keyboard-navigation-directive");
|
|
465
|
+
return ae((f(), _("div", te(e.listboxListeners, !0), [
|
|
466
|
+
e.hasCategories && e.staticCategories ? (f(!0), _(Z, { key: 0 }, x(e.items, (i) => (f(), D(l, {
|
|
467
|
+
key: i.value,
|
|
468
|
+
"category-label": i.label,
|
|
469
469
|
role: "group"
|
|
470
470
|
}, {
|
|
471
|
-
default:
|
|
472
|
-
(
|
|
473
|
-
key:
|
|
471
|
+
default: T(() => [
|
|
472
|
+
(f(!0), _(Z, null, x(i.items, (y) => (f(), D(s, U({
|
|
473
|
+
key: y.value,
|
|
474
474
|
ref_for: !0,
|
|
475
475
|
ref: "listboxItemRef",
|
|
476
476
|
role: "option",
|
|
477
|
-
option:
|
|
478
|
-
disabled: e.isOptionDisabled ? e.isOptionDisabled(
|
|
479
|
-
selected:
|
|
480
|
-
},
|
|
481
|
-
|
|
477
|
+
option: y,
|
|
478
|
+
disabled: e.isOptionDisabled ? e.isOptionDisabled(y) : null,
|
|
479
|
+
selected: y.value === e.selectedItem.value
|
|
480
|
+
}, te(e.listboxOptionListeners)), ie({ _: 2 }, [
|
|
481
|
+
x(e.slots, (o, d) => ({
|
|
482
482
|
name: d,
|
|
483
|
-
fn:
|
|
484
|
-
|
|
483
|
+
fn: T((R) => [
|
|
484
|
+
z(e.$slots, d, U({ ref_for: !0 }, R))
|
|
485
485
|
])
|
|
486
486
|
}))
|
|
487
487
|
]), 1040, ["option", "disabled", "selected"]))), 128))
|
|
488
488
|
]),
|
|
489
489
|
_: 2
|
|
490
|
-
}, 1032, ["category-label"]))), 128)) : (
|
|
491
|
-
key:
|
|
490
|
+
}, 1032, ["category-label"]))), 128)) : (f(!0), _(Z, { key: 1 }, x(e.items, (i) => (f(), D(s, U({
|
|
491
|
+
key: i.value,
|
|
492
492
|
ref_for: !0,
|
|
493
493
|
ref: "listboxItemRef",
|
|
494
494
|
role: "option",
|
|
495
|
-
option:
|
|
496
|
-
disabled: e.isOptionDisabled ? e.isOptionDisabled(
|
|
497
|
-
selected:
|
|
498
|
-
},
|
|
499
|
-
|
|
500
|
-
name:
|
|
501
|
-
fn:
|
|
502
|
-
|
|
495
|
+
option: i,
|
|
496
|
+
disabled: e.isOptionDisabled ? e.isOptionDisabled(i) : null,
|
|
497
|
+
selected: i.value === e.selectedItem.value
|
|
498
|
+
}, te(e.listboxOptionListeners)), ie({ _: 2 }, [
|
|
499
|
+
x(e.slots, (y, o) => ({
|
|
500
|
+
name: o,
|
|
501
|
+
fn: T((d) => [
|
|
502
|
+
z(e.$slots, o, U({ ref_for: !0 }, d))
|
|
503
503
|
])
|
|
504
504
|
}))
|
|
505
505
|
]), 1040, ["option", "disabled", "selected"]))), 128))
|
|
@@ -507,22 +507,22 @@ function Ct(e, t, n, u, c, a) {
|
|
|
507
507
|
[r]
|
|
508
508
|
]);
|
|
509
509
|
}
|
|
510
|
-
const
|
|
511
|
-
var
|
|
512
|
-
const
|
|
510
|
+
const St = /* @__PURE__ */ q(yt, [["render", pt]]);
|
|
511
|
+
var ge = /* @__PURE__ */ ((e) => (e.DISABLED = "disabled", e.STATIC_CATEGORY = "static-category", e))(ge || {}), oe = /* @__PURE__ */ ((e) => (e.SELECT_CATEGORY = "select-category", e.UNSELECT_CATEGORY = "unselect-category", e))(oe || {});
|
|
512
|
+
const Ct = {
|
|
513
513
|
"en-US": {
|
|
514
514
|
categoryClosed: "{category} closed",
|
|
515
515
|
categoryOpened: "{category} opened"
|
|
516
516
|
}
|
|
517
|
-
},
|
|
518
|
-
i18n: { messages:
|
|
517
|
+
}, ht = W({
|
|
518
|
+
i18n: { messages: Ct },
|
|
519
519
|
name: "bento-listbox-multi-select-category",
|
|
520
520
|
components: {
|
|
521
521
|
BentoCheckbox: Ce,
|
|
522
|
-
BentoTypography:
|
|
522
|
+
BentoTypography: J,
|
|
523
523
|
BentoListboxOption: de,
|
|
524
|
-
ChevronDownIcon:
|
|
525
|
-
ChevronUpIcon:
|
|
524
|
+
ChevronDownIcon: He,
|
|
525
|
+
ChevronUpIcon: Xe
|
|
526
526
|
},
|
|
527
527
|
props: {
|
|
528
528
|
/**
|
|
@@ -563,78 +563,78 @@ const Et = {
|
|
|
563
563
|
*/
|
|
564
564
|
staticCategories: { type: Boolean, default: !1 }
|
|
565
565
|
},
|
|
566
|
-
emits: [
|
|
566
|
+
emits: [oe.SELECT_CATEGORY, oe.UNSELECT_CATEGORY],
|
|
567
567
|
setup(e, { emit: t }) {
|
|
568
|
-
const
|
|
569
|
-
() => e.category.items.every((S) =>
|
|
570
|
-
), s =
|
|
571
|
-
[`b-listbox-multi-select-category--${
|
|
572
|
-
[`b-listbox-multi-select-category--${
|
|
573
|
-
})),
|
|
574
|
-
S.preventDefault(),
|
|
575
|
-
},
|
|
576
|
-
var
|
|
577
|
-
const
|
|
578
|
-
return { isDisabled:
|
|
579
|
-
},
|
|
568
|
+
const a = M(!1), { t: c } = ue(), u = (S) => e.isOptionDisabled ? e.isOptionDisabled(S) : !1, n = v(
|
|
569
|
+
() => e.category.items.every((S) => u(S))
|
|
570
|
+
), s = se(e, "staticCategories"), l = v(() => a.value || e.staticCategories), r = v(() => ({
|
|
571
|
+
[`b-listbox-multi-select-category--${ge.DISABLED}`]: n.value,
|
|
572
|
+
[`b-listbox-multi-select-category--${ge.STATIC_CATEGORY}`]: e.staticCategories
|
|
573
|
+
})), i = (S) => {
|
|
574
|
+
S.preventDefault(), a.value = !a.value;
|
|
575
|
+
}, y = (S) => {
|
|
576
|
+
var Q;
|
|
577
|
+
const I = u(S), V = ((Q = e.selectedItemsList) == null ? void 0 : Q.includes(S.value)) || !1;
|
|
578
|
+
return { isDisabled: I, isPreSelected: V };
|
|
579
|
+
}, o = v(
|
|
580
580
|
() => e.category.items.filter((S) => {
|
|
581
|
-
const { isDisabled:
|
|
582
|
-
return
|
|
581
|
+
const { isDisabled: I, isPreSelected: V } = y(S);
|
|
582
|
+
return I && V || !I;
|
|
583
583
|
})
|
|
584
|
-
), d =
|
|
584
|
+
), d = v(
|
|
585
585
|
() => {
|
|
586
586
|
var S;
|
|
587
|
-
return (S =
|
|
588
|
-
({ value:
|
|
589
|
-
var
|
|
590
|
-
return (
|
|
587
|
+
return (S = o.value) == null ? void 0 : S.filter(
|
|
588
|
+
({ value: I }) => {
|
|
589
|
+
var V;
|
|
590
|
+
return (V = e.selectedItemsList) == null ? void 0 : V.includes(I);
|
|
591
591
|
}
|
|
592
592
|
);
|
|
593
593
|
}
|
|
594
|
-
),
|
|
595
|
-
const S =
|
|
596
|
-
return
|
|
597
|
-
}),
|
|
594
|
+
), R = v(() => {
|
|
595
|
+
const S = a.value ? "categoryOpened" : "categoryClosed";
|
|
596
|
+
return c(S, { category: e.category.label });
|
|
597
|
+
}), $ = v(
|
|
598
598
|
() => ({
|
|
599
599
|
el: "span",
|
|
600
600
|
variant: e.staticCategories ? "caption" : "body"
|
|
601
601
|
})
|
|
602
602
|
), N = () => {
|
|
603
|
-
t(
|
|
604
|
-
},
|
|
605
|
-
t(
|
|
606
|
-
}, { isAllSelected: C, isIndeterminate: O, toggleSelectAll:
|
|
603
|
+
t(oe.SELECT_CATEGORY);
|
|
604
|
+
}, m = () => {
|
|
605
|
+
t(oe.UNSELECT_CATEGORY);
|
|
606
|
+
}, { isAllSelected: C, isIndeterminate: O, toggleSelectAll: k } = $e(
|
|
607
607
|
d,
|
|
608
|
-
|
|
608
|
+
o,
|
|
609
609
|
N,
|
|
610
|
-
|
|
610
|
+
m
|
|
611
611
|
);
|
|
612
612
|
return {
|
|
613
613
|
// Values
|
|
614
|
-
chevronTitle:
|
|
614
|
+
chevronTitle: R,
|
|
615
615
|
conditionalClass: r,
|
|
616
|
-
hasAllPropsDisabled:
|
|
617
|
-
isOpen:
|
|
616
|
+
hasAllPropsDisabled: n,
|
|
617
|
+
isOpen: a,
|
|
618
618
|
isAllSelected: C,
|
|
619
619
|
isIndeterminate: O,
|
|
620
620
|
isStaticCategory: s,
|
|
621
621
|
// Computed
|
|
622
|
-
showItemChildren:
|
|
623
|
-
categoryLabelProps:
|
|
622
|
+
showItemChildren: l,
|
|
623
|
+
categoryLabelProps: $,
|
|
624
624
|
// Methods
|
|
625
|
-
toggleOpen:
|
|
626
|
-
toggleSelectAll:
|
|
625
|
+
toggleOpen: i,
|
|
626
|
+
toggleSelectAll: k
|
|
627
627
|
};
|
|
628
628
|
}
|
|
629
|
-
}),
|
|
630
|
-
function
|
|
631
|
-
const s = L("bento-checkbox"),
|
|
632
|
-
return
|
|
633
|
-
|
|
634
|
-
class:
|
|
629
|
+
}), Et = { class: "b-listbox-multi-select-category__label" };
|
|
630
|
+
function Lt(e, t, a, c, u, n) {
|
|
631
|
+
const s = L("bento-checkbox"), l = L("bento-typography"), r = L("chevron-up-icon"), i = L("chevron-down-icon"), y = L("bento-listbox-option");
|
|
632
|
+
return f(), _("div", null, [
|
|
633
|
+
B(y, {
|
|
634
|
+
class: fe(["b-listbox-multi-select-category__option", e.conditionalClass])
|
|
635
635
|
}, {
|
|
636
|
-
default:
|
|
637
|
-
e.isStaticCategory ?
|
|
636
|
+
default: T(() => [
|
|
637
|
+
e.isStaticCategory ? Y("", !0) : (f(), D(s, {
|
|
638
638
|
key: 0,
|
|
639
639
|
"model-value": e.isAllSelected,
|
|
640
640
|
indeterminate: e.isIndeterminate,
|
|
@@ -643,23 +643,23 @@ function Tt(e, t, n, u, c, a) {
|
|
|
643
643
|
value: e.category.value,
|
|
644
644
|
"onUpdate:modelValue": e.toggleSelectAll
|
|
645
645
|
}, null, 8, ["model-value", "indeterminate", "disabled", "aria-label", "value", "onUpdate:modelValue"])),
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
default:
|
|
649
|
-
|
|
646
|
+
K("span", Et, [
|
|
647
|
+
B(l, U(e.categoryLabelProps, { class: "b-listbox-multi-select-category__label-text" }), {
|
|
648
|
+
default: T(() => [
|
|
649
|
+
G(w(e.category.label), 1)
|
|
650
650
|
]),
|
|
651
651
|
_: 1
|
|
652
652
|
}, 16),
|
|
653
|
-
e.isStaticCategory ?
|
|
653
|
+
e.isStaticCategory ? Y("", !0) : (f(), _("div", {
|
|
654
654
|
key: 0,
|
|
655
655
|
class: "b-listbox-multi-select-category__label-chevron",
|
|
656
656
|
"data-testid": "toggle-listbox",
|
|
657
|
-
onClickCapture: t[0] || (t[0] = (...
|
|
657
|
+
onClickCapture: t[0] || (t[0] = (...o) => e.toggleOpen && e.toggleOpen(...o))
|
|
658
658
|
}, [
|
|
659
|
-
e.isOpen ? (
|
|
659
|
+
e.isOpen ? (f(), D(r, {
|
|
660
660
|
key: 0,
|
|
661
661
|
"svg-title": e.chevronTitle
|
|
662
|
-
}, null, 8, ["svg-title"])) : (
|
|
662
|
+
}, null, 8, ["svg-title"])) : (f(), D(i, {
|
|
663
663
|
key: 1,
|
|
664
664
|
"svg-title": e.chevronTitle
|
|
665
665
|
}, null, 8, ["svg-title"]))
|
|
@@ -668,22 +668,22 @@ function Tt(e, t, n, u, c, a) {
|
|
|
668
668
|
]),
|
|
669
669
|
_: 1
|
|
670
670
|
}, 8, ["class"]),
|
|
671
|
-
ae(
|
|
672
|
-
|
|
671
|
+
ae(K("div", null, [
|
|
672
|
+
z(e.$slots, "default", {}, void 0, !0)
|
|
673
673
|
], 512), [
|
|
674
674
|
[Ae, e.showItemChildren]
|
|
675
675
|
])
|
|
676
676
|
]);
|
|
677
677
|
}
|
|
678
|
-
const
|
|
679
|
-
var
|
|
680
|
-
const
|
|
678
|
+
const Tt = /* @__PURE__ */ q(ht, [["render", Lt], ["__scopeId", "data-v-9a00de22"]]);
|
|
679
|
+
var H = /* @__PURE__ */ ((e) => (e.SELECT_CATEGORY = "select-category", e.TOGGLE_CHECKBOX_SELECTION = "toggle-checkbox-selection", e.UNSELECT_CATEGORY = "unselect-category", e))(H || {});
|
|
680
|
+
const _t = W({
|
|
681
681
|
name: "listbox-multi-select-options",
|
|
682
682
|
components: {
|
|
683
683
|
BentoCheckbox: Ce,
|
|
684
684
|
BentoListboxOption: de,
|
|
685
|
-
BentoTypography:
|
|
686
|
-
ListboxMultiSelectCategory:
|
|
685
|
+
BentoTypography: J,
|
|
686
|
+
ListboxMultiSelectCategory: Tt
|
|
687
687
|
},
|
|
688
688
|
props: {
|
|
689
689
|
/**
|
|
@@ -741,93 +741,93 @@ const It = H({
|
|
|
741
741
|
staticCategories: { type: Boolean, default: !1 }
|
|
742
742
|
},
|
|
743
743
|
emits: [
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
744
|
+
H.TOGGLE_CHECKBOX_SELECTION,
|
|
745
|
+
H.SELECT_CATEGORY,
|
|
746
|
+
H.UNSELECT_CATEGORY
|
|
747
747
|
],
|
|
748
748
|
setup(e, { emit: t }) {
|
|
749
|
-
const
|
|
750
|
-
t(
|
|
751
|
-
},
|
|
752
|
-
const
|
|
753
|
-
return r.description && (!e.isMultiLevel ||
|
|
754
|
-
},
|
|
755
|
-
if (
|
|
756
|
-
return t(r ?
|
|
757
|
-
|
|
749
|
+
const a = (r) => {
|
|
750
|
+
t(H.TOGGLE_CHECKBOX_SELECTION, r);
|
|
751
|
+
}, c = (r) => !!r.items, u = (r) => {
|
|
752
|
+
const i = e.isMultiLevel && e.searching;
|
|
753
|
+
return r.description && (!e.isMultiLevel || i);
|
|
754
|
+
}, n = (r) => r.items ? !!r.items.find((i) => e.selectedItemsList.includes(i.value)) : e.selectedItemsList.includes(r.value), s = (r, i) => {
|
|
755
|
+
if (c(i))
|
|
756
|
+
return t(r ? H.SELECT_CATEGORY : H.UNSELECT_CATEGORY, i);
|
|
757
|
+
a(i.value);
|
|
758
758
|
};
|
|
759
759
|
return {
|
|
760
760
|
// Values
|
|
761
|
-
conditionalClasses:
|
|
761
|
+
conditionalClasses: v(() => ({
|
|
762
762
|
"b-listbox-multi-select-options__static-category-option": e.staticCategories,
|
|
763
763
|
"b-listbox-multi-select-options__category-option": e.categoryItems
|
|
764
764
|
})),
|
|
765
765
|
// Methods
|
|
766
|
-
isOptionSelected:
|
|
767
|
-
shouldShowDescription:
|
|
768
|
-
toggleCheckboxSelection:
|
|
766
|
+
isOptionSelected: n,
|
|
767
|
+
shouldShowDescription: u,
|
|
768
|
+
toggleCheckboxSelection: a,
|
|
769
769
|
selectSearch: s,
|
|
770
770
|
// Enums
|
|
771
771
|
BentoListboxEvent: b,
|
|
772
|
-
ListboxMultiSelectOptionsEvent:
|
|
772
|
+
ListboxMultiSelectOptionsEvent: H
|
|
773
773
|
};
|
|
774
774
|
}
|
|
775
|
-
}),
|
|
776
|
-
function
|
|
777
|
-
const s = L("bento-checkbox"),
|
|
778
|
-
return
|
|
779
|
-
(
|
|
780
|
-
key: `selected-${
|
|
775
|
+
}), Ot = { class: "b-listbox-multi-select__option-text" }, It = { class: "b-listbox-multi-select__option-text" };
|
|
776
|
+
function At(e, t, a, c, u, n) {
|
|
777
|
+
const s = L("bento-checkbox"), l = L("bento-typography"), r = L("bento-listbox-option"), i = L("listbox-multi-select-options", !0), y = L("listbox-multi-select-category");
|
|
778
|
+
return f(), _("div", null, [
|
|
779
|
+
(f(!0), _(Z, null, x(e.items, (o) => (f(), _("div", {
|
|
780
|
+
key: `selected-${o.value}`
|
|
781
781
|
}, [
|
|
782
|
-
e.searching && e.isMultiLevel ? (
|
|
782
|
+
e.searching && e.isMultiLevel ? (f(), D(r, {
|
|
783
783
|
key: 0,
|
|
784
|
-
class:
|
|
785
|
-
disabled: e.isOptionDisabled ? e.isOptionDisabled(
|
|
784
|
+
class: fe(["b-listbox-multi-select-options", e.conditionalClasses]),
|
|
785
|
+
disabled: e.isOptionDisabled ? e.isOptionDisabled(o) : null
|
|
786
786
|
}, {
|
|
787
|
-
default:
|
|
788
|
-
|
|
789
|
-
"model-value": e.isOptionSelected(
|
|
790
|
-
"aria-label":
|
|
791
|
-
disabled: e.isOptionDisabled ? e.isOptionDisabled(
|
|
792
|
-
value:
|
|
793
|
-
"onUpdate:modelValue": (d) => e.selectSearch(d,
|
|
787
|
+
default: T(() => [
|
|
788
|
+
B(s, {
|
|
789
|
+
"model-value": e.isOptionSelected(o),
|
|
790
|
+
"aria-label": o.label,
|
|
791
|
+
disabled: e.isOptionDisabled ? e.isOptionDisabled(o) : null,
|
|
792
|
+
value: o.value,
|
|
793
|
+
"onUpdate:modelValue": (d) => e.selectSearch(d, o)
|
|
794
794
|
}, null, 8, ["model-value", "aria-label", "disabled", "value", "onUpdate:modelValue"]),
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
default:
|
|
799
|
-
|
|
795
|
+
z(e.$slots, "default", U({ ref_for: !0 }, o), () => [
|
|
796
|
+
K("span", Ot, [
|
|
797
|
+
B(l, { el: "span" }, {
|
|
798
|
+
default: T(() => [
|
|
799
|
+
G(w(o.label), 1)
|
|
800
800
|
]),
|
|
801
801
|
_: 2
|
|
802
802
|
}, 1024),
|
|
803
|
-
e.shouldShowDescription(
|
|
803
|
+
e.shouldShowDescription(o) ? (f(), D(l, {
|
|
804
804
|
key: 0,
|
|
805
805
|
class: "b-listbox-multi-select__option-description",
|
|
806
806
|
el: "span"
|
|
807
807
|
}, {
|
|
808
|
-
default:
|
|
809
|
-
|
|
808
|
+
default: T(() => [
|
|
809
|
+
G(w(o.description), 1)
|
|
810
810
|
]),
|
|
811
811
|
_: 2
|
|
812
|
-
}, 1024)) :
|
|
812
|
+
}, 1024)) : Y("", !0)
|
|
813
813
|
])
|
|
814
814
|
], !0)
|
|
815
815
|
]),
|
|
816
816
|
_: 2
|
|
817
|
-
}, 1032, ["class", "disabled"])) : (
|
|
818
|
-
|
|
817
|
+
}, 1032, ["class", "disabled"])) : (f(), _(Z, { key: 1 }, [
|
|
818
|
+
o.items ? (f(), D(y, {
|
|
819
819
|
key: 0,
|
|
820
|
-
category:
|
|
820
|
+
category: o,
|
|
821
821
|
"static-categories": e.staticCategories,
|
|
822
822
|
"is-option-disabled": e.isOptionDisabled,
|
|
823
823
|
"selected-items-list": e.selectedItemsList,
|
|
824
|
-
onSelectCategory: (d) => e.$emit(e.ListboxMultiSelectOptionsEvent.SELECT_CATEGORY,
|
|
825
|
-
onUnselectCategory: (d) => e.$emit(e.ListboxMultiSelectOptionsEvent.UNSELECT_CATEGORY,
|
|
824
|
+
onSelectCategory: (d) => e.$emit(e.ListboxMultiSelectOptionsEvent.SELECT_CATEGORY, o),
|
|
825
|
+
onUnselectCategory: (d) => e.$emit(e.ListboxMultiSelectOptionsEvent.UNSELECT_CATEGORY, o)
|
|
826
826
|
}, {
|
|
827
|
-
default:
|
|
828
|
-
|
|
827
|
+
default: T(() => [
|
|
828
|
+
B(i, {
|
|
829
829
|
"category-items": "",
|
|
830
|
-
items:
|
|
830
|
+
items: o.items,
|
|
831
831
|
"is-option-disabled": e.isOptionDisabled,
|
|
832
832
|
"is-multi-level": e.isMultiLevel,
|
|
833
833
|
"static-categories": e.staticCategories,
|
|
@@ -837,37 +837,37 @@ function kt(e, t, n, u, c, a) {
|
|
|
837
837
|
}, null, 8, ["items", "is-option-disabled", "is-multi-level", "static-categories", "selected-items-list", "searching"])
|
|
838
838
|
]),
|
|
839
839
|
_: 2
|
|
840
|
-
}, 1032, ["category", "static-categories", "is-option-disabled", "selected-items-list", "onSelectCategory", "onUnselectCategory"])) : (
|
|
840
|
+
}, 1032, ["category", "static-categories", "is-option-disabled", "selected-items-list", "onSelectCategory", "onUnselectCategory"])) : (f(), D(r, {
|
|
841
841
|
key: 1,
|
|
842
|
-
class:
|
|
843
|
-
disabled: e.isOptionDisabled ? e.isOptionDisabled(
|
|
842
|
+
class: fe(["b-listbox-multi-select-options", e.conditionalClasses]),
|
|
843
|
+
disabled: e.isOptionDisabled ? e.isOptionDisabled(o) : null
|
|
844
844
|
}, {
|
|
845
|
-
default:
|
|
846
|
-
|
|
845
|
+
default: T(() => [
|
|
846
|
+
B(s, {
|
|
847
847
|
"model-value": e.selectedItemsList,
|
|
848
|
-
"aria-label":
|
|
849
|
-
disabled: e.isOptionDisabled ? e.isOptionDisabled(
|
|
850
|
-
value:
|
|
851
|
-
"onUpdate:modelValue": (d) => e.toggleCheckboxSelection(
|
|
848
|
+
"aria-label": o.label,
|
|
849
|
+
disabled: e.isOptionDisabled ? e.isOptionDisabled(o) : null,
|
|
850
|
+
value: o.value,
|
|
851
|
+
"onUpdate:modelValue": (d) => e.toggleCheckboxSelection(o)
|
|
852
852
|
}, null, 8, ["model-value", "aria-label", "disabled", "value", "onUpdate:modelValue"]),
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
default:
|
|
857
|
-
|
|
853
|
+
z(e.$slots, "default", U({ ref_for: !0 }, o), () => [
|
|
854
|
+
K("span", It, [
|
|
855
|
+
B(l, { el: "span" }, {
|
|
856
|
+
default: T(() => [
|
|
857
|
+
G(w(o.label), 1)
|
|
858
858
|
]),
|
|
859
859
|
_: 2
|
|
860
860
|
}, 1024),
|
|
861
|
-
e.shouldShowDescription(
|
|
861
|
+
e.shouldShowDescription(o) ? (f(), D(l, {
|
|
862
862
|
key: 0,
|
|
863
863
|
class: "b-listbox-multi-select__option-description",
|
|
864
864
|
el: "span"
|
|
865
865
|
}, {
|
|
866
|
-
default:
|
|
867
|
-
|
|
866
|
+
default: T(() => [
|
|
867
|
+
G(w(o.description), 1)
|
|
868
868
|
]),
|
|
869
869
|
_: 2
|
|
870
|
-
}, 1024)) :
|
|
870
|
+
}, 1024)) : Y("", !0)
|
|
871
871
|
])
|
|
872
872
|
], !0)
|
|
873
873
|
]),
|
|
@@ -877,14 +877,14 @@ function kt(e, t, n, u, c, a) {
|
|
|
877
877
|
]))), 128))
|
|
878
878
|
]);
|
|
879
879
|
}
|
|
880
|
-
const
|
|
880
|
+
const $t = /* @__PURE__ */ q(_t, [["render", At], ["__scopeId", "data-v-25938a72"]]), Be = {
|
|
881
881
|
"en-US": {
|
|
882
882
|
remove: "Remove"
|
|
883
883
|
}
|
|
884
|
-
},
|
|
884
|
+
}, kt = { class: "b-listbox-multi-select-chips" }, Bt = {
|
|
885
885
|
i18n: { messages: Be }
|
|
886
|
-
},
|
|
887
|
-
...
|
|
886
|
+
}, Rt = /* @__PURE__ */ W({
|
|
887
|
+
...Bt,
|
|
888
888
|
__name: "listbox-multi-select-chips",
|
|
889
889
|
props: {
|
|
890
890
|
/**
|
|
@@ -908,29 +908,29 @@ const Bt = /* @__PURE__ */ W(It, [["render", kt], ["__scopeId", "data-v-25938a72
|
|
|
908
908
|
},
|
|
909
909
|
emits: ["unselect-item", "unselect-category"],
|
|
910
910
|
setup(e, { emit: t }) {
|
|
911
|
-
const { t:
|
|
912
|
-
return (
|
|
913
|
-
(
|
|
914
|
-
key: `selected-${
|
|
911
|
+
const a = t, { t: c } = ue({ messages: Be }), u = (n) => n.items ? a("unselect-category", n) : a("unselect-item", n);
|
|
912
|
+
return (n, s) => (f(), _("div", kt, [
|
|
913
|
+
(f(!0), _(Z, null, x(e.items, (l) => (f(), _("div", {
|
|
914
|
+
key: `selected-${l.value}`
|
|
915
915
|
}, [
|
|
916
|
-
|
|
916
|
+
B(ce(Ze), {
|
|
917
917
|
class: "b-listbox-multi-select-chips__chip",
|
|
918
|
-
disabled: e.isOptionDisabled ? e.isOptionDisabled(
|
|
919
|
-
onClick: (
|
|
918
|
+
disabled: e.isOptionDisabled ? e.isOptionDisabled(l) : null,
|
|
919
|
+
onClick: (r) => u(l)
|
|
920
920
|
}, {
|
|
921
|
-
iconRight:
|
|
922
|
-
|
|
923
|
-
"svg-title": ce(
|
|
921
|
+
iconRight: T(() => [
|
|
922
|
+
B(ce(Je), {
|
|
923
|
+
"svg-title": ce(c)("remove")
|
|
924
924
|
}, null, 8, ["svg-title"])
|
|
925
925
|
]),
|
|
926
|
-
default:
|
|
927
|
-
|
|
926
|
+
default: T(() => [
|
|
927
|
+
B(ce(J), {
|
|
928
928
|
el: "span",
|
|
929
929
|
variant: "caption",
|
|
930
930
|
class: "b-listbox-multi-select-chips__option-text"
|
|
931
931
|
}, {
|
|
932
|
-
default:
|
|
933
|
-
|
|
932
|
+
default: T(() => [
|
|
933
|
+
G(w(l.label), 1)
|
|
934
934
|
]),
|
|
935
935
|
_: 2
|
|
936
936
|
}, 1024)
|
|
@@ -940,34 +940,34 @@ const Bt = /* @__PURE__ */ W(It, [["render", kt], ["__scopeId", "data-v-25938a72
|
|
|
940
940
|
]))), 128))
|
|
941
941
|
]));
|
|
942
942
|
}
|
|
943
|
-
}),
|
|
943
|
+
}), Dt = /* @__PURE__ */ q(Rt, [["__scopeId", "data-v-7c5f8bdb"]]), Le = {
|
|
944
944
|
"en-US": {
|
|
945
945
|
allSelected: "All selected ({total})",
|
|
946
946
|
numberOfTotalSelected: "{number} of {total} selected",
|
|
947
947
|
numbersSelected: "{number} selected",
|
|
948
948
|
selectAll: "Select all ({total})"
|
|
949
949
|
}
|
|
950
|
-
},
|
|
951
|
-
const t =
|
|
952
|
-
var
|
|
953
|
-
return !!((
|
|
954
|
-
}),
|
|
955
|
-
var
|
|
956
|
-
return t.value ? (
|
|
950
|
+
}, Nt = (e) => {
|
|
951
|
+
const t = v(() => {
|
|
952
|
+
var c;
|
|
953
|
+
return !!((c = e.value) != null && c.find(({ items: u }) => !!u));
|
|
954
|
+
}), a = v(() => {
|
|
955
|
+
var c;
|
|
956
|
+
return t.value ? (c = e.value) == null ? void 0 : c.reduce((u, n) => (n.items ? u.push(...n.items.flat()) : u.push(n), u), []) : e.value;
|
|
957
957
|
});
|
|
958
958
|
return {
|
|
959
959
|
isMultiLevelSelect: t,
|
|
960
|
-
flattenedItemsList:
|
|
960
|
+
flattenedItemsList: a
|
|
961
961
|
};
|
|
962
|
-
},
|
|
962
|
+
}, Mt = W({
|
|
963
963
|
i18n: { messages: Le },
|
|
964
964
|
name: "bento-listbox-multi-select",
|
|
965
965
|
components: {
|
|
966
966
|
BentoCheckbox: Ce,
|
|
967
967
|
BentoListboxOption: de,
|
|
968
|
-
BentoTypography:
|
|
969
|
-
ListboxMultiSelectOptions:
|
|
970
|
-
ListboxMultiSelectChips:
|
|
968
|
+
BentoTypography: J,
|
|
969
|
+
ListboxMultiSelectOptions: $t,
|
|
970
|
+
ListboxMultiSelectChips: Dt
|
|
971
971
|
},
|
|
972
972
|
directives: { BentoKeyboardNavigationDirective: Se },
|
|
973
973
|
props: {
|
|
@@ -1006,8 +1006,8 @@ const Bt = /* @__PURE__ */ W(It, [["render", kt], ["__scopeId", "data-v-25938a72
|
|
|
1006
1006
|
*/
|
|
1007
1007
|
lazyLoadType: {
|
|
1008
1008
|
type: String,
|
|
1009
|
-
default:
|
|
1010
|
-
validator: (e) => Object.values(
|
|
1009
|
+
default: X.NONE,
|
|
1010
|
+
validator: (e) => Object.values(X).includes(e)
|
|
1011
1011
|
},
|
|
1012
1012
|
/**
|
|
1013
1013
|
* Flag that indicates that an external search it's being made
|
|
@@ -1030,182 +1030,182 @@ const Bt = /* @__PURE__ */ W(It, [["render", kt], ["__scopeId", "data-v-25938a72
|
|
|
1030
1030
|
staticCategories: { type: Boolean, default: !1 }
|
|
1031
1031
|
},
|
|
1032
1032
|
emits: [b.SELECT],
|
|
1033
|
-
setup(e, { emit: t, slots:
|
|
1034
|
-
const { t:
|
|
1035
|
-
() => e.selectedValues.map(({ value:
|
|
1036
|
-
), { isMultiLevelSelect: r, flattenedItemsList:
|
|
1037
|
-
var
|
|
1038
|
-
const
|
|
1039
|
-
return { isDisabled:
|
|
1040
|
-
},
|
|
1033
|
+
setup(e, { emit: t, slots: a }) {
|
|
1034
|
+
const { t: c } = ue({ messages: Le }), u = M(null), n = M(null), s = M(null), l = v(
|
|
1035
|
+
() => e.selectedValues.map(({ value: g }) => g)
|
|
1036
|
+
), { isMultiLevelSelect: r, flattenedItemsList: i } = Nt(se(e, "items")), y = (g) => {
|
|
1037
|
+
var A;
|
|
1038
|
+
const p = e.isOptionDisabled(g), h = ((A = l.value) == null ? void 0 : A.includes(g.value)) || !1;
|
|
1039
|
+
return { isDisabled: p, isPreSelected: h };
|
|
1040
|
+
}, o = v(() => {
|
|
1041
1041
|
if (e.searching && r)
|
|
1042
1042
|
return e.items;
|
|
1043
|
-
const
|
|
1044
|
-
const { isDisabled: h, isPreSelected:
|
|
1045
|
-
return h &&
|
|
1043
|
+
const g = i.value.filter((p) => {
|
|
1044
|
+
const { isDisabled: h, isPreSelected: A } = y(p);
|
|
1045
|
+
return h && A || !h;
|
|
1046
1046
|
});
|
|
1047
|
-
return e.selectedValues.forEach((
|
|
1048
|
-
|
|
1049
|
-
}),
|
|
1050
|
-
}), d =
|
|
1047
|
+
return e.selectedValues.forEach((p) => {
|
|
1048
|
+
g.find((h) => h.value === p.value) || g.push(p);
|
|
1049
|
+
}), g;
|
|
1050
|
+
}), d = v(
|
|
1051
1051
|
() => {
|
|
1052
|
-
var
|
|
1053
|
-
return (
|
|
1052
|
+
var g;
|
|
1053
|
+
return (g = o.value) == null ? void 0 : g.filter((p) => {
|
|
1054
1054
|
var h;
|
|
1055
|
-
return
|
|
1055
|
+
return p.items && r.value && e.searching ? p.items.filter(
|
|
1056
1056
|
(E) => (e.selectedValues ?? []).includes(E.value)
|
|
1057
|
-
).length ===
|
|
1057
|
+
).length === p.items.length : (h = l.value) == null ? void 0 : h.includes(p.value);
|
|
1058
1058
|
});
|
|
1059
1059
|
}
|
|
1060
|
-
),
|
|
1061
|
-
var
|
|
1062
|
-
const
|
|
1063
|
-
return h === 0 ?
|
|
1064
|
-
}), N = (
|
|
1065
|
-
const
|
|
1066
|
-
const { isDisabled: E, isPreSelected:
|
|
1067
|
-
return E &&
|
|
1068
|
-
}, h =
|
|
1060
|
+
), R = () => r.value && !e.searching ? i.value.length : e.items.length, $ = v(() => {
|
|
1061
|
+
var A;
|
|
1062
|
+
const g = o.value.length, p = R(), h = ((A = d.value) == null ? void 0 : A.length) || 0;
|
|
1063
|
+
return h === 0 ? c("selectAll", { total: g }) : h === p ? c("allSelected", { total: p }) : h <= p ? c("numberOfTotalSelected", { number: h, total: p }) : c("numbersSelected", { number: h });
|
|
1064
|
+
}), N = (g) => {
|
|
1065
|
+
const p = (A) => {
|
|
1066
|
+
const { isDisabled: E, isPreSelected: j } = y(A);
|
|
1067
|
+
return E && j || !E;
|
|
1068
|
+
}, h = g.filter(p).filter((A) => !l.value.includes(A.value));
|
|
1069
1069
|
t(b.SELECT, [...e.selectedValues, ...h]);
|
|
1070
|
-
},
|
|
1071
|
-
const
|
|
1072
|
-
const { isDisabled:
|
|
1073
|
-
return !(
|
|
1074
|
-
}, h =
|
|
1075
|
-
t(b.SELECT,
|
|
1070
|
+
}, m = (g) => {
|
|
1071
|
+
const p = (E) => {
|
|
1072
|
+
const { isDisabled: j, isPreSelected: xe } = y(E);
|
|
1073
|
+
return !(j && xe);
|
|
1074
|
+
}, h = g.filter(p).map(({ value: E }) => E), A = e.selectedValues.filter((E) => !(h != null && h.includes(E.value)));
|
|
1075
|
+
t(b.SELECT, A);
|
|
1076
1076
|
}, C = () => {
|
|
1077
|
-
N(
|
|
1077
|
+
N(i.value);
|
|
1078
1078
|
}, O = () => {
|
|
1079
|
-
|
|
1080
|
-
}, { isAllSelected:
|
|
1079
|
+
m(i.value);
|
|
1080
|
+
}, { isAllSelected: k, isIndeterminate: S, toggleSelectAll: I } = $e(
|
|
1081
1081
|
d,
|
|
1082
|
-
|
|
1082
|
+
o,
|
|
1083
1083
|
C,
|
|
1084
1084
|
O
|
|
1085
|
-
),
|
|
1086
|
-
N(
|
|
1087
|
-
},
|
|
1088
|
-
g
|
|
1089
|
-
}, be = (
|
|
1085
|
+
), V = (g) => {
|
|
1086
|
+
N(g.items);
|
|
1087
|
+
}, Q = (g) => {
|
|
1088
|
+
m(g.items);
|
|
1089
|
+
}, be = (g, p) => {
|
|
1090
1090
|
let h = !1;
|
|
1091
|
-
const
|
|
1092
|
-
h ||
|
|
1093
|
-
}, re =
|
|
1091
|
+
const A = e.selectedValues.filter(({ value: E }) => p.value === E ? (h = !0, !1) : !0);
|
|
1092
|
+
h || A.push(p), t(g, A);
|
|
1093
|
+
}, re = v(() => {
|
|
1094
1094
|
if (!r.value)
|
|
1095
1095
|
return e.selectedValues;
|
|
1096
|
-
const
|
|
1096
|
+
const g = (E) => l.value.includes(E.value), p = (E) => !e.staticCategories && E.every((j) => g(j));
|
|
1097
1097
|
return e.items.flatMap(
|
|
1098
|
-
(E) => E.items && !
|
|
1099
|
-
).filter((E) => E.items ? !0 :
|
|
1100
|
-
}), me =
|
|
1101
|
-
var h,
|
|
1102
|
-
const
|
|
1103
|
-
return
|
|
1104
|
-
}), P =
|
|
1105
|
-
() =>
|
|
1106
|
-
), Re =
|
|
1098
|
+
(E) => E.items && !p(E.items) ? E.items : E
|
|
1099
|
+
).filter((E) => E.items ? !0 : g(E));
|
|
1100
|
+
}), me = v(() => {
|
|
1101
|
+
var h, A, E, j;
|
|
1102
|
+
const g = ["automatic", "button"].includes(e.lazyLoadType), p = ((h = e.selectedValues) == null ? void 0 : h.length) > 0 && ((A = d.value) == null ? void 0 : A.length) !== ((E = i.value) == null ? void 0 : E.length);
|
|
1103
|
+
return g && e.hasMoreItems ? !!((j = e.selectedValues) != null && j.length) : p;
|
|
1104
|
+
}), P = v(() => ["automatic", "button"].includes(e.lazyLoadType) ? !e.hasMoreItems : !0), le = v(
|
|
1105
|
+
() => u.value ? [u.value] : []
|
|
1106
|
+
), Re = v(
|
|
1107
1107
|
() => {
|
|
1108
|
-
var
|
|
1109
|
-
return (
|
|
1108
|
+
var g, p;
|
|
1109
|
+
return (p = (g = n.value) == null ? void 0 : g.$children) != null && p.length ? n.value.$children : [];
|
|
1110
1110
|
}
|
|
1111
|
-
), De =
|
|
1111
|
+
), De = v(
|
|
1112
1112
|
() => {
|
|
1113
|
-
var
|
|
1114
|
-
return (
|
|
1113
|
+
var g, p;
|
|
1114
|
+
return (p = (g = s.value) == null ? void 0 : g.$children) != null && p.length ? s.value.$children : [];
|
|
1115
1115
|
}
|
|
1116
|
-
), Ne =
|
|
1116
|
+
), Ne = v(() => ({ label: $, value: k })), Me = v(() => [
|
|
1117
1117
|
Ne,
|
|
1118
1118
|
...re.value,
|
|
1119
|
-
...
|
|
1120
|
-
]), Pe = (
|
|
1119
|
+
...i.value
|
|
1120
|
+
]), Pe = (g) => {
|
|
1121
1121
|
[
|
|
1122
|
-
...
|
|
1122
|
+
...le.value,
|
|
1123
1123
|
...Re.value,
|
|
1124
1124
|
...De.value
|
|
1125
|
-
][
|
|
1125
|
+
][g].$el.focus();
|
|
1126
1126
|
}, { moveToNextElement: we, moveToPreviousElement: Ue, moveToFirstElement: Ve, moveToLastElement: Ge } = ke(
|
|
1127
1127
|
{
|
|
1128
1128
|
items: M(Me),
|
|
1129
1129
|
isOptionDisabled: e.isOptionDisabled,
|
|
1130
|
-
hasStaticCategories:
|
|
1130
|
+
hasStaticCategories: se(e, "staticCategories")
|
|
1131
1131
|
},
|
|
1132
1132
|
Pe
|
|
1133
1133
|
), ze = {
|
|
1134
|
-
[
|
|
1135
|
-
[
|
|
1136
|
-
[
|
|
1137
|
-
[
|
|
1134
|
+
[F.ARROW_UP]: (g) => Ue(g),
|
|
1135
|
+
[F.ARROW_DOWN]: (g) => we(g),
|
|
1136
|
+
[F.HOME]: Ve,
|
|
1137
|
+
[F.END]: Ge
|
|
1138
1138
|
};
|
|
1139
1139
|
return {
|
|
1140
1140
|
// Refs
|
|
1141
|
-
selectAllListboxItemsRef:
|
|
1142
|
-
selectedListboxItemsRef:
|
|
1141
|
+
selectAllListboxItemsRef: u,
|
|
1142
|
+
selectedListboxItemsRef: n,
|
|
1143
1143
|
listboxItemsRef: s,
|
|
1144
1144
|
// Values
|
|
1145
|
-
isAllSelected:
|
|
1145
|
+
isAllSelected: k,
|
|
1146
1146
|
showSelectedItems: me,
|
|
1147
1147
|
isIndeterminate: S,
|
|
1148
1148
|
isMultiLevelSelect: r,
|
|
1149
|
-
flattenedItemsList:
|
|
1150
|
-
selectedItemsList:
|
|
1151
|
-
selectAllCheckboxText:
|
|
1149
|
+
flattenedItemsList: i,
|
|
1150
|
+
selectedItemsList: l,
|
|
1151
|
+
selectAllCheckboxText: $,
|
|
1152
1152
|
selectedOptions: re,
|
|
1153
1153
|
showSelectAllCheckbox: P,
|
|
1154
|
-
slots:
|
|
1154
|
+
slots: a,
|
|
1155
1155
|
// Enums
|
|
1156
1156
|
BentoListboxEvent: b,
|
|
1157
1157
|
// Methods
|
|
1158
|
-
selectAllCategory:
|
|
1158
|
+
selectAllCategory: V,
|
|
1159
1159
|
toggleCheckboxSelection: be,
|
|
1160
|
-
toggleSelectAll:
|
|
1161
|
-
unselectAllCategory:
|
|
1160
|
+
toggleSelectAll: I,
|
|
1161
|
+
unselectAllCategory: Q,
|
|
1162
1162
|
// Events
|
|
1163
1163
|
listboxListeners: ze
|
|
1164
1164
|
};
|
|
1165
1165
|
}
|
|
1166
|
-
}),
|
|
1166
|
+
}), Pt = {
|
|
1167
1167
|
key: 1,
|
|
1168
1168
|
class: "b-listbox-multi-select__divider"
|
|
1169
|
-
},
|
|
1170
|
-
function
|
|
1171
|
-
const s = L("bento-checkbox"),
|
|
1172
|
-
return ae((
|
|
1173
|
-
e.showSelectAllCheckbox ? (
|
|
1169
|
+
}, wt = { key: 2 };
|
|
1170
|
+
function Ut(e, t, a, c, u, n) {
|
|
1171
|
+
const s = L("bento-checkbox"), l = L("bento-typography"), r = L("bento-listbox-option"), i = L("listbox-multi-select-chips"), y = L("listbox-multi-select-options"), o = pe("bento-keyboard-navigation-directive");
|
|
1172
|
+
return ae((f(), _("div", U({ class: "b-listbox-multi-select" }, te(e.listboxListeners, !0)), [
|
|
1173
|
+
e.showSelectAllCheckbox ? (f(), D(r, {
|
|
1174
1174
|
key: 0,
|
|
1175
1175
|
ref: "selectAllListboxItemsRef",
|
|
1176
1176
|
class: "b-listbox-multi-select__option"
|
|
1177
1177
|
}, {
|
|
1178
|
-
default:
|
|
1179
|
-
|
|
1178
|
+
default: T(() => [
|
|
1179
|
+
B(s, {
|
|
1180
1180
|
"aria-label": e.selectAllCheckboxText,
|
|
1181
1181
|
"model-value": e.isAllSelected,
|
|
1182
1182
|
indeterminate: e.isIndeterminate,
|
|
1183
1183
|
"onUpdate:modelValue": e.toggleSelectAll
|
|
1184
1184
|
}, null, 8, ["aria-label", "model-value", "indeterminate", "onUpdate:modelValue"]),
|
|
1185
|
-
|
|
1185
|
+
B(l, {
|
|
1186
1186
|
el: "span",
|
|
1187
1187
|
"aria-hidden": "true"
|
|
1188
1188
|
}, {
|
|
1189
|
-
default:
|
|
1190
|
-
|
|
1189
|
+
default: T(() => [
|
|
1190
|
+
G(w(e.selectAllCheckboxText), 1)
|
|
1191
1191
|
]),
|
|
1192
1192
|
_: 1
|
|
1193
1193
|
})
|
|
1194
1194
|
]),
|
|
1195
1195
|
_: 1
|
|
1196
|
-
}, 512)) :
|
|
1197
|
-
e.showSelectAllCheckbox ? (
|
|
1198
|
-
e.showSelectedItems ? (
|
|
1199
|
-
|
|
1196
|
+
}, 512)) : Y("", !0),
|
|
1197
|
+
e.showSelectAllCheckbox ? (f(), _("hr", Pt)) : Y("", !0),
|
|
1198
|
+
e.showSelectedItems ? (f(), _("div", wt, [
|
|
1199
|
+
B(i, {
|
|
1200
1200
|
ref: "selectedListboxItemsRef",
|
|
1201
1201
|
items: e.selectedOptions,
|
|
1202
1202
|
"is-option-disabled": e.isOptionDisabled,
|
|
1203
1203
|
onUnselectCategory: e.unselectAllCategory,
|
|
1204
1204
|
onUnselectItem: t[0] || (t[0] = (d) => e.toggleCheckboxSelection(e.BentoListboxEvent.SELECT, d))
|
|
1205
1205
|
}, null, 8, ["items", "is-option-disabled", "onUnselectCategory"]),
|
|
1206
|
-
|
|
1207
|
-
])) :
|
|
1208
|
-
|
|
1206
|
+
t[5] || (t[5] = K("hr", { class: "b-listbox-multi-select__divider" }, null, -1))
|
|
1207
|
+
])) : Y("", !0),
|
|
1208
|
+
B(y, {
|
|
1209
1209
|
ref: "listboxItemsRef",
|
|
1210
1210
|
items: e.items,
|
|
1211
1211
|
"is-option-disabled": e.isOptionDisabled,
|
|
@@ -1220,34 +1220,34 @@ function Ft(e, t, n, u, c, a) {
|
|
|
1220
1220
|
onTabPressed: t[3] || (t[3] = (d) => e.toggleCheckboxSelection(e.BentoListboxEvent.TAB, d)),
|
|
1221
1221
|
onEnterPressed: t[4] || (t[4] = (d) => e.toggleCheckboxSelection(e.BentoListboxEvent.ENTER, d))
|
|
1222
1222
|
}, ie({ _: 2 }, [
|
|
1223
|
-
|
|
1224
|
-
name:
|
|
1225
|
-
fn:
|
|
1226
|
-
|
|
1223
|
+
x(e.slots, (d, R) => ({
|
|
1224
|
+
name: R,
|
|
1225
|
+
fn: T(($) => [
|
|
1226
|
+
z(e.$slots, R, ee(ne($)), void 0, !0)
|
|
1227
1227
|
])
|
|
1228
1228
|
}))
|
|
1229
1229
|
]), 1032, ["items", "is-option-disabled", "is-multi-level", "static-categories", "searching", "selected-items-list", "onSelectCategory", "onUnselectCategory"])
|
|
1230
1230
|
], 16)), [
|
|
1231
|
-
[
|
|
1231
|
+
[o]
|
|
1232
1232
|
]);
|
|
1233
1233
|
}
|
|
1234
|
-
const
|
|
1234
|
+
const Te = /* @__PURE__ */ q(Mt, [["render", Ut], ["__scopeId", "data-v-282f5857"]]), _e = {
|
|
1235
1235
|
"en-US": {
|
|
1236
1236
|
showMore: "Show more",
|
|
1237
1237
|
loading: "Loading"
|
|
1238
1238
|
}
|
|
1239
|
-
},
|
|
1239
|
+
}, Vt = 36, Gt = W({
|
|
1240
1240
|
name: "bento-listbox",
|
|
1241
1241
|
components: {
|
|
1242
|
-
BentoEmptyState:
|
|
1243
|
-
BentoListboxSingleSelect:
|
|
1244
|
-
BentoListboxMultiSelect:
|
|
1245
|
-
BentoTypography:
|
|
1246
|
-
BentoLoadingIndicator:
|
|
1247
|
-
BentoLoadingButton:
|
|
1242
|
+
BentoEmptyState: We,
|
|
1243
|
+
BentoListboxSingleSelect: St,
|
|
1244
|
+
BentoListboxMultiSelect: Te,
|
|
1245
|
+
BentoTypography: J,
|
|
1246
|
+
BentoLoadingIndicator: qe,
|
|
1247
|
+
BentoLoadingButton: Qe
|
|
1248
1248
|
},
|
|
1249
1249
|
directives: { BentoKeyboardNavigationDirective: Se },
|
|
1250
|
-
i18n: { messages:
|
|
1250
|
+
i18n: { messages: _e },
|
|
1251
1251
|
props: {
|
|
1252
1252
|
/**
|
|
1253
1253
|
* Defines a string value that labels an interactive element.
|
|
@@ -1303,8 +1303,8 @@ const _e = /* @__PURE__ */ W(wt, [["render", Ft], ["__scopeId", "data-v-282f5857
|
|
|
1303
1303
|
*/
|
|
1304
1304
|
lazyLoadType: {
|
|
1305
1305
|
type: String,
|
|
1306
|
-
default:
|
|
1307
|
-
validator: (e) => Object.values(
|
|
1306
|
+
default: X.NONE,
|
|
1307
|
+
validator: (e) => Object.values(X).includes(e)
|
|
1308
1308
|
},
|
|
1309
1309
|
/**
|
|
1310
1310
|
* If enabled, the user will be able to select multiple items.
|
|
@@ -1324,7 +1324,7 @@ const _e = /* @__PURE__ */ W(wt, [["render", Ft], ["__scopeId", "data-v-282f5857
|
|
|
1324
1324
|
*
|
|
1325
1325
|
* If enabled, hides the "Select all" checkbox in "multiple" mode.
|
|
1326
1326
|
*/
|
|
1327
|
-
searching:
|
|
1327
|
+
searching: Te.props.searching,
|
|
1328
1328
|
/**
|
|
1329
1329
|
* The `input` value.
|
|
1330
1330
|
* Providing an empty string or empty array will select no options.
|
|
@@ -1351,46 +1351,46 @@ const _e = /* @__PURE__ */ W(wt, [["render", Ft], ["__scopeId", "data-v-282f5857
|
|
|
1351
1351
|
b.ESCAPE,
|
|
1352
1352
|
b.TAB
|
|
1353
1353
|
],
|
|
1354
|
-
setup(e, { emit: t, slots:
|
|
1355
|
-
const
|
|
1354
|
+
setup(e, { emit: t, slots: a }) {
|
|
1355
|
+
const c = M([]), u = se(e, "items"), { t: n } = ue({ messages: _e }), s = v(() => e.lazyLoadType !== X.AUTOMATIC), l = v(() => e.lazyLoadType === X.AUTOMATIC), r = () => {
|
|
1356
1356
|
var P;
|
|
1357
|
-
return typeof (e == null ? void 0 : e.virtualScroll) == "object" && ((P = e == null ? void 0 : e.virtualScroll) != null && P.itemHeight) ? e.virtualScroll.itemHeight :
|
|
1357
|
+
return typeof (e == null ? void 0 : e.virtualScroll) == "object" && ((P = e == null ? void 0 : e.virtualScroll) != null && P.itemHeight) ? e.virtualScroll.itemHeight : Vt;
|
|
1358
1358
|
}, {
|
|
1359
|
-
containerRef:
|
|
1360
|
-
containerProps:
|
|
1361
|
-
onScroll:
|
|
1359
|
+
containerRef: i,
|
|
1360
|
+
containerProps: y,
|
|
1361
|
+
onScroll: o,
|
|
1362
1362
|
list: d,
|
|
1363
|
-
wrapperProps:
|
|
1364
|
-
} =
|
|
1363
|
+
wrapperProps: R
|
|
1364
|
+
} = tt(u, {
|
|
1365
1365
|
itemHeight: r(),
|
|
1366
1366
|
// Disable virtual scrolling if not enabled or if lazy loading is enabled or if multi-select
|
|
1367
1367
|
disabled: (e == null ? void 0 : e.multiple) || (e == null ? void 0 : e.virtualScroll) === !1 || (e == null ? void 0 : e.lazyLoadType) !== "none"
|
|
1368
|
-
}),
|
|
1368
|
+
}), $ = v(
|
|
1369
1369
|
() => s.value ? "true" : void 0
|
|
1370
|
-
), N =
|
|
1370
|
+
), N = v(
|
|
1371
1371
|
() => s.value && e.loading ? "true" : "false"
|
|
1372
|
-
),
|
|
1372
|
+
), m = v(
|
|
1373
1373
|
() => s.value ? "polite" : void 0
|
|
1374
|
-
), C = (P) => (
|
|
1375
|
-
t(P,
|
|
1374
|
+
), C = (P) => (le) => {
|
|
1375
|
+
t(P, le);
|
|
1376
1376
|
}, O = () => {
|
|
1377
1377
|
t(b.SHOW_MORE);
|
|
1378
|
-
},
|
|
1379
|
-
const P =
|
|
1378
|
+
}, k = je(() => {
|
|
1379
|
+
const P = i.value;
|
|
1380
1380
|
if (!P)
|
|
1381
1381
|
return;
|
|
1382
|
-
const
|
|
1383
|
-
e.hasMoreItems &&
|
|
1382
|
+
const le = Math.round(P.scrollTop) + P.clientHeight >= P.scrollHeight;
|
|
1383
|
+
e.hasMoreItems && le && !e.loading && O();
|
|
1384
1384
|
}), S = () => {
|
|
1385
|
-
|
|
1386
|
-
},
|
|
1385
|
+
l.value ? k() : o();
|
|
1386
|
+
}, I = v(() => {
|
|
1387
1387
|
var P;
|
|
1388
1388
|
return ((P = e.items) == null ? void 0 : P.length) === 0;
|
|
1389
|
-
}),
|
|
1390
|
-
() => e.lazyLoadType ===
|
|
1391
|
-
),
|
|
1389
|
+
}), V = v(
|
|
1390
|
+
() => e.lazyLoadType === X.BUTTON && e.hasMoreItems
|
|
1391
|
+
), Q = v(
|
|
1392
1392
|
() => e.loading ? he.LOADING : he.START
|
|
1393
|
-
), be =
|
|
1393
|
+
), be = v(() => e.loading ? n("loading") : n("showMore")), re = v(() => ({
|
|
1394
1394
|
...e.emptyState,
|
|
1395
1395
|
variant: "condensed"
|
|
1396
1396
|
})), me = {
|
|
@@ -1401,24 +1401,24 @@ const _e = /* @__PURE__ */ W(wt, [["render", Ft], ["__scopeId", "data-v-282f5857
|
|
|
1401
1401
|
};
|
|
1402
1402
|
return {
|
|
1403
1403
|
// Refs
|
|
1404
|
-
listboxRef:
|
|
1405
|
-
listboxItemRef:
|
|
1404
|
+
listboxRef: i,
|
|
1405
|
+
listboxItemRef: c,
|
|
1406
1406
|
// a11y
|
|
1407
|
-
ariaAtomic:
|
|
1407
|
+
ariaAtomic: $,
|
|
1408
1408
|
ariaBusy: N,
|
|
1409
|
-
ariaLive:
|
|
1409
|
+
ariaLive: m,
|
|
1410
1410
|
// Values
|
|
1411
|
-
containerProps:
|
|
1412
|
-
isSearchResultEmpty:
|
|
1411
|
+
containerProps: y,
|
|
1412
|
+
isSearchResultEmpty: I,
|
|
1413
1413
|
limitedEmptyStateProps: re,
|
|
1414
|
-
loadingButtonState:
|
|
1415
|
-
slots:
|
|
1416
|
-
shouldDisplayShowMoreButton:
|
|
1414
|
+
loadingButtonState: Q,
|
|
1415
|
+
slots: a,
|
|
1416
|
+
shouldDisplayShowMoreButton: V,
|
|
1417
1417
|
showMoreButtonText: be,
|
|
1418
1418
|
virtualisedItems: d,
|
|
1419
|
-
wrapperProps:
|
|
1419
|
+
wrapperProps: R,
|
|
1420
1420
|
// Enums
|
|
1421
|
-
BentoKeyboardNavigationKeyDownEvent:
|
|
1421
|
+
BentoKeyboardNavigationKeyDownEvent: F,
|
|
1422
1422
|
BentoListboxEvent: b,
|
|
1423
1423
|
// Methods
|
|
1424
1424
|
onListboxContainerScroll: S,
|
|
@@ -1427,19 +1427,22 @@ const _e = /* @__PURE__ */ W(wt, [["render", Ft], ["__scopeId", "data-v-282f5857
|
|
|
1427
1427
|
listboxListeners: me
|
|
1428
1428
|
};
|
|
1429
1429
|
}
|
|
1430
|
-
}),
|
|
1430
|
+
}), zt = ["id", "aria-busy", "aria-atomic", "aria-label", "aria-live"], xt = {
|
|
1431
1431
|
key: 0,
|
|
1432
1432
|
class: "b-listbox__empty-search-message"
|
|
1433
|
-
},
|
|
1433
|
+
}, Ft = {
|
|
1434
1434
|
key: 2,
|
|
1435
1435
|
class: "b-listbox__lazy-load"
|
|
1436
|
-
},
|
|
1436
|
+
}, Yt = {
|
|
1437
1437
|
key: 3,
|
|
1438
1438
|
class: "b-listbox__lazy-load"
|
|
1439
1439
|
};
|
|
1440
|
-
function
|
|
1441
|
-
|
|
1442
|
-
|
|
1440
|
+
function Kt(e, t, a, c, u, n) {
|
|
1441
|
+
var R;
|
|
1442
|
+
const s = L("bento-empty-state"), l = L("bento-typography"), r = L("bento-listbox-multi-select"), i = L("bento-listbox-single-select"), y = L("bento-loading-button"), o = L("bento-loading-indicator"), d = pe("bento-keyboard-navigation-directive");
|
|
1443
|
+
return ae((f(), _("div", {
|
|
1444
|
+
id: e.id,
|
|
1445
|
+
ref: "listboxRef",
|
|
1443
1446
|
class: "b-listbox",
|
|
1444
1447
|
role: "listbox",
|
|
1445
1448
|
tabindex: "-1",
|
|
@@ -1447,21 +1450,22 @@ function Ht(e, t, n, u, c, a) {
|
|
|
1447
1450
|
"aria-atomic": e.ariaAtomic,
|
|
1448
1451
|
"aria-label": e.ariaLabel,
|
|
1449
1452
|
"aria-live": e.ariaLive,
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1453
|
+
style: Ke((R = e.containerProps) == null ? void 0 : R.style),
|
|
1454
|
+
onScroll: t[0] || (t[0] = (...$) => e.onListboxContainerScroll && e.onListboxContainerScroll(...$))
|
|
1455
|
+
}, [
|
|
1456
|
+
K("div", ee(ne(e.wrapperProps)), [
|
|
1457
|
+
e.isSearchResultEmpty ? (f(), _("div", xt, [
|
|
1458
|
+
e.emptyState ? (f(), D(s, ee(U({ key: 0 }, e.limitedEmptyStateProps)), null, 16)) : (f(), D(l, {
|
|
1455
1459
|
key: 1,
|
|
1456
1460
|
el: "span"
|
|
1457
1461
|
}, {
|
|
1458
|
-
default:
|
|
1459
|
-
|
|
1462
|
+
default: T(() => [
|
|
1463
|
+
G(w(e.noResultsMessage), 1)
|
|
1460
1464
|
]),
|
|
1461
1465
|
_: 1
|
|
1462
1466
|
}))
|
|
1463
|
-
])) : (
|
|
1464
|
-
e.multiple ? (
|
|
1467
|
+
])) : (f(), _(Z, { key: 1 }, [
|
|
1468
|
+
e.multiple ? (f(), D(r, U({
|
|
1465
1469
|
key: 0,
|
|
1466
1470
|
ref: "listboxItemRef",
|
|
1467
1471
|
"has-more-items": e.hasMoreItems,
|
|
@@ -1471,99 +1475,99 @@ function Ht(e, t, n, u, c, a) {
|
|
|
1471
1475
|
"selected-values": e.selectedValue,
|
|
1472
1476
|
searching: e.searching,
|
|
1473
1477
|
"is-option-disabled": e.isOptionDisabled
|
|
1474
|
-
},
|
|
1475
|
-
|
|
1476
|
-
name:
|
|
1477
|
-
fn:
|
|
1478
|
-
|
|
1478
|
+
}, te(e.listboxListeners)), ie({ _: 2 }, [
|
|
1479
|
+
x(e.slots, ($, N) => ({
|
|
1480
|
+
name: N,
|
|
1481
|
+
fn: T((m) => [
|
|
1482
|
+
z(e.$slots, N, ee(ne(m)), void 0, !0)
|
|
1479
1483
|
])
|
|
1480
1484
|
}))
|
|
1481
|
-
]), 1040, ["has-more-items", "items", "lazy-load-type", "static-categories", "selected-values", "searching", "is-option-disabled"])) : (
|
|
1485
|
+
]), 1040, ["has-more-items", "items", "lazy-load-type", "static-categories", "selected-values", "searching", "is-option-disabled"])) : (f(), D(i, U({
|
|
1482
1486
|
key: 1,
|
|
1483
1487
|
ref: "listboxItemRef",
|
|
1484
1488
|
items: e.virtualisedItems,
|
|
1485
1489
|
"selected-value": e.selectedValue,
|
|
1486
1490
|
"static-categories": e.staticCategories,
|
|
1487
1491
|
"is-option-disabled": e.isOptionDisabled
|
|
1488
|
-
},
|
|
1489
|
-
|
|
1490
|
-
name:
|
|
1491
|
-
fn:
|
|
1492
|
-
|
|
1492
|
+
}, te(e.listboxListeners)), ie({ _: 2 }, [
|
|
1493
|
+
x(e.slots, ($, N) => ({
|
|
1494
|
+
name: N,
|
|
1495
|
+
fn: T((m) => [
|
|
1496
|
+
z(e.$slots, N, ee(ne(m)), void 0, !0)
|
|
1493
1497
|
])
|
|
1494
1498
|
}))
|
|
1495
1499
|
]), 1040, ["items", "selected-value", "static-categories", "is-option-disabled"])),
|
|
1496
|
-
e.shouldDisplayShowMoreButton ? (
|
|
1497
|
-
|
|
1500
|
+
e.shouldDisplayShowMoreButton ? (f(), _("div", Ft, [
|
|
1501
|
+
B(y, {
|
|
1498
1502
|
state: e.loadingButtonState,
|
|
1499
1503
|
variant: "secondary",
|
|
1500
1504
|
onClickCapture: e.emitShowMore
|
|
1501
1505
|
}, {
|
|
1502
|
-
default:
|
|
1503
|
-
|
|
1506
|
+
default: T(() => [
|
|
1507
|
+
G(w(e.showMoreButtonText), 1)
|
|
1504
1508
|
]),
|
|
1505
1509
|
_: 1
|
|
1506
1510
|
}, 8, ["state", "onClickCapture"])
|
|
1507
|
-
])) : e.loading ? (
|
|
1508
|
-
|
|
1509
|
-
])) :
|
|
1511
|
+
])) : e.loading ? (f(), _("div", Yt, [
|
|
1512
|
+
B(o)
|
|
1513
|
+
])) : Y("", !0)
|
|
1510
1514
|
], 64))
|
|
1511
1515
|
], 16)
|
|
1512
|
-
],
|
|
1516
|
+
], 44, zt)), [
|
|
1513
1517
|
[d]
|
|
1514
1518
|
]);
|
|
1515
1519
|
}
|
|
1516
|
-
const
|
|
1517
|
-
for (const
|
|
1518
|
-
if (
|
|
1519
|
-
return
|
|
1520
|
-
if (
|
|
1521
|
-
return
|
|
1520
|
+
const is = /* @__PURE__ */ q(Gt, [["render", Kt], ["__scopeId", "data-v-c6bccc42"]]), ye = (e, t) => {
|
|
1521
|
+
for (const a of e) {
|
|
1522
|
+
if (a.value === t)
|
|
1523
|
+
return a.label;
|
|
1524
|
+
if (a.items)
|
|
1525
|
+
return ye(a.items, t);
|
|
1522
1526
|
}
|
|
1523
1527
|
return null;
|
|
1524
|
-
},
|
|
1525
|
-
const
|
|
1526
|
-
|
|
1528
|
+
}, as = (e, t, a) => {
|
|
1529
|
+
const c = M([]), u = M(), n = (r) => {
|
|
1530
|
+
u.value = a.value ? r.map(({ value: i }) => i) : r[0].value;
|
|
1527
1531
|
}, s = (r) => {
|
|
1528
|
-
|
|
1529
|
-
},
|
|
1530
|
-
|
|
1532
|
+
c.value = r, n(r);
|
|
1533
|
+
}, l = () => {
|
|
1534
|
+
c.value = [], u.value = null;
|
|
1531
1535
|
};
|
|
1532
1536
|
return Ie(
|
|
1533
1537
|
() => t.value,
|
|
1534
1538
|
() => {
|
|
1535
1539
|
if (!t.value) {
|
|
1536
|
-
|
|
1540
|
+
l();
|
|
1537
1541
|
return;
|
|
1538
1542
|
}
|
|
1539
|
-
const r = !Array.isArray(t.value),
|
|
1540
|
-
|
|
1541
|
-
const
|
|
1542
|
-
let d =
|
|
1543
|
-
d || (d =
|
|
1543
|
+
const r = !Array.isArray(t.value), i = [...c.value];
|
|
1544
|
+
l();
|
|
1545
|
+
const y = (o) => {
|
|
1546
|
+
let d = ye(e.value, o);
|
|
1547
|
+
d || (d = ye(i, o)), d || (d = o.toString()), c.value.push({ value: o, label: d });
|
|
1544
1548
|
};
|
|
1545
1549
|
if (r) {
|
|
1546
|
-
const
|
|
1547
|
-
|
|
1550
|
+
const o = t.value;
|
|
1551
|
+
y(o), n(c.value);
|
|
1548
1552
|
return;
|
|
1549
1553
|
}
|
|
1550
|
-
t.value.forEach(
|
|
1554
|
+
t.value.forEach(y), n(c.value);
|
|
1551
1555
|
},
|
|
1552
1556
|
{ immediate: !0 }
|
|
1553
1557
|
), {
|
|
1554
1558
|
// Values
|
|
1555
|
-
cachedSelectedListboxOptions:
|
|
1556
|
-
cachedListboxSelectedValues:
|
|
1559
|
+
cachedSelectedListboxOptions: c,
|
|
1560
|
+
cachedListboxSelectedValues: u,
|
|
1557
1561
|
// Methods
|
|
1558
|
-
resetCache:
|
|
1562
|
+
resetCache: l,
|
|
1559
1563
|
setCachedValues: s
|
|
1560
1564
|
};
|
|
1561
1565
|
};
|
|
1562
1566
|
export {
|
|
1563
|
-
|
|
1567
|
+
X as B,
|
|
1564
1568
|
b as a,
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1569
|
+
is as b,
|
|
1570
|
+
as as c,
|
|
1571
|
+
Nt as u
|
|
1568
1572
|
};
|
|
1569
|
-
//# sourceMappingURL=use-cached-selected-values.
|
|
1573
|
+
//# sourceMappingURL=use-cached-selected-values.DaSn9dB9.js.map
|