@adyen/bento-vue2 1.24.0 → 1.26.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 +484 -629
- package/dist/accordion.js +2 -2
- package/dist/action-bar.js +6 -6
- package/dist/alert.js +69 -104
- package/dist/alert.js.map +1 -1
- package/dist/assets/base-modal.css +1 -1
- package/dist/assets/dialog-page.css +1 -1
- package/dist/assets/dropdown.css +1 -1
- package/dist/assets/index10.css +1 -1
- package/dist/assets/index11.css +1 -1
- package/dist/assets/index12.css +1 -1
- package/dist/assets/index13.css +1 -1
- package/dist/assets/index14.css +1 -1
- package/dist/assets/index15.css +1 -1
- package/dist/assets/index16.css +1 -1
- package/dist/assets/index17.css +1 -1
- package/dist/assets/index18.css +1 -1
- package/dist/assets/index19.css +1 -1
- package/dist/assets/index2.css +1 -1
- package/dist/assets/index20.css +1 -1
- package/dist/assets/index21.css +1 -1
- package/dist/assets/index22.css +1 -1
- package/dist/assets/index23.css +1 -1
- package/dist/assets/index24.css +1 -1
- package/dist/assets/index25.css +1 -1
- package/dist/assets/index26.css +1 -1
- package/dist/assets/index27.css +1 -1
- package/dist/assets/index28.css +1 -1
- package/dist/assets/index29.css +1 -1
- package/dist/assets/index3.css +1 -1
- package/dist/assets/index30.css +1 -1
- package/dist/assets/index31.css +1 -1
- package/dist/assets/index32.css +1 -1
- package/dist/assets/index33.css +1 -1
- package/dist/assets/index34.css +1 -1
- package/dist/assets/index35.css +1 -1
- package/dist/assets/index36.css +1 -1
- package/dist/assets/index37.css +1 -1
- package/dist/assets/index38.css +1 -1
- package/dist/assets/index39.css +1 -1
- package/dist/assets/index4.css +1 -1
- package/dist/assets/index40.css +1 -1
- package/dist/assets/index41.css +1 -1
- package/dist/assets/index42.css +1 -1
- package/dist/assets/index43.css +1 -1
- package/dist/assets/index44.css +1 -1
- package/dist/assets/index45.css +1 -1
- package/dist/assets/index47.css +1 -1
- package/dist/assets/index48.css +1 -1
- package/dist/assets/index5.css +1 -1
- package/dist/assets/index6.css +1 -1
- package/dist/assets/index7.css +1 -1
- package/dist/assets/index8.css +1 -1
- package/dist/assets/index9.css +1 -1
- package/dist/assets/{listbox.css → use-cached-selected-values.css} +1 -1
- package/dist/avatar-image.js +1 -1
- package/dist/button.js +5 -5
- package/dist/card.js +83 -180
- package/dist/card.js.map +1 -1
- package/dist/checkbox.js +5 -5
- package/dist/chunks/{base-button.090f511d.js → base-button.ad74b6f8.js} +2 -2
- package/dist/chunks/{base-button.090f511d.js.map → base-button.ad74b6f8.js.map} +1 -1
- package/dist/chunks/{base-modal.aa09a60c.js → base-modal.1fff7abe.js} +6 -6
- package/dist/chunks/{base-modal.aa09a60c.js.map → base-modal.1fff7abe.js.map} +1 -1
- package/dist/chunks/{button-actions-with-menu.879c4573.js → button-actions-with-menu.e845d77a.js} +4 -4
- package/dist/chunks/{button-actions-with-menu.879c4573.js.map → button-actions-with-menu.e845d77a.js.map} +1 -1
- package/dist/chunks/{button-actions.239456cb.js → button-actions.81db18e8.js} +3 -3
- package/dist/chunks/{button-actions.239456cb.js.map → button-actions.81db18e8.js.map} +1 -1
- package/dist/chunks/{button.6e6324f0.js → button.9d6435ae.js} +3 -3
- package/dist/chunks/{button.6e6324f0.js.map → button.9d6435ae.js.map} +1 -1
- package/dist/chunks/{calendar.1e416969.js → calendar.640b8d25.js} +4 -4
- package/dist/chunks/{calendar.1e416969.js.map → calendar.640b8d25.js.map} +1 -1
- package/dist/chunks/{checkbox.f38276e6.js → checkbox.bfed007c.js} +3 -3
- package/dist/chunks/{checkbox.f38276e6.js.map → checkbox.bfed007c.js.map} +1 -1
- package/dist/chunks/{controls-group.f1dfa419.js → controls-group.4fb50009.js} +3 -3
- package/dist/chunks/{controls-group.f1dfa419.js.map → controls-group.4fb50009.js.map} +1 -1
- package/dist/chunks/{copy.acc9f1b0.js → copy.f85700c6.js} +4 -4
- package/dist/chunks/{copy.acc9f1b0.js.map → copy.f85700c6.js.map} +1 -1
- package/dist/chunks/dialog-page.73da22cf.js +133 -0
- package/dist/chunks/dialog-page.73da22cf.js.map +1 -0
- package/dist/chunks/{dropdown-default-textbox.c1f8fe5f.js → dropdown-default-textbox.54ca1b18.js} +2 -2
- package/dist/chunks/{dropdown-default-textbox.c1f8fe5f.js.map → dropdown-default-textbox.54ca1b18.js.map} +1 -1
- package/dist/chunks/dropdown.10c034aa.js +775 -0
- package/dist/chunks/dropdown.10c034aa.js.map +1 -0
- package/dist/chunks/{error-message.8734e591.js → error-message.31ec12b7.js} +2 -2
- package/dist/chunks/{error-message.8734e591.js.map → error-message.31ec12b7.js.map} +1 -1
- package/dist/chunks/{fixed-scroller.772ad033.js → fixed-scroller.4eb9a9ac.js} +2 -2
- package/dist/chunks/{fixed-scroller.772ad033.js.map → fixed-scroller.4eb9a9ac.js.map} +1 -1
- package/dist/chunks/{footer-actions.11071f12.js → footer-actions.a1e09b4f.js} +4 -4
- package/dist/chunks/{footer-actions.11071f12.js.map → footer-actions.a1e09b4f.js.map} +1 -1
- package/dist/chunks/{index.5d5f2200.js → index.15b088b9.js} +6 -6
- package/dist/chunks/{index.5d5f2200.js.map → index.15b088b9.js.map} +1 -1
- package/dist/chunks/{index.87180cdd.js → index.1ea85d4a.js} +138 -119
- package/dist/chunks/index.1ea85d4a.js.map +1 -0
- package/dist/chunks/{index.8e6bc325.js → index.317fca12.js} +3 -3
- package/dist/chunks/{index.8e6bc325.js.map → index.317fca12.js.map} +1 -1
- package/dist/chunks/{index.51308a21.js → index.671768a1.js} +3 -3
- package/dist/chunks/{index.51308a21.js.map → index.671768a1.js.map} +1 -1
- package/dist/chunks/{index.49ce3f6a.js → index.7eefc59c.js} +3 -3
- package/dist/chunks/{index.49ce3f6a.js.map → index.7eefc59c.js.map} +1 -1
- package/dist/chunks/{index.f19887a1.js → index.885d05a9.js} +2 -2
- package/dist/chunks/{index.f19887a1.js.map → index.885d05a9.js.map} +1 -1
- package/dist/chunks/{index.73abb1a9.js → index.8b8c3b16.js} +9 -9
- package/dist/chunks/{index.73abb1a9.js.map → index.8b8c3b16.js.map} +1 -1
- package/dist/chunks/{index.ff09389c.js → index.aaf965f8.js} +6 -6
- package/dist/chunks/{index.ff09389c.js.map → index.aaf965f8.js.map} +1 -1
- package/dist/chunks/{index.03ae22b4.js → index.b21197ca.js} +2 -2
- package/dist/chunks/{index.03ae22b4.js.map → index.b21197ca.js.map} +1 -1
- package/dist/chunks/{index.94980f50.js → index.d553d3d1.js} +2 -2
- package/dist/chunks/{index.94980f50.js.map → index.d553d3d1.js.map} +1 -1
- package/dist/chunks/{index.ba6c1040.js → index.dd30e538.js} +3 -3
- package/dist/chunks/index.dd30e538.js.map +1 -0
- package/dist/chunks/{listbox-option-tag.c0a56a95.js → listbox-option-tag.6bbb6bbe.js} +3 -3
- package/dist/chunks/{listbox-option-tag.c0a56a95.js.map → listbox-option-tag.6bbb6bbe.js.map} +1 -1
- package/dist/chunks/{loading-button.84a5529d.js → loading-button.eafc9e1b.js} +2 -2
- package/dist/chunks/{loading-button.84a5529d.js.map → loading-button.eafc9e1b.js.map} +1 -1
- package/dist/chunks/{payment-method.faa302de.js → payment-method.6c1ce07c.js} +2 -2
- package/dist/chunks/{payment-method.faa302de.js.map → payment-method.6c1ce07c.js.map} +1 -1
- package/dist/chunks/{tooltip.8e9d733c.js → tooltip.58ef3f4a.js} +3 -3
- package/dist/chunks/{tooltip.8e9d733c.js.map → tooltip.58ef3f4a.js.map} +1 -1
- package/dist/chunks/{use-bento-toast-controller.7d4436ad.js → use-bento-toast-controller.c3277f73.js} +2 -2
- package/dist/chunks/{use-bento-toast-controller.7d4436ad.js.map → use-bento-toast-controller.c3277f73.js.map} +1 -1
- package/dist/chunks/{listbox.e6e1bc90.js → use-cached-selected-values.69297473.js} +510 -448
- package/dist/chunks/use-cached-selected-values.69297473.js.map +1 -0
- package/dist/code-snippet.js +7 -7
- package/dist/code-snippet.js.map +1 -1
- package/dist/country.js +2 -2
- package/dist/currency.js +1 -1
- package/dist/data-grid-template.js +1 -1
- package/dist/data-grid.js +947 -885
- package/dist/data-grid.js.map +1 -1
- package/dist/date-picker.js +8 -8
- package/dist/date-range-picker.js +2 -2
- package/dist/date.js +1 -1
- package/dist/divider.js +1 -1
- package/dist/dropdown.js +7 -7
- package/dist/empty-state.js +3 -3
- package/dist/filter-bar.js +1115 -955
- package/dist/filter-bar.js.map +1 -1
- package/dist/focus-trap.js +1 -1
- package/dist/form-layout.js +15 -14
- package/dist/form-layout.js.map +1 -1
- package/dist/header.js +4 -4
- package/dist/index.js +177 -169
- package/dist/index.js.map +1 -1
- package/dist/info-icon.js +3 -3
- package/dist/input-field.js +31 -29
- package/dist/input-field.js.map +1 -1
- package/dist/internal.js +31 -78
- package/dist/internal.js.map +1 -1
- package/dist/link.js +1 -1
- package/dist/loading-indicator.js +1 -1
- package/dist/menu.js +1 -1
- package/dist/modal-fullscreen.js +6 -6
- package/dist/modal.js +6 -6
- package/dist/pagination.js +4 -4
- package/dist/payment-method.js +1 -1
- package/dist/popover.js +1 -1
- package/dist/popper-container.js +1 -1
- package/dist/radio-group.js +62 -62
- package/dist/radio-group.js.map +1 -1
- package/dist/search-bar.js +2 -2
- package/dist/secondary-nav.js +2 -2
- package/dist/segmented-control.js +2 -2
- package/dist/selection-card.js +4 -4
- package/dist/sidepanel.js +52 -50
- package/dist/sidepanel.js.map +1 -1
- package/dist/status.js +2 -2
- package/dist/stepper.js +3 -3
- package/dist/structured-list.js +1 -1
- package/dist/summary-grid.js +3 -3
- package/dist/tabs.js +52 -52
- package/dist/tabs.js.map +1 -1
- package/dist/tag.js +3 -3
- package/dist/textarea.js +4 -4
- package/dist/timeline.js +7 -7
- package/dist/toast.js +4 -4
- package/dist/toggle.js +2 -2
- package/dist/tutorial.js +88 -67
- package/dist/tutorial.js.map +1 -1
- package/dist/typography.js +1 -1
- package/dist/web-types.json +550 -266
- package/package.json +3 -2
- package/dist/chunks/dialog-page.75b295b7.js +0 -133
- package/dist/chunks/dialog-page.75b295b7.js.map +0 -1
- package/dist/chunks/dropdown.669b858b.js +0 -797
- package/dist/chunks/dropdown.669b858b.js.map +0 -1
- package/dist/chunks/index.87180cdd.js.map +0 -1
- package/dist/chunks/index.ba6c1040.js.map +0 -1
- package/dist/chunks/listbox.e6e1bc90.js.map +0 -1
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { defineComponent as x, computed as v, ref as
|
|
1
|
+
import { defineComponent as x, computed as v, ref as r, inject as P, onMounted as U, provide as W } from "vue";
|
|
2
2
|
import { g as w } from "./unique-id.a2a2b458.js";
|
|
3
|
-
import { a as H, B as
|
|
4
|
-
import { B as
|
|
5
|
-
import { u as
|
|
3
|
+
import { a as H, B as R } from "./index.15b088b9.js";
|
|
4
|
+
import { B as T, D as j } from "./index.885d05a9.js";
|
|
5
|
+
import { u as q } from "./use-click-outside.941d1600.js";
|
|
6
6
|
import { u as V } from "./use-has-slot.fbeb19ec.js";
|
|
7
|
-
import { n as
|
|
8
|
-
import { BentoToggleButton as
|
|
7
|
+
import { n as g } from "./_plugin-vue2_normalizer.71e2aa87.js";
|
|
8
|
+
import { BentoToggleButton as G } from "../button.js";
|
|
9
9
|
import { B as J } from "./teleport.84b0f20b.js";
|
|
10
|
-
import { a as Y, C as
|
|
11
|
-
import { B as
|
|
12
|
-
import { B as
|
|
13
|
-
import "../assets/
|
|
10
|
+
import { a as Y, C as E } from "./chevron-left.5edf02ac.js";
|
|
11
|
+
import { B as Z, a as S } from "./base-button.ad74b6f8.js";
|
|
12
|
+
import { B as z } from "./index.dd30e538.js";
|
|
13
|
+
import "../assets/index26.css";
|
|
14
14
|
const Q = x({
|
|
15
15
|
name: "menu-item",
|
|
16
|
-
components: { BaseButton:
|
|
16
|
+
components: { BaseButton: Z, BentoTypography: z, ChevronRightIcon: Y },
|
|
17
17
|
props: {
|
|
18
18
|
/**
|
|
19
19
|
* menu-item text that gets displayed as the main label
|
|
@@ -81,7 +81,7 @@ const Q = x({
|
|
|
81
81
|
default: !1
|
|
82
82
|
}
|
|
83
83
|
},
|
|
84
|
-
emits: [
|
|
84
|
+
emits: [S.CLICK],
|
|
85
85
|
setup(s, { emit: e }) {
|
|
86
86
|
return {
|
|
87
87
|
// Values
|
|
@@ -91,7 +91,7 @@ const Q = x({
|
|
|
91
91
|
})),
|
|
92
92
|
// Methods
|
|
93
93
|
onClick: (o) => {
|
|
94
|
-
o.stopPropagation(), s.handler(), e(
|
|
94
|
+
o.stopPropagation(), s.handler(), e(S.CLICK);
|
|
95
95
|
}
|
|
96
96
|
};
|
|
97
97
|
}
|
|
@@ -105,7 +105,7 @@ var X = function() {
|
|
|
105
105
|
}, proxy: !0 }, e.chevron ? { key: "iconRight", fn: function() {
|
|
106
106
|
return [n("chevron-right-icon", { attrs: { "aria-hidden": "true" } })];
|
|
107
107
|
}, proxy: !0 } : null], null, !0) });
|
|
108
|
-
}, $ = [], ee = /* @__PURE__ */
|
|
108
|
+
}, $ = [], ee = /* @__PURE__ */ g(
|
|
109
109
|
Q,
|
|
110
110
|
X,
|
|
111
111
|
$,
|
|
@@ -115,33 +115,48 @@ var X = function() {
|
|
|
115
115
|
null,
|
|
116
116
|
null
|
|
117
117
|
);
|
|
118
|
-
const
|
|
118
|
+
const D = ee.exports;
|
|
119
119
|
var _ = /* @__PURE__ */ ((s) => (s.BACK = "back", s.CLOSE = "close", s.OPEN = "open", s))(_ || {});
|
|
120
|
-
const te =
|
|
120
|
+
const te = Symbol("menu registering injection key"), ne = {
|
|
121
121
|
name: "bento-menu-list-container"
|
|
122
|
+
}, se = /* @__PURE__ */ x({
|
|
123
|
+
...ne,
|
|
124
|
+
setup(s) {
|
|
125
|
+
const e = r(), n = r({}), t = P(
|
|
126
|
+
te,
|
|
127
|
+
!1
|
|
128
|
+
);
|
|
129
|
+
if (t) {
|
|
130
|
+
const { registerMenuContainerElement: o } = t;
|
|
131
|
+
o(e), n.value = {
|
|
132
|
+
mouseleave: t == null ? void 0 : t.menuMouseLeave
|
|
133
|
+
};
|
|
134
|
+
}
|
|
135
|
+
return { __sfc: !0, menuListContainerRef: e, menuListContainerEvents: n, registeringAndMousingOut: t };
|
|
136
|
+
}
|
|
122
137
|
});
|
|
123
|
-
var
|
|
124
|
-
var e = this, n = e._self._c;
|
|
125
|
-
return
|
|
126
|
-
},
|
|
127
|
-
te,
|
|
128
|
-
ne,
|
|
138
|
+
var oe = function() {
|
|
139
|
+
var e = this, n = e._self._c, t = e._self._setupProxy;
|
|
140
|
+
return n("div", e._g({ ref: "menuListContainerRef", staticClass: "b-menu-list-container", attrs: { "data-testid": "menu-list-container" } }, t.menuListContainerEvents), [e._t("default")], 2);
|
|
141
|
+
}, ue = [], le = /* @__PURE__ */ g(
|
|
129
142
|
se,
|
|
143
|
+
oe,
|
|
144
|
+
ue,
|
|
130
145
|
!1,
|
|
131
146
|
null,
|
|
132
|
-
"
|
|
147
|
+
"f5d01392",
|
|
133
148
|
null,
|
|
134
149
|
null
|
|
135
150
|
);
|
|
136
|
-
const
|
|
151
|
+
const N = le.exports, F = {
|
|
137
152
|
"en-US": {
|
|
138
153
|
menuButton: "Open menu",
|
|
139
154
|
backButton: "Go back"
|
|
140
155
|
}
|
|
141
|
-
},
|
|
142
|
-
i18n: { messages:
|
|
156
|
+
}, ae = x({
|
|
157
|
+
i18n: { messages: F },
|
|
143
158
|
name: "sub-menu-item-list",
|
|
144
|
-
components: { BentoDivider:
|
|
159
|
+
components: { BentoDivider: T, MenuItem: D, MenuListContainer: N },
|
|
145
160
|
props: {
|
|
146
161
|
items: {
|
|
147
162
|
type: Array,
|
|
@@ -154,11 +169,11 @@ const T = oe.exports, D = {
|
|
|
154
169
|
},
|
|
155
170
|
emits: [_.CLOSE, _.BACK],
|
|
156
171
|
setup(s, { emit: e }) {
|
|
157
|
-
const n =
|
|
172
|
+
const n = r(null), t = r(0), o = r(s.items.length), a = () => e(_.CLOSE), i = () => e(_.BACK), l = v(() => {
|
|
158
173
|
var m;
|
|
159
|
-
const y = (m = s.items) == null ? void 0 : m.map((
|
|
160
|
-
...
|
|
161
|
-
indent: !
|
|
174
|
+
const y = (m = s.items) == null ? void 0 : m.map((f) => ({
|
|
175
|
+
...f,
|
|
176
|
+
indent: !f.icon,
|
|
162
177
|
isTitle: !1,
|
|
163
178
|
clickHandler: a
|
|
164
179
|
}));
|
|
@@ -167,27 +182,27 @@ const T = oe.exports, D = {
|
|
|
167
182
|
text: s.title,
|
|
168
183
|
secondaryText: null,
|
|
169
184
|
critical: !1,
|
|
170
|
-
icon:
|
|
185
|
+
icon: E,
|
|
171
186
|
isTitle: !0,
|
|
172
187
|
disabled: !1,
|
|
173
188
|
indent: !1,
|
|
174
|
-
handler:
|
|
175
|
-
clickHandler:
|
|
189
|
+
handler: i,
|
|
190
|
+
clickHandler: i,
|
|
176
191
|
addDivider: !0
|
|
177
192
|
},
|
|
178
193
|
...y
|
|
179
194
|
];
|
|
180
195
|
}), p = async () => {
|
|
181
|
-
var y, m,
|
|
182
|
-
(
|
|
196
|
+
var y, m, f, b, k;
|
|
197
|
+
(k = (b = (f = (m = (y = n.value) == null ? void 0 : y.children) == null ? void 0 : m[t.value]) == null ? void 0 : f.children) == null ? void 0 : b[0]) == null || k.focus();
|
|
183
198
|
};
|
|
184
|
-
|
|
199
|
+
U(async () => {
|
|
185
200
|
setTimeout(() => p(), 150);
|
|
186
201
|
});
|
|
187
202
|
const u = () => {
|
|
188
203
|
t.value > 0 ? (t.value -= 1, l.value[t.value].disabled && u()) : t.value = o.value, p();
|
|
189
|
-
},
|
|
190
|
-
t.value < o.value ? (t.value += 1, l.value[t.value].disabled &&
|
|
204
|
+
}, h = () => {
|
|
205
|
+
t.value < o.value ? (t.value += 1, l.value[t.value].disabled && h()) : t.value = 0, p();
|
|
191
206
|
};
|
|
192
207
|
return {
|
|
193
208
|
// Enums
|
|
@@ -195,17 +210,17 @@ const T = oe.exports, D = {
|
|
|
195
210
|
// Values
|
|
196
211
|
subMenuItemListRefLocal: n,
|
|
197
212
|
subMenuFocusedIndex: t,
|
|
198
|
-
ChevronLeftIcon:
|
|
213
|
+
ChevronLeftIcon: E,
|
|
199
214
|
computedItems: l,
|
|
200
215
|
// Methods
|
|
201
216
|
closeMenu: a,
|
|
202
|
-
onBackButton:
|
|
217
|
+
onBackButton: i,
|
|
203
218
|
focusPrevious: u,
|
|
204
|
-
focusNext:
|
|
219
|
+
focusNext: h
|
|
205
220
|
};
|
|
206
221
|
}
|
|
207
222
|
});
|
|
208
|
-
var
|
|
223
|
+
var re = function() {
|
|
209
224
|
var e = this, n = e._self._c;
|
|
210
225
|
return e._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(t) {
|
|
211
226
|
return !t.type.indexOf("key") && e._k(t.keyCode, "down", 40, t.key, ["Down", "ArrowDown"]) ? null : (t.stopPropagation(), e.focusNext.apply(null, arguments));
|
|
@@ -216,19 +231,19 @@ var le = function() {
|
|
|
216
231
|
}] } }, e._l(e.computedItems, function(t, o) {
|
|
217
232
|
return n("li", { key: `sub-menu-item-list-item-${o}`, attrs: { role: "none" } }, [n("menu-item", { attrs: { text: t.text, handler: t.handler, "secondary-text": t.secondaryText, icon: t.icon, "is-title": t.isTitle, disabled: t.disabled, critical: t.critical, indent: t.indent, tabindex: o === e.subMenuFocusedIndex ? "0" : "-1" }, on: { click: t.clickHandler } }), t.addDivider ? n("bento-divider", { staticClass: "b-sub-menu-item-list__divider" }) : e._e()], 1);
|
|
218
233
|
}), 0)])], 1);
|
|
219
|
-
},
|
|
220
|
-
ue,
|
|
221
|
-
le,
|
|
234
|
+
}, ie = [], ce = /* @__PURE__ */ g(
|
|
222
235
|
ae,
|
|
236
|
+
re,
|
|
237
|
+
ie,
|
|
223
238
|
!1,
|
|
224
239
|
null,
|
|
225
240
|
"25195627",
|
|
226
241
|
null,
|
|
227
242
|
null
|
|
228
243
|
);
|
|
229
|
-
const
|
|
244
|
+
const de = ce.exports, fe = x({
|
|
230
245
|
name: "menu-item-list",
|
|
231
|
-
components: { BentoDivider:
|
|
246
|
+
components: { BentoDivider: T, MenuItem: D, MenuListContainer: N, SubMenuItemList: de },
|
|
232
247
|
props: {
|
|
233
248
|
/**
|
|
234
249
|
* The data to be displayed in the list
|
|
@@ -252,58 +267,58 @@ const ie = re.exports, ce = x({
|
|
|
252
267
|
default: !1
|
|
253
268
|
}
|
|
254
269
|
},
|
|
255
|
-
emits: [_.CLOSE],
|
|
270
|
+
emits: [_.CLOSE, "menu-item-click"],
|
|
256
271
|
setup(s, { emit: e }) {
|
|
257
|
-
const n =
|
|
258
|
-
let
|
|
259
|
-
return
|
|
260
|
-
...
|
|
272
|
+
const n = r(null), t = r(null), o = r(null), a = r(!1), i = r(null), l = r(s.focusLastElement ? s.data.length - 1 : 0), p = r(0), u = r(s.data.length - 1), h = v(() => s.data.some((c) => c.icon)), y = v(() => s.indentItems || h.value ? s.data.map((c) => {
|
|
273
|
+
let d = !1;
|
|
274
|
+
return c.icon || (d = !0), {
|
|
275
|
+
...c,
|
|
261
276
|
// eslint-disable-next-line no-param-reassign
|
|
262
|
-
indent:
|
|
277
|
+
indent: d
|
|
263
278
|
};
|
|
264
279
|
}) : s.data), m = () => {
|
|
265
|
-
var
|
|
266
|
-
return (C = (
|
|
267
|
-
},
|
|
268
|
-
|
|
269
|
-
},
|
|
270
|
-
l.value > 0 ? (l.value -= 1, y.value[l.value].disabled &&
|
|
280
|
+
var c, d, C;
|
|
281
|
+
return (C = (d = (c = n.value) == null ? void 0 : c.children[l.value]) == null ? void 0 : d.children[0]) == null ? void 0 : C.focus();
|
|
282
|
+
}, f = () => e(_.CLOSE), b = (c, d) => {
|
|
283
|
+
c.items ? (i.value = d, a.value = !0) : (i.value = d, a.value = !1, f(), e("menu-item-click"));
|
|
284
|
+
}, k = () => {
|
|
285
|
+
l.value > 0 ? (l.value -= 1, y.value[l.value].disabled && k()) : l.value = u.value, m();
|
|
271
286
|
}, I = () => {
|
|
272
287
|
l.value < u.value ? (l.value += 1, y.value[l.value].disabled && I()) : l.value = 0, m();
|
|
273
|
-
}, B = (
|
|
288
|
+
}, B = (c, d) => {
|
|
274
289
|
var C;
|
|
275
|
-
(C =
|
|
290
|
+
(C = c == null ? void 0 : c.items) != null && C.length && (i.value = d, a.value = !0);
|
|
276
291
|
}, M = () => {
|
|
277
|
-
|
|
278
|
-
},
|
|
279
|
-
a.value = !1,
|
|
292
|
+
i.value && a.value && (i.value = null, a.value = !1);
|
|
293
|
+
}, L = () => {
|
|
294
|
+
a.value = !1, i.value = null, m();
|
|
280
295
|
}, A = v(() => {
|
|
281
|
-
var
|
|
282
|
-
return (C = (
|
|
283
|
-
}),
|
|
296
|
+
var c, d, C;
|
|
297
|
+
return (C = (d = (c = o.value) == null ? void 0 : c[0]) == null ? void 0 : d.$el) == null ? void 0 : C.offsetHeight;
|
|
298
|
+
}), K = v(() => a.value ? `${A.value}px` : "");
|
|
284
299
|
return {
|
|
285
300
|
// Values
|
|
286
301
|
menuItemListRef: n,
|
|
287
302
|
menuItemListWrapperRef: t,
|
|
288
303
|
subMenuItemListRef: o,
|
|
289
304
|
computedData: y,
|
|
290
|
-
computedHeight:
|
|
305
|
+
computedHeight: K,
|
|
291
306
|
focusedIndex: l,
|
|
292
307
|
subMenuFocusedIndex: p,
|
|
293
308
|
showSubMenu: a,
|
|
294
|
-
visibleSubMenuIndex:
|
|
309
|
+
visibleSubMenuIndex: i,
|
|
295
310
|
// Methods
|
|
296
|
-
|
|
297
|
-
closeMenu:
|
|
298
|
-
focusPrevious:
|
|
311
|
+
menuItemClick: b,
|
|
312
|
+
closeMenu: f,
|
|
313
|
+
focusPrevious: k,
|
|
299
314
|
focusNext: I,
|
|
300
315
|
focusRight: B,
|
|
301
316
|
focusLeft: M,
|
|
302
|
-
onBackButton:
|
|
317
|
+
onBackButton: L
|
|
303
318
|
};
|
|
304
319
|
}
|
|
305
320
|
});
|
|
306
|
-
var
|
|
321
|
+
var _e = function() {
|
|
307
322
|
var e = this, n = e._self._c;
|
|
308
323
|
return e._self._setupProxy, n("menu-list-container", { ref: "menuItemListWrapperRef", style: { height: e.computedHeight } }, [n("ul", { ref: "menuItemListRef", staticClass: "b-menu-item-list", attrs: { role: "menu" }, on: { keydown: [function(t) {
|
|
309
324
|
return !t.type.indexOf("key") && e._k(t.keyCode, "down", 40, t.key, ["Down", "ArrowDown"]) ? null : e.focusNext.apply(null, arguments);
|
|
@@ -314,49 +329,49 @@ var fe = function() {
|
|
|
314
329
|
}, function(t) {
|
|
315
330
|
return !t.type.indexOf("key") && e._k(t.keyCode, "tab", 9, t.key, "Tab") ? null : e.closeMenu.apply(null, arguments);
|
|
316
331
|
}] } }, e._l(e.computedData, function(t, o) {
|
|
317
|
-
var a,
|
|
332
|
+
var a, i, l, p;
|
|
318
333
|
return n("li", { key: `menu-item-${o}`, staticClass: "b-menu-item-list__item", attrs: { role: "none" }, on: { keydown: [function(u) {
|
|
319
334
|
return !u.type.indexOf("key") && e._k(u.keyCode, "right", 39, u.key, ["Right", "ArrowRight"]) || "button" in u && u.button !== 2 ? null : e.focusRight(t, o);
|
|
320
335
|
}, function(u) {
|
|
321
336
|
return !u.type.indexOf("key") && e._k(u.keyCode, "left", 37, u.key, ["Left", "ArrowLeft"]) || "button" in u && u.button !== 0 ? null : e.focusLeft();
|
|
322
|
-
}] } }, [n("menu-item", { attrs: { text: t.text, handler: (a = t.items) != null && a.length ? () => null : t.handler, "secondary-text": t.secondaryText, icon: t.icon, chevron: !!((
|
|
323
|
-
return e.
|
|
337
|
+
}] } }, [n("menu-item", { attrs: { text: t.text, handler: (a = t.items) != null && a.length ? () => null : t.handler, "secondary-text": t.secondaryText, icon: t.icon, chevron: !!((i = t.items) != null && i.length), disabled: t.disabled, critical: t.critical, indent: t.indent, tabindex: o === e.subMenuFocusedIndex ? "0" : "-1", "aria-haspopup": !!((l = t.items) != null && l.length), "aria-expanded": e.showSubMenu && e.visibleSubMenuIndex === o }, on: { click: function(u) {
|
|
338
|
+
return e.menuItemClick(t, o);
|
|
324
339
|
} } }), t.addDivider ? n("bento-divider", { staticClass: "b-menu-item-list__divider" }) : e._e(), (p = t.items) != null && p.length && e.showSubMenu && e.visibleSubMenuIndex === o ? n("sub-menu-item-list", { ref: "subMenuItemListRef", refInFor: !0, attrs: { items: t.items, title: t.text }, on: { back: e.onBackButton, close: e.closeMenu } }) : e._e()], 1);
|
|
325
340
|
}), 0)]);
|
|
326
|
-
},
|
|
327
|
-
ce,
|
|
341
|
+
}, me = [], pe = /* @__PURE__ */ g(
|
|
328
342
|
fe,
|
|
329
|
-
|
|
343
|
+
_e,
|
|
344
|
+
me,
|
|
330
345
|
!1,
|
|
331
346
|
null,
|
|
332
|
-
"
|
|
347
|
+
"159bdcfc",
|
|
333
348
|
null,
|
|
334
349
|
null
|
|
335
350
|
);
|
|
336
|
-
const
|
|
337
|
-
let
|
|
338
|
-
const
|
|
351
|
+
const ye = pe.exports, ve = Symbol("menu inverse style injection key");
|
|
352
|
+
let O = 0;
|
|
353
|
+
const be = {
|
|
339
354
|
beforeCreate() {
|
|
340
|
-
this.uuid =
|
|
355
|
+
this.uuid = O.toString(), O += 1;
|
|
341
356
|
}
|
|
342
357
|
};
|
|
343
|
-
var
|
|
358
|
+
var Ce = function() {
|
|
344
359
|
var e = this, n = e._self._c;
|
|
345
360
|
return n("svg", e._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", e.$attrs, !1), [e.$attrs["svg-title"] ? n("title", [e._v(e._s(e.$attrs["svg-title"]))]) : e._e(), n("path", { attrs: { fill: "#00112C", 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: "#00112C", 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: "#00112C", 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" } })]);
|
|
346
|
-
},
|
|
347
|
-
ye,
|
|
348
|
-
ve,
|
|
361
|
+
}, ke = [], he = /* @__PURE__ */ g(
|
|
349
362
|
be,
|
|
363
|
+
Ce,
|
|
364
|
+
ke,
|
|
350
365
|
!1,
|
|
351
366
|
null,
|
|
352
367
|
null,
|
|
353
368
|
null,
|
|
354
369
|
null
|
|
355
370
|
);
|
|
356
|
-
const
|
|
357
|
-
i18n: { messages:
|
|
371
|
+
const ge = he.exports, xe = x({
|
|
372
|
+
i18n: { messages: F },
|
|
358
373
|
name: "bento-menu",
|
|
359
|
-
components: { BentoToggleButton:
|
|
374
|
+
components: { BentoToggleButton: G, BentoPopover: H, BentoTeleport: J, MenuItemList: ye, OptionsVerticalIcon: ge },
|
|
360
375
|
props: {
|
|
361
376
|
/**
|
|
362
377
|
* Object containing props to change the menu button appearance. Accepts the same props present in BentoButton.
|
|
@@ -379,8 +394,8 @@ const he = Ce.exports, ge = x({
|
|
|
379
394
|
*/
|
|
380
395
|
menuPosition: {
|
|
381
396
|
type: String,
|
|
382
|
-
default:
|
|
383
|
-
validator: (s) => Object.values(
|
|
397
|
+
default: R.BOTTOM_START,
|
|
398
|
+
validator: (s) => Object.values(R).includes(s)
|
|
384
399
|
},
|
|
385
400
|
/**
|
|
386
401
|
* Instructs the menu popover to be visible outside of the containing container.
|
|
@@ -406,11 +421,11 @@ const he = Ce.exports, ge = x({
|
|
|
406
421
|
default: !1
|
|
407
422
|
}
|
|
408
423
|
},
|
|
409
|
-
emits: [_.CLOSE, _.OPEN],
|
|
424
|
+
emits: [_.CLOSE, _.OPEN, "menu-item-click"],
|
|
410
425
|
setup(s, { emit: e, slots: n }) {
|
|
411
|
-
const t =
|
|
412
|
-
W(
|
|
413
|
-
const
|
|
426
|
+
const t = r(null), o = r(!1), a = r(!1), i = r(null), l = w("menu"), p = w("menu-popover"), u = P(ve, r(!1));
|
|
427
|
+
W(j, u);
|
|
428
|
+
const h = v(() => ({
|
|
414
429
|
"b-menu--inverse": u.value
|
|
415
430
|
})), y = v(() => s.menuWidth ? { width: `${s.menuWidth}px` } : null), m = v(() => {
|
|
416
431
|
if (s != null && s.button)
|
|
@@ -418,20 +433,22 @@ const he = Ce.exports, ge = x({
|
|
|
418
433
|
variant: "secondary",
|
|
419
434
|
...s.button
|
|
420
435
|
};
|
|
421
|
-
}),
|
|
436
|
+
}), f = () => {
|
|
422
437
|
o.value = !0, e(_.OPEN);
|
|
423
438
|
}, b = () => {
|
|
424
439
|
o.value && (o.value = !1, t.value.$el.focus(), e(_.CLOSE));
|
|
425
|
-
},
|
|
426
|
-
|
|
440
|
+
}, k = (L) => {
|
|
441
|
+
L.stopPropagation(), o.value ? b() : f();
|
|
427
442
|
}, I = () => {
|
|
428
|
-
a.value = !1,
|
|
443
|
+
a.value = !1, f();
|
|
429
444
|
}, B = () => {
|
|
430
|
-
a.value = !0,
|
|
445
|
+
a.value = !0, f();
|
|
446
|
+
}, M = () => {
|
|
447
|
+
e("menu-item-click");
|
|
431
448
|
};
|
|
432
|
-
return
|
|
449
|
+
return q(i, b, { ignore: [t] }), {
|
|
433
450
|
// Refs
|
|
434
|
-
popoverRef:
|
|
451
|
+
popoverRef: i,
|
|
435
452
|
menuButtonRef: t,
|
|
436
453
|
// Values
|
|
437
454
|
menuId: l,
|
|
@@ -441,18 +458,19 @@ const he = Ce.exports, ge = x({
|
|
|
441
458
|
computedMenuWidth: y,
|
|
442
459
|
isLastElementFocused: a,
|
|
443
460
|
// Classes
|
|
444
|
-
computedClasses:
|
|
461
|
+
computedClasses: h,
|
|
445
462
|
isInverseColorSet: u,
|
|
446
463
|
// Methods
|
|
447
464
|
hasSlot: V(n),
|
|
448
465
|
onKeyDown: I,
|
|
449
466
|
onKeyUp: B,
|
|
450
467
|
closeMenu: b,
|
|
451
|
-
|
|
468
|
+
menuItemClick: M,
|
|
469
|
+
toggleShowMenu: k
|
|
452
470
|
};
|
|
453
471
|
}
|
|
454
472
|
});
|
|
455
|
-
var
|
|
473
|
+
var Ie = function() {
|
|
456
474
|
var e = this, n = e._self._c;
|
|
457
475
|
return e._self._setupProxy, n("div", { staticClass: "b-menu", class: e.computedClasses, on: { keydown: [function(t) {
|
|
458
476
|
return !t.type.indexOf("key") && e._k(t.keyCode, "down", 40, t.key, ["Down", "ArrowDown"]) ? null : e.onKeyDown.apply(null, arguments);
|
|
@@ -477,22 +495,23 @@ var ke = function() {
|
|
|
477
495
|
"right-end",
|
|
478
496
|
"left-start",
|
|
479
497
|
"left-end"
|
|
480
|
-
], teleport: e.teleport, "without-space": "" } }, [n("menu-item-list", { attrs: { data: e.data, "focus-last-element": e.isLastElementFocused }, on: { close: e.closeMenu } })], 1) : e._e()], 1) : e._e()], 1);
|
|
481
|
-
},
|
|
482
|
-
ge,
|
|
483
|
-
ke,
|
|
498
|
+
], teleport: e.teleport, "without-space": "" } }, [n("menu-item-list", { attrs: { data: e.data, "focus-last-element": e.isLastElementFocused }, on: { close: e.closeMenu, "menu-item-click": e.menuItemClick } })], 1) : e._e()], 1) : e._e()], 1);
|
|
499
|
+
}, Be = [], Me = /* @__PURE__ */ g(
|
|
484
500
|
xe,
|
|
501
|
+
Ie,
|
|
502
|
+
Be,
|
|
485
503
|
!1,
|
|
486
504
|
null,
|
|
487
|
-
"
|
|
505
|
+
"21e96a11",
|
|
488
506
|
null,
|
|
489
507
|
null
|
|
490
508
|
);
|
|
491
|
-
const
|
|
509
|
+
const Ke = Me.exports;
|
|
492
510
|
export {
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
511
|
+
Ke as B,
|
|
512
|
+
te as D,
|
|
513
|
+
ve as M,
|
|
514
|
+
ge as O,
|
|
496
515
|
_ as a
|
|
497
516
|
};
|
|
498
|
-
//# sourceMappingURL=index.
|
|
517
|
+
//# sourceMappingURL=index.1ea85d4a.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.1ea85d4a.js","sources":["../../src/components/menu/components/menu-item/menu-item.vue","../../src/components/menu/menu.types.ts","../../src/components/data-grid/components/data-grid-cell/data-grid-cell.keys.ts","../../src/components/menu/components/menu-list-container/menu-list-container.vue","../../src/components/menu/components/sub-menu-item-list/sub-menu-item-list.vue","../../src/components/menu/components/menu-item-list/menu-item-list.vue","../../src/components/menu/menu.keys.ts","../../../../node_modules/@adyen/ui-assets-icons-16/dist/vue/options-vertical.vue","../../src/components/menu/menu.vue"],"sourcesContent":["<template>\n <base-button\n class=\"b-menu-item\"\n role=\"menuitem\"\n :class=\"conditionalClasses\"\n :disabled=\"disabled\"\n tabindex=\"-1\"\n @click=\"onClick\"\n >\n <template v-if=\"icon\" #iconLeft>\n <component :is=\"icon\" class=\"b-menu-item__icon-left\" aria-hidden=\"true\" />\n </template>\n <template #default>\n <bento-typography el=\"span\" variant=\"body\" :stronger=\"isTitle\" class=\"b-menu-item__primary-text\">\n {{ text }}\n </bento-typography>\n <bento-typography v-if=\"secondaryText\" el=\"span\" variant=\"body\" class=\"b-menu-item__secondary-text\">\n {{ secondaryText }}\n </bento-typography>\n </template>\n <template v-if=\"chevron\" #iconRight><chevron-right-icon aria-hidden=\"true\" /></template>\n </base-button>\n</template>\n\n<script lang=\"ts\">\n import { computed, defineComponent, PropType } from 'vue';\n import ChevronRightIcon from '@adyen/ui-assets-icons-16/vue/chevron-right';\n import { BaseButton, BentoBaseButtonEvent } from '@/components/internal/base-button';\n import { BentoTypography } from '@/components/typography';\n import { BentoMenuItem } from './menu-item.types';\n\n /**\n * Menu item component to render items in a menu. For internal use only.\n */\n export default defineComponent({\n name: 'menu-item',\n components: { BaseButton, BentoTypography, ChevronRightIcon },\n props: {\n /**\n * menu-item text that gets displayed as the main label\n */\n text: {\n type: String,\n required: true,\n },\n /**\n * menu-item action that gets executed when the MeniItem is clicked\n */\n handler: {\n type: Function as PropType<BentoMenuItem['handler']>,\n required: true,\n },\n /**\n * menu-item text that gets displayed as the secondary label\n */\n secondaryText: {\n type: String,\n default: null,\n },\n /**\n * Optional chevron icon displayed to the right of the menu-item\n */\n chevron: {\n type: Boolean,\n default: false,\n },\n /**\n * Optional icon displayed to the left of the menu-item\n */\n icon: {\n // Types for Vue2 (Object) and Vue3 (Function)\n // TODO: Remove Object when fully migrated to Vue3\n type: [Object, Function] as PropType<BentoMenuItem['icon']>,\n default: null,\n },\n /**\n * Disables menu-item button functionality\n */\n disabled: {\n type: Boolean,\n default: false,\n },\n /**\n * Displays an indent variant od the menu-item\n */\n indent: {\n type: Boolean,\n default: false,\n },\n /**\n * Displays menu-item button as critical\n */\n critical: {\n type: Boolean,\n default: false,\n },\n /**\n * Renders the text in a bold variant\n */\n isTitle: {\n type: Boolean,\n default: false,\n },\n },\n emits: [BentoBaseButtonEvent.CLICK],\n setup(props, { emit }) {\n const conditionalClasses = computed(() => ({\n 'b-menu-item--critical': props.critical,\n 'b-menu-item--indent': props.indent,\n }));\n\n const onClick = (e: MouseEvent) => {\n e.stopPropagation();\n props.handler();\n emit(BentoBaseButtonEvent.CLICK);\n };\n\n return {\n // Values\n conditionalClasses,\n\n // Methods\n onClick,\n };\n },\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"./menu-item.scss\" />\n","import { BentoButton } from '../button';\n\nexport * from './components/menu-item/menu-item.types';\n\nexport enum BentoMenuEvent {\n BACK = 'back',\n CLOSE = 'close',\n OPEN = 'open',\n}\n\ntype ButtonProps = InstanceType<typeof BentoButton>['$props'];\n\nexport type BentoMenuButtonProps = {\n variant?: ButtonProps['variant'];\n condensed?: ButtonProps['condensed'];\n disabled?: ButtonProps['disabled'];\n};\n","export const DATA_GRID_CELL_MENU_REGISTERING_INJECTION_KEY = Symbol('menu registering injection key');\n","<template>\n <div\n ref=\"menuListContainerRef\"\n class=\"b-menu-list-container\"\n data-testid=\"menu-list-container\"\n v-on=\"menuListContainerEvents\"\n ><slot></slot\n ></div>\n</template>\n\n<script setup lang=\"ts\">\n import { DATA_GRID_CELL_MENU_REGISTERING_INJECTION_KEY } from '@/components/data-grid/components/data-grid-cell/data-grid-cell.keys';\n import { inject, ref } from 'vue';\n import type { DataGridCellRegisterMenu } from '@/components/data-grid/components/data-grid-cell/data-grid-cell.types';\n\n const menuListContainerRef = ref<HTMLDivElement>();\n const menuListContainerEvents = ref({});\n const registeringAndMousingOut = inject<DataGridCellRegisterMenu | false>(\n DATA_GRID_CELL_MENU_REGISTERING_INJECTION_KEY,\n false\n );\n\n // This is needed by the DataGridCell component in order to keep track of if a teleported menu\n // is being hovered over in the DataGridCellActions.\n if (registeringAndMousingOut) {\n const { registerMenuContainerElement } = registeringAndMousingOut;\n registerMenuContainerElement(menuListContainerRef);\n menuListContainerEvents.value = {\n mouseleave: registeringAndMousingOut?.menuMouseLeave,\n };\n }\n</script>\n\n<script lang=\"ts\">\n /**\n * Menu list container component to set the correct styling in a menu list. For internal use only.\n */\n export default {\n name: 'bento-menu-list-container',\n };\n</script>\n\n<style lang=\"scss\" scoped src=\"./menu-list-container.scss\" />\n","<template>\n <transition name=\"b-sub-menu-item-list__transition\" appear>\n <menu-list-container class=\"b-sub-menu-item-list\">\n <ul\n ref=\"subMenuItemListRefLocal\"\n role=\"menu\"\n class=\"b-sub-menu-item-list__list\"\n @keydown.down.stop=\"focusNext\"\n @keydown.up.stop=\"focusPrevious\"\n @keydown.esc.stop=\"onBackButton\"\n >\n <li v-for=\"(item, index) in computedItems\" :key=\"`sub-menu-item-list-item-${index}`\" role=\"none\">\n <menu-item\n :text=\"item.text\"\n :handler=\"item.handler\"\n :secondary-text=\"item.secondaryText\"\n :icon=\"item.icon\"\n :is-title=\"item.isTitle\"\n :disabled=\"item.disabled\"\n :critical=\"item.critical\"\n :indent=\"item.indent\"\n :tabindex=\"index === subMenuFocusedIndex ? '0' : '-1'\"\n @click=\"item.clickHandler\"\n />\n <bento-divider v-if=\"item.addDivider\" class=\"b-sub-menu-item-list__divider\" />\n </li>\n </ul>\n </menu-list-container>\n </transition>\n</template>\n\n<script lang=\"ts\">\n import { computed, defineComponent, onMounted, PropType, ref } from 'vue';\n import { BentoDivider } from '@/components/divider';\n import { BentoMenuItem, MenuItem } from '../menu-item';\n import MenuListContainer from '../menu-list-container/menu-list-container.vue';\n import ChevronLeftIcon from '@adyen/ui-assets-icons-16/vue/chevron-left';\n import { BentoMenuEvent } from '../../menu.types';\n import messages from '../../messages.json';\n\n /**\n * SubMenuItemList component to render a submenu with the sliding transition. For internal use only.\n */\n export default defineComponent({\n i18n: { messages },\n name: 'sub-menu-item-list',\n components: { BentoDivider, MenuItem, MenuListContainer },\n props: {\n items: {\n type: Array as PropType<BentoMenuItem[]>,\n required: true,\n },\n title: {\n type: String,\n required: true,\n },\n },\n emits: [BentoMenuEvent.CLOSE, BentoMenuEvent.BACK],\n setup(props, { emit }) {\n const subMenuItemListRefLocal = ref(null);\n const subMenuFocusedIndex = ref(0);\n const numberOfItems = ref(props.items.length);\n\n const closeMenu = () => emit(BentoMenuEvent.CLOSE);\n\n const onBackButton = () => emit(BentoMenuEvent.BACK);\n\n const computedItems = computed(() => {\n const items = props.items?.map(el => ({\n ...el,\n indent: !el.icon,\n isTitle: false,\n clickHandler: closeMenu,\n }));\n return [\n {\n text: props.title,\n secondaryText: null,\n critical: false,\n icon: ChevronLeftIcon,\n isTitle: true,\n disabled: false,\n indent: false,\n handler: onBackButton,\n clickHandler: onBackButton,\n addDivider: true,\n },\n ...items,\n ];\n });\n\n const focusItem = async () => {\n subMenuItemListRefLocal.value?.children?.[subMenuFocusedIndex.value]?.children?.[0]?.focus();\n };\n\n onMounted(async () => {\n // Using setTimeout otherwise the sliding animation doesn't work anymore. The timeout imer is the same as the transition time (0.15s)\n setTimeout(() => focusItem(), 150);\n });\n\n const focusPrevious = () => {\n if (subMenuFocusedIndex.value > 0) {\n subMenuFocusedIndex.value -= 1;\n if (computedItems.value[subMenuFocusedIndex.value].disabled) {\n focusPrevious();\n }\n } else {\n subMenuFocusedIndex.value = numberOfItems.value;\n }\n focusItem();\n };\n\n const focusNext = () => {\n if (subMenuFocusedIndex.value < numberOfItems.value) {\n subMenuFocusedIndex.value += 1;\n if (computedItems.value[subMenuFocusedIndex.value].disabled) {\n focusNext();\n }\n } else {\n subMenuFocusedIndex.value = 0;\n }\n focusItem();\n };\n\n return {\n // Enums\n BentoMenuEvent,\n\n // Values\n subMenuItemListRefLocal,\n subMenuFocusedIndex,\n ChevronLeftIcon,\n computedItems,\n\n // Methods\n closeMenu,\n onBackButton,\n focusPrevious,\n focusNext,\n };\n },\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"./sub-menu-item-list.scss\" />\n","<template>\n <menu-list-container ref=\"menuItemListWrapperRef\" :style=\"{ height: computedHeight }\">\n <ul\n ref=\"menuItemListRef\"\n class=\"b-menu-item-list\"\n role=\"menu\"\n @keydown.down=\"focusNext\"\n @keydown.up=\"focusPrevious\"\n @keydown.esc=\"closeMenu\"\n @keydown.tab=\"closeMenu\"\n >\n <li\n v-for=\"(item, index) in computedData\"\n :key=\"`menu-item-${index}`\"\n class=\"b-menu-item-list__item\"\n role=\"none\"\n @keydown.right=\"focusRight(item, index)\"\n @keydown.left=\"focusLeft()\"\n >\n <menu-item\n :text=\"item.text\"\n :handler=\"!item.items?.length ? item.handler : () => null\"\n :secondary-text=\"item.secondaryText\"\n :icon=\"item.icon\"\n :chevron=\"!!item.items?.length\"\n :disabled=\"item.disabled\"\n :critical=\"item.critical\"\n :indent=\"item.indent\"\n :tabindex=\"index === subMenuFocusedIndex ? '0' : '-1'\"\n :aria-haspopup=\"!!item.items?.length\"\n :aria-expanded=\"showSubMenu && visibleSubMenuIndex === index\"\n @click=\"menuItemClick(item, index)\"\n />\n <bento-divider v-if=\"item.addDivider\" class=\"b-menu-item-list__divider\" />\n <sub-menu-item-list\n v-if=\"item.items?.length && showSubMenu && visibleSubMenuIndex === index\"\n ref=\"subMenuItemListRef\"\n :items=\"item.items\"\n :title=\"item.text\"\n @back=\"onBackButton\"\n @close=\"closeMenu\"\n />\n </li>\n </ul>\n </menu-list-container>\n</template>\n\n<script lang=\"ts\">\n import { computed, defineComponent, PropType, ref } from 'vue';\n import { BentoDivider } from '@/components/divider';\n import { BentoMenuItem, MenuItem } from '../menu-item';\n import { BentoMenuEvent } from '../../menu.types';\n import MenuListContainer from '../menu-list-container/menu-list-container.vue';\n import SubMenuItemList from '../sub-menu-item-list/sub-menu-item-list.vue';\n\n /**\n * MenuItem list to be used in the Menu component. For internal use only.\n */\n export default defineComponent({\n name: 'menu-item-list',\n components: { BentoDivider, MenuItem, MenuListContainer, SubMenuItemList },\n props: {\n /**\n * The data to be displayed in the list\n */\n data: {\n type: Array as PropType<BentoMenuItem[]>,\n required: true,\n },\n /**\n * Displays the menu-items of the list in the indent variant. Only applies to elements that don't have an icon to their left.\n */\n indentItems: {\n type: Boolean,\n default: false,\n },\n /**\n * If set to true, focuses the last item on the list instead of the first. Used for accessibility purposes when the menu is opened with the 'up' arrow key.\n */\n focusLastElement: {\n type: Boolean,\n default: false,\n },\n },\n emits: [BentoMenuEvent.CLOSE, 'menu-item-click'],\n setup(props, { emit }) {\n const menuItemListRef = ref(null);\n const menuItemListWrapperRef = ref(null);\n const subMenuItemListRef = ref(null);\n const showSubMenu = ref(false);\n const visibleSubMenuIndex = ref(null);\n const focusedIndex = ref(props.focusLastElement ? props.data.length - 1 : 0);\n const subMenuFocusedIndex = ref(0);\n const numberOfItems = ref(props.data.length - 1);\n const hasMenuItemsWithIcon = computed(() => props.data.some(el => el.icon));\n\n const computedData = computed(() => {\n if (props.indentItems || hasMenuItemsWithIcon.value) {\n return props.data.map(el => {\n let indent = false;\n if (!el.icon) {\n indent = true;\n }\n return {\n ...el,\n // eslint-disable-next-line no-param-reassign\n indent,\n };\n });\n }\n return props.data;\n });\n\n const focusItem = () => menuItemListRef.value?.children[focusedIndex.value]?.children[0]?.focus();\n\n const closeMenu = () => emit(BentoMenuEvent.CLOSE);\n\n const menuItemClick = (item: BentoMenuItem, index: number) => {\n if (item.items) {\n visibleSubMenuIndex.value = index;\n showSubMenu.value = true;\n } else {\n visibleSubMenuIndex.value = index;\n showSubMenu.value = false;\n closeMenu();\n emit('menu-item-click');\n }\n };\n\n const focusPrevious = () => {\n if (focusedIndex.value > 0) {\n focusedIndex.value -= 1;\n if (computedData.value[focusedIndex.value].disabled) {\n focusPrevious();\n }\n } else {\n focusedIndex.value = numberOfItems.value;\n }\n focusItem();\n };\n\n const focusNext = () => {\n if (focusedIndex.value < numberOfItems.value) {\n focusedIndex.value += 1;\n if (computedData.value[focusedIndex.value].disabled) {\n focusNext();\n }\n } else {\n focusedIndex.value = 0;\n }\n focusItem();\n };\n\n const focusRight = (item, index) => {\n if (item?.items?.length) {\n visibleSubMenuIndex.value = index;\n showSubMenu.value = true;\n }\n };\n\n const focusLeft = () => {\n if (visibleSubMenuIndex.value && showSubMenu.value) {\n visibleSubMenuIndex.value = null;\n showSubMenu.value = false;\n }\n };\n\n const onBackButton = () => {\n showSubMenu.value = false;\n visibleSubMenuIndex.value = null;\n // Focus the right element\n focusItem();\n };\n\n const subMenuHeight = computed(() => subMenuItemListRef.value?.[0]?.$el?.offsetHeight);\n\n // When we show the sub menu we need to set the height of the container because of the way the submenus are handled,\n // but the main menu doesn't need a height, as the popover will generate it with the right height\n const computedHeight = computed(() => (showSubMenu.value ? `${subMenuHeight.value}px` : ''));\n\n return {\n // Values\n menuItemListRef,\n menuItemListWrapperRef,\n subMenuItemListRef,\n\n computedData,\n computedHeight,\n\n focusedIndex,\n subMenuFocusedIndex,\n\n showSubMenu,\n visibleSubMenuIndex,\n\n // Methods\n menuItemClick,\n closeMenu,\n focusPrevious,\n focusNext,\n focusRight,\n focusLeft,\n onBackButton,\n };\n },\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"./menu-item-list.scss\" />\n","export const MENU_INVERSE_INJECTION_KEY = Symbol('menu inverse style injection key');\n","\n<template>\n <svg role=\"img\" v-bind=\"$attrs\" class=\"ui-assets-icons-16\" xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" fill=\"none\"><title v-if=\"$attrs['svg-title']\">{{ $attrs['svg-title'] }}</title><path fill=\"#00112C\" 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\"/><path fill=\"#00112C\" 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\"/><path fill=\"#00112C\" 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\"/></svg>\n</template>\n<script>\n let uuid = 0;\n\n export default {\n beforeCreate() {\n this.uuid = uuid.toString();\n uuid += 1;\n },\n };\n</script>\n<style>\n @import '../css/main.css';\n</style>\n","<template>\n <div\n :class=\"computedClasses\"\n class=\"b-menu\"\n @keydown.down=\"onKeyDown\"\n @keydown.up=\"onKeyUp\"\n @keydown.esc=\"closeMenu\"\n >\n <bento-toggle-button\n ref=\"menuButtonRef\"\n aria-haspopup=\"true\"\n v-bind=\"computedButtonPropsWithDefaults\"\n :aria-controls=\"showMenu ? menuId : null\"\n :toggled=\"showMenu\"\n :inverse=\"isInverseColorSet\"\n @click=\"toggleShowMenu\"\n >\n <template v-if=\"!hasSlot('default') || hasSlot('iconLeft')\" #iconLeft>\n <slot name=\"iconLeft\">\n <options-vertical-icon :title=\"$t('menuButton')\" />\n </slot>\n </template>\n <template v-if=\"hasSlot('default')\" #default>\n <slot />\n </template>\n <template v-if=\"hasSlot('iconRight')\" #iconRight>\n <slot name=\"iconRight\" />\n </template>\n </bento-toggle-button>\n\n <bento-teleport v-if=\"menuButtonRef\" :disabled=\"!teleport\">\n <bento-popover\n v-if=\"menuButtonRef\"\n :id=\"menuId\"\n ref=\"popoverRef\"\n :open=\"showMenu\"\n class=\"b-menu__popover\"\n :style=\"computedMenuWidth\"\n :target-element=\"menuButtonRef\"\n :position=\"menuPosition\"\n :fixed-positioning=\"menuFixedPositioning\"\n :fallback-position=\"[\n 'bottom-start',\n 'bottom-end',\n 'top-start',\n 'top-end',\n 'right-start',\n 'right-end',\n 'left-start',\n 'left-end',\n ]\"\n :teleport=\"teleport\"\n without-space\n >\n <menu-item-list\n :data=\"data\"\n :focus-last-element=\"isLastElementFocused\"\n @close=\"closeMenu\"\n @menu-item-click=\"menuItemClick\"\n />\n </bento-popover>\n </bento-teleport>\n </div>\n</template>\n\n<script lang=\"ts\">\n import { computed, defineComponent, inject, PropType, provide, ref } from 'vue';\n import { generateUid } from '@/utils/ts/unique-id';\n import { BentoToggleButton } from '@/components/button';\n import { BentoPopover, BentoPopoverPositions } from '@/components/popover';\n import { BentoMenuItem, MenuItemList } from './components';\n import { BentoMenuButtonProps, BentoMenuEvent } from './menu.types';\n import { DIVIDER_INVERSE_INJECTION_KEY } from '@/components/divider/divider.keys';\n import { MENU_INVERSE_INJECTION_KEY } from './menu.keys';\n import { BentoTeleport } from '@/internal';\n import { useClickOutside, useHasSlot } from '@/composables';\n import OptionsVerticalIcon from '@adyen/ui-assets-icons-16/vue/options-vertical';\n import messages from './messages.json';\n\n /**\n * Menu component to render a series of buttons. Csan render nested submenus.\n *\n * @example\n * import { BentoMenu } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoMenu },\n * template: `\n * <bento-menu\n * :data=[\n * { text: 'Menu item text', handler: () => { some code here } },\n * { text: 'Another menu item text', handler: () => { some other code here }, critical: true }\n * ]\n * />\n * }\n */\n export default defineComponent({\n i18n: { messages },\n name: 'bento-menu',\n components: { BentoToggleButton, BentoPopover, BentoTeleport, MenuItemList, OptionsVerticalIcon },\n props: {\n /**\n * Object containing props to change the menu button appearance. Accepts the same props present in BentoButton.\n */\n button: {\n type: Object as PropType<BentoMenuButtonProps>,\n default: () =>\n ({\n variant: 'secondary',\n } as BentoMenuButtonProps),\n },\n /**\n * The data to be displayed in the list\n */\n data: {\n type: Array as PropType<BentoMenuItem[]>,\n required: true,\n },\n\n /**\n * The position of where the menu should open.\n */\n menuPosition: {\n type: String as PropType<BentoPopoverPositions | `${BentoPopoverPositions}`>,\n default: BentoPopoverPositions.BOTTOM_START,\n validator: (value: BentoPopoverPositions) => Object.values(BentoPopoverPositions).includes(value),\n },\n\n /**\n * Instructs the menu popover to be visible outside of the containing container.\n * @see {@link https://floating-ui.com/docs/usefloating#strategy}\n */\n menuFixedPositioning: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Sets a custom width for the menu popover.\n */\n menuWidth: {\n type: Number,\n default: null,\n },\n\n /**\n * Can be used to set the inner teleport component to render the menu's popover in the root `body` DOM node\n * (or `dialog` if popover is inside a dialog).\n */\n teleport: {\n type: Boolean,\n default: false,\n },\n },\n emits: [BentoMenuEvent.CLOSE, BentoMenuEvent.OPEN, 'menu-item-click'],\n setup(props, { emit, slots }) {\n const menuButtonRef = ref(null);\n const showMenu = ref(false);\n const isLastElementFocused = ref(false);\n const popoverRef = ref<HTMLElement>(null);\n const menuId = generateUid('menu');\n const popoverId = generateUid('menu-popover');\n\n const isInverseColorSet = inject(MENU_INVERSE_INJECTION_KEY, ref(false));\n provide(DIVIDER_INVERSE_INJECTION_KEY, isInverseColorSet);\n\n const computedClasses = computed(() => ({\n 'b-menu--inverse': isInverseColorSet.value,\n }));\n\n const computedMenuWidth = computed(() => (props.menuWidth ? { width: `${props.menuWidth}px` } : null));\n const computedButtonPropsWithDefaults = computed<BentoMenuButtonProps>(() => {\n if (!props?.button) {\n return undefined;\n }\n return {\n variant: 'secondary',\n ...props.button,\n };\n });\n\n const openMenu = () => {\n showMenu.value = true;\n emit(BentoMenuEvent.OPEN);\n };\n\n const closeMenu = () => {\n if (showMenu.value) {\n showMenu.value = false;\n menuButtonRef.value.$el.focus();\n emit(BentoMenuEvent.CLOSE);\n }\n };\n\n const toggleShowMenu = (e: MouseEvent) => {\n e.stopPropagation();\n if (!showMenu.value) {\n openMenu();\n } else {\n closeMenu();\n }\n };\n\n const onKeyDown = () => {\n isLastElementFocused.value = false;\n openMenu();\n };\n\n const onKeyUp = () => {\n isLastElementFocused.value = true;\n openMenu();\n };\n\n const menuItemClick = () => {\n emit('menu-item-click');\n };\n\n // Ignore the events inside the Button and the Popover\n useClickOutside(popoverRef, closeMenu, { ignore: [menuButtonRef] });\n\n return {\n // Refs\n popoverRef,\n menuButtonRef,\n\n // Values\n menuId,\n popoverId,\n showMenu,\n computedButtonPropsWithDefaults,\n computedMenuWidth,\n isLastElementFocused,\n\n // Classes\n computedClasses,\n isInverseColorSet,\n\n // Methods\n hasSlot: useHasSlot(slots),\n onKeyDown,\n onKeyUp,\n closeMenu,\n menuItemClick,\n toggleShowMenu,\n };\n },\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"./menu.scss\" />\n"],"names":["_sfc_main$5","defineComponent","BaseButton","BentoTypography","ChevronRightIcon","BentoBaseButtonEvent","props","emit","computed","e","BentoMenuEvent","BentoMenuEvent2","DATA_GRID_CELL_MENU_REGISTERING_INJECTION_KEY","__default__","menuListContainerRef","ref","menuListContainerEvents","registeringAndMousingOut","inject","registerMenuContainerElement","_sfc_main$3","messages","BentoDivider","MenuItem","MenuListContainer","subMenuItemListRefLocal","subMenuFocusedIndex","numberOfItems","closeMenu","onBackButton","computedItems","items","_a","el","ChevronLeftIcon","focusItem","_e","_d","_c","_b","onMounted","focusPrevious","focusNext","_sfc_main$2","SubMenuItemList","menuItemListRef","menuItemListWrapperRef","subMenuItemListRef","showSubMenu","visibleSubMenuIndex","focusedIndex","hasMenuItemsWithIcon","computedData","indent","menuItemClick","item","index","focusRight","focusLeft","subMenuHeight","computedHeight","MENU_INVERSE_INJECTION_KEY","uuid","_sfc_main$1","_sfc_main","BentoToggleButton","BentoPopover","BentoTeleport","MenuItemList","OptionsVerticalIcon","BentoPopoverPositions","value","slots","menuButtonRef","showMenu","isLastElementFocused","popoverRef","menuId","generateUid","popoverId","isInverseColorSet","provide","DIVIDER_INVERSE_INJECTION_KEY","computedClasses","computedMenuWidth","computedButtonPropsWithDefaults","openMenu","toggleShowMenu","onKeyDown","onKeyUp","useClickOutside","useHasSlot"],"mappings":";;;;;;;;;;;;;AAkCA,MAAAA,IAAAC,EAAA;AAAA,EAAA,MAAA;AAAA,EACA,YAAA,EAAA,YAAAC,GAAA,iBAAAC,GAAA,kBAAAC,EAAA;AAAA,EACA,OAAA;AAAA;AAAA;AAAA;AAAA,IACA,MAAA;AAAA,MAIA,MAAA;AAAA,MACA,UAAA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA,IACA,SAAA;AAAA,MAIA,MAAA;AAAA,MACA,UAAA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA,IACA,eAAA;AAAA,MAIA,MAAA;AAAA,MACA,SAAA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA,IACA,SAAA;AAAA,MAIA,MAAA;AAAA,MACA,SAAA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA,IACA,MAAA;AAAA;AAAA;AAAA,MAIA,MAAA,CAAA,QAAA,QAAA;AAAA,MAGA,SAAA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA,IACA,UAAA;AAAA,MAIA,MAAA;AAAA,MACA,SAAA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA,IACA,QAAA;AAAA,MAIA,MAAA;A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,EAAA,QAAA,IACAnE,EAAAG,EAAA,IAAA;AAAA,IAAA,GAGAkB,IAAA,MAAA;AACA,MAAA8C,EAAA,UACAA,EAAA,QAAA,IACAD,EAAA,MAAA,IAAA,MAAA,GACAlE,EAAAG,EAAA,KAAA;AAAA,IACA,GAGA6E,IAAA,CAAA9E,MAAA;AACA,MAAAA,EAAA,gBAAA,GACAiE,EAAA,QAGA9C,EAAA,IAFA0D,EAAA;AAAA,IAGA,GAGAE,IAAA,MAAA;AACA,MAAAb,EAAA,QAAA,IACAW,EAAA;AAAA,IAAA,GAGAG,IAAA,MAAA;AACA,MAAAd,EAAA,QAAA,IACAW,EAAA;AAAA,IAAA,GAGAhC,IAAA,MAAA;AACA,MAAA/C,EAAA,iBAAA;AAAA,IAAA;AAIA,WAAAmF,EAAAd,GAAAhD,GAAA,EAAA,QAAA,CAAA6C,CAAA,EAAA,CAAA,GAEA;AAAA;AAAA,MAAA,YAAAG;AAAA,MAEA,eAAAH;AAAA;AAAA,MACA,QAAAI;AAAA,MAGA,WAAAE;AAAA,MACA,UAAAL;AAAA,MACA,iCAAAW;AAAA,MACA,mBAAAD;AAAA,MACA,sBAAAT;AAAA;AAAA,MACA,iBAAAQ;AAAA,MAGA,mBAAAH;AAAA;AAAA,MACA,SAAAW,EAAAnB,CAAA;AAAA,MAGA,WAAAgB;AAAA,MACA,SAAAC;AAAA,MACA,WAAA7D;AAAA,MACA,eAAA0B;AAAA,MACA,gBAAAiC;AAAA,IACA;AAAA,EACA;AAEA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","x_google_ignoreList":[7]}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as f, computed as o } from "vue";
|
|
2
2
|
import { RouterLink as d } from "vue-router";
|
|
3
|
-
import { B as g } from "./index.
|
|
3
|
+
import { B as g } from "./index.dd30e538.js";
|
|
4
4
|
import { n as _ } from "./_plugin-vue2_normalizer.71e2aa87.js";
|
|
5
|
-
import "../assets/
|
|
5
|
+
import "../assets/index42.css";
|
|
6
6
|
var s = /* @__PURE__ */ ((a) => (a.DEFAULT = "default", a.QUIET = "quiet", a))(s || {});
|
|
7
7
|
let c = 0;
|
|
8
8
|
const v = {
|
|
@@ -81,4 +81,4 @@ export {
|
|
|
81
81
|
x as E,
|
|
82
82
|
s as a
|
|
83
83
|
};
|
|
84
|
-
//# sourceMappingURL=index.
|
|
84
|
+
//# sourceMappingURL=index.317fca12.js.map
|