@adyen/bento-vue2 1.64.0 → 1.65.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/assets/accordion-item.css +1 -1
- package/dist/assets/action-bar.css +1 -1
- package/dist/assets/base-modal.css +1 -1
- package/dist/assets/card.css +1 -1
- package/dist/assets/data-grid.css +1 -1
- package/dist/assets/date-picker.css +1 -1
- package/dist/assets/dialog-page.css +1 -1
- package/dist/assets/dropdown.css +1 -1
- package/dist/assets/file-uploader.css +1 -1
- package/dist/assets/inspector.css +1 -1
- package/dist/assets/menu.css +1 -1
- package/dist/assets/modal-fullscreen.css +1 -1
- package/dist/assets/popover.css +1 -1
- package/dist/assets/sidepanel.css +1 -1
- package/dist/assets/use-cached-selected-values.css +1 -1
- package/dist/chunks/{code-snippet.C7eh-7Vy.js → code-snippet.W8Zp0zQP.js} +2 -2
- package/dist/chunks/{code-snippet.C7eh-7Vy.js.map → code-snippet.W8Zp0zQP.js.map} +1 -1
- package/dist/chunks/{data-grid.o64ltIur.js → data-grid.D4oeTUhn.js} +65 -59
- package/dist/chunks/{data-grid.o64ltIur.js.map → data-grid.D4oeTUhn.js.map} +1 -1
- package/dist/chunks/{date-picker.Ba-lHyXs.js → date-picker.k0g6anfy.js} +28 -28
- package/dist/chunks/{date-picker.Ba-lHyXs.js.map → date-picker.k0g6anfy.js.map} +1 -1
- package/dist/chunks/{date-range-picker.BER92nnT.js → date-range-picker.D9lyIoO-.js} +20 -20
- package/dist/chunks/{date-range-picker.BER92nnT.js.map → date-range-picker.D9lyIoO-.js.map} +1 -1
- package/dist/chunks/{dropdown-tag.uNZs7yVF.js → dropdown-tag.DKhxBV52.js} +2 -2
- package/dist/chunks/{dropdown-tag.uNZs7yVF.js.map → dropdown-tag.DKhxBV52.js.map} +1 -1
- package/dist/chunks/{dropdown.DZ1Ndonr.js → dropdown.DV7uhHNP.js} +250 -239
- package/dist/chunks/dropdown.DV7uhHNP.js.map +1 -0
- package/dist/chunks/{filter-bar.BMDvL9EW.js → filter-bar.BxDEplt3.js} +7 -7
- package/dist/chunks/{filter-bar.BMDvL9EW.js.map → filter-bar.BxDEplt3.js.map} +1 -1
- package/dist/chunks/{header-with-views.CEfKLlVv.js → header-with-views.Ds9mcwmp.js} +2 -2
- package/dist/chunks/{header-with-views.CEfKLlVv.js.map → header-with-views.Ds9mcwmp.js.map} +1 -1
- package/dist/chunks/{input-field-password.DI7W4ehj.js → input-field-password.Bloa-rqx.js} +3 -3
- package/dist/chunks/{input-field-password.DI7W4ehj.js.map → input-field-password.Bloa-rqx.js.map} +1 -1
- package/dist/chunks/{input-field-phone-number.BXbNxQeN.js → input-field-phone-number.B3qzZKuP.js} +3 -3
- package/dist/chunks/{input-field-phone-number.BXbNxQeN.js.map → input-field-phone-number.B3qzZKuP.js.map} +1 -1
- package/dist/chunks/{input-field.-Pgtuotm.js → input-field.B_3nZFYz.js} +2 -2
- package/dist/chunks/{input-field.-Pgtuotm.js.map → input-field.B_3nZFYz.js.map} +1 -1
- package/dist/chunks/{pagination.CoM4szsH.js → pagination.Cl7SzoId.js} +2 -2
- package/dist/chunks/{pagination.CoM4szsH.js.map → pagination.Cl7SzoId.js.map} +1 -1
- package/dist/chunks/{search-bar.BhQdvBh8.js → search-bar.CadVBoj0.js} +3 -3
- package/dist/chunks/{search-bar.BhQdvBh8.js.map → search-bar.CadVBoj0.js.map} +1 -1
- package/dist/chunks/{secondary-nav.CItGT9T3.js → secondary-nav.OwimHNCb.js} +2 -2
- package/dist/chunks/{secondary-nav.CItGT9T3.js.map → secondary-nav.OwimHNCb.js.map} +1 -1
- package/dist/chunks/use-cached-selected-values.DNOmzQVy.js +1280 -0
- package/dist/chunks/{use-cached-selected-values.C1CeSurp.js.map → use-cached-selected-values.DNOmzQVy.js.map} +1 -1
- package/dist/code-snippet.js +1 -1
- package/dist/data-grid.js +1 -1
- package/dist/date-picker.js +1 -1
- package/dist/date-range-picker.js +1 -1
- package/dist/dropdown.js +3 -3
- package/dist/filter-bar.js +1 -1
- package/dist/header-with-views.js +1 -1
- package/dist/index.js +15 -15
- package/dist/input-field-password.js +1 -1
- package/dist/input-field-phone-number.js +1 -1
- package/dist/input-field.js +1 -1
- package/dist/internal.js +1 -1
- package/dist/pagination.js +1 -1
- package/dist/search-bar.js +2 -2
- package/dist/secondary-nav.js +1 -1
- package/dist/web-types.json +1 -1
- package/package.json +7 -6
- package/dist/chunks/dropdown.DZ1Ndonr.js.map +0 -1
- package/dist/chunks/use-cached-selected-values.C1CeSurp.js +0 -1271
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import { d as
|
|
3
|
-
import {
|
|
4
|
-
import { u as Be } from "./aria-label.CaUURpnB.js";
|
|
5
|
-
import { u as V } from "./i18n.BQkEbtPM.js";
|
|
6
|
-
import { u as Ie } from "./use-form-layout-loading.D3lALhtC.js";
|
|
7
|
-
import { a as U, b as P, c as Te, B as F, D as Ae } from "./dropdown-default-textbox.BNuuA4ES.js";
|
|
8
|
-
import { u as Ne } from "./use-has-slot.C9lQZ6nz.js";
|
|
9
|
-
import { a as p, b as H, B as J, c as Re, u as $e } from "./use-cached-selected-values.C1CeSurp.js";
|
|
10
|
-
import { B as E, a as Me } from "./keyboard-navigation.pB8weElW.js";
|
|
11
|
-
import { B as Pe } from "./directive.Cbdox5VL.js";
|
|
12
|
-
import { F as ke, E as Fe } from "./error-message.1Em7Lis3.js";
|
|
13
|
-
import { P as re } from "./popper-container.DIFqmRsp.js";
|
|
14
|
-
import { B as Ke } from "./popover.B05xkQ4e.js";
|
|
15
|
-
import { n as K } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
|
|
1
|
+
import { ref as h, watch as Q, computed as u, defineComponent as A, useSlots as ve, toRefs as me, nextTick as g, useAttrs as De, toRef as w, inject as Be } from "vue";
|
|
2
|
+
import { d as ce, B as Ie } from "./typography.J1v_SPG3.js";
|
|
3
|
+
import { a as V, b as P, c as Te, B as k, D as Ne } from "./dropdown-default-textbox.BNuuA4ES.js";
|
|
16
4
|
/* empty css */
|
|
17
|
-
import {
|
|
5
|
+
import { n as K } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
|
|
6
|
+
import { s as J } from "./events.CMzGybJJ.js";
|
|
7
|
+
import { g as F } from "./generate-uid.NJ8tVoha.js";
|
|
8
|
+
import { u as Ae } from "./aria-label.CaUURpnB.js";
|
|
9
|
+
import { u as X } from "./i18n.BQkEbtPM.js";
|
|
10
|
+
import { u as Re } from "./use-form-layout-loading.D3lALhtC.js";
|
|
11
|
+
import { u as Me } from "./use-has-slot.C9lQZ6nz.js";
|
|
12
|
+
import { a as p, b as Y, B as Z, c as $e, u as Pe } from "./use-cached-selected-values.DNOmzQVy.js";
|
|
13
|
+
import { B as D, a as ke } from "./keyboard-navigation.pB8weElW.js";
|
|
14
|
+
import { B as Fe } from "./directive.Cbdox5VL.js";
|
|
15
|
+
import { F as Ke, E as ze } from "./error-message.1Em7Lis3.js";
|
|
16
|
+
import { P as ue } from "./popper-container.DIFqmRsp.js";
|
|
17
|
+
import { B as je } from "./popover.B05xkQ4e.js";
|
|
18
18
|
import "../assets/dropdown.css";
|
|
19
|
-
const
|
|
19
|
+
const We = {
|
|
20
20
|
"en-US": {
|
|
21
21
|
apply: "Apply",
|
|
22
22
|
cancel: "Cancel",
|
|
@@ -30,18 +30,18 @@ const ze = {
|
|
|
30
30
|
apply: "Aplicar",
|
|
31
31
|
cancel: "Cancelar"
|
|
32
32
|
}
|
|
33
|
-
},
|
|
34
|
-
const a =
|
|
35
|
-
|
|
33
|
+
}, Ue = (n, t, o, e) => {
|
|
34
|
+
const a = h(n.value), { t: s } = X();
|
|
35
|
+
Q(n, () => {
|
|
36
36
|
a.value = n.value;
|
|
37
37
|
});
|
|
38
38
|
const l = u(
|
|
39
39
|
() => JSON.stringify(a.value) === JSON.stringify(n.value)
|
|
40
40
|
), i = () => {
|
|
41
41
|
e(p.SELECT, a.value), e(p.CLOSE_DROPDOWN);
|
|
42
|
-
},
|
|
42
|
+
}, d = () => {
|
|
43
43
|
a.value = n.value, e(p.CLOSE_DROPDOWN);
|
|
44
|
-
},
|
|
44
|
+
}, y = () => {
|
|
45
45
|
o.value && t.value && (a.value = n.value);
|
|
46
46
|
}, r = u(() => [
|
|
47
47
|
{
|
|
@@ -51,41 +51,41 @@ const ze = {
|
|
|
51
51
|
},
|
|
52
52
|
{
|
|
53
53
|
title: s("cancel"),
|
|
54
|
-
event:
|
|
54
|
+
event: d
|
|
55
55
|
}
|
|
56
|
-
]),
|
|
56
|
+
]), c = (b) => {
|
|
57
57
|
a.value = b, t.value || e(p.SELECT, b);
|
|
58
|
-
},
|
|
59
|
-
|
|
60
|
-
},
|
|
61
|
-
|
|
58
|
+
}, _ = (b) => {
|
|
59
|
+
c(b), e(p.TAB);
|
|
60
|
+
}, C = (b) => {
|
|
61
|
+
c(b), e(p.ENTER);
|
|
62
62
|
}, v = (b) => {
|
|
63
|
-
|
|
63
|
+
c(b), e(p.SPACE);
|
|
64
64
|
}, O = () => {
|
|
65
|
-
|
|
66
|
-
},
|
|
65
|
+
d(), e(p.ESCAPE);
|
|
66
|
+
}, L = () => {
|
|
67
67
|
e(p.SHOW_MORE);
|
|
68
|
-
},
|
|
69
|
-
[p.SELECT]:
|
|
70
|
-
[p.SHOW_MORE]:
|
|
71
|
-
[p.TAB]:
|
|
68
|
+
}, x = {
|
|
69
|
+
[p.SELECT]: c,
|
|
70
|
+
[p.SHOW_MORE]: L,
|
|
71
|
+
[p.TAB]: _,
|
|
72
72
|
[p.SPACE]: v,
|
|
73
|
-
[p.ENTER]:
|
|
73
|
+
[p.ENTER]: C
|
|
74
74
|
};
|
|
75
75
|
return {
|
|
76
76
|
// Values
|
|
77
77
|
actions: r,
|
|
78
78
|
internalSelectedValue: a,
|
|
79
79
|
// Methods
|
|
80
|
-
listeners:
|
|
80
|
+
listeners: x,
|
|
81
81
|
onEscapeKey: O,
|
|
82
|
-
onOutsideDropdownClick:
|
|
82
|
+
onOutsideDropdownClick: y
|
|
83
83
|
};
|
|
84
|
-
},
|
|
85
|
-
i18n: { messages:
|
|
84
|
+
}, qe = A({
|
|
85
|
+
i18n: { messages: We },
|
|
86
86
|
name: "bento-dropdown-options-container"
|
|
87
|
-
}),
|
|
88
|
-
...
|
|
87
|
+
}), He = /* @__PURE__ */ A({
|
|
88
|
+
...qe,
|
|
89
89
|
props: {
|
|
90
90
|
/**
|
|
91
91
|
* Defines a string value that labels an interactive element.
|
|
@@ -144,8 +144,8 @@ const ze = {
|
|
|
144
144
|
*/
|
|
145
145
|
lazyLoadType: {
|
|
146
146
|
type: String,
|
|
147
|
-
default:
|
|
148
|
-
validator: (n) => Object.values(
|
|
147
|
+
default: Z.AUTOMATIC,
|
|
148
|
+
validator: (n) => Object.values(Z).includes(n)
|
|
149
149
|
},
|
|
150
150
|
/**
|
|
151
151
|
* Indicates if new options are lazy loading.
|
|
@@ -175,7 +175,7 @@ const ze = {
|
|
|
175
175
|
*
|
|
176
176
|
* If enabled, hides the "Select all" checkbox in "multiple" mode.
|
|
177
177
|
*/
|
|
178
|
-
searching:
|
|
178
|
+
searching: Y.props.searching,
|
|
179
179
|
/**
|
|
180
180
|
* If enabled, dropdown will display non-selectable, static categories
|
|
181
181
|
*/
|
|
@@ -184,7 +184,7 @@ const ze = {
|
|
|
184
184
|
* Reference to the DOM element or Vue component for positioning
|
|
185
185
|
* the Dropdown container.
|
|
186
186
|
*/
|
|
187
|
-
targetElement: { type:
|
|
187
|
+
targetElement: { type: ue.props.targetElement.type, required: !0 },
|
|
188
188
|
/**
|
|
189
189
|
* Enables virtual scrolling if set to true or by providing an object with itemHeight function.
|
|
190
190
|
* The itemHeight function is used to calculate the height of rendered item given it's index.
|
|
@@ -196,28 +196,28 @@ const ze = {
|
|
|
196
196
|
},
|
|
197
197
|
emits: [],
|
|
198
198
|
setup(n, { expose: t, emit: o }) {
|
|
199
|
-
const e = n, a =
|
|
199
|
+
const e = n, a = ve(), { selectedValue: s, multiple: l } = me(e), i = h(null), { t: d } = X(), y = u(() => e.open && !e.disabled), r = u(() => d("noOptionsMatchThisSearch")), c = u(() => ({
|
|
200
200
|
"b-dropdown-options-container--single": !(e != null && e.multiple)
|
|
201
|
-
})),
|
|
201
|
+
})), _ = u(() => ({
|
|
202
202
|
"b-dropdown-options-container__listbox--single": !(e != null && e.multiple)
|
|
203
|
-
})), { actions:
|
|
203
|
+
})), { actions: C, internalSelectedValue: v, listeners: O, onEscapeKey: L, onOutsideDropdownClick: x } = Ue(s, l, y, o), b = u(() => e != null && e.multiple ? je : ue), I = u(() => {
|
|
204
204
|
var T;
|
|
205
|
-
const
|
|
205
|
+
const B = {
|
|
206
206
|
"min-width": `${(T = e == null ? void 0 : e.targetElement) == null ? void 0 : T.clientWidth}px`,
|
|
207
207
|
"max-width": "min(500px, 95%)"
|
|
208
208
|
};
|
|
209
209
|
return e != null && e.multiple ? {
|
|
210
210
|
actionsLayout: "space-between",
|
|
211
211
|
ariaLabel: e.ariaLabel,
|
|
212
|
-
actions:
|
|
212
|
+
actions: C.value,
|
|
213
213
|
divider: !0,
|
|
214
214
|
fallbackPosition: ["top-start"],
|
|
215
|
-
id:
|
|
215
|
+
id: F(`dropdown-options-${e.id}`),
|
|
216
216
|
open: e.open,
|
|
217
217
|
position: "bottom-start",
|
|
218
218
|
style: {
|
|
219
219
|
width: "auto",
|
|
220
|
-
...
|
|
220
|
+
...B
|
|
221
221
|
},
|
|
222
222
|
targetElement: e.targetElement
|
|
223
223
|
} : {
|
|
@@ -225,18 +225,18 @@ const ze = {
|
|
|
225
225
|
offset: [0, 8],
|
|
226
226
|
position: "bottom-start",
|
|
227
227
|
style: {
|
|
228
|
-
display:
|
|
229
|
-
...
|
|
228
|
+
display: y.value ? "block" : "none",
|
|
229
|
+
...B
|
|
230
230
|
},
|
|
231
231
|
targetElement: e.targetElement
|
|
232
232
|
};
|
|
233
233
|
});
|
|
234
234
|
return t({
|
|
235
|
-
onOutsideDropdownClick:
|
|
236
|
-
}), { __sfc: !0, slots: a, emit: o, props: e, selectedValue: s, multiple: l, dropdownOptionsListboxRef: i, t:
|
|
235
|
+
onOutsideDropdownClick: x
|
|
236
|
+
}), { __sfc: !0, slots: a, emit: o, props: e, selectedValue: s, multiple: l, dropdownOptionsListboxRef: i, t: d, isDropdownOpen: y, noResultsMessage: r, conditionalClasses: c, conditionalListboxClasses: _, actions: C, internalSelectedValue: v, listeners: O, onEscapeKey: L, onOutsideDropdownClick: x, popperContainerOrPopoverComponent: b, popperContainerOrPopoverProps: I, BentoListbox: Y };
|
|
237
237
|
}
|
|
238
238
|
});
|
|
239
|
-
var
|
|
239
|
+
var Ve = function() {
|
|
240
240
|
var t = this, o = t._self._c, e = t._self._setupProxy;
|
|
241
241
|
return o(e.popperContainerOrPopoverComponent, t._b({ tag: "component", staticClass: "b-dropdown-options-container", class: e.conditionalClasses }, "component", e.popperContainerOrPopoverProps, !1), [o("div", { on: { keydown: function(a) {
|
|
242
242
|
return !a.type.indexOf("key") && t._k(a.keyCode, "esc", 27, a.key, ["Esc", "Escape"]) ? null : e.onEscapeKey.apply(null, arguments);
|
|
@@ -245,55 +245,55 @@ var qe = function() {
|
|
|
245
245
|
return [t._t(s, null, null, l)];
|
|
246
246
|
} };
|
|
247
247
|
})], null, !0) }, e.listeners))], 1)]);
|
|
248
|
-
},
|
|
249
|
-
Ue,
|
|
250
|
-
qe,
|
|
248
|
+
}, Je = [], Ye = /* @__PURE__ */ K(
|
|
251
249
|
He,
|
|
250
|
+
Ve,
|
|
251
|
+
Je,
|
|
252
252
|
!1,
|
|
253
253
|
null,
|
|
254
254
|
"d774d15c"
|
|
255
255
|
);
|
|
256
|
-
const
|
|
257
|
-
let
|
|
258
|
-
const
|
|
256
|
+
const Ze = Ye.exports;
|
|
257
|
+
let pe = 0;
|
|
258
|
+
const Qe = {
|
|
259
259
|
beforeCreate() {
|
|
260
|
-
this.uuid =
|
|
260
|
+
this.uuid = pe.toString(), pe += 1;
|
|
261
261
|
}
|
|
262
262
|
};
|
|
263
|
-
var
|
|
263
|
+
var Xe = function() {
|
|
264
264
|
var t = this, o = t._self._c;
|
|
265
265
|
return o("svg", t._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", t.$attrs, !1), [t.$attrs["svg-title"] ? o("title", [t._v(t._s(t.$attrs["svg-title"]))]) : t._e(), o("path", { attrs: { fill: "#001222", d: "M5.00011 5.43922L8.00011 8.43922L11.0001 5.43922L12.0608 6.49988L8.00011 10.5605L3.93945 6.49988L5.00011 5.43922Z" } })]);
|
|
266
|
-
},
|
|
267
|
-
Ye,
|
|
268
|
-
Ze,
|
|
266
|
+
}, Ge = [], et = /* @__PURE__ */ K(
|
|
269
267
|
Qe,
|
|
268
|
+
Xe,
|
|
269
|
+
Ge,
|
|
270
270
|
!1,
|
|
271
271
|
null,
|
|
272
272
|
null
|
|
273
273
|
);
|
|
274
|
-
const
|
|
275
|
-
let
|
|
276
|
-
const
|
|
274
|
+
const tt = et.exports;
|
|
275
|
+
let fe = 0;
|
|
276
|
+
const ot = {
|
|
277
277
|
beforeCreate() {
|
|
278
|
-
this.uuid =
|
|
278
|
+
this.uuid = fe.toString(), fe += 1;
|
|
279
279
|
}
|
|
280
280
|
};
|
|
281
|
-
var
|
|
281
|
+
var at = function() {
|
|
282
282
|
var t = this, o = t._self._c;
|
|
283
283
|
return o("svg", t._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", t.$attrs, !1), [t.$attrs["svg-title"] ? o("title", [t._v(t._s(t.$attrs["svg-title"]))]) : t._e(), o("path", { attrs: { fill: "#001222", d: "M10.9999 10.5608L7.9999 7.56077L4.9999 10.5608L3.93924 9.50011L7.9999 5.43945L12.0606 9.50011L10.9999 10.5608Z" } })]);
|
|
284
|
-
},
|
|
285
|
-
et,
|
|
286
|
-
tt,
|
|
284
|
+
}, nt = [], lt = /* @__PURE__ */ K(
|
|
287
285
|
ot,
|
|
286
|
+
at,
|
|
287
|
+
nt,
|
|
288
288
|
!1,
|
|
289
289
|
null,
|
|
290
290
|
null
|
|
291
291
|
);
|
|
292
|
-
const
|
|
292
|
+
const st = lt.exports, it = A({
|
|
293
293
|
name: "dropdown-small-textbox",
|
|
294
294
|
inheritAttrs: !1
|
|
295
|
-
}),
|
|
296
|
-
...
|
|
295
|
+
}), rt = /* @__PURE__ */ A({
|
|
296
|
+
...it,
|
|
297
297
|
props: {
|
|
298
298
|
/**
|
|
299
299
|
* The number of additional items that have been selected in the dropdown.
|
|
@@ -354,48 +354,48 @@ const nt = at.exports, lt = N({
|
|
|
354
354
|
},
|
|
355
355
|
emits: ["clear", "close", "input", "keydown", "open"],
|
|
356
356
|
setup(n, { expose: t, emit: o }) {
|
|
357
|
-
const e = n, a =
|
|
358
|
-
[`b-dropdown-small-textbox--${
|
|
359
|
-
[`b-dropdown-small-textbox--${
|
|
360
|
-
[`b-dropdown-small-textbox--${
|
|
357
|
+
const e = n, a = h(null), s = u(() => ({
|
|
358
|
+
[`b-dropdown-small-textbox--${V.DISABLED}`]: e.disabled,
|
|
359
|
+
[`b-dropdown-small-textbox--${V.READONLY}`]: e.readonly,
|
|
360
|
+
[`b-dropdown-small-textbox--${V.OPENED}`]: e.open
|
|
361
361
|
})), l = u(() => e.open && !e.disabled && !e.readonly), i = (v) => {
|
|
362
362
|
o("input", v);
|
|
363
|
-
},
|
|
363
|
+
}, d = (v) => {
|
|
364
364
|
o("keydown", v);
|
|
365
|
-
},
|
|
366
|
-
|
|
365
|
+
}, y = (v) => {
|
|
366
|
+
J(v), o("open");
|
|
367
367
|
}, r = (v) => {
|
|
368
|
-
|
|
369
|
-
},
|
|
370
|
-
|
|
371
|
-
},
|
|
368
|
+
J(v), o("close");
|
|
369
|
+
}, c = (v) => {
|
|
370
|
+
J(v), o("clear");
|
|
371
|
+
}, _ = {
|
|
372
372
|
[P.INPUT]: i,
|
|
373
|
-
[P.OPEN]:
|
|
373
|
+
[P.OPEN]: y,
|
|
374
374
|
[P.CLOSE]: r,
|
|
375
|
-
[P.CLEAR]:
|
|
376
|
-
[P.KEYDOWN]:
|
|
377
|
-
},
|
|
375
|
+
[P.CLEAR]: c,
|
|
376
|
+
[P.KEYDOWN]: d
|
|
377
|
+
}, C = () => {
|
|
378
378
|
a.value.focus();
|
|
379
379
|
};
|
|
380
380
|
return t({
|
|
381
|
-
focus:
|
|
382
|
-
}), { __sfc: !0, emit: o, props: e, baseTextbox: a, conditionalClasses: s, isDropdownOpen: l, onInput: i, onKeyDown:
|
|
381
|
+
focus: C
|
|
382
|
+
}), { __sfc: !0, emit: o, props: e, baseTextbox: a, conditionalClasses: s, isDropdownOpen: l, onInput: i, onKeyDown: d, openDropdown: y, closeDropdown: r, clearValue: c, listeners: _, focus: C, BentoDropdownSize: k, DropdownBaseTextbox: Te, ChevronDownSmallIcon: tt, ChevronUpSmallIcon: st };
|
|
383
383
|
}
|
|
384
384
|
});
|
|
385
|
-
var
|
|
385
|
+
var dt = function() {
|
|
386
386
|
var t = this, o = t._self._c, e = t._self._setupProxy;
|
|
387
387
|
return o("div", { staticClass: "b-dropdown-small-textbox", class: e.conditionalClasses }, [o(e.DropdownBaseTextbox, t._g(t._b({ ref: "baseTextbox", staticClass: "b-dropdown-small-textbox__textbox", attrs: { size: e.BentoDropdownSize.SMALL }, scopedSlots: t._u([{ key: "icon", fn: function() {
|
|
388
388
|
return [o("div", { staticClass: "b-dropdown-small-textbox__chevron" }, [o(e.ChevronUpSmallIcon, { directives: [{ name: "show", rawName: "v-show", value: e.isDropdownOpen, expression: "isDropdownOpen" }], attrs: { "svg-title": "opened" } }), o(e.ChevronDownSmallIcon, { directives: [{ name: "show", rawName: "v-show", value: !e.isDropdownOpen, expression: "!isDropdownOpen" }], attrs: { "svg-title": "closed" } })], 1)];
|
|
389
389
|
}, proxy: !0 }]) }, "dropdown-base-textbox", { ...t.$attrs, ...t.$props }, !1), e.listeners))], 1);
|
|
390
|
-
},
|
|
391
|
-
st,
|
|
392
|
-
it,
|
|
390
|
+
}, ct = [], ut = /* @__PURE__ */ K(
|
|
393
391
|
rt,
|
|
392
|
+
dt,
|
|
393
|
+
ct,
|
|
394
394
|
!1,
|
|
395
395
|
null,
|
|
396
396
|
"d0e53db8"
|
|
397
397
|
);
|
|
398
|
-
const
|
|
398
|
+
const pt = ut.exports, ft = (n, t) => t.value.reduce((o, e) => {
|
|
399
399
|
if (e.items) {
|
|
400
400
|
const a = e.items.filter(
|
|
401
401
|
(l) => n.value.find((i) => i.value === l.value)
|
|
@@ -403,18 +403,18 @@ const ct = dt.exports, ut = (n, t) => t.value.reduce((o, e) => {
|
|
|
403
403
|
a.length === e.items.length ? o.push(e.displayValue ?? e.label) : a.forEach(({ label: l, displayValue: i }) => o.push(i ?? l));
|
|
404
404
|
}
|
|
405
405
|
return n.value.find((a) => a.value === e.value) && o.push(e.displayValue ?? e.label), o;
|
|
406
|
-
}, []).join(", "),
|
|
406
|
+
}, []).join(", "), vt = ({ items: n, placeholder: t, selectedValues: o, isMultiSelect: e }) => {
|
|
407
407
|
const a = u(
|
|
408
408
|
() => e.value && n.value.find((l) => {
|
|
409
409
|
var i;
|
|
410
410
|
return (i = l.items) == null ? void 0 : i.length;
|
|
411
411
|
})
|
|
412
412
|
);
|
|
413
|
-
return u(() => o.value.length ? a.value ?
|
|
414
|
-
},
|
|
413
|
+
return u(() => o.value.length ? a.value ? ft(o, n) : o.value.map(({ label: l, displayValue: i }) => i ?? l).join(", ") : t.value || null);
|
|
414
|
+
}, ye = (n) => {
|
|
415
415
|
var t;
|
|
416
416
|
(t = n.value.$children) == null || t[0].$refs.textbox.focus();
|
|
417
|
-
},
|
|
417
|
+
}, mt = ({
|
|
418
418
|
inputContainerRef: n,
|
|
419
419
|
optionsContainerRef: t,
|
|
420
420
|
selectedValueIndex: o,
|
|
@@ -422,70 +422,65 @@ const ct = dt.exports, ut = (n, t) => t.value.reduce((o, e) => {
|
|
|
422
422
|
isDynamicFltering: a,
|
|
423
423
|
items: s,
|
|
424
424
|
isMultiple: l
|
|
425
|
-
}, i,
|
|
426
|
-
const r = async (
|
|
427
|
-
var
|
|
428
|
-
a.value && await
|
|
429
|
-
},
|
|
430
|
-
var
|
|
431
|
-
a.value && await
|
|
432
|
-
const
|
|
425
|
+
}, i, d, y) => {
|
|
426
|
+
const r = async (m) => {
|
|
427
|
+
var S;
|
|
428
|
+
a.value && await g(), (S = s.value[m]) == null || S.focus();
|
|
429
|
+
}, c = async (m) => {
|
|
430
|
+
var z, R;
|
|
431
|
+
a.value && await g();
|
|
432
|
+
const S = (z = t.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef) == null ? void 0 : z.$el.querySelectorAll(
|
|
433
433
|
"button"
|
|
434
434
|
);
|
|
435
|
-
|
|
436
|
-
},
|
|
437
|
-
var
|
|
438
|
-
return (
|
|
439
|
-
|
|
435
|
+
S.length ? (R = S[m]) == null || R.focus() : r(m);
|
|
436
|
+
}, _ = (m) => {
|
|
437
|
+
var S;
|
|
438
|
+
return (S = t.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef) == null ? void 0 : S.setListboxFocusedIndex(
|
|
439
|
+
m
|
|
440
440
|
);
|
|
441
|
-
},
|
|
442
|
-
|
|
443
|
-
l ?
|
|
441
|
+
}, C = ({ detail: m }) => {
|
|
442
|
+
m.preventDefault(), e.value || d(), g(() => {
|
|
443
|
+
l ? c(0) : (_(o.value), r(o.value));
|
|
444
444
|
});
|
|
445
|
-
}, v = ({ detail:
|
|
446
|
-
|
|
447
|
-
l ?
|
|
445
|
+
}, v = ({ detail: m }) => {
|
|
446
|
+
m.preventDefault(), e.value || d(), g(() => {
|
|
447
|
+
l ? c(0) : (_(o.value), r(o.value));
|
|
448
448
|
});
|
|
449
449
|
}, O = () => {
|
|
450
|
-
e.value || (
|
|
451
|
-
|
|
452
|
-
if (l) {
|
|
453
|
-
const y = t.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children;
|
|
454
|
-
(f = y == null ? void 0 : y[y.length - 1].$el.querySelectorAll('[role="option"]')[s.length - 1]) == null || f.focus();
|
|
455
|
-
} else
|
|
456
|
-
g(s.length - 1), r(s.length - 1);
|
|
450
|
+
e.value || (d(), g(() => {
|
|
451
|
+
_(s.value.length - 1), r(s.value.length - 1);
|
|
457
452
|
}));
|
|
458
|
-
}, C = () => {
|
|
459
|
-
e.value && (m(), ve(n));
|
|
460
453
|
}, L = () => {
|
|
461
|
-
e.value &&
|
|
454
|
+
e.value && (y(), ye(n));
|
|
455
|
+
}, x = () => {
|
|
456
|
+
e.value && y();
|
|
462
457
|
}, b = () => {
|
|
463
|
-
e.value ||
|
|
464
|
-
|
|
458
|
+
e.value || d(), g(() => {
|
|
459
|
+
r(0);
|
|
465
460
|
});
|
|
466
|
-
}, I = ({ detail:
|
|
467
|
-
|
|
468
|
-
l ?
|
|
461
|
+
}, I = ({ detail: m }) => {
|
|
462
|
+
m.preventDefault(), i(), e.value && g(() => {
|
|
463
|
+
l ? c(0) : (_(o.value), r(o.value));
|
|
469
464
|
});
|
|
470
|
-
},
|
|
471
|
-
|
|
472
|
-
l ?
|
|
465
|
+
}, B = ({ detail: m }) => {
|
|
466
|
+
m.preventDefault(), i(), e.value && g(() => {
|
|
467
|
+
l ? c(0) : (_(o.value), r(o.value));
|
|
473
468
|
});
|
|
474
469
|
};
|
|
475
470
|
return u(() => ({
|
|
476
|
-
...a.value ? {} : { [
|
|
477
|
-
[
|
|
478
|
-
[
|
|
479
|
-
[
|
|
480
|
-
[
|
|
481
|
-
[
|
|
482
|
-
[
|
|
483
|
-
[
|
|
471
|
+
...a.value ? {} : { [D.SPACE]: I },
|
|
472
|
+
[D.ENTER]: B,
|
|
473
|
+
[D.ARROW_DOWN]: C,
|
|
474
|
+
[D.ARROW_UP]: v,
|
|
475
|
+
[D.END]: O,
|
|
476
|
+
[D.ESCAPE]: L,
|
|
477
|
+
[D.HOME]: b,
|
|
478
|
+
[D.TAB]: x
|
|
484
479
|
}));
|
|
485
|
-
},
|
|
480
|
+
}, yt = ({ inputContainerRef: n, isDropdownOpen: t }, o) => {
|
|
486
481
|
const e = () => {
|
|
487
|
-
t.value && o(),
|
|
488
|
-
|
|
482
|
+
t.value && o(), g(() => {
|
|
483
|
+
ye(n);
|
|
489
484
|
});
|
|
490
485
|
};
|
|
491
486
|
return {
|
|
@@ -495,18 +490,18 @@ const ct = dt.exports, ut = (n, t) => t.value.reduce((o, e) => {
|
|
|
495
490
|
[p.SPACE]: e
|
|
496
491
|
};
|
|
497
492
|
};
|
|
498
|
-
function
|
|
499
|
-
const a =
|
|
500
|
-
return
|
|
493
|
+
function bt(n, t, o, e) {
|
|
494
|
+
const a = h(n), s = h(t), l = (d, y = []) => y.flatMap((r) => r.label.toLocaleLowerCase().includes(d) ? e != null && e.value && r.items ? [...l(d, r.items)] : [r, ...l(d, r.items)] : r.items ? [...l(d, r.items)] : []);
|
|
495
|
+
return Q(a, () => {
|
|
501
496
|
o !== void 0 && o(a.value);
|
|
502
497
|
}), u(() => {
|
|
503
498
|
if (!a.value || o !== void 0)
|
|
504
499
|
return s.value;
|
|
505
|
-
const
|
|
506
|
-
return l(
|
|
500
|
+
const d = a.value.toLocaleLowerCase();
|
|
501
|
+
return l(d, s.value);
|
|
507
502
|
});
|
|
508
503
|
}
|
|
509
|
-
const
|
|
504
|
+
const _t = {
|
|
510
505
|
"en-US": {
|
|
511
506
|
all: "All",
|
|
512
507
|
ariaLabelFallback: "Dropdown",
|
|
@@ -520,15 +515,15 @@ const yt = {
|
|
|
520
515
|
all: "Todos",
|
|
521
516
|
clearFilter: "Limpar filtro"
|
|
522
517
|
}
|
|
523
|
-
},
|
|
524
|
-
i18n: { messages:
|
|
518
|
+
}, gt = Symbol("input field component injection key"), jt = Symbol("input field hint injection key"), Wt = Symbol("input field parent component injection key"), ht = A({
|
|
519
|
+
i18n: { messages: _t },
|
|
525
520
|
name: "b-dropdown",
|
|
526
521
|
components: {
|
|
527
|
-
DropdownInputDefault:
|
|
528
|
-
DropdownInputSmall:
|
|
522
|
+
DropdownInputDefault: Ne,
|
|
523
|
+
DropdownInputSmall: pt
|
|
529
524
|
}
|
|
530
|
-
}),
|
|
531
|
-
...
|
|
525
|
+
}), Ct = /* @__PURE__ */ A({
|
|
526
|
+
...ht,
|
|
532
527
|
props: {
|
|
533
528
|
/**
|
|
534
529
|
* @deprecated from version 2.0.0. Use the aria-label attribute instead.
|
|
@@ -619,8 +614,8 @@ const yt = {
|
|
|
619
614
|
*/
|
|
620
615
|
lazyLoadType: {
|
|
621
616
|
type: String,
|
|
622
|
-
default:
|
|
623
|
-
validator: (n) => Object.values(
|
|
617
|
+
default: Y.props.lazyLoadType.default,
|
|
618
|
+
validator: (n) => Object.values(Z).includes(n)
|
|
624
619
|
},
|
|
625
620
|
/*
|
|
626
621
|
* If enabled, the user will be able to select multiple items.
|
|
@@ -660,7 +655,7 @@ const yt = {
|
|
|
660
655
|
size: {
|
|
661
656
|
type: String,
|
|
662
657
|
default: null,
|
|
663
|
-
validator: (n) => Object.values(
|
|
658
|
+
validator: (n) => Object.values(k).includes(n)
|
|
664
659
|
},
|
|
665
660
|
/**
|
|
666
661
|
* If enabled, dropdown will display non-selectable, static categories
|
|
@@ -704,102 +699,118 @@ const yt = {
|
|
|
704
699
|
},
|
|
705
700
|
emits: ["input", "show-more"],
|
|
706
701
|
setup(n, { expose: t, emit: o }) {
|
|
707
|
-
var
|
|
708
|
-
const e = n, a =
|
|
702
|
+
var de;
|
|
703
|
+
const e = n, a = De(), s = ve(), l = Me(s), { t: i } = X(), d = h(null), y = h(null), r = h(null), c = h(!1), _ = F("bento-dropdown-options-container"), C = F("dropdown-label"), v = F("dropdown-description"), O = F("dropdown-error"), { isReadOnly: L } = Re(w(e, "readonly")), { cachedSelectedListboxOptions: x, cachedListboxSelectedValues: b, setCachedValues: I } = $e(
|
|
709
704
|
w(e, "items"),
|
|
710
705
|
w(e, "value"),
|
|
711
706
|
w(e, "multiple"),
|
|
712
707
|
w(e, "enableValueLabelPair")
|
|
713
|
-
),
|
|
708
|
+
), B = h(a["aria-label"]), { ariaLabel: T, label: m } = me(e), S = u(() => i("ariaLabelFallback")), z = Ae({
|
|
714
709
|
// TODO: take ariaLabel ref away when aria-label prop is removed
|
|
715
|
-
ariaLabel: T.value ||
|
|
716
|
-
label:
|
|
717
|
-
defaultFallback:
|
|
718
|
-
}), R = e.size ===
|
|
710
|
+
ariaLabel: T.value || B,
|
|
711
|
+
label: m,
|
|
712
|
+
defaultFallback: S
|
|
713
|
+
}), R = e.size === k.SMALL || Be(gt, !1), be = u(() => R ? k.SMALL : k.DEFAULT), _e = u(() => ({
|
|
719
714
|
"b-dropdown--condensed": e.condensed
|
|
720
|
-
})),
|
|
715
|
+
})), ge = u(() => ({
|
|
721
716
|
"b-dropdown__description--error": !!e.errorMessage
|
|
722
|
-
})),
|
|
723
|
-
items:
|
|
717
|
+
})), N = h(""), M = w(e, "items"), G = w(e, "staticCategories"), U = bt(N, M, (de = e == null ? void 0 : e.search) == null ? void 0 : de.searchEvent, G), q = u(() => e.dynamicFiltering && !!N.value), he = vt({
|
|
718
|
+
items: M,
|
|
724
719
|
placeholder: w(e, "placeholder"),
|
|
725
720
|
isMultiSelect: w(e, "multiple"),
|
|
726
|
-
selectedValues:
|
|
727
|
-
}),
|
|
721
|
+
selectedValues: x
|
|
722
|
+
}), Ce = u(() => {
|
|
728
723
|
if (e != null && e.multiple && Array.isArray(e.value))
|
|
729
724
|
return e.items.filter(
|
|
730
|
-
({ value:
|
|
725
|
+
({ value: f }) => (e == null ? void 0 : e.value) && (e == null ? void 0 : e.value).includes(f)
|
|
731
726
|
);
|
|
732
727
|
if (!e.multiple && e.staticCategories) {
|
|
733
|
-
const
|
|
734
|
-
(
|
|
728
|
+
const f = e.items.find(
|
|
729
|
+
($) => $.items.some((Ee) => Ee.value === e.value)
|
|
735
730
|
);
|
|
736
|
-
return
|
|
731
|
+
return f ? f.items.find(($) => $.value === e.value) : null;
|
|
737
732
|
}
|
|
738
|
-
return e.items.find(({ value:
|
|
739
|
-
}),
|
|
740
|
-
const
|
|
741
|
-
return
|
|
742
|
-
}), { isMultiLevelSelect:
|
|
733
|
+
return e.items.find(({ value: f }) => f === (e == null ? void 0 : e.value));
|
|
734
|
+
}), ee = u(() => {
|
|
735
|
+
const f = U.value.findIndex(({ value: E }) => e.value === E);
|
|
736
|
+
return f > -1 ? f : 0;
|
|
737
|
+
}), { isMultiLevelSelect: te, flattenedItemsList: oe } = Pe(M), Se = u(() => {
|
|
743
738
|
if (e.multiple) {
|
|
744
|
-
const
|
|
745
|
-
return
|
|
739
|
+
const f = Array.isArray(e.value) ? e.value.length : 0, E = te.value ? oe.value.length : M.value.length;
|
|
740
|
+
return f === 0 ? null : !e.hasMoreItems && E > 0 && E === f ? i("all") : f;
|
|
746
741
|
}
|
|
747
742
|
return null;
|
|
748
|
-
}),
|
|
743
|
+
}), we = u(
|
|
749
744
|
() => `${e.description ? v : ""} ${e.errorMessage ? O : ""}`.trim() || null
|
|
750
|
-
),
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
},
|
|
755
|
-
|
|
756
|
-
},
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
},
|
|
745
|
+
), ae = () => {
|
|
746
|
+
L.value || (c.value = !0, g(() => {
|
|
747
|
+
W();
|
|
748
|
+
}));
|
|
749
|
+
}, j = () => {
|
|
750
|
+
c.value = !1;
|
|
751
|
+
}, ne = () => {
|
|
752
|
+
L.value || (c.value = !c.value, g(() => {
|
|
753
|
+
W();
|
|
754
|
+
}), q.value && (N.value = ""));
|
|
755
|
+
}, Le = () => {
|
|
756
|
+
q.value && (N.value = ""), c.value && (c.value = !1, r.value.onOutsideDropdownClick());
|
|
757
|
+
}, le = (f) => {
|
|
758
|
+
e.multiple || (N.value = "", c.value = !1), I(f), o("input", b.value);
|
|
759
|
+
}, se = () => {
|
|
761
760
|
o(p.SHOW_MORE);
|
|
762
|
-
},
|
|
761
|
+
}, H = h([]), W = () => {
|
|
762
|
+
var E;
|
|
763
|
+
const f = (E = r.value) == null ? void 0 : E.$el;
|
|
764
|
+
!f || f.nodeType === Node.COMMENT_NODE || (H.value = Array.from(
|
|
765
|
+
f.querySelectorAll('[role="option"]')
|
|
766
|
+
).filter(($) => $.checkVisibility()));
|
|
767
|
+
};
|
|
768
|
+
Q(U, () => {
|
|
769
|
+
g(() => {
|
|
770
|
+
W();
|
|
771
|
+
});
|
|
772
|
+
});
|
|
773
|
+
const xe = mt(
|
|
763
774
|
{
|
|
764
|
-
inputContainerRef:
|
|
775
|
+
inputContainerRef: d,
|
|
765
776
|
optionsContainerRef: r,
|
|
766
|
-
selectedValueIndex:
|
|
767
|
-
isDropdownOpen:
|
|
777
|
+
selectedValueIndex: ee,
|
|
778
|
+
isDropdownOpen: c,
|
|
768
779
|
isDynamicFltering: w(e, "dynamicFiltering"),
|
|
769
|
-
items:
|
|
780
|
+
items: H,
|
|
770
781
|
isMultiple: e.multiple
|
|
771
782
|
},
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
),
|
|
783
|
+
ne,
|
|
784
|
+
ae,
|
|
785
|
+
j
|
|
786
|
+
), ie = yt(
|
|
776
787
|
{
|
|
777
|
-
inputContainerRef:
|
|
778
|
-
isDropdownOpen:
|
|
788
|
+
inputContainerRef: d,
|
|
789
|
+
isDropdownOpen: c
|
|
779
790
|
},
|
|
780
|
-
|
|
781
|
-
),
|
|
782
|
-
[p.CLOSE_DROPDOWN]:
|
|
783
|
-
[p.SELECT]:
|
|
784
|
-
[p.SHOW_MORE]:
|
|
785
|
-
...
|
|
791
|
+
j
|
|
792
|
+
), Oe = {
|
|
793
|
+
[p.CLOSE_DROPDOWN]: j,
|
|
794
|
+
[p.SELECT]: le,
|
|
795
|
+
[p.SHOW_MORE]: se,
|
|
796
|
+
...ie
|
|
786
797
|
};
|
|
787
|
-
e.error &&
|
|
798
|
+
e.error && ce(
|
|
788
799
|
'BentoDropdown "error" property',
|
|
789
800
|
`Use the BentoDropdown "errorMessage" property instead to indicate that there is a modifier error.
|
|
790
801
|
Having the field as "undefined" will hide/remove the error.
|
|
791
802
|
<bento-dropdown errorMessage="Error message text" />`,
|
|
792
803
|
"2.0.0"
|
|
793
|
-
), e.size &&
|
|
794
|
-
const
|
|
795
|
-
|
|
804
|
+
), e.size && ce('BentoDropdown "size" property', "Do not use. Only 'default' size should be used.", "2.0.0");
|
|
805
|
+
const re = () => {
|
|
806
|
+
d.value.focus();
|
|
796
807
|
};
|
|
797
808
|
return t({
|
|
798
|
-
focus:
|
|
799
|
-
}), { __sfc: !0, attrs: a, slots: s, hasSlot: l, props: e, emit: o, t: i, inputContainerRef:
|
|
809
|
+
focus: re
|
|
810
|
+
}), { __sfc: !0, attrs: a, slots: s, hasSlot: l, props: e, emit: o, t: i, inputContainerRef: d, inputContainerRefWrapper: y, optionsContainerRef: r, isDropdownOpen: c, dropdownOptionsContainerId: _, labelId: C, descriptionId: v, errorId: O, isReadOnly: L, cachedSelectedListboxOptions: x, cachedListboxSelectedValues: b, setCachedValues: I, ariaLabelAttribute: B, ariaLabel: T, label: m, computedAriaLabelFallbackMessage: S, computedAriaLabel: z, isInputComponent: R, computedSize: be, conditionalClasses: _e, descriptionConditionalClasses: ge, searchTerm: N, items: M, staticCategories: G, filteredItems: U, isSearching: q, displayValue: he, selectedValueItem: Ce, selectedValueIndex: ee, isMultiLevelSelect: te, flattenedItemsList: oe, additionalItemsSelected: Se, ariaDescribedBy: we, openDropdown: ae, closeDropdown: j, toggleDropdown: ne, clickOutsideDropdown: Le, onOptionSelected: le, emitShowMoreEvent: se, visibleDomOptions: H, updateVisibleDomOptions: W, textboxKeyboardNavigationListeners: xe, listboxKeyboardNavigationListeners: ie, listboxListeners: Oe, focus: re, BentoDropdownOptionsContainer: Ze, BentoTypography: Ie, ErrorMessage: ze, FieldLabel: Ke, vBentoClickOutsideDirective: Fe, vBentoKeyboardNavigationDirective: ke };
|
|
800
811
|
}
|
|
801
812
|
});
|
|
802
|
-
var
|
|
813
|
+
var St = function() {
|
|
803
814
|
var a;
|
|
804
815
|
var t = this, o = t._self._c, e = t._self._setupProxy;
|
|
805
816
|
return o("div", { directives: [{ name: "bento-click-outside-directive", rawName: "v-bento-click-outside-directive", value: e.clickOutsideDropdown, expression: "clickOutsideDropdown" }], staticClass: "b-dropdown", class: e.conditionalClasses }, [e.label ? o(e.FieldLabel, { attrs: { id: e.labelId, condensed: t.condensed, label: e.label, "tooltip-text": t.tooltipText, optional: t.optional, required: t.required } }) : t._e(), o("div", t._g({ directives: [{ name: "bento-keyboard-navigation-directive", rawName: "v-bento-keyboard-navigation-directive" }], ref: "inputContainerRefWrapper" }, e.textboxKeyboardNavigationListeners), [o(e.computedSize, { ref: "inputContainerRef", tag: "component", attrs: { condensed: t.condensed, value: e.searchTerm, "additional-items-selected": e.additionalItemsSelected, "aria-controls": e.dropdownOptionsContainerId, ariaExpanded: e.isDropdownOpen, "aria-labelledby": e.label ? e.labelId : null, "aria-describedby": e.ariaDescribedBy, "aria-label": e.computedAriaLabel, "aria-readonly": e.isReadOnly, readonly: e.isReadOnly, disabled: t.disabled, "display-value": e.displayValue, "dynamic-filtering": t.dynamicFiltering, "is-invalid": !!t.errorMessage || t.error, multiple: t.multiple, open: e.isDropdownOpen, "selected-value-item": e.isInputComponent ? void 0 : e.selectedValueItem, "show-slot-content-in-multiple": t.showSlotContentInMultiple }, on: { input: function(s) {
|
|
@@ -815,20 +826,20 @@ var ht = function() {
|
|
|
815
826
|
})], null, !0) }, e.listboxListeners)) : t._e(), t.errorMessage ? o(e.ErrorMessage, { staticClass: "b-dropdown__error-message", attrs: { id: e.errorId, "error-message": t.errorMessage } }) : t._e(), t.description || e.hasSlot("description") ? o(e.BentoTypography, { staticClass: "b-dropdown__description", class: e.descriptionConditionalClasses, attrs: { id: e.descriptionId, el: "span" } }, [t._t("description", function() {
|
|
816
827
|
return [t._v(" " + t._s(t.description) + " ")];
|
|
817
828
|
})], 2) : t._e()], 1);
|
|
818
|
-
},
|
|
819
|
-
|
|
820
|
-
ht,
|
|
829
|
+
}, wt = [], Lt = /* @__PURE__ */ K(
|
|
830
|
+
Ct,
|
|
821
831
|
St,
|
|
832
|
+
wt,
|
|
822
833
|
!1,
|
|
823
834
|
null,
|
|
824
|
-
"
|
|
835
|
+
"443cef1f"
|
|
825
836
|
);
|
|
826
|
-
const
|
|
837
|
+
const Ut = Lt.exports;
|
|
827
838
|
export {
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
839
|
+
Ut as B,
|
|
840
|
+
jt as I,
|
|
841
|
+
gt as a,
|
|
842
|
+
Wt as b,
|
|
843
|
+
bt as u
|
|
833
844
|
};
|
|
834
|
-
//# sourceMappingURL=dropdown.
|
|
845
|
+
//# sourceMappingURL=dropdown.DV7uhHNP.js.map
|