@adyen/bento-vue2 1.22.0 → 1.23.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 +111 -23
- package/dist/accordion.js +3 -3
- package/dist/action-bar.js +7 -7
- package/dist/alert.js +7 -7
- package/dist/assets/base-modal.css +1 -1
- package/dist/assets/button.css +1 -1
- package/dist/assets/dialog-page.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/index46.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/avatar-image.js +1 -1
- package/dist/button.js +5 -5
- package/dist/card.js +4 -4
- package/dist/checkbox.js +6 -6
- package/dist/chunks/{base-button.6bd3ae4d.js → base-button.025269d7.js} +2 -2
- package/dist/chunks/{base-button.6bd3ae4d.js.map → base-button.025269d7.js.map} +1 -1
- package/dist/chunks/{base-modal.bf917e7d.js → base-modal.c354f456.js} +7 -7
- package/dist/chunks/{base-modal.bf917e7d.js.map → base-modal.c354f456.js.map} +1 -1
- package/dist/chunks/{button-actions-with-menu.ec7dfc53.js → button-actions-with-menu.15d22fa3.js} +4 -4
- package/dist/chunks/{button-actions-with-menu.ec7dfc53.js.map → button-actions-with-menu.15d22fa3.js.map} +1 -1
- package/dist/chunks/{button-actions.2bf1d9d1.js → button-actions.3882346f.js} +3 -3
- package/dist/chunks/{button-actions.2bf1d9d1.js.map → button-actions.3882346f.js.map} +1 -1
- package/dist/chunks/{button.80c3c527.js → button.a823da67.js} +3 -3
- package/dist/chunks/{button.80c3c527.js.map → button.a823da67.js.map} +1 -1
- package/dist/chunks/{calendar.8cbb911d.js → calendar.4ba3b251.js} +5 -5
- package/dist/chunks/{calendar.8cbb911d.js.map → calendar.4ba3b251.js.map} +1 -1
- package/dist/chunks/{checkbox-input.17e832f1.js → checkbox-input.1c3cc8ed.js} +2 -2
- package/dist/chunks/{checkbox-input.17e832f1.js.map → checkbox-input.1c3cc8ed.js.map} +1 -1
- package/dist/chunks/{checkbox.11454247.js → checkbox.1edcc4c0.js} +4 -4
- package/dist/chunks/{checkbox.11454247.js.map → checkbox.1edcc4c0.js.map} +1 -1
- package/dist/chunks/{checkmark-circle-fill.75b87a2c.js → checkmark-circle-fill.345311d2.js} +2 -2
- package/dist/chunks/{checkmark-circle-fill.75b87a2c.js.map → checkmark-circle-fill.345311d2.js.map} +1 -1
- package/dist/chunks/{checkmark-small.07adbfcb.js → checkmark-small.520f01b1.js} +2 -2
- package/dist/chunks/{checkmark-small.07adbfcb.js.map → checkmark-small.520f01b1.js.map} +1 -1
- package/dist/chunks/{checkmark.9979f1c1.js → checkmark.a6ed8f47.js} +2 -2
- package/dist/chunks/{checkmark.9979f1c1.js.map → checkmark.a6ed8f47.js.map} +1 -1
- package/dist/chunks/{chevron-left.64e168be.js → chevron-left.5edf02ac.js} +2 -2
- package/dist/chunks/{chevron-left.64e168be.js.map → chevron-left.5edf02ac.js.map} +1 -1
- package/dist/chunks/{chevron-up.628ac446.js → chevron-up.81185563.js} +2 -2
- package/dist/chunks/{chevron-up.628ac446.js.map → chevron-up.81185563.js.map} +1 -1
- package/dist/chunks/{controls-group.0892d082.js → controls-group.b17e40ad.js} +3 -3
- package/dist/chunks/{controls-group.0892d082.js.map → controls-group.b17e40ad.js.map} +1 -1
- package/dist/chunks/{copy.2d2c6b85.js → copy.b20b47f9.js} +4 -4
- package/dist/chunks/{copy.2d2c6b85.js.map → copy.b20b47f9.js.map} +1 -1
- package/dist/chunks/{cross-circle-fill.34e86c56.js → cross-circle-fill.27580c4b.js} +2 -2
- package/dist/chunks/{cross-circle-fill.34e86c56.js.map → cross-circle-fill.27580c4b.js.map} +1 -1
- package/dist/chunks/{cross-small.e3c016cb.js → cross-small.e851e0de.js} +2 -2
- package/dist/chunks/{cross-small.e3c016cb.js.map → cross-small.e851e0de.js.map} +1 -1
- package/dist/chunks/{cross.e5433f3b.js → cross.04678d81.js} +2 -2
- package/dist/chunks/{cross.e5433f3b.js.map → cross.04678d81.js.map} +1 -1
- package/dist/chunks/{dialog-page.21f1eb92.js → dialog-page.3965f89e.js} +3 -3
- package/dist/chunks/{dialog-page.21f1eb92.js.map → dialog-page.3965f89e.js.map} +1 -1
- package/dist/chunks/{dropdown-default-textbox.9c23c94d.js → dropdown-default-textbox.537c81a2.js} +57 -37
- package/dist/chunks/dropdown-default-textbox.537c81a2.js.map +1 -0
- package/dist/chunks/{dropdown.dad8cedd.js → dropdown.93a582cc.js} +20 -21
- package/dist/chunks/{dropdown.dad8cedd.js.map → dropdown.93a582cc.js.map} +1 -1
- package/dist/chunks/{error-message.5fdafd8c.js → error-message.7022fa86.js} +3 -3
- package/dist/chunks/{error-message.5fdafd8c.js.map → error-message.7022fa86.js.map} +1 -1
- package/dist/chunks/{fixed-scroller.e917ed3f.js → fixed-scroller.077a5709.js} +3 -3
- package/dist/chunks/{fixed-scroller.e917ed3f.js.map → fixed-scroller.077a5709.js.map} +1 -1
- package/dist/chunks/{footer-actions.599e5a1d.js → footer-actions.1f22f86d.js} +4 -4
- package/dist/chunks/{footer-actions.599e5a1d.js.map → footer-actions.1f22f86d.js.map} +1 -1
- package/dist/chunks/{index.5af5de46.js → index.0b534dc6.js} +3 -3
- package/dist/chunks/{index.5af5de46.js.map → index.0b534dc6.js.map} +1 -1
- package/dist/chunks/{index.73634ace.js → index.0be6a210.js} +31 -32
- package/dist/chunks/{index.73634ace.js.map → index.0be6a210.js.map} +1 -1
- package/dist/chunks/{index.d681cfda.js → index.19675c16.js} +12 -11
- package/dist/chunks/index.19675c16.js.map +1 -0
- package/dist/chunks/{index.929dda57.js → index.255c82a2.js} +107 -106
- package/dist/chunks/index.255c82a2.js.map +1 -0
- package/dist/chunks/{index.0c4a8dd9.js → index.59d76d6b.js} +3 -3
- package/dist/chunks/{index.0c4a8dd9.js.map → index.59d76d6b.js.map} +1 -1
- package/dist/chunks/{index.937a82c2.js → index.787ded40.js} +7 -7
- package/dist/chunks/{index.937a82c2.js.map → index.787ded40.js.map} +1 -1
- package/dist/chunks/{index.66c8d79f.js → index.7a59b0b8.js} +7 -7
- package/dist/chunks/{index.66c8d79f.js.map → index.7a59b0b8.js.map} +1 -1
- package/dist/chunks/{index.7d2ea1de.js → index.9d130872.js} +2 -2
- package/dist/chunks/{index.7d2ea1de.js.map → index.9d130872.js.map} +1 -1
- package/dist/chunks/{index.823243d9.js → index.b231f9ef.js} +2 -2
- package/dist/chunks/{index.823243d9.js.map → index.b231f9ef.js.map} +1 -1
- package/dist/chunks/{index.0c33067d.js → index.be6917c8.js} +2 -2
- package/dist/chunks/{index.0c33067d.js.map → index.be6917c8.js.map} +1 -1
- package/dist/chunks/{index.3ddbe834.js → index.f828081b.js} +2 -2
- package/dist/chunks/{index.3ddbe834.js.map → index.f828081b.js.map} +1 -1
- package/dist/chunks/{info-filled.ee9571d9.js → info-filled.c37e091d.js} +2 -2
- package/dist/chunks/{info-filled.ee9571d9.js.map → info-filled.c37e091d.js.map} +1 -1
- package/dist/chunks/{info.b11d377e.js → info.8b6328aa.js} +2 -2
- package/dist/chunks/{info.b11d377e.js.map → info.8b6328aa.js.map} +1 -1
- package/dist/chunks/{listbox-option-tag.52ca5a60.js → listbox-option-tag.e025da67.js} +3 -3
- package/dist/chunks/{listbox-option-tag.52ca5a60.js.map → listbox-option-tag.e025da67.js.map} +1 -1
- package/dist/chunks/{listbox.6d8bd2ae.js → listbox.f99c2f3e.js} +8 -8
- package/dist/chunks/{listbox.6d8bd2ae.js.map → listbox.f99c2f3e.js.map} +1 -1
- package/dist/chunks/{loading-button.73c0bd64.js → loading-button.5de13e50.js} +4 -4
- package/dist/chunks/{loading-button.73c0bd64.js.map → loading-button.5de13e50.js.map} +1 -1
- package/dist/chunks/{payment-method.eeb54552.js → payment-method.bf9e71a2.js} +2 -2
- package/dist/chunks/{payment-method.eeb54552.js.map → payment-method.bf9e71a2.js.map} +1 -1
- package/dist/chunks/{refresh.f8e1b23c.js → refresh.71a03998.js} +2 -2
- package/dist/chunks/{refresh.f8e1b23c.js.map → refresh.71a03998.js.map} +1 -1
- package/dist/chunks/{search.4b38a2ef.js → search.471270fe.js} +2 -2
- package/dist/chunks/{search.4b38a2ef.js.map → search.471270fe.js.map} +1 -1
- package/dist/chunks/{tooltip.a9133b59.js → tooltip.eb1eb37e.js} +3 -3
- package/dist/chunks/{tooltip.a9133b59.js.map → tooltip.eb1eb37e.js.map} +1 -1
- package/dist/chunks/use-click-outside.941d1600.js +14 -0
- package/dist/chunks/use-click-outside.941d1600.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 +857 -772
- package/dist/data-grid.js.map +1 -1
- package/dist/date-picker.js +39 -40
- package/dist/date-picker.js.map +1 -1
- 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 +424 -431
- package/dist/filter-bar.js.map +1 -1
- package/dist/focus-trap.js +1 -1
- package/dist/form-layout.js +2 -2
- package/dist/header.js +5 -5
- package/dist/index.js +20 -20
- package/dist/info-icon.js +4 -4
- package/dist/input-field.js +4 -4
- package/dist/internal.js +8 -8
- package/dist/link.js +1 -1
- package/dist/loading-indicator.js +1 -1
- package/dist/menu.js +1 -1
- package/dist/modal-fullscreen.js +7 -7
- 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 +4 -4
- package/dist/search-bar.js +4 -4
- package/dist/secondary-nav.js +2 -2
- package/dist/segmented-control.js +4 -4
- package/dist/selection-card.js +5 -5
- package/dist/sidepanel.js +7 -7
- package/dist/status.js +2 -2
- package/dist/stepper.js +144 -133
- package/dist/stepper.js.map +1 -1
- package/dist/structured-list.js +1 -1
- package/dist/summary-grid.js +3 -3
- package/dist/tabs.js +3 -3
- package/dist/tag.js +3 -3
- package/dist/textarea.js +4 -4
- package/dist/timeline.js +7 -7
- package/dist/toast.js +5 -5
- package/dist/toggle.js +3 -3
- package/dist/tutorial.js +7 -7
- package/dist/typography.js +1 -1
- package/dist/web-types.json +41 -1
- package/package.json +3 -3
- package/dist/chunks/directive.0408e565.js +0 -23
- package/dist/chunks/directive.0408e565.js.map +0 -1
- package/dist/chunks/dropdown-default-textbox.9c23c94d.js.map +0 -1
- package/dist/chunks/index.929dda57.js.map +0 -1
- package/dist/chunks/index.d681cfda.js.map +0 -1
- /package/dist/assets/{cross-small.css → cross.css} +0 -0
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { defineComponent as x, computed as v, ref as c, onMounted as K, inject as U, provide as W } from "vue";
|
|
2
|
-
import { g as
|
|
3
|
-
import { a as H, B as
|
|
4
|
-
import { B as
|
|
5
|
-
import { u as j } from "./use-
|
|
2
|
+
import { g as w } from "./unique-id.a2a2b458.js";
|
|
3
|
+
import { a as H, B as L } from "./index.787ded40.js";
|
|
4
|
+
import { B as E, D as q } from "./index.f828081b.js";
|
|
5
|
+
import { u as j } from "./use-click-outside.941d1600.js";
|
|
6
|
+
import { u as V } from "./use-has-slot.fbeb19ec.js";
|
|
6
7
|
import { n as k } from "./_plugin-vue2_normalizer.71e2aa87.js";
|
|
7
|
-
import { BentoToggleButton as
|
|
8
|
-
import { B as
|
|
9
|
-
import { a as
|
|
10
|
-
import { B as
|
|
11
|
-
import { B as
|
|
12
|
-
import
|
|
13
|
-
import "../assets/index14.css";
|
|
8
|
+
import { BentoToggleButton as Z } from "../button.js";
|
|
9
|
+
import { B as J } from "./teleport.84b0f20b.js";
|
|
10
|
+
import { a as Y, C as S } from "./chevron-left.5edf02ac.js";
|
|
11
|
+
import { B as z, a as O } from "./base-button.025269d7.js";
|
|
12
|
+
import { B as G } from "./index.be6917c8.js";
|
|
13
|
+
import "../assets/index27.css";
|
|
14
14
|
const Q = x({
|
|
15
15
|
name: "menu-item",
|
|
16
|
-
components: { BaseButton:
|
|
16
|
+
components: { BaseButton: z, BentoTypography: G, 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: [O.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(O.CLICK);
|
|
95
95
|
}
|
|
96
96
|
};
|
|
97
97
|
}
|
|
@@ -115,8 +115,8 @@ var X = function() {
|
|
|
115
115
|
null,
|
|
116
116
|
null
|
|
117
117
|
);
|
|
118
|
-
const
|
|
119
|
-
var
|
|
118
|
+
const P = ee.exports;
|
|
119
|
+
var _ = /* @__PURE__ */ ((s) => (s.BACK = "back", s.CLOSE = "close", s.OPEN = "open", s))(_ || {});
|
|
120
120
|
const te = x({
|
|
121
121
|
name: "bento-menu-list-container"
|
|
122
122
|
});
|
|
@@ -133,15 +133,15 @@ var ne = function() {
|
|
|
133
133
|
null,
|
|
134
134
|
null
|
|
135
135
|
);
|
|
136
|
-
const
|
|
136
|
+
const T = oe.exports, D = {
|
|
137
137
|
"en-US": {
|
|
138
138
|
menuButton: "Open menu",
|
|
139
139
|
backButton: "Go back"
|
|
140
140
|
}
|
|
141
141
|
}, ue = x({
|
|
142
|
-
i18n: { messages:
|
|
142
|
+
i18n: { messages: D },
|
|
143
143
|
name: "sub-menu-item-list",
|
|
144
|
-
components: { BentoDivider:
|
|
144
|
+
components: { BentoDivider: E, MenuItem: P, MenuListContainer: T },
|
|
145
145
|
props: {
|
|
146
146
|
items: {
|
|
147
147
|
type: Array,
|
|
@@ -152,13 +152,13 @@ const P = oe.exports, T = {
|
|
|
152
152
|
required: !0
|
|
153
153
|
}
|
|
154
154
|
},
|
|
155
|
-
emits: [
|
|
155
|
+
emits: [_.CLOSE, _.BACK],
|
|
156
156
|
setup(s, { emit: e }) {
|
|
157
|
-
const n = c(null), t = c(0), o = c(s.items.length), a = () => e(
|
|
158
|
-
var
|
|
159
|
-
const y = (
|
|
160
|
-
...
|
|
161
|
-
indent: !
|
|
157
|
+
const n = c(null), t = c(0), o = c(s.items.length), a = () => e(_.CLOSE), r = () => e(_.BACK), l = v(() => {
|
|
158
|
+
var m;
|
|
159
|
+
const y = (m = s.items) == null ? void 0 : m.map((d) => ({
|
|
160
|
+
...d,
|
|
161
|
+
indent: !d.icon,
|
|
162
162
|
isTitle: !1,
|
|
163
163
|
clickHandler: a
|
|
164
164
|
}));
|
|
@@ -167,7 +167,7 @@ const P = oe.exports, T = {
|
|
|
167
167
|
text: s.title,
|
|
168
168
|
secondaryText: null,
|
|
169
169
|
critical: !1,
|
|
170
|
-
icon:
|
|
170
|
+
icon: S,
|
|
171
171
|
isTitle: !0,
|
|
172
172
|
disabled: !1,
|
|
173
173
|
indent: !1,
|
|
@@ -177,31 +177,31 @@ const P = oe.exports, T = {
|
|
|
177
177
|
},
|
|
178
178
|
...y
|
|
179
179
|
];
|
|
180
|
-
}),
|
|
181
|
-
var y,
|
|
182
|
-
(
|
|
180
|
+
}), p = async () => {
|
|
181
|
+
var y, m, d, b, h;
|
|
182
|
+
(h = (b = (d = (m = (y = n.value) == null ? void 0 : y.children) == null ? void 0 : m[t.value]) == null ? void 0 : d.children) == null ? void 0 : b[0]) == null || h.focus();
|
|
183
183
|
};
|
|
184
184
|
K(async () => {
|
|
185
|
-
setTimeout(() =>
|
|
185
|
+
setTimeout(() => p(), 150);
|
|
186
186
|
});
|
|
187
187
|
const u = () => {
|
|
188
|
-
t.value > 0 ? (t.value -= 1, l.value[t.value].disabled && u()) : t.value = o.value,
|
|
189
|
-
},
|
|
190
|
-
t.value < o.value ? (t.value += 1, l.value[t.value].disabled &&
|
|
188
|
+
t.value > 0 ? (t.value -= 1, l.value[t.value].disabled && u()) : t.value = o.value, p();
|
|
189
|
+
}, g = () => {
|
|
190
|
+
t.value < o.value ? (t.value += 1, l.value[t.value].disabled && g()) : t.value = 0, p();
|
|
191
191
|
};
|
|
192
192
|
return {
|
|
193
193
|
// Enums
|
|
194
|
-
BentoMenuEvent:
|
|
194
|
+
BentoMenuEvent: _,
|
|
195
195
|
// Values
|
|
196
196
|
subMenuItemListRefLocal: n,
|
|
197
197
|
subMenuFocusedIndex: t,
|
|
198
|
-
ChevronLeftIcon:
|
|
198
|
+
ChevronLeftIcon: S,
|
|
199
199
|
computedItems: l,
|
|
200
200
|
// Methods
|
|
201
201
|
closeMenu: a,
|
|
202
202
|
onBackButton: r,
|
|
203
203
|
focusPrevious: u,
|
|
204
|
-
focusNext:
|
|
204
|
+
focusNext: g
|
|
205
205
|
};
|
|
206
206
|
}
|
|
207
207
|
});
|
|
@@ -228,7 +228,7 @@ var le = function() {
|
|
|
228
228
|
);
|
|
229
229
|
const ie = re.exports, ce = x({
|
|
230
230
|
name: "menu-item-list",
|
|
231
|
-
components: { BentoDivider:
|
|
231
|
+
components: { BentoDivider: E, MenuItem: P, MenuListContainer: T, SubMenuItemList: ie },
|
|
232
232
|
props: {
|
|
233
233
|
/**
|
|
234
234
|
* The data to be displayed in the list
|
|
@@ -252,58 +252,58 @@ const ie = re.exports, ce = x({
|
|
|
252
252
|
default: !1
|
|
253
253
|
}
|
|
254
254
|
},
|
|
255
|
-
emits: [
|
|
255
|
+
emits: [_.CLOSE],
|
|
256
256
|
setup(s, { emit: e }) {
|
|
257
|
-
const n = c(null), t = c(null), o = c(null), a = c(!1), r = c(null), l = c(s.focusLastElement ? s.data.length - 1 : 0),
|
|
257
|
+
const n = c(null), t = c(null), o = c(null), a = c(!1), r = c(null), l = c(s.focusLastElement ? s.data.length - 1 : 0), p = c(0), u = c(s.data.length - 1), g = v(() => s.data.some((i) => i.icon)), y = v(() => s.indentItems || g.value ? s.data.map((i) => {
|
|
258
258
|
let f = !1;
|
|
259
259
|
return i.icon || (f = !0), {
|
|
260
260
|
...i,
|
|
261
261
|
// eslint-disable-next-line no-param-reassign
|
|
262
262
|
indent: f
|
|
263
263
|
};
|
|
264
|
-
}) : s.data),
|
|
265
|
-
var i, f,
|
|
266
|
-
return (
|
|
267
|
-
},
|
|
268
|
-
i.items ? (r.value = f, a.value = !0) : (r.value = f, a.value = !1,
|
|
269
|
-
},
|
|
270
|
-
l.value > 0 ? (l.value -= 1, y.value[l.value].disabled &&
|
|
264
|
+
}) : s.data), m = () => {
|
|
265
|
+
var i, f, C;
|
|
266
|
+
return (C = (f = (i = n.value) == null ? void 0 : i.children[l.value]) == null ? void 0 : f.children[0]) == null ? void 0 : C.focus();
|
|
267
|
+
}, d = () => e(_.CLOSE), b = async (i, f) => {
|
|
268
|
+
i.items ? (r.value = f, a.value = !0) : (r.value = f, a.value = !1, d());
|
|
269
|
+
}, h = () => {
|
|
270
|
+
l.value > 0 ? (l.value -= 1, y.value[l.value].disabled && h()) : l.value = u.value, m();
|
|
271
271
|
}, I = () => {
|
|
272
|
-
l.value < u.value ? (l.value += 1, y.value[l.value].disabled && I()) : l.value = 0,
|
|
272
|
+
l.value < u.value ? (l.value += 1, y.value[l.value].disabled && I()) : l.value = 0, m();
|
|
273
273
|
}, B = (i, f) => {
|
|
274
|
-
var
|
|
275
|
-
(
|
|
276
|
-
},
|
|
274
|
+
var C;
|
|
275
|
+
(C = i == null ? void 0 : i.items) != null && C.length && (r.value = f, a.value = !0);
|
|
276
|
+
}, M = () => {
|
|
277
277
|
r.value && a.value && (r.value = null, a.value = !1);
|
|
278
278
|
}, F = () => {
|
|
279
|
-
a.value = !1, r.value = null,
|
|
280
|
-
},
|
|
281
|
-
var i, f,
|
|
282
|
-
return (
|
|
283
|
-
}),
|
|
279
|
+
a.value = !1, r.value = null, m();
|
|
280
|
+
}, A = v(() => {
|
|
281
|
+
var i, f, C;
|
|
282
|
+
return (C = (f = (i = o.value) == null ? void 0 : i[0]) == null ? void 0 : f.$el) == null ? void 0 : C.offsetHeight;
|
|
283
|
+
}), N = v(() => a.value ? `${A.value}px` : "");
|
|
284
284
|
return {
|
|
285
285
|
// Values
|
|
286
286
|
menuItemListRef: n,
|
|
287
287
|
menuItemListWrapperRef: t,
|
|
288
288
|
subMenuItemListRef: o,
|
|
289
289
|
computedData: y,
|
|
290
|
-
computedHeight:
|
|
290
|
+
computedHeight: N,
|
|
291
291
|
focusedIndex: l,
|
|
292
|
-
subMenuFocusedIndex:
|
|
292
|
+
subMenuFocusedIndex: p,
|
|
293
293
|
showSubMenu: a,
|
|
294
294
|
visibleSubMenuIndex: r,
|
|
295
295
|
// Methods
|
|
296
|
-
toggleMenu:
|
|
297
|
-
closeMenu:
|
|
298
|
-
focusPrevious:
|
|
296
|
+
toggleMenu: b,
|
|
297
|
+
closeMenu: d,
|
|
298
|
+
focusPrevious: h,
|
|
299
299
|
focusNext: I,
|
|
300
300
|
focusRight: B,
|
|
301
|
-
focusLeft:
|
|
301
|
+
focusLeft: M,
|
|
302
302
|
onBackButton: F
|
|
303
303
|
};
|
|
304
304
|
}
|
|
305
305
|
});
|
|
306
|
-
var
|
|
306
|
+
var fe = function() {
|
|
307
307
|
var e = this, n = e._self._c;
|
|
308
308
|
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
309
|
return !t.type.indexOf("key") && e._k(t.keyCode, "down", 40, t.key, ["Down", "ArrowDown"]) ? null : e.focusNext.apply(null, arguments);
|
|
@@ -314,19 +314,19 @@ var de = function() {
|
|
|
314
314
|
}, function(t) {
|
|
315
315
|
return !t.type.indexOf("key") && e._k(t.keyCode, "tab", 9, t.key, "Tab") ? null : e.closeMenu.apply(null, arguments);
|
|
316
316
|
}] } }, e._l(e.computedData, function(t, o) {
|
|
317
|
-
var a, r, l,
|
|
317
|
+
var a, r, l, p;
|
|
318
318
|
return n("li", { key: `menu-item-${o}`, staticClass: "b-menu-item-list__item", attrs: { role: "none" }, on: { keydown: [function(u) {
|
|
319
319
|
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
320
|
}, function(u) {
|
|
321
321
|
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
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: !!((r = t.items) != null && r.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) {
|
|
323
323
|
return e.toggleMenu(t, o);
|
|
324
|
-
} } }), t.addDivider ? n("bento-divider", { staticClass: "b-menu-item-list__divider" }) : e._e(), (
|
|
324
|
+
} } }), 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
325
|
}), 0)]);
|
|
326
|
-
},
|
|
326
|
+
}, de = [], _e = /* @__PURE__ */ k(
|
|
327
327
|
ce,
|
|
328
|
-
de,
|
|
329
328
|
fe,
|
|
329
|
+
de,
|
|
330
330
|
!1,
|
|
331
331
|
null,
|
|
332
332
|
"fcf4e787",
|
|
@@ -334,10 +334,10 @@ var de = function() {
|
|
|
334
334
|
null
|
|
335
335
|
);
|
|
336
336
|
const me = _e.exports, pe = Symbol("menu inverse style injection key");
|
|
337
|
-
let
|
|
337
|
+
let R = 0;
|
|
338
338
|
const ye = {
|
|
339
339
|
beforeCreate() {
|
|
340
|
-
this.uuid =
|
|
340
|
+
this.uuid = R.toString(), R += 1;
|
|
341
341
|
}
|
|
342
342
|
};
|
|
343
343
|
var ve = function() {
|
|
@@ -354,10 +354,9 @@ var ve = function() {
|
|
|
354
354
|
null
|
|
355
355
|
);
|
|
356
356
|
const he = Ce.exports, ge = x({
|
|
357
|
-
i18n: { messages:
|
|
357
|
+
i18n: { messages: D },
|
|
358
358
|
name: "bento-menu",
|
|
359
|
-
components: { BentoToggleButton:
|
|
360
|
-
directives: { BentoClickOutsideDirective: G },
|
|
359
|
+
components: { BentoToggleButton: Z, BentoPopover: H, BentoTeleport: J, MenuItemList: me, OptionsVerticalIcon: he },
|
|
361
360
|
props: {
|
|
362
361
|
/**
|
|
363
362
|
* Object containing props to change the menu button appearance. Accepts the same props present in BentoButton.
|
|
@@ -380,8 +379,8 @@ const he = Ce.exports, ge = x({
|
|
|
380
379
|
*/
|
|
381
380
|
menuPosition: {
|
|
382
381
|
type: String,
|
|
383
|
-
default:
|
|
384
|
-
validator: (s) => Object.values(
|
|
382
|
+
default: L.BOTTOM_START,
|
|
383
|
+
validator: (s) => Object.values(L).includes(s)
|
|
385
384
|
},
|
|
386
385
|
/**
|
|
387
386
|
* Instructs the menu popover to be visible outside of the containing container.
|
|
@@ -407,53 +406,55 @@ const he = Ce.exports, ge = x({
|
|
|
407
406
|
default: !1
|
|
408
407
|
}
|
|
409
408
|
},
|
|
410
|
-
emits: [
|
|
409
|
+
emits: [_.CLOSE, _.OPEN],
|
|
411
410
|
setup(s, { emit: e, slots: n }) {
|
|
412
|
-
const t = c(null), o = c(!1), a = c(!1), r =
|
|
413
|
-
W(q,
|
|
414
|
-
const
|
|
415
|
-
"b-menu--inverse":
|
|
416
|
-
})),
|
|
411
|
+
const t = c(null), o = c(!1), a = c(!1), r = c(null), l = w("menu"), p = w("menu-popover"), u = U(pe, c(!1));
|
|
412
|
+
W(q, u);
|
|
413
|
+
const g = v(() => ({
|
|
414
|
+
"b-menu--inverse": u.value
|
|
415
|
+
})), y = v(() => s.menuWidth ? { width: `${s.menuWidth}px` } : null), m = v(() => {
|
|
417
416
|
if (s != null && s.button)
|
|
418
417
|
return {
|
|
419
418
|
variant: "secondary",
|
|
420
419
|
...s.button
|
|
421
420
|
};
|
|
422
421
|
}), d = () => {
|
|
423
|
-
o.value = !0, e(
|
|
424
|
-
},
|
|
425
|
-
o.value && (o.value = !1, t.value.$el.focus(), e(
|
|
426
|
-
},
|
|
427
|
-
|
|
428
|
-
}, C = () => {
|
|
429
|
-
a.value = !1, d();
|
|
422
|
+
o.value = !0, e(_.OPEN);
|
|
423
|
+
}, b = () => {
|
|
424
|
+
o.value && (o.value = !1, t.value.$el.focus(), e(_.CLOSE));
|
|
425
|
+
}, h = (M) => {
|
|
426
|
+
M.stopPropagation(), o.value ? b() : d();
|
|
430
427
|
}, I = () => {
|
|
428
|
+
a.value = !1, d();
|
|
429
|
+
}, B = () => {
|
|
431
430
|
a.value = !0, d();
|
|
432
431
|
};
|
|
433
|
-
return {
|
|
434
|
-
//
|
|
432
|
+
return j(r, b, { ignore: [t] }), {
|
|
433
|
+
// Refs
|
|
434
|
+
popoverRef: r,
|
|
435
435
|
menuButtonRef: t,
|
|
436
|
-
|
|
437
|
-
|
|
436
|
+
// Values
|
|
437
|
+
menuId: l,
|
|
438
|
+
popoverId: p,
|
|
438
439
|
showMenu: o,
|
|
439
|
-
computedButtonPropsWithDefaults:
|
|
440
|
-
computedMenuWidth:
|
|
440
|
+
computedButtonPropsWithDefaults: m,
|
|
441
|
+
computedMenuWidth: y,
|
|
441
442
|
isLastElementFocused: a,
|
|
442
443
|
// Classes
|
|
443
|
-
computedClasses:
|
|
444
|
-
isInverseColorSet:
|
|
444
|
+
computedClasses: g,
|
|
445
|
+
isInverseColorSet: u,
|
|
445
446
|
// Methods
|
|
446
|
-
hasSlot:
|
|
447
|
-
onKeyDown:
|
|
448
|
-
onKeyUp:
|
|
449
|
-
closeMenu:
|
|
450
|
-
toggleShowMenu:
|
|
447
|
+
hasSlot: V(n),
|
|
448
|
+
onKeyDown: I,
|
|
449
|
+
onKeyUp: B,
|
|
450
|
+
closeMenu: b,
|
|
451
|
+
toggleShowMenu: h
|
|
451
452
|
};
|
|
452
453
|
}
|
|
453
454
|
});
|
|
454
455
|
var ke = function() {
|
|
455
456
|
var e = this, n = e._self._c;
|
|
456
|
-
return e._self._setupProxy, n("div", {
|
|
457
|
+
return e._self._setupProxy, n("div", { staticClass: "b-menu", class: e.computedClasses, on: { keydown: [function(t) {
|
|
457
458
|
return !t.type.indexOf("key") && e._k(t.keyCode, "down", 40, t.key, ["Down", "ArrowDown"]) ? null : e.onKeyDown.apply(null, arguments);
|
|
458
459
|
}, function(t) {
|
|
459
460
|
return !t.type.indexOf("key") && e._k(t.keyCode, "up", 38, t.key, ["Up", "ArrowUp"]) ? null : e.onKeyUp.apply(null, arguments);
|
|
@@ -467,7 +468,7 @@ var ke = function() {
|
|
|
467
468
|
return [e._t("default")];
|
|
468
469
|
}, proxy: !0 } : null, e.hasSlot("iconRight") ? { key: "iconRight", fn: function() {
|
|
469
470
|
return [e._t("iconRight")];
|
|
470
|
-
}, proxy: !0 } : null], null, !0) }, "bento-toggle-button", e.computedButtonPropsWithDefaults, !1)), e.menuButtonRef ? n("bento-teleport", { attrs: { disabled: !e.teleport } }, [e.menuButtonRef ? n("bento-popover", { staticClass: "b-menu__popover", style: e.computedMenuWidth, attrs: { id: e.menuId, open: e.showMenu, "target-element": e.menuButtonRef, position: e.menuPosition, "fixed-positioning": e.menuFixedPositioning, "fallback-position": [
|
|
471
|
+
}, proxy: !0 } : null], null, !0) }, "bento-toggle-button", e.computedButtonPropsWithDefaults, !1)), e.menuButtonRef ? n("bento-teleport", { attrs: { disabled: !e.teleport } }, [e.menuButtonRef ? n("bento-popover", { ref: "popoverRef", staticClass: "b-menu__popover", style: e.computedMenuWidth, attrs: { id: e.menuId, open: e.showMenu, "target-element": e.menuButtonRef, position: e.menuPosition, "fixed-positioning": e.menuFixedPositioning, "fallback-position": [
|
|
471
472
|
"bottom-start",
|
|
472
473
|
"bottom-end",
|
|
473
474
|
"top-start",
|
|
@@ -483,15 +484,15 @@ var ke = function() {
|
|
|
483
484
|
xe,
|
|
484
485
|
!1,
|
|
485
486
|
null,
|
|
486
|
-
"
|
|
487
|
+
"f2e97f40",
|
|
487
488
|
null,
|
|
488
489
|
null
|
|
489
490
|
);
|
|
490
|
-
const
|
|
491
|
+
const Ae = Ie.exports;
|
|
491
492
|
export {
|
|
492
|
-
|
|
493
|
+
Ae as B,
|
|
493
494
|
pe as M,
|
|
494
495
|
he as O,
|
|
495
|
-
|
|
496
|
+
_ as a
|
|
496
497
|
};
|
|
497
|
-
//# sourceMappingURL=index.
|
|
498
|
+
//# sourceMappingURL=index.255c82a2.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.255c82a2.js","sources":["../../src/components/menu/components/menu-item/menu-item.vue","../../src/components/menu/menu.types.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","<template>\n <div class=\"b-menu-list-container\"><slot></slot></div>\n</template>\n\n<script lang=\"ts\">\n import { defineComponent } from 'vue';\n\n /**\n * Menu list container component to set the correct styling in a menu list. For internal use only.\n */\n export default defineComponent({\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=\"toggleMenu(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],\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 toggleMenu = async (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 }\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 toggleMenu,\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 :data=\"data\" :focus-last-element=\"isLastElementFocused\" @close=\"closeMenu\" />\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],\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 // 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 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","_sfc_main$4","_sfc_main$3","messages","BentoDivider","MenuItem","MenuListContainer","subMenuItemListRefLocal","ref","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","toggleMenu","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","inject","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;AAAA,MACA,SAAA;AAAA,IACA;AAAA;AAAA;AAAA;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AA,QAAA,IACAY,EAAA;AAAA,IAAA;AAIA,WAAAI,EAAAf,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,iCAAAY;AAAA,MACA,mBAAAD;AAAA,MACA,sBAAAV;AAAA;AAAA,MACA,iBAAAS;AAAA,MAGA,mBAAAJ;AAAA;AAAA,MACA,SAAAY,EAAApB,CAAA;AAAA,MAGA,WAAAiB;AAAA,MACA,SAAAC;AAAA,MACA,WAAA9D;AAAA,MACA,gBAAA4D;AAAA,IACA;AAAA,EACA;AAEA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","x_google_ignoreList":[6]}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { unref as G, computed as R, ref as I, shallowRef as Xt, watch as Z, getCurrentScope as Yt, onScopeDispose as qt, shallowReadonly as q, defineComponent as Gt, toRefs as Kt } from "vue";
|
|
2
2
|
import "./index.4c062058.js";
|
|
3
|
-
import { B as Jt } from "./index.
|
|
3
|
+
import { B as Jt } from "./index.9d130872.js";
|
|
4
4
|
import { n as Qt } from "./_plugin-vue2_normalizer.71e2aa87.js";
|
|
5
|
-
import "../assets/
|
|
5
|
+
import "../assets/index8.css";
|
|
6
6
|
const Lt = ["top", "right", "bottom", "left"], yt = ["start", "end"], xt = /* @__PURE__ */ Lt.reduce((t, e) => t.concat(e, e + "-" + yt[0], e + "-" + yt[1]), []), J = Math.min, U = Math.max, it = Math.round, ot = Math.floor, z = (t) => ({
|
|
7
7
|
x: t,
|
|
8
8
|
y: t
|
|
@@ -1325,4 +1325,4 @@ export {
|
|
|
1325
1325
|
Qe as h,
|
|
1326
1326
|
de as o
|
|
1327
1327
|
};
|
|
1328
|
-
//# sourceMappingURL=index.
|
|
1328
|
+
//# sourceMappingURL=index.59d76d6b.js.map
|