bitboss-ui 0.2.9 → 0.2.11
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 +4 -2
- package/dist/components/BaseCheckbox/BaseCheckbox.vue.d.ts +4 -2
- package/dist/components/BaseCheckboxGroup/BaseCheckboxGroup.vue.d.ts +63 -3
- package/dist/components/BaseDatePicker/BaseDatePicker.vue.d.ts +22 -2
- package/dist/components/BaseDatePickerInput/BaseDatePickerInput.vue.d.ts +27 -2
- package/dist/components/BaseDialog/BaseDialog.vue.d.ts +2 -2
- package/dist/components/BaseInputContainer/BaseInputContainer.vue.d.ts +2 -2
- package/dist/components/BaseNumberInput/BaseNumberInput.vue.d.ts +2 -2
- package/dist/components/BaseRadio/BaseRadio.vue.d.ts +4 -2
- package/dist/components/BaseRadioGroup/BaseRadioGroup.vue.d.ts +63 -3
- package/dist/components/BaseRating/BaseRating.vue.d.ts +2 -2
- package/dist/components/BaseSelect/BaseSelect.vue.d.ts +3 -3
- package/dist/components/BaseSlider/BaseSlider.vue.d.ts +2 -2
- package/dist/components/BaseSwitch/BaseSwitch.vue.d.ts +2 -2
- package/dist/components/BaseSwitchGroup/BaseSwitchGroup.vue.d.ts +63 -3
- package/dist/components/BaseTag/BaseTag.vue.d.ts +2 -2
- package/dist/components/BaseTextInput/BaseTextInput.vue.d.ts +2 -2
- package/dist/components/BaseTextarea/BaseTextarea.vue.d.ts +2 -2
- package/dist/components/BbAccordion/BbAccordion.vue.d.ts +11 -2
- package/dist/components/BbAlert/BbAlert.vue.d.ts +9 -2
- package/dist/components/BbAvatar/BbAvatar.vue.d.ts +4 -2
- package/dist/components/BbBadge/BbBadge.vue.d.ts +5 -2
- package/dist/components/BbBreadcrumbs/BbBreadcrumbs.vue.d.ts +23 -2
- package/dist/components/BbButton/BbButton.vue.d.ts +4 -2
- package/dist/components/BbCheckbox/BbCheckbox.vue.d.ts +10 -2
- package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue.d.ts +75 -3
- package/dist/components/BbChip/BbChip.vue.d.ts +4 -2
- package/dist/components/BbCollapsible/BbCollapsible.vue.d.ts +4 -2
- package/dist/components/BbConfirm/BbConfirm.vue.d.ts +1 -1
- package/dist/components/BbDatePickerInput/BbDatePickerInput.vue.d.ts +35 -2
- package/dist/components/BbDialog/BbDialog.vue.d.ts +2 -2
- package/dist/components/BbDropdown/BbDropdown.vue.d.ts +80 -2
- package/dist/components/BbDropdownButton/BbDropdownButton.vue.d.ts +92 -2
- package/dist/components/BbDropzone/BbDropzone.vue.d.ts +7 -2
- package/dist/components/BbHover/BbHover.vue.d.ts +9 -2
- package/dist/components/BbIcon/BbIcon.vue.d.ts +1 -1
- package/dist/components/BbIntersection/BbIntersection.vue.d.ts +8 -2
- package/dist/components/BbNumberInput/BbNumberInput.vue.d.ts +7 -2
- package/dist/components/BbOffCanvas/BbOffCanvas.vue.d.ts +2 -2
- package/dist/components/BbPagination/BbPagination.vue.d.ts +11 -2
- package/dist/components/BbPopover/BbPopover.vue.d.ts +21 -2
- package/dist/components/BbProgress/BbProgress.vue.d.ts +1 -1
- package/dist/components/BbRadio/BbRadio.vue.d.ts +10 -2
- package/dist/components/BbRadioGroup/BbRadioGroup.vue.d.ts +75 -3
- package/dist/components/BbRating/BbRating.vue.d.ts +7 -2
- package/dist/components/BbRatio/BbRatio.vue.d.ts +4 -2
- package/dist/components/BbSelect/BbSelect.vue.d.ts +3 -3
- package/dist/components/BbSlider/BbSlider.vue.d.ts +7 -2
- package/dist/components/BbSmoothHeight/BbSmoothHeight.vue.d.ts +2 -2
- package/dist/components/BbSpinner/BbSpinner.vue.d.ts +1 -1
- package/dist/components/BbSwitch/BbSwitch.vue.d.ts +10 -2
- package/dist/components/BbSwitchGroup/BbSwitchGroup.vue.d.ts +75 -3
- package/dist/components/BbTab/BbTab.vue.d.ts +29 -5
- package/dist/components/BbTable/BbTable.vue.d.ts +38 -2
- package/dist/components/BbTag/BbTag.vue.d.ts +2 -2
- package/dist/components/BbTextInput/BbTextInput.vue.d.ts +7 -2
- package/dist/components/BbTextarea/BbTextarea.vue.d.ts +7 -2
- package/dist/components/BbToast/BbToast.vue.d.ts +1 -1
- package/dist/components/BbToast/BbToastMessage.vue.d.ts +1 -1
- package/dist/components/BbTooltip/BbTooltip.vue.d.ts +2 -2
- package/dist/components/BbTree/BbTree.vue.d.ts +2 -2
- package/dist/index101.js +3 -3
- package/dist/index103.js +2 -2
- package/dist/index109.js +1 -1
- package/dist/index11.js +2 -2
- package/dist/index111.js +5 -6
- package/dist/index111.js.map +1 -1
- package/dist/index113.js +1 -1
- package/dist/index115.js +7 -7
- package/dist/index115.js.map +1 -1
- package/dist/index116.js +1 -1
- package/dist/index117.js +1 -1
- package/dist/index118.js +1 -1
- package/dist/index119.js +1 -1
- package/dist/index121.js +1 -1
- package/dist/index125.js +1 -1
- package/dist/index126.js +1 -1
- package/dist/index128.js +2 -2
- package/dist/index128.js.map +1 -1
- package/dist/index15.js +8 -8
- package/dist/index17.js +25 -25
- package/dist/index19.js +3 -3
- package/dist/index195.js +2 -2
- package/dist/index195.js.map +1 -1
- package/dist/index196.js +2 -4
- package/dist/index196.js.map +1 -1
- package/dist/index197.js +2 -2
- package/dist/index197.js.map +1 -1
- package/dist/index198.js +2 -5
- package/dist/index198.js.map +1 -1
- package/dist/index199.js +5 -16
- package/dist/index199.js.map +1 -1
- package/dist/index200.js +10 -10
- package/dist/index200.js.map +1 -1
- package/dist/index201.js +15 -18
- package/dist/index201.js.map +1 -1
- package/dist/index202.js +18 -19
- package/dist/index202.js.map +1 -1
- package/dist/index203.js +15 -24
- package/dist/index203.js.map +1 -1
- package/dist/index204.js +29 -8
- package/dist/index204.js.map +1 -1
- package/dist/index205.js +8 -2
- package/dist/index205.js.map +1 -1
- package/dist/index206.js +2 -351
- package/dist/index206.js.map +1 -1
- package/dist/index207.js +4 -2
- package/dist/index207.js.map +1 -1
- package/dist/index208.js +378 -6
- package/dist/index208.js.map +1 -1
- package/dist/index209.js +126 -361
- package/dist/index209.js.map +1 -1
- package/dist/index21.js +2 -2
- package/dist/index210.js +174 -3
- package/dist/index210.js.map +1 -1
- package/dist/index211.js +23 -35
- package/dist/index211.js.map +1 -1
- package/dist/index212.js +371 -8
- package/dist/index212.js.map +1 -1
- package/dist/index213.js +3 -134
- package/dist/index213.js.map +1 -1
- package/dist/index214.js +3 -2
- package/dist/index214.js.map +1 -1
- package/dist/index215.js +3 -186
- package/dist/index215.js.map +1 -1
- package/dist/index216.js +35 -23
- package/dist/index216.js.map +1 -1
- package/dist/index217.js +6 -2
- package/dist/index217.js.map +1 -1
- package/dist/index218.js +2 -235
- package/dist/index218.js.map +1 -1
- package/dist/index219.js +10 -3
- package/dist/index219.js.map +1 -1
- package/dist/index220.js +235 -3
- package/dist/index220.js.map +1 -1
- package/dist/index222.js +67 -62
- package/dist/index222.js.map +1 -1
- package/dist/index223.js +1 -1
- package/dist/index225.js +1 -1
- package/dist/index226.js +295 -4
- package/dist/index226.js.map +1 -1
- package/dist/index227.js +5 -294
- package/dist/index227.js.map +1 -1
- package/dist/index228.js +2 -6
- package/dist/index228.js.map +1 -1
- package/dist/index229.js +2 -2
- package/dist/index23.js +2 -2
- package/dist/index23.js.map +1 -1
- package/dist/index234.js +4 -2
- package/dist/index234.js.map +1 -1
- package/dist/index235.js +2 -117
- package/dist/index235.js.map +1 -1
- package/dist/index236.js +111 -100
- package/dist/index236.js.map +1 -1
- package/dist/index237.js +105 -68
- package/dist/index237.js.map +1 -1
- package/dist/index238.js +224 -2
- package/dist/index238.js.map +1 -1
- package/dist/index239.js +258 -2
- package/dist/index239.js.map +1 -1
- package/dist/index240.js +426 -153
- package/dist/index240.js.map +1 -1
- package/dist/index241.js +89 -2
- package/dist/index241.js.map +1 -1
- package/dist/index242.js +67 -433
- package/dist/index242.js.map +1 -1
- package/dist/index243.js +161 -88
- package/dist/index243.js.map +1 -1
- package/dist/index244.js +2 -200
- package/dist/index244.js.map +1 -1
- package/dist/index245.js +2 -2
- package/dist/index245.js.map +1 -1
- package/dist/index246.js +2 -224
- package/dist/index246.js.map +1 -1
- package/dist/index247.js +200 -258
- package/dist/index247.js.map +1 -1
- package/dist/index25.js +2 -2
- package/dist/index251.js +1 -1
- package/dist/index252.js +1 -1
- package/dist/index253.js +2 -2
- package/dist/index29.js +3 -3
- package/dist/index31.js +52 -52
- package/dist/index31.js.map +1 -1
- package/dist/index33.js +2 -2
- package/dist/index35.js +2 -2
- package/dist/index43.js +5 -5
- package/dist/index43.js.map +1 -1
- package/dist/index47.js +1 -1
- package/dist/index49.js +1 -1
- package/dist/index65.js +5 -5
- package/dist/index69.js +30 -30
- package/dist/index69.js.map +1 -1
- package/dist/index72.js +1 -1
- package/dist/index75.js +1 -1
- package/dist/index79.js +5 -5
- package/dist/index8.js +56 -56
- package/dist/index8.js.map +1 -1
- package/dist/index81.js +1 -1
- package/dist/style.css +1 -1
- package/dist/utilities/functions/cloneDeep.d.ts +1 -1
- package/package.json +2 -2
package/dist/index25.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as g, computed as n, ref as _, openBlock as w, createElementBlock as B, normalizeClass as C, createElementVNode as l, normalizeProps as t, guardReactiveProps as u, renderSlot as V } from "vue";
|
|
2
|
-
import { isCssColor as i } from "./
|
|
3
|
-
import { when as E } from "./
|
|
2
|
+
import { isCssColor as i } from "./index198.js";
|
|
3
|
+
import { when as E } from "./index207.js";
|
|
4
4
|
const N = {
|
|
5
5
|
class: "bb-base-radio-container",
|
|
6
6
|
"aria-hidden": "true"
|
package/dist/index251.js
CHANGED
package/dist/index252.js
CHANGED
package/dist/index253.js
CHANGED
package/dist/index29.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as C, ref as b, computed as f, openBlock as l, createElementBlock as i, mergeProps as g, createElementVNode as r, Fragment as I, renderList as V, normalizeClass as B, toDisplayString as h, renderSlot as x } from "vue";
|
|
2
|
-
import { booleanishToBoolean as M } from "./
|
|
3
|
-
import { identity as F } from "./
|
|
4
|
-
import { isCssColor as p } from "./
|
|
2
|
+
import { booleanishToBoolean as M } from "./index196.js";
|
|
3
|
+
import { identity as F } from "./index197.js";
|
|
4
|
+
import { isCssColor as p } from "./index198.js";
|
|
5
5
|
import { isNotNil as T } from "./index124.js";
|
|
6
6
|
const H = { class: "bb-base-rating__inner-container" }, D = { class: "bb-base-rating__label-text" }, N = ["autofocus", "checked", "disabled", "id", "name", "value"], j = ["width", "height"], A = /* @__PURE__ */ r("path", {
|
|
7
7
|
"stroke-linecap": "round",
|
package/dist/index31.js
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
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
|
|
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 ie, withDirectives as Fe, vModelDynamic as Ae, Teleport as Me, normalizeStyle as Je, createVNode as qe, mergeProps as ze, nextTick as oe } from "vue";
|
|
2
2
|
import Pe from "./index115.js";
|
|
3
3
|
import "./index157.js";
|
|
4
4
|
import He from "./index119.js";
|
|
5
5
|
import "./index184.js";
|
|
6
|
-
import { autoUpdate as je, computePosition as Qe } from "./
|
|
6
|
+
import { autoUpdate as je, computePosition as Qe, flip as Ue, shift as We } from "./index208.js";
|
|
7
7
|
import { deepEqual as re } from "./index123.js";
|
|
8
|
-
import { head as le } from "./
|
|
8
|
+
import { head as le } from "./index218.js";
|
|
9
9
|
import { isNotNil as I } from "./index124.js";
|
|
10
|
-
import { last as
|
|
11
|
-
import { useItemText as
|
|
12
|
-
import { useItemValue as
|
|
10
|
+
import { last as Re } from "./index206.js";
|
|
11
|
+
import { useItemText as Ke } from "./index125.js";
|
|
12
|
+
import { useItemValue as Ye } from "./index126.js";
|
|
13
13
|
import { wait as q } from "./index122.js";
|
|
14
|
-
import { waitFor as
|
|
15
|
-
import { when as
|
|
16
|
-
import { offset as
|
|
17
|
-
const el = { class: "bb-base-select__input-container" }, ll = ["autofocus", "disabled", "id", "placeholder", "readonly"
|
|
14
|
+
import { waitFor as Ze } from "./index217.js";
|
|
15
|
+
import { when as Ge } from "./index207.js";
|
|
16
|
+
import { offset as Xe } from "./index212.js";
|
|
17
|
+
const el = { class: "bb-base-select__input-container" }, ll = ["autofocus", "disabled", "id", "placeholder", "readonly"], 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
|
-
}, nl = ["aria-selected", "id"
|
|
23
|
+
}, nl = ["aria-selected", "id"], ul = { class: "bb-base-select-option__content" }, sl = { class: "bb-base-select-option__text" }, il = { class: "bb-base-select__chevron" }, ol = /* @__PURE__ */ w("svg", {
|
|
24
24
|
viewBox: "0 0 16 8",
|
|
25
25
|
fill: "none",
|
|
26
26
|
xmlns: "http://www.w3.org/2000/svg"
|
|
@@ -69,7 +69,7 @@ const el = { class: "bb-base-select__input-container" }, ll = ["autofocus", "dis
|
|
|
69
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 F = f(null), E = f(null), v = f(null), T = f(null), s = f(""), fe = g(() =>
|
|
72
|
+
const F = f(null), E = f(null), v = f(null), T = f(null), s = f(""), fe = g(() => o.value.length ? "" : l.placeholder), d = f(0), ve = l.transitionDuration / 1e3 + "s";
|
|
73
73
|
let te;
|
|
74
74
|
$e(async () => {
|
|
75
75
|
E.value && v.value && (te = je(
|
|
@@ -86,7 +86,7 @@ const el = { class: "bb-base-select__input-container" }, ll = ["autofocus", "dis
|
|
|
86
86
|
}), De(() => {
|
|
87
87
|
te();
|
|
88
88
|
});
|
|
89
|
-
const ae = f([]), m = f([]), V = f([]), { getItemText: me } =
|
|
89
|
+
const ae = f([]), m = f([]), V = f([]), { getItemText: me } = Ke(), { getItemValue: pe } = Ye(), 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(
|
|
@@ -123,7 +123,7 @@ const el = { class: "bb-base-select__input-container" }, ll = ["autofocus", "dis
|
|
|
123
123
|
);
|
|
124
124
|
}), k = g(() => {
|
|
125
125
|
let e = [];
|
|
126
|
-
return s.value && !
|
|
126
|
+
return s.value && !o.value.some(
|
|
127
127
|
(a) => a.text === s.value
|
|
128
128
|
) ? e = C.value.filter((a) => {
|
|
129
129
|
let t = !1;
|
|
@@ -192,7 +192,7 @@ const el = { class: "bb-base-select__input-container" }, ll = ["autofocus", "dis
|
|
|
192
192
|
};
|
|
193
193
|
} else
|
|
194
194
|
throw new Error("No match strategy has been defined");
|
|
195
|
-
}),
|
|
195
|
+
}), o = g(() => [].concat(l.modelValue).reduce((e, a) => {
|
|
196
196
|
const t = p.value.get(a);
|
|
197
197
|
return t && e.push(t), e;
|
|
198
198
|
}, [])), A = (e) => {
|
|
@@ -303,15 +303,15 @@ const el = { class: "bb-base-select__input-container" }, ll = ["autofocus", "dis
|
|
|
303
303
|
const ge = () => {
|
|
304
304
|
E.value && v.value && Qe(E.value, v.value, {
|
|
305
305
|
placement: "bottom",
|
|
306
|
-
middleware: [
|
|
306
|
+
middleware: [Xe(6), Ue(), We()]
|
|
307
307
|
}).then((e) => {
|
|
308
308
|
var a;
|
|
309
309
|
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`);
|
|
310
310
|
});
|
|
311
|
-
}, _ = f(!1), W = f(!1),
|
|
312
|
-
|
|
311
|
+
}, _ = f(!1), W = f(!1), R = f(!1), K = f(!0), $ = async () => {
|
|
312
|
+
K.value = !1, W.value = !0, await q(l.transitionDuration), W.value = !1, _.value = !0;
|
|
313
313
|
}, M = async () => {
|
|
314
|
-
_.value = !1,
|
|
314
|
+
_.value = !1, R.value = !0, await q(l.transitionDuration), R.value = !1, K.value = !0;
|
|
315
315
|
}, H = f(!1);
|
|
316
316
|
let Y = !0;
|
|
317
317
|
const we = async (e) => {
|
|
@@ -329,7 +329,7 @@ const el = { class: "bb-base-select__input-container" }, ll = ["autofocus", "dis
|
|
|
329
329
|
const t = l.modelValue;
|
|
330
330
|
if (await Promise.race([
|
|
331
331
|
q(250),
|
|
332
|
-
|
|
332
|
+
Ze(() => t !== l.modelValue).then(() => {
|
|
333
333
|
a = !0;
|
|
334
334
|
})
|
|
335
335
|
]), !a) {
|
|
@@ -339,8 +339,8 @@ const el = { class: "bb-base-select__input-container" }, ll = ["autofocus", "dis
|
|
|
339
339
|
}
|
|
340
340
|
}, Ce = (e) => c("change", e), ke = (e) => {
|
|
341
341
|
c("input", e), s.value === "" && (l.multiple || c("update:modelValue", null)), typeof l.items == "function" && Se();
|
|
342
|
-
}, 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),
|
|
343
|
-
r.value !== null ? r.value++ : r.value = 0,
|
|
342
|
+
}, 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), i = f(null), _e = () => {
|
|
343
|
+
r.value !== null ? r.value++ : r.value = 0, oe().then(() => {
|
|
344
344
|
var e;
|
|
345
345
|
if (O.value !== null) {
|
|
346
346
|
const a = (e = v.value) == null ? void 0 : e.querySelector(
|
|
@@ -354,7 +354,7 @@ const el = { class: "bb-base-select__input-container" }, ll = ["autofocus", "dis
|
|
|
354
354
|
}
|
|
355
355
|
});
|
|
356
356
|
}, Oe = () => {
|
|
357
|
-
r.value !== null ? r.value-- : r.value = C.value.length - 1,
|
|
357
|
+
r.value !== null ? r.value-- : r.value = C.value.length - 1, oe().then(() => {
|
|
358
358
|
var e;
|
|
359
359
|
if (O.value !== null) {
|
|
360
360
|
const a = (e = v.value) == null ? void 0 : e.querySelector(
|
|
@@ -378,29 +378,29 @@ const el = { class: "bb-base-select__input-container" }, ll = ["autofocus", "dis
|
|
|
378
378
|
{
|
|
379
379
|
if (e.preventDefault(), d.value)
|
|
380
380
|
return;
|
|
381
|
-
|
|
381
|
+
i.value = null, _.value ? Oe() : (o.value.length && (r.value = le(o.value).index), await $());
|
|
382
382
|
}
|
|
383
383
|
break;
|
|
384
384
|
case "ArrowDown":
|
|
385
385
|
{
|
|
386
386
|
if (e.preventDefault(), d.value)
|
|
387
387
|
return;
|
|
388
|
-
|
|
388
|
+
i.value = null, _.value ? _e() : (o.value.length && (r.value = le(o.value).index), await $());
|
|
389
389
|
}
|
|
390
390
|
break;
|
|
391
391
|
case "ArrowLeft":
|
|
392
392
|
{
|
|
393
393
|
if (d.value)
|
|
394
394
|
return;
|
|
395
|
-
if (!s.value &&
|
|
396
|
-
let n =
|
|
395
|
+
if (!s.value && o.value.length && (i.value === null ? i.value = o.value.length - 1 : i.value > 0 ? i.value-- : i.value = null, i.value !== null)) {
|
|
396
|
+
let n = o.value[i.value], u = (a = v.value) == null ? void 0 : a.querySelector(
|
|
397
397
|
`#${n.id}`
|
|
398
398
|
);
|
|
399
399
|
u && (u.scrollIntoView({
|
|
400
400
|
behavior: "smooth",
|
|
401
401
|
block: "nearest",
|
|
402
402
|
inline: "start"
|
|
403
|
-
}), r.value = z.value[
|
|
403
|
+
}), r.value = z.value[o.value[i.value].id].index);
|
|
404
404
|
}
|
|
405
405
|
}
|
|
406
406
|
break;
|
|
@@ -408,15 +408,15 @@ const el = { class: "bb-base-select__input-container" }, ll = ["autofocus", "dis
|
|
|
408
408
|
{
|
|
409
409
|
if (d.value)
|
|
410
410
|
return;
|
|
411
|
-
if (!s.value &&
|
|
412
|
-
let n =
|
|
411
|
+
if (!s.value && o.value.length && (i.value === null ? i.value = 0 : i.value < o.value.length - 1 ? i.value++ : i.value = null, i.value !== null)) {
|
|
412
|
+
let n = o.value[i.value], u = (t = v.value) == null ? void 0 : t.querySelector(
|
|
413
413
|
`#${n.id}`
|
|
414
414
|
);
|
|
415
415
|
u && (u.scrollIntoView({
|
|
416
416
|
behavior: "smooth",
|
|
417
417
|
block: "nearest",
|
|
418
418
|
inline: "start"
|
|
419
|
-
}), r.value = z.value[
|
|
419
|
+
}), r.value = z.value[o.value[i.value].id].index);
|
|
420
420
|
}
|
|
421
421
|
}
|
|
422
422
|
break;
|
|
@@ -425,7 +425,7 @@ const el = { class: "bb-base-select__input-container" }, ll = ["autofocus", "dis
|
|
|
425
425
|
if (e.preventDefault(), d.value)
|
|
426
426
|
return;
|
|
427
427
|
if (!_.value)
|
|
428
|
-
k.value.length &&
|
|
428
|
+
k.value.length && o.value.length && (r.value = le(o.value).index), await $();
|
|
429
429
|
else if (O.value !== null) {
|
|
430
430
|
if (k.value[O.value].disabled)
|
|
431
431
|
return;
|
|
@@ -440,14 +440,14 @@ const el = { class: "bb-base-select__input-container" }, ll = ["autofocus", "dis
|
|
|
440
440
|
return;
|
|
441
441
|
}
|
|
442
442
|
ye();
|
|
443
|
-
const n =
|
|
443
|
+
const n = Re(V.value);
|
|
444
444
|
A(z.value[n.id]);
|
|
445
445
|
}
|
|
446
446
|
}
|
|
447
447
|
break;
|
|
448
448
|
case "Tab":
|
|
449
449
|
case "Escape":
|
|
450
|
-
_.value && await M(), c("inactive"),
|
|
450
|
+
_.value && await M(), c("inactive"), i.value = null, r.value = null;
|
|
451
451
|
break;
|
|
452
452
|
case "Shift":
|
|
453
453
|
if (d.value)
|
|
@@ -457,19 +457,19 @@ const el = { class: "bb-base-select__input-container" }, ll = ["autofocus", "dis
|
|
|
457
457
|
{
|
|
458
458
|
if (d.value)
|
|
459
459
|
return;
|
|
460
|
-
s.value ||
|
|
461
|
-
|
|
462
|
-
),
|
|
460
|
+
s.value || o.value.length && (i.value === null ? i.value = o.value.length - 1 : (A(
|
|
461
|
+
o.value[i.value]
|
|
462
|
+
), o.value.length ? i.value = Math.max(
|
|
463
463
|
Math.min(
|
|
464
|
-
|
|
465
|
-
|
|
464
|
+
i.value,
|
|
465
|
+
o.value.length - 2
|
|
466
466
|
),
|
|
467
467
|
0
|
|
468
|
-
) :
|
|
468
|
+
) : i.value = null)), await $();
|
|
469
469
|
}
|
|
470
470
|
break;
|
|
471
471
|
default:
|
|
472
|
-
|
|
472
|
+
i.value = null, r.value = null, await $();
|
|
473
473
|
break;
|
|
474
474
|
}
|
|
475
475
|
};
|
|
@@ -498,7 +498,7 @@ const el = { class: "bb-base-select__input-container" }, ll = ["autofocus", "dis
|
|
|
498
498
|
});
|
|
499
499
|
return;
|
|
500
500
|
}
|
|
501
|
-
}, Ie =
|
|
501
|
+
}, Ie = Ge(
|
|
502
502
|
(e) => typeof e != "string",
|
|
503
503
|
JSON.stringify
|
|
504
504
|
), Ee = g(() => [].concat(l.modelValue).map((e) => {
|
|
@@ -532,18 +532,18 @@ const el = { class: "bb-base-select__input-container" }, ll = ["autofocus", "dis
|
|
|
532
532
|
h(e.$slots, "prepend"),
|
|
533
533
|
w("span", el, [
|
|
534
534
|
e.multiple ? (b(), y(D, { key: 0 }, [
|
|
535
|
-
e.comma ? (b(!0), y(D, { key: 0 }, j(
|
|
535
|
+
e.comma ? (b(!0), y(D, { key: 0 }, j(o.value, (t, n) => (b(), y("span", {
|
|
536
536
|
class: x({
|
|
537
537
|
"bb-base-select__selected": !0,
|
|
538
538
|
"bb-base-select__selected--comma": !0,
|
|
539
|
-
"bb-base-select__selected--focused": n ===
|
|
539
|
+
"bb-base-select__selected--focused": n === i.value
|
|
540
540
|
}),
|
|
541
541
|
key: t.id
|
|
542
|
-
}, L(t.text) + L(n <
|
|
542
|
+
}, L(t.text) + L(n < o.value.length - 1 ? "," : ""), 3))), 128)) : (b(!0), y(D, { key: 1 }, j(o.value, (t, n) => (b(), se(Pe, {
|
|
543
543
|
class: x({
|
|
544
544
|
"bb-base-select__selected": !0,
|
|
545
545
|
"bb-base-select__selected--chip": !0,
|
|
546
|
-
"bb-base-select__selected--focused": n ===
|
|
546
|
+
"bb-base-select__selected--focused": n === i.value
|
|
547
547
|
}),
|
|
548
548
|
clearable: !0,
|
|
549
549
|
key: t.id,
|
|
@@ -567,7 +567,7 @@ const el = { class: "bb-base-select__input-container" }, ll = ["autofocus", "dis
|
|
|
567
567
|
]),
|
|
568
568
|
_: 2
|
|
569
569
|
}, 1032, ["class", "text", "onClick:clear"]))), 128))
|
|
570
|
-
], 64)) :
|
|
570
|
+
], 64)) : ie("", !0),
|
|
571
571
|
Fe(w("input", {
|
|
572
572
|
autofocus: e.autofocus,
|
|
573
573
|
class: x("bb-base-select__text-input"),
|
|
@@ -593,8 +593,8 @@ const el = { class: "bb-base-select__input-container" }, ll = ["autofocus", "dis
|
|
|
593
593
|
"bb-base-select__options-container": !0,
|
|
594
594
|
"bb-base-select__options-container--shown": _.value,
|
|
595
595
|
"bb-base-select__options-container--showing": W.value,
|
|
596
|
-
"bb-base-select__options-container--hiding":
|
|
597
|
-
"bb-base-select__options-container--hidden":
|
|
596
|
+
"bb-base-select__options-container--hiding": R.value,
|
|
597
|
+
"bb-base-select__options-container--hidden": K.value
|
|
598
598
|
}),
|
|
599
599
|
role: "listbox",
|
|
600
600
|
style: Je({ transitionDuration: ve }),
|
|
@@ -607,7 +607,7 @@ const el = { class: "bb-base-select__input-container" }, ll = ["autofocus", "dis
|
|
|
607
607
|
h(e.$slots, "loading", { query: s.value }, () => [
|
|
608
608
|
ee(L(e.loadingText), 1)
|
|
609
609
|
])
|
|
610
|
-
])) : k.value.length ?
|
|
610
|
+
])) : k.value.length ? ie("", !0) : (b(), y("span", al, [
|
|
611
611
|
h(e.$slots, "no-data", { query: s.value }, () => [
|
|
612
612
|
ee(L(e.noDataText), 1)
|
|
613
613
|
])
|
|
@@ -655,12 +655,12 @@ const el = { class: "bb-base-select__input-container" }, ll = ["autofocus", "dis
|
|
|
655
655
|
], 6)
|
|
656
656
|
]))
|
|
657
657
|
]),
|
|
658
|
-
w("span",
|
|
658
|
+
w("span", il, [
|
|
659
659
|
h(e.$slots, "chevron", {
|
|
660
660
|
loading: !!d.value,
|
|
661
661
|
shown: _.value
|
|
662
662
|
}, () => [
|
|
663
|
-
|
|
663
|
+
ol
|
|
664
664
|
])
|
|
665
665
|
]),
|
|
666
666
|
d.value ? (b(), y("span", {
|