@adyen/bento-vue3 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/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/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 +5 -3
- 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 +46 -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/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 -1
- package/dist/assets/index41.css +1 -0
- package/dist/assets/index42.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 +111 -97
- package/dist/checkbox.js.map +1 -1
- package/dist/chunks/arrow-left.cdbcc128.js +30 -0
- package/dist/chunks/arrow-left.cdbcc128.js.map +1 -0
- package/dist/chunks/{base-button.4a56c2fb.js → base-button.20be08da.js} +2 -2
- package/dist/chunks/{base-button.4a56c2fb.js.map → base-button.20be08da.js.map} +1 -1
- package/dist/chunks/{button-actions.a6e541ad.js → button-actions.54e28e75.js} +2 -2
- package/dist/chunks/{button-actions.a6e541ad.js.map → button-actions.54e28e75.js.map} +1 -1
- package/dist/chunks/{button.1f630b6e.js → button.e1c39f66.js} +2 -2
- package/dist/chunks/{button.1f630b6e.js.map → button.e1c39f66.js.map} +1 -1
- package/dist/chunks/{calendar.08885a56.js → calendar.09b683b3.js} +6 -6
- package/dist/chunks/calendar.09b683b3.js.map +1 -0
- package/dist/chunks/{checkbox.cfb8b8df.js → checkbox.a404069b.js} +3 -3
- package/dist/chunks/{checkbox.cfb8b8df.js.map → checkbox.a404069b.js.map} +1 -1
- package/dist/chunks/controls-group.60fb2a86.js +136 -0
- package/dist/chunks/controls-group.60fb2a86.js.map +1 -0
- package/dist/chunks/{copy.1ce0203e.js → copy.2cf5e6c3.js} +3 -3
- package/dist/chunks/{copy.1ce0203e.js.map → copy.2cf5e6c3.js.map} +1 -1
- package/dist/chunks/{dropdown-default-textbox.dd77bb42.js → dropdown-default-textbox.203e747f.js} +54 -51
- package/dist/chunks/dropdown-default-textbox.203e747f.js.map +1 -0
- package/dist/chunks/{dropdown.f9997464.js → dropdown.8b415aac.js} +188 -185
- package/dist/chunks/dropdown.8b415aac.js.map +1 -0
- package/dist/chunks/{error-message.b88bb75a.js → error-message.ddfe8ea5.js} +2 -2
- package/dist/chunks/{error-message.b88bb75a.js.map → error-message.ddfe8ea5.js.map} +1 -1
- package/dist/chunks/footer-actions.0f640f87.js +106 -0
- package/dist/chunks/footer-actions.0f640f87.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.361c61d3.js → index.13949709.js} +2 -2
- package/dist/chunks/{index.361c61d3.js.map → index.13949709.js.map} +1 -1
- package/dist/chunks/index.222d29b0.js +120 -0
- package/dist/chunks/index.222d29b0.js.map +1 -0
- package/dist/chunks/{index.64b7b3cc.js → index.3da90517.js} +6 -6
- package/dist/chunks/{index.64b7b3cc.js.map → index.3da90517.js.map} +1 -1
- package/dist/chunks/{index.96001b1d.js → index.aa34e363.js} +3 -3
- package/dist/chunks/{index.96001b1d.js.map → index.aa34e363.js.map} +1 -1
- package/dist/chunks/{index.b46a5047.js → index.c9225c3b.js} +260 -253
- package/dist/chunks/{index.b46a5047.js.map → index.c9225c3b.js.map} +1 -1
- package/dist/chunks/{index.7dd953ea.js → index.d27367cd.js} +2 -2
- package/dist/chunks/{index.7dd953ea.js.map → index.d27367cd.js.map} +1 -1
- package/dist/chunks/{listbox-option-tag.73661a5d.js → listbox-option-tag.5ae8b79b.js} +3 -3
- package/dist/chunks/{listbox-option-tag.73661a5d.js.map → listbox-option-tag.5ae8b79b.js.map} +1 -1
- package/dist/chunks/{listbox.7b5e0eee.js → listbox.0c7c4e5e.js} +339 -339
- package/dist/chunks/listbox.0c7c4e5e.js.map +1 -0
- package/dist/chunks/loading-button.61d8ebe5.js +109 -0
- package/dist/chunks/loading-button.61d8ebe5.js.map +1 -0
- package/dist/chunks/{tooltip.53290a34.js → tooltip.835d9b52.js} +2 -2
- package/dist/chunks/tooltip.835d9b52.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 +559 -595
- package/dist/country.js.map +1 -1
- package/dist/currency.js +1 -1
- package/dist/data-grid.js +682 -702
- package/dist/data-grid.js.map +1 -1
- package/dist/date-picker.js +82 -75
- 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 +67 -62
- package/dist/dropdown.js.map +1 -1
- package/dist/filter-bar.js +446 -442
- package/dist/filter-bar.js.map +1 -1
- package/dist/focus-trap.js +1 -1
- package/dist/form-layout.js +188 -0
- package/dist/form-layout.js.map +1 -0
- package/dist/header.js +3 -3
- package/dist/index.js +191 -187
- package/dist/index.js.map +1 -1
- package/dist/info-icon.js +2 -2
- package/dist/input-field.js +123 -121
- 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 +266 -397
- 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 +127 -124
- 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 +279 -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 +7 -7
- package/dist/tabs.js.map +1 -1
- package/dist/tag.js +3 -3
- package/dist/textarea.js +97 -95
- package/dist/textarea.js.map +1 -1
- package/dist/timeline.js +8 -8
- package/dist/timeline.js.map +1 -1
- package/dist/toast.js +3 -3
- package/dist/toggle.js +2 -2
- package/dist/typography.js +1 -1
- package/dist/web-types.json +1 -1
- package/package.json +14 -7
- package/dist/@types/packages/vue2/src/components/country/composables/useCountryFlag.d.ts +0 -2
- package/dist/chunks/calendar.08885a56.js.map +0 -1
- package/dist/chunks/controls-group.806da9bd.js +0 -75
- package/dist/chunks/controls-group.806da9bd.js.map +0 -1
- package/dist/chunks/dropdown-default-textbox.dd77bb42.js.map +0 -1
- package/dist/chunks/dropdown.f9997464.js.map +0 -1
- package/dist/chunks/index.ebf5f6cf.js +0 -119
- package/dist/chunks/index.ebf5f6cf.js.map +0 -1
- package/dist/chunks/listbox.7b5e0eee.js.map +0 -1
- package/dist/chunks/loading-button.426d89b9.js +0 -113
- package/dist/chunks/loading-button.426d89b9.js.map +0 -1
- package/dist/chunks/tooltip.53290a34.js.map +0 -1
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import { a as s, B as G, b as F } from "./listbox.
|
|
3
|
-
import { B as
|
|
4
|
-
import { B as
|
|
5
|
-
import {
|
|
6
|
-
import { _ as K } from "./_plugin-vue_export-helper.dad06003.js";
|
|
7
|
-
import { B as Ne, d as Pe, a as Me } from "./index.ebf5f6cf.js";
|
|
1
|
+
import { ref as S, watch as fe, computed as c, defineComponent as X, toRefs as Be, resolveComponent as B, openBlock as m, createBlock as C, resolveDynamicComponent as me, mergeProps as I, withCtx as $, createElementVNode as q, withKeys as Te, createVNode as M, toHandlers as k, createSlots as x, renderList as j, renderSlot as J, normalizeProps as Z, guardReactiveProps as Y, createElementBlock as _, toDisplayString as N, createCommentVNode as E, pushScopeId as ve, popScopeId as be, normalizeClass as ye, withDirectives as W, vShow as ae, nextTick as D, toRef as R, resolveDirective as ie, createTextVNode as z } from "vue";
|
|
2
|
+
import { a as s, B as G, b as F } from "./listbox.0c7c4e5e.js";
|
|
3
|
+
import { B as Ie } from "./directive.0408e565.js";
|
|
4
|
+
import { B as L, a as Re } from "./debounce.f8d92e44.js";
|
|
5
|
+
import { B as Ae, d as Ne, a as Pe } from "./index.222d29b0.js";
|
|
8
6
|
import { g as P } from "./unique-id.a2a2b458.js";
|
|
9
|
-
import {
|
|
7
|
+
import { u as Me } from "./use-form-layout-loading.d03e5d48.js";
|
|
8
|
+
import { PopperContainer as H, PopperContainerPosition as se } from "../popper-container.js";
|
|
10
9
|
import { u as ge } from "./i18n.6c402773.js";
|
|
11
10
|
import { BentoPopover as re, BentoPopoverPositions as de } from "../popover.js";
|
|
12
|
-
import { c as ue } from "./button-actions.
|
|
13
|
-
import {
|
|
11
|
+
import { c as ue } from "./button-actions.54e28e75.js";
|
|
12
|
+
import { _ as K } from "./_plugin-vue_export-helper.dad06003.js";
|
|
13
|
+
import { D as Ke, a as A, b as V, c as ze } from "./dropdown-default-textbox.203e747f.js";
|
|
14
|
+
import { E as ke } from "./error-message.ddfe8ea5.js";
|
|
14
15
|
import "../assets/dropdown.css";
|
|
15
16
|
var T = /* @__PURE__ */ ((e) => (e.DEFAULT = "DropdownInputDefault", e.SMALL = "DropdownInputSmall", e))(T || {});
|
|
16
17
|
const Q = {
|
|
@@ -19,8 +20,8 @@ const Q = {
|
|
|
19
20
|
cancel: "Cancel",
|
|
20
21
|
noOptionsMatchThisSearch: "No options match this search"
|
|
21
22
|
}
|
|
22
|
-
},
|
|
23
|
-
const t =
|
|
23
|
+
}, We = (e, o, n) => {
|
|
24
|
+
const t = S(e.value), { t: a } = ge({ messages: Q });
|
|
24
25
|
fe(e, () => {
|
|
25
26
|
t.value = e.value;
|
|
26
27
|
});
|
|
@@ -44,35 +45,35 @@ const Q = {
|
|
|
44
45
|
t.value = f, o.value || n(s.SELECT, f);
|
|
45
46
|
}, y = (f) => {
|
|
46
47
|
u(f), n(s.TAB);
|
|
47
|
-
},
|
|
48
|
+
}, v = (f) => {
|
|
48
49
|
u(f), n(s.ENTER);
|
|
49
|
-
},
|
|
50
|
+
}, g = (f) => {
|
|
50
51
|
u(f), n(s.SPACE);
|
|
51
|
-
},
|
|
52
|
+
}, p = () => {
|
|
52
53
|
r(), n(s.ESCAPE);
|
|
53
54
|
}, b = () => {
|
|
54
55
|
n(s.SHOW_MORE);
|
|
55
|
-
},
|
|
56
|
+
}, O = {
|
|
56
57
|
[s.SELECT]: u,
|
|
57
58
|
[s.SHOW_MORE]: b,
|
|
58
59
|
[s.TAB]: y,
|
|
59
|
-
[s.SPACE]:
|
|
60
|
-
[s.ENTER]:
|
|
60
|
+
[s.SPACE]: g,
|
|
61
|
+
[s.ENTER]: v
|
|
61
62
|
};
|
|
62
63
|
return {
|
|
63
64
|
// Values
|
|
64
65
|
actions: d,
|
|
65
66
|
internalSelectedValue: t,
|
|
66
67
|
// Methods
|
|
67
|
-
listeners:
|
|
68
|
-
onEscapeKey:
|
|
68
|
+
listeners: O,
|
|
69
|
+
onEscapeKey: p
|
|
69
70
|
};
|
|
70
|
-
},
|
|
71
|
+
}, Fe = X({
|
|
71
72
|
i18n: { messages: Q },
|
|
72
73
|
name: "bento-dropdown-options-container",
|
|
73
74
|
components: {
|
|
74
75
|
BentoListbox: G,
|
|
75
|
-
PopperContainer:
|
|
76
|
+
PopperContainer: H,
|
|
76
77
|
BentoPopover: re
|
|
77
78
|
},
|
|
78
79
|
props: {
|
|
@@ -167,7 +168,7 @@ const Q = {
|
|
|
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: H.props.targetElement.type, required: !0 }
|
|
171
172
|
},
|
|
172
173
|
emits: [
|
|
173
174
|
s.CLOSE_DROPDOWN,
|
|
@@ -179,16 +180,16 @@ const Q = {
|
|
|
179
180
|
s.TAB
|
|
180
181
|
],
|
|
181
182
|
setup(e, { emit: o, slots: n }) {
|
|
182
|
-
const { selectedValue: t, multiple: a } =
|
|
183
|
+
const { selectedValue: t, multiple: a } = Be(e), i = S(null), { t: l } = ge({ messages: Q }), r = c(() => e.open && !e.disabled), d = c(() => l("noOptionsMatchThisSearch")), u = c(() => ({
|
|
183
184
|
"b-dropdown-options-container__listbox--small": e.inputSize === T.SMALL,
|
|
184
185
|
"b-dropdown-options-container__listbox--single": !(e != null && e.multiple)
|
|
185
|
-
})), { actions: y, internalSelectedValue:
|
|
186
|
+
})), { actions: y, internalSelectedValue: v, listeners: g, onEscapeKey: p } = We(
|
|
186
187
|
t,
|
|
187
188
|
a,
|
|
188
189
|
o
|
|
189
190
|
), b = c(
|
|
190
|
-
() => e != null && e.multiple ? re :
|
|
191
|
-
),
|
|
191
|
+
() => e != null && e.multiple ? re : H
|
|
192
|
+
), O = c(
|
|
192
193
|
() => {
|
|
193
194
|
var f;
|
|
194
195
|
return e != null && e.multiple ? {
|
|
@@ -216,10 +217,10 @@ const Q = {
|
|
|
216
217
|
noResultsMessage: d,
|
|
217
218
|
slots: n,
|
|
218
219
|
actions: y,
|
|
219
|
-
internalSelectedValue:
|
|
220
|
+
internalSelectedValue: v,
|
|
220
221
|
// Component wrapper
|
|
221
222
|
popperContainerOrPopoverComponent: b,
|
|
222
|
-
popperContainerOrPopoverProps:
|
|
223
|
+
popperContainerOrPopoverProps: O,
|
|
223
224
|
// Refs
|
|
224
225
|
dropdownOptionsListboxRef: i,
|
|
225
226
|
// Enums
|
|
@@ -227,17 +228,17 @@ const Q = {
|
|
|
227
228
|
BentoPopoverPositions: de,
|
|
228
229
|
PopperContainerPosition: se,
|
|
229
230
|
// Events
|
|
230
|
-
onEscapeKey:
|
|
231
|
-
listeners:
|
|
231
|
+
onEscapeKey: p,
|
|
232
|
+
listeners: g
|
|
232
233
|
};
|
|
233
234
|
}
|
|
234
235
|
});
|
|
235
|
-
function
|
|
236
|
+
function qe(e, o, n, t, a, i) {
|
|
236
237
|
const l = B("bento-listbox");
|
|
237
|
-
return m(),
|
|
238
|
-
default:
|
|
238
|
+
return m(), C(me(e.popperContainerOrPopoverComponent), I({ class: "b-dropdown-options-container" }, e.popperContainerOrPopoverProps), {
|
|
239
|
+
default: $(() => [
|
|
239
240
|
q("div", {
|
|
240
|
-
onKeydown: o[0] || (o[0] =
|
|
241
|
+
onKeydown: o[0] || (o[0] = Te((...r) => e.onEscapeKey && e.onEscapeKey(...r), ["esc"]))
|
|
241
242
|
}, [
|
|
242
243
|
M(l, I({
|
|
243
244
|
id: e.id,
|
|
@@ -256,7 +257,7 @@ function We(e, o, n, t, a, i) {
|
|
|
256
257
|
}, k(e.listeners)), x({ _: 2 }, [
|
|
257
258
|
j(e.slots, (r, d) => ({
|
|
258
259
|
name: d,
|
|
259
|
-
fn:
|
|
260
|
+
fn: $((u) => [
|
|
260
261
|
J(e.$slots, d, Z(Y(u)), void 0, !0)
|
|
261
262
|
])
|
|
262
263
|
}))
|
|
@@ -266,55 +267,56 @@ function We(e, o, n, t, a, i) {
|
|
|
266
267
|
_: 3
|
|
267
268
|
}, 16);
|
|
268
269
|
}
|
|
269
|
-
const
|
|
270
|
+
const Ue = /* @__PURE__ */ K(Fe, [["render", qe], ["__scopeId", "data-v-09e1e41e"]]);
|
|
270
271
|
let ce = 0;
|
|
271
|
-
const
|
|
272
|
+
const He = {
|
|
272
273
|
beforeCreate() {
|
|
273
274
|
this.uuid = ce.toString(), ce += 1;
|
|
274
275
|
}
|
|
275
|
-
},
|
|
276
|
+
}, Ve = (e) => (ve("data-v-18645fe6"), e = e(), be(), e), xe = { key: 0 }, je = /* @__PURE__ */ Ve(() => /* @__PURE__ */ q("path", {
|
|
276
277
|
fill: "#00112C",
|
|
277
278
|
"fill-rule": "evenodd",
|
|
278
279
|
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",
|
|
279
280
|
"clip-rule": "evenodd"
|
|
280
281
|
}, null, -1));
|
|
281
|
-
function
|
|
282
|
-
return m(),
|
|
282
|
+
function Je(e, o, n, t, a, i) {
|
|
283
|
+
return m(), _("svg", I({ role: "img" }, e.$attrs, {
|
|
283
284
|
xmlns: "http://www.w3.org/2000/svg",
|
|
284
285
|
width: "16",
|
|
285
286
|
height: "16",
|
|
286
287
|
fill: "none"
|
|
287
288
|
}), [
|
|
288
|
-
e.$attrs["svg-title"] ? (m(),
|
|
289
|
-
|
|
289
|
+
e.$attrs["svg-title"] ? (m(), _("title", xe, N(e.$attrs["svg-title"]), 1)) : E("", !0),
|
|
290
|
+
je
|
|
290
291
|
], 16);
|
|
291
292
|
}
|
|
292
|
-
const
|
|
293
|
+
const Ze = /* @__PURE__ */ K(He, [["render", Je], ["__scopeId", "data-v-18645fe6"]]);
|
|
293
294
|
let pe = 0;
|
|
294
|
-
const
|
|
295
|
+
const Ye = {
|
|
295
296
|
beforeCreate() {
|
|
296
297
|
this.uuid = pe.toString(), pe += 1;
|
|
297
298
|
}
|
|
298
|
-
},
|
|
299
|
+
}, Ge = (e) => (ve("data-v-6f20d431"), e = e(), be(), e), Qe = { key: 0 }, Xe = /* @__PURE__ */ Ge(() => /* @__PURE__ */ q("path", {
|
|
299
300
|
fill: "#00112C",
|
|
300
301
|
"fill-rule": "evenodd",
|
|
301
302
|
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",
|
|
302
303
|
"clip-rule": "evenodd"
|
|
303
304
|
}, null, -1));
|
|
304
|
-
function
|
|
305
|
-
return m(),
|
|
305
|
+
function et(e, o, n, t, a, i) {
|
|
306
|
+
return m(), _("svg", I({ role: "img" }, e.$attrs, {
|
|
306
307
|
xmlns: "http://www.w3.org/2000/svg",
|
|
307
308
|
width: "16",
|
|
308
309
|
height: "16",
|
|
309
310
|
fill: "none"
|
|
310
311
|
}), [
|
|
311
|
-
e.$attrs["svg-title"] ? (m(),
|
|
312
|
-
|
|
312
|
+
e.$attrs["svg-title"] ? (m(), _("title", Qe, N(e.$attrs["svg-title"]), 1)) : E("", !0),
|
|
313
|
+
Xe
|
|
313
314
|
], 16);
|
|
314
315
|
}
|
|
315
|
-
const
|
|
316
|
+
const tt = /* @__PURE__ */ K(Ye, [["render", et], ["__scopeId", "data-v-6f20d431"]]), ot = X({
|
|
316
317
|
name: "dropdown-small-textbox",
|
|
317
|
-
components: { ChevronDownSmallIcon:
|
|
318
|
+
components: { ChevronDownSmallIcon: Ze, ChevronUpSmallIcon: tt, DropdownBaseTextbox: Ke },
|
|
319
|
+
inheritAttrs: !1,
|
|
318
320
|
props: {
|
|
319
321
|
/**
|
|
320
322
|
* The number of additional items that have been selected in the dropdown.
|
|
@@ -385,19 +387,19 @@ const Xe = /* @__PURE__ */ K(Je, [["render", Qe], ["__scopeId", "data-v-6f20d431
|
|
|
385
387
|
*/
|
|
386
388
|
value: { type: String, default: "" }
|
|
387
389
|
},
|
|
388
|
-
emits: [
|
|
390
|
+
emits: [A.OPEN, A.CLOSE],
|
|
389
391
|
setup(e, { emit: o }) {
|
|
390
392
|
const n = c(() => ({
|
|
391
|
-
[`b-dropdown-small-textbox--${
|
|
392
|
-
[`b-dropdown-small-textbox--${
|
|
393
|
-
[`b-dropdown-small-textbox--${
|
|
393
|
+
[`b-dropdown-small-textbox--${V.DISABLED}`]: e.disabled,
|
|
394
|
+
[`b-dropdown-small-textbox--${V.READONLY}`]: e.readonly,
|
|
395
|
+
[`b-dropdown-small-textbox--${V.OPENED}`]: e.open
|
|
394
396
|
})), t = c(() => e.open && !e.disabled && !e.readonly), a = () => {
|
|
395
|
-
o(
|
|
397
|
+
o(A.OPEN);
|
|
396
398
|
}, i = () => {
|
|
397
|
-
o(
|
|
399
|
+
o(A.CLOSE);
|
|
398
400
|
}, l = {
|
|
399
|
-
[
|
|
400
|
-
[
|
|
401
|
+
[A.OPEN]: a,
|
|
402
|
+
[A.CLOSE]: i
|
|
401
403
|
};
|
|
402
404
|
return {
|
|
403
405
|
// Values
|
|
@@ -408,15 +410,15 @@ const Xe = /* @__PURE__ */ K(Je, [["render", Qe], ["__scopeId", "data-v-6f20d431
|
|
|
408
410
|
};
|
|
409
411
|
}
|
|
410
412
|
});
|
|
411
|
-
const
|
|
412
|
-
function
|
|
413
|
+
const nt = { class: "b-dropdown-small-textbox__chevron" };
|
|
414
|
+
function lt(e, o, n, t, a, i) {
|
|
413
415
|
const l = B("chevron-up-small-icon"), r = B("chevron-down-small-icon"), d = B("dropdown-base-textbox");
|
|
414
|
-
return m(),
|
|
415
|
-
class:
|
|
416
|
+
return m(), _("div", {
|
|
417
|
+
class: ye(["b-dropdown-small-textbox", e.conditionalClasses])
|
|
416
418
|
}, [
|
|
417
419
|
M(d, I({ ...e.$attrs, ...e.$props }, { class: "b-dropdown-small-textbox__textbox" }, k(e.listeners)), {
|
|
418
|
-
icon:
|
|
419
|
-
q("div",
|
|
420
|
+
icon: $(() => [
|
|
421
|
+
q("div", nt, [
|
|
420
422
|
W(M(l, { "svg-title": "opened" }, null, 512), [
|
|
421
423
|
[ae, e.isDropdownOpen]
|
|
422
424
|
]),
|
|
@@ -429,9 +431,9 @@ function ot(e, o, n, t, a, i) {
|
|
|
429
431
|
}, 16)
|
|
430
432
|
], 2);
|
|
431
433
|
}
|
|
432
|
-
const
|
|
433
|
-
function
|
|
434
|
-
const t =
|
|
434
|
+
const at = /* @__PURE__ */ K(ot, [["render", lt], ["__scopeId", "data-v-55bc3614"]]);
|
|
435
|
+
function it(e, o, n) {
|
|
436
|
+
const t = S(e), a = S(o), i = (r, d = []) => d.flatMap((u) => u.label.toLocaleLowerCase().includes(r) ? [u, ...i(r, u.items)] : u.items ? [...i(r, u.items)] : []);
|
|
435
437
|
return fe(t, () => {
|
|
436
438
|
n !== void 0 && n(t.value);
|
|
437
439
|
}), c(() => {
|
|
@@ -441,13 +443,13 @@ function lt(e, o, n) {
|
|
|
441
443
|
return i(r, a.value);
|
|
442
444
|
});
|
|
443
445
|
}
|
|
444
|
-
const
|
|
446
|
+
const st = ({ items: e, placeholder: o, selectedValue: n }) => {
|
|
445
447
|
const t = e.value.find(({ value: a }) => a === n.value);
|
|
446
448
|
return (t == null ? void 0 : t.label) || o.value || null;
|
|
447
|
-
},
|
|
449
|
+
}, rt = ({ selectedValues: e, items: o, placeholder: n }) => e.value ? e.value.map((t) => {
|
|
448
450
|
const { label: a } = o.value.find(({ value: i }) => i === t);
|
|
449
451
|
return a;
|
|
450
|
-
}).join(", ") : n.value || null,
|
|
452
|
+
}).join(", ") : n.value || null, dt = ({ selectedValues: e, items: o, placeholder: n }) => {
|
|
451
453
|
var t;
|
|
452
454
|
return (t = e.value) != null && t.length ? o.value.reduce((a, i) => {
|
|
453
455
|
if (i.items) {
|
|
@@ -458,13 +460,13 @@ const at = ({ items: e, placeholder: o, selectedValue: n }) => {
|
|
|
458
460
|
}
|
|
459
461
|
return e.value.includes(i.value) && a.push(i.label), a;
|
|
460
462
|
}, []).join(", ") : n.value || null;
|
|
461
|
-
},
|
|
463
|
+
}, ut = ({ items: e, placeholder: o, value: n, multiple: t }) => {
|
|
462
464
|
const a = c(() => e.value.find((l) => {
|
|
463
465
|
var r;
|
|
464
466
|
return (r = l.items) == null ? void 0 : r.length;
|
|
465
467
|
}));
|
|
466
|
-
return c(() => t.value ? a.value ?
|
|
467
|
-
},
|
|
468
|
+
return c(() => t.value ? a.value ? dt({ selectedValues: n, placeholder: o, items: e }) : rt({ selectedValues: n, items: e, placeholder: o }) : st({ items: e, placeholder: o, selectedValue: n }));
|
|
469
|
+
}, ct = {
|
|
468
470
|
"en-US": {
|
|
469
471
|
optional: "optional",
|
|
470
472
|
required: "required",
|
|
@@ -472,7 +474,7 @@ const at = ({ items: e, placeholder: o, selectedValue: n }) => {
|
|
|
472
474
|
}
|
|
473
475
|
}, he = (e) => {
|
|
474
476
|
e.value.$children[0].$refs.textbox.focus();
|
|
475
|
-
},
|
|
477
|
+
}, pt = ({
|
|
476
478
|
inputContainerRef: e,
|
|
477
479
|
optionsContainerRef: o,
|
|
478
480
|
selectedValueIndex: n,
|
|
@@ -481,30 +483,30 @@ const at = ({ items: e, placeholder: o, selectedValue: n }) => {
|
|
|
481
483
|
items: i,
|
|
482
484
|
isMultiple: l
|
|
483
485
|
}, r, d, u) => {
|
|
484
|
-
const y = ({ detail:
|
|
485
|
-
|
|
486
|
+
const y = ({ detail: w }) => {
|
|
487
|
+
w.preventDefault(), t.value || (d(), D(() => {
|
|
486
488
|
l ? o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children[0].$el.focus() : o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children[n.value].$el.focus();
|
|
487
489
|
}));
|
|
488
|
-
},
|
|
489
|
-
|
|
490
|
+
}, v = ({ detail: w }) => {
|
|
491
|
+
w.preventDefault(), t.value || (d(), D(() => {
|
|
490
492
|
o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children[0].$el.focus();
|
|
491
493
|
}));
|
|
492
|
-
},
|
|
494
|
+
}, g = () => {
|
|
493
495
|
t.value || (d(), D(() => {
|
|
494
496
|
if (l) {
|
|
495
|
-
const
|
|
496
|
-
o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children[
|
|
497
|
+
const w = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children;
|
|
498
|
+
o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children[w.length - 1].$children[i.length - 1].$el.focus();
|
|
497
499
|
} else
|
|
498
500
|
o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children[i.length - 1].$el.focus();
|
|
499
501
|
}));
|
|
500
|
-
},
|
|
502
|
+
}, p = () => {
|
|
501
503
|
t.value && (u(), he(e));
|
|
502
504
|
}, b = () => {
|
|
503
505
|
t.value || d(), D(() => {
|
|
504
506
|
o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children[0].$el.focus();
|
|
505
507
|
});
|
|
506
|
-
},
|
|
507
|
-
|
|
508
|
+
}, O = ({ detail: w }) => {
|
|
509
|
+
w.preventDefault(), r(), t.value && D(() => {
|
|
508
510
|
l ? o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children[0].$el.focus() : o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children[n.value].$el.focus();
|
|
509
511
|
});
|
|
510
512
|
}, f = () => {
|
|
@@ -513,15 +515,15 @@ const at = ({ items: e, placeholder: o, selectedValue: n }) => {
|
|
|
513
515
|
});
|
|
514
516
|
};
|
|
515
517
|
return c(() => ({
|
|
516
|
-
...a.value ? {} : { [
|
|
517
|
-
[
|
|
518
|
-
[
|
|
519
|
-
[
|
|
520
|
-
[
|
|
521
|
-
[
|
|
522
|
-
[
|
|
518
|
+
...a.value ? {} : { [L.SPACE]: O },
|
|
519
|
+
[L.ENTER]: f,
|
|
520
|
+
[L.ARROW_DOWN]: y,
|
|
521
|
+
[L.ARROW_UP]: v,
|
|
522
|
+
[L.END]: g,
|
|
523
|
+
[L.ESCAPE]: p,
|
|
524
|
+
[L.HOME]: b
|
|
523
525
|
}));
|
|
524
|
-
},
|
|
526
|
+
}, ft = ({ inputContainerRef: e, isDropdownOpen: o }, n) => {
|
|
525
527
|
const t = () => {
|
|
526
528
|
o.value && n(), D(() => {
|
|
527
529
|
he(e);
|
|
@@ -533,17 +535,17 @@ const at = ({ items: e, placeholder: o, selectedValue: n }) => {
|
|
|
533
535
|
[s.TAB]: t,
|
|
534
536
|
[s.SPACE]: t
|
|
535
537
|
};
|
|
536
|
-
},
|
|
537
|
-
i18n: { messages:
|
|
538
|
+
}, mt = X({
|
|
539
|
+
i18n: { messages: ct },
|
|
538
540
|
name: "b-dropdown",
|
|
539
541
|
components: {
|
|
540
|
-
BentoDropdownOptionsContainer:
|
|
541
|
-
BentoTypography:
|
|
542
|
-
DropdownInputDefault:
|
|
543
|
-
DropdownInputSmall:
|
|
544
|
-
ErrorMessage:
|
|
542
|
+
BentoDropdownOptionsContainer: Ue,
|
|
543
|
+
BentoTypography: Ae,
|
|
544
|
+
DropdownInputDefault: ze,
|
|
545
|
+
DropdownInputSmall: at,
|
|
546
|
+
ErrorMessage: ke
|
|
545
547
|
},
|
|
546
|
-
directives: { BentoClickOutsideDirective:
|
|
548
|
+
directives: { BentoClickOutsideDirective: Ie, BentoKeyboardNavigationDirective: Re },
|
|
547
549
|
props: {
|
|
548
550
|
/**
|
|
549
551
|
* Defines a string value that labels an interactive element.
|
|
@@ -676,51 +678,51 @@ const at = ({ items: e, placeholder: o, selectedValue: n }) => {
|
|
|
676
678
|
emits: ["input", s.SHOW_MORE],
|
|
677
679
|
setup(e, { emit: o, slots: n }) {
|
|
678
680
|
var le;
|
|
679
|
-
const t =
|
|
681
|
+
const t = S(null), a = S(null), i = S(null), l = S(!1), r = P("bento-dropdown-options-container"), d = P("dropdown-label"), u = P("dropdown-description"), y = P("dropdown-error"), { isReadOnly: v } = Me(R(e, "readonly")), g = c(() => ({
|
|
680
682
|
"b-dropdown__description--error": !!e.errorMessage
|
|
681
|
-
})), p =
|
|
682
|
-
items:
|
|
683
|
-
multiple:
|
|
684
|
-
placeholder:
|
|
685
|
-
value:
|
|
686
|
-
}),
|
|
683
|
+
})), p = S(""), b = R(e, "items"), O = it(p, b, (le = e == null ? void 0 : e.search) == null ? void 0 : le.searchEvent), f = c(() => e.dynamicFiltering && !!p.value), ee = ut({
|
|
684
|
+
items: b,
|
|
685
|
+
multiple: R(e, "multiple"),
|
|
686
|
+
placeholder: R(e, "placeholder"),
|
|
687
|
+
value: R(e, "value")
|
|
688
|
+
}), w = c(
|
|
687
689
|
() => e != null && e.multiple ? e.items.filter(
|
|
688
|
-
({ value:
|
|
689
|
-
) : e.items.find(({ value:
|
|
690
|
-
),
|
|
691
|
-
const
|
|
692
|
-
return
|
|
693
|
-
}),
|
|
694
|
-
var
|
|
695
|
-
return e.multiple ? (
|
|
696
|
-
}),
|
|
690
|
+
({ value: h }) => (e == null ? void 0 : e.value) && (e == null ? void 0 : e.value).includes(h)
|
|
691
|
+
) : e.items.find(({ value: h }) => h === (e == null ? void 0 : e.value))
|
|
692
|
+
), we = c(() => {
|
|
693
|
+
const h = e.items.findIndex(({ value: De }) => e.value === De);
|
|
694
|
+
return h > 0 ? h : 0;
|
|
695
|
+
}), $e = c(() => {
|
|
696
|
+
var h;
|
|
697
|
+
return e.multiple ? (h = e == null ? void 0 : e.value) == null ? void 0 : h.length : null;
|
|
698
|
+
}), Se = c(
|
|
697
699
|
() => `${e.description ? u : ""} ${e.errorMessage ? y : ""}`.trim() || null
|
|
698
|
-
),
|
|
699
|
-
|
|
700
|
+
), Ee = () => {
|
|
701
|
+
v.value || (l.value = !0);
|
|
700
702
|
}, U = () => {
|
|
701
703
|
l.value = !1;
|
|
702
704
|
}, te = () => {
|
|
703
|
-
|
|
704
|
-
},
|
|
705
|
-
|
|
706
|
-
}, oe = (
|
|
707
|
-
e.multiple || (p.value = "", l.value = !1), o("input",
|
|
705
|
+
v.value || (l.value = !l.value, f.value && (p.value = ""));
|
|
706
|
+
}, _e = () => {
|
|
707
|
+
f.value && (p.value = ""), l.value && (l.value = !1);
|
|
708
|
+
}, oe = (h) => {
|
|
709
|
+
e.multiple || (p.value = "", l.value = !1), o("input", h);
|
|
708
710
|
}, ne = () => {
|
|
709
711
|
o(s.SHOW_MORE);
|
|
710
|
-
},
|
|
712
|
+
}, Oe = pt(
|
|
711
713
|
{
|
|
712
714
|
inputContainerRef: t,
|
|
713
715
|
optionsContainerRef: i,
|
|
714
|
-
selectedValueIndex:
|
|
716
|
+
selectedValueIndex: we,
|
|
715
717
|
isDropdownOpen: l,
|
|
716
|
-
isDynamicFltering:
|
|
718
|
+
isDynamicFltering: R(e, "dynamicFiltering"),
|
|
717
719
|
items: e.items,
|
|
718
720
|
isMultiple: e.multiple
|
|
719
721
|
},
|
|
720
722
|
te,
|
|
721
|
-
|
|
723
|
+
Ee,
|
|
722
724
|
U
|
|
723
|
-
),
|
|
725
|
+
), Le = ft(
|
|
724
726
|
{
|
|
725
727
|
inputContainerRef: t,
|
|
726
728
|
isDropdownOpen: l
|
|
@@ -730,9 +732,9 @@ const at = ({ items: e, placeholder: o, selectedValue: n }) => {
|
|
|
730
732
|
[s.CLOSE_DROPDOWN]: U,
|
|
731
733
|
[s.SELECT]: oe,
|
|
732
734
|
[s.SHOW_MORE]: ne,
|
|
733
|
-
...
|
|
735
|
+
...Le
|
|
734
736
|
};
|
|
735
|
-
return e.error &&
|
|
737
|
+
return e.error && Ne(
|
|
736
738
|
'BentoDropdown "error" property',
|
|
737
739
|
`Use the BentoDropdown "errorMessage" property instead to indicate that there is a modifier error.
|
|
738
740
|
Having the field as "undefined" will hide/remove the error.
|
|
@@ -740,48 +742,49 @@ const at = ({ items: e, placeholder: o, selectedValue: n }) => {
|
|
|
740
742
|
"2.0.0"
|
|
741
743
|
), {
|
|
742
744
|
// Values
|
|
743
|
-
additionalItemsSelected:
|
|
745
|
+
additionalItemsSelected: $e,
|
|
744
746
|
isDropdownOpen: l,
|
|
745
|
-
displayValue:
|
|
747
|
+
displayValue: ee,
|
|
746
748
|
dropdownOptionsContainerId: r,
|
|
747
|
-
filteredItems:
|
|
748
|
-
isSearching:
|
|
749
|
+
filteredItems: O,
|
|
750
|
+
isSearching: f,
|
|
751
|
+
isReadOnly: v,
|
|
749
752
|
searchTerm: p,
|
|
750
753
|
labelId: d,
|
|
751
754
|
descriptionId: u,
|
|
752
755
|
errorId: y,
|
|
753
|
-
ariaDescribedBy:
|
|
754
|
-
selectedValueItem:
|
|
756
|
+
ariaDescribedBy: Se,
|
|
757
|
+
selectedValueItem: w,
|
|
755
758
|
// Conciliation of Vue2 $scopedSlots and Vue3 $scopes.
|
|
756
759
|
// The setup method and the "useSlots" composible define
|
|
757
760
|
// { slots } as a proxy of $scopedSlots and $scopes in their
|
|
758
761
|
// respective Vue version. Source: https://github.com/vuejs/composition-api/issues/84#issuecomment-524885445
|
|
759
762
|
slots: n,
|
|
760
|
-
descriptionConditionalClasses:
|
|
763
|
+
descriptionConditionalClasses: g,
|
|
761
764
|
// Refs
|
|
762
765
|
inputContainerRef: t,
|
|
763
766
|
inputContainerRefWrapper: a,
|
|
764
767
|
optionsContainerRef: i,
|
|
765
768
|
// Events
|
|
766
|
-
closeOpenedDropdown:
|
|
769
|
+
closeOpenedDropdown: _e,
|
|
767
770
|
toggleDropdown: te,
|
|
768
771
|
onOptionSelected: oe,
|
|
769
772
|
emitShowMoreEvent: ne,
|
|
770
|
-
textboxKeyboardNavigationListeners:
|
|
773
|
+
textboxKeyboardNavigationListeners: Oe,
|
|
771
774
|
listboxListeners: Ce,
|
|
772
775
|
// Enums
|
|
773
|
-
BentoTypographyElement:
|
|
776
|
+
BentoTypographyElement: Pe,
|
|
774
777
|
BentoDropdownSize: T,
|
|
775
778
|
BentoDropdownLazyLoadType: F
|
|
776
779
|
};
|
|
777
780
|
}
|
|
778
781
|
});
|
|
779
|
-
const
|
|
780
|
-
function
|
|
781
|
-
var
|
|
782
|
+
const vt = { class: "b-dropdown" }, bt = ["id"];
|
|
783
|
+
function yt(e, o, n, t, a, i) {
|
|
784
|
+
var v;
|
|
782
785
|
const l = B("bento-typography"), r = B("bento-dropdown-options-container"), d = B("error-message"), u = ie("bento-keyboard-navigation-directive"), y = ie("bento-click-outside-directive");
|
|
783
|
-
return W((m(),
|
|
784
|
-
e.label ? (m(),
|
|
786
|
+
return W((m(), _("div", vt, [
|
|
787
|
+
e.label ? (m(), _("div", {
|
|
785
788
|
key: 0,
|
|
786
789
|
id: e.labelId,
|
|
787
790
|
class: "b-dropdown__label"
|
|
@@ -790,34 +793,34 @@ function vt(e, o, n, t, a, i) {
|
|
|
790
793
|
el: e.BentoTypographyElement.SPAN,
|
|
791
794
|
stronger: ""
|
|
792
795
|
}, {
|
|
793
|
-
default:
|
|
794
|
-
z(
|
|
796
|
+
default: $(() => [
|
|
797
|
+
z(N(e.label), 1)
|
|
795
798
|
]),
|
|
796
799
|
_: 1
|
|
797
800
|
}, 8, ["el"]),
|
|
798
|
-
e.optional ? (m(),
|
|
801
|
+
e.optional ? (m(), C(l, {
|
|
799
802
|
key: 0,
|
|
800
803
|
class: "b-dropdown__label-requirement",
|
|
801
804
|
el: e.BentoTypographyElement.SPAN
|
|
802
805
|
}, {
|
|
803
|
-
default:
|
|
804
|
-
z(" (" +
|
|
806
|
+
default: $(() => [
|
|
807
|
+
z(" (" + N(e.$t("optional")) + ") ", 1)
|
|
805
808
|
]),
|
|
806
809
|
_: 1
|
|
807
|
-
}, 8, ["el"])) :
|
|
808
|
-
e.required ? (m(),
|
|
810
|
+
}, 8, ["el"])) : E("", !0),
|
|
811
|
+
e.required ? (m(), C(l, {
|
|
809
812
|
key: 1,
|
|
810
813
|
class: "b-dropdown__label-requirement",
|
|
811
814
|
el: e.BentoTypographyElement.SPAN
|
|
812
815
|
}, {
|
|
813
|
-
default:
|
|
814
|
-
z(" (" +
|
|
816
|
+
default: $(() => [
|
|
817
|
+
z(" (" + N(e.$t("required")) + ") ", 1)
|
|
815
818
|
]),
|
|
816
819
|
_: 1
|
|
817
|
-
}, 8, ["el"])) :
|
|
818
|
-
], 8,
|
|
819
|
-
W((m(),
|
|
820
|
-
(m(),
|
|
820
|
+
}, 8, ["el"])) : E("", !0)
|
|
821
|
+
], 8, bt)) : E("", !0),
|
|
822
|
+
W((m(), _("div", I({ ref: "inputContainerRefWrapper" }, k(e.textboxKeyboardNavigationListeners, !0)), [
|
|
823
|
+
(m(), C(me(e.size), {
|
|
821
824
|
ref: "inputContainerRef",
|
|
822
825
|
value: e.searchTerm,
|
|
823
826
|
"additional-items-selected": e.additionalItemsSelected,
|
|
@@ -826,8 +829,8 @@ function vt(e, o, n, t, a, i) {
|
|
|
826
829
|
"aria-labelledby": e.label ? e.labelId : null,
|
|
827
830
|
"aria-describedby": e.ariaDescribedBy,
|
|
828
831
|
"aria-label": e.ariaLabel ? e.ariaLabel : null,
|
|
829
|
-
"aria-readonly": e.
|
|
830
|
-
readonly: e.
|
|
832
|
+
"aria-readonly": e.isReadOnly,
|
|
833
|
+
readonly: e.isReadOnly,
|
|
831
834
|
disabled: e.disabled,
|
|
832
835
|
"display-value": e.displayValue,
|
|
833
836
|
"dynamic-filtering": e.dynamicFiltering,
|
|
@@ -836,26 +839,26 @@ function vt(e, o, n, t, a, i) {
|
|
|
836
839
|
open: e.isDropdownOpen,
|
|
837
840
|
"selected-value-item": e.size === e.BentoDropdownSize.DEFAULT ? e.selectedValueItem : void 0,
|
|
838
841
|
"show-slot-content-in-multiple": e.showSlotContentInMultiple,
|
|
839
|
-
onInput: o[0] || (o[0] = (
|
|
842
|
+
onInput: o[0] || (o[0] = (g) => e.searchTerm = g),
|
|
840
843
|
onOpen: e.toggleDropdown,
|
|
841
844
|
onClose: e.toggleDropdown
|
|
842
845
|
}, x({ _: 2 }, [
|
|
843
|
-
j(e.slots, (
|
|
844
|
-
name:
|
|
845
|
-
fn:
|
|
846
|
-
J(e.$slots,
|
|
846
|
+
j(e.slots, (g, p) => ({
|
|
847
|
+
name: p,
|
|
848
|
+
fn: $((b) => [
|
|
849
|
+
J(e.$slots, p, Z(Y(b)), void 0, !0)
|
|
847
850
|
])
|
|
848
851
|
}))
|
|
849
852
|
]), 1064, ["value", "additional-items-selected", "ariaControls", "ariaExpanded", "aria-labelledby", "aria-describedby", "aria-label", "aria-readonly", "readonly", "disabled", "display-value", "dynamic-filtering", "is-invalid", "multiple", "open", "selected-value-item", "show-slot-content-in-multiple", "onOpen", "onClose"]))
|
|
850
853
|
], 16)), [
|
|
851
854
|
[u]
|
|
852
855
|
]),
|
|
853
|
-
e.inputContainerRef ? (m(),
|
|
856
|
+
e.inputContainerRef ? (m(), C(r, I({
|
|
854
857
|
key: 1,
|
|
855
858
|
id: e.dropdownOptionsContainerId,
|
|
856
859
|
ref: "optionsContainerRef",
|
|
857
860
|
"aria-label": e.ariaLabel,
|
|
858
|
-
"debounce-time": (
|
|
861
|
+
"debounce-time": (v = e.search) == null ? void 0 : v.debounceTime,
|
|
859
862
|
disabled: e.disabled,
|
|
860
863
|
"input-size": e.size,
|
|
861
864
|
"is-option-disabled": e.isOptionDisabled,
|
|
@@ -869,38 +872,38 @@ function vt(e, o, n, t, a, i) {
|
|
|
869
872
|
"has-more-items": e.hasMoreItems,
|
|
870
873
|
"lazy-load-type": e.lazyLoadType
|
|
871
874
|
}, k(e.listboxListeners)), x({ _: 2 }, [
|
|
872
|
-
j(e.slots, (
|
|
873
|
-
name:
|
|
874
|
-
fn:
|
|
875
|
-
J(e.$slots,
|
|
875
|
+
j(e.slots, (g, p) => ({
|
|
876
|
+
name: p,
|
|
877
|
+
fn: $((b) => [
|
|
878
|
+
J(e.$slots, p, Z(Y(b)), void 0, !0)
|
|
876
879
|
])
|
|
877
880
|
}))
|
|
878
|
-
]), 1040, ["id", "aria-label", "debounce-time", "disabled", "input-size", "is-option-disabled", "items", "multiple", "open", "selected-value", "searching", "target-element", "loading", "has-more-items", "lazy-load-type"])) :
|
|
879
|
-
e.errorMessage ? (m(),
|
|
881
|
+
]), 1040, ["id", "aria-label", "debounce-time", "disabled", "input-size", "is-option-disabled", "items", "multiple", "open", "selected-value", "searching", "target-element", "loading", "has-more-items", "lazy-load-type"])) : E("", !0),
|
|
882
|
+
e.errorMessage ? (m(), C(d, {
|
|
880
883
|
key: 2,
|
|
881
884
|
id: e.errorId,
|
|
882
885
|
"error-message": e.errorMessage,
|
|
883
886
|
class: "b-dropdown__error-message"
|
|
884
|
-
}, null, 8, ["id", "error-message"])) :
|
|
885
|
-
e.description ? (m(),
|
|
887
|
+
}, null, 8, ["id", "error-message"])) : E("", !0),
|
|
888
|
+
e.description ? (m(), C(l, {
|
|
886
889
|
key: 3,
|
|
887
890
|
id: e.descriptionId,
|
|
888
|
-
class:
|
|
891
|
+
class: ye(["b-dropdown__description", e.descriptionConditionalClasses]),
|
|
889
892
|
el: e.BentoTypographyElement.SPAN
|
|
890
893
|
}, {
|
|
891
|
-
default:
|
|
892
|
-
z(
|
|
894
|
+
default: $(() => [
|
|
895
|
+
z(N(e.description), 1)
|
|
893
896
|
]),
|
|
894
897
|
_: 1
|
|
895
|
-
}, 8, ["id", "class", "el"])) :
|
|
898
|
+
}, 8, ["id", "class", "el"])) : E("", !0)
|
|
896
899
|
])), [
|
|
897
900
|
[y, e.closeOpenedDropdown]
|
|
898
901
|
]);
|
|
899
902
|
}
|
|
900
|
-
const
|
|
903
|
+
const Rt = /* @__PURE__ */ K(mt, [["render", yt], ["__scopeId", "data-v-a62031bf"]]);
|
|
901
904
|
export {
|
|
902
|
-
|
|
905
|
+
Rt as B,
|
|
903
906
|
T as a,
|
|
904
|
-
|
|
907
|
+
it as u
|
|
905
908
|
};
|
|
906
|
-
//# sourceMappingURL=dropdown.
|
|
909
|
+
//# sourceMappingURL=dropdown.8b415aac.js.map
|