bitboss-ui 2.1.76 → 2.1.77
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/BbDropdown/BbDropdown.vue.d.ts +23 -2
- package/dist/components/BbPopover/BbPopover.vue.d.ts +34 -9
- package/dist/components/BbTooltip/BbTooltip.vue.d.ts +6 -0
- package/dist/components/CommonPopover.vue.d.ts +5 -0
- package/dist/index.css +1 -1
- package/dist/index107.js +9 -9
- package/dist/index112.js +1 -1
- package/dist/index114.js +1 -1
- package/dist/index120.js +1 -1
- package/dist/index122.js +13 -13
- package/dist/index13.js +1 -1
- package/dist/index130.js +1 -1
- package/dist/index132.js +4 -4
- package/dist/index134.js +1 -1
- package/dist/index136.js +2 -2
- package/dist/index139.js +1 -1
- package/dist/index141.js +2 -2
- package/dist/index143.js +2 -2
- package/dist/index15.js +4 -4
- package/dist/index17.js +3 -3
- package/dist/index19.js +8 -8
- package/dist/index21.js +14 -14
- package/dist/index214.js +2 -138
- package/dist/index215.js +138 -2
- package/dist/index217.js +5 -7
- package/dist/index218.js +8 -2
- package/dist/index219.js +5 -5
- package/dist/index220.js +5 -8
- package/dist/index221.js +5 -5
- package/dist/index222.js +5 -2
- package/dist/index223.js +3 -2
- package/dist/index224.js +2 -2
- package/dist/index225.js +6 -13
- package/dist/index226.js +8 -9
- package/dist/index227.js +268 -3
- package/dist/index228.js +52 -3
- package/dist/index229.js +52 -2
- package/dist/index23.js +10 -10
- package/dist/index230.js +31 -17
- package/dist/index231.js +60 -12
- package/dist/index232.js +13 -51
- package/dist/index233.js +32 -14
- package/dist/index234.js +28 -12
- package/dist/index236.js +2 -29
- package/dist/index237.js +2 -16
- package/dist/index238.js +3 -4
- package/dist/index239.js +12 -105
- package/dist/index240.js +15 -0
- package/dist/index241.js +2 -100
- package/dist/index242.js +11 -0
- package/dist/index243.js +67 -59
- package/dist/index245.js +4 -229
- package/dist/index246.js +22 -12
- package/dist/index247.js +2 -3
- package/dist/index248.js +7 -5
- package/dist/index249.js +7 -5
- package/dist/index25.js +3 -3
- package/dist/index250.js +4 -5
- package/dist/index251.js +9 -5
- package/dist/index252.js +29 -5
- package/dist/index253.js +16 -5
- package/dist/index254.js +16 -19
- package/dist/index255.js +50 -32
- package/dist/index256.js +12 -28
- package/dist/index257.js +43 -0
- package/dist/index258.js +2 -2
- package/dist/index259.js +9 -2
- package/dist/index260.js +106 -7
- package/dist/index262.js +100 -10
- package/dist/index264.js +3 -4
- package/dist/index265.js +5 -3
- package/dist/index266.js +86 -4
- package/dist/index268.js +17 -0
- package/dist/index269.js +188 -86
- package/dist/index27.js +1 -1
- package/dist/index270.js +4 -0
- package/dist/index271.js +5 -5
- package/dist/index272.js +5 -6
- package/dist/index273.js +5 -8
- package/dist/index274.js +18 -266
- package/dist/index275.js +7 -51
- package/dist/index276.js +60 -45
- package/dist/index277.js +3 -32
- package/dist/index278.js +4 -60
- package/dist/index279.js +201 -9
- package/dist/index281.js +7 -9
- package/dist/index282.js +11 -8
- package/dist/index283.js +6 -9
- package/dist/index284.js +16 -23
- package/dist/index285.js +9 -12
- package/dist/index286.js +2 -187
- package/dist/index287.js +17 -66
- package/dist/index288.js +12 -6
- package/dist/index289.js +228 -15
- package/dist/index29.js +3 -3
- package/dist/index290.js +279 -40
- package/dist/index291.js +2 -11
- package/dist/index292.js +16 -3
- package/dist/index293.js +4 -0
- package/dist/index294.js +16 -3
- package/dist/index295.js +2 -5
- package/dist/index296.js +27 -7
- package/dist/index297.js +2 -3
- package/dist/index298.js +2 -3
- package/dist/index299.js +2 -3
- package/dist/index300.js +1 -1
- package/dist/index301.js +2 -28
- package/dist/index302.js +25 -14
- package/dist/index303.js +2 -4
- package/dist/index304.js +7 -280
- package/dist/index305.js +9 -2
- package/dist/index306.js +23 -125
- package/dist/index307.js +3 -2
- package/dist/index309.js +3 -2
- package/dist/index31.js +2 -2
- package/dist/index310.js +3 -16
- package/dist/index311.js +3 -2
- package/dist/index312.js +3 -16
- package/dist/index313.js +17 -2
- package/dist/index314.js +3 -19
- package/dist/index315.js +4 -2
- package/dist/index317.js +125 -3
- package/dist/index318.js +2 -5
- package/dist/index319.js +15 -3
- package/dist/index320.js +2 -2
- package/dist/index321.js +17 -25
- package/dist/index323.js +4 -2
- package/dist/index324.js +6 -2
- package/dist/index326.js +5 -2
- package/dist/index327.js +3 -2
- package/dist/index328.js +719 -6
- package/dist/index329.js +366 -4
- package/dist/index33.js +8 -8
- package/dist/index330.js +57 -719
- package/dist/index331.js +5 -366
- package/dist/index332.js +6 -56
- package/dist/index333.js +18 -57
- package/dist/index334.js +9 -58
- package/dist/index335.js +14 -46
- package/dist/index336.js +6 -34
- package/dist/index337.js +58 -6
- package/dist/index338.js +57 -128
- package/dist/index339.js +5 -398
- package/dist/index340.js +2 -8
- package/dist/index341.js +34 -5
- package/dist/index342.js +6 -8
- package/dist/index343.js +121 -85
- package/dist/index344.js +390 -220
- package/dist/index345.js +20 -518
- package/dist/index347.js +8 -5
- package/dist/index348.js +5 -6
- package/dist/index349.js +8 -19
- package/dist/index35.js +4 -4
- package/dist/index350.js +92 -8
- package/dist/index351.js +131 -12
- package/dist/index352.js +46 -6
- package/dist/index353.js +226 -48
- package/dist/index354.js +518 -20
- package/dist/index355.js +443 -0
- package/dist/index356.js +114 -427
- package/dist/index357.js +48 -126
- package/dist/index37.js +17 -17
- package/dist/index39.js +7 -7
- package/dist/index41.js +2 -2
- package/dist/index43.js +8 -8
- package/dist/index45.js +6 -6
- package/dist/index49.js +1 -1
- package/dist/index53.js +1 -1
- package/dist/index55.js +1 -1
- package/dist/index57.js +2 -2
- package/dist/index61.js +4 -4
- package/dist/index67.js +1 -1
- package/dist/index80.js +209 -156
- package/dist/index82.js +1 -1
- package/dist/index84.js +2 -2
- package/dist/index86.js +3 -3
- package/dist/index88.js +1 -1
- package/dist/index91.js +3 -3
- package/dist/index93.js +2 -2
- package/dist/index95.js +160 -100
- package/dist/index97.js +1 -1
- package/dist/types/CommonProps.d.ts +1 -1
- package/package.json +1 -1
- package/dist/index235.js +0 -19
- package/dist/index261.js +0 -9
- package/dist/index263.js +0 -5
- package/dist/index267.js +0 -203
- package/dist/index280.js +0 -25
- package/dist/index308.js +0 -17
- package/dist/index346.js +0 -136
package/dist/index245.js
CHANGED
|
@@ -1,231 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import { isNotNil as oe } from "./index144.js";
|
|
5
|
-
import { hash as L } from "./index227.js";
|
|
6
|
-
import { useLocale as ne } from "./index225.js";
|
|
7
|
-
const le = { class: "bb-listbox__outer-container scrollbar-border" }, ie = {
|
|
8
|
-
key: 0,
|
|
9
|
-
class: "bb-listbox__loading"
|
|
10
|
-
}, se = {
|
|
11
|
-
key: 1,
|
|
12
|
-
class: "bb-listbox__no-data"
|
|
13
|
-
}, ae = ["aria-selected", "data-index"], ue = { class: "autocomplete-option__label" }, be = /* @__PURE__ */ U({
|
|
14
|
-
__name: "ListBox",
|
|
15
|
-
props: {
|
|
16
|
-
compact: { type: Boolean },
|
|
17
|
-
options: {},
|
|
18
|
-
open: { type: Boolean },
|
|
19
|
-
loading: { type: Boolean },
|
|
20
|
-
multiple: { type: Boolean },
|
|
21
|
-
transitionDuration: { default: 250 },
|
|
22
|
-
loadingText: {},
|
|
23
|
-
noDataText: {}
|
|
24
|
-
},
|
|
25
|
-
emits: ["option:selected", "option:unselected"],
|
|
26
|
-
setup(N, { expose: V, emit: O }) {
|
|
27
|
-
const o = N, y = O, { t: I } = ne(), s = f(null), C = (e) => "option_" + JSON.stringify(e).replace(/\W/g, "_"), i = x(
|
|
28
|
-
() => o.options.map((e) => ({ ...e, id: C(e.value) }))
|
|
29
|
-
), c = te({
|
|
30
|
-
get count() {
|
|
31
|
-
return o.options.length;
|
|
32
|
-
},
|
|
33
|
-
getScrollElement: () => s.value ? s.value : null,
|
|
34
|
-
estimateSize: () => o.compact ? 32 : 40,
|
|
35
|
-
overscan: 5,
|
|
36
|
-
measureElement: () => o.compact ? 32 : 40,
|
|
37
|
-
useAnimationFrameWithResizeObserver: !0
|
|
38
|
-
}), F = (e) => {
|
|
39
|
-
e && c.value.measureElement(e);
|
|
40
|
-
}, M = x(() => c.value.getVirtualItems()), A = x(() => c.value.getTotalSize()), n = f(null), a = x(
|
|
41
|
-
() => o.open && o.options.some((e) => !e.disabled)
|
|
42
|
-
), _ = (e = 1) => {
|
|
43
|
-
const l = b(n.value) ? -1 : n.value;
|
|
44
|
-
let t = (l + e) % o.options.length;
|
|
45
|
-
for (; o.options[t].disabled && t !== l; )
|
|
46
|
-
t = _(e + 1);
|
|
47
|
-
return t;
|
|
48
|
-
}, R = () => {
|
|
49
|
-
if (!a.value) return;
|
|
50
|
-
const e = _();
|
|
51
|
-
n.value = e, u();
|
|
52
|
-
}, S = (e = 1) => {
|
|
53
|
-
const l = b(n.value) ? 0 : n.value;
|
|
54
|
-
let t = (l - e + o.options.length) % o.options.length;
|
|
55
|
-
for (; o.options[t].disabled && t !== l; )
|
|
56
|
-
t = S(e + 1);
|
|
57
|
-
return t;
|
|
58
|
-
}, P = async () => {
|
|
59
|
-
if (!a.value) return;
|
|
60
|
-
const e = S();
|
|
61
|
-
n.value = e, u();
|
|
62
|
-
}, W = () => {
|
|
63
|
-
if (!a.value) return;
|
|
64
|
-
let e = 0;
|
|
65
|
-
for (; o.options[e].disabled; )
|
|
66
|
-
e++;
|
|
67
|
-
n.value = e, u();
|
|
68
|
-
}, q = () => {
|
|
69
|
-
if (!a.value) return;
|
|
70
|
-
let e = o.options.length - 1;
|
|
71
|
-
for (; o.options[e].disabled && e !== 0; )
|
|
72
|
-
e--;
|
|
73
|
-
n.value = e, u();
|
|
74
|
-
}, J = () => {
|
|
75
|
-
if (!a.value) return;
|
|
76
|
-
let e = 0;
|
|
77
|
-
for (; o.options[e] && !o.options[e].selected && o.options.length !== e; )
|
|
78
|
-
e++;
|
|
79
|
-
n.value = e % o.options.length, u();
|
|
80
|
-
}, Y = () => {
|
|
81
|
-
if (!a.value) return;
|
|
82
|
-
let e = o.options.length - 1;
|
|
83
|
-
for (; o.options[e].selected && e > 0; )
|
|
84
|
-
e--;
|
|
85
|
-
n.value = e === -1 ? o.options.length - 1 : e, u();
|
|
86
|
-
}, j = (e) => {
|
|
87
|
-
if (!a.value) return;
|
|
88
|
-
const l = o.options.findIndex(
|
|
89
|
-
(t) => t.valueHash === e
|
|
90
|
-
);
|
|
91
|
-
l >= 0 && (n.value = l), u();
|
|
92
|
-
}, k = () => {
|
|
93
|
-
n.value = null;
|
|
94
|
-
}, u = () => {
|
|
95
|
-
s.value && oe(n.value) && c.value.scrollToIndex(n.value, {
|
|
96
|
-
align: "center",
|
|
97
|
-
behavior: "smooth"
|
|
98
|
-
});
|
|
99
|
-
}, w = () => {
|
|
100
|
-
if (b(n.value) || !o.open) return;
|
|
101
|
-
const e = o.options[n.value];
|
|
102
|
-
e.selected ? y("option:unselected", e) : y("option:selected", e);
|
|
103
|
-
}, B = f(0), E = () => {
|
|
104
|
-
s.value && (B.value = s.value.scrollHeight);
|
|
105
|
-
}, G = (e) => !e.disabled, K = (e) => {
|
|
106
|
-
if (e.preventDefault(), s.value && e.target && e.target instanceof HTMLElement) {
|
|
107
|
-
if (!s.value.querySelector('[role="listbox"]'))
|
|
108
|
-
throw new Error("Could not find listbox in DOM tree.");
|
|
109
|
-
let t = e.target, r = t.dataset.index;
|
|
110
|
-
for (; b(r) && t.parentElement; )
|
|
111
|
-
t = t.parentElement, r = t.dataset.index;
|
|
112
|
-
if (r) {
|
|
113
|
-
const T = o.options[+r];
|
|
114
|
-
T && G(T) && (n.value = +r, w());
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
}, Q = () => b(n.value) ? void 0 : o.options[n.value];
|
|
118
|
-
return D(
|
|
119
|
-
() => o.open,
|
|
120
|
-
() => {
|
|
121
|
-
E();
|
|
122
|
-
},
|
|
123
|
-
{ flush: "post" }
|
|
124
|
-
), D(
|
|
125
|
-
() => o.options,
|
|
126
|
-
(e, l) => {
|
|
127
|
-
L(e.map((t) => t.valueHash)) !== L(l.map((t) => t.valueHash)) && (c.value.calculateRange(), E(), k());
|
|
128
|
-
},
|
|
129
|
-
{
|
|
130
|
-
flush: "post"
|
|
131
|
-
}
|
|
132
|
-
), V({
|
|
133
|
-
focusNext: R,
|
|
134
|
-
focusPrevious: P,
|
|
135
|
-
focusFirst: W,
|
|
136
|
-
focusFirstSelected: J,
|
|
137
|
-
focusLast: q,
|
|
138
|
-
focusLastSelected: Y,
|
|
139
|
-
blur: k,
|
|
140
|
-
confirmOption: w,
|
|
141
|
-
focusByHash: j,
|
|
142
|
-
getHighlighted: Q
|
|
143
|
-
}), (e, l) => (p(), d("span", {
|
|
144
|
-
class: $(["bb-listbox", {
|
|
145
|
-
"bb-listbox--compact": e.compact,
|
|
146
|
-
"bb-listbox--loading": e.loading,
|
|
147
|
-
"bb-listbox--multiple": e.multiple,
|
|
148
|
-
"bb-listbox--no-data": !i.value.length,
|
|
149
|
-
"bb-listbox--open": e.open
|
|
150
|
-
}]),
|
|
151
|
-
style: h({
|
|
152
|
-
"--transition-duration": `${e.transitionDuration}ms`,
|
|
153
|
-
"--overlay-min-height": `${B.value}px`
|
|
154
|
-
}),
|
|
155
|
-
onClick: X(K, ["stop"])
|
|
156
|
-
}, [
|
|
157
|
-
v("span", le, [
|
|
158
|
-
v("span", {
|
|
159
|
-
ref_key: "inner",
|
|
160
|
-
ref: s,
|
|
161
|
-
class: "bb-listbox__inner-container",
|
|
162
|
-
tabindex: "-1"
|
|
163
|
-
}, [
|
|
164
|
-
m(e.$slots, "options:prepend"),
|
|
165
|
-
e.loading && !e.options.length ? (p(), d("span", ie, [
|
|
166
|
-
m(e.$slots, "loading", {}, () => [
|
|
167
|
-
z(g(e.loadingText || H(I)("common.loadingText").value), 1)
|
|
168
|
-
])
|
|
169
|
-
])) : e.options.length ? (p(), d("span", {
|
|
170
|
-
key: 2,
|
|
171
|
-
role: "listbox",
|
|
172
|
-
style: h({
|
|
173
|
-
height: `${A.value}px`
|
|
174
|
-
}),
|
|
175
|
-
tabindex: "-1"
|
|
176
|
-
}, [
|
|
177
|
-
(p(!0), d(Z, null, ee(M.value, (t, r) => (p(), d("span", {
|
|
178
|
-
key: i.value[t.index].value,
|
|
179
|
-
ref_for: !0,
|
|
180
|
-
ref: F,
|
|
181
|
-
"aria-selected": n.value === r ? !0 : void 0,
|
|
182
|
-
class: $({
|
|
183
|
-
"bb-listbox__option autocomplete-option": !0,
|
|
184
|
-
"autocomplete-option--focused": n.value === t.index,
|
|
185
|
-
"autocomplete-option--selected": i.value[t.index].selected,
|
|
186
|
-
"autocomplete-option--disabled": i.value[t.index].disabled
|
|
187
|
-
}),
|
|
188
|
-
"data-index": t.index,
|
|
189
|
-
role: "option",
|
|
190
|
-
style: h({
|
|
191
|
-
transform: `translateY(${t.start}px)`
|
|
192
|
-
})
|
|
193
|
-
}, [
|
|
194
|
-
m(e.$slots, "option", {
|
|
195
|
-
disabled: !!i.value[t.index].disabled,
|
|
196
|
-
focused: n.value === t.index,
|
|
197
|
-
index: t.index,
|
|
198
|
-
item: i.value[t.index].item,
|
|
199
|
-
selected: !!i.value[t.index].selected,
|
|
200
|
-
text: i.value[t.index].text,
|
|
201
|
-
value: i.value[t.index].value
|
|
202
|
-
}, () => [
|
|
203
|
-
l[0] || (l[0] = v("svg", {
|
|
204
|
-
class: "autocomplete-option__checkbox",
|
|
205
|
-
role: "presentation",
|
|
206
|
-
viewBox: "276.411 158.834 114.971 114.97"
|
|
207
|
-
}, [
|
|
208
|
-
v("path", {
|
|
209
|
-
d: "M 297.574 224.786 L 318.309 243.134 L 371.568 189.232",
|
|
210
|
-
fill: "none",
|
|
211
|
-
"stroke-linecap": "round",
|
|
212
|
-
"stroke-width": "14px"
|
|
213
|
-
})
|
|
214
|
-
], -1)),
|
|
215
|
-
v("span", ue, g(i.value[t.index].text), 1)
|
|
216
|
-
])
|
|
217
|
-
], 14, ae))), 128))
|
|
218
|
-
], 4)) : (p(), d("span", se, [
|
|
219
|
-
m(e.$slots, "no-data", {}, () => [
|
|
220
|
-
z(g(e.noDataText || H(I)("common.noDataText").value), 1)
|
|
221
|
-
])
|
|
222
|
-
])),
|
|
223
|
-
m(e.$slots, "options:append")
|
|
224
|
-
], 512)
|
|
225
|
-
])
|
|
226
|
-
], 6));
|
|
227
|
-
}
|
|
228
|
-
});
|
|
1
|
+
function e(n) {
|
|
2
|
+
return n ? n instanceof HTMLElement ? n : typeof n == "object" && "$el" in n && n.$el instanceof HTMLElement ? n.$el : typeof n == "object" && "el" in n && n.el instanceof HTMLElement ? n.el : null : null;
|
|
3
|
+
}
|
|
229
4
|
export {
|
|
230
|
-
|
|
5
|
+
e as extractDomContainer
|
|
231
6
|
};
|
package/dist/index246.js
CHANGED
|
@@ -1,15 +1,25 @@
|
|
|
1
|
-
|
|
2
|
-
const
|
|
3
|
-
|
|
4
|
-
if (r) return t;
|
|
5
|
-
const n = f(
|
|
6
|
-
() => u(e),
|
|
7
|
-
(s) => {
|
|
8
|
-
s && (t.value = o, n());
|
|
9
|
-
}
|
|
10
|
-
);
|
|
11
|
-
return t;
|
|
1
|
+
const i = (t) => {
|
|
2
|
+
const n = t.toString().replace(/\.0+$/, "").replace(/\.$/, "");
|
|
3
|
+
return parseFloat(n) || 0;
|
|
12
4
|
};
|
|
5
|
+
function s(t) {
|
|
6
|
+
if (typeof t == "number")
|
|
7
|
+
return {
|
|
8
|
+
value: i(t),
|
|
9
|
+
unit: "px"
|
|
10
|
+
};
|
|
11
|
+
if (typeof t == "string") {
|
|
12
|
+
const r = /^(-?\d*\.?\d+)([a-zA-Z%]*)?$/, e = t.match(r);
|
|
13
|
+
if (e) {
|
|
14
|
+
const [, n, o = "px"] = e, a = parseFloat(n);
|
|
15
|
+
return {
|
|
16
|
+
value: i(a),
|
|
17
|
+
unit: o
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
throw new Error(`Invalid width: ${t}`);
|
|
22
|
+
}
|
|
13
23
|
export {
|
|
14
|
-
|
|
24
|
+
s as parseWidthString
|
|
15
25
|
};
|
package/dist/index247.js
CHANGED
package/dist/index248.js
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const
|
|
1
|
+
const s = (e, t, o, r) => {
|
|
2
|
+
if (r <= 0) throw new Error("Step must be a positive number");
|
|
3
|
+
if (t > o) throw new Error("Min must be less than or equal to Max");
|
|
4
|
+
const n = Math.max(t, Math.min(o, e)), a = Math.round((n - t) / r);
|
|
5
|
+
return t + a * r;
|
|
6
|
+
};
|
|
5
7
|
export {
|
|
6
|
-
s as
|
|
8
|
+
s as snapToStep
|
|
7
9
|
};
|
package/dist/index249.js
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const
|
|
1
|
+
function o(t, e, n, r, a) {
|
|
2
|
+
if (n === e)
|
|
3
|
+
throw new Error("Original boundaries cannot be equal.");
|
|
4
|
+
const c = (t - e) / (n - e);
|
|
5
|
+
return r + c * (a - r);
|
|
6
|
+
}
|
|
5
7
|
export {
|
|
6
|
-
|
|
8
|
+
o as transpose
|
|
7
9
|
};
|
package/dist/index25.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent as I, mergeModels as M, useModel as W, computed as v, ref as g, watch as N, onMounted as P, createElementBlock as n, openBlock as r, withModifiers as F, normalizeStyle as O, normalizeClass as q, unref as h, createCommentVNode as b, Fragment as A, createElementVNode as a, renderSlot as s, createTextVNode as K, toDisplayString as T, nextTick as R } from "vue";
|
|
2
|
-
import { parseSize as U } from "./
|
|
2
|
+
import { parseSize as U } from "./index239.js";
|
|
3
3
|
import { useId as D } from "./index8.js";
|
|
4
|
-
import { useLocale as j } from "./
|
|
4
|
+
import { useLocale as j } from "./index232.js";
|
|
5
5
|
import { useMobile as G } from "./index9.js";
|
|
6
|
-
import { useUntil as J } from "./
|
|
6
|
+
import { useUntil as J } from "./index240.js";
|
|
7
7
|
import { wait as y } from "./index140.js";
|
|
8
8
|
import { _config as Q } from "./index4.js";
|
|
9
9
|
const X = ["aria-describedby", "aria-labelledby", "aria-live", "inert"], Y = {
|
package/dist/index250.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
var o = e();
|
|
4
|
-
const m = /* @__PURE__ */ r(o);
|
|
1
|
+
import { curry as e } from "./index315.js";
|
|
2
|
+
const t = (n, o, r) => n(r) ? o(r) : r, s = e(t);
|
|
5
3
|
export {
|
|
6
|
-
|
|
4
|
+
t as baseWhen,
|
|
5
|
+
s as when
|
|
7
6
|
};
|
package/dist/index251.js
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { get as o } from "./index282.js";
|
|
2
|
+
const e = () => ({
|
|
3
|
+
getItemValue(n, f) {
|
|
4
|
+
if (typeof f > "u") return n;
|
|
5
|
+
if (typeof f == "function") return f(n);
|
|
6
|
+
if (typeof f == "string") return o(n, f);
|
|
7
|
+
}
|
|
8
|
+
});
|
|
5
9
|
export {
|
|
6
|
-
|
|
10
|
+
e as useItemValue
|
|
7
11
|
};
|
package/dist/index252.js
CHANGED
|
@@ -1,7 +1,31 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
const
|
|
1
|
+
import { ref as a, computed as s, unref as v } from "vue";
|
|
2
|
+
import { useDebounceFn as f } from "./index215.js";
|
|
3
|
+
const p = (u) => {
|
|
4
|
+
const e = a(0), r = s(() => v(u.items)), t = a([]), n = async (...l) => {
|
|
5
|
+
if (Array.isArray(r.value))
|
|
6
|
+
t.value = r.value;
|
|
7
|
+
else if (typeof r.value == "function") {
|
|
8
|
+
const i = ++e.value;
|
|
9
|
+
try {
|
|
10
|
+
const o = await r.value(...l);
|
|
11
|
+
if (i < e.value) {
|
|
12
|
+
e.value--;
|
|
13
|
+
return;
|
|
14
|
+
} else
|
|
15
|
+
t.value = o;
|
|
16
|
+
} catch (o) {
|
|
17
|
+
console.error(o);
|
|
18
|
+
}
|
|
19
|
+
e.value--;
|
|
20
|
+
}
|
|
21
|
+
}, c = f(n, u.debounce || 0);
|
|
22
|
+
return {
|
|
23
|
+
getter: n,
|
|
24
|
+
debouncedGetter: c,
|
|
25
|
+
items: t,
|
|
26
|
+
loading: s(() => !!e.value)
|
|
27
|
+
};
|
|
28
|
+
};
|
|
5
29
|
export {
|
|
6
|
-
|
|
30
|
+
p as useItemsGetter
|
|
7
31
|
};
|
package/dist/index253.js
CHANGED
|
@@ -1,7 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { isNotNil as n } from "./index144.js";
|
|
2
|
+
import { ref as t, onServerPrefetch as u, onBeforeMount as c } from "vue";
|
|
3
|
+
const h = ({
|
|
4
|
+
fn: i,
|
|
5
|
+
onStart: s,
|
|
6
|
+
multiple: f,
|
|
7
|
+
currentValue: o
|
|
8
|
+
}) => {
|
|
9
|
+
const a = s || !f && n(o) || f && !!o.length, e = t(!1), l = t(!1), r = async () => {
|
|
10
|
+
e.value = !0, await i({ prefill: !0 }), e.value = !1, l.value = !0;
|
|
11
|
+
};
|
|
12
|
+
return a && (u(r), c(async () => {
|
|
13
|
+
l.value || await r();
|
|
14
|
+
})), { isPrefilling: e, hasPrefilled: l, prefill: r };
|
|
15
|
+
};
|
|
5
16
|
export {
|
|
6
|
-
|
|
17
|
+
h as usePrefill
|
|
7
18
|
};
|
package/dist/index254.js
CHANGED
|
@@ -1,22 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
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));
|
|
1
|
+
import { computed as u, unref as a } from "vue";
|
|
2
|
+
import { hash as d } from "./index223.js";
|
|
3
|
+
const p = ({
|
|
4
|
+
items: m,
|
|
5
|
+
key: e
|
|
6
|
+
}) => {
|
|
7
|
+
const n = (t) => e ? String(t[e]) : d(t), o = u(() => {
|
|
8
|
+
const t = {}, s = Array.from(a(m) ?? []);
|
|
9
|
+
for (let r = 0; r < s.length; r++) {
|
|
10
|
+
const c = s[r];
|
|
11
|
+
t[n(c)] = c;
|
|
12
|
+
}
|
|
13
|
+
return t;
|
|
14
|
+
});
|
|
15
|
+
return { data: o, get: (t) => o.value[n(t)] };
|
|
19
16
|
};
|
|
20
17
|
export {
|
|
21
|
-
|
|
18
|
+
p as useIndexById
|
|
22
19
|
};
|
package/dist/index255.js
CHANGED
|
@@ -1,35 +1,53 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import { computed as l, unref as o } from "vue";
|
|
2
|
+
import { useItemText as x } from "./index313.js";
|
|
3
|
+
import { useItemValue as w } from "./index251.js";
|
|
4
|
+
import { hash as y } from "./index223.js";
|
|
5
|
+
import { useLogger as D } from "./index226.js";
|
|
6
|
+
const { getItemText: O } = x(), { getItemValue: V } = w(), { warn: H } = D(), T = (u, c, m, a, d, r) => r ? !1 : !!(c || u.disabled || a && d >= a), q = ({
|
|
7
|
+
items: u,
|
|
8
|
+
disabled: c,
|
|
9
|
+
selectable: m,
|
|
10
|
+
itemText: a,
|
|
11
|
+
itemValue: d,
|
|
12
|
+
selectedIndexedByHash: r,
|
|
13
|
+
max: b = 1 / 0
|
|
14
|
+
}) => {
|
|
15
|
+
const v = l(() => o(c)), p = l(() => o(u)), h = l(
|
|
16
|
+
() => Object.keys(r.value).length
|
|
17
|
+
), g = o(b), f = (e) => {
|
|
18
|
+
const n = V(e, o(d)), t = y(n), i = O(e, o(a)), s = r.value[t] !== void 0, I = T(
|
|
19
|
+
e,
|
|
20
|
+
v.value,
|
|
21
|
+
m,
|
|
22
|
+
g,
|
|
23
|
+
h.value,
|
|
24
|
+
s
|
|
25
|
+
);
|
|
26
|
+
return {
|
|
27
|
+
item: e,
|
|
28
|
+
text: i,
|
|
29
|
+
value: n,
|
|
30
|
+
valueHash: t,
|
|
31
|
+
selected: s,
|
|
32
|
+
disabled: o(I)
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
return {
|
|
36
|
+
options: l(() => {
|
|
37
|
+
const e = [], n = /* @__PURE__ */ new Set();
|
|
38
|
+
for (let t = 0; t < p.value.length; t++) {
|
|
39
|
+
const i = p.value[t];
|
|
40
|
+
i.disabled && H(
|
|
41
|
+
"Disabling an item by passing a disabled option to the item itself is deprecated and will be removed in a future version. Use the `disabled` prop or the `selectable` iteratee prop instead."
|
|
42
|
+
);
|
|
43
|
+
const s = f(i);
|
|
44
|
+
n.has(s.valueHash) || (n.add(s.valueHash), e.push(s));
|
|
45
|
+
}
|
|
46
|
+
return e;
|
|
47
|
+
}),
|
|
48
|
+
createOption: f
|
|
49
|
+
};
|
|
9
50
|
};
|
|
10
|
-
function i(c, r) {
|
|
11
|
-
return t(), e("svg", s, r[0] || (r[0] = [
|
|
12
|
-
o("path", {
|
|
13
|
-
d: "M9.99422 18.3333C14.5966 18.3333 18.3276 14.6024 18.3276 9.99999C18.3276 5.39762 14.5966 1.66666 9.99422 1.66666C5.39185 1.66666 1.66089 5.39762 1.66089 9.99999C1.66089 14.6024 5.39185 18.3333 9.99422 18.3333Z",
|
|
14
|
-
fill: "currentColor"
|
|
15
|
-
}, null, -1),
|
|
16
|
-
o("path", {
|
|
17
|
-
d: "M9.99414 6.66666V9.99999",
|
|
18
|
-
stroke: "white",
|
|
19
|
-
"stroke-linecap": "round",
|
|
20
|
-
"stroke-linejoin": "round",
|
|
21
|
-
"stroke-width": "2"
|
|
22
|
-
}, null, -1),
|
|
23
|
-
o("path", {
|
|
24
|
-
d: "M9.99414 13.3333H10.0025",
|
|
25
|
-
stroke: "white",
|
|
26
|
-
"stroke-linecap": "round",
|
|
27
|
-
"stroke-linejoin": "round",
|
|
28
|
-
"stroke-width": "2"
|
|
29
|
-
}, null, -1)
|
|
30
|
-
]));
|
|
31
|
-
}
|
|
32
|
-
const a = /* @__PURE__ */ n(l, [["render", i]]);
|
|
33
51
|
export {
|
|
34
|
-
|
|
52
|
+
q as useBaseOptions
|
|
35
53
|
};
|
package/dist/index256.js
CHANGED
|
@@ -1,30 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
t("svg", {
|
|
13
|
-
viewBox: "0 0 24 24",
|
|
14
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
15
|
-
}, [
|
|
16
|
-
t("path", {
|
|
17
|
-
d: "M12 12l7 7M12 12l-7 -7M12 12l-7 7M12 12l7 -7",
|
|
18
|
-
fill: "none",
|
|
19
|
-
stroke: "currentColor",
|
|
20
|
-
"stroke-linecap": "round",
|
|
21
|
-
"stroke-linejoin": "round",
|
|
22
|
-
"stroke-width": "2"
|
|
23
|
-
})
|
|
24
|
-
], -1)
|
|
25
|
-
]), 8, c));
|
|
26
|
-
}
|
|
27
|
-
});
|
|
1
|
+
import { hash as e } from "./index223.js";
|
|
2
|
+
import { debouncedWatch as s } from "./index215.js";
|
|
3
|
+
const n = (o, c, h) => {
|
|
4
|
+
s(
|
|
5
|
+
o,
|
|
6
|
+
(r, t) => {
|
|
7
|
+
e(r) !== e(t) && c(r, t);
|
|
8
|
+
},
|
|
9
|
+
h
|
|
10
|
+
);
|
|
11
|
+
};
|
|
28
12
|
export {
|
|
29
|
-
|
|
13
|
+
n as useHashedWatcher
|
|
30
14
|
};
|
package/dist/index257.js
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { useLogger as g } from "./index226.js";
|
|
2
|
+
const A = (t, s) => {
|
|
3
|
+
if (!s.length) return;
|
|
4
|
+
const o = Array.from(
|
|
5
|
+
t.querySelectorAll("thead th")
|
|
6
|
+
);
|
|
7
|
+
if (!o.length) return;
|
|
8
|
+
const { error: n } = g(), u = o.length, a = s.reduce((e, r) => {
|
|
9
|
+
const i = typeof r == "number" ? r : r.index, d = typeof r == "number" ? "left" : r.position, l = o[i];
|
|
10
|
+
if (!l)
|
|
11
|
+
return n(
|
|
12
|
+
`BbTable fixedColumns: Cannot affix column at index ${i}. Table has ${u} columns (valid indices: 0–${u - 1}).`
|
|
13
|
+
), e;
|
|
14
|
+
const { width: m } = l.getBoundingClientRect(), y = e.filter((h) => h.position === d).reduce((h, C) => h + C.width, 0);
|
|
15
|
+
return e.push({ index: i, position: d, width: Math.floor(m), offset: y }), e;
|
|
16
|
+
}, []), c = Array.from(t.querySelectorAll("tr")), p = a.map((e) => `:scope > :nth-child(${e.index + 1})`).join(", ");
|
|
17
|
+
c.forEach((e) => {
|
|
18
|
+
Array.from(e.querySelectorAll(p)).forEach((i, d) => {
|
|
19
|
+
const l = a[d];
|
|
20
|
+
l && (i.style.position = "sticky", i.style[l.position] = `${l.offset}px`);
|
|
21
|
+
});
|
|
22
|
+
});
|
|
23
|
+
}, f = (t) => Array.isArray(t) ? t : [t], w = (t) => t.split(/\W+/g).join("_").toLowerCase(), $ = (t, s, o) => {
|
|
24
|
+
const n = [...f(t)];
|
|
25
|
+
return s && n.push(...f(s)), o && n.push(...f(o)), n;
|
|
26
|
+
}, b = (t, s, o, n, u, a) => {
|
|
27
|
+
const c = [...f(t)], p = (e) => typeof e == "function" ? e(n, u, a) : e;
|
|
28
|
+
if (s) {
|
|
29
|
+
const e = p(s);
|
|
30
|
+
e && c.push(...f(e));
|
|
31
|
+
}
|
|
32
|
+
if (o) {
|
|
33
|
+
const e = p(o);
|
|
34
|
+
e && c.push(...f(e));
|
|
35
|
+
}
|
|
36
|
+
return c;
|
|
37
|
+
};
|
|
38
|
+
export {
|
|
39
|
+
A as applyFixedTableColumns,
|
|
40
|
+
w as columnKeyToSlotName,
|
|
41
|
+
b as mergeCellClasses,
|
|
42
|
+
$ as mergeHeaderClasses
|
|
43
|
+
};
|
package/dist/index258.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as a, resolveComponent as o, createBlock as u, openBlock as l, resolveDynamicComponent as m, unref as c, withCtx as p, renderSlot as f } from "vue";
|
|
2
2
|
import { _config as e } from "./index4.js";
|
|
3
|
-
import { useLogger as i } from "./
|
|
4
|
-
import { useFrameworkDetection as k } from "./
|
|
3
|
+
import { useLogger as i } from "./index226.js";
|
|
4
|
+
import { useFrameworkDetection as k } from "./index259.js";
|
|
5
5
|
const y = /* @__PURE__ */ a({
|
|
6
6
|
__name: "RouterComponent",
|
|
7
7
|
setup(g) {
|
package/dist/index259.js
CHANGED
|
@@ -1,4 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
import { getCurrentInstance as e } from "vue";
|
|
2
|
+
const s = () => {
|
|
3
|
+
const t = e(), n = !!t?.proxy?.$inertia, r = !!t?.proxy?.$nuxt;
|
|
4
|
+
return {
|
|
5
|
+
isInertia: n,
|
|
6
|
+
isNuxt: r
|
|
7
|
+
};
|
|
8
|
+
};
|
|
2
9
|
export {
|
|
3
|
-
|
|
10
|
+
s as useFrameworkDetection
|
|
4
11
|
};
|