@adyen/bento-vue3 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/packages/vue2/src/components/data-grid/components/data-grid-cell/data-grid-cell.types.d.ts +9 -5
- package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-cell/data-grid-cell.vue.d.ts +15 -0
- package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-columns/data-grid-columns.types.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-columns/data-grid-columns.vue.d.ts +18 -0
- package/dist/@types/packages/vue2/src/components/data-grid/composables/index.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/data-grid/composables/use-calculate-column-width/use-calculate-column-width.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/data-grid/composables/use-column-hovering/index.d.ts +2 -0
- package/dist/@types/packages/vue2/src/components/data-grid/composables/use-column-hovering/use-column-hovering.d.ts +53 -0
- package/dist/@types/packages/vue2/src/components/data-grid/composables/use-column-hovering/use-column-hovering.types.d.ts +12 -0
- package/dist/@types/packages/vue2/src/components/data-grid/composables/use-config-settings/use-config-settings.d.ts +2 -99
- package/dist/@types/packages/vue2/src/components/data-grid/composables/use-config-settings/use-config.settings.types.d.ts +7 -0
- package/dist/@types/packages/vue2/src/components/data-grid/composables/use-resizer.d.ts +47 -1
- package/dist/@types/packages/vue2/src/components/data-grid/data-grid.vue.d.ts +48 -8
- package/dist/@types/packages/vue2/src/components/filter-bar/components/all-filters-modal/all-filters-modal.vue.d.ts +48 -24
- package/dist/@types/packages/vue2/src/components/filter-bar/filter-bar.types.d.ts +12 -2
- package/dist/@types/packages/vue2/src/components/menu/menu.types.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/menu/menu.vue.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/stepper/composables/index.d.ts +2 -0
- package/dist/@types/packages/vue2/src/components/stepper/composables/use-step-register/use-step-register.d.ts +11 -0
- package/dist/@types/packages/vue2/src/components/stepper/stepper.types.d.ts +1 -0
- package/dist/accordion.js +2 -2
- package/dist/action-bar.js +6 -6
- package/dist/alert.js +3 -3
- 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/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 +3 -3
- package/dist/checkbox.js +5 -5
- package/dist/chunks/{base-button.86be8130.js → base-button.13df4e44.js} +2 -2
- package/dist/chunks/{base-button.86be8130.js.map → base-button.13df4e44.js.map} +1 -1
- package/dist/chunks/{base-modal.01333c00.js → base-modal.30bce990.js} +6 -6
- package/dist/chunks/{base-modal.01333c00.js.map → base-modal.30bce990.js.map} +1 -1
- package/dist/chunks/{button-actions-with-menu.df95130d.js → button-actions-with-menu.a5d2bb13.js} +4 -4
- package/dist/chunks/{button-actions-with-menu.df95130d.js.map → button-actions-with-menu.a5d2bb13.js.map} +1 -1
- package/dist/chunks/{button-actions.bcc9dcc7.js → button-actions.ec3c649c.js} +3 -3
- package/dist/chunks/{button-actions.bcc9dcc7.js.map → button-actions.ec3c649c.js.map} +1 -1
- package/dist/chunks/{button.a378e7ab.js → button.e965bf53.js} +3 -3
- package/dist/chunks/{button.a378e7ab.js.map → button.e965bf53.js.map} +1 -1
- package/dist/chunks/{calendar.891a60a9.js → calendar.52fe4032.js} +4 -4
- package/dist/chunks/{calendar.891a60a9.js.map → calendar.52fe4032.js.map} +1 -1
- package/dist/chunks/{checkbox.9753e9d6.js → checkbox.1442f41a.js} +3 -3
- package/dist/chunks/{checkbox.9753e9d6.js.map → checkbox.1442f41a.js.map} +1 -1
- package/dist/chunks/{controls-group.84981503.js → controls-group.1f29b602.js} +3 -3
- package/dist/chunks/{controls-group.84981503.js.map → controls-group.1f29b602.js.map} +1 -1
- package/dist/chunks/{copy.86eb5d86.js → copy.d052f444.js} +4 -4
- package/dist/chunks/{copy.86eb5d86.js.map → copy.d052f444.js.map} +1 -1
- package/dist/chunks/{dialog-page.ce02932b.js → dialog-page.d505c5ec.js} +3 -3
- package/dist/chunks/{dialog-page.ce02932b.js.map → dialog-page.d505c5ec.js.map} +1 -1
- package/dist/chunks/{dropdown-default-textbox.91ad6585.js → dropdown-default-textbox.e0ca5afb.js} +136 -116
- package/dist/chunks/dropdown-default-textbox.e0ca5afb.js.map +1 -0
- package/dist/chunks/{dropdown.6c010045.js → dropdown.257691c0.js} +14 -15
- package/dist/chunks/{dropdown.6c010045.js.map → dropdown.257691c0.js.map} +1 -1
- package/dist/chunks/{error-message.498811e4.js → error-message.56247bcc.js} +2 -2
- package/dist/chunks/{error-message.498811e4.js.map → error-message.56247bcc.js.map} +1 -1
- package/dist/chunks/{fixed-scroller.51b63488.js → fixed-scroller.47546775.js} +2 -2
- package/dist/chunks/{fixed-scroller.51b63488.js.map → fixed-scroller.47546775.js.map} +1 -1
- package/dist/chunks/{footer-actions.573307ed.js → footer-actions.3c2dbf43.js} +4 -4
- package/dist/chunks/{footer-actions.573307ed.js.map → footer-actions.3c2dbf43.js.map} +1 -1
- package/dist/chunks/{index.fb0e9e1a.js → index.08d813e2.js} +6 -6
- package/dist/chunks/{index.fb0e9e1a.js.map → index.08d813e2.js.map} +1 -1
- package/dist/chunks/{index.19dab2ef.js → index.0e01e0b2.js} +3 -3
- package/dist/chunks/{index.19dab2ef.js.map → index.0e01e0b2.js.map} +1 -1
- package/dist/chunks/{index.c4f8460d.js → index.10c69f39.js} +187 -187
- package/dist/chunks/index.10c69f39.js.map +1 -0
- package/dist/chunks/{index.037ae52f.js → index.44f2aca7.js} +2 -2
- package/dist/chunks/{index.037ae52f.js.map → index.44f2aca7.js.map} +1 -1
- package/dist/chunks/{index.9c423f37.js → index.4fb57ba0.js} +6 -6
- package/dist/chunks/{index.9c423f37.js.map → index.4fb57ba0.js.map} +1 -1
- package/dist/chunks/{index.da4cb1b8.js → index.56c13d2c.js} +16 -17
- package/dist/chunks/{index.da4cb1b8.js.map → index.56c13d2c.js.map} +1 -1
- package/dist/chunks/{index.d6a0cf32.js → index.824101bb.js} +2 -2
- package/dist/chunks/{index.d6a0cf32.js.map → index.824101bb.js.map} +1 -1
- package/dist/chunks/{index.6e7e9ac6.js → index.99c63a74.js} +2 -2
- package/dist/chunks/{index.6e7e9ac6.js.map → index.99c63a74.js.map} +1 -1
- package/dist/chunks/{index.e2793c20.js → index.9aaed799.js} +3 -3
- package/dist/chunks/{index.e2793c20.js.map → index.9aaed799.js.map} +1 -1
- package/dist/chunks/{index.030fb327.js → index.bf4a116b.js} +20 -19
- package/dist/chunks/index.bf4a116b.js.map +1 -0
- package/dist/chunks/{index.9d65b72a.js → index.f800b267.js} +2 -2
- package/dist/chunks/{index.9d65b72a.js.map → index.f800b267.js.map} +1 -1
- package/dist/chunks/{listbox-option-tag.abedc9e0.js → listbox-option-tag.4de1659c.js} +3 -3
- package/dist/chunks/{listbox-option-tag.abedc9e0.js.map → listbox-option-tag.4de1659c.js.map} +1 -1
- package/dist/chunks/{listbox.8ce17729.js → listbox.eb436d06.js} +5 -5
- package/dist/chunks/{listbox.8ce17729.js.map → listbox.eb436d06.js.map} +1 -1
- package/dist/chunks/{loading-button.5f58f1cf.js → loading-button.6e15f27f.js} +2 -2
- package/dist/chunks/{loading-button.5f58f1cf.js.map → loading-button.6e15f27f.js.map} +1 -1
- package/dist/chunks/{payment-method.313f2635.js → payment-method.df1b62db.js} +2 -2
- package/dist/chunks/{payment-method.313f2635.js.map → payment-method.df1b62db.js.map} +1 -1
- package/dist/chunks/{tooltip.a70c9e69.js → tooltip.066fd8f7.js} +3 -3
- package/dist/chunks/{tooltip.a70c9e69.js.map → tooltip.066fd8f7.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 +1219 -1127
- package/dist/data-grid.js.map +1 -1
- package/dist/date-picker.js +21 -22
- 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 +586 -593
- 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 +4 -4
- package/dist/index.js +19 -19
- package/dist/info-icon.js +3 -3
- 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 +6 -6
- package/dist/modal.js +6 -6
- package/dist/pagination.js +4 -4
- package/dist/payment-method.js +1 -1
- package/dist/popover.js +1 -1
- package/dist/popper-container.js +1 -1
- package/dist/radio-group.js +4 -4
- package/dist/search-bar.js +2 -2
- package/dist/secondary-nav.js +2 -2
- package/dist/segmented-control.js +3 -3
- package/dist/selection-card.js +4 -4
- package/dist/sidepanel.js +6 -6
- package/dist/status.js +2 -2
- package/dist/stepper.js +152 -141
- 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 +2 -2
- package/dist/textarea.js +4 -4
- package/dist/timeline.js +7 -7
- package/dist/toast.js +3 -3
- package/dist/toggle.js +2 -2
- package/dist/tutorial.js +6 -6
- package/dist/typography.js +1 -1
- package/dist/web-types.json +1 -1
- package/package.json +2 -2
- package/dist/chunks/directive.0408e565.js +0 -23
- package/dist/chunks/directive.0408e565.js.map +0 -1
- package/dist/chunks/dropdown-default-textbox.91ad6585.js.map +0 -1
- package/dist/chunks/index.030fb327.js.map +0 -1
- package/dist/chunks/index.c4f8460d.js.map +0 -1
- /package/dist/@types/packages/vue2/src/components/stepper/composables/{useKeyboardNavigation/useKeyboardNavigation.d.ts → use-keyboard-navigation/use-keyboard-navigation.d.ts} +0 -0
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { defineComponent as O, computed as M, resolveComponent as v, openBlock as
|
|
2
|
-
import { g as
|
|
3
|
-
import { B as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { u as
|
|
7
|
-
import { _ as
|
|
8
|
-
import { BentoToggleButton as
|
|
9
|
-
import { B as
|
|
10
|
-
import { a as
|
|
11
|
-
import { B as
|
|
12
|
-
import { B as
|
|
13
|
-
import "../assets/
|
|
14
|
-
const
|
|
1
|
+
import { defineComponent as O, computed as M, resolveComponent as v, openBlock as d, createBlock as $, normalizeClass as j, createSlots as Z, withCtx as C, createVNode as S, createTextVNode as W, toDisplayString as F, createCommentVNode as R, resolveDynamicComponent as se, createElementBlock as L, renderSlot as N, ref as m, onMounted as ie, Transition as le, createElementVNode as T, withKeys as g, withModifiers as D, Fragment as z, renderList as J, normalizeStyle as Y, mergeProps as G, inject as ue, provide as ae } from "vue";
|
|
2
|
+
import { g as V } from "./unique-id.a2a2b458.js";
|
|
3
|
+
import { a as re, B as H } from "./index.08d813e2.js";
|
|
4
|
+
import { B as Q, D as de } from "./index.f800b267.js";
|
|
5
|
+
import { u as ce } from "./use-click-outside.941d1600.js";
|
|
6
|
+
import { u as me } from "./use-has-slot.4d98bf29.js";
|
|
7
|
+
import { _ as E } from "./_plugin-vue_export-helper.dad06003.js";
|
|
8
|
+
import { BentoToggleButton as fe } from "../button.js";
|
|
9
|
+
import { B as pe } from "./teleport.afeb4c3b.js";
|
|
10
|
+
import { a as ve, C as A } from "./chevron-left.4ee92950.js";
|
|
11
|
+
import { B as be, a as q } from "./base-button.13df4e44.js";
|
|
12
|
+
import { B as _e } from "./index.99c63a74.js";
|
|
13
|
+
import "../assets/index15.css";
|
|
14
|
+
const ye = O({
|
|
15
15
|
name: "menu-item",
|
|
16
|
-
components: { BaseButton:
|
|
16
|
+
components: { BaseButton: be, BentoTypography: _e, ChevronRightIcon: ve },
|
|
17
17
|
props: {
|
|
18
18
|
/**
|
|
19
19
|
* menu-item text that gets displayed as the main label
|
|
@@ -81,7 +81,7 @@ const he = O({
|
|
|
81
81
|
default: !1
|
|
82
82
|
}
|
|
83
83
|
},
|
|
84
|
-
emits: [
|
|
84
|
+
emits: [q.CLICK],
|
|
85
85
|
setup(e, { emit: t }) {
|
|
86
86
|
return {
|
|
87
87
|
// Values
|
|
@@ -91,20 +91,20 @@ const he = O({
|
|
|
91
91
|
})),
|
|
92
92
|
// Methods
|
|
93
93
|
onClick: (r) => {
|
|
94
|
-
r.stopPropagation(), e.handler(), t(
|
|
94
|
+
r.stopPropagation(), e.handler(), t(q.CLICK);
|
|
95
95
|
}
|
|
96
96
|
};
|
|
97
97
|
}
|
|
98
98
|
});
|
|
99
|
-
function
|
|
100
|
-
const l = v("bento-typography"), s = v("chevron-right-icon"),
|
|
101
|
-
return
|
|
102
|
-
class:
|
|
99
|
+
function Ce(e, t, b, i, r, a) {
|
|
100
|
+
const l = v("bento-typography"), s = v("chevron-right-icon"), f = v("base-button");
|
|
101
|
+
return d(), $(f, {
|
|
102
|
+
class: j(["b-menu-item", e.conditionalClasses]),
|
|
103
103
|
role: "menuitem",
|
|
104
104
|
disabled: e.disabled,
|
|
105
105
|
tabindex: "-1",
|
|
106
106
|
onClick: e.onClick
|
|
107
|
-
},
|
|
107
|
+
}, Z({
|
|
108
108
|
default: C(() => [
|
|
109
109
|
S(l, {
|
|
110
110
|
el: "span",
|
|
@@ -113,28 +113,28 @@ function ge(e, t, _, i, r, a) {
|
|
|
113
113
|
class: "b-menu-item__primary-text"
|
|
114
114
|
}, {
|
|
115
115
|
default: C(() => [
|
|
116
|
-
F(
|
|
116
|
+
W(F(e.text), 1)
|
|
117
117
|
]),
|
|
118
118
|
_: 1
|
|
119
119
|
}, 8, ["stronger"]),
|
|
120
|
-
e.secondaryText ? (
|
|
120
|
+
e.secondaryText ? (d(), $(l, {
|
|
121
121
|
key: 0,
|
|
122
122
|
el: "span",
|
|
123
123
|
variant: "body",
|
|
124
124
|
class: "b-menu-item__secondary-text"
|
|
125
125
|
}, {
|
|
126
126
|
default: C(() => [
|
|
127
|
-
F(
|
|
127
|
+
W(F(e.secondaryText), 1)
|
|
128
128
|
]),
|
|
129
129
|
_: 1
|
|
130
|
-
})) :
|
|
130
|
+
})) : R("", !0)
|
|
131
131
|
]),
|
|
132
132
|
_: 2
|
|
133
133
|
}, [
|
|
134
134
|
e.icon ? {
|
|
135
135
|
name: "iconLeft",
|
|
136
136
|
fn: C(() => [
|
|
137
|
-
(
|
|
137
|
+
(d(), $(se(e.icon), {
|
|
138
138
|
class: "b-menu-item__icon-left",
|
|
139
139
|
"aria-hidden": "true"
|
|
140
140
|
}))
|
|
@@ -150,26 +150,26 @@ function ge(e, t, _, i, r, a) {
|
|
|
150
150
|
} : void 0
|
|
151
151
|
]), 1032, ["class", "disabled", "onClick"]);
|
|
152
152
|
}
|
|
153
|
-
const
|
|
154
|
-
var
|
|
155
|
-
const
|
|
153
|
+
const X = /* @__PURE__ */ E(ye, [["render", Ce], ["__scopeId", "data-v-9e8afd9c"]]);
|
|
154
|
+
var h = /* @__PURE__ */ ((e) => (e.BACK = "back", e.CLOSE = "close", e.OPEN = "open", e))(h || {});
|
|
155
|
+
const ge = O({
|
|
156
156
|
name: "bento-menu-list-container"
|
|
157
157
|
});
|
|
158
|
-
const
|
|
159
|
-
function
|
|
160
|
-
return
|
|
158
|
+
const he = { class: "b-menu-list-container" };
|
|
159
|
+
function Ie(e, t, b, i, r, a) {
|
|
160
|
+
return d(), L("div", he, [
|
|
161
161
|
N(e.$slots, "default", {}, void 0, !0)
|
|
162
162
|
]);
|
|
163
163
|
}
|
|
164
|
-
const
|
|
164
|
+
const x = /* @__PURE__ */ E(ge, [["render", Ie], ["__scopeId", "data-v-ea0113ba"]]), ee = {
|
|
165
165
|
"en-US": {
|
|
166
166
|
menuButton: "Open menu",
|
|
167
167
|
backButton: "Go back"
|
|
168
168
|
}
|
|
169
|
-
},
|
|
170
|
-
i18n: { messages:
|
|
169
|
+
}, Be = O({
|
|
170
|
+
i18n: { messages: ee },
|
|
171
171
|
name: "sub-menu-item-list",
|
|
172
|
-
components: { BentoDivider:
|
|
172
|
+
components: { BentoDivider: Q, MenuItem: X, MenuListContainer: x },
|
|
173
173
|
props: {
|
|
174
174
|
items: {
|
|
175
175
|
type: Array,
|
|
@@ -180,13 +180,13 @@ const X = /* @__PURE__ */ R(Be, [["render", $e], ["__scopeId", "data-v-ea0113ba"
|
|
|
180
180
|
required: !0
|
|
181
181
|
}
|
|
182
182
|
},
|
|
183
|
-
emits: [
|
|
183
|
+
emits: [h.CLOSE, h.BACK],
|
|
184
184
|
setup(e, { emit: t }) {
|
|
185
|
-
const
|
|
186
|
-
var
|
|
187
|
-
const
|
|
188
|
-
...
|
|
189
|
-
indent: !
|
|
185
|
+
const b = m(null), i = m(0), r = m(e.items.length), a = () => t(h.CLOSE), l = () => t(h.BACK), s = M(() => {
|
|
186
|
+
var _;
|
|
187
|
+
const u = (_ = e.items) == null ? void 0 : _.map((p) => ({
|
|
188
|
+
...p,
|
|
189
|
+
indent: !p.icon,
|
|
190
190
|
isTitle: !1,
|
|
191
191
|
clickHandler: a
|
|
192
192
|
}));
|
|
@@ -195,7 +195,7 @@ const X = /* @__PURE__ */ R(Be, [["render", $e], ["__scopeId", "data-v-ea0113ba"
|
|
|
195
195
|
text: e.title,
|
|
196
196
|
secondaryText: null,
|
|
197
197
|
critical: !1,
|
|
198
|
-
icon:
|
|
198
|
+
icon: A,
|
|
199
199
|
isTitle: !0,
|
|
200
200
|
disabled: !1,
|
|
201
201
|
indent: !1,
|
|
@@ -203,27 +203,27 @@ const X = /* @__PURE__ */ R(Be, [["render", $e], ["__scopeId", "data-v-ea0113ba"
|
|
|
203
203
|
clickHandler: l,
|
|
204
204
|
addDivider: !0
|
|
205
205
|
},
|
|
206
|
-
...
|
|
206
|
+
...u
|
|
207
207
|
];
|
|
208
|
-
}),
|
|
209
|
-
var
|
|
210
|
-
(B = (
|
|
208
|
+
}), f = async () => {
|
|
209
|
+
var u, _, p, I, B;
|
|
210
|
+
(B = (I = (p = (_ = (u = b.value) == null ? void 0 : u.children) == null ? void 0 : _[i.value]) == null ? void 0 : p.children) == null ? void 0 : I[0]) == null || B.focus();
|
|
211
211
|
};
|
|
212
212
|
ie(async () => {
|
|
213
|
-
setTimeout(() =>
|
|
213
|
+
setTimeout(() => f(), 150);
|
|
214
214
|
});
|
|
215
215
|
const o = () => {
|
|
216
|
-
i.value > 0 ? (i.value -= 1, s.value[i.value].disabled && o()) : i.value = r.value,
|
|
216
|
+
i.value > 0 ? (i.value -= 1, s.value[i.value].disabled && o()) : i.value = r.value, f();
|
|
217
217
|
}, n = () => {
|
|
218
|
-
i.value < r.value ? (i.value += 1, s.value[i.value].disabled && n()) : i.value = 0,
|
|
218
|
+
i.value < r.value ? (i.value += 1, s.value[i.value].disabled && n()) : i.value = 0, f();
|
|
219
219
|
};
|
|
220
220
|
return {
|
|
221
221
|
// Enums
|
|
222
|
-
BentoMenuEvent:
|
|
222
|
+
BentoMenuEvent: h,
|
|
223
223
|
// Values
|
|
224
|
-
subMenuItemListRefLocal:
|
|
224
|
+
subMenuItemListRefLocal: b,
|
|
225
225
|
subMenuFocusedIndex: i,
|
|
226
|
-
ChevronLeftIcon:
|
|
226
|
+
ChevronLeftIcon: A,
|
|
227
227
|
computedItems: s,
|
|
228
228
|
// Methods
|
|
229
229
|
closeMenu: a,
|
|
@@ -233,26 +233,26 @@ const X = /* @__PURE__ */ R(Be, [["render", $e], ["__scopeId", "data-v-ea0113ba"
|
|
|
233
233
|
};
|
|
234
234
|
}
|
|
235
235
|
});
|
|
236
|
-
function
|
|
237
|
-
const l = v("menu-item"), s = v("bento-divider"),
|
|
238
|
-
return
|
|
236
|
+
function $e(e, t, b, i, r, a) {
|
|
237
|
+
const l = v("menu-item"), s = v("bento-divider"), f = v("menu-list-container");
|
|
238
|
+
return d(), $(le, {
|
|
239
239
|
name: "b-sub-menu-item-list__transition",
|
|
240
240
|
appear: ""
|
|
241
241
|
}, {
|
|
242
242
|
default: C(() => [
|
|
243
|
-
S(
|
|
243
|
+
S(f, { class: "b-sub-menu-item-list" }, {
|
|
244
244
|
default: C(() => [
|
|
245
245
|
T("ul", {
|
|
246
246
|
ref: "subMenuItemListRefLocal",
|
|
247
247
|
role: "menu",
|
|
248
248
|
class: "b-sub-menu-item-list__list",
|
|
249
249
|
onKeydown: [
|
|
250
|
-
t[0] || (t[0] =
|
|
251
|
-
t[1] || (t[1] =
|
|
252
|
-
t[2] || (t[2] =
|
|
250
|
+
t[0] || (t[0] = g(D((...o) => e.focusNext && e.focusNext(...o), ["stop"]), ["down"])),
|
|
251
|
+
t[1] || (t[1] = g(D((...o) => e.focusPrevious && e.focusPrevious(...o), ["stop"]), ["up"])),
|
|
252
|
+
t[2] || (t[2] = g(D((...o) => e.onBackButton && e.onBackButton(...o), ["stop"]), ["esc"]))
|
|
253
253
|
]
|
|
254
254
|
}, [
|
|
255
|
-
(
|
|
255
|
+
(d(!0), L(z, null, J(e.computedItems, (o, n) => (d(), L("li", {
|
|
256
256
|
key: `sub-menu-item-list-item-${n}`,
|
|
257
257
|
role: "none"
|
|
258
258
|
}, [
|
|
@@ -268,10 +268,10 @@ function ke(e, t, _, i, r, a) {
|
|
|
268
268
|
tabindex: n === e.subMenuFocusedIndex ? "0" : "-1",
|
|
269
269
|
onClick: o.clickHandler
|
|
270
270
|
}, null, 8, ["text", "handler", "secondary-text", "icon", "is-title", "disabled", "critical", "indent", "tabindex", "onClick"]),
|
|
271
|
-
o.addDivider ? (
|
|
271
|
+
o.addDivider ? (d(), $(s, {
|
|
272
272
|
key: 0,
|
|
273
273
|
class: "b-sub-menu-item-list__divider"
|
|
274
|
-
})) :
|
|
274
|
+
})) : R("", !0)
|
|
275
275
|
]))), 128))
|
|
276
276
|
], 544)
|
|
277
277
|
]),
|
|
@@ -281,9 +281,9 @@ function ke(e, t, _, i, r, a) {
|
|
|
281
281
|
_: 1
|
|
282
282
|
});
|
|
283
283
|
}
|
|
284
|
-
const
|
|
284
|
+
const Me = /* @__PURE__ */ E(Be, [["render", $e], ["__scopeId", "data-v-621db243"]]), ke = O({
|
|
285
285
|
name: "menu-item-list",
|
|
286
|
-
components: { BentoDivider:
|
|
286
|
+
components: { BentoDivider: Q, MenuItem: X, MenuListContainer: x, SubMenuItemList: Me },
|
|
287
287
|
props: {
|
|
288
288
|
/**
|
|
289
289
|
* The data to be displayed in the list
|
|
@@ -307,63 +307,63 @@ const Se = /* @__PURE__ */ R(Me, [["render", ke], ["__scopeId", "data-v-621db243
|
|
|
307
307
|
default: !1
|
|
308
308
|
}
|
|
309
309
|
},
|
|
310
|
-
emits: [
|
|
310
|
+
emits: [h.CLOSE],
|
|
311
311
|
setup(e, { emit: t }) {
|
|
312
|
-
const
|
|
312
|
+
const b = m(null), i = m(null), r = m(null), a = m(!1), l = m(null), s = m(e.focusLastElement ? e.data.length - 1 : 0), f = m(0), o = m(e.data.length - 1), n = M(() => e.data.some((c) => c.icon)), u = M(() => e.indentItems || n.value ? e.data.map((c) => {
|
|
313
313
|
let y = !1;
|
|
314
|
-
return
|
|
315
|
-
...
|
|
314
|
+
return c.icon || (y = !0), {
|
|
315
|
+
...c,
|
|
316
316
|
// eslint-disable-next-line no-param-reassign
|
|
317
317
|
indent: y
|
|
318
318
|
};
|
|
319
|
-
}) : e.data),
|
|
320
|
-
var
|
|
321
|
-
return (k = (y = (
|
|
322
|
-
},
|
|
323
|
-
|
|
319
|
+
}) : e.data), _ = () => {
|
|
320
|
+
var c, y, k;
|
|
321
|
+
return (k = (y = (c = b.value) == null ? void 0 : c.children[s.value]) == null ? void 0 : y.children[0]) == null ? void 0 : k.focus();
|
|
322
|
+
}, p = () => t(h.CLOSE), I = async (c, y) => {
|
|
323
|
+
c.items ? (l.value = y, a.value = !0) : (l.value = y, a.value = !1, p());
|
|
324
324
|
}, B = () => {
|
|
325
|
-
s.value > 0 ? (s.value -= 1,
|
|
325
|
+
s.value > 0 ? (s.value -= 1, u.value[s.value].disabled && B()) : s.value = o.value, _();
|
|
326
326
|
}, w = () => {
|
|
327
|
-
s.value < o.value ? (s.value += 1,
|
|
328
|
-
}, P = (
|
|
327
|
+
s.value < o.value ? (s.value += 1, u.value[s.value].disabled && w()) : s.value = 0, _();
|
|
328
|
+
}, P = (c, y) => {
|
|
329
329
|
var k;
|
|
330
|
-
(k =
|
|
331
|
-
},
|
|
330
|
+
(k = c == null ? void 0 : c.items) != null && k.length && (l.value = y, a.value = !0);
|
|
331
|
+
}, K = () => {
|
|
332
332
|
l.value && a.value && (l.value = null, a.value = !1);
|
|
333
333
|
}, te = () => {
|
|
334
|
-
a.value = !1, l.value = null,
|
|
334
|
+
a.value = !1, l.value = null, _();
|
|
335
335
|
}, ne = M(() => {
|
|
336
|
-
var
|
|
337
|
-
return (k = (y = (
|
|
336
|
+
var c, y, k;
|
|
337
|
+
return (k = (y = (c = r.value) == null ? void 0 : c[0]) == null ? void 0 : y.$el) == null ? void 0 : k.offsetHeight;
|
|
338
338
|
}), oe = M(() => a.value ? `${ne.value}px` : "");
|
|
339
339
|
return {
|
|
340
340
|
// Values
|
|
341
|
-
menuItemListRef:
|
|
341
|
+
menuItemListRef: b,
|
|
342
342
|
menuItemListWrapperRef: i,
|
|
343
343
|
subMenuItemListRef: r,
|
|
344
|
-
computedData:
|
|
344
|
+
computedData: u,
|
|
345
345
|
computedHeight: oe,
|
|
346
346
|
focusedIndex: s,
|
|
347
|
-
subMenuFocusedIndex:
|
|
347
|
+
subMenuFocusedIndex: f,
|
|
348
348
|
showSubMenu: a,
|
|
349
349
|
visibleSubMenuIndex: l,
|
|
350
350
|
// Methods
|
|
351
|
-
toggleMenu:
|
|
352
|
-
closeMenu:
|
|
351
|
+
toggleMenu: I,
|
|
352
|
+
closeMenu: p,
|
|
353
353
|
focusPrevious: B,
|
|
354
354
|
focusNext: w,
|
|
355
355
|
focusRight: P,
|
|
356
|
-
focusLeft:
|
|
356
|
+
focusLeft: K,
|
|
357
357
|
onBackButton: te
|
|
358
358
|
};
|
|
359
359
|
}
|
|
360
360
|
});
|
|
361
|
-
const
|
|
362
|
-
function
|
|
363
|
-
const l = v("menu-item"), s = v("bento-divider"),
|
|
364
|
-
return
|
|
361
|
+
const Se = ["onKeydown"];
|
|
362
|
+
function Le(e, t, b, i, r, a) {
|
|
363
|
+
const l = v("menu-item"), s = v("bento-divider"), f = v("sub-menu-item-list"), o = v("menu-list-container");
|
|
364
|
+
return d(), $(o, {
|
|
365
365
|
ref: "menuItemListWrapperRef",
|
|
366
|
-
style:
|
|
366
|
+
style: Y({ height: e.computedHeight })
|
|
367
367
|
}, {
|
|
368
368
|
default: C(() => [
|
|
369
369
|
T("ul", {
|
|
@@ -371,42 +371,42 @@ function Ee(e, t, _, i, r, a) {
|
|
|
371
371
|
class: "b-menu-item-list",
|
|
372
372
|
role: "menu",
|
|
373
373
|
onKeydown: [
|
|
374
|
-
t[1] || (t[1] =
|
|
375
|
-
t[2] || (t[2] =
|
|
376
|
-
t[3] || (t[3] =
|
|
377
|
-
t[4] || (t[4] =
|
|
374
|
+
t[1] || (t[1] = g((...n) => e.focusNext && e.focusNext(...n), ["down"])),
|
|
375
|
+
t[2] || (t[2] = g((...n) => e.focusPrevious && e.focusPrevious(...n), ["up"])),
|
|
376
|
+
t[3] || (t[3] = g((...n) => e.closeMenu && e.closeMenu(...n), ["esc"])),
|
|
377
|
+
t[4] || (t[4] = g((...n) => e.closeMenu && e.closeMenu(...n), ["tab"]))
|
|
378
378
|
]
|
|
379
379
|
}, [
|
|
380
|
-
(
|
|
381
|
-
var
|
|
382
|
-
return
|
|
383
|
-
key: `menu-item-${
|
|
380
|
+
(d(!0), L(z, null, J(e.computedData, (n, u) => {
|
|
381
|
+
var _, p, I, B;
|
|
382
|
+
return d(), L("li", {
|
|
383
|
+
key: `menu-item-${u}`,
|
|
384
384
|
class: "b-menu-item-list__item",
|
|
385
385
|
role: "none",
|
|
386
386
|
onKeydown: [
|
|
387
|
-
|
|
388
|
-
t[0] || (t[0] =
|
|
387
|
+
g((w) => e.focusRight(n, u), ["right"]),
|
|
388
|
+
t[0] || (t[0] = g((w) => e.focusLeft(), ["left"]))
|
|
389
389
|
]
|
|
390
390
|
}, [
|
|
391
391
|
S(l, {
|
|
392
392
|
text: n.text,
|
|
393
|
-
handler: (
|
|
393
|
+
handler: (_ = n.items) != null && _.length ? () => null : n.handler,
|
|
394
394
|
"secondary-text": n.secondaryText,
|
|
395
395
|
icon: n.icon,
|
|
396
|
-
chevron: !!((
|
|
396
|
+
chevron: !!((p = n.items) != null && p.length),
|
|
397
397
|
disabled: n.disabled,
|
|
398
398
|
critical: n.critical,
|
|
399
399
|
indent: n.indent,
|
|
400
|
-
tabindex:
|
|
401
|
-
"aria-haspopup": !!((
|
|
402
|
-
"aria-expanded": e.showSubMenu && e.visibleSubMenuIndex ===
|
|
403
|
-
onClick: (w) => e.toggleMenu(n,
|
|
400
|
+
tabindex: u === e.subMenuFocusedIndex ? "0" : "-1",
|
|
401
|
+
"aria-haspopup": !!((I = n.items) != null && I.length),
|
|
402
|
+
"aria-expanded": e.showSubMenu && e.visibleSubMenuIndex === u,
|
|
403
|
+
onClick: (w) => e.toggleMenu(n, u)
|
|
404
404
|
}, null, 8, ["text", "handler", "secondary-text", "icon", "chevron", "disabled", "critical", "indent", "tabindex", "aria-haspopup", "aria-expanded", "onClick"]),
|
|
405
|
-
n.addDivider ? (
|
|
405
|
+
n.addDivider ? (d(), $(s, {
|
|
406
406
|
key: 0,
|
|
407
407
|
class: "b-menu-item-list__divider"
|
|
408
|
-
})) :
|
|
409
|
-
(B = n.items) != null && B.length && e.showSubMenu && e.visibleSubMenuIndex ===
|
|
408
|
+
})) : R("", !0),
|
|
409
|
+
(B = n.items) != null && B.length && e.showSubMenu && e.visibleSubMenuIndex === u ? (d(), $(f, {
|
|
410
410
|
key: 1,
|
|
411
411
|
ref_for: !0,
|
|
412
412
|
ref: "subMenuItemListRef",
|
|
@@ -414,49 +414,48 @@ function Ee(e, t, _, i, r, a) {
|
|
|
414
414
|
title: n.text,
|
|
415
415
|
onBack: e.onBackButton,
|
|
416
416
|
onClose: e.closeMenu
|
|
417
|
-
}, null, 8, ["items", "title", "onBack", "onClose"])) :
|
|
418
|
-
], 40,
|
|
417
|
+
}, null, 8, ["items", "title", "onBack", "onClose"])) : R("", !0)
|
|
418
|
+
], 40, Se);
|
|
419
419
|
}), 128))
|
|
420
420
|
], 544)
|
|
421
421
|
]),
|
|
422
422
|
_: 1
|
|
423
423
|
}, 8, ["style"]);
|
|
424
424
|
}
|
|
425
|
-
const
|
|
426
|
-
let
|
|
427
|
-
const
|
|
425
|
+
const we = /* @__PURE__ */ E(ke, [["render", Le], ["__scopeId", "data-v-f1d94ee8"]]), Re = Symbol("menu inverse style injection key");
|
|
426
|
+
let U = 0;
|
|
427
|
+
const Ee = {
|
|
428
428
|
beforeCreate() {
|
|
429
|
-
this.uuid =
|
|
429
|
+
this.uuid = U.toString(), U += 1;
|
|
430
430
|
}
|
|
431
|
-
},
|
|
431
|
+
}, Oe = { key: 0 }, Te = /* @__PURE__ */ T("path", {
|
|
432
432
|
fill: "#00112C",
|
|
433
433
|
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"
|
|
434
|
-
}, null, -1),
|
|
434
|
+
}, null, -1), Ne = /* @__PURE__ */ T("path", {
|
|
435
435
|
fill: "#00112C",
|
|
436
436
|
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"
|
|
437
|
-
}, null, -1),
|
|
437
|
+
}, null, -1), Pe = /* @__PURE__ */ T("path", {
|
|
438
438
|
fill: "#00112C",
|
|
439
439
|
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"
|
|
440
440
|
}, null, -1);
|
|
441
|
-
function
|
|
442
|
-
return
|
|
441
|
+
function Ke(e, t, b, i, r, a) {
|
|
442
|
+
return d(), L("svg", G({ role: "img" }, e.$attrs, {
|
|
443
443
|
class: "ui-assets-icons-16",
|
|
444
444
|
xmlns: "http://www.w3.org/2000/svg",
|
|
445
445
|
width: "16",
|
|
446
446
|
height: "16",
|
|
447
447
|
fill: "none"
|
|
448
448
|
}), [
|
|
449
|
-
e.$attrs["svg-title"] ? (
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
449
|
+
e.$attrs["svg-title"] ? (d(), L("title", Oe, F(e.$attrs["svg-title"]), 1)) : R("", !0),
|
|
450
|
+
Te,
|
|
451
|
+
Ne,
|
|
452
|
+
Pe
|
|
453
453
|
], 16);
|
|
454
454
|
}
|
|
455
|
-
const
|
|
456
|
-
i18n: { messages:
|
|
455
|
+
const De = /* @__PURE__ */ E(Ee, [["render", Ke]]), Fe = O({
|
|
456
|
+
i18n: { messages: ee },
|
|
457
457
|
name: "bento-menu",
|
|
458
|
-
components: { BentoToggleButton:
|
|
459
|
-
directives: { BentoClickOutsideDirective: ce },
|
|
458
|
+
components: { BentoToggleButton: fe, BentoPopover: re, BentoTeleport: pe, MenuItemList: we, OptionsVerticalIcon: De },
|
|
460
459
|
props: {
|
|
461
460
|
/**
|
|
462
461
|
* Object containing props to change the menu button appearance. Accepts the same props present in BentoButton.
|
|
@@ -479,8 +478,8 @@ const We = /* @__PURE__ */ R(Te, [["render", Fe]]), Ve = O({
|
|
|
479
478
|
*/
|
|
480
479
|
menuPosition: {
|
|
481
480
|
type: String,
|
|
482
|
-
default:
|
|
483
|
-
validator: (e) => Object.values(
|
|
481
|
+
default: H.BOTTOM_START,
|
|
482
|
+
validator: (e) => Object.values(H).includes(e)
|
|
484
483
|
},
|
|
485
484
|
/**
|
|
486
485
|
* Instructs the menu popover to be visible outside of the containing container.
|
|
@@ -506,61 +505,63 @@ const We = /* @__PURE__ */ R(Te, [["render", Fe]]), Ve = O({
|
|
|
506
505
|
default: !1
|
|
507
506
|
}
|
|
508
507
|
},
|
|
509
|
-
emits: [
|
|
510
|
-
setup(e, { emit: t, slots:
|
|
511
|
-
const i =
|
|
512
|
-
ae(
|
|
513
|
-
const
|
|
514
|
-
"b-menu--inverse":
|
|
515
|
-
})),
|
|
508
|
+
emits: [h.CLOSE, h.OPEN],
|
|
509
|
+
setup(e, { emit: t, slots: b }) {
|
|
510
|
+
const i = m(null), r = m(!1), a = m(!1), l = m(null), s = V("menu"), f = V("menu-popover"), o = ue(Re, m(!1));
|
|
511
|
+
ae(de, o);
|
|
512
|
+
const n = M(() => ({
|
|
513
|
+
"b-menu--inverse": o.value
|
|
514
|
+
})), u = M(() => e.menuWidth ? { width: `${e.menuWidth}px` } : null), _ = M(() => {
|
|
516
515
|
if (e != null && e.button)
|
|
517
516
|
return {
|
|
518
517
|
variant: "secondary",
|
|
519
518
|
...e.button
|
|
520
519
|
};
|
|
521
|
-
}),
|
|
522
|
-
r.value = !0, t(
|
|
523
|
-
},
|
|
524
|
-
r.value && (r.value = !1, i.value.$el.focus(), t(
|
|
525
|
-
},
|
|
526
|
-
|
|
527
|
-
}, B = () => {
|
|
528
|
-
a.value = !1, u();
|
|
520
|
+
}), p = () => {
|
|
521
|
+
r.value = !0, t(h.OPEN);
|
|
522
|
+
}, I = () => {
|
|
523
|
+
r.value && (r.value = !1, i.value.$el.focus(), t(h.CLOSE));
|
|
524
|
+
}, B = (K) => {
|
|
525
|
+
K.stopPropagation(), r.value ? I() : p();
|
|
529
526
|
}, w = () => {
|
|
530
|
-
a.value = !
|
|
527
|
+
a.value = !1, p();
|
|
528
|
+
}, P = () => {
|
|
529
|
+
a.value = !0, p();
|
|
531
530
|
};
|
|
532
|
-
return {
|
|
533
|
-
//
|
|
531
|
+
return ce(l, I, { ignore: [i] }), {
|
|
532
|
+
// Refs
|
|
533
|
+
popoverRef: l,
|
|
534
534
|
menuButtonRef: i,
|
|
535
|
-
|
|
536
|
-
|
|
535
|
+
// Values
|
|
536
|
+
menuId: s,
|
|
537
|
+
popoverId: f,
|
|
537
538
|
showMenu: r,
|
|
538
|
-
computedButtonPropsWithDefaults:
|
|
539
|
-
computedMenuWidth:
|
|
539
|
+
computedButtonPropsWithDefaults: _,
|
|
540
|
+
computedMenuWidth: u,
|
|
540
541
|
isLastElementFocused: a,
|
|
541
542
|
// Classes
|
|
542
|
-
computedClasses:
|
|
543
|
-
isInverseColorSet:
|
|
543
|
+
computedClasses: n,
|
|
544
|
+
isInverseColorSet: o,
|
|
544
545
|
// Methods
|
|
545
|
-
hasSlot:
|
|
546
|
-
onKeyDown:
|
|
547
|
-
onKeyUp:
|
|
548
|
-
closeMenu:
|
|
549
|
-
toggleShowMenu:
|
|
546
|
+
hasSlot: me(b),
|
|
547
|
+
onKeyDown: w,
|
|
548
|
+
onKeyUp: P,
|
|
549
|
+
closeMenu: I,
|
|
550
|
+
toggleShowMenu: B
|
|
550
551
|
};
|
|
551
552
|
}
|
|
552
553
|
});
|
|
553
|
-
function
|
|
554
|
-
const l = v("options-vertical-icon"), s = v("bento-toggle-button"),
|
|
555
|
-
return
|
|
556
|
-
class:
|
|
554
|
+
function We(e, t, b, i, r, a) {
|
|
555
|
+
const l = v("options-vertical-icon"), s = v("bento-toggle-button"), f = v("menu-item-list"), o = v("bento-popover"), n = v("bento-teleport");
|
|
556
|
+
return d(), L("div", {
|
|
557
|
+
class: j([e.computedClasses, "b-menu"]),
|
|
557
558
|
onKeydown: [
|
|
558
|
-
t[0] || (t[0] =
|
|
559
|
-
t[1] || (t[1] =
|
|
560
|
-
t[2] || (t[2] =
|
|
559
|
+
t[0] || (t[0] = g((...u) => e.onKeyDown && e.onKeyDown(...u), ["down"])),
|
|
560
|
+
t[1] || (t[1] = g((...u) => e.onKeyUp && e.onKeyUp(...u), ["up"])),
|
|
561
|
+
t[2] || (t[2] = g((...u) => e.closeMenu && e.closeMenu(...u), ["esc"]))
|
|
561
562
|
]
|
|
562
563
|
}, [
|
|
563
|
-
S(s,
|
|
564
|
+
S(s, G({
|
|
564
565
|
ref: "menuButtonRef",
|
|
565
566
|
"aria-haspopup": "true"
|
|
566
567
|
}, e.computedButtonPropsWithDefaults, {
|
|
@@ -568,7 +569,7 @@ function He(e, t, _, i, r, a) {
|
|
|
568
569
|
toggled: e.showMenu,
|
|
569
570
|
inverse: e.isInverseColorSet,
|
|
570
571
|
onClick: e.toggleShowMenu
|
|
571
|
-
}),
|
|
572
|
+
}), Z({ _: 2 }, [
|
|
572
573
|
!e.hasSlot("default") || e.hasSlot("iconLeft") ? {
|
|
573
574
|
name: "iconLeft",
|
|
574
575
|
fn: C(() => [
|
|
@@ -595,17 +596,18 @@ function He(e, t, _, i, r, a) {
|
|
|
595
596
|
key: "2"
|
|
596
597
|
} : void 0
|
|
597
598
|
]), 1040, ["aria-controls", "toggled", "inverse", "onClick"]),
|
|
598
|
-
e.menuButtonRef ? (
|
|
599
|
+
e.menuButtonRef ? (d(), $(n, {
|
|
599
600
|
key: 0,
|
|
600
601
|
disabled: !e.teleport
|
|
601
602
|
}, {
|
|
602
603
|
default: C(() => [
|
|
603
|
-
e.menuButtonRef ? (
|
|
604
|
+
e.menuButtonRef ? (d(), $(o, {
|
|
604
605
|
key: 0,
|
|
605
606
|
id: e.menuId,
|
|
607
|
+
ref: "popoverRef",
|
|
606
608
|
open: e.showMenu,
|
|
607
609
|
class: "b-menu__popover",
|
|
608
|
-
style:
|
|
610
|
+
style: Y(e.computedMenuWidth),
|
|
609
611
|
"target-element": e.menuButtonRef,
|
|
610
612
|
position: e.menuPosition,
|
|
611
613
|
"fixed-positioning": e.menuFixedPositioning,
|
|
@@ -623,26 +625,24 @@ function He(e, t, _, i, r, a) {
|
|
|
623
625
|
"without-space": ""
|
|
624
626
|
}, {
|
|
625
627
|
default: C(() => [
|
|
626
|
-
S(
|
|
628
|
+
S(f, {
|
|
627
629
|
data: e.data,
|
|
628
630
|
"focus-last-element": e.isLastElementFocused,
|
|
629
631
|
onClose: e.closeMenu
|
|
630
632
|
}, null, 8, ["data", "focus-last-element", "onClose"])
|
|
631
633
|
]),
|
|
632
634
|
_: 1
|
|
633
|
-
}, 8, ["id", "open", "style", "target-element", "position", "fixed-positioning", "teleport"])) :
|
|
635
|
+
}, 8, ["id", "open", "style", "target-element", "position", "fixed-positioning", "teleport"])) : R("", !0)
|
|
634
636
|
]),
|
|
635
637
|
_: 1
|
|
636
|
-
}, 8, ["disabled"])) :
|
|
637
|
-
], 34)
|
|
638
|
-
[d, e.closeMenu]
|
|
639
|
-
]);
|
|
638
|
+
}, 8, ["disabled"])) : R("", !0)
|
|
639
|
+
], 34);
|
|
640
640
|
}
|
|
641
|
-
const
|
|
641
|
+
const Xe = /* @__PURE__ */ E(Fe, [["render", We], ["__scopeId", "data-v-42faec3b"]]);
|
|
642
642
|
export {
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
643
|
+
Xe as B,
|
|
644
|
+
Re as M,
|
|
645
|
+
De as O,
|
|
646
|
+
h as a
|
|
647
647
|
};
|
|
648
|
-
//# sourceMappingURL=index.
|
|
648
|
+
//# sourceMappingURL=index.10c69f39.js.map
|