bitboss-ui 2.0.102 → 2.0.104
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 +10 -16
- package/dist/components/BaseSwitchGroup/BaseSwitchGroup.vue.d.ts +109 -7
- package/dist/components/BbSelect/BbSelect.vue.d.ts +2 -16
- package/dist/composables/useBaseOptions.d.ts +31 -0
- package/dist/composables/useCoherence.d.ts +20 -0
- package/dist/composables/useHashedWatcher.d.ts +2 -0
- package/dist/composables/useIndexById.d.ts +11 -0
- package/dist/composables/useItemsGetter.d.ts +12 -0
- package/dist/composables/usePrefill.d.ts +12 -0
- package/dist/index100.js +88 -60
- package/dist/index101.js +10 -13
- package/dist/index111.js +154 -126
- 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 +22 -22
- package/dist/index131.js +1 -1
- package/dist/index132.js +69 -65
- package/dist/index133.js +2 -2
- package/dist/index15.js +4 -4
- package/dist/index17.js +3 -3
- package/dist/index19.js +126 -82
- package/dist/index205.js +2 -81
- package/dist/index206.js +115 -2
- package/dist/index207.js +2 -2
- package/dist/index208.js +2 -2
- package/dist/index209.js +2 -2
- package/dist/index210.js +3 -3
- package/dist/index211.js +2 -2
- package/dist/index212.js +2 -2
- package/dist/index213.js +1 -1
- package/dist/index216.js +3 -3
- package/dist/index219.js +2 -2
- package/dist/index220.js +1 -1
- package/dist/index221.js +124 -51
- package/dist/{index235.js → index222.js} +1 -1
- package/dist/index223.js +2 -13
- package/dist/index224.js +41 -2
- package/dist/index225.js +20 -4
- package/dist/index226.js +6 -2
- package/dist/index227.js +51 -18
- package/dist/index229.js +12 -2
- package/dist/index23.js +11 -11
- package/dist/index230.js +5 -168
- package/dist/index231.js +10 -82
- package/dist/index232.js +371 -0
- package/dist/index233.js +4 -8
- package/dist/index234.js +83 -125
- package/dist/index236.js +8 -2
- package/dist/index237.js +24 -40
- package/dist/index238.js +17 -6
- package/dist/index239.js +48 -5
- package/dist/index240.js +15 -12
- package/dist/index241.js +11 -368
- package/dist/index242.js +16 -3
- package/dist/index243.js +2 -7
- package/dist/index244.js +4 -2
- package/dist/index245.js +2 -18
- package/dist/index246.js +3 -106
- package/dist/index247.js +9 -0
- package/dist/index248.js +2 -100
- package/dist/index249.js +20 -0
- package/dist/index25.js +5 -5
- package/dist/index250.js +106 -2
- package/dist/index252.js +100 -10
- package/dist/index254.js +11 -8
- package/dist/index255.js +2 -23
- package/dist/index256.js +3 -89
- package/dist/index257.js +4 -0
- package/dist/index258.js +10 -9
- package/dist/index259.js +3 -6
- package/dist/index260.js +8 -15
- package/dist/index261.js +23 -9
- package/dist/index262.js +88 -7
- package/dist/index264.js +8 -5
- package/dist/index265.js +6 -2
- package/dist/index266.js +16 -2
- package/dist/index267.js +281 -2
- package/dist/index268.js +6 -2
- package/dist/index269.js +2 -2
- package/dist/index27.js +1 -1
- package/dist/index271.js +2 -2
- package/dist/index272.js +2 -2
- package/dist/index273.js +2 -2
- package/dist/index274.js +2 -2
- package/dist/index275.js +2 -28
- package/dist/index276.js +1 -21
- package/dist/index277.js +4 -0
- package/dist/index278.js +2 -7
- package/dist/index279.js +28 -3
- package/dist/index280.js +24 -0
- package/dist/index282.js +7 -224
- package/dist/index283.js +3 -176
- package/dist/index284.js +7 -3
- package/dist/index285.js +11 -12
- package/dist/index286.js +16 -8
- package/dist/index287.js +7 -15
- package/dist/index288.js +3 -4
- package/dist/index29.js +3 -3
- package/dist/index290.js +174 -9
- package/dist/index293.js +1 -1
- package/dist/index296.js +1 -1
- package/dist/index297.js +3 -88
- package/dist/index298.js +8 -200
- package/dist/index301.js +200 -2
- package/dist/index302.js +89 -3
- package/dist/index303.js +1 -1
- package/dist/index304.js +3 -213
- package/dist/index305.js +206 -59
- package/dist/index306.js +224 -5
- package/dist/index307.js +5 -3
- package/dist/index308.js +2 -3
- package/dist/index309.js +66 -3
- package/dist/index31.js +2 -2
- package/dist/index310.js +3 -58
- package/dist/index311.js +6 -32
- package/dist/index312.js +18 -7
- package/dist/index313.js +5 -8
- package/dist/index314.js +7 -4
- package/dist/index315.js +3 -8
- package/dist/index316.js +3 -7
- package/dist/index317.js +56 -17
- package/dist/index318.js +8 -7
- package/dist/index319.js +8 -4
- package/dist/index320.js +7 -2
- package/dist/index321.js +3 -46
- package/dist/index322.js +33 -480
- package/dist/index323.js +49 -0
- package/dist/index324.js +2 -424
- package/dist/index325.js +479 -46
- package/dist/index327.js +426 -0
- package/dist/index328.js +49 -0
- package/dist/index33.js +102 -61
- package/dist/index35.js +3 -3
- package/dist/index37.js +284 -244
- package/dist/index39.js +4 -4
- package/dist/index41.js +2 -2
- package/dist/index43.js +129 -84
- package/dist/index45.js +122 -120
- package/dist/index47.js +2 -2
- package/dist/index49.js +2 -2
- package/dist/index55.js +1 -1
- package/dist/index57.js +2 -2
- package/dist/index61.js +2 -2
- package/dist/index75.js +3 -3
- package/dist/index79.js +2 -2
- package/dist/index81.js +1 -1
- package/dist/index84.js +3 -3
- package/dist/index86.js +1 -1
- package/dist/index88.js +4 -4
- package/dist/index90.js +1 -1
- package/package.json +1 -1
- package/dist/composables/useOptions.d.ts +0 -43
- package/dist/index228.js +0 -6
- package/dist/index251.js +0 -4
- package/dist/index253.js +0 -5
- package/dist/index263.js +0 -283
- package/dist/index281.js +0 -6
- package/dist/index289.js +0 -9
- /package/dist/{index326.js → index329.js} +0 -0
package/dist/index19.js
CHANGED
@@ -1,11 +1,17 @@
|
|
1
|
-
import { defineComponent as
|
2
|
-
import
|
3
|
-
import H from "./index17.js";
|
1
|
+
import { defineComponent as z, ref as B, toRef as d, openBlock as G, createBlock as R, unref as u, withCtx as s, renderSlot as l, normalizeProps as b, guardReactiveProps as v, createVNode as W, mergeProps as w } from "vue";
|
2
|
+
import K from "./index17.js";
|
4
3
|
/* empty css */
|
5
|
-
import
|
4
|
+
import N from "./index234.js";
|
6
5
|
/* empty css */
|
7
|
-
import { useLocale as
|
8
|
-
|
6
|
+
import { useLocale as U } from "./index236.js";
|
7
|
+
import { useItemsGetter as q } from "./index237.js";
|
8
|
+
import { useIndexById as C } from "./index238.js";
|
9
|
+
import { useBaseOptions as J } from "./index239.js";
|
10
|
+
import { useCoherence as Q } from "./index240.js";
|
11
|
+
import { hash as X } from "./index213.js";
|
12
|
+
import { useHashedWatcher as E } from "./index241.js";
|
13
|
+
import { usePrefill as Y } from "./index242.js";
|
14
|
+
const me = /* @__PURE__ */ z({
|
9
15
|
__name: "BaseCheckboxGroup",
|
10
16
|
props: {
|
11
17
|
ariaDescribedby: {},
|
@@ -23,7 +29,7 @@ const N = /* @__PURE__ */ w({
|
|
23
29
|
itemText: {},
|
24
30
|
itemValue: {},
|
25
31
|
loadingText: {},
|
26
|
-
max: {},
|
32
|
+
max: { default: 1 / 0 },
|
27
33
|
modelValue: {},
|
28
34
|
modelValueDebounceTime: { default: 0 },
|
29
35
|
name: {},
|
@@ -31,110 +37,148 @@ const N = /* @__PURE__ */ w({
|
|
31
37
|
readonly: { type: Boolean }
|
32
38
|
},
|
33
39
|
emits: ["blur", "change", "click", "focus", "inactive", "input", "keydown", "mousedown", "mouseup", "update:modelValue"],
|
34
|
-
setup(
|
35
|
-
const
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
modelValue: l(n, "modelValue"),
|
51
|
-
modelValueDebounceTime: n.modelValueDebounceTime,
|
40
|
+
setup(L, { emit: D }) {
|
41
|
+
const o = L, a = D;
|
42
|
+
if (!Array.isArray(o.modelValue))
|
43
|
+
throw new Error("Model value must be an array in checkbox group.");
|
44
|
+
const { t: y } = U(), g = B(), i = B(!1), {
|
45
|
+
getter: c,
|
46
|
+
items: I,
|
47
|
+
loading: $
|
48
|
+
} = q({
|
49
|
+
items: d(o, "items"),
|
50
|
+
debounce: 0
|
51
|
+
}), m = () => {
|
52
|
+
o.enforceCoherence && !T.value && a("update:modelValue", F.value.coherent);
|
53
|
+
}, { hasPrefilled: x } = Y({
|
54
|
+
onStart: !0,
|
55
|
+
currentValue: o.modelValue,
|
52
56
|
multiple: !0,
|
53
|
-
prefill:
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
57
|
+
fn: async ({ prefill: e }) => {
|
58
|
+
await c(e, o.modelValue), m();
|
59
|
+
}
|
60
|
+
}), { data: V } = C({
|
61
|
+
items: d(o, "modelValue")
|
62
|
+
}), { options: k } = J({
|
63
|
+
disabled: d(o, "disabled"),
|
64
|
+
items: I,
|
65
|
+
itemText: o.itemText,
|
66
|
+
itemValue: o.itemValue,
|
67
|
+
max: o.max,
|
68
|
+
selectable: !0,
|
69
|
+
selectedIndexedByHash: V
|
70
|
+
}), H = async (e) => {
|
71
|
+
a("update:modelValue", o.modelValue.concat(e.value));
|
72
|
+
}, M = async (e) => {
|
73
|
+
const t = { ...V.value };
|
74
|
+
delete t[e.valueHash], a("update:modelValue", Object.values(t));
|
75
|
+
}, { data: P } = C({
|
76
|
+
items: k,
|
77
|
+
key: "valueHash"
|
78
|
+
}), { coherent: T, status: F } = Q({
|
79
|
+
modelValue: d(o, "modelValue"),
|
80
|
+
multiple: !0,
|
81
|
+
iteratee: (e) => !!P.value[X(e)]
|
82
|
+
});
|
83
|
+
let r = 0;
|
84
|
+
E(
|
85
|
+
() => o.modelValue,
|
86
|
+
async () => {
|
87
|
+
r++, T.value || (await c(!1, o.modelValue), m()), r--;
|
88
|
+
},
|
89
|
+
{
|
90
|
+
debounce: o.modelValueDebounceTime
|
91
|
+
}
|
92
|
+
), E(
|
93
|
+
() => [o.dependencies, o.items],
|
94
|
+
async () => {
|
95
|
+
x.value && (r++, await c(!1, o.modelValue), r === 1 && m(), r--);
|
96
|
+
},
|
97
|
+
{
|
98
|
+
debounce: o.depsDebounceTime
|
99
|
+
}
|
100
|
+
);
|
101
|
+
const O = (e) => {
|
102
|
+
if (o.id)
|
103
|
+
return [o.id, e.valueHash].filter(Boolean).join("-");
|
104
|
+
}, S = (e, t) => {
|
105
|
+
a("change", e), t.selected ? M(t) : H(t);
|
106
|
+
}, A = {
|
107
|
+
onBlur: (e) => a("blur", e),
|
108
|
+
onClick: (e) => a("click", e),
|
65
109
|
onFocus: (e) => {
|
66
|
-
|
110
|
+
a("focus", e), i.value || (document.addEventListener("focusin", p, { passive: !0 }), document.addEventListener("click", f, { passive: !0 }), i.value = !0);
|
67
111
|
},
|
68
|
-
onInput: (e) =>
|
69
|
-
onKeydown: (e) =>
|
70
|
-
onMousedown: (e) =>
|
71
|
-
onMouseup: (e) =>
|
72
|
-
},
|
73
|
-
var
|
74
|
-
e.target instanceof HTMLElement && ((
|
75
|
-
},
|
76
|
-
var
|
77
|
-
e.target instanceof HTMLElement && ((
|
112
|
+
onInput: (e) => a("input", e),
|
113
|
+
onKeydown: (e) => a("keydown", e),
|
114
|
+
onMousedown: (e) => a("mousedown", e),
|
115
|
+
onMouseup: (e) => a("mouseup", e)
|
116
|
+
}, p = (e) => {
|
117
|
+
var t;
|
118
|
+
e.target instanceof HTMLElement && ((t = g.value) != null && t.contains(e.target) || (a("inactive"), i.value = !1, document.removeEventListener("focusin", p), document.removeEventListener("click", f)));
|
119
|
+
}, f = (e) => {
|
120
|
+
var t;
|
121
|
+
e.target instanceof HTMLElement && ((t = g.value) != null && t.contains(e.target) || (a("inactive"), i.value = !1, document.removeEventListener("focusin", p), document.removeEventListener("click", f)));
|
78
122
|
};
|
79
|
-
return (e,
|
123
|
+
return (e, t) => (G(), R(N, {
|
80
124
|
class: "bb-base-checkbox-group",
|
81
125
|
direction: e.direction,
|
82
126
|
"has-errors": e.hasErrors,
|
83
127
|
"hide-label": e.hideLabel,
|
84
|
-
loading: !!
|
85
|
-
"loading-text": e.loadingText ||
|
86
|
-
"no-data-text": e.noDataText ||
|
87
|
-
options:
|
128
|
+
loading: !!u($),
|
129
|
+
"loading-text": e.loadingText || u(y)("common.loadingText"),
|
130
|
+
"no-data-text": e.noDataText || u(y)("common.noDataText"),
|
131
|
+
options: u(k)
|
88
132
|
}, {
|
89
|
-
prepend:
|
90
|
-
|
133
|
+
prepend: s(() => [
|
134
|
+
l(e.$slots, "prepend")
|
91
135
|
]),
|
92
|
-
loading:
|
93
|
-
|
136
|
+
loading: s(() => [
|
137
|
+
l(e.$slots, "loading")
|
94
138
|
]),
|
95
|
-
"no-data":
|
96
|
-
|
139
|
+
"no-data": s(() => [
|
140
|
+
l(e.$slots, "no-data")
|
97
141
|
]),
|
98
|
-
label:
|
99
|
-
|
142
|
+
label: s((n) => [
|
143
|
+
l(e.$slots, "label", b(v(n)))
|
100
144
|
]),
|
101
|
-
"option:prepend":
|
102
|
-
|
145
|
+
"option:prepend": s((n) => [
|
146
|
+
l(e.$slots, "option:prepend", b(v(n)))
|
103
147
|
]),
|
104
|
-
input:
|
105
|
-
|
106
|
-
id:
|
148
|
+
input: s(({ option: n, index: j }) => [
|
149
|
+
W(K, w({
|
150
|
+
id: O(n),
|
107
151
|
"aria-describedby": e.ariaDescribedby,
|
108
|
-
autofocus: e.autofocus &&
|
109
|
-
checked:
|
152
|
+
autofocus: e.autofocus && !j,
|
153
|
+
checked: n.selected,
|
110
154
|
color: e.color,
|
111
|
-
disabled:
|
155
|
+
disabled: n.disabled,
|
112
156
|
"has-errors": e.hasErrors,
|
113
157
|
name: e.name,
|
114
158
|
readonly: e.readonly,
|
115
|
-
"true-value":
|
116
|
-
},
|
117
|
-
onChange: (
|
159
|
+
"true-value": n.value
|
160
|
+
}, A, {
|
161
|
+
onChange: (h) => S(h, n)
|
118
162
|
}), {
|
119
|
-
icon:
|
120
|
-
|
121
|
-
item:
|
122
|
-
text:
|
123
|
-
},
|
163
|
+
icon: s((h) => [
|
164
|
+
l(e.$slots, "icon", w({
|
165
|
+
item: n.item,
|
166
|
+
text: n.text
|
167
|
+
}, h))
|
124
168
|
]),
|
125
169
|
_: 2
|
126
170
|
}, 1040, ["id", "aria-describedby", "autofocus", "checked", "color", "disabled", "has-errors", "name", "readonly", "true-value", "onChange"])
|
127
171
|
]),
|
128
|
-
"option:append":
|
129
|
-
|
172
|
+
"option:append": s((n) => [
|
173
|
+
l(e.$slots, "option:append", b(v(n)))
|
130
174
|
]),
|
131
|
-
append:
|
132
|
-
|
175
|
+
append: s(() => [
|
176
|
+
l(e.$slots, "append")
|
133
177
|
]),
|
134
178
|
_: 3
|
135
179
|
}, 8, ["direction", "has-errors", "hide-label", "loading", "loading-text", "no-data-text", "options"]));
|
136
180
|
}
|
137
181
|
});
|
138
182
|
export {
|
139
|
-
|
183
|
+
me as default
|
140
184
|
};
|
package/dist/index205.js
CHANGED
@@ -1,83 +1,4 @@
|
|
1
|
-
|
2
|
-
function G(e) {
|
3
|
-
return g() ? (D(e), !0) : !1;
|
4
|
-
}
|
5
|
-
function d(e) {
|
6
|
-
return typeof e == "function" ? e() : x(e);
|
7
|
-
}
|
8
|
-
const L = typeof window < "u" && typeof document < "u";
|
9
|
-
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
10
|
-
const V = (e) => e != null, P = Object.prototype.toString, A = (e) => P.call(e) === "[object Object]", m = () => {
|
11
|
-
};
|
12
|
-
function h(e, r) {
|
13
|
-
function t(...n) {
|
14
|
-
return new Promise((o, i) => {
|
15
|
-
Promise.resolve(e(() => r.apply(this, n), { fn: r, thisArg: this, args: n })).then(o).catch(i);
|
16
|
-
});
|
17
|
-
}
|
18
|
-
return t;
|
19
|
-
}
|
20
|
-
function W(e, r = {}) {
|
21
|
-
let t, n, o = m;
|
22
|
-
const i = (l) => {
|
23
|
-
clearTimeout(l), o(), o = m;
|
24
|
-
};
|
25
|
-
return (l) => {
|
26
|
-
const c = d(e), u = d(r.maxWait);
|
27
|
-
return t && i(t), c <= 0 || u !== void 0 && u <= 0 ? (n && (i(n), n = null), Promise.resolve(l())) : new Promise((s, T) => {
|
28
|
-
o = r.rejectOnCancel ? T : s, u && !n && (n = setTimeout(() => {
|
29
|
-
t && i(t), n = null, s(l());
|
30
|
-
}, u)), t = setTimeout(() => {
|
31
|
-
n && i(n), n = null, s(l());
|
32
|
-
}, c);
|
33
|
-
});
|
34
|
-
};
|
35
|
-
}
|
36
|
-
function M(...e) {
|
37
|
-
let r = 0, t, n = !0, o = m, i, a, l, c, u;
|
38
|
-
!C(e[0]) && typeof e[0] == "object" ? { delay: a, trailing: l = !0, leading: c = !0, rejectOnCancel: u = !1 } = e[0] : [a, l = !0, c = !0, u = !1] = e;
|
39
|
-
const s = () => {
|
40
|
-
t && (clearTimeout(t), t = void 0, o(), o = m);
|
41
|
-
};
|
42
|
-
return (w) => {
|
43
|
-
const f = d(a), y = Date.now() - r, p = () => i = w();
|
44
|
-
return s(), f <= 0 ? (r = Date.now(), p()) : (y > f && (c || !n) ? (r = Date.now(), p()) : l && (i = new Promise((b, j) => {
|
45
|
-
o = u ? j : b, t = setTimeout(() => {
|
46
|
-
r = Date.now(), n = !0, b(p()), s();
|
47
|
-
}, Math.max(0, f - y));
|
48
|
-
})), !c && !t && (t = setTimeout(() => n = !0, f)), n = !1, i);
|
49
|
-
};
|
50
|
-
}
|
51
|
-
function R(e) {
|
52
|
-
return F();
|
53
|
-
}
|
54
|
-
function E(e, r = 200, t = {}) {
|
55
|
-
return h(
|
56
|
-
W(r, t),
|
57
|
-
e
|
58
|
-
);
|
59
|
-
}
|
60
|
-
function I(e, r = 200, t = !1, n = !0, o = !1) {
|
61
|
-
return h(
|
62
|
-
M(r, t, n, o),
|
63
|
-
e
|
64
|
-
);
|
65
|
-
}
|
66
|
-
function N(e, r = !0, t) {
|
67
|
-
R() ? O(e, t) : r ? e() : S(e);
|
68
|
-
}
|
1
|
+
const n = (t, a, m) => Math.min(Math.max(t, a), m);
|
69
2
|
export {
|
70
|
-
|
71
|
-
W as debounceFilter,
|
72
|
-
R as getLifeCycleTarget,
|
73
|
-
L as isClient,
|
74
|
-
A as isObject,
|
75
|
-
m as noop,
|
76
|
-
V as notNullish,
|
77
|
-
M as throttleFilter,
|
78
|
-
d as toValue,
|
79
|
-
N as tryOnMounted,
|
80
|
-
G as tryOnScopeDispose,
|
81
|
-
E as useDebounceFn,
|
82
|
-
I as useThrottleFn
|
3
|
+
n as clamp
|
83
4
|
};
|
package/dist/index206.js
CHANGED
@@ -1,4 +1,117 @@
|
|
1
|
-
|
1
|
+
import { getCurrentScope as F, onScopeDispose as O, unref as g, onMounted as x, nextTick as S, isRef as W, getCurrentInstance as C, watch as P } from "vue";
|
2
|
+
function V(e) {
|
3
|
+
return F() ? (O(e), !0) : !1;
|
4
|
+
}
|
5
|
+
function m(e) {
|
6
|
+
return typeof e == "function" ? e() : g(e);
|
7
|
+
}
|
8
|
+
const A = typeof window < "u" && typeof document < "u";
|
9
|
+
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
10
|
+
const E = (e) => e != null, v = Object.prototype.toString, I = (e) => v.call(e) === "[object Object]", p = () => {
|
11
|
+
};
|
12
|
+
function h(e, o) {
|
13
|
+
function t(...n) {
|
14
|
+
return new Promise((r, i) => {
|
15
|
+
Promise.resolve(e(() => o.apply(this, n), { fn: o, thisArg: this, args: n })).then(r).catch(i);
|
16
|
+
});
|
17
|
+
}
|
18
|
+
return t;
|
19
|
+
}
|
20
|
+
const M = (e) => e();
|
21
|
+
function T(e, o = {}) {
|
22
|
+
let t, n, r = p;
|
23
|
+
const i = (c) => {
|
24
|
+
clearTimeout(c), r(), r = p;
|
25
|
+
};
|
26
|
+
return (c) => {
|
27
|
+
const l = m(e), u = m(o.maxWait);
|
28
|
+
return t && i(t), l <= 0 || u !== void 0 && u <= 0 ? (n && (i(n), n = null), Promise.resolve(c())) : new Promise((s, w) => {
|
29
|
+
r = o.rejectOnCancel ? w : s, u && !n && (n = setTimeout(() => {
|
30
|
+
t && i(t), n = null, s(c());
|
31
|
+
}, u)), t = setTimeout(() => {
|
32
|
+
n && i(n), n = null, s(c());
|
33
|
+
}, l);
|
34
|
+
});
|
35
|
+
};
|
36
|
+
}
|
37
|
+
function R(...e) {
|
38
|
+
let o = 0, t, n = !0, r = p, i, a, c, l, u;
|
39
|
+
!W(e[0]) && typeof e[0] == "object" ? { delay: a, trailing: c = !0, leading: l = !0, rejectOnCancel: u = !1 } = e[0] : [a, c = !0, l = !0, u = !1] = e;
|
40
|
+
const s = () => {
|
41
|
+
t && (clearTimeout(t), t = void 0, r(), r = p);
|
42
|
+
};
|
43
|
+
return (j) => {
|
44
|
+
const f = m(a), b = Date.now() - o, d = () => i = j();
|
45
|
+
return s(), f <= 0 ? (o = Date.now(), d()) : (b > f && (l || !n) ? (o = Date.now(), d()) : c && (i = new Promise((y, D) => {
|
46
|
+
r = u ? D : y, t = setTimeout(() => {
|
47
|
+
o = Date.now(), n = !0, y(d()), s();
|
48
|
+
}, Math.max(0, f - b));
|
49
|
+
})), !l && !t && (t = setTimeout(() => n = !0, f)), n = !1, i);
|
50
|
+
};
|
51
|
+
}
|
52
|
+
function k(e) {
|
53
|
+
return C();
|
54
|
+
}
|
55
|
+
function N(e, o = 200, t = {}) {
|
56
|
+
return h(
|
57
|
+
T(o, t),
|
58
|
+
e
|
59
|
+
);
|
60
|
+
}
|
61
|
+
function _(e, o = 200, t = !1, n = !0, r = !1) {
|
62
|
+
return h(
|
63
|
+
R(o, t, n, r),
|
64
|
+
e
|
65
|
+
);
|
66
|
+
}
|
67
|
+
function G(e, o, t = {}) {
|
68
|
+
const {
|
69
|
+
eventFilter: n = M,
|
70
|
+
...r
|
71
|
+
} = t;
|
72
|
+
return P(
|
73
|
+
e,
|
74
|
+
h(
|
75
|
+
n,
|
76
|
+
o
|
77
|
+
),
|
78
|
+
r
|
79
|
+
);
|
80
|
+
}
|
81
|
+
function q(e, o = !0, t) {
|
82
|
+
k() ? x(e, t) : o ? e() : S(e);
|
83
|
+
}
|
84
|
+
function z(e, o, t = {}) {
|
85
|
+
const {
|
86
|
+
debounce: n = 0,
|
87
|
+
maxWait: r = void 0,
|
88
|
+
...i
|
89
|
+
} = t;
|
90
|
+
return G(
|
91
|
+
e,
|
92
|
+
o,
|
93
|
+
{
|
94
|
+
...i,
|
95
|
+
eventFilter: T(n, { maxWait: r })
|
96
|
+
}
|
97
|
+
);
|
98
|
+
}
|
2
99
|
export {
|
3
|
-
|
100
|
+
M as bypassFilter,
|
101
|
+
h as createFilterWrapper,
|
102
|
+
T as debounceFilter,
|
103
|
+
z as debouncedWatch,
|
104
|
+
k as getLifeCycleTarget,
|
105
|
+
A as isClient,
|
106
|
+
I as isObject,
|
107
|
+
p as noop,
|
108
|
+
E as notNullish,
|
109
|
+
R as throttleFilter,
|
110
|
+
m as toValue,
|
111
|
+
q as tryOnMounted,
|
112
|
+
V as tryOnScopeDispose,
|
113
|
+
N as useDebounceFn,
|
114
|
+
_ as useThrottleFn,
|
115
|
+
z as watchDebounced,
|
116
|
+
G as watchWithFilter
|
4
117
|
};
|
package/dist/index207.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
import { getDefaultExportFromCjs as r } from "./
|
2
|
-
import { __require as o } from "./
|
1
|
+
import { getDefaultExportFromCjs as r } from "./index268.js";
|
2
|
+
import { __require as o } from "./index267.js";
|
3
3
|
var t = o();
|
4
4
|
const s = /* @__PURE__ */ r(t);
|
5
5
|
export {
|
package/dist/index208.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
import { getDefaultExportFromCjs as f, commonjsGlobal as n } from "./
|
2
|
-
import { __module as e } from "./
|
1
|
+
import { getDefaultExportFromCjs as f, commonjsGlobal as n } from "./index268.js";
|
2
|
+
import { __module as e } from "./index270.js";
|
3
3
|
(function(s, a) {
|
4
4
|
(function(i, t) {
|
5
5
|
s.exports = t();
|
package/dist/index209.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
import { getDefaultExportFromCjs as i, commonjsGlobal as n } from "./
|
2
|
-
import { __module as t } from "./
|
1
|
+
import { getDefaultExportFromCjs as i, commonjsGlobal as n } from "./index268.js";
|
2
|
+
import { __module as t } from "./index271.js";
|
3
3
|
(function(s, a) {
|
4
4
|
(function(f, o) {
|
5
5
|
s.exports = o();
|
package/dist/index210.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
import { getDefaultExportFromCjs as i, commonjsGlobal as m } from "./
|
2
|
-
import { __module as _ } from "./
|
3
|
-
import { __require as s } from "./
|
1
|
+
import { getDefaultExportFromCjs as i, commonjsGlobal as m } from "./index268.js";
|
2
|
+
import { __module as _ } from "./index272.js";
|
3
|
+
import { __require as s } from "./index267.js";
|
4
4
|
(function(n, d) {
|
5
5
|
(function(t, o) {
|
6
6
|
n.exports = o(s());
|
package/dist/index211.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
import { getDefaultExportFromCjs as p, commonjsGlobal as s } from "./
|
2
|
-
import { __module as n } from "./
|
1
|
+
import { getDefaultExportFromCjs as p, commonjsGlobal as s } from "./index268.js";
|
2
|
+
import { __module as n } from "./index273.js";
|
3
3
|
(function(u, l) {
|
4
4
|
(function(c, e) {
|
5
5
|
u.exports = e();
|
package/dist/index212.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
import { getDefaultExportFromCjs as c, commonjsGlobal as k } from "./
|
2
|
-
import { __module as n } from "./
|
1
|
+
import { getDefaultExportFromCjs as c, commonjsGlobal as k } from "./index268.js";
|
2
|
+
import { __module as n } from "./index274.js";
|
3
3
|
(function(f, p) {
|
4
4
|
(function(r, e) {
|
5
5
|
f.exports = e();
|
package/dist/index213.js
CHANGED
package/dist/index216.js
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
import { defineComponent as le, ref as A, computed as _, watch as ce, openBlock as c, createElementBlock as u, normalizeClass as k, withKeys as f, withModifiers as p, createVNode as ue, withCtx as fe, createElementVNode as M, Fragment as O, renderList as S, toDisplayString as C, renderSlot as L, nextTick as pe } from "vue";
|
2
|
-
import { chunk as be } from "./
|
3
|
-
import { identity as T } from "./
|
2
|
+
import { chunk as be } from "./index311.js";
|
3
|
+
import { identity as T } from "./index223.js";
|
4
4
|
import { isNotNil as me } from "./index134.js";
|
5
5
|
import { last as ge } from "./index214.js";
|
6
|
-
import { sort as E } from "./
|
6
|
+
import { sort as E } from "./index312.js";
|
7
7
|
import b from "./index207.js";
|
8
8
|
import he from "./index219.js";
|
9
9
|
const ye = ["onKeydown"], _e = { class: "bb-base-date-picker__header-container" }, ke = ["abbr"], Oe = ["id", "disabled", "tabindex"], Ce = /* @__PURE__ */ le({
|
package/dist/index219.js
CHANGED
package/dist/index220.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { defineComponent as g, ref as i, computed as d, onMounted as h, openBlock as u, createElementBlock as m, createElementVNode as y, Fragment as x, renderList as B, createBlock as C, normalizeClass as S, withCtx as T, createTextVNode as E, toDisplayString as w } from "vue";
|
2
|
-
import { range as H } from "./
|
2
|
+
import { range as H } from "./index320.js";
|
3
3
|
import M from "./index13.js";
|
4
4
|
/* empty css */
|
5
5
|
const n = 10, l = 3, V = /* @__PURE__ */ g({
|