@adyen/bento-vue3 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 +128 -137
- 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-tag.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-password.css +1 -1
- package/dist/assets/input-field-phone-number.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/textarea.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.BPS3wPde.js → action-bar.BxyRAZn1.js} +3 -3
- package/dist/chunks/{action-bar.BPS3wPde.js.map → action-bar.BxyRAZn1.js.map} +1 -1
- package/dist/chunks/{ai-tag.D7shWB_x.js → ai-tag.CpeZm2Yf.js} +2 -2
- package/dist/chunks/{ai-tag.D7shWB_x.js.map → ai-tag.CpeZm2Yf.js.map} +1 -1
- package/dist/chunks/{alert.CFWN2E0b.js → alert.RD0qOLhx.js} +91 -69
- package/dist/chunks/alert.RD0qOLhx.js.map +1 -0
- package/dist/chunks/{base-modal.BxcS7Pao.js → base-modal.C8Rsc2oO.js} +3 -3
- package/dist/chunks/base-modal.C8Rsc2oO.js.map +1 -0
- package/dist/chunks/{button-actions-with-menu.BKdNXYgU.js → button-actions-with-menu.KaWdHibo.js} +2 -2
- package/dist/chunks/{button-actions-with-menu.BKdNXYgU.js.map → button-actions-with-menu.KaWdHibo.js.map} +1 -1
- package/dist/chunks/{button-actions.DLiM8KZL.js → button-actions.7Oi2Ra4p.js} +87 -93
- package/dist/chunks/button-actions.7Oi2Ra4p.js.map +1 -0
- package/dist/chunks/button-actions.types.BptAXjD8.js.map +1 -1
- package/dist/chunks/button.DWF7FSIw.js.map +1 -1
- package/dist/chunks/{calendar.qm-kFNQv.js → calendar.DfMwuOIR.js} +516 -456
- package/dist/chunks/calendar.DfMwuOIR.js.map +1 -0
- package/dist/chunks/{card.BEChcEqg.js → card.7q8tTfjG.js} +2 -2
- package/dist/chunks/card.7q8tTfjG.js.map +1 -0
- package/dist/chunks/{checkbox-group.i3W8WO-7.js → checkbox-group.DawPC5Go.js} +4 -4
- package/dist/chunks/checkbox-group.DawPC5Go.js.map +1 -0
- package/dist/chunks/{checkbox.BPrymcRl.js → checkbox.CDjMTuJk.js} +20 -22
- package/dist/chunks/checkbox.CDjMTuJk.js.map +1 -0
- package/dist/chunks/{code-snippet.BG5ZmCrb.js → code-snippet.Dtb7CDv9.js} +3 -3
- package/dist/chunks/code-snippet.Dtb7CDv9.js.map +1 -0
- package/dist/chunks/constructNow.DyOJDyZZ.js +8 -0
- package/dist/chunks/{constructNow.D9uRk678.js.map → constructNow.DyOJDyZZ.js.map} +1 -1
- package/dist/chunks/country.types.6a7xxZIR.js.map +1 -1
- package/dist/chunks/{dashboard-section.C7mfUXOl.js → dashboard-section.kwKlujP-.js} +2 -2
- package/dist/chunks/{dashboard-section.C7mfUXOl.js.map → dashboard-section.kwKlujP-.js.map} +1 -1
- package/dist/chunks/{dashed-underline.B50DIXjK.js → dashed-underline.ADDEdamG.js} +2 -2
- package/dist/chunks/{dashed-underline.B50DIXjK.js.map → dashed-underline.ADDEdamG.js.map} +1 -1
- package/dist/chunks/{data-grid-template.CKdZb6EN.js → data-grid-template.C69yN3ZR.js} +2 -2
- package/dist/chunks/{data-grid-template.CKdZb6EN.js.map → data-grid-template.C69yN3ZR.js.map} +1 -1
- package/dist/chunks/{data-grid.DvMe72LK.js → data-grid._kCZlpR4.js} +464 -465
- package/dist/chunks/data-grid._kCZlpR4.js.map +1 -0
- package/dist/chunks/{date-picker.CidHad1p.js → date-picker.D08qIp2A.js} +7 -7
- package/dist/chunks/{date-picker.CidHad1p.js.map → date-picker.D08qIp2A.js.map} +1 -1
- package/dist/chunks/date-picker.types.Ckt7zxGy.js.map +1 -1
- package/dist/chunks/date-range-picker.BXzTT4AF.js +1038 -0
- package/dist/chunks/date-range-picker.BXzTT4AF.js.map +1 -0
- package/dist/chunks/date-range-picker.types.Ckt7zxGy.js.map +1 -1
- package/dist/chunks/{de.DXrHnkLX.js → de.ctR_lBqr.js} +2 -2
- package/dist/chunks/{de.DXrHnkLX.js.map → de.ctR_lBqr.js.map} +1 -1
- package/dist/chunks/{differenceInMonths.s_znQQpw.js → differenceInMonths.yz4Dfe-b.js} +13 -12
- package/dist/chunks/{differenceInMonths.s_znQQpw.js.map → differenceInMonths.yz4Dfe-b.js.map} +1 -1
- package/dist/chunks/{draggable-handle.CySRx1tb.js → draggable-handle.BWHOlabB.js} +2 -2
- package/dist/chunks/{draggable-handle.CySRx1tb.js.map → draggable-handle.BWHOlabB.js.map} +1 -1
- package/dist/chunks/{dropdown-tag.wcJ6Mgqe.js → dropdown-tag.Sk2n9gbl.js} +6 -6
- package/dist/chunks/dropdown-tag.Sk2n9gbl.js.map +1 -0
- package/dist/chunks/{dropdown.DHoL50gV.js → dropdown.CuIBYLdy.js} +400 -396
- package/dist/chunks/dropdown.CuIBYLdy.js.map +1 -0
- package/dist/chunks/{en-GB.CBpvhDYV.js → en-GB.BsQNm5GT.js} +2 -2
- package/dist/chunks/{en-GB.CBpvhDYV.js.map → en-GB.BsQNm5GT.js.map} +1 -1
- package/dist/chunks/{en-US.CCazFVNP.js → en-US.BR6y7foR.js} +5 -5
- package/dist/chunks/{en-US.CCazFVNP.js.map → en-US.BR6y7foR.js.map} +1 -1
- package/dist/chunks/{es.CoF2PB8b.js → es.DxqH-QhP.js} +2 -2
- package/dist/chunks/{es.CoF2PB8b.js.map → es.DxqH-QhP.js.map} +1 -1
- package/dist/chunks/{file-uploader.Dbg3vfZ_.js → file-uploader.B5_l2uQO.js} +4 -5
- package/dist/chunks/{file-uploader.Dbg3vfZ_.js.map → file-uploader.B5_l2uQO.js.map} +1 -1
- package/dist/chunks/{filter-bar.Dt-cU3zy.js → filter-bar.gwDFNkp5.js} +22 -22
- package/dist/chunks/filter-bar.gwDFNkp5.js.map +1 -0
- package/dist/chunks/{footer-actions.CYBdKDPo.js → footer-actions.4Qj_I3cd.js} +2 -2
- package/dist/chunks/{footer-actions.CYBdKDPo.js.map → footer-actions.4Qj_I3cd.js.map} +1 -1
- package/dist/chunks/{form-layout-title.B3ePK3yi.js → form-layout-title.B712PesH.js} +2 -2
- package/dist/chunks/{form-layout-title.B3ePK3yi.js.map → form-layout-title.B712PesH.js.map} +1 -1
- package/dist/chunks/{fr.CJXL-Ief.js → fr.DJtn8ron.js} +2 -2
- package/dist/chunks/{fr.CJXL-Ief.js.map → fr.DJtn8ron.js.map} +1 -1
- package/dist/chunks/{header-meta.COak4D8-.js → header-meta.BJjFOcxY.js} +14 -14
- package/dist/chunks/{header-meta.COak4D8-.js.map → header-meta.BJjFOcxY.js.map} +1 -1
- package/dist/chunks/{header-with-views.DqioajcO.js → header-with-views.CMO5q6g5.js} +8 -8
- package/dist/chunks/{header-with-views.DqioajcO.js.map → header-with-views.CMO5q6g5.js.map} +1 -1
- package/dist/chunks/{header.C21yzWrk.js → header.5RQulwlL.js} +3 -3
- package/dist/chunks/header.5RQulwlL.js.map +1 -0
- package/dist/chunks/{input-field-password.DyUphhxB.js → input-field-password.DWR0liBW.js} +5 -5
- package/dist/chunks/input-field-password.DWR0liBW.js.map +1 -0
- package/dist/chunks/{input-field-phone-number.BXVaC5ra.js → input-field-phone-number.ByjukCrO.js} +4 -4
- package/dist/chunks/{input-field-phone-number.BXVaC5ra.js.map → input-field-phone-number.ByjukCrO.js.map} +1 -1
- package/dist/chunks/{input-field.DkUFvIWt.js → input-field.FkzBZDWS.js} +141 -130
- package/dist/chunks/input-field.FkzBZDWS.js.map +1 -0
- package/dist/chunks/{input-time.WI_qdwJc.js → input-time.DlvANG4O.js} +4 -4
- package/dist/chunks/{input-time.WI_qdwJc.js.map → input-time.DlvANG4O.js.map} +1 -1
- package/dist/chunks/isSameWeek.CieN9XgL.js +14 -0
- package/dist/chunks/{isSameWeek.Dj6luS8h.js.map → isSameWeek.CieN9XgL.js.map} +1 -1
- package/dist/chunks/{it.20Y7h-bF.js → it.keS7oN5l.js} +3 -3
- package/dist/chunks/{it.20Y7h-bF.js.map → it.keS7oN5l.js.map} +1 -1
- package/dist/chunks/{ja.DXlq0H98.js → ja.cLwacUE6.js} +2 -2
- package/dist/chunks/{ja.DXlq0H98.js.map → ja.cLwacUE6.js.map} +1 -1
- package/dist/chunks/link.D6D6YGsN.js.map +1 -1
- package/dist/chunks/{modal-fullscreen.c6QphYQo.js → modal-fullscreen.CepaWyoi.js} +2 -2
- package/dist/chunks/{modal-fullscreen.c6QphYQo.js.map → modal-fullscreen.CepaWyoi.js.map} +1 -1
- package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.ImqHKH-g.js → modal.vue_vue_type_script_setup_true_lang.BW9Ff59H.js} +49 -47
- package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.ImqHKH-g.js.map → modal.vue_vue_type_script_setup_true_lang.BW9Ff59H.js.map} +1 -1
- package/dist/chunks/{pagination.Cu85Lqms.js → pagination.Ch_Occwt.js} +2 -2
- package/dist/chunks/{pagination.Cu85Lqms.js.map → pagination.Ch_Occwt.js.map} +1 -1
- package/dist/chunks/payment-method.types.BqtH7RM2.js.map +1 -1
- package/dist/chunks/popover.types.D8tHtFl3.js.map +1 -1
- package/dist/chunks/popper-container.DMN8n5iC.js.map +1 -1
- package/dist/chunks/promo-banner.-H4r_cwj.js.map +1 -1
- package/dist/chunks/{pt-BR.DmhmCzxE.js → pt-BR.ChPOra5s.js} +2 -2
- package/dist/chunks/{pt-BR.DmhmCzxE.js.map → pt-BR.ChPOra5s.js.map} +1 -1
- package/dist/chunks/radio-group.CfMr1fmW.js.map +1 -1
- package/dist/chunks/{rich-text-editor.Bf9EWzNk.js → rich-text-editor.mxbLaG6q.js} +3 -3
- package/dist/chunks/{rich-text-editor.Bf9EWzNk.js.map → rich-text-editor.mxbLaG6q.js.map} +1 -1
- package/dist/chunks/{search-bar.p6kHCCvT.js → search-bar.JDkxJGjF.js} +4 -4
- package/dist/chunks/{search-bar.p6kHCCvT.js.map → search-bar.JDkxJGjF.js.map} +1 -1
- package/dist/chunks/{secondary-nav.CaxiyVaO.js → secondary-nav.CROQNbYk.js} +2 -2
- package/dist/chunks/{secondary-nav.CaxiyVaO.js.map → secondary-nav.CROQNbYk.js.map} +1 -1
- package/dist/chunks/segmented-control.types.BHRLV8KU.js.map +1 -1
- package/dist/chunks/{selection-card-group.58XZj_SJ.js → selection-card-group.DJ6FFvsA.js} +9 -9
- package/dist/chunks/{selection-card-group.58XZj_SJ.js.map → selection-card-group.DJ6FFvsA.js.map} +1 -1
- package/dist/chunks/{sidepanel.CAVhSs-O.js → sidepanel.S037xghX.js} +3 -3
- package/dist/chunks/{sidepanel.CAVhSs-O.js.map → sidepanel.S037xghX.js.map} +1 -1
- package/dist/chunks/{startOfWeek.Cvmo-f5J.js → startOfWeek.muMEhS7U.js} +2 -2
- package/dist/chunks/{startOfWeek.Cvmo-f5J.js.map → startOfWeek.muMEhS7U.js.map} +1 -1
- package/dist/chunks/status.types.Dx8MDhEH.js.map +1 -1
- package/dist/chunks/{summary-grid.types.CDithi8M.js → summary-grid.types.D1JQ_jtv.js} +2 -2
- package/dist/chunks/{summary-grid.types.CDithi8M.js.map → summary-grid.types.D1JQ_jtv.js.map} +1 -1
- package/dist/chunks/tag.YN2r-Pp3.js.map +1 -1
- package/dist/chunks/{textarea.JGXAlpx9.js → textarea.-6FHesSp.js} +2 -2
- package/dist/chunks/textarea.-6FHesSp.js.map +1 -0
- package/dist/chunks/{timeline-item.BNFPpQz1.js → timeline-item.BJaFr2_Y.js} +5 -5
- package/dist/chunks/timeline-item.BJaFr2_Y.js.map +1 -0
- package/dist/chunks/{toggle.BQoprdX-.js → toggle.BdcgY15I.js} +3 -5
- package/dist/chunks/toggle.BdcgY15I.js.map +1 -0
- package/dist/chunks/tooltip.DHfG2aRt.js.map +1 -1
- package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.C1cF-adv.js → tutorial.vue_vue_type_script_setup_true_lang.D_Z1zKam.js} +2 -2
- package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.C1cF-adv.js.map → tutorial.vue_vue_type_script_setup_true_lang.D_Z1zKam.js.map} +1 -1
- package/dist/chunks/typography.B3J6_tYk.js.map +1 -1
- package/dist/chunks/use-cached-selected-values.DUWGSMvO.js +1740 -0
- package/dist/chunks/use-cached-selected-values.DUWGSMvO.js.map +1 -0
- package/dist/chunks/{use-date-input-formatter.BOuXpRb-.js → use-date-input-formatter.BH4hdEJW.js} +4 -4
- package/dist/chunks/{use-date-input-formatter.BOuXpRb-.js.map → use-date-input-formatter.BH4hdEJW.js.map} +1 -1
- package/dist/chunks/{zh-CN.Ce34mXsX.js → zh-CN.ZG6obniO.js} +3 -3
- package/dist/chunks/{zh-CN.Ce34mXsX.js.map → zh-CN.ZG6obniO.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 +42 -42
- 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/selection-card.js +1 -1
- package/dist/sidepanel.js +1 -1
- package/dist/summary-grid.js +1 -1
- package/dist/textarea.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 +1 -1
- package/package.json +5 -5
- package/dist/chunks/alert.CFWN2E0b.js.map +0 -1
- package/dist/chunks/base-modal.BxcS7Pao.js.map +0 -1
- package/dist/chunks/button-actions.DLiM8KZL.js.map +0 -1
- package/dist/chunks/calendar.qm-kFNQv.js.map +0 -1
- package/dist/chunks/card.BEChcEqg.js.map +0 -1
- package/dist/chunks/checkbox-group.i3W8WO-7.js.map +0 -1
- package/dist/chunks/checkbox.BPrymcRl.js.map +0 -1
- package/dist/chunks/code-snippet.BG5ZmCrb.js.map +0 -1
- package/dist/chunks/constructNow.D9uRk678.js +0 -8
- package/dist/chunks/data-grid.DvMe72LK.js.map +0 -1
- package/dist/chunks/date-range-picker.c5OwESTS.js +0 -1027
- package/dist/chunks/date-range-picker.c5OwESTS.js.map +0 -1
- package/dist/chunks/dropdown-tag.wcJ6Mgqe.js.map +0 -1
- package/dist/chunks/dropdown.DHoL50gV.js.map +0 -1
- package/dist/chunks/filter-bar.Dt-cU3zy.js.map +0 -1
- package/dist/chunks/header.C21yzWrk.js.map +0 -1
- package/dist/chunks/input-field-password.DyUphhxB.js.map +0 -1
- package/dist/chunks/input-field.DkUFvIWt.js.map +0 -1
- package/dist/chunks/isSameWeek.Dj6luS8h.js +0 -14
- package/dist/chunks/textarea.JGXAlpx9.js.map +0 -1
- package/dist/chunks/timeline-item.BNFPpQz1.js.map +0 -1
- package/dist/chunks/toggle.BQoprdX-.js.map +0 -1
- package/dist/chunks/use-cached-selected-values.Bx8uuky9.js +0 -1657
- package/dist/chunks/use-cached-selected-values.Bx8uuky9.js.map +0 -1
- package/dist/chunks/warning-filled.BzyK_mMj.js +0 -29
- package/dist/chunks/warning-filled.BzyK_mMj.js.map +0 -1
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import { ref as B, watch as
|
|
2
|
-
import { B as Ke, d as
|
|
3
|
-
import { g as
|
|
4
|
-
import { u as
|
|
1
|
+
import { ref as B, watch as ve, computed as r, defineComponent as F, useSlots as he, toRefs as Fe, openBlock as b, createBlock as j, resolveDynamicComponent as _e, mergeProps as A, withCtx as z, createElementVNode as se, withKeys as re, unref as o, createVNode as H, toHandlers as de, createSlots as be, renderList as ue, renderSlot as q, normalizeProps as le, guardReactiveProps as me, createCommentVNode as $, useAttrs as Pe, nextTick as R, createElementBlock as x, normalizeClass as oe, Fragment as Ee, createTextVNode as fe, toDisplayString as G, withModifiers as Ne, withDirectives as ne, vShow as ye, toRef as V, inject as pt } from "vue";
|
|
2
|
+
import { B as Ke, d as xe } from "./typography.B3J6_tYk.js";
|
|
3
|
+
import { g as ee } from "./generate-uid.DBWe4g6T.js";
|
|
4
|
+
import { u as ge } from "./index.B875RXHM.js";
|
|
5
5
|
import { u as Ve } from "./use-has-slot.CyMiImRQ.js";
|
|
6
6
|
import { C as ft } from "./cross-circle-fill.BWCKKn0E.js";
|
|
7
7
|
import { C as bt } from "./cross-circle-fill-small.H1wH-vcZ.js";
|
|
8
|
-
import { _ as
|
|
9
|
-
import { s as
|
|
10
|
-
import { C as
|
|
11
|
-
import { C as
|
|
8
|
+
import { _ as X } from "./_plugin-vue_export-helper.CHgC5LLL.js";
|
|
9
|
+
import { s as te } from "./events.BQOQSSb7.js";
|
|
10
|
+
import { C as mt } from "./chevron-down.XeE-LBV_.js";
|
|
11
|
+
import { C as yt } from "./chevron-up.Cmgl2a3x.js";
|
|
12
12
|
/* empty css */
|
|
13
13
|
import { u as vt } from "./aria-label.CaUURpnB.js";
|
|
14
14
|
import { u as ht } from "./form-field.D_2g7vaP.js";
|
|
15
|
-
import { B as
|
|
15
|
+
import { B as g, b as Ie, a as ke, d as gt, u as St, c as wt, e as Lt } from "./use-cached-selected-values.DUWGSMvO.js";
|
|
16
16
|
import { u as Ct } from "./use-form-layout-loading.CWbjZiwP.js";
|
|
17
17
|
import { B as Et } from "./directive.C8kY-ZW-.js";
|
|
18
|
-
import { B as
|
|
18
|
+
import { B as W, a as xt } from "./keyboard-navigation.DWmhelVv.js";
|
|
19
19
|
import { F as It } from "./field-label.DZYFjFgr.js";
|
|
20
20
|
import { P as Me } from "./popper-container.DMN8n5iC.js";
|
|
21
|
-
import { h as Ot } from "./button-actions.
|
|
21
|
+
import { h as Ot } from "./button-actions.7Oi2Ra4p.js";
|
|
22
22
|
import { E as Dt } from "./error-message.Dyvrw6ZB.js";
|
|
23
23
|
import "../assets/dropdown.css";
|
|
24
|
-
var
|
|
25
|
-
const
|
|
24
|
+
var ae = /* @__PURE__ */ ((e) => (e.DEFAULT = "DropdownInputDefault", e.SMALL = "DropdownInputSmall", e))(ae || {});
|
|
25
|
+
const Oe = {
|
|
26
26
|
"de-DE": { apply: "Anwenden", cancel: "Abbrechen", noOptionsMatchThisSearch: "Für diese Suche wurden keine Ergebnisse gefunden." },
|
|
27
27
|
"en-GB": { apply: "Apply", cancel: "Cancel", noOptionsMatchThisSearch: "No options match this search" },
|
|
28
28
|
"en-US": { apply: "Apply", cancel: "Cancel", noOptionsMatchThisSearch: "No options match this search" },
|
|
@@ -33,20 +33,20 @@ const Ie = {
|
|
|
33
33
|
"ja-JP": { apply: "適用", cancel: "キャンセル", noOptionsMatchThisSearch: "この検索に一致するオプションはありません" },
|
|
34
34
|
"pt-BR": { apply: "Aplicar", cancel: "Cancelar", noOptionsMatchThisSearch: "Nenhuma opção corresponde a esta busca" },
|
|
35
35
|
"zh-CN": { apply: "应用", cancel: "取消", noOptionsMatchThisSearch: "没有符合此搜索条件的选项" }
|
|
36
|
-
}, Bt = (e,
|
|
37
|
-
const i = B(e.value), { t: n } =
|
|
38
|
-
|
|
36
|
+
}, Bt = (e, u, d, l) => {
|
|
37
|
+
const i = B(e.value), { t: n } = ge({ messages: Oe });
|
|
38
|
+
ve(e, () => {
|
|
39
39
|
i.value = e.value;
|
|
40
40
|
});
|
|
41
41
|
const t = r(
|
|
42
42
|
() => JSON.stringify(i.value) === JSON.stringify(e.value)
|
|
43
43
|
), a = () => {
|
|
44
|
-
l(
|
|
45
|
-
},
|
|
46
|
-
i.value = e.value, l(
|
|
47
|
-
},
|
|
48
|
-
d.value &&
|
|
49
|
-
},
|
|
44
|
+
l(g.SELECT, i.value), l(g.CLOSE_DROPDOWN);
|
|
45
|
+
}, h = () => {
|
|
46
|
+
i.value = e.value, l(g.CLOSE_DROPDOWN);
|
|
47
|
+
}, S = () => {
|
|
48
|
+
d.value && u.value && (i.value = e.value);
|
|
49
|
+
}, p = r(() => [
|
|
50
50
|
{
|
|
51
51
|
title: n("apply"),
|
|
52
52
|
event: a,
|
|
@@ -54,40 +54,40 @@ const Ie = {
|
|
|
54
54
|
},
|
|
55
55
|
{
|
|
56
56
|
title: n("cancel"),
|
|
57
|
-
event:
|
|
57
|
+
event: h
|
|
58
58
|
}
|
|
59
|
-
]),
|
|
60
|
-
i.value = L,
|
|
61
|
-
},
|
|
62
|
-
|
|
63
|
-
},
|
|
64
|
-
|
|
65
|
-
},
|
|
66
|
-
|
|
67
|
-
},
|
|
68
|
-
|
|
69
|
-
},
|
|
70
|
-
l(
|
|
71
|
-
},
|
|
72
|
-
[
|
|
73
|
-
[
|
|
74
|
-
[
|
|
75
|
-
[
|
|
76
|
-
[
|
|
59
|
+
]), w = (L) => {
|
|
60
|
+
i.value = L, u.value || l(g.SELECT, L);
|
|
61
|
+
}, y = (L) => {
|
|
62
|
+
w(L), l(g.TAB);
|
|
63
|
+
}, m = (L) => {
|
|
64
|
+
w(L), l(g.ENTER);
|
|
65
|
+
}, D = (L) => {
|
|
66
|
+
w(L), l(g.SPACE);
|
|
67
|
+
}, v = () => {
|
|
68
|
+
h(), l(g.ESCAPE);
|
|
69
|
+
}, c = () => {
|
|
70
|
+
l(g.SHOW_MORE);
|
|
71
|
+
}, O = {
|
|
72
|
+
[g.SELECT]: w,
|
|
73
|
+
[g.SHOW_MORE]: c,
|
|
74
|
+
[g.TAB]: y,
|
|
75
|
+
[g.SPACE]: D,
|
|
76
|
+
[g.ENTER]: m
|
|
77
77
|
};
|
|
78
78
|
return {
|
|
79
79
|
// Values
|
|
80
|
-
actions:
|
|
80
|
+
actions: p,
|
|
81
81
|
internalSelectedValue: i,
|
|
82
82
|
// Methods
|
|
83
|
-
listeners:
|
|
84
|
-
onEscapeKey:
|
|
85
|
-
onOutsideDropdownClick:
|
|
83
|
+
listeners: O,
|
|
84
|
+
onEscapeKey: v,
|
|
85
|
+
onOutsideDropdownClick: S
|
|
86
86
|
};
|
|
87
|
-
}, At =
|
|
88
|
-
i18n: { messages:
|
|
87
|
+
}, At = F({
|
|
88
|
+
i18n: { messages: Oe },
|
|
89
89
|
name: "bento-dropdown-options-container"
|
|
90
|
-
}),
|
|
90
|
+
}), Tt = /* @__PURE__ */ F({
|
|
91
91
|
...At,
|
|
92
92
|
props: {
|
|
93
93
|
/**
|
|
@@ -178,7 +178,7 @@ const Ie = {
|
|
|
178
178
|
*
|
|
179
179
|
* If enabled, hides the "Select all" checkbox in "multiple" mode.
|
|
180
180
|
*/
|
|
181
|
-
searching:
|
|
181
|
+
searching: Ie.props.searching,
|
|
182
182
|
/**
|
|
183
183
|
* If enabled, dropdown will display non-selectable, static categories
|
|
184
184
|
*/
|
|
@@ -197,12 +197,12 @@ const Ie = {
|
|
|
197
197
|
default: !1
|
|
198
198
|
}
|
|
199
199
|
},
|
|
200
|
-
setup(e, { expose:
|
|
201
|
-
const l =
|
|
200
|
+
setup(e, { expose: u, emit: d }) {
|
|
201
|
+
const l = he(), i = d, n = e, { selectedValue: t, multiple: a } = Fe(n), h = B(null), { t: S } = ge({ messages: Oe }), p = r(() => n.open && !n.disabled), w = r(() => S("noOptionsMatchThisSearch")), y = r(() => ({
|
|
202
202
|
"b-dropdown-options-container--single": !n?.multiple
|
|
203
|
-
})),
|
|
203
|
+
})), m = r(() => ({
|
|
204
204
|
"b-dropdown-options-container__listbox--single": !n?.multiple
|
|
205
|
-
})), { actions:
|
|
205
|
+
})), { actions: D, internalSelectedValue: v, listeners: c, onEscapeKey: O, onOutsideDropdownClick: L } = Bt(t, a, p, i), C = r(() => n?.multiple ? Ot : Me), k = r(() => {
|
|
206
206
|
const T = {
|
|
207
207
|
"min-width": `${n?.targetElement?.clientWidth}px`,
|
|
208
208
|
"max-width": "min(500px, 95%)"
|
|
@@ -210,10 +210,10 @@ const Ie = {
|
|
|
210
210
|
return n?.multiple ? {
|
|
211
211
|
actionsLayout: "space-between",
|
|
212
212
|
ariaLabel: n.ariaLabel,
|
|
213
|
-
actions:
|
|
213
|
+
actions: D.value,
|
|
214
214
|
divider: !0,
|
|
215
215
|
fallbackPosition: ["top-start"],
|
|
216
|
-
id:
|
|
216
|
+
id: ee(`dropdown-options-${n.id}`),
|
|
217
217
|
open: n.open,
|
|
218
218
|
position: "bottom-start",
|
|
219
219
|
style: {
|
|
@@ -226,50 +226,50 @@ const Ie = {
|
|
|
226
226
|
offset: [0, 8],
|
|
227
227
|
position: "bottom-start",
|
|
228
228
|
style: {
|
|
229
|
-
display:
|
|
229
|
+
display: p.value ? "block" : "none",
|
|
230
230
|
...T
|
|
231
231
|
},
|
|
232
232
|
targetElement: n.targetElement
|
|
233
233
|
};
|
|
234
234
|
});
|
|
235
|
-
return
|
|
235
|
+
return u({
|
|
236
236
|
onOutsideDropdownClick: L
|
|
237
|
-
}), (T,
|
|
237
|
+
}), (T, _) => p.value ? (b(), j(_e(C.value), A({
|
|
238
238
|
key: 0,
|
|
239
|
-
class: ["b-dropdown-options-container",
|
|
240
|
-
},
|
|
241
|
-
default:
|
|
242
|
-
|
|
243
|
-
onKeydown:
|
|
239
|
+
class: ["b-dropdown-options-container", y.value]
|
|
240
|
+
}, k.value), {
|
|
241
|
+
default: z(() => [
|
|
242
|
+
se("div", {
|
|
243
|
+
onKeydown: _[0] || (_[0] = re(
|
|
244
244
|
//@ts-ignore
|
|
245
|
-
(...
|
|
245
|
+
(...M) => o(O) && o(O)(...M),
|
|
246
246
|
["esc"]
|
|
247
247
|
))
|
|
248
248
|
}, [
|
|
249
|
-
|
|
249
|
+
H(o(Ie), A({
|
|
250
250
|
id: e.id,
|
|
251
251
|
ref_key: "dropdownOptionsListboxRef",
|
|
252
|
-
ref:
|
|
252
|
+
ref: h,
|
|
253
253
|
"aria-label": e.ariaLabel,
|
|
254
|
-
class: ["b-dropdown-options-container__listbox",
|
|
254
|
+
class: ["b-dropdown-options-container__listbox", m.value],
|
|
255
255
|
"component-loading": e.componentLoading,
|
|
256
256
|
"empty-state": e.emptyState,
|
|
257
257
|
"is-option-disabled": e.isOptionDisabled,
|
|
258
258
|
items: e.items,
|
|
259
|
-
"selected-value": o(
|
|
259
|
+
"selected-value": o(v),
|
|
260
260
|
multiple: o(a),
|
|
261
261
|
"static-categories": e.staticCategories,
|
|
262
|
-
"no-results-message":
|
|
262
|
+
"no-results-message": w.value,
|
|
263
263
|
searching: e.searching,
|
|
264
264
|
loading: e.loading,
|
|
265
265
|
"lazy-load-type": e.lazyLoadType,
|
|
266
266
|
"has-more-items": e.hasMoreItems,
|
|
267
267
|
"virtual-scroll": e.virtualScroll
|
|
268
|
-
},
|
|
269
|
-
|
|
270
|
-
name:
|
|
271
|
-
fn:
|
|
272
|
-
|
|
268
|
+
}, de(o(c))), be({ _: 2 }, [
|
|
269
|
+
ue(o(l), (M, U) => ({
|
|
270
|
+
name: U,
|
|
271
|
+
fn: z((Z) => [
|
|
272
|
+
q(T.$slots, U, le(me(Z)), void 0, !0)
|
|
273
273
|
])
|
|
274
274
|
}))
|
|
275
275
|
]), 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"])
|
|
@@ -278,8 +278,8 @@ const Ie = {
|
|
|
278
278
|
_: 3
|
|
279
279
|
}, 16, ["class"])) : $("", !0);
|
|
280
280
|
}
|
|
281
|
-
}),
|
|
282
|
-
var
|
|
281
|
+
}), Nt = /* @__PURE__ */ X(Tt, [["__scopeId", "data-v-abf92e14"]]);
|
|
282
|
+
var N = /* @__PURE__ */ ((e) => (e.DISABLED = "disabled", e.READONLY = "readonly", e.HAS_ITEMS = "has-items", e.OPENED = "opened", e.ERROR = "error", e))(N || {}), I = /* @__PURE__ */ ((e) => (e.OPEN = "dropdown-base-open", e.KEYDOWN = "dropdown-base-keydown", e.CLOSE = "dropdown-base-close", e.INPUT = "dropdown-base-input", e.CLEAR = "dropdown-base-clear", e))(I || {});
|
|
283
283
|
const qe = {
|
|
284
284
|
"de-DE": { clearSearch: "Suche löschen" },
|
|
285
285
|
"en-GB": { clearSearch: "Clear search" },
|
|
@@ -301,11 +301,11 @@ const qe = {
|
|
|
301
301
|
key: 3,
|
|
302
302
|
class: "b-dropdown-base-textbox__icon",
|
|
303
303
|
"aria-hidden": "true"
|
|
304
|
-
}, Pt = ["tabindex", "onKeydown"], Kt =
|
|
304
|
+
}, Pt = ["tabindex", "onKeydown"], Kt = F({
|
|
305
305
|
i18n: { messages: qe },
|
|
306
306
|
name: "dropdown-base-textbox",
|
|
307
307
|
inheritAttrs: !1
|
|
308
|
-
}), Vt = /* @__PURE__ */
|
|
308
|
+
}), Vt = /* @__PURE__ */ F({
|
|
309
309
|
...Kt,
|
|
310
310
|
props: {
|
|
311
311
|
/**
|
|
@@ -390,16 +390,16 @@ const qe = {
|
|
|
390
390
|
default: null
|
|
391
391
|
}
|
|
392
392
|
},
|
|
393
|
-
setup(e, { expose:
|
|
394
|
-
const { t: l } =
|
|
395
|
-
[`b-dropdown-base-textbox--${
|
|
396
|
-
[`b-dropdown-base-textbox--${
|
|
397
|
-
[`b-dropdown-base-textbox--${
|
|
398
|
-
})),
|
|
399
|
-
() =>
|
|
400
|
-
),
|
|
393
|
+
setup(e, { expose: u, emit: d }) {
|
|
394
|
+
const { t: l } = ge({ messages: qe }), i = Pe(), n = he(), t = Ve(n), a = e, h = d, S = B(null), p = ee("textbox"), w = r(() => ({
|
|
395
|
+
[`b-dropdown-base-textbox--${N.DISABLED}`]: a.disabled,
|
|
396
|
+
[`b-dropdown-base-textbox--${N.READONLY}`]: a.readonly,
|
|
397
|
+
[`b-dropdown-base-textbox--${N.HAS_ITEMS}`]: !!a.additionalItemsSelected
|
|
398
|
+
})), y = r(
|
|
399
|
+
() => O.value && i["aria-required"] ? "true" : null
|
|
400
|
+
), m = r(() => ({
|
|
401
401
|
"b-dropdown-base-textbox__input--dynamic-filtering": a.dynamicFiltering
|
|
402
|
-
})),
|
|
402
|
+
})), D = r(() => a.dynamicFiltering && !!a.value && a.open), v = r(
|
|
403
403
|
() => ({
|
|
404
404
|
"aria-haspopup": "listbox",
|
|
405
405
|
"aria-controls": a.ariaControls,
|
|
@@ -411,48 +411,48 @@ const qe = {
|
|
|
411
411
|
"aria-disabled": a.disabled ? !0 : null,
|
|
412
412
|
"aria-required": i["aria-required"]
|
|
413
413
|
})
|
|
414
|
-
),
|
|
414
|
+
), c = r(
|
|
415
415
|
() => a.multiple ? a.selectedValueItem : []
|
|
416
|
-
),
|
|
417
|
-
() => a.multiple && a.selectedValueItem &&
|
|
416
|
+
), O = r(() => a.dynamicFiltering && (a.open || a.alwaysComboboxIsInput)), L = r(() => a.selectedValueItem && !a.multiple), C = r(
|
|
417
|
+
() => a.multiple && a.selectedValueItem && c.value.length > 0 && a.showSlotContentInMultiple
|
|
418
418
|
);
|
|
419
|
-
|
|
420
|
-
() =>
|
|
419
|
+
ve(
|
|
420
|
+
() => O.value,
|
|
421
421
|
() => {
|
|
422
|
-
|
|
423
|
-
|
|
422
|
+
O.value && !a.alwaysComboboxIsInput && R(() => {
|
|
423
|
+
S.value.focus();
|
|
424
424
|
});
|
|
425
425
|
}
|
|
426
426
|
);
|
|
427
|
-
const
|
|
428
|
-
!a.disabled && !a.readonly && (
|
|
427
|
+
const k = async () => {
|
|
428
|
+
!a.disabled && !a.readonly && (h(I.OPEN), await R(), S.value.focus());
|
|
429
429
|
}, T = () => {
|
|
430
|
-
a.open && (
|
|
431
|
-
},
|
|
432
|
-
|
|
433
|
-
},
|
|
434
|
-
!a.readonly && !a.disabled ?
|
|
430
|
+
a.open && (S.value.focus(), h(I.CLOSE));
|
|
431
|
+
}, _ = (E) => a.open && E.target.tagName === "INPUT" ? null : a.open ? T() : k(), M = () => {
|
|
432
|
+
h(I.CLEAR), h(I.INPUT, ""), S.value.focus();
|
|
433
|
+
}, U = (E) => {
|
|
434
|
+
!a.readonly && !a.disabled ? h(I.INPUT, E.target.value) : (E.preventDefault(), E.stopPropagation());
|
|
435
435
|
};
|
|
436
|
-
return
|
|
436
|
+
return u({
|
|
437
437
|
focus: () => {
|
|
438
|
-
|
|
438
|
+
S.value.focus();
|
|
439
439
|
}
|
|
440
|
-
}), (
|
|
441
|
-
class:
|
|
440
|
+
}), (E, Q) => (b(), x("div", {
|
|
441
|
+
class: oe(E.$attrs.class),
|
|
442
442
|
"data-testid": "textbox-wrapper",
|
|
443
|
-
onClick:
|
|
444
|
-
onKeydown:
|
|
443
|
+
onClick: _,
|
|
444
|
+
onKeydown: re(T, ["escape"])
|
|
445
445
|
}, [
|
|
446
|
-
|
|
447
|
-
class:
|
|
446
|
+
H(o(Ke), {
|
|
447
|
+
class: oe(["b-dropdown-base-textbox", w.value]),
|
|
448
448
|
el: "div",
|
|
449
449
|
"data-testid": "base-textbox"
|
|
450
450
|
}, {
|
|
451
|
-
default:
|
|
452
|
-
|
|
453
|
-
id: o(
|
|
451
|
+
default: z(() => [
|
|
452
|
+
O.value ? (b(), x("input", A({ key: 0 }, v.value, {
|
|
453
|
+
id: o(p),
|
|
454
454
|
ref_key: "textbox",
|
|
455
|
-
ref:
|
|
455
|
+
ref: S,
|
|
456
456
|
class: "b-dropdown-base-textbox__input",
|
|
457
457
|
role: "combobox",
|
|
458
458
|
type: "text",
|
|
@@ -461,58 +461,58 @@ const qe = {
|
|
|
461
461
|
value: e.open ? e.value : e.displayValue,
|
|
462
462
|
disabled: e.disabled ? !0 : null,
|
|
463
463
|
readonly: e.readonly,
|
|
464
|
-
required:
|
|
464
|
+
required: y.value,
|
|
465
465
|
onKeydown: [
|
|
466
|
-
|
|
467
|
-
|
|
466
|
+
Q[0] || (Q[0] = (f) => E.$emit(o(I).KEYDOWN, f)),
|
|
467
|
+
re(_, ["enter"])
|
|
468
468
|
],
|
|
469
|
-
onInput:
|
|
470
|
-
}), null, 16, kt)) : (
|
|
469
|
+
onInput: U
|
|
470
|
+
}), null, 16, kt)) : (b(), x("div", A({
|
|
471
471
|
key: 1,
|
|
472
|
-
id: o(
|
|
473
|
-
},
|
|
472
|
+
id: o(p)
|
|
473
|
+
}, v.value, {
|
|
474
474
|
ref_key: "textbox",
|
|
475
|
-
ref:
|
|
476
|
-
class: ["b-dropdown-base-textbox__input",
|
|
475
|
+
ref: S,
|
|
476
|
+
class: ["b-dropdown-base-textbox__input", m.value],
|
|
477
477
|
"aria-readonly": e.readonly ? "true" : null,
|
|
478
478
|
role: "combobox",
|
|
479
479
|
tabindex: e.disabled ? -1 : 0
|
|
480
480
|
}), [
|
|
481
|
-
L.value ? (
|
|
482
|
-
o(t)("display-value") ?
|
|
483
|
-
|
|
481
|
+
L.value ? (b(), x(Ee, { key: 0 }, [
|
|
482
|
+
o(t)("display-value") ? q(E.$slots, "display-value", le(A({ key: 0 }, e.selectedValueItem)), void 0, !0) : q(E.$slots, "default", le(A({ key: 1 }, e.selectedValueItem)), () => [
|
|
483
|
+
fe(G(e.displayValue), 1)
|
|
484
484
|
], !0)
|
|
485
|
-
], 64)) :
|
|
486
|
-
(
|
|
487
|
-
key:
|
|
485
|
+
], 64)) : C.value ? (b(), x("div", $t, [
|
|
486
|
+
(b(!0), x(Ee, null, ue(c.value, (f) => (b(), x("div", {
|
|
487
|
+
key: f.value
|
|
488
488
|
}, [
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
489
|
+
se("div", Rt, [
|
|
490
|
+
q(E.$slots, "default", A({ ref_for: !0 }, f), () => [
|
|
491
|
+
fe(G(e.displayValue), 1)
|
|
492
492
|
], !0)
|
|
493
493
|
])
|
|
494
494
|
]))), 128))
|
|
495
|
-
])) : (
|
|
496
|
-
|
|
495
|
+
])) : (b(), x(Ee, { key: 2 }, [
|
|
496
|
+
fe(G(e.displayValue), 1)
|
|
497
497
|
], 64))
|
|
498
498
|
], 16, Mt)),
|
|
499
|
-
e.additionalItemsSelected ? (
|
|
500
|
-
o(t)("icon") && !
|
|
501
|
-
|
|
499
|
+
e.additionalItemsSelected ? (b(), x("span", Ft, G(e.additionalItemsSelected), 1)) : $("", !0),
|
|
500
|
+
o(t)("icon") && !D.value ? (b(), x("span", _t, [
|
|
501
|
+
q(E.$slots, "icon", {}, void 0, !0)
|
|
502
502
|
])) : $("", !0),
|
|
503
|
-
|
|
503
|
+
D.value ? (b(), x("span", {
|
|
504
504
|
key: 4,
|
|
505
505
|
class: "b-dropdown-base-textbox__clear-search",
|
|
506
506
|
tabindex: e.disabled ? -1 : 0,
|
|
507
507
|
"data-testid": "clear-search-button",
|
|
508
|
-
onClick:
|
|
509
|
-
onKeydown:
|
|
510
|
-
onKeyup:
|
|
508
|
+
onClick: Ne(M, ["stop"]),
|
|
509
|
+
onKeydown: re(Ne(M, ["stop"]), ["enter"]),
|
|
510
|
+
onKeyup: re(M, ["space"])
|
|
511
511
|
}, [
|
|
512
|
-
e.size === o(
|
|
512
|
+
e.size === o(ae).SMALL ? (b(), j(o(bt), {
|
|
513
513
|
key: 0,
|
|
514
514
|
"svg-title": o(l)("clearSearch")
|
|
515
|
-
}, null, 8, ["svg-title"])) : (
|
|
515
|
+
}, null, 8, ["svg-title"])) : (b(), j(o(ft), {
|
|
516
516
|
key: 1,
|
|
517
517
|
"svg-title": o(l)("clearSearch")
|
|
518
518
|
}, null, 8, ["svg-title"]))
|
|
@@ -522,10 +522,10 @@ const qe = {
|
|
|
522
522
|
}, 8, ["class"])
|
|
523
523
|
], 34));
|
|
524
524
|
}
|
|
525
|
-
}), ze = /* @__PURE__ */
|
|
525
|
+
}), ze = /* @__PURE__ */ X(Vt, [["__scopeId", "data-v-c9de8fe1"]]), qt = { class: "b-dropdown-default-textbox__chevron" }, zt = F({
|
|
526
526
|
name: "dropdown-default-textbox",
|
|
527
527
|
inheritAttrs: !1
|
|
528
|
-
}), Ut = /* @__PURE__ */
|
|
528
|
+
}), Ut = /* @__PURE__ */ F({
|
|
529
529
|
...zt,
|
|
530
530
|
props: {
|
|
531
531
|
/**
|
|
@@ -613,114 +613,114 @@ const qe = {
|
|
|
613
613
|
multiple: { type: Boolean, default: !1 }
|
|
614
614
|
},
|
|
615
615
|
emits: ["clear", "close", "input", "keydown", "open"],
|
|
616
|
-
setup(e, { expose:
|
|
617
|
-
const l = d, i =
|
|
618
|
-
[`b-dropdown-default-textbox--${
|
|
619
|
-
[`b-dropdown-default-textbox--${
|
|
620
|
-
[`b-dropdown-default-textbox--${
|
|
621
|
-
[`b-dropdown-default-textbox--${
|
|
616
|
+
setup(e, { expose: u, emit: d }) {
|
|
617
|
+
const l = d, i = he(), n = e, t = B(null), a = r(() => ({
|
|
618
|
+
[`b-dropdown-default-textbox--${N.ERROR}`]: !n.disabled && !n.readonly && n.isInvalid,
|
|
619
|
+
[`b-dropdown-default-textbox--${N.DISABLED}`]: n.disabled,
|
|
620
|
+
[`b-dropdown-default-textbox--${N.READONLY}`]: n.readonly,
|
|
621
|
+
[`b-dropdown-default-textbox--${N.OPENED}`]: n.open,
|
|
622
622
|
"b-dropdown-default-textbox--condensed": n.condensed
|
|
623
|
-
})),
|
|
624
|
-
l("input",
|
|
625
|
-
},
|
|
626
|
-
l("keydown",
|
|
627
|
-
},
|
|
628
|
-
|
|
629
|
-
},
|
|
630
|
-
|
|
631
|
-
},
|
|
632
|
-
|
|
633
|
-
},
|
|
634
|
-
[I.INPUT]:
|
|
635
|
-
[I.OPEN]:
|
|
636
|
-
[I.CLOSE]:
|
|
637
|
-
[I.CLEAR]:
|
|
638
|
-
[I.KEYDOWN]:
|
|
623
|
+
})), h = r(() => n.open && !n.disabled && !n.readonly), S = (c) => {
|
|
624
|
+
l("input", c);
|
|
625
|
+
}, p = (c) => {
|
|
626
|
+
l("keydown", c);
|
|
627
|
+
}, w = (c) => {
|
|
628
|
+
te(c), l("open");
|
|
629
|
+
}, y = (c) => {
|
|
630
|
+
te(c), l("close");
|
|
631
|
+
}, m = (c) => {
|
|
632
|
+
te(c), l("clear");
|
|
633
|
+
}, D = {
|
|
634
|
+
[I.INPUT]: S,
|
|
635
|
+
[I.OPEN]: w,
|
|
636
|
+
[I.CLOSE]: y,
|
|
637
|
+
[I.CLEAR]: m,
|
|
638
|
+
[I.KEYDOWN]: p
|
|
639
639
|
};
|
|
640
|
-
return
|
|
640
|
+
return u({
|
|
641
641
|
focus: () => {
|
|
642
642
|
t.value.focus();
|
|
643
643
|
}
|
|
644
|
-
}), (
|
|
645
|
-
class:
|
|
644
|
+
}), (c, O) => (b(), x("div", {
|
|
645
|
+
class: oe(["b-dropdown-default-textbox", a.value]),
|
|
646
646
|
"data-testid": "default-textbox"
|
|
647
647
|
}, [
|
|
648
|
-
|
|
648
|
+
H(ze, A({
|
|
649
649
|
ref_key: "baseTextbox",
|
|
650
650
|
ref: t
|
|
651
|
-
}, { ...
|
|
651
|
+
}, { ...c.$attrs, ...c.$props }, {
|
|
652
652
|
class: "b-dropdown-default-textbox__textbox",
|
|
653
653
|
value: e.value
|
|
654
|
-
},
|
|
655
|
-
icon:
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
[
|
|
654
|
+
}, de(D)), be({
|
|
655
|
+
icon: z(() => [
|
|
656
|
+
se("div", qt, [
|
|
657
|
+
ne(H(o(yt), { "svg-title": "opened" }, null, 512), [
|
|
658
|
+
[ye, h.value]
|
|
659
659
|
]),
|
|
660
|
-
|
|
661
|
-
[
|
|
660
|
+
ne(H(o(mt), { "svg-title": "closed" }, null, 512), [
|
|
661
|
+
[ye, !h.value]
|
|
662
662
|
])
|
|
663
663
|
])
|
|
664
664
|
]),
|
|
665
665
|
_: 2
|
|
666
666
|
}, [
|
|
667
|
-
|
|
668
|
-
name:
|
|
669
|
-
fn:
|
|
670
|
-
|
|
667
|
+
ue(o(i), (L, C) => ({
|
|
668
|
+
name: C,
|
|
669
|
+
fn: z((k) => [
|
|
670
|
+
q(c.$slots, C, le(me(k ?? {})), void 0, !0)
|
|
671
671
|
])
|
|
672
672
|
}))
|
|
673
673
|
]), 1040, ["value"])
|
|
674
674
|
], 2));
|
|
675
675
|
}
|
|
676
|
-
}), Wt = /* @__PURE__ */
|
|
676
|
+
}), Wt = /* @__PURE__ */ X(Ut, [["__scopeId", "data-v-c3e3ce21"]]);
|
|
677
677
|
let $e = 0;
|
|
678
678
|
const jt = {
|
|
679
679
|
beforeCreate() {
|
|
680
680
|
this.uuid = $e.toString(), $e += 1;
|
|
681
681
|
}
|
|
682
682
|
}, Ht = { key: 0 };
|
|
683
|
-
function Yt(e,
|
|
684
|
-
return
|
|
683
|
+
function Yt(e, u, d, l, i, n) {
|
|
684
|
+
return b(), x("svg", A({ role: "img" }, e.$attrs, {
|
|
685
685
|
class: "ui-assets-icons-16",
|
|
686
686
|
xmlns: "http://www.w3.org/2000/svg",
|
|
687
687
|
width: "16",
|
|
688
688
|
height: "16",
|
|
689
689
|
fill: "none"
|
|
690
690
|
}), [
|
|
691
|
-
e.$attrs["svg-title"] ? (
|
|
692
|
-
|
|
691
|
+
e.$attrs["svg-title"] ? (b(), x("title", Ht, G(e.$attrs["svg-title"]), 1)) : $("", !0),
|
|
692
|
+
u[0] || (u[0] = se("path", {
|
|
693
693
|
fill: "#001222",
|
|
694
694
|
d: "M5.00011 5.43922L8.00011 8.43922L11.0001 5.43922L12.0608 6.49988L8.00011 10.5605L3.93945 6.49988L5.00011 5.43922Z"
|
|
695
695
|
}, null, -1))
|
|
696
696
|
], 16);
|
|
697
697
|
}
|
|
698
|
-
const Jt = /* @__PURE__ */
|
|
698
|
+
const Jt = /* @__PURE__ */ X(jt, [["render", Yt]]);
|
|
699
699
|
let Re = 0;
|
|
700
700
|
const Gt = {
|
|
701
701
|
beforeCreate() {
|
|
702
702
|
this.uuid = Re.toString(), Re += 1;
|
|
703
703
|
}
|
|
704
704
|
}, Xt = { key: 0 };
|
|
705
|
-
function Zt(e,
|
|
706
|
-
return
|
|
705
|
+
function Zt(e, u, d, l, i, n) {
|
|
706
|
+
return b(), x("svg", A({ role: "img" }, e.$attrs, {
|
|
707
707
|
class: "ui-assets-icons-16",
|
|
708
708
|
xmlns: "http://www.w3.org/2000/svg",
|
|
709
709
|
width: "16",
|
|
710
710
|
height: "16",
|
|
711
711
|
fill: "none"
|
|
712
712
|
}), [
|
|
713
|
-
e.$attrs["svg-title"] ? (
|
|
714
|
-
|
|
713
|
+
e.$attrs["svg-title"] ? (b(), x("title", Xt, G(e.$attrs["svg-title"]), 1)) : $("", !0),
|
|
714
|
+
u[0] || (u[0] = se("path", {
|
|
715
715
|
fill: "#001222",
|
|
716
716
|
d: "M10.9999 10.5608L7.9999 7.56077L4.9999 10.5608L3.93924 9.50011L7.9999 5.43945L12.0606 9.50011L10.9999 10.5608Z"
|
|
717
717
|
}, null, -1))
|
|
718
718
|
], 16);
|
|
719
719
|
}
|
|
720
|
-
const Qt = /* @__PURE__ */
|
|
720
|
+
const Qt = /* @__PURE__ */ X(Gt, [["render", Zt]]), ea = { class: "b-dropdown-small-textbox__chevron" }, ta = F({
|
|
721
721
|
name: "dropdown-small-textbox",
|
|
722
722
|
inheritAttrs: !1
|
|
723
|
-
}), aa = /* @__PURE__ */
|
|
723
|
+
}), aa = /* @__PURE__ */ F({
|
|
724
724
|
...ta,
|
|
725
725
|
props: {
|
|
726
726
|
/**
|
|
@@ -777,49 +777,49 @@ const Qt = /* @__PURE__ */ Z(Gt, [["render", Zt]]), ea = { class: "b-dropdown-sm
|
|
|
777
777
|
value: { type: String, default: "" }
|
|
778
778
|
},
|
|
779
779
|
emits: ["clear", "close", "input", "keydown", "open"],
|
|
780
|
-
setup(e, { expose:
|
|
780
|
+
setup(e, { expose: u, emit: d }) {
|
|
781
781
|
const l = d, i = e, n = B(null), t = r(() => ({
|
|
782
|
-
[`b-dropdown-small-textbox--${
|
|
783
|
-
[`b-dropdown-small-textbox--${
|
|
784
|
-
[`b-dropdown-small-textbox--${
|
|
785
|
-
})), a = r(() => i.open && !i.disabled && !i.readonly),
|
|
786
|
-
l("input",
|
|
787
|
-
},
|
|
788
|
-
l("keydown",
|
|
789
|
-
},
|
|
790
|
-
|
|
791
|
-
},
|
|
792
|
-
|
|
793
|
-
},
|
|
794
|
-
|
|
795
|
-
},
|
|
796
|
-
[I.INPUT]:
|
|
797
|
-
[I.OPEN]:
|
|
798
|
-
[I.CLOSE]:
|
|
799
|
-
[I.CLEAR]:
|
|
800
|
-
[I.KEYDOWN]:
|
|
782
|
+
[`b-dropdown-small-textbox--${N.DISABLED}`]: i.disabled,
|
|
783
|
+
[`b-dropdown-small-textbox--${N.READONLY}`]: i.readonly,
|
|
784
|
+
[`b-dropdown-small-textbox--${N.OPENED}`]: i.open
|
|
785
|
+
})), a = r(() => i.open && !i.disabled && !i.readonly), h = (v) => {
|
|
786
|
+
l("input", v);
|
|
787
|
+
}, S = (v) => {
|
|
788
|
+
l("keydown", v);
|
|
789
|
+
}, p = (v) => {
|
|
790
|
+
te(v), l("open");
|
|
791
|
+
}, w = (v) => {
|
|
792
|
+
te(v), l("close");
|
|
793
|
+
}, y = (v) => {
|
|
794
|
+
te(v), l("clear");
|
|
795
|
+
}, m = {
|
|
796
|
+
[I.INPUT]: h,
|
|
797
|
+
[I.OPEN]: p,
|
|
798
|
+
[I.CLOSE]: w,
|
|
799
|
+
[I.CLEAR]: y,
|
|
800
|
+
[I.KEYDOWN]: S
|
|
801
801
|
};
|
|
802
|
-
return
|
|
802
|
+
return u({
|
|
803
803
|
focus: () => {
|
|
804
804
|
n.value.focus();
|
|
805
805
|
}
|
|
806
|
-
}), (
|
|
807
|
-
class:
|
|
806
|
+
}), (v, c) => (b(), x("div", {
|
|
807
|
+
class: oe(["b-dropdown-small-textbox", t.value])
|
|
808
808
|
}, [
|
|
809
|
-
|
|
809
|
+
H(ze, A({
|
|
810
810
|
ref_key: "baseTextbox",
|
|
811
811
|
ref: n
|
|
812
|
-
}, { ...
|
|
812
|
+
}, { ...v.$attrs, ...v.$props }, {
|
|
813
813
|
class: "b-dropdown-small-textbox__textbox",
|
|
814
|
-
size: o(
|
|
815
|
-
},
|
|
816
|
-
icon:
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
[
|
|
814
|
+
size: o(ae).SMALL
|
|
815
|
+
}, de(m)), {
|
|
816
|
+
icon: z(() => [
|
|
817
|
+
se("div", ea, [
|
|
818
|
+
ne(H(o(Qt), { "svg-title": "opened" }, null, 512), [
|
|
819
|
+
[ye, a.value]
|
|
820
820
|
]),
|
|
821
|
-
|
|
822
|
-
[
|
|
821
|
+
ne(H(o(Jt), { "svg-title": "closed" }, null, 512), [
|
|
822
|
+
[ye, !a.value]
|
|
823
823
|
])
|
|
824
824
|
])
|
|
825
825
|
]),
|
|
@@ -827,7 +827,7 @@ const Qt = /* @__PURE__ */ Z(Gt, [["render", Zt]]), ea = { class: "b-dropdown-sm
|
|
|
827
827
|
}, 16, ["size"])
|
|
828
828
|
], 2));
|
|
829
829
|
}
|
|
830
|
-
}), la = /* @__PURE__ */
|
|
830
|
+
}), la = /* @__PURE__ */ X(aa, [["__scopeId", "data-v-39ce3ec8"]]), oa = (e, u) => u.value.reduce((d, l) => {
|
|
831
831
|
if (l.items) {
|
|
832
832
|
const i = l.items.filter(
|
|
833
833
|
(t) => e.value.find((a) => a.value === t.value)
|
|
@@ -835,93 +835,95 @@ const Qt = /* @__PURE__ */ Z(Gt, [["render", Zt]]), ea = { class: "b-dropdown-sm
|
|
|
835
835
|
i.length === l.items.length ? d.push(l.displayValue ?? l.label) : i.forEach(({ label: t, displayValue: a }) => d.push(a ?? t));
|
|
836
836
|
}
|
|
837
837
|
return e.value.find((i) => i.value === l.value) && d.push(l.displayValue ?? l.label), d;
|
|
838
|
-
}, []).join(", "), na = ({ items: e, placeholder:
|
|
838
|
+
}, []).join(", "), na = ({ items: e, placeholder: u, selectedValues: d, isMultiSelect: l }) => {
|
|
839
839
|
const i = r(
|
|
840
840
|
() => l.value && e.value.find((t) => t.items?.length)
|
|
841
841
|
);
|
|
842
|
-
return r(() => d.value.length ? i.value ? oa(d, e) : d.value.map(({ label: t, displayValue: a }) => a ?? t).join(", ") :
|
|
842
|
+
return r(() => d.value.length ? i.value ? oa(d, e) : d.value.map(({ label: t, displayValue: a }) => a ?? t).join(", ") : u.value || null);
|
|
843
843
|
}, Ue = (e) => {
|
|
844
844
|
e.value.$children?.[0].$refs.textbox.focus();
|
|
845
845
|
}, sa = ({
|
|
846
846
|
inputContainerRef: e,
|
|
847
|
-
optionsContainerRef:
|
|
847
|
+
optionsContainerRef: u,
|
|
848
848
|
selectedValueIndex: d,
|
|
849
849
|
isDropdownOpen: l,
|
|
850
850
|
isDynamicFltering: i,
|
|
851
851
|
items: n,
|
|
852
|
-
isMultiple: t
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
i.value && await
|
|
858
|
-
|
|
852
|
+
isMultiple: t,
|
|
853
|
+
totalItemCount: a,
|
|
854
|
+
isVirtualScroll: h
|
|
855
|
+
}, S, p, w) => {
|
|
856
|
+
const y = async (f) => {
|
|
857
|
+
i.value && await R(), n.value[f]?.focus();
|
|
858
|
+
}, m = async (f) => {
|
|
859
|
+
i.value && await R();
|
|
860
|
+
const ie = u.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef?.$el.querySelectorAll(
|
|
859
861
|
"button"
|
|
860
862
|
);
|
|
861
|
-
|
|
862
|
-
},
|
|
863
|
-
|
|
864
|
-
),
|
|
865
|
-
|
|
866
|
-
|
|
863
|
+
ie?.length ? ie[f]?.focus() : y(f);
|
|
864
|
+
}, D = (f) => u.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef?.setListboxFocusedIndex(
|
|
865
|
+
f
|
|
866
|
+
), v = async (f) => {
|
|
867
|
+
await u.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef?.navigateToItem(f);
|
|
868
|
+
}, c = (f) => {
|
|
869
|
+
R(() => {
|
|
870
|
+
h ? v(f) : (D(f), y(f));
|
|
867
871
|
});
|
|
868
872
|
}, O = () => {
|
|
869
|
-
l.value ||
|
|
870
|
-
p(n.value.length - 1), u(n.value.length - 1);
|
|
871
|
-
});
|
|
872
|
-
}, m = ({ detail: w }) => {
|
|
873
|
-
w.preventDefault(), b();
|
|
874
|
-
}, y = ({ detail: w }) => {
|
|
875
|
-
w.preventDefault(), O();
|
|
876
|
-
}, D = () => {
|
|
877
|
-
b();
|
|
873
|
+
l.value || p(), c(0);
|
|
878
874
|
}, L = () => {
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
w.preventDefault(), a(), l.value && N(() => {
|
|
882
|
-
t ? S(0) : (p(d.value), u(d.value));
|
|
883
|
-
});
|
|
884
|
-
}, M = ({ detail: w }) => {
|
|
885
|
-
w.preventDefault(), a(), l.value && N(() => {
|
|
886
|
-
t ? S(0) : (p(d.value), u(d.value));
|
|
875
|
+
l.value || p(), R(() => {
|
|
876
|
+
c(h ? a.value - 1 : n.value.length - 1);
|
|
887
877
|
});
|
|
878
|
+
}, C = ({ detail: f }) => {
|
|
879
|
+
f.preventDefault(), O();
|
|
880
|
+
}, k = ({ detail: f }) => {
|
|
881
|
+
f.preventDefault(), L();
|
|
888
882
|
}, T = () => {
|
|
889
|
-
|
|
890
|
-
},
|
|
891
|
-
|
|
883
|
+
O();
|
|
884
|
+
}, _ = () => {
|
|
885
|
+
L();
|
|
886
|
+
}, M = ({ detail: f }) => {
|
|
887
|
+
f.preventDefault(), S(), l.value && (t ? m(0) : c(d.value));
|
|
888
|
+
}, U = ({ detail: f }) => {
|
|
889
|
+
f.preventDefault(), S(), l.value && (t ? m(0) : c(d.value));
|
|
890
|
+
}, Z = () => {
|
|
891
|
+
l.value && w();
|
|
892
|
+
}, E = () => {
|
|
893
|
+
l.value && (w(), Ue(e));
|
|
892
894
|
};
|
|
893
895
|
return r(() => ({
|
|
894
|
-
[
|
|
895
|
-
[
|
|
896
|
-
[
|
|
897
|
-
[
|
|
898
|
-
...i.value ? {} : { [
|
|
899
|
-
[
|
|
900
|
-
...i.value ? {} : { [
|
|
901
|
-
[
|
|
896
|
+
[W.ARROW_DOWN]: C,
|
|
897
|
+
[W.ARROW_UP]: k,
|
|
898
|
+
[W.HOME]: T,
|
|
899
|
+
[W.END]: _,
|
|
900
|
+
...i.value ? {} : { [W.SPACE]: M },
|
|
901
|
+
[W.ENTER]: U,
|
|
902
|
+
...i.value ? {} : { [W.TAB]: Z },
|
|
903
|
+
[W.ESCAPE]: E
|
|
902
904
|
}));
|
|
903
|
-
}, ia = ({ inputContainerRef: e, isDropdownOpen:
|
|
905
|
+
}, ia = ({ inputContainerRef: e, isDropdownOpen: u }, d) => {
|
|
904
906
|
const l = () => {
|
|
905
|
-
|
|
907
|
+
u.value && d(), R(() => {
|
|
906
908
|
Ue(e);
|
|
907
909
|
});
|
|
908
910
|
};
|
|
909
911
|
return {
|
|
910
|
-
[
|
|
911
|
-
[
|
|
912
|
-
[
|
|
913
|
-
[
|
|
912
|
+
[g.ENTER]: l,
|
|
913
|
+
[g.ESCAPE]: l,
|
|
914
|
+
[g.TAB]: l,
|
|
915
|
+
[g.SPACE]: l
|
|
914
916
|
};
|
|
915
917
|
};
|
|
916
|
-
function ra(e,
|
|
917
|
-
const n = B(e), t = B(
|
|
918
|
-
return
|
|
919
|
-
|
|
918
|
+
function ra(e, u, d, l, i) {
|
|
919
|
+
const n = B(e), t = B(u), a = (p, w = []) => w.flatMap((y) => y.label.toLocaleLowerCase().includes(p) ? l?.value && y.items ? [...a(p, y.items)] : [y, ...a(p, y.items)] : y.items ? [...a(p, y.items)] : []), h = d !== void 0 ? gt(() => d(n.value), i ?? 300) : void 0;
|
|
920
|
+
return ve(n, () => {
|
|
921
|
+
h !== void 0 && h();
|
|
920
922
|
}), r(() => {
|
|
921
923
|
if (!n.value || d !== void 0)
|
|
922
924
|
return t.value;
|
|
923
|
-
const
|
|
924
|
-
return a(
|
|
925
|
+
const p = n.value.toLocaleLowerCase();
|
|
926
|
+
return a(p, t.value);
|
|
925
927
|
});
|
|
926
928
|
}
|
|
927
929
|
const We = {
|
|
@@ -935,7 +937,7 @@ const We = {
|
|
|
935
937
|
"ja-JP": { all: "すべて", ariaLabelFallback: "ドロップダウン", clearSearch: "フィルターをクリア" },
|
|
936
938
|
"pt-BR": { all: "Todos", ariaLabelFallback: "Menu suspenso", clearSearch: "Limpar filtro" },
|
|
937
939
|
"zh-CN": { all: "全部", ariaLabelFallback: "下拉菜单", clearSearch: "清除筛选器" }
|
|
938
|
-
}, da = /* @__PURE__ */ Symbol("input field component injection key"), Ma = /* @__PURE__ */ Symbol("input field hint injection key"), $a = /* @__PURE__ */ Symbol("input field parent component injection key"), ua =
|
|
940
|
+
}, da = /* @__PURE__ */ Symbol("input field component injection key"), Ma = /* @__PURE__ */ Symbol("input field hint injection key"), $a = /* @__PURE__ */ Symbol("input field parent component injection key"), ua = F({
|
|
939
941
|
i18n: { messages: We },
|
|
940
942
|
name: "b-dropdown",
|
|
941
943
|
components: {
|
|
@@ -943,7 +945,7 @@ const We = {
|
|
|
943
945
|
DropdownInputSmall: la
|
|
944
946
|
},
|
|
945
947
|
model: { prop: "modelValue" }
|
|
946
|
-
}), ca = /* @__PURE__ */
|
|
948
|
+
}), ca = /* @__PURE__ */ F({
|
|
947
949
|
...ua,
|
|
948
950
|
props: {
|
|
949
951
|
ariaLabel: { default: null },
|
|
@@ -956,7 +958,7 @@ const We = {
|
|
|
956
958
|
items: { default: () => [] },
|
|
957
959
|
loading: { type: Boolean, default: !1 },
|
|
958
960
|
componentLoading: { type: Boolean, default: !1 },
|
|
959
|
-
lazyLoadType: { default:
|
|
961
|
+
lazyLoadType: { default: Ie.props.lazyLoadType.default },
|
|
960
962
|
multiple: { type: Boolean, default: !1 },
|
|
961
963
|
search: { default: void 0 },
|
|
962
964
|
showSlotContentInMultiple: { type: Boolean, default: !1 },
|
|
@@ -977,153 +979,155 @@ const We = {
|
|
|
977
979
|
tooltipText: { default: null }
|
|
978
980
|
},
|
|
979
981
|
emits: ["input", "update:model-value", "show-more", "open"],
|
|
980
|
-
setup(e, { expose:
|
|
981
|
-
const l = Pe(), i =
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
),
|
|
982
|
+
setup(e, { expose: u, emit: d }) {
|
|
983
|
+
const l = Pe(), i = he(), n = Ve(i), t = e, a = d, { t: h } = ge({ messages: We }), { emitValue: S } = ht(a), p = B(null), w = B(null), y = B(null), m = B(!1), D = ee("bento-dropdown-options-container"), v = ee("dropdown-label"), c = ee("dropdown-description"), O = ee("dropdown-error"), { isReadOnly: L } = Ct(V(t, "readonly")), C = r(() => t.modelValue ?? t.value), { cachedSelectedListboxOptions: k, cachedListboxSelectedValues: T, setCachedValues: _ } = St(
|
|
984
|
+
V(t, "items"),
|
|
985
|
+
C,
|
|
986
|
+
V(t, "multiple"),
|
|
987
|
+
V(t, "enableValueLabelPair")
|
|
988
|
+
), M = B(l["aria-label"]), U = B(l["aria-describedby"]), { ariaLabel: Z, label: E } = Fe(t), Q = r(() => h("ariaLabelFallback")), f = vt({
|
|
987
989
|
// TODO: take ariaLabel ref away when aria-label prop is removed
|
|
988
|
-
ariaLabel:
|
|
989
|
-
label:
|
|
990
|
-
defaultFallback:
|
|
991
|
-
}),
|
|
990
|
+
ariaLabel: Z.value || M,
|
|
991
|
+
label: E,
|
|
992
|
+
defaultFallback: Q
|
|
993
|
+
}), ie = t.size === ae.SMALL || pt(da, !1), je = r(() => ie ? ae.SMALL : ae.DEFAULT), He = r(() => ({
|
|
992
994
|
"b-dropdown--condensed": t.condensed
|
|
993
995
|
})), Ye = r(() => ({
|
|
994
996
|
"b-dropdown__description--error": !!t.errorMessage
|
|
995
|
-
})), Y = B(""),
|
|
997
|
+
})), Y = B(""), ce = V(t, "items"), De = V(t, "staticCategories"), pe = ra(
|
|
996
998
|
Y,
|
|
997
|
-
|
|
999
|
+
ce,
|
|
998
1000
|
t?.search?.searchEvent,
|
|
999
1001
|
De,
|
|
1000
1002
|
t?.search?.debounceTime
|
|
1001
|
-
),
|
|
1002
|
-
items:
|
|
1003
|
-
placeholder:
|
|
1004
|
-
isMultiSelect:
|
|
1005
|
-
selectedValues:
|
|
1003
|
+
), Se = r(() => t.dynamicFiltering && !!Y.value), Je = na({
|
|
1004
|
+
items: ce,
|
|
1005
|
+
placeholder: V(t, "placeholder"),
|
|
1006
|
+
isMultiSelect: V(t, "multiple"),
|
|
1007
|
+
selectedValues: k
|
|
1006
1008
|
}), Ge = r(() => {
|
|
1007
|
-
if (t?.multiple && Array.isArray(
|
|
1009
|
+
if (t?.multiple && Array.isArray(C.value))
|
|
1008
1010
|
return t.items.filter(
|
|
1009
1011
|
({ value: s }) => t?.value && (t?.value).includes(s)
|
|
1010
1012
|
);
|
|
1011
1013
|
if (!t.multiple && t.staticCategories) {
|
|
1012
1014
|
const s = t.items.find(
|
|
1013
|
-
(
|
|
1015
|
+
(K) => K.items?.some((J) => J.value === C.value)
|
|
1014
1016
|
);
|
|
1015
|
-
return s ? s.items.find((
|
|
1017
|
+
return (s ? s.items.find((K) => K.value === C.value) : t.items.find(({ value: K }) => K === C.value)) ?? null;
|
|
1016
1018
|
}
|
|
1017
|
-
return t.items.find(({ value: s }) => s ===
|
|
1019
|
+
return t.items.find(({ value: s }) => s === C.value);
|
|
1018
1020
|
}), Xe = r(() => {
|
|
1019
|
-
const s =
|
|
1021
|
+
const s = pe.value.findIndex(({ value: P }) => t.enableValueLabelPair ? C.value.value === P : C.value === P);
|
|
1020
1022
|
return s > -1 ? s : 0;
|
|
1021
|
-
}), { isMultiLevelSelect: Be, flattenedItemsList: Ze } = wt(
|
|
1023
|
+
}), { isMultiLevelSelect: Be, flattenedItemsList: Ze } = wt(ce), Qe = r(() => Be.value && !t.staticCategories), et = r(() => Qe.value ? "treeitem" : "option"), tt = r(() => {
|
|
1022
1024
|
if (t.multiple) {
|
|
1023
|
-
const s = Array.isArray(
|
|
1024
|
-
return s === 0 ? null : !t.hasMoreItems && P > 0 && P === s ?
|
|
1025
|
+
const s = Array.isArray(C.value) ? C.value.length : 0, P = Be.value ? Ze.value.length : ce.value.length;
|
|
1026
|
+
return s === 0 ? null : !t.hasMoreItems && P > 0 && P === s ? h("all") : s;
|
|
1025
1027
|
}
|
|
1026
1028
|
return null;
|
|
1027
1029
|
}), at = r(
|
|
1028
1030
|
() => [
|
|
1029
|
-
t.description ?
|
|
1030
|
-
|
|
1031
|
-
t.errorMessage ?
|
|
1031
|
+
t.description ? c : null,
|
|
1032
|
+
U.value,
|
|
1033
|
+
t.errorMessage ? O : null
|
|
1032
1034
|
].filter(Boolean).join(" ") || null
|
|
1033
|
-
), lt = r(() =>
|
|
1035
|
+
), lt = r(() => y.value?.$el), { visibleDomOptions: ot, updateVisibleDomOptions: Ae } = Lt(
|
|
1034
1036
|
lt,
|
|
1035
|
-
|
|
1037
|
+
pe,
|
|
1036
1038
|
et
|
|
1037
1039
|
), nt = () => {
|
|
1038
|
-
L.value || (
|
|
1040
|
+
L.value || (m.value = !0, R(() => {
|
|
1039
1041
|
Ae();
|
|
1040
1042
|
}));
|
|
1041
|
-
}, Se = () => {
|
|
1042
|
-
b.value = !1;
|
|
1043
1043
|
}, we = () => {
|
|
1044
|
-
|
|
1044
|
+
m.value = !1;
|
|
1045
|
+
}, Le = () => {
|
|
1046
|
+
L.value || (m.value = !m.value, R(() => {
|
|
1045
1047
|
Ae();
|
|
1046
|
-
}),
|
|
1048
|
+
}), Se.value && (Y.value = ""));
|
|
1047
1049
|
}, st = () => {
|
|
1048
|
-
|
|
1050
|
+
Se.value && (Y.value = ""), m.value && (m.value = !1, y.value.onOutsideDropdownClick());
|
|
1049
1051
|
}, it = async (s) => {
|
|
1050
|
-
t.multiple || (Y.value = "",
|
|
1052
|
+
t.multiple || (Y.value = "", m.value = !1), _(s), S(T.value), t.multiple || (await R(), Te());
|
|
1051
1053
|
}, rt = () => {
|
|
1052
|
-
a(
|
|
1054
|
+
a(g.SHOW_MORE);
|
|
1053
1055
|
}, dt = sa(
|
|
1054
1056
|
{
|
|
1055
|
-
inputContainerRef:
|
|
1056
|
-
optionsContainerRef:
|
|
1057
|
+
inputContainerRef: p,
|
|
1058
|
+
optionsContainerRef: y,
|
|
1057
1059
|
selectedValueIndex: Xe,
|
|
1058
|
-
isDropdownOpen:
|
|
1059
|
-
isDynamicFltering:
|
|
1060
|
+
isDropdownOpen: m,
|
|
1061
|
+
isDynamicFltering: V(t, "dynamicFiltering"),
|
|
1060
1062
|
items: ot,
|
|
1061
|
-
isMultiple: t.multiple
|
|
1063
|
+
isMultiple: t.multiple,
|
|
1064
|
+
totalItemCount: r(() => pe.value.length),
|
|
1065
|
+
isVirtualScroll: !t?.multiple && t?.virtualScroll !== !1 && t?.lazyLoadType === "none"
|
|
1062
1066
|
},
|
|
1063
|
-
|
|
1067
|
+
Le,
|
|
1064
1068
|
nt,
|
|
1065
|
-
|
|
1069
|
+
we
|
|
1066
1070
|
), ut = ia(
|
|
1067
1071
|
{
|
|
1068
|
-
inputContainerRef:
|
|
1069
|
-
isDropdownOpen:
|
|
1072
|
+
inputContainerRef: p,
|
|
1073
|
+
isDropdownOpen: m
|
|
1070
1074
|
},
|
|
1071
|
-
|
|
1075
|
+
we
|
|
1072
1076
|
), ct = {
|
|
1073
|
-
[
|
|
1074
|
-
[
|
|
1075
|
-
[
|
|
1077
|
+
[g.CLOSE_DROPDOWN]: we,
|
|
1078
|
+
[g.SELECT]: it,
|
|
1079
|
+
[g.SHOW_MORE]: rt,
|
|
1076
1080
|
...ut
|
|
1077
1081
|
};
|
|
1078
|
-
t.error &&
|
|
1082
|
+
t.error && xe(
|
|
1079
1083
|
'BentoDropdown "error" property',
|
|
1080
1084
|
`Use the BentoDropdown "errorMessage" property instead to indicate that there is a modifier error.
|
|
1081
1085
|
Having the field as "undefined" will hide/remove the error.
|
|
1082
1086
|
<bento-dropdown errorMessage="Error message text" />`,
|
|
1083
1087
|
"2.0.0"
|
|
1084
|
-
), t.size &&
|
|
1088
|
+
), t.size && xe('BentoDropdown "size" property', "Do not use. Only 'default' size should be used.", "2.0.0"), t.value && xe(
|
|
1085
1089
|
'BentoDropdown "value" property',
|
|
1086
1090
|
`The use of "value" prop in "BentoDropdown" is no longer supported.
|
|
1087
1091
|
Use the "v-model" or "model-value" property instead.`,
|
|
1088
1092
|
"2.0.0"
|
|
1089
1093
|
);
|
|
1090
|
-
const
|
|
1091
|
-
|
|
1094
|
+
const Te = () => {
|
|
1095
|
+
p.value.focus();
|
|
1092
1096
|
};
|
|
1093
|
-
return
|
|
1094
|
-
() =>
|
|
1097
|
+
return ve(
|
|
1098
|
+
() => m.value,
|
|
1095
1099
|
(s) => {
|
|
1096
1100
|
s && a("open");
|
|
1097
1101
|
}
|
|
1098
|
-
),
|
|
1099
|
-
focus:
|
|
1100
|
-
}), (s, P) =>
|
|
1101
|
-
class:
|
|
1102
|
+
), u({
|
|
1103
|
+
focus: Te
|
|
1104
|
+
}), (s, P) => ne((b(), x("div", {
|
|
1105
|
+
class: oe(["b-dropdown", He.value])
|
|
1102
1106
|
}, [
|
|
1103
|
-
o(
|
|
1107
|
+
o(E) ? (b(), j(o(It), {
|
|
1104
1108
|
key: 0,
|
|
1105
|
-
id: o(
|
|
1109
|
+
id: o(v),
|
|
1106
1110
|
condensed: s.condensed,
|
|
1107
|
-
label: o(
|
|
1111
|
+
label: o(E),
|
|
1108
1112
|
"tooltip-text": s.tooltipText,
|
|
1109
1113
|
optional: s.optional,
|
|
1110
1114
|
required: s.required
|
|
1111
1115
|
}, null, 8, ["id", "condensed", "label", "tooltip-text", "optional", "required"])) : $("", !0),
|
|
1112
|
-
|
|
1116
|
+
ne((b(), x("div", A({
|
|
1113
1117
|
ref_key: "inputContainerRefWrapper",
|
|
1114
|
-
ref:
|
|
1115
|
-
},
|
|
1116
|
-
(
|
|
1118
|
+
ref: w
|
|
1119
|
+
}, de(o(dt), !0)), [
|
|
1120
|
+
(b(), j(_e(je.value), {
|
|
1117
1121
|
ref_key: "inputContainerRef",
|
|
1118
|
-
ref:
|
|
1122
|
+
ref: p,
|
|
1119
1123
|
condensed: s.condensed,
|
|
1120
1124
|
value: Y.value,
|
|
1121
1125
|
"additional-items-selected": tt.value,
|
|
1122
|
-
"aria-controls": o(
|
|
1123
|
-
ariaExpanded:
|
|
1124
|
-
"aria-labelledby": o(
|
|
1126
|
+
"aria-controls": o(D),
|
|
1127
|
+
ariaExpanded: m.value,
|
|
1128
|
+
"aria-labelledby": o(E) ? o(v) : null,
|
|
1125
1129
|
"aria-describedby": at.value,
|
|
1126
|
-
"aria-label": o(
|
|
1130
|
+
"aria-label": o(f),
|
|
1127
1131
|
"aria-readonly": o(L),
|
|
1128
1132
|
"aria-required": s.required,
|
|
1129
1133
|
readonly: o(L),
|
|
@@ -1132,67 +1136,67 @@ const We = {
|
|
|
1132
1136
|
"dynamic-filtering": s.dynamicFiltering,
|
|
1133
1137
|
"is-invalid": !!s.errorMessage || s.error,
|
|
1134
1138
|
multiple: s.multiple,
|
|
1135
|
-
open:
|
|
1136
|
-
"selected-value-item": o(
|
|
1139
|
+
open: m.value,
|
|
1140
|
+
"selected-value-item": o(ie) ? void 0 : Ge.value,
|
|
1137
1141
|
"show-slot-content-in-multiple": s.showSlotContentInMultiple,
|
|
1138
|
-
onInput: P[0] || (P[0] = (
|
|
1139
|
-
onOpen:
|
|
1140
|
-
onClose:
|
|
1141
|
-
},
|
|
1142
|
-
|
|
1143
|
-
name:
|
|
1144
|
-
fn:
|
|
1145
|
-
|
|
1142
|
+
onInput: P[0] || (P[0] = (K) => Y.value = K),
|
|
1143
|
+
onOpen: Le,
|
|
1144
|
+
onClose: Le
|
|
1145
|
+
}, be({ _: 2 }, [
|
|
1146
|
+
ue(o(i), (K, J) => ({
|
|
1147
|
+
name: J,
|
|
1148
|
+
fn: z((Ce) => [
|
|
1149
|
+
q(s.$slots, J, le(me(Ce)), void 0, !0)
|
|
1146
1150
|
])
|
|
1147
1151
|
}))
|
|
1148
1152
|
]), 1064, ["condensed", "value", "additional-items-selected", "aria-controls", "ariaExpanded", "aria-labelledby", "aria-describedby", "aria-label", "aria-readonly", "aria-required", "readonly", "disabled", "display-value", "dynamic-filtering", "is-invalid", "multiple", "open", "selected-value-item", "show-slot-content-in-multiple"]))
|
|
1149
1153
|
], 16)), [
|
|
1150
1154
|
[o(xt)]
|
|
1151
1155
|
]),
|
|
1152
|
-
|
|
1156
|
+
p.value ? (b(), j(o(Nt), A({
|
|
1153
1157
|
key: 1,
|
|
1154
|
-
id: o(
|
|
1158
|
+
id: o(D),
|
|
1155
1159
|
ref_key: "optionsContainerRef",
|
|
1156
|
-
ref:
|
|
1157
|
-
"aria-label": o(
|
|
1160
|
+
ref: y,
|
|
1161
|
+
"aria-label": o(f),
|
|
1158
1162
|
"component-loading": s.componentLoading,
|
|
1159
1163
|
"empty-state": s.emptyState,
|
|
1160
1164
|
disabled: s.disabled,
|
|
1161
1165
|
"is-option-disabled": s.isOptionDisabled,
|
|
1162
|
-
items: o(
|
|
1166
|
+
items: o(pe),
|
|
1163
1167
|
multiple: s.multiple,
|
|
1164
1168
|
"static-categories": De.value,
|
|
1165
|
-
open:
|
|
1166
|
-
"selected-value": o(
|
|
1167
|
-
searching:
|
|
1168
|
-
"target-element":
|
|
1169
|
+
open: m.value,
|
|
1170
|
+
"selected-value": o(k),
|
|
1171
|
+
searching: Se.value,
|
|
1172
|
+
"target-element": w.value,
|
|
1169
1173
|
loading: s.loading,
|
|
1170
1174
|
"has-more-items": s.hasMoreItems,
|
|
1171
1175
|
"lazy-load-type": s.lazyLoadType,
|
|
1172
1176
|
"virtual-scroll": s.virtualScroll
|
|
1173
|
-
},
|
|
1174
|
-
|
|
1175
|
-
name:
|
|
1176
|
-
fn:
|
|
1177
|
-
|
|
1177
|
+
}, de(ct)), be({ _: 2 }, [
|
|
1178
|
+
ue(o(i), (K, J) => ({
|
|
1179
|
+
name: J,
|
|
1180
|
+
fn: z((Ce) => [
|
|
1181
|
+
q(s.$slots, J, le(me(Ce)), void 0, !0)
|
|
1178
1182
|
])
|
|
1179
1183
|
}))
|
|
1180
1184
|
]), 1040, ["id", "aria-label", "component-loading", "empty-state", "disabled", "is-option-disabled", "items", "multiple", "static-categories", "open", "selected-value", "searching", "target-element", "loading", "has-more-items", "lazy-load-type", "virtual-scroll"])) : $("", !0),
|
|
1181
|
-
s.errorMessage ? (
|
|
1185
|
+
s.errorMessage ? (b(), j(o(Dt), {
|
|
1182
1186
|
key: 2,
|
|
1183
|
-
id: o(
|
|
1187
|
+
id: o(O),
|
|
1184
1188
|
"error-message": s.errorMessage,
|
|
1185
1189
|
class: "b-dropdown__error-message"
|
|
1186
1190
|
}, null, 8, ["id", "error-message"])) : $("", !0),
|
|
1187
|
-
s.description || o(n)("description") ? (
|
|
1191
|
+
s.description || o(n)("description") ? (b(), j(o(Ke), {
|
|
1188
1192
|
key: 3,
|
|
1189
|
-
id: o(
|
|
1190
|
-
class:
|
|
1193
|
+
id: o(c),
|
|
1194
|
+
class: oe(["b-dropdown__description", Ye.value]),
|
|
1191
1195
|
el: "span"
|
|
1192
1196
|
}, {
|
|
1193
|
-
default:
|
|
1194
|
-
|
|
1195
|
-
|
|
1197
|
+
default: z(() => [
|
|
1198
|
+
q(s.$slots, "description", {}, () => [
|
|
1199
|
+
fe(G(s.description), 1)
|
|
1196
1200
|
], !0)
|
|
1197
1201
|
]),
|
|
1198
1202
|
_: 3
|
|
@@ -1201,14 +1205,14 @@ const We = {
|
|
|
1201
1205
|
[o(Et), st]
|
|
1202
1206
|
]);
|
|
1203
1207
|
}
|
|
1204
|
-
}), Ra = /* @__PURE__ */
|
|
1208
|
+
}), Ra = /* @__PURE__ */ X(ca, [["__scopeId", "data-v-5edc4069"]]);
|
|
1205
1209
|
export {
|
|
1206
1210
|
Ra as B,
|
|
1207
1211
|
Wt as D,
|
|
1208
1212
|
Ma as I,
|
|
1209
|
-
|
|
1213
|
+
ae as a,
|
|
1210
1214
|
da as b,
|
|
1211
1215
|
$a as c,
|
|
1212
1216
|
ra as u
|
|
1213
1217
|
};
|
|
1214
|
-
//# sourceMappingURL=dropdown.
|
|
1218
|
+
//# sourceMappingURL=dropdown.CuIBYLdy.js.map
|