bitboss-ui 2.0.41 → 2.0.43
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/BaseButton.vue.d.ts +7 -14
- package/dist/components/BaseCheckbox/BaseCheckbox.vue.d.ts +6 -15
- package/dist/components/BaseCheckboxGroup/BaseCheckboxGroup.vue.d.ts +221 -27
- package/dist/components/BaseColorInput/BaseColorInput.vue.d.ts +2 -12
- package/dist/components/BaseDatePicker/BaseDatePickerInputDaySelector.vue.d.ts +18 -27
- package/dist/components/BaseDatePickerInput/BaseDatePickerInput.vue.d.ts +19 -161
- package/dist/components/BaseDialog/BaseDialog.vue.d.ts +2 -16
- package/dist/components/BaseInputContainer/BaseInputContainer.vue.d.ts +3 -10
- package/dist/components/BaseNumberInput/BaseNumberInput.vue.d.ts +2 -11
- package/dist/components/BaseRadio/BaseRadio.vue.d.ts +6 -13
- package/dist/components/BaseRadioGroup/BaseRadioGroup.vue.d.ts +224 -27
- package/dist/components/BaseRating/BaseRating.vue.d.ts +2 -11
- package/dist/components/BaseSelect/BaseSelect.vue.d.ts +6 -337
- package/dist/components/BaseSlider/BaseSlider.vue.d.ts +3 -15
- package/dist/components/BaseSwitch/BaseSwitch.vue.d.ts +2 -11
- package/dist/components/BaseSwitchGroup/BaseSwitchGroup.vue.d.ts +214 -30
- package/dist/components/BaseTag/BaseTag.vue.d.ts +4 -210
- package/dist/components/BaseTextInput/BaseTextInput.vue.d.ts +3 -12
- package/dist/components/BaseTextarea/BaseTextarea.vue.d.ts +2 -11
- package/dist/components/BbAccordion/BbAccordion.vue.d.ts +20 -28
- package/dist/components/BbAlert/BbAlert.vue.d.ts +16 -23
- package/dist/components/BbAvatar/BbAvatar.vue.d.ts +6 -15
- package/dist/components/BbBadge/BbBadge.vue.d.ts +7 -14
- package/dist/components/BbBreadcrumbs/BbBreadcrumbs.vue.d.ts +44 -51
- package/dist/components/BbButton/BbButton.vue.d.ts +6 -13
- package/dist/components/BbCheckbox/BbCheckbox.vue.d.ts +19 -26
- package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue.d.ts +249 -34
- package/dist/components/BbChip/BbChip.vue.d.ts +6 -13
- package/dist/components/BbCollapsible/BbCollapsible.vue.d.ts +6 -13
- package/dist/components/BbColorInput/BbColorInput.vue.d.ts +12 -19
- package/dist/components/BbConfirm/BbConfirm.vue.d.ts +17 -24
- package/dist/components/BbDatePickerInput/BbDatePickerInput.vue.d.ts +22 -29
- package/dist/components/BbDialog/BbDialog.vue.d.ts +2 -9
- package/dist/components/BbDropdown/BbDropdown.vue.d.ts +159 -169
- package/dist/components/BbDropdownButton/BbDropdownButton.vue.d.ts +183 -190
- package/dist/components/BbDropzone/BbDropzone.vue.d.ts +17 -26
- package/dist/components/BbIntersection/BbIntersection.vue.d.ts +15 -24
- package/dist/components/BbNumberInput/BbNumberInput.vue.d.ts +12 -98
- package/dist/components/BbOffCanvas/BbOffCanvas.vue.d.ts +3 -17
- package/dist/components/BbPagination/BbPagination.vue.d.ts +23 -33
- package/dist/components/BbPopover/BbPopover.vue.d.ts +53 -65
- package/dist/components/BbRadio/BbRadio.vue.d.ts +19 -26
- package/dist/components/BbRadioGroup/BbRadioGroup.vue.d.ts +252 -34
- package/dist/components/BbRating/BbRating.vue.d.ts +12 -19
- package/dist/components/BbRatio/BbRatio.vue.d.ts +7 -14
- package/dist/components/BbSelect/BbSelect.vue.d.ts +156 -15
- package/dist/components/BbSlider/BbSlider.vue.d.ts +12 -19
- package/dist/components/BbSmoothHeight/BbSmoothHeight.vue.d.ts +3 -13
- package/dist/components/BbSwitch/BbSwitch.vue.d.ts +19 -26
- package/dist/components/BbSwitchGroup/BbSwitchGroup.vue.d.ts +249 -34
- package/dist/components/BbTab/BbTab.vue.d.ts +77 -88
- package/dist/components/BbTable/BbTable.vue.d.ts +77 -86
- package/dist/components/BbTag/BbTag.vue.d.ts +2 -9
- package/dist/components/BbTextInput/BbTextInput.vue.d.ts +12 -19
- package/dist/components/BbTextarea/BbTextarea.vue.d.ts +12 -19
- package/dist/components/BbToast/BbToast.vue.d.ts +1 -1
- package/dist/components/BbTooltip/BbTooltip.vue.d.ts +3 -13
- package/dist/components/BbTree/BbTree.vue.d.ts +2 -9
- package/dist/components/ChipsBox.vue.d.ts +1 -1
- package/dist/components/CommaBox.vue.d.ts +1 -1
- package/dist/components/CommonFloating.vue.d.ts +4 -14
- package/dist/components/CommonInputInnerContainer.vue.d.ts +7 -16
- package/dist/components/CommonInputOuterContainer.vue.d.ts +5 -12
- package/dist/components/ListBox.vue.d.ts +15 -24
- package/dist/components/OptionsContainer.vue.d.ts +88 -26
- package/dist/components/Transitions/Slide.vue.d.ts +5 -12
- package/dist/components/Transitions/SlideBack.vue.d.ts +5 -12
- package/dist/composables/useBroadcastChannelInstance.d.ts +2 -2
- package/dist/composables/useToast.d.ts +1 -1
- package/dist/composables/useWizard.d.ts +1 -1
- package/dist/index108.js +1 -1
- package/dist/index110.js +3 -3
- package/dist/index118.js +1 -1
- package/dist/index120.js +5 -5
- package/dist/index122.js +1 -1
- package/dist/index126.js +1 -1
- package/dist/index127.js +1 -1
- package/dist/index128.js +1 -1
- package/dist/index13.js +1 -1
- package/dist/index130.js +1 -1
- package/dist/index132.js +2 -2
- package/dist/index15.js +43 -42
- package/dist/index17.js +3 -3
- package/dist/index204.js +2 -116
- package/dist/index205.js +8 -2
- package/dist/index206.js +53 -3
- package/dist/index208.js +13 -6
- package/dist/index209.js +20 -7
- package/dist/index21.js +14 -14
- package/dist/index210.js +4 -8
- package/dist/index211.js +105 -115
- package/dist/index212.js +2 -281
- package/dist/index213.js +4 -125
- package/dist/index214.js +2 -19
- package/dist/index215.js +5 -16
- package/dist/index216.js +10 -10
- package/dist/index217.js +16 -2
- package/dist/index218.js +19 -2
- package/dist/index219.js +18 -19
- package/dist/index220.js +26 -52
- package/dist/index221.js +5 -0
- package/dist/index222.js +2 -13
- package/dist/index223.js +249 -5
- package/dist/index224.js +50 -367
- package/dist/index225.js +44 -19
- package/dist/index226.js +5 -27
- package/dist/index227.js +49 -3
- package/dist/index228.js +122 -245
- package/dist/index229.js +124 -51
- package/dist/index23.js +15 -15
- package/dist/index230.js +2 -44
- package/dist/index231.js +41 -5
- package/dist/index232.js +5 -48
- package/dist/index233.js +5 -4
- package/dist/index234.js +369 -3
- package/dist/index235.js +3 -3
- package/dist/index238.js +3 -2
- package/dist/index239.js +3 -4
- package/dist/index240.js +7 -2
- package/dist/index241.js +106 -2
- package/dist/index243.js +47 -53
- package/dist/index245.js +2 -100
- package/dist/index25.js +5 -5
- package/dist/index250.js +6 -431
- package/dist/index251.js +16 -89
- package/dist/index252.js +3 -6
- package/dist/index253.js +9 -2
- package/dist/index254.js +23 -2
- package/dist/index255.js +9 -2
- package/dist/index256.js +3 -2
- package/dist/index258.js +7 -126
- package/dist/index260.js +4 -3
- package/dist/index261.js +283 -0
- package/dist/index262.js +6 -7
- package/dist/index263.js +2 -22
- package/dist/index265.js +2 -200
- package/dist/index268.js +2 -2
- package/dist/index269.js +1 -1
- package/dist/index27.js +1 -1
- package/dist/index270.js +1 -1
- package/dist/index271.js +1 -1
- package/dist/index272.js +2 -28
- package/dist/index273.js +27 -21
- package/dist/index274.js +24 -0
- package/dist/index276.js +2 -127
- package/dist/index277.js +120 -218
- package/dist/index278.js +431 -6
- package/dist/index279.js +21 -15
- package/dist/index286.js +224 -3
- package/dist/index287.js +198 -7
- package/dist/index288.js +436 -23
- package/dist/index289.js +126 -3
- package/dist/index29.js +3 -3
- package/dist/index290.js +89 -3
- package/dist/index291.js +1 -1
- package/dist/index292.js +3 -211
- package/dist/index293.js +211 -2
- package/dist/index294.js +2 -66
- package/dist/index295.js +66 -5
- package/dist/index296.js +5 -7
- package/dist/index297.js +4 -19
- package/dist/index298.js +4 -35
- package/dist/index299.js +58 -6
- package/dist/index300.js +1 -1
- package/dist/index301.js +1 -1
- package/dist/index302.js +79 -4
- package/dist/index304.js +3 -58
- package/dist/index305.js +34 -3
- package/dist/index306.js +7 -79
- package/dist/index307.js +21 -0
- package/dist/index308.js +6 -46
- package/dist/index31.js +2 -2
- package/dist/index310.js +47 -2
- package/dist/index311.js +4 -0
- package/dist/index312.js +2 -2
- package/dist/index314.js +420 -43
- package/dist/index315.js +47 -2
- package/dist/index316.js +4 -0
- package/dist/index35.js +3 -3
- package/dist/index37.js +12 -12
- package/dist/index39.js +3 -3
- package/dist/index41.js +2 -2
- package/dist/index45.js +5 -5
- package/dist/index47.js +2 -2
- package/dist/index49.js +2 -2
- package/dist/index55.js +1 -1
- package/dist/index57.js +1 -1
- package/dist/index75.js +3 -3
- package/dist/index79.js +2 -2
- package/dist/index81.js +1 -1
- package/dist/index84.js +2 -2
- package/dist/index86.js +1 -1
- package/dist/index88.js +3 -3
- package/dist/index90.js +1 -1
- package/dist/style.css +1 -1
- package/dist/utilities/functions/booleanishToBoolean.d.ts +1 -1
- package/dist/utilities/functions/deburr.d.ts +1 -1
- package/dist/utilities/functions/flattenTree.d.ts +1 -1
- package/dist/utilities/functions/groupBy.d.ts +1 -1
- package/dist/utilities/functions/indexBy.d.ts +1 -1
- package/dist/utilities/functions/mapValues.d.ts +1 -1
- package/dist/utilities/functions/millisecondsTo.d.ts +1 -1
- package/dist/utilities/functions/replace.d.ts +1 -1
- package/dist/utilities/functions/retry.d.ts +1 -1
- package/dist/utilities/functions/throttle.d.ts +2 -2
- package/package.json +2 -2
- package/dist/index207.js +0 -43
- package/dist/index275.js +0 -438
- package/dist/index280.js +0 -11
- package/dist/index303.js +0 -6
- package/dist/index313.js +0 -426
- /package/dist/{index242.js → index246.js} +0 -0
- /package/dist/{index257.js → index264.js} +0 -0
package/dist/index204.js
CHANGED
@@ -1,118 +1,4 @@
|
|
1
|
-
|
2
|
-
function V(t) {
|
3
|
-
return F() ? (O(t), !0) : !1;
|
4
|
-
}
|
5
|
-
function d(t) {
|
6
|
-
return typeof t == "function" ? t() : D(t);
|
7
|
-
}
|
8
|
-
const A = typeof window < "u" && typeof document < "u";
|
9
|
-
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
10
|
-
const E = (t) => t != null, M = Object.prototype.toString, I = (t) => M.call(t) === "[object Object]", p = () => {
|
11
|
-
};
|
12
|
-
function h(t, r) {
|
13
|
-
function e(...n) {
|
14
|
-
return new Promise((o, i) => {
|
15
|
-
Promise.resolve(t(() => r.apply(this, n), { fn: r, thisArg: this, args: n })).then(o).catch(i);
|
16
|
-
});
|
17
|
-
}
|
18
|
-
return e;
|
19
|
-
}
|
20
|
-
const R = (t) => t();
|
21
|
-
function k(t, r = {}) {
|
22
|
-
let e, n, o = p;
|
23
|
-
const i = (l) => {
|
24
|
-
clearTimeout(l), o(), o = p;
|
25
|
-
};
|
26
|
-
return (l) => {
|
27
|
-
const c = d(t), u = d(r.maxWait);
|
28
|
-
return e && i(e), c <= 0 || u !== void 0 && u <= 0 ? (n && (i(n), n = null), Promise.resolve(l())) : new Promise((a, w) => {
|
29
|
-
o = r.rejectOnCancel ? w : a, u && !n && (n = setTimeout(() => {
|
30
|
-
e && i(e), n = null, a(l());
|
31
|
-
}, u)), e = setTimeout(() => {
|
32
|
-
n && i(n), n = null, a(l());
|
33
|
-
}, c);
|
34
|
-
});
|
35
|
-
};
|
36
|
-
}
|
37
|
-
function b(...t) {
|
38
|
-
let r = 0, e, n = !0, o = p, i, s, l, c, u;
|
39
|
-
!x(t[0]) && typeof t[0] == "object" ? { delay: s, trailing: l = !0, leading: c = !0, rejectOnCancel: u = !1 } = t[0] : [s, l = !0, c = !0, u = !1] = t;
|
40
|
-
const a = () => {
|
41
|
-
e && (clearTimeout(e), e = void 0, o(), o = p);
|
42
|
-
};
|
43
|
-
return (g) => {
|
44
|
-
const f = d(s), T = Date.now() - r, m = () => i = g();
|
45
|
-
return a(), f <= 0 ? (r = Date.now(), m()) : (T > f && (c || !n) ? (r = Date.now(), m()) : l && (i = new Promise((y, j) => {
|
46
|
-
o = u ? j : y, e = setTimeout(() => {
|
47
|
-
r = Date.now(), n = !0, y(m()), a();
|
48
|
-
}, Math.max(0, f - T));
|
49
|
-
})), !c && !e && (e = setTimeout(() => n = !0, f)), n = !1, i);
|
50
|
-
};
|
51
|
-
}
|
52
|
-
function v(t) {
|
53
|
-
return P();
|
54
|
-
}
|
55
|
-
function N(t, r = 200, e = {}) {
|
56
|
-
return h(
|
57
|
-
k(r, e),
|
58
|
-
t
|
59
|
-
);
|
60
|
-
}
|
61
|
-
function _(t, r = 200, e = !1, n = !0, o = !1) {
|
62
|
-
return h(
|
63
|
-
b(r, e, n, o),
|
64
|
-
t
|
65
|
-
);
|
66
|
-
}
|
67
|
-
function G(t, r, e = {}) {
|
68
|
-
const {
|
69
|
-
eventFilter: n = R,
|
70
|
-
...o
|
71
|
-
} = e;
|
72
|
-
return S(
|
73
|
-
t,
|
74
|
-
h(
|
75
|
-
n,
|
76
|
-
r
|
77
|
-
),
|
78
|
-
o
|
79
|
-
);
|
80
|
-
}
|
81
|
-
function q(t, r = !0, e) {
|
82
|
-
v() ? C(t, e) : r ? t() : W(t);
|
83
|
-
}
|
84
|
-
function z(t, r, e = {}) {
|
85
|
-
const {
|
86
|
-
throttle: n = 0,
|
87
|
-
trailing: o = !0,
|
88
|
-
leading: i = !0,
|
89
|
-
...s
|
90
|
-
} = e;
|
91
|
-
return G(
|
92
|
-
t,
|
93
|
-
r,
|
94
|
-
{
|
95
|
-
...s,
|
96
|
-
eventFilter: b(n, o, i)
|
97
|
-
}
|
98
|
-
);
|
99
|
-
}
|
1
|
+
const n = (t, a, m) => Math.min(Math.max(t, a), m);
|
100
2
|
export {
|
101
|
-
|
102
|
-
h as createFilterWrapper,
|
103
|
-
k as debounceFilter,
|
104
|
-
v as getLifeCycleTarget,
|
105
|
-
A as isClient,
|
106
|
-
I as isObject,
|
107
|
-
p as noop,
|
108
|
-
E as notNullish,
|
109
|
-
b as throttleFilter,
|
110
|
-
z as throttledWatch,
|
111
|
-
d as toValue,
|
112
|
-
q as tryOnMounted,
|
113
|
-
V as tryOnScopeDispose,
|
114
|
-
N as useDebounceFn,
|
115
|
-
_ as useThrottleFn,
|
116
|
-
z as watchThrottled,
|
117
|
-
G as watchWithFilter
|
3
|
+
n as clamp
|
118
4
|
};
|
package/dist/index205.js
CHANGED
@@ -1,4 +1,10 @@
|
|
1
|
-
const
|
1
|
+
const o = "bitboss-ui | ", e = () => ({
|
2
|
+
warn: (r) => console.warn(`${o}${r}`),
|
3
|
+
error: (r) => console.error(`${o}${r}`),
|
4
|
+
throw: (r) => {
|
5
|
+
throw new Error(`${o}${r}`);
|
6
|
+
}
|
7
|
+
});
|
2
8
|
export {
|
3
|
-
|
9
|
+
e as useLogger
|
4
10
|
};
|
package/dist/index206.js
CHANGED
@@ -1,5 +1,55 @@
|
|
1
|
-
import t from "
|
2
|
-
|
1
|
+
import { defineComponent as f, ref as d, openBlock as r, createElementBlock as _, renderSlot as e, createElementVNode as t, createBlock as s, unref as p, createCommentVNode as i, createVNode as c } from "vue";
|
2
|
+
/* empty css */
|
3
|
+
/* empty css */
|
4
|
+
import a from "./index126.js";
|
5
|
+
/* empty css */
|
6
|
+
import $ from "./index128.js";
|
7
|
+
/* empty css */
|
8
|
+
import b from "./index305.js";
|
9
|
+
const y = { class: "bb-common-input-inner-container__prefix" }, k = { class: "bb-common-input-inner-container__suffix" }, S = /* @__PURE__ */ f({
|
10
|
+
__name: "CommonInputInnerContainer",
|
11
|
+
props: {
|
12
|
+
"append:icon": {},
|
13
|
+
"prepend:icon": {},
|
14
|
+
preventFocus: { type: Boolean }
|
15
|
+
},
|
16
|
+
setup(m) {
|
17
|
+
const u = m, o = d(), l = () => {
|
18
|
+
var n;
|
19
|
+
!o.value || u.preventFocus || (n = o.value.querySelector("input")) == null || n.focus();
|
20
|
+
};
|
21
|
+
return (n, C) => (r(), _("span", {
|
22
|
+
ref_key: "container",
|
23
|
+
ref: o,
|
24
|
+
class: "bb-common-input-inner-container",
|
25
|
+
onClick: l
|
26
|
+
}, [
|
27
|
+
e(n.$slots, "prepend", {}, () => [
|
28
|
+
t("span", y, [
|
29
|
+
e(n.$slots, "prefix")
|
30
|
+
])
|
31
|
+
]),
|
32
|
+
n.$props["prepend:icon"] ? (r(), s(p(a), {
|
33
|
+
key: 0,
|
34
|
+
class: "bb-common-input-inner-container__prepend-icon",
|
35
|
+
type: n.$props["prepend:icon"]
|
36
|
+
}, null, 8, ["type"])) : i("", !0),
|
37
|
+
e(n.$slots, "default"),
|
38
|
+
n.$props["append:icon"] ? (r(), s(p(a), {
|
39
|
+
key: 1,
|
40
|
+
class: "bb-common-input-inner-container__append-icon",
|
41
|
+
type: n.$props["append:icon"]
|
42
|
+
}, null, 8, ["type"])) : i("", !0),
|
43
|
+
c(p($)),
|
44
|
+
c(b),
|
45
|
+
e(n.$slots, "append", {}, () => [
|
46
|
+
t("span", k, [
|
47
|
+
e(n.$slots, "suffix")
|
48
|
+
])
|
49
|
+
])
|
50
|
+
], 512));
|
51
|
+
}
|
52
|
+
});
|
3
53
|
export {
|
4
|
-
|
54
|
+
S as default
|
5
55
|
};
|
package/dist/index208.js
CHANGED
@@ -1,8 +1,15 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
1
|
+
import { openBlock as t, createElementBlock as n, renderSlot as e } from "vue";
|
2
|
+
/* empty css */
|
3
|
+
import r from "./index258.js";
|
4
|
+
const s = {}, c = { class: "bb-common-input-outer-container" };
|
5
|
+
function p(o, a) {
|
6
|
+
return t(), n("span", c, [
|
7
|
+
e(o.$slots, "prepend-outer"),
|
8
|
+
e(o.$slots, "default"),
|
9
|
+
e(o.$slots, "append-outer")
|
10
|
+
]);
|
11
|
+
}
|
12
|
+
const i = /* @__PURE__ */ r(s, [["render", p]]);
|
6
13
|
export {
|
7
|
-
|
14
|
+
i as default
|
8
15
|
};
|
package/dist/index209.js
CHANGED
@@ -1,9 +1,22 @@
|
|
1
|
-
import {
|
2
|
-
const
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
},
|
1
|
+
import { MaskInput as r } from "./index259.js";
|
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 == null ? void 0 : 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
|
+
};
|
7
20
|
export {
|
8
|
-
|
21
|
+
k as vMaska
|
9
22
|
};
|
package/dist/index21.js
CHANGED
@@ -3,20 +3,20 @@ import { defineComponent as $, ref as b, watch as x, openBlock as u, createEleme
|
|
3
3
|
/* empty css */
|
4
4
|
import p from "./index13.js";
|
5
5
|
/* empty css */
|
6
|
-
import s from "./
|
7
|
-
import z from "./
|
8
|
-
import U from "./
|
9
|
-
import W from "./
|
10
|
-
import E from "./
|
11
|
-
import T from "./
|
12
|
-
import { hash as V } from "./
|
13
|
-
import { last as j } from "./
|
14
|
-
import { useLogger as H } from "./
|
15
|
-
import P from "./
|
16
|
-
import Z from "./
|
17
|
-
import q from "./
|
18
|
-
import h from "./
|
19
|
-
import F from "./
|
6
|
+
import s from "./index215.js";
|
7
|
+
import z from "./index216.js";
|
8
|
+
import U from "./index217.js";
|
9
|
+
import W from "./index218.js";
|
10
|
+
import E from "./index219.js";
|
11
|
+
import T from "./index220.js";
|
12
|
+
import { hash as V } from "./index221.js";
|
13
|
+
import { last as j } from "./index222.js";
|
14
|
+
import { useLogger as H } from "./index205.js";
|
15
|
+
import P from "./index223.js";
|
16
|
+
import Z from "./index224.js";
|
17
|
+
import q from "./index225.js";
|
18
|
+
import h from "./index226.js";
|
19
|
+
import F from "./index227.js";
|
20
20
|
const G = { class: "bb-base-date-picker" }, I = { class: "bb-base-date-picker__body" }, J = { class: "bb-base-date-picker__controls" }, K = {
|
21
21
|
style: { transform: "rotate(180deg)" },
|
22
22
|
viewBox: "0 0 24 24",
|
package/dist/index210.js
CHANGED
@@ -1,10 +1,6 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
throw: (r) => {
|
5
|
-
throw new Error(`${o}${r}`);
|
6
|
-
}
|
7
|
-
});
|
1
|
+
function x(e) {
|
2
|
+
return /^#([A-Fa-f0-9]{6})$/.test(e);
|
3
|
+
}
|
8
4
|
export {
|
9
|
-
|
5
|
+
x as isHex
|
10
6
|
};
|
package/dist/index211.js
CHANGED
@@ -1,128 +1,118 @@
|
|
1
|
-
import {
|
2
|
-
|
3
|
-
|
4
|
-
import { getOverflowAncestors as le } from "./index258.js";
|
5
|
-
import { computed as a, ref as f, shallowRef as I, watch as h, getCurrentScope as U, onScopeDispose as k, shallowReadonly as r, unref as q } from "vue";
|
6
|
-
function z(e) {
|
7
|
-
return e != null && typeof e == "object" && "$el" in e;
|
1
|
+
import { getCurrentScope as F, onScopeDispose as O, unref as D, isRef as x, watch as S, onMounted as C, nextTick as W, getCurrentInstance as P } from "vue";
|
2
|
+
function V(t) {
|
3
|
+
return F() ? (O(t), !0) : !1;
|
8
4
|
}
|
9
|
-
function
|
10
|
-
|
11
|
-
|
12
|
-
|
5
|
+
function d(t) {
|
6
|
+
return typeof t == "function" ? t() : D(t);
|
7
|
+
}
|
8
|
+
const A = typeof window < "u" && typeof document < "u";
|
9
|
+
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
10
|
+
const E = (t) => t != null, M = Object.prototype.toString, I = (t) => M.call(t) === "[object Object]", p = () => {
|
11
|
+
};
|
12
|
+
function h(t, r) {
|
13
|
+
function e(...n) {
|
14
|
+
return new Promise((o, i) => {
|
15
|
+
Promise.resolve(t(() => r.apply(this, n), { fn: r, thisArg: this, args: n })).then(o).catch(i);
|
16
|
+
});
|
13
17
|
}
|
14
18
|
return e;
|
15
19
|
}
|
16
|
-
|
17
|
-
|
20
|
+
const R = (t) => t();
|
21
|
+
function k(t, r = {}) {
|
22
|
+
let e, n, o = p;
|
23
|
+
const i = (l) => {
|
24
|
+
clearTimeout(l), o(), o = p;
|
25
|
+
};
|
26
|
+
return (l) => {
|
27
|
+
const c = d(t), u = d(r.maxWait);
|
28
|
+
return e && i(e), c <= 0 || u !== void 0 && u <= 0 ? (n && (i(n), n = null), Promise.resolve(l())) : new Promise((a, w) => {
|
29
|
+
o = r.rejectOnCancel ? w : a, u && !n && (n = setTimeout(() => {
|
30
|
+
e && i(e), n = null, a(l());
|
31
|
+
}, u)), e = setTimeout(() => {
|
32
|
+
n && i(n), n = null, a(l());
|
33
|
+
}, c);
|
34
|
+
});
|
35
|
+
};
|
18
36
|
}
|
19
|
-
function
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
37
|
+
function b(...t) {
|
38
|
+
let r = 0, e, n = !0, o = p, i, s, l, c, u;
|
39
|
+
!x(t[0]) && typeof t[0] == "object" ? { delay: s, trailing: l = !0, leading: c = !0, rejectOnCancel: u = !1 } = t[0] : [s, l = !0, c = !0, u = !1] = t;
|
40
|
+
const a = () => {
|
41
|
+
e && (clearTimeout(e), e = void 0, o(), o = p);
|
42
|
+
};
|
43
|
+
return (g) => {
|
44
|
+
const f = d(s), T = Date.now() - r, m = () => i = g();
|
45
|
+
return a(), f <= 0 ? (r = Date.now(), m()) : (T > f && (c || !n) ? (r = Date.now(), m()) : l && (i = new Promise((y, j) => {
|
46
|
+
o = u ? j : y, e = setTimeout(() => {
|
47
|
+
r = Date.now(), n = !0, y(m()), a();
|
48
|
+
}, Math.max(0, f - T));
|
49
|
+
})), !c && !e && (e = setTimeout(() => n = !0, f)), n = !1, i);
|
30
50
|
};
|
31
51
|
}
|
32
|
-
function
|
33
|
-
return
|
52
|
+
function v(t) {
|
53
|
+
return P();
|
34
54
|
}
|
35
|
-
function
|
36
|
-
|
37
|
-
|
55
|
+
function N(t, r = 200, e = {}) {
|
56
|
+
return h(
|
57
|
+
k(r, e),
|
58
|
+
t
|
59
|
+
);
|
38
60
|
}
|
39
|
-
function
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
function m() {
|
76
|
-
i.value == null || u.value == null || A(i.value, u.value, {
|
77
|
-
middleware: D.value,
|
78
|
-
placement: d.value,
|
79
|
-
strategy: v.value
|
80
|
-
}).then((n) => {
|
81
|
-
p.value = n.x, w.value = n.y, c.value = n.strategy, O.value = n.placement, P.value = n.middlewareData, y.value = !0;
|
82
|
-
});
|
83
|
-
}
|
84
|
-
function E() {
|
85
|
-
typeof s == "function" && (s(), s = void 0);
|
86
|
-
}
|
87
|
-
function N() {
|
88
|
-
if (E(), x === void 0) {
|
89
|
-
m();
|
90
|
-
return;
|
91
|
-
}
|
92
|
-
if (i.value != null && u.value != null) {
|
93
|
-
s = x(i.value, u.value, m);
|
94
|
-
return;
|
61
|
+
function _(t, r = 200, e = !1, n = !0, o = !1) {
|
62
|
+
return h(
|
63
|
+
b(r, e, n, o),
|
64
|
+
t
|
65
|
+
);
|
66
|
+
}
|
67
|
+
function G(t, r, e = {}) {
|
68
|
+
const {
|
69
|
+
eventFilter: n = R,
|
70
|
+
...o
|
71
|
+
} = e;
|
72
|
+
return S(
|
73
|
+
t,
|
74
|
+
h(
|
75
|
+
n,
|
76
|
+
r
|
77
|
+
),
|
78
|
+
o
|
79
|
+
);
|
80
|
+
}
|
81
|
+
function q(t, r = !0, e) {
|
82
|
+
v() ? C(t, e) : r ? t() : W(t);
|
83
|
+
}
|
84
|
+
function z(t, r, e = {}) {
|
85
|
+
const {
|
86
|
+
throttle: n = 0,
|
87
|
+
trailing: o = !0,
|
88
|
+
leading: i = !0,
|
89
|
+
...s
|
90
|
+
} = e;
|
91
|
+
return G(
|
92
|
+
t,
|
93
|
+
r,
|
94
|
+
{
|
95
|
+
...s,
|
96
|
+
eventFilter: b(n, o, i)
|
95
97
|
}
|
96
|
-
|
97
|
-
function $() {
|
98
|
-
V.value || (y.value = !1);
|
99
|
-
}
|
100
|
-
return h([D, d, v], m, {
|
101
|
-
flush: "sync"
|
102
|
-
}), h([i, u], N, {
|
103
|
-
flush: "sync"
|
104
|
-
}), h(V, $, {
|
105
|
-
flush: "sync"
|
106
|
-
}), U() && k(E), {
|
107
|
-
x: r(p),
|
108
|
-
y: r(w),
|
109
|
-
strategy: r(c),
|
110
|
-
placement: r(O),
|
111
|
-
middlewareData: r(P),
|
112
|
-
isPositioned: r(y),
|
113
|
-
floatingStyles: _,
|
114
|
-
update: m
|
115
|
-
};
|
98
|
+
);
|
116
99
|
}
|
117
100
|
export {
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
101
|
+
R as bypassFilter,
|
102
|
+
h as createFilterWrapper,
|
103
|
+
k as debounceFilter,
|
104
|
+
v as getLifeCycleTarget,
|
105
|
+
A as isClient,
|
106
|
+
I as isObject,
|
107
|
+
p as noop,
|
108
|
+
E as notNullish,
|
109
|
+
b as throttleFilter,
|
110
|
+
z as throttledWatch,
|
111
|
+
d as toValue,
|
112
|
+
q as tryOnMounted,
|
113
|
+
V as tryOnScopeDispose,
|
114
|
+
N as useDebounceFn,
|
115
|
+
_ as useThrottleFn,
|
116
|
+
z as watchThrottled,
|
117
|
+
G as watchWithFilter
|
128
118
|
};
|