bitboss-ui 2.0.26 → 2.0.28
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/index106.js +4 -4
- package/dist/index114.js +1 -1
- package/dist/index116.js +5 -5
- package/dist/index118.js +1 -1
- package/dist/index122.js +1 -1
- package/dist/index123.js +1 -1
- package/dist/index124.js +1 -1
- package/dist/index129.js +1 -1
- package/dist/index13.js +1 -1
- package/dist/index15.js +3 -3
- package/dist/index17.js +2 -2
- package/dist/index19.js +14 -14
- package/dist/index200.js +8 -158
- package/dist/index201.js +3 -84
- package/dist/index202.js +5 -0
- package/dist/index203.js +32 -123
- package/dist/index204.js +6 -5
- package/dist/index205.js +7 -123
- package/dist/index206.js +43 -19
- package/dist/index208.js +13 -16
- package/dist/index209.js +281 -2
- package/dist/index21.js +15 -15
- package/dist/index210.js +16 -2
- package/dist/index211.js +16 -35
- package/dist/index212.js +17 -172
- package/dist/index213.js +19 -6
- package/dist/index214.js +27 -43
- package/dist/index215.js +5 -0
- package/dist/index216.js +2 -13
- package/dist/index217.js +249 -5
- package/dist/index218.js +50 -367
- package/dist/index219.js +44 -2
- package/dist/index220.js +5 -4
- package/dist/index221.js +49 -2
- package/dist/index222.js +126 -3
- package/dist/index223.js +123 -7
- package/dist/index224.js +2 -8
- package/dist/index225.js +172 -17
- package/dist/index226.js +5 -27
- package/dist/index227.js +369 -3
- package/dist/index228.js +154 -245
- package/dist/index229.js +77 -45
- package/dist/index23.js +5 -5
- package/dist/index231.js +2 -5
- package/dist/index232.js +4 -49
- package/dist/index233.js +2 -3
- package/dist/index234.js +1 -1
- package/dist/index236.js +1 -1
- package/dist/index238.js +1 -1
- package/dist/index243.js +224 -3
- package/dist/index244.js +3 -12
- package/dist/index245.js +8 -8
- package/dist/index246.js +23 -9
- package/dist/index247.js +6 -17
- package/dist/index248.js +16 -281
- package/dist/index249.js +8 -5
- package/dist/index25.js +1 -1
- package/dist/index250.js +431 -2
- package/dist/index251.js +89 -2
- package/dist/index252.js +3 -2
- package/dist/index254.js +7 -2
- package/dist/index255.js +196 -122
- package/dist/index256.js +5 -430
- package/dist/index257.js +2 -3
- package/dist/index259.js +2 -7
- package/dist/index260.js +2 -22
- package/dist/index262.js +2 -4
- package/dist/index263.js +2 -89
- package/dist/index264.js +1 -5
- package/dist/index265.js +2 -16
- package/dist/index266.js +2 -3
- package/dist/index267.js +27 -8
- package/dist/index268.js +22 -23
- package/dist/index27.js +2 -2
- package/dist/index270.js +2 -200
- package/dist/index271.js +117 -427
- package/dist/index272.js +21 -126
- package/dist/index274.js +3 -2
- package/dist/index275.js +12 -2
- package/dist/index276.js +9 -2
- package/dist/index277.js +9 -2
- package/dist/index278.js +17 -2
- package/dist/index279.js +4 -28
- package/dist/index280.js +435 -21
- package/dist/index281.js +129 -0
- package/dist/index282.js +5 -224
- package/dist/index283.js +65 -2
- package/dist/index284.js +2 -3
- package/dist/index285.js +3 -211
- package/dist/index286.js +3 -5
- package/dist/index287.js +205 -60
- package/dist/index288.js +15 -2
- package/dist/index289.js +79 -11
- package/dist/index29.js +2 -2
- package/dist/index294.js +7 -79
- package/dist/index295.js +9 -0
- package/dist/index296.js +18 -34
- package/dist/index297.js +34 -46
- package/dist/index298.js +10 -6
- package/dist/index299.js +46 -6
- package/dist/index300.js +2 -19
- package/dist/index301.js +480 -2
- package/dist/index303.js +423 -0
- package/dist/index304.js +42 -416
- package/dist/index305.js +2 -47
- package/dist/index31.js +2 -2
- package/dist/index33.js +3 -3
- package/dist/index35.js +9 -9
- package/dist/index37.js +2 -2
- package/dist/index39.js +2 -2
- package/dist/index41.js +2 -2
- package/dist/index43.js +4 -4
- package/dist/index45.js +2 -2
- package/dist/index47.js +2 -2
- package/dist/index53.js +1 -1
- package/dist/index55.js +1 -1
- package/dist/index71.js +3 -3
- package/dist/index75.js +2 -2
- package/dist/index77.js +1 -1
- package/dist/index80.js +2 -2
- package/dist/index82.js +1 -1
- package/dist/index84.js +3 -3
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/index207.js +0 -18
- package/dist/index230.js +0 -46
- package/dist/index269.js +0 -11
- package/dist/index290.js +0 -17
- package/dist/index302.js +0 -482
- package/dist/index306.js +0 -4
- /package/dist/{index253.js → index258.js} +0 -0
- /package/dist/{index273.js → index261.js} +0 -0
package/dist/index304.js
CHANGED
@@ -1,423 +1,49 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
};
|
18
|
-
if (t(e.getBoundingClientRect()), !s.ResizeObserver)
|
19
|
-
return () => {
|
20
|
-
};
|
21
|
-
const i = new s.ResizeObserver((n) => {
|
22
|
-
const o = n[0];
|
23
|
-
if (o != null && o.borderBoxSize) {
|
24
|
-
const l = o.borderBoxSize[0];
|
25
|
-
if (l) {
|
26
|
-
t({ width: l.inlineSize, height: l.blockSize });
|
27
|
-
return;
|
28
|
-
}
|
29
|
-
}
|
30
|
-
t(e.getBoundingClientRect());
|
31
|
-
});
|
32
|
-
return i.observe(e, { box: "border-box" }), () => {
|
33
|
-
i.unobserve(e);
|
34
|
-
};
|
35
|
-
}, M = {
|
36
|
-
passive: !0
|
37
|
-
}, R = typeof window > "u" ? !0 : "onscrollend" in window, F = (r, h) => {
|
38
|
-
const e = r.scrollElement;
|
39
|
-
if (!e)
|
40
|
-
return;
|
41
|
-
const s = r.targetWindow;
|
42
|
-
if (!s)
|
43
|
-
return;
|
44
|
-
let t = 0;
|
45
|
-
const i = R ? () => {
|
46
|
-
} : C(
|
47
|
-
s,
|
48
|
-
() => {
|
49
|
-
h(t, !1);
|
50
|
-
},
|
51
|
-
r.options.isScrollingResetDelay
|
52
|
-
), n = (c) => () => {
|
53
|
-
t = e[r.options.horizontal ? "scrollLeft" : "scrollTop"], i(), h(t, c);
|
54
|
-
}, o = n(!0), l = n(!1);
|
55
|
-
return l(), e.addEventListener("scroll", o, M), e.addEventListener("scrollend", l, M), () => {
|
56
|
-
e.removeEventListener("scroll", o), e.removeEventListener("scrollend", l);
|
57
|
-
};
|
58
|
-
}, k = (r, h, e) => {
|
59
|
-
if (h != null && h.borderBoxSize) {
|
60
|
-
const s = h.borderBoxSize[0];
|
61
|
-
if (s)
|
62
|
-
return Math.round(
|
63
|
-
s[e.options.horizontal ? "inlineSize" : "blockSize"]
|
64
|
-
);
|
65
|
-
}
|
66
|
-
return Math.round(
|
67
|
-
r.getBoundingClientRect()[e.options.horizontal ? "width" : "height"]
|
68
|
-
);
|
69
|
-
}, N = (r, {
|
70
|
-
adjustments: h = 0,
|
71
|
-
behavior: e
|
72
|
-
}, s) => {
|
73
|
-
var t, i;
|
74
|
-
const n = r + h;
|
75
|
-
(i = (t = s.scrollElement) == null ? void 0 : t.scrollTo) == null || i.call(t, {
|
76
|
-
[s.options.horizontal ? "left" : "top"]: n,
|
77
|
-
behavior: e
|
78
|
-
});
|
79
|
-
};
|
80
|
-
class j {
|
81
|
-
constructor(h) {
|
82
|
-
this.unsubs = [], this.scrollElement = null, this.targetWindow = null, this.isScrolling = !1, this.scrollToIndexTimeoutId = null, this.measurementsCache = [], this.itemSizeCache = /* @__PURE__ */ new Map(), this.pendingMeasuredCacheIndexes = [], this.scrollRect = null, this.scrollOffset = null, this.scrollDirection = null, this.scrollAdjustments = 0, this.elementsCache = /* @__PURE__ */ new Map(), this.observer = /* @__PURE__ */ (() => {
|
83
|
-
let e = null;
|
84
|
-
const s = () => e || (!this.targetWindow || !this.targetWindow.ResizeObserver ? null : e = new this.targetWindow.ResizeObserver((t) => {
|
85
|
-
t.forEach((i) => {
|
86
|
-
this._measureElement(i.target, i);
|
87
|
-
});
|
88
|
-
}));
|
89
|
-
return {
|
90
|
-
disconnect: () => {
|
91
|
-
var t;
|
92
|
-
return (t = s()) == null ? void 0 : t.disconnect();
|
93
|
-
},
|
94
|
-
observe: (t) => {
|
95
|
-
var i;
|
96
|
-
return (i = s()) == null ? void 0 : i.observe(t, { box: "border-box" });
|
97
|
-
},
|
98
|
-
unobserve: (t) => {
|
99
|
-
var i;
|
100
|
-
return (i = s()) == null ? void 0 : i.unobserve(t);
|
101
|
-
}
|
102
|
-
};
|
103
|
-
})(), this.range = null, this.setOptions = (e) => {
|
104
|
-
Object.entries(e).forEach(([s, t]) => {
|
105
|
-
typeof t > "u" && delete e[s];
|
106
|
-
}), this.options = {
|
107
|
-
debug: !1,
|
108
|
-
initialOffset: 0,
|
109
|
-
overscan: 1,
|
110
|
-
paddingStart: 0,
|
111
|
-
paddingEnd: 0,
|
112
|
-
scrollPaddingStart: 0,
|
113
|
-
scrollPaddingEnd: 0,
|
114
|
-
horizontal: !1,
|
115
|
-
getItemKey: T,
|
116
|
-
rangeExtractor: _,
|
117
|
-
onChange: () => {
|
118
|
-
},
|
119
|
-
measureElement: k,
|
120
|
-
initialRect: { width: 0, height: 0 },
|
121
|
-
scrollMargin: 0,
|
122
|
-
gap: 0,
|
123
|
-
indexAttribute: "data-index",
|
124
|
-
initialMeasurementsCache: [],
|
125
|
-
lanes: 1,
|
126
|
-
isScrollingResetDelay: 150,
|
127
|
-
enabled: !0,
|
128
|
-
...e
|
1
|
+
function D(n, l, e) {
|
2
|
+
let i = e.initialDeps ?? [], t;
|
3
|
+
return () => {
|
4
|
+
var r, c, h, m;
|
5
|
+
let f;
|
6
|
+
e.key && ((r = e.debug) != null && r.call(e)) && (f = Date.now());
|
7
|
+
const o = n();
|
8
|
+
if (!(o.length !== i.length || o.some((a, u) => i[u] !== a)))
|
9
|
+
return t;
|
10
|
+
i = o;
|
11
|
+
let g;
|
12
|
+
if (e.key && ((c = e.debug) != null && c.call(e)) && (g = Date.now()), t = l(...o), e.key && ((h = e.debug) != null && h.call(e))) {
|
13
|
+
const a = Math.round((Date.now() - f) * 100) / 100, u = Math.round((Date.now() - g) * 100) / 100, w = u / 16, s = (d, b) => {
|
14
|
+
for (d = String(d); d.length < b; )
|
15
|
+
d = " " + d;
|
16
|
+
return d;
|
129
17
|
};
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
this.cleanup();
|
141
|
-
}, this._willUpdate = () => {
|
142
|
-
var e;
|
143
|
-
const s = this.options.enabled ? this.options.getScrollElement() : null;
|
144
|
-
if (this.scrollElement !== s) {
|
145
|
-
if (this.cleanup(), !s) {
|
146
|
-
this.notify(!1, !1);
|
147
|
-
return;
|
148
|
-
}
|
149
|
-
this.scrollElement = s, this.scrollElement && "ownerDocument" in this.scrollElement ? this.targetWindow = this.scrollElement.ownerDocument.defaultView : this.targetWindow = ((e = this.scrollElement) == null ? void 0 : e.window) ?? null, this._scrollToOffset(this.getScrollOffset(), {
|
150
|
-
adjustments: void 0,
|
151
|
-
behavior: void 0
|
152
|
-
}), this.unsubs.push(
|
153
|
-
this.options.observeElementRect(this, (t) => {
|
154
|
-
this.scrollRect = t, this.notify(!1, !1);
|
155
|
-
})
|
156
|
-
), this.unsubs.push(
|
157
|
-
this.options.observeElementOffset(this, (t, i) => {
|
158
|
-
this.scrollAdjustments = 0, this.scrollDirection = i ? this.getScrollOffset() < t ? "forward" : "backward" : null, this.scrollOffset = t;
|
159
|
-
const n = this.isScrolling;
|
160
|
-
this.isScrolling = i, this.notify(n !== i, i);
|
161
|
-
})
|
162
|
-
);
|
163
|
-
}
|
164
|
-
}, this.getSize = () => this.options.enabled ? (this.scrollRect = this.scrollRect ?? this.options.initialRect, this.scrollRect[this.options.horizontal ? "width" : "height"]) : (this.scrollRect = null, 0), this.getScrollOffset = () => this.options.enabled ? (this.scrollOffset = this.scrollOffset ?? (typeof this.options.initialOffset == "function" ? this.options.initialOffset() : this.options.initialOffset), this.scrollOffset) : (this.scrollOffset = null, 0), this.getFurthestMeasurement = (e, s) => {
|
165
|
-
const t = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map();
|
166
|
-
for (let n = s - 1; n >= 0; n--) {
|
167
|
-
const o = e[n];
|
168
|
-
if (t.has(o.lane))
|
169
|
-
continue;
|
170
|
-
const l = i.get(
|
171
|
-
o.lane
|
172
|
-
);
|
173
|
-
if (l == null || o.end > l.end ? i.set(o.lane, o) : o.end < l.end && t.set(o.lane, !0), t.size === this.options.lanes)
|
174
|
-
break;
|
175
|
-
}
|
176
|
-
return i.size === this.options.lanes ? Array.from(i.values()).sort((n, o) => n.end === o.end ? n.index - o.index : n.end - o.end)[0] : void 0;
|
177
|
-
}, this.getMeasurementOptions = f(
|
178
|
-
() => [
|
179
|
-
this.options.count,
|
180
|
-
this.options.paddingStart,
|
181
|
-
this.options.scrollMargin,
|
182
|
-
this.options.getItemKey,
|
183
|
-
this.options.enabled
|
184
|
-
],
|
185
|
-
(e, s, t, i, n) => (this.pendingMeasuredCacheIndexes = [], {
|
186
|
-
count: e,
|
187
|
-
paddingStart: s,
|
188
|
-
scrollMargin: t,
|
189
|
-
getItemKey: i,
|
190
|
-
enabled: n
|
191
|
-
}),
|
192
|
-
{
|
193
|
-
key: !1
|
194
|
-
}
|
195
|
-
), this.getMeasurements = f(
|
196
|
-
() => [this.getMeasurementOptions(), this.itemSizeCache],
|
197
|
-
({ count: e, paddingStart: s, scrollMargin: t, getItemKey: i, enabled: n }, o) => {
|
198
|
-
var l;
|
199
|
-
if (!n)
|
200
|
-
return this.measurementsCache = [], this.itemSizeCache.clear(), [];
|
201
|
-
this.measurementsCache.length === 0 && (this.measurementsCache = this.options.initialMeasurementsCache, this.measurementsCache.forEach((a) => {
|
202
|
-
this.itemSizeCache.set(a.key, a.size);
|
203
|
-
}));
|
204
|
-
const c = this.pendingMeasuredCacheIndexes.length > 0 ? Math.min(...this.pendingMeasuredCacheIndexes) : 0;
|
205
|
-
this.pendingMeasuredCacheIndexes = [];
|
206
|
-
const d = this.measurementsCache.slice(0, c);
|
207
|
-
for (let a = c; a < e; a++) {
|
208
|
-
let p = (l = this.measurementsCache[a]) == null ? void 0 : l.measureElement;
|
209
|
-
p || (p = (u) => {
|
210
|
-
const v = i(a), m = this.elementsCache.get(v);
|
211
|
-
if (!u) {
|
212
|
-
m && (this.observer.unobserve(m), this.elementsCache.delete(v));
|
213
|
-
return;
|
214
|
-
}
|
215
|
-
m !== u && (m && this.observer.unobserve(m), this.observer.observe(u), this.elementsCache.set(v, u)), u.isConnected && this.resizeItem(
|
216
|
-
a,
|
217
|
-
this.options.measureElement(u, void 0, this)
|
218
|
-
);
|
219
|
-
});
|
220
|
-
const x = i(a), g = this.options.lanes === 1 ? d[a - 1] : this.getFurthestMeasurement(d, a), E = g ? g.end + this.options.gap : s + t, I = o.get(x), S = typeof I == "number" ? I : this.options.estimateSize(a), O = E + S, w = g ? g.lane : a % this.options.lanes;
|
221
|
-
d[a] = {
|
222
|
-
index: a,
|
223
|
-
start: E,
|
224
|
-
size: S,
|
225
|
-
end: O,
|
226
|
-
key: x,
|
227
|
-
lane: w,
|
228
|
-
measureElement: p
|
229
|
-
};
|
230
|
-
}
|
231
|
-
return this.measurementsCache = d, d;
|
232
|
-
},
|
233
|
-
{
|
234
|
-
key: process.env.NODE_ENV !== "production" && "getMeasurements",
|
235
|
-
debug: () => this.options.debug
|
236
|
-
}
|
237
|
-
), this.calculateRange = f(
|
238
|
-
() => [this.getMeasurements(), this.getSize(), this.getScrollOffset()],
|
239
|
-
(e, s, t) => this.range = e.length > 0 && s > 0 ? D({
|
240
|
-
measurements: e,
|
241
|
-
outerSize: s,
|
242
|
-
scrollOffset: t
|
243
|
-
}) : null,
|
244
|
-
{
|
245
|
-
key: process.env.NODE_ENV !== "production" && "calculateRange",
|
246
|
-
debug: () => this.options.debug
|
247
|
-
}
|
248
|
-
), this.getIndexes = f(
|
249
|
-
() => [
|
250
|
-
this.options.rangeExtractor,
|
251
|
-
this.calculateRange(),
|
252
|
-
this.options.overscan,
|
253
|
-
this.options.count
|
254
|
-
],
|
255
|
-
(e, s, t, i) => s === null ? [] : e({
|
256
|
-
startIndex: s.startIndex,
|
257
|
-
endIndex: s.endIndex,
|
258
|
-
overscan: t,
|
259
|
-
count: i
|
260
|
-
}),
|
261
|
-
{
|
262
|
-
key: process.env.NODE_ENV !== "production" && "getIndexes",
|
263
|
-
debug: () => this.options.debug
|
264
|
-
}
|
265
|
-
), this.indexFromElement = (e) => {
|
266
|
-
const s = this.options.indexAttribute, t = e.getAttribute(s);
|
267
|
-
return t ? parseInt(t, 10) : (console.warn(
|
268
|
-
`Missing attribute name '${s}={index}' on measured element.`
|
269
|
-
), -1);
|
270
|
-
}, this._measureElement = (e, s) => {
|
271
|
-
const t = this.indexFromElement(e), i = this.getMeasurements()[t];
|
272
|
-
if (!i || !e.isConnected) {
|
273
|
-
this.elementsCache.forEach((o, l) => {
|
274
|
-
o === e && (this.observer.unobserve(e), this.elementsCache.delete(l));
|
275
|
-
});
|
276
|
-
return;
|
277
|
-
}
|
278
|
-
const n = this.elementsCache.get(i.key);
|
279
|
-
n !== e && (n && this.observer.unobserve(n), this.observer.observe(e), this.elementsCache.set(i.key, e)), this.resizeItem(t, this.options.measureElement(e, s, this));
|
280
|
-
}, this.resizeItem = (e, s) => {
|
281
|
-
const t = this.getMeasurements()[e];
|
282
|
-
if (!t)
|
283
|
-
return;
|
284
|
-
const i = this.itemSizeCache.get(t.key) ?? t.size, n = s - i;
|
285
|
-
n !== 0 && ((this.shouldAdjustScrollPositionOnItemSizeChange !== void 0 ? this.shouldAdjustScrollPositionOnItemSizeChange(t, n, this) : t.start < this.getScrollOffset() + this.scrollAdjustments) && (process.env.NODE_ENV !== "production" && this.options.debug && console.info("correction", n), this._scrollToOffset(this.getScrollOffset(), {
|
286
|
-
adjustments: this.scrollAdjustments += n,
|
287
|
-
behavior: void 0
|
288
|
-
})), this.pendingMeasuredCacheIndexes.push(t.index), this.itemSizeCache = new Map(this.itemSizeCache.set(t.key, s)), this.notify(!0, !1));
|
289
|
-
}, this.measureElement = (e) => {
|
290
|
-
e && this._measureElement(e, void 0);
|
291
|
-
}, this.getVirtualItems = f(
|
292
|
-
() => [this.getIndexes(), this.getMeasurements()],
|
293
|
-
(e, s) => {
|
294
|
-
const t = [];
|
295
|
-
for (let i = 0, n = e.length; i < n; i++) {
|
296
|
-
const o = e[i], l = s[o];
|
297
|
-
t.push(l);
|
298
|
-
}
|
299
|
-
return t;
|
300
|
-
},
|
301
|
-
{
|
302
|
-
key: process.env.NODE_ENV !== "production" && "getIndexes",
|
303
|
-
debug: () => this.options.debug
|
304
|
-
}
|
305
|
-
), this.getVirtualItemForOffset = (e) => {
|
306
|
-
const s = this.getMeasurements();
|
307
|
-
if (s.length !== 0)
|
308
|
-
return b(
|
309
|
-
s[z(
|
310
|
-
0,
|
311
|
-
s.length - 1,
|
312
|
-
(t) => b(s[t]).start,
|
313
|
-
e
|
314
|
-
)]
|
315
|
-
);
|
316
|
-
}, this.getOffsetForAlignment = (e, s) => {
|
317
|
-
const t = this.getSize(), i = this.getScrollOffset();
|
318
|
-
s === "auto" && (e <= i ? s = "start" : e >= i + t ? s = "end" : s = "start"), s === "start" ? e = e : s === "end" ? e = e - t : s === "center" && (e = e - t / 2);
|
319
|
-
const n = this.options.horizontal ? "scrollWidth" : "scrollHeight", l = (this.scrollElement ? "document" in this.scrollElement ? this.scrollElement.document.documentElement[n] : this.scrollElement[n] : 0) - t;
|
320
|
-
return Math.max(Math.min(l, e), 0);
|
321
|
-
}, this.getOffsetForIndex = (e, s = "auto") => {
|
322
|
-
e = Math.max(0, Math.min(e, this.options.count - 1));
|
323
|
-
const t = this.getMeasurements()[e];
|
324
|
-
if (!t)
|
325
|
-
return;
|
326
|
-
const i = this.getSize(), n = this.getScrollOffset();
|
327
|
-
if (s === "auto")
|
328
|
-
if (t.end >= n + i - this.options.scrollPaddingEnd)
|
329
|
-
s = "end";
|
330
|
-
else if (t.start <= n + this.options.scrollPaddingStart)
|
331
|
-
s = "start";
|
332
|
-
else
|
333
|
-
return [n, s];
|
334
|
-
const o = s === "end" ? t.end + this.options.scrollPaddingEnd : t.start - this.options.scrollPaddingStart;
|
335
|
-
return [this.getOffsetForAlignment(o, s), s];
|
336
|
-
}, this.isDynamicMode = () => this.elementsCache.size > 0, this.cancelScrollToIndex = () => {
|
337
|
-
this.scrollToIndexTimeoutId !== null && this.targetWindow && (this.targetWindow.clearTimeout(this.scrollToIndexTimeoutId), this.scrollToIndexTimeoutId = null);
|
338
|
-
}, this.scrollToOffset = (e, { align: s = "start", behavior: t } = {}) => {
|
339
|
-
this.cancelScrollToIndex(), t === "smooth" && this.isDynamicMode() && console.warn(
|
340
|
-
"The `smooth` scroll behavior is not fully supported with dynamic size."
|
341
|
-
), this._scrollToOffset(this.getOffsetForAlignment(e, s), {
|
342
|
-
adjustments: void 0,
|
343
|
-
behavior: t
|
344
|
-
});
|
345
|
-
}, this.scrollToIndex = (e, { align: s = "auto", behavior: t } = {}) => {
|
346
|
-
e = Math.max(0, Math.min(e, this.options.count - 1)), this.cancelScrollToIndex(), t === "smooth" && this.isDynamicMode() && console.warn(
|
347
|
-
"The `smooth` scroll behavior is not fully supported with dynamic size."
|
18
|
+
console.info(
|
19
|
+
`%c⏱ ${s(u, 5)} /${s(a, 5)} ms`,
|
20
|
+
`
|
21
|
+
font-size: .6rem;
|
22
|
+
font-weight: bold;
|
23
|
+
color: hsl(${Math.max(
|
24
|
+
0,
|
25
|
+
Math.min(120 - 120 * w, 120)
|
26
|
+
)}deg 100% 31%);`,
|
27
|
+
e == null ? void 0 : e.key
|
348
28
|
);
|
349
|
-
|
350
|
-
|
351
|
-
|
352
|
-
this._scrollToOffset(n, { adjustments: void 0, behavior: t }), t !== "smooth" && this.isDynamicMode() && this.targetWindow && (this.scrollToIndexTimeoutId = this.targetWindow.setTimeout(() => {
|
353
|
-
if (this.scrollToIndexTimeoutId = null, this.elementsCache.has(
|
354
|
-
this.options.getItemKey(e)
|
355
|
-
)) {
|
356
|
-
const [c] = b(
|
357
|
-
this.getOffsetForIndex(e, o)
|
358
|
-
);
|
359
|
-
y(c, this.getScrollOffset()) || this.scrollToIndex(e, { align: o, behavior: t });
|
360
|
-
} else
|
361
|
-
this.scrollToIndex(e, { align: o, behavior: t });
|
362
|
-
}));
|
363
|
-
}, this.scrollBy = (e, { behavior: s } = {}) => {
|
364
|
-
this.cancelScrollToIndex(), s === "smooth" && this.isDynamicMode() && console.warn(
|
365
|
-
"The `smooth` scroll behavior is not fully supported with dynamic size."
|
366
|
-
), this._scrollToOffset(this.getScrollOffset() + e, {
|
367
|
-
adjustments: void 0,
|
368
|
-
behavior: s
|
369
|
-
});
|
370
|
-
}, this.getTotalSize = () => {
|
371
|
-
var e;
|
372
|
-
const s = this.getMeasurements();
|
373
|
-
let t;
|
374
|
-
return s.length === 0 ? t = this.options.paddingStart : t = this.options.lanes === 1 ? ((e = s[s.length - 1]) == null ? void 0 : e.end) ?? 0 : Math.max(
|
375
|
-
...s.slice(-this.options.lanes).map((i) => i.end)
|
376
|
-
), t - this.options.scrollMargin + this.options.paddingEnd;
|
377
|
-
}, this._scrollToOffset = (e, {
|
378
|
-
adjustments: s,
|
379
|
-
behavior: t
|
380
|
-
}) => {
|
381
|
-
this.options.scrollToFn(e, { behavior: t, adjustments: s }, this);
|
382
|
-
}, this.measure = () => {
|
383
|
-
var e, s;
|
384
|
-
this.itemSizeCache = /* @__PURE__ */ new Map(), (s = (e = this.options).onChange) == null || s.call(e, this, !1);
|
385
|
-
}, this.setOptions(h);
|
386
|
-
}
|
29
|
+
}
|
30
|
+
return (m = e == null ? void 0 : e.onChange) == null || m.call(e, t), t;
|
31
|
+
};
|
387
32
|
}
|
388
|
-
|
389
|
-
|
390
|
-
|
391
|
-
|
392
|
-
r = t + 1;
|
393
|
-
else if (i > s)
|
394
|
-
h = t - 1;
|
395
|
-
else
|
396
|
-
return t;
|
397
|
-
}
|
398
|
-
return r > 0 ? r - 1 : 0;
|
399
|
-
};
|
400
|
-
function D({
|
401
|
-
measurements: r,
|
402
|
-
outerSize: h,
|
403
|
-
scrollOffset: e
|
404
|
-
}) {
|
405
|
-
const s = r.length - 1, i = z(0, s, (o) => r[o].start, e);
|
406
|
-
let n = i;
|
407
|
-
for (; n < s && r[n].end < e + h; )
|
408
|
-
n++;
|
409
|
-
return { startIndex: i, endIndex: n };
|
33
|
+
function T(n, l) {
|
34
|
+
if (n === void 0)
|
35
|
+
throw new Error("Unexpected undefined");
|
36
|
+
return n;
|
410
37
|
}
|
38
|
+
const y = (n, l) => Math.abs(n - l) < 1, M = (n, l, e) => {
|
39
|
+
let i;
|
40
|
+
return function(...t) {
|
41
|
+
n.clearTimeout(i), i = n.setTimeout(() => l.apply(this, t), e);
|
42
|
+
};
|
43
|
+
};
|
411
44
|
export {
|
412
|
-
j as Virtualizer,
|
413
45
|
y as approxEqual,
|
414
|
-
|
415
|
-
|
416
|
-
|
417
|
-
N as elementScroll,
|
418
|
-
k as measureElement,
|
419
|
-
f as memo,
|
420
|
-
b as notUndefined,
|
421
|
-
F as observeElementOffset,
|
422
|
-
A as observeElementRect
|
46
|
+
M as debounce,
|
47
|
+
D as memo,
|
48
|
+
T as notUndefined
|
423
49
|
};
|
package/dist/index305.js
CHANGED
@@ -1,49 +1,4 @@
|
|
1
|
-
|
2
|
-
let i = e.initialDeps ?? [], t;
|
3
|
-
return () => {
|
4
|
-
var r, c, h, m;
|
5
|
-
let f;
|
6
|
-
e.key && ((r = e.debug) != null && r.call(e)) && (f = Date.now());
|
7
|
-
const o = n();
|
8
|
-
if (!(o.length !== i.length || o.some((a, u) => i[u] !== a)))
|
9
|
-
return t;
|
10
|
-
i = o;
|
11
|
-
let g;
|
12
|
-
if (e.key && ((c = e.debug) != null && c.call(e)) && (g = Date.now()), t = l(...o), e.key && ((h = e.debug) != null && h.call(e))) {
|
13
|
-
const a = Math.round((Date.now() - f) * 100) / 100, u = Math.round((Date.now() - g) * 100) / 100, w = u / 16, s = (d, b) => {
|
14
|
-
for (d = String(d); d.length < b; )
|
15
|
-
d = " " + d;
|
16
|
-
return d;
|
17
|
-
};
|
18
|
-
console.info(
|
19
|
-
`%c⏱ ${s(u, 5)} /${s(a, 5)} ms`,
|
20
|
-
`
|
21
|
-
font-size: .6rem;
|
22
|
-
font-weight: bold;
|
23
|
-
color: hsl(${Math.max(
|
24
|
-
0,
|
25
|
-
Math.min(120 - 120 * w, 120)
|
26
|
-
)}deg 100% 31%);`,
|
27
|
-
e == null ? void 0 : e.key
|
28
|
-
);
|
29
|
-
}
|
30
|
-
return (m = e == null ? void 0 : e.onChange) == null || m.call(e, t), t;
|
31
|
-
};
|
32
|
-
}
|
33
|
-
function T(n, l) {
|
34
|
-
if (n === void 0)
|
35
|
-
throw new Error("Unexpected undefined");
|
36
|
-
return n;
|
37
|
-
}
|
38
|
-
const y = (n, l) => Math.abs(n - l) < 1, M = (n, l, e) => {
|
39
|
-
let i;
|
40
|
-
return function(...t) {
|
41
|
-
n.clearTimeout(i), i = n.setTimeout(() => l.apply(this, t), e);
|
42
|
-
};
|
43
|
-
};
|
1
|
+
var e = { exports: {} };
|
44
2
|
export {
|
45
|
-
|
46
|
-
M as debounce,
|
47
|
-
D as memo,
|
48
|
-
T as notUndefined
|
3
|
+
e as __module
|
49
4
|
};
|
package/dist/index31.js
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
import { defineComponent as L, ref as m, toRef as l, openBlock as E, createBlock as $, unref as p, withCtx as t, renderSlot as i, normalizeProps as f, guardReactiveProps as b, createVNode as B, mergeProps as v, createSlots as C } from "vue";
|
2
|
-
import { useOptions as w } from "./
|
2
|
+
import { useOptions as w } from "./index228.js";
|
3
3
|
import q from "./index29.js";
|
4
4
|
/* empty css */
|
5
|
-
import z from "./
|
5
|
+
import z from "./index229.js";
|
6
6
|
/* empty css */
|
7
7
|
const N = /* @__PURE__ */ L({
|
8
8
|
__name: "BaseRadioGroup",
|
package/dist/index33.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import { defineComponent as C, ref as g, computed as f, openBlock as l, createElementBlock as i, mergeProps as h, createElementVNode as r, renderSlot as p, Fragment as I, renderList as V, normalizeClass as B, toDisplayString as M } from "vue";
|
2
|
-
import { booleanishToBoolean as D } from "./
|
3
|
-
import { identity as F } from "./
|
4
|
-
import { isCssColor as v } from "./
|
2
|
+
import { booleanishToBoolean as D } from "./index233.js";
|
3
|
+
import { identity as F } from "./index224.js";
|
4
|
+
import { isCssColor as v } from "./index231.js";
|
5
5
|
import { isNotNil as T } from "./index130.js";
|
6
6
|
const $ = { class: "bb-base-rating__inner-container" }, q = { class: "bb-base-rating__label-text sr-only" }, x = ["id", "aria-describedby", "autofocus", "checked", "disabled", "name", "required", "value"], H = ["height", "width"], N = /* @__PURE__ */ r("path", {
|
7
7
|
d: "m8.243 7.34l-6.38.925l-.113.023a1 1 0 0 0-.44 1.684l4.622 4.499l-1.09 6.355l-.013.11a1 1 0 0 0 1.464.944l5.706-3l5.693 3l.1.046a1 1 0 0 0 1.352-1.1l-1.091-6.355l4.624-4.5l.078-.085a1 1 0 0 0-.633-1.62l-6.38-.926l-2.852-5.78a1 1 0 0 0-1.794 0L8.243 7.34z",
|
package/dist/index35.js
CHANGED
@@ -6,23 +6,23 @@ import { useMobile as We } from "./index9.js";
|
|
6
6
|
import Re from "./index123.js";
|
7
7
|
/* empty css */
|
8
8
|
import { isNotNil as Je } from "./index130.js";
|
9
|
-
import { last as Ye } from "./
|
9
|
+
import { last as Ye } from "./index216.js";
|
10
10
|
import { matchAnyKey as j } from "./index235.js";
|
11
|
-
import { useFloating as je } from "./
|
11
|
+
import { useFloating as je } from "./index222.js";
|
12
12
|
import { useIntersectionObserver as Ge } from "./index128.js";
|
13
|
-
import { useLogger as Xe } from "./
|
14
|
-
import { useOptions as Ze } from "./
|
13
|
+
import { useLogger as Xe } from "./index200.js";
|
14
|
+
import { useOptions as Ze } from "./index228.js";
|
15
15
|
import { wait as T } from "./index127.js";
|
16
|
-
import { when as et } from "./
|
16
|
+
import { when as et } from "./index232.js";
|
17
17
|
import tt from "./index236.js";
|
18
18
|
/* empty css */
|
19
19
|
import ot from "./index238.js";
|
20
20
|
/* empty css */
|
21
|
-
import nt from "./
|
21
|
+
import nt from "./index206.js";
|
22
22
|
/* empty css */
|
23
|
-
import lt from "./
|
24
|
-
import { waitFor as at } from "./
|
25
|
-
import { autoUpdate as it, flip as rt, offset as st, shift as ut } from "./
|
23
|
+
import lt from "./index208.js";
|
24
|
+
import { waitFor as at } from "./index204.js";
|
25
|
+
import { autoUpdate as it, flip as rt, offset as st, shift as ut } from "./index227.js";
|
26
26
|
const pt = { class: "bb-base-select__input-container" }, ct = ["id", "aria-controls", "aria-describedby", "aria-expanded", "autocomplete", "autofocus", "disabled", "inputmode", "placeholder", "readonly", "required", "onKeydown"], dt = /* @__PURE__ */ S("svg", {
|
27
27
|
class: "bb-base-select__chevron",
|
28
28
|
viewBox: "0 0 24 24",
|
package/dist/index37.js
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
import { defineComponent as U, ref as d, computed as h, onMounted as W, watch as Z, openBlock as g, createElementBlock as w, mergeProps as T, renderSlot as f, createElementVNode as b, Fragment as ee, renderList as ae, createCommentVNode as H, normalizeProps as re, guardReactiveProps as te, unref as c, normalizeClass as F, normalizeStyle as I } from "vue";
|
2
2
|
import { clamp as le } from "./index199.js";
|
3
3
|
import { head as O } from "./index240.js";
|
4
|
-
import { isCssColor as Y } from "./
|
4
|
+
import { isCssColor as Y } from "./index231.js";
|
5
5
|
import { isNil as P } from "./index125.js";
|
6
6
|
import { isNotNil as ne } from "./index130.js";
|
7
7
|
import { transposeValue as y } from "./index126.js";
|
8
|
-
import { hash as J } from "./
|
8
|
+
import { hash as J } from "./index215.js";
|
9
9
|
const oe = { class: "bb-base-slider__slider-container" }, ie = {
|
10
10
|
key: 0,
|
11
11
|
class: "bb-base-slider__ticks-container"
|
package/dist/index39.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { defineComponent as I, ref as p, computed as n, watch as S, openBlock as h, createElementBlock as f, normalizeProps as r, guardReactiveProps as c, mergeProps as y, createCommentVNode as q, createElementVNode as l, renderSlot as A } from "vue";
|
2
|
-
import { isCssColor as d } from "./
|
3
|
-
import { when as F } from "./
|
2
|
+
import { isCssColor as d } from "./index231.js";
|
3
|
+
import { when as F } from "./index232.js";
|
4
4
|
const N = { class: "bb-base-switch-container" }, x = /* @__PURE__ */ l("span", { class: "bb-base-switch-container__icon-thumb" }, null, -1), J = [
|
5
5
|
x
|
6
6
|
], L = /* @__PURE__ */ I({
|
package/dist/index41.js
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
import { defineComponent as $, ref as p, toRef as l, openBlock as w, createBlock as B, unref as f, withCtx as i, renderSlot as s, normalizeProps as b, guardReactiveProps as h, createVNode as O, mergeProps as v, createSlots as z } from "vue";
|
2
|
-
import { useOptions as F } from "./
|
2
|
+
import { useOptions as F } from "./index228.js";
|
3
3
|
import M from "./index39.js";
|
4
4
|
/* empty css */
|
5
|
-
import S from "./
|
5
|
+
import S from "./index229.js";
|
6
6
|
/* empty css */
|
7
7
|
const I = /* @__PURE__ */ $({
|
8
8
|
__name: "BaseSwitchGroup",
|
package/dist/index43.js
CHANGED
@@ -4,15 +4,15 @@ import { defineComponent as Y, ref as r, computed as k, toRef as B, openBlock as
|
|
4
4
|
import ue from "./index123.js";
|
5
5
|
/* empty css */
|
6
6
|
import { isNotNil as se } from "./index130.js";
|
7
|
-
import { last as de } from "./
|
8
|
-
import { useOptions as pe } from "./
|
7
|
+
import { last as de } from "./index216.js";
|
8
|
+
import { useOptions as pe } from "./index228.js";
|
9
9
|
import ce from "./index236.js";
|
10
10
|
/* empty css */
|
11
11
|
import me from "./index238.js";
|
12
12
|
/* empty css */
|
13
|
-
import fe from "./
|
13
|
+
import fe from "./index206.js";
|
14
14
|
/* empty css */
|
15
|
-
import ve from "./
|
15
|
+
import ve from "./index208.js";
|
16
16
|
const ye = { class: "bb-base-tag__input-container" }, be = ["id", "aria-describedby", "autocomplete", "autofocus", "disabled", "placeholder", "readonly", "required", "onKeydown"], Ne = /* @__PURE__ */ Y({
|
17
17
|
__name: "BaseTag",
|
18
18
|
props: {
|
package/dist/index45.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { defineComponent as w, ref as g, computed as u, onMounted as y, watch as V, nextTick as k, openBlock as x, createBlock as B, normalizeClass as $, withCtx as r, renderSlot as t, createVNode as i, createElementVNode as C, mergeProps as T } from "vue";
|
2
|
-
import v from "./
|
3
|
-
import E from "./
|
2
|
+
import v from "./index208.js";
|
3
|
+
import E from "./index206.js";
|
4
4
|
/* empty css */
|
5
5
|
import G from "./index123.js";
|
6
6
|
/* empty css */
|
package/dist/index47.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import { defineComponent as i, computed as c, openBlock as m, createElementBlock as b, Fragment as f, createVNode as r, normalizeClass as y, withCtx as n, renderSlot as t, createElementVNode as p, mergeProps as h } from "vue";
|
2
|
-
import g from "./
|
2
|
+
import g from "./index206.js";
|
3
3
|
/* empty css */
|
4
|
-
import B from "./
|
4
|
+
import B from "./index208.js";
|
5
5
|
const k = ["id", "aria-describedby", "aria-invalid", "autocomplete", "autofocus", "disabled", "name", "placeholder", "readonly", "required", "type", "value"], w = /* @__PURE__ */ p("span", null, null, -1), q = /* @__PURE__ */ i({
|
6
6
|
__name: "BaseTextInput",
|
7
7
|
props: {
|
package/dist/index53.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { defineComponent as z, computed as b, ref as o, onMounted as g, openBlock as l, createElementBlock as i, normalizeProps as h, guardReactiveProps as k, renderSlot as y } from "vue";
|
2
|
-
import { isCssColor as _ } from "./
|
2
|
+
import { isCssColor as _ } from "./index231.js";
|
3
3
|
import { wait as C } from "./index127.js";
|
4
4
|
const w = ["alt", "sizes", "src", "srcset"], B = {
|
5
5
|
key: 1,
|