bitboss-ui 0.1.80 → 0.1.82
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/components/BaseButton/BaseButton.vue.d.ts +5 -2
- package/dist/components/BaseCheckbox/BaseCheckbox.vue.d.ts +3 -0
- package/dist/components/BaseCheckboxGroup/BaseCheckboxGroup.vue.d.ts +10 -2
- package/dist/components/BaseDatePicker/BaseDatePicker.vue.d.ts +3 -0
- package/dist/components/BaseDatePickerInput/BaseDatePickerInput.vue.d.ts +3 -0
- package/dist/components/BaseDialog/BaseDialog.vue.d.ts +3 -0
- package/dist/components/BaseInputContainer/BaseInputContainer.vue.d.ts +3 -0
- package/dist/components/BaseNumberInput/BaseNumberInput.vue.d.ts +4 -1
- package/dist/components/BaseRadioGroup/BaseRadioGroup.vue.d.ts +4 -1
- package/dist/components/BaseRating/BaseRating.vue.d.ts +4 -1
- package/dist/components/BaseSelect/BaseSelect.vue.d.ts +16 -2
- package/dist/components/BaseSlider/BaseSlider.vue.d.ts +3 -0
- package/dist/components/BaseSwitch/BaseSwitch.vue.d.ts +3 -0
- package/dist/components/BaseSwitchGroup/BaseSwitchGroup.vue.d.ts +3 -0
- package/dist/components/BaseTag/BaseTag.vue.d.ts +4 -1
- package/dist/components/BaseTextInput/BaseTextInput.vue.d.ts +4 -1
- package/dist/components/BaseTextarea/BaseTextarea.vue.d.ts +2 -2
- package/dist/components/BbAccordion/BbAccordion.vue.d.ts +5 -2
- package/dist/components/BbAlert/BbAlert.vue.d.ts +3 -0
- package/dist/components/BbAvatar/BbAvatar.vue.d.ts +7 -58
- package/dist/components/BbBadge/BbBadge.vue.d.ts +4 -1
- package/dist/components/BbBreadcrumbs/BbBreadcrumbs.vue.d.ts +3 -0
- package/dist/components/BbCheckbox/BbCheckbox.vue.d.ts +3 -0
- package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue.d.ts +3 -0
- package/dist/components/BbChip/BbChip.vue.d.ts +7 -1
- package/dist/components/BbCollapsible/BbCollapsible.vue.d.ts +4 -1
- package/dist/components/BbDatePickerInput/BbDatePickerInput.vue.d.ts +3 -0
- package/dist/components/BbDialog/BbDialog.vue.d.ts +3 -0
- package/dist/components/BbDropdown/BbDropdown.vue.d.ts +15 -3
- package/dist/components/BbDropdownButton/BbDropdownButton.vue.d.ts +4 -1
- package/dist/components/BbDropzone/BbDropzone.vue.d.ts +6 -7
- package/dist/components/BbIcon/BbIcon.vue.d.ts +3 -0
- package/dist/components/BbIntersection/BbIntersection.vue.d.ts +4 -1
- package/dist/components/BbNumberInput/BbNumberInput.vue.d.ts +3 -0
- package/dist/components/BbOffCanvas/BbOffCanvas.vue.d.ts +3 -0
- package/dist/components/BbPagination/BbPagination.vue.d.ts +4 -1
- package/dist/components/BbPopover/BbPopover.vue.d.ts +14 -7
- package/dist/components/BbProgress/BbProgress.vue.d.ts +3 -0
- package/dist/components/BbRadio/BbRadio.vue.d.ts +3 -0
- package/dist/components/BbRadioGroup/BbRadioGroup.vue.d.ts +1 -6
- package/dist/components/BbRating/BbRating.vue.d.ts +3 -0
- package/dist/components/BbRatio/BbRatio.vue.d.ts +4 -1
- package/dist/components/BbSelect/BbSelect.vue.d.ts +14 -3
- package/dist/components/BbSmoothHeight/BbSmoothHeight.vue.d.ts +5 -2
- package/dist/components/BbSpinner/BbSpinner.vue.d.ts +3 -0
- package/dist/components/BbSwitch/BbSwitch.vue.d.ts +3 -0
- package/dist/components/BbTab/BbTab.vue.d.ts +4 -1
- package/dist/components/BbTable/BbTable.vue.d.ts +258 -295
- package/dist/components/BbTable/types.d.ts +214 -0
- package/dist/components/BbTag/BbTag.vue.d.ts +3 -0
- package/dist/components/BbToast/BbToast.vue.d.ts +3 -0
- package/dist/components/BbToast/BbToastMessage.vue.d.ts +3 -0
- package/dist/components/BbTooltip/BbTooltip.vue.d.ts +8 -7
- package/dist/components/BbTree/BbTree.vue.d.ts +9 -1
- package/dist/composables/useItemText.d.ts +6 -1
- package/dist/index.d.ts +1 -1
- package/dist/index10.js +2 -2
- package/dist/index10.js.map +1 -1
- package/dist/index100.js +2 -2
- package/dist/index102.js +4 -3
- package/dist/index102.js.map +1 -1
- package/dist/index106.js +1 -1
- package/dist/index108.js +85 -57
- package/dist/index108.js.map +1 -1
- package/dist/index110.js +77 -55
- package/dist/index110.js.map +1 -1
- package/dist/index112.js +5 -5
- package/dist/index112.js.map +1 -1
- package/dist/index113.js +1 -1
- package/dist/index113.js.map +1 -1
- package/dist/index114.js +1 -1
- package/dist/index115.js +1 -1
- package/dist/index115.js.map +1 -1
- package/dist/index116.js +1 -1
- package/dist/index118.js +1 -1
- package/dist/index12.js +8 -8
- package/dist/index120.js +1 -1
- package/dist/index121.js +11 -11
- package/dist/index121.js.map +1 -1
- package/dist/index14.js +9 -9
- package/dist/index16.js +3 -3
- package/dist/index18.js +2 -2
- package/dist/index189.js +2 -2
- package/dist/index189.js.map +1 -1
- package/dist/index190.js +2 -4
- package/dist/index190.js.map +1 -1
- package/dist/index191.js +2 -2
- package/dist/index191.js.map +1 -1
- package/dist/index192.js +3 -2
- package/dist/index192.js.map +1 -1
- package/dist/index193.js +3 -2
- package/dist/index193.js.map +1 -1
- package/dist/index194.js +4 -3
- package/dist/index194.js.map +1 -1
- package/dist/index195.js +3 -35
- package/dist/index195.js.map +1 -1
- package/dist/index196.js +35 -6
- package/dist/index196.js.map +1 -1
- package/dist/index197.js +6 -350
- package/dist/index197.js.map +1 -1
- package/dist/index198.js +5 -134
- package/dist/index198.js.map +1 -1
- package/dist/index199.js +16 -5
- package/dist/index199.js.map +1 -1
- package/dist/index20.js +1 -1
- package/dist/index20.js.map +1 -1
- package/dist/index200.js +15 -18
- package/dist/index200.js.map +1 -1
- package/dist/index201.js +19 -2
- package/dist/index201.js.map +1 -1
- package/dist/index202.js +18 -184
- package/dist/index202.js.map +1 -1
- package/dist/index203.js +29 -23
- package/dist/index203.js.map +1 -1
- package/dist/index204.js +8 -331
- package/dist/index204.js.map +1 -1
- package/dist/index205.js +2 -2
- package/dist/index205.js.map +1 -1
- package/dist/index206.js +351 -2
- package/dist/index206.js.map +1 -1
- package/dist/index207.js +131 -13
- package/dist/index207.js.map +1 -1
- package/dist/index208.js +2 -16
- package/dist/index208.js.map +1 -1
- package/dist/index209.js +184 -18
- package/dist/index209.js.map +1 -1
- package/dist/index210.js +23 -29
- package/dist/index210.js.map +1 -1
- package/dist/index211.js +369 -8
- package/dist/index211.js.map +1 -1
- package/dist/index212.js +2 -3
- package/dist/index212.js.map +1 -1
- package/dist/index213.js +2 -3
- package/dist/index213.js.map +1 -1
- package/dist/index216.js +73 -53
- package/dist/index216.js.map +1 -1
- package/dist/index217.js +3 -3
- package/dist/index22.js +2 -2
- package/dist/index221.js +223 -10
- package/dist/index221.js.map +1 -1
- package/dist/index222.js +252 -429
- package/dist/index222.js.map +1 -1
- package/dist/index223.js +10 -8
- package/dist/index223.js.map +1 -1
- package/dist/index224.js +428 -82
- package/dist/index224.js.map +1 -1
- package/dist/index225.js +9 -8
- package/dist/index225.js.map +1 -1
- package/dist/index226.js +88 -5
- package/dist/index226.js.map +1 -1
- package/dist/index235.js +2 -69
- package/dist/index235.js.map +1 -1
- package/dist/index236.js +2 -162
- package/dist/index236.js.map +1 -1
- package/dist/index237.js +2 -2
- package/dist/index238.js +2 -2
- package/dist/index238.js.map +1 -1
- package/dist/index239.js +9 -2
- package/dist/index239.js.map +1 -1
- package/dist/index24.js +1 -1
- package/dist/index24.js.map +1 -1
- package/dist/index240.js +6 -2
- package/dist/index240.js.map +1 -1
- package/dist/index241.js +162 -2
- package/dist/index241.js.map +1 -1
- package/dist/index242.js +2 -2
- package/dist/index243.js +2 -224
- package/dist/index243.js.map +1 -1
- package/dist/index244.js +68 -257
- package/dist/index244.js.map +1 -1
- package/dist/index245.js +2 -38
- package/dist/index245.js.map +1 -1
- package/dist/index246.js +38 -2
- package/dist/index246.js.map +1 -1
- package/dist/index247.js +2 -2
- package/dist/index247.js.map +1 -1
- package/dist/index248.js +2 -2
- package/dist/index248.js.map +1 -1
- package/dist/index249.js +2 -2
- package/dist/index250.js +2 -2
- package/dist/index251.js +2 -2
- package/dist/index251.js.map +1 -1
- package/dist/index252.js +5 -0
- package/dist/index252.js.map +1 -0
- package/dist/index26.js +3 -3
- package/dist/index26.js.map +1 -1
- package/dist/index28.js +172 -155
- package/dist/index28.js.map +1 -1
- package/dist/index30.js +2 -2
- package/dist/index32.js +2 -2
- package/dist/index34.js +2 -2
- package/dist/index34.js.map +1 -1
- package/dist/index36.js +21 -19
- package/dist/index36.js.map +1 -1
- package/dist/index38.js.map +1 -1
- package/dist/index44.js +1 -1
- package/dist/index44.js.map +1 -1
- package/dist/index46.js +1 -1
- package/dist/index46.js.map +1 -1
- package/dist/index6.js.map +1 -1
- package/dist/index62.js +168 -137
- package/dist/index62.js.map +1 -1
- package/dist/index64.js +38 -30
- package/dist/index64.js.map +1 -1
- package/dist/index66.js.map +1 -1
- package/dist/index69.js +1 -1
- package/dist/index72.js +1 -1
- package/dist/index74.js.map +1 -1
- package/dist/index76.js +96 -66
- package/dist/index76.js.map +1 -1
- package/dist/index78.js +1 -1
- package/dist/index8.js +2 -2
- package/dist/index82.js +2 -2
- package/dist/index82.js.map +1 -1
- package/dist/index84.js.map +1 -1
- package/dist/index88.js +7 -4
- package/dist/index88.js.map +1 -1
- package/dist/index96.js +2 -2
- package/dist/index96.js.map +1 -1
- package/dist/index98.js +35 -30
- package/dist/index98.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/types/CommonProps.d.ts +15 -8
- package/package.json +1 -1
package/dist/index28.js
CHANGED
@@ -1,26 +1,26 @@
|
|
1
|
-
import { defineComponent as
|
2
|
-
import { autoUpdate as
|
1
|
+
import { defineComponent as Ne, ref as f, computed as g, onMounted as $e, onBeforeUnmount as De, watch as X, openBlock as b, createElementBlock as y, normalizeClass as x, renderSlot as h, createElementVNode as w, Fragment as D, renderList as j, toDisplayString as L, createBlock as se, withModifiers as B, withCtx as Le, createTextVNode as ee, createCommentVNode as oe, withDirectives as Fe, vModelDynamic as Ae, Teleport as Me, normalizeStyle as Je, createVNode as qe, mergeProps as ze, nextTick as ie } from "vue";
|
2
|
+
import { autoUpdate as Pe, computePosition as He } from "./index206.js";
|
3
3
|
import { deepEqual as re } from "./index124.js";
|
4
|
-
import { head as
|
5
|
-
import { isNotNil as
|
6
|
-
import { last as
|
7
|
-
import { useItemText as
|
8
|
-
import { useItemValue as
|
4
|
+
import { head as le } from "./index213.js";
|
5
|
+
import { isNotNil as I } from "./index123.js";
|
6
|
+
import { last as je } from "./index205.js";
|
7
|
+
import { useItemText as Qe } from "./index121.js";
|
8
|
+
import { useItemValue as Ue } from "./index122.js";
|
9
9
|
import { wait as q } from "./index119.js";
|
10
|
-
import { waitFor as
|
11
|
-
import { when as
|
12
|
-
import
|
10
|
+
import { waitFor as We } from "./index197.js";
|
11
|
+
import { when as Ke } from "./index194.js";
|
12
|
+
import Re from "./index112.js";
|
13
13
|
import "./index151.js";
|
14
|
-
import
|
14
|
+
import Ye from "./index116.js";
|
15
15
|
import "./index178.js";
|
16
|
-
import { offset as
|
17
|
-
const
|
16
|
+
import { offset as Ze, flip as Ge, shift as Xe } from "./index211.js";
|
17
|
+
const el = { class: "bb-base-select__input-container" }, ll = ["autofocus", "disabled", "id", "placeholder", "readonly", "onBlur", "onFocus", "onChange", "onInput", "onKeydown"], tl = {
|
18
18
|
key: 0,
|
19
19
|
class: "bb-base-select__loading-container"
|
20
|
-
},
|
20
|
+
}, al = {
|
21
21
|
key: 1,
|
22
22
|
class: "bb-base-select__no-data-container"
|
23
|
-
},
|
23
|
+
}, nl = ["aria-selected", "id", "onClick"], ul = { class: "bb-base-select-option__content" }, sl = { class: "bb-base-select-option__text" }, ol = { class: "bb-base-select__chevron" }, il = /* @__PURE__ */ w("svg", {
|
24
24
|
viewBox: "0 0 16 8",
|
25
25
|
fill: "none",
|
26
26
|
xmlns: "http://www.w3.org/2000/svg"
|
@@ -31,7 +31,7 @@ const Xe = { class: "bb-base-select__input-container" }, el = ["autofocus", "dis
|
|
31
31
|
d: "M0.851779 0.225802C0.90403 0.173418 0.966103 0.131858 1.03444 0.1035C1.10278 0.0751431 1.17604 0.0605469 1.25003 0.0605469C1.32402 0.0605469 1.39728 0.0751431 1.46562 0.1035C1.53396 0.131858 1.59603 0.173418 1.64828 0.225802L8.00003 6.57868L14.3518 0.225802C14.4041 0.173503 14.4662 0.132017 14.5345 0.103713C14.6028 0.0754093 14.6761 0.0608414 14.75 0.0608414C14.824 0.0608414 14.8972 0.0754093 14.9656 0.103713C15.0339 0.132017 15.096 0.173503 15.1483 0.225802C15.2006 0.278101 15.2421 0.340189 15.2704 0.408521C15.2987 0.476852 15.3132 0.55009 15.3132 0.624052C15.3132 0.698014 15.2987 0.771252 15.2704 0.839584C15.2421 0.907916 15.2006 0.970003 15.1483 1.0223L8.39828 7.7723C8.34603 7.82469 8.28395 7.86625 8.21562 7.8946C8.14728 7.92296 8.07402 7.93756 8.00003 7.93756C7.92604 7.93756 7.85278 7.92296 7.78444 7.8946C7.7161 7.86625 7.65403 7.82469 7.60178 7.7723L0.851779 1.0223C0.799395 0.970051 0.757835 0.907978 0.729477 0.83964C0.70112 0.771302 0.686523 0.69804 0.686523 0.624052C0.686523 0.550064 0.70112 0.476803 0.729477 0.408464C0.757835 0.340126 0.799395 0.278053 0.851779 0.225802Z",
|
32
32
|
fill: "currentColor"
|
33
33
|
})
|
34
|
-
], -1),
|
34
|
+
], -1), Ol = /* @__PURE__ */ Ne({
|
35
35
|
__name: "BaseSelect",
|
36
36
|
props: {
|
37
37
|
allowWriting: { type: Boolean, default: !0 },
|
@@ -45,6 +45,7 @@ const Xe = { class: "bb-base-select__input-container" }, el = ["autofocus", "dis
|
|
45
45
|
itemText: {},
|
46
46
|
itemValue: {},
|
47
47
|
loadingText: { default: "Caricamento..." },
|
48
|
+
matchStrategy: { default: "string" },
|
48
49
|
modelValueDebounceTime: { default: 0 },
|
49
50
|
multiple: { type: Boolean },
|
50
51
|
name: {},
|
@@ -61,19 +62,18 @@ const Xe = { class: "bb-base-select__input-container" }, el = ["autofocus", "dis
|
|
61
62
|
queryDebounceTime: { default: 500 },
|
62
63
|
resetQueryOnOptionSelected: { type: Boolean },
|
63
64
|
stash: { type: Boolean },
|
64
|
-
updateOnAnimationFrame: { type: Boolean, default: !1 }
|
65
|
-
matchStrategy: { default: "string" }
|
65
|
+
updateOnAnimationFrame: { type: Boolean, default: !1 }
|
66
66
|
},
|
67
67
|
emits: ["blur", "change", "click", "focus", "inactive", "input", "update:modelValue"],
|
68
68
|
setup(de, { emit: ce }) {
|
69
|
-
const l = de,
|
69
|
+
const l = de, c = ce;
|
70
70
|
if (l.multiple && !Array.isArray(l.modelValue))
|
71
71
|
throw new Error('Multiple is set to "true" but modelValue is not an array.');
|
72
|
-
const
|
73
|
-
let
|
72
|
+
const F = f(null), E = f(null), v = f(null), T = f(null), s = f(""), fe = g(() => i.value.length ? "" : l.placeholder), d = f(0), ve = l.transitionDuration / 1e3 + "s";
|
73
|
+
let te;
|
74
74
|
$e(async () => {
|
75
|
-
|
76
|
-
|
75
|
+
E.value && v.value && (te = Pe(
|
76
|
+
E.value,
|
77
77
|
v.value,
|
78
78
|
ge,
|
79
79
|
{
|
@@ -84,9 +84,9 @@ const Xe = { class: "bb-base-select__input-container" }, el = ["autofocus", "dis
|
|
84
84
|
}
|
85
85
|
));
|
86
86
|
}), De(() => {
|
87
|
-
|
87
|
+
te();
|
88
88
|
});
|
89
|
-
const
|
89
|
+
const ae = f([]), m = f([]), V = f([]), { getItemText: me } = Qe(), { getItemValue: pe } = Ue(), be = g(() => ae.value.map((e, a) => {
|
90
90
|
const t = me(e, l.itemText), n = pe(e, l.itemValue);
|
91
91
|
if (n === void 0)
|
92
92
|
throw new Error(
|
@@ -116,12 +116,12 @@ const Xe = { class: "bb-base-select__input-container" }, el = ["autofocus", "dis
|
|
116
116
|
);
|
117
117
|
return Object.values(t).map((n, u) => ({
|
118
118
|
...n,
|
119
|
-
selected:
|
119
|
+
selected: I(he.value.get(n.value)),
|
120
120
|
index: u
|
121
121
|
}));
|
122
122
|
}), k = g(() => {
|
123
123
|
let e = [];
|
124
|
-
return
|
124
|
+
return s.value && !i.value.some((a) => a.text === s.value) ? e = C.value.filter((a) => {
|
125
125
|
let t = !1;
|
126
126
|
if (l.filterBy) {
|
127
127
|
if (typeof l.filterBy == "function")
|
@@ -129,13 +129,13 @@ const Xe = { class: "bb-base-select__input-container" }, el = ["autofocus", "dis
|
|
129
129
|
else if (l.filterBy.length) {
|
130
130
|
const n = [].concat(l.filterBy);
|
131
131
|
for (let u = 0; u < n.length; u++) {
|
132
|
-
const
|
133
|
-
t = t || a.original[
|
132
|
+
const S = n[u];
|
133
|
+
t = t || a.original[S] && a.original[S].toLowerCase().includes(s.value.toLowerCase());
|
134
134
|
}
|
135
135
|
}
|
136
136
|
} else
|
137
137
|
return !0;
|
138
|
-
return t || a.text.toLowerCase().includes(
|
138
|
+
return t || a.text.toLowerCase().includes(s.value.toLowerCase());
|
139
139
|
}) : e = C.value, e.map((a, t) => ({
|
140
140
|
...a,
|
141
141
|
focused: O.value === t
|
@@ -173,13 +173,13 @@ const Xe = { class: "bb-base-select__input-container" }, el = ["autofocus", "dis
|
|
173
173
|
}), he = g(() => {
|
174
174
|
if (l.matchStrategy === "string") {
|
175
175
|
let e = {};
|
176
|
-
return [].concat(l.modelValue).
|
176
|
+
return [].concat(l.modelValue).forEach((a, t) => {
|
177
177
|
e[JSON.stringify(a)] = t;
|
178
178
|
}), {
|
179
179
|
get: (a) => e[JSON.stringify(a)]
|
180
180
|
};
|
181
181
|
} else if (l.matchStrategy === "equality") {
|
182
|
-
const e = [].concat(l.modelValue).filter(
|
182
|
+
const e = [].concat(l.modelValue).filter(I).map((a, t) => [a, t]);
|
183
183
|
return {
|
184
184
|
get: (a) => {
|
185
185
|
var t;
|
@@ -191,20 +191,20 @@ const Xe = { class: "bb-base-select__input-container" }, el = ["autofocus", "dis
|
|
191
191
|
}), i = g(() => [].concat(l.modelValue).reduce((e, a) => {
|
192
192
|
const t = p.value.get(a);
|
193
193
|
return t && e.push(t), e;
|
194
|
-
}, [])),
|
194
|
+
}, [])), A = (e) => {
|
195
195
|
let a;
|
196
196
|
r.value = e.index, l.multiple ? (e.selected ? (e.manual && (V.value = V.value.filter(
|
197
197
|
(t) => t.id !== e.id
|
198
198
|
)), a = l.modelValue.filter(
|
199
199
|
(t) => JSON.stringify(t) !== e.jsonValue
|
200
|
-
), l.stash && (m.value = m.value.filter((t) => t.id !== e.id))) : (a = l.modelValue.concat(e.value), l.stash && (m.value = m.value.concat(e))), l.resetQueryOnOptionSelected && (
|
200
|
+
), l.stash && (m.value = m.value.filter((t) => t.id !== e.id))) : (a = l.modelValue.concat(e.value), l.stash && (m.value = m.value.concat(e))), l.resetQueryOnOptionSelected && (s.value = "")) : e.selected ? (e.manual && (V.value = V.value.filter(
|
201
201
|
(t) => t.id !== e.id
|
202
|
-
)), a = null, l.stash && (m.value = []),
|
203
|
-
},
|
202
|
+
)), a = null, l.stash && (m.value = []), s.value = "") : (a = e.value, l.stash && (m.value = [e]), s.value = e.text), c("update:modelValue", a);
|
203
|
+
}, N = async ({ prefill: e = !1 }) => {
|
204
204
|
let a = [];
|
205
|
-
Array.isArray(l.items) ? a = l.items : typeof l.items == "function" && (
|
205
|
+
Array.isArray(l.items) ? a = l.items : typeof l.items == "function" && (d.value++, a = await l.items(s.value, e, l.modelValue), d.value--), ae.value = a;
|
206
206
|
}, ye = () => {
|
207
|
-
const e =
|
207
|
+
const e = s.value, a = s.value, t = JSON.stringify(a), n = {
|
208
208
|
text: e,
|
209
209
|
value: a,
|
210
210
|
jsonValue: t,
|
@@ -213,8 +213,8 @@ const Xe = { class: "bb-base-select__input-container" }, el = ["autofocus", "dis
|
|
213
213
|
manual: !0,
|
214
214
|
disabled: !1
|
215
215
|
};
|
216
|
-
V.value = V.value.concat(n),
|
217
|
-
}, P = l.prefill === !0 || !l.multiple &&
|
216
|
+
V.value = V.value.concat(n), s.value = "";
|
217
|
+
}, P = l.prefill === !0 || !l.multiple && I(l.modelValue) || l.multiple && !!l.modelValue.length;
|
218
218
|
let Q;
|
219
219
|
X(
|
220
220
|
() => l.modelValue,
|
@@ -227,7 +227,7 @@ const Xe = { class: "bb-base-select__input-container" }, el = ["autofocus", "dis
|
|
227
227
|
let t = l.modelValue.every(
|
228
228
|
(n) => p.value.get(n)
|
229
229
|
);
|
230
|
-
if ((!t || a === void 0) && (await
|
230
|
+
if ((!t || a === void 0) && (await N({ prefill: !0 }), t = l.modelValue.every(
|
231
231
|
(n) => p.value.get(n)
|
232
232
|
)), t)
|
233
233
|
l.stash && (m.value = l.modelValue.map(
|
@@ -235,19 +235,19 @@ const Xe = { class: "bb-base-select__input-container" }, el = ["autofocus", "dis
|
|
235
235
|
));
|
236
236
|
else {
|
237
237
|
let n = [];
|
238
|
-
const u = e.filter((
|
239
|
-
let
|
240
|
-
return
|
238
|
+
const u = e.filter((S) => {
|
239
|
+
let J = p.value.get(S);
|
240
|
+
return J && n.push(J), J;
|
241
241
|
});
|
242
|
-
l.stash && (m.value = n), l.enforceCoherence &&
|
242
|
+
l.stash && (m.value = n), l.enforceCoherence && c("update:modelValue", u);
|
243
243
|
}
|
244
244
|
} else {
|
245
245
|
let t = p.value.get(l.modelValue);
|
246
|
-
if (!t &&
|
247
|
-
const n =
|
248
|
-
|
246
|
+
if (!t && I(l.modelValue) || a === void 0) {
|
247
|
+
const n = s.value;
|
248
|
+
s.value = "", await N({ prefill: !0 }), s.value = n;
|
249
249
|
}
|
250
|
-
t = p.value.get(l.modelValue), t ? (
|
250
|
+
t = p.value.get(l.modelValue), t ? (s.value = t.text, l.stash && (m.value = [t])) : l.enforceCoherence && I(e) ? (s.value = "", l.stash && (m.value = []), c("update:modelValue", null)) : s.value = "";
|
251
251
|
}
|
252
252
|
},
|
253
253
|
P ? 0 : l.modelValueDebounceTime
|
@@ -260,15 +260,15 @@ const Xe = { class: "bb-base-select__input-container" }, el = ["autofocus", "dis
|
|
260
260
|
async (e, a) => {
|
261
261
|
if (typeof e == "function" || // Circumvent arrays defined in the template by the parent
|
262
262
|
JSON.stringify(e) !== JSON.stringify(a))
|
263
|
-
if (await
|
263
|
+
if (await N({ prefill: !1 }), l.multiple) {
|
264
264
|
if (!l.modelValue.every(
|
265
265
|
(n) => p.value.get(n)
|
266
266
|
) && l.enforceCoherence) {
|
267
267
|
const n = l.modelValue.filter((u) => p.value.get(u));
|
268
|
-
|
268
|
+
c("update:modelValue", n);
|
269
269
|
}
|
270
270
|
} else
|
271
|
-
!p.value.get(l.modelValue) && l.enforceCoherence &&
|
271
|
+
!p.value.get(l.modelValue) && l.enforceCoherence && I(l.modelValue) && c("update:modelValue", null), r.value = null;
|
272
272
|
}
|
273
273
|
);
|
274
274
|
let U;
|
@@ -278,18 +278,18 @@ const Xe = { class: "bb-base-select__input-container" }, el = ["autofocus", "dis
|
|
278
278
|
!P && l.prefill === "focus" && Y || JSON.stringify(e) !== JSON.stringify(a) && (U && clearTimeout(U), U = setTimeout(async () => {
|
279
279
|
if (JSON.stringify(e) !== JSON.stringify(a)) {
|
280
280
|
l.enforceCoherence && l.stash && (m.value = []);
|
281
|
-
let t =
|
282
|
-
if (
|
283
|
-
!p.value.get(l.modelValue) && l.enforceCoherence &&
|
281
|
+
let t = s.value;
|
282
|
+
if (s.value = "", await N({ prefill: !0 }), s.value = t, !l.multiple)
|
283
|
+
!p.value.get(l.modelValue) && l.enforceCoherence && I(l.modelValue) && (s.value = "", l.stash && (m.value = []), c("update:modelValue", null));
|
284
284
|
else if (!l.modelValue.every(
|
285
285
|
(u) => p.value.get(u)
|
286
286
|
) && l.enforceCoherence) {
|
287
287
|
let u = [];
|
288
|
-
const
|
289
|
-
let G = p.value.get(
|
288
|
+
const S = l.modelValue.filter((J) => {
|
289
|
+
let G = p.value.get(J);
|
290
290
|
return G && u.push(G), G;
|
291
291
|
});
|
292
|
-
l.stash && (m.value = u),
|
292
|
+
l.stash && (m.value = u), c("update:modelValue", S);
|
293
293
|
}
|
294
294
|
}
|
295
295
|
}, l.depsDebounceTime));
|
@@ -297,45 +297,45 @@ const Xe = { class: "bb-base-select__input-container" }, el = ["autofocus", "dis
|
|
297
297
|
{ deep: !0 }
|
298
298
|
);
|
299
299
|
const ge = () => {
|
300
|
-
|
300
|
+
E.value && v.value && He(E.value, v.value, {
|
301
301
|
placement: "bottom",
|
302
|
-
middleware: [
|
302
|
+
middleware: [Ze(6), Ge(), Xe()]
|
303
303
|
}).then((e) => {
|
304
304
|
var a;
|
305
|
-
v.value && (v.value.style.left = `${e.x}px`, v.value.style.top = `${e.y}px`, v.value.style.width = `${(a =
|
305
|
+
v.value && (v.value.style.left = `${e.x}px`, v.value.style.top = `${e.y}px`, v.value.style.width = `${(a = E.value) == null ? void 0 : a.offsetWidth}px`);
|
306
306
|
});
|
307
307
|
}, _ = f(!1), W = f(!1), K = f(!1), R = f(!0), $ = async () => {
|
308
308
|
R.value = !1, W.value = !0, await q(l.transitionDuration), W.value = !1, _.value = !0;
|
309
|
-
},
|
309
|
+
}, M = async () => {
|
310
310
|
_.value = !1, K.value = !0, await q(l.transitionDuration), K.value = !1, R.value = !0;
|
311
311
|
}, H = f(!1);
|
312
312
|
let Y = !0;
|
313
313
|
const we = async (e) => {
|
314
|
-
|
315
|
-
},
|
316
|
-
if (e.target instanceof Node &&
|
317
|
-
|
318
|
-
|
314
|
+
c("focus", e), H.value = !0, document.addEventListener("click", ue), document.addEventListener("focusin", ne), T.value instanceof HTMLInputElement && T.value.select(), l.prefill === "focus" && Y && !P && (await N({ prefill: !0 }), Y = !1);
|
315
|
+
}, ne = (e) => {
|
316
|
+
if (e.target instanceof Node && F.value && v.value && !F.value.contains(e.target) && !v.value.contains(e.target)) {
|
317
|
+
M(), c("inactive"), document.removeEventListener("focusin", ne), H.value = !1, l.multiple && q(500).then(() => {
|
318
|
+
s.value = "";
|
319
319
|
});
|
320
320
|
return;
|
321
321
|
}
|
322
322
|
}, Ve = async (e) => {
|
323
|
-
if (
|
323
|
+
if (c("blur", e), !l.multiple) {
|
324
324
|
let a = !1;
|
325
325
|
const t = l.modelValue;
|
326
326
|
if (await Promise.race([
|
327
327
|
q(250),
|
328
|
-
|
328
|
+
We(() => t !== l.modelValue).then(() => {
|
329
329
|
a = !0;
|
330
330
|
})
|
331
331
|
]), !a) {
|
332
332
|
const n = p.value.get(l.modelValue);
|
333
|
-
n && (
|
333
|
+
n && (s.value = n.text);
|
334
334
|
}
|
335
335
|
}
|
336
|
-
}, Ce = (e) =>
|
337
|
-
|
338
|
-
}, r = f(null), O = g(() => Number.isInteger(r.value) && r.value ? (r.value === -1 && (r.value = k.value.length - 1), r.value % k.value.length) : r.value),
|
336
|
+
}, Ce = (e) => c("change", e), ke = (e) => {
|
337
|
+
c("input", e), s.value === "" && (l.multiple || c("update:modelValue", null)), typeof l.items == "function" && Se();
|
338
|
+
}, r = f(null), O = g(() => Number.isInteger(r.value) && r.value ? (r.value === -1 && (r.value = k.value.length - 1), r.value % k.value.length) : r.value), o = f(null), _e = () => {
|
339
339
|
r.value !== null ? r.value++ : r.value = 0, ie().then(() => {
|
340
340
|
var e;
|
341
341
|
if (O.value !== null) {
|
@@ -372,60 +372,60 @@ const Xe = { class: "bb-base-select__input-container" }, el = ["autofocus", "dis
|
|
372
372
|
switch (e.key) {
|
373
373
|
case "ArrowUp":
|
374
374
|
{
|
375
|
-
if (e.preventDefault(),
|
375
|
+
if (e.preventDefault(), d.value)
|
376
376
|
return;
|
377
|
-
|
377
|
+
o.value = null, _.value ? Oe() : (i.value.length && (r.value = le(i.value).index), await $());
|
378
378
|
}
|
379
379
|
break;
|
380
380
|
case "ArrowDown":
|
381
381
|
{
|
382
|
-
if (e.preventDefault(),
|
382
|
+
if (e.preventDefault(), d.value)
|
383
383
|
return;
|
384
|
-
|
384
|
+
o.value = null, _.value ? _e() : (i.value.length && (r.value = le(i.value).index), await $());
|
385
385
|
}
|
386
386
|
break;
|
387
387
|
case "ArrowLeft":
|
388
388
|
{
|
389
|
-
if (
|
389
|
+
if (d.value)
|
390
390
|
return;
|
391
|
-
if (!
|
392
|
-
let n = i.value[
|
391
|
+
if (!s.value && i.value.length && (o.value === null ? o.value = i.value.length - 1 : o.value > 0 ? o.value-- : o.value = null, o.value !== null)) {
|
392
|
+
let n = i.value[o.value], u = (a = v.value) == null ? void 0 : a.querySelector(
|
393
393
|
`#${n.id}`
|
394
394
|
);
|
395
395
|
u && (u.scrollIntoView({
|
396
396
|
behavior: "smooth",
|
397
397
|
block: "nearest",
|
398
398
|
inline: "start"
|
399
|
-
}), r.value = z.value[i.value[
|
399
|
+
}), r.value = z.value[i.value[o.value].id].index);
|
400
400
|
}
|
401
401
|
}
|
402
402
|
break;
|
403
403
|
case "ArrowRight":
|
404
404
|
{
|
405
|
-
if (
|
405
|
+
if (d.value)
|
406
406
|
return;
|
407
|
-
if (!
|
408
|
-
let n = i.value[
|
407
|
+
if (!s.value && i.value.length && (o.value === null ? o.value = 0 : o.value < i.value.length - 1 ? o.value++ : o.value = null, o.value !== null)) {
|
408
|
+
let n = i.value[o.value], u = (t = v.value) == null ? void 0 : t.querySelector(
|
409
409
|
`#${n.id}`
|
410
410
|
);
|
411
411
|
u && (u.scrollIntoView({
|
412
412
|
behavior: "smooth",
|
413
413
|
block: "nearest",
|
414
414
|
inline: "start"
|
415
|
-
}), r.value = z.value[i.value[
|
415
|
+
}), r.value = z.value[i.value[o.value].id].index);
|
416
416
|
}
|
417
417
|
}
|
418
418
|
break;
|
419
419
|
case "Enter":
|
420
420
|
{
|
421
|
-
if (e.preventDefault(),
|
421
|
+
if (e.preventDefault(), d.value)
|
422
422
|
return;
|
423
423
|
if (!_.value)
|
424
|
-
k.value.length && i.value.length && (r.value =
|
424
|
+
k.value.length && i.value.length && (r.value = le(i.value).index), await $();
|
425
425
|
else if (O.value !== null) {
|
426
426
|
if (k.value[O.value].disabled)
|
427
427
|
return;
|
428
|
-
l.multiple || await
|
428
|
+
l.multiple || await M(), A(
|
429
429
|
k.value[O.value]
|
430
430
|
);
|
431
431
|
} else if (l.addOptions) {
|
@@ -436,36 +436,36 @@ const Xe = { class: "bb-base-select__input-container" }, el = ["autofocus", "dis
|
|
436
436
|
return;
|
437
437
|
}
|
438
438
|
ye();
|
439
|
-
const n =
|
440
|
-
|
439
|
+
const n = je(V.value);
|
440
|
+
A(z.value[n.id]);
|
441
441
|
}
|
442
442
|
}
|
443
443
|
break;
|
444
444
|
case "Tab":
|
445
445
|
case "Escape":
|
446
|
-
_.value && await
|
446
|
+
_.value && await M(), c("inactive"), o.value = null, r.value = null;
|
447
447
|
break;
|
448
448
|
case "Shift":
|
449
|
-
if (
|
449
|
+
if (d.value)
|
450
450
|
return;
|
451
451
|
break;
|
452
452
|
case "Backspace":
|
453
453
|
{
|
454
|
-
if (
|
454
|
+
if (d.value)
|
455
455
|
return;
|
456
|
-
|
457
|
-
i.value[
|
458
|
-
), i.value.length ?
|
456
|
+
s.value || i.value.length && (o.value === null ? o.value = i.value.length - 1 : (A(
|
457
|
+
i.value[o.value]
|
458
|
+
), i.value.length ? o.value = Math.max(
|
459
459
|
Math.min(
|
460
|
-
|
460
|
+
o.value,
|
461
461
|
i.value.length - 2
|
462
462
|
),
|
463
463
|
0
|
464
|
-
) :
|
464
|
+
) : o.value = null)), await $();
|
465
465
|
}
|
466
466
|
break;
|
467
467
|
default:
|
468
|
-
|
468
|
+
o.value = null, r.value = null, await $();
|
469
469
|
break;
|
470
470
|
}
|
471
471
|
};
|
@@ -473,31 +473,31 @@ const Xe = { class: "bb-base-select__input-container" }, el = ["autofocus", "dis
|
|
473
473
|
const Se = () => {
|
474
474
|
Z && clearTimeout(Z), Z = setTimeout(async () => {
|
475
475
|
try {
|
476
|
-
await
|
476
|
+
await N({ prefill: !1 });
|
477
477
|
} catch (e) {
|
478
478
|
console.error(e);
|
479
479
|
}
|
480
480
|
}, l.queryDebounceTime);
|
481
481
|
}, xe = (e) => {
|
482
|
-
|
482
|
+
c("click", e), !(l.disabled || l.readonly) && (T.value instanceof HTMLElement && T.value.focus(), $());
|
483
483
|
}, Be = (e) => {
|
484
484
|
if (e.currentTarget instanceof HTMLElement && e.currentTarget.classList.contains("bb-base-select-option")) {
|
485
485
|
const a = z.value[e.currentTarget.id];
|
486
486
|
if (a.disabled)
|
487
487
|
return;
|
488
|
-
|
488
|
+
A(a), T.value instanceof HTMLInputElement && T.value.focus(), l.multiple || M();
|
489
489
|
}
|
490
|
-
},
|
491
|
-
if (e.target instanceof Node &&
|
492
|
-
|
493
|
-
|
490
|
+
}, ue = (e) => {
|
491
|
+
if (e.target instanceof Node && F.value && !F.value.contains(e.target)) {
|
492
|
+
M(), c("inactive"), document.removeEventListener("click", ue), H.value = !1, l.multiple && q(500).then(() => {
|
493
|
+
s.value = "";
|
494
494
|
});
|
495
495
|
return;
|
496
496
|
}
|
497
|
-
}, Ie =
|
497
|
+
}, Ie = Ke(
|
498
498
|
(e) => typeof e != "string",
|
499
499
|
JSON.stringify
|
500
|
-
),
|
500
|
+
), Ee = g(() => [].concat(l.modelValue).map((e) => {
|
501
501
|
const a = Ie(e);
|
502
502
|
return {
|
503
503
|
disabled: l.disabled,
|
@@ -507,68 +507,85 @@ const Xe = { class: "bb-base-select__input-container" }, el = ["autofocus", "dis
|
|
507
507
|
};
|
508
508
|
}));
|
509
509
|
return (e, a) => (b(), y("span", {
|
510
|
-
class:
|
510
|
+
class: x({
|
511
511
|
"bb-base-select": !0,
|
512
512
|
"bb-base-select--active": H.value,
|
513
|
-
"bb-base-select--loading":
|
513
|
+
"bb-base-select--loading": d.value,
|
514
514
|
"bb-base-select--disabled": e.disabled,
|
515
515
|
"bb-base-select--errors": e.hasErrors,
|
516
516
|
"bb-base-select--readonly": e.readonly
|
517
517
|
}),
|
518
518
|
onClick: xe,
|
519
519
|
ref_key: "outerContainer",
|
520
|
-
ref:
|
520
|
+
ref: F
|
521
521
|
}, [
|
522
522
|
h(e.$slots, "prepend-outer"),
|
523
523
|
w("span", {
|
524
524
|
class: "bb-base-select__inner-container",
|
525
525
|
ref_key: "innerContainer",
|
526
|
-
ref:
|
526
|
+
ref: E
|
527
527
|
}, [
|
528
528
|
h(e.$slots, "prepend"),
|
529
|
-
w("span",
|
529
|
+
w("span", el, [
|
530
530
|
e.multiple ? (b(), y(D, { key: 0 }, [
|
531
531
|
e.comma ? (b(!0), y(D, { key: 0 }, j(i.value, (t, n) => (b(), y("span", {
|
532
|
-
class:
|
532
|
+
class: x({
|
533
533
|
"bb-base-select__selected": !0,
|
534
534
|
"bb-base-select__selected--comma": !0,
|
535
|
-
"bb-base-select__selected--focused": n ===
|
535
|
+
"bb-base-select__selected--focused": n === o.value
|
536
536
|
}),
|
537
537
|
key: t.id
|
538
|
-
},
|
539
|
-
class:
|
538
|
+
}, L(t.text) + L(n < i.value.length - 1 ? "," : ""), 3))), 128)) : (b(!0), y(D, { key: 1 }, j(i.value, (t, n) => (b(), se(Re, {
|
539
|
+
class: x({
|
540
540
|
"bb-base-select__selected": !0,
|
541
541
|
"bb-base-select__selected--chip": !0,
|
542
|
-
"bb-base-select__selected--focused": n ===
|
542
|
+
"bb-base-select__selected--focused": n === o.value
|
543
543
|
}),
|
544
544
|
clearable: !0,
|
545
545
|
key: t.id,
|
546
546
|
text: t.text,
|
547
|
-
"onClick:clear":
|
548
|
-
},
|
547
|
+
"onClick:clear": B((u) => A(t), ["stop"])
|
548
|
+
}, {
|
549
|
+
default: Le(() => [
|
550
|
+
h(e.$slots, "chip", {
|
551
|
+
disabled: t.disabled,
|
552
|
+
hasErrors: e.hasErrors,
|
553
|
+
index: t.index,
|
554
|
+
item: t.original,
|
555
|
+
loading: !!d.value,
|
556
|
+
manual: t.manual,
|
557
|
+
selected: t.selected,
|
558
|
+
text: t.text,
|
559
|
+
value: t.value
|
560
|
+
}, () => [
|
561
|
+
ee(L(t.text), 1)
|
562
|
+
])
|
563
|
+
]),
|
564
|
+
_: 2
|
565
|
+
}, 1032, ["class", "text", "onClick:clear"]))), 128))
|
549
566
|
], 64)) : oe("", !0),
|
550
|
-
|
567
|
+
Fe(w("input", {
|
551
568
|
autofocus: e.autofocus,
|
552
|
-
class:
|
569
|
+
class: x("bb-base-select__text-input"),
|
553
570
|
disabled: e.disabled,
|
554
571
|
id: e.id,
|
555
572
|
placeholder: fe.value,
|
556
573
|
readonly: e.readonly || !e.allowWriting,
|
557
574
|
type: "text",
|
558
|
-
onBlur:
|
559
|
-
onFocus:
|
560
|
-
onChange:
|
561
|
-
onInput:
|
562
|
-
onKeydown:
|
563
|
-
"onUpdate:modelValue": a[0] || (a[0] = (t) =>
|
575
|
+
onBlur: B(Ve, ["stop"]),
|
576
|
+
onFocus: B(we, ["stop"]),
|
577
|
+
onChange: B(Ce, ["stop"]),
|
578
|
+
onInput: B(ke, ["stop"]),
|
579
|
+
onKeydown: B(Te, ["stop"]),
|
580
|
+
"onUpdate:modelValue": a[0] || (a[0] = (t) => s.value = t),
|
564
581
|
ref_key: "input",
|
565
|
-
ref:
|
566
|
-
}, null, 40,
|
567
|
-
[
|
582
|
+
ref: T
|
583
|
+
}, null, 40, ll), [
|
584
|
+
[Ae, s.value]
|
568
585
|
]),
|
569
|
-
(b(),
|
586
|
+
(b(), se(Me, { to: "body" }, [
|
570
587
|
w("span", {
|
571
|
-
class:
|
588
|
+
class: x({
|
572
589
|
"bb-base-select__options-container": !0,
|
573
590
|
"bb-base-select__options-container--shown": _.value,
|
574
591
|
"bb-base-select__options-container--showing": W.value,
|
@@ -576,19 +593,19 @@ const Xe = { class: "bb-base-select__input-container" }, el = ["autofocus", "dis
|
|
576
593
|
"bb-base-select__options-container--hidden": R.value
|
577
594
|
}),
|
578
595
|
role: "listbox",
|
579
|
-
style:
|
596
|
+
style: Je({ transitionDuration: ve }),
|
580
597
|
tabindex: -1,
|
581
598
|
ref_key: "optionsContainer",
|
582
599
|
ref: v
|
583
600
|
}, [
|
584
601
|
h(e.$slots, "options:prepend"),
|
585
|
-
!k.value.length &&
|
586
|
-
h(e.$slots, "loading", { query:
|
587
|
-
|
602
|
+
!k.value.length && d.value ? (b(), y("span", tl, [
|
603
|
+
h(e.$slots, "loading", { query: s.value }, () => [
|
604
|
+
ee(L(e.loadingText), 1)
|
588
605
|
])
|
589
|
-
])) : k.value.length ? oe("", !0) : (b(), y("span",
|
590
|
-
h(e.$slots, "no-data", { query:
|
591
|
-
|
606
|
+
])) : k.value.length ? oe("", !0) : (b(), y("span", al, [
|
607
|
+
h(e.$slots, "no-data", { query: s.value }, () => [
|
608
|
+
ee(L(e.noDataText), 1)
|
592
609
|
])
|
593
610
|
])),
|
594
611
|
(b(!0), y(D, null, j(k.value, (t) => (b(), y(D, {
|
@@ -599,7 +616,7 @@ const Xe = { class: "bb-base-select__input-container" }, el = ["autofocus", "dis
|
|
599
616
|
}),
|
600
617
|
w("span", {
|
601
618
|
"aria-selected": t.selected,
|
602
|
-
class:
|
619
|
+
class: x({
|
603
620
|
"bb-base-select-option": !0,
|
604
621
|
"bb-base-select-option--selected": t.selected,
|
605
622
|
"bb-base-select-option--focused": t.focused,
|
@@ -607,7 +624,7 @@ const Xe = { class: "bb-base-select__input-container" }, el = ["autofocus", "dis
|
|
607
624
|
}),
|
608
625
|
id: t.id,
|
609
626
|
role: "option",
|
610
|
-
onClick:
|
627
|
+
onClick: B(Be, ["stop"])
|
611
628
|
}, [
|
612
629
|
h(e.$slots, "option", {
|
613
630
|
disabled: t.disabled,
|
@@ -615,17 +632,17 @@ const Xe = { class: "bb-base-select__input-container" }, el = ["autofocus", "dis
|
|
615
632
|
hasErrors: e.hasErrors,
|
616
633
|
index: t.index,
|
617
634
|
item: t.original,
|
618
|
-
loading: !!
|
635
|
+
loading: !!d.value,
|
619
636
|
manual: t.manual,
|
620
637
|
selected: t.selected,
|
621
638
|
text: t.text,
|
622
639
|
value: t.value
|
623
640
|
}, () => [
|
624
|
-
w("span",
|
625
|
-
w("span",
|
641
|
+
w("span", ul, [
|
642
|
+
w("span", sl, L(t.text), 1)
|
626
643
|
])
|
627
644
|
])
|
628
|
-
], 10,
|
645
|
+
], 10, nl),
|
629
646
|
h(e.$slots, "option:append", {
|
630
647
|
item: t.original
|
631
648
|
})
|
@@ -636,34 +653,34 @@ const Xe = { class: "bb-base-select__input-container" }, el = ["autofocus", "dis
|
|
636
653
|
]),
|
637
654
|
w("span", ol, [
|
638
655
|
h(e.$slots, "chevron", {
|
639
|
-
loading: !!
|
656
|
+
loading: !!d.value,
|
640
657
|
shown: _.value
|
641
658
|
}, () => [
|
642
|
-
|
659
|
+
il
|
643
660
|
])
|
644
661
|
]),
|
645
|
-
|
662
|
+
d.value ? (b(), y("span", {
|
646
663
|
key: 1,
|
647
|
-
class:
|
664
|
+
class: x({
|
648
665
|
"bb-base-select__spinner": !0,
|
649
|
-
"bb-base-select__spinner--loading":
|
666
|
+
"bb-base-select__spinner--loading": d.value
|
650
667
|
})
|
651
668
|
}, [
|
652
669
|
h(e.$slots, "spinner", {
|
653
|
-
loading: !!
|
670
|
+
loading: !!d.value
|
654
671
|
}, () => [
|
655
|
-
|
672
|
+
qe(Ye, { size: "sm" })
|
656
673
|
])
|
657
674
|
], 2)) : h(e.$slots, "append", { key: 0 })
|
658
675
|
], 512),
|
659
676
|
h(e.$slots, "append-outer"),
|
660
|
-
(b(!0), y(D, null, j(
|
677
|
+
(b(!0), y(D, null, j(Ee.value, (t) => (b(), y("input", ze({
|
661
678
|
key: t.value
|
662
679
|
}, t), null, 16))), 128))
|
663
680
|
], 2));
|
664
681
|
}
|
665
682
|
});
|
666
683
|
export {
|
667
|
-
|
684
|
+
Ol as default
|
668
685
|
};
|
669
686
|
//# sourceMappingURL=index28.js.map
|