@adyen/bento-vue2 1.5.0 → 1.6.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/packages/vue2/src/components/avatar-image/avatar-image.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/button/button.vue.d.ts +97 -97
- 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/card/card.vue.d.ts +7 -1
- package/dist/@types/packages/vue2/src/components/checkbox/components/checkbox-group/checkbox-group.vue.d.ts +3 -3
- package/dist/@types/packages/vue2/src/components/data-grid/composables/useCalculateColumnWidth/useCalculateColumnWidth.d.ts +6 -2
- package/dist/@types/packages/vue2/src/components/data-grid/composables/useCalculateStickyElementHeight/useCalculateStickyElementHeight.d.ts +2 -0
- package/dist/@types/packages/vue2/src/components/data-grid/composables/useColumnReorderer/useColumnReorderer.d.ts +2 -0
- package/dist/@types/packages/vue2/src/components/data-grid/composables/useConfigSettings/useConfigSettings.d.ts +3 -0
- package/dist/@types/packages/vue2/src/components/data-grid/data-grid.types.d.ts +2 -1
- package/dist/@types/packages/vue2/src/components/data-grid/data-grid.vue.d.ts +41 -4
- package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-base-textbox/dropdown-base-textbox.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-default-textbox/dropdown-default-textbox.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-options-container/dropdown-options-container.vue.d.ts +33 -34
- package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-small-textbox/dropdown-small-textbox.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-avatar/dropdown-avatar.vue.d.ts +2 -2
- package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-country/dropdown-country.vue.d.ts +2 -2
- package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-currency/dropdown-currency.vue.d.ts +2 -2
- package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-payment-method/dropdown-payment-method.vue.d.ts +2 -2
- package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-tag/dropdown-tag.vue.d.ts +3 -3
- package/dist/@types/packages/vue2/src/components/dropdown/dropdown.vue.d.ts +2 -2
- package/dist/@types/packages/vue2/src/components/filter-bar/components/all-filters-modal/all-filters-modal.vue.d.ts +20 -20
- package/dist/@types/packages/vue2/src/components/filter-bar/components/boolean-filter/boolean-filter.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/filter-bar/components/date-filter/date-filter.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/filter-bar/components/date-range-filter/date-range-filter.vue.d.ts +2 -2
- package/dist/@types/packages/vue2/src/components/filter-bar/components/input-filter/input-filter.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/filter-bar/components/range-filter/range-filter.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/select-filter.vue.d.ts +2 -1
- package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/variants/select-country-filter/select-country-filter.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/variants/select-tag-filter/select-tag-filter.vue.d.ts +2 -2
- package/dist/@types/packages/vue2/src/components/filter-bar/filter-bar.types.d.ts +7 -3
- package/dist/@types/packages/vue2/src/components/filter-bar/filter-bar.vue.d.ts +10 -1
- package/dist/@types/packages/vue2/src/components/form-layout/components/form-layout-field-tip/form-layout-field-tip.vue.d.ts +17 -1
- package/dist/@types/packages/vue2/src/components/form-layout/components/form-layout-field-tip/form-layout-tip.types.d.ts +3 -0
- package/dist/@types/packages/vue2/src/components/header/header.vue.d.ts +3 -0
- package/dist/@types/packages/vue2/src/components/info-icon/info-icon.vue.d.ts +3 -3
- package/dist/@types/packages/vue2/src/components/internal/base-button/base-button.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/internal/fixed-scroller/composables/index.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/internal/fixed-scroller/composables/useFixedScroller.d.ts +15 -0
- package/dist/@types/packages/vue2/src/components/internal/fixed-scroller/fixed-scroller.vue.d.ts +9 -0
- package/dist/@types/packages/vue2/src/components/internal/fixed-scroller/index.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/internal/index.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/internal/listbox/listbox.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/menu/components/menu-item/menu-item.vue.d.ts +4 -5
- package/dist/@types/packages/vue2/src/components/menu/menu.vue.d.ts +3 -3
- package/dist/@types/packages/vue2/src/components/modal/components/base-modal/base-modal.vue.d.ts +3 -3
- package/dist/@types/packages/vue2/src/components/modal/modal.vue.d.ts +9 -0
- package/dist/@types/packages/vue2/src/components/popover/popover.vue.d.ts +4 -4
- package/dist/@types/packages/vue2/src/components/popper-container/popper-container.vue.d.ts +4 -4
- package/dist/@types/packages/vue2/src/components/radio-group/radio-group.vue.d.ts +3 -3
- package/dist/@types/packages/vue2/src/components/status/status.vue.d.ts +2 -2
- package/dist/@types/packages/vue2/src/components/stepper/stepper.vue.d.ts +3 -3
- package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item/summary-grid-item.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item-amount/summary-grid-item-amount.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item-numeric/summary-grid-item-numeric.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item-percentage/summary-grid-item-percentage.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/tabs/components/tab.types.d.ts +2 -1
- package/dist/@types/packages/vue2/src/components/tabs/tabs.types.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/tag/tag.vue.d.ts +4 -4
- package/dist/@types/packages/vue2/src/components/textarea/textarea.vue.d.ts +18 -46
- package/dist/@types/packages/vue2/src/components/timeline/components/timeline-item/timeline-item.vue.d.ts +6 -6
- package/dist/@types/packages/vue2/src/components/tooltip/tooltip.vue.d.ts +12 -12
- package/dist/@types/packages/vue2/src/composables/use-expandable-content-height/use-expandable-content-height.d.ts +4 -0
- package/dist/@types/packages/vue2/src/templates/data-grid-template/data-grid-template.keys.d.ts +1 -0
- package/dist/@types/packages/vue2/src/templates/data-grid-template/data-grid-template.types.d.ts +6 -0
- package/dist/@types/packages/vue2/src/templates/data-grid-template/data-grid-template.vue.d.ts +121 -1
- package/dist/@types/packages/vue2/src/templates/data-grid-template/index.d.ts +1 -0
- package/dist/@types/packages/vue2/src/utils/ts/truncate.d.ts +1 -1
- package/dist/accordion.js +33 -36
- package/dist/accordion.js.map +1 -1
- package/dist/alert.js +3 -3
- package/dist/assets/base-modal.css +1 -1
- package/dist/assets/button.css +1 -1
- package/dist/assets/controls-group.css +1 -1
- package/dist/assets/dropdown.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/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 -1
- package/dist/assets/index42.css +1 -1
- package/dist/assets/index43.css +1 -1
- package/dist/assets/index44.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/loading-button.css +1 -1
- package/dist/avatar-image.js +1 -1
- package/dist/badge.js +1 -1
- package/dist/button.js +5 -5
- package/dist/card.js +84 -80
- package/dist/card.js.map +1 -1
- package/dist/checkbox.js +14 -15
- package/dist/checkbox.js.map +1 -1
- package/dist/chunks/{base-button.89e9efbd.js → base-button.431fb8cf.js} +2 -2
- package/dist/chunks/{base-button.89e9efbd.js.map → base-button.431fb8cf.js.map} +1 -1
- package/dist/chunks/{base-modal.6eaa7e53.js → base-modal.f462dac0.js} +41 -41
- package/dist/chunks/base-modal.f462dac0.js.map +1 -0
- package/dist/chunks/{button.66df5734.js → button.38099670.js} +2 -2
- package/dist/chunks/{button.66df5734.js.map → button.38099670.js.map} +1 -1
- package/dist/chunks/{calendar.44459d87.js → calendar.371e5ae2.js} +8 -7
- package/dist/chunks/{calendar.44459d87.js.map → calendar.371e5ae2.js.map} +1 -1
- package/dist/chunks/{checkbox.b69b8f22.js → checkbox.b8c2e583.js} +3 -3
- package/dist/chunks/{checkbox.b69b8f22.js.map → checkbox.b8c2e583.js.map} +1 -1
- package/dist/chunks/{controls-group.a2a2916f.js → controls-group.d75f1d37.js} +2 -2
- package/dist/chunks/{controls-group.a2a2916f.js.map → controls-group.d75f1d37.js.map} +1 -1
- package/dist/chunks/{copy.57f969d4.js → copy.8e44a660.js} +3 -3
- package/dist/chunks/{copy.57f969d4.js.map → copy.8e44a660.js.map} +1 -1
- package/dist/chunks/date-input.9186a0bf.js.map +1 -1
- package/dist/chunks/{dropdown-default-textbox.2d093874.js → dropdown-default-textbox.6135874c.js} +2 -2
- package/dist/chunks/{dropdown-default-textbox.2d093874.js.map → dropdown-default-textbox.6135874c.js.map} +1 -1
- package/dist/chunks/{dropdown.10ea8304.js → dropdown.5d22958c.js} +184 -179
- package/dist/chunks/dropdown.5d22958c.js.map +1 -0
- package/dist/chunks/{error-message.7a5db7f6.js → error-message.a04e8f9a.js} +2 -2
- package/dist/chunks/{error-message.7a5db7f6.js.map → error-message.a04e8f9a.js.map} +1 -1
- package/dist/chunks/{footer-actions.6ddac024.js → footer-actions.ee645663.js} +3 -3
- package/dist/chunks/{footer-actions.6ddac024.js.map → footer-actions.ee645663.js.map} +1 -1
- package/dist/chunks/{index.4a11da21.js → index.5d058912.js} +22 -21
- package/dist/chunks/{index.4a11da21.js.map → index.5d058912.js.map} +1 -1
- package/dist/chunks/{index.f607a3f1.js → index.64cce50b.js} +6 -6
- package/dist/chunks/{index.f607a3f1.js.map → index.64cce50b.js.map} +1 -1
- package/dist/chunks/{index.0f8690c4.js → index.74258013.js} +2 -2
- package/dist/chunks/{index.0f8690c4.js.map → index.74258013.js.map} +1 -1
- package/dist/chunks/{index.1645ffcb.js → index.74da0d41.js} +2 -2
- package/dist/chunks/{index.1645ffcb.js.map → index.74da0d41.js.map} +1 -1
- package/dist/chunks/{index.660f2f2e.js → index.98b6db0e.js} +3 -3
- package/dist/chunks/{index.660f2f2e.js.map → index.98b6db0e.js.map} +1 -1
- package/dist/chunks/index.af05ced4.js.map +1 -1
- package/dist/chunks/{index.e722eb60.js → index.fd557233.js} +2 -2
- package/dist/chunks/{index.e722eb60.js.map → index.fd557233.js.map} +1 -1
- package/dist/chunks/{listbox-option-tag.e2688e54.js → listbox-option-tag.a651fa46.js} +3 -3
- package/dist/chunks/{listbox-option-tag.e2688e54.js.map → listbox-option-tag.a651fa46.js.map} +1 -1
- package/dist/chunks/{listbox.201a8521.js → listbox.cbb27077.js} +7 -7
- package/dist/chunks/{listbox.201a8521.js.map → listbox.cbb27077.js.map} +1 -1
- package/dist/chunks/{loading-button.9d18b4f2.js → loading-button.21c48d50.js} +24 -24
- package/dist/chunks/loading-button.21c48d50.js.map +1 -0
- package/dist/chunks/on-click-outside.3e0c3e2a.js.map +1 -1
- package/dist/chunks/{tooltip.f89cb0cd.js → tooltip.ca9673ee.js} +2 -2
- package/dist/chunks/tooltip.ca9673ee.js.map +1 -0
- package/dist/chunks/use-expandable-content-height.62fc84e5.js +17 -0
- package/dist/chunks/use-expandable-content-height.62fc84e5.js.map +1 -0
- package/dist/chunks/use-has-slot.6052d56a.js.map +1 -1
- package/dist/code-snippet.js +7 -7
- package/dist/code-snippet.js.map +1 -1
- package/dist/country.js +2 -2
- package/dist/currency.js +1 -1
- package/dist/data-grid.js +707 -655
- package/dist/data-grid.js.map +1 -1
- package/dist/date-picker.js +26 -26
- package/dist/date-range-picker.js +2 -2
- package/dist/date.js +1 -1
- package/dist/divider.js +1 -1
- package/dist/dropdown.js +4 -4
- package/dist/empty-state.js +3 -3
- package/dist/filter-bar.js +727 -638
- package/dist/filter-bar.js.map +1 -1
- package/dist/focus-trap.js +1 -1
- package/dist/form-layout.js +71 -60
- package/dist/form-layout.js.map +1 -1
- package/dist/header.js +39 -36
- package/dist/header.js.map +1 -1
- package/dist/index.js +28 -28
- package/dist/info-icon.js +7 -7
- package/dist/info-icon.js.map +1 -1
- package/dist/input-field.js +71 -67
- package/dist/input-field.js.map +1 -1
- package/dist/internal.js +106 -18
- package/dist/internal.js.map +1 -1
- package/dist/link.js +29 -28
- package/dist/link.js.map +1 -1
- package/dist/loading-indicator.js +1 -1
- package/dist/menu.js +8 -6
- package/dist/menu.js.map +1 -1
- package/dist/modal.js +20 -13
- package/dist/modal.js.map +1 -1
- package/dist/pagination.js +4 -4
- package/dist/payment-method.js +2 -2
- package/dist/popover.js +3 -3
- package/dist/popper-container.js +2 -2
- package/dist/radio-group.js +4 -4
- package/dist/search-bar.js +6 -6
- package/dist/search-bar.js.map +1 -1
- package/dist/segmented-control.js +4 -4
- package/dist/sidepanel.js +28 -28
- package/dist/sidepanel.js.map +1 -1
- package/dist/status.js +2 -2
- package/dist/stepper.js +3 -3
- package/dist/structured-list.js +1 -1
- package/dist/summary-grid.js +2 -2
- package/dist/tabs.js +48 -48
- package/dist/tabs.js.map +1 -1
- package/dist/tag.js +3 -3
- package/dist/textarea.js +89 -126
- package/dist/textarea.js.map +1 -1
- package/dist/timeline.js +38 -38
- 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 +289 -222
- package/package.json +5 -3
- package/dist/@types/packages/vue2/src/components/data-grid/composables/useCalculateColumnHeadersTopPosition/useCalculateColumnHeadersTopPosition.d.ts +0 -2
- package/dist/chunks/base-modal.6eaa7e53.js.map +0 -1
- package/dist/chunks/dropdown.10ea8304.js.map +0 -1
- package/dist/chunks/loading-button.9d18b4f2.js.map +0 -1
- package/dist/chunks/tooltip.f89cb0cd.js.map +0 -1
|
@@ -1,27 +1,26 @@
|
|
|
1
|
-
import { ref as _, watch as V, computed as c, defineComponent as F, toRefs as J, nextTick as C, toRef as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { B as ue, d as ce } from "./index.1645ffcb.js";
|
|
5
|
-
import { g as R } from "./unique-id.a2a2b458.js";
|
|
1
|
+
import { ref as _, watch as V, computed as c, defineComponent as F, toRefs as J, nextTick as C, toRef as E } from "vue";
|
|
2
|
+
import { B as re, d as de } from "./index.74da0d41.js";
|
|
3
|
+
import { g as D } from "./unique-id.a2a2b458.js";
|
|
6
4
|
import { u as k } from "./i18n.155748d6.js";
|
|
7
|
-
import { u as
|
|
8
|
-
import {
|
|
9
|
-
import { B as O, a as
|
|
10
|
-
import { u as
|
|
11
|
-
import { PopperContainer as
|
|
5
|
+
import { u as ue } from "./aria-label.ac9651a5.js";
|
|
6
|
+
import { B as s, b as M, a as P } from "./listbox.cbb27077.js";
|
|
7
|
+
import { B as O, a as ce } from "./keyboard-navigation.ca47dfa8.js";
|
|
8
|
+
import { u as fe } from "./use-form-layout-loading.d03e5d48.js";
|
|
9
|
+
import { PopperContainer as A } from "../popper-container.js";
|
|
12
10
|
import { BentoPopover as U } from "../popover.js";
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
11
|
+
import { n as R } from "./_plugin-vue2_normalizer.71e2aa87.js";
|
|
12
|
+
import { D as pe, a as $, b as N, c as ve } from "./dropdown-default-textbox.6135874c.js";
|
|
13
|
+
import { E as be } from "./error-message.a04e8f9a.js";
|
|
14
|
+
import { B as _e } from "./directive.0408e565.js";
|
|
16
15
|
import "../assets/dropdown.css";
|
|
17
|
-
var
|
|
18
|
-
const
|
|
16
|
+
var L = /* @__PURE__ */ ((t) => (t.DEFAULT = "DropdownInputDefault", t.SMALL = "DropdownInputSmall", t))(L || {});
|
|
17
|
+
const me = {
|
|
19
18
|
"en-US": {
|
|
20
19
|
apply: "Apply",
|
|
21
20
|
cancel: "Cancel",
|
|
22
21
|
noOptionsMatchThisSearch: "No options match this search"
|
|
23
22
|
}
|
|
24
|
-
},
|
|
23
|
+
}, ye = (t, e, n) => {
|
|
25
24
|
const l = _(t.value), { t: a } = k();
|
|
26
25
|
V(t, () => {
|
|
27
26
|
l.value = t.value;
|
|
@@ -30,7 +29,7 @@ const ye = {
|
|
|
30
29
|
() => JSON.stringify(l.value) === JSON.stringify(t.value)
|
|
31
30
|
), r = () => {
|
|
32
31
|
n(s.SELECT, l.value), n(s.CLOSE_DROPDOWN);
|
|
33
|
-
},
|
|
32
|
+
}, u = () => {
|
|
34
33
|
l.value = t.value, n(s.CLOSE_DROPDOWN);
|
|
35
34
|
}, i = c(() => [
|
|
36
35
|
{
|
|
@@ -40,26 +39,26 @@ const ye = {
|
|
|
40
39
|
},
|
|
41
40
|
{
|
|
42
41
|
title: a("cancel"),
|
|
43
|
-
event:
|
|
42
|
+
event: u
|
|
44
43
|
}
|
|
45
|
-
]),
|
|
44
|
+
]), f = (v) => {
|
|
46
45
|
l.value = v, e.value || n(s.SELECT, v);
|
|
47
|
-
},
|
|
48
|
-
|
|
49
|
-
}, m = (v) => {
|
|
50
|
-
p(v), n(s.ENTER);
|
|
46
|
+
}, w = (v) => {
|
|
47
|
+
f(v), n(s.TAB);
|
|
51
48
|
}, x = (v) => {
|
|
52
|
-
|
|
49
|
+
f(v), n(s.ENTER);
|
|
50
|
+
}, m = (v) => {
|
|
51
|
+
f(v), n(s.SPACE);
|
|
53
52
|
}, y = () => {
|
|
54
|
-
|
|
55
|
-
},
|
|
53
|
+
u(), n(s.ESCAPE);
|
|
54
|
+
}, h = () => {
|
|
56
55
|
n(s.SHOW_MORE);
|
|
57
56
|
}, S = {
|
|
58
|
-
[s.SELECT]:
|
|
59
|
-
[s.SHOW_MORE]:
|
|
60
|
-
[s.TAB]:
|
|
61
|
-
[s.SPACE]:
|
|
62
|
-
[s.ENTER]:
|
|
57
|
+
[s.SELECT]: f,
|
|
58
|
+
[s.SHOW_MORE]: h,
|
|
59
|
+
[s.TAB]: w,
|
|
60
|
+
[s.SPACE]: m,
|
|
61
|
+
[s.ENTER]: x
|
|
63
62
|
};
|
|
64
63
|
return {
|
|
65
64
|
// Values
|
|
@@ -69,12 +68,12 @@ const ye = {
|
|
|
69
68
|
listeners: S,
|
|
70
69
|
onEscapeKey: y
|
|
71
70
|
};
|
|
72
|
-
},
|
|
73
|
-
i18n: { messages:
|
|
71
|
+
}, ge = F({
|
|
72
|
+
i18n: { messages: me },
|
|
74
73
|
name: "bento-dropdown-options-container",
|
|
75
74
|
components: {
|
|
76
75
|
BentoListbox: M,
|
|
77
|
-
PopperContainer:
|
|
76
|
+
PopperContainer: A,
|
|
78
77
|
BentoPopover: U
|
|
79
78
|
},
|
|
80
79
|
props: {
|
|
@@ -112,8 +111,8 @@ const ye = {
|
|
|
112
111
|
*/
|
|
113
112
|
inputSize: {
|
|
114
113
|
type: String,
|
|
115
|
-
default:
|
|
116
|
-
validator: (t) => Object.values(
|
|
114
|
+
default: L.DEFAULT,
|
|
115
|
+
validator: (t) => Object.values(L).includes(t)
|
|
117
116
|
},
|
|
118
117
|
/**
|
|
119
118
|
* The option elements to populate the dropdown with.
|
|
@@ -168,7 +167,7 @@ const ye = {
|
|
|
168
167
|
* Reference to the DOM element or Vue component for positioning
|
|
169
168
|
* the Dropdown container.
|
|
170
169
|
*/
|
|
171
|
-
targetElement: { type:
|
|
170
|
+
targetElement: { type: A.props.targetElement.type, required: !0 }
|
|
172
171
|
},
|
|
173
172
|
emits: [
|
|
174
173
|
s.CLOSE_DROPDOWN,
|
|
@@ -180,61 +179,67 @@ const ye = {
|
|
|
180
179
|
s.TAB
|
|
181
180
|
],
|
|
182
181
|
setup(t, { emit: e, slots: n }) {
|
|
183
|
-
|
|
182
|
+
var d;
|
|
183
|
+
const { selectedValue: l, multiple: a } = J(t), o = _(null), { t: r } = k(), u = c(() => t.open && !t.disabled), i = c(() => r("noOptionsMatchThisSearch")), f = {
|
|
184
|
+
"min-width": `${(d = t == null ? void 0 : t.targetElement) == null ? void 0 : d.clientWidth}px`,
|
|
185
|
+
"max-width": "min(500px, 95%)"
|
|
186
|
+
}, w = c(() => ({
|
|
184
187
|
"b-dropdown-options-container--single": !(t != null && t.multiple)
|
|
185
|
-
})),
|
|
186
|
-
"b-dropdown-options-container__listbox--small": t.inputSize ===
|
|
188
|
+
})), x = c(() => ({
|
|
189
|
+
"b-dropdown-options-container__listbox--small": t.inputSize === L.SMALL,
|
|
187
190
|
"b-dropdown-options-container__listbox--single": !(t != null && t.multiple)
|
|
188
|
-
})), { actions: m, internalSelectedValue:
|
|
191
|
+
})), { actions: m, internalSelectedValue: y, listeners: h, onEscapeKey: S } = ye(
|
|
189
192
|
l,
|
|
190
193
|
a,
|
|
191
194
|
e
|
|
192
|
-
), S = c(
|
|
193
|
-
() => t != null && t.multiple ? U : N
|
|
194
195
|
), v = c(
|
|
195
|
-
() =>
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
196
|
+
() => t != null && t.multiple ? U : A
|
|
197
|
+
), B = c(
|
|
198
|
+
() => t != null && t.multiple ? {
|
|
199
|
+
actionsLayout: "space-between",
|
|
200
|
+
actions: m.value,
|
|
201
|
+
divider: !0,
|
|
202
|
+
fallbackPosition: ["top-start"],
|
|
203
|
+
id: D(`dropdown-options-${t.id}`),
|
|
204
|
+
open: t.open,
|
|
205
|
+
position: "bottom-start",
|
|
206
|
+
style: {
|
|
207
|
+
width: "auto",
|
|
208
|
+
...f
|
|
209
|
+
},
|
|
210
|
+
targetElement: t.targetElement
|
|
211
|
+
} : {
|
|
212
|
+
fallbackPosition: ["top-start"],
|
|
213
|
+
offset: [0, 8],
|
|
214
|
+
position: "bottom-start",
|
|
215
|
+
style: {
|
|
216
|
+
display: u.value ? "block" : "none",
|
|
217
|
+
...f
|
|
218
|
+
},
|
|
219
|
+
targetElement: t.targetElement
|
|
215
220
|
}
|
|
216
221
|
);
|
|
217
222
|
return {
|
|
218
223
|
// Values
|
|
219
|
-
isDropdownOpen:
|
|
220
|
-
conditionalClasses:
|
|
221
|
-
conditionalListboxClasses:
|
|
224
|
+
isDropdownOpen: u,
|
|
225
|
+
conditionalClasses: w,
|
|
226
|
+
conditionalListboxClasses: x,
|
|
222
227
|
noResultsMessage: i,
|
|
223
228
|
slots: n,
|
|
224
229
|
actions: m,
|
|
225
|
-
internalSelectedValue:
|
|
230
|
+
internalSelectedValue: y,
|
|
226
231
|
// Component wrapper
|
|
227
|
-
popperContainerOrPopoverComponent:
|
|
228
|
-
popperContainerOrPopoverProps:
|
|
232
|
+
popperContainerOrPopoverComponent: v,
|
|
233
|
+
popperContainerOrPopoverProps: B,
|
|
229
234
|
// Refs
|
|
230
235
|
dropdownOptionsListboxRef: o,
|
|
231
236
|
// Events
|
|
232
|
-
onEscapeKey:
|
|
233
|
-
listeners:
|
|
237
|
+
onEscapeKey: S,
|
|
238
|
+
listeners: h
|
|
234
239
|
};
|
|
235
240
|
}
|
|
236
241
|
});
|
|
237
|
-
var
|
|
242
|
+
var xe = function() {
|
|
238
243
|
var e = this, n = e._self._c;
|
|
239
244
|
return e._self._setupProxy, n(e.popperContainerOrPopoverComponent, e._b({ tag: "component", staticClass: "b-dropdown-options-container", class: e.conditionalClasses }, "component", e.popperContainerOrPopoverProps, !1), [n("div", { on: { keydown: function(l) {
|
|
240
245
|
return !l.type.indexOf("key") && e._k(l.keyCode, "esc", 27, l.key, ["Esc", "Escape"]) ? null : e.onEscapeKey.apply(null, arguments);
|
|
@@ -243,29 +248,29 @@ var he = function() {
|
|
|
243
248
|
return [e._t(a, null, null, o)];
|
|
244
249
|
} };
|
|
245
250
|
})], null, !0) }, e.listeners))], 1)]);
|
|
246
|
-
}, we = [],
|
|
251
|
+
}, we = [], he = /* @__PURE__ */ R(
|
|
252
|
+
ge,
|
|
247
253
|
xe,
|
|
248
|
-
he,
|
|
249
254
|
we,
|
|
250
255
|
!1,
|
|
251
256
|
null,
|
|
252
|
-
"
|
|
257
|
+
"30fb14c9",
|
|
253
258
|
null,
|
|
254
259
|
null
|
|
255
260
|
);
|
|
256
|
-
const
|
|
261
|
+
const Se = he.exports;
|
|
257
262
|
let H = 0;
|
|
258
|
-
const
|
|
263
|
+
const Oe = {
|
|
259
264
|
beforeCreate() {
|
|
260
265
|
this.uuid = H.toString(), H += 1;
|
|
261
266
|
}
|
|
262
267
|
};
|
|
263
|
-
var
|
|
268
|
+
var Ce = function() {
|
|
264
269
|
var e = this, n = e._self._c;
|
|
265
270
|
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" } })]);
|
|
266
|
-
}, Le = [],
|
|
271
|
+
}, Le = [], Ee = /* @__PURE__ */ R(
|
|
272
|
+
Oe,
|
|
267
273
|
Ce,
|
|
268
|
-
Ee,
|
|
269
274
|
Le,
|
|
270
275
|
!1,
|
|
271
276
|
null,
|
|
@@ -273,29 +278,29 @@ var Ee = function() {
|
|
|
273
278
|
null,
|
|
274
279
|
null
|
|
275
280
|
);
|
|
276
|
-
const
|
|
281
|
+
const $e = Ee.exports;
|
|
277
282
|
let j = 0;
|
|
278
|
-
const
|
|
283
|
+
const De = {
|
|
279
284
|
beforeCreate() {
|
|
280
285
|
this.uuid = j.toString(), j += 1;
|
|
281
286
|
}
|
|
282
287
|
};
|
|
283
|
-
var
|
|
288
|
+
var Re = function() {
|
|
284
289
|
var e = this, n = e._self._c;
|
|
285
290
|
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" } })]);
|
|
286
|
-
},
|
|
291
|
+
}, Be = [], Ie = /* @__PURE__ */ R(
|
|
292
|
+
De,
|
|
287
293
|
Re,
|
|
288
294
|
Be,
|
|
289
|
-
Ie,
|
|
290
295
|
!1,
|
|
291
296
|
null,
|
|
292
297
|
"6f20d431",
|
|
293
298
|
null,
|
|
294
299
|
null
|
|
295
300
|
);
|
|
296
|
-
const
|
|
301
|
+
const Te = Ie.exports, Ae = F({
|
|
297
302
|
name: "dropdown-small-textbox",
|
|
298
|
-
components: { ChevronDownSmallIcon:
|
|
303
|
+
components: { ChevronDownSmallIcon: $e, ChevronUpSmallIcon: Te, DropdownBaseTextbox: pe },
|
|
299
304
|
inheritAttrs: !1,
|
|
300
305
|
props: {
|
|
301
306
|
/**
|
|
@@ -370,9 +375,9 @@ const Ae = Te.exports, Ne = F({
|
|
|
370
375
|
emits: [$.OPEN, $.CLOSE],
|
|
371
376
|
setup(t, { emit: e }) {
|
|
372
377
|
const n = c(() => ({
|
|
373
|
-
[`b-dropdown-small-textbox--${
|
|
374
|
-
[`b-dropdown-small-textbox--${
|
|
375
|
-
[`b-dropdown-small-textbox--${
|
|
378
|
+
[`b-dropdown-small-textbox--${N.DISABLED}`]: t.disabled,
|
|
379
|
+
[`b-dropdown-small-textbox--${N.READONLY}`]: t.readonly,
|
|
380
|
+
[`b-dropdown-small-textbox--${N.OPENED}`]: t.open
|
|
376
381
|
})), l = c(() => t.open && !t.disabled && !t.readonly), a = () => {
|
|
377
382
|
e($.OPEN);
|
|
378
383
|
}, o = () => {
|
|
@@ -390,43 +395,43 @@ const Ae = Te.exports, Ne = F({
|
|
|
390
395
|
};
|
|
391
396
|
}
|
|
392
397
|
});
|
|
393
|
-
var
|
|
398
|
+
var Ne = function() {
|
|
394
399
|
var e = this, n = e._self._c;
|
|
395
400
|
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() {
|
|
396
401
|
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)];
|
|
397
402
|
}, proxy: !0 }]) }, "dropdown-base-textbox", { ...e.$attrs, ...e.$props }, !1), e.listeners))], 1);
|
|
398
|
-
},
|
|
403
|
+
}, Me = [], Pe = /* @__PURE__ */ R(
|
|
404
|
+
Ae,
|
|
399
405
|
Ne,
|
|
400
406
|
Me,
|
|
401
|
-
Pe,
|
|
402
407
|
!1,
|
|
403
408
|
null,
|
|
404
409
|
"d9e6eff4",
|
|
405
410
|
null,
|
|
406
411
|
null
|
|
407
412
|
);
|
|
408
|
-
const
|
|
409
|
-
function
|
|
410
|
-
const l = _(t), a = _(e), o = (
|
|
413
|
+
const Fe = Pe.exports;
|
|
414
|
+
function ke(t, e, n) {
|
|
415
|
+
const l = _(t), a = _(e), o = (u, i = []) => i.flatMap((f) => f.label.toLocaleLowerCase().includes(u) ? [f, ...o(u, f.items)] : f.items ? [...o(u, f.items)] : []);
|
|
411
416
|
return V(l, () => {
|
|
412
417
|
n !== void 0 && n(l.value);
|
|
413
418
|
}), c(() => {
|
|
414
419
|
if (!l.value || n !== void 0)
|
|
415
420
|
return a.value;
|
|
416
|
-
const
|
|
417
|
-
return o(
|
|
421
|
+
const u = l.value.toLocaleLowerCase();
|
|
422
|
+
return o(u, a.value);
|
|
418
423
|
});
|
|
419
424
|
}
|
|
420
|
-
const
|
|
425
|
+
const Ke = ({ items: t, placeholder: e, selectedValue: n }) => {
|
|
421
426
|
const l = t.value.find(({ value: a }) => a === n.value);
|
|
422
427
|
return (l == null ? void 0 : l.label) || e.value || null;
|
|
423
|
-
},
|
|
428
|
+
}, We = ({ selectedValues: t, items: e, placeholder: n }) => {
|
|
424
429
|
var l;
|
|
425
430
|
return !t.value || ((l = t.value) == null ? void 0 : l.length) === 0 ? n.value || null : t.value.map((a) => {
|
|
426
431
|
const { label: o } = e.value.find(({ value: r }) => r === a);
|
|
427
432
|
return o;
|
|
428
433
|
}).join(", ");
|
|
429
|
-
},
|
|
434
|
+
}, ze = ({ selectedValues: t, items: e, placeholder: n }) => {
|
|
430
435
|
var l;
|
|
431
436
|
return !t.value || !((l = t.value) != null && l.length) ? n.value || null : e.value.reduce((a, o) => {
|
|
432
437
|
if (o.items) {
|
|
@@ -437,13 +442,13 @@ const We = ({ items: t, placeholder: e, selectedValue: n }) => {
|
|
|
437
442
|
}
|
|
438
443
|
return t.value.includes(o.value) && a.push(o.label), a;
|
|
439
444
|
}, []).join(", ");
|
|
440
|
-
},
|
|
445
|
+
}, qe = ({ items: t, placeholder: e, value: n, multiple: l }) => {
|
|
441
446
|
const a = c(() => t.value.find((r) => {
|
|
442
|
-
var
|
|
443
|
-
return (
|
|
447
|
+
var u;
|
|
448
|
+
return (u = r.items) == null ? void 0 : u.length;
|
|
444
449
|
}));
|
|
445
|
-
return c(() => l.value ? a.value ?
|
|
446
|
-
},
|
|
450
|
+
return c(() => l.value ? a.value ? ze({ selectedValues: n, placeholder: e, items: t }) : We({ selectedValues: n, items: t, placeholder: e }) : Ke({ items: t, placeholder: e, selectedValue: n }));
|
|
451
|
+
}, Ue = {
|
|
447
452
|
"en-US": {
|
|
448
453
|
optional: "optional",
|
|
449
454
|
required: "required",
|
|
@@ -453,7 +458,7 @@ const We = ({ items: t, placeholder: e, selectedValue: n }) => {
|
|
|
453
458
|
}, Z = (t) => {
|
|
454
459
|
var e;
|
|
455
460
|
(e = t.value.$children) == null || e[0].$refs.textbox.focus();
|
|
456
|
-
},
|
|
461
|
+
}, He = ({
|
|
457
462
|
inputContainerRef: t,
|
|
458
463
|
optionsContainerRef: e,
|
|
459
464
|
selectedValueIndex: n,
|
|
@@ -461,54 +466,54 @@ const We = ({ items: t, placeholder: e, selectedValue: n }) => {
|
|
|
461
466
|
isDynamicFltering: a,
|
|
462
467
|
items: o,
|
|
463
468
|
isMultiple: r
|
|
464
|
-
},
|
|
465
|
-
const
|
|
466
|
-
|
|
467
|
-
var
|
|
468
|
-
r ? (
|
|
469
|
+
}, u, i, f) => {
|
|
470
|
+
const w = ({ detail: d }) => {
|
|
471
|
+
d.preventDefault(), l.value || (i(), C(() => {
|
|
472
|
+
var p, g;
|
|
473
|
+
r ? (p = e.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || p[0].$el.focus() : (g = e.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || g[n.value].$el.focus();
|
|
469
474
|
}));
|
|
470
|
-
},
|
|
471
|
-
|
|
472
|
-
var
|
|
473
|
-
(
|
|
475
|
+
}, x = ({ detail: d }) => {
|
|
476
|
+
d.preventDefault(), l.value || (i(), C(() => {
|
|
477
|
+
var p;
|
|
478
|
+
(p = e.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || p[0].$el.focus();
|
|
474
479
|
}));
|
|
475
|
-
},
|
|
480
|
+
}, m = () => {
|
|
476
481
|
l.value || (i(), C(() => {
|
|
477
|
-
var
|
|
482
|
+
var d, p;
|
|
478
483
|
if (r) {
|
|
479
484
|
const g = e.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children;
|
|
480
|
-
(
|
|
485
|
+
(d = e.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || d[g.length - 1].$children[o.length - 1].$el.focus();
|
|
481
486
|
} else
|
|
482
|
-
(
|
|
487
|
+
(p = e.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || p[o.length - 1].$el.focus();
|
|
483
488
|
}));
|
|
484
489
|
}, y = () => {
|
|
485
|
-
l.value && (
|
|
486
|
-
},
|
|
490
|
+
l.value && (f(), Z(t));
|
|
491
|
+
}, h = () => {
|
|
487
492
|
l.value || i(), C(() => {
|
|
488
|
-
var
|
|
489
|
-
(
|
|
493
|
+
var d;
|
|
494
|
+
(d = e.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || d[0].$el.focus();
|
|
490
495
|
});
|
|
491
|
-
}, S = ({ detail:
|
|
492
|
-
|
|
493
|
-
var
|
|
494
|
-
r ? (
|
|
496
|
+
}, S = ({ detail: d }) => {
|
|
497
|
+
d.preventDefault(), u(), l.value && C(() => {
|
|
498
|
+
var p, g;
|
|
499
|
+
r ? (p = e.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || p[0].$el.focus() : (g = e.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || g[n.value].$el.focus();
|
|
495
500
|
});
|
|
496
501
|
}, v = () => {
|
|
497
|
-
|
|
498
|
-
var
|
|
499
|
-
r ? (
|
|
502
|
+
u(), l.value && C(() => {
|
|
503
|
+
var d, p;
|
|
504
|
+
r ? (d = e.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || d[0].$el.focus() : (p = e.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || p[n.value].$el.focus();
|
|
500
505
|
});
|
|
501
506
|
};
|
|
502
507
|
return c(() => ({
|
|
503
508
|
...a.value ? {} : { [O.SPACE]: S },
|
|
504
509
|
[O.ENTER]: v,
|
|
505
|
-
[O.ARROW_DOWN]:
|
|
506
|
-
[O.ARROW_UP]:
|
|
507
|
-
[O.END]:
|
|
510
|
+
[O.ARROW_DOWN]: w,
|
|
511
|
+
[O.ARROW_UP]: x,
|
|
512
|
+
[O.END]: m,
|
|
508
513
|
[O.ESCAPE]: y,
|
|
509
|
-
[O.HOME]:
|
|
514
|
+
[O.HOME]: h
|
|
510
515
|
}));
|
|
511
|
-
},
|
|
516
|
+
}, je = ({ inputContainerRef: t, isDropdownOpen: e }, n) => {
|
|
512
517
|
const l = () => {
|
|
513
518
|
e.value && n(), C(() => {
|
|
514
519
|
Z(t);
|
|
@@ -520,17 +525,17 @@ const We = ({ items: t, placeholder: e, selectedValue: n }) => {
|
|
|
520
525
|
[s.TAB]: l,
|
|
521
526
|
[s.SPACE]: l
|
|
522
527
|
};
|
|
523
|
-
},
|
|
524
|
-
i18n: { messages:
|
|
528
|
+
}, Ve = F({
|
|
529
|
+
i18n: { messages: Ue },
|
|
525
530
|
name: "b-dropdown",
|
|
526
531
|
components: {
|
|
527
|
-
BentoDropdownOptionsContainer:
|
|
528
|
-
BentoTypography:
|
|
529
|
-
DropdownInputDefault:
|
|
530
|
-
DropdownInputSmall:
|
|
531
|
-
ErrorMessage:
|
|
532
|
+
BentoDropdownOptionsContainer: Se,
|
|
533
|
+
BentoTypography: re,
|
|
534
|
+
DropdownInputDefault: ve,
|
|
535
|
+
DropdownInputSmall: Fe,
|
|
536
|
+
ErrorMessage: be
|
|
532
537
|
},
|
|
533
|
-
directives: { BentoClickOutsideDirective:
|
|
538
|
+
directives: { BentoClickOutsideDirective: _e, BentoKeyboardNavigationDirective: ce },
|
|
534
539
|
props: {
|
|
535
540
|
/**
|
|
536
541
|
* @deprecated from version 2.0.0. Use the aria-label attribute instead.
|
|
@@ -642,8 +647,8 @@ const We = ({ items: t, placeholder: e, selectedValue: n }) => {
|
|
|
642
647
|
*/
|
|
643
648
|
size: {
|
|
644
649
|
type: String,
|
|
645
|
-
default:
|
|
646
|
-
validator: (t) => Object.values(
|
|
650
|
+
default: L.DEFAULT,
|
|
651
|
+
validator: (t) => Object.values(L).includes(t)
|
|
647
652
|
},
|
|
648
653
|
/**
|
|
649
654
|
* The `input` value.
|
|
@@ -666,19 +671,19 @@ const We = ({ items: t, placeholder: e, selectedValue: n }) => {
|
|
|
666
671
|
emits: ["input", s.SHOW_MORE],
|
|
667
672
|
setup(t, { attrs: e, emit: n, slots: l }) {
|
|
668
673
|
var q;
|
|
669
|
-
const { t: a } = k(), o = _(null), r = _(null),
|
|
670
|
-
ariaLabel:
|
|
674
|
+
const { t: a } = k(), o = _(null), r = _(null), u = _(null), i = _(!1), f = D("bento-dropdown-options-container"), w = D("dropdown-label"), x = D("dropdown-description"), m = D("dropdown-error"), { isReadOnly: y } = fe(E(t, "readonly")), h = _(e["aria-label"]), { ariaLabel: S } = J(t), v = ue({
|
|
675
|
+
ariaLabel: h.value,
|
|
671
676
|
// TODO: take this line away when the aria-label props is removed
|
|
672
677
|
label: S,
|
|
673
678
|
defaultFallback: a("ariaLabelFallback")
|
|
674
|
-
}),
|
|
679
|
+
}), B = c(() => ({
|
|
675
680
|
"b-dropdown__description--error": !!t.errorMessage
|
|
676
|
-
})),
|
|
677
|
-
items:
|
|
678
|
-
multiple:
|
|
679
|
-
placeholder:
|
|
680
|
-
value:
|
|
681
|
-
}), G = c(() => t.size ===
|
|
681
|
+
})), d = _(""), p = E(t, "items"), g = ke(d, p, (q = t == null ? void 0 : t.search) == null ? void 0 : q.searchEvent), I = c(() => t.dynamicFiltering && !!d.value), Y = qe({
|
|
682
|
+
items: p,
|
|
683
|
+
multiple: E(t, "multiple"),
|
|
684
|
+
placeholder: E(t, "placeholder"),
|
|
685
|
+
value: E(t, "value")
|
|
686
|
+
}), G = c(() => t.size === L.DEFAULT), Q = c(
|
|
682
687
|
() => t != null && t.multiple ? t.items.filter(
|
|
683
688
|
({ value: b }) => (t == null ? void 0 : t.value) && (t == null ? void 0 : t.value).includes(b)
|
|
684
689
|
) : t.items.find(({ value: b }) => b === (t == null ? void 0 : t.value))
|
|
@@ -689,33 +694,33 @@ const We = ({ items: t, placeholder: e, selectedValue: n }) => {
|
|
|
689
694
|
var b;
|
|
690
695
|
return t.multiple ? (b = t == null ? void 0 : t.value) == null ? void 0 : b.length : null;
|
|
691
696
|
}), te = c(
|
|
692
|
-
() => `${t.description ?
|
|
697
|
+
() => `${t.description ? x : ""} ${t.errorMessage ? m : ""}`.trim() || null
|
|
693
698
|
), ne = () => {
|
|
694
699
|
y.value || (i.value = !0);
|
|
695
700
|
}, T = () => {
|
|
696
701
|
i.value = !1;
|
|
697
702
|
}, K = () => {
|
|
698
|
-
y.value || (i.value = !i.value, I.value && (
|
|
703
|
+
y.value || (i.value = !i.value, I.value && (d.value = ""));
|
|
699
704
|
}, le = () => {
|
|
700
|
-
I.value && (
|
|
705
|
+
I.value && (d.value = ""), i.value && (i.value = !1);
|
|
701
706
|
}, W = (b) => {
|
|
702
|
-
t.multiple || (
|
|
707
|
+
t.multiple || (d.value = "", i.value = !1), n("input", b);
|
|
703
708
|
}, z = () => {
|
|
704
709
|
n(s.SHOW_MORE);
|
|
705
|
-
}, oe =
|
|
710
|
+
}, oe = He(
|
|
706
711
|
{
|
|
707
712
|
inputContainerRef: o,
|
|
708
|
-
optionsContainerRef:
|
|
713
|
+
optionsContainerRef: u,
|
|
709
714
|
selectedValueIndex: X,
|
|
710
715
|
isDropdownOpen: i,
|
|
711
|
-
isDynamicFltering:
|
|
716
|
+
isDynamicFltering: E(t, "dynamicFiltering"),
|
|
712
717
|
items: t.items,
|
|
713
718
|
isMultiple: t.multiple
|
|
714
719
|
},
|
|
715
720
|
K,
|
|
716
721
|
ne,
|
|
717
722
|
T
|
|
718
|
-
), ae =
|
|
723
|
+
), ae = je(
|
|
719
724
|
{
|
|
720
725
|
inputContainerRef: o,
|
|
721
726
|
isDropdownOpen: i
|
|
@@ -727,7 +732,7 @@ const We = ({ items: t, placeholder: e, selectedValue: n }) => {
|
|
|
727
732
|
[s.SHOW_MORE]: z,
|
|
728
733
|
...ae
|
|
729
734
|
};
|
|
730
|
-
return t.error &&
|
|
735
|
+
return t.error && de(
|
|
731
736
|
'BentoDropdown "error" property',
|
|
732
737
|
`Use the BentoDropdown "errorMessage" property instead to indicate that there is a modifier error.
|
|
733
738
|
Having the field as "undefined" will hide/remove the error.
|
|
@@ -740,14 +745,14 @@ const We = ({ items: t, placeholder: e, selectedValue: n }) => {
|
|
|
740
745
|
idDefaultSize: G,
|
|
741
746
|
isDropdownOpen: i,
|
|
742
747
|
displayValue: Y,
|
|
743
|
-
dropdownOptionsContainerId:
|
|
748
|
+
dropdownOptionsContainerId: f,
|
|
744
749
|
filteredItems: g,
|
|
745
750
|
isSearching: I,
|
|
746
751
|
isReadOnly: y,
|
|
747
|
-
searchTerm:
|
|
748
|
-
labelId:
|
|
749
|
-
descriptionId:
|
|
750
|
-
errorId:
|
|
752
|
+
searchTerm: d,
|
|
753
|
+
labelId: w,
|
|
754
|
+
descriptionId: x,
|
|
755
|
+
errorId: m,
|
|
751
756
|
ariaDescribedBy: te,
|
|
752
757
|
selectedValueItem: Q,
|
|
753
758
|
// Conciliation of Vue2 $scopedSlots and Vue3 $scopes.
|
|
@@ -755,11 +760,11 @@ const We = ({ items: t, placeholder: e, selectedValue: n }) => {
|
|
|
755
760
|
// { slots } as a proxy of $scopedSlots and $scopes in their
|
|
756
761
|
// respective Vue version. Source: https://github.com/vuejs/composition-api/issues/84#issuecomment-524885445
|
|
757
762
|
slots: l,
|
|
758
|
-
descriptionConditionalClasses:
|
|
763
|
+
descriptionConditionalClasses: B,
|
|
759
764
|
// Refs
|
|
760
765
|
inputContainerRef: o,
|
|
761
766
|
inputContainerRefWrapper: r,
|
|
762
|
-
optionsContainerRef:
|
|
767
|
+
optionsContainerRef: u,
|
|
763
768
|
// Events
|
|
764
769
|
closeOpenedDropdown: le,
|
|
765
770
|
toggleDropdown: K,
|
|
@@ -770,7 +775,7 @@ const We = ({ items: t, placeholder: e, selectedValue: n }) => {
|
|
|
770
775
|
};
|
|
771
776
|
}
|
|
772
777
|
});
|
|
773
|
-
var
|
|
778
|
+
var Je = function() {
|
|
774
779
|
var l;
|
|
775
780
|
var e = this, n = e._self._c;
|
|
776
781
|
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: "span", stronger: "" } }, [e._v(e._s(e.label))]), e.optional ? n("bento-typography", { staticClass: "b-dropdown__label-requirement", attrs: { el: "span" } }, [e._v(" (" + e._s(e.$t("optional")) + ") ")]) : e._e(), e.required ? n("bento-typography", { staticClass: "b-dropdown__label-requirement", attrs: { el: "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.computedAriaLabel, "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.idDefaultSize ? e.selectedValueItem : void 0, "show-slot-content-in-multiple": e.showSlotContentInMultiple }, on: { input: function(a) {
|
|
@@ -784,20 +789,20 @@ var Ze = function() {
|
|
|
784
789
|
return [e._t(o, null, null, r)];
|
|
785
790
|
} };
|
|
786
791
|
})], 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: "span" } }, [e._v(" " + e._s(e.description) + " ")]) : e._e()], 1);
|
|
787
|
-
},
|
|
792
|
+
}, Ze = [], Ye = /* @__PURE__ */ R(
|
|
793
|
+
Ve,
|
|
788
794
|
Je,
|
|
789
795
|
Ze,
|
|
790
|
-
Ye,
|
|
791
796
|
!1,
|
|
792
797
|
null,
|
|
793
798
|
"ec4f9fd4",
|
|
794
799
|
null,
|
|
795
800
|
null
|
|
796
801
|
);
|
|
797
|
-
const
|
|
802
|
+
const ct = Ye.exports;
|
|
798
803
|
export {
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
804
|
+
ct as B,
|
|
805
|
+
L as a,
|
|
806
|
+
ke as u
|
|
802
807
|
};
|
|
803
|
-
//# sourceMappingURL=dropdown.
|
|
808
|
+
//# sourceMappingURL=dropdown.5d22958c.js.map
|