bitboss-ui 2.1.95 → 2.1.96
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/BaseSelect/BaseSelect.vue.d.ts +13 -0
- package/dist/components/BbSelect/BbSelect.vue.d.ts +16 -0
- package/dist/components/FlatListBox.vue.d.ts +56 -0
- package/dist/components/GroupedListBox.vue.d.ts +67 -0
- package/dist/components/ListBox.vue.d.ts +58 -16
- package/dist/composables/useListboxFocus.d.ts +19 -0
- package/dist/index.css +1 -1
- package/dist/index108.js +9 -9
- package/dist/index109.js +17 -10
- package/dist/index115.js +1 -1
- package/dist/index121.js +4 -4
- package/dist/index123.js +13 -13
- package/dist/index131.js +1 -1
- package/dist/index133.js +5 -5
- package/dist/index135.js +1 -1
- package/dist/index137.js +2 -2
- package/dist/index14.js +1 -1
- package/dist/index140.js +1 -1
- package/dist/index142.js +2 -2
- package/dist/index144.js +1 -1
- package/dist/index16.js +5 -5
- package/dist/index18.js +3 -3
- package/dist/index20.js +8 -8
- package/dist/index216.js +138 -2
- package/dist/index217.js +2 -138
- package/dist/index218.js +2 -2
- package/dist/index219.js +1 -1
- package/dist/index22.js +14 -14
- package/dist/index220.js +1 -1
- package/dist/index221.js +5 -2
- package/dist/index222.js +5 -2
- package/dist/index223.js +5 -2
- package/dist/index224.js +5 -7
- package/dist/index225.js +3 -2
- package/dist/index226.js +2 -7
- package/dist/index227.js +6 -5
- package/dist/index228.js +8 -5
- package/dist/index229.js +268 -5
- package/dist/index230.js +52 -5
- package/dist/index231.js +52 -3
- package/dist/index232.js +32 -6
- package/dist/index233.js +58 -6
- package/dist/index234.js +12 -267
- package/dist/index235.js +4 -52
- package/dist/index236.js +19 -51
- package/dist/index237.js +195 -26
- package/dist/index239.js +134 -12
- package/dist/index24.js +11 -11
- package/dist/index241.js +32 -16
- package/dist/index242.js +26 -104
- package/dist/index244.js +2 -100
- package/dist/index245.js +4 -0
- package/dist/index246.js +51 -3
- package/dist/index247.js +17 -2
- package/dist/index248.js +106 -3
- package/dist/index250.js +100 -3
- package/dist/index252.js +3 -5
- package/dist/index253.js +5 -4
- package/dist/index254.js +5 -9
- package/dist/index255.js +5 -29
- package/dist/index256.js +2 -16
- package/dist/index257.js +34 -12
- package/dist/index258.js +85 -52
- package/dist/index26.js +3 -3
- package/dist/index260.js +27 -11
- package/dist/index261.js +15 -2
- package/dist/index262.js +12 -67
- package/dist/index263.js +15 -32
- package/dist/index264.js +188 -28
- package/dist/index265.js +5 -0
- package/dist/index266.js +8 -187
- package/dist/index267.js +18 -3
- package/dist/index268.js +12 -3
- package/dist/index269.js +4 -33
- package/dist/index270.js +103 -7
- package/dist/index271.js +13 -5
- package/dist/index272.js +11 -5
- package/dist/index273.js +5 -5
- package/dist/index274.js +2 -20
- package/dist/index275.js +3 -135
- package/dist/index277.js +22 -85
- package/dist/index278.js +11 -0
- package/dist/index279.js +23 -15
- package/dist/index28.js +1 -1
- package/dist/index280.js +2 -9
- package/dist/index281.js +7 -23
- package/dist/index282.js +6 -22
- package/dist/index283.js +33 -9
- package/dist/index284.js +13 -4
- package/dist/index285.js +59 -193
- package/dist/index287.js +3 -34
- package/dist/index288.js +6 -7
- package/dist/index289.js +14 -16
- package/dist/index290.js +9 -12
- package/dist/index291.js +20 -228
- package/dist/index293.js +3 -11
- package/dist/index294.js +3 -6
- package/dist/index295.js +3 -16
- package/dist/index296.js +2 -2
- package/dist/{index292.js → index297.js} +1 -1
- package/dist/index298.js +3 -3
- package/dist/index299.js +7 -280
- package/dist/index30.js +3 -3
- package/dist/index300.js +53 -2
- package/dist/index301.js +277 -13
- package/dist/index302.js +2 -2
- package/dist/index303.js +9 -9
- package/dist/index305.js +12 -23
- package/dist/index307.js +27 -2
- package/dist/index308.js +2 -2
- package/dist/index309.js +1 -1
- package/dist/index310.js +1 -1
- package/dist/index311.js +2 -28
- package/dist/index312.js +1 -1
- package/dist/index313.js +28 -3
- package/dist/index314.js +1 -1
- package/dist/index315.js +3 -4
- package/dist/index316.js +3 -17
- package/dist/index317.js +17 -3
- package/dist/index318.js +2 -3
- package/dist/index319.js +3 -125
- package/dist/index32.js +2 -2
- package/dist/index320.js +125 -2
- package/dist/index321.js +2 -15
- package/dist/index322.js +15 -2
- package/dist/index323.js +2 -19
- package/dist/index324.js +19 -2
- package/dist/index325.js +2 -3
- package/dist/index326.js +4 -3
- package/dist/index327.js +2 -5
- package/dist/index328.js +1 -1
- package/dist/index329.js +5 -4
- package/dist/index330.js +4 -4
- package/dist/index331.js +719 -6
- package/dist/index332.js +366 -2
- package/dist/index333.js +56 -57
- package/dist/index334.js +8 -58
- package/dist/index335.js +6 -719
- package/dist/index336.js +7 -365
- package/dist/index337.js +33 -55
- package/dist/index338.js +6 -7
- package/dist/index339.js +127 -17
- package/dist/index34.js +8 -8
- package/dist/index340.js +396 -7
- package/dist/index341.js +57 -14
- package/dist/index342.js +58 -5
- package/dist/index343.js +5 -6
- package/dist/index344.js +3 -34
- package/dist/index345.js +5 -6
- package/dist/index346.js +6 -128
- package/dist/index347.js +16 -395
- package/dist/index348.js +8 -7
- package/dist/index349.js +14 -5
- package/dist/index350.js +7 -8
- package/dist/index351.js +131 -225
- package/dist/index354.js +192 -133
- package/dist/index355.js +257 -46
- package/dist/index356.js +1 -1
- package/dist/index357.js +223 -436
- package/dist/index358.js +2 -128
- package/dist/index359.js +2 -520
- package/dist/index36.js +4 -4
- package/dist/index360.js +435 -44
- package/dist/index361.js +130 -0
- package/dist/index362.js +49 -0
- package/dist/index363.js +72 -0
- package/dist/index364.js +522 -0
- package/dist/index365.js +52 -0
- package/dist/index38.js +252 -232
- package/dist/index40.js +7 -7
- package/dist/index42.js +2 -2
- package/dist/index44.js +8 -8
- 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/index62.js +5 -5
- package/dist/index68.js +1 -1
- package/dist/index81.js +6 -6
- package/dist/index83.js +1 -1
- package/dist/index85.js +2 -2
- package/dist/index87.js +3 -3
- package/dist/index89.js +1 -1
- package/dist/index92.js +3 -3
- package/dist/index94.js +2 -2
- package/dist/index96.js +5 -5
- package/dist/index98.js +1 -1
- package/dist/types/Option.d.ts +5 -0
- package/dist/utilities/functions/groupBy.d.ts +4 -2
- package/dist/utilities/functions/indexBy.d.ts +9 -2
- package/package.json +1 -1
- package/dist/index238.js +0 -62
- package/dist/index240.js +0 -53
- package/dist/index259.js +0 -15
- /package/dist/{index251.js → index276.js} +0 -0
- /package/dist/{index249.js → index286.js} +0 -0
package/dist/index273.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
const o = (l, n, f = (r) => r, u) => l.map((r) => Array.isArray(r[n]) ? [
|
|
2
|
+
f(r, u),
|
|
3
|
+
...o(r[n], n, f, f(r, u))
|
|
4
|
+
] : [f(r, u)]).flat();
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
o as flattenTree
|
|
7
7
|
};
|
package/dist/index274.js
CHANGED
|
@@ -1,22 +1,4 @@
|
|
|
1
|
-
|
|
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?.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
|
-
};
|
|
1
|
+
const o = (e) => typeof e == "boolean" ? e : e === "true";
|
|
20
2
|
export {
|
|
21
|
-
|
|
3
|
+
o as booleanishToBoolean
|
|
22
4
|
};
|
package/dist/index275.js
CHANGED
|
@@ -1,137 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
import { useUntil as H } from "./index260.js";
|
|
4
|
-
import { extractDomContainer as x } from "./index251.js";
|
|
5
|
-
import { waitFor as J } from "./index345.js";
|
|
6
|
-
import { arrow as K, useFloating as O } from "./index346.js";
|
|
7
|
-
import { flip as Q, offset as W, shift as Y, hide as Z, autoUpdate as ee } from "./index347.js";
|
|
8
|
-
const oe = {
|
|
9
|
-
key: 0,
|
|
10
|
-
class: "bb-common-popover__bubble"
|
|
11
|
-
}, ue = /* @__PURE__ */ A({
|
|
12
|
-
__name: "CommonPopover",
|
|
13
|
-
props: /* @__PURE__ */ L({
|
|
14
|
-
arrowPadding: {},
|
|
15
|
-
eager: { type: Boolean },
|
|
16
|
-
offset: {},
|
|
17
|
-
padding: { default: 0 },
|
|
18
|
-
placement: {},
|
|
19
|
-
transitionDuration: { default: 250 },
|
|
20
|
-
anchor: {},
|
|
21
|
-
boundary: {},
|
|
22
|
-
dialog: { type: Boolean },
|
|
23
|
-
hideArrow: { type: Boolean },
|
|
24
|
-
tag: { default: "span" },
|
|
25
|
-
flip: { type: Boolean, default: !0 }
|
|
26
|
-
}, {
|
|
27
|
-
modelValue: { type: Boolean, default: !1 },
|
|
28
|
-
modelModifiers: {}
|
|
29
|
-
}),
|
|
30
|
-
emits: ["update:modelValue"],
|
|
31
|
-
setup(m) {
|
|
32
|
-
const o = m, r = T(m, "modelValue"), s = c(r.value), C = a(() => o.dialog ? "dialog" : "span"), t = c(), f = c(), _ = a(() => {
|
|
33
|
-
const e = o.anchor;
|
|
34
|
-
return e && typeof e == "object" && "getBoundingClientRect" in e && !(e instanceof Element) ? e : x(e);
|
|
35
|
-
}), B = H(r, { initialValue: o.eager }), P = a(() => {
|
|
36
|
-
if (o.boundary)
|
|
37
|
-
return typeof o.boundary == "string" ? document.querySelector(o.boundary) ?? void 0 : x(o.boundary) ?? void 0;
|
|
38
|
-
}), k = a(() => {
|
|
39
|
-
const e = P.value;
|
|
40
|
-
return [
|
|
41
|
-
...o.flip ? [Q(e ? { boundary: e } : void 0)] : [],
|
|
42
|
-
W(o.offset),
|
|
43
|
-
Y({ padding: o.padding, ...e ? { boundary: e } : {} }),
|
|
44
|
-
Z(),
|
|
45
|
-
...o.hideArrow ? [] : [
|
|
46
|
-
K({
|
|
47
|
-
element: f,
|
|
48
|
-
padding: o.arrowPadding
|
|
49
|
-
})
|
|
50
|
-
]
|
|
51
|
-
];
|
|
52
|
-
}), { floatingStyles: E, placement: M, middlewareData: u, update: v } = O(
|
|
53
|
-
_,
|
|
54
|
-
t,
|
|
55
|
-
{
|
|
56
|
-
placement: o.placement,
|
|
57
|
-
whileElementsMounted: ee,
|
|
58
|
-
middleware: k,
|
|
59
|
-
strategy: "fixed"
|
|
60
|
-
}
|
|
61
|
-
), { execute: b } = G(
|
|
62
|
-
({ signal: e }, n) => new Promise((l) => {
|
|
63
|
-
let i;
|
|
64
|
-
const p = () => {
|
|
65
|
-
i && clearTimeout(i);
|
|
66
|
-
};
|
|
67
|
-
e.addEventListener("abort", p), n ? ($(), v(), J(() => !!t.value).then(() => {
|
|
68
|
-
s.value = !0, e.removeEventListener("abort", p), l(void 0);
|
|
69
|
-
})) : (s.value = !1, i = setTimeout(() => {
|
|
70
|
-
z(() => {
|
|
71
|
-
t.value && (o.dialog ? t.value.close() : t.value.hidePopover()), e.removeEventListener("abort", p), v(), l(void 0);
|
|
72
|
-
});
|
|
73
|
-
}, o.transitionDuration));
|
|
74
|
-
})
|
|
75
|
-
), $ = () => {
|
|
76
|
-
if (!t.value) return;
|
|
77
|
-
if (!o.dialog) return t.value.showPopover();
|
|
78
|
-
t.value.showModal();
|
|
79
|
-
};
|
|
80
|
-
F(r, b), S(() => {
|
|
81
|
-
r.value && b(r.value);
|
|
82
|
-
});
|
|
83
|
-
const D = a(() => {
|
|
84
|
-
const e = r.value ? void 0 : -1, n = Math.round(u.value.arrow?.x ?? 0), l = o.dialog ? void 0 : "manual";
|
|
85
|
-
return {
|
|
86
|
-
style: {
|
|
87
|
-
...E.value,
|
|
88
|
-
"--transition-duration": `${o.transitionDuration}ms`,
|
|
89
|
-
"--page-padding": `${o.padding}px`,
|
|
90
|
-
"--arrow-offset-x": `${n}px`
|
|
91
|
-
},
|
|
92
|
-
popover: l,
|
|
93
|
-
tabindex: e
|
|
94
|
-
};
|
|
95
|
-
}), V = a(() => {
|
|
96
|
-
if (u.value.arrow) {
|
|
97
|
-
const { x: e, y: n } = u.value.arrow;
|
|
98
|
-
return {
|
|
99
|
-
style: {
|
|
100
|
-
left: `${e}px`,
|
|
101
|
-
top: `${n}px`
|
|
102
|
-
}
|
|
103
|
-
};
|
|
104
|
-
}
|
|
105
|
-
}), d = () => {
|
|
106
|
-
r.value = !1;
|
|
107
|
-
};
|
|
108
|
-
return (e, n) => (w(), N(U(C.value), g({
|
|
109
|
-
ref_key: "wrapper",
|
|
110
|
-
ref: t,
|
|
111
|
-
class: ["bb-common-popover", {
|
|
112
|
-
"bb-common-popover--open": s.value,
|
|
113
|
-
"bb-common-popover--no-arrow": e.hideArrow,
|
|
114
|
-
[`bb-common-popover--${y(M)}`]: !0
|
|
115
|
-
}]
|
|
116
|
-
}, D.value, {
|
|
117
|
-
onClick: h(d, ["self", "stop"]),
|
|
118
|
-
onContextmenu: h(d, ["self", "stop", "prevent"]),
|
|
119
|
-
onClose: d
|
|
120
|
-
}), {
|
|
121
|
-
default: j(() => [
|
|
122
|
-
q("span", g({
|
|
123
|
-
ref_key: "bubblearrow",
|
|
124
|
-
ref: f,
|
|
125
|
-
class: "bb-common-popover__arrow"
|
|
126
|
-
}, V.value), null, 16),
|
|
127
|
-
y(B) ? (w(), I("span", oe, [
|
|
128
|
-
X(e.$slots, "default")
|
|
129
|
-
])) : R("", !0)
|
|
130
|
-
]),
|
|
131
|
-
_: 3
|
|
132
|
-
}, 16, ["class"]));
|
|
133
|
-
}
|
|
134
|
-
});
|
|
1
|
+
import { hash as r } from "./index225.js";
|
|
2
|
+
const a = (o, t) => r(o) === r(t);
|
|
135
3
|
export {
|
|
136
|
-
|
|
4
|
+
a as isEqual
|
|
137
5
|
};
|
package/dist/index277.js
CHANGED
|
@@ -1,88 +1,25 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
setup(f) {
|
|
21
|
-
const { t: d } = g();
|
|
22
|
-
return (e, T) => (s(), n("span", {
|
|
23
|
-
ref: "container",
|
|
24
|
-
class: r(["bb-cr-container", {
|
|
25
|
-
"bb-cr-container--errors": e.hasErrors,
|
|
26
|
-
"bb-cr-container--horizontal": e.direction === "horizontal",
|
|
27
|
-
"bb-cr-container--vertical": e.direction === "vertical"
|
|
28
|
-
}])
|
|
29
|
-
}, [
|
|
30
|
-
o("span", k, [
|
|
31
|
-
t(e.$slots, "prepend"),
|
|
32
|
-
!e.options.length && e.loading ? (s(), n("span", y, [
|
|
33
|
-
t(e.$slots, "loading", {}, () => [
|
|
34
|
-
l(i(e.loadingText || b(d)("common.loadingText")), 1)
|
|
35
|
-
])
|
|
36
|
-
])) : e.options.length ? h("", !0) : (s(), n("span", $, [
|
|
37
|
-
t(e.$slots, "no-data", {}, () => [
|
|
38
|
-
l(i(e.noDataText || b(d)("common.noDataText")), 1)
|
|
39
|
-
])
|
|
40
|
-
])),
|
|
41
|
-
(s(!0), n(m, null, u(e.options, (a, c) => (s(), n(m, {
|
|
42
|
-
key: a?.valueHash || c
|
|
43
|
-
}, [
|
|
44
|
-
t(e.$slots, "option:prepend", {
|
|
45
|
-
id: a.valueHash,
|
|
46
|
-
checked: !!a.selected,
|
|
47
|
-
disabled: !!a.disabled,
|
|
48
|
-
item: a.item,
|
|
49
|
-
text: a.text
|
|
50
|
-
}),
|
|
51
|
-
o("label", {
|
|
52
|
-
class: r(["bb-cr-container-option", { "bb-base-radio-selected": a.selected }])
|
|
53
|
-
}, [
|
|
54
|
-
t(e.$slots, "input", {
|
|
55
|
-
index: c,
|
|
56
|
-
option: a
|
|
57
|
-
}),
|
|
58
|
-
o("span", {
|
|
59
|
-
class: r({
|
|
60
|
-
"bb-cr-container-option__text": !0,
|
|
61
|
-
"sr-only": e.hideLabel
|
|
62
|
-
})
|
|
63
|
-
}, [
|
|
64
|
-
t(e.$slots, "label", {
|
|
65
|
-
checked: !!a.selected,
|
|
66
|
-
item: a.item,
|
|
67
|
-
text: a.text
|
|
68
|
-
}, () => [
|
|
69
|
-
l(i(a.text), 1)
|
|
70
|
-
])
|
|
71
|
-
], 2)
|
|
72
|
-
], 2),
|
|
73
|
-
t(e.$slots, "option:append", {
|
|
74
|
-
id: a.valueHash,
|
|
75
|
-
checked: !!a.selected,
|
|
76
|
-
disabled: !!a.disabled,
|
|
77
|
-
item: a.item,
|
|
78
|
-
text: a.text
|
|
79
|
-
})
|
|
80
|
-
], 64))), 128)),
|
|
81
|
-
t(e.$slots, "append")
|
|
82
|
-
])
|
|
83
|
-
], 2));
|
|
1
|
+
const i = (t) => {
|
|
2
|
+
const n = t.toString().replace(/\.0+$/, "").replace(/\.$/, "");
|
|
3
|
+
return parseFloat(n) || 0;
|
|
4
|
+
};
|
|
5
|
+
function s(t) {
|
|
6
|
+
if (typeof t == "number")
|
|
7
|
+
return {
|
|
8
|
+
value: i(t),
|
|
9
|
+
unit: "px"
|
|
10
|
+
};
|
|
11
|
+
if (typeof t == "string") {
|
|
12
|
+
const r = /^(-?\d*\.?\d+)([a-zA-Z%]*)?$/, e = t.match(r);
|
|
13
|
+
if (e) {
|
|
14
|
+
const [, n, o = "px"] = e, a = parseFloat(n);
|
|
15
|
+
return {
|
|
16
|
+
value: i(a),
|
|
17
|
+
unit: o
|
|
18
|
+
};
|
|
19
|
+
}
|
|
84
20
|
}
|
|
85
|
-
});
|
|
21
|
+
throw new Error(`Invalid width: ${t}`);
|
|
22
|
+
}
|
|
86
23
|
export {
|
|
87
|
-
|
|
24
|
+
s as parseWidthString
|
|
88
25
|
};
|
package/dist/index278.js
ADDED
package/dist/index279.js
CHANGED
|
@@ -1,17 +1,25 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}
|
|
14
|
-
|
|
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
|
+
];
|
|
15
23
|
export {
|
|
16
|
-
|
|
24
|
+
n as default
|
|
17
25
|
};
|
package/dist/index28.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as S, computed as r, ref as V, watchPostEffect as N, nextTick as D, createElementBlock as u, openBlock as i, normalizeClass as I, createBlock as B, createVNode as E, createElementVNode as d, resolveDynamicComponent as P, normalizeProps as o, guardReactiveProps as s, withCtx as b, renderSlot as C, createTextVNode as q, toDisplayString as h, unref as f, Transition as F, createCommentVNode as G, TransitionGroup as M, Fragment as R, renderList as j } from "vue";
|
|
2
|
-
import { deburr as x } from "./
|
|
2
|
+
import { deburr as x } from "./index298.js";
|
|
3
3
|
import { getAsPercentage as k } from "./index140.js";
|
|
4
4
|
import { useId as J } from "./index8.js";
|
|
5
5
|
const K = ["id"], O = { class: "bb-base-input-container__hint" }, Y = /* @__PURE__ */ S({
|
package/dist/index280.js
CHANGED
package/dist/index281.js
CHANGED
|
@@ -1,25 +1,9 @@
|
|
|
1
|
-
const
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
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
|
-
];
|
|
1
|
+
const s = (e, t, o, r) => {
|
|
2
|
+
if (r <= 0) throw new Error("Step must be a positive number");
|
|
3
|
+
if (t > o) throw new Error("Min must be less than or equal to Max");
|
|
4
|
+
const n = Math.max(t, Math.min(o, e)), a = Math.round((n - t) / r);
|
|
5
|
+
return t + a * r;
|
|
6
|
+
};
|
|
23
7
|
export {
|
|
24
|
-
|
|
8
|
+
s as snapToStep
|
|
25
9
|
};
|
package/dist/index282.js
CHANGED
|
@@ -1,25 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
if (typeof t == "number")
|
|
7
|
-
return {
|
|
8
|
-
value: i(t),
|
|
9
|
-
unit: "px"
|
|
10
|
-
};
|
|
11
|
-
if (typeof t == "string") {
|
|
12
|
-
const r = /^(-?\d*\.?\d+)([a-zA-Z%]*)?$/, e = t.match(r);
|
|
13
|
-
if (e) {
|
|
14
|
-
const [, n, o = "px"] = e, a = parseFloat(n);
|
|
15
|
-
return {
|
|
16
|
-
value: i(a),
|
|
17
|
-
unit: o
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
throw new Error(`Invalid width: ${t}`);
|
|
1
|
+
function o(t, e, n, r, a) {
|
|
2
|
+
if (n === e)
|
|
3
|
+
throw new Error("Original boundaries cannot be equal.");
|
|
4
|
+
const c = (t - e) / (n - e);
|
|
5
|
+
return r + c * (a - r);
|
|
22
6
|
}
|
|
23
7
|
export {
|
|
24
|
-
|
|
8
|
+
o as transpose
|
|
25
9
|
};
|
package/dist/index283.js
CHANGED
|
@@ -1,11 +1,35 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
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
|
+
};
|
|
9
33
|
export {
|
|
10
|
-
|
|
34
|
+
p as merge
|
|
11
35
|
};
|
package/dist/index284.js
CHANGED
|
@@ -1,6 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
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
|
+
};
|
|
4
13
|
export {
|
|
5
|
-
|
|
14
|
+
c as parseSize
|
|
6
15
|
};
|