@adyen/bento-vue2 1.67.0 → 1.68.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/@types/index.d.ts +2066 -2264
- 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.css +1 -1
- package/dist/assets/card.css +1 -1
- package/dist/assets/checkbox.css +1 -1
- package/dist/assets/data-grid.css +1 -1
- 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/filter-bar.css +1 -1
- package/dist/assets/header-meta.css +1 -0
- package/dist/assets/header-with-views.css +1 -1
- package/dist/assets/header.css +1 -1
- package/dist/assets/input-field-phone-number.css +1 -1
- package/dist/assets/input-field.css +1 -1
- package/dist/assets/inspector.css +1 -1
- package/dist/assets/menu.css +1 -1
- package/dist/assets/modal-fullscreen.css +1 -1
- package/dist/assets/popover.css +1 -1
- package/dist/assets/sidepanel.css +1 -1
- package/dist/assets/summary-grid.css +1 -1
- package/dist/assets/textarea.css +1 -1
- package/dist/assets/use-cached-selected-values.css +1 -1
- package/dist/button.js +1 -1
- package/dist/card.js +1 -1
- package/dist/checkbox.js +2 -2
- package/dist/chunks/{action-bar.BxX3I27_.js → action-bar.Dy6tfK8c.js} +4 -4
- package/dist/chunks/{action-bar.BxX3I27_.js.map → action-bar.Dy6tfK8c.js.map} +1 -1
- package/dist/chunks/{base-modal.QGDM_kjG.js → base-modal.CkkfT6r6.js} +55 -118
- package/dist/chunks/base-modal.CkkfT6r6.js.map +1 -0
- package/dist/chunks/{button-actions-with-menu.itkbcqzk.js → button-actions-with-menu.CcxUTbsI.js} +3 -3
- package/dist/chunks/{button-actions-with-menu.itkbcqzk.js.map → button-actions-with-menu.CcxUTbsI.js.map} +1 -1
- package/dist/chunks/{button-actions.BKdI_ooV.js → button-actions.Ju27CRNG.js} +2 -2
- package/dist/chunks/button-actions.Ju27CRNG.js.map +1 -0
- package/dist/chunks/{card.BktfAMv5.js → card.CASAAsuJ.js} +2 -2
- package/dist/chunks/{card.BktfAMv5.js.map → card.CASAAsuJ.js.map} +1 -1
- package/dist/chunks/{checkbox-group.BVMGnokj.js → checkbox-group.QdX-NrSG.js} +2 -2
- package/dist/chunks/{checkbox-group.BVMGnokj.js.map → checkbox-group.QdX-NrSG.js.map} +1 -1
- package/dist/chunks/{checkbox.Bg5FM5Oa.js → checkbox.DCD6SSXC.js} +38 -37
- package/dist/chunks/checkbox.DCD6SSXC.js.map +1 -0
- package/dist/chunks/{code-snippet.DDiQ9R3o.js → code-snippet.dIKi0D7d.js} +3 -3
- package/dist/chunks/{code-snippet.DDiQ9R3o.js.map → code-snippet.dIKi0D7d.js.map} +1 -1
- package/dist/chunks/{country.Df7erZov.js → country.melpzEsY.js} +2 -2
- package/dist/chunks/{country.Df7erZov.js.map → country.melpzEsY.js.map} +1 -1
- package/dist/chunks/{dashboard-section.Beep1lY8.js → dashboard-section.DBT99mLj.js} +2 -2
- package/dist/chunks/{dashboard-section.Beep1lY8.js.map → dashboard-section.DBT99mLj.js.map} +1 -1
- package/dist/chunks/{dashed-underline.BQwLgzz6.js → dashed-underline.BbH6Lnd2.js} +2 -2
- package/dist/chunks/{dashed-underline.BQwLgzz6.js.map → dashed-underline.BbH6Lnd2.js.map} +1 -1
- package/dist/chunks/{data-grid-template.nkx0pCMA.js → data-grid-template.B2lDfM2o.js} +2 -2
- package/dist/chunks/{data-grid-template.nkx0pCMA.js.map → data-grid-template.B2lDfM2o.js.map} +1 -1
- package/dist/chunks/{data-grid.CkwZVy3a.js → data-grid.B7Z9_WDY.js} +1198 -1143
- package/dist/chunks/data-grid.B7Z9_WDY.js.map +1 -0
- package/dist/chunks/{date-picker.BLBXaDHv.js → date-picker.DGIS6Pp-.js} +2 -2
- package/dist/chunks/{date-picker.BLBXaDHv.js.map → date-picker.DGIS6Pp-.js.map} +1 -1
- package/dist/chunks/{date-range-picker.am63DgMj.js → date-range-picker.CIaKRXIQ.js} +5 -5
- package/dist/chunks/{date-range-picker.am63DgMj.js.map → date-range-picker.CIaKRXIQ.js.map} +1 -1
- package/dist/chunks/dropdown-default-textbox.94q6opSD.js.map +1 -1
- package/dist/chunks/dropdown-tag.BaosvGGZ.js +240 -0
- package/dist/chunks/dropdown-tag.BaosvGGZ.js.map +1 -0
- package/dist/chunks/{dropdown.HA6ISg2h.js → dropdown.DazYAy4B.js} +220 -363
- package/dist/chunks/dropdown.DazYAy4B.js.map +1 -0
- package/dist/chunks/es6.n1ewaW31.js.map +1 -1
- package/dist/chunks/{filter-bar.DbqsoAI1.js → filter-bar.DL19SXF1.js} +674 -669
- package/dist/chunks/filter-bar.DL19SXF1.js.map +1 -0
- package/dist/chunks/{footer-actions.BUfQFz7J.js → footer-actions.BE_zzX-e.js} +2 -2
- package/dist/chunks/{footer-actions.BUfQFz7J.js.map → footer-actions.BE_zzX-e.js.map} +1 -1
- package/dist/chunks/header-meta.CfloYa86.js +183 -0
- package/dist/chunks/header-meta.CfloYa86.js.map +1 -0
- package/dist/chunks/{header-with-views.JllLR2nW.js → header-with-views.Bxvu8mq_.js} +526 -520
- package/dist/chunks/header-with-views.Bxvu8mq_.js.map +1 -0
- package/dist/chunks/header.DvHS-PnC.js +103 -0
- package/dist/chunks/header.DvHS-PnC.js.map +1 -0
- package/dist/chunks/{input-field-password.BtOdV0gF.js → input-field-password.C1zTapiN.js} +4 -4
- package/dist/chunks/{input-field-password.BtOdV0gF.js.map → input-field-password.C1zTapiN.js.map} +1 -1
- package/dist/chunks/{input-field-phone-number.Dq-LnGag.js → input-field-phone-number.K8BYjWfa.js} +623 -607
- package/dist/chunks/{input-field-phone-number.Dq-LnGag.js.map → input-field-phone-number.K8BYjWfa.js.map} +1 -1
- package/dist/chunks/{input-field.Bg77qHT2.js → input-field.5S-pUNxA.js} +7 -7
- package/dist/chunks/input-field.5S-pUNxA.js.map +1 -0
- package/dist/chunks/{menu.EgYjFAku.js → menu.dX3_vU05.js} +154 -153
- package/dist/chunks/{menu.EgYjFAku.js.map → menu.dX3_vU05.js.map} +1 -1
- package/dist/chunks/{modal-fullscreen.BNTUOC7o.js → modal-fullscreen.DHotw1RI.js} +76 -63
- package/dist/chunks/modal-fullscreen.DHotw1RI.js.map +1 -0
- package/dist/chunks/{modal.OvB4kEGR.js → modal.eoNQ6E3U.js} +4 -4
- package/dist/chunks/{modal.OvB4kEGR.js.map → modal.eoNQ6E3U.js.map} +1 -1
- package/dist/chunks/{pagination.Dw153NzQ.js → pagination.4J7ZMyf5.js} +2 -2
- package/dist/chunks/{pagination.Dw153NzQ.js.map → pagination.4J7ZMyf5.js.map} +1 -1
- package/dist/chunks/popover.Bo4Bkudr.js +145 -0
- package/dist/chunks/popover.Bo4Bkudr.js.map +1 -0
- package/dist/chunks/popover.types.CBqyA4ly.js +6 -0
- package/dist/chunks/popover.types.CBqyA4ly.js.map +1 -0
- package/dist/chunks/{rich-text-editor.CRJRvfJn.js → rich-text-editor.BUKLdRkN.js} +2 -2
- package/dist/chunks/{rich-text-editor.CRJRvfJn.js.map → rich-text-editor.BUKLdRkN.js.map} +1 -1
- package/dist/chunks/{search-bar.BTZSePJh.js → search-bar.CuBj5FAE.js} +3 -3
- package/dist/chunks/{search-bar.BTZSePJh.js.map → search-bar.CuBj5FAE.js.map} +1 -1
- package/dist/chunks/{secondary-nav.BBhSBNn7.js → secondary-nav.C6usurfD.js} +2 -2
- package/dist/chunks/{secondary-nav.BBhSBNn7.js.map → secondary-nav.C6usurfD.js.map} +1 -1
- package/dist/chunks/{sidepanel.Dt-BnFzN.js → sidepanel.DyThBUgV.js} +2 -2
- package/dist/chunks/{sidepanel.Dt-BnFzN.js.map → sidepanel.DyThBUgV.js.map} +1 -1
- package/dist/chunks/{summary-grid.types.DsvtLg3D.js → summary-grid.types.D_FU3sUq.js} +4 -4
- package/dist/chunks/summary-grid.types.D_FU3sUq.js.map +1 -0
- package/dist/chunks/{textarea.RAU710Uw.js → textarea.UPM6N9V1.js} +7 -7
- package/dist/chunks/textarea.UPM6N9V1.js.map +1 -0
- package/dist/chunks/{timeline-item.Dz66luo5.js → timeline-item.DqLhj0Lb.js} +3 -3
- package/dist/chunks/{timeline-item.Dz66luo5.js.map → timeline-item.DqLhj0Lb.js.map} +1 -1
- package/dist/chunks/{tutorial.DAKO-fKz.js → tutorial.DRRfp81j.js} +7 -6
- package/dist/chunks/{tutorial.DAKO-fKz.js.map → tutorial.DRRfp81j.js.map} +1 -1
- package/dist/chunks/{use-cached-selected-values.DQPABFfG.js → use-cached-selected-values.0EeyFfyF.js} +413 -410
- package/dist/chunks/use-cached-selected-values.0EeyFfyF.js.map +1 -0
- package/dist/chunks/{use-country-items.HFnjuDsG.js → use-country-items.BllTb5MK.js} +2 -2
- package/dist/chunks/{use-country-items.HFnjuDsG.js.map → use-country-items.BllTb5MK.js.map} +1 -1
- package/dist/chunks/{use-country-phon-code.DVgE19zT.js → use-country-phon-code.BOaJ9PDl.js} +507 -498
- package/dist/chunks/{use-country-phon-code.DVgE19zT.js.map → use-country-phon-code.BOaJ9PDl.js.map} +1 -1
- package/dist/code-snippet.js +1 -1
- package/dist/country.js +2 -2
- 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 +3 -3
- package/dist/filter-bar.js +1 -1
- package/dist/header-with-views.js +1 -1
- package/dist/header.js +1 -1
- package/dist/index.js +155 -154
- package/dist/index.js.map +1 -1
- package/dist/input-field-password.js +1 -1
- package/dist/input-field-phone-number.js +1 -1
- package/dist/input-field.js +1 -1
- package/dist/internal.js +15 -14
- package/dist/menu.js +1 -1
- package/dist/modal-fullscreen.js +1 -1
- package/dist/modal.js +11 -11
- package/dist/pagination.js +1 -1
- package/dist/popover.js +3 -2
- package/dist/popover.js.map +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/sidepanel.js +1 -1
- package/dist/styles/bento-dark.css +10 -2
- package/dist/styles/bento-light.css +10 -2
- package/dist/styles/bento.css +10 -2
- package/dist/styles/legacy.css +10 -2
- package/dist/styles/styleguide.css +10 -2
- package/dist/summary-grid.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 +265 -51
- package/package.json +6 -6
- package/dist/assets/info-icon-with-popover.css +0 -1
- package/dist/chunks/base-modal.QGDM_kjG.js.map +0 -1
- package/dist/chunks/button-actions.BKdI_ooV.js.map +0 -1
- package/dist/chunks/checkbox.Bg5FM5Oa.js.map +0 -1
- package/dist/chunks/data-grid.CkwZVy3a.js.map +0 -1
- package/dist/chunks/dropdown-tag.DYIkCBa6.js +0 -215
- package/dist/chunks/dropdown-tag.DYIkCBa6.js.map +0 -1
- package/dist/chunks/dropdown.HA6ISg2h.js.map +0 -1
- package/dist/chunks/filter-bar.DbqsoAI1.js.map +0 -1
- package/dist/chunks/header-with-views.JllLR2nW.js.map +0 -1
- package/dist/chunks/header.04Y0unpy.js +0 -188
- package/dist/chunks/header.04Y0unpy.js.map +0 -1
- package/dist/chunks/info-icon-with-popover.B1DnkW4B.js +0 -71
- package/dist/chunks/info-icon-with-popover.B1DnkW4B.js.map +0 -1
- package/dist/chunks/input-field.Bg77qHT2.js.map +0 -1
- package/dist/chunks/modal-fullscreen.BNTUOC7o.js.map +0 -1
- package/dist/chunks/popover.BGHbPUOr.js +0 -295
- package/dist/chunks/popover.BGHbPUOr.js.map +0 -1
- package/dist/chunks/summary-grid.types.DsvtLg3D.js.map +0 -1
- package/dist/chunks/textarea.RAU710Uw.js.map +0 -1
- package/dist/chunks/use-cached-selected-values.DQPABFfG.js.map +0 -1
|
@@ -1,42 +1,43 @@
|
|
|
1
|
-
import { defineComponent as M, computed as
|
|
2
|
-
import { B as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { u as J } from "./use-
|
|
6
|
-
import {
|
|
1
|
+
import { defineComponent as M, computed as b, ref as a, inject as P, onMounted as A, watch as G, nextTick as F, useSlots as X, provide as q } from "vue";
|
|
2
|
+
import { B as W, D as V } from "./divider.Cc4JFWG_.js";
|
|
3
|
+
import { B as Y } from "./popover.Bo4Bkudr.js";
|
|
4
|
+
import { B as j } from "./popover.types.CBqyA4ly.js";
|
|
5
|
+
import { u as J } from "./use-click-outside.BnhTgpSt.js";
|
|
6
|
+
import { u as Z } from "./use-has-slot.C9lQZ6nz.js";
|
|
7
|
+
import { g as $ } from "./generate-uid.NJ8tVoha.js";
|
|
7
8
|
import { u as z } from "./i18n.BQkEbtPM.js";
|
|
8
|
-
import { B as
|
|
9
|
-
import { C as
|
|
9
|
+
import { B as Q, p as ee } from "./typography.J1v_SPG3.js";
|
|
10
|
+
import { C as te } from "./chevron-down.eYtgv5ly.js";
|
|
10
11
|
/* empty css */
|
|
11
12
|
import { n as x } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
|
|
12
13
|
import "./index.Cl4_42j5.js";
|
|
13
|
-
import { C as
|
|
14
|
-
import { a as
|
|
15
|
-
import { t as
|
|
16
|
-
import { B as
|
|
17
|
-
import { B as
|
|
14
|
+
import { C as ne, a as T } from "./chevron-right.C--ZOC9j.js";
|
|
15
|
+
import { a as D, B as oe } from "./base-button.-gx_u8Bd.js";
|
|
16
|
+
import { t as se } from "./truncate.BfIl_-71.js";
|
|
17
|
+
import { B as ue } from "./teleport.BV6zrDjA.js";
|
|
18
|
+
import { B as le } from "./toggle-button.DEVVvpkw.js";
|
|
18
19
|
import "../assets/menu.css";
|
|
19
|
-
const
|
|
20
|
-
let
|
|
21
|
-
const
|
|
20
|
+
const ae = Symbol("menu inverse style injection key");
|
|
21
|
+
let N = 0;
|
|
22
|
+
const re = {
|
|
22
23
|
beforeCreate() {
|
|
23
|
-
this.uuid =
|
|
24
|
+
this.uuid = N.toString(), N += 1;
|
|
24
25
|
}
|
|
25
26
|
};
|
|
26
27
|
var ie = function() {
|
|
27
28
|
var t = this, n = t._self._c;
|
|
28
29
|
return n("svg", t._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", t.$attrs, !1), [t.$attrs["svg-title"] ? n("title", [t._v(t._s(t.$attrs["svg-title"]))]) : t._e(), n("path", { attrs: { fill: "#001222", 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" } }), n("path", { attrs: { fill: "#001222", d: "M8 15C8.29667 15 8.58668 14.912 8.83335 14.7472C9.08003 14.5824 9.27229 14.3481 9.38582 14.074C9.49935 13.7999 9.52906 13.4983 9.47118 13.2074C9.4133 12.9164 9.27044 12.6491 9.06066 12.4393C8.85088 12.2296 8.58361 12.0867 8.29264 12.0288C8.00167 11.9709 7.70006 12.0007 7.42598 12.1142C7.15189 12.2277 6.91762 12.42 6.7528 12.6666C6.58797 12.9133 6.5 13.2033 6.5 13.5C6.5 13.8978 6.65803 14.2794 6.93934 14.5607C7.22064 14.842 7.60218 15 8 15Z" } }), n("path", { attrs: { fill: "#001222", d: "M8.83335 9.24721C8.58668 9.41203 8.29667 9.5 8 9.5C7.60218 9.5 7.22064 9.34197 6.93934 9.06066C6.65803 8.77936 6.5 8.39783 6.5 8C6.5 7.70333 6.58797 7.41332 6.7528 7.16665C6.91762 6.91997 7.15189 6.72771 7.42598 6.61418C7.70006 6.50065 8.00167 6.47094 8.29264 6.52882C8.58361 6.5867 8.85088 6.72956 9.06066 6.93934C9.27044 7.14912 9.4133 7.41639 9.47118 7.70737C9.52906 7.99834 9.49935 8.29994 9.38582 8.57403C9.27229 8.84811 9.08003 9.08238 8.83335 9.24721Z" } })]);
|
|
29
|
-
},
|
|
30
|
-
ae,
|
|
31
|
-
ie,
|
|
30
|
+
}, ce = [], fe = /* @__PURE__ */ x(
|
|
32
31
|
re,
|
|
32
|
+
ie,
|
|
33
|
+
ce,
|
|
33
34
|
!1,
|
|
34
35
|
null,
|
|
35
36
|
null
|
|
36
37
|
);
|
|
37
|
-
const
|
|
38
|
+
const de = fe.exports, me = M({
|
|
38
39
|
name: "menu-item",
|
|
39
|
-
components: { BaseButton:
|
|
40
|
+
components: { BaseButton: oe, BentoTypography: Q, ChevronRightIcon: ne },
|
|
40
41
|
props: {
|
|
41
42
|
/**
|
|
42
43
|
* menu-item text that gets displayed as the main label
|
|
@@ -104,24 +105,24 @@ const fe = ce.exports, de = M({
|
|
|
104
105
|
default: !1
|
|
105
106
|
}
|
|
106
107
|
},
|
|
107
|
-
emits: [
|
|
108
|
+
emits: [D.CLICK],
|
|
108
109
|
setup(u, { emit: t }) {
|
|
109
|
-
const e =
|
|
110
|
+
const e = b(() => ({
|
|
110
111
|
"b-menu-item--critical": u.critical,
|
|
111
112
|
"b-menu-item--indent": u.indent
|
|
112
|
-
})), s =
|
|
113
|
+
})), s = b(() => se(u.secondaryText, 10));
|
|
113
114
|
return {
|
|
114
115
|
// Values
|
|
115
116
|
conditionalClasses: e,
|
|
116
117
|
computedSecondaryText: s,
|
|
117
118
|
// Methods
|
|
118
|
-
onClick: (
|
|
119
|
-
|
|
119
|
+
onClick: (i) => {
|
|
120
|
+
i.stopPropagation(), u.handler(), t(D.CLICK);
|
|
120
121
|
}
|
|
121
122
|
};
|
|
122
123
|
}
|
|
123
124
|
});
|
|
124
|
-
var
|
|
125
|
+
var pe = function() {
|
|
125
126
|
var t = this, n = t._self._c;
|
|
126
127
|
return t._self._setupProxy, n("base-button", { staticClass: "b-menu-item", class: t.conditionalClasses, attrs: { role: "menuitem", disabled: t.disabled, tabindex: "-1" }, on: { click: t.onClick }, scopedSlots: t._u([t.icon ? { key: "iconLeft", fn: function() {
|
|
127
128
|
return [n(t.icon, { tag: "component", staticClass: "b-menu-item__icon-left", attrs: { "aria-hidden": "true" } })];
|
|
@@ -130,23 +131,23 @@ var me = function() {
|
|
|
130
131
|
}, proxy: !0 }, t.chevron ? { key: "iconRight", fn: function() {
|
|
131
132
|
return [n("chevron-right-icon", { attrs: { "aria-hidden": "true" } })];
|
|
132
133
|
}, proxy: !0 } : null], null, !0) });
|
|
133
|
-
},
|
|
134
|
-
de,
|
|
134
|
+
}, _e = [], ye = /* @__PURE__ */ x(
|
|
135
135
|
me,
|
|
136
136
|
pe,
|
|
137
|
+
_e,
|
|
137
138
|
!1,
|
|
138
139
|
null,
|
|
139
140
|
"1e289ecc"
|
|
140
141
|
);
|
|
141
|
-
const
|
|
142
|
-
var
|
|
143
|
-
const
|
|
142
|
+
const U = ye.exports;
|
|
143
|
+
var h = /* @__PURE__ */ ((u) => (u.BACK = "back", u.CLOSE = "close", u.OPEN = "open", u))(h || {});
|
|
144
|
+
const ve = Symbol("menu registering injection key"), Ce = {
|
|
144
145
|
name: "bento-menu-list-container"
|
|
145
|
-
},
|
|
146
|
-
...
|
|
146
|
+
}, he = /* @__PURE__ */ M({
|
|
147
|
+
...Ce,
|
|
147
148
|
setup(u) {
|
|
148
|
-
const t = a(), n = a({}), e =
|
|
149
|
-
|
|
149
|
+
const t = a(), n = a({}), e = P(
|
|
150
|
+
ve,
|
|
150
151
|
!1
|
|
151
152
|
);
|
|
152
153
|
if (e) {
|
|
@@ -158,26 +159,26 @@ const ye = Symbol("menu registering injection key"), ve = {
|
|
|
158
159
|
return { __sfc: !0, menuListContainerRef: t, menuListContainerEvents: n, registeringAndMousingOut: e };
|
|
159
160
|
}
|
|
160
161
|
});
|
|
161
|
-
var
|
|
162
|
+
var be = function() {
|
|
162
163
|
var t = this, n = t._self._c, e = t._self._setupProxy;
|
|
163
164
|
return n("div", t._g({ ref: "menuListContainerRef", staticClass: "b-menu-list-container", attrs: { "data-testid": "menu-list-container" } }, e.menuListContainerEvents), [t._t("default")], 2);
|
|
164
|
-
},
|
|
165
|
-
Ce,
|
|
165
|
+
}, ke = [], ge = /* @__PURE__ */ x(
|
|
166
166
|
he,
|
|
167
167
|
be,
|
|
168
|
+
ke,
|
|
168
169
|
!1,
|
|
169
170
|
null,
|
|
170
171
|
"f5d01392"
|
|
171
172
|
);
|
|
172
|
-
const
|
|
173
|
+
const H = ge.exports, K = {
|
|
173
174
|
"en-US": {
|
|
174
175
|
backButton: "Go back",
|
|
175
176
|
menuButton: "Open menu"
|
|
176
177
|
}
|
|
177
|
-
},
|
|
178
|
-
i18n: { messages:
|
|
178
|
+
}, Ie = M({
|
|
179
|
+
i18n: { messages: K },
|
|
179
180
|
name: "sub-menu-item-list",
|
|
180
|
-
components: { BentoDivider:
|
|
181
|
+
components: { BentoDivider: W, MenuItem: U, MenuListContainer: H },
|
|
181
182
|
props: {
|
|
182
183
|
items: {
|
|
183
184
|
type: Array,
|
|
@@ -188,60 +189,60 @@ const U = ke.exports, H = {
|
|
|
188
189
|
required: !0
|
|
189
190
|
}
|
|
190
191
|
},
|
|
191
|
-
emits: [
|
|
192
|
+
emits: [h.CLOSE, h.BACK],
|
|
192
193
|
setup(u, { emit: t }) {
|
|
193
|
-
const n = a(null), e = a(0), s = a(u.items.length),
|
|
194
|
+
const n = a(null), e = a(0), s = a(u.items.length), d = () => t(h.CLOSE), i = () => t(h.BACK), r = b(() => {
|
|
194
195
|
var y;
|
|
195
|
-
const l = (y = u.items) == null ? void 0 : y.map((
|
|
196
|
-
...
|
|
197
|
-
indent: !
|
|
196
|
+
const l = (y = u.items) == null ? void 0 : y.map((m) => ({
|
|
197
|
+
...m,
|
|
198
|
+
indent: !m.icon,
|
|
198
199
|
isTitle: !1,
|
|
199
|
-
clickHandler:
|
|
200
|
+
clickHandler: d
|
|
200
201
|
}));
|
|
201
202
|
return [
|
|
202
203
|
{
|
|
203
204
|
text: u.title,
|
|
204
205
|
secondaryText: null,
|
|
205
206
|
critical: !1,
|
|
206
|
-
icon:
|
|
207
|
+
icon: T,
|
|
207
208
|
isTitle: !0,
|
|
208
209
|
disabled: !1,
|
|
209
210
|
indent: !1,
|
|
210
|
-
handler:
|
|
211
|
-
clickHandler:
|
|
211
|
+
handler: i,
|
|
212
|
+
clickHandler: i,
|
|
212
213
|
addDivider: !0
|
|
213
214
|
},
|
|
214
215
|
...l
|
|
215
216
|
];
|
|
216
217
|
}), c = async () => {
|
|
217
|
-
var l, y,
|
|
218
|
-
(k = (
|
|
218
|
+
var l, y, m, C, k;
|
|
219
|
+
(k = (C = (m = (y = (l = n.value) == null ? void 0 : l.children) == null ? void 0 : y[e.value]) == null ? void 0 : m.children) == null ? void 0 : C[0]) == null || k.focus();
|
|
219
220
|
};
|
|
220
|
-
|
|
221
|
+
A(async () => {
|
|
221
222
|
setTimeout(() => c(), 150);
|
|
222
223
|
});
|
|
223
224
|
const o = () => {
|
|
224
|
-
e.value > 0 ? (e.value -= 1,
|
|
225
|
+
e.value > 0 ? (e.value -= 1, r.value[e.value].disabled && o()) : e.value = s.value, c();
|
|
225
226
|
}, _ = () => {
|
|
226
|
-
e.value < s.value ? (e.value += 1,
|
|
227
|
+
e.value < s.value ? (e.value += 1, r.value[e.value].disabled && _()) : e.value = 0, c();
|
|
227
228
|
};
|
|
228
229
|
return {
|
|
229
230
|
// Enums
|
|
230
|
-
BentoMenuEvent:
|
|
231
|
+
BentoMenuEvent: h,
|
|
231
232
|
// Values
|
|
232
233
|
subMenuItemListRefLocal: n,
|
|
233
234
|
subMenuFocusedIndex: e,
|
|
234
|
-
ChevronLeftIcon:
|
|
235
|
-
computedItems:
|
|
235
|
+
ChevronLeftIcon: T,
|
|
236
|
+
computedItems: r,
|
|
236
237
|
// Methods
|
|
237
|
-
closeMenu:
|
|
238
|
-
onBackButton:
|
|
238
|
+
closeMenu: d,
|
|
239
|
+
onBackButton: i,
|
|
239
240
|
focusPrevious: o,
|
|
240
241
|
focusNext: _
|
|
241
242
|
};
|
|
242
243
|
}
|
|
243
244
|
});
|
|
244
|
-
var
|
|
245
|
+
var xe = function() {
|
|
245
246
|
var t = this, n = t._self._c;
|
|
246
247
|
return t._self._setupProxy, n("transition", { attrs: { name: "b-sub-menu-item-list__transition", appear: "" } }, [n("menu-list-container", { staticClass: "b-sub-menu-item-list" }, [n("ul", { ref: "subMenuItemListRefLocal", staticClass: "b-sub-menu-item-list__list", attrs: { role: "menu" }, on: { keydown: [function(e) {
|
|
247
248
|
return !e.type.indexOf("key") && t._k(e.keyCode, "down", 40, e.key, ["Down", "ArrowDown"]) ? null : (e.stopPropagation(), t.focusNext.apply(null, arguments));
|
|
@@ -252,42 +253,42 @@ var Ie = function() {
|
|
|
252
253
|
}] } }, t._l(t.computedItems, function(e, s) {
|
|
253
254
|
return n("li", { key: `sub-menu-item-list-item-${s}`, attrs: { role: "none" } }, [n("menu-item", { attrs: { text: e.text, handler: e.handler, "secondary-text": e.secondaryText, icon: e.icon, "is-title": e.isTitle, disabled: e.disabled, critical: e.critical, indent: e.indent, tabindex: s === t.subMenuFocusedIndex ? "0" : "-1" }, on: { click: e.clickHandler } }), e.addDivider ? n("bento-divider", { staticClass: "b-sub-menu-item-list__divider" }) : t._e()], 1);
|
|
254
255
|
}), 0)])], 1);
|
|
255
|
-
},
|
|
256
|
-
ge,
|
|
256
|
+
}, Me = [], Be = /* @__PURE__ */ x(
|
|
257
257
|
Ie,
|
|
258
258
|
xe,
|
|
259
|
+
Me,
|
|
259
260
|
!1,
|
|
260
261
|
null,
|
|
261
262
|
"25195627"
|
|
262
263
|
);
|
|
263
|
-
const
|
|
264
|
-
function
|
|
265
|
-
const
|
|
264
|
+
const we = Be.exports;
|
|
265
|
+
function Se(u, t, n) {
|
|
266
|
+
const d = a(0), i = a(0), r = (o) => {
|
|
266
267
|
if (!o || !o.parentElement)
|
|
267
268
|
return;
|
|
268
269
|
const _ = o.parentElement, l = o.cloneNode(!0);
|
|
269
270
|
l.style.position = "absolute", l.style.visibility = "hidden", _.appendChild(l), l.style.width = "max-content";
|
|
270
|
-
const y = l.offsetWidth,
|
|
271
|
-
|
|
272
|
-
const
|
|
273
|
-
|
|
271
|
+
const y = l.offsetWidth, m = Math.max(150, Math.min(y, 350));
|
|
272
|
+
d.value = m, l.style.width = `${m}px`;
|
|
273
|
+
const C = l.offsetHeight;
|
|
274
|
+
i.value = C, _.removeChild(l), i.value = C;
|
|
274
275
|
};
|
|
275
|
-
return
|
|
276
|
+
return G([t, n], async ([o]) => {
|
|
276
277
|
var _, l;
|
|
277
278
|
if (o !== null) {
|
|
278
|
-
await
|
|
279
|
+
await F();
|
|
279
280
|
const y = (l = (_ = u.value) == null ? void 0 : _[0]) == null ? void 0 : l.$el;
|
|
280
|
-
y &&
|
|
281
|
+
y && r(y);
|
|
281
282
|
} else
|
|
282
|
-
|
|
283
|
-
}), { computedStyle:
|
|
283
|
+
d.value = 0, i.value = 0;
|
|
284
|
+
}), { computedStyle: b(() => {
|
|
284
285
|
const o = { width: "max-content" };
|
|
285
|
-
return n.value && (
|
|
286
|
+
return n.value && (i.value > 0 && (o.height = `${i.value}px`), d.value > 0 && (o.width = `${d.value}px`)), o;
|
|
286
287
|
}) };
|
|
287
288
|
}
|
|
288
|
-
const
|
|
289
|
+
const Ee = M({
|
|
289
290
|
name: "menu-item-list",
|
|
290
|
-
components: { BentoDivider:
|
|
291
|
+
components: { BentoDivider: W, MenuItem: U, MenuListContainer: H, SubMenuItemList: we },
|
|
291
292
|
props: {
|
|
292
293
|
/**
|
|
293
294
|
* The data to be displayed in the list
|
|
@@ -318,63 +319,63 @@ const Se = M({
|
|
|
318
319
|
default: !0
|
|
319
320
|
}
|
|
320
321
|
},
|
|
321
|
-
emits: [
|
|
322
|
+
emits: [h.CLOSE, "menu-item-click"],
|
|
322
323
|
setup(u, { emit: t, expose: n }) {
|
|
323
|
-
const e = a(null), s = a(null),
|
|
324
|
-
let
|
|
325
|
-
return
|
|
326
|
-
...
|
|
327
|
-
indent:
|
|
324
|
+
const e = a(null), s = a(null), d = a(null), i = a(null), r = a(!1), c = a(null), o = a(u.focusLastElement ? u.data.length - 1 : 0), _ = a(0), l = a(u.data.length - 1), y = b(() => u.data.some((p) => p.icon)), m = b(() => u.indentItems || y.value ? u.data.map((p) => {
|
|
325
|
+
let v = !1;
|
|
326
|
+
return p.icon || (v = !0), {
|
|
327
|
+
...p,
|
|
328
|
+
indent: v
|
|
328
329
|
};
|
|
329
|
-
}) : u.data),
|
|
330
|
-
var
|
|
331
|
-
(
|
|
332
|
-
}, k = () => t(
|
|
333
|
-
if (
|
|
334
|
-
c.value =
|
|
330
|
+
}) : u.data), C = async () => {
|
|
331
|
+
var p, v, f;
|
|
332
|
+
(f = (v = (p = s.value) == null ? void 0 : p.children[o.value]) == null ? void 0 : v.children[0]) == null || f.focus();
|
|
333
|
+
}, k = () => t(h.CLOSE), w = (p, v) => {
|
|
334
|
+
if (p.items) {
|
|
335
|
+
c.value = v, r.value = !0;
|
|
335
336
|
return;
|
|
336
337
|
}
|
|
337
|
-
c.value =
|
|
338
|
+
c.value = v, r.value = !1, !p.skipClose && u.closeMenuOnItemSelect !== !1 && k(), t("menu-item-click");
|
|
339
|
+
}, B = () => {
|
|
340
|
+
o.value > 0 ? (o.value -= 1, m.value[o.value].disabled && B()) : o.value = l.value, C();
|
|
338
341
|
}, g = () => {
|
|
339
|
-
o.value
|
|
340
|
-
}, I = () => {
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
var b;
|
|
344
|
-
(b = d == null ? void 0 : d.items) != null && b.length && (c.value = f, i.value = !0);
|
|
342
|
+
o.value < l.value ? (o.value += 1, m.value[o.value].disabled && g()) : o.value = 0, C();
|
|
343
|
+
}, I = (p, v) => {
|
|
344
|
+
var f;
|
|
345
|
+
(f = p == null ? void 0 : p.items) != null && f.length && (c.value = v, r.value = !0);
|
|
345
346
|
}, S = () => {
|
|
346
|
-
c.value &&
|
|
347
|
+
c.value && r.value && (c.value = null, r.value = !1);
|
|
347
348
|
}, E = () => {
|
|
348
|
-
|
|
349
|
+
r.value = !1, c.value = null, C();
|
|
349
350
|
};
|
|
350
351
|
n({
|
|
351
|
-
focusItem:
|
|
352
|
+
focusItem: C
|
|
352
353
|
});
|
|
353
|
-
const { computedStyle: O } =
|
|
354
|
+
const { computedStyle: O } = Se(i, c, r);
|
|
354
355
|
return {
|
|
355
356
|
// Values
|
|
356
357
|
menuItemListRef: s,
|
|
357
|
-
menuItemListWrapperRef:
|
|
358
|
-
subMenuItemListRef:
|
|
358
|
+
menuItemListWrapperRef: d,
|
|
359
|
+
subMenuItemListRef: i,
|
|
359
360
|
menuItemRef: e,
|
|
360
|
-
computedData:
|
|
361
|
+
computedData: m,
|
|
361
362
|
computedStyle: O,
|
|
362
363
|
focusedIndex: o,
|
|
363
364
|
subMenuFocusedIndex: _,
|
|
364
|
-
showSubMenu:
|
|
365
|
+
showSubMenu: r,
|
|
365
366
|
visibleSubMenuIndex: c,
|
|
366
367
|
// Methods
|
|
367
|
-
menuItemClick:
|
|
368
|
+
menuItemClick: w,
|
|
368
369
|
closeMenu: k,
|
|
369
|
-
focusPrevious:
|
|
370
|
-
focusNext:
|
|
371
|
-
focusRight:
|
|
370
|
+
focusPrevious: B,
|
|
371
|
+
focusNext: g,
|
|
372
|
+
focusRight: I,
|
|
372
373
|
focusLeft: S,
|
|
373
374
|
onBackButton: E
|
|
374
375
|
};
|
|
375
376
|
}
|
|
376
377
|
});
|
|
377
|
-
var
|
|
378
|
+
var Oe = function() {
|
|
378
379
|
var t = this, n = t._self._c;
|
|
379
380
|
return t._self._setupProxy, n("menu-list-container", { ref: "menuItemListWrapperRef", style: t.computedStyle }, [n("ul", { ref: "menuItemListRef", staticClass: "b-menu-item-list", attrs: { role: "menu" }, on: { keydown: [function(e) {
|
|
380
381
|
return !e.type.indexOf("key") && t._k(e.keyCode, "down", 40, e.key, ["Down", "ArrowDown"]) ? null : t.focusNext.apply(null, arguments);
|
|
@@ -385,28 +386,28 @@ var Ee = function() {
|
|
|
385
386
|
}, function(e) {
|
|
386
387
|
return !e.type.indexOf("key") && t._k(e.keyCode, "tab", 9, e.key, "Tab") ? null : t.closeMenu.apply(null, arguments);
|
|
387
388
|
}] } }, t._l(t.computedData, function(e, s) {
|
|
388
|
-
var
|
|
389
|
+
var d, i, r, c;
|
|
389
390
|
return n("li", { key: `menu-item-${s}`, ref: "menuItemRef", refInFor: !0, staticClass: "b-menu-item-list__item", attrs: { role: "none" }, on: { keydown: [function(o) {
|
|
390
391
|
return !o.type.indexOf("key") && t._k(o.keyCode, "right", 39, o.key, ["Right", "ArrowRight"]) || "button" in o && o.button !== 2 ? null : t.focusRight(e, s);
|
|
391
392
|
}, function(o) {
|
|
392
393
|
return !o.type.indexOf("key") && t._k(o.keyCode, "left", 37, o.key, ["Left", "ArrowLeft"]) || "button" in o && o.button !== 0 ? null : t.focusLeft();
|
|
393
|
-
}] } }, [n("menu-item", { attrs: { text: e.text, handler: (
|
|
394
|
+
}] } }, [n("menu-item", { attrs: { text: e.text, handler: (d = e.items) != null && d.length ? () => null : e.handler, "secondary-text": e.secondaryText, icon: e.icon, chevron: !!((i = e.items) != null && i.length), disabled: e.disabled, critical: e.critical, indent: e.indent, tabindex: s === t.subMenuFocusedIndex ? "0" : "-1", "aria-haspopup": !!((r = e.items) != null && r.length), "aria-expanded": t.showSubMenu && t.visibleSubMenuIndex === s }, on: { click: function(o) {
|
|
394
395
|
return t.menuItemClick(e, s);
|
|
395
396
|
} } }), e.addDivider ? n("bento-divider", { staticClass: "b-menu-item-list__divider" }) : t._e(), (c = e.items) != null && c.length && t.showSubMenu && t.visibleSubMenuIndex === s ? n("sub-menu-item-list", { ref: "subMenuItemListRef", refInFor: !0, attrs: { items: e.items, title: e.text }, on: { back: t.onBackButton, close: t.closeMenu } }) : t._e()], 1);
|
|
396
397
|
}), 0)]);
|
|
397
|
-
},
|
|
398
|
-
Se,
|
|
398
|
+
}, Le = [], Re = /* @__PURE__ */ x(
|
|
399
399
|
Ee,
|
|
400
400
|
Oe,
|
|
401
|
+
Le,
|
|
401
402
|
!1,
|
|
402
403
|
null,
|
|
403
404
|
"a94a192f"
|
|
404
405
|
);
|
|
405
|
-
const
|
|
406
|
-
i18n: { messages:
|
|
406
|
+
const Te = Re.exports, De = {
|
|
407
|
+
i18n: { messages: K },
|
|
407
408
|
name: "bento-menu"
|
|
408
|
-
},
|
|
409
|
-
...
|
|
409
|
+
}, Ne = /* @__PURE__ */ M({
|
|
410
|
+
...De,
|
|
410
411
|
props: {
|
|
411
412
|
button: { default: () => ({
|
|
412
413
|
variant: "secondary"
|
|
@@ -414,7 +415,7 @@ const Re = Le.exports, Te = {
|
|
|
414
415
|
closeMenuOnItemSelect: { type: Boolean, default: !0 },
|
|
415
416
|
data: null,
|
|
416
417
|
disableArrowDownOpeningMenu: { type: Boolean, default: !1 },
|
|
417
|
-
menuPosition: { default:
|
|
418
|
+
menuPosition: { default: j.BOTTOM_START },
|
|
418
419
|
menuFixedPositioning: { type: Boolean, default: !1 },
|
|
419
420
|
menuWidth: { default: null },
|
|
420
421
|
revertFocusToButton: { type: Boolean, default: !0 },
|
|
@@ -423,53 +424,53 @@ const Re = Le.exports, Te = {
|
|
|
423
424
|
},
|
|
424
425
|
emits: ["menu-item-click", "click-outside"],
|
|
425
426
|
setup(u, { expose: t, emit: n }) {
|
|
426
|
-
var
|
|
427
|
-
const e = u, s =
|
|
428
|
-
|
|
429
|
-
const
|
|
430
|
-
"b-menu--inverse":
|
|
431
|
-
})), k =
|
|
427
|
+
var v;
|
|
428
|
+
const e = u, s = X(), d = Z(s), { t: i } = z(), r = a(null), c = a(null), o = a(!1), _ = a(!1), l = a(null), y = $("menu"), m = P(ae, a(!1));
|
|
429
|
+
q(V, m);
|
|
430
|
+
const C = b(() => ({
|
|
431
|
+
"b-menu--inverse": m.value
|
|
432
|
+
})), k = b(() => e.menuWidth ? { width: `${e.menuWidth}px` } : null), w = b(() => {
|
|
432
433
|
if (e != null && e.button)
|
|
433
434
|
return {
|
|
434
435
|
variant: "secondary",
|
|
435
436
|
...e.button
|
|
436
437
|
};
|
|
437
|
-
}), g = () => {
|
|
438
|
-
o.value = !0, n(
|
|
438
|
+
}), B = (f) => f == null ? void 0 : f["aria-label"], g = () => {
|
|
439
|
+
o.value = !0, n(h.OPEN);
|
|
439
440
|
}, I = async (f = e.revertFocusToButton) => {
|
|
440
|
-
var
|
|
441
|
-
o.value && (o.value = !1, f && (await
|
|
442
|
-
}, w = (f) => {
|
|
443
|
-
f.stopPropagation(), o.value ? I() : g();
|
|
441
|
+
var L, R;
|
|
442
|
+
o.value && (o.value = !1, f && (await F(), (R = (L = r.value) == null ? void 0 : L.$el) == null || R.focus()), n(h.CLOSE));
|
|
444
443
|
}, S = (f) => {
|
|
445
|
-
f.
|
|
444
|
+
f.stopPropagation(), o.value ? I() : g();
|
|
446
445
|
}, E = (f) => {
|
|
446
|
+
f.preventDefault(), _.value = !1, e.disableArrowDownOpeningMenu || g();
|
|
447
|
+
}, O = (f) => {
|
|
447
448
|
f.preventDefault(), _.value = !0, g();
|
|
448
|
-
},
|
|
449
|
+
}, p = () => {
|
|
449
450
|
n("menu-item-click");
|
|
450
451
|
};
|
|
451
|
-
return
|
|
452
|
+
return J(
|
|
452
453
|
l,
|
|
453
454
|
() => {
|
|
454
455
|
I(), n("click-outside");
|
|
455
456
|
},
|
|
456
457
|
{
|
|
457
458
|
...e.closeOnClickOutsideOptions,
|
|
458
|
-
ignore: [
|
|
459
|
+
ignore: [r, ...((v = e.closeOnClickOutsideOptions) == null ? void 0 : v.ignore) ?? []]
|
|
459
460
|
}
|
|
460
461
|
), t({
|
|
461
462
|
/**
|
|
462
463
|
* Control to enable programmatic closing of the menu
|
|
463
464
|
*/
|
|
464
465
|
closeMenu: I
|
|
465
|
-
}),
|
|
466
|
-
|
|
466
|
+
}), A(() => {
|
|
467
|
+
d("iconRight") && ee(
|
|
467
468
|
'"bento-menu" no longer supports the "iconRight" slot. The right-aligned icon is now fixed by design.'
|
|
468
469
|
);
|
|
469
|
-
}), { __sfc: !0, props: e, emit: n, slots: s, hasSlot:
|
|
470
|
+
}), { __sfc: !0, props: e, emit: n, slots: s, hasSlot: d, t: i, menuButtonRef: r, menuItemListRef: c, showMenu: o, isLastElementFocused: _, popoverRef: l, menuId: y, isInverseColorSet: m, computedClasses: C, computedMenuWidth: k, computedButtonPropsWithDefaults: w, getAriaLabel: B, openMenu: g, closeMenu: I, toggleShowMenu: S, onKeyDown: E, onKeyUp: O, menuItemClick: p, BentoToggleButton: le, BentoPopover: Y, BentoTeleport: ue, ChevronDownIcon: te, OptionsVerticalIcon: de, MenuItemList: Te };
|
|
470
471
|
}
|
|
471
472
|
});
|
|
472
|
-
var
|
|
473
|
+
var Pe = function() {
|
|
473
474
|
var t = this, n = t._self._c, e = t._self._setupProxy;
|
|
474
475
|
return n("div", { staticClass: "b-menu", class: e.computedClasses, attrs: { "data-testid": "menu" }, on: { keydown: [function(s) {
|
|
475
476
|
return !s.type.indexOf("key") && t._k(s.keyCode, "down", 40, s.key, ["Down", "ArrowDown"]) ? null : e.onKeyDown.apply(null, arguments);
|
|
@@ -477,7 +478,7 @@ var Ne = function() {
|
|
|
477
478
|
return !s.type.indexOf("key") && t._k(s.keyCode, "up", 38, s.key, ["Up", "ArrowUp"]) ? null : e.onKeyUp.apply(null, arguments);
|
|
478
479
|
}, function(s) {
|
|
479
480
|
return !s.type.indexOf("key") && t._k(s.keyCode, "esc", 27, s.key, ["Esc", "Escape"]) ? null : e.closeMenu();
|
|
480
|
-
}] } }, [n(e.BentoToggleButton, t._b({ ref: "menuButtonRef", attrs: { "aria-haspopup": "true", "aria-controls": e.showMenu ? e.menuId : null, toggled: e.showMenu, inverse: e.isInverseColorSet }, on: { click: e.toggleShowMenu }, scopedSlots: t._u([!e.hasSlot("default") || e.hasSlot("iconLeft") ? { key: "iconLeft", fn: function() {
|
|
481
|
+
}] } }, [n(e.BentoToggleButton, t._b({ ref: "menuButtonRef", attrs: { "aria-haspopup": "true", "aria-controls": e.showMenu ? e.menuId : null, "aria-label": e.getAriaLabel(t.$attrs), toggled: e.showMenu, inverse: e.isInverseColorSet }, on: { click: e.toggleShowMenu }, scopedSlots: t._u([!e.hasSlot("default") || e.hasSlot("iconLeft") ? { key: "iconLeft", fn: function() {
|
|
481
482
|
return [t._t("iconLeft", function() {
|
|
482
483
|
return [n(e.OptionsVerticalIcon, { attrs: { title: e.t("menuButton") } })];
|
|
483
484
|
})];
|
|
@@ -495,20 +496,20 @@ var Ne = function() {
|
|
|
495
496
|
"left-start",
|
|
496
497
|
"left-end"
|
|
497
498
|
], teleport: t.teleport, "without-space": "" } }, [n(e.MenuItemList, { ref: "menuItemListRef", attrs: { "close-menu-on-item-select": t.closeMenuOnItemSelect, data: t.data, "focus-last-element": e.isLastElementFocused }, on: { close: e.closeMenu, "menu-item-click": e.menuItemClick } })], 1) : t._e()], 1) : t._e()], 1);
|
|
498
|
-
},
|
|
499
|
-
De,
|
|
499
|
+
}, Ae = [], Fe = /* @__PURE__ */ x(
|
|
500
500
|
Ne,
|
|
501
501
|
Pe,
|
|
502
|
+
Ae,
|
|
502
503
|
!1,
|
|
503
504
|
null,
|
|
504
|
-
"
|
|
505
|
+
"32d8dde2"
|
|
505
506
|
);
|
|
506
|
-
const
|
|
507
|
+
const ot = Fe.exports;
|
|
507
508
|
export {
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
509
|
+
ot as B,
|
|
510
|
+
ve as D,
|
|
511
|
+
ae as M,
|
|
512
|
+
de as O,
|
|
513
|
+
h as a
|
|
513
514
|
};
|
|
514
|
-
//# sourceMappingURL=menu.
|
|
515
|
+
//# sourceMappingURL=menu.dX3_vU05.js.map
|