@adyen/bento-vue3 1.24.0 → 1.26.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/@types/packages/vue2/src/components/alert/alert.types.d.ts +3 -0
- package/dist/@types/packages/vue2/src/components/alert/alert.vue.d.ts +46 -54
- package/dist/@types/packages/vue2/src/components/card/card.vue.d.ts +86 -179
- 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 +2 -2
- package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-cell/data-grid-cell.keys.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-cell/data-grid-cell.types.d.ts +8 -1
- package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-cell/data-grid-cell.vue.d.ts +7 -4
- package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-cell-actions/data-grid-cell-actions.types.d.ts +10 -2
- package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-cell-actions/data-grid-cell-actions.vue.d.ts +6 -2
- package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-columns/data-grid-columns.types.d.ts +3 -0
- package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-columns/data-grid-columns.vue.d.ts +8 -6
- package/dist/@types/packages/vue2/src/components/data-grid/composables/use-calculate-column-width/use-calculate-column-width.d.ts +26 -11
- package/dist/@types/packages/vue2/src/components/data-grid/composables/use-calculate-column-width/use-calculate-column-width.types.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/data-grid/composables/use-column-hovering/use-column-hovering.d.ts +18 -6
- package/dist/@types/packages/vue2/src/components/data-grid/composables/use-column-reorderer/use-column-reorderer.d.ts +36 -12
- package/dist/@types/packages/vue2/src/components/data-grid/composables/use-config-settings/use-config-settings.d.ts +18 -6
- package/dist/@types/packages/vue2/src/components/data-grid/composables/use-resizer.d.ts +18 -6
- package/dist/@types/packages/vue2/src/components/data-grid/data-grid.vue.d.ts +19 -53
- package/dist/@types/packages/vue2/src/components/date-picker/date-picker.vue.d.ts +2 -2
- package/dist/@types/packages/vue2/src/components/date-range-picker/date-range-picker.vue.d.ts +2 -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/composables/use-dropdown-options-listbox.d.ts +13 -7
- package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-options-container/dropdown-options-container.vue.d.ts +14 -14
- 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/composables/use-display-value.d.ts +2 -2
- package/dist/@types/packages/vue2/src/components/dropdown/composables/use-display-value.types.d.ts +3 -24
- package/dist/@types/packages/vue2/src/components/dropdown/dropdown.vue.d.ts +4 -4
- package/dist/@types/packages/vue2/src/components/empty-state/empty-state.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/filter-bar/components/range-filter/index.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/components/index.d.ts +2 -0
- package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/components/select-filter-button/select-filter-button.vue.d.ts +148 -0
- package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/components/select-filter-dropdown/select-filter-dropdown.vue.d.ts +150 -0
- package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/select-filter.vue.d.ts +28 -27
- package/dist/@types/packages/vue2/src/components/input-field/input-field.vue.d.ts +11 -7
- package/dist/@types/packages/vue2/src/components/internal/checkbox-input/checkbox-input.vue.d.ts +1 -1
- 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/dialog-page/dialog-page.types.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/internal/field-label/field-label.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-multi-select/components/listbox-multi-select-chips/listbox-multi-select-chips.vue.d.ts +3 -3
- 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 +1 -2
- package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-multi-select/listbox-multi-select.vue.d.ts +45 -9
- package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-single-select/listbox-single-select.vue.d.ts +10 -9
- package/dist/@types/packages/vue2/src/components/internal/listbox/composables/use-cached-selected-values/use-cached-selected-values.d.ts +2 -2
- package/dist/@types/packages/vue2/src/components/internal/listbox/listbox.vue.d.ts +15 -15
- package/dist/@types/packages/vue2/src/components/internal/radio-input/radio-input.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/menu/components/menu-item-list/menu-item-list.vue.d.ts +3 -2
- package/dist/@types/packages/vue2/src/components/menu/components/menu-list-container/menu-list-container.vue.d.ts +8 -1
- package/dist/@types/packages/vue2/src/components/menu/menu.vue.d.ts +3 -1
- package/dist/@types/packages/vue2/src/components/radio-group/radio-group.vue.d.ts +2 -2
- package/dist/@types/packages/vue2/src/components/selection-card/components/selection-card-group/selection-card-group.vue.d.ts +3 -3
- package/dist/@types/packages/vue2/src/components/textarea/textarea.vue.d.ts +2 -2
- package/dist/@types/packages/vue2/src/components/toggle/toggle.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/tutorial/components/tutorial-popover/tutorial-popover.vue.d.ts +20 -0
- package/dist/@types/packages/vue2/src/components/tutorial/tutorial.types.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/tutorial/tutorial.vue.d.ts +22 -2
- package/dist/@types/packages/vue2/src/components/typography/index.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/typography/typography.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/composables/use-click-outside/index.d.ts +1 -0
- package/dist/@types/packages/vue2/src/index.d.ts +1 -0
- package/dist/accordion.js +3 -3
- package/dist/action-bar.js +7 -7
- package/dist/alert.js +126 -166
- package/dist/alert.js.map +1 -1
- package/dist/assets/base-modal.css +1 -1
- package/dist/assets/dialog-page.css +1 -1
- package/dist/assets/dropdown.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 -1
- package/dist/assets/index43.css +1 -1
- package/dist/assets/index44.css +1 -1
- package/dist/assets/index45.css +1 -1
- package/dist/assets/index46.css +1 -1
- package/dist/assets/index47.css +1 -1
- package/dist/assets/index48.css +1 -1
- 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 → use-cached-selected-values.css} +1 -1
- package/dist/avatar-image.js +1 -1
- package/dist/badge.js +1 -1
- package/dist/button.js +5 -5
- package/dist/card.js +168 -267
- package/dist/card.js.map +1 -1
- package/dist/checkbox.js +6 -6
- package/dist/chunks/{base-button.ab9c947e.js → base-button.e84acf30.js} +2 -2
- package/dist/chunks/{base-button.ab9c947e.js.map → base-button.e84acf30.js.map} +1 -1
- package/dist/chunks/{base-modal.28b5ff83.js → base-modal.29e062d0.js} +7 -7
- package/dist/chunks/{base-modal.28b5ff83.js.map → base-modal.29e062d0.js.map} +1 -1
- package/dist/chunks/{button-actions-with-menu.305991e5.js → button-actions-with-menu.7fce47a2.js} +4 -4
- package/dist/chunks/{button-actions-with-menu.305991e5.js.map → button-actions-with-menu.7fce47a2.js.map} +1 -1
- package/dist/chunks/{button-actions.ea025810.js → button-actions.642b37de.js} +3 -3
- package/dist/chunks/{button-actions.ea025810.js.map → button-actions.642b37de.js.map} +1 -1
- package/dist/chunks/{button.ce5d1f5e.js → button.60dad578.js} +3 -3
- package/dist/chunks/{button.ce5d1f5e.js.map → button.60dad578.js.map} +1 -1
- package/dist/chunks/{calendar.24a492f1.js → calendar.f38cdab9.js} +5 -5
- package/dist/chunks/{calendar.24a492f1.js.map → calendar.f38cdab9.js.map} +1 -1
- package/dist/chunks/{checkbox-input.99336948.js → checkbox-input.ab758a81.js} +2 -2
- package/dist/chunks/{checkbox-input.99336948.js.map → checkbox-input.ab758a81.js.map} +1 -1
- package/dist/chunks/{checkbox.d0f897e0.js → checkbox.f55ee3a5.js} +4 -4
- package/dist/chunks/{checkbox.d0f897e0.js.map → checkbox.f55ee3a5.js.map} +1 -1
- package/dist/chunks/{checkmark-circle-fill.c45a999d.js → checkmark-circle-fill.f3a69c6a.js} +2 -2
- package/dist/chunks/{checkmark-circle-fill.c45a999d.js.map → checkmark-circle-fill.f3a69c6a.js.map} +1 -1
- package/dist/chunks/{checkmark-small.c79220d9.js → checkmark-small.d7e31e5e.js} +2 -2
- package/dist/chunks/{checkmark-small.c79220d9.js.map → checkmark-small.d7e31e5e.js.map} +1 -1
- package/dist/chunks/{checkmark.eb3c7a06.js → checkmark.87919b24.js} +2 -2
- package/dist/chunks/{checkmark.eb3c7a06.js.map → checkmark.87919b24.js.map} +1 -1
- package/dist/chunks/{chevron-left.4ee92950.js → chevron-left.963d35e9.js} +2 -2
- package/dist/chunks/{chevron-left.4ee92950.js.map → chevron-left.963d35e9.js.map} +1 -1
- package/dist/chunks/{chevron-up.638a9f34.js → chevron-up.05ca20db.js} +2 -2
- package/dist/chunks/{chevron-up.638a9f34.js.map → chevron-up.05ca20db.js.map} +1 -1
- package/dist/chunks/{controls-group.2b31233c.js → controls-group.9e0f17b2.js} +3 -3
- package/dist/chunks/{controls-group.2b31233c.js.map → controls-group.9e0f17b2.js.map} +1 -1
- package/dist/chunks/{copy.9003ed59.js → copy.852d4cb8.js} +4 -4
- package/dist/chunks/{copy.9003ed59.js.map → copy.852d4cb8.js.map} +1 -1
- package/dist/chunks/{cross-circle-fill.1abec1a2.js → cross-circle-fill.81925c7f.js} +2 -2
- package/dist/chunks/{cross-circle-fill.1abec1a2.js.map → cross-circle-fill.81925c7f.js.map} +1 -1
- package/dist/chunks/{cross-small.b85406fe.js → cross-small.9bc6a02f.js} +2 -2
- package/dist/chunks/{cross-small.b85406fe.js.map → cross-small.9bc6a02f.js.map} +1 -1
- package/dist/chunks/{cross.26509efc.js → cross.a60533f6.js} +2 -2
- package/dist/chunks/{cross.26509efc.js.map → cross.a60533f6.js.map} +1 -1
- package/dist/chunks/dialog-page.ea67bb14.js +173 -0
- package/dist/chunks/dialog-page.ea67bb14.js.map +1 -0
- package/dist/chunks/{dropdown-default-textbox.311443a8.js → dropdown-default-textbox.ad5063c2.js} +4 -4
- package/dist/chunks/{dropdown-default-textbox.311443a8.js.map → dropdown-default-textbox.ad5063c2.js.map} +1 -1
- package/dist/chunks/{dropdown.170b43c4.js → dropdown.d8587f36.js} +295 -317
- package/dist/chunks/dropdown.d8587f36.js.map +1 -0
- package/dist/chunks/{error-message.4678cbdc.js → error-message.3fb5573a.js} +3 -3
- package/dist/chunks/{error-message.4678cbdc.js.map → error-message.3fb5573a.js.map} +1 -1
- package/dist/chunks/{fixed-scroller.f09618f2.js → fixed-scroller.59aefd1b.js} +3 -3
- package/dist/chunks/{fixed-scroller.f09618f2.js.map → fixed-scroller.59aefd1b.js.map} +1 -1
- package/dist/chunks/{footer-actions.2efe610e.js → footer-actions.89e68269.js} +4 -4
- package/dist/chunks/{footer-actions.2efe610e.js.map → footer-actions.89e68269.js.map} +1 -1
- package/dist/chunks/{index.1b1646bf.js → index.030c1dd7.js} +212 -191
- package/dist/chunks/index.030c1dd7.js.map +1 -0
- package/dist/chunks/{index.70c91b3b.js → index.07122048.js} +2 -2
- package/dist/chunks/{index.70c91b3b.js.map → index.07122048.js.map} +1 -1
- package/dist/chunks/{index.c41d1bbb.js → index.146f967e.js} +2 -2
- package/dist/chunks/{index.c41d1bbb.js.map → index.146f967e.js.map} +1 -1
- package/dist/chunks/{index.920cc1ee.js → index.5bdebf9d.js} +7 -7
- package/dist/chunks/{index.920cc1ee.js.map → index.5bdebf9d.js.map} +1 -1
- package/dist/chunks/{index.b772214b.js → index.6e0e9d21.js} +3 -3
- package/dist/chunks/{index.b772214b.js.map → index.6e0e9d21.js.map} +1 -1
- package/dist/chunks/{index.44f2aca7.js → index.8be283d5.js} +2 -2
- package/dist/chunks/{index.44f2aca7.js.map → index.8be283d5.js.map} +1 -1
- package/dist/chunks/{index.0d513625.js → index.96cd0d4c.js} +9 -9
- package/dist/chunks/{index.0d513625.js.map → index.96cd0d4c.js.map} +1 -1
- package/dist/chunks/{index.b3cb905c.js → index.9bf04b01.js} +3 -3
- package/dist/chunks/{index.b3cb905c.js.map → index.9bf04b01.js.map} +1 -1
- package/dist/chunks/{index.51fe0fc2.js → index.a3d60e4f.js} +17 -17
- package/dist/chunks/index.a3d60e4f.js.map +1 -0
- package/dist/chunks/{index.c5b58864.js → index.ba3396d3.js} +3 -3
- package/dist/chunks/{index.c5b58864.js.map → index.ba3396d3.js.map} +1 -1
- package/dist/chunks/{index.6987f880.js → index.c8ffede1.js} +7 -7
- package/dist/chunks/{index.6987f880.js.map → index.c8ffede1.js.map} +1 -1
- package/dist/chunks/{info.550f9511.js → info.205b4496.js} +2 -2
- package/dist/chunks/{info.550f9511.js.map → info.205b4496.js.map} +1 -1
- package/dist/chunks/{listbox-option-tag.bf77e0c4.js → listbox-option-tag.b6182b2e.js} +3 -3
- package/dist/chunks/{listbox-option-tag.bf77e0c4.js.map → listbox-option-tag.b6182b2e.js.map} +1 -1
- package/dist/chunks/{loading-button.cdc193c6.js → loading-button.0391ad8b.js} +4 -4
- package/dist/chunks/{loading-button.cdc193c6.js.map → loading-button.0391ad8b.js.map} +1 -1
- package/dist/chunks/{payment-method.ea1788f7.js → payment-method.31a68b9b.js} +2 -2
- package/dist/chunks/{payment-method.ea1788f7.js.map → payment-method.31a68b9b.js.map} +1 -1
- package/dist/chunks/{refresh.bd60f6a8.js → refresh.53691839.js} +2 -2
- package/dist/chunks/{refresh.bd60f6a8.js.map → refresh.53691839.js.map} +1 -1
- package/dist/chunks/{search.ade93bda.js → search.4e4ee4dd.js} +2 -2
- package/dist/chunks/{search.ade93bda.js.map → search.4e4ee4dd.js.map} +1 -1
- package/dist/chunks/{tooltip.10210728.js → tooltip.1084d92b.js} +3 -3
- package/dist/chunks/{tooltip.10210728.js.map → tooltip.1084d92b.js.map} +1 -1
- package/dist/chunks/{use-bento-toast-controller.3275a505.js → use-bento-toast-controller.98d8613c.js} +2 -2
- package/dist/chunks/{use-bento-toast-controller.3275a505.js.map → use-bento-toast-controller.98d8613c.js.map} +1 -1
- package/dist/chunks/use-cached-selected-values.852aeafe.js +1537 -0
- package/dist/chunks/use-cached-selected-values.852aeafe.js.map +1 -0
- package/dist/code-snippet.js +7 -7
- package/dist/code-snippet.js.map +1 -1
- package/dist/country.js +2 -2
- package/dist/currency.js +1 -1
- package/dist/data-grid-template.js +1 -1
- package/dist/data-grid.js +1317 -1256
- package/dist/data-grid.js.map +1 -1
- package/dist/date-picker.js +8 -8
- package/dist/date-range-picker.js +2 -2
- package/dist/date.js +1 -1
- package/dist/divider.js +1 -1
- package/dist/dropdown.js +7 -7
- package/dist/empty-state.js +3 -3
- package/dist/filter-bar.js +1260 -1108
- package/dist/filter-bar.js.map +1 -1
- package/dist/focus-trap.js +1 -1
- package/dist/form-layout.js +53 -51
- package/dist/form-layout.js.map +1 -1
- package/dist/header.js +5 -5
- package/dist/index.js +141 -133
- package/dist/index.js.map +1 -1
- package/dist/info-icon.js +4 -4
- package/dist/input-field.js +50 -48
- package/dist/input-field.js.map +1 -1
- package/dist/internal.js +31 -78
- package/dist/internal.js.map +1 -1
- package/dist/link.js +1 -1
- package/dist/loading-indicator.js +1 -1
- package/dist/menu.js +1 -1
- package/dist/modal-fullscreen.js +7 -7
- package/dist/modal.js +6 -6
- package/dist/pagination.js +4 -4
- package/dist/payment-method.js +1 -1
- package/dist/popover.js +1 -1
- package/dist/popper-container.js +1 -1
- package/dist/radio-group.js +112 -112
- package/dist/radio-group.js.map +1 -1
- package/dist/search-bar.js +4 -4
- package/dist/secondary-nav.js +2 -2
- package/dist/segmented-control.js +4 -4
- package/dist/selection-card.js +5 -5
- package/dist/sidepanel.js +64 -62
- package/dist/sidepanel.js.map +1 -1
- package/dist/status.js +2 -2
- package/dist/stepper.js +4 -4
- package/dist/structured-list.js +1 -1
- package/dist/summary-grid.js +3 -3
- package/dist/tabs.js +22 -20
- package/dist/tabs.js.map +1 -1
- package/dist/tag.js +3 -3
- package/dist/textarea.js +4 -4
- package/dist/timeline.js +7 -7
- package/dist/toast.js +5 -5
- package/dist/toggle.js +3 -3
- package/dist/tutorial.js +145 -124
- package/dist/tutorial.js.map +1 -1
- package/dist/typography.js +1 -1
- package/dist/web-types.json +1 -1
- package/package.json +7 -3
- package/dist/@types/packages/vue2/src/composables/useDynamicImport.d.ts +0 -8
- package/dist/chunks/dialog-page.2c07d294.js +0 -172
- package/dist/chunks/dialog-page.2c07d294.js.map +0 -1
- package/dist/chunks/dropdown.170b43c4.js.map +0 -1
- package/dist/chunks/index.1b1646bf.js.map +0 -1
- package/dist/chunks/index.51fe0fc2.js.map +0 -1
- package/dist/chunks/listbox.b6a1aea2.js +0 -1466
- package/dist/chunks/listbox.b6a1aea2.js.map +0 -1
- /package/dist/@types/packages/{vue2 → core}/src/components/typography/typography.types.d.ts +0 -0
- /package/dist/assets/{cross.css → checkmark-circle-fill.css} +0 -0
|
@@ -1,81 +1,81 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import { d as
|
|
3
|
-
import { D as
|
|
4
|
-
import { _ as
|
|
5
|
-
import { g as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import { u as
|
|
9
|
-
import { B as R, a as
|
|
10
|
-
import {
|
|
11
|
-
import { u as
|
|
12
|
-
import { F as
|
|
13
|
-
import { a as
|
|
14
|
-
import { a as
|
|
1
|
+
import { ref as S, watch as Le, computed as u, defineComponent as F, useSlots as we, toRefs as $e, openBlock as g, createBlock as k, resolveDynamicComponent as Oe, unref as a, mergeProps as A, withCtx as K, createElementVNode as Q, withKeys as Ue, createVNode as J, toHandlers as Z, createSlots as ne, renderList as se, renderSlot as Y, normalizeProps as ie, guardReactiveProps as re, createElementBlock as M, toDisplayString as fe, createCommentVNode as P, normalizeClass as de, withDirectives as G, vShow as ye, nextTick as T, useAttrs as qe, toRef as _, inject as He, createTextVNode as Ve } from "vue";
|
|
2
|
+
import { d as be, B as Je } from "./index.a3d60e4f.js";
|
|
3
|
+
import { D as oe, a as ge, b as Ye, B as Ze, c as Ge } from "./dropdown-default-textbox.ad5063c2.js";
|
|
4
|
+
import { _ as H } from "./_plugin-vue_export-helper.dad06003.js";
|
|
5
|
+
import { g as q } from "./unique-id.a2a2b458.js";
|
|
6
|
+
import { u as Qe } from "./aria-label.ac9651a5.js";
|
|
7
|
+
import { u as pe } from "./i18n.f7e6533e.js";
|
|
8
|
+
import { u as Xe } from "./use-form-layout-loading.d03e5d48.js";
|
|
9
|
+
import { B as R, a as et } from "./keyboard-navigation.ca47dfa8.js";
|
|
10
|
+
import { c as d, b as ue, B as ce, a as tt, u as lt } from "./use-cached-selected-values.852aeafe.js";
|
|
11
|
+
import { u as at } from "./use-has-slot.4d98bf29.js";
|
|
12
|
+
import { F as ot, E as nt } from "./error-message.3fb5573a.js";
|
|
13
|
+
import { a as he } from "./index.9bf04b01.js";
|
|
14
|
+
import { a as st } from "./index.5bdebf9d.js";
|
|
15
15
|
import "../assets/dropdown.css";
|
|
16
16
|
var D = /* @__PURE__ */ ((e) => (e.DEFAULT = "DropdownInputDefault", e.SMALL = "DropdownInputSmall", e))(D || {});
|
|
17
|
-
const
|
|
17
|
+
const me = {
|
|
18
18
|
"en-US": {
|
|
19
19
|
apply: "Apply",
|
|
20
20
|
cancel: "Cancel",
|
|
21
21
|
noOptionsMatchThisSearch: "No options match this search"
|
|
22
22
|
}
|
|
23
|
-
},
|
|
24
|
-
const n =
|
|
25
|
-
|
|
23
|
+
}, it = (e, o, t, l) => {
|
|
24
|
+
const n = S(e.value), { t: i } = pe({ messages: me });
|
|
25
|
+
Le(e, () => {
|
|
26
26
|
n.value = e.value;
|
|
27
27
|
});
|
|
28
|
-
const r =
|
|
28
|
+
const r = u(
|
|
29
29
|
() => JSON.stringify(n.value) === JSON.stringify(e.value)
|
|
30
|
-
),
|
|
31
|
-
l(
|
|
32
|
-
},
|
|
33
|
-
n.value = e.value, l(
|
|
30
|
+
), c = () => {
|
|
31
|
+
l(d.SELECT, n.value), l(d.CLOSE_DROPDOWN);
|
|
32
|
+
}, f = () => {
|
|
33
|
+
n.value = e.value, l(d.CLOSE_DROPDOWN);
|
|
34
34
|
}, y = () => {
|
|
35
35
|
t.value && o.value && (n.value = e.value);
|
|
36
|
-
},
|
|
36
|
+
}, p = u(() => [
|
|
37
37
|
{
|
|
38
|
-
title:
|
|
39
|
-
event:
|
|
38
|
+
title: i("apply"),
|
|
39
|
+
event: c,
|
|
40
40
|
disabled: r.value
|
|
41
41
|
},
|
|
42
42
|
{
|
|
43
|
-
title:
|
|
44
|
-
event:
|
|
43
|
+
title: i("cancel"),
|
|
44
|
+
event: f
|
|
45
45
|
}
|
|
46
|
-
]), h = (
|
|
47
|
-
n.value =
|
|
48
|
-
},
|
|
49
|
-
h(
|
|
50
|
-
}, $ = (
|
|
51
|
-
h(
|
|
52
|
-
}, O = (
|
|
53
|
-
h(
|
|
54
|
-
},
|
|
55
|
-
|
|
56
|
-
},
|
|
57
|
-
l(
|
|
46
|
+
]), h = (s) => {
|
|
47
|
+
n.value = s, o.value || l(d.SELECT, s);
|
|
48
|
+
}, w = (s) => {
|
|
49
|
+
h(s), l(d.TAB);
|
|
50
|
+
}, $ = (s) => {
|
|
51
|
+
h(s), l(d.ENTER);
|
|
52
|
+
}, O = (s) => {
|
|
53
|
+
h(s), l(d.SPACE);
|
|
54
|
+
}, x = () => {
|
|
55
|
+
f(), l(d.ESCAPE);
|
|
56
|
+
}, L = () => {
|
|
57
|
+
l(d.SHOW_MORE);
|
|
58
58
|
}, N = {
|
|
59
|
-
[
|
|
60
|
-
[
|
|
61
|
-
[
|
|
62
|
-
[
|
|
63
|
-
[
|
|
59
|
+
[d.SELECT]: h,
|
|
60
|
+
[d.SHOW_MORE]: L,
|
|
61
|
+
[d.TAB]: w,
|
|
62
|
+
[d.SPACE]: O,
|
|
63
|
+
[d.ENTER]: $
|
|
64
64
|
};
|
|
65
65
|
return {
|
|
66
66
|
// Values
|
|
67
|
-
actions:
|
|
67
|
+
actions: p,
|
|
68
68
|
internalSelectedValue: n,
|
|
69
69
|
// Methods
|
|
70
70
|
listeners: N,
|
|
71
|
-
onEscapeKey:
|
|
71
|
+
onEscapeKey: x,
|
|
72
72
|
onOutsideDropdownClick: y
|
|
73
73
|
};
|
|
74
|
-
},
|
|
75
|
-
i18n: { messages:
|
|
74
|
+
}, rt = F({
|
|
75
|
+
i18n: { messages: me },
|
|
76
76
|
name: "bento-dropdown-options-container"
|
|
77
|
-
}),
|
|
78
|
-
...
|
|
77
|
+
}), dt = /* @__PURE__ */ F({
|
|
78
|
+
...rt,
|
|
79
79
|
props: {
|
|
80
80
|
/**
|
|
81
81
|
* Defines a string value that labels an interactive element.
|
|
@@ -138,8 +138,8 @@ const fe = {
|
|
|
138
138
|
*/
|
|
139
139
|
lazyLoadType: {
|
|
140
140
|
type: String,
|
|
141
|
-
default:
|
|
142
|
-
validator: (e) => Object.values(
|
|
141
|
+
default: ue.AUTOMATIC,
|
|
142
|
+
validator: (e) => Object.values(ue).includes(e)
|
|
143
143
|
},
|
|
144
144
|
/**
|
|
145
145
|
* Indicates if new options are loading.
|
|
@@ -160,7 +160,7 @@ const fe = {
|
|
|
160
160
|
* Set to an empty string `''` if you don't want any of the available options to be selected for single select
|
|
161
161
|
*/
|
|
162
162
|
selectedValue: {
|
|
163
|
-
type:
|
|
163
|
+
type: Array,
|
|
164
164
|
default: null
|
|
165
165
|
},
|
|
166
166
|
/**
|
|
@@ -169,7 +169,7 @@ const fe = {
|
|
|
169
169
|
*
|
|
170
170
|
* If enabled, hides the "Select all" checkbox in "multiple" mode.
|
|
171
171
|
*/
|
|
172
|
-
searching:
|
|
172
|
+
searching: ce.props.searching,
|
|
173
173
|
/**
|
|
174
174
|
* If enabled, dropdown will display non-selectable, static categories
|
|
175
175
|
*/
|
|
@@ -178,7 +178,7 @@ const fe = {
|
|
|
178
178
|
* Reference to the DOM element or Vue component for positioning
|
|
179
179
|
* the Dropdown container.
|
|
180
180
|
*/
|
|
181
|
-
targetElement: { type:
|
|
181
|
+
targetElement: { type: he.props.targetElement.type, required: !0 },
|
|
182
182
|
/**
|
|
183
183
|
* Enables virtual scrolling if set to true or by providing an object with itemHeight function.
|
|
184
184
|
* The itemHeight function is used to calculate the height of rendered item given it's index.
|
|
@@ -189,15 +189,15 @@ const fe = {
|
|
|
189
189
|
}
|
|
190
190
|
},
|
|
191
191
|
setup(e, { expose: o, emit: t }) {
|
|
192
|
-
const l = e, n =
|
|
192
|
+
const l = e, n = we(), { selectedValue: i, multiple: r } = $e(l), c = S(null), { t: f } = pe({ messages: me }), y = u(() => l.open && !l.disabled), p = u(() => f("noOptionsMatchThisSearch")), h = u(() => ({
|
|
193
193
|
"b-dropdown-options-container--single": !(l != null && l.multiple)
|
|
194
|
-
})),
|
|
194
|
+
})), w = u(() => ({
|
|
195
195
|
"b-dropdown-options-container__listbox--small": l.inputSize === D.SMALL,
|
|
196
196
|
"b-dropdown-options-container__listbox--single": !(l != null && l.multiple)
|
|
197
|
-
})), { actions: $, internalSelectedValue: O, listeners:
|
|
198
|
-
var
|
|
197
|
+
})), { actions: $, internalSelectedValue: O, listeners: x, onEscapeKey: L, onOutsideDropdownClick: N } = it(i, r, y, t), s = u(() => l != null && l.multiple ? st : he), m = u(() => {
|
|
198
|
+
var E;
|
|
199
199
|
const b = {
|
|
200
|
-
"min-width": `${(
|
|
200
|
+
"min-width": `${(E = l == null ? void 0 : l.targetElement) == null ? void 0 : E.clientWidth}px`,
|
|
201
201
|
"max-width": "min(500px, 95%)"
|
|
202
202
|
};
|
|
203
203
|
return l != null && l.multiple ? {
|
|
@@ -205,7 +205,7 @@ const fe = {
|
|
|
205
205
|
actions: $.value,
|
|
206
206
|
divider: !0,
|
|
207
207
|
fallbackPosition: ["top-start"],
|
|
208
|
-
id:
|
|
208
|
+
id: q(`dropdown-options-${l.id}`),
|
|
209
209
|
open: l.open,
|
|
210
210
|
position: "bottom-start",
|
|
211
211
|
style: {
|
|
@@ -226,40 +226,40 @@ const fe = {
|
|
|
226
226
|
});
|
|
227
227
|
return o({
|
|
228
228
|
onOutsideDropdownClick: N
|
|
229
|
-
}), (b,
|
|
229
|
+
}), (b, E) => (g(), k(Oe(a(s)), A({
|
|
230
230
|
class: ["b-dropdown-options-container", a(h)]
|
|
231
|
-
}, a(
|
|
232
|
-
default:
|
|
231
|
+
}, a(m)), {
|
|
232
|
+
default: K(() => [
|
|
233
233
|
Q("div", {
|
|
234
|
-
onKeydown:
|
|
234
|
+
onKeydown: E[0] || (E[0] = Ue(
|
|
235
235
|
//@ts-ignore
|
|
236
|
-
(...
|
|
236
|
+
(...z) => a(L) && a(L)(...z),
|
|
237
237
|
["esc"]
|
|
238
238
|
))
|
|
239
239
|
}, [
|
|
240
|
-
J(a(
|
|
240
|
+
J(a(ce), A({
|
|
241
241
|
id: e.id,
|
|
242
242
|
ref_key: "dropdownOptionsListboxRef",
|
|
243
|
-
ref:
|
|
243
|
+
ref: c,
|
|
244
244
|
"aria-label": e.ariaLabel,
|
|
245
|
-
class: ["b-dropdown-options-container__listbox", a(
|
|
245
|
+
class: ["b-dropdown-options-container__listbox", a(w)],
|
|
246
246
|
"empty-state": e.emptyState,
|
|
247
247
|
"is-option-disabled": e.isOptionDisabled,
|
|
248
248
|
items: e.items,
|
|
249
249
|
"selected-value": a(O),
|
|
250
250
|
multiple: a(r),
|
|
251
251
|
"static-categories": e.staticCategories,
|
|
252
|
-
"no-results-message": a(
|
|
252
|
+
"no-results-message": a(p),
|
|
253
253
|
searching: e.searching,
|
|
254
254
|
loading: e.loading,
|
|
255
255
|
"lazy-load-type": e.lazyLoadType,
|
|
256
256
|
"has-more-items": e.hasMoreItems,
|
|
257
257
|
"virtual-scroll": e.virtualScroll
|
|
258
|
-
}, Z(a(
|
|
259
|
-
|
|
260
|
-
name:
|
|
261
|
-
fn:
|
|
262
|
-
Y(b.$slots,
|
|
258
|
+
}, Z(a(x))), ne({ _: 2 }, [
|
|
259
|
+
se(a(n), (z, W) => ({
|
|
260
|
+
name: W,
|
|
261
|
+
fn: K((X) => [
|
|
262
|
+
Y(b.$slots, W, ie(re(X)), void 0, !0)
|
|
263
263
|
])
|
|
264
264
|
}))
|
|
265
265
|
]), 1040, ["id", "aria-label", "class", "empty-state", "is-option-disabled", "items", "selected-value", "multiple", "static-categories", "no-results-message", "searching", "loading", "lazy-load-type", "has-more-items", "virtual-scroll"])
|
|
@@ -269,17 +269,17 @@ const fe = {
|
|
|
269
269
|
}, 16, ["class"]));
|
|
270
270
|
}
|
|
271
271
|
});
|
|
272
|
-
const
|
|
273
|
-
let
|
|
274
|
-
const
|
|
272
|
+
const ut = /* @__PURE__ */ H(dt, [["__scopeId", "data-v-148aeb07"]]);
|
|
273
|
+
let xe = 0;
|
|
274
|
+
const ct = {
|
|
275
275
|
beforeCreate() {
|
|
276
|
-
this.uuid =
|
|
276
|
+
this.uuid = xe.toString(), xe += 1;
|
|
277
277
|
}
|
|
278
|
-
},
|
|
278
|
+
}, ft = { key: 0 }, pt = /* @__PURE__ */ Q("path", {
|
|
279
279
|
fill: "#00112C",
|
|
280
280
|
d: "M5.00011 5.43922L8.00011 8.43922L11.0001 5.43922L12.0608 6.49988L8.00011 10.5605L3.93945 6.49988L5.00011 5.43922Z"
|
|
281
281
|
}, null, -1);
|
|
282
|
-
function
|
|
282
|
+
function mt(e, o, t, l, n, i) {
|
|
283
283
|
return g(), M("svg", A({ role: "img" }, e.$attrs, {
|
|
284
284
|
class: "ui-assets-icons-16",
|
|
285
285
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -287,21 +287,21 @@ function ut(e, o, t, l, n, s) {
|
|
|
287
287
|
height: "16",
|
|
288
288
|
fill: "none"
|
|
289
289
|
}), [
|
|
290
|
-
e.$attrs["svg-title"] ? (g(), M("title",
|
|
291
|
-
|
|
290
|
+
e.$attrs["svg-title"] ? (g(), M("title", ft, fe(e.$attrs["svg-title"]), 1)) : P("", !0),
|
|
291
|
+
pt
|
|
292
292
|
], 16);
|
|
293
293
|
}
|
|
294
|
-
const
|
|
295
|
-
let
|
|
296
|
-
const
|
|
294
|
+
const vt = /* @__PURE__ */ H(ct, [["render", mt]]);
|
|
295
|
+
let Se = 0;
|
|
296
|
+
const yt = {
|
|
297
297
|
beforeCreate() {
|
|
298
|
-
this.uuid =
|
|
298
|
+
this.uuid = Se.toString(), Se += 1;
|
|
299
299
|
}
|
|
300
|
-
},
|
|
300
|
+
}, bt = { key: 0 }, gt = /* @__PURE__ */ Q("path", {
|
|
301
301
|
fill: "#00112C",
|
|
302
302
|
d: "M10.9999 10.5608L7.9999 7.56077L4.9999 10.5608L3.93924 9.50011L7.9999 5.43945L12.0606 9.50011L10.9999 10.5608Z"
|
|
303
303
|
}, null, -1);
|
|
304
|
-
function
|
|
304
|
+
function ht(e, o, t, l, n, i) {
|
|
305
305
|
return g(), M("svg", A({ role: "img" }, e.$attrs, {
|
|
306
306
|
class: "ui-assets-icons-16",
|
|
307
307
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -309,15 +309,15 @@ function mt(e, o, t, l, n, s) {
|
|
|
309
309
|
height: "16",
|
|
310
310
|
fill: "none"
|
|
311
311
|
}), [
|
|
312
|
-
e.$attrs["svg-title"] ? (g(), M("title",
|
|
313
|
-
|
|
312
|
+
e.$attrs["svg-title"] ? (g(), M("title", bt, fe(e.$attrs["svg-title"]), 1)) : P("", !0),
|
|
313
|
+
gt
|
|
314
314
|
], 16);
|
|
315
315
|
}
|
|
316
|
-
const
|
|
316
|
+
const xt = /* @__PURE__ */ H(yt, [["render", ht]]), St = { class: "b-dropdown-small-textbox__chevron" }, Lt = F({
|
|
317
317
|
name: "dropdown-small-textbox",
|
|
318
318
|
inheritAttrs: !1
|
|
319
|
-
}),
|
|
320
|
-
...
|
|
319
|
+
}), wt = /* @__PURE__ */ F({
|
|
320
|
+
...Lt,
|
|
321
321
|
props: {
|
|
322
322
|
/**
|
|
323
323
|
* The number of additional items that have been selected in the dropdown.
|
|
@@ -378,29 +378,29 @@ const yt = /* @__PURE__ */ q(ft, [["render", mt]]), bt = { class: "b-dropdown-sm
|
|
|
378
378
|
},
|
|
379
379
|
emits: ["open", "close"],
|
|
380
380
|
setup(e, { emit: o }) {
|
|
381
|
-
const t = e, l =
|
|
382
|
-
[`b-dropdown-small-textbox--${
|
|
383
|
-
[`b-dropdown-small-textbox--${
|
|
384
|
-
[`b-dropdown-small-textbox--${
|
|
385
|
-
})), n =
|
|
381
|
+
const t = e, l = u(() => ({
|
|
382
|
+
[`b-dropdown-small-textbox--${oe.DISABLED}`]: t.disabled,
|
|
383
|
+
[`b-dropdown-small-textbox--${oe.READONLY}`]: t.readonly,
|
|
384
|
+
[`b-dropdown-small-textbox--${oe.OPENED}`]: t.open
|
|
385
|
+
})), n = u(() => t.open && !t.disabled && !t.readonly), i = () => {
|
|
386
386
|
o("open");
|
|
387
387
|
}, r = () => {
|
|
388
388
|
o("close");
|
|
389
|
-
},
|
|
390
|
-
[
|
|
391
|
-
[
|
|
389
|
+
}, c = {
|
|
390
|
+
[ge.OPEN]: i,
|
|
391
|
+
[ge.CLOSE]: r
|
|
392
392
|
};
|
|
393
|
-
return (
|
|
394
|
-
class:
|
|
393
|
+
return (f, y) => (g(), M("div", {
|
|
394
|
+
class: de(["b-dropdown-small-textbox", a(l)])
|
|
395
395
|
}, [
|
|
396
|
-
J(
|
|
397
|
-
icon:
|
|
398
|
-
Q("div",
|
|
399
|
-
G(J(a(
|
|
400
|
-
[
|
|
396
|
+
J(Ye, A({ ...f.$attrs, ...f.$props }, { class: "b-dropdown-small-textbox__textbox" }, Z(c)), {
|
|
397
|
+
icon: K(() => [
|
|
398
|
+
Q("div", St, [
|
|
399
|
+
G(J(a(xt), { "svg-title": "opened" }, null, 512), [
|
|
400
|
+
[ye, a(n)]
|
|
401
401
|
]),
|
|
402
|
-
G(J(a(
|
|
403
|
-
[
|
|
402
|
+
G(J(a(vt), { "svg-title": "closed" }, null, 512), [
|
|
403
|
+
[ye, !a(n)]
|
|
404
404
|
])
|
|
405
405
|
])
|
|
406
406
|
]),
|
|
@@ -409,141 +409,117 @@ const yt = /* @__PURE__ */ q(ft, [["render", mt]]), bt = { class: "b-dropdown-sm
|
|
|
409
409
|
], 2));
|
|
410
410
|
}
|
|
411
411
|
});
|
|
412
|
-
const
|
|
413
|
-
if (
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
return !e.value || ((l = e.value) == null ? void 0 : l.length) === 0 ? t.value || null : e.value.map((n) => {
|
|
425
|
-
const s = o.value.find(({ value: r }) => r === n);
|
|
426
|
-
return s ? s.label : n;
|
|
427
|
-
}).join(", ");
|
|
428
|
-
}, Lt = ({ selectedValues: e, items: o, placeholder: t }) => {
|
|
429
|
-
var l;
|
|
430
|
-
return !e.value || !((l = e.value) != null && l.length) ? t.value || null : o.value.reduce((n, s) => {
|
|
431
|
-
if (s.items) {
|
|
432
|
-
const r = s.items.filter(
|
|
433
|
-
(u) => e.value.includes(u.value)
|
|
434
|
-
);
|
|
435
|
-
r.length === s.items.length ? n.push(s.label) : r.forEach(({ label: u }) => n.push(u));
|
|
436
|
-
}
|
|
437
|
-
return e.value.includes(s.value) && n.push(s.label), n;
|
|
438
|
-
}, []).join(", ");
|
|
439
|
-
}, $t = ({ items: e, placeholder: o, value: t, multiple: l, staticCategories: n }) => {
|
|
440
|
-
const s = f(() => e.value.find((d) => {
|
|
441
|
-
var u;
|
|
442
|
-
return (u = d.items) == null ? void 0 : u.length;
|
|
443
|
-
}));
|
|
444
|
-
return f(() => l.value ? s.value ? Lt({ selectedValues: t, placeholder: o, items: e }) : wt({ selectedValues: t, items: e, placeholder: o }) : xt({
|
|
445
|
-
items: e,
|
|
446
|
-
placeholder: o,
|
|
447
|
-
selectedValue: t,
|
|
448
|
-
staticCategories: n.value
|
|
412
|
+
const $t = /* @__PURE__ */ H(wt, [["__scopeId", "data-v-4703b87f"]]), Ot = (e, o) => o.value.reduce((t, l) => {
|
|
413
|
+
if (l.items) {
|
|
414
|
+
const n = l.items.filter(
|
|
415
|
+
(r) => e.value.find((c) => c.value === r.value)
|
|
416
|
+
);
|
|
417
|
+
n.length === l.items.length ? t.push(l.label) : n.forEach(({ label: r }) => t.push(r));
|
|
418
|
+
}
|
|
419
|
+
return e.value.find((n) => n.value === l.value) && t.push(l.label), t;
|
|
420
|
+
}, []).join(", "), Et = ({ items: e, placeholder: o, selectedValues: t }) => {
|
|
421
|
+
const l = u(() => e.value.find((i) => {
|
|
422
|
+
var r;
|
|
423
|
+
return (r = i.items) == null ? void 0 : r.length;
|
|
449
424
|
}));
|
|
450
|
-
|
|
425
|
+
return u(() => t.value.length ? l.value ? Ot(t, e) : t.value.map(({ label: i }) => i).join(", ") : o.value || null);
|
|
426
|
+
}, Ee = (e) => {
|
|
451
427
|
var o;
|
|
452
428
|
(o = e.value.$children) == null || o[0].$refs.textbox.focus();
|
|
453
|
-
},
|
|
429
|
+
}, Ct = ({
|
|
454
430
|
inputContainerRef: e,
|
|
455
431
|
optionsContainerRef: o,
|
|
456
432
|
selectedValueIndex: t,
|
|
457
433
|
isDropdownOpen: l,
|
|
458
434
|
isDynamicFltering: n,
|
|
459
|
-
items:
|
|
435
|
+
items: i,
|
|
460
436
|
isMultiple: r
|
|
461
|
-
},
|
|
462
|
-
const
|
|
463
|
-
|
|
464
|
-
var
|
|
465
|
-
r ? (
|
|
437
|
+
}, c, f, y) => {
|
|
438
|
+
const p = ({ detail: s }) => {
|
|
439
|
+
s.preventDefault(), l.value || (f(), T(() => {
|
|
440
|
+
var m, b;
|
|
441
|
+
r ? (m = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || m[0].$el.focus() : (b = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || b[t.value].$el.focus();
|
|
466
442
|
}));
|
|
467
|
-
}, h = ({ detail:
|
|
468
|
-
|
|
469
|
-
var
|
|
470
|
-
(
|
|
443
|
+
}, h = ({ detail: s }) => {
|
|
444
|
+
s.preventDefault(), l.value || (f(), T(() => {
|
|
445
|
+
var m;
|
|
446
|
+
(m = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || m[0].$el.focus();
|
|
471
447
|
}));
|
|
472
|
-
},
|
|
473
|
-
l.value || (
|
|
474
|
-
var
|
|
448
|
+
}, w = () => {
|
|
449
|
+
l.value || (f(), T(() => {
|
|
450
|
+
var s, m;
|
|
475
451
|
if (r) {
|
|
476
452
|
const b = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children;
|
|
477
|
-
(
|
|
453
|
+
(s = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || s[b.length - 1].$children[i.length - 1].$el.focus();
|
|
478
454
|
} else
|
|
479
|
-
(
|
|
455
|
+
(m = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || m[i.length - 1].$el.focus();
|
|
480
456
|
}));
|
|
481
457
|
}, $ = () => {
|
|
482
|
-
l.value && (y(),
|
|
458
|
+
l.value && (y(), Ee(e));
|
|
483
459
|
}, O = () => {
|
|
484
|
-
l.value ||
|
|
485
|
-
var
|
|
486
|
-
(
|
|
460
|
+
l.value || f(), T(() => {
|
|
461
|
+
var s;
|
|
462
|
+
(s = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || s[0].$el.focus();
|
|
487
463
|
});
|
|
488
|
-
},
|
|
489
|
-
|
|
490
|
-
var
|
|
491
|
-
r ? (
|
|
464
|
+
}, x = ({ detail: s }) => {
|
|
465
|
+
s.preventDefault(), c(), l.value && T(() => {
|
|
466
|
+
var m, b;
|
|
467
|
+
r ? (m = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || m[0].$el.focus() : (b = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || b[t.value].$el.focus();
|
|
492
468
|
});
|
|
493
|
-
},
|
|
494
|
-
|
|
495
|
-
var
|
|
496
|
-
r ? (
|
|
469
|
+
}, L = () => {
|
|
470
|
+
c(), l.value && T(() => {
|
|
471
|
+
var s, m;
|
|
472
|
+
r ? (s = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || s[0].$el.focus() : (m = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || m[t.value].$el.focus();
|
|
497
473
|
});
|
|
498
474
|
};
|
|
499
|
-
return
|
|
500
|
-
...n.value ? {} : { [R.SPACE]:
|
|
501
|
-
[R.ENTER]:
|
|
502
|
-
[R.ARROW_DOWN]:
|
|
475
|
+
return u(() => ({
|
|
476
|
+
...n.value ? {} : { [R.SPACE]: x },
|
|
477
|
+
[R.ENTER]: L,
|
|
478
|
+
[R.ARROW_DOWN]: p,
|
|
503
479
|
[R.ARROW_UP]: h,
|
|
504
|
-
[R.END]:
|
|
480
|
+
[R.END]: w,
|
|
505
481
|
[R.ESCAPE]: $,
|
|
506
482
|
[R.HOME]: O
|
|
507
483
|
}));
|
|
508
|
-
},
|
|
484
|
+
}, Dt = ({ inputContainerRef: e, isDropdownOpen: o }, t) => {
|
|
509
485
|
const l = () => {
|
|
510
486
|
o.value && t(), T(() => {
|
|
511
|
-
|
|
487
|
+
Ee(e);
|
|
512
488
|
});
|
|
513
489
|
};
|
|
514
490
|
return {
|
|
515
|
-
[
|
|
516
|
-
[
|
|
517
|
-
[
|
|
518
|
-
[
|
|
491
|
+
[d.ENTER]: l,
|
|
492
|
+
[d.ESCAPE]: l,
|
|
493
|
+
[d.TAB]: l,
|
|
494
|
+
[d.SPACE]: l
|
|
519
495
|
};
|
|
520
496
|
};
|
|
521
|
-
function
|
|
522
|
-
const l =
|
|
523
|
-
return
|
|
497
|
+
function Bt(e, o, t) {
|
|
498
|
+
const l = S(e), n = S(o), i = (c, f = []) => f.flatMap((y) => y.label.toLocaleLowerCase().includes(c) ? [y, ...i(c, y.items)] : y.items ? [...i(c, y.items)] : []);
|
|
499
|
+
return Le(l, () => {
|
|
524
500
|
t !== void 0 && t(l.value);
|
|
525
|
-
}),
|
|
501
|
+
}), u(() => {
|
|
526
502
|
if (!l.value || t !== void 0)
|
|
527
503
|
return n.value;
|
|
528
|
-
const
|
|
529
|
-
return
|
|
504
|
+
const c = l.value.toLocaleLowerCase();
|
|
505
|
+
return i(c, n.value);
|
|
530
506
|
});
|
|
531
507
|
}
|
|
532
|
-
const
|
|
508
|
+
const Ce = {
|
|
533
509
|
"en-US": {
|
|
534
510
|
all: "All",
|
|
535
511
|
clearSearch: "Clear filter",
|
|
536
512
|
ariaLabelFallback: "Dropdown"
|
|
537
513
|
}
|
|
538
|
-
},
|
|
539
|
-
i18n: { messages:
|
|
514
|
+
}, It = Symbol("input field component injection key"), _t = F({
|
|
515
|
+
i18n: { messages: Ce },
|
|
540
516
|
name: "b-dropdown",
|
|
541
517
|
components: {
|
|
542
|
-
DropdownInputDefault:
|
|
543
|
-
DropdownInputSmall:
|
|
518
|
+
DropdownInputDefault: Ge,
|
|
519
|
+
DropdownInputSmall: $t
|
|
544
520
|
}
|
|
545
|
-
}),
|
|
546
|
-
...
|
|
521
|
+
}), Rt = /* @__PURE__ */ F({
|
|
522
|
+
..._t,
|
|
547
523
|
props: {
|
|
548
524
|
/**
|
|
549
525
|
* @deprecated from version 2.0.0. Use the aria-label attribute instead.
|
|
@@ -630,8 +606,8 @@ const Oe = {
|
|
|
630
606
|
*/
|
|
631
607
|
lazyLoadType: {
|
|
632
608
|
type: String,
|
|
633
|
-
default:
|
|
634
|
-
validator: (e) => Object.values(
|
|
609
|
+
default: ce.props.lazyLoadType.default,
|
|
610
|
+
validator: (e) => Object.values(ue).includes(e)
|
|
635
611
|
},
|
|
636
612
|
/*
|
|
637
613
|
* If enabled, the user will be able to select multiple items.
|
|
@@ -701,202 +677,204 @@ const Oe = {
|
|
|
701
677
|
},
|
|
702
678
|
emits: ["input", "show-more"],
|
|
703
679
|
setup(e, { emit: o }) {
|
|
704
|
-
var
|
|
705
|
-
const t = e, l =
|
|
706
|
-
|
|
680
|
+
var ve;
|
|
681
|
+
const t = e, l = qe(), n = we(), i = at(n), { t: r } = pe({ messages: Ce }), c = S(null), f = S(null), y = S(null), p = S(!1), h = q("bento-dropdown-options-container"), w = q("dropdown-label"), $ = q("dropdown-description"), O = q("dropdown-error"), { isReadOnly: x } = Xe(_(t, "readonly")), { cachedSelectedListboxOptions: L, cachedListboxSelectedValues: N, setCachedValues: s } = tt(
|
|
682
|
+
_(t, "items"),
|
|
683
|
+
_(t, "value"),
|
|
684
|
+
_(t, "multiple")
|
|
685
|
+
), m = S(l["aria-label"]), { ariaLabel: b } = $e(t), E = Qe({
|
|
686
|
+
ariaLabel: m.value,
|
|
707
687
|
// TODO: take this line away when the aria-label props is removed
|
|
708
|
-
label:
|
|
688
|
+
label: b,
|
|
709
689
|
defaultFallback: r("ariaLabelFallback")
|
|
710
|
-
}),
|
|
690
|
+
}), z = t.size === D.SMALL || He(It, !1), W = u(() => z ? D.SMALL : D.DEFAULT), X = u(() => ({
|
|
711
691
|
"b-dropdown--condensed": t.condensed
|
|
712
|
-
})),
|
|
692
|
+
})), De = u(() => ({
|
|
713
693
|
"b-dropdown__description--error": !!t.errorMessage
|
|
714
|
-
})),
|
|
715
|
-
items:
|
|
716
|
-
staticCategories: _(t, "staticCategories"),
|
|
717
|
-
multiple: _(t, "multiple"),
|
|
694
|
+
})), B = S(""), V = _(t, "items"), Be = Bt(B, V, (ve = t == null ? void 0 : t.search) == null ? void 0 : ve.searchEvent), ee = u(() => t.dynamicFiltering && !!B.value), Ie = Et({
|
|
695
|
+
items: V,
|
|
718
696
|
placeholder: _(t, "placeholder"),
|
|
719
|
-
|
|
720
|
-
}),
|
|
721
|
-
if (t != null && t.multiple)
|
|
697
|
+
selectedValues: L
|
|
698
|
+
}), _e = u(() => {
|
|
699
|
+
if (t != null && t.multiple && Array.isArray(t.value))
|
|
722
700
|
return t.items.filter(
|
|
723
|
-
({ value:
|
|
701
|
+
({ value: v }) => (t == null ? void 0 : t.value) && (t == null ? void 0 : t.value).includes(v)
|
|
724
702
|
);
|
|
725
703
|
if (!t.multiple && t.staticCategories) {
|
|
726
|
-
const
|
|
727
|
-
(I) => I.items.some((
|
|
704
|
+
const v = t.items.find(
|
|
705
|
+
(I) => I.items.some((j) => j.value === t.value)
|
|
728
706
|
);
|
|
729
|
-
return
|
|
707
|
+
return v ? v.items.find((I) => I.value === t.value) : null;
|
|
730
708
|
}
|
|
731
|
-
return t.items.find(({ value:
|
|
732
|
-
}),
|
|
733
|
-
const
|
|
734
|
-
return
|
|
735
|
-
}), { isMultiLevelSelect:
|
|
736
|
-
var
|
|
737
|
-
if (t.multiple) {
|
|
738
|
-
const C = (
|
|
739
|
-
return (
|
|
709
|
+
return t.items.find(({ value: v }) => v === (t == null ? void 0 : t.value));
|
|
710
|
+
}), Re = u(() => {
|
|
711
|
+
const v = t.items.findIndex(({ value: C }) => t.value === C);
|
|
712
|
+
return v > 0 ? v : 0;
|
|
713
|
+
}), { isMultiLevelSelect: Te, flattenedItemsList: Ae } = lt(V), Me = u(() => {
|
|
714
|
+
var v;
|
|
715
|
+
if (t.multiple && !t.hasMoreItems) {
|
|
716
|
+
const C = (v = t == null ? void 0 : t.value) == null ? void 0 : v.length;
|
|
717
|
+
return (Te.value ? Ae.value.length : V.value.length) === C ? r("all") : C;
|
|
740
718
|
}
|
|
741
719
|
return null;
|
|
742
|
-
}),
|
|
720
|
+
}), Ne = u(
|
|
743
721
|
() => `${t.description ? $ : ""} ${t.errorMessage ? O : ""}`.trim() || null
|
|
744
|
-
),
|
|
745
|
-
|
|
746
|
-
},
|
|
747
|
-
|
|
748
|
-
},
|
|
749
|
-
|
|
750
|
-
},
|
|
751
|
-
|
|
752
|
-
},
|
|
753
|
-
t.multiple || (
|
|
754
|
-
},
|
|
755
|
-
o(
|
|
756
|
-
},
|
|
722
|
+
), ke = () => {
|
|
723
|
+
x.value || (p.value = !0);
|
|
724
|
+
}, te = () => {
|
|
725
|
+
p.value = !1;
|
|
726
|
+
}, le = () => {
|
|
727
|
+
x.value || (p.value = !p.value, ee.value && (B.value = ""));
|
|
728
|
+
}, Pe = () => {
|
|
729
|
+
ee.value && (B.value = ""), p.value && (p.value = !1, y.value.onOutsideDropdownClick());
|
|
730
|
+
}, Ke = (v) => {
|
|
731
|
+
t.multiple || (B.value = "", p.value = !1), s(v), o("input", N.value);
|
|
732
|
+
}, Fe = () => {
|
|
733
|
+
o(d.SHOW_MORE);
|
|
734
|
+
}, ze = Ct(
|
|
757
735
|
{
|
|
758
|
-
inputContainerRef:
|
|
736
|
+
inputContainerRef: c,
|
|
759
737
|
optionsContainerRef: y,
|
|
760
|
-
selectedValueIndex:
|
|
761
|
-
isDropdownOpen:
|
|
738
|
+
selectedValueIndex: Re,
|
|
739
|
+
isDropdownOpen: p,
|
|
762
740
|
isDynamicFltering: _(t, "dynamicFiltering"),
|
|
763
741
|
items: t.items,
|
|
764
742
|
isMultiple: t.multiple
|
|
765
743
|
},
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
),
|
|
744
|
+
le,
|
|
745
|
+
ke,
|
|
746
|
+
te
|
|
747
|
+
), We = Dt(
|
|
770
748
|
{
|
|
771
|
-
inputContainerRef:
|
|
772
|
-
isDropdownOpen:
|
|
749
|
+
inputContainerRef: c,
|
|
750
|
+
isDropdownOpen: p
|
|
773
751
|
},
|
|
774
|
-
|
|
775
|
-
),
|
|
776
|
-
[
|
|
777
|
-
[
|
|
778
|
-
[
|
|
779
|
-
...
|
|
752
|
+
te
|
|
753
|
+
), je = {
|
|
754
|
+
[d.CLOSE_DROPDOWN]: te,
|
|
755
|
+
[d.SELECT]: Ke,
|
|
756
|
+
[d.SHOW_MORE]: Fe,
|
|
757
|
+
...We
|
|
780
758
|
};
|
|
781
|
-
return t.error &&
|
|
759
|
+
return t.error && be(
|
|
782
760
|
'BentoDropdown "error" property',
|
|
783
761
|
`Use the BentoDropdown "errorMessage" property instead to indicate that there is a modifier error.
|
|
784
762
|
Having the field as "undefined" will hide/remove the error.
|
|
785
763
|
<bento-dropdown errorMessage="Error message text" />`,
|
|
786
764
|
"2.0.0"
|
|
787
|
-
), t.size &&
|
|
765
|
+
), t.size && be('BentoDropdown "size" property', "Do not use. Only 'default' size should be used.", "2.0.0"), (v, C) => {
|
|
788
766
|
var I;
|
|
789
767
|
return G((g(), M("div", {
|
|
790
|
-
class:
|
|
768
|
+
class: de(["b-dropdown", a(X)])
|
|
791
769
|
}, [
|
|
792
|
-
e.label ? (g(),
|
|
770
|
+
e.label ? (g(), k(a(ot), {
|
|
793
771
|
key: 0,
|
|
794
|
-
id: a(
|
|
772
|
+
id: a(w),
|
|
795
773
|
condensed: e.condensed,
|
|
796
774
|
label: e.label,
|
|
797
775
|
"tooltip-text": e.tooltipText,
|
|
798
776
|
optional: e.optional,
|
|
799
777
|
required: e.required
|
|
800
|
-
}, null, 8, ["id", "condensed", "label", "tooltip-text", "optional", "required"])) :
|
|
778
|
+
}, null, 8, ["id", "condensed", "label", "tooltip-text", "optional", "required"])) : P("", !0),
|
|
801
779
|
G((g(), M("div", A({
|
|
802
780
|
ref_key: "inputContainerRefWrapper",
|
|
803
|
-
ref:
|
|
804
|
-
}, Z(a(
|
|
805
|
-
(g(),
|
|
781
|
+
ref: f
|
|
782
|
+
}, Z(a(ze), !0)), [
|
|
783
|
+
(g(), k(Oe(a(W)), {
|
|
806
784
|
ref_key: "inputContainerRef",
|
|
807
|
-
ref:
|
|
785
|
+
ref: c,
|
|
808
786
|
condensed: e.condensed,
|
|
809
|
-
value:
|
|
810
|
-
"additional-items-selected": a(
|
|
787
|
+
value: B.value,
|
|
788
|
+
"additional-items-selected": a(Me),
|
|
811
789
|
ariaControls: a(h),
|
|
812
|
-
ariaExpanded:
|
|
813
|
-
"aria-labelledby": e.label ? a(
|
|
814
|
-
"aria-describedby": a(
|
|
815
|
-
"aria-label": a(
|
|
816
|
-
"aria-readonly": a(
|
|
817
|
-
readonly: a(
|
|
790
|
+
ariaExpanded: p.value,
|
|
791
|
+
"aria-labelledby": e.label ? a(w) : null,
|
|
792
|
+
"aria-describedby": a(Ne),
|
|
793
|
+
"aria-label": a(E),
|
|
794
|
+
"aria-readonly": a(x),
|
|
795
|
+
readonly: a(x),
|
|
818
796
|
disabled: e.disabled,
|
|
819
|
-
"display-value": a(
|
|
797
|
+
"display-value": a(Ie),
|
|
820
798
|
"dynamic-filtering": e.dynamicFiltering,
|
|
821
799
|
"is-invalid": !!e.errorMessage || e.error,
|
|
822
800
|
multiple: e.multiple,
|
|
823
|
-
open:
|
|
824
|
-
"selected-value-item": a(
|
|
801
|
+
open: p.value,
|
|
802
|
+
"selected-value-item": a(z) ? void 0 : a(_e),
|
|
825
803
|
"show-slot-content-in-multiple": e.showSlotContentInMultiple,
|
|
826
|
-
onInput: C[0] || (C[0] = (
|
|
827
|
-
onOpen:
|
|
828
|
-
onClose:
|
|
829
|
-
},
|
|
830
|
-
|
|
831
|
-
name:
|
|
832
|
-
fn:
|
|
833
|
-
Y(
|
|
804
|
+
onInput: C[0] || (C[0] = (j) => B.value = j),
|
|
805
|
+
onOpen: le,
|
|
806
|
+
onClose: le
|
|
807
|
+
}, ne({ _: 2 }, [
|
|
808
|
+
se(a(n), (j, U) => ({
|
|
809
|
+
name: U,
|
|
810
|
+
fn: K((ae) => [
|
|
811
|
+
Y(v.$slots, U, ie(re(ae)), void 0, !0)
|
|
834
812
|
])
|
|
835
813
|
}))
|
|
836
814
|
]), 1064, ["condensed", "value", "additional-items-selected", "ariaControls", "ariaExpanded", "aria-labelledby", "aria-describedby", "aria-label", "aria-readonly", "readonly", "disabled", "display-value", "dynamic-filtering", "is-invalid", "multiple", "open", "selected-value-item", "show-slot-content-in-multiple"]))
|
|
837
815
|
], 16)), [
|
|
838
|
-
[a(
|
|
816
|
+
[a(et)]
|
|
839
817
|
]),
|
|
840
|
-
|
|
818
|
+
c.value ? (g(), k(a(ut), A({
|
|
841
819
|
key: 1,
|
|
842
820
|
id: a(h),
|
|
843
821
|
ref_key: "optionsContainerRef",
|
|
844
822
|
ref: y,
|
|
845
|
-
"aria-label": a(
|
|
823
|
+
"aria-label": a(E),
|
|
846
824
|
"empty-state": e.emptyState,
|
|
847
825
|
"debounce-time": (I = e.search) == null ? void 0 : I.debounceTime,
|
|
848
826
|
disabled: e.disabled,
|
|
849
|
-
"input-size": a(
|
|
827
|
+
"input-size": a(W),
|
|
850
828
|
"is-option-disabled": e.isOptionDisabled,
|
|
851
|
-
items: a(
|
|
829
|
+
items: a(Be),
|
|
852
830
|
multiple: e.multiple,
|
|
853
831
|
"static-categories": e.staticCategories,
|
|
854
|
-
open:
|
|
855
|
-
"selected-value":
|
|
856
|
-
searching: a(
|
|
857
|
-
"target-element":
|
|
832
|
+
open: p.value,
|
|
833
|
+
"selected-value": a(L),
|
|
834
|
+
searching: a(ee),
|
|
835
|
+
"target-element": f.value,
|
|
858
836
|
loading: e.loading,
|
|
859
837
|
"has-more-items": e.hasMoreItems,
|
|
860
838
|
"lazy-load-type": e.lazyLoadType,
|
|
861
839
|
"virtual-scroll": e.virtualScroll
|
|
862
|
-
}, Z(
|
|
863
|
-
|
|
864
|
-
name:
|
|
865
|
-
fn:
|
|
866
|
-
Y(
|
|
840
|
+
}, Z(je)), ne({ _: 2 }, [
|
|
841
|
+
se(a(n), (j, U) => ({
|
|
842
|
+
name: U,
|
|
843
|
+
fn: K((ae) => [
|
|
844
|
+
Y(v.$slots, U, ie(re(ae)), void 0, !0)
|
|
867
845
|
])
|
|
868
846
|
}))
|
|
869
|
-
]), 1040, ["id", "aria-label", "empty-state", "debounce-time", "disabled", "input-size", "is-option-disabled", "items", "multiple", "static-categories", "open", "selected-value", "searching", "target-element", "loading", "has-more-items", "lazy-load-type", "virtual-scroll"])) :
|
|
870
|
-
e.errorMessage ? (g(),
|
|
847
|
+
]), 1040, ["id", "aria-label", "empty-state", "debounce-time", "disabled", "input-size", "is-option-disabled", "items", "multiple", "static-categories", "open", "selected-value", "searching", "target-element", "loading", "has-more-items", "lazy-load-type", "virtual-scroll"])) : P("", !0),
|
|
848
|
+
e.errorMessage ? (g(), k(a(nt), {
|
|
871
849
|
key: 2,
|
|
872
850
|
id: a(O),
|
|
873
851
|
"error-message": e.errorMessage,
|
|
874
852
|
class: "b-dropdown__error-message"
|
|
875
|
-
}, null, 8, ["id", "error-message"])) :
|
|
876
|
-
e.description || a(
|
|
853
|
+
}, null, 8, ["id", "error-message"])) : P("", !0),
|
|
854
|
+
e.description || a(i)("description") ? (g(), k(a(Je), {
|
|
877
855
|
key: 3,
|
|
878
856
|
id: a($),
|
|
879
|
-
class:
|
|
857
|
+
class: de(["b-dropdown__description", a(De)]),
|
|
880
858
|
el: "span"
|
|
881
859
|
}, {
|
|
882
|
-
default:
|
|
883
|
-
Y(
|
|
884
|
-
|
|
860
|
+
default: K(() => [
|
|
861
|
+
Y(v.$slots, "description", {}, () => [
|
|
862
|
+
Ve(fe(e.description), 1)
|
|
885
863
|
], !0)
|
|
886
864
|
]),
|
|
887
865
|
_: 3
|
|
888
|
-
}, 8, ["id", "class"])) :
|
|
866
|
+
}, 8, ["id", "class"])) : P("", !0)
|
|
889
867
|
], 2)), [
|
|
890
|
-
[a(
|
|
868
|
+
[a(Ze), Pe]
|
|
891
869
|
]);
|
|
892
870
|
};
|
|
893
871
|
}
|
|
894
872
|
});
|
|
895
|
-
const
|
|
873
|
+
const Vt = /* @__PURE__ */ H(Rt, [["__scopeId", "data-v-d6374028"]]);
|
|
896
874
|
export {
|
|
897
|
-
|
|
898
|
-
|
|
875
|
+
Vt as B,
|
|
876
|
+
It as I,
|
|
899
877
|
D as a,
|
|
900
|
-
|
|
878
|
+
Bt as u
|
|
901
879
|
};
|
|
902
|
-
//# sourceMappingURL=dropdown.
|
|
880
|
+
//# sourceMappingURL=dropdown.d8587f36.js.map
|