bitboss-ui 2.0.101 → 2.0.103
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 +1 -1
- package/dist/index121.js +4 -4
- 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 +54 -45
- 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 +52 -80
- package/dist/index207.js +13 -5
- package/dist/index208.js +19 -124
- package/dist/index209.js +4 -19
- package/dist/index21.js +14 -14
- package/dist/index210.js +124 -14
- package/dist/index211.js +5 -16
- package/dist/index212.js +125 -2
- package/dist/index213.js +19 -2
- package/dist/index214.js +15 -40
- package/dist/index215.js +15 -19
- package/dist/index216.js +2 -6
- package/dist/index217.js +2 -53
- package/dist/index218.js +43 -0
- package/dist/index219.js +6 -13
- package/dist/index220.js +2 -2
- package/dist/index222.js +3 -3
- package/dist/index223.js +2 -4
- package/dist/index224.js +4 -3
- package/dist/index225.js +2 -8
- package/dist/index226.js +3 -2
- package/dist/index227.js +7 -4
- package/dist/index228.js +8 -2
- package/dist/index229.js +3 -2
- package/dist/index23.js +13 -13
- package/dist/index230.js +84 -19
- package/dist/index232.js +8 -3
- package/dist/index233.js +23 -248
- package/dist/index234.js +17 -52
- package/dist/index235.js +47 -43
- package/dist/index236.js +15 -5
- package/dist/index237.js +12 -60
- package/dist/index238.js +16 -3
- package/dist/index239.js +19 -7
- package/dist/index240.js +25 -166
- package/dist/index241.js +243 -77
- package/dist/index242.js +54 -0
- package/dist/index243.js +43 -7
- package/dist/index244.js +5 -2
- package/dist/index245.js +59 -17
- package/dist/index246.js +2 -106
- package/dist/index247.js +117 -0
- package/dist/index248.js +3 -100
- package/dist/index249.js +4 -0
- package/dist/index25.js +5 -5
- package/dist/index250.js +18 -2
- package/dist/index251.js +106 -2
- package/dist/index253.js +100 -3
- package/dist/index255.js +12 -23
- package/dist/index256.js +2 -89
- package/dist/index257.js +4 -0
- package/dist/index258.js +10 -6
- package/dist/index259.js +3 -16
- package/dist/index260.js +6 -3
- package/dist/index261.js +18 -0
- package/dist/index262.js +8 -6
- package/dist/index263.js +23 -176
- package/dist/index264.js +89 -9
- package/dist/index266.js +3 -281
- package/dist/index268.js +7 -2
- package/dist/index269.js +176 -2
- package/dist/index27.js +1 -1
- package/dist/index270.js +281 -2
- package/dist/index271.js +6 -2
- package/dist/index272.js +2 -2
- package/dist/index273.js +2 -126
- package/dist/index274.js +2 -431
- package/dist/index275.js +2 -22
- package/dist/index276.js +4 -0
- package/dist/index277.js +126 -2
- package/dist/index278.js +430 -3
- package/dist/index279.js +20 -7
- package/dist/index281.js +2 -2
- package/dist/index282.js +4 -2
- package/dist/index283.js +28 -2
- package/dist/index284.js +200 -2
- package/dist/index285.js +436 -2
- package/dist/index286.js +127 -2
- package/dist/index287.js +85 -24
- package/dist/index288.js +9 -22
- package/dist/{index302.js → index289.js} +1 -1
- package/dist/index29.js +3 -3
- package/dist/index290.js +6 -435
- package/dist/index291.js +10 -126
- package/dist/index292.js +14 -197
- package/dist/index293.js +9 -89
- package/dist/index294.js +8 -3
- package/dist/index295.js +2 -12
- package/dist/index296.js +2 -9
- package/dist/index297.js +2 -17
- package/dist/index298.js +2 -4
- package/dist/index299.js +2 -7
- package/dist/index300.js +2 -11
- package/dist/index301.js +22 -3
- package/dist/index303.js +224 -213
- package/dist/index304.js +3 -5
- package/dist/index305.js +3 -2
- package/dist/index306.js +206 -59
- package/dist/index307.js +2 -3
- package/dist/index308.js +5 -3
- package/dist/index309.js +66 -3
- package/dist/index31.js +2 -2
- package/dist/index310.js +3 -58
- package/dist/index311.js +3 -5
- package/dist/index312.js +57 -7
- package/dist/index313.js +1 -1
- package/dist/index314.js +4 -3
- package/dist/index315.js +7 -6
- package/dist/index316.js +3 -7
- package/dist/index317.js +3 -18
- package/dist/index320.js +6 -46
- package/dist/index321.js +19 -2
- package/dist/index322.js +9 -0
- package/dist/index323.js +47 -480
- package/dist/index324.js +2 -424
- package/dist/index326.js +480 -2
- package/dist/index327.js +426 -0
- package/dist/index329.js +4 -0
- package/dist/index33.js +102 -61
- package/dist/index35.js +3 -3
- package/dist/index37.js +284 -244
- package/dist/index39.js +5 -5
- 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 +13 -9
- 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 +4 -4
- package/dist/index90.js +1 -1
- package/package.json +1 -1
- package/dist/composables/useOptions.d.ts +0 -43
- package/dist/index206.js +0 -128
- package/dist/index231.js +0 -29
- package/dist/index252.js +0 -12
- package/dist/index254.js +0 -11
- package/dist/index265.js +0 -226
- package/dist/index267.js +0 -8
- package/dist/index280.js +0 -10
- /package/dist/{index325.js → index328.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 "./index230.js";
|
6
5
|
/* empty css */
|
7
|
-
import { useLocale as
|
8
|
-
|
6
|
+
import { useLocale as U } from "./index232.js";
|
7
|
+
import { useItemsGetter as q } from "./index233.js";
|
8
|
+
import { useIndexById as C } from "./index234.js";
|
9
|
+
import { useBaseOptions as J } from "./index235.js";
|
10
|
+
import { useCoherence as Q } from "./index236.js";
|
11
|
+
import { hash as X } from "./index229.js";
|
12
|
+
import { useHashedWatcher as E } from "./index237.js";
|
13
|
+
import { usePrefill as Y } from "./index238.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,55 @@
|
|
1
|
-
import {
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
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 "./index127.js";
|
5
|
+
/* empty css */
|
6
|
+
import $ from "./index129.js";
|
7
|
+
/* empty css */
|
8
|
+
import b from "./index313.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));
|
17
51
|
}
|
18
|
-
|
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
|
-
}
|
52
|
+
});
|
69
53
|
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
|
54
|
+
S as default
|
83
55
|
};
|
package/dist/index207.js
CHANGED
@@ -1,7 +1,15 @@
|
|
1
|
-
import {
|
2
|
-
|
3
|
-
|
4
|
-
const s =
|
1
|
+
import { openBlock as t, createElementBlock as n, renderSlot as e } from "vue";
|
2
|
+
/* empty css */
|
3
|
+
import r from "./index268.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]]);
|
5
13
|
export {
|
6
|
-
|
14
|
+
i as default
|
7
15
|
};
|
package/dist/index208.js
CHANGED
@@ -1,127 +1,22 @@
|
|
1
|
-
import {
|
2
|
-
|
3
|
-
(
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
(
|
15
|
-
if (!r || r === "Z") return 0;
|
16
|
-
var e = r.match(/([+-]|\d\d)/g), n = 60 * e[1] + (+e[2] || 0);
|
17
|
-
return n === 0 ? 0 : e[0] === "+" ? -n : n;
|
18
|
-
}(t);
|
19
|
-
}], F = function(t) {
|
20
|
-
var r = m[t];
|
21
|
-
return r && (r.indexOf ? r : r.s.concat(r.f));
|
22
|
-
}, G = function(t, r) {
|
23
|
-
var e, n = m.meridiem;
|
24
|
-
if (n) {
|
25
|
-
for (var h = 1; h <= 24; h += 1) if (t.indexOf(n(h, 0, r)) > -1) {
|
26
|
-
e = h > 12;
|
27
|
-
break;
|
28
|
-
}
|
29
|
-
} else e = t === (r ? "pm" : "PM");
|
30
|
-
return e;
|
31
|
-
}, J = { A: [x, function(t) {
|
32
|
-
this.afternoon = G(t, !1);
|
33
|
-
}], a: [x, function(t) {
|
34
|
-
this.afternoon = G(t, !0);
|
35
|
-
}], Q: [j, function(t) {
|
36
|
-
this.month = 3 * (t - 1) + 1;
|
37
|
-
}], S: [j, function(t) {
|
38
|
-
this.milliseconds = 100 * +t;
|
39
|
-
}], SS: [L, function(t) {
|
40
|
-
this.milliseconds = 10 * +t;
|
41
|
-
}], SSS: [/\d{3}/, function(t) {
|
42
|
-
this.milliseconds = +t;
|
43
|
-
}], s: [s, o("seconds")], ss: [s, o("seconds")], m: [s, o("minutes")], mm: [s, o("minutes")], H: [s, o("hours")], h: [s, o("hours")], HH: [s, o("hours")], hh: [s, o("hours")], D: [s, o("day")], DD: [L, o("day")], Do: [x, function(t) {
|
44
|
-
var r = m.ordinal, e = t.match(/\d+/);
|
45
|
-
if (this.day = e[0], r) for (var n = 1; n <= 31; n += 1) r(n).replace(/\[|\]/g, "") === t && (this.day = n);
|
46
|
-
}], w: [s, o("week")], ww: [L, o("week")], M: [s, o("month")], MM: [L, o("month")], MMM: [x, function(t) {
|
47
|
-
var r = F("months"), e = (F("monthsShort") || r.map(function(n) {
|
48
|
-
return n.slice(0, 3);
|
49
|
-
})).indexOf(t) + 1;
|
50
|
-
if (e < 1) throw new Error();
|
51
|
-
this.month = e % 12 || e;
|
52
|
-
}], MMMM: [x, function(t) {
|
53
|
-
var r = F("months").indexOf(t) + 1;
|
54
|
-
if (r < 1) throw new Error();
|
55
|
-
this.month = r % 12 || r;
|
56
|
-
}], Y: [/[+-]?\d+/, o("year")], YY: [L, function(t) {
|
57
|
-
this.year = Q(t);
|
58
|
-
}], YYYY: [/\d{4}/, o("year")], Z: X, ZZ: X };
|
59
|
-
function K(t) {
|
60
|
-
var r, e;
|
61
|
-
r = t, e = m && m.formats;
|
62
|
-
for (var n = (t = r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(v, l, f) {
|
63
|
-
var i = f && f.toUpperCase();
|
64
|
-
return l || e[f] || U[f] || e[i].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(M, Y, D) {
|
65
|
-
return Y || D.slice(1);
|
66
|
-
});
|
67
|
-
})).match(k), h = n.length, c = 0; c < h; c += 1) {
|
68
|
-
var y = n[c], p = J[y], u = p && p[0], d = p && p[1];
|
69
|
-
n[c] = d ? { regex: u, parser: d } : y.replace(/^\[|\]$/g, "");
|
70
|
-
}
|
71
|
-
return function(v) {
|
72
|
-
for (var l = {}, f = 0, i = 0; f < h; f += 1) {
|
73
|
-
var M = n[f];
|
74
|
-
if (typeof M == "string") i += M.length;
|
75
|
-
else {
|
76
|
-
var Y = M.regex, D = M.parser, $ = v.slice(i), g = Y.exec($)[0];
|
77
|
-
D.call(l, g), v = v.replace(g, "");
|
78
|
-
}
|
79
|
-
}
|
80
|
-
return function(w) {
|
81
|
-
var S = w.afternoon;
|
82
|
-
if (S !== void 0) {
|
83
|
-
var a = w.hours;
|
84
|
-
S ? a < 12 && (w.hours += 12) : a === 12 && (w.hours = 0), delete w.afternoon;
|
85
|
-
}
|
86
|
-
}(l), l;
|
87
|
-
};
|
88
|
-
}
|
89
|
-
return function(t, r, e) {
|
90
|
-
e.p.customParseFormat = !0, t && t.parseTwoDigitYear && (Q = t.parseTwoDigitYear);
|
91
|
-
var n = r.prototype, h = n.parse;
|
92
|
-
n.parse = function(c) {
|
93
|
-
var y = c.date, p = c.utc, u = c.args;
|
94
|
-
this.$u = p;
|
95
|
-
var d = u[1];
|
96
|
-
if (typeof d == "string") {
|
97
|
-
var v = u[2] === !0, l = u[3] === !0, f = v || l, i = u[2];
|
98
|
-
l && (i = u[2]), m = this.$locale(), !v && i && (m = e.Ls[i]), this.$d = function($, g, w, S) {
|
99
|
-
try {
|
100
|
-
if (["x", "X"].indexOf(g) > -1) return new Date((g === "X" ? 1e3 : 1) * $);
|
101
|
-
var a = K(g)($), H = a.year, A = a.month, N = a.day, R = a.hours, W = a.minutes, tt = a.seconds, rt = a.milliseconds, V = a.zone, q = a.week, O = /* @__PURE__ */ new Date(), P = N || (H || A ? 1 : O.getDate()), z = H || O.getFullYear(), T = 0;
|
102
|
-
H && !A || (T = A > 0 ? A - 1 : O.getMonth());
|
103
|
-
var Z, C = R || 0, E = W || 0, _ = tt || 0, b = rt || 0;
|
104
|
-
return V ? new Date(Date.UTC(z, T, P, C, E, _, b + 60 * V.offset * 1e3)) : w ? new Date(Date.UTC(z, T, P, C, E, _, b)) : (Z = new Date(z, T, P, C, E, _, b), q && (Z = S(Z).week(q).toDate()), Z);
|
105
|
-
} catch {
|
106
|
-
return /* @__PURE__ */ new Date("");
|
107
|
-
}
|
108
|
-
}(y, d, p, e), this.init(), i && i !== !0 && (this.$L = this.locale(i).$L), f && y != this.format(d) && (this.$d = /* @__PURE__ */ new Date("")), m = {};
|
109
|
-
} else if (d instanceof Array) for (var M = d.length, Y = 1; Y <= M; Y += 1) {
|
110
|
-
u[1] = d[Y - 1];
|
111
|
-
var D = e.apply(this, u);
|
112
|
-
if (D.isValid()) {
|
113
|
-
this.$d = D.$d, this.$L = D.$L, this.init();
|
114
|
-
break;
|
115
|
-
}
|
116
|
-
Y === M && (this.$d = /* @__PURE__ */ new Date(""));
|
117
|
-
}
|
118
|
-
else h.call(this, c);
|
119
|
-
};
|
1
|
+
import { MaskInput as r } from "./index269.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);
|
120
15
|
};
|
121
|
-
|
122
|
-
}
|
123
|
-
|
124
|
-
|
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
|
+
};
|
125
20
|
export {
|
126
|
-
|
21
|
+
k as vMaska
|
127
22
|
};
|
package/dist/index209.js
CHANGED
@@ -1,21 +1,6 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
(function(n, d) {
|
5
|
-
(function(t, o) {
|
6
|
-
n.exports = o(s());
|
7
|
-
})(m, function(t) {
|
8
|
-
function o(e) {
|
9
|
-
return e && typeof e == "object" && "default" in e ? e : { default: e };
|
10
|
-
}
|
11
|
-
var a = o(t), r = { name: "it", weekdays: "domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"), weekdaysShort: "dom_lun_mar_mer_gio_ven_sab".split("_"), weekdaysMin: "do_lu_ma_me_gi_ve_sa".split("_"), months: "gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"), weekStart: 1, monthsShort: "gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"), formats: { LT: "HH:mm", LTS: "HH:mm:ss", L: "DD/MM/YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY HH:mm", LLLL: "dddd D MMMM YYYY HH:mm" }, relativeTime: { future: "tra %s", past: "%s fa", s: "qualche secondo", m: "un minuto", mm: "%d minuti", h: "un' ora", hh: "%d ore", d: "un giorno", dd: "%d giorni", M: "un mese", MM: "%d mesi", y: "un anno", yy: "%d anni" }, ordinal: function(e) {
|
12
|
-
return e + "º";
|
13
|
-
} };
|
14
|
-
return a.default.locale(r, null, !0), r;
|
15
|
-
});
|
16
|
-
})(_);
|
17
|
-
var u = _.exports;
|
18
|
-
const p = /* @__PURE__ */ i(u);
|
1
|
+
function x(e) {
|
2
|
+
return /^#([A-Fa-f0-9]{6})$/.test(e);
|
3
|
+
}
|
19
4
|
export {
|
20
|
-
|
5
|
+
x as isHex
|
21
6
|
};
|
package/dist/index21.js
CHANGED
@@ -4,20 +4,20 @@ import { defineComponent as z, ref as b, watch as U, openBlock as m, createEleme
|
|
4
4
|
import { useId as H } from "./index8.js";
|
5
5
|
import p from "./index13.js";
|
6
6
|
/* empty css */
|
7
|
-
import s from "./
|
8
|
-
import R from "./
|
9
|
-
import Z from "./
|
10
|
-
import q from "./
|
11
|
-
import F from "./
|
12
|
-
import G from "./
|
13
|
-
import { hash as h } from "./
|
14
|
-
import { last as J } from "./
|
15
|
-
import { useLogger as K } from "./
|
16
|
-
import Q from "./
|
17
|
-
import X from "./
|
18
|
-
import ee from "./
|
19
|
-
import C from "./
|
20
|
-
import ae from "./
|
7
|
+
import s from "./index211.js";
|
8
|
+
import R from "./index214.js";
|
9
|
+
import Z from "./index215.js";
|
10
|
+
import q from "./index213.js";
|
11
|
+
import F from "./index239.js";
|
12
|
+
import G from "./index240.js";
|
13
|
+
import { hash as h } from "./index229.js";
|
14
|
+
import { last as J } from "./index217.js";
|
15
|
+
import { useLogger as K } from "./index228.js";
|
16
|
+
import Q from "./index241.js";
|
17
|
+
import X from "./index242.js";
|
18
|
+
import ee from "./index243.js";
|
19
|
+
import C from "./index244.js";
|
20
|
+
import ae from "./index245.js";
|
21
21
|
const le = { class: "bb-base-date-picker" }, te = { class: "bb-base-date-picker__body" }, oe = { class: "bb-base-date-picker__controls" }, re = {
|
22
22
|
style: { transform: "rotate(180deg)" },
|
23
23
|
viewBox: "0 0 24 24",
|