bitboss-ui 2.0.168 → 2.0.170
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/BbDropdown/BbDropdown.vue.d.ts +10 -10
- package/dist/components/BbPopover/BbPopover.vue.d.ts +10 -10
- package/dist/components/BbTooltip/BbTooltip.vue.d.ts +8 -8
- package/dist/components/CommonPopover.vue.d.ts +6 -6
- package/dist/index106.js +7 -7
- package/dist/index111.js +1 -1
- package/dist/index113.js +1 -1
- package/dist/index121.js +10 -10
- package/dist/index129.js +1 -1
- package/dist/index13.js +1 -1
- package/dist/index131.js +37 -37
- package/dist/index136.js +1 -1
- package/dist/index138.js +1 -1
- package/dist/index15.js +8 -8
- package/dist/index17.js +3 -3
- package/dist/index19.js +8 -8
- package/dist/index207.js +2 -2
- package/dist/index208.js +2 -2
- package/dist/index209.js +5 -66
- package/dist/index21.js +16 -16
- package/dist/index210.js +7 -0
- package/dist/index211.js +5 -13
- package/dist/index212.js +5 -177
- package/dist/index213.js +5 -2
- package/dist/index214.js +5 -4
- package/dist/index215.js +5 -2
- package/dist/index216.js +3 -41
- package/dist/index217.js +2 -6
- package/dist/index218.js +8 -7
- package/dist/index219.js +246 -11
- package/dist/index220.js +51 -12
- package/dist/index221.js +44 -4
- package/dist/index222.js +5 -20
- package/dist/index223.js +56 -90
- package/dist/index224.js +15 -0
- package/dist/index225.js +2 -200
- package/dist/index226.js +6 -0
- package/dist/index227.js +2 -86
- package/dist/index228.js +36 -0
- package/dist/index229.js +2 -29
- package/dist/index23.js +17 -17
- package/dist/index230.js +2 -17
- package/dist/index231.js +86 -51
- package/dist/index233.js +29 -3
- package/dist/index234.js +16 -11
- package/dist/index235.js +48 -13
- package/dist/index236.js +15 -2
- package/dist/index237.js +11 -17
- package/dist/index238.js +15 -127
- package/dist/index239.js +3 -106
- package/dist/index240.js +6 -0
- package/dist/index241.js +41 -100
- package/dist/index242.js +22 -0
- package/dist/index243.js +94 -12
- package/dist/index245.js +191 -219
- package/dist/index247.js +63 -31
- package/dist/index249.js +13 -2
- package/dist/index25.js +5 -5
- package/dist/index250.js +6 -2
- package/dist/index251.js +7 -5
- package/dist/index252.js +15 -5
- package/dist/index253.js +18 -5
- package/dist/index254.js +128 -5
- package/dist/index255.js +106 -5
- package/dist/index257.js +100 -9
- package/dist/index259.js +12 -5
- package/dist/index260.js +2 -5
- package/dist/index261.js +226 -6
- package/dist/index262.js +365 -247
- package/dist/index263.js +2 -52
- package/dist/index264.js +5 -44
- package/dist/index265.js +9 -5
- package/dist/index266.js +176 -59
- package/dist/index267.js +8 -9
- package/dist/index268.js +10 -2
- package/dist/index269.js +100 -8
- package/dist/index27.js +1 -1
- package/dist/index271.js +23 -101
- package/dist/index272.js +12 -0
- package/dist/index273.js +3 -23
- package/dist/index274.js +6 -3
- package/dist/index275.js +16 -6
- package/dist/index276.js +3 -16
- package/dist/index277.js +1 -1
- package/dist/index280.js +1 -1
- package/dist/index282.js +1 -1
- package/dist/index283.js +1 -1
- package/dist/index284.js +280 -4
- package/dist/index285.js +2 -3
- package/dist/index286.js +18 -0
- package/dist/index287.js +2 -7
- package/dist/index288.js +15 -3
- package/dist/index289.js +2 -471
- package/dist/index29.js +3 -3
- package/dist/index290.js +19 -2
- package/dist/index291.js +2 -7
- package/dist/index292.js +14 -10
- package/dist/index293.js +2 -3
- package/dist/index294.js +19 -3
- package/dist/index295.js +2 -3
- package/dist/index296.js +27 -17
- package/dist/index297.js +2 -28
- package/dist/index298.js +1 -1
- package/dist/index299.js +2 -200
- package/dist/index300.js +2 -129
- package/dist/index301.js +2 -3
- package/dist/index302.js +28 -3
- package/dist/index303.js +21 -1
- package/dist/index305.js +6 -125
- package/dist/index306.js +7 -280
- package/dist/index307.js +11 -2
- package/dist/index308.js +4 -125
- package/dist/index309.js +2 -2
- package/dist/index31.js +2 -2
- package/dist/index310.js +5 -15
- package/dist/index311.js +4 -2
- package/dist/index312.js +3 -16
- package/dist/index313.js +17 -2
- package/dist/index314.js +5 -19
- package/dist/index315.js +471 -2
- package/dist/index316.js +3 -15
- package/dist/index317.js +3 -2
- package/dist/index318.js +3 -5
- package/dist/index320.js +199 -18
- package/dist/index321.js +2 -2
- package/dist/index322.js +128 -26
- package/dist/index323.js +3 -2
- package/dist/index324.js +3 -2
- package/dist/index325.js +1 -1
- package/dist/index326.js +382 -2
- package/dist/index327.js +126 -2
- package/dist/index328.js +125 -22
- package/dist/index329.js +4 -0
- package/dist/index33.js +8 -8
- package/dist/index330.js +3 -5
- package/dist/index331.js +5 -3
- package/dist/index336.js +7 -5
- package/dist/index337.js +18 -6
- package/dist/index338.js +5 -17
- package/dist/index339.js +32 -227
- package/dist/index340.js +28 -47
- package/dist/index342.js +227 -57
- package/dist/index343.js +33 -33
- package/dist/index344.js +58 -8
- package/dist/index345.js +7 -5
- package/dist/index346.js +6 -8
- package/dist/index347.js +7 -32
- package/dist/index348.js +5 -28
- package/dist/index349.js +49 -0
- package/dist/index35.js +4 -4
- package/dist/index350.js +1 -1
- package/dist/index352.js +5 -0
- package/dist/index353.js +482 -3
- package/dist/index355.js +1 -1
- package/dist/index37.js +22 -22
- package/dist/index39.js +5 -5
- package/dist/index41.js +2 -2
- package/dist/index43.js +8 -8
- package/dist/index45.js +8 -8
- package/dist/index47.js +2 -2
- package/dist/index49.js +3 -3
- package/dist/index53.js +1 -1
- package/dist/index55.js +1 -1
- package/dist/index57.js +2 -2
- package/dist/index61.js +3 -3
- package/dist/index67.js +1 -1
- package/dist/index79.js +56 -56
- package/dist/index81.js +1 -1
- package/dist/index83.js +2 -2
- package/dist/index85.js +1 -1
- package/dist/index87.js +1 -1
- package/dist/index90.js +4 -4
- package/dist/index92.js +2 -2
- package/dist/index94.js +25 -25
- package/dist/index96.js +1 -1
- package/package.json +1 -1
- package/dist/index232.js +0 -17
- package/dist/index244.js +0 -4
- package/dist/index246.js +0 -370
- package/dist/index248.js +0 -4
- package/dist/index256.js +0 -7
- package/dist/index258.js +0 -5
- package/dist/index270.js +0 -13
- package/dist/index304.js +0 -384
- package/dist/index319.js +0 -8
- package/dist/index341.js +0 -9
- package/dist/index351.js +0 -484
package/dist/index241.js
CHANGED
@@ -1,102 +1,43 @@
|
|
1
|
-
import {
|
2
|
-
import {
|
3
|
-
import {
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
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 (i(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) => (v(!0), d(S, null, A(e.options, (o, p) => (v(), d("span", {
|
88
|
-
key: o.valueHash,
|
89
|
-
class: P({
|
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": O((D) => a("option:unselected", o), ["stop"])
|
97
|
-
}, V(o.text), 43, z))), 128));
|
98
|
-
}
|
99
|
-
});
|
1
|
+
import { unrefElement as g } from "./index137.js";
|
2
|
+
import { toArray as A, notNullish as D, tryOnScopeDispose as y } from "./index206.js";
|
3
|
+
import { createFocusTrap as F } from "./index315.js";
|
4
|
+
import { shallowRef as n, computed as T, toValue as i, watch as w } from "vue";
|
5
|
+
function N(f, a = {}) {
|
6
|
+
let t;
|
7
|
+
const { immediate: l, ...p } = a, o = n(!1), r = n(!1), c = (e) => t && t.activate(e), u = (e) => t && t.deactivate(e), v = () => {
|
8
|
+
t && (t.pause(), r.value = !0);
|
9
|
+
}, m = () => {
|
10
|
+
t && (t.unpause(), r.value = !1);
|
11
|
+
}, h = T(() => {
|
12
|
+
const e = i(f);
|
13
|
+
return A(e).map((d) => {
|
14
|
+
const s = i(d);
|
15
|
+
return typeof s == "string" ? s : g(s);
|
16
|
+
}).filter(D);
|
17
|
+
});
|
18
|
+
return w(
|
19
|
+
h,
|
20
|
+
(e) => {
|
21
|
+
e.length && (t = F(e, {
|
22
|
+
...p,
|
23
|
+
onActivate() {
|
24
|
+
o.value = !0, a.onActivate && a.onActivate();
|
25
|
+
},
|
26
|
+
onDeactivate() {
|
27
|
+
o.value = !1, a.onDeactivate && a.onDeactivate();
|
28
|
+
}
|
29
|
+
}), l && c());
|
30
|
+
},
|
31
|
+
{ flush: "post" }
|
32
|
+
), y(() => u()), {
|
33
|
+
hasFocus: o,
|
34
|
+
isPaused: r,
|
35
|
+
activate: c,
|
36
|
+
deactivate: u,
|
37
|
+
pause: v,
|
38
|
+
unpause: m
|
39
|
+
};
|
40
|
+
}
|
100
41
|
export {
|
101
|
-
|
42
|
+
N as useFocusTrap
|
102
43
|
};
|
package/dist/index242.js
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
import { MaskInput as r } from "./index266.js";
|
2
|
+
const u = /* @__PURE__ */ new WeakMap(), p = (a, n) => {
|
3
|
+
if (a.arg == null || a.instance == null) return;
|
4
|
+
const s = "setup" in a.instance.$.type;
|
5
|
+
a.arg in a.instance ? a.instance[a.arg] = n : s && console.warn("Maska: please expose `%s` using defineExpose", a.arg);
|
6
|
+
}, k = (a, n) => {
|
7
|
+
var s;
|
8
|
+
const t = a instanceof HTMLInputElement ? a : a.querySelector("input");
|
9
|
+
if (t == null || (t == null ? void 0 : t.type) === "file") return;
|
10
|
+
let e = {};
|
11
|
+
if (n.value != null && (e = typeof n.value == "string" ? { mask: n.value } : { ...n.value }), n.arg != null) {
|
12
|
+
const l = (o) => {
|
13
|
+
const i = n.modifiers.unmasked ? o.unmasked : n.modifiers.completed ? o.completed : o.masked;
|
14
|
+
p(n, i);
|
15
|
+
};
|
16
|
+
e.onMaska = e.onMaska == null ? l : Array.isArray(e.onMaska) ? [...e.onMaska, l] : [e.onMaska, l];
|
17
|
+
}
|
18
|
+
u.has(t) ? (s = u.get(t)) == null || s.update(e) : u.set(t, new r(t, e));
|
19
|
+
};
|
20
|
+
export {
|
21
|
+
k as vMaska
|
22
|
+
};
|
package/dist/index243.js
CHANGED
@@ -1,14 +1,96 @@
|
|
1
|
-
import { ref as
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
}
|
1
|
+
import { defineComponent as h, toRef as y, ref as o, computed as n, watch as x, createBlock as $, openBlock as b, withCtx as A, createElementBlock as k, mergeProps as l, createElementVNode as f, renderSlot as B } from "vue";
|
2
|
+
import C from "./index252.js";
|
3
|
+
import c from "./index348.js";
|
4
|
+
import { useFloating as D, arrow as E } from "./index254.js";
|
5
|
+
import { flip as P, offset as F, shift as M, autoUpdate as S } from "./index262.js";
|
6
|
+
const W = /* @__PURE__ */ h({
|
7
|
+
__name: "CommonFloating",
|
8
|
+
props: {
|
9
|
+
arrowPadding: {},
|
10
|
+
eager: { type: Boolean },
|
11
|
+
offset: {},
|
12
|
+
padding: {},
|
13
|
+
placement: {},
|
14
|
+
theme: { default: "default" },
|
15
|
+
transitionDuration: {},
|
16
|
+
containerAttributes: { default: () => ({}) },
|
17
|
+
bubbleAttributes: {},
|
18
|
+
wrapper: {},
|
19
|
+
baseClass: {},
|
20
|
+
open: { type: Boolean },
|
21
|
+
teleportTarget: {}
|
22
|
+
},
|
23
|
+
setup(d) {
|
24
|
+
const e = d, m = y(e, "wrapper"), i = o(), s = o(), p = o(), { floatingStyles: g, placement: w, middlewareData: a } = D(
|
25
|
+
i,
|
26
|
+
s,
|
27
|
+
{
|
28
|
+
placement: e.placement,
|
29
|
+
whileElementsMounted: S,
|
30
|
+
middleware: [
|
31
|
+
P(),
|
32
|
+
F(e.offset),
|
33
|
+
M({ padding: e.padding }),
|
34
|
+
E({
|
35
|
+
element: p,
|
36
|
+
padding: e.arrowPadding
|
37
|
+
})
|
38
|
+
]
|
39
|
+
}
|
40
|
+
), _ = n(() => {
|
41
|
+
if (a.value.arrow) {
|
42
|
+
const { x: t, y: r } = a.value.arrow;
|
43
|
+
return {
|
44
|
+
style: {
|
45
|
+
left: `${t}px`,
|
46
|
+
top: `${r}px`
|
47
|
+
}
|
48
|
+
};
|
49
|
+
}
|
50
|
+
}), u = n(() => {
|
51
|
+
var t, r;
|
52
|
+
return c({}, e.containerAttributes, {
|
53
|
+
class: {
|
54
|
+
"bb-floating": !0,
|
55
|
+
[`bb-floating--${w.value}`]: !0,
|
56
|
+
[`${e.baseClass}__bubble-container--${e.theme}`]: e.theme,
|
57
|
+
"bb-floating--hidden": !e.open,
|
58
|
+
"bb-floating--open": e.open
|
59
|
+
},
|
60
|
+
style: {
|
61
|
+
...g.value,
|
62
|
+
"--transition-duration": `${e.transitionDuration}ms`,
|
63
|
+
"--arrow-offset-x": Math.round(((r = (t = a.value) == null ? void 0 : t.arrow) == null ? void 0 : r.x) ?? 0) + "px"
|
64
|
+
},
|
65
|
+
tabindex: e.open ? void 0 : -1
|
66
|
+
});
|
67
|
+
}), v = n(() => c({}, e.bubbleAttributes, {}));
|
68
|
+
return x(
|
69
|
+
() => e.open,
|
70
|
+
(t) => {
|
71
|
+
t && (i.value = m.value);
|
72
|
+
}
|
73
|
+
), (t, r) => (b(), $(C, { target: t.teleportTarget }, {
|
74
|
+
default: A(() => [
|
75
|
+
(b(), k("span", l(u.value, {
|
76
|
+
key: u.value.id,
|
77
|
+
ref_key: "content",
|
78
|
+
ref: s
|
79
|
+
}), [
|
80
|
+
f("span", l({
|
81
|
+
ref_key: "bubblearrow",
|
82
|
+
ref: p,
|
83
|
+
class: "bb-floating__arrow"
|
84
|
+
}, _.value), null, 16),
|
85
|
+
f("span", l({ class: "bb-floating__bubble" }, v.value), [
|
86
|
+
B(t.$slots, "default")
|
87
|
+
], 16)
|
88
|
+
], 16))
|
89
|
+
]),
|
90
|
+
_: 3
|
91
|
+
}, 8, ["target"]));
|
92
|
+
}
|
93
|
+
});
|
12
94
|
export {
|
13
|
-
|
95
|
+
W as default
|
14
96
|
};
|