@adyen/bento-vue2 0.10.0 → 0.10.1-2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/@types/components/currency/currency.vue.d.ts +9 -0
- package/dist/@types/components/data-grid/data-grid.vue.d.ts +3 -3
- package/dist/@types/components/date/date.vue.d.ts +9 -0
- package/dist/@types/components/modal/components/base-modal/base-modal.vue.d.ts +10 -0
- package/dist/@types/components/modal/components/modal-default/modal-default.vue.d.ts +9 -0
- package/dist/@types/components/modal/components/modal-dialog/modal-dialog.vue.d.ts +9 -0
- package/dist/@types/components/modal/modal.vue.d.ts +11 -0
- package/dist/@types/components/segmented-control/components/segmented-control-button/segmented-control-button.vue.d.ts +1 -1
- package/dist/@types/components/segmented-control/index.d.ts +2 -0
- package/dist/@types/components/segmented-control/segmented-control.types.d.ts +8 -0
- package/dist/@types/components/segmented-control/segmented-control.vue.d.ts +53 -0
- package/dist/@types/components.d.ts +2 -4
- package/dist/@types/index.d.ts +1 -0
- package/dist/accordion.js +206 -0
- package/dist/accordion.js.map +1 -0
- package/dist/alert.js +103 -0
- package/dist/alert.js.map +1 -0
- package/dist/assets/base-button.css +1 -0
- package/dist/assets/button-actions.css +1 -0
- package/dist/assets/button.css +1 -0
- package/dist/assets/checkbox.css +1 -0
- package/dist/assets/checkmark-circle-fill.css +1 -0
- package/dist/assets/checkmark-small.css +1 -0
- package/dist/assets/chevron-left.css +1 -0
- package/dist/assets/chevron-up.css +1 -0
- package/dist/assets/copy.css +1 -0
- package/dist/assets/cross-circle-fill.css +1 -0
- package/dist/assets/cross-small.css +1 -0
- package/dist/assets/cross.css +1 -0
- package/dist/assets/dropdown.css +1 -0
- package/dist/assets/grid-layout.css +1 -0
- package/dist/assets/index.css +1 -0
- package/dist/assets/index10.css +1 -0
- package/dist/assets/index11.css +1 -0
- package/dist/assets/index12.css +1 -0
- package/dist/assets/index13.css +1 -0
- package/dist/assets/index14.css +1 -0
- package/dist/assets/index15.css +1 -0
- package/dist/assets/index16.css +1 -0
- package/dist/assets/index17.css +1 -0
- package/dist/assets/index18.css +1 -0
- package/dist/assets/index19.css +1 -0
- package/dist/assets/index2.css +1 -0
- package/dist/assets/index20.css +1 -0
- package/dist/assets/index21.css +1 -0
- package/dist/assets/index22.css +1 -0
- package/dist/assets/index23.css +1 -0
- package/dist/assets/index24.css +1 -0
- package/dist/assets/index25.css +1 -0
- package/dist/assets/index26.css +1 -0
- package/dist/assets/index27.css +1 -0
- package/dist/assets/index28.css +1 -0
- package/dist/assets/index29.css +1 -0
- package/dist/assets/index3.css +1 -0
- package/dist/assets/index30.css +1 -0
- package/dist/assets/index31.css +1 -0
- package/dist/assets/index32.css +1 -0
- package/dist/assets/index33.css +1 -0
- package/dist/assets/index34.css +1 -0
- package/dist/assets/index35.css +1 -0
- package/dist/assets/index36.css +1 -0
- package/dist/assets/index37.css +1 -0
- package/dist/assets/index38.css +1 -0
- package/dist/assets/index4.css +1 -0
- package/dist/assets/index5.css +1 -0
- package/dist/assets/index6.css +1 -0
- package/dist/assets/index7.css +1 -0
- package/dist/assets/index8.css +1 -0
- package/dist/assets/index9.css +1 -0
- package/dist/assets/info-filled.css +1 -0
- package/dist/assets/listbox-option-tag.css +1 -0
- package/dist/assets/listbox.css +1 -0
- package/dist/assets/search.css +1 -0
- package/dist/assets/tooltip.css +1 -0
- package/dist/avatar-image.js +7 -0
- package/dist/avatar-image.js.map +1 -0
- package/dist/badge.js +57 -0
- package/dist/badge.js.map +1 -0
- package/dist/button.js +110 -0
- package/dist/button.js.map +1 -0
- package/dist/card.js +178 -0
- package/dist/card.js.map +1 -0
- package/dist/checkbox.js +94 -0
- package/dist/checkbox.js.map +1 -0
- package/dist/chunks/_plugin-vue2_normalizer.71e2aa87.js +33 -0
- package/dist/chunks/_plugin-vue2_normalizer.71e2aa87.js.map +1 -0
- package/dist/chunks/aria-label.ac9651a5.js +13 -0
- package/dist/chunks/aria-label.ac9651a5.js.map +1 -0
- package/dist/chunks/base-button.38651156.js +83 -0
- package/dist/chunks/base-button.38651156.js.map +1 -0
- package/dist/chunks/button-actions.59406268.js +105 -0
- package/dist/chunks/button-actions.59406268.js.map +1 -0
- package/dist/chunks/button.31b757d1.js +102 -0
- package/dist/chunks/button.31b757d1.js.map +1 -0
- package/dist/chunks/checkbox.fab16cce.js +138 -0
- package/dist/chunks/checkbox.fab16cce.js.map +1 -0
- package/dist/chunks/checkmark-circle-fill.d1aa324d.js +26 -0
- package/dist/chunks/checkmark-circle-fill.d1aa324d.js.map +1 -0
- package/dist/chunks/checkmark-small.1371dd20.js +26 -0
- package/dist/chunks/checkmark-small.1371dd20.js.map +1 -0
- package/dist/chunks/chevron-left.e3a49e62.js +47 -0
- package/dist/chunks/chevron-left.e3a49e62.js.map +1 -0
- package/dist/chunks/chevron-up.416431cd.js +47 -0
- package/dist/chunks/chevron-up.416431cd.js.map +1 -0
- package/dist/chunks/copy.fa9aa27e.js +105 -0
- package/dist/chunks/copy.fa9aa27e.js.map +1 -0
- package/dist/chunks/cross-circle-fill.0a1d738c.js +26 -0
- package/dist/chunks/cross-circle-fill.0a1d738c.js.map +1 -0
- package/dist/chunks/cross-small.7ecb1b97.js +26 -0
- package/dist/chunks/cross-small.7ecb1b97.js.map +1 -0
- package/dist/chunks/cross.db1f9177.js +26 -0
- package/dist/chunks/cross.db1f9177.js.map +1 -0
- package/dist/chunks/directive.23e35ab0.js +21 -0
- package/dist/chunks/directive.23e35ab0.js.map +1 -0
- package/dist/chunks/dropdown.0d394d2f.js +771 -0
- package/dist/chunks/dropdown.0d394d2f.js.map +1 -0
- package/dist/chunks/grid-layout.14423a2e.js +69 -0
- package/dist/chunks/grid-layout.14423a2e.js.map +1 -0
- package/dist/chunks/hasSlot.dceac207.js +5 -0
- package/dist/chunks/hasSlot.dceac207.js.map +1 -0
- package/dist/chunks/i18n.8934ef6c.js +1695 -0
- package/dist/chunks/i18n.8934ef6c.js.map +1 -0
- package/dist/chunks/index.2e54c294.js +801 -0
- package/dist/chunks/index.2e54c294.js.map +1 -0
- package/dist/chunks/index.34eba2c4.js +107 -0
- package/dist/chunks/index.34eba2c4.js.map +1 -0
- package/dist/chunks/index.59dc2e3f.js +801 -0
- package/dist/chunks/index.59dc2e3f.js.map +1 -0
- package/dist/chunks/index.73d7902e.js +29 -0
- package/dist/chunks/index.73d7902e.js.map +1 -0
- package/dist/chunks/index.8c38e06b.js +441 -0
- package/dist/chunks/index.8c38e06b.js.map +1 -0
- package/dist/chunks/index.8e9cdc73.js +441 -0
- package/dist/chunks/index.8e9cdc73.js.map +1 -0
- package/dist/chunks/index.a7a22907.js +929 -0
- package/dist/chunks/index.a7a22907.js.map +1 -0
- package/dist/chunks/index.ad5e1dbd.js +107 -0
- package/dist/chunks/index.ad5e1dbd.js.map +1 -0
- package/dist/chunks/index.e2141d95.js +86 -0
- package/dist/chunks/index.e2141d95.js.map +1 -0
- package/dist/chunks/index.f4582460.js +86 -0
- package/dist/chunks/index.f4582460.js.map +1 -0
- package/dist/chunks/index.f55fdc32.js +1118 -0
- package/dist/chunks/index.f55fdc32.js.map +1 -0
- package/dist/chunks/info-filled.9748686e.js +26 -0
- package/dist/chunks/info-filled.9748686e.js.map +1 -0
- package/dist/chunks/listbox-option-tag.2e5c4012.js +111 -0
- package/dist/chunks/listbox-option-tag.2e5c4012.js.map +1 -0
- package/dist/chunks/listbox-option-tag.f44b4ee0.js +111 -0
- package/dist/chunks/listbox-option-tag.f44b4ee0.js.map +1 -0
- package/dist/chunks/listbox.152dab0a.js +485 -0
- package/dist/chunks/listbox.152dab0a.js.map +1 -0
- package/dist/chunks/on-click-outside.3e0c3e2a.js +91 -0
- package/dist/chunks/on-click-outside.3e0c3e2a.js.map +1 -0
- package/dist/chunks/search.6be3396b.js +26 -0
- package/dist/chunks/search.6be3396b.js.map +1 -0
- package/dist/chunks/toastController.b1b08299.js +15 -0
- package/dist/chunks/toastController.b1b08299.js.map +1 -0
- package/dist/chunks/tooltip.a4625a7b.js +220 -0
- package/dist/chunks/tooltip.a4625a7b.js.map +1 -0
- package/dist/chunks/unique-id.a2a2b458.js +34 -0
- package/dist/chunks/unique-id.a2a2b458.js.map +1 -0
- package/dist/chunks/use-default-slot-validator.83d977a1.js +11 -0
- package/dist/chunks/use-default-slot-validator.83d977a1.js.map +1 -0
- package/dist/chunks/useCountryItems.cbe60557.js +29 -0
- package/dist/chunks/useCountryItems.cbe60557.js.map +1 -0
- package/dist/click-outside.js +23 -0
- package/dist/click-outside.js.map +1 -0
- package/dist/controls-group.js +59 -0
- package/dist/controls-group.js.map +1 -0
- package/dist/country.js +5979 -0
- package/dist/country.js.map +1 -0
- package/dist/currency.js +119 -0
- package/dist/currency.js.map +1 -0
- package/dist/data-grid.js +1169 -0
- package/dist/data-grid.js.map +1 -0
- package/dist/date-picker.js +8 -0
- package/dist/date-picker.js.map +1 -0
- package/dist/date.js +6 -0
- package/dist/date.js.map +1 -0
- package/dist/divider.js +35 -0
- package/dist/divider.js.map +1 -0
- package/dist/dropdown.js +262 -0
- package/dist/dropdown.js.map +1 -0
- package/dist/filter-bar.js +1735 -0
- package/dist/filter-bar.js.map +1 -0
- package/dist/focus-trap.js +5 -0
- package/dist/focus-trap.js.map +1 -0
- package/dist/header.js +205 -0
- package/dist/header.js.map +1 -0
- package/dist/index.js +335 -21278
- package/dist/index.js.map +1 -1
- package/dist/info-icon.js +61 -0
- package/dist/info-icon.js.map +1 -0
- package/dist/input-field.js +168 -0
- package/dist/input-field.js.map +1 -0
- package/dist/internal.js +13 -0
- package/dist/internal.js.map +1 -0
- package/dist/link.js +46 -0
- package/dist/link.js.map +1 -0
- package/dist/loading-indicator.js +51 -0
- package/dist/loading-indicator.js.map +1 -0
- package/dist/menu.js +474 -0
- package/dist/menu.js.map +1 -0
- package/dist/modal.js +709 -0
- package/dist/modal.js.map +1 -0
- package/dist/pagination.js +487 -0
- package/dist/pagination.js.map +1 -0
- package/dist/payment-method.js +84 -0
- package/dist/payment-method.js.map +1 -0
- package/dist/popover.js +284 -0
- package/dist/popover.js.map +1 -0
- package/dist/popper-container.js +225 -0
- package/dist/popper-container.js.map +1 -0
- package/dist/radio-group.js +192 -0
- package/dist/radio-group.js.map +1 -0
- package/dist/search-bar.js +106 -0
- package/dist/search-bar.js.map +1 -0
- package/dist/status.js +47 -0
- package/dist/status.js.map +1 -0
- package/dist/structured-list.js +98 -0
- package/dist/structured-list.js.map +1 -0
- package/dist/summary-grid.js +526 -0
- package/dist/summary-grid.js.map +1 -0
- package/dist/tabs.js +106 -0
- package/dist/tabs.js.map +1 -0
- package/dist/tag.js +73 -0
- package/dist/tag.js.map +1 -0
- package/dist/textarea.js +64 -0
- package/dist/textarea.js.map +1 -0
- package/dist/toast.js +132 -0
- package/dist/toast.js.map +1 -0
- package/dist/toggle.js +6 -0
- package/dist/toggle.js.map +1 -0
- package/dist/typography.js +111 -0
- package/dist/typography.js.map +1 -0
- package/dist/web-types.json +130 -13
- package/package.json +6 -4
- package/dist/@types/utils/ts/inject-css.d.ts +0 -2
package/dist/menu.js
ADDED
|
@@ -0,0 +1,474 @@
|
|
|
1
|
+
import "./assets/index20.css";
|
|
2
|
+
import { defineComponent as k, computed as v, ref as c, onMounted as U } from "vue";
|
|
3
|
+
import { n as h } from "./chunks/_plugin-vue2_normalizer.71e2aa87.js";
|
|
4
|
+
import { g as H } from "./chunks/unique-id.a2a2b458.js";
|
|
5
|
+
import { B as N, a as w } from "./chunks/button.31b757d1.js";
|
|
6
|
+
import { BentoPopover as q, BentoPopoverPositions as B } from "./popover.js";
|
|
7
|
+
import { a as V, C as I } from "./chunks/chevron-left.e3a49e62.js";
|
|
8
|
+
import { B as W, a as L } from "./chunks/base-button.38651156.js";
|
|
9
|
+
import { BentoTypography as j, BentoTypographyElement as Y, BentoTypographyVariant as Z } from "./typography.js";
|
|
10
|
+
import { B as $ } from "./chunks/directive.23e35ab0.js";
|
|
11
|
+
let O = 0;
|
|
12
|
+
const z = {
|
|
13
|
+
beforeCreate() {
|
|
14
|
+
this.uuid = O.toString(), O += 1;
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
var G = function() {
|
|
18
|
+
var e = this, n = e._self._c;
|
|
19
|
+
return n("svg", e._b({ 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", "fill-rule": "evenodd", 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.00166 0.970945 7.70006 1.00065 7.42597 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.65804 3.27936 6.93934 3.56066C7.22064 3.84197 7.60218 4 8 4Z", "clip-rule": "evenodd" } }), n("path", { attrs: { fill: "#00112C", "fill-rule": "evenodd", 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.00166 11.9709 7.70006 12.0007 7.42597 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.65804 14.2794 6.93934 14.5607C7.22064 14.842 7.60218 15 8 15Z", "clip-rule": "evenodd" } }), n("path", { attrs: { fill: "#00112C", "fill-rule": "evenodd", 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.65804 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.42597 6.61418C7.70006 6.50065 8.00166 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", "clip-rule": "evenodd" } })]);
|
|
20
|
+
}, J = [], Q = /* @__PURE__ */ h(
|
|
21
|
+
z,
|
|
22
|
+
G,
|
|
23
|
+
J,
|
|
24
|
+
!1,
|
|
25
|
+
null,
|
|
26
|
+
"c663a42e",
|
|
27
|
+
null,
|
|
28
|
+
null
|
|
29
|
+
);
|
|
30
|
+
const X = Q.exports, ee = k({
|
|
31
|
+
name: "menu-item",
|
|
32
|
+
components: { BaseButton: W, BentoTypography: j, ChevronRightIcon: V },
|
|
33
|
+
props: {
|
|
34
|
+
/**
|
|
35
|
+
* menu-item text that gets displayed as the main label
|
|
36
|
+
*/
|
|
37
|
+
text: {
|
|
38
|
+
type: String,
|
|
39
|
+
required: !0
|
|
40
|
+
},
|
|
41
|
+
/**
|
|
42
|
+
* menu-item action that gets executed when the MeniItem is clicked
|
|
43
|
+
*/
|
|
44
|
+
handler: {
|
|
45
|
+
type: Function,
|
|
46
|
+
required: !0
|
|
47
|
+
},
|
|
48
|
+
/**
|
|
49
|
+
* menu-item text that gets displayed as the secondary label
|
|
50
|
+
*/
|
|
51
|
+
secondaryText: {
|
|
52
|
+
type: String,
|
|
53
|
+
default: null
|
|
54
|
+
},
|
|
55
|
+
/**
|
|
56
|
+
* Optional chevron icon displayed to the right of the menu-item
|
|
57
|
+
*/
|
|
58
|
+
chevron: {
|
|
59
|
+
type: Boolean,
|
|
60
|
+
default: !1
|
|
61
|
+
},
|
|
62
|
+
/**
|
|
63
|
+
* Optional icon displayed to the left of the menu-item
|
|
64
|
+
*/
|
|
65
|
+
icon: {
|
|
66
|
+
type: Object,
|
|
67
|
+
default: null
|
|
68
|
+
},
|
|
69
|
+
/**
|
|
70
|
+
* Disables menu-item button functionality
|
|
71
|
+
*/
|
|
72
|
+
disabled: {
|
|
73
|
+
type: Boolean,
|
|
74
|
+
default: !1
|
|
75
|
+
},
|
|
76
|
+
/**
|
|
77
|
+
* Displays an indent variant od the menu-item
|
|
78
|
+
*/
|
|
79
|
+
indent: {
|
|
80
|
+
type: Boolean,
|
|
81
|
+
default: !1
|
|
82
|
+
},
|
|
83
|
+
/**
|
|
84
|
+
* Displays menu-item button as critical
|
|
85
|
+
*/
|
|
86
|
+
critical: {
|
|
87
|
+
type: Boolean,
|
|
88
|
+
default: !1
|
|
89
|
+
},
|
|
90
|
+
/**
|
|
91
|
+
* Renders the text in a bold variant
|
|
92
|
+
*/
|
|
93
|
+
isTitle: {
|
|
94
|
+
type: Boolean,
|
|
95
|
+
default: !1
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
emits: [L.CLICK],
|
|
99
|
+
setup(s, { emit: e }) {
|
|
100
|
+
const n = v(() => ({
|
|
101
|
+
"b-menu-item--critical": s.critical,
|
|
102
|
+
"b-menu-item--indent": s.indent
|
|
103
|
+
}));
|
|
104
|
+
return {
|
|
105
|
+
// Enums
|
|
106
|
+
BentoTypographyElement: Y,
|
|
107
|
+
BentoTypographyVariant: Z,
|
|
108
|
+
// Values
|
|
109
|
+
conditionalClasses: n,
|
|
110
|
+
// Methods
|
|
111
|
+
onClick: () => {
|
|
112
|
+
s.handler(), e(L.CLICK);
|
|
113
|
+
}
|
|
114
|
+
};
|
|
115
|
+
}
|
|
116
|
+
});
|
|
117
|
+
var te = function() {
|
|
118
|
+
var e = this, n = e._self._c;
|
|
119
|
+
return e._self._setupProxy, n("base-button", { staticClass: "b-menu-item", class: e.conditionalClasses, attrs: { role: "menuitem", disabled: e.disabled, tabindex: "-1" }, on: { click: e.onClick }, scopedSlots: e._u([e.icon ? { key: "iconLeft", fn: function() {
|
|
120
|
+
return [n(e.icon, { tag: "component", staticClass: "b-menu-item__icon-left", attrs: { "aria-hidden": "true" } })];
|
|
121
|
+
}, proxy: !0 } : null, { key: "default", fn: function() {
|
|
122
|
+
return [n("bento-typography", { staticClass: "b-menu-item__primary-text", attrs: { el: e.BentoTypographyElement.SPAN, variant: e.BentoTypographyVariant.BODY, stronger: e.isTitle } }, [e._v(" " + e._s(e.text) + " ")]), e.secondaryText ? n("bento-typography", { staticClass: "b-menu-item__secondary-text", attrs: { el: e.BentoTypographyElement.SPAN, variant: e.BentoTypographyVariant.BODY } }, [e._v(" " + e._s(e.secondaryText) + " ")]) : e._e()];
|
|
123
|
+
}, proxy: !0 }, e.chevron ? { key: "iconRight", fn: function() {
|
|
124
|
+
return [n("chevron-right-icon", { attrs: { "aria-hidden": "true" } })];
|
|
125
|
+
}, proxy: !0 } : null], null, !0) });
|
|
126
|
+
}, ne = [], se = /* @__PURE__ */ h(
|
|
127
|
+
ee,
|
|
128
|
+
te,
|
|
129
|
+
ne,
|
|
130
|
+
!1,
|
|
131
|
+
null,
|
|
132
|
+
"11b01587",
|
|
133
|
+
null,
|
|
134
|
+
null
|
|
135
|
+
);
|
|
136
|
+
const S = se.exports;
|
|
137
|
+
var b = /* @__PURE__ */ ((s) => (s.CLOSE = "close", s.BACK = "back", s))(b || {});
|
|
138
|
+
const oe = k({
|
|
139
|
+
name: "bento-menu-list-container",
|
|
140
|
+
inheritAttrs: !1
|
|
141
|
+
});
|
|
142
|
+
var ue = function() {
|
|
143
|
+
var e = this, n = e._self._c;
|
|
144
|
+
return e._self._setupProxy, n("div", { staticClass: "b-menu-list-container" }, [e._t("default")], 2);
|
|
145
|
+
}, le = [], ae = /* @__PURE__ */ h(
|
|
146
|
+
oe,
|
|
147
|
+
ue,
|
|
148
|
+
le,
|
|
149
|
+
!1,
|
|
150
|
+
null,
|
|
151
|
+
"a22c0a04",
|
|
152
|
+
null,
|
|
153
|
+
null
|
|
154
|
+
);
|
|
155
|
+
const T = ae.exports, P = {
|
|
156
|
+
"en-US": {
|
|
157
|
+
menuButton: "Open menu",
|
|
158
|
+
backButton: "Go back"
|
|
159
|
+
}
|
|
160
|
+
}, re = k({
|
|
161
|
+
i18n: { messages: P },
|
|
162
|
+
name: "sub-menu-item-list",
|
|
163
|
+
components: { MenuItem: S, MenuListContainer: T },
|
|
164
|
+
props: {
|
|
165
|
+
items: {
|
|
166
|
+
type: Array,
|
|
167
|
+
required: !0
|
|
168
|
+
},
|
|
169
|
+
title: {
|
|
170
|
+
type: String,
|
|
171
|
+
required: !0
|
|
172
|
+
}
|
|
173
|
+
},
|
|
174
|
+
emits: [b.CLOSE, b.BACK],
|
|
175
|
+
setup(s, { emit: e }) {
|
|
176
|
+
const n = c(null), t = c(0), o = c(s.items.length), i = () => e(b.CLOSE), r = () => e(b.BACK), u = v(() => {
|
|
177
|
+
var p;
|
|
178
|
+
const f = (p = s.items) == null ? void 0 : p.map((m) => ({
|
|
179
|
+
...m,
|
|
180
|
+
indent: !m.icon,
|
|
181
|
+
isTitle: !1,
|
|
182
|
+
clickHandler: i
|
|
183
|
+
}));
|
|
184
|
+
return [
|
|
185
|
+
{
|
|
186
|
+
text: s.title,
|
|
187
|
+
secondaryText: null,
|
|
188
|
+
critical: !1,
|
|
189
|
+
icon: I,
|
|
190
|
+
isTitle: !0,
|
|
191
|
+
disabled: !1,
|
|
192
|
+
indent: !1,
|
|
193
|
+
handler: r,
|
|
194
|
+
clickHandler: r
|
|
195
|
+
},
|
|
196
|
+
...f
|
|
197
|
+
];
|
|
198
|
+
}), _ = async () => {
|
|
199
|
+
var f, p, m, x, C;
|
|
200
|
+
(C = (x = (m = (p = (f = n.value) == null ? void 0 : f.children) == null ? void 0 : p[t.value]) == null ? void 0 : m.children) == null ? void 0 : x[0]) == null || C.focus();
|
|
201
|
+
};
|
|
202
|
+
U(async () => {
|
|
203
|
+
setTimeout(() => _(), 150);
|
|
204
|
+
});
|
|
205
|
+
const l = () => {
|
|
206
|
+
t.value > 0 ? (t.value -= 1, u.value[t.value].disabled && l()) : t.value = o.value, _();
|
|
207
|
+
}, g = () => {
|
|
208
|
+
t.value < o.value ? (t.value += 1, u.value[t.value].disabled && g()) : t.value = 0, _();
|
|
209
|
+
};
|
|
210
|
+
return {
|
|
211
|
+
// Enums
|
|
212
|
+
BentoMenuEvent: b,
|
|
213
|
+
// Values
|
|
214
|
+
subMenuItemListRefLocal: n,
|
|
215
|
+
subMenuFocusedIndex: t,
|
|
216
|
+
ChevronLeftIcon: I,
|
|
217
|
+
computedItems: u,
|
|
218
|
+
// Methods
|
|
219
|
+
closeMenu: i,
|
|
220
|
+
onBackButton: r,
|
|
221
|
+
focusPrevious: l,
|
|
222
|
+
focusNext: g
|
|
223
|
+
};
|
|
224
|
+
}
|
|
225
|
+
});
|
|
226
|
+
var ie = function() {
|
|
227
|
+
var e = this, n = e._self._c;
|
|
228
|
+
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) {
|
|
229
|
+
return !t.type.indexOf("key") && e._k(t.keyCode, "down", 40, t.key, ["Down", "ArrowDown"]) ? null : (t.stopPropagation(), e.focusNext.apply(null, arguments));
|
|
230
|
+
}, function(t) {
|
|
231
|
+
return !t.type.indexOf("key") && e._k(t.keyCode, "up", 38, t.key, ["Up", "ArrowUp"]) ? null : (t.stopPropagation(), e.focusPrevious.apply(null, arguments));
|
|
232
|
+
}, function(t) {
|
|
233
|
+
return !t.type.indexOf("key") && e._k(t.keyCode, "esc", 27, t.key, ["Esc", "Escape"]) ? null : (t.stopPropagation(), e.onBackButton.apply(null, arguments));
|
|
234
|
+
}] } }, e._l(e.computedItems, function(t, o) {
|
|
235
|
+
return n("li", { key: `sub-menu-item-list-item-${o}`, class: [
|
|
236
|
+
{ "b-sub-menu-item-list__back-button": o === 0 },
|
|
237
|
+
{ "b-sub-menu-item-list__first-item": o == 1 }
|
|
238
|
+
], 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 } })], 1);
|
|
239
|
+
}), 0)])], 1);
|
|
240
|
+
}, ce = [], de = /* @__PURE__ */ h(
|
|
241
|
+
re,
|
|
242
|
+
ie,
|
|
243
|
+
ce,
|
|
244
|
+
!1,
|
|
245
|
+
null,
|
|
246
|
+
"708c9290",
|
|
247
|
+
null,
|
|
248
|
+
null
|
|
249
|
+
);
|
|
250
|
+
const fe = de.exports, _e = k({
|
|
251
|
+
name: "menu-item-list",
|
|
252
|
+
components: { MenuItem: S, MenuListContainer: T, SubMenuItemList: fe },
|
|
253
|
+
inheritAttrs: !1,
|
|
254
|
+
props: {
|
|
255
|
+
/**
|
|
256
|
+
* The data to be displayed in the list
|
|
257
|
+
*/
|
|
258
|
+
data: {
|
|
259
|
+
type: Array,
|
|
260
|
+
required: !0
|
|
261
|
+
},
|
|
262
|
+
/**
|
|
263
|
+
* Displays the menu-items of the list in the indent variant. Only applies to elements that don't have an icon to their left.
|
|
264
|
+
*/
|
|
265
|
+
indentItems: {
|
|
266
|
+
type: Boolean,
|
|
267
|
+
default: !1
|
|
268
|
+
},
|
|
269
|
+
/**
|
|
270
|
+
* The id of the list. Required for accessibility reasons.
|
|
271
|
+
*/
|
|
272
|
+
id: {
|
|
273
|
+
type: String,
|
|
274
|
+
required: !0
|
|
275
|
+
},
|
|
276
|
+
/**
|
|
277
|
+
* 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.
|
|
278
|
+
*/
|
|
279
|
+
focusLastElement: {
|
|
280
|
+
type: Boolean,
|
|
281
|
+
default: !1
|
|
282
|
+
}
|
|
283
|
+
},
|
|
284
|
+
emits: [b.CLOSE],
|
|
285
|
+
setup(s, { emit: e }) {
|
|
286
|
+
const n = c(null), t = c(null), o = c(null), i = c(!1), r = c(null), u = c(s.focusLastElement ? s.data.length - 1 : 0), _ = c(0), l = c(s.data.length - 1), g = v(() => s.data.some((a) => a.icon)), f = v(() => s.indentItems || g.value ? s.data.map((a) => {
|
|
287
|
+
let d = !1;
|
|
288
|
+
return a.icon || (d = !0), {
|
|
289
|
+
...a,
|
|
290
|
+
// eslint-disable-next-line no-param-reassign
|
|
291
|
+
indent: d
|
|
292
|
+
};
|
|
293
|
+
}) : s.data), p = () => {
|
|
294
|
+
var a, d, y;
|
|
295
|
+
return (y = (d = (a = n.value) == null ? void 0 : a.children[u.value]) == null ? void 0 : d.children[0]) == null ? void 0 : y.focus();
|
|
296
|
+
}, m = () => e(b.CLOSE), x = async (a, d) => {
|
|
297
|
+
a.items ? (r.value = d, i.value = !0) : (r.value = d, i.value = !1, m());
|
|
298
|
+
}, C = () => {
|
|
299
|
+
u.value > 0 ? (u.value -= 1, f.value[u.value].disabled && C()) : u.value = l.value, p();
|
|
300
|
+
}, M = () => {
|
|
301
|
+
u.value < l.value ? (u.value += 1, f.value[u.value].disabled && M()) : u.value = 0, p();
|
|
302
|
+
}, R = (a, d) => {
|
|
303
|
+
var y;
|
|
304
|
+
(y = a == null ? void 0 : a.items) != null && y.length && (r.value = d, i.value = !0);
|
|
305
|
+
}, A = () => {
|
|
306
|
+
r.value && i.value && (r.value = null, i.value = !1);
|
|
307
|
+
}, E = () => {
|
|
308
|
+
i.value = !1, r.value = null, p();
|
|
309
|
+
}, F = v(() => {
|
|
310
|
+
var a;
|
|
311
|
+
return (a = t == null ? void 0 : t.value) == null ? void 0 : a.$el.offsetHeight;
|
|
312
|
+
}), D = v(() => {
|
|
313
|
+
var a, d, y;
|
|
314
|
+
return (y = (d = (a = o == null ? void 0 : o.value) == null ? void 0 : a[0]) == null ? void 0 : d.$el) == null ? void 0 : y.offsetHeight;
|
|
315
|
+
}), K = v(() => i.value ? `${D.value}px` : `${F.value}px`);
|
|
316
|
+
return {
|
|
317
|
+
// Values
|
|
318
|
+
menuItemListRef: n,
|
|
319
|
+
menuItemListWrapperRef: t,
|
|
320
|
+
subMenuItemListRef: o,
|
|
321
|
+
computedData: f,
|
|
322
|
+
computedHeight: K,
|
|
323
|
+
focusedIndex: u,
|
|
324
|
+
subMenuFocusedIndex: _,
|
|
325
|
+
showSubMenu: i,
|
|
326
|
+
visibleSubMenuIndex: r,
|
|
327
|
+
// Methods
|
|
328
|
+
toggleMenu: x,
|
|
329
|
+
closeMenu: m,
|
|
330
|
+
focusPrevious: C,
|
|
331
|
+
focusNext: M,
|
|
332
|
+
focusRight: R,
|
|
333
|
+
focusLeft: A,
|
|
334
|
+
onBackButton: E
|
|
335
|
+
};
|
|
336
|
+
}
|
|
337
|
+
});
|
|
338
|
+
var pe = function() {
|
|
339
|
+
var e = this, n = e._self._c;
|
|
340
|
+
return e._self._setupProxy, n("menu-list-container", { ref: "menuItemListWrapperRef", style: { height: e.computedHeight } }, [n("ul", { ref: "menuItemListRef", staticClass: "b-menu-item-list", attrs: { id: e.id, role: "menu" }, on: { keydown: [function(t) {
|
|
341
|
+
return !t.type.indexOf("key") && e._k(t.keyCode, "down", 40, t.key, ["Down", "ArrowDown"]) ? null : e.focusNext.apply(null, arguments);
|
|
342
|
+
}, function(t) {
|
|
343
|
+
return !t.type.indexOf("key") && e._k(t.keyCode, "up", 38, t.key, ["Up", "ArrowUp"]) ? null : e.focusPrevious.apply(null, arguments);
|
|
344
|
+
}, function(t) {
|
|
345
|
+
return !t.type.indexOf("key") && e._k(t.keyCode, "esc", 27, t.key, ["Esc", "Escape"]) ? null : e.closeMenu.apply(null, arguments);
|
|
346
|
+
}, function(t) {
|
|
347
|
+
return !t.type.indexOf("key") && e._k(t.keyCode, "tab", 9, t.key, "Tab") ? null : e.closeMenu.apply(null, arguments);
|
|
348
|
+
}] } }, e._l(e.computedData, function(t, o) {
|
|
349
|
+
var i, r, u, _;
|
|
350
|
+
return n("li", { key: `menu-item-${o}`, staticClass: "b-menu-item-list__item", attrs: { role: "none" }, on: { keydown: [function(l) {
|
|
351
|
+
return !l.type.indexOf("key") && e._k(l.keyCode, "right", 39, l.key, ["Right", "ArrowRight"]) || "button" in l && l.button !== 2 ? null : e.focusRight(t, o);
|
|
352
|
+
}, function(l) {
|
|
353
|
+
return !l.type.indexOf("key") && e._k(l.keyCode, "left", 37, l.key, ["Left", "ArrowLeft"]) || "button" in l && l.button !== 0 ? null : e.focusLeft();
|
|
354
|
+
}] } }, [n("menu-item", { attrs: { text: t.text, handler: (i = t.items) != null && i.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": !!((u = t.items) != null && u.length), "aria-expanded": e.showSubMenu && e.visibleSubMenuIndex === o }, on: { click: function(l) {
|
|
355
|
+
return e.toggleMenu(t, o);
|
|
356
|
+
} } }), (_ = t.items) != null && _.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);
|
|
357
|
+
}), 0)]);
|
|
358
|
+
}, me = [], ye = /* @__PURE__ */ h(
|
|
359
|
+
_e,
|
|
360
|
+
pe,
|
|
361
|
+
me,
|
|
362
|
+
!1,
|
|
363
|
+
null,
|
|
364
|
+
"0bd49bc0",
|
|
365
|
+
null,
|
|
366
|
+
null
|
|
367
|
+
);
|
|
368
|
+
const ve = ye.exports, be = k({
|
|
369
|
+
i18n: { messages: P },
|
|
370
|
+
name: "bento-menu",
|
|
371
|
+
components: { BentoButton: N, BentoPopover: q, MenuItemList: ve, OptionsVerticalIcon: X },
|
|
372
|
+
directives: { BentoClickOutsideDirective: $ },
|
|
373
|
+
inheritAttrs: !1,
|
|
374
|
+
props: {
|
|
375
|
+
/**
|
|
376
|
+
* The data to be displayed in the list
|
|
377
|
+
*/
|
|
378
|
+
data: {
|
|
379
|
+
type: Array,
|
|
380
|
+
required: !0
|
|
381
|
+
},
|
|
382
|
+
/**
|
|
383
|
+
* The position of where the menu should open.
|
|
384
|
+
* @see BentoPopoverPositions
|
|
385
|
+
*/
|
|
386
|
+
menuPosition: {
|
|
387
|
+
type: String,
|
|
388
|
+
default: B.BOTTOM_START,
|
|
389
|
+
validator: (s) => Object.values(B).includes(s)
|
|
390
|
+
},
|
|
391
|
+
/**
|
|
392
|
+
* Instructs the menu popover to be visible outside of the containing container.
|
|
393
|
+
* https://popper.js.org/docs/v2/constructors/#strategy
|
|
394
|
+
*/
|
|
395
|
+
menuFixedPositioning: {
|
|
396
|
+
type: Boolean,
|
|
397
|
+
default: !1
|
|
398
|
+
},
|
|
399
|
+
/**
|
|
400
|
+
* Sets a custom width for the menu popover.
|
|
401
|
+
*/
|
|
402
|
+
menuWidth: {
|
|
403
|
+
type: Number,
|
|
404
|
+
default: null
|
|
405
|
+
},
|
|
406
|
+
/**
|
|
407
|
+
* Object containing props to change the menu button appearance. Accepts the same props present in BentoButton.
|
|
408
|
+
*/
|
|
409
|
+
button: {
|
|
410
|
+
type: Object,
|
|
411
|
+
default: () => ({
|
|
412
|
+
variant: w.SECONDARY
|
|
413
|
+
})
|
|
414
|
+
}
|
|
415
|
+
},
|
|
416
|
+
setup(s) {
|
|
417
|
+
const e = c(null), n = c(!1), t = c(!1), o = H("menu"), i = v(() => s.menuWidth ? { width: `${s.menuWidth}px` } : null), r = () => {
|
|
418
|
+
n.value = !0;
|
|
419
|
+
}, u = () => {
|
|
420
|
+
n.value && (n.value = !1, e.value.$el.focus());
|
|
421
|
+
};
|
|
422
|
+
return {
|
|
423
|
+
// Enums
|
|
424
|
+
BentoButtonVariant: w,
|
|
425
|
+
BentoPopoverPositions: B,
|
|
426
|
+
// Values
|
|
427
|
+
menuButtonRef: e,
|
|
428
|
+
menuId: o,
|
|
429
|
+
showMenu: n,
|
|
430
|
+
computedMenuWidth: i,
|
|
431
|
+
isLastElementFocused: t,
|
|
432
|
+
// Methods
|
|
433
|
+
onKeyDown: () => {
|
|
434
|
+
t.value = !1, r();
|
|
435
|
+
},
|
|
436
|
+
onKeyUp: () => {
|
|
437
|
+
t.value = !0, r();
|
|
438
|
+
},
|
|
439
|
+
closeMenu: u,
|
|
440
|
+
toggleShowMenu: (f) => {
|
|
441
|
+
f.stopPropagation(), n.value ? u() : r();
|
|
442
|
+
}
|
|
443
|
+
};
|
|
444
|
+
}
|
|
445
|
+
});
|
|
446
|
+
var he = function() {
|
|
447
|
+
var e = this, n = e._self._c;
|
|
448
|
+
return e._self._setupProxy, n("div", { directives: [{ name: "bento-click-outside-directive", rawName: "v-bento-click-outside-directive", value: e.closeMenu, expression: "closeMenu" }], staticClass: "b-menu", on: { keydown: [function(t) {
|
|
449
|
+
return !t.type.indexOf("key") && e._k(t.keyCode, "down", 40, t.key, ["Down", "ArrowDown"]) ? null : e.onKeyDown.apply(null, arguments);
|
|
450
|
+
}, function(t) {
|
|
451
|
+
return !t.type.indexOf("key") && e._k(t.keyCode, "up", 38, t.key, ["Up", "ArrowUp"]) ? null : e.onKeyUp.apply(null, arguments);
|
|
452
|
+
}, function(t) {
|
|
453
|
+
return !t.type.indexOf("key") && e._k(t.keyCode, "esc", 27, t.key, ["Esc", "Escape"]) ? null : e.closeMenu.apply(null, arguments);
|
|
454
|
+
}] } }, [n("bento-button", e._b({ ref: "menuButtonRef", attrs: { "aria-haspopup": "true", "aria-expanded": e.showMenu, "aria-controls": e.menuId }, on: { click: e.toggleShowMenu }, scopedSlots: e._u([{ key: "iconLeft", fn: function() {
|
|
455
|
+
return [e._t("default", function() {
|
|
456
|
+
return [n("options-vertical-icon", { attrs: { title: e.$t("menuButton") } })];
|
|
457
|
+
})];
|
|
458
|
+
}, proxy: !0 }], null, !0) }, "bento-button", e.button, !1)), e.menuButtonRef ? n("bento-popover", { staticClass: "b-menu__popover", style: e.computedMenuWidth, attrs: { open: e.showMenu, "target-element": e.menuButtonRef, position: e.menuPosition, "fixed-positioning": e.menuFixedPositioning, "without-space": "" } }, [n("menu-item-list", { attrs: { id: e.menuId, data: e.data, "focus-last-element": e.isLastElementFocused }, on: { close: e.closeMenu } })], 1) : e._e()], 1);
|
|
459
|
+
}, ge = [], Ce = /* @__PURE__ */ h(
|
|
460
|
+
be,
|
|
461
|
+
he,
|
|
462
|
+
ge,
|
|
463
|
+
!1,
|
|
464
|
+
null,
|
|
465
|
+
"1975995f",
|
|
466
|
+
null,
|
|
467
|
+
null
|
|
468
|
+
);
|
|
469
|
+
const Pe = Ce.exports;
|
|
470
|
+
export {
|
|
471
|
+
Pe as BentoMenu,
|
|
472
|
+
b as BentoMenuEvent
|
|
473
|
+
};
|
|
474
|
+
//# sourceMappingURL=menu.js.map
|
package/dist/menu.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"menu.js","sources":["../../../node_modules/@adyen/ui-assets-icons-16/dist/vue/options-vertical.vue","../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.vue"],"sourcesContent":["\n<template>\n <svg role=\"img\" v-bind=\"$attrs\" 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\" fill-rule=\"evenodd\" 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.00166 0.970945 7.70006 1.00065 7.42597 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.65804 3.27936 6.93934 3.56066C7.22064 3.84197 7.60218 4 8 4Z\" clip-rule=\"evenodd\"/><path fill=\"#00112C\" fill-rule=\"evenodd\" 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.00166 11.9709 7.70006 12.0007 7.42597 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.65804 14.2794 6.93934 14.5607C7.22064 14.842 7.60218 15 8 15Z\" clip-rule=\"evenodd\"/><path fill=\"#00112C\" fill-rule=\"evenodd\" 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.65804 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.42597 6.61418C7.70006 6.50065 8.00166 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\" clip-rule=\"evenodd\"/></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 scoped lang=\"scss\">\n svg {\n display: inline-flex;\n flex-shrink: 0;\n }\n \n svg,\n svg * {\n fill: currentcolor;\n }\n</style>\n","<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\n :el=\"BentoTypographyElement.SPAN\"\n :variant=\"BentoTypographyVariant.BODY\"\n :stronger=\"isTitle\"\n class=\"b-menu-item__primary-text\"\n >\n {{ text }}\n </bento-typography>\n <bento-typography\n v-if=\"secondaryText\"\n :el=\"BentoTypographyElement.SPAN\"\n :variant=\"BentoTypographyVariant.BODY\"\n class=\"b-menu-item__secondary-text\"\n >\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 type { VueNodeElement } from '@/types';\n import ChevronRightIcon from '@adyen/ui-assets-icons-16/vue/chevron-right';\n import { BaseButton, BentoBaseButtonEvent } from '@/components/internal/base-button';\n import { BentoTypography, BentoTypographyElement, BentoTypographyVariant } 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 type: Object as PropType<VueNodeElement>,\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 = () => {\n props.handler();\n emit(BentoBaseButtonEvent.CLICK);\n };\n\n return {\n // Enums\n BentoTypographyElement,\n BentoTypographyVariant,\n\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 enum BentoMenuEvent {\n CLOSE = 'close',\n BACK = 'back',\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 inheritAttrs: false,\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\n v-for=\"(item, index) in computedItems\"\n :key=\"`sub-menu-item-list-item-${index}`\"\n :class=\"[\n { 'b-sub-menu-item-list__back-button': index === 0 },\n { 'b-sub-menu-item-list__first-item': index == 1 },\n ]\"\n role=\"none\"\n >\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 </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 ChevronLeftIcon from '@adyen/ui-assets-icons-16/vue/chevron-left';\n import { BentoMenuItem, MenuItem } from '../menu-item';\n import { BentoMenuEvent } from '../../menu.types';\n import messages from '../../messages.json';\n import MenuListContainer from '../menu-list-container/menu-list-container.vue';\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: { 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 },\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 :id=\"id\"\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 <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 { 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: { MenuItem, MenuListContainer, SubMenuItemList },\n inheritAttrs: false,\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 * The id of the list. Required for accessibility reasons.\n */\n id: {\n type: String,\n required: true,\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 menuHeight = computed(() => menuItemListWrapperRef?.value?.$el.offsetHeight);\n\n const subMenuHeight = computed(() => subMenuItemListRef?.value?.[0]?.$el?.offsetHeight);\n\n const computedHeight = computed(() => {\n if (showSubMenu.value) {\n return `${subMenuHeight.value}px`;\n }\n return `${menuHeight.value}px`;\n });\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","<template>\n <div\n v-bento-click-outside-directive=\"closeMenu\"\n class=\"b-menu\"\n @keydown.down=\"onKeyDown\"\n @keydown.up=\"onKeyUp\"\n @keydown.esc=\"closeMenu\"\n >\n <bento-button\n ref=\"menuButtonRef\"\n aria-haspopup=\"true\"\n v-bind=\"button\"\n :aria-expanded=\"showMenu\"\n :aria-controls=\"menuId\"\n @click=\"toggleShowMenu\"\n >\n <template #iconLeft>\n <slot>\n <options-vertical-icon :title=\"$t('menuButton')\" />\n </slot>\n </template>\n </bento-button>\n <bento-popover\n v-if=\"menuButtonRef\"\n :open=\"showMenu\"\n class=\"b-menu__popover\"\n :style=\"computedMenuWidth\"\n :target-element=\"menuButtonRef\"\n :position=\"menuPosition\"\n :fixed-positioning=\"menuFixedPositioning\"\n without-space\n >\n <menu-item-list :id=\"menuId\" :data=\"data\" :focus-last-element=\"isLastElementFocused\" @close=\"closeMenu\" />\n </bento-popover>\n </div>\n</template>\n\n<script lang=\"ts\">\n import { computed, defineComponent, PropType, ref } from 'vue';\n import OptionsVerticalIcon from '@adyen/ui-assets-icons-16/vue/options-vertical';\n import { generateUid } from '@/utils/ts/unique-id';\n import { BentoClickOutsideDirective } from '@/directives';\n import { BentoButton, BentoButtonVariant } from '@/components/button';\n import { BentoPopover, BentoPopoverPositions } from '@/components/popover';\n import { BentoMenuItem, MenuItemList } from './components';\n import { BentoMenuButtonProps } from './menu.types';\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: { BentoButton, BentoPopover, MenuItemList, OptionsVerticalIcon },\n directives: { BentoClickOutsideDirective },\n inheritAttrs: false,\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 /**\n * The position of where the menu should open.\n * @see BentoPopoverPositions\n */\n menuPosition: {\n type: String as PropType<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 * https://popper.js.org/docs/v2/constructors/#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 * 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 variant: BentoButtonVariant.SECONDARY,\n }),\n },\n },\n setup(props) {\n const menuButtonRef = ref(null);\n const showMenu = ref(false);\n const isLastElementFocused = ref(false);\n const menuId = generateUid('menu');\n\n const computedMenuWidth = computed(() => (props.menuWidth ? { width: `${props.menuWidth}px` } : null));\n\n const openMenu = () => {\n showMenu.value = true;\n };\n\n const closeMenu = () => {\n if (showMenu.value) {\n showMenu.value = false;\n menuButtonRef.value.$el.focus();\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 return {\n // Enums\n BentoButtonVariant,\n BentoPopoverPositions,\n\n // Values\n menuButtonRef,\n menuId,\n showMenu,\n computedMenuWidth,\n isLastElementFocused,\n\n // Methods\n onKeyDown,\n onKeyUp,\n closeMenu,\n toggleShowMenu,\n };\n },\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"./menu.scss\" />\n"],"names":["uuid","_sfc_main$5","_sfc_main$4","defineComponent","BaseButton","BentoTypography","ChevronRightIcon","BentoBaseButtonEvent","props","emit","conditionalClasses","computed","BentoTypographyElement","BentoTypographyVariant","BentoMenuEvent","BentoMenuEvent2","_sfc_main$3","_sfc_main$2","messages","MenuItem","MenuListContainer","subMenuItemListRefLocal","ref","subMenuFocusedIndex","numberOfItems","closeMenu","onBackButton","computedItems","items","_a","el","ChevronLeftIcon","focusItem","_e","_d","_c","_b","onMounted","focusPrevious","focusNext","_sfc_main$1","SubMenuItemList","menuItemListRef","menuItemListWrapperRef","subMenuItemListRef","showSubMenu","visibleSubMenuIndex","focusedIndex","hasMenuItemsWithIcon","computedData","indent","toggleMenu","item","index","focusRight","focusLeft","menuHeight","subMenuHeight","computedHeight","_sfc_main","BentoButton","BentoPopover","MenuItemList","OptionsVerticalIcon","BentoClickOutsideDirective","BentoPopoverPositions","value","BentoButtonVariant","menuButtonRef","showMenu","isLastElementFocused","menuId","generateUid","computedMenuWidth","openMenu","e"],"mappings":";;;;;;;;;;AAKA,IAAAA,IAAA;AAEA,MAAAC,IAAA;AAAA,EACA,eAAA;AACA,SAAA,OAAAD,EAAA,SAAA,GACAA,KAAA;AAAA,EACA;AACA;;;;;;;;;;;;;;qBCiCAE,KAAAC,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,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