@adyen/bento-vue2 1.2.0 → 1.3.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/README.md +60 -29
- package/dist/@types/components.d.ts +12 -0
- package/dist/@types/packages/vue2/src/components/button/components/loading-button/loading-button.vue.d.ts +3 -3
- package/dist/@types/packages/vue2/src/components/checkbox/components/checkbox-group/checkbox-group.vue.d.ts +76 -30
- package/dist/@types/packages/vue2/src/components/country/composables/index.d.ts +0 -1
- package/dist/@types/packages/vue2/src/components/country/country.vue.d.ts +1 -2
- package/dist/@types/packages/vue2/src/components/date-picker/date-picker.vue.d.ts +11 -1
- package/dist/@types/packages/vue2/src/components/date-range-picker/date-range-picker.vue.d.ts +11 -1
- package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-avatar/dropdown-avatar.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-country/dropdown-country.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-currency/dropdown-currency.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-payment-method/dropdown-payment-method.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-tag/dropdown-tag.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/dropdown/dropdown.vue.d.ts +2 -1
- package/dist/@types/packages/vue2/src/components/filter-bar/components/date-range-filter/date-range-filter.vue.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/form-layout/components/form-layout-field-tip/form-layout-field-tip.vue.d.ts +10 -0
- package/dist/@types/packages/vue2/src/components/form-layout/components/form-layout-field-tip/index.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/form-layout/components/form-layout-group/composable/use-form-layout-group-percentage.d.ts +3 -0
- package/dist/@types/packages/vue2/src/components/form-layout/components/form-layout-group/form-layout-group.types.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/form-layout/components/form-layout-group/form-layout-group.vue.d.ts +23 -0
- package/dist/@types/packages/vue2/src/components/form-layout/components/form-layout-group/index.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/form-layout/components/form-layout-title/form-layout-title.vue.d.ts +33 -0
- package/dist/@types/packages/vue2/src/components/form-layout/components/form-layout-title/index.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/form-layout/components/index.d.ts +3 -0
- package/dist/@types/packages/vue2/src/components/form-layout/form-layout.types.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/form-layout/form-layout.vue.d.ts +33 -0
- package/dist/@types/packages/vue2/src/components/form-layout/index.d.ts +2 -0
- package/dist/@types/packages/vue2/src/components/input-field/input-field.vue.d.ts +2 -1
- package/dist/@types/packages/vue2/src/components/internal/controls-group/controls-group.vue.d.ts +53 -22
- package/dist/@types/packages/vue2/src/components/modal/components/base-modal/__mocks__/base-modal.vue.d.ts +3 -3
- package/dist/@types/packages/vue2/src/components/modal/components/base-modal/base-modal.vue.d.ts +51 -44
- package/dist/@types/packages/vue2/src/components/modal/components/modal-default/modal-default.vue.d.ts +3 -3
- package/dist/@types/packages/vue2/src/components/modal/modal.vue.d.ts +4 -12
- package/dist/@types/packages/vue2/src/components/radio-group/radio-group.vue.d.ts +50 -4
- package/dist/@types/packages/vue2/src/components/search-bar/search-bar.vue.d.ts +2 -1
- package/dist/@types/packages/vue2/src/components/sidepanel/components/sidepanel-page.vue.d.ts +68 -0
- package/dist/@types/packages/vue2/src/components/sidepanel/index.d.ts +3 -0
- package/dist/@types/packages/vue2/src/components/sidepanel/sidepanel.keys.d.ts +2 -0
- package/dist/@types/packages/vue2/src/components/sidepanel/sidepanel.types.d.ts +21 -0
- package/dist/@types/packages/vue2/src/components/sidepanel/sidepanel.vue.d.ts +43 -0
- package/dist/@types/packages/vue2/src/components/tabs/tabs.types.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/textarea/textarea.vue.d.ts +2 -1
- package/dist/@types/packages/vue2/src/components/timeline/timeline.types.d.ts +1 -1
- package/dist/@types/packages/vue2/src/composables/index.d.ts +1 -0
- package/dist/@types/packages/vue2/src/composables/use-form-layout-loading/use-form-layout-loading.d.ts +4 -0
- package/dist/@types/packages/vue2/src/index.d.ts +2 -0
- package/dist/@types/packages/vue2/src/types/utils-events.d.ts +0 -1
- package/dist/@types/packages/vue2/src/utils/ts/dev-environment.d.ts +1 -0
- package/dist/accordion.js +1 -1
- package/dist/alert.js +3 -3
- package/dist/assets/arrow-left.css +1 -0
- package/dist/assets/base-button.css +1 -1
- package/dist/assets/button.css +1 -1
- package/dist/assets/calendar.css +1 -1
- package/dist/assets/checkbox.css +1 -1
- package/dist/assets/controls-group.css +1 -1
- package/dist/assets/copy.css +1 -1
- package/dist/assets/dropdown-default-textbox.css +1 -1
- package/dist/assets/dropdown.css +1 -1
- package/dist/assets/error-message.css +1 -1
- package/dist/assets/footer-actions.css +1 -0
- package/dist/assets/grid-layout.css +1 -1
- package/dist/assets/index.css +1 -1
- package/dist/assets/index10.css +1 -1
- package/dist/assets/index11.css +1 -1
- package/dist/assets/index12.css +1 -1
- package/dist/assets/index13.css +1 -1
- package/dist/assets/index14.css +1 -1
- package/dist/assets/index15.css +1 -1
- package/dist/assets/index16.css +1 -1
- package/dist/assets/index17.css +1 -1
- package/dist/assets/index18.css +1 -1
- package/dist/assets/index19.css +1 -1
- package/dist/assets/index2.css +1 -1
- package/dist/assets/index20.css +1 -1
- package/dist/assets/index21.css +1 -1
- package/dist/assets/index22.css +1 -1
- package/dist/assets/index23.css +1 -1
- package/dist/assets/index24.css +1 -1
- package/dist/assets/index25.css +1 -1
- package/dist/assets/index26.css +1 -1
- package/dist/assets/index27.css +1 -1
- package/dist/assets/index28.css +1 -1
- package/dist/assets/index29.css +1 -1
- package/dist/assets/index3.css +1 -1
- package/dist/assets/index30.css +1 -1
- package/dist/assets/index31.css +1 -1
- package/dist/assets/index32.css +1 -1
- package/dist/assets/index33.css +1 -1
- package/dist/assets/index34.css +1 -1
- package/dist/assets/index35.css +1 -1
- package/dist/assets/index36.css +1 -1
- package/dist/assets/index37.css +1 -1
- package/dist/assets/index38.css +1 -1
- package/dist/assets/index39.css +1 -1
- package/dist/assets/index4.css +1 -1
- package/dist/assets/index40.css +1 -0
- package/dist/assets/index41.css +1 -0
- package/dist/assets/index5.css +1 -1
- package/dist/assets/index6.css +1 -1
- package/dist/assets/index7.css +1 -1
- package/dist/assets/index8.css +1 -1
- package/dist/assets/index9.css +1 -1
- package/dist/assets/listbox-option-tag.css +1 -1
- package/dist/assets/listbox.css +1 -1
- package/dist/assets/loading-button.css +1 -1
- package/dist/assets/tooltip.css +1 -1
- package/dist/avatar-image.js +1 -1
- package/dist/badge.js +1 -1
- package/dist/button.js +3 -3
- package/dist/card.js +3 -3
- package/dist/checkbox.js +93 -84
- package/dist/checkbox.js.map +1 -1
- package/dist/chunks/arrow-left.1d5d08bd.js +26 -0
- package/dist/chunks/arrow-left.1d5d08bd.js.map +1 -0
- package/dist/chunks/{base-button.d4487ac9.js → base-button.98379576.js} +2 -2
- package/dist/chunks/{base-button.d4487ac9.js.map → base-button.98379576.js.map} +1 -1
- package/dist/chunks/{button-actions.cf73ed47.js → button-actions.bd397c79.js} +2 -2
- package/dist/chunks/{button-actions.cf73ed47.js.map → button-actions.bd397c79.js.map} +1 -1
- package/dist/chunks/{button.c27a7ce2.js → button.d0c9527d.js} +2 -2
- package/dist/chunks/{button.c27a7ce2.js.map → button.d0c9527d.js.map} +1 -1
- package/dist/chunks/{calendar.8f50a65a.js → calendar.0ae43a96.js} +6 -6
- package/dist/chunks/calendar.0ae43a96.js.map +1 -0
- package/dist/chunks/{checkbox.c06daf12.js → checkbox.f8457c93.js} +3 -3
- package/dist/chunks/{checkbox.c06daf12.js.map → checkbox.f8457c93.js.map} +1 -1
- package/dist/chunks/controls-group.b827382b.js +87 -0
- package/dist/chunks/controls-group.b827382b.js.map +1 -0
- package/dist/chunks/{copy.b62beae5.js → copy.5a4cbd4d.js} +3 -3
- package/dist/chunks/{copy.b62beae5.js.map → copy.5a4cbd4d.js.map} +1 -1
- package/dist/chunks/{dropdown-default-textbox.a5eca928.js → dropdown-default-textbox.819e43f7.js} +32 -30
- package/dist/chunks/dropdown-default-textbox.819e43f7.js.map +1 -0
- package/dist/chunks/{dropdown.368486b1.js → dropdown.c05678d0.js} +142 -139
- package/dist/chunks/dropdown.c05678d0.js.map +1 -0
- package/dist/chunks/{error-message.a581a172.js → error-message.0433b539.js} +2 -2
- package/dist/chunks/{error-message.a581a172.js.map → error-message.0433b539.js.map} +1 -1
- package/dist/chunks/footer-actions.67642347.js +98 -0
- package/dist/chunks/footer-actions.67642347.js.map +1 -0
- package/dist/chunks/form-layout.types.a7a1438d.js +5 -0
- package/dist/chunks/form-layout.types.a7a1438d.js.map +1 -0
- package/dist/chunks/{index.3b6fc08a.js → index.0cf00b47.js} +6 -6
- package/dist/chunks/{index.3b6fc08a.js.map → index.0cf00b47.js.map} +1 -1
- package/dist/chunks/{index.f0d99471.js → index.10aaf539.js} +198 -192
- package/dist/chunks/{index.f0d99471.js.map → index.10aaf539.js.map} +1 -1
- package/dist/chunks/{index.ad39b625.js → index.133e4da0.js} +2 -2
- package/dist/chunks/{index.ad39b625.js.map → index.133e4da0.js.map} +1 -1
- package/dist/chunks/{index.175f9e2d.js → index.56858f4e.js} +15 -14
- package/dist/chunks/index.56858f4e.js.map +1 -0
- package/dist/chunks/{index.d07f9800.js → index.73d50fa6.js} +2 -2
- package/dist/chunks/{index.d07f9800.js.map → index.73d50fa6.js.map} +1 -1
- package/dist/chunks/{index.3dfea3bd.js → index.f0f8ed98.js} +3 -3
- package/dist/chunks/{index.3dfea3bd.js.map → index.f0f8ed98.js.map} +1 -1
- package/dist/chunks/{listbox-option-tag.c7e9a228.js → listbox-option-tag.8d6cccac.js} +3 -3
- package/dist/chunks/{listbox-option-tag.c7e9a228.js.map → listbox-option-tag.8d6cccac.js.map} +1 -1
- package/dist/chunks/{listbox.f51e92cd.js → listbox.116ed0c1.js} +177 -177
- package/dist/chunks/listbox.116ed0c1.js.map +1 -0
- package/dist/chunks/{loading-button.6d34f66f.js → loading-button.1c201f87.js} +10 -10
- package/dist/chunks/loading-button.1c201f87.js.map +1 -0
- package/dist/chunks/{tooltip.9af34fba.js → tooltip.2aff4fa6.js} +2 -2
- package/dist/chunks/tooltip.2aff4fa6.js.map +1 -0
- package/dist/chunks/use-form-layout-loading.d03e5d48.js +12 -0
- package/dist/chunks/use-form-layout-loading.d03e5d48.js.map +1 -0
- package/dist/code-snippet.js +6 -6
- package/dist/code-snippet.js.map +1 -1
- package/dist/country.js +149 -174
- package/dist/country.js.map +1 -1
- package/dist/currency.js +1 -1
- package/dist/data-grid.js +482 -499
- package/dist/data-grid.js.map +1 -1
- package/dist/date-picker.js +80 -74
- package/dist/date-picker.js.map +1 -1
- package/dist/date-range-picker.js +2 -2
- package/dist/date.js +1 -1
- package/dist/divider.js +1 -1
- package/dist/dropdown.js +72 -67
- package/dist/dropdown.js.map +1 -1
- package/dist/filter-bar.js +268 -265
- package/dist/filter-bar.js.map +1 -1
- package/dist/focus-trap.js +1 -1
- package/dist/form-layout.js +174 -0
- package/dist/form-layout.js.map +1 -0
- package/dist/header.js +3 -3
- package/dist/index.js +164 -155
- package/dist/index.js.map +1 -1
- package/dist/info-icon.js +2 -2
- package/dist/input-field.js +69 -67
- package/dist/input-field.js.map +1 -1
- package/dist/internal.js +6 -6
- package/dist/link.js +2 -2
- package/dist/loading-indicator.js +1 -1
- package/dist/menu.js +4 -4
- package/dist/modal.js +203 -324
- package/dist/modal.js.map +1 -1
- package/dist/pagination.js +4 -4
- package/dist/payment-method.js +2 -2
- package/dist/popover.js +4 -4
- package/dist/popper-container.js +2 -2
- package/dist/radio-group.js +97 -99
- package/dist/radio-group.js.map +1 -1
- package/dist/search-bar.js +2 -2
- package/dist/segmented-control.js +4 -4
- package/dist/sidepanel.js +218 -0
- package/dist/sidepanel.js.map +1 -0
- package/dist/status.js +2 -2
- package/dist/structured-list.js +1 -1
- package/dist/summary-grid.js +3 -3
- package/dist/tabs.js +3 -3
- package/dist/tabs.js.map +1 -1
- package/dist/tag.js +3 -3
- package/dist/textarea.js +84 -82
- package/dist/textarea.js.map +1 -1
- package/dist/timeline.js +23 -23
- package/dist/timeline.js.map +1 -1
- package/dist/toast.js +2 -2
- package/dist/toggle.js +2 -2
- package/dist/typography.js +1 -1
- package/dist/web-types.json +455 -73
- package/package.json +10 -8
- package/dist/@types/packages/vue2/src/components/country/composables/useCountryFlag.d.ts +0 -2
- package/dist/chunks/calendar.8f50a65a.js.map +0 -1
- package/dist/chunks/controls-group.9d58a091.js +0 -64
- package/dist/chunks/controls-group.9d58a091.js.map +0 -1
- package/dist/chunks/dropdown-default-textbox.a5eca928.js.map +0 -1
- package/dist/chunks/dropdown.368486b1.js.map +0 -1
- package/dist/chunks/index.175f9e2d.js.map +0 -1
- package/dist/chunks/listbox.f51e92cd.js.map +0 -1
- package/dist/chunks/loading-button.6d34f66f.js.map +0 -1
- package/dist/chunks/tooltip.9af34fba.js.map +0 -1
|
@@ -1,25 +1,26 @@
|
|
|
1
|
-
import { ref as b, watch as j, computed as d, defineComponent as A, toRefs as
|
|
2
|
-
import { D as
|
|
1
|
+
import { ref as b, watch as j, computed as d, defineComponent as A, toRefs as le, nextTick as S, toRef as O } from "vue";
|
|
2
|
+
import { D as ae, a as C, b as R, c as se } from "./dropdown-default-textbox.819e43f7.js";
|
|
3
3
|
import { n as $ } from "./_plugin-vue2_normalizer.71e2aa87.js";
|
|
4
|
-
import { B as
|
|
4
|
+
import { B as ie, d as re, a as de } from "./index.56858f4e.js";
|
|
5
5
|
import { g as L } from "./unique-id.a2a2b458.js";
|
|
6
|
-
import { a as i, B as I, b as D } from "./listbox.
|
|
7
|
-
import { B as w, a as
|
|
8
|
-
import {
|
|
6
|
+
import { a as i, B as I, b as D } from "./listbox.116ed0c1.js";
|
|
7
|
+
import { B as w, a as ue } from "./debounce.f8d92e44.js";
|
|
8
|
+
import { u as ce } from "./use-form-layout-loading.d03e5d48.js";
|
|
9
|
+
import { PopperContainer as T, PopperContainerPosition as W } from "../popper-container.js";
|
|
9
10
|
import { u as V } from "./i18n.155748d6.js";
|
|
10
11
|
import { BentoPopover as k, BentoPopoverPositions as z } from "../popover.js";
|
|
11
|
-
import { c as q } from "./button-actions.
|
|
12
|
-
import { E as
|
|
13
|
-
import { B as
|
|
12
|
+
import { c as q } from "./button-actions.bd397c79.js";
|
|
13
|
+
import { E as fe } from "./error-message.0433b539.js";
|
|
14
|
+
import { B as pe } from "./directive.0408e565.js";
|
|
14
15
|
import "../assets/dropdown.css";
|
|
15
16
|
var E = /* @__PURE__ */ ((t) => (t.DEFAULT = "DropdownInputDefault", t.SMALL = "DropdownInputSmall", t))(E || {});
|
|
16
|
-
const
|
|
17
|
+
const ve = {
|
|
17
18
|
"en-US": {
|
|
18
19
|
apply: "Apply",
|
|
19
20
|
cancel: "Cancel",
|
|
20
21
|
noOptionsMatchThisSearch: "No options match this search"
|
|
21
22
|
}
|
|
22
|
-
},
|
|
23
|
+
}, _e = (t, e, n) => {
|
|
23
24
|
const o = b(t.value), { t: l } = V();
|
|
24
25
|
j(t, () => {
|
|
25
26
|
o.value = t.value;
|
|
@@ -44,35 +45,35 @@ const fe = {
|
|
|
44
45
|
o.value = f, e.value || n(i.SELECT, f);
|
|
45
46
|
}, _ = (f) => {
|
|
46
47
|
c(f), n(i.TAB);
|
|
47
|
-
},
|
|
48
|
+
}, m = (f) => {
|
|
48
49
|
c(f), n(i.ENTER);
|
|
49
|
-
},
|
|
50
|
+
}, x = (f) => {
|
|
50
51
|
c(f), n(i.SPACE);
|
|
51
|
-
},
|
|
52
|
+
}, p = () => {
|
|
52
53
|
r(), n(i.ESCAPE);
|
|
53
|
-
},
|
|
54
|
+
}, g = () => {
|
|
54
55
|
n(i.SHOW_MORE);
|
|
55
|
-
},
|
|
56
|
+
}, h = {
|
|
56
57
|
[i.SELECT]: c,
|
|
57
|
-
[i.SHOW_MORE]:
|
|
58
|
+
[i.SHOW_MORE]: g,
|
|
58
59
|
[i.TAB]: _,
|
|
59
|
-
[i.SPACE]:
|
|
60
|
-
[i.ENTER]:
|
|
60
|
+
[i.SPACE]: x,
|
|
61
|
+
[i.ENTER]: m
|
|
61
62
|
};
|
|
62
63
|
return {
|
|
63
64
|
// Values
|
|
64
65
|
actions: u,
|
|
65
66
|
internalSelectedValue: o,
|
|
66
67
|
// Methods
|
|
67
|
-
listeners:
|
|
68
|
-
onEscapeKey:
|
|
68
|
+
listeners: h,
|
|
69
|
+
onEscapeKey: p
|
|
69
70
|
};
|
|
70
|
-
},
|
|
71
|
-
i18n: { messages:
|
|
71
|
+
}, me = A({
|
|
72
|
+
i18n: { messages: ve },
|
|
72
73
|
name: "bento-dropdown-options-container",
|
|
73
74
|
components: {
|
|
74
75
|
BentoListbox: I,
|
|
75
|
-
PopperContainer:
|
|
76
|
+
PopperContainer: T,
|
|
76
77
|
BentoPopover: k
|
|
77
78
|
},
|
|
78
79
|
props: {
|
|
@@ -167,7 +168,7 @@ const fe = {
|
|
|
167
168
|
* Reference to the DOM element or Vue component for positioning
|
|
168
169
|
* the Dropdown container.
|
|
169
170
|
*/
|
|
170
|
-
targetElement: { type:
|
|
171
|
+
targetElement: { type: T.props.targetElement.type, required: !0 }
|
|
171
172
|
},
|
|
172
173
|
emits: [
|
|
173
174
|
i.CLOSE_DROPDOWN,
|
|
@@ -179,16 +180,16 @@ const fe = {
|
|
|
179
180
|
i.TAB
|
|
180
181
|
],
|
|
181
182
|
setup(t, { emit: e, slots: n }) {
|
|
182
|
-
const { selectedValue: o, multiple: l } =
|
|
183
|
+
const { selectedValue: o, multiple: l } = le(t), a = b(null), { t: s } = V(), r = d(() => t.open && !t.disabled), u = d(() => s("noOptionsMatchThisSearch")), c = d(() => ({
|
|
183
184
|
"b-dropdown-options-container__listbox--small": t.inputSize === E.SMALL,
|
|
184
185
|
"b-dropdown-options-container__listbox--single": !(t != null && t.multiple)
|
|
185
|
-
})), { actions: _, internalSelectedValue:
|
|
186
|
+
})), { actions: _, internalSelectedValue: m, listeners: x, onEscapeKey: p } = _e(
|
|
186
187
|
o,
|
|
187
188
|
l,
|
|
188
189
|
e
|
|
190
|
+
), g = d(
|
|
191
|
+
() => t != null && t.multiple ? k : T
|
|
189
192
|
), h = d(
|
|
190
|
-
() => t != null && t.multiple ? k : R
|
|
191
|
-
), m = d(
|
|
192
193
|
() => {
|
|
193
194
|
var f;
|
|
194
195
|
return t != null && t.multiple ? {
|
|
@@ -216,10 +217,10 @@ const fe = {
|
|
|
216
217
|
noResultsMessage: u,
|
|
217
218
|
slots: n,
|
|
218
219
|
actions: _,
|
|
219
|
-
internalSelectedValue:
|
|
220
|
+
internalSelectedValue: m,
|
|
220
221
|
// Component wrapper
|
|
221
|
-
popperContainerOrPopoverComponent:
|
|
222
|
-
popperContainerOrPopoverProps:
|
|
222
|
+
popperContainerOrPopoverComponent: g,
|
|
223
|
+
popperContainerOrPopoverProps: h,
|
|
223
224
|
// Refs
|
|
224
225
|
dropdownOptionsListboxRef: a,
|
|
225
226
|
// Enums
|
|
@@ -227,12 +228,12 @@ const fe = {
|
|
|
227
228
|
BentoPopoverPositions: z,
|
|
228
229
|
PopperContainerPosition: W,
|
|
229
230
|
// Events
|
|
230
|
-
onEscapeKey:
|
|
231
|
-
listeners:
|
|
231
|
+
onEscapeKey: p,
|
|
232
|
+
listeners: x
|
|
232
233
|
};
|
|
233
234
|
}
|
|
234
235
|
});
|
|
235
|
-
var
|
|
236
|
+
var ye = function() {
|
|
236
237
|
var e = this, n = e._self._c;
|
|
237
238
|
return e._self._setupProxy, n(e.popperContainerOrPopoverComponent, e._b({ tag: "component", staticClass: "b-dropdown-options-container" }, "component", e.popperContainerOrPopoverProps, !1), [n("div", { on: { keydown: function(o) {
|
|
238
239
|
return !o.type.indexOf("key") && e._k(o.keyCode, "esc", 27, o.key, ["Esc", "Escape"]) ? null : e.onEscapeKey.apply(null, arguments);
|
|
@@ -241,59 +242,60 @@ var _e = function() {
|
|
|
241
242
|
return [e._t(l, null, null, a)];
|
|
242
243
|
} };
|
|
243
244
|
})], null, !0) }, e.listeners))], 1)]);
|
|
244
|
-
},
|
|
245
|
-
ve,
|
|
246
|
-
_e,
|
|
245
|
+
}, be = [], ge = /* @__PURE__ */ $(
|
|
247
246
|
me,
|
|
247
|
+
ye,
|
|
248
|
+
be,
|
|
248
249
|
!1,
|
|
249
250
|
null,
|
|
250
251
|
"5fc31fae",
|
|
251
252
|
null,
|
|
252
253
|
null
|
|
253
254
|
);
|
|
254
|
-
const
|
|
255
|
+
const xe = ge.exports;
|
|
255
256
|
let U = 0;
|
|
256
|
-
const
|
|
257
|
+
const he = {
|
|
257
258
|
beforeCreate() {
|
|
258
259
|
this.uuid = U.toString(), U += 1;
|
|
259
260
|
}
|
|
260
261
|
};
|
|
261
|
-
var
|
|
262
|
+
var we = function() {
|
|
262
263
|
var e = this, n = e._self._c;
|
|
263
264
|
return n("svg", e._b({ attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", e.$attrs, !1), [e.$attrs["svg-title"] ? n("title", [e._v(e._s(e.$attrs["svg-title"]))]) : e._e(), n("path", { attrs: { fill: "#00112C", "fill-rule": "evenodd", d: "M4.4697 5.96967C4.76259 5.67678 5.23747 5.67678 5.53036 5.96967L8.00003 8.43934L10.4697 5.96967C10.7626 5.67678 11.2375 5.67678 11.5304 5.96967C11.8233 6.26256 11.8233 6.73744 11.5304 7.03033L8.53036 10.0303C8.23747 10.3232 7.76259 10.3232 7.4697 10.0303L4.4697 7.03033C4.17681 6.73744 4.17681 6.26256 4.4697 5.96967Z", "clip-rule": "evenodd" } })]);
|
|
264
|
-
},
|
|
265
|
-
ge,
|
|
266
|
-
xe,
|
|
265
|
+
}, Se = [], Ee = /* @__PURE__ */ $(
|
|
267
266
|
he,
|
|
267
|
+
we,
|
|
268
|
+
Se,
|
|
268
269
|
!1,
|
|
269
270
|
null,
|
|
270
271
|
"18645fe6",
|
|
271
272
|
null,
|
|
272
273
|
null
|
|
273
274
|
);
|
|
274
|
-
const
|
|
275
|
+
const Oe = Ee.exports;
|
|
275
276
|
let H = 0;
|
|
276
|
-
const
|
|
277
|
+
const Ce = {
|
|
277
278
|
beforeCreate() {
|
|
278
279
|
this.uuid = H.toString(), H += 1;
|
|
279
280
|
}
|
|
280
281
|
};
|
|
281
|
-
var
|
|
282
|
+
var Le = function() {
|
|
282
283
|
var e = this, n = e._self._c;
|
|
283
284
|
return n("svg", e._b({ attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", e.$attrs, !1), [e.$attrs["svg-title"] ? n("title", [e._v(e._s(e.$attrs["svg-title"]))]) : e._e(), n("path", { attrs: { fill: "#00112C", "fill-rule": "evenodd", d: "M11.5303 10.0303C11.2374 10.3232 10.7626 10.3232 10.4697 10.0303L8 7.56066L5.53033 10.0303C5.23744 10.3232 4.76256 10.3232 4.46967 10.0303C4.17678 9.73744 4.17678 9.26256 4.46967 8.96967L7.46967 5.96967C7.61032 5.82902 7.80109 5.75 8 5.75C8.19891 5.75 8.38968 5.82902 8.53033 5.96967L11.5303 8.96967C11.8232 9.26256 11.8232 9.73744 11.5303 10.0303Z", "clip-rule": "evenodd" } })]);
|
|
284
|
-
},
|
|
285
|
-
Ee,
|
|
286
|
-
Oe,
|
|
285
|
+
}, $e = [], De = /* @__PURE__ */ $(
|
|
287
286
|
Ce,
|
|
287
|
+
Le,
|
|
288
|
+
$e,
|
|
288
289
|
!1,
|
|
289
290
|
null,
|
|
290
291
|
"6f20d431",
|
|
291
292
|
null,
|
|
292
293
|
null
|
|
293
294
|
);
|
|
294
|
-
const
|
|
295
|
+
const Be = De.exports, Re = A({
|
|
295
296
|
name: "dropdown-small-textbox",
|
|
296
|
-
components: { ChevronDownSmallIcon:
|
|
297
|
+
components: { ChevronDownSmallIcon: Oe, ChevronUpSmallIcon: Be, DropdownBaseTextbox: ae },
|
|
298
|
+
inheritAttrs: !1,
|
|
297
299
|
props: {
|
|
298
300
|
/**
|
|
299
301
|
* The number of additional items that have been selected in the dropdown.
|
|
@@ -364,19 +366,19 @@ const $e = Le.exports, De = A({
|
|
|
364
366
|
*/
|
|
365
367
|
value: { type: String, default: "" }
|
|
366
368
|
},
|
|
367
|
-
emits: [
|
|
369
|
+
emits: [C.OPEN, C.CLOSE],
|
|
368
370
|
setup(t, { emit: e }) {
|
|
369
371
|
const n = d(() => ({
|
|
370
|
-
[`b-dropdown-small-textbox--${
|
|
371
|
-
[`b-dropdown-small-textbox--${
|
|
372
|
-
[`b-dropdown-small-textbox--${
|
|
372
|
+
[`b-dropdown-small-textbox--${R.DISABLED}`]: t.disabled,
|
|
373
|
+
[`b-dropdown-small-textbox--${R.READONLY}`]: t.readonly,
|
|
374
|
+
[`b-dropdown-small-textbox--${R.OPENED}`]: t.open
|
|
373
375
|
})), o = d(() => t.open && !t.disabled && !t.readonly), l = () => {
|
|
374
|
-
e(
|
|
376
|
+
e(C.OPEN);
|
|
375
377
|
}, a = () => {
|
|
376
|
-
e(
|
|
378
|
+
e(C.CLOSE);
|
|
377
379
|
}, s = {
|
|
378
|
-
[
|
|
379
|
-
[
|
|
380
|
+
[C.OPEN]: l,
|
|
381
|
+
[C.CLOSE]: a
|
|
380
382
|
};
|
|
381
383
|
return {
|
|
382
384
|
// Values
|
|
@@ -387,23 +389,23 @@ const $e = Le.exports, De = A({
|
|
|
387
389
|
};
|
|
388
390
|
}
|
|
389
391
|
});
|
|
390
|
-
var
|
|
392
|
+
var Te = function() {
|
|
391
393
|
var e = this, n = e._self._c;
|
|
392
394
|
return e._self._setupProxy, n("div", { staticClass: "b-dropdown-small-textbox", class: e.conditionalClasses }, [n("dropdown-base-textbox", e._g(e._b({ staticClass: "b-dropdown-small-textbox__textbox", scopedSlots: e._u([{ key: "icon", fn: function() {
|
|
393
395
|
return [n("div", { staticClass: "b-dropdown-small-textbox__chevron" }, [n("chevron-up-small-icon", { directives: [{ name: "show", rawName: "v-show", value: e.isDropdownOpen, expression: "isDropdownOpen" }], attrs: { "svg-title": "opened" } }), n("chevron-down-small-icon", { directives: [{ name: "show", rawName: "v-show", value: !e.isDropdownOpen, expression: "!isDropdownOpen" }], attrs: { "svg-title": "closed" } })], 1)];
|
|
394
396
|
}, proxy: !0 }]) }, "dropdown-base-textbox", { ...e.$attrs, ...e.$props }, !1), e.listeners))], 1);
|
|
395
|
-
},
|
|
396
|
-
|
|
397
|
-
Be,
|
|
397
|
+
}, Ie = [], Ae = /* @__PURE__ */ $(
|
|
398
|
+
Re,
|
|
398
399
|
Te,
|
|
400
|
+
Ie,
|
|
399
401
|
!1,
|
|
400
402
|
null,
|
|
401
|
-
"
|
|
403
|
+
"d9e6eff4",
|
|
402
404
|
null,
|
|
403
405
|
null
|
|
404
406
|
);
|
|
405
|
-
const
|
|
406
|
-
function
|
|
407
|
+
const Ne = Ae.exports;
|
|
408
|
+
function Pe(t, e, n) {
|
|
407
409
|
const o = b(t), l = b(e), a = (r, u = []) => u.flatMap((c) => c.label.toLocaleLowerCase().includes(r) ? [c, ...a(r, c.items)] : c.items ? [...a(r, c.items)] : []);
|
|
408
410
|
return j(o, () => {
|
|
409
411
|
n !== void 0 && n(o.value);
|
|
@@ -414,13 +416,13 @@ function Ae(t, e, n) {
|
|
|
414
416
|
return a(r, l.value);
|
|
415
417
|
});
|
|
416
418
|
}
|
|
417
|
-
const
|
|
419
|
+
const Me = ({ items: t, placeholder: e, selectedValue: n }) => {
|
|
418
420
|
const o = t.value.find(({ value: l }) => l === n.value);
|
|
419
421
|
return (o == null ? void 0 : o.label) || e.value || null;
|
|
420
|
-
},
|
|
422
|
+
}, Fe = ({ selectedValues: t, items: e, placeholder: n }) => t.value ? t.value.map((o) => {
|
|
421
423
|
const { label: l } = e.value.find(({ value: a }) => a === o);
|
|
422
424
|
return l;
|
|
423
|
-
}).join(", ") : n.value || null,
|
|
425
|
+
}).join(", ") : n.value || null, Ke = ({ selectedValues: t, items: e, placeholder: n }) => {
|
|
424
426
|
var o;
|
|
425
427
|
return (o = t.value) != null && o.length ? e.value.reduce((l, a) => {
|
|
426
428
|
if (a.items) {
|
|
@@ -431,13 +433,13 @@ const Ne = ({ items: t, placeholder: e, selectedValue: n }) => {
|
|
|
431
433
|
}
|
|
432
434
|
return t.value.includes(a.value) && l.push(a.label), l;
|
|
433
435
|
}, []).join(", ") : n.value || null;
|
|
434
|
-
},
|
|
436
|
+
}, We = ({ items: t, placeholder: e, value: n, multiple: o }) => {
|
|
435
437
|
const l = d(() => t.value.find((s) => {
|
|
436
438
|
var r;
|
|
437
439
|
return (r = s.items) == null ? void 0 : r.length;
|
|
438
440
|
}));
|
|
439
|
-
return d(() => o.value ? l.value ?
|
|
440
|
-
},
|
|
441
|
+
return d(() => o.value ? l.value ? Ke({ selectedValues: n, placeholder: e, items: t }) : Fe({ selectedValues: n, items: t, placeholder: e }) : Me({ items: t, placeholder: e, selectedValue: n }));
|
|
442
|
+
}, ke = {
|
|
441
443
|
"en-US": {
|
|
442
444
|
optional: "optional",
|
|
443
445
|
required: "required",
|
|
@@ -445,7 +447,7 @@ const Ne = ({ items: t, placeholder: e, selectedValue: n }) => {
|
|
|
445
447
|
}
|
|
446
448
|
}, J = (t) => {
|
|
447
449
|
t.value.$children[0].$refs.textbox.focus();
|
|
448
|
-
},
|
|
450
|
+
}, ze = ({
|
|
449
451
|
inputContainerRef: t,
|
|
450
452
|
optionsContainerRef: e,
|
|
451
453
|
selectedValueIndex: n,
|
|
@@ -458,11 +460,11 @@ const Ne = ({ items: t, placeholder: e, selectedValue: n }) => {
|
|
|
458
460
|
y.preventDefault(), o.value || (u(), S(() => {
|
|
459
461
|
s ? e.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children[0].$el.focus() : e.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children[n.value].$el.focus();
|
|
460
462
|
}));
|
|
461
|
-
},
|
|
463
|
+
}, m = ({ detail: y }) => {
|
|
462
464
|
y.preventDefault(), o.value || (u(), S(() => {
|
|
463
465
|
e.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children[0].$el.focus();
|
|
464
466
|
}));
|
|
465
|
-
},
|
|
467
|
+
}, x = () => {
|
|
466
468
|
o.value || (u(), S(() => {
|
|
467
469
|
if (s) {
|
|
468
470
|
const y = e.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children;
|
|
@@ -470,13 +472,13 @@ const Ne = ({ items: t, placeholder: e, selectedValue: n }) => {
|
|
|
470
472
|
} else
|
|
471
473
|
e.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children[a.length - 1].$el.focus();
|
|
472
474
|
}));
|
|
473
|
-
},
|
|
475
|
+
}, p = () => {
|
|
474
476
|
o.value && (c(), J(t));
|
|
475
|
-
},
|
|
477
|
+
}, g = () => {
|
|
476
478
|
o.value || u(), S(() => {
|
|
477
479
|
e.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children[0].$el.focus();
|
|
478
480
|
});
|
|
479
|
-
},
|
|
481
|
+
}, h = ({ detail: y }) => {
|
|
480
482
|
y.preventDefault(), r(), o.value && S(() => {
|
|
481
483
|
s ? e.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children[0].$el.focus() : e.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children[n.value].$el.focus();
|
|
482
484
|
});
|
|
@@ -486,15 +488,15 @@ const Ne = ({ items: t, placeholder: e, selectedValue: n }) => {
|
|
|
486
488
|
});
|
|
487
489
|
};
|
|
488
490
|
return d(() => ({
|
|
489
|
-
...l.value ? {} : { [w.SPACE]:
|
|
491
|
+
...l.value ? {} : { [w.SPACE]: h },
|
|
490
492
|
[w.ENTER]: f,
|
|
491
493
|
[w.ARROW_DOWN]: _,
|
|
492
|
-
[w.ARROW_UP]:
|
|
493
|
-
[w.END]:
|
|
494
|
-
[w.ESCAPE]:
|
|
495
|
-
[w.HOME]:
|
|
494
|
+
[w.ARROW_UP]: m,
|
|
495
|
+
[w.END]: x,
|
|
496
|
+
[w.ESCAPE]: p,
|
|
497
|
+
[w.HOME]: g
|
|
496
498
|
}));
|
|
497
|
-
},
|
|
499
|
+
}, qe = ({ inputContainerRef: t, isDropdownOpen: e }, n) => {
|
|
498
500
|
const o = () => {
|
|
499
501
|
e.value && n(), S(() => {
|
|
500
502
|
J(t);
|
|
@@ -506,17 +508,17 @@ const Ne = ({ items: t, placeholder: e, selectedValue: n }) => {
|
|
|
506
508
|
[i.TAB]: o,
|
|
507
509
|
[i.SPACE]: o
|
|
508
510
|
};
|
|
509
|
-
},
|
|
510
|
-
i18n: { messages:
|
|
511
|
+
}, Ue = A({
|
|
512
|
+
i18n: { messages: ke },
|
|
511
513
|
name: "b-dropdown",
|
|
512
514
|
components: {
|
|
513
|
-
BentoDropdownOptionsContainer:
|
|
514
|
-
BentoTypography:
|
|
515
|
-
DropdownInputDefault:
|
|
516
|
-
DropdownInputSmall:
|
|
517
|
-
ErrorMessage:
|
|
515
|
+
BentoDropdownOptionsContainer: xe,
|
|
516
|
+
BentoTypography: ie,
|
|
517
|
+
DropdownInputDefault: se,
|
|
518
|
+
DropdownInputSmall: Ne,
|
|
519
|
+
ErrorMessage: fe
|
|
518
520
|
},
|
|
519
|
-
directives: { BentoClickOutsideDirective:
|
|
521
|
+
directives: { BentoClickOutsideDirective: pe, BentoKeyboardNavigationDirective: ue },
|
|
520
522
|
props: {
|
|
521
523
|
/**
|
|
522
524
|
* Defines a string value that labels an interactive element.
|
|
@@ -648,64 +650,64 @@ const Ne = ({ items: t, placeholder: e, selectedValue: n }) => {
|
|
|
648
650
|
},
|
|
649
651
|
emits: ["input", i.SHOW_MORE],
|
|
650
652
|
setup(t, { emit: e, slots: n }) {
|
|
651
|
-
var
|
|
652
|
-
const o = b(null), l = b(null), a = b(null), s = b(!1), r = L("bento-dropdown-options-container"), u = L("dropdown-label"), c = L("dropdown-description"), _ = L("dropdown-error"), x = d(() => ({
|
|
653
|
+
var K;
|
|
654
|
+
const o = b(null), l = b(null), a = b(null), s = b(!1), r = L("bento-dropdown-options-container"), u = L("dropdown-label"), c = L("dropdown-description"), _ = L("dropdown-error"), { isReadOnly: m } = ce(O(t, "readonly")), x = d(() => ({
|
|
653
655
|
"b-dropdown__description--error": !!t.errorMessage
|
|
654
|
-
})), p = b(""), g =
|
|
656
|
+
})), p = b(""), g = O(t, "items"), h = Pe(p, g, (K = t == null ? void 0 : t.search) == null ? void 0 : K.searchEvent), f = d(() => t.dynamicFiltering && !!p.value), N = We({
|
|
655
657
|
items: g,
|
|
656
|
-
multiple:
|
|
657
|
-
placeholder:
|
|
658
|
-
value:
|
|
659
|
-
}),
|
|
658
|
+
multiple: O(t, "multiple"),
|
|
659
|
+
placeholder: O(t, "placeholder"),
|
|
660
|
+
value: O(t, "value")
|
|
661
|
+
}), y = d(
|
|
660
662
|
() => t != null && t.multiple ? t.items.filter(
|
|
661
663
|
({ value: v }) => (t == null ? void 0 : t.value) && (t == null ? void 0 : t.value).includes(v)
|
|
662
664
|
) : t.items.find(({ value: v }) => v === (t == null ? void 0 : t.value))
|
|
663
|
-
),
|
|
664
|
-
const v = t.items.findIndex(({ value:
|
|
665
|
+
), Z = d(() => {
|
|
666
|
+
const v = t.items.findIndex(({ value: oe }) => t.value === oe);
|
|
665
667
|
return v > 0 ? v : 0;
|
|
666
|
-
}),
|
|
668
|
+
}), Y = d(() => {
|
|
667
669
|
var v;
|
|
668
670
|
return t.multiple ? (v = t == null ? void 0 : t.value) == null ? void 0 : v.length : null;
|
|
669
|
-
}),
|
|
671
|
+
}), G = d(
|
|
670
672
|
() => `${t.description ? c : ""} ${t.errorMessage ? _ : ""}`.trim() || null
|
|
671
|
-
),
|
|
672
|
-
|
|
673
|
+
), Q = () => {
|
|
674
|
+
m.value || (s.value = !0);
|
|
673
675
|
}, B = () => {
|
|
674
676
|
s.value = !1;
|
|
675
677
|
}, P = () => {
|
|
676
|
-
|
|
677
|
-
},
|
|
678
|
-
|
|
678
|
+
m.value || (s.value = !s.value, f.value && (p.value = ""));
|
|
679
|
+
}, X = () => {
|
|
680
|
+
f.value && (p.value = ""), s.value && (s.value = !1);
|
|
679
681
|
}, M = (v) => {
|
|
680
682
|
t.multiple || (p.value = "", s.value = !1), e("input", v);
|
|
681
|
-
},
|
|
683
|
+
}, F = () => {
|
|
682
684
|
e(i.SHOW_MORE);
|
|
683
|
-
},
|
|
685
|
+
}, ee = ze(
|
|
684
686
|
{
|
|
685
687
|
inputContainerRef: o,
|
|
686
688
|
optionsContainerRef: a,
|
|
687
|
-
selectedValueIndex:
|
|
689
|
+
selectedValueIndex: Z,
|
|
688
690
|
isDropdownOpen: s,
|
|
689
|
-
isDynamicFltering:
|
|
691
|
+
isDynamicFltering: O(t, "dynamicFiltering"),
|
|
690
692
|
items: t.items,
|
|
691
693
|
isMultiple: t.multiple
|
|
692
694
|
},
|
|
693
695
|
P,
|
|
694
|
-
|
|
696
|
+
Q,
|
|
695
697
|
B
|
|
696
|
-
),
|
|
698
|
+
), te = qe(
|
|
697
699
|
{
|
|
698
700
|
inputContainerRef: o,
|
|
699
701
|
isDropdownOpen: s
|
|
700
702
|
},
|
|
701
703
|
B
|
|
702
|
-
),
|
|
704
|
+
), ne = {
|
|
703
705
|
[i.CLOSE_DROPDOWN]: B,
|
|
704
706
|
[i.SELECT]: M,
|
|
705
|
-
[i.SHOW_MORE]:
|
|
706
|
-
...
|
|
707
|
+
[i.SHOW_MORE]: F,
|
|
708
|
+
...te
|
|
707
709
|
};
|
|
708
|
-
return t.error &&
|
|
710
|
+
return t.error && re(
|
|
709
711
|
'BentoDropdown "error" property',
|
|
710
712
|
`Use the BentoDropdown "errorMessage" property instead to indicate that there is a modifier error.
|
|
711
713
|
Having the field as "undefined" will hide/remove the error.
|
|
@@ -713,18 +715,19 @@ const Ne = ({ items: t, placeholder: e, selectedValue: n }) => {
|
|
|
713
715
|
"2.0.0"
|
|
714
716
|
), {
|
|
715
717
|
// Values
|
|
716
|
-
additionalItemsSelected:
|
|
718
|
+
additionalItemsSelected: Y,
|
|
717
719
|
isDropdownOpen: s,
|
|
718
|
-
displayValue:
|
|
720
|
+
displayValue: N,
|
|
719
721
|
dropdownOptionsContainerId: r,
|
|
720
722
|
filteredItems: h,
|
|
721
|
-
isSearching:
|
|
723
|
+
isSearching: f,
|
|
724
|
+
isReadOnly: m,
|
|
722
725
|
searchTerm: p,
|
|
723
726
|
labelId: u,
|
|
724
727
|
descriptionId: c,
|
|
725
728
|
errorId: _,
|
|
726
|
-
ariaDescribedBy:
|
|
727
|
-
selectedValueItem:
|
|
729
|
+
ariaDescribedBy: G,
|
|
730
|
+
selectedValueItem: y,
|
|
728
731
|
// Conciliation of Vue2 $scopedSlots and Vue3 $scopes.
|
|
729
732
|
// The setup method and the "useSlots" composible define
|
|
730
733
|
// { slots } as a proxy of $scopedSlots and $scopes in their
|
|
@@ -736,23 +739,23 @@ const Ne = ({ items: t, placeholder: e, selectedValue: n }) => {
|
|
|
736
739
|
inputContainerRefWrapper: l,
|
|
737
740
|
optionsContainerRef: a,
|
|
738
741
|
// Events
|
|
739
|
-
closeOpenedDropdown:
|
|
742
|
+
closeOpenedDropdown: X,
|
|
740
743
|
toggleDropdown: P,
|
|
741
744
|
onOptionSelected: M,
|
|
742
|
-
emitShowMoreEvent:
|
|
743
|
-
textboxKeyboardNavigationListeners:
|
|
744
|
-
listboxListeners:
|
|
745
|
+
emitShowMoreEvent: F,
|
|
746
|
+
textboxKeyboardNavigationListeners: ee,
|
|
747
|
+
listboxListeners: ne,
|
|
745
748
|
// Enums
|
|
746
|
-
BentoTypographyElement:
|
|
749
|
+
BentoTypographyElement: de,
|
|
747
750
|
BentoDropdownSize: E,
|
|
748
751
|
BentoDropdownLazyLoadType: D
|
|
749
752
|
};
|
|
750
753
|
}
|
|
751
754
|
});
|
|
752
|
-
var
|
|
755
|
+
var He = function() {
|
|
753
756
|
var o;
|
|
754
757
|
var e = this, n = e._self._c;
|
|
755
|
-
return e._self._setupProxy, n("div", { directives: [{ name: "bento-click-outside-directive", rawName: "v-bento-click-outside-directive", value: e.closeOpenedDropdown, expression: "closeOpenedDropdown" }], staticClass: "b-dropdown" }, [e.label ? n("div", { staticClass: "b-dropdown__label", attrs: { id: e.labelId } }, [n("bento-typography", { attrs: { el: e.BentoTypographyElement.SPAN, stronger: "" } }, [e._v(e._s(e.label))]), e.optional ? n("bento-typography", { staticClass: "b-dropdown__label-requirement", attrs: { el: e.BentoTypographyElement.SPAN } }, [e._v(" (" + e._s(e.$t("optional")) + ") ")]) : e._e(), e.required ? n("bento-typography", { staticClass: "b-dropdown__label-requirement", attrs: { el: e.BentoTypographyElement.SPAN } }, [e._v(" (" + e._s(e.$t("required")) + ") ")]) : e._e()], 1) : e._e(), n("div", e._g({ directives: [{ name: "bento-keyboard-navigation-directive", rawName: "v-bento-keyboard-navigation-directive" }], ref: "inputContainerRefWrapper" }, e.textboxKeyboardNavigationListeners), [n(e.size, { ref: "inputContainerRef", tag: "component", attrs: { 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.ariaLabel ? e.ariaLabel : null, "aria-readonly": e.
|
|
758
|
+
return e._self._setupProxy, n("div", { directives: [{ name: "bento-click-outside-directive", rawName: "v-bento-click-outside-directive", value: e.closeOpenedDropdown, expression: "closeOpenedDropdown" }], staticClass: "b-dropdown" }, [e.label ? n("div", { staticClass: "b-dropdown__label", attrs: { id: e.labelId } }, [n("bento-typography", { attrs: { el: e.BentoTypographyElement.SPAN, stronger: "" } }, [e._v(e._s(e.label))]), e.optional ? n("bento-typography", { staticClass: "b-dropdown__label-requirement", attrs: { el: e.BentoTypographyElement.SPAN } }, [e._v(" (" + e._s(e.$t("optional")) + ") ")]) : e._e(), e.required ? n("bento-typography", { staticClass: "b-dropdown__label-requirement", attrs: { el: e.BentoTypographyElement.SPAN } }, [e._v(" (" + e._s(e.$t("required")) + ") ")]) : e._e()], 1) : e._e(), n("div", e._g({ directives: [{ name: "bento-keyboard-navigation-directive", rawName: "v-bento-keyboard-navigation-directive" }], ref: "inputContainerRefWrapper" }, e.textboxKeyboardNavigationListeners), [n(e.size, { ref: "inputContainerRef", tag: "component", attrs: { 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.ariaLabel ? e.ariaLabel : null, "aria-readonly": e.isReadOnly, readonly: e.isReadOnly, disabled: e.disabled, "display-value": e.displayValue, "dynamic-filtering": e.dynamicFiltering, "is-invalid": !!e.errorMessage || e.error, multiple: e.multiple, open: e.isDropdownOpen, "selected-value-item": e.size === e.BentoDropdownSize.DEFAULT ? e.selectedValueItem : void 0, "show-slot-content-in-multiple": e.showSlotContentInMultiple }, on: { input: function(l) {
|
|
756
759
|
e.searchTerm = l;
|
|
757
760
|
}, open: e.toggleDropdown, close: e.toggleDropdown }, scopedSlots: e._u([e._l(e.slots, function(l, a) {
|
|
758
761
|
return { key: a, fn: function(s) {
|
|
@@ -763,20 +766,20 @@ var qe = function() {
|
|
|
763
766
|
return [e._t(a, null, null, s)];
|
|
764
767
|
} };
|
|
765
768
|
})], null, !0) }, e.listboxListeners)) : e._e(), e.errorMessage ? n("error-message", { staticClass: "b-dropdown__error-message", attrs: { id: e.errorId, "error-message": e.errorMessage } }) : e._e(), e.description ? n("bento-typography", { staticClass: "b-dropdown__description", class: e.descriptionConditionalClasses, attrs: { id: e.descriptionId, el: e.BentoTypographyElement.SPAN } }, [e._v(" " + e._s(e.description) + " ")]) : e._e()], 1);
|
|
766
|
-
},
|
|
767
|
-
ze,
|
|
768
|
-
qe,
|
|
769
|
+
}, je = [], Ve = /* @__PURE__ */ $(
|
|
769
770
|
Ue,
|
|
771
|
+
He,
|
|
772
|
+
je,
|
|
770
773
|
!1,
|
|
771
774
|
null,
|
|
772
|
-
"
|
|
775
|
+
"ad005bba",
|
|
773
776
|
null,
|
|
774
777
|
null
|
|
775
778
|
);
|
|
776
|
-
const
|
|
779
|
+
const rt = Ve.exports;
|
|
777
780
|
export {
|
|
778
|
-
|
|
781
|
+
rt as B,
|
|
779
782
|
E as a,
|
|
780
|
-
|
|
783
|
+
Pe as u
|
|
781
784
|
};
|
|
782
|
-
//# sourceMappingURL=dropdown.
|
|
785
|
+
//# sourceMappingURL=dropdown.c05678d0.js.map
|