@adyen/bento-vue3 1.8.0 → 1.9.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/composables/useKeyboardNavigator/useKeyboardNavigator.d.ts +6 -2
- package/dist/@types/packages/vue2/src/components/data-grid/composables/useScroller/useScroller.d.ts +6 -0
- package/dist/@types/packages/vue2/src/components/data-grid/data-grid.vue.d.ts +23 -422
- package/dist/@types/packages/vue2/src/components/divider/divider.vue.d.ts +1 -5
- package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-default-textbox/dropdown-default-textbox.vue.d.ts +10 -0
- package/dist/@types/packages/vue2/src/components/dropdown/dropdown.vue.d.ts +12 -0
- package/dist/@types/packages/vue2/src/components/filter-bar/components/base-filter/base-filter.vue.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/input-field/input-field.types.d.ts +1 -3
- package/dist/@types/packages/vue2/src/components/internal/field-label/field-label.vue.d.ts +9 -0
- package/dist/accordion.js +2 -2
- package/dist/action-bar.js +4 -4
- package/dist/alert.js +58 -59
- package/dist/alert.js.map +1 -1
- package/dist/assets/base-modal.css +1 -1
- package/dist/assets/checkbox.css +1 -1
- package/dist/assets/copy.css +1 -1
- package/dist/assets/cross.css +1 -1
- package/dist/assets/dropdown-default-textbox.css +1 -1
- package/dist/assets/dropdown.css +1 -1
- package/dist/assets/field-label.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/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/index5.css +1 -1
- package/dist/assets/index6.css +1 -1
- package/dist/assets/index7.css +1 -1
- package/dist/assets/index8.css +1 -1
- package/dist/assets/index9.css +1 -1
- package/dist/assets/listbox.css +1 -1
- package/dist/avatar-image.js +1 -1
- package/dist/button.js +3 -3
- package/dist/card.js +2 -2
- package/dist/checkbox.js +5 -5
- package/dist/chunks/arrow-left.81a91b8f.js +29 -0
- package/dist/chunks/arrow-left.81a91b8f.js.map +1 -0
- package/dist/chunks/{base-modal.3dcf8376.js → base-modal.a629cb32.js} +3 -3
- package/dist/chunks/{base-modal.3dcf8376.js.map → base-modal.a629cb32.js.map} +1 -1
- package/dist/chunks/{button-actions-with-menu.3f52ea2d.js → button-actions-with-menu.f6dfb14d.js} +3 -3
- package/dist/chunks/{button-actions-with-menu.3f52ea2d.js.map → button-actions-with-menu.f6dfb14d.js.map} +1 -1
- package/dist/chunks/{calendar.d4ab387d.js → calendar.fa7712e8.js} +2 -2
- package/dist/chunks/{calendar.d4ab387d.js.map → calendar.fa7712e8.js.map} +1 -1
- package/dist/chunks/{checkbox.03c4b0fe.js → checkbox.731dc0ab.js} +71 -72
- package/dist/chunks/checkbox.731dc0ab.js.map +1 -0
- package/dist/chunks/checkmark-circle-fill.c45a999d.js +44 -0
- package/dist/chunks/checkmark-circle-fill.c45a999d.js.map +1 -0
- package/dist/chunks/checkmark-small.c79220d9.js +29 -0
- package/dist/chunks/checkmark-small.c79220d9.js.map +1 -0
- package/dist/chunks/checkmark.eb3c7a06.js +29 -0
- package/dist/chunks/checkmark.eb3c7a06.js.map +1 -0
- package/dist/chunks/chevron-left.4ee92950.js +52 -0
- package/dist/chunks/chevron-left.4ee92950.js.map +1 -0
- package/dist/chunks/chevron-up.46afb34c.js +52 -0
- package/dist/chunks/chevron-up.46afb34c.js.map +1 -0
- package/dist/chunks/{controls-group.807b5fb0.js → controls-group.d6543674.js} +2 -2
- package/dist/chunks/{controls-group.807b5fb0.js.map → controls-group.d6543674.js.map} +1 -1
- package/dist/chunks/{copy.28bd4298.js → copy.330d594e.js} +36 -37
- package/dist/chunks/copy.330d594e.js.map +1 -0
- package/dist/chunks/cross-circle-fill.1abec1a2.js +44 -0
- package/dist/chunks/cross-circle-fill.1abec1a2.js.map +1 -0
- package/dist/chunks/cross.26509efc.js +29 -0
- package/dist/chunks/cross.26509efc.js.map +1 -0
- package/dist/chunks/{dropdown-default-textbox.74c4584a.js → dropdown-default-textbox.4108b289.js} +63 -58
- package/dist/chunks/{dropdown-default-textbox.74c4584a.js.map → dropdown-default-textbox.4108b289.js.map} +1 -1
- package/dist/chunks/{dropdown.502e1f5c.js → dropdown.63de9aac.js} +209 -201
- package/dist/chunks/dropdown.63de9aac.js.map +1 -0
- package/dist/chunks/field-label.3c19a29a.js +146 -0
- package/dist/chunks/field-label.3c19a29a.js.map +1 -0
- package/dist/chunks/{fixed-scroller.92bb77a6.js → fixed-scroller.bced60dd.js} +2 -2
- package/dist/chunks/{fixed-scroller.92bb77a6.js.map → fixed-scroller.bced60dd.js.map} +1 -1
- package/dist/chunks/{index.cf0d3be3.js → index.4d2a13e1.js} +2 -2
- package/dist/chunks/{index.cf0d3be3.js.map → index.4d2a13e1.js.map} +1 -1
- package/dist/chunks/{index.d2542c6a.js → index.73ed22a7.js} +145 -150
- package/dist/chunks/index.73ed22a7.js.map +1 -0
- package/dist/chunks/{index.7262642e.js → index.85832db5.js} +3 -3
- package/dist/chunks/{index.7262642e.js.map → index.85832db5.js.map} +1 -1
- package/dist/chunks/{index.abb2a1d5.js → index.89dfe209.js} +2 -2
- package/dist/chunks/{index.abb2a1d5.js.map → index.89dfe209.js.map} +1 -1
- package/dist/chunks/{index.726e2f3c.js → index.98174339.js} +4 -4
- package/dist/chunks/{index.726e2f3c.js.map → index.98174339.js.map} +1 -1
- package/dist/chunks/{index.e9156fe3.js → index.c6fecf1c.js} +7 -7
- package/dist/chunks/{index.e9156fe3.js.map → index.c6fecf1c.js.map} +1 -1
- package/dist/chunks/{index.b043371e.js → index.edcaf766.js} +5 -5
- package/dist/chunks/{index.b043371e.js.map → index.edcaf766.js.map} +1 -1
- package/dist/chunks/info-filled.e591599f.js +67 -0
- package/dist/chunks/info-filled.e591599f.js.map +1 -0
- package/dist/chunks/{listbox-option-tag.5b00c85f.js → listbox-option-tag.b1eb32bd.js} +2 -2
- package/dist/chunks/{listbox-option-tag.5b00c85f.js.map → listbox-option-tag.b1eb32bd.js.map} +1 -1
- package/dist/chunks/{listbox.d07c24e6.js → listbox.ac43f8ab.js} +39 -36
- package/dist/chunks/{listbox.d07c24e6.js.map → listbox.ac43f8ab.js.map} +1 -1
- package/dist/chunks/{loading-button.ad7cfaee.js → loading-button.4b88e24d.js} +3 -3
- package/dist/chunks/{loading-button.ad7cfaee.js.map → loading-button.4b88e24d.js.map} +1 -1
- package/dist/chunks/refresh.bd60f6a8.js +29 -0
- package/dist/chunks/refresh.bd60f6a8.js.map +1 -0
- package/dist/chunks/search.ade93bda.js +44 -0
- package/dist/chunks/search.ade93bda.js.map +1 -0
- package/dist/chunks/{tooltip.054d2eb6.js → tooltip.27c32d36.js} +2 -2
- package/dist/chunks/{tooltip.054d2eb6.js.map → tooltip.27c32d36.js.map} +1 -1
- package/dist/code-snippet.js +425 -428
- package/dist/code-snippet.js.map +1 -1
- package/dist/country.js +1 -1
- package/dist/data-grid.js +1080 -1140
- package/dist/data-grid.js.map +1 -1
- package/dist/date-picker.js +6 -6
- package/dist/date-range-picker.js +2 -2
- package/dist/divider.js +9 -26
- package/dist/divider.js.map +1 -1
- package/dist/dropdown.js +3 -3
- package/dist/empty-state.js +1 -1
- package/dist/filter-bar.js +1035 -836
- package/dist/filter-bar.js.map +1 -1
- package/dist/focus-trap.js +1 -1
- package/dist/form-layout.js +1 -1
- package/dist/header.js +2 -2
- package/dist/index.js +12 -12
- package/dist/info-icon.js +38 -39
- package/dist/info-icon.js.map +1 -1
- package/dist/input-field.js +105 -107
- package/dist/input-field.js.map +1 -1
- package/dist/internal.js +7 -7
- package/dist/link.js +1 -1
- package/dist/loading-indicator.js +1 -1
- package/dist/menu.js +1 -1
- package/dist/modal.js +1 -1
- package/dist/pagination.js +149 -157
- package/dist/pagination.js.map +1 -1
- package/dist/payment-method.js +2 -2
- package/dist/payment-method.js.map +1 -1
- package/dist/popover.js +1 -1
- package/dist/popper-container.js +1 -1
- package/dist/radio-group.js +3 -3
- package/dist/search-bar.js +4 -4
- package/dist/segmented-control.js +3 -3
- package/dist/sidepanel.js +4 -4
- package/dist/status.js +1 -1
- package/dist/stepper.js +78 -79
- package/dist/stepper.js.map +1 -1
- package/dist/structured-list.js +1 -1
- package/dist/summary-grid.js +2 -2
- package/dist/tabs.js +2 -2
- package/dist/tag.js +2 -2
- package/dist/textarea.js +46 -47
- package/dist/textarea.js.map +1 -1
- package/dist/timeline.js +92 -93
- package/dist/timeline.js.map +1 -1
- package/dist/toast.js +2 -2
- package/dist/toggle.js +2 -2
- package/dist/tutorial.js +86 -87
- package/dist/tutorial.js.map +1 -1
- package/dist/web-types.json +1 -1
- package/package.json +4 -4
- package/dist/assets/arrow-left.css +0 -1
- package/dist/assets/checkmark-circle-fill.css +0 -1
- package/dist/assets/checkmark-small.css +0 -1
- package/dist/assets/checkmark.css +0 -1
- package/dist/assets/chevron-left.css +0 -1
- package/dist/assets/chevron-up.css +0 -1
- package/dist/assets/cross-circle-fill.css +0 -1
- package/dist/assets/info-filled.css +0 -1
- package/dist/assets/refresh.css +0 -1
- package/dist/assets/search.css +0 -1
- package/dist/chunks/arrow-left.cdbcc128.js +0 -30
- package/dist/chunks/arrow-left.cdbcc128.js.map +0 -1
- package/dist/chunks/checkbox.03c4b0fe.js.map +0 -1
- package/dist/chunks/checkmark-circle-fill.e6b84561.js +0 -45
- package/dist/chunks/checkmark-circle-fill.e6b84561.js.map +0 -1
- package/dist/chunks/checkmark-small.3e93a119.js +0 -30
- package/dist/chunks/checkmark-small.3e93a119.js.map +0 -1
- package/dist/chunks/checkmark.83e4f1e0.js +0 -30
- package/dist/chunks/checkmark.83e4f1e0.js.map +0 -1
- package/dist/chunks/chevron-left.2fd6b083.js +0 -54
- package/dist/chunks/chevron-left.2fd6b083.js.map +0 -1
- package/dist/chunks/chevron-up.9bf21068.js +0 -54
- package/dist/chunks/chevron-up.9bf21068.js.map +0 -1
- package/dist/chunks/copy.28bd4298.js.map +0 -1
- package/dist/chunks/cross-circle-fill.0feb37b3.js +0 -45
- package/dist/chunks/cross-circle-fill.0feb37b3.js.map +0 -1
- package/dist/chunks/cross.5c36a670.js +0 -30
- package/dist/chunks/cross.5c36a670.js.map +0 -1
- package/dist/chunks/dropdown.502e1f5c.js.map +0 -1
- package/dist/chunks/field-label.61679178.js +0 -132
- package/dist/chunks/field-label.61679178.js.map +0 -1
- package/dist/chunks/index.d2542c6a.js.map +0 -1
- package/dist/chunks/info-filled.514a2db6.js +0 -69
- package/dist/chunks/info-filled.514a2db6.js.map +0 -1
- package/dist/chunks/refresh.c38c9eee.js +0 -30
- package/dist/chunks/refresh.c38c9eee.js.map +0 -1
- package/dist/chunks/search.d18f9657.js +0 -45
- package/dist/chunks/search.d18f9657.js.map +0 -1
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import { B as
|
|
1
|
+
import { ref as L, watch as be, computed as u, defineComponent as oe, toRefs as ve, resolveComponent as E, openBlock as y, createBlock as A, resolveDynamicComponent as ye, mergeProps as B, withCtx as M, createElementVNode as x, withKeys as Te, createVNode as F, toHandlers as z, createSlots as V, renderList as J, renderSlot as Z, normalizeProps as Y, guardReactiveProps as G, createElementBlock as R, toDisplayString as ne, createCommentVNode as N, normalizeClass as Q, withDirectives as W, vShow as de, nextTick as _, toRef as I, resolveDirective as ue, createTextVNode as Ae } from "vue";
|
|
2
|
+
import { B as Ne, d as Me } from "./index.75f3672e.js";
|
|
3
3
|
import { g as K } from "./unique-id.a2a2b458.js";
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { B as
|
|
8
|
-
import { a as s, B as
|
|
9
|
-
import { B as
|
|
10
|
-
import { a as H } from "./index.
|
|
11
|
-
import { a as
|
|
4
|
+
import { u as Pe } from "./aria-label.ac9651a5.js";
|
|
5
|
+
import { u as le } from "./i18n.6c402773.js";
|
|
6
|
+
import { u as Ke } from "./use-form-layout-loading.d03e5d48.js";
|
|
7
|
+
import { B as C, a as ke } from "./keyboard-navigation.ca47dfa8.js";
|
|
8
|
+
import { a as s, B as X, b as ee } from "./listbox.ac43f8ab.js";
|
|
9
|
+
import { B as Fe } from "./directive.0408e565.js";
|
|
10
|
+
import { a as H } from "./index.85832db5.js";
|
|
11
|
+
import { a as ce } from "./index.98174339.js";
|
|
12
12
|
import { _ as k } from "./_plugin-vue_export-helper.dad06003.js";
|
|
13
|
-
import { D as
|
|
14
|
-
import { E as
|
|
13
|
+
import { D as ze, a as T, b as q, c as We } from "./dropdown-default-textbox.4108b289.js";
|
|
14
|
+
import { E as xe, F as Ue } from "./field-label.3c19a29a.js";
|
|
15
15
|
import "../assets/dropdown.css";
|
|
16
16
|
var D = /* @__PURE__ */ ((e) => (e.DEFAULT = "DropdownInputDefault", e.SMALL = "DropdownInputSmall", e))(D || {});
|
|
17
|
-
const
|
|
17
|
+
const te = {
|
|
18
18
|
"en-US": {
|
|
19
19
|
apply: "Apply",
|
|
20
20
|
cancel: "Cancel",
|
|
21
21
|
noOptionsMatchThisSearch: "No options match this search"
|
|
22
22
|
}
|
|
23
|
-
},
|
|
24
|
-
const t =
|
|
25
|
-
|
|
23
|
+
}, je = (e, o, n) => {
|
|
24
|
+
const t = L(e.value), { t: a } = le({ messages: te });
|
|
25
|
+
be(e, () => {
|
|
26
26
|
t.value = e.value;
|
|
27
27
|
});
|
|
28
|
-
const i =
|
|
28
|
+
const i = u(
|
|
29
29
|
() => JSON.stringify(t.value) === JSON.stringify(e.value)
|
|
30
30
|
), d = () => {
|
|
31
31
|
n(s.SELECT, t.value), n(s.CLOSE_DROPDOWN);
|
|
32
32
|
}, r = () => {
|
|
33
33
|
t.value = e.value, n(s.CLOSE_DROPDOWN);
|
|
34
|
-
}, l =
|
|
34
|
+
}, l = u(() => [
|
|
35
35
|
{
|
|
36
36
|
title: a("apply"),
|
|
37
37
|
event: d,
|
|
@@ -41,20 +41,20 @@ const ee = {
|
|
|
41
41
|
title: a("cancel"),
|
|
42
42
|
event: r
|
|
43
43
|
}
|
|
44
|
-
]),
|
|
44
|
+
]), f = (m) => {
|
|
45
45
|
t.value = m, o.value || n(s.SELECT, m);
|
|
46
46
|
}, O = (m) => {
|
|
47
|
-
|
|
47
|
+
f(m), n(s.TAB);
|
|
48
48
|
}, g = (m) => {
|
|
49
|
-
|
|
49
|
+
f(m), n(s.ENTER);
|
|
50
50
|
}, h = (m) => {
|
|
51
|
-
|
|
51
|
+
f(m), n(s.SPACE);
|
|
52
52
|
}, b = () => {
|
|
53
53
|
r(), n(s.ESCAPE);
|
|
54
54
|
}, v = () => {
|
|
55
55
|
n(s.SHOW_MORE);
|
|
56
56
|
}, w = {
|
|
57
|
-
[s.SELECT]:
|
|
57
|
+
[s.SELECT]: f,
|
|
58
58
|
[s.SHOW_MORE]: v,
|
|
59
59
|
[s.TAB]: O,
|
|
60
60
|
[s.SPACE]: h,
|
|
@@ -68,13 +68,13 @@ const ee = {
|
|
|
68
68
|
listeners: w,
|
|
69
69
|
onEscapeKey: b
|
|
70
70
|
};
|
|
71
|
-
},
|
|
72
|
-
i18n: { messages:
|
|
71
|
+
}, He = oe({
|
|
72
|
+
i18n: { messages: te },
|
|
73
73
|
name: "bento-dropdown-options-container",
|
|
74
74
|
components: {
|
|
75
|
-
BentoListbox:
|
|
75
|
+
BentoListbox: X,
|
|
76
76
|
PopperContainer: H,
|
|
77
|
-
BentoPopover:
|
|
77
|
+
BentoPopover: ce
|
|
78
78
|
},
|
|
79
79
|
props: {
|
|
80
80
|
/**
|
|
@@ -142,8 +142,8 @@ const ee = {
|
|
|
142
142
|
*/
|
|
143
143
|
lazyLoadType: {
|
|
144
144
|
type: String,
|
|
145
|
-
default:
|
|
146
|
-
validator: (e) => Object.values(
|
|
145
|
+
default: ee.AUTOMATIC,
|
|
146
|
+
validator: (e) => Object.values(ee).includes(e)
|
|
147
147
|
},
|
|
148
148
|
/**
|
|
149
149
|
* If enabled, the user will be able to select multiple items.
|
|
@@ -169,7 +169,7 @@ const ee = {
|
|
|
169
169
|
*
|
|
170
170
|
* If enabled, hides the "Select all" checkbox in "multiple" mode.
|
|
171
171
|
*/
|
|
172
|
-
searching:
|
|
172
|
+
searching: X.props.searching,
|
|
173
173
|
/**
|
|
174
174
|
* Reference to the DOM element or Vue component for positioning
|
|
175
175
|
* the Dropdown container.
|
|
@@ -194,21 +194,21 @@ const ee = {
|
|
|
194
194
|
s.TAB
|
|
195
195
|
],
|
|
196
196
|
setup(e, { emit: o, slots: n }) {
|
|
197
|
-
const { selectedValue: t, multiple: a } =
|
|
197
|
+
const { selectedValue: t, multiple: a } = ve(e), i = L(null), { t: d } = le({ messages: te }), r = u(() => e.open && !e.disabled), l = u(() => d("noOptionsMatchThisSearch")), f = u(() => ({
|
|
198
198
|
"b-dropdown-options-container--single": !(e != null && e.multiple)
|
|
199
|
-
})), O =
|
|
199
|
+
})), O = u(() => ({
|
|
200
200
|
"b-dropdown-options-container__listbox--small": e.inputSize === D.SMALL,
|
|
201
201
|
"b-dropdown-options-container__listbox--single": !(e != null && e.multiple)
|
|
202
|
-
})), { actions: g, internalSelectedValue: h, listeners: b, onEscapeKey: v } =
|
|
202
|
+
})), { actions: g, internalSelectedValue: h, listeners: b, onEscapeKey: v } = je(
|
|
203
203
|
t,
|
|
204
204
|
a,
|
|
205
205
|
o
|
|
206
|
-
), w =
|
|
207
|
-
() => e != null && e.multiple ?
|
|
208
|
-
), m =
|
|
209
|
-
var
|
|
206
|
+
), w = u(
|
|
207
|
+
() => e != null && e.multiple ? ce : H
|
|
208
|
+
), m = u(() => {
|
|
209
|
+
var p;
|
|
210
210
|
const P = {
|
|
211
|
-
"min-width": `${(
|
|
211
|
+
"min-width": `${(p = e == null ? void 0 : e.targetElement) == null ? void 0 : p.clientWidth}px`,
|
|
212
212
|
"max-width": "min(500px, 95%)"
|
|
213
213
|
};
|
|
214
214
|
return e != null && e.multiple ? {
|
|
@@ -238,7 +238,7 @@ const ee = {
|
|
|
238
238
|
return {
|
|
239
239
|
// Values
|
|
240
240
|
isDropdownOpen: r,
|
|
241
|
-
conditionalClasses:
|
|
241
|
+
conditionalClasses: f,
|
|
242
242
|
conditionalListboxClasses: O,
|
|
243
243
|
noResultsMessage: l,
|
|
244
244
|
slots: n,
|
|
@@ -255,16 +255,16 @@ const ee = {
|
|
|
255
255
|
};
|
|
256
256
|
}
|
|
257
257
|
});
|
|
258
|
-
function
|
|
258
|
+
function qe(e, o, n, t, a, i) {
|
|
259
259
|
const d = E("bento-listbox");
|
|
260
|
-
return y(), A(
|
|
260
|
+
return y(), A(ye(e.popperContainerOrPopoverComponent), B({
|
|
261
261
|
class: ["b-dropdown-options-container", e.conditionalClasses]
|
|
262
262
|
}, e.popperContainerOrPopoverProps), {
|
|
263
263
|
default: M(() => [
|
|
264
|
-
|
|
265
|
-
onKeydown: o[0] || (o[0] =
|
|
264
|
+
x("div", {
|
|
265
|
+
onKeydown: o[0] || (o[0] = Te((...r) => e.onEscapeKey && e.onEscapeKey(...r), ["esc"]))
|
|
266
266
|
}, [
|
|
267
|
-
F(d,
|
|
267
|
+
F(d, B({
|
|
268
268
|
id: e.id,
|
|
269
269
|
ref: "dropdownOptionsListboxRef",
|
|
270
270
|
"aria-label": e.ariaLabel,
|
|
@@ -283,8 +283,8 @@ function Ve(e, o, n, t, a, i) {
|
|
|
283
283
|
}, z(e.listeners)), V({ _: 2 }, [
|
|
284
284
|
J(e.slots, (r, l) => ({
|
|
285
285
|
name: l,
|
|
286
|
-
fn: M((
|
|
287
|
-
Z(e.$slots, l, Y(G(
|
|
286
|
+
fn: M((f) => [
|
|
287
|
+
Z(e.$slots, l, Y(G(f)), void 0, !0)
|
|
288
288
|
])
|
|
289
289
|
}))
|
|
290
290
|
]), 1040, ["id", "aria-label", "class", "empty-state", "is-option-disabled", "items", "selected-value", "multiple", "no-results-message", "searching", "loading", "lazy-load-type", "has-more-items", "virtual-scroll"])
|
|
@@ -293,55 +293,53 @@ function Ve(e, o, n, t, a, i) {
|
|
|
293
293
|
_: 3
|
|
294
294
|
}, 16, ["class"]);
|
|
295
295
|
}
|
|
296
|
-
const
|
|
297
|
-
let
|
|
298
|
-
const
|
|
296
|
+
const Ve = /* @__PURE__ */ k(He, [["render", qe], ["__scopeId", "data-v-470172b0"]]);
|
|
297
|
+
let fe = 0;
|
|
298
|
+
const Je = {
|
|
299
299
|
beforeCreate() {
|
|
300
|
-
this.uuid =
|
|
300
|
+
this.uuid = fe.toString(), fe += 1;
|
|
301
301
|
}
|
|
302
|
-
},
|
|
302
|
+
}, Ze = { key: 0 }, Ye = /* @__PURE__ */ x("path", {
|
|
303
303
|
fill: "#00112C",
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
},
|
|
308
|
-
|
|
309
|
-
return y(), B("svg", I({ role: "img" }, e.$attrs, {
|
|
304
|
+
d: "M5.00011 5.43922L8.00011 8.43922L11.0001 5.43922L12.0608 6.49988L8.00011 10.5605L3.93945 6.49988L5.00011 5.43922Z"
|
|
305
|
+
}, null, -1);
|
|
306
|
+
function Ge(e, o, n, t, a, i) {
|
|
307
|
+
return y(), R("svg", B({ role: "img" }, e.$attrs, {
|
|
308
|
+
class: "ui-assets-icons-16",
|
|
310
309
|
xmlns: "http://www.w3.org/2000/svg",
|
|
311
310
|
width: "16",
|
|
312
311
|
height: "16",
|
|
313
312
|
fill: "none"
|
|
314
313
|
}), [
|
|
315
|
-
e.$attrs["svg-title"] ? (y(),
|
|
316
|
-
|
|
314
|
+
e.$attrs["svg-title"] ? (y(), R("title", Ze, ne(e.$attrs["svg-title"]), 1)) : N("", !0),
|
|
315
|
+
Ye
|
|
317
316
|
], 16);
|
|
318
317
|
}
|
|
319
|
-
const
|
|
318
|
+
const Qe = /* @__PURE__ */ k(Je, [["render", Ge]]);
|
|
320
319
|
let pe = 0;
|
|
321
|
-
const
|
|
320
|
+
const Xe = {
|
|
322
321
|
beforeCreate() {
|
|
323
322
|
this.uuid = pe.toString(), pe += 1;
|
|
324
323
|
}
|
|
325
|
-
},
|
|
324
|
+
}, et = { key: 0 }, tt = /* @__PURE__ */ x("path", {
|
|
326
325
|
fill: "#00112C",
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
},
|
|
331
|
-
|
|
332
|
-
return y(), B("svg", I({ role: "img" }, e.$attrs, {
|
|
326
|
+
d: "M10.9999 10.5608L7.9999 7.56077L4.9999 10.5608L3.93924 9.50011L7.9999 5.43945L12.0606 9.50011L10.9999 10.5608Z"
|
|
327
|
+
}, null, -1);
|
|
328
|
+
function ot(e, o, n, t, a, i) {
|
|
329
|
+
return y(), R("svg", B({ role: "img" }, e.$attrs, {
|
|
330
|
+
class: "ui-assets-icons-16",
|
|
333
331
|
xmlns: "http://www.w3.org/2000/svg",
|
|
334
332
|
width: "16",
|
|
335
333
|
height: "16",
|
|
336
334
|
fill: "none"
|
|
337
335
|
}), [
|
|
338
|
-
e.$attrs["svg-title"] ? (y(),
|
|
339
|
-
|
|
336
|
+
e.$attrs["svg-title"] ? (y(), R("title", et, ne(e.$attrs["svg-title"]), 1)) : N("", !0),
|
|
337
|
+
tt
|
|
340
338
|
], 16);
|
|
341
339
|
}
|
|
342
|
-
const
|
|
340
|
+
const nt = /* @__PURE__ */ k(Xe, [["render", ot]]), lt = oe({
|
|
343
341
|
name: "dropdown-small-textbox",
|
|
344
|
-
components: { ChevronDownSmallIcon:
|
|
342
|
+
components: { ChevronDownSmallIcon: Qe, ChevronUpSmallIcon: nt, DropdownBaseTextbox: ze },
|
|
345
343
|
inheritAttrs: !1,
|
|
346
344
|
props: {
|
|
347
345
|
/**
|
|
@@ -415,11 +413,11 @@ const it = /* @__PURE__ */ k(tt, [["render", at], ["__scopeId", "data-v-6f20d431
|
|
|
415
413
|
},
|
|
416
414
|
emits: [T.OPEN, T.CLOSE],
|
|
417
415
|
setup(e, { emit: o }) {
|
|
418
|
-
const n =
|
|
416
|
+
const n = u(() => ({
|
|
419
417
|
[`b-dropdown-small-textbox--${q.DISABLED}`]: e.disabled,
|
|
420
418
|
[`b-dropdown-small-textbox--${q.READONLY}`]: e.readonly,
|
|
421
419
|
[`b-dropdown-small-textbox--${q.OPENED}`]: e.open
|
|
422
|
-
})), t =
|
|
420
|
+
})), t = u(() => e.open && !e.disabled && !e.readonly), a = () => {
|
|
423
421
|
o(T.OPEN);
|
|
424
422
|
}, i = () => {
|
|
425
423
|
o(T.CLOSE);
|
|
@@ -436,20 +434,20 @@ const it = /* @__PURE__ */ k(tt, [["render", at], ["__scopeId", "data-v-6f20d431
|
|
|
436
434
|
};
|
|
437
435
|
}
|
|
438
436
|
});
|
|
439
|
-
const
|
|
440
|
-
function
|
|
437
|
+
const at = { class: "b-dropdown-small-textbox__chevron" };
|
|
438
|
+
function it(e, o, n, t, a, i) {
|
|
441
439
|
const d = E("chevron-up-small-icon"), r = E("chevron-down-small-icon"), l = E("dropdown-base-textbox");
|
|
442
|
-
return y(),
|
|
443
|
-
class:
|
|
440
|
+
return y(), R("div", {
|
|
441
|
+
class: Q(["b-dropdown-small-textbox", e.conditionalClasses])
|
|
444
442
|
}, [
|
|
445
|
-
F(l,
|
|
443
|
+
F(l, B({ ...e.$attrs, ...e.$props }, { class: "b-dropdown-small-textbox__textbox" }, z(e.listeners)), {
|
|
446
444
|
icon: M(() => [
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
[
|
|
445
|
+
x("div", at, [
|
|
446
|
+
W(F(d, { "svg-title": "opened" }, null, 512), [
|
|
447
|
+
[de, e.isDropdownOpen]
|
|
450
448
|
]),
|
|
451
|
-
|
|
452
|
-
[
|
|
449
|
+
W(F(r, { "svg-title": "closed" }, null, 512), [
|
|
450
|
+
[de, !e.isDropdownOpen]
|
|
453
451
|
])
|
|
454
452
|
])
|
|
455
453
|
]),
|
|
@@ -457,16 +455,16 @@ function dt(e, o, n, t, a, i) {
|
|
|
457
455
|
}, 16)
|
|
458
456
|
], 2);
|
|
459
457
|
}
|
|
460
|
-
const
|
|
458
|
+
const st = /* @__PURE__ */ k(lt, [["render", it], ["__scopeId", "data-v-55bc3614"]]), rt = ({ items: e, placeholder: o, selectedValue: n }) => {
|
|
461
459
|
const t = e.value.find(({ value: a }) => a === n.value);
|
|
462
460
|
return (t == null ? void 0 : t.label) || o.value || null;
|
|
463
|
-
},
|
|
461
|
+
}, dt = ({ selectedValues: e, items: o, placeholder: n }) => {
|
|
464
462
|
var t;
|
|
465
463
|
return !e.value || ((t = e.value) == null ? void 0 : t.length) === 0 ? n.value || null : e.value.map((a) => {
|
|
466
464
|
const { label: i } = o.value.find(({ value: d }) => d === a);
|
|
467
465
|
return i;
|
|
468
466
|
}).join(", ");
|
|
469
|
-
},
|
|
467
|
+
}, ut = ({ selectedValues: e, items: o, placeholder: n }) => {
|
|
470
468
|
var t;
|
|
471
469
|
return !e.value || !((t = e.value) != null && t.length) ? n.value || null : o.value.reduce((a, i) => {
|
|
472
470
|
if (i.items) {
|
|
@@ -477,16 +475,16 @@ const ut = /* @__PURE__ */ k(st, [["render", dt], ["__scopeId", "data-v-55bc3614
|
|
|
477
475
|
}
|
|
478
476
|
return e.value.includes(i.value) && a.push(i.label), a;
|
|
479
477
|
}, []).join(", ");
|
|
480
|
-
},
|
|
481
|
-
const a =
|
|
478
|
+
}, ct = ({ items: e, placeholder: o, value: n, multiple: t }) => {
|
|
479
|
+
const a = u(() => e.value.find((d) => {
|
|
482
480
|
var r;
|
|
483
481
|
return (r = d.items) == null ? void 0 : r.length;
|
|
484
482
|
}));
|
|
485
|
-
return
|
|
486
|
-
},
|
|
483
|
+
return u(() => t.value ? a.value ? ut({ selectedValues: n, placeholder: o, items: e }) : dt({ selectedValues: n, items: e, placeholder: o }) : rt({ items: e, placeholder: o, selectedValue: n }));
|
|
484
|
+
}, ge = (e) => {
|
|
487
485
|
var o;
|
|
488
486
|
(o = e.value.$children) == null || o[0].$refs.textbox.focus();
|
|
489
|
-
},
|
|
487
|
+
}, ft = ({
|
|
490
488
|
inputContainerRef: e,
|
|
491
489
|
optionsContainerRef: o,
|
|
492
490
|
selectedValueIndex: n,
|
|
@@ -494,57 +492,57 @@ const ut = /* @__PURE__ */ k(st, [["render", dt], ["__scopeId", "data-v-55bc3614
|
|
|
494
492
|
isDynamicFltering: a,
|
|
495
493
|
items: i,
|
|
496
494
|
isMultiple: d
|
|
497
|
-
}, r, l,
|
|
498
|
-
const O = ({ detail:
|
|
499
|
-
|
|
500
|
-
var
|
|
501
|
-
d ? (
|
|
495
|
+
}, r, l, f) => {
|
|
496
|
+
const O = ({ detail: p }) => {
|
|
497
|
+
p.preventDefault(), t.value || (l(), _(() => {
|
|
498
|
+
var c, $;
|
|
499
|
+
d ? (c = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || c[0].$el.focus() : ($ = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || $[n.value].$el.focus();
|
|
502
500
|
}));
|
|
503
|
-
}, g = ({ detail:
|
|
504
|
-
|
|
505
|
-
var
|
|
506
|
-
(
|
|
501
|
+
}, g = ({ detail: p }) => {
|
|
502
|
+
p.preventDefault(), t.value || (l(), _(() => {
|
|
503
|
+
var c;
|
|
504
|
+
(c = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || c[0].$el.focus();
|
|
507
505
|
}));
|
|
508
506
|
}, h = () => {
|
|
509
|
-
t.value || (l(),
|
|
510
|
-
var
|
|
507
|
+
t.value || (l(), _(() => {
|
|
508
|
+
var p, c;
|
|
511
509
|
if (d) {
|
|
512
|
-
const
|
|
513
|
-
(
|
|
510
|
+
const $ = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children;
|
|
511
|
+
(p = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || p[$.length - 1].$children[i.length - 1].$el.focus();
|
|
514
512
|
} else
|
|
515
|
-
(
|
|
513
|
+
(c = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || c[i.length - 1].$el.focus();
|
|
516
514
|
}));
|
|
517
515
|
}, b = () => {
|
|
518
|
-
t.value && (
|
|
516
|
+
t.value && (f(), ge(e));
|
|
519
517
|
}, v = () => {
|
|
520
|
-
t.value || l(),
|
|
521
|
-
var
|
|
522
|
-
(
|
|
518
|
+
t.value || l(), _(() => {
|
|
519
|
+
var p;
|
|
520
|
+
(p = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || p[0].$el.focus();
|
|
523
521
|
});
|
|
524
|
-
}, w = ({ detail:
|
|
525
|
-
|
|
526
|
-
var
|
|
527
|
-
d ? (
|
|
522
|
+
}, w = ({ detail: p }) => {
|
|
523
|
+
p.preventDefault(), r(), t.value && _(() => {
|
|
524
|
+
var c, $;
|
|
525
|
+
d ? (c = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || c[0].$el.focus() : ($ = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || $[n.value].$el.focus();
|
|
528
526
|
});
|
|
529
527
|
}, m = () => {
|
|
530
|
-
r(), t.value &&
|
|
531
|
-
var
|
|
532
|
-
d ? (
|
|
528
|
+
r(), t.value && _(() => {
|
|
529
|
+
var p, c;
|
|
530
|
+
d ? (p = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || p[0].$el.focus() : (c = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || c[n.value].$el.focus();
|
|
533
531
|
});
|
|
534
532
|
};
|
|
535
|
-
return
|
|
536
|
-
...a.value ? {} : { [
|
|
537
|
-
[
|
|
538
|
-
[
|
|
539
|
-
[
|
|
540
|
-
[
|
|
541
|
-
[
|
|
542
|
-
[
|
|
533
|
+
return u(() => ({
|
|
534
|
+
...a.value ? {} : { [C.SPACE]: w },
|
|
535
|
+
[C.ENTER]: m,
|
|
536
|
+
[C.ARROW_DOWN]: O,
|
|
537
|
+
[C.ARROW_UP]: g,
|
|
538
|
+
[C.END]: h,
|
|
539
|
+
[C.ESCAPE]: b,
|
|
540
|
+
[C.HOME]: v
|
|
543
541
|
}));
|
|
544
|
-
},
|
|
542
|
+
}, pt = ({ inputContainerRef: e, isDropdownOpen: o }, n) => {
|
|
545
543
|
const t = () => {
|
|
546
|
-
o.value && n(),
|
|
547
|
-
|
|
544
|
+
o.value && n(), _(() => {
|
|
545
|
+
ge(e);
|
|
548
546
|
});
|
|
549
547
|
};
|
|
550
548
|
return {
|
|
@@ -554,34 +552,34 @@ const ut = /* @__PURE__ */ k(st, [["render", dt], ["__scopeId", "data-v-55bc3614
|
|
|
554
552
|
[s.SPACE]: t
|
|
555
553
|
};
|
|
556
554
|
};
|
|
557
|
-
function
|
|
558
|
-
const t =
|
|
559
|
-
return
|
|
555
|
+
function mt(e, o, n) {
|
|
556
|
+
const t = L(e), a = L(o), i = (r, l = []) => l.flatMap((f) => f.label.toLocaleLowerCase().includes(r) ? [f, ...i(r, f.items)] : f.items ? [...i(r, f.items)] : []);
|
|
557
|
+
return be(t, () => {
|
|
560
558
|
n !== void 0 && n(t.value);
|
|
561
|
-
}),
|
|
559
|
+
}), u(() => {
|
|
562
560
|
if (!t.value || n !== void 0)
|
|
563
561
|
return a.value;
|
|
564
562
|
const r = t.value.toLocaleLowerCase();
|
|
565
563
|
return i(r, a.value);
|
|
566
564
|
});
|
|
567
565
|
}
|
|
568
|
-
const
|
|
566
|
+
const me = {
|
|
569
567
|
"en-US": {
|
|
570
568
|
clearSearch: "Clear filter",
|
|
571
569
|
ariaLabelFallback: "Dropdown"
|
|
572
570
|
}
|
|
573
|
-
},
|
|
574
|
-
i18n: { messages:
|
|
571
|
+
}, bt = oe({
|
|
572
|
+
i18n: { messages: me },
|
|
575
573
|
name: "b-dropdown",
|
|
576
574
|
components: {
|
|
577
|
-
BentoDropdownOptionsContainer:
|
|
578
|
-
BentoTypography:
|
|
575
|
+
BentoDropdownOptionsContainer: Ve,
|
|
576
|
+
BentoTypography: Ne,
|
|
579
577
|
DropdownInputDefault: We,
|
|
580
|
-
DropdownInputSmall:
|
|
581
|
-
ErrorMessage:
|
|
582
|
-
FieldLabel:
|
|
578
|
+
DropdownInputSmall: st,
|
|
579
|
+
ErrorMessage: xe,
|
|
580
|
+
FieldLabel: Ue
|
|
583
581
|
},
|
|
584
|
-
directives: { BentoClickOutsideDirective:
|
|
582
|
+
directives: { BentoClickOutsideDirective: Fe, BentoKeyboardNavigationDirective: ke },
|
|
585
583
|
props: {
|
|
586
584
|
/**
|
|
587
585
|
* @deprecated from version 2.0.0. Use the aria-label attribute instead.
|
|
@@ -590,6 +588,10 @@ const fe = {
|
|
|
590
588
|
* Defines a string value that labels an interactive element.
|
|
591
589
|
*/
|
|
592
590
|
ariaLabel: { type: String, default: null },
|
|
591
|
+
/**
|
|
592
|
+
* Renders the dropdown with a condensed style.
|
|
593
|
+
*/
|
|
594
|
+
condensed: { type: Boolean, default: !1 },
|
|
593
595
|
/**
|
|
594
596
|
* Empty state props used with the inner empty state component which is displayed when no search results are found.
|
|
595
597
|
*/
|
|
@@ -671,8 +673,8 @@ const fe = {
|
|
|
671
673
|
*/
|
|
672
674
|
lazyLoadType: {
|
|
673
675
|
type: String,
|
|
674
|
-
default:
|
|
675
|
-
validator: (e) => Object.values(
|
|
676
|
+
default: X.props.lazyLoadType.default,
|
|
677
|
+
validator: (e) => Object.values(ee).includes(e)
|
|
676
678
|
},
|
|
677
679
|
/*
|
|
678
680
|
* If enabled, the user will be able to select multiple items.
|
|
@@ -735,57 +737,59 @@ const fe = {
|
|
|
735
737
|
},
|
|
736
738
|
emits: ["input", s.SHOW_MORE],
|
|
737
739
|
setup(e, { attrs: o, emit: n, slots: t }) {
|
|
738
|
-
var
|
|
739
|
-
const { t: a } =
|
|
740
|
+
var re;
|
|
741
|
+
const { t: a } = le({ messages: me }), i = L(null), d = L(null), r = L(null), l = L(!1), f = K("bento-dropdown-options-container"), O = K("dropdown-label"), g = K("dropdown-description"), h = K("dropdown-error"), { isReadOnly: b } = Ke(I(e, "readonly")), v = L(o["aria-label"]), { ariaLabel: w } = ve(e), m = Pe({
|
|
740
742
|
ariaLabel: v.value,
|
|
741
743
|
// TODO: take this line away when the aria-label props is removed
|
|
742
744
|
label: w,
|
|
743
745
|
defaultFallback: a("ariaLabelFallback")
|
|
744
|
-
}), P =
|
|
746
|
+
}), P = u(() => ({
|
|
747
|
+
"b-dropdown--condensed": e.condensed
|
|
748
|
+
})), p = u(() => ({
|
|
745
749
|
"b-dropdown__description--error": !!e.errorMessage
|
|
746
|
-
})),
|
|
747
|
-
items:
|
|
748
|
-
multiple:
|
|
749
|
-
placeholder:
|
|
750
|
-
value:
|
|
751
|
-
}),
|
|
750
|
+
})), c = L(""), $ = I(e, "items"), he = mt(c, $, (re = e == null ? void 0 : e.search) == null ? void 0 : re.searchEvent), U = u(() => e.dynamicFiltering && !!c.value), we = ct({
|
|
751
|
+
items: $,
|
|
752
|
+
multiple: I(e, "multiple"),
|
|
753
|
+
placeholder: I(e, "placeholder"),
|
|
754
|
+
value: I(e, "value")
|
|
755
|
+
}), Se = u(() => e.size === D.DEFAULT), $e = u(
|
|
752
756
|
() => e != null && e.multiple ? e.items.filter(
|
|
753
757
|
({ value: S }) => (e == null ? void 0 : e.value) && (e == null ? void 0 : e.value).includes(S)
|
|
754
758
|
) : e.items.find(({ value: S }) => S === (e == null ? void 0 : e.value))
|
|
755
|
-
), Le =
|
|
756
|
-
const S = e.items.findIndex(({ value:
|
|
759
|
+
), Le = u(() => {
|
|
760
|
+
const S = e.items.findIndex(({ value: Ie }) => e.value === Ie);
|
|
757
761
|
return S > 0 ? S : 0;
|
|
758
|
-
}),
|
|
762
|
+
}), Oe = u(() => {
|
|
759
763
|
var S;
|
|
760
764
|
return e.multiple ? (S = e == null ? void 0 : e.value) == null ? void 0 : S.length : null;
|
|
761
|
-
}),
|
|
765
|
+
}), Ee = u(
|
|
762
766
|
() => `${e.description ? g : ""} ${e.errorMessage ? h : ""}`.trim() || null
|
|
763
767
|
), Ce = () => {
|
|
764
768
|
b.value || (l.value = !0);
|
|
765
769
|
}, j = () => {
|
|
766
770
|
l.value = !1;
|
|
767
|
-
},
|
|
768
|
-
b.value || (l.value = !l.value, U.value && (
|
|
769
|
-
},
|
|
770
|
-
U.value && (
|
|
771
|
-
},
|
|
772
|
-
e.multiple || (
|
|
773
|
-
},
|
|
771
|
+
}, ae = () => {
|
|
772
|
+
b.value || (l.value = !l.value, U.value && (c.value = ""));
|
|
773
|
+
}, _e = () => {
|
|
774
|
+
U.value && (c.value = ""), l.value && (l.value = !1);
|
|
775
|
+
}, ie = (S) => {
|
|
776
|
+
e.multiple || (c.value = "", l.value = !1), n("input", S);
|
|
777
|
+
}, se = () => {
|
|
774
778
|
n(s.SHOW_MORE);
|
|
775
|
-
},
|
|
779
|
+
}, De = ft(
|
|
776
780
|
{
|
|
777
781
|
inputContainerRef: i,
|
|
778
782
|
optionsContainerRef: r,
|
|
779
783
|
selectedValueIndex: Le,
|
|
780
784
|
isDropdownOpen: l,
|
|
781
|
-
isDynamicFltering:
|
|
785
|
+
isDynamicFltering: I(e, "dynamicFiltering"),
|
|
782
786
|
items: e.items,
|
|
783
787
|
isMultiple: e.multiple
|
|
784
788
|
},
|
|
785
|
-
|
|
789
|
+
ae,
|
|
786
790
|
Ce,
|
|
787
791
|
j
|
|
788
|
-
), Be =
|
|
792
|
+
), Be = pt(
|
|
789
793
|
{
|
|
790
794
|
inputContainerRef: i,
|
|
791
795
|
isDropdownOpen: l
|
|
@@ -793,11 +797,11 @@ const fe = {
|
|
|
793
797
|
j
|
|
794
798
|
), Re = {
|
|
795
799
|
[s.CLOSE_DROPDOWN]: j,
|
|
796
|
-
[s.SELECT]:
|
|
797
|
-
[s.SHOW_MORE]:
|
|
800
|
+
[s.SELECT]: ie,
|
|
801
|
+
[s.SHOW_MORE]: se,
|
|
798
802
|
...Be
|
|
799
803
|
};
|
|
800
|
-
return e.error &&
|
|
804
|
+
return e.error && Me(
|
|
801
805
|
'BentoDropdown "error" property',
|
|
802
806
|
`Use the BentoDropdown "errorMessage" property instead to indicate that there is a modifier error.
|
|
803
807
|
Having the field as "undefined" will hide/remove the error.
|
|
@@ -805,57 +809,61 @@ const fe = {
|
|
|
805
809
|
"2.0.0"
|
|
806
810
|
), {
|
|
807
811
|
// Values
|
|
812
|
+
conditionalClasses: P,
|
|
808
813
|
computedAriaLabel: m,
|
|
809
|
-
additionalItemsSelected:
|
|
810
|
-
idDefaultSize:
|
|
814
|
+
additionalItemsSelected: Oe,
|
|
815
|
+
idDefaultSize: Se,
|
|
811
816
|
isDropdownOpen: l,
|
|
812
|
-
displayValue:
|
|
813
|
-
dropdownOptionsContainerId:
|
|
814
|
-
filteredItems:
|
|
817
|
+
displayValue: we,
|
|
818
|
+
dropdownOptionsContainerId: f,
|
|
819
|
+
filteredItems: he,
|
|
815
820
|
isSearching: U,
|
|
816
821
|
isReadOnly: b,
|
|
817
|
-
searchTerm:
|
|
822
|
+
searchTerm: c,
|
|
818
823
|
labelId: O,
|
|
819
824
|
descriptionId: g,
|
|
820
825
|
errorId: h,
|
|
821
|
-
ariaDescribedBy:
|
|
822
|
-
selectedValueItem:
|
|
826
|
+
ariaDescribedBy: Ee,
|
|
827
|
+
selectedValueItem: $e,
|
|
823
828
|
// Conciliation of Vue2 $scopedSlots and Vue3 $scopes.
|
|
824
829
|
// The setup method and the "useSlots" composible define
|
|
825
830
|
// { slots } as a proxy of $scopedSlots and $scopes in their
|
|
826
831
|
// respective Vue version. Source: https://github.com/vuejs/composition-api/issues/84#issuecomment-524885445
|
|
827
832
|
slots: t,
|
|
828
|
-
descriptionConditionalClasses:
|
|
833
|
+
descriptionConditionalClasses: p,
|
|
829
834
|
// Refs
|
|
830
835
|
inputContainerRef: i,
|
|
831
836
|
inputContainerRefWrapper: d,
|
|
832
837
|
optionsContainerRef: r,
|
|
833
838
|
// Events
|
|
834
|
-
closeOpenedDropdown:
|
|
835
|
-
toggleDropdown:
|
|
836
|
-
onOptionSelected:
|
|
837
|
-
emitShowMoreEvent:
|
|
838
|
-
textboxKeyboardNavigationListeners:
|
|
839
|
+
closeOpenedDropdown: _e,
|
|
840
|
+
toggleDropdown: ae,
|
|
841
|
+
onOptionSelected: ie,
|
|
842
|
+
emitShowMoreEvent: se,
|
|
843
|
+
textboxKeyboardNavigationListeners: De,
|
|
839
844
|
listboxListeners: Re
|
|
840
845
|
};
|
|
841
846
|
}
|
|
842
847
|
});
|
|
843
|
-
|
|
844
|
-
function wt(e, o, n, t, a, i) {
|
|
848
|
+
function vt(e, o, n, t, a, i) {
|
|
845
849
|
var h;
|
|
846
|
-
const d = E("field-label"), r = E("bento-dropdown-options-container"), l = E("error-message"),
|
|
847
|
-
return
|
|
850
|
+
const d = E("field-label"), r = E("bento-dropdown-options-container"), l = E("error-message"), f = E("bento-typography"), O = ue("bento-keyboard-navigation-directive"), g = ue("bento-click-outside-directive");
|
|
851
|
+
return W((y(), R("div", {
|
|
852
|
+
class: Q(["b-dropdown", e.conditionalClasses])
|
|
853
|
+
}, [
|
|
848
854
|
e.label ? (y(), A(d, {
|
|
849
855
|
key: 0,
|
|
850
856
|
id: e.labelId,
|
|
857
|
+
condensed: e.condensed,
|
|
851
858
|
label: e.label,
|
|
852
859
|
"tooltip-text": e.tooltipText,
|
|
853
860
|
optional: e.optional,
|
|
854
861
|
required: e.required
|
|
855
|
-
}, null, 8, ["id", "label", "tooltip-text", "optional", "required"])) : N("", !0),
|
|
856
|
-
|
|
857
|
-
(y(), A(
|
|
862
|
+
}, null, 8, ["id", "condensed", "label", "tooltip-text", "optional", "required"])) : N("", !0),
|
|
863
|
+
W((y(), R("div", B({ ref: "inputContainerRefWrapper" }, z(e.textboxKeyboardNavigationListeners, !0)), [
|
|
864
|
+
(y(), A(ye(e.size), {
|
|
858
865
|
ref: "inputContainerRef",
|
|
866
|
+
condensed: e.condensed,
|
|
859
867
|
value: e.searchTerm,
|
|
860
868
|
"additional-items-selected": e.additionalItemsSelected,
|
|
861
869
|
ariaControls: e.dropdownOptionsContainerId,
|
|
@@ -883,11 +891,11 @@ function wt(e, o, n, t, a, i) {
|
|
|
883
891
|
Z(e.$slots, v, Y(G(w)), void 0, !0)
|
|
884
892
|
])
|
|
885
893
|
}))
|
|
886
|
-
]), 1064, ["value", "additional-items-selected", "ariaControls", "ariaExpanded", "aria-labelledby", "aria-describedby", "aria-label", "aria-readonly", "readonly", "disabled", "display-value", "dynamic-filtering", "is-invalid", "multiple", "open", "selected-value-item", "show-slot-content-in-multiple", "onOpen", "onClose"]))
|
|
894
|
+
]), 1064, ["condensed", "value", "additional-items-selected", "ariaControls", "ariaExpanded", "aria-labelledby", "aria-describedby", "aria-label", "aria-readonly", "readonly", "disabled", "display-value", "dynamic-filtering", "is-invalid", "multiple", "open", "selected-value-item", "show-slot-content-in-multiple", "onOpen", "onClose"]))
|
|
887
895
|
], 16)), [
|
|
888
896
|
[O]
|
|
889
897
|
]),
|
|
890
|
-
e.inputContainerRef ? (y(), A(r,
|
|
898
|
+
e.inputContainerRef ? (y(), A(r, B({
|
|
891
899
|
key: 1,
|
|
892
900
|
id: e.dropdownOptionsContainerId,
|
|
893
901
|
ref: "optionsContainerRef",
|
|
@@ -921,25 +929,25 @@ function wt(e, o, n, t, a, i) {
|
|
|
921
929
|
"error-message": e.errorMessage,
|
|
922
930
|
class: "b-dropdown__error-message"
|
|
923
931
|
}, null, 8, ["id", "error-message"])) : N("", !0),
|
|
924
|
-
e.description ? (y(), A(
|
|
932
|
+
e.description ? (y(), A(f, {
|
|
925
933
|
key: 3,
|
|
926
934
|
id: e.descriptionId,
|
|
927
|
-
class:
|
|
935
|
+
class: Q(["b-dropdown__description", e.descriptionConditionalClasses]),
|
|
928
936
|
el: "span"
|
|
929
937
|
}, {
|
|
930
938
|
default: M(() => [
|
|
931
|
-
|
|
939
|
+
Ae(ne(e.description), 1)
|
|
932
940
|
]),
|
|
933
941
|
_: 1
|
|
934
942
|
}, 8, ["id", "class"])) : N("", !0)
|
|
935
|
-
])), [
|
|
943
|
+
], 2)), [
|
|
936
944
|
[g, e.closeOpenedDropdown]
|
|
937
945
|
]);
|
|
938
946
|
}
|
|
939
|
-
const
|
|
947
|
+
const It = /* @__PURE__ */ k(bt, [["render", vt], ["__scopeId", "data-v-0defd8ce"]]);
|
|
940
948
|
export {
|
|
941
|
-
|
|
949
|
+
It as B,
|
|
942
950
|
D as a,
|
|
943
|
-
|
|
951
|
+
mt as u
|
|
944
952
|
};
|
|
945
|
-
//# sourceMappingURL=dropdown.
|
|
953
|
+
//# sourceMappingURL=dropdown.63de9aac.js.map
|