@adyen/bento-vue3 1.65.0 → 1.67.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/index.d.ts +499 -250
- 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/copy.css +1 -1
- package/dist/assets/data-grid-template.css +1 -1
- package/dist/assets/data-grid.css +1 -1
- package/dist/assets/date-range-picker.css +1 -1
- package/dist/assets/date.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/footer-actions.css +1 -1
- package/dist/assets/header-with-views.css +1 -1
- package/dist/assets/header.css +1 -1
- package/dist/assets/info-icon.css +1 -1
- package/dist/assets/input-field-password.css +1 -1
- package/dist/assets/input-field.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/pagination.css +1 -1
- package/dist/assets/popover.css +1 -1
- package/dist/assets/sidepanel.css +1 -1
- package/dist/assets/step.css +1 -1
- package/dist/assets/summary-grid.css +1 -1
- package/dist/assets/tab.css +1 -0
- package/dist/assets/textarea.css +1 -1
- package/dist/assets/use-cached-selected-values.css +1 -1
- package/dist/button.js +1 -1
- package/dist/card.js +1 -1
- package/dist/checkbox.js +2 -2
- package/dist/chunks/{action-bar.BAfqAQjP.js → action-bar.ComuZPet.js} +38 -38
- package/dist/chunks/action-bar.ComuZPet.js.map +1 -0
- package/dist/chunks/{base-modal.CCwWuH6k.js → base-modal.DzJrvis_.js} +2 -2
- package/dist/chunks/{base-modal.CCwWuH6k.js.map → base-modal.DzJrvis_.js.map} +1 -1
- package/dist/chunks/button-actions-with-menu.B0nWCTwZ.js +91 -0
- package/dist/chunks/button-actions-with-menu.B0nWCTwZ.js.map +1 -0
- package/dist/chunks/{button-actions.D1pXI1AJ.js → button-actions.BwpznQ6c.js} +2 -2
- package/dist/chunks/button-actions.BwpznQ6c.js.map +1 -0
- package/dist/chunks/calendar._oPk_A1C.js +2209 -0
- package/dist/chunks/calendar._oPk_A1C.js.map +1 -0
- package/dist/chunks/{card.DiBtLuRU.js → card.JBOvn2BO.js} +2 -2
- package/dist/chunks/{card.DiBtLuRU.js.map → card.JBOvn2BO.js.map} +1 -1
- package/dist/chunks/{checkbox-group.BKsddn67.js → checkbox-group.Dc5Olq0c.js} +4 -4
- package/dist/chunks/{checkbox-group.BKsddn67.js.map → checkbox-group.Dc5Olq0c.js.map} +1 -1
- package/dist/chunks/{checkbox.C1y3Ad4Z.js → checkbox.fkPJvdUo.js} +2 -2
- package/dist/chunks/{checkbox.C1y3Ad4Z.js.map → checkbox.fkPJvdUo.js.map} +1 -1
- package/dist/chunks/{code-snippet.Bj5SAyT-.js → code-snippet.vrlSqi9k.js} +4 -4
- package/dist/chunks/{code-snippet.Bj5SAyT-.js.map → code-snippet.vrlSqi9k.js.map} +1 -1
- package/dist/chunks/{controls-group.DD1m4EKn.js → controls-group.CrzkSu0U.js} +2 -2
- package/dist/chunks/{controls-group.DD1m4EKn.js.map → controls-group.CrzkSu0U.js.map} +1 -1
- package/dist/chunks/copy.RUoQOydT.js +118 -0
- package/dist/chunks/copy.RUoQOydT.js.map +1 -0
- package/dist/chunks/{dashboard-section.C6FNJuEz.js → dashboard-section.Bg0dfNs-.js} +3 -3
- package/dist/chunks/{dashboard-section.C6FNJuEz.js.map → dashboard-section.Bg0dfNs-.js.map} +1 -1
- package/dist/chunks/{dashed-underline.ywc0ydgS.js → dashed-underline.DgE-UB-x.js} +2 -2
- package/dist/chunks/{dashed-underline.ywc0ydgS.js.map → dashed-underline.DgE-UB-x.js.map} +1 -1
- package/dist/chunks/data-grid-template.Df7j2oxe.js +144 -0
- package/dist/chunks/data-grid-template.Df7j2oxe.js.map +1 -0
- package/dist/chunks/{data-grid.DroQMKSc.js → data-grid.rDZadZwc.js} +370 -368
- package/dist/chunks/data-grid.rDZadZwc.js.map +1 -0
- package/dist/chunks/{date-picker.BuX2J2OW.js → date-picker.CZ6zU-NJ.js} +24 -25
- package/dist/chunks/{date-picker.BuX2J2OW.js.map → date-picker.CZ6zU-NJ.js.map} +1 -1
- package/dist/chunks/date-range-picker.Dw4R9bIs.js +1225 -0
- package/dist/chunks/date-range-picker.Dw4R9bIs.js.map +1 -0
- package/dist/chunks/date.DSjCnSgL.js +163 -0
- package/dist/chunks/date.DSjCnSgL.js.map +1 -0
- package/dist/chunks/{dropdown-default-textbox.B05elQig.js → dropdown-default-textbox.Ce5D3ipi.js} +40 -39
- package/dist/chunks/dropdown-default-textbox.Ce5D3ipi.js.map +1 -0
- package/dist/chunks/{dropdown-tag.Dm-1VD3B.js → dropdown-tag.BlHovDol.js} +2 -2
- package/dist/chunks/{dropdown-tag.Dm-1VD3B.js.map → dropdown-tag.BlHovDol.js.map} +1 -1
- package/dist/chunks/{dropdown.Bj6DK-2v.js → dropdown.B5ZaFDn_.js} +308 -313
- package/dist/chunks/{dropdown.Bj6DK-2v.js.map → dropdown.B5ZaFDn_.js.map} +1 -1
- package/dist/chunks/{error-message.DZWphzoT.js → error-message.DHMHq9bR.js} +2 -2
- package/dist/chunks/{error-message.DZWphzoT.js.map → error-message.DHMHq9bR.js.map} +1 -1
- package/dist/chunks/es6.n1ewaW31.js.map +1 -1
- package/dist/chunks/{file-uploader.C8DwUCMp.js → file-uploader.B_EI2fAc.js} +523 -523
- package/dist/chunks/file-uploader.B_EI2fAc.js.map +1 -0
- package/dist/chunks/{filter-bar.BvInaVGL.js → filter-bar.XonJn7ao.js} +1007 -992
- package/dist/chunks/{filter-bar.BvInaVGL.js.map → filter-bar.XonJn7ao.js.map} +1 -1
- package/dist/chunks/{footer-actions.vQ4flLqU.js → footer-actions.CdJLLWNR.js} +2 -2
- package/dist/chunks/{footer-actions.vQ4flLqU.js.map → footer-actions.CdJLLWNR.js.map} +1 -1
- package/dist/chunks/{get-date-locale.BN8xEjY0.js → get-date-locale.CAyOIbcp.js} +288 -649
- package/dist/chunks/get-date-locale.CAyOIbcp.js.map +1 -0
- package/dist/chunks/{header-with-views.De0oVJXS.js → header-with-views.CHbH1_1V.js} +680 -663
- package/dist/chunks/header-with-views.CHbH1_1V.js.map +1 -0
- package/dist/chunks/{header.Ckjp7n9t.js → header.CJJWPB5Z.js} +63 -62
- package/dist/chunks/{header.Ckjp7n9t.js.map → header.CJJWPB5Z.js.map} +1 -1
- package/dist/chunks/index.BrH1t1iu.js +407 -0
- package/dist/chunks/index.BrH1t1iu.js.map +1 -0
- package/dist/chunks/{info-icon-with-popover.Duk1tj5G.js → info-icon-with-popover.DVH46dPy.js} +2 -2
- package/dist/chunks/{info-icon-with-popover.Duk1tj5G.js.map → info-icon-with-popover.DVH46dPy.js.map} +1 -1
- package/dist/chunks/info-icon.DprUQ9fj.js +36 -0
- package/dist/chunks/info-icon.DprUQ9fj.js.map +1 -0
- package/dist/chunks/input-field-password.DWZAf1Oh.js +370 -0
- package/dist/chunks/input-field-password.DWZAf1Oh.js.map +1 -0
- package/dist/chunks/{input-field-phone-number.DVliTkE3.js → input-field-phone-number.CbpRItYf.js} +3 -3
- package/dist/chunks/{input-field-phone-number.DVliTkE3.js.map → input-field-phone-number.CbpRItYf.js.map} +1 -1
- package/dist/chunks/input-field.DExw_Cow.js +303 -0
- package/dist/chunks/input-field.DExw_Cow.js.map +1 -0
- package/dist/chunks/{menu.CiyYOoKd.js → menu.CeLJ1gIz.js} +2 -2
- package/dist/chunks/{menu.CiyYOoKd.js.map → menu.CeLJ1gIz.js.map} +1 -1
- package/dist/chunks/{modal-fullscreen.CuL9oSAq.js → modal-fullscreen.CZnLS-fQ.js} +2 -2
- package/dist/chunks/{modal-fullscreen.CuL9oSAq.js.map → modal-fullscreen.CZnLS-fQ.js.map} +1 -1
- package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.LnD61fHp.js → modal.vue_vue_type_script_setup_true_lang.CP7dV1Yy.js} +4 -4
- package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.LnD61fHp.js.map → modal.vue_vue_type_script_setup_true_lang.CP7dV1Yy.js.map} +1 -1
- package/dist/chunks/{pagination.D6A7TX6J.js → pagination.DL9LmFMJ.js} +168 -168
- package/dist/chunks/pagination.DL9LmFMJ.js.map +1 -0
- package/dist/chunks/{popover.maCMPyz8.js → popover.VI3TrUkL.js} +2 -2
- package/dist/chunks/{popover.maCMPyz8.js.map → popover.VI3TrUkL.js.map} +1 -1
- package/dist/chunks/promo-banner.CQp3z2CP.js.map +1 -1
- package/dist/chunks/{radio-group.435rdgzm.js → radio-group.H9A5QcNu.js} +3 -3
- package/dist/chunks/{radio-group.435rdgzm.js.map → radio-group.H9A5QcNu.js.map} +1 -1
- package/dist/chunks/{rich-text-editor.BDLncrV5.js → rich-text-editor.Dl9PsYbk.js} +6 -5
- package/dist/chunks/{rich-text-editor.BDLncrV5.js.map → rich-text-editor.Dl9PsYbk.js.map} +1 -1
- package/dist/chunks/{search-bar.Cngs3uYZ.js → search-bar.a-jzP1UA.js} +3 -3
- package/dist/chunks/{search-bar.Cngs3uYZ.js.map → search-bar.a-jzP1UA.js.map} +1 -1
- package/dist/chunks/{secondary-nav.ByCa4wiA.js → secondary-nav.UrmIAVGD.js} +2 -2
- package/dist/chunks/{secondary-nav.ByCa4wiA.js.map → secondary-nav.UrmIAVGD.js.map} +1 -1
- package/dist/chunks/{selection-card-group.9wJy7FC2.js → selection-card-group.B4xpnd-z.js} +3 -3
- package/dist/chunks/{selection-card-group.9wJy7FC2.js.map → selection-card-group.B4xpnd-z.js.map} +1 -1
- package/dist/chunks/{sidepanel.CTIjklfG.js → sidepanel.BuNmgmpj.js} +2 -2
- package/dist/chunks/{sidepanel.CTIjklfG.js.map → sidepanel.BuNmgmpj.js.map} +1 -1
- package/dist/chunks/step.BtNhPZAf.js +268 -0
- package/dist/chunks/step.BtNhPZAf.js.map +1 -0
- package/dist/chunks/{structured-list-item.DQzxNb_M.js → structured-list-item.BQbEDKhg.js} +3 -3
- package/dist/chunks/{structured-list-item.DQzxNb_M.js.map → structured-list-item.BQbEDKhg.js.map} +1 -1
- package/dist/chunks/summary-grid.types.CoSCUI1V.js +490 -0
- package/dist/chunks/summary-grid.types.CoSCUI1V.js.map +1 -0
- package/dist/chunks/tab.CAt51ksU.js +252 -0
- package/dist/chunks/tab.CAt51ksU.js.map +1 -0
- package/dist/chunks/{tabs.keys.Bc2pSKRw.js → tabs.keys.Cb4Vw5Jh.js} +3 -3
- package/dist/chunks/{tabs.keys.Bc2pSKRw.js.map → tabs.keys.Cb4Vw5Jh.js.map} +1 -1
- package/dist/chunks/{textarea.CV1HjB0x.js → textarea.DXSe9MHH.js} +83 -80
- package/dist/chunks/textarea.DXSe9MHH.js.map +1 -0
- package/dist/chunks/{timeline-item.DUp8MmgZ.js → timeline-item.BRHwCA1F.js} +11 -12
- package/dist/chunks/timeline-item.BRHwCA1F.js.map +1 -0
- package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.E8oBlhrC.js → tutorial.vue_vue_type_script_setup_true_lang.CAf69UYO.js} +4 -4
- package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.E8oBlhrC.js.map → tutorial.vue_vue_type_script_setup_true_lang.CAf69UYO.js.map} +1 -1
- package/dist/chunks/use-cached-selected-values.D7dOPJSO.js +1653 -0
- package/dist/chunks/use-cached-selected-values.D7dOPJSO.js.map +1 -0
- 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 +2 -2
- package/dist/date-range-picker.js +2 -2
- package/dist/date.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-with-views.js +1 -1
- package/dist/header.js +1 -1
- package/dist/index.js +45 -45
- package/dist/info-icon.js +1 -1
- package/dist/input-field-password.js +1 -1
- package/dist/input-field-phone-number.js +1 -1
- package/dist/input-field.js +1 -1
- package/dist/internal.js +8 -8
- 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/rich-text-editor.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/stepper.js +1 -1
- package/dist/structured-list.js +1 -1
- package/dist/styles/bento-dark.css +1 -0
- package/dist/styles/bento-light.css +1 -0
- package/dist/styles/bento.css +1 -0
- package/dist/styles/legacy.css +1 -0
- package/dist/styles/styleguide.css +1 -0
- package/dist/summary-grid.js +1 -1
- package/dist/tabs.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 +6 -6
- package/dist/assets/tabs.css +0 -1
- package/dist/chunks/action-bar.BAfqAQjP.js.map +0 -1
- package/dist/chunks/button-actions-with-menu.D50ABuSV.js +0 -174
- package/dist/chunks/button-actions-with-menu.D50ABuSV.js.map +0 -1
- package/dist/chunks/button-actions.D1pXI1AJ.js.map +0 -1
- package/dist/chunks/calendar.CLpwW_-k.js +0 -1290
- package/dist/chunks/calendar.CLpwW_-k.js.map +0 -1
- package/dist/chunks/copy.DqckFHHS.js +0 -156
- package/dist/chunks/copy.DqckFHHS.js.map +0 -1
- package/dist/chunks/data-grid-template.DzIpssxc.js +0 -143
- package/dist/chunks/data-grid-template.DzIpssxc.js.map +0 -1
- package/dist/chunks/data-grid.DroQMKSc.js.map +0 -1
- package/dist/chunks/date-range-picker.C2x1_xoz.js +0 -1209
- package/dist/chunks/date-range-picker.C2x1_xoz.js.map +0 -1
- package/dist/chunks/date.CKXySBQv.js +0 -995
- package/dist/chunks/date.CKXySBQv.js.map +0 -1
- package/dist/chunks/dropdown-default-textbox.B05elQig.js.map +0 -1
- package/dist/chunks/file-uploader.C8DwUCMp.js.map +0 -1
- package/dist/chunks/get-date-locale.BN8xEjY0.js.map +0 -1
- package/dist/chunks/header-with-views.De0oVJXS.js.map +0 -1
- package/dist/chunks/index.BDuTpjD8.js +0 -40
- package/dist/chunks/index.BDuTpjD8.js.map +0 -1
- package/dist/chunks/index.DD7TppDb.js +0 -10
- package/dist/chunks/index.DD7TppDb.js.map +0 -1
- package/dist/chunks/info-icon.CpGwbhZQ.js +0 -45
- package/dist/chunks/info-icon.CpGwbhZQ.js.map +0 -1
- package/dist/chunks/input-field-password.CJOf1GlS.js +0 -369
- package/dist/chunks/input-field-password.CJOf1GlS.js.map +0 -1
- package/dist/chunks/input-field.xUQT0LXI.js +0 -298
- package/dist/chunks/input-field.xUQT0LXI.js.map +0 -1
- package/dist/chunks/pagination.D6A7TX6J.js.map +0 -1
- package/dist/chunks/step.CpSPMvdW.js +0 -264
- package/dist/chunks/step.CpSPMvdW.js.map +0 -1
- package/dist/chunks/summary-grid.types.BpS1z1-W.js +0 -466
- package/dist/chunks/summary-grid.types.BpS1z1-W.js.map +0 -1
- package/dist/chunks/tabs.Cq1fdzVh.js +0 -266
- package/dist/chunks/tabs.Cq1fdzVh.js.map +0 -1
- package/dist/chunks/textarea.CV1HjB0x.js.map +0 -1
- package/dist/chunks/timeline-item.DUp8MmgZ.js.map +0 -1
- package/dist/chunks/use-cached-selected-values.CEwKqYIe.js +0 -1600
- package/dist/chunks/use-cached-selected-values.CEwKqYIe.js.map +0 -1
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import { d as
|
|
3
|
-
import { a as
|
|
1
|
+
import { ref as C, watch as Te, computed as r, defineComponent as j, useSlots as Ie, toRefs as Ne, createBlock as K, openBlock as L, resolveDynamicComponent as Ae, mergeProps as R, withCtx as z, createElementVNode as te, withKeys as tt, unref as n, createVNode as Q, toHandlers as G, createSlots as de, renderList as ue, renderSlot as X, normalizeProps as ce, guardReactiveProps as pe, createElementBlock as P, createCommentVNode as F, toDisplayString as ye, normalizeClass as fe, withDirectives as ee, vShow as Ce, nextTick as w, useAttrs as at, toRef as x, inject as ot, createTextVNode as lt } from "vue";
|
|
2
|
+
import { d as Oe, B as nt } from "./typography.DN5eC5ch.js";
|
|
3
|
+
import { a as ie, b as V, c as st, B as J, D as it } from "./dropdown-default-textbox.Ce5D3ipi.js";
|
|
4
4
|
/* empty css */
|
|
5
5
|
import { _ as Y } from "./_plugin-vue_export-helper.CHgC5LLL.js";
|
|
6
|
-
import { s as
|
|
7
|
-
import { g as
|
|
8
|
-
import { u as
|
|
9
|
-
import { u as
|
|
10
|
-
import { u as
|
|
11
|
-
import {
|
|
12
|
-
import { B as
|
|
13
|
-
import {
|
|
14
|
-
import { u as
|
|
15
|
-
import { F as
|
|
16
|
-
import { P as
|
|
6
|
+
import { s as re } from "./events.FNmSWp_P.js";
|
|
7
|
+
import { g as _ } from "./generate-uid.NJ8tVoha.js";
|
|
8
|
+
import { u as rt } from "./aria-label.CaUURpnB.js";
|
|
9
|
+
import { u as be } from "./i18n.B6g5VX0q.js";
|
|
10
|
+
import { a as m, b as me, B as ve, c as dt, u as ut, d as ct } from "./use-cached-selected-values.D7dOPJSO.js";
|
|
11
|
+
import { u as pt } from "./use-form-layout-loading.D3lALhtC.js";
|
|
12
|
+
import { B as ft } from "./directive.Cbdox5VL.js";
|
|
13
|
+
import { B as I, a as mt } from "./keyboard-navigation.CqgGzfZQ.js";
|
|
14
|
+
import { u as vt } from "./use-has-slot.B7eQSabc.js";
|
|
15
|
+
import { F as yt, E as bt } from "./error-message.DHMHq9bR.js";
|
|
16
|
+
import { P as xe } from "./popper-container.b5h4zYgT.js";
|
|
17
17
|
import "./popper-container.types.BCZMbVFD.js";
|
|
18
|
-
import { B as
|
|
18
|
+
import { B as gt } from "./popover.VI3TrUkL.js";
|
|
19
19
|
import "../assets/dropdown.css";
|
|
20
|
-
const
|
|
20
|
+
const ge = {
|
|
21
21
|
"en-US": {
|
|
22
22
|
apply: "Apply",
|
|
23
23
|
cancel: "Cancel",
|
|
@@ -31,62 +31,62 @@ const Se = {
|
|
|
31
31
|
apply: "Aplicar",
|
|
32
32
|
cancel: "Cancelar"
|
|
33
33
|
}
|
|
34
|
-
},
|
|
35
|
-
const
|
|
36
|
-
|
|
37
|
-
|
|
34
|
+
}, ht = (e, i, s, a) => {
|
|
35
|
+
const l = C(e.value), { t: o } = be({ messages: ge });
|
|
36
|
+
Te(e, () => {
|
|
37
|
+
l.value = e.value;
|
|
38
38
|
});
|
|
39
|
-
const t =
|
|
40
|
-
() => JSON.stringify(
|
|
41
|
-
),
|
|
42
|
-
a(m.SELECT,
|
|
39
|
+
const t = r(
|
|
40
|
+
() => JSON.stringify(l.value) === JSON.stringify(e.value)
|
|
41
|
+
), c = () => {
|
|
42
|
+
a(m.SELECT, l.value), a(m.CLOSE_DROPDOWN);
|
|
43
43
|
}, v = () => {
|
|
44
|
-
|
|
44
|
+
l.value = e.value, a(m.CLOSE_DROPDOWN);
|
|
45
45
|
}, g = () => {
|
|
46
|
-
s.value && i.value && (
|
|
47
|
-
},
|
|
46
|
+
s.value && i.value && (l.value = e.value);
|
|
47
|
+
}, d = r(() => [
|
|
48
48
|
{
|
|
49
|
-
title:
|
|
50
|
-
event:
|
|
49
|
+
title: o("apply"),
|
|
50
|
+
event: c,
|
|
51
51
|
disabled: t.value
|
|
52
52
|
},
|
|
53
53
|
{
|
|
54
|
-
title:
|
|
54
|
+
title: o("cancel"),
|
|
55
55
|
event: v
|
|
56
56
|
}
|
|
57
57
|
]), b = (S) => {
|
|
58
|
-
|
|
59
|
-
},
|
|
58
|
+
l.value = S, i.value || a(m.SELECT, S);
|
|
59
|
+
}, u = (S) => {
|
|
60
60
|
b(S), a(m.TAB);
|
|
61
|
-
},
|
|
61
|
+
}, O = (S) => {
|
|
62
62
|
b(S), a(m.ENTER);
|
|
63
|
-
},
|
|
63
|
+
}, B = (S) => {
|
|
64
64
|
b(S), a(m.SPACE);
|
|
65
65
|
}, y = () => {
|
|
66
66
|
v(), a(m.ESCAPE);
|
|
67
|
-
},
|
|
67
|
+
}, D = () => {
|
|
68
68
|
a(m.SHOW_MORE);
|
|
69
|
-
},
|
|
69
|
+
}, E = {
|
|
70
70
|
[m.SELECT]: b,
|
|
71
|
-
[m.SHOW_MORE]:
|
|
72
|
-
[m.TAB]:
|
|
73
|
-
[m.SPACE]:
|
|
74
|
-
[m.ENTER]:
|
|
71
|
+
[m.SHOW_MORE]: D,
|
|
72
|
+
[m.TAB]: u,
|
|
73
|
+
[m.SPACE]: B,
|
|
74
|
+
[m.ENTER]: O
|
|
75
75
|
};
|
|
76
76
|
return {
|
|
77
77
|
// Values
|
|
78
|
-
actions:
|
|
79
|
-
internalSelectedValue:
|
|
78
|
+
actions: d,
|
|
79
|
+
internalSelectedValue: l,
|
|
80
80
|
// Methods
|
|
81
|
-
listeners:
|
|
81
|
+
listeners: E,
|
|
82
82
|
onEscapeKey: y,
|
|
83
83
|
onOutsideDropdownClick: g
|
|
84
84
|
};
|
|
85
|
-
},
|
|
86
|
-
i18n: { messages:
|
|
85
|
+
}, St = j({
|
|
86
|
+
i18n: { messages: ge },
|
|
87
87
|
name: "bento-dropdown-options-container"
|
|
88
|
-
}),
|
|
89
|
-
...
|
|
88
|
+
}), Lt = /* @__PURE__ */ j({
|
|
89
|
+
...St,
|
|
90
90
|
props: {
|
|
91
91
|
/**
|
|
92
92
|
* Defines a string value that labels an interactive element.
|
|
@@ -145,8 +145,8 @@ const Se = {
|
|
|
145
145
|
*/
|
|
146
146
|
lazyLoadType: {
|
|
147
147
|
type: String,
|
|
148
|
-
default:
|
|
149
|
-
validator: (e) => Object.values(
|
|
148
|
+
default: ve.AUTOMATIC,
|
|
149
|
+
validator: (e) => Object.values(ve).includes(e)
|
|
150
150
|
},
|
|
151
151
|
/**
|
|
152
152
|
* Indicates if new options are lazy loading.
|
|
@@ -176,7 +176,7 @@ const Se = {
|
|
|
176
176
|
*
|
|
177
177
|
* If enabled, hides the "Select all" checkbox in "multiple" mode.
|
|
178
178
|
*/
|
|
179
|
-
searching:
|
|
179
|
+
searching: me.props.searching,
|
|
180
180
|
/**
|
|
181
181
|
* If enabled, dropdown will display non-selectable, static categories
|
|
182
182
|
*/
|
|
@@ -185,7 +185,7 @@ const Se = {
|
|
|
185
185
|
* Reference to the DOM element or Vue component for positioning
|
|
186
186
|
* the Dropdown container.
|
|
187
187
|
*/
|
|
188
|
-
targetElement: { type:
|
|
188
|
+
targetElement: { type: xe.props.targetElement.type, required: !0 },
|
|
189
189
|
/**
|
|
190
190
|
* Enables virtual scrolling if set to true or by providing an object with itemHeight function.
|
|
191
191
|
* The itemHeight function is used to calculate the height of rendered item given it's index.
|
|
@@ -196,66 +196,66 @@ const Se = {
|
|
|
196
196
|
}
|
|
197
197
|
},
|
|
198
198
|
setup(e, { expose: i, emit: s }) {
|
|
199
|
-
const a =
|
|
200
|
-
"b-dropdown-options-container--single": !(
|
|
201
|
-
})),
|
|
202
|
-
"b-dropdown-options-container__listbox--single": !(
|
|
203
|
-
})), { actions:
|
|
204
|
-
var
|
|
205
|
-
const
|
|
206
|
-
"min-width": `${(
|
|
199
|
+
const a = Ie(), l = s, o = e, { selectedValue: t, multiple: c } = Ne(o), v = C(null), { t: g } = be({ messages: ge }), d = r(() => o.open && !o.disabled), b = r(() => g("noOptionsMatchThisSearch")), u = r(() => ({
|
|
200
|
+
"b-dropdown-options-container--single": !(o != null && o.multiple)
|
|
201
|
+
})), O = r(() => ({
|
|
202
|
+
"b-dropdown-options-container__listbox--single": !(o != null && o.multiple)
|
|
203
|
+
})), { actions: B, internalSelectedValue: y, listeners: D, onEscapeKey: E, onOutsideDropdownClick: S } = ht(t, c, d, l), W = r(() => o != null && o.multiple ? gt : xe), U = r(() => {
|
|
204
|
+
var p;
|
|
205
|
+
const N = {
|
|
206
|
+
"min-width": `${(p = o == null ? void 0 : o.targetElement) == null ? void 0 : p.clientWidth}px`,
|
|
207
207
|
"max-width": "min(500px, 95%)"
|
|
208
208
|
};
|
|
209
|
-
return
|
|
209
|
+
return o != null && o.multiple ? {
|
|
210
210
|
actionsLayout: "space-between",
|
|
211
|
-
ariaLabel:
|
|
212
|
-
actions:
|
|
211
|
+
ariaLabel: o.ariaLabel,
|
|
212
|
+
actions: B.value,
|
|
213
213
|
divider: !0,
|
|
214
214
|
fallbackPosition: ["top-start"],
|
|
215
|
-
id:
|
|
216
|
-
open:
|
|
215
|
+
id: _(`dropdown-options-${o.id}`),
|
|
216
|
+
open: o.open,
|
|
217
217
|
position: "bottom-start",
|
|
218
218
|
style: {
|
|
219
219
|
width: "auto",
|
|
220
|
-
...
|
|
220
|
+
...N
|
|
221
221
|
},
|
|
222
|
-
targetElement:
|
|
222
|
+
targetElement: o.targetElement
|
|
223
223
|
} : {
|
|
224
224
|
fallbackPosition: ["top-start"],
|
|
225
225
|
offset: [0, 8],
|
|
226
226
|
position: "bottom-start",
|
|
227
227
|
style: {
|
|
228
|
-
display:
|
|
229
|
-
...
|
|
228
|
+
display: d.value ? "block" : "none",
|
|
229
|
+
...N
|
|
230
230
|
},
|
|
231
|
-
targetElement:
|
|
231
|
+
targetElement: o.targetElement
|
|
232
232
|
};
|
|
233
233
|
});
|
|
234
234
|
return i({
|
|
235
235
|
onOutsideDropdownClick: S
|
|
236
|
-
}), (
|
|
237
|
-
class: ["b-dropdown-options-container",
|
|
236
|
+
}), (N, p) => (L(), K(Ae(W.value), R({
|
|
237
|
+
class: ["b-dropdown-options-container", u.value]
|
|
238
238
|
}, U.value), {
|
|
239
239
|
default: z(() => [
|
|
240
240
|
te("div", {
|
|
241
|
-
onKeydown:
|
|
241
|
+
onKeydown: p[0] || (p[0] = tt(
|
|
242
242
|
//@ts-ignore
|
|
243
|
-
(...h) => n(
|
|
243
|
+
(...h) => n(E) && n(E)(...h),
|
|
244
244
|
["esc"]
|
|
245
245
|
))
|
|
246
246
|
}, [
|
|
247
|
-
Q(n(
|
|
247
|
+
Q(n(me), R({
|
|
248
248
|
id: e.id,
|
|
249
249
|
ref_key: "dropdownOptionsListboxRef",
|
|
250
250
|
ref: v,
|
|
251
251
|
"aria-label": e.ariaLabel,
|
|
252
|
-
class: ["b-dropdown-options-container__listbox",
|
|
252
|
+
class: ["b-dropdown-options-container__listbox", O.value],
|
|
253
253
|
"component-loading": e.componentLoading,
|
|
254
254
|
"empty-state": e.emptyState,
|
|
255
255
|
"is-option-disabled": e.isOptionDisabled,
|
|
256
256
|
items: e.items,
|
|
257
257
|
"selected-value": n(y),
|
|
258
|
-
multiple: n(
|
|
258
|
+
multiple: n(c),
|
|
259
259
|
"static-categories": e.staticCategories,
|
|
260
260
|
"no-results-message": b.value,
|
|
261
261
|
searching: e.searching,
|
|
@@ -263,11 +263,11 @@ const Se = {
|
|
|
263
263
|
"lazy-load-type": e.lazyLoadType,
|
|
264
264
|
"has-more-items": e.hasMoreItems,
|
|
265
265
|
"virtual-scroll": e.virtualScroll
|
|
266
|
-
}, G(n(
|
|
267
|
-
|
|
268
|
-
name:
|
|
269
|
-
fn: z((
|
|
270
|
-
X(
|
|
266
|
+
}, G(n(D))), de({ _: 2 }, [
|
|
267
|
+
ue(n(a), (h, A) => ({
|
|
268
|
+
name: A,
|
|
269
|
+
fn: z(($) => [
|
|
270
|
+
X(N.$slots, A, ce(pe($)), void 0, !0)
|
|
271
271
|
])
|
|
272
272
|
}))
|
|
273
273
|
]), 1040, ["id", "aria-label", "class", "component-loading", "empty-state", "is-option-disabled", "items", "selected-value", "multiple", "static-categories", "no-results-message", "searching", "loading", "lazy-load-type", "has-more-items", "virtual-scroll"])
|
|
@@ -276,55 +276,55 @@ const Se = {
|
|
|
276
276
|
_: 3
|
|
277
277
|
}, 16, ["class"]));
|
|
278
278
|
}
|
|
279
|
-
}),
|
|
280
|
-
let
|
|
281
|
-
const
|
|
279
|
+
}), Et = /* @__PURE__ */ Y(Lt, [["__scopeId", "data-v-aa806d62"]]);
|
|
280
|
+
let Be = 0;
|
|
281
|
+
const wt = {
|
|
282
282
|
beforeCreate() {
|
|
283
|
-
this.uuid =
|
|
283
|
+
this.uuid = Be.toString(), Be += 1;
|
|
284
284
|
}
|
|
285
|
-
},
|
|
286
|
-
function
|
|
287
|
-
return L(),
|
|
285
|
+
}, Ct = { key: 0 };
|
|
286
|
+
function Ot(e, i, s, a, l, o) {
|
|
287
|
+
return L(), P("svg", R({ role: "img" }, e.$attrs, {
|
|
288
288
|
class: "ui-assets-icons-16",
|
|
289
289
|
xmlns: "http://www.w3.org/2000/svg",
|
|
290
290
|
width: "16",
|
|
291
291
|
height: "16",
|
|
292
292
|
fill: "none"
|
|
293
293
|
}), [
|
|
294
|
-
e.$attrs["svg-title"] ? (L(),
|
|
294
|
+
e.$attrs["svg-title"] ? (L(), P("title", Ct, ye(e.$attrs["svg-title"]), 1)) : F("", !0),
|
|
295
295
|
i[0] || (i[0] = te("path", {
|
|
296
296
|
fill: "#001222",
|
|
297
297
|
d: "M5.00011 5.43922L8.00011 8.43922L11.0001 5.43922L12.0608 6.49988L8.00011 10.5605L3.93945 6.49988L5.00011 5.43922Z"
|
|
298
298
|
}, null, -1))
|
|
299
299
|
], 16);
|
|
300
300
|
}
|
|
301
|
-
const
|
|
302
|
-
let
|
|
303
|
-
const
|
|
301
|
+
const xt = /* @__PURE__ */ Y(wt, [["render", Ot]]);
|
|
302
|
+
let De = 0;
|
|
303
|
+
const Bt = {
|
|
304
304
|
beforeCreate() {
|
|
305
|
-
this.uuid =
|
|
305
|
+
this.uuid = De.toString(), De += 1;
|
|
306
306
|
}
|
|
307
|
-
},
|
|
308
|
-
function
|
|
309
|
-
return L(),
|
|
307
|
+
}, Dt = { key: 0 };
|
|
308
|
+
function Tt(e, i, s, a, l, o) {
|
|
309
|
+
return L(), P("svg", R({ role: "img" }, e.$attrs, {
|
|
310
310
|
class: "ui-assets-icons-16",
|
|
311
311
|
xmlns: "http://www.w3.org/2000/svg",
|
|
312
312
|
width: "16",
|
|
313
313
|
height: "16",
|
|
314
314
|
fill: "none"
|
|
315
315
|
}), [
|
|
316
|
-
e.$attrs["svg-title"] ? (L(),
|
|
316
|
+
e.$attrs["svg-title"] ? (L(), P("title", Dt, ye(e.$attrs["svg-title"]), 1)) : F("", !0),
|
|
317
317
|
i[0] || (i[0] = te("path", {
|
|
318
318
|
fill: "#001222",
|
|
319
319
|
d: "M10.9999 10.5608L7.9999 7.56077L4.9999 10.5608L3.93924 9.50011L7.9999 5.43945L12.0606 9.50011L10.9999 10.5608Z"
|
|
320
320
|
}, null, -1))
|
|
321
321
|
], 16);
|
|
322
322
|
}
|
|
323
|
-
const
|
|
323
|
+
const It = /* @__PURE__ */ Y(Bt, [["render", Tt]]), Nt = { class: "b-dropdown-small-textbox__chevron" }, At = j({
|
|
324
324
|
name: "dropdown-small-textbox",
|
|
325
325
|
inheritAttrs: !1
|
|
326
|
-
}),
|
|
327
|
-
...
|
|
326
|
+
}), $t = /* @__PURE__ */ j({
|
|
327
|
+
...At,
|
|
328
328
|
props: {
|
|
329
329
|
/**
|
|
330
330
|
* The number of additional items that have been selected in the dropdown.
|
|
@@ -385,48 +385,48 @@ const xt = /* @__PURE__ */ Y(wt, [["render", Ot]]), Bt = { class: "b-dropdown-sm
|
|
|
385
385
|
},
|
|
386
386
|
emits: ["clear", "close", "input", "keydown", "open"],
|
|
387
387
|
setup(e, { expose: i, emit: s }) {
|
|
388
|
-
const a = s,
|
|
389
|
-
[`b-dropdown-small-textbox--${
|
|
390
|
-
[`b-dropdown-small-textbox--${
|
|
391
|
-
[`b-dropdown-small-textbox--${
|
|
392
|
-
})),
|
|
388
|
+
const a = s, l = e, o = C(null), t = r(() => ({
|
|
389
|
+
[`b-dropdown-small-textbox--${ie.DISABLED}`]: l.disabled,
|
|
390
|
+
[`b-dropdown-small-textbox--${ie.READONLY}`]: l.readonly,
|
|
391
|
+
[`b-dropdown-small-textbox--${ie.OPENED}`]: l.open
|
|
392
|
+
})), c = r(() => l.open && !l.disabled && !l.readonly), v = (y) => {
|
|
393
393
|
a("input", y);
|
|
394
394
|
}, g = (y) => {
|
|
395
395
|
a("keydown", y);
|
|
396
|
-
}, r = (y) => {
|
|
397
|
-
de(y), a("open");
|
|
398
|
-
}, b = (y) => {
|
|
399
|
-
de(y), a("close");
|
|
400
396
|
}, d = (y) => {
|
|
401
|
-
|
|
402
|
-
},
|
|
397
|
+
re(y), a("open");
|
|
398
|
+
}, b = (y) => {
|
|
399
|
+
re(y), a("close");
|
|
400
|
+
}, u = (y) => {
|
|
401
|
+
re(y), a("clear");
|
|
402
|
+
}, O = {
|
|
403
403
|
[V.INPUT]: v,
|
|
404
|
-
[V.OPEN]:
|
|
404
|
+
[V.OPEN]: d,
|
|
405
405
|
[V.CLOSE]: b,
|
|
406
|
-
[V.CLEAR]:
|
|
406
|
+
[V.CLEAR]: u,
|
|
407
407
|
[V.KEYDOWN]: g
|
|
408
408
|
};
|
|
409
409
|
return i({
|
|
410
410
|
focus: () => {
|
|
411
|
-
|
|
411
|
+
o.value.focus();
|
|
412
412
|
}
|
|
413
|
-
}), (y,
|
|
414
|
-
class:
|
|
413
|
+
}), (y, D) => (L(), P("div", {
|
|
414
|
+
class: fe(["b-dropdown-small-textbox", t.value])
|
|
415
415
|
}, [
|
|
416
|
-
Q(
|
|
416
|
+
Q(st, R({
|
|
417
417
|
ref_key: "baseTextbox",
|
|
418
|
-
ref:
|
|
418
|
+
ref: o
|
|
419
419
|
}, { ...y.$attrs, ...y.$props }, {
|
|
420
420
|
class: "b-dropdown-small-textbox__textbox",
|
|
421
|
-
size: n(
|
|
422
|
-
}, G(
|
|
421
|
+
size: n(J).SMALL
|
|
422
|
+
}, G(O)), {
|
|
423
423
|
icon: z(() => [
|
|
424
|
-
te("div",
|
|
425
|
-
ee(Q(n(
|
|
426
|
-
[
|
|
424
|
+
te("div", Nt, [
|
|
425
|
+
ee(Q(n(It), { "svg-title": "opened" }, null, 512), [
|
|
426
|
+
[Ce, c.value]
|
|
427
427
|
]),
|
|
428
|
-
ee(Q(n(
|
|
429
|
-
[
|
|
428
|
+
ee(Q(n(xt), { "svg-title": "closed" }, null, 512), [
|
|
429
|
+
[Ce, !c.value]
|
|
430
430
|
])
|
|
431
431
|
])
|
|
432
432
|
]),
|
|
@@ -434,91 +434,91 @@ const xt = /* @__PURE__ */ Y(wt, [["render", Ot]]), Bt = { class: "b-dropdown-sm
|
|
|
434
434
|
}, 16, ["size"])
|
|
435
435
|
], 2));
|
|
436
436
|
}
|
|
437
|
-
}),
|
|
437
|
+
}), Mt = /* @__PURE__ */ Y($t, [["__scopeId", "data-v-66b5eaa5"]]), Rt = (e, i) => i.value.reduce((s, a) => {
|
|
438
438
|
if (a.items) {
|
|
439
|
-
const
|
|
440
|
-
(t) => e.value.find((
|
|
439
|
+
const l = a.items.filter(
|
|
440
|
+
(t) => e.value.find((c) => c.value === t.value)
|
|
441
441
|
);
|
|
442
|
-
|
|
442
|
+
l.length === a.items.length ? s.push(a.displayValue ?? a.label) : l.forEach(({ label: t, displayValue: c }) => s.push(c ?? t));
|
|
443
443
|
}
|
|
444
|
-
return e.value.find((
|
|
445
|
-
}, []).join(", "),
|
|
446
|
-
const
|
|
444
|
+
return e.value.find((l) => l.value === a.value) && s.push(a.displayValue ?? a.label), s;
|
|
445
|
+
}, []).join(", "), Pt = ({ items: e, placeholder: i, selectedValues: s, isMultiSelect: a }) => {
|
|
446
|
+
const l = r(
|
|
447
447
|
() => a.value && e.value.find((t) => {
|
|
448
|
-
var
|
|
449
|
-
return (
|
|
448
|
+
var c;
|
|
449
|
+
return (c = t.items) == null ? void 0 : c.length;
|
|
450
450
|
})
|
|
451
451
|
);
|
|
452
|
-
return
|
|
452
|
+
return r(() => s.value.length ? l.value ? Rt(s, e) : s.value.map(({ label: t, displayValue: c }) => c ?? t).join(", ") : i.value || null);
|
|
453
453
|
}, $e = (e) => {
|
|
454
454
|
var i;
|
|
455
455
|
(i = e.value.$children) == null || i[0].$refs.textbox.focus();
|
|
456
|
-
},
|
|
456
|
+
}, kt = ({
|
|
457
457
|
inputContainerRef: e,
|
|
458
458
|
optionsContainerRef: i,
|
|
459
459
|
selectedValueIndex: s,
|
|
460
460
|
isDropdownOpen: a,
|
|
461
|
-
isDynamicFltering:
|
|
462
|
-
items:
|
|
461
|
+
isDynamicFltering: l,
|
|
462
|
+
items: o,
|
|
463
463
|
isMultiple: t
|
|
464
|
-
},
|
|
465
|
-
const
|
|
464
|
+
}, c, v, g) => {
|
|
465
|
+
const d = async (p) => {
|
|
466
466
|
var h;
|
|
467
|
-
|
|
468
|
-
}, b = async (
|
|
469
|
-
var
|
|
470
|
-
|
|
471
|
-
const h = (
|
|
467
|
+
l.value && await w(), (h = o.value[p]) == null || h.focus();
|
|
468
|
+
}, b = async (p) => {
|
|
469
|
+
var A, $;
|
|
470
|
+
l.value && await w();
|
|
471
|
+
const h = (A = i.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef) == null ? void 0 : A.$el.querySelectorAll(
|
|
472
472
|
"button"
|
|
473
473
|
);
|
|
474
|
-
h.length ? (
|
|
475
|
-
},
|
|
474
|
+
h.length ? ($ = h[p]) == null || $.focus() : d(p);
|
|
475
|
+
}, u = (p) => {
|
|
476
476
|
var h;
|
|
477
477
|
return (h = i.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef) == null ? void 0 : h.setListboxFocusedIndex(
|
|
478
|
-
|
|
478
|
+
p
|
|
479
479
|
);
|
|
480
|
-
},
|
|
481
|
-
|
|
482
|
-
t ? b(0) : (
|
|
480
|
+
}, O = ({ detail: p }) => {
|
|
481
|
+
p.preventDefault(), a.value || v(), w(() => {
|
|
482
|
+
t ? b(0) : (u(s.value), d(s.value));
|
|
483
483
|
});
|
|
484
|
-
},
|
|
485
|
-
|
|
486
|
-
t ? b(0) : (
|
|
484
|
+
}, B = ({ detail: p }) => {
|
|
485
|
+
p.preventDefault(), a.value || v(), w(() => {
|
|
486
|
+
t ? b(0) : (u(s.value), d(s.value));
|
|
487
487
|
});
|
|
488
488
|
}, y = () => {
|
|
489
|
-
a.value || (v(),
|
|
490
|
-
|
|
489
|
+
a.value || (v(), w(() => {
|
|
490
|
+
u(o.value.length - 1), d(o.value.length - 1);
|
|
491
491
|
}));
|
|
492
|
-
},
|
|
492
|
+
}, D = () => {
|
|
493
493
|
a.value && (g(), $e(e));
|
|
494
|
-
},
|
|
494
|
+
}, E = () => {
|
|
495
495
|
a.value && g();
|
|
496
496
|
}, S = () => {
|
|
497
|
-
a.value || v(),
|
|
498
|
-
|
|
497
|
+
a.value || v(), w(() => {
|
|
498
|
+
d(0);
|
|
499
499
|
});
|
|
500
|
-
}, W = ({ detail:
|
|
501
|
-
|
|
502
|
-
t ? b(0) : (
|
|
500
|
+
}, W = ({ detail: p }) => {
|
|
501
|
+
p.preventDefault(), c(), a.value && w(() => {
|
|
502
|
+
t ? b(0) : (u(s.value), d(s.value));
|
|
503
503
|
});
|
|
504
|
-
}, U = ({ detail:
|
|
505
|
-
|
|
506
|
-
t ? b(0) : (
|
|
504
|
+
}, U = ({ detail: p }) => {
|
|
505
|
+
p.preventDefault(), c(), a.value && w(() => {
|
|
506
|
+
t ? b(0) : (u(s.value), d(s.value));
|
|
507
507
|
});
|
|
508
508
|
};
|
|
509
|
-
return
|
|
510
|
-
...
|
|
509
|
+
return r(() => ({
|
|
510
|
+
...l.value ? {} : { [I.SPACE]: W },
|
|
511
511
|
[I.ENTER]: U,
|
|
512
|
-
[I.ARROW_DOWN]:
|
|
513
|
-
[I.ARROW_UP]:
|
|
512
|
+
[I.ARROW_DOWN]: O,
|
|
513
|
+
[I.ARROW_UP]: B,
|
|
514
514
|
[I.END]: y,
|
|
515
|
-
[I.ESCAPE]:
|
|
515
|
+
[I.ESCAPE]: D,
|
|
516
516
|
[I.HOME]: S,
|
|
517
|
-
[I.TAB]:
|
|
517
|
+
[I.TAB]: E
|
|
518
518
|
}));
|
|
519
|
-
},
|
|
519
|
+
}, Kt = ({ inputContainerRef: e, isDropdownOpen: i }, s) => {
|
|
520
520
|
const a = () => {
|
|
521
|
-
i.value && s(),
|
|
521
|
+
i.value && s(), w(() => {
|
|
522
522
|
$e(e);
|
|
523
523
|
});
|
|
524
524
|
};
|
|
@@ -529,15 +529,15 @@ const xt = /* @__PURE__ */ Y(wt, [["render", Ot]]), Bt = { class: "b-dropdown-sm
|
|
|
529
529
|
[m.SPACE]: a
|
|
530
530
|
};
|
|
531
531
|
};
|
|
532
|
-
function
|
|
533
|
-
const
|
|
534
|
-
return
|
|
535
|
-
s !== void 0 && s(
|
|
536
|
-
}),
|
|
537
|
-
if (!
|
|
538
|
-
return
|
|
539
|
-
const v =
|
|
540
|
-
return t(v,
|
|
532
|
+
function Ft(e, i, s, a) {
|
|
533
|
+
const l = C(e), o = C(i), t = (v, g = []) => g.flatMap((d) => d.label.toLocaleLowerCase().includes(v) ? a != null && a.value && d.items ? [...t(v, d.items)] : [d, ...t(v, d.items)] : d.items ? [...t(v, d.items)] : []);
|
|
534
|
+
return Te(l, () => {
|
|
535
|
+
s !== void 0 && s(l.value);
|
|
536
|
+
}), r(() => {
|
|
537
|
+
if (!l.value || s !== void 0)
|
|
538
|
+
return o.value;
|
|
539
|
+
const v = l.value.toLocaleLowerCase();
|
|
540
|
+
return t(v, o.value);
|
|
541
541
|
});
|
|
542
542
|
}
|
|
543
543
|
const Me = {
|
|
@@ -554,15 +554,15 @@ const Me = {
|
|
|
554
554
|
all: "Todos",
|
|
555
555
|
clearFilter: "Limpar filtro"
|
|
556
556
|
}
|
|
557
|
-
},
|
|
557
|
+
}, zt = Symbol("input field component injection key"), ra = Symbol("input field hint injection key"), da = Symbol("input field parent component injection key"), jt = j({
|
|
558
558
|
i18n: { messages: Me },
|
|
559
559
|
name: "b-dropdown",
|
|
560
560
|
components: {
|
|
561
|
-
DropdownInputDefault:
|
|
562
|
-
DropdownInputSmall:
|
|
561
|
+
DropdownInputDefault: it,
|
|
562
|
+
DropdownInputSmall: Mt
|
|
563
563
|
}
|
|
564
|
-
}),
|
|
565
|
-
...
|
|
564
|
+
}), Wt = /* @__PURE__ */ j({
|
|
565
|
+
...jt,
|
|
566
566
|
props: {
|
|
567
567
|
/**
|
|
568
568
|
* @deprecated from version 2.0.0. Use the aria-label attribute instead.
|
|
@@ -653,8 +653,8 @@ const Me = {
|
|
|
653
653
|
*/
|
|
654
654
|
lazyLoadType: {
|
|
655
655
|
type: String,
|
|
656
|
-
default:
|
|
657
|
-
validator: (e) => Object.values(
|
|
656
|
+
default: me.props.lazyLoadType.default,
|
|
657
|
+
validator: (e) => Object.values(ve).includes(e)
|
|
658
658
|
},
|
|
659
659
|
/*
|
|
660
660
|
* If enabled, the user will be able to select multiple items.
|
|
@@ -694,7 +694,7 @@ const Me = {
|
|
|
694
694
|
size: {
|
|
695
695
|
type: String,
|
|
696
696
|
default: null,
|
|
697
|
-
validator: (e) => Object.values(
|
|
697
|
+
validator: (e) => Object.values(J).includes(e)
|
|
698
698
|
},
|
|
699
699
|
/**
|
|
700
700
|
* If enabled, dropdown will display non-selectable, static categories
|
|
@@ -738,225 +738,220 @@ const Me = {
|
|
|
738
738
|
},
|
|
739
739
|
emits: ["input", "show-more"],
|
|
740
740
|
setup(e, { expose: i, emit: s }) {
|
|
741
|
-
var
|
|
742
|
-
const a =
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
),
|
|
741
|
+
var we;
|
|
742
|
+
const a = at(), l = Ie(), o = vt(l), t = e, c = s, { t: v } = be({ messages: Me }), g = C(null), d = C(null), b = C(null), u = C(!1), O = _("bento-dropdown-options-container"), B = _("dropdown-label"), y = _("dropdown-description"), D = _("dropdown-error"), { isReadOnly: E } = pt(x(t, "readonly")), { cachedSelectedListboxOptions: S, cachedListboxSelectedValues: W, setCachedValues: U } = dt(
|
|
743
|
+
x(t, "items"),
|
|
744
|
+
x(t, "value"),
|
|
745
|
+
x(t, "multiple"),
|
|
746
|
+
x(t, "enableValueLabelPair")
|
|
747
|
+
), N = C(a["aria-label"]), { ariaLabel: p, label: h } = Ne(t), A = r(() => v("ariaLabelFallback")), $ = rt({
|
|
748
748
|
// TODO: take ariaLabel ref away when aria-label prop is removed
|
|
749
|
-
ariaLabel:
|
|
749
|
+
ariaLabel: p.value || N,
|
|
750
750
|
label: h,
|
|
751
|
-
defaultFallback:
|
|
752
|
-
}),
|
|
751
|
+
defaultFallback: A
|
|
752
|
+
}), he = t.size === J.SMALL || ot(zt, !1), Re = r(() => he ? J.SMALL : J.DEFAULT), Pe = r(() => ({
|
|
753
753
|
"b-dropdown--condensed": t.condensed
|
|
754
|
-
})), ke =
|
|
754
|
+
})), ke = r(() => ({
|
|
755
755
|
"b-dropdown__description--error": !!t.errorMessage
|
|
756
|
-
})),
|
|
756
|
+
})), M = C(""), Z = x(t, "items"), Se = x(t, "staticCategories"), ae = Ft(M, Z, (we = t == null ? void 0 : t.search) == null ? void 0 : we.searchEvent, Se), oe = r(() => t.dynamicFiltering && !!M.value), Ke = Pt({
|
|
757
757
|
items: Z,
|
|
758
|
-
placeholder:
|
|
759
|
-
isMultiSelect:
|
|
758
|
+
placeholder: x(t, "placeholder"),
|
|
759
|
+
isMultiSelect: x(t, "multiple"),
|
|
760
760
|
selectedValues: S
|
|
761
|
-
}), Fe =
|
|
761
|
+
}), Fe = r(() => {
|
|
762
762
|
if (t != null && t.multiple && Array.isArray(t.value))
|
|
763
763
|
return t.items.filter(
|
|
764
|
-
({ value:
|
|
764
|
+
({ value: f }) => (t == null ? void 0 : t.value) && (t == null ? void 0 : t.value).includes(f)
|
|
765
765
|
);
|
|
766
766
|
if (!t.multiple && t.staticCategories) {
|
|
767
|
-
const
|
|
768
|
-
(
|
|
767
|
+
const f = t.items.find(
|
|
768
|
+
(k) => k.items.some((q) => q.value === t.value)
|
|
769
769
|
);
|
|
770
|
-
return
|
|
770
|
+
return f ? f.items.find((k) => k.value === t.value) : null;
|
|
771
771
|
}
|
|
772
|
-
return t.items.find(({ value:
|
|
773
|
-
}), ze =
|
|
774
|
-
const
|
|
775
|
-
return
|
|
776
|
-
}), { isMultiLevelSelect:
|
|
772
|
+
return t.items.find(({ value: f }) => f === (t == null ? void 0 : t.value));
|
|
773
|
+
}), ze = r(() => {
|
|
774
|
+
const f = ae.value.findIndex(({ value: T }) => t.value === T);
|
|
775
|
+
return f > -1 ? f : 0;
|
|
776
|
+
}), { isMultiLevelSelect: Le, flattenedItemsList: je } = ut(Z), We = r(() => Le.value && !t.staticCategories), Ue = r(() => We.value ? "treeitem" : "option"), qe = r(() => {
|
|
777
777
|
if (t.multiple) {
|
|
778
|
-
const
|
|
779
|
-
return
|
|
778
|
+
const f = Array.isArray(t.value) ? t.value.length : 0, T = Le.value ? je.value.length : Z.value.length;
|
|
779
|
+
return f === 0 ? null : !t.hasMoreItems && T > 0 && T === f ? v("all") : f;
|
|
780
780
|
}
|
|
781
781
|
return null;
|
|
782
|
-
}),
|
|
783
|
-
() => `${t.description ? y : ""} ${t.errorMessage ?
|
|
784
|
-
),
|
|
785
|
-
|
|
786
|
-
|
|
782
|
+
}), He = r(
|
|
783
|
+
() => `${t.description ? y : ""} ${t.errorMessage ? D : ""}`.trim() || null
|
|
784
|
+
), Ve = r(() => {
|
|
785
|
+
var f;
|
|
786
|
+
return (f = b.value) == null ? void 0 : f.$el;
|
|
787
|
+
}), { visibleDomOptions: Je, updateVisibleDomOptions: Ee } = ct(
|
|
788
|
+
Ve,
|
|
789
|
+
ae,
|
|
790
|
+
Ue
|
|
791
|
+
), _e = () => {
|
|
792
|
+
E.value || (u.value = !0, w(() => {
|
|
793
|
+
Ee();
|
|
787
794
|
}));
|
|
788
|
-
},
|
|
789
|
-
|
|
795
|
+
}, le = () => {
|
|
796
|
+
u.value = !1;
|
|
790
797
|
}, ne = () => {
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
}),
|
|
794
|
-
},
|
|
795
|
-
|
|
796
|
-
},
|
|
797
|
-
t.multiple || (
|
|
798
|
-
},
|
|
799
|
-
|
|
800
|
-
},
|
|
801
|
-
var O;
|
|
802
|
-
const c = (O = b.value) == null ? void 0 : O.$el;
|
|
803
|
-
!c || c.nodeType === Node.COMMENT_NODE || (we.value = Array.from(
|
|
804
|
-
c.querySelectorAll('[role="option"]')
|
|
805
|
-
).filter((N) => N.checkVisibility()));
|
|
806
|
-
};
|
|
807
|
-
be(ae, () => {
|
|
808
|
-
E(() => {
|
|
809
|
-
se();
|
|
810
|
-
});
|
|
811
|
-
});
|
|
812
|
-
const Ye = $t(
|
|
798
|
+
E.value || (u.value = !u.value, w(() => {
|
|
799
|
+
Ee();
|
|
800
|
+
}), oe.value && (M.value = ""));
|
|
801
|
+
}, Ye = () => {
|
|
802
|
+
oe.value && (M.value = ""), u.value && (u.value = !1, b.value.onOutsideDropdownClick());
|
|
803
|
+
}, Ze = (f) => {
|
|
804
|
+
t.multiple || (M.value = "", u.value = !1), U(f), c("input", W.value);
|
|
805
|
+
}, Qe = () => {
|
|
806
|
+
c(m.SHOW_MORE);
|
|
807
|
+
}, Xe = kt(
|
|
813
808
|
{
|
|
814
809
|
inputContainerRef: g,
|
|
815
810
|
optionsContainerRef: b,
|
|
816
811
|
selectedValueIndex: ze,
|
|
817
|
-
isDropdownOpen:
|
|
818
|
-
isDynamicFltering:
|
|
819
|
-
items:
|
|
812
|
+
isDropdownOpen: u,
|
|
813
|
+
isDynamicFltering: x(t, "dynamicFiltering"),
|
|
814
|
+
items: Je,
|
|
820
815
|
isMultiple: t.multiple
|
|
821
816
|
},
|
|
822
817
|
ne,
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
),
|
|
818
|
+
_e,
|
|
819
|
+
le
|
|
820
|
+
), Ge = Kt(
|
|
826
821
|
{
|
|
827
822
|
inputContainerRef: g,
|
|
828
|
-
isDropdownOpen:
|
|
823
|
+
isDropdownOpen: u
|
|
829
824
|
},
|
|
830
|
-
|
|
831
|
-
),
|
|
832
|
-
[m.CLOSE_DROPDOWN]:
|
|
833
|
-
[m.SELECT]:
|
|
834
|
-
[m.SHOW_MORE]:
|
|
835
|
-
...
|
|
825
|
+
le
|
|
826
|
+
), et = {
|
|
827
|
+
[m.CLOSE_DROPDOWN]: le,
|
|
828
|
+
[m.SELECT]: Ze,
|
|
829
|
+
[m.SHOW_MORE]: Qe,
|
|
830
|
+
...Ge
|
|
836
831
|
};
|
|
837
|
-
return t.error &&
|
|
832
|
+
return t.error && Oe(
|
|
838
833
|
'BentoDropdown "error" property',
|
|
839
834
|
`Use the BentoDropdown "errorMessage" property instead to indicate that there is a modifier error.
|
|
840
835
|
Having the field as "undefined" will hide/remove the error.
|
|
841
836
|
<bento-dropdown errorMessage="Error message text" />`,
|
|
842
837
|
"2.0.0"
|
|
843
|
-
), t.size &&
|
|
838
|
+
), t.size && Oe('BentoDropdown "size" property', "Do not use. Only 'default' size should be used.", "2.0.0"), i({
|
|
844
839
|
focus: () => {
|
|
845
840
|
g.value.focus();
|
|
846
841
|
}
|
|
847
|
-
}), (
|
|
848
|
-
var
|
|
849
|
-
return ee((L(),
|
|
850
|
-
class:
|
|
842
|
+
}), (f, T) => {
|
|
843
|
+
var k;
|
|
844
|
+
return ee((L(), P("div", {
|
|
845
|
+
class: fe(["b-dropdown", Pe.value])
|
|
851
846
|
}, [
|
|
852
|
-
n(h) ? (L(), K(n(
|
|
847
|
+
n(h) ? (L(), K(n(yt), {
|
|
853
848
|
key: 0,
|
|
854
|
-
id: n(
|
|
849
|
+
id: n(B),
|
|
855
850
|
condensed: e.condensed,
|
|
856
851
|
label: n(h),
|
|
857
852
|
"tooltip-text": e.tooltipText,
|
|
858
853
|
optional: e.optional,
|
|
859
854
|
required: e.required
|
|
860
855
|
}, null, 8, ["id", "condensed", "label", "tooltip-text", "optional", "required"])) : F("", !0),
|
|
861
|
-
ee((L(),
|
|
856
|
+
ee((L(), P("div", R({
|
|
862
857
|
ref_key: "inputContainerRefWrapper",
|
|
863
|
-
ref:
|
|
864
|
-
}, G(n(
|
|
858
|
+
ref: d
|
|
859
|
+
}, G(n(Xe), !0)), [
|
|
865
860
|
(L(), K(Ae(Re.value), {
|
|
866
861
|
ref_key: "inputContainerRef",
|
|
867
862
|
ref: g,
|
|
868
863
|
condensed: e.condensed,
|
|
869
|
-
value:
|
|
870
|
-
"additional-items-selected":
|
|
871
|
-
"aria-controls": n(
|
|
872
|
-
ariaExpanded:
|
|
873
|
-
"aria-labelledby": n(h) ? n(
|
|
874
|
-
"aria-describedby":
|
|
875
|
-
"aria-label": n(
|
|
876
|
-
"aria-readonly": n(
|
|
877
|
-
readonly: n(
|
|
864
|
+
value: M.value,
|
|
865
|
+
"additional-items-selected": qe.value,
|
|
866
|
+
"aria-controls": n(O),
|
|
867
|
+
ariaExpanded: u.value,
|
|
868
|
+
"aria-labelledby": n(h) ? n(B) : null,
|
|
869
|
+
"aria-describedby": He.value,
|
|
870
|
+
"aria-label": n($),
|
|
871
|
+
"aria-readonly": n(E),
|
|
872
|
+
readonly: n(E),
|
|
878
873
|
disabled: e.disabled,
|
|
879
874
|
"display-value": n(Ke),
|
|
880
875
|
"dynamic-filtering": e.dynamicFiltering,
|
|
881
876
|
"is-invalid": !!e.errorMessage || e.error,
|
|
882
877
|
multiple: e.multiple,
|
|
883
|
-
open:
|
|
884
|
-
"selected-value-item": n(
|
|
878
|
+
open: u.value,
|
|
879
|
+
"selected-value-item": n(he) ? void 0 : Fe.value,
|
|
885
880
|
"show-slot-content-in-multiple": e.showSlotContentInMultiple,
|
|
886
|
-
onInput:
|
|
881
|
+
onInput: T[0] || (T[0] = (q) => M.value = q),
|
|
887
882
|
onOpen: ne,
|
|
888
883
|
onClose: ne
|
|
889
|
-
},
|
|
890
|
-
|
|
884
|
+
}, de({ _: 2 }, [
|
|
885
|
+
ue(n(l), (q, H) => ({
|
|
891
886
|
name: H,
|
|
892
|
-
fn: z((
|
|
893
|
-
X(
|
|
887
|
+
fn: z((se) => [
|
|
888
|
+
X(f.$slots, H, ce(pe(se)), void 0, !0)
|
|
894
889
|
])
|
|
895
890
|
}))
|
|
896
891
|
]), 1064, ["condensed", "value", "additional-items-selected", "aria-controls", "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"]))
|
|
897
892
|
], 16)), [
|
|
898
|
-
[n(
|
|
893
|
+
[n(mt)]
|
|
899
894
|
]),
|
|
900
|
-
g.value ? (L(), K(n(
|
|
895
|
+
g.value ? (L(), K(n(Et), R({
|
|
901
896
|
key: 1,
|
|
902
|
-
id: n(
|
|
897
|
+
id: n(O),
|
|
903
898
|
ref_key: "optionsContainerRef",
|
|
904
899
|
ref: b,
|
|
905
|
-
"aria-label": n(
|
|
900
|
+
"aria-label": n($),
|
|
906
901
|
"component-loading": e.componentLoading,
|
|
907
902
|
"empty-state": e.emptyState,
|
|
908
|
-
"debounce-time": (
|
|
903
|
+
"debounce-time": (k = e.search) == null ? void 0 : k.debounceTime,
|
|
909
904
|
disabled: e.disabled,
|
|
910
905
|
"is-option-disabled": e.isOptionDisabled,
|
|
911
906
|
items: n(ae),
|
|
912
907
|
multiple: e.multiple,
|
|
913
|
-
"static-categories":
|
|
914
|
-
open:
|
|
908
|
+
"static-categories": Se.value,
|
|
909
|
+
open: u.value,
|
|
915
910
|
"selected-value": n(S),
|
|
916
|
-
searching:
|
|
917
|
-
"target-element":
|
|
911
|
+
searching: oe.value,
|
|
912
|
+
"target-element": d.value,
|
|
918
913
|
loading: e.loading,
|
|
919
914
|
"has-more-items": e.hasMoreItems,
|
|
920
915
|
"lazy-load-type": e.lazyLoadType,
|
|
921
916
|
"virtual-scroll": e.virtualScroll
|
|
922
|
-
}, G(
|
|
923
|
-
|
|
917
|
+
}, G(et)), de({ _: 2 }, [
|
|
918
|
+
ue(n(l), (q, H) => ({
|
|
924
919
|
name: H,
|
|
925
|
-
fn: z((
|
|
926
|
-
X(
|
|
920
|
+
fn: z((se) => [
|
|
921
|
+
X(f.$slots, H, ce(pe(se)), void 0, !0)
|
|
927
922
|
])
|
|
928
923
|
}))
|
|
929
924
|
]), 1040, ["id", "aria-label", "component-loading", "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),
|
|
930
|
-
e.errorMessage ? (L(), K(n(
|
|
925
|
+
e.errorMessage ? (L(), K(n(bt), {
|
|
931
926
|
key: 2,
|
|
932
|
-
id: n(
|
|
927
|
+
id: n(D),
|
|
933
928
|
"error-message": e.errorMessage,
|
|
934
929
|
class: "b-dropdown__error-message"
|
|
935
930
|
}, null, 8, ["id", "error-message"])) : F("", !0),
|
|
936
|
-
e.description || n(
|
|
931
|
+
e.description || n(o)("description") ? (L(), K(n(nt), {
|
|
937
932
|
key: 3,
|
|
938
933
|
id: n(y),
|
|
939
|
-
class:
|
|
934
|
+
class: fe(["b-dropdown__description", ke.value]),
|
|
940
935
|
el: "span"
|
|
941
936
|
}, {
|
|
942
937
|
default: z(() => [
|
|
943
|
-
X(
|
|
944
|
-
|
|
938
|
+
X(f.$slots, "description", {}, () => [
|
|
939
|
+
lt(ye(e.description), 1)
|
|
945
940
|
], !0)
|
|
946
941
|
]),
|
|
947
942
|
_: 3
|
|
948
943
|
}, 8, ["id", "class"])) : F("", !0)
|
|
949
944
|
], 2)), [
|
|
950
|
-
[n(
|
|
945
|
+
[n(ft), Ye]
|
|
951
946
|
]);
|
|
952
947
|
};
|
|
953
948
|
}
|
|
954
|
-
}),
|
|
949
|
+
}), ua = /* @__PURE__ */ Y(Wt, [["__scopeId", "data-v-288c1407"]]);
|
|
955
950
|
export {
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
951
|
+
ua as B,
|
|
952
|
+
ra as I,
|
|
953
|
+
zt as a,
|
|
954
|
+
da as b,
|
|
955
|
+
Ft as u
|
|
961
956
|
};
|
|
962
|
-
//# sourceMappingURL=dropdown.
|
|
957
|
+
//# sourceMappingURL=dropdown.B5ZaFDn_.js.map
|