bitboss-ui 0.2.17 → 0.2.19
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/BaseSelect/BaseSelect.vue.d.ts +7 -0
- package/dist/components/BbPopover/BbPopover.vue.d.ts +4 -0
- package/dist/components/BbSelect/BbSelect.vue.d.ts +7 -0
- package/dist/index101.js +1 -1
- package/dist/index103.js +2 -2
- package/dist/index109.js +1 -1
- package/dist/index11.js +2 -2
- package/dist/index111.js +4 -4
- package/dist/index113.js +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/index125.js +1 -1
- package/dist/index126.js +1 -1
- package/dist/index131.js +2 -2
- package/dist/index15.js +8 -8
- package/dist/index17.js +9 -9
- package/dist/index19.js +3 -3
- package/dist/index197.js +235 -5
- package/dist/index197.js.map +1 -1
- package/dist/index198.js +3 -16
- package/dist/index198.js.map +1 -1
- package/dist/index199.js +35 -16
- package/dist/index199.js.map +1 -1
- package/dist/index200.js +6 -19
- package/dist/index200.js.map +1 -1
- package/dist/index201.js +2 -20
- package/dist/index201.js.map +1 -1
- package/dist/index202.js +4 -29
- package/dist/index202.js.map +1 -1
- package/dist/index203.js +10 -8
- package/dist/index203.js.map +1 -1
- package/dist/index204.js +5 -2
- package/dist/index204.js.map +1 -1
- package/dist/index205.js +16 -2
- package/dist/index205.js.map +1 -1
- package/dist/index206.js +16 -4
- package/dist/index206.js.map +1 -1
- package/dist/index207.js +17 -376
- package/dist/index207.js.map +1 -1
- package/dist/index208.js +17 -131
- package/dist/index208.js.map +1 -1
- package/dist/index209.js +29 -2
- package/dist/index209.js.map +1 -1
- package/dist/index21.js +2 -2
- package/dist/index210.js +8 -174
- package/dist/index210.js.map +1 -1
- package/dist/index211.js +2 -23
- package/dist/index211.js.map +1 -1
- package/dist/index212.js +3 -373
- package/dist/index212.js.map +1 -1
- package/dist/index213.js +3 -3
- package/dist/index213.js.map +1 -1
- package/dist/index214.js +376 -33
- package/dist/index214.js.map +1 -1
- package/dist/index215.js +134 -6
- package/dist/index215.js.map +1 -1
- package/dist/index216.js +2 -235
- package/dist/index216.js.map +1 -1
- package/dist/index217.js +174 -2
- package/dist/index217.js.map +1 -1
- package/dist/index218.js +23 -10
- package/dist/index218.js.map +1 -1
- package/dist/index219.js +370 -25
- package/dist/index219.js.map +1 -1
- package/dist/index220.js +2 -13
- package/dist/index220.js.map +1 -1
- package/dist/index221.js +2 -3
- package/dist/index221.js.map +1 -1
- package/dist/index222.js +9 -3
- package/dist/index222.js.map +1 -1
- package/dist/index223.js +121 -2
- package/dist/index223.js.map +1 -1
- package/dist/index224.js +27 -8
- package/dist/index224.js.map +1 -1
- package/dist/index225.js +12 -120
- package/dist/index225.js.map +1 -1
- package/dist/index226.js +1 -1
- package/dist/index228.js +4 -295
- package/dist/index228.js.map +1 -1
- package/dist/index229.js +434 -5
- package/dist/index229.js.map +1 -1
- package/dist/index230.js +89 -2
- package/dist/index230.js.map +1 -1
- package/dist/index231.js +162 -2
- package/dist/index231.js.map +1 -1
- package/dist/index232.js +2 -2
- package/dist/index233.js +69 -2
- package/dist/index233.js.map +1 -1
- package/dist/index234.js +2 -2
- package/dist/index234.js.map +1 -1
- package/dist/index235.js +2 -2
- package/dist/index236.js +199 -3
- package/dist/index236.js.map +1 -1
- package/dist/index237.js +295 -2
- package/dist/index237.js.map +1 -1
- package/dist/index238.js +5 -116
- package/dist/index238.js.map +1 -1
- package/dist/index239.js +2 -106
- package/dist/index239.js.map +1 -1
- package/dist/index240.js +2 -162
- package/dist/index240.js.map +1 -1
- package/dist/index241.js +2 -2
- package/dist/index242.js +2 -435
- package/dist/index242.js.map +1 -1
- package/dist/index243.js +2 -89
- package/dist/index243.js.map +1 -1
- package/dist/index244.js +2 -200
- package/dist/index244.js.map +1 -1
- package/dist/index245.js +224 -2
- package/dist/index245.js.map +1 -1
- package/dist/index246.js +257 -68
- package/dist/index246.js.map +1 -1
- package/dist/index247.js +2 -38
- package/dist/index247.js.map +1 -1
- package/dist/index248.js +117 -2
- package/dist/index248.js.map +1 -1
- package/dist/index249.js +106 -2
- package/dist/index249.js.map +1 -1
- package/dist/index25.js +2 -2
- package/dist/index250.js +37 -223
- package/dist/index250.js.map +1 -1
- package/dist/index251.js +2 -258
- package/dist/index251.js.map +1 -1
- package/dist/index252.js +2 -2
- package/dist/index252.js.map +1 -1
- package/dist/index254.js +2 -3
- package/dist/index254.js.map +1 -1
- package/dist/index255.js +3 -2
- package/dist/index255.js.map +1 -1
- package/dist/index29.js +3 -3
- package/dist/index31.js +42 -40
- package/dist/index31.js.map +1 -1
- package/dist/index33.js +1 -1
- package/dist/index35.js +2 -2
- package/dist/index47.js +1 -1
- package/dist/index49.js +1 -1
- package/dist/index65.js +5 -5
- package/dist/index69.js +2 -2
- package/dist/index72.js +1 -1
- package/dist/index75.js +1 -1
- package/dist/index79.js +70 -62
- package/dist/index79.js.map +1 -1
- package/dist/index91.js +18 -16
- package/dist/index91.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
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 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
2
|
import Pe from "./index115.js";
|
|
3
3
|
import "./index158.js";
|
|
4
4
|
import He from "./index119.js";
|
|
5
5
|
import "./index185.js";
|
|
6
|
-
import { autoUpdate as je, computePosition as Qe, flip as Ue, shift as We } from "./
|
|
6
|
+
import { autoUpdate as je, computePosition as Qe, flip as Ue, shift as We } from "./index214.js";
|
|
7
7
|
import { deepEqual as re } from "./index123.js";
|
|
8
|
-
import { head as le } from "./
|
|
8
|
+
import { head as le } from "./index221.js";
|
|
9
9
|
import { isNotNil as I } from "./index124.js";
|
|
10
|
-
import { last as Re } from "./
|
|
10
|
+
import { last as Re } from "./index211.js";
|
|
11
11
|
import { useItemText as Ke } from "./index125.js";
|
|
12
12
|
import { useItemValue as Ye } from "./index126.js";
|
|
13
13
|
import { wait as q } from "./index122.js";
|
|
14
|
-
import { waitFor as Ze } from "./
|
|
15
|
-
import { when as Ge } from "./
|
|
16
|
-
import { offset as Xe } from "./
|
|
17
|
-
const el = { class: "bb-base-select__input-container" }, ll = ["autofocus", "disabled", "id", "placeholder", "readonly"], tl = {
|
|
14
|
+
import { waitFor as Ze } from "./index200.js";
|
|
15
|
+
import { when as Ge } from "./index202.js";
|
|
16
|
+
import { offset as Xe } from "./index219.js";
|
|
17
|
+
const el = { class: "bb-base-select__input-container" }, ll = ["autocomplete", "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"], ul = { class: "bb-base-select-option__content" }, sl = { class: "bb-base-select-option__text" },
|
|
23
|
+
}, nl = ["aria-selected", "id"], 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"
|
|
@@ -35,6 +35,7 @@ const el = { class: "bb-base-select__input-container" }, ll = ["autofocus", "dis
|
|
|
35
35
|
__name: "BaseSelect",
|
|
36
36
|
props: {
|
|
37
37
|
allowWriting: { type: Boolean, default: !0 },
|
|
38
|
+
autocomplete: {},
|
|
38
39
|
autofocus: {},
|
|
39
40
|
dependencies: {},
|
|
40
41
|
depsDebounceTime: { default: 0 },
|
|
@@ -69,7 +70,7 @@ const el = { class: "bb-base-select__input-container" }, ll = ["autofocus", "dis
|
|
|
69
70
|
const l = de, c = ce;
|
|
70
71
|
if (l.multiple && !Array.isArray(l.modelValue))
|
|
71
72
|
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(() =>
|
|
73
|
+
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
74
|
let te;
|
|
74
75
|
$e(async () => {
|
|
75
76
|
E.value && v.value && (te = je(
|
|
@@ -123,7 +124,7 @@ const el = { class: "bb-base-select__input-container" }, ll = ["autofocus", "dis
|
|
|
123
124
|
);
|
|
124
125
|
}), k = g(() => {
|
|
125
126
|
let e = [];
|
|
126
|
-
return s.value && !
|
|
127
|
+
return s.value && !i.value.some(
|
|
127
128
|
(a) => a.text === s.value
|
|
128
129
|
) ? e = C.value.filter((a) => {
|
|
129
130
|
let t = !1;
|
|
@@ -192,7 +193,7 @@ const el = { class: "bb-base-select__input-container" }, ll = ["autofocus", "dis
|
|
|
192
193
|
};
|
|
193
194
|
} else
|
|
194
195
|
throw new Error("No match strategy has been defined");
|
|
195
|
-
}),
|
|
196
|
+
}), i = g(() => [].concat(l.modelValue).reduce((e, a) => {
|
|
196
197
|
const t = p.value.get(a);
|
|
197
198
|
return t && e.push(t), e;
|
|
198
199
|
}, [])), A = (e) => {
|
|
@@ -339,8 +340,8 @@ const el = { class: "bb-base-select__input-container" }, ll = ["autofocus", "dis
|
|
|
339
340
|
}
|
|
340
341
|
}, Ce = (e) => c("change", e), ke = (e) => {
|
|
341
342
|
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,
|
|
343
|
+
}, 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 = () => {
|
|
344
|
+
r.value !== null ? r.value++ : r.value = 0, ie().then(() => {
|
|
344
345
|
var e;
|
|
345
346
|
if (O.value !== null) {
|
|
346
347
|
const a = (e = v.value) == null ? void 0 : e.querySelector(
|
|
@@ -354,7 +355,7 @@ const el = { class: "bb-base-select__input-container" }, ll = ["autofocus", "dis
|
|
|
354
355
|
}
|
|
355
356
|
});
|
|
356
357
|
}, Oe = () => {
|
|
357
|
-
r.value !== null ? r.value-- : r.value = C.value.length - 1,
|
|
358
|
+
r.value !== null ? r.value-- : r.value = C.value.length - 1, ie().then(() => {
|
|
358
359
|
var e;
|
|
359
360
|
if (O.value !== null) {
|
|
360
361
|
const a = (e = v.value) == null ? void 0 : e.querySelector(
|
|
@@ -378,29 +379,29 @@ const el = { class: "bb-base-select__input-container" }, ll = ["autofocus", "dis
|
|
|
378
379
|
{
|
|
379
380
|
if (e.preventDefault(), d.value)
|
|
380
381
|
return;
|
|
381
|
-
|
|
382
|
+
o.value = null, _.value ? Oe() : (i.value.length && (r.value = le(i.value).index), await $());
|
|
382
383
|
}
|
|
383
384
|
break;
|
|
384
385
|
case "ArrowDown":
|
|
385
386
|
{
|
|
386
387
|
if (e.preventDefault(), d.value)
|
|
387
388
|
return;
|
|
388
|
-
|
|
389
|
+
o.value = null, _.value ? _e() : (i.value.length && (r.value = le(i.value).index), await $());
|
|
389
390
|
}
|
|
390
391
|
break;
|
|
391
392
|
case "ArrowLeft":
|
|
392
393
|
{
|
|
393
394
|
if (d.value)
|
|
394
395
|
return;
|
|
395
|
-
if (!s.value &&
|
|
396
|
-
let n =
|
|
396
|
+
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)) {
|
|
397
|
+
let n = i.value[o.value], u = (a = v.value) == null ? void 0 : a.querySelector(
|
|
397
398
|
`#${n.id}`
|
|
398
399
|
);
|
|
399
400
|
u && (u.scrollIntoView({
|
|
400
401
|
behavior: "smooth",
|
|
401
402
|
block: "nearest",
|
|
402
403
|
inline: "start"
|
|
403
|
-
}), r.value = z.value[
|
|
404
|
+
}), r.value = z.value[i.value[o.value].id].index);
|
|
404
405
|
}
|
|
405
406
|
}
|
|
406
407
|
break;
|
|
@@ -408,15 +409,15 @@ const el = { class: "bb-base-select__input-container" }, ll = ["autofocus", "dis
|
|
|
408
409
|
{
|
|
409
410
|
if (d.value)
|
|
410
411
|
return;
|
|
411
|
-
if (!s.value &&
|
|
412
|
-
let n =
|
|
412
|
+
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)) {
|
|
413
|
+
let n = i.value[o.value], u = (t = v.value) == null ? void 0 : t.querySelector(
|
|
413
414
|
`#${n.id}`
|
|
414
415
|
);
|
|
415
416
|
u && (u.scrollIntoView({
|
|
416
417
|
behavior: "smooth",
|
|
417
418
|
block: "nearest",
|
|
418
419
|
inline: "start"
|
|
419
|
-
}), r.value = z.value[
|
|
420
|
+
}), r.value = z.value[i.value[o.value].id].index);
|
|
420
421
|
}
|
|
421
422
|
}
|
|
422
423
|
break;
|
|
@@ -425,7 +426,7 @@ const el = { class: "bb-base-select__input-container" }, ll = ["autofocus", "dis
|
|
|
425
426
|
if (e.preventDefault(), d.value)
|
|
426
427
|
return;
|
|
427
428
|
if (!_.value)
|
|
428
|
-
k.value.length &&
|
|
429
|
+
k.value.length && i.value.length && (r.value = le(i.value).index), await $();
|
|
429
430
|
else if (O.value !== null) {
|
|
430
431
|
if (k.value[O.value].disabled)
|
|
431
432
|
return;
|
|
@@ -447,7 +448,7 @@ const el = { class: "bb-base-select__input-container" }, ll = ["autofocus", "dis
|
|
|
447
448
|
break;
|
|
448
449
|
case "Tab":
|
|
449
450
|
case "Escape":
|
|
450
|
-
_.value && await M(), c("inactive"),
|
|
451
|
+
_.value && await M(), c("inactive"), o.value = null, r.value = null;
|
|
451
452
|
break;
|
|
452
453
|
case "Shift":
|
|
453
454
|
if (d.value)
|
|
@@ -457,19 +458,19 @@ const el = { class: "bb-base-select__input-container" }, ll = ["autofocus", "dis
|
|
|
457
458
|
{
|
|
458
459
|
if (d.value)
|
|
459
460
|
return;
|
|
460
|
-
s.value ||
|
|
461
|
-
|
|
462
|
-
),
|
|
461
|
+
s.value || i.value.length && (o.value === null ? o.value = i.value.length - 1 : (A(
|
|
462
|
+
i.value[o.value]
|
|
463
|
+
), i.value.length ? o.value = Math.max(
|
|
463
464
|
Math.min(
|
|
464
|
-
|
|
465
|
-
|
|
465
|
+
o.value,
|
|
466
|
+
i.value.length - 2
|
|
466
467
|
),
|
|
467
468
|
0
|
|
468
|
-
) :
|
|
469
|
+
) : o.value = null)), await $();
|
|
469
470
|
}
|
|
470
471
|
break;
|
|
471
472
|
default:
|
|
472
|
-
|
|
473
|
+
o.value = null, r.value = null, await $();
|
|
473
474
|
break;
|
|
474
475
|
}
|
|
475
476
|
};
|
|
@@ -532,18 +533,18 @@ const el = { class: "bb-base-select__input-container" }, ll = ["autofocus", "dis
|
|
|
532
533
|
h(e.$slots, "prepend"),
|
|
533
534
|
w("span", el, [
|
|
534
535
|
e.multiple ? (b(), y(D, { key: 0 }, [
|
|
535
|
-
e.comma ? (b(!0), y(D, { key: 0 }, j(
|
|
536
|
+
e.comma ? (b(!0), y(D, { key: 0 }, j(i.value, (t, n) => (b(), y("span", {
|
|
536
537
|
class: x({
|
|
537
538
|
"bb-base-select__selected": !0,
|
|
538
539
|
"bb-base-select__selected--comma": !0,
|
|
539
|
-
"bb-base-select__selected--focused": n ===
|
|
540
|
+
"bb-base-select__selected--focused": n === o.value
|
|
540
541
|
}),
|
|
541
542
|
key: t.id
|
|
542
|
-
}, L(t.text) + L(n <
|
|
543
|
+
}, L(t.text) + L(n < i.value.length - 1 ? "," : ""), 3))), 128)) : (b(!0), y(D, { key: 1 }, j(i.value, (t, n) => (b(), se(Pe, {
|
|
543
544
|
class: x({
|
|
544
545
|
"bb-base-select__selected": !0,
|
|
545
546
|
"bb-base-select__selected--chip": !0,
|
|
546
|
-
"bb-base-select__selected--focused": n ===
|
|
547
|
+
"bb-base-select__selected--focused": n === o.value
|
|
547
548
|
}),
|
|
548
549
|
clearable: !0,
|
|
549
550
|
key: t.id,
|
|
@@ -567,8 +568,9 @@ const el = { class: "bb-base-select__input-container" }, ll = ["autofocus", "dis
|
|
|
567
568
|
]),
|
|
568
569
|
_: 2
|
|
569
570
|
}, 1032, ["class", "text", "onClick:clear"]))), 128))
|
|
570
|
-
], 64)) :
|
|
571
|
+
], 64)) : oe("", !0),
|
|
571
572
|
Fe(w("input", {
|
|
573
|
+
autocomplete: e.autocomplete,
|
|
572
574
|
autofocus: e.autofocus,
|
|
573
575
|
class: x("bb-base-select__text-input"),
|
|
574
576
|
disabled: e.disabled,
|
|
@@ -607,7 +609,7 @@ const el = { class: "bb-base-select__input-container" }, ll = ["autofocus", "dis
|
|
|
607
609
|
h(e.$slots, "loading", { query: s.value }, () => [
|
|
608
610
|
ee(L(e.loadingText), 1)
|
|
609
611
|
])
|
|
610
|
-
])) : k.value.length ?
|
|
612
|
+
])) : k.value.length ? oe("", !0) : (b(), y("span", al, [
|
|
611
613
|
h(e.$slots, "no-data", { query: s.value }, () => [
|
|
612
614
|
ee(L(e.noDataText), 1)
|
|
613
615
|
])
|
|
@@ -655,12 +657,12 @@ const el = { class: "bb-base-select__input-container" }, ll = ["autofocus", "dis
|
|
|
655
657
|
], 6)
|
|
656
658
|
]))
|
|
657
659
|
]),
|
|
658
|
-
w("span",
|
|
660
|
+
w("span", ol, [
|
|
659
661
|
h(e.$slots, "chevron", {
|
|
660
662
|
loading: !!d.value,
|
|
661
663
|
shown: _.value
|
|
662
664
|
}, () => [
|
|
663
|
-
|
|
665
|
+
il
|
|
664
666
|
])
|
|
665
667
|
]),
|
|
666
668
|
d.value ? (b(), y("span", {
|