bitboss-ui 2.1.99 → 2.1.100
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/index108.js +9 -9
- package/dist/index115.js +1 -1
- package/dist/index121.js +4 -4
- package/dist/index123.js +12 -12
- package/dist/index131.js +1 -1
- package/dist/index133.js +5 -5
- package/dist/index135.js +1 -1
- package/dist/index137.js +2 -2
- package/dist/index14.js +1 -1
- package/dist/index142.js +2 -2
- package/dist/index144.js +1 -1
- package/dist/index16.js +5 -5
- package/dist/index18.js +3 -3
- package/dist/index20.js +8 -8
- package/dist/index216.js +2 -138
- package/dist/index218.js +138 -2
- package/dist/index219.js +1 -1
- package/dist/index22.js +14 -14
- package/dist/index220.js +1 -1
- package/dist/index221.js +33 -3
- package/dist/index222.js +28 -3
- package/dist/index224.js +33 -17
- package/dist/index225.js +5 -12
- package/dist/index226.js +5 -51
- package/dist/index227.js +5 -15
- package/dist/index228.js +5 -12
- package/dist/index229.js +5 -17
- package/dist/index230.js +5 -29
- package/dist/index231.js +2 -13
- package/dist/index232.js +3 -16
- package/dist/index233.js +13 -4
- package/dist/index234.js +19 -105
- package/dist/{index238.js → index235.js} +6 -6
- package/dist/index237.js +88 -0
- package/dist/index239.js +31 -0
- package/dist/index24.js +11 -11
- package/dist/index240.js +16 -104
- package/dist/index241.js +15 -11
- package/dist/index242.js +51 -2
- package/dist/index243.js +15 -11
- package/dist/index244.js +3 -86
- package/dist/index245.js +14 -0
- package/dist/index246.js +9 -10
- package/dist/index247.js +8 -2
- package/dist/index248.js +13 -4
- package/dist/index249.js +23 -3
- package/dist/index250.js +4 -2
- package/dist/index251.js +23 -5
- package/dist/index252.js +3 -5
- package/dist/index253.js +2 -5
- package/dist/index254.js +2 -5
- package/dist/index255.js +2 -5
- package/dist/index256.js +7 -5
- package/dist/index257.js +2 -2
- package/dist/index258.js +7 -20
- package/dist/index259.js +10 -9
- package/dist/index26.js +3 -3
- package/dist/index260.js +3 -21
- package/dist/index261.js +3 -34
- package/dist/index262.js +2 -33
- package/dist/index263.js +188 -28
- package/dist/index264.js +5 -0
- package/dist/index265.js +4 -23
- package/dist/index266.js +4 -9
- package/dist/index267.js +201 -23
- package/dist/index269.js +5 -4
- package/dist/index270.js +15 -5
- package/dist/index271.js +65 -6
- package/dist/index272.js +3 -268
- package/dist/index273.js +32 -51
- package/dist/index274.js +6 -50
- package/dist/index275.js +7 -30
- package/dist/index276.js +51 -58
- package/dist/index277.js +13 -3
- package/dist/index278.js +11 -33
- package/dist/index279.js +5 -188
- package/dist/index28.js +1 -1
- package/dist/index280.js +6 -3
- package/dist/index281.js +267 -52
- package/dist/index282.js +52 -2
- package/dist/index283.js +52 -2
- package/dist/index284.js +32 -7
- package/dist/index285.js +60 -7
- package/dist/index286.js +106 -4
- package/dist/{index236.js → index288.js} +2 -2
- package/dist/index290.js +20 -12
- package/dist/index291.js +7 -5
- package/dist/index292.js +5 -3
- package/dist/index293.js +18 -6
- package/dist/index294.js +12 -16
- package/dist/index295.js +104 -9
- package/dist/index296.js +4 -0
- package/dist/index297.js +7 -3
- package/dist/index298.js +3 -2
- package/dist/index299.js +17 -3
- package/dist/index30.js +2 -2
- package/dist/index300.js +25 -14
- package/dist/index301.js +5 -28
- package/dist/index303.js +1 -1
- package/dist/index304.js +1 -1
- package/dist/index305.js +3 -6
- package/dist/index306.js +280 -2
- package/dist/index307.js +2 -4
- package/dist/index308.js +124 -3
- package/dist/index309.js +2 -280
- package/dist/index310.js +15 -2
- package/dist/index311.js +2 -125
- package/dist/index312.js +16 -2
- package/dist/index313.js +2 -15
- package/dist/index314.js +16 -2
- package/dist/index315.js +2 -16
- package/dist/index316.js +19 -2
- package/dist/index317.js +2 -16
- package/dist/index318.js +3 -2
- package/dist/index319.js +2 -19
- package/dist/index32.js +2 -2
- package/dist/index320.js +5 -2
- package/dist/index321.js +719 -5
- package/dist/index322.js +366 -27
- package/dist/index323.js +57 -2
- package/dist/index324.js +27 -2
- package/dist/index325.js +2 -2
- package/dist/index326.js +1 -1
- package/dist/index327.js +1 -1
- package/dist/index328.js +1 -1
- package/dist/index329.js +1 -1
- package/dist/index330.js +2 -3
- package/dist/index331.js +3 -5
- package/dist/index332.js +3 -719
- package/dist/index333.js +4 -366
- package/dist/index334.js +5 -56
- package/dist/index335.js +226 -33
- package/dist/index336.js +58 -6
- package/dist/index337.js +57 -128
- package/dist/index338.js +30 -393
- package/dist/index339.js +5 -192
- package/dist/index34.js +8 -8
- package/dist/index340.js +125 -254
- package/dist/index341.js +396 -56
- package/dist/index342.js +8 -58
- package/dist/index343.js +5 -5
- package/dist/index344.js +8 -7
- package/dist/index345.js +91 -17
- package/dist/index346.js +2 -9
- package/dist/index347.js +131 -12
- package/dist/index348.js +7 -5
- package/dist/index349.js +17 -5
- package/dist/index350.js +8 -92
- package/dist/index351.js +12 -131
- package/dist/index352.js +5 -2
- package/dist/index353.js +7 -2
- package/dist/index356.js +191 -8
- package/dist/index357.js +258 -6
- package/dist/index358.js +439 -6
- package/dist/index359.js +126 -226
- package/dist/index36.js +4 -4
- package/dist/index360.js +2 -441
- package/dist/index361.js +2 -128
- package/dist/index363.js +1 -1
- package/dist/index38.js +20 -20
- package/dist/index40.js +6 -6
- package/dist/index42.js +2 -2
- package/dist/index44.js +8 -8
- package/dist/index46.js +6 -6
- package/dist/index50.js +2 -2
- package/dist/index54.js +1 -1
- package/dist/index56.js +1 -1
- package/dist/index58.js +2 -2
- package/dist/index62.js +5 -5
- package/dist/index68.js +1 -1
- package/dist/index81.js +6 -6
- package/dist/index83.js +1 -1
- package/dist/index85.js +2 -2
- package/dist/index87.js +3 -3
- package/dist/index89.js +1 -1
- package/dist/index92.js +3 -3
- package/dist/index94.js +2 -2
- package/dist/index96.js +5 -5
- package/package.json +1 -1
- package/dist/index223.js +0 -4
- package/dist/index268.js +0 -9
- package/dist/index287.js +0 -203
- package/dist/index289.js +0 -69
- package/dist/index302.js +0 -5
package/dist/index283.js
CHANGED
|
@@ -1,4 +1,54 @@
|
|
|
1
|
-
|
|
1
|
+
import { defineComponent as b, computed as c, createElementBlock as l, openBlock as a, createElementVNode as h, Fragment as p, renderList as k, createBlock as f, normalizeClass as y, withCtx as M, createTextVNode as x, toDisplayString as B } from "vue";
|
|
2
|
+
import C from "./index14.js";
|
|
3
|
+
/* empty css */
|
|
4
|
+
const v = {
|
|
5
|
+
"aria-label": "Month selector",
|
|
6
|
+
class: "bb-base-date-picker__button-menu bb-base-date-picker__month-selector",
|
|
7
|
+
role: "listbox"
|
|
8
|
+
}, g = { class: "content" }, N = /* @__PURE__ */ b({
|
|
9
|
+
__name: "BaseDatePickerMonthSelector",
|
|
10
|
+
props: {
|
|
11
|
+
cursor: {},
|
|
12
|
+
disabled: { type: Boolean }
|
|
13
|
+
},
|
|
14
|
+
emits: ["update:month"],
|
|
15
|
+
setup(d, { emit: i }) {
|
|
16
|
+
const o = d, m = i, u = c(() => o.cursor.month()), _ = c(() => {
|
|
17
|
+
const t = o.cursor.clone().startOf("year"), n = u.value;
|
|
18
|
+
return Array.from({ length: 12 }, (e, r) => {
|
|
19
|
+
const s = t.add(r, "month");
|
|
20
|
+
return {
|
|
21
|
+
text: s.format("MMMM"),
|
|
22
|
+
key: s.unix(),
|
|
23
|
+
selected: r === n,
|
|
24
|
+
handler: () => m("update:month", r)
|
|
25
|
+
};
|
|
26
|
+
});
|
|
27
|
+
});
|
|
28
|
+
return (t, n) => (a(), l("div", v, [
|
|
29
|
+
h("div", g, [
|
|
30
|
+
(a(!0), l(p, null, k(_.value, (e) => (a(), f(C, {
|
|
31
|
+
key: e.key,
|
|
32
|
+
"aria-label": e.text,
|
|
33
|
+
"aria-selected": e.selected,
|
|
34
|
+
class: y({
|
|
35
|
+
content__btn: !0,
|
|
36
|
+
"content__btn--selected": e.selected
|
|
37
|
+
}),
|
|
38
|
+
disabled: t.disabled,
|
|
39
|
+
role: "option",
|
|
40
|
+
type: "button",
|
|
41
|
+
onClick: e.handler
|
|
42
|
+
}, {
|
|
43
|
+
default: M(() => [
|
|
44
|
+
x(B(e.text), 1)
|
|
45
|
+
]),
|
|
46
|
+
_: 2
|
|
47
|
+
}, 1032, ["aria-label", "aria-selected", "class", "disabled", "onClick"]))), 128))
|
|
48
|
+
])
|
|
49
|
+
]));
|
|
50
|
+
}
|
|
51
|
+
});
|
|
2
52
|
export {
|
|
3
|
-
|
|
53
|
+
N as default
|
|
4
54
|
};
|
package/dist/index284.js
CHANGED
|
@@ -1,9 +1,34 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}
|
|
1
|
+
import { defineComponent as c, createBlock as l, openBlock as m, Transition as u, withCtx as f, renderSlot as d } from "vue";
|
|
2
|
+
const y = /* @__PURE__ */ c({
|
|
3
|
+
__name: "ScaleFade",
|
|
4
|
+
props: {
|
|
5
|
+
duration: { default: 200 },
|
|
6
|
+
scaleFrom: { default: 0.97 }
|
|
7
|
+
},
|
|
8
|
+
setup(n) {
|
|
9
|
+
const t = n, a = (s) => {
|
|
10
|
+
const e = s;
|
|
11
|
+
e.style.opacity = "0", e.style.transform = `scale(${t.scaleFrom})`, e.style.transformOrigin = "center top";
|
|
12
|
+
}, r = (s, e) => {
|
|
13
|
+
const o = s;
|
|
14
|
+
o.style.transition = `opacity ${t.duration}ms ease-out, transform ${t.duration}ms cubic-bezier(0.34, 1.56, 0.64, 1)`, o.offsetHeight, o.style.opacity = "1", o.style.transform = "scale(1)", setTimeout(e, t.duration);
|
|
15
|
+
}, i = (s, e) => {
|
|
16
|
+
const o = s;
|
|
17
|
+
o.style.transition = `opacity ${t.duration}ms ease-in, transform ${t.duration}ms ease-in`, o.style.opacity = "0", o.style.transform = `scale(${t.scaleFrom})`, setTimeout(e, t.duration);
|
|
18
|
+
};
|
|
19
|
+
return (s, e) => (m(), l(u, {
|
|
20
|
+
css: !1,
|
|
21
|
+
onBeforeEnter: a,
|
|
22
|
+
onEnter: r,
|
|
23
|
+
onLeave: i
|
|
24
|
+
}, {
|
|
25
|
+
default: f(() => [
|
|
26
|
+
d(s.$slots, "default")
|
|
27
|
+
]),
|
|
28
|
+
_: 3
|
|
29
|
+
}));
|
|
30
|
+
}
|
|
31
|
+
});
|
|
7
32
|
export {
|
|
8
|
-
|
|
33
|
+
y as default
|
|
9
34
|
};
|
package/dist/index285.js
CHANGED
|
@@ -1,9 +1,62 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { defineComponent as g, ref as i, computed as d, onMounted as h, createElementBlock as m, openBlock as u, createElementVNode as y, Fragment as x, renderList as B, createBlock as C, normalizeClass as S, withCtx as T, createTextVNode as E, toDisplayString as w } from "vue";
|
|
2
|
+
import { range as H } from "./index353.js";
|
|
3
|
+
import M from "./index14.js";
|
|
4
|
+
/* empty css */
|
|
5
|
+
const n = 10, l = 3, V = /* @__PURE__ */ g({
|
|
6
|
+
__name: "BaseDatePickerYearSelector",
|
|
7
|
+
props: {
|
|
8
|
+
cursor: {},
|
|
9
|
+
disabled: { type: Boolean }
|
|
10
|
+
},
|
|
11
|
+
emits: ["update:year"],
|
|
12
|
+
setup(p, { emit: _ }) {
|
|
13
|
+
const f = p, b = _, o = i(), r = d(() => f.cursor.year()), c = i(r.value - n * l), s = i(r.value + n * l), v = d(
|
|
14
|
+
() => H(c.value, s.value).map((e) => ({
|
|
15
|
+
text: e,
|
|
16
|
+
key: e,
|
|
17
|
+
selected: e === r.value,
|
|
18
|
+
handler: () => b("update:year", e)
|
|
19
|
+
}))
|
|
20
|
+
), k = (e) => {
|
|
21
|
+
const t = e.target;
|
|
22
|
+
t.scrollTop <= 100 ? c.value = Math.max(
|
|
23
|
+
c.value - n * l,
|
|
24
|
+
r.value - 200
|
|
25
|
+
) : t.scrollHeight - t.scrollTop === t.clientHeight && (s.value = Math.min(s.value + n * l, 2101));
|
|
26
|
+
};
|
|
27
|
+
return h(() => {
|
|
28
|
+
if (!o.value) return;
|
|
29
|
+
const e = o.value.querySelector(
|
|
30
|
+
".content__btn--selected"
|
|
31
|
+
);
|
|
32
|
+
e && (e.parentElement.scrollTop = e.offsetTop - e.parentElement.clientHeight / 2 + 16);
|
|
33
|
+
}), (e, t) => (u(), m("div", {
|
|
34
|
+
ref_key: "container",
|
|
35
|
+
ref: o,
|
|
36
|
+
class: "bb-base-date-picker__button-menu bb-base-date-picker__year-selector scrollbar-border"
|
|
37
|
+
}, [
|
|
38
|
+
y("div", {
|
|
39
|
+
class: "content",
|
|
40
|
+
onScrollPassive: k
|
|
41
|
+
}, [
|
|
42
|
+
(u(!0), m(x, null, B(v.value, (a) => (u(), C(M, {
|
|
43
|
+
key: a.key,
|
|
44
|
+
class: S({
|
|
45
|
+
content__btn: !0,
|
|
46
|
+
"content__btn--selected": a.selected
|
|
47
|
+
}),
|
|
48
|
+
disabled: e.disabled,
|
|
49
|
+
onClick: a.handler
|
|
50
|
+
}, {
|
|
51
|
+
default: T(() => [
|
|
52
|
+
E(w(a.text), 1)
|
|
53
|
+
]),
|
|
54
|
+
_: 2
|
|
55
|
+
}, 1032, ["class", "disabled", "onClick"]))), 128))
|
|
56
|
+
], 32)
|
|
57
|
+
], 512));
|
|
58
|
+
}
|
|
59
|
+
});
|
|
7
60
|
export {
|
|
8
|
-
|
|
61
|
+
V as default
|
|
9
62
|
};
|
package/dist/index286.js
CHANGED
|
@@ -1,6 +1,108 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
}
|
|
1
|
+
import { defineComponent as y, ref as F, computed as H, watch as N, createElementBlock as L, openBlock as p, Fragment as S, renderList as V, createBlock as A, withModifiers as O, normalizeClass as P, withCtx as $, createTextVNode as z, toDisplayString as D } from "vue";
|
|
2
|
+
import { hash as d } from "./index244.js";
|
|
3
|
+
import { isNil as l } from "./index255.js";
|
|
4
|
+
import E from "./index68.js";
|
|
5
|
+
/* empty css */
|
|
6
|
+
const K = /* @__PURE__ */ y({
|
|
7
|
+
__name: "ChipsBox",
|
|
8
|
+
props: {
|
|
9
|
+
options: {}
|
|
10
|
+
},
|
|
11
|
+
emits: ["option:unselected"],
|
|
12
|
+
setup(f, { expose: v, emit: h }) {
|
|
13
|
+
const t = f, u = h, n = F(null), i = H(() => t.options.some((e) => !e.disabled)), a = (e = 1) => {
|
|
14
|
+
const s = l(n.value) ? -1 : n.value;
|
|
15
|
+
let o = (s + e) % t.options.length;
|
|
16
|
+
for (; t.options[o].disabled && o !== s; )
|
|
17
|
+
o = a(e + 1);
|
|
18
|
+
return o;
|
|
19
|
+
}, x = () => {
|
|
20
|
+
if (!i.value) return;
|
|
21
|
+
const e = a();
|
|
22
|
+
n.value = e;
|
|
23
|
+
}, c = (e = 1) => {
|
|
24
|
+
const s = l(n.value) ? 0 : n.value;
|
|
25
|
+
let o = (s - e + t.options.length) % t.options.length;
|
|
26
|
+
for (; t.options[o].disabled && o !== s; )
|
|
27
|
+
o = c(e + 1);
|
|
28
|
+
return o;
|
|
29
|
+
}, m = async () => {
|
|
30
|
+
if (!i.value) return;
|
|
31
|
+
const e = c();
|
|
32
|
+
n.value = e;
|
|
33
|
+
}, w = () => {
|
|
34
|
+
if (!i.value) return;
|
|
35
|
+
let e = 0;
|
|
36
|
+
for (; t.options[e].disabled; )
|
|
37
|
+
e++;
|
|
38
|
+
n.value = e;
|
|
39
|
+
}, b = () => {
|
|
40
|
+
if (!i.value) return;
|
|
41
|
+
let e = t.options.length - 1;
|
|
42
|
+
for (; t.options[e].disabled && e !== 0; )
|
|
43
|
+
e--;
|
|
44
|
+
n.value = e;
|
|
45
|
+
}, I = () => {
|
|
46
|
+
if (!i.value) return;
|
|
47
|
+
let e = 0;
|
|
48
|
+
for (; !t.options[e].selected && t.options.length !== e; )
|
|
49
|
+
e++;
|
|
50
|
+
n.value = e;
|
|
51
|
+
}, g = () => {
|
|
52
|
+
if (!i.value) return;
|
|
53
|
+
let e = t.options.length - 1;
|
|
54
|
+
for (; t.options[e].selected && e !== 0; )
|
|
55
|
+
e--;
|
|
56
|
+
n.value = e;
|
|
57
|
+
}, _ = (e) => {
|
|
58
|
+
if (!i.value) return;
|
|
59
|
+
const s = t.options.findIndex(
|
|
60
|
+
(o) => o.valueHash === e
|
|
61
|
+
);
|
|
62
|
+
s >= 0 && (n.value = s);
|
|
63
|
+
}, r = () => {
|
|
64
|
+
n.value = null;
|
|
65
|
+
}, k = () => {
|
|
66
|
+
if (l(n.value)) return;
|
|
67
|
+
const e = t.options[n.value];
|
|
68
|
+
e.selected && u("option:unselected", e);
|
|
69
|
+
}, C = () => l(n.value) ? void 0 : t.options[n.value];
|
|
70
|
+
return N(
|
|
71
|
+
() => t.options,
|
|
72
|
+
(e, s) => {
|
|
73
|
+
d(e) !== d(s) && r();
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
flush: "post"
|
|
77
|
+
}
|
|
78
|
+
), v({
|
|
79
|
+
focusNext: x,
|
|
80
|
+
focusPrevious: m,
|
|
81
|
+
focusFirst: w,
|
|
82
|
+
focusFirstSelected: I,
|
|
83
|
+
focusLast: b,
|
|
84
|
+
focusLastSelected: g,
|
|
85
|
+
blur: r,
|
|
86
|
+
confirmOption: k,
|
|
87
|
+
focusByHash: _,
|
|
88
|
+
getHighlighted: C
|
|
89
|
+
}), (e, s) => (p(!0), L(S, null, V(e.options, (o, B) => (p(), A(E, {
|
|
90
|
+
key: o.valueHash,
|
|
91
|
+
class: P({
|
|
92
|
+
"bb-chipsbox-item": !0,
|
|
93
|
+
"bb-chipsbox-item--focused": B === n.value
|
|
94
|
+
}),
|
|
95
|
+
clearable: !0,
|
|
96
|
+
text: o.text,
|
|
97
|
+
"onClick:clear": O((M) => u("option:unselected", o), ["stop"])
|
|
98
|
+
}, {
|
|
99
|
+
default: $(() => [
|
|
100
|
+
z(D(o.text), 1)
|
|
101
|
+
]),
|
|
102
|
+
_: 2
|
|
103
|
+
}, 1032, ["class", "text", "onClick:clear"]))), 128));
|
|
104
|
+
}
|
|
105
|
+
});
|
|
4
106
|
export {
|
|
5
|
-
|
|
107
|
+
K as default
|
|
6
108
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as F, ref as H, computed as L, watch as N, createElementBlock as d, openBlock as v, Fragment as S, renderList as A, withModifiers as O, normalizeClass as P, toDisplayString as V } from "vue";
|
|
2
|
-
import { hash as f } from "./
|
|
3
|
-
import { isNil as i } from "./
|
|
2
|
+
import { hash as f } from "./index244.js";
|
|
3
|
+
import { isNil as i } from "./index255.js";
|
|
4
4
|
const z = ["text", "onClick:clear"], j = /* @__PURE__ */ F({
|
|
5
5
|
__name: "CommaBox",
|
|
6
6
|
props: {
|
package/dist/index290.js
CHANGED
|
@@ -1,15 +1,23 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
function i(e, o) {
|
|
2
|
+
const l = {}, u = e.length;
|
|
3
|
+
for (let n = 0; n < u; n++) {
|
|
4
|
+
const s = e[n];
|
|
5
|
+
let f;
|
|
6
|
+
if (typeof o == "function")
|
|
7
|
+
f = o(s, n, e);
|
|
8
|
+
else {
|
|
9
|
+
const t = s[o];
|
|
10
|
+
if (typeof t == "string" || typeof t == "number" || typeof t == "symbol")
|
|
11
|
+
f = t;
|
|
12
|
+
else
|
|
13
|
+
throw new Error(
|
|
14
|
+
`Property "${String(o)}" must be of type string, number, or symbol`
|
|
15
|
+
);
|
|
16
|
+
}
|
|
17
|
+
l[f] = s;
|
|
10
18
|
}
|
|
11
|
-
return
|
|
12
|
-
}
|
|
19
|
+
return l;
|
|
20
|
+
}
|
|
13
21
|
export {
|
|
14
|
-
|
|
22
|
+
i as indexBy
|
|
15
23
|
};
|
package/dist/index291.js
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
const
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
const s = (r, t) => {
|
|
2
|
+
if (r.endsWith("."))
|
|
3
|
+
return t === 0 ? r.slice(0, -1) : r;
|
|
4
|
+
const [n, i] = r.split(".");
|
|
5
|
+
return i ? `${n}.${i.slice(0, t)}` : r;
|
|
6
|
+
};
|
|
5
7
|
export {
|
|
6
|
-
|
|
8
|
+
s as clampPrecision
|
|
7
9
|
};
|
package/dist/index292.js
CHANGED
package/dist/index293.js
CHANGED
|
@@ -1,8 +1,20 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { isNil as c } from "./index255.js";
|
|
2
|
+
const a = (t, r) => {
|
|
3
|
+
if (!Object.prototype.hasOwnProperty.call(t, r))
|
|
4
|
+
throw new Error(
|
|
5
|
+
`Object ${JSON.stringify(t, null, 2)} has no property named "${r.toString()}"`
|
|
6
|
+
);
|
|
7
|
+
}, l = (t) => typeof t == "string" ? t.toLocaleLowerCase() : JSON.stringify(t).toLowerCase(), y = (t, r, s) => {
|
|
8
|
+
const i = s.toLocaleLowerCase();
|
|
9
|
+
for (let e = 0; e < r.length; e++) {
|
|
10
|
+
const n = r[e];
|
|
11
|
+
a(t, n);
|
|
12
|
+
const o = t[n];
|
|
13
|
+
if (c(o)) continue;
|
|
14
|
+
if (l(o).includes(i)) return !0;
|
|
15
|
+
}
|
|
16
|
+
return !1;
|
|
17
|
+
};
|
|
5
18
|
export {
|
|
6
|
-
|
|
7
|
-
f as default
|
|
19
|
+
y as matchAnyKey
|
|
8
20
|
};
|
package/dist/index294.js
CHANGED
|
@@ -1,18 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
return i;
|
|
13
|
-
}
|
|
14
|
-
return t;
|
|
15
|
-
}, null);
|
|
1
|
+
import { ref as t } from "vue";
|
|
2
|
+
const n = () => {
|
|
3
|
+
const e = t([]);
|
|
4
|
+
return { array: e, set: (...r) => {
|
|
5
|
+
e.value = r;
|
|
6
|
+
}, add: (...r) => {
|
|
7
|
+
e.value.push(...r);
|
|
8
|
+
}, remove: (r) => {
|
|
9
|
+
e.value = e.value.filter(r);
|
|
10
|
+
} };
|
|
11
|
+
};
|
|
16
12
|
export {
|
|
17
|
-
|
|
13
|
+
n as useArray
|
|
18
14
|
};
|
package/dist/index295.js
CHANGED
|
@@ -1,11 +1,106 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
}
|
|
1
|
+
import { defineComponent as u, ref as g, createBlock as l, openBlock as d, withCtx as n, renderSlot as i, normalizeProps as s, guardReactiveProps as a } from "vue";
|
|
2
|
+
import m from "./index356.js";
|
|
3
|
+
import f from "./index357.js";
|
|
4
|
+
const B = /* @__PURE__ */ u({
|
|
5
|
+
__name: "ListBox",
|
|
6
|
+
props: {
|
|
7
|
+
compact: { type: Boolean },
|
|
8
|
+
options: {},
|
|
9
|
+
groups: {},
|
|
10
|
+
headerHeight: {},
|
|
11
|
+
open: { type: Boolean },
|
|
12
|
+
loading: { type: Boolean },
|
|
13
|
+
multiple: { type: Boolean },
|
|
14
|
+
transitionDuration: {},
|
|
15
|
+
loadingText: {},
|
|
16
|
+
noDataText: {},
|
|
17
|
+
optionHeight: {}
|
|
18
|
+
},
|
|
19
|
+
emits: ["option:selected", "option:unselected"],
|
|
20
|
+
setup(h, { expose: r }) {
|
|
21
|
+
const t = g();
|
|
22
|
+
return r({
|
|
23
|
+
focusNext: () => t.value?.focusNext(),
|
|
24
|
+
focusPrevious: () => t.value?.focusPrevious(),
|
|
25
|
+
focusFirst: () => t.value?.focusFirst(),
|
|
26
|
+
focusFirstSelected: () => t.value?.focusFirstSelected(),
|
|
27
|
+
focusLast: () => t.value?.focusLast(),
|
|
28
|
+
focusLastSelected: () => t.value?.focusLastSelected(),
|
|
29
|
+
blur: () => t.value?.blur(),
|
|
30
|
+
confirmOption: () => t.value?.confirmOption(),
|
|
31
|
+
focusByHash: (o) => t.value?.focusByHash(o),
|
|
32
|
+
getHighlighted: () => t.value?.getHighlighted()
|
|
33
|
+
}), (o, p) => o.groups ? (d(), l(f, {
|
|
34
|
+
key: 0,
|
|
35
|
+
ref_key: "child",
|
|
36
|
+
ref: t,
|
|
37
|
+
compact: o.compact,
|
|
38
|
+
groups: o.groups,
|
|
39
|
+
"header-height": o.headerHeight,
|
|
40
|
+
loading: o.loading,
|
|
41
|
+
"loading-text": o.loadingText,
|
|
42
|
+
multiple: o.multiple,
|
|
43
|
+
"no-data-text": o.noDataText,
|
|
44
|
+
open: o.open,
|
|
45
|
+
"option-height": o.optionHeight,
|
|
46
|
+
"transition-duration": o.transitionDuration,
|
|
47
|
+
"onOption:selected": p[0] || (p[0] = (e) => o.$emit("option:selected", e)),
|
|
48
|
+
"onOption:unselected": p[1] || (p[1] = (e) => o.$emit("option:unselected", e))
|
|
49
|
+
}, {
|
|
50
|
+
"options:prepend": n(() => [
|
|
51
|
+
i(o.$slots, "options:prepend")
|
|
52
|
+
]),
|
|
53
|
+
loading: n(() => [
|
|
54
|
+
i(o.$slots, "loading")
|
|
55
|
+
]),
|
|
56
|
+
"no-data": n(() => [
|
|
57
|
+
i(o.$slots, "no-data")
|
|
58
|
+
]),
|
|
59
|
+
"options:append": n(() => [
|
|
60
|
+
i(o.$slots, "options:append")
|
|
61
|
+
]),
|
|
62
|
+
option: n((e) => [
|
|
63
|
+
i(o.$slots, "option", s(a(e)))
|
|
64
|
+
]),
|
|
65
|
+
group: n((e) => [
|
|
66
|
+
i(o.$slots, "group", s(a(e)))
|
|
67
|
+
]),
|
|
68
|
+
_: 3
|
|
69
|
+
}, 8, ["compact", "groups", "header-height", "loading", "loading-text", "multiple", "no-data-text", "open", "option-height", "transition-duration"])) : (d(), l(m, {
|
|
70
|
+
key: 1,
|
|
71
|
+
ref_key: "child",
|
|
72
|
+
ref: t,
|
|
73
|
+
compact: o.compact,
|
|
74
|
+
loading: o.loading,
|
|
75
|
+
"loading-text": o.loadingText,
|
|
76
|
+
multiple: o.multiple,
|
|
77
|
+
"no-data-text": o.noDataText,
|
|
78
|
+
open: o.open,
|
|
79
|
+
options: o.options ?? [],
|
|
80
|
+
"option-height": o.optionHeight,
|
|
81
|
+
"transition-duration": o.transitionDuration,
|
|
82
|
+
"onOption:selected": p[2] || (p[2] = (e) => o.$emit("option:selected", e)),
|
|
83
|
+
"onOption:unselected": p[3] || (p[3] = (e) => o.$emit("option:unselected", e))
|
|
84
|
+
}, {
|
|
85
|
+
"options:prepend": n(() => [
|
|
86
|
+
i(o.$slots, "options:prepend")
|
|
87
|
+
]),
|
|
88
|
+
loading: n(() => [
|
|
89
|
+
i(o.$slots, "loading")
|
|
90
|
+
]),
|
|
91
|
+
"no-data": n(() => [
|
|
92
|
+
i(o.$slots, "no-data")
|
|
93
|
+
]),
|
|
94
|
+
"options:append": n(() => [
|
|
95
|
+
i(o.$slots, "options:append")
|
|
96
|
+
]),
|
|
97
|
+
option: n((e) => [
|
|
98
|
+
i(o.$slots, "option", s(a(e)))
|
|
99
|
+
]),
|
|
100
|
+
_: 3
|
|
101
|
+
}, 8, ["compact", "loading", "loading-text", "multiple", "no-data-text", "open", "options", "option-height", "transition-duration"]));
|
|
102
|
+
}
|
|
103
|
+
});
|
|
9
104
|
export {
|
|
10
|
-
|
|
105
|
+
B as default
|
|
11
106
|
};
|
package/dist/index296.js
ADDED
package/dist/index297.js
CHANGED
package/dist/index298.js
CHANGED
package/dist/index299.js
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import { get as t } from "./index278.js";
|
|
2
|
+
const o = () => ({
|
|
3
|
+
getItemText(r, n) {
|
|
4
|
+
if (typeof r == "string" && !n) return r;
|
|
5
|
+
if (n) {
|
|
6
|
+
if (typeof n == "function") {
|
|
7
|
+
let f = n(r);
|
|
8
|
+
return typeof f != "string" && (f = JSON.stringify(f)), f;
|
|
9
|
+
} else if (typeof n == "string") {
|
|
10
|
+
const f = t(r, n);
|
|
11
|
+
return typeof f == "string" ? f : JSON.stringify(f);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
return JSON.stringify(r);
|
|
15
|
+
}
|
|
16
|
+
});
|
|
3
17
|
export {
|
|
4
|
-
o as
|
|
18
|
+
o as useItemText
|
|
5
19
|
};
|
package/dist/index30.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as M, computed as T, ref as W, watchPostEffect as q, createBlock as F, openBlock as K, normalizeClass as L, withCtx as i, createVNode as O, unref as h, createElementVNode as z, mergeProps as G, withModifiers as R, renderSlot as d } from "vue";
|
|
2
2
|
import { clamp as c } from "./index217.js";
|
|
3
|
-
import { clampPrecision as U } from "./
|
|
4
|
-
import { isNil as f } from "./
|
|
3
|
+
import { clampPrecision as U } from "./index291.js";
|
|
4
|
+
import { isNil as f } from "./index255.js";
|
|
5
5
|
import { isNotNil as g } from "./index146.js";
|
|
6
6
|
import j from "./index137.js";
|
|
7
7
|
/* empty css */
|
package/dist/index300.js
CHANGED
|
@@ -1,19 +1,30 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
function y(t, r) {
|
|
2
|
+
return t > r ? 1 : -1;
|
|
3
|
+
}
|
|
4
|
+
function c(t, r) {
|
|
5
|
+
var n = 5381;
|
|
6
|
+
if (typeof t == "object" && t !== null && (t.toString === Object.prototype.toString || t.toString === Array.prototype.toString)) {
|
|
7
|
+
r || (r = /* @__PURE__ */ new WeakSet());
|
|
8
|
+
for (var p = Object.keys(t).sort(y), i = 0; i < p.length; i++) {
|
|
9
|
+
var s = p[i], e = t[s];
|
|
10
|
+
if (n = 33 * n ^ c(s, r), typeof e == "object" && e !== null && (t.toString === Object.prototype.toString || t.toString === Array.prototype.toString)) {
|
|
11
|
+
if (r.has(e)) continue;
|
|
12
|
+
r.add(e);
|
|
12
13
|
}
|
|
14
|
+
n = 33 * n ^ c(e, r);
|
|
13
15
|
}
|
|
14
|
-
return
|
|
16
|
+
return 33 * n ^ c(t.constructor, r);
|
|
15
17
|
}
|
|
16
|
-
|
|
18
|
+
var o = typeof t;
|
|
19
|
+
try {
|
|
20
|
+
t instanceof Date ? o += t.getTime() : o += String(t);
|
|
21
|
+
} catch {
|
|
22
|
+
o += String(Object.assign({}, t));
|
|
23
|
+
}
|
|
24
|
+
for (var a = 0; a < o.length; a++) n = 33 * n ^ o.charCodeAt(a);
|
|
25
|
+
return n;
|
|
26
|
+
}
|
|
17
27
|
export {
|
|
18
|
-
|
|
28
|
+
c as hash,
|
|
29
|
+
y as sortNumbers
|
|
19
30
|
};
|