@adyen/bento-vue2 1.97.0 → 1.98.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 +66 -1
- package/dist/action-bar.js +1 -1
- package/dist/ai-tag.js +1 -1
- package/dist/anchor-scroller.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/calendar.css +1 -1
- package/dist/assets/card.css +1 -1
- package/dist/assets/data-grid.css +1 -1
- package/dist/assets/date.css +1 -1
- package/dist/assets/dialog-page.css +1 -1
- package/dist/assets/draggable-handle.css +1 -1
- package/dist/assets/draggable.css +1 -0
- package/dist/assets/dropdown.css +1 -1
- package/dist/assets/file-uploader.css +1 -1
- package/dist/assets/filter-bar.css +1 -1
- package/dist/assets/header-meta.css +1 -1
- package/dist/assets/inspector.css +1 -1
- package/dist/assets/list-item.css +1 -1
- package/dist/assets/modal-fullscreen.css +1 -1
- package/dist/assets/navigation-menu-group.css +1 -1
- package/dist/assets/secondary-nav.css +1 -1
- package/dist/assets/sidepanel.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.B890LCTe.js → action-bar.X-dXuOcv.js} +4 -4
- package/dist/chunks/{action-bar.B890LCTe.js.map → action-bar.X-dXuOcv.js.map} +1 -1
- package/dist/chunks/{ai-tag.C8RxACNj.js → ai-tag.Cdn4JK1m.js} +2 -2
- package/dist/chunks/{ai-tag.C8RxACNj.js.map → ai-tag.Cdn4JK1m.js.map} +1 -1
- package/dist/chunks/{anchor-scroller.B8VXotik.js → anchor-scroller.Bu7GtOqH.js} +5 -5
- package/dist/chunks/{anchor-scroller.B8VXotik.js.map → anchor-scroller.Bu7GtOqH.js.map} +1 -1
- package/dist/chunks/{base-modal.CDMoF3b_.js → base-modal.DgMSsQf3.js} +5 -5
- package/dist/chunks/{base-modal.CDMoF3b_.js.map → base-modal.DgMSsQf3.js.map} +1 -1
- package/dist/chunks/{button-actions-with-menu.DqDQ_gVX.js → button-actions-with-menu.BV5aDUCD.js} +3 -3
- package/dist/chunks/{button-actions-with-menu.DqDQ_gVX.js.map → button-actions-with-menu.BV5aDUCD.js.map} +1 -1
- package/dist/chunks/{button-actions.DKc63aCb.js → button-actions.BD4Dyp4U.js} +2 -2
- package/dist/chunks/{button-actions.DKc63aCb.js.map → button-actions.BD4Dyp4U.js.map} +1 -1
- package/dist/chunks/{calendar.BckAv9N_.js → calendar.B0GnBaAW.js} +154 -153
- package/dist/chunks/calendar.B0GnBaAW.js.map +1 -0
- package/dist/chunks/{card.ChBURa5R.js → card.Bm7JEsCC.js} +2 -2
- package/dist/chunks/{card.ChBURa5R.js.map → card.Bm7JEsCC.js.map} +1 -1
- package/dist/chunks/{checkbox-group.BAjvgXlc.js → checkbox-group.mgC7eJkE.js} +3 -3
- package/dist/chunks/{checkbox-group.BAjvgXlc.js.map → checkbox-group.mgC7eJkE.js.map} +1 -1
- package/dist/chunks/{checkbox.BAQDBNL6.js → checkbox.CBawZCc6.js} +2 -2
- package/dist/chunks/{checkbox.BAQDBNL6.js.map → checkbox.CBawZCc6.js.map} +1 -1
- package/dist/chunks/{code-snippet.nUo9bjhC.js → code-snippet.CpHbw0xj.js} +4 -4
- package/dist/chunks/{code-snippet.nUo9bjhC.js.map → code-snippet.CpHbw0xj.js.map} +1 -1
- package/dist/chunks/{controls-group.Bzpsrtcx.js → controls-group.BWzCb_GU.js} +2 -2
- package/dist/chunks/{controls-group.Bzpsrtcx.js.map → controls-group.BWzCb_GU.js.map} +1 -1
- package/dist/chunks/{copy.DVB6pQC8.js → copy.CWKdfVcd.js} +3 -3
- package/dist/chunks/{copy.DVB6pQC8.js.map → copy.CWKdfVcd.js.map} +1 -1
- package/dist/chunks/{dashboard-section.BDDVJpxY.js → dashboard-section.CRn7tlX_.js} +4 -4
- package/dist/chunks/{dashboard-section.BDDVJpxY.js.map → dashboard-section.CRn7tlX_.js.map} +1 -1
- package/dist/chunks/{dashed-underline.CfEmbgOv.js → dashed-underline.BoHt4iGu.js} +4 -4
- package/dist/chunks/{dashed-underline.CfEmbgOv.js.map → dashed-underline.BoHt4iGu.js.map} +1 -1
- package/dist/chunks/{data-grid-template.BUlLHTYe.js → data-grid-template.BYMLOzkm.js} +4 -4
- package/dist/chunks/{data-grid-template.BUlLHTYe.js.map → data-grid-template.BYMLOzkm.js.map} +1 -1
- package/dist/chunks/{data-grid.0OiCQjFc.js → data-grid.BRziyZ43.js} +19 -19
- package/dist/chunks/{data-grid.0OiCQjFc.js.map → data-grid.BRziyZ43.js.map} +1 -1
- package/dist/chunks/{date-picker.CsFSskqf.js → date-picker.CCJtLnE4.js} +7 -7
- package/dist/chunks/{date-picker.CsFSskqf.js.map → date-picker.CCJtLnE4.js.map} +1 -1
- package/dist/chunks/{date-range-picker.Bczgdu5X.js → date-range-picker.B2u5vm8m.js} +10 -10
- package/dist/chunks/{date-range-picker.Bczgdu5X.js.map → date-range-picker.B2u5vm8m.js.map} +1 -1
- package/dist/chunks/{date-time-picker.DT54TiG4.js → date-time-picker.CP-IrUwY.js} +5 -5
- package/dist/chunks/{date-time-picker.DT54TiG4.js.map → date-time-picker.CP-IrUwY.js.map} +1 -1
- package/dist/chunks/{date.B0m0sFP6.js → date.C1HnIyOv.js} +27 -25
- package/dist/chunks/date.C1HnIyOv.js.map +1 -0
- package/dist/chunks/{dialog-page.DYWnKdnP.js → dialog-page.BendBRv6.js} +10 -10
- package/dist/chunks/{dialog-page.DYWnKdnP.js.map → dialog-page.BendBRv6.js.map} +1 -1
- package/dist/chunks/draggable-handle.BnRkhlee.js +1611 -0
- package/dist/chunks/draggable-handle.BnRkhlee.js.map +1 -0
- package/dist/chunks/draggable.D5WFD5eX.js +193 -0
- package/dist/chunks/draggable.D5WFD5eX.js.map +1 -0
- package/dist/chunks/{drawer.WW7G9cSC.js → drawer.BuCNjIKQ.js} +2 -2
- package/dist/chunks/{drawer.WW7G9cSC.js.map → drawer.BuCNjIKQ.js.map} +1 -1
- package/dist/chunks/{dropdown-tag.BqSrkuwj.js → dropdown-tag.LIt7SdwS.js} +3 -3
- package/dist/chunks/{dropdown-tag.BqSrkuwj.js.map → dropdown-tag.LIt7SdwS.js.map} +1 -1
- package/dist/chunks/{dropdown.CIEm6MBB.js → dropdown.NTGSuWAw.js} +847 -822
- package/dist/chunks/dropdown.NTGSuWAw.js.map +1 -0
- package/dist/chunks/{field-label.CdVbAfK-.js → field-label.CkMM3cXO.js} +2 -2
- package/dist/chunks/{field-label.CdVbAfK-.js.map → field-label.CkMM3cXO.js.map} +1 -1
- package/dist/chunks/{file-uploader.DOvQMUHC.js → file-uploader.BLoJVqZQ.js} +3 -3
- package/dist/chunks/{file-uploader.DOvQMUHC.js.map → file-uploader.BLoJVqZQ.js.map} +1 -1
- package/dist/chunks/{filter-bar.DVRPM9tf.js → filter-bar.CftgpM7Z.js} +20 -20
- package/dist/chunks/filter-bar.CftgpM7Z.js.map +1 -0
- package/dist/chunks/{focus-trap.CBIb3SyN.js → focus-trap.CUZQ1kQD.js} +2 -2
- package/dist/chunks/{focus-trap.CBIb3SyN.js.map → focus-trap.CUZQ1kQD.js.map} +1 -1
- package/dist/chunks/{footer-actions.C1sXd7ti.js → footer-actions.C89dbDV4.js} +2 -2
- package/dist/chunks/{footer-actions.C1sXd7ti.js.map → footer-actions.C89dbDV4.js.map} +1 -1
- package/dist/chunks/generate-uid.NJ8tVoha.js.map +1 -1
- package/dist/chunks/{header-meta.D1eb37QJ.js → header-meta.Cpk3Z8c2.js} +56 -51
- package/dist/chunks/{header-meta.D1eb37QJ.js.map → header-meta.Cpk3Z8c2.js.map} +1 -1
- package/dist/chunks/{header-with-views.Bk6ly102.js → header-with-views.UmWf3dQd.js} +10 -10
- package/dist/chunks/{header-with-views.Bk6ly102.js.map → header-with-views.UmWf3dQd.js.map} +1 -1
- package/dist/chunks/{header.CszOmM16.js → header.BRBY9Ilh.js} +3 -3
- package/dist/chunks/{header.CszOmM16.js.map → header.BRBY9Ilh.js.map} +1 -1
- package/dist/chunks/{index.CJYgd0QI.js → index.BPUMyryR.js} +14 -14
- package/dist/chunks/{index.CJYgd0QI.js.map → index.BPUMyryR.js.map} +1 -1
- package/dist/chunks/{info-icon.9Nt7zg3D.js → info-icon.ZVQsMymB.js} +3 -3
- package/dist/chunks/{info-icon.9Nt7zg3D.js.map → info-icon.ZVQsMymB.js.map} +1 -1
- package/dist/chunks/{input-field-password.C4Wxsl16.js → input-field-password.bhLfqs6p.js} +5 -5
- package/dist/chunks/{input-field-password.C4Wxsl16.js.map → input-field-password.bhLfqs6p.js.map} +1 -1
- package/dist/chunks/{input-field-phone-number.BhYTU628.js → input-field-phone-number.cAROnxRW.js} +2 -2
- package/dist/chunks/{input-field-phone-number.BhYTU628.js.map → input-field-phone-number.cAROnxRW.js.map} +1 -1
- package/dist/chunks/{input-field.3tzX7t2y.js → input-field.BgVjWpiF.js} +3 -3
- package/dist/chunks/{input-field.3tzX7t2y.js.map → input-field.BgVjWpiF.js.map} +1 -1
- package/dist/chunks/{input-time.Bf-ZrCPX.js → input-time.C5qQ6S8d.js} +3 -3
- package/dist/chunks/{input-time.Bf-ZrCPX.js.map → input-time.C5qQ6S8d.js.map} +1 -1
- package/dist/chunks/{inspector.BY3SoX-l.js → inspector.8QKfd0HF.js} +3 -3
- package/dist/chunks/{inspector.BY3SoX-l.js.map → inspector.8QKfd0HF.js.map} +1 -1
- package/dist/chunks/{layout-row.BI9ZJa-9.js → layout-row.CTBhpBUq.js} +9 -9
- package/dist/chunks/{layout-row.BI9ZJa-9.js.map → layout-row.CTBhpBUq.js.map} +1 -1
- package/dist/chunks/list-item.BxQkbnLZ.js +193 -0
- package/dist/chunks/list-item.BxQkbnLZ.js.map +1 -0
- package/dist/chunks/{listbox-option-tag.Ddyl2vuc.js → listbox-option-tag.BFW39wpD.js} +2 -2
- package/dist/chunks/{listbox-option-tag.Ddyl2vuc.js.map → listbox-option-tag.BFW39wpD.js.map} +1 -1
- package/dist/chunks/{modal-fullscreen.Dg1Hi3jB.js → modal-fullscreen.CH2wwAtk.js} +4 -4
- package/dist/chunks/{modal-fullscreen.Dg1Hi3jB.js.map → modal-fullscreen.CH2wwAtk.js.map} +1 -1
- package/dist/chunks/{modal.DZTEFM_E.js → modal.e1Ym209E.js} +4 -4
- package/dist/chunks/{modal.DZTEFM_E.js.map → modal.e1Ym209E.js.map} +1 -1
- package/dist/chunks/{navigation-menu-group.Dv2_ZRRq.js → navigation-menu-group.E1Oam9-n.js} +3 -3
- package/dist/chunks/{navigation-menu-group.Dv2_ZRRq.js.map → navigation-menu-group.E1Oam9-n.js.map} +1 -1
- package/dist/chunks/{pagination.C6HIPq58.js → pagination.BzLKzijQ.js} +2 -2
- package/dist/chunks/{pagination.C6HIPq58.js.map → pagination.BzLKzijQ.js.map} +1 -1
- package/dist/chunks/popover.types.ZXsQ9bA6.js +6 -0
- package/dist/chunks/{popover.types.B9TXaqAt.js.map → popover.types.ZXsQ9bA6.js.map} +1 -1
- package/dist/chunks/{popper-container.CFYFCz6u.js → popper-container.dxpRn9a5.js} +2 -2
- package/dist/chunks/{popper-container.CFYFCz6u.js.map → popper-container.dxpRn9a5.js.map} +1 -1
- package/dist/chunks/{promo-banner.tljKS80K.js → promo-banner.BVBt9w4u.js} +2 -2
- package/dist/chunks/{promo-banner.tljKS80K.js.map → promo-banner.BVBt9w4u.js.map} +1 -1
- package/dist/chunks/{radio-group.cn4lZb8R.js → radio-group.D5fpHqkP.js} +3 -3
- package/dist/chunks/{radio-group.cn4lZb8R.js.map → radio-group.D5fpHqkP.js.map} +1 -1
- package/dist/chunks/{rich-text-editor.-B96ibAd.js → rich-text-editor.VWCBSRmM.js} +4 -4
- package/dist/chunks/{rich-text-editor.-B96ibAd.js.map → rich-text-editor.VWCBSRmM.js.map} +1 -1
- package/dist/chunks/{search-bar.DunTxVmZ.js → search-bar.Be3RlmLA.js} +3 -3
- package/dist/chunks/{search-bar.DunTxVmZ.js.map → search-bar.Be3RlmLA.js.map} +1 -1
- package/dist/chunks/{secondary-nav.CGGPkYpc.js → secondary-nav.Cy4ap53E.js} +4 -4
- package/dist/chunks/{secondary-nav.CGGPkYpc.js.map → secondary-nav.Cy4ap53E.js.map} +1 -1
- package/dist/chunks/{segmented-control.C0JtDa4q.js → segmented-control.BOyYIUEp.js} +2 -2
- package/dist/chunks/{segmented-control.C0JtDa4q.js.map → segmented-control.BOyYIUEp.js.map} +1 -1
- package/dist/chunks/{selection-card-group.ZZ_qF1L1.js → selection-card-group.lNZ8z318.js} +3 -3
- package/dist/chunks/{selection-card-group.ZZ_qF1L1.js.map → selection-card-group.lNZ8z318.js.map} +1 -1
- package/dist/chunks/{sidepanel.ChuW63J7.js → sidepanel.CN_u-b5X.js} +5 -5
- package/dist/chunks/{sidepanel.ChuW63J7.js.map → sidepanel.CN_u-b5X.js.map} +1 -1
- package/dist/chunks/{structured-list-item.DE0L0kvs.js → structured-list-item.CL1jhdTX.js} +4 -4
- package/dist/chunks/{structured-list-item.DE0L0kvs.js.map → structured-list-item.CL1jhdTX.js.map} +1 -1
- package/dist/chunks/{summary-grid.types.BnEhhDQz.js → summary-grid.types.Cjrwg4vd.js} +5 -5
- package/dist/chunks/{summary-grid.types.BnEhhDQz.js.map → summary-grid.types.Cjrwg4vd.js.map} +1 -1
- package/dist/chunks/{tab.QEKU5Udp.js → tab.B2qRfTqx.js} +2 -2
- package/dist/chunks/{tab.QEKU5Udp.js.map → tab.B2qRfTqx.js.map} +1 -1
- package/dist/chunks/{tag.CbNFG45Y.js → tag.XeZzHnx_.js} +2 -2
- package/dist/chunks/{tag.CbNFG45Y.js.map → tag.XeZzHnx_.js.map} +1 -1
- package/dist/chunks/{textarea.DJ7095b6.js → textarea.CbCrtcQ2.js} +2 -2
- package/dist/chunks/{textarea.DJ7095b6.js.map → textarea.CbCrtcQ2.js.map} +1 -1
- package/dist/chunks/{timeline-item.DzMh520x.js → timeline-item.BVOztUi9.js} +7 -7
- package/dist/chunks/{timeline-item.DzMh520x.js.map → timeline-item.BVOztUi9.js.map} +1 -1
- package/dist/chunks/{tooltip.CnkqMpOA.js → tooltip.CGeGVHyl.js} +3 -3
- package/dist/chunks/{tooltip.CnkqMpOA.js.map → tooltip.CGeGVHyl.js.map} +1 -1
- package/dist/chunks/{tutorial.CkeL_7Je.js → tutorial.WeP9PjhU.js} +4 -4
- package/dist/chunks/{tutorial.CkeL_7Je.js.map → tutorial.WeP9PjhU.js.map} +1 -1
- package/dist/chunks/{use-bento-delayed-hover.D4rfUUOr.js → use-bento-delayed-hover.CxJOLxok.js} +2 -2
- package/dist/chunks/{use-bento-delayed-hover.D4rfUUOr.js.map → use-bento-delayed-hover.CxJOLxok.js.map} +1 -1
- package/dist/chunks/{use-date-input-formatter.Dq9C0nc9.js → use-date-input-formatter.BMciZYTp.js} +2 -2
- package/dist/chunks/{use-date-input-formatter.Dq9C0nc9.js.map → use-date-input-formatter.BMciZYTp.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/date-time-picker.js +1 -1
- package/dist/date.js +1 -1
- package/dist/draggable.js +4 -3
- package/dist/draggable.js.map +1 -1
- package/dist/drawer.js +1 -1
- package/dist/dropdown.js +2 -2
- package/dist/file-uploader.js +1 -1
- package/dist/filter-bar.js +1 -1
- package/dist/focus-trap.js +1 -1
- package/dist/header-with-views.js +1 -1
- package/dist/header.js +1 -1
- package/dist/index.js +264 -263
- package/dist/index.js.map +1 -1
- package/dist/info-icon.js +1 -1
- package/dist/input-field-password.js +1 -1
- package/dist/input-field-phone-number.js +1 -1
- package/dist/input-field.js +1 -1
- package/dist/input-time.js +1 -1
- package/dist/inspector.js +1 -1
- package/dist/internal.js +11 -11
- package/dist/layout.js +1 -1
- package/dist/list.js +1 -1
- package/dist/menu.js +1 -1
- package/dist/modal-fullscreen.js +1 -1
- package/dist/modal.js +2 -2
- package/dist/navigation-menu.js +1 -1
- package/dist/pagination.js +1 -1
- package/dist/popover.js +2 -2
- package/dist/popper-container.js +1 -1
- package/dist/promo-banner.js +1 -1
- package/dist/radio-group.js +1 -1
- package/dist/rich-text-editor.js +1 -1
- package/dist/search-bar.js +2 -2
- package/dist/secondary-nav.js +1 -1
- package/dist/segmented-control.js +1 -1
- package/dist/selection-card.js +1 -1
- package/dist/sidepanel.js +1 -1
- package/dist/structured-list.js +1 -1
- package/dist/summary-grid.js +1 -1
- package/dist/tabs.js +1 -1
- package/dist/tag.js +1 -1
- package/dist/textarea.js +1 -1
- package/dist/timeline.js +1 -1
- package/dist/tutorial.js +1 -1
- package/dist/web-types.json +61 -1
- package/package.json +8 -8
- package/dist/chunks/calendar.BckAv9N_.js.map +0 -1
- package/dist/chunks/date.B0m0sFP6.js.map +0 -1
- package/dist/chunks/draggable-handle.DwJBaf5y.js +0 -1747
- package/dist/chunks/draggable-handle.DwJBaf5y.js.map +0 -1
- package/dist/chunks/dropdown.CIEm6MBB.js.map +0 -1
- package/dist/chunks/filter-bar.DVRPM9tf.js.map +0 -1
- package/dist/chunks/list-item.D2ZLiS_D.js +0 -76
- package/dist/chunks/list-item.D2ZLiS_D.js.map +0 -1
- package/dist/chunks/popover.types.B9TXaqAt.js +0 -6
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
import { computed as n, ref as E, onMounted 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 { computed as n, ref as E, onMounted as dt, onUnmounted as pt, watch as te, defineComponent as U, nextTick as W, toRef as q, useSlots as Oe, useAttrs as Ve, toRefs as Qe, inject as ze } from "vue";
|
|
2
|
+
import { B as ie, d as $e } from "./typography.C8lPlsbD.js";
|
|
3
|
+
import { g as ne } from "./generate-uid.NJ8tVoha.js";
|
|
4
|
+
import { u as de } from "./index.B6WW_F-J.js";
|
|
5
|
+
import { u as et } from "./use-has-slot.C9lQZ6nz.js";
|
|
6
|
+
import { C as ft } from "./cross-circle-fill.DTDtgLMf.js";
|
|
7
|
+
import { C as bt } from "./cross-circle-fill-small.DfxDedRr.js";
|
|
8
|
+
import { n as G } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
|
|
9
|
+
import { s as ye } from "./events.BQOQSSb7.js";
|
|
10
|
+
import { C as tt } from "./chevron-down.eYtgv5ly.js";
|
|
11
|
+
import { C as lt } from "./chevron-up.d8cwIlA_.js";
|
|
12
12
|
/* empty css */
|
|
13
|
-
import { u as
|
|
14
|
-
import { u as
|
|
15
|
-
import { u as
|
|
16
|
-
import { B as
|
|
17
|
-
import { B as
|
|
18
|
-
import { B as
|
|
19
|
-
import { o as
|
|
13
|
+
import { u as vt } from "./aria-label.CaUURpnB.js";
|
|
14
|
+
import { u as mt } from "./form-field.D_2g7vaP.js";
|
|
15
|
+
import { u as _t } from "./use-form-layout-loading.CWbjZiwP.js";
|
|
16
|
+
import { B as z, a as ke } from "./keyboard-navigation.DWmhelVv.js";
|
|
17
|
+
import { B as yt } from "./loading-indicator.PxbRzshH.js";
|
|
18
|
+
import { B as gt } from "./empty-state.Dttc-ZO_.js";
|
|
19
|
+
import { o as ht } from "./resize.Bqks3WUm.js";
|
|
20
20
|
import "./index.Cl4_42j5.js";
|
|
21
|
-
import { C as
|
|
22
|
-
import { C as
|
|
23
|
-
import { B as
|
|
24
|
-
import { a as
|
|
25
|
-
import { B as
|
|
26
|
-
import { F as
|
|
27
|
-
import { E as
|
|
28
|
-
import { P as
|
|
21
|
+
import { C as De, N as St } from "./minus-small.DJacLGTw.js";
|
|
22
|
+
import { C as xt } from "./checkmark-small.DVDtD4HQ.js";
|
|
23
|
+
import { B as Ct } from "./chip.BFY_-VCz.js";
|
|
24
|
+
import { a as Ot, b as Ye, h as Et, e as It } from "./button-actions.BD4Dyp4U.js";
|
|
25
|
+
import { B as Lt } from "./directive.BBWhsNtO.js";
|
|
26
|
+
import { F as Tt } from "./field-label.CkMM3cXO.js";
|
|
27
|
+
import { E as wt } from "./error-message.CyERcfdt.js";
|
|
28
|
+
import { P as We } from "./popper-container.dxpRn9a5.js";
|
|
29
29
|
import "../assets/dropdown.css";
|
|
30
|
-
const
|
|
30
|
+
const at = (a, e, l, t) => {
|
|
31
31
|
const s = n(
|
|
32
32
|
() => {
|
|
33
33
|
var r, v;
|
|
@@ -45,73 +45,73 @@ const Qe = (a, e, l, t) => {
|
|
|
45
45
|
}
|
|
46
46
|
};
|
|
47
47
|
};
|
|
48
|
-
function
|
|
49
|
-
const o = E(null), i = E([]), r = E(0), v = E(0),
|
|
48
|
+
function At(a, { disabled: e, itemHeight: l, overscan: t = 5, prefixHeight: s }) {
|
|
49
|
+
const o = E(null), i = E([]), r = E(0), v = E(0), d = E(0);
|
|
50
50
|
let c;
|
|
51
|
-
const
|
|
52
|
-
const
|
|
51
|
+
const m = n(() => {
|
|
52
|
+
const b = typeof l == "number" ? a.value.length * l : a.value.reduce((T, I, w) => T + l(w), 0), L = typeof l == "number" ? r.value * l : a.value.slice(0, r.value).reduce((T, I, w) => T + l(w), 0);
|
|
53
53
|
return {
|
|
54
54
|
style: {
|
|
55
55
|
marginTop: `${L}px`,
|
|
56
|
-
height: `${
|
|
56
|
+
height: `${b - L}px`
|
|
57
57
|
}
|
|
58
58
|
};
|
|
59
|
-
}),
|
|
60
|
-
const
|
|
59
|
+
}), p = () => {
|
|
60
|
+
const b = (s == null ? void 0 : s.value) ?? 0, L = Math.max(o.value.scrollTop - b, 0);
|
|
61
61
|
if (typeof l == "number")
|
|
62
62
|
return Math.floor(L / l);
|
|
63
|
-
let T = 0,
|
|
64
|
-
for (let
|
|
65
|
-
const
|
|
66
|
-
if (T +=
|
|
67
|
-
|
|
63
|
+
let T = 0, I = 0;
|
|
64
|
+
for (let w = 0; w < a.value.length; w += 1) {
|
|
65
|
+
const N = l(w);
|
|
66
|
+
if (T += N, T >= L) {
|
|
67
|
+
I = w;
|
|
68
68
|
break;
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
|
-
return
|
|
71
|
+
return I;
|
|
72
72
|
}, f = () => {
|
|
73
|
-
if (
|
|
74
|
-
return Math.ceil(
|
|
75
|
-
const
|
|
73
|
+
if (d.value = o.value.clientHeight, typeof l == "number")
|
|
74
|
+
return Math.ceil(d.value / l);
|
|
75
|
+
const b = r.value ?? 0;
|
|
76
76
|
let L = 0, T = 0;
|
|
77
|
-
for (let
|
|
78
|
-
const
|
|
79
|
-
if (L +=
|
|
77
|
+
for (let I = b; I < a.value.length; I += 1) {
|
|
78
|
+
const w = l(I);
|
|
79
|
+
if (L += w, T = I, L > d.value)
|
|
80
80
|
break;
|
|
81
81
|
}
|
|
82
|
-
return T -
|
|
82
|
+
return T - b;
|
|
83
83
|
}, h = () => {
|
|
84
84
|
if (o.value) {
|
|
85
|
-
const
|
|
86
|
-
r.value =
|
|
85
|
+
const b = f();
|
|
86
|
+
r.value = p(), v.value = Math.min(r.value + b + t, a.value.length), i.value = a.value.slice(r.value, v.value);
|
|
87
87
|
}
|
|
88
88
|
}, y = () => {
|
|
89
89
|
h();
|
|
90
90
|
};
|
|
91
|
-
e || (
|
|
92
|
-
o.value && (
|
|
93
|
-
|
|
91
|
+
e || (dt(() => {
|
|
92
|
+
o.value && (d.value = o.value.clientHeight, c = ht(o.value, ({ clientHeight: b }) => {
|
|
93
|
+
d.value = b, h();
|
|
94
94
|
}), h());
|
|
95
|
-
}),
|
|
95
|
+
}), pt(() => {
|
|
96
96
|
c == null || c.disconnect();
|
|
97
|
-
}),
|
|
97
|
+
}), te(
|
|
98
98
|
() => a.value,
|
|
99
99
|
() => {
|
|
100
100
|
h();
|
|
101
101
|
}
|
|
102
102
|
));
|
|
103
|
-
const
|
|
103
|
+
const k = {
|
|
104
104
|
ref: o,
|
|
105
105
|
style: { overflowY: "auto" }
|
|
106
|
-
},
|
|
106
|
+
}, B = (b) => {
|
|
107
107
|
if (!o.value)
|
|
108
108
|
return;
|
|
109
|
-
const L = typeof l == "number" ?
|
|
110
|
-
|
|
109
|
+
const L = typeof l == "number" ? b * l : a.value.slice(0, b).reduce((g, S, R) => g + l(R), 0), T = typeof l == "number" ? l : l(b), I = L + T, { scrollTop: w, clientHeight: N } = o.value, A = w + N;
|
|
110
|
+
I > A ? o.value.scrollTop = N > 0 ? I - N : L : L < w && (o.value.scrollTop = L), h();
|
|
111
111
|
};
|
|
112
112
|
return e ? {
|
|
113
113
|
containerRef: o,
|
|
114
|
-
containerProps:
|
|
114
|
+
containerProps: k,
|
|
115
115
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
116
116
|
onScroll: () => {
|
|
117
117
|
},
|
|
@@ -122,19 +122,19 @@ function Lt(a, { disabled: e, itemHeight: l, overscan: t = 5, prefixHeight: s })
|
|
|
122
122
|
startIndex: E(0)
|
|
123
123
|
} : {
|
|
124
124
|
containerRef: o,
|
|
125
|
-
containerProps:
|
|
125
|
+
containerProps: k,
|
|
126
126
|
onScroll: y,
|
|
127
127
|
list: i,
|
|
128
|
-
wrapperProps:
|
|
129
|
-
scrollToIndex:
|
|
128
|
+
wrapperProps: m,
|
|
129
|
+
scrollToIndex: B,
|
|
130
130
|
startIndex: r
|
|
131
131
|
};
|
|
132
132
|
}
|
|
133
|
-
var
|
|
134
|
-
const
|
|
133
|
+
var u = /* @__PURE__ */ ((a) => (a.SELECT = "select", a.SHOW_MORE = "show-more", a.ESCAPE = "escape-pressed", a.CLICK = "click", a.ENTER = "enter-pressed", a.SPACE = "space-pressed", a.TAB = "tab-pressed", a.CLOSE_DROPDOWN = "close-dropdown", a))(u || {}), oe = /* @__PURE__ */ ((a) => (a.AUTOMATIC = "automatic", a.BUTTON = "button", a.NONE = "none", a))(oe || {});
|
|
134
|
+
const Dt = U({
|
|
135
135
|
name: "bento-listbox-static-category",
|
|
136
136
|
components: {
|
|
137
|
-
BentoTypography:
|
|
137
|
+
BentoTypography: ie
|
|
138
138
|
},
|
|
139
139
|
props: {
|
|
140
140
|
/**
|
|
@@ -146,18 +146,18 @@ const Tt = z({
|
|
|
146
146
|
}
|
|
147
147
|
}
|
|
148
148
|
});
|
|
149
|
-
var
|
|
149
|
+
var kt = function() {
|
|
150
150
|
var e = this, l = e._self._c;
|
|
151
151
|
return e._self._setupProxy, l("div", { staticClass: "b-listbox-single-select-category", attrs: { role: "group", "aria-label": e.categoryLabel } }, [l("bento-typography", { staticClass: "b-listbox-single-select-category__label-text", attrs: { variant: "caption", el: "span", "aria-hidden": "true" } }, [e._v(" " + e._s(e.categoryLabel) + " ")]), l("div", [e._t("default")], 2)], 1);
|
|
152
|
-
},
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
152
|
+
}, Bt = [], Rt = /* @__PURE__ */ G(
|
|
153
|
+
Dt,
|
|
154
|
+
kt,
|
|
155
|
+
Bt,
|
|
156
156
|
!1,
|
|
157
157
|
null,
|
|
158
158
|
"bfbc1649"
|
|
159
159
|
);
|
|
160
|
-
const
|
|
160
|
+
const Mt = Rt.exports, Nt = U({
|
|
161
161
|
name: "bento-listbox-option",
|
|
162
162
|
props: {
|
|
163
163
|
/**
|
|
@@ -169,7 +169,7 @@ const kt = Dt.exports, Bt = z({
|
|
|
169
169
|
*/
|
|
170
170
|
selected: { type: Boolean, default: !1 }
|
|
171
171
|
},
|
|
172
|
-
emits: [
|
|
172
|
+
emits: [u.CLICK, u.ENTER, u.SPACE, u.TAB],
|
|
173
173
|
setup(a, { emit: e }) {
|
|
174
174
|
const l = n(() => ({
|
|
175
175
|
"b-listbox-option--disabled": a.disabled,
|
|
@@ -177,13 +177,13 @@ const kt = Dt.exports, Bt = z({
|
|
|
177
177
|
}));
|
|
178
178
|
return {
|
|
179
179
|
// Enums
|
|
180
|
-
BentoKeyboardNavigationKeyDownEvent:
|
|
181
|
-
BentoListboxEvent:
|
|
180
|
+
BentoKeyboardNavigationKeyDownEvent: z,
|
|
181
|
+
BentoListboxEvent: u,
|
|
182
182
|
// Values
|
|
183
183
|
conditionalClasses: l,
|
|
184
184
|
// Events
|
|
185
185
|
onClick: (o) => {
|
|
186
|
-
e(
|
|
186
|
+
e(u.CLICK, o);
|
|
187
187
|
},
|
|
188
188
|
onOptionSelected: (o, i) => {
|
|
189
189
|
e(o, i);
|
|
@@ -191,7 +191,7 @@ const kt = Dt.exports, Bt = z({
|
|
|
191
191
|
};
|
|
192
192
|
}
|
|
193
193
|
});
|
|
194
|
-
var
|
|
194
|
+
var $t = function() {
|
|
195
195
|
var e = this, l = e._self._c;
|
|
196
196
|
return e._self._setupProxy, l("div", e._b({ staticClass: "b-listbox-option", class: e.conditionalClasses, attrs: { role: "option" }, on: { click: e.onClick, keydown: [function(t) {
|
|
197
197
|
return !t.type.indexOf("key") && e._k(t.keyCode, "enter", 13, t.key, "Enter") ? null : e.onOptionSelected(e.BentoListboxEvent.ENTER, t);
|
|
@@ -200,38 +200,38 @@ var Rt = function() {
|
|
|
200
200
|
}, function(t) {
|
|
201
201
|
return !t.type.indexOf("key") && e._k(t.keyCode, "tab", 9, t.key, "Tab") ? null : e.onOptionSelected(e.BentoListboxEvent.TAB, t);
|
|
202
202
|
}] } }, "div", e.$attrs, !1), [e._t("default")], 2);
|
|
203
|
-
},
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
203
|
+
}, Ft = [], Pt = /* @__PURE__ */ G(
|
|
204
|
+
Nt,
|
|
205
|
+
$t,
|
|
206
|
+
Ft,
|
|
207
207
|
!1,
|
|
208
208
|
null,
|
|
209
209
|
"c345b6c0"
|
|
210
210
|
);
|
|
211
|
-
const
|
|
212
|
-
let
|
|
213
|
-
const
|
|
211
|
+
const Be = Pt.exports;
|
|
212
|
+
let je = 0;
|
|
213
|
+
const Vt = {
|
|
214
214
|
beforeCreate() {
|
|
215
|
-
this.uuid =
|
|
215
|
+
this.uuid = je.toString(), je += 1;
|
|
216
216
|
}
|
|
217
217
|
};
|
|
218
|
-
var
|
|
218
|
+
var zt = function() {
|
|
219
219
|
var e = this, l = e._self._c;
|
|
220
220
|
return l("svg", e._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", e.$attrs, !1), [e.$attrs["svg-title"] ? l("title", [e._v(e._s(e.$attrs["svg-title"]))]) : e._e(), l("path", { attrs: { fill: "#001222", d: "M15.0608 4.00011L14.0001 2.93945L6.00011 10.9395L2.00011 6.93945L0.939453 8.00011L6.00011 13.0608L15.0608 4.00011Z" } })]);
|
|
221
|
-
},
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
221
|
+
}, Ut = [], Gt = /* @__PURE__ */ G(
|
|
222
|
+
Vt,
|
|
223
|
+
zt,
|
|
224
|
+
Ut,
|
|
225
225
|
!1,
|
|
226
226
|
null,
|
|
227
227
|
null
|
|
228
228
|
);
|
|
229
|
-
const
|
|
229
|
+
const Kt = Gt.exports, qt = U({
|
|
230
230
|
name: "bento-listbox-single-select-option",
|
|
231
231
|
components: {
|
|
232
|
-
BentoListboxOption:
|
|
233
|
-
BentoTypography:
|
|
234
|
-
CheckmarkIcon:
|
|
232
|
+
BentoListboxOption: Be,
|
|
233
|
+
BentoTypography: ie,
|
|
234
|
+
CheckmarkIcon: Kt
|
|
235
235
|
},
|
|
236
236
|
props: {
|
|
237
237
|
/**
|
|
@@ -251,7 +251,7 @@ const zt = Vt.exports, Ut = z({
|
|
|
251
251
|
*/
|
|
252
252
|
selected: { type: Boolean, default: !1 }
|
|
253
253
|
},
|
|
254
|
-
emits: [
|
|
254
|
+
emits: [u.ENTER, u.SELECT, u.SPACE, u.TAB],
|
|
255
255
|
setup(a, { emit: e }) {
|
|
256
256
|
const l = (i) => {
|
|
257
257
|
a.disabled || e(i, a.option);
|
|
@@ -262,13 +262,13 @@ const zt = Vt.exports, Ut = z({
|
|
|
262
262
|
ariaSelected: s,
|
|
263
263
|
tabIndex: o,
|
|
264
264
|
// Enums
|
|
265
|
-
BentoListboxEvent:
|
|
265
|
+
BentoListboxEvent: u,
|
|
266
266
|
// Events
|
|
267
267
|
onOptionSelected: l
|
|
268
268
|
};
|
|
269
269
|
}
|
|
270
270
|
});
|
|
271
|
-
var
|
|
271
|
+
var Yt = function() {
|
|
272
272
|
var e = this, l = e._self._c;
|
|
273
273
|
return e._self._setupProxy, l("bento-listbox-option", { staticClass: "b-listbox-single-select-option", attrs: { disabled: e.disabled, selected: e.selected, "aria-selected": e.ariaSelected, "aria-disabled": e.ariaDisabled, tabindex: e.tabIndex }, on: { click: function(t) {
|
|
274
274
|
return e.onOptionSelected(e.BentoListboxEvent.SELECT);
|
|
@@ -281,15 +281,15 @@ var Gt = function() {
|
|
|
281
281
|
} } }, [e._t("default", function() {
|
|
282
282
|
return [l("span", { staticClass: "b-listbox-single-select-option__text" }, [l("bento-typography", { attrs: { el: "span" } }, [e._v(e._s(e.option.label))]), e.option.description ? l("bento-typography", { staticClass: "b-listbox-single-select-option__description", attrs: { el: "span" } }, [e._v(" " + e._s(e.option.description) + " ")]) : e._e()], 1)];
|
|
283
283
|
}, null, e.option), l("span", { staticClass: "b-listbox-single-select-option__check-icon" }, [l("checkmark-icon", { directives: [{ name: "show", rawName: "v-show", value: e.selected, expression: "selected" }], attrs: { "svg-title": "selected" } })], 1)], 2);
|
|
284
|
-
},
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
284
|
+
}, Wt = [], jt = /* @__PURE__ */ G(
|
|
285
|
+
qt,
|
|
286
|
+
Yt,
|
|
287
|
+
Wt,
|
|
288
288
|
!1,
|
|
289
289
|
null,
|
|
290
290
|
"bb14d75a"
|
|
291
291
|
);
|
|
292
|
-
const
|
|
292
|
+
const Ht = jt.exports, st = ({ items: a, totalItemCount: e }, l) => {
|
|
293
293
|
const t = n(() => e != null && e.value ? e.value - 1 : a.value.length - 1), s = E(0), o = (f) => {
|
|
294
294
|
switch (f) {
|
|
295
295
|
case "increase":
|
|
@@ -302,7 +302,7 @@ const Yt = qt.exports, et = ({ items: a, totalItemCount: e }, l) => {
|
|
|
302
302
|
}, i = ({ edgeCaseItem: f }, h) => {
|
|
303
303
|
s.value !== f && (o(h), l(s.value));
|
|
304
304
|
}, r = (f) => {
|
|
305
|
-
|
|
305
|
+
p(f), i(
|
|
306
306
|
{
|
|
307
307
|
edgeCaseItem: t.value
|
|
308
308
|
},
|
|
@@ -310,43 +310,43 @@ const Yt = qt.exports, et = ({ items: a, totalItemCount: e }, l) => {
|
|
|
310
310
|
/* INCREASE */
|
|
311
311
|
);
|
|
312
312
|
}, v = (f) => {
|
|
313
|
-
|
|
313
|
+
p(f), i(
|
|
314
314
|
{
|
|
315
315
|
edgeCaseItem: 0
|
|
316
316
|
},
|
|
317
317
|
"decrease"
|
|
318
318
|
/* DECREASE */
|
|
319
319
|
);
|
|
320
|
-
},
|
|
320
|
+
}, d = () => {
|
|
321
321
|
s.value = 0, l(s.value);
|
|
322
322
|
}, c = () => {
|
|
323
323
|
s.value = t.value, l(s.value);
|
|
324
|
-
},
|
|
324
|
+
}, m = (f) => {
|
|
325
325
|
s.value = f;
|
|
326
|
-
},
|
|
326
|
+
}, p = (f) => {
|
|
327
327
|
var h;
|
|
328
328
|
(h = f == null ? void 0 : f.detail) == null || h.preventDefault();
|
|
329
329
|
};
|
|
330
330
|
return {
|
|
331
|
-
moveToFirstElement:
|
|
331
|
+
moveToFirstElement: d,
|
|
332
332
|
moveToLastElement: c,
|
|
333
333
|
moveToNextElement: r,
|
|
334
334
|
moveToPreviousElement: v,
|
|
335
|
-
setListboxFocusedIndex:
|
|
336
|
-
preventDefault:
|
|
335
|
+
setListboxFocusedIndex: m,
|
|
336
|
+
preventDefault: p,
|
|
337
337
|
focusedIndex: s
|
|
338
338
|
};
|
|
339
|
-
},
|
|
339
|
+
}, Ue = (a, e, l = E("option"), t = !0) => {
|
|
340
340
|
const s = E([]), o = async () => {
|
|
341
341
|
if (!a.value || a.value.nodeType === Node.COMMENT_NODE)
|
|
342
342
|
return;
|
|
343
343
|
const i = Array.from(a.value.querySelectorAll(`[role="${l.value}"]`));
|
|
344
344
|
s.value = t ? i.filter((r) => r.checkVisibility()) : i;
|
|
345
345
|
};
|
|
346
|
-
return
|
|
346
|
+
return te(
|
|
347
347
|
e,
|
|
348
348
|
() => {
|
|
349
|
-
|
|
349
|
+
W(() => {
|
|
350
350
|
o();
|
|
351
351
|
});
|
|
352
352
|
},
|
|
@@ -355,13 +355,13 @@ const Yt = qt.exports, et = ({ items: a, totalItemCount: e }, l) => {
|
|
|
355
355
|
visibleDomOptions: s,
|
|
356
356
|
updateVisibleDomOptions: o
|
|
357
357
|
};
|
|
358
|
-
},
|
|
358
|
+
}, Jt = U({
|
|
359
359
|
name: "bento-listbox-single-select",
|
|
360
360
|
components: {
|
|
361
|
-
BentoListboxSingleSelectCategory:
|
|
362
|
-
BentoListboxSingleSelectOption:
|
|
361
|
+
BentoListboxSingleSelectCategory: Mt,
|
|
362
|
+
BentoListboxSingleSelectOption: Ht
|
|
363
363
|
},
|
|
364
|
-
directives: { BentoKeyboardNavigationDirective:
|
|
364
|
+
directives: { BentoKeyboardNavigationDirective: ke },
|
|
365
365
|
inheritAttrs: !1,
|
|
366
366
|
props: {
|
|
367
367
|
/**
|
|
@@ -415,71 +415,74 @@ const Yt = qt.exports, et = ({ items: a, totalItemCount: e }, l) => {
|
|
|
415
415
|
*/
|
|
416
416
|
virtualScrollStartIndex: { type: Number, default: 0 }
|
|
417
417
|
},
|
|
418
|
-
emits: [
|
|
418
|
+
emits: [u.SELECT, u.ENTER, u.SPACE, u.TAB],
|
|
419
419
|
setup(a, { emit: e, expose: l, slots: t, attrs: s }) {
|
|
420
420
|
const o = E(null), i = E([]), r = n(() => {
|
|
421
|
-
var
|
|
422
|
-
return !!((
|
|
421
|
+
var g;
|
|
422
|
+
return !!((g = a.selectedValue) != null && g.length) && a.selectedValue.at(0);
|
|
423
423
|
}), v = n(
|
|
424
424
|
() => {
|
|
425
|
-
var
|
|
425
|
+
var g, S, R, O;
|
|
426
426
|
return {
|
|
427
|
-
"aria-label": (
|
|
428
|
-
"aria-busy": (
|
|
429
|
-
"aria-atomic": (
|
|
430
|
-
"aria-live": (
|
|
427
|
+
"aria-label": (g = s["aria-label"]) == null ? void 0 : g.toString(),
|
|
428
|
+
"aria-busy": (S = s["aria-busy"]) == null ? void 0 : S.toString(),
|
|
429
|
+
"aria-atomic": (R = s["aria-atomic"]) == null ? void 0 : R.toString(),
|
|
430
|
+
"aria-live": (O = s["aria-live"]) == null ? void 0 : O.toString()
|
|
431
431
|
};
|
|
432
432
|
}
|
|
433
|
-
),
|
|
434
|
-
e(
|
|
435
|
-
}, { visibleDomOptions:
|
|
433
|
+
), d = n(() => !!a.items.some(({ items: g }) => !!g)), c = (g) => (S) => {
|
|
434
|
+
e(g, [S]);
|
|
435
|
+
}, { visibleDomOptions: m, updateVisibleDomOptions: p } = Ue(
|
|
436
436
|
o,
|
|
437
|
-
|
|
437
|
+
q(a, "items"),
|
|
438
438
|
E("option"),
|
|
439
439
|
!1
|
|
440
|
-
), f = n(() => a.totalItemCount > 0), h = (
|
|
440
|
+
), f = n(() => a.totalItemCount > 0), h = (g) => {
|
|
441
441
|
if (!f.value)
|
|
442
442
|
return;
|
|
443
|
-
const
|
|
444
|
-
if (
|
|
443
|
+
const S = g.target;
|
|
444
|
+
if (S === o.value || (S == null ? void 0 : S.getAttribute("role")) !== "option")
|
|
445
445
|
return;
|
|
446
|
-
const
|
|
447
|
-
if (
|
|
448
|
-
const
|
|
449
|
-
O
|
|
446
|
+
const R = m.value.indexOf(S);
|
|
447
|
+
if (R !== -1) {
|
|
448
|
+
const O = R + a.virtualScrollStartIndex;
|
|
449
|
+
w(O);
|
|
450
450
|
}
|
|
451
|
-
}, y = async (
|
|
452
|
-
var
|
|
451
|
+
}, y = async (g) => {
|
|
452
|
+
var S, R;
|
|
453
453
|
if (f.value && a.scrollToIndex) {
|
|
454
|
-
a.scrollToIndex(
|
|
455
|
-
const
|
|
456
|
-
(
|
|
454
|
+
a.scrollToIndex(g), await W(), await p();
|
|
455
|
+
const O = g - a.virtualScrollStartIndex;
|
|
456
|
+
(S = m.value[O]) == null || S.focus();
|
|
457
457
|
} else
|
|
458
|
-
(
|
|
459
|
-
},
|
|
460
|
-
|
|
458
|
+
(R = m.value[g]) == null || R.focus();
|
|
459
|
+
}, k = async (g) => {
|
|
460
|
+
w(g), await y(g);
|
|
461
|
+
}, B = async (g) => {
|
|
462
|
+
var S, R;
|
|
463
|
+
await p(), f.value && a.scrollToIndex ? a.scrollToIndex(g) : (R = (S = m.value[g]) == null ? void 0 : S.scrollIntoView) == null || R.call(S, { block: "nearest" });
|
|
461
464
|
}, {
|
|
462
|
-
moveToNextElement:
|
|
463
|
-
moveToPreviousElement:
|
|
464
|
-
moveToFirstElement:
|
|
465
|
-
moveToLastElement:
|
|
466
|
-
setListboxFocusedIndex:
|
|
467
|
-
} =
|
|
465
|
+
moveToNextElement: b,
|
|
466
|
+
moveToPreviousElement: L,
|
|
467
|
+
moveToFirstElement: T,
|
|
468
|
+
moveToLastElement: I,
|
|
469
|
+
setListboxFocusedIndex: w
|
|
470
|
+
} = st(
|
|
468
471
|
{
|
|
469
|
-
items:
|
|
470
|
-
totalItemCount:
|
|
472
|
+
items: m,
|
|
473
|
+
totalItemCount: q(a, "totalItemCount")
|
|
471
474
|
},
|
|
472
475
|
y
|
|
473
|
-
),
|
|
474
|
-
[
|
|
475
|
-
[
|
|
476
|
-
[
|
|
477
|
-
[
|
|
478
|
-
},
|
|
479
|
-
[
|
|
480
|
-
[
|
|
481
|
-
[
|
|
482
|
-
[
|
|
476
|
+
), N = {
|
|
477
|
+
[z.ARROW_UP]: L,
|
|
478
|
+
[z.ARROW_DOWN]: b,
|
|
479
|
+
[z.HOME]: T,
|
|
480
|
+
[z.END]: I
|
|
481
|
+
}, A = {
|
|
482
|
+
[u.SELECT]: c(u.SELECT),
|
|
483
|
+
[u.SPACE]: c(u.SPACE),
|
|
484
|
+
[u.TAB]: c(u.TAB),
|
|
485
|
+
[u.ENTER]: c(u.ENTER)
|
|
483
486
|
};
|
|
484
487
|
return l({
|
|
485
488
|
/**
|
|
@@ -491,15 +494,20 @@ const Yt = qt.exports, et = ({ items: a, totalItemCount: e }, l) => {
|
|
|
491
494
|
* Method to set the index of the item to be focused on
|
|
492
495
|
* Used for focus management to be kept in-sync with parent e.g. dropdowns
|
|
493
496
|
*/
|
|
494
|
-
setListboxFocusedIndex:
|
|
497
|
+
setListboxFocusedIndex: w,
|
|
495
498
|
/**
|
|
496
499
|
* Navigates to an item by global index, handling virtual scroll if enabled.
|
|
497
500
|
* Scrolls the virtual list and focuses the item.
|
|
498
501
|
*/
|
|
499
|
-
navigateToItem:
|
|
502
|
+
navigateToItem: k,
|
|
503
|
+
/**
|
|
504
|
+
* Scrolls to an item by global index without changing focus.
|
|
505
|
+
* Used when the dropdown opens via click to bring the selected option into view.
|
|
506
|
+
*/
|
|
507
|
+
scrollToItem: B
|
|
500
508
|
}), {
|
|
501
509
|
// Enums
|
|
502
|
-
BentoListboxEvent:
|
|
510
|
+
BentoListboxEvent: u,
|
|
503
511
|
// Values
|
|
504
512
|
listboxRef: o,
|
|
505
513
|
listboxItemRef: i,
|
|
@@ -507,18 +515,18 @@ const Yt = qt.exports, et = ({ items: a, totalItemCount: e }, l) => {
|
|
|
507
515
|
slots: t,
|
|
508
516
|
ariaAttributes: v,
|
|
509
517
|
// Computed
|
|
510
|
-
hasCategories:
|
|
518
|
+
hasCategories: d,
|
|
511
519
|
// Methods
|
|
512
520
|
onOptionSelected: c,
|
|
513
521
|
// Keyboard navigation
|
|
514
|
-
listboxListeners:
|
|
515
|
-
listboxOptionListeners:
|
|
522
|
+
listboxListeners: N,
|
|
523
|
+
listboxOptionListeners: A,
|
|
516
524
|
// Virtual scroll focus management
|
|
517
525
|
handleVirtualScrollingFocus: h
|
|
518
526
|
};
|
|
519
527
|
}
|
|
520
528
|
});
|
|
521
|
-
var
|
|
529
|
+
var Xt = function() {
|
|
522
530
|
var e = this, l = e._self._c;
|
|
523
531
|
return e._self._setupProxy, l("div", e._g(e._b({ directives: [{ name: "bento-keyboard-navigation-directive", rawName: "v-bento-keyboard-navigation-directive" }], ref: "listboxRef", attrs: { role: "listbox" }, on: { focusin: e.handleVirtualScrollingFocus } }, "div", e.ariaAttributes, !1), e.listboxListeners), [e.hasCategories && e.staticCategories ? [e._l(e.items, function(t) {
|
|
524
532
|
return [t.items && t.items.length > 0 ? l("bento-listbox-single-select-category", { key: `category-${t.value}`, attrs: { "category-label": t.label } }, e._l(t.items, function(s) {
|
|
@@ -539,34 +547,34 @@ var jt = function() {
|
|
|
539
547
|
} };
|
|
540
548
|
})], null, !0) }, e.listboxOptionListeners));
|
|
541
549
|
})], 2);
|
|
542
|
-
},
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
550
|
+
}, Zt = [], Qt = /* @__PURE__ */ G(
|
|
551
|
+
Jt,
|
|
552
|
+
Xt,
|
|
553
|
+
Zt,
|
|
546
554
|
!1,
|
|
547
555
|
null,
|
|
548
556
|
null
|
|
549
557
|
);
|
|
550
|
-
const
|
|
551
|
-
let
|
|
552
|
-
const
|
|
558
|
+
const el = Qt.exports;
|
|
559
|
+
let He = 0;
|
|
560
|
+
const tl = {
|
|
553
561
|
beforeCreate() {
|
|
554
|
-
this.uuid =
|
|
562
|
+
this.uuid = He.toString(), He += 1;
|
|
555
563
|
}
|
|
556
564
|
};
|
|
557
|
-
var
|
|
565
|
+
var ll = function() {
|
|
558
566
|
var e = this, l = e._self._c;
|
|
559
567
|
return l("svg", e._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", e.$attrs, !1), [e.$attrs["svg-title"] ? l("title", [e._v(e._s(e.$attrs["svg-title"]))]) : e._e(), l("path", { attrs: { fill: "#001222", d: "M9.69043 5.75L4.62988 10.8105L1.56934 7.75L2.62988 6.68945L4.62988 8.68945L8.62988 4.68945L9.69043 5.75Z" } }), l("path", { attrs: { fill: "#001222", d: "M13.9307 5.75L8.87012 10.8105L7.80957 9.75L12.8701 4.68945L13.9307 5.75Z" } })]);
|
|
560
|
-
},
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
568
|
+
}, al = [], sl = /* @__PURE__ */ G(
|
|
569
|
+
tl,
|
|
570
|
+
ll,
|
|
571
|
+
al,
|
|
564
572
|
!1,
|
|
565
573
|
null,
|
|
566
574
|
null
|
|
567
575
|
);
|
|
568
|
-
const
|
|
569
|
-
...
|
|
576
|
+
const ol = sl.exports, nl = {}, il = /* @__PURE__ */ U({
|
|
577
|
+
...nl,
|
|
570
578
|
__name: "decorative-checkbox",
|
|
571
579
|
props: {
|
|
572
580
|
disabled: { type: Boolean, default: !1 },
|
|
@@ -576,29 +584,29 @@ const ll = tl.exports, al = {}, sl = /* @__PURE__ */ z({
|
|
|
576
584
|
},
|
|
577
585
|
setup(a) {
|
|
578
586
|
const e = a, l = n(() => ({
|
|
579
|
-
[`b-checkbox-input--${
|
|
587
|
+
[`b-checkbox-input--${De.DISABLED}`]: e.disabled
|
|
580
588
|
})), t = n(() => ({
|
|
581
|
-
[`b-checkbox-input__outline--${
|
|
582
|
-
[`b-checkbox-input__outline--${
|
|
583
|
-
[`b-checkbox-input__outline--${
|
|
589
|
+
[`b-checkbox-input__outline--${De.UNCHECKED}`]: !e.checked && !e.indeterminate && !e.allSelected,
|
|
590
|
+
[`b-checkbox-input__outline--${De.CHECKED}`]: (e.checked || e.allSelected) && !e.indeterminate,
|
|
591
|
+
[`b-checkbox-input__outline--${De.INDETERMINATE}`]: e.indeterminate
|
|
584
592
|
}));
|
|
585
|
-
return { __sfc: !0, props: e, conditionalClasses: l, outlineConditionalClasses: t, CheckmarkSmallIcon:
|
|
593
|
+
return { __sfc: !0, props: e, conditionalClasses: l, outlineConditionalClasses: t, CheckmarkSmallIcon: xt, MinusSmallIcon: St, DoubleCheckmarkSmallIcon: ol };
|
|
586
594
|
}
|
|
587
595
|
});
|
|
588
|
-
var
|
|
596
|
+
var rl = function() {
|
|
589
597
|
var e = this, l = e._self._c, t = e._self._setupProxy;
|
|
590
598
|
return l("div", { staticClass: "b-checkbox-input", class: t.conditionalClasses, attrs: { role: "presentation" } }, [e.indeterminate ? l(t.MinusSmallIcon, { staticClass: "b-checkbox-input__icon", attrs: { "svg-title": "", "aria-hidden": "true" } }) : e.allSelected ? l(t.DoubleCheckmarkSmallIcon, { staticClass: "b-checkbox-input__icon", attrs: { "svg-title": "", "aria-hidden": "true", "data-testid": "decorative-checkbox-double-checkmark-icon" } }) : e.checked ? l(t.CheckmarkSmallIcon, { staticClass: "b-checkbox-input__icon", attrs: { "svg-title": "", "aria-hidden": "true" } }) : e._e(), l("div", { staticClass: "b-checkbox-input__outline", class: t.outlineConditionalClasses })], 1);
|
|
591
|
-
},
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
599
|
+
}, cl = [], ul = /* @__PURE__ */ G(
|
|
600
|
+
il,
|
|
601
|
+
rl,
|
|
602
|
+
cl,
|
|
595
603
|
!1,
|
|
596
604
|
null,
|
|
597
605
|
"b87bbaf9"
|
|
598
606
|
);
|
|
599
|
-
const
|
|
600
|
-
var
|
|
601
|
-
const
|
|
607
|
+
const Ge = ul.exports;
|
|
608
|
+
var ot = /* @__PURE__ */ ((a) => (a.DISABLED = "disabled", a.STATIC_CATEGORY = "static-category", a))(ot || {}), ue = /* @__PURE__ */ ((a) => (a.SELECT_CATEGORY = "select-category", a.UNSELECT_CATEGORY = "unselect-category", a.TOGGLE_CATEGORY_VISIBILITY = "toggle-category-visibility", a))(ue || {});
|
|
609
|
+
const dl = {
|
|
602
610
|
"de-DE": {
|
|
603
611
|
categoryClosed: "{category} geschlossen",
|
|
604
612
|
categoryOpened: "{category} geöffnet"
|
|
@@ -639,15 +647,15 @@ const rl = {
|
|
|
639
647
|
categoryClosed: "{category} 已关闭",
|
|
640
648
|
categoryOpened: "{category} 已打开"
|
|
641
649
|
}
|
|
642
|
-
},
|
|
643
|
-
i18n: { messages:
|
|
650
|
+
}, pl = U({
|
|
651
|
+
i18n: { messages: dl },
|
|
644
652
|
name: "bento-listbox-multi-select-category",
|
|
645
653
|
components: {
|
|
646
|
-
BentoTypography:
|
|
647
|
-
BentoListboxOption:
|
|
648
|
-
ChevronDownIcon:
|
|
649
|
-
ChevronUpIcon:
|
|
650
|
-
DecorativeCheckbox:
|
|
654
|
+
BentoTypography: ie,
|
|
655
|
+
BentoListboxOption: Be,
|
|
656
|
+
ChevronDownIcon: tt,
|
|
657
|
+
ChevronUpIcon: lt,
|
|
658
|
+
DecorativeCheckbox: Ge
|
|
651
659
|
},
|
|
652
660
|
props: {
|
|
653
661
|
/**
|
|
@@ -693,75 +701,75 @@ const rl = {
|
|
|
693
701
|
tabindex: { type: Number, default: -1 }
|
|
694
702
|
},
|
|
695
703
|
emits: [
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
704
|
+
ue.SELECT_CATEGORY,
|
|
705
|
+
ue.UNSELECT_CATEGORY,
|
|
706
|
+
ue.TOGGLE_CATEGORY_VISIBILITY
|
|
699
707
|
],
|
|
700
708
|
setup(a, { emit: e }) {
|
|
701
|
-
const l = E(!1), { t } =
|
|
702
|
-
() => a.category.items.every((
|
|
703
|
-
), v =
|
|
704
|
-
[`b-listbox-multi-select-category--${
|
|
705
|
-
})),
|
|
706
|
-
|
|
707
|
-
},
|
|
708
|
-
var
|
|
709
|
-
const
|
|
710
|
-
return { isDisabled:
|
|
709
|
+
const l = E(!1), { t } = de(), s = ne("category-group"), o = ne("category-name"), i = (A) => a.isOptionDisabled ? a.isOptionDisabled(A) : !1, r = n(
|
|
710
|
+
() => a.category.items.every((A) => i(A))
|
|
711
|
+
), v = q(a, "staticCategories"), d = n(() => l.value || a.staticCategories), c = n(() => ({
|
|
712
|
+
[`b-listbox-multi-select-category--${ot.DISABLED}`]: r.value
|
|
713
|
+
})), m = (A, g) => {
|
|
714
|
+
A.preventDefault(), l.value = g !== void 0 ? g : !l.value, e(ue.TOGGLE_CATEGORY_VISIBILITY, a.category.value);
|
|
715
|
+
}, p = (A) => {
|
|
716
|
+
var R;
|
|
717
|
+
const g = i(A), S = ((R = a.selectedItemsList) == null ? void 0 : R.includes(A.value)) || !1;
|
|
718
|
+
return { isDisabled: g, isPreSelected: S };
|
|
711
719
|
}, f = n(
|
|
712
|
-
() => a.category.items.filter((
|
|
713
|
-
const { isDisabled:
|
|
714
|
-
return
|
|
720
|
+
() => a.category.items.filter((A) => {
|
|
721
|
+
const { isDisabled: g, isPreSelected: S } = p(A);
|
|
722
|
+
return g && S || !g;
|
|
715
723
|
})
|
|
716
724
|
), h = n(
|
|
717
725
|
() => {
|
|
718
|
-
var
|
|
719
|
-
return (
|
|
720
|
-
({ value:
|
|
721
|
-
var
|
|
722
|
-
return (
|
|
726
|
+
var A;
|
|
727
|
+
return (A = f.value) == null ? void 0 : A.filter(
|
|
728
|
+
({ value: g }) => {
|
|
729
|
+
var S;
|
|
730
|
+
return (S = a.selectedItemsList) == null ? void 0 : S.includes(g);
|
|
723
731
|
}
|
|
724
732
|
);
|
|
725
733
|
}
|
|
726
734
|
), y = n(() => {
|
|
727
|
-
const
|
|
728
|
-
return t(
|
|
729
|
-
}),
|
|
730
|
-
e(
|
|
731
|
-
},
|
|
732
|
-
e(
|
|
733
|
-
}, { isAllSelected:
|
|
735
|
+
const A = l.value ? "categoryOpened" : "categoryClosed";
|
|
736
|
+
return t(A, { category: a.category.label });
|
|
737
|
+
}), k = () => {
|
|
738
|
+
e(ue.SELECT_CATEGORY);
|
|
739
|
+
}, B = () => {
|
|
740
|
+
e(ue.UNSELECT_CATEGORY);
|
|
741
|
+
}, { isAllSelected: b, isIndeterminate: L, toggleSelectAll: T } = at(
|
|
734
742
|
h,
|
|
735
743
|
f,
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
),
|
|
739
|
-
|
|
744
|
+
k,
|
|
745
|
+
B
|
|
746
|
+
), I = n(() => L.value ? "mixed" : `${b.value}`), w = E(b.value), N = () => {
|
|
747
|
+
w.value = !w.value, T(w.value);
|
|
740
748
|
};
|
|
741
|
-
return
|
|
742
|
-
|
|
749
|
+
return te(b, () => {
|
|
750
|
+
w.value = b.value;
|
|
743
751
|
}), {
|
|
744
752
|
// Values
|
|
745
753
|
chevronTitle: y,
|
|
746
754
|
conditionalClass: c,
|
|
747
755
|
hasAllPropsDisabled: r,
|
|
748
756
|
isOpen: l,
|
|
749
|
-
isAllSelected:
|
|
757
|
+
isAllSelected: b,
|
|
750
758
|
isIndeterminate: L,
|
|
751
759
|
isStaticCategory: v,
|
|
752
760
|
categoryGroupId: s,
|
|
753
761
|
categoryNameId: o,
|
|
754
762
|
// Computed
|
|
755
|
-
showItemChildren:
|
|
756
|
-
ariaCheckedComputed:
|
|
763
|
+
showItemChildren: d,
|
|
764
|
+
ariaCheckedComputed: I,
|
|
757
765
|
// Methods
|
|
758
|
-
handleSelectAll:
|
|
759
|
-
toggleOpen:
|
|
766
|
+
handleSelectAll: N,
|
|
767
|
+
toggleOpen: m,
|
|
760
768
|
toggleSelectAll: T
|
|
761
769
|
};
|
|
762
770
|
}
|
|
763
771
|
});
|
|
764
|
-
var
|
|
772
|
+
var fl = function() {
|
|
765
773
|
var e = this, l = e._self._c;
|
|
766
774
|
return e._self._setupProxy, l("div", [e.isStaticCategory ? l("div", { staticClass: "b-listbox-multi-select-category b-listbox-multi-select-category--static-category", attrs: { "aria-hidden": "true" } }, [l("span", { staticClass: "b-listbox-multi-select-category__label" }, [l("bento-typography", { staticClass: "b-listbox-multi-select-category__label-text", attrs: { el: "span", variant: "caption" } }, [e._v(" " + e._s(e.category.label) + " ")])], 1)]) : l("bento-listbox-option", { staticClass: "b-listbox-multi-select-category__option", class: e.conditionalClass, attrs: { tabindex: e.tabindex, "aria-selected": e.ariaCheckedComputed !== "false", "aria-checked": e.ariaCheckedComputed, "aria-disabled": e.hasAllPropsDisabled, "aria-expanded": `${e.isOpen}`, role: "treeitem", "aria-owns": e.categoryGroupId, "aria-labelledby": e.categoryNameId }, on: { click: e.handleSelectAll, "enter-pressed": e.handleSelectAll, "space-pressed": function(t) {
|
|
767
775
|
return t.preventDefault(), e.handleSelectAll.apply(null, arguments);
|
|
@@ -772,23 +780,23 @@ var dl = function() {
|
|
|
772
780
|
}] } }, [l("decorative-checkbox", { attrs: { indeterminate: e.isIndeterminate, disabled: e.hasAllPropsDisabled, checked: e.isAllSelected } }), l("span", { staticClass: "b-listbox-multi-select-category__label" }, [l("bento-typography", { staticClass: "b-listbox-multi-select-category__label-text", attrs: { id: e.categoryNameId, el: "span" } }, [e._v(" " + e._s(e.category.label) + " ")]), l("div", { staticClass: "b-listbox-multi-select-category__label-chevron", attrs: { "aria-hidden": "true", "data-testid": "toggle-listbox" }, on: { "!click": function(t) {
|
|
773
781
|
return t.stopPropagation(), e.toggleOpen.apply(null, arguments);
|
|
774
782
|
} } }, [e.isOpen ? l("chevron-up-icon", { attrs: { "svg-title": e.chevronTitle } }) : l("chevron-down-icon", { attrs: { "svg-title": e.chevronTitle } })], 1)], 1)], 1), l("div", { directives: [{ name: "show", rawName: "v-show", value: e.showItemChildren, expression: "showItemChildren" }], attrs: { id: e.categoryGroupId, role: "group", "aria-label": e.category.label } }, [e._t("default")], 2)], 1);
|
|
775
|
-
},
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
783
|
+
}, bl = [], vl = /* @__PURE__ */ G(
|
|
784
|
+
pl,
|
|
785
|
+
fl,
|
|
786
|
+
bl,
|
|
779
787
|
!1,
|
|
780
788
|
null,
|
|
781
789
|
"00ccd708"
|
|
782
790
|
);
|
|
783
|
-
const
|
|
784
|
-
var
|
|
785
|
-
const
|
|
791
|
+
const ml = vl.exports;
|
|
792
|
+
var ee = /* @__PURE__ */ ((a) => (a.SELECT_CATEGORY = "select-category", a.TOGGLE_CHECKBOX_SELECTION = "toggle-checkbox-selection", a.UNSELECT_CATEGORY = "unselect-category", a.TOGGLE_CATEGORY_VISIBILITY = "toggle-category-visibility", a))(ee || {});
|
|
793
|
+
const _l = U({
|
|
786
794
|
name: "listbox-multi-select-options",
|
|
787
795
|
components: {
|
|
788
|
-
BentoListboxOption:
|
|
789
|
-
BentoTypography:
|
|
790
|
-
ListboxMultiSelectCategory:
|
|
791
|
-
DecorativeCheckbox:
|
|
796
|
+
BentoListboxOption: Be,
|
|
797
|
+
BentoTypography: ie,
|
|
798
|
+
ListboxMultiSelectCategory: ml,
|
|
799
|
+
DecorativeCheckbox: Ge
|
|
792
800
|
},
|
|
793
801
|
inheritAttrs: !1,
|
|
794
802
|
props: {
|
|
@@ -858,23 +866,23 @@ const bl = z({
|
|
|
858
866
|
}
|
|
859
867
|
},
|
|
860
868
|
emits: [
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
869
|
+
ee.TOGGLE_CHECKBOX_SELECTION,
|
|
870
|
+
ee.SELECT_CATEGORY,
|
|
871
|
+
ee.UNSELECT_CATEGORY,
|
|
872
|
+
ee.TOGGLE_CATEGORY_VISIBILITY
|
|
865
873
|
],
|
|
866
874
|
setup(a, { emit: e }) {
|
|
867
|
-
const l = (
|
|
868
|
-
a.isOptionDisabled(
|
|
869
|
-
}, t = (
|
|
875
|
+
const l = (d) => {
|
|
876
|
+
a.isOptionDisabled(d) || e(ee.TOGGLE_CHECKBOX_SELECTION, d);
|
|
877
|
+
}, t = (d) => !!d.items, s = (d) => {
|
|
870
878
|
const c = a.isMultiLevel && a.searching;
|
|
871
|
-
return
|
|
872
|
-
}, o = (
|
|
873
|
-
if (t(
|
|
874
|
-
const c = o(
|
|
875
|
-
e(c,
|
|
879
|
+
return d.description && (!a.isMultiLevel || c);
|
|
880
|
+
}, o = (d) => d.items ? !!d.items.find((c) => a.selectedItemsList.includes(c.value)) : a.selectedItemsList.includes(d.value), i = (d) => {
|
|
881
|
+
if (t(d)) {
|
|
882
|
+
const c = o(d) ? ee.UNSELECT_CATEGORY : ee.SELECT_CATEGORY;
|
|
883
|
+
e(c, d);
|
|
876
884
|
} else
|
|
877
|
-
l(
|
|
885
|
+
l(d);
|
|
878
886
|
};
|
|
879
887
|
return {
|
|
880
888
|
// Values
|
|
@@ -887,14 +895,14 @@ const bl = z({
|
|
|
887
895
|
shouldShowDescription: s,
|
|
888
896
|
toggleCheckboxSelection: l,
|
|
889
897
|
toggleSearchOption: i,
|
|
890
|
-
computedTabindex: (
|
|
898
|
+
computedTabindex: (d) => a.itemsIndex[d] === a.focusedIndex ? 0 : -1,
|
|
891
899
|
// Enums
|
|
892
|
-
BentoListboxEvent:
|
|
893
|
-
ListboxMultiSelectOptionsEvent:
|
|
900
|
+
BentoListboxEvent: u,
|
|
901
|
+
ListboxMultiSelectOptionsEvent: ee
|
|
894
902
|
};
|
|
895
903
|
}
|
|
896
904
|
});
|
|
897
|
-
var
|
|
905
|
+
var yl = function() {
|
|
898
906
|
var e = this, l = e._self._c;
|
|
899
907
|
return e._self._setupProxy, l("div", e._l(e.items, function(t) {
|
|
900
908
|
return l("div", { key: `selected-${t.value}` }, [e.searching && e.isMultiLevel ? [l("bento-listbox-option", { staticClass: "b-listbox-multi-select-options", class: e.conditionalClasses, attrs: { disabled: e.isOptionDisabled ? e.isOptionDisabled(t) : null, tabindex: e.computedTabindex(t.value), "aria-selected": `${e.isOptionSelected(t)}`, "aria-checked": `${e.isOptionSelected(t)}`, "aria-disabled": e.isOptionDisabled ? e.isOptionDisabled(t) : null, role: e.$attrs.role || "option" }, on: { click: function(s) {
|
|
@@ -921,15 +929,15 @@ var vl = function() {
|
|
|
921
929
|
return [l("span", { staticClass: "b-listbox-multi-select__option-text" }, [l("bento-typography", { attrs: { el: "span" } }, [e._v(e._s(t.label))]), e.shouldShowDescription(t) ? l("bento-typography", { staticClass: "b-listbox-multi-select__option-description", attrs: { el: "span" } }, [e._v(" " + e._s(t.description) + " ")]) : e._e()], 1)];
|
|
922
930
|
}, null, t)], 2)]], 2);
|
|
923
931
|
}), 0);
|
|
924
|
-
},
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
932
|
+
}, gl = [], hl = /* @__PURE__ */ G(
|
|
933
|
+
_l,
|
|
934
|
+
yl,
|
|
935
|
+
gl,
|
|
928
936
|
!1,
|
|
929
937
|
null,
|
|
930
938
|
"0985e0a4"
|
|
931
939
|
);
|
|
932
|
-
const
|
|
940
|
+
const Sl = hl.exports, nt = (a) => {
|
|
933
941
|
const e = n(() => {
|
|
934
942
|
var t;
|
|
935
943
|
return !!((t = a.value) != null && t.find(({ items: s }) => !!s));
|
|
@@ -941,7 +949,7 @@ const yl = _l.exports, lt = (a) => {
|
|
|
941
949
|
isMultiLevelSelect: e,
|
|
942
950
|
flattenedItemsList: l
|
|
943
951
|
};
|
|
944
|
-
},
|
|
952
|
+
}, xl = {
|
|
945
953
|
"de-DE": {
|
|
946
954
|
allSelected: "Alle ausgewählt ({total})",
|
|
947
955
|
numberOfTotalSelected: "{number} von {total} ausgewählt",
|
|
@@ -1002,8 +1010,8 @@ const yl = _l.exports, lt = (a) => {
|
|
|
1002
1010
|
numbersSelected: "已选择 {number} 个",
|
|
1003
1011
|
selectAll: "选择全部({total})个"
|
|
1004
1012
|
}
|
|
1005
|
-
},
|
|
1006
|
-
...
|
|
1013
|
+
}, Cl = { i18n: { messages: xl } }, Ol = /* @__PURE__ */ U({
|
|
1014
|
+
...Cl,
|
|
1007
1015
|
__name: "listbox-multi-select",
|
|
1008
1016
|
props: {
|
|
1009
1017
|
hasMoreItems: { type: Boolean, default: !1 },
|
|
@@ -1016,143 +1024,148 @@ const yl = _l.exports, lt = (a) => {
|
|
|
1016
1024
|
},
|
|
1017
1025
|
emits: ["select"],
|
|
1018
1026
|
setup(a, { expose: e, emit: l }) {
|
|
1019
|
-
const t = a, { t: s, n: o } =
|
|
1027
|
+
const t = a, { t: s, n: o } = de(), i = Oe(), r = Ve(), v = n(
|
|
1020
1028
|
() => {
|
|
1021
|
-
var _,
|
|
1029
|
+
var _, x, C, D;
|
|
1022
1030
|
return {
|
|
1023
1031
|
"aria-label": (_ = r["aria-label"]) == null ? void 0 : _.toString(),
|
|
1024
|
-
"aria-busy": (
|
|
1025
|
-
"aria-atomic": (
|
|
1026
|
-
"aria-live": (
|
|
1032
|
+
"aria-busy": (x = r["aria-busy"]) == null ? void 0 : x.toString(),
|
|
1033
|
+
"aria-atomic": (C = r["aria-atomic"]) == null ? void 0 : C.toString(),
|
|
1034
|
+
"aria-live": (D = r["aria-live"]) == null ? void 0 : D.toString(),
|
|
1027
1035
|
"aria-multiselectable": !0
|
|
1028
1036
|
};
|
|
1029
1037
|
}
|
|
1030
|
-
),
|
|
1031
|
-
var
|
|
1032
|
-
const
|
|
1033
|
-
return { isDisabled:
|
|
1038
|
+
), d = E(null), c = E(null), m = E(null), p = E(null), f = n(() => t.selectedValues.map(({ value: _ }) => _)), { isMultiLevelSelect: h, flattenedItemsList: y } = nt(q(t, "items")), k = n(() => h.value && !t.staticCategories), B = n(() => k.value ? "tree" : "listbox"), b = n(() => k.value ? "treeitem" : "option"), L = (_) => {
|
|
1039
|
+
var D;
|
|
1040
|
+
const x = t.isOptionDisabled(_), C = ((D = f.value) == null ? void 0 : D.includes(_.value)) || !1;
|
|
1041
|
+
return { isDisabled: x, isPreSelected: C };
|
|
1034
1042
|
}, T = n(() => {
|
|
1035
1043
|
if (t.searching && h)
|
|
1036
1044
|
return t.items;
|
|
1037
|
-
const _ = y.value.filter((
|
|
1038
|
-
const { isDisabled:
|
|
1039
|
-
return
|
|
1045
|
+
const _ = y.value.filter((x) => {
|
|
1046
|
+
const { isDisabled: C, isPreSelected: D } = L(x);
|
|
1047
|
+
return C && D || !C;
|
|
1040
1048
|
});
|
|
1041
|
-
return t.selectedValues.forEach((
|
|
1042
|
-
_.find((
|
|
1049
|
+
return t.selectedValues.forEach((x) => {
|
|
1050
|
+
_.find((C) => C.value === x.value) || _.push(x);
|
|
1043
1051
|
}), _;
|
|
1044
|
-
}),
|
|
1052
|
+
}), I = n(
|
|
1045
1053
|
() => {
|
|
1046
1054
|
var _;
|
|
1047
|
-
return (_ = T.value) == null ? void 0 : _.filter((
|
|
1048
|
-
var
|
|
1049
|
-
return
|
|
1050
|
-
(
|
|
1051
|
-
).length ===
|
|
1055
|
+
return (_ = T.value) == null ? void 0 : _.filter((x) => {
|
|
1056
|
+
var C;
|
|
1057
|
+
return x.items && h.value && t.searching ? x.items.filter(
|
|
1058
|
+
(M) => (t.selectedValues ?? []).includes(M.value)
|
|
1059
|
+
).length === x.items.length : (C = f.value) == null ? void 0 : C.includes(x.value);
|
|
1052
1060
|
});
|
|
1053
1061
|
}
|
|
1054
|
-
),
|
|
1055
|
-
var
|
|
1056
|
-
const _ = T.value.length,
|
|
1057
|
-
return
|
|
1058
|
-
}),
|
|
1059
|
-
const
|
|
1060
|
-
const { isDisabled:
|
|
1061
|
-
return
|
|
1062
|
-
},
|
|
1063
|
-
l("select", [...t.selectedValues, ...
|
|
1064
|
-
},
|
|
1065
|
-
const
|
|
1066
|
-
const { isDisabled:
|
|
1067
|
-
return !(
|
|
1068
|
-
},
|
|
1069
|
-
l("select",
|
|
1070
|
-
},
|
|
1071
|
-
|
|
1072
|
-
},
|
|
1073
|
-
|
|
1074
|
-
}, { isAllSelected:
|
|
1075
|
-
O,
|
|
1076
|
-
T,
|
|
1062
|
+
), w = () => h.value && !t.searching ? y.value.length : t.items.length, N = n(() => {
|
|
1063
|
+
var D;
|
|
1064
|
+
const _ = T.value.length, x = w(), C = ((D = I.value) == null ? void 0 : D.length) || 0;
|
|
1065
|
+
return C === 0 ? s("selectAll", { total: o(_) }) : C === x ? s("allSelected", { total: o(x) }) : C <= x ? s("numberOfTotalSelected", { number: o(C), total: o(x) }) : s("numbersSelected", { number: o(C) });
|
|
1066
|
+
}), A = (_) => {
|
|
1067
|
+
const x = (D) => {
|
|
1068
|
+
const { isDisabled: M, isPreSelected: J } = L(D);
|
|
1069
|
+
return M && J || !M;
|
|
1070
|
+
}, C = _.filter(x).filter((D) => !f.value.includes(D.value));
|
|
1071
|
+
l("select", [...t.selectedValues, ...C]);
|
|
1072
|
+
}, g = (_) => {
|
|
1073
|
+
const x = (M) => {
|
|
1074
|
+
const { isDisabled: J, isPreSelected: F } = L(M);
|
|
1075
|
+
return !(J && F);
|
|
1076
|
+
}, C = _.filter(x).map(({ value: M }) => M), D = t.selectedValues.filter((M) => !(C != null && C.includes(M.value)));
|
|
1077
|
+
l("select", D);
|
|
1078
|
+
}, S = () => {
|
|
1079
|
+
A(y.value);
|
|
1080
|
+
}, R = () => {
|
|
1081
|
+
g(y.value);
|
|
1082
|
+
}, { isAllSelected: O, isIndeterminate: P, toggleSelectAll: Q } = at(
|
|
1077
1083
|
I,
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1084
|
+
T,
|
|
1085
|
+
S,
|
|
1086
|
+
R
|
|
1087
|
+
), le = n(() => P.value ? "mixed" : `${O.value}`), Y = E(O.value), V = () => {
|
|
1088
|
+
Y.value = !Y.value, Q(Y.value);
|
|
1081
1089
|
};
|
|
1082
|
-
|
|
1083
|
-
|
|
1090
|
+
te(O, () => {
|
|
1091
|
+
Y.value = O.value;
|
|
1084
1092
|
});
|
|
1085
|
-
const
|
|
1086
|
-
|
|
1087
|
-
},
|
|
1088
|
-
|
|
1089
|
-
},
|
|
1090
|
-
let
|
|
1091
|
-
const
|
|
1092
|
-
|
|
1093
|
-
},
|
|
1093
|
+
const ae = (_) => {
|
|
1094
|
+
A(_.items);
|
|
1095
|
+
}, pe = (_) => {
|
|
1096
|
+
g(_.items);
|
|
1097
|
+
}, he = (_, x) => {
|
|
1098
|
+
let C = !1;
|
|
1099
|
+
const D = t.selectedValues.filter(({ value: M }) => x.value === M ? (C = !0, !1) : !0);
|
|
1100
|
+
C || D.push(x), l(_, D);
|
|
1101
|
+
}, Re = n(() => {
|
|
1094
1102
|
if (!h.value)
|
|
1095
1103
|
return t.selectedValues;
|
|
1096
|
-
const _ = (
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1104
|
+
const _ = (F) => f.value.includes(F.value), x = (F) => !t.staticCategories && F.every((ce) => _(ce)), C = t.items.flatMap(
|
|
1105
|
+
(F) => F.items && !x(F.items) ? F.items : F
|
|
1106
|
+
), D = C.filter((F) => F.items ? !0 : _(F)), M = /* @__PURE__ */ new Set();
|
|
1107
|
+
C.forEach((F) => {
|
|
1108
|
+
var ce;
|
|
1109
|
+
M.add(F.value), (ce = F.items) == null || ce.forEach(($) => M.add($.value));
|
|
1110
|
+
});
|
|
1111
|
+
const J = t.selectedValues.filter((F) => !M.has(F.value));
|
|
1112
|
+
return [...D, ...J];
|
|
1113
|
+
}), Me = n(() => {
|
|
1114
|
+
var C, D, M, J;
|
|
1115
|
+
const _ = ["automatic", "button"].includes(t.lazyLoadType), x = ((C = t.selectedValues) == null ? void 0 : C.length) > 0 && ((D = I.value) == null ? void 0 : D.length) !== ((M = y.value) == null ? void 0 : M.length);
|
|
1116
|
+
return _ && t.hasMoreItems ? !!((J = t.selectedValues) != null && J.length) : x;
|
|
1117
|
+
}), fe = n(() => ["automatic", "button"].includes(t.lazyLoadType) ? !t.hasMoreItems : !0), H = E([]), { visibleDomOptions: re, updateVisibleDomOptions: Se } = Ue(
|
|
1118
|
+
d,
|
|
1119
|
+
q(t, "items"),
|
|
1120
|
+
b
|
|
1121
|
+
), Ee = (_) => {
|
|
1122
|
+
H.value.includes(_) ? H.value = H.value.filter((x) => x !== _) : H.value.push(_), W(() => {
|
|
1123
|
+
Se();
|
|
1111
1124
|
});
|
|
1112
|
-
},
|
|
1113
|
-
var
|
|
1114
|
-
(
|
|
1125
|
+
}, Ie = (_) => {
|
|
1126
|
+
var x;
|
|
1127
|
+
(x = re.value[_]) == null || x.focus();
|
|
1115
1128
|
}, {
|
|
1116
|
-
moveToNextElement:
|
|
1117
|
-
moveToPreviousElement:
|
|
1118
|
-
moveToFirstElement:
|
|
1119
|
-
moveToLastElement:
|
|
1120
|
-
preventDefault:
|
|
1121
|
-
focusedIndex:
|
|
1122
|
-
setListboxFocusedIndex:
|
|
1123
|
-
} =
|
|
1129
|
+
moveToNextElement: Le,
|
|
1130
|
+
moveToPreviousElement: be,
|
|
1131
|
+
moveToFirstElement: xe,
|
|
1132
|
+
moveToLastElement: ve,
|
|
1133
|
+
preventDefault: me,
|
|
1134
|
+
focusedIndex: _e,
|
|
1135
|
+
setListboxFocusedIndex: Ce
|
|
1136
|
+
} = st(
|
|
1124
1137
|
{
|
|
1125
|
-
items:
|
|
1138
|
+
items: re
|
|
1126
1139
|
},
|
|
1127
|
-
|
|
1128
|
-
),
|
|
1129
|
-
[
|
|
1130
|
-
[
|
|
1131
|
-
[
|
|
1132
|
-
[
|
|
1140
|
+
Ie
|
|
1141
|
+
), Te = {
|
|
1142
|
+
[z.ARROW_UP]: (_) => be(_),
|
|
1143
|
+
[z.ARROW_DOWN]: (_) => Le(_),
|
|
1144
|
+
[z.HOME]: xe,
|
|
1145
|
+
[z.END]: ve
|
|
1133
1146
|
};
|
|
1134
1147
|
e({
|
|
1135
1148
|
/**
|
|
1136
1149
|
* Method to set the index of the item to be focused on
|
|
1137
1150
|
* Used for focus management to be kept in-sync with parent e.g. dropdowns
|
|
1138
1151
|
*/
|
|
1139
|
-
setListboxFocusedIndex:
|
|
1152
|
+
setListboxFocusedIndex: Ce
|
|
1140
1153
|
});
|
|
1141
|
-
const
|
|
1142
|
-
[
|
|
1143
|
-
[
|
|
1144
|
-
},
|
|
1145
|
-
let _ =
|
|
1146
|
-
const
|
|
1147
|
-
return t.items.forEach((
|
|
1148
|
-
let
|
|
1149
|
-
|
|
1150
|
-
}),
|
|
1154
|
+
const Ne = {
|
|
1155
|
+
[z.ARROW_UP]: me,
|
|
1156
|
+
[z.ARROW_DOWN]: me
|
|
1157
|
+
}, we = n(() => {
|
|
1158
|
+
let _ = fe.value ? 1 : 0;
|
|
1159
|
+
const x = {};
|
|
1160
|
+
return t.items.forEach((C) => {
|
|
1161
|
+
let D = H.value.includes(C.value);
|
|
1162
|
+
C.items ? (t.staticCategories ? D = !0 : x[C.value] = _++, D && C.items.forEach((M) => x[M.value] = _++)) : x[C.value] = _++;
|
|
1163
|
+
}), x;
|
|
1151
1164
|
});
|
|
1152
|
-
return { __sfc: !0, props: t, emit: l, t: s, n: o, slots: i, attrs: r, ariaAttributes: v, listboxRef:
|
|
1165
|
+
return { __sfc: !0, props: t, emit: l, t: s, n: o, slots: i, attrs: r, ariaAttributes: v, listboxRef: d, selectAllListboxItemsRef: c, selectedListboxItemsRef: m, listboxItemsRef: p, selectedItemsList: f, isMultiLevelSelect: h, flattenedItemsList: y, isTreePattern: k, computedRole: B, computedOptionRole: b, optionStates: L, enabledItems: T, visibleSelectedList: I, calculateTotalItems: w, selectAllCheckboxText: N, selectAll: A, unselectAll: g, selectAllItems: S, unselectAllItems: R, isAllSelected: O, isIndeterminate: P, toggleSelectAll: Q, ariaCheckedComputed: le, isSelectAllOn: Y, handleSelectAll: V, selectAllCategory: ae, unselectAllCategory: pe, toggleCheckboxSelection: he, selectedOptions: Re, showSelectedItems: Me, showSelectAllCheckbox: fe, expandedCategories: H, visibleDomOptions: re, updateVisibleDomOptions: Se, toggleCategoryVisibility: Ee, focusItem: Ie, moveToNextElement: Le, moveToPreviousElement: be, moveToFirstElement: xe, moveToLastElement: ve, preventDefault: me, focusedIndex: _e, setListboxFocusedIndex: Ce, listboxListeners: Te, chipsSectionListeners: Ne, computedItemsIndex: we, DecorativeCheckbox: Ge, BentoTypography: ie, BentoChip: Ct, BentoListboxOption: Be, ListboxMultiSelectOptions: Sl, vBentoKeyboardNavigationDirective: ke, BentoListboxEvent: u };
|
|
1153
1166
|
}
|
|
1154
1167
|
});
|
|
1155
|
-
var
|
|
1168
|
+
var El = function() {
|
|
1156
1169
|
var e = this, l = e._self._c, t = e._self._setupProxy;
|
|
1157
1170
|
return l("div", { ref: "listboxRef", staticClass: "b-listbox-multi-select" }, [t.showSelectedItems ? l("div", [l("ul", e._g({ directives: [{ name: "bento-keyboard-navigation-directive", rawName: "v-bento-keyboard-navigation-directive" }], staticClass: "b-listbox-multi-select__chips" }, t.chipsSectionListeners), e._l(t.selectedOptions, function(s) {
|
|
1158
1171
|
return l("li", { key: s.value }, [l(t.BentoChip, { ref: "selectedListboxItemsRef", refInFor: !0, attrs: { disabled: e.isOptionDisabled(s), label: s.label, condensed: "" }, on: { click: function(o) {
|
|
@@ -1173,20 +1186,20 @@ var xl = function() {
|
|
|
1173
1186
|
return [e._t(o, null, null, i)];
|
|
1174
1187
|
} };
|
|
1175
1188
|
})], null, !0) })], 1)]);
|
|
1176
|
-
},
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1189
|
+
}, Il = [], Ll = /* @__PURE__ */ G(
|
|
1190
|
+
Ol,
|
|
1191
|
+
El,
|
|
1192
|
+
Il,
|
|
1180
1193
|
!1,
|
|
1181
1194
|
null,
|
|
1182
|
-
"
|
|
1195
|
+
"81f4ab88"
|
|
1183
1196
|
);
|
|
1184
|
-
const
|
|
1197
|
+
const Je = Ll.exports, it = (a, e = 300) => {
|
|
1185
1198
|
let l;
|
|
1186
1199
|
return (...s) => {
|
|
1187
1200
|
l && clearTimeout(l), l = setTimeout(() => a(...s), e);
|
|
1188
1201
|
};
|
|
1189
|
-
},
|
|
1202
|
+
}, Tl = {
|
|
1190
1203
|
"de-DE": {
|
|
1191
1204
|
loading: "Laden",
|
|
1192
1205
|
showMore: "Mehr anzeigen"
|
|
@@ -1227,18 +1240,18 @@ const Ye = Ol.exports, at = (a, e = 300) => {
|
|
|
1227
1240
|
loading: "正在加载",
|
|
1228
1241
|
showMore: "显示更多"
|
|
1229
1242
|
}
|
|
1230
|
-
},
|
|
1243
|
+
}, wl = 36, Al = U({
|
|
1231
1244
|
name: "bento-listbox",
|
|
1232
1245
|
components: {
|
|
1233
|
-
BentoEmptyState:
|
|
1234
|
-
BentoListboxSingleSelect:
|
|
1235
|
-
BentoListboxMultiSelect:
|
|
1236
|
-
BentoTypography:
|
|
1237
|
-
BentoLoadingIndicator:
|
|
1238
|
-
BentoLoadingButton:
|
|
1239
|
-
},
|
|
1240
|
-
directives: { BentoKeyboardNavigationDirective:
|
|
1241
|
-
i18n: { messages:
|
|
1246
|
+
BentoEmptyState: gt,
|
|
1247
|
+
BentoListboxSingleSelect: el,
|
|
1248
|
+
BentoListboxMultiSelect: Je,
|
|
1249
|
+
BentoTypography: ie,
|
|
1250
|
+
BentoLoadingIndicator: yt,
|
|
1251
|
+
BentoLoadingButton: Ot
|
|
1252
|
+
},
|
|
1253
|
+
directives: { BentoKeyboardNavigationDirective: ke },
|
|
1254
|
+
i18n: { messages: Tl },
|
|
1242
1255
|
props: {
|
|
1243
1256
|
/**
|
|
1244
1257
|
* Defines a string value that labels an interactive element.
|
|
@@ -1294,8 +1307,8 @@ const Ye = Ol.exports, at = (a, e = 300) => {
|
|
|
1294
1307
|
*/
|
|
1295
1308
|
lazyLoadType: {
|
|
1296
1309
|
type: String,
|
|
1297
|
-
default:
|
|
1298
|
-
validator: (a) => Object.values(
|
|
1310
|
+
default: oe.NONE,
|
|
1311
|
+
validator: (a) => Object.values(oe).includes(a)
|
|
1299
1312
|
},
|
|
1300
1313
|
/**
|
|
1301
1314
|
* Indicates the listbox is loading filtered items.
|
|
@@ -1319,7 +1332,7 @@ const Ye = Ol.exports, at = (a, e = 300) => {
|
|
|
1319
1332
|
*
|
|
1320
1333
|
* If enabled, hides the "Select all" checkbox in "multiple" mode.
|
|
1321
1334
|
*/
|
|
1322
|
-
searching:
|
|
1335
|
+
searching: Je.props.searching,
|
|
1323
1336
|
/**
|
|
1324
1337
|
* The `input` value.
|
|
1325
1338
|
* Providing an empty string or empty array will select no options.
|
|
@@ -1339,108 +1352,108 @@ const Ye = Ol.exports, at = (a, e = 300) => {
|
|
|
1339
1352
|
}
|
|
1340
1353
|
},
|
|
1341
1354
|
emits: [
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1355
|
+
u.SELECT,
|
|
1356
|
+
u.SPACE,
|
|
1357
|
+
u.SHOW_MORE,
|
|
1358
|
+
u.ENTER,
|
|
1359
|
+
u.ESCAPE,
|
|
1360
|
+
u.TAB
|
|
1348
1361
|
],
|
|
1349
1362
|
setup(a, { emit: e, slots: l }) {
|
|
1350
|
-
const t = E([]), s =
|
|
1351
|
-
var
|
|
1352
|
-
return typeof (a == null ? void 0 : a.virtualScroll) == "object" && ((
|
|
1353
|
-
},
|
|
1363
|
+
const t = E([]), s = q(a, "items"), { t: o } = de(), i = n(() => a.lazyLoadType !== oe.AUTOMATIC), r = n(() => a.lazyLoadType === oe.AUTOMATIC), v = () => {
|
|
1364
|
+
var V;
|
|
1365
|
+
return typeof (a == null ? void 0 : a.virtualScroll) == "object" && ((V = a == null ? void 0 : a.virtualScroll) != null && V.itemHeight) ? a.virtualScroll.itemHeight : wl;
|
|
1366
|
+
}, d = !(a != null && a.multiple) && (a == null ? void 0 : a.virtualScroll) !== !1 && (a == null ? void 0 : a.lazyLoadType) === "none", {
|
|
1354
1367
|
containerRef: c,
|
|
1355
|
-
containerProps:
|
|
1356
|
-
onScroll:
|
|
1368
|
+
containerProps: m,
|
|
1369
|
+
onScroll: p,
|
|
1357
1370
|
list: f,
|
|
1358
1371
|
wrapperProps: h,
|
|
1359
1372
|
scrollToIndex: y,
|
|
1360
|
-
startIndex:
|
|
1361
|
-
} =
|
|
1373
|
+
startIndex: k
|
|
1374
|
+
} = At(s, {
|
|
1362
1375
|
itemHeight: v(),
|
|
1363
1376
|
// Disable virtual scrolling if not enabled or if lazy loading is enabled or if multi-select
|
|
1364
|
-
disabled: !
|
|
1365
|
-
}),
|
|
1377
|
+
disabled: !d
|
|
1378
|
+
}), B = n(() => d ? s.value.length : 0), b = n(
|
|
1366
1379
|
() => a.componentLoading !== void 0 || i.value ? "true" : void 0
|
|
1367
1380
|
), L = n(
|
|
1368
1381
|
() => i.value && a.loading || a.componentLoading ? "true" : "false"
|
|
1369
1382
|
), T = n(
|
|
1370
1383
|
() => i.value || a.componentLoading !== void 0 ? "polite" : void 0
|
|
1371
|
-
),
|
|
1384
|
+
), I = n(
|
|
1372
1385
|
() => ({
|
|
1373
1386
|
"aria-label": a.ariaLabel,
|
|
1374
1387
|
"aria-busy": L.value,
|
|
1375
|
-
"aria-atomic":
|
|
1388
|
+
"aria-atomic": b.value,
|
|
1376
1389
|
"aria-live": T.value
|
|
1377
1390
|
})
|
|
1378
|
-
),
|
|
1391
|
+
), w = n(
|
|
1379
1392
|
() => a.componentLoading ? {
|
|
1380
|
-
...
|
|
1393
|
+
...I.value,
|
|
1381
1394
|
role: "alert"
|
|
1382
1395
|
} : {}
|
|
1383
|
-
),
|
|
1384
|
-
e(
|
|
1385
|
-
},
|
|
1386
|
-
e(
|
|
1387
|
-
},
|
|
1388
|
-
const
|
|
1389
|
-
if (!
|
|
1396
|
+
), N = (V) => (ae) => {
|
|
1397
|
+
e(V, ae);
|
|
1398
|
+
}, A = () => {
|
|
1399
|
+
e(u.SHOW_MORE);
|
|
1400
|
+
}, g = it(() => {
|
|
1401
|
+
const V = c.value;
|
|
1402
|
+
if (!V)
|
|
1390
1403
|
return;
|
|
1391
|
-
const
|
|
1392
|
-
a.hasMoreItems &&
|
|
1393
|
-
}),
|
|
1394
|
-
r.value ?
|
|
1395
|
-
},
|
|
1396
|
-
var
|
|
1397
|
-
return ((
|
|
1398
|
-
}),
|
|
1399
|
-
() => a.lazyLoadType ===
|
|
1400
|
-
),
|
|
1401
|
-
() => a.loading ?
|
|
1402
|
-
),
|
|
1404
|
+
const ae = Math.round(V.scrollTop) + V.clientHeight >= V.scrollHeight;
|
|
1405
|
+
a.hasMoreItems && ae && !a.loading && A();
|
|
1406
|
+
}), S = () => {
|
|
1407
|
+
r.value ? g() : p();
|
|
1408
|
+
}, R = n(() => {
|
|
1409
|
+
var V;
|
|
1410
|
+
return ((V = a.items) == null ? void 0 : V.length) === 0;
|
|
1411
|
+
}), O = n(
|
|
1412
|
+
() => a.lazyLoadType === oe.BUTTON && a.hasMoreItems
|
|
1413
|
+
), P = n(
|
|
1414
|
+
() => a.loading ? Ye.LOADING : Ye.START
|
|
1415
|
+
), Q = n(() => a.loading ? o("loading") : o("showMore")), le = n(() => ({
|
|
1403
1416
|
...a.emptyState,
|
|
1404
1417
|
variant: "condensed"
|
|
1405
|
-
})),
|
|
1406
|
-
[
|
|
1407
|
-
[
|
|
1408
|
-
[
|
|
1409
|
-
[
|
|
1418
|
+
})), Y = {
|
|
1419
|
+
[u.SELECT]: N(u.SELECT),
|
|
1420
|
+
[u.SPACE]: N(u.SPACE),
|
|
1421
|
+
[u.TAB]: N(u.TAB),
|
|
1422
|
+
[u.ENTER]: N(u.ENTER)
|
|
1410
1423
|
};
|
|
1411
1424
|
return {
|
|
1412
1425
|
// Refs
|
|
1413
1426
|
listboxRef: c,
|
|
1414
1427
|
listboxItemRef: t,
|
|
1415
1428
|
// a11y
|
|
1416
|
-
ariaAttributes:
|
|
1417
|
-
listboxContainerAttributes:
|
|
1429
|
+
ariaAttributes: I,
|
|
1430
|
+
listboxContainerAttributes: w,
|
|
1418
1431
|
// Values
|
|
1419
|
-
containerProps:
|
|
1420
|
-
isSearchResultEmpty:
|
|
1421
|
-
limitedEmptyStateProps:
|
|
1422
|
-
loadingButtonState:
|
|
1432
|
+
containerProps: m,
|
|
1433
|
+
isSearchResultEmpty: R,
|
|
1434
|
+
limitedEmptyStateProps: le,
|
|
1435
|
+
loadingButtonState: P,
|
|
1423
1436
|
slots: l,
|
|
1424
|
-
shouldDisplayShowMoreButton:
|
|
1425
|
-
showMoreButtonText:
|
|
1437
|
+
shouldDisplayShowMoreButton: O,
|
|
1438
|
+
showMoreButtonText: Q,
|
|
1426
1439
|
virtualisedItems: f,
|
|
1427
1440
|
wrapperProps: h,
|
|
1428
1441
|
// Virtual scroll
|
|
1429
|
-
totalItemCount:
|
|
1442
|
+
totalItemCount: B,
|
|
1430
1443
|
scrollToIndex: y,
|
|
1431
|
-
virtualScrollStartIndex:
|
|
1444
|
+
virtualScrollStartIndex: k,
|
|
1432
1445
|
// Enums
|
|
1433
|
-
BentoKeyboardNavigationKeyDownEvent:
|
|
1434
|
-
BentoListboxEvent:
|
|
1446
|
+
BentoKeyboardNavigationKeyDownEvent: z,
|
|
1447
|
+
BentoListboxEvent: u,
|
|
1435
1448
|
// Methods
|
|
1436
|
-
onListboxContainerScroll:
|
|
1437
|
-
onOptionSelected:
|
|
1438
|
-
emitShowMore:
|
|
1439
|
-
listboxListeners:
|
|
1449
|
+
onListboxContainerScroll: S,
|
|
1450
|
+
onOptionSelected: N,
|
|
1451
|
+
emitShowMore: A,
|
|
1452
|
+
listboxListeners: Y
|
|
1440
1453
|
};
|
|
1441
1454
|
}
|
|
1442
1455
|
});
|
|
1443
|
-
var
|
|
1456
|
+
var Dl = function() {
|
|
1444
1457
|
var t;
|
|
1445
1458
|
var e = this, l = e._self._c;
|
|
1446
1459
|
return e._self._setupProxy, l("div", e._b({ directives: [{ name: "bento-keyboard-navigation-directive", rawName: "v-bento-keyboard-navigation-directive" }], ref: "listboxRef", staticClass: "b-listbox", style: (t = e.containerProps) == null ? void 0 : t.style, attrs: { id: e.id, tabindex: "-1", "data-testid": "listbox-container" }, on: { scroll: e.onListboxContainerScroll } }, "div", e.listboxContainerAttributes, !1), [l("div", e._b({}, "div", e.wrapperProps, !1), [e.componentLoading ? l("div", { staticClass: "b-listbox__loading-filtered-items" }, [l("bento-loading-indicator")], 1) : e.isSearchResultEmpty ? l("div", { staticClass: "b-listbox__empty-search-message" }, [e.emptyState ? l("bento-empty-state", e._b({}, "bento-empty-state", e.limitedEmptyStateProps, !1)) : l("bento-typography", { attrs: { el: "span" } }, [e._v(e._s(e.noResultsMessage))])], 1) : [e.multiple ? [l("bento-listbox-multi-select", e._g(e._b({ ref: "listboxItemRef", attrs: { "has-more-items": e.hasMoreItems, items: e.items, "lazy-load-type": e.lazyLoadType, "static-categories": e.staticCategories, "selected-values": e.selectedValue, searching: e.searching, "is-option-disabled": e.isOptionDisabled }, scopedSlots: e._u([e._l(e.slots, function(s, o) {
|
|
@@ -1454,58 +1467,58 @@ var Tl = function() {
|
|
|
1454
1467
|
})], null, !0) }, "bento-listbox-single-select", e.ariaAttributes, !1), e.listboxListeners))], e.shouldDisplayShowMoreButton ? l("div", { staticClass: "b-listbox__lazy-load" }, [l("bento-loading-button", { attrs: { state: e.loadingButtonState, variant: "secondary" }, on: { "!click": function(s) {
|
|
1455
1468
|
return e.emitShowMore.apply(null, arguments);
|
|
1456
1469
|
} } }, [e._v(" " + e._s(e.showMoreButtonText) + " ")])], 1) : e.loading ? l("div", { staticClass: "b-listbox__lazy-load" }, [l("bento-loading-indicator")], 1) : e._e()]], 2)]);
|
|
1457
|
-
},
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1470
|
+
}, kl = [], Bl = /* @__PURE__ */ G(
|
|
1471
|
+
Al,
|
|
1472
|
+
Dl,
|
|
1473
|
+
kl,
|
|
1461
1474
|
!1,
|
|
1462
1475
|
null,
|
|
1463
1476
|
"7819d7a2"
|
|
1464
1477
|
);
|
|
1465
|
-
const
|
|
1478
|
+
const Fe = Bl.exports, Pe = (a, e) => {
|
|
1466
1479
|
for (const l of a) {
|
|
1467
1480
|
if (l.value === e)
|
|
1468
1481
|
return l;
|
|
1469
1482
|
if (l.items) {
|
|
1470
|
-
const t =
|
|
1483
|
+
const t = Pe(l.items, e);
|
|
1471
1484
|
if (t)
|
|
1472
1485
|
return t;
|
|
1473
1486
|
}
|
|
1474
1487
|
}
|
|
1475
1488
|
return null;
|
|
1476
|
-
},
|
|
1489
|
+
}, Rl = (a) => typeof a == "object" && a !== null && "value" in a && "label" in a, Ml = (a, e, l, t) => {
|
|
1477
1490
|
const s = E([]), o = E(), i = (c) => {
|
|
1478
|
-
l.value ? o.value = c.map(({ value:
|
|
1491
|
+
l.value ? o.value = c.map(({ value: m }) => m) : o.value = c.length > 0 ? c[0].value : null;
|
|
1479
1492
|
}, r = (c) => {
|
|
1480
|
-
l.value ? o.value = c.map(({ value:
|
|
1493
|
+
l.value ? o.value = c.map(({ value: m, label: p }) => ({ value: m, label: p })) : o.value = c.length > 0 ? { value: c[0].value, label: c[0].label } : null;
|
|
1481
1494
|
}, v = (c) => {
|
|
1482
1495
|
s.value = c, t != null && t.value ? r(c) : i(c);
|
|
1483
|
-
},
|
|
1496
|
+
}, d = () => {
|
|
1484
1497
|
s.value = [], o.value = null;
|
|
1485
1498
|
};
|
|
1486
|
-
return
|
|
1499
|
+
return te(
|
|
1487
1500
|
() => e.value,
|
|
1488
1501
|
() => {
|
|
1489
1502
|
if (!e.value && e.value !== 0) {
|
|
1490
|
-
|
|
1503
|
+
d();
|
|
1491
1504
|
return;
|
|
1492
1505
|
}
|
|
1493
|
-
const c = !Array.isArray(e.value),
|
|
1494
|
-
|
|
1495
|
-
const
|
|
1496
|
-
if (
|
|
1506
|
+
const c = !Array.isArray(e.value), m = [...s.value];
|
|
1507
|
+
d();
|
|
1508
|
+
const p = (f) => {
|
|
1509
|
+
if (Rl(f))
|
|
1497
1510
|
s.value.push(f);
|
|
1498
1511
|
else {
|
|
1499
|
-
let h =
|
|
1500
|
-
h || (h =
|
|
1512
|
+
let h = Pe(a.value, f);
|
|
1513
|
+
h || (h = Pe(m, f)), h || (h = { value: f, label: f.toString() }), s.value.push(h);
|
|
1501
1514
|
}
|
|
1502
1515
|
};
|
|
1503
1516
|
if (c) {
|
|
1504
1517
|
const f = e.value;
|
|
1505
|
-
|
|
1518
|
+
p(f), t != null && t.value ? r(s.value) : i(s.value);
|
|
1506
1519
|
return;
|
|
1507
1520
|
}
|
|
1508
|
-
e.value.forEach(
|
|
1521
|
+
e.value.forEach(p), t != null && t.value ? r(s.value) : i(s.value);
|
|
1509
1522
|
},
|
|
1510
1523
|
{ immediate: !0 }
|
|
1511
1524
|
), {
|
|
@@ -1513,12 +1526,12 @@ const Me = Al.exports, Ne = (a, e) => {
|
|
|
1513
1526
|
cachedSelectedListboxOptions: s,
|
|
1514
1527
|
cachedListboxSelectedValues: o,
|
|
1515
1528
|
// Methods
|
|
1516
|
-
resetCache:
|
|
1529
|
+
resetCache: d,
|
|
1517
1530
|
setCachedValues: v
|
|
1518
1531
|
};
|
|
1519
1532
|
};
|
|
1520
|
-
var
|
|
1521
|
-
const
|
|
1533
|
+
var ge = /* @__PURE__ */ ((a) => (a.DEFAULT = "DropdownInputDefault", a.SMALL = "DropdownInputSmall", a))(ge || {});
|
|
1534
|
+
const Nl = {
|
|
1522
1535
|
"de-DE": {
|
|
1523
1536
|
apply: "Anwenden",
|
|
1524
1537
|
cancel: "Abbrechen",
|
|
@@ -1569,18 +1582,18 @@ const Bl = {
|
|
|
1569
1582
|
cancel: "取消",
|
|
1570
1583
|
noOptionsMatchThisSearch: "没有符合此搜索条件的选项"
|
|
1571
1584
|
}
|
|
1572
|
-
},
|
|
1573
|
-
const s = E(a.value), { t: o } =
|
|
1574
|
-
|
|
1585
|
+
}, $l = (a, e, l, t) => {
|
|
1586
|
+
const s = E(a.value), { t: o } = de();
|
|
1587
|
+
te(a, () => {
|
|
1575
1588
|
s.value = a.value;
|
|
1576
1589
|
});
|
|
1577
1590
|
const i = n(
|
|
1578
1591
|
() => JSON.stringify(s.value) === JSON.stringify(a.value)
|
|
1579
1592
|
), r = () => {
|
|
1580
|
-
t(
|
|
1593
|
+
t(u.SELECT, s.value), t(u.CLOSE_DROPDOWN);
|
|
1581
1594
|
}, v = () => {
|
|
1582
|
-
s.value = a.value, t(
|
|
1583
|
-
},
|
|
1595
|
+
s.value = a.value, t(u.CLOSE_DROPDOWN);
|
|
1596
|
+
}, d = () => {
|
|
1584
1597
|
l.value && e.value && (s.value = a.value);
|
|
1585
1598
|
}, c = n(() => [
|
|
1586
1599
|
{
|
|
@@ -1592,39 +1605,39 @@ const Bl = {
|
|
|
1592
1605
|
title: o("cancel"),
|
|
1593
1606
|
event: v
|
|
1594
1607
|
}
|
|
1595
|
-
]),
|
|
1596
|
-
s.value =
|
|
1597
|
-
},
|
|
1598
|
-
|
|
1599
|
-
}, f = (
|
|
1600
|
-
|
|
1601
|
-
}, h = (
|
|
1602
|
-
|
|
1608
|
+
]), m = (b) => {
|
|
1609
|
+
s.value = b, e.value || t(u.SELECT, b);
|
|
1610
|
+
}, p = (b) => {
|
|
1611
|
+
m(b), t(u.TAB);
|
|
1612
|
+
}, f = (b) => {
|
|
1613
|
+
m(b), t(u.ENTER);
|
|
1614
|
+
}, h = (b) => {
|
|
1615
|
+
m(b), t(u.SPACE);
|
|
1603
1616
|
}, y = () => {
|
|
1604
|
-
v(), t(
|
|
1605
|
-
},
|
|
1606
|
-
t(
|
|
1607
|
-
},
|
|
1608
|
-
[
|
|
1609
|
-
[
|
|
1610
|
-
[
|
|
1611
|
-
[
|
|
1612
|
-
[
|
|
1617
|
+
v(), t(u.ESCAPE);
|
|
1618
|
+
}, k = () => {
|
|
1619
|
+
t(u.SHOW_MORE);
|
|
1620
|
+
}, B = {
|
|
1621
|
+
[u.SELECT]: m,
|
|
1622
|
+
[u.SHOW_MORE]: k,
|
|
1623
|
+
[u.TAB]: p,
|
|
1624
|
+
[u.SPACE]: h,
|
|
1625
|
+
[u.ENTER]: f
|
|
1613
1626
|
};
|
|
1614
1627
|
return {
|
|
1615
1628
|
// Values
|
|
1616
1629
|
actions: c,
|
|
1617
1630
|
internalSelectedValue: s,
|
|
1618
1631
|
// Methods
|
|
1619
|
-
listeners:
|
|
1632
|
+
listeners: B,
|
|
1620
1633
|
onEscapeKey: y,
|
|
1621
|
-
onOutsideDropdownClick:
|
|
1634
|
+
onOutsideDropdownClick: d
|
|
1622
1635
|
};
|
|
1623
|
-
},
|
|
1624
|
-
i18n: { messages:
|
|
1636
|
+
}, Fl = U({
|
|
1637
|
+
i18n: { messages: Nl },
|
|
1625
1638
|
name: "bento-dropdown-options-container"
|
|
1626
|
-
}),
|
|
1627
|
-
...
|
|
1639
|
+
}), Pl = /* @__PURE__ */ U({
|
|
1640
|
+
...Fl,
|
|
1628
1641
|
props: {
|
|
1629
1642
|
/**
|
|
1630
1643
|
* Defines a string value that labels an interactive element.
|
|
@@ -1683,8 +1696,8 @@ const Bl = {
|
|
|
1683
1696
|
*/
|
|
1684
1697
|
lazyLoadType: {
|
|
1685
1698
|
type: String,
|
|
1686
|
-
default:
|
|
1687
|
-
validator: (a) => Object.values(
|
|
1699
|
+
default: oe.AUTOMATIC,
|
|
1700
|
+
validator: (a) => Object.values(oe).includes(a)
|
|
1688
1701
|
},
|
|
1689
1702
|
/**
|
|
1690
1703
|
* Indicates if new options are lazy loading.
|
|
@@ -1714,7 +1727,7 @@ const Bl = {
|
|
|
1714
1727
|
*
|
|
1715
1728
|
* If enabled, hides the "Select all" checkbox in "multiple" mode.
|
|
1716
1729
|
*/
|
|
1717
|
-
searching:
|
|
1730
|
+
searching: Fe.props.searching,
|
|
1718
1731
|
/**
|
|
1719
1732
|
* If enabled, dropdown will display non-selectable, static categories
|
|
1720
1733
|
*/
|
|
@@ -1723,7 +1736,7 @@ const Bl = {
|
|
|
1723
1736
|
* Reference to the DOM element or Vue component for positioning
|
|
1724
1737
|
* the Dropdown container.
|
|
1725
1738
|
*/
|
|
1726
|
-
targetElement: { type:
|
|
1739
|
+
targetElement: { type: We.props.targetElement.type, required: !0 },
|
|
1727
1740
|
/**
|
|
1728
1741
|
* Enables virtual scrolling if set to true or by providing an object with itemHeight function.
|
|
1729
1742
|
* The itemHeight function is used to calculate the height of rendered item given it's index.
|
|
@@ -1735,14 +1748,14 @@ const Bl = {
|
|
|
1735
1748
|
},
|
|
1736
1749
|
emits: [],
|
|
1737
1750
|
setup(a, { expose: e, emit: l }) {
|
|
1738
|
-
const t = a, s =
|
|
1751
|
+
const t = a, s = Oe(), { selectedValue: o, multiple: i } = Qe(t), r = E(null), { t: v } = de(), d = n(() => t.open && !t.disabled), c = n(() => v("noOptionsMatchThisSearch")), m = n(() => ({
|
|
1739
1752
|
"b-dropdown-options-container--single": !(t != null && t.multiple)
|
|
1740
|
-
})),
|
|
1753
|
+
})), p = n(() => ({
|
|
1741
1754
|
"b-dropdown-options-container__listbox--single": !(t != null && t.multiple)
|
|
1742
|
-
})), { actions: f, internalSelectedValue: h, listeners: y, onEscapeKey:
|
|
1743
|
-
var
|
|
1755
|
+
})), { actions: f, internalSelectedValue: h, listeners: y, onEscapeKey: k, onOutsideDropdownClick: B } = $l(o, i, d, l), b = n(() => t != null && t.multiple ? Et : We), L = n(() => {
|
|
1756
|
+
var I;
|
|
1744
1757
|
const T = {
|
|
1745
|
-
"min-width": `${(
|
|
1758
|
+
"min-width": `${(I = t == null ? void 0 : t.targetElement) == null ? void 0 : I.clientWidth}px`,
|
|
1746
1759
|
"max-width": "min(500px, 95%)"
|
|
1747
1760
|
};
|
|
1748
1761
|
return t != null && t.multiple ? {
|
|
@@ -1751,7 +1764,7 @@ const Bl = {
|
|
|
1751
1764
|
actions: f.value,
|
|
1752
1765
|
divider: !0,
|
|
1753
1766
|
fallbackPosition: ["top-start"],
|
|
1754
|
-
id:
|
|
1767
|
+
id: ne(`dropdown-options-${t.id}`),
|
|
1755
1768
|
open: t.open,
|
|
1756
1769
|
position: "bottom-start",
|
|
1757
1770
|
style: {
|
|
@@ -1764,18 +1777,18 @@ const Bl = {
|
|
|
1764
1777
|
offset: [0, 8],
|
|
1765
1778
|
position: "bottom-start",
|
|
1766
1779
|
style: {
|
|
1767
|
-
display:
|
|
1780
|
+
display: d.value ? "block" : "none",
|
|
1768
1781
|
...T
|
|
1769
1782
|
},
|
|
1770
1783
|
targetElement: t.targetElement
|
|
1771
1784
|
};
|
|
1772
1785
|
});
|
|
1773
1786
|
return e({
|
|
1774
|
-
onOutsideDropdownClick:
|
|
1775
|
-
}), { __sfc: !0, slots: s, emit: l, props: t, selectedValue: o, multiple: i, dropdownOptionsListboxRef: r, t: v, isDropdownOpen:
|
|
1787
|
+
onOutsideDropdownClick: B
|
|
1788
|
+
}), { __sfc: !0, slots: s, emit: l, props: t, selectedValue: o, multiple: i, dropdownOptionsListboxRef: r, t: v, isDropdownOpen: d, noResultsMessage: c, conditionalClasses: m, conditionalListboxClasses: p, actions: f, internalSelectedValue: h, listeners: y, onEscapeKey: k, onOutsideDropdownClick: B, popperContainerOrPopoverComponent: b, popperContainerOrPopoverProps: L, BentoListbox: Fe };
|
|
1776
1789
|
}
|
|
1777
1790
|
});
|
|
1778
|
-
var
|
|
1791
|
+
var Vl = function() {
|
|
1779
1792
|
var e = this, l = e._self._c, t = e._self._setupProxy;
|
|
1780
1793
|
return t.isDropdownOpen ? l(t.popperContainerOrPopoverComponent, e._b({ tag: "component", staticClass: "b-dropdown-options-container", class: t.conditionalClasses }, "component", t.popperContainerOrPopoverProps, !1), [l("div", { on: { keydown: function(s) {
|
|
1781
1794
|
return !s.type.indexOf("key") && e._k(s.keyCode, "esc", 27, s.key, ["Esc", "Escape"]) ? null : t.onEscapeKey.apply(null, arguments);
|
|
@@ -1784,17 +1797,17 @@ var $l = function() {
|
|
|
1784
1797
|
return [e._t(o, null, null, i)];
|
|
1785
1798
|
} };
|
|
1786
1799
|
})], null, !0) }, t.listeners))], 1)]) : e._e();
|
|
1787
|
-
},
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1800
|
+
}, zl = [], Ul = /* @__PURE__ */ G(
|
|
1801
|
+
Pl,
|
|
1802
|
+
Vl,
|
|
1803
|
+
zl,
|
|
1791
1804
|
!1,
|
|
1792
1805
|
null,
|
|
1793
1806
|
"9e0761e0"
|
|
1794
1807
|
);
|
|
1795
|
-
const
|
|
1796
|
-
var
|
|
1797
|
-
const
|
|
1808
|
+
const Gl = Ul.exports;
|
|
1809
|
+
var Z = /* @__PURE__ */ ((a) => (a.DISABLED = "disabled", a.READONLY = "readonly", a.HAS_ITEMS = "has-items", a.OPENED = "opened", a.ERROR = "error", a))(Z || {}), K = /* @__PURE__ */ ((a) => (a.OPEN = "dropdown-base-open", a.KEYDOWN = "dropdown-base-keydown", a.CLOSE = "dropdown-base-close", a.INPUT = "dropdown-base-input", a.CLEAR = "dropdown-base-clear", a))(K || {});
|
|
1810
|
+
const Kl = /* @__PURE__ */ Symbol("dropdown small size injection key"), rt = /* @__PURE__ */ Symbol("dropdown underline style injection key"), ql = {
|
|
1798
1811
|
"de-DE": {
|
|
1799
1812
|
clearSearch: "Suche löschen"
|
|
1800
1813
|
},
|
|
@@ -1825,12 +1838,12 @@ const zl = /* @__PURE__ */ Symbol("dropdown small size injection key"), st = /*
|
|
|
1825
1838
|
"zh-CN": {
|
|
1826
1839
|
clearSearch: "清除搜索"
|
|
1827
1840
|
}
|
|
1828
|
-
},
|
|
1829
|
-
i18n: { messages:
|
|
1841
|
+
}, Yl = U({
|
|
1842
|
+
i18n: { messages: ql },
|
|
1830
1843
|
name: "dropdown-base-textbox",
|
|
1831
1844
|
inheritAttrs: !1
|
|
1832
|
-
}),
|
|
1833
|
-
...
|
|
1845
|
+
}), Wl = /* @__PURE__ */ U({
|
|
1846
|
+
...Yl,
|
|
1834
1847
|
props: {
|
|
1835
1848
|
/**
|
|
1836
1849
|
* The number of additional items that have been selected in the dropdown.
|
|
@@ -1916,22 +1929,22 @@ const zl = /* @__PURE__ */ Symbol("dropdown small size injection key"), st = /*
|
|
|
1916
1929
|
},
|
|
1917
1930
|
emits: [],
|
|
1918
1931
|
setup(a, { expose: e, emit: l }) {
|
|
1919
|
-
const t = a, { t: s } =
|
|
1920
|
-
[`b-dropdown-base-textbox--${
|
|
1921
|
-
[`b-dropdown-base-textbox--${
|
|
1922
|
-
[`b-dropdown-base-textbox--${
|
|
1932
|
+
const t = a, { t: s } = de(), o = Ve(), i = Oe(), r = et(i), v = E(null), d = ne("textbox"), c = ze(rt, !1), m = n(() => ({
|
|
1933
|
+
[`b-dropdown-base-textbox--${Z.DISABLED}`]: t.disabled,
|
|
1934
|
+
[`b-dropdown-base-textbox--${Z.READONLY}`]: t.readonly,
|
|
1935
|
+
[`b-dropdown-base-textbox--${Z.HAS_ITEMS}`]: !!t.additionalItemsSelected,
|
|
1923
1936
|
"b-dropdown-base-textbox--underline": c
|
|
1924
|
-
})),
|
|
1925
|
-
() =>
|
|
1937
|
+
})), p = n(
|
|
1938
|
+
() => B.value && o["aria-required"] ? "true" : null
|
|
1926
1939
|
), f = n(() => ({
|
|
1927
1940
|
"b-dropdown-base-textbox__input--dynamic-filtering": t.dynamicFiltering
|
|
1928
1941
|
})), h = n(() => t.dynamicFiltering && !!t.value && t.open), y = n(
|
|
1929
1942
|
() => {
|
|
1930
|
-
var
|
|
1943
|
+
var S;
|
|
1931
1944
|
return {
|
|
1932
1945
|
"aria-haspopup": "listbox",
|
|
1933
1946
|
"aria-controls": t.ariaControls,
|
|
1934
|
-
"aria-describedby": (
|
|
1947
|
+
"aria-describedby": (S = o["aria-describedby"]) == null ? void 0 : S.toString(),
|
|
1935
1948
|
"aria-expanded": t.ariaExpanded ? "true" : "false",
|
|
1936
1949
|
"aria-labelledby": t.ariaLabelledby,
|
|
1937
1950
|
"aria-label": t.ariaLabelledby ? null : t.ariaLabel,
|
|
@@ -1940,36 +1953,36 @@ const zl = /* @__PURE__ */ Symbol("dropdown small size injection key"), st = /*
|
|
|
1940
1953
|
"aria-required": o["aria-required"]
|
|
1941
1954
|
};
|
|
1942
1955
|
}
|
|
1943
|
-
),
|
|
1956
|
+
), k = n(
|
|
1944
1957
|
() => t.multiple ? t.selectedValueItem : []
|
|
1945
|
-
),
|
|
1946
|
-
() => t.multiple && t.selectedValueItem &&
|
|
1958
|
+
), B = n(() => t.dynamicFiltering && (t.open || t.alwaysComboboxIsInput)), b = n(() => t.selectedValueItem && !t.multiple), L = n(
|
|
1959
|
+
() => t.multiple && t.selectedValueItem && k.value.length > 0 && t.showSlotContentInMultiple
|
|
1947
1960
|
);
|
|
1948
|
-
|
|
1949
|
-
() =>
|
|
1961
|
+
te(
|
|
1962
|
+
() => B.value,
|
|
1950
1963
|
() => {
|
|
1951
|
-
|
|
1964
|
+
B.value && !t.alwaysComboboxIsInput && W(() => {
|
|
1952
1965
|
v.value.focus();
|
|
1953
1966
|
});
|
|
1954
1967
|
}
|
|
1955
1968
|
);
|
|
1956
1969
|
const T = async () => {
|
|
1957
|
-
!t.disabled && !t.readonly && (l(
|
|
1958
|
-
},
|
|
1959
|
-
t.open && (v.value.focus(), l(
|
|
1960
|
-
},
|
|
1961
|
-
l(
|
|
1962
|
-
},
|
|
1963
|
-
!t.readonly && !t.disabled ? l(
|
|
1964
|
-
},
|
|
1970
|
+
!t.disabled && !t.readonly && (l(K.OPEN), await W(), v.value.focus());
|
|
1971
|
+
}, I = () => {
|
|
1972
|
+
t.open && (v.value.focus(), l(K.CLOSE));
|
|
1973
|
+
}, w = (S) => t.open && S.target.tagName === "INPUT" ? null : t.open ? I() : T(), N = () => {
|
|
1974
|
+
l(K.CLEAR), l(K.INPUT, ""), v.value.focus();
|
|
1975
|
+
}, A = (S) => {
|
|
1976
|
+
!t.readonly && !t.disabled ? l(K.INPUT, S.target.value) : (S.preventDefault(), S.stopPropagation());
|
|
1977
|
+
}, g = () => {
|
|
1965
1978
|
v.value.focus();
|
|
1966
1979
|
};
|
|
1967
1980
|
return e({
|
|
1968
|
-
focus:
|
|
1969
|
-
}), { __sfc: !0, t: s, attrs: o, slots: i, hasSlot: r, props: t, emit: l, textbox: v, textboxId:
|
|
1981
|
+
focus: g
|
|
1982
|
+
}), { __sfc: !0, t: s, attrs: o, slots: i, hasSlot: r, props: t, emit: l, textbox: v, textboxId: d, isUnderlineStyle: c, conditionalClasses: m, showRequiredAttribute: p, comboboxConditionalClasses: f, isFiltering: h, ariaAttributes: y, selectedValueItems: k, shouldShowInput: B, shouldShowSingleSelectSlot: b, shouldShowMultipleSlot: L, onOpenDropdown: T, onCloseDropdown: I, onToggleDropdown: w, onClearSearch: N, onInputEvent: A, focus: g, BentoTypography: ie, DropdownBaseTextboxEvent: K, CrossCircleFillIcon: ft, CrossCircleFillSmallIcon: bt, BentoDropdownSize: ge };
|
|
1970
1983
|
}
|
|
1971
1984
|
});
|
|
1972
|
-
var
|
|
1985
|
+
var jl = function() {
|
|
1973
1986
|
var e = this, l = e._self._c, t = e._self._setupProxy;
|
|
1974
1987
|
return l("div", { class: e.$attrs.class, attrs: { "data-testid": "textbox-wrapper" }, on: { click: t.onToggleDropdown, keydown: function(s) {
|
|
1975
1988
|
return !s.type.indexOf("key") && e._k(s.keyCode, "escape", void 0, s.key, void 0) ? null : t.onCloseDropdown.apply(null, arguments);
|
|
@@ -1990,19 +2003,19 @@ var ql = function() {
|
|
|
1990
2003
|
}, keyup: function(s) {
|
|
1991
2004
|
return !s.type.indexOf("key") && e._k(s.keyCode, "space", 32, s.key, [" ", "Spacebar"]) ? null : t.onClearSearch.apply(null, arguments);
|
|
1992
2005
|
} } }, [e.size === t.BentoDropdownSize.SMALL ? l(t.CrossCircleFillSmallIcon, { attrs: { "svg-title": t.t("clearSearch") } }) : l(t.CrossCircleFillIcon, { attrs: { "svg-title": t.t("clearSearch") } })], 1) : e._e()])], 1);
|
|
1993
|
-
},
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
|
|
2006
|
+
}, Hl = [], Jl = /* @__PURE__ */ G(
|
|
2007
|
+
Wl,
|
|
2008
|
+
jl,
|
|
2009
|
+
Hl,
|
|
1997
2010
|
!1,
|
|
1998
2011
|
null,
|
|
1999
2012
|
"4d2fd594"
|
|
2000
2013
|
);
|
|
2001
|
-
const
|
|
2014
|
+
const ct = Jl.exports, Xl = U({
|
|
2002
2015
|
name: "dropdown-default-textbox",
|
|
2003
2016
|
inheritAttrs: !1
|
|
2004
|
-
}),
|
|
2005
|
-
...
|
|
2017
|
+
}), Zl = /* @__PURE__ */ U({
|
|
2018
|
+
...Xl,
|
|
2006
2019
|
props: {
|
|
2007
2020
|
/**
|
|
2008
2021
|
* The number of additional items that have been selected in the dropdown.
|
|
@@ -2090,37 +2103,37 @@ const ot = Wl.exports, jl = z({
|
|
|
2090
2103
|
},
|
|
2091
2104
|
emits: ["clear", "close", "input", "keydown", "open"],
|
|
2092
2105
|
setup(a, { expose: e, emit: l }) {
|
|
2093
|
-
const t = a, s =
|
|
2094
|
-
[`b-dropdown-default-textbox--${
|
|
2095
|
-
[`b-dropdown-default-textbox--${
|
|
2096
|
-
[`b-dropdown-default-textbox--${
|
|
2097
|
-
[`b-dropdown-default-textbox--${
|
|
2106
|
+
const t = a, s = Oe(), o = E(null), i = n(() => ({
|
|
2107
|
+
[`b-dropdown-default-textbox--${Z.ERROR}`]: !t.disabled && !t.readonly && t.isInvalid,
|
|
2108
|
+
[`b-dropdown-default-textbox--${Z.DISABLED}`]: t.disabled,
|
|
2109
|
+
[`b-dropdown-default-textbox--${Z.READONLY}`]: t.readonly,
|
|
2110
|
+
[`b-dropdown-default-textbox--${Z.OPENED}`]: t.open,
|
|
2098
2111
|
"b-dropdown-default-textbox--condensed": t.condensed
|
|
2099
2112
|
})), r = n(() => t.open && !t.disabled && !t.readonly), v = (y) => {
|
|
2100
2113
|
l("input", y);
|
|
2101
|
-
},
|
|
2114
|
+
}, d = (y) => {
|
|
2102
2115
|
l("keydown", y);
|
|
2103
2116
|
}, c = (y) => {
|
|
2104
|
-
|
|
2105
|
-
},
|
|
2106
|
-
|
|
2107
|
-
},
|
|
2108
|
-
|
|
2117
|
+
ye(y), l("open");
|
|
2118
|
+
}, m = (y) => {
|
|
2119
|
+
ye(y), l("close");
|
|
2120
|
+
}, p = (y) => {
|
|
2121
|
+
ye(y), l("clear");
|
|
2109
2122
|
}, f = {
|
|
2110
|
-
[
|
|
2111
|
-
[
|
|
2112
|
-
[
|
|
2113
|
-
[
|
|
2114
|
-
[
|
|
2123
|
+
[K.INPUT]: v,
|
|
2124
|
+
[K.OPEN]: c,
|
|
2125
|
+
[K.CLOSE]: m,
|
|
2126
|
+
[K.CLEAR]: p,
|
|
2127
|
+
[K.KEYDOWN]: d
|
|
2115
2128
|
}, h = () => {
|
|
2116
2129
|
o.value.focus();
|
|
2117
2130
|
};
|
|
2118
2131
|
return e({
|
|
2119
2132
|
focus: h
|
|
2120
|
-
}), { __sfc: !0, emit: l, slots: s, props: t, baseTextbox: o, conditionalClasses: i, isDropdownOpen: r, onInput: v, onKeyDown:
|
|
2133
|
+
}), { __sfc: !0, emit: l, slots: s, props: t, baseTextbox: o, conditionalClasses: i, isDropdownOpen: r, onInput: v, onKeyDown: d, openDropdown: c, closeDropdown: m, clearValue: p, listeners: f, focus: h, DropdownBaseTextbox: ct, ChevronDownIcon: tt, ChevronUpIcon: lt };
|
|
2121
2134
|
}
|
|
2122
2135
|
});
|
|
2123
|
-
var
|
|
2136
|
+
var Ql = function() {
|
|
2124
2137
|
var e = this, l = e._self._c, t = e._self._setupProxy;
|
|
2125
2138
|
return l("div", { staticClass: "b-dropdown-default-textbox", class: t.conditionalClasses, attrs: { "data-testid": "default-textbox" } }, [l(t.DropdownBaseTextbox, e._g(e._b({ ref: "baseTextbox", staticClass: "b-dropdown-default-textbox__textbox", attrs: { value: e.value }, scopedSlots: e._u([e._l(t.slots, function(s, o) {
|
|
2126
2139
|
return { key: o, fn: function(i) {
|
|
@@ -2129,55 +2142,55 @@ var Jl = function() {
|
|
|
2129
2142
|
}), { key: "icon", fn: function() {
|
|
2130
2143
|
return [l("div", { staticClass: "b-dropdown-default-textbox__chevron" }, [l(t.ChevronUpIcon, { directives: [{ name: "show", rawName: "v-show", value: t.isDropdownOpen, expression: "isDropdownOpen" }], attrs: { "svg-title": "opened" } }), l(t.ChevronDownIcon, { directives: [{ name: "show", rawName: "v-show", value: !t.isDropdownOpen, expression: "!isDropdownOpen" }], attrs: { "svg-title": "closed" } })], 1)];
|
|
2131
2144
|
}, proxy: !0 }], null, !0) }, "dropdown-base-textbox", { ...e.$attrs, ...e.$props }, !1), t.listeners))], 1);
|
|
2132
|
-
},
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
|
|
2145
|
+
}, ea = [], ta = /* @__PURE__ */ G(
|
|
2146
|
+
Zl,
|
|
2147
|
+
Ql,
|
|
2148
|
+
ea,
|
|
2136
2149
|
!1,
|
|
2137
2150
|
null,
|
|
2138
2151
|
"bf2d43b0"
|
|
2139
2152
|
);
|
|
2140
|
-
const
|
|
2141
|
-
let
|
|
2142
|
-
const
|
|
2153
|
+
const la = ta.exports;
|
|
2154
|
+
let Xe = 0;
|
|
2155
|
+
const aa = {
|
|
2143
2156
|
beforeCreate() {
|
|
2144
|
-
this.uuid =
|
|
2157
|
+
this.uuid = Xe.toString(), Xe += 1;
|
|
2145
2158
|
}
|
|
2146
2159
|
};
|
|
2147
|
-
var
|
|
2160
|
+
var sa = function() {
|
|
2148
2161
|
var e = this, l = e._self._c;
|
|
2149
2162
|
return l("svg", e._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", e.$attrs, !1), [e.$attrs["svg-title"] ? l("title", [e._v(e._s(e.$attrs["svg-title"]))]) : e._e(), l("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" } })]);
|
|
2150
|
-
},
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
|
|
2163
|
+
}, oa = [], na = /* @__PURE__ */ G(
|
|
2164
|
+
aa,
|
|
2165
|
+
sa,
|
|
2166
|
+
oa,
|
|
2154
2167
|
!1,
|
|
2155
2168
|
null,
|
|
2156
2169
|
null
|
|
2157
2170
|
);
|
|
2158
|
-
const
|
|
2159
|
-
let
|
|
2160
|
-
const
|
|
2171
|
+
const ia = na.exports;
|
|
2172
|
+
let Ze = 0;
|
|
2173
|
+
const ra = {
|
|
2161
2174
|
beforeCreate() {
|
|
2162
|
-
this.uuid =
|
|
2175
|
+
this.uuid = Ze.toString(), Ze += 1;
|
|
2163
2176
|
}
|
|
2164
2177
|
};
|
|
2165
|
-
var
|
|
2178
|
+
var ca = function() {
|
|
2166
2179
|
var e = this, l = e._self._c;
|
|
2167
2180
|
return l("svg", e._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", e.$attrs, !1), [e.$attrs["svg-title"] ? l("title", [e._v(e._s(e.$attrs["svg-title"]))]) : e._e(), l("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" } })]);
|
|
2168
|
-
},
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
|
|
2181
|
+
}, ua = [], da = /* @__PURE__ */ G(
|
|
2182
|
+
ra,
|
|
2183
|
+
ca,
|
|
2184
|
+
ua,
|
|
2172
2185
|
!1,
|
|
2173
2186
|
null,
|
|
2174
2187
|
null
|
|
2175
2188
|
);
|
|
2176
|
-
const
|
|
2189
|
+
const pa = da.exports, fa = U({
|
|
2177
2190
|
name: "dropdown-small-textbox",
|
|
2178
2191
|
inheritAttrs: !1
|
|
2179
|
-
}),
|
|
2180
|
-
...
|
|
2192
|
+
}), ba = /* @__PURE__ */ U({
|
|
2193
|
+
...fa,
|
|
2181
2194
|
props: {
|
|
2182
2195
|
/**
|
|
2183
2196
|
* The number of additional items that have been selected in the dropdown.
|
|
@@ -2234,49 +2247,49 @@ const ca = ra.exports, da = z({
|
|
|
2234
2247
|
},
|
|
2235
2248
|
emits: ["clear", "close", "input", "keydown", "open"],
|
|
2236
2249
|
setup(a, { expose: e, emit: l }) {
|
|
2237
|
-
const t = a, s = E(null), o =
|
|
2238
|
-
[`b-dropdown-small-textbox--${
|
|
2239
|
-
[`b-dropdown-small-textbox--${
|
|
2240
|
-
[`b-dropdown-small-textbox--${
|
|
2250
|
+
const t = a, s = E(null), o = ze(rt, !1), i = n(() => ({
|
|
2251
|
+
[`b-dropdown-small-textbox--${Z.DISABLED}`]: t.disabled,
|
|
2252
|
+
[`b-dropdown-small-textbox--${Z.READONLY}`]: t.readonly,
|
|
2253
|
+
[`b-dropdown-small-textbox--${Z.OPENED}`]: t.open,
|
|
2241
2254
|
"b-dropdown-small-textbox--underline": o
|
|
2242
2255
|
})), r = n(() => t.open && !t.disabled && !t.readonly), v = (y) => {
|
|
2243
2256
|
l("input", y);
|
|
2244
|
-
},
|
|
2257
|
+
}, d = (y) => {
|
|
2245
2258
|
l("keydown", y);
|
|
2246
2259
|
}, c = (y) => {
|
|
2247
|
-
|
|
2248
|
-
},
|
|
2249
|
-
|
|
2250
|
-
},
|
|
2251
|
-
|
|
2260
|
+
ye(y), l("open");
|
|
2261
|
+
}, m = (y) => {
|
|
2262
|
+
ye(y), l("close");
|
|
2263
|
+
}, p = (y) => {
|
|
2264
|
+
ye(y), l("clear");
|
|
2252
2265
|
}, f = {
|
|
2253
|
-
[
|
|
2254
|
-
[
|
|
2255
|
-
[
|
|
2256
|
-
[
|
|
2257
|
-
[
|
|
2266
|
+
[K.INPUT]: v,
|
|
2267
|
+
[K.OPEN]: c,
|
|
2268
|
+
[K.CLOSE]: m,
|
|
2269
|
+
[K.CLEAR]: p,
|
|
2270
|
+
[K.KEYDOWN]: d
|
|
2258
2271
|
}, h = () => {
|
|
2259
2272
|
s.value.focus();
|
|
2260
2273
|
};
|
|
2261
2274
|
return e({
|
|
2262
2275
|
focus: h
|
|
2263
|
-
}), { __sfc: !0, emit: l, props: t, baseTextbox: s, isUnderlineStyle: o, conditionalClasses: i, isDropdownOpen: r, onInput: v, onKeyDown:
|
|
2276
|
+
}), { __sfc: !0, emit: l, props: t, baseTextbox: s, isUnderlineStyle: o, conditionalClasses: i, isDropdownOpen: r, onInput: v, onKeyDown: d, openDropdown: c, closeDropdown: m, clearValue: p, listeners: f, focus: h, BentoDropdownSize: ge, DropdownBaseTextbox: ct, ChevronDownSmallIcon: ia, ChevronUpSmallIcon: pa };
|
|
2264
2277
|
}
|
|
2265
2278
|
});
|
|
2266
|
-
var
|
|
2279
|
+
var va = function() {
|
|
2267
2280
|
var e = this, l = e._self._c, t = e._self._setupProxy;
|
|
2268
2281
|
return l("div", { staticClass: "b-dropdown-small-textbox", class: t.conditionalClasses }, [l(t.DropdownBaseTextbox, e._g(e._b({ ref: "baseTextbox", staticClass: "b-dropdown-small-textbox__textbox", attrs: { size: t.BentoDropdownSize.SMALL }, scopedSlots: e._u([{ key: "icon", fn: function() {
|
|
2269
2282
|
return [l("div", { staticClass: "b-dropdown-small-textbox__chevron" }, [l(t.ChevronUpSmallIcon, { directives: [{ name: "show", rawName: "v-show", value: t.isDropdownOpen, expression: "isDropdownOpen" }], attrs: { "svg-title": "opened" } }), l(t.ChevronDownSmallIcon, { directives: [{ name: "show", rawName: "v-show", value: !t.isDropdownOpen, expression: "!isDropdownOpen" }], attrs: { "svg-title": "closed" } })], 1)];
|
|
2270
2283
|
}, proxy: !0 }]) }, "dropdown-base-textbox", { ...e.$attrs, ...e.$props }, !1), t.listeners))], 1);
|
|
2271
|
-
},
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
|
|
2284
|
+
}, ma = [], _a = /* @__PURE__ */ G(
|
|
2285
|
+
ba,
|
|
2286
|
+
va,
|
|
2287
|
+
ma,
|
|
2275
2288
|
!1,
|
|
2276
2289
|
null,
|
|
2277
2290
|
"fa225e76"
|
|
2278
2291
|
);
|
|
2279
|
-
const
|
|
2292
|
+
const ya = _a.exports, ga = (a, e) => e.value.reduce((l, t) => {
|
|
2280
2293
|
if (t.items) {
|
|
2281
2294
|
const s = t.items.filter(
|
|
2282
2295
|
(i) => a.value.find((r) => r.value === i.value)
|
|
@@ -2284,18 +2297,18 @@ const va = ba.exports, ma = (a, e) => e.value.reduce((l, t) => {
|
|
|
2284
2297
|
s.length === t.items.length ? l.push(t.displayValue ?? t.label) : s.forEach(({ label: i, displayValue: r }) => l.push(r ?? i));
|
|
2285
2298
|
}
|
|
2286
2299
|
return a.value.find((s) => s.value === t.value) && l.push(t.displayValue ?? t.label), l;
|
|
2287
|
-
}, []).join(", "),
|
|
2300
|
+
}, []).join(", "), ha = ({ items: a, placeholder: e, selectedValues: l, isMultiSelect: t }) => {
|
|
2288
2301
|
const s = n(
|
|
2289
2302
|
() => t.value && a.value.find((i) => {
|
|
2290
2303
|
var r;
|
|
2291
2304
|
return (r = i.items) == null ? void 0 : r.length;
|
|
2292
2305
|
})
|
|
2293
2306
|
);
|
|
2294
|
-
return n(() => l.value.length ? s.value ?
|
|
2295
|
-
},
|
|
2307
|
+
return n(() => l.value.length ? s.value ? ga(l, a) : l.value.map(({ label: i, displayValue: r }) => r ?? i).join(", ") : e.value || null);
|
|
2308
|
+
}, ut = (a) => {
|
|
2296
2309
|
var e;
|
|
2297
2310
|
(e = a.value.$children) == null || e[0].$refs.textbox.focus();
|
|
2298
|
-
},
|
|
2311
|
+
}, Sa = ({
|
|
2299
2312
|
inputContainerRef: a,
|
|
2300
2313
|
optionsContainerRef: e,
|
|
2301
2314
|
selectedValueIndex: l,
|
|
@@ -2305,78 +2318,78 @@ const va = ba.exports, ma = (a, e) => e.value.reduce((l, t) => {
|
|
|
2305
2318
|
isMultiple: i,
|
|
2306
2319
|
totalItemCount: r,
|
|
2307
2320
|
isVirtualScroll: v
|
|
2308
|
-
},
|
|
2309
|
-
const
|
|
2310
|
-
var
|
|
2311
|
-
s.value && await
|
|
2312
|
-
}, f = async (
|
|
2313
|
-
var
|
|
2314
|
-
s.value && await
|
|
2315
|
-
const
|
|
2321
|
+
}, d, c, m) => {
|
|
2322
|
+
const p = async (O) => {
|
|
2323
|
+
var P;
|
|
2324
|
+
s.value && await W(), (P = o.value[O]) == null || P.focus();
|
|
2325
|
+
}, f = async (O) => {
|
|
2326
|
+
var Q, le;
|
|
2327
|
+
s.value && await W();
|
|
2328
|
+
const P = (Q = e.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef) == null ? void 0 : Q.$el.querySelectorAll(
|
|
2316
2329
|
"button"
|
|
2317
2330
|
);
|
|
2318
|
-
|
|
2319
|
-
}, h = (
|
|
2320
|
-
var
|
|
2321
|
-
return (
|
|
2322
|
-
|
|
2331
|
+
P != null && P.length ? (le = P[O]) == null || le.focus() : p(O);
|
|
2332
|
+
}, h = (O) => {
|
|
2333
|
+
var P;
|
|
2334
|
+
return (P = e.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef) == null ? void 0 : P.setListboxFocusedIndex(
|
|
2335
|
+
O
|
|
2323
2336
|
);
|
|
2324
|
-
}, y = async (
|
|
2325
|
-
var
|
|
2326
|
-
await ((
|
|
2327
|
-
},
|
|
2328
|
-
|
|
2329
|
-
v ? y(
|
|
2337
|
+
}, y = async (O) => {
|
|
2338
|
+
var P;
|
|
2339
|
+
await ((P = e.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef) == null ? void 0 : P.navigateToItem(O));
|
|
2340
|
+
}, k = (O) => {
|
|
2341
|
+
W(() => {
|
|
2342
|
+
v ? y(O) : (h(O), p(O));
|
|
2330
2343
|
});
|
|
2331
|
-
},
|
|
2332
|
-
t.value || c(),
|
|
2333
|
-
},
|
|
2334
|
-
t.value || c(),
|
|
2335
|
-
|
|
2344
|
+
}, B = () => {
|
|
2345
|
+
t.value || c(), k(0);
|
|
2346
|
+
}, b = () => {
|
|
2347
|
+
t.value || c(), W(() => {
|
|
2348
|
+
k(v ? r.value - 1 : o.value.length - 1);
|
|
2336
2349
|
});
|
|
2337
|
-
}, L = ({ detail:
|
|
2338
|
-
|
|
2339
|
-
}, T = ({ detail:
|
|
2340
|
-
|
|
2341
|
-
}, O = () => {
|
|
2342
|
-
R();
|
|
2343
|
-
}, A = () => {
|
|
2344
|
-
p();
|
|
2345
|
-
}, M = ({ detail: D }) => {
|
|
2346
|
-
D.preventDefault(), u(), t.value && (i ? f(0) : B(l.value));
|
|
2347
|
-
}, m = ({ detail: D }) => {
|
|
2348
|
-
D.preventDefault(), u(), t.value && (i ? f(0) : B(l.value));
|
|
2349
|
-
}, C = () => {
|
|
2350
|
-
t.value && g();
|
|
2350
|
+
}, L = ({ detail: O }) => {
|
|
2351
|
+
O.preventDefault(), B();
|
|
2352
|
+
}, T = ({ detail: O }) => {
|
|
2353
|
+
O.preventDefault(), b();
|
|
2351
2354
|
}, I = () => {
|
|
2352
|
-
|
|
2355
|
+
B();
|
|
2356
|
+
}, w = () => {
|
|
2357
|
+
b();
|
|
2358
|
+
}, N = ({ detail: O }) => {
|
|
2359
|
+
O.preventDefault(), d(), t.value && (i ? f(0) : k(l.value));
|
|
2360
|
+
}, A = ({ detail: O }) => {
|
|
2361
|
+
O.preventDefault(), d(), t.value && (i ? f(0) : k(l.value));
|
|
2362
|
+
}, g = () => {
|
|
2363
|
+
t.value && m();
|
|
2364
|
+
}, S = () => {
|
|
2365
|
+
t.value && (m(), ut(a));
|
|
2353
2366
|
};
|
|
2354
2367
|
return n(() => ({
|
|
2355
|
-
[
|
|
2356
|
-
[
|
|
2357
|
-
[
|
|
2358
|
-
[
|
|
2359
|
-
...s.value ? {} : { [
|
|
2360
|
-
[
|
|
2361
|
-
...s.value ? {} : { [
|
|
2362
|
-
[
|
|
2368
|
+
[z.ARROW_DOWN]: L,
|
|
2369
|
+
[z.ARROW_UP]: T,
|
|
2370
|
+
[z.HOME]: I,
|
|
2371
|
+
[z.END]: w,
|
|
2372
|
+
...s.value ? {} : { [z.SPACE]: N },
|
|
2373
|
+
[z.ENTER]: A,
|
|
2374
|
+
...s.value ? {} : { [z.TAB]: g },
|
|
2375
|
+
[z.ESCAPE]: S
|
|
2363
2376
|
}));
|
|
2364
|
-
},
|
|
2377
|
+
}, xa = ({ inputContainerRef: a, isDropdownOpen: e }, l) => {
|
|
2365
2378
|
const t = () => {
|
|
2366
|
-
e.value && l(),
|
|
2367
|
-
|
|
2379
|
+
e.value && l(), W(() => {
|
|
2380
|
+
ut(a);
|
|
2368
2381
|
});
|
|
2369
2382
|
};
|
|
2370
2383
|
return {
|
|
2371
|
-
[
|
|
2372
|
-
[
|
|
2373
|
-
[
|
|
2374
|
-
[
|
|
2384
|
+
[u.ENTER]: t,
|
|
2385
|
+
[u.ESCAPE]: t,
|
|
2386
|
+
[u.TAB]: t,
|
|
2387
|
+
[u.SPACE]: t
|
|
2375
2388
|
};
|
|
2376
2389
|
};
|
|
2377
|
-
function
|
|
2378
|
-
const o = E(a), i = E(e), r = (c,
|
|
2379
|
-
return
|
|
2390
|
+
function Ca(a, e, l, t, s) {
|
|
2391
|
+
const o = E(a), i = E(e), r = (c, m = []) => m.flatMap((p) => p.label.toLocaleLowerCase().includes(c) ? t != null && t.value && p.items ? [...r(c, p.items)] : [p, ...r(c, p.items)] : p.items ? [...r(c, p.items)] : []), v = l !== void 0 ? it(() => l(o.value), s ?? 300) : void 0;
|
|
2392
|
+
return te(o, () => {
|
|
2380
2393
|
v !== void 0 && v();
|
|
2381
2394
|
}), n(() => {
|
|
2382
2395
|
if (!o.value || l !== void 0)
|
|
@@ -2385,7 +2398,7 @@ function ha(a, e, l, t, s) {
|
|
|
2385
2398
|
return r(c, i.value);
|
|
2386
2399
|
});
|
|
2387
2400
|
}
|
|
2388
|
-
const
|
|
2401
|
+
const Oa = {
|
|
2389
2402
|
"de-DE": {
|
|
2390
2403
|
all: "Alle",
|
|
2391
2404
|
ariaLabelFallback: "Dropdown",
|
|
@@ -2436,16 +2449,16 @@ const Sa = {
|
|
|
2436
2449
|
ariaLabelFallback: "下拉菜单",
|
|
2437
2450
|
clearSearch: "清除筛选器"
|
|
2438
2451
|
}
|
|
2439
|
-
},
|
|
2440
|
-
i18n: { messages:
|
|
2452
|
+
}, Ea = U({
|
|
2453
|
+
i18n: { messages: Oa },
|
|
2441
2454
|
name: "b-dropdown",
|
|
2442
2455
|
components: {
|
|
2443
|
-
DropdownInputDefault:
|
|
2444
|
-
DropdownInputSmall:
|
|
2456
|
+
DropdownInputDefault: la,
|
|
2457
|
+
DropdownInputSmall: ya
|
|
2445
2458
|
},
|
|
2446
2459
|
model: { prop: "modelValue" }
|
|
2447
|
-
}),
|
|
2448
|
-
...
|
|
2460
|
+
}), Ia = /* @__PURE__ */ U({
|
|
2461
|
+
...Ea,
|
|
2449
2462
|
props: {
|
|
2450
2463
|
description: { default: null },
|
|
2451
2464
|
disabled: { type: Boolean, default: !1 },
|
|
@@ -2466,7 +2479,7 @@ const Sa = {
|
|
|
2466
2479
|
items: { default: () => [] },
|
|
2467
2480
|
loading: { type: Boolean, default: !1 },
|
|
2468
2481
|
componentLoading: { type: Boolean, default: !1 },
|
|
2469
|
-
lazyLoadType: { default:
|
|
2482
|
+
lazyLoadType: { default: Fe.props.lazyLoadType.default },
|
|
2470
2483
|
multiple: { type: Boolean, default: !1 },
|
|
2471
2484
|
search: { default: void 0 },
|
|
2472
2485
|
showSlotContentInMultiple: { type: Boolean, default: !1 },
|
|
@@ -2480,143 +2493,155 @@ const Sa = {
|
|
|
2480
2493
|
},
|
|
2481
2494
|
emits: ["input", "update:model-value", "show-more", "open"],
|
|
2482
2495
|
setup(a, { expose: e, emit: l }) {
|
|
2483
|
-
var
|
|
2484
|
-
const t = a, s =
|
|
2485
|
-
|
|
2486
|
-
|
|
2487
|
-
|
|
2488
|
-
|
|
2489
|
-
),
|
|
2496
|
+
var F, ce;
|
|
2497
|
+
const t = a, s = Ve(), o = Oe(), i = et(o), { t: r } = de(), { emitValue: v } = mt(l), d = E(null), c = E(null), m = E(null), p = E(!1), f = ne("bento-dropdown-options-container"), h = ne("dropdown-label"), y = ne("dropdown-description"), k = ne("dropdown-error"), { isReadOnly: B } = _t(q(t, "readonly")), b = n(() => t.modelValue ?? t.value), { cachedSelectedListboxOptions: L, cachedListboxSelectedValues: T, setCachedValues: I } = Ml(
|
|
2498
|
+
q(t, "items"),
|
|
2499
|
+
b,
|
|
2500
|
+
q(t, "multiple"),
|
|
2501
|
+
q(t, "enableValueLabelPair")
|
|
2502
|
+
), w = E(s["aria-label"]), N = E(s["aria-describedby"]), { ariaLabel: A, label: g } = Qe(t), S = n(() => r("ariaLabelFallback")), R = vt({
|
|
2490
2503
|
// TODO: take ariaLabel ref away when aria-label prop is removed
|
|
2491
|
-
ariaLabel:
|
|
2492
|
-
label:
|
|
2493
|
-
defaultFallback:
|
|
2494
|
-
}),
|
|
2504
|
+
ariaLabel: A.value || w,
|
|
2505
|
+
label: g,
|
|
2506
|
+
defaultFallback: S
|
|
2507
|
+
}), O = t.size === ge.SMALL || ze(Kl, !1), P = n(() => O ? ge.SMALL : ge.DEFAULT), Q = n(() => ({
|
|
2495
2508
|
"b-dropdown--condensed": t.condensed
|
|
2496
|
-
})),
|
|
2509
|
+
})), le = n(() => ({
|
|
2497
2510
|
"b-dropdown__description--error": !!t.errorMessage
|
|
2498
|
-
})),
|
|
2499
|
-
|
|
2500
|
-
|
|
2501
|
-
(
|
|
2502
|
-
|
|
2503
|
-
(
|
|
2504
|
-
),
|
|
2505
|
-
items:
|
|
2506
|
-
placeholder:
|
|
2507
|
-
isMultiSelect:
|
|
2511
|
+
})), Y = E(""), V = q(t, "items"), ae = q(t, "staticCategories"), pe = Ca(
|
|
2512
|
+
Y,
|
|
2513
|
+
V,
|
|
2514
|
+
(F = t == null ? void 0 : t.search) == null ? void 0 : F.searchEvent,
|
|
2515
|
+
ae,
|
|
2516
|
+
(ce = t == null ? void 0 : t.search) == null ? void 0 : ce.debounceTime
|
|
2517
|
+
), he = n(() => t.dynamicFiltering && !!Y.value), Re = ha({
|
|
2518
|
+
items: V,
|
|
2519
|
+
placeholder: q(t, "placeholder"),
|
|
2520
|
+
isMultiSelect: q(t, "multiple"),
|
|
2508
2521
|
selectedValues: L
|
|
2509
|
-
}),
|
|
2510
|
-
if (t != null && t.multiple && Array.isArray(
|
|
2522
|
+
}), Me = n(() => {
|
|
2523
|
+
if (t != null && t.multiple && Array.isArray(b.value))
|
|
2511
2524
|
return t.items.filter(
|
|
2512
|
-
({ value:
|
|
2525
|
+
({ value: $ }) => (t == null ? void 0 : t.value) && (t == null ? void 0 : t.value).includes($)
|
|
2513
2526
|
);
|
|
2514
2527
|
if (!t.multiple && t.staticCategories) {
|
|
2515
|
-
const
|
|
2516
|
-
(
|
|
2517
|
-
var
|
|
2518
|
-
return (
|
|
2528
|
+
const $ = t.items.find(
|
|
2529
|
+
(X) => {
|
|
2530
|
+
var se;
|
|
2531
|
+
return (se = X.items) == null ? void 0 : se.some((Ae) => Ae.value === b.value);
|
|
2519
2532
|
}
|
|
2520
2533
|
);
|
|
2521
|
-
return (
|
|
2534
|
+
return ($ ? $.items.find((X) => X.value === b.value) : t.items.find(({ value: X }) => X === b.value)) ?? null;
|
|
2522
2535
|
}
|
|
2523
|
-
return t.items.find(({ value:
|
|
2524
|
-
}),
|
|
2525
|
-
const
|
|
2526
|
-
|
|
2527
|
-
|
|
2536
|
+
return t.items.find(({ value: $ }) => $ === b.value);
|
|
2537
|
+
}), fe = n(() => {
|
|
2538
|
+
const j = (H.value ? re.value : pe.value).findIndex(({ value: X }) => {
|
|
2539
|
+
var se;
|
|
2540
|
+
return t.enableValueLabelPair ? ((se = b.value) == null ? void 0 : se.value) === X : b.value === X;
|
|
2541
|
+
});
|
|
2542
|
+
return j > -1 ? j : 0;
|
|
2543
|
+
}), { isMultiLevelSelect: H, flattenedItemsList: re } = nt(V), Se = n(() => H.value && !t.staticCategories), Ee = n(() => Se.value ? "treeitem" : "option"), Ie = n(() => {
|
|
2528
2544
|
if (t.multiple) {
|
|
2529
|
-
const
|
|
2530
|
-
return
|
|
2545
|
+
const $ = Array.isArray(b.value) ? b.value.length : 0, j = H.value ? re.value.length : V.value.length;
|
|
2546
|
+
return $ === 0 ? null : !t.hasMoreItems && j > 0 && j === $ ? r("all") : $;
|
|
2531
2547
|
}
|
|
2532
2548
|
return null;
|
|
2533
|
-
}),
|
|
2549
|
+
}), Le = n(
|
|
2534
2550
|
() => [
|
|
2535
2551
|
t.description ? y : null,
|
|
2536
|
-
|
|
2537
|
-
t.errorMessage ?
|
|
2552
|
+
N.value,
|
|
2553
|
+
t.errorMessage ? k : null
|
|
2538
2554
|
].filter(Boolean).join(" ") || null
|
|
2539
|
-
),
|
|
2540
|
-
var
|
|
2541
|
-
return (
|
|
2542
|
-
}), { visibleDomOptions:
|
|
2543
|
-
|
|
2544
|
-
|
|
2545
|
-
|
|
2546
|
-
),
|
|
2547
|
-
|
|
2548
|
-
|
|
2555
|
+
), be = n(() => {
|
|
2556
|
+
var $;
|
|
2557
|
+
return ($ = m.value) == null ? void 0 : $.$el;
|
|
2558
|
+
}), { visibleDomOptions: xe, updateVisibleDomOptions: ve } = Ue(
|
|
2559
|
+
be,
|
|
2560
|
+
pe,
|
|
2561
|
+
Ee
|
|
2562
|
+
), me = () => {
|
|
2563
|
+
B.value || (p.value = !0, W(() => {
|
|
2564
|
+
ve();
|
|
2549
2565
|
}));
|
|
2550
|
-
},
|
|
2551
|
-
|
|
2552
|
-
},
|
|
2553
|
-
|
|
2554
|
-
|
|
2555
|
-
}),
|
|
2556
|
-
},
|
|
2557
|
-
|
|
2558
|
-
},
|
|
2559
|
-
|
|
2566
|
+
}, _e = () => {
|
|
2567
|
+
p.value = !1;
|
|
2568
|
+
}, Ce = () => {
|
|
2569
|
+
B.value || (p.value = !p.value, W(() => {
|
|
2570
|
+
ve();
|
|
2571
|
+
}), he.value && (Y.value = ""));
|
|
2572
|
+
}, Te = () => {
|
|
2573
|
+
he.value && (Y.value = ""), p.value && (p.value = !1, m.value.onOutsideDropdownClick());
|
|
2574
|
+
}, Ne = n(() => [
|
|
2575
|
+
Te,
|
|
2560
2576
|
{
|
|
2561
|
-
ignore: [
|
|
2577
|
+
ignore: [be]
|
|
2562
2578
|
}
|
|
2563
|
-
]),
|
|
2564
|
-
t.multiple || (
|
|
2579
|
+
]), we = async ($) => {
|
|
2580
|
+
t.multiple || (Y.value = "", p.value = !1), I($), v(T.value), t.multiple || (await W(), M());
|
|
2565
2581
|
}, _ = () => {
|
|
2566
|
-
l(
|
|
2567
|
-
},
|
|
2582
|
+
l(u.SHOW_MORE);
|
|
2583
|
+
}, x = Sa(
|
|
2568
2584
|
{
|
|
2569
|
-
inputContainerRef:
|
|
2570
|
-
optionsContainerRef:
|
|
2571
|
-
selectedValueIndex:
|
|
2572
|
-
isDropdownOpen:
|
|
2573
|
-
isDynamicFltering:
|
|
2574
|
-
items:
|
|
2585
|
+
inputContainerRef: d,
|
|
2586
|
+
optionsContainerRef: m,
|
|
2587
|
+
selectedValueIndex: fe,
|
|
2588
|
+
isDropdownOpen: p,
|
|
2589
|
+
isDynamicFltering: q(t, "dynamicFiltering"),
|
|
2590
|
+
items: xe,
|
|
2575
2591
|
isMultiple: t.multiple,
|
|
2576
|
-
totalItemCount: n(() =>
|
|
2592
|
+
totalItemCount: n(() => pe.value.length),
|
|
2577
2593
|
isVirtualScroll: !(t != null && t.multiple) && (t == null ? void 0 : t.virtualScroll) !== !1 && (t == null ? void 0 : t.lazyLoadType) === "none"
|
|
2578
2594
|
},
|
|
2579
|
-
|
|
2580
|
-
|
|
2581
|
-
|
|
2582
|
-
),
|
|
2595
|
+
Ce,
|
|
2596
|
+
me,
|
|
2597
|
+
_e
|
|
2598
|
+
), C = xa(
|
|
2583
2599
|
{
|
|
2584
|
-
inputContainerRef:
|
|
2585
|
-
isDropdownOpen:
|
|
2600
|
+
inputContainerRef: d,
|
|
2601
|
+
isDropdownOpen: p
|
|
2586
2602
|
},
|
|
2587
|
-
|
|
2588
|
-
),
|
|
2589
|
-
[
|
|
2590
|
-
[
|
|
2591
|
-
[
|
|
2592
|
-
...
|
|
2603
|
+
_e
|
|
2604
|
+
), D = {
|
|
2605
|
+
[u.CLOSE_DROPDOWN]: _e,
|
|
2606
|
+
[u.SELECT]: we,
|
|
2607
|
+
[u.SHOW_MORE]: _,
|
|
2608
|
+
...C
|
|
2593
2609
|
};
|
|
2594
|
-
t.error &&
|
|
2610
|
+
t.error && $e(
|
|
2595
2611
|
'BentoDropdown "error" property',
|
|
2596
2612
|
`Use the BentoDropdown "errorMessage" property instead to indicate that there is a modifier error.
|
|
2597
2613
|
Having the field as "undefined" will hide/remove the error.
|
|
2598
2614
|
<bento-dropdown errorMessage="Error message text" />`,
|
|
2599
2615
|
"2.0.0"
|
|
2600
|
-
), t.size &&
|
|
2616
|
+
), t.size && $e('BentoDropdown "size" property', "Do not use. Only 'default' size should be used.", "2.0.0"), t.value && $e(
|
|
2601
2617
|
'BentoDropdown "value" property',
|
|
2602
2618
|
`The use of "value" prop in "BentoDropdown" is no longer supported.
|
|
2603
2619
|
Use the "v-model" or "model-value" property instead.`,
|
|
2604
2620
|
"2.0.0"
|
|
2605
2621
|
);
|
|
2606
|
-
const
|
|
2607
|
-
|
|
2622
|
+
const M = () => {
|
|
2623
|
+
d.value.focus();
|
|
2624
|
+
}, J = async () => {
|
|
2625
|
+
var X, se, Ae, Ke, qe;
|
|
2626
|
+
if (await W(), !p.value || t.multiple || !m.value)
|
|
2627
|
+
return;
|
|
2628
|
+
const $ = fe.value;
|
|
2629
|
+
if ($ <= 0)
|
|
2630
|
+
return;
|
|
2631
|
+
const j = (Ke = (Ae = (se = (X = m.value) == null ? void 0 : X.$refs) == null ? void 0 : se.dropdownOptionsListboxRef) == null ? void 0 : Ae.$refs) == null ? void 0 : Ke.listboxItemRef;
|
|
2632
|
+
(qe = j == null ? void 0 : j.scrollToItem) == null || qe.call(j, $);
|
|
2608
2633
|
};
|
|
2609
|
-
return
|
|
2610
|
-
() =>
|
|
2611
|
-
(
|
|
2612
|
-
|
|
2634
|
+
return te(
|
|
2635
|
+
() => p.value,
|
|
2636
|
+
($) => {
|
|
2637
|
+
$ && (l("open"), J());
|
|
2613
2638
|
}
|
|
2614
2639
|
), e({
|
|
2615
|
-
focus:
|
|
2616
|
-
}), { __sfc: !0, attrs: s, slots: o, hasSlot: i, props: t, emit: l, t: r, emitValue: v, inputContainerRef:
|
|
2640
|
+
focus: M
|
|
2641
|
+
}), { __sfc: !0, attrs: s, slots: o, hasSlot: i, props: t, emit: l, t: r, emitValue: v, inputContainerRef: d, inputContainerRefWrapper: c, optionsContainerRef: m, isDropdownOpen: p, dropdownOptionsContainerId: f, labelId: h, descriptionId: y, errorId: k, isReadOnly: B, dropdownValue: b, cachedSelectedListboxOptions: L, cachedListboxSelectedValues: T, setCachedValues: I, ariaLabelAttribute: w, ariaDescribedByAttribute: N, ariaLabel: A, label: g, computedAriaLabelFallbackMessage: S, computedAriaLabel: R, isInputComponent: O, computedSize: P, conditionalClasses: Q, descriptionConditionalClasses: le, searchTerm: Y, items: V, staticCategories: ae, filteredItems: pe, isSearching: he, displayValue: Re, selectedValueItem: Me, selectedValueIndex: fe, isMultiLevelSelect: H, flattenedItemsList: re, isTreePattern: Se, computedOptionRole: Ee, additionalItemsSelected: Ie, ariaDescribedBy: Le, listboxRef: be, visibleDomOptions: xe, updateVisibleDomOptions: ve, openDropdown: me, closeDropdown: _e, toggleDropdown: Ce, clickOutsideDropdown: Te, clickOutsideDropdownOptions: Ne, onOptionSelected: we, emitShowMoreEvent: _, textboxKeyboardNavigationListeners: x, listboxKeyboardNavigationListeners: C, listboxListeners: D, focus: M, scrollToSelectedOption: J, BentoDropdownOptionsContainer: Gl, BentoTypography: ie, ErrorMessage: wt, FieldLabel: Tt, BentoTeleport: It, vBentoClickOutsideDirective: Lt, vBentoKeyboardNavigationDirective: ke };
|
|
2617
2642
|
}
|
|
2618
2643
|
});
|
|
2619
|
-
var
|
|
2644
|
+
var La = function() {
|
|
2620
2645
|
var s, o;
|
|
2621
2646
|
var e = this, l = e._self._c, t = e._self._setupProxy;
|
|
2622
2647
|
return l("div", { directives: [{ name: "bento-click-outside-directive", rawName: "v-bento-click-outside-directive", value: t.clickOutsideDropdownOptions, expression: "clickOutsideDropdownOptions" }], staticClass: "b-dropdown", class: t.conditionalClasses }, [t.label ? l(t.FieldLabel, { attrs: { id: t.labelId, condensed: e.condensed, label: t.label, "tooltip-text": e.tooltipText, optional: e.optional, required: e.required } }) : e._e(), l("div", e._g({ directives: [{ name: "bento-keyboard-navigation-directive", rawName: "v-bento-keyboard-navigation-directive" }], ref: "inputContainerRefWrapper" }, t.textboxKeyboardNavigationListeners), [l(t.computedSize, { ref: "inputContainerRef", tag: "component", attrs: { condensed: e.condensed, value: t.searchTerm, "additional-items-selected": t.additionalItemsSelected, "aria-controls": t.dropdownOptionsContainerId, ariaExpanded: t.isDropdownOpen, "aria-labelledby": t.label ? t.labelId : null, "aria-describedby": t.ariaDescribedBy, "aria-label": t.computedAriaLabel, "aria-readonly": t.isReadOnly, "aria-required": e.required, readonly: t.isReadOnly, disabled: e.disabled, "display-value": t.displayValue, "dynamic-filtering": e.dynamicFiltering, "is-invalid": !!e.errorMessage || e.error, multiple: e.multiple, open: t.isDropdownOpen, "selected-value-item": t.isInputComponent ? void 0 : t.selectedValueItem, "show-slot-content-in-multiple": e.showSlotContentInMultiple }, on: { input: function(i) {
|
|
@@ -2632,29 +2657,29 @@ var Oa = function() {
|
|
|
2632
2657
|
})], null, !0) }, t.listboxListeners))], 1) : e._e(), e.errorMessage ? l(t.ErrorMessage, { staticClass: "b-dropdown__error-message", attrs: { id: t.errorId, "error-message": e.errorMessage } }) : e._e(), e.description || t.hasSlot("description") ? l(t.BentoTypography, { staticClass: "b-dropdown__description", class: t.descriptionConditionalClasses, attrs: { id: t.descriptionId, el: "span" } }, [e._t("description", function() {
|
|
2633
2658
|
return [e._v(" " + e._s(e.description) + " ")];
|
|
2634
2659
|
})], 2) : e._e()], 1);
|
|
2635
|
-
},
|
|
2636
|
-
|
|
2637
|
-
|
|
2638
|
-
|
|
2660
|
+
}, Ta = [], wa = /* @__PURE__ */ G(
|
|
2661
|
+
Ia,
|
|
2662
|
+
La,
|
|
2663
|
+
Ta,
|
|
2639
2664
|
!1,
|
|
2640
2665
|
null,
|
|
2641
|
-
"
|
|
2666
|
+
"586fe267"
|
|
2642
2667
|
);
|
|
2643
|
-
const
|
|
2668
|
+
const ss = wa.exports;
|
|
2644
2669
|
export {
|
|
2645
|
-
|
|
2646
|
-
|
|
2647
|
-
|
|
2648
|
-
|
|
2649
|
-
|
|
2650
|
-
|
|
2651
|
-
|
|
2652
|
-
|
|
2653
|
-
|
|
2654
|
-
|
|
2655
|
-
|
|
2656
|
-
|
|
2657
|
-
|
|
2658
|
-
|
|
2670
|
+
ss as B,
|
|
2671
|
+
Kt as C,
|
|
2672
|
+
la as D,
|
|
2673
|
+
u as a,
|
|
2674
|
+
oe as b,
|
|
2675
|
+
ge as c,
|
|
2676
|
+
Fe as d,
|
|
2677
|
+
nt as e,
|
|
2678
|
+
Ca as f,
|
|
2679
|
+
it as g,
|
|
2680
|
+
Kl as h,
|
|
2681
|
+
rt as i,
|
|
2682
|
+
Ge as j,
|
|
2683
|
+
Ml as u
|
|
2659
2684
|
};
|
|
2660
|
-
//# sourceMappingURL=dropdown.
|
|
2685
|
+
//# sourceMappingURL=dropdown.NTGSuWAw.js.map
|