@adyen/bento-vue3 1.94.0 → 1.95.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/components.d.ts +2 -0
- package/dist/@types/index.d.ts +6 -9
- 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/card.css +1 -1
- package/dist/assets/dashed-underline.css +1 -1
- package/dist/assets/data-grid.css +1 -1
- package/dist/assets/date-picker.css +1 -1
- package/dist/assets/date-range-picker.css +1 -1
- package/dist/assets/date-time-picker.css +1 -0
- package/dist/assets/dialog-page.css +1 -1
- package/dist/assets/dropdown.css +1 -1
- package/dist/assets/file-uploader.css +1 -1
- package/dist/assets/form-layout-group.css +1 -0
- package/dist/assets/form-layout-title.css +1 -1
- package/dist/assets/header-meta.css +1 -1
- package/dist/assets/input-field.css +1 -1
- package/dist/assets/inspector.css +1 -1
- package/dist/assets/modal-fullscreen.css +1 -1
- package/dist/assets/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.jhGXgcQl.js → action-bar.CIVprT2U.js} +4 -4
- package/dist/chunks/{action-bar.jhGXgcQl.js.map → action-bar.CIVprT2U.js.map} +1 -1
- package/dist/chunks/{ai-tag.DIdhvkaT.js → ai-tag.DkTlRY__.js} +2 -2
- package/dist/chunks/{ai-tag.DIdhvkaT.js.map → ai-tag.DkTlRY__.js.map} +1 -1
- package/dist/chunks/{anchor-scroller.BhppCt1n.js → anchor-scroller.J2mkf0uu.js} +5 -5
- package/dist/chunks/{anchor-scroller.BhppCt1n.js.map → anchor-scroller.J2mkf0uu.js.map} +1 -1
- package/dist/chunks/{base-modal.DxjZyGlG.js → base-modal.BKtpH-qh.js} +6 -6
- package/dist/chunks/{base-modal.DxjZyGlG.js.map → base-modal.BKtpH-qh.js.map} +1 -1
- package/dist/chunks/{button-actions-with-menu.DJzCF9ja.js → button-actions-with-menu.cMAAF47d.js} +3 -3
- package/dist/chunks/{button-actions-with-menu.DJzCF9ja.js.map → button-actions-with-menu.cMAAF47d.js.map} +1 -1
- package/dist/chunks/{button-actions.uco5ptf5.js → button-actions.CxTxPprd.js} +2 -2
- package/dist/chunks/{button-actions.uco5ptf5.js.map → button-actions.CxTxPprd.js.map} +1 -1
- package/dist/chunks/{calendar.D8CM3XkW.js → calendar.74nP7Nu6.js} +18 -18
- package/dist/chunks/{calendar.D8CM3XkW.js.map → calendar.74nP7Nu6.js.map} +1 -1
- package/dist/chunks/{card.CWzJewQv.js → card.CQlyqa5-.js} +2 -2
- package/dist/chunks/{card.CWzJewQv.js.map → card.CQlyqa5-.js.map} +1 -1
- package/dist/chunks/{checkbox-group.Bq6PsVI_.js → checkbox-group.BWx4wn0F.js} +3 -3
- package/dist/chunks/{checkbox-group.Bq6PsVI_.js.map → checkbox-group.BWx4wn0F.js.map} +1 -1
- package/dist/chunks/{checkbox.DreTXMg0.js → checkbox.DwfrmbwI.js} +18 -18
- package/dist/chunks/{checkbox.DreTXMg0.js.map → checkbox.DwfrmbwI.js.map} +1 -1
- package/dist/chunks/{code-snippet.CGOmdPc-.js → code-snippet.B9QFjFXf.js} +4 -4
- package/dist/chunks/{code-snippet.CGOmdPc-.js.map → code-snippet.B9QFjFXf.js.map} +1 -1
- package/dist/chunks/{controls-group.D4MEP6GO.js → controls-group.B-wIl-I7.js} +2 -2
- package/dist/chunks/{controls-group.D4MEP6GO.js.map → controls-group.B-wIl-I7.js.map} +1 -1
- package/dist/chunks/{copy.Dxqx884r.js → copy.XM_7RiIR.js} +3 -3
- package/dist/chunks/{copy.Dxqx884r.js.map → copy.XM_7RiIR.js.map} +1 -1
- package/dist/chunks/{dashboard-section.NWMwtxVX.js → dashboard-section.C4plNql-.js} +4 -4
- package/dist/chunks/{dashboard-section.NWMwtxVX.js.map → dashboard-section.C4plNql-.js.map} +1 -1
- package/dist/chunks/dashed-underline.DJmMXcdt.js +85 -0
- package/dist/chunks/dashed-underline.DJmMXcdt.js.map +1 -0
- package/dist/chunks/{data-grid-template.Bf-VZS0u.js → data-grid-template.Bwxo0AII.js} +4 -4
- package/dist/chunks/{data-grid-template.Bf-VZS0u.js.map → data-grid-template.Bwxo0AII.js.map} +1 -1
- package/dist/chunks/{data-grid.D_TrebJz.js → data-grid.Bx3Xy1tb.js} +884 -881
- package/dist/chunks/{data-grid.D_TrebJz.js.map → data-grid.Bx3Xy1tb.js.map} +1 -1
- package/dist/chunks/date-picker.89J8PGKn.js +277 -0
- package/dist/chunks/date-picker.89J8PGKn.js.map +1 -0
- package/dist/chunks/{date-range-picker.C5CSReZ5.js → date-range-picker.iaXigXuW.js} +428 -447
- package/dist/chunks/date-range-picker.iaXigXuW.js.map +1 -0
- package/dist/chunks/{dialog-page.CZN5-Ohm.js → dialog-page.BOwnhJze.js} +2 -2
- package/dist/chunks/{dialog-page.CZN5-Ohm.js.map → dialog-page.BOwnhJze.js.map} +1 -1
- package/dist/chunks/directive.D1-d-C2K.js +28 -0
- package/dist/chunks/directive.D1-d-C2K.js.map +1 -0
- package/dist/chunks/{draggable-handle.B_E-T3BS.js → draggable-handle.CKuHzAzS.js} +3 -3
- package/dist/chunks/{draggable-handle.B_E-T3BS.js.map → draggable-handle.CKuHzAzS.js.map} +1 -1
- package/dist/chunks/drawer.BQoyUVOW.js +64 -0
- package/dist/chunks/{drawer.GXqb2HPx.js.map → drawer.BQoyUVOW.js.map} +1 -1
- package/dist/chunks/{dropdown-tag.DUDW-Be6.js → dropdown-tag.DNWUbf7x.js} +3 -3
- package/dist/chunks/{dropdown-tag.DUDW-Be6.js.map → dropdown-tag.DNWUbf7x.js.map} +1 -1
- package/dist/chunks/{dropdown.Bsic3Nll.js → dropdown.CK8cdMyV.js} +458 -457
- package/dist/chunks/dropdown.CK8cdMyV.js.map +1 -0
- package/dist/chunks/{field-label.DFtyMriH.js → field-label.CLV3nSzz.js} +2 -2
- package/dist/chunks/{field-label.DFtyMriH.js.map → field-label.CLV3nSzz.js.map} +1 -1
- package/dist/chunks/{file-uploader.CKo27YzT.js → file-uploader.C9YOBRQg.js} +39 -38
- package/dist/chunks/{file-uploader.CKo27YzT.js.map → file-uploader.C9YOBRQg.js.map} +1 -1
- package/dist/chunks/{filter-bar.Dhghqmhb.js → filter-bar.CqbdRCQD.js} +21 -21
- package/dist/chunks/{filter-bar.Dhghqmhb.js.map → filter-bar.CqbdRCQD.js.map} +1 -1
- package/dist/chunks/{focus-trap.DcxrXRKl.js → focus-trap.Dl_rHbwH.js} +2 -2
- package/dist/chunks/{focus-trap.DcxrXRKl.js.map → focus-trap.Dl_rHbwH.js.map} +1 -1
- package/dist/chunks/{footer-actions.Dyi8PTyI.js → footer-actions.zlKq74F1.js} +2 -2
- package/dist/chunks/{footer-actions.Dyi8PTyI.js.map → footer-actions.zlKq74F1.js.map} +1 -1
- package/dist/chunks/form-layout-group.08QuvVmC.js +81 -0
- package/dist/chunks/form-layout-group.08QuvVmC.js.map +1 -0
- package/dist/chunks/form-layout-title.Kwve4xv2.js +179 -0
- package/dist/chunks/form-layout-title.Kwve4xv2.js.map +1 -0
- package/dist/chunks/header-meta.NFZo1ACP.js +243 -0
- package/dist/chunks/{header-meta.I2Tztkls.js.map → header-meta.NFZo1ACP.js.map} +1 -1
- package/dist/chunks/{header-with-views.MPJPxTzT.js → header-with-views.CB8M1Udi.js} +10 -10
- package/dist/chunks/{header-with-views.MPJPxTzT.js.map → header-with-views.CB8M1Udi.js.map} +1 -1
- package/dist/chunks/{header.CBzF5Ap9.js → header.Ds0sFKBB.js} +3 -3
- package/dist/chunks/{header.CBzF5Ap9.js.map → header.Ds0sFKBB.js.map} +1 -1
- package/dist/chunks/{index.Cqv1XuTj.js → index.oOAkh64h.js} +248 -225
- package/dist/chunks/{index.Cqv1XuTj.js.map → index.oOAkh64h.js.map} +1 -1
- package/dist/chunks/{info-icon.C_ZkQb1d.js → info-icon.1FtkyuYH.js} +3 -3
- package/dist/chunks/{info-icon.C_ZkQb1d.js.map → info-icon.1FtkyuYH.js.map} +1 -1
- package/dist/chunks/{input-field-password.CA16O5Gv.js → input-field-password.DJKloBB3.js} +24 -25
- package/dist/chunks/{input-field-password.CA16O5Gv.js.map → input-field-password.DJKloBB3.js.map} +1 -1
- package/dist/chunks/{input-field-phone-number.CTeDyk0e.js → input-field-phone-number.C3fQypln.js} +13 -14
- package/dist/chunks/{input-field-phone-number.CTeDyk0e.js.map → input-field-phone-number.C3fQypln.js.map} +1 -1
- package/dist/chunks/{input-field.DlEEFday.js → input-field.HgrRdDec.js} +104 -101
- package/dist/chunks/input-field.HgrRdDec.js.map +1 -0
- package/dist/chunks/{input-time.CIdcQBgS.js → input-time.DxCYIHSf.js} +7 -8
- package/dist/chunks/{input-time.CIdcQBgS.js.map → input-time.DxCYIHSf.js.map} +1 -1
- package/dist/chunks/{inspector.BdPLtQ1t.js → inspector.BvBC1ABK.js} +3 -3
- package/dist/chunks/{inspector.BdPLtQ1t.js.map → inspector.BvBC1ABK.js.map} +1 -1
- package/dist/chunks/{layout-row.PGFh3qzc.js → layout-row.BsGdHl3d.js} +8 -8
- package/dist/chunks/{layout-row.PGFh3qzc.js.map → layout-row.BsGdHl3d.js.map} +1 -1
- package/dist/chunks/{list-item.D34osEIh.js → list-item.E1o7yuEB.js} +2 -2
- package/dist/chunks/{list-item.D34osEIh.js.map → list-item.E1o7yuEB.js.map} +1 -1
- package/dist/chunks/{listbox-option-tag.12duL_ZH.js → listbox-option-tag.yF6p9iQw.js} +2 -2
- package/dist/chunks/{listbox-option-tag.12duL_ZH.js.map → listbox-option-tag.yF6p9iQw.js.map} +1 -1
- package/dist/chunks/{modal-fullscreen.BGpyGUGB.js → modal-fullscreen.DmruiE3n.js} +4 -4
- package/dist/chunks/{modal-fullscreen.BGpyGUGB.js.map → modal-fullscreen.DmruiE3n.js.map} +1 -1
- package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.B_CD-6Sn.js → modal.vue_vue_type_script_setup_true_lang.CrJQWuzb.js} +4 -4
- package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.B_CD-6Sn.js.map → modal.vue_vue_type_script_setup_true_lang.CrJQWuzb.js.map} +1 -1
- package/dist/chunks/navigation-menu-group.CQ6ImGsJ.js +336 -0
- package/dist/chunks/navigation-menu-group.CQ6ImGsJ.js.map +1 -0
- package/dist/chunks/{pagination.CbGLdXSQ.js → pagination.vqSlDmeK.js} +2 -2
- package/dist/chunks/{pagination.CbGLdXSQ.js.map → pagination.vqSlDmeK.js.map} +1 -1
- package/dist/chunks/popover.types.DATOPtuh.js +6 -0
- package/dist/chunks/{popover.types.63w2RF7Y.js.map → popover.types.DATOPtuh.js.map} +1 -1
- package/dist/chunks/{popper-container.WR8Hb24e.js → popper-container.BH4WxeUj.js} +2 -2
- package/dist/chunks/{popper-container.WR8Hb24e.js.map → popper-container.BH4WxeUj.js.map} +1 -1
- package/dist/chunks/{promo-banner.DS8jlFES.js → promo-banner.DvV9eXs4.js} +2 -2
- package/dist/chunks/{promo-banner.DS8jlFES.js.map → promo-banner.DvV9eXs4.js.map} +1 -1
- package/dist/chunks/{radio-group.DpLQ_Wnj.js → radio-group.Cg67ZU0c.js} +3 -3
- package/dist/chunks/{radio-group.DpLQ_Wnj.js.map → radio-group.Cg67ZU0c.js.map} +1 -1
- package/dist/chunks/{rich-text-editor.CRa59ETT.js → rich-text-editor.u_fKHVgZ.js} +4 -4
- package/dist/chunks/{rich-text-editor.CRa59ETT.js.map → rich-text-editor.u_fKHVgZ.js.map} +1 -1
- package/dist/chunks/{search-bar.tmX9JctT.js → search-bar.CgSUD89l.js} +5 -6
- package/dist/chunks/{search-bar.tmX9JctT.js.map → search-bar.CgSUD89l.js.map} +1 -1
- package/dist/chunks/{secondary-nav.KIu9A7pb.js → secondary-nav.BqqNrHZE.js} +20 -20
- package/dist/chunks/{secondary-nav.KIu9A7pb.js.map → secondary-nav.BqqNrHZE.js.map} +1 -1
- package/dist/chunks/{segmented-control.Dxfpt98K.js → segmented-control.D6Yvxxpc.js} +2 -2
- package/dist/chunks/{segmented-control.Dxfpt98K.js.map → segmented-control.D6Yvxxpc.js.map} +1 -1
- package/dist/chunks/{selection-card-group.BVxESHZH.js → selection-card-group.C2Av3uyz.js} +11 -11
- package/dist/chunks/{selection-card-group.BVxESHZH.js.map → selection-card-group.C2Av3uyz.js.map} +1 -1
- package/dist/chunks/set-time-in-date.9-8WOiMT.js +27 -0
- package/dist/chunks/set-time-in-date.9-8WOiMT.js.map +1 -0
- package/dist/chunks/{sidepanel.BwesEWP_.js → sidepanel.BVQt6Tac.js} +6 -6
- package/dist/chunks/{sidepanel.BwesEWP_.js.map → sidepanel.BVQt6Tac.js.map} +1 -1
- package/dist/chunks/{structured-list-item.DUWQ4ggz.js → structured-list-item.BhYtSw2f.js} +4 -4
- package/dist/chunks/{structured-list-item.DUWQ4ggz.js.map → structured-list-item.BhYtSw2f.js.map} +1 -1
- package/dist/chunks/{summary-grid.types.BvZUfgwA.js → summary-grid.types.9sUs0LS0.js} +5 -5
- package/dist/chunks/{summary-grid.types.BvZUfgwA.js.map → summary-grid.types.9sUs0LS0.js.map} +1 -1
- package/dist/chunks/{tab.DKVHFvuI.js → tab.DWoYKpTv.js} +2 -2
- package/dist/chunks/{tab.DKVHFvuI.js.map → tab.DWoYKpTv.js.map} +1 -1
- package/dist/chunks/{tag.DyNHhsGt.js → tag.Uu-6AQys.js} +2 -2
- package/dist/chunks/{tag.DyNHhsGt.js.map → tag.Uu-6AQys.js.map} +1 -1
- package/dist/chunks/{textarea.DNeZr2IZ.js → textarea.QgSLPL7S.js} +2 -2
- package/dist/chunks/{textarea.DNeZr2IZ.js.map → textarea.QgSLPL7S.js.map} +1 -1
- package/dist/chunks/{timeline-item.CfA1E0zq.js → timeline-item.DfwOm5do.js} +6 -6
- package/dist/chunks/{timeline-item.CfA1E0zq.js.map → timeline-item.DfwOm5do.js.map} +1 -1
- package/dist/chunks/{tooltip.CuwiX213.js → tooltip.Djn54E1O.js} +3 -3
- package/dist/chunks/{tooltip.CuwiX213.js.map → tooltip.Djn54E1O.js.map} +1 -1
- package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.4vdcgS4f.js → tutorial.vue_vue_type_script_setup_true_lang.B5-sWGlz.js} +4 -4
- package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.4vdcgS4f.js.map → tutorial.vue_vue_type_script_setup_true_lang.B5-sWGlz.js.map} +1 -1
- package/dist/chunks/use-bento-delayed-hover.Csc3nIWt.js +30 -0
- package/dist/chunks/use-bento-delayed-hover.Csc3nIWt.js.map +1 -0
- package/dist/chunks/{use-cached-selected-values.C2nbQ4g-.js → use-cached-selected-values.CtWNiy-e.js} +2 -2
- package/dist/chunks/{use-cached-selected-values.C2nbQ4g-.js.map → use-cached-selected-values.CtWNiy-e.js.map} +1 -1
- package/dist/chunks/{use-date-input-formatter.DaBZd09a.js → use-date-input-formatter.BshboCF9.js} +2 -2
- package/dist/chunks/{use-date-input-formatter.DaBZd09a.js.map → use-date-input-formatter.BshboCF9.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 +123 -0
- package/dist/date-time-picker.js.map +1 -0
- package/dist/draggable.js +1 -1
- package/dist/drawer.js +1 -1
- package/dist/dropdown.js +3 -3
- package/dist/file-uploader.js +1 -1
- package/dist/filter-bar.js +1 -1
- package/dist/focus-trap.js +1 -1
- package/dist/form-layout.js +5 -4
- package/dist/form-layout.js.map +1 -1
- package/dist/header-with-views.js +1 -1
- package/dist/header.js +1 -1
- package/dist/index.js +217 -216
- 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 +1 -1
- package/package.json +6 -6
- package/dist/chunks/dashed-underline.DojqhvAa.js +0 -108
- package/dist/chunks/dashed-underline.DojqhvAa.js.map +0 -1
- package/dist/chunks/date-picker.DUUGSbot.js +0 -269
- package/dist/chunks/date-picker.DUUGSbot.js.map +0 -1
- package/dist/chunks/date-range-picker.C5CSReZ5.js.map +0 -1
- package/dist/chunks/directive.C8kY-ZW-.js +0 -23
- package/dist/chunks/directive.C8kY-ZW-.js.map +0 -1
- package/dist/chunks/drawer.GXqb2HPx.js +0 -55
- package/dist/chunks/dropdown.Bsic3Nll.js.map +0 -1
- package/dist/chunks/form-layout-title.B712PesH.js +0 -253
- package/dist/chunks/form-layout-title.B712PesH.js.map +0 -1
- package/dist/chunks/header-meta.I2Tztkls.js +0 -259
- package/dist/chunks/input-field.DlEEFday.js.map +0 -1
- package/dist/chunks/navigation-menu-group.D5HMMAuh.js +0 -320
- package/dist/chunks/navigation-menu-group.D5HMMAuh.js.map +0 -1
- package/dist/chunks/popover.types.63w2RF7Y.js +0 -6
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import { ref as
|
|
1
|
+
import { ref as D, watch as ve, computed as d, defineComponent as _, useSlots as he, toRefs as _e, openBlock as b, createBlock as H, resolveDynamicComponent as Pe, mergeProps as A, withCtx as W, createElementVNode as ie, withKeys as re, unref as o, createVNode as Y, toHandlers as de, createSlots as be, renderList as ue, renderSlot as U, normalizeProps as oe, guardReactiveProps as ye, createCommentVNode as R, useAttrs as Ve, inject as Ie, nextTick as F, createElementBlock as C, normalizeClass as ne, Fragment as Ee, createTextVNode as fe, toDisplayString as Q, withModifiers as $e, withDirectives as se, vShow as me, toRef as z } from "vue";
|
|
2
2
|
import { B as Ke, d as xe } from "./typography.B3J6_tYk.js";
|
|
3
|
-
import { g as
|
|
3
|
+
import { g as te } from "./generate-uid.DBWe4g6T.js";
|
|
4
|
+
import { u as bt } from "./aria-label.CaUURpnB.js";
|
|
4
5
|
import { u as ge } from "./index.B875RXHM.js";
|
|
5
|
-
import { u as
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
6
|
+
import { u as yt } from "./form-field.D_2g7vaP.js";
|
|
7
|
+
import { B as S, b as Oe, a as Me, d as mt, u as vt, c as ht, e as gt } from "./use-cached-selected-values.CtWNiy-e.js";
|
|
8
|
+
import { u as St } from "./use-form-layout-loading.CWbjZiwP.js";
|
|
9
|
+
import { u as qe } from "./use-has-slot.CyMiImRQ.js";
|
|
10
|
+
import { B as wt } from "./directive.D1-d-C2K.js";
|
|
11
|
+
import { B as j, a as Lt } from "./keyboard-navigation.DWmhelVv.js";
|
|
12
|
+
import { F as Ct } from "./field-label.CLV3nSzz.js";
|
|
13
|
+
import { P as Ne } from "./popper-container.BH4WxeUj.js";
|
|
14
|
+
import { h as Et } from "./button-actions.CxTxPprd.js";
|
|
15
|
+
import { _ as ee } from "./_plugin-vue_export-helper.CHgC5LLL.js";
|
|
16
|
+
import { E as xt } from "./error-message.Dyvrw6ZB.js";
|
|
17
|
+
import { C as Ot } from "./cross-circle-fill.BWCKKn0E.js";
|
|
18
|
+
import { C as It } from "./cross-circle-fill-small.H1wH-vcZ.js";
|
|
12
19
|
/* empty css */
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import { u as Ct } from "./use-form-layout-loading.CWbjZiwP.js";
|
|
17
|
-
import { B as Et } from "./directive.C8kY-ZW-.js";
|
|
18
|
-
import { B as W, a as xt } from "./keyboard-navigation.DWmhelVv.js";
|
|
19
|
-
import { F as It } from "./field-label.DFtyMriH.js";
|
|
20
|
-
import { P as Me } from "./popper-container.WR8Hb24e.js";
|
|
21
|
-
import { h as Ot } from "./button-actions.uco5ptf5.js";
|
|
22
|
-
import { E as Dt } from "./error-message.Dyvrw6ZB.js";
|
|
20
|
+
import { s as ae } from "./events.BQOQSSb7.js";
|
|
21
|
+
import { C as Dt } from "./chevron-down.XeE-LBV_.js";
|
|
22
|
+
import { C as Bt } from "./chevron-up.Cmgl2a3x.js";
|
|
23
23
|
import "../assets/dropdown.css";
|
|
24
|
-
var
|
|
25
|
-
const
|
|
24
|
+
var le = /* @__PURE__ */ ((e) => (e.DEFAULT = "DropdownInputDefault", e.SMALL = "DropdownInputSmall", e))(le || {});
|
|
25
|
+
const De = {
|
|
26
26
|
"de-DE": { apply: "Anwenden", cancel: "Abbrechen", noOptionsMatchThisSearch: "Für diese Suche wurden keine Ergebnisse gefunden." },
|
|
27
27
|
"en-GB": { apply: "Apply", cancel: "Cancel", noOptionsMatchThisSearch: "No options match this search" },
|
|
28
28
|
"en-US": { apply: "Apply", cancel: "Cancel", noOptionsMatchThisSearch: "No options match this search" },
|
|
@@ -33,20 +33,20 @@ const Oe = {
|
|
|
33
33
|
"ja-JP": { apply: "適用", cancel: "キャンセル", noOptionsMatchThisSearch: "この検索に一致するオプションはありません" },
|
|
34
34
|
"pt-BR": { apply: "Aplicar", cancel: "Cancelar", noOptionsMatchThisSearch: "Nenhuma opção corresponde a esta busca" },
|
|
35
35
|
"zh-CN": { apply: "应用", cancel: "取消", noOptionsMatchThisSearch: "没有符合此搜索条件的选项" }
|
|
36
|
-
},
|
|
37
|
-
const i =
|
|
36
|
+
}, At = (e, c, u, l) => {
|
|
37
|
+
const i = D(e.value), { t: n } = ge({ messages: De });
|
|
38
38
|
ve(e, () => {
|
|
39
39
|
i.value = e.value;
|
|
40
40
|
});
|
|
41
|
-
const t =
|
|
41
|
+
const t = d(
|
|
42
42
|
() => JSON.stringify(i.value) === JSON.stringify(e.value)
|
|
43
43
|
), a = () => {
|
|
44
|
-
l(
|
|
45
|
-
},
|
|
46
|
-
i.value = e.value, l(
|
|
47
|
-
},
|
|
48
|
-
|
|
49
|
-
}, p =
|
|
44
|
+
l(S.SELECT, i.value), l(S.CLOSE_DROPDOWN);
|
|
45
|
+
}, m = () => {
|
|
46
|
+
i.value = e.value, l(S.CLOSE_DROPDOWN);
|
|
47
|
+
}, w = () => {
|
|
48
|
+
u.value && c.value && (i.value = e.value);
|
|
49
|
+
}, p = d(() => [
|
|
50
50
|
{
|
|
51
51
|
title: n("apply"),
|
|
52
52
|
event: a,
|
|
@@ -54,41 +54,41 @@ const Oe = {
|
|
|
54
54
|
},
|
|
55
55
|
{
|
|
56
56
|
title: n("cancel"),
|
|
57
|
-
event:
|
|
57
|
+
event: m
|
|
58
58
|
}
|
|
59
|
-
]),
|
|
60
|
-
i.value =
|
|
61
|
-
},
|
|
62
|
-
|
|
63
|
-
},
|
|
64
|
-
|
|
65
|
-
},
|
|
66
|
-
|
|
67
|
-
},
|
|
68
|
-
|
|
69
|
-
},
|
|
70
|
-
l(
|
|
71
|
-
},
|
|
72
|
-
[
|
|
73
|
-
[
|
|
74
|
-
[
|
|
75
|
-
[
|
|
76
|
-
[
|
|
59
|
+
]), g = (h) => {
|
|
60
|
+
i.value = h, c.value || l(S.SELECT, h);
|
|
61
|
+
}, v = (h) => {
|
|
62
|
+
g(h), l(S.TAB);
|
|
63
|
+
}, y = (h) => {
|
|
64
|
+
g(h), l(S.ENTER);
|
|
65
|
+
}, I = (h) => {
|
|
66
|
+
g(h), l(S.SPACE);
|
|
67
|
+
}, B = () => {
|
|
68
|
+
m(), l(S.ESCAPE);
|
|
69
|
+
}, r = () => {
|
|
70
|
+
l(S.SHOW_MORE);
|
|
71
|
+
}, x = {
|
|
72
|
+
[S.SELECT]: g,
|
|
73
|
+
[S.SHOW_MORE]: r,
|
|
74
|
+
[S.TAB]: v,
|
|
75
|
+
[S.SPACE]: I,
|
|
76
|
+
[S.ENTER]: y
|
|
77
77
|
};
|
|
78
78
|
return {
|
|
79
79
|
// Values
|
|
80
80
|
actions: p,
|
|
81
81
|
internalSelectedValue: i,
|
|
82
82
|
// Methods
|
|
83
|
-
listeners:
|
|
84
|
-
onEscapeKey:
|
|
85
|
-
onOutsideDropdownClick:
|
|
83
|
+
listeners: x,
|
|
84
|
+
onEscapeKey: B,
|
|
85
|
+
onOutsideDropdownClick: w
|
|
86
86
|
};
|
|
87
|
-
},
|
|
88
|
-
i18n: { messages:
|
|
87
|
+
}, kt = _({
|
|
88
|
+
i18n: { messages: De },
|
|
89
89
|
name: "bento-dropdown-options-container"
|
|
90
|
-
}), Tt = /* @__PURE__ */
|
|
91
|
-
...
|
|
90
|
+
}), Tt = /* @__PURE__ */ _({
|
|
91
|
+
...kt,
|
|
92
92
|
props: {
|
|
93
93
|
/**
|
|
94
94
|
* Defines a string value that labels an interactive element.
|
|
@@ -147,8 +147,8 @@ const Oe = {
|
|
|
147
147
|
*/
|
|
148
148
|
lazyLoadType: {
|
|
149
149
|
type: String,
|
|
150
|
-
default:
|
|
151
|
-
validator: (e) => Object.values(
|
|
150
|
+
default: Me.AUTOMATIC,
|
|
151
|
+
validator: (e) => Object.values(Me).includes(e)
|
|
152
152
|
},
|
|
153
153
|
/**
|
|
154
154
|
* Indicates if new options are lazy loading.
|
|
@@ -178,7 +178,7 @@ const Oe = {
|
|
|
178
178
|
*
|
|
179
179
|
* If enabled, hides the "Select all" checkbox in "multiple" mode.
|
|
180
180
|
*/
|
|
181
|
-
searching:
|
|
181
|
+
searching: Oe.props.searching,
|
|
182
182
|
/**
|
|
183
183
|
* If enabled, dropdown will display non-selectable, static categories
|
|
184
184
|
*/
|
|
@@ -187,7 +187,7 @@ const Oe = {
|
|
|
187
187
|
* Reference to the DOM element or Vue component for positioning
|
|
188
188
|
* the Dropdown container.
|
|
189
189
|
*/
|
|
190
|
-
targetElement: { type:
|
|
190
|
+
targetElement: { type: Ne.props.targetElement.type, required: !0 },
|
|
191
191
|
/**
|
|
192
192
|
* Enables virtual scrolling if set to true or by providing an object with itemHeight function.
|
|
193
193
|
* The itemHeight function is used to calculate the height of rendered item given it's index.
|
|
@@ -197,28 +197,28 @@ const Oe = {
|
|
|
197
197
|
default: !1
|
|
198
198
|
}
|
|
199
199
|
},
|
|
200
|
-
setup(e, { expose:
|
|
201
|
-
const l = he(), i =
|
|
200
|
+
setup(e, { expose: c, emit: u }) {
|
|
201
|
+
const l = he(), i = u, n = e, { selectedValue: t, multiple: a } = _e(n), m = D(null), { t: w } = ge({ messages: De }), p = d(() => n.open && !n.disabled), g = d(() => w("noOptionsMatchThisSearch")), v = d(() => ({
|
|
202
202
|
"b-dropdown-options-container--single": !n?.multiple
|
|
203
|
-
})),
|
|
203
|
+
})), y = d(() => ({
|
|
204
204
|
"b-dropdown-options-container__listbox--single": !n?.multiple
|
|
205
|
-
})), { actions:
|
|
206
|
-
const
|
|
205
|
+
})), { actions: I, internalSelectedValue: B, listeners: r, onEscapeKey: x, onOutsideDropdownClick: h } = At(t, a, p, i), L = d(() => n?.multiple ? Et : Ne), T = d(() => {
|
|
206
|
+
const $ = {
|
|
207
207
|
"min-width": `${n?.targetElement?.clientWidth}px`,
|
|
208
208
|
"max-width": "min(500px, 95%)"
|
|
209
209
|
};
|
|
210
210
|
return n?.multiple ? {
|
|
211
211
|
actionsLayout: "space-between",
|
|
212
212
|
ariaLabel: n.ariaLabel,
|
|
213
|
-
actions:
|
|
213
|
+
actions: I.value,
|
|
214
214
|
divider: !0,
|
|
215
215
|
fallbackPosition: ["top-start"],
|
|
216
|
-
id:
|
|
216
|
+
id: te(`dropdown-options-${n.id}`),
|
|
217
217
|
open: n.open,
|
|
218
218
|
position: "bottom-start",
|
|
219
219
|
style: {
|
|
220
220
|
width: "auto",
|
|
221
|
-
|
|
221
|
+
...$
|
|
222
222
|
},
|
|
223
223
|
targetElement: n.targetElement
|
|
224
224
|
} : {
|
|
@@ -227,60 +227,60 @@ const Oe = {
|
|
|
227
227
|
position: "bottom-start",
|
|
228
228
|
style: {
|
|
229
229
|
display: p.value ? "block" : "none",
|
|
230
|
-
|
|
230
|
+
...$
|
|
231
231
|
},
|
|
232
232
|
targetElement: n.targetElement
|
|
233
233
|
};
|
|
234
234
|
});
|
|
235
|
-
return
|
|
236
|
-
onOutsideDropdownClick:
|
|
237
|
-
}), (
|
|
235
|
+
return c({
|
|
236
|
+
onOutsideDropdownClick: h
|
|
237
|
+
}), ($, P) => p.value ? (b(), H(Pe(L.value), A({
|
|
238
238
|
key: 0,
|
|
239
|
-
class: ["b-dropdown-options-container",
|
|
240
|
-
},
|
|
241
|
-
default:
|
|
242
|
-
|
|
243
|
-
onKeydown:
|
|
239
|
+
class: ["b-dropdown-options-container", v.value]
|
|
240
|
+
}, T.value), {
|
|
241
|
+
default: W(() => [
|
|
242
|
+
ie("div", {
|
|
243
|
+
onKeydown: P[0] || (P[0] = re(
|
|
244
244
|
//@ts-ignore
|
|
245
|
-
(...
|
|
245
|
+
(...V) => o(x) && o(x)(...V),
|
|
246
246
|
["esc"]
|
|
247
247
|
))
|
|
248
248
|
}, [
|
|
249
|
-
|
|
249
|
+
Y(o(Oe), A({
|
|
250
250
|
id: e.id,
|
|
251
251
|
ref_key: "dropdownOptionsListboxRef",
|
|
252
|
-
ref:
|
|
252
|
+
ref: m,
|
|
253
253
|
"aria-label": e.ariaLabel,
|
|
254
|
-
class: ["b-dropdown-options-container__listbox",
|
|
254
|
+
class: ["b-dropdown-options-container__listbox", y.value],
|
|
255
255
|
"component-loading": e.componentLoading,
|
|
256
256
|
"empty-state": e.emptyState,
|
|
257
257
|
"is-option-disabled": e.isOptionDisabled,
|
|
258
258
|
items: e.items,
|
|
259
|
-
"selected-value": o(
|
|
259
|
+
"selected-value": o(B),
|
|
260
260
|
multiple: o(a),
|
|
261
261
|
"static-categories": e.staticCategories,
|
|
262
|
-
"no-results-message":
|
|
262
|
+
"no-results-message": g.value,
|
|
263
263
|
searching: e.searching,
|
|
264
264
|
loading: e.loading,
|
|
265
265
|
"lazy-load-type": e.lazyLoadType,
|
|
266
266
|
"has-more-items": e.hasMoreItems,
|
|
267
267
|
"virtual-scroll": e.virtualScroll
|
|
268
|
-
}, de(o(
|
|
269
|
-
ue(o(l), (
|
|
270
|
-
name:
|
|
271
|
-
fn:
|
|
272
|
-
|
|
268
|
+
}, de(o(r))), be({ _: 2 }, [
|
|
269
|
+
ue(o(l), (V, M) => ({
|
|
270
|
+
name: M,
|
|
271
|
+
fn: W((J) => [
|
|
272
|
+
U($.$slots, M, oe(ye(J)), void 0, !0)
|
|
273
273
|
])
|
|
274
274
|
}))
|
|
275
275
|
]), 1040, ["id", "aria-label", "class", "component-loading", "empty-state", "is-option-disabled", "items", "selected-value", "multiple", "static-categories", "no-results-message", "searching", "loading", "lazy-load-type", "has-more-items", "virtual-scroll"])
|
|
276
276
|
], 32)
|
|
277
277
|
]),
|
|
278
278
|
_: 3
|
|
279
|
-
}, 16, ["class"])) :
|
|
279
|
+
}, 16, ["class"])) : R("", !0);
|
|
280
280
|
}
|
|
281
|
-
}),
|
|
282
|
-
var
|
|
283
|
-
const
|
|
281
|
+
}), $t = /* @__PURE__ */ ee(Tt, [["__scopeId", "data-v-abf92e14"]]);
|
|
282
|
+
var k = /* @__PURE__ */ ((e) => (e.DISABLED = "disabled", e.READONLY = "readonly", e.HAS_ITEMS = "has-items", e.OPENED = "opened", e.ERROR = "error", e))(k || {}), E = /* @__PURE__ */ ((e) => (e.OPEN = "dropdown-base-open", e.KEYDOWN = "dropdown-base-keydown", e.CLOSE = "dropdown-base-close", e.INPUT = "dropdown-base-input", e.CLEAR = "dropdown-base-clear", e))(E || {});
|
|
283
|
+
const Mt = /* @__PURE__ */ Symbol("dropdown small size injection key"), ze = /* @__PURE__ */ Symbol("dropdown underline style injection key"), Ue = {
|
|
284
284
|
"de-DE": { clearSearch: "Suche löschen" },
|
|
285
285
|
"en-GB": { clearSearch: "Clear search" },
|
|
286
286
|
"en-US": { clearSearch: "Clear search" },
|
|
@@ -291,22 +291,22 @@ const qe = {
|
|
|
291
291
|
"ja-JP": { clearSearch: "検索をクリア" },
|
|
292
292
|
"pt-BR": { clearSearch: "Limpar busca" },
|
|
293
293
|
"zh-CN": { clearSearch: "清除搜索" }
|
|
294
|
-
},
|
|
294
|
+
}, Nt = ["id", "value", "disabled", "readonly", "required"], Rt = ["id", "aria-readonly", "tabindex"], Ft = {
|
|
295
295
|
key: 1,
|
|
296
296
|
class: "b-dropdown-base-textbox__input-multiple-selected"
|
|
297
|
-
},
|
|
297
|
+
}, _t = { class: "b-dropdown-base-textbox__input-selected-element" }, Pt = {
|
|
298
298
|
key: 2,
|
|
299
299
|
class: "b-dropdown-base-textbox__additional-items"
|
|
300
|
-
},
|
|
300
|
+
}, Vt = {
|
|
301
301
|
key: 3,
|
|
302
302
|
class: "b-dropdown-base-textbox__icon",
|
|
303
303
|
"aria-hidden": "true"
|
|
304
|
-
},
|
|
305
|
-
i18n: { messages:
|
|
304
|
+
}, Kt = ["tabindex", "onKeydown"], qt = _({
|
|
305
|
+
i18n: { messages: Ue },
|
|
306
306
|
name: "dropdown-base-textbox",
|
|
307
307
|
inheritAttrs: !1
|
|
308
|
-
}),
|
|
309
|
-
...
|
|
308
|
+
}), zt = /* @__PURE__ */ _({
|
|
309
|
+
...qt,
|
|
310
310
|
props: {
|
|
311
311
|
/**
|
|
312
312
|
* The number of additional items that have been selected in the dropdown.
|
|
@@ -390,16 +390,17 @@ const qe = {
|
|
|
390
390
|
default: null
|
|
391
391
|
}
|
|
392
392
|
},
|
|
393
|
-
setup(e, { expose:
|
|
394
|
-
const { t: l } = ge({ messages:
|
|
395
|
-
[`b-dropdown-base-textbox--${
|
|
396
|
-
[`b-dropdown-base-textbox--${
|
|
397
|
-
[`b-dropdown-base-textbox--${
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
393
|
+
setup(e, { expose: c, emit: u }) {
|
|
394
|
+
const { t: l } = ge({ messages: Ue }), i = Ve(), n = he(), t = qe(n), a = e, m = u, w = D(null), p = te("textbox"), g = Ie(ze, !1), v = d(() => ({
|
|
395
|
+
[`b-dropdown-base-textbox--${k.DISABLED}`]: a.disabled,
|
|
396
|
+
[`b-dropdown-base-textbox--${k.READONLY}`]: a.readonly,
|
|
397
|
+
[`b-dropdown-base-textbox--${k.HAS_ITEMS}`]: !!a.additionalItemsSelected,
|
|
398
|
+
"b-dropdown-base-textbox--underline": g
|
|
399
|
+
})), y = d(
|
|
400
|
+
() => h.value && i["aria-required"] ? "true" : null
|
|
401
|
+
), I = d(() => ({
|
|
401
402
|
"b-dropdown-base-textbox__input--dynamic-filtering": a.dynamicFiltering
|
|
402
|
-
})),
|
|
403
|
+
})), B = d(() => a.dynamicFiltering && !!a.value && a.open), r = d(
|
|
403
404
|
() => ({
|
|
404
405
|
"aria-haspopup": "listbox",
|
|
405
406
|
"aria-controls": a.ariaControls,
|
|
@@ -411,48 +412,49 @@ const qe = {
|
|
|
411
412
|
"aria-disabled": a.disabled ? !0 : null,
|
|
412
413
|
"aria-required": i["aria-required"]
|
|
413
414
|
})
|
|
414
|
-
),
|
|
415
|
+
), x = d(
|
|
415
416
|
() => a.multiple ? a.selectedValueItem : []
|
|
416
|
-
),
|
|
417
|
-
() => a.multiple && a.selectedValueItem &&
|
|
417
|
+
), h = d(() => a.dynamicFiltering && (a.open || a.alwaysComboboxIsInput)), L = d(() => a.selectedValueItem && !a.multiple), T = d(
|
|
418
|
+
() => a.multiple && a.selectedValueItem && x.value.length > 0 && a.showSlotContentInMultiple
|
|
418
419
|
);
|
|
419
420
|
ve(
|
|
420
|
-
() =>
|
|
421
|
+
() => h.value,
|
|
421
422
|
() => {
|
|
422
|
-
|
|
423
|
-
|
|
423
|
+
h.value && !a.alwaysComboboxIsInput && F(() => {
|
|
424
|
+
w.value.focus();
|
|
424
425
|
});
|
|
425
426
|
}
|
|
426
427
|
);
|
|
427
|
-
const
|
|
428
|
-
!a.disabled && !a.readonly && (
|
|
429
|
-
},
|
|
430
|
-
a.open && (
|
|
431
|
-
},
|
|
432
|
-
|
|
433
|
-
},
|
|
434
|
-
!a.readonly && !a.disabled ?
|
|
428
|
+
const $ = async () => {
|
|
429
|
+
!a.disabled && !a.readonly && (m(E.OPEN), await F(), w.value.focus());
|
|
430
|
+
}, P = () => {
|
|
431
|
+
a.open && (w.value.focus(), m(E.CLOSE));
|
|
432
|
+
}, V = (O) => a.open && O.target.tagName === "INPUT" ? null : a.open ? P() : $(), M = () => {
|
|
433
|
+
m(E.CLEAR), m(E.INPUT, ""), w.value.focus();
|
|
434
|
+
}, J = (O) => {
|
|
435
|
+
!a.readonly && !a.disabled ? m(E.INPUT, O.target.value) : (O.preventDefault(), O.stopPropagation());
|
|
435
436
|
};
|
|
436
|
-
return
|
|
437
|
+
return c({
|
|
437
438
|
focus: () => {
|
|
438
|
-
|
|
439
|
+
w.value.focus();
|
|
439
440
|
}
|
|
440
|
-
}), (
|
|
441
|
-
class:
|
|
441
|
+
}), (O, f) => (b(), C("div", {
|
|
442
|
+
class: ne(O.$attrs.class),
|
|
442
443
|
"data-testid": "textbox-wrapper",
|
|
443
|
-
onClick:
|
|
444
|
-
onKeydown: re(
|
|
444
|
+
onClick: V,
|
|
445
|
+
onKeydown: re(P, ["escape"])
|
|
445
446
|
}, [
|
|
446
|
-
|
|
447
|
-
class:
|
|
447
|
+
Y(o(Ke), {
|
|
448
|
+
class: ne(["b-dropdown-base-textbox", v.value]),
|
|
449
|
+
variant: o(g) ? "title" : "body",
|
|
448
450
|
el: "div",
|
|
449
451
|
"data-testid": "base-textbox"
|
|
450
452
|
}, {
|
|
451
|
-
default:
|
|
452
|
-
|
|
453
|
+
default: W(() => [
|
|
454
|
+
h.value ? (b(), C("input", A({ key: 0 }, r.value, {
|
|
453
455
|
id: o(p),
|
|
454
456
|
ref_key: "textbox",
|
|
455
|
-
ref:
|
|
457
|
+
ref: w,
|
|
456
458
|
class: "b-dropdown-base-textbox__input",
|
|
457
459
|
role: "combobox",
|
|
458
460
|
type: "text",
|
|
@@ -463,70 +465,70 @@ const qe = {
|
|
|
463
465
|
readonly: e.readonly,
|
|
464
466
|
required: y.value,
|
|
465
467
|
onKeydown: [
|
|
466
|
-
|
|
467
|
-
re(
|
|
468
|
+
f[0] || (f[0] = (N) => O.$emit(o(E).KEYDOWN, N)),
|
|
469
|
+
re(V, ["enter"])
|
|
468
470
|
],
|
|
469
|
-
onInput:
|
|
470
|
-
}), null, 16,
|
|
471
|
+
onInput: J
|
|
472
|
+
}), null, 16, Nt)) : (b(), C("div", A({
|
|
471
473
|
key: 1,
|
|
472
474
|
id: o(p)
|
|
473
|
-
},
|
|
475
|
+
}, r.value, {
|
|
474
476
|
ref_key: "textbox",
|
|
475
|
-
ref:
|
|
476
|
-
class: ["b-dropdown-base-textbox__input",
|
|
477
|
+
ref: w,
|
|
478
|
+
class: ["b-dropdown-base-textbox__input", I.value],
|
|
477
479
|
"aria-readonly": e.readonly ? "true" : null,
|
|
478
480
|
role: "combobox",
|
|
479
481
|
tabindex: e.disabled ? -1 : 0
|
|
480
482
|
}), [
|
|
481
|
-
L.value ? (b(),
|
|
482
|
-
o(t)("display-value") ?
|
|
483
|
-
fe(
|
|
483
|
+
L.value ? (b(), C(Ee, { key: 0 }, [
|
|
484
|
+
o(t)("display-value") ? U(O.$slots, "display-value", oe(A({ key: 0 }, e.selectedValueItem)), void 0, !0) : U(O.$slots, "default", oe(A({ key: 1 }, e.selectedValueItem)), () => [
|
|
485
|
+
fe(Q(e.displayValue), 1)
|
|
484
486
|
], !0)
|
|
485
|
-
], 64)) :
|
|
486
|
-
(b(!0),
|
|
487
|
-
key:
|
|
487
|
+
], 64)) : T.value ? (b(), C("div", Ft, [
|
|
488
|
+
(b(!0), C(Ee, null, ue(x.value, (N) => (b(), C("div", {
|
|
489
|
+
key: N.value
|
|
488
490
|
}, [
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
fe(
|
|
491
|
+
ie("div", _t, [
|
|
492
|
+
U(O.$slots, "default", A({ ref_for: !0 }, N), () => [
|
|
493
|
+
fe(Q(e.displayValue), 1)
|
|
492
494
|
], !0)
|
|
493
495
|
])
|
|
494
496
|
]))), 128))
|
|
495
|
-
])) : (b(),
|
|
496
|
-
fe(
|
|
497
|
+
])) : (b(), C(Ee, { key: 2 }, [
|
|
498
|
+
fe(Q(e.displayValue), 1)
|
|
497
499
|
], 64))
|
|
498
|
-
], 16,
|
|
499
|
-
e.additionalItemsSelected ? (b(),
|
|
500
|
-
o(t)("icon") && !
|
|
501
|
-
|
|
502
|
-
])) :
|
|
503
|
-
|
|
500
|
+
], 16, Rt)),
|
|
501
|
+
e.additionalItemsSelected ? (b(), C("span", Pt, Q(e.additionalItemsSelected), 1)) : R("", !0),
|
|
502
|
+
o(t)("icon") && !B.value ? (b(), C("span", Vt, [
|
|
503
|
+
U(O.$slots, "icon", {}, void 0, !0)
|
|
504
|
+
])) : R("", !0),
|
|
505
|
+
B.value ? (b(), C("span", {
|
|
504
506
|
key: 4,
|
|
505
507
|
class: "b-dropdown-base-textbox__clear-search",
|
|
506
508
|
tabindex: e.disabled ? -1 : 0,
|
|
507
509
|
"data-testid": "clear-search-button",
|
|
508
|
-
onClick:
|
|
509
|
-
onKeydown: re(
|
|
510
|
+
onClick: $e(M, ["stop"]),
|
|
511
|
+
onKeydown: re($e(M, ["stop"]), ["enter"]),
|
|
510
512
|
onKeyup: re(M, ["space"])
|
|
511
513
|
}, [
|
|
512
|
-
e.size === o(
|
|
514
|
+
e.size === o(le).SMALL ? (b(), H(o(It), {
|
|
513
515
|
key: 0,
|
|
514
516
|
"svg-title": o(l)("clearSearch")
|
|
515
|
-
}, null, 8, ["svg-title"])) : (b(),
|
|
517
|
+
}, null, 8, ["svg-title"])) : (b(), H(o(Ot), {
|
|
516
518
|
key: 1,
|
|
517
519
|
"svg-title": o(l)("clearSearch")
|
|
518
520
|
}, null, 8, ["svg-title"]))
|
|
519
|
-
], 40,
|
|
521
|
+
], 40, Kt)) : R("", !0)
|
|
520
522
|
]),
|
|
521
523
|
_: 3
|
|
522
|
-
}, 8, ["class"])
|
|
524
|
+
}, 8, ["class", "variant"])
|
|
523
525
|
], 34));
|
|
524
526
|
}
|
|
525
|
-
}),
|
|
527
|
+
}), We = /* @__PURE__ */ ee(zt, [["__scopeId", "data-v-d9e852a4"]]), Ut = { class: "b-dropdown-default-textbox__chevron" }, Wt = _({
|
|
526
528
|
name: "dropdown-default-textbox",
|
|
527
529
|
inheritAttrs: !1
|
|
528
|
-
}),
|
|
529
|
-
...
|
|
530
|
+
}), jt = /* @__PURE__ */ _({
|
|
531
|
+
...Wt,
|
|
530
532
|
props: {
|
|
531
533
|
/**
|
|
532
534
|
* The number of additional items that have been selected in the dropdown.
|
|
@@ -613,115 +615,115 @@ const qe = {
|
|
|
613
615
|
multiple: { type: Boolean, default: !1 }
|
|
614
616
|
},
|
|
615
617
|
emits: ["clear", "close", "input", "keydown", "open"],
|
|
616
|
-
setup(e, { expose:
|
|
617
|
-
const l =
|
|
618
|
-
[`b-dropdown-default-textbox--${
|
|
619
|
-
[`b-dropdown-default-textbox--${
|
|
620
|
-
[`b-dropdown-default-textbox--${
|
|
621
|
-
[`b-dropdown-default-textbox--${
|
|
618
|
+
setup(e, { expose: c, emit: u }) {
|
|
619
|
+
const l = u, i = he(), n = e, t = D(null), a = d(() => ({
|
|
620
|
+
[`b-dropdown-default-textbox--${k.ERROR}`]: !n.disabled && !n.readonly && n.isInvalid,
|
|
621
|
+
[`b-dropdown-default-textbox--${k.DISABLED}`]: n.disabled,
|
|
622
|
+
[`b-dropdown-default-textbox--${k.READONLY}`]: n.readonly,
|
|
623
|
+
[`b-dropdown-default-textbox--${k.OPENED}`]: n.open,
|
|
622
624
|
"b-dropdown-default-textbox--condensed": n.condensed
|
|
623
|
-
})),
|
|
624
|
-
l("input",
|
|
625
|
-
}, p = (
|
|
626
|
-
l("keydown",
|
|
627
|
-
},
|
|
628
|
-
|
|
629
|
-
},
|
|
630
|
-
|
|
631
|
-
},
|
|
632
|
-
|
|
633
|
-
},
|
|
634
|
-
[
|
|
635
|
-
[
|
|
636
|
-
[
|
|
637
|
-
[
|
|
638
|
-
[
|
|
625
|
+
})), m = d(() => n.open && !n.disabled && !n.readonly), w = (r) => {
|
|
626
|
+
l("input", r);
|
|
627
|
+
}, p = (r) => {
|
|
628
|
+
l("keydown", r);
|
|
629
|
+
}, g = (r) => {
|
|
630
|
+
ae(r), l("open");
|
|
631
|
+
}, v = (r) => {
|
|
632
|
+
ae(r), l("close");
|
|
633
|
+
}, y = (r) => {
|
|
634
|
+
ae(r), l("clear");
|
|
635
|
+
}, I = {
|
|
636
|
+
[E.INPUT]: w,
|
|
637
|
+
[E.OPEN]: g,
|
|
638
|
+
[E.CLOSE]: v,
|
|
639
|
+
[E.CLEAR]: y,
|
|
640
|
+
[E.KEYDOWN]: p
|
|
639
641
|
};
|
|
640
|
-
return
|
|
642
|
+
return c({
|
|
641
643
|
focus: () => {
|
|
642
644
|
t.value.focus();
|
|
643
645
|
}
|
|
644
|
-
}), (
|
|
645
|
-
class:
|
|
646
|
+
}), (r, x) => (b(), C("div", {
|
|
647
|
+
class: ne(["b-dropdown-default-textbox", a.value]),
|
|
646
648
|
"data-testid": "default-textbox"
|
|
647
649
|
}, [
|
|
648
|
-
|
|
650
|
+
Y(We, A({
|
|
649
651
|
ref_key: "baseTextbox",
|
|
650
652
|
ref: t
|
|
651
|
-
}, { ...
|
|
653
|
+
}, { ...r.$attrs, ...r.$props }, {
|
|
652
654
|
class: "b-dropdown-default-textbox__textbox",
|
|
653
655
|
value: e.value
|
|
654
|
-
}, de(
|
|
655
|
-
icon:
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
[
|
|
656
|
+
}, de(I)), be({
|
|
657
|
+
icon: W(() => [
|
|
658
|
+
ie("div", Ut, [
|
|
659
|
+
se(Y(o(Bt), { "svg-title": "opened" }, null, 512), [
|
|
660
|
+
[me, m.value]
|
|
659
661
|
]),
|
|
660
|
-
|
|
661
|
-
[
|
|
662
|
+
se(Y(o(Dt), { "svg-title": "closed" }, null, 512), [
|
|
663
|
+
[me, !m.value]
|
|
662
664
|
])
|
|
663
665
|
])
|
|
664
666
|
]),
|
|
665
667
|
_: 2
|
|
666
668
|
}, [
|
|
667
|
-
ue(o(i), (
|
|
668
|
-
name:
|
|
669
|
-
fn:
|
|
670
|
-
|
|
669
|
+
ue(o(i), (h, L) => ({
|
|
670
|
+
name: L,
|
|
671
|
+
fn: W((T) => [
|
|
672
|
+
U(r.$slots, L, oe(ye(T ?? {})), void 0, !0)
|
|
671
673
|
])
|
|
672
674
|
}))
|
|
673
675
|
]), 1040, ["value"])
|
|
674
676
|
], 2));
|
|
675
677
|
}
|
|
676
|
-
}),
|
|
677
|
-
let
|
|
678
|
-
const
|
|
678
|
+
}), Ht = /* @__PURE__ */ ee(jt, [["__scopeId", "data-v-c3e3ce21"]]);
|
|
679
|
+
let Re = 0;
|
|
680
|
+
const Yt = {
|
|
679
681
|
beforeCreate() {
|
|
680
|
-
this.uuid =
|
|
682
|
+
this.uuid = Re.toString(), Re += 1;
|
|
681
683
|
}
|
|
682
|
-
},
|
|
683
|
-
function
|
|
684
|
-
return b(),
|
|
684
|
+
}, Jt = { key: 0 };
|
|
685
|
+
function Gt(e, c, u, l, i, n) {
|
|
686
|
+
return b(), C("svg", A({ role: "img" }, e.$attrs, {
|
|
685
687
|
class: "ui-assets-icons-16",
|
|
686
688
|
xmlns: "http://www.w3.org/2000/svg",
|
|
687
689
|
width: "16",
|
|
688
690
|
height: "16",
|
|
689
691
|
fill: "none"
|
|
690
692
|
}), [
|
|
691
|
-
e.$attrs["svg-title"] ? (b(),
|
|
692
|
-
|
|
693
|
+
e.$attrs["svg-title"] ? (b(), C("title", Jt, Q(e.$attrs["svg-title"]), 1)) : R("", !0),
|
|
694
|
+
c[0] || (c[0] = ie("path", {
|
|
693
695
|
fill: "#001222",
|
|
694
696
|
d: "M5.00011 5.43922L8.00011 8.43922L11.0001 5.43922L12.0608 6.49988L8.00011 10.5605L3.93945 6.49988L5.00011 5.43922Z"
|
|
695
697
|
}, null, -1))
|
|
696
698
|
], 16);
|
|
697
699
|
}
|
|
698
|
-
const
|
|
699
|
-
let
|
|
700
|
-
const
|
|
700
|
+
const Xt = /* @__PURE__ */ ee(Yt, [["render", Gt]]);
|
|
701
|
+
let Fe = 0;
|
|
702
|
+
const Zt = {
|
|
701
703
|
beforeCreate() {
|
|
702
|
-
this.uuid =
|
|
704
|
+
this.uuid = Fe.toString(), Fe += 1;
|
|
703
705
|
}
|
|
704
|
-
},
|
|
705
|
-
function
|
|
706
|
-
return b(),
|
|
706
|
+
}, Qt = { key: 0 };
|
|
707
|
+
function ea(e, c, u, l, i, n) {
|
|
708
|
+
return b(), C("svg", A({ role: "img" }, e.$attrs, {
|
|
707
709
|
class: "ui-assets-icons-16",
|
|
708
710
|
xmlns: "http://www.w3.org/2000/svg",
|
|
709
711
|
width: "16",
|
|
710
712
|
height: "16",
|
|
711
713
|
fill: "none"
|
|
712
714
|
}), [
|
|
713
|
-
e.$attrs["svg-title"] ? (b(),
|
|
714
|
-
|
|
715
|
+
e.$attrs["svg-title"] ? (b(), C("title", Qt, Q(e.$attrs["svg-title"]), 1)) : R("", !0),
|
|
716
|
+
c[0] || (c[0] = ie("path", {
|
|
715
717
|
fill: "#001222",
|
|
716
718
|
d: "M10.9999 10.5608L7.9999 7.56077L4.9999 10.5608L3.93924 9.50011L7.9999 5.43945L12.0606 9.50011L10.9999 10.5608Z"
|
|
717
719
|
}, null, -1))
|
|
718
720
|
], 16);
|
|
719
721
|
}
|
|
720
|
-
const
|
|
722
|
+
const ta = /* @__PURE__ */ ee(Zt, [["render", ea]]), aa = { class: "b-dropdown-small-textbox__chevron" }, la = _({
|
|
721
723
|
name: "dropdown-small-textbox",
|
|
722
724
|
inheritAttrs: !1
|
|
723
|
-
}),
|
|
724
|
-
...
|
|
725
|
+
}), oa = /* @__PURE__ */ _({
|
|
726
|
+
...la,
|
|
725
727
|
props: {
|
|
726
728
|
/**
|
|
727
729
|
* The number of additional items that have been selected in the dropdown.
|
|
@@ -777,49 +779,50 @@ const Qt = /* @__PURE__ */ X(Gt, [["render", Zt]]), ea = { class: "b-dropdown-sm
|
|
|
777
779
|
value: { type: String, default: "" }
|
|
778
780
|
},
|
|
779
781
|
emits: ["clear", "close", "input", "keydown", "open"],
|
|
780
|
-
setup(e, { expose:
|
|
781
|
-
const l =
|
|
782
|
-
[`b-dropdown-small-textbox--${
|
|
783
|
-
[`b-dropdown-small-textbox--${
|
|
784
|
-
[`b-dropdown-small-textbox--${
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
[
|
|
798
|
-
[
|
|
799
|
-
[
|
|
800
|
-
[
|
|
782
|
+
setup(e, { expose: c, emit: u }) {
|
|
783
|
+
const l = u, i = e, n = D(null), t = Ie(ze, !1), a = d(() => ({
|
|
784
|
+
[`b-dropdown-small-textbox--${k.DISABLED}`]: i.disabled,
|
|
785
|
+
[`b-dropdown-small-textbox--${k.READONLY}`]: i.readonly,
|
|
786
|
+
[`b-dropdown-small-textbox--${k.OPENED}`]: i.open,
|
|
787
|
+
"b-dropdown-small-textbox--underline": t
|
|
788
|
+
})), m = d(() => i.open && !i.disabled && !i.readonly), w = (r) => {
|
|
789
|
+
l("input", r);
|
|
790
|
+
}, p = (r) => {
|
|
791
|
+
l("keydown", r);
|
|
792
|
+
}, g = (r) => {
|
|
793
|
+
ae(r), l("open");
|
|
794
|
+
}, v = (r) => {
|
|
795
|
+
ae(r), l("close");
|
|
796
|
+
}, y = (r) => {
|
|
797
|
+
ae(r), l("clear");
|
|
798
|
+
}, I = {
|
|
799
|
+
[E.INPUT]: w,
|
|
800
|
+
[E.OPEN]: g,
|
|
801
|
+
[E.CLOSE]: v,
|
|
802
|
+
[E.CLEAR]: y,
|
|
803
|
+
[E.KEYDOWN]: p
|
|
801
804
|
};
|
|
802
|
-
return
|
|
805
|
+
return c({
|
|
803
806
|
focus: () => {
|
|
804
807
|
n.value.focus();
|
|
805
808
|
}
|
|
806
|
-
}), (
|
|
807
|
-
class:
|
|
809
|
+
}), (r, x) => (b(), C("div", {
|
|
810
|
+
class: ne(["b-dropdown-small-textbox", a.value])
|
|
808
811
|
}, [
|
|
809
|
-
|
|
812
|
+
Y(We, A({
|
|
810
813
|
ref_key: "baseTextbox",
|
|
811
814
|
ref: n
|
|
812
|
-
}, { ...
|
|
815
|
+
}, { ...r.$attrs, ...r.$props }, {
|
|
813
816
|
class: "b-dropdown-small-textbox__textbox",
|
|
814
|
-
size: o(
|
|
815
|
-
}, de(
|
|
816
|
-
icon:
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
[
|
|
817
|
+
size: o(le).SMALL
|
|
818
|
+
}, de(I)), {
|
|
819
|
+
icon: W(() => [
|
|
820
|
+
ie("div", aa, [
|
|
821
|
+
se(Y(o(ta), { "svg-title": "opened" }, null, 512), [
|
|
822
|
+
[me, m.value]
|
|
820
823
|
]),
|
|
821
|
-
|
|
822
|
-
[
|
|
824
|
+
se(Y(o(Xt), { "svg-title": "closed" }, null, 512), [
|
|
825
|
+
[me, !m.value]
|
|
823
826
|
])
|
|
824
827
|
])
|
|
825
828
|
]),
|
|
@@ -827,106 +830,106 @@ const Qt = /* @__PURE__ */ X(Gt, [["render", Zt]]), ea = { class: "b-dropdown-sm
|
|
|
827
830
|
}, 16, ["size"])
|
|
828
831
|
], 2));
|
|
829
832
|
}
|
|
830
|
-
}),
|
|
833
|
+
}), na = /* @__PURE__ */ ee(oa, [["__scopeId", "data-v-5fe55c74"]]), sa = (e, c) => c.value.reduce((u, l) => {
|
|
831
834
|
if (l.items) {
|
|
832
835
|
const i = l.items.filter(
|
|
833
836
|
(t) => e.value.find((a) => a.value === t.value)
|
|
834
837
|
);
|
|
835
|
-
i.length === l.items.length ?
|
|
838
|
+
i.length === l.items.length ? u.push(l.displayValue ?? l.label) : i.forEach(({ label: t, displayValue: a }) => u.push(a ?? t));
|
|
836
839
|
}
|
|
837
|
-
return e.value.find((i) => i.value === l.value) &&
|
|
838
|
-
}, []).join(", "),
|
|
839
|
-
const i =
|
|
840
|
+
return e.value.find((i) => i.value === l.value) && u.push(l.displayValue ?? l.label), u;
|
|
841
|
+
}, []).join(", "), ia = ({ items: e, placeholder: c, selectedValues: u, isMultiSelect: l }) => {
|
|
842
|
+
const i = d(
|
|
840
843
|
() => l.value && e.value.find((t) => t.items?.length)
|
|
841
844
|
);
|
|
842
|
-
return
|
|
843
|
-
},
|
|
845
|
+
return d(() => u.value.length ? i.value ? sa(u, e) : u.value.map(({ label: t, displayValue: a }) => a ?? t).join(", ") : c.value || null);
|
|
846
|
+
}, je = (e) => {
|
|
844
847
|
e.value.$children?.[0].$refs.textbox.focus();
|
|
845
|
-
},
|
|
848
|
+
}, ra = ({
|
|
846
849
|
inputContainerRef: e,
|
|
847
|
-
optionsContainerRef:
|
|
848
|
-
selectedValueIndex:
|
|
850
|
+
optionsContainerRef: c,
|
|
851
|
+
selectedValueIndex: u,
|
|
849
852
|
isDropdownOpen: l,
|
|
850
853
|
isDynamicFltering: i,
|
|
851
854
|
items: n,
|
|
852
855
|
isMultiple: t,
|
|
853
856
|
totalItemCount: a,
|
|
854
|
-
isVirtualScroll:
|
|
855
|
-
},
|
|
856
|
-
const
|
|
857
|
-
i.value && await
|
|
858
|
-
},
|
|
859
|
-
i.value && await
|
|
860
|
-
const
|
|
857
|
+
isVirtualScroll: m
|
|
858
|
+
}, w, p, g) => {
|
|
859
|
+
const v = async (f) => {
|
|
860
|
+
i.value && await F(), n.value[f]?.focus();
|
|
861
|
+
}, y = async (f) => {
|
|
862
|
+
i.value && await F();
|
|
863
|
+
const N = c.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef?.$el.querySelectorAll(
|
|
861
864
|
"button"
|
|
862
865
|
);
|
|
863
|
-
|
|
864
|
-
},
|
|
866
|
+
N?.length ? N[f]?.focus() : v(f);
|
|
867
|
+
}, I = (f) => c.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef?.setListboxFocusedIndex(
|
|
865
868
|
f
|
|
866
|
-
),
|
|
867
|
-
await
|
|
868
|
-
},
|
|
869
|
-
|
|
870
|
-
|
|
869
|
+
), B = async (f) => {
|
|
870
|
+
await c.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef?.navigateToItem(f);
|
|
871
|
+
}, r = (f) => {
|
|
872
|
+
F(() => {
|
|
873
|
+
m ? B(f) : (I(f), v(f));
|
|
871
874
|
});
|
|
872
|
-
},
|
|
873
|
-
l.value || p(),
|
|
874
|
-
},
|
|
875
|
-
l.value || p(),
|
|
876
|
-
|
|
875
|
+
}, x = () => {
|
|
876
|
+
l.value || p(), r(0);
|
|
877
|
+
}, h = () => {
|
|
878
|
+
l.value || p(), F(() => {
|
|
879
|
+
r(m ? a.value - 1 : n.value.length - 1);
|
|
877
880
|
});
|
|
878
|
-
},
|
|
879
|
-
f.preventDefault(),
|
|
880
|
-
},
|
|
881
|
-
f.preventDefault(),
|
|
882
|
-
},
|
|
883
|
-
|
|
884
|
-
},
|
|
885
|
-
|
|
881
|
+
}, L = ({ detail: f }) => {
|
|
882
|
+
f.preventDefault(), x();
|
|
883
|
+
}, T = ({ detail: f }) => {
|
|
884
|
+
f.preventDefault(), h();
|
|
885
|
+
}, $ = () => {
|
|
886
|
+
x();
|
|
887
|
+
}, P = () => {
|
|
888
|
+
h();
|
|
889
|
+
}, V = ({ detail: f }) => {
|
|
890
|
+
f.preventDefault(), w(), l.value && (t ? y(0) : r(u.value));
|
|
886
891
|
}, M = ({ detail: f }) => {
|
|
887
|
-
f.preventDefault(),
|
|
888
|
-
},
|
|
889
|
-
|
|
890
|
-
},
|
|
891
|
-
l.value &&
|
|
892
|
-
}, E = () => {
|
|
893
|
-
l.value && (w(), Ue(e));
|
|
892
|
+
f.preventDefault(), w(), l.value && (t ? y(0) : r(u.value));
|
|
893
|
+
}, J = () => {
|
|
894
|
+
l.value && g();
|
|
895
|
+
}, G = () => {
|
|
896
|
+
l.value && (g(), je(e));
|
|
894
897
|
};
|
|
895
|
-
return
|
|
896
|
-
[
|
|
897
|
-
[
|
|
898
|
-
[
|
|
899
|
-
[
|
|
900
|
-
...i.value ? {} : { [
|
|
901
|
-
[
|
|
902
|
-
...i.value ? {} : { [
|
|
903
|
-
[
|
|
898
|
+
return d(() => ({
|
|
899
|
+
[j.ARROW_DOWN]: L,
|
|
900
|
+
[j.ARROW_UP]: T,
|
|
901
|
+
[j.HOME]: $,
|
|
902
|
+
[j.END]: P,
|
|
903
|
+
...i.value ? {} : { [j.SPACE]: V },
|
|
904
|
+
[j.ENTER]: M,
|
|
905
|
+
...i.value ? {} : { [j.TAB]: J },
|
|
906
|
+
[j.ESCAPE]: G
|
|
904
907
|
}));
|
|
905
|
-
},
|
|
908
|
+
}, da = ({ inputContainerRef: e, isDropdownOpen: c }, u) => {
|
|
906
909
|
const l = () => {
|
|
907
|
-
|
|
908
|
-
|
|
910
|
+
c.value && u(), F(() => {
|
|
911
|
+
je(e);
|
|
909
912
|
});
|
|
910
913
|
};
|
|
911
914
|
return {
|
|
912
|
-
[
|
|
913
|
-
[
|
|
914
|
-
[
|
|
915
|
-
[
|
|
915
|
+
[S.ENTER]: l,
|
|
916
|
+
[S.ESCAPE]: l,
|
|
917
|
+
[S.TAB]: l,
|
|
918
|
+
[S.SPACE]: l
|
|
916
919
|
};
|
|
917
920
|
};
|
|
918
|
-
function
|
|
919
|
-
const n =
|
|
921
|
+
function ua(e, c, u, l, i) {
|
|
922
|
+
const n = D(e), t = D(c), a = (p, g = []) => g.flatMap((v) => v.label.toLocaleLowerCase().includes(p) ? l?.value && v.items ? [...a(p, v.items)] : [v, ...a(p, v.items)] : v.items ? [...a(p, v.items)] : []), m = u !== void 0 ? mt(() => u(n.value), i ?? 300) : void 0;
|
|
920
923
|
return ve(n, () => {
|
|
921
|
-
|
|
922
|
-
}),
|
|
923
|
-
if (!n.value ||
|
|
924
|
+
m !== void 0 && m();
|
|
925
|
+
}), d(() => {
|
|
926
|
+
if (!n.value || u !== void 0)
|
|
924
927
|
return t.value;
|
|
925
928
|
const p = n.value.toLocaleLowerCase();
|
|
926
929
|
return a(p, t.value);
|
|
927
930
|
});
|
|
928
931
|
}
|
|
929
|
-
const
|
|
932
|
+
const He = {
|
|
930
933
|
"de-DE": { all: "Alle", ariaLabelFallback: "Dropdown", clearSearch: "Filter löschen" },
|
|
931
934
|
"en-GB": { all: "All", ariaLabelFallback: "Dropdown", clearSearch: "Clear filter" },
|
|
932
935
|
"en-US": { all: "All", ariaLabelFallback: "Dropdown", clearSearch: "Clear filter" },
|
|
@@ -937,16 +940,16 @@ const We = {
|
|
|
937
940
|
"ja-JP": { all: "すべて", ariaLabelFallback: "ドロップダウン", clearSearch: "フィルターをクリア" },
|
|
938
941
|
"pt-BR": { all: "Todos", ariaLabelFallback: "Menu suspenso", clearSearch: "Limpar filtro" },
|
|
939
942
|
"zh-CN": { all: "全部", ariaLabelFallback: "下拉菜单", clearSearch: "清除筛选器" }
|
|
940
|
-
},
|
|
941
|
-
i18n: { messages:
|
|
943
|
+
}, ca = _({
|
|
944
|
+
i18n: { messages: He },
|
|
942
945
|
name: "b-dropdown",
|
|
943
946
|
components: {
|
|
944
|
-
DropdownInputDefault:
|
|
945
|
-
DropdownInputSmall:
|
|
947
|
+
DropdownInputDefault: Ht,
|
|
948
|
+
DropdownInputSmall: na
|
|
946
949
|
},
|
|
947
950
|
model: { prop: "modelValue" }
|
|
948
|
-
}),
|
|
949
|
-
...
|
|
951
|
+
}), pa = /* @__PURE__ */ _({
|
|
952
|
+
...ca,
|
|
950
953
|
props: {
|
|
951
954
|
ariaLabel: { default: null },
|
|
952
955
|
condensed: { type: Boolean, default: !1 },
|
|
@@ -958,7 +961,7 @@ const We = {
|
|
|
958
961
|
items: { default: () => [] },
|
|
959
962
|
loading: { type: Boolean, default: !1 },
|
|
960
963
|
componentLoading: { type: Boolean, default: !1 },
|
|
961
|
-
lazyLoadType: { default:
|
|
964
|
+
lazyLoadType: { default: Oe.props.lazyLoadType.default },
|
|
962
965
|
multiple: { type: Boolean, default: !1 },
|
|
963
966
|
search: { default: void 0 },
|
|
964
967
|
showSlotContentInMultiple: { type: Boolean, default: !1 },
|
|
@@ -979,105 +982,105 @@ const We = {
|
|
|
979
982
|
tooltipText: { default: null }
|
|
980
983
|
},
|
|
981
984
|
emits: ["input", "update:model-value", "show-more", "open"],
|
|
982
|
-
setup(e, { expose:
|
|
983
|
-
const l =
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
),
|
|
985
|
+
setup(e, { expose: c, emit: u }) {
|
|
986
|
+
const l = Ve(), i = he(), n = qe(i), t = e, a = u, { t: m } = ge({ messages: He }), { emitValue: w } = yt(a), p = D(null), g = D(null), v = D(null), y = D(!1), I = te("bento-dropdown-options-container"), B = te("dropdown-label"), r = te("dropdown-description"), x = te("dropdown-error"), { isReadOnly: h } = St(z(t, "readonly")), L = d(() => t.modelValue ?? t.value), { cachedSelectedListboxOptions: T, cachedListboxSelectedValues: $, setCachedValues: P } = vt(
|
|
987
|
+
z(t, "items"),
|
|
988
|
+
L,
|
|
989
|
+
z(t, "multiple"),
|
|
990
|
+
z(t, "enableValueLabelPair")
|
|
991
|
+
), V = D(l["aria-label"]), M = D(l["aria-describedby"]), { ariaLabel: J, label: G } = _e(t), O = d(() => m("ariaLabelFallback")), f = bt({
|
|
989
992
|
// TODO: take ariaLabel ref away when aria-label prop is removed
|
|
990
|
-
ariaLabel:
|
|
991
|
-
label:
|
|
992
|
-
defaultFallback:
|
|
993
|
-
}),
|
|
993
|
+
ariaLabel: J.value || V,
|
|
994
|
+
label: G,
|
|
995
|
+
defaultFallback: O
|
|
996
|
+
}), N = t.size === le.SMALL || Ie(Mt, !1), Ye = d(() => N ? le.SMALL : le.DEFAULT), Je = d(() => ({
|
|
994
997
|
"b-dropdown--condensed": t.condensed
|
|
995
|
-
})),
|
|
998
|
+
})), Ge = d(() => ({
|
|
996
999
|
"b-dropdown__description--error": !!t.errorMessage
|
|
997
|
-
})),
|
|
998
|
-
|
|
1000
|
+
})), X = D(""), ce = z(t, "items"), Be = z(t, "staticCategories"), pe = ua(
|
|
1001
|
+
X,
|
|
999
1002
|
ce,
|
|
1000
1003
|
t?.search?.searchEvent,
|
|
1001
|
-
|
|
1004
|
+
Be,
|
|
1002
1005
|
t?.search?.debounceTime
|
|
1003
|
-
), Se =
|
|
1006
|
+
), Se = d(() => t.dynamicFiltering && !!X.value), Xe = ia({
|
|
1004
1007
|
items: ce,
|
|
1005
|
-
placeholder:
|
|
1006
|
-
isMultiSelect:
|
|
1007
|
-
selectedValues:
|
|
1008
|
-
}),
|
|
1009
|
-
if (t?.multiple && Array.isArray(
|
|
1008
|
+
placeholder: z(t, "placeholder"),
|
|
1009
|
+
isMultiSelect: z(t, "multiple"),
|
|
1010
|
+
selectedValues: T
|
|
1011
|
+
}), Ze = d(() => {
|
|
1012
|
+
if (t?.multiple && Array.isArray(L.value))
|
|
1010
1013
|
return t.items.filter(
|
|
1011
1014
|
({ value: s }) => t?.value && (t?.value).includes(s)
|
|
1012
1015
|
);
|
|
1013
1016
|
if (!t.multiple && t.staticCategories) {
|
|
1014
1017
|
const s = t.items.find(
|
|
1015
|
-
(
|
|
1018
|
+
(q) => q.items?.some((Z) => Z.value === L.value)
|
|
1016
1019
|
);
|
|
1017
|
-
return (s ? s.items.find((
|
|
1020
|
+
return (s ? s.items.find((q) => q.value === L.value) : t.items.find(({ value: q }) => q === L.value)) ?? null;
|
|
1018
1021
|
}
|
|
1019
|
-
return t.items.find(({ value: s }) => s ===
|
|
1020
|
-
}),
|
|
1021
|
-
const s = pe.value.findIndex(({ value:
|
|
1022
|
+
return t.items.find(({ value: s }) => s === L.value);
|
|
1023
|
+
}), Qe = d(() => {
|
|
1024
|
+
const s = pe.value.findIndex(({ value: K }) => t.enableValueLabelPair ? L.value.value === K : L.value === K);
|
|
1022
1025
|
return s > -1 ? s : 0;
|
|
1023
|
-
}), { isMultiLevelSelect:
|
|
1026
|
+
}), { isMultiLevelSelect: Ae, flattenedItemsList: et } = ht(ce), tt = d(() => Ae.value && !t.staticCategories), at = d(() => tt.value ? "treeitem" : "option"), lt = d(() => {
|
|
1024
1027
|
if (t.multiple) {
|
|
1025
|
-
const s = Array.isArray(
|
|
1026
|
-
return s === 0 ? null : !t.hasMoreItems &&
|
|
1028
|
+
const s = Array.isArray(L.value) ? L.value.length : 0, K = Ae.value ? et.value.length : ce.value.length;
|
|
1029
|
+
return s === 0 ? null : !t.hasMoreItems && K > 0 && K === s ? m("all") : s;
|
|
1027
1030
|
}
|
|
1028
1031
|
return null;
|
|
1029
|
-
}),
|
|
1032
|
+
}), ot = d(
|
|
1030
1033
|
() => [
|
|
1031
|
-
t.description ?
|
|
1032
|
-
|
|
1033
|
-
t.errorMessage ?
|
|
1034
|
+
t.description ? r : null,
|
|
1035
|
+
M.value,
|
|
1036
|
+
t.errorMessage ? x : null
|
|
1034
1037
|
].filter(Boolean).join(" ") || null
|
|
1035
|
-
),
|
|
1036
|
-
|
|
1038
|
+
), nt = d(() => v.value?.$el), { visibleDomOptions: st, updateVisibleDomOptions: ke } = gt(
|
|
1039
|
+
nt,
|
|
1037
1040
|
pe,
|
|
1038
|
-
|
|
1039
|
-
),
|
|
1040
|
-
|
|
1041
|
-
|
|
1041
|
+
at
|
|
1042
|
+
), it = () => {
|
|
1043
|
+
h.value || (y.value = !0, F(() => {
|
|
1044
|
+
ke();
|
|
1042
1045
|
}));
|
|
1043
1046
|
}, we = () => {
|
|
1044
|
-
|
|
1047
|
+
y.value = !1;
|
|
1045
1048
|
}, Le = () => {
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
}), Se.value && (
|
|
1049
|
-
}, st = () => {
|
|
1050
|
-
Se.value && (Y.value = ""), m.value && (m.value = !1, y.value.onOutsideDropdownClick());
|
|
1051
|
-
}, it = async (s) => {
|
|
1052
|
-
t.multiple || (Y.value = "", m.value = !1), _(s), S(T.value), t.multiple || (await R(), Te());
|
|
1049
|
+
h.value || (y.value = !y.value, F(() => {
|
|
1050
|
+
ke();
|
|
1051
|
+
}), Se.value && (X.value = ""));
|
|
1053
1052
|
}, rt = () => {
|
|
1054
|
-
|
|
1055
|
-
}, dt =
|
|
1053
|
+
Se.value && (X.value = ""), y.value && (y.value = !1, v.value.onOutsideDropdownClick());
|
|
1054
|
+
}, dt = async (s) => {
|
|
1055
|
+
t.multiple || (X.value = "", y.value = !1), P(s), w($.value), t.multiple || (await F(), Te());
|
|
1056
|
+
}, ut = () => {
|
|
1057
|
+
a(S.SHOW_MORE);
|
|
1058
|
+
}, ct = ra(
|
|
1056
1059
|
{
|
|
1057
1060
|
inputContainerRef: p,
|
|
1058
|
-
optionsContainerRef:
|
|
1059
|
-
selectedValueIndex:
|
|
1060
|
-
isDropdownOpen:
|
|
1061
|
-
isDynamicFltering:
|
|
1062
|
-
items:
|
|
1061
|
+
optionsContainerRef: v,
|
|
1062
|
+
selectedValueIndex: Qe,
|
|
1063
|
+
isDropdownOpen: y,
|
|
1064
|
+
isDynamicFltering: z(t, "dynamicFiltering"),
|
|
1065
|
+
items: st,
|
|
1063
1066
|
isMultiple: t.multiple,
|
|
1064
|
-
totalItemCount:
|
|
1067
|
+
totalItemCount: d(() => pe.value.length),
|
|
1065
1068
|
isVirtualScroll: !t?.multiple && t?.virtualScroll !== !1 && t?.lazyLoadType === "none"
|
|
1066
1069
|
},
|
|
1067
1070
|
Le,
|
|
1068
|
-
|
|
1071
|
+
it,
|
|
1069
1072
|
we
|
|
1070
|
-
),
|
|
1073
|
+
), pt = da(
|
|
1071
1074
|
{
|
|
1072
1075
|
inputContainerRef: p,
|
|
1073
|
-
isDropdownOpen:
|
|
1076
|
+
isDropdownOpen: y
|
|
1074
1077
|
},
|
|
1075
1078
|
we
|
|
1076
|
-
),
|
|
1077
|
-
[
|
|
1078
|
-
[
|
|
1079
|
-
[
|
|
1080
|
-
...
|
|
1079
|
+
), ft = {
|
|
1080
|
+
[S.CLOSE_DROPDOWN]: we,
|
|
1081
|
+
[S.SELECT]: dt,
|
|
1082
|
+
[S.SHOW_MORE]: ut,
|
|
1083
|
+
...pt
|
|
1081
1084
|
};
|
|
1082
1085
|
t.error && xe(
|
|
1083
1086
|
'BentoDropdown "error" property',
|
|
@@ -1095,69 +1098,69 @@ const We = {
|
|
|
1095
1098
|
p.value.focus();
|
|
1096
1099
|
};
|
|
1097
1100
|
return ve(
|
|
1098
|
-
() =>
|
|
1101
|
+
() => y.value,
|
|
1099
1102
|
(s) => {
|
|
1100
1103
|
s && a("open");
|
|
1101
1104
|
}
|
|
1102
|
-
),
|
|
1105
|
+
), c({
|
|
1103
1106
|
focus: Te
|
|
1104
|
-
}), (s,
|
|
1105
|
-
class:
|
|
1107
|
+
}), (s, K) => se((b(), C("div", {
|
|
1108
|
+
class: ne(["b-dropdown", Je.value])
|
|
1106
1109
|
}, [
|
|
1107
|
-
o(
|
|
1110
|
+
o(G) ? (b(), H(o(Ct), {
|
|
1108
1111
|
key: 0,
|
|
1109
|
-
id: o(
|
|
1112
|
+
id: o(B),
|
|
1110
1113
|
condensed: s.condensed,
|
|
1111
|
-
label: o(
|
|
1114
|
+
label: o(G),
|
|
1112
1115
|
"tooltip-text": s.tooltipText,
|
|
1113
1116
|
optional: s.optional,
|
|
1114
1117
|
required: s.required
|
|
1115
|
-
}, null, 8, ["id", "condensed", "label", "tooltip-text", "optional", "required"])) :
|
|
1116
|
-
|
|
1118
|
+
}, null, 8, ["id", "condensed", "label", "tooltip-text", "optional", "required"])) : R("", !0),
|
|
1119
|
+
se((b(), C("div", A({
|
|
1117
1120
|
ref_key: "inputContainerRefWrapper",
|
|
1118
|
-
ref:
|
|
1119
|
-
}, de(o(
|
|
1120
|
-
(b(),
|
|
1121
|
+
ref: g
|
|
1122
|
+
}, de(o(ct), !0)), [
|
|
1123
|
+
(b(), H(Pe(Ye.value), {
|
|
1121
1124
|
ref_key: "inputContainerRef",
|
|
1122
1125
|
ref: p,
|
|
1123
1126
|
condensed: s.condensed,
|
|
1124
|
-
value:
|
|
1125
|
-
"additional-items-selected":
|
|
1126
|
-
"aria-controls": o(
|
|
1127
|
-
ariaExpanded:
|
|
1128
|
-
"aria-labelledby": o(
|
|
1129
|
-
"aria-describedby":
|
|
1127
|
+
value: X.value,
|
|
1128
|
+
"additional-items-selected": lt.value,
|
|
1129
|
+
"aria-controls": o(I),
|
|
1130
|
+
ariaExpanded: y.value,
|
|
1131
|
+
"aria-labelledby": o(G) ? o(B) : null,
|
|
1132
|
+
"aria-describedby": ot.value,
|
|
1130
1133
|
"aria-label": o(f),
|
|
1131
|
-
"aria-readonly": o(
|
|
1134
|
+
"aria-readonly": o(h),
|
|
1132
1135
|
"aria-required": s.required,
|
|
1133
|
-
readonly: o(
|
|
1136
|
+
readonly: o(h),
|
|
1134
1137
|
disabled: s.disabled,
|
|
1135
|
-
"display-value": o(
|
|
1138
|
+
"display-value": o(Xe),
|
|
1136
1139
|
"dynamic-filtering": s.dynamicFiltering,
|
|
1137
1140
|
"is-invalid": !!s.errorMessage || s.error,
|
|
1138
1141
|
multiple: s.multiple,
|
|
1139
|
-
open:
|
|
1140
|
-
"selected-value-item": o(
|
|
1142
|
+
open: y.value,
|
|
1143
|
+
"selected-value-item": o(N) ? void 0 : Ze.value,
|
|
1141
1144
|
"show-slot-content-in-multiple": s.showSlotContentInMultiple,
|
|
1142
|
-
onInput:
|
|
1145
|
+
onInput: K[0] || (K[0] = (q) => X.value = q),
|
|
1143
1146
|
onOpen: Le,
|
|
1144
1147
|
onClose: Le
|
|
1145
1148
|
}, be({ _: 2 }, [
|
|
1146
|
-
ue(o(i), (
|
|
1147
|
-
name:
|
|
1148
|
-
fn:
|
|
1149
|
-
|
|
1149
|
+
ue(o(i), (q, Z) => ({
|
|
1150
|
+
name: Z,
|
|
1151
|
+
fn: W((Ce) => [
|
|
1152
|
+
U(s.$slots, Z, oe(ye(Ce)), void 0, !0)
|
|
1150
1153
|
])
|
|
1151
1154
|
}))
|
|
1152
1155
|
]), 1064, ["condensed", "value", "additional-items-selected", "aria-controls", "ariaExpanded", "aria-labelledby", "aria-describedby", "aria-label", "aria-readonly", "aria-required", "readonly", "disabled", "display-value", "dynamic-filtering", "is-invalid", "multiple", "open", "selected-value-item", "show-slot-content-in-multiple"]))
|
|
1153
1156
|
], 16)), [
|
|
1154
|
-
[o(
|
|
1157
|
+
[o(Lt)]
|
|
1155
1158
|
]),
|
|
1156
|
-
p.value ? (b(),
|
|
1159
|
+
p.value ? (b(), H(o($t), A({
|
|
1157
1160
|
key: 1,
|
|
1158
|
-
id: o(
|
|
1161
|
+
id: o(I),
|
|
1159
1162
|
ref_key: "optionsContainerRef",
|
|
1160
|
-
ref:
|
|
1163
|
+
ref: v,
|
|
1161
1164
|
"aria-label": o(f),
|
|
1162
1165
|
"component-loading": s.componentLoading,
|
|
1163
1166
|
"empty-state": s.emptyState,
|
|
@@ -1165,54 +1168,52 @@ const We = {
|
|
|
1165
1168
|
"is-option-disabled": s.isOptionDisabled,
|
|
1166
1169
|
items: o(pe),
|
|
1167
1170
|
multiple: s.multiple,
|
|
1168
|
-
"static-categories":
|
|
1169
|
-
open:
|
|
1170
|
-
"selected-value": o(
|
|
1171
|
+
"static-categories": Be.value,
|
|
1172
|
+
open: y.value,
|
|
1173
|
+
"selected-value": o(T),
|
|
1171
1174
|
searching: Se.value,
|
|
1172
|
-
"target-element":
|
|
1175
|
+
"target-element": g.value,
|
|
1173
1176
|
loading: s.loading,
|
|
1174
1177
|
"has-more-items": s.hasMoreItems,
|
|
1175
1178
|
"lazy-load-type": s.lazyLoadType,
|
|
1176
1179
|
"virtual-scroll": s.virtualScroll
|
|
1177
|
-
}, de(
|
|
1178
|
-
ue(o(i), (
|
|
1179
|
-
name:
|
|
1180
|
-
fn:
|
|
1181
|
-
|
|
1180
|
+
}, de(ft)), be({ _: 2 }, [
|
|
1181
|
+
ue(o(i), (q, Z) => ({
|
|
1182
|
+
name: Z,
|
|
1183
|
+
fn: W((Ce) => [
|
|
1184
|
+
U(s.$slots, Z, oe(ye(Ce)), void 0, !0)
|
|
1182
1185
|
])
|
|
1183
1186
|
}))
|
|
1184
|
-
]), 1040, ["id", "aria-label", "component-loading", "empty-state", "disabled", "is-option-disabled", "items", "multiple", "static-categories", "open", "selected-value", "searching", "target-element", "loading", "has-more-items", "lazy-load-type", "virtual-scroll"])) :
|
|
1185
|
-
s.errorMessage ? (b(),
|
|
1187
|
+
]), 1040, ["id", "aria-label", "component-loading", "empty-state", "disabled", "is-option-disabled", "items", "multiple", "static-categories", "open", "selected-value", "searching", "target-element", "loading", "has-more-items", "lazy-load-type", "virtual-scroll"])) : R("", !0),
|
|
1188
|
+
s.errorMessage ? (b(), H(o(xt), {
|
|
1186
1189
|
key: 2,
|
|
1187
|
-
id: o(
|
|
1190
|
+
id: o(x),
|
|
1188
1191
|
"error-message": s.errorMessage,
|
|
1189
1192
|
class: "b-dropdown__error-message"
|
|
1190
|
-
}, null, 8, ["id", "error-message"])) :
|
|
1191
|
-
s.description || o(n)("description") ? (b(),
|
|
1193
|
+
}, null, 8, ["id", "error-message"])) : R("", !0),
|
|
1194
|
+
s.description || o(n)("description") ? (b(), H(o(Ke), {
|
|
1192
1195
|
key: 3,
|
|
1193
|
-
id: o(
|
|
1194
|
-
class:
|
|
1196
|
+
id: o(r),
|
|
1197
|
+
class: ne(["b-dropdown__description", Ge.value]),
|
|
1195
1198
|
el: "span"
|
|
1196
1199
|
}, {
|
|
1197
|
-
default:
|
|
1198
|
-
|
|
1199
|
-
fe(
|
|
1200
|
+
default: W(() => [
|
|
1201
|
+
U(s.$slots, "description", {}, () => [
|
|
1202
|
+
fe(Q(s.description), 1)
|
|
1200
1203
|
], !0)
|
|
1201
1204
|
]),
|
|
1202
1205
|
_: 3
|
|
1203
|
-
}, 8, ["id", "class"])) :
|
|
1206
|
+
}, 8, ["id", "class"])) : R("", !0)
|
|
1204
1207
|
], 2)), [
|
|
1205
|
-
[o(
|
|
1208
|
+
[o(wt), rt]
|
|
1206
1209
|
]);
|
|
1207
1210
|
}
|
|
1208
|
-
}),
|
|
1211
|
+
}), Na = /* @__PURE__ */ ee(pa, [["__scopeId", "data-v-0e85a425"]]);
|
|
1209
1212
|
export {
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
$a as c,
|
|
1216
|
-
ra as u
|
|
1213
|
+
Na as B,
|
|
1214
|
+
Ht as D,
|
|
1215
|
+
le as a,
|
|
1216
|
+
Mt as b,
|
|
1217
|
+
ua as u
|
|
1217
1218
|
};
|
|
1218
|
-
//# sourceMappingURL=dropdown.
|
|
1219
|
+
//# sourceMappingURL=dropdown.CK8cdMyV.js.map
|