@adyen/bento-vue2 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 -51
- package/dist/@types/packages/vue2/src/components/accordion/components/accordion-item.vue.d.ts +24 -28
- 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 +161 -150
- 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 +77 -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 +4 -6
- package/dist/@types/packages/vue2/src/components/checkbox/components/checkbox-group/checkbox-group.vue.d.ts +4 -4
- 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 +36 -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 +2 -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 +326 -14
- 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 +1 -21
- 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 +1 -21
- 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 +277 -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-avatar/dropdown-avatar.vue.d.ts +5 -5
- 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 +5 -6
- 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-currency/dropdown-currency.vue.d.ts +5 -5
- 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-payment-method/dropdown-payment-method.vue.d.ts +5 -5
- 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/components/variants/dropdown-tag/dropdown-tag.vue.d.ts +6 -6
- 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 +0 -26
- 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-range-filter/date-range-filter.vue.d.ts +0 -10
- package/dist/@types/packages/vue2/src/components/filter-bar/components/{base-filter/components/filter-bar-filter-button/filter-bar-filter-button.vue.d.ts → filter-bar-button/filter-bar-button.vue.d.ts} +17 -22
- 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/variants/select-country-filter/select-country-filter.vue.d.ts +2 -4
- package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/variants/select-tag-filter/select-tag-filter.vue.d.ts +2 -4
- 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 +3 -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 +50 -47
- 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/__test__/calendar-month-day-stub.vue.d.ts +1 -1
- 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/controls-group/controls-group.vue.d.ts +1 -1
- 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 -4
- package/dist/@types/packages/vue2/src/components/search-bar/search-bar.vue.d.ts +16 -339
- 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 +4 -7
- package/dist/@types/packages/vue2/src/components/textarea/textarea.vue.d.ts +5 -9
- package/dist/@types/packages/vue2/src/components/timeline/components/timeline-item/timeline-item.vue.d.ts +6 -12
- 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 +4 -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/print-development-warning.d.ts +1 -0
- package/dist/accordion.js +69 -177
- package/dist/accordion.js.map +1 -1
- package/dist/alert.js +57 -60
- 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/index23.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 -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 +110 -12
- package/dist/button.js.map +1 -1
- package/dist/card.js +66 -67
- package/dist/card.js.map +1 -1
- package/dist/checkbox.js +27 -26
- package/dist/checkbox.js.map +1 -1
- package/dist/chunks/{base-button.98379576.js → base-button.bd8fa976.js} +24 -27
- package/dist/chunks/base-button.bd8fa976.js.map +1 -0
- package/dist/chunks/base-modal.a365f260.js +207 -0
- package/dist/chunks/base-modal.a365f260.js.map +1 -0
- package/dist/chunks/{button.d0c9527d.js → button.fb307df3.js} +36 -39
- package/dist/chunks/button.fb307df3.js.map +1 -0
- package/dist/chunks/{calendar.0ae43a96.js → calendar.79ea42c1.js} +214 -217
- package/dist/chunks/calendar.79ea42c1.js.map +1 -0
- package/dist/chunks/checkbox.c7d791ed.js +173 -0
- package/dist/chunks/checkbox.c7d791ed.js.map +1 -0
- package/dist/chunks/{chevron-down.b851a6da.js → chevron-up.674ec2e5.js} +8 -8
- package/dist/chunks/chevron-up.674ec2e5.js.map +1 -0
- package/dist/chunks/{controls-group.b827382b.js → controls-group.5d3e04dd.js} +20 -20
- package/dist/chunks/controls-group.5d3e04dd.js.map +1 -0
- package/dist/chunks/{copy.5a4cbd4d.js → copy.ac796536.js} +37 -38
- package/dist/chunks/copy.ac796536.js.map +1 -0
- package/dist/chunks/{dropdown-default-textbox.819e43f7.js → dropdown-default-textbox.109c36d2.js} +38 -40
- package/dist/chunks/dropdown-default-textbox.109c36d2.js.map +1 -0
- package/dist/chunks/{dropdown.c05678d0.js → dropdown.fd93f0ce.js} +351 -335
- package/dist/chunks/dropdown.fd93f0ce.js.map +1 -0
- package/dist/chunks/error-message.3b3c33d4.js +47 -0
- package/dist/chunks/error-message.3b3c33d4.js.map +1 -0
- package/dist/chunks/{footer-actions.67642347.js → footer-actions.f02e8699.js} +23 -23
- package/dist/chunks/footer-actions.f02e8699.js.map +1 -0
- package/dist/chunks/get-slot-text.c1114034.js +9 -0
- package/dist/chunks/get-slot-text.c1114034.js.map +1 -0
- package/dist/chunks/{grid-layout.73f23b1b.js → grid-layout.b7e0d964.js} +2 -2
- package/dist/chunks/{grid-layout.73f23b1b.js.map → grid-layout.b7e0d964.js.map} +1 -1
- package/dist/chunks/{index.56858f4e.js → index.45295dd3.js} +23 -19
- package/dist/chunks/index.45295dd3.js.map +1 -0
- package/dist/chunks/{index.10aaf539.js → index.88ff49c2.js} +136 -142
- package/dist/chunks/index.88ff49c2.js.map +1 -0
- package/dist/chunks/{index.73d50fa6.js → index.9902cae4.js} +65 -68
- package/dist/chunks/{index.73d50fa6.js.map → index.9902cae4.js.map} +1 -1
- package/dist/chunks/{index.0cf00b47.js → index.bd734551.js} +35 -37
- package/dist/chunks/index.bd734551.js.map +1 -0
- package/dist/chunks/{index.133e4da0.js → index.c85a1ab9.js} +81 -79
- package/dist/chunks/{index.133e4da0.js.map → index.c85a1ab9.js.map} +1 -1
- package/dist/chunks/{index.f0f8ed98.js → index.c8f81673.js} +23 -26
- package/dist/chunks/index.c8f81673.js.map +1 -0
- package/dist/chunks/{listbox-option-tag.8d6cccac.js → listbox-option-tag.ec42431b.js} +32 -36
- package/dist/chunks/listbox-option-tag.ec42431b.js.map +1 -0
- package/dist/chunks/{listbox.116ed0c1.js → listbox.e792d2d6.js} +244 -251
- package/dist/chunks/listbox.e792d2d6.js.map +1 -0
- package/dist/chunks/loading-button.429c8416.js +86 -0
- package/dist/chunks/loading-button.429c8416.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.2aff4fa6.js → tooltip.a47ace87.js} +49 -52
- package/dist/chunks/tooltip.a47ace87.js.map +1 -0
- package/dist/chunks/use-default-slot-validator.cbdfe693.js +13 -0
- package/dist/chunks/use-default-slot-validator.cbdfe693.js.map +1 -0
- package/dist/chunks/use-has-slot.6052d56a.js +6 -0
- package/dist/chunks/use-has-slot.6052d56a.js.map +1 -0
- package/dist/code-snippet.js +469 -413
- package/dist/code-snippet.js.map +1 -1
- package/dist/country.js +492 -494
- package/dist/country.js.map +1 -1
- package/dist/currency.js +32 -35
- package/dist/currency.js.map +1 -1
- package/dist/data-grid.js +595 -603
- package/dist/data-grid.js.map +1 -1
- package/dist/date-picker.js +76 -80
- package/dist/date-picker.js.map +1 -1
- package/dist/date-range-picker.js +2 -2
- package/dist/date.js +1 -1
- package/dist/divider.js +1 -1
- package/dist/dropdown.js +37 -39
- package/dist/dropdown.js.map +1 -1
- package/dist/empty-state.js +134 -0
- package/dist/empty-state.js.map +1 -0
- package/dist/filter-bar.js +648 -638
- package/dist/filter-bar.js.map +1 -1
- package/dist/focus-trap.js +1 -1
- package/dist/form-layout.js +64 -64
- package/dist/form-layout.js.map +1 -1
- package/dist/header.js +61 -63
- package/dist/header.js.map +1 -1
- package/dist/image.js +82 -0
- package/dist/image.js.map +1 -0
- package/dist/index.js +216 -205
- package/dist/index.js.map +1 -1
- package/dist/info-icon.js +2 -2
- package/dist/input-field.js +99 -123
- package/dist/input-field.js.map +1 -1
- package/dist/internal.js +7 -7
- package/dist/link.js +27 -26
- package/dist/link.js.map +1 -1
- package/dist/loading-indicator.js +1 -1
- package/dist/menu.js +96 -104
- package/dist/menu.js.map +1 -1
- package/dist/modal.js +111 -264
- package/dist/modal.js.map +1 -1
- package/dist/pagination.js +148 -145
- package/dist/pagination.js.map +1 -1
- package/dist/payment-method.js +16 -18
- package/dist/payment-method.js.map +1 -1
- package/dist/popover.js +58 -54
- package/dist/popover.js.map +1 -1
- package/dist/popper-container.js +13 -17
- package/dist/popper-container.js.map +1 -1
- package/dist/radio-group.js +71 -72
- package/dist/radio-group.js.map +1 -1
- package/dist/search-bar.js +54 -66
- package/dist/search-bar.js.map +1 -1
- package/dist/segmented-control.js +68 -55
- package/dist/segmented-control.js.map +1 -1
- package/dist/sidepanel.js +65 -64
- package/dist/sidepanel.js.map +1 -1
- package/dist/status.js +20 -23
- package/dist/status.js.map +1 -1
- package/dist/structured-list.js +1 -1
- package/dist/summary-grid.js +110 -141
- package/dist/summary-grid.js.map +1 -1
- package/dist/tabs.js +68 -60
- package/dist/tabs.js.map +1 -1
- package/dist/tag.js +23 -26
- package/dist/tag.js.map +1 -1
- package/dist/textarea.js +97 -96
- package/dist/textarea.js.map +1 -1
- package/dist/timeline.js +125 -125
- package/dist/timeline.js.map +1 -1
- package/dist/toast.js +44 -48
- package/dist/toast.js.map +1 -1
- package/dist/toggle.js +54 -52
- package/dist/toggle.js.map +1 -1
- package/dist/typography.js +1 -1
- package/dist/web-types.json +651 -397
- package/package.json +9 -12
- 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/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.98379576.js.map +0 -1
- package/dist/chunks/button-actions.bd397c79.js +0 -104
- package/dist/chunks/button-actions.bd397c79.js.map +0 -1
- package/dist/chunks/button.d0c9527d.js.map +0 -1
- package/dist/chunks/calendar.0ae43a96.js.map +0 -1
- package/dist/chunks/checkbox.f8457c93.js +0 -164
- package/dist/chunks/checkbox.f8457c93.js.map +0 -1
- package/dist/chunks/chevron-down.b851a6da.js.map +0 -1
- package/dist/chunks/controls-group.b827382b.js.map +0 -1
- package/dist/chunks/copy.5a4cbd4d.js.map +0 -1
- package/dist/chunks/dropdown-default-textbox.819e43f7.js.map +0 -1
- package/dist/chunks/dropdown.c05678d0.js.map +0 -1
- package/dist/chunks/error-message.0433b539.js +0 -47
- package/dist/chunks/error-message.0433b539.js.map +0 -1
- package/dist/chunks/footer-actions.67642347.js.map +0 -1
- package/dist/chunks/get-slot-text.e5c766d0.js +0 -9
- package/dist/chunks/get-slot-text.e5c766d0.js.map +0 -1
- package/dist/chunks/index.0cf00b47.js.map +0 -1
- package/dist/chunks/index.10aaf539.js.map +0 -1
- package/dist/chunks/index.56858f4e.js.map +0 -1
- package/dist/chunks/index.f0f8ed98.js.map +0 -1
- package/dist/chunks/listbox-option-tag.8d6cccac.js.map +0 -1
- package/dist/chunks/listbox.116ed0c1.js.map +0 -1
- package/dist/chunks/loading-button.1c201f87.js +0 -84
- package/dist/chunks/loading-button.1c201f87.js.map +0 -1
- package/dist/chunks/tooltip.2aff4fa6.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,13 +1,13 @@
|
|
|
1
|
-
import { defineComponent as te, computed as
|
|
1
|
+
import { defineComponent as te, computed as b, ref as p, watch as C, nextTick as me, toRef as U, reactive as ve } from "vue";
|
|
2
2
|
import { r as y, t as _, g as le, e as ee, d as _e, f as ge } from "./index.f55fdc32.js";
|
|
3
|
-
import { t as E, B as ye, a as he, f as ie } from "./index.
|
|
4
|
-
import {
|
|
5
|
-
import { B as
|
|
6
|
-
import { u as
|
|
7
|
-
import { g as
|
|
8
|
-
import { C as
|
|
3
|
+
import { t as E, B as ye, a as he, f as ie } from "./index.9902cae4.js";
|
|
4
|
+
import { a as Ne } from "./button.fb307df3.js";
|
|
5
|
+
import { B as Ee } from "./index.45295dd3.js";
|
|
6
|
+
import { u as Te } from "./i18n.155748d6.js";
|
|
7
|
+
import { g as Me } from "./unique-id.a2a2b458.js";
|
|
8
|
+
import { C as Se, a as be } from "./chevron-right.3b826337.js";
|
|
9
9
|
import { n as ae } from "./_plugin-vue2_normalizer.71e2aa87.js";
|
|
10
|
-
import { a as
|
|
10
|
+
import { a as Oe } from "./debounce.f8d92e44.js";
|
|
11
11
|
import "../assets/calendar.css";
|
|
12
12
|
function Y(e, t) {
|
|
13
13
|
y(2, arguments);
|
|
@@ -23,73 +23,73 @@ function x(e, t) {
|
|
|
23
23
|
return a;
|
|
24
24
|
var o = a.getDate(), r = new Date(a.getTime());
|
|
25
25
|
r.setMonth(a.getMonth() + n + 1, 0);
|
|
26
|
-
var
|
|
27
|
-
return o >=
|
|
26
|
+
var s = r.getDate();
|
|
27
|
+
return o >= s ? r : (a.setFullYear(r.getFullYear(), r.getMonth(), o), a);
|
|
28
28
|
}
|
|
29
|
-
function
|
|
29
|
+
function ke(e, t) {
|
|
30
30
|
y(1, arguments);
|
|
31
|
-
var a = t || {}, n = a.locale, o = n && n.options && n.options.weekStartsOn, r = o == null ? 0 : E(o),
|
|
32
|
-
if (!(
|
|
31
|
+
var a = t || {}, n = a.locale, o = n && n.options && n.options.weekStartsOn, r = o == null ? 0 : E(o), s = a.weekStartsOn == null ? r : E(a.weekStartsOn);
|
|
32
|
+
if (!(s >= 0 && s <= 6))
|
|
33
33
|
throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
|
|
34
|
-
var i = _(e), v = i.getDay(), l = (v <
|
|
34
|
+
var i = _(e), v = i.getDay(), l = (v < s ? 7 : 0) + v - s;
|
|
35
35
|
return i.setDate(i.getDate() - l), i.setHours(0, 0, 0, 0), i;
|
|
36
36
|
}
|
|
37
|
-
function
|
|
37
|
+
function I(e) {
|
|
38
38
|
y(1, arguments);
|
|
39
39
|
var t = _(e);
|
|
40
40
|
return t.setHours(0, 0, 0, 0), t;
|
|
41
41
|
}
|
|
42
|
-
var
|
|
43
|
-
function
|
|
42
|
+
var we = 864e5;
|
|
43
|
+
function Ie(e, t) {
|
|
44
44
|
y(2, arguments);
|
|
45
|
-
var a =
|
|
46
|
-
return Math.round((o - r) /
|
|
45
|
+
var a = I(e), n = I(t), o = a.getTime() - le(a), r = n.getTime() - le(n);
|
|
46
|
+
return Math.round((o - r) / we);
|
|
47
47
|
}
|
|
48
|
-
function
|
|
48
|
+
function B(e, t) {
|
|
49
49
|
y(2, arguments);
|
|
50
|
-
var a =
|
|
50
|
+
var a = I(e), n = I(t);
|
|
51
51
|
return a.getTime() === n.getTime();
|
|
52
52
|
}
|
|
53
53
|
function ce(e, t) {
|
|
54
54
|
var a = e.getFullYear() - t.getFullYear() || e.getMonth() - t.getMonth() || e.getDate() - t.getDate() || e.getHours() - t.getHours() || e.getMinutes() - t.getMinutes() || e.getSeconds() - t.getSeconds() || e.getMilliseconds() - t.getMilliseconds();
|
|
55
55
|
return a < 0 ? -1 : a > 0 ? 1 : a;
|
|
56
56
|
}
|
|
57
|
-
function
|
|
57
|
+
function pe(e, t) {
|
|
58
58
|
y(2, arguments);
|
|
59
|
-
var a = _(e), n = _(t), o = ce(a, n), r = Math.abs(
|
|
59
|
+
var a = _(e), n = _(t), o = ce(a, n), r = Math.abs(Ie(a, n));
|
|
60
60
|
a.setDate(a.getDate() - o * r);
|
|
61
|
-
var
|
|
61
|
+
var s = +(ce(a, n) === -o), i = o * (r - s);
|
|
62
62
|
return i === 0 ? 0 : i;
|
|
63
63
|
}
|
|
64
|
-
function
|
|
64
|
+
function xe(e) {
|
|
65
65
|
y(1, arguments);
|
|
66
66
|
var t = _(e);
|
|
67
67
|
return t.setDate(1), t.setHours(0, 0, 0, 0), t;
|
|
68
68
|
}
|
|
69
|
-
function
|
|
69
|
+
function Re(e, t) {
|
|
70
70
|
y(1, arguments);
|
|
71
|
-
var a = t || {}, n = a.locale, o = n && n.options && n.options.weekStartsOn, r = o == null ? 0 : E(o),
|
|
72
|
-
if (!(
|
|
71
|
+
var a = t || {}, n = a.locale, o = n && n.options && n.options.weekStartsOn, r = o == null ? 0 : E(o), s = a.weekStartsOn == null ? r : E(a.weekStartsOn);
|
|
72
|
+
if (!(s >= 0 && s <= 6))
|
|
73
73
|
throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
|
|
74
|
-
var i = _(e), v = i.getDay(), l = (v <
|
|
74
|
+
var i = _(e), v = i.getDay(), l = (v < s ? -7 : 0) + 6 - (v - s);
|
|
75
75
|
return i.setDate(i.getDate() + l), i.setHours(23, 59, 59, 999), i;
|
|
76
76
|
}
|
|
77
|
-
function
|
|
77
|
+
function Pe(e, t) {
|
|
78
78
|
y(2, arguments);
|
|
79
79
|
var a = E(t);
|
|
80
80
|
return Y(e, -a);
|
|
81
81
|
}
|
|
82
|
-
function
|
|
82
|
+
function G(e, t) {
|
|
83
83
|
y(2, arguments);
|
|
84
84
|
var a = E(t);
|
|
85
85
|
return x(e, -a);
|
|
86
86
|
}
|
|
87
|
-
function
|
|
87
|
+
function Ae(e, t) {
|
|
88
88
|
y(2, arguments);
|
|
89
89
|
var a = _(e), n = _(t);
|
|
90
90
|
return a.getTime() > n.getTime();
|
|
91
91
|
}
|
|
92
|
-
function
|
|
92
|
+
function Le(e, t) {
|
|
93
93
|
y(2, arguments);
|
|
94
94
|
var a = _(e), n = _(t);
|
|
95
95
|
return a.getTime() < n.getTime();
|
|
@@ -101,16 +101,16 @@ function de(e, t) {
|
|
|
101
101
|
throw new RangeError("Invalid interval");
|
|
102
102
|
return a >= n && a <= o;
|
|
103
103
|
}
|
|
104
|
-
function
|
|
104
|
+
function Ue(e, t, a) {
|
|
105
105
|
y(2, arguments);
|
|
106
|
-
var n = a || {}, o = n.locale, r = o && o.options && o.options.weekStartsOn,
|
|
106
|
+
var n = a || {}, o = n.locale, r = o && o.options && o.options.weekStartsOn, s = r == null ? 0 : E(r), i = n.weekStartsOn == null ? s : E(n.weekStartsOn);
|
|
107
107
|
if (!(i >= 0 && i <= 6))
|
|
108
108
|
throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
|
|
109
|
-
var v = _(e), l = E(t), c = v.getDay(),
|
|
109
|
+
var v = _(e), l = E(t), c = v.getDay(), T = l % 7, f = (T + 7) % 7, D = 7 - i, g = l < 0 || l > 6 ? l - (c + D) % 7 : (f + D) % 7 - (c + D) % 7;
|
|
110
110
|
return Y(v, g);
|
|
111
111
|
}
|
|
112
|
-
var h = /* @__PURE__ */ ((e) => (e.SINGLE = "single", e.MIDDLE = "middle", e.BEGINNING = "beginning", e.END = "end", e))(h || {}), k = /* @__PURE__ */ ((e) => (e.SINGLE = "single", e.MIDDLE = "middle", e.BEGINNING = "beginning", e.END = "end", e.SELECTED = "selected", e.UNSELECTED = "unselected", e.CURRENT_DAY = "current-day", e.DISABLED = "disabled", e))(k || {}),
|
|
113
|
-
const
|
|
112
|
+
var h = /* @__PURE__ */ ((e) => (e.SINGLE = "single", e.MIDDLE = "middle", e.BEGINNING = "beginning", e.END = "end", e))(h || {}), k = /* @__PURE__ */ ((e) => (e.SINGLE = "single", e.MIDDLE = "middle", e.BEGINNING = "beginning", e.END = "end", e.SELECTED = "selected", e.UNSELECTED = "unselected", e.CURRENT_DAY = "current-day", e.DISABLED = "disabled", e))(k || {}), A = /* @__PURE__ */ ((e) => (e.CLICK = "click", e.MOUSE_OVER = "mouseover", e))(A || {});
|
|
113
|
+
const Ce = te({
|
|
114
114
|
name: "calendar-month-day",
|
|
115
115
|
components: { BentoDate: ye },
|
|
116
116
|
inheritAttrs: !0,
|
|
@@ -137,15 +137,15 @@ const We = te({
|
|
|
137
137
|
validator: (e) => Object.values(h).includes(e)
|
|
138
138
|
}
|
|
139
139
|
},
|
|
140
|
-
emits: [
|
|
140
|
+
emits: [A.CLICK, A.MOUSE_OVER],
|
|
141
141
|
setup(e, { emit: t }) {
|
|
142
|
-
const a =
|
|
142
|
+
const a = b(() => {
|
|
143
143
|
const r = /* @__PURE__ */ new Date();
|
|
144
144
|
return e.day.getDate() === r.getDate() && e.day.getMonth() === r.getMonth() && e.day.getFullYear() === r.getFullYear();
|
|
145
145
|
});
|
|
146
146
|
return {
|
|
147
147
|
// Values
|
|
148
|
-
conditionalClasses:
|
|
148
|
+
conditionalClasses: b(() => ({
|
|
149
149
|
// Variants
|
|
150
150
|
[`b-calendar-month-day--${k.BEGINNING}`]: e.variant === h.BEGINNING,
|
|
151
151
|
[`b-calendar-month-day--${k.MIDDLE}`]: e.variant === h.MIDDLE,
|
|
@@ -161,49 +161,49 @@ const We = te({
|
|
|
161
161
|
})),
|
|
162
162
|
// Enums
|
|
163
163
|
BentoDateFormat: he,
|
|
164
|
-
CalendarMonthDayEvent:
|
|
164
|
+
CalendarMonthDayEvent: A,
|
|
165
165
|
// Events
|
|
166
|
-
onClick: (r) => {
|
|
167
|
-
e.disabled
|
|
166
|
+
onClick: (r, s) => {
|
|
167
|
+
e.disabled ? (r.preventDefault(), r.stopPropagation()) : t(A.CLICK, s, e.day);
|
|
168
168
|
}
|
|
169
169
|
};
|
|
170
170
|
}
|
|
171
171
|
});
|
|
172
|
-
var
|
|
172
|
+
var Ye = function() {
|
|
173
173
|
var t = this, a = t._self._c;
|
|
174
|
-
return t._self._setupProxy, a("td", { staticClass: "b-calendar-month-day", class: t.conditionalClasses, attrs: { tabindex: t.selected ? "0" : "-1", "aria-selected": t.selected ? t.selected : void 0 }, on: { click: () => t.onClick(t.day), mouseover: function(n) {
|
|
174
|
+
return t._self._setupProxy, a("td", { staticClass: "b-calendar-month-day", class: t.conditionalClasses, attrs: { tabindex: t.selected ? "0" : "-1", "aria-selected": t.selected ? t.selected : void 0 }, on: { click: (n) => t.onClick(n, t.day), mouseover: function(n) {
|
|
175
175
|
return t.$emit(t.CalendarMonthDayEvent.MOUSE_OVER);
|
|
176
176
|
}, keydown: function(n) {
|
|
177
|
-
return !n.type.indexOf("key") && t._k(n.keyCode, "space", 32, n.key, [" ", "Spacebar"]) && t._k(n.keyCode, "enter", 13, n.key, "Enter") ? null : (() => t.onClick(t.day)).apply(null, arguments);
|
|
177
|
+
return !n.type.indexOf("key") && t._k(n.keyCode, "space", 32, n.key, [" ", "Spacebar"]) && t._k(n.keyCode, "enter", 13, n.key, "Enter") ? null : ((o) => t.onClick(o, t.day)).apply(null, arguments);
|
|
178
178
|
} } }, [a("div", { staticClass: "b-calendar-month-day__wrapper" }, [a("bento-date", { staticClass: "b-calendar-month-day__label", attrs: { date: t.day, format: t.BentoDateFormat.DAY_OF_MONTH } })], 1)]);
|
|
179
|
-
},
|
|
179
|
+
}, We = [], $e = /* @__PURE__ */ ae(
|
|
180
|
+
Ce,
|
|
181
|
+
Ye,
|
|
180
182
|
We,
|
|
181
|
-
$e,
|
|
182
|
-
Ve,
|
|
183
183
|
!1,
|
|
184
184
|
null,
|
|
185
|
-
"
|
|
185
|
+
"404de012",
|
|
186
186
|
null,
|
|
187
187
|
null
|
|
188
188
|
);
|
|
189
|
-
const
|
|
190
|
-
var S = /* @__PURE__ */ ((e) => (e.INPUT = "input", e.MOUSE_OVER = "mouseover", e.NEXT_MONTH = "nextMonth", e.PREVIOUS_MONTH = "previousMonth", e))(S || {}),
|
|
191
|
-
function
|
|
189
|
+
const Be = $e.exports;
|
|
190
|
+
var S = /* @__PURE__ */ ((e) => (e.INPUT = "input", e.MOUSE_OVER = "mouseover", e.NEXT_MONTH = "nextMonth", e.PREVIOUS_MONTH = "previousMonth", e))(S || {}), N = /* @__PURE__ */ ((e) => (e.FIRST = "first", e.LAST = "last", e.MIDDLE = "middle", e.UNIQUE = "unique", e))(N || {}), L = /* @__PURE__ */ ((e) => (e[e.MONDAY = 1] = "MONDAY", e[e.SATURDAY = 6] = "SATURDAY", e[e.SUNDAY = 0] = "SUNDAY", e))(L || {});
|
|
191
|
+
function Fe(e) {
|
|
192
192
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
193
193
|
}
|
|
194
|
-
var
|
|
194
|
+
var H = {}, Ge = {
|
|
195
195
|
get exports() {
|
|
196
|
-
return
|
|
196
|
+
return H;
|
|
197
197
|
},
|
|
198
198
|
set exports(e) {
|
|
199
|
-
|
|
199
|
+
H = e;
|
|
200
200
|
}
|
|
201
|
-
},
|
|
201
|
+
}, W = {}, He = {
|
|
202
202
|
get exports() {
|
|
203
|
-
return
|
|
203
|
+
return W;
|
|
204
204
|
},
|
|
205
205
|
set exports(e) {
|
|
206
|
-
|
|
206
|
+
W = e;
|
|
207
207
|
}
|
|
208
208
|
};
|
|
209
209
|
(function(e, t) {
|
|
@@ -217,22 +217,22 @@ var G = {}, je = {
|
|
|
217
217
|
return isNaN(o) ? o : o < 0 ? Math.ceil(o) : Math.floor(o);
|
|
218
218
|
}
|
|
219
219
|
e.exports = t.default;
|
|
220
|
-
})(
|
|
221
|
-
var
|
|
220
|
+
})(He, W);
|
|
221
|
+
var V = {}, Ve = {
|
|
222
222
|
get exports() {
|
|
223
|
-
return
|
|
223
|
+
return V;
|
|
224
224
|
},
|
|
225
225
|
set exports(e) {
|
|
226
|
-
|
|
226
|
+
V = e;
|
|
227
227
|
}
|
|
228
|
-
}, j = {},
|
|
228
|
+
}, j = {}, je = {
|
|
229
229
|
get exports() {
|
|
230
230
|
return j;
|
|
231
231
|
},
|
|
232
232
|
set exports(e) {
|
|
233
233
|
j = e;
|
|
234
234
|
}
|
|
235
|
-
}, R = {},
|
|
235
|
+
}, R = {}, qe = {
|
|
236
236
|
get exports() {
|
|
237
237
|
return R;
|
|
238
238
|
},
|
|
@@ -249,7 +249,7 @@ var H = {}, Qe = {
|
|
|
249
249
|
throw new TypeError(n + " argument" + (n > 1 ? "s" : "") + " required, but only " + o.length + " present");
|
|
250
250
|
}
|
|
251
251
|
e.exports = t.default;
|
|
252
|
-
})(
|
|
252
|
+
})(qe, R);
|
|
253
253
|
(function(e, t) {
|
|
254
254
|
Object.defineProperty(t, "__esModule", {
|
|
255
255
|
value: !0
|
|
@@ -260,42 +260,42 @@ var H = {}, Qe = {
|
|
|
260
260
|
}
|
|
261
261
|
function o(r) {
|
|
262
262
|
(0, a.default)(1, arguments);
|
|
263
|
-
var
|
|
264
|
-
return r instanceof Date || typeof r == "object" &&
|
|
263
|
+
var s = Object.prototype.toString.call(r);
|
|
264
|
+
return r instanceof Date || typeof r == "object" && s === "[object Date]" ? new Date(r.getTime()) : typeof r == "number" || s === "[object Number]" ? new Date(r) : ((typeof r == "string" || s === "[object String]") && typeof console < "u" && (console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://git.io/fjule"), console.warn(new Error().stack)), /* @__PURE__ */ new Date(NaN));
|
|
265
265
|
}
|
|
266
266
|
e.exports = t.default;
|
|
267
|
-
})(
|
|
267
|
+
})(je, j);
|
|
268
268
|
(function(e, t) {
|
|
269
269
|
Object.defineProperty(t, "__esModule", {
|
|
270
270
|
value: !0
|
|
271
|
-
}), t.default =
|
|
272
|
-
var a = r(
|
|
271
|
+
}), t.default = s;
|
|
272
|
+
var a = r(W), n = r(j), o = r(R);
|
|
273
273
|
function r(i) {
|
|
274
274
|
return i && i.__esModule ? i : { default: i };
|
|
275
275
|
}
|
|
276
|
-
function
|
|
276
|
+
function s(i, v) {
|
|
277
277
|
(0, o.default)(2, arguments);
|
|
278
278
|
var l = (0, n.default)(i), c = (0, a.default)(v);
|
|
279
279
|
return isNaN(c) ? /* @__PURE__ */ new Date(NaN) : (c && l.setDate(l.getDate() + c), l);
|
|
280
280
|
}
|
|
281
281
|
e.exports = t.default;
|
|
282
|
-
})(
|
|
282
|
+
})(Ve, V);
|
|
283
283
|
(function(e, t) {
|
|
284
284
|
Object.defineProperty(t, "__esModule", {
|
|
285
285
|
value: !0
|
|
286
|
-
}), t.default =
|
|
287
|
-
var a = r(
|
|
286
|
+
}), t.default = s;
|
|
287
|
+
var a = r(W), n = r(V), o = r(R);
|
|
288
288
|
function r(i) {
|
|
289
289
|
return i && i.__esModule ? i : { default: i };
|
|
290
290
|
}
|
|
291
|
-
function
|
|
291
|
+
function s(i, v) {
|
|
292
292
|
(0, o.default)(2, arguments);
|
|
293
293
|
var l = (0, a.default)(v);
|
|
294
294
|
return (0, n.default)(i, -l);
|
|
295
295
|
}
|
|
296
296
|
e.exports = t.default;
|
|
297
|
-
})(
|
|
298
|
-
const fe = /* @__PURE__ */
|
|
297
|
+
})(Ge, H);
|
|
298
|
+
const fe = /* @__PURE__ */ Fe(H), Qe = ({ currentSelectedDate: e, month: t, isDateDisabled: a, firstDayOfWeek: n }, o) => {
|
|
299
299
|
const r = p(new Date(t.value));
|
|
300
300
|
C(
|
|
301
301
|
t,
|
|
@@ -304,29 +304,29 @@ const fe = /* @__PURE__ */ He(G), ze = ({ currentSelectedDate: e, month: t, isDa
|
|
|
304
304
|
},
|
|
305
305
|
{ immediate: !0 }
|
|
306
306
|
);
|
|
307
|
-
const
|
|
307
|
+
const s = p(new Date(e.value));
|
|
308
308
|
C(e, () => {
|
|
309
|
-
|
|
309
|
+
s.value = e.value;
|
|
310
310
|
});
|
|
311
|
-
const i = p({}), v = (
|
|
312
|
-
i.value[
|
|
311
|
+
const i = p({}), v = (u) => (d) => {
|
|
312
|
+
i.value[u.toDateString()] = d;
|
|
313
313
|
}, l = () => {
|
|
314
314
|
i.value = {};
|
|
315
|
-
}, c = (
|
|
316
|
-
r.value = x(r.value,
|
|
317
|
-
},
|
|
318
|
-
r.value =
|
|
319
|
-
}, f = (
|
|
320
|
-
const d = !!i.value[
|
|
321
|
-
|
|
322
|
-
}, D = (
|
|
323
|
-
|
|
324
|
-
}, g = ({ nextDate:
|
|
325
|
-
if (
|
|
315
|
+
}, c = (u = 1) => {
|
|
316
|
+
r.value = x(r.value, u), o(S.NEXT_MONTH, u), l();
|
|
317
|
+
}, T = (u = 1) => {
|
|
318
|
+
r.value = G(r.value, u), o(S.PREVIOUS_MONTH, u), l();
|
|
319
|
+
}, f = (u) => {
|
|
320
|
+
const d = !!i.value[u == null ? void 0 : u.toDateString()];
|
|
321
|
+
u && d && i.value[u.toDateString()].$el.focus();
|
|
322
|
+
}, D = (u) => {
|
|
323
|
+
u.preventDefault(), u.stopImmediatePropagation(), u.stopPropagation();
|
|
324
|
+
}, g = ({ nextDate: u, isIncreasingDays: d, amountOfMonths: M, isCalendarButtonsNav: $ }) => {
|
|
325
|
+
if (!$ && a && a(u))
|
|
326
326
|
return;
|
|
327
|
-
|
|
328
|
-
const Z =
|
|
329
|
-
a && a(
|
|
327
|
+
u.getMonth() === s.value.getMonth() && u.getFullYear() === s.value.getFullYear() ? (s.value = u, f(u)) : (d ? c(M) : T(M), me(() => {
|
|
328
|
+
const Z = u.getMonth() === r.value.getMonth() && u.getFullYear() === r.value.getFullYear();
|
|
329
|
+
a && a(u) || !Z || (s.value = u, $ || f(u));
|
|
330
330
|
}));
|
|
331
331
|
};
|
|
332
332
|
return {
|
|
@@ -337,7 +337,7 @@ const fe = /* @__PURE__ */ He(G), ze = ({ currentSelectedDate: e, month: t, isDa
|
|
|
337
337
|
* Month navigation
|
|
338
338
|
*/
|
|
339
339
|
showNextMonth: c,
|
|
340
|
-
showPreviousMonth:
|
|
340
|
+
showPreviousMonth: T,
|
|
341
341
|
/**
|
|
342
342
|
* Focus method
|
|
343
343
|
*/
|
|
@@ -346,105 +346,105 @@ const fe = /* @__PURE__ */ He(G), ze = ({ currentSelectedDate: e, month: t, isDa
|
|
|
346
346
|
* Day navigation
|
|
347
347
|
*/
|
|
348
348
|
// ArrowRight
|
|
349
|
-
moveToNextDay: (
|
|
350
|
-
D(
|
|
349
|
+
moveToNextDay: (u) => {
|
|
350
|
+
D(u);
|
|
351
351
|
const d = 1;
|
|
352
|
-
g({ nextDate: Y(
|
|
352
|
+
g({ nextDate: Y(s.value, d), isIncreasingDays: !0 });
|
|
353
353
|
},
|
|
354
354
|
// ArrowLeft
|
|
355
|
-
moveToPreviousDay: (
|
|
356
|
-
D(
|
|
355
|
+
moveToPreviousDay: (u) => {
|
|
356
|
+
D(u);
|
|
357
357
|
const d = 1;
|
|
358
|
-
g({ nextDate: fe(
|
|
358
|
+
g({ nextDate: fe(s.value, d), isIncreasingDays: !1 });
|
|
359
359
|
},
|
|
360
360
|
// ArrowUp
|
|
361
|
-
moveToPreviousWeek: (
|
|
362
|
-
D(
|
|
361
|
+
moveToPreviousWeek: (u) => {
|
|
362
|
+
D(u);
|
|
363
363
|
const d = 7;
|
|
364
|
-
g({ nextDate: fe(
|
|
364
|
+
g({ nextDate: fe(s.value, d), isIncreasingDays: !1 });
|
|
365
365
|
},
|
|
366
366
|
// ArrowDown
|
|
367
|
-
moveToNextWeek: (
|
|
368
|
-
D(
|
|
367
|
+
moveToNextWeek: (u) => {
|
|
368
|
+
D(u);
|
|
369
369
|
const d = 7;
|
|
370
|
-
g({ nextDate: Y(
|
|
370
|
+
g({ nextDate: Y(s.value, d), isIncreasingDays: !0 });
|
|
371
371
|
},
|
|
372
372
|
// Home
|
|
373
|
-
moveToFirstDayOfWeek: (
|
|
374
|
-
D(
|
|
375
|
-
nextDate:
|
|
373
|
+
moveToFirstDayOfWeek: (u) => {
|
|
374
|
+
D(u), g({
|
|
375
|
+
nextDate: ke(s.value, { weekStartsOn: n }),
|
|
376
376
|
isIncreasingDays: !1
|
|
377
377
|
});
|
|
378
378
|
},
|
|
379
379
|
// End
|
|
380
|
-
moveToLastDayOfWeek: (
|
|
381
|
-
D(
|
|
382
|
-
nextDate:
|
|
380
|
+
moveToLastDayOfWeek: (u) => {
|
|
381
|
+
D(u), g({
|
|
382
|
+
nextDate: Re(s.value, { weekStartsOn: n }),
|
|
383
383
|
isIncreasingDays: !0
|
|
384
384
|
});
|
|
385
385
|
},
|
|
386
386
|
// PageUp
|
|
387
|
-
moveToPreviousMonth: (
|
|
388
|
-
D(
|
|
389
|
-
const
|
|
387
|
+
moveToPreviousMonth: (u, d = !1) => {
|
|
388
|
+
D(u);
|
|
389
|
+
const M = 1;
|
|
390
390
|
g({
|
|
391
|
-
nextDate:
|
|
391
|
+
nextDate: G(s.value, M),
|
|
392
392
|
isIncreasingDays: !1,
|
|
393
|
-
amountOfMonths:
|
|
393
|
+
amountOfMonths: M,
|
|
394
394
|
isCalendarButtonsNav: d
|
|
395
395
|
});
|
|
396
396
|
},
|
|
397
397
|
// Shift+PageUp
|
|
398
|
-
moveToPreviousYear: (
|
|
399
|
-
D(
|
|
398
|
+
moveToPreviousYear: (u) => {
|
|
399
|
+
D(u);
|
|
400
400
|
const d = 12;
|
|
401
401
|
g({
|
|
402
|
-
nextDate:
|
|
402
|
+
nextDate: G(s.value, d),
|
|
403
403
|
isIncreasingDays: !1,
|
|
404
404
|
amountOfMonths: d
|
|
405
405
|
});
|
|
406
406
|
},
|
|
407
407
|
// PageDown
|
|
408
|
-
moveToNextMonth: (
|
|
409
|
-
D(
|
|
410
|
-
const
|
|
408
|
+
moveToNextMonth: (u, d = !1) => {
|
|
409
|
+
D(u);
|
|
410
|
+
const M = 1;
|
|
411
411
|
g({
|
|
412
|
-
nextDate: x(
|
|
412
|
+
nextDate: x(s.value, M),
|
|
413
413
|
isIncreasingDays: !0,
|
|
414
|
-
amountOfMonths:
|
|
414
|
+
amountOfMonths: M,
|
|
415
415
|
isCalendarButtonsNav: d
|
|
416
416
|
});
|
|
417
417
|
},
|
|
418
418
|
// Shift-PageDown
|
|
419
|
-
moveToNextYear: (
|
|
420
|
-
D(
|
|
419
|
+
moveToNextYear: (u) => {
|
|
420
|
+
D(u);
|
|
421
421
|
const d = 12;
|
|
422
422
|
g({
|
|
423
|
-
nextDate: x(
|
|
423
|
+
nextDate: x(s.value, d),
|
|
424
424
|
isIncreasingDays: !0,
|
|
425
425
|
amountOfMonths: d
|
|
426
426
|
});
|
|
427
427
|
},
|
|
428
428
|
// Values
|
|
429
|
-
internalDate:
|
|
429
|
+
internalDate: s,
|
|
430
430
|
baseDate: r
|
|
431
431
|
};
|
|
432
|
-
},
|
|
432
|
+
}, Ke = {
|
|
433
433
|
"en-US": {
|
|
434
434
|
nextMonth: "Next month",
|
|
435
435
|
previousMonth: "Previous month"
|
|
436
436
|
}
|
|
437
|
-
},
|
|
438
|
-
i18n: { messages:
|
|
437
|
+
}, Xe = te({
|
|
438
|
+
i18n: { messages: Ke },
|
|
439
439
|
name: "calendar-month",
|
|
440
440
|
components: {
|
|
441
|
-
BentoButton:
|
|
442
|
-
BentoTypography:
|
|
443
|
-
CalendarMonthDay:
|
|
444
|
-
ChevronLeftIcon:
|
|
445
|
-
ChevronRightIcon:
|
|
441
|
+
BentoButton: Ne,
|
|
442
|
+
BentoTypography: Ee,
|
|
443
|
+
CalendarMonthDay: Be,
|
|
444
|
+
ChevronLeftIcon: Se,
|
|
445
|
+
ChevronRightIcon: be
|
|
446
446
|
},
|
|
447
|
-
directives: { BentoKeyboardNavigationDirective:
|
|
447
|
+
directives: { BentoKeyboardNavigationDirective: Oe },
|
|
448
448
|
props: {
|
|
449
449
|
/**
|
|
450
450
|
* end of the selected range
|
|
@@ -477,8 +477,8 @@ const fe = /* @__PURE__ */ He(G), ze = ({ currentSelectedDate: e, month: t, isDa
|
|
|
477
477
|
*/
|
|
478
478
|
position: {
|
|
479
479
|
type: String,
|
|
480
|
-
default:
|
|
481
|
-
validator: (e) => Object.values(
|
|
480
|
+
default: N.UNIQUE,
|
|
481
|
+
validator: (e) => Object.values(N).includes(e)
|
|
482
482
|
},
|
|
483
483
|
/**
|
|
484
484
|
* start of the selected range
|
|
@@ -493,9 +493,9 @@ const fe = /* @__PURE__ */ He(G), ze = ({ currentSelectedDate: e, month: t, isDa
|
|
|
493
493
|
S.MOUSE_OVER
|
|
494
494
|
],
|
|
495
495
|
setup(e, { emit: t }) {
|
|
496
|
-
const { locale: a } =
|
|
496
|
+
const { locale: a } = Te(), n = { de: _e, enUS: ee, fr: ge }, o = Me("bento-date-picker-month-label"), {
|
|
497
497
|
internalDate: r,
|
|
498
|
-
baseDate:
|
|
498
|
+
baseDate: s,
|
|
499
499
|
// Calendar refs
|
|
500
500
|
addDayRef: i,
|
|
501
501
|
// Month navigation
|
|
@@ -503,7 +503,7 @@ const fe = /* @__PURE__ */ He(G), ze = ({ currentSelectedDate: e, month: t, isDa
|
|
|
503
503
|
showPreviousMonth: l,
|
|
504
504
|
// Day navigation
|
|
505
505
|
moveToNextDay: c,
|
|
506
|
-
moveToPreviousDay:
|
|
506
|
+
moveToPreviousDay: T,
|
|
507
507
|
moveToPreviousWeek: f,
|
|
508
508
|
moveToNextWeek: D,
|
|
509
509
|
moveToFirstDayOfWeek: g,
|
|
@@ -513,7 +513,7 @@ const fe = /* @__PURE__ */ He(G), ze = ({ currentSelectedDate: e, month: t, isDa
|
|
|
513
513
|
moveToNextMonth: X,
|
|
514
514
|
moveToNextYear: z,
|
|
515
515
|
focusOnDate: ne
|
|
516
|
-
} =
|
|
516
|
+
} = Qe(
|
|
517
517
|
{
|
|
518
518
|
currentSelectedDate: U(e, "startDate"),
|
|
519
519
|
month: U(e, "month"),
|
|
@@ -521,45 +521,45 @@ const fe = /* @__PURE__ */ He(G), ze = ({ currentSelectedDate: e, month: t, isDa
|
|
|
521
521
|
firstDayOfWeek: e.firstDayOfWeek
|
|
522
522
|
},
|
|
523
523
|
t
|
|
524
|
-
), J =
|
|
524
|
+
), J = b(
|
|
525
525
|
() => Object.values(L).includes(e.firstDayOfWeek) ? e.firstDayOfWeek : L.MONDAY
|
|
526
|
-
), re =
|
|
527
|
-
() => [
|
|
528
|
-
), oe =
|
|
529
|
-
() => [
|
|
530
|
-
), se =
|
|
531
|
-
() => ie(
|
|
526
|
+
), re = b(
|
|
527
|
+
() => [N.FIRST, N.UNIQUE].includes(e.position)
|
|
528
|
+
), oe = b(
|
|
529
|
+
() => [N.LAST, N.UNIQUE].includes(e.position)
|
|
530
|
+
), se = b(
|
|
531
|
+
() => ie(s.value, "MMMM yyyy", {
|
|
532
532
|
locale: n[a.value.substring(0, 2)] || ee
|
|
533
533
|
})
|
|
534
|
-
),
|
|
535
|
-
() => new Array(7).fill(/* @__PURE__ */ new Date()).map((m,
|
|
536
|
-
const
|
|
537
|
-
return ie(
|
|
534
|
+
), u = b(
|
|
535
|
+
() => new Array(7).fill(/* @__PURE__ */ new Date()).map((m, w) => {
|
|
536
|
+
const P = Ue(m, J.value + w);
|
|
537
|
+
return ie(P, "EEE", {
|
|
538
538
|
locale: n[a.value.substring(0, 2)] || ee
|
|
539
539
|
});
|
|
540
540
|
})
|
|
541
|
-
), d =
|
|
542
|
-
const m = [],
|
|
543
|
-
let
|
|
544
|
-
for (;
|
|
545
|
-
|
|
541
|
+
), d = b(() => {
|
|
542
|
+
const m = [], w = xe(e.month);
|
|
543
|
+
let P = m[m.push([]) - 1];
|
|
544
|
+
for (; w.getMonth() === e.month.getMonth(); )
|
|
545
|
+
w.getDay() - J.value === 0 && P.length > 0 && (P = m[m.push([]) - 1]), P.push(I(w)), w.setDate(w.getDate() + 1);
|
|
546
546
|
return m;
|
|
547
|
-
}),
|
|
547
|
+
}), M = (m) => {
|
|
548
548
|
t(S.INPUT, m);
|
|
549
|
-
},
|
|
550
|
-
if (!e.isRange ||
|
|
549
|
+
}, $ = (m) => {
|
|
550
|
+
if (!e.isRange || B(e.startDate, e.endDate))
|
|
551
551
|
return h.SINGLE;
|
|
552
|
-
if (e.startDate &&
|
|
552
|
+
if (e.startDate && B(e.startDate, m))
|
|
553
553
|
return h.BEGINNING;
|
|
554
|
-
if (e.endDate &&
|
|
554
|
+
if (e.endDate && B(e.endDate, m))
|
|
555
555
|
return h.END;
|
|
556
556
|
if (e.startDate && e.endDate && de(m, { start: e.startDate, end: e.endDate }))
|
|
557
557
|
return h.MIDDLE;
|
|
558
|
-
}, ue = (m) => r.value &&
|
|
558
|
+
}, ue = (m) => r.value && B(r.value, m) ? !0 : e.startDate && e.endDate && de(m, { start: e.startDate, end: e.endDate }), Z = () => {
|
|
559
559
|
t(S.INPUT, r);
|
|
560
560
|
}, De = e.isRange ? {} : {
|
|
561
561
|
"keydown:arrow-right": c,
|
|
562
|
-
"keydown:arrow-left":
|
|
562
|
+
"keydown:arrow-left": T,
|
|
563
563
|
"keydown:arrow-up": f,
|
|
564
564
|
"keydown:arrow-down": D,
|
|
565
565
|
"keydown:home": g,
|
|
@@ -573,30 +573,27 @@ const fe = /* @__PURE__ */ He(G), ze = ({ currentSelectedDate: e, month: t, isDa
|
|
|
573
573
|
// Refs
|
|
574
574
|
addDayRef: i,
|
|
575
575
|
// Values
|
|
576
|
-
daysOfWeek:
|
|
576
|
+
daysOfWeek: u,
|
|
577
577
|
weeksOfMonth: d,
|
|
578
578
|
formattedMonthDate: se,
|
|
579
579
|
shouldShowNextMonthButton: oe,
|
|
580
580
|
shouldShowPreviousMonthButton: re,
|
|
581
581
|
monthLabelId: o,
|
|
582
582
|
// Enums
|
|
583
|
-
BentoButtonVariant: Ee,
|
|
584
|
-
BentoTypographyElement: be,
|
|
585
|
-
BentoTypographyVariant: Se,
|
|
586
583
|
CalendarMonthEvent: S,
|
|
587
584
|
// Functions
|
|
588
585
|
isSelectedDate: ue,
|
|
589
586
|
showNextMonth: v,
|
|
590
587
|
showPreviousMonth: l,
|
|
591
|
-
dayVariant:
|
|
588
|
+
dayVariant: $,
|
|
592
589
|
confirmNavigationDate: Z,
|
|
593
590
|
// Events
|
|
594
|
-
onDayClicked:
|
|
591
|
+
onDayClicked: M,
|
|
595
592
|
listeners: De,
|
|
596
593
|
// Exposed methods
|
|
597
594
|
focusOnDate: ne,
|
|
598
595
|
moveToNextDay: c,
|
|
599
|
-
moveToPreviousDay:
|
|
596
|
+
moveToPreviousDay: T,
|
|
600
597
|
moveToPreviousWeek: f,
|
|
601
598
|
moveToNextWeek: D,
|
|
602
599
|
moveToFirstDayOfWeek: g,
|
|
@@ -608,38 +605,38 @@ const fe = /* @__PURE__ */ He(G), ze = ({ currentSelectedDate: e, month: t, isDa
|
|
|
608
605
|
};
|
|
609
606
|
}
|
|
610
607
|
});
|
|
611
|
-
var
|
|
608
|
+
var ze = function() {
|
|
612
609
|
var t = this, a = t._self._c;
|
|
613
|
-
return t._self._setupProxy, a("div", t._g({ directives: [{ name: "bento-keyboard-navigation-directive", rawName: "v-bento-keyboard-navigation-directive" }], staticClass: "b-calendar-month" }, t.listeners), [a("div", { staticClass: "b-calendar-month__month-selector" }, [a("div", { staticClass: "b-calendar-month__previous" }, [t.shouldShowPreviousMonthButton ? a("bento-button", { attrs: { variant:
|
|
610
|
+
return t._self._setupProxy, a("div", t._g({ directives: [{ name: "bento-keyboard-navigation-directive", rawName: "v-bento-keyboard-navigation-directive" }], staticClass: "b-calendar-month" }, t.listeners), [a("div", { staticClass: "b-calendar-month__month-selector" }, [a("div", { staticClass: "b-calendar-month__previous" }, [t.shouldShowPreviousMonthButton ? a("bento-button", { attrs: { variant: "tertiary" }, on: { click: function(n) {
|
|
614
611
|
return t.moveToPreviousMonth(n, !0);
|
|
615
612
|
} }, scopedSlots: t._u([{ key: "iconLeft", fn: function() {
|
|
616
613
|
return [a("chevron-left-icon", { attrs: { "svg-title": t.$t("previousMonth") } })];
|
|
617
|
-
}, proxy: !0 }], null, !1, 351640624) }) : t._e()], 1), a("bento-typography", { attrs: { id: t.monthLabelId, el:
|
|
614
|
+
}, proxy: !0 }], null, !1, 351640624) }) : t._e()], 1), a("bento-typography", { attrs: { id: t.monthLabelId, el: "h2", variant: "title", "aria-live": "polite" } }, [t._v(" " + t._s(t.formattedMonthDate) + " ")]), a("div", { staticClass: "b-calendar-month__next" }, [t.shouldShowNextMonthButton ? a("bento-button", { attrs: { variant: "tertiary" }, on: { click: function(n) {
|
|
618
615
|
return t.moveToNextMonth(n, !0);
|
|
619
616
|
} }, scopedSlots: t._u([{ key: "iconLeft", fn: function() {
|
|
620
617
|
return [a("chevron-right-icon", { attrs: { "svg-title": t.$t("nextMonth") } })];
|
|
621
618
|
}, proxy: !0 }], null, !1, 1260976669) }) : t._e()], 1)], 1), a("table", { staticClass: "b-calendar-month__month-container", attrs: { role: "grid", "aria-labelledby": t.monthLabelId } }, [a("thead", [a("tr", { staticClass: "b-calendar-month__week-header" }, t._l(t.daysOfWeek, function(n, o) {
|
|
622
|
-
return a("th", { key: o, staticClass: "b-calendar-month__day-of-week" }, [a("bento-typography", { staticClass: "b-calendar-month__day-of-week-font", attrs: { el:
|
|
619
|
+
return a("th", { key: o, staticClass: "b-calendar-month__day-of-week" }, [a("bento-typography", { staticClass: "b-calendar-month__day-of-week-font", attrs: { el: "span", variant: "caption" } }, [t._v(" " + t._s(n) + " ")])], 1);
|
|
623
620
|
}), 0)]), a("tbody", t._l(t.weeksOfMonth, function(n, o) {
|
|
624
|
-
return a("tr", { key: o }, [o === 0 && n.length < 7 ? a("td", { attrs: { colspan: 7 - n.length } }) : t._e(), t._l(n, function(r,
|
|
625
|
-
return a("calendar-month-day", { key: `calendar-day-${
|
|
621
|
+
return a("tr", { key: o }, [o === 0 && n.length < 7 ? a("td", { attrs: { colspan: 7 - n.length } }) : t._e(), t._l(n, function(r, s) {
|
|
622
|
+
return a("calendar-month-day", { key: `calendar-day-${s}`, ref: t.addDayRef(r), refInFor: !0, attrs: { day: r, disabled: t.isDateDisabled ? t.isDateDisabled(r) : void 0, selected: t.isSelectedDate(r), variant: t.dayVariant(r) }, on: { click: t.onDayClicked, mouseover: function(i) {
|
|
626
623
|
return t.$emit(t.CalendarMonthEvent.MOUSE_OVER, r);
|
|
627
624
|
} } });
|
|
628
625
|
})], 2);
|
|
629
626
|
}), 0)])]);
|
|
630
|
-
},
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
627
|
+
}, Je = [], Ze = /* @__PURE__ */ ae(
|
|
628
|
+
Xe,
|
|
629
|
+
ze,
|
|
630
|
+
Je,
|
|
634
631
|
!1,
|
|
635
632
|
null,
|
|
636
|
-
"
|
|
633
|
+
"f62f0862",
|
|
637
634
|
null,
|
|
638
635
|
null
|
|
639
636
|
);
|
|
640
|
-
const
|
|
637
|
+
const F = Ze.exports;
|
|
641
638
|
var O = /* @__PURE__ */ ((e) => (e.INPUT = "input", e.START_DATE_SELECTED = "start-date-selected", e.END_DATE_SELECTED = "end-date-selected", e))(O || {});
|
|
642
|
-
const
|
|
639
|
+
const et = ({ selectedDate: e }, t) => {
|
|
643
640
|
const a = ve({
|
|
644
641
|
startDate: null,
|
|
645
642
|
endDate: null
|
|
@@ -660,7 +657,7 @@ const nt = ({ selectedDate: e }, t) => {
|
|
|
660
657
|
onMouseOver: () => {
|
|
661
658
|
}
|
|
662
659
|
};
|
|
663
|
-
},
|
|
660
|
+
}, tt = ({ selectedDate: e, isDateDisabled: t, maxRange: a }, n) => {
|
|
664
661
|
const o = ve({
|
|
665
662
|
startDate: null,
|
|
666
663
|
endDate: null
|
|
@@ -669,14 +666,14 @@ const nt = ({ selectedDate: e }, t) => {
|
|
|
669
666
|
() => e.value,
|
|
670
667
|
() => {
|
|
671
668
|
let { startDate: l = null, endDate: c = null } = e.value || {};
|
|
672
|
-
l && (l =
|
|
669
|
+
l && (l = I(l)), c && (c = I(c)), !(l && t && t(l) || c && t && t(c) || l && c && Ae(l, c)) && (o.startDate = l, o.endDate = c);
|
|
673
670
|
},
|
|
674
671
|
{ immediate: !0 }
|
|
675
672
|
);
|
|
676
|
-
const
|
|
673
|
+
const s = (l, c, T) => {
|
|
677
674
|
if (o.startDate = l, o.endDate = c, a.value) {
|
|
678
|
-
const f =
|
|
679
|
-
f > 0 && (
|
|
675
|
+
const f = pe(c, l) - a.value;
|
|
676
|
+
f > 0 && (T < 1 ? (o.startDate = l, o.endDate = Pe(c, f)) : (o.startDate = Y(l, f), o.endDate = c));
|
|
680
677
|
}
|
|
681
678
|
n(O.START_DATE_SELECTED, o.startDate), n(O.END_DATE_SELECTED, o.endDate);
|
|
682
679
|
};
|
|
@@ -686,25 +683,25 @@ const nt = ({ selectedDate: e }, t) => {
|
|
|
686
683
|
r.value ? (r.value = null, n(O.INPUT, o)) : (r.value = l, n(O.START_DATE_SELECTED, l), n(O.END_DATE_SELECTED, l));
|
|
687
684
|
},
|
|
688
685
|
onMouseOver: (l) => {
|
|
689
|
-
!r.value || t && t(l) || (
|
|
686
|
+
!r.value || t && t(l) || (Le(l, r.value) ? s(l, r.value, -1) : s(r.value, l, 1));
|
|
690
687
|
}
|
|
691
688
|
};
|
|
692
|
-
},
|
|
689
|
+
}, at = te({
|
|
693
690
|
name: "calendar",
|
|
694
|
-
components: { CalendarMonth:
|
|
691
|
+
components: { CalendarMonth: F },
|
|
695
692
|
props: {
|
|
696
693
|
/**
|
|
697
694
|
* Allows you to set the first day of the week. 0 is sunday, 1 is monday, 6 is saturday
|
|
698
695
|
*/
|
|
699
|
-
firstDayOfWeek:
|
|
696
|
+
firstDayOfWeek: F.props.firstDayOfWeek,
|
|
700
697
|
/**
|
|
701
698
|
* Indicate if a date should be disabled or not
|
|
702
699
|
*/
|
|
703
|
-
isDateDisabled:
|
|
700
|
+
isDateDisabled: F.props.isDateDisabled,
|
|
704
701
|
/**
|
|
705
702
|
* Enables the Date Range calendar
|
|
706
703
|
*/
|
|
707
|
-
isRange:
|
|
704
|
+
isRange: F.props.isRange,
|
|
708
705
|
/**
|
|
709
706
|
* Set a maximum number of dates to be selectable by the range.
|
|
710
707
|
*/
|
|
@@ -734,25 +731,25 @@ const nt = ({ selectedDate: e }, t) => {
|
|
|
734
731
|
},
|
|
735
732
|
{ immediate: !0 }
|
|
736
733
|
);
|
|
737
|
-
const o =
|
|
734
|
+
const o = b(() => ({
|
|
738
735
|
"b-calendar__range": e.isRange
|
|
739
736
|
})), {
|
|
740
737
|
internalValue: r,
|
|
741
|
-
onDateInput:
|
|
738
|
+
onDateInput: s,
|
|
742
739
|
onMouseOver: i
|
|
743
|
-
} = e.isRange ?
|
|
740
|
+
} = e.isRange ? tt(
|
|
744
741
|
{
|
|
745
742
|
selectedDate: U(e, "value"),
|
|
746
743
|
isDateDisabled: e.isDateDisabled,
|
|
747
744
|
maxRange: U(e, "maxRange")
|
|
748
745
|
},
|
|
749
746
|
t
|
|
750
|
-
) :
|
|
747
|
+
) : et(
|
|
751
748
|
{
|
|
752
749
|
selectedDate: U(e, "value")
|
|
753
750
|
},
|
|
754
751
|
t
|
|
755
|
-
), v = (f) => e.numberOfMonths === 1 ?
|
|
752
|
+
), v = (f) => e.numberOfMonths === 1 ? N.UNIQUE : f === 0 ? N.FIRST : f === e.numberOfMonths - 1 ? N.LAST : N.MIDDLE, l = b(
|
|
756
753
|
() => (f) => x(n.value, f)
|
|
757
754
|
);
|
|
758
755
|
return {
|
|
@@ -766,36 +763,36 @@ const nt = ({ selectedDate: e }, t) => {
|
|
|
766
763
|
calculateOffsetMonth: l,
|
|
767
764
|
calendarPosition: v,
|
|
768
765
|
// Events
|
|
769
|
-
onDateInput:
|
|
766
|
+
onDateInput: s,
|
|
770
767
|
onMouseOver: i,
|
|
771
768
|
calculateNextMonths: (f = 1) => {
|
|
772
769
|
n.value = x(n.value, f);
|
|
773
770
|
},
|
|
774
771
|
calculatePreviousMonths: (f = 1) => {
|
|
775
|
-
n.value =
|
|
772
|
+
n.value = G(n.value, f);
|
|
776
773
|
}
|
|
777
774
|
};
|
|
778
775
|
}
|
|
779
776
|
});
|
|
780
|
-
var
|
|
777
|
+
var nt = function() {
|
|
781
778
|
var t = this, a = t._self._c;
|
|
782
779
|
return t._self._setupProxy, a("div", { staticClass: "b-calendar", class: t.conditionalClasses }, t._l(t.numberOfMonths, function(n, o) {
|
|
783
780
|
return a("calendar-month", { key: `calendar-${o}`, ref: t.numberOfMonths === 1 ? "calendarRef" : null, refInFor: !0, attrs: { "first-day-of-week": t.firstDayOfWeek, "is-date-disabled": t.isDateDisabled, month: t.calculateOffsetMonth(o), position: t.calendarPosition(o), "is-range": t.isRange, "start-date": t.internalValue.startDate, "end-date": t.internalValue.endDate }, on: { input: t.onDateInput, mouseover: t.onMouseOver, nextMonth: t.calculateNextMonths, previousMonth: t.calculatePreviousMonths } });
|
|
784
781
|
}), 1);
|
|
785
|
-
},
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
782
|
+
}, rt = [], ot = /* @__PURE__ */ ae(
|
|
783
|
+
at,
|
|
784
|
+
nt,
|
|
785
|
+
rt,
|
|
789
786
|
!1,
|
|
790
787
|
null,
|
|
791
788
|
"621f2227",
|
|
792
789
|
null,
|
|
793
790
|
null
|
|
794
791
|
);
|
|
795
|
-
const
|
|
792
|
+
const _t = ot.exports;
|
|
796
793
|
export {
|
|
797
|
-
|
|
794
|
+
_t as C,
|
|
798
795
|
O as a,
|
|
799
796
|
L as b
|
|
800
797
|
};
|
|
801
|
-
//# sourceMappingURL=calendar.
|
|
798
|
+
//# sourceMappingURL=calendar.79ea42c1.js.map
|