bitboss-ui 2.1.112 → 2.1.114
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/BaseCheckbox/types.d.ts +8 -0
- package/dist/components/BaseCheckboxGroup/BaseCheckboxGroup.vue.d.ts +1 -222
- package/dist/components/BaseCheckboxGroup/types.d.ts +283 -0
- package/dist/components/BaseColorInput/BaseColorInput.vue.d.ts +5 -151
- package/dist/components/BaseColorInput/ColorPalette.vue.d.ts +1 -17
- package/dist/components/BaseColorInput/types.d.ts +233 -0
- package/dist/components/BaseRadioGroup/BaseRadioGroup.vue.d.ts +1 -1
- package/dist/components/BaseSwitchGroup/BaseSwitchGroup.vue.d.ts +1 -1
- package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue.d.ts +9 -3
- package/dist/components/BbColorInput/BbColorInput.vue.d.ts +1 -1
- package/dist/components/BbColorPalette/BbColorPalette.vue.d.ts +4 -4
- package/dist/components/BbSwitchGroup/BbSwitchGroup.vue.d.ts +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index109.js +9 -9
- package/dist/index110.js +17 -17
- package/dist/index118.js +1 -1
- package/dist/index122.js +1 -0
- package/dist/index124.js +4 -4
- package/dist/index126.js +13 -13
- package/dist/index134.js +1 -1
- package/dist/index136.js +5 -5
- package/dist/index138.js +1 -1
- package/dist/index14.js +1 -1
- package/dist/index144.js +1 -1
- package/dist/index146.js +2 -2
- package/dist/index148.js +1 -1
- package/dist/index16.js +3 -3
- package/dist/index18.js +3 -3
- package/dist/index20.js +70 -59
- package/dist/index22.js +14 -14
- package/dist/index221.js +138 -2
- package/dist/index222.js +2 -2
- package/dist/index223.js +2 -138
- package/dist/index227.js +1 -1
- package/dist/index229.js +4 -2
- package/dist/index230.js +13 -2
- package/dist/index231.js +20 -3
- package/dist/index232.js +2 -4
- package/dist/index233.js +4 -13
- package/dist/index234.js +85 -19
- package/dist/index236.js +30 -3
- package/dist/index237.js +17 -5
- package/dist/index238.js +51 -5
- package/dist/index239.js +18 -5
- package/dist/index24.js +10 -10
- package/dist/index240.js +3 -5
- package/dist/index241.js +12 -5
- package/dist/index242.js +18 -5
- package/dist/index243.js +8 -3
- package/dist/index244.js +2 -8
- package/dist/index245.js +3 -135
- package/dist/index246.js +7 -0
- package/dist/index247.js +5 -3
- package/dist/index248.js +5 -6
- package/dist/index249.js +5 -16
- package/dist/index250.js +5 -2
- package/dist/index251.js +5 -13
- package/dist/index252.js +3 -13
- package/dist/index253.js +135 -4
- package/dist/index255.js +2 -86
- package/dist/index256.js +108 -0
- package/dist/index258.js +100 -17
- package/dist/index26.js +3 -3
- package/dist/index260.js +9 -17
- package/dist/index261.js +3 -3
- package/dist/index262.js +4 -12
- package/dist/index263.js +3 -18
- package/dist/index264.js +187 -66
- package/dist/index265.js +3 -2
- package/dist/index266.js +5 -9
- package/dist/index267.js +5 -20
- package/dist/index268.js +268 -4
- package/dist/index269.js +52 -25
- package/dist/index270.js +52 -2
- package/dist/index271.js +31 -17
- package/dist/index272.js +60 -12
- package/dist/index273.js +7 -106
- package/dist/index274.js +4 -0
- package/dist/index275.js +367 -94
- package/dist/index277.js +2 -107
- package/dist/index278.js +7 -11
- package/dist/index279.js +7 -5
- package/dist/index28.js +1 -1
- package/dist/index280.js +2 -6
- package/dist/index281.js +30 -264
- package/dist/index282.js +9 -52
- package/dist/index283.js +25 -52
- package/dist/index284.js +11 -32
- package/dist/index285.js +13 -60
- package/dist/index286.js +22 -6
- package/dist/index289.js +5 -6
- package/dist/index290.js +9 -10
- package/dist/index291.js +21 -3
- package/dist/index292.js +6 -34
- package/dist/index293.js +15 -32
- package/dist/index294.js +16 -371
- package/dist/index295.js +14 -0
- package/dist/index296.js +107 -3
- package/dist/index297.js +6 -53
- package/dist/index298.js +3 -5
- package/dist/index299.js +53 -9
- package/dist/index30.js +3 -3
- package/dist/index300.js +13 -2
- package/dist/index301.js +67 -7
- package/dist/index302.js +33 -7
- package/dist/index306.js +3 -6
- package/dist/index307.js +7 -5
- package/dist/index308.js +3 -719
- package/dist/index309.js +17 -366
- package/dist/index310.js +23 -52
- package/dist/index311.js +1 -1
- package/dist/index312.js +3 -280
- package/dist/index313.js +5 -2
- package/dist/index314.js +3 -125
- package/dist/index315.js +3 -2
- package/dist/index316.js +278 -13
- package/dist/index317.js +2 -2
- package/dist/index32.js +2 -2
- package/dist/index322.js +25 -17
- package/dist/index324.js +1 -1
- package/dist/index325.js +2 -28
- package/dist/index326.js +2 -17
- package/dist/index327.js +2 -3
- package/dist/index328.js +2 -4
- package/dist/index329.js +120 -22
- package/dist/index330.js +2 -2
- package/dist/index331.js +15 -2
- package/dist/index332.js +2 -2
- package/dist/index333.js +19 -2
- package/dist/index334.js +2 -2
- package/dist/index335.js +1 -1
- package/dist/index336.js +719 -3
- package/dist/index337.js +366 -3
- package/dist/index338.js +57 -2
- package/dist/index34.js +8 -8
- package/dist/index340.js +5 -2
- package/dist/index341.js +2 -6
- package/dist/index342.js +6 -5
- package/dist/index343.js +2 -3
- package/dist/index344.js +6 -34
- package/dist/index345.js +66 -128
- package/dist/index346.js +65 -396
- package/dist/index347.js +35 -67
- package/dist/index348.js +128 -66
- package/dist/index349.js +390 -220
- package/dist/index352.js +1 -1
- package/dist/index353.js +1 -1
- package/dist/index354.js +1 -1
- package/dist/index355.js +200 -7
- package/dist/index356.js +208 -149
- package/dist/index357.js +91 -257
- package/dist/index358.js +225 -131
- package/dist/index359.js +133 -21
- package/dist/index36.js +4 -4
- package/dist/index360.js +24 -0
- package/dist/index362.js +1 -1
- package/dist/index363.js +2 -93
- package/dist/index367.js +1 -1
- package/dist/index38.js +133 -131
- package/dist/index40.js +7 -7
- package/dist/index42.js +2 -2
- package/dist/index44.js +16 -15
- 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/index60.js +2 -2
- package/dist/index62.js +5 -5
- package/dist/index66.js +3 -1
- package/dist/index68.js +1 -1
- package/dist/index74.js +4 -4
- package/dist/index82.js +4 -4
- package/dist/index84.js +1 -1
- package/dist/index86.js +2 -2
- package/dist/index88.js +3 -3
- package/dist/index90.js +1 -1
- package/dist/index93.js +3 -3
- package/dist/index95.js +2 -2
- package/dist/index97.js +5 -5
- package/dist/index99.js +1 -1
- package/package.json +2 -2
- package/dist/index235.js +0 -190
- package/dist/index254.js +0 -25
- package/dist/index257.js +0 -32
- package/dist/index259.js +0 -53
- package/dist/index361.js +0 -4
package/dist/index298.js
CHANGED
package/dist/index299.js
CHANGED
|
@@ -1,11 +1,55 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
}
|
|
1
|
+
import { useLogger as y } from "./index243.js";
|
|
2
|
+
const g = (t, i) => {
|
|
3
|
+
if (!i.length) return;
|
|
4
|
+
const n = Array.from(
|
|
5
|
+
t.querySelectorAll(":scope > thead th")
|
|
6
|
+
);
|
|
7
|
+
if (!n.length) return;
|
|
8
|
+
const { error: r } = y(), p = n.length, u = i.map((e) => ({
|
|
9
|
+
index: typeof e == "number" ? e : e.index,
|
|
10
|
+
position: typeof e == "number" ? "left" : e.position
|
|
11
|
+
})).sort((e, o) => e.position !== o.position ? e.position === "left" ? -1 : 1 : e.position === "left" ? e.index - o.index : o.index - e.index).reduce((e, o) => {
|
|
12
|
+
const l = n[o.index];
|
|
13
|
+
if (!l)
|
|
14
|
+
return r(
|
|
15
|
+
`BbTable fixedColumns: Cannot affix column at index ${o.index}. Table has ${p} columns (valid indices: 0–${p - 1}).`
|
|
16
|
+
), e;
|
|
17
|
+
const { width: c } = l.getBoundingClientRect(), m = e.filter((h) => h.position === o.position).reduce((h, x) => h + x.width, 0);
|
|
18
|
+
return e.push({
|
|
19
|
+
index: o.index,
|
|
20
|
+
position: o.position,
|
|
21
|
+
width: Math.floor(c),
|
|
22
|
+
offset: m
|
|
23
|
+
}), e;
|
|
24
|
+
}, []);
|
|
25
|
+
Array.from(
|
|
26
|
+
t.querySelectorAll(":scope > thead > tr, :scope > tbody > tr")
|
|
27
|
+
).forEach((e) => {
|
|
28
|
+
u.forEach((o) => {
|
|
29
|
+
const l = e.querySelector(
|
|
30
|
+
`:scope > :nth-child(${o.index + 1})`
|
|
31
|
+
);
|
|
32
|
+
l && (l.style.position = "sticky", l.style[o.position] = `${o.offset}px`);
|
|
33
|
+
});
|
|
34
|
+
});
|
|
35
|
+
}, d = (t) => Array.isArray(t) ? t : [t], w = (t) => t.split(/\W+/g).join("_").toLowerCase(), A = (t, i, n) => {
|
|
36
|
+
const r = [...d(t)];
|
|
37
|
+
return i && r.push(...d(i)), n && r.push(...d(n)), r;
|
|
38
|
+
}, $ = (t, i, n, r, p, a) => {
|
|
39
|
+
const f = [...d(t)], u = (s) => typeof s == "function" ? s(r, p, a) : s;
|
|
40
|
+
if (i) {
|
|
41
|
+
const s = u(i);
|
|
42
|
+
s && f.push(...d(s));
|
|
43
|
+
}
|
|
44
|
+
if (n) {
|
|
45
|
+
const s = u(n);
|
|
46
|
+
s && f.push(...d(s));
|
|
47
|
+
}
|
|
48
|
+
return f;
|
|
49
|
+
};
|
|
9
50
|
export {
|
|
10
|
-
|
|
51
|
+
g as applyFixedTableColumns,
|
|
52
|
+
w as columnKeyToSlotName,
|
|
53
|
+
$ as mergeCellClasses,
|
|
54
|
+
A as mergeHeaderClasses
|
|
11
55
|
};
|
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 z, unref as h, createElementVNode as G, mergeProps as O, withModifiers as R, renderSlot as d } from "vue";
|
|
2
|
-
import { clamp as c } from "./
|
|
3
|
-
import { clampPrecision as U } from "./
|
|
4
|
-
import { isNil as f } from "./
|
|
2
|
+
import { clamp as c } from "./index222.js";
|
|
3
|
+
import { clampPrecision as U } from "./index273.js";
|
|
4
|
+
import { isNil as f } from "./index274.js";
|
|
5
5
|
import { isNotNil as g } from "./index150.js";
|
|
6
6
|
import j from "./index140.js";
|
|
7
7
|
/* empty css */
|
package/dist/index300.js
CHANGED
|
@@ -1,4 +1,15 @@
|
|
|
1
|
-
const
|
|
1
|
+
const c = (t, r) => {
|
|
2
|
+
if (typeof t == "string") {
|
|
3
|
+
const e = /^(\d+)([a-zA-Z%]+)?$/, n = t.match(e);
|
|
4
|
+
if (n) {
|
|
5
|
+
const [, o, a] = n;
|
|
6
|
+
return a ? t : o + "px";
|
|
7
|
+
} else if (t in r)
|
|
8
|
+
return r[t] + "px";
|
|
9
|
+
throw new Error(`Invalid size: ${t}`);
|
|
10
|
+
}
|
|
11
|
+
return t + "px";
|
|
12
|
+
};
|
|
2
13
|
export {
|
|
3
|
-
|
|
14
|
+
c as parseSize
|
|
4
15
|
};
|
package/dist/index301.js
CHANGED
|
@@ -1,9 +1,69 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { defineComponent as d, createElementBlock as l, openBlock as o, normalizeClass as u, createElementVNode as t, createBlock as i, createCommentVNode as s, unref as f, withCtx as g, toDisplayString as n } from "vue";
|
|
2
|
+
import { useLocale as k } from "./index230.js";
|
|
3
|
+
import h from "./index14.js";
|
|
4
|
+
/* empty css */
|
|
5
|
+
import C from "./index88.js";
|
|
6
|
+
/* empty css */
|
|
7
|
+
const w = { class: "bb-toast-message__icon-container" }, v = { class: "bb-toast-message__content" }, y = {
|
|
8
|
+
key: 1,
|
|
9
|
+
class: "bb-toast-message__title"
|
|
10
|
+
}, B = { class: "bb-toast-message__text" }, z = /* @__PURE__ */ d({
|
|
11
|
+
__name: "BbToastMessage",
|
|
12
|
+
props: {
|
|
13
|
+
title: {},
|
|
14
|
+
text: {},
|
|
15
|
+
icon: {},
|
|
16
|
+
theme: { default: "default" },
|
|
17
|
+
id: {},
|
|
18
|
+
showClose: { type: Boolean }
|
|
19
|
+
},
|
|
20
|
+
emits: ["click:close"],
|
|
21
|
+
setup(r, { emit: c }) {
|
|
22
|
+
const m = r, p = c, { t: _ } = k(), b = () => {
|
|
23
|
+
p("click:close", m.id);
|
|
24
|
+
};
|
|
25
|
+
return (e, a) => (o(), l("div", {
|
|
26
|
+
"aria-atomic": "true",
|
|
27
|
+
"aria-live": "polite",
|
|
28
|
+
"aria-role": "alert",
|
|
29
|
+
class: u(["bb-toast-message", { [`bb-toast-message--${e.theme}`]: e.theme }])
|
|
30
|
+
}, [
|
|
31
|
+
t("div", w, [
|
|
32
|
+
e.icon ? (o(), i(C, {
|
|
33
|
+
key: 0,
|
|
34
|
+
class: "bb-toast-message__icon",
|
|
35
|
+
type: e.icon
|
|
36
|
+
}, null, 8, ["type"])) : s("", !0)
|
|
37
|
+
]),
|
|
38
|
+
t("div", v, [
|
|
39
|
+
e.showClose ? (o(), i(h, {
|
|
40
|
+
key: 0,
|
|
41
|
+
"aria-label": f(_)("common.closeLabel").value,
|
|
42
|
+
class: "bb-toast-message__close",
|
|
43
|
+
onClick: b
|
|
44
|
+
}, {
|
|
45
|
+
default: g(() => a[0] || (a[0] = [
|
|
46
|
+
t("svg", {
|
|
47
|
+
fill: "none",
|
|
48
|
+
viewBox: "0 0 24 24",
|
|
49
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
50
|
+
}, [
|
|
51
|
+
t("path", {
|
|
52
|
+
d: "M23 23L1 1M23 1L1 23",
|
|
53
|
+
stroke: "currentColor",
|
|
54
|
+
"stroke-linecap": "round",
|
|
55
|
+
"stroke-width": "2"
|
|
56
|
+
})
|
|
57
|
+
], -1)
|
|
58
|
+
])),
|
|
59
|
+
_: 1
|
|
60
|
+
}, 8, ["aria-label"])) : s("", !0),
|
|
61
|
+
e.title ? (o(), l("p", y, n(e.title), 1)) : s("", !0),
|
|
62
|
+
t("p", B, n(e.text), 1)
|
|
63
|
+
])
|
|
64
|
+
], 2));
|
|
65
|
+
}
|
|
66
|
+
});
|
|
7
67
|
export {
|
|
8
|
-
|
|
68
|
+
z as default
|
|
9
69
|
};
|
package/dist/index302.js
CHANGED
|
@@ -1,9 +1,35 @@
|
|
|
1
|
-
|
|
2
|
-
if (
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
const y = (t) => typeof t == "object" && t !== null, c = (t) => {
|
|
2
|
+
if (!y(t)) return !1;
|
|
3
|
+
const r = Object.getPrototypeOf(t);
|
|
4
|
+
return r === Object.prototype || r === null;
|
|
5
|
+
}, n = (t) => {
|
|
6
|
+
if (Array.isArray(t))
|
|
7
|
+
return t.map((o) => n(o));
|
|
8
|
+
if (!c(t))
|
|
9
|
+
return t;
|
|
10
|
+
const r = {};
|
|
11
|
+
for (const o of Reflect.ownKeys(t))
|
|
12
|
+
r[o] = n(t[o]);
|
|
13
|
+
return r;
|
|
14
|
+
}, f = (t, r) => {
|
|
15
|
+
if (r === void 0)
|
|
16
|
+
return n(t);
|
|
17
|
+
if (Array.isArray(r))
|
|
18
|
+
return n(r);
|
|
19
|
+
if (!c(r))
|
|
20
|
+
return r;
|
|
21
|
+
const o = c(t) ? n(t) : {};
|
|
22
|
+
for (const e of Reflect.ownKeys(r)) {
|
|
23
|
+
const s = r[e], i = o[e];
|
|
24
|
+
o[e] = f(i, s);
|
|
25
|
+
}
|
|
26
|
+
return o;
|
|
27
|
+
}, p = (...t) => {
|
|
28
|
+
let r = {};
|
|
29
|
+
for (const o of t)
|
|
30
|
+
r = f(r, o);
|
|
31
|
+
return r;
|
|
32
|
+
};
|
|
7
33
|
export {
|
|
8
|
-
|
|
34
|
+
p as merge
|
|
9
35
|
};
|
package/dist/index306.js
CHANGED
package/dist/index307.js
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import o from "./index345.js";
|
|
2
|
+
import r from "./index346.js";
|
|
3
|
+
const e = {
|
|
4
|
+
it: o,
|
|
5
|
+
en: r
|
|
6
|
+
};
|
|
5
7
|
export {
|
|
6
|
-
|
|
8
|
+
e as locales
|
|
7
9
|
};
|