bitboss-ui 2.0.95 → 2.0.97
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/BaseCheckbox.vue.d.ts +1 -1
- package/dist/components/BaseCheckboxGroup/BaseCheckboxGroup.vue.d.ts +3 -3
- package/dist/components/BaseColorInput/BaseColorInput.vue.d.ts +5 -1
- package/dist/components/BaseDatePicker/BaseDatePicker.vue.d.ts +22 -5
- package/dist/components/BaseDatePicker/BaseDatePickerInputDaySelector.vue.d.ts +2 -0
- package/dist/components/BaseDatePickerInput/BaseDatePickerInput.vue.d.ts +69 -19
- package/dist/components/BaseInputContainer/BaseInputContainer.vue.d.ts +4 -0
- package/dist/components/BaseNumberInput/BaseNumberInput.vue.d.ts +5 -1
- package/dist/components/BaseRadio/BaseRadio.vue.d.ts +1 -1
- package/dist/components/BaseRadioGroup/BaseRadioGroup.vue.d.ts +1 -1
- package/dist/components/BaseRating/BaseRating.vue.d.ts +1 -1
- package/dist/components/BaseSelect/BaseSelect.vue.d.ts +7 -0
- package/dist/components/BaseSlider/BaseSlider.vue.d.ts +1 -1
- package/dist/components/BaseTag/BaseTag.vue.d.ts +6 -1
- package/dist/components/BaseTextInput/BaseTextInput.vue.d.ts +5 -1
- package/dist/components/BaseTextarea/BaseTextarea.vue.d.ts +5 -1
- package/dist/components/BbCheckbox/BbCheckbox.vue.d.ts +1 -1
- package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue.d.ts +5 -1
- package/dist/components/BbColorInput/BbColorInput.vue.d.ts +5 -1
- package/dist/components/BbDatePickerInput/BbDatePickerInput.vue.d.ts +4 -0
- package/dist/components/BbNumberInput/BbNumberInput.vue.d.ts +7 -2
- package/dist/components/BbRadio/BbRadio.vue.d.ts +1 -1
- package/dist/components/BbRadioGroup/BbRadioGroup.vue.d.ts +5 -1
- package/dist/components/BbRating/BbRating.vue.d.ts +5 -1
- package/dist/components/BbSelect/BbSelect.vue.d.ts +4 -0
- package/dist/components/BbSlider/BbSlider.vue.d.ts +5 -1
- package/dist/components/BbTable/types.d.ts +1 -1
- package/dist/components/BbTag/BbTag.vue.d.ts +5 -1
- package/dist/components/BbTextInput/BbTextInput.vue.d.ts +5 -1
- package/dist/components/BbTextarea/BbTextarea.vue.d.ts +5 -1
- package/dist/components/ListBox.vue.d.ts +4 -0
- package/dist/components/OptionsContainer.vue.d.ts +2 -2
- package/dist/composables/useBbConfig.d.ts +3 -0
- package/dist/composables/useLocale.d.ts +5 -0
- package/dist/i18n/en.d.ts +8 -0
- package/dist/i18n/index.d.ts +3 -0
- package/dist/i18n/it.d.ts +8 -0
- package/dist/index100.js +4 -4
- package/dist/index101.js +18 -15
- package/dist/index103.js +11 -9
- package/dist/index105.js +10 -10
- package/dist/index107.js +16 -14
- package/dist/index111.js +6 -6
- package/dist/index113.js +12 -9
- package/dist/index115.js +27 -24
- package/dist/index117.js +27 -24
- package/dist/index119.js +2 -2
- package/dist/index121.js +5 -5
- package/dist/index123.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 +1 -1
- package/dist/index134.js +2 -2
- package/dist/index15.js +22 -20
- package/dist/index17.js +15 -16
- package/dist/index19.js +72 -65
- package/dist/index208.js +1 -1
- package/dist/index21.js +84 -72
- package/dist/index210.js +1 -1
- package/dist/index211.js +5 -20
- package/dist/index212.js +16 -4
- package/dist/index213.js +16 -5
- package/dist/index214.js +18 -15
- package/dist/index215.js +16 -13
- package/dist/index216.js +26 -18
- package/dist/index217.js +3 -19
- package/dist/index218.js +2 -27
- package/dist/index219.js +8 -3
- package/dist/index220.js +250 -2
- package/dist/index221.js +50 -6
- package/dist/index222.js +36 -241
- package/dist/index223.js +5 -52
- package/dist/index224.js +47 -31
- package/dist/index225.js +2 -5
- package/dist/index226.js +4 -60
- package/dist/index227.js +2 -2
- package/dist/index228.js +126 -4
- package/dist/index229.js +125 -2
- package/dist/index23.js +28 -26
- package/dist/index230.js +2 -3
- package/dist/index231.js +1 -1
- package/dist/index232.js +20 -6
- package/dist/index233.js +6 -7
- package/dist/index234.js +5 -12
- package/dist/index235.js +12 -164
- package/dist/index236.js +368 -83
- package/dist/index237.js +166 -0
- package/dist/index238.js +83 -125
- package/dist/index240.js +8 -2
- package/dist/index241.js +3 -5
- package/dist/index242.js +7 -369
- package/dist/index243.js +1 -1
- package/dist/index244.js +4 -2
- package/dist/index245.js +1 -1
- package/dist/index247.js +1 -1
- package/dist/index249.js +2 -2
- package/dist/index25.js +5 -5
- package/dist/index250.js +2 -18
- package/dist/index251.js +17 -9
- package/dist/index252.js +9 -2
- package/dist/index253.js +2 -8
- package/dist/index254.js +3 -23
- package/dist/index256.js +9 -0
- package/dist/index257.js +4 -9
- package/dist/index258.js +281 -6
- package/dist/index259.js +6 -16
- package/dist/index260.js +2 -3
- package/dist/index261.js +4 -0
- package/dist/index262.js +2 -7
- package/dist/index263.js +2 -176
- package/dist/index264.js +2 -281
- package/dist/index265.js +2 -6
- package/dist/index266.js +2 -2
- package/dist/index267.js +2 -2
- package/dist/index268.js +2 -2
- package/dist/index269.js +2 -2
- package/dist/index27.js +8 -6
- package/dist/index270.js +28 -2
- package/dist/index271.js +22 -2
- package/dist/index273.js +89 -2
- package/dist/index275.js +9 -2
- package/dist/index276.js +6 -28
- package/dist/index277.js +15 -21
- package/dist/index278.js +11 -0
- package/dist/index279.js +23 -4
- package/dist/index280.js +3 -431
- package/dist/index281.js +12 -2
- package/dist/index282.js +7 -87
- package/dist/index283.js +9 -3
- package/dist/index284.js +17 -12
- package/dist/index285.js +3 -8
- package/dist/index286.js +7 -9
- package/dist/index287.js +11 -17
- package/dist/index288.js +2 -4
- package/dist/index289.js +122 -196
- package/dist/index29.js +8 -6
- package/dist/index290.js +431 -2
- package/dist/index291.js +171 -121
- package/dist/index294.js +2 -8
- package/dist/index295.js +83 -218
- package/dist/index296.js +219 -431
- package/dist/index297.js +8 -127
- package/dist/index298.js +200 -3
- package/dist/index299.js +436 -3
- package/dist/index300.js +126 -210
- package/dist/index301.js +1 -1
- package/dist/index302.js +2 -32
- package/dist/index303.js +2 -5
- package/dist/index304.js +5 -8
- package/dist/index305.js +66 -3
- package/dist/index306.js +213 -3
- package/dist/index307.js +32 -57
- package/dist/index308.js +5 -2
- package/dist/index309.js +7 -6
- package/dist/index31.js +6 -6
- package/dist/index310.js +2 -65
- package/dist/index311.js +4 -5
- package/dist/index312.js +3 -7
- package/dist/index313.js +3 -19
- package/dist/index314.js +57 -10
- package/dist/index315.js +6 -3
- package/dist/index316.js +6 -46
- package/dist/index317.js +19 -480
- package/dist/index318.js +10 -0
- package/dist/index319.js +8 -2
- package/dist/index320.js +43 -420
- package/dist/index321.js +2 -47
- package/dist/index322.js +480 -2
- package/dist/index324.js +426 -0
- package/dist/index325.js +49 -0
- package/dist/index326.js +4 -0
- package/dist/index33.js +12 -12
- package/dist/index35.js +35 -35
- package/dist/index37.js +54 -50
- package/dist/index39.js +4 -4
- package/dist/index4.js +5 -4
- package/dist/index41.js +3 -3
- package/dist/index43.js +3 -3
- package/dist/index45.js +42 -40
- package/dist/index47.js +29 -27
- package/dist/index49.js +16 -14
- package/dist/index55.js +1 -1
- package/dist/index57.js +1 -1
- package/dist/index61.js +2 -2
- package/dist/index63.js +9 -9
- package/dist/index65.js +11 -9
- package/dist/index67.js +24 -21
- package/dist/index71.js +8 -5
- package/dist/index75.js +3 -3
- package/dist/index77.js +36 -34
- package/dist/index79.js +2 -2
- package/dist/index81.js +1 -1
- package/dist/index82.js +24 -21
- package/dist/index84.js +2 -2
- package/dist/index86.js +1 -1
- package/dist/index88.js +2 -2
- package/dist/index92.js +6 -6
- package/dist/index94.js +11 -9
- package/dist/index96.js +13 -11
- package/dist/style.css +1 -1
- package/dist/types/CommonProps.d.ts +1 -1
- package/package.json +2 -2
- package/dist/index239.js +0 -127
- package/dist/index255.js +0 -91
- package/dist/index272.js +0 -4
- package/dist/index274.js +0 -4
package/dist/index289.js
CHANGED
@@ -1,202 +1,128 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
var w = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])", "a[href]:not([inert])", "button:not([inert])", "[tabindex]:not(slot):not([inert])", "audio[controls]:not([inert])", "video[controls]:not([inert])", '[contenteditable]:not([contenteditable="false"]):not([inert])', "details>summary:first-of-type:not([inert])", "details:not([inert])"], v = /* @__PURE__ */ w.join(","), T = typeof Element > "u", o = T ? function() {
|
6
|
-
} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector, b = !T && Element.prototype.getRootNode ? function(i) {
|
1
|
+
function l(n) {
|
2
|
+
return d(n) ? (n.nodeName || "").toLowerCase() : "#document";
|
3
|
+
}
|
4
|
+
function c(n) {
|
7
5
|
var t;
|
8
|
-
return
|
9
|
-
}
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
return n;
|
16
|
-
}
|
17
|
-
|
18
|
-
return
|
19
|
-
}
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
var y = i(d === !0 ? n.children : d.children, !0, r);
|
41
|
-
r.flatten ? a.push.apply(a, y) : a.push({
|
42
|
-
scopeParent: n,
|
43
|
-
candidates: y
|
44
|
-
});
|
45
|
-
} else
|
46
|
-
l.unshift.apply(l, n.children);
|
47
|
-
}
|
48
|
-
}
|
49
|
-
return a;
|
50
|
-
}, N = function(t) {
|
51
|
-
return !isNaN(parseInt(t.getAttribute("tabindex"), 10));
|
52
|
-
}, R = function(t) {
|
53
|
-
if (!t)
|
54
|
-
throw new Error("No node provided");
|
55
|
-
return t.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName) || A(t)) && !N(t) ? 0 : t.tabIndex;
|
56
|
-
}, x = function(t, e) {
|
57
|
-
var r = R(t);
|
58
|
-
return r < 0 && e && !N(t) ? 0 : r;
|
59
|
-
}, O = function(t, e) {
|
60
|
-
return t.tabIndex === e.tabIndex ? t.documentOrder - e.documentOrder : t.tabIndex - e.tabIndex;
|
61
|
-
}, C = function(t) {
|
62
|
-
return t.tagName === "INPUT";
|
63
|
-
}, F = function(t) {
|
64
|
-
return C(t) && t.type === "hidden";
|
65
|
-
}, D = function(t) {
|
66
|
-
var e = t.tagName === "DETAILS" && Array.prototype.slice.apply(t.children).some(function(r) {
|
67
|
-
return r.tagName === "SUMMARY";
|
68
|
-
});
|
69
|
-
return e;
|
70
|
-
}, k = function(t, e) {
|
71
|
-
for (var r = 0; r < t.length; r++)
|
72
|
-
if (t[r].checked && t[r].form === e)
|
73
|
-
return t[r];
|
74
|
-
}, M = function(t) {
|
75
|
-
if (!t.name)
|
76
|
-
return !0;
|
77
|
-
var e = t.form || b(t), r = function(u) {
|
78
|
-
return e.querySelectorAll('input[type="radio"][name="' + u + '"]');
|
79
|
-
}, a;
|
80
|
-
if (typeof window < "u" && typeof window.CSS < "u" && typeof window.CSS.escape == "function")
|
81
|
-
a = r(window.CSS.escape(t.name));
|
82
|
-
else
|
6
|
+
return (n == null || (t = n.ownerDocument) == null ? void 0 : t.defaultView) || window;
|
7
|
+
}
|
8
|
+
function S(n) {
|
9
|
+
var t;
|
10
|
+
return (t = (d(n) ? n.ownerDocument : n.document) || window.document) == null ? void 0 : t.documentElement;
|
11
|
+
}
|
12
|
+
function d(n) {
|
13
|
+
return n instanceof Node || n instanceof c(n).Node;
|
14
|
+
}
|
15
|
+
function p(n) {
|
16
|
+
return n instanceof Element || n instanceof c(n).Element;
|
17
|
+
}
|
18
|
+
function m(n) {
|
19
|
+
return n instanceof HTMLElement || n instanceof c(n).HTMLElement;
|
20
|
+
}
|
21
|
+
function f(n) {
|
22
|
+
return typeof ShadowRoot > "u" ? !1 : n instanceof ShadowRoot || n instanceof c(n).ShadowRoot;
|
23
|
+
}
|
24
|
+
function w(n) {
|
25
|
+
const {
|
26
|
+
overflow: t,
|
27
|
+
overflowX: e,
|
28
|
+
overflowY: o,
|
29
|
+
display: r
|
30
|
+
} = g(n);
|
31
|
+
return /auto|scroll|overlay|hidden|clip/.test(t + o + e) && !["inline", "contents"].includes(r);
|
32
|
+
}
|
33
|
+
function L(n) {
|
34
|
+
return ["table", "td", "th"].includes(l(n));
|
35
|
+
}
|
36
|
+
function E(n) {
|
37
|
+
return [":popover-open", ":modal"].some((t) => {
|
83
38
|
try {
|
84
|
-
|
85
|
-
} catch
|
86
|
-
return
|
87
|
-
}
|
88
|
-
var l = k(a, t.form);
|
89
|
-
return !l || l === t;
|
90
|
-
}, L = function(t) {
|
91
|
-
return C(t) && t.type === "radio";
|
92
|
-
}, P = function(t) {
|
93
|
-
return L(t) && !M(t);
|
94
|
-
}, B = function(t) {
|
95
|
-
var e, r = t && b(t), a = (e = r) === null || e === void 0 ? void 0 : e.host, l = !1;
|
96
|
-
if (r && r !== t) {
|
97
|
-
var n, u, c;
|
98
|
-
for (l = !!((n = a) !== null && n !== void 0 && (u = n.ownerDocument) !== null && u !== void 0 && u.contains(a) || t != null && (c = t.ownerDocument) !== null && c !== void 0 && c.contains(t)); !l && a; ) {
|
99
|
-
var s, f, d;
|
100
|
-
r = b(a), a = (s = r) === null || s === void 0 ? void 0 : s.host, l = !!((f = a) !== null && f !== void 0 && (d = f.ownerDocument) !== null && d !== void 0 && d.contains(a));
|
39
|
+
return n.matches(t);
|
40
|
+
} catch {
|
41
|
+
return !1;
|
101
42
|
}
|
43
|
+
});
|
44
|
+
}
|
45
|
+
function N(n) {
|
46
|
+
const t = T(), e = p(n) ? g(n) : n;
|
47
|
+
return e.transform !== "none" || e.perspective !== "none" || (e.containerType ? e.containerType !== "normal" : !1) || !t && (e.backdropFilter ? e.backdropFilter !== "none" : !1) || !t && (e.filter ? e.filter !== "none" : !1) || ["transform", "perspective", "filter"].some((o) => (e.willChange || "").includes(o)) || ["paint", "layout", "strict", "content"].some((o) => (e.contain || "").includes(o));
|
48
|
+
}
|
49
|
+
function D(n) {
|
50
|
+
let t = u(n);
|
51
|
+
for (; m(t) && !y(t); ) {
|
52
|
+
if (N(t))
|
53
|
+
return t;
|
54
|
+
if (E(t))
|
55
|
+
return null;
|
56
|
+
t = u(t);
|
102
57
|
}
|
103
|
-
return
|
104
|
-
}
|
105
|
-
|
106
|
-
return
|
107
|
-
}
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
}
|
152
|
-
return !(P(e) || R(e) < 0 || !g(t, e));
|
153
|
-
}, V = function(t) {
|
154
|
-
var e = parseInt(t.getAttribute("tabindex"), 10);
|
155
|
-
return !!(isNaN(e) || e >= 0);
|
156
|
-
}, j = function i(t) {
|
157
|
-
var e = [], r = [];
|
158
|
-
return t.forEach(function(a, l) {
|
159
|
-
var n = !!a.scopeParent, u = n ? a.scopeParent : a, c = x(u, n), s = n ? i(a.candidates) : u;
|
160
|
-
c === 0 ? n ? e.push.apply(e, s) : e.push(u) : r.push({
|
161
|
-
documentOrder: l,
|
162
|
-
tabIndex: c,
|
163
|
-
item: a,
|
164
|
-
isScope: n,
|
165
|
-
content: s
|
166
|
-
});
|
167
|
-
}), r.sort(O).reduce(function(a, l) {
|
168
|
-
return l.isScope ? a.push.apply(a, l.content) : a.push(l.content), a;
|
169
|
-
}, []).concat(e);
|
170
|
-
}, Z = function(t, e) {
|
171
|
-
e = e || {};
|
172
|
-
var r;
|
173
|
-
return e.getShadowRoot ? r = m([t], e.includeContainer, {
|
174
|
-
filter: S.bind(null, e),
|
175
|
-
flatten: !1,
|
176
|
-
getShadowRoot: e.getShadowRoot,
|
177
|
-
shadowRootFilter: V
|
178
|
-
}) : r = I(t, e.includeContainer, S.bind(null, e)), j(r);
|
179
|
-
}, z = function(t, e) {
|
180
|
-
e = e || {};
|
181
|
-
var r;
|
182
|
-
return e.getShadowRoot ? r = m([t], e.includeContainer, {
|
183
|
-
filter: g.bind(null, e),
|
184
|
-
flatten: !0,
|
185
|
-
getShadowRoot: e.getShadowRoot
|
186
|
-
}) : r = I(t, e.includeContainer, g.bind(null, e)), r;
|
187
|
-
}, G = function(t, e) {
|
188
|
-
if (e = e || {}, !t)
|
189
|
-
throw new Error("No node provided");
|
190
|
-
return o.call(t, v) === !1 ? !1 : S(e, t);
|
191
|
-
}, W = /* @__PURE__ */ w.concat("iframe").join(","), X = function(t, e) {
|
192
|
-
if (e = e || {}, !t)
|
193
|
-
throw new Error("No node provided");
|
194
|
-
return o.call(t, W) === !1 ? !1 : g(e, t);
|
195
|
-
};
|
58
|
+
return null;
|
59
|
+
}
|
60
|
+
function T() {
|
61
|
+
return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
|
62
|
+
}
|
63
|
+
function y(n) {
|
64
|
+
return ["html", "body", "#document"].includes(l(n));
|
65
|
+
}
|
66
|
+
function g(n) {
|
67
|
+
return c(n).getComputedStyle(n);
|
68
|
+
}
|
69
|
+
function k(n) {
|
70
|
+
return p(n) ? {
|
71
|
+
scrollLeft: n.scrollLeft,
|
72
|
+
scrollTop: n.scrollTop
|
73
|
+
} : {
|
74
|
+
scrollLeft: n.scrollX,
|
75
|
+
scrollTop: n.scrollY
|
76
|
+
};
|
77
|
+
}
|
78
|
+
function u(n) {
|
79
|
+
if (l(n) === "html")
|
80
|
+
return n;
|
81
|
+
const t = (
|
82
|
+
// Step into the shadow DOM of the parent of a slotted node.
|
83
|
+
n.assignedSlot || // DOM Element detected.
|
84
|
+
n.parentNode || // ShadowRoot detected.
|
85
|
+
f(n) && n.host || // Fallback.
|
86
|
+
S(n)
|
87
|
+
);
|
88
|
+
return f(t) ? t.host : t;
|
89
|
+
}
|
90
|
+
function b(n) {
|
91
|
+
const t = u(n);
|
92
|
+
return y(t) ? n.ownerDocument ? n.ownerDocument.body : n.body : m(t) && w(t) ? t : b(t);
|
93
|
+
}
|
94
|
+
function a(n, t, e) {
|
95
|
+
var o;
|
96
|
+
t === void 0 && (t = []), e === void 0 && (e = !0);
|
97
|
+
const r = b(n), h = r === ((o = n.ownerDocument) == null ? void 0 : o.body), i = c(r);
|
98
|
+
if (h) {
|
99
|
+
const s = v(i);
|
100
|
+
return t.concat(i, i.visualViewport || [], w(r) ? r : [], s && e ? a(s) : []);
|
101
|
+
}
|
102
|
+
return t.concat(r, a(r, [], e));
|
103
|
+
}
|
104
|
+
function v(n) {
|
105
|
+
return n.parent && Object.getPrototypeOf(n.parent) ? n.frameElement : null;
|
106
|
+
}
|
196
107
|
export {
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
108
|
+
g as getComputedStyle,
|
109
|
+
D as getContainingBlock,
|
110
|
+
S as getDocumentElement,
|
111
|
+
v as getFrameElement,
|
112
|
+
b as getNearestOverflowAncestor,
|
113
|
+
l as getNodeName,
|
114
|
+
k as getNodeScroll,
|
115
|
+
a as getOverflowAncestors,
|
116
|
+
u as getParentNode,
|
117
|
+
c as getWindow,
|
118
|
+
N as isContainingBlock,
|
119
|
+
p as isElement,
|
120
|
+
m as isHTMLElement,
|
121
|
+
y as isLastTraversableNode,
|
122
|
+
d as isNode,
|
123
|
+
w as isOverflowElement,
|
124
|
+
f as isShadowRoot,
|
125
|
+
L as isTableElement,
|
126
|
+
E as isTopLayer,
|
127
|
+
T as isWebKit
|
202
128
|
};
|
package/dist/index29.js
CHANGED
@@ -10,6 +10,7 @@ const O = ["id", "aria-describedby", "autocomplete", "autofocus", "disabled", "n
|
|
10
10
|
ariaDescribedby: {},
|
11
11
|
autocomplete: { default: "off" },
|
12
12
|
autofocus: {},
|
13
|
+
compact: { type: Boolean },
|
13
14
|
disabled: { type: Boolean },
|
14
15
|
hasErrors: { type: Boolean },
|
15
16
|
id: {},
|
@@ -20,7 +21,7 @@ const O = ["id", "aria-describedby", "autocomplete", "autofocus", "disabled", "n
|
|
20
21
|
name: {},
|
21
22
|
placeholder: {},
|
22
23
|
"prepend:icon": {},
|
23
|
-
readonly: {},
|
24
|
+
readonly: { type: Boolean },
|
24
25
|
required: { type: Boolean },
|
25
26
|
step: { default: 1 }
|
26
27
|
},
|
@@ -31,7 +32,8 @@ const O = ["id", "aria-describedby", "autocomplete", "autofocus", "disabled", "n
|
|
31
32
|
"bb-base-number-input--disabled": n.disabled,
|
32
33
|
"bb-base-number-input--errors": n.hasErrors,
|
33
34
|
"bb-base-number-input--loading": n.loading,
|
34
|
-
"bb-base-number-input--readonly": n.readonly
|
35
|
+
"bb-base-number-input--readonly": n.readonly,
|
36
|
+
"bb-base-number-input--compact": n.compact
|
35
37
|
})), s = g(null), p = g(!1), i = () => {
|
36
38
|
if (n.disabled || n.readonly || p.value) return;
|
37
39
|
const e = typeof n.min > "u" ? -1 / 0 : n.min, a = typeof n.max > "u" ? 1 / 0 : n.max;
|
@@ -60,19 +62,19 @@ const O = ["id", "aria-describedby", "autocomplete", "autofocus", "disabled", "n
|
|
60
62
|
p.value = !0;
|
61
63
|
t("input", e);
|
62
64
|
}
|
63
|
-
},
|
65
|
+
}, B = (e) => {
|
64
66
|
e.key === "ArrowUp" ? (e.preventDefault(), r()) : e.key === "ArrowDown" && (e.preventDefault(), i());
|
65
67
|
}, y = (e) => {
|
66
68
|
if (typeof e == "number") return e;
|
67
69
|
let a = e.replaceAll(",", "."), l = a.slice(0, 1).concat(a.slice(1).replaceAll("-", "")).replaceAll(/[^\d.-]/g, "").split("."), c = l.slice(0, 1).join("") || 0, f = l.slice(1).join("") || 0, C = `${c}.${f}`;
|
68
70
|
return Number(C);
|
69
|
-
},
|
71
|
+
}, $ = {
|
70
72
|
onBlur: (e) => t("blur", e),
|
71
73
|
onChange: (e) => t("change", e),
|
72
74
|
onClick: (e) => t("click", e),
|
73
75
|
onFocus: (e) => t("focus", e),
|
74
76
|
onKeydown: (e) => {
|
75
|
-
|
77
|
+
B(e), t("keydown", e);
|
76
78
|
},
|
77
79
|
onKeyup: (e) => t("keyup", e),
|
78
80
|
onMousedown: (e) => t("mousedown", e),
|
@@ -143,7 +145,7 @@ const O = ["id", "aria-describedby", "autocomplete", "autofocus", "disabled", "n
|
|
143
145
|
required: e.required,
|
144
146
|
size: "1",
|
145
147
|
type: "text"
|
146
|
-
},
|
148
|
+
}, $, {
|
147
149
|
onInput: K(V, ["stop"])
|
148
150
|
}), null, 16, O)
|
149
151
|
]),
|