@adyen/bento-vue3 1.3.0 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/@types/components.d.ts +8 -4
- package/dist/@types/packages/core/src/components/button/button.types.d.ts +8 -0
- package/dist/@types/packages/vue2/src/components/accordion/accordion.keys.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/accordion/accordion.types.d.ts +1 -24
- package/dist/@types/packages/vue2/src/components/accordion/accordion.vue.d.ts +17 -57
- package/dist/@types/packages/vue2/src/components/accordion/components/accordion-item.vue.d.ts +27 -29
- package/dist/@types/packages/vue2/src/components/accordion/index.d.ts +2 -3
- package/dist/@types/packages/vue2/src/components/alert/alert.vue.d.ts +0 -4
- package/dist/@types/packages/vue2/src/components/avatar-image/avatar-image.vue.d.ts +1 -4
- package/dist/@types/packages/vue2/src/components/button/button.vue.d.ts +136 -128
- package/dist/@types/packages/vue2/src/components/button/components/button-actions/button-actions.types.d.ts +3 -5
- package/dist/@types/packages/vue2/src/components/button/components/button-actions/button-actions.vue.d.ts +3 -3
- package/dist/@types/packages/vue2/src/components/button/components/loading-button/loading-button.vue.d.ts +2 -2
- package/dist/@types/packages/vue2/src/components/card/card.vue.d.ts +46 -15
- package/dist/@types/packages/vue2/src/components/checkbox/checkbox.types.d.ts +2 -1
- package/dist/@types/packages/vue2/src/components/checkbox/checkbox.vue.d.ts +6 -7
- package/dist/@types/packages/vue2/src/components/checkbox/components/checkbox-group/checkbox-group.vue.d.ts +4 -3
- package/dist/@types/packages/vue2/src/components/code-snippet/code-snippet.types.d.ts +2 -1
- package/dist/@types/packages/vue2/src/components/code-snippet/code-snippet.vue.d.ts +37 -11
- package/dist/@types/packages/vue2/src/components/country/country.vue.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/currency/currency.vue.d.ts +0 -3
- package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-columns/data-grid-columns.vue.d.ts +3 -22
- 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 +0 -5
- package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-config-settings/data-grid-config-settings.vue.d.ts +0 -24
- package/dist/@types/packages/vue2/src/components/data-grid/data-grid.types.d.ts +2 -0
- package/dist/@types/packages/vue2/src/components/data-grid/data-grid.vue.d.ts +277 -16
- package/dist/@types/packages/vue2/src/components/date/date.vue.d.ts +2 -5
- package/dist/@types/packages/vue2/src/components/date-picker/date-picker.vue.d.ts +0 -20
- package/dist/@types/packages/vue2/src/components/date-range-picker/components/date-range-picker-calendar/date-range-picker-calendar.vue.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/date-range-picker/date-range-picker.vue.d.ts +0 -20
- package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-base-textbox/dropdown-base-textbox.vue.d.ts +3 -6
- package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-default-textbox/dropdown-default-textbox.vue.d.ts +3 -3
- package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-options-container/dropdown-options-container.vue.d.ts +164 -104
- package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-small-textbox/dropdown-small-textbox.vue.d.ts +2 -2
- package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-country/dropdown-country.types.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-country/dropdown-country.vue.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-currency/dropdown-currency.types.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-payment-method/dropdown-payment-method.types.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-tag/dropdown-tag.types.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/dropdown/dropdown.vue.d.ts +7 -9
- package/dist/@types/packages/vue2/src/components/empty-state/empty-state.types.d.ts +27 -0
- package/dist/@types/packages/vue2/src/components/empty-state/empty-state.vue.d.ts +76 -0
- package/dist/@types/packages/vue2/src/components/empty-state/index.d.ts +2 -0
- package/dist/@types/packages/vue2/src/components/filter-bar/components/all-filters-modal/all-filters-modal.vue.d.ts +19 -25
- 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 +1 -1
- package/dist/@types/packages/vue2/src/components/filter-bar/components/base-filter/base-filter.vue.d.ts +1 -27
- package/dist/@types/packages/vue2/src/components/filter-bar/components/base-filter-button/base-filter-button.vue.d.ts +1 -4
- package/dist/@types/packages/vue2/src/components/filter-bar/components/date-filter/date-filter.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/filter-bar/components/date-range-filter/date-range-filter.vue.d.ts +1 -11
- package/dist/@types/packages/vue2/src/components/filter-bar/components/filter-bar-button/filter-bar-button.vue.d.ts +53 -0
- package/dist/@types/packages/vue2/src/components/filter-bar/components/filter-bar-button/index.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/filter-bar/components/input-filter/input-filter.vue.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/filter-bar/components/range-filter/range-filter.vue.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/select-filter.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/variants/select-country-filter/select-country-filter.vue.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/variants/select-tag-filter/select-tag-filter.vue.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/filter-bar/filter-bar.vue.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/focus-trap/focus-trap.vue.d.ts +7 -0
- package/dist/@types/packages/vue2/src/components/header/header.vue.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/image/const.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/image/image.types.d.ts +19 -0
- package/dist/@types/packages/vue2/src/components/image/image.vue.d.ts +50 -0
- package/dist/@types/packages/vue2/src/components/image/index.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/info-icon/info-icon.vue.d.ts +3 -3
- package/dist/@types/packages/vue2/src/components/input-field/input-field.types.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/input-field/input-field.vue.d.ts +61 -58
- package/dist/@types/packages/vue2/src/components/internal/avatar/avatar.vue.d.ts +0 -3
- package/dist/@types/packages/vue2/src/components/internal/base-button/base-button.vue.d.ts +1 -4
- package/dist/@types/packages/vue2/src/components/internal/calendar/components/calendar-month/calendar-month.vue.d.ts +0 -5
- package/dist/@types/packages/vue2/src/components/internal/calendar/components/calendar-month/components/calendar-month-day/calendar-month-day.vue.d.ts +2 -2
- package/dist/@types/packages/vue2/src/components/internal/copy/copy.vue.d.ts +0 -2
- 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 +0 -2
- 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 +0 -2
- package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-multi-select/listbox-multi-select.vue.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-option-tag/listbox-option-tag.vue.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-single-select-option/listbox-single-select-option.vue.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/internal/listbox/listbox.vue.d.ts +3 -7
- package/dist/@types/packages/vue2/src/components/link/link.vue.d.ts +4 -0
- package/dist/@types/packages/vue2/src/components/menu/components/menu-item/menu-item.vue.d.ts +2 -5
- package/dist/@types/packages/vue2/src/components/menu/menu.vue.d.ts +6 -31
- package/dist/@types/packages/vue2/src/components/modal/components/base-modal/__mocks__/base-modal.vue.d.ts +0 -5
- package/dist/@types/packages/vue2/src/components/modal/components/base-modal/base-modal.vue.d.ts +14 -9
- package/dist/@types/packages/vue2/src/components/modal/components/modal-default/modal-default.vue.d.ts +2 -2
- package/dist/@types/packages/vue2/src/components/modal/components/modal-dialog/modal-dialog.vue.d.ts +4 -14
- package/dist/@types/packages/vue2/src/components/modal/modal.vue.d.ts +7 -6
- package/dist/@types/packages/vue2/src/components/pagination/components/pagination-context/pagination-context.vue.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/pagination/components/pagination-controls/pagination-controls.vue.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/pagination/components/pagination-results-per-page/pagination-results-per-page.vue.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/pagination/pagination.vue.d.ts +2 -1
- package/dist/@types/packages/vue2/src/components/payment-method/payment-method.vue.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/popover/components/popover-dismiss-button/popover-dismiss-button.vue.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/popover/components/popover-title/popover-title.vue.d.ts +1 -2
- package/dist/@types/packages/vue2/src/components/popover/popover.vue.d.ts +9 -9
- package/dist/@types/packages/vue2/src/components/popper-container/popper-container.vue.d.ts +5 -14
- package/dist/@types/packages/vue2/src/components/radio-group/components/radio-button/radio-button.vue.d.ts +4 -6
- package/dist/@types/packages/vue2/src/components/radio-group/radio-group.types.d.ts +2 -1
- package/dist/@types/packages/vue2/src/components/radio-group/radio-group.vue.d.ts +4 -3
- package/dist/@types/packages/vue2/src/components/search-bar/search-bar.vue.d.ts +19 -390
- package/dist/@types/packages/vue2/src/components/segmented-control/components/segmented-control-button/segmented-control-button.vue.d.ts +0 -3
- package/dist/@types/packages/vue2/src/components/segmented-control/segmented-control.vue.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/sidepanel/sidepanel.types.d.ts +3 -1
- package/dist/@types/packages/vue2/src/components/status/status.vue.d.ts +2 -5
- package/dist/@types/packages/vue2/src/components/structured-list/components/structered-list-item/structured-list-item.vue.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item/summary-grid-item.vue.d.ts +2 -23
- package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item-amount/summary-grid-item-amount.vue.d.ts +2 -5
- package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item-numeric/summary-grid-item-numeric.vue.d.ts +2 -5
- package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item-percentage/summary-grid-item-percentage.vue.d.ts +2 -5
- package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item-text/summary-grid-item-text.vue.d.ts +1 -4
- package/dist/@types/packages/vue2/src/components/tabs/components/tab.types.d.ts +3 -1
- package/dist/@types/packages/vue2/src/components/tabs/components/tab.vue.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/tabs/tabs.keys.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/tabs/tabs.types.d.ts +6 -2
- package/dist/@types/packages/vue2/src/components/tabs/tabs.vue.d.ts +4 -9
- package/dist/@types/packages/vue2/src/components/tag/tag.vue.d.ts +6 -9
- package/dist/@types/packages/vue2/src/components/textarea/textarea.vue.d.ts +6 -10
- package/dist/@types/packages/vue2/src/components/timeline/components/timeline-item/timeline-item.vue.d.ts +4 -10
- package/dist/@types/packages/vue2/src/components/timeline/timeline.types.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/toast/components/toast-item/toast-item.vue.d.ts +0 -5
- package/dist/@types/packages/vue2/src/components/toggle/toggle.vue.d.ts +4 -6
- package/dist/@types/packages/vue2/src/components/tooltip/tooltip.vue.d.ts +24 -40
- package/dist/@types/packages/vue2/src/composables/use-default-slot-validator/use-default-slot-validator.d.ts +2 -1
- package/dist/@types/packages/vue2/src/composables/use-has-slot/use-has-slot.d.ts +8 -1
- package/dist/@types/packages/vue2/src/index.d.ts +3 -0
- package/dist/@types/packages/vue2/src/templates/data-grid-template/data-grid-template.vue.d.ts +9 -0
- 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/print-development-warning.d.ts +1 -0
- package/dist/accordion.js +104 -254
- package/dist/accordion.js.map +1 -1
- package/dist/alert.js +61 -64
- package/dist/alert.js.map +1 -1
- package/dist/assets/base-button.css +1 -1
- package/dist/assets/base-modal.css +1 -0
- package/dist/assets/button.css +1 -1
- package/dist/assets/calendar.css +1 -1
- package/dist/assets/checkbox.css +1 -1
- package/dist/assets/chevron-up.css +1 -0
- package/dist/assets/controls-group.css +1 -1
- package/dist/assets/copy.css +1 -1
- package/dist/assets/dropdown-default-textbox.css +1 -1
- package/dist/assets/dropdown.css +1 -1
- package/dist/assets/error-message.css +1 -1
- package/dist/assets/footer-actions.css +1 -1
- package/dist/assets/index.css +1 -1
- package/dist/assets/index10.css +1 -1
- package/dist/assets/index11.css +1 -1
- package/dist/assets/index12.css +1 -1
- package/dist/assets/index13.css +1 -1
- package/dist/assets/index14.css +1 -1
- package/dist/assets/index15.css +1 -1
- package/dist/assets/index16.css +1 -1
- package/dist/assets/index17.css +1 -1
- package/dist/assets/index18.css +1 -1
- package/dist/assets/index19.css +1 -1
- package/dist/assets/index2.css +1 -1
- package/dist/assets/index20.css +1 -1
- package/dist/assets/index21.css +1 -1
- package/dist/assets/index22.css +1 -1
- package/dist/assets/index24.css +1 -1
- package/dist/assets/index25.css +1 -1
- package/dist/assets/index26.css +1 -1
- package/dist/assets/index27.css +1 -1
- package/dist/assets/index28.css +1 -1
- package/dist/assets/index29.css +1 -1
- package/dist/assets/index3.css +1 -1
- package/dist/assets/index30.css +1 -1
- package/dist/assets/index31.css +1 -1
- package/dist/assets/index32.css +1 -1
- package/dist/assets/index33.css +1 -1
- package/dist/assets/index34.css +1 -1
- package/dist/assets/index35.css +1 -1
- package/dist/assets/index36.css +1 -1
- package/dist/assets/index37.css +1 -1
- package/dist/assets/index38.css +1 -1
- package/dist/assets/index39.css +1 -1
- package/dist/assets/index4.css +1 -1
- package/dist/assets/index40.css +1 -1
- package/dist/assets/index41.css +1 -1
- package/dist/assets/index42.css +1 -1
- package/dist/assets/index43.css +1 -0
- package/dist/assets/index5.css +1 -1
- package/dist/assets/index6.css +1 -1
- package/dist/assets/index7.css +1 -1
- package/dist/assets/index8.css +1 -1
- package/dist/assets/index9.css +1 -1
- package/dist/assets/listbox-option-tag.css +1 -1
- package/dist/assets/listbox.css +1 -1
- package/dist/assets/loading-button.css +1 -1
- package/dist/assets/tooltip.css +1 -1
- package/dist/avatar-image.js +1 -1
- package/dist/badge.js +2 -2
- package/dist/button.js +143 -12
- package/dist/button.js.map +1 -1
- package/dist/card.js +99 -94
- package/dist/card.js.map +1 -1
- package/dist/checkbox.js +40 -39
- package/dist/checkbox.js.map +1 -1
- package/dist/chunks/base-button.6d2843c2.js +108 -0
- package/dist/chunks/base-button.6d2843c2.js.map +1 -0
- package/dist/chunks/base-modal.3ccb9eb5.js +291 -0
- package/dist/chunks/base-modal.3ccb9eb5.js.map +1 -0
- package/dist/chunks/{button.e1c39f66.js → button.a8462029.js} +39 -42
- package/dist/chunks/button.a8462029.js.map +1 -0
- package/dist/chunks/{calendar.09b683b3.js → calendar.3f930683.js} +237 -240
- package/dist/chunks/calendar.3f930683.js.map +1 -0
- package/dist/chunks/checkbox.5e1e05ae.js +235 -0
- package/dist/chunks/checkbox.5e1e05ae.js.map +1 -0
- package/dist/chunks/{chevron-down.69bedf14.js → chevron-up.c03b58f8.js} +8 -8
- package/dist/chunks/chevron-up.c03b58f8.js.map +1 -0
- package/dist/chunks/controls-group.3b0dfb94.js +136 -0
- package/dist/chunks/controls-group.3b0dfb94.js.map +1 -0
- package/dist/chunks/{copy.2cf5e6c3.js → copy.1d14b783.js} +49 -50
- package/dist/chunks/copy.1d14b783.js.map +1 -0
- package/dist/chunks/{dropdown-default-textbox.203e747f.js → dropdown-default-textbox.a90e84f9.js} +88 -90
- package/dist/chunks/dropdown-default-textbox.a90e84f9.js.map +1 -0
- package/dist/chunks/{dropdown.8b415aac.js → dropdown.b798a82e.js} +348 -330
- package/dist/chunks/dropdown.b798a82e.js.map +1 -0
- package/dist/chunks/{error-message.ddfe8ea5.js → error-message.9acead25.js} +16 -16
- package/dist/chunks/error-message.9acead25.js.map +1 -0
- package/dist/chunks/footer-actions.9537d0df.js +111 -0
- package/dist/chunks/footer-actions.9537d0df.js.map +1 -0
- package/dist/chunks/get-slot-text.bead058f.js +9 -0
- package/dist/chunks/get-slot-text.bead058f.js.map +1 -0
- package/dist/chunks/{grid-layout.a30855ff.js → grid-layout.984317d7.js} +2 -2
- package/dist/chunks/{grid-layout.a30855ff.js.map → grid-layout.984317d7.js.map} +1 -1
- package/dist/chunks/index.228ecda0.js +101 -0
- package/dist/chunks/index.228ecda0.js.map +1 -0
- package/dist/chunks/index.89b00b94.js +124 -0
- package/dist/chunks/index.89b00b94.js.map +1 -0
- package/dist/chunks/{index.3da90517.js → index.9d8273fc.js} +38 -40
- package/dist/chunks/index.9d8273fc.js.map +1 -0
- package/dist/chunks/{index.c9225c3b.js → index.c2a80208.js} +195 -201
- package/dist/chunks/index.c2a80208.js.map +1 -0
- package/dist/chunks/{index.13949709.js → index.d26fdf71.js} +116 -113
- package/dist/chunks/{index.13949709.js.map → index.d26fdf71.js.map} +1 -1
- package/dist/chunks/{index.d27367cd.js → index.e84dbeae.js} +80 -83
- package/dist/chunks/{index.d27367cd.js.map → index.e84dbeae.js.map} +1 -1
- package/dist/chunks/listbox-option-tag.0c9c571e.js +129 -0
- package/dist/chunks/listbox-option-tag.0c9c571e.js.map +1 -0
- package/dist/chunks/{listbox.0c7c4e5e.js → listbox.6b52af1a.js} +315 -334
- package/dist/chunks/listbox.6b52af1a.js.map +1 -0
- package/dist/chunks/{loading-button.61d8ebe5.js → loading-button.081adbf3.js} +33 -33
- package/dist/chunks/loading-button.081adbf3.js.map +1 -0
- package/dist/chunks/tabs.keys.358742f2.js +7 -0
- package/dist/chunks/tabs.keys.358742f2.js.map +1 -0
- package/dist/chunks/{tooltip.835d9b52.js → tooltip.e4e34b86.js} +56 -59
- package/dist/chunks/tooltip.e4e34b86.js.map +1 -0
- package/dist/chunks/use-default-slot-validator.1169c221.js +16 -0
- package/dist/chunks/use-default-slot-validator.1169c221.js.map +1 -0
- package/dist/chunks/use-has-slot.9fac7123.js +16 -0
- package/dist/chunks/use-has-slot.9fac7123.js.map +1 -0
- package/dist/code-snippet.js +548 -463
- package/dist/code-snippet.js.map +1 -1
- package/dist/country.js +501 -505
- package/dist/country.js.map +1 -1
- package/dist/currency.js +38 -41
- package/dist/currency.js.map +1 -1
- package/dist/data-grid.js +837 -833
- package/dist/data-grid.js.map +1 -1
- package/dist/date-picker.js +83 -87
- package/dist/date-picker.js.map +1 -1
- package/dist/date-range-picker.js +2 -2
- package/dist/date.js +1 -1
- package/dist/dropdown.js +30 -32
- package/dist/dropdown.js.map +1 -1
- package/dist/empty-state.js +166 -0
- package/dist/empty-state.js.map +1 -0
- package/dist/filter-bar.js +986 -935
- package/dist/filter-bar.js.map +1 -1
- package/dist/focus-trap.js +1 -1
- package/dist/form-layout.js +72 -72
- package/dist/form-layout.js.map +1 -1
- package/dist/header.js +50 -52
- package/dist/header.js.map +1 -1
- package/dist/image.js +76 -0
- package/dist/image.js.map +1 -0
- package/dist/index.js +239 -232
- package/dist/index.js.map +1 -1
- package/dist/info-icon.js +2 -2
- package/dist/input-field.js +241 -269
- package/dist/input-field.js.map +1 -1
- package/dist/internal.js +7 -7
- package/dist/link.js +38 -36
- package/dist/link.js.map +1 -1
- package/dist/loading-indicator.js +1 -1
- package/dist/menu.js +131 -139
- package/dist/menu.js.map +1 -1
- package/dist/modal.js +121 -356
- package/dist/modal.js.map +1 -1
- package/dist/pagination.js +182 -185
- package/dist/pagination.js.map +1 -1
- package/dist/payment-method.js +19 -23
- package/dist/payment-method.js.map +1 -1
- package/dist/popover.js +56 -52
- package/dist/popover.js.map +1 -1
- package/dist/popper-container.js +36 -41
- package/dist/popper-container.js.map +1 -1
- package/dist/radio-group.js +112 -113
- package/dist/radio-group.js.map +1 -1
- package/dist/search-bar.js +77 -91
- package/dist/search-bar.js.map +1 -1
- package/dist/segmented-control.js +88 -75
- package/dist/segmented-control.js.map +1 -1
- package/dist/sidepanel.js +122 -121
- package/dist/sidepanel.js.map +1 -1
- package/dist/status.js +18 -21
- package/dist/status.js.map +1 -1
- package/dist/structured-list.js +1 -1
- package/dist/summary-grid.js +129 -162
- package/dist/summary-grid.js.map +1 -1
- package/dist/tabs.js +83 -75
- package/dist/tabs.js.map +1 -1
- package/dist/tag.js +32 -35
- package/dist/tag.js.map +1 -1
- package/dist/textarea.js +156 -155
- package/dist/textarea.js.map +1 -1
- package/dist/timeline.js +212 -213
- package/dist/timeline.js.map +1 -1
- package/dist/toast.js +68 -72
- package/dist/toast.js.map +1 -1
- package/dist/toggle.js +75 -73
- package/dist/toggle.js.map +1 -1
- package/dist/typography.js +1 -1
- package/dist/web-types.json +1 -1
- package/package.json +11 -10
- package/dist/@types/packages/vue2/src/components/data-grid/composables/useCalculateBodyFitContentDynamicStyles/useCalculateBodyFitContentDynamicStyles.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/data-grid/composables/useCalculateBodyFitContentDynamicStyles/useCalculateBodyFitContentDynamicStyles.types.d.ts +0 -8
- package/dist/@types/packages/vue2/src/components/filter-bar/components/base-filter/components/filter-bar-filter-button/filter-bar-filter-button.vue.d.ts +0 -58
- package/dist/@types/packages/vue2/src/components/filter-bar/components/base-filter/components/index.d.ts +0 -1
- package/dist/assets/button-actions.css +0 -1
- package/dist/assets/chevron-down.css +0 -1
- package/dist/chunks/base-button.20be08da.js +0 -111
- package/dist/chunks/base-button.20be08da.js.map +0 -1
- package/dist/chunks/button-actions.54e28e75.js +0 -124
- package/dist/chunks/button-actions.54e28e75.js.map +0 -1
- package/dist/chunks/button.e1c39f66.js.map +0 -1
- package/dist/chunks/calendar.09b683b3.js.map +0 -1
- package/dist/chunks/checkbox.a404069b.js +0 -226
- package/dist/chunks/checkbox.a404069b.js.map +0 -1
- package/dist/chunks/chevron-down.69bedf14.js.map +0 -1
- package/dist/chunks/controls-group.60fb2a86.js +0 -136
- package/dist/chunks/controls-group.60fb2a86.js.map +0 -1
- package/dist/chunks/copy.2cf5e6c3.js.map +0 -1
- package/dist/chunks/dropdown-default-textbox.203e747f.js.map +0 -1
- package/dist/chunks/dropdown.8b415aac.js.map +0 -1
- package/dist/chunks/error-message.ddfe8ea5.js.map +0 -1
- package/dist/chunks/footer-actions.0f640f87.js +0 -106
- package/dist/chunks/footer-actions.0f640f87.js.map +0 -1
- package/dist/chunks/get-slot-text.2db867f8.js +0 -9
- package/dist/chunks/get-slot-text.2db867f8.js.map +0 -1
- package/dist/chunks/index.222d29b0.js +0 -120
- package/dist/chunks/index.222d29b0.js.map +0 -1
- package/dist/chunks/index.3da90517.js.map +0 -1
- package/dist/chunks/index.aa34e363.js +0 -104
- package/dist/chunks/index.aa34e363.js.map +0 -1
- package/dist/chunks/index.c9225c3b.js.map +0 -1
- package/dist/chunks/listbox-option-tag.5ae8b79b.js +0 -133
- package/dist/chunks/listbox-option-tag.5ae8b79b.js.map +0 -1
- package/dist/chunks/listbox.0c7c4e5e.js.map +0 -1
- package/dist/chunks/loading-button.61d8ebe5.js.map +0 -1
- package/dist/chunks/tooltip.835d9b52.js.map +0 -1
- package/dist/chunks/use-default-slot-validator.83d977a1.js +0 -11
- package/dist/chunks/use-default-slot-validator.83d977a1.js.map +0 -1
- package/dist/chunks/use-has-slot.068222e6.js +0 -5
- package/dist/chunks/use-has-slot.068222e6.js.map +0 -1
|
@@ -1,51 +1,51 @@
|
|
|
1
|
-
import { defineComponent as ye, reactive as ee, ref as
|
|
2
|
-
import { B as
|
|
3
|
-
import { BentoPopover as
|
|
1
|
+
import { defineComponent as ye, reactive as ee, ref as h, computed as K, onMounted as Fe, resolveComponent as w, openBlock as f, createElementBlock as J, createElementVNode as F, createBlock as O, createCommentVNode as b, renderSlot as fe, createVNode as P, withCtx as k, createTextVNode as E, normalizeClass as ae, toRef as ge, watch as he, resolveDirective as Pe, withDirectives as Ue, toDisplayString as j, withKeys as $e } from "vue";
|
|
2
|
+
import { B as Ne } from "./directive.0408e565.js";
|
|
3
|
+
import { BentoPopover as Ae } from "../popover.js";
|
|
4
4
|
import { g as W } from "./unique-id.a2a2b458.js";
|
|
5
5
|
import { u as te } from "./i18n.6c402773.js";
|
|
6
|
-
import { B as ke
|
|
7
|
-
import { f as ve, v as
|
|
8
|
-
import { t as ne, f as Y } from "./index.
|
|
9
|
-
import { r as re, t as oe, e as
|
|
10
|
-
import { u as
|
|
11
|
-
import { BentoInputField as
|
|
12
|
-
import { B as
|
|
6
|
+
import { B as ke } from "./index.89b00b94.js";
|
|
7
|
+
import { f as ve, v as Be, D as M } from "./date-input.9186a0bf.js";
|
|
8
|
+
import { t as ne, f as Y } from "./index.e84dbeae.js";
|
|
9
|
+
import { r as re, t as oe, e as C, d as se, f as ie } from "./index.f55fdc32.js";
|
|
10
|
+
import { u as Ke } from "./use-form-layout-loading.d03e5d48.js";
|
|
11
|
+
import { BentoInputField as Ye } from "../input-field.js";
|
|
12
|
+
import { B as qe } from "./dropdown.b798a82e.js";
|
|
13
13
|
import { d as z } from "./debounce.f8d92e44.js";
|
|
14
|
-
import { u as
|
|
14
|
+
import { u as Ve } from "./use-has-slot.9fac7123.js";
|
|
15
15
|
import { e as Z } from "./index.fdf12170.js";
|
|
16
|
-
import { C as G } from "./calendar.
|
|
17
|
-
import { _ as
|
|
18
|
-
import { c as
|
|
19
|
-
import { E as
|
|
20
|
-
import "../assets/
|
|
21
|
-
function
|
|
16
|
+
import { C as G } from "./calendar.3f930683.js";
|
|
17
|
+
import { _ as _e } from "./_plugin-vue_export-helper.dad06003.js";
|
|
18
|
+
import { c as Le } from "./dropdown-default-textbox.a90e84f9.js";
|
|
19
|
+
import { E as He } from "./error-message.9acead25.js";
|
|
20
|
+
import "../assets/index25.css";
|
|
21
|
+
function We(e, t) {
|
|
22
22
|
re(2, arguments);
|
|
23
23
|
var s = oe(e), d = ne(t);
|
|
24
24
|
return s.setHours(d), s;
|
|
25
25
|
}
|
|
26
|
-
function
|
|
26
|
+
function Ge(e, t) {
|
|
27
27
|
re(2, arguments);
|
|
28
28
|
var s = oe(e), d = ne(t);
|
|
29
29
|
return s.setMinutes(d), s;
|
|
30
30
|
}
|
|
31
|
-
function
|
|
31
|
+
function je(e, t) {
|
|
32
32
|
re(2, arguments);
|
|
33
33
|
var s = oe(e), d = ne(t);
|
|
34
34
|
return s.setSeconds(d), s;
|
|
35
35
|
}
|
|
36
36
|
var l = /* @__PURE__ */ ((e) => (e.CUSTOM_RANGE = "custom-range", e.INPUT = "input", e.ERROR = "error", e.FORM_DATE = "form-date", e))(l || {});
|
|
37
|
-
const
|
|
38
|
-
const { selectionStart: t } = e.target, s =
|
|
37
|
+
const ze = /[\d]/, Je = /^\d{2}$/, Qe = /^\d{2}:\d{2}$/, Xe = (e) => {
|
|
38
|
+
const { selectionStart: t } = e.target, s = ze.test(e.key) || e.key === "Backspace", d = [1, 2, 4, 5].includes(t) && e.key === ":";
|
|
39
39
|
!s && !d && e.preventDefault();
|
|
40
|
-
},
|
|
40
|
+
}, Ie = (e) => {
|
|
41
41
|
if (!e)
|
|
42
42
|
return e;
|
|
43
43
|
let t = e;
|
|
44
44
|
if (t.length === 1 && parseInt(e, 10) > 2)
|
|
45
45
|
return `0${t}:`;
|
|
46
46
|
const [s, d] = t.slice(-2);
|
|
47
|
-
return [2, 5].includes(t.length) && d === ":" && (t = `${t.slice(0, t.length - 2)}0${s}`), (
|
|
48
|
-
},
|
|
47
|
+
return [2, 5].includes(t.length) && d === ":" && (t = `${t.slice(0, t.length - 2)}0${s}`), (Je.test(t) || Qe.test(t)) && (t += ":"), t;
|
|
48
|
+
}, be = {
|
|
49
49
|
"en-US": {
|
|
50
50
|
customRange: "Custom range",
|
|
51
51
|
dateFrom: "Date from",
|
|
@@ -56,12 +56,12 @@ const Xe = /[\d]/, Ze = /^\d{2}$/, xe = /^\d{2}:\d{2}$/, ea = (e) => {
|
|
|
56
56
|
timeFrom: "Time from",
|
|
57
57
|
timeTo: "Time to"
|
|
58
58
|
}
|
|
59
|
-
}, Re = 300, x = "customRange",
|
|
60
|
-
i18n: { messages:
|
|
59
|
+
}, Re = 300, x = "customRange", Ze = ye({
|
|
60
|
+
i18n: { messages: be },
|
|
61
61
|
name: "date-range-picker-calendar",
|
|
62
62
|
components: {
|
|
63
|
-
BentoDropdown:
|
|
64
|
-
BentoInputField:
|
|
63
|
+
BentoDropdown: qe,
|
|
64
|
+
BentoInputField: Ye,
|
|
65
65
|
BentoTypography: ke,
|
|
66
66
|
Calendar: G
|
|
67
67
|
},
|
|
@@ -116,22 +116,22 @@ const Xe = /[\d]/, Ze = /^\d{2}$/, xe = /^\d{2}:\d{2}$/, ea = (e) => {
|
|
|
116
116
|
l.FORM_DATE
|
|
117
117
|
],
|
|
118
118
|
setup(e, { emit: t, slots: s }) {
|
|
119
|
-
var
|
|
120
|
-
const { locale: d, t:
|
|
121
|
-
startDate: (
|
|
122
|
-
endDate: (
|
|
123
|
-
}), c =
|
|
119
|
+
var me, pe;
|
|
120
|
+
const { locale: d, t: _ } = te({ messages: be }), g = { de: se, enUS: C, fr: ie }, o = ee({
|
|
121
|
+
startDate: (me = e.value) == null ? void 0 : me.startDate,
|
|
122
|
+
endDate: (pe = e.value) == null ? void 0 : pe.endDate
|
|
123
|
+
}), c = h(x), p = K(() => ({
|
|
124
124
|
"b-date-range-picker-calendar__form-input-wrapper": e.allowTimeInput
|
|
125
|
-
})),
|
|
126
|
-
{ label:
|
|
125
|
+
})), S = K(() => e.quickSelectRanges ? [
|
|
126
|
+
{ label: _("customRange"), value: x },
|
|
127
127
|
...e.quickSelectRanges
|
|
128
128
|
] : []), v = () => {
|
|
129
129
|
e != null && e.quickSelectRanges && (c.value = x);
|
|
130
|
-
}, i = (a) => a ? Y(a,
|
|
131
|
-
locale: g[d.value.substring(0, 2)] ||
|
|
132
|
-
}) : "", R = (a) => a ? Y(a,
|
|
133
|
-
locale: g[d.value.substring(0, 2)] ||
|
|
134
|
-
}) : "", D =
|
|
130
|
+
}, i = (a) => a ? Y(a, M.NUMERIC_DATE_YEAR_FIRST, {
|
|
131
|
+
locale: g[d.value.substring(0, 2)] || C
|
|
132
|
+
}) : "", R = (a) => a ? Y(a, M.HOUR_MINUTE_SECONDS, {
|
|
133
|
+
locale: g[d.value.substring(0, 2)] || C
|
|
134
|
+
}) : "", D = h(!1), T = h(!1), m = h(!1), I = h(!1), n = ee({
|
|
135
135
|
startDate: e.dateFormData.startDate,
|
|
136
136
|
endDate: e.dateFormData.endDate,
|
|
137
137
|
startTime: e.dateFormData.startTime,
|
|
@@ -142,29 +142,29 @@ const Xe = /[\d]/, Ze = /^\d{2}$/, xe = /^\d{2}:\d{2}$/, ea = (e) => {
|
|
|
142
142
|
if (!r || !q(r))
|
|
143
143
|
return a;
|
|
144
144
|
let y = new Date(a);
|
|
145
|
-
const [
|
|
146
|
-
return y =
|
|
147
|
-
},
|
|
148
|
-
const r = (
|
|
145
|
+
const [N, X, Ce] = r.split(":");
|
|
146
|
+
return y = We(y, parseInt(N, 10)), y = Ge(y, parseInt(X, 10)), y = je(y, parseInt(Ce, 10)), y;
|
|
147
|
+
}, $ = (a) => {
|
|
148
|
+
const r = (N) => e.isDateDisabled ? !e.isDateDisabled(N) : !0;
|
|
149
149
|
return /^\d{4}-(0?[1-9]|1[012])-(0?[1-9]|[12][0-9]|3[01])$/.test(a) && r(new Date(a));
|
|
150
150
|
};
|
|
151
|
-
|
|
152
|
-
e.dateFormData.startDate &&
|
|
151
|
+
Fe(() => {
|
|
152
|
+
e.dateFormData.startDate && !$(e.dateFormData.startDate) ? D.value = !0 : (D.value = !1, m.value = !1), e.dateFormData.endDate && !$(e.dateFormData.endDate) ? T.value = !0 : (T.value = !1, I.value = !1);
|
|
153
153
|
});
|
|
154
154
|
const le = (a) => {
|
|
155
155
|
var r;
|
|
156
|
-
v(), n.startDate = i(a), n.startTime ?
|
|
156
|
+
v(), n.startDate = i(a), n.startTime ? m.value && (n.startTime = (r = e.dateFormData) == null ? void 0 : r.startTime) : n.startTime = R(a), D.value = !1, m.value = !1;
|
|
157
157
|
}, de = (a) => {
|
|
158
158
|
var r;
|
|
159
|
-
n.endDate = i(a), n.endTime ?
|
|
159
|
+
n.endDate = i(a), n.endTime ? I.value && (n.endTime = (r = e.dateFormData) == null ? void 0 : r.endTime) : n.endTime = R(Z(a)), T.value = !1, I.value = !1;
|
|
160
160
|
}, L = (a) => {
|
|
161
161
|
const r = e.value[a];
|
|
162
162
|
if (r)
|
|
163
163
|
return r;
|
|
164
|
-
if (e.dateFormData[a] &&
|
|
164
|
+
if (e.dateFormData[a] && $(e.dateFormData[a]))
|
|
165
165
|
return new Date(e.dateFormData[a]);
|
|
166
166
|
}, ue = z((a) => {
|
|
167
|
-
if (
|
|
167
|
+
if ($(a)) {
|
|
168
168
|
D.value = !1, o.startDate = V(new Date(a), n.startTime);
|
|
169
169
|
const r = L("endDate");
|
|
170
170
|
t(l.FORM_DATE, {
|
|
@@ -179,8 +179,8 @@ const Xe = /[\d]/, Ze = /^\d{2}$/, xe = /^\d{2}:\d{2}$/, ea = (e) => {
|
|
|
179
179
|
}, Re), ce = (a) => {
|
|
180
180
|
v(), n.startDate = ve(a), ue(n.startDate);
|
|
181
181
|
}, De = z((a) => {
|
|
182
|
-
if (
|
|
183
|
-
|
|
182
|
+
if ($(a)) {
|
|
183
|
+
T.value = !1, o.endDate = V(new Date(a), n.endTime);
|
|
184
184
|
const r = L("startDate");
|
|
185
185
|
t(l.FORM_DATE, {
|
|
186
186
|
startDate: r,
|
|
@@ -192,14 +192,14 @@ const Xe = /[\d]/, Ze = /^\d{2}$/, xe = /^\d{2}:\d{2}$/, ea = (e) => {
|
|
|
192
192
|
endDate: new Date(o.endDate)
|
|
193
193
|
});
|
|
194
194
|
} else
|
|
195
|
-
|
|
195
|
+
T.value = !0, t(l.ERROR, { ...n });
|
|
196
196
|
}, Re), u = (a) => {
|
|
197
197
|
v(), n.endDate = ve(a), De(n.endDate);
|
|
198
|
-
},
|
|
199
|
-
|
|
198
|
+
}, U = (a) => {
|
|
199
|
+
Be(a);
|
|
200
200
|
}, H = z((a) => {
|
|
201
201
|
if (q(a)) {
|
|
202
|
-
|
|
202
|
+
m.value = !1, o.startDate = V(o.startDate, a);
|
|
203
203
|
const r = L("endDate");
|
|
204
204
|
t(l.FORM_DATE, {
|
|
205
205
|
startDate: new Date(o.startDate),
|
|
@@ -211,10 +211,10 @@ const Xe = /[\d]/, Ze = /^\d{2}$/, xe = /^\d{2}:\d{2}$/, ea = (e) => {
|
|
|
211
211
|
endDate: r
|
|
212
212
|
});
|
|
213
213
|
} else
|
|
214
|
-
|
|
215
|
-
}),
|
|
214
|
+
m.value = !0, t(l.ERROR, { ...n });
|
|
215
|
+
}), Ee = z((a) => {
|
|
216
216
|
if (q(a)) {
|
|
217
|
-
|
|
217
|
+
I.value = !1, o.endDate = V(o.endDate, a);
|
|
218
218
|
const r = L("startDate");
|
|
219
219
|
t(l.FORM_DATE, {
|
|
220
220
|
startDate: r,
|
|
@@ -226,77 +226,75 @@ const Xe = /[\d]/, Ze = /^\d{2}$/, xe = /^\d{2}:\d{2}$/, ea = (e) => {
|
|
|
226
226
|
endDate: new Date(o.endDate)
|
|
227
227
|
});
|
|
228
228
|
} else
|
|
229
|
-
|
|
230
|
-
}),
|
|
231
|
-
v(), n.startTime =
|
|
232
|
-
},
|
|
233
|
-
v(), n.endTime =
|
|
234
|
-
}, he = (a) => {
|
|
235
|
-
ea(a);
|
|
229
|
+
I.value = !0, t(l.ERROR, { ...n });
|
|
230
|
+
}), Se = (a) => {
|
|
231
|
+
v(), n.startTime = Ie(a), H(n.startTime);
|
|
232
|
+
}, Oe = (a) => {
|
|
233
|
+
v(), n.endTime = Ie(a), Ee(n.endTime);
|
|
236
234
|
}, we = (a) => {
|
|
237
|
-
|
|
235
|
+
Xe(a);
|
|
236
|
+
}, Me = (a) => {
|
|
237
|
+
var y, N;
|
|
238
238
|
c.value = a;
|
|
239
|
-
const r = (
|
|
239
|
+
const r = (N = (y = e.quickSelectRanges) == null ? void 0 : y.find(({ value: X }) => X === a)) == null ? void 0 : N.data;
|
|
240
240
|
r && (n.startDate = i(r.startDate), n.endDate = i(r.endDate), n.startTime || (n.startTime = R(Z(r.startDate))), n.endTime || (n.endTime = R(Z(r.endDate))), t(l.CUSTOM_RANGE, r));
|
|
241
241
|
};
|
|
242
242
|
return {
|
|
243
243
|
// Values
|
|
244
244
|
dateTextInput: n,
|
|
245
|
-
endDateError:
|
|
246
|
-
endTimeError:
|
|
245
|
+
endDateError: T,
|
|
246
|
+
endTimeError: I,
|
|
247
247
|
selectedRangeSelectorValue: c,
|
|
248
248
|
startDateError: D,
|
|
249
|
-
startTimeError:
|
|
250
|
-
quickSelectRangeDefaultItems:
|
|
251
|
-
formInputWrapperConditionalClasses:
|
|
252
|
-
// Enums
|
|
253
|
-
BentoTypographyElement: Ee,
|
|
249
|
+
startTimeError: m,
|
|
250
|
+
quickSelectRangeDefaultItems: S,
|
|
251
|
+
formInputWrapperConditionalClasses: p,
|
|
254
252
|
// Methods
|
|
255
|
-
hasSlot:
|
|
256
|
-
t:
|
|
253
|
+
hasSlot: Ve(s),
|
|
254
|
+
t: _,
|
|
257
255
|
// Events
|
|
258
|
-
onRangeSelectorInput:
|
|
256
|
+
onRangeSelectorInput: Me,
|
|
259
257
|
onDateInput: Q,
|
|
260
|
-
onDateInputKeyDown:
|
|
258
|
+
onDateInputKeyDown: U,
|
|
261
259
|
onEndDateInput: u,
|
|
262
260
|
onEndDateSelected: de,
|
|
263
|
-
onEndTimeInput:
|
|
261
|
+
onEndTimeInput: Oe,
|
|
264
262
|
onStartDateSelected: le,
|
|
265
263
|
onStartDateInput: ce,
|
|
266
|
-
onStartTimeInput:
|
|
267
|
-
onTimeInputKeyDown:
|
|
264
|
+
onStartTimeInput: Se,
|
|
265
|
+
onTimeInputKeyDown: we
|
|
268
266
|
};
|
|
269
267
|
}
|
|
270
268
|
});
|
|
271
|
-
const
|
|
272
|
-
function
|
|
273
|
-
const o =
|
|
274
|
-
return f(), J("div",
|
|
275
|
-
|
|
276
|
-
|
|
269
|
+
const xe = { class: "b-date-range-picker-calendar" }, ea = { class: "b-date-range-picker-calendar__form-container" }, aa = { class: "b-date-range-picker-calendar__form" }, ta = { key: 0 }, na = { class: "b-date-range-picker-calendar__calendars-container" };
|
|
270
|
+
function ra(e, t, s, d, _, g) {
|
|
271
|
+
const o = w("bento-dropdown"), c = w("bento-typography"), p = w("bento-input-field"), S = w("calendar");
|
|
272
|
+
return f(), J("div", xe, [
|
|
273
|
+
F("div", ea, [
|
|
274
|
+
F("div", aa, [
|
|
277
275
|
e.quickSelectRanges ? (f(), O(o, {
|
|
278
276
|
key: 0,
|
|
279
277
|
"aria-label": e.t("customRange"),
|
|
280
278
|
items: e.quickSelectRangeDefaultItems,
|
|
281
279
|
value: e.selectedRangeSelectorValue,
|
|
282
280
|
onInput: e.onRangeSelectorInput
|
|
283
|
-
}, null, 8, ["aria-label", "items", "value", "onInput"])) :
|
|
284
|
-
e.hasSlot("title") ? fe(e.$slots, "title", { key: 1 }, void 0, !0) :
|
|
285
|
-
|
|
286
|
-
|
|
281
|
+
}, null, 8, ["aria-label", "items", "value", "onInput"])) : b("", !0),
|
|
282
|
+
e.hasSlot("title") ? fe(e.$slots, "title", { key: 1 }, void 0, !0) : b("", !0),
|
|
283
|
+
F("div", null, [
|
|
284
|
+
P(c, {
|
|
287
285
|
stronger: "",
|
|
288
|
-
el:
|
|
286
|
+
el: "span",
|
|
289
287
|
class: "b-date-range-picker-calendar__label"
|
|
290
288
|
}, {
|
|
291
289
|
default: k(() => [
|
|
292
|
-
|
|
290
|
+
E(" From ")
|
|
293
291
|
]),
|
|
294
292
|
_: 1
|
|
295
|
-
}
|
|
296
|
-
|
|
293
|
+
}),
|
|
294
|
+
F("div", {
|
|
297
295
|
class: ae(e.formInputWrapperConditionalClasses)
|
|
298
296
|
}, [
|
|
299
|
-
|
|
297
|
+
P(p, {
|
|
300
298
|
"aria-label": e.$t("dateFrom"),
|
|
301
299
|
value: e.dateTextInput.startDate,
|
|
302
300
|
error: e.startDateError,
|
|
@@ -305,11 +303,11 @@ function ia(e, t, s, d, E, g) {
|
|
|
305
303
|
onKeydown: e.onDateInputKeyDown
|
|
306
304
|
}, {
|
|
307
305
|
description: k(() => [
|
|
308
|
-
|
|
306
|
+
E("YYYY-MM-DD")
|
|
309
307
|
]),
|
|
310
308
|
_: 1
|
|
311
309
|
}, 8, ["aria-label", "value", "error", "onInput", "onKeydown"]),
|
|
312
|
-
e.allowTimeInput ? (f(), O(
|
|
310
|
+
e.allowTimeInput ? (f(), O(p, {
|
|
313
311
|
key: 0,
|
|
314
312
|
"aria-label": e.t("timeFrom"),
|
|
315
313
|
value: e.dateTextInput.startTime,
|
|
@@ -319,27 +317,27 @@ function ia(e, t, s, d, E, g) {
|
|
|
319
317
|
onKeydown: e.onTimeInputKeyDown
|
|
320
318
|
}, {
|
|
321
319
|
description: k(() => [
|
|
322
|
-
|
|
320
|
+
E("HH:MM:SS")
|
|
323
321
|
]),
|
|
324
322
|
_: 1
|
|
325
|
-
}, 8, ["aria-label", "value", "error", "onInput", "onKeydown"])) :
|
|
323
|
+
}, 8, ["aria-label", "value", "error", "onInput", "onKeydown"])) : b("", !0)
|
|
326
324
|
], 2)
|
|
327
325
|
]),
|
|
328
|
-
|
|
329
|
-
|
|
326
|
+
F("div", null, [
|
|
327
|
+
P(c, {
|
|
330
328
|
stronger: "",
|
|
331
|
-
el:
|
|
329
|
+
el: "span",
|
|
332
330
|
class: "b-date-range-picker-calendar__label"
|
|
333
331
|
}, {
|
|
334
332
|
default: k(() => [
|
|
335
|
-
|
|
333
|
+
E(" To ")
|
|
336
334
|
]),
|
|
337
335
|
_: 1
|
|
338
|
-
}
|
|
339
|
-
|
|
336
|
+
}),
|
|
337
|
+
F("div", {
|
|
340
338
|
class: ae(e.formInputWrapperConditionalClasses)
|
|
341
339
|
}, [
|
|
342
|
-
|
|
340
|
+
P(p, {
|
|
343
341
|
class: "b-date-range-picker-calendar__form-input",
|
|
344
342
|
"aria-label": e.$t("dateTo"),
|
|
345
343
|
value: e.dateTextInput.endDate,
|
|
@@ -348,11 +346,11 @@ function ia(e, t, s, d, E, g) {
|
|
|
348
346
|
onKeydown: e.onDateInputKeyDown
|
|
349
347
|
}, {
|
|
350
348
|
description: k(() => [
|
|
351
|
-
|
|
349
|
+
E("YYYY-MM-DD")
|
|
352
350
|
]),
|
|
353
351
|
_: 1
|
|
354
352
|
}, 8, ["aria-label", "value", "error", "onInput", "onKeydown"]),
|
|
355
|
-
e.allowTimeInput ? (f(), O(
|
|
353
|
+
e.allowTimeInput ? (f(), O(p, {
|
|
356
354
|
key: 0,
|
|
357
355
|
"aria-label": e.t("timeTo"),
|
|
358
356
|
value: e.dateTextInput.endTime,
|
|
@@ -362,19 +360,19 @@ function ia(e, t, s, d, E, g) {
|
|
|
362
360
|
onKeydown: e.onTimeInputKeyDown
|
|
363
361
|
}, {
|
|
364
362
|
description: k(() => [
|
|
365
|
-
|
|
363
|
+
E("HH:MM:SS")
|
|
366
364
|
]),
|
|
367
365
|
_: 1
|
|
368
|
-
}, 8, ["aria-label", "value", "error", "onInput", "onKeydown"])) :
|
|
366
|
+
}, 8, ["aria-label", "value", "error", "onInput", "onKeydown"])) : b("", !0)
|
|
369
367
|
], 2)
|
|
370
368
|
])
|
|
371
369
|
]),
|
|
372
|
-
e.hasSlot("actions") ? (f(), J("div",
|
|
370
|
+
e.hasSlot("actions") ? (f(), J("div", ta, [
|
|
373
371
|
fe(e.$slots, "actions", {}, void 0, !0)
|
|
374
|
-
])) :
|
|
372
|
+
])) : b("", !0)
|
|
375
373
|
]),
|
|
376
|
-
|
|
377
|
-
|
|
374
|
+
F("div", na, [
|
|
375
|
+
P(S, {
|
|
378
376
|
value: e.value,
|
|
379
377
|
"first-day-of-week": e.firstDayOfWeek,
|
|
380
378
|
"is-date-disabled": e.isDateDisabled,
|
|
@@ -388,23 +386,23 @@ function ia(e, t, s, d, E, g) {
|
|
|
388
386
|
])
|
|
389
387
|
]);
|
|
390
388
|
}
|
|
391
|
-
const
|
|
392
|
-
var
|
|
393
|
-
const
|
|
389
|
+
const A = /* @__PURE__ */ _e(Ze, [["render", ra], ["__scopeId", "data-v-7316452c"]]);
|
|
390
|
+
var B = /* @__PURE__ */ ((e) => (e.INPUT = "input", e))(B || {});
|
|
391
|
+
const oa = ({
|
|
394
392
|
datePickerValue: e,
|
|
395
393
|
isDateIncorrect: t
|
|
396
394
|
}) => {
|
|
397
|
-
var v, i, R, D,
|
|
398
|
-
const { locale: s, t: d } = te(),
|
|
399
|
-
locale:
|
|
400
|
-
}), o = (
|
|
401
|
-
locale:
|
|
395
|
+
var v, i, R, D, T;
|
|
396
|
+
const { locale: s, t: d } = te(), _ = { de: se, enUS: C, fr: ie }, g = (m, I) => Y(m, I, {
|
|
397
|
+
locale: _[s.value.substring(0, 2)] || C
|
|
398
|
+
}), o = (m) => Y(m, M.HOUR_MINUTE_SECONDS, {
|
|
399
|
+
locale: _[s.value.substring(0, 2)] || C
|
|
402
400
|
}), c = ee({
|
|
403
|
-
startDate: (v = e.value) != null && v.startDate ? g(e.value.startDate,
|
|
404
|
-
endDate: (i = e.value) != null && i.endDate ? g(e.value.endDate,
|
|
401
|
+
startDate: (v = e.value) != null && v.startDate ? g(e.value.startDate, M.NUMERIC_DATE_YEAR_FIRST) : void 0,
|
|
402
|
+
endDate: (i = e.value) != null && i.endDate ? g(e.value.endDate, M.NUMERIC_DATE_YEAR_FIRST) : void 0,
|
|
405
403
|
// Set time if the startDate/endDate are set
|
|
406
404
|
startTime: (R = e.value) != null && R.startDate ? o((D = e.value) == null ? void 0 : D.startDate) : void 0,
|
|
407
|
-
endTime: (
|
|
405
|
+
endTime: (T = e.value) != null && T.endDate ? o(e.value.endDate) : void 0
|
|
408
406
|
});
|
|
409
407
|
return {
|
|
410
408
|
// Values
|
|
@@ -413,17 +411,17 @@ const la = ({
|
|
|
413
411
|
return `${c.startDate || ""} - ${c.endDate || ""}`;
|
|
414
412
|
if (!e.value || !e.value.startDate && !e.value.endDate)
|
|
415
413
|
return d("selectDateRange");
|
|
416
|
-
const { startDate:
|
|
417
|
-
return `${g(new Date(
|
|
418
|
-
new Date(
|
|
419
|
-
|
|
414
|
+
const { startDate: m, endDate: I } = c;
|
|
415
|
+
return `${g(new Date(m), M.FULL_DATE_MONTH_FIRST)} - ${g(
|
|
416
|
+
new Date(I),
|
|
417
|
+
M.FULL_DATE_MONTH_FIRST
|
|
420
418
|
)}`;
|
|
421
419
|
}),
|
|
422
420
|
textInputDisplayValue: c,
|
|
423
421
|
// Methods
|
|
424
422
|
formatTextInputDisplayValue: () => ""
|
|
425
423
|
};
|
|
426
|
-
},
|
|
424
|
+
}, Te = {
|
|
427
425
|
"en-US": {
|
|
428
426
|
dateRangePicker: "Date range picker {name}",
|
|
429
427
|
optional: "optional",
|
|
@@ -433,17 +431,17 @@ const la = ({
|
|
|
433
431
|
selectDateRange: "Select a date range",
|
|
434
432
|
selectedDateIsNotAvailable: "Selected date is not available"
|
|
435
433
|
}
|
|
436
|
-
},
|
|
437
|
-
i18n: { messages:
|
|
434
|
+
}, sa = ye({
|
|
435
|
+
i18n: { messages: Te },
|
|
438
436
|
name: "bento-date-range-picker",
|
|
439
437
|
components: {
|
|
440
438
|
BentoTypography: ke,
|
|
441
|
-
BentoPopover:
|
|
442
|
-
DateRangePickerCalendar:
|
|
443
|
-
DropdownInputDefault:
|
|
444
|
-
ErrorMessage:
|
|
439
|
+
BentoPopover: Ae,
|
|
440
|
+
DateRangePickerCalendar: A,
|
|
441
|
+
DropdownInputDefault: Le,
|
|
442
|
+
ErrorMessage: He
|
|
445
443
|
},
|
|
446
|
-
directives: { BentoClickOutsideDirective:
|
|
444
|
+
directives: { BentoClickOutsideDirective: Ne },
|
|
447
445
|
props: {
|
|
448
446
|
/**
|
|
449
447
|
* Allows user to enter time values in the form
|
|
@@ -464,11 +462,11 @@ const la = ({
|
|
|
464
462
|
/**
|
|
465
463
|
* Allows user to set the first day of the week. 0 is sunday, 1 is monday, 6 is saturday
|
|
466
464
|
*/
|
|
467
|
-
firstDayOfWeek:
|
|
465
|
+
firstDayOfWeek: A.props.firstDayOfWeek,
|
|
468
466
|
/**
|
|
469
467
|
* Indicate if a date should be disabled or not
|
|
470
468
|
*/
|
|
471
|
-
isDateDisabled:
|
|
469
|
+
isDateDisabled: A.props.isDateDisabled,
|
|
472
470
|
/**
|
|
473
471
|
* Text that is displayed as a label above the element.
|
|
474
472
|
*/
|
|
@@ -499,72 +497,68 @@ const la = ({
|
|
|
499
497
|
/**
|
|
500
498
|
* Set a maximum number of dates to be selectable by the range.
|
|
501
499
|
*/
|
|
502
|
-
maxRange:
|
|
500
|
+
maxRange: A.props.maxRange,
|
|
503
501
|
/**
|
|
504
502
|
* Number of months rendered on pane
|
|
505
503
|
*/
|
|
506
|
-
numberOfMonths:
|
|
504
|
+
numberOfMonths: A.props.numberOfMonths,
|
|
507
505
|
/**
|
|
508
506
|
* Selected date
|
|
509
507
|
*/
|
|
510
|
-
value:
|
|
508
|
+
value: A.props.value
|
|
511
509
|
},
|
|
512
|
-
emits: [
|
|
510
|
+
emits: [B.INPUT],
|
|
513
511
|
setup(e, { emit: t }) {
|
|
514
|
-
const { locale: s, t: d } = te({ messages:
|
|
512
|
+
const { locale: s, t: d } = te({ messages: Te }), _ = { de: se, enUS: C, fr: ie }, g = W("bento-date-range-picker-container"), o = W("bento-date-range-picker-label"), c = W("bento-date-range-picker-description"), p = W("bento-date-range-picker-error"), S = W("bento-date-range-picker-date-error"), v = K(
|
|
515
513
|
() => e.label || d("dateRangePicker", { name: g })
|
|
516
|
-
), i =
|
|
517
|
-
|
|
514
|
+
), i = h(!1), R = h(null), D = h(!1), { isReadOnly: T } = Ke(ge(e, "readonly"));
|
|
515
|
+
he(
|
|
518
516
|
() => e.disabled,
|
|
519
517
|
() => {
|
|
520
518
|
e.disabled && D.value && (D.value = !1);
|
|
521
519
|
}
|
|
522
520
|
);
|
|
523
|
-
const
|
|
521
|
+
const m = K(() => ({
|
|
524
522
|
"b-date-range-picker__description--error": !!e.errorMessage || i.value
|
|
525
|
-
})), { dateDisplayValue:
|
|
523
|
+
})), { dateDisplayValue: I, textInputDisplayValue: n, formatTextInputDisplayValue: Q } = oa({
|
|
526
524
|
datePickerValue: ge(e, "value"),
|
|
527
525
|
isDateIncorrect: i
|
|
528
526
|
}), q = K(
|
|
529
|
-
() => `${e.description ? c : ""} ${e.errorMessage ?
|
|
527
|
+
() => `${e.description ? c : ""} ${e.errorMessage ? p : ""} ${i.value ? S : ""}`.trim() || null
|
|
530
528
|
);
|
|
531
529
|
return {
|
|
532
530
|
// Refs
|
|
533
531
|
inputContainerRef: R,
|
|
534
532
|
// Values,
|
|
535
|
-
dateDisplayValue:
|
|
533
|
+
dateDisplayValue: I,
|
|
536
534
|
datePickerContainerId: g,
|
|
537
|
-
descriptionConditionalClasses:
|
|
535
|
+
descriptionConditionalClasses: m,
|
|
538
536
|
isDateIncorrect: i,
|
|
539
537
|
isDateRangePickerOpen: D,
|
|
540
|
-
isReadOnly:
|
|
538
|
+
isReadOnly: T,
|
|
541
539
|
labelId: o,
|
|
542
540
|
descriptionId: c,
|
|
543
|
-
dateErrorId:
|
|
544
|
-
errorId:
|
|
541
|
+
dateErrorId: S,
|
|
542
|
+
errorId: p,
|
|
545
543
|
popoverAriaLabel: v,
|
|
546
544
|
ariaDescribedBy: q,
|
|
547
545
|
textInputDisplayValue: n,
|
|
548
|
-
// Enums
|
|
549
|
-
BentoTypographyElement: Ee,
|
|
550
|
-
BentoTypographyVariant: Ye,
|
|
551
|
-
BentoPopoverPositions: Ke,
|
|
552
546
|
// Events
|
|
553
547
|
closeDateRangePicker: () => {
|
|
554
548
|
D.value = !1;
|
|
555
549
|
},
|
|
556
550
|
clearDateRangePickerValue: async () => {
|
|
557
|
-
i.value && (i.value = !1), t(
|
|
551
|
+
i.value && (i.value = !1), t(B.INPUT, null);
|
|
558
552
|
},
|
|
559
553
|
openDateRangePicker: () => {
|
|
560
554
|
D.value = !0, Q();
|
|
561
555
|
},
|
|
562
556
|
onRangeSelectorInput: (u) => {
|
|
563
557
|
if (u) {
|
|
564
|
-
const
|
|
565
|
-
locale:
|
|
558
|
+
const U = (H) => Y(H, M.NUMERIC_DATE_YEAR_FIRST, {
|
|
559
|
+
locale: _[s.value.substring(0, 2)] || C
|
|
566
560
|
});
|
|
567
|
-
n.startDate =
|
|
561
|
+
n.startDate = U(u.startDate), n.endDate = U(u.endDate), t(B.INPUT, u);
|
|
568
562
|
}
|
|
569
563
|
},
|
|
570
564
|
onEnterPressedOverInput: () => {
|
|
@@ -572,13 +566,13 @@ const la = ({
|
|
|
572
566
|
},
|
|
573
567
|
onDateRangePickerInput: (u) => {
|
|
574
568
|
i.value = !1;
|
|
575
|
-
const
|
|
576
|
-
locale:
|
|
569
|
+
const U = (H) => Y(H, M.NUMERIC_DATE_YEAR_FIRST, {
|
|
570
|
+
locale: _[s.value.substring(0, 2)] || C
|
|
577
571
|
});
|
|
578
|
-
n.startDate =
|
|
572
|
+
n.startDate = U(u.startDate), n.endDate = U(u.endDate), t(B.INPUT, u);
|
|
579
573
|
},
|
|
580
574
|
onDateRangePickerError: (u) => {
|
|
581
|
-
i.value = !0, n.startDate = u.startDate, n.endDate = u.endDate, t(
|
|
575
|
+
i.value = !0, n.startDate = u.startDate, n.endDate = u.endDate, t(B.INPUT, { startDate: null, endDate: null });
|
|
582
576
|
},
|
|
583
577
|
onDateRangePickerFormDateInputUpdate: (u) => {
|
|
584
578
|
i.value = !1, u.startTime && (n.startTime = u.startTime), u.endTime && (n.endTime = u.endTime);
|
|
@@ -586,49 +580,49 @@ const la = ({
|
|
|
586
580
|
};
|
|
587
581
|
}
|
|
588
582
|
});
|
|
589
|
-
const
|
|
590
|
-
function
|
|
591
|
-
const o =
|
|
592
|
-
return
|
|
583
|
+
const ia = { class: "b-date-range-picker" }, la = ["id"];
|
|
584
|
+
function da(e, t, s, d, _, g) {
|
|
585
|
+
const o = w("bento-typography"), c = w("dropdown-input-default"), p = w("error-message"), S = w("date-range-picker-calendar"), v = w("bento-popover"), i = Pe("bento-click-outside-directive");
|
|
586
|
+
return Ue((f(), J("div", ia, [
|
|
593
587
|
e.label ? (f(), J("div", {
|
|
594
588
|
key: 0,
|
|
595
589
|
id: e.labelId,
|
|
596
590
|
class: "b-date-range-picker__label"
|
|
597
591
|
}, [
|
|
598
|
-
|
|
599
|
-
el:
|
|
592
|
+
P(o, {
|
|
593
|
+
el: "span",
|
|
600
594
|
stronger: ""
|
|
601
595
|
}, {
|
|
602
596
|
default: k(() => [
|
|
603
|
-
|
|
597
|
+
E(j(e.label), 1)
|
|
604
598
|
]),
|
|
605
599
|
_: 1
|
|
606
|
-
}
|
|
600
|
+
}),
|
|
607
601
|
e.optional ? (f(), O(o, {
|
|
608
602
|
key: 0,
|
|
609
603
|
class: "b-date-range-picker__label-requirement",
|
|
610
|
-
el:
|
|
604
|
+
el: "span"
|
|
611
605
|
}, {
|
|
612
606
|
default: k(() => [
|
|
613
|
-
|
|
607
|
+
E(" (" + j(e.$t("optional")) + ") ", 1)
|
|
614
608
|
]),
|
|
615
609
|
_: 1
|
|
616
|
-
}
|
|
610
|
+
})) : b("", !0),
|
|
617
611
|
e.required ? (f(), O(o, {
|
|
618
612
|
key: 1,
|
|
619
613
|
class: "b-date-range-picker__label-requirement",
|
|
620
|
-
el:
|
|
614
|
+
el: "span"
|
|
621
615
|
}, {
|
|
622
616
|
default: k(() => [
|
|
623
|
-
|
|
617
|
+
E(" (" + j(e.$t("required")) + ") ", 1)
|
|
624
618
|
]),
|
|
625
619
|
_: 1
|
|
626
|
-
}
|
|
627
|
-
], 8,
|
|
628
|
-
|
|
629
|
-
onKeydown: t[0] || (t[0] =
|
|
620
|
+
})) : b("", !0)
|
|
621
|
+
], 8, la)) : b("", !0),
|
|
622
|
+
F("div", {
|
|
623
|
+
onKeydown: t[0] || (t[0] = $e((...R) => e.onEnterPressedOverInput && e.onEnterPressedOverInput(...R), ["enter"]))
|
|
630
624
|
}, [
|
|
631
|
-
|
|
625
|
+
P(c, {
|
|
632
626
|
ref: "inputContainerRef",
|
|
633
627
|
ariaControls: e.datePickerContainerId,
|
|
634
628
|
ariaExpanded: e.isDateRangePickerOpen,
|
|
@@ -644,29 +638,29 @@ function Da(e, t, s, d, E, g) {
|
|
|
644
638
|
onClose: e.closeDateRangePicker
|
|
645
639
|
}, null, 8, ["ariaControls", "ariaExpanded", "aria-labelledby", "aria-describedby", "disabled", "is-invalid", "open", "display-value", "readonly", "onOpen", "onClear", "onClose"])
|
|
646
640
|
], 32),
|
|
647
|
-
e.isDateIncorrect ? (f(), O(
|
|
641
|
+
e.isDateIncorrect ? (f(), O(p, {
|
|
648
642
|
key: 1,
|
|
649
643
|
id: e.dateErrorId,
|
|
650
644
|
"error-message": e.$t("provideDateInAFormat").toString(),
|
|
651
645
|
class: "b-date-range-picker__error-message"
|
|
652
|
-
}, null, 8, ["id", "error-message"])) :
|
|
653
|
-
e.errorMessage ? (f(), O(
|
|
646
|
+
}, null, 8, ["id", "error-message"])) : b("", !0),
|
|
647
|
+
e.errorMessage ? (f(), O(p, {
|
|
654
648
|
key: 2,
|
|
655
649
|
id: e.errorId,
|
|
656
650
|
"error-message": e.errorMessage,
|
|
657
651
|
class: "b-date-range-picker__error-message"
|
|
658
|
-
}, null, 8, ["id", "error-message"])) :
|
|
652
|
+
}, null, 8, ["id", "error-message"])) : b("", !0),
|
|
659
653
|
e.description ? (f(), O(o, {
|
|
660
654
|
key: 3,
|
|
661
655
|
id: e.descriptionId,
|
|
662
656
|
class: ae(["b-date-range-picker__description", e.descriptionConditionalClasses]),
|
|
663
|
-
el:
|
|
657
|
+
el: "span"
|
|
664
658
|
}, {
|
|
665
659
|
default: k(() => [
|
|
666
|
-
|
|
660
|
+
E(j(e.description), 1)
|
|
667
661
|
]),
|
|
668
662
|
_: 1
|
|
669
|
-
}, 8, ["id", "class"
|
|
663
|
+
}, 8, ["id", "class"])) : b("", !0),
|
|
670
664
|
e.inputContainerRef ? (f(), O(v, {
|
|
671
665
|
key: 4,
|
|
672
666
|
id: e.datePickerContainerId,
|
|
@@ -675,12 +669,12 @@ function Da(e, t, s, d, E, g) {
|
|
|
675
669
|
"target-element": e.inputContainerRef,
|
|
676
670
|
"disable-focus-trap": !0,
|
|
677
671
|
"aria-label": e.popoverAriaLabel,
|
|
678
|
-
position:
|
|
672
|
+
position: "bottom-start",
|
|
679
673
|
"without-space": "",
|
|
680
674
|
"fit-content": ""
|
|
681
675
|
}, {
|
|
682
676
|
default: k(() => [
|
|
683
|
-
|
|
677
|
+
P(S, {
|
|
684
678
|
"allow-time-input": e.allowTimeInput,
|
|
685
679
|
"quick-select-ranges": e.quickSelectRanges,
|
|
686
680
|
value: e.value,
|
|
@@ -696,15 +690,15 @@ function Da(e, t, s, d, E, g) {
|
|
|
696
690
|
}, null, 8, ["allow-time-input", "quick-select-ranges", "value", "first-day-of-week", "is-date-disabled", "max-range", "number-of-months", "date-form-data", "onCustomRange", "onInput", "onError", "onFormDate"])
|
|
697
691
|
]),
|
|
698
692
|
_: 1
|
|
699
|
-
}, 8, ["id", "open", "target-element", "aria-label"
|
|
693
|
+
}, 8, ["id", "open", "target-element", "aria-label"])) : b("", !0)
|
|
700
694
|
])), [
|
|
701
695
|
[i, e.closeDateRangePicker]
|
|
702
696
|
]);
|
|
703
697
|
}
|
|
704
|
-
const
|
|
698
|
+
const Ma = /* @__PURE__ */ _e(sa, [["render", da], ["__scopeId", "data-v-18aefd79"]]);
|
|
705
699
|
export {
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
700
|
+
Ma as B,
|
|
701
|
+
A as D,
|
|
702
|
+
B as a
|
|
709
703
|
};
|
|
710
|
-
//# sourceMappingURL=index.
|
|
704
|
+
//# sourceMappingURL=index.c2a80208.js.map
|