@adyen/bento-vue3 1.28.1 → 1.29.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 +4 -0
- package/dist/@types/packages/core/src/types/index.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/{internal/avatar → avatar}/avatar.vue.d.ts +4 -4
- package/dist/@types/packages/vue2/src/components/{avatar-image → avatar/components/avatar-image}/avatar-image.vue.d.ts +15 -4
- package/dist/@types/packages/vue2/src/components/button/components/loading-button/index.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/button/components/loading-button/loading-button.vue.d.ts +2 -3
- package/dist/@types/packages/vue2/src/components/checkbox/checkbox.vue.d.ts +4 -4
- package/dist/@types/packages/vue2/src/components/checkbox/components/checkbox-group/checkbox-group.vue.d.ts +3 -3
- package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-base-textbox/dropdown-base-textbox.vue.d.ts +16 -0
- package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-small-textbox/dropdown-small-textbox.vue.d.ts +10 -1
- package/dist/@types/packages/vue2/src/components/filter-bar/components/all-filters-modal/all-filters-modal.vue.d.ts +6 -2
- package/dist/@types/packages/vue2/src/components/filter-bar/components/base-filter/base-filter.vue.d.ts +6 -4
- package/dist/@types/packages/vue2/src/components/filter-bar/components/input-filter/input-filter.vue.d.ts +2 -0
- package/dist/@types/packages/vue2/src/components/input-field/input-field.types.d.ts +3 -0
- package/dist/@types/packages/vue2/src/components/input-field/input-field.vue.d.ts +2 -0
- package/dist/@types/packages/vue2/src/components/inspector/index.d.ts +2 -0
- package/dist/@types/packages/vue2/src/components/inspector/inspector.d.ts +2 -0
- package/dist/@types/packages/vue2/src/components/inspector/inspector.types.d.ts +2 -0
- package/dist/@types/packages/vue2/src/components/inspector/inspector.vue.d.ts +110 -0
- package/dist/@types/packages/vue2/src/components/internal/index.d.ts +0 -1
- package/dist/@types/packages/vue2/src/components/popover/popover.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/radio-group/components/radio-button/radio-button.vue.d.ts +4 -4
- package/dist/@types/packages/vue2/src/components/radio-group/radio-group.vue.d.ts +3 -3
- package/dist/@types/packages/vue2/src/components/search-bar/search-bar.vue.d.ts +12 -1
- package/dist/@types/packages/vue2/src/components/secondary-nav/secondary-nav.vue.d.ts +2 -0
- package/dist/@types/packages/vue2/src/components/stepper/stepper.vue.d.ts +3 -3
- package/dist/@types/packages/vue2/src/components/tag/tag.vue.d.ts +4 -4
- package/dist/@types/packages/vue2/src/components/textarea/textarea.vue.d.ts +3 -3
- package/dist/@types/packages/vue2/src/components/timeline/components/timeline-item/timeline-item.vue.d.ts +7 -7
- package/dist/@types/packages/vue2/src/components/tutorial/components/tutorial-popover/tutorial-popover.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/index.d.ts +2 -0
- package/dist/@types/packages/vue2/src/types/index.d.ts +1 -1
- package/dist/@types/packages/vue2/src/types/listbox.d.ts +1 -1
- package/dist/action-bar.js +1 -1
- package/dist/assets/accordion-item.css +1 -1
- package/dist/assets/action-bar.css +1 -1
- package/dist/assets/avatar.css +1 -0
- package/dist/assets/base-modal.css +1 -1
- package/dist/assets/card.css +1 -1
- package/dist/assets/code-snippet.css +1 -1
- package/dist/assets/data-grid.css +1 -1
- package/dist/assets/dialog-page.css +1 -1
- package/dist/assets/dropdown-default-textbox.css +1 -1
- package/dist/assets/dropdown.css +1 -1
- package/dist/assets/error-message.css +1 -1
- package/dist/assets/filter-bar.css +1 -1
- package/dist/assets/input-field.css +1 -1
- package/dist/assets/inspector.css +1 -0
- package/dist/assets/listbox-option-tag.css +1 -1
- package/dist/assets/loading-button.css +1 -1
- package/dist/assets/menu.css +1 -1
- package/dist/assets/modal-fullscreen.css +1 -1
- package/dist/assets/popover.css +1 -1
- package/dist/assets/radio-group.css +1 -1
- package/dist/assets/search-bar.css +1 -1
- package/dist/assets/secondary-nav.css +1 -1
- package/dist/assets/segmented-control.css +1 -1
- package/dist/assets/selection-card-group.css +1 -1
- package/dist/assets/sidepanel.css +1 -1
- package/dist/assets/structured-list-item.css +1 -1
- package/dist/assets/textarea.css +1 -1
- package/dist/assets/timeline-item.css +1 -1
- package/dist/avatar.js +5 -0
- package/dist/avatar.js.map +1 -0
- package/dist/button.js +2 -2
- package/dist/card.js +1 -1
- package/dist/checkbox.js +2 -2
- package/dist/chunks/{action-bar.BvAtk-jI.js → action-bar.UcSSukRr.js} +5 -5
- package/dist/chunks/{action-bar.BvAtk-jI.js.map → action-bar.UcSSukRr.js.map} +1 -1
- package/dist/chunks/avatar.IHx0kN0u.js +94 -0
- package/dist/chunks/avatar.IHx0kN0u.js.map +1 -0
- package/dist/chunks/{base-modal.BgYlnM_Q.js → base-modal.CY-t-QYh.js} +2 -2
- package/dist/chunks/{base-modal.BgYlnM_Q.js.map → base-modal.CY-t-QYh.js.map} +1 -1
- package/dist/chunks/{button-actions-with-menu.C14zvgVo.js → button-actions-with-menu.Dnyh1m51.js} +4 -4
- package/dist/chunks/{button-actions-with-menu.C14zvgVo.js.map → button-actions-with-menu.Dnyh1m51.js.map} +1 -1
- package/dist/chunks/{button-actions.hGhRdgC2.js → button-actions.BpLFzJJY.js} +2 -2
- package/dist/chunks/{button-actions.hGhRdgC2.js.map → button-actions.BpLFzJJY.js.map} +1 -1
- package/dist/chunks/{card.C7zLKdcy.js → card.DOQt8sH5.js} +2 -2
- package/dist/chunks/{card.C7zLKdcy.js.map → card.DOQt8sH5.js.map} +1 -1
- package/dist/chunks/{checkbox-group.BcT-eZ2p.js → checkbox-group.DS_f6k8E.js} +4 -4
- package/dist/chunks/{checkbox-group.BcT-eZ2p.js.map → checkbox-group.DS_f6k8E.js.map} +1 -1
- package/dist/chunks/{checkbox.xjIFibII.js → checkbox.C5cMvVMm.js} +3 -3
- package/dist/chunks/{checkbox.xjIFibII.js.map → checkbox.C5cMvVMm.js.map} +1 -1
- package/dist/chunks/{code-snippet.e8bxDBCO.js → code-snippet.68epWI-z.js} +184 -208
- package/dist/chunks/code-snippet.68epWI-z.js.map +1 -0
- package/dist/chunks/{controls-group.DWu8NqKL.js → controls-group.fAwpZLvA.js} +2 -2
- package/dist/chunks/{controls-group.DWu8NqKL.js.map → controls-group.fAwpZLvA.js.map} +1 -1
- package/dist/chunks/{copy.BhO7oRgC.js → copy.B6CXENok.js} +3 -3
- package/dist/chunks/{copy.BhO7oRgC.js.map → copy.B6CXENok.js.map} +1 -1
- package/dist/chunks/cross-circle-fill-small.DiZWEd7W.js +29 -0
- package/dist/chunks/cross-circle-fill-small.DiZWEd7W.js.map +1 -0
- package/dist/chunks/{dashboard-section.DKeDjvkB.js → dashboard-section.Bzj5vzTE.js} +3 -3
- package/dist/chunks/{dashboard-section.DKeDjvkB.js.map → dashboard-section.Bzj5vzTE.js.map} +1 -1
- package/dist/chunks/{dashed-underline.DGTW7Y_-.js → dashed-underline.SEXinixe.js} +3 -3
- package/dist/chunks/{dashed-underline.DGTW7Y_-.js.map → dashed-underline.SEXinixe.js.map} +1 -1
- package/dist/chunks/{data-grid-template.6Nls-D4o.js → data-grid-template.BRRSej-5.js} +2 -2
- package/dist/chunks/{data-grid-template.6Nls-D4o.js.map → data-grid-template.BRRSej-5.js.map} +1 -1
- package/dist/chunks/{data-grid.CTLlk_RW.js → data-grid.D0dri6Lc.js} +15 -15
- package/dist/chunks/{data-grid.CTLlk_RW.js.map → data-grid.D0dri6Lc.js.map} +1 -1
- package/dist/chunks/{date-picker.CoPmllNh.js → date-picker.NKXc916N.js} +15 -15
- package/dist/chunks/{date-picker.CoPmllNh.js.map → date-picker.NKXc916N.js.map} +1 -1
- package/dist/chunks/{date-range-picker.C36PxTCQ.js → date-range-picker.DXdh7SCV.js} +13 -13
- package/dist/chunks/{date-range-picker.C36PxTCQ.js.map → date-range-picker.DXdh7SCV.js.map} +1 -1
- package/dist/chunks/{dropdown-default-textbox.-Oy2eT40.js → dropdown-default-textbox.Bx0-dxhU.js} +112 -96
- package/dist/chunks/dropdown-default-textbox.Bx0-dxhU.js.map +1 -0
- package/dist/chunks/{dropdown-tag.C-LxVWlt.js → dropdown-tag.DPTV12uX.js} +14 -13
- package/dist/chunks/dropdown-tag.DPTV12uX.js.map +1 -0
- package/dist/chunks/{dropdown.CxBlK83Q.js → dropdown.CoVT4i0B.js} +360 -349
- package/dist/chunks/dropdown.CoVT4i0B.js.map +1 -0
- package/dist/chunks/{error-message.DyjHMyEZ.js → error-message.oV0CXm1m.js} +3 -3
- package/dist/chunks/{error-message.DyjHMyEZ.js.map → error-message.oV0CXm1m.js.map} +1 -1
- package/dist/chunks/es6.BvpG4Oi6.js +9 -0
- package/dist/chunks/es6.BvpG4Oi6.js.map +1 -0
- package/dist/chunks/expand.D1DTqaBO.js +33 -0
- package/dist/chunks/expand.D1DTqaBO.js.map +1 -0
- package/dist/chunks/{filter-bar.DmPkRBf4.js → filter-bar.d1IKC-Nr.js} +329 -320
- package/dist/chunks/filter-bar.d1IKC-Nr.js.map +1 -0
- package/dist/chunks/{footer-actions.D9nQFagi.js → footer-actions.Cuiq9UJH.js} +2 -2
- package/dist/chunks/{footer-actions.D9nQFagi.js.map → footer-actions.Cuiq9UJH.js.map} +1 -1
- package/dist/chunks/{header.Cr7115vM.js → header.B4il13uF.js} +3 -3
- package/dist/chunks/{header.Cr7115vM.js.map → header.B4il13uF.js.map} +1 -1
- package/dist/chunks/index.DKQuLmwu.js +182 -0
- package/dist/chunks/{index.Dytpif0G.js.map → index.DKQuLmwu.js.map} +1 -1
- package/dist/chunks/{info-icon.DvL1e5Iu.js → info-icon.B8AL324x.js} +3 -3
- package/dist/chunks/{info-icon.DvL1e5Iu.js.map → info-icon.B8AL324x.js.map} +1 -1
- package/dist/chunks/{input-field.iH1ICJkQ.js → input-field.CKh69yj2.js} +119 -113
- package/dist/chunks/input-field.CKh69yj2.js.map +1 -0
- package/dist/chunks/inspector.types.88WOdYA6.js +116 -0
- package/dist/chunks/inspector.types.88WOdYA6.js.map +1 -0
- package/dist/chunks/listbox-option-tag.m6aNQTJN.js +55 -0
- package/dist/chunks/listbox-option-tag.m6aNQTJN.js.map +1 -0
- package/dist/chunks/loading-button.BxDrDxmI.js +123 -0
- package/dist/chunks/loading-button.BxDrDxmI.js.map +1 -0
- package/dist/chunks/{menu.DN-xhDQU.js → menu.PtOT_BKl.js} +2 -2
- package/dist/chunks/{menu.DN-xhDQU.js.map → menu.PtOT_BKl.js.map} +1 -1
- package/dist/chunks/{modal-fullscreen.CeogBGfr.js → modal-fullscreen.BkuEaCdO.js} +2 -2
- package/dist/chunks/{modal-fullscreen.CeogBGfr.js.map → modal-fullscreen.BkuEaCdO.js.map} +1 -1
- package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.BBef1Rl9.js → modal.vue_vue_type_script_setup_true_lang.CQXfT4eW.js} +4 -4
- package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.BBef1Rl9.js.map → modal.vue_vue_type_script_setup_true_lang.CQXfT4eW.js.map} +1 -1
- package/dist/chunks/{pagination.BwG1MF4j.js → pagination.DeOBHgWf.js} +2 -2
- package/dist/chunks/{pagination.BwG1MF4j.js.map → pagination.DeOBHgWf.js.map} +1 -1
- package/dist/chunks/{popover.DRb2GW7t.js → popover.CvUTNkQG.js} +3 -3
- package/dist/chunks/{popover.DRb2GW7t.js.map → popover.CvUTNkQG.js.map} +1 -1
- package/dist/chunks/{popper-container.B76aE-3-.js → popper-container.50jF-_VU.js} +487 -435
- package/dist/chunks/popper-container.50jF-_VU.js.map +1 -0
- package/dist/chunks/{radio-group.B9HCffiZ.js → radio-group.r5U1kQIe.js} +95 -93
- package/dist/chunks/radio-group.r5U1kQIe.js.map +1 -0
- package/dist/chunks/search-bar.DmXr-0Ax.js +116 -0
- package/dist/chunks/search-bar.DmXr-0Ax.js.map +1 -0
- package/dist/chunks/secondary-nav.DnQPIiYO.js +137 -0
- package/dist/chunks/secondary-nav.DnQPIiYO.js.map +1 -0
- package/dist/chunks/{segmented-control.DyINOWUl.js → segmented-control.ClihHHOR.js} +2 -2
- package/dist/chunks/{segmented-control.DyINOWUl.js.map → segmented-control.ClihHHOR.js.map} +1 -1
- package/dist/chunks/{selection-card-group.C-YLePO4.js → selection-card-group.AkttDBv5.js} +3 -3
- package/dist/chunks/{selection-card-group.C-YLePO4.js.map → selection-card-group.AkttDBv5.js.map} +1 -1
- package/dist/chunks/{sidepanel.B-LtA15e.js → sidepanel.Dv73FrCn.js} +2 -2
- package/dist/chunks/{sidepanel.B-LtA15e.js.map → sidepanel.Dv73FrCn.js.map} +1 -1
- package/dist/chunks/{structured-list-item.DQiPKhOI.js → structured-list-item.DrYz5IsA.js} +4 -4
- package/dist/chunks/{structured-list-item.DQiPKhOI.js.map → structured-list-item.DrYz5IsA.js.map} +1 -1
- package/dist/chunks/{summary-grid-item-custom.B941Kdvq.js → summary-grid-item-custom.MloQOKnI.js} +4 -4
- package/dist/chunks/{summary-grid-item-custom.B941Kdvq.js.map → summary-grid-item-custom.MloQOKnI.js.map} +1 -1
- package/dist/chunks/{tag.CPhtHjDD.js → tag.D0imyBj_.js} +2 -2
- package/dist/chunks/{tag.CPhtHjDD.js.map → tag.D0imyBj_.js.map} +1 -1
- package/dist/chunks/textarea.meOoBSoa.js +267 -0
- package/dist/chunks/textarea.meOoBSoa.js.map +1 -0
- package/dist/chunks/{timeline-item.Cap9MXkH.js → timeline-item.BF6w6sUT.js} +181 -168
- package/dist/chunks/timeline-item.BF6w6sUT.js.map +1 -0
- package/dist/chunks/{tooltip.CTR3s-Rm.js → tooltip.C0jTO2wt.js} +2 -2
- package/dist/chunks/{tooltip.CTR3s-Rm.js.map → tooltip.C0jTO2wt.js.map} +1 -1
- package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.WNVsOZdp.js → tutorial.vue_vue_type_script_setup_true_lang.PX3UIJgR.js} +5 -5
- package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.WNVsOZdp.js.map → tutorial.vue_vue_type_script_setup_true_lang.PX3UIJgR.js.map} +1 -1
- package/dist/chunks/{use-cached-selected-values.BQBWFTvi.js → use-cached-selected-values.Bh2VFRA-.js} +3 -3
- package/dist/chunks/use-cached-selected-values.Bh2VFRA-.js.map +1 -0
- package/dist/code-snippet.js +1 -1
- package/dist/dashboard-template.js +1 -1
- package/dist/dashed-underline.js +1 -1
- package/dist/data-grid-template.js +1 -1
- package/dist/data-grid.js +1 -1
- package/dist/date-picker.js +1 -1
- package/dist/date-range-picker.js +1 -1
- package/dist/dropdown.js +11 -10
- package/dist/dropdown.js.map +1 -1
- package/dist/filter-bar.js +1 -1
- package/dist/header.js +1 -1
- package/dist/index.js +241 -236
- package/dist/index.js.map +1 -1
- package/dist/info-icon.js +1 -1
- package/dist/input-field.js +1 -1
- package/dist/inspector.js +6 -0
- package/dist/inspector.js.map +1 -0
- package/dist/internal.js +30 -31
- package/dist/menu.js +1 -1
- package/dist/modal-fullscreen.js +1 -1
- package/dist/modal.js +2 -2
- package/dist/pagination.js +1 -1
- package/dist/popover.js +1 -1
- package/dist/popper-container.js +1 -1
- package/dist/radio-group.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/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 +2 -2
- package/dist/assets/avatar-image.css +0 -1
- package/dist/avatar-image.js +0 -7
- package/dist/avatar-image.js.map +0 -1
- package/dist/chunks/avatar-image.DO4w_loj.js +0 -61
- package/dist/chunks/avatar-image.DO4w_loj.js.map +0 -1
- package/dist/chunks/code-snippet.e8bxDBCO.js.map +0 -1
- package/dist/chunks/dropdown-default-textbox.-Oy2eT40.js.map +0 -1
- package/dist/chunks/dropdown-tag.C-LxVWlt.js.map +0 -1
- package/dist/chunks/dropdown.CxBlK83Q.js.map +0 -1
- package/dist/chunks/filter-bar.DmPkRBf4.js.map +0 -1
- package/dist/chunks/index.Dytpif0G.js +0 -125
- package/dist/chunks/input-field.iH1ICJkQ.js.map +0 -1
- package/dist/chunks/listbox-option-tag.Bv4-hXnG.js +0 -94
- package/dist/chunks/listbox-option-tag.Bv4-hXnG.js.map +0 -1
- package/dist/chunks/loading-button.BI32pZiW.js +0 -117
- package/dist/chunks/loading-button.BI32pZiW.js.map +0 -1
- package/dist/chunks/popper-container.B76aE-3-.js.map +0 -1
- package/dist/chunks/radio-group.B9HCffiZ.js.map +0 -1
- package/dist/chunks/search-bar.DxskyM4e.js +0 -107
- package/dist/chunks/search-bar.DxskyM4e.js.map +0 -1
- package/dist/chunks/secondary-nav.D66nxbU-.js +0 -112
- package/dist/chunks/secondary-nav.D66nxbU-.js.map +0 -1
- package/dist/chunks/textarea.CJ8xiMjv.js +0 -288
- package/dist/chunks/textarea.CJ8xiMjv.js.map +0 -1
- package/dist/chunks/timeline-item.Cap9MXkH.js.map +0 -1
- package/dist/chunks/use-cached-selected-values.BQBWFTvi.js.map +0 -1
- /package/dist/@types/packages/{vue2/src/components/button → core/src}/components/loading-button/loading-button.types.d.ts +0 -0
- /package/dist/@types/packages/{vue2 → core}/src/types/omit-strict.d.ts +0 -0
- /package/dist/@types/packages/vue2/src/components/{avatar-image → avatar/components/avatar-image}/avatar-image.types.d.ts +0 -0
- /package/dist/@types/packages/vue2/src/components/{avatar-image → avatar/components/avatar-image}/index.d.ts +0 -0
- /package/dist/@types/packages/vue2/src/components/{internal/avatar → avatar}/index.d.ts +0 -0
|
@@ -1,81 +1,81 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import { d as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { u as
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { B as
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
1
|
+
import { ref as S, watch as xe, computed as c, defineComponent as z, useSlots as $e, toRefs as Ee, openBlock as h, createBlock as k, resolveDynamicComponent as Oe, unref as l, mergeProps as A, withCtx as K, createElementVNode as X, withKeys as Ve, createVNode as Y, toHandlers as G, createSlots as ie, renderList as re, renderSlot as Z, normalizeProps as de, guardReactiveProps as ue, createElementBlock as N, toDisplayString as me, createCommentVNode as P, normalizeClass as ce, withDirectives as Q, vShow as ge, nextTick as T, useAttrs as _e, toRef as I, inject as Je, createTextVNode as Ye } from "vue";
|
|
2
|
+
import { d as he, B as Ze } from "./typography.D7onlQ9v.js";
|
|
3
|
+
import { g as H } from "./unique-id.XFfoKuc2.js";
|
|
4
|
+
import { u as Ge } from "./aria-label.CaUURpnB.js";
|
|
5
|
+
import { u as ve } from "./i18n.DY5YXG5f.js";
|
|
6
|
+
import { u as Qe } from "./use-form-layout-loading.D3lALhtC.js";
|
|
7
|
+
import { b as ne, c as q, d as Xe, B as V, a as et, D as tt } from "./dropdown-default-textbox.Bx0-dxhU.js";
|
|
8
|
+
import { B as R, a as at } from "./keyboard-navigation.Clz1jOaA.js";
|
|
9
|
+
import { a as u, B as fe, b as pe, c as lt, u as ot } from "./use-cached-selected-values.Bh2VFRA-.js";
|
|
10
|
+
import { u as nt } from "./use-has-slot.B7eQSabc.js";
|
|
11
|
+
import { F as st, E as it } from "./error-message.oV0CXm1m.js";
|
|
12
|
+
import { P as Le } from "./popper-container.50jF-_VU.js";
|
|
13
|
+
import { B as rt } from "./popover.CvUTNkQG.js";
|
|
14
|
+
import { _ } from "./_plugin-vue_export-helper.CHgC5LLL.js";
|
|
15
|
+
import { s as se } from "./events.CMzGybJJ.js";
|
|
15
16
|
import "../assets/dropdown.css";
|
|
16
|
-
|
|
17
|
-
const me = {
|
|
17
|
+
const ye = {
|
|
18
18
|
"en-US": {
|
|
19
19
|
apply: "Apply",
|
|
20
20
|
cancel: "Cancel",
|
|
21
21
|
noOptionsMatchThisSearch: "No options match this search"
|
|
22
22
|
}
|
|
23
|
-
},
|
|
24
|
-
const n =
|
|
25
|
-
|
|
26
|
-
n.value =
|
|
23
|
+
}, dt = (t, o, e, a) => {
|
|
24
|
+
const n = S(t.value), { t: r } = ve({ messages: ye });
|
|
25
|
+
xe(t, () => {
|
|
26
|
+
n.value = t.value;
|
|
27
27
|
});
|
|
28
|
-
const
|
|
29
|
-
() => JSON.stringify(n.value) === JSON.stringify(
|
|
30
|
-
),
|
|
31
|
-
a(
|
|
32
|
-
},
|
|
33
|
-
n.value =
|
|
34
|
-
},
|
|
35
|
-
|
|
36
|
-
}, p =
|
|
28
|
+
const d = c(
|
|
29
|
+
() => JSON.stringify(n.value) === JSON.stringify(t.value)
|
|
30
|
+
), f = () => {
|
|
31
|
+
a(u.SELECT, n.value), a(u.CLOSE_DROPDOWN);
|
|
32
|
+
}, b = () => {
|
|
33
|
+
n.value = t.value, a(u.CLOSE_DROPDOWN);
|
|
34
|
+
}, m = () => {
|
|
35
|
+
e.value && o.value && (n.value = t.value);
|
|
36
|
+
}, p = c(() => [
|
|
37
37
|
{
|
|
38
|
-
title:
|
|
39
|
-
event:
|
|
40
|
-
disabled:
|
|
38
|
+
title: r("apply"),
|
|
39
|
+
event: f,
|
|
40
|
+
disabled: d.value
|
|
41
41
|
},
|
|
42
42
|
{
|
|
43
|
-
title:
|
|
44
|
-
event:
|
|
43
|
+
title: r("cancel"),
|
|
44
|
+
event: b
|
|
45
45
|
}
|
|
46
|
-
]),
|
|
47
|
-
n.value = s, o.value || a(
|
|
48
|
-
},
|
|
49
|
-
|
|
50
|
-
}, O = (s) => {
|
|
51
|
-
h(s), a(d.ENTER);
|
|
46
|
+
]), i = (s) => {
|
|
47
|
+
n.value = s, o.value || a(u.SELECT, s);
|
|
48
|
+
}, x = (s) => {
|
|
49
|
+
i(s), a(u.TAB);
|
|
52
50
|
}, E = (s) => {
|
|
53
|
-
|
|
51
|
+
i(s), a(u.ENTER);
|
|
52
|
+
}, O = (s) => {
|
|
53
|
+
i(s), a(u.SPACE);
|
|
54
54
|
}, L = () => {
|
|
55
|
-
|
|
56
|
-
},
|
|
57
|
-
a(
|
|
58
|
-
},
|
|
59
|
-
[
|
|
60
|
-
[
|
|
61
|
-
[
|
|
62
|
-
[
|
|
63
|
-
[
|
|
55
|
+
b(), a(u.ESCAPE);
|
|
56
|
+
}, $ = () => {
|
|
57
|
+
a(u.SHOW_MORE);
|
|
58
|
+
}, M = {
|
|
59
|
+
[u.SELECT]: i,
|
|
60
|
+
[u.SHOW_MORE]: $,
|
|
61
|
+
[u.TAB]: x,
|
|
62
|
+
[u.SPACE]: O,
|
|
63
|
+
[u.ENTER]: E
|
|
64
64
|
};
|
|
65
65
|
return {
|
|
66
66
|
// Values
|
|
67
67
|
actions: p,
|
|
68
68
|
internalSelectedValue: n,
|
|
69
69
|
// Methods
|
|
70
|
-
listeners:
|
|
70
|
+
listeners: M,
|
|
71
71
|
onEscapeKey: L,
|
|
72
|
-
onOutsideDropdownClick:
|
|
72
|
+
onOutsideDropdownClick: m
|
|
73
73
|
};
|
|
74
|
-
},
|
|
75
|
-
i18n: { messages:
|
|
74
|
+
}, ut = z({
|
|
75
|
+
i18n: { messages: ye },
|
|
76
76
|
name: "bento-dropdown-options-container"
|
|
77
|
-
}),
|
|
78
|
-
...
|
|
77
|
+
}), ct = /* @__PURE__ */ z({
|
|
78
|
+
...ut,
|
|
79
79
|
props: {
|
|
80
80
|
/**
|
|
81
81
|
* Defines a string value that labels an interactive element.
|
|
@@ -130,8 +130,8 @@ const me = {
|
|
|
130
130
|
*/
|
|
131
131
|
lazyLoadType: {
|
|
132
132
|
type: String,
|
|
133
|
-
default:
|
|
134
|
-
validator: (
|
|
133
|
+
default: fe.AUTOMATIC,
|
|
134
|
+
validator: (t) => Object.values(fe).includes(t)
|
|
135
135
|
},
|
|
136
136
|
/**
|
|
137
137
|
* Indicates if new options are loading.
|
|
@@ -161,7 +161,7 @@ const me = {
|
|
|
161
161
|
*
|
|
162
162
|
* If enabled, hides the "Select all" checkbox in "multiple" mode.
|
|
163
163
|
*/
|
|
164
|
-
searching:
|
|
164
|
+
searching: pe.props.searching,
|
|
165
165
|
/**
|
|
166
166
|
* If enabled, dropdown will display non-selectable, static categories
|
|
167
167
|
*/
|
|
@@ -170,7 +170,7 @@ const me = {
|
|
|
170
170
|
* Reference to the DOM element or Vue component for positioning
|
|
171
171
|
* the Dropdown container.
|
|
172
172
|
*/
|
|
173
|
-
targetElement: { type:
|
|
173
|
+
targetElement: { type: Le.props.targetElement.type, required: !0 },
|
|
174
174
|
/**
|
|
175
175
|
* Enables virtual scrolling if set to true or by providing an object with itemHeight function.
|
|
176
176
|
* The itemHeight function is used to calculate the height of rendered item given it's index.
|
|
@@ -180,28 +180,28 @@ const me = {
|
|
|
180
180
|
default: !1
|
|
181
181
|
}
|
|
182
182
|
},
|
|
183
|
-
setup(
|
|
184
|
-
const a =
|
|
183
|
+
setup(t, { expose: o, emit: e }) {
|
|
184
|
+
const a = t, n = $e(), { selectedValue: r, multiple: d } = Ee(a), f = S(null), { t: b } = ve({ messages: ye }), m = c(() => a.open && !a.disabled), p = c(() => b("noOptionsMatchThisSearch")), i = c(() => ({
|
|
185
185
|
"b-dropdown-options-container--single": !(a != null && a.multiple)
|
|
186
|
-
})),
|
|
186
|
+
})), x = c(() => ({
|
|
187
187
|
"b-dropdown-options-container__listbox--single": !(a != null && a.multiple)
|
|
188
|
-
})), { actions:
|
|
189
|
-
var
|
|
190
|
-
const
|
|
191
|
-
"min-width": `${(
|
|
188
|
+
})), { actions: E, internalSelectedValue: O, listeners: L, onEscapeKey: $, onOutsideDropdownClick: M } = dt(r, d, m, e), s = c(() => a != null && a.multiple ? rt : Le), v = c(() => {
|
|
189
|
+
var w;
|
|
190
|
+
const g = {
|
|
191
|
+
"min-width": `${(w = a == null ? void 0 : a.targetElement) == null ? void 0 : w.clientWidth}px`,
|
|
192
192
|
"max-width": "min(500px, 95%)"
|
|
193
193
|
};
|
|
194
194
|
return a != null && a.multiple ? {
|
|
195
195
|
actionsLayout: "space-between",
|
|
196
|
-
actions:
|
|
196
|
+
actions: E.value,
|
|
197
197
|
divider: !0,
|
|
198
198
|
fallbackPosition: ["top-start"],
|
|
199
|
-
id:
|
|
199
|
+
id: H(`dropdown-options-${a.id}`),
|
|
200
200
|
open: a.open,
|
|
201
201
|
position: "bottom-start",
|
|
202
202
|
style: {
|
|
203
203
|
width: "auto",
|
|
204
|
-
...
|
|
204
|
+
...g
|
|
205
205
|
},
|
|
206
206
|
targetElement: a.targetElement
|
|
207
207
|
} : {
|
|
@@ -209,49 +209,49 @@ const me = {
|
|
|
209
209
|
offset: [0, 8],
|
|
210
210
|
position: "bottom-start",
|
|
211
211
|
style: {
|
|
212
|
-
display:
|
|
213
|
-
...
|
|
212
|
+
display: m.value ? "block" : "none",
|
|
213
|
+
...g
|
|
214
214
|
},
|
|
215
215
|
targetElement: a.targetElement
|
|
216
216
|
};
|
|
217
217
|
});
|
|
218
218
|
return o({
|
|
219
|
-
onOutsideDropdownClick:
|
|
220
|
-
}), (
|
|
221
|
-
class: ["b-dropdown-options-container", l(
|
|
222
|
-
"aria-label":
|
|
223
|
-
}, l(
|
|
219
|
+
onOutsideDropdownClick: M
|
|
220
|
+
}), (g, w) => (h(), k(Oe(l(s)), A({
|
|
221
|
+
class: ["b-dropdown-options-container", l(i)],
|
|
222
|
+
"aria-label": t.ariaLabel
|
|
223
|
+
}, l(v)), {
|
|
224
224
|
default: K(() => [
|
|
225
|
-
|
|
226
|
-
onKeydown:
|
|
225
|
+
X("div", {
|
|
226
|
+
onKeydown: w[0] || (w[0] = Ve(
|
|
227
227
|
//@ts-ignore
|
|
228
|
-
(...
|
|
228
|
+
(...F) => l($) && l($)(...F),
|
|
229
229
|
["esc"]
|
|
230
230
|
))
|
|
231
231
|
}, [
|
|
232
|
-
|
|
233
|
-
id:
|
|
232
|
+
Y(l(pe), A({
|
|
233
|
+
id: t.id,
|
|
234
234
|
ref_key: "dropdownOptionsListboxRef",
|
|
235
|
-
ref:
|
|
236
|
-
"aria-label":
|
|
237
|
-
class: ["b-dropdown-options-container__listbox", l(
|
|
238
|
-
"empty-state":
|
|
239
|
-
"is-option-disabled":
|
|
240
|
-
items:
|
|
241
|
-
"selected-value": l(
|
|
242
|
-
multiple: l(
|
|
243
|
-
"static-categories":
|
|
235
|
+
ref: f,
|
|
236
|
+
"aria-label": t.ariaLabel,
|
|
237
|
+
class: ["b-dropdown-options-container__listbox", l(x)],
|
|
238
|
+
"empty-state": t.emptyState,
|
|
239
|
+
"is-option-disabled": t.isOptionDisabled,
|
|
240
|
+
items: t.items,
|
|
241
|
+
"selected-value": l(O),
|
|
242
|
+
multiple: l(d),
|
|
243
|
+
"static-categories": t.staticCategories,
|
|
244
244
|
"no-results-message": l(p),
|
|
245
|
-
searching:
|
|
246
|
-
loading:
|
|
247
|
-
"lazy-load-type":
|
|
248
|
-
"has-more-items":
|
|
249
|
-
"virtual-scroll":
|
|
250
|
-
},
|
|
251
|
-
|
|
245
|
+
searching: t.searching,
|
|
246
|
+
loading: t.loading,
|
|
247
|
+
"lazy-load-type": t.lazyLoadType,
|
|
248
|
+
"has-more-items": t.hasMoreItems,
|
|
249
|
+
"virtual-scroll": t.virtualScroll
|
|
250
|
+
}, G(l(L))), ie({ _: 2 }, [
|
|
251
|
+
re(l(n), (F, W) => ({
|
|
252
252
|
name: W,
|
|
253
|
-
fn: K((
|
|
254
|
-
|
|
253
|
+
fn: K((ee) => [
|
|
254
|
+
Z(g.$slots, W, de(ue(ee)), void 0, !0)
|
|
255
255
|
])
|
|
256
256
|
}))
|
|
257
257
|
]), 1040, ["id", "aria-label", "class", "empty-state", "is-option-disabled", "items", "selected-value", "multiple", "static-categories", "no-results-message", "searching", "loading", "lazy-load-type", "has-more-items", "virtual-scroll"])
|
|
@@ -260,55 +260,55 @@ const me = {
|
|
|
260
260
|
_: 3
|
|
261
261
|
}, 16, ["aria-label", "class"]));
|
|
262
262
|
}
|
|
263
|
-
}),
|
|
264
|
-
let
|
|
265
|
-
const
|
|
263
|
+
}), ft = /* @__PURE__ */ _(ct, [["__scopeId", "data-v-cac3da66"]]);
|
|
264
|
+
let we = 0;
|
|
265
|
+
const pt = {
|
|
266
266
|
beforeCreate() {
|
|
267
|
-
this.uuid =
|
|
267
|
+
this.uuid = we.toString(), we += 1;
|
|
268
268
|
}
|
|
269
|
-
},
|
|
269
|
+
}, mt = { key: 0 }, vt = /* @__PURE__ */ X("path", {
|
|
270
270
|
fill: "#00112C",
|
|
271
271
|
d: "M5.00011 5.43922L8.00011 8.43922L11.0001 5.43922L12.0608 6.49988L8.00011 10.5605L3.93945 6.49988L5.00011 5.43922Z"
|
|
272
272
|
}, null, -1);
|
|
273
|
-
function
|
|
274
|
-
return
|
|
273
|
+
function yt(t, o, e, a, n, r) {
|
|
274
|
+
return h(), N("svg", A({ role: "img" }, t.$attrs, {
|
|
275
275
|
class: "ui-assets-icons-16",
|
|
276
276
|
xmlns: "http://www.w3.org/2000/svg",
|
|
277
277
|
width: "16",
|
|
278
278
|
height: "16",
|
|
279
279
|
fill: "none"
|
|
280
280
|
}), [
|
|
281
|
-
|
|
282
|
-
|
|
281
|
+
t.$attrs["svg-title"] ? (h(), N("title", mt, me(t.$attrs["svg-title"]), 1)) : P("", !0),
|
|
282
|
+
vt
|
|
283
283
|
], 16);
|
|
284
284
|
}
|
|
285
|
-
const
|
|
285
|
+
const bt = /* @__PURE__ */ _(pt, [["render", yt]]);
|
|
286
286
|
let Se = 0;
|
|
287
|
-
const
|
|
287
|
+
const gt = {
|
|
288
288
|
beforeCreate() {
|
|
289
289
|
this.uuid = Se.toString(), Se += 1;
|
|
290
290
|
}
|
|
291
|
-
},
|
|
291
|
+
}, ht = { key: 0 }, Lt = /* @__PURE__ */ X("path", {
|
|
292
292
|
fill: "#00112C",
|
|
293
293
|
d: "M10.9999 10.5608L7.9999 7.56077L4.9999 10.5608L3.93924 9.50011L7.9999 5.43945L12.0606 9.50011L10.9999 10.5608Z"
|
|
294
294
|
}, null, -1);
|
|
295
|
-
function
|
|
296
|
-
return
|
|
295
|
+
function wt(t, o, e, a, n, r) {
|
|
296
|
+
return h(), N("svg", A({ role: "img" }, t.$attrs, {
|
|
297
297
|
class: "ui-assets-icons-16",
|
|
298
298
|
xmlns: "http://www.w3.org/2000/svg",
|
|
299
299
|
width: "16",
|
|
300
300
|
height: "16",
|
|
301
301
|
fill: "none"
|
|
302
302
|
}), [
|
|
303
|
-
|
|
304
|
-
|
|
303
|
+
t.$attrs["svg-title"] ? (h(), N("title", ht, me(t.$attrs["svg-title"]), 1)) : P("", !0),
|
|
304
|
+
Lt
|
|
305
305
|
], 16);
|
|
306
306
|
}
|
|
307
|
-
const St = /* @__PURE__ */
|
|
307
|
+
const St = /* @__PURE__ */ _(gt, [["render", wt]]), xt = { class: "b-dropdown-small-textbox__chevron" }, $t = z({
|
|
308
308
|
name: "dropdown-small-textbox",
|
|
309
309
|
inheritAttrs: !1
|
|
310
|
-
}),
|
|
311
|
-
|
|
310
|
+
}), Et = /* @__PURE__ */ z({
|
|
311
|
+
...$t,
|
|
312
312
|
props: {
|
|
313
313
|
/**
|
|
314
314
|
* The number of additional items that have been selected in the dropdown.
|
|
@@ -367,149 +367,161 @@ const St = /* @__PURE__ */ V(bt, [["render", Lt]]), wt = { class: "b-dropdown-sm
|
|
|
367
367
|
*/
|
|
368
368
|
value: { type: String, default: "" }
|
|
369
369
|
},
|
|
370
|
-
emits: ["
|
|
371
|
-
setup(
|
|
372
|
-
const
|
|
373
|
-
[`b-dropdown-small-textbox--${
|
|
374
|
-
[`b-dropdown-small-textbox--${
|
|
375
|
-
[`b-dropdown-small-textbox--${
|
|
376
|
-
})), n =
|
|
377
|
-
o("
|
|
378
|
-
},
|
|
379
|
-
o("
|
|
380
|
-
},
|
|
381
|
-
|
|
382
|
-
|
|
370
|
+
emits: ["clear", "close", "input", "keydown", "open"],
|
|
371
|
+
setup(t, { emit: o }) {
|
|
372
|
+
const e = t, a = c(() => ({
|
|
373
|
+
[`b-dropdown-small-textbox--${ne.DISABLED}`]: e.disabled,
|
|
374
|
+
[`b-dropdown-small-textbox--${ne.READONLY}`]: e.readonly,
|
|
375
|
+
[`b-dropdown-small-textbox--${ne.OPENED}`]: e.open
|
|
376
|
+
})), n = c(() => e.open && !e.disabled && !e.readonly), r = (i) => {
|
|
377
|
+
o("input", i);
|
|
378
|
+
}, d = (i) => {
|
|
379
|
+
o("keydown", i);
|
|
380
|
+
}, f = (i) => {
|
|
381
|
+
se(i), o("open");
|
|
382
|
+
}, b = (i) => {
|
|
383
|
+
se(i), o("close");
|
|
384
|
+
}, m = (i) => {
|
|
385
|
+
se(i), o("clear");
|
|
386
|
+
}, p = {
|
|
387
|
+
[q.INPUT]: r,
|
|
388
|
+
[q.OPEN]: f,
|
|
389
|
+
[q.CLOSE]: b,
|
|
390
|
+
[q.CLEAR]: m,
|
|
391
|
+
[q.KEYDOWN]: d
|
|
383
392
|
};
|
|
384
|
-
return (
|
|
385
|
-
class:
|
|
393
|
+
return (i, x) => (h(), N("div", {
|
|
394
|
+
class: ce(["b-dropdown-small-textbox", l(a)])
|
|
386
395
|
}, [
|
|
387
|
-
|
|
396
|
+
Y(Xe, A({ ...i.$attrs, ...i.$props }, {
|
|
397
|
+
class: "b-dropdown-small-textbox__textbox",
|
|
398
|
+
size: l(V).SMALL
|
|
399
|
+
}, G(p)), {
|
|
388
400
|
icon: K(() => [
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
[
|
|
401
|
+
X("div", xt, [
|
|
402
|
+
Q(Y(l(St), { "svg-title": "opened" }, null, 512), [
|
|
403
|
+
[ge, l(n)]
|
|
392
404
|
]),
|
|
393
|
-
|
|
394
|
-
[
|
|
405
|
+
Q(Y(l(bt), { "svg-title": "closed" }, null, 512), [
|
|
406
|
+
[ge, !l(n)]
|
|
395
407
|
])
|
|
396
408
|
])
|
|
397
409
|
]),
|
|
398
410
|
_: 1
|
|
399
|
-
}, 16)
|
|
411
|
+
}, 16, ["size"])
|
|
400
412
|
], 2));
|
|
401
413
|
}
|
|
402
|
-
}), Ot = /* @__PURE__ */
|
|
414
|
+
}), Ot = /* @__PURE__ */ _(Et, [["__scopeId", "data-v-2fa2d897"]]), Ct = (t, o) => o.value.reduce((e, a) => {
|
|
403
415
|
if (a.items) {
|
|
404
416
|
const n = a.items.filter(
|
|
405
|
-
(
|
|
417
|
+
(d) => t.value.find((f) => f.value === d.value)
|
|
406
418
|
);
|
|
407
|
-
n.length === a.items.length ?
|
|
419
|
+
n.length === a.items.length ? e.push(a.label) : n.forEach(({ label: d }) => e.push(d));
|
|
408
420
|
}
|
|
409
|
-
return
|
|
410
|
-
}, []).join(", "),
|
|
411
|
-
const a =
|
|
412
|
-
var
|
|
413
|
-
return (
|
|
421
|
+
return t.value.find((n) => n.value === a.value) && e.push(a.label), e;
|
|
422
|
+
}, []).join(", "), Bt = ({ items: t, placeholder: o, selectedValues: e }) => {
|
|
423
|
+
const a = c(() => t.value.find((r) => {
|
|
424
|
+
var d;
|
|
425
|
+
return (d = r.items) == null ? void 0 : d.length;
|
|
414
426
|
}));
|
|
415
|
-
return
|
|
416
|
-
},
|
|
427
|
+
return c(() => e.value.length ? a.value ? Ct(e, t) : e.value.map(({ label: r }) => r).join(", ") : o.value || null);
|
|
428
|
+
}, Ce = (t) => {
|
|
417
429
|
var o;
|
|
418
|
-
(o =
|
|
419
|
-
},
|
|
420
|
-
inputContainerRef:
|
|
430
|
+
(o = t.value.$children) == null || o[0].$refs.textbox.focus();
|
|
431
|
+
}, Dt = ({
|
|
432
|
+
inputContainerRef: t,
|
|
421
433
|
optionsContainerRef: o,
|
|
422
|
-
selectedValueIndex:
|
|
434
|
+
selectedValueIndex: e,
|
|
423
435
|
isDropdownOpen: a,
|
|
424
436
|
isDynamicFltering: n,
|
|
425
|
-
items:
|
|
426
|
-
isMultiple:
|
|
427
|
-
},
|
|
437
|
+
items: r,
|
|
438
|
+
isMultiple: d
|
|
439
|
+
}, f, b, m) => {
|
|
428
440
|
const p = ({ detail: s }) => {
|
|
429
|
-
s.preventDefault(), a.value || (
|
|
430
|
-
var
|
|
431
|
-
|
|
441
|
+
s.preventDefault(), a.value || (b(), T(() => {
|
|
442
|
+
var v, g;
|
|
443
|
+
d ? (v = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || v[0].$el.focus() : (g = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || g[e.value].$el.focus();
|
|
432
444
|
}));
|
|
433
|
-
},
|
|
434
|
-
s.preventDefault(), a.value || (
|
|
435
|
-
var
|
|
436
|
-
(
|
|
445
|
+
}, i = ({ detail: s }) => {
|
|
446
|
+
s.preventDefault(), a.value || (b(), T(() => {
|
|
447
|
+
var v;
|
|
448
|
+
(v = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || v[0].$el.focus();
|
|
437
449
|
}));
|
|
438
|
-
},
|
|
439
|
-
a.value || (
|
|
440
|
-
var s,
|
|
441
|
-
if (
|
|
442
|
-
const
|
|
443
|
-
(s = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || s[
|
|
450
|
+
}, x = () => {
|
|
451
|
+
a.value || (b(), T(() => {
|
|
452
|
+
var s, v;
|
|
453
|
+
if (d) {
|
|
454
|
+
const g = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children;
|
|
455
|
+
(s = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || s[g.length - 1].$children[r.length - 1].$el.focus();
|
|
444
456
|
} else
|
|
445
|
-
(
|
|
457
|
+
(v = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || v[r.length - 1].$el.focus();
|
|
446
458
|
}));
|
|
447
|
-
}, O = () => {
|
|
448
|
-
a.value && (y(), Ee(e));
|
|
449
459
|
}, E = () => {
|
|
450
|
-
a.value
|
|
460
|
+
a.value && (m(), Ce(t));
|
|
461
|
+
}, O = () => {
|
|
462
|
+
a.value || b(), T(() => {
|
|
451
463
|
var s;
|
|
452
464
|
(s = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || s[0].$el.focus();
|
|
453
465
|
});
|
|
454
466
|
}, L = ({ detail: s }) => {
|
|
455
|
-
s.preventDefault(),
|
|
456
|
-
var
|
|
457
|
-
|
|
467
|
+
s.preventDefault(), f(), a.value && T(() => {
|
|
468
|
+
var v, g;
|
|
469
|
+
d ? (v = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || v[0].$el.focus() : (g = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || g[e.value].$el.focus();
|
|
458
470
|
});
|
|
459
|
-
},
|
|
460
|
-
|
|
461
|
-
var s,
|
|
462
|
-
|
|
471
|
+
}, $ = () => {
|
|
472
|
+
f(), a.value && T(() => {
|
|
473
|
+
var s, v;
|
|
474
|
+
d ? (s = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || s[0].$el.focus() : (v = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || v[e.value].$el.focus();
|
|
463
475
|
});
|
|
464
476
|
};
|
|
465
|
-
return
|
|
477
|
+
return c(() => ({
|
|
466
478
|
...n.value ? {} : { [R.SPACE]: L },
|
|
467
|
-
[R.ENTER]:
|
|
479
|
+
[R.ENTER]: $,
|
|
468
480
|
[R.ARROW_DOWN]: p,
|
|
469
|
-
[R.ARROW_UP]:
|
|
470
|
-
[R.END]:
|
|
471
|
-
[R.ESCAPE]:
|
|
472
|
-
[R.HOME]:
|
|
481
|
+
[R.ARROW_UP]: i,
|
|
482
|
+
[R.END]: x,
|
|
483
|
+
[R.ESCAPE]: E,
|
|
484
|
+
[R.HOME]: O
|
|
473
485
|
}));
|
|
474
|
-
},
|
|
486
|
+
}, It = ({ inputContainerRef: t, isDropdownOpen: o }, e) => {
|
|
475
487
|
const a = () => {
|
|
476
|
-
o.value &&
|
|
477
|
-
|
|
488
|
+
o.value && e(), T(() => {
|
|
489
|
+
Ce(t);
|
|
478
490
|
});
|
|
479
491
|
};
|
|
480
492
|
return {
|
|
481
|
-
[
|
|
482
|
-
[
|
|
483
|
-
[
|
|
484
|
-
[
|
|
493
|
+
[u.ENTER]: a,
|
|
494
|
+
[u.ESCAPE]: a,
|
|
495
|
+
[u.TAB]: a,
|
|
496
|
+
[u.SPACE]: a
|
|
485
497
|
};
|
|
486
498
|
};
|
|
487
|
-
function
|
|
488
|
-
const a =
|
|
489
|
-
return
|
|
490
|
-
|
|
491
|
-
}),
|
|
492
|
-
if (!a.value ||
|
|
499
|
+
function Rt(t, o, e) {
|
|
500
|
+
const a = S(t), n = S(o), r = (f, b = []) => b.flatMap((m) => m.label.toLocaleLowerCase().includes(f) ? [m, ...r(f, m.items)] : m.items ? [...r(f, m.items)] : []);
|
|
501
|
+
return xe(a, () => {
|
|
502
|
+
e !== void 0 && e(a.value);
|
|
503
|
+
}), c(() => {
|
|
504
|
+
if (!a.value || e !== void 0)
|
|
493
505
|
return n.value;
|
|
494
|
-
const
|
|
495
|
-
return
|
|
506
|
+
const f = a.value.toLocaleLowerCase();
|
|
507
|
+
return r(f, n.value);
|
|
496
508
|
});
|
|
497
509
|
}
|
|
498
|
-
const
|
|
510
|
+
const Be = {
|
|
499
511
|
"en-US": {
|
|
500
512
|
all: "All",
|
|
501
513
|
clearSearch: "Clear filter",
|
|
502
514
|
ariaLabelFallback: "Dropdown"
|
|
503
515
|
}
|
|
504
|
-
},
|
|
505
|
-
i18n: { messages:
|
|
516
|
+
}, Tt = Symbol("input field component injection key"), At = z({
|
|
517
|
+
i18n: { messages: Be },
|
|
506
518
|
name: "b-dropdown",
|
|
507
519
|
components: {
|
|
508
|
-
DropdownInputDefault:
|
|
520
|
+
DropdownInputDefault: tt,
|
|
509
521
|
DropdownInputSmall: Ot
|
|
510
522
|
}
|
|
511
|
-
}),
|
|
512
|
-
...
|
|
523
|
+
}), Nt = /* @__PURE__ */ z({
|
|
524
|
+
...At,
|
|
513
525
|
props: {
|
|
514
526
|
/**
|
|
515
527
|
* @deprecated from version 2.0.0. Use the aria-label attribute instead.
|
|
@@ -596,8 +608,8 @@ const Ce = {
|
|
|
596
608
|
*/
|
|
597
609
|
lazyLoadType: {
|
|
598
610
|
type: String,
|
|
599
|
-
default:
|
|
600
|
-
validator: (
|
|
611
|
+
default: pe.props.lazyLoadType.default,
|
|
612
|
+
validator: (t) => Object.values(fe).includes(t)
|
|
601
613
|
},
|
|
602
614
|
/*
|
|
603
615
|
* If enabled, the user will be able to select multiple items.
|
|
@@ -637,7 +649,7 @@ const Ce = {
|
|
|
637
649
|
size: {
|
|
638
650
|
type: String,
|
|
639
651
|
default: null,
|
|
640
|
-
validator: (
|
|
652
|
+
validator: (t) => Object.values(V).includes(t)
|
|
641
653
|
},
|
|
642
654
|
/**
|
|
643
655
|
* If enabled, dropdown will display non-selectable, static categories
|
|
@@ -666,203 +678,202 @@ const Ce = {
|
|
|
666
678
|
}
|
|
667
679
|
},
|
|
668
680
|
emits: ["input", "show-more"],
|
|
669
|
-
setup(
|
|
670
|
-
var
|
|
671
|
-
const
|
|
672
|
-
I(
|
|
673
|
-
I(
|
|
674
|
-
I(
|
|
675
|
-
),
|
|
681
|
+
setup(t, { emit: o }) {
|
|
682
|
+
var be;
|
|
683
|
+
const e = t, a = _e(), n = $e(), r = nt(n), { t: d } = ve({ messages: Be }), f = S(null), b = S(null), m = S(null), p = S(!1), i = H("bento-dropdown-options-container"), x = H("dropdown-label"), E = H("dropdown-description"), O = H("dropdown-error"), { isReadOnly: L } = Qe(I(e, "readonly")), { cachedSelectedListboxOptions: $, cachedListboxSelectedValues: M, setCachedValues: s } = lt(
|
|
684
|
+
I(e, "items"),
|
|
685
|
+
I(e, "value"),
|
|
686
|
+
I(e, "multiple")
|
|
687
|
+
), v = S(a["aria-label"]), { ariaLabel: g, label: w } = Ee(e), F = Ge({
|
|
676
688
|
// TODO: take ariaLabel ref away when aria-label prop is removed
|
|
677
|
-
ariaLabel:
|
|
678
|
-
label:
|
|
679
|
-
defaultFallback:
|
|
680
|
-
}), W =
|
|
681
|
-
"b-dropdown--condensed":
|
|
682
|
-
})),
|
|
683
|
-
"b-dropdown__description--error": !!
|
|
684
|
-
})), D =
|
|
685
|
-
items:
|
|
686
|
-
placeholder: I(
|
|
687
|
-
selectedValues:
|
|
688
|
-
}),
|
|
689
|
-
if (
|
|
690
|
-
return
|
|
691
|
-
({ value:
|
|
689
|
+
ariaLabel: g || v,
|
|
690
|
+
label: w,
|
|
691
|
+
defaultFallback: d("ariaLabelFallback")
|
|
692
|
+
}), W = e.size === V.SMALL || Je(Tt, !1), ee = c(() => W ? V.SMALL : V.DEFAULT), De = c(() => ({
|
|
693
|
+
"b-dropdown--condensed": e.condensed
|
|
694
|
+
})), Ie = c(() => ({
|
|
695
|
+
"b-dropdown__description--error": !!e.errorMessage
|
|
696
|
+
})), D = S(""), J = I(e, "items"), Re = Rt(D, J, (be = e == null ? void 0 : e.search) == null ? void 0 : be.searchEvent), te = c(() => e.dynamicFiltering && !!D.value), Te = Bt({
|
|
697
|
+
items: J,
|
|
698
|
+
placeholder: I(e, "placeholder"),
|
|
699
|
+
selectedValues: $
|
|
700
|
+
}), Ae = c(() => {
|
|
701
|
+
if (e != null && e.multiple && Array.isArray(e.value))
|
|
702
|
+
return e.items.filter(
|
|
703
|
+
({ value: y }) => (e == null ? void 0 : e.value) && (e == null ? void 0 : e.value).includes(y)
|
|
692
704
|
);
|
|
693
|
-
if (!
|
|
694
|
-
const
|
|
695
|
-
(B) => B.items.some((j) => j.value ===
|
|
705
|
+
if (!e.multiple && e.staticCategories) {
|
|
706
|
+
const y = e.items.find(
|
|
707
|
+
(B) => B.items.some((j) => j.value === e.value)
|
|
696
708
|
);
|
|
697
|
-
return
|
|
709
|
+
return y ? y.items.find((B) => B.value === e.value) : null;
|
|
698
710
|
}
|
|
699
|
-
return
|
|
700
|
-
}),
|
|
701
|
-
const
|
|
702
|
-
return
|
|
703
|
-
}), { isMultiLevelSelect: Me, flattenedItemsList:
|
|
704
|
-
var
|
|
705
|
-
if (
|
|
706
|
-
const C = (
|
|
707
|
-
return !
|
|
711
|
+
return e.items.find(({ value: y }) => y === (e == null ? void 0 : e.value));
|
|
712
|
+
}), Ne = c(() => {
|
|
713
|
+
const y = e.items.findIndex(({ value: C }) => e.value === C);
|
|
714
|
+
return y > 0 ? y : 0;
|
|
715
|
+
}), { isMultiLevelSelect: Me, flattenedItemsList: ke } = ot(J), Pe = c(() => {
|
|
716
|
+
var y;
|
|
717
|
+
if (e.multiple) {
|
|
718
|
+
const C = (y = e == null ? void 0 : e.value) == null ? void 0 : y.length, B = Me.value ? ke.value.length : J.value.length;
|
|
719
|
+
return !e.hasMoreItems && B === C ? d("all") : C;
|
|
708
720
|
}
|
|
709
721
|
return null;
|
|
710
|
-
}),
|
|
711
|
-
() => `${
|
|
712
|
-
),
|
|
722
|
+
}), Ke = c(
|
|
723
|
+
() => `${e.description ? E : ""} ${e.errorMessage ? O : ""}`.trim() || null
|
|
724
|
+
), ze = () => {
|
|
713
725
|
L.value || (p.value = !0);
|
|
714
|
-
}, te = () => {
|
|
715
|
-
p.value = !1;
|
|
716
726
|
}, ae = () => {
|
|
717
|
-
|
|
727
|
+
p.value = !1;
|
|
728
|
+
}, le = () => {
|
|
729
|
+
L.value || (p.value = !p.value, te.value && (D.value = ""));
|
|
718
730
|
}, Fe = () => {
|
|
719
|
-
|
|
720
|
-
},
|
|
721
|
-
|
|
722
|
-
},
|
|
723
|
-
o(
|
|
724
|
-
},
|
|
731
|
+
te.value && (D.value = ""), p.value && (p.value = !1, m.value.onOutsideDropdownClick());
|
|
732
|
+
}, We = (y) => {
|
|
733
|
+
e.multiple || (D.value = "", p.value = !1), s(y), o("input", M.value);
|
|
734
|
+
}, je = () => {
|
|
735
|
+
o(u.SHOW_MORE);
|
|
736
|
+
}, Ue = Dt(
|
|
725
737
|
{
|
|
726
|
-
inputContainerRef:
|
|
727
|
-
optionsContainerRef:
|
|
728
|
-
selectedValueIndex:
|
|
738
|
+
inputContainerRef: f,
|
|
739
|
+
optionsContainerRef: m,
|
|
740
|
+
selectedValueIndex: Ne,
|
|
729
741
|
isDropdownOpen: p,
|
|
730
|
-
isDynamicFltering: I(
|
|
731
|
-
items:
|
|
732
|
-
isMultiple:
|
|
742
|
+
isDynamicFltering: I(e, "dynamicFiltering"),
|
|
743
|
+
items: e.items,
|
|
744
|
+
isMultiple: e.multiple
|
|
733
745
|
},
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
),
|
|
746
|
+
le,
|
|
747
|
+
ze,
|
|
748
|
+
ae
|
|
749
|
+
), qe = It(
|
|
738
750
|
{
|
|
739
|
-
inputContainerRef:
|
|
751
|
+
inputContainerRef: f,
|
|
740
752
|
isDropdownOpen: p
|
|
741
753
|
},
|
|
742
|
-
|
|
743
|
-
),
|
|
744
|
-
[
|
|
745
|
-
[
|
|
746
|
-
[
|
|
747
|
-
...
|
|
754
|
+
ae
|
|
755
|
+
), He = {
|
|
756
|
+
[u.CLOSE_DROPDOWN]: ae,
|
|
757
|
+
[u.SELECT]: We,
|
|
758
|
+
[u.SHOW_MORE]: je,
|
|
759
|
+
...qe
|
|
748
760
|
};
|
|
749
|
-
return
|
|
761
|
+
return e.error && he(
|
|
750
762
|
'BentoDropdown "error" property',
|
|
751
763
|
`Use the BentoDropdown "errorMessage" property instead to indicate that there is a modifier error.
|
|
752
764
|
Having the field as "undefined" will hide/remove the error.
|
|
753
765
|
<bento-dropdown errorMessage="Error message text" />`,
|
|
754
766
|
"2.0.0"
|
|
755
|
-
),
|
|
767
|
+
), e.size && he('BentoDropdown "size" property', "Do not use. Only 'default' size should be used.", "2.0.0"), (y, C) => {
|
|
756
768
|
var B;
|
|
757
|
-
return
|
|
758
|
-
class:
|
|
769
|
+
return Q((h(), N("div", {
|
|
770
|
+
class: ce(["b-dropdown", l(De)])
|
|
759
771
|
}, [
|
|
760
|
-
l(
|
|
772
|
+
l(w) ? (h(), k(l(st), {
|
|
761
773
|
key: 0,
|
|
762
|
-
id: l(
|
|
763
|
-
condensed:
|
|
764
|
-
label: l(
|
|
765
|
-
"tooltip-text":
|
|
766
|
-
optional:
|
|
767
|
-
required:
|
|
774
|
+
id: l(x),
|
|
775
|
+
condensed: t.condensed,
|
|
776
|
+
label: l(w),
|
|
777
|
+
"tooltip-text": t.tooltipText,
|
|
778
|
+
optional: t.optional,
|
|
779
|
+
required: t.required
|
|
768
780
|
}, null, 8, ["id", "condensed", "label", "tooltip-text", "optional", "required"])) : P("", !0),
|
|
769
|
-
|
|
781
|
+
Q((h(), N("div", A({
|
|
770
782
|
ref_key: "inputContainerRefWrapper",
|
|
771
|
-
ref:
|
|
772
|
-
},
|
|
773
|
-
(
|
|
783
|
+
ref: b
|
|
784
|
+
}, G(l(Ue), !0)), [
|
|
785
|
+
(h(), k(Oe(l(ee)), {
|
|
774
786
|
ref_key: "inputContainerRef",
|
|
775
|
-
ref:
|
|
776
|
-
condensed:
|
|
787
|
+
ref: f,
|
|
788
|
+
condensed: t.condensed,
|
|
777
789
|
value: D.value,
|
|
778
|
-
"additional-items-selected": l(
|
|
779
|
-
ariaControls: l(
|
|
790
|
+
"additional-items-selected": l(Pe),
|
|
791
|
+
ariaControls: l(i),
|
|
780
792
|
ariaExpanded: p.value,
|
|
781
|
-
"aria-labelledby": l(
|
|
782
|
-
"aria-describedby": l(
|
|
783
|
-
"aria-label": l(
|
|
793
|
+
"aria-labelledby": l(w) ? l(x) : null,
|
|
794
|
+
"aria-describedby": l(Ke),
|
|
795
|
+
"aria-label": l(F),
|
|
784
796
|
"aria-readonly": l(L),
|
|
785
797
|
readonly: l(L),
|
|
786
|
-
disabled:
|
|
787
|
-
"display-value": l(
|
|
788
|
-
"dynamic-filtering":
|
|
789
|
-
"is-invalid": !!
|
|
790
|
-
multiple:
|
|
798
|
+
disabled: t.disabled,
|
|
799
|
+
"display-value": l(Te),
|
|
800
|
+
"dynamic-filtering": t.dynamicFiltering,
|
|
801
|
+
"is-invalid": !!t.errorMessage || t.error,
|
|
802
|
+
multiple: t.multiple,
|
|
791
803
|
open: p.value,
|
|
792
|
-
"selected-value-item": l(W) ? void 0 : l(
|
|
793
|
-
"show-slot-content-in-multiple":
|
|
804
|
+
"selected-value-item": l(W) ? void 0 : l(Ae),
|
|
805
|
+
"show-slot-content-in-multiple": t.showSlotContentInMultiple,
|
|
794
806
|
onInput: C[0] || (C[0] = (j) => D.value = j),
|
|
795
|
-
onOpen:
|
|
796
|
-
onClose:
|
|
797
|
-
},
|
|
798
|
-
|
|
807
|
+
onOpen: le,
|
|
808
|
+
onClose: le
|
|
809
|
+
}, ie({ _: 2 }, [
|
|
810
|
+
re(l(n), (j, U) => ({
|
|
799
811
|
name: U,
|
|
800
|
-
fn: K((
|
|
801
|
-
|
|
812
|
+
fn: K((oe) => [
|
|
813
|
+
Z(y.$slots, U, de(ue(oe)), void 0, !0)
|
|
802
814
|
])
|
|
803
815
|
}))
|
|
804
816
|
]), 1064, ["condensed", "value", "additional-items-selected", "ariaControls", "ariaExpanded", "aria-labelledby", "aria-describedby", "aria-label", "aria-readonly", "readonly", "disabled", "display-value", "dynamic-filtering", "is-invalid", "multiple", "open", "selected-value-item", "show-slot-content-in-multiple"]))
|
|
805
817
|
], 16)), [
|
|
806
|
-
[l(
|
|
818
|
+
[l(at)]
|
|
807
819
|
]),
|
|
808
|
-
|
|
820
|
+
f.value ? (h(), k(l(ft), A({
|
|
809
821
|
key: 1,
|
|
810
|
-
id: l(
|
|
822
|
+
id: l(i),
|
|
811
823
|
ref_key: "optionsContainerRef",
|
|
812
|
-
ref:
|
|
813
|
-
"aria-label": l(
|
|
814
|
-
"empty-state":
|
|
815
|
-
"debounce-time": (B =
|
|
816
|
-
disabled:
|
|
817
|
-
"is-option-disabled":
|
|
818
|
-
items: l(
|
|
819
|
-
multiple:
|
|
820
|
-
"static-categories":
|
|
824
|
+
ref: m,
|
|
825
|
+
"aria-label": l(F),
|
|
826
|
+
"empty-state": t.emptyState,
|
|
827
|
+
"debounce-time": (B = t.search) == null ? void 0 : B.debounceTime,
|
|
828
|
+
disabled: t.disabled,
|
|
829
|
+
"is-option-disabled": t.isOptionDisabled,
|
|
830
|
+
items: l(Re),
|
|
831
|
+
multiple: t.multiple,
|
|
832
|
+
"static-categories": t.staticCategories,
|
|
821
833
|
open: p.value,
|
|
822
|
-
"selected-value": l(
|
|
823
|
-
searching: l(
|
|
824
|
-
"target-element":
|
|
825
|
-
loading:
|
|
826
|
-
"has-more-items":
|
|
827
|
-
"lazy-load-type":
|
|
828
|
-
"virtual-scroll":
|
|
829
|
-
},
|
|
830
|
-
|
|
834
|
+
"selected-value": l($),
|
|
835
|
+
searching: l(te),
|
|
836
|
+
"target-element": b.value,
|
|
837
|
+
loading: t.loading,
|
|
838
|
+
"has-more-items": t.hasMoreItems,
|
|
839
|
+
"lazy-load-type": t.lazyLoadType,
|
|
840
|
+
"virtual-scroll": t.virtualScroll
|
|
841
|
+
}, G(He)), ie({ _: 2 }, [
|
|
842
|
+
re(l(n), (j, U) => ({
|
|
831
843
|
name: U,
|
|
832
|
-
fn: K((
|
|
833
|
-
|
|
844
|
+
fn: K((oe) => [
|
|
845
|
+
Z(y.$slots, U, de(ue(oe)), void 0, !0)
|
|
834
846
|
])
|
|
835
847
|
}))
|
|
836
848
|
]), 1040, ["id", "aria-label", "empty-state", "debounce-time", "disabled", "is-option-disabled", "items", "multiple", "static-categories", "open", "selected-value", "searching", "target-element", "loading", "has-more-items", "lazy-load-type", "virtual-scroll"])) : P("", !0),
|
|
837
|
-
|
|
849
|
+
t.errorMessage ? (h(), k(l(it), {
|
|
838
850
|
key: 2,
|
|
839
|
-
id: l(
|
|
840
|
-
"error-message":
|
|
851
|
+
id: l(O),
|
|
852
|
+
"error-message": t.errorMessage,
|
|
841
853
|
class: "b-dropdown__error-message"
|
|
842
854
|
}, null, 8, ["id", "error-message"])) : P("", !0),
|
|
843
|
-
|
|
855
|
+
t.description || l(r)("description") ? (h(), k(l(Ze), {
|
|
844
856
|
key: 3,
|
|
845
|
-
id: l(
|
|
846
|
-
class:
|
|
857
|
+
id: l(E),
|
|
858
|
+
class: ce(["b-dropdown__description", l(Ie)]),
|
|
847
859
|
el: "span"
|
|
848
860
|
}, {
|
|
849
861
|
default: K(() => [
|
|
850
|
-
|
|
851
|
-
|
|
862
|
+
Z(y.$slots, "description", {}, () => [
|
|
863
|
+
Ye(me(t.description), 1)
|
|
852
864
|
], !0)
|
|
853
865
|
]),
|
|
854
866
|
_: 3
|
|
855
867
|
}, 8, ["id", "class"])) : P("", !0)
|
|
856
868
|
], 2)), [
|
|
857
|
-
[l(
|
|
869
|
+
[l(et), Fe]
|
|
858
870
|
]);
|
|
859
871
|
};
|
|
860
872
|
}
|
|
861
|
-
}),
|
|
873
|
+
}), Zt = /* @__PURE__ */ _(Nt, [["__scopeId", "data-v-690ac639"]]);
|
|
862
874
|
export {
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
It as u
|
|
875
|
+
Zt as B,
|
|
876
|
+
Tt as I,
|
|
877
|
+
Rt as u
|
|
867
878
|
};
|
|
868
|
-
//# sourceMappingURL=dropdown.
|
|
879
|
+
//# sourceMappingURL=dropdown.CoVT4i0B.js.map
|