@adyen/bento-vue3 1.42.0 → 1.44.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/button/components/button-actions/composables/use-stack-buttons/use-stack-buttons.d.ts +10 -0
- package/dist/@types/packages/vue2/src/components/card/card.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/checkbox/checkbox.vue.d.ts +3 -3
- package/dist/@types/packages/vue2/src/components/checkbox/components/checkbox-group/checkbox-group.vue.d.ts +8 -8
- package/dist/@types/packages/vue2/src/components/code-snippet/code-snippet.vue.d.ts +50 -32
- package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-cell/data-grid-cell.vue.d.ts +15 -0
- package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-config-settings/data-grid-config-settings.vue.d.ts +3 -3
- package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-row/data-grid-row.vue.d.ts +1 -350
- 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-scroller/use-scroller.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/data-grid/composables/use-selector/use-selector.d.ts +3 -2
- package/dist/@types/packages/vue2/src/components/data-grid/data-grid.types.d.ts +3 -0
- package/dist/@types/packages/vue2/src/components/data-grid/data-grid.vue.d.ts +36 -4
- package/dist/@types/packages/vue2/src/components/date-picker/date-picker.vue.d.ts +21 -15
- package/dist/@types/packages/vue2/src/components/date-range-picker/components/date-range-picker-calendar/date-range-picker-calendar.vue.d.ts +56 -38
- package/dist/@types/packages/vue2/src/components/date-range-picker/date-range-picker.vue.d.ts +77 -53
- package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-base-textbox/dropdown-base-textbox.vue.d.ts +6 -4
- package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-default-textbox/dropdown-default-textbox.vue.d.ts +4 -2
- 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/dropdown.vue.d.ts +20 -12
- package/dist/@types/packages/vue2/src/components/empty-state/empty-state.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/file-uploader/file-uploader.types.d.ts +6 -2
- package/dist/@types/packages/vue2/src/components/filter-bar/components/all-filters-modal/all-filters-modal.vue.d.ts +228 -180
- package/dist/@types/packages/vue2/src/components/filter-bar/components/base-filter/base-filter.vue.d.ts +6 -6
- package/dist/@types/packages/vue2/src/components/filter-bar/components/boolean-filter/boolean-filter.vue.d.ts +12 -12
- package/dist/@types/packages/vue2/src/components/filter-bar/components/date-filter/date-filter.vue.d.ts +27 -21
- package/dist/@types/packages/vue2/src/components/filter-bar/components/date-range-filter/date-range-filter.vue.d.ts +139 -97
- 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/input-filter/input-filter.vue.d.ts +15 -15
- package/dist/@types/packages/vue2/src/components/filter-bar/components/range-filter/range-filter.vue.d.ts +15 -15
- package/dist/@types/packages/vue2/src/components/filter-bar/filter-bar.vue.d.ts +208 -160
- package/dist/@types/packages/vue2/src/components/header/header.vue.d.ts +9 -0
- package/dist/@types/packages/vue2/src/components/input-field/input-field.vue.d.ts +3 -3
- package/dist/@types/packages/vue2/src/components/input-field-password/input-field-password.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/internal/button-actions-with-menu/button-actions-with-menu.keys.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/internal/button-actions-with-menu/button-actions-with-menu.vue.d.ts +16 -1
- package/dist/@types/packages/vue2/src/components/internal/button-actions-with-menu/index.d.ts +2 -0
- 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/field-label/field-label.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/internal/index.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-multi-select/components/listbox-multi-select-options/components/listbox-multi-select-category/listbox-multi-select-category.vue.d.ts +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 +6 -6
- package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-multi-select/listbox-multi-select.vue.d.ts +9 -9
- 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/internal/tooltip/tooltip.vue.d.ts +5 -5
- package/dist/@types/packages/vue2/src/components/menu/components/menu-item-list/menu-item-list.vue.d.ts +15 -0
- package/dist/@types/packages/vue2/src/components/menu/menu.vue.d.ts +48 -3
- package/dist/@types/packages/vue2/src/components/modal/components/base-modal/base-modal.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/modal/components/modal-default/modal-default.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/modal/components/modal-dialog/modal-dialog.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/modal/components/modal-page/modal-page.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/modal/modal.vue.d.ts +7 -7
- package/dist/@types/packages/vue2/src/components/modal-fullscreen/components/modal-fullscreen-page.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/modal-fullscreen/modal-fullscreen.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/popover/popover.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/popper-container/popper-container.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/promo-banner/promo-banner.vue.d.ts +2 -2
- 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/sidepanel/components/sidepanel-page.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item/summary-grid-item.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item-amount/summary-grid-item-amount.vue.d.ts +2 -2
- package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item-custom/summary-grid-item-custom.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item-numeric/summary-grid-item-numeric.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item-percentage/summary-grid-item-percentage.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item-text/summary-grid-item-text.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/textarea/textarea.vue.d.ts +6 -4
- package/dist/@types/packages/vue2/src/components/timeline/timeline.vue.d.ts +6 -4
- package/dist/@types/packages/vue2/src/composables/use-form-validate/use-form.d.ts +9 -6
- package/dist/@types/packages/vue2/src/composables/use-form-validate/use-form.types.d.ts +5 -1
- package/dist/action-bar.js +1 -1
- package/dist/assets/accordion-item.css +1 -1
- package/dist/assets/action-bar.css +1 -1
- package/dist/assets/base-modal.css +1 -1
- package/dist/assets/button-actions-with-menu.css +1 -1
- package/dist/assets/button-actions.css +1 -1
- package/dist/assets/card.css +1 -1
- package/dist/assets/data-grid.css +1 -1
- package/dist/assets/date-range-picker.css +1 -1
- package/dist/assets/dialog-page.css +1 -1
- package/dist/assets/dropdown-default-textbox.css +1 -1
- package/dist/assets/dropdown.css +1 -1
- package/dist/assets/file-uploader.css +1 -1
- package/dist/assets/filter-bar.css +1 -1
- package/dist/assets/header.css +1 -1
- package/dist/assets/inspector.css +1 -1
- package/dist/assets/menu.css +1 -1
- package/dist/assets/modal-fullscreen.css +1 -1
- package/dist/assets/popover.css +1 -1
- package/dist/assets/selection-card-group.css +1 -1
- package/dist/assets/sidepanel.css +1 -1
- package/dist/assets/textarea.css +1 -1
- package/dist/assets/typography.css +1 -1
- package/dist/button.js +7 -8
- package/dist/button.js.map +1 -1
- package/dist/card.js +1 -1
- package/dist/chunks/{action-bar.C1Vu3qJu.js → action-bar.B-_JS43H.js} +11 -10
- package/dist/chunks/action-bar.B-_JS43H.js.map +1 -0
- package/dist/chunks/{base-modal.ku0lyHOs.js → base-modal.BR_pB6eH.js} +2 -2
- package/dist/chunks/{base-modal.ku0lyHOs.js.map → base-modal.BR_pB6eH.js.map} +1 -1
- package/dist/chunks/button-actions-with-menu.GT_kNv28.js +119 -0
- package/dist/chunks/button-actions-with-menu.GT_kNv28.js.map +1 -0
- package/dist/chunks/button-actions.BjlQS6tm.js +322 -0
- package/dist/chunks/button-actions.BjlQS6tm.js.map +1 -0
- package/dist/chunks/{card.D_XL2TWr.js → card.BrEfcUoE.js} +2 -2
- package/dist/chunks/{card.D_XL2TWr.js.map → card.BrEfcUoE.js.map} +1 -1
- package/dist/chunks/{code-snippet.CiOcZKKH.js → code-snippet.S5NdUu0p.js} +4 -4
- package/dist/chunks/{code-snippet.CiOcZKKH.js.map → code-snippet.S5NdUu0p.js.map} +1 -1
- package/dist/chunks/{dashboard-section.BCc8HoQG.js → dashboard-section.LWxBcOV_.js} +3 -3
- package/dist/chunks/{dashboard-section.BCc8HoQG.js.map → dashboard-section.LWxBcOV_.js.map} +1 -1
- package/dist/chunks/{dashed-underline.BKfUevuM.js → dashed-underline.CRlWNPrd.js} +2 -2
- package/dist/chunks/{dashed-underline.BKfUevuM.js.map → dashed-underline.CRlWNPrd.js.map} +1 -1
- package/dist/chunks/{data-grid-template.DI27ou71.js → data-grid-template.BZVeRN6g.js} +2 -2
- package/dist/chunks/{data-grid-template.DI27ou71.js.map → data-grid-template.BZVeRN6g.js.map} +1 -1
- package/dist/chunks/data-grid.CKDW-rbM.js +3374 -0
- package/dist/chunks/data-grid.CKDW-rbM.js.map +1 -0
- package/dist/chunks/{date-picker.DDsfecHp.js → date-picker.BrZ2X1nQ.js} +3 -3
- package/dist/chunks/{date-picker.DDsfecHp.js.map → date-picker.BrZ2X1nQ.js.map} +1 -1
- package/dist/chunks/{date-range-picker.C9Ht_Egi.js → date-range-picker.4y2goCI8.js} +204 -201
- package/dist/chunks/date-range-picker.4y2goCI8.js.map +1 -0
- package/dist/chunks/{dropdown-default-textbox.CcRQ1f4U.js → dropdown-default-textbox.ZjVeMHVC.js} +131 -120
- package/dist/chunks/{dropdown-default-textbox.CcRQ1f4U.js.map → dropdown-default-textbox.ZjVeMHVC.js.map} +1 -1
- package/dist/chunks/{dropdown-tag.Bc4qxPRN.js → dropdown-tag.ClKm4xAo.js} +2 -2
- package/dist/chunks/{dropdown-tag.Bc4qxPRN.js.map → dropdown-tag.ClKm4xAo.js.map} +1 -1
- package/dist/chunks/dropdown.Sj2OLuEF.js +911 -0
- package/dist/chunks/{dropdown.BqkUB1So.js.map → dropdown.Sj2OLuEF.js.map} +1 -1
- package/dist/chunks/es6.C-HLzYPA.js +11 -0
- package/dist/chunks/es6.C-HLzYPA.js.map +1 -0
- package/dist/chunks/{file-uploader.cRbwpcAw.js → file-uploader.BgRbkW2V.js} +368 -365
- package/dist/chunks/file-uploader.BgRbkW2V.js.map +1 -0
- package/dist/chunks/{filter-bar.DVLYNNwQ.js → filter-bar.CM1FZ02d.js} +19 -20
- package/dist/chunks/filter-bar.CM1FZ02d.js.map +1 -0
- package/dist/chunks/{footer-actions.DvIVWqWv.js → footer-actions.Dvsb0g5Y.js} +2 -2
- package/dist/chunks/{footer-actions.DvIVWqWv.js.map → footer-actions.Dvsb0g5Y.js.map} +1 -1
- package/dist/chunks/{header.C0NBlBJv.js → header.8BzBNgxj.js} +23 -23
- package/dist/chunks/{header.C0NBlBJv.js.map → header.8BzBNgxj.js.map} +1 -1
- package/dist/chunks/index.lHdwuJAx.js +366 -0
- package/dist/chunks/index.lHdwuJAx.js.map +1 -0
- package/dist/chunks/{input-field-password.BA0EpVMY.js → input-field-password.CXsERnQX.js} +4 -4
- package/dist/chunks/{input-field-password.BA0EpVMY.js.map → input-field-password.CXsERnQX.js.map} +1 -1
- package/dist/chunks/{input-field.CWMgbw48.js → input-field.C-7_iMIS.js} +2 -2
- package/dist/chunks/{input-field.CWMgbw48.js.map → input-field.C-7_iMIS.js.map} +1 -1
- package/dist/chunks/{layout-row.iTtAEvD2.js → layout-row.DcyZ3DP3.js} +2 -2
- package/dist/chunks/{layout-row.iTtAEvD2.js.map → layout-row.DcyZ3DP3.js.map} +1 -1
- package/dist/chunks/{menu.BpqOdkxR.js → menu.hDynz4lc.js} +132 -104
- package/dist/chunks/menu.hDynz4lc.js.map +1 -0
- package/dist/chunks/{modal-fullscreen.DtgTb1Xh.js → modal-fullscreen.BCGaxVNb.js} +2 -2
- package/dist/chunks/{modal-fullscreen.DtgTb1Xh.js.map → modal-fullscreen.BCGaxVNb.js.map} +1 -1
- package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.CjD91zJo.js → modal.vue_vue_type_script_setup_true_lang.DJXx8ftn.js} +4 -4
- package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.CjD91zJo.js.map → modal.vue_vue_type_script_setup_true_lang.DJXx8ftn.js.map} +1 -1
- package/dist/chunks/{pagination.DrWx8K01.js → pagination.C9kqX5tD.js} +2 -2
- package/dist/chunks/{pagination.DrWx8K01.js.map → pagination.C9kqX5tD.js.map} +1 -1
- package/dist/chunks/{popover.D9Zw4w9l.js → popover.DwGgnCyn.js} +2 -2
- package/dist/chunks/{popover.D9Zw4w9l.js.map → popover.DwGgnCyn.js.map} +1 -1
- package/dist/chunks/{promo-banner.oUapgyV-.js → promo-banner.CzR9ri5v.js} +2 -2
- package/dist/chunks/{promo-banner.oUapgyV-.js.map → promo-banner.CzR9ri5v.js.map} +1 -1
- package/dist/chunks/{search-bar.DDePObYJ.js → search-bar.DPC0amNg.js} +3 -3
- package/dist/chunks/{search-bar.DDePObYJ.js.map → search-bar.DPC0amNg.js.map} +1 -1
- package/dist/chunks/{secondary-nav.ysDOs9J9.js → secondary-nav.DH7aXddE.js} +4 -4
- package/dist/chunks/{secondary-nav.ysDOs9J9.js.map → secondary-nav.DH7aXddE.js.map} +1 -1
- package/dist/chunks/{selection-card-group.pUl1EuFV.js → selection-card-group.DDBJ423n.js} +13 -13
- package/dist/chunks/{selection-card-group.pUl1EuFV.js.map → selection-card-group.DDBJ423n.js.map} +1 -1
- package/dist/chunks/{sidepanel.BywianGe.js → sidepanel.8NclWh0V.js} +2 -2
- package/dist/chunks/{sidepanel.BywianGe.js.map → sidepanel.8NclWh0V.js.map} +1 -1
- package/dist/chunks/{teleport.CI0k6eaC.js → teleport.B255JhsV.js} +26 -17
- package/dist/chunks/teleport.B255JhsV.js.map +1 -0
- package/dist/chunks/{textarea.vAp6HFi9.js → textarea.D1weaQCC.js} +72 -68
- package/dist/chunks/{textarea.vAp6HFi9.js.map → textarea.D1weaQCC.js.map} +1 -1
- package/dist/chunks/{timeline-item.ND_EMuwP.js → timeline-item.BDYrjKhM.js} +3 -3
- package/dist/chunks/{timeline-item.ND_EMuwP.js.map → timeline-item.BDYrjKhM.js.map} +1 -1
- package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.LBw_ALfS.js → tutorial.vue_vue_type_script_setup_true_lang.ltZUbc6M.js} +4 -4
- package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.LBw_ALfS.js.map → tutorial.vue_vue_type_script_setup_true_lang.ltZUbc6M.js.map} +1 -1
- package/dist/chunks/{use-cached-selected-values.DWVHnlNN.js → use-cached-selected-values.B6beyyvX.js} +7 -4
- package/dist/chunks/{use-cached-selected-values.DWVHnlNN.js.map → use-cached-selected-values.B6beyyvX.js.map} +1 -1
- package/dist/code-snippet.js +1 -1
- package/dist/dashboard-template.js +1 -1
- package/dist/dashed-underline.js +1 -1
- package/dist/data-grid-template.js +1 -1
- package/dist/data-grid.js +1 -1
- package/dist/date-picker.js +1 -1
- package/dist/date-range-picker.js +1 -1
- package/dist/dropdown.js +4 -4
- package/dist/file-uploader.js +1 -1
- package/dist/filter-bar.js +1 -1
- package/dist/header.js +1 -1
- package/dist/index.js +68 -69
- package/dist/index.js.map +1 -1
- package/dist/input-field-password.js +1 -1
- package/dist/input-field.js +1 -1
- package/dist/internal.js +28 -24
- package/dist/internal.js.map +1 -1
- package/dist/layout.js +1 -1
- package/dist/menu.js +1 -1
- package/dist/modal-fullscreen.js +1 -1
- package/dist/modal.js +2 -2
- package/dist/pagination.js +1 -1
- package/dist/popover.js +1 -1
- package/dist/promo-banner.js +1 -1
- package/dist/search-bar.js +2 -2
- package/dist/secondary-nav.js +1 -1
- package/dist/selection-card.js +1 -1
- package/dist/sidepanel.js +1 -1
- package/dist/styles/bento-dark.css +3 -0
- package/dist/styles/bento-light.css +3 -0
- package/dist/styles/bento.css +3 -0
- package/dist/styles/legacy.css +3 -0
- package/dist/styles/styleguide.css +3 -0
- package/dist/textarea.js +1 -1
- package/dist/timeline.js +1 -1
- package/dist/tutorial.js +1 -1
- package/dist/web-types.json +1 -1
- package/package.json +5 -3
- package/dist/@types/packages/vue2/src/components/button/button.demo.d.ts +0 -6
- package/dist/assets/loading-button.css +0 -1
- package/dist/chunks/action-bar.C1Vu3qJu.js.map +0 -1
- package/dist/chunks/button-actions-with-menu.Bn7Kdx4v.js +0 -106
- package/dist/chunks/button-actions-with-menu.Bn7Kdx4v.js.map +0 -1
- package/dist/chunks/button-actions.Bjfo46Q_.js +0 -150
- package/dist/chunks/button-actions.Bjfo46Q_.js.map +0 -1
- package/dist/chunks/data-grid.eX0SZIFQ.js +0 -3174
- package/dist/chunks/data-grid.eX0SZIFQ.js.map +0 -1
- package/dist/chunks/date-range-picker.C9Ht_Egi.js.map +0 -1
- package/dist/chunks/dropdown.BqkUB1So.js +0 -907
- package/dist/chunks/es6.b4enG1py.js +0 -10
- package/dist/chunks/es6.b4enG1py.js.map +0 -1
- package/dist/chunks/file-uploader.cRbwpcAw.js.map +0 -1
- package/dist/chunks/filter-bar.DVLYNNwQ.js.map +0 -1
- package/dist/chunks/index.Cwtxz7pr.js +0 -344
- package/dist/chunks/index.Cwtxz7pr.js.map +0 -1
- package/dist/chunks/loading-button.CNWhVIPK.js +0 -137
- package/dist/chunks/loading-button.CNWhVIPK.js.map +0 -1
- package/dist/chunks/menu.BpqOdkxR.js.map +0 -1
- package/dist/chunks/teleport.CI0k6eaC.js.map +0 -1
- package/dist/chunks/use-click-outside.D6aIgS15.js +0 -14
- package/dist/chunks/use-click-outside.D6aIgS15.js.map +0 -1
|
@@ -0,0 +1,911 @@
|
|
|
1
|
+
import { ref as w, watch as Ee, computed as u, defineComponent as j, useSlots as Oe, toRefs as Ce, openBlock as x, createBlock as K, resolveDynamicComponent as Be, mergeProps as k, withCtx as z, createElementVNode as te, withKeys as _e, unref as s, createVNode as Q, toHandlers as G, createSlots as re, renderList as de, renderSlot as X, normalizeProps as ue, guardReactiveProps as ce, createElementBlock as P, toDisplayString as ve, createCommentVNode as F, normalizeClass as fe, withDirectives as ee, vShow as xe, nextTick as M, useAttrs as Ze, toRef as E, inject as Qe, createTextVNode as Xe } from "vue";
|
|
2
|
+
import { d as Le, B as Ge } from "./typography.DNzU41ah.js";
|
|
3
|
+
import { a as ne, b as q, c as et, B as J, D as tt } from "./dropdown-default-textbox.ZjVeMHVC.js";
|
|
4
|
+
import { _ as Y } from "./_plugin-vue_export-helper.CHgC5LLL.js";
|
|
5
|
+
import { s as ie } from "./events.FNmSWp_P.js";
|
|
6
|
+
import { g as V } from "./generate-uid.D-HFI38h.js";
|
|
7
|
+
import { u as lt } from "./aria-label.CaUURpnB.js";
|
|
8
|
+
import { u as ye } from "./i18n.CPGoe9tN.js";
|
|
9
|
+
import { u as at } from "./use-form-layout-loading.D3lALhtC.js";
|
|
10
|
+
import { B as ot } from "./directive.O3yEdalv.js";
|
|
11
|
+
import { B as R, a as st } from "./keyboard-navigation.C3QMVRKY.js";
|
|
12
|
+
import { a as d, B as pe, b as me, c as nt, u as it } from "./use-cached-selected-values.B6beyyvX.js";
|
|
13
|
+
import { u as rt } from "./use-has-slot.B7eQSabc.js";
|
|
14
|
+
import { F as dt, E as ut } from "./error-message.BYXS0kUN.js";
|
|
15
|
+
import { P as Se } from "./popper-container.Cyf6zCPq.js";
|
|
16
|
+
import "./popper-container.types.BCZMbVFD.js";
|
|
17
|
+
import { B as ct } from "./popover.DwGgnCyn.js";
|
|
18
|
+
import "../assets/dropdown.css";
|
|
19
|
+
const be = {
|
|
20
|
+
"en-US": {
|
|
21
|
+
apply: "Apply",
|
|
22
|
+
cancel: "Cancel",
|
|
23
|
+
noOptionsMatchThisSearch: "No options match this search"
|
|
24
|
+
},
|
|
25
|
+
"pt-BR": {
|
|
26
|
+
apply: "Aplicar",
|
|
27
|
+
cancel: "Cancelar"
|
|
28
|
+
},
|
|
29
|
+
"ja-JP": {
|
|
30
|
+
apply: "適用",
|
|
31
|
+
cancel: "キャンセル"
|
|
32
|
+
}
|
|
33
|
+
}, ft = (e, o, n, l) => {
|
|
34
|
+
const i = w(e.value), { t: a } = ye({ messages: be });
|
|
35
|
+
Ee(e, () => {
|
|
36
|
+
i.value = e.value;
|
|
37
|
+
});
|
|
38
|
+
const t = u(
|
|
39
|
+
() => JSON.stringify(i.value) === JSON.stringify(e.value)
|
|
40
|
+
), p = () => {
|
|
41
|
+
l(d.SELECT, i.value), l(d.CLOSE_DROPDOWN);
|
|
42
|
+
}, c = () => {
|
|
43
|
+
i.value = e.value, l(d.CLOSE_DROPDOWN);
|
|
44
|
+
}, y = () => {
|
|
45
|
+
n.value && o.value && (i.value = e.value);
|
|
46
|
+
}, f = u(() => [
|
|
47
|
+
{
|
|
48
|
+
title: a("apply"),
|
|
49
|
+
event: p,
|
|
50
|
+
disabled: t.value
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
title: a("cancel"),
|
|
54
|
+
event: c
|
|
55
|
+
}
|
|
56
|
+
]), g = (h) => {
|
|
57
|
+
i.value = h, o.value || l(d.SELECT, h);
|
|
58
|
+
}, r = (h) => {
|
|
59
|
+
g(h), l(d.TAB);
|
|
60
|
+
}, $ = (h) => {
|
|
61
|
+
g(h), l(d.ENTER);
|
|
62
|
+
}, O = (h) => {
|
|
63
|
+
g(h), l(d.SPACE);
|
|
64
|
+
}, C = () => {
|
|
65
|
+
c(), l(d.ESCAPE);
|
|
66
|
+
}, B = () => {
|
|
67
|
+
l(d.SHOW_MORE);
|
|
68
|
+
}, L = {
|
|
69
|
+
[d.SELECT]: g,
|
|
70
|
+
[d.SHOW_MORE]: B,
|
|
71
|
+
[d.TAB]: r,
|
|
72
|
+
[d.SPACE]: O,
|
|
73
|
+
[d.ENTER]: $
|
|
74
|
+
};
|
|
75
|
+
return {
|
|
76
|
+
// Values
|
|
77
|
+
actions: f,
|
|
78
|
+
internalSelectedValue: i,
|
|
79
|
+
// Methods
|
|
80
|
+
listeners: L,
|
|
81
|
+
onEscapeKey: C,
|
|
82
|
+
onOutsideDropdownClick: y
|
|
83
|
+
};
|
|
84
|
+
}, pt = j({
|
|
85
|
+
i18n: { messages: be },
|
|
86
|
+
name: "bento-dropdown-options-container"
|
|
87
|
+
}), mt = /* @__PURE__ */ j({
|
|
88
|
+
...pt,
|
|
89
|
+
props: {
|
|
90
|
+
/**
|
|
91
|
+
* Defines a string value that labels an interactive element.
|
|
92
|
+
*/
|
|
93
|
+
ariaLabel: { type: String, default: null },
|
|
94
|
+
/**
|
|
95
|
+
* Empty state props used with the inner empty state component which is displayed when no search results are found.
|
|
96
|
+
*/
|
|
97
|
+
emptyState: {
|
|
98
|
+
type: Object,
|
|
99
|
+
default: void 0
|
|
100
|
+
},
|
|
101
|
+
/**
|
|
102
|
+
* Disables dropdown functionality
|
|
103
|
+
*/
|
|
104
|
+
disabled: { type: Boolean, default: !1 },
|
|
105
|
+
/**
|
|
106
|
+
* Indicates whether there are more items to load
|
|
107
|
+
*/
|
|
108
|
+
hasMoreItems: { type: Boolean, default: !1 },
|
|
109
|
+
/**
|
|
110
|
+
* Identifies the listbox whose contents are controlled by the the combobox on which the aria-controls attribute is set.
|
|
111
|
+
*/
|
|
112
|
+
id: { type: String, required: !0 },
|
|
113
|
+
/**
|
|
114
|
+
* Function that allows the options to be disabled
|
|
115
|
+
*
|
|
116
|
+
* @type {BentoDropdownIsOptionDisabled}
|
|
117
|
+
* @param {BentoDropdownOptionItem} option - Dropdown option object
|
|
118
|
+
* @param {string} option.label - Option's label text
|
|
119
|
+
* @param {string|number} option.value - Option's value
|
|
120
|
+
* @param {unknown} option.data - Option's extra data to be passed to the default slot
|
|
121
|
+
*/
|
|
122
|
+
isOptionDisabled: {
|
|
123
|
+
type: Function,
|
|
124
|
+
default: void 0
|
|
125
|
+
},
|
|
126
|
+
/**
|
|
127
|
+
* The option elements to populate the dropdown with.
|
|
128
|
+
* It must be an array of {@see BentoDropdownOptionItem }
|
|
129
|
+
* * @property {string} value.label - Text to be displayed in the option
|
|
130
|
+
* * @property {string,number} value.value - Value of the option
|
|
131
|
+
*/
|
|
132
|
+
items: {
|
|
133
|
+
type: Array,
|
|
134
|
+
required: !0
|
|
135
|
+
},
|
|
136
|
+
/**
|
|
137
|
+
* The type of `Lazy Load`.
|
|
138
|
+
* Type "automatic" will enable infinite scrolling
|
|
139
|
+
* Type "button" will enable lazy loading with "Show more" button
|
|
140
|
+
*/
|
|
141
|
+
lazyLoadType: {
|
|
142
|
+
type: String,
|
|
143
|
+
default: pe.AUTOMATIC,
|
|
144
|
+
validator: (e) => Object.values(pe).includes(e)
|
|
145
|
+
},
|
|
146
|
+
/**
|
|
147
|
+
* Indicates if new options are loading.
|
|
148
|
+
*/
|
|
149
|
+
loading: { type: Boolean, default: !1 },
|
|
150
|
+
/**
|
|
151
|
+
* If enabled, the user will be able to select multiple items.
|
|
152
|
+
*/
|
|
153
|
+
multiple: { type: Boolean, default: !1 },
|
|
154
|
+
/**
|
|
155
|
+
* Indicates if the dropdown is open so that
|
|
156
|
+
* the container can be displayed.
|
|
157
|
+
*/
|
|
158
|
+
open: { type: Boolean, required: !0 },
|
|
159
|
+
/**
|
|
160
|
+
* The `input` value.
|
|
161
|
+
* Providing an empty string or empty array will select no options.
|
|
162
|
+
* Set to an empty string `''` if you don't want any of the available options to be selected for single select
|
|
163
|
+
*/
|
|
164
|
+
selectedValue: {
|
|
165
|
+
type: Array,
|
|
166
|
+
default: null
|
|
167
|
+
},
|
|
168
|
+
/**
|
|
169
|
+
* Flag that indicates that an external search it's being made
|
|
170
|
+
* to filter out the items inside the the multi-select listbox
|
|
171
|
+
*
|
|
172
|
+
* If enabled, hides the "Select all" checkbox in "multiple" mode.
|
|
173
|
+
*/
|
|
174
|
+
searching: me.props.searching,
|
|
175
|
+
/**
|
|
176
|
+
* If enabled, dropdown will display non-selectable, static categories
|
|
177
|
+
*/
|
|
178
|
+
staticCategories: { type: Boolean, default: !1 },
|
|
179
|
+
/**
|
|
180
|
+
* Reference to the DOM element or Vue component for positioning
|
|
181
|
+
* the Dropdown container.
|
|
182
|
+
*/
|
|
183
|
+
targetElement: { type: Se.props.targetElement.type, required: !0 },
|
|
184
|
+
/**
|
|
185
|
+
* Enables virtual scrolling if set to true or by providing an object with itemHeight function.
|
|
186
|
+
* The itemHeight function is used to calculate the height of rendered item given it's index.
|
|
187
|
+
*/
|
|
188
|
+
virtualScroll: {
|
|
189
|
+
type: [Boolean, Object],
|
|
190
|
+
default: !1
|
|
191
|
+
}
|
|
192
|
+
},
|
|
193
|
+
setup(e, { expose: o, emit: n }) {
|
|
194
|
+
const l = Oe(), i = n, a = e, { selectedValue: t, multiple: p } = Ce(a), c = w(null), { t: y } = ye({ messages: be }), f = u(() => a.open && !a.disabled), g = u(() => y("noOptionsMatchThisSearch")), r = u(() => ({
|
|
195
|
+
"b-dropdown-options-container--single": !(a != null && a.multiple)
|
|
196
|
+
})), $ = u(() => ({
|
|
197
|
+
"b-dropdown-options-container__listbox--single": !(a != null && a.multiple)
|
|
198
|
+
})), { actions: O, internalSelectedValue: C, listeners: B, onEscapeKey: L, onOutsideDropdownClick: h } = ft(t, p, f, i), m = u(() => a != null && a.multiple ? ct : Se), b = u(() => {
|
|
199
|
+
var T;
|
|
200
|
+
const S = {
|
|
201
|
+
"min-width": `${(T = a == null ? void 0 : a.targetElement) == null ? void 0 : T.clientWidth}px`,
|
|
202
|
+
"max-width": "min(500px, 95%)"
|
|
203
|
+
};
|
|
204
|
+
return a != null && a.multiple ? {
|
|
205
|
+
actionsLayout: "space-between",
|
|
206
|
+
actions: O.value,
|
|
207
|
+
divider: !0,
|
|
208
|
+
fallbackPosition: ["top-start"],
|
|
209
|
+
id: V(`dropdown-options-${a.id}`),
|
|
210
|
+
open: a.open,
|
|
211
|
+
position: "bottom-start",
|
|
212
|
+
style: {
|
|
213
|
+
width: "auto",
|
|
214
|
+
...S
|
|
215
|
+
},
|
|
216
|
+
targetElement: a.targetElement
|
|
217
|
+
} : {
|
|
218
|
+
fallbackPosition: ["top-start"],
|
|
219
|
+
offset: [0, 8],
|
|
220
|
+
position: "bottom-start",
|
|
221
|
+
style: {
|
|
222
|
+
display: f.value ? "block" : "none",
|
|
223
|
+
...S
|
|
224
|
+
},
|
|
225
|
+
targetElement: a.targetElement
|
|
226
|
+
};
|
|
227
|
+
});
|
|
228
|
+
return o({
|
|
229
|
+
onOutsideDropdownClick: h
|
|
230
|
+
}), (S, T) => (x(), K(Be(m.value), k({
|
|
231
|
+
class: ["b-dropdown-options-container", r.value],
|
|
232
|
+
"aria-label": e.ariaLabel
|
|
233
|
+
}, b.value), {
|
|
234
|
+
default: z(() => [
|
|
235
|
+
te("div", {
|
|
236
|
+
onKeydown: T[0] || (T[0] = _e(
|
|
237
|
+
//@ts-ignore
|
|
238
|
+
(...N) => s(L) && s(L)(...N),
|
|
239
|
+
["esc"]
|
|
240
|
+
))
|
|
241
|
+
}, [
|
|
242
|
+
Q(s(me), k({
|
|
243
|
+
id: e.id,
|
|
244
|
+
ref_key: "dropdownOptionsListboxRef",
|
|
245
|
+
ref: c,
|
|
246
|
+
"aria-label": e.ariaLabel,
|
|
247
|
+
class: ["b-dropdown-options-container__listbox", $.value],
|
|
248
|
+
"empty-state": e.emptyState,
|
|
249
|
+
"is-option-disabled": e.isOptionDisabled,
|
|
250
|
+
items: e.items,
|
|
251
|
+
"selected-value": s(C),
|
|
252
|
+
multiple: s(p),
|
|
253
|
+
"static-categories": e.staticCategories,
|
|
254
|
+
"no-results-message": g.value,
|
|
255
|
+
searching: e.searching,
|
|
256
|
+
loading: e.loading,
|
|
257
|
+
"lazy-load-type": e.lazyLoadType,
|
|
258
|
+
"has-more-items": e.hasMoreItems,
|
|
259
|
+
"virtual-scroll": e.virtualScroll
|
|
260
|
+
}, G(s(B))), re({ _: 2 }, [
|
|
261
|
+
de(s(l), (N, W) => ({
|
|
262
|
+
name: W,
|
|
263
|
+
fn: z((_) => [
|
|
264
|
+
X(S.$slots, W, ue(ce(_)), void 0, !0)
|
|
265
|
+
])
|
|
266
|
+
}))
|
|
267
|
+
]), 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"])
|
|
268
|
+
], 32)
|
|
269
|
+
]),
|
|
270
|
+
_: 3
|
|
271
|
+
}, 16, ["aria-label", "class"]));
|
|
272
|
+
}
|
|
273
|
+
}), vt = /* @__PURE__ */ Y(mt, [["__scopeId", "data-v-9390dd46"]]);
|
|
274
|
+
let we = 0;
|
|
275
|
+
const yt = {
|
|
276
|
+
beforeCreate() {
|
|
277
|
+
this.uuid = we.toString(), we += 1;
|
|
278
|
+
}
|
|
279
|
+
}, bt = { key: 0 };
|
|
280
|
+
function gt(e, o, n, l, i, a) {
|
|
281
|
+
return x(), P("svg", k({ role: "img" }, e.$attrs, {
|
|
282
|
+
class: "ui-assets-icons-16",
|
|
283
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
284
|
+
width: "16",
|
|
285
|
+
height: "16",
|
|
286
|
+
fill: "none"
|
|
287
|
+
}), [
|
|
288
|
+
e.$attrs["svg-title"] ? (x(), P("title", bt, ve(e.$attrs["svg-title"]), 1)) : F("", !0),
|
|
289
|
+
o[0] || (o[0] = te("path", {
|
|
290
|
+
fill: "#00112C",
|
|
291
|
+
d: "M5.00011 5.43922L8.00011 8.43922L11.0001 5.43922L12.0608 6.49988L8.00011 10.5605L3.93945 6.49988L5.00011 5.43922Z"
|
|
292
|
+
}, null, -1))
|
|
293
|
+
], 16);
|
|
294
|
+
}
|
|
295
|
+
const ht = /* @__PURE__ */ Y(yt, [["render", gt]]);
|
|
296
|
+
let $e = 0;
|
|
297
|
+
const xt = {
|
|
298
|
+
beforeCreate() {
|
|
299
|
+
this.uuid = $e.toString(), $e += 1;
|
|
300
|
+
}
|
|
301
|
+
}, Lt = { key: 0 };
|
|
302
|
+
function St(e, o, n, l, i, a) {
|
|
303
|
+
return x(), P("svg", k({ role: "img" }, e.$attrs, {
|
|
304
|
+
class: "ui-assets-icons-16",
|
|
305
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
306
|
+
width: "16",
|
|
307
|
+
height: "16",
|
|
308
|
+
fill: "none"
|
|
309
|
+
}), [
|
|
310
|
+
e.$attrs["svg-title"] ? (x(), P("title", Lt, ve(e.$attrs["svg-title"]), 1)) : F("", !0),
|
|
311
|
+
o[0] || (o[0] = te("path", {
|
|
312
|
+
fill: "#00112C",
|
|
313
|
+
d: "M10.9999 10.5608L7.9999 7.56077L4.9999 10.5608L3.93924 9.50011L7.9999 5.43945L12.0606 9.50011L10.9999 10.5608Z"
|
|
314
|
+
}, null, -1))
|
|
315
|
+
], 16);
|
|
316
|
+
}
|
|
317
|
+
const wt = /* @__PURE__ */ Y(xt, [["render", St]]), $t = { class: "b-dropdown-small-textbox__chevron" }, Et = j({
|
|
318
|
+
name: "dropdown-small-textbox",
|
|
319
|
+
inheritAttrs: !1
|
|
320
|
+
}), Ot = /* @__PURE__ */ j({
|
|
321
|
+
...Et,
|
|
322
|
+
props: {
|
|
323
|
+
/**
|
|
324
|
+
* The number of additional items that have been selected in the dropdown.
|
|
325
|
+
*/
|
|
326
|
+
additionalItemsSelected: { type: [Number, String], default: 0 },
|
|
327
|
+
/**
|
|
328
|
+
* Sets the aria-controls attribute on the textbox. This should correspond to the popover's id that the textbox triggers.
|
|
329
|
+
*/
|
|
330
|
+
ariaControls: { type: String, required: !0 },
|
|
331
|
+
/**
|
|
332
|
+
* Indicates whether the content the textbox triggers is visible or not. Needs to be set accordingly when the textbox is used and changed every time the popover is shown/hidden.
|
|
333
|
+
*/
|
|
334
|
+
ariaExpanded: {
|
|
335
|
+
type: [String, Boolean],
|
|
336
|
+
required: !0
|
|
337
|
+
},
|
|
338
|
+
/**
|
|
339
|
+
* If no label element is used then the aria-label is be set should be set.
|
|
340
|
+
*/
|
|
341
|
+
ariaLabel: { type: String, default: null },
|
|
342
|
+
/**
|
|
343
|
+
* Corresponds to the label's id that labels the textbox element.
|
|
344
|
+
*/
|
|
345
|
+
ariaLabelledby: { type: String, default: null },
|
|
346
|
+
/**
|
|
347
|
+
* Custom debounce time. Default: 300
|
|
348
|
+
*/
|
|
349
|
+
debounceTime: { type: Number, default: 300 },
|
|
350
|
+
/**
|
|
351
|
+
* Disables any textbox functionality
|
|
352
|
+
*/
|
|
353
|
+
disabled: { type: Boolean, default: !1 },
|
|
354
|
+
/**
|
|
355
|
+
* Selected option's label
|
|
356
|
+
*/
|
|
357
|
+
displayValue: { type: String, default: null },
|
|
358
|
+
/**
|
|
359
|
+
* Sets the possibility to type into the textbox
|
|
360
|
+
*/
|
|
361
|
+
dynamicFiltering: { type: Boolean, default: !1 },
|
|
362
|
+
/**
|
|
363
|
+
* Marks the textbox as invalid, rendering an error state
|
|
364
|
+
*/
|
|
365
|
+
isInvalid: { type: Boolean, default: !1 },
|
|
366
|
+
/**
|
|
367
|
+
* Indicates if the dropdown is open so that
|
|
368
|
+
* the respective event can be emitted
|
|
369
|
+
*/
|
|
370
|
+
open: { type: Boolean, default: !1 },
|
|
371
|
+
/**
|
|
372
|
+
* Sets the dropdown to readonly state
|
|
373
|
+
*/
|
|
374
|
+
readonly: { type: Boolean, default: !1 },
|
|
375
|
+
/**
|
|
376
|
+
* The input value
|
|
377
|
+
*/
|
|
378
|
+
value: { type: String, default: "" }
|
|
379
|
+
},
|
|
380
|
+
emits: ["clear", "close", "input", "keydown", "open"],
|
|
381
|
+
setup(e, { emit: o }) {
|
|
382
|
+
const n = o, l = e, i = u(() => ({
|
|
383
|
+
[`b-dropdown-small-textbox--${ne.DISABLED}`]: l.disabled,
|
|
384
|
+
[`b-dropdown-small-textbox--${ne.READONLY}`]: l.readonly,
|
|
385
|
+
[`b-dropdown-small-textbox--${ne.OPENED}`]: l.open
|
|
386
|
+
})), a = u(() => l.open && !l.disabled && !l.readonly), t = (r) => {
|
|
387
|
+
n("input", r);
|
|
388
|
+
}, p = (r) => {
|
|
389
|
+
n("keydown", r);
|
|
390
|
+
}, c = (r) => {
|
|
391
|
+
ie(r), n("open");
|
|
392
|
+
}, y = (r) => {
|
|
393
|
+
ie(r), n("close");
|
|
394
|
+
}, f = (r) => {
|
|
395
|
+
ie(r), n("clear");
|
|
396
|
+
}, g = {
|
|
397
|
+
[q.INPUT]: t,
|
|
398
|
+
[q.OPEN]: c,
|
|
399
|
+
[q.CLOSE]: y,
|
|
400
|
+
[q.CLEAR]: f,
|
|
401
|
+
[q.KEYDOWN]: p
|
|
402
|
+
};
|
|
403
|
+
return (r, $) => (x(), P("div", {
|
|
404
|
+
class: fe(["b-dropdown-small-textbox", i.value])
|
|
405
|
+
}, [
|
|
406
|
+
Q(et, k({ ...r.$attrs, ...r.$props }, {
|
|
407
|
+
class: "b-dropdown-small-textbox__textbox",
|
|
408
|
+
size: s(J).SMALL
|
|
409
|
+
}, G(g)), {
|
|
410
|
+
icon: z(() => [
|
|
411
|
+
te("div", $t, [
|
|
412
|
+
ee(Q(s(wt), { "svg-title": "opened" }, null, 512), [
|
|
413
|
+
[xe, a.value]
|
|
414
|
+
]),
|
|
415
|
+
ee(Q(s(ht), { "svg-title": "closed" }, null, 512), [
|
|
416
|
+
[xe, !a.value]
|
|
417
|
+
])
|
|
418
|
+
])
|
|
419
|
+
]),
|
|
420
|
+
_: 1
|
|
421
|
+
}, 16, ["size"])
|
|
422
|
+
], 2));
|
|
423
|
+
}
|
|
424
|
+
}), Ct = /* @__PURE__ */ Y(Ot, [["__scopeId", "data-v-2fa2d897"]]), Bt = (e, o) => o.value.reduce((n, l) => {
|
|
425
|
+
if (l.items) {
|
|
426
|
+
const i = l.items.filter(
|
|
427
|
+
(t) => e.value.find((p) => p.value === t.value)
|
|
428
|
+
);
|
|
429
|
+
i.length === l.items.length ? n.push(l.label) : i.forEach(({ label: t }) => n.push(t));
|
|
430
|
+
}
|
|
431
|
+
return e.value.find((i) => i.value === l.value) && n.push(l.label), n;
|
|
432
|
+
}, []).join(", "), It = ({ items: e, placeholder: o, selectedValues: n, isMultiSelect: l }) => {
|
|
433
|
+
const i = u(
|
|
434
|
+
() => l.value && e.value.find((t) => {
|
|
435
|
+
var p;
|
|
436
|
+
return (p = t.items) == null ? void 0 : p.length;
|
|
437
|
+
})
|
|
438
|
+
);
|
|
439
|
+
return u(() => n.value.length ? i.value ? Bt(n, e) : n.value.map(({ label: t }) => t).join(", ") : o.value || null);
|
|
440
|
+
}, Ie = (e) => {
|
|
441
|
+
var o;
|
|
442
|
+
(o = e.value.$children) == null || o[0].$refs.textbox.focus();
|
|
443
|
+
}, Dt = ({
|
|
444
|
+
inputContainerRef: e,
|
|
445
|
+
optionsContainerRef: o,
|
|
446
|
+
selectedValueIndex: n,
|
|
447
|
+
isDropdownOpen: l,
|
|
448
|
+
isDynamicFltering: i,
|
|
449
|
+
items: a,
|
|
450
|
+
isMultiple: t
|
|
451
|
+
}, p, c, y) => {
|
|
452
|
+
const f = ({ detail: m }) => {
|
|
453
|
+
m.preventDefault(), l.value || c(), M(() => {
|
|
454
|
+
var b;
|
|
455
|
+
t ? (b = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || b[0].$el.focus() : (o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.setListboxFocusedIndex(
|
|
456
|
+
n.value
|
|
457
|
+
), o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.listboxItemRef[n.value].$el.focus());
|
|
458
|
+
});
|
|
459
|
+
}, g = ({ detail: m }) => {
|
|
460
|
+
m.preventDefault(), l.value || c(), M(() => {
|
|
461
|
+
o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.setListboxFocusedIndex(
|
|
462
|
+
n.value
|
|
463
|
+
), o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.listboxItemRef[n.value].$el.focus();
|
|
464
|
+
});
|
|
465
|
+
}, r = () => {
|
|
466
|
+
l.value || (c(), M(() => {
|
|
467
|
+
var m, b;
|
|
468
|
+
if (t) {
|
|
469
|
+
const S = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children;
|
|
470
|
+
(m = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || m[S.length - 1].$children[a.length - 1].$el.focus();
|
|
471
|
+
} else
|
|
472
|
+
(b = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || b[a.length - 1].$el.focus();
|
|
473
|
+
}));
|
|
474
|
+
}, $ = () => {
|
|
475
|
+
l.value && (y(), Ie(e));
|
|
476
|
+
}, O = () => {
|
|
477
|
+
l.value && y();
|
|
478
|
+
}, C = () => {
|
|
479
|
+
l.value || c(), M(() => {
|
|
480
|
+
var m;
|
|
481
|
+
(m = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || m[0].$el.focus();
|
|
482
|
+
});
|
|
483
|
+
}, B = ({ detail: m }) => {
|
|
484
|
+
m.preventDefault(), p(), l.value && M(() => {
|
|
485
|
+
var b, S;
|
|
486
|
+
t ? (b = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || b[0].$el.focus() : (S = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || S[n.value].$el.focus();
|
|
487
|
+
});
|
|
488
|
+
}, L = () => {
|
|
489
|
+
p(), l.value && M(() => {
|
|
490
|
+
var m, b;
|
|
491
|
+
t ? (m = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || m[0].$el.focus() : (b = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || b[n.value].$el.focus();
|
|
492
|
+
});
|
|
493
|
+
};
|
|
494
|
+
return u(() => ({
|
|
495
|
+
...i.value ? {} : { [R.SPACE]: B },
|
|
496
|
+
[R.ENTER]: L,
|
|
497
|
+
[R.ARROW_DOWN]: f,
|
|
498
|
+
[R.ARROW_UP]: g,
|
|
499
|
+
[R.END]: r,
|
|
500
|
+
[R.ESCAPE]: $,
|
|
501
|
+
[R.HOME]: C,
|
|
502
|
+
[R.TAB]: O
|
|
503
|
+
}));
|
|
504
|
+
}, Rt = ({ inputContainerRef: e, isDropdownOpen: o }, n) => {
|
|
505
|
+
const l = () => {
|
|
506
|
+
o.value && n(), M(() => {
|
|
507
|
+
Ie(e);
|
|
508
|
+
});
|
|
509
|
+
};
|
|
510
|
+
return {
|
|
511
|
+
[d.ENTER]: l,
|
|
512
|
+
[d.ESCAPE]: l,
|
|
513
|
+
[d.TAB]: l,
|
|
514
|
+
[d.SPACE]: l
|
|
515
|
+
};
|
|
516
|
+
};
|
|
517
|
+
function Tt(e, o, n, l) {
|
|
518
|
+
const i = w(e), a = w(o), t = (c, y = []) => y.flatMap((f) => f.label.toLocaleLowerCase().includes(c) ? l != null && l.value && f.items ? [...t(c, f.items)] : [f, ...t(c, f.items)] : f.items ? [...t(c, f.items)] : []);
|
|
519
|
+
return Ee(i, () => {
|
|
520
|
+
n !== void 0 && n(i.value);
|
|
521
|
+
}), u(() => {
|
|
522
|
+
if (!i.value || n !== void 0)
|
|
523
|
+
return a.value;
|
|
524
|
+
const c = i.value.toLocaleLowerCase();
|
|
525
|
+
return t(c, a.value);
|
|
526
|
+
});
|
|
527
|
+
}
|
|
528
|
+
const De = {
|
|
529
|
+
"en-US": {
|
|
530
|
+
all: "All",
|
|
531
|
+
clearSearch: "Clear filter",
|
|
532
|
+
ariaLabelFallback: "Dropdown"
|
|
533
|
+
},
|
|
534
|
+
"pt-BR": {
|
|
535
|
+
all: "Todos",
|
|
536
|
+
clearFilter: "Limpar filtro"
|
|
537
|
+
},
|
|
538
|
+
"ja-JP": {
|
|
539
|
+
all: "すべて",
|
|
540
|
+
clearFilter: "フィルターをクリア"
|
|
541
|
+
}
|
|
542
|
+
}, Nt = Symbol("input field component injection key"), el = Symbol("input field hint injection key"), At = j({
|
|
543
|
+
i18n: { messages: De },
|
|
544
|
+
name: "b-dropdown",
|
|
545
|
+
components: {
|
|
546
|
+
DropdownInputDefault: tt,
|
|
547
|
+
DropdownInputSmall: Ct
|
|
548
|
+
}
|
|
549
|
+
}), Mt = /* @__PURE__ */ j({
|
|
550
|
+
...At,
|
|
551
|
+
props: {
|
|
552
|
+
/**
|
|
553
|
+
* @deprecated from version 2.0.0. Use the aria-label attribute instead.
|
|
554
|
+
*/
|
|
555
|
+
/**
|
|
556
|
+
* Defines a string value that labels an interactive element.
|
|
557
|
+
*/
|
|
558
|
+
ariaLabel: { type: String, default: null },
|
|
559
|
+
/**
|
|
560
|
+
* Renders the dropdown with a condensed style.
|
|
561
|
+
*/
|
|
562
|
+
condensed: { type: Boolean, default: !1 },
|
|
563
|
+
/**
|
|
564
|
+
* Empty state props used with the inner empty state component which is displayed when no search results are found.
|
|
565
|
+
*/
|
|
566
|
+
emptyState: {
|
|
567
|
+
type: Object,
|
|
568
|
+
default: void 0
|
|
569
|
+
},
|
|
570
|
+
/**
|
|
571
|
+
* Disables dropdown functionality.
|
|
572
|
+
*/
|
|
573
|
+
disabled: { type: Boolean, default: !1 },
|
|
574
|
+
/**
|
|
575
|
+
* Sets the possibility to type into the textbox.
|
|
576
|
+
*/
|
|
577
|
+
dynamicFiltering: {
|
|
578
|
+
type: Boolean,
|
|
579
|
+
default: !1
|
|
580
|
+
},
|
|
581
|
+
/**
|
|
582
|
+
* Highlights the dropdown in an erroneous state.
|
|
583
|
+
*
|
|
584
|
+
* @deprecated Use "errorMessage" prop instead
|
|
585
|
+
*/
|
|
586
|
+
error: { type: Boolean, default: !1 },
|
|
587
|
+
/**
|
|
588
|
+
* Highlights the dropdown in an erroneous state with an error message.
|
|
589
|
+
*/
|
|
590
|
+
errorMessage: { type: String, default: null },
|
|
591
|
+
/**
|
|
592
|
+
* Descriptive supporting text visbile underneath the dropdown.
|
|
593
|
+
*/
|
|
594
|
+
description: { type: String, default: null },
|
|
595
|
+
/**
|
|
596
|
+
* Indicates whether there are more items to load
|
|
597
|
+
*/
|
|
598
|
+
hasMoreItems: { type: Boolean, default: !1 },
|
|
599
|
+
/**
|
|
600
|
+
* Function that dertermines which options are disabled from interaction.
|
|
601
|
+
*
|
|
602
|
+
* @type {BentoListboxIsOptionDisabled}
|
|
603
|
+
* @param {BentoListboxOptionItem} option - Dropdown option object
|
|
604
|
+
* @param {string} option.label - Option's label text
|
|
605
|
+
* @param {string|number} option.value - Option's value
|
|
606
|
+
* @param {unknown} option.data - Option's extra data to be passed to the default slot
|
|
607
|
+
*/
|
|
608
|
+
isOptionDisabled: {
|
|
609
|
+
type: Function,
|
|
610
|
+
default: void 0
|
|
611
|
+
},
|
|
612
|
+
/**
|
|
613
|
+
* The option elements to populate the dropdown with.
|
|
614
|
+
* It must be an array of {@see BentoListboxOptionItem }
|
|
615
|
+
* * @property {string} value.label - Text to be displayed in the option
|
|
616
|
+
* * @property {string,number} value.value - Value of the option
|
|
617
|
+
*/
|
|
618
|
+
items: {
|
|
619
|
+
type: Array,
|
|
620
|
+
default: () => []
|
|
621
|
+
},
|
|
622
|
+
/**
|
|
623
|
+
* Text that is displayed as a label above the element.
|
|
624
|
+
*/
|
|
625
|
+
label: { type: String, default: null },
|
|
626
|
+
/**
|
|
627
|
+
* Indicates if new options are loading.
|
|
628
|
+
*/
|
|
629
|
+
loading: { type: Boolean, default: !1 },
|
|
630
|
+
/**
|
|
631
|
+
* The type of `Lazy Load`.
|
|
632
|
+
* Type "automatic" will enable infinite scrolling
|
|
633
|
+
* Type "button" will enable lazy loading with "Show more" button
|
|
634
|
+
*/
|
|
635
|
+
lazyLoadType: {
|
|
636
|
+
type: String,
|
|
637
|
+
default: me.props.lazyLoadType.default,
|
|
638
|
+
validator: (e) => Object.values(pe).includes(e)
|
|
639
|
+
},
|
|
640
|
+
/*
|
|
641
|
+
* If enabled, the user will be able to select multiple items.
|
|
642
|
+
*/
|
|
643
|
+
multiple: { type: Boolean, default: !1 },
|
|
644
|
+
/**
|
|
645
|
+
* Highlights the dropdown is optional.
|
|
646
|
+
*/
|
|
647
|
+
optional: { type: Boolean, default: !1 },
|
|
648
|
+
/**
|
|
649
|
+
* Text that appears in the form control when it has no value set
|
|
650
|
+
*/
|
|
651
|
+
placeholder: { type: String, default: null },
|
|
652
|
+
/**
|
|
653
|
+
* Sets the dropdown to readonly state
|
|
654
|
+
*/
|
|
655
|
+
readonly: { type: Boolean, default: !1 },
|
|
656
|
+
/**
|
|
657
|
+
* Highlights the dropdown is required.
|
|
658
|
+
*/
|
|
659
|
+
required: { type: Boolean, default: !1 },
|
|
660
|
+
/**
|
|
661
|
+
* Dropdown search options and events.
|
|
662
|
+
* @see BentoDropdownSearchOptions
|
|
663
|
+
*/
|
|
664
|
+
search: {
|
|
665
|
+
type: Object,
|
|
666
|
+
default: void 0
|
|
667
|
+
},
|
|
668
|
+
/**
|
|
669
|
+
* Toggles whether to use the slot content select items shown in the textbox in multiple mode.
|
|
670
|
+
*/
|
|
671
|
+
showSlotContentInMultiple: { type: Boolean, default: !1 },
|
|
672
|
+
/**
|
|
673
|
+
* @deprecated Do not use. Only 'default' size should be used.
|
|
674
|
+
*/
|
|
675
|
+
size: {
|
|
676
|
+
type: String,
|
|
677
|
+
default: null,
|
|
678
|
+
validator: (e) => Object.values(J).includes(e)
|
|
679
|
+
},
|
|
680
|
+
/**
|
|
681
|
+
* If enabled, dropdown will display non-selectable, static categories
|
|
682
|
+
*/
|
|
683
|
+
staticCategories: { type: Boolean, default: !1 },
|
|
684
|
+
/**
|
|
685
|
+
* Adds a info icon next to the label to display the passed tooltip message.
|
|
686
|
+
*/
|
|
687
|
+
tooltipText: { type: String, default: null },
|
|
688
|
+
/**
|
|
689
|
+
* The `input` value.
|
|
690
|
+
* Providing an empty string will select no options.
|
|
691
|
+
* Set to an empty string `''` if you don't want any of the available options to be selected.
|
|
692
|
+
*/
|
|
693
|
+
value: {
|
|
694
|
+
type: [String, Number, Array],
|
|
695
|
+
default: null
|
|
696
|
+
},
|
|
697
|
+
/**
|
|
698
|
+
* Enables virtual scrolling if set to true or by providing an object with itemHeight function.
|
|
699
|
+
* The itemHeight function is used to calculate the height of rendered item given it's index.
|
|
700
|
+
*/
|
|
701
|
+
virtualScroll: {
|
|
702
|
+
type: [Boolean, Object],
|
|
703
|
+
default: !1
|
|
704
|
+
}
|
|
705
|
+
},
|
|
706
|
+
emits: ["input", "show-more"],
|
|
707
|
+
setup(e, { expose: o, emit: n }) {
|
|
708
|
+
var he;
|
|
709
|
+
const l = Ze(), i = Oe(), a = rt(i), t = e, p = n, { t: c } = ye({ messages: De }), y = w(null), f = w(null), g = w(null), r = w(!1), $ = V("bento-dropdown-options-container"), O = V("dropdown-label"), C = V("dropdown-description"), B = V("dropdown-error"), { isReadOnly: L } = at(E(t, "readonly")), { cachedSelectedListboxOptions: h, cachedListboxSelectedValues: m, setCachedValues: b } = nt(
|
|
710
|
+
E(t, "items"),
|
|
711
|
+
E(t, "value"),
|
|
712
|
+
E(t, "multiple")
|
|
713
|
+
), S = w(l["aria-label"]), { ariaLabel: T, label: N } = Ce(t), W = lt({
|
|
714
|
+
// TODO: take ariaLabel ref away when aria-label prop is removed
|
|
715
|
+
ariaLabel: T || S,
|
|
716
|
+
label: N,
|
|
717
|
+
defaultFallback: c("ariaLabelFallback")
|
|
718
|
+
}), _ = t.size === J.SMALL || Qe(Nt, !1), Re = u(() => _ ? J.SMALL : J.DEFAULT), Te = u(() => ({
|
|
719
|
+
"b-dropdown--condensed": t.condensed
|
|
720
|
+
})), Ne = u(() => ({
|
|
721
|
+
"b-dropdown__description--error": !!t.errorMessage
|
|
722
|
+
})), A = w(""), Z = E(t, "items"), ge = E(t, "staticCategories"), Ae = Tt(A, Z, (he = t == null ? void 0 : t.search) == null ? void 0 : he.searchEvent, ge), le = u(() => t.dynamicFiltering && !!A.value), Me = It({
|
|
723
|
+
items: Z,
|
|
724
|
+
placeholder: E(t, "placeholder"),
|
|
725
|
+
isMultiSelect: E(t, "multiple"),
|
|
726
|
+
selectedValues: h
|
|
727
|
+
}), ke = u(() => {
|
|
728
|
+
if (t != null && t.multiple && Array.isArray(t.value))
|
|
729
|
+
return t.items.filter(
|
|
730
|
+
({ value: v }) => (t == null ? void 0 : t.value) && (t == null ? void 0 : t.value).includes(v)
|
|
731
|
+
);
|
|
732
|
+
if (!t.multiple && t.staticCategories) {
|
|
733
|
+
const v = t.items.find(
|
|
734
|
+
(D) => D.items.some((U) => U.value === t.value)
|
|
735
|
+
);
|
|
736
|
+
return v ? v.items.find((D) => D.value === t.value) : null;
|
|
737
|
+
}
|
|
738
|
+
return t.items.find(({ value: v }) => v === (t == null ? void 0 : t.value));
|
|
739
|
+
}), Pe = u(() => {
|
|
740
|
+
const v = t.items.findIndex(({ value: I }) => t.value === I);
|
|
741
|
+
return v > 0 ? v : 0;
|
|
742
|
+
}), { isMultiLevelSelect: Ke, flattenedItemsList: Fe } = it(Z), ze = u(() => {
|
|
743
|
+
var v;
|
|
744
|
+
if (t.multiple) {
|
|
745
|
+
const I = (v = t == null ? void 0 : t.value) == null ? void 0 : v.length, D = Ke.value ? Fe.value.length : Z.value.length;
|
|
746
|
+
return !t.hasMoreItems && D === I ? c("all") : I;
|
|
747
|
+
}
|
|
748
|
+
return null;
|
|
749
|
+
}), je = u(
|
|
750
|
+
() => `${t.description ? C : ""} ${t.errorMessage ? B : ""}`.trim() || null
|
|
751
|
+
), We = () => {
|
|
752
|
+
L.value || (r.value = !0);
|
|
753
|
+
}, ae = () => {
|
|
754
|
+
r.value = !1;
|
|
755
|
+
}, oe = () => {
|
|
756
|
+
L.value || (r.value = !r.value, le.value && (A.value = ""));
|
|
757
|
+
}, Ue = () => {
|
|
758
|
+
le.value && (A.value = ""), r.value && (r.value = !1, g.value.onOutsideDropdownClick());
|
|
759
|
+
}, He = (v) => {
|
|
760
|
+
t.multiple || (A.value = "", r.value = !1), b(v), p("input", m.value);
|
|
761
|
+
}, qe = () => {
|
|
762
|
+
p(d.SHOW_MORE);
|
|
763
|
+
}, Je = Dt(
|
|
764
|
+
{
|
|
765
|
+
inputContainerRef: y,
|
|
766
|
+
optionsContainerRef: g,
|
|
767
|
+
selectedValueIndex: Pe,
|
|
768
|
+
isDropdownOpen: r,
|
|
769
|
+
isDynamicFltering: E(t, "dynamicFiltering"),
|
|
770
|
+
items: t.items,
|
|
771
|
+
isMultiple: t.multiple
|
|
772
|
+
},
|
|
773
|
+
oe,
|
|
774
|
+
We,
|
|
775
|
+
ae
|
|
776
|
+
), Ve = Rt(
|
|
777
|
+
{
|
|
778
|
+
inputContainerRef: y,
|
|
779
|
+
isDropdownOpen: r
|
|
780
|
+
},
|
|
781
|
+
ae
|
|
782
|
+
), Ye = {
|
|
783
|
+
[d.CLOSE_DROPDOWN]: ae,
|
|
784
|
+
[d.SELECT]: He,
|
|
785
|
+
[d.SHOW_MORE]: qe,
|
|
786
|
+
...Ve
|
|
787
|
+
};
|
|
788
|
+
return t.error && Le(
|
|
789
|
+
'BentoDropdown "error" property',
|
|
790
|
+
`Use the BentoDropdown "errorMessage" property instead to indicate that there is a modifier error.
|
|
791
|
+
Having the field as "undefined" will hide/remove the error.
|
|
792
|
+
<bento-dropdown errorMessage="Error message text" />`,
|
|
793
|
+
"2.0.0"
|
|
794
|
+
), t.size && Le('BentoDropdown "size" property', "Do not use. Only 'default' size should be used.", "2.0.0"), o({
|
|
795
|
+
focus: () => {
|
|
796
|
+
y.value.focus();
|
|
797
|
+
}
|
|
798
|
+
}), (v, I) => {
|
|
799
|
+
var D;
|
|
800
|
+
return ee((x(), P("div", {
|
|
801
|
+
class: fe(["b-dropdown", Te.value])
|
|
802
|
+
}, [
|
|
803
|
+
s(N) ? (x(), K(s(dt), {
|
|
804
|
+
key: 0,
|
|
805
|
+
id: s(O),
|
|
806
|
+
condensed: e.condensed,
|
|
807
|
+
label: s(N),
|
|
808
|
+
"tooltip-text": e.tooltipText,
|
|
809
|
+
optional: e.optional,
|
|
810
|
+
required: e.required
|
|
811
|
+
}, null, 8, ["id", "condensed", "label", "tooltip-text", "optional", "required"])) : F("", !0),
|
|
812
|
+
ee((x(), P("div", k({
|
|
813
|
+
ref_key: "inputContainerRefWrapper",
|
|
814
|
+
ref: f
|
|
815
|
+
}, G(s(Je), !0)), [
|
|
816
|
+
(x(), K(Be(Re.value), {
|
|
817
|
+
ref_key: "inputContainerRef",
|
|
818
|
+
ref: y,
|
|
819
|
+
condensed: e.condensed,
|
|
820
|
+
value: A.value,
|
|
821
|
+
"additional-items-selected": ze.value,
|
|
822
|
+
ariaControls: s($),
|
|
823
|
+
ariaExpanded: r.value,
|
|
824
|
+
"aria-labelledby": s(N) ? s(O) : null,
|
|
825
|
+
"aria-describedby": je.value,
|
|
826
|
+
"aria-label": s(W),
|
|
827
|
+
"aria-readonly": s(L),
|
|
828
|
+
readonly: s(L),
|
|
829
|
+
disabled: e.disabled,
|
|
830
|
+
"display-value": s(Me),
|
|
831
|
+
"dynamic-filtering": e.dynamicFiltering,
|
|
832
|
+
"is-invalid": !!e.errorMessage || e.error,
|
|
833
|
+
multiple: e.multiple,
|
|
834
|
+
open: r.value,
|
|
835
|
+
"selected-value-item": s(_) ? void 0 : ke.value,
|
|
836
|
+
"show-slot-content-in-multiple": e.showSlotContentInMultiple,
|
|
837
|
+
onInput: I[0] || (I[0] = (U) => A.value = U),
|
|
838
|
+
onOpen: oe,
|
|
839
|
+
onClose: oe
|
|
840
|
+
}, re({ _: 2 }, [
|
|
841
|
+
de(s(i), (U, H) => ({
|
|
842
|
+
name: H,
|
|
843
|
+
fn: z((se) => [
|
|
844
|
+
X(v.$slots, H, ue(ce(se)), void 0, !0)
|
|
845
|
+
])
|
|
846
|
+
}))
|
|
847
|
+
]), 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"]))
|
|
848
|
+
], 16)), [
|
|
849
|
+
[s(st)]
|
|
850
|
+
]),
|
|
851
|
+
y.value ? (x(), K(s(vt), k({
|
|
852
|
+
key: 1,
|
|
853
|
+
id: s($),
|
|
854
|
+
ref_key: "optionsContainerRef",
|
|
855
|
+
ref: g,
|
|
856
|
+
"aria-label": s(W),
|
|
857
|
+
"empty-state": e.emptyState,
|
|
858
|
+
"debounce-time": (D = e.search) == null ? void 0 : D.debounceTime,
|
|
859
|
+
disabled: e.disabled,
|
|
860
|
+
"is-option-disabled": e.isOptionDisabled,
|
|
861
|
+
items: s(Ae),
|
|
862
|
+
multiple: e.multiple,
|
|
863
|
+
"static-categories": ge.value,
|
|
864
|
+
open: r.value,
|
|
865
|
+
"selected-value": s(h),
|
|
866
|
+
searching: le.value,
|
|
867
|
+
"target-element": f.value,
|
|
868
|
+
loading: e.loading,
|
|
869
|
+
"has-more-items": e.hasMoreItems,
|
|
870
|
+
"lazy-load-type": e.lazyLoadType,
|
|
871
|
+
"virtual-scroll": e.virtualScroll
|
|
872
|
+
}, G(Ye)), re({ _: 2 }, [
|
|
873
|
+
de(s(i), (U, H) => ({
|
|
874
|
+
name: H,
|
|
875
|
+
fn: z((se) => [
|
|
876
|
+
X(v.$slots, H, ue(ce(se)), void 0, !0)
|
|
877
|
+
])
|
|
878
|
+
}))
|
|
879
|
+
]), 1040, ["id", "aria-label", "empty-state", "debounce-time", "disabled", "is-option-disabled", "items", "multiple", "static-categories", "open", "selected-value", "searching", "target-element", "loading", "has-more-items", "lazy-load-type", "virtual-scroll"])) : F("", !0),
|
|
880
|
+
e.errorMessage ? (x(), K(s(ut), {
|
|
881
|
+
key: 2,
|
|
882
|
+
id: s(B),
|
|
883
|
+
"error-message": e.errorMessage,
|
|
884
|
+
class: "b-dropdown__error-message"
|
|
885
|
+
}, null, 8, ["id", "error-message"])) : F("", !0),
|
|
886
|
+
e.description || s(a)("description") ? (x(), K(s(Ge), {
|
|
887
|
+
key: 3,
|
|
888
|
+
id: s(C),
|
|
889
|
+
class: fe(["b-dropdown__description", Ne.value]),
|
|
890
|
+
el: "span"
|
|
891
|
+
}, {
|
|
892
|
+
default: z(() => [
|
|
893
|
+
X(v.$slots, "description", {}, () => [
|
|
894
|
+
Xe(ve(e.description), 1)
|
|
895
|
+
], !0)
|
|
896
|
+
]),
|
|
897
|
+
_: 3
|
|
898
|
+
}, 8, ["id", "class"])) : F("", !0)
|
|
899
|
+
], 2)), [
|
|
900
|
+
[s(ot), Ue]
|
|
901
|
+
]);
|
|
902
|
+
};
|
|
903
|
+
}
|
|
904
|
+
}), tl = /* @__PURE__ */ Y(Mt, [["__scopeId", "data-v-3adaf83b"]]);
|
|
905
|
+
export {
|
|
906
|
+
tl as B,
|
|
907
|
+
el as I,
|
|
908
|
+
Nt as a,
|
|
909
|
+
Tt as u
|
|
910
|
+
};
|
|
911
|
+
//# sourceMappingURL=dropdown.Sj2OLuEF.js.map
|