@adyen/bento-vue2 1.63.2 → 1.64.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/index.d.ts +4 -0
- 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/input-field-password.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.6y92U6AF.js → checkbox-group.DVX0GFm9.js} +4 -4
- package/dist/chunks/{checkbox-group.6y92U6AF.js.map → checkbox-group.DVX0GFm9.js.map} +1 -1
- package/dist/chunks/{checkbox.C9nJVvMq.js → checkbox.nHrvoKfp.js} +3 -3
- package/dist/chunks/{checkbox.C9nJVvMq.js.map → checkbox.nHrvoKfp.js.map} +1 -1
- package/dist/chunks/{code-snippet.CBU8Tlbs.js → code-snippet.C7eh-7Vy.js} +3 -3
- package/dist/chunks/{code-snippet.CBU8Tlbs.js.map → code-snippet.C7eh-7Vy.js.map} +1 -1
- package/dist/chunks/{controls-group.Dpe3TqAz.js → controls-group.BWAmz7Tg.js} +2 -2
- package/dist/chunks/{controls-group.Dpe3TqAz.js.map → controls-group.BWAmz7Tg.js.map} +1 -1
- package/dist/chunks/{copy.Co1MMqtM.js → copy.CXeLbvUP.js} +2 -2
- package/dist/chunks/{copy.Co1MMqtM.js.map → copy.CXeLbvUP.js.map} +1 -1
- package/dist/chunks/{dashed-underline.DD24UDCz.js → dashed-underline.CEaAmjDa.js} +2 -2
- package/dist/chunks/{dashed-underline.DD24UDCz.js.map → dashed-underline.CEaAmjDa.js.map} +1 -1
- package/dist/chunks/{data-grid.Cep-0zsO.js → data-grid.o64ltIur.js} +1105 -1076
- package/dist/chunks/data-grid.o64ltIur.js.map +1 -0
- package/dist/chunks/{date-picker.D65ieFdN.js → date-picker.Ba-lHyXs.js} +29 -29
- package/dist/chunks/{date-picker.D65ieFdN.js.map → date-picker.Ba-lHyXs.js.map} +1 -1
- package/dist/chunks/{date-range-picker.CNB28UaM.js → date-range-picker.BER92nnT.js} +21 -21
- package/dist/chunks/{date-range-picker.CNB28UaM.js.map → date-range-picker.BER92nnT.js.map} +1 -1
- package/dist/chunks/{dropdown-tag.DmVsDrL_.js → dropdown-tag.uNZs7yVF.js} +3 -3
- package/dist/chunks/{dropdown-tag.DmVsDrL_.js.map → dropdown-tag.uNZs7yVF.js.map} +1 -1
- package/dist/chunks/{dropdown.B_PWXFtT.js → dropdown.DZ1Ndonr.js} +211 -210
- package/dist/chunks/dropdown.DZ1Ndonr.js.map +1 -0
- package/dist/chunks/{error-message.BeExHHgv.js → error-message.1Em7Lis3.js} +2 -2
- package/dist/chunks/{error-message.BeExHHgv.js.map → error-message.1Em7Lis3.js.map} +1 -1
- package/dist/chunks/{file-uploader.RYWR99Nq.js → file-uploader.DyjdNLOa.js} +3 -3
- package/dist/chunks/{file-uploader.RYWR99Nq.js.map → file-uploader.DyjdNLOa.js.map} +1 -1
- package/dist/chunks/{filter-bar.DjUN3PeJ.js → filter-bar.BMDvL9EW.js} +10 -10
- package/dist/chunks/{filter-bar.DjUN3PeJ.js.map → filter-bar.BMDvL9EW.js.map} +1 -1
- package/dist/chunks/{header-with-views.Csgl4PSQ.js → header-with-views.CEfKLlVv.js} +4 -4
- package/dist/chunks/{header-with-views.Csgl4PSQ.js.map → header-with-views.CEfKLlVv.js.map} +1 -1
- package/dist/chunks/{info-icon.G8lKgclf.js → info-icon.B9aTl1nU.js} +2 -2
- package/dist/chunks/{info-icon.G8lKgclf.js.map → info-icon.B9aTl1nU.js.map} +1 -1
- package/dist/chunks/{input-field-password.CY3eRVpe.js → input-field-password.DI7W4ehj.js} +110 -109
- package/dist/chunks/input-field-password.DI7W4ehj.js.map +1 -0
- package/dist/chunks/{input-field-phone-number.CN5qZ0VL.js → input-field-phone-number.BXbNxQeN.js} +3 -3
- package/dist/chunks/{input-field-phone-number.CN5qZ0VL.js.map → input-field-phone-number.BXbNxQeN.js.map} +1 -1
- package/dist/chunks/{input-field.DKhsSYF8.js → input-field.-Pgtuotm.js} +3 -3
- package/dist/chunks/{input-field.DKhsSYF8.js.map → input-field.-Pgtuotm.js.map} +1 -1
- package/dist/chunks/{listbox-option-tag.DFmB_TuD.js → listbox-option-tag.D0Cql_R3.js} +2 -2
- package/dist/chunks/{listbox-option-tag.DFmB_TuD.js.map → listbox-option-tag.D0Cql_R3.js.map} +1 -1
- package/dist/chunks/{pagination.DvP8FqiW.js → pagination.CoM4szsH.js} +2 -2
- package/dist/chunks/{pagination.DvP8FqiW.js.map → pagination.CoM4szsH.js.map} +1 -1
- package/dist/chunks/{radio-group.CRDMTTyM.js → radio-group.CtPG_iiI.js} +4 -4
- package/dist/chunks/{radio-group.CRDMTTyM.js.map → radio-group.CtPG_iiI.js.map} +1 -1
- package/dist/chunks/{rich-text-editor.aSOSl4Rz.js → rich-text-editor.CLxVaskq.js} +4 -4
- package/dist/chunks/{rich-text-editor.aSOSl4Rz.js.map → rich-text-editor.CLxVaskq.js.map} +1 -1
- package/dist/chunks/{search-bar.Sh4A8UId.js → search-bar.BhQdvBh8.js} +3 -3
- package/dist/chunks/{search-bar.Sh4A8UId.js.map → search-bar.BhQdvBh8.js.map} +1 -1
- package/dist/chunks/{secondary-nav.BFtGx_IN.js → secondary-nav.CItGT9T3.js} +2 -2
- package/dist/chunks/{secondary-nav.BFtGx_IN.js.map → secondary-nav.CItGT9T3.js.map} +1 -1
- package/dist/chunks/{segmented-control.B-uxKqMN.js → segmented-control.DHZEfmT-.js} +2 -2
- package/dist/chunks/{segmented-control.B-uxKqMN.js.map → segmented-control.DHZEfmT-.js.map} +1 -1
- package/dist/chunks/{selection-card-group.CrWy35QU.js → selection-card-group.CoqBRUT8.js} +3 -3
- package/dist/chunks/{selection-card-group.CrWy35QU.js.map → selection-card-group.CoqBRUT8.js.map} +1 -1
- package/dist/chunks/{structured-list-item.DKEwF8n7.js → structured-list-item.tox2Kcb6.js} +4 -4
- package/dist/chunks/{structured-list-item.DKEwF8n7.js.map → structured-list-item.tox2Kcb6.js.map} +1 -1
- package/dist/chunks/{summary-grid.types.BgFtV5Qh.js → summary-grid.types.CkUIw703.js} +5 -5
- package/dist/chunks/{summary-grid.types.BgFtV5Qh.js.map → summary-grid.types.CkUIw703.js.map} +1 -1
- package/dist/chunks/{tag.BaSi2GVV.js → tag.CGkclKVL.js} +2 -2
- package/dist/chunks/{tag.BaSi2GVV.js.map → tag.CGkclKVL.js.map} +1 -1
- package/dist/chunks/{textarea.D7M7Jerq.js → textarea.BPeDUAPL.js} +2 -2
- package/dist/chunks/{textarea.D7M7Jerq.js.map → textarea.BPeDUAPL.js.map} +1 -1
- package/dist/chunks/{timeline-item.njO0X8KL.js → timeline-item.CS9ZDOsm.js} +4 -4
- package/dist/chunks/{timeline-item.njO0X8KL.js.map → timeline-item.CS9ZDOsm.js.map} +1 -1
- package/dist/chunks/{tooltip.DyZIyMZN.js → tooltip.wQsyAwkC.js} +15 -15
- package/dist/chunks/tooltip.wQsyAwkC.js.map +1 -0
- package/dist/chunks/use-cached-selected-values.C1CeSurp.js +1271 -0
- package/dist/chunks/use-cached-selected-values.C1CeSurp.js.map +1 -0
- package/dist/code-snippet.js +1 -1
- package/dist/dashed-underline.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/file-uploader.js +1 -1
- package/dist/filter-bar.js +1 -1
- package/dist/header-with-views.js +1 -1
- package/dist/index.js +30 -30
- package/dist/info-icon.js +1 -1
- 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 +6 -6
- package/dist/pagination.js +1 -1
- package/dist/radio-group.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/segmented-control.js +1 -1
- package/dist/selection-card.js +1 -1
- package/dist/structured-list.js +1 -1
- package/dist/summary-grid.js +1 -1
- package/dist/tag.js +1 -1
- package/dist/textarea.js +1 -1
- package/dist/timeline.js +1 -1
- package/dist/web-types.json +9 -1
- package/package.json +6 -6
- package/dist/chunks/data-grid.Cep-0zsO.js.map +0 -1
- package/dist/chunks/dropdown.B_PWXFtT.js.map +0 -1
- package/dist/chunks/input-field-password.CY3eRVpe.js.map +0 -1
- package/dist/chunks/tooltip.DyZIyMZN.js.map +0 -1
- package/dist/chunks/use-cached-selected-values.CDBmVxYM.js +0 -1225
- package/dist/chunks/use-cached-selected-values.CDBmVxYM.js.map +0 -1
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { ref as S, watch as ue, computed as
|
|
2
|
-
import { d as ie, B as
|
|
3
|
-
import { a as U, b as M, c as De, B as P, D as Be } from "./dropdown-default-textbox.BNuuA4ES.js";
|
|
4
|
-
/* empty css */
|
|
5
|
-
import { n as F } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
|
|
6
|
-
import { s as q } from "./events.CMzGybJJ.js";
|
|
1
|
+
import { ref as S, watch as ue, computed as u, defineComponent as N, useSlots as pe, toRefs as fe, nextTick as x, useAttrs as Oe, toRef as w, inject as Ee } from "vue";
|
|
2
|
+
import { d as ie, B as De } from "./typography.J1v_SPG3.js";
|
|
7
3
|
import { g as k } from "./generate-uid.NJ8tVoha.js";
|
|
8
|
-
import { u as
|
|
4
|
+
import { u as Be } from "./aria-label.CaUURpnB.js";
|
|
9
5
|
import { u as V } from "./i18n.BQkEbtPM.js";
|
|
10
|
-
import { u as
|
|
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";
|
|
11
8
|
import { u as Ne } from "./use-has-slot.C9lQZ6nz.js";
|
|
12
|
-
import { a as
|
|
13
|
-
import { B as
|
|
14
|
-
import { B as
|
|
15
|
-
import { F as
|
|
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";
|
|
16
13
|
import { P as re } from "./popper-container.DIFqmRsp.js";
|
|
17
|
-
import { B as
|
|
14
|
+
import { B as Ke } from "./popover.B05xkQ4e.js";
|
|
15
|
+
import { n as K } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
|
|
16
|
+
/* empty css */
|
|
17
|
+
import { s as q } from "./events.CMzGybJJ.js";
|
|
18
18
|
import "../assets/dropdown.css";
|
|
19
|
-
const
|
|
19
|
+
const ze = {
|
|
20
20
|
"en-US": {
|
|
21
21
|
apply: "Apply",
|
|
22
22
|
cancel: "Cancel",
|
|
@@ -30,20 +30,20 @@ const Ke = {
|
|
|
30
30
|
apply: "Aplicar",
|
|
31
31
|
cancel: "Cancelar"
|
|
32
32
|
}
|
|
33
|
-
},
|
|
34
|
-
const
|
|
35
|
-
ue(
|
|
36
|
-
|
|
33
|
+
}, je = (n, t, o, e) => {
|
|
34
|
+
const a = S(n.value), { t: s } = V();
|
|
35
|
+
ue(n, () => {
|
|
36
|
+
a.value = n.value;
|
|
37
37
|
});
|
|
38
|
-
const l =
|
|
39
|
-
() => JSON.stringify(
|
|
38
|
+
const l = u(
|
|
39
|
+
() => JSON.stringify(a.value) === JSON.stringify(n.value)
|
|
40
40
|
), i = () => {
|
|
41
|
-
e(
|
|
41
|
+
e(p.SELECT, a.value), e(p.CLOSE_DROPDOWN);
|
|
42
42
|
}, c = () => {
|
|
43
|
-
|
|
43
|
+
a.value = n.value, e(p.CLOSE_DROPDOWN);
|
|
44
44
|
}, m = () => {
|
|
45
|
-
o.value && t.value && (
|
|
46
|
-
}, r =
|
|
45
|
+
o.value && t.value && (a.value = n.value);
|
|
46
|
+
}, r = u(() => [
|
|
47
47
|
{
|
|
48
48
|
title: s("apply"),
|
|
49
49
|
event: i,
|
|
@@ -53,39 +53,39 @@ const Ke = {
|
|
|
53
53
|
title: s("cancel"),
|
|
54
54
|
event: c
|
|
55
55
|
}
|
|
56
|
-
]), d = (
|
|
57
|
-
|
|
58
|
-
}, g = (
|
|
59
|
-
d(
|
|
60
|
-
}, h = (
|
|
61
|
-
d(
|
|
62
|
-
}, v = (
|
|
63
|
-
d(
|
|
56
|
+
]), d = (b) => {
|
|
57
|
+
a.value = b, t.value || e(p.SELECT, b);
|
|
58
|
+
}, g = (b) => {
|
|
59
|
+
d(b), e(p.TAB);
|
|
60
|
+
}, h = (b) => {
|
|
61
|
+
d(b), e(p.ENTER);
|
|
62
|
+
}, v = (b) => {
|
|
63
|
+
d(b), e(p.SPACE);
|
|
64
64
|
}, O = () => {
|
|
65
|
-
c(), e(
|
|
66
|
-
},
|
|
67
|
-
e(
|
|
68
|
-
},
|
|
69
|
-
[
|
|
70
|
-
[
|
|
71
|
-
[
|
|
72
|
-
[
|
|
73
|
-
[
|
|
65
|
+
c(), e(p.ESCAPE);
|
|
66
|
+
}, C = () => {
|
|
67
|
+
e(p.SHOW_MORE);
|
|
68
|
+
}, L = {
|
|
69
|
+
[p.SELECT]: d,
|
|
70
|
+
[p.SHOW_MORE]: C,
|
|
71
|
+
[p.TAB]: g,
|
|
72
|
+
[p.SPACE]: v,
|
|
73
|
+
[p.ENTER]: h
|
|
74
74
|
};
|
|
75
75
|
return {
|
|
76
76
|
// Values
|
|
77
77
|
actions: r,
|
|
78
|
-
internalSelectedValue:
|
|
78
|
+
internalSelectedValue: a,
|
|
79
79
|
// Methods
|
|
80
|
-
listeners:
|
|
80
|
+
listeners: L,
|
|
81
81
|
onEscapeKey: O,
|
|
82
82
|
onOutsideDropdownClick: m
|
|
83
83
|
};
|
|
84
|
-
},
|
|
85
|
-
i18n: { messages:
|
|
84
|
+
}, We = N({
|
|
85
|
+
i18n: { messages: ze },
|
|
86
86
|
name: "bento-dropdown-options-container"
|
|
87
|
-
}),
|
|
88
|
-
...
|
|
87
|
+
}), Ue = /* @__PURE__ */ N({
|
|
88
|
+
...We,
|
|
89
89
|
props: {
|
|
90
90
|
/**
|
|
91
91
|
* Defines a string value that labels an interactive element.
|
|
@@ -145,7 +145,7 @@ const Ke = {
|
|
|
145
145
|
lazyLoadType: {
|
|
146
146
|
type: String,
|
|
147
147
|
default: J.AUTOMATIC,
|
|
148
|
-
validator: (
|
|
148
|
+
validator: (n) => Object.values(J).includes(n)
|
|
149
149
|
},
|
|
150
150
|
/**
|
|
151
151
|
* Indicates if new options are lazy loading.
|
|
@@ -195,19 +195,20 @@ const Ke = {
|
|
|
195
195
|
}
|
|
196
196
|
},
|
|
197
197
|
emits: [],
|
|
198
|
-
setup(
|
|
199
|
-
const e =
|
|
198
|
+
setup(n, { expose: t, emit: o }) {
|
|
199
|
+
const e = n, a = pe(), { selectedValue: s, multiple: l } = fe(e), i = S(null), { t: c } = V(), m = u(() => e.open && !e.disabled), r = u(() => c("noOptionsMatchThisSearch")), d = u(() => ({
|
|
200
200
|
"b-dropdown-options-container--single": !(e != null && e.multiple)
|
|
201
|
-
})), g =
|
|
201
|
+
})), g = u(() => ({
|
|
202
202
|
"b-dropdown-options-container__listbox--single": !(e != null && e.multiple)
|
|
203
|
-
})), { actions: h, internalSelectedValue: v, listeners: O, onEscapeKey:
|
|
203
|
+
})), { actions: h, internalSelectedValue: v, listeners: O, onEscapeKey: C, onOutsideDropdownClick: L } = je(s, l, m, o), b = u(() => e != null && e.multiple ? Ke : re), I = u(() => {
|
|
204
204
|
var T;
|
|
205
|
-
const
|
|
205
|
+
const D = {
|
|
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
|
+
ariaLabel: e.ariaLabel,
|
|
211
212
|
actions: h.value,
|
|
212
213
|
divider: !0,
|
|
213
214
|
fallbackPosition: ["top-start"],
|
|
@@ -216,7 +217,7 @@ const Ke = {
|
|
|
216
217
|
position: "bottom-start",
|
|
217
218
|
style: {
|
|
218
219
|
width: "auto",
|
|
219
|
-
...
|
|
220
|
+
...D
|
|
220
221
|
},
|
|
221
222
|
targetElement: e.targetElement
|
|
222
223
|
} : {
|
|
@@ -225,74 +226,74 @@ const Ke = {
|
|
|
225
226
|
position: "bottom-start",
|
|
226
227
|
style: {
|
|
227
228
|
display: m.value ? "block" : "none",
|
|
228
|
-
...
|
|
229
|
+
...D
|
|
229
230
|
},
|
|
230
231
|
targetElement: e.targetElement
|
|
231
232
|
};
|
|
232
233
|
});
|
|
233
234
|
return t({
|
|
234
|
-
onOutsideDropdownClick:
|
|
235
|
-
}), { __sfc: !0, slots:
|
|
235
|
+
onOutsideDropdownClick: L
|
|
236
|
+
}), { __sfc: !0, slots: a, emit: o, props: e, selectedValue: s, multiple: l, dropdownOptionsListboxRef: i, t: c, isDropdownOpen: m, noResultsMessage: r, conditionalClasses: d, conditionalListboxClasses: g, actions: h, internalSelectedValue: v, listeners: O, onEscapeKey: C, onOutsideDropdownClick: L, popperContainerOrPopoverComponent: b, popperContainerOrPopoverProps: I, BentoListbox: H };
|
|
236
237
|
}
|
|
237
238
|
});
|
|
238
|
-
var
|
|
239
|
+
var qe = function() {
|
|
239
240
|
var t = this, o = t._self._c, e = t._self._setupProxy;
|
|
240
|
-
return o(e.popperContainerOrPopoverComponent, t._b({ tag: "component", staticClass: "b-dropdown-options-container", class: e.conditionalClasses
|
|
241
|
-
return !
|
|
242
|
-
} } }, [o(e.BentoListbox, t._g({ ref: "dropdownOptionsListboxRef", staticClass: "b-dropdown-options-container__listbox", class: e.conditionalListboxClasses, attrs: { id: t.id, "aria-label": t.ariaLabel, "component-loading": t.componentLoading, "empty-state": t.emptyState, "is-option-disabled": t.isOptionDisabled, items: t.items, "selected-value": e.internalSelectedValue, multiple: e.multiple, "static-categories": t.staticCategories, "no-results-message": e.noResultsMessage, searching: t.searching, loading: t.loading, "lazy-load-type": t.lazyLoadType, "has-more-items": t.hasMoreItems, "virtual-scroll": t.virtualScroll }, scopedSlots: t._u([t._l(e.slots, function(
|
|
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
|
+
return !a.type.indexOf("key") && t._k(a.keyCode, "esc", 27, a.key, ["Esc", "Escape"]) ? null : e.onEscapeKey.apply(null, arguments);
|
|
243
|
+
} } }, [o(e.BentoListbox, t._g({ ref: "dropdownOptionsListboxRef", staticClass: "b-dropdown-options-container__listbox", class: e.conditionalListboxClasses, attrs: { id: t.id, "aria-label": t.ariaLabel, "component-loading": t.componentLoading, "empty-state": t.emptyState, "is-option-disabled": t.isOptionDisabled, items: t.items, "selected-value": e.internalSelectedValue, multiple: e.multiple, "static-categories": t.staticCategories, "no-results-message": e.noResultsMessage, searching: t.searching, loading: t.loading, "lazy-load-type": t.lazyLoadType, "has-more-items": t.hasMoreItems, "virtual-scroll": t.virtualScroll }, scopedSlots: t._u([t._l(e.slots, function(a, s) {
|
|
243
244
|
return { key: s, fn: function(l) {
|
|
244
245
|
return [t._t(s, null, null, l)];
|
|
245
246
|
} };
|
|
246
247
|
})], null, !0) }, e.listeners))], 1)]);
|
|
247
|
-
},
|
|
248
|
-
We,
|
|
248
|
+
}, He = [], Je = /* @__PURE__ */ K(
|
|
249
249
|
Ue,
|
|
250
250
|
qe,
|
|
251
|
+
He,
|
|
251
252
|
!1,
|
|
252
253
|
null,
|
|
253
|
-
"
|
|
254
|
+
"d774d15c"
|
|
254
255
|
);
|
|
255
|
-
const
|
|
256
|
+
const Ve = Je.exports;
|
|
256
257
|
let de = 0;
|
|
257
|
-
const
|
|
258
|
+
const Ye = {
|
|
258
259
|
beforeCreate() {
|
|
259
260
|
this.uuid = de.toString(), de += 1;
|
|
260
261
|
}
|
|
261
262
|
};
|
|
262
|
-
var
|
|
263
|
+
var Ze = function() {
|
|
263
264
|
var t = this, o = t._self._c;
|
|
264
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" } })]);
|
|
265
|
-
},
|
|
266
|
-
Ve,
|
|
266
|
+
}, Qe = [], Xe = /* @__PURE__ */ K(
|
|
267
267
|
Ye,
|
|
268
268
|
Ze,
|
|
269
|
+
Qe,
|
|
269
270
|
!1,
|
|
270
271
|
null,
|
|
271
272
|
null
|
|
272
273
|
);
|
|
273
|
-
const
|
|
274
|
+
const Ge = Xe.exports;
|
|
274
275
|
let ce = 0;
|
|
275
|
-
const
|
|
276
|
+
const et = {
|
|
276
277
|
beforeCreate() {
|
|
277
278
|
this.uuid = ce.toString(), ce += 1;
|
|
278
279
|
}
|
|
279
280
|
};
|
|
280
|
-
var
|
|
281
|
+
var tt = function() {
|
|
281
282
|
var t = this, o = t._self._c;
|
|
282
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" } })]);
|
|
283
|
-
},
|
|
284
|
-
Ge,
|
|
284
|
+
}, ot = [], at = /* @__PURE__ */ K(
|
|
285
285
|
et,
|
|
286
286
|
tt,
|
|
287
|
+
ot,
|
|
287
288
|
!1,
|
|
288
289
|
null,
|
|
289
290
|
null
|
|
290
291
|
);
|
|
291
|
-
const nt =
|
|
292
|
+
const nt = at.exports, lt = N({
|
|
292
293
|
name: "dropdown-small-textbox",
|
|
293
294
|
inheritAttrs: !1
|
|
294
|
-
}),
|
|
295
|
-
...
|
|
295
|
+
}), st = /* @__PURE__ */ N({
|
|
296
|
+
...lt,
|
|
296
297
|
props: {
|
|
297
298
|
/**
|
|
298
299
|
* The number of additional items that have been selected in the dropdown.
|
|
@@ -352,12 +353,12 @@ const nt = ot.exports, at = A({
|
|
|
352
353
|
value: { type: String, default: "" }
|
|
353
354
|
},
|
|
354
355
|
emits: ["clear", "close", "input", "keydown", "open"],
|
|
355
|
-
setup(
|
|
356
|
-
const e =
|
|
356
|
+
setup(n, { expose: t, emit: o }) {
|
|
357
|
+
const e = n, a = S(null), s = u(() => ({
|
|
357
358
|
[`b-dropdown-small-textbox--${U.DISABLED}`]: e.disabled,
|
|
358
359
|
[`b-dropdown-small-textbox--${U.READONLY}`]: e.readonly,
|
|
359
360
|
[`b-dropdown-small-textbox--${U.OPENED}`]: e.open
|
|
360
|
-
})), l =
|
|
361
|
+
})), l = u(() => e.open && !e.disabled && !e.readonly), i = (v) => {
|
|
361
362
|
o("input", v);
|
|
362
363
|
}, c = (v) => {
|
|
363
364
|
o("keydown", v);
|
|
@@ -368,144 +369,144 @@ const nt = ot.exports, at = A({
|
|
|
368
369
|
}, d = (v) => {
|
|
369
370
|
q(v), o("clear");
|
|
370
371
|
}, g = {
|
|
371
|
-
[
|
|
372
|
-
[
|
|
373
|
-
[
|
|
374
|
-
[
|
|
375
|
-
[
|
|
372
|
+
[P.INPUT]: i,
|
|
373
|
+
[P.OPEN]: m,
|
|
374
|
+
[P.CLOSE]: r,
|
|
375
|
+
[P.CLEAR]: d,
|
|
376
|
+
[P.KEYDOWN]: c
|
|
376
377
|
}, h = () => {
|
|
377
|
-
|
|
378
|
+
a.value.focus();
|
|
378
379
|
};
|
|
379
380
|
return t({
|
|
380
381
|
focus: h
|
|
381
|
-
}), { __sfc: !0, emit: o, props: e, baseTextbox:
|
|
382
|
+
}), { __sfc: !0, emit: o, props: e, baseTextbox: a, conditionalClasses: s, isDropdownOpen: l, onInput: i, onKeyDown: c, openDropdown: m, closeDropdown: r, clearValue: d, listeners: g, focus: h, BentoDropdownSize: F, DropdownBaseTextbox: Te, ChevronDownSmallIcon: Ge, ChevronUpSmallIcon: nt };
|
|
382
383
|
}
|
|
383
384
|
});
|
|
384
|
-
var
|
|
385
|
+
var it = function() {
|
|
385
386
|
var t = this, o = t._self._c, e = t._self._setupProxy;
|
|
386
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() {
|
|
387
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)];
|
|
388
389
|
}, proxy: !0 }]) }, "dropdown-base-textbox", { ...t.$attrs, ...t.$props }, !1), e.listeners))], 1);
|
|
389
|
-
},
|
|
390
|
-
lt,
|
|
390
|
+
}, rt = [], dt = /* @__PURE__ */ K(
|
|
391
391
|
st,
|
|
392
392
|
it,
|
|
393
|
+
rt,
|
|
393
394
|
!1,
|
|
394
395
|
null,
|
|
395
396
|
"d0e53db8"
|
|
396
397
|
);
|
|
397
|
-
const
|
|
398
|
+
const ct = dt.exports, ut = (n, t) => t.value.reduce((o, e) => {
|
|
398
399
|
if (e.items) {
|
|
399
|
-
const
|
|
400
|
-
(l) =>
|
|
400
|
+
const a = e.items.filter(
|
|
401
|
+
(l) => n.value.find((i) => i.value === l.value)
|
|
401
402
|
);
|
|
402
|
-
|
|
403
|
+
a.length === e.items.length ? o.push(e.displayValue ?? e.label) : a.forEach(({ label: l, displayValue: i }) => o.push(i ?? l));
|
|
403
404
|
}
|
|
404
|
-
return
|
|
405
|
-
}, []).join(", "),
|
|
406
|
-
const
|
|
407
|
-
() => e.value &&
|
|
405
|
+
return n.value.find((a) => a.value === e.value) && o.push(e.displayValue ?? e.label), o;
|
|
406
|
+
}, []).join(", "), pt = ({ items: n, placeholder: t, selectedValues: o, isMultiSelect: e }) => {
|
|
407
|
+
const a = u(
|
|
408
|
+
() => e.value && n.value.find((l) => {
|
|
408
409
|
var i;
|
|
409
410
|
return (i = l.items) == null ? void 0 : i.length;
|
|
410
411
|
})
|
|
411
412
|
);
|
|
412
|
-
return
|
|
413
|
-
}, ve = (
|
|
413
|
+
return u(() => o.value.length ? a.value ? ut(o, n) : o.value.map(({ label: l, displayValue: i }) => i ?? l).join(", ") : t.value || null);
|
|
414
|
+
}, ve = (n) => {
|
|
414
415
|
var t;
|
|
415
|
-
(t =
|
|
416
|
-
},
|
|
417
|
-
inputContainerRef:
|
|
416
|
+
(t = n.value.$children) == null || t[0].$refs.textbox.focus();
|
|
417
|
+
}, ft = ({
|
|
418
|
+
inputContainerRef: n,
|
|
418
419
|
optionsContainerRef: t,
|
|
419
420
|
selectedValueIndex: o,
|
|
420
421
|
isDropdownOpen: e,
|
|
421
|
-
isDynamicFltering:
|
|
422
|
+
isDynamicFltering: a,
|
|
422
423
|
items: s,
|
|
423
424
|
isMultiple: l
|
|
424
425
|
}, i, c, m) => {
|
|
425
426
|
const r = async (f) => {
|
|
426
|
-
var
|
|
427
|
-
|
|
427
|
+
var y, B;
|
|
428
|
+
a.value && await x(), (B = (y = t.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef) == null ? void 0 : y.$el.querySelectorAll('[role="option"]')[f]) == null || B.focus();
|
|
428
429
|
}, d = async (f) => {
|
|
429
|
-
var
|
|
430
|
-
|
|
431
|
-
const
|
|
430
|
+
var B, R;
|
|
431
|
+
a.value && await x();
|
|
432
|
+
const y = (B = t.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef) == null ? void 0 : B.$el.querySelectorAll(
|
|
432
433
|
"button"
|
|
433
434
|
);
|
|
434
|
-
|
|
435
|
+
y.length ? (R = y[f]) == null || R.focus() : r(f);
|
|
435
436
|
}, g = (f) => {
|
|
436
|
-
var
|
|
437
|
-
return (
|
|
437
|
+
var y;
|
|
438
|
+
return (y = t.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef) == null ? void 0 : y.setListboxFocusedIndex(
|
|
438
439
|
f
|
|
439
440
|
);
|
|
440
441
|
}, h = ({ detail: f }) => {
|
|
441
|
-
f.preventDefault(), e.value || c(),
|
|
442
|
+
f.preventDefault(), e.value || c(), x(() => {
|
|
442
443
|
l ? d(0) : (g(o.value), r(o.value));
|
|
443
444
|
});
|
|
444
445
|
}, v = ({ detail: f }) => {
|
|
445
|
-
f.preventDefault(), e.value || c(),
|
|
446
|
+
f.preventDefault(), e.value || c(), x(() => {
|
|
446
447
|
l ? d(0) : (g(o.value), r(o.value));
|
|
447
448
|
});
|
|
448
449
|
}, O = () => {
|
|
449
|
-
e.value || (c(),
|
|
450
|
+
e.value || (c(), x(() => {
|
|
450
451
|
var f;
|
|
451
452
|
if (l) {
|
|
452
|
-
const
|
|
453
|
-
(f =
|
|
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();
|
|
454
455
|
} else
|
|
455
456
|
g(s.length - 1), r(s.length - 1);
|
|
456
457
|
}));
|
|
457
|
-
},
|
|
458
|
-
e.value && (m(), ve(
|
|
459
|
-
},
|
|
458
|
+
}, C = () => {
|
|
459
|
+
e.value && (m(), ve(n));
|
|
460
|
+
}, L = () => {
|
|
460
461
|
e.value && m();
|
|
461
|
-
},
|
|
462
|
-
e.value || c(),
|
|
462
|
+
}, b = () => {
|
|
463
|
+
e.value || c(), x(() => {
|
|
463
464
|
l ? d(0) : r(0);
|
|
464
465
|
});
|
|
465
466
|
}, I = ({ detail: f }) => {
|
|
466
|
-
f.preventDefault(), i(), e.value &&
|
|
467
|
+
f.preventDefault(), i(), e.value && x(() => {
|
|
467
468
|
l ? d(0) : (g(o.value), r(o.value));
|
|
468
469
|
});
|
|
469
|
-
},
|
|
470
|
-
f.preventDefault(), i(), e.value &&
|
|
470
|
+
}, D = ({ detail: f }) => {
|
|
471
|
+
f.preventDefault(), i(), e.value && x(() => {
|
|
471
472
|
l ? d(0) : (g(o.value), r(o.value));
|
|
472
473
|
});
|
|
473
474
|
};
|
|
474
|
-
return
|
|
475
|
-
...
|
|
476
|
-
[
|
|
477
|
-
[
|
|
478
|
-
[
|
|
479
|
-
[
|
|
480
|
-
[
|
|
481
|
-
[
|
|
482
|
-
[
|
|
475
|
+
return u(() => ({
|
|
476
|
+
...a.value ? {} : { [E.SPACE]: I },
|
|
477
|
+
[E.ENTER]: D,
|
|
478
|
+
[E.ARROW_DOWN]: h,
|
|
479
|
+
[E.ARROW_UP]: v,
|
|
480
|
+
[E.END]: O,
|
|
481
|
+
[E.ESCAPE]: C,
|
|
482
|
+
[E.HOME]: b,
|
|
483
|
+
[E.TAB]: L
|
|
483
484
|
}));
|
|
484
|
-
},
|
|
485
|
+
}, vt = ({ inputContainerRef: n, isDropdownOpen: t }, o) => {
|
|
485
486
|
const e = () => {
|
|
486
|
-
t.value && o(),
|
|
487
|
-
ve(
|
|
487
|
+
t.value && o(), x(() => {
|
|
488
|
+
ve(n);
|
|
488
489
|
});
|
|
489
490
|
};
|
|
490
491
|
return {
|
|
491
|
-
[
|
|
492
|
-
[
|
|
493
|
-
[
|
|
494
|
-
[
|
|
492
|
+
[p.ENTER]: e,
|
|
493
|
+
[p.ESCAPE]: e,
|
|
494
|
+
[p.TAB]: e,
|
|
495
|
+
[p.SPACE]: e
|
|
495
496
|
};
|
|
496
497
|
};
|
|
497
|
-
function
|
|
498
|
-
const
|
|
499
|
-
return ue(
|
|
500
|
-
o !== void 0 && o(
|
|
501
|
-
}),
|
|
502
|
-
if (!
|
|
498
|
+
function mt(n, t, o, e) {
|
|
499
|
+
const a = S(n), s = S(t), l = (c, m = []) => m.flatMap((r) => r.label.toLocaleLowerCase().includes(c) ? e != null && e.value && r.items ? [...l(c, r.items)] : [r, ...l(c, r.items)] : r.items ? [...l(c, r.items)] : []);
|
|
500
|
+
return ue(a, () => {
|
|
501
|
+
o !== void 0 && o(a.value);
|
|
502
|
+
}), u(() => {
|
|
503
|
+
if (!a.value || o !== void 0)
|
|
503
504
|
return s.value;
|
|
504
|
-
const c =
|
|
505
|
+
const c = a.value.toLocaleLowerCase();
|
|
505
506
|
return l(c, s.value);
|
|
506
507
|
});
|
|
507
508
|
}
|
|
508
|
-
const
|
|
509
|
+
const yt = {
|
|
509
510
|
"en-US": {
|
|
510
511
|
all: "All",
|
|
511
512
|
ariaLabelFallback: "Dropdown",
|
|
@@ -519,15 +520,15 @@ const mt = {
|
|
|
519
520
|
all: "Todos",
|
|
520
521
|
clearFilter: "Limpar filtro"
|
|
521
522
|
}
|
|
522
|
-
},
|
|
523
|
-
i18n: { messages:
|
|
523
|
+
}, bt = Symbol("input field component injection key"), Kt = Symbol("input field hint injection key"), zt = Symbol("input field parent component injection key"), _t = N({
|
|
524
|
+
i18n: { messages: yt },
|
|
524
525
|
name: "b-dropdown",
|
|
525
526
|
components: {
|
|
526
|
-
DropdownInputDefault:
|
|
527
|
-
DropdownInputSmall:
|
|
527
|
+
DropdownInputDefault: Ae,
|
|
528
|
+
DropdownInputSmall: ct
|
|
528
529
|
}
|
|
529
|
-
}),
|
|
530
|
-
...
|
|
530
|
+
}), gt = /* @__PURE__ */ N({
|
|
531
|
+
..._t,
|
|
531
532
|
props: {
|
|
532
533
|
/**
|
|
533
534
|
* @deprecated from version 2.0.0. Use the aria-label attribute instead.
|
|
@@ -619,7 +620,7 @@ const mt = {
|
|
|
619
620
|
lazyLoadType: {
|
|
620
621
|
type: String,
|
|
621
622
|
default: H.props.lazyLoadType.default,
|
|
622
|
-
validator: (
|
|
623
|
+
validator: (n) => Object.values(J).includes(n)
|
|
623
624
|
},
|
|
624
625
|
/*
|
|
625
626
|
* If enabled, the user will be able to select multiple items.
|
|
@@ -659,7 +660,7 @@ const mt = {
|
|
|
659
660
|
size: {
|
|
660
661
|
type: String,
|
|
661
662
|
default: null,
|
|
662
|
-
validator: (
|
|
663
|
+
validator: (n) => Object.values(F).includes(n)
|
|
663
664
|
},
|
|
664
665
|
/**
|
|
665
666
|
* If enabled, dropdown will display non-selectable, static categories
|
|
@@ -702,28 +703,28 @@ const mt = {
|
|
|
702
703
|
enableValueLabelPair: { type: Boolean, default: !1 }
|
|
703
704
|
},
|
|
704
705
|
emits: ["input", "show-more"],
|
|
705
|
-
setup(
|
|
706
|
+
setup(n, { expose: t, emit: o }) {
|
|
706
707
|
var se;
|
|
707
|
-
const e =
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
),
|
|
708
|
+
const e = n, a = Oe(), s = pe(), l = Ne(s), { t: i } = V(), c = S(null), m = S(null), r = S(null), d = S(!1), g = k("bento-dropdown-options-container"), h = k("dropdown-label"), v = k("dropdown-description"), O = k("dropdown-error"), { isReadOnly: C } = Ie(w(e, "readonly")), { cachedSelectedListboxOptions: L, cachedListboxSelectedValues: b, setCachedValues: I } = Re(
|
|
709
|
+
w(e, "items"),
|
|
710
|
+
w(e, "value"),
|
|
711
|
+
w(e, "multiple"),
|
|
712
|
+
w(e, "enableValueLabelPair")
|
|
713
|
+
), D = S(a["aria-label"]), { ariaLabel: T, label: f } = fe(e), y = u(() => i("ariaLabelFallback")), B = Be({
|
|
713
714
|
// TODO: take ariaLabel ref away when aria-label prop is removed
|
|
714
|
-
ariaLabel: T.value ||
|
|
715
|
+
ariaLabel: T.value || D,
|
|
715
716
|
label: f,
|
|
716
|
-
defaultFallback:
|
|
717
|
-
}),
|
|
717
|
+
defaultFallback: y
|
|
718
|
+
}), R = e.size === F.SMALL || Ee(bt, !1), me = u(() => R ? F.SMALL : F.DEFAULT), ye = u(() => ({
|
|
718
719
|
"b-dropdown--condensed": e.condensed
|
|
719
|
-
})),
|
|
720
|
+
})), be = u(() => ({
|
|
720
721
|
"b-dropdown__description--error": !!e.errorMessage
|
|
721
|
-
})),
|
|
722
|
-
items:
|
|
723
|
-
placeholder:
|
|
724
|
-
isMultiSelect:
|
|
725
|
-
selectedValues:
|
|
726
|
-
}),
|
|
722
|
+
})), A = S(""), $ = w(e, "items"), Y = w(e, "staticCategories"), Z = mt(A, $, (se = e == null ? void 0 : e.search) == null ? void 0 : se.searchEvent, Y), j = u(() => e.dynamicFiltering && !!A.value), _e = pt({
|
|
723
|
+
items: $,
|
|
724
|
+
placeholder: w(e, "placeholder"),
|
|
725
|
+
isMultiSelect: w(e, "multiple"),
|
|
726
|
+
selectedValues: L
|
|
727
|
+
}), ge = u(() => {
|
|
727
728
|
if (e != null && e.multiple && Array.isArray(e.value))
|
|
728
729
|
return e.items.filter(
|
|
729
730
|
({ value: _ }) => (e == null ? void 0 : e.value) && (e == null ? void 0 : e.value).includes(_)
|
|
@@ -735,53 +736,53 @@ const mt = {
|
|
|
735
736
|
return _ ? _.items.find((W) => W.value === e.value) : null;
|
|
736
737
|
}
|
|
737
738
|
return e.items.find(({ value: _ }) => _ === (e == null ? void 0 : e.value));
|
|
738
|
-
}), Q =
|
|
739
|
-
const _ = Z.value.findIndex(({ value:
|
|
739
|
+
}), Q = u(() => {
|
|
740
|
+
const _ = Z.value.findIndex(({ value: M }) => e.value === M);
|
|
740
741
|
return _ > -1 ? _ : 0;
|
|
741
|
-
}), { isMultiLevelSelect: X, flattenedItemsList: G } =
|
|
742
|
+
}), { isMultiLevelSelect: X, flattenedItemsList: G } = $e($), he = u(() => {
|
|
742
743
|
if (e.multiple) {
|
|
743
|
-
const _ = Array.isArray(e.value) ? e.value.length : 0,
|
|
744
|
-
return _ === 0 ? null : !e.hasMoreItems &&
|
|
744
|
+
const _ = Array.isArray(e.value) ? e.value.length : 0, M = X.value ? G.value.length : $.value.length;
|
|
745
|
+
return _ === 0 ? null : !e.hasMoreItems && M > 0 && M === _ ? i("all") : _;
|
|
745
746
|
}
|
|
746
747
|
return null;
|
|
747
|
-
}),
|
|
748
|
+
}), Se = u(
|
|
748
749
|
() => `${e.description ? v : ""} ${e.errorMessage ? O : ""}`.trim() || null
|
|
749
750
|
), ee = () => {
|
|
750
|
-
|
|
751
|
+
C.value || (d.value = !0);
|
|
751
752
|
}, z = () => {
|
|
752
753
|
d.value = !1;
|
|
753
754
|
}, te = () => {
|
|
754
|
-
|
|
755
|
-
},
|
|
756
|
-
j.value && (
|
|
755
|
+
C.value || (d.value = !d.value, j.value && (A.value = ""));
|
|
756
|
+
}, we = () => {
|
|
757
|
+
j.value && (A.value = ""), d.value && (d.value = !1, r.value.onOutsideDropdownClick());
|
|
757
758
|
}, oe = (_) => {
|
|
758
|
-
e.multiple || (
|
|
759
|
-
},
|
|
760
|
-
o(
|
|
761
|
-
}, Ce =
|
|
759
|
+
e.multiple || (A.value = "", d.value = !1), I(_), o("input", b.value);
|
|
760
|
+
}, ae = () => {
|
|
761
|
+
o(p.SHOW_MORE);
|
|
762
|
+
}, Ce = ft(
|
|
762
763
|
{
|
|
763
764
|
inputContainerRef: c,
|
|
764
765
|
optionsContainerRef: r,
|
|
765
766
|
selectedValueIndex: Q,
|
|
766
767
|
isDropdownOpen: d,
|
|
767
|
-
isDynamicFltering:
|
|
768
|
+
isDynamicFltering: w(e, "dynamicFiltering"),
|
|
768
769
|
items: e.items,
|
|
769
770
|
isMultiple: e.multiple
|
|
770
771
|
},
|
|
771
772
|
te,
|
|
772
773
|
ee,
|
|
773
774
|
z
|
|
774
|
-
),
|
|
775
|
+
), ne = vt(
|
|
775
776
|
{
|
|
776
777
|
inputContainerRef: c,
|
|
777
778
|
isDropdownOpen: d
|
|
778
779
|
},
|
|
779
780
|
z
|
|
780
|
-
),
|
|
781
|
-
[
|
|
782
|
-
[
|
|
783
|
-
[
|
|
784
|
-
...
|
|
781
|
+
), Le = {
|
|
782
|
+
[p.CLOSE_DROPDOWN]: z,
|
|
783
|
+
[p.SELECT]: oe,
|
|
784
|
+
[p.SHOW_MORE]: ae,
|
|
785
|
+
...ne
|
|
785
786
|
};
|
|
786
787
|
e.error && ie(
|
|
787
788
|
'BentoDropdown "error" property',
|
|
@@ -795,39 +796,39 @@ const mt = {
|
|
|
795
796
|
};
|
|
796
797
|
return t({
|
|
797
798
|
focus: le
|
|
798
|
-
}), { __sfc: !0, attrs:
|
|
799
|
+
}), { __sfc: !0, attrs: a, slots: s, hasSlot: l, props: e, emit: o, t: i, inputContainerRef: c, inputContainerRefWrapper: m, optionsContainerRef: r, isDropdownOpen: d, dropdownOptionsContainerId: g, labelId: h, descriptionId: v, errorId: O, isReadOnly: C, cachedSelectedListboxOptions: L, cachedListboxSelectedValues: b, setCachedValues: I, ariaLabelAttribute: D, ariaLabel: T, label: f, computedAriaLabelFallbackMessage: y, computedAriaLabel: B, isInputComponent: R, computedSize: me, conditionalClasses: ye, descriptionConditionalClasses: be, searchTerm: A, items: $, staticCategories: Y, filteredItems: Z, isSearching: j, displayValue: _e, selectedValueItem: ge, selectedValueIndex: Q, isMultiLevelSelect: X, flattenedItemsList: G, additionalItemsSelected: he, ariaDescribedBy: Se, openDropdown: ee, closeDropdown: z, toggleDropdown: te, clickOutsideDropdown: we, onOptionSelected: oe, emitShowMoreEvent: ae, textboxKeyboardNavigationListeners: Ce, listboxKeyboardNavigationListeners: ne, listboxListeners: Le, focus: le, BentoDropdownOptionsContainer: Ve, BentoTypography: De, ErrorMessage: Fe, FieldLabel: ke, vBentoClickOutsideDirective: Pe, vBentoKeyboardNavigationDirective: Me };
|
|
799
800
|
}
|
|
800
801
|
});
|
|
801
|
-
var
|
|
802
|
-
var
|
|
802
|
+
var ht = function() {
|
|
803
|
+
var a;
|
|
803
804
|
var t = this, o = t._self._c, e = t._self._setupProxy;
|
|
804
|
-
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,
|
|
805
|
+
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) {
|
|
805
806
|
e.searchTerm = s;
|
|
806
807
|
}, open: e.toggleDropdown, close: e.toggleDropdown }, scopedSlots: t._u([t._l(e.slots, function(s, l) {
|
|
807
808
|
return { key: l, fn: function(i) {
|
|
808
809
|
return [t._t(l, null, null, i)];
|
|
809
810
|
} };
|
|
810
|
-
})], null, !0) })], 1), e.inputContainerRef ? o(e.BentoDropdownOptionsContainer, t._g({ ref: "optionsContainerRef", attrs: { id: e.dropdownOptionsContainerId, "aria-label": e.computedAriaLabel, "component-loading": t.componentLoading, "empty-state": t.emptyState, "debounce-time": (
|
|
811
|
+
})], null, !0) })], 1), e.inputContainerRef ? o(e.BentoDropdownOptionsContainer, t._g({ ref: "optionsContainerRef", attrs: { id: e.dropdownOptionsContainerId, "aria-label": e.computedAriaLabel, "component-loading": t.componentLoading, "empty-state": t.emptyState, "debounce-time": (a = t.search) == null ? void 0 : a.debounceTime, disabled: t.disabled, "is-option-disabled": t.isOptionDisabled, items: e.filteredItems, multiple: t.multiple, "static-categories": e.staticCategories, open: e.isDropdownOpen, "selected-value": e.cachedSelectedListboxOptions, searching: e.isSearching, "target-element": e.inputContainerRefWrapper, loading: t.loading, "has-more-items": t.hasMoreItems, "lazy-load-type": t.lazyLoadType, "virtual-scroll": t.virtualScroll }, scopedSlots: t._u([t._l(e.slots, function(s, l) {
|
|
811
812
|
return { key: l, fn: function(i) {
|
|
812
813
|
return [t._t(l, null, null, i)];
|
|
813
814
|
} };
|
|
814
815
|
})], 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() {
|
|
815
816
|
return [t._v(" " + t._s(t.description) + " ")];
|
|
816
817
|
})], 2) : t._e()], 1);
|
|
817
|
-
},
|
|
818
|
-
_t,
|
|
818
|
+
}, St = [], wt = /* @__PURE__ */ K(
|
|
819
819
|
gt,
|
|
820
820
|
ht,
|
|
821
|
+
St,
|
|
821
822
|
!1,
|
|
822
823
|
null,
|
|
823
|
-
"
|
|
824
|
+
"4355e954"
|
|
824
825
|
);
|
|
825
|
-
const
|
|
826
|
+
const jt = wt.exports;
|
|
826
827
|
export {
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
828
|
+
jt as B,
|
|
829
|
+
Kt as I,
|
|
830
|
+
bt as a,
|
|
831
|
+
zt as b,
|
|
832
|
+
mt as u
|
|
832
833
|
};
|
|
833
|
-
//# sourceMappingURL=dropdown.
|
|
834
|
+
//# sourceMappingURL=dropdown.DZ1Ndonr.js.map
|