@adyen/bento-vue3 1.34.0 → 1.35.1
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/checkbox/checkbox.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/checkbox/components/checkbox-group/checkbox-group.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/code-snippet/code-snippet.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-config-settings/data-grid-config-settings.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/dropdown/composables/use-display-value.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/dropdown/composables/use-display-value.types.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/variants/select-avatar-filter/select-avatar-filter.vue.d.ts +7 -7
- package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/variants/select-country-filter/select-country-filter.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/variants/select-currency-filter/select-currency-filter.vue.d.ts +7 -7
- package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/variants/select-payment-method-filter/select-payment-method-filter.vue.d.ts +7 -7
- package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/variants/select-tag-filter/select-tag-filter.vue.d.ts +7 -7
- 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 +1 -1
- 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 +2 -2
- package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-multi-select/listbox-multi-select.vue.d.ts +3 -3
- package/dist/@types/packages/vue2/src/components/internal/listbox/listbox.vue.d.ts +3 -3
- package/dist/@types/packages/vue2/src/utils/ts/get-date-locale/get-date-locale.d.ts +11 -0
- package/dist/accordion.js +1 -1
- package/dist/action-bar.js +1 -1
- package/dist/alert.js +1 -1
- package/dist/assets/accordion-item.css +1 -1
- package/dist/assets/action-bar.css +1 -1
- package/dist/assets/avatar.css +1 -1
- package/dist/assets/base-modal.css +1 -1
- package/dist/assets/calendar.css +1 -1
- package/dist/assets/card.css +1 -1
- package/dist/assets/checkbox.css +1 -1
- package/dist/assets/code-snippet.css +1 -1
- package/dist/assets/currency.css +1 -0
- 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.css +1 -1
- package/dist/assets/error-message.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/loading-button.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/sidepanel.css +1 -1
- package/dist/assets/structured-list-item.css +1 -1
- package/dist/assets/tutorial.css +1 -1
- package/dist/avatar.js +1 -1
- package/dist/button.js +2 -2
- package/dist/card.js +1 -1
- package/dist/checkbox.js +2 -2
- package/dist/chunks/accordion-item.C30QFxol.js +142 -0
- package/dist/chunks/accordion-item.C30QFxol.js.map +1 -0
- package/dist/chunks/{action-bar.DGQYYi8b.js → action-bar.5XBrXwYv.js} +58 -44
- package/dist/chunks/{action-bar.DGQYYi8b.js.map → action-bar.5XBrXwYv.js.map} +1 -1
- package/dist/chunks/{alert.Bz4tNKDH.js → alert.BvSx_Bi7.js} +26 -20
- package/dist/chunks/{alert.Bz4tNKDH.js.map → alert.BvSx_Bi7.js.map} +1 -1
- package/dist/chunks/{avatar.mNlMngHQ.js → avatar.8erKxh8t.js} +13 -13
- package/dist/chunks/avatar.8erKxh8t.js.map +1 -0
- package/dist/chunks/{base-modal.Bl7DBkt0.js → base-modal.BenvK-Np.js} +35 -29
- package/dist/chunks/{base-modal.Bl7DBkt0.js.map → base-modal.BenvK-Np.js.map} +1 -1
- package/dist/chunks/{button-actions-with-menu.BLmcwr2f.js → button-actions-with-menu.CHOjMHpd.js} +4 -4
- package/dist/chunks/{button-actions-with-menu.BLmcwr2f.js.map → button-actions-with-menu.CHOjMHpd.js.map} +1 -1
- package/dist/chunks/{button-actions.hdK5IgrZ.js → button-actions.DyI_dSvx.js} +2 -2
- package/dist/chunks/{button-actions.hdK5IgrZ.js.map → button-actions.DyI_dSvx.js.map} +1 -1
- package/dist/chunks/{calendar.D--sOCBT.js → calendar.DzYaxc0M.js} +148 -148
- package/dist/chunks/calendar.DzYaxc0M.js.map +1 -0
- package/dist/chunks/{card.BvSoujBc.js → card.Bt8jcp9I.js} +45 -37
- package/dist/chunks/card.Bt8jcp9I.js.map +1 -0
- package/dist/chunks/{checkbox-group.CuLP3hPd.js → checkbox-group.B0wngKi6.js} +4 -4
- package/dist/chunks/{checkbox-group.CuLP3hPd.js.map → checkbox-group.B0wngKi6.js.map} +1 -1
- package/dist/chunks/{checkbox.DMMXn-h8.js → checkbox.Bk_jmkGe.js} +50 -40
- package/dist/chunks/{checkbox.DMMXn-h8.js.map → checkbox.Bk_jmkGe.js.map} +1 -1
- package/dist/chunks/{code-snippet.BWM5w4CP.js → code-snippet.1SigVnjS.js} +97 -88
- package/dist/chunks/code-snippet.1SigVnjS.js.map +1 -0
- package/dist/chunks/{controls-group.BnZVHgQK.js → controls-group.COc0kArc.js} +2 -2
- package/dist/chunks/{controls-group.BnZVHgQK.js.map → controls-group.COc0kArc.js.map} +1 -1
- package/dist/chunks/{copy.h-wVGvID.js → copy.1-HH1fz5.js} +28 -20
- package/dist/chunks/{copy.h-wVGvID.js.map → copy.1-HH1fz5.js.map} +1 -1
- package/dist/chunks/{currency.CFJy6QYU.js → currency.BdtY-UIM.js} +3 -2
- package/dist/chunks/{currency.CFJy6QYU.js.map → currency.BdtY-UIM.js.map} +1 -1
- package/dist/chunks/{dashboard-section.BIH2wzgk.js → dashboard-section.BOrGKdY9.js} +2 -2
- package/dist/chunks/{dashboard-section.BIH2wzgk.js.map → dashboard-section.BOrGKdY9.js.map} +1 -1
- package/dist/chunks/{dashed-underline.CFJdLuJp.js → dashed-underline.BO4BuqUM.js} +2 -2
- package/dist/chunks/{dashed-underline.CFJdLuJp.js.map → dashed-underline.BO4BuqUM.js.map} +1 -1
- package/dist/chunks/{data-grid-template.21gqdYrs.js → data-grid-template.O946JKTa.js} +2 -2
- package/dist/chunks/{data-grid-template.21gqdYrs.js.map → data-grid-template.O946JKTa.js.map} +1 -1
- package/dist/chunks/{data-grid.DUwLxtW_.js → data-grid.Bv5TA_zR.js} +578 -532
- package/dist/chunks/{data-grid.DUwLxtW_.js.map → data-grid.Bv5TA_zR.js.map} +1 -1
- package/dist/chunks/{date-picker.21z_Sw4V.js → date-picker.DvEPEMIM.js} +99 -91
- package/dist/chunks/date-picker.DvEPEMIM.js.map +1 -0
- package/dist/chunks/{date-range-picker.K2TeW8aX.js → date-range-picker.BLVlkkG_.js} +338 -316
- package/dist/chunks/date-range-picker.BLVlkkG_.js.map +1 -0
- package/dist/chunks/{date.D8rQMzMG.js → date.CYUV4seY.js} +92 -92
- package/dist/chunks/{date.D8rQMzMG.js.map → date.CYUV4seY.js.map} +1 -1
- package/dist/chunks/{dropdown-tag.BNJnscD2.js → dropdown-tag.bpKWbC_O.js} +3 -3
- package/dist/chunks/{dropdown-tag.BNJnscD2.js.map → dropdown-tag.bpKWbC_O.js.map} +1 -1
- package/dist/chunks/{dropdown.ex87AZ7s.js → dropdown.rFZp3hMb.js} +212 -193
- package/dist/chunks/dropdown.rFZp3hMb.js.map +1 -0
- package/dist/chunks/{error-message.D2Y99KjT.js → error-message.DblYEZ7E.js} +43 -29
- package/dist/chunks/{error-message.D2Y99KjT.js.map → error-message.DblYEZ7E.js.map} +1 -1
- package/dist/chunks/es6.BvpG4Oi6.js.map +1 -1
- package/dist/chunks/{filter-bar.BAmG-yML.js → filter-bar.IN7gqxsc.js} +727 -712
- package/dist/chunks/filter-bar.IN7gqxsc.js.map +1 -0
- package/dist/chunks/{footer-actions.gtxofUAa.js → footer-actions.CyoMN_ca.js} +2 -2
- package/dist/chunks/{footer-actions.gtxofUAa.js.map → footer-actions.CyoMN_ca.js.map} +1 -1
- package/dist/chunks/{form-layout-title.Boi0QQZL.js → form-layout-title.Bi_3du_6.js} +2 -2
- package/dist/chunks/{form-layout-title.Boi0QQZL.js.map → form-layout-title.Bi_3du_6.js.map} +1 -1
- package/dist/chunks/{index.B_UZQ6qF.js → get-date-locale.BN8xEjY0.js} +855 -204
- package/dist/chunks/get-date-locale.BN8xEjY0.js.map +1 -0
- package/dist/chunks/{header.BMYhkrGT.js → header.Byd6jXl6.js} +104 -98
- package/dist/chunks/{header.BMYhkrGT.js.map → header.Byd6jXl6.js.map} +1 -1
- package/dist/chunks/{index.Z84QE0E2.js → index.CrhTVr5J.js} +2 -2
- package/dist/chunks/{index.Z84QE0E2.js.map → index.CrhTVr5J.js.map} +1 -1
- package/dist/chunks/{index.xqFSZOAb.js → index.DDnf1O9p.js} +2 -2
- package/dist/chunks/{index.xqFSZOAb.js.map → index.DDnf1O9p.js.map} +1 -1
- package/dist/chunks/{index.B_EJflcs.js → index.DPafeRJa.js} +2 -2
- package/dist/chunks/{index.B_EJflcs.js.map → index.DPafeRJa.js.map} +1 -1
- package/dist/chunks/{input-field.Dely7A8G.js → input-field.CgS1AEGu.js} +3 -3
- package/dist/chunks/{input-field.Dely7A8G.js.map → input-field.CgS1AEGu.js.map} +1 -1
- package/dist/chunks/{inspector.types.t2SPyhw3.js → inspector.types.xpv2J9pJ.js} +44 -36
- package/dist/chunks/{inspector.types.t2SPyhw3.js.map → inspector.types.xpv2J9pJ.js.map} +1 -1
- package/dist/chunks/loading-button.Bntgn6Lk.js +137 -0
- package/dist/chunks/loading-button.Bntgn6Lk.js.map +1 -0
- package/dist/chunks/{menu.CLicp_2I.js → menu.BN5WGXw3.js} +2 -2
- package/dist/chunks/{menu.CLicp_2I.js.map → menu.BN5WGXw3.js.map} +1 -1
- package/dist/chunks/{modal-fullscreen.Caqa7dDp.js → modal-fullscreen.zljoH4pr.js} +35 -29
- package/dist/chunks/{modal-fullscreen.Caqa7dDp.js.map → modal-fullscreen.zljoH4pr.js.map} +1 -1
- package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.Dzmth-oW.js → modal.vue_vue_type_script_setup_true_lang.tT8umwqG.js} +31 -25
- package/dist/chunks/modal.vue_vue_type_script_setup_true_lang.tT8umwqG.js.map +1 -0
- package/dist/chunks/{pagination.I5w8bpUS.js → pagination.BMn5ryDD.js} +2 -2
- package/dist/chunks/{pagination.I5w8bpUS.js.map → pagination.BMn5ryDD.js.map} +1 -1
- package/dist/chunks/{popover.DQP3ce2x.js → popover.pDk6zsak.js} +2 -2
- package/dist/chunks/{popover.DQP3ce2x.js.map → popover.pDk6zsak.js.map} +1 -1
- package/dist/chunks/{radio-group.lOSBHghv.js → radio-group.DUtoFXmr.js} +3 -3
- package/dist/chunks/{radio-group.lOSBHghv.js.map → radio-group.DUtoFXmr.js.map} +1 -1
- package/dist/chunks/{search-bar.GCRTgBUA.js → search-bar.poJCoGD-.js} +49 -41
- package/dist/chunks/{search-bar.GCRTgBUA.js.map → search-bar.poJCoGD-.js.map} +1 -1
- package/dist/chunks/{secondary-nav.CGH_6m7u.js → secondary-nav.Dyvd-YBg.js} +2 -2
- package/dist/chunks/{secondary-nav.CGH_6m7u.js.map → secondary-nav.Dyvd-YBg.js.map} +1 -1
- package/dist/chunks/{selection-card-group.BdTuPhEm.js → selection-card-group.CHBS81j6.js} +3 -3
- package/dist/chunks/{selection-card-group.BdTuPhEm.js.map → selection-card-group.CHBS81j6.js.map} +1 -1
- package/dist/chunks/{sidepanel.DA8nQepj.js → sidepanel.CuQCXV1E.js} +36 -30
- package/dist/chunks/{sidepanel.DA8nQepj.js.map → sidepanel.CuQCXV1E.js.map} +1 -1
- package/dist/chunks/{structured-list-item.Z-1ivOFu.js → structured-list-item.1A2sjhP4.js} +35 -29
- package/dist/chunks/{structured-list-item.Z-1ivOFu.js.map → structured-list-item.1A2sjhP4.js.map} +1 -1
- package/dist/chunks/{summary-grid-item-custom.Dq3IIEvH.js → summary-grid-item-custom.CuvUVoQ8.js} +2 -2
- package/dist/chunks/{summary-grid-item-custom.Dq3IIEvH.js.map → summary-grid-item-custom.CuvUVoQ8.js.map} +1 -1
- package/dist/chunks/{textarea.kYFGQFwd.js → textarea.CHnvON8G.js} +2 -2
- package/dist/chunks/{textarea.kYFGQFwd.js.map → textarea.CHnvON8G.js.map} +1 -1
- package/dist/chunks/{timeline-item.D-Yy2qQr.js → timeline-item.Dc_l5Xyy.js} +81 -75
- package/dist/chunks/{timeline-item.D-Yy2qQr.js.map → timeline-item.Dc_l5Xyy.js.map} +1 -1
- package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.D-ZFDn95.js → tutorial.vue_vue_type_script_setup_true_lang.DdLmYCOe.js} +82 -70
- package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.D-ZFDn95.js.map → tutorial.vue_vue_type_script_setup_true_lang.DdLmYCOe.js.map} +1 -1
- package/dist/chunks/{use-cached-selected-values.ClVxNmUf.js → use-cached-selected-values.CS3gHOyI.js} +86 -72
- package/dist/chunks/{use-cached-selected-values.ClVxNmUf.js.map → use-cached-selected-values.CS3gHOyI.js.map} +1 -1
- package/dist/code-snippet.js +1 -1
- package/dist/currency.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 +2 -2
- package/dist/date-range-picker.js +2 -2
- package/dist/date.js +1 -1
- package/dist/dropdown.js +3 -3
- package/dist/filter-bar.js +1 -1
- package/dist/form-layout.js +1 -1
- package/dist/header.js +1 -1
- package/dist/index.js +43 -43
- package/dist/input-field.js +1 -1
- package/dist/inspector.js +1 -1
- package/dist/internal.js +5 -5
- 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/radio-group.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/structured-list.js +1 -1
- package/dist/styles/bento.css +3 -0
- package/dist/styles/legacy.css +3 -0
- package/dist/styles/styleguide.css +3 -0
- package/dist/summary-grid.js +1 -1
- 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 +2 -2
- package/dist/chunks/accordion-item.CQ8DLt9l.js +0 -126
- package/dist/chunks/accordion-item.CQ8DLt9l.js.map +0 -1
- package/dist/chunks/avatar.mNlMngHQ.js.map +0 -1
- package/dist/chunks/calendar.D--sOCBT.js.map +0 -1
- package/dist/chunks/card.BvSoujBc.js.map +0 -1
- package/dist/chunks/code-snippet.BWM5w4CP.js.map +0 -1
- package/dist/chunks/date-picker.21z_Sw4V.js.map +0 -1
- package/dist/chunks/date-range-picker.K2TeW8aX.js.map +0 -1
- package/dist/chunks/dropdown.ex87AZ7s.js.map +0 -1
- package/dist/chunks/filter-bar.BAmG-yML.js.map +0 -1
- package/dist/chunks/index.B_UZQ6qF.js.map +0 -1
- package/dist/chunks/loading-button.Mx-oDIGy.js +0 -123
- package/dist/chunks/loading-button.Mx-oDIGy.js.map +0 -1
- package/dist/chunks/modal.vue_vue_type_script_setup_true_lang.Dzmth-oW.js.map +0 -1
|
@@ -1,43 +1,51 @@
|
|
|
1
|
-
import { ref as $, watch as Oe, computed as c, defineComponent as z, useSlots as Ee, toRefs as Ce, openBlock as x, createBlock as P, resolveDynamicComponent as Be, mergeProps as
|
|
1
|
+
import { ref as $, watch as Oe, computed as c, defineComponent as z, useSlots as Ee, toRefs as Ce, openBlock as x, createBlock as P, resolveDynamicComponent as Be, mergeProps as N, withCtx as F, createElementVNode as ee, withKeys as Ye, unref as o, createVNode as Q, toHandlers as _, createSlots as re, renderList as de, renderSlot as X, normalizeProps as ue, guardReactiveProps as ce, createElementBlock as k, toDisplayString as ve, createCommentVNode as K, normalizeClass as fe, withDirectives as G, vShow as xe, nextTick as M, useAttrs as Ze, toRef as C, inject as Qe, createTextVNode as Xe } from "vue";
|
|
2
2
|
import { d as Le, B as _e } from "./typography.z9P0Ec3Q.js";
|
|
3
|
-
import {
|
|
3
|
+
import { g as V } from "./unique-id.XFfoKuc2.js";
|
|
4
|
+
import { u as Ge } from "./aria-label.CaUURpnB.js";
|
|
5
|
+
import { u as ye } from "./i18n.DL9GT2-k.js";
|
|
6
|
+
import { u as et } from "./use-form-layout-loading.D3lALhtC.js";
|
|
7
|
+
import { B as tt } from "./directive.O3yEdalv.js";
|
|
8
|
+
import { B as T, a as lt } from "./keyboard-navigation.Clz1jOaA.js";
|
|
9
|
+
import { a as ne, b as H, c as at, B as J, D as ot } from "./dropdown-default-textbox.Bu4bpNGU.js";
|
|
10
|
+
import { a as u, B as pe, b as me, c as st, u as nt } from "./use-cached-selected-values.CS3gHOyI.js";
|
|
11
|
+
import { u as it } from "./use-has-slot.B7eQSabc.js";
|
|
12
|
+
import { F as rt, E as dt } from "./error-message.DblYEZ7E.js";
|
|
13
|
+
import { P as Se } from "./popper-container.DFpaesDm.js";
|
|
14
|
+
import { B as ut } from "./popover.pDk6zsak.js";
|
|
4
15
|
import { _ as Y } from "./_plugin-vue_export-helper.CHgC5LLL.js";
|
|
5
16
|
import { s as ie } from "./events.CMzGybJJ.js";
|
|
6
|
-
import { g as J } from "./unique-id.XFfoKuc2.js";
|
|
7
|
-
import { u as tt } from "./aria-label.CaUURpnB.js";
|
|
8
|
-
import { u as be } from "./i18n.DL9GT2-k.js";
|
|
9
|
-
import { u as at } from "./use-form-layout-loading.D3lALhtC.js";
|
|
10
|
-
import { B as lt } from "./directive.O3yEdalv.js";
|
|
11
|
-
import { B as T, a as ot } from "./keyboard-navigation.Clz1jOaA.js";
|
|
12
|
-
import { a as u, B as pe, b as me, c as st, u as nt } from "./use-cached-selected-values.ClVxNmUf.js";
|
|
13
|
-
import { u as it } from "./use-has-slot.B7eQSabc.js";
|
|
14
|
-
import { F as rt, E as dt } from "./error-message.D2Y99KjT.js";
|
|
15
|
-
import { P as we } from "./popper-container.DFpaesDm.js";
|
|
16
|
-
import { B as ut } from "./popover.DQP3ce2x.js";
|
|
17
17
|
import "../assets/dropdown.css";
|
|
18
|
-
const
|
|
18
|
+
const be = {
|
|
19
19
|
"en-US": {
|
|
20
20
|
apply: "Apply",
|
|
21
21
|
cancel: "Cancel",
|
|
22
22
|
noOptionsMatchThisSearch: "No options match this search"
|
|
23
|
+
},
|
|
24
|
+
"pt-BR": {
|
|
25
|
+
apply: "Aplicar",
|
|
26
|
+
cancel: "Cancelar"
|
|
27
|
+
},
|
|
28
|
+
"ja-JP": {
|
|
29
|
+
apply: "適用",
|
|
30
|
+
cancel: "キャンセル"
|
|
23
31
|
}
|
|
24
|
-
}, ct = (t,
|
|
25
|
-
const n = $(t.value), { t: e } =
|
|
32
|
+
}, ct = (t, a, s, l) => {
|
|
33
|
+
const n = $(t.value), { t: e } = ye({ messages: be });
|
|
26
34
|
Oe(t, () => {
|
|
27
35
|
n.value = t.value;
|
|
28
36
|
});
|
|
29
37
|
const i = c(
|
|
30
38
|
() => JSON.stringify(n.value) === JSON.stringify(t.value)
|
|
31
|
-
),
|
|
32
|
-
|
|
39
|
+
), m = () => {
|
|
40
|
+
l(u.SELECT, n.value), l(u.CLOSE_DROPDOWN);
|
|
33
41
|
}, r = () => {
|
|
34
|
-
n.value = t.value,
|
|
42
|
+
n.value = t.value, l(u.CLOSE_DROPDOWN);
|
|
35
43
|
}, g = () => {
|
|
36
|
-
s.value &&
|
|
44
|
+
s.value && a.value && (n.value = t.value);
|
|
37
45
|
}, p = c(() => [
|
|
38
46
|
{
|
|
39
47
|
title: e("apply"),
|
|
40
|
-
event:
|
|
48
|
+
event: m,
|
|
41
49
|
disabled: i.value
|
|
42
50
|
},
|
|
43
51
|
{
|
|
@@ -45,22 +53,22 @@ const ye = {
|
|
|
45
53
|
event: r
|
|
46
54
|
}
|
|
47
55
|
]), d = (h) => {
|
|
48
|
-
n.value = h,
|
|
56
|
+
n.value = h, a.value || l(u.SELECT, h);
|
|
49
57
|
}, f = (h) => {
|
|
50
|
-
d(h),
|
|
58
|
+
d(h), l(u.TAB);
|
|
51
59
|
}, O = (h) => {
|
|
52
|
-
d(h),
|
|
53
|
-
},
|
|
54
|
-
d(h),
|
|
55
|
-
},
|
|
56
|
-
r(),
|
|
57
|
-
},
|
|
58
|
-
|
|
60
|
+
d(h), l(u.ENTER);
|
|
61
|
+
}, B = (h) => {
|
|
62
|
+
d(h), l(u.SPACE);
|
|
63
|
+
}, I = () => {
|
|
64
|
+
r(), l(u.ESCAPE);
|
|
65
|
+
}, S = () => {
|
|
66
|
+
l(u.SHOW_MORE);
|
|
59
67
|
}, E = {
|
|
60
68
|
[u.SELECT]: d,
|
|
61
|
-
[u.SHOW_MORE]:
|
|
69
|
+
[u.SHOW_MORE]: S,
|
|
62
70
|
[u.TAB]: f,
|
|
63
|
-
[u.SPACE]:
|
|
71
|
+
[u.SPACE]: B,
|
|
64
72
|
[u.ENTER]: O
|
|
65
73
|
};
|
|
66
74
|
return {
|
|
@@ -69,11 +77,11 @@ const ye = {
|
|
|
69
77
|
internalSelectedValue: n,
|
|
70
78
|
// Methods
|
|
71
79
|
listeners: E,
|
|
72
|
-
onEscapeKey:
|
|
80
|
+
onEscapeKey: I,
|
|
73
81
|
onOutsideDropdownClick: g
|
|
74
82
|
};
|
|
75
83
|
}, ft = z({
|
|
76
|
-
i18n: { messages:
|
|
84
|
+
i18n: { messages: be },
|
|
77
85
|
name: "bento-dropdown-options-container"
|
|
78
86
|
}), pt = /* @__PURE__ */ z({
|
|
79
87
|
...ft,
|
|
@@ -171,7 +179,7 @@ const ye = {
|
|
|
171
179
|
* Reference to the DOM element or Vue component for positioning
|
|
172
180
|
* the Dropdown container.
|
|
173
181
|
*/
|
|
174
|
-
targetElement: { type:
|
|
182
|
+
targetElement: { type: Se.props.targetElement.type, required: !0 },
|
|
175
183
|
/**
|
|
176
184
|
* Enables virtual scrolling if set to true or by providing an object with itemHeight function.
|
|
177
185
|
* The itemHeight function is used to calculate the height of rendered item given it's index.
|
|
@@ -181,23 +189,23 @@ const ye = {
|
|
|
181
189
|
default: !1
|
|
182
190
|
}
|
|
183
191
|
},
|
|
184
|
-
setup(t, { expose:
|
|
185
|
-
const
|
|
192
|
+
setup(t, { expose: a, emit: s }) {
|
|
193
|
+
const l = Ee(), n = s, e = t, { selectedValue: i, multiple: m } = Ce(e), r = $(null), { t: g } = ye({ messages: be }), p = c(() => e.open && !e.disabled), d = c(() => g("noOptionsMatchThisSearch")), f = c(() => ({
|
|
186
194
|
"b-dropdown-options-container--single": !(e != null && e.multiple)
|
|
187
195
|
})), O = c(() => ({
|
|
188
196
|
"b-dropdown-options-container__listbox--single": !(e != null && e.multiple)
|
|
189
|
-
})), { actions:
|
|
190
|
-
var
|
|
197
|
+
})), { actions: B, internalSelectedValue: I, listeners: S, onEscapeKey: E, onOutsideDropdownClick: h } = ct(i, m, p, n), v = c(() => e != null && e.multiple ? ut : Se), b = c(() => {
|
|
198
|
+
var w;
|
|
191
199
|
const L = {
|
|
192
|
-
"min-width": `${(
|
|
200
|
+
"min-width": `${(w = e == null ? void 0 : e.targetElement) == null ? void 0 : w.clientWidth}px`,
|
|
193
201
|
"max-width": "min(500px, 95%)"
|
|
194
202
|
};
|
|
195
203
|
return e != null && e.multiple ? {
|
|
196
204
|
actionsLayout: "space-between",
|
|
197
|
-
actions:
|
|
205
|
+
actions: B.value,
|
|
198
206
|
divider: !0,
|
|
199
207
|
fallbackPosition: ["top-start"],
|
|
200
|
-
id:
|
|
208
|
+
id: V(`dropdown-options-${e.id}`),
|
|
201
209
|
open: e.open,
|
|
202
210
|
position: "bottom-start",
|
|
203
211
|
style: {
|
|
@@ -216,21 +224,21 @@ const ye = {
|
|
|
216
224
|
targetElement: e.targetElement
|
|
217
225
|
};
|
|
218
226
|
});
|
|
219
|
-
return
|
|
227
|
+
return a({
|
|
220
228
|
onOutsideDropdownClick: h
|
|
221
|
-
}), (L,
|
|
229
|
+
}), (L, w) => (x(), P(Be(v.value), N({
|
|
222
230
|
class: ["b-dropdown-options-container", f.value],
|
|
223
231
|
"aria-label": t.ariaLabel
|
|
224
|
-
},
|
|
232
|
+
}, b.value), {
|
|
225
233
|
default: F(() => [
|
|
226
234
|
ee("div", {
|
|
227
|
-
onKeydown:
|
|
235
|
+
onKeydown: w[0] || (w[0] = Ye(
|
|
228
236
|
//@ts-ignore
|
|
229
237
|
(...W) => o(E) && o(E)(...W),
|
|
230
238
|
["esc"]
|
|
231
239
|
))
|
|
232
240
|
}, [
|
|
233
|
-
Q(o(me),
|
|
241
|
+
Q(o(me), N({
|
|
234
242
|
id: t.id,
|
|
235
243
|
ref_key: "dropdownOptionsListboxRef",
|
|
236
244
|
ref: r,
|
|
@@ -239,8 +247,8 @@ const ye = {
|
|
|
239
247
|
"empty-state": t.emptyState,
|
|
240
248
|
"is-option-disabled": t.isOptionDisabled,
|
|
241
249
|
items: t.items,
|
|
242
|
-
"selected-value": o(
|
|
243
|
-
multiple: o(
|
|
250
|
+
"selected-value": o(I),
|
|
251
|
+
multiple: o(m),
|
|
244
252
|
"static-categories": t.staticCategories,
|
|
245
253
|
"no-results-message": d.value,
|
|
246
254
|
searching: t.searching,
|
|
@@ -248,8 +256,8 @@ const ye = {
|
|
|
248
256
|
"lazy-load-type": t.lazyLoadType,
|
|
249
257
|
"has-more-items": t.hasMoreItems,
|
|
250
258
|
"virtual-scroll": t.virtualScroll
|
|
251
|
-
}, _(o(
|
|
252
|
-
de(o(
|
|
259
|
+
}, _(o(S))), re({ _: 2 }, [
|
|
260
|
+
de(o(l), (W, j) => ({
|
|
253
261
|
name: j,
|
|
254
262
|
fn: F((te) => [
|
|
255
263
|
X(L.$slots, j, ue(ce(te)), void 0, !0)
|
|
@@ -262,36 +270,36 @@ const ye = {
|
|
|
262
270
|
}, 16, ["aria-label", "class"]));
|
|
263
271
|
}
|
|
264
272
|
}), mt = /* @__PURE__ */ Y(pt, [["__scopeId", "data-v-cac3da66"]]);
|
|
265
|
-
let
|
|
273
|
+
let we = 0;
|
|
266
274
|
const vt = {
|
|
267
275
|
beforeCreate() {
|
|
268
|
-
this.uuid =
|
|
276
|
+
this.uuid = we.toString(), we += 1;
|
|
269
277
|
}
|
|
270
|
-
},
|
|
271
|
-
function
|
|
272
|
-
return x(), k("svg",
|
|
278
|
+
}, yt = { key: 0 };
|
|
279
|
+
function bt(t, a, s, l, n, e) {
|
|
280
|
+
return x(), k("svg", N({ role: "img" }, t.$attrs, {
|
|
273
281
|
class: "ui-assets-icons-16",
|
|
274
282
|
xmlns: "http://www.w3.org/2000/svg",
|
|
275
283
|
width: "16",
|
|
276
284
|
height: "16",
|
|
277
285
|
fill: "none"
|
|
278
286
|
}), [
|
|
279
|
-
t.$attrs["svg-title"] ? (x(), k("title",
|
|
280
|
-
|
|
287
|
+
t.$attrs["svg-title"] ? (x(), k("title", yt, ve(t.$attrs["svg-title"]), 1)) : K("", !0),
|
|
288
|
+
a[0] || (a[0] = ee("path", {
|
|
281
289
|
fill: "#00112C",
|
|
282
290
|
d: "M5.00011 5.43922L8.00011 8.43922L11.0001 5.43922L12.0608 6.49988L8.00011 10.5605L3.93945 6.49988L5.00011 5.43922Z"
|
|
283
291
|
}, null, -1))
|
|
284
292
|
], 16);
|
|
285
293
|
}
|
|
286
|
-
const gt = /* @__PURE__ */ Y(vt, [["render",
|
|
294
|
+
const gt = /* @__PURE__ */ Y(vt, [["render", bt]]);
|
|
287
295
|
let $e = 0;
|
|
288
296
|
const ht = {
|
|
289
297
|
beforeCreate() {
|
|
290
298
|
this.uuid = $e.toString(), $e += 1;
|
|
291
299
|
}
|
|
292
300
|
}, xt = { key: 0 };
|
|
293
|
-
function Lt(t,
|
|
294
|
-
return x(), k("svg",
|
|
301
|
+
function Lt(t, a, s, l, n, e) {
|
|
302
|
+
return x(), k("svg", N({ role: "img" }, t.$attrs, {
|
|
295
303
|
class: "ui-assets-icons-16",
|
|
296
304
|
xmlns: "http://www.w3.org/2000/svg",
|
|
297
305
|
width: "16",
|
|
@@ -299,13 +307,13 @@ function Lt(t, l, s, a, n, e) {
|
|
|
299
307
|
fill: "none"
|
|
300
308
|
}), [
|
|
301
309
|
t.$attrs["svg-title"] ? (x(), k("title", xt, ve(t.$attrs["svg-title"]), 1)) : K("", !0),
|
|
302
|
-
|
|
310
|
+
a[0] || (a[0] = ee("path", {
|
|
303
311
|
fill: "#00112C",
|
|
304
312
|
d: "M10.9999 10.5608L7.9999 7.56077L4.9999 10.5608L3.93924 9.50011L7.9999 5.43945L12.0606 9.50011L10.9999 10.5608Z"
|
|
305
313
|
}, null, -1))
|
|
306
314
|
], 16);
|
|
307
315
|
}
|
|
308
|
-
const
|
|
316
|
+
const St = /* @__PURE__ */ Y(ht, [["render", Lt]]), wt = { class: "b-dropdown-small-textbox__chevron" }, $t = z({
|
|
309
317
|
name: "dropdown-small-textbox",
|
|
310
318
|
inheritAttrs: !1
|
|
311
319
|
}), Ot = /* @__PURE__ */ z({
|
|
@@ -369,14 +377,14 @@ const wt = /* @__PURE__ */ Y(ht, [["render", Lt]]), St = { class: "b-dropdown-sm
|
|
|
369
377
|
value: { type: String, default: "" }
|
|
370
378
|
},
|
|
371
379
|
emits: ["clear", "close", "input", "keydown", "open"],
|
|
372
|
-
setup(t, { emit:
|
|
373
|
-
const s =
|
|
374
|
-
[`b-dropdown-small-textbox--${ne.DISABLED}`]:
|
|
375
|
-
[`b-dropdown-small-textbox--${ne.READONLY}`]:
|
|
376
|
-
[`b-dropdown-small-textbox--${ne.OPENED}`]:
|
|
377
|
-
})), e = c(() =>
|
|
380
|
+
setup(t, { emit: a }) {
|
|
381
|
+
const s = a, l = t, n = c(() => ({
|
|
382
|
+
[`b-dropdown-small-textbox--${ne.DISABLED}`]: l.disabled,
|
|
383
|
+
[`b-dropdown-small-textbox--${ne.READONLY}`]: l.readonly,
|
|
384
|
+
[`b-dropdown-small-textbox--${ne.OPENED}`]: l.open
|
|
385
|
+
})), e = c(() => l.open && !l.disabled && !l.readonly), i = (f) => {
|
|
378
386
|
s("input", f);
|
|
379
|
-
},
|
|
387
|
+
}, m = (f) => {
|
|
380
388
|
s("keydown", f);
|
|
381
389
|
}, r = (f) => {
|
|
382
390
|
ie(f), s("open");
|
|
@@ -389,18 +397,18 @@ const wt = /* @__PURE__ */ Y(ht, [["render", Lt]]), St = { class: "b-dropdown-sm
|
|
|
389
397
|
[H.OPEN]: r,
|
|
390
398
|
[H.CLOSE]: g,
|
|
391
399
|
[H.CLEAR]: p,
|
|
392
|
-
[H.KEYDOWN]:
|
|
400
|
+
[H.KEYDOWN]: m
|
|
393
401
|
};
|
|
394
402
|
return (f, O) => (x(), k("div", {
|
|
395
403
|
class: fe(["b-dropdown-small-textbox", n.value])
|
|
396
404
|
}, [
|
|
397
|
-
Q(
|
|
405
|
+
Q(at, N({ ...f.$attrs, ...f.$props }, {
|
|
398
406
|
class: "b-dropdown-small-textbox__textbox",
|
|
399
|
-
size: o(
|
|
407
|
+
size: o(J).SMALL
|
|
400
408
|
}, _(d)), {
|
|
401
409
|
icon: F(() => [
|
|
402
|
-
ee("div",
|
|
403
|
-
G(Q(o(
|
|
410
|
+
ee("div", wt, [
|
|
411
|
+
G(Q(o(St), { "svg-title": "opened" }, null, 512), [
|
|
404
412
|
[xe, e.value]
|
|
405
413
|
]),
|
|
406
414
|
G(Q(o(gt), { "svg-title": "closed" }, null, 512), [
|
|
@@ -412,99 +420,101 @@ const wt = /* @__PURE__ */ Y(ht, [["render", Lt]]), St = { class: "b-dropdown-sm
|
|
|
412
420
|
}, 16, ["size"])
|
|
413
421
|
], 2));
|
|
414
422
|
}
|
|
415
|
-
}), Et = /* @__PURE__ */ Y(Ot, [["__scopeId", "data-v-2fa2d897"]]), Ct = (t,
|
|
416
|
-
if (
|
|
417
|
-
const n =
|
|
418
|
-
(i) => t.value.find((
|
|
423
|
+
}), Et = /* @__PURE__ */ Y(Ot, [["__scopeId", "data-v-2fa2d897"]]), Ct = (t, a) => a.value.reduce((s, l) => {
|
|
424
|
+
if (l.items) {
|
|
425
|
+
const n = l.items.filter(
|
|
426
|
+
(i) => t.value.find((m) => m.value === i.value)
|
|
419
427
|
);
|
|
420
|
-
n.length ===
|
|
428
|
+
n.length === l.items.length ? s.push(l.label) : n.forEach(({ label: i }) => s.push(i));
|
|
421
429
|
}
|
|
422
|
-
return t.value.find((n) => n.value ===
|
|
423
|
-
}, []).join(", "), Bt = ({ items: t, placeholder:
|
|
424
|
-
const
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
430
|
+
return t.value.find((n) => n.value === l.value) && s.push(l.label), s;
|
|
431
|
+
}, []).join(", "), Bt = ({ items: t, placeholder: a, selectedValues: s, isMultiSelect: l }) => {
|
|
432
|
+
const n = c(
|
|
433
|
+
() => l.value && t.value.find((i) => {
|
|
434
|
+
var m;
|
|
435
|
+
return (m = i.items) == null ? void 0 : m.length;
|
|
436
|
+
})
|
|
437
|
+
);
|
|
438
|
+
return c(() => s.value.length ? n.value ? Ct(s, t) : s.value.map(({ label: i }) => i).join(", ") : a.value || null);
|
|
429
439
|
}, Ie = (t) => {
|
|
430
|
-
var
|
|
431
|
-
(
|
|
440
|
+
var a;
|
|
441
|
+
(a = t.value.$children) == null || a[0].$refs.textbox.focus();
|
|
432
442
|
}, It = ({
|
|
433
443
|
inputContainerRef: t,
|
|
434
|
-
optionsContainerRef:
|
|
444
|
+
optionsContainerRef: a,
|
|
435
445
|
selectedValueIndex: s,
|
|
436
|
-
isDropdownOpen:
|
|
446
|
+
isDropdownOpen: l,
|
|
437
447
|
isDynamicFltering: n,
|
|
438
448
|
items: e,
|
|
439
449
|
isMultiple: i
|
|
440
|
-
},
|
|
441
|
-
const p = ({ detail:
|
|
442
|
-
|
|
443
|
-
var
|
|
444
|
-
i ? (
|
|
450
|
+
}, m, r, g) => {
|
|
451
|
+
const p = ({ detail: v }) => {
|
|
452
|
+
v.preventDefault(), l.value || r(), M(() => {
|
|
453
|
+
var b;
|
|
454
|
+
i ? (b = a.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || b[0].$el.focus() : (a.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.setListboxFocusedIndex(
|
|
445
455
|
s.value
|
|
446
|
-
),
|
|
456
|
+
), a.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.listboxItemRef[s.value].$el.focus());
|
|
447
457
|
});
|
|
448
|
-
}, d = ({ detail:
|
|
449
|
-
|
|
450
|
-
|
|
458
|
+
}, d = ({ detail: v }) => {
|
|
459
|
+
v.preventDefault(), l.value || r(), M(() => {
|
|
460
|
+
a.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.setListboxFocusedIndex(
|
|
451
461
|
s.value
|
|
452
|
-
),
|
|
462
|
+
), a.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.listboxItemRef[s.value].$el.focus();
|
|
453
463
|
});
|
|
454
464
|
}, f = () => {
|
|
455
|
-
|
|
456
|
-
var
|
|
465
|
+
l.value || (r(), M(() => {
|
|
466
|
+
var v, b;
|
|
457
467
|
if (i) {
|
|
458
|
-
const L =
|
|
459
|
-
(
|
|
468
|
+
const L = a.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children;
|
|
469
|
+
(v = a.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || v[L.length - 1].$children[e.length - 1].$el.focus();
|
|
460
470
|
} else
|
|
461
|
-
(
|
|
471
|
+
(b = a.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || b[e.length - 1].$el.focus();
|
|
462
472
|
}));
|
|
463
473
|
}, O = () => {
|
|
464
|
-
|
|
465
|
-
}, C = () => {
|
|
466
|
-
a.value && g();
|
|
474
|
+
l.value && (g(), Ie(t));
|
|
467
475
|
}, B = () => {
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
476
|
+
l.value && g();
|
|
477
|
+
}, I = () => {
|
|
478
|
+
l.value || r(), M(() => {
|
|
479
|
+
var v;
|
|
480
|
+
(v = a.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || v[0].$el.focus();
|
|
471
481
|
});
|
|
472
|
-
},
|
|
473
|
-
|
|
474
|
-
var
|
|
475
|
-
i ? (
|
|
482
|
+
}, S = ({ detail: v }) => {
|
|
483
|
+
v.preventDefault(), m(), l.value && M(() => {
|
|
484
|
+
var b, L;
|
|
485
|
+
i ? (b = a.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || b[0].$el.focus() : (L = a.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || L[s.value].$el.focus();
|
|
476
486
|
});
|
|
477
487
|
}, E = () => {
|
|
478
|
-
|
|
479
|
-
var
|
|
480
|
-
i ? (
|
|
488
|
+
m(), l.value && M(() => {
|
|
489
|
+
var v, b;
|
|
490
|
+
i ? (v = a.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || v[0].$el.focus() : (b = a.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || b[s.value].$el.focus();
|
|
481
491
|
});
|
|
482
492
|
};
|
|
483
493
|
return c(() => ({
|
|
484
|
-
...n.value ? {} : { [T.SPACE]:
|
|
494
|
+
...n.value ? {} : { [T.SPACE]: S },
|
|
485
495
|
[T.ENTER]: E,
|
|
486
496
|
[T.ARROW_DOWN]: p,
|
|
487
497
|
[T.ARROW_UP]: d,
|
|
488
498
|
[T.END]: f,
|
|
489
499
|
[T.ESCAPE]: O,
|
|
490
|
-
[T.HOME]:
|
|
491
|
-
[T.TAB]:
|
|
500
|
+
[T.HOME]: I,
|
|
501
|
+
[T.TAB]: B
|
|
492
502
|
}));
|
|
493
|
-
}, Dt = ({ inputContainerRef: t, isDropdownOpen:
|
|
494
|
-
const
|
|
495
|
-
|
|
503
|
+
}, Dt = ({ inputContainerRef: t, isDropdownOpen: a }, s) => {
|
|
504
|
+
const l = () => {
|
|
505
|
+
a.value && s(), M(() => {
|
|
496
506
|
Ie(t);
|
|
497
507
|
});
|
|
498
508
|
};
|
|
499
509
|
return {
|
|
500
|
-
[u.ENTER]:
|
|
501
|
-
[u.ESCAPE]:
|
|
502
|
-
[u.TAB]:
|
|
503
|
-
[u.SPACE]:
|
|
510
|
+
[u.ENTER]: l,
|
|
511
|
+
[u.ESCAPE]: l,
|
|
512
|
+
[u.TAB]: l,
|
|
513
|
+
[u.SPACE]: l
|
|
504
514
|
};
|
|
505
515
|
};
|
|
506
|
-
function Rt(t,
|
|
507
|
-
const n = $(t), e = $(
|
|
516
|
+
function Rt(t, a, s, l) {
|
|
517
|
+
const n = $(t), e = $(a), i = (r, g = []) => g.flatMap((p) => p.label.toLocaleLowerCase().includes(r) ? l != null && l.value && p.items ? [...i(r, p.items)] : [p, ...i(r, p.items)] : p.items ? [...i(r, p.items)] : []);
|
|
508
518
|
return Oe(n, () => {
|
|
509
519
|
s !== void 0 && s(n.value);
|
|
510
520
|
}), c(() => {
|
|
@@ -519,15 +529,23 @@ const De = {
|
|
|
519
529
|
all: "All",
|
|
520
530
|
clearSearch: "Clear filter",
|
|
521
531
|
ariaLabelFallback: "Dropdown"
|
|
532
|
+
},
|
|
533
|
+
"pt-BR": {
|
|
534
|
+
all: "Todos",
|
|
535
|
+
clearFilter: "Limpar filtro"
|
|
536
|
+
},
|
|
537
|
+
"ja-JP": {
|
|
538
|
+
all: "すべて",
|
|
539
|
+
clearFilter: "フィルターをクリア"
|
|
522
540
|
}
|
|
523
541
|
}, Tt = Symbol("input field component injection key"), At = z({
|
|
524
542
|
i18n: { messages: De },
|
|
525
543
|
name: "b-dropdown",
|
|
526
544
|
components: {
|
|
527
|
-
DropdownInputDefault:
|
|
545
|
+
DropdownInputDefault: ot,
|
|
528
546
|
DropdownInputSmall: Et
|
|
529
547
|
}
|
|
530
|
-
}),
|
|
548
|
+
}), Mt = /* @__PURE__ */ z({
|
|
531
549
|
...At,
|
|
532
550
|
props: {
|
|
533
551
|
/**
|
|
@@ -656,7 +674,7 @@ const De = {
|
|
|
656
674
|
size: {
|
|
657
675
|
type: String,
|
|
658
676
|
default: null,
|
|
659
|
-
validator: (t) => Object.values(
|
|
677
|
+
validator: (t) => Object.values(J).includes(t)
|
|
660
678
|
},
|
|
661
679
|
/**
|
|
662
680
|
* If enabled, dropdown will display non-selectable, static categories
|
|
@@ -685,59 +703,60 @@ const De = {
|
|
|
685
703
|
}
|
|
686
704
|
},
|
|
687
705
|
emits: ["input", "show-more"],
|
|
688
|
-
setup(t, { emit:
|
|
706
|
+
setup(t, { emit: a }) {
|
|
689
707
|
var he;
|
|
690
|
-
const s = Ze(),
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
),
|
|
708
|
+
const s = Ze(), l = Ee(), n = it(l), e = t, i = a, { t: m } = ye({ messages: De }), r = $(null), g = $(null), p = $(null), d = $(!1), f = V("bento-dropdown-options-container"), O = V("dropdown-label"), B = V("dropdown-description"), I = V("dropdown-error"), { isReadOnly: S } = et(C(e, "readonly")), { cachedSelectedListboxOptions: E, cachedListboxSelectedValues: h, setCachedValues: v } = st(
|
|
709
|
+
C(e, "items"),
|
|
710
|
+
C(e, "value"),
|
|
711
|
+
C(e, "multiple")
|
|
712
|
+
), b = $(s["aria-label"]), { ariaLabel: L, label: w } = Ce(e), W = Ge({
|
|
695
713
|
// TODO: take ariaLabel ref away when aria-label prop is removed
|
|
696
|
-
ariaLabel: L ||
|
|
697
|
-
label:
|
|
698
|
-
defaultFallback:
|
|
699
|
-
}), j = e.size ===
|
|
714
|
+
ariaLabel: L || b,
|
|
715
|
+
label: w,
|
|
716
|
+
defaultFallback: m("ariaLabelFallback")
|
|
717
|
+
}), j = e.size === J.SMALL || Qe(Tt, !1), te = c(() => j ? J.SMALL : J.DEFAULT), Re = c(() => ({
|
|
700
718
|
"b-dropdown--condensed": e.condensed
|
|
701
719
|
})), Te = c(() => ({
|
|
702
720
|
"b-dropdown__description--error": !!e.errorMessage
|
|
703
|
-
})), A = $(""), Z =
|
|
721
|
+
})), A = $(""), Z = C(e, "items"), ge = C(e, "staticCategories"), Ae = Rt(A, Z, (he = e == null ? void 0 : e.search) == null ? void 0 : he.searchEvent, ge), le = c(() => e.dynamicFiltering && !!A.value), Me = Bt({
|
|
704
722
|
items: Z,
|
|
705
|
-
placeholder:
|
|
723
|
+
placeholder: C(e, "placeholder"),
|
|
724
|
+
isMultiSelect: C(e, "multiple"),
|
|
706
725
|
selectedValues: E
|
|
707
|
-
}),
|
|
726
|
+
}), Ne = c(() => {
|
|
708
727
|
if (e != null && e.multiple && Array.isArray(e.value))
|
|
709
728
|
return e.items.filter(
|
|
710
|
-
({ value:
|
|
729
|
+
({ value: y }) => (e == null ? void 0 : e.value) && (e == null ? void 0 : e.value).includes(y)
|
|
711
730
|
);
|
|
712
731
|
if (!e.multiple && e.staticCategories) {
|
|
713
|
-
const
|
|
714
|
-
(
|
|
732
|
+
const y = e.items.find(
|
|
733
|
+
(R) => R.items.some((U) => U.value === e.value)
|
|
715
734
|
);
|
|
716
|
-
return
|
|
735
|
+
return y ? y.items.find((R) => R.value === e.value) : null;
|
|
717
736
|
}
|
|
718
|
-
return e.items.find(({ value:
|
|
737
|
+
return e.items.find(({ value: y }) => y === (e == null ? void 0 : e.value));
|
|
719
738
|
}), ke = c(() => {
|
|
720
|
-
const
|
|
721
|
-
return
|
|
739
|
+
const y = e.items.findIndex(({ value: D }) => e.value === D);
|
|
740
|
+
return y > 0 ? y : 0;
|
|
722
741
|
}), { isMultiLevelSelect: Pe, flattenedItemsList: Ke } = nt(Z), Fe = c(() => {
|
|
723
|
-
var
|
|
742
|
+
var y;
|
|
724
743
|
if (e.multiple) {
|
|
725
|
-
const
|
|
726
|
-
return !e.hasMoreItems &&
|
|
744
|
+
const D = (y = e == null ? void 0 : e.value) == null ? void 0 : y.length, R = Pe.value ? Ke.value.length : Z.value.length;
|
|
745
|
+
return !e.hasMoreItems && R === D ? m("all") : D;
|
|
727
746
|
}
|
|
728
747
|
return null;
|
|
729
748
|
}), ze = c(
|
|
730
|
-
() => `${e.description ?
|
|
749
|
+
() => `${e.description ? B : ""} ${e.errorMessage ? I : ""}`.trim() || null
|
|
731
750
|
), We = () => {
|
|
732
|
-
|
|
733
|
-
},
|
|
751
|
+
S.value || (d.value = !0);
|
|
752
|
+
}, ae = () => {
|
|
734
753
|
d.value = !1;
|
|
735
754
|
}, oe = () => {
|
|
736
|
-
|
|
755
|
+
S.value || (d.value = !d.value, le.value && (A.value = ""));
|
|
737
756
|
}, je = () => {
|
|
738
|
-
|
|
739
|
-
}, Ue = (
|
|
740
|
-
e.multiple || (A.value = "", d.value = !1),
|
|
757
|
+
le.value && (A.value = ""), d.value && (d.value = !1, p.value.onOutsideDropdownClick());
|
|
758
|
+
}, Ue = (y) => {
|
|
759
|
+
e.multiple || (A.value = "", d.value = !1), v(y), i("input", h.value);
|
|
741
760
|
}, qe = () => {
|
|
742
761
|
i(u.SHOW_MORE);
|
|
743
762
|
}, He = It(
|
|
@@ -746,21 +765,21 @@ const De = {
|
|
|
746
765
|
optionsContainerRef: p,
|
|
747
766
|
selectedValueIndex: ke,
|
|
748
767
|
isDropdownOpen: d,
|
|
749
|
-
isDynamicFltering:
|
|
768
|
+
isDynamicFltering: C(e, "dynamicFiltering"),
|
|
750
769
|
items: e.items,
|
|
751
770
|
isMultiple: e.multiple
|
|
752
771
|
},
|
|
753
772
|
oe,
|
|
754
773
|
We,
|
|
755
|
-
|
|
774
|
+
ae
|
|
756
775
|
), Ve = Dt(
|
|
757
776
|
{
|
|
758
777
|
inputContainerRef: r,
|
|
759
778
|
isDropdownOpen: d
|
|
760
779
|
},
|
|
761
|
-
|
|
780
|
+
ae
|
|
762
781
|
), Je = {
|
|
763
|
-
[u.CLOSE_DROPDOWN]:
|
|
782
|
+
[u.CLOSE_DROPDOWN]: ae,
|
|
764
783
|
[u.SELECT]: Ue,
|
|
765
784
|
[u.SHOW_MORE]: qe,
|
|
766
785
|
...Ve
|
|
@@ -771,21 +790,21 @@ const De = {
|
|
|
771
790
|
Having the field as "undefined" will hide/remove the error.
|
|
772
791
|
<bento-dropdown errorMessage="Error message text" />`,
|
|
773
792
|
"2.0.0"
|
|
774
|
-
), e.size && Le('BentoDropdown "size" property', "Do not use. Only 'default' size should be used.", "2.0.0"), (
|
|
775
|
-
var
|
|
793
|
+
), e.size && Le('BentoDropdown "size" property', "Do not use. Only 'default' size should be used.", "2.0.0"), (y, D) => {
|
|
794
|
+
var R;
|
|
776
795
|
return G((x(), k("div", {
|
|
777
796
|
class: fe(["b-dropdown", Re.value])
|
|
778
797
|
}, [
|
|
779
|
-
o(
|
|
798
|
+
o(w) ? (x(), P(o(rt), {
|
|
780
799
|
key: 0,
|
|
781
800
|
id: o(O),
|
|
782
801
|
condensed: t.condensed,
|
|
783
|
-
label: o(
|
|
802
|
+
label: o(w),
|
|
784
803
|
"tooltip-text": t.tooltipText,
|
|
785
804
|
optional: t.optional,
|
|
786
805
|
required: t.required
|
|
787
806
|
}, null, 8, ["id", "condensed", "label", "tooltip-text", "optional", "required"])) : K("", !0),
|
|
788
|
-
G((x(), k("div",
|
|
807
|
+
G((x(), k("div", N({
|
|
789
808
|
ref_key: "inputContainerRefWrapper",
|
|
790
809
|
ref: g
|
|
791
810
|
}, _(o(He), !0)), [
|
|
@@ -797,41 +816,41 @@ const De = {
|
|
|
797
816
|
"additional-items-selected": Fe.value,
|
|
798
817
|
ariaControls: o(f),
|
|
799
818
|
ariaExpanded: d.value,
|
|
800
|
-
"aria-labelledby": o(
|
|
819
|
+
"aria-labelledby": o(w) ? o(O) : null,
|
|
801
820
|
"aria-describedby": ze.value,
|
|
802
821
|
"aria-label": o(W),
|
|
803
|
-
"aria-readonly": o(
|
|
804
|
-
readonly: o(
|
|
822
|
+
"aria-readonly": o(S),
|
|
823
|
+
readonly: o(S),
|
|
805
824
|
disabled: t.disabled,
|
|
806
|
-
"display-value": o(
|
|
825
|
+
"display-value": o(Me),
|
|
807
826
|
"dynamic-filtering": t.dynamicFiltering,
|
|
808
827
|
"is-invalid": !!t.errorMessage || t.error,
|
|
809
828
|
multiple: t.multiple,
|
|
810
829
|
open: d.value,
|
|
811
|
-
"selected-value-item": o(j) ? void 0 :
|
|
830
|
+
"selected-value-item": o(j) ? void 0 : Ne.value,
|
|
812
831
|
"show-slot-content-in-multiple": t.showSlotContentInMultiple,
|
|
813
|
-
onInput:
|
|
832
|
+
onInput: D[0] || (D[0] = (U) => A.value = U),
|
|
814
833
|
onOpen: oe,
|
|
815
834
|
onClose: oe
|
|
816
835
|
}, re({ _: 2 }, [
|
|
817
|
-
de(o(
|
|
836
|
+
de(o(l), (U, q) => ({
|
|
818
837
|
name: q,
|
|
819
838
|
fn: F((se) => [
|
|
820
|
-
X(
|
|
839
|
+
X(y.$slots, q, ue(ce(se)), void 0, !0)
|
|
821
840
|
])
|
|
822
841
|
}))
|
|
823
842
|
]), 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"]))
|
|
824
843
|
], 16)), [
|
|
825
|
-
[o(
|
|
844
|
+
[o(lt)]
|
|
826
845
|
]),
|
|
827
|
-
r.value ? (x(), P(o(mt),
|
|
846
|
+
r.value ? (x(), P(o(mt), N({
|
|
828
847
|
key: 1,
|
|
829
848
|
id: o(f),
|
|
830
849
|
ref_key: "optionsContainerRef",
|
|
831
850
|
ref: p,
|
|
832
851
|
"aria-label": o(W),
|
|
833
852
|
"empty-state": t.emptyState,
|
|
834
|
-
"debounce-time": (
|
|
853
|
+
"debounce-time": (R = t.search) == null ? void 0 : R.debounceTime,
|
|
835
854
|
disabled: t.disabled,
|
|
836
855
|
"is-option-disabled": t.isOptionDisabled,
|
|
837
856
|
items: o(Ae),
|
|
@@ -839,48 +858,48 @@ const De = {
|
|
|
839
858
|
"static-categories": ge.value,
|
|
840
859
|
open: d.value,
|
|
841
860
|
"selected-value": o(E),
|
|
842
|
-
searching:
|
|
861
|
+
searching: le.value,
|
|
843
862
|
"target-element": g.value,
|
|
844
863
|
loading: t.loading,
|
|
845
864
|
"has-more-items": t.hasMoreItems,
|
|
846
865
|
"lazy-load-type": t.lazyLoadType,
|
|
847
866
|
"virtual-scroll": t.virtualScroll
|
|
848
867
|
}, _(Je)), re({ _: 2 }, [
|
|
849
|
-
de(o(
|
|
868
|
+
de(o(l), (U, q) => ({
|
|
850
869
|
name: q,
|
|
851
870
|
fn: F((se) => [
|
|
852
|
-
X(
|
|
871
|
+
X(y.$slots, q, ue(ce(se)), void 0, !0)
|
|
853
872
|
])
|
|
854
873
|
}))
|
|
855
874
|
]), 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"])) : K("", !0),
|
|
856
875
|
t.errorMessage ? (x(), P(o(dt), {
|
|
857
876
|
key: 2,
|
|
858
|
-
id: o(
|
|
877
|
+
id: o(I),
|
|
859
878
|
"error-message": t.errorMessage,
|
|
860
879
|
class: "b-dropdown__error-message"
|
|
861
880
|
}, null, 8, ["id", "error-message"])) : K("", !0),
|
|
862
881
|
t.description || o(n)("description") ? (x(), P(o(_e), {
|
|
863
882
|
key: 3,
|
|
864
|
-
id: o(
|
|
883
|
+
id: o(B),
|
|
865
884
|
class: fe(["b-dropdown__description", Te.value]),
|
|
866
885
|
el: "span"
|
|
867
886
|
}, {
|
|
868
887
|
default: F(() => [
|
|
869
|
-
X(
|
|
888
|
+
X(y.$slots, "description", {}, () => [
|
|
870
889
|
Xe(ve(t.description), 1)
|
|
871
890
|
], !0)
|
|
872
891
|
]),
|
|
873
892
|
_: 3
|
|
874
893
|
}, 8, ["id", "class"])) : K("", !0)
|
|
875
894
|
], 2)), [
|
|
876
|
-
[o(
|
|
895
|
+
[o(tt), je]
|
|
877
896
|
]);
|
|
878
897
|
};
|
|
879
898
|
}
|
|
880
|
-
}), Xt = /* @__PURE__ */ Y(
|
|
899
|
+
}), Xt = /* @__PURE__ */ Y(Mt, [["__scopeId", "data-v-588a69e8"]]);
|
|
881
900
|
export {
|
|
882
901
|
Xt as B,
|
|
883
902
|
Tt as I,
|
|
884
903
|
Rt as u
|
|
885
904
|
};
|
|
886
|
-
//# sourceMappingURL=dropdown.
|
|
905
|
+
//# sourceMappingURL=dropdown.rFZp3hMb.js.map
|