@adyen/bento-vue2 1.34.0 → 1.35.1
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 +2 -2
- package/dist/accordion.js +1 -1
- package/dist/action-bar.js +1 -1
- package/dist/alert.js +1 -1
- package/dist/assets/accordion-item.css +1 -1
- package/dist/assets/action-bar.css +1 -1
- package/dist/assets/avatar.css +1 -1
- package/dist/assets/base-modal.css +1 -1
- package/dist/assets/calendar.css +1 -1
- package/dist/assets/card.css +1 -1
- package/dist/assets/checkbox.css +1 -1
- package/dist/assets/code-snippet.css +1 -1
- package/dist/assets/currency.css +1 -0
- package/dist/assets/data-grid.css +1 -1
- package/dist/assets/date-range-picker.css +1 -1
- package/dist/assets/dialog-page.css +1 -1
- package/dist/assets/dropdown.css +1 -1
- package/dist/assets/error-message.css +1 -1
- package/dist/assets/filter-bar.css +1 -1
- package/dist/assets/header.css +1 -1
- package/dist/assets/inspector.css +1 -1
- package/dist/assets/loading-button.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/structured-list-item.css +1 -1
- package/dist/assets/tutorial.css +1 -1
- package/dist/avatar.js +1 -1
- package/dist/button.js +2 -2
- package/dist/card.js +1 -1
- package/dist/checkbox.js +2 -2
- package/dist/chunks/accordion-item.BDNSykyK.js +116 -0
- package/dist/chunks/accordion-item.BDNSykyK.js.map +1 -0
- package/dist/chunks/{action-bar.CsRmYQ-k.js → action-bar.CCVKS1xo.js} +51 -37
- package/dist/chunks/{action-bar.CsRmYQ-k.js.map → action-bar.CCVKS1xo.js.map} +1 -1
- package/dist/chunks/{alert.DtT7BRdr.js → alert.CVsckdGC.js} +17 -11
- package/dist/chunks/{alert.DtT7BRdr.js.map → alert.CVsckdGC.js.map} +1 -1
- package/dist/chunks/{avatar.0ffdL8i0.js → avatar.qcWk9clF.js} +9 -9
- package/dist/chunks/avatar.qcWk9clF.js.map +1 -0
- package/dist/chunks/{base-modal.zHjXVjwU.js → base-modal.BaHkDH5f.js} +15 -9
- package/dist/chunks/{base-modal.zHjXVjwU.js.map → base-modal.BaHkDH5f.js.map} +1 -1
- package/dist/chunks/{button-actions-with-menu.B6Nb6Ohu.js → button-actions-with-menu.Bl82u6yP.js} +4 -4
- package/dist/chunks/{button-actions-with-menu.B6Nb6Ohu.js.map → button-actions-with-menu.Bl82u6yP.js.map} +1 -1
- package/dist/chunks/{button-actions.BQHr68sA.js → button-actions.DN4eIQes.js} +2 -2
- package/dist/chunks/{button-actions.BQHr68sA.js.map → button-actions.DN4eIQes.js.map} +1 -1
- package/dist/chunks/{calendar.CaTMWZUM.js → calendar.BFrqPClW.js} +230 -230
- package/dist/chunks/calendar.BFrqPClW.js.map +1 -0
- package/dist/chunks/card.lWLgpCWM.js +123 -0
- package/dist/chunks/card.lWLgpCWM.js.map +1 -0
- package/dist/chunks/{checkbox-group.D_mCZMPr.js → checkbox-group.C0cqbJWx.js} +4 -4
- package/dist/chunks/{checkbox-group.D_mCZMPr.js.map → checkbox-group.C0cqbJWx.js.map} +1 -1
- package/dist/chunks/{checkbox.CaX67eM_.js → checkbox.B3u_hzUo.js} +38 -28
- package/dist/chunks/{checkbox.CaX67eM_.js.map → checkbox.B3u_hzUo.js.map} +1 -1
- package/dist/chunks/{code-snippet.DgKK7fE8.js → code-snippet.BgjvWTHP.js} +43 -34
- package/dist/chunks/code-snippet.BgjvWTHP.js.map +1 -0
- package/dist/chunks/{controls-group.6aTaRWFI.js → controls-group.DLBxlPfl.js} +2 -2
- package/dist/chunks/{controls-group.6aTaRWFI.js.map → controls-group.DLBxlPfl.js.map} +1 -1
- package/dist/chunks/{copy.B1DYKX_q.js → copy.CmxcGt77.js} +31 -23
- package/dist/chunks/{copy.B1DYKX_q.js.map → copy.CmxcGt77.js.map} +1 -1
- package/dist/chunks/{currency.D_2CN1OJ.js → currency.CbZqZrBz.js} +9 -8
- package/dist/chunks/{currency.D_2CN1OJ.js.map → currency.CbZqZrBz.js.map} +1 -1
- package/dist/chunks/{dashboard-section.DWfQGGwS.js → dashboard-section.BfXtTf6l.js} +2 -2
- package/dist/chunks/{dashboard-section.DWfQGGwS.js.map → dashboard-section.BfXtTf6l.js.map} +1 -1
- package/dist/chunks/{dashed-underline.C7gLtEqx.js → dashed-underline.xq5j9fGG.js} +2 -2
- package/dist/chunks/{dashed-underline.C7gLtEqx.js.map → dashed-underline.xq5j9fGG.js.map} +1 -1
- package/dist/chunks/{data-grid-template.2xocKVqX.js → data-grid-template.C8AR5CxA.js} +2 -2
- package/dist/chunks/{data-grid-template.2xocKVqX.js.map → data-grid-template.C8AR5CxA.js.map} +1 -1
- package/dist/chunks/{data-grid.CUn6MrZz.js → data-grid.BCTcokYm.js} +472 -426
- package/dist/chunks/{data-grid.CUn6MrZz.js.map → data-grid.BCTcokYm.js.map} +1 -1
- package/dist/chunks/{date-picker.C6_KbCYT.js → date-picker.CPG0zksD.js} +91 -83
- package/dist/chunks/date-picker.CPG0zksD.js.map +1 -0
- package/dist/chunks/{date-range-picker.DaTgBXP1.js → date-range-picker.Bt439x32.js} +265 -243
- package/dist/chunks/date-range-picker.Bt439x32.js.map +1 -0
- package/dist/chunks/{date.DaiTzNEZ.js → date.C0uwNQjg.js} +80 -80
- package/dist/chunks/{date.DaiTzNEZ.js.map → date.C0uwNQjg.js.map} +1 -1
- package/dist/chunks/{dropdown-tag.pJ_sQbJN.js → dropdown-tag.Cd4LGtwl.js} +3 -3
- package/dist/chunks/{dropdown-tag.pJ_sQbJN.js.map → dropdown-tag.Cd4LGtwl.js.map} +1 -1
- package/dist/chunks/{dropdown.DpsQPLy-.js → dropdown.B4KMM58m.js} +158 -139
- package/dist/chunks/dropdown.B4KMM58m.js.map +1 -0
- package/dist/chunks/{error-message.BnFyGbR7.js → error-message.GCYDEzGL.js} +28 -14
- package/dist/chunks/{error-message.BnFyGbR7.js.map → error-message.GCYDEzGL.js.map} +1 -1
- package/dist/chunks/es6.BvpG4Oi6.js.map +1 -1
- package/dist/chunks/{filter-bar.DGBvcKsz.js → filter-bar.Co2YeUUg.js} +604 -589
- package/dist/chunks/filter-bar.Co2YeUUg.js.map +1 -0
- package/dist/chunks/{footer-actions.CwHY2-Ap.js → footer-actions.CxxS87iQ.js} +2 -2
- package/dist/chunks/{footer-actions.CwHY2-Ap.js.map → footer-actions.CxxS87iQ.js.map} +1 -1
- package/dist/chunks/{form-layout-title.CRsR3o2x.js → form-layout-title.DomnJXLE.js} +2 -2
- package/dist/chunks/{form-layout-title.CRsR3o2x.js.map → form-layout-title.DomnJXLE.js.map} +1 -1
- package/dist/chunks/{index.B_UZQ6qF.js → get-date-locale.BN8xEjY0.js} +855 -204
- package/dist/chunks/get-date-locale.BN8xEjY0.js.map +1 -0
- package/dist/chunks/{header.BmNDoXio.js → header.zacQVbjn.js} +79 -73
- package/dist/chunks/{header.BmNDoXio.js.map → header.zacQVbjn.js.map} +1 -1
- package/dist/chunks/{index.Z84QE0E2.js → index.CrhTVr5J.js} +2 -2
- package/dist/chunks/{index.Z84QE0E2.js.map → index.CrhTVr5J.js.map} +1 -1
- package/dist/chunks/{index.xqFSZOAb.js → index.DDnf1O9p.js} +2 -2
- package/dist/chunks/{index.xqFSZOAb.js.map → index.DDnf1O9p.js.map} +1 -1
- package/dist/chunks/{index.B_EJflcs.js → index.DPafeRJa.js} +2 -2
- package/dist/chunks/{index.B_EJflcs.js.map → index.DPafeRJa.js.map} +1 -1
- package/dist/chunks/{input-field.S5HIZtYA.js → input-field.DBrzeKBj.js} +3 -3
- package/dist/chunks/{input-field.S5HIZtYA.js.map → input-field.DBrzeKBj.js.map} +1 -1
- package/dist/chunks/{inspector.types.D6kCCKNk.js → inspector.types.lu_MoQn5.js} +17 -9
- package/dist/chunks/{inspector.types.D6kCCKNk.js.map → inspector.types.lu_MoQn5.js.map} +1 -1
- package/dist/chunks/{loading-button.DDPZYO6r.js → loading-button.DoX2sopf.js} +39 -25
- package/dist/chunks/loading-button.DoX2sopf.js.map +1 -0
- package/dist/chunks/{menu.DSOJEn4v.js → menu.DHakGFS4.js} +2 -2
- package/dist/chunks/{menu.DSOJEn4v.js.map → menu.DHakGFS4.js.map} +1 -1
- package/dist/chunks/{modal-fullscreen.BQKE0bm0.js → modal-fullscreen.mIlp0LnL.js} +25 -19
- package/dist/chunks/{modal-fullscreen.BQKE0bm0.js.map → modal-fullscreen.mIlp0LnL.js.map} +1 -1
- package/dist/chunks/{modal.ClqkmzVZ.js → modal.CtTQWN8H.js} +25 -19
- package/dist/chunks/modal.CtTQWN8H.js.map +1 -0
- package/dist/chunks/{pagination.he0lQGAV.js → pagination.By-p9MjL.js} +2 -2
- package/dist/chunks/{pagination.he0lQGAV.js.map → pagination.By-p9MjL.js.map} +1 -1
- package/dist/chunks/{popover.UmNw_M-C.js → popover.BDaf6hmW.js} +2 -2
- package/dist/chunks/{popover.UmNw_M-C.js.map → popover.BDaf6hmW.js.map} +1 -1
- package/dist/chunks/{radio-group.D7cuMKzV.js → radio-group.OaYz1wJf.js} +3 -3
- package/dist/chunks/{radio-group.D7cuMKzV.js.map → radio-group.OaYz1wJf.js.map} +1 -1
- package/dist/chunks/{search-bar.BPyYb0WB.js → search-bar.eC-crOww.js} +14 -6
- package/dist/chunks/{search-bar.BPyYb0WB.js.map → search-bar.eC-crOww.js.map} +1 -1
- package/dist/chunks/{secondary-nav.CMUfpgQf.js → secondary-nav.1xw-o8OR.js} +2 -2
- package/dist/chunks/{secondary-nav.CMUfpgQf.js.map → secondary-nav.1xw-o8OR.js.map} +1 -1
- package/dist/chunks/{selection-card-group.DbMfzyTG.js → selection-card-group.BLPaJy5U.js} +3 -3
- package/dist/chunks/{selection-card-group.DbMfzyTG.js.map → selection-card-group.BLPaJy5U.js.map} +1 -1
- package/dist/chunks/{sidepanel.Ck6Ts9RR.js → sidepanel.ZYT_vzbj.js} +24 -18
- package/dist/chunks/{sidepanel.Ck6Ts9RR.js.map → sidepanel.ZYT_vzbj.js.map} +1 -1
- package/dist/chunks/{structured-list-item.DpLscUX4.js → structured-list-item.D7D8VpQY.js} +22 -16
- package/dist/chunks/{structured-list-item.DpLscUX4.js.map → structured-list-item.D7D8VpQY.js.map} +1 -1
- package/dist/chunks/{summary-grid-item-custom.B7Re6OCf.js → summary-grid-item-custom.v0QSLZKT.js} +2 -2
- package/dist/chunks/{summary-grid-item-custom.B7Re6OCf.js.map → summary-grid-item-custom.v0QSLZKT.js.map} +1 -1
- package/dist/chunks/{textarea.BRMpTWKS.js → textarea.C0IMS5XS.js} +2 -2
- package/dist/chunks/{textarea.BRMpTWKS.js.map → textarea.C0IMS5XS.js.map} +1 -1
- package/dist/chunks/{timeline-item.jh7UnviR.js → timeline-item.Dmd78uwQ.js} +53 -47
- package/dist/chunks/{timeline-item.jh7UnviR.js.map → timeline-item.Dmd78uwQ.js.map} +1 -1
- package/dist/chunks/{tutorial.DERGsCkg.js → tutorial.D64_0i0-.js} +50 -38
- package/dist/chunks/{tutorial.DERGsCkg.js.map → tutorial.D64_0i0-.js.map} +1 -1
- package/dist/chunks/{use-cached-selected-values.B39-iEp4.js → use-cached-selected-values.BOAumEi7.js} +54 -40
- package/dist/chunks/{use-cached-selected-values.B39-iEp4.js.map → use-cached-selected-values.BOAumEi7.js.map} +1 -1
- package/dist/code-snippet.js +1 -1
- package/dist/currency.js +1 -1
- package/dist/dashboard-template.js +1 -1
- package/dist/dashed-underline.js +1 -1
- package/dist/data-grid-template.js +1 -1
- package/dist/data-grid.js +1 -1
- package/dist/date-picker.js +2 -2
- package/dist/date-range-picker.js +2 -2
- package/dist/date.js +1 -1
- package/dist/dropdown.js +3 -3
- package/dist/filter-bar.js +1 -1
- package/dist/form-layout.js +1 -1
- package/dist/header.js +1 -1
- package/dist/index.js +43 -43
- package/dist/input-field.js +1 -1
- package/dist/inspector.js +1 -1
- package/dist/internal.js +5 -5
- package/dist/menu.js +1 -1
- package/dist/modal-fullscreen.js +1 -1
- package/dist/modal.js +2 -2
- package/dist/pagination.js +1 -1
- package/dist/popover.js +1 -1
- package/dist/radio-group.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/sidepanel.js +1 -1
- package/dist/structured-list.js +1 -1
- package/dist/styles/bento.css +3 -0
- package/dist/styles/legacy.css +3 -0
- package/dist/styles/styleguide.css +3 -0
- package/dist/summary-grid.js +1 -1
- package/dist/textarea.js +1 -1
- package/dist/timeline.js +1 -1
- package/dist/tutorial.js +1 -1
- package/dist/web-types.json +9 -9
- package/package.json +2 -2
- package/dist/chunks/accordion-item.IMlV_Vik.js +0 -100
- package/dist/chunks/accordion-item.IMlV_Vik.js.map +0 -1
- package/dist/chunks/avatar.0ffdL8i0.js.map +0 -1
- package/dist/chunks/calendar.CaTMWZUM.js.map +0 -1
- package/dist/chunks/card.ignL7-CH.js +0 -115
- package/dist/chunks/card.ignL7-CH.js.map +0 -1
- package/dist/chunks/code-snippet.DgKK7fE8.js.map +0 -1
- package/dist/chunks/date-picker.C6_KbCYT.js.map +0 -1
- package/dist/chunks/date-range-picker.DaTgBXP1.js.map +0 -1
- package/dist/chunks/dropdown.DpsQPLy-.js.map +0 -1
- package/dist/chunks/filter-bar.DGBvcKsz.js.map +0 -1
- package/dist/chunks/index.B_UZQ6qF.js.map +0 -1
- package/dist/chunks/loading-button.DDPZYO6r.js.map +0 -1
- package/dist/chunks/modal.ClqkmzVZ.js.map +0 -1
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { ref as g, watch as le, computed as
|
|
1
|
+
import { ref as g, watch as le, computed as u, defineComponent as B, useSlots as ie, toRefs as re, nextTick as E, useAttrs as Le, toRef as L, inject as Se } from "vue";
|
|
2
2
|
import { d as oe, B as Oe } from "./typography.CqQaHXhq.js";
|
|
3
|
-
import { g as
|
|
3
|
+
import { g as M } from "./unique-id.XFfoKuc2.js";
|
|
4
4
|
import { u as Ce } from "./aria-label.CaUURpnB.js";
|
|
5
5
|
import { u as U } from "./i18n.BQkEbtPM.js";
|
|
6
6
|
import { u as $e } from "./use-form-layout-loading.D3lALhtC.js";
|
|
7
|
-
import { a as K, b as A, B as
|
|
7
|
+
import { a as K, b as A, B as N, c as Ee, D as De } from "./dropdown-default-textbox.kQ3pHsZe.js";
|
|
8
8
|
import { u as Be } from "./use-has-slot.C9lQZ6nz.js";
|
|
9
9
|
import { n as k } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
|
|
10
10
|
import { s as z } from "./events.CMzGybJJ.js";
|
|
11
|
-
import { a as
|
|
11
|
+
import { a as c, B as W, b as j, c as Ie, u as Re } from "./use-cached-selected-values.BOAumEi7.js";
|
|
12
12
|
import { B as C, a as Te } from "./keyboard-navigation.Clz1jOaA.js";
|
|
13
13
|
import { P as se } from "./popper-container.CnWphJTN.js";
|
|
14
|
-
import { B as Ae } from "./popover.
|
|
15
|
-
import { E as
|
|
14
|
+
import { B as Ae } from "./popover.BDaf6hmW.js";
|
|
15
|
+
import { E as Me, F as Ne } from "./error-message.GCYDEzGL.js";
|
|
16
16
|
import { B as ke } from "./directive.O3yEdalv.js";
|
|
17
17
|
import "../assets/dropdown.css";
|
|
18
18
|
const Pe = {
|
|
@@ -20,53 +20,61 @@ const Pe = {
|
|
|
20
20
|
apply: "Apply",
|
|
21
21
|
cancel: "Cancel",
|
|
22
22
|
noOptionsMatchThisSearch: "No options match this search"
|
|
23
|
+
},
|
|
24
|
+
"pt-BR": {
|
|
25
|
+
apply: "Aplicar",
|
|
26
|
+
cancel: "Cancelar"
|
|
27
|
+
},
|
|
28
|
+
"ja-JP": {
|
|
29
|
+
apply: "適用",
|
|
30
|
+
cancel: "キャンセル"
|
|
23
31
|
}
|
|
24
32
|
}, Fe = (s, t, o, e) => {
|
|
25
|
-
const
|
|
33
|
+
const a = g(s.value), { t: l } = U();
|
|
26
34
|
le(s, () => {
|
|
27
|
-
|
|
35
|
+
a.value = s.value;
|
|
28
36
|
});
|
|
29
|
-
const
|
|
30
|
-
() => JSON.stringify(
|
|
31
|
-
),
|
|
32
|
-
e(
|
|
33
|
-
},
|
|
34
|
-
|
|
37
|
+
const n = u(
|
|
38
|
+
() => JSON.stringify(a.value) === JSON.stringify(s.value)
|
|
39
|
+
), r = () => {
|
|
40
|
+
e(c.SELECT, a.value), e(c.CLOSE_DROPDOWN);
|
|
41
|
+
}, d = () => {
|
|
42
|
+
a.value = s.value, e(c.CLOSE_DROPDOWN);
|
|
35
43
|
}, v = () => {
|
|
36
|
-
o.value && t.value && (
|
|
37
|
-
}, i =
|
|
44
|
+
o.value && t.value && (a.value = s.value);
|
|
45
|
+
}, i = u(() => [
|
|
38
46
|
{
|
|
39
47
|
title: l("apply"),
|
|
40
|
-
event:
|
|
41
|
-
disabled:
|
|
48
|
+
event: r,
|
|
49
|
+
disabled: n.value
|
|
42
50
|
},
|
|
43
51
|
{
|
|
44
52
|
title: l("cancel"),
|
|
45
|
-
event:
|
|
53
|
+
event: d
|
|
46
54
|
}
|
|
47
55
|
]), p = (b) => {
|
|
48
|
-
|
|
56
|
+
a.value = b, t.value || e(c.SELECT, b);
|
|
49
57
|
}, $ = (b) => {
|
|
50
|
-
p(b), e(
|
|
58
|
+
p(b), e(c.TAB);
|
|
51
59
|
}, x = (b) => {
|
|
52
|
-
p(b), e(
|
|
53
|
-
},
|
|
54
|
-
p(b), e(
|
|
60
|
+
p(b), e(c.ENTER);
|
|
61
|
+
}, S = (b) => {
|
|
62
|
+
p(b), e(c.SPACE);
|
|
55
63
|
}, h = () => {
|
|
56
|
-
|
|
57
|
-
},
|
|
58
|
-
e(
|
|
64
|
+
d(), e(c.ESCAPE);
|
|
65
|
+
}, O = () => {
|
|
66
|
+
e(c.SHOW_MORE);
|
|
59
67
|
}, w = {
|
|
60
|
-
[
|
|
61
|
-
[
|
|
62
|
-
[
|
|
63
|
-
[
|
|
64
|
-
[
|
|
68
|
+
[c.SELECT]: p,
|
|
69
|
+
[c.SHOW_MORE]: O,
|
|
70
|
+
[c.TAB]: $,
|
|
71
|
+
[c.SPACE]: S,
|
|
72
|
+
[c.ENTER]: x
|
|
65
73
|
};
|
|
66
74
|
return {
|
|
67
75
|
// Values
|
|
68
76
|
actions: i,
|
|
69
|
-
internalSelectedValue:
|
|
77
|
+
internalSelectedValue: a,
|
|
70
78
|
// Methods
|
|
71
79
|
listeners: w,
|
|
72
80
|
onEscapeKey: h,
|
|
@@ -183,11 +191,11 @@ const Pe = {
|
|
|
183
191
|
},
|
|
184
192
|
emits: [],
|
|
185
193
|
setup(s, { expose: t, emit: o }) {
|
|
186
|
-
const e = s,
|
|
194
|
+
const e = s, a = ie(), { selectedValue: l, multiple: n } = re(e), r = g(null), { t: d } = U(), v = u(() => e.open && !e.disabled), i = u(() => d("noOptionsMatchThisSearch")), p = u(() => ({
|
|
187
195
|
"b-dropdown-options-container--single": !(e != null && e.multiple)
|
|
188
|
-
})), $ =
|
|
196
|
+
})), $ = u(() => ({
|
|
189
197
|
"b-dropdown-options-container__listbox--single": !(e != null && e.multiple)
|
|
190
|
-
})), { actions: x, internalSelectedValue:
|
|
198
|
+
})), { actions: x, internalSelectedValue: S, listeners: h, onEscapeKey: O, onOutsideDropdownClick: w } = Fe(l, n, v, o), b = u(() => e != null && e.multiple ? Ae : se), f = u(() => {
|
|
191
199
|
var _;
|
|
192
200
|
const m = {
|
|
193
201
|
"min-width": `${(_ = e == null ? void 0 : e.targetElement) == null ? void 0 : _.clientWidth}px`,
|
|
@@ -198,7 +206,7 @@ const Pe = {
|
|
|
198
206
|
actions: x.value,
|
|
199
207
|
divider: !0,
|
|
200
208
|
fallbackPosition: ["top-start"],
|
|
201
|
-
id:
|
|
209
|
+
id: M(`dropdown-options-${e.id}`),
|
|
202
210
|
open: e.open,
|
|
203
211
|
position: "bottom-start",
|
|
204
212
|
style: {
|
|
@@ -219,16 +227,16 @@ const Pe = {
|
|
|
219
227
|
});
|
|
220
228
|
return t({
|
|
221
229
|
onOutsideDropdownClick: w
|
|
222
|
-
}), { __sfc: !0, slots:
|
|
230
|
+
}), { __sfc: !0, slots: a, emit: o, props: e, selectedValue: l, multiple: n, dropdownOptionsListboxRef: r, t: d, isDropdownOpen: v, noResultsMessage: i, conditionalClasses: p, conditionalListboxClasses: $, actions: x, internalSelectedValue: S, listeners: h, onEscapeKey: O, onOutsideDropdownClick: w, popperContainerOrPopoverComponent: b, popperContainerOrPopoverProps: f, BentoListbox: j };
|
|
223
231
|
}
|
|
224
232
|
});
|
|
225
233
|
var We = function() {
|
|
226
234
|
var t = this, o = t._self._c, e = t._self._setupProxy;
|
|
227
|
-
return o(e.popperContainerOrPopoverComponent, t._b({ tag: "component", staticClass: "b-dropdown-options-container", class: e.conditionalClasses, attrs: { "aria-label": t.ariaLabel } }, "component", e.popperContainerOrPopoverProps, !1), [o("div", { on: { keydown: function(
|
|
228
|
-
return !
|
|
229
|
-
} } }, [o(e.BentoListbox, t._g({ ref: "dropdownOptionsListboxRef", staticClass: "b-dropdown-options-container__listbox", class: e.conditionalListboxClasses, attrs: { id: t.id, "aria-label": t.ariaLabel, "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(
|
|
230
|
-
return { key: l, fn: function(
|
|
231
|
-
return [t._t(l, null, null,
|
|
235
|
+
return o(e.popperContainerOrPopoverComponent, t._b({ tag: "component", staticClass: "b-dropdown-options-container", class: e.conditionalClasses, attrs: { "aria-label": t.ariaLabel } }, "component", e.popperContainerOrPopoverProps, !1), [o("div", { on: { keydown: function(a) {
|
|
236
|
+
return !a.type.indexOf("key") && t._k(a.keyCode, "esc", 27, a.key, ["Esc", "Escape"]) ? null : e.onEscapeKey.apply(null, arguments);
|
|
237
|
+
} } }, [o(e.BentoListbox, t._g({ ref: "dropdownOptionsListboxRef", staticClass: "b-dropdown-options-container__listbox", class: e.conditionalListboxClasses, attrs: { id: t.id, "aria-label": t.ariaLabel, "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, l) {
|
|
238
|
+
return { key: l, fn: function(n) {
|
|
239
|
+
return [t._t(l, null, null, n)];
|
|
232
240
|
} };
|
|
233
241
|
})], null, !0) }, e.listeners))], 1)]);
|
|
234
242
|
}, je = [], Ue = /* @__PURE__ */ k(
|
|
@@ -240,28 +248,28 @@ var We = function() {
|
|
|
240
248
|
"1f5636d7"
|
|
241
249
|
);
|
|
242
250
|
const qe = Ue.exports;
|
|
243
|
-
let
|
|
251
|
+
let ae = 0;
|
|
244
252
|
const He = {
|
|
245
253
|
beforeCreate() {
|
|
246
|
-
this.uuid =
|
|
254
|
+
this.uuid = ae.toString(), ae += 1;
|
|
247
255
|
}
|
|
248
256
|
};
|
|
249
|
-
var
|
|
257
|
+
var Je = function() {
|
|
250
258
|
var t = this, o = t._self._c;
|
|
251
259
|
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: "#00112C", d: "M5.00011 5.43922L8.00011 8.43922L11.0001 5.43922L12.0608 6.49988L8.00011 10.5605L3.93945 6.49988L5.00011 5.43922Z" } })]);
|
|
252
|
-
},
|
|
260
|
+
}, Ve = [], Ye = /* @__PURE__ */ k(
|
|
253
261
|
He,
|
|
254
|
-
Ve,
|
|
255
262
|
Je,
|
|
263
|
+
Ve,
|
|
256
264
|
!1,
|
|
257
265
|
null,
|
|
258
266
|
null
|
|
259
267
|
);
|
|
260
268
|
const Ze = Ye.exports;
|
|
261
|
-
let
|
|
269
|
+
let ne = 0;
|
|
262
270
|
const Qe = {
|
|
263
271
|
beforeCreate() {
|
|
264
|
-
this.uuid =
|
|
272
|
+
this.uuid = ne.toString(), ne += 1;
|
|
265
273
|
}
|
|
266
274
|
};
|
|
267
275
|
var Xe = function() {
|
|
@@ -340,57 +348,59 @@ const tt = et.exports, ot = B({
|
|
|
340
348
|
},
|
|
341
349
|
emits: ["clear", "close", "input", "keydown", "open"],
|
|
342
350
|
setup(s, { emit: t }) {
|
|
343
|
-
const o = s, e =
|
|
351
|
+
const o = s, e = u(() => ({
|
|
344
352
|
[`b-dropdown-small-textbox--${K.DISABLED}`]: o.disabled,
|
|
345
353
|
[`b-dropdown-small-textbox--${K.READONLY}`]: o.readonly,
|
|
346
354
|
[`b-dropdown-small-textbox--${K.OPENED}`]: o.open
|
|
347
|
-
})),
|
|
355
|
+
})), a = u(() => o.open && !o.disabled && !o.readonly), l = (p) => {
|
|
348
356
|
t("input", p);
|
|
349
|
-
},
|
|
357
|
+
}, n = (p) => {
|
|
350
358
|
t("keydown", p);
|
|
351
|
-
}, u = (p) => {
|
|
352
|
-
z(p), t("open");
|
|
353
359
|
}, r = (p) => {
|
|
360
|
+
z(p), t("open");
|
|
361
|
+
}, d = (p) => {
|
|
354
362
|
z(p), t("close");
|
|
355
363
|
}, v = (p) => {
|
|
356
364
|
z(p), t("clear");
|
|
357
365
|
}, i = {
|
|
358
366
|
[A.INPUT]: l,
|
|
359
|
-
[A.OPEN]:
|
|
360
|
-
[A.CLOSE]:
|
|
367
|
+
[A.OPEN]: r,
|
|
368
|
+
[A.CLOSE]: d,
|
|
361
369
|
[A.CLEAR]: v,
|
|
362
|
-
[A.KEYDOWN]:
|
|
370
|
+
[A.KEYDOWN]: n
|
|
363
371
|
};
|
|
364
|
-
return { __sfc: !0, emit: t, props: o, conditionalClasses: e, isDropdownOpen:
|
|
372
|
+
return { __sfc: !0, emit: t, props: o, conditionalClasses: e, isDropdownOpen: a, onInput: l, onKeyDown: n, openDropdown: r, closeDropdown: d, clearValue: v, listeners: i, BentoDropdownSize: N, DropdownBaseTextbox: Ee, ChevronDownSmallIcon: Ze, ChevronUpSmallIcon: tt };
|
|
365
373
|
}
|
|
366
374
|
});
|
|
367
|
-
var
|
|
375
|
+
var at = function() {
|
|
368
376
|
var t = this, o = t._self._c, e = t._self._setupProxy;
|
|
369
377
|
return o("div", { staticClass: "b-dropdown-small-textbox", class: e.conditionalClasses }, [o(e.DropdownBaseTextbox, t._g(t._b({ staticClass: "b-dropdown-small-textbox__textbox", attrs: { size: e.BentoDropdownSize.SMALL }, scopedSlots: t._u([{ key: "icon", fn: function() {
|
|
370
378
|
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)];
|
|
371
379
|
}, proxy: !0 }]) }, "dropdown-base-textbox", { ...t.$attrs, ...t.$props }, !1), e.listeners))], 1);
|
|
372
|
-
},
|
|
380
|
+
}, nt = [], lt = /* @__PURE__ */ k(
|
|
373
381
|
st,
|
|
374
|
-
nt,
|
|
375
382
|
at,
|
|
383
|
+
nt,
|
|
376
384
|
!1,
|
|
377
385
|
null,
|
|
378
386
|
"ba322765"
|
|
379
387
|
);
|
|
380
388
|
const it = lt.exports, rt = (s, t) => t.value.reduce((o, e) => {
|
|
381
389
|
if (e.items) {
|
|
382
|
-
const
|
|
383
|
-
(
|
|
390
|
+
const a = e.items.filter(
|
|
391
|
+
(n) => s.value.find((r) => r.value === n.value)
|
|
384
392
|
);
|
|
385
|
-
|
|
393
|
+
a.length === e.items.length ? o.push(e.label) : a.forEach(({ label: n }) => o.push(n));
|
|
386
394
|
}
|
|
387
|
-
return s.value.find((
|
|
388
|
-
}, []).join(", "), dt = ({ items: s, placeholder: t, selectedValues: o }) => {
|
|
389
|
-
const
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
395
|
+
return s.value.find((a) => a.value === e.value) && o.push(e.label), o;
|
|
396
|
+
}, []).join(", "), dt = ({ items: s, placeholder: t, selectedValues: o, isMultiSelect: e }) => {
|
|
397
|
+
const a = u(
|
|
398
|
+
() => e.value && s.value.find((n) => {
|
|
399
|
+
var r;
|
|
400
|
+
return (r = n.items) == null ? void 0 : r.length;
|
|
401
|
+
})
|
|
402
|
+
);
|
|
403
|
+
return u(() => o.value.length ? a.value ? rt(o, s) : o.value.map(({ label: n }) => n).join(", ") : t.value || null);
|
|
394
404
|
}, de = (s) => {
|
|
395
405
|
var t;
|
|
396
406
|
(t = s.value.$children) == null || t[0].$refs.textbox.focus();
|
|
@@ -399,27 +409,27 @@ const it = lt.exports, rt = (s, t) => t.value.reduce((o, e) => {
|
|
|
399
409
|
optionsContainerRef: t,
|
|
400
410
|
selectedValueIndex: o,
|
|
401
411
|
isDropdownOpen: e,
|
|
402
|
-
isDynamicFltering:
|
|
412
|
+
isDynamicFltering: a,
|
|
403
413
|
items: l,
|
|
404
|
-
isMultiple:
|
|
405
|
-
},
|
|
414
|
+
isMultiple: n
|
|
415
|
+
}, r, d, v) => {
|
|
406
416
|
const i = ({ detail: f }) => {
|
|
407
|
-
f.preventDefault(), e.value ||
|
|
417
|
+
f.preventDefault(), e.value || d(), E(() => {
|
|
408
418
|
var m;
|
|
409
|
-
|
|
419
|
+
n ? (m = t.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || m[0].$el.focus() : (t.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.setListboxFocusedIndex(
|
|
410
420
|
o.value
|
|
411
421
|
), t.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.listboxItemRef[o.value].$el.focus());
|
|
412
422
|
});
|
|
413
423
|
}, p = ({ detail: f }) => {
|
|
414
|
-
f.preventDefault(), e.value ||
|
|
424
|
+
f.preventDefault(), e.value || d(), E(() => {
|
|
415
425
|
t.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.setListboxFocusedIndex(
|
|
416
426
|
o.value
|
|
417
427
|
), t.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.listboxItemRef[o.value].$el.focus();
|
|
418
428
|
});
|
|
419
429
|
}, $ = () => {
|
|
420
|
-
e.value || (
|
|
430
|
+
e.value || (d(), E(() => {
|
|
421
431
|
var f, m;
|
|
422
|
-
if (
|
|
432
|
+
if (n) {
|
|
423
433
|
const _ = t.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children;
|
|
424
434
|
(f = t.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || f[_.length - 1].$children[l.length - 1].$el.focus();
|
|
425
435
|
} else
|
|
@@ -427,33 +437,33 @@ const it = lt.exports, rt = (s, t) => t.value.reduce((o, e) => {
|
|
|
427
437
|
}));
|
|
428
438
|
}, x = () => {
|
|
429
439
|
e.value && (v(), de(s));
|
|
430
|
-
},
|
|
440
|
+
}, S = () => {
|
|
431
441
|
e.value && v();
|
|
432
442
|
}, h = () => {
|
|
433
|
-
e.value ||
|
|
443
|
+
e.value || d(), E(() => {
|
|
434
444
|
var f;
|
|
435
445
|
(f = t.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || f[0].$el.focus();
|
|
436
446
|
});
|
|
437
|
-
},
|
|
438
|
-
f.preventDefault(),
|
|
447
|
+
}, O = ({ detail: f }) => {
|
|
448
|
+
f.preventDefault(), r(), e.value && E(() => {
|
|
439
449
|
var m, _;
|
|
440
|
-
|
|
450
|
+
n ? (m = t.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || m[0].$el.focus() : (_ = t.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || _[o.value].$el.focus();
|
|
441
451
|
});
|
|
442
452
|
}, w = () => {
|
|
443
|
-
|
|
453
|
+
r(), e.value && E(() => {
|
|
444
454
|
var f, m;
|
|
445
|
-
|
|
455
|
+
n ? (f = t.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || f[0].$el.focus() : (m = t.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || m[o.value].$el.focus();
|
|
446
456
|
});
|
|
447
457
|
};
|
|
448
|
-
return
|
|
449
|
-
...
|
|
458
|
+
return u(() => ({
|
|
459
|
+
...a.value ? {} : { [C.SPACE]: O },
|
|
450
460
|
[C.ENTER]: w,
|
|
451
461
|
[C.ARROW_DOWN]: i,
|
|
452
462
|
[C.ARROW_UP]: p,
|
|
453
463
|
[C.END]: $,
|
|
454
464
|
[C.ESCAPE]: x,
|
|
455
465
|
[C.HOME]: h,
|
|
456
|
-
[C.TAB]:
|
|
466
|
+
[C.TAB]: S
|
|
457
467
|
}));
|
|
458
468
|
}, ut = ({ inputContainerRef: s, isDropdownOpen: t }, o) => {
|
|
459
469
|
const e = () => {
|
|
@@ -462,21 +472,21 @@ const it = lt.exports, rt = (s, t) => t.value.reduce((o, e) => {
|
|
|
462
472
|
});
|
|
463
473
|
};
|
|
464
474
|
return {
|
|
465
|
-
[
|
|
466
|
-
[
|
|
467
|
-
[
|
|
468
|
-
[
|
|
475
|
+
[c.ENTER]: e,
|
|
476
|
+
[c.ESCAPE]: e,
|
|
477
|
+
[c.TAB]: e,
|
|
478
|
+
[c.SPACE]: e
|
|
469
479
|
};
|
|
470
480
|
};
|
|
471
481
|
function pt(s, t, o, e) {
|
|
472
|
-
const
|
|
473
|
-
return le(
|
|
474
|
-
o !== void 0 && o(
|
|
475
|
-
}),
|
|
476
|
-
if (!
|
|
482
|
+
const a = g(s), l = g(t), n = (d, v = []) => v.flatMap((i) => i.label.toLocaleLowerCase().includes(d) ? e != null && e.value && i.items ? [...n(d, i.items)] : [i, ...n(d, i.items)] : i.items ? [...n(d, i.items)] : []);
|
|
483
|
+
return le(a, () => {
|
|
484
|
+
o !== void 0 && o(a.value);
|
|
485
|
+
}), u(() => {
|
|
486
|
+
if (!a.value || o !== void 0)
|
|
477
487
|
return l.value;
|
|
478
|
-
const
|
|
479
|
-
return
|
|
488
|
+
const d = a.value.toLocaleLowerCase();
|
|
489
|
+
return n(d, l.value);
|
|
480
490
|
});
|
|
481
491
|
}
|
|
482
492
|
const ft = {
|
|
@@ -484,6 +494,14 @@ const ft = {
|
|
|
484
494
|
all: "All",
|
|
485
495
|
clearSearch: "Clear filter",
|
|
486
496
|
ariaLabelFallback: "Dropdown"
|
|
497
|
+
},
|
|
498
|
+
"pt-BR": {
|
|
499
|
+
all: "Todos",
|
|
500
|
+
clearFilter: "Limpar filtro"
|
|
501
|
+
},
|
|
502
|
+
"ja-JP": {
|
|
503
|
+
all: "すべて",
|
|
504
|
+
clearFilter: "フィルターをクリア"
|
|
487
505
|
}
|
|
488
506
|
}, vt = Symbol("input field component injection key"), mt = B({
|
|
489
507
|
i18n: { messages: ft },
|
|
@@ -621,7 +639,7 @@ const ft = {
|
|
|
621
639
|
size: {
|
|
622
640
|
type: String,
|
|
623
641
|
default: null,
|
|
624
|
-
validator: (s) => Object.values(
|
|
642
|
+
validator: (s) => Object.values(N).includes(s)
|
|
625
643
|
},
|
|
626
644
|
/**
|
|
627
645
|
* If enabled, dropdown will display non-selectable, static categories
|
|
@@ -652,24 +670,25 @@ const ft = {
|
|
|
652
670
|
emits: ["input", "show-more"],
|
|
653
671
|
setup(s, { emit: t }) {
|
|
654
672
|
var te;
|
|
655
|
-
const o = s, e = Le(),
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
673
|
+
const o = s, e = Le(), a = ie(), l = Be(a), { t: n } = U(), r = g(null), d = g(null), v = g(null), i = g(!1), p = M("bento-dropdown-options-container"), $ = M("dropdown-label"), x = M("dropdown-description"), S = M("dropdown-error"), { isReadOnly: h } = $e(L(o, "readonly")), { cachedSelectedListboxOptions: O, cachedListboxSelectedValues: w, setCachedValues: b } = Ie(
|
|
674
|
+
L(o, "items"),
|
|
675
|
+
L(o, "value"),
|
|
676
|
+
L(o, "multiple")
|
|
659
677
|
), f = g(e["aria-label"]), { ariaLabel: m, label: _ } = re(o), ce = Ce({
|
|
660
678
|
// TODO: take ariaLabel ref away when aria-label prop is removed
|
|
661
679
|
ariaLabel: m || f,
|
|
662
680
|
label: _,
|
|
663
|
-
defaultFallback:
|
|
664
|
-
}), q = o.size ===
|
|
681
|
+
defaultFallback: n("ariaLabelFallback")
|
|
682
|
+
}), q = o.size === N.SMALL || Se(vt, !1), ue = u(() => q ? N.SMALL : N.DEFAULT), pe = u(() => ({
|
|
665
683
|
"b-dropdown--condensed": o.condensed
|
|
666
|
-
})), fe =
|
|
684
|
+
})), fe = u(() => ({
|
|
667
685
|
"b-dropdown__description--error": !!o.errorMessage
|
|
668
|
-
})), D = g(""), I =
|
|
686
|
+
})), D = g(""), I = L(o, "items"), H = L(o, "staticCategories"), ve = pt(D, I, (te = o == null ? void 0 : o.search) == null ? void 0 : te.searchEvent, H), F = u(() => o.dynamicFiltering && !!D.value), me = dt({
|
|
669
687
|
items: I,
|
|
670
|
-
placeholder:
|
|
671
|
-
|
|
672
|
-
|
|
688
|
+
placeholder: L(o, "placeholder"),
|
|
689
|
+
isMultiSelect: L(o, "multiple"),
|
|
690
|
+
selectedValues: O
|
|
691
|
+
}), be = u(() => {
|
|
673
692
|
if (o != null && o.multiple && Array.isArray(o.value))
|
|
674
693
|
return o.items.filter(
|
|
675
694
|
({ value: y }) => (o == null ? void 0 : o.value) && (o == null ? void 0 : o.value).includes(y)
|
|
@@ -681,18 +700,18 @@ const ft = {
|
|
|
681
700
|
return y ? y.items.find((T) => T.value === o.value) : null;
|
|
682
701
|
}
|
|
683
702
|
return o.items.find(({ value: y }) => y === (o == null ? void 0 : o.value));
|
|
684
|
-
}),
|
|
703
|
+
}), J = u(() => {
|
|
685
704
|
const y = o.items.findIndex(({ value: R }) => o.value === R);
|
|
686
705
|
return y > 0 ? y : 0;
|
|
687
|
-
}), { isMultiLevelSelect:
|
|
706
|
+
}), { isMultiLevelSelect: V, flattenedItemsList: Y } = Re(I), ye = u(() => {
|
|
688
707
|
var y;
|
|
689
708
|
if (o.multiple) {
|
|
690
|
-
const R = (y = o == null ? void 0 : o.value) == null ? void 0 : y.length, T =
|
|
691
|
-
return !o.hasMoreItems && T === R ?
|
|
709
|
+
const R = (y = o == null ? void 0 : o.value) == null ? void 0 : y.length, T = V.value ? Y.value.length : I.value.length;
|
|
710
|
+
return !o.hasMoreItems && T === R ? n("all") : R;
|
|
692
711
|
}
|
|
693
712
|
return null;
|
|
694
|
-
}), _e =
|
|
695
|
-
() => `${o.description ? x : ""} ${o.errorMessage ?
|
|
713
|
+
}), _e = u(
|
|
714
|
+
() => `${o.description ? x : ""} ${o.errorMessage ? S : ""}`.trim() || null
|
|
696
715
|
), Z = () => {
|
|
697
716
|
h.value || (i.value = !0);
|
|
698
717
|
}, P = () => {
|
|
@@ -704,14 +723,14 @@ const ft = {
|
|
|
704
723
|
}, X = (y) => {
|
|
705
724
|
o.multiple || (D.value = "", i.value = !1), b(y), t("input", w.value);
|
|
706
725
|
}, G = () => {
|
|
707
|
-
t(
|
|
726
|
+
t(c.SHOW_MORE);
|
|
708
727
|
}, xe = ct(
|
|
709
728
|
{
|
|
710
|
-
inputContainerRef:
|
|
729
|
+
inputContainerRef: r,
|
|
711
730
|
optionsContainerRef: v,
|
|
712
|
-
selectedValueIndex:
|
|
731
|
+
selectedValueIndex: J,
|
|
713
732
|
isDropdownOpen: i,
|
|
714
|
-
isDynamicFltering:
|
|
733
|
+
isDynamicFltering: L(o, "dynamicFiltering"),
|
|
715
734
|
items: o.items,
|
|
716
735
|
isMultiple: o.multiple
|
|
717
736
|
},
|
|
@@ -720,14 +739,14 @@ const ft = {
|
|
|
720
739
|
P
|
|
721
740
|
), ee = ut(
|
|
722
741
|
{
|
|
723
|
-
inputContainerRef:
|
|
742
|
+
inputContainerRef: r,
|
|
724
743
|
isDropdownOpen: i
|
|
725
744
|
},
|
|
726
745
|
P
|
|
727
746
|
), he = {
|
|
728
|
-
[
|
|
729
|
-
[
|
|
730
|
-
[
|
|
747
|
+
[c.CLOSE_DROPDOWN]: P,
|
|
748
|
+
[c.SELECT]: X,
|
|
749
|
+
[c.SHOW_MORE]: G,
|
|
731
750
|
...ee
|
|
732
751
|
};
|
|
733
752
|
return o.error && oe(
|
|
@@ -736,21 +755,21 @@ const ft = {
|
|
|
736
755
|
Having the field as "undefined" will hide/remove the error.
|
|
737
756
|
<bento-dropdown errorMessage="Error message text" />`,
|
|
738
757
|
"2.0.0"
|
|
739
|
-
), o.size && oe('BentoDropdown "size" property', "Do not use. Only 'default' size should be used.", "2.0.0"), { __sfc: !0, attrs: e, slots:
|
|
758
|
+
), o.size && oe('BentoDropdown "size" property', "Do not use. Only 'default' size should be used.", "2.0.0"), { __sfc: !0, attrs: e, slots: a, hasSlot: l, props: o, emit: t, t: n, inputContainerRef: r, inputContainerRefWrapper: d, optionsContainerRef: v, isDropdownOpen: i, dropdownOptionsContainerId: p, labelId: $, descriptionId: x, errorId: S, isReadOnly: h, cachedSelectedListboxOptions: O, cachedListboxSelectedValues: w, setCachedValues: b, ariaLabelAttribute: f, ariaLabel: m, label: _, computedAriaLabel: ce, isInputComponent: q, size: ue, conditionalClasses: pe, descriptionConditionalClasses: fe, searchTerm: D, items: I, staticCategories: H, filteredItems: ve, isSearching: F, displayValue: me, selectedValueItem: be, selectedValueIndex: J, isMultiLevelSelect: V, flattenedItemsList: Y, additionalItemsSelected: ye, ariaDescribedBy: _e, openDropdown: Z, closeDropdown: P, toggleDropdown: Q, clickOutsideDropdown: ge, onOptionSelected: X, emitShowMoreEvent: G, textboxKeyboardNavigationListeners: xe, listboxKeyboardNavigationListeners: ee, listboxListeners: he, BentoDropdownOptionsContainer: qe, BentoTypography: Oe, ErrorMessage: Me, FieldLabel: Ne, vBentoClickOutsideDirective: ke, vBentoKeyboardNavigationDirective: Te };
|
|
740
759
|
}
|
|
741
760
|
});
|
|
742
761
|
var yt = function() {
|
|
743
|
-
var
|
|
762
|
+
var a;
|
|
744
763
|
var t = this, o = t._self._c, e = t._self._setupProxy;
|
|
745
764
|
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.size, { ref: "inputContainerRef", tag: "component", attrs: { condensed: t.condensed, value: e.searchTerm, "additional-items-selected": e.additionalItemsSelected, ariaControls: 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(l) {
|
|
746
765
|
e.searchTerm = l;
|
|
747
|
-
}, open: e.toggleDropdown, close: e.toggleDropdown }, scopedSlots: t._u([t._l(e.slots, function(l,
|
|
748
|
-
return { key:
|
|
749
|
-
return [t._t(
|
|
766
|
+
}, open: e.toggleDropdown, close: e.toggleDropdown }, scopedSlots: t._u([t._l(e.slots, function(l, n) {
|
|
767
|
+
return { key: n, fn: function(r) {
|
|
768
|
+
return [t._t(n, null, null, r)];
|
|
750
769
|
} };
|
|
751
|
-
})], null, !0) })], 1), e.inputContainerRef ? o(e.BentoDropdownOptionsContainer, t._g({ ref: "optionsContainerRef", attrs: { id: e.dropdownOptionsContainerId, "aria-label": e.computedAriaLabel, "empty-state": t.emptyState, "debounce-time": (
|
|
752
|
-
return { key:
|
|
753
|
-
return [t._t(
|
|
770
|
+
})], null, !0) })], 1), e.inputContainerRef ? o(e.BentoDropdownOptionsContainer, t._g({ ref: "optionsContainerRef", attrs: { id: e.dropdownOptionsContainerId, "aria-label": e.computedAriaLabel, "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(l, n) {
|
|
771
|
+
return { key: n, fn: function(r) {
|
|
772
|
+
return [t._t(n, null, null, r)];
|
|
754
773
|
} };
|
|
755
774
|
})], 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() {
|
|
756
775
|
return [t._v(" " + t._s(t.description) + " ")];
|
|
@@ -761,12 +780,12 @@ var yt = function() {
|
|
|
761
780
|
_t,
|
|
762
781
|
!1,
|
|
763
782
|
null,
|
|
764
|
-
"
|
|
783
|
+
"501c3a2e"
|
|
765
784
|
);
|
|
766
|
-
const
|
|
785
|
+
const Nt = gt.exports;
|
|
767
786
|
export {
|
|
768
|
-
|
|
787
|
+
Nt as B,
|
|
769
788
|
vt as I,
|
|
770
789
|
pt as u
|
|
771
790
|
};
|
|
772
|
-
//# sourceMappingURL=dropdown.
|
|
791
|
+
//# sourceMappingURL=dropdown.B4KMM58m.js.map
|