@adyen/bento-vue2 1.91.0 → 1.92.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 +118 -127
- package/dist/action-bar.js +1 -1
- package/dist/ai-tag.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/base-modal.css +1 -1
- package/dist/assets/button-actions.css +1 -1
- package/dist/assets/card.css +1 -1
- package/dist/assets/checkbox-group.css +1 -1
- package/dist/assets/checkbox.css +1 -1
- package/dist/assets/data-grid.css +1 -1
- package/dist/assets/date-range-picker.css +1 -1
- package/dist/assets/dialog-page.css +1 -1
- package/dist/assets/dropdown.css +1 -1
- package/dist/assets/file-uploader.css +1 -1
- package/dist/assets/filter-bar.css +1 -1
- package/dist/assets/input-field.css +1 -1
- package/dist/assets/inspector.css +1 -1
- package/dist/assets/modal-fullscreen.css +1 -1
- package/dist/assets/secondary-nav.css +1 -1
- package/dist/assets/sidepanel.css +1 -1
- package/dist/assets/toggle.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.Dj830k6L.js → action-bar.ChuPTyQG.js} +3 -3
- package/dist/chunks/{action-bar.Dj830k6L.js.map → action-bar.ChuPTyQG.js.map} +1 -1
- package/dist/chunks/{ai-tag.AyG2UWCB.js → ai-tag.Dt8nijLW.js} +2 -2
- package/dist/chunks/{ai-tag.AyG2UWCB.js.map → ai-tag.Dt8nijLW.js.map} +1 -1
- package/dist/chunks/{alert.CXRb-Smf.js → alert.CLqcPN0Q.js} +73 -55
- package/dist/chunks/alert.CLqcPN0Q.js.map +1 -0
- package/dist/chunks/{base-modal.C52VMtnd.js → base-modal.DMdzcBrq.js} +3 -3
- package/dist/chunks/base-modal.DMdzcBrq.js.map +1 -0
- package/dist/chunks/{button-actions-with-menu.OsPQ-POD.js → button-actions-with-menu.CXFziNUr.js} +2 -2
- package/dist/chunks/{button-actions-with-menu.OsPQ-POD.js.map → button-actions-with-menu.CXFziNUr.js.map} +1 -1
- package/dist/chunks/{button-actions.Bdbu0bvt.js → button-actions.CXD6_9qN.js} +4 -4
- package/dist/chunks/button-actions.CXD6_9qN.js.map +1 -0
- package/dist/chunks/button-actions.types.BptAXjD8.js.map +1 -1
- package/dist/chunks/button.C9b2AC9w.js.map +1 -1
- package/dist/chunks/{calendar.CqsfThnC.js → calendar.rZsIZPxm.js} +526 -466
- package/dist/chunks/calendar.rZsIZPxm.js.map +1 -0
- package/dist/chunks/{card.8z7UQeVK.js → card.Brma5kdb.js} +2 -2
- package/dist/chunks/card.Brma5kdb.js.map +1 -0
- package/dist/chunks/{checkbox-group.Dur2Edtw.js → checkbox-group.DWZvFkjz.js} +4 -4
- package/dist/chunks/checkbox-group.DWZvFkjz.js.map +1 -0
- package/dist/chunks/{checkbox.vNjt6QDJ.js → checkbox.BZP0wtnE.js} +3 -5
- package/dist/chunks/checkbox.BZP0wtnE.js.map +1 -0
- package/dist/chunks/{code-snippet.BVpFBhKq.js → code-snippet.DHAymIXp.js} +3 -3
- package/dist/chunks/code-snippet.DHAymIXp.js.map +1 -0
- package/dist/chunks/constructNow.CK0ryPil.js +8 -0
- package/dist/chunks/{constructNow.CIc7d13I.js.map → constructNow.CK0ryPil.js.map} +1 -1
- package/dist/chunks/country.types.jjXwaoMl.js.map +1 -1
- package/dist/chunks/{dashboard-section.DNxNVV44.js → dashboard-section.D9rS8myE.js} +2 -2
- package/dist/chunks/{dashboard-section.DNxNVV44.js.map → dashboard-section.D9rS8myE.js.map} +1 -1
- package/dist/chunks/{dashed-underline.DL2_sik5.js → dashed-underline.D_FhFRXM.js} +2 -2
- package/dist/chunks/{dashed-underline.DL2_sik5.js.map → dashed-underline.D_FhFRXM.js.map} +1 -1
- package/dist/chunks/{data-grid-template.BFv1zr6g.js → data-grid-template.CRijG20n.js} +2 -2
- package/dist/chunks/{data-grid-template.BFv1zr6g.js.map → data-grid-template.CRijG20n.js.map} +1 -1
- package/dist/chunks/{data-grid.ZHY5EzP3.js → data-grid.hMM9F36T.js} +363 -363
- package/dist/chunks/data-grid.hMM9F36T.js.map +1 -0
- package/dist/chunks/{date-picker.kl6aFlr1.js → date-picker.BSo6Cvum.js} +7 -7
- package/dist/chunks/{date-picker.kl6aFlr1.js.map → date-picker.BSo6Cvum.js.map} +1 -1
- package/dist/chunks/date-picker.types.Ckt7zxGy.js.map +1 -1
- package/dist/chunks/{date-range-picker.LCWVAa5R.js → date-range-picker.D90k5b8p.js} +419 -411
- package/dist/chunks/date-range-picker.D90k5b8p.js.map +1 -0
- package/dist/chunks/date-range-picker.types.Ckt7zxGy.js.map +1 -1
- package/dist/chunks/{de.BJvo6njq.js → de.pvjpUJ1o.js} +2 -2
- package/dist/chunks/{de.BJvo6njq.js.map → de.pvjpUJ1o.js.map} +1 -1
- package/dist/chunks/{differenceInMonths.CIYECBxK.js → differenceInMonths.CpwVtHZX.js} +3 -2
- package/dist/chunks/{differenceInMonths.CIYECBxK.js.map → differenceInMonths.CpwVtHZX.js.map} +1 -1
- package/dist/chunks/{draggable-handle.Ba28eM8o.js → draggable-handle.BR_aQH5N.js} +2 -2
- package/dist/chunks/{draggable-handle.Ba28eM8o.js.map → draggable-handle.BR_aQH5N.js.map} +1 -1
- package/dist/chunks/{dropdown-tag.B61hPq5n.js → dropdown-tag.z3rsxbpW.js} +4 -4
- package/dist/chunks/dropdown-tag.z3rsxbpW.js.map +1 -0
- package/dist/chunks/{dropdown.Ca-f8tdX.js → dropdown.BYJwx-JD.js} +313 -305
- package/dist/chunks/dropdown.BYJwx-JD.js.map +1 -0
- package/dist/chunks/{en-GB.C3-QUpva.js → en-GB.-Q7Oq-nY.js} +2 -2
- package/dist/chunks/{en-GB.C3-QUpva.js.map → en-GB.-Q7Oq-nY.js.map} +1 -1
- package/dist/chunks/{en-US.YeSsZuOc.js → en-US.BK5uiAND.js} +5 -5
- package/dist/chunks/{en-US.YeSsZuOc.js.map → en-US.BK5uiAND.js.map} +1 -1
- package/dist/chunks/{es.DyUjjSL8.js → es.2H4LvTyV.js} +2 -2
- package/dist/chunks/{es.DyUjjSL8.js.map → es.2H4LvTyV.js.map} +1 -1
- package/dist/chunks/{file-uploader.DeWmLpfp.js → file-uploader.Djl0xaDN.js} +4 -5
- package/dist/chunks/{file-uploader.DeWmLpfp.js.map → file-uploader.Djl0xaDN.js.map} +1 -1
- package/dist/chunks/{filter-bar.Bd4ghW_B.js → filter-bar.C9rWMIWO.js} +50 -50
- package/dist/chunks/filter-bar.C9rWMIWO.js.map +1 -0
- package/dist/chunks/{footer-actions.CvUaoMzj.js → footer-actions.D9mHwk5l.js} +2 -2
- package/dist/chunks/{footer-actions.CvUaoMzj.js.map → footer-actions.D9mHwk5l.js.map} +1 -1
- package/dist/chunks/{form-layout-title.DzGajv4U.js → form-layout-title.zZVLCyqe.js} +2 -2
- package/dist/chunks/{form-layout-title.DzGajv4U.js.map → form-layout-title.zZVLCyqe.js.map} +1 -1
- package/dist/chunks/{fr.JD_4GwS8.js → fr.Cu0IIfBP.js} +2 -2
- package/dist/chunks/{fr.JD_4GwS8.js.map → fr.Cu0IIfBP.js.map} +1 -1
- package/dist/chunks/{header-meta.AXUGoqDd.js → header-meta.BSPnWWmi.js} +14 -14
- package/dist/chunks/{header-meta.AXUGoqDd.js.map → header-meta.BSPnWWmi.js.map} +1 -1
- package/dist/chunks/{header-with-views.Ba4dswJF.js → header-with-views.g6J7x6l2.js} +8 -8
- package/dist/chunks/{header-with-views.Ba4dswJF.js.map → header-with-views.g6J7x6l2.js.map} +1 -1
- package/dist/chunks/{header.C7B7RBib.js → header.DyZG7qWe.js} +3 -3
- package/dist/chunks/header.DyZG7qWe.js.map +1 -0
- package/dist/chunks/{input-field-password.BNAtIn_D.js → input-field-password.CiDdI6A_.js} +4 -4
- package/dist/chunks/input-field-password.CiDdI6A_.js.map +1 -0
- package/dist/chunks/{input-field-phone-number.CEYx1s4b.js → input-field-phone-number.DFS58acU.js} +3 -3
- package/dist/chunks/{input-field-phone-number.CEYx1s4b.js.map → input-field-phone-number.DFS58acU.js.map} +1 -1
- package/dist/chunks/input-field.CGLjYab8.js +222 -0
- package/dist/chunks/input-field.CGLjYab8.js.map +1 -0
- package/dist/chunks/{input-time.BLuMfakv.js → input-time.BhAUyKZM.js} +4 -4
- package/dist/chunks/{input-time.BLuMfakv.js.map → input-time.BhAUyKZM.js.map} +1 -1
- package/dist/chunks/isSameWeek.TrpUOIn5.js +14 -0
- package/dist/chunks/{isSameWeek.CzBCmu7d.js.map → isSameWeek.TrpUOIn5.js.map} +1 -1
- package/dist/chunks/{it.BlUnV-yA.js → it.B65snrJA.js} +3 -3
- package/dist/chunks/{it.BlUnV-yA.js.map → it.B65snrJA.js.map} +1 -1
- package/dist/chunks/{ja.nUwDmVf2.js → ja.xGVfFSzL.js} +2 -2
- package/dist/chunks/{ja.nUwDmVf2.js.map → ja.xGVfFSzL.js.map} +1 -1
- package/dist/chunks/link.DB5g6d48.js.map +1 -1
- package/dist/chunks/{modal-fullscreen.DTvg2NLk.js → modal-fullscreen.De6mevyD.js} +2 -2
- package/dist/chunks/{modal-fullscreen.DTvg2NLk.js.map → modal-fullscreen.De6mevyD.js.map} +1 -1
- package/dist/chunks/{modal.D_TcWTkf.js → modal.BXxwn9H4.js} +93 -91
- package/dist/chunks/{modal.D_TcWTkf.js.map → modal.BXxwn9H4.js.map} +1 -1
- package/dist/chunks/{pagination.D6BxMw5L.js → pagination.BzsKZFnw.js} +2 -2
- package/dist/chunks/{pagination.D6BxMw5L.js.map → pagination.BzsKZFnw.js.map} +1 -1
- package/dist/chunks/payment-method.types.BqtH7RM2.js.map +1 -1
- package/dist/chunks/popover.types.hA13DZPg.js.map +1 -1
- package/dist/chunks/popper-container.C_n9Ds1W.js.map +1 -1
- package/dist/chunks/promo-banner.Dc_kK1x9.js.map +1 -1
- package/dist/chunks/{pt-BR.BCU2Hj36.js → pt-BR.D9FuAQZm.js} +2 -2
- package/dist/chunks/{pt-BR.BCU2Hj36.js.map → pt-BR.D9FuAQZm.js.map} +1 -1
- package/dist/chunks/radio-group.Bb-L-0io.js.map +1 -1
- package/dist/chunks/{rich-text-editor.Dtdfh-0V.js → rich-text-editor.DPpIzYid.js} +3 -3
- package/dist/chunks/{rich-text-editor.Dtdfh-0V.js.map → rich-text-editor.DPpIzYid.js.map} +1 -1
- package/dist/chunks/{search-bar.MVJS9-Mh.js → search-bar.BEOieKeA.js} +4 -4
- package/dist/chunks/{search-bar.MVJS9-Mh.js.map → search-bar.BEOieKeA.js.map} +1 -1
- package/dist/chunks/{secondary-nav.C-nPZR-2.js → secondary-nav.BBL5zZPK.js} +2 -2
- package/dist/chunks/{secondary-nav.C-nPZR-2.js.map → secondary-nav.BBL5zZPK.js.map} +1 -1
- package/dist/chunks/segmented-control.types.BHRLV8KU.js.map +1 -1
- package/dist/chunks/{sidepanel.BTRfwGiS.js → sidepanel.nW0Bhk_u.js} +3 -3
- package/dist/chunks/{sidepanel.BTRfwGiS.js.map → sidepanel.nW0Bhk_u.js.map} +1 -1
- package/dist/chunks/{startOfWeek.CXhhX-R7.js → startOfWeek.Br5KM4z_.js} +2 -2
- package/dist/chunks/{startOfWeek.CXhhX-R7.js.map → startOfWeek.Br5KM4z_.js.map} +1 -1
- package/dist/chunks/status.types.Dx8MDhEH.js.map +1 -1
- package/dist/chunks/{summary-grid.types.DUIqCmwg.js → summary-grid.types.Dp_efYVN.js} +2 -2
- package/dist/chunks/{summary-grid.types.DUIqCmwg.js.map → summary-grid.types.Dp_efYVN.js.map} +1 -1
- package/dist/chunks/tag.D2xagTJv.js.map +1 -1
- package/dist/chunks/textarea.CJS-1I41.js.map +1 -1
- package/dist/chunks/{timeline-item.BOUWkLi1.js → timeline-item.CF9jbIRr.js} +4 -4
- package/dist/chunks/timeline-item.CF9jbIRr.js.map +1 -0
- package/dist/chunks/{toggle.B1z1YPe_.js → toggle.Ca-MM3dt.js} +3 -5
- package/dist/chunks/toggle.Ca-MM3dt.js.map +1 -0
- package/dist/chunks/tooltip.BxtnF3is.js.map +1 -1
- package/dist/chunks/{tutorial.CZt_mcuT.js → tutorial.CoWDVs7_.js} +2 -2
- package/dist/chunks/{tutorial.CZt_mcuT.js.map → tutorial.CoWDVs7_.js.map} +1 -1
- package/dist/chunks/typography.C8lPlsbD.js.map +1 -1
- package/dist/chunks/{use-cached-selected-values.BJbWbkEQ.js → use-cached-selected-values.Du8-wWR2.js} +616 -551
- package/dist/chunks/use-cached-selected-values.Du8-wWR2.js.map +1 -0
- package/dist/chunks/{use-date-input-formatter.Djf8AoLr.js → use-date-input-formatter.ibZeLD_V.js} +4 -4
- package/dist/chunks/{use-date-input-formatter.Djf8AoLr.js.map → use-date-input-formatter.ibZeLD_V.js.map} +1 -1
- package/dist/chunks/{zh-CN.ChYkuQAR.js → zh-CN.Be4pa3-g.js} +3 -3
- package/dist/chunks/{zh-CN.ChYkuQAR.js.map → zh-CN.Be4pa3-g.js.map} +1 -1
- package/dist/code-snippet.js +1 -1
- package/dist/dashboard-template.js +1 -1
- package/dist/dashed-underline.js +1 -1
- package/dist/data-grid-template.js +1 -1
- package/dist/data-grid.js +1 -1
- package/dist/date-picker.js +2 -2
- package/dist/date-range-picker.js +2 -2
- package/dist/draggable.js +1 -1
- package/dist/dropdown.js +3 -3
- package/dist/file-uploader.js +1 -1
- package/dist/filter-bar.js +1 -1
- package/dist/form-layout.js +1 -1
- package/dist/header-with-views.js +1 -1
- package/dist/header.js +1 -1
- package/dist/index.js +40 -40
- package/dist/index.js.map +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/input-time.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/rich-text-editor.js +1 -1
- package/dist/search-bar.js +2 -2
- package/dist/secondary-nav.js +1 -1
- package/dist/sidepanel.js +1 -1
- package/dist/summary-grid.js +1 -1
- package/dist/timeline.js +1 -1
- package/dist/toggle.js +1 -1
- package/dist/tutorial.js +1 -1
- package/dist/web-types.json +45 -4
- package/package.json +5 -5
- package/dist/chunks/alert.CXRb-Smf.js.map +0 -1
- package/dist/chunks/base-modal.C52VMtnd.js.map +0 -1
- package/dist/chunks/button-actions.Bdbu0bvt.js.map +0 -1
- package/dist/chunks/calendar.CqsfThnC.js.map +0 -1
- package/dist/chunks/card.8z7UQeVK.js.map +0 -1
- package/dist/chunks/checkbox-group.Dur2Edtw.js.map +0 -1
- package/dist/chunks/checkbox.vNjt6QDJ.js.map +0 -1
- package/dist/chunks/code-snippet.BVpFBhKq.js.map +0 -1
- package/dist/chunks/constructNow.CIc7d13I.js +0 -8
- package/dist/chunks/data-grid.ZHY5EzP3.js.map +0 -1
- package/dist/chunks/date-range-picker.LCWVAa5R.js.map +0 -1
- package/dist/chunks/dropdown-tag.B61hPq5n.js.map +0 -1
- package/dist/chunks/dropdown.Ca-f8tdX.js.map +0 -1
- package/dist/chunks/filter-bar.Bd4ghW_B.js.map +0 -1
- package/dist/chunks/header.C7B7RBib.js.map +0 -1
- package/dist/chunks/input-field-password.BNAtIn_D.js.map +0 -1
- package/dist/chunks/input-field.Dh5W0Az-.js +0 -211
- package/dist/chunks/input-field.Dh5W0Az-.js.map +0 -1
- package/dist/chunks/isSameWeek.CzBCmu7d.js +0 -14
- package/dist/chunks/timeline-item.BOUWkLi1.js.map +0 -1
- package/dist/chunks/toggle.B1z1YPe_.js.map +0 -1
- package/dist/chunks/use-cached-selected-values.BJbWbkEQ.js.map +0 -1
- package/dist/chunks/warning-filled.CbJ1pcB2.js +0 -24
- package/dist/chunks/warning-filled.CbJ1pcB2.js.map +0 -1
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import { B as
|
|
3
|
-
import { g as
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
import { C as
|
|
7
|
-
import { C as
|
|
8
|
-
import { n as
|
|
9
|
-
import { s as
|
|
10
|
-
import { C as
|
|
11
|
-
import { C as
|
|
1
|
+
import { ref as C, watch as Z, computed as s, defineComponent as B, useSlots as Q, toRefs as Oe, useAttrs as Ee, nextTick as D, toRef as k, inject as Ve } from "vue";
|
|
2
|
+
import { B as Ie, d as le } from "./typography.C8lPlsbD.js";
|
|
3
|
+
import { g as K } from "./generate-uid.NJ8tVoha.js";
|
|
4
|
+
import { u as G } from "./index.B6WW_F-J.js";
|
|
5
|
+
import { u as De } from "./use-has-slot.C9lQZ6nz.js";
|
|
6
|
+
import { C as Ke } from "./cross-circle-fill.DTDtgLMf.js";
|
|
7
|
+
import { C as qe } from "./cross-circle-fill-small.DfxDedRr.js";
|
|
8
|
+
import { n as R } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
|
|
9
|
+
import { s as q } from "./events.BQOQSSb7.js";
|
|
10
|
+
import { C as ze } from "./chevron-down.eYtgv5ly.js";
|
|
11
|
+
import { C as Ue } from "./chevron-up.d8cwIlA_.js";
|
|
12
12
|
/* empty css */
|
|
13
|
-
import { u as
|
|
14
|
-
import { u as
|
|
15
|
-
import { B as m, b as
|
|
16
|
-
import { u as
|
|
17
|
-
import { B as
|
|
18
|
-
import { B as
|
|
19
|
-
import { F as
|
|
20
|
-
import { E as
|
|
21
|
-
import { P as
|
|
22
|
-
import { h as
|
|
13
|
+
import { u as We } from "./aria-label.CaUURpnB.js";
|
|
14
|
+
import { u as je } from "./form-field.D_2g7vaP.js";
|
|
15
|
+
import { B as m, b as ne, a as xe, d as He, u as Ye, c as Je, e as Xe } from "./use-cached-selected-values.Du8-wWR2.js";
|
|
16
|
+
import { u as Ze } from "./use-form-layout-loading.CWbjZiwP.js";
|
|
17
|
+
import { B as N, a as Qe } from "./keyboard-navigation.DWmhelVv.js";
|
|
18
|
+
import { B as Ge } from "./directive.Bfr4fuOy.js";
|
|
19
|
+
import { F as et } from "./field-label.DjjjkcO6.js";
|
|
20
|
+
import { E as tt } from "./error-message.CyERcfdt.js";
|
|
21
|
+
import { P as we } from "./popper-container.C_n9Ds1W.js";
|
|
22
|
+
import { h as at } from "./button-actions.CXD6_9qN.js";
|
|
23
23
|
import "../assets/dropdown.css";
|
|
24
|
-
var
|
|
25
|
-
const
|
|
24
|
+
var z = /* @__PURE__ */ ((l) => (l.DEFAULT = "DropdownInputDefault", l.SMALL = "DropdownInputSmall", l))(z || {});
|
|
25
|
+
const ot = {
|
|
26
26
|
"de-DE": {
|
|
27
27
|
apply: "Anwenden",
|
|
28
28
|
cancel: "Abbrechen",
|
|
@@ -73,9 +73,9 @@ const at = {
|
|
|
73
73
|
cancel: "取消",
|
|
74
74
|
noOptionsMatchThisSearch: "没有符合此搜索条件的选项"
|
|
75
75
|
}
|
|
76
|
-
},
|
|
77
|
-
const o =
|
|
78
|
-
|
|
76
|
+
}, lt = (l, t, a, e) => {
|
|
77
|
+
const o = C(l.value), { t: n } = G();
|
|
78
|
+
Z(l, () => {
|
|
79
79
|
o.value = l.value;
|
|
80
80
|
});
|
|
81
81
|
const r = s(
|
|
@@ -86,7 +86,7 @@ const at = {
|
|
|
86
86
|
o.value = l.value, e(m.CLOSE_DROPDOWN);
|
|
87
87
|
}, y = () => {
|
|
88
88
|
a.value && t.value && (o.value = l.value);
|
|
89
|
-
},
|
|
89
|
+
}, f = s(() => [
|
|
90
90
|
{
|
|
91
91
|
title: n("apply"),
|
|
92
92
|
event: d,
|
|
@@ -96,39 +96,39 @@ const at = {
|
|
|
96
96
|
title: n("cancel"),
|
|
97
97
|
event: c
|
|
98
98
|
}
|
|
99
|
-
]), p = (
|
|
100
|
-
o.value =
|
|
101
|
-
}, i = (
|
|
102
|
-
p(
|
|
103
|
-
},
|
|
104
|
-
p(
|
|
105
|
-
},
|
|
106
|
-
p(
|
|
99
|
+
]), p = (u) => {
|
|
100
|
+
o.value = u, t.value || e(m.SELECT, u);
|
|
101
|
+
}, i = (u) => {
|
|
102
|
+
p(u), e(m.TAB);
|
|
103
|
+
}, S = (u) => {
|
|
104
|
+
p(u), e(m.ENTER);
|
|
105
|
+
}, v = (u) => {
|
|
106
|
+
p(u), e(m.SPACE);
|
|
107
107
|
}, _ = () => {
|
|
108
108
|
c(), e(m.ESCAPE);
|
|
109
|
-
},
|
|
109
|
+
}, x = () => {
|
|
110
110
|
e(m.SHOW_MORE);
|
|
111
111
|
}, L = {
|
|
112
112
|
[m.SELECT]: p,
|
|
113
|
-
[m.SHOW_MORE]:
|
|
113
|
+
[m.SHOW_MORE]: x,
|
|
114
114
|
[m.TAB]: i,
|
|
115
|
-
[m.SPACE]:
|
|
116
|
-
[m.ENTER]:
|
|
115
|
+
[m.SPACE]: v,
|
|
116
|
+
[m.ENTER]: S
|
|
117
117
|
};
|
|
118
118
|
return {
|
|
119
119
|
// Values
|
|
120
|
-
actions:
|
|
120
|
+
actions: f,
|
|
121
121
|
internalSelectedValue: o,
|
|
122
122
|
// Methods
|
|
123
123
|
listeners: L,
|
|
124
124
|
onEscapeKey: _,
|
|
125
125
|
onOutsideDropdownClick: y
|
|
126
126
|
};
|
|
127
|
-
},
|
|
128
|
-
i18n: { messages:
|
|
127
|
+
}, nt = B({
|
|
128
|
+
i18n: { messages: ot },
|
|
129
129
|
name: "bento-dropdown-options-container"
|
|
130
|
-
}),
|
|
131
|
-
...
|
|
130
|
+
}), st = /* @__PURE__ */ B({
|
|
131
|
+
...nt,
|
|
132
132
|
props: {
|
|
133
133
|
/**
|
|
134
134
|
* Defines a string value that labels an interactive element.
|
|
@@ -187,8 +187,8 @@ const at = {
|
|
|
187
187
|
*/
|
|
188
188
|
lazyLoadType: {
|
|
189
189
|
type: String,
|
|
190
|
-
default:
|
|
191
|
-
validator: (l) => Object.values(
|
|
190
|
+
default: xe.AUTOMATIC,
|
|
191
|
+
validator: (l) => Object.values(xe).includes(l)
|
|
192
192
|
},
|
|
193
193
|
/**
|
|
194
194
|
* Indicates if new options are lazy loading.
|
|
@@ -218,7 +218,7 @@ const at = {
|
|
|
218
218
|
*
|
|
219
219
|
* If enabled, hides the "Select all" checkbox in "multiple" mode.
|
|
220
220
|
*/
|
|
221
|
-
searching:
|
|
221
|
+
searching: ne.props.searching,
|
|
222
222
|
/**
|
|
223
223
|
* If enabled, dropdown will display non-selectable, static categories
|
|
224
224
|
*/
|
|
@@ -227,7 +227,7 @@ const at = {
|
|
|
227
227
|
* Reference to the DOM element or Vue component for positioning
|
|
228
228
|
* the Dropdown container.
|
|
229
229
|
*/
|
|
230
|
-
targetElement: { type:
|
|
230
|
+
targetElement: { type: we.props.targetElement.type, required: !0 },
|
|
231
231
|
/**
|
|
232
232
|
* Enables virtual scrolling if set to true or by providing an object with itemHeight function.
|
|
233
233
|
* The itemHeight function is used to calculate the height of rendered item given it's index.
|
|
@@ -239,11 +239,11 @@ const at = {
|
|
|
239
239
|
},
|
|
240
240
|
emits: [],
|
|
241
241
|
setup(l, { expose: t, emit: a }) {
|
|
242
|
-
const e = l, o =
|
|
242
|
+
const e = l, o = Q(), { selectedValue: n, multiple: r } = Oe(e), d = C(null), { t: c } = G(), y = s(() => e.open && !e.disabled), f = s(() => c("noOptionsMatchThisSearch")), p = s(() => ({
|
|
243
243
|
"b-dropdown-options-container--single": !(e != null && e.multiple)
|
|
244
244
|
})), i = s(() => ({
|
|
245
245
|
"b-dropdown-options-container__listbox--single": !(e != null && e.multiple)
|
|
246
|
-
})), { actions:
|
|
246
|
+
})), { actions: S, internalSelectedValue: v, listeners: _, onEscapeKey: x, onOutsideDropdownClick: L } = lt(n, r, y, a), u = s(() => e != null && e.multiple ? at : we), T = s(() => {
|
|
247
247
|
var A;
|
|
248
248
|
const I = {
|
|
249
249
|
"min-width": `${(A = e == null ? void 0 : e.targetElement) == null ? void 0 : A.clientWidth}px`,
|
|
@@ -252,10 +252,10 @@ const at = {
|
|
|
252
252
|
return e != null && e.multiple ? {
|
|
253
253
|
actionsLayout: "space-between",
|
|
254
254
|
ariaLabel: e.ariaLabel,
|
|
255
|
-
actions:
|
|
255
|
+
actions: S.value,
|
|
256
256
|
divider: !0,
|
|
257
257
|
fallbackPosition: ["top-start"],
|
|
258
|
-
id:
|
|
258
|
+
id: K(`dropdown-options-${e.id}`),
|
|
259
259
|
open: e.open,
|
|
260
260
|
position: "bottom-start",
|
|
261
261
|
style: {
|
|
@@ -276,10 +276,10 @@ const at = {
|
|
|
276
276
|
});
|
|
277
277
|
return t({
|
|
278
278
|
onOutsideDropdownClick: L
|
|
279
|
-
}), { __sfc: !0, slots: o, emit: a, props: e, selectedValue: n, multiple: r, dropdownOptionsListboxRef: d, t: c, isDropdownOpen: y, noResultsMessage:
|
|
279
|
+
}), { __sfc: !0, slots: o, emit: a, props: e, selectedValue: n, multiple: r, dropdownOptionsListboxRef: d, t: c, isDropdownOpen: y, noResultsMessage: f, conditionalClasses: p, conditionalListboxClasses: i, actions: S, internalSelectedValue: v, listeners: _, onEscapeKey: x, onOutsideDropdownClick: L, popperContainerOrPopoverComponent: u, popperContainerOrPopoverProps: T, BentoListbox: ne };
|
|
280
280
|
}
|
|
281
281
|
});
|
|
282
|
-
var
|
|
282
|
+
var rt = function() {
|
|
283
283
|
var t = this, a = t._self._c, e = t._self._setupProxy;
|
|
284
284
|
return e.isDropdownOpen ? a(e.popperContainerOrPopoverComponent, t._b({ tag: "component", staticClass: "b-dropdown-options-container", class: e.conditionalClasses }, "component", e.popperContainerOrPopoverProps, !1), [a("div", { on: { keydown: function(o) {
|
|
285
285
|
return !o.type.indexOf("key") && t._k(o.keyCode, "esc", 27, o.key, ["Esc", "Escape"]) ? null : e.onEscapeKey.apply(null, arguments);
|
|
@@ -288,17 +288,17 @@ var st = function() {
|
|
|
288
288
|
return [t._t(n, null, null, r)];
|
|
289
289
|
} };
|
|
290
290
|
})], null, !0) }, e.listeners))], 1)]) : t._e();
|
|
291
|
-
},
|
|
292
|
-
nt,
|
|
291
|
+
}, it = [], dt = /* @__PURE__ */ R(
|
|
293
292
|
st,
|
|
294
293
|
rt,
|
|
294
|
+
it,
|
|
295
295
|
!1,
|
|
296
296
|
null,
|
|
297
297
|
"eb9fd4be"
|
|
298
298
|
);
|
|
299
|
-
const
|
|
300
|
-
var E = /* @__PURE__ */ ((l) => (l.DISABLED = "disabled", l.READONLY = "readonly", l.HAS_ITEMS = "has-items", l.OPENED = "opened", l.ERROR = "error", l))(E || {}),
|
|
301
|
-
const
|
|
299
|
+
const ct = dt.exports;
|
|
300
|
+
var E = /* @__PURE__ */ ((l) => (l.DISABLED = "disabled", l.READONLY = "readonly", l.HAS_ITEMS = "has-items", l.OPENED = "opened", l.ERROR = "error", l))(E || {}), g = /* @__PURE__ */ ((l) => (l.OPEN = "dropdown-base-open", l.KEYDOWN = "dropdown-base-keydown", l.CLOSE = "dropdown-base-close", l.INPUT = "dropdown-base-input", l.CLEAR = "dropdown-base-clear", l))(g || {});
|
|
301
|
+
const ut = {
|
|
302
302
|
"de-DE": {
|
|
303
303
|
clearSearch: "Suche löschen"
|
|
304
304
|
},
|
|
@@ -329,12 +329,12 @@ const ct = {
|
|
|
329
329
|
"zh-CN": {
|
|
330
330
|
clearSearch: "清除搜索"
|
|
331
331
|
}
|
|
332
|
-
},
|
|
333
|
-
i18n: { messages:
|
|
332
|
+
}, pt = B({
|
|
333
|
+
i18n: { messages: ut },
|
|
334
334
|
name: "dropdown-base-textbox",
|
|
335
335
|
inheritAttrs: !1
|
|
336
|
-
}),
|
|
337
|
-
...
|
|
336
|
+
}), ft = /* @__PURE__ */ B({
|
|
337
|
+
...pt,
|
|
338
338
|
props: {
|
|
339
339
|
/**
|
|
340
340
|
* The number of additional items that have been selected in the dropdown.
|
|
@@ -420,21 +420,21 @@ const ct = {
|
|
|
420
420
|
},
|
|
421
421
|
emits: [],
|
|
422
422
|
setup(l, { expose: t, emit: a }) {
|
|
423
|
-
const e = l, { t: o } =
|
|
423
|
+
const e = l, { t: o } = G(), n = Ee(), r = Q(), d = De(r), c = C(null), y = K("textbox"), f = s(() => ({
|
|
424
424
|
[`b-dropdown-base-textbox--${E.DISABLED}`]: e.disabled,
|
|
425
425
|
[`b-dropdown-base-textbox--${E.READONLY}`]: e.readonly,
|
|
426
426
|
[`b-dropdown-base-textbox--${E.HAS_ITEMS}`]: !!e.additionalItemsSelected
|
|
427
427
|
})), p = s(
|
|
428
|
-
() =>
|
|
428
|
+
() => x.value && n["aria-required"] ? "true" : null
|
|
429
429
|
), i = s(() => ({
|
|
430
430
|
"b-dropdown-base-textbox__input--dynamic-filtering": e.dynamicFiltering
|
|
431
|
-
})),
|
|
431
|
+
})), S = s(() => e.dynamicFiltering && !!e.value && e.open), v = s(
|
|
432
432
|
() => {
|
|
433
|
-
var
|
|
433
|
+
var O;
|
|
434
434
|
return {
|
|
435
435
|
"aria-haspopup": "listbox",
|
|
436
436
|
"aria-controls": e.ariaControls,
|
|
437
|
-
"aria-describedby": (
|
|
437
|
+
"aria-describedby": (O = n["aria-describedby"]) == null ? void 0 : O.toString(),
|
|
438
438
|
"aria-expanded": e.ariaExpanded ? "true" : "false",
|
|
439
439
|
"aria-labelledby": e.ariaLabelledby,
|
|
440
440
|
"aria-label": e.ariaLabelledby ? null : e.ariaLabel,
|
|
@@ -445,34 +445,34 @@ const ct = {
|
|
|
445
445
|
}
|
|
446
446
|
), _ = s(
|
|
447
447
|
() => e.multiple ? e.selectedValueItem : []
|
|
448
|
-
),
|
|
448
|
+
), x = s(() => e.dynamicFiltering && (e.open || e.alwaysComboboxIsInput)), L = s(() => e.selectedValueItem && !e.multiple), u = s(
|
|
449
449
|
() => e.multiple && e.selectedValueItem && _.value.length > 0 && e.showSlotContentInMultiple
|
|
450
450
|
);
|
|
451
|
-
|
|
452
|
-
() =>
|
|
451
|
+
Z(
|
|
452
|
+
() => x.value,
|
|
453
453
|
() => {
|
|
454
|
-
|
|
454
|
+
x.value && !e.alwaysComboboxIsInput && D(() => {
|
|
455
455
|
c.value.focus();
|
|
456
456
|
});
|
|
457
457
|
}
|
|
458
458
|
);
|
|
459
|
-
const
|
|
460
|
-
!e.disabled && !e.readonly && (a(
|
|
459
|
+
const T = async () => {
|
|
460
|
+
!e.disabled && !e.readonly && (a(g.OPEN), await D(), c.value.focus());
|
|
461
461
|
}, I = () => {
|
|
462
|
-
e.open && (c.value.focus(), a(
|
|
463
|
-
}, A = (
|
|
464
|
-
a(
|
|
465
|
-
},
|
|
466
|
-
!e.readonly && !e.disabled ? a(
|
|
467
|
-
},
|
|
462
|
+
e.open && (c.value.focus(), a(g.CLOSE));
|
|
463
|
+
}, A = (O) => e.open && O.target.tagName === "INPUT" ? null : e.open ? I() : T(), F = () => {
|
|
464
|
+
a(g.CLEAR), a(g.INPUT, ""), c.value.focus();
|
|
465
|
+
}, P = (O) => {
|
|
466
|
+
!e.readonly && !e.disabled ? a(g.INPUT, O.target.value) : (O.preventDefault(), O.stopPropagation());
|
|
467
|
+
}, M = () => {
|
|
468
468
|
c.value.focus();
|
|
469
469
|
};
|
|
470
470
|
return t({
|
|
471
|
-
focus:
|
|
472
|
-
}), { __sfc: !0, t: o, attrs: n, slots: r, hasSlot: d, props: e, emit: a, textbox: c, textboxId: y, conditionalClasses:
|
|
471
|
+
focus: M
|
|
472
|
+
}), { __sfc: !0, t: o, attrs: n, slots: r, hasSlot: d, props: e, emit: a, textbox: c, textboxId: y, conditionalClasses: f, showRequiredAttribute: p, comboboxConditionalClasses: i, isFiltering: S, ariaAttributes: v, selectedValueItems: _, shouldShowInput: x, shouldShowSingleSelectSlot: L, shouldShowMultipleSlot: u, onOpenDropdown: T, onCloseDropdown: I, onToggleDropdown: A, onClearSearch: F, onInputEvent: P, focus: M, BentoTypography: Ie, DropdownBaseTextboxEvent: g, CrossCircleFillIcon: Ke, CrossCircleFillSmallIcon: qe, BentoDropdownSize: z };
|
|
473
473
|
}
|
|
474
474
|
});
|
|
475
|
-
var
|
|
475
|
+
var bt = function() {
|
|
476
476
|
var t = this, a = t._self._c, e = t._self._setupProxy;
|
|
477
477
|
return a("div", { class: t.$attrs.class, attrs: { "data-testid": "textbox-wrapper" }, on: { click: e.onToggleDropdown, keydown: function(o) {
|
|
478
478
|
return !o.type.indexOf("key") && t._k(o.keyCode, "escape", void 0, o.key, void 0) ? null : e.onCloseDropdown.apply(null, arguments);
|
|
@@ -493,19 +493,19 @@ var ft = function() {
|
|
|
493
493
|
}, keyup: function(o) {
|
|
494
494
|
return !o.type.indexOf("key") && t._k(o.keyCode, "space", 32, o.key, [" ", "Spacebar"]) ? null : e.onClearSearch.apply(null, arguments);
|
|
495
495
|
} } }, [t.size === e.BentoDropdownSize.SMALL ? a(e.CrossCircleFillSmallIcon, { attrs: { "svg-title": e.t("clearSearch") } }) : a(e.CrossCircleFillIcon, { attrs: { "svg-title": e.t("clearSearch") } })], 1) : t._e()])], 1);
|
|
496
|
-
},
|
|
497
|
-
pt,
|
|
496
|
+
}, yt = [], vt = /* @__PURE__ */ R(
|
|
498
497
|
ft,
|
|
499
498
|
bt,
|
|
499
|
+
yt,
|
|
500
500
|
!1,
|
|
501
501
|
null,
|
|
502
502
|
"36875648"
|
|
503
503
|
);
|
|
504
|
-
const
|
|
504
|
+
const Be = vt.exports, mt = B({
|
|
505
505
|
name: "dropdown-default-textbox",
|
|
506
506
|
inheritAttrs: !1
|
|
507
|
-
}),
|
|
508
|
-
...
|
|
507
|
+
}), _t = /* @__PURE__ */ B({
|
|
508
|
+
...mt,
|
|
509
509
|
props: {
|
|
510
510
|
/**
|
|
511
511
|
* The number of additional items that have been selected in the dropdown.
|
|
@@ -593,7 +593,7 @@ const Oe = yt.exports, vt = D({
|
|
|
593
593
|
},
|
|
594
594
|
emits: ["clear", "close", "input", "keydown", "open"],
|
|
595
595
|
setup(l, { expose: t, emit: a }) {
|
|
596
|
-
const e = l, o =
|
|
596
|
+
const e = l, o = Q(), n = C(null), r = s(() => ({
|
|
597
597
|
[`b-dropdown-default-textbox--${E.ERROR}`]: !e.disabled && !e.readonly && e.isInvalid,
|
|
598
598
|
[`b-dropdown-default-textbox--${E.DISABLED}`]: e.disabled,
|
|
599
599
|
[`b-dropdown-default-textbox--${E.READONLY}`]: e.readonly,
|
|
@@ -603,27 +603,27 @@ const Oe = yt.exports, vt = D({
|
|
|
603
603
|
a("input", _);
|
|
604
604
|
}, y = (_) => {
|
|
605
605
|
a("keydown", _);
|
|
606
|
-
},
|
|
607
|
-
|
|
606
|
+
}, f = (_) => {
|
|
607
|
+
q(_), a("open");
|
|
608
608
|
}, p = (_) => {
|
|
609
|
-
|
|
609
|
+
q(_), a("close");
|
|
610
610
|
}, i = (_) => {
|
|
611
|
-
|
|
612
|
-
},
|
|
613
|
-
[
|
|
614
|
-
[
|
|
615
|
-
[
|
|
616
|
-
[
|
|
617
|
-
[
|
|
618
|
-
},
|
|
611
|
+
q(_), a("clear");
|
|
612
|
+
}, S = {
|
|
613
|
+
[g.INPUT]: c,
|
|
614
|
+
[g.OPEN]: f,
|
|
615
|
+
[g.CLOSE]: p,
|
|
616
|
+
[g.CLEAR]: i,
|
|
617
|
+
[g.KEYDOWN]: y
|
|
618
|
+
}, v = () => {
|
|
619
619
|
n.value.focus();
|
|
620
620
|
};
|
|
621
621
|
return t({
|
|
622
|
-
focus:
|
|
623
|
-
}), { __sfc: !0, emit: a, slots: o, props: e, baseTextbox: n, conditionalClasses: r, isDropdownOpen: d, onInput: c, onKeyDown: y, openDropdown:
|
|
622
|
+
focus: v
|
|
623
|
+
}), { __sfc: !0, emit: a, slots: o, props: e, baseTextbox: n, conditionalClasses: r, isDropdownOpen: d, onInput: c, onKeyDown: y, openDropdown: f, closeDropdown: p, clearValue: i, listeners: S, focus: v, DropdownBaseTextbox: Be, ChevronDownIcon: ze, ChevronUpIcon: Ue };
|
|
624
624
|
}
|
|
625
625
|
});
|
|
626
|
-
var
|
|
626
|
+
var ht = function() {
|
|
627
627
|
var t = this, a = t._self._c, e = t._self._setupProxy;
|
|
628
628
|
return a("div", { staticClass: "b-dropdown-default-textbox", class: e.conditionalClasses, attrs: { "data-testid": "default-textbox" } }, [a(e.DropdownBaseTextbox, t._g(t._b({ ref: "baseTextbox", staticClass: "b-dropdown-default-textbox__textbox", attrs: { value: t.value }, scopedSlots: t._u([t._l(e.slots, function(o, n) {
|
|
629
629
|
return { key: n, fn: function(r) {
|
|
@@ -632,55 +632,55 @@ var _t = function() {
|
|
|
632
632
|
}), { key: "icon", fn: function() {
|
|
633
633
|
return [a("div", { staticClass: "b-dropdown-default-textbox__chevron" }, [a(e.ChevronUpIcon, { directives: [{ name: "show", rawName: "v-show", value: e.isDropdownOpen, expression: "isDropdownOpen" }], attrs: { "svg-title": "opened" } }), a(e.ChevronDownIcon, { directives: [{ name: "show", rawName: "v-show", value: !e.isDropdownOpen, expression: "!isDropdownOpen" }], attrs: { "svg-title": "closed" } })], 1)];
|
|
634
634
|
}, proxy: !0 }], null, !0) }, "dropdown-base-textbox", { ...t.$attrs, ...t.$props }, !1), e.listeners))], 1);
|
|
635
|
-
},
|
|
636
|
-
mt,
|
|
635
|
+
}, gt = [], St = /* @__PURE__ */ R(
|
|
637
636
|
_t,
|
|
638
637
|
ht,
|
|
638
|
+
gt,
|
|
639
639
|
!1,
|
|
640
640
|
null,
|
|
641
641
|
"bf2d43b0"
|
|
642
642
|
);
|
|
643
|
-
const
|
|
644
|
-
let
|
|
645
|
-
const
|
|
643
|
+
const xt = St.exports;
|
|
644
|
+
let Ce = 0;
|
|
645
|
+
const wt = {
|
|
646
646
|
beforeCreate() {
|
|
647
|
-
this.uuid =
|
|
647
|
+
this.uuid = Ce.toString(), Ce += 1;
|
|
648
648
|
}
|
|
649
649
|
};
|
|
650
|
-
var
|
|
650
|
+
var Ct = function() {
|
|
651
651
|
var t = this, a = t._self._c;
|
|
652
652
|
return a("svg", t._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", t.$attrs, !1), [t.$attrs["svg-title"] ? a("title", [t._v(t._s(t.$attrs["svg-title"]))]) : t._e(), a("path", { attrs: { fill: "#001222", d: "M5.00011 5.43922L8.00011 8.43922L11.0001 5.43922L12.0608 6.49988L8.00011 10.5605L3.93945 6.49988L5.00011 5.43922Z" } })]);
|
|
653
|
-
},
|
|
654
|
-
xt,
|
|
653
|
+
}, Lt = [], Ot = /* @__PURE__ */ R(
|
|
655
654
|
wt,
|
|
656
655
|
Ct,
|
|
656
|
+
Lt,
|
|
657
657
|
!1,
|
|
658
658
|
null,
|
|
659
659
|
null
|
|
660
660
|
);
|
|
661
|
-
const
|
|
662
|
-
let
|
|
663
|
-
const
|
|
661
|
+
const Et = Ot.exports;
|
|
662
|
+
let Le = 0;
|
|
663
|
+
const It = {
|
|
664
664
|
beforeCreate() {
|
|
665
|
-
this.uuid =
|
|
665
|
+
this.uuid = Le.toString(), Le += 1;
|
|
666
666
|
}
|
|
667
667
|
};
|
|
668
|
-
var
|
|
668
|
+
var Dt = function() {
|
|
669
669
|
var t = this, a = t._self._c;
|
|
670
670
|
return a("svg", t._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", t.$attrs, !1), [t.$attrs["svg-title"] ? a("title", [t._v(t._s(t.$attrs["svg-title"]))]) : t._e(), a("path", { attrs: { fill: "#001222", d: "M10.9999 10.5608L7.9999 7.56077L4.9999 10.5608L3.93924 9.50011L7.9999 5.43945L12.0606 9.50011L10.9999 10.5608Z" } })]);
|
|
671
|
-
},
|
|
672
|
-
Et,
|
|
671
|
+
}, Bt = [], Tt = /* @__PURE__ */ R(
|
|
673
672
|
It,
|
|
674
673
|
Dt,
|
|
674
|
+
Bt,
|
|
675
675
|
!1,
|
|
676
676
|
null,
|
|
677
677
|
null
|
|
678
678
|
);
|
|
679
|
-
const At =
|
|
679
|
+
const At = Tt.exports, kt = B({
|
|
680
680
|
name: "dropdown-small-textbox",
|
|
681
681
|
inheritAttrs: !1
|
|
682
|
-
}),
|
|
683
|
-
...
|
|
682
|
+
}), Nt = /* @__PURE__ */ B({
|
|
683
|
+
...kt,
|
|
684
684
|
props: {
|
|
685
685
|
/**
|
|
686
686
|
* The number of additional items that have been selected in the dropdown.
|
|
@@ -737,48 +737,48 @@ const At = Bt.exports, Tt = D({
|
|
|
737
737
|
},
|
|
738
738
|
emits: ["clear", "close", "input", "keydown", "open"],
|
|
739
739
|
setup(l, { expose: t, emit: a }) {
|
|
740
|
-
const e = l, o =
|
|
740
|
+
const e = l, o = C(null), n = s(() => ({
|
|
741
741
|
[`b-dropdown-small-textbox--${E.DISABLED}`]: e.disabled,
|
|
742
742
|
[`b-dropdown-small-textbox--${E.READONLY}`]: e.readonly,
|
|
743
743
|
[`b-dropdown-small-textbox--${E.OPENED}`]: e.open
|
|
744
|
-
})), r = s(() => e.open && !e.disabled && !e.readonly), d = (
|
|
745
|
-
a("input",
|
|
746
|
-
}, c = (
|
|
747
|
-
a("keydown",
|
|
748
|
-
}, y = (
|
|
749
|
-
|
|
750
|
-
},
|
|
751
|
-
|
|
752
|
-
}, p = (
|
|
753
|
-
|
|
744
|
+
})), r = s(() => e.open && !e.disabled && !e.readonly), d = (v) => {
|
|
745
|
+
a("input", v);
|
|
746
|
+
}, c = (v) => {
|
|
747
|
+
a("keydown", v);
|
|
748
|
+
}, y = (v) => {
|
|
749
|
+
q(v), a("open");
|
|
750
|
+
}, f = (v) => {
|
|
751
|
+
q(v), a("close");
|
|
752
|
+
}, p = (v) => {
|
|
753
|
+
q(v), a("clear");
|
|
754
754
|
}, i = {
|
|
755
|
-
[
|
|
756
|
-
[
|
|
757
|
-
[
|
|
758
|
-
[
|
|
759
|
-
[
|
|
760
|
-
},
|
|
755
|
+
[g.INPUT]: d,
|
|
756
|
+
[g.OPEN]: y,
|
|
757
|
+
[g.CLOSE]: f,
|
|
758
|
+
[g.CLEAR]: p,
|
|
759
|
+
[g.KEYDOWN]: c
|
|
760
|
+
}, S = () => {
|
|
761
761
|
o.value.focus();
|
|
762
762
|
};
|
|
763
763
|
return t({
|
|
764
|
-
focus:
|
|
765
|
-
}), { __sfc: !0, emit: a, props: e, baseTextbox: o, conditionalClasses: n, isDropdownOpen: r, onInput: d, onKeyDown: c, openDropdown: y, closeDropdown:
|
|
764
|
+
focus: S
|
|
765
|
+
}), { __sfc: !0, emit: a, props: e, baseTextbox: o, conditionalClasses: n, isDropdownOpen: r, onInput: d, onKeyDown: c, openDropdown: y, closeDropdown: f, clearValue: p, listeners: i, focus: S, BentoDropdownSize: z, DropdownBaseTextbox: Be, ChevronDownSmallIcon: Et, ChevronUpSmallIcon: At };
|
|
766
766
|
}
|
|
767
767
|
});
|
|
768
|
-
var
|
|
768
|
+
var Mt = function() {
|
|
769
769
|
var t = this, a = t._self._c, e = t._self._setupProxy;
|
|
770
770
|
return a("div", { staticClass: "b-dropdown-small-textbox", class: e.conditionalClasses }, [a(e.DropdownBaseTextbox, t._g(t._b({ ref: "baseTextbox", staticClass: "b-dropdown-small-textbox__textbox", attrs: { size: e.BentoDropdownSize.SMALL }, scopedSlots: t._u([{ key: "icon", fn: function() {
|
|
771
771
|
return [a("div", { staticClass: "b-dropdown-small-textbox__chevron" }, [a(e.ChevronUpSmallIcon, { directives: [{ name: "show", rawName: "v-show", value: e.isDropdownOpen, expression: "isDropdownOpen" }], attrs: { "svg-title": "opened" } }), a(e.ChevronDownSmallIcon, { directives: [{ name: "show", rawName: "v-show", value: !e.isDropdownOpen, expression: "!isDropdownOpen" }], attrs: { "svg-title": "closed" } })], 1)];
|
|
772
772
|
}, proxy: !0 }]) }, "dropdown-base-textbox", { ...t.$attrs, ...t.$props }, !1), e.listeners))], 1);
|
|
773
|
-
},
|
|
774
|
-
kt,
|
|
773
|
+
}, Rt = [], Ft = /* @__PURE__ */ R(
|
|
775
774
|
Nt,
|
|
776
775
|
Mt,
|
|
776
|
+
Rt,
|
|
777
777
|
!1,
|
|
778
778
|
null,
|
|
779
779
|
"faba160c"
|
|
780
780
|
);
|
|
781
|
-
const
|
|
781
|
+
const Pt = Ft.exports, $t = (l, t) => t.value.reduce((a, e) => {
|
|
782
782
|
if (e.items) {
|
|
783
783
|
const o = e.items.filter(
|
|
784
784
|
(r) => l.value.find((d) => d.value === r.value)
|
|
@@ -786,84 +786,87 @@ const Ft = Rt.exports, Pt = (l, t) => t.value.reduce((a, e) => {
|
|
|
786
786
|
o.length === e.items.length ? a.push(e.displayValue ?? e.label) : o.forEach(({ label: r, displayValue: d }) => a.push(d ?? r));
|
|
787
787
|
}
|
|
788
788
|
return l.value.find((o) => o.value === e.value) && a.push(e.displayValue ?? e.label), a;
|
|
789
|
-
}, []).join(", "),
|
|
789
|
+
}, []).join(", "), Vt = ({ items: l, placeholder: t, selectedValues: a, isMultiSelect: e }) => {
|
|
790
790
|
const o = s(
|
|
791
791
|
() => e.value && l.value.find((r) => {
|
|
792
792
|
var d;
|
|
793
793
|
return (d = r.items) == null ? void 0 : d.length;
|
|
794
794
|
})
|
|
795
795
|
);
|
|
796
|
-
return s(() => a.value.length ? o.value ?
|
|
797
|
-
},
|
|
796
|
+
return s(() => a.value.length ? o.value ? $t(a, l) : a.value.map(({ label: r, displayValue: d }) => d ?? r).join(", ") : t.value || null);
|
|
797
|
+
}, Te = (l) => {
|
|
798
798
|
var t;
|
|
799
799
|
(t = l.value.$children) == null || t[0].$refs.textbox.focus();
|
|
800
|
-
},
|
|
800
|
+
}, Kt = ({
|
|
801
801
|
inputContainerRef: l,
|
|
802
802
|
optionsContainerRef: t,
|
|
803
803
|
selectedValueIndex: a,
|
|
804
804
|
isDropdownOpen: e,
|
|
805
805
|
isDynamicFltering: o,
|
|
806
806
|
items: n,
|
|
807
|
-
isMultiple: r
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
807
|
+
isMultiple: r,
|
|
808
|
+
totalItemCount: d,
|
|
809
|
+
isVirtualScroll: c
|
|
810
|
+
}, y, f, p) => {
|
|
811
|
+
const i = async (b) => {
|
|
812
|
+
var w;
|
|
813
|
+
o.value && await D(), (w = n.value[b]) == null || w.focus();
|
|
814
|
+
}, S = async (b) => {
|
|
815
|
+
var H, Y;
|
|
816
|
+
o.value && await D();
|
|
817
|
+
const w = (H = t.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef) == null ? void 0 : H.$el.querySelectorAll(
|
|
816
818
|
"button"
|
|
817
819
|
);
|
|
818
|
-
|
|
819
|
-
},
|
|
820
|
-
var
|
|
821
|
-
return (
|
|
822
|
-
|
|
820
|
+
w != null && w.length ? (Y = w[b]) == null || Y.focus() : i(b);
|
|
821
|
+
}, v = (b) => {
|
|
822
|
+
var w;
|
|
823
|
+
return (w = t.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef) == null ? void 0 : w.setListboxFocusedIndex(
|
|
824
|
+
b
|
|
823
825
|
);
|
|
824
|
-
},
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
i(n.value.length - 1), u(n.value.length - 1);
|
|
826
|
+
}, _ = async (b) => {
|
|
827
|
+
var w;
|
|
828
|
+
await ((w = t.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef) == null ? void 0 : w.navigateToItem(b));
|
|
829
|
+
}, x = (b) => {
|
|
830
|
+
D(() => {
|
|
831
|
+
c ? _(b) : (v(b), i(b));
|
|
831
832
|
});
|
|
832
|
-
}, _ = ({ detail: h }) => {
|
|
833
|
-
h.preventDefault(), x();
|
|
834
|
-
}, C = ({ detail: h }) => {
|
|
835
|
-
h.preventDefault(), b();
|
|
836
833
|
}, L = () => {
|
|
837
|
-
x();
|
|
838
|
-
},
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
h.preventDefault(), d(), e.value && O(() => {
|
|
842
|
-
r ? p(0) : (i(a.value), u(a.value));
|
|
843
|
-
});
|
|
844
|
-
}, I = ({ detail: h }) => {
|
|
845
|
-
h.preventDefault(), d(), e.value && O(() => {
|
|
846
|
-
r ? p(0) : (i(a.value), u(a.value));
|
|
834
|
+
e.value || f(), x(0);
|
|
835
|
+
}, u = () => {
|
|
836
|
+
e.value || f(), D(() => {
|
|
837
|
+
x(c ? d.value - 1 : n.value.length - 1);
|
|
847
838
|
});
|
|
839
|
+
}, T = ({ detail: b }) => {
|
|
840
|
+
b.preventDefault(), L();
|
|
841
|
+
}, I = ({ detail: b }) => {
|
|
842
|
+
b.preventDefault(), u();
|
|
848
843
|
}, A = () => {
|
|
849
|
-
|
|
850
|
-
},
|
|
851
|
-
|
|
844
|
+
L();
|
|
845
|
+
}, F = () => {
|
|
846
|
+
u();
|
|
847
|
+
}, P = ({ detail: b }) => {
|
|
848
|
+
b.preventDefault(), y(), e.value && (r ? S(0) : x(a.value));
|
|
849
|
+
}, M = ({ detail: b }) => {
|
|
850
|
+
b.preventDefault(), y(), e.value && (r ? S(0) : x(a.value));
|
|
851
|
+
}, O = () => {
|
|
852
|
+
e.value && p();
|
|
853
|
+
}, U = () => {
|
|
854
|
+
e.value && (p(), Te(l));
|
|
852
855
|
};
|
|
853
856
|
return s(() => ({
|
|
854
|
-
[
|
|
855
|
-
[
|
|
856
|
-
[
|
|
857
|
-
[
|
|
858
|
-
...o.value ? {} : { [
|
|
859
|
-
[
|
|
860
|
-
...o.value ? {} : { [
|
|
861
|
-
[
|
|
857
|
+
[N.ARROW_DOWN]: T,
|
|
858
|
+
[N.ARROW_UP]: I,
|
|
859
|
+
[N.HOME]: A,
|
|
860
|
+
[N.END]: F,
|
|
861
|
+
...o.value ? {} : { [N.SPACE]: P },
|
|
862
|
+
[N.ENTER]: M,
|
|
863
|
+
...o.value ? {} : { [N.TAB]: O },
|
|
864
|
+
[N.ESCAPE]: U
|
|
862
865
|
}));
|
|
863
|
-
},
|
|
866
|
+
}, qt = ({ inputContainerRef: l, isDropdownOpen: t }, a) => {
|
|
864
867
|
const e = () => {
|
|
865
|
-
t.value && a(),
|
|
866
|
-
|
|
868
|
+
t.value && a(), D(() => {
|
|
869
|
+
Te(l);
|
|
867
870
|
});
|
|
868
871
|
};
|
|
869
872
|
return {
|
|
@@ -873,18 +876,18 @@ const Ft = Rt.exports, Pt = (l, t) => t.value.reduce((a, e) => {
|
|
|
873
876
|
[m.SPACE]: e
|
|
874
877
|
};
|
|
875
878
|
};
|
|
876
|
-
function
|
|
877
|
-
const n =
|
|
878
|
-
return
|
|
879
|
+
function zt(l, t, a, e, o) {
|
|
880
|
+
const n = C(l), r = C(t), d = (f, p = []) => p.flatMap((i) => i.label.toLocaleLowerCase().includes(f) ? e != null && e.value && i.items ? [...d(f, i.items)] : [i, ...d(f, i.items)] : i.items ? [...d(f, i.items)] : []), c = a !== void 0 ? He(() => a(n.value), o ?? 300) : void 0;
|
|
881
|
+
return Z(n, () => {
|
|
879
882
|
c !== void 0 && c();
|
|
880
883
|
}), s(() => {
|
|
881
884
|
if (!n.value || a !== void 0)
|
|
882
885
|
return r.value;
|
|
883
|
-
const
|
|
884
|
-
return d(
|
|
886
|
+
const f = n.value.toLocaleLowerCase();
|
|
887
|
+
return d(f, r.value);
|
|
885
888
|
});
|
|
886
889
|
}
|
|
887
|
-
const
|
|
890
|
+
const Ut = {
|
|
888
891
|
"de-DE": {
|
|
889
892
|
all: "Alle",
|
|
890
893
|
ariaLabelFallback: "Dropdown",
|
|
@@ -935,16 +938,16 @@ const zt = {
|
|
|
935
938
|
ariaLabelFallback: "下拉菜单",
|
|
936
939
|
clearSearch: "清除筛选器"
|
|
937
940
|
}
|
|
938
|
-
},
|
|
939
|
-
i18n: { messages:
|
|
941
|
+
}, Wt = /* @__PURE__ */ Symbol("input field component injection key"), ha = /* @__PURE__ */ Symbol("input field hint injection key"), ga = /* @__PURE__ */ Symbol("input field parent component injection key"), jt = B({
|
|
942
|
+
i18n: { messages: Ut },
|
|
940
943
|
name: "b-dropdown",
|
|
941
944
|
components: {
|
|
942
|
-
DropdownInputDefault:
|
|
943
|
-
DropdownInputSmall:
|
|
945
|
+
DropdownInputDefault: xt,
|
|
946
|
+
DropdownInputSmall: Pt
|
|
944
947
|
},
|
|
945
948
|
model: { prop: "modelValue" }
|
|
946
|
-
}),
|
|
947
|
-
...
|
|
949
|
+
}), Ht = /* @__PURE__ */ B({
|
|
950
|
+
...jt,
|
|
948
951
|
props: {
|
|
949
952
|
description: { default: null },
|
|
950
953
|
disabled: { type: Boolean, default: !1 },
|
|
@@ -965,7 +968,7 @@ const zt = {
|
|
|
965
968
|
items: { default: () => [] },
|
|
966
969
|
loading: { type: Boolean, default: !1 },
|
|
967
970
|
componentLoading: { type: Boolean, default: !1 },
|
|
968
|
-
lazyLoadType: { default:
|
|
971
|
+
lazyLoadType: { default: ne.props.lazyLoadType.default },
|
|
969
972
|
multiple: { type: Boolean, default: !1 },
|
|
970
973
|
search: { default: void 0 },
|
|
971
974
|
showSlotContentInMultiple: { type: Boolean, default: !1 },
|
|
@@ -978,133 +981,138 @@ const zt = {
|
|
|
978
981
|
},
|
|
979
982
|
emits: ["input", "update:model-value", "show-more", "open"],
|
|
980
983
|
setup(l, { expose: t, emit: a }) {
|
|
981
|
-
var
|
|
982
|
-
const e = l, o =
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
),
|
|
984
|
+
var he, ge;
|
|
985
|
+
const e = l, o = Ee(), n = Q(), r = De(n), { t: d } = G(), { emitValue: c } = je(a), y = C(null), f = C(null), p = C(null), i = C(!1), S = K("bento-dropdown-options-container"), v = K("dropdown-label"), _ = K("dropdown-description"), x = K("dropdown-error"), { isReadOnly: L } = Ze(k(e, "readonly")), u = s(() => e.modelValue ?? e.value), { cachedSelectedListboxOptions: T, cachedListboxSelectedValues: I, setCachedValues: A } = Ye(
|
|
986
|
+
k(e, "items"),
|
|
987
|
+
u,
|
|
988
|
+
k(e, "multiple"),
|
|
989
|
+
k(e, "enableValueLabelPair")
|
|
990
|
+
), F = C(o["aria-label"]), P = C(o["aria-describedby"]), { ariaLabel: M, label: O } = Oe(e), U = s(() => d("ariaLabelFallback")), se = We({
|
|
988
991
|
// TODO: take ariaLabel ref away when aria-label prop is removed
|
|
989
|
-
ariaLabel:
|
|
990
|
-
label:
|
|
991
|
-
defaultFallback:
|
|
992
|
-
}),
|
|
992
|
+
ariaLabel: M.value || F,
|
|
993
|
+
label: O,
|
|
994
|
+
defaultFallback: U
|
|
995
|
+
}), b = e.size === z.SMALL || Ve(Wt, !1), w = s(() => b ? z.SMALL : z.DEFAULT), H = s(() => ({
|
|
993
996
|
"b-dropdown--condensed": e.condensed
|
|
994
|
-
})),
|
|
997
|
+
})), Y = s(() => ({
|
|
995
998
|
"b-dropdown__description--error": !!e.errorMessage
|
|
996
|
-
})),
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
(
|
|
1000
|
-
|
|
1001
|
-
(
|
|
1002
|
-
),
|
|
1003
|
-
items:
|
|
1004
|
-
placeholder:
|
|
1005
|
-
isMultiSelect:
|
|
1006
|
-
selectedValues:
|
|
1007
|
-
}),
|
|
1008
|
-
if (e != null && e.multiple && Array.isArray(
|
|
999
|
+
})), $ = C(""), W = k(e, "items"), re = k(e, "staticCategories"), J = zt(
|
|
1000
|
+
$,
|
|
1001
|
+
W,
|
|
1002
|
+
(he = e == null ? void 0 : e.search) == null ? void 0 : he.searchEvent,
|
|
1003
|
+
re,
|
|
1004
|
+
(ge = e == null ? void 0 : e.search) == null ? void 0 : ge.debounceTime
|
|
1005
|
+
), ee = s(() => e.dynamicFiltering && !!$.value), Ae = Vt({
|
|
1006
|
+
items: W,
|
|
1007
|
+
placeholder: k(e, "placeholder"),
|
|
1008
|
+
isMultiSelect: k(e, "multiple"),
|
|
1009
|
+
selectedValues: T
|
|
1010
|
+
}), ke = s(() => {
|
|
1011
|
+
if (e != null && e.multiple && Array.isArray(u.value))
|
|
1009
1012
|
return e.items.filter(
|
|
1010
|
-
({ value:
|
|
1013
|
+
({ value: h }) => (e == null ? void 0 : e.value) && (e == null ? void 0 : e.value).includes(h)
|
|
1011
1014
|
);
|
|
1012
1015
|
if (!e.multiple && e.staticCategories) {
|
|
1013
|
-
const
|
|
1014
|
-
(
|
|
1016
|
+
const h = e.items.find(
|
|
1017
|
+
(j) => {
|
|
1018
|
+
var Se;
|
|
1019
|
+
return (Se = j.items) == null ? void 0 : Se.some(($e) => $e.value === u.value);
|
|
1020
|
+
}
|
|
1015
1021
|
);
|
|
1016
|
-
return
|
|
1022
|
+
return (h ? h.items.find((j) => j.value === u.value) : e.items.find(({ value: j }) => j === u.value)) ?? null;
|
|
1017
1023
|
}
|
|
1018
|
-
return e.items.find(({ value:
|
|
1019
|
-
}),
|
|
1020
|
-
const
|
|
1021
|
-
return
|
|
1022
|
-
}), { isMultiLevelSelect:
|
|
1024
|
+
return e.items.find(({ value: h }) => h === u.value);
|
|
1025
|
+
}), ie = s(() => {
|
|
1026
|
+
const h = J.value.findIndex(({ value: V }) => e.enableValueLabelPair ? u.value.value === V : u.value === V);
|
|
1027
|
+
return h > -1 ? h : 0;
|
|
1028
|
+
}), { isMultiLevelSelect: te, flattenedItemsList: de } = Je(W), ce = s(() => te.value && !e.staticCategories), ue = s(() => ce.value ? "treeitem" : "option"), Ne = s(() => {
|
|
1023
1029
|
if (e.multiple) {
|
|
1024
|
-
const
|
|
1025
|
-
return
|
|
1030
|
+
const h = Array.isArray(u.value) ? u.value.length : 0, V = te.value ? de.value.length : W.value.length;
|
|
1031
|
+
return h === 0 ? null : !e.hasMoreItems && V > 0 && V === h ? d("all") : h;
|
|
1026
1032
|
}
|
|
1027
1033
|
return null;
|
|
1028
|
-
}),
|
|
1034
|
+
}), Me = s(
|
|
1029
1035
|
() => [
|
|
1030
1036
|
e.description ? _ : null,
|
|
1031
|
-
|
|
1032
|
-
e.errorMessage ?
|
|
1037
|
+
P.value,
|
|
1038
|
+
e.errorMessage ? x : null
|
|
1033
1039
|
].filter(Boolean).join(" ") || null
|
|
1034
|
-
),
|
|
1035
|
-
var
|
|
1036
|
-
return (
|
|
1037
|
-
}), { visibleDomOptions:
|
|
1038
|
-
|
|
1040
|
+
), pe = s(() => {
|
|
1041
|
+
var h;
|
|
1042
|
+
return (h = p.value) == null ? void 0 : h.$el;
|
|
1043
|
+
}), { visibleDomOptions: fe, updateVisibleDomOptions: ae } = Xe(
|
|
1044
|
+
pe,
|
|
1039
1045
|
J,
|
|
1040
|
-
|
|
1041
|
-
),
|
|
1042
|
-
L.value || (i.value = !0,
|
|
1043
|
-
|
|
1046
|
+
ue
|
|
1047
|
+
), be = () => {
|
|
1048
|
+
L.value || (i.value = !0, D(() => {
|
|
1049
|
+
ae();
|
|
1044
1050
|
}));
|
|
1045
|
-
},
|
|
1051
|
+
}, X = () => {
|
|
1046
1052
|
i.value = !1;
|
|
1047
|
-
},
|
|
1048
|
-
L.value || (i.value = !i.value,
|
|
1049
|
-
|
|
1050
|
-
}),
|
|
1051
|
-
},
|
|
1052
|
-
|
|
1053
|
-
},
|
|
1054
|
-
e.multiple || (
|
|
1055
|
-
},
|
|
1053
|
+
}, ye = () => {
|
|
1054
|
+
L.value || (i.value = !i.value, D(() => {
|
|
1055
|
+
ae();
|
|
1056
|
+
}), ee.value && ($.value = ""));
|
|
1057
|
+
}, Re = () => {
|
|
1058
|
+
ee.value && ($.value = ""), i.value && (i.value = !1, p.value.onOutsideDropdownClick());
|
|
1059
|
+
}, ve = async (h) => {
|
|
1060
|
+
e.multiple || ($.value = "", i.value = !1), A(h), c(I.value), e.multiple || (await D(), oe());
|
|
1061
|
+
}, me = () => {
|
|
1056
1062
|
a(m.SHOW_MORE);
|
|
1057
|
-
},
|
|
1063
|
+
}, Fe = Kt(
|
|
1058
1064
|
{
|
|
1059
1065
|
inputContainerRef: y,
|
|
1060
1066
|
optionsContainerRef: p,
|
|
1061
|
-
selectedValueIndex:
|
|
1067
|
+
selectedValueIndex: ie,
|
|
1062
1068
|
isDropdownOpen: i,
|
|
1063
|
-
isDynamicFltering:
|
|
1064
|
-
items:
|
|
1065
|
-
isMultiple: e.multiple
|
|
1069
|
+
isDynamicFltering: k(e, "dynamicFiltering"),
|
|
1070
|
+
items: fe,
|
|
1071
|
+
isMultiple: e.multiple,
|
|
1072
|
+
totalItemCount: s(() => J.value.length),
|
|
1073
|
+
isVirtualScroll: !(e != null && e.multiple) && (e == null ? void 0 : e.virtualScroll) !== !1 && (e == null ? void 0 : e.lazyLoadType) === "none"
|
|
1066
1074
|
},
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
),
|
|
1075
|
+
ye,
|
|
1076
|
+
be,
|
|
1077
|
+
X
|
|
1078
|
+
), _e = qt(
|
|
1071
1079
|
{
|
|
1072
1080
|
inputContainerRef: y,
|
|
1073
1081
|
isDropdownOpen: i
|
|
1074
1082
|
},
|
|
1075
|
-
|
|
1076
|
-
),
|
|
1077
|
-
[m.CLOSE_DROPDOWN]:
|
|
1078
|
-
[m.SELECT]:
|
|
1079
|
-
[m.SHOW_MORE]:
|
|
1080
|
-
...
|
|
1083
|
+
X
|
|
1084
|
+
), Pe = {
|
|
1085
|
+
[m.CLOSE_DROPDOWN]: X,
|
|
1086
|
+
[m.SELECT]: ve,
|
|
1087
|
+
[m.SHOW_MORE]: me,
|
|
1088
|
+
..._e
|
|
1081
1089
|
};
|
|
1082
|
-
e.error &&
|
|
1090
|
+
e.error && le(
|
|
1083
1091
|
'BentoDropdown "error" property',
|
|
1084
1092
|
`Use the BentoDropdown "errorMessage" property instead to indicate that there is a modifier error.
|
|
1085
1093
|
Having the field as "undefined" will hide/remove the error.
|
|
1086
1094
|
<bento-dropdown errorMessage="Error message text" />`,
|
|
1087
1095
|
"2.0.0"
|
|
1088
|
-
), e.size &&
|
|
1096
|
+
), e.size && le('BentoDropdown "size" property', "Do not use. Only 'default' size should be used.", "2.0.0"), e.value && le(
|
|
1089
1097
|
'BentoDropdown "value" property',
|
|
1090
1098
|
`The use of "value" prop in "BentoDropdown" is no longer supported.
|
|
1091
1099
|
Use the "v-model" or "model-value" property instead.`,
|
|
1092
1100
|
"2.0.0"
|
|
1093
1101
|
);
|
|
1094
|
-
const
|
|
1102
|
+
const oe = () => {
|
|
1095
1103
|
y.value.focus();
|
|
1096
1104
|
};
|
|
1097
|
-
return
|
|
1105
|
+
return Z(
|
|
1098
1106
|
() => i.value,
|
|
1099
|
-
(
|
|
1100
|
-
|
|
1107
|
+
(h) => {
|
|
1108
|
+
h && a("open");
|
|
1101
1109
|
}
|
|
1102
1110
|
), t({
|
|
1103
|
-
focus:
|
|
1104
|
-
}), { __sfc: !0, attrs: o, slots: n, hasSlot: r, props: e, emit: a, t: d, emitValue: c, inputContainerRef: y, inputContainerRefWrapper:
|
|
1111
|
+
focus: oe
|
|
1112
|
+
}), { __sfc: !0, attrs: o, slots: n, hasSlot: r, props: e, emit: a, t: d, emitValue: c, inputContainerRef: y, inputContainerRefWrapper: f, optionsContainerRef: p, isDropdownOpen: i, dropdownOptionsContainerId: S, labelId: v, descriptionId: _, errorId: x, isReadOnly: L, dropdownValue: u, cachedSelectedListboxOptions: T, cachedListboxSelectedValues: I, setCachedValues: A, ariaLabelAttribute: F, ariaDescribedByAttribute: P, ariaLabel: M, label: O, computedAriaLabelFallbackMessage: U, computedAriaLabel: se, isInputComponent: b, computedSize: w, conditionalClasses: H, descriptionConditionalClasses: Y, searchTerm: $, items: W, staticCategories: re, filteredItems: J, isSearching: ee, displayValue: Ae, selectedValueItem: ke, selectedValueIndex: ie, isMultiLevelSelect: te, flattenedItemsList: de, isTreePattern: ce, computedOptionRole: ue, additionalItemsSelected: Ne, ariaDescribedBy: Me, listboxRef: pe, visibleDomOptions: fe, updateVisibleDomOptions: ae, openDropdown: be, closeDropdown: X, toggleDropdown: ye, clickOutsideDropdown: Re, onOptionSelected: ve, emitShowMoreEvent: me, textboxKeyboardNavigationListeners: Fe, listboxKeyboardNavigationListeners: _e, listboxListeners: Pe, focus: oe, BentoDropdownOptionsContainer: ct, BentoTypography: Ie, ErrorMessage: tt, FieldLabel: et, vBentoClickOutsideDirective: Ge, vBentoKeyboardNavigationDirective: Qe };
|
|
1105
1113
|
}
|
|
1106
1114
|
});
|
|
1107
|
-
var
|
|
1115
|
+
var Yt = function() {
|
|
1108
1116
|
var t = this, a = t._self._c, e = t._self._setupProxy;
|
|
1109
1117
|
return a("div", { directives: [{ name: "bento-click-outside-directive", rawName: "v-bento-click-outside-directive", value: e.clickOutsideDropdown, expression: "clickOutsideDropdown" }], staticClass: "b-dropdown", class: e.conditionalClasses }, [e.label ? a(e.FieldLabel, { attrs: { id: e.labelId, condensed: t.condensed, label: e.label, "tooltip-text": t.tooltipText, optional: t.optional, required: t.required } }) : t._e(), a("div", t._g({ directives: [{ name: "bento-keyboard-navigation-directive", rawName: "v-bento-keyboard-navigation-directive" }], ref: "inputContainerRefWrapper" }, e.textboxKeyboardNavigationListeners), [a(e.computedSize, { ref: "inputContainerRef", tag: "component", attrs: { condensed: t.condensed, value: e.searchTerm, "additional-items-selected": e.additionalItemsSelected, "aria-controls": e.dropdownOptionsContainerId, ariaExpanded: e.isDropdownOpen, "aria-labelledby": e.label ? e.labelId : null, "aria-describedby": e.ariaDescribedBy, "aria-label": e.computedAriaLabel, "aria-readonly": e.isReadOnly, "aria-required": t.required, readonly: e.isReadOnly, disabled: t.disabled, "display-value": e.displayValue, "dynamic-filtering": t.dynamicFiltering, "is-invalid": !!t.errorMessage || t.error, multiple: t.multiple, open: e.isDropdownOpen, "selected-value-item": e.isInputComponent ? void 0 : e.selectedValueItem, "show-slot-content-in-multiple": t.showSlotContentInMultiple }, on: { input: function(o) {
|
|
1110
1118
|
e.searchTerm = o;
|
|
@@ -1119,22 +1127,22 @@ var Ht = function() {
|
|
|
1119
1127
|
})], null, !0) }, e.listboxListeners)) : t._e(), t.errorMessage ? a(e.ErrorMessage, { staticClass: "b-dropdown__error-message", attrs: { id: e.errorId, "error-message": t.errorMessage } }) : t._e(), t.description || e.hasSlot("description") ? a(e.BentoTypography, { staticClass: "b-dropdown__description", class: e.descriptionConditionalClasses, attrs: { id: e.descriptionId, el: "span" } }, [t._t("description", function() {
|
|
1120
1128
|
return [t._v(" " + t._s(t.description) + " ")];
|
|
1121
1129
|
})], 2) : t._e()], 1);
|
|
1122
|
-
},
|
|
1123
|
-
jt,
|
|
1130
|
+
}, Jt = [], Xt = /* @__PURE__ */ R(
|
|
1124
1131
|
Ht,
|
|
1125
1132
|
Yt,
|
|
1133
|
+
Jt,
|
|
1126
1134
|
!1,
|
|
1127
1135
|
null,
|
|
1128
|
-
"
|
|
1136
|
+
"f5eb43fd"
|
|
1129
1137
|
);
|
|
1130
|
-
const
|
|
1138
|
+
const Sa = Xt.exports;
|
|
1131
1139
|
export {
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1140
|
+
Sa as B,
|
|
1141
|
+
xt as D,
|
|
1142
|
+
ha as I,
|
|
1143
|
+
z as a,
|
|
1144
|
+
Wt as b,
|
|
1145
|
+
ga as c,
|
|
1146
|
+
zt as u
|
|
1139
1147
|
};
|
|
1140
|
-
//# sourceMappingURL=dropdown.
|
|
1148
|
+
//# sourceMappingURL=dropdown.BYJwx-JD.js.map
|