bitboss-ui 2.0.69 → 2.0.71
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/index110.js +5 -5
- package/dist/index118.js +1 -1
- package/dist/index120.js +5 -5
- package/dist/index122.js +1 -1
- package/dist/index126.js +1 -1
- package/dist/index127.js +1 -1
- package/dist/index128.js +1 -1
- package/dist/index13.js +1 -1
- package/dist/index130.js +1 -1
- package/dist/index132.js +2 -2
- package/dist/index15.js +4 -4
- package/dist/index17.js +3 -3
- package/dist/index19.js +2 -2
- package/dist/index204.js +81 -2
- package/dist/index205.js +2 -81
- package/dist/index206.js +8 -2
- package/dist/index207.js +164 -4
- package/dist/index208.js +84 -2
- package/dist/index21.js +14 -14
- package/dist/index210.js +119 -155
- package/dist/index211.js +5 -84
- package/dist/index212.js +127 -0
- package/dist/index213.js +19 -53
- package/dist/index214.js +18 -0
- package/dist/index215.js +16 -13
- package/dist/index216.js +2 -20
- package/dist/index217.js +2 -4
- package/dist/index218.js +41 -2
- package/dist/index219.js +19 -105
- package/dist/index220.js +8 -0
- package/dist/index221.js +49 -96
- package/dist/index223.js +13 -2
- package/dist/index224.js +5 -3
- package/dist/index225.js +369 -2
- package/dist/index226.js +2 -126
- package/dist/index227.js +4 -5
- package/dist/index228.js +2 -125
- package/dist/index229.js +3 -19
- package/dist/index23.js +15 -15
- package/dist/index230.js +7 -16
- package/dist/index231.js +3 -16
- package/dist/index232.js +18 -40
- package/dist/index233.js +27 -6
- package/dist/index234.js +3 -5
- package/dist/index235.js +246 -366
- package/dist/index236.js +52 -2
- package/dist/index237.js +42 -16
- package/dist/index238.js +5 -3
- package/dist/index239.js +60 -3
- package/dist/index240.js +4 -7
- package/dist/index241.js +2 -19
- package/dist/index242.js +2 -27
- package/dist/index243.js +16 -247
- package/dist/index244.js +100 -46
- package/dist/index246.js +100 -5
- package/dist/index25.js +5 -5
- package/dist/index250.js +3 -6
- package/dist/index251.js +8 -15
- package/dist/index252.js +23 -3
- package/dist/index253.js +6 -9
- package/dist/index254.js +16 -23
- package/dist/index256.js +3 -4
- package/dist/index257.js +12 -2
- package/dist/index258.js +8 -8
- package/dist/index259.js +9 -3
- package/dist/index260.js +17 -12
- package/dist/index261.js +3 -8
- package/dist/index262.js +281 -17
- package/dist/index263.js +5 -3
- package/dist/index264.js +2 -3
- package/dist/index265.js +4 -0
- package/dist/index266.js +2 -7
- package/dist/index267.js +2 -176
- package/dist/index268.js +2 -3
- package/dist/index269.js +126 -3
- package/dist/index27.js +1 -1
- package/dist/index270.js +427 -24
- package/dist/index271.js +174 -279
- package/dist/index272.js +3 -6
- package/dist/index274.js +7 -2
- package/dist/index275.js +22 -2
- package/dist/index277.js +4 -2
- package/dist/index278.js +427 -117
- package/dist/index279.js +120 -424
- package/dist/index280.js +199 -21
- package/dist/index281.js +91 -0
- package/dist/index282.js +1 -1
- package/dist/index283.js +2 -211
- package/dist/index284.js +2 -436
- package/dist/index285.js +2 -127
- package/dist/index286.js +2 -200
- package/dist/index287.js +2 -89
- package/dist/index288.js +2 -5
- package/dist/index289.js +27 -65
- package/dist/index29.js +3 -3
- package/dist/index290.js +22 -2
- package/dist/index292.js +2 -2
- package/dist/index293.js +5 -2
- package/dist/index294.js +66 -2
- package/dist/index295.js +3 -2
- package/dist/index296.js +3 -22
- package/dist/index297.js +213 -0
- package/dist/index298.js +79 -4
- package/dist/index300.js +4 -59
- package/dist/index301.js +4 -79
- package/dist/index302.js +61 -0
- package/dist/index303.js +1 -1
- package/dist/index304.js +1 -1
- package/dist/index305.js +32 -3
- package/dist/index306.js +3 -10
- package/dist/index307.js +6 -32
- package/dist/index308.js +10 -6
- package/dist/index309.js +7 -2
- package/dist/index31.js +2 -2
- package/dist/index310.js +17 -45
- package/dist/index311.js +2 -7
- package/dist/index312.js +45 -17
- package/dist/index313.js +1 -1
- package/dist/index33.js +2 -2
- package/dist/index35.js +3 -3
- package/dist/index37.js +13 -13
- package/dist/index39.js +4 -4
- package/dist/index41.js +2 -2
- package/dist/index43.js +2 -2
- package/dist/index45.js +6 -6
- package/dist/index47.js +2 -2
- package/dist/index49.js +2 -2
- package/dist/index53.js +1 -1
- package/dist/index55.js +1 -1
- package/dist/index57.js +1 -1
- package/dist/index75.js +3 -3
- package/dist/index79.js +2 -2
- package/dist/index81.js +1 -1
- package/dist/index84.js +2 -2
- package/dist/index88.js +3 -3
- package/dist/index90.js +1 -1
- package/package.json +2 -2
- package/dist/index209.js +0 -10
- package/dist/index245.js +0 -46
- package/dist/index247.js +0 -62
- package/dist/index273.js +0 -4
- package/dist/index276.js +0 -4
- package/dist/index291.js +0 -4
- package/dist/index299.js +0 -6
package/dist/index246.js
CHANGED
@@ -1,7 +1,102 @@
|
|
1
|
-
import
|
2
|
-
|
3
|
-
import
|
4
|
-
const
|
1
|
+
import { defineComponent as F, ref as H, computed as L, watch as N, openBlock as d, createElementBlock as v, Fragment as S, renderList as A, normalizeClass as O, withModifiers as P, toDisplayString as V } from "vue";
|
2
|
+
import { hash as f } from "./index234.js";
|
3
|
+
import { isNil as i } from "./index129.js";
|
4
|
+
const z = ["text", "onClick:clear"], j = /* @__PURE__ */ F({
|
5
|
+
__name: "CommaBox",
|
6
|
+
props: {
|
7
|
+
options: {}
|
8
|
+
},
|
9
|
+
emits: ["option:unselected"],
|
10
|
+
setup(m, { expose: h, emit: x }) {
|
11
|
+
const t = m, a = x, n = H(null), l = L(() => t.options.some((e) => !e.disabled)), u = (e = 1) => {
|
12
|
+
const s = i(n.value) ? -1 : n.value;
|
13
|
+
let o = (s + e) % t.options.length;
|
14
|
+
for (; t.options[o].disabled && o !== s; )
|
15
|
+
o = u(e + 1);
|
16
|
+
return o;
|
17
|
+
}, b = () => {
|
18
|
+
if (!l.value) return;
|
19
|
+
const e = u();
|
20
|
+
n.value = e;
|
21
|
+
}, c = (e = 1) => {
|
22
|
+
const s = i(n.value) ? 0 : n.value;
|
23
|
+
let o = (s - e + t.options.length) % t.options.length;
|
24
|
+
for (; t.options[o].disabled && o !== s; )
|
25
|
+
o = c(e + 1);
|
26
|
+
return o;
|
27
|
+
}, w = async () => {
|
28
|
+
if (!l.value) return;
|
29
|
+
const e = c();
|
30
|
+
n.value = e;
|
31
|
+
}, I = () => {
|
32
|
+
if (!l.value) return;
|
33
|
+
let e = 0;
|
34
|
+
for (; t.options[e].disabled; )
|
35
|
+
e++;
|
36
|
+
n.value = e;
|
37
|
+
}, g = () => {
|
38
|
+
if (!l.value) return;
|
39
|
+
let e = t.options.length - 1;
|
40
|
+
for (; t.options[e].disabled && e !== 0; )
|
41
|
+
e--;
|
42
|
+
n.value = e;
|
43
|
+
}, k = () => {
|
44
|
+
if (!l.value) return;
|
45
|
+
let e = 0;
|
46
|
+
for (; !t.options[e].selected && t.options.length !== e; )
|
47
|
+
e++;
|
48
|
+
n.value = e;
|
49
|
+
}, _ = () => {
|
50
|
+
if (!l.value) return;
|
51
|
+
let e = t.options.length - 1;
|
52
|
+
for (; t.options[e].selected && e !== 0; )
|
53
|
+
e--;
|
54
|
+
n.value = e;
|
55
|
+
}, C = (e) => {
|
56
|
+
if (!l.value) return;
|
57
|
+
const s = t.options.findIndex(
|
58
|
+
(o) => o.valueHash === e
|
59
|
+
);
|
60
|
+
s >= 0 && (n.value = s);
|
61
|
+
}, r = () => {
|
62
|
+
n.value = null;
|
63
|
+
}, y = () => {
|
64
|
+
if (!n.value) return;
|
65
|
+
const e = t.options[n.value];
|
66
|
+
e.selected && a("option:unselected", e);
|
67
|
+
}, B = () => i(n.value) ? void 0 : t.options[n.value];
|
68
|
+
return N(
|
69
|
+
() => t.options,
|
70
|
+
(e, s) => {
|
71
|
+
f(e) !== f(s) && r();
|
72
|
+
},
|
73
|
+
{
|
74
|
+
flush: "post"
|
75
|
+
}
|
76
|
+
), h({
|
77
|
+
focusNext: b,
|
78
|
+
focusPrevious: w,
|
79
|
+
focusFirst: I,
|
80
|
+
focusFirstSelected: k,
|
81
|
+
focusLast: g,
|
82
|
+
focusLastSelected: _,
|
83
|
+
blur: r,
|
84
|
+
confirmOption: y,
|
85
|
+
focusByHash: C,
|
86
|
+
getHighlighted: B
|
87
|
+
}), (e, s) => (d(!0), v(S, null, A(e.options, (o, p) => (d(), v("span", {
|
88
|
+
key: o.valueHash,
|
89
|
+
class: O({
|
90
|
+
"bb-commabox-item": !0,
|
91
|
+
"bb-commabox-item--focused": p === n.value,
|
92
|
+
"bb-commabox-item--has-comma": p !== e.options.length - 1
|
93
|
+
}),
|
94
|
+
clearable: !0,
|
95
|
+
text: o.text,
|
96
|
+
"onClick:clear": P((D) => a("option:unselected", o), ["stop"])
|
97
|
+
}, V(o.text), 43, z))), 128));
|
98
|
+
}
|
99
|
+
});
|
5
100
|
export {
|
6
|
-
|
101
|
+
j as default
|
7
102
|
};
|
package/dist/index25.js
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
import { defineComponent as ae, ref as o, getCurrentInstance as se, computed as m, nextTick as N, useAttrs as ne, onMounted as ie, onBeforeUnmount as F, watch as re, openBlock as k, createBlock as ue, Teleport as de, createElementVNode as a, mergeProps as G, createElementBlock as T, renderSlot as u, createTextVNode as ce, toDisplayString as P, createCommentVNode as z } from "vue";
|
2
|
-
import { throttle as ve } from "./
|
3
|
-
import { useFocusTrap as fe } from "./
|
2
|
+
import { throttle as ve } from "./index229.js";
|
3
|
+
import { useFocusTrap as fe } from "./index218.js";
|
4
4
|
import { useId as K } from "./index8.js";
|
5
5
|
import { wait as H } from "./index131.js";
|
6
|
-
import { waitFor as be } from "./
|
7
|
-
import { useModalsState as C } from "./
|
8
|
-
import { useLogger as pe } from "./
|
6
|
+
import { waitFor as be } from "./index220.js";
|
7
|
+
import { useModalsState as C } from "./index230.js";
|
8
|
+
import { useLogger as pe } from "./index206.js";
|
9
9
|
const me = { class: "bb-base-dialog-close" }, ge = ["aria-label"], De = /* @__PURE__ */ ae({
|
10
10
|
__name: "BaseDialog",
|
11
11
|
props: {
|
package/dist/index250.js
CHANGED
package/dist/index251.js
CHANGED
@@ -1,18 +1,11 @@
|
|
1
|
-
const
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
const i = e(
|
7
|
-
[].concat(n[r]),
|
8
|
-
r,
|
9
|
-
f
|
10
|
-
);
|
11
|
-
if (i)
|
12
|
-
return i;
|
1
|
+
const o = (n, t) => {
|
2
|
+
for (let e = n.length - 1; e >= 0; e--) {
|
3
|
+
const i = n[e];
|
4
|
+
if (t(i, e, n))
|
5
|
+
return e;
|
13
6
|
}
|
14
|
-
return
|
15
|
-
}
|
7
|
+
return -1;
|
8
|
+
};
|
16
9
|
export {
|
17
|
-
|
10
|
+
o as findRightIndex
|
18
11
|
};
|
package/dist/index252.js
CHANGED
@@ -1,5 +1,25 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
const e = {
|
2
|
+
inert: ":not([inert]):not([inert] *)",
|
3
|
+
negTabIndex: ':not([tabindex^="-"])',
|
4
|
+
disabled: ":not(:disabled)"
|
5
|
+
}, n = [
|
6
|
+
`a[href]${e.inert}${e.negTabIndex}`,
|
7
|
+
`area[href]${e.inert}${e.negTabIndex}`,
|
8
|
+
`input:not([type="hidden"]):not([type="radio"])${e.inert}${e.negTabIndex}${e.disabled}`,
|
9
|
+
`input[type="radio"]${e.inert}${e.negTabIndex}${e.disabled}`,
|
10
|
+
`select${e.inert}${e.negTabIndex}${e.disabled}`,
|
11
|
+
`textarea${e.inert}${e.negTabIndex}${e.disabled}`,
|
12
|
+
`button${e.inert}${e.negTabIndex}${e.disabled}`,
|
13
|
+
`details${e.inert} > summary:first-of-type${e.negTabIndex}`,
|
14
|
+
// Discard until Firefox supports `:has()`
|
15
|
+
// See: https://github.com/KittyGiraudel/focusable-selectors/issues/12
|
16
|
+
// `details:not(:has(> summary))${not.inert}${not.negTabIndex}`,
|
17
|
+
`iframe${e.inert}${e.negTabIndex}`,
|
18
|
+
`audio[controls]${e.inert}${e.negTabIndex}`,
|
19
|
+
`video[controls]${e.inert}${e.negTabIndex}`,
|
20
|
+
`[contenteditable]${e.inert}${e.negTabIndex}`,
|
21
|
+
`[tabindex]${e.inert}${e.negTabIndex}`
|
22
|
+
];
|
3
23
|
export {
|
4
|
-
|
24
|
+
n as default
|
5
25
|
};
|
package/dist/index253.js
CHANGED
@@ -1,11 +1,8 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
return e;
|
6
|
-
}
|
7
|
-
return -1;
|
8
|
-
};
|
1
|
+
import e from "./index300.js";
|
2
|
+
import r from "./index301.js";
|
3
|
+
import o from "./index302.js";
|
4
|
+
const f = new o(r, e)._freeze();
|
9
5
|
export {
|
10
|
-
o as
|
6
|
+
o as Mime,
|
7
|
+
f as default
|
11
8
|
};
|
package/dist/index254.js
CHANGED
@@ -1,25 +1,18 @@
|
|
1
|
-
const e = {
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
// `details:not(:has(> summary))${not.inert}${not.negTabIndex}`,
|
17
|
-
`iframe${e.inert}${e.negTabIndex}`,
|
18
|
-
`audio[controls]${e.inert}${e.negTabIndex}`,
|
19
|
-
`video[controls]${e.inert}${e.negTabIndex}`,
|
20
|
-
`[contenteditable]${e.inert}${e.negTabIndex}`,
|
21
|
-
`[tabindex]${e.inert}${e.negTabIndex}`
|
22
|
-
];
|
1
|
+
const e = (o, r, f) => o.reduce((t, n) => {
|
2
|
+
if (t) return t;
|
3
|
+
if (f(n))
|
4
|
+
return n;
|
5
|
+
if (r in n) {
|
6
|
+
const i = e(
|
7
|
+
[].concat(n[r]),
|
8
|
+
r,
|
9
|
+
f
|
10
|
+
);
|
11
|
+
if (i)
|
12
|
+
return i;
|
13
|
+
}
|
14
|
+
return t;
|
15
|
+
}, null);
|
23
16
|
export {
|
24
|
-
|
17
|
+
e as findInTree
|
25
18
|
};
|
package/dist/index256.js
CHANGED
package/dist/index257.js
CHANGED
@@ -1,4 +1,14 @@
|
|
1
|
-
|
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
|
+
};
|
2
12
|
export {
|
3
|
-
|
13
|
+
n as useArray
|
4
14
|
};
|
package/dist/index258.js
CHANGED
@@ -1,11 +1,11 @@
|
|
1
|
-
|
2
|
-
const
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
if (typeof f == "string") return o(n, f);
|
1
|
+
function u(e, i) {
|
2
|
+
const n = /* @__PURE__ */ new Set(), s = [];
|
3
|
+
for (let t = 0; t < e.length; t++) {
|
4
|
+
const o = e[t], c = i(o);
|
5
|
+
n.has(c) || (n.add(c), s.push(o));
|
7
6
|
}
|
8
|
-
|
7
|
+
return s;
|
8
|
+
}
|
9
9
|
export {
|
10
|
-
|
10
|
+
u as uniqBy
|
11
11
|
};
|
package/dist/index259.js
CHANGED
@@ -1,5 +1,11 @@
|
|
1
|
-
import o from "./
|
2
|
-
|
1
|
+
import { get as o } from "./index308.js";
|
2
|
+
const e = () => ({
|
3
|
+
getItemValue(n, f) {
|
4
|
+
if (typeof f > "u") return n;
|
5
|
+
if (typeof f == "function") return f(n);
|
6
|
+
if (typeof f == "string") return o(n, f);
|
7
|
+
}
|
8
|
+
});
|
3
9
|
export {
|
4
|
-
|
10
|
+
e as useItemValue
|
5
11
|
};
|
package/dist/index260.js
CHANGED
@@ -1,14 +1,19 @@
|
|
1
|
-
import {
|
2
|
-
const
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
1
|
+
import { get as t } from "./index308.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
|
+
});
|
12
17
|
export {
|
13
|
-
|
18
|
+
o as useItemText
|
14
19
|
};
|
package/dist/index261.js
CHANGED
@@ -1,11 +1,6 @@
|
|
1
|
-
function u(e
|
2
|
-
|
3
|
-
for (let t = 0; t < e.length; t++) {
|
4
|
-
const o = e[t], c = i(o);
|
5
|
-
n.has(c) || (n.add(c), s.push(o));
|
6
|
-
}
|
7
|
-
return s;
|
1
|
+
function u(...e) {
|
2
|
+
return (r) => e.reduce((n, t) => t(n), r);
|
8
3
|
}
|
9
4
|
export {
|
10
|
-
u as
|
5
|
+
u as pipe
|
11
6
|
};
|