@adyen/bento-vue3 1.64.1 → 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/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/checkbox.js +2 -2
- package/dist/chunks/{checkbox-group.BZIl5tRV.js → checkbox-group.BKsddn67.js} +2 -2
- package/dist/chunks/{checkbox-group.BZIl5tRV.js.map → checkbox-group.BKsddn67.js.map} +1 -1
- package/dist/chunks/{checkbox.8caojfCf.js → checkbox.C1y3Ad4Z.js} +18 -18
- package/dist/chunks/{checkbox.8caojfCf.js.map → checkbox.C1y3Ad4Z.js.map} +1 -1
- package/dist/chunks/{code-snippet.iVFAaX-7.js → code-snippet.Bj5SAyT-.js} +2 -2
- package/dist/chunks/{code-snippet.iVFAaX-7.js.map → code-snippet.Bj5SAyT-.js.map} +1 -1
- package/dist/chunks/{data-grid.BpuoBniw.js → data-grid.DroQMKSc.js} +660 -654
- package/dist/chunks/{data-grid.BpuoBniw.js.map → data-grid.DroQMKSc.js.map} +1 -1
- package/dist/chunks/{date-picker.CRZaa2pG.js → date-picker.BuX2J2OW.js} +14 -14
- package/dist/chunks/{date-picker.CRZaa2pG.js.map → date-picker.BuX2J2OW.js.map} +1 -1
- package/dist/chunks/{date-range-picker.Wd3Wj2xh.js → date-range-picker.C2x1_xoz.js} +22 -22
- package/dist/chunks/{date-range-picker.Wd3Wj2xh.js.map → date-range-picker.C2x1_xoz.js.map} +1 -1
- package/dist/chunks/{dropdown-tag.C8iqeoRx.js → dropdown-tag.Dm-1VD3B.js} +2 -2
- package/dist/chunks/{dropdown-tag.C8iqeoRx.js.map → dropdown-tag.Dm-1VD3B.js.map} +1 -1
- package/dist/chunks/{dropdown.UapzImAi.js → dropdown.Bj6DK-2v.js} +321 -310
- package/dist/chunks/dropdown.Bj6DK-2v.js.map +1 -0
- package/dist/chunks/{filter-bar.n8rNb16m.js → filter-bar.BvInaVGL.js} +7 -7
- package/dist/chunks/{filter-bar.n8rNb16m.js.map → filter-bar.BvInaVGL.js.map} +1 -1
- package/dist/chunks/{header-with-views.CAPWxTOO.js → header-with-views.De0oVJXS.js} +3 -3
- package/dist/chunks/{header-with-views.CAPWxTOO.js.map → header-with-views.De0oVJXS.js.map} +1 -1
- package/dist/chunks/{input-field-password.COKWNkFD.js → input-field-password.CJOf1GlS.js} +3 -3
- package/dist/chunks/{input-field-password.COKWNkFD.js.map → input-field-password.CJOf1GlS.js.map} +1 -1
- package/dist/chunks/{input-field-phone-number.BcuBaX7v.js → input-field-phone-number.DVliTkE3.js} +3 -3
- package/dist/chunks/{input-field-phone-number.BcuBaX7v.js.map → input-field-phone-number.DVliTkE3.js.map} +1 -1
- package/dist/chunks/{input-field.DyLJYbGL.js → input-field.xUQT0LXI.js} +2 -2
- package/dist/chunks/{input-field.DyLJYbGL.js.map → input-field.xUQT0LXI.js.map} +1 -1
- package/dist/chunks/{pagination.i2eNp6n4.js → pagination.D6A7TX6J.js} +2 -2
- package/dist/chunks/{pagination.i2eNp6n4.js.map → pagination.D6A7TX6J.js.map} +1 -1
- package/dist/chunks/{rich-text-editor.CE7kjKfA.js → rich-text-editor.BDLncrV5.js} +2 -2
- package/dist/chunks/{rich-text-editor.CE7kjKfA.js.map → rich-text-editor.BDLncrV5.js.map} +1 -1
- package/dist/chunks/{search-bar.g_dBJXfU.js → search-bar.Cngs3uYZ.js} +3 -3
- package/dist/chunks/{search-bar.g_dBJXfU.js.map → search-bar.Cngs3uYZ.js.map} +1 -1
- package/dist/chunks/{secondary-nav.Dy9Abrau.js → secondary-nav.ByCa4wiA.js} +2 -2
- package/dist/chunks/{secondary-nav.Dy9Abrau.js.map → secondary-nav.ByCa4wiA.js.map} +1 -1
- package/dist/chunks/{selection-card-group.TPoxTPl3.js → selection-card-group.9wJy7FC2.js} +9 -9
- package/dist/chunks/{selection-card-group.TPoxTPl3.js.map → selection-card-group.9wJy7FC2.js.map} +1 -1
- package/dist/chunks/{use-cached-selected-values.CatIU1_1.js → use-cached-selected-values.CEwKqYIe.js} +616 -607
- package/dist/chunks/{use-cached-selected-values.CatIU1_1.js.map → use-cached-selected-values.CEwKqYIe.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 +19 -19
- 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/rich-text-editor.js +1 -1
- package/dist/search-bar.js +2 -2
- package/dist/secondary-nav.js +1 -1
- package/dist/selection-card.js +1 -1
- package/dist/web-types.json +1 -1
- package/package.json +6 -6
- package/dist/chunks/dropdown.UapzImAi.js.map +0 -1
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { ref as w, watch as
|
|
2
|
-
import { d as
|
|
1
|
+
import { ref as w, watch as be, computed as p, defineComponent as j, useSlots as Ne, toRefs as Ie, createBlock as K, openBlock as L, resolveDynamicComponent as Ae, mergeProps as P, withCtx as z, createElementVNode as te, withKeys as Xe, unref as n, createVNode as Q, toHandlers as G, createSlots as ue, renderList as ce, renderSlot as X, normalizeProps as pe, guardReactiveProps as fe, createElementBlock as k, createCommentVNode as F, toDisplayString as ge, normalizeClass as me, withDirectives as ee, vShow as Oe, nextTick as E, useAttrs as Ge, toRef as B, inject as et, createTextVNode as tt } from "vue";
|
|
2
|
+
import { d as xe, B as at } from "./typography.DN5eC5ch.js";
|
|
3
|
+
import { a as re, b as V, c as lt, B as _, D as ot } from "./dropdown-default-textbox.B05elQig.js";
|
|
4
|
+
/* empty css */
|
|
5
|
+
import { _ as Y } from "./_plugin-vue_export-helper.CHgC5LLL.js";
|
|
6
|
+
import { s as de } from "./events.FNmSWp_P.js";
|
|
3
7
|
import { g as J } from "./generate-uid.NJ8tVoha.js";
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { B as
|
|
8
|
-
import {
|
|
9
|
-
import { B as
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import { F as ut, E as ct } from "./error-message.DZWphzoT.js";
|
|
14
|
-
import { P as xe } from "./popper-container.b5h4zYgT.js";
|
|
8
|
+
import { u as nt } from "./aria-label.CaUURpnB.js";
|
|
9
|
+
import { u as he } from "./i18n.B6g5VX0q.js";
|
|
10
|
+
import { u as st } from "./use-form-layout-loading.D3lALhtC.js";
|
|
11
|
+
import { B as it } from "./directive.Cbdox5VL.js";
|
|
12
|
+
import { B as I, a as rt } from "./keyboard-navigation.CqgGzfZQ.js";
|
|
13
|
+
import { a as m, b as ve, B as ye, c as dt, u as ut } from "./use-cached-selected-values.CEwKqYIe.js";
|
|
14
|
+
import { u as ct } from "./use-has-slot.B7eQSabc.js";
|
|
15
|
+
import { F as pt, E as ft } from "./error-message.DZWphzoT.js";
|
|
16
|
+
import { P as Be } from "./popper-container.b5h4zYgT.js";
|
|
15
17
|
import "./popper-container.types.BCZMbVFD.js";
|
|
16
|
-
import { B as
|
|
17
|
-
import { _ as Y } from "./_plugin-vue_export-helper.CHgC5LLL.js";
|
|
18
|
-
/* empty css */
|
|
18
|
+
import { B as mt } from "./popover.maCMPyz8.js";
|
|
19
19
|
import "../assets/dropdown.css";
|
|
20
|
-
const
|
|
20
|
+
const Se = {
|
|
21
21
|
"en-US": {
|
|
22
22
|
apply: "Apply",
|
|
23
23
|
cancel: "Cancel",
|
|
@@ -31,62 +31,62 @@ const be = {
|
|
|
31
31
|
apply: "Aplicar",
|
|
32
32
|
cancel: "Cancelar"
|
|
33
33
|
}
|
|
34
|
-
},
|
|
35
|
-
const o = w(e.value), { t: l } =
|
|
36
|
-
|
|
34
|
+
}, vt = (e, i, s, a) => {
|
|
35
|
+
const o = w(e.value), { t: l } = he({ messages: Se });
|
|
36
|
+
be(e, () => {
|
|
37
37
|
o.value = e.value;
|
|
38
38
|
});
|
|
39
39
|
const t = p(
|
|
40
40
|
() => JSON.stringify(o.value) === JSON.stringify(e.value)
|
|
41
|
-
),
|
|
42
|
-
a(
|
|
43
|
-
},
|
|
44
|
-
o.value = e.value, a(
|
|
45
|
-
},
|
|
41
|
+
), u = () => {
|
|
42
|
+
a(m.SELECT, o.value), a(m.CLOSE_DROPDOWN);
|
|
43
|
+
}, v = () => {
|
|
44
|
+
o.value = e.value, a(m.CLOSE_DROPDOWN);
|
|
45
|
+
}, g = () => {
|
|
46
46
|
s.value && i.value && (o.value = e.value);
|
|
47
47
|
}, r = p(() => [
|
|
48
48
|
{
|
|
49
49
|
title: l("apply"),
|
|
50
|
-
event:
|
|
50
|
+
event: u,
|
|
51
51
|
disabled: t.value
|
|
52
52
|
},
|
|
53
53
|
{
|
|
54
54
|
title: l("cancel"),
|
|
55
|
-
event:
|
|
55
|
+
event: v
|
|
56
56
|
}
|
|
57
|
-
]),
|
|
58
|
-
o.value = S, i.value || a(
|
|
59
|
-
},
|
|
60
|
-
|
|
57
|
+
]), b = (S) => {
|
|
58
|
+
o.value = S, i.value || a(m.SELECT, S);
|
|
59
|
+
}, d = (S) => {
|
|
60
|
+
b(S), a(m.TAB);
|
|
61
61
|
}, x = (S) => {
|
|
62
|
-
|
|
63
|
-
},
|
|
64
|
-
|
|
65
|
-
},
|
|
66
|
-
|
|
67
|
-
},
|
|
68
|
-
a(
|
|
69
|
-
},
|
|
70
|
-
[
|
|
71
|
-
[
|
|
72
|
-
[
|
|
73
|
-
[
|
|
74
|
-
[
|
|
62
|
+
b(S), a(m.ENTER);
|
|
63
|
+
}, D = (S) => {
|
|
64
|
+
b(S), a(m.SPACE);
|
|
65
|
+
}, y = () => {
|
|
66
|
+
v(), a(m.ESCAPE);
|
|
67
|
+
}, T = () => {
|
|
68
|
+
a(m.SHOW_MORE);
|
|
69
|
+
}, C = {
|
|
70
|
+
[m.SELECT]: b,
|
|
71
|
+
[m.SHOW_MORE]: T,
|
|
72
|
+
[m.TAB]: d,
|
|
73
|
+
[m.SPACE]: D,
|
|
74
|
+
[m.ENTER]: x
|
|
75
75
|
};
|
|
76
76
|
return {
|
|
77
77
|
// Values
|
|
78
78
|
actions: r,
|
|
79
79
|
internalSelectedValue: o,
|
|
80
80
|
// Methods
|
|
81
|
-
listeners:
|
|
82
|
-
onEscapeKey:
|
|
83
|
-
onOutsideDropdownClick:
|
|
81
|
+
listeners: C,
|
|
82
|
+
onEscapeKey: y,
|
|
83
|
+
onOutsideDropdownClick: g
|
|
84
84
|
};
|
|
85
|
-
},
|
|
86
|
-
i18n: { messages:
|
|
85
|
+
}, yt = j({
|
|
86
|
+
i18n: { messages: Se },
|
|
87
87
|
name: "bento-dropdown-options-container"
|
|
88
|
-
}),
|
|
89
|
-
...
|
|
88
|
+
}), bt = /* @__PURE__ */ j({
|
|
89
|
+
...yt,
|
|
90
90
|
props: {
|
|
91
91
|
/**
|
|
92
92
|
* Defines a string value that labels an interactive element.
|
|
@@ -145,8 +145,8 @@ const be = {
|
|
|
145
145
|
*/
|
|
146
146
|
lazyLoadType: {
|
|
147
147
|
type: String,
|
|
148
|
-
default:
|
|
149
|
-
validator: (e) => Object.values(
|
|
148
|
+
default: ye.AUTOMATIC,
|
|
149
|
+
validator: (e) => Object.values(ye).includes(e)
|
|
150
150
|
},
|
|
151
151
|
/**
|
|
152
152
|
* Indicates if new options are lazy loading.
|
|
@@ -176,7 +176,7 @@ const be = {
|
|
|
176
176
|
*
|
|
177
177
|
* If enabled, hides the "Select all" checkbox in "multiple" mode.
|
|
178
178
|
*/
|
|
179
|
-
searching:
|
|
179
|
+
searching: ve.props.searching,
|
|
180
180
|
/**
|
|
181
181
|
* If enabled, dropdown will display non-selectable, static categories
|
|
182
182
|
*/
|
|
@@ -185,7 +185,7 @@ const be = {
|
|
|
185
185
|
* Reference to the DOM element or Vue component for positioning
|
|
186
186
|
* the Dropdown container.
|
|
187
187
|
*/
|
|
188
|
-
targetElement: { type:
|
|
188
|
+
targetElement: { type: Be.props.targetElement.type, required: !0 },
|
|
189
189
|
/**
|
|
190
190
|
* Enables virtual scrolling if set to true or by providing an object with itemHeight function.
|
|
191
191
|
* The itemHeight function is used to calculate the height of rendered item given it's index.
|
|
@@ -196,20 +196,20 @@ const be = {
|
|
|
196
196
|
}
|
|
197
197
|
},
|
|
198
198
|
setup(e, { expose: i, emit: s }) {
|
|
199
|
-
const a =
|
|
199
|
+
const a = Ne(), o = s, l = e, { selectedValue: t, multiple: u } = Ie(l), v = w(null), { t: g } = he({ messages: Se }), r = p(() => l.open && !l.disabled), b = p(() => g("noOptionsMatchThisSearch")), d = p(() => ({
|
|
200
200
|
"b-dropdown-options-container--single": !(l != null && l.multiple)
|
|
201
201
|
})), x = p(() => ({
|
|
202
202
|
"b-dropdown-options-container__listbox--single": !(l != null && l.multiple)
|
|
203
|
-
})), { actions:
|
|
204
|
-
var
|
|
203
|
+
})), { actions: D, internalSelectedValue: y, listeners: T, onEscapeKey: C, onOutsideDropdownClick: S } = vt(t, u, r, o), W = p(() => l != null && l.multiple ? mt : Be), U = p(() => {
|
|
204
|
+
var f;
|
|
205
205
|
const A = {
|
|
206
|
-
"min-width": `${(
|
|
206
|
+
"min-width": `${(f = l == null ? void 0 : l.targetElement) == null ? void 0 : f.clientWidth}px`,
|
|
207
207
|
"max-width": "min(500px, 95%)"
|
|
208
208
|
};
|
|
209
209
|
return l != null && l.multiple ? {
|
|
210
210
|
actionsLayout: "space-between",
|
|
211
211
|
ariaLabel: l.ariaLabel,
|
|
212
|
-
actions:
|
|
212
|
+
actions: D.value,
|
|
213
213
|
divider: !0,
|
|
214
214
|
fallbackPosition: ["top-start"],
|
|
215
215
|
id: J(`dropdown-options-${l.id}`),
|
|
@@ -233,41 +233,41 @@ const be = {
|
|
|
233
233
|
});
|
|
234
234
|
return i({
|
|
235
235
|
onOutsideDropdownClick: S
|
|
236
|
-
}), (A,
|
|
237
|
-
class: ["b-dropdown-options-container",
|
|
238
|
-
},
|
|
236
|
+
}), (A, f) => (L(), K(Ae(W.value), P({
|
|
237
|
+
class: ["b-dropdown-options-container", d.value]
|
|
238
|
+
}, U.value), {
|
|
239
239
|
default: z(() => [
|
|
240
240
|
te("div", {
|
|
241
|
-
onKeydown:
|
|
241
|
+
onKeydown: f[0] || (f[0] = Xe(
|
|
242
242
|
//@ts-ignore
|
|
243
|
-
(...
|
|
243
|
+
(...h) => n(C) && n(C)(...h),
|
|
244
244
|
["esc"]
|
|
245
245
|
))
|
|
246
246
|
}, [
|
|
247
|
-
Q(n(
|
|
247
|
+
Q(n(ve), P({
|
|
248
248
|
id: e.id,
|
|
249
249
|
ref_key: "dropdownOptionsListboxRef",
|
|
250
|
-
ref:
|
|
250
|
+
ref: v,
|
|
251
251
|
"aria-label": e.ariaLabel,
|
|
252
252
|
class: ["b-dropdown-options-container__listbox", x.value],
|
|
253
253
|
"component-loading": e.componentLoading,
|
|
254
254
|
"empty-state": e.emptyState,
|
|
255
255
|
"is-option-disabled": e.isOptionDisabled,
|
|
256
256
|
items: e.items,
|
|
257
|
-
"selected-value": n(
|
|
258
|
-
multiple: n(
|
|
257
|
+
"selected-value": n(y),
|
|
258
|
+
multiple: n(u),
|
|
259
259
|
"static-categories": e.staticCategories,
|
|
260
|
-
"no-results-message":
|
|
260
|
+
"no-results-message": b.value,
|
|
261
261
|
searching: e.searching,
|
|
262
262
|
loading: e.loading,
|
|
263
263
|
"lazy-load-type": e.lazyLoadType,
|
|
264
264
|
"has-more-items": e.hasMoreItems,
|
|
265
265
|
"virtual-scroll": e.virtualScroll
|
|
266
|
-
}, G(n(
|
|
267
|
-
|
|
268
|
-
name:
|
|
269
|
-
fn: z((
|
|
270
|
-
X(A.$slots,
|
|
266
|
+
}, G(n(T))), ue({ _: 2 }, [
|
|
267
|
+
ce(n(a), (h, $) => ({
|
|
268
|
+
name: $,
|
|
269
|
+
fn: z((M) => [
|
|
270
|
+
X(A.$slots, $, pe(fe(M)), void 0, !0)
|
|
271
271
|
])
|
|
272
272
|
}))
|
|
273
273
|
]), 1040, ["id", "aria-label", "class", "component-loading", "empty-state", "is-option-disabled", "items", "selected-value", "multiple", "static-categories", "no-results-message", "searching", "loading", "lazy-load-type", "has-more-items", "virtual-scroll"])
|
|
@@ -276,55 +276,55 @@ const be = {
|
|
|
276
276
|
_: 3
|
|
277
277
|
}, 16, ["class"]));
|
|
278
278
|
}
|
|
279
|
-
}),
|
|
280
|
-
let
|
|
281
|
-
const
|
|
279
|
+
}), gt = /* @__PURE__ */ Y(bt, [["__scopeId", "data-v-aa806d62"]]);
|
|
280
|
+
let De = 0;
|
|
281
|
+
const ht = {
|
|
282
282
|
beforeCreate() {
|
|
283
|
-
this.uuid =
|
|
283
|
+
this.uuid = De.toString(), De += 1;
|
|
284
284
|
}
|
|
285
|
-
},
|
|
286
|
-
function
|
|
287
|
-
return L(),
|
|
285
|
+
}, St = { key: 0 };
|
|
286
|
+
function Lt(e, i, s, a, o, l) {
|
|
287
|
+
return L(), k("svg", P({ role: "img" }, e.$attrs, {
|
|
288
288
|
class: "ui-assets-icons-16",
|
|
289
289
|
xmlns: "http://www.w3.org/2000/svg",
|
|
290
290
|
width: "16",
|
|
291
291
|
height: "16",
|
|
292
292
|
fill: "none"
|
|
293
293
|
}), [
|
|
294
|
-
e.$attrs["svg-title"] ? (L(),
|
|
294
|
+
e.$attrs["svg-title"] ? (L(), k("title", St, ge(e.$attrs["svg-title"]), 1)) : F("", !0),
|
|
295
295
|
i[0] || (i[0] = te("path", {
|
|
296
296
|
fill: "#001222",
|
|
297
297
|
d: "M5.00011 5.43922L8.00011 8.43922L11.0001 5.43922L12.0608 6.49988L8.00011 10.5605L3.93945 6.49988L5.00011 5.43922Z"
|
|
298
298
|
}, null, -1))
|
|
299
299
|
], 16);
|
|
300
300
|
}
|
|
301
|
-
const
|
|
302
|
-
let
|
|
303
|
-
const
|
|
301
|
+
const Et = /* @__PURE__ */ Y(ht, [["render", Lt]]);
|
|
302
|
+
let Te = 0;
|
|
303
|
+
const wt = {
|
|
304
304
|
beforeCreate() {
|
|
305
|
-
this.uuid =
|
|
305
|
+
this.uuid = Te.toString(), Te += 1;
|
|
306
306
|
}
|
|
307
|
-
},
|
|
308
|
-
function
|
|
309
|
-
return L(),
|
|
307
|
+
}, Ct = { key: 0 };
|
|
308
|
+
function Ot(e, i, s, a, o, l) {
|
|
309
|
+
return L(), k("svg", P({ role: "img" }, e.$attrs, {
|
|
310
310
|
class: "ui-assets-icons-16",
|
|
311
311
|
xmlns: "http://www.w3.org/2000/svg",
|
|
312
312
|
width: "16",
|
|
313
313
|
height: "16",
|
|
314
314
|
fill: "none"
|
|
315
315
|
}), [
|
|
316
|
-
e.$attrs["svg-title"] ? (L(),
|
|
316
|
+
e.$attrs["svg-title"] ? (L(), k("title", Ct, ge(e.$attrs["svg-title"]), 1)) : F("", !0),
|
|
317
317
|
i[0] || (i[0] = te("path", {
|
|
318
318
|
fill: "#001222",
|
|
319
319
|
d: "M10.9999 10.5608L7.9999 7.56077L4.9999 10.5608L3.93924 9.50011L7.9999 5.43945L12.0606 9.50011L10.9999 10.5608Z"
|
|
320
320
|
}, null, -1))
|
|
321
321
|
], 16);
|
|
322
322
|
}
|
|
323
|
-
const xt = /* @__PURE__ */ Y(
|
|
323
|
+
const xt = /* @__PURE__ */ Y(wt, [["render", Ot]]), Bt = { class: "b-dropdown-small-textbox__chevron" }, Dt = j({
|
|
324
324
|
name: "dropdown-small-textbox",
|
|
325
325
|
inheritAttrs: !1
|
|
326
|
-
}),
|
|
327
|
-
...
|
|
326
|
+
}), Tt = /* @__PURE__ */ j({
|
|
327
|
+
...Dt,
|
|
328
328
|
props: {
|
|
329
329
|
/**
|
|
330
330
|
* The number of additional items that have been selected in the dropdown.
|
|
@@ -386,47 +386,47 @@ const xt = /* @__PURE__ */ Y(Lt, [["render", wt]]), Ct = { class: "b-dropdown-sm
|
|
|
386
386
|
emits: ["clear", "close", "input", "keydown", "open"],
|
|
387
387
|
setup(e, { expose: i, emit: s }) {
|
|
388
388
|
const a = s, o = e, l = w(null), t = p(() => ({
|
|
389
|
-
[`b-dropdown-small-textbox--${
|
|
390
|
-
[`b-dropdown-small-textbox--${
|
|
391
|
-
[`b-dropdown-small-textbox--${
|
|
392
|
-
})),
|
|
393
|
-
a("input",
|
|
394
|
-
},
|
|
395
|
-
a("keydown",
|
|
396
|
-
}, r = (
|
|
397
|
-
|
|
398
|
-
},
|
|
399
|
-
|
|
400
|
-
},
|
|
401
|
-
|
|
389
|
+
[`b-dropdown-small-textbox--${re.DISABLED}`]: o.disabled,
|
|
390
|
+
[`b-dropdown-small-textbox--${re.READONLY}`]: o.readonly,
|
|
391
|
+
[`b-dropdown-small-textbox--${re.OPENED}`]: o.open
|
|
392
|
+
})), u = p(() => o.open && !o.disabled && !o.readonly), v = (y) => {
|
|
393
|
+
a("input", y);
|
|
394
|
+
}, g = (y) => {
|
|
395
|
+
a("keydown", y);
|
|
396
|
+
}, r = (y) => {
|
|
397
|
+
de(y), a("open");
|
|
398
|
+
}, b = (y) => {
|
|
399
|
+
de(y), a("close");
|
|
400
|
+
}, d = (y) => {
|
|
401
|
+
de(y), a("clear");
|
|
402
402
|
}, x = {
|
|
403
|
-
[V.INPUT]:
|
|
403
|
+
[V.INPUT]: v,
|
|
404
404
|
[V.OPEN]: r,
|
|
405
|
-
[V.CLOSE]:
|
|
406
|
-
[V.CLEAR]:
|
|
407
|
-
[V.KEYDOWN]:
|
|
405
|
+
[V.CLOSE]: b,
|
|
406
|
+
[V.CLEAR]: d,
|
|
407
|
+
[V.KEYDOWN]: g
|
|
408
408
|
};
|
|
409
409
|
return i({
|
|
410
410
|
focus: () => {
|
|
411
411
|
l.value.focus();
|
|
412
412
|
}
|
|
413
|
-
}), (
|
|
414
|
-
class:
|
|
413
|
+
}), (y, T) => (L(), k("div", {
|
|
414
|
+
class: me(["b-dropdown-small-textbox", t.value])
|
|
415
415
|
}, [
|
|
416
|
-
Q(
|
|
416
|
+
Q(lt, P({
|
|
417
417
|
ref_key: "baseTextbox",
|
|
418
418
|
ref: l
|
|
419
|
-
}, { ...
|
|
419
|
+
}, { ...y.$attrs, ...y.$props }, {
|
|
420
420
|
class: "b-dropdown-small-textbox__textbox",
|
|
421
421
|
size: n(_).SMALL
|
|
422
422
|
}, G(x)), {
|
|
423
423
|
icon: z(() => [
|
|
424
|
-
te("div",
|
|
424
|
+
te("div", Bt, [
|
|
425
425
|
ee(Q(n(xt), { "svg-title": "opened" }, null, 512), [
|
|
426
|
-
[
|
|
426
|
+
[Oe, u.value]
|
|
427
427
|
]),
|
|
428
|
-
ee(Q(n(
|
|
429
|
-
[
|
|
428
|
+
ee(Q(n(Et), { "svg-title": "closed" }, null, 512), [
|
|
429
|
+
[Oe, !u.value]
|
|
430
430
|
])
|
|
431
431
|
])
|
|
432
432
|
]),
|
|
@@ -434,22 +434,22 @@ const xt = /* @__PURE__ */ Y(Lt, [["render", wt]]), Ct = { class: "b-dropdown-sm
|
|
|
434
434
|
}, 16, ["size"])
|
|
435
435
|
], 2));
|
|
436
436
|
}
|
|
437
|
-
}),
|
|
437
|
+
}), Nt = /* @__PURE__ */ Y(Tt, [["__scopeId", "data-v-66b5eaa5"]]), It = (e, i) => i.value.reduce((s, a) => {
|
|
438
438
|
if (a.items) {
|
|
439
439
|
const o = a.items.filter(
|
|
440
|
-
(t) => e.value.find((
|
|
440
|
+
(t) => e.value.find((u) => u.value === t.value)
|
|
441
441
|
);
|
|
442
|
-
o.length === a.items.length ? s.push(a.displayValue ?? a.label) : o.forEach(({ label: t, displayValue:
|
|
442
|
+
o.length === a.items.length ? s.push(a.displayValue ?? a.label) : o.forEach(({ label: t, displayValue: u }) => s.push(u ?? t));
|
|
443
443
|
}
|
|
444
444
|
return e.value.find((o) => o.value === a.value) && s.push(a.displayValue ?? a.label), s;
|
|
445
|
-
}, []).join(", "),
|
|
445
|
+
}, []).join(", "), At = ({ items: e, placeholder: i, selectedValues: s, isMultiSelect: a }) => {
|
|
446
446
|
const o = p(
|
|
447
447
|
() => a.value && e.value.find((t) => {
|
|
448
|
-
var
|
|
449
|
-
return (
|
|
448
|
+
var u;
|
|
449
|
+
return (u = t.items) == null ? void 0 : u.length;
|
|
450
450
|
})
|
|
451
451
|
);
|
|
452
|
-
return p(() => s.value.length ? o.value ? It(s, e) : s.value.map(({ label: t, displayValue:
|
|
452
|
+
return p(() => s.value.length ? o.value ? It(s, e) : s.value.map(({ label: t, displayValue: u }) => u ?? t).join(", ") : i.value || null);
|
|
453
453
|
}, $e = (e) => {
|
|
454
454
|
var i;
|
|
455
455
|
(i = e.value.$children) == null || i[0].$refs.textbox.focus();
|
|
@@ -461,91 +461,86 @@ const xt = /* @__PURE__ */ Y(Lt, [["render", wt]]), Ct = { class: "b-dropdown-sm
|
|
|
461
461
|
isDynamicFltering: o,
|
|
462
462
|
items: l,
|
|
463
463
|
isMultiple: t
|
|
464
|
-
},
|
|
465
|
-
const r = async (
|
|
466
|
-
var
|
|
467
|
-
o.value && await
|
|
468
|
-
},
|
|
469
|
-
var
|
|
470
|
-
o.value && await
|
|
471
|
-
const
|
|
464
|
+
}, u, v, g) => {
|
|
465
|
+
const r = async (f) => {
|
|
466
|
+
var h;
|
|
467
|
+
o.value && await E(), (h = l.value[f]) == null || h.focus();
|
|
468
|
+
}, b = async (f) => {
|
|
469
|
+
var $, M;
|
|
470
|
+
o.value && await E();
|
|
471
|
+
const h = ($ = i.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef) == null ? void 0 : $.$el.querySelectorAll(
|
|
472
472
|
"button"
|
|
473
473
|
);
|
|
474
|
-
|
|
475
|
-
},
|
|
476
|
-
var
|
|
477
|
-
return (
|
|
478
|
-
|
|
474
|
+
h.length ? (M = h[f]) == null || M.focus() : r(f);
|
|
475
|
+
}, d = (f) => {
|
|
476
|
+
var h;
|
|
477
|
+
return (h = i.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef) == null ? void 0 : h.setListboxFocusedIndex(
|
|
478
|
+
f
|
|
479
479
|
);
|
|
480
|
-
}, x = ({ detail:
|
|
481
|
-
|
|
482
|
-
t ?
|
|
480
|
+
}, x = ({ detail: f }) => {
|
|
481
|
+
f.preventDefault(), a.value || v(), E(() => {
|
|
482
|
+
t ? b(0) : (d(s.value), r(s.value));
|
|
483
483
|
});
|
|
484
|
-
},
|
|
485
|
-
|
|
486
|
-
t ?
|
|
484
|
+
}, D = ({ detail: f }) => {
|
|
485
|
+
f.preventDefault(), a.value || v(), E(() => {
|
|
486
|
+
t ? b(0) : (d(s.value), r(s.value));
|
|
487
487
|
});
|
|
488
|
-
},
|
|
489
|
-
a.value || (
|
|
490
|
-
|
|
491
|
-
if (t) {
|
|
492
|
-
const y = i.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children;
|
|
493
|
-
(d = y == null ? void 0 : y[y.length - 1].$el.querySelectorAll('[role="option"]')[l.length - 1]) == null || d.focus();
|
|
494
|
-
} else
|
|
495
|
-
u(l.length - 1), r(l.length - 1);
|
|
488
|
+
}, y = () => {
|
|
489
|
+
a.value || (v(), E(() => {
|
|
490
|
+
d(l.value.length - 1), r(l.value.length - 1);
|
|
496
491
|
}));
|
|
497
|
-
},
|
|
498
|
-
a.value && (
|
|
499
|
-
},
|
|
500
|
-
a.value &&
|
|
492
|
+
}, T = () => {
|
|
493
|
+
a.value && (g(), $e(e));
|
|
494
|
+
}, C = () => {
|
|
495
|
+
a.value && g();
|
|
501
496
|
}, S = () => {
|
|
502
|
-
a.value ||
|
|
503
|
-
|
|
497
|
+
a.value || v(), E(() => {
|
|
498
|
+
r(0);
|
|
504
499
|
});
|
|
505
|
-
}, W = ({ detail:
|
|
506
|
-
|
|
507
|
-
t ?
|
|
500
|
+
}, W = ({ detail: f }) => {
|
|
501
|
+
f.preventDefault(), u(), a.value && E(() => {
|
|
502
|
+
t ? b(0) : (d(s.value), r(s.value));
|
|
508
503
|
});
|
|
509
|
-
},
|
|
510
|
-
|
|
511
|
-
t ?
|
|
504
|
+
}, U = ({ detail: f }) => {
|
|
505
|
+
f.preventDefault(), u(), a.value && E(() => {
|
|
506
|
+
t ? b(0) : (d(s.value), r(s.value));
|
|
512
507
|
});
|
|
513
508
|
};
|
|
514
509
|
return p(() => ({
|
|
515
|
-
...o.value ? {} : { [
|
|
516
|
-
[
|
|
517
|
-
[
|
|
518
|
-
[
|
|
519
|
-
[
|
|
520
|
-
[
|
|
521
|
-
[
|
|
522
|
-
[
|
|
510
|
+
...o.value ? {} : { [I.SPACE]: W },
|
|
511
|
+
[I.ENTER]: U,
|
|
512
|
+
[I.ARROW_DOWN]: x,
|
|
513
|
+
[I.ARROW_UP]: D,
|
|
514
|
+
[I.END]: y,
|
|
515
|
+
[I.ESCAPE]: T,
|
|
516
|
+
[I.HOME]: S,
|
|
517
|
+
[I.TAB]: C
|
|
523
518
|
}));
|
|
524
|
-
},
|
|
519
|
+
}, Mt = ({ inputContainerRef: e, isDropdownOpen: i }, s) => {
|
|
525
520
|
const a = () => {
|
|
526
|
-
i.value && s(),
|
|
521
|
+
i.value && s(), E(() => {
|
|
527
522
|
$e(e);
|
|
528
523
|
});
|
|
529
524
|
};
|
|
530
525
|
return {
|
|
531
|
-
[
|
|
532
|
-
[
|
|
533
|
-
[
|
|
534
|
-
[
|
|
526
|
+
[m.ENTER]: a,
|
|
527
|
+
[m.ESCAPE]: a,
|
|
528
|
+
[m.TAB]: a,
|
|
529
|
+
[m.SPACE]: a
|
|
535
530
|
};
|
|
536
531
|
};
|
|
537
|
-
function
|
|
538
|
-
const o = w(e), l = w(i), t = (
|
|
539
|
-
return
|
|
532
|
+
function Rt(e, i, s, a) {
|
|
533
|
+
const o = w(e), l = w(i), t = (v, g = []) => g.flatMap((r) => r.label.toLocaleLowerCase().includes(v) ? a != null && a.value && r.items ? [...t(v, r.items)] : [r, ...t(v, r.items)] : r.items ? [...t(v, r.items)] : []);
|
|
534
|
+
return be(o, () => {
|
|
540
535
|
s !== void 0 && s(o.value);
|
|
541
536
|
}), p(() => {
|
|
542
537
|
if (!o.value || s !== void 0)
|
|
543
538
|
return l.value;
|
|
544
|
-
const
|
|
545
|
-
return t(
|
|
539
|
+
const v = o.value.toLocaleLowerCase();
|
|
540
|
+
return t(v, l.value);
|
|
546
541
|
});
|
|
547
542
|
}
|
|
548
|
-
const
|
|
543
|
+
const Me = {
|
|
549
544
|
"en-US": {
|
|
550
545
|
all: "All",
|
|
551
546
|
ariaLabelFallback: "Dropdown",
|
|
@@ -559,15 +554,15 @@ const Ae = {
|
|
|
559
554
|
all: "Todos",
|
|
560
555
|
clearFilter: "Limpar filtro"
|
|
561
556
|
}
|
|
562
|
-
},
|
|
563
|
-
i18n: { messages:
|
|
557
|
+
}, Pt = Symbol("input field component injection key"), oa = Symbol("input field hint injection key"), na = Symbol("input field parent component injection key"), kt = j({
|
|
558
|
+
i18n: { messages: Me },
|
|
564
559
|
name: "b-dropdown",
|
|
565
560
|
components: {
|
|
566
|
-
DropdownInputDefault:
|
|
567
|
-
DropdownInputSmall:
|
|
561
|
+
DropdownInputDefault: ot,
|
|
562
|
+
DropdownInputSmall: Nt
|
|
568
563
|
}
|
|
569
|
-
}),
|
|
570
|
-
...
|
|
564
|
+
}), Kt = /* @__PURE__ */ j({
|
|
565
|
+
...kt,
|
|
571
566
|
props: {
|
|
572
567
|
/**
|
|
573
568
|
* @deprecated from version 2.0.0. Use the aria-label attribute instead.
|
|
@@ -658,8 +653,8 @@ const Ae = {
|
|
|
658
653
|
*/
|
|
659
654
|
lazyLoadType: {
|
|
660
655
|
type: String,
|
|
661
|
-
default:
|
|
662
|
-
validator: (e) => Object.values(
|
|
656
|
+
default: ve.props.lazyLoadType.default,
|
|
657
|
+
validator: (e) => Object.values(ye).includes(e)
|
|
663
658
|
},
|
|
664
659
|
/*
|
|
665
660
|
* If enabled, the user will be able to select multiple items.
|
|
@@ -743,209 +738,225 @@ const Ae = {
|
|
|
743
738
|
},
|
|
744
739
|
emits: ["input", "show-more"],
|
|
745
740
|
setup(e, { expose: i, emit: s }) {
|
|
746
|
-
var
|
|
747
|
-
const a =
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
), A = w(a["aria-label"]), { ariaLabel:
|
|
741
|
+
var Ce;
|
|
742
|
+
const a = Ge(), o = Ne(), l = ct(o), t = e, u = s, { t: v } = he({ messages: Me }), g = w(null), r = w(null), b = w(null), d = w(!1), x = J("bento-dropdown-options-container"), D = J("dropdown-label"), y = J("dropdown-description"), T = J("dropdown-error"), { isReadOnly: C } = st(B(t, "readonly")), { cachedSelectedListboxOptions: S, cachedListboxSelectedValues: W, setCachedValues: U } = dt(
|
|
743
|
+
B(t, "items"),
|
|
744
|
+
B(t, "value"),
|
|
745
|
+
B(t, "multiple"),
|
|
746
|
+
B(t, "enableValueLabelPair")
|
|
747
|
+
), A = w(a["aria-label"]), { ariaLabel: f, label: h } = Ie(t), $ = p(() => v("ariaLabelFallback")), M = nt({
|
|
753
748
|
// TODO: take ariaLabel ref away when aria-label prop is removed
|
|
754
|
-
ariaLabel:
|
|
755
|
-
label:
|
|
756
|
-
defaultFallback:
|
|
757
|
-
}),
|
|
749
|
+
ariaLabel: f.value || A,
|
|
750
|
+
label: h,
|
|
751
|
+
defaultFallback: $
|
|
752
|
+
}), Le = t.size === _.SMALL || et(Pt, !1), Re = p(() => Le ? _.SMALL : _.DEFAULT), Pe = p(() => ({
|
|
758
753
|
"b-dropdown--condensed": t.condensed
|
|
759
|
-
})),
|
|
754
|
+
})), ke = p(() => ({
|
|
760
755
|
"b-dropdown__description--error": !!t.errorMessage
|
|
761
|
-
})), R = w(""), Z =
|
|
756
|
+
})), R = w(""), Z = B(t, "items"), Ee = B(t, "staticCategories"), ae = Rt(R, Z, (Ce = t == null ? void 0 : t.search) == null ? void 0 : Ce.searchEvent, Ee), le = p(() => t.dynamicFiltering && !!R.value), Ke = At({
|
|
762
757
|
items: Z,
|
|
763
|
-
placeholder:
|
|
764
|
-
isMultiSelect:
|
|
758
|
+
placeholder: B(t, "placeholder"),
|
|
759
|
+
isMultiSelect: B(t, "multiple"),
|
|
765
760
|
selectedValues: S
|
|
766
|
-
}),
|
|
761
|
+
}), Fe = p(() => {
|
|
767
762
|
if (t != null && t.multiple && Array.isArray(t.value))
|
|
768
763
|
return t.items.filter(
|
|
769
|
-
({ value:
|
|
764
|
+
({ value: c }) => (t == null ? void 0 : t.value) && (t == null ? void 0 : t.value).includes(c)
|
|
770
765
|
);
|
|
771
766
|
if (!t.multiple && t.staticCategories) {
|
|
772
|
-
const
|
|
773
|
-
(
|
|
767
|
+
const c = t.items.find(
|
|
768
|
+
(N) => N.items.some((q) => q.value === t.value)
|
|
774
769
|
);
|
|
775
|
-
return
|
|
770
|
+
return c ? c.items.find((N) => N.value === t.value) : null;
|
|
776
771
|
}
|
|
777
|
-
return t.items.find(({ value:
|
|
778
|
-
}),
|
|
779
|
-
const
|
|
780
|
-
return
|
|
781
|
-
}), { isMultiLevelSelect:
|
|
772
|
+
return t.items.find(({ value: c }) => c === (t == null ? void 0 : t.value));
|
|
773
|
+
}), ze = p(() => {
|
|
774
|
+
const c = ae.value.findIndex(({ value: O }) => t.value === O);
|
|
775
|
+
return c > -1 ? c : 0;
|
|
776
|
+
}), { isMultiLevelSelect: je, flattenedItemsList: We } = ut(Z), Ue = p(() => {
|
|
782
777
|
if (t.multiple) {
|
|
783
|
-
const
|
|
784
|
-
return
|
|
778
|
+
const c = Array.isArray(t.value) ? t.value.length : 0, O = je.value ? We.value.length : Z.value.length;
|
|
779
|
+
return c === 0 ? null : !t.hasMoreItems && O > 0 && O === c ? v("all") : c;
|
|
785
780
|
}
|
|
786
781
|
return null;
|
|
787
|
-
}),
|
|
788
|
-
() => `${t.description ?
|
|
789
|
-
),
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
782
|
+
}), qe = p(
|
|
783
|
+
() => `${t.description ? y : ""} ${t.errorMessage ? T : ""}`.trim() || null
|
|
784
|
+
), He = () => {
|
|
785
|
+
C.value || (d.value = !0, E(() => {
|
|
786
|
+
se();
|
|
787
|
+
}));
|
|
793
788
|
}, oe = () => {
|
|
794
|
-
|
|
795
|
-
},
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
789
|
+
d.value = !1;
|
|
790
|
+
}, ne = () => {
|
|
791
|
+
C.value || (d.value = !d.value, E(() => {
|
|
792
|
+
se();
|
|
793
|
+
}), le.value && (R.value = ""));
|
|
799
794
|
}, Ve = () => {
|
|
800
|
-
|
|
801
|
-
},
|
|
795
|
+
le.value && (R.value = ""), d.value && (d.value = !1, b.value.onOutsideDropdownClick());
|
|
796
|
+
}, _e = (c) => {
|
|
797
|
+
t.multiple || (R.value = "", d.value = !1), U(c), u("input", W.value);
|
|
798
|
+
}, Je = () => {
|
|
799
|
+
u(m.SHOW_MORE);
|
|
800
|
+
}, we = w([]), se = () => {
|
|
801
|
+
var O;
|
|
802
|
+
const c = (O = b.value) == null ? void 0 : O.$el;
|
|
803
|
+
!c || c.nodeType === Node.COMMENT_NODE || (we.value = Array.from(
|
|
804
|
+
c.querySelectorAll('[role="option"]')
|
|
805
|
+
).filter((N) => N.checkVisibility()));
|
|
806
|
+
};
|
|
807
|
+
be(ae, () => {
|
|
808
|
+
E(() => {
|
|
809
|
+
se();
|
|
810
|
+
});
|
|
811
|
+
});
|
|
812
|
+
const Ye = $t(
|
|
802
813
|
{
|
|
803
|
-
inputContainerRef:
|
|
804
|
-
optionsContainerRef:
|
|
805
|
-
selectedValueIndex:
|
|
806
|
-
isDropdownOpen:
|
|
807
|
-
isDynamicFltering:
|
|
808
|
-
items:
|
|
814
|
+
inputContainerRef: g,
|
|
815
|
+
optionsContainerRef: b,
|
|
816
|
+
selectedValueIndex: ze,
|
|
817
|
+
isDropdownOpen: d,
|
|
818
|
+
isDynamicFltering: B(t, "dynamicFiltering"),
|
|
819
|
+
items: we,
|
|
809
820
|
isMultiple: t.multiple
|
|
810
821
|
},
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
),
|
|
822
|
+
ne,
|
|
823
|
+
He,
|
|
824
|
+
oe
|
|
825
|
+
), Ze = Mt(
|
|
815
826
|
{
|
|
816
|
-
inputContainerRef:
|
|
817
|
-
isDropdownOpen:
|
|
827
|
+
inputContainerRef: g,
|
|
828
|
+
isDropdownOpen: d
|
|
818
829
|
},
|
|
819
|
-
|
|
820
|
-
),
|
|
821
|
-
[
|
|
822
|
-
[
|
|
823
|
-
[
|
|
824
|
-
...
|
|
830
|
+
oe
|
|
831
|
+
), Qe = {
|
|
832
|
+
[m.CLOSE_DROPDOWN]: oe,
|
|
833
|
+
[m.SELECT]: _e,
|
|
834
|
+
[m.SHOW_MORE]: Je,
|
|
835
|
+
...Ze
|
|
825
836
|
};
|
|
826
|
-
return t.error &&
|
|
837
|
+
return t.error && xe(
|
|
827
838
|
'BentoDropdown "error" property',
|
|
828
839
|
`Use the BentoDropdown "errorMessage" property instead to indicate that there is a modifier error.
|
|
829
840
|
Having the field as "undefined" will hide/remove the error.
|
|
830
841
|
<bento-dropdown errorMessage="Error message text" />`,
|
|
831
842
|
"2.0.0"
|
|
832
|
-
), t.size &&
|
|
843
|
+
), t.size && xe('BentoDropdown "size" property', "Do not use. Only 'default' size should be used.", "2.0.0"), i({
|
|
833
844
|
focus: () => {
|
|
834
|
-
|
|
845
|
+
g.value.focus();
|
|
835
846
|
}
|
|
836
|
-
}), (
|
|
837
|
-
var
|
|
838
|
-
return ee((L(),
|
|
839
|
-
class:
|
|
847
|
+
}), (c, O) => {
|
|
848
|
+
var N;
|
|
849
|
+
return ee((L(), k("div", {
|
|
850
|
+
class: me(["b-dropdown", Pe.value])
|
|
840
851
|
}, [
|
|
841
|
-
n(
|
|
852
|
+
n(h) ? (L(), K(n(pt), {
|
|
842
853
|
key: 0,
|
|
843
|
-
id: n(
|
|
854
|
+
id: n(D),
|
|
844
855
|
condensed: e.condensed,
|
|
845
|
-
label: n(
|
|
856
|
+
label: n(h),
|
|
846
857
|
"tooltip-text": e.tooltipText,
|
|
847
858
|
optional: e.optional,
|
|
848
859
|
required: e.required
|
|
849
860
|
}, null, 8, ["id", "condensed", "label", "tooltip-text", "optional", "required"])) : F("", !0),
|
|
850
|
-
ee((L(),
|
|
861
|
+
ee((L(), k("div", P({
|
|
851
862
|
ref_key: "inputContainerRefWrapper",
|
|
852
863
|
ref: r
|
|
853
|
-
}, G(n(
|
|
854
|
-
(L(), K(
|
|
864
|
+
}, G(n(Ye), !0)), [
|
|
865
|
+
(L(), K(Ae(Re.value), {
|
|
855
866
|
ref_key: "inputContainerRef",
|
|
856
|
-
ref:
|
|
867
|
+
ref: g,
|
|
857
868
|
condensed: e.condensed,
|
|
858
869
|
value: R.value,
|
|
859
|
-
"additional-items-selected":
|
|
870
|
+
"additional-items-selected": Ue.value,
|
|
860
871
|
"aria-controls": n(x),
|
|
861
|
-
ariaExpanded:
|
|
862
|
-
"aria-labelledby": n(
|
|
863
|
-
"aria-describedby":
|
|
864
|
-
"aria-label": n(
|
|
865
|
-
"aria-readonly": n(
|
|
866
|
-
readonly: n(
|
|
872
|
+
ariaExpanded: d.value,
|
|
873
|
+
"aria-labelledby": n(h) ? n(D) : null,
|
|
874
|
+
"aria-describedby": qe.value,
|
|
875
|
+
"aria-label": n(M),
|
|
876
|
+
"aria-readonly": n(C),
|
|
877
|
+
readonly: n(C),
|
|
867
878
|
disabled: e.disabled,
|
|
868
|
-
"display-value": n(
|
|
879
|
+
"display-value": n(Ke),
|
|
869
880
|
"dynamic-filtering": e.dynamicFiltering,
|
|
870
881
|
"is-invalid": !!e.errorMessage || e.error,
|
|
871
882
|
multiple: e.multiple,
|
|
872
|
-
open:
|
|
873
|
-
"selected-value-item": n(
|
|
883
|
+
open: d.value,
|
|
884
|
+
"selected-value-item": n(Le) ? void 0 : Fe.value,
|
|
874
885
|
"show-slot-content-in-multiple": e.showSlotContentInMultiple,
|
|
875
|
-
onInput:
|
|
876
|
-
onOpen:
|
|
877
|
-
onClose:
|
|
878
|
-
},
|
|
879
|
-
|
|
886
|
+
onInput: O[0] || (O[0] = (q) => R.value = q),
|
|
887
|
+
onOpen: ne,
|
|
888
|
+
onClose: ne
|
|
889
|
+
}, ue({ _: 2 }, [
|
|
890
|
+
ce(n(o), (q, H) => ({
|
|
880
891
|
name: H,
|
|
881
|
-
fn: z((
|
|
882
|
-
X(
|
|
892
|
+
fn: z((ie) => [
|
|
893
|
+
X(c.$slots, H, pe(fe(ie)), void 0, !0)
|
|
883
894
|
])
|
|
884
895
|
}))
|
|
885
896
|
]), 1064, ["condensed", "value", "additional-items-selected", "aria-controls", "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"]))
|
|
886
897
|
], 16)), [
|
|
887
|
-
[n(
|
|
898
|
+
[n(rt)]
|
|
888
899
|
]),
|
|
889
|
-
|
|
900
|
+
g.value ? (L(), K(n(gt), P({
|
|
890
901
|
key: 1,
|
|
891
902
|
id: n(x),
|
|
892
903
|
ref_key: "optionsContainerRef",
|
|
893
|
-
ref:
|
|
894
|
-
"aria-label": n(
|
|
904
|
+
ref: b,
|
|
905
|
+
"aria-label": n(M),
|
|
895
906
|
"component-loading": e.componentLoading,
|
|
896
907
|
"empty-state": e.emptyState,
|
|
897
|
-
"debounce-time": (
|
|
908
|
+
"debounce-time": (N = e.search) == null ? void 0 : N.debounceTime,
|
|
898
909
|
disabled: e.disabled,
|
|
899
910
|
"is-option-disabled": e.isOptionDisabled,
|
|
900
|
-
items: n(
|
|
911
|
+
items: n(ae),
|
|
901
912
|
multiple: e.multiple,
|
|
902
|
-
"static-categories":
|
|
903
|
-
open:
|
|
913
|
+
"static-categories": Ee.value,
|
|
914
|
+
open: d.value,
|
|
904
915
|
"selected-value": n(S),
|
|
905
|
-
searching:
|
|
916
|
+
searching: le.value,
|
|
906
917
|
"target-element": r.value,
|
|
907
918
|
loading: e.loading,
|
|
908
919
|
"has-more-items": e.hasMoreItems,
|
|
909
920
|
"lazy-load-type": e.lazyLoadType,
|
|
910
921
|
"virtual-scroll": e.virtualScroll
|
|
911
|
-
}, G(
|
|
912
|
-
|
|
922
|
+
}, G(Qe)), ue({ _: 2 }, [
|
|
923
|
+
ce(n(o), (q, H) => ({
|
|
913
924
|
name: H,
|
|
914
|
-
fn: z((
|
|
915
|
-
X(
|
|
925
|
+
fn: z((ie) => [
|
|
926
|
+
X(c.$slots, H, pe(fe(ie)), void 0, !0)
|
|
916
927
|
])
|
|
917
928
|
}))
|
|
918
929
|
]), 1040, ["id", "aria-label", "component-loading", "empty-state", "debounce-time", "disabled", "is-option-disabled", "items", "multiple", "static-categories", "open", "selected-value", "searching", "target-element", "loading", "has-more-items", "lazy-load-type", "virtual-scroll"])) : F("", !0),
|
|
919
|
-
e.errorMessage ? (L(), K(n(
|
|
930
|
+
e.errorMessage ? (L(), K(n(ft), {
|
|
920
931
|
key: 2,
|
|
921
|
-
id: n(
|
|
932
|
+
id: n(T),
|
|
922
933
|
"error-message": e.errorMessage,
|
|
923
934
|
class: "b-dropdown__error-message"
|
|
924
935
|
}, null, 8, ["id", "error-message"])) : F("", !0),
|
|
925
|
-
e.description || n(l)("description") ? (L(), K(n(
|
|
936
|
+
e.description || n(l)("description") ? (L(), K(n(at), {
|
|
926
937
|
key: 3,
|
|
927
|
-
id: n(
|
|
928
|
-
class:
|
|
938
|
+
id: n(y),
|
|
939
|
+
class: me(["b-dropdown__description", ke.value]),
|
|
929
940
|
el: "span"
|
|
930
941
|
}, {
|
|
931
942
|
default: z(() => [
|
|
932
|
-
X(
|
|
933
|
-
|
|
943
|
+
X(c.$slots, "description", {}, () => [
|
|
944
|
+
tt(ge(e.description), 1)
|
|
934
945
|
], !0)
|
|
935
946
|
]),
|
|
936
947
|
_: 3
|
|
937
948
|
}, 8, ["id", "class"])) : F("", !0)
|
|
938
949
|
], 2)), [
|
|
939
|
-
[n(
|
|
950
|
+
[n(it), Ve]
|
|
940
951
|
]);
|
|
941
952
|
};
|
|
942
953
|
}
|
|
943
|
-
}),
|
|
954
|
+
}), sa = /* @__PURE__ */ Y(Kt, [["__scopeId", "data-v-a3c2e9cb"]]);
|
|
944
955
|
export {
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
956
|
+
sa as B,
|
|
957
|
+
oa as I,
|
|
958
|
+
Pt as a,
|
|
959
|
+
na as b,
|
|
960
|
+
Rt as u
|
|
950
961
|
};
|
|
951
|
-
//# sourceMappingURL=dropdown.
|
|
962
|
+
//# sourceMappingURL=dropdown.Bj6DK-2v.js.map
|