@adyen/bento-vue2 1.26.0 → 1.27.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/components.d.ts +4 -0
- package/dist/@types/index.d.ts +513 -136
- package/dist/accordion.js +2 -2
- package/dist/action-bar.js +61 -146
- package/dist/action-bar.js.map +1 -1
- package/dist/alert.js +3 -3
- package/dist/assets/base-modal.css +1 -1
- package/dist/assets/button-actions.css +1 -1
- package/dist/assets/button.css +1 -1
- package/dist/assets/dialog-page.css +1 -1
- package/dist/assets/dropdown.css +1 -1
- package/dist/assets/index.css +1 -1
- package/dist/assets/index10.css +1 -1
- package/dist/assets/index11.css +1 -1
- package/dist/assets/index12.css +1 -1
- package/dist/assets/index13.css +1 -1
- package/dist/assets/index14.css +1 -1
- package/dist/assets/index15.css +1 -1
- package/dist/assets/index16.css +1 -1
- package/dist/assets/index17.css +1 -1
- package/dist/assets/index18.css +1 -1
- package/dist/assets/index19.css +1 -1
- package/dist/assets/index2.css +1 -1
- package/dist/assets/index20.css +1 -1
- package/dist/assets/index21.css +1 -1
- package/dist/assets/index22.css +1 -1
- package/dist/assets/index23.css +1 -1
- package/dist/assets/index24.css +1 -1
- package/dist/assets/index25.css +1 -1
- package/dist/assets/index26.css +1 -1
- package/dist/assets/index27.css +1 -1
- package/dist/assets/index28.css +1 -1
- package/dist/assets/index29.css +1 -1
- package/dist/assets/index3.css +1 -1
- package/dist/assets/index30.css +1 -1
- package/dist/assets/index31.css +1 -1
- package/dist/assets/index32.css +1 -1
- package/dist/assets/index33.css +1 -1
- package/dist/assets/index34.css +1 -1
- package/dist/assets/index35.css +1 -1
- package/dist/assets/index36.css +1 -1
- package/dist/assets/index37.css +1 -1
- package/dist/assets/index38.css +1 -1
- package/dist/assets/index39.css +1 -1
- package/dist/assets/index4.css +1 -1
- package/dist/assets/index40.css +1 -1
- package/dist/assets/index41.css +1 -1
- package/dist/assets/index42.css +1 -1
- package/dist/assets/index43.css +1 -1
- package/dist/assets/index44.css +1 -1
- package/dist/assets/index45.css +1 -1
- package/dist/assets/index46.css +1 -1
- package/dist/assets/index47.css +1 -1
- package/dist/assets/index48.css +1 -1
- package/dist/assets/index49.css +1 -0
- package/dist/assets/index5.css +1 -1
- package/dist/assets/index6.css +1 -1
- package/dist/assets/index7.css +1 -1
- package/dist/assets/index8.css +1 -1
- package/dist/assets/index9.css +1 -1
- package/dist/assets/use-cached-selected-values.css +1 -1
- package/dist/avatar-image.js +1 -1
- package/dist/badge.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.ad74b6f8.js → base-button.852204dc.js} +2 -2
- package/dist/chunks/{base-button.ad74b6f8.js.map → base-button.852204dc.js.map} +1 -1
- package/dist/chunks/{base-modal.1fff7abe.js → base-modal.4fb7528b.js} +6 -6
- package/dist/chunks/{base-modal.1fff7abe.js.map → base-modal.4fb7528b.js.map} +1 -1
- package/dist/chunks/{button-actions-with-menu.e845d77a.js → button-actions-with-menu.bf968959.js} +4 -4
- package/dist/chunks/{button-actions-with-menu.e845d77a.js.map → button-actions-with-menu.bf968959.js.map} +1 -1
- package/dist/chunks/{button-actions.81db18e8.js → button-actions.87e589e3.js} +31 -29
- package/dist/chunks/button-actions.87e589e3.js.map +1 -0
- package/dist/chunks/button.cb90b55c.js +101 -0
- package/dist/chunks/button.cb90b55c.js.map +1 -0
- package/dist/chunks/{calendar.640b8d25.js → calendar.f02e0a5a.js} +5 -5
- package/dist/chunks/{calendar.640b8d25.js.map → calendar.f02e0a5a.js.map} +1 -1
- package/dist/chunks/{checkbox.bfed007c.js → checkbox.9f9c978a.js} +3 -3
- package/dist/chunks/{checkbox.bfed007c.js.map → checkbox.9f9c978a.js.map} +1 -1
- package/dist/chunks/{controls-group.4fb50009.js → controls-group.121a307d.js} +3 -3
- package/dist/chunks/{controls-group.4fb50009.js.map → controls-group.121a307d.js.map} +1 -1
- package/dist/chunks/{copy.f85700c6.js → copy.6808b2dc.js} +4 -4
- package/dist/chunks/{copy.f85700c6.js.map → copy.6808b2dc.js.map} +1 -1
- package/dist/chunks/{dialog-page.73da22cf.js → dialog-page.7fd7d006.js} +3 -3
- package/dist/chunks/{dialog-page.73da22cf.js.map → dialog-page.7fd7d006.js.map} +1 -1
- package/dist/chunks/{dropdown-default-textbox.54ca1b18.js → dropdown-default-textbox.d0f17d96.js} +3 -3
- package/dist/chunks/{dropdown-default-textbox.54ca1b18.js.map → dropdown-default-textbox.d0f17d96.js.map} +1 -1
- package/dist/chunks/{dropdown.10c034aa.js → dropdown.a8037bca.js} +188 -197
- package/dist/chunks/dropdown.a8037bca.js.map +1 -0
- package/dist/chunks/{error-message.31ec12b7.js → error-message.bdcc1020.js} +2 -2
- package/dist/chunks/{error-message.31ec12b7.js.map → error-message.bdcc1020.js.map} +1 -1
- package/dist/chunks/{events.58c00e6d.js → events.f14a214b.js} +5 -5
- package/dist/chunks/events.f14a214b.js.map +1 -0
- package/dist/chunks/{fixed-scroller.4eb9a9ac.js → fixed-scroller.82ef6187.js} +2 -2
- package/dist/chunks/{fixed-scroller.4eb9a9ac.js.map → fixed-scroller.82ef6187.js.map} +1 -1
- package/dist/chunks/{footer-actions.a1e09b4f.js → footer-actions.58d14a16.js} +4 -4
- package/dist/chunks/{footer-actions.a1e09b4f.js.map → footer-actions.58d14a16.js.map} +1 -1
- package/dist/chunks/{index.15b088b9.js → index.0a30d358.js} +6 -6
- package/dist/chunks/{index.15b088b9.js.map → index.0a30d358.js.map} +1 -1
- package/dist/chunks/{index.d553d3d1.js → index.1deef79e.js} +2 -2
- package/dist/chunks/{index.d553d3d1.js.map → index.1deef79e.js.map} +1 -1
- package/dist/chunks/index.3c69be27.js +85 -0
- package/dist/chunks/index.3c69be27.js.map +1 -0
- package/dist/chunks/index.561786f6.js +126 -0
- package/dist/chunks/index.561786f6.js.map +1 -0
- package/dist/chunks/{index.b21197ca.js → index.614a5138.js} +2 -2
- package/dist/chunks/{index.b21197ca.js.map → index.614a5138.js.map} +1 -1
- package/dist/chunks/{index.8b8c3b16.js → index.854d6498.js} +9 -9
- package/dist/chunks/{index.8b8c3b16.js.map → index.854d6498.js.map} +1 -1
- package/dist/chunks/{index.885d05a9.js → index.939dd5cf.js} +2 -2
- package/dist/chunks/{index.885d05a9.js.map → index.939dd5cf.js.map} +1 -1
- package/dist/chunks/{index.1ea85d4a.js → index.a48e7f99.js} +6 -6
- package/dist/chunks/{index.1ea85d4a.js.map → index.a48e7f99.js.map} +1 -1
- package/dist/chunks/{index.317fca12.js → index.bd1d28d0.js} +3 -3
- package/dist/chunks/{index.317fca12.js.map → index.bd1d28d0.js.map} +1 -1
- package/dist/chunks/{index.671768a1.js → index.c8621e8e.js} +3 -3
- package/dist/chunks/{index.671768a1.js.map → index.c8621e8e.js.map} +1 -1
- package/dist/chunks/{index.7eefc59c.js → index.ccc7e8d7.js} +3 -3
- package/dist/chunks/{index.7eefc59c.js.map → index.ccc7e8d7.js.map} +1 -1
- package/dist/chunks/{index.dd30e538.js → index.e29a6907.js} +2 -2
- package/dist/chunks/{index.dd30e538.js.map → index.e29a6907.js.map} +1 -1
- package/dist/chunks/{keyboard-navigation.ca47dfa8.js → keyboard-navigation.bbc3d15c.js} +2 -2
- package/dist/chunks/{keyboard-navigation.ca47dfa8.js.map → keyboard-navigation.bbc3d15c.js.map} +1 -1
- package/dist/chunks/{listbox-option-tag.6bbb6bbe.js → listbox-option-tag.8708be60.js} +3 -3
- package/dist/chunks/{listbox-option-tag.6bbb6bbe.js.map → listbox-option-tag.8708be60.js.map} +1 -1
- package/dist/chunks/{loading-button.eafc9e1b.js → loading-button.692dbdc8.js} +2 -2
- package/dist/chunks/{loading-button.eafc9e1b.js.map → loading-button.692dbdc8.js.map} +1 -1
- package/dist/chunks/{payment-method.6c1ce07c.js → payment-method.c55dd352.js} +2 -2
- package/dist/chunks/{payment-method.6c1ce07c.js.map → payment-method.c55dd352.js.map} +1 -1
- package/dist/chunks/{tooltip.58ef3f4a.js → tooltip.efddb5f3.js} +4 -4
- package/dist/chunks/{tooltip.58ef3f4a.js.map → tooltip.efddb5f3.js.map} +1 -1
- package/dist/chunks/{use-bento-toast-controller.c3277f73.js → use-bento-toast-controller.5dac1f3c.js} +2 -2
- package/dist/chunks/{use-bento-toast-controller.c3277f73.js.map → use-bento-toast-controller.5dac1f3c.js.map} +1 -1
- package/dist/chunks/{use-cached-selected-values.69297473.js → use-cached-selected-values.98a9ed01.js} +225 -206
- package/dist/chunks/use-cached-selected-values.98a9ed01.js.map +1 -0
- package/dist/code-snippet.js +131 -129
- package/dist/code-snippet.js.map +1 -1
- package/dist/country.js +2 -2
- package/dist/currency.js +1 -1
- package/dist/dashboard-template.js +109 -0
- package/dist/dashboard-template.js.map +1 -0
- package/dist/data-grid-template.js +1 -1
- package/dist/data-grid.js +78 -70
- package/dist/data-grid.js.map +1 -1
- package/dist/date-picker.js +8 -8
- package/dist/date-range-picker.js +2 -2
- package/dist/date.js +1 -1
- package/dist/divider.js +1 -1
- package/dist/dropdown.js +7 -7
- package/dist/empty-state.js +3 -3
- package/dist/filter-bar.js +77 -75
- 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 +82 -79
- package/dist/index.js.map +1 -1
- 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 +40 -41
- package/dist/segmented-control.js.map +1 -1
- package/dist/selection-card.js +4 -4
- package/dist/sidepanel.js +6 -6
- package/dist/status.js +2 -2
- package/dist/stepper.js +4 -4
- package/dist/structured-list.js +1 -1
- package/dist/summary-grid.js +3 -3
- package/dist/tabs.js +68 -67
- package/dist/tabs.js.map +1 -1
- package/dist/tag.js +3 -3
- package/dist/textarea.js +4 -4
- package/dist/timeline.js +7 -7
- package/dist/toast.js +4 -4
- package/dist/toggle.js +2 -2
- package/dist/tutorial.js +68 -53
- package/dist/tutorial.js.map +1 -1
- package/dist/typography.js +1 -1
- package/dist/web-types.json +133 -70
- package/package.json +9 -6
- package/dist/chunks/button-actions.81db18e8.js.map +0 -1
- package/dist/chunks/button.9d6435ae.js +0 -100
- package/dist/chunks/button.9d6435ae.js.map +0 -1
- package/dist/chunks/checkmark.a6ed8f47.js +0 -26
- package/dist/chunks/checkmark.a6ed8f47.js.map +0 -1
- package/dist/chunks/dropdown.10c034aa.js.map +0 -1
- package/dist/chunks/events.58c00e6d.js.map +0 -1
- package/dist/chunks/index.aaf965f8.js +0 -147
- package/dist/chunks/index.aaf965f8.js.map +0 -1
- package/dist/chunks/use-cached-selected-values.69297473.js.map +0 -1
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
import { ref as y, watch as se, computed as
|
|
2
|
-
import { d as X, B as we } from "./index.
|
|
3
|
-
import { D as P, a as ee, b as Se, c as Le, B as Oe } from "./dropdown-default-textbox.
|
|
4
|
-
import { n as
|
|
1
|
+
import { ref as y, watch as se, computed as c, defineComponent as D, useSlots as le, toRefs as ae, nextTick as $, useAttrs as xe, toRef as O, inject as he } from "vue";
|
|
2
|
+
import { d as X, B as we } from "./index.e29a6907.js";
|
|
3
|
+
import { D as P, a as ee, b as Se, c as Le, B as Oe } from "./dropdown-default-textbox.d0f17d96.js";
|
|
4
|
+
import { n as M } from "./_plugin-vue2_normalizer.71e2aa87.js";
|
|
5
5
|
import { g as T } from "./unique-id.a2a2b458.js";
|
|
6
6
|
import { u as Ce } from "./aria-label.ac9651a5.js";
|
|
7
7
|
import { u as W } from "./i18n.eb5b985b.js";
|
|
8
8
|
import { u as $e } from "./use-form-layout-loading.d03e5d48.js";
|
|
9
9
|
import { u as Ee } from "./use-has-slot.fbeb19ec.js";
|
|
10
|
-
import { c as d, b as K, B as z, a as De, u as Ie } from "./use-cached-selected-values.
|
|
11
|
-
import { B as
|
|
12
|
-
import { a as te } from "./index.
|
|
13
|
-
import { a as Re } from "./index.
|
|
14
|
-
import { E as Te, F as Ae } from "./error-message.
|
|
10
|
+
import { c as d, b as K, B as z, a as De, u as Ie } from "./use-cached-selected-values.98a9ed01.js";
|
|
11
|
+
import { B as C, a as Be } from "./keyboard-navigation.bbc3d15c.js";
|
|
12
|
+
import { a as te } from "./index.c8621e8e.js";
|
|
13
|
+
import { a as Re } from "./index.0a30d358.js";
|
|
14
|
+
import { E as Te, F as Ae } from "./error-message.bdcc1020.js";
|
|
15
15
|
import "../assets/dropdown.css";
|
|
16
|
-
var
|
|
16
|
+
var A = /* @__PURE__ */ ((n) => (n.DEFAULT = "DropdownInputDefault", n.SMALL = "DropdownInputSmall", n))(A || {});
|
|
17
17
|
const Me = {
|
|
18
18
|
"en-US": {
|
|
19
19
|
apply: "Apply",
|
|
20
20
|
cancel: "Cancel",
|
|
21
21
|
noOptionsMatchThisSearch: "No options match this search"
|
|
22
22
|
}
|
|
23
|
-
}, Ne = (n,
|
|
23
|
+
}, Ne = (n, e, o, t) => {
|
|
24
24
|
const s = y(n.value), { t: a } = W();
|
|
25
25
|
se(n, () => {
|
|
26
26
|
s.value = n.value;
|
|
27
27
|
});
|
|
28
|
-
const l =
|
|
28
|
+
const l = c(
|
|
29
29
|
() => JSON.stringify(s.value) === JSON.stringify(n.value)
|
|
30
30
|
), r = () => {
|
|
31
|
-
|
|
31
|
+
t(d.SELECT, s.value), t(d.CLOSE_DROPDOWN);
|
|
32
32
|
}, v = () => {
|
|
33
|
-
s.value = n.value,
|
|
33
|
+
s.value = n.value, t(d.CLOSE_DROPDOWN);
|
|
34
34
|
}, p = () => {
|
|
35
|
-
o.value &&
|
|
36
|
-
}, f =
|
|
35
|
+
o.value && e.value && (s.value = n.value);
|
|
36
|
+
}, f = c(() => [
|
|
37
37
|
{
|
|
38
38
|
title: a("apply"),
|
|
39
39
|
event: r,
|
|
@@ -44,21 +44,21 @@ const Me = {
|
|
|
44
44
|
event: v
|
|
45
45
|
}
|
|
46
46
|
]), _ = (i) => {
|
|
47
|
-
s.value = i,
|
|
48
|
-
},
|
|
49
|
-
_(i),
|
|
47
|
+
s.value = i, e.value || t(d.SELECT, i);
|
|
48
|
+
}, L = (i) => {
|
|
49
|
+
_(i), t(d.TAB);
|
|
50
50
|
}, g = (i) => {
|
|
51
|
-
_(i),
|
|
51
|
+
_(i), t(d.ENTER);
|
|
52
52
|
}, h = (i) => {
|
|
53
|
-
_(i),
|
|
53
|
+
_(i), t(d.SPACE);
|
|
54
54
|
}, x = () => {
|
|
55
|
-
v(),
|
|
55
|
+
v(), t(d.ESCAPE);
|
|
56
56
|
}, w = () => {
|
|
57
|
-
|
|
57
|
+
t(d.SHOW_MORE);
|
|
58
58
|
}, S = {
|
|
59
59
|
[d.SELECT]: _,
|
|
60
60
|
[d.SHOW_MORE]: w,
|
|
61
|
-
[d.TAB]:
|
|
61
|
+
[d.TAB]: L,
|
|
62
62
|
[d.SPACE]: h,
|
|
63
63
|
[d.ENTER]: g
|
|
64
64
|
};
|
|
@@ -71,10 +71,10 @@ const Me = {
|
|
|
71
71
|
onEscapeKey: x,
|
|
72
72
|
onOutsideDropdownClick: p
|
|
73
73
|
};
|
|
74
|
-
}, ke =
|
|
74
|
+
}, ke = D({
|
|
75
75
|
i18n: { messages: Me },
|
|
76
76
|
name: "bento-dropdown-options-container"
|
|
77
|
-
}), Fe = /* @__PURE__ */
|
|
77
|
+
}), Fe = /* @__PURE__ */ D({
|
|
78
78
|
...ke,
|
|
79
79
|
props: {
|
|
80
80
|
/**
|
|
@@ -100,14 +100,6 @@ const Me = {
|
|
|
100
100
|
* Identifies the listbox whose contents are controlled by the the combobox on which the aria-controls attribute is set.
|
|
101
101
|
*/
|
|
102
102
|
id: { type: String, required: !0 },
|
|
103
|
-
/**
|
|
104
|
-
* Dropdown input size
|
|
105
|
-
*/
|
|
106
|
-
inputSize: {
|
|
107
|
-
type: String,
|
|
108
|
-
default: L.DEFAULT,
|
|
109
|
-
validator: (n) => Object.values(L).includes(n)
|
|
110
|
-
},
|
|
111
103
|
/**
|
|
112
104
|
* Function that allows the options to be disabled
|
|
113
105
|
*
|
|
@@ -188,63 +180,62 @@ const Me = {
|
|
|
188
180
|
default: !1
|
|
189
181
|
}
|
|
190
182
|
},
|
|
191
|
-
setup(n, { expose:
|
|
192
|
-
const
|
|
193
|
-
"b-dropdown-options-container--single": !(
|
|
194
|
-
})),
|
|
195
|
-
"b-dropdown-options-container__listbox--
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
"min-width": `${(M = e == null ? void 0 : e.targetElement) == null ? void 0 : M.clientWidth}px`,
|
|
183
|
+
setup(n, { expose: e, emit: o }) {
|
|
184
|
+
const t = n, s = le(), { selectedValue: a, multiple: l } = ae(t), r = y(null), { t: v } = W(), p = c(() => t.open && !t.disabled), f = c(() => v("noOptionsMatchThisSearch")), _ = c(() => ({
|
|
185
|
+
"b-dropdown-options-container--single": !(t != null && t.multiple)
|
|
186
|
+
})), L = c(() => ({
|
|
187
|
+
"b-dropdown-options-container__listbox--single": !(t != null && t.multiple)
|
|
188
|
+
})), { actions: g, internalSelectedValue: h, listeners: x, onEscapeKey: w, onOutsideDropdownClick: S } = Ne(a, l, p, o), i = c(() => t != null && t.multiple ? Re : te), u = c(() => {
|
|
189
|
+
var N;
|
|
190
|
+
const b = {
|
|
191
|
+
"min-width": `${(N = t == null ? void 0 : t.targetElement) == null ? void 0 : N.clientWidth}px`,
|
|
201
192
|
"max-width": "min(500px, 95%)"
|
|
202
193
|
};
|
|
203
|
-
return
|
|
194
|
+
return t != null && t.multiple ? {
|
|
204
195
|
actionsLayout: "space-between",
|
|
205
196
|
actions: g.value,
|
|
206
197
|
divider: !0,
|
|
207
198
|
fallbackPosition: ["top-start"],
|
|
208
|
-
id: T(`dropdown-options-${
|
|
209
|
-
open:
|
|
199
|
+
id: T(`dropdown-options-${t.id}`),
|
|
200
|
+
open: t.open,
|
|
210
201
|
position: "bottom-start",
|
|
211
202
|
style: {
|
|
212
203
|
width: "auto",
|
|
213
|
-
...
|
|
204
|
+
...b
|
|
214
205
|
},
|
|
215
|
-
targetElement:
|
|
206
|
+
targetElement: t.targetElement
|
|
216
207
|
} : {
|
|
217
208
|
fallbackPosition: ["top-start"],
|
|
218
209
|
offset: [0, 8],
|
|
219
210
|
position: "bottom-start",
|
|
220
211
|
style: {
|
|
221
212
|
display: p.value ? "block" : "none",
|
|
222
|
-
...
|
|
213
|
+
...b
|
|
223
214
|
},
|
|
224
|
-
targetElement:
|
|
215
|
+
targetElement: t.targetElement
|
|
225
216
|
};
|
|
226
217
|
});
|
|
227
|
-
return
|
|
218
|
+
return e({
|
|
228
219
|
onOutsideDropdownClick: S
|
|
229
|
-
}), { __sfc: !0, slots: s, emit: o, props:
|
|
220
|
+
}), { __sfc: !0, slots: s, emit: o, props: t, selectedValue: a, multiple: l, dropdownOptionsListboxRef: r, t: v, isDropdownOpen: p, noResultsMessage: f, conditionalClasses: _, conditionalListboxClasses: L, actions: g, internalSelectedValue: h, listeners: x, onEscapeKey: w, onOutsideDropdownClick: S, popperContainerOrPopoverComponent: i, popperContainerOrPopoverProps: u, BentoListbox: z };
|
|
230
221
|
}
|
|
231
222
|
});
|
|
232
223
|
var Pe = function() {
|
|
233
|
-
var
|
|
234
|
-
return o(
|
|
235
|
-
return !s.type.indexOf("key") &&
|
|
236
|
-
} } }, [o(
|
|
224
|
+
var e = this, o = e._self._c, t = e._self._setupProxy;
|
|
225
|
+
return o(t.popperContainerOrPopoverComponent, e._b({ tag: "component", staticClass: "b-dropdown-options-container", class: t.conditionalClasses }, "component", t.popperContainerOrPopoverProps, !1), [o("div", { on: { keydown: function(s) {
|
|
226
|
+
return !s.type.indexOf("key") && e._k(s.keyCode, "esc", 27, s.key, ["Esc", "Escape"]) ? null : t.onEscapeKey.apply(null, arguments);
|
|
227
|
+
} } }, [o(t.BentoListbox, e._g({ ref: "dropdownOptionsListboxRef", staticClass: "b-dropdown-options-container__listbox", class: t.conditionalListboxClasses, attrs: { id: e.id, "aria-label": e.ariaLabel, "empty-state": e.emptyState, "is-option-disabled": e.isOptionDisabled, items: e.items, "selected-value": t.internalSelectedValue, multiple: t.multiple, "static-categories": e.staticCategories, "no-results-message": t.noResultsMessage, searching: e.searching, loading: e.loading, "lazy-load-type": e.lazyLoadType, "has-more-items": e.hasMoreItems, "virtual-scroll": e.virtualScroll }, scopedSlots: e._u([e._l(t.slots, function(s, a) {
|
|
237
228
|
return { key: a, fn: function(l) {
|
|
238
|
-
return [
|
|
229
|
+
return [e._t(a, null, null, l)];
|
|
239
230
|
} };
|
|
240
|
-
})], null, !0) },
|
|
241
|
-
}, Ke = [], ze = /* @__PURE__ */
|
|
231
|
+
})], null, !0) }, t.listeners))], 1)]);
|
|
232
|
+
}, Ke = [], ze = /* @__PURE__ */ M(
|
|
242
233
|
Fe,
|
|
243
234
|
Pe,
|
|
244
235
|
Ke,
|
|
245
236
|
!1,
|
|
246
237
|
null,
|
|
247
|
-
"
|
|
238
|
+
"11bd9f89",
|
|
248
239
|
null,
|
|
249
240
|
null
|
|
250
241
|
);
|
|
@@ -256,9 +247,9 @@ const Ue = {
|
|
|
256
247
|
}
|
|
257
248
|
};
|
|
258
249
|
var je = function() {
|
|
259
|
-
var
|
|
260
|
-
return o("svg",
|
|
261
|
-
}, qe = [], He = /* @__PURE__ */
|
|
250
|
+
var e = this, o = e._self._c;
|
|
251
|
+
return o("svg", e._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", e.$attrs, !1), [e.$attrs["svg-title"] ? o("title", [e._v(e._s(e.$attrs["svg-title"]))]) : e._e(), o("path", { attrs: { fill: "#00112C", d: "M5.00011 5.43922L8.00011 8.43922L11.0001 5.43922L12.0608 6.49988L8.00011 10.5605L3.93945 6.49988L5.00011 5.43922Z" } })]);
|
|
252
|
+
}, qe = [], He = /* @__PURE__ */ M(
|
|
262
253
|
Ue,
|
|
263
254
|
je,
|
|
264
255
|
qe,
|
|
@@ -276,9 +267,9 @@ const Je = {
|
|
|
276
267
|
}
|
|
277
268
|
};
|
|
278
269
|
var Ye = function() {
|
|
279
|
-
var
|
|
280
|
-
return o("svg",
|
|
281
|
-
}, Ze = [], Ge = /* @__PURE__ */
|
|
270
|
+
var e = this, o = e._self._c;
|
|
271
|
+
return o("svg", e._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", e.$attrs, !1), [e.$attrs["svg-title"] ? o("title", [e._v(e._s(e.$attrs["svg-title"]))]) : e._e(), o("path", { attrs: { fill: "#00112C", d: "M10.9999 10.5608L7.9999 7.56077L4.9999 10.5608L3.93924 9.50011L7.9999 5.43945L12.0606 9.50011L10.9999 10.5608Z" } })]);
|
|
272
|
+
}, Ze = [], Ge = /* @__PURE__ */ M(
|
|
282
273
|
Je,
|
|
283
274
|
Ye,
|
|
284
275
|
Ze,
|
|
@@ -288,10 +279,10 @@ var Ye = function() {
|
|
|
288
279
|
null,
|
|
289
280
|
null
|
|
290
281
|
);
|
|
291
|
-
const Qe = Ge.exports, Xe =
|
|
282
|
+
const Qe = Ge.exports, Xe = D({
|
|
292
283
|
name: "dropdown-small-textbox",
|
|
293
284
|
inheritAttrs: !1
|
|
294
|
-
}), et = /* @__PURE__ */
|
|
285
|
+
}), et = /* @__PURE__ */ D({
|
|
295
286
|
...Xe,
|
|
296
287
|
props: {
|
|
297
288
|
/**
|
|
@@ -352,28 +343,28 @@ const Qe = Ge.exports, Xe = I({
|
|
|
352
343
|
value: { type: String, default: "" }
|
|
353
344
|
},
|
|
354
345
|
emits: ["open", "close"],
|
|
355
|
-
setup(n, { emit:
|
|
356
|
-
const o = n,
|
|
346
|
+
setup(n, { emit: e }) {
|
|
347
|
+
const o = n, t = c(() => ({
|
|
357
348
|
[`b-dropdown-small-textbox--${P.DISABLED}`]: o.disabled,
|
|
358
349
|
[`b-dropdown-small-textbox--${P.READONLY}`]: o.readonly,
|
|
359
350
|
[`b-dropdown-small-textbox--${P.OPENED}`]: o.open
|
|
360
|
-
})), s =
|
|
361
|
-
|
|
351
|
+
})), s = c(() => o.open && !o.disabled && !o.readonly), a = () => {
|
|
352
|
+
e("open");
|
|
362
353
|
}, l = () => {
|
|
363
|
-
|
|
354
|
+
e("close");
|
|
364
355
|
}, r = {
|
|
365
356
|
[ee.OPEN]: a,
|
|
366
357
|
[ee.CLOSE]: l
|
|
367
358
|
};
|
|
368
|
-
return { __sfc: !0, emit:
|
|
359
|
+
return { __sfc: !0, emit: e, props: o, conditionalClasses: t, isDropdownOpen: s, openDropdown: a, closeDropdown: l, listeners: r, DropdownBaseTextbox: Se, ChevronDownSmallIcon: Ve, ChevronUpSmallIcon: Qe };
|
|
369
360
|
}
|
|
370
361
|
});
|
|
371
362
|
var tt = function() {
|
|
372
|
-
var
|
|
373
|
-
return o("div", { staticClass: "b-dropdown-small-textbox", class:
|
|
374
|
-
return [o("div", { staticClass: "b-dropdown-small-textbox__chevron" }, [o(
|
|
375
|
-
}, proxy: !0 }]) }, "dropdown-base-textbox", { ...
|
|
376
|
-
}, ot = [], nt = /* @__PURE__ */
|
|
363
|
+
var e = this, o = e._self._c, t = e._self._setupProxy;
|
|
364
|
+
return o("div", { staticClass: "b-dropdown-small-textbox", class: t.conditionalClasses }, [o(t.DropdownBaseTextbox, e._g(e._b({ staticClass: "b-dropdown-small-textbox__textbox", scopedSlots: e._u([{ key: "icon", fn: function() {
|
|
365
|
+
return [o("div", { staticClass: "b-dropdown-small-textbox__chevron" }, [o(t.ChevronUpSmallIcon, { directives: [{ name: "show", rawName: "v-show", value: t.isDropdownOpen, expression: "isDropdownOpen" }], attrs: { "svg-title": "opened" } }), o(t.ChevronDownSmallIcon, { directives: [{ name: "show", rawName: "v-show", value: !t.isDropdownOpen, expression: "!isDropdownOpen" }], attrs: { "svg-title": "closed" } })], 1)];
|
|
366
|
+
}, proxy: !0 }]) }, "dropdown-base-textbox", { ...e.$attrs, ...e.$props }, !1), t.listeners))], 1);
|
|
367
|
+
}, ot = [], nt = /* @__PURE__ */ M(
|
|
377
368
|
et,
|
|
378
369
|
tt,
|
|
379
370
|
ot,
|
|
@@ -383,116 +374,116 @@ var tt = function() {
|
|
|
383
374
|
null,
|
|
384
375
|
null
|
|
385
376
|
);
|
|
386
|
-
const st = nt.exports, lt = (n,
|
|
387
|
-
if (
|
|
388
|
-
const s =
|
|
377
|
+
const st = nt.exports, lt = (n, e) => e.value.reduce((o, t) => {
|
|
378
|
+
if (t.items) {
|
|
379
|
+
const s = t.items.filter(
|
|
389
380
|
(l) => n.value.find((r) => r.value === l.value)
|
|
390
381
|
);
|
|
391
|
-
s.length ===
|
|
382
|
+
s.length === t.items.length ? o.push(t.label) : s.forEach(({ label: l }) => o.push(l));
|
|
392
383
|
}
|
|
393
|
-
return n.value.find((s) => s.value ===
|
|
394
|
-
}, []).join(", "), at = ({ items: n, placeholder:
|
|
395
|
-
const
|
|
384
|
+
return n.value.find((s) => s.value === t.value) && o.push(t.label), o;
|
|
385
|
+
}, []).join(", "), at = ({ items: n, placeholder: e, selectedValues: o }) => {
|
|
386
|
+
const t = c(() => n.value.find((a) => {
|
|
396
387
|
var l;
|
|
397
388
|
return (l = a.items) == null ? void 0 : l.length;
|
|
398
389
|
}));
|
|
399
|
-
return
|
|
390
|
+
return c(() => o.value.length ? t.value ? lt(o, n) : o.value.map(({ label: a }) => a).join(", ") : e.value || null);
|
|
400
391
|
}, ie = (n) => {
|
|
401
|
-
var
|
|
402
|
-
(
|
|
392
|
+
var e;
|
|
393
|
+
(e = n.value.$children) == null || e[0].$refs.textbox.focus();
|
|
403
394
|
}, it = ({
|
|
404
395
|
inputContainerRef: n,
|
|
405
|
-
optionsContainerRef:
|
|
396
|
+
optionsContainerRef: e,
|
|
406
397
|
selectedValueIndex: o,
|
|
407
|
-
isDropdownOpen:
|
|
398
|
+
isDropdownOpen: t,
|
|
408
399
|
isDynamicFltering: s,
|
|
409
400
|
items: a,
|
|
410
401
|
isMultiple: l
|
|
411
402
|
}, r, v, p) => {
|
|
412
403
|
const f = ({ detail: i }) => {
|
|
413
|
-
i.preventDefault(),
|
|
414
|
-
var
|
|
415
|
-
l ? (
|
|
404
|
+
i.preventDefault(), t.value || (v(), $(() => {
|
|
405
|
+
var u, b;
|
|
406
|
+
l ? (u = e.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || u[0].$el.focus() : (b = e.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || b[o.value].$el.focus();
|
|
416
407
|
}));
|
|
417
408
|
}, _ = ({ detail: i }) => {
|
|
418
|
-
i.preventDefault(),
|
|
419
|
-
var
|
|
420
|
-
(
|
|
409
|
+
i.preventDefault(), t.value || (v(), $(() => {
|
|
410
|
+
var u;
|
|
411
|
+
(u = e.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || u[0].$el.focus();
|
|
421
412
|
}));
|
|
422
|
-
},
|
|
423
|
-
|
|
424
|
-
var i,
|
|
413
|
+
}, L = () => {
|
|
414
|
+
t.value || (v(), $(() => {
|
|
415
|
+
var i, u;
|
|
425
416
|
if (l) {
|
|
426
|
-
const
|
|
427
|
-
(i =
|
|
417
|
+
const b = e.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children;
|
|
418
|
+
(i = e.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || i[b.length - 1].$children[a.length - 1].$el.focus();
|
|
428
419
|
} else
|
|
429
|
-
(
|
|
420
|
+
(u = e.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || u[a.length - 1].$el.focus();
|
|
430
421
|
}));
|
|
431
422
|
}, g = () => {
|
|
432
|
-
|
|
423
|
+
t.value && (p(), ie(n));
|
|
433
424
|
}, h = () => {
|
|
434
|
-
|
|
425
|
+
t.value || v(), $(() => {
|
|
435
426
|
var i;
|
|
436
|
-
(i =
|
|
427
|
+
(i = e.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || i[0].$el.focus();
|
|
437
428
|
});
|
|
438
429
|
}, x = ({ detail: i }) => {
|
|
439
|
-
i.preventDefault(), r(),
|
|
440
|
-
var
|
|
441
|
-
l ? (
|
|
430
|
+
i.preventDefault(), r(), t.value && $(() => {
|
|
431
|
+
var u, b;
|
|
432
|
+
l ? (u = e.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || u[0].$el.focus() : (b = e.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || b[o.value].$el.focus();
|
|
442
433
|
});
|
|
443
434
|
}, w = () => {
|
|
444
|
-
r(),
|
|
445
|
-
var i,
|
|
446
|
-
l ? (i =
|
|
435
|
+
r(), t.value && $(() => {
|
|
436
|
+
var i, u;
|
|
437
|
+
l ? (i = e.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || i[0].$el.focus() : (u = e.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || u[o.value].$el.focus();
|
|
447
438
|
});
|
|
448
439
|
};
|
|
449
|
-
return
|
|
450
|
-
...s.value ? {} : { [
|
|
451
|
-
[
|
|
452
|
-
[
|
|
453
|
-
[
|
|
454
|
-
[
|
|
455
|
-
[
|
|
456
|
-
[
|
|
440
|
+
return c(() => ({
|
|
441
|
+
...s.value ? {} : { [C.SPACE]: x },
|
|
442
|
+
[C.ENTER]: w,
|
|
443
|
+
[C.ARROW_DOWN]: f,
|
|
444
|
+
[C.ARROW_UP]: _,
|
|
445
|
+
[C.END]: L,
|
|
446
|
+
[C.ESCAPE]: g,
|
|
447
|
+
[C.HOME]: h
|
|
457
448
|
}));
|
|
458
|
-
}, rt = ({ inputContainerRef: n, isDropdownOpen:
|
|
459
|
-
const
|
|
460
|
-
|
|
449
|
+
}, rt = ({ inputContainerRef: n, isDropdownOpen: e }, o) => {
|
|
450
|
+
const t = () => {
|
|
451
|
+
e.value && o(), $(() => {
|
|
461
452
|
ie(n);
|
|
462
453
|
});
|
|
463
454
|
};
|
|
464
455
|
return {
|
|
465
|
-
[d.ENTER]:
|
|
466
|
-
[d.ESCAPE]:
|
|
467
|
-
[d.TAB]:
|
|
468
|
-
[d.SPACE]:
|
|
456
|
+
[d.ENTER]: t,
|
|
457
|
+
[d.ESCAPE]: t,
|
|
458
|
+
[d.TAB]: t,
|
|
459
|
+
[d.SPACE]: t
|
|
469
460
|
};
|
|
470
461
|
};
|
|
471
|
-
function dt(n,
|
|
472
|
-
const
|
|
473
|
-
return se(
|
|
474
|
-
o !== void 0 && o(
|
|
475
|
-
}),
|
|
476
|
-
if (!
|
|
462
|
+
function dt(n, e, o) {
|
|
463
|
+
const t = y(n), s = y(e), a = (r, v = []) => v.flatMap((p) => p.label.toLocaleLowerCase().includes(r) ? [p, ...a(r, p.items)] : p.items ? [...a(r, p.items)] : []);
|
|
464
|
+
return se(t, () => {
|
|
465
|
+
o !== void 0 && o(t.value);
|
|
466
|
+
}), c(() => {
|
|
467
|
+
if (!t.value || o !== void 0)
|
|
477
468
|
return s.value;
|
|
478
|
-
const r =
|
|
469
|
+
const r = t.value.toLocaleLowerCase();
|
|
479
470
|
return a(r, s.value);
|
|
480
471
|
});
|
|
481
472
|
}
|
|
482
|
-
const
|
|
473
|
+
const ct = {
|
|
483
474
|
"en-US": {
|
|
484
475
|
all: "All",
|
|
485
476
|
clearSearch: "Clear filter",
|
|
486
477
|
ariaLabelFallback: "Dropdown"
|
|
487
478
|
}
|
|
488
|
-
},
|
|
489
|
-
i18n: { messages:
|
|
479
|
+
}, ut = Symbol("input field component injection key"), pt = D({
|
|
480
|
+
i18n: { messages: ct },
|
|
490
481
|
name: "b-dropdown",
|
|
491
482
|
components: {
|
|
492
483
|
DropdownInputDefault: Le,
|
|
493
484
|
DropdownInputSmall: st
|
|
494
485
|
}
|
|
495
|
-
}), ft = /* @__PURE__ */
|
|
486
|
+
}), ft = /* @__PURE__ */ D({
|
|
496
487
|
...pt,
|
|
497
488
|
props: {
|
|
498
489
|
/**
|
|
@@ -621,7 +612,7 @@ const ut = {
|
|
|
621
612
|
size: {
|
|
622
613
|
type: String,
|
|
623
614
|
default: null,
|
|
624
|
-
validator: (n) => Object.values(
|
|
615
|
+
validator: (n) => Object.values(A).includes(n)
|
|
625
616
|
},
|
|
626
617
|
/**
|
|
627
618
|
* If enabled, dropdown will display non-selectable, static categories
|
|
@@ -650,82 +641,82 @@ const ut = {
|
|
|
650
641
|
}
|
|
651
642
|
},
|
|
652
643
|
emits: ["input", "show-more"],
|
|
653
|
-
setup(n, { emit:
|
|
644
|
+
setup(n, { emit: e }) {
|
|
654
645
|
var Q;
|
|
655
|
-
const o = n,
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
),
|
|
660
|
-
ariaLabel:
|
|
646
|
+
const o = n, t = xe(), s = le(), a = Ee(s), { t: l } = W(), r = y(null), v = y(null), p = y(null), f = y(!1), _ = T("bento-dropdown-options-container"), L = T("dropdown-label"), g = T("dropdown-description"), h = T("dropdown-error"), { isReadOnly: x } = $e(O(o, "readonly")), { cachedSelectedListboxOptions: w, cachedListboxSelectedValues: S, setCachedValues: i } = De(
|
|
647
|
+
O(o, "items"),
|
|
648
|
+
O(o, "value"),
|
|
649
|
+
O(o, "multiple")
|
|
650
|
+
), u = y(t["aria-label"]), { ariaLabel: b } = ae(o), N = Ce({
|
|
651
|
+
ariaLabel: u.value,
|
|
661
652
|
// TODO: take this line away when the aria-label props is removed
|
|
662
|
-
label:
|
|
653
|
+
label: b,
|
|
663
654
|
defaultFallback: l("ariaLabelFallback")
|
|
664
|
-
}), U = o.size ===
|
|
655
|
+
}), U = o.size === A.SMALL || he(ut, !1), re = c(() => U ? A.SMALL : A.DEFAULT), de = c(() => ({
|
|
665
656
|
"b-dropdown--condensed": o.condensed
|
|
666
|
-
})),
|
|
657
|
+
})), ce = c(() => ({
|
|
667
658
|
"b-dropdown__description--error": !!o.errorMessage
|
|
668
|
-
})),
|
|
669
|
-
items:
|
|
670
|
-
placeholder:
|
|
659
|
+
})), E = y(""), I = O(o, "items"), ue = dt(E, I, (Q = o == null ? void 0 : o.search) == null ? void 0 : Q.searchEvent), F = c(() => o.dynamicFiltering && !!E.value), pe = at({
|
|
660
|
+
items: I,
|
|
661
|
+
placeholder: O(o, "placeholder"),
|
|
671
662
|
selectedValues: w
|
|
672
|
-
}), fe =
|
|
663
|
+
}), fe = c(() => {
|
|
673
664
|
if (o != null && o.multiple && Array.isArray(o.value))
|
|
674
665
|
return o.items.filter(
|
|
675
|
-
({ value:
|
|
666
|
+
({ value: m }) => (o == null ? void 0 : o.value) && (o == null ? void 0 : o.value).includes(m)
|
|
676
667
|
);
|
|
677
668
|
if (!o.multiple && o.staticCategories) {
|
|
678
|
-
const
|
|
679
|
-
(
|
|
669
|
+
const m = o.items.find(
|
|
670
|
+
(R) => R.items.some((ge) => ge.value === o.value)
|
|
680
671
|
);
|
|
681
|
-
return
|
|
672
|
+
return m ? m.items.find((R) => R.value === o.value) : null;
|
|
682
673
|
}
|
|
683
|
-
return o.items.find(({ value:
|
|
684
|
-
}), j =
|
|
685
|
-
const
|
|
686
|
-
return
|
|
687
|
-
}), { isMultiLevelSelect: q, flattenedItemsList: H } = Ie(
|
|
688
|
-
var
|
|
689
|
-
if (o.multiple
|
|
690
|
-
const
|
|
691
|
-
return
|
|
674
|
+
return o.items.find(({ value: m }) => m === (o == null ? void 0 : o.value));
|
|
675
|
+
}), j = c(() => {
|
|
676
|
+
const m = o.items.findIndex(({ value: B }) => o.value === B);
|
|
677
|
+
return m > 0 ? m : 0;
|
|
678
|
+
}), { isMultiLevelSelect: q, flattenedItemsList: H } = Ie(I), ve = c(() => {
|
|
679
|
+
var m;
|
|
680
|
+
if (o.multiple) {
|
|
681
|
+
const B = (m = o == null ? void 0 : o.value) == null ? void 0 : m.length, R = q.value ? H.value.length : I.value.length;
|
|
682
|
+
return !o.hasMoreItems && R === B ? l("all") : B;
|
|
692
683
|
}
|
|
693
684
|
return null;
|
|
694
|
-
}),
|
|
685
|
+
}), me = c(
|
|
695
686
|
() => `${o.description ? g : ""} ${o.errorMessage ? h : ""}`.trim() || null
|
|
696
687
|
), V = () => {
|
|
697
688
|
x.value || (f.value = !0);
|
|
698
|
-
},
|
|
689
|
+
}, k = () => {
|
|
699
690
|
f.value = !1;
|
|
700
691
|
}, J = () => {
|
|
701
|
-
x.value || (f.value = !f.value, F.value && (
|
|
702
|
-
},
|
|
703
|
-
F.value && (
|
|
704
|
-
}, Y = (
|
|
705
|
-
o.multiple || (
|
|
692
|
+
x.value || (f.value = !f.value, F.value && (E.value = ""));
|
|
693
|
+
}, be = () => {
|
|
694
|
+
F.value && (E.value = ""), f.value && (f.value = !1, p.value.onOutsideDropdownClick());
|
|
695
|
+
}, Y = (m) => {
|
|
696
|
+
o.multiple || (E.value = "", f.value = !1), i(m), e("input", S.value);
|
|
706
697
|
}, Z = () => {
|
|
707
|
-
|
|
698
|
+
e(d.SHOW_MORE);
|
|
708
699
|
}, _e = it(
|
|
709
700
|
{
|
|
710
701
|
inputContainerRef: r,
|
|
711
702
|
optionsContainerRef: p,
|
|
712
703
|
selectedValueIndex: j,
|
|
713
704
|
isDropdownOpen: f,
|
|
714
|
-
isDynamicFltering:
|
|
705
|
+
isDynamicFltering: O(o, "dynamicFiltering"),
|
|
715
706
|
items: o.items,
|
|
716
707
|
isMultiple: o.multiple
|
|
717
708
|
},
|
|
718
709
|
J,
|
|
719
710
|
V,
|
|
720
|
-
|
|
711
|
+
k
|
|
721
712
|
), G = rt(
|
|
722
713
|
{
|
|
723
714
|
inputContainerRef: r,
|
|
724
715
|
isDropdownOpen: f
|
|
725
716
|
},
|
|
726
|
-
|
|
717
|
+
k
|
|
727
718
|
), ye = {
|
|
728
|
-
[d.CLOSE_DROPDOWN]:
|
|
719
|
+
[d.CLOSE_DROPDOWN]: k,
|
|
729
720
|
[d.SELECT]: Y,
|
|
730
721
|
[d.SHOW_MORE]: Z,
|
|
731
722
|
...G
|
|
@@ -736,40 +727,40 @@ const ut = {
|
|
|
736
727
|
Having the field as "undefined" will hide/remove the error.
|
|
737
728
|
<bento-dropdown errorMessage="Error message text" />`,
|
|
738
729
|
"2.0.0"
|
|
739
|
-
), o.size && X('BentoDropdown "size" property', "Do not use. Only 'default' size should be used.", "2.0.0"), { __sfc: !0, attrs:
|
|
730
|
+
), o.size && X('BentoDropdown "size" property', "Do not use. Only 'default' size should be used.", "2.0.0"), { __sfc: !0, attrs: t, slots: s, hasSlot: a, props: o, emit: e, t: l, inputContainerRef: r, inputContainerRefWrapper: v, optionsContainerRef: p, isDropdownOpen: f, dropdownOptionsContainerId: _, labelId: L, descriptionId: g, errorId: h, isReadOnly: x, cachedSelectedListboxOptions: w, cachedListboxSelectedValues: S, setCachedValues: i, ariaLabelAttribute: u, ariaLabel: b, computedAriaLabel: N, isInputComponent: U, size: re, conditionalClasses: de, descriptionConditionalClasses: ce, searchTerm: E, items: I, filteredItems: ue, isSearching: F, displayValue: pe, selectedValueItem: fe, selectedValueIndex: j, isMultiLevelSelect: q, flattenedItemsList: H, additionalItemsSelected: ve, ariaDescribedBy: me, openDropdown: V, closeDropdown: k, toggleDropdown: J, clickOutsideDropdown: be, onOptionSelected: Y, emitShowMoreEvent: Z, textboxKeyboardNavigationListeners: _e, listboxKeyboardNavigationListeners: G, listboxListeners: ye, BentoDropdownOptionsContainer: We, BentoTypography: we, ErrorMessage: Te, FieldLabel: Ae, vBentoClickOutsideDirective: Oe, vBentoKeyboardNavigationDirective: Be };
|
|
740
731
|
}
|
|
741
732
|
});
|
|
742
733
|
var vt = function() {
|
|
743
734
|
var s;
|
|
744
|
-
var
|
|
745
|
-
return o("div", { directives: [{ name: "bento-click-outside-directive", rawName: "v-bento-click-outside-directive", value:
|
|
746
|
-
|
|
747
|
-
}, open:
|
|
735
|
+
var e = this, o = e._self._c, t = e._self._setupProxy;
|
|
736
|
+
return o("div", { directives: [{ name: "bento-click-outside-directive", rawName: "v-bento-click-outside-directive", value: t.clickOutsideDropdown, expression: "clickOutsideDropdown" }], staticClass: "b-dropdown", class: t.conditionalClasses }, [e.label ? o(t.FieldLabel, { attrs: { id: t.labelId, condensed: e.condensed, label: e.label, "tooltip-text": e.tooltipText, optional: e.optional, required: e.required } }) : e._e(), o("div", e._g({ directives: [{ name: "bento-keyboard-navigation-directive", rawName: "v-bento-keyboard-navigation-directive" }], ref: "inputContainerRefWrapper" }, t.textboxKeyboardNavigationListeners), [o(t.size, { ref: "inputContainerRef", tag: "component", attrs: { condensed: e.condensed, value: t.searchTerm, "additional-items-selected": t.additionalItemsSelected, ariaControls: t.dropdownOptionsContainerId, ariaExpanded: t.isDropdownOpen, "aria-labelledby": e.label ? t.labelId : null, "aria-describedby": t.ariaDescribedBy, "aria-label": t.computedAriaLabel, "aria-readonly": t.isReadOnly, readonly: t.isReadOnly, disabled: e.disabled, "display-value": t.displayValue, "dynamic-filtering": e.dynamicFiltering, "is-invalid": !!e.errorMessage || e.error, multiple: e.multiple, open: t.isDropdownOpen, "selected-value-item": t.isInputComponent ? void 0 : t.selectedValueItem, "show-slot-content-in-multiple": e.showSlotContentInMultiple }, on: { input: function(a) {
|
|
737
|
+
t.searchTerm = a;
|
|
738
|
+
}, open: t.toggleDropdown, close: t.toggleDropdown }, scopedSlots: e._u([e._l(t.slots, function(a, l) {
|
|
748
739
|
return { key: l, fn: function(r) {
|
|
749
|
-
return [
|
|
740
|
+
return [e._t(l, null, null, r)];
|
|
750
741
|
} };
|
|
751
|
-
})], null, !0) })], 1),
|
|
742
|
+
})], null, !0) })], 1), t.inputContainerRef ? o(t.BentoDropdownOptionsContainer, e._g({ ref: "optionsContainerRef", attrs: { id: t.dropdownOptionsContainerId, "aria-label": t.computedAriaLabel, "empty-state": e.emptyState, "debounce-time": (s = e.search) == null ? void 0 : s.debounceTime, disabled: e.disabled, "is-option-disabled": e.isOptionDisabled, items: t.filteredItems, multiple: e.multiple, "static-categories": e.staticCategories, open: t.isDropdownOpen, "selected-value": t.cachedSelectedListboxOptions, searching: t.isSearching, "target-element": t.inputContainerRefWrapper, loading: e.loading, "has-more-items": e.hasMoreItems, "lazy-load-type": e.lazyLoadType, "virtual-scroll": e.virtualScroll }, scopedSlots: e._u([e._l(t.slots, function(a, l) {
|
|
752
743
|
return { key: l, fn: function(r) {
|
|
753
|
-
return [
|
|
744
|
+
return [e._t(l, null, null, r)];
|
|
754
745
|
} };
|
|
755
|
-
})], null, !0) },
|
|
756
|
-
return [
|
|
757
|
-
})], 2) :
|
|
758
|
-
},
|
|
746
|
+
})], null, !0) }, t.listboxListeners)) : e._e(), e.errorMessage ? o(t.ErrorMessage, { staticClass: "b-dropdown__error-message", attrs: { id: t.errorId, "error-message": e.errorMessage } }) : e._e(), e.description || t.hasSlot("description") ? o(t.BentoTypography, { staticClass: "b-dropdown__description", class: t.descriptionConditionalClasses, attrs: { id: t.descriptionId, el: "span" } }, [e._t("description", function() {
|
|
747
|
+
return [e._v(" " + e._s(e.description) + " ")];
|
|
748
|
+
})], 2) : e._e()], 1);
|
|
749
|
+
}, mt = [], bt = /* @__PURE__ */ M(
|
|
759
750
|
ft,
|
|
760
751
|
vt,
|
|
761
|
-
|
|
752
|
+
mt,
|
|
762
753
|
!1,
|
|
763
754
|
null,
|
|
764
|
-
"
|
|
755
|
+
"76bdca10",
|
|
765
756
|
null,
|
|
766
757
|
null
|
|
767
758
|
);
|
|
768
|
-
const Bt =
|
|
759
|
+
const Bt = bt.exports;
|
|
769
760
|
export {
|
|
770
761
|
Bt as B,
|
|
771
|
-
|
|
772
|
-
|
|
762
|
+
ut as I,
|
|
763
|
+
A as a,
|
|
773
764
|
dt as u
|
|
774
765
|
};
|
|
775
|
-
//# sourceMappingURL=dropdown.
|
|
766
|
+
//# sourceMappingURL=dropdown.a8037bca.js.map
|