bitboss-ui 2.0.141 → 2.0.143
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/BbTooltip/BbTooltip.vue.d.ts +8 -1
- package/dist/i18n/en.d.ts +1 -0
- package/dist/i18n/it.d.ts +1 -0
- package/dist/index100.js +7 -7
- package/dist/index111.js +9 -9
- package/dist/index119.js +2 -2
- package/dist/index121.js +50 -45
- 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/index131.js +1 -1
- package/dist/index132.js +2 -2
- 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 +34 -32
- package/dist/index206.js +2 -115
- package/dist/index207.js +2 -2
- package/dist/index208.js +115 -2
- package/dist/index21.js +14 -14
- package/dist/index210.js +1 -1
- package/dist/index211.js +4 -2
- package/dist/index212.js +41 -4
- package/dist/index213.js +20 -2
- package/dist/index214.js +94 -3
- package/dist/index216.js +199 -5
- package/dist/index218.js +62 -11
- package/dist/index220.js +13 -3
- package/dist/index221.js +12 -85
- package/dist/index222.js +4 -0
- package/dist/index223.js +4 -29
- package/dist/index224.js +2 -17
- package/dist/index225.js +5 -51
- package/dist/index226.js +16 -15
- package/dist/index227.js +16 -12
- package/dist/index228.js +19 -16
- package/dist/index229.js +15 -5
- package/dist/index23.js +16 -16
- package/dist/index230.js +16 -13
- package/dist/index231.js +24 -13
- package/dist/index232.js +2 -19
- package/dist/index233.js +250 -15
- package/dist/index234.js +51 -18
- package/dist/index235.js +44 -27
- package/dist/index236.js +5 -2
- package/dist/index237.js +53 -243
- package/dist/index238.js +124 -51
- package/dist/index239.js +2 -44
- package/dist/index240.js +6 -5
- package/dist/index241.js +2 -60
- package/dist/index242.js +79 -58
- package/dist/index244.js +29 -13
- package/dist/index245.js +17 -4
- package/dist/index246.js +49 -18
- package/dist/index247.js +15 -94
- package/dist/index248.js +14 -0
- package/dist/index249.js +16 -200
- package/dist/index25.js +6 -6
- package/dist/index250.js +5 -0
- package/dist/index251.js +7 -125
- package/dist/index252.js +15 -2
- package/dist/index253.js +3 -2
- package/dist/index256.js +17 -105
- package/dist/{index261.js → index257.js} +2 -2
- package/dist/index258.js +53 -47
- package/dist/index260.js +99 -17
- package/dist/index263.js +2 -2
- package/dist/index264.js +1 -1
- package/dist/index267.js +6 -9
- package/dist/index268.js +16 -23
- package/dist/index269.js +9 -9
- package/dist/index27.js +1 -1
- package/dist/index270.js +23 -6
- package/dist/index271.js +27 -15
- package/dist/index272.js +8 -27
- package/dist/index273.js +431 -9
- package/dist/index274.js +176 -8
- package/dist/index275.js +3 -4
- package/dist/index276.js +3 -431
- package/dist/index277.js +3 -2
- package/dist/index279.js +6 -6
- package/dist/index280.js +7 -11
- package/dist/index281.js +10 -223
- package/dist/index282.js +9 -3
- package/dist/index283.js +8 -17
- package/dist/index284.js +3 -199
- package/dist/index285.js +198 -279
- package/dist/index286.js +280 -5
- package/dist/index287.js +6 -2
- package/dist/index288.js +2 -2
- package/dist/index29.js +3 -3
- package/dist/index294.js +2 -2
- package/dist/index295.js +1 -1
- package/dist/index296.js +1 -1
- package/dist/index297.js +1 -1
- package/dist/index298.js +1 -21
- package/dist/index299.js +24 -0
- package/dist/index301.js +2 -3
- package/dist/index302.js +5 -0
- package/dist/index303.js +15 -174
- package/dist/index304.js +2 -3
- package/dist/index305.js +89 -3
- package/dist/index306.js +224 -2
- package/dist/index307.js +126 -3
- package/dist/index309.js +3 -126
- package/dist/index31.js +2 -2
- package/dist/index314.js +5 -67
- package/dist/index315.js +67 -5
- package/dist/index316.js +5 -3
- package/dist/index317.js +8 -3
- package/dist/index318.js +3 -58
- package/dist/index319.js +3 -5
- package/dist/index320.js +57 -7
- package/dist/index322.js +8 -57
- package/dist/index323.js +6 -57
- package/dist/index324.js +7 -32
- package/dist/index325.js +6 -25
- package/dist/index326.js +18 -6
- package/dist/index327.js +480 -19
- package/dist/index328.js +57 -479
- package/dist/index329.js +58 -47
- package/dist/index33.js +36 -34
- package/dist/index331.js +32 -7
- package/dist/index332.js +28 -6
- package/dist/index334.js +47 -2
- package/dist/index335.js +4 -0
- package/dist/index337.js +3 -424
- package/dist/index338.js +2 -47
- package/dist/index339.js +424 -2
- package/dist/index340.js +49 -0
- package/dist/index35.js +4 -4
- package/dist/index37.js +85 -84
- package/dist/index39.js +2 -2
- package/dist/index41.js +2 -2
- package/dist/index43.js +33 -31
- 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 +1 -1
- package/dist/index61.js +1 -1
- 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 +5 -5
- package/dist/index90.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +2 -2
- package/dist/index215.js +0 -43
- package/dist/index217.js +0 -9
- package/dist/index219.js +0 -15
- package/dist/index278.js +0 -91
- package/dist/index300.js +0 -9
- package/dist/index333.js +0 -10
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 "./index242.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 "./
|
6
|
+
import { useItemsGetter as A } from "./index244.js";
|
7
|
+
import { usePrefill as K } from "./index249.js";
|
8
|
+
import { useIndexById as B } from "./index245.js";
|
9
|
+
import { useBaseOptions as N } from "./index246.js";
|
10
|
+
import { useCoherence as O } from "./index247.js";
|
11
11
|
import { hash as U } from "./index210.js";
|
12
|
-
import { useHashedWatcher as T } from "./
|
13
|
-
const
|
12
|
+
import { useHashedWatcher as T } from "./index248.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/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 "./index279.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,4 +1,49 @@
|
|
1
|
-
import f from "./
|
1
|
+
import { observeElementRect as f, observeElementOffset as s, elementScroll as d, Virtualizer as p } from "./index339.js";
|
2
|
+
import { defaultKeyExtractor as S, defaultRangeExtractor as V, measureElement as b } from "./index339.js";
|
3
|
+
import { computed as g, unref as l, shallowRef as E, watch as o, triggerRef as i, onScopeDispose as v } from "vue";
|
4
|
+
function w(e) {
|
5
|
+
const t = new p(l(e)), a = E(t), u = t._didMount();
|
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
|
+
);
|
39
|
+
}
|
2
40
|
export {
|
3
|
-
|
41
|
+
p as Virtualizer,
|
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
|
4
49
|
};
|
package/dist/index335.js
ADDED