@adyen/bento-vue2 1.6.1 → 1.7.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 +2 -0
- package/dist/@types/packages/core/src/components/button/button.types.d.ts +3 -1
- package/dist/@types/packages/vue2/src/components/action-bar/action-bar.vue.d.ts +43 -0
- package/dist/@types/packages/vue2/src/components/action-bar/index.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/alert/alert.vue.d.ts +4 -4
- package/dist/@types/packages/vue2/src/components/avatar-image/avatar-image.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/button/button.vue.d.ts +290 -281
- package/dist/@types/packages/vue2/src/components/button/components/button-actions/button-actions.vue.d.ts +9 -0
- package/dist/@types/packages/vue2/src/components/button/components/loading-button/loading-button.vue.d.ts +3 -3
- package/dist/@types/packages/vue2/src/components/checkbox/checkbox.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/checkbox/components/checkbox-group/checkbox-group.vue.d.ts +5 -5
- package/dist/@types/packages/vue2/src/components/code-snippet/code-snippet.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/country/country.vue.d.ts +4 -3
- package/dist/@types/packages/vue2/src/components/data-grid/data-grid.vue.d.ts +53 -70
- package/dist/@types/packages/vue2/src/components/date/date.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/date-picker/date-picker.vue.d.ts +20 -2
- package/dist/@types/packages/vue2/src/components/date-range-picker/components/date-range-picker-calendar/date-range-picker-calendar.vue.d.ts +18 -0
- package/dist/@types/packages/vue2/src/components/date-range-picker/date-range-picker.vue.d.ts +20 -2
- package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-base-textbox/dropdown-base-textbox.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-default-textbox/dropdown-default-textbox.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-options-container/dropdown-options-container.vue.d.ts +45 -27
- package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-small-textbox/dropdown-small-textbox.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-avatar/dropdown-avatar.vue.d.ts +21 -3
- package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-country/dropdown-country.vue.d.ts +24 -6
- package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-currency/dropdown-currency.vue.d.ts +21 -3
- package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-payment-method/dropdown-payment-method.vue.d.ts +21 -3
- package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-tag/dropdown-tag.vue.d.ts +21 -3
- package/dist/@types/packages/vue2/src/components/dropdown/dropdown.types.d.ts +2 -0
- package/dist/@types/packages/vue2/src/components/dropdown/dropdown.vue.d.ts +22 -4
- package/dist/@types/packages/vue2/src/components/empty-state/empty-state.vue.d.ts +5 -2
- package/dist/@types/packages/vue2/src/components/filter-bar/components/all-filters-modal/all-filters-modal.vue.d.ts +234 -12
- package/dist/@types/packages/vue2/src/components/filter-bar/components/boolean-filter/boolean-filter.vue.d.ts +12 -5
- package/dist/@types/packages/vue2/src/components/filter-bar/components/filter-bar-button/filter-bar-button.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 +2 -1
- package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/variants/select-tag-filter/select-tag-filter.vue.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/filter-bar/filter-bar.types.d.ts +12 -2
- package/dist/@types/packages/vue2/src/components/filter-bar/filter-bar.vue.d.ts +10 -0
- package/dist/@types/packages/vue2/src/components/form-layout/components/form-layout-field-tip/form-layout-field-tip.vue.d.ts +3 -3
- package/dist/@types/packages/vue2/src/components/header/header.vue.d.ts +1 -1
- 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.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/internal/button-actions-with-menu/button-actions-with-menu.vue.d.ts +21 -0
- package/dist/@types/packages/vue2/src/components/internal/calendar/calendar.vue.d.ts +18 -0
- package/dist/@types/packages/vue2/src/components/internal/calendar/components/calendar-month/calendar-month.vue.d.ts +19 -0
- 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/fixed-scroller/fixed-scroller.vue.d.ts +22 -1
- package/dist/@types/packages/vue2/src/components/internal/listbox/listbox.vue.d.ts +94 -8
- package/dist/@types/packages/vue2/src/components/internal/teleport/index.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/internal/teleport/teleport.vue.d.ts +50 -0
- package/dist/@types/packages/vue2/src/components/link/link.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/menu/menu.keys.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/menu/menu.vue.d.ts +15 -11
- package/dist/@types/packages/vue2/src/components/pagination/components/pagination-context/pagination-context.vue.d.ts +9 -0
- package/dist/@types/packages/vue2/src/components/pagination/pagination.vue.d.ts +9 -0
- package/dist/@types/packages/vue2/src/components/payment-method/payment-method.vue.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/popover/popover.vue.d.ts +4 -4
- package/dist/@types/packages/vue2/src/components/popper-container/popper-container.vue.d.ts +5 -5
- package/dist/@types/packages/vue2/src/components/radio-group/radio-group.vue.d.ts +10 -5
- package/dist/@types/packages/vue2/src/components/segmented-control/components/segmented-control-button/segmented-control-button.vue.d.ts +21 -0
- package/dist/@types/packages/vue2/src/components/segmented-control/segmented-control.vue.d.ts +21 -5
- package/dist/@types/packages/vue2/src/components/stepper/stepper.vue.d.ts +3 -3
- package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item/summary-grid-item.vue.d.ts +1 -2
- package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item-amount/summary-grid-item-amount.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/summary-grid/summary-grid.keys.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/summary-grid/summary-grid.types.d.ts +3 -0
- package/dist/@types/packages/vue2/src/components/tabs/components/tab.types.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/tabs/components/tab.vue.d.ts +9 -0
- package/dist/@types/packages/vue2/src/components/tabs/tabs.types.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/tabs/tabs.vue.d.ts +2 -0
- package/dist/@types/packages/vue2/src/components/textarea/textarea.vue.d.ts +5 -5
- package/dist/@types/packages/vue2/src/components/timeline/components/timeline-item/timeline-item.vue.d.ts +6 -3
- package/dist/@types/packages/vue2/src/components/timeline/timeline.types.d.ts +9 -2
- package/dist/@types/packages/vue2/src/components/tooltip/tooltip.vue.d.ts +13 -13
- package/dist/@types/packages/vue2/src/components/tutorial/components/tutorial-popover/components/tutorial-indicator/index.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/tutorial/components/tutorial-popover/components/tutorial-indicator/tutorial-indicator.vue.d.ts +12 -0
- package/dist/@types/packages/vue2/src/components/tutorial/components/tutorial-popover/index.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/tutorial/components/tutorial-popover/tutorial-popover.vue.d.ts +226 -0
- package/dist/@types/packages/vue2/src/components/tutorial/index.d.ts +2 -0
- package/dist/@types/packages/vue2/src/components/tutorial/tutorial.types.d.ts +13 -0
- package/dist/@types/packages/vue2/src/components/tutorial/tutorial.vue.d.ts +16 -0
- package/dist/@types/packages/vue2/src/composables/index.d.ts +5 -2
- package/dist/@types/packages/vue2/src/composables/use-click-outside/use-click-outside.d.ts +3 -0
- package/dist/@types/packages/vue2/src/composables/use-form-validate/index.d.ts +2 -0
- package/dist/@types/packages/vue2/src/composables/use-form-validate/use-form.d.ts +12 -0
- package/dist/@types/packages/vue2/src/composables/use-form-validate/use-form.types.d.ts +5 -0
- package/dist/@types/packages/vue2/src/composables/use-virtual-list/index.d.ts +2 -0
- package/dist/@types/packages/vue2/src/composables/use-virtual-list/use-virtual-list.d.ts +15 -0
- package/dist/@types/packages/vue2/src/composables/use-virtual-list/use-virtual-list.types.d.ts +20 -0
- package/dist/@types/packages/vue2/src/index.d.ts +1 -0
- package/dist/@types/packages/vue2/src/templates/data-grid-template/data-grid-template.vue.d.ts +2 -2
- package/dist/@types/packages/vue2/src/types/listbox.d.ts +12 -0
- package/dist/accordion.js +41 -32
- package/dist/accordion.js.map +1 -1
- package/dist/action-bar.js +191 -0
- package/dist/action-bar.js.map +1 -0
- package/dist/alert.js +3 -3
- package/dist/assets/base-modal.css +1 -1
- package/dist/assets/button-actions-with-menu.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/checkmark.css +1 -0
- package/dist/assets/chevron-left.css +1 -0
- package/dist/assets/dropdown-default-textbox.css +1 -1
- package/dist/assets/dropdown.css +1 -1
- package/dist/assets/fixed-scroller.css +1 -0
- 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/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 -1
- package/dist/assets/index44.css +1 -1
- package/dist/assets/index45.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.css +1 -1
- package/dist/assets/refresh.css +1 -0
- package/dist/avatar-image.js +1 -1
- package/dist/badge.js +1 -1
- package/dist/button.js +21 -14
- package/dist/button.js.map +1 -1
- package/dist/card.js +54 -54
- package/dist/card.js.map +1 -1
- package/dist/checkbox.js +6 -6
- package/dist/chunks/{base-button.d1ba66cd.js → base-button.7886a7e6.js} +2 -2
- package/dist/chunks/{base-button.d1ba66cd.js.map → base-button.7886a7e6.js.map} +1 -1
- package/dist/chunks/{base-modal.ec74044e.js → base-modal.88e7b9d4.js} +4 -4
- package/dist/chunks/{base-modal.ec74044e.js.map → base-modal.88e7b9d4.js.map} +1 -1
- package/dist/chunks/button-actions-with-menu.a5413243.js +105 -0
- package/dist/chunks/button-actions-with-menu.a5413243.js.map +1 -0
- package/dist/chunks/button.e09d5980.js +125 -0
- package/dist/chunks/button.e09d5980.js.map +1 -0
- package/dist/chunks/{calendar.b74f8a0f.js → calendar.24d0ac04.js} +294 -272
- package/dist/chunks/calendar.24d0ac04.js.map +1 -0
- package/dist/chunks/{checkbox.96ee3f71.js → checkbox.5343e28e.js} +7 -7
- package/dist/chunks/{checkbox.96ee3f71.js.map → checkbox.5343e28e.js.map} +1 -1
- package/dist/chunks/checkmark.78f3ed9c.js +26 -0
- package/dist/chunks/checkmark.78f3ed9c.js.map +1 -0
- package/dist/chunks/{chevron-right.3b826337.js → chevron-left.c10778d3.js} +8 -8
- package/dist/chunks/chevron-left.c10778d3.js.map +1 -0
- package/dist/chunks/{controls-group.e9537e45.js → controls-group.2a21bd83.js} +2 -2
- package/dist/chunks/{controls-group.e9537e45.js.map → controls-group.2a21bd83.js.map} +1 -1
- package/dist/chunks/{copy.2ff56819.js → copy.346eadb1.js} +4 -4
- package/dist/chunks/{copy.2ff56819.js.map → copy.346eadb1.js.map} +1 -1
- package/dist/chunks/{dropdown-default-textbox.3df0bf23.js → dropdown-default-textbox.25134789.js} +4 -4
- package/dist/chunks/dropdown-default-textbox.25134789.js.map +1 -0
- package/dist/chunks/{dropdown.3f198167.js → dropdown.f1253a54.js} +111 -81
- package/dist/chunks/dropdown.f1253a54.js.map +1 -0
- package/dist/chunks/{error-message.f5454f19.js → error-message.8302a46c.js} +2 -2
- package/dist/chunks/{error-message.f5454f19.js.map → error-message.8302a46c.js.map} +1 -1
- package/dist/chunks/fixed-scroller.8994e30a.js +108 -0
- package/dist/chunks/fixed-scroller.8994e30a.js.map +1 -0
- package/dist/chunks/{footer-actions.00d20947.js → footer-actions.c9b2cb74.js} +3 -3
- package/dist/chunks/{footer-actions.00d20947.js.map → footer-actions.c9b2cb74.js.map} +1 -1
- package/dist/chunks/{index.c39c64c9.js → index.2625175a.js} +2 -2
- package/dist/chunks/{index.c39c64c9.js.map → index.2625175a.js.map} +1 -1
- package/dist/chunks/index.37283390.js +475 -0
- package/dist/chunks/index.37283390.js.map +1 -0
- package/dist/chunks/index.8ac70774.js +1328 -0
- package/dist/chunks/index.8ac70774.js.map +1 -0
- package/dist/chunks/{index.2fce7703.js → index.965ac1af.js} +2 -2
- package/dist/chunks/{index.2fce7703.js.map → index.965ac1af.js.map} +1 -1
- package/dist/chunks/{index.eb52e785.js → index.a201f750.js} +6 -5
- package/dist/chunks/{index.eb52e785.js.map → index.a201f750.js.map} +1 -1
- package/dist/chunks/{index.a709a6b0.js → index.b83f8b7e.js} +2 -2
- package/dist/chunks/{index.a709a6b0.js.map → index.b83f8b7e.js.map} +1 -1
- package/dist/chunks/{index.298f5eed.js → index.d6b5f5e1.js} +6 -6
- package/dist/chunks/{index.298f5eed.js.map → index.d6b5f5e1.js.map} +1 -1
- package/dist/chunks/{index.31949c1a.js → index.e566354f.js} +91 -74
- package/dist/chunks/index.e566354f.js.map +1 -0
- package/dist/chunks/{listbox-option-tag.1362a2d7.js → listbox-option-tag.6a09e8e2.js} +8 -7
- package/dist/chunks/{listbox-option-tag.1362a2d7.js.map → listbox-option-tag.6a09e8e2.js.map} +1 -1
- package/dist/chunks/{listbox.e7bf46e4.js → listbox.73c38f38.js} +479 -385
- package/dist/chunks/listbox.73c38f38.js.map +1 -0
- package/dist/chunks/{loading-button.0ad06c99.js → loading-button.c65682d6.js} +2 -2
- package/dist/chunks/{loading-button.0ad06c99.js.map → loading-button.c65682d6.js.map} +1 -1
- package/dist/chunks/refresh.eb485c6f.js +26 -0
- package/dist/chunks/refresh.eb485c6f.js.map +1 -0
- package/dist/chunks/summary-grid.keys.1d1028c2.js +5 -0
- package/dist/chunks/summary-grid.keys.1d1028c2.js.map +1 -0
- package/dist/chunks/{tooltip.68e81e9c.js → tooltip.104e5fac.js} +39 -36
- package/dist/chunks/{tooltip.68e81e9c.js.map → tooltip.104e5fac.js.map} +1 -1
- package/dist/code-snippet.js +7 -7
- package/dist/code-snippet.js.map +1 -1
- package/dist/country.js +537 -528
- package/dist/country.js.map +1 -1
- package/dist/currency.js +1 -1
- package/dist/data-grid.js +10 -10
- package/dist/data-grid.js.map +1 -1
- package/dist/date-picker.js +99 -89
- 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 +4 -4
- package/dist/empty-state.js +8 -7
- package/dist/empty-state.js.map +1 -1
- package/dist/filter-bar.js +500 -486
- package/dist/filter-bar.js.map +1 -1
- package/dist/focus-trap.js +1 -1
- package/dist/form-layout.js +2 -2
- package/dist/header.js +104 -183
- package/dist/header.js.map +1 -1
- package/dist/image.js +3 -3
- package/dist/index.js +171 -169
- package/dist/index.js.map +1 -1
- package/dist/info-icon.js +3 -3
- package/dist/input-field.js +7 -7
- package/dist/internal.js +20 -106
- package/dist/internal.js.map +1 -1
- package/dist/link.js +2 -2
- package/dist/loading-indicator.js +1 -1
- package/dist/menu.js +3 -466
- package/dist/menu.js.map +1 -1
- package/dist/modal.js +3 -3
- package/dist/pagination.js +40 -26
- package/dist/pagination.js.map +1 -1
- package/dist/payment-method.js +33 -26
- package/dist/payment-method.js.map +1 -1
- package/dist/popover.js +4 -4
- package/dist/popper-container.js +6 -1270
- package/dist/popper-container.js.map +1 -1
- package/dist/radio-group.js +97 -81
- package/dist/radio-group.js.map +1 -1
- package/dist/search-bar.js +2 -2
- package/dist/segmented-control.js +100 -70
- package/dist/segmented-control.js.map +1 -1
- package/dist/sidepanel.js +53 -51
- package/dist/sidepanel.js.map +1 -1
- package/dist/status.js +2 -2
- package/dist/stepper.js +3 -3
- package/dist/structured-list.js +1 -1
- package/dist/summary-grid.js +109 -119
- package/dist/summary-grid.js.map +1 -1
- package/dist/tabs.js +81 -71
- package/dist/tabs.js.map +1 -1
- package/dist/tag.js +3 -3
- package/dist/textarea.js +4 -4
- package/dist/timeline.js +170 -162
- package/dist/timeline.js.map +1 -1
- package/dist/toast.js +3 -3
- package/dist/toggle.js +6 -6
- package/dist/tutorial.js +307 -0
- package/dist/tutorial.js.map +1 -0
- package/dist/typography.js +1 -1
- package/dist/web-types.json +828 -122
- package/package.json +7 -4
- package/dist/assets/chevron-right.css +0 -1
- package/dist/chunks/button.eb60d460.js +0 -117
- package/dist/chunks/button.eb60d460.js.map +0 -1
- package/dist/chunks/calendar.b74f8a0f.js.map +0 -1
- package/dist/chunks/chevron-right.3b826337.js.map +0 -1
- package/dist/chunks/dropdown-default-textbox.3df0bf23.js.map +0 -1
- package/dist/chunks/dropdown.3f198167.js.map +0 -1
- package/dist/chunks/index.31949c1a.js.map +0 -1
- package/dist/chunks/listbox.e7bf46e4.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.
|
|
1
|
+
{"version":3,"file":"index.d6b5f5e1.js","sources":["../../src/components/structured-list/structured-list.vue","../../src/components/structured-list/structured-list.keys.ts","../../src/components/structured-list/components/structered-list-item/structured-list-item.vue"],"sourcesContent":["<template>\n <dl class=\"b-structured-list\">\n <slot />\n </dl>\n</template>\n\n<script lang=\"ts\">\n import { defineComponent } from 'vue';\n\n /**\n * This is a list used to display pairs of information in a clear and organized manner.\n * `BentoStructureListItem` should be used to pass the label/value pairs to the list.\n *\n * @example\n * import { BentoStructuredListItem, BentoStructuredListItem } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoStructuredList, BentoStructuredListItem },\n * template: `\n * <bento-structured-list>\n * <bento-structured-list-item label=\"Payment\">\n * <bento-payment-method label=\"Klarna\" type=\"Klarna\" />\n * </bento-structured-list-item>\n * <bento-structured-list-item label=\"Amount\">\n * <bento-currency :currency=\"BentoCurrencyISOCode.USD\">\n * 123456\n * </bento-currency>\n * </bento-structured-list-item>\n * </bento-structured-list>\n * `\n * }\n */\n export default defineComponent({\n name: 'bento-structured-list',\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"./structured-list.scss\" />\n","export const STRUCTURED_LIST_CONDENSED_INJECTION_KEY = Symbol('structured list condensed style injection key');\n","<template>\n <div class=\"b-structured-list-item\" :class=\"conditionalClasses\">\n <dt class=\"b-structured-list-item__label\">\n <bento-typography :variant=\"labelTypographyVariant\">\n {{ label }}\n </bento-typography>\n <bento-info-icon v-if=\"labelInfo\" class=\"b-structured-list-item__icon\" :tooltip-text=\"labelInfo\" />\n </dt>\n <dd class=\"b-structured-list-item__value\">\n <slot />\n <copy v-if=\"copy\" class=\"b-structured-list-item__icon\" :text=\"copy\" />\n <bento-button\n v-if=\"search\"\n v-bento-tooltip-directive:top=\"searchTooltip ? searchTooltip : $t('search')\"\n class=\"b-structured-list-item__icon\"\n variant=\"tertiary\"\n @click=\"search\"\n >\n <template #iconLeft>\n <search-icon :svg-title=\"$t('search')\" />\n </template>\n </bento-button>\n </dd>\n </div>\n</template>\n\n<script lang=\"ts\">\n import { computed, defineComponent, inject, PropType } from 'vue';\n\n // Components\n import { BentoButton } from '@/components/button';\n import { BentoInfoIcon } from '@/components/info-icon';\n import { BentoTypography, BentoTypographyVariant } from '@/components/typography';\n import Copy from '@/components/internal/copy/copy.vue';\n import SearchIcon from '@adyen/ui-assets-icons-16/vue/search';\n\n // Directives\n import { BentoTooltipDirective } from '@/directives';\n\n // Keys\n import { STRUCTURED_LIST_CONDENSED_INJECTION_KEY } from '../../structured-list.keys';\n\n import messages from '../../messages.json';\n\n /**\n * This is an item of the `BentoStructuredList` meant to be used only with that component.\n * It consists of a label/value pair, and also the optional copy and search modifiers.\n *\n * @example\n * import { BentoCurrencyISOCode, BentoStructuredListItem, BentoStructuredListItem } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoStructuredListItem, BentoStructuredListItem },\n * template: `\n * <bento-structured-list>\n * <bento-structured-list-item label=\"Shopper\" search='searchShopper' search-tooltip='Find shopper'>\n * <bento-typography>\n * 143442642\n * </bento-status>\n * </bento-structured-list-item>\n * <bento-structured-list-item label=\"Amount\" copy='123456'>\n * <bento-currency :currency=\"BentoCurrencyISOCode.USD\">\n * 123456\n * </bento-currency>\n * </bento-structured-list-item>\n * </bento-structured-list>\n * `\n * }\n */\n export default defineComponent({\n i18n: { messages },\n name: 'bento-structured-list-item',\n components: {\n BentoButton,\n BentoInfoIcon,\n BentoTypography,\n Copy,\n SearchIcon,\n },\n directives: { BentoTooltipDirective },\n props: {\n /**\n * Label to display for the value\n */\n label: {\n type: String,\n required: true,\n },\n /**\n * Text to display in info icon tooltip in the label to display for the value\n */\n labelInfo: {\n type: String,\n default: undefined,\n },\n /**\n * Text to copy when the user clicks `Copy` icon\n */\n copy: {\n type: String,\n default: undefined,\n },\n /**\n * Function to trigger when user clicks `Search` icon\n */\n search: {\n type: Function as PropType<(event: Event) => void>,\n default: undefined,\n },\n /**\n * Text to display when the user hovers over `Search` icon\n */\n searchTooltip: {\n type: String,\n default: undefined,\n },\n },\n setup() {\n const isCondensed = inject(STRUCTURED_LIST_CONDENSED_INJECTION_KEY, false);\n\n const conditionalClasses = computed(() => ({\n 'b-structured-list-item--condensed': isCondensed,\n }));\n\n const labelTypographyVariant = computed(() =>\n isCondensed ? BentoTypographyVariant.CAPTION : BentoTypographyVariant.BODY\n );\n\n return {\n // Values\n conditionalClasses,\n labelTypographyVariant,\n };\n },\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"./structured-list-item.scss\" />\n"],"names":["_sfc_main$1","defineComponent","STRUCTURED_LIST_CONDENSED_INJECTION_KEY","_sfc_main","messages","BentoButton","BentoInfoIcon","BentoTypography","Copy","SearchIcon","BentoTooltipDirective","isCondensed","inject","conditionalClasses","computed","labelTypographyVariant","BentoTypographyVariant"],"mappings":";;;;;;;;;AAgCA,MAAAA,IAAAC,EAAA;AAAA,EAAA,MAAA;AAEA,CAAA;;;;;;;;;;;;;;qBClCaC,IAAA,OAAA,+CAAA;;;;GCqEbC,IAAAF,EAAA;AAAA,EAAA,MAAA,EAAA,UAAAG,EAAA;AAAA,EACA,MAAA;AAAA,EACA,YAAA;AAAA,IACA,aAAAC;AAAA,IACA,eAAAC;AAAA,IACA,iBAAAC;AAAA,IACA,MAAAC;AAAA,IACA,YAAAC;AAAA,EACA;AAAA,EACA,YAAA,EAAA,uBAAAC,EAAA;AAAA,EACA,OAAA;AAAA;AAAA;AAAA;AAAA,IACA,OAAA;AAAA,MAIA,MAAA;AAAA,MACA,UAAA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA,IACA,WAAA;AAAA,MAIA,MAAA;AAAA,MACA,SAAA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA,IACA,MAAA;AAAA,MAIA,MAAA;AAAA,MACA,SAAA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA,IACA,QAAA;AAAA,MAIA,MAAA;AAAA,MACA,SAAA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA,IACA,eAAA;AAAA,MAIA,MAAA;AAAA,MACA,SAAA;AAAA,IACA;AAAA,EACA;AAAA,EACA,QAAA;AAEA,UAAAC,IAAAC,EAAAV,GAAA,EAAA,GAEAW,IAAAC,EAAA,OAAA;AAAA,MAAA,qCAAAH;AAAA,IACA,EAAA,GAGAI,IAAAD;AAAA,MAAA,MAAAH,IAAAK,EAAA,UAAAA,EAAA;AAAA,IACA;AAGA,WAAA;AAAA;AAAA,MAAA,oBAAAH;AAAA,MAEA,wBAAAE;AAAA,IACA;AAAA,EACA;AAEA,CAAA;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,23 +1,24 @@
|
|
|
1
|
-
import { defineComponent as ue, reactive as K, ref as
|
|
2
|
-
import { c as be } from "./dropdown-default-textbox.
|
|
1
|
+
import { defineComponent as ue, reactive as K, ref as E, computed as F, onMounted as Te, toRef as oe, watch as Ie } from "vue";
|
|
2
|
+
import { c as be } from "./dropdown-default-textbox.25134789.js";
|
|
3
3
|
import { BentoPopover as ye } from "../popover.js";
|
|
4
|
-
import { g as
|
|
4
|
+
import { g as $ } from "./unique-id.a2a2b458.js";
|
|
5
5
|
import { u as G } from "./i18n.155748d6.js";
|
|
6
|
-
import { B as De } from "./index.
|
|
7
|
-
import { t as j, f as
|
|
6
|
+
import { B as De } from "./index.965ac1af.js";
|
|
7
|
+
import { t as j, f as P } from "./index.b83f8b7e.js";
|
|
8
8
|
import { r as Y, t as B, e as I, d as z, f as J } from "./index.f55fdc32.js";
|
|
9
9
|
import { f as ie, v as ke, D as T } from "./date-input.9186a0bf.js";
|
|
10
10
|
import { u as Ee } from "./use-form-layout-loading.d03e5d48.js";
|
|
11
|
+
import "./index.af05ced4.js";
|
|
11
12
|
import { BentoInputField as Se } from "../input-field.js";
|
|
12
|
-
import { B as Ce } from "./dropdown.
|
|
13
|
+
import { B as Ce } from "./dropdown.f1253a54.js";
|
|
13
14
|
import { d as q } from "./debounce.b5ef6acf.js";
|
|
14
15
|
import { u as Oe } from "./use-has-slot.6052d56a.js";
|
|
15
16
|
import { e as H } from "./index.fdf12170.js";
|
|
16
|
-
import {
|
|
17
|
+
import { C } from "./calendar.24d0ac04.js";
|
|
17
18
|
import { n as me } from "./_plugin-vue2_normalizer.71e2aa87.js";
|
|
18
|
-
import { E as Me } from "./error-message.
|
|
19
|
+
import { E as Me } from "./error-message.8302a46c.js";
|
|
19
20
|
import { B as Fe } from "./directive.0408e565.js";
|
|
20
|
-
import "../assets/
|
|
21
|
+
import "../assets/index19.css";
|
|
21
22
|
function le(t, e) {
|
|
22
23
|
Y(2, arguments);
|
|
23
24
|
var n = B(t), o = B(e);
|
|
@@ -33,14 +34,14 @@ function we(t, e) {
|
|
|
33
34
|
var n = B(t), o = j(e);
|
|
34
35
|
return n.setMinutes(o), n;
|
|
35
36
|
}
|
|
36
|
-
function
|
|
37
|
+
function xe(t, e) {
|
|
37
38
|
Y(2, arguments);
|
|
38
39
|
var n = B(t), o = j(e);
|
|
39
40
|
return n.setSeconds(o), n;
|
|
40
41
|
}
|
|
41
42
|
var l = /* @__PURE__ */ ((t) => (t.CUSTOM_RANGE = "custom-range", t.INPUT = "input", t.ERROR = "error", t.FORM_DATE = "form-date", t))(l || {});
|
|
42
|
-
const
|
|
43
|
-
const { selectionStart: e } = t.target, n =
|
|
43
|
+
const Ue = /[\d]/, he = /^\d{2}$/, Ae = /^\d{2}:\d{2}$/, Ne = (t) => {
|
|
44
|
+
const { selectionStart: e } = t.target, n = Ue.test(t.key) || t.key === "Backspace", o = [1, 2, 4, 5].includes(e) && t.key === ":";
|
|
44
45
|
!n && !o && t.preventDefault();
|
|
45
46
|
}, de = (t) => {
|
|
46
47
|
if (!t)
|
|
@@ -49,7 +50,7 @@ const he = /[\d]/, Ae = /^\d{2}$/, xe = /^\d{2}:\d{2}$/, Ne = (t) => {
|
|
|
49
50
|
if (e.length === 1 && parseInt(t, 10) > 2)
|
|
50
51
|
return `0${e}:`;
|
|
51
52
|
const [n, o] = e.slice(-2);
|
|
52
|
-
return [2, 5].includes(e.length) && o === ":" && (e = `${e.slice(0, e.length - 2)}0${n}`), (
|
|
53
|
+
return [2, 5].includes(e.length) && o === ":" && (e = `${e.slice(0, e.length - 2)}0${n}`), (he.test(e) || Ae.test(e)) && (e += ":"), e;
|
|
53
54
|
}, $e = {
|
|
54
55
|
"en-US": {
|
|
55
56
|
customRange: "Custom range",
|
|
@@ -68,7 +69,7 @@ const he = /[\d]/, Ae = /^\d{2}$/, xe = /^\d{2}:\d{2}$/, Ne = (t) => {
|
|
|
68
69
|
BentoDropdown: Ce,
|
|
69
70
|
BentoInputField: Se,
|
|
70
71
|
BentoTypography: De,
|
|
71
|
-
Calendar:
|
|
72
|
+
Calendar: C
|
|
72
73
|
},
|
|
73
74
|
props: {
|
|
74
75
|
/**
|
|
@@ -85,19 +86,27 @@ const he = /[\d]/, Ae = /^\d{2}$/, xe = /^\d{2}:\d{2}$/, Ne = (t) => {
|
|
|
85
86
|
/**
|
|
86
87
|
* Allows you to set the first day of the week. 0 is sunday, 1 is monday, 6 is saturday
|
|
87
88
|
*/
|
|
88
|
-
firstDayOfWeek:
|
|
89
|
+
firstDayOfWeek: C.props.firstDayOfWeek,
|
|
89
90
|
/**
|
|
90
91
|
* Indicate if a date should be disabled or not
|
|
91
92
|
*/
|
|
92
|
-
isDateDisabled:
|
|
93
|
+
isDateDisabled: C.props.isDateDisabled,
|
|
93
94
|
/**
|
|
94
95
|
* Set a maximum number of dates to be selectable by the range.
|
|
95
96
|
*/
|
|
96
|
-
maxRange:
|
|
97
|
+
maxRange: C.props.maxRange,
|
|
98
|
+
/**
|
|
99
|
+
* Sets a minimum limit for selectable dates - dates before `min` will not be selectable
|
|
100
|
+
*/
|
|
101
|
+
min: C.props.min,
|
|
102
|
+
/**
|
|
103
|
+
* Sets a maximum limit for selectable dates - dates after `max` will not be selectable
|
|
104
|
+
*/
|
|
105
|
+
max: C.props.max,
|
|
97
106
|
/**
|
|
98
107
|
* Number of months rendered on pane
|
|
99
108
|
*/
|
|
100
|
-
numberOfMonths:
|
|
109
|
+
numberOfMonths: C.props.numberOfMonths,
|
|
101
110
|
/**
|
|
102
111
|
* Enables the custom range selector.
|
|
103
112
|
* If provided, must be an array that sets the custom range dropdown items. Items are of the structure:
|
|
@@ -125,22 +134,22 @@ const he = /[\d]/, Ae = /^\d{2}$/, xe = /^\d{2}:\d{2}$/, Ne = (t) => {
|
|
|
125
134
|
const { locale: o, t: b } = G(), g = { de: z, enUS: I, fr: J }, i = K({
|
|
126
135
|
startDate: (ae = t.value) == null ? void 0 : ae.startDate,
|
|
127
136
|
endDate: (ne = t.value) == null ? void 0 : ne.endDate
|
|
128
|
-
}), f =
|
|
137
|
+
}), f = E(
|
|
129
138
|
((se = (re = t == null ? void 0 : t.quickSelectRanges) == null ? void 0 : re.find(
|
|
130
139
|
({ data: a }) => le(a.startDate, i.startDate) && le(a.endDate, i.endDate)
|
|
131
140
|
)) == null ? void 0 : se.value) ?? W
|
|
132
|
-
),
|
|
141
|
+
), w = F(() => ({
|
|
133
142
|
"b-date-range-picker-calendar__form-input-wrapper": t.allowTimeInput
|
|
134
|
-
})),
|
|
143
|
+
})), x = F(() => t.quickSelectRanges ? [
|
|
135
144
|
{ label: b("customRange"), value: W },
|
|
136
145
|
...t.quickSelectRanges
|
|
137
146
|
] : []), v = () => {
|
|
138
147
|
t != null && t.quickSelectRanges && (f.value = W);
|
|
139
|
-
}, d = (a) => a ?
|
|
148
|
+
}, d = (a) => a ? P(a, T.NUMERIC_DATE_YEAR_FIRST, {
|
|
140
149
|
locale: g[o.value.substring(0, 2)] || I
|
|
141
|
-
}) : "", R = (a) => a ?
|
|
150
|
+
}) : "", R = (a) => a ? P(a, T.HOUR_MINUTE_SECONDS, {
|
|
142
151
|
locale: g[o.value.substring(0, 2)] || I
|
|
143
|
-
}) : "", u =
|
|
152
|
+
}) : "", u = E(!1), p = E(!1), D = E(!1), m = E(!1), r = K({
|
|
144
153
|
startDate: t.dateFormData.startDate,
|
|
145
154
|
endDate: t.dateFormData.endDate,
|
|
146
155
|
startTime: t.dateFormData.startTime,
|
|
@@ -151,14 +160,14 @@ const he = /[\d]/, Ae = /^\d{2}$/, xe = /^\d{2}:\d{2}$/, Ne = (t) => {
|
|
|
151
160
|
if (!s || !U(s))
|
|
152
161
|
return a;
|
|
153
162
|
let _ = new Date(a);
|
|
154
|
-
const [
|
|
155
|
-
return _ = Pe(_, parseInt(
|
|
156
|
-
},
|
|
157
|
-
const s = (
|
|
163
|
+
const [y, V, Re] = s.split(":");
|
|
164
|
+
return _ = Pe(_, parseInt(y, 10)), _ = we(_, parseInt(V, 10)), _ = xe(_, parseInt(Re, 10)), _;
|
|
165
|
+
}, O = (a) => {
|
|
166
|
+
const s = (y) => t.min && y <= t.min || t.max && y >= t.max ? !1 : t.isDateDisabled ? !t.isDateDisabled(y) : !0;
|
|
158
167
|
return /^\d{4}-(0?[1-9]|1[012])-(0?[1-9]|[12][0-9]|3[01])$/.test(a) && s(new Date(a));
|
|
159
168
|
};
|
|
160
169
|
Te(() => {
|
|
161
|
-
t.dateFormData.startDate && !
|
|
170
|
+
t.dateFormData.startDate && !O(t.dateFormData.startDate) ? u.value = !0 : (u.value = !1, D.value = !1), t.dateFormData.endDate && !O(t.dateFormData.endDate) ? p.value = !0 : (p.value = !1, m.value = !1);
|
|
162
171
|
});
|
|
163
172
|
const Q = (a) => {
|
|
164
173
|
var s;
|
|
@@ -170,10 +179,10 @@ const he = /[\d]/, Ae = /^\d{2}$/, xe = /^\d{2}:\d{2}$/, Ne = (t) => {
|
|
|
170
179
|
const s = t.value[a];
|
|
171
180
|
if (s)
|
|
172
181
|
return s;
|
|
173
|
-
if (t.dateFormData[a] &&
|
|
182
|
+
if (t.dateFormData[a] && O(t.dateFormData[a]))
|
|
174
183
|
return new Date(t.dateFormData[a]);
|
|
175
184
|
}, Z = q((a) => {
|
|
176
|
-
if (
|
|
185
|
+
if (O(a)) {
|
|
177
186
|
u.value = !1, i.startDate = h(new Date(a), r.startTime);
|
|
178
187
|
const s = A("endDate");
|
|
179
188
|
e(l.FORM_DATE, {
|
|
@@ -188,7 +197,7 @@ const he = /[\d]/, Ae = /^\d{2}$/, xe = /^\d{2}:\d{2}$/, Ne = (t) => {
|
|
|
188
197
|
}, ce), ee = (a) => {
|
|
189
198
|
v(), r.startDate = ie(a), Z(r.startDate);
|
|
190
199
|
}, te = q((a) => {
|
|
191
|
-
if (
|
|
200
|
+
if (O(a)) {
|
|
192
201
|
p.value = !1, i.endDate = h(new Date(a), r.endTime);
|
|
193
202
|
const s = A("startDate");
|
|
194
203
|
e(l.FORM_DATE, {
|
|
@@ -204,9 +213,9 @@ const he = /[\d]/, Ae = /^\d{2}$/, xe = /^\d{2}:\d{2}$/, Ne = (t) => {
|
|
|
204
213
|
p.value = !0, e(l.ERROR, { ...r });
|
|
205
214
|
}, ce), c = (a) => {
|
|
206
215
|
v(), r.endDate = ie(a), te(r.endDate);
|
|
207
|
-
},
|
|
216
|
+
}, S = (a) => {
|
|
208
217
|
ke(a);
|
|
209
|
-
},
|
|
218
|
+
}, N = q((a) => {
|
|
210
219
|
if (U(a)) {
|
|
211
220
|
D.value = !1, i.startDate = h(i.startDate, a);
|
|
212
221
|
const s = A("endDate");
|
|
@@ -237,15 +246,15 @@ const he = /[\d]/, Ae = /^\d{2}$/, xe = /^\d{2}:\d{2}$/, Ne = (t) => {
|
|
|
237
246
|
} else
|
|
238
247
|
m.value = !0, e(l.ERROR, { ...r });
|
|
239
248
|
}), pe = (a) => {
|
|
240
|
-
v(), r.startTime = de(a),
|
|
249
|
+
v(), r.startTime = de(a), N(r.startTime);
|
|
241
250
|
}, _e = (a) => {
|
|
242
251
|
v(), r.endTime = de(a), fe(r.endTime);
|
|
243
252
|
}, ge = (a) => {
|
|
244
253
|
Ne(a);
|
|
245
254
|
}, ve = (a) => {
|
|
246
|
-
var _,
|
|
255
|
+
var _, y;
|
|
247
256
|
f.value = a;
|
|
248
|
-
const s = (
|
|
257
|
+
const s = (y = (_ = t.quickSelectRanges) == null ? void 0 : _.find(({ value: V }) => V === a)) == null ? void 0 : y.data;
|
|
249
258
|
s && (r.startDate = d(s.startDate), r.endDate = d(s.endDate), r.startTime || (r.startTime = R(H(s.startDate))), r.endTime || (r.endTime = R(H(s.endDate))), e(l.CUSTOM_RANGE, s));
|
|
250
259
|
};
|
|
251
260
|
return {
|
|
@@ -256,15 +265,15 @@ const he = /[\d]/, Ae = /^\d{2}$/, xe = /^\d{2}:\d{2}$/, Ne = (t) => {
|
|
|
256
265
|
selectedRangeSelectorValue: f,
|
|
257
266
|
startDateError: u,
|
|
258
267
|
startTimeError: D,
|
|
259
|
-
quickSelectRangeDefaultItems:
|
|
260
|
-
formInputWrapperConditionalClasses:
|
|
268
|
+
quickSelectRangeDefaultItems: x,
|
|
269
|
+
formInputWrapperConditionalClasses: w,
|
|
261
270
|
// Methods
|
|
262
271
|
hasSlot: Oe(n),
|
|
263
272
|
t: b,
|
|
264
273
|
// Events
|
|
265
274
|
onRangeSelectorInput: ve,
|
|
266
275
|
onDateInput: L,
|
|
267
|
-
onDateInputKeyDown:
|
|
276
|
+
onDateInputKeyDown: S,
|
|
268
277
|
onEndDateInput: c,
|
|
269
278
|
onEndDateSelected: X,
|
|
270
279
|
onEndTimeInput: _e,
|
|
@@ -285,27 +294,27 @@ var qe = function() {
|
|
|
285
294
|
return [e._v("YYYY-MM-DD")];
|
|
286
295
|
}, proxy: !0 }]) }), e.allowTimeInput ? n("bento-input-field", { staticClass: "b-date-range-picker-calendar__form-input", attrs: { "aria-label": e.t("timeTo"), value: e.dateTextInput.endTime, error: e.endTimeError }, on: { input: e.onEndTimeInput, keydown: e.onTimeInputKeyDown }, scopedSlots: e._u([{ key: "description", fn: function() {
|
|
287
296
|
return [e._v("HH:MM:SS")];
|
|
288
|
-
}, proxy: !0 }], null, !1, 3442289499) }) : e._e()], 1)], 1)], 2), e.hasSlot("actions") ? n("div", [e._t("actions")], 2) : e._e()]), n("div", { staticClass: "b-date-range-picker-calendar__calendars-container" }, [n("calendar", { attrs: { value: e.value, "first-day-of-week": e.firstDayOfWeek, "is-date-disabled": e.isDateDisabled, "max-range": e.maxRange, "number-of-months": e.numberOfMonths, "is-range": "" }, on: { input: e.onDateInput, "start-date-selected": e.onStartDateSelected, "end-date-selected": e.onEndDateSelected } })], 1)]);
|
|
297
|
+
}, proxy: !0 }], null, !1, 3442289499) }) : e._e()], 1)], 1)], 2), e.hasSlot("actions") ? n("div", [e._t("actions")], 2) : e._e()]), n("div", { staticClass: "b-date-range-picker-calendar__calendars-container" }, [n("calendar", { attrs: { value: e.value, "first-day-of-week": e.firstDayOfWeek, "is-date-disabled": e.isDateDisabled, "max-range": e.maxRange, min: e.min, max: e.max, "number-of-months": e.numberOfMonths, "is-range": "" }, on: { input: e.onDateInput, "start-date-selected": e.onStartDateSelected, "end-date-selected": e.onEndDateSelected } })], 1)]);
|
|
289
298
|
}, Ye = [], Le = /* @__PURE__ */ me(
|
|
290
299
|
Be,
|
|
291
300
|
qe,
|
|
292
301
|
Ye,
|
|
293
302
|
!1,
|
|
294
303
|
null,
|
|
295
|
-
"
|
|
304
|
+
"addfffd3",
|
|
296
305
|
null,
|
|
297
306
|
null
|
|
298
307
|
);
|
|
299
|
-
const
|
|
300
|
-
var
|
|
308
|
+
const k = Le.exports;
|
|
309
|
+
var M = /* @__PURE__ */ ((t) => (t.INPUT = "input", t))(M || {});
|
|
301
310
|
const Ve = ({
|
|
302
311
|
datePickerValue: t,
|
|
303
312
|
isDateIncorrect: e
|
|
304
313
|
}) => {
|
|
305
314
|
var v, d, R, u, p;
|
|
306
|
-
const { locale: n, t: o } = G(), b = { de: z, enUS: I, fr: J }, g = (D, m) =>
|
|
315
|
+
const { locale: n, t: o } = G(), b = { de: z, enUS: I, fr: J }, g = (D, m) => P(D, m, {
|
|
307
316
|
locale: b[n.value.substring(0, 2)] || I
|
|
308
|
-
}), i = (D) =>
|
|
317
|
+
}), i = (D) => P(D, T.HOUR_MINUTE_SECONDS, {
|
|
309
318
|
locale: b[n.value.substring(0, 2)] || I
|
|
310
319
|
}), f = K({
|
|
311
320
|
startDate: (v = t.value) != null && v.startDate ? g(t.value.startDate, T.NUMERIC_DATE_YEAR_FIRST) : void 0,
|
|
@@ -316,7 +325,7 @@ const Ve = ({
|
|
|
316
325
|
});
|
|
317
326
|
return {
|
|
318
327
|
// Values
|
|
319
|
-
dateDisplayValue:
|
|
328
|
+
dateDisplayValue: F(() => {
|
|
320
329
|
if (e.value)
|
|
321
330
|
return `${f.startDate || ""} - ${f.endDate || ""}`;
|
|
322
331
|
if (!t.value || !t.value.startDate && !t.value.endDate)
|
|
@@ -347,7 +356,7 @@ const Ve = ({
|
|
|
347
356
|
components: {
|
|
348
357
|
BentoTypography: De,
|
|
349
358
|
BentoPopover: ye,
|
|
350
|
-
DateRangePickerCalendar:
|
|
359
|
+
DateRangePickerCalendar: k,
|
|
351
360
|
DropdownInputDefault: be,
|
|
352
361
|
ErrorMessage: Me
|
|
353
362
|
},
|
|
@@ -372,11 +381,11 @@ const Ve = ({
|
|
|
372
381
|
/**
|
|
373
382
|
* Allows user to set the first day of the week. 0 is sunday, 1 is monday, 6 is saturday
|
|
374
383
|
*/
|
|
375
|
-
firstDayOfWeek:
|
|
384
|
+
firstDayOfWeek: k.props.firstDayOfWeek,
|
|
376
385
|
/**
|
|
377
386
|
* Indicate if a date should be disabled or not
|
|
378
387
|
*/
|
|
379
|
-
isDateDisabled:
|
|
388
|
+
isDateDisabled: k.props.isDateDisabled,
|
|
380
389
|
/**
|
|
381
390
|
* Text that is displayed as a label above the element.
|
|
382
391
|
*/
|
|
@@ -407,34 +416,42 @@ const Ve = ({
|
|
|
407
416
|
/**
|
|
408
417
|
* Set a maximum number of dates to be selectable by the range.
|
|
409
418
|
*/
|
|
410
|
-
maxRange:
|
|
419
|
+
maxRange: k.props.maxRange,
|
|
420
|
+
/**
|
|
421
|
+
* Sets a minimum limit for selectable dates - dates before `min` will not be selectable
|
|
422
|
+
*/
|
|
423
|
+
min: k.props.min,
|
|
424
|
+
/**
|
|
425
|
+
* Sets a maximum limit for selectable dates - dates after `max` will not be selectable
|
|
426
|
+
*/
|
|
427
|
+
max: k.props.max,
|
|
411
428
|
/**
|
|
412
429
|
* Number of months rendered on pane
|
|
413
430
|
*/
|
|
414
|
-
numberOfMonths:
|
|
431
|
+
numberOfMonths: k.props.numberOfMonths,
|
|
415
432
|
/**
|
|
416
433
|
* Selected date
|
|
417
434
|
*/
|
|
418
|
-
value:
|
|
435
|
+
value: k.props.value
|
|
419
436
|
},
|
|
420
|
-
emits: [
|
|
437
|
+
emits: [M.INPUT],
|
|
421
438
|
setup(t, { emit: e }) {
|
|
422
|
-
const { locale: n, t: o } = G(), b = { de: z, enUS: I, fr: J }, g =
|
|
439
|
+
const { locale: n, t: o } = G(), b = { de: z, enUS: I, fr: J }, g = $("bento-date-range-picker-container"), i = $("bento-date-range-picker-label"), f = $("bento-date-range-picker-description"), w = $("bento-date-range-picker-error"), x = $("bento-date-range-picker-date-error"), v = F(
|
|
423
440
|
() => t.label || o("dateRangePicker", { name: g })
|
|
424
|
-
), d =
|
|
441
|
+
), d = E(!1), R = E(null), u = E(!1), { isReadOnly: p } = Ee(oe(t, "readonly"));
|
|
425
442
|
Ie(
|
|
426
443
|
() => t.disabled,
|
|
427
444
|
() => {
|
|
428
445
|
t.disabled && u.value && (u.value = !1);
|
|
429
446
|
}
|
|
430
447
|
);
|
|
431
|
-
const D =
|
|
448
|
+
const D = F(() => ({
|
|
432
449
|
"b-date-range-picker__description--error": !!t.errorMessage || d.value
|
|
433
450
|
})), { dateDisplayValue: m, textInputDisplayValue: r, formatTextInputDisplayValue: L } = Ve({
|
|
434
451
|
datePickerValue: oe(t, "value"),
|
|
435
452
|
isDateIncorrect: d
|
|
436
|
-
}), U =
|
|
437
|
-
() => `${t.description ? f : ""} ${t.errorMessage ?
|
|
453
|
+
}), U = F(
|
|
454
|
+
() => `${t.description ? f : ""} ${t.errorMessage ? w : ""} ${d.value ? x : ""}`.trim() || null
|
|
438
455
|
);
|
|
439
456
|
return {
|
|
440
457
|
// Refs
|
|
@@ -448,8 +465,8 @@ const Ve = ({
|
|
|
448
465
|
isReadOnly: p,
|
|
449
466
|
labelId: i,
|
|
450
467
|
descriptionId: f,
|
|
451
|
-
dateErrorId:
|
|
452
|
-
errorId:
|
|
468
|
+
dateErrorId: x,
|
|
469
|
+
errorId: w,
|
|
453
470
|
popoverAriaLabel: v,
|
|
454
471
|
ariaDescribedBy: U,
|
|
455
472
|
textInputDisplayValue: r,
|
|
@@ -458,17 +475,17 @@ const Ve = ({
|
|
|
458
475
|
u.value = !1;
|
|
459
476
|
},
|
|
460
477
|
clearDateRangePickerValue: async () => {
|
|
461
|
-
d.value && (d.value = !1), e(
|
|
478
|
+
d.value && (d.value = !1), e(M.INPUT, null);
|
|
462
479
|
},
|
|
463
480
|
openDateRangePicker: () => {
|
|
464
481
|
u.value = !0, L();
|
|
465
482
|
},
|
|
466
483
|
onRangeSelectorInput: (c) => {
|
|
467
484
|
if (c) {
|
|
468
|
-
const
|
|
485
|
+
const S = (N) => P(N, T.NUMERIC_DATE_YEAR_FIRST, {
|
|
469
486
|
locale: b[n.value.substring(0, 2)] || I
|
|
470
487
|
});
|
|
471
|
-
r.startDate =
|
|
488
|
+
r.startDate = S(c.startDate), r.endDate = S(c.endDate), e(M.INPUT, c);
|
|
472
489
|
}
|
|
473
490
|
},
|
|
474
491
|
onEnterPressedOverInput: () => {
|
|
@@ -476,13 +493,13 @@ const Ve = ({
|
|
|
476
493
|
},
|
|
477
494
|
onDateRangePickerInput: (c) => {
|
|
478
495
|
d.value = !1;
|
|
479
|
-
const
|
|
496
|
+
const S = (N) => P(N, T.NUMERIC_DATE_YEAR_FIRST, {
|
|
480
497
|
locale: b[n.value.substring(0, 2)] || I
|
|
481
498
|
});
|
|
482
|
-
r.startDate =
|
|
499
|
+
r.startDate = S(c.startDate), r.endDate = S(c.endDate), e(M.INPUT, c);
|
|
483
500
|
},
|
|
484
501
|
onDateRangePickerError: (c) => {
|
|
485
|
-
d.value = !0, r.startDate = c.startDate, r.endDate = c.endDate, e(
|
|
502
|
+
d.value = !0, r.startDate = c.startDate, r.endDate = c.endDate, e(M.INPUT, { startDate: null, endDate: null });
|
|
486
503
|
},
|
|
487
504
|
onDateRangePickerFormDateInputUpdate: (c) => {
|
|
488
505
|
d.value = !1, c.startTime && (r.startTime = c.startTime), c.endTime && (r.endTime = c.endTime);
|
|
@@ -494,22 +511,22 @@ var Ke = function() {
|
|
|
494
511
|
var e = this, n = e._self._c;
|
|
495
512
|
return e._self._setupProxy, n("div", { directives: [{ name: "bento-click-outside-directive", rawName: "v-bento-click-outside-directive", value: e.closeDateRangePicker, expression: "closeDateRangePicker" }], staticClass: "b-date-range-picker" }, [e.label ? n("div", { staticClass: "b-date-range-picker__label", attrs: { id: e.labelId } }, [n("bento-typography", { attrs: { el: "span", stronger: "" } }, [e._v(e._s(e.label))]), e.optional ? n("bento-typography", { staticClass: "b-date-range-picker__label-requirement", attrs: { el: "span" } }, [e._v(" (" + e._s(e.$t("optional")) + ") ")]) : e._e(), e.required ? n("bento-typography", { staticClass: "b-date-range-picker__label-requirement", attrs: { el: "span" } }, [e._v(" (" + e._s(e.$t("required")) + ") ")]) : e._e()], 1) : e._e(), n("div", { on: { keydown: function(o) {
|
|
496
513
|
return !o.type.indexOf("key") && e._k(o.keyCode, "enter", 13, o.key, "Enter") ? null : e.onEnterPressedOverInput.apply(null, arguments);
|
|
497
|
-
} } }, [n("dropdown-input-default", { ref: "inputContainerRef", attrs: { ariaControls: e.datePickerContainerId, ariaExpanded: e.isDateRangePickerOpen, "aria-labelledby": e.label ? e.labelId : null, "aria-describedby": e.ariaDescribedBy, disabled: e.disabled, "is-invalid": !!e.errorMessage || e.isDateIncorrect, open: e.isDateRangePickerOpen, "display-value": e.dateDisplayValue, readonly: e.isReadOnly }, on: { open: e.openDateRangePicker, clear: e.clearDateRangePickerValue, close: e.closeDateRangePicker } })], 1), e.isDateIncorrect ? n("error-message", { staticClass: "b-date-range-picker__error-message", attrs: { id: e.dateErrorId, "error-message": e.$t("provideDateInAFormat").toString() } }) : e._e(), e.errorMessage ? n("error-message", { staticClass: "b-date-range-picker__error-message", attrs: { id: e.errorId, "error-message": e.errorMessage } }) : e._e(), e.description ? n("bento-typography", { staticClass: "b-date-range-picker__description", class: e.descriptionConditionalClasses, attrs: { id: e.descriptionId, el: "span" } }, [e._v(" " + e._s(e.description) + " ")]) : e._e(), e.inputContainerRef ? n("bento-popover", { staticClass: "b-date-range-picker__container", attrs: { id: e.datePickerContainerId, open: e.isDateRangePickerOpen, "target-element": e.inputContainerRef, "disable-focus-trap": !0, "aria-label": e.popoverAriaLabel, position: "bottom-start", "without-space": "", "fit-content": "" } }, [n("date-range-picker-calendar", { attrs: { "allow-time-input": e.allowTimeInput, "quick-select-ranges": e.quickSelectRanges, value: e.value, "first-day-of-week": e.firstDayOfWeek, "is-date-disabled": e.isDateDisabled, "max-range": e.maxRange, "number-of-months": e.numberOfMonths, "date-form-data": e.textInputDisplayValue }, on: { "custom-range": e.onRangeSelectorInput, input: e.onDateRangePickerInput, error: e.onDateRangePickerError, "form-date": e.onDateRangePickerFormDateInputUpdate } })], 1) : e._e()], 1);
|
|
514
|
+
} } }, [n("dropdown-input-default", { ref: "inputContainerRef", attrs: { ariaControls: e.datePickerContainerId, ariaExpanded: e.isDateRangePickerOpen, "aria-labelledby": e.label ? e.labelId : null, "aria-describedby": e.ariaDescribedBy, disabled: e.disabled, "is-invalid": !!e.errorMessage || e.isDateIncorrect, open: e.isDateRangePickerOpen, "display-value": e.dateDisplayValue, readonly: e.isReadOnly }, on: { open: e.openDateRangePicker, clear: e.clearDateRangePickerValue, close: e.closeDateRangePicker } })], 1), e.isDateIncorrect ? n("error-message", { staticClass: "b-date-range-picker__error-message", attrs: { id: e.dateErrorId, "error-message": e.$t("provideDateInAFormat").toString() } }) : e._e(), e.errorMessage ? n("error-message", { staticClass: "b-date-range-picker__error-message", attrs: { id: e.errorId, "error-message": e.errorMessage } }) : e._e(), e.description ? n("bento-typography", { staticClass: "b-date-range-picker__description", class: e.descriptionConditionalClasses, attrs: { id: e.descriptionId, el: "span" } }, [e._v(" " + e._s(e.description) + " ")]) : e._e(), e.inputContainerRef ? n("bento-popover", { staticClass: "b-date-range-picker__container", attrs: { id: e.datePickerContainerId, open: e.isDateRangePickerOpen, "target-element": e.inputContainerRef, "disable-focus-trap": !0, "aria-label": e.popoverAriaLabel, position: "bottom-start", "without-space": "", "fit-content": "" } }, [n("date-range-picker-calendar", { attrs: { "allow-time-input": e.allowTimeInput, "quick-select-ranges": e.quickSelectRanges, value: e.value, "first-day-of-week": e.firstDayOfWeek, "is-date-disabled": e.isDateDisabled, "max-range": e.maxRange, min: e.min, max: e.max, "number-of-months": e.numberOfMonths, "date-form-data": e.textInputDisplayValue }, on: { "custom-range": e.onRangeSelectorInput, input: e.onDateRangePickerInput, error: e.onDateRangePickerError, "form-date": e.onDateRangePickerFormDateInputUpdate } })], 1) : e._e()], 1);
|
|
498
515
|
}, Ge = [], je = /* @__PURE__ */ me(
|
|
499
516
|
We,
|
|
500
517
|
Ke,
|
|
501
518
|
Ge,
|
|
502
519
|
!1,
|
|
503
520
|
null,
|
|
504
|
-
"
|
|
521
|
+
"40ef228c",
|
|
505
522
|
null,
|
|
506
523
|
null
|
|
507
524
|
);
|
|
508
|
-
const
|
|
525
|
+
const pt = je.exports;
|
|
509
526
|
export {
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
527
|
+
pt as B,
|
|
528
|
+
k as D,
|
|
529
|
+
M as a,
|
|
513
530
|
le as i
|
|
514
531
|
};
|
|
515
|
-
//# sourceMappingURL=index.
|
|
532
|
+
//# sourceMappingURL=index.e566354f.js.map
|