@adyen/bento-vue3 1.43.0 → 1.44.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/packages/vue2/src/components/button/components/button-actions/composables/use-stack-buttons/use-stack-buttons.d.ts +10 -0
- package/dist/@types/packages/vue2/src/components/card/card.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/checkbox/checkbox.vue.d.ts +3 -3
- package/dist/@types/packages/vue2/src/components/checkbox/components/checkbox-group/checkbox-group.vue.d.ts +8 -8
- package/dist/@types/packages/vue2/src/components/code-snippet/code-snippet.vue.d.ts +50 -32
- package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-config-settings/data-grid-config-settings.vue.d.ts +3 -3
- package/dist/@types/packages/vue2/src/components/data-grid/data-grid.vue.d.ts +3 -3
- package/dist/@types/packages/vue2/src/components/date-picker/date-picker.vue.d.ts +21 -15
- package/dist/@types/packages/vue2/src/components/date-range-picker/components/date-range-picker-calendar/date-range-picker-calendar.vue.d.ts +56 -38
- package/dist/@types/packages/vue2/src/components/date-range-picker/date-range-picker.vue.d.ts +77 -53
- package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-base-textbox/dropdown-base-textbox.vue.d.ts +6 -4
- package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-default-textbox/dropdown-default-textbox.vue.d.ts +4 -2
- package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-small-textbox/dropdown-small-textbox.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/dropdown/dropdown.vue.d.ts +20 -12
- package/dist/@types/packages/vue2/src/components/empty-state/empty-state.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/file-uploader/file-uploader.types.d.ts +6 -2
- package/dist/@types/packages/vue2/src/components/filter-bar/components/all-filters-modal/all-filters-modal.vue.d.ts +228 -180
- package/dist/@types/packages/vue2/src/components/filter-bar/components/base-filter/base-filter.vue.d.ts +6 -6
- package/dist/@types/packages/vue2/src/components/filter-bar/components/boolean-filter/boolean-filter.vue.d.ts +12 -12
- package/dist/@types/packages/vue2/src/components/filter-bar/components/date-filter/date-filter.vue.d.ts +27 -21
- package/dist/@types/packages/vue2/src/components/filter-bar/components/date-range-filter/date-range-filter.vue.d.ts +139 -97
- package/dist/@types/packages/vue2/src/components/filter-bar/components/filter-bar-button/filter-bar-button.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/filter-bar/components/input-filter/input-filter.vue.d.ts +15 -15
- package/dist/@types/packages/vue2/src/components/filter-bar/components/range-filter/range-filter.vue.d.ts +15 -15
- package/dist/@types/packages/vue2/src/components/filter-bar/filter-bar.vue.d.ts +208 -160
- package/dist/@types/packages/vue2/src/components/header/header.vue.d.ts +9 -0
- package/dist/@types/packages/vue2/src/components/input-field/input-field.vue.d.ts +3 -3
- package/dist/@types/packages/vue2/src/components/input-field-password/input-field-password.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/internal/button-actions-with-menu/button-actions-with-menu.keys.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/internal/button-actions-with-menu/button-actions-with-menu.vue.d.ts +16 -1
- package/dist/@types/packages/vue2/src/components/internal/button-actions-with-menu/index.d.ts +2 -0
- package/dist/@types/packages/vue2/src/components/internal/checkbox-input/checkbox-input.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/internal/controls-group/controls-group.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/internal/field-label/field-label.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/internal/index.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-multi-select/components/listbox-multi-select-options/components/listbox-multi-select-category/listbox-multi-select-category.vue.d.ts +3 -3
- package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-multi-select/components/listbox-multi-select-options/listbox-multi-select-options.vue.d.ts +6 -6
- package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-multi-select/listbox-multi-select.vue.d.ts +9 -9
- package/dist/@types/packages/vue2/src/components/internal/listbox/listbox.vue.d.ts +15 -15
- package/dist/@types/packages/vue2/src/components/internal/radio-input/radio-input.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/internal/tooltip/tooltip.vue.d.ts +5 -5
- package/dist/@types/packages/vue2/src/components/menu/components/menu-item-list/menu-item-list.vue.d.ts +15 -0
- package/dist/@types/packages/vue2/src/components/menu/menu.vue.d.ts +48 -3
- package/dist/@types/packages/vue2/src/components/modal/components/base-modal/base-modal.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/modal/components/modal-default/modal-default.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/modal/components/modal-dialog/modal-dialog.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/modal/components/modal-page/modal-page.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/modal/modal.vue.d.ts +7 -7
- package/dist/@types/packages/vue2/src/components/modal-fullscreen/components/modal-fullscreen-page.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/modal-fullscreen/modal-fullscreen.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/popover/popover.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/popper-container/popper-container.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/promo-banner/promo-banner.vue.d.ts +2 -2
- package/dist/@types/packages/vue2/src/components/radio-group/radio-group.vue.d.ts +2 -2
- package/dist/@types/packages/vue2/src/components/selection-card/components/selection-card-group/selection-card-group.vue.d.ts +3 -3
- package/dist/@types/packages/vue2/src/components/sidepanel/components/sidepanel-page.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item/summary-grid-item.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item-amount/summary-grid-item-amount.vue.d.ts +2 -2
- package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item-custom/summary-grid-item-custom.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item-numeric/summary-grid-item-numeric.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item-percentage/summary-grid-item-percentage.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item-text/summary-grid-item-text.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/textarea/textarea.vue.d.ts +6 -4
- package/dist/@types/packages/vue2/src/components/timeline/timeline.vue.d.ts +6 -4
- package/dist/@types/packages/vue2/src/composables/use-form-validate/use-form.d.ts +9 -6
- package/dist/@types/packages/vue2/src/composables/use-form-validate/use-form.types.d.ts +5 -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/base-modal.css +1 -1
- package/dist/assets/button-actions-with-menu.css +1 -1
- package/dist/assets/button-actions.css +1 -1
- package/dist/assets/card.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/file-uploader.css +1 -1
- package/dist/assets/header.css +1 -1
- package/dist/assets/inspector.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/selection-card-group.css +1 -1
- package/dist/assets/sidepanel.css +1 -1
- package/dist/assets/textarea.css +1 -1
- package/dist/button.js +7 -8
- package/dist/button.js.map +1 -1
- package/dist/card.js +1 -1
- package/dist/checkbox.js +2 -2
- package/dist/chunks/{action-bar.COQrEUYU.js → action-bar.B-_JS43H.js} +10 -9
- package/dist/chunks/action-bar.B-_JS43H.js.map +1 -0
- package/dist/chunks/{base-modal.ku0lyHOs.js → base-modal.BR_pB6eH.js} +2 -2
- package/dist/chunks/{base-modal.ku0lyHOs.js.map → base-modal.BR_pB6eH.js.map} +1 -1
- package/dist/chunks/button-actions-with-menu.GT_kNv28.js +119 -0
- package/dist/chunks/button-actions-with-menu.GT_kNv28.js.map +1 -0
- package/dist/chunks/button-actions.BjlQS6tm.js +322 -0
- package/dist/chunks/button-actions.BjlQS6tm.js.map +1 -0
- package/dist/chunks/{card.D_XL2TWr.js → card.BrEfcUoE.js} +2 -2
- package/dist/chunks/{card.D_XL2TWr.js.map → card.BrEfcUoE.js.map} +1 -1
- package/dist/chunks/{checkbox-group.BUmkYc2R.js → checkbox-group.C5IweVVx.js} +2 -2
- package/dist/chunks/{checkbox-group.BUmkYc2R.js.map → checkbox-group.C5IweVVx.js.map} +1 -1
- package/dist/chunks/{checkbox.L94hTcPY.js → checkbox.B72ok3Yu.js} +15 -15
- package/dist/chunks/{checkbox.L94hTcPY.js.map → checkbox.B72ok3Yu.js.map} +1 -1
- package/dist/chunks/{code-snippet.DbUGxmYi.js → code-snippet.S5NdUu0p.js} +4 -4
- package/dist/chunks/{code-snippet.DbUGxmYi.js.map → code-snippet.S5NdUu0p.js.map} +1 -1
- package/dist/chunks/{dashboard-section.YU5gKDEJ.js → dashboard-section.LWxBcOV_.js} +2 -2
- package/dist/chunks/{dashboard-section.YU5gKDEJ.js.map → dashboard-section.LWxBcOV_.js.map} +1 -1
- package/dist/chunks/{dashed-underline.BKfUevuM.js → dashed-underline.CRlWNPrd.js} +2 -2
- package/dist/chunks/{dashed-underline.BKfUevuM.js.map → dashed-underline.CRlWNPrd.js.map} +1 -1
- package/dist/chunks/{data-grid-template.DI27ou71.js → data-grid-template.BZVeRN6g.js} +2 -2
- package/dist/chunks/{data-grid-template.DI27ou71.js.map → data-grid-template.BZVeRN6g.js.map} +1 -1
- package/dist/chunks/{data-grid.DgPWs1hH.js → data-grid.CKDW-rbM.js} +10 -10
- package/dist/chunks/{data-grid.DgPWs1hH.js.map → data-grid.CKDW-rbM.js.map} +1 -1
- package/dist/chunks/{date-picker.DDsfecHp.js → date-picker.BrZ2X1nQ.js} +3 -3
- package/dist/chunks/{date-picker.DDsfecHp.js.map → date-picker.BrZ2X1nQ.js.map} +1 -1
- package/dist/chunks/{date-range-picker.DjPmRy0E.js → date-range-picker.4y2goCI8.js} +6 -6
- package/dist/chunks/{date-range-picker.DjPmRy0E.js.map → date-range-picker.4y2goCI8.js.map} +1 -1
- package/dist/chunks/{dropdown-default-textbox.CcRQ1f4U.js → dropdown-default-textbox.ZjVeMHVC.js} +131 -120
- package/dist/chunks/{dropdown-default-textbox.CcRQ1f4U.js.map → dropdown-default-textbox.ZjVeMHVC.js.map} +1 -1
- package/dist/chunks/{dropdown-tag.BKDmDRSv.js → dropdown-tag.ClKm4xAo.js} +2 -2
- package/dist/chunks/{dropdown-tag.BKDmDRSv.js.map → dropdown-tag.ClKm4xAo.js.map} +1 -1
- package/dist/chunks/dropdown.Sj2OLuEF.js +911 -0
- package/dist/chunks/{dropdown.DpjMobyf.js.map → dropdown.Sj2OLuEF.js.map} +1 -1
- package/dist/chunks/es6.C-HLzYPA.js +11 -0
- package/dist/chunks/{es6.b4enG1py.js.map → es6.C-HLzYPA.js.map} +1 -1
- package/dist/chunks/{file-uploader.cRbwpcAw.js → file-uploader.BgRbkW2V.js} +368 -365
- package/dist/chunks/file-uploader.BgRbkW2V.js.map +1 -0
- package/dist/chunks/{filter-bar.BwJTrH5U.js → filter-bar.CM1FZ02d.js} +16 -17
- package/dist/chunks/{filter-bar.BwJTrH5U.js.map → filter-bar.CM1FZ02d.js.map} +1 -1
- package/dist/chunks/{footer-actions.DvIVWqWv.js → footer-actions.Dvsb0g5Y.js} +2 -2
- package/dist/chunks/{footer-actions.DvIVWqWv.js.map → footer-actions.Dvsb0g5Y.js.map} +1 -1
- package/dist/chunks/{header.C0NBlBJv.js → header.8BzBNgxj.js} +23 -23
- package/dist/chunks/{header.C0NBlBJv.js.map → header.8BzBNgxj.js.map} +1 -1
- package/dist/chunks/{input-field-password.DxNS4MmO.js → input-field-password.CXsERnQX.js} +3 -3
- package/dist/chunks/{input-field-password.DxNS4MmO.js.map → input-field-password.CXsERnQX.js.map} +1 -1
- package/dist/chunks/{input-field.BQKEQIZd.js → input-field.C-7_iMIS.js} +2 -2
- package/dist/chunks/{input-field.BQKEQIZd.js.map → input-field.C-7_iMIS.js.map} +1 -1
- package/dist/chunks/{menu.BpqOdkxR.js → menu.hDynz4lc.js} +132 -104
- package/dist/chunks/menu.hDynz4lc.js.map +1 -0
- package/dist/chunks/{modal-fullscreen.DtgTb1Xh.js → modal-fullscreen.BCGaxVNb.js} +2 -2
- package/dist/chunks/{modal-fullscreen.DtgTb1Xh.js.map → modal-fullscreen.BCGaxVNb.js.map} +1 -1
- package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.CjD91zJo.js → modal.vue_vue_type_script_setup_true_lang.DJXx8ftn.js} +4 -4
- package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.CjD91zJo.js.map → modal.vue_vue_type_script_setup_true_lang.DJXx8ftn.js.map} +1 -1
- package/dist/chunks/{pagination.C34l_EYf.js → pagination.C9kqX5tD.js} +2 -2
- package/dist/chunks/{pagination.C34l_EYf.js.map → pagination.C9kqX5tD.js.map} +1 -1
- package/dist/chunks/{popover.D9Zw4w9l.js → popover.DwGgnCyn.js} +2 -2
- package/dist/chunks/{popover.D9Zw4w9l.js.map → popover.DwGgnCyn.js.map} +1 -1
- package/dist/chunks/{search-bar.Dy0dBek2.js → search-bar.DPC0amNg.js} +3 -3
- package/dist/chunks/{search-bar.Dy0dBek2.js.map → search-bar.DPC0amNg.js.map} +1 -1
- package/dist/chunks/{secondary-nav.DYFnrUIK.js → secondary-nav.DH7aXddE.js} +3 -3
- package/dist/chunks/{secondary-nav.DYFnrUIK.js.map → secondary-nav.DH7aXddE.js.map} +1 -1
- package/dist/chunks/{selection-card-group.BY8o4PYF.js → selection-card-group.DDBJ423n.js} +19 -19
- package/dist/chunks/{selection-card-group.BY8o4PYF.js.map → selection-card-group.DDBJ423n.js.map} +1 -1
- package/dist/chunks/{sidepanel.BywianGe.js → sidepanel.8NclWh0V.js} +2 -2
- package/dist/chunks/{sidepanel.BywianGe.js.map → sidepanel.8NclWh0V.js.map} +1 -1
- package/dist/chunks/{teleport.CI0k6eaC.js → teleport.B255JhsV.js} +26 -17
- package/dist/chunks/teleport.B255JhsV.js.map +1 -0
- package/dist/chunks/{textarea.vAp6HFi9.js → textarea.D1weaQCC.js} +72 -68
- package/dist/chunks/{textarea.vAp6HFi9.js.map → textarea.D1weaQCC.js.map} +1 -1
- package/dist/chunks/{timeline-item.ND_EMuwP.js → timeline-item.BDYrjKhM.js} +3 -3
- package/dist/chunks/{timeline-item.ND_EMuwP.js.map → timeline-item.BDYrjKhM.js.map} +1 -1
- package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.LBw_ALfS.js → tutorial.vue_vue_type_script_setup_true_lang.ltZUbc6M.js} +4 -4
- package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.LBw_ALfS.js.map → tutorial.vue_vue_type_script_setup_true_lang.ltZUbc6M.js.map} +1 -1
- package/dist/chunks/{use-cached-selected-values.BOZK76mN.js → use-cached-selected-values.B6beyyvX.js} +3 -3
- package/dist/chunks/{use-cached-selected-values.BOZK76mN.js.map → use-cached-selected-values.B6beyyvX.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 +1 -1
- package/dist/date-range-picker.js +1 -1
- package/dist/dropdown.js +4 -4
- package/dist/file-uploader.js +1 -1
- package/dist/filter-bar.js +1 -1
- package/dist/header.js +1 -1
- package/dist/index.js +67 -68
- package/dist/index.js.map +1 -1
- package/dist/input-field-password.js +1 -1
- package/dist/input-field.js +1 -1
- package/dist/internal.js +28 -24
- package/dist/internal.js.map +1 -1
- 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/search-bar.js +2 -2
- package/dist/secondary-nav.js +1 -1
- package/dist/selection-card.js +1 -1
- package/dist/sidepanel.js +1 -1
- package/dist/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/@types/packages/vue2/src/components/button/button.demo.d.ts +0 -6
- package/dist/assets/loading-button.css +0 -1
- package/dist/chunks/action-bar.COQrEUYU.js.map +0 -1
- package/dist/chunks/button-actions-with-menu.Bn7Kdx4v.js +0 -106
- package/dist/chunks/button-actions-with-menu.Bn7Kdx4v.js.map +0 -1
- package/dist/chunks/button-actions.Bjfo46Q_.js +0 -150
- package/dist/chunks/button-actions.Bjfo46Q_.js.map +0 -1
- package/dist/chunks/dropdown.DpjMobyf.js +0 -907
- package/dist/chunks/es6.b4enG1py.js +0 -10
- package/dist/chunks/file-uploader.cRbwpcAw.js.map +0 -1
- package/dist/chunks/loading-button.CNWhVIPK.js +0 -137
- package/dist/chunks/loading-button.CNWhVIPK.js.map +0 -1
- package/dist/chunks/menu.BpqOdkxR.js.map +0 -1
- package/dist/chunks/teleport.CI0k6eaC.js.map +0 -1
- package/dist/chunks/use-click-outside.D6aIgS15.js +0 -14
- package/dist/chunks/use-click-outside.D6aIgS15.js.map +0 -1
|
@@ -1,18 +1,17 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as O, computed as _, resolveComponent as v, openBlock as c, createBlock as M, normalizeClass as Z, createSlots as z, withCtx as g, createVNode as S, createTextVNode as U, toDisplayString as H, createCommentVNode as R, resolveDynamicComponent as ue, ref as d, inject as Q, createElementBlock as L, mergeProps as V, toHandlers as le, renderSlot as N, onMounted as ie, Transition as ae, createElementVNode as T, withKeys as I, withModifiers as W, Fragment as X, renderList as x, normalizeStyle as ee, provide as re } from "vue";
|
|
2
2
|
import { g as j } from "./generate-uid.D-HFI38h.js";
|
|
3
|
-
import { B as de, a as q } from "./popover.
|
|
3
|
+
import { B as de, a as q } from "./popover.DwGgnCyn.js";
|
|
4
4
|
import { B as te, D as ce } from "./divider.ugNXYI-T.js";
|
|
5
|
-
import {
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
5
|
+
import { B as me, u as fe } from "./teleport.B255JhsV.js";
|
|
6
|
+
import { u as pe } from "./use-has-slot.B7eQSabc.js";
|
|
7
|
+
import { u as ve } from "./i18n.CPGoe9tN.js";
|
|
8
8
|
import { _ as w } from "./_plugin-vue_export-helper.CHgC5LLL.js";
|
|
9
|
-
import { B as
|
|
10
|
-
import { B as be } from "./teleport.CI0k6eaC.js";
|
|
9
|
+
import { B as be } from "./toggle-button.Bf77_tMh.js";
|
|
11
10
|
import { a as Ce, C as G } from "./chevron-left.NvV5m76j.js";
|
|
12
11
|
import { B as ye, a as J } from "./base-button.N4QTXNIp.js";
|
|
13
12
|
import { B as ge } from "./typography.DNzU41ah.js";
|
|
14
13
|
import "../assets/menu.css";
|
|
15
|
-
const he =
|
|
14
|
+
const he = O({
|
|
16
15
|
name: "menu-item",
|
|
17
16
|
components: { BaseButton: ye, BentoTypography: ge, ChevronRightIcon: Ce },
|
|
18
17
|
props: {
|
|
@@ -97,8 +96,8 @@ const he = N({
|
|
|
97
96
|
};
|
|
98
97
|
}
|
|
99
98
|
});
|
|
100
|
-
function Ie(e, t, m, s, r,
|
|
101
|
-
const
|
|
99
|
+
function Ie(e, t, m, s, r, i) {
|
|
100
|
+
const l = v("bento-typography"), u = v("chevron-right-icon"), p = v("base-button");
|
|
102
101
|
return c(), M(p, {
|
|
103
102
|
class: Z(["b-menu-item", e.conditionalClasses]),
|
|
104
103
|
role: "menuitem",
|
|
@@ -107,7 +106,7 @@ function Ie(e, t, m, s, r, l) {
|
|
|
107
106
|
onClick: e.onClick
|
|
108
107
|
}, z({
|
|
109
108
|
default: g(() => [
|
|
110
|
-
|
|
109
|
+
S(l, {
|
|
111
110
|
el: "span",
|
|
112
111
|
variant: "body",
|
|
113
112
|
stronger: e.isTitle,
|
|
@@ -118,7 +117,7 @@ function Ie(e, t, m, s, r, l) {
|
|
|
118
117
|
]),
|
|
119
118
|
_: 1
|
|
120
119
|
}, 8, ["stronger"]),
|
|
121
|
-
e.secondaryText ? (c(), M(
|
|
120
|
+
e.secondaryText ? (c(), M(l, {
|
|
122
121
|
key: 0,
|
|
123
122
|
el: "span",
|
|
124
123
|
variant: "body",
|
|
@@ -135,7 +134,7 @@ function Ie(e, t, m, s, r, l) {
|
|
|
135
134
|
e.icon ? {
|
|
136
135
|
name: "iconLeft",
|
|
137
136
|
fn: g(() => [
|
|
138
|
-
(c(), M(
|
|
137
|
+
(c(), M(ue(e.icon), {
|
|
139
138
|
class: "b-menu-item__icon-left",
|
|
140
139
|
"aria-hidden": "true"
|
|
141
140
|
}))
|
|
@@ -145,21 +144,21 @@ function Ie(e, t, m, s, r, l) {
|
|
|
145
144
|
e.chevron ? {
|
|
146
145
|
name: "iconRight",
|
|
147
146
|
fn: g(() => [
|
|
148
|
-
|
|
147
|
+
S(u, { "aria-hidden": "true" })
|
|
149
148
|
]),
|
|
150
149
|
key: "1"
|
|
151
150
|
} : void 0
|
|
152
151
|
]), 1032, ["class", "disabled", "onClick"]);
|
|
153
152
|
}
|
|
154
153
|
const ne = /* @__PURE__ */ w(he, [["render", Ie], ["__scopeId", "data-v-9e8afd9c"]]);
|
|
155
|
-
var
|
|
156
|
-
const
|
|
154
|
+
var B = /* @__PURE__ */ ((e) => (e.BACK = "back", e.CLOSE = "close", e.OPEN = "open", e))(B || {});
|
|
155
|
+
const Be = Symbol("menu registering injection key"), ke = {
|
|
157
156
|
name: "bento-menu-list-container"
|
|
158
|
-
}, Me = /* @__PURE__ */
|
|
159
|
-
...
|
|
157
|
+
}, Me = /* @__PURE__ */ O({
|
|
158
|
+
...ke,
|
|
160
159
|
setup(e) {
|
|
161
160
|
const t = d(), m = d({}), s = Q(
|
|
162
|
-
|
|
161
|
+
Be,
|
|
163
162
|
!1
|
|
164
163
|
);
|
|
165
164
|
if (s) {
|
|
@@ -168,13 +167,13 @@ const ke = Symbol("menu registering injection key"), Be = {
|
|
|
168
167
|
mouseleave: s == null ? void 0 : s.menuMouseLeave
|
|
169
168
|
};
|
|
170
169
|
}
|
|
171
|
-
return (r,
|
|
170
|
+
return (r, i) => (c(), L("div", V({
|
|
172
171
|
ref_key: "menuListContainerRef",
|
|
173
172
|
ref: t,
|
|
174
173
|
class: "b-menu-list-container",
|
|
175
174
|
"data-testid": "menu-list-container"
|
|
176
|
-
},
|
|
177
|
-
|
|
175
|
+
}, le(m.value, !0)), [
|
|
176
|
+
N(r.$slots, "default", {}, void 0, !0)
|
|
178
177
|
], 16));
|
|
179
178
|
}
|
|
180
179
|
}), oe = /* @__PURE__ */ w(Me, [["__scopeId", "data-v-02a3ca45"]]), A = {
|
|
@@ -182,7 +181,7 @@ const ke = Symbol("menu registering injection key"), Be = {
|
|
|
182
181
|
menuButton: "Open menu",
|
|
183
182
|
backButton: "Go back"
|
|
184
183
|
}
|
|
185
|
-
}, _e =
|
|
184
|
+
}, _e = O({
|
|
186
185
|
i18n: { messages: A },
|
|
187
186
|
name: "sub-menu-item-list",
|
|
188
187
|
components: { BentoDivider: te, MenuItem: ne, MenuListContainer: oe },
|
|
@@ -196,15 +195,15 @@ const ke = Symbol("menu registering injection key"), Be = {
|
|
|
196
195
|
required: !0
|
|
197
196
|
}
|
|
198
197
|
},
|
|
199
|
-
emits: [
|
|
198
|
+
emits: [B.CLOSE, B.BACK],
|
|
200
199
|
setup(e, { emit: t }) {
|
|
201
|
-
const m = d(null), s = d(0), r = d(e.items.length),
|
|
200
|
+
const m = d(null), s = d(0), r = d(e.items.length), i = () => t(B.CLOSE), l = () => t(B.BACK), u = _(() => {
|
|
202
201
|
var b;
|
|
203
202
|
const a = (b = e.items) == null ? void 0 : b.map((C) => ({
|
|
204
203
|
...C,
|
|
205
204
|
indent: !C.icon,
|
|
206
205
|
isTitle: !1,
|
|
207
|
-
clickHandler:
|
|
206
|
+
clickHandler: i
|
|
208
207
|
}));
|
|
209
208
|
return [
|
|
210
209
|
{
|
|
@@ -215,48 +214,48 @@ const ke = Symbol("menu registering injection key"), Be = {
|
|
|
215
214
|
isTitle: !0,
|
|
216
215
|
disabled: !1,
|
|
217
216
|
indent: !1,
|
|
218
|
-
handler:
|
|
219
|
-
clickHandler:
|
|
217
|
+
handler: l,
|
|
218
|
+
clickHandler: l,
|
|
220
219
|
addDivider: !0
|
|
221
220
|
},
|
|
222
221
|
...a
|
|
223
222
|
];
|
|
224
223
|
}), p = async () => {
|
|
225
|
-
var a, b, C,
|
|
226
|
-
(h = (
|
|
224
|
+
var a, b, C, k, h;
|
|
225
|
+
(h = (k = (C = (b = (a = m.value) == null ? void 0 : a.children) == null ? void 0 : b[s.value]) == null ? void 0 : C.children) == null ? void 0 : k[0]) == null || h.focus();
|
|
227
226
|
};
|
|
228
|
-
|
|
227
|
+
ie(async () => {
|
|
229
228
|
setTimeout(() => p(), 150);
|
|
230
229
|
});
|
|
231
230
|
const o = () => {
|
|
232
|
-
s.value > 0 ? (s.value -= 1,
|
|
231
|
+
s.value > 0 ? (s.value -= 1, u.value[s.value].disabled && o()) : s.value = r.value, p();
|
|
233
232
|
}, n = () => {
|
|
234
|
-
s.value < r.value ? (s.value += 1,
|
|
233
|
+
s.value < r.value ? (s.value += 1, u.value[s.value].disabled && n()) : s.value = 0, p();
|
|
235
234
|
};
|
|
236
235
|
return {
|
|
237
236
|
// Enums
|
|
238
|
-
BentoMenuEvent:
|
|
237
|
+
BentoMenuEvent: B,
|
|
239
238
|
// Values
|
|
240
239
|
subMenuItemListRefLocal: m,
|
|
241
240
|
subMenuFocusedIndex: s,
|
|
242
241
|
ChevronLeftIcon: G,
|
|
243
|
-
computedItems:
|
|
242
|
+
computedItems: u,
|
|
244
243
|
// Methods
|
|
245
|
-
closeMenu:
|
|
246
|
-
onBackButton:
|
|
244
|
+
closeMenu: i,
|
|
245
|
+
onBackButton: l,
|
|
247
246
|
focusPrevious: o,
|
|
248
247
|
focusNext: n
|
|
249
248
|
};
|
|
250
249
|
}
|
|
251
250
|
});
|
|
252
|
-
function $e(e, t, m, s, r,
|
|
253
|
-
const
|
|
251
|
+
function $e(e, t, m, s, r, i) {
|
|
252
|
+
const l = v("menu-item"), u = v("bento-divider"), p = v("menu-list-container");
|
|
254
253
|
return c(), M(ae, {
|
|
255
254
|
name: "b-sub-menu-item-list__transition",
|
|
256
255
|
appear: ""
|
|
257
256
|
}, {
|
|
258
257
|
default: g(() => [
|
|
259
|
-
|
|
258
|
+
S(p, { class: "b-sub-menu-item-list" }, {
|
|
260
259
|
default: g(() => [
|
|
261
260
|
T("ul", {
|
|
262
261
|
ref: "subMenuItemListRefLocal",
|
|
@@ -268,11 +267,11 @@ function $e(e, t, m, s, r, l) {
|
|
|
268
267
|
t[2] || (t[2] = I(W((...o) => e.onBackButton && e.onBackButton(...o), ["stop"]), ["esc"]))
|
|
269
268
|
]
|
|
270
269
|
}, [
|
|
271
|
-
(c(!0),
|
|
270
|
+
(c(!0), L(X, null, x(e.computedItems, (o, n) => (c(), L("li", {
|
|
272
271
|
key: `sub-menu-item-list-item-${n}`,
|
|
273
272
|
role: "none"
|
|
274
273
|
}, [
|
|
275
|
-
|
|
274
|
+
S(l, {
|
|
276
275
|
text: o.text,
|
|
277
276
|
handler: o.handler,
|
|
278
277
|
"secondary-text": o.secondaryText,
|
|
@@ -284,7 +283,7 @@ function $e(e, t, m, s, r, l) {
|
|
|
284
283
|
tabindex: n === e.subMenuFocusedIndex ? "0" : "-1",
|
|
285
284
|
onClick: o.clickHandler
|
|
286
285
|
}, null, 8, ["text", "handler", "secondary-text", "icon", "is-title", "disabled", "critical", "indent", "tabindex", "onClick"]),
|
|
287
|
-
o.addDivider ? (c(), M(
|
|
286
|
+
o.addDivider ? (c(), M(u, {
|
|
288
287
|
key: 0,
|
|
289
288
|
class: "b-sub-menu-item-list__divider"
|
|
290
289
|
})) : R("", !0)
|
|
@@ -297,9 +296,9 @@ function $e(e, t, m, s, r, l) {
|
|
|
297
296
|
_: 1
|
|
298
297
|
});
|
|
299
298
|
}
|
|
300
|
-
const
|
|
299
|
+
const Se = /* @__PURE__ */ w(_e, [["render", $e], ["__scopeId", "data-v-621db243"]]), Le = O({
|
|
301
300
|
name: "menu-item-list",
|
|
302
|
-
components: { BentoDivider: te, MenuItem: ne, MenuListContainer: oe, SubMenuItemList:
|
|
301
|
+
components: { BentoDivider: te, MenuItem: ne, MenuListContainer: oe, SubMenuItemList: Se },
|
|
303
302
|
props: {
|
|
304
303
|
/**
|
|
305
304
|
* The data to be displayed in the list
|
|
@@ -321,11 +320,18 @@ const Le = /* @__PURE__ */ w(_e, [["render", $e], ["__scopeId", "data-v-621db243
|
|
|
321
320
|
focusLastElement: {
|
|
322
321
|
type: Boolean,
|
|
323
322
|
default: !1
|
|
323
|
+
},
|
|
324
|
+
/**
|
|
325
|
+
* If set to true, closes the menu when an item is clicked.
|
|
326
|
+
*/
|
|
327
|
+
closeMenuOnItemSelect: {
|
|
328
|
+
type: Boolean,
|
|
329
|
+
default: !0
|
|
324
330
|
}
|
|
325
331
|
},
|
|
326
|
-
emits: [
|
|
332
|
+
emits: [B.CLOSE, "menu-item-click"],
|
|
327
333
|
setup(e, { emit: t }) {
|
|
328
|
-
const m = d(null), s = d(null), r = d(null),
|
|
334
|
+
const m = d(null), s = d(null), r = d(null), i = d(!1), l = d(null), u = d(e.focusLastElement ? e.data.length - 1 : 0), p = d(0), o = d(e.data.length - 1), n = _(() => e.data.some((f) => f.icon)), a = _(() => e.indentItems || n.value ? e.data.map((f) => {
|
|
329
335
|
let y = !1;
|
|
330
336
|
return f.icon || (y = !0), {
|
|
331
337
|
...f,
|
|
@@ -334,24 +340,28 @@ const Le = /* @__PURE__ */ w(_e, [["render", $e], ["__scopeId", "data-v-621db243
|
|
|
334
340
|
};
|
|
335
341
|
}) : e.data), b = () => {
|
|
336
342
|
var f, y, $;
|
|
337
|
-
return ($ = (y = (f = m.value) == null ? void 0 : f.children[
|
|
338
|
-
}, C = () => t(
|
|
339
|
-
f.items
|
|
343
|
+
return ($ = (y = (f = m.value) == null ? void 0 : f.children[u.value]) == null ? void 0 : y.children[0]) == null ? void 0 : $.focus();
|
|
344
|
+
}, C = () => t(B.CLOSE), k = (f, y) => {
|
|
345
|
+
if (f.items) {
|
|
346
|
+
l.value = y, i.value = !0;
|
|
347
|
+
return;
|
|
348
|
+
}
|
|
349
|
+
l.value = y, i.value = !1, e.closeMenuOnItemSelect && C(), t("menu-item-click");
|
|
340
350
|
}, h = () => {
|
|
341
|
-
|
|
351
|
+
u.value > 0 ? (u.value -= 1, a.value[u.value].disabled && h()) : u.value = o.value, b();
|
|
342
352
|
}, E = () => {
|
|
343
|
-
|
|
353
|
+
u.value < o.value ? (u.value += 1, a.value[u.value].disabled && E()) : u.value = 0, b();
|
|
344
354
|
}, P = (f, y) => {
|
|
345
355
|
var $;
|
|
346
|
-
($ = f == null ? void 0 : f.items) != null && $.length && (
|
|
356
|
+
($ = f == null ? void 0 : f.items) != null && $.length && (l.value = y, i.value = !0);
|
|
347
357
|
}, K = () => {
|
|
348
|
-
|
|
358
|
+
l.value && i.value && (l.value = null, i.value = !1);
|
|
349
359
|
}, D = () => {
|
|
350
|
-
|
|
360
|
+
i.value = !1, l.value = null, b();
|
|
351
361
|
}, F = _(() => {
|
|
352
362
|
var f, y, $;
|
|
353
363
|
return ($ = (y = (f = r.value) == null ? void 0 : f[0]) == null ? void 0 : y.$el) == null ? void 0 : $.offsetHeight;
|
|
354
|
-
}), se = _(() =>
|
|
364
|
+
}), se = _(() => i.value ? `${F.value}px` : "");
|
|
355
365
|
return {
|
|
356
366
|
// Values
|
|
357
367
|
menuItemListRef: m,
|
|
@@ -359,12 +369,12 @@ const Le = /* @__PURE__ */ w(_e, [["render", $e], ["__scopeId", "data-v-621db243
|
|
|
359
369
|
subMenuItemListRef: r,
|
|
360
370
|
computedData: a,
|
|
361
371
|
computedHeight: se,
|
|
362
|
-
focusedIndex:
|
|
372
|
+
focusedIndex: u,
|
|
363
373
|
subMenuFocusedIndex: p,
|
|
364
|
-
showSubMenu:
|
|
365
|
-
visibleSubMenuIndex:
|
|
374
|
+
showSubMenu: i,
|
|
375
|
+
visibleSubMenuIndex: l,
|
|
366
376
|
// Methods
|
|
367
|
-
menuItemClick:
|
|
377
|
+
menuItemClick: k,
|
|
368
378
|
closeMenu: C,
|
|
369
379
|
focusPrevious: h,
|
|
370
380
|
focusNext: E,
|
|
@@ -374,8 +384,8 @@ const Le = /* @__PURE__ */ w(_e, [["render", $e], ["__scopeId", "data-v-621db243
|
|
|
374
384
|
};
|
|
375
385
|
}
|
|
376
386
|
}), Ee = ["onKeydown"];
|
|
377
|
-
function Re(e, t, m, s, r,
|
|
378
|
-
const
|
|
387
|
+
function Re(e, t, m, s, r, i) {
|
|
388
|
+
const l = v("menu-item"), u = v("bento-divider"), p = v("sub-menu-item-list"), o = v("menu-list-container");
|
|
379
389
|
return c(), M(o, {
|
|
380
390
|
ref: "menuItemListWrapperRef",
|
|
381
391
|
style: ee({ height: e.computedHeight })
|
|
@@ -392,9 +402,9 @@ function Re(e, t, m, s, r, l) {
|
|
|
392
402
|
t[4] || (t[4] = I((...n) => e.closeMenu && e.closeMenu(...n), ["tab"]))
|
|
393
403
|
]
|
|
394
404
|
}, [
|
|
395
|
-
(c(!0),
|
|
396
|
-
var b, C,
|
|
397
|
-
return c(),
|
|
405
|
+
(c(!0), L(X, null, x(e.computedData, (n, a) => {
|
|
406
|
+
var b, C, k, h;
|
|
407
|
+
return c(), L("li", {
|
|
398
408
|
key: `menu-item-${a}`,
|
|
399
409
|
class: "b-menu-item-list__item",
|
|
400
410
|
role: "none",
|
|
@@ -403,7 +413,7 @@ function Re(e, t, m, s, r, l) {
|
|
|
403
413
|
t[0] || (t[0] = I((E) => e.focusLeft(), ["left"]))
|
|
404
414
|
]
|
|
405
415
|
}, [
|
|
406
|
-
|
|
416
|
+
S(l, {
|
|
407
417
|
text: n.text,
|
|
408
418
|
handler: (b = n.items) != null && b.length ? () => null : n.handler,
|
|
409
419
|
"secondary-text": n.secondaryText,
|
|
@@ -413,11 +423,11 @@ function Re(e, t, m, s, r, l) {
|
|
|
413
423
|
critical: n.critical,
|
|
414
424
|
indent: n.indent,
|
|
415
425
|
tabindex: a === e.subMenuFocusedIndex ? "0" : "-1",
|
|
416
|
-
"aria-haspopup": !!((
|
|
426
|
+
"aria-haspopup": !!((k = n.items) != null && k.length),
|
|
417
427
|
"aria-expanded": e.showSubMenu && e.visibleSubMenuIndex === a,
|
|
418
428
|
onClick: (E) => e.menuItemClick(n, a)
|
|
419
429
|
}, null, 8, ["text", "handler", "secondary-text", "icon", "chevron", "disabled", "critical", "indent", "tabindex", "aria-haspopup", "aria-expanded", "onClick"]),
|
|
420
|
-
n.addDivider ? (c(), M(
|
|
430
|
+
n.addDivider ? (c(), M(u, {
|
|
421
431
|
key: 0,
|
|
422
432
|
class: "b-menu-item-list__divider"
|
|
423
433
|
})) : R("", !0),
|
|
@@ -437,22 +447,22 @@ function Re(e, t, m, s, r, l) {
|
|
|
437
447
|
_: 1
|
|
438
448
|
}, 8, ["style"]);
|
|
439
449
|
}
|
|
440
|
-
const we = /* @__PURE__ */ w(
|
|
450
|
+
const we = /* @__PURE__ */ w(Le, [["render", Re], ["__scopeId", "data-v-cf88ddde"]]), Te = Symbol("menu inverse style injection key");
|
|
441
451
|
let Y = 0;
|
|
442
|
-
const
|
|
452
|
+
const Oe = {
|
|
443
453
|
beforeCreate() {
|
|
444
454
|
this.uuid = Y.toString(), Y += 1;
|
|
445
455
|
}
|
|
446
|
-
},
|
|
447
|
-
function Pe(e, t, m, s, r,
|
|
448
|
-
return c(),
|
|
456
|
+
}, Ne = { key: 0 };
|
|
457
|
+
function Pe(e, t, m, s, r, i) {
|
|
458
|
+
return c(), L("svg", V({ role: "img" }, e.$attrs, {
|
|
449
459
|
class: "ui-assets-icons-16",
|
|
450
460
|
xmlns: "http://www.w3.org/2000/svg",
|
|
451
461
|
width: "16",
|
|
452
462
|
height: "16",
|
|
453
463
|
fill: "none"
|
|
454
464
|
}), [
|
|
455
|
-
e.$attrs["svg-title"] ? (c(),
|
|
465
|
+
e.$attrs["svg-title"] ? (c(), L("title", Ne, H(e.$attrs["svg-title"]), 1)) : R("", !0),
|
|
456
466
|
t[0] || (t[0] = T("path", {
|
|
457
467
|
fill: "#00112C",
|
|
458
468
|
d: "M8 4C8.29667 4 8.58668 3.91203 8.83335 3.74721C9.08003 3.58238 9.27229 3.34811 9.38582 3.07403C9.49935 2.79994 9.52906 2.49834 9.47118 2.20737C9.4133 1.91639 9.27044 1.64912 9.06066 1.43934C8.85088 1.22956 8.58361 1.0867 8.29264 1.02882C8.00167 0.970945 7.70006 1.00065 7.42598 1.11418C7.15189 1.22771 6.91762 1.41997 6.7528 1.66665C6.58797 1.91332 6.5 2.20333 6.5 2.5C6.5 2.89783 6.65803 3.27936 6.93934 3.56066C7.22064 3.84197 7.60218 4 8 4Z"
|
|
@@ -467,10 +477,10 @@ function Pe(e, t, m, s, r, l) {
|
|
|
467
477
|
}, null, -1))
|
|
468
478
|
], 16);
|
|
469
479
|
}
|
|
470
|
-
const Ke = /* @__PURE__ */ w(
|
|
480
|
+
const Ke = /* @__PURE__ */ w(Oe, [["render", Pe]]), De = O({
|
|
471
481
|
i18n: { messages: A },
|
|
472
482
|
name: "bento-menu",
|
|
473
|
-
components: { BentoToggleButton:
|
|
483
|
+
components: { BentoToggleButton: be, BentoPopover: de, BentoTeleport: me, MenuItemList: we, OptionsVerticalIcon: Ke },
|
|
474
484
|
props: {
|
|
475
485
|
/**
|
|
476
486
|
* Object containing props to change the menu button appearance. Accepts the same props present in BentoButton.
|
|
@@ -481,6 +491,14 @@ const Ke = /* @__PURE__ */ w(Ne, [["render", Pe]]), De = N({
|
|
|
481
491
|
variant: "secondary"
|
|
482
492
|
})
|
|
483
493
|
},
|
|
494
|
+
/**
|
|
495
|
+
* Controls if the menu should close when an item is clicked.
|
|
496
|
+
* Defaults to `true`.
|
|
497
|
+
*/
|
|
498
|
+
closeMenuOnItemSelect: {
|
|
499
|
+
type: Boolean,
|
|
500
|
+
default: !0
|
|
501
|
+
},
|
|
484
502
|
/**
|
|
485
503
|
* The data to be displayed in the list
|
|
486
504
|
*/
|
|
@@ -511,6 +529,15 @@ const Ke = /* @__PURE__ */ w(Ne, [["render", Pe]]), De = N({
|
|
|
511
529
|
type: Number,
|
|
512
530
|
default: null
|
|
513
531
|
},
|
|
532
|
+
/**
|
|
533
|
+
* Returns focus to the menu button after popover is closed.
|
|
534
|
+
* Disable if focus management is delegated to the parent component.
|
|
535
|
+
* Defaults to `true`.
|
|
536
|
+
*/
|
|
537
|
+
revertFocusToButton: {
|
|
538
|
+
type: Boolean,
|
|
539
|
+
default: !0
|
|
540
|
+
},
|
|
514
541
|
/**
|
|
515
542
|
* Can be used to set the inner teleport component to render the menu's popover in the root `body` DOM node
|
|
516
543
|
* (or `dialog` if popover is inside a dialog).
|
|
@@ -520,9 +547,9 @@ const Ke = /* @__PURE__ */ w(Ne, [["render", Pe]]), De = N({
|
|
|
520
547
|
default: !1
|
|
521
548
|
}
|
|
522
549
|
},
|
|
523
|
-
emits: [
|
|
550
|
+
emits: [B.CLOSE, B.OPEN, "menu-item-click"],
|
|
524
551
|
setup(e, { emit: t, slots: m }) {
|
|
525
|
-
const { t: s } =
|
|
552
|
+
const { t: s } = ve({ messages: A }), r = d(null), i = d(!1), l = d(!1), u = d(null), p = j("menu"), o = j("menu-popover"), n = Q(Te, d(!1));
|
|
526
553
|
re(ce, n);
|
|
527
554
|
const a = _(() => ({
|
|
528
555
|
"b-menu--inverse": n.value
|
|
@@ -532,35 +559,35 @@ const Ke = /* @__PURE__ */ w(Ne, [["render", Pe]]), De = N({
|
|
|
532
559
|
variant: "secondary",
|
|
533
560
|
...e.button
|
|
534
561
|
};
|
|
535
|
-
}),
|
|
536
|
-
|
|
562
|
+
}), k = () => {
|
|
563
|
+
i.value = !0, t(B.OPEN);
|
|
537
564
|
}, h = () => {
|
|
538
|
-
|
|
565
|
+
i.value && (i.value = !1, e.revertFocusToButton && r.value.$el.focus(), t(B.CLOSE));
|
|
539
566
|
}, E = (F) => {
|
|
540
|
-
F.stopPropagation(),
|
|
567
|
+
F.stopPropagation(), i.value ? h() : k();
|
|
541
568
|
}, P = () => {
|
|
542
|
-
|
|
569
|
+
l.value = !1, k();
|
|
543
570
|
}, K = () => {
|
|
544
|
-
|
|
571
|
+
l.value = !0, k();
|
|
545
572
|
}, D = () => {
|
|
546
573
|
t("menu-item-click");
|
|
547
574
|
};
|
|
548
|
-
return
|
|
575
|
+
return fe(u, h, { ignore: [r] }), {
|
|
549
576
|
// Refs
|
|
550
|
-
popoverRef:
|
|
577
|
+
popoverRef: u,
|
|
551
578
|
menuButtonRef: r,
|
|
552
579
|
// Values
|
|
553
580
|
menuId: p,
|
|
554
581
|
popoverId: o,
|
|
555
|
-
showMenu:
|
|
582
|
+
showMenu: i,
|
|
556
583
|
computedButtonPropsWithDefaults: C,
|
|
557
584
|
computedMenuWidth: b,
|
|
558
|
-
isLastElementFocused:
|
|
585
|
+
isLastElementFocused: l,
|
|
559
586
|
// Classes
|
|
560
587
|
computedClasses: a,
|
|
561
588
|
isInverseColorSet: n,
|
|
562
589
|
// Methods
|
|
563
|
-
hasSlot:
|
|
590
|
+
hasSlot: pe(m),
|
|
564
591
|
onKeyDown: P,
|
|
565
592
|
onKeyUp: K,
|
|
566
593
|
closeMenu: h,
|
|
@@ -571,9 +598,9 @@ const Ke = /* @__PURE__ */ w(Ne, [["render", Pe]]), De = N({
|
|
|
571
598
|
};
|
|
572
599
|
}
|
|
573
600
|
});
|
|
574
|
-
function Fe(e, t, m, s, r,
|
|
575
|
-
const
|
|
576
|
-
return c(),
|
|
601
|
+
function Fe(e, t, m, s, r, i) {
|
|
602
|
+
const l = v("options-vertical-icon"), u = v("bento-toggle-button"), p = v("menu-item-list"), o = v("bento-popover"), n = v("bento-teleport");
|
|
603
|
+
return c(), L("div", {
|
|
577
604
|
class: Z([e.computedClasses, "b-menu"]),
|
|
578
605
|
onKeydown: [
|
|
579
606
|
t[0] || (t[0] = I((...a) => e.onKeyDown && e.onKeyDown(...a), ["down"])),
|
|
@@ -581,7 +608,7 @@ function Fe(e, t, m, s, r, l) {
|
|
|
581
608
|
t[2] || (t[2] = I((...a) => e.closeMenu && e.closeMenu(...a), ["esc"]))
|
|
582
609
|
]
|
|
583
610
|
}, [
|
|
584
|
-
|
|
611
|
+
S(u, V({
|
|
585
612
|
ref: "menuButtonRef",
|
|
586
613
|
"aria-haspopup": "true"
|
|
587
614
|
}, e.computedButtonPropsWithDefaults, {
|
|
@@ -593,8 +620,8 @@ function Fe(e, t, m, s, r, l) {
|
|
|
593
620
|
!e.hasSlot("default") || e.hasSlot("iconLeft") ? {
|
|
594
621
|
name: "iconLeft",
|
|
595
622
|
fn: g(() => [
|
|
596
|
-
|
|
597
|
-
|
|
623
|
+
N(e.$slots, "iconLeft", {}, () => [
|
|
624
|
+
S(l, {
|
|
598
625
|
title: e.t("menuButton")
|
|
599
626
|
}, null, 8, ["title"])
|
|
600
627
|
], !0)
|
|
@@ -604,14 +631,14 @@ function Fe(e, t, m, s, r, l) {
|
|
|
604
631
|
e.hasSlot("default") ? {
|
|
605
632
|
name: "default",
|
|
606
633
|
fn: g(() => [
|
|
607
|
-
|
|
634
|
+
N(e.$slots, "default", {}, void 0, !0)
|
|
608
635
|
]),
|
|
609
636
|
key: "1"
|
|
610
637
|
} : void 0,
|
|
611
638
|
e.hasSlot("iconRight") ? {
|
|
612
639
|
name: "iconRight",
|
|
613
640
|
fn: g(() => [
|
|
614
|
-
|
|
641
|
+
N(e.$slots, "iconRight", {}, void 0, !0)
|
|
615
642
|
]),
|
|
616
643
|
key: "2"
|
|
617
644
|
} : void 0
|
|
@@ -645,12 +672,13 @@ function Fe(e, t, m, s, r, l) {
|
|
|
645
672
|
"without-space": ""
|
|
646
673
|
}, {
|
|
647
674
|
default: g(() => [
|
|
648
|
-
|
|
675
|
+
S(p, {
|
|
676
|
+
"close-menu-on-item-select": e.closeMenuOnItemSelect,
|
|
649
677
|
data: e.data,
|
|
650
678
|
"focus-last-element": e.isLastElementFocused,
|
|
651
679
|
onClose: e.closeMenu,
|
|
652
680
|
onMenuItemClick: e.menuItemClick
|
|
653
|
-
}, null, 8, ["data", "focus-last-element", "onClose", "onMenuItemClick"])
|
|
681
|
+
}, null, 8, ["close-menu-on-item-select", "data", "focus-last-element", "onClose", "onMenuItemClick"])
|
|
654
682
|
]),
|
|
655
683
|
_: 1
|
|
656
684
|
}, 8, ["id", "open", "style", "target-element", "position", "fixed-positioning", "teleport"])) : R("", !0)
|
|
@@ -659,12 +687,12 @@ function Fe(e, t, m, s, r, l) {
|
|
|
659
687
|
}, 8, ["disabled"])) : R("", !0)
|
|
660
688
|
], 34);
|
|
661
689
|
}
|
|
662
|
-
const
|
|
690
|
+
const Qe = /* @__PURE__ */ w(De, [["render", Fe], ["__scopeId", "data-v-bd1c16f6"]]);
|
|
663
691
|
export {
|
|
664
|
-
|
|
665
|
-
|
|
692
|
+
Qe as B,
|
|
693
|
+
Be as D,
|
|
666
694
|
Te as M,
|
|
667
695
|
Ke as O,
|
|
668
|
-
|
|
696
|
+
B as a
|
|
669
697
|
};
|
|
670
|
-
//# sourceMappingURL=menu.
|
|
698
|
+
//# sourceMappingURL=menu.hDynz4lc.js.map
|