@cregis/ui 1.1.8 → 1.1.9
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/index.css +1 -1
- package/dist/index.js +641 -631
- package/dist/types/index.d.ts +5 -4
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { createI18n as Kn } from "vue-i18n";
|
|
2
|
-
import { defineComponent as oe, useSlots as $n, ref as V, computed as p, openBlock as u, createElementBlock as m, normalizeClass as X, createElementVNode as z, mergeProps as Be, createBlock as de, resolveDynamicComponent as it, normalizeStyle as G, renderSlot as ae, toDisplayString as
|
|
3
|
-
import { EdsLoad as Wt, EdsCloseCircleFill as ea, EdsTickFill as Cn, EdsWarningFill as ta, EdsSearch as On, EdsArrowDownMiniIos as Ht, EdsArrowRightMiniIos as na, EdsAdd as sn, EdsClose as Ut, EdsWarningLonely as aa, EdsTimeWait as ia, EdsArrowRefuses as
|
|
2
|
+
import { defineComponent as oe, useSlots as $n, ref as V, computed as p, openBlock as u, createElementBlock as m, normalizeClass as X, createElementVNode as z, mergeProps as Be, createBlock as de, resolveDynamicComponent as it, normalizeStyle as G, renderSlot as ae, toDisplayString as H, createCommentVNode as j, unref as F, watch as ie, nextTick as ge, onMounted as Pe, onBeforeUnmount as It, withDirectives as Fe, vModelDynamic as Gn, withModifiers as He, vModelText as Zn, createVNode as ne, withCtx as ve, createTextVNode as ye, reactive as je, onUnmounted as ze, provide as Nt, toRef as ht, Fragment as Le, renderList as Ve, inject as jt, Transition as st, render as Ue, h as _t, getCurrentScope as Qn, onScopeDispose as Jn, readonly as Ot, toHandlers as Tt, Teleport as Ft, vShow as $t, createSlots as on } from "vue";
|
|
3
|
+
import { EdsLoad as Wt, EdsCloseCircleFill as ea, EdsTickFill as Cn, EdsWarningFill as ta, EdsSearch as On, EdsArrowDownMiniIos as Ht, EdsArrowRightMiniIos as na, EdsAdd as sn, EdsClose as Ut, EdsWarningLonely as aa, EdsTimeWait as ia, EdsArrowRefuses as la, EdsTick as ra, EdsNoData as oa } from "@cregis/icon";
|
|
4
4
|
const sa = {
|
|
5
5
|
input: {
|
|
6
|
-
placeholder: "請輸入"
|
|
6
|
+
placeholder: "請輸入",
|
|
7
|
+
paste: "粘貼",
|
|
8
|
+
clear: "清除"
|
|
7
9
|
},
|
|
8
10
|
select: {
|
|
9
11
|
noMatch: "无匹配数据",
|
|
@@ -32,7 +34,9 @@ const sa = {
|
|
|
32
34
|
}
|
|
33
35
|
}, ca = {
|
|
34
36
|
input: {
|
|
35
|
-
placeholder: "请输入"
|
|
37
|
+
placeholder: "请输入",
|
|
38
|
+
paste: "粘贴",
|
|
39
|
+
clear: "清除"
|
|
36
40
|
},
|
|
37
41
|
select: {
|
|
38
42
|
noMatch: "无匹配数据",
|
|
@@ -61,7 +65,9 @@ const sa = {
|
|
|
61
65
|
}
|
|
62
66
|
}, ua = {
|
|
63
67
|
input: {
|
|
64
|
-
placeholder: "Please enter"
|
|
68
|
+
placeholder: "Please enter",
|
|
69
|
+
paste: "Paste",
|
|
70
|
+
clear: "Clear"
|
|
65
71
|
},
|
|
66
72
|
select: {
|
|
67
73
|
noMatch: "No matching data",
|
|
@@ -99,9 +105,9 @@ const Tn = () => (zt || (zt = Kn({
|
|
|
99
105
|
"en-US": ua
|
|
100
106
|
},
|
|
101
107
|
legacy: !1
|
|
102
|
-
})), zt),
|
|
108
|
+
})), zt), Dr = (e) => {
|
|
103
109
|
Tn().global.locale.value = e;
|
|
104
|
-
},
|
|
110
|
+
}, pe = (e, t) => Tn().global.t(e, t), da = ["disabled"], fa = ["disabled"], va = ["disabled"], _e = /* @__PURE__ */ oe({
|
|
105
111
|
name: "Button",
|
|
106
112
|
inheritAttrs: !1,
|
|
107
113
|
__name: "Button",
|
|
@@ -115,6 +121,7 @@ const Tn = () => (zt || (zt = Kn({
|
|
|
115
121
|
loading: { type: Boolean },
|
|
116
122
|
block: { type: Boolean },
|
|
117
123
|
link: { type: Boolean },
|
|
124
|
+
underline: { type: Boolean, default: !0 },
|
|
118
125
|
icon: {},
|
|
119
126
|
iconType: { default: "rectangle" },
|
|
120
127
|
iconText: {},
|
|
@@ -126,10 +133,10 @@ const Tn = () => (zt || (zt = Kn({
|
|
|
126
133
|
function i() {
|
|
127
134
|
t.disabled || t.loading || a.value?.click();
|
|
128
135
|
}
|
|
129
|
-
const
|
|
136
|
+
const l = p(() => {
|
|
130
137
|
const c = t, d = n.icon;
|
|
131
138
|
return !c.icon && typeof d == "function";
|
|
132
|
-
}), o = p(() => t.size === "large" ? "20px" : t.size === "medium" ? "16px" : "12px"),
|
|
139
|
+
}), o = p(() => t.size === "large" ? "20px" : t.size === "medium" ? "16px" : "12px"), r = p(() => t.size === "large" || t.size === "medium" ? "16px" : "12px"), s = p(() => t.width ? { width: t.width } : void 0), v = p(() => {
|
|
133
140
|
if (t.plain || t.text)
|
|
134
141
|
switch (t.type) {
|
|
135
142
|
case "primary":
|
|
@@ -137,7 +144,7 @@ const Tn = () => (zt || (zt = Kn({
|
|
|
137
144
|
case "secondary":
|
|
138
145
|
return "var(--material-base-secondary)";
|
|
139
146
|
case "danger":
|
|
140
|
-
return "var(--
|
|
147
|
+
return "var(--status-danger)";
|
|
141
148
|
case "foreground":
|
|
142
149
|
return "var(--material-base-primary)";
|
|
143
150
|
case "sameWhite":
|
|
@@ -157,7 +164,7 @@ const Tn = () => (zt || (zt = Kn({
|
|
|
157
164
|
class: ["cregis-button__icon", {
|
|
158
165
|
[`cregis-button__icon--${e.iconType}`]: e.iconType,
|
|
159
166
|
[`cregis-button__icon--${e.size}`]: e.size,
|
|
160
|
-
"cregis-button__icon--slot":
|
|
167
|
+
"cregis-button__icon--slot": l.value,
|
|
161
168
|
"is-disabled": e.disabled,
|
|
162
169
|
"is-active": e.isActive
|
|
163
170
|
}],
|
|
@@ -178,13 +185,14 @@ const Tn = () => (zt || (zt = Kn({
|
|
|
178
185
|
key: 0,
|
|
179
186
|
class: X(["cregis-button__icon-text", { "is-disabled": e.disabled }]),
|
|
180
187
|
onClick: i
|
|
181
|
-
},
|
|
188
|
+
}, H(e.iconText), 3)) : j("", !0)
|
|
182
189
|
], 2)) : e.link ? (u(), m("button", Be({ key: 1 }, c.$attrs, {
|
|
183
190
|
class: ["cregis-button__link", {
|
|
184
191
|
[`cregis-button__link--${e.type}`]: e.type,
|
|
185
192
|
[`cregis-button__link--${e.size}`]: e.size,
|
|
186
193
|
"is-disabled": e.disabled,
|
|
187
|
-
"is-active": e.isActive
|
|
194
|
+
"is-active": e.isActive,
|
|
195
|
+
"is-underline": e.underline
|
|
188
196
|
}],
|
|
189
197
|
disabled: e.disabled || e.loading
|
|
190
198
|
}), [
|
|
@@ -207,10 +215,10 @@ const Tn = () => (zt || (zt = Kn({
|
|
|
207
215
|
}],
|
|
208
216
|
disabled: e.disabled || e.loading
|
|
209
217
|
}), [
|
|
210
|
-
e.loading ? (u(), de(
|
|
218
|
+
e.loading ? (u(), de(F(Wt), {
|
|
211
219
|
key: 0,
|
|
212
220
|
class: "loading",
|
|
213
|
-
size:
|
|
221
|
+
size: r.value,
|
|
214
222
|
color: v.value
|
|
215
223
|
}, null, 8, ["size", "color"])) : ae(c.$slots, "default", { key: 1 })
|
|
216
224
|
], 16, va));
|
|
@@ -235,15 +243,15 @@ const Tn = () => (zt || (zt = Kn({
|
|
|
235
243
|
clearable: { type: Boolean },
|
|
236
244
|
inputStyle: {},
|
|
237
245
|
unit: {},
|
|
238
|
-
rows: { default:
|
|
246
|
+
rows: { default: 2 },
|
|
239
247
|
nonNegative: { type: Boolean, default: !1 },
|
|
240
248
|
decimals: {},
|
|
241
|
-
pasteText: {
|
|
242
|
-
clearText: {
|
|
249
|
+
pasteText: {},
|
|
250
|
+
clearText: {}
|
|
243
251
|
},
|
|
244
252
|
emits: ["update:modelValue", "input", "change", "focus", "blur", "clear"],
|
|
245
253
|
setup(e, { expose: t, emit: n }) {
|
|
246
|
-
const a = e, i = n,
|
|
254
|
+
const a = e, i = n, l = (f) => {
|
|
247
255
|
if (f === "" || f === null || f === void 0) return "";
|
|
248
256
|
const T = String(f).trim();
|
|
249
257
|
if (T === "") return "";
|
|
@@ -257,7 +265,7 @@ const Tn = () => (zt || (zt = Kn({
|
|
|
257
265
|
}, o = p(() => {
|
|
258
266
|
const f = a.decimals;
|
|
259
267
|
return f === void 0 || !Number.isFinite(f) ? null : Math.max(0, Math.floor(f));
|
|
260
|
-
}),
|
|
268
|
+
}), r = p(() => a.type === "number" && o.value !== null), s = p(() => r.value ? "text" : a.type), v = p(() => r.value ? "decimal" : void 0), c = (f) => f.replace(/[,,。.]/g, "."), d = (f) => {
|
|
261
269
|
if (f === "" || f === null || f === void 0) return "";
|
|
262
270
|
let T = c(String(f).trim());
|
|
263
271
|
if (T === "") return "";
|
|
@@ -275,11 +283,11 @@ const Tn = () => (zt || (zt = Kn({
|
|
|
275
283
|
let ce = ee ? I.slice(1) : I;
|
|
276
284
|
const b = ce.indexOf(".");
|
|
277
285
|
if (b === -1) return f;
|
|
278
|
-
const
|
|
279
|
-
return T === 0 ? (ee ? "-" : "") +
|
|
286
|
+
const le = ce.slice(0, b), re = ce.slice(b + 1);
|
|
287
|
+
return T === 0 ? (ee ? "-" : "") + le : re.length <= T ? f : (ee ? "-" : "") + le + "." + re.slice(0, T);
|
|
280
288
|
}, h = (f) => {
|
|
281
289
|
let T = f;
|
|
282
|
-
return
|
|
290
|
+
return r.value && (T = d(T)), a.nonNegative && (T = l(T)), o.value !== null && (T = g(T)), T;
|
|
283
291
|
}, y = V(
|
|
284
292
|
a.type === "number" ? h(a.modelValue) : a.modelValue
|
|
285
293
|
);
|
|
@@ -299,9 +307,9 @@ const Tn = () => (zt || (zt = Kn({
|
|
|
299
307
|
f !== y.value && (y.value = f);
|
|
300
308
|
}
|
|
301
309
|
i("update:modelValue", y.value), i("input", y.value), await ge(), Z(), te();
|
|
302
|
-
},
|
|
310
|
+
}, U = () => {
|
|
303
311
|
i("change", y.value);
|
|
304
|
-
},
|
|
312
|
+
}, q = (f) => {
|
|
305
313
|
$.value = !0, i("focus", f);
|
|
306
314
|
}, M = (f) => {
|
|
307
315
|
$.value = !1, i("blur", f);
|
|
@@ -326,7 +334,7 @@ const Tn = () => (zt || (zt = Kn({
|
|
|
326
334
|
const ee = window.getComputedStyle(I), ce = parseFloat(ee.paddingBottom) || 0, b = T.getBoundingClientRect().top - I.getBoundingClientRect().top;
|
|
327
335
|
E.value = I.scrollHeight - ce > I.scrollTop + b + 0.5;
|
|
328
336
|
});
|
|
329
|
-
},
|
|
337
|
+
}, me = () => {
|
|
330
338
|
te();
|
|
331
339
|
}, Z = () => {
|
|
332
340
|
x && cancelAnimationFrame(x), x = requestAnimationFrame(() => {
|
|
@@ -354,7 +362,7 @@ const Tn = () => (zt || (zt = Kn({
|
|
|
354
362
|
}), It(() => {
|
|
355
363
|
k && cancelAnimationFrame(k), w?.disconnect();
|
|
356
364
|
});
|
|
357
|
-
const A = p(() => a.type === "number" && a.nonNegative ? 0 : void 0),
|
|
365
|
+
const A = p(() => a.type === "number" && a.nonNegative ? 0 : void 0), Y = (f) => f === "." || f === "," || f === "," || f === "。" || f === "." || f === "Decimal", J = (f) => {
|
|
358
366
|
if (a.type !== "number" || f.isComposing) return;
|
|
359
367
|
const T = o.value;
|
|
360
368
|
if ((a.nonNegative || T !== null) && (f.key === "e" || f.key === "E")) {
|
|
@@ -365,11 +373,11 @@ const Tn = () => (zt || (zt = Kn({
|
|
|
365
373
|
f.preventDefault();
|
|
366
374
|
return;
|
|
367
375
|
}
|
|
368
|
-
if (T === 0 &&
|
|
376
|
+
if (T === 0 && Y(f.key)) {
|
|
369
377
|
f.preventDefault();
|
|
370
378
|
return;
|
|
371
379
|
}
|
|
372
|
-
if (T !== null && T > 0 &&
|
|
380
|
+
if (T !== null && T > 0 && Y(f.key)) {
|
|
373
381
|
const I = f.target;
|
|
374
382
|
c(I.value).includes(".") && f.preventDefault();
|
|
375
383
|
return;
|
|
@@ -377,8 +385,8 @@ const Tn = () => (zt || (zt = Kn({
|
|
|
377
385
|
if (T !== null && T > 0 && f.key !== "." && /^\d$/.test(f.key)) {
|
|
378
386
|
const I = f.target, ee = c(I.value), ce = I.selectionStart, b = I.selectionEnd;
|
|
379
387
|
if (ce === null || b === null) return;
|
|
380
|
-
const
|
|
381
|
-
|
|
388
|
+
const le = ee.slice(0, ce) + f.key + ee.slice(b), re = le.indexOf(".");
|
|
389
|
+
re !== -1 && le.slice(re + 1).replace(/\D/g, "").length > T && f.preventDefault();
|
|
382
390
|
}
|
|
383
391
|
};
|
|
384
392
|
return t({
|
|
@@ -407,14 +415,14 @@ const Tn = () => (zt || (zt = Kn({
|
|
|
407
415
|
ref: C,
|
|
408
416
|
type: s.value,
|
|
409
417
|
inputmode: v.value,
|
|
410
|
-
placeholder: e.placeholder ||
|
|
418
|
+
placeholder: e.placeholder || F(pe)("input.placeholder")
|
|
411
419
|
}, f.$attrs, {
|
|
412
420
|
min: A.value,
|
|
413
421
|
spellcheck: "false",
|
|
414
422
|
disabled: e.disabled,
|
|
415
423
|
onInput: R,
|
|
416
|
-
onChange:
|
|
417
|
-
onFocus:
|
|
424
|
+
onChange: U,
|
|
425
|
+
onFocus: q,
|
|
418
426
|
onBlur: M,
|
|
419
427
|
onKeydown: J
|
|
420
428
|
}), null, 16, ma), [
|
|
@@ -424,12 +432,12 @@ const Tn = () => (zt || (zt = Kn({
|
|
|
424
432
|
key: 1,
|
|
425
433
|
style: G(D.value),
|
|
426
434
|
class: "cregis-input__unit"
|
|
427
|
-
},
|
|
435
|
+
}, H(e.unit), 5)) : j("", !0),
|
|
428
436
|
f.$slots.suffix || se.value ? (u(), m("span", ha, [
|
|
429
437
|
ae(f.$slots, "suffix"),
|
|
430
438
|
se.value ? (u(), de(_e, {
|
|
431
439
|
key: 0,
|
|
432
|
-
icon:
|
|
440
|
+
icon: F(ea),
|
|
433
441
|
"icon-type": "square",
|
|
434
442
|
onClick: Q,
|
|
435
443
|
onMousedown: T[1] || (T[1] = He(() => {
|
|
@@ -447,14 +455,14 @@ const Tn = () => (zt || (zt = Kn({
|
|
|
447
455
|
ref_key: "inputRef",
|
|
448
456
|
ref: C,
|
|
449
457
|
disabled: e.disabled,
|
|
450
|
-
placeholder: e.placeholder ||
|
|
458
|
+
placeholder: e.placeholder || F(pe)("input.placeholder"),
|
|
451
459
|
rows: e.rows,
|
|
452
460
|
"onUpdate:modelValue": T[2] || (T[2] = (I) => y.value = I),
|
|
453
461
|
onInput: R,
|
|
454
|
-
onChange:
|
|
455
|
-
onFocus:
|
|
462
|
+
onChange: U,
|
|
463
|
+
onFocus: q,
|
|
456
464
|
onBlur: M,
|
|
457
|
-
onScroll:
|
|
465
|
+
onScroll: me
|
|
458
466
|
}), null, 16, ga), [
|
|
459
467
|
[Zn, y.value]
|
|
460
468
|
]),
|
|
@@ -467,23 +475,25 @@ const Tn = () => (zt || (zt = Kn({
|
|
|
467
475
|
ne(_e, {
|
|
468
476
|
class: "cregis-textarea__button",
|
|
469
477
|
link: "",
|
|
478
|
+
underline: !1,
|
|
470
479
|
size: "small",
|
|
471
480
|
onClick: N
|
|
472
481
|
}, {
|
|
473
482
|
default: ve(() => [
|
|
474
|
-
ye(
|
|
483
|
+
ye(H(e.pasteText || F(pe)("input.paste")), 1)
|
|
475
484
|
]),
|
|
476
485
|
_: 1
|
|
477
486
|
}),
|
|
478
487
|
ne(_e, {
|
|
479
488
|
class: "cregis-textarea__button",
|
|
480
489
|
link: "",
|
|
490
|
+
underline: !1,
|
|
481
491
|
size: "small",
|
|
482
492
|
disabled: !y.value,
|
|
483
493
|
onClick: Q
|
|
484
494
|
}, {
|
|
485
495
|
default: ve(() => [
|
|
486
|
-
ye(
|
|
496
|
+
ye(H(e.clearText || F(pe)("input.clear")), 1)
|
|
487
497
|
]),
|
|
488
498
|
_: 1
|
|
489
499
|
}, 8, ["disabled"])
|
|
@@ -543,7 +553,7 @@ const Tn = () => (zt || (zt = Kn({
|
|
|
543
553
|
},
|
|
544
554
|
emits: ["update:modelValue", "change"],
|
|
545
555
|
setup(e, { emit: t }) {
|
|
546
|
-
const n = e, a = t, i = p(() => n.modelValue),
|
|
556
|
+
const n = e, a = t, i = p(() => n.modelValue), l = () => {
|
|
547
557
|
n.disabled || a("update:modelValue", !i.value);
|
|
548
558
|
};
|
|
549
559
|
return ie(
|
|
@@ -551,9 +561,9 @@ const Tn = () => (zt || (zt = Kn({
|
|
|
551
561
|
() => {
|
|
552
562
|
a("change", i.value);
|
|
553
563
|
}
|
|
554
|
-
), (o,
|
|
564
|
+
), (o, r) => (u(), m("div", {
|
|
555
565
|
class: "cregis-checkbox__wrapper",
|
|
556
|
-
onClick:
|
|
566
|
+
onClick: l
|
|
557
567
|
}, [
|
|
558
568
|
z("div", {
|
|
559
569
|
class: X(["cregis-checkbox", {
|
|
@@ -573,12 +583,12 @@ const Tn = () => (zt || (zt = Kn({
|
|
|
573
583
|
class: X(["cregis-checkbox__label", { "is-disabled": e.disabled }])
|
|
574
584
|
}, [
|
|
575
585
|
ae(o.$slots, "default", {}, () => [
|
|
576
|
-
ye(
|
|
586
|
+
ye(H(e.label), 1)
|
|
577
587
|
])
|
|
578
588
|
], 2)) : j("", !0)
|
|
579
589
|
]));
|
|
580
590
|
}
|
|
581
|
-
}),
|
|
591
|
+
}), Mr = /* @__PURE__ */ oe({
|
|
582
592
|
name: "Radio",
|
|
583
593
|
__name: "Radio",
|
|
584
594
|
props: {
|
|
@@ -589,19 +599,19 @@ const Tn = () => (zt || (zt = Kn({
|
|
|
589
599
|
},
|
|
590
600
|
emits: ["update:modelValue", "change"],
|
|
591
601
|
setup(e, { emit: t }) {
|
|
592
|
-
const n = e, a = t, i = p(() => n.modelValue === n.value),
|
|
602
|
+
const n = e, a = t, i = p(() => n.modelValue === n.value), l = () => {
|
|
593
603
|
n.disabled || (a("update:modelValue", n.value), a("change", n.value));
|
|
594
604
|
};
|
|
595
|
-
return (o,
|
|
605
|
+
return (o, r) => (u(), m("div", {
|
|
596
606
|
class: "cregis-radio__wrapper",
|
|
597
|
-
onClick:
|
|
607
|
+
onClick: l
|
|
598
608
|
}, [
|
|
599
609
|
z("div", {
|
|
600
610
|
class: X(["cregis-radio", {
|
|
601
611
|
"is-disabled": e.disabled,
|
|
602
612
|
"is-checked": i.value
|
|
603
613
|
}])
|
|
604
|
-
}, [...
|
|
614
|
+
}, [...r[0] || (r[0] = [
|
|
605
615
|
z("div", { class: "cregis-radio__inner" }, null, -1)
|
|
606
616
|
])], 2),
|
|
607
617
|
o.$slots.default || e.label ? (u(), m("span", {
|
|
@@ -609,12 +619,12 @@ const Tn = () => (zt || (zt = Kn({
|
|
|
609
619
|
class: X(["cregis-radio__label", { "is-disabled": e.disabled }])
|
|
610
620
|
}, [
|
|
611
621
|
ae(o.$slots, "default", {}, () => [
|
|
612
|
-
ye(
|
|
622
|
+
ye(H(e.label), 1)
|
|
613
623
|
])
|
|
614
624
|
], 2)) : j("", !0)
|
|
615
625
|
]));
|
|
616
626
|
}
|
|
617
|
-
}),
|
|
627
|
+
}), Ir = /* @__PURE__ */ oe({
|
|
618
628
|
name: "Divider",
|
|
619
629
|
__name: "Divider",
|
|
620
630
|
props: {
|
|
@@ -628,8 +638,8 @@ const Tn = () => (zt || (zt = Kn({
|
|
|
628
638
|
setup(e) {
|
|
629
639
|
const t = e, n = p(() => {
|
|
630
640
|
if (Array.isArray(t.margin)) {
|
|
631
|
-
const [i,
|
|
632
|
-
return t.direction === "horizontal" ? `${i} 0 ${
|
|
641
|
+
const [i, l] = t.margin;
|
|
642
|
+
return t.direction === "horizontal" ? `${i} 0 ${l} 0` : `0 ${l} 0 ${i}`;
|
|
633
643
|
} else
|
|
634
644
|
return t.direction === "horizontal" ? `${t.margin} 0` : `0 ${t.margin}`;
|
|
635
645
|
}), a = p(() => t.direction === "horizontal" ? {
|
|
@@ -645,14 +655,14 @@ const Tn = () => (zt || (zt = Kn({
|
|
|
645
655
|
borderLeftColor: t.color,
|
|
646
656
|
margin: n.value
|
|
647
657
|
});
|
|
648
|
-
return (i,
|
|
658
|
+
return (i, l) => (u(), m("div", {
|
|
649
659
|
class: X(["cregis-divider", {
|
|
650
660
|
[`cregis-divider--${e.direction}`]: e.direction
|
|
651
661
|
}]),
|
|
652
662
|
style: G(a.value)
|
|
653
663
|
}, null, 6));
|
|
654
664
|
}
|
|
655
|
-
}), En = Symbol("TABS_KEY"), $a = ["onClick"], Ca = { style: { display: "none" } },
|
|
665
|
+
}), En = Symbol("TABS_KEY"), $a = ["onClick"], Ca = { style: { display: "none" } }, Nr = /* @__PURE__ */ oe({
|
|
656
666
|
name: "Tabs",
|
|
657
667
|
__name: "Tabs",
|
|
658
668
|
props: {
|
|
@@ -667,26 +677,26 @@ const Tn = () => (zt || (zt = Kn({
|
|
|
667
677
|
function i(O) {
|
|
668
678
|
a("update:modelValue", O);
|
|
669
679
|
}
|
|
670
|
-
const
|
|
671
|
-
let
|
|
680
|
+
const l = V(null), o = je([]);
|
|
681
|
+
let r = 0;
|
|
672
682
|
function s() {
|
|
673
683
|
return window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
674
684
|
}
|
|
675
685
|
function v() {
|
|
676
|
-
|
|
686
|
+
r && (cancelAnimationFrame(r), r = 0);
|
|
677
687
|
}
|
|
678
688
|
function c(O, $) {
|
|
679
689
|
const E = O.scrollLeft, x = $ - E;
|
|
680
690
|
if (Math.abs(x) < 1) return;
|
|
681
691
|
v();
|
|
682
|
-
const k = 220, w = performance.now(), W = (
|
|
683
|
-
const
|
|
684
|
-
O.scrollLeft = E + x * W(
|
|
692
|
+
const k = 220, w = performance.now(), W = (U) => 1 - (1 - U) ** 3, R = (U) => {
|
|
693
|
+
const q = Math.min(1, (U - w) / k);
|
|
694
|
+
O.scrollLeft = E + x * W(q), q < 1 ? r = requestAnimationFrame(R) : r = 0;
|
|
685
695
|
};
|
|
686
|
-
|
|
696
|
+
r = requestAnimationFrame(R);
|
|
687
697
|
}
|
|
688
698
|
function d(O = !0) {
|
|
689
|
-
const $ =
|
|
699
|
+
const $ = l.value;
|
|
690
700
|
if (!$) return;
|
|
691
701
|
const E = $.querySelector(".cregis-tabs__item.is-active");
|
|
692
702
|
if (!E) return;
|
|
@@ -701,7 +711,7 @@ const Tn = () => (zt || (zt = Kn({
|
|
|
701
711
|
O && !s() ? c($, R) : (v(), $.scrollLeft = R);
|
|
702
712
|
}
|
|
703
713
|
function g(O) {
|
|
704
|
-
const $ =
|
|
714
|
+
const $ = l.value;
|
|
705
715
|
if (!$ || $.scrollWidth <= $.clientWidth || Math.abs(O.deltaX) >= Math.abs(O.deltaY)) return;
|
|
706
716
|
const E = $.scrollWidth - $.clientWidth, x = Math.max(0, Math.min(E, $.scrollLeft + O.deltaY));
|
|
707
717
|
x !== $.scrollLeft && (O.preventDefault(), v(), $.scrollLeft = x);
|
|
@@ -713,9 +723,9 @@ const Tn = () => (zt || (zt = Kn({
|
|
|
713
723
|
},
|
|
714
724
|
{ flush: "post" }
|
|
715
725
|
), Pe(() => {
|
|
716
|
-
|
|
726
|
+
l.value?.addEventListener("wheel", g, { passive: !1 }), ge(() => d(!1));
|
|
717
727
|
}), ze(() => {
|
|
718
|
-
v(),
|
|
728
|
+
v(), l.value?.removeEventListener("wheel", g);
|
|
719
729
|
});
|
|
720
730
|
const h = (O) => {
|
|
721
731
|
o.some(($) => $.name === O.name) || o.push(O);
|
|
@@ -742,7 +752,7 @@ const Tn = () => (zt || (zt = Kn({
|
|
|
742
752
|
unregisterTab: y
|
|
743
753
|
}), (O, $) => (u(), m("div", {
|
|
744
754
|
ref_key: "tabsRef",
|
|
745
|
-
ref:
|
|
755
|
+
ref: l,
|
|
746
756
|
class: X(["cregis-tabs", {
|
|
747
757
|
[`cregis-tabs--${e.type}`]: e.type,
|
|
748
758
|
[`cregis-tabs--${e.size}`]: e.size
|
|
@@ -755,14 +765,14 @@ const Tn = () => (zt || (zt = Kn({
|
|
|
755
765
|
style: G(B.value),
|
|
756
766
|
onClick: (x) => i(E.name)
|
|
757
767
|
}, [
|
|
758
|
-
z("span", null,
|
|
768
|
+
z("span", null, H(E.label), 1)
|
|
759
769
|
], 14, $a))), 128)),
|
|
760
770
|
z("div", Ca, [
|
|
761
771
|
ae(O.$slots, "default")
|
|
762
772
|
])
|
|
763
773
|
], 6));
|
|
764
774
|
}
|
|
765
|
-
}),
|
|
775
|
+
}), jr = /* @__PURE__ */ oe({
|
|
766
776
|
name: "TabPane",
|
|
767
777
|
__name: "TabPane",
|
|
768
778
|
props: {
|
|
@@ -785,7 +795,7 @@ const Tn = () => (zt || (zt = Kn({
|
|
|
785
795
|
}
|
|
786
796
|
});
|
|
787
797
|
let gt = 1e5;
|
|
788
|
-
const Yt = () => (gt = gt + 1, gt),
|
|
798
|
+
const Yt = () => (gt = gt + 1, gt), _r = (e) => {
|
|
789
799
|
gt = e;
|
|
790
800
|
}, Oa = {
|
|
791
801
|
key: 1,
|
|
@@ -806,7 +816,7 @@ const Yt = () => (gt = gt + 1, gt), _l = (e) => {
|
|
|
806
816
|
let a;
|
|
807
817
|
const i = p(() => ({
|
|
808
818
|
zIndex: Yt()
|
|
809
|
-
})),
|
|
819
|
+
})), l = () => {
|
|
810
820
|
a = window.setTimeout(() => {
|
|
811
821
|
n.value = !1;
|
|
812
822
|
}, t.duration);
|
|
@@ -817,13 +827,13 @@ const Yt = () => (gt = gt + 1, gt), _l = (e) => {
|
|
|
817
827
|
a !== void 0 && clearTimeout(a);
|
|
818
828
|
}), ge(() => {
|
|
819
829
|
n.value = !0;
|
|
820
|
-
}), (
|
|
830
|
+
}), (r, s) => (u(), m("div", {
|
|
821
831
|
class: X(["cregis-message__wrapper", { "cregis-message__wrapper--success": e.type === "success" }]),
|
|
822
832
|
style: G(i.value)
|
|
823
833
|
}, [
|
|
824
834
|
ne(st, {
|
|
825
835
|
name: "cregis-message",
|
|
826
|
-
onAfterEnter:
|
|
836
|
+
onAfterEnter: l,
|
|
827
837
|
onAfterLeave: o
|
|
828
838
|
}, {
|
|
829
839
|
default: ve(() => [
|
|
@@ -832,14 +842,14 @@ const Yt = () => (gt = gt + 1, gt), _l = (e) => {
|
|
|
832
842
|
class: X(["cregis-message", { "cregis-message--danger": e.type === "danger" }]),
|
|
833
843
|
role: "status",
|
|
834
844
|
"aria-live": "polite"
|
|
835
|
-
},
|
|
845
|
+
}, H(e.message), 3)) : n.value && e.type === "success" ? (u(), m("div", Oa, [
|
|
836
846
|
z("div", Ta, [
|
|
837
|
-
ne(
|
|
847
|
+
ne(F(Cn), {
|
|
838
848
|
size: "16px",
|
|
839
849
|
color: "var(--material-same-white-primary)"
|
|
840
850
|
})
|
|
841
851
|
]),
|
|
842
|
-
z("p", null,
|
|
852
|
+
z("p", null, H(e.message), 1)
|
|
843
853
|
])) : j("", !0)
|
|
844
854
|
]),
|
|
845
855
|
_: 1
|
|
@@ -896,27 +906,27 @@ const Ea = { class: "cregis-notification__wrapper" }, Ra = {
|
|
|
896
906
|
return It(() => {
|
|
897
907
|
}), ge(() => {
|
|
898
908
|
n.value = !0;
|
|
899
|
-
}), (
|
|
909
|
+
}), (l, o) => (u(), m("div", Ea, [
|
|
900
910
|
ne(st, {
|
|
901
911
|
name: "cregis-notification",
|
|
902
912
|
onAfterLeave: i
|
|
903
913
|
}, {
|
|
904
914
|
default: ve(() => [
|
|
905
915
|
n.value ? (u(), m("div", Ra, [
|
|
906
|
-
(u(), de(it(
|
|
916
|
+
(u(), de(it(F(ta)), {
|
|
907
917
|
size: "18px",
|
|
908
|
-
color: "var(--
|
|
918
|
+
color: "var(--status-danger)"
|
|
909
919
|
})),
|
|
910
920
|
z("div", Ba, [
|
|
911
|
-
z("div", Wa,
|
|
912
|
-
z("div", Aa,
|
|
921
|
+
z("div", Wa, H(e.title), 1),
|
|
922
|
+
z("div", Aa, H(e.message), 1)
|
|
913
923
|
]),
|
|
914
924
|
ne(_e, {
|
|
915
925
|
type: "sameWhite",
|
|
916
926
|
onClick: a
|
|
917
927
|
}, {
|
|
918
928
|
default: ve(() => [
|
|
919
|
-
ye(
|
|
929
|
+
ye(H(e.btnText), 1)
|
|
920
930
|
]),
|
|
921
931
|
_: 1
|
|
922
932
|
})
|
|
@@ -928,28 +938,28 @@ const Ea = { class: "cregis-notification__wrapper" }, Ra = {
|
|
|
928
938
|
}
|
|
929
939
|
});
|
|
930
940
|
let Et = !1;
|
|
931
|
-
function
|
|
941
|
+
function Fr(e) {
|
|
932
942
|
if (Et) return;
|
|
933
943
|
const { title: t, message: n, type: a, btnText: i } = e;
|
|
934
944
|
Et = !0;
|
|
935
|
-
const
|
|
936
|
-
document.body.appendChild(
|
|
945
|
+
const l = document.createElement("div");
|
|
946
|
+
document.body.appendChild(l), Ue(
|
|
937
947
|
_t(Va, {
|
|
938
948
|
title: t,
|
|
939
949
|
message: n,
|
|
940
950
|
type: a,
|
|
941
951
|
btnText: i,
|
|
942
952
|
onVanish: () => {
|
|
943
|
-
Et = !1, Ue(null,
|
|
953
|
+
Et = !1, Ue(null, l), l.remove();
|
|
944
954
|
}
|
|
945
955
|
}),
|
|
946
|
-
|
|
956
|
+
l
|
|
947
957
|
);
|
|
948
958
|
}
|
|
949
959
|
const Pa = { class: "cregis-progress__wrapper" }, Da = { class: "cregis-progress__track-wrap" }, Ma = { class: "cregis-progress cregis-progress--striped active" }, Ia = {
|
|
950
960
|
key: 0,
|
|
951
961
|
class: "cregis-progress__sliding-block"
|
|
952
|
-
},
|
|
962
|
+
}, Hr = /* @__PURE__ */ oe({
|
|
953
963
|
name: "Progress",
|
|
954
964
|
__name: "Progress",
|
|
955
965
|
props: {
|
|
@@ -964,15 +974,15 @@ const Pa = { class: "cregis-progress__wrapper" }, Da = { class: "cregis-progress
|
|
|
964
974
|
height: `${t.strokeWidth}px`
|
|
965
975
|
})), i = p(() => ({
|
|
966
976
|
"--cregis-progress-tip-left": `${n.value}%`
|
|
967
|
-
})),
|
|
968
|
-
return (o,
|
|
977
|
+
})), l = p(() => `${Math.round(t.percentage)}%`);
|
|
978
|
+
return (o, r) => (u(), m("div", Pa, [
|
|
969
979
|
z("div", Da, [
|
|
970
980
|
e.showPercentage && !t.loading ? (u(), m("div", {
|
|
971
981
|
key: 0,
|
|
972
982
|
class: "cregis-progress__tip",
|
|
973
983
|
style: G(i.value),
|
|
974
984
|
"aria-live": "polite"
|
|
975
|
-
},
|
|
985
|
+
}, H(l.value), 5)) : j("", !0),
|
|
976
986
|
z("div", Ma, [
|
|
977
987
|
z("div", {
|
|
978
988
|
class: "cregis-progress__bar",
|
|
@@ -984,10 +994,10 @@ const Pa = { class: "cregis-progress__wrapper" }, Da = { class: "cregis-progress
|
|
|
984
994
|
]));
|
|
985
995
|
}
|
|
986
996
|
});
|
|
987
|
-
var we = "top", Oe = "bottom", Te = "right", xe = "left", Xt = "auto", ct = [we, Oe, Te, xe], qe = "start",
|
|
988
|
-
return e.concat([t + "-" + qe, t + "-" +
|
|
997
|
+
var we = "top", Oe = "bottom", Te = "right", xe = "left", Xt = "auto", ct = [we, Oe, Te, xe], qe = "start", lt = "end", Na = "clippingParents", Rn = "viewport", Ge = "popper", ja = "reference", un = /* @__PURE__ */ ct.reduce(function(e, t) {
|
|
998
|
+
return e.concat([t + "-" + qe, t + "-" + lt]);
|
|
989
999
|
}, []), Bn = /* @__PURE__ */ [].concat(ct, [Xt]).reduce(function(e, t) {
|
|
990
|
-
return e.concat([t, t + "-" + qe, t + "-" +
|
|
1000
|
+
return e.concat([t, t + "-" + qe, t + "-" + lt]);
|
|
991
1001
|
}, []), _a = "beforeRead", Fa = "read", Ha = "afterRead", Ua = "beforeMain", qa = "main", Ya = "afterMain", Xa = "beforeWrite", Ka = "write", Ga = "afterWrite", Za = [_a, Fa, Ha, Ua, qa, Ya, Xa, Ka, Ga];
|
|
992
1002
|
function Re(e) {
|
|
993
1003
|
return e ? (e.nodeName || "").toLowerCase() : null;
|
|
@@ -1018,10 +1028,10 @@ function Kt(e) {
|
|
|
1018
1028
|
function Qa(e) {
|
|
1019
1029
|
var t = e.state;
|
|
1020
1030
|
Object.keys(t.elements).forEach(function(n) {
|
|
1021
|
-
var a = t.styles[n] || {}, i = t.attributes[n] || {},
|
|
1022
|
-
!Ce(
|
|
1023
|
-
var
|
|
1024
|
-
|
|
1031
|
+
var a = t.styles[n] || {}, i = t.attributes[n] || {}, l = t.elements[n];
|
|
1032
|
+
!Ce(l) || !Re(l) || (Object.assign(l.style, a), Object.keys(i).forEach(function(o) {
|
|
1033
|
+
var r = i[o];
|
|
1034
|
+
r === !1 ? l.removeAttribute(o) : l.setAttribute(o, r === !0 ? "" : r);
|
|
1025
1035
|
}));
|
|
1026
1036
|
});
|
|
1027
1037
|
}
|
|
@@ -1040,10 +1050,10 @@ function Ja(e) {
|
|
|
1040
1050
|
};
|
|
1041
1051
|
return Object.assign(t.elements.popper.style, n.popper), t.styles = n, t.elements.arrow && Object.assign(t.elements.arrow.style, n.arrow), function() {
|
|
1042
1052
|
Object.keys(t.elements).forEach(function(a) {
|
|
1043
|
-
var i = t.elements[a],
|
|
1053
|
+
var i = t.elements[a], l = t.attributes[a] || {}, o = Object.keys(t.styles.hasOwnProperty(a) ? t.styles[a] : n[a]), r = o.reduce(function(s, v) {
|
|
1044
1054
|
return s[v] = "", s;
|
|
1045
1055
|
}, {});
|
|
1046
|
-
!Ce(i) || !Re(i) || (Object.assign(i.style,
|
|
1056
|
+
!Ce(i) || !Re(i) || (Object.assign(i.style, r), Object.keys(l).forEach(function(s) {
|
|
1047
1057
|
i.removeAttribute(s);
|
|
1048
1058
|
}));
|
|
1049
1059
|
});
|
|
@@ -1072,9 +1082,9 @@ function Wn() {
|
|
|
1072
1082
|
}
|
|
1073
1083
|
function Xe(e, t, n) {
|
|
1074
1084
|
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
1075
|
-
var a = e.getBoundingClientRect(), i = 1,
|
|
1076
|
-
t && Ce(e) && (i = e.offsetWidth > 0 && Ye(a.width) / e.offsetWidth || 1,
|
|
1077
|
-
var o = Ne(e) ? Se(e) : window,
|
|
1085
|
+
var a = e.getBoundingClientRect(), i = 1, l = 1;
|
|
1086
|
+
t && Ce(e) && (i = e.offsetWidth > 0 && Ye(a.width) / e.offsetWidth || 1, l = e.offsetHeight > 0 && Ye(a.height) / e.offsetHeight || 1);
|
|
1087
|
+
var o = Ne(e) ? Se(e) : window, r = o.visualViewport, s = !Wn() && n, v = (a.left + (s && r ? r.offsetLeft : 0)) / i, c = (a.top + (s && r ? r.offsetTop : 0)) / l, d = a.width / i, g = a.height / l;
|
|
1078
1088
|
return {
|
|
1079
1089
|
width: d,
|
|
1080
1090
|
height: g,
|
|
@@ -1146,8 +1156,8 @@ function ni(e) {
|
|
|
1146
1156
|
}
|
|
1147
1157
|
var i = Ct(e);
|
|
1148
1158
|
for (Kt(i) && (i = i.host); Ce(i) && ["html", "body"].indexOf(Re(i)) < 0; ) {
|
|
1149
|
-
var
|
|
1150
|
-
if (
|
|
1159
|
+
var l = We(i);
|
|
1160
|
+
if (l.transform !== "none" || l.perspective !== "none" || l.contain === "paint" || ["transform", "perspective"].indexOf(l.willChange) !== -1 || t && l.willChange === "filter" || t && l.filter && l.filter !== "none")
|
|
1151
1161
|
return i;
|
|
1152
1162
|
i = i.parentNode;
|
|
1153
1163
|
}
|
|
@@ -1189,14 +1199,14 @@ var ii = function(t, n) {
|
|
|
1189
1199
|
placement: n.placement
|
|
1190
1200
|
})) : t, Pn(typeof t != "number" ? t : Dn(t, ct));
|
|
1191
1201
|
};
|
|
1192
|
-
function
|
|
1193
|
-
var t, n = e.state, a = e.name, i = e.options,
|
|
1194
|
-
if (!(!
|
|
1195
|
-
var d = ii(i.padding, n), g = Gt(
|
|
1202
|
+
function li(e) {
|
|
1203
|
+
var t, n = e.state, a = e.name, i = e.options, l = n.elements.arrow, o = n.modifiersData.popperOffsets, r = Ee(n.placement), s = Zt(r), v = [xe, Te].indexOf(r) >= 0, c = v ? "height" : "width";
|
|
1204
|
+
if (!(!l || !o)) {
|
|
1205
|
+
var d = ii(i.padding, n), g = Gt(l), h = s === "y" ? we : xe, y = s === "y" ? Oe : Te, C = n.rects.reference[c] + n.rects.reference[s] - o[s] - n.rects.popper[c], B = o[s] - n.rects.reference[s], O = ut(l), $ = O ? s === "y" ? O.clientHeight || 0 : O.clientWidth || 0 : 0, E = C / 2 - B / 2, x = d[h], k = $ - g[c] - d[y], w = $ / 2 - g[c] / 2 + E, W = et(x, w, k), R = s;
|
|
1196
1206
|
n.modifiersData[a] = (t = {}, t[R] = W, t.centerOffset = W - w, t);
|
|
1197
1207
|
}
|
|
1198
1208
|
}
|
|
1199
|
-
function
|
|
1209
|
+
function ri(e) {
|
|
1200
1210
|
var t = e.state, n = e.options, a = n.element, i = a === void 0 ? "[data-popper-arrow]" : a;
|
|
1201
1211
|
i != null && (typeof i == "string" && (i = t.elements.popper.querySelector(i), !i) || An(t.elements.popper, i) && (t.elements.arrow = i));
|
|
1202
1212
|
}
|
|
@@ -1204,8 +1214,8 @@ const oi = {
|
|
|
1204
1214
|
name: "arrow",
|
|
1205
1215
|
enabled: !0,
|
|
1206
1216
|
phase: "main",
|
|
1207
|
-
fn:
|
|
1208
|
-
effect:
|
|
1217
|
+
fn: li,
|
|
1218
|
+
effect: ri,
|
|
1209
1219
|
requires: ["popperOffsets"],
|
|
1210
1220
|
requiresIfExists: ["preventOverflow"]
|
|
1211
1221
|
};
|
|
@@ -1226,7 +1236,7 @@ function ci(e, t) {
|
|
|
1226
1236
|
};
|
|
1227
1237
|
}
|
|
1228
1238
|
function fn(e) {
|
|
1229
|
-
var t, n = e.popper, a = e.popperRect, i = e.placement,
|
|
1239
|
+
var t, n = e.popper, a = e.popperRect, i = e.placement, l = e.variation, o = e.offsets, r = e.position, s = e.gpuAcceleration, v = e.adaptive, c = e.roundOffsets, d = e.isFixed, g = o.x, h = g === void 0 ? 0 : g, y = o.y, C = y === void 0 ? 0 : y, B = typeof c == "function" ? c({
|
|
1230
1240
|
x: h,
|
|
1231
1241
|
y: C
|
|
1232
1242
|
}) : {
|
|
@@ -1237,25 +1247,25 @@ function fn(e) {
|
|
|
1237
1247
|
var O = o.hasOwnProperty("x"), $ = o.hasOwnProperty("y"), E = xe, x = we, k = window;
|
|
1238
1248
|
if (v) {
|
|
1239
1249
|
var w = ut(n), W = "clientHeight", R = "clientWidth";
|
|
1240
|
-
if (w === Se(n) && (w = De(n), We(w).position !== "static" &&
|
|
1250
|
+
if (w === Se(n) && (w = De(n), We(w).position !== "static" && r === "absolute" && (W = "scrollHeight", R = "scrollWidth")), w = w, i === we || (i === xe || i === Te) && l === lt) {
|
|
1241
1251
|
x = Oe;
|
|
1242
|
-
var
|
|
1252
|
+
var U = d && w === k && k.visualViewport ? k.visualViewport.height : (
|
|
1243
1253
|
// $FlowFixMe[prop-missing]
|
|
1244
1254
|
w[W]
|
|
1245
1255
|
);
|
|
1246
|
-
C -=
|
|
1256
|
+
C -= U - a.height, C *= s ? 1 : -1;
|
|
1247
1257
|
}
|
|
1248
|
-
if (i === xe || (i === we || i === Oe) &&
|
|
1258
|
+
if (i === xe || (i === we || i === Oe) && l === lt) {
|
|
1249
1259
|
E = Te;
|
|
1250
|
-
var
|
|
1260
|
+
var q = d && w === k && k.visualViewport ? k.visualViewport.width : (
|
|
1251
1261
|
// $FlowFixMe[prop-missing]
|
|
1252
1262
|
w[R]
|
|
1253
1263
|
);
|
|
1254
|
-
h -=
|
|
1264
|
+
h -= q - a.width, h *= s ? 1 : -1;
|
|
1255
1265
|
}
|
|
1256
1266
|
}
|
|
1257
1267
|
var M = Object.assign({
|
|
1258
|
-
position:
|
|
1268
|
+
position: r
|
|
1259
1269
|
}, v && si), se = c === !0 ? ci({
|
|
1260
1270
|
x: h,
|
|
1261
1271
|
y: C
|
|
@@ -1270,7 +1280,7 @@ function fn(e) {
|
|
|
1270
1280
|
return Object.assign({}, M, (t = {}, t[x] = $ ? C + "px" : "", t[E] = O ? h + "px" : "", t.transform = "", t));
|
|
1271
1281
|
}
|
|
1272
1282
|
function ui(e) {
|
|
1273
|
-
var t = e.state, n = e.options, a = n.gpuAcceleration, i = a === void 0 ? !0 : a,
|
|
1283
|
+
var t = e.state, n = e.options, a = n.gpuAcceleration, i = a === void 0 ? !0 : a, l = n.adaptive, o = l === void 0 ? !0 : l, r = n.roundOffsets, s = r === void 0 ? !0 : r, v = {
|
|
1274
1284
|
placement: Ee(t.placement),
|
|
1275
1285
|
variation: Ke(t.placement),
|
|
1276
1286
|
popper: t.elements.popper,
|
|
@@ -1303,13 +1313,13 @@ var pt = {
|
|
|
1303
1313
|
passive: !0
|
|
1304
1314
|
};
|
|
1305
1315
|
function fi(e) {
|
|
1306
|
-
var t = e.state, n = e.instance, a = e.options, i = a.scroll,
|
|
1307
|
-
return
|
|
1316
|
+
var t = e.state, n = e.instance, a = e.options, i = a.scroll, l = i === void 0 ? !0 : i, o = a.resize, r = o === void 0 ? !0 : o, s = Se(t.elements.popper), v = [].concat(t.scrollParents.reference, t.scrollParents.popper);
|
|
1317
|
+
return l && v.forEach(function(c) {
|
|
1308
1318
|
c.addEventListener("scroll", n.update, pt);
|
|
1309
|
-
}),
|
|
1310
|
-
|
|
1319
|
+
}), r && s.addEventListener("resize", n.update, pt), function() {
|
|
1320
|
+
l && v.forEach(function(c) {
|
|
1311
1321
|
c.removeEventListener("scroll", n.update, pt);
|
|
1312
|
-
}),
|
|
1322
|
+
}), r && s.removeEventListener("resize", n.update, pt);
|
|
1313
1323
|
};
|
|
1314
1324
|
}
|
|
1315
1325
|
const vi = {
|
|
@@ -1352,25 +1362,25 @@ function Jt(e) {
|
|
|
1352
1362
|
return Xe(De(e)).left + Qt(e).scrollLeft;
|
|
1353
1363
|
}
|
|
1354
1364
|
function hi(e, t) {
|
|
1355
|
-
var n = Se(e), a = De(e), i = n.visualViewport,
|
|
1365
|
+
var n = Se(e), a = De(e), i = n.visualViewport, l = a.clientWidth, o = a.clientHeight, r = 0, s = 0;
|
|
1356
1366
|
if (i) {
|
|
1357
|
-
|
|
1367
|
+
l = i.width, o = i.height;
|
|
1358
1368
|
var v = Wn();
|
|
1359
|
-
(v || !v && t === "fixed") && (
|
|
1369
|
+
(v || !v && t === "fixed") && (r = i.offsetLeft, s = i.offsetTop);
|
|
1360
1370
|
}
|
|
1361
1371
|
return {
|
|
1362
|
-
width:
|
|
1372
|
+
width: l,
|
|
1363
1373
|
height: o,
|
|
1364
|
-
x:
|
|
1374
|
+
x: r + Jt(e),
|
|
1365
1375
|
y: s
|
|
1366
1376
|
};
|
|
1367
1377
|
}
|
|
1368
1378
|
function gi(e) {
|
|
1369
|
-
var t, n = De(e), a = Qt(e), i = (t = e.ownerDocument) == null ? void 0 : t.body,
|
|
1370
|
-
return We(i || n).direction === "rtl" && (
|
|
1371
|
-
width:
|
|
1379
|
+
var t, n = De(e), a = Qt(e), i = (t = e.ownerDocument) == null ? void 0 : t.body, l = Ie(n.scrollWidth, n.clientWidth, i ? i.scrollWidth : 0, i ? i.clientWidth : 0), o = Ie(n.scrollHeight, n.clientHeight, i ? i.scrollHeight : 0, i ? i.clientHeight : 0), r = -a.scrollLeft + Jt(e), s = -a.scrollTop;
|
|
1380
|
+
return We(i || n).direction === "rtl" && (r += Ie(n.clientWidth, i ? i.clientWidth : 0) - l), {
|
|
1381
|
+
width: l,
|
|
1372
1382
|
height: o,
|
|
1373
|
-
x:
|
|
1383
|
+
x: r,
|
|
1374
1384
|
y: s
|
|
1375
1385
|
};
|
|
1376
1386
|
}
|
|
@@ -1384,10 +1394,10 @@ function Mn(e) {
|
|
|
1384
1394
|
function tt(e, t) {
|
|
1385
1395
|
var n;
|
|
1386
1396
|
t === void 0 && (t = []);
|
|
1387
|
-
var a = Mn(e), i = a === ((n = e.ownerDocument) == null ? void 0 : n.body),
|
|
1388
|
-
return i ?
|
|
1397
|
+
var a = Mn(e), i = a === ((n = e.ownerDocument) == null ? void 0 : n.body), l = Se(a), o = i ? [l].concat(l.visualViewport || [], en(a) ? a : []) : a, r = t.concat(o);
|
|
1398
|
+
return i ? r : (
|
|
1389
1399
|
// $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here
|
|
1390
|
-
|
|
1400
|
+
r.concat(tt(Ct(o)))
|
|
1391
1401
|
);
|
|
1392
1402
|
}
|
|
1393
1403
|
function Vt(e) {
|
|
@@ -1412,14 +1422,14 @@ function yi(e) {
|
|
|
1412
1422
|
}) : [];
|
|
1413
1423
|
}
|
|
1414
1424
|
function wi(e, t, n, a) {
|
|
1415
|
-
var i = t === "clippingParents" ? yi(e) : [].concat(t),
|
|
1425
|
+
var i = t === "clippingParents" ? yi(e) : [].concat(t), l = [].concat(i, [n]), o = l[0], r = l.reduce(function(s, v) {
|
|
1416
1426
|
var c = pn(e, v, a);
|
|
1417
1427
|
return s.top = Ie(c.top, s.top), s.right = yt(c.right, s.right), s.bottom = yt(c.bottom, s.bottom), s.left = Ie(c.left, s.left), s;
|
|
1418
1428
|
}, pn(e, o, a));
|
|
1419
|
-
return
|
|
1429
|
+
return r.width = r.right - r.left, r.height = r.bottom - r.top, r.x = r.left, r.y = r.top, r;
|
|
1420
1430
|
}
|
|
1421
1431
|
function In(e) {
|
|
1422
|
-
var t = e.reference, n = e.element, a = e.placement, i = a ? Ee(a) : null,
|
|
1432
|
+
var t = e.reference, n = e.element, a = e.placement, i = a ? Ee(a) : null, l = a ? Ke(a) : null, o = t.x + t.width / 2 - n.width / 2, r = t.y + t.height / 2 - n.height / 2, s;
|
|
1423
1433
|
switch (i) {
|
|
1424
1434
|
case we:
|
|
1425
1435
|
s = {
|
|
@@ -1436,13 +1446,13 @@ function In(e) {
|
|
|
1436
1446
|
case Te:
|
|
1437
1447
|
s = {
|
|
1438
1448
|
x: t.x + t.width,
|
|
1439
|
-
y:
|
|
1449
|
+
y: r
|
|
1440
1450
|
};
|
|
1441
1451
|
break;
|
|
1442
1452
|
case xe:
|
|
1443
1453
|
s = {
|
|
1444
1454
|
x: t.x - n.width,
|
|
1445
|
-
y:
|
|
1455
|
+
y: r
|
|
1446
1456
|
};
|
|
1447
1457
|
break;
|
|
1448
1458
|
default:
|
|
@@ -1454,51 +1464,51 @@ function In(e) {
|
|
|
1454
1464
|
var v = i ? Zt(i) : null;
|
|
1455
1465
|
if (v != null) {
|
|
1456
1466
|
var c = v === "y" ? "height" : "width";
|
|
1457
|
-
switch (
|
|
1467
|
+
switch (l) {
|
|
1458
1468
|
case qe:
|
|
1459
1469
|
s[v] = s[v] - (t[c] / 2 - n[c] / 2);
|
|
1460
1470
|
break;
|
|
1461
|
-
case
|
|
1471
|
+
case lt:
|
|
1462
1472
|
s[v] = s[v] + (t[c] / 2 - n[c] / 2);
|
|
1463
1473
|
break;
|
|
1464
1474
|
}
|
|
1465
1475
|
}
|
|
1466
1476
|
return s;
|
|
1467
1477
|
}
|
|
1468
|
-
function
|
|
1478
|
+
function rt(e, t) {
|
|
1469
1479
|
t === void 0 && (t = {});
|
|
1470
|
-
var n = t, a = n.placement, i = a === void 0 ? e.placement : a,
|
|
1480
|
+
var n = t, a = n.placement, i = a === void 0 ? e.placement : a, l = n.strategy, o = l === void 0 ? e.strategy : l, r = n.boundary, s = r === void 0 ? Na : r, v = n.rootBoundary, c = v === void 0 ? Rn : v, d = n.elementContext, g = d === void 0 ? Ge : d, h = n.altBoundary, y = h === void 0 ? !1 : h, C = n.padding, B = C === void 0 ? 0 : C, O = Pn(typeof B != "number" ? B : Dn(B, ct)), $ = g === Ge ? ja : Ge, E = e.rects.popper, x = e.elements[y ? $ : g], k = wi(Ne(x) ? x : x.contextElement || De(e.elements.popper), s, c, o), w = Xe(e.elements.reference), W = In({
|
|
1471
1481
|
reference: w,
|
|
1472
1482
|
element: E,
|
|
1473
1483
|
placement: i
|
|
1474
|
-
}), R = Vt(Object.assign({}, E, W)),
|
|
1475
|
-
top: k.top -
|
|
1476
|
-
bottom:
|
|
1477
|
-
left: k.left -
|
|
1478
|
-
right:
|
|
1484
|
+
}), R = Vt(Object.assign({}, E, W)), U = g === Ge ? R : w, q = {
|
|
1485
|
+
top: k.top - U.top + O.top,
|
|
1486
|
+
bottom: U.bottom - k.bottom + O.bottom,
|
|
1487
|
+
left: k.left - U.left + O.left,
|
|
1488
|
+
right: U.right - k.right + O.right
|
|
1479
1489
|
}, M = e.modifiersData.offset;
|
|
1480
1490
|
if (g === Ge && M) {
|
|
1481
1491
|
var se = M[i];
|
|
1482
|
-
Object.keys(
|
|
1483
|
-
var te = [Te, Oe].indexOf(Q) >= 0 ? 1 : -1,
|
|
1484
|
-
|
|
1492
|
+
Object.keys(q).forEach(function(Q) {
|
|
1493
|
+
var te = [Te, Oe].indexOf(Q) >= 0 ? 1 : -1, me = [we, Oe].indexOf(Q) >= 0 ? "y" : "x";
|
|
1494
|
+
q[Q] += se[me] * te;
|
|
1485
1495
|
});
|
|
1486
1496
|
}
|
|
1487
|
-
return
|
|
1497
|
+
return q;
|
|
1488
1498
|
}
|
|
1489
1499
|
function xi(e, t) {
|
|
1490
1500
|
t === void 0 && (t = {});
|
|
1491
|
-
var n = t, a = n.placement, i = n.boundary,
|
|
1501
|
+
var n = t, a = n.placement, i = n.boundary, l = n.rootBoundary, o = n.padding, r = n.flipVariations, s = n.allowedAutoPlacements, v = s === void 0 ? Bn : s, c = Ke(a), d = c ? r ? un : un.filter(function(y) {
|
|
1492
1502
|
return Ke(y) === c;
|
|
1493
1503
|
}) : ct, g = d.filter(function(y) {
|
|
1494
1504
|
return v.indexOf(y) >= 0;
|
|
1495
1505
|
});
|
|
1496
1506
|
g.length === 0 && (g = d);
|
|
1497
1507
|
var h = g.reduce(function(y, C) {
|
|
1498
|
-
return y[C] =
|
|
1508
|
+
return y[C] = rt(e, {
|
|
1499
1509
|
placement: C,
|
|
1500
1510
|
boundary: i,
|
|
1501
|
-
rootBoundary:
|
|
1511
|
+
rootBoundary: l,
|
|
1502
1512
|
padding: o
|
|
1503
1513
|
})[Ee(C)], y;
|
|
1504
1514
|
}, {});
|
|
@@ -1515,7 +1525,7 @@ function ki(e) {
|
|
|
1515
1525
|
function Si(e) {
|
|
1516
1526
|
var t = e.state, n = e.options, a = e.name;
|
|
1517
1527
|
if (!t.modifiersData[a]._skip) {
|
|
1518
|
-
for (var i = n.mainAxis,
|
|
1528
|
+
for (var i = n.mainAxis, l = i === void 0 ? !0 : i, o = n.altAxis, r = o === void 0 ? !0 : o, s = n.fallbackPlacements, v = n.padding, c = n.boundary, d = n.rootBoundary, g = n.altBoundary, h = n.flipVariations, y = h === void 0 ? !0 : h, C = n.allowedAutoPlacements, B = t.options.placement, O = Ee(B), $ = O === B, E = s || ($ || !y ? [bt(B)] : ki(B)), x = [B].concat(E).reduce(function(I, ee) {
|
|
1519
1529
|
return I.concat(Ee(ee) === Xt ? xi(t, {
|
|
1520
1530
|
placement: ee,
|
|
1521
1531
|
boundary: c,
|
|
@@ -1524,40 +1534,40 @@ function Si(e) {
|
|
|
1524
1534
|
flipVariations: y,
|
|
1525
1535
|
allowedAutoPlacements: C
|
|
1526
1536
|
}) : ee);
|
|
1527
|
-
}, []), k = t.rects.reference, w = t.rects.popper, W = /* @__PURE__ */ new Map(), R = !0,
|
|
1528
|
-
var M = x[
|
|
1537
|
+
}, []), k = t.rects.reference, w = t.rects.popper, W = /* @__PURE__ */ new Map(), R = !0, U = x[0], q = 0; q < x.length; q++) {
|
|
1538
|
+
var M = x[q], se = Ee(M), Q = Ke(M) === qe, te = [we, Oe].indexOf(se) >= 0, me = te ? "width" : "height", Z = rt(t, {
|
|
1529
1539
|
placement: M,
|
|
1530
1540
|
boundary: c,
|
|
1531
1541
|
rootBoundary: d,
|
|
1532
1542
|
altBoundary: g,
|
|
1533
1543
|
padding: v
|
|
1534
1544
|
}), D = te ? Q ? Te : xe : Q ? Oe : we;
|
|
1535
|
-
k[
|
|
1545
|
+
k[me] > w[me] && (D = bt(D));
|
|
1536
1546
|
var N = bt(D), A = [];
|
|
1537
|
-
if (
|
|
1547
|
+
if (l && A.push(Z[se] <= 0), r && A.push(Z[D] <= 0, Z[N] <= 0), A.every(function(I) {
|
|
1538
1548
|
return I;
|
|
1539
1549
|
})) {
|
|
1540
|
-
|
|
1550
|
+
U = M, R = !1;
|
|
1541
1551
|
break;
|
|
1542
1552
|
}
|
|
1543
1553
|
W.set(M, A);
|
|
1544
1554
|
}
|
|
1545
1555
|
if (R)
|
|
1546
|
-
for (var
|
|
1556
|
+
for (var Y = y ? 3 : 1, J = function(ee) {
|
|
1547
1557
|
var ce = x.find(function(b) {
|
|
1548
|
-
var
|
|
1549
|
-
if (
|
|
1550
|
-
return
|
|
1551
|
-
return
|
|
1558
|
+
var le = W.get(b);
|
|
1559
|
+
if (le)
|
|
1560
|
+
return le.slice(0, ee).every(function(re) {
|
|
1561
|
+
return re;
|
|
1552
1562
|
});
|
|
1553
1563
|
});
|
|
1554
1564
|
if (ce)
|
|
1555
|
-
return
|
|
1556
|
-
}, f =
|
|
1565
|
+
return U = ce, "break";
|
|
1566
|
+
}, f = Y; f > 0; f--) {
|
|
1557
1567
|
var T = J(f);
|
|
1558
1568
|
if (T === "break") break;
|
|
1559
1569
|
}
|
|
1560
|
-
t.placement !==
|
|
1570
|
+
t.placement !== U && (t.modifiersData[a]._skip = !0, t.placement = U, t.reset = !0);
|
|
1561
1571
|
}
|
|
1562
1572
|
}
|
|
1563
1573
|
const $i = {
|
|
@@ -1587,11 +1597,11 @@ function hn(e) {
|
|
|
1587
1597
|
});
|
|
1588
1598
|
}
|
|
1589
1599
|
function Ci(e) {
|
|
1590
|
-
var t = e.state, n = e.name, a = t.rects.reference, i = t.rects.popper,
|
|
1600
|
+
var t = e.state, n = e.name, a = t.rects.reference, i = t.rects.popper, l = t.modifiersData.preventOverflow, o = rt(t, {
|
|
1591
1601
|
elementContext: "reference"
|
|
1592
|
-
}),
|
|
1602
|
+
}), r = rt(t, {
|
|
1593
1603
|
altBoundary: !0
|
|
1594
|
-
}), s = mn(o, a), v = mn(
|
|
1604
|
+
}), s = mn(o, a), v = mn(r, i, l), c = hn(s), d = hn(v);
|
|
1595
1605
|
t.modifiersData[n] = {
|
|
1596
1606
|
referenceClippingOffsets: s,
|
|
1597
1607
|
popperEscapeOffsets: v,
|
|
@@ -1610,21 +1620,21 @@ const Oi = {
|
|
|
1610
1620
|
fn: Ci
|
|
1611
1621
|
};
|
|
1612
1622
|
function Ti(e, t, n) {
|
|
1613
|
-
var a = Ee(e), i = [xe, we].indexOf(a) >= 0 ? -1 : 1,
|
|
1623
|
+
var a = Ee(e), i = [xe, we].indexOf(a) >= 0 ? -1 : 1, l = typeof n == "function" ? n(Object.assign({}, t, {
|
|
1614
1624
|
placement: e
|
|
1615
|
-
})) : n, o =
|
|
1616
|
-
return o = o || 0,
|
|
1617
|
-
x:
|
|
1625
|
+
})) : n, o = l[0], r = l[1];
|
|
1626
|
+
return o = o || 0, r = (r || 0) * i, [xe, Te].indexOf(a) >= 0 ? {
|
|
1627
|
+
x: r,
|
|
1618
1628
|
y: o
|
|
1619
1629
|
} : {
|
|
1620
1630
|
x: o,
|
|
1621
|
-
y:
|
|
1631
|
+
y: r
|
|
1622
1632
|
};
|
|
1623
1633
|
}
|
|
1624
1634
|
function zi(e) {
|
|
1625
|
-
var t = e.state, n = e.options, a = e.name, i = n.offset,
|
|
1626
|
-
return c[d] = Ti(d, t.rects,
|
|
1627
|
-
}, {}),
|
|
1635
|
+
var t = e.state, n = e.options, a = e.name, i = n.offset, l = i === void 0 ? [0, 0] : i, o = Bn.reduce(function(c, d) {
|
|
1636
|
+
return c[d] = Ti(d, t.rects, l), c;
|
|
1637
|
+
}, {}), r = o[t.placement], s = r.x, v = r.y;
|
|
1628
1638
|
t.modifiersData.popperOffsets != null && (t.modifiersData.popperOffsets.x += s, t.modifiersData.popperOffsets.y += v), t.modifiersData[a] = o;
|
|
1629
1639
|
}
|
|
1630
1640
|
const Li = {
|
|
@@ -1653,34 +1663,34 @@ function Bi(e) {
|
|
|
1653
1663
|
return e === "x" ? "y" : "x";
|
|
1654
1664
|
}
|
|
1655
1665
|
function Wi(e) {
|
|
1656
|
-
var t = e.state, n = e.options, a = e.name, i = n.mainAxis,
|
|
1666
|
+
var t = e.state, n = e.options, a = e.name, i = n.mainAxis, l = i === void 0 ? !0 : i, o = n.altAxis, r = o === void 0 ? !1 : o, s = n.boundary, v = n.rootBoundary, c = n.altBoundary, d = n.padding, g = n.tether, h = g === void 0 ? !0 : g, y = n.tetherOffset, C = y === void 0 ? 0 : y, B = rt(t, {
|
|
1657
1667
|
boundary: s,
|
|
1658
1668
|
rootBoundary: v,
|
|
1659
1669
|
padding: d,
|
|
1660
1670
|
altBoundary: c
|
|
1661
|
-
}), O = Ee(t.placement), $ = Ke(t.placement), E = !$, x = Zt(O), k = Bi(x), w = t.modifiersData.popperOffsets, W = t.rects.reference, R = t.rects.popper,
|
|
1671
|
+
}), O = Ee(t.placement), $ = Ke(t.placement), E = !$, x = Zt(O), k = Bi(x), w = t.modifiersData.popperOffsets, W = t.rects.reference, R = t.rects.popper, U = typeof C == "function" ? C(Object.assign({}, t.rects, {
|
|
1662
1672
|
placement: t.placement
|
|
1663
|
-
})) : C,
|
|
1664
|
-
mainAxis:
|
|
1665
|
-
altAxis:
|
|
1673
|
+
})) : C, q = typeof U == "number" ? {
|
|
1674
|
+
mainAxis: U,
|
|
1675
|
+
altAxis: U
|
|
1666
1676
|
} : Object.assign({
|
|
1667
1677
|
mainAxis: 0,
|
|
1668
1678
|
altAxis: 0
|
|
1669
|
-
},
|
|
1679
|
+
}, U), M = t.modifiersData.offset ? t.modifiersData.offset[t.placement] : null, se = {
|
|
1670
1680
|
x: 0,
|
|
1671
1681
|
y: 0
|
|
1672
1682
|
};
|
|
1673
1683
|
if (w) {
|
|
1674
|
-
if (
|
|
1675
|
-
var Q, te = x === "y" ? we : xe,
|
|
1684
|
+
if (l) {
|
|
1685
|
+
var Q, te = x === "y" ? we : xe, me = x === "y" ? Oe : Te, Z = x === "y" ? "height" : "width", D = w[x], N = D + B[te], A = D - B[me], Y = h ? -R[Z] / 2 : 0, J = $ === qe ? W[Z] : R[Z], f = $ === qe ? -R[Z] : -W[Z], T = t.elements.arrow, I = h && T ? Gt(T) : {
|
|
1676
1686
|
width: 0,
|
|
1677
1687
|
height: 0
|
|
1678
|
-
}, ee = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : Vn(), ce = ee[te], b = ee[
|
|
1688
|
+
}, ee = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : Vn(), ce = ee[te], b = ee[me], le = et(0, W[Z], I[Z]), re = E ? W[Z] / 2 - Y - le - ce - q.mainAxis : J - le - ce - q.mainAxis, ke = E ? -W[Z] / 2 + Y + le + b + q.mainAxis : f + le + b + q.mainAxis, Me = t.elements.arrow && ut(t.elements.arrow), L = Me ? x === "y" ? Me.clientTop || 0 : Me.clientLeft || 0 : 0, P = (Q = M?.[x]) != null ? Q : 0, fe = D + re - P - L, ue = D + ke - P, Ae = et(h ? yt(N, fe) : N, D, h ? Ie(A, ue) : A);
|
|
1679
1689
|
w[x] = Ae, se[x] = Ae - D;
|
|
1680
1690
|
}
|
|
1681
|
-
if (
|
|
1682
|
-
var dt, S = x === "x" ? we : xe, K = x === "x" ? Oe : Te, _ = w[k], be = k === "y" ? "height" : "width",
|
|
1683
|
-
w[k] =
|
|
1691
|
+
if (r) {
|
|
1692
|
+
var dt, S = x === "x" ? we : xe, K = x === "x" ? Oe : Te, _ = w[k], be = k === "y" ? "height" : "width", he = _ + B[S], ft = _ - B[K], vt = [we, xe].indexOf(O) !== -1, nn = (dt = M?.[k]) != null ? dt : 0, an = vt ? he : _ - W[be] - R[be] - nn + q.altAxis, ln = vt ? _ + W[be] + R[be] - nn - q.altAxis : ft, rn = h && vt ? ai(an, _, ln) : et(h ? an : he, _, h ? ln : ft);
|
|
1693
|
+
w[k] = rn, se[k] = rn - _;
|
|
1684
1694
|
}
|
|
1685
1695
|
t.modifiersData[a] = se;
|
|
1686
1696
|
}
|
|
@@ -1707,7 +1717,7 @@ function Di(e) {
|
|
|
1707
1717
|
}
|
|
1708
1718
|
function Mi(e, t, n) {
|
|
1709
1719
|
n === void 0 && (n = !1);
|
|
1710
|
-
var a = Ce(t), i = Ce(t) && Di(t),
|
|
1720
|
+
var a = Ce(t), i = Ce(t) && Di(t), l = De(t), o = Xe(e, i, n), r = {
|
|
1711
1721
|
scrollLeft: 0,
|
|
1712
1722
|
scrollTop: 0
|
|
1713
1723
|
}, s = {
|
|
@@ -1715,30 +1725,30 @@ function Mi(e, t, n) {
|
|
|
1715
1725
|
y: 0
|
|
1716
1726
|
};
|
|
1717
1727
|
return (a || !a && !n) && ((Re(t) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
|
|
1718
|
-
en(
|
|
1719
|
-
x: o.left +
|
|
1720
|
-
y: o.top +
|
|
1728
|
+
en(l)) && (r = Pi(t)), Ce(t) ? (s = Xe(t, !0), s.x += t.clientLeft, s.y += t.clientTop) : l && (s.x = Jt(l))), {
|
|
1729
|
+
x: o.left + r.scrollLeft - s.x,
|
|
1730
|
+
y: o.top + r.scrollTop - s.y,
|
|
1721
1731
|
width: o.width,
|
|
1722
1732
|
height: o.height
|
|
1723
1733
|
};
|
|
1724
1734
|
}
|
|
1725
1735
|
function Ii(e) {
|
|
1726
1736
|
var t = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Set(), a = [];
|
|
1727
|
-
e.forEach(function(
|
|
1728
|
-
t.set(
|
|
1737
|
+
e.forEach(function(l) {
|
|
1738
|
+
t.set(l.name, l);
|
|
1729
1739
|
});
|
|
1730
|
-
function i(
|
|
1731
|
-
n.add(
|
|
1732
|
-
var o = [].concat(
|
|
1733
|
-
o.forEach(function(
|
|
1734
|
-
if (!n.has(
|
|
1735
|
-
var s = t.get(
|
|
1740
|
+
function i(l) {
|
|
1741
|
+
n.add(l.name);
|
|
1742
|
+
var o = [].concat(l.requires || [], l.requiresIfExists || []);
|
|
1743
|
+
o.forEach(function(r) {
|
|
1744
|
+
if (!n.has(r)) {
|
|
1745
|
+
var s = t.get(r);
|
|
1736
1746
|
s && i(s);
|
|
1737
1747
|
}
|
|
1738
|
-
}), a.push(
|
|
1748
|
+
}), a.push(l);
|
|
1739
1749
|
}
|
|
1740
|
-
return e.forEach(function(
|
|
1741
|
-
n.has(
|
|
1750
|
+
return e.forEach(function(l) {
|
|
1751
|
+
n.has(l.name) || i(l);
|
|
1742
1752
|
}), a;
|
|
1743
1753
|
}
|
|
1744
1754
|
function Ni(e) {
|
|
@@ -1785,16 +1795,16 @@ function bn() {
|
|
|
1785
1795
|
}
|
|
1786
1796
|
function Fi(e) {
|
|
1787
1797
|
e === void 0 && (e = {});
|
|
1788
|
-
var t = e, n = t.defaultModifiers, a = n === void 0 ? [] : n, i = t.defaultOptions,
|
|
1789
|
-
return function(
|
|
1790
|
-
v === void 0 && (v =
|
|
1798
|
+
var t = e, n = t.defaultModifiers, a = n === void 0 ? [] : n, i = t.defaultOptions, l = i === void 0 ? gn : i;
|
|
1799
|
+
return function(r, s, v) {
|
|
1800
|
+
v === void 0 && (v = l);
|
|
1791
1801
|
var c = {
|
|
1792
1802
|
placement: "bottom",
|
|
1793
1803
|
orderedModifiers: [],
|
|
1794
|
-
options: Object.assign({}, gn,
|
|
1804
|
+
options: Object.assign({}, gn, l),
|
|
1795
1805
|
modifiersData: {},
|
|
1796
1806
|
elements: {
|
|
1797
|
-
reference:
|
|
1807
|
+
reference: r,
|
|
1798
1808
|
popper: s
|
|
1799
1809
|
},
|
|
1800
1810
|
attributes: {},
|
|
@@ -1803,8 +1813,8 @@ function Fi(e) {
|
|
|
1803
1813
|
state: c,
|
|
1804
1814
|
setOptions: function(O) {
|
|
1805
1815
|
var $ = typeof O == "function" ? O(c.options) : O;
|
|
1806
|
-
C(), c.options = Object.assign({},
|
|
1807
|
-
reference: Ne(
|
|
1816
|
+
C(), c.options = Object.assign({}, l, c.options, $), c.scrollParents = {
|
|
1817
|
+
reference: Ne(r) ? tt(r) : r.contextElement ? tt(r.contextElement) : [],
|
|
1808
1818
|
popper: tt(s)
|
|
1809
1819
|
};
|
|
1810
1820
|
var E = Ni(_i([].concat(a, c.options.modifiers)));
|
|
@@ -1824,19 +1834,19 @@ function Fi(e) {
|
|
|
1824
1834
|
c.rects = {
|
|
1825
1835
|
reference: Mi($, ut(E), c.options.strategy === "fixed"),
|
|
1826
1836
|
popper: Gt(E)
|
|
1827
|
-
}, c.reset = !1, c.placement = c.options.placement, c.orderedModifiers.forEach(function(
|
|
1828
|
-
return c.modifiersData[
|
|
1837
|
+
}, c.reset = !1, c.placement = c.options.placement, c.orderedModifiers.forEach(function(q) {
|
|
1838
|
+
return c.modifiersData[q.name] = Object.assign({}, q.data);
|
|
1829
1839
|
});
|
|
1830
1840
|
for (var x = 0; x < c.orderedModifiers.length; x++) {
|
|
1831
1841
|
if (c.reset === !0) {
|
|
1832
1842
|
c.reset = !1, x = -1;
|
|
1833
1843
|
continue;
|
|
1834
1844
|
}
|
|
1835
|
-
var k = c.orderedModifiers[x], w = k.fn, W = k.options, R = W === void 0 ? {} : W,
|
|
1845
|
+
var k = c.orderedModifiers[x], w = k.fn, W = k.options, R = W === void 0 ? {} : W, U = k.name;
|
|
1836
1846
|
typeof w == "function" && (c = w({
|
|
1837
1847
|
state: c,
|
|
1838
1848
|
options: R,
|
|
1839
|
-
name:
|
|
1849
|
+
name: U,
|
|
1840
1850
|
instance: h
|
|
1841
1851
|
}) || c);
|
|
1842
1852
|
}
|
|
@@ -1854,7 +1864,7 @@ function Fi(e) {
|
|
|
1854
1864
|
C(), g = !0;
|
|
1855
1865
|
}
|
|
1856
1866
|
};
|
|
1857
|
-
if (!bn(
|
|
1867
|
+
if (!bn(r, s))
|
|
1858
1868
|
return h;
|
|
1859
1869
|
h.setOptions(v).then(function(B) {
|
|
1860
1870
|
!g && v.onFirstUpdate && v.onFirstUpdate(B);
|
|
@@ -1899,36 +1909,36 @@ var Gi = Object.prototype, Zi = Gi.toString;
|
|
|
1899
1909
|
function Qi(e) {
|
|
1900
1910
|
return Zi.call(e);
|
|
1901
1911
|
}
|
|
1902
|
-
var Ji = "[object Null]",
|
|
1903
|
-
function
|
|
1904
|
-
return e == null ? e === void 0 ?
|
|
1912
|
+
var Ji = "[object Null]", el = "[object Undefined]", yn = wt ? wt.toStringTag : void 0;
|
|
1913
|
+
function tl(e) {
|
|
1914
|
+
return e == null ? e === void 0 ? el : Ji : yn && yn in Object(e) ? Ki(e) : Qi(e);
|
|
1905
1915
|
}
|
|
1906
|
-
function
|
|
1916
|
+
function nl(e) {
|
|
1907
1917
|
return e != null && typeof e == "object";
|
|
1908
1918
|
}
|
|
1909
|
-
var
|
|
1910
|
-
function
|
|
1911
|
-
return typeof e == "symbol" ||
|
|
1919
|
+
var al = "[object Symbol]";
|
|
1920
|
+
function il(e) {
|
|
1921
|
+
return typeof e == "symbol" || nl(e) && tl(e) == al;
|
|
1912
1922
|
}
|
|
1913
|
-
var
|
|
1914
|
-
function
|
|
1915
|
-
for (var t = e.length; t-- &&
|
|
1923
|
+
var ll = /\s/;
|
|
1924
|
+
function rl(e) {
|
|
1925
|
+
for (var t = e.length; t-- && ll.test(e.charAt(t)); )
|
|
1916
1926
|
;
|
|
1917
1927
|
return t;
|
|
1918
1928
|
}
|
|
1919
|
-
var
|
|
1920
|
-
function
|
|
1921
|
-
return e && e.slice(0,
|
|
1929
|
+
var ol = /^\s+/;
|
|
1930
|
+
function sl(e) {
|
|
1931
|
+
return e && e.slice(0, rl(e) + 1).replace(ol, "");
|
|
1922
1932
|
}
|
|
1923
1933
|
function xt(e) {
|
|
1924
1934
|
var t = typeof e;
|
|
1925
1935
|
return e != null && (t == "object" || t == "function");
|
|
1926
1936
|
}
|
|
1927
|
-
var wn = NaN,
|
|
1937
|
+
var wn = NaN, cl = /^[-+]0x[0-9a-f]+$/i, ul = /^0b[01]+$/i, dl = /^0o[0-7]+$/i, fl = parseInt;
|
|
1928
1938
|
function xn(e) {
|
|
1929
1939
|
if (typeof e == "number")
|
|
1930
1940
|
return e;
|
|
1931
|
-
if (
|
|
1941
|
+
if (il(e))
|
|
1932
1942
|
return wn;
|
|
1933
1943
|
if (xt(e)) {
|
|
1934
1944
|
var t = typeof e.valueOf == "function" ? e.valueOf() : e;
|
|
@@ -1936,65 +1946,65 @@ function xn(e) {
|
|
|
1936
1946
|
}
|
|
1937
1947
|
if (typeof e != "string")
|
|
1938
1948
|
return e === 0 ? e : +e;
|
|
1939
|
-
e =
|
|
1940
|
-
var n =
|
|
1941
|
-
return n ||
|
|
1949
|
+
e = sl(e);
|
|
1950
|
+
var n = ul.test(e);
|
|
1951
|
+
return n || dl.test(e) ? fl(e.slice(2), n ? 2 : 8) : cl.test(e) ? wn : +e;
|
|
1942
1952
|
}
|
|
1943
1953
|
var Rt = function() {
|
|
1944
1954
|
return jn.Date.now();
|
|
1945
|
-
},
|
|
1955
|
+
}, vl = "Expected a function", pl = Math.max, ml = Math.min;
|
|
1946
1956
|
function Pt(e, t, n) {
|
|
1947
|
-
var a, i,
|
|
1957
|
+
var a, i, l, o, r, s, v = 0, c = !1, d = !1, g = !0;
|
|
1948
1958
|
if (typeof e != "function")
|
|
1949
|
-
throw new TypeError(
|
|
1950
|
-
t = xn(t) || 0, xt(n) && (c = !!n.leading, d = "maxWait" in n,
|
|
1959
|
+
throw new TypeError(vl);
|
|
1960
|
+
t = xn(t) || 0, xt(n) && (c = !!n.leading, d = "maxWait" in n, l = d ? pl(xn(n.maxWait) || 0, t) : l, g = "trailing" in n ? !!n.trailing : g);
|
|
1951
1961
|
function h(w) {
|
|
1952
1962
|
var W = a, R = i;
|
|
1953
1963
|
return a = i = void 0, v = w, o = e.apply(R, W), o;
|
|
1954
1964
|
}
|
|
1955
1965
|
function y(w) {
|
|
1956
|
-
return v = w,
|
|
1966
|
+
return v = w, r = setTimeout(O, t), c ? h(w) : o;
|
|
1957
1967
|
}
|
|
1958
1968
|
function C(w) {
|
|
1959
|
-
var W = w - s, R = w - v,
|
|
1960
|
-
return d ?
|
|
1969
|
+
var W = w - s, R = w - v, U = t - W;
|
|
1970
|
+
return d ? ml(U, l - R) : U;
|
|
1961
1971
|
}
|
|
1962
1972
|
function B(w) {
|
|
1963
1973
|
var W = w - s, R = w - v;
|
|
1964
|
-
return s === void 0 || W >= t || W < 0 || d && R >=
|
|
1974
|
+
return s === void 0 || W >= t || W < 0 || d && R >= l;
|
|
1965
1975
|
}
|
|
1966
1976
|
function O() {
|
|
1967
1977
|
var w = Rt();
|
|
1968
1978
|
if (B(w))
|
|
1969
1979
|
return $(w);
|
|
1970
|
-
|
|
1980
|
+
r = setTimeout(O, C(w));
|
|
1971
1981
|
}
|
|
1972
1982
|
function $(w) {
|
|
1973
|
-
return
|
|
1983
|
+
return r = void 0, g && a ? h(w) : (a = i = void 0, o);
|
|
1974
1984
|
}
|
|
1975
1985
|
function E() {
|
|
1976
|
-
|
|
1986
|
+
r !== void 0 && clearTimeout(r), v = 0, a = s = i = r = void 0;
|
|
1977
1987
|
}
|
|
1978
1988
|
function x() {
|
|
1979
|
-
return
|
|
1989
|
+
return r === void 0 ? o : $(Rt());
|
|
1980
1990
|
}
|
|
1981
1991
|
function k() {
|
|
1982
1992
|
var w = Rt(), W = B(w);
|
|
1983
1993
|
if (a = arguments, i = this, s = w, W) {
|
|
1984
|
-
if (
|
|
1994
|
+
if (r === void 0)
|
|
1985
1995
|
return y(s);
|
|
1986
1996
|
if (d)
|
|
1987
|
-
return clearTimeout(
|
|
1997
|
+
return clearTimeout(r), r = setTimeout(O, t), h(s);
|
|
1988
1998
|
}
|
|
1989
|
-
return
|
|
1999
|
+
return r === void 0 && (r = setTimeout(O, t)), o;
|
|
1990
2000
|
}
|
|
1991
2001
|
return k.cancel = E, k.flush = x, k;
|
|
1992
2002
|
}
|
|
1993
|
-
var
|
|
1994
|
-
function
|
|
2003
|
+
var hl = "Expected a function";
|
|
2004
|
+
function gl(e, t, n) {
|
|
1995
2005
|
var a = !0, i = !0;
|
|
1996
2006
|
if (typeof e != "function")
|
|
1997
|
-
throw new TypeError(
|
|
2007
|
+
throw new TypeError(hl);
|
|
1998
2008
|
return xt(n) && (a = "leading" in n ? !!n.leading : a, i = "trailing" in n ? !!n.trailing : i), Pt(e, t, {
|
|
1999
2009
|
leading: a,
|
|
2000
2010
|
maxWait: t,
|
|
@@ -2003,27 +2013,27 @@ function gr(e, t, n) {
|
|
|
2003
2013
|
}
|
|
2004
2014
|
function Fn(e, t, n = {}) {
|
|
2005
2015
|
const { ignore: a = [], capture: i = !0 } = n;
|
|
2006
|
-
let
|
|
2016
|
+
let l = !1;
|
|
2007
2017
|
function o(d, g) {
|
|
2008
2018
|
return d ? d === g || d.contains(g) : !1;
|
|
2009
2019
|
}
|
|
2010
|
-
function
|
|
2011
|
-
return d.some((h) => o(
|
|
2020
|
+
function r(d, g) {
|
|
2021
|
+
return d.some((h) => o(F(h), g));
|
|
2012
2022
|
}
|
|
2013
2023
|
function s() {
|
|
2014
2024
|
return Array.isArray(e) ? e : [e];
|
|
2015
2025
|
}
|
|
2016
2026
|
function v(d) {
|
|
2017
2027
|
const g = d.target;
|
|
2018
|
-
g instanceof Node && (
|
|
2028
|
+
g instanceof Node && (l = r(s(), g) || r(a, g));
|
|
2019
2029
|
}
|
|
2020
2030
|
function c(d) {
|
|
2021
|
-
if (
|
|
2022
|
-
|
|
2031
|
+
if (l) {
|
|
2032
|
+
l = !1;
|
|
2023
2033
|
return;
|
|
2024
2034
|
}
|
|
2025
2035
|
const g = d.target;
|
|
2026
|
-
g instanceof Node && !
|
|
2036
|
+
g instanceof Node && !r(s(), g) && !r(a, g) && t(d);
|
|
2027
2037
|
}
|
|
2028
2038
|
Pe(() => {
|
|
2029
2039
|
document.addEventListener("pointerdown", v, i), document.addEventListener("click", c, i);
|
|
@@ -2036,11 +2046,11 @@ const Hn = 1, ot = typeof window < "u" && typeof document < "u", $e = (e) => {
|
|
|
2036
2046
|
return typeof e == "function" ? e() : typeof HTMLElement < "u" && e instanceof HTMLElement ? e : e && typeof e == "object" && "value" in e ? e.value : e;
|
|
2037
2047
|
}, Je = /* @__PURE__ */ new WeakMap();
|
|
2038
2048
|
let Bt = null;
|
|
2039
|
-
const
|
|
2049
|
+
const bl = () => !ot || typeof ResizeObserver > "u" ? null : (Bt || (Bt = new ResizeObserver((e) => {
|
|
2040
2050
|
for (const t of e)
|
|
2041
2051
|
Je.get(t.target)?.forEach((n) => n());
|
|
2042
|
-
})), Bt),
|
|
2043
|
-
const n =
|
|
2052
|
+
})), Bt), yl = (e, t) => {
|
|
2053
|
+
const n = bl();
|
|
2044
2054
|
if (!n) return () => {
|
|
2045
2055
|
};
|
|
2046
2056
|
let a = Je.get(e);
|
|
@@ -2052,21 +2062,21 @@ const br = () => !ot || typeof ResizeObserver > "u" ? null : (Bt || (Bt = new Re
|
|
|
2052
2062
|
let nt = !1;
|
|
2053
2063
|
const Dt = () => {
|
|
2054
2064
|
kt.forEach((e) => e());
|
|
2055
|
-
},
|
|
2065
|
+
}, wl = () => {
|
|
2056
2066
|
nt || !ot || !document.fonts || (nt = !0, document.fonts.addEventListener("loadingdone", Dt), document.fonts.ready.then(() => {
|
|
2057
2067
|
nt && Dt();
|
|
2058
2068
|
}));
|
|
2059
|
-
},
|
|
2069
|
+
}, xl = () => {
|
|
2060
2070
|
!nt || kt.size > 0 || !ot || (nt = !1, document.fonts?.removeEventListener("loadingdone", Dt));
|
|
2061
|
-
},
|
|
2062
|
-
kt.delete(e),
|
|
2063
|
-
}),
|
|
2071
|
+
}, kl = (e) => (kt.add(e), wl(), () => {
|
|
2072
|
+
kt.delete(e), xl();
|
|
2073
|
+
}), Sl = (e) => e.isConnected ? !(e.offsetWidth === 0 && e.offsetHeight === 0 && e.clientWidth === 0 && e.clientHeight === 0) : !1, $l = (e, t = "horizontal", n = Hn) => {
|
|
2064
2074
|
const a = e.scrollWidth - e.clientWidth > n, i = e.scrollHeight - e.clientHeight > n;
|
|
2065
2075
|
return { overflowX: a, overflowY: i, overflow: t === "vertical" ? i : t === "both" ? a || i : a };
|
|
2066
2076
|
};
|
|
2067
|
-
function
|
|
2077
|
+
function Ur(e, t = {}) {
|
|
2068
2078
|
const n = V(!1), a = V(!1), i = V(!1);
|
|
2069
|
-
let
|
|
2079
|
+
let l = 0, o = !1, r, s;
|
|
2070
2080
|
const v = (R) => {
|
|
2071
2081
|
n.value = R.overflowX, a.value = R.overflowY, i.value = R.overflow;
|
|
2072
2082
|
}, c = () => {
|
|
@@ -2077,45 +2087,45 @@ function Ul(e, t = {}) {
|
|
|
2077
2087
|
const R = $e(e);
|
|
2078
2088
|
if (!R)
|
|
2079
2089
|
return c(), !1;
|
|
2080
|
-
if (!
|
|
2081
|
-
const
|
|
2090
|
+
if (!Sl(R)) return i.value;
|
|
2091
|
+
const U = $l(
|
|
2082
2092
|
R,
|
|
2083
2093
|
$e(t.axis) ?? "horizontal",
|
|
2084
2094
|
$e(t.threshold) ?? Hn
|
|
2085
2095
|
);
|
|
2086
|
-
return v(
|
|
2096
|
+
return v(U), U.overflow;
|
|
2087
2097
|
}, g = () => {
|
|
2088
|
-
|
|
2098
|
+
l && (ot && cancelAnimationFrame(l), l = 0);
|
|
2089
2099
|
}, h = () => (g(), d()), y = () => {
|
|
2090
2100
|
if (!o) {
|
|
2091
2101
|
if (!ot || $e(t.raf) === !1) {
|
|
2092
2102
|
d();
|
|
2093
2103
|
return;
|
|
2094
2104
|
}
|
|
2095
|
-
|
|
2096
|
-
|
|
2105
|
+
l || (l = requestAnimationFrame(() => {
|
|
2106
|
+
l = 0, d();
|
|
2097
2107
|
}));
|
|
2098
2108
|
}
|
|
2099
2109
|
}, C = () => {
|
|
2100
|
-
|
|
2110
|
+
r?.(), r = void 0;
|
|
2101
2111
|
}, B = (R) => {
|
|
2102
|
-
C(),
|
|
2112
|
+
C(), r = yl(R, y);
|
|
2103
2113
|
}, O = () => {
|
|
2104
2114
|
s?.(), s = void 0;
|
|
2105
2115
|
}, $ = () => {
|
|
2106
|
-
O(), s =
|
|
2116
|
+
O(), s = kl(y);
|
|
2107
2117
|
}, E = ie(
|
|
2108
2118
|
() => [
|
|
2109
2119
|
$e(e),
|
|
2110
2120
|
$e(t.enabled) !== !1,
|
|
2111
2121
|
$e(t.observeResize) !== !1
|
|
2112
2122
|
],
|
|
2113
|
-
([R,
|
|
2114
|
-
if (C(), !
|
|
2123
|
+
([R, U, q]) => {
|
|
2124
|
+
if (C(), !U || !R) {
|
|
2115
2125
|
c();
|
|
2116
2126
|
return;
|
|
2117
2127
|
}
|
|
2118
|
-
|
|
2128
|
+
q && B(R), y();
|
|
2119
2129
|
},
|
|
2120
2130
|
{ flush: "post", immediate: !0 }
|
|
2121
2131
|
), x = ie(
|
|
@@ -2139,7 +2149,7 @@ function Ul(e, t = {}) {
|
|
|
2139
2149
|
stop: W
|
|
2140
2150
|
};
|
|
2141
2151
|
}
|
|
2142
|
-
const
|
|
2152
|
+
const Cl = 80, Mt = /* @__PURE__ */ oe({
|
|
2143
2153
|
name: "Popover",
|
|
2144
2154
|
__name: "Popover",
|
|
2145
2155
|
props: {
|
|
@@ -2159,7 +2169,7 @@ const Cr = 80, Mt = /* @__PURE__ */ oe({
|
|
|
2159
2169
|
},
|
|
2160
2170
|
emits: ["visible-change", "click-outside", "scroll"],
|
|
2161
2171
|
setup(e, { expose: t, emit: n }) {
|
|
2162
|
-
const a = V(!1), i = e,
|
|
2172
|
+
const a = V(!1), i = e, l = p(() => i.preserveContentMount || a.value), o = p(() => !i.preserveContentMount || a.value), r = n, s = V(null), v = V(), c = V();
|
|
2163
2173
|
let d = null, g = je({}), h = je({}), y = je({});
|
|
2164
2174
|
const C = (L) => typeof L == "number" ? `${L}px` : L, B = p(() => {
|
|
2165
2175
|
const L = i.maxPopperHeight;
|
|
@@ -2248,34 +2258,34 @@ const Cr = 80, Mt = /* @__PURE__ */ oe({
|
|
|
2248
2258
|
for (const P of [...L.attributes])
|
|
2249
2259
|
P.name.startsWith("data-popper-") && L.removeAttribute(P.name);
|
|
2250
2260
|
}
|
|
2251
|
-
}, H = () => {
|
|
2252
|
-
i.disabled || (a.value = !0, l("visible-change", !0));
|
|
2253
2261
|
}, U = () => {
|
|
2254
|
-
a.value = !
|
|
2255
|
-
},
|
|
2262
|
+
i.disabled || (a.value = !0, r("visible-change", !0));
|
|
2263
|
+
}, q = () => {
|
|
2264
|
+
a.value = !1, r("visible-change", !1);
|
|
2265
|
+
}, M = Pt(U, i.openDelay), se = Pt(q, i.closeDelay), Q = () => {
|
|
2256
2266
|
i.disabled || (se.cancel(), M());
|
|
2257
2267
|
}, te = () => {
|
|
2258
2268
|
M.cancel(), se();
|
|
2259
2269
|
};
|
|
2260
2270
|
Fn(s, (L) => {
|
|
2261
2271
|
const P = L.target;
|
|
2262
|
-
P instanceof Node && c.value?.contains(P) || (i.trigger === "click" && a.value && !i.manual && te(), a.value &&
|
|
2272
|
+
P instanceof Node && c.value?.contains(P) || (i.trigger === "click" && a.value && !i.manual && te(), a.value && r("click-outside", !0));
|
|
2263
2273
|
});
|
|
2264
|
-
const
|
|
2274
|
+
const me = () => {
|
|
2265
2275
|
i.disabled || (a.value ? te() : Q());
|
|
2266
2276
|
}, Z = () => {
|
|
2267
|
-
y = {}, i.trigger === "hover" ? (h.mouseenter = Q, g.mouseleave = te, y.mouseenter = Q, y.mouseleave = te) : i.trigger === "click" && (h.click =
|
|
2277
|
+
y = {}, i.trigger === "hover" ? (h.mouseenter = Q, g.mouseleave = te, y.mouseenter = Q, y.mouseleave = te) : i.trigger === "click" && (h.click = me);
|
|
2268
2278
|
};
|
|
2269
2279
|
let D = 0;
|
|
2270
2280
|
const N = [];
|
|
2271
|
-
let A = null,
|
|
2281
|
+
let A = null, Y = null;
|
|
2272
2282
|
const J = () => {
|
|
2273
2283
|
for (D++; N.length; ) {
|
|
2274
2284
|
const L = N.pop();
|
|
2275
2285
|
L !== void 0 && cancelAnimationFrame(L);
|
|
2276
2286
|
}
|
|
2277
2287
|
}, f = () => {
|
|
2278
|
-
A?.disconnect(),
|
|
2288
|
+
A?.disconnect(), Y?.disconnect(), A = null, Y = null;
|
|
2279
2289
|
}, T = () => {
|
|
2280
2290
|
!a.value || !d || d.update();
|
|
2281
2291
|
}, I = () => {
|
|
@@ -2300,7 +2310,7 @@ const Cr = 80, Mt = /* @__PURE__ */ oe({
|
|
|
2300
2310
|
};
|
|
2301
2311
|
c.value && (A = new ResizeObserver(L), A.observe(c.value));
|
|
2302
2312
|
const P = $();
|
|
2303
|
-
P && (
|
|
2313
|
+
P && (Y = new ResizeObserver(L), Y.observe(P));
|
|
2304
2314
|
}, ce = () => {
|
|
2305
2315
|
const L = $(), P = c.value;
|
|
2306
2316
|
return !L || !P ? !1 : d ? (d.setOptions(x.value), !0) : (R(P), d = Nn(L, P, x.value), !0);
|
|
@@ -2308,7 +2318,7 @@ const Cr = 80, Mt = /* @__PURE__ */ oe({
|
|
|
2308
2318
|
J(), f();
|
|
2309
2319
|
const P = c.value, fe = L && P ? w(P) : null;
|
|
2310
2320
|
d?.destroy(), d = null, P && fe && Object.keys(fe).length && W(P, fe);
|
|
2311
|
-
},
|
|
2321
|
+
}, le = () => {
|
|
2312
2322
|
a.value && (d || ce(), I());
|
|
2313
2323
|
};
|
|
2314
2324
|
ie(
|
|
@@ -2359,31 +2369,31 @@ const Cr = 80, Mt = /* @__PURE__ */ oe({
|
|
|
2359
2369
|
), Pe(() => {
|
|
2360
2370
|
i.manual || Z();
|
|
2361
2371
|
});
|
|
2362
|
-
const
|
|
2372
|
+
const re = gl((L) => {
|
|
2363
2373
|
const P = L.target;
|
|
2364
|
-
|
|
2365
|
-
},
|
|
2374
|
+
r("scroll", { scrollTop: P.scrollTop, scrollLeft: P.scrollLeft });
|
|
2375
|
+
}, Cl), ke = () => {
|
|
2366
2376
|
T();
|
|
2367
2377
|
}, Me = () => {
|
|
2368
2378
|
a.value || (b(!1), R(c.value));
|
|
2369
2379
|
};
|
|
2370
2380
|
return ze(() => {
|
|
2371
|
-
|
|
2381
|
+
re.cancel(), b(!1);
|
|
2372
2382
|
}), t({
|
|
2373
2383
|
isOpen: a,
|
|
2374
2384
|
open: Q,
|
|
2375
2385
|
close: te,
|
|
2376
|
-
update:
|
|
2386
|
+
update: le
|
|
2377
2387
|
}), (L, P) => (u(), m("div", Be({
|
|
2378
2388
|
class: "cregis-popover",
|
|
2379
2389
|
ref_key: "popoverRef",
|
|
2380
2390
|
ref: s
|
|
2381
|
-
}, Tt(
|
|
2391
|
+
}, Tt(F(g), !0)), [
|
|
2382
2392
|
z("div", Be({
|
|
2383
2393
|
class: ["cregis-popover__trigger", { "cregis-popover__trigger--disabled": e.disabled }],
|
|
2384
2394
|
ref_key: "popoverTriggerRef",
|
|
2385
2395
|
ref: v
|
|
2386
|
-
}, Tt(
|
|
2396
|
+
}, Tt(F(h), !0)), [
|
|
2387
2397
|
ae(L.$slots, "reference")
|
|
2388
2398
|
], 16),
|
|
2389
2399
|
(u(), de(Ft, {
|
|
@@ -2396,15 +2406,15 @@ const Cr = 80, Mt = /* @__PURE__ */ oe({
|
|
|
2396
2406
|
onAfterLeave: Me
|
|
2397
2407
|
}, {
|
|
2398
2408
|
default: ve(() => [
|
|
2399
|
-
|
|
2409
|
+
l.value ? Fe((u(), m("div", Be({
|
|
2400
2410
|
key: 0,
|
|
2401
2411
|
class: ["cregis-popover__content", { "cregis-popover__content--hide-scrollbar": B.value }],
|
|
2402
2412
|
ref_key: "popoverContentRef",
|
|
2403
2413
|
ref: c,
|
|
2404
2414
|
style: O.value
|
|
2405
|
-
}, Tt(
|
|
2415
|
+
}, Tt(F(y), !0), {
|
|
2406
2416
|
onScroll: P[0] || (P[0] = //@ts-ignore
|
|
2407
|
-
(...fe) =>
|
|
2417
|
+
(...fe) => F(re) && F(re)(...fe))
|
|
2408
2418
|
}), [
|
|
2409
2419
|
ae(L.$slots, "default")
|
|
2410
2420
|
], 16)), [
|
|
@@ -2416,19 +2426,19 @@ const Cr = 80, Mt = /* @__PURE__ */ oe({
|
|
|
2416
2426
|
], 8, ["disabled"]))
|
|
2417
2427
|
], 16));
|
|
2418
2428
|
}
|
|
2419
|
-
}), Un = Symbol("CregisSelect"),
|
|
2429
|
+
}), Un = Symbol("CregisSelect"), Ol = { class: "cregis-select__selected" }, Tl = {
|
|
2420
2430
|
key: 0,
|
|
2421
2431
|
class: "cregis-select__count"
|
|
2422
|
-
},
|
|
2432
|
+
}, zl = {
|
|
2423
2433
|
key: 1,
|
|
2424
2434
|
class: "cregis-select__placeholder"
|
|
2425
|
-
},
|
|
2435
|
+
}, Ll = {
|
|
2426
2436
|
key: 0,
|
|
2427
2437
|
class: "cregis-select__dropdown-empty"
|
|
2428
|
-
},
|
|
2438
|
+
}, El = {
|
|
2429
2439
|
key: 2,
|
|
2430
2440
|
class: "cregis-select__dropdown-filter-empty"
|
|
2431
|
-
},
|
|
2441
|
+
}, Rl = { class: "cregis-select__dropdown-content" }, qr = /* @__PURE__ */ oe({
|
|
2432
2442
|
name: "Select",
|
|
2433
2443
|
__name: "Select",
|
|
2434
2444
|
props: {
|
|
@@ -2450,19 +2460,19 @@ const Cr = 80, Mt = /* @__PURE__ */ oe({
|
|
|
2450
2460
|
},
|
|
2451
2461
|
emits: ["update:modelValue", "change", "visible-change", "filter-input", "filter-clear"],
|
|
2452
2462
|
setup(e, { emit: t }) {
|
|
2453
|
-
const n = e, a = t, i = V(null),
|
|
2463
|
+
const n = e, a = t, i = V(null), l = V(null), o = V(!1), r = V();
|
|
2454
2464
|
let s = null, v = null;
|
|
2455
2465
|
const c = () => {
|
|
2456
2466
|
v !== null && (clearTimeout(v), v = null);
|
|
2457
2467
|
}, d = (b) => typeof b == "string" && b.trim().endsWith("%"), g = () => {
|
|
2458
2468
|
if (!d(n.triggerWidth) || n.popperWidth) return;
|
|
2459
|
-
const b =
|
|
2460
|
-
b && (
|
|
2469
|
+
const b = l.value;
|
|
2470
|
+
b && (r.value = b.offsetWidth + 8);
|
|
2461
2471
|
}, h = async (b) => {
|
|
2462
|
-
o.value = b, a("visible-change", b), b && d(n.triggerWidth) && (await ge(), g(), i.value?.update()), !b && n.filterable && (
|
|
2463
|
-
}, y = (b) => typeof b == "number" ? `n:${b}` : `s:${b}`, C = je({}), B = je({}), O = V(0), $ = V(null), E = (b,
|
|
2472
|
+
o.value = b, a("visible-change", b), b && d(n.triggerWidth) && (await ge(), g(), i.value?.update()), !b && n.filterable && (q.value = "", M.value = "", c());
|
|
2473
|
+
}, y = (b) => typeof b == "number" ? `n:${b}` : `s:${b}`, C = je({}), B = je({}), O = V(0), $ = V(null), E = (b, le, re) => {
|
|
2464
2474
|
const ke = y(b);
|
|
2465
|
-
return O.value++, C[ke] =
|
|
2475
|
+
return O.value++, C[ke] = le, B[ke] = re ?? le, () => {
|
|
2466
2476
|
O.value--, delete C[ke], delete B[ke];
|
|
2467
2477
|
};
|
|
2468
2478
|
}, x = p(() => O.value === 0);
|
|
@@ -2486,47 +2496,47 @@ const Cr = 80, Mt = /* @__PURE__ */ oe({
|
|
|
2486
2496
|
}), w = p(() => !n.multiple || !Array.isArray(n.modelValue) ? 0 : n.modelValue.length), W = p(() => {
|
|
2487
2497
|
if (!k.value) return "";
|
|
2488
2498
|
if (n.multiple)
|
|
2489
|
-
return n.modelValue.map((
|
|
2499
|
+
return n.modelValue.map((re) => C[y(re)] ?? String(re)).join("、");
|
|
2490
2500
|
const b = n.modelValue;
|
|
2491
2501
|
return $.value?.value === b ? $.value.label : C[y(b)] ?? String(b);
|
|
2492
|
-
}), R = (b) => n.multiple ? Array.isArray(n.modelValue) && n.modelValue.includes(b) : n.modelValue === b,
|
|
2502
|
+
}), R = (b) => n.multiple ? Array.isArray(n.modelValue) && n.modelValue.includes(b) : n.modelValue === b, U = (b, le) => {
|
|
2493
2503
|
if (!n.disabled) {
|
|
2494
2504
|
if (n.multiple) {
|
|
2495
|
-
const
|
|
2496
|
-
ke >= 0 ?
|
|
2505
|
+
const re = Array.isArray(n.modelValue) ? [...n.modelValue] : [], ke = re.indexOf(b);
|
|
2506
|
+
ke >= 0 ? re.splice(ke, 1) : re.push(b), a("update:modelValue", re), a("change", re);
|
|
2497
2507
|
return;
|
|
2498
2508
|
}
|
|
2499
|
-
$.value = { value: b, label:
|
|
2509
|
+
$.value = { value: b, label: le }, a("update:modelValue", b), a("change", b), i.value?.close();
|
|
2500
2510
|
}
|
|
2501
|
-
},
|
|
2511
|
+
}, q = V(""), M = V(""), se = p(() => M.value.trim().toLowerCase()), Q = p(() => {
|
|
2502
2512
|
const b = se.value;
|
|
2503
|
-
return !n.filterable || !b ? !0 : Object.keys(C).some((
|
|
2513
|
+
return !n.filterable || !b ? !0 : Object.keys(C).some((le) => (B[le] ?? C[le] ?? "").toLowerCase().includes(b));
|
|
2504
2514
|
}), te = p(
|
|
2505
2515
|
() => n.filterable && !!se.value && !Q.value && !x.value
|
|
2506
|
-
),
|
|
2516
|
+
), me = () => {
|
|
2507
2517
|
n.filterable && (c(), v = setTimeout(() => {
|
|
2508
|
-
M.value =
|
|
2518
|
+
M.value = q.value.trim(), v = null;
|
|
2509
2519
|
}, n.filterDebounceMs));
|
|
2510
2520
|
};
|
|
2511
|
-
ie(
|
|
2512
|
-
n.filterable &&
|
|
2521
|
+
ie(q, () => {
|
|
2522
|
+
n.filterable && me();
|
|
2513
2523
|
}), ie(
|
|
2514
2524
|
() => n.filterable,
|
|
2515
2525
|
(b) => {
|
|
2516
|
-
b || (
|
|
2526
|
+
b || (q.value = "", M.value = "", c());
|
|
2517
2527
|
}
|
|
2518
2528
|
);
|
|
2519
2529
|
const Z = () => {
|
|
2520
|
-
s?.disconnect(), s = null, !(!d(n.triggerWidth) || !
|
|
2530
|
+
s?.disconnect(), s = null, !(!d(n.triggerWidth) || !l.value) && (s = new ResizeObserver(() => {
|
|
2521
2531
|
g();
|
|
2522
|
-
}), s.observe(
|
|
2532
|
+
}), s.observe(l.value));
|
|
2523
2533
|
};
|
|
2524
2534
|
ie(
|
|
2525
2535
|
() => n.triggerWidth,
|
|
2526
2536
|
() => {
|
|
2527
2537
|
d(n.triggerWidth) ? ge(() => {
|
|
2528
2538
|
g(), Z();
|
|
2529
|
-
}) : (
|
|
2539
|
+
}) : (r.value = void 0, s?.disconnect(), s = null);
|
|
2530
2540
|
}
|
|
2531
2541
|
), Pe(() => {
|
|
2532
2542
|
d(n.triggerWidth) && ge(() => {
|
|
@@ -2544,17 +2554,17 @@ const Cr = 80, Mt = /* @__PURE__ */ oe({
|
|
|
2544
2554
|
modelValue: p(() => n.modelValue),
|
|
2545
2555
|
multiple: p(() => !!n.multiple),
|
|
2546
2556
|
disabled: p(() => !!n.disabled),
|
|
2547
|
-
selectOption:
|
|
2557
|
+
selectOption: U,
|
|
2548
2558
|
isOptionSelected: R,
|
|
2549
2559
|
registerOption: E,
|
|
2550
2560
|
filterQuery: se
|
|
2551
2561
|
});
|
|
2552
|
-
const A = (b) => typeof b == "number" ? `${b}px` : b,
|
|
2562
|
+
const A = (b) => typeof b == "number" ? `${b}px` : b, Y = p(() => {
|
|
2553
2563
|
if (n.popperWidth) return A(n.popperWidth);
|
|
2554
2564
|
const b = n.triggerWidth;
|
|
2555
|
-
return d(b) ?
|
|
2565
|
+
return d(b) ? r.value : typeof b == "number" ? b + 8 : `calc(${b} + 8px)`;
|
|
2556
2566
|
}), J = p(() => {
|
|
2557
|
-
const b =
|
|
2567
|
+
const b = Y.value;
|
|
2558
2568
|
if (!(b == null || b === ""))
|
|
2559
2569
|
return typeof b == "number" ? `${b - 12}px` : `calc(${b} - 12px)`;
|
|
2560
2570
|
}), f = p(() => n.align === "center" ? "bottom" : n.align === "left" ? "bottom-start" : "bottom-end"), T = p(() => ({
|
|
@@ -2562,14 +2572,14 @@ const Cr = 80, Mt = /* @__PURE__ */ oe({
|
|
|
2562
2572
|
})), I = p(() => n.size === "large" ? "20px" : n.size === "medium" ? "14px" : "12px"), ee = V(0), ce = (b) => {
|
|
2563
2573
|
ee.value = b.scrollTop;
|
|
2564
2574
|
};
|
|
2565
|
-
return (b,
|
|
2575
|
+
return (b, le) => (u(), m("div", {
|
|
2566
2576
|
class: X(["cregis-select", { "is-disabled": e.disabled, "is-percent-width": d(e.triggerWidth) }])
|
|
2567
2577
|
}, [
|
|
2568
2578
|
ne(Mt, {
|
|
2569
2579
|
ref_key: "popoverRef",
|
|
2570
2580
|
ref: i,
|
|
2571
2581
|
"preserve-content-mount": "",
|
|
2572
|
-
"popper-width":
|
|
2582
|
+
"popper-width": Y.value,
|
|
2573
2583
|
placement: f.value,
|
|
2574
2584
|
disabled: !!e.disabled,
|
|
2575
2585
|
padding: 0,
|
|
@@ -2580,7 +2590,7 @@ const Cr = 80, Mt = /* @__PURE__ */ oe({
|
|
|
2580
2590
|
reference: ve(() => [
|
|
2581
2591
|
z("div", {
|
|
2582
2592
|
ref_key: "triggerRef",
|
|
2583
|
-
ref:
|
|
2593
|
+
ref: l,
|
|
2584
2594
|
class: X(["cregis-select__trigger", { [`cregis-select__trigger--${e.size}`]: e.size, [`cregis-select__trigger--${e.type}`]: e.type }]),
|
|
2585
2595
|
style: G(T.value)
|
|
2586
2596
|
}, [
|
|
@@ -2595,14 +2605,14 @@ const Cr = 80, Mt = /* @__PURE__ */ oe({
|
|
|
2595
2605
|
placeholder: e.placeholder,
|
|
2596
2606
|
hasSelection: k.value
|
|
2597
2607
|
}, () => [
|
|
2598
|
-
z("p",
|
|
2599
|
-
e.multiple ? (u(), m("span",
|
|
2600
|
-
]) : (u(), m("p",
|
|
2608
|
+
z("p", Ol, H(W.value), 1),
|
|
2609
|
+
e.multiple ? (u(), m("span", Tl, H(w.value), 1)) : j("", !0)
|
|
2610
|
+
]) : (u(), m("p", zl, H(e.placeholder), 1))
|
|
2601
2611
|
], 2),
|
|
2602
2612
|
z("span", {
|
|
2603
2613
|
class: X(["cregis-select__icon", { "is-open": o.value }])
|
|
2604
2614
|
}, [
|
|
2605
|
-
ne(
|
|
2615
|
+
ne(F(Ht), {
|
|
2606
2616
|
size: I.value,
|
|
2607
2617
|
color: e.disabled ? "var(--text-base-quaternary)" : "var(--material-base-secondary)"
|
|
2608
2618
|
}, null, 8, ["size", "color"])
|
|
@@ -2613,15 +2623,15 @@ const Cr = 80, Mt = /* @__PURE__ */ oe({
|
|
|
2613
2623
|
z("div", {
|
|
2614
2624
|
class: X(["cregis-select__dropdown", { "is-empty": x.value }])
|
|
2615
2625
|
}, [
|
|
2616
|
-
x.value ? (u(), m("p",
|
|
2626
|
+
x.value ? (u(), m("p", Ll, H(e.noDataText || F(pe)("common.noData")), 1)) : j("", !0),
|
|
2617
2627
|
e.filterable && !x.value ? (u(), m("div", {
|
|
2618
2628
|
key: 1,
|
|
2619
2629
|
class: X(["cregis-select__dropdown-filter", { "backdrop-fixed-header": ee.value > 10 }])
|
|
2620
2630
|
}, [
|
|
2621
2631
|
ne(zn, {
|
|
2622
|
-
modelValue:
|
|
2623
|
-
"onUpdate:modelValue":
|
|
2624
|
-
placeholder: e.searchText ||
|
|
2632
|
+
modelValue: q.value,
|
|
2633
|
+
"onUpdate:modelValue": le[0] || (le[0] = (re) => q.value = re),
|
|
2634
|
+
placeholder: e.searchText || F(pe)("select.search"),
|
|
2625
2635
|
width: J.value,
|
|
2626
2636
|
size: "small",
|
|
2627
2637
|
clearable: "",
|
|
@@ -2629,13 +2639,13 @@ const Cr = 80, Mt = /* @__PURE__ */ oe({
|
|
|
2629
2639
|
onClear: N
|
|
2630
2640
|
}, {
|
|
2631
2641
|
prefix: ve(() => [
|
|
2632
|
-
ne(
|
|
2642
|
+
ne(F(On), { size: "14px" })
|
|
2633
2643
|
]),
|
|
2634
2644
|
_: 1
|
|
2635
2645
|
}, 8, ["modelValue", "placeholder", "width"])
|
|
2636
2646
|
], 2)) : j("", !0),
|
|
2637
|
-
te.value ? (u(), m("p",
|
|
2638
|
-
z("div",
|
|
2647
|
+
te.value ? (u(), m("p", El, H(e.noMatchText || F(pe)("select.noMatch")), 1)) : j("", !0),
|
|
2648
|
+
z("div", Rl, [
|
|
2639
2649
|
ae(b.$slots, "default")
|
|
2640
2650
|
])
|
|
2641
2651
|
], 2)
|
|
@@ -2644,10 +2654,10 @@ const Cr = 80, Mt = /* @__PURE__ */ oe({
|
|
|
2644
2654
|
}, 8, ["popper-width", "placement", "disabled", "max-popper-height"])
|
|
2645
2655
|
], 2));
|
|
2646
2656
|
}
|
|
2647
|
-
}),
|
|
2657
|
+
}), Bl = ["aria-selected"], Wl = {
|
|
2648
2658
|
key: 1,
|
|
2649
2659
|
class: "cregis-select__option-content"
|
|
2650
|
-
},
|
|
2660
|
+
}, Yr = /* @__PURE__ */ oe({
|
|
2651
2661
|
name: "Option",
|
|
2652
2662
|
__name: "Option",
|
|
2653
2663
|
props: {
|
|
@@ -2659,11 +2669,11 @@ const Cr = 80, Mt = /* @__PURE__ */ oe({
|
|
|
2659
2669
|
setup(e) {
|
|
2660
2670
|
const t = e, n = jt(Un, null);
|
|
2661
2671
|
let a;
|
|
2662
|
-
const i = () => t.filterText ?? t.label,
|
|
2672
|
+
const i = () => t.filterText ?? t.label, l = () => {
|
|
2663
2673
|
a?.(), n && (a = n.registerOption(t.value, t.label, i()));
|
|
2664
2674
|
};
|
|
2665
|
-
Pe(
|
|
2666
|
-
const o = p(() => n?.multiple.value ?? !1),
|
|
2675
|
+
Pe(l), ze(() => a?.()), ie(() => [t.value, t.label, t.filterText], l);
|
|
2676
|
+
const o = p(() => n?.multiple.value ?? !1), r = p(() => n?.isOptionSelected(t.value) ?? !1), s = () => {
|
|
2667
2677
|
t.disabled || n?.disabled.value || n?.selectOption(t.value, t.label);
|
|
2668
2678
|
}, v = () => {
|
|
2669
2679
|
s();
|
|
@@ -2673,60 +2683,60 @@ const Cr = 80, Mt = /* @__PURE__ */ oe({
|
|
|
2673
2683
|
});
|
|
2674
2684
|
return (g, h) => Fe((u(), m("div", {
|
|
2675
2685
|
class: X(["cregis-select__option", {
|
|
2676
|
-
"is-selected":
|
|
2686
|
+
"is-selected": r.value && !o.value,
|
|
2677
2687
|
"is-disabled": e.disabled,
|
|
2678
2688
|
"cregis-select__option--multiple": o.value
|
|
2679
2689
|
}]),
|
|
2680
2690
|
role: "option",
|
|
2681
|
-
"aria-selected":
|
|
2691
|
+
"aria-selected": r.value,
|
|
2682
2692
|
onClick: s
|
|
2683
2693
|
}, [
|
|
2684
2694
|
o.value ? (u(), de(qt, {
|
|
2685
2695
|
key: 0,
|
|
2686
|
-
"model-value":
|
|
2687
|
-
disabled: e.disabled || !!
|
|
2696
|
+
"model-value": r.value,
|
|
2697
|
+
disabled: e.disabled || !!F(n)?.disabled.value,
|
|
2688
2698
|
onClick: h[0] || (h[0] = He(() => {
|
|
2689
2699
|
}, ["stop"])),
|
|
2690
2700
|
"onUpdate:modelValue": v
|
|
2691
2701
|
}, null, 8, ["model-value", "disabled"])) : j("", !0),
|
|
2692
|
-
o.value ? (u(), m("div",
|
|
2702
|
+
o.value ? (u(), m("div", Wl, [
|
|
2693
2703
|
ae(g.$slots, "default", {
|
|
2694
2704
|
label: e.label,
|
|
2695
2705
|
value: e.value,
|
|
2696
2706
|
disabled: !!e.disabled,
|
|
2697
|
-
selected:
|
|
2707
|
+
selected: r.value
|
|
2698
2708
|
}, () => [
|
|
2699
|
-
ye(
|
|
2709
|
+
ye(H(e.label), 1)
|
|
2700
2710
|
])
|
|
2701
2711
|
])) : ae(g.$slots, "default", {
|
|
2702
2712
|
key: 2,
|
|
2703
2713
|
label: e.label,
|
|
2704
2714
|
value: e.value,
|
|
2705
2715
|
disabled: !!e.disabled,
|
|
2706
|
-
selected:
|
|
2716
|
+
selected: r.value
|
|
2707
2717
|
}, () => [
|
|
2708
|
-
ye(
|
|
2718
|
+
ye(H(e.label), 1)
|
|
2709
2719
|
])
|
|
2710
|
-
], 10,
|
|
2720
|
+
], 10, Bl)), [
|
|
2711
2721
|
[$t, d.value]
|
|
2712
2722
|
]);
|
|
2713
2723
|
}
|
|
2714
|
-
}),
|
|
2724
|
+
}), Al = { class: "cregis-cascader__trigger-label" }, Vl = { class: "cregis-cascader__selected" }, Pl = {
|
|
2715
2725
|
key: 1,
|
|
2716
2726
|
class: "cregis-cascader__placeholder"
|
|
2717
|
-
},
|
|
2727
|
+
}, Dl = {
|
|
2718
2728
|
key: 0,
|
|
2719
2729
|
class: "cregis-cascader__dropdown-empty"
|
|
2720
|
-
},
|
|
2730
|
+
}, Ml = {
|
|
2721
2731
|
key: 2,
|
|
2722
2732
|
class: "cregis-cascader__dropdown-filter-empty"
|
|
2723
|
-
},
|
|
2733
|
+
}, Il = { class: "cregis-cascader__dropdown-content" }, Nl = {
|
|
2724
2734
|
key: 0,
|
|
2725
2735
|
class: "cregis-cascader__dropdown-item-popover"
|
|
2726
|
-
},
|
|
2736
|
+
}, jl = { class: "cregis-cascader__suboption-amount-container" }, _l = {
|
|
2727
2737
|
key: 0,
|
|
2728
2738
|
class: "cregis-cascader__suboption-amount"
|
|
2729
|
-
},
|
|
2739
|
+
}, Fl = { class: "cregis-cascader__suboption-panel" }, Hl = ["onClick"], Ul = ["onClick"], Xr = /* @__PURE__ */ oe({
|
|
2730
2740
|
name: "Cascader",
|
|
2731
2741
|
__name: "Cascader",
|
|
2732
2742
|
props: {
|
|
@@ -2751,10 +2761,10 @@ const Cr = 80, Mt = /* @__PURE__ */ oe({
|
|
|
2751
2761
|
},
|
|
2752
2762
|
emits: ["update:modelValue", "change", "visible-change", "filter-input", "filter-clear"],
|
|
2753
2763
|
setup(e, { emit: t }) {
|
|
2754
|
-
const n = e, a = t, i = V(null),
|
|
2755
|
-
K && typeof K == "object" && "close" in K && typeof K.close == "function" ?
|
|
2764
|
+
const n = e, a = t, i = V(null), l = V(!1), o = V(null), r = /* @__PURE__ */ new Map(), s = (S, K) => {
|
|
2765
|
+
K && typeof K == "object" && "close" in K && typeof K.close == "function" ? r.set(S, K) : r.delete(S);
|
|
2756
2766
|
}, v = () => {
|
|
2757
|
-
|
|
2767
|
+
r.forEach((S) => S.close()), o.value = null;
|
|
2758
2768
|
}, c = (S, K) => {
|
|
2759
2769
|
if (K) {
|
|
2760
2770
|
o.value = S;
|
|
@@ -2788,10 +2798,10 @@ const Cr = 80, Mt = /* @__PURE__ */ oe({
|
|
|
2788
2798
|
}, k = (S, K) => {
|
|
2789
2799
|
const _ = C.value;
|
|
2790
2800
|
return !_ || E(S).includes(_) ? !0 : E(K).includes(_);
|
|
2791
|
-
}, w = p(() => n.options.filter((S) => x(S))), W = p(() => n.options.length === 0), R = p(() => (C.value, n.options.some((S) => x(S)))),
|
|
2801
|
+
}, w = p(() => n.options.filter((S) => x(S))), W = p(() => n.options.length === 0), R = p(() => (C.value, n.options.some((S) => x(S)))), U = p(
|
|
2792
2802
|
() => n.filterable && !!y.value.trim() && !R.value && !W.value
|
|
2793
|
-
),
|
|
2794
|
-
|
|
2803
|
+
), q = (S) => {
|
|
2804
|
+
l.value = S, a("visible-change", S), S || v(), !S && n.filterable && (h.value = "", y.value = "", g());
|
|
2795
2805
|
}, M = V(null), se = (S) => {
|
|
2796
2806
|
const K = n.options.find((_) => _.value === S);
|
|
2797
2807
|
if (K)
|
|
@@ -2802,7 +2812,7 @@ const Cr = 80, Mt = /* @__PURE__ */ oe({
|
|
|
2802
2812
|
sub: void 0
|
|
2803
2813
|
};
|
|
2804
2814
|
for (const _ of n.options) {
|
|
2805
|
-
const be = _.children?.find((
|
|
2815
|
+
const be = _.children?.find((he) => he.value === S);
|
|
2806
2816
|
if (be)
|
|
2807
2817
|
return {
|
|
2808
2818
|
level: 2,
|
|
@@ -2841,7 +2851,7 @@ const Cr = 80, Mt = /* @__PURE__ */ oe({
|
|
|
2841
2851
|
M.value !== null && M.value.value !== S && (M.value = null);
|
|
2842
2852
|
}
|
|
2843
2853
|
);
|
|
2844
|
-
const te = p(() => Q.value.level > 0),
|
|
2854
|
+
const te = p(() => Q.value.level > 0), me = p(() => Q.value.label), Z = p(() => n.modelValue), D = p(() => me.value), N = p(() => Q.value.level), A = p(() => Q.value.primary), Y = p(() => Q.value.sub), J = (S) => (S.children?.length ?? 0) > 0, f = (S) => n.modelValue === S, T = (S) => {
|
|
2845
2855
|
const K = n.modelValue;
|
|
2846
2856
|
return K == null || K === "" ? !1 : (S.children ?? []).some((_) => _.value === K);
|
|
2847
2857
|
}, I = (S, K) => {
|
|
@@ -2853,7 +2863,7 @@ const Cr = 80, Mt = /* @__PURE__ */ oe({
|
|
|
2853
2863
|
return ce(n.popperWidth);
|
|
2854
2864
|
const S = n.triggerWidth;
|
|
2855
2865
|
return typeof S == "number" ? `${S + 8}px` : `calc(${S} + 8px)`;
|
|
2856
|
-
}),
|
|
2866
|
+
}), le = p(() => ce(n.subPopperWidth)), re = p(() => typeof b.value == "number" ? `${b.value - 12}px` : `calc(${b.value} - 12px)`), ke = p(() => ({
|
|
2857
2867
|
maxHeight: ce(n.maxPopperHeight),
|
|
2858
2868
|
overflowY: "auto"
|
|
2859
2869
|
})), Me = { strategy: "fixed" }, L = p(() => n.align === "center" ? "bottom" : n.align === "left" ? "bottom-start" : "bottom-end"), P = p(() => ({
|
|
@@ -2874,7 +2884,7 @@ const Cr = 80, Mt = /* @__PURE__ */ oe({
|
|
|
2874
2884
|
offset: e.offset,
|
|
2875
2885
|
disabled: !!e.disabled,
|
|
2876
2886
|
padding: 0,
|
|
2877
|
-
onVisibleChange:
|
|
2887
|
+
onVisibleChange: q
|
|
2878
2888
|
}, {
|
|
2879
2889
|
reference: ve(() => [
|
|
2880
2890
|
S.$slots.trigger ? ae(S.$slots, "trigger", {
|
|
@@ -2883,34 +2893,34 @@ const Cr = 80, Mt = /* @__PURE__ */ oe({
|
|
|
2883
2893
|
selectedLabel: D.value,
|
|
2884
2894
|
level: N.value,
|
|
2885
2895
|
primaryOption: A.value,
|
|
2886
|
-
subOption:
|
|
2896
|
+
subOption: Y.value,
|
|
2887
2897
|
placeholder: e.placeholder,
|
|
2888
2898
|
hasSelection: te.value,
|
|
2889
|
-
open:
|
|
2899
|
+
open: l.value,
|
|
2890
2900
|
disabled: !!e.disabled
|
|
2891
2901
|
}) : (u(), m("div", {
|
|
2892
2902
|
key: 1,
|
|
2893
2903
|
class: X(["cregis-cascader__trigger", { [`cregis-cascader__trigger--${e.size}`]: e.size, [`cregis-cascader__trigger--${e.type}`]: e.type }]),
|
|
2894
2904
|
style: G(P.value)
|
|
2895
2905
|
}, [
|
|
2896
|
-
z("div",
|
|
2906
|
+
z("div", Al, [
|
|
2897
2907
|
te.value ? ae(S.$slots, "label", {
|
|
2898
2908
|
key: 0,
|
|
2899
2909
|
modelValue: Z.value,
|
|
2900
2910
|
selectedLabel: D.value,
|
|
2901
2911
|
level: N.value,
|
|
2902
2912
|
primaryOption: A.value,
|
|
2903
|
-
subOption:
|
|
2913
|
+
subOption: Y.value,
|
|
2904
2914
|
placeholder: e.placeholder,
|
|
2905
2915
|
hasSelection: te.value
|
|
2906
2916
|
}, () => [
|
|
2907
|
-
z("p",
|
|
2908
|
-
]) : (u(), m("p",
|
|
2917
|
+
z("p", Vl, H(me.value), 1)
|
|
2918
|
+
]) : (u(), m("p", Pl, H(e.placeholder), 1))
|
|
2909
2919
|
]),
|
|
2910
2920
|
z("span", {
|
|
2911
|
-
class: X(["cregis-cascader__icon", { "is-open":
|
|
2921
|
+
class: X(["cregis-cascader__icon", { "is-open": l.value }])
|
|
2912
2922
|
}, [
|
|
2913
|
-
ne(
|
|
2923
|
+
ne(F(Ht), {
|
|
2914
2924
|
size: fe.value,
|
|
2915
2925
|
color: e.disabled ? "var(--text-base-quaternary)" : "var(--material-base-secondary)"
|
|
2916
2926
|
}, null, 8, ["size", "color"])
|
|
@@ -2923,7 +2933,7 @@ const Cr = 80, Mt = /* @__PURE__ */ oe({
|
|
|
2923
2933
|
style: G(ke.value),
|
|
2924
2934
|
onScroll: Ae
|
|
2925
2935
|
}, [
|
|
2926
|
-
W.value ? (u(), m("p",
|
|
2936
|
+
W.value ? (u(), m("p", Dl, H(e.noDataText || F(pe)("common.noData")), 1)) : j("", !0),
|
|
2927
2937
|
e.filterable && !W.value ? (u(), m("div", {
|
|
2928
2938
|
key: 1,
|
|
2929
2939
|
class: X(["cregis-cascader__dropdown-filter", { "backdrop-fixed-header": ue.value > 10 }])
|
|
@@ -2931,37 +2941,37 @@ const Cr = 80, Mt = /* @__PURE__ */ oe({
|
|
|
2931
2941
|
ne(zn, {
|
|
2932
2942
|
modelValue: h.value,
|
|
2933
2943
|
"onUpdate:modelValue": K[0] || (K[0] = (_) => h.value = _),
|
|
2934
|
-
placeholder: e.searchText ||
|
|
2935
|
-
width:
|
|
2944
|
+
placeholder: e.searchText || F(pe)("select.search"),
|
|
2945
|
+
width: re.value,
|
|
2936
2946
|
size: "small",
|
|
2937
2947
|
clearable: "",
|
|
2938
2948
|
onInput: O,
|
|
2939
2949
|
onClear: $
|
|
2940
2950
|
}, {
|
|
2941
2951
|
prefix: ve(() => [
|
|
2942
|
-
ne(
|
|
2952
|
+
ne(F(On), { size: "14px" })
|
|
2943
2953
|
]),
|
|
2944
2954
|
_: 1
|
|
2945
2955
|
}, 8, ["modelValue", "placeholder", "width"])
|
|
2946
2956
|
], 2)) : j("", !0),
|
|
2947
|
-
|
|
2948
|
-
z("ul",
|
|
2957
|
+
U.value ? (u(), m("p", Ml, H(e.noMatchText || F(pe)("cascader.noMatch")), 1)) : j("", !0),
|
|
2958
|
+
z("ul", Il, [
|
|
2949
2959
|
(u(!0), m(Le, null, Ve(w.value, (_, be) => (u(), m("li", {
|
|
2950
2960
|
key: _.value,
|
|
2951
2961
|
class: X(["cregis-cascader__dropdown-item", { "is-disabled": _.disabled, "is-sub-open": o.value === _.value }])
|
|
2952
2962
|
}, [
|
|
2953
|
-
J(_) ? (u(), m("div",
|
|
2963
|
+
J(_) ? (u(), m("div", Nl, [
|
|
2954
2964
|
ne(Mt, {
|
|
2955
2965
|
ref_for: !0,
|
|
2956
|
-
ref: (
|
|
2966
|
+
ref: (he) => s(_.value, he),
|
|
2957
2967
|
trigger: "hover",
|
|
2958
2968
|
placement: "right-start",
|
|
2959
2969
|
offset: dt,
|
|
2960
2970
|
"popover-options": Me,
|
|
2961
|
-
"popper-width":
|
|
2971
|
+
"popper-width": le.value,
|
|
2962
2972
|
padding: 4,
|
|
2963
2973
|
disabled: !!_.disabled || !!e.disabled,
|
|
2964
|
-
onVisibleChange: (
|
|
2974
|
+
onVisibleChange: (he) => c(_.value, he)
|
|
2965
2975
|
}, {
|
|
2966
2976
|
reference: ve(() => [
|
|
2967
2977
|
z("div", {
|
|
@@ -2975,18 +2985,18 @@ const Cr = 80, Mt = /* @__PURE__ */ oe({
|
|
|
2975
2985
|
selectedLabel: D.value,
|
|
2976
2986
|
level: N.value,
|
|
2977
2987
|
primaryOption: A.value,
|
|
2978
|
-
subOption:
|
|
2988
|
+
subOption: Y.value,
|
|
2979
2989
|
option: _,
|
|
2980
2990
|
index: be,
|
|
2981
2991
|
disabled: !!_.disabled,
|
|
2982
2992
|
selected: f(_.value),
|
|
2983
2993
|
isParentOfSelected: T(_)
|
|
2984
2994
|
}, () => [
|
|
2985
|
-
z("p", null,
|
|
2995
|
+
z("p", null, H(_.label), 1)
|
|
2986
2996
|
]),
|
|
2987
|
-
z("div",
|
|
2988
|
-
e.showSubOptionAmount ? (u(), m("div",
|
|
2989
|
-
ne(
|
|
2997
|
+
z("div", jl, [
|
|
2998
|
+
e.showSubOptionAmount ? (u(), m("div", _l, H(_.children?.length ?? 0), 1)) : j("", !0),
|
|
2999
|
+
ne(F(na), {
|
|
2990
3000
|
size: "14px",
|
|
2991
3001
|
color: "currentColor"
|
|
2992
3002
|
})
|
|
@@ -2994,33 +3004,33 @@ const Cr = 80, Mt = /* @__PURE__ */ oe({
|
|
|
2994
3004
|
], 2)
|
|
2995
3005
|
]),
|
|
2996
3006
|
default: ve(() => [
|
|
2997
|
-
z("div",
|
|
2998
|
-
(u(!0), m(Le, null, Ve(_.children, (
|
|
2999
|
-
key:
|
|
3007
|
+
z("div", Fl, [
|
|
3008
|
+
(u(!0), m(Le, null, Ve(_.children, (he, ft) => Fe((u(), m("div", {
|
|
3009
|
+
key: he.value,
|
|
3000
3010
|
class: X(["cregis-cascader__suboption-row", {
|
|
3001
|
-
"is-active": f(
|
|
3002
|
-
"is-disabled":
|
|
3011
|
+
"is-active": f(he.value),
|
|
3012
|
+
"is-disabled": he.disabled
|
|
3003
3013
|
}]),
|
|
3004
3014
|
role: "menuitem",
|
|
3005
|
-
onClick: (vt) => I(_,
|
|
3015
|
+
onClick: (vt) => I(_, he)
|
|
3006
3016
|
}, [
|
|
3007
3017
|
ae(S.$slots, "subOption", {
|
|
3008
3018
|
modelValue: Z.value,
|
|
3009
3019
|
selectedLabel: D.value,
|
|
3010
3020
|
level: N.value,
|
|
3011
3021
|
primaryOption: A.value,
|
|
3012
|
-
subOption:
|
|
3013
|
-
option:
|
|
3022
|
+
subOption: Y.value,
|
|
3023
|
+
option: he,
|
|
3014
3024
|
index: ft,
|
|
3015
3025
|
parent: _,
|
|
3016
3026
|
parentIndex: be,
|
|
3017
|
-
selected: f(
|
|
3018
|
-
disabled: !!
|
|
3027
|
+
selected: f(he.value),
|
|
3028
|
+
disabled: !!he.disabled
|
|
3019
3029
|
}, () => [
|
|
3020
|
-
ye(
|
|
3030
|
+
ye(H(he.label), 1)
|
|
3021
3031
|
])
|
|
3022
|
-
], 10,
|
|
3023
|
-
[$t, k(_,
|
|
3032
|
+
], 10, Hl)), [
|
|
3033
|
+
[$t, k(_, he)]
|
|
3024
3034
|
])), 128))
|
|
3025
3035
|
])
|
|
3026
3036
|
]),
|
|
@@ -3029,23 +3039,23 @@ const Cr = 80, Mt = /* @__PURE__ */ oe({
|
|
|
3029
3039
|
])) : (u(), m("div", {
|
|
3030
3040
|
key: 1,
|
|
3031
3041
|
class: "cregis-cascader__leaf-only",
|
|
3032
|
-
onClick: (
|
|
3042
|
+
onClick: (he) => ee(_)
|
|
3033
3043
|
}, [
|
|
3034
3044
|
ae(S.$slots, "option", {
|
|
3035
3045
|
modelValue: Z.value,
|
|
3036
3046
|
selectedLabel: D.value,
|
|
3037
3047
|
level: N.value,
|
|
3038
3048
|
primaryOption: A.value,
|
|
3039
|
-
subOption:
|
|
3049
|
+
subOption: Y.value,
|
|
3040
3050
|
option: _,
|
|
3041
3051
|
index: be,
|
|
3042
3052
|
disabled: !!_.disabled,
|
|
3043
3053
|
selected: f(_.value),
|
|
3044
3054
|
isParentOfSelected: !1
|
|
3045
3055
|
}, () => [
|
|
3046
|
-
z("p", null,
|
|
3056
|
+
z("p", null, H(_.label), 1)
|
|
3047
3057
|
])
|
|
3048
|
-
], 8,
|
|
3058
|
+
], 8, Ul))
|
|
3049
3059
|
], 2))), 128))
|
|
3050
3060
|
])
|
|
3051
3061
|
], 38)
|
|
@@ -3054,13 +3064,13 @@ const Cr = 80, Mt = /* @__PURE__ */ oe({
|
|
|
3054
3064
|
}, 8, ["popper-width", "placement", "offset", "disabled"])
|
|
3055
3065
|
], 2));
|
|
3056
3066
|
}
|
|
3057
|
-
}),
|
|
3067
|
+
}), ql = {
|
|
3058
3068
|
key: 0,
|
|
3059
3069
|
class: "cregis-tag__content"
|
|
3060
|
-
},
|
|
3070
|
+
}, Yl = {
|
|
3061
3071
|
key: 0,
|
|
3062
3072
|
class: "cregis-tag__content"
|
|
3063
|
-
},
|
|
3073
|
+
}, Kr = /* @__PURE__ */ oe({
|
|
3064
3074
|
name: "Tag",
|
|
3065
3075
|
__name: "Tag",
|
|
3066
3076
|
props: {
|
|
@@ -3082,28 +3092,28 @@ const Cr = 80, Mt = /* @__PURE__ */ oe({
|
|
|
3082
3092
|
class: X(["cregis-tag cregis-tag--palette", [`cregis-tag--${e.type}`, `cregis-tag--${e.size}`, { "cregis-tag--ellipsis": e.maxWidth != null }]]),
|
|
3083
3093
|
style: G(n.value)
|
|
3084
3094
|
}, [
|
|
3085
|
-
e.maxWidth != null ? (u(), m("span",
|
|
3095
|
+
e.maxWidth != null ? (u(), m("span", ql, [
|
|
3086
3096
|
ae(a.$slots, "default", {}, () => [
|
|
3087
|
-
ye(
|
|
3097
|
+
ye(H(e.text), 1)
|
|
3088
3098
|
])
|
|
3089
3099
|
])) : ae(a.$slots, "default", { key: 1 }, () => [
|
|
3090
|
-
ye(
|
|
3100
|
+
ye(H(e.text), 1)
|
|
3091
3101
|
])
|
|
3092
3102
|
], 6)) : (u(), m("div", {
|
|
3093
3103
|
key: 1,
|
|
3094
3104
|
class: X(["cregis-tag", [`cregis-tag--${e.type}`, `cregis-tag--${e.size}`, { "cregis-tag--ellipsis": e.maxWidth != null }]]),
|
|
3095
3105
|
style: G(n.value)
|
|
3096
3106
|
}, [
|
|
3097
|
-
e.maxWidth != null ? (u(), m("span",
|
|
3107
|
+
e.maxWidth != null ? (u(), m("span", Yl, [
|
|
3098
3108
|
ae(a.$slots, "default", {}, () => [
|
|
3099
|
-
ye(
|
|
3109
|
+
ye(H(e.text), 1)
|
|
3100
3110
|
])
|
|
3101
3111
|
])) : ae(a.$slots, "default", { key: 1 }, () => [
|
|
3102
|
-
ye(
|
|
3112
|
+
ye(H(e.text), 1)
|
|
3103
3113
|
])
|
|
3104
3114
|
], 6));
|
|
3105
3115
|
}
|
|
3106
|
-
}),
|
|
3116
|
+
}), Gr = /* @__PURE__ */ oe({
|
|
3107
3117
|
name: "Switch",
|
|
3108
3118
|
__name: "Switch",
|
|
3109
3119
|
props: {
|
|
@@ -3116,9 +3126,9 @@ const Cr = 80, Mt = /* @__PURE__ */ oe({
|
|
|
3116
3126
|
},
|
|
3117
3127
|
emits: ["update:modelValue", "change"],
|
|
3118
3128
|
setup(e, { emit: t }) {
|
|
3119
|
-
const n = e, a = t, i = V(!1),
|
|
3129
|
+
const n = e, a = t, i = V(!1), l = p(() => n.modelValue === n.activeValue), o = async () => {
|
|
3120
3130
|
if (n.disabled || i.value) return;
|
|
3121
|
-
const
|
|
3131
|
+
const r = l.value ? n.inactiveValue : n.activeValue;
|
|
3122
3132
|
if (n.beforeChange) {
|
|
3123
3133
|
i.value = !0;
|
|
3124
3134
|
try {
|
|
@@ -3129,24 +3139,24 @@ const Cr = 80, Mt = /* @__PURE__ */ oe({
|
|
|
3129
3139
|
i.value = !1;
|
|
3130
3140
|
}
|
|
3131
3141
|
}
|
|
3132
|
-
a("update:modelValue",
|
|
3142
|
+
a("update:modelValue", r);
|
|
3133
3143
|
};
|
|
3134
3144
|
return ie(
|
|
3135
3145
|
() => n.modelValue,
|
|
3136
|
-
(
|
|
3137
|
-
a("change",
|
|
3146
|
+
(r) => {
|
|
3147
|
+
a("change", r);
|
|
3138
3148
|
}
|
|
3139
|
-
), (
|
|
3149
|
+
), (r, s) => (u(), m("div", {
|
|
3140
3150
|
class: X(["cregis-switch", [
|
|
3141
3151
|
`cregis-switch--${e.size}`,
|
|
3142
|
-
{ "is-checked":
|
|
3152
|
+
{ "is-checked": l.value, "is-disabled": e.disabled || i.value }
|
|
3143
3153
|
]]),
|
|
3144
3154
|
onClick: o
|
|
3145
3155
|
}, [...s[0] || (s[0] = [
|
|
3146
3156
|
z("div", { class: "cregis-switch__circle" }, null, -1)
|
|
3147
3157
|
])], 2));
|
|
3148
3158
|
}
|
|
3149
|
-
}),
|
|
3159
|
+
}), Xl = { class: "cregis-badge__wrapper" }, Zr = /* @__PURE__ */ oe({
|
|
3150
3160
|
name: "Badge",
|
|
3151
3161
|
__name: "Badge",
|
|
3152
3162
|
props: {
|
|
@@ -3165,19 +3175,19 @@ const Cr = 80, Mt = /* @__PURE__ */ oe({
|
|
|
3165
3175
|
top: `${a.value[0]}px`,
|
|
3166
3176
|
right: `${a.value[1]}px`
|
|
3167
3177
|
}));
|
|
3168
|
-
return (
|
|
3178
|
+
return (l, o) => (u(), m("div", Xl, [
|
|
3169
3179
|
e.hidden ? j("", !0) : (u(), m("div", {
|
|
3170
3180
|
key: 0,
|
|
3171
3181
|
class: X(["cregis-badge", [`cregis-badge--${e.type}`, { "cregis-badge--dot": e.isDot }]]),
|
|
3172
3182
|
style: G(i.value)
|
|
3173
|
-
},
|
|
3174
|
-
ae(
|
|
3183
|
+
}, H(e.isDot ? "" : Number(e.value) > e.max ? `${e.max}+` : e.value), 7)),
|
|
3184
|
+
ae(l.$slots, "default")
|
|
3175
3185
|
]));
|
|
3176
3186
|
}
|
|
3177
|
-
}),
|
|
3187
|
+
}), Kl = ["accept", "disabled"], Gl = ["src"], Zl = {
|
|
3178
3188
|
key: 3,
|
|
3179
3189
|
class: "cregis-upload__mask"
|
|
3180
|
-
},
|
|
3190
|
+
}, Qr = /* @__PURE__ */ oe({
|
|
3181
3191
|
name: "Upload",
|
|
3182
3192
|
__name: "Upload",
|
|
3183
3193
|
props: {
|
|
@@ -3192,7 +3202,7 @@ const Cr = 80, Mt = /* @__PURE__ */ oe({
|
|
|
3192
3202
|
},
|
|
3193
3203
|
emits: ["update:modelValue"],
|
|
3194
3204
|
setup(e, { expose: t, emit: n }) {
|
|
3195
|
-
const a = e, i = n,
|
|
3205
|
+
const a = e, i = n, l = V(0), o = V(""), r = V(null), s = ["http:", "https:", "blob:"], v = (k) => {
|
|
3196
3206
|
if (!k) return !1;
|
|
3197
3207
|
if (k.toLowerCase().startsWith("data:image/")) return !0;
|
|
3198
3208
|
try {
|
|
@@ -3208,12 +3218,12 @@ const Cr = 80, Mt = /* @__PURE__ */ oe({
|
|
|
3208
3218
|
const w = k.lastIndexOf(".");
|
|
3209
3219
|
return w === -1 ? "" : k.slice(w + 1).toLowerCase();
|
|
3210
3220
|
}, h = (k, w) => {
|
|
3211
|
-
const W = w.split(",").map((
|
|
3221
|
+
const W = w.split(",").map((q) => q.trim()).filter(Boolean);
|
|
3212
3222
|
if (!W.length) return !0;
|
|
3213
|
-
const R = g(k.name),
|
|
3214
|
-
return W.some((
|
|
3215
|
-
const M =
|
|
3216
|
-
return M.startsWith(".") ? R === M.slice(1) : M.includes("/") ? M.endsWith("/*") ?
|
|
3223
|
+
const R = g(k.name), U = k.type.toLowerCase();
|
|
3224
|
+
return W.some((q) => {
|
|
3225
|
+
const M = q.toLowerCase();
|
|
3226
|
+
return M.startsWith(".") ? R === M.slice(1) : M.includes("/") ? M.endsWith("/*") ? U.startsWith(M.slice(0, -1)) : U === M : R === M;
|
|
3217
3227
|
});
|
|
3218
3228
|
};
|
|
3219
3229
|
let y;
|
|
@@ -3222,37 +3232,37 @@ const Cr = 80, Mt = /* @__PURE__ */ oe({
|
|
|
3222
3232
|
}, B = () => {
|
|
3223
3233
|
y && (clearInterval(y), y = void 0);
|
|
3224
3234
|
}, O = () => {
|
|
3225
|
-
B(),
|
|
3235
|
+
B(), l.value = 0, o.value = "", r.value && C(r.value), a.modelValue && i("update:modelValue", "");
|
|
3226
3236
|
}, $ = (k) => {
|
|
3227
3237
|
const w = k.target, W = w.files?.[0];
|
|
3228
3238
|
if (!W) return;
|
|
3229
3239
|
if (a.accept && !h(W, a.accept)) {
|
|
3230
|
-
cn(a.exceedAcceptTip ??
|
|
3240
|
+
cn(a.exceedAcceptTip ?? pe("upload.formatError")), C(w);
|
|
3231
3241
|
return;
|
|
3232
3242
|
}
|
|
3233
3243
|
if (a.size !== void 0 && W.size > a.size * 1024 * 1024) {
|
|
3234
|
-
cn(a.exceedSizeTip ??
|
|
3244
|
+
cn(a.exceedSizeTip ?? pe("upload.sizeError", { size: a.size })), C(w);
|
|
3235
3245
|
return;
|
|
3236
3246
|
}
|
|
3237
3247
|
i("update:modelValue", "");
|
|
3238
3248
|
const R = new FormData();
|
|
3239
|
-
R.append("file", W, W.name), a.onChange?.(R), C(w), B(),
|
|
3240
|
-
|
|
3249
|
+
R.append("file", W, W.name), a.onChange?.(R), C(w), B(), l.value = 0, y = setInterval(() => {
|
|
3250
|
+
l.value += 30, l.value >= 90 && B();
|
|
3241
3251
|
}, 200);
|
|
3242
3252
|
};
|
|
3243
3253
|
ie(
|
|
3244
3254
|
() => a.modelValue,
|
|
3245
3255
|
(k) => {
|
|
3246
|
-
k ? (
|
|
3256
|
+
k ? (l.value = 100, o.value = k) : (l.value = 0, o.value = "");
|
|
3247
3257
|
},
|
|
3248
3258
|
{
|
|
3249
3259
|
immediate: !0
|
|
3250
3260
|
}
|
|
3251
3261
|
);
|
|
3252
3262
|
const E = p(() => ({
|
|
3253
|
-
width: `${
|
|
3254
|
-
borderRadius:
|
|
3255
|
-
})), x = p(() => a.disabled ||
|
|
3263
|
+
width: `${l.value}%`,
|
|
3264
|
+
borderRadius: l.value === 100 ? "0 0 6px 6px" : "0 0 0 6px"
|
|
3265
|
+
})), x = p(() => a.disabled || l.value > 0 && l.value < 100);
|
|
3256
3266
|
return ze(() => {
|
|
3257
3267
|
B();
|
|
3258
3268
|
}), t({
|
|
@@ -3261,21 +3271,21 @@ const Cr = 80, Mt = /* @__PURE__ */ oe({
|
|
|
3261
3271
|
class: X(["cregis-upload", { "cregis-upload--disabled": x.value }]),
|
|
3262
3272
|
style: G(d.value)
|
|
3263
3273
|
}, [
|
|
3264
|
-
c.value ? j("", !0) : (u(), de(
|
|
3274
|
+
c.value ? j("", !0) : (u(), de(F(sn), {
|
|
3265
3275
|
key: 0,
|
|
3266
3276
|
size: "16px",
|
|
3267
3277
|
color: "var(--stroke-base-secondary)"
|
|
3268
3278
|
})),
|
|
3269
3279
|
z("input", {
|
|
3270
3280
|
ref_key: "inputRef",
|
|
3271
|
-
ref:
|
|
3281
|
+
ref: r,
|
|
3272
3282
|
type: "file",
|
|
3273
3283
|
title: "",
|
|
3274
3284
|
accept: e.accept,
|
|
3275
3285
|
disabled: x.value,
|
|
3276
3286
|
onChange: $
|
|
3277
|
-
}, null, 40,
|
|
3278
|
-
|
|
3287
|
+
}, null, 40, Kl),
|
|
3288
|
+
l.value > 0 && l.value < 100 ? (u(), m("div", {
|
|
3279
3289
|
key: 1,
|
|
3280
3290
|
class: "cregis-upload__progress",
|
|
3281
3291
|
style: G(E.value)
|
|
@@ -3284,9 +3294,9 @@ const Cr = 80, Mt = /* @__PURE__ */ oe({
|
|
|
3284
3294
|
key: 2,
|
|
3285
3295
|
src: c.value,
|
|
3286
3296
|
alt: ""
|
|
3287
|
-
}, null, 8,
|
|
3288
|
-
c.value ? (u(), m("div",
|
|
3289
|
-
ne(
|
|
3297
|
+
}, null, 8, Gl)) : j("", !0),
|
|
3298
|
+
c.value ? (u(), m("div", Zl, [
|
|
3299
|
+
ne(F(sn), {
|
|
3290
3300
|
size: "16px",
|
|
3291
3301
|
color: "var(--text-same-white-primary)"
|
|
3292
3302
|
})
|
|
@@ -3295,7 +3305,7 @@ const Cr = 80, Mt = /* @__PURE__ */ oe({
|
|
|
3295
3305
|
}
|
|
3296
3306
|
});
|
|
3297
3307
|
let at = 0, qn = "";
|
|
3298
|
-
const
|
|
3308
|
+
const Ql = () => {
|
|
3299
3309
|
at === 0 && (qn = document.body.style.overflow, document.body.style.overflow = "hidden"), at++;
|
|
3300
3310
|
}, kn = () => {
|
|
3301
3311
|
at <= 0 || (at--, at === 0 && (document.body.style.overflow = qn));
|
|
@@ -3318,13 +3328,13 @@ const Qr = () => {
|
|
|
3318
3328
|
let i = !1;
|
|
3319
3329
|
ie(() => [n.modelValue, n.lockScroll], () => {
|
|
3320
3330
|
const d = n.modelValue && n.lockScroll;
|
|
3321
|
-
d && !i ? (
|
|
3331
|
+
d && !i ? (Ql(), i = !0) : !d && i && (kn(), i = !1);
|
|
3322
3332
|
}, { immediate: !0 }), ze(() => {
|
|
3323
3333
|
i && (kn(), i = !1);
|
|
3324
3334
|
});
|
|
3325
3335
|
const o = p(() => ({
|
|
3326
3336
|
width: typeof n.width == "number" ? `${n.width}px` : n.width
|
|
3327
|
-
})),
|
|
3337
|
+
})), r = p(() => ({
|
|
3328
3338
|
zIndex: Yt(),
|
|
3329
3339
|
...n.alignCenter ? {} : { paddingTop: n.top }
|
|
3330
3340
|
})), s = () => {
|
|
@@ -3345,7 +3355,7 @@ const Qr = () => {
|
|
|
3345
3355
|
"cregis-dialog__wrapper--center": e.alignCenter,
|
|
3346
3356
|
"cregis-dialog__wrapper--no-modal": !e.modal
|
|
3347
3357
|
}],
|
|
3348
|
-
style:
|
|
3358
|
+
style: r.value
|
|
3349
3359
|
}), [
|
|
3350
3360
|
e.modal ? (u(), m("div", {
|
|
3351
3361
|
key: 0,
|
|
@@ -3363,7 +3373,7 @@ const Qr = () => {
|
|
|
3363
3373
|
class: "cregis-dialog__close",
|
|
3364
3374
|
onClick: s
|
|
3365
3375
|
}, [
|
|
3366
|
-
ne(
|
|
3376
|
+
ne(F(Ut), {
|
|
3367
3377
|
size: "10px",
|
|
3368
3378
|
color: "var(--material-same-white-primary)"
|
|
3369
3379
|
})
|
|
@@ -3376,13 +3386,13 @@ const Qr = () => {
|
|
|
3376
3386
|
})
|
|
3377
3387
|
]));
|
|
3378
3388
|
}
|
|
3379
|
-
}),
|
|
3389
|
+
}), Jl = { class: "cregis-dialog-confirm" }, er = { class: "cregis-dialog-confirm__icon-wrapper" }, tr = {
|
|
3380
3390
|
key: 0,
|
|
3381
3391
|
class: "cregis-dialog-confirm__title"
|
|
3382
|
-
},
|
|
3392
|
+
}, nr = {
|
|
3383
3393
|
key: 1,
|
|
3384
3394
|
class: "cregis-dialog-confirm__message"
|
|
3385
|
-
},
|
|
3395
|
+
}, ar = { class: "cregis-dialog-confirm__footer" }, ir = /* @__PURE__ */ oe({
|
|
3386
3396
|
name: "ConfirmDialog",
|
|
3387
3397
|
__name: "ConfirmDialog",
|
|
3388
3398
|
props: {
|
|
@@ -3401,23 +3411,23 @@ const Qr = () => {
|
|
|
3401
3411
|
},
|
|
3402
3412
|
emits: ["after-leave"],
|
|
3403
3413
|
setup(e, { emit: t }) {
|
|
3404
|
-
const n = e, a = t, i = V(!1),
|
|
3414
|
+
const n = e, a = t, i = V(!1), l = V(null), o = V(null), r = p(() => n.type === "success" ? {
|
|
3405
3415
|
component: Cn,
|
|
3406
3416
|
color: "var(--text-same-white-primary)"
|
|
3407
3417
|
} : {
|
|
3408
3418
|
component: aa,
|
|
3409
3419
|
color: "var(--text-base-primary)"
|
|
3410
3420
|
}), s = async (g) => {
|
|
3411
|
-
if (!
|
|
3412
|
-
|
|
3421
|
+
if (!l.value) {
|
|
3422
|
+
l.value = g;
|
|
3413
3423
|
try {
|
|
3414
3424
|
await (g === "confirm" ? n.onConfirm : n.onCancel)?.(), o.value = g, i.value = !1;
|
|
3415
3425
|
} catch {
|
|
3416
|
-
|
|
3426
|
+
l.value = null;
|
|
3417
3427
|
}
|
|
3418
3428
|
}
|
|
3419
3429
|
}, v = () => s("confirm"), c = () => s("cancel"), d = () => {
|
|
3420
|
-
o.value || n.onCancel?.(),
|
|
3430
|
+
o.value || n.onCancel?.(), l.value = null, o.value = null, a("after-leave");
|
|
3421
3431
|
};
|
|
3422
3432
|
return ge(() => {
|
|
3423
3433
|
i.value = !0;
|
|
@@ -3431,30 +3441,30 @@ const Qr = () => {
|
|
|
3431
3441
|
onAfterLeave: d
|
|
3432
3442
|
}, {
|
|
3433
3443
|
default: ve(() => [
|
|
3434
|
-
z("div",
|
|
3435
|
-
z("div",
|
|
3444
|
+
z("div", Jl, [
|
|
3445
|
+
z("div", er, [
|
|
3436
3446
|
z("div", {
|
|
3437
3447
|
class: X(`cregis-dialog-confirm__icon cregis-dialog-confirm__icon--${e.type}`)
|
|
3438
3448
|
}, [
|
|
3439
|
-
(u(), de(it(
|
|
3449
|
+
(u(), de(it(r.value.component), {
|
|
3440
3450
|
"stroke-width": 3.4,
|
|
3441
3451
|
size: "24px",
|
|
3442
|
-
color:
|
|
3452
|
+
color: r.value.color
|
|
3443
3453
|
}, null, 8, ["color"]))
|
|
3444
3454
|
], 2)
|
|
3445
3455
|
]),
|
|
3446
|
-
e.title ? (u(), m("div",
|
|
3447
|
-
e.message ? (u(), m("div",
|
|
3448
|
-
z("div",
|
|
3456
|
+
e.title ? (u(), m("div", tr, H(e.title), 1)) : j("", !0),
|
|
3457
|
+
e.message ? (u(), m("div", nr, H(e.message), 1)) : j("", !0),
|
|
3458
|
+
z("div", ar, [
|
|
3449
3459
|
e.showConfirmButton ? (u(), de(_e, {
|
|
3450
3460
|
key: 0,
|
|
3451
3461
|
type: "foreground",
|
|
3452
3462
|
block: "",
|
|
3453
|
-
loading:
|
|
3463
|
+
loading: l.value === "confirm",
|
|
3454
3464
|
onClick: v
|
|
3455
3465
|
}, {
|
|
3456
3466
|
default: ve(() => [
|
|
3457
|
-
ye(
|
|
3467
|
+
ye(H(e.confirmButtonText || F(pe)("dialog.confirm")), 1)
|
|
3458
3468
|
]),
|
|
3459
3469
|
_: 1
|
|
3460
3470
|
}, 8, ["loading"])) : j("", !0),
|
|
@@ -3463,11 +3473,11 @@ const Qr = () => {
|
|
|
3463
3473
|
type: "secondary",
|
|
3464
3474
|
text: "",
|
|
3465
3475
|
block: "",
|
|
3466
|
-
loading:
|
|
3476
|
+
loading: l.value === "cancel",
|
|
3467
3477
|
onClick: c
|
|
3468
3478
|
}, {
|
|
3469
3479
|
default: ve(() => [
|
|
3470
|
-
ye(
|
|
3480
|
+
ye(H(e.cancelButtonText || F(pe)("dialog.cancel")), 1)
|
|
3471
3481
|
]),
|
|
3472
3482
|
_: 1
|
|
3473
3483
|
}, 8, ["loading"])) : j("", !0)
|
|
@@ -3478,33 +3488,33 @@ const Qr = () => {
|
|
|
3478
3488
|
}, 8, ["modelValue", "width", "close-on-click-modal", "lock-scroll"]));
|
|
3479
3489
|
}
|
|
3480
3490
|
});
|
|
3481
|
-
function
|
|
3491
|
+
function lr(e) {
|
|
3482
3492
|
return typeof e == "string" ? { message: e } : e;
|
|
3483
3493
|
}
|
|
3484
|
-
function
|
|
3494
|
+
function rr(e) {
|
|
3485
3495
|
return new Promise((t, n) => {
|
|
3486
|
-
const a =
|
|
3496
|
+
const a = lr(e), i = document.createElement("div");
|
|
3487
3497
|
document.body.appendChild(i);
|
|
3488
|
-
const
|
|
3498
|
+
const l = () => {
|
|
3489
3499
|
Ue(null, i), i.remove();
|
|
3490
3500
|
};
|
|
3491
3501
|
let o = !1;
|
|
3492
|
-
const
|
|
3502
|
+
const r = () => {
|
|
3493
3503
|
o || (o = !0, t());
|
|
3494
3504
|
}, s = (v) => {
|
|
3495
3505
|
o || (o = !0, n(v));
|
|
3496
3506
|
};
|
|
3497
3507
|
Ue(
|
|
3498
|
-
_t(
|
|
3508
|
+
_t(ir, {
|
|
3499
3509
|
...a,
|
|
3500
3510
|
onConfirm: async () => {
|
|
3501
|
-
await a.onConfirm?.(),
|
|
3511
|
+
await a.onConfirm?.(), r();
|
|
3502
3512
|
},
|
|
3503
3513
|
onCancel: async () => {
|
|
3504
3514
|
await a.onCancel?.(), s("cancel");
|
|
3505
3515
|
},
|
|
3506
3516
|
onAfterLeave: () => {
|
|
3507
|
-
|
|
3517
|
+
l(), o || s("cancel");
|
|
3508
3518
|
}
|
|
3509
3519
|
}),
|
|
3510
3520
|
i
|
|
@@ -3515,8 +3525,8 @@ const Yn = St;
|
|
|
3515
3525
|
Yn.install = (e) => {
|
|
3516
3526
|
e.component(St.name, St);
|
|
3517
3527
|
};
|
|
3518
|
-
Yn.confirm =
|
|
3519
|
-
const
|
|
3528
|
+
Yn.confirm = rr;
|
|
3529
|
+
const or = "var(--stroke-outline-subtle)", sr = "var(--material-brand-primary)", cr = "var(--status-warning)", ur = "var(--stroke-outline-deep)", dr = "var(--status-danger)", Xn = Symbol("TIMELINE_KEY"), fr = { class: "cregis-timeline" }, Jr = /* @__PURE__ */ oe({
|
|
3520
3530
|
name: "Timeline",
|
|
3521
3531
|
__name: "Timeline",
|
|
3522
3532
|
props: {
|
|
@@ -3530,11 +3540,11 @@ const ol = "var(--stroke-outline-subtle)", sl = "var(--material-brand-primary)",
|
|
|
3530
3540
|
dotSize: ht(t, "dotSize"),
|
|
3531
3541
|
lineWidth: ht(t, "lineWidth"),
|
|
3532
3542
|
iconSize: ht(t, "iconSize")
|
|
3533
|
-
}), (n, a) => (u(), m("div",
|
|
3543
|
+
}), (n, a) => (u(), m("div", fr, [
|
|
3534
3544
|
ae(n.$slots, "default")
|
|
3535
3545
|
]));
|
|
3536
3546
|
}
|
|
3537
|
-
}),
|
|
3547
|
+
}), vr = {
|
|
3538
3548
|
key: 0,
|
|
3539
3549
|
class: "cregis-timeline-item__title"
|
|
3540
3550
|
}, eo = /* @__PURE__ */ oe({
|
|
@@ -3550,24 +3560,24 @@ const ol = "var(--stroke-outline-subtle)", sl = "var(--material-brand-primary)",
|
|
|
3550
3560
|
setup(e) {
|
|
3551
3561
|
const t = e, n = jt(Xn);
|
|
3552
3562
|
if (!n) throw new Error("TimelineItem must be used within Timeline");
|
|
3553
|
-
const a = (d) => typeof d == "number" ? `${d}px` : /^\d+(\.\d+)?$/.test(d.trim()) ? `${d.trim()}px` : d, i = p(() => a(t.dotSize ?? n.dotSize.value)),
|
|
3563
|
+
const a = (d) => typeof d == "number" ? `${d}px` : /^\d+(\.\d+)?$/.test(d.trim()) ? `${d.trim()}px` : d, i = p(() => a(t.dotSize ?? n.dotSize.value)), l = p(() => a(t.lineWidth ?? n.lineWidth.value)), o = p(() => a(t.iconSize ?? n.iconSize.value)), r = p(() => {
|
|
3554
3564
|
const d = {
|
|
3555
3565
|
width: i.value,
|
|
3556
3566
|
height: i.value
|
|
3557
3567
|
};
|
|
3558
|
-
return t.status === "finished" ? { ...d, backgroundColor:
|
|
3568
|
+
return t.status === "finished" ? { ...d, backgroundColor: sr } : t.status === "pending" ? { ...d, backgroundColor: cr } : t.status === "rejected" || t.status === "withdrawn" ? { ...d, backgroundColor: dr } : {
|
|
3559
3569
|
...d,
|
|
3560
3570
|
backgroundColor: "transparent",
|
|
3561
|
-
border: `1px solid ${
|
|
3571
|
+
border: `1px solid ${ur}`
|
|
3562
3572
|
};
|
|
3563
3573
|
}), s = p(() => ({
|
|
3564
3574
|
"--cregis-timeline-dot-size": i.value
|
|
3565
3575
|
})), v = p(() => ({
|
|
3566
3576
|
width: i.value
|
|
3567
3577
|
})), c = p(() => ({
|
|
3568
|
-
backgroundColor:
|
|
3569
|
-
width:
|
|
3570
|
-
left: `calc(${i.value} / 2 - ${
|
|
3578
|
+
backgroundColor: or,
|
|
3579
|
+
width: l.value,
|
|
3580
|
+
left: `calc(${i.value} / 2 - ${l.value} / 2)`,
|
|
3571
3581
|
top: "calc((var(--cregis-timeline-title-line-height) + var(--cregis-timeline-dot-size, 16px)) / 2 + var(--cregis-timeline-line-gap))",
|
|
3572
3582
|
bottom: "calc(-1 * (var(--cregis-timeline-dot-top-offset) - var(--cregis-timeline-line-gap)))"
|
|
3573
3583
|
}));
|
|
@@ -3581,28 +3591,28 @@ const ol = "var(--stroke-outline-subtle)", sl = "var(--material-brand-primary)",
|
|
|
3581
3591
|
}, [
|
|
3582
3592
|
z("span", {
|
|
3583
3593
|
class: "cregis-timeline-item__dot",
|
|
3584
|
-
style: G(
|
|
3594
|
+
style: G(r.value)
|
|
3585
3595
|
}, [
|
|
3586
3596
|
e.status === "finished" ? (u(), de(Ln, {
|
|
3587
3597
|
key: 0,
|
|
3588
3598
|
size: o.value,
|
|
3589
3599
|
class: "cregis-timeline-item__dot-icon"
|
|
3590
|
-
}, null, 8, ["size"])) : e.status === "pending" ? (u(), de(
|
|
3600
|
+
}, null, 8, ["size"])) : e.status === "pending" ? (u(), de(F(ia), {
|
|
3591
3601
|
key: 1,
|
|
3592
3602
|
size: o.value,
|
|
3593
3603
|
color: "var(--text-same-white-primary)"
|
|
3594
|
-
}, null, 8, ["size"])) : e.status === "rejected" ? (u(), de(
|
|
3604
|
+
}, null, 8, ["size"])) : e.status === "rejected" ? (u(), de(F(Ut), {
|
|
3595
3605
|
key: 2,
|
|
3596
3606
|
size: o.value,
|
|
3597
3607
|
color: "var(--text-same-white-primary)"
|
|
3598
|
-
}, null, 8, ["size"])) : e.status === "withdrawn" ? (u(), de(
|
|
3608
|
+
}, null, 8, ["size"])) : e.status === "withdrawn" ? (u(), de(F(la), {
|
|
3599
3609
|
key: 3,
|
|
3600
3610
|
size: o.value,
|
|
3601
3611
|
color: "var(--text-same-white-primary)"
|
|
3602
3612
|
}, null, 8, ["size"])) : j("", !0)
|
|
3603
3613
|
], 4)
|
|
3604
3614
|
], 4),
|
|
3605
|
-
d.$slots.title ? (u(), m("div",
|
|
3615
|
+
d.$slots.title ? (u(), m("div", vr, [
|
|
3606
3616
|
ae(d.$slots, "title")
|
|
3607
3617
|
])) : j("", !0),
|
|
3608
3618
|
z("span", {
|
|
@@ -3617,10 +3627,10 @@ const ol = "var(--stroke-outline-subtle)", sl = "var(--material-brand-primary)",
|
|
|
3617
3627
|
], 2)) : j("", !0)
|
|
3618
3628
|
], 4));
|
|
3619
3629
|
}
|
|
3620
|
-
}),
|
|
3630
|
+
}), pr = {
|
|
3621
3631
|
key: 0,
|
|
3622
3632
|
class: "select-content"
|
|
3623
|
-
},
|
|
3633
|
+
}, mr = /* @__PURE__ */ oe({
|
|
3624
3634
|
name: "HeaderCell",
|
|
3625
3635
|
__name: "HeaderCell",
|
|
3626
3636
|
props: {
|
|
@@ -3636,7 +3646,7 @@ const ol = "var(--stroke-outline-subtle)", sl = "var(--material-brand-primary)",
|
|
|
3636
3646
|
},
|
|
3637
3647
|
emits: ["select-all-mode", "sort-change"],
|
|
3638
3648
|
setup(e, { expose: t, emit: n }) {
|
|
3639
|
-
const a = n, i = e,
|
|
3649
|
+
const a = n, i = e, l = V(!1), o = V(!1), r = V(""), s = V(), v = V();
|
|
3640
3650
|
let c = null;
|
|
3641
3651
|
const d = p(() => ({
|
|
3642
3652
|
maxHeight: "180px",
|
|
@@ -3649,12 +3659,12 @@ const ol = "var(--stroke-outline-subtle)", sl = "var(--material-brand-primary)",
|
|
|
3649
3659
|
...i.width ? { width: i.width } : {}
|
|
3650
3660
|
}));
|
|
3651
3661
|
Fn(s, () => {
|
|
3652
|
-
|
|
3653
|
-
|
|
3662
|
+
l.value && setTimeout(() => {
|
|
3663
|
+
l.value = !1, o.value = !1;
|
|
3654
3664
|
}, 0);
|
|
3655
3665
|
});
|
|
3656
3666
|
const B = () => {
|
|
3657
|
-
i.selectMode ||
|
|
3667
|
+
i.selectMode || l.value || (l.value = !0, o.value = !0, ge(() => {
|
|
3658
3668
|
s.value && v.value && (c?.destroy(), c = Nn(v.value, s.value, {
|
|
3659
3669
|
placement: "bottom-start",
|
|
3660
3670
|
modifiers: [
|
|
@@ -3668,11 +3678,11 @@ const ol = "var(--stroke-outline-subtle)", sl = "var(--material-brand-primary)",
|
|
|
3668
3678
|
}));
|
|
3669
3679
|
}));
|
|
3670
3680
|
}, O = (E) => {
|
|
3671
|
-
E !==
|
|
3681
|
+
E !== r.value && a("sort-change", E), r.value = E, l.value = !1, o.value = !1;
|
|
3672
3682
|
};
|
|
3673
3683
|
return t({
|
|
3674
3684
|
resetSort: () => {
|
|
3675
|
-
|
|
3685
|
+
r.value = "";
|
|
3676
3686
|
}
|
|
3677
3687
|
}), ze(() => {
|
|
3678
3688
|
c?.destroy();
|
|
@@ -3683,7 +3693,7 @@ const ol = "var(--stroke-outline-subtle)", sl = "var(--material-brand-primary)",
|
|
|
3683
3693
|
}]),
|
|
3684
3694
|
style: G(y.value)
|
|
3685
3695
|
}, [
|
|
3686
|
-
e.type === "select" ? (u(), m("div",
|
|
3696
|
+
e.type === "select" ? (u(), m("div", pr, [
|
|
3687
3697
|
ne(qt, {
|
|
3688
3698
|
"model-value": e.selectAllMode === "all",
|
|
3689
3699
|
indeterminate: e.selectAllMode === "some",
|
|
@@ -3696,7 +3706,7 @@ const ol = "var(--stroke-outline-subtle)", sl = "var(--material-brand-primary)",
|
|
|
3696
3706
|
style: G(C.value)
|
|
3697
3707
|
}, [
|
|
3698
3708
|
ae(E.$slots, "default", {}, () => [
|
|
3699
|
-
z("div", null,
|
|
3709
|
+
z("div", null, H(e.label), 1)
|
|
3700
3710
|
], !0),
|
|
3701
3711
|
e.sortable ? (u(), m("div", {
|
|
3702
3712
|
key: 0,
|
|
@@ -3706,9 +3716,9 @@ const ol = "var(--stroke-outline-subtle)", sl = "var(--material-brand-primary)",
|
|
|
3706
3716
|
onClick: He(B, ["stop"])
|
|
3707
3717
|
}, [
|
|
3708
3718
|
z("span", {
|
|
3709
|
-
class: X(["sort-icon", { "is-open":
|
|
3719
|
+
class: X(["sort-icon", { "is-open": l.value }])
|
|
3710
3720
|
}, [
|
|
3711
|
-
ne(
|
|
3721
|
+
ne(F(Ht), {
|
|
3712
3722
|
size: "12px",
|
|
3713
3723
|
color: "currentColor"
|
|
3714
3724
|
})
|
|
@@ -3723,15 +3733,15 @@ const ol = "var(--stroke-outline-subtle)", sl = "var(--material-brand-primary)",
|
|
|
3723
3733
|
style: G(d.value)
|
|
3724
3734
|
}, [
|
|
3725
3735
|
z("div", {
|
|
3726
|
-
class: X(["sort-item font-15", { active:
|
|
3736
|
+
class: X(["sort-item font-15", { active: r.value === 1 }]),
|
|
3727
3737
|
onClick: x[1] || (x[1] = (k) => O(1))
|
|
3728
|
-
}, F(
|
|
3738
|
+
}, H(F(pe)("tableList.asc")), 3),
|
|
3729
3739
|
z("div", {
|
|
3730
|
-
class: X(["sort-item font-15", { active:
|
|
3740
|
+
class: X(["sort-item font-15", { active: r.value === 2 }]),
|
|
3731
3741
|
onClick: x[2] || (x[2] = (k) => O(2))
|
|
3732
|
-
}, F(
|
|
3742
|
+
}, H(F(pe)("tableList.desc")), 3)
|
|
3733
3743
|
], 4), [
|
|
3734
|
-
[$t,
|
|
3744
|
+
[$t, l.value]
|
|
3735
3745
|
])
|
|
3736
3746
|
]))
|
|
3737
3747
|
], 6));
|
|
@@ -3741,10 +3751,10 @@ const ol = "var(--stroke-outline-subtle)", sl = "var(--material-brand-primary)",
|
|
|
3741
3751
|
for (const [a, i] of t)
|
|
3742
3752
|
n[a] = i;
|
|
3743
3753
|
return n;
|
|
3744
|
-
}, Sn = /* @__PURE__ */ tn(
|
|
3754
|
+
}, Sn = /* @__PURE__ */ tn(mr, [["__scopeId", "data-v-914fb3c9"]]), hr = {
|
|
3745
3755
|
key: 1,
|
|
3746
3756
|
class: "cell-text"
|
|
3747
|
-
},
|
|
3757
|
+
}, gr = /* @__PURE__ */ oe({
|
|
3748
3758
|
name: "TableListColumn",
|
|
3749
3759
|
__name: "TableListColumn",
|
|
3750
3760
|
props: {
|
|
@@ -3772,14 +3782,14 @@ const ol = "var(--stroke-outline-subtle)", sl = "var(--material-brand-primary)",
|
|
|
3772
3782
|
...t.width ? { width: "1%" } : {}
|
|
3773
3783
|
})), i = p(() => ({
|
|
3774
3784
|
height: t.columnHeight + "px"
|
|
3775
|
-
})),
|
|
3785
|
+
})), l = p(() => t.index % 2 === 1), o = p(() => ({
|
|
3776
3786
|
...i.value,
|
|
3777
3787
|
justifyContent: t.align === "left" ? "flex-start" : t.align === "center" ? "center" : "flex-end",
|
|
3778
3788
|
...t.width ? { width: t.width } : {}
|
|
3779
3789
|
}));
|
|
3780
|
-
return (
|
|
3790
|
+
return (r, s) => (u(), m("td", {
|
|
3781
3791
|
class: X(["column-wrapper", {
|
|
3782
|
-
"is-striped":
|
|
3792
|
+
"is-striped": l.value,
|
|
3783
3793
|
"select-cell": e.type === "select",
|
|
3784
3794
|
"select-cell--visible": e.type === "select" && e.selectVisible
|
|
3785
3795
|
}]),
|
|
@@ -3796,7 +3806,7 @@ const ol = "var(--stroke-outline-subtle)", sl = "var(--material-brand-primary)",
|
|
|
3796
3806
|
}, [
|
|
3797
3807
|
ne(qt, {
|
|
3798
3808
|
"model-value": e.selected,
|
|
3799
|
-
onClick: s[0] || (s[0] = He((v) =>
|
|
3809
|
+
onClick: s[0] || (s[0] = He((v) => r.$emit("selectChange", e.index), ["stop"]))
|
|
3800
3810
|
}, null, 8, ["model-value"])
|
|
3801
3811
|
], 4)) : j("", !0),
|
|
3802
3812
|
e.type === "default" ? (u(), m("div", {
|
|
@@ -3804,30 +3814,30 @@ const ol = "var(--stroke-outline-subtle)", sl = "var(--material-brand-primary)",
|
|
|
3804
3814
|
class: "cell-content",
|
|
3805
3815
|
style: G(o.value)
|
|
3806
3816
|
}, [
|
|
3807
|
-
|
|
3817
|
+
r.$slots.default ? ae(r.$slots, "default", {
|
|
3808
3818
|
key: 0,
|
|
3809
3819
|
data: n.value
|
|
3810
|
-
}, void 0, !0) : (u(), m("div",
|
|
3820
|
+
}, void 0, !0) : (u(), m("div", hr, H(t.data?.[t.prop || ""]), 1))
|
|
3811
3821
|
], 4)) : j("", !0)
|
|
3812
3822
|
], 64))
|
|
3813
3823
|
], 6));
|
|
3814
3824
|
}
|
|
3815
|
-
}), mt = /* @__PURE__ */ tn(
|
|
3825
|
+
}), mt = /* @__PURE__ */ tn(gr, [["__scopeId", "data-v-814ef005"]]), Qe = (e, t, n) => {
|
|
3816
3826
|
if (!e) return n;
|
|
3817
3827
|
if (Object.prototype.hasOwnProperty.call(e, t))
|
|
3818
3828
|
return e[t];
|
|
3819
3829
|
const a = t.replace(/([A-Z])/g, "-$1").toLowerCase();
|
|
3820
3830
|
return Object.prototype.hasOwnProperty.call(e, a) ? e[a] : n;
|
|
3821
|
-
},
|
|
3831
|
+
}, br = { class: "initing-content" }, yr = { class: "initing-text" }, wr = { class: "selected-count-wrapper" }, xr = { class: "font-medium text-[var(--text-base-primary)]" }, kr = { class: "ml-[2px] text-[var(--text-base-secondary)]" }, Sr = {
|
|
3822
3832
|
key: 0,
|
|
3823
3833
|
class: "operation-divider"
|
|
3824
|
-
}, $
|
|
3834
|
+
}, $r = { key: 0 }, Cr = ["colspan"], Or = { class: "loading-inner" }, Tr = { class: "loading-success-text" }, zr = ["onClick"], Lr = {
|
|
3825
3835
|
key: 0,
|
|
3826
3836
|
class: "flex-1 flex items-center justify-center"
|
|
3827
|
-
},
|
|
3837
|
+
}, Er = { class: "flex flex-col gap-[8px] items-center -translate-x-[30px]" }, Rr = { class: "no-data-text font-13" }, Br = {
|
|
3828
3838
|
key: 1,
|
|
3829
3839
|
class: "flex-1"
|
|
3830
|
-
},
|
|
3840
|
+
}, Wr = /* @__PURE__ */ oe({
|
|
3831
3841
|
__name: "index",
|
|
3832
3842
|
props: {
|
|
3833
3843
|
maxHeight: {},
|
|
@@ -3840,7 +3850,7 @@ const ol = "var(--stroke-outline-subtle)", sl = "var(--material-brand-primary)",
|
|
|
3840
3850
|
},
|
|
3841
3851
|
emits: ["row-click", "update:selected-list", "selected-change", "select-close"],
|
|
3842
3852
|
setup(e, { expose: t, emit: n }) {
|
|
3843
|
-
const a = n, i = e,
|
|
3853
|
+
const a = n, i = e, l = $n(), o = V(null), r = V(null), s = V([]), v = V({ width: 0, height: 0 }), c = V(0), d = p(() => `${i.headerHeight}px`), g = V(!1), h = V([]);
|
|
3844
3854
|
ie(
|
|
3845
3855
|
() => i.dataList,
|
|
3846
3856
|
() => {
|
|
@@ -3866,7 +3876,7 @@ const ol = "var(--stroke-outline-subtle)", sl = "var(--material-brand-primary)",
|
|
|
3866
3876
|
ie(
|
|
3867
3877
|
() => i.loading,
|
|
3868
3878
|
(D) => {
|
|
3869
|
-
D ? (clearTimeout($.value),
|
|
3879
|
+
D ? (clearTimeout($.value), r.value?.scrollTo({ top: 0, behavior: "instant" }), O.value = !1, B.value = !0) : (r.value?.scrollTo({ top: 0, behavior: "instant" }), O.value = !0, $.value = window.setTimeout(() => {
|
|
3870
3880
|
B.value = !1;
|
|
3871
3881
|
}, 500));
|
|
3872
3882
|
},
|
|
@@ -3881,13 +3891,13 @@ const ol = "var(--stroke-outline-subtle)", sl = "var(--material-brand-primary)",
|
|
|
3881
3891
|
width: `${v.value.width}px`,
|
|
3882
3892
|
height: B.value ? "28px" : "0px",
|
|
3883
3893
|
opacity: B.value ? 1 : 0
|
|
3884
|
-
})), k = () => (
|
|
3894
|
+
})), k = () => (l.default?.()?.filter((A) => A.type?.name === "TableListColumn") || []).filter((A) => A.props?.hidden !== !0), w = () => k().filter((N) => {
|
|
3885
3895
|
const A = Qe(N.props, "minTableWidth");
|
|
3886
3896
|
return !A || v.value.width >= A;
|
|
3887
3897
|
}), W = p(() => w().map((N) => {
|
|
3888
|
-
const { align: A = "left", label:
|
|
3898
|
+
const { align: A = "left", label: Y, width: J, sortable: f } = N.props || {}, T = Qe(N.props, "minTableWidth");
|
|
3889
3899
|
return {
|
|
3890
|
-
label:
|
|
3900
|
+
label: Y || "",
|
|
3891
3901
|
align: A,
|
|
3892
3902
|
sortable: f,
|
|
3893
3903
|
width: J,
|
|
@@ -3895,21 +3905,21 @@ const ol = "var(--stroke-outline-subtle)", sl = "var(--material-brand-primary)",
|
|
|
3895
3905
|
headerSlot: N.children?.header,
|
|
3896
3906
|
originalSortChangeHandler: N.props?.onSortChange
|
|
3897
3907
|
};
|
|
3898
|
-
})), R = p(() => W.value.length + 1),
|
|
3899
|
-
const { align: A = "left", width:
|
|
3908
|
+
})), R = p(() => W.value.length + 1), U = p(() => w().map((N) => {
|
|
3909
|
+
const { align: A = "left", width: Y } = N.props || {}, J = Qe(N.props, "widthPercent"), f = Qe(N.props, "minWidth"), T = Qe(N.props, "minTableWidth");
|
|
3900
3910
|
return {
|
|
3901
3911
|
prop: N.props?.prop || "",
|
|
3902
3912
|
align: A,
|
|
3903
|
-
width:
|
|
3913
|
+
width: Y,
|
|
3904
3914
|
widthPercent: J,
|
|
3905
3915
|
minWidth: f,
|
|
3906
3916
|
minTableWidth: T,
|
|
3907
3917
|
children: N.children || {},
|
|
3908
3918
|
slotDefault: N.children?.default
|
|
3909
3919
|
};
|
|
3910
|
-
})),
|
|
3911
|
-
s.value?.forEach((
|
|
3912
|
-
J !== D &&
|
|
3920
|
+
})), q = (D, N) => {
|
|
3921
|
+
s.value?.forEach((Y, J) => {
|
|
3922
|
+
J !== D && Y.resetSort();
|
|
3913
3923
|
});
|
|
3914
3924
|
const A = W.value[D];
|
|
3915
3925
|
A.originalSortChangeHandler && A.originalSortChangeHandler(N);
|
|
@@ -3925,19 +3935,19 @@ const ol = "var(--stroke-outline-subtle)", sl = "var(--material-brand-primary)",
|
|
|
3925
3935
|
a("row-click", D);
|
|
3926
3936
|
}, te = () => {
|
|
3927
3937
|
g.value = !0;
|
|
3928
|
-
},
|
|
3938
|
+
}, me = () => {
|
|
3929
3939
|
g.value = !1, h.value = [], a("select-close"), a("update:selected-list", []), a("selected-change", []);
|
|
3930
3940
|
};
|
|
3931
3941
|
t({
|
|
3932
3942
|
selectMode: g,
|
|
3933
3943
|
openSelect: te,
|
|
3934
|
-
closeSelect:
|
|
3944
|
+
closeSelect: me
|
|
3935
3945
|
});
|
|
3936
3946
|
let Z = null;
|
|
3937
3947
|
return Pe(() => {
|
|
3938
3948
|
o.value && (Z = new ResizeObserver((D) => {
|
|
3939
|
-
const N = D[0], A = N.contentRect.width,
|
|
3940
|
-
v.value = { width: A, height:
|
|
3949
|
+
const N = D[0], A = N.contentRect.width, Y = N.contentRect.height;
|
|
3950
|
+
v.value = { width: A, height: Y };
|
|
3941
3951
|
}), Z.observe(o.value));
|
|
3942
3952
|
}), ze(() => {
|
|
3943
3953
|
Z && Z.disconnect();
|
|
@@ -3955,13 +3965,13 @@ const ol = "var(--stroke-outline-subtle)", sl = "var(--material-brand-primary)",
|
|
|
3955
3965
|
class: "initing-wrapper",
|
|
3956
3966
|
style: G({ top: d.value, height: `calc(100% - ${d.value})` })
|
|
3957
3967
|
}, [
|
|
3958
|
-
z("div",
|
|
3959
|
-
ne(
|
|
3968
|
+
z("div", br, [
|
|
3969
|
+
ne(F(Wt), {
|
|
3960
3970
|
class: "loading-icon",
|
|
3961
3971
|
size: "20px",
|
|
3962
3972
|
color: "var(--stroke-base-secondary)"
|
|
3963
3973
|
}),
|
|
3964
|
-
z("div",
|
|
3974
|
+
z("div", yr, H(F(pe)("tableList.loading")), 1)
|
|
3965
3975
|
])
|
|
3966
3976
|
], 4)) : j("", !0),
|
|
3967
3977
|
ne(st, { name: "table-list-operation" }, {
|
|
@@ -3973,17 +3983,17 @@ const ol = "var(--stroke-outline-subtle)", sl = "var(--material-brand-primary)",
|
|
|
3973
3983
|
}, [
|
|
3974
3984
|
z("div", {
|
|
3975
3985
|
class: "operation-item",
|
|
3976
|
-
hover: "bg-[--event-focus
|
|
3977
|
-
onClick:
|
|
3986
|
+
hover: "bg-[--event-focus]",
|
|
3987
|
+
onClick: me
|
|
3978
3988
|
}, [
|
|
3979
|
-
ne(
|
|
3989
|
+
ne(F(Ut), { size: "16px" })
|
|
3980
3990
|
]),
|
|
3981
3991
|
N[0] || (N[0] = z("div", { class: "operation-divider" }, null, -1)),
|
|
3982
|
-
z("div",
|
|
3983
|
-
z("div",
|
|
3984
|
-
z("div",
|
|
3992
|
+
z("div", wr, [
|
|
3993
|
+
z("div", xr, H(h.value.length), 1),
|
|
3994
|
+
z("div", kr, H(F(pe)("tableList.selected")), 1)
|
|
3985
3995
|
]),
|
|
3986
|
-
|
|
3996
|
+
l.operation ? (u(), m("div", Sr)) : j("", !0),
|
|
3987
3997
|
ae(D.$slots, "operation", {}, void 0, !0)
|
|
3988
3998
|
], 4)) : j("", !0)
|
|
3989
3999
|
]),
|
|
@@ -3991,7 +4001,7 @@ const ol = "var(--stroke-outline-subtle)", sl = "var(--material-brand-primary)",
|
|
|
3991
4001
|
}),
|
|
3992
4002
|
z("div", {
|
|
3993
4003
|
ref_key: "tableContentRef",
|
|
3994
|
-
ref:
|
|
4004
|
+
ref: r,
|
|
3995
4005
|
class: "table-content-wrapper no-scroll-bar"
|
|
3996
4006
|
}, [
|
|
3997
4007
|
(u(), m("table", {
|
|
@@ -4009,18 +4019,18 @@ const ol = "var(--stroke-outline-subtle)", sl = "var(--material-brand-primary)",
|
|
|
4009
4019
|
"select-all-mode": h.value.length === 0 ? "none" : h.value.length === e.dataList.length ? "all" : "some",
|
|
4010
4020
|
onSelectAllMode: se
|
|
4011
4021
|
}, null, 8, ["height", "select-visible", "select-all-mode"]),
|
|
4012
|
-
(u(!0), m(Le, null, Ve(W.value, (A,
|
|
4022
|
+
(u(!0), m(Le, null, Ve(W.value, (A, Y) => (u(), de(Sn, {
|
|
4013
4023
|
ref_for: !0,
|
|
4014
4024
|
ref_key: "headerCellRefs",
|
|
4015
4025
|
ref: s,
|
|
4016
|
-
key:
|
|
4026
|
+
key: Y,
|
|
4017
4027
|
label: A.label,
|
|
4018
4028
|
align: A.align,
|
|
4019
4029
|
height: d.value,
|
|
4020
4030
|
width: A.width,
|
|
4021
4031
|
sortable: A.sortable,
|
|
4022
4032
|
"select-mode": g.value,
|
|
4023
|
-
onSortChange: (J) =>
|
|
4033
|
+
onSortChange: (J) => q(Number(Y), J)
|
|
4024
4034
|
}, on({ _: 2 }, [
|
|
4025
4035
|
A.headerSlot ? {
|
|
4026
4036
|
name: "default",
|
|
@@ -4032,45 +4042,45 @@ const ol = "var(--stroke-outline-subtle)", sl = "var(--material-brand-primary)",
|
|
|
4032
4042
|
]), 1032, ["label", "align", "height", "width", "sortable", "select-mode", "onSortChange"]))), 128))
|
|
4033
4043
|
])
|
|
4034
4044
|
], 4),
|
|
4035
|
-
e.dataList.length > 0 ? (u(), m("tbody", $
|
|
4045
|
+
e.dataList.length > 0 ? (u(), m("tbody", $r, [
|
|
4036
4046
|
z("tr", {
|
|
4037
4047
|
class: "loading-wrapper",
|
|
4038
4048
|
style: G(x.value)
|
|
4039
4049
|
}, [
|
|
4040
4050
|
z("td", { colspan: R.value }, [
|
|
4041
|
-
z("div",
|
|
4051
|
+
z("div", Or, [
|
|
4042
4052
|
O.value ? (u(), m(Le, { key: 0 }, [
|
|
4043
|
-
ne(
|
|
4053
|
+
ne(F(ra), {
|
|
4044
4054
|
size: "16px",
|
|
4045
4055
|
color: "var(--stroke-color-success)"
|
|
4046
4056
|
}),
|
|
4047
|
-
z("span",
|
|
4048
|
-
], 64)) : (u(), de(
|
|
4057
|
+
z("span", Tr, H(F(pe)("tableList.refreshed")), 1)
|
|
4058
|
+
], 64)) : (u(), de(F(Wt), {
|
|
4049
4059
|
key: 1,
|
|
4050
4060
|
class: "loading-icon",
|
|
4051
4061
|
size: "16px",
|
|
4052
4062
|
color: "var(--stroke-base-secondary)"
|
|
4053
4063
|
}))
|
|
4054
4064
|
])
|
|
4055
|
-
], 8,
|
|
4065
|
+
], 8, Cr)
|
|
4056
4066
|
], 4),
|
|
4057
|
-
(u(!0), m(Le, null, Ve(e.dataList, (A,
|
|
4058
|
-
key:
|
|
4067
|
+
(u(!0), m(Le, null, Ve(e.dataList, (A, Y) => (u(), m("tr", {
|
|
4068
|
+
key: Y,
|
|
4059
4069
|
class: "table-row",
|
|
4060
|
-
onClick: (J) => Q(A,
|
|
4070
|
+
onClick: (J) => Q(A, Y)
|
|
4061
4071
|
}, [
|
|
4062
4072
|
ne(mt, {
|
|
4063
4073
|
type: "select",
|
|
4064
4074
|
"select-visible": g.value,
|
|
4065
|
-
index:
|
|
4075
|
+
index: Y,
|
|
4066
4076
|
"column-height": e.columnHeight,
|
|
4067
4077
|
data: A,
|
|
4068
|
-
selected: h.value.findIndex((J) => J._index ===
|
|
4078
|
+
selected: h.value.findIndex((J) => J._index === Y) !== -1,
|
|
4069
4079
|
onSelectChange: M
|
|
4070
4080
|
}, null, 8, ["select-visible", "index", "column-height", "data", "selected"]),
|
|
4071
|
-
(u(!0), m(Le, null, Ve(
|
|
4072
|
-
key: `${
|
|
4073
|
-
index:
|
|
4081
|
+
(u(!0), m(Le, null, Ve(U.value, (J, f) => (u(), de(mt, {
|
|
4082
|
+
key: `${Y}-${f}`,
|
|
4083
|
+
index: Y,
|
|
4074
4084
|
"column-height": e.columnHeight,
|
|
4075
4085
|
prop: J.prop,
|
|
4076
4086
|
align: J.align,
|
|
@@ -4087,20 +4097,20 @@ const ol = "var(--stroke-outline-subtle)", sl = "var(--material-brand-primary)",
|
|
|
4087
4097
|
key: "0"
|
|
4088
4098
|
} : void 0
|
|
4089
4099
|
]), 1032, ["index", "column-height", "prop", "align", "width", "width-percent", "min-width", "data"]))), 128))
|
|
4090
|
-
], 8,
|
|
4091
|
-
(u(!0), m(Le, null, Ve(E.value, (A,
|
|
4092
|
-
key:
|
|
4100
|
+
], 8, zr))), 128)),
|
|
4101
|
+
(u(!0), m(Le, null, Ve(E.value, (A, Y) => (u(), m("tr", {
|
|
4102
|
+
key: Y + e.dataList.length
|
|
4093
4103
|
}, [
|
|
4094
4104
|
ne(mt, {
|
|
4095
4105
|
type: "select",
|
|
4096
4106
|
"select-visible": g.value,
|
|
4097
|
-
index:
|
|
4107
|
+
index: Y + e.dataList.length,
|
|
4098
4108
|
"column-height": e.columnHeight,
|
|
4099
4109
|
blank: ""
|
|
4100
4110
|
}, null, 8, ["select-visible", "index", "column-height"]),
|
|
4101
|
-
(u(!0), m(Le, null, Ve(
|
|
4102
|
-
key: `${
|
|
4103
|
-
index:
|
|
4111
|
+
(u(!0), m(Le, null, Ve(U.value, (J, f) => (u(), de(mt, {
|
|
4112
|
+
key: `${Y + e.dataList.length}-${f}`,
|
|
4113
|
+
index: Y + e.dataList.length,
|
|
4104
4114
|
"column-height": e.columnHeight,
|
|
4105
4115
|
blank: ""
|
|
4106
4116
|
}, null, 8, ["index", "column-height"]))), 128))
|
|
@@ -4112,57 +4122,57 @@ const ol = "var(--stroke-outline-subtle)", sl = "var(--material-brand-primary)",
|
|
|
4112
4122
|
}, null, 4))
|
|
4113
4123
|
])) : j("", !0)
|
|
4114
4124
|
])),
|
|
4115
|
-
!e.loading && e.dataList.length === 0 ? (u(), m("div",
|
|
4116
|
-
z("div",
|
|
4117
|
-
ne(
|
|
4125
|
+
!e.loading && e.dataList.length === 0 ? (u(), m("div", Lr, [
|
|
4126
|
+
z("div", Er, [
|
|
4127
|
+
ne(F(oa), {
|
|
4118
4128
|
size: "40px",
|
|
4119
4129
|
color: "var(--text-base-quaternary)"
|
|
4120
4130
|
}),
|
|
4121
|
-
z("div",
|
|
4131
|
+
z("div", Rr, H(F(pe)("common.noData")), 1)
|
|
4122
4132
|
])
|
|
4123
|
-
])) : (u(), m("div",
|
|
4133
|
+
])) : (u(), m("div", Br))
|
|
4124
4134
|
], 512)
|
|
4125
4135
|
], 512));
|
|
4126
4136
|
}
|
|
4127
|
-
}), to = /* @__PURE__ */ tn(
|
|
4137
|
+
}), to = /* @__PURE__ */ tn(Wr, [["__scopeId", "data-v-daf6b750"]]);
|
|
4128
4138
|
export {
|
|
4129
|
-
|
|
4139
|
+
Zr as Badge,
|
|
4130
4140
|
_e as Button,
|
|
4131
|
-
|
|
4141
|
+
Xr as Cascader,
|
|
4132
4142
|
qt as Checkbox,
|
|
4133
4143
|
Yn as Dialog,
|
|
4134
|
-
|
|
4144
|
+
Ir as Divider,
|
|
4135
4145
|
zn as Input,
|
|
4136
4146
|
cn as Message,
|
|
4137
|
-
|
|
4138
|
-
|
|
4147
|
+
Fr as Notification,
|
|
4148
|
+
Yr as Option,
|
|
4139
4149
|
Mt as Popover,
|
|
4140
|
-
|
|
4141
|
-
|
|
4142
|
-
|
|
4143
|
-
|
|
4150
|
+
Hr as Progress,
|
|
4151
|
+
Mr as Radio,
|
|
4152
|
+
qr as Select,
|
|
4153
|
+
Gr as Switch,
|
|
4144
4154
|
En as TABS_KEY,
|
|
4145
4155
|
Xn as TIMELINE_KEY,
|
|
4146
|
-
|
|
4147
|
-
|
|
4148
|
-
|
|
4149
|
-
|
|
4150
|
-
|
|
4151
|
-
|
|
4156
|
+
or as TIMELINE_LINE_COLOR,
|
|
4157
|
+
dr as TIMELINE_STATUS_DANGER_COLOR,
|
|
4158
|
+
sr as TIMELINE_STATUS_FINISHED_COLOR,
|
|
4159
|
+
ur as TIMELINE_STATUS_NOT_STARTED_BORDER_COLOR,
|
|
4160
|
+
cr as TIMELINE_STATUS_PENDING_COLOR,
|
|
4161
|
+
jr as TabPane,
|
|
4152
4162
|
to as TableList,
|
|
4153
4163
|
mt as TableListColumn,
|
|
4154
|
-
|
|
4155
|
-
|
|
4156
|
-
|
|
4164
|
+
Nr as Tabs,
|
|
4165
|
+
Kr as Tag,
|
|
4166
|
+
Jr as Timeline,
|
|
4157
4167
|
eo as TimelineItem,
|
|
4158
|
-
|
|
4159
|
-
|
|
4168
|
+
Qr as Upload,
|
|
4169
|
+
rr as confirm,
|
|
4160
4170
|
Yt as getDialogZIndex,
|
|
4161
|
-
|
|
4162
|
-
$
|
|
4171
|
+
Sl as isElementMeasurable,
|
|
4172
|
+
$l as resolveTextOverflow,
|
|
4163
4173
|
Un as selectInjectKey,
|
|
4164
|
-
|
|
4165
|
-
|
|
4174
|
+
Dr as setCregisUILocale,
|
|
4175
|
+
_r as setDialogZIndex,
|
|
4166
4176
|
Fn as useClickOutside,
|
|
4167
|
-
|
|
4177
|
+
Ur as useTextOverflow
|
|
4168
4178
|
};
|