bitboss-ui 2.0.142 → 2.0.144
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/RouterComponent.vue.d.ts +16 -0
- package/dist/index100.js +9 -9
- package/dist/index111.js +12 -12
- package/dist/index119.js +2 -2
- package/dist/index121.js +6 -6
- package/dist/index123.js +1 -1
- package/dist/index125.js +1 -1
- package/dist/index127.js +1 -1
- package/dist/index128.js +1 -1
- package/dist/index129.js +1 -1
- package/dist/index13.js +39 -52
- package/dist/index131.js +1 -1
- package/dist/index133.js +1 -1
- package/dist/index134.js +2 -2
- package/dist/index15.js +8 -8
- package/dist/index17.js +3 -3
- package/dist/index19.js +35 -33
- package/dist/index207.js +3 -2
- package/dist/index208.js +2 -2
- package/dist/index209.js +4 -5
- package/dist/index21.js +16 -16
- package/dist/index210.js +2 -125
- package/dist/index211.js +4 -16
- package/dist/index212.js +40 -15
- package/dist/index213.js +20 -19
- package/dist/index214.js +94 -15
- package/dist/index216.js +200 -2
- package/dist/index218.js +65 -12
- package/dist/index220.js +13 -6
- package/dist/index221.js +12 -93
- package/dist/index222.js +36 -0
- package/dist/index223.js +5 -66
- package/dist/index224.js +18 -0
- package/dist/index225.js +16 -13
- package/dist/index226.js +19 -2
- package/dist/index227.js +15 -86
- package/dist/index228.js +21 -0
- package/dist/index229.js +27 -29
- package/dist/index23.js +16 -16
- package/dist/index230.js +3 -17
- package/dist/index231.js +2 -51
- package/dist/index232.js +8 -15
- package/dist/index233.js +250 -3
- package/dist/index234.js +52 -12
- package/dist/index235.js +44 -16
- package/dist/index236.js +5 -8
- package/dist/index237.js +60 -2
- package/dist/index238.js +3 -4
- package/dist/index239.js +6 -2
- package/dist/index240.js +7 -3
- package/dist/index241.js +15 -19
- package/dist/index242.js +2 -27
- package/dist/index243.js +79 -243
- package/dist/index245.js +29 -44
- package/dist/index246.js +17 -5
- package/dist/index247.js +50 -59
- package/dist/index248.js +15 -4
- package/dist/index249.js +12 -200
- package/dist/index25.js +7 -7
- package/dist/index250.js +18 -0
- package/dist/index251.js +125 -3
- package/dist/index252.js +2 -7
- package/dist/index253.js +2 -15
- package/dist/index254.js +2 -18
- package/dist/index255.js +17 -125
- package/dist/index256.js +124 -104
- package/dist/index257.js +108 -0
- package/dist/{index258.js → index259.js} +2 -2
- package/dist/index261.js +12 -228
- package/dist/index262.js +226 -367
- package/dist/index263.js +369 -2
- package/dist/index264.js +2 -2
- package/dist/index265.js +2 -10
- package/dist/index266.js +9 -2
- package/dist/index267.js +2 -8
- package/dist/index268.js +6 -23
- package/dist/index269.js +16 -6
- package/dist/index27.js +1 -1
- package/dist/index270.js +8 -15
- package/dist/index271.js +23 -3
- package/dist/index272.js +224 -17
- package/dist/index273.js +4 -9
- package/dist/index274.js +8 -27
- package/dist/index275.js +427 -277
- package/dist/index276.js +175 -5
- package/dist/index277.js +3 -2
- package/dist/index278.js +3 -2
- package/dist/index279.js +3 -2
- package/dist/index281.js +7 -2
- package/dist/index282.js +7 -2
- package/dist/index283.js +10 -430
- package/dist/index284.js +2 -176
- package/dist/index285.js +9 -3
- package/dist/index286.js +8 -3
- package/dist/index287.js +202 -0
- package/dist/index288.js +281 -7
- package/dist/index289.js +6 -7
- package/dist/index29.js +3 -3
- package/dist/index290.js +2 -11
- package/dist/index291.js +2 -4
- package/dist/index292.js +2 -200
- package/dist/index295.js +2 -2
- package/dist/index296.js +2 -2
- package/dist/index297.js +1 -1
- package/dist/index298.js +1 -1
- package/dist/index299.js +1 -21
- package/dist/index300.js +4 -0
- package/dist/index301.js +26 -222
- package/dist/index302.js +22 -9
- package/dist/index304.js +2 -3
- package/dist/index305.js +89 -2
- package/dist/index306.js +3 -89
- package/dist/index307.js +15 -124
- package/dist/index308.js +2 -3
- package/dist/index309.js +126 -3
- package/dist/index31.js +2 -2
- package/dist/index310.js +3 -2
- package/dist/index311.js +3 -436
- package/dist/index312.js +2 -127
- package/dist/index313.js +436 -2
- package/dist/index314.js +126 -66
- package/dist/index315.js +67 -5
- package/dist/index316.js +5 -5
- package/dist/index317.js +2 -8
- package/dist/index321.js +4 -32
- package/dist/index322.js +8 -28
- package/dist/index323.js +6 -0
- package/dist/index324.js +2 -2
- package/dist/index325.js +7 -58
- package/dist/index326.js +33 -33
- package/dist/index327.js +58 -4
- package/dist/index328.js +46 -6
- package/dist/index329.js +6 -18
- package/dist/index33.js +37 -35
- package/dist/index330.js +17 -5
- package/dist/index331.js +32 -7
- package/dist/index332.js +28 -6
- package/dist/index334.js +7 -46
- package/dist/index335.js +6 -2
- package/dist/index337.js +2 -3
- package/dist/index339.js +3 -424
- package/dist/index340.js +420 -43
- package/dist/index341.js +49 -0
- package/dist/index35.js +4 -4
- package/dist/index37.js +22 -22
- package/dist/index39.js +5 -5
- package/dist/index41.js +2 -2
- package/dist/index43.js +34 -32
- package/dist/index45.js +8 -8
- 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 +2 -2
- package/dist/index61.js +10 -12
- package/dist/index75.js +3 -3
- package/dist/index77.js +1 -1
- package/dist/index79.js +2 -2
- package/dist/index81.js +1 -1
- package/dist/index84.js +4 -4
- package/dist/index86.js +2 -2
- package/dist/index88.js +4 -4
- package/dist/index90.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/index215.js +0 -4
- package/dist/index217.js +0 -43
- package/dist/index219.js +0 -22
- package/dist/index244.js +0 -54
- package/dist/index260.js +0 -14
- package/dist/index303.js +0 -10
- package/dist/index338.js +0 -4
- /package/dist/{index333.js → index336.js} +0 -0
- /package/dist/{index280.js → index342.js} +0 -0
package/dist/index33.js
CHANGED
@@ -1,16 +1,16 @@
|
|
1
|
-
import { defineComponent as M, ref as g, toRef as d, openBlock as S, createBlock as R, unref as V, withCtx as t, renderSlot as i, normalizeProps as
|
1
|
+
import { defineComponent as M, ref as g, toRef as d, openBlock as S, createBlock as R, unref as V, withCtx as t, renderSlot as i, normalizeProps as h, guardReactiveProps as v, createVNode as z, mergeProps as k, createSlots as G } from "vue";
|
2
2
|
import W from "./index31.js";
|
3
3
|
/* empty css */
|
4
|
-
import j from "./
|
4
|
+
import j from "./index243.js";
|
5
5
|
/* empty css */
|
6
|
-
import { useItemsGetter as A } from "./
|
7
|
-
import { usePrefill as K } from "./
|
8
|
-
import { useIndexById as
|
9
|
-
import { useBaseOptions as N } from "./
|
10
|
-
import { useCoherence as O } from "./
|
11
|
-
import { hash as U } from "./
|
12
|
-
import { useHashedWatcher as T } from "./
|
13
|
-
const
|
6
|
+
import { useItemsGetter as A } from "./index245.js";
|
7
|
+
import { usePrefill as K } from "./index250.js";
|
8
|
+
import { useIndexById as B } from "./index246.js";
|
9
|
+
import { useBaseOptions as N } from "./index247.js";
|
10
|
+
import { useCoherence as O } from "./index248.js";
|
11
|
+
import { hash as U } from "./index230.js";
|
12
|
+
import { useHashedWatcher as T } from "./index249.js";
|
13
|
+
const le = /* @__PURE__ */ M({
|
14
14
|
__name: "BaseRadioGroup",
|
15
15
|
props: {
|
16
16
|
ariaDescribedby: {},
|
@@ -36,33 +36,33 @@ const se = /* @__PURE__ */ M({
|
|
36
36
|
required: { type: Boolean }
|
37
37
|
},
|
38
38
|
emits: ["blur", "change", "click", "focus", "inactive", "input", "keydown", "mousedown", "mouseup", "update:modelValue"],
|
39
|
-
setup(
|
40
|
-
const o =
|
41
|
-
getter:
|
42
|
-
items:
|
39
|
+
setup($, { emit: E }) {
|
40
|
+
const o = $, a = E, u = g(), r = g(!1), {
|
41
|
+
getter: m,
|
42
|
+
items: L,
|
43
43
|
loading: w
|
44
44
|
} = A({
|
45
45
|
items: d(o, "items")
|
46
|
-
}),
|
46
|
+
}), c = () => {
|
47
47
|
o.enforceCoherence && !y.value && a("update:modelValue", null);
|
48
48
|
}, { hasPrefilled: D } = K({
|
49
49
|
onStart: !0,
|
50
50
|
currentValue: o.modelValue,
|
51
51
|
multiple: !1,
|
52
52
|
fn: async ({ prefill: e }) => {
|
53
|
-
await
|
53
|
+
await m(e, o.modelValue), c();
|
54
54
|
}
|
55
|
-
}), { data: I } =
|
55
|
+
}), { data: I } = B({
|
56
56
|
items: d(o, "modelValue")
|
57
57
|
}), { options: b } = N({
|
58
58
|
disabled: d(o, "disabled"),
|
59
|
-
items:
|
59
|
+
items: L,
|
60
60
|
itemText: o.itemText,
|
61
61
|
itemValue: o.itemValue,
|
62
62
|
max: 1 / 0,
|
63
63
|
selectable: !0,
|
64
64
|
selectedIndexedByHash: I
|
65
|
-
}), { data: C } =
|
65
|
+
}), { data: C } = B({
|
66
66
|
items: b,
|
67
67
|
key: "valueHash"
|
68
68
|
}), { coherent: y } = O({
|
@@ -70,11 +70,11 @@ const se = /* @__PURE__ */ M({
|
|
70
70
|
multiple: !1,
|
71
71
|
iteratee: (e) => !!C.value[U(e)]
|
72
72
|
});
|
73
|
-
let
|
73
|
+
let s = 0;
|
74
74
|
T(
|
75
75
|
() => o.modelValue,
|
76
76
|
async () => {
|
77
|
-
|
77
|
+
s++, y.value || (await m(!1, o.modelValue), c()), s--;
|
78
78
|
},
|
79
79
|
{
|
80
80
|
debounce: o.modelValueDebounceTime
|
@@ -82,7 +82,7 @@ const se = /* @__PURE__ */ M({
|
|
82
82
|
), T(
|
83
83
|
() => [o.dependencies, o.items],
|
84
84
|
async () => {
|
85
|
-
D.value && (
|
85
|
+
D.value && (s++, await m(!1, o.modelValue), s === 1 && c(), s--);
|
86
86
|
},
|
87
87
|
{
|
88
88
|
debounce: o.depsDebounceTime
|
@@ -96,21 +96,23 @@ const se = /* @__PURE__ */ M({
|
|
96
96
|
onChange: (e) => a("change", e),
|
97
97
|
onClick: (e) => a("click", e),
|
98
98
|
onFocus: (e) => {
|
99
|
-
a("focus", e), r.value || (document.addEventListener("focusin",
|
99
|
+
a("focus", e), r.value || (document.addEventListener("focusin", p, { passive: !0 }), document.addEventListener("click", f, { passive: !0 }), r.value = !0);
|
100
100
|
},
|
101
101
|
onInput: (e) => a("input", e),
|
102
102
|
onKeydown: (e) => a("keydown", e),
|
103
103
|
onMousedown: (e) => a("mousedown", e),
|
104
104
|
onMouseup: (e) => a("mouseup", e),
|
105
105
|
"onUpdate:modelValue": (e) => a("update:modelValue", e)
|
106
|
-
}, c = (e) => {
|
107
|
-
var s;
|
108
|
-
e.target instanceof HTMLElement && ((s = v.value) != null && s.contains(e.target) || (a("inactive"), r.value = !1, document.removeEventListener("focusin", c), document.removeEventListener("click", p)));
|
109
106
|
}, p = (e) => {
|
110
|
-
var
|
111
|
-
e.target instanceof HTMLElement && ((
|
107
|
+
var l;
|
108
|
+
e.target instanceof HTMLElement && ((l = u.value) != null && l.$el.contains(e.target) || (a("inactive"), r.value = !1, document.removeEventListener("focusin", p), document.removeEventListener("click", f)));
|
109
|
+
}, f = (e) => {
|
110
|
+
var l;
|
111
|
+
e.target instanceof HTMLElement && ((l = u.value) != null && l.$el.contains(e.target) || (a("inactive"), r.value = !1, document.removeEventListener("focusin", p), document.removeEventListener("click", f)));
|
112
112
|
};
|
113
|
-
return (e,
|
113
|
+
return (e, l) => (S(), R(j, {
|
114
|
+
ref_key: "container",
|
115
|
+
ref: u,
|
114
116
|
class: "bb-base-radio-group",
|
115
117
|
direction: e.direction,
|
116
118
|
"has-errors": e.hasErrors,
|
@@ -130,13 +132,13 @@ const se = /* @__PURE__ */ M({
|
|
130
132
|
i(e.$slots, "no-data")
|
131
133
|
]),
|
132
134
|
label: t((n) => [
|
133
|
-
i(e.$slots, "label",
|
135
|
+
i(e.$slots, "label", h(v(n)))
|
134
136
|
]),
|
135
137
|
"option:prepend": t((n) => [
|
136
|
-
i(e.$slots, "option:prepend",
|
138
|
+
i(e.$slots, "option:prepend", h(v(n)))
|
137
139
|
]),
|
138
140
|
input: t(({ option: n, index: q }) => [
|
139
|
-
z(W,
|
141
|
+
z(W, k({
|
140
142
|
id: H(n),
|
141
143
|
"aria-describedby": e.ariaDescribedby,
|
142
144
|
autofocus: e.autofocus && !q,
|
@@ -153,7 +155,7 @@ const se = /* @__PURE__ */ M({
|
|
153
155
|
e.$slots.icon ? {
|
154
156
|
name: "icon",
|
155
157
|
fn: t((F) => [
|
156
|
-
i(e.$slots, "icon",
|
158
|
+
i(e.$slots, "icon", k({
|
157
159
|
item: n.item,
|
158
160
|
text: n.text
|
159
161
|
}, F))
|
@@ -163,7 +165,7 @@ const se = /* @__PURE__ */ M({
|
|
163
165
|
]), 1040, ["id", "aria-describedby", "autofocus", "checked", "color", "disabled", "has-errors", "model-value", "name", "readonly", "required", "value"])
|
164
166
|
]),
|
165
167
|
"option:append": t((n) => [
|
166
|
-
i(e.$slots, "option:append",
|
168
|
+
i(e.$slots, "option:append", h(v(n)))
|
167
169
|
]),
|
168
170
|
append: t(() => [
|
169
171
|
i(e.$slots, "append")
|
@@ -173,5 +175,5 @@ const se = /* @__PURE__ */ M({
|
|
173
175
|
}
|
174
176
|
});
|
175
177
|
export {
|
176
|
-
|
178
|
+
le as default
|
177
179
|
};
|
package/dist/index330.js
CHANGED
@@ -1,9 +1,21 @@
|
|
1
|
-
function l(
|
2
|
-
|
3
|
-
|
4
|
-
t
|
1
|
+
function l(t, ...e) {
|
2
|
+
if (t.length) {
|
3
|
+
const o = t[0];
|
4
|
+
if (typeof o == "string") return [...t].sort(r);
|
5
|
+
if (typeof o == "number") return [...t].sort(r);
|
6
|
+
if (e && e.length)
|
7
|
+
return [...t].sort((f, u) => {
|
8
|
+
for (let n = 0; n < e.length; n++) {
|
9
|
+
const i = e[n], s = r(f[i], u[i]);
|
10
|
+
if (s) return s;
|
11
|
+
}
|
12
|
+
return 0;
|
13
|
+
});
|
14
|
+
throw new Error("Invalid comparison");
|
15
|
+
}
|
5
16
|
return t;
|
6
17
|
}
|
18
|
+
const r = (t, e) => t < e ? -1 : t > e ? 1 : 0;
|
7
19
|
export {
|
8
|
-
l as
|
20
|
+
l as sort
|
9
21
|
};
|
package/dist/index331.js
CHANGED
@@ -1,10 +1,35 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
1
|
+
import { openBlock as e, createElementBlock as t, createElementVNode as o } from "vue";
|
2
|
+
/* empty css */
|
3
|
+
import n from "./index281.js";
|
4
|
+
const l = {}, s = {
|
5
|
+
class: "bb-error-icon",
|
6
|
+
fill: "none",
|
7
|
+
viewBox: "0 0 20 20",
|
8
|
+
xmlns: "http://www.w3.org/2000/svg"
|
9
|
+
};
|
10
|
+
function i(c, r) {
|
11
|
+
return e(), t("svg", s, r[0] || (r[0] = [
|
12
|
+
o("path", {
|
13
|
+
d: "M9.99422 18.3333C14.5966 18.3333 18.3276 14.6024 18.3276 9.99999C18.3276 5.39762 14.5966 1.66666 9.99422 1.66666C5.39185 1.66666 1.66089 5.39762 1.66089 9.99999C1.66089 14.6024 5.39185 18.3333 9.99422 18.3333Z",
|
14
|
+
fill: "currentColor"
|
15
|
+
}, null, -1),
|
16
|
+
o("path", {
|
17
|
+
d: "M9.99414 6.66666V9.99999",
|
18
|
+
stroke: "white",
|
19
|
+
"stroke-linecap": "round",
|
20
|
+
"stroke-linejoin": "round",
|
21
|
+
"stroke-width": "2"
|
22
|
+
}, null, -1),
|
23
|
+
o("path", {
|
24
|
+
d: "M9.99414 13.3333H10.0025",
|
25
|
+
stroke: "white",
|
26
|
+
"stroke-linecap": "round",
|
27
|
+
"stroke-linejoin": "round",
|
28
|
+
"stroke-width": "2"
|
29
|
+
}, null, -1)
|
30
|
+
]));
|
7
31
|
}
|
32
|
+
const a = /* @__PURE__ */ n(l, [["render", i]]);
|
8
33
|
export {
|
9
|
-
|
34
|
+
a as default
|
10
35
|
};
|
package/dist/index332.js
CHANGED
@@ -1,8 +1,30 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
1
|
+
import { defineComponent as l, openBlock as n, createElementBlock as r, unref as a, createElementVNode as t } from "vue";
|
2
|
+
import { useLocale as s } from "./index221.js";
|
3
|
+
const c = ["aria-label"], b = /* @__PURE__ */ l({
|
4
|
+
__name: "ClearableButton",
|
5
|
+
setup(u) {
|
6
|
+
const { t: o } = s();
|
7
|
+
return (i, e) => (n(), r("button", {
|
8
|
+
"aria-label": a(o)("common.clearLabel").value,
|
9
|
+
class: "bb-clearable-button",
|
10
|
+
type: "button"
|
11
|
+
}, e[0] || (e[0] = [
|
12
|
+
t("svg", {
|
13
|
+
viewBox: "0 0 24 24",
|
14
|
+
xmlns: "http://www.w3.org/2000/svg"
|
15
|
+
}, [
|
16
|
+
t("path", {
|
17
|
+
d: "M12 12l7 7M12 12l-7 -7M12 12l-7 7M12 12l7 -7",
|
18
|
+
fill: "none",
|
19
|
+
stroke: "currentColor",
|
20
|
+
"stroke-linecap": "round",
|
21
|
+
"stroke-linejoin": "round",
|
22
|
+
"stroke-width": "2"
|
23
|
+
})
|
24
|
+
], -1)
|
25
|
+
]), 8, c));
|
26
|
+
}
|
27
|
+
});
|
6
28
|
export {
|
7
|
-
|
29
|
+
b as default
|
8
30
|
};
|
package/dist/index334.js
CHANGED
@@ -1,49 +1,10 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
const
|
6
|
-
return o
|
7
|
-
() => l(e).getScrollElement(),
|
8
|
-
(r) => {
|
9
|
-
r && t._willUpdate();
|
10
|
-
},
|
11
|
-
{
|
12
|
-
immediate: !0
|
13
|
-
}
|
14
|
-
), o(
|
15
|
-
() => l(e),
|
16
|
-
(r) => {
|
17
|
-
t.setOptions({
|
18
|
-
...r,
|
19
|
-
onChange: (c, m) => {
|
20
|
-
var n;
|
21
|
-
i(a), (n = r.onChange) == null || n.call(r, c, m);
|
22
|
-
}
|
23
|
-
}), t._willUpdate(), i(a);
|
24
|
-
},
|
25
|
-
{
|
26
|
-
immediate: !0
|
27
|
-
}
|
28
|
-
), v(u), a;
|
29
|
-
}
|
30
|
-
function z(e) {
|
31
|
-
return w(
|
32
|
-
g(() => ({
|
33
|
-
observeElementRect: f,
|
34
|
-
observeElementOffset: s,
|
35
|
-
scrollToFn: d,
|
36
|
-
...l(e)
|
37
|
-
}))
|
38
|
-
);
|
1
|
+
function i(t) {
|
2
|
+
if (t = t.replace(/^#/, ""), !/^([A-Fa-f0-9]{3}|[A-Fa-f0-9]{6})$/.test(t))
|
3
|
+
throw new Error("Invalid hex code");
|
4
|
+
t.length === 3 && (t = t.split("").map((n) => n + n).join(""));
|
5
|
+
const r = parseInt(t.slice(0, 2), 16), s = parseInt(t.slice(2, 4), 16), o = parseInt(t.slice(4, 6), 16);
|
6
|
+
return [r, s, o];
|
39
7
|
}
|
40
8
|
export {
|
41
|
-
|
42
|
-
S as defaultKeyExtractor,
|
43
|
-
V as defaultRangeExtractor,
|
44
|
-
d as elementScroll,
|
45
|
-
b as measureElement,
|
46
|
-
s as observeElementOffset,
|
47
|
-
f as observeElementRect,
|
48
|
-
z as useVirtualizer
|
9
|
+
i as hexToRgb
|
49
10
|
};
|
package/dist/index335.js
CHANGED
@@ -1,4 +1,8 @@
|
|
1
|
-
|
1
|
+
function l(c, f, r) {
|
2
|
+
const t = c / 255, n = f / 255, o = r / 255, i = Math.max(t, n, o), a = Math.min(t, n, o), s = i - a;
|
3
|
+
let e = 0;
|
4
|
+
return s !== 0 && (i === t ? e = (n - o) / s % 6 : i === n ? e = (o - t) / s + 2 : i === o && (e = (t - n) / s + 4), e *= 60, e < 0 && (e += 360)), e;
|
5
|
+
}
|
2
6
|
export {
|
3
|
-
|
7
|
+
l as getHueFromRGB
|
4
8
|
};
|
package/dist/index337.js
CHANGED