bitboss-ui 2.1.97 → 2.1.98
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/README.md +138 -11
- package/dist/index108.js +9 -9
- package/dist/index115.js +1 -1
- package/dist/index121.js +4 -4
- package/dist/index123.js +12 -12
- package/dist/index131.js +1 -1
- package/dist/index133.js +4 -4
- package/dist/index135.js +1 -1
- package/dist/index137.js +2 -2
- package/dist/index14.js +1 -1
- package/dist/index145.js +2 -2
- package/dist/index16.js +4 -4
- package/dist/index18.js +3 -3
- package/dist/index20.js +8 -8
- package/dist/index219.js +5 -33
- package/dist/index22.js +14 -14
- package/dist/index220.js +5 -28
- package/dist/index221.js +7 -0
- package/dist/index222.js +5 -5
- package/dist/index223.js +3 -8
- package/dist/index224.js +2 -2
- package/dist/index225.js +6 -4
- package/dist/index226.js +6 -32
- package/dist/index227.js +268 -2
- package/dist/index228.js +52 -3
- package/dist/index229.js +52 -2
- package/dist/index230.js +31 -12
- package/dist/index231.js +60 -3
- package/dist/index232.js +13 -188
- package/dist/index233.js +5 -3
- package/dist/index234.js +5 -9
- package/dist/index235.js +5 -4
- package/dist/index236.js +2 -20
- package/dist/index237.js +3 -201
- package/dist/index238.js +22 -0
- package/dist/index239.js +6 -6
- package/dist/index24.js +10 -10
- package/dist/index241.js +86 -2
- package/dist/index243.js +27 -15
- package/dist/index244.js +17 -106
- package/dist/{index242.js → index245.js} +4 -4
- package/dist/index246.js +15 -100
- package/dist/index247.js +14 -0
- package/dist/index248.js +16 -3
- package/dist/index249.js +2 -86
- package/dist/index250.js +4 -0
- package/dist/index251.js +3 -29
- package/dist/index252.js +5 -16
- package/dist/index253.js +8 -15
- package/dist/index254.js +33 -3
- package/dist/index255.js +28 -12
- package/dist/index257.js +2 -4
- package/dist/index258.js +184 -19
- package/dist/index259.js +3 -33
- package/dist/index26.js +3 -3
- package/dist/index260.js +13 -2
- package/dist/index261.js +4 -8
- package/dist/index262.js +22 -8
- package/dist/index263.js +13 -23
- package/dist/index264.js +9 -3
- package/dist/index265.js +6 -12
- package/dist/index266.js +3 -9
- package/dist/index267.js +33 -52
- package/dist/index268.js +4 -10
- package/dist/index269.js +201 -3
- package/dist/index271.js +9 -5
- package/dist/index272.js +23 -2
- package/dist/index273.js +32 -6
- package/dist/index274.js +10 -6
- package/dist/index275.js +9 -17
- package/dist/index276.js +2 -11
- package/dist/index277.js +100 -98
- package/dist/index279.js +100 -5
- package/dist/index28.js +1 -1
- package/dist/index281.js +18 -5
- package/dist/index282.js +12 -5
- package/dist/index283.js +4 -6
- package/dist/index284.js +99 -263
- package/dist/index285.js +3 -52
- package/dist/index286.js +60 -45
- package/dist/index287.js +6 -32
- package/dist/index288.js +15 -59
- package/dist/index289.js +2 -7
- package/dist/index290.js +7 -5
- package/dist/index291.js +7 -5
- package/dist/index292.js +9 -5
- package/dist/index293.js +53 -6
- package/dist/index294.js +20 -15
- package/dist/index295.js +5 -21
- package/dist/index296.js +9 -0
- package/dist/index297.js +1 -1
- package/dist/index298.js +17 -4
- package/dist/index299.js +28 -7
- package/dist/index30.js +2 -2
- package/dist/index301.js +3 -5
- package/dist/index302.js +280 -3
- package/dist/index303.js +2 -3
- package/dist/index304.js +16 -3
- package/dist/index305.js +2 -3
- package/dist/index306.js +16 -17
- package/dist/index307.js +2 -3
- package/dist/index308.js +26 -27
- package/dist/index309.js +2 -5
- package/dist/index310.js +1 -1
- package/dist/index311.js +1 -1
- package/dist/index312.js +2 -280
- package/dist/index313.js +2 -2
- package/dist/index314.js +2 -16
- package/dist/index315.js +3 -2
- package/dist/index316.js +121 -12
- package/dist/index317.js +2 -2
- package/dist/index318.js +13 -25
- package/dist/index32.js +2 -2
- package/dist/index320.js +19 -2
- package/dist/index321.js +2 -2
- package/dist/index322.js +1 -1
- package/dist/index323.js +5 -2
- package/dist/index324.js +3 -2
- package/dist/index325.js +2 -4
- package/dist/index326.js +3 -719
- package/dist/index327.js +3 -366
- package/dist/index328.js +5 -57
- package/dist/index329.js +719 -125
- package/dist/index330.js +366 -2
- package/dist/index331.js +56 -14
- package/dist/index332.js +2 -2
- package/dist/index333.js +4 -19
- package/dist/index334.js +4 -2
- package/dist/index335.js +6 -58
- package/dist/index336.js +7 -58
- package/dist/index337.js +5 -228
- package/dist/index338.js +34 -5
- package/dist/index339.js +6 -93
- package/dist/index34.js +8 -8
- package/dist/index340.js +128 -7
- package/dist/index341.js +397 -5
- package/dist/index342.js +57 -7
- package/dist/index343.js +58 -35
- package/dist/index344.js +7 -6
- package/dist/index345.js +17 -127
- package/dist/index346.js +7 -396
- package/dist/index347.js +12 -131
- package/dist/index348.js +8 -193
- package/dist/index349.js +6 -258
- package/dist/index350.js +8 -7
- package/dist/index351.js +91 -17
- package/dist/index352.js +22 -9
- package/dist/index354.js +228 -5
- package/dist/index355.js +133 -6
- package/dist/index356.js +193 -2
- package/dist/index357.js +258 -2
- package/dist/index358.js +1 -21
- package/dist/index359.js +4 -0
- package/dist/index36.js +4 -4
- package/dist/index363.js +1 -1
- package/dist/index38.js +19 -19
- package/dist/index40.js +6 -6
- package/dist/index42.js +2 -2
- package/dist/index44.js +8 -8
- package/dist/index46.js +6 -6
- package/dist/index50.js +2 -2
- package/dist/index54.js +1 -1
- package/dist/index56.js +1 -1
- package/dist/index58.js +2 -2
- package/dist/index62.js +5 -5
- package/dist/index68.js +1 -1
- package/dist/index81.js +5 -5
- package/dist/index83.js +1 -1
- package/dist/index85.js +2 -2
- package/dist/index87.js +3 -3
- package/dist/index89.js +1 -1
- package/dist/index92.js +3 -3
- package/dist/index94.js +2 -2
- package/dist/index96.js +4 -4
- package/package.json +14 -3
- package/dist/index256.js +0 -15
- package/dist/index270.js +0 -69
- package/dist/index278.js +0 -13
- package/dist/index280.js +0 -7
- package/dist/index300.js +0 -4
- package/dist/index353.js +0 -17
package/dist/index28.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as S, computed as r, ref as V, watchPostEffect as N, nextTick as D, createElementBlock as u, openBlock as i, normalizeClass as I, createBlock as B, createVNode as E, createElementVNode as d, resolveDynamicComponent as P, normalizeProps as o, guardReactiveProps as s, withCtx as b, renderSlot as C, createTextVNode as q, toDisplayString as h, unref as f, Transition as F, createCommentVNode as G, TransitionGroup as M, Fragment as R, renderList as j } from "vue";
|
|
2
|
-
import { deburr as x } from "./
|
|
2
|
+
import { deburr as x } from "./index285.js";
|
|
3
3
|
import { getAsPercentage as k } from "./index140.js";
|
|
4
4
|
import { useId as J } from "./index8.js";
|
|
5
5
|
const K = ["id"], O = { class: "bb-base-input-container__hint" }, Y = /* @__PURE__ */ S({
|
package/dist/index281.js
CHANGED
|
@@ -1,7 +1,20 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { isNil as c } from "./index257.js";
|
|
2
|
+
const a = (t, r) => {
|
|
3
|
+
if (!Object.prototype.hasOwnProperty.call(t, r))
|
|
4
|
+
throw new Error(
|
|
5
|
+
`Object ${JSON.stringify(t, null, 2)} has no property named "${r.toString()}"`
|
|
6
|
+
);
|
|
7
|
+
}, l = (t) => typeof t == "string" ? t.toLocaleLowerCase() : JSON.stringify(t).toLowerCase(), y = (t, r, s) => {
|
|
8
|
+
const i = s.toLocaleLowerCase();
|
|
9
|
+
for (let e = 0; e < r.length; e++) {
|
|
10
|
+
const n = r[e];
|
|
11
|
+
a(t, n);
|
|
12
|
+
const o = t[n];
|
|
13
|
+
if (c(o)) continue;
|
|
14
|
+
if (l(o).includes(i)) return !0;
|
|
15
|
+
}
|
|
16
|
+
return !1;
|
|
17
|
+
};
|
|
5
18
|
export {
|
|
6
|
-
|
|
19
|
+
y as matchAnyKey
|
|
7
20
|
};
|
package/dist/index282.js
CHANGED
|
@@ -1,7 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { ref as t } from "vue";
|
|
2
|
+
const n = () => {
|
|
3
|
+
const e = t([]);
|
|
4
|
+
return { array: e, set: (...r) => {
|
|
5
|
+
e.value = r;
|
|
6
|
+
}, add: (...r) => {
|
|
7
|
+
e.value.push(...r);
|
|
8
|
+
}, remove: (r) => {
|
|
9
|
+
e.value = e.value.filter(r);
|
|
10
|
+
} };
|
|
11
|
+
};
|
|
5
12
|
export {
|
|
6
|
-
|
|
13
|
+
n as useArray
|
|
7
14
|
};
|
package/dist/index283.js
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
throw new Error(`${r} must be in the format YYYY-MM-DD`);
|
|
4
|
-
return t;
|
|
5
|
-
}
|
|
1
|
+
import { curry as e } from "./index333.js";
|
|
2
|
+
const t = (n, o, r) => n(r) ? o(r) : r, s = e(t);
|
|
6
3
|
export {
|
|
7
|
-
|
|
4
|
+
t as baseWhen,
|
|
5
|
+
s as when
|
|
8
6
|
};
|
package/dist/index284.js
CHANGED
|
@@ -1,270 +1,106 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
import { sort as N } from "./index351.js";
|
|
7
|
-
import { validateDateFormat as R } from "./index283.js";
|
|
8
|
-
import { toInnerValue as Oe, toOuterValue as p } from "./index352.js";
|
|
9
|
-
import { isDateDisabled as we } from "./index353.js";
|
|
10
|
-
import g from "./index279.js";
|
|
11
|
-
import Se from "./index354.js";
|
|
12
|
-
const Ve = ["onKeydown"], De = { class: "bb-base-date-picker__header-container" }, Me = ["abbr"], Be = ["id", "aria-current", "aria-label", "aria-selected", "disabled", "tabindex"], Pe = /* @__PURE__ */ pe({
|
|
13
|
-
__name: "BaseDatePickerInputDaySelector",
|
|
1
|
+
import { defineComponent as u, ref as g, createBlock as l, openBlock as d, withCtx as n, renderSlot as i, normalizeProps as s, guardReactiveProps as a } from "vue";
|
|
2
|
+
import m from "./index356.js";
|
|
3
|
+
import f from "./index357.js";
|
|
4
|
+
const B = /* @__PURE__ */ u({
|
|
5
|
+
__name: "ListBox",
|
|
14
6
|
props: {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
modelValue: {},
|
|
22
|
-
max: {},
|
|
23
|
-
min: {},
|
|
24
|
-
selectable: { type: Function },
|
|
25
|
-
range: { type: Boolean },
|
|
7
|
+
compact: { type: Boolean },
|
|
8
|
+
options: {},
|
|
9
|
+
groups: {},
|
|
10
|
+
headerHeight: {},
|
|
11
|
+
open: { type: Boolean },
|
|
12
|
+
loading: { type: Boolean },
|
|
26
13
|
multiple: { type: Boolean },
|
|
27
|
-
|
|
14
|
+
transitionDuration: {},
|
|
15
|
+
loadingText: {},
|
|
16
|
+
noDataText: {},
|
|
17
|
+
optionHeight: {}
|
|
28
18
|
},
|
|
29
|
-
emits: ["
|
|
30
|
-
setup(
|
|
31
|
-
const
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
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
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
},
|
|
112
|
-
if (Array.isArray(a.modelValue))
|
|
113
|
-
if (a.modelValue.length !== 1) {
|
|
114
|
-
const r = [p(e.original, a.floating)];
|
|
115
|
-
n("update:modelValue", r);
|
|
116
|
-
} else {
|
|
117
|
-
const r = N([
|
|
118
|
-
a.modelValue[0],
|
|
119
|
-
p(e.original, a.floating)
|
|
120
|
-
]);
|
|
121
|
-
n("update:modelValue", r);
|
|
122
|
-
}
|
|
123
|
-
}, q = (e) => {
|
|
124
|
-
if (Array.isArray(a.modelValue))
|
|
125
|
-
if (e.selected) {
|
|
126
|
-
const r = p(e.original, a.floating), s = a.modelValue.filter((t) => t !== r);
|
|
127
|
-
n("update:modelValue", s);
|
|
128
|
-
} else {
|
|
129
|
-
const r = N([
|
|
130
|
-
...a.modelValue,
|
|
131
|
-
p(e.original, a.floating)
|
|
132
|
-
]);
|
|
133
|
-
n("update:modelValue", r);
|
|
134
|
-
}
|
|
135
|
-
}, z = (e) => {
|
|
136
|
-
e.selected ? n("update:modelValue", null) : n("update:modelValue", p(e.original, a.floating));
|
|
137
|
-
}, G = () => {
|
|
138
|
-
const e = a.cursor.clone().add(1, "day");
|
|
139
|
-
d(e) || (n("update:cursor", e), l());
|
|
140
|
-
}, J = () => {
|
|
141
|
-
const e = a.cursor.clone().subtract(1, "day");
|
|
142
|
-
d(e) || (n("update:cursor", e), l());
|
|
143
|
-
}, Q = () => {
|
|
144
|
-
const e = a.cursor.clone().subtract(1, "week");
|
|
145
|
-
d(e) || (n("update:cursor", e), l());
|
|
146
|
-
}, X = () => {
|
|
147
|
-
const e = a.cursor.clone().add(1, "week");
|
|
148
|
-
d(e) || (n("update:cursor", e), l());
|
|
149
|
-
}, Z = () => {
|
|
150
|
-
const e = a.cursor.clone().endOf("week");
|
|
151
|
-
d(e) || (n("update:cursor", e), l());
|
|
152
|
-
}, ee = () => {
|
|
153
|
-
const e = a.cursor.clone().startOf("week");
|
|
154
|
-
d(e) || (n("update:cursor", e), l());
|
|
155
|
-
}, te = (e) => {
|
|
156
|
-
if (e.shiftKey) {
|
|
157
|
-
const r = a.cursor.clone().subtract(1, "year");
|
|
158
|
-
if (d(r)) return;
|
|
159
|
-
n("update:cursor", r);
|
|
160
|
-
} else {
|
|
161
|
-
const r = a.cursor.clone().subtract(1, "month");
|
|
162
|
-
if (d(r)) return;
|
|
163
|
-
n("update:cursor", r);
|
|
164
|
-
}
|
|
165
|
-
l();
|
|
166
|
-
}, ae = (e) => {
|
|
167
|
-
if (e.shiftKey) {
|
|
168
|
-
const r = a.cursor.clone().add(1, "year");
|
|
169
|
-
if (d(r)) return;
|
|
170
|
-
n("update:cursor", r);
|
|
171
|
-
} else {
|
|
172
|
-
const r = a.cursor.clone().add(1, "month");
|
|
173
|
-
if (d(r)) return;
|
|
174
|
-
n("update:cursor", r);
|
|
175
|
-
}
|
|
176
|
-
l();
|
|
177
|
-
};
|
|
178
|
-
return (e, r) => (u(), c("div", {
|
|
179
|
-
ref_key: "calendar",
|
|
180
|
-
ref: h,
|
|
181
|
-
"aria-label": "Calendar dates",
|
|
182
|
-
class: O(["bb-base-date-picker__days-selector", { "bb-base-date-picker__days-selector--hidden": !e.current }]),
|
|
183
|
-
role: "grid",
|
|
184
|
-
onKeydown: [
|
|
185
|
-
f(m(X, ["prevent"]), ["down"]),
|
|
186
|
-
f(m(Z, ["prevent"]), ["end"]),
|
|
187
|
-
f(m(ee, ["prevent"]), ["home"]),
|
|
188
|
-
f(m(J, ["prevent"]), ["left"]),
|
|
189
|
-
f(m(ae, ["prevent"]), ["page-down"]),
|
|
190
|
-
f(m(te, ["prevent"]), ["page-up"]),
|
|
191
|
-
f(m(G, ["prevent"]), ["right"]),
|
|
192
|
-
f(m(Q, ["prevent"]), ["up"])
|
|
193
|
-
]
|
|
194
|
-
}, [
|
|
195
|
-
ge(Se, {
|
|
196
|
-
direction: D.value,
|
|
197
|
-
gap: 30
|
|
198
|
-
}, {
|
|
199
|
-
default: he(() => [
|
|
200
|
-
(u(), c("div", {
|
|
201
|
-
key: e.cursor.month().toString(),
|
|
202
|
-
class: "bb-base-date-picker__month"
|
|
203
|
-
}, [
|
|
204
|
-
E("div", De, [
|
|
205
|
-
(u(!0), c(w, null, S(Y.value, (s) => (u(), c("div", {
|
|
206
|
-
key: s.id,
|
|
207
|
-
abbr: s.accessibleLabel,
|
|
208
|
-
class: "bb-base-date-picker__header-cell"
|
|
209
|
-
}, x(s.label), 9, Me))), 128))
|
|
210
|
-
]),
|
|
211
|
-
(u(!0), c(w, null, S(V.value, (s) => (u(), c("div", {
|
|
212
|
-
key: s[0].id,
|
|
213
|
-
class: "bb-base-date-picker__week"
|
|
214
|
-
}, [
|
|
215
|
-
(u(!0), c(w, null, S(s, (t) => (u(), c("div", {
|
|
216
|
-
key: t.id,
|
|
217
|
-
class: O({
|
|
218
|
-
"bb-base-date-picker__date--current": t.current,
|
|
219
|
-
"bb-base-date-picker__date--disabled": e.disabled || t.disabled,
|
|
220
|
-
"bb-base-date-picker__date--first": t.first,
|
|
221
|
-
"bb-base-date-picker__date--highlighted": t.highlighted,
|
|
222
|
-
"bb-base-date-picker__date--last": t.last,
|
|
223
|
-
"bb-base-date-picker__date--middle": t.middle,
|
|
224
|
-
"bb-base-date-picker__date--selected": t.selected,
|
|
225
|
-
"bb-base-date-picker__date--today": t.today,
|
|
226
|
-
"bb-base-date-picker__date": !0
|
|
227
|
-
})
|
|
228
|
-
}, [
|
|
229
|
-
E("button", {
|
|
230
|
-
id: t.buttonId,
|
|
231
|
-
"aria-current": t.today ? "date" : void 0,
|
|
232
|
-
"aria-label": `${t.original.format("dddd, MMMM D, YYYY")}${t.selected ? ", selected" : ""}`,
|
|
233
|
-
"aria-selected": t.selected,
|
|
234
|
-
class: O("bb-base-date-picker__date-button"),
|
|
235
|
-
disabled: e.disabled || t.disabled,
|
|
236
|
-
tabindex: Number(t.current) - 1,
|
|
237
|
-
type: "button",
|
|
238
|
-
role: "gridcell",
|
|
239
|
-
onClick: U
|
|
240
|
-
}, x(t.label), 9, Be),
|
|
241
|
-
C(e.$slots, "day", {
|
|
242
|
-
first: t.first,
|
|
243
|
-
highlighted: t.highlighted,
|
|
244
|
-
item: t.original,
|
|
245
|
-
label: t.label,
|
|
246
|
-
last: t.last,
|
|
247
|
-
middle: t.middle,
|
|
248
|
-
selected: t.selected
|
|
249
|
-
}),
|
|
250
|
-
C(e.$slots, t.slotName, {
|
|
251
|
-
first: t.first,
|
|
252
|
-
highlighted: t.highlighted,
|
|
253
|
-
item: t.original,
|
|
254
|
-
label: t.label,
|
|
255
|
-
last: t.last,
|
|
256
|
-
middle: t.middle,
|
|
257
|
-
selected: t.selected
|
|
258
|
-
})
|
|
259
|
-
], 2))), 128))
|
|
260
|
-
]))), 128))
|
|
261
|
-
]))
|
|
262
|
-
]),
|
|
263
|
-
_: 3
|
|
264
|
-
}, 8, ["direction"])
|
|
265
|
-
], 42, Ve));
|
|
19
|
+
emits: ["option:selected", "option:unselected"],
|
|
20
|
+
setup(h, { expose: r }) {
|
|
21
|
+
const t = g();
|
|
22
|
+
return r({
|
|
23
|
+
focusNext: () => t.value?.focusNext(),
|
|
24
|
+
focusPrevious: () => t.value?.focusPrevious(),
|
|
25
|
+
focusFirst: () => t.value?.focusFirst(),
|
|
26
|
+
focusFirstSelected: () => t.value?.focusFirstSelected(),
|
|
27
|
+
focusLast: () => t.value?.focusLast(),
|
|
28
|
+
focusLastSelected: () => t.value?.focusLastSelected(),
|
|
29
|
+
blur: () => t.value?.blur(),
|
|
30
|
+
confirmOption: () => t.value?.confirmOption(),
|
|
31
|
+
focusByHash: (o) => t.value?.focusByHash(o),
|
|
32
|
+
getHighlighted: () => t.value?.getHighlighted()
|
|
33
|
+
}), (o, p) => o.groups ? (d(), l(f, {
|
|
34
|
+
key: 0,
|
|
35
|
+
ref_key: "child",
|
|
36
|
+
ref: t,
|
|
37
|
+
compact: o.compact,
|
|
38
|
+
groups: o.groups,
|
|
39
|
+
"header-height": o.headerHeight,
|
|
40
|
+
loading: o.loading,
|
|
41
|
+
"loading-text": o.loadingText,
|
|
42
|
+
multiple: o.multiple,
|
|
43
|
+
"no-data-text": o.noDataText,
|
|
44
|
+
open: o.open,
|
|
45
|
+
"option-height": o.optionHeight,
|
|
46
|
+
"transition-duration": o.transitionDuration,
|
|
47
|
+
"onOption:selected": p[0] || (p[0] = (e) => o.$emit("option:selected", e)),
|
|
48
|
+
"onOption:unselected": p[1] || (p[1] = (e) => o.$emit("option:unselected", e))
|
|
49
|
+
}, {
|
|
50
|
+
"options:prepend": n(() => [
|
|
51
|
+
i(o.$slots, "options:prepend")
|
|
52
|
+
]),
|
|
53
|
+
loading: n(() => [
|
|
54
|
+
i(o.$slots, "loading")
|
|
55
|
+
]),
|
|
56
|
+
"no-data": n(() => [
|
|
57
|
+
i(o.$slots, "no-data")
|
|
58
|
+
]),
|
|
59
|
+
"options:append": n(() => [
|
|
60
|
+
i(o.$slots, "options:append")
|
|
61
|
+
]),
|
|
62
|
+
option: n((e) => [
|
|
63
|
+
i(o.$slots, "option", s(a(e)))
|
|
64
|
+
]),
|
|
65
|
+
group: n((e) => [
|
|
66
|
+
i(o.$slots, "group", s(a(e)))
|
|
67
|
+
]),
|
|
68
|
+
_: 3
|
|
69
|
+
}, 8, ["compact", "groups", "header-height", "loading", "loading-text", "multiple", "no-data-text", "open", "option-height", "transition-duration"])) : (d(), l(m, {
|
|
70
|
+
key: 1,
|
|
71
|
+
ref_key: "child",
|
|
72
|
+
ref: t,
|
|
73
|
+
compact: o.compact,
|
|
74
|
+
loading: o.loading,
|
|
75
|
+
"loading-text": o.loadingText,
|
|
76
|
+
multiple: o.multiple,
|
|
77
|
+
"no-data-text": o.noDataText,
|
|
78
|
+
open: o.open,
|
|
79
|
+
options: o.options ?? [],
|
|
80
|
+
"option-height": o.optionHeight,
|
|
81
|
+
"transition-duration": o.transitionDuration,
|
|
82
|
+
"onOption:selected": p[2] || (p[2] = (e) => o.$emit("option:selected", e)),
|
|
83
|
+
"onOption:unselected": p[3] || (p[3] = (e) => o.$emit("option:unselected", e))
|
|
84
|
+
}, {
|
|
85
|
+
"options:prepend": n(() => [
|
|
86
|
+
i(o.$slots, "options:prepend")
|
|
87
|
+
]),
|
|
88
|
+
loading: n(() => [
|
|
89
|
+
i(o.$slots, "loading")
|
|
90
|
+
]),
|
|
91
|
+
"no-data": n(() => [
|
|
92
|
+
i(o.$slots, "no-data")
|
|
93
|
+
]),
|
|
94
|
+
"options:append": n(() => [
|
|
95
|
+
i(o.$slots, "options:append")
|
|
96
|
+
]),
|
|
97
|
+
option: n((e) => [
|
|
98
|
+
i(o.$slots, "option", s(a(e)))
|
|
99
|
+
]),
|
|
100
|
+
_: 3
|
|
101
|
+
}, 8, ["compact", "loading", "loading-text", "multiple", "no-data-text", "open", "options", "option-height", "transition-duration"]));
|
|
266
102
|
}
|
|
267
103
|
});
|
|
268
104
|
export {
|
|
269
|
-
|
|
105
|
+
B as default
|
|
270
106
|
};
|
package/dist/index285.js
CHANGED
|
@@ -1,54 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
const y = { class: "bb-base-date-picker__year-container" }, v = {
|
|
4
|
-
"aria-live": "polite",
|
|
5
|
-
class: "bb-base-date-picker__selected-day-label"
|
|
6
|
-
}, B = { class: "bb-base-date-picker__weekday" }, D = { class: "bb-base-date-picker__monthday" }, M = { class: "bb-base-date-picker__month-button" }, C = /* @__PURE__ */ p({
|
|
7
|
-
__name: "BaseDatePickerHeader",
|
|
8
|
-
props: {
|
|
9
|
-
cursor: {},
|
|
10
|
-
disabled: { type: Boolean },
|
|
11
|
-
hidden: { type: Boolean }
|
|
12
|
-
},
|
|
13
|
-
emits: ["mode:year", "mode:month"],
|
|
14
|
-
setup(n) {
|
|
15
|
-
const s = n, r = b("top"), l = (e, a) => {
|
|
16
|
-
e && a && (r.value = e.isBefore(a) ? "top" : "bottom");
|
|
17
|
-
};
|
|
18
|
-
_(
|
|
19
|
-
() => s.cursor,
|
|
20
|
-
(e, a) => {
|
|
21
|
-
l(e, a);
|
|
22
|
-
}
|
|
23
|
-
);
|
|
24
|
-
const i = m(() => s.cursor.format("YYYY"));
|
|
25
|
-
return (e, a) => (c(), d("div", {
|
|
26
|
-
class: u(["bb-base-date-picker__header", { "bb-base-date-picker__header--hidden": e.hidden }])
|
|
27
|
-
}, [
|
|
28
|
-
t("div", y, [
|
|
29
|
-
h(k, {
|
|
30
|
-
direction: r.value,
|
|
31
|
-
duration: 500,
|
|
32
|
-
gap: 30
|
|
33
|
-
}, {
|
|
34
|
-
default: f(() => [
|
|
35
|
-
(c(), d("span", {
|
|
36
|
-
key: i.value,
|
|
37
|
-
"aria-live": "polite",
|
|
38
|
-
class: "bb-base-date-picker__year-button"
|
|
39
|
-
}, o(i.value), 1))
|
|
40
|
-
]),
|
|
41
|
-
_: 1
|
|
42
|
-
}, 8, ["direction"])
|
|
43
|
-
]),
|
|
44
|
-
t("div", v, [
|
|
45
|
-
t("span", B, o(e.cursor.format("ddd")) + ", ", 1),
|
|
46
|
-
t("span", D, o(e.cursor.format("DD")), 1),
|
|
47
|
-
t("span", M, o(e.cursor.format("MMMM")), 1)
|
|
48
|
-
])
|
|
49
|
-
], 2));
|
|
50
|
-
}
|
|
51
|
-
});
|
|
1
|
+
import r from "./index328.js";
|
|
2
|
+
const t = r;
|
|
52
3
|
export {
|
|
53
|
-
|
|
4
|
+
t as deburr
|
|
54
5
|
};
|
package/dist/index286.js
CHANGED
|
@@ -1,54 +1,69 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
1
|
+
import { defineComponent as d, createElementBlock as l, openBlock as o, normalizeClass as u, createElementVNode as t, createBlock as i, createCommentVNode as s, unref as f, withCtx as g, toDisplayString as n } from "vue";
|
|
2
|
+
import { useLocale as k } from "./index232.js";
|
|
3
|
+
import h from "./index14.js";
|
|
3
4
|
/* empty css */
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
5
|
+
import C from "./index87.js";
|
|
6
|
+
/* empty css */
|
|
7
|
+
const w = { class: "bb-toast-message__icon-container" }, v = { class: "bb-toast-message__content" }, y = {
|
|
8
|
+
key: 1,
|
|
9
|
+
class: "bb-toast-message__title"
|
|
10
|
+
}, B = { class: "bb-toast-message__text" }, z = /* @__PURE__ */ d({
|
|
11
|
+
__name: "BbToastMessage",
|
|
10
12
|
props: {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
+
title: {},
|
|
14
|
+
text: {},
|
|
15
|
+
icon: {},
|
|
16
|
+
theme: { default: "default" },
|
|
17
|
+
id: {},
|
|
18
|
+
showClose: { type: Boolean }
|
|
13
19
|
},
|
|
14
|
-
emits: ["
|
|
15
|
-
setup(
|
|
16
|
-
const
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
disabled: t.disabled,
|
|
39
|
-
role: "option",
|
|
40
|
-
type: "button",
|
|
41
|
-
onClick: e.handler
|
|
20
|
+
emits: ["click:close"],
|
|
21
|
+
setup(r, { emit: c }) {
|
|
22
|
+
const m = r, p = c, { t: _ } = k(), b = () => {
|
|
23
|
+
p("click:close", m.id);
|
|
24
|
+
};
|
|
25
|
+
return (e, a) => (o(), l("div", {
|
|
26
|
+
"aria-atomic": "true",
|
|
27
|
+
"aria-live": "polite",
|
|
28
|
+
"aria-role": "alert",
|
|
29
|
+
class: u(["bb-toast-message", { [`bb-toast-message--${e.theme}`]: e.theme }])
|
|
30
|
+
}, [
|
|
31
|
+
t("div", w, [
|
|
32
|
+
e.icon ? (o(), i(C, {
|
|
33
|
+
key: 0,
|
|
34
|
+
class: "bb-toast-message__icon",
|
|
35
|
+
type: e.icon
|
|
36
|
+
}, null, 8, ["type"])) : s("", !0)
|
|
37
|
+
]),
|
|
38
|
+
t("div", v, [
|
|
39
|
+
e.showClose ? (o(), i(h, {
|
|
40
|
+
key: 0,
|
|
41
|
+
"aria-label": f(_)("common.closeLabel").value,
|
|
42
|
+
class: "bb-toast-message__close",
|
|
43
|
+
onClick: b
|
|
42
44
|
}, {
|
|
43
|
-
default:
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
45
|
+
default: g(() => a[0] || (a[0] = [
|
|
46
|
+
t("svg", {
|
|
47
|
+
fill: "none",
|
|
48
|
+
viewBox: "0 0 24 24",
|
|
49
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
50
|
+
}, [
|
|
51
|
+
t("path", {
|
|
52
|
+
d: "M23 23L1 1M23 1L1 23",
|
|
53
|
+
stroke: "currentColor",
|
|
54
|
+
"stroke-linecap": "round",
|
|
55
|
+
"stroke-width": "2"
|
|
56
|
+
})
|
|
57
|
+
], -1)
|
|
58
|
+
])),
|
|
59
|
+
_: 1
|
|
60
|
+
}, 8, ["aria-label"])) : s("", !0),
|
|
61
|
+
e.title ? (o(), l("p", y, n(e.title), 1)) : s("", !0),
|
|
62
|
+
t("p", B, n(e.text), 1)
|
|
48
63
|
])
|
|
49
|
-
]));
|
|
64
|
+
], 2));
|
|
50
65
|
}
|
|
51
66
|
});
|
|
52
67
|
export {
|
|
53
|
-
|
|
68
|
+
z as default
|
|
54
69
|
};
|