@cregis/ui 0.2.1 → 0.2.2
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/es/cregis-ui.js +401 -396
- package/dist/types/index.d.ts +4 -1
- package/dist/umd/cregis-ui.umd.cjs +1 -1
- package/package.json +1 -1
package/dist/es/cregis-ui.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { EdsLoad as mr, EdsCloseCircleFill as gr, EdsWarningFill as hr, EdsSearch as
|
|
1
|
+
import { defineComponent as G, useSlots as ur, computed as m, createElementBlock as x, openBlock as b, createElementVNode as V, createCommentVNode as I, mergeProps as xe, createBlock as Le, resolveDynamicComponent as Ft, normalizeStyle as ie, renderSlot as q, normalizeClass as j, toDisplayString as M, unref as ne, ref as _, watch as J, withDirectives as je, vModelDynamic as dr, withModifiers as fr, vModelText as pr, createVNode as U, withCtx as Z, createTextVNode as $e, nextTick as Ke, reactive as Me, provide as Ht, toRef as vr, Fragment as lt, renderList as ct, inject as qt, onMounted as et, onUnmounted as Ee, onBeforeUnmount as Ut, Transition as vt, render as Qe, h as Yt, toHandlers as Et, vShow as mt } from "vue";
|
|
2
|
+
import { EdsLoad as mr, EdsCloseCircleFill as gr, EdsWarningFill as hr, EdsSearch as Xt, EdsArrowDownMiniIos as Kt, EdsArrowRightMiniIos as br } from "@cregis/icon";
|
|
3
3
|
const yr = {
|
|
4
4
|
key: 0,
|
|
5
5
|
class: "cregis-button__icon-wrapper"
|
|
6
|
-
}, wr = ["disabled"], xr = ["disabled"], Or = ["disabled"],
|
|
6
|
+
}, wr = ["disabled"], xr = ["disabled"], Or = ["disabled"], Ye = /* @__PURE__ */ G({
|
|
7
7
|
name: "Button",
|
|
8
8
|
inheritAttrs: !1,
|
|
9
9
|
__name: "Button",
|
|
@@ -24,10 +24,10 @@ const yr = {
|
|
|
24
24
|
isActive: { type: Boolean }
|
|
25
25
|
},
|
|
26
26
|
setup(e) {
|
|
27
|
-
const t = e, r = ur(), n =
|
|
27
|
+
const t = e, r = ur(), n = m(() => {
|
|
28
28
|
const s = t, d = r.icon;
|
|
29
29
|
return !s.icon && typeof d == "function";
|
|
30
|
-
}), a =
|
|
30
|
+
}), a = m(() => t.size === "large" ? "20px" : t.size === "medium" ? "16px" : "12px"), i = m(() => t.size === "large" || t.size === "medium" ? "16px" : "12px"), l = m(() => t.width ? { width: t.width } : void 0), o = m(() => {
|
|
31
31
|
if (t.plain || t.text)
|
|
32
32
|
switch (t.type) {
|
|
33
33
|
case "primary":
|
|
@@ -55,13 +55,13 @@ const yr = {
|
|
|
55
55
|
}],
|
|
56
56
|
disabled: e.disabled || e.loading
|
|
57
57
|
}), [
|
|
58
|
-
e.icon ? (b(),
|
|
58
|
+
e.icon ? (b(), Le(Ft(e.icon), {
|
|
59
59
|
key: 0,
|
|
60
60
|
size: a.value
|
|
61
61
|
}, null, 8, ["size"])) : (b(), x("span", {
|
|
62
62
|
key: 1,
|
|
63
63
|
class: "cregis-button__icon-slot-inner",
|
|
64
|
-
style:
|
|
64
|
+
style: ie({ "--cregis-btn-icon-slot-size": a.value })
|
|
65
65
|
}, [
|
|
66
66
|
q(s.$slots, "icon")
|
|
67
67
|
], 4))
|
|
@@ -98,7 +98,7 @@ const yr = {
|
|
|
98
98
|
}],
|
|
99
99
|
disabled: e.disabled || e.loading
|
|
100
100
|
}), [
|
|
101
|
-
e.loading ? (b(),
|
|
101
|
+
e.loading ? (b(), Le(ne(mr), {
|
|
102
102
|
key: 0,
|
|
103
103
|
class: "loading",
|
|
104
104
|
size: i.value,
|
|
@@ -115,7 +115,7 @@ const yr = {
|
|
|
115
115
|
}, Sr = ["disabled", "placeholder", "rows"], Cr = {
|
|
116
116
|
key: 0,
|
|
117
117
|
class: "cregis-textarea__buttons"
|
|
118
|
-
},
|
|
118
|
+
}, Qt = /* @__PURE__ */ G({
|
|
119
119
|
name: "Input",
|
|
120
120
|
inheritAttrs: !1,
|
|
121
121
|
__name: "Input",
|
|
@@ -143,24 +143,24 @@ const yr = {
|
|
|
143
143
|
const l = _(), o = _(0), s = _(!1);
|
|
144
144
|
let d = null;
|
|
145
145
|
const c = async () => {
|
|
146
|
-
await
|
|
146
|
+
await Ke(), l.value?.focus();
|
|
147
147
|
}, w = async () => {
|
|
148
|
-
a("update:modelValue", i.value), a("input", i.value), await
|
|
148
|
+
a("update:modelValue", i.value), a("input", i.value), await Ke(), C();
|
|
149
149
|
}, k = () => {
|
|
150
150
|
a("change", i.value);
|
|
151
151
|
}, v = (f) => {
|
|
152
152
|
s.value = !0, a("focus", f);
|
|
153
153
|
}, S = (f) => {
|
|
154
154
|
s.value = !1, a("blur", f);
|
|
155
|
-
}, O =
|
|
155
|
+
}, O = m(() => n.clearable && !n.disabled && !!i.value && s.value), $ = () => {
|
|
156
156
|
i.value = "", a("update:modelValue", ""), a("clear"), a("input", ""), a("change", "");
|
|
157
157
|
}, C = () => {
|
|
158
158
|
d && cancelAnimationFrame(d), d = requestAnimationFrame(() => {
|
|
159
159
|
if (!l.value || l.value.tagName !== "INPUT") return;
|
|
160
|
-
const f = l.value,
|
|
161
|
-
u.style.position = "absolute", u.style.visibility = "hidden", u.style.whiteSpace = "pre", u.style.font = window.getComputedStyle(f).font, u.style.letterSpacing = window.getComputedStyle(f).letterSpacing, u.textContent =
|
|
160
|
+
const f = l.value, g = f.value, u = document.createElement("span");
|
|
161
|
+
u.style.position = "absolute", u.style.visibility = "hidden", u.style.whiteSpace = "pre", u.style.font = window.getComputedStyle(f).font, u.style.letterSpacing = window.getComputedStyle(f).letterSpacing, u.textContent = g || " ", document.body.appendChild(u), o.value = u.getBoundingClientRect().width, document.body.removeChild(u);
|
|
162
162
|
});
|
|
163
|
-
}, E =
|
|
163
|
+
}, E = m(() => {
|
|
164
164
|
const f = {};
|
|
165
165
|
return o.value > 0 && (f.position = "absolute", f.left = `${o.value + 16}px`), f;
|
|
166
166
|
}), R = async () => {
|
|
@@ -173,7 +173,7 @@ const yr = {
|
|
|
173
173
|
return t({
|
|
174
174
|
focus: c,
|
|
175
175
|
updateTextWidth: C
|
|
176
|
-
}), (f,
|
|
176
|
+
}), (f, g) => e.type !== "textarea" ? (b(), x("div", {
|
|
177
177
|
key: 0,
|
|
178
178
|
class: j(["cregis-input", {
|
|
179
179
|
[`cregis-input--${e.size}`]: e.size,
|
|
@@ -181,7 +181,7 @@ const yr = {
|
|
|
181
181
|
"is-prefix": f.$slots.prefix,
|
|
182
182
|
"is-suffix": f.$slots.suffix
|
|
183
183
|
}]),
|
|
184
|
-
style:
|
|
184
|
+
style: ie([{ width: e.width }, e.inputStyle])
|
|
185
185
|
}, [
|
|
186
186
|
V("div", {
|
|
187
187
|
class: j(["cregis-input__wrapper", { "is-focus": s.value }])
|
|
@@ -189,9 +189,9 @@ const yr = {
|
|
|
189
189
|
f.$slots.prefix ? (b(), x("span", $r, [
|
|
190
190
|
q(f.$slots, "prefix")
|
|
191
191
|
])) : I("", !0),
|
|
192
|
-
|
|
192
|
+
je(V("input", xe({
|
|
193
193
|
class: "cregis-input__inner",
|
|
194
|
-
"onUpdate:modelValue":
|
|
194
|
+
"onUpdate:modelValue": g[0] || (g[0] = (u) => i.value = u),
|
|
195
195
|
ref_key: "inputRef",
|
|
196
196
|
ref: l,
|
|
197
197
|
type: e.type,
|
|
@@ -207,17 +207,17 @@ const yr = {
|
|
|
207
207
|
]),
|
|
208
208
|
e.unit && i.value ? (b(), x("span", {
|
|
209
209
|
key: 1,
|
|
210
|
-
style:
|
|
210
|
+
style: ie(E.value),
|
|
211
211
|
class: "cregis-input__unit"
|
|
212
212
|
}, M(e.unit), 5)) : I("", !0),
|
|
213
213
|
f.$slots.suffix || O.value ? (b(), x("span", Tr, [
|
|
214
214
|
q(f.$slots, "suffix"),
|
|
215
|
-
O.value ? (b(),
|
|
215
|
+
O.value ? (b(), Le(Ye, {
|
|
216
216
|
key: 0,
|
|
217
|
-
icon:
|
|
217
|
+
icon: ne(gr),
|
|
218
218
|
"icon-type": "square",
|
|
219
219
|
onClick: $,
|
|
220
|
-
onMousedown:
|
|
220
|
+
onMousedown: g[1] || (g[1] = fr(() => {
|
|
221
221
|
}, ["prevent"]))
|
|
222
222
|
}, null, 8, ["icon"])) : I("", !0)
|
|
223
223
|
])) : I("", !0)
|
|
@@ -225,15 +225,15 @@ const yr = {
|
|
|
225
225
|
], 6)) : (b(), x("div", {
|
|
226
226
|
key: 1,
|
|
227
227
|
class: j(["cregis-textarea", { "is-disabled": e.disabled }]),
|
|
228
|
-
style:
|
|
228
|
+
style: ie([{ width: e.width }, e.inputStyle])
|
|
229
229
|
}, [
|
|
230
|
-
|
|
230
|
+
je(V("textarea", xe({ class: "cregis-textarea__wrapper" }, f.$attrs, {
|
|
231
231
|
ref_key: "inputRef",
|
|
232
232
|
ref: l,
|
|
233
233
|
disabled: e.disabled,
|
|
234
234
|
placeholder: e.placeholder,
|
|
235
235
|
rows: e.rows,
|
|
236
|
-
"onUpdate:modelValue":
|
|
236
|
+
"onUpdate:modelValue": g[2] || (g[2] = (u) => i.value = u),
|
|
237
237
|
onInput: w,
|
|
238
238
|
onChange: k,
|
|
239
239
|
onFocus: v,
|
|
@@ -242,25 +242,25 @@ const yr = {
|
|
|
242
242
|
[pr, i.value]
|
|
243
243
|
]),
|
|
244
244
|
e.disabled ? I("", !0) : (b(), x("div", Cr, [
|
|
245
|
-
U(
|
|
245
|
+
U(Ye, {
|
|
246
246
|
class: "cregis-textarea__button",
|
|
247
247
|
link: "",
|
|
248
248
|
size: "small",
|
|
249
249
|
onClick: R
|
|
250
250
|
}, {
|
|
251
|
-
default: Z(() => [...
|
|
251
|
+
default: Z(() => [...g[3] || (g[3] = [
|
|
252
252
|
$e(" Paste ", -1)
|
|
253
253
|
])]),
|
|
254
254
|
_: 1
|
|
255
255
|
}),
|
|
256
|
-
U(
|
|
256
|
+
U(Ye, {
|
|
257
257
|
class: "cregis-textarea__button",
|
|
258
258
|
link: "",
|
|
259
259
|
size: "small",
|
|
260
260
|
disabled: !i.value,
|
|
261
261
|
onClick: $
|
|
262
262
|
}, {
|
|
263
|
-
default: Z(() => [...
|
|
263
|
+
default: Z(() => [...g[4] || (g[4] = [
|
|
264
264
|
$e(" Clear ", -1)
|
|
265
265
|
])]),
|
|
266
266
|
_: 1
|
|
@@ -273,7 +273,7 @@ const yr = {
|
|
|
273
273
|
"stroke-width": "1",
|
|
274
274
|
fill: "none",
|
|
275
275
|
"fill-rule": "evenodd"
|
|
276
|
-
}, Er = { transform: "translate(-394.000000, -457.000000)" }, Br = { transform: "translate(394.000000, 457.000000)" }, Ar = ["width", "height"], Rr = /* @__PURE__ */
|
|
276
|
+
}, Er = { transform: "translate(-394.000000, -457.000000)" }, Br = { transform: "translate(394.000000, 457.000000)" }, Ar = ["width", "height"], Rr = /* @__PURE__ */ G({
|
|
277
277
|
__name: "checked-basis",
|
|
278
278
|
props: {
|
|
279
279
|
size: { default: "16px" }
|
|
@@ -309,7 +309,7 @@ const yr = {
|
|
|
309
309
|
}), Dr = {
|
|
310
310
|
key: 0,
|
|
311
311
|
class: "cregis-checkbox--indeterminate"
|
|
312
|
-
}, ei = /* @__PURE__ */
|
|
312
|
+
}, ei = /* @__PURE__ */ G({
|
|
313
313
|
name: "Checkbox",
|
|
314
314
|
__name: "Checkbox",
|
|
315
315
|
props: {
|
|
@@ -321,7 +321,7 @@ const yr = {
|
|
|
321
321
|
},
|
|
322
322
|
emits: ["update:modelValue", "change"],
|
|
323
323
|
setup(e, { emit: t }) {
|
|
324
|
-
const r = e, n = t, a =
|
|
324
|
+
const r = e, n = t, a = m(() => r.modelValue), i = () => {
|
|
325
325
|
r.disabled || n("update:modelValue", !a.value);
|
|
326
326
|
};
|
|
327
327
|
return J(
|
|
@@ -341,7 +341,7 @@ const yr = {
|
|
|
341
341
|
"is-indeterminate": e.indeterminate
|
|
342
342
|
}])
|
|
343
343
|
}, [
|
|
344
|
-
e.indeterminate ? (b(), x("div", Dr)) : (b(),
|
|
344
|
+
e.indeterminate ? (b(), x("div", Dr)) : (b(), Le(Rr, {
|
|
345
345
|
key: 1,
|
|
346
346
|
size: "10px"
|
|
347
347
|
}))
|
|
@@ -356,7 +356,7 @@ const yr = {
|
|
|
356
356
|
], 2)) : I("", !0)
|
|
357
357
|
]));
|
|
358
358
|
}
|
|
359
|
-
}), ti = /* @__PURE__ */
|
|
359
|
+
}), ti = /* @__PURE__ */ G({
|
|
360
360
|
name: "Radio",
|
|
361
361
|
__name: "Radio",
|
|
362
362
|
props: {
|
|
@@ -367,7 +367,7 @@ const yr = {
|
|
|
367
367
|
},
|
|
368
368
|
emits: ["update:modelValue", "change"],
|
|
369
369
|
setup(e, { emit: t }) {
|
|
370
|
-
const r = e, n = t, a =
|
|
370
|
+
const r = e, n = t, a = m(() => r.modelValue === r.value), i = () => {
|
|
371
371
|
r.disabled || (n("update:modelValue", r.value), n("change", r.value));
|
|
372
372
|
};
|
|
373
373
|
return (l, o) => (b(), x("div", {
|
|
@@ -392,7 +392,7 @@ const yr = {
|
|
|
392
392
|
], 2)) : I("", !0)
|
|
393
393
|
]));
|
|
394
394
|
}
|
|
395
|
-
}), ri = /* @__PURE__ */
|
|
395
|
+
}), ri = /* @__PURE__ */ G({
|
|
396
396
|
name: "Divider",
|
|
397
397
|
__name: "Divider",
|
|
398
398
|
props: {
|
|
@@ -404,13 +404,13 @@ const yr = {
|
|
|
404
404
|
length: {}
|
|
405
405
|
},
|
|
406
406
|
setup(e) {
|
|
407
|
-
const t = e, r =
|
|
407
|
+
const t = e, r = m(() => {
|
|
408
408
|
if (Array.isArray(t.margin)) {
|
|
409
409
|
const [a, i] = t.margin;
|
|
410
410
|
return t.direction === "horizontal" ? `${a} 0 ${i} 0` : `0 ${i} 0 ${a}`;
|
|
411
411
|
} else
|
|
412
412
|
return t.direction === "horizontal" ? `${t.margin} 0` : `0 ${t.margin}`;
|
|
413
|
-
}), n =
|
|
413
|
+
}), n = m(() => t.direction === "horizontal" ? {
|
|
414
414
|
width: t.length || "100%",
|
|
415
415
|
borderTopWidth: t.lineThickness,
|
|
416
416
|
borderTopStyle: t.borderStyle,
|
|
@@ -427,10 +427,10 @@ const yr = {
|
|
|
427
427
|
class: j(["cregis-divider", {
|
|
428
428
|
[`cregis-divider--${e.direction}`]: e.direction
|
|
429
429
|
}]),
|
|
430
|
-
style:
|
|
430
|
+
style: ie(n.value)
|
|
431
431
|
}, null, 6));
|
|
432
432
|
}
|
|
433
|
-
}),
|
|
433
|
+
}), Gt = Symbol("TABS_KEY"), zr = ["onClick"], Wr = { style: { display: "none" } }, ai = /* @__PURE__ */ G({
|
|
434
434
|
name: "Tabs",
|
|
435
435
|
__name: "Tabs",
|
|
436
436
|
props: {
|
|
@@ -440,12 +440,12 @@ const yr = {
|
|
|
440
440
|
},
|
|
441
441
|
emits: ["update:modelValue"],
|
|
442
442
|
setup(e) {
|
|
443
|
-
const t = e, r =
|
|
443
|
+
const t = e, r = Me([]), n = (l) => {
|
|
444
444
|
r.some((o) => o.name === l.name) || r.push(l);
|
|
445
445
|
}, a = (l) => {
|
|
446
446
|
const o = r.findIndex((s) => s.name === l);
|
|
447
447
|
o !== -1 && r.splice(o, 1);
|
|
448
|
-
}, i =
|
|
448
|
+
}, i = m(() => t.type === "card" ? t.size === "large" ? {
|
|
449
449
|
borderRadius: "13px"
|
|
450
450
|
} : t.size === "medium" ? {
|
|
451
451
|
borderRadius: "11px"
|
|
@@ -454,7 +454,7 @@ const yr = {
|
|
|
454
454
|
} : {
|
|
455
455
|
borderRadius: 0
|
|
456
456
|
});
|
|
457
|
-
return
|
|
457
|
+
return Ht(Gt, {
|
|
458
458
|
activeName: vr(t, "modelValue"),
|
|
459
459
|
registerTab: n,
|
|
460
460
|
unregisterTab: a
|
|
@@ -464,10 +464,10 @@ const yr = {
|
|
|
464
464
|
[`cregis-tabs--${e.size}`]: e.size
|
|
465
465
|
}])
|
|
466
466
|
}, [
|
|
467
|
-
(b(!0), x(
|
|
467
|
+
(b(!0), x(lt, null, ct(r, (s) => (b(), x("div", {
|
|
468
468
|
key: s.name,
|
|
469
469
|
class: j(["cregis-tabs__item", { "is-active": e.modelValue === s.name }]),
|
|
470
|
-
style:
|
|
470
|
+
style: ie(i.value),
|
|
471
471
|
onClick: (d) => l.$emit("update:modelValue", s.name)
|
|
472
472
|
}, [
|
|
473
473
|
V("span", null, M(s.label), 1)
|
|
@@ -477,7 +477,7 @@ const yr = {
|
|
|
477
477
|
])
|
|
478
478
|
], 2));
|
|
479
479
|
}
|
|
480
|
-
}), ni = /* @__PURE__ */
|
|
480
|
+
}), ni = /* @__PURE__ */ G({
|
|
481
481
|
name: "TabPane",
|
|
482
482
|
__name: "TabPane",
|
|
483
483
|
props: {
|
|
@@ -485,9 +485,9 @@ const yr = {
|
|
|
485
485
|
name: {}
|
|
486
486
|
},
|
|
487
487
|
setup(e) {
|
|
488
|
-
const t = e, r =
|
|
488
|
+
const t = e, r = qt(Gt);
|
|
489
489
|
if (!r) throw new Error("TabPane must be used within Tabs");
|
|
490
|
-
return
|
|
490
|
+
return et(() => {
|
|
491
491
|
r.registerTab({ label: t.label, name: t.name });
|
|
492
492
|
}), J(
|
|
493
493
|
() => t.label,
|
|
@@ -503,7 +503,7 @@ const yr = {
|
|
|
503
503
|
class: "cregis-message",
|
|
504
504
|
role: "status",
|
|
505
505
|
"aria-live": "polite"
|
|
506
|
-
}, Mr = /* @__PURE__ */
|
|
506
|
+
}, Mr = /* @__PURE__ */ G({
|
|
507
507
|
name: "Message",
|
|
508
508
|
__name: "Message",
|
|
509
509
|
props: {
|
|
@@ -521,12 +521,12 @@ const yr = {
|
|
|
521
521
|
}, i = () => {
|
|
522
522
|
t.onVanish?.();
|
|
523
523
|
};
|
|
524
|
-
return
|
|
524
|
+
return Ut(() => {
|
|
525
525
|
n !== void 0 && clearTimeout(n);
|
|
526
|
-
}),
|
|
526
|
+
}), Ke(() => {
|
|
527
527
|
r.value = !0;
|
|
528
528
|
}), (l, o) => (b(), x("div", Lr, [
|
|
529
|
-
U(
|
|
529
|
+
U(vt, {
|
|
530
530
|
name: "cregis-message",
|
|
531
531
|
onAfterEnter: a,
|
|
532
532
|
onAfterLeave: i
|
|
@@ -539,7 +539,7 @@ const yr = {
|
|
|
539
539
|
]));
|
|
540
540
|
}
|
|
541
541
|
});
|
|
542
|
-
let
|
|
542
|
+
let it = !1;
|
|
543
543
|
function _r(e) {
|
|
544
544
|
return typeof e == "string" ? { message: e, duration: 1e3 } : {
|
|
545
545
|
message: e.message,
|
|
@@ -547,16 +547,16 @@ function _r(e) {
|
|
|
547
547
|
};
|
|
548
548
|
}
|
|
549
549
|
function ii(e) {
|
|
550
|
-
if (
|
|
550
|
+
if (it) return;
|
|
551
551
|
const { message: t, duration: r } = _r(e);
|
|
552
|
-
|
|
552
|
+
it = !0;
|
|
553
553
|
const n = document.createElement("div");
|
|
554
|
-
document.body.appendChild(n),
|
|
555
|
-
|
|
554
|
+
document.body.appendChild(n), Qe(
|
|
555
|
+
Yt(Mr, {
|
|
556
556
|
message: t,
|
|
557
557
|
duration: r,
|
|
558
558
|
onVanish: () => {
|
|
559
|
-
|
|
559
|
+
it = !1, Qe(null, n), n.remove();
|
|
560
560
|
}
|
|
561
561
|
}),
|
|
562
562
|
n
|
|
@@ -567,7 +567,7 @@ const Ir = { class: "cregis-notification__wrapper" }, Nr = {
|
|
|
567
567
|
class: "cregis-notification",
|
|
568
568
|
role: "status",
|
|
569
569
|
"aria-live": "polite"
|
|
570
|
-
}, Fr = { class: "cregis-notification__content" }, Hr = { class: "cregis-notification__title" }, qr = { class: "cregis-notification__message" }, Ur = /* @__PURE__ */
|
|
570
|
+
}, Fr = { class: "cregis-notification__content" }, Hr = { class: "cregis-notification__title" }, qr = { class: "cregis-notification__message" }, Ur = /* @__PURE__ */ G({
|
|
571
571
|
name: "Notification",
|
|
572
572
|
__name: "Notification",
|
|
573
573
|
props: {
|
|
@@ -583,17 +583,17 @@ const Ir = { class: "cregis-notification__wrapper" }, Nr = {
|
|
|
583
583
|
}, a = () => {
|
|
584
584
|
t.onVanish?.();
|
|
585
585
|
};
|
|
586
|
-
return
|
|
587
|
-
}),
|
|
586
|
+
return Ut(() => {
|
|
587
|
+
}), Ke(() => {
|
|
588
588
|
r.value = !0;
|
|
589
589
|
}), (i, l) => (b(), x("div", Ir, [
|
|
590
|
-
U(
|
|
590
|
+
U(vt, {
|
|
591
591
|
name: "cregis-notification",
|
|
592
592
|
onAfterLeave: a
|
|
593
593
|
}, {
|
|
594
594
|
default: Z(() => [
|
|
595
595
|
r.value ? (b(), x("div", Nr, [
|
|
596
|
-
(b(),
|
|
596
|
+
(b(), Le(Ft(ne(hr)), {
|
|
597
597
|
size: "18px",
|
|
598
598
|
color: "var(--material-vibrant-error-primary)"
|
|
599
599
|
})),
|
|
@@ -601,7 +601,7 @@ const Ir = { class: "cregis-notification__wrapper" }, Nr = {
|
|
|
601
601
|
V("div", Hr, M(e.title), 1),
|
|
602
602
|
V("div", qr, M(e.message), 1)
|
|
603
603
|
]),
|
|
604
|
-
U(
|
|
604
|
+
U(Ye, {
|
|
605
605
|
type: "sameWhite",
|
|
606
606
|
onClick: n
|
|
607
607
|
}, {
|
|
@@ -617,29 +617,29 @@ const Ir = { class: "cregis-notification__wrapper" }, Nr = {
|
|
|
617
617
|
]));
|
|
618
618
|
}
|
|
619
619
|
});
|
|
620
|
-
let
|
|
620
|
+
let ot = !1;
|
|
621
621
|
function oi(e) {
|
|
622
|
-
if (
|
|
622
|
+
if (ot) return;
|
|
623
623
|
const { title: t, message: r, type: n, btnText: a } = e;
|
|
624
|
-
|
|
624
|
+
ot = !0;
|
|
625
625
|
const i = document.createElement("div");
|
|
626
|
-
document.body.appendChild(i),
|
|
627
|
-
|
|
626
|
+
document.body.appendChild(i), Qe(
|
|
627
|
+
Yt(Ur, {
|
|
628
628
|
title: t,
|
|
629
629
|
message: r,
|
|
630
630
|
type: n,
|
|
631
631
|
btnText: a,
|
|
632
632
|
onVanish: () => {
|
|
633
|
-
|
|
633
|
+
ot = !1, Qe(null, i), i.remove();
|
|
634
634
|
}
|
|
635
635
|
}),
|
|
636
636
|
i
|
|
637
637
|
);
|
|
638
638
|
}
|
|
639
|
-
const
|
|
639
|
+
const Yr = { class: "cregis-progress__wrapper" }, Xr = { class: "cregis-progress__track-wrap" }, Kr = { class: "cregis-progress cregis-progress--striped active" }, Qr = {
|
|
640
640
|
key: 0,
|
|
641
641
|
class: "cregis-progress__sliding-block"
|
|
642
|
-
}, si = /* @__PURE__ */
|
|
642
|
+
}, si = /* @__PURE__ */ G({
|
|
643
643
|
name: "Progress",
|
|
644
644
|
__name: "Progress",
|
|
645
645
|
props: {
|
|
@@ -648,24 +648,24 @@ const Xr = { class: "cregis-progress__wrapper" }, Yr = { class: "cregis-progress
|
|
|
648
648
|
showPercentage: { type: Boolean, default: !0 }
|
|
649
649
|
},
|
|
650
650
|
setup(e) {
|
|
651
|
-
const t = e, r =
|
|
651
|
+
const t = e, r = m(() => Math.min(100, Math.max(0, t.percentage - 1))), n = m(() => ({
|
|
652
652
|
width: `${t.percentage}%`,
|
|
653
653
|
height: `${t.strokeWidth}px`
|
|
654
|
-
})), a =
|
|
654
|
+
})), a = m(() => ({
|
|
655
655
|
"--cregis-progress-tip-left": `${r.value}%`
|
|
656
|
-
})), i =
|
|
657
|
-
return (l, o) => (b(), x("div",
|
|
658
|
-
V("div",
|
|
656
|
+
})), i = m(() => `${Math.round(t.percentage)}%`);
|
|
657
|
+
return (l, o) => (b(), x("div", Yr, [
|
|
658
|
+
V("div", Xr, [
|
|
659
659
|
e.showPercentage && t.percentage > 0 ? (b(), x("div", {
|
|
660
660
|
key: 0,
|
|
661
661
|
class: "cregis-progress__tip",
|
|
662
|
-
style:
|
|
662
|
+
style: ie(a.value),
|
|
663
663
|
"aria-live": "polite"
|
|
664
664
|
}, M(i.value), 5)) : I("", !0),
|
|
665
665
|
V("div", Kr, [
|
|
666
666
|
V("div", {
|
|
667
667
|
class: "cregis-progress__bar",
|
|
668
|
-
style:
|
|
668
|
+
style: ie(n.value)
|
|
669
669
|
}, null, 4),
|
|
670
670
|
t.percentage === 0 ? (b(), x("div", Qr)) : I("", !0)
|
|
671
671
|
])
|
|
@@ -673,12 +673,12 @@ const Xr = { class: "cregis-progress__wrapper" }, Yr = { class: "cregis-progress
|
|
|
673
673
|
]));
|
|
674
674
|
}
|
|
675
675
|
});
|
|
676
|
-
var ee = "top",
|
|
677
|
-
return e.concat([t + "-" + Se, t + "-" +
|
|
678
|
-
}, []),
|
|
679
|
-
return e.concat([t, t + "-" + Se, t + "-" +
|
|
676
|
+
var ee = "top", se = "bottom", le = "right", te = "left", gt = "auto", Ne = [ee, se, le, te], Se = "start", _e = "end", Gr = "clippingParents", Zt = "viewport", Re = "popper", Zr = "reference", Bt = /* @__PURE__ */ Ne.reduce(function(e, t) {
|
|
677
|
+
return e.concat([t + "-" + Se, t + "-" + _e]);
|
|
678
|
+
}, []), Jt = /* @__PURE__ */ [].concat(Ne, [gt]).reduce(function(e, t) {
|
|
679
|
+
return e.concat([t, t + "-" + Se, t + "-" + _e]);
|
|
680
680
|
}, []), Jr = "beforeRead", ea = "read", ta = "afterRead", ra = "beforeMain", aa = "main", na = "afterMain", ia = "beforeWrite", oa = "write", sa = "afterWrite", la = [Jr, ea, ta, ra, aa, na, ia, oa, sa];
|
|
681
|
-
function
|
|
681
|
+
function ve(e) {
|
|
682
682
|
return e ? (e.nodeName || "").toLowerCase() : null;
|
|
683
683
|
}
|
|
684
684
|
function re(e) {
|
|
@@ -694,11 +694,11 @@ function ke(e) {
|
|
|
694
694
|
var t = re(e).Element;
|
|
695
695
|
return e instanceof t || e instanceof Element;
|
|
696
696
|
}
|
|
697
|
-
function
|
|
697
|
+
function oe(e) {
|
|
698
698
|
var t = re(e).HTMLElement;
|
|
699
699
|
return e instanceof t || e instanceof HTMLElement;
|
|
700
700
|
}
|
|
701
|
-
function
|
|
701
|
+
function ht(e) {
|
|
702
702
|
if (typeof ShadowRoot > "u")
|
|
703
703
|
return !1;
|
|
704
704
|
var t = re(e).ShadowRoot;
|
|
@@ -708,7 +708,7 @@ function ca(e) {
|
|
|
708
708
|
var t = e.state;
|
|
709
709
|
Object.keys(t.elements).forEach(function(r) {
|
|
710
710
|
var n = t.styles[r] || {}, a = t.attributes[r] || {}, i = t.elements[r];
|
|
711
|
-
!
|
|
711
|
+
!oe(i) || !ve(i) || (Object.assign(i.style, n), Object.keys(a).forEach(function(l) {
|
|
712
712
|
var o = a[l];
|
|
713
713
|
o === !1 ? i.removeAttribute(l) : i.setAttribute(l, o === !0 ? "" : o);
|
|
714
714
|
}));
|
|
@@ -732,7 +732,7 @@ function ua(e) {
|
|
|
732
732
|
var a = t.elements[n], i = t.attributes[n] || {}, l = Object.keys(t.styles.hasOwnProperty(n) ? t.styles[n] : r[n]), o = l.reduce(function(s, d) {
|
|
733
733
|
return s[d] = "", s;
|
|
734
734
|
}, {});
|
|
735
|
-
!
|
|
735
|
+
!oe(a) || !ve(a) || (Object.assign(a.style, o), Object.keys(i).forEach(function(s) {
|
|
736
736
|
a.removeAttribute(s);
|
|
737
737
|
}));
|
|
738
738
|
});
|
|
@@ -746,24 +746,24 @@ const da = {
|
|
|
746
746
|
effect: ua,
|
|
747
747
|
requires: ["computeStyles"]
|
|
748
748
|
};
|
|
749
|
-
function
|
|
749
|
+
function pe(e) {
|
|
750
750
|
return e.split("-")[0];
|
|
751
751
|
}
|
|
752
|
-
var Oe = Math.max,
|
|
753
|
-
function
|
|
752
|
+
var Oe = Math.max, Ge = Math.min, Ce = Math.round;
|
|
753
|
+
function ut() {
|
|
754
754
|
var e = navigator.userAgentData;
|
|
755
755
|
return e != null && e.brands && Array.isArray(e.brands) ? e.brands.map(function(t) {
|
|
756
756
|
return t.brand + "/" + t.version;
|
|
757
757
|
}).join(" ") : navigator.userAgent;
|
|
758
758
|
}
|
|
759
|
-
function
|
|
760
|
-
return !/^((?!chrome|android).)*safari/i.test(
|
|
759
|
+
function er() {
|
|
760
|
+
return !/^((?!chrome|android).)*safari/i.test(ut());
|
|
761
761
|
}
|
|
762
762
|
function Pe(e, t, r) {
|
|
763
763
|
t === void 0 && (t = !1), r === void 0 && (r = !1);
|
|
764
764
|
var n = e.getBoundingClientRect(), a = 1, i = 1;
|
|
765
|
-
t &&
|
|
766
|
-
var l = ke(e) ? re(e) : window, o = l.visualViewport, s = !
|
|
765
|
+
t && oe(e) && (a = e.offsetWidth > 0 && Ce(n.width) / e.offsetWidth || 1, i = e.offsetHeight > 0 && Ce(n.height) / e.offsetHeight || 1);
|
|
766
|
+
var l = ke(e) ? re(e) : window, o = l.visualViewport, s = !er() && r, d = (n.left + (s && o ? o.offsetLeft : 0)) / a, c = (n.top + (s && o ? o.offsetTop : 0)) / i, w = n.width / a, k = n.height / i;
|
|
767
767
|
return {
|
|
768
768
|
width: w,
|
|
769
769
|
height: k,
|
|
@@ -775,7 +775,7 @@ function Pe(e, t, r) {
|
|
|
775
775
|
y: c
|
|
776
776
|
};
|
|
777
777
|
}
|
|
778
|
-
function
|
|
778
|
+
function bt(e) {
|
|
779
779
|
var t = Pe(e), r = e.offsetWidth, n = e.offsetHeight;
|
|
780
780
|
return Math.abs(t.width - r) <= 1 && (r = t.width), Math.abs(t.height - n) <= 1 && (n = t.height), {
|
|
781
781
|
x: e.offsetLeft,
|
|
@@ -784,11 +784,11 @@ function ht(e) {
|
|
|
784
784
|
height: n
|
|
785
785
|
};
|
|
786
786
|
}
|
|
787
|
-
function
|
|
787
|
+
function tr(e, t) {
|
|
788
788
|
var r = t.getRootNode && t.getRootNode();
|
|
789
789
|
if (e.contains(t))
|
|
790
790
|
return !0;
|
|
791
|
-
if (r &&
|
|
791
|
+
if (r && ht(r)) {
|
|
792
792
|
var n = t;
|
|
793
793
|
do {
|
|
794
794
|
if (n && e.isSameNode(n))
|
|
@@ -802,7 +802,7 @@ function ge(e) {
|
|
|
802
802
|
return re(e).getComputedStyle(e);
|
|
803
803
|
}
|
|
804
804
|
function fa(e) {
|
|
805
|
-
return ["table", "td", "th"].indexOf(
|
|
805
|
+
return ["table", "td", "th"].indexOf(ve(e)) >= 0;
|
|
806
806
|
}
|
|
807
807
|
function be(e) {
|
|
808
808
|
return ((ke(e) ? e.ownerDocument : (
|
|
@@ -810,31 +810,31 @@ function be(e) {
|
|
|
810
810
|
e.document
|
|
811
811
|
)) || window.document).documentElement;
|
|
812
812
|
}
|
|
813
|
-
function
|
|
814
|
-
return
|
|
813
|
+
function tt(e) {
|
|
814
|
+
return ve(e) === "html" ? e : (
|
|
815
815
|
// this is a quicker (but less type safe) way to save quite some bytes from the bundle
|
|
816
816
|
// $FlowFixMe[incompatible-return]
|
|
817
817
|
// $FlowFixMe[prop-missing]
|
|
818
818
|
e.assignedSlot || // step into the shadow DOM of the parent of a slotted node
|
|
819
819
|
e.parentNode || // DOM Element detected
|
|
820
|
-
(
|
|
820
|
+
(ht(e) ? e.host : null) || // ShadowRoot detected
|
|
821
821
|
// $FlowFixMe[incompatible-call]: HTMLElement is a Node
|
|
822
822
|
be(e)
|
|
823
823
|
);
|
|
824
824
|
}
|
|
825
|
-
function
|
|
826
|
-
return !
|
|
825
|
+
function At(e) {
|
|
826
|
+
return !oe(e) || // https://github.com/popperjs/popper-core/issues/837
|
|
827
827
|
ge(e).position === "fixed" ? null : e.offsetParent;
|
|
828
828
|
}
|
|
829
829
|
function pa(e) {
|
|
830
|
-
var t = /firefox/i.test(
|
|
831
|
-
if (r &&
|
|
830
|
+
var t = /firefox/i.test(ut()), r = /Trident/i.test(ut());
|
|
831
|
+
if (r && oe(e)) {
|
|
832
832
|
var n = ge(e);
|
|
833
833
|
if (n.position === "fixed")
|
|
834
834
|
return null;
|
|
835
835
|
}
|
|
836
|
-
var a =
|
|
837
|
-
for (
|
|
836
|
+
var a = tt(e);
|
|
837
|
+
for (ht(a) && (a = a.host); oe(a) && ["html", "body"].indexOf(ve(a)) < 0; ) {
|
|
838
838
|
var i = ge(a);
|
|
839
839
|
if (i.transform !== "none" || i.perspective !== "none" || i.contain === "paint" || ["transform", "perspective"].indexOf(i.willChange) !== -1 || t && i.willChange === "filter" || t && i.filter && i.filter !== "none")
|
|
840
840
|
return a;
|
|
@@ -842,22 +842,22 @@ function pa(e) {
|
|
|
842
842
|
}
|
|
843
843
|
return null;
|
|
844
844
|
}
|
|
845
|
-
function
|
|
846
|
-
for (var t = re(e), r =
|
|
847
|
-
r =
|
|
848
|
-
return r && (
|
|
845
|
+
function Fe(e) {
|
|
846
|
+
for (var t = re(e), r = At(e); r && fa(r) && ge(r).position === "static"; )
|
|
847
|
+
r = At(r);
|
|
848
|
+
return r && (ve(r) === "html" || ve(r) === "body" && ge(r).position === "static") ? t : r || pa(e) || t;
|
|
849
849
|
}
|
|
850
|
-
function
|
|
850
|
+
function yt(e) {
|
|
851
851
|
return ["top", "bottom"].indexOf(e) >= 0 ? "x" : "y";
|
|
852
852
|
}
|
|
853
|
-
function
|
|
854
|
-
return Oe(e,
|
|
853
|
+
function ze(e, t, r) {
|
|
854
|
+
return Oe(e, Ge(t, r));
|
|
855
855
|
}
|
|
856
856
|
function va(e, t, r) {
|
|
857
|
-
var n =
|
|
857
|
+
var n = ze(e, t, r);
|
|
858
858
|
return n > r ? r : n;
|
|
859
859
|
}
|
|
860
|
-
function
|
|
860
|
+
function rr() {
|
|
861
861
|
return {
|
|
862
862
|
top: 0,
|
|
863
863
|
right: 0,
|
|
@@ -865,10 +865,10 @@ function er() {
|
|
|
865
865
|
left: 0
|
|
866
866
|
};
|
|
867
867
|
}
|
|
868
|
-
function
|
|
869
|
-
return Object.assign({},
|
|
868
|
+
function ar(e) {
|
|
869
|
+
return Object.assign({}, rr(), e);
|
|
870
870
|
}
|
|
871
|
-
function
|
|
871
|
+
function nr(e, t) {
|
|
872
872
|
return t.reduce(function(r, n) {
|
|
873
873
|
return r[n] = e, r;
|
|
874
874
|
}, {});
|
|
@@ -876,18 +876,18 @@ function rr(e, t) {
|
|
|
876
876
|
var ma = function(t, r) {
|
|
877
877
|
return t = typeof t == "function" ? t(Object.assign({}, r.rects, {
|
|
878
878
|
placement: r.placement
|
|
879
|
-
})) : t,
|
|
879
|
+
})) : t, ar(typeof t != "number" ? t : nr(t, Ne));
|
|
880
880
|
};
|
|
881
881
|
function ga(e) {
|
|
882
|
-
var t, r = e.state, n = e.name, a = e.options, i = r.elements.arrow, l = r.modifiersData.popperOffsets, o =
|
|
882
|
+
var t, r = e.state, n = e.name, a = e.options, i = r.elements.arrow, l = r.modifiersData.popperOffsets, o = pe(r.placement), s = yt(o), d = [te, le].indexOf(o) >= 0, c = d ? "height" : "width";
|
|
883
883
|
if (!(!i || !l)) {
|
|
884
|
-
var w = ma(a.padding, r), k =
|
|
884
|
+
var w = ma(a.padding, r), k = bt(i), v = s === "y" ? ee : te, S = s === "y" ? se : le, O = r.rects.reference[c] + r.rects.reference[s] - l[s] - r.rects.popper[c], $ = l[s] - r.rects.reference[s], C = Fe(i), E = C ? s === "y" ? C.clientHeight || 0 : C.clientWidth || 0 : 0, R = O / 2 - $ / 2, f = w[v], g = E - k[c] - w[S], u = E / 2 - k[c] / 2 + R, T = ze(f, u, g), B = s;
|
|
885
885
|
r.modifiersData[n] = (t = {}, t[B] = T, t.centerOffset = T - u, t);
|
|
886
886
|
}
|
|
887
887
|
}
|
|
888
888
|
function ha(e) {
|
|
889
889
|
var t = e.state, r = e.options, n = r.element, a = n === void 0 ? "[data-popper-arrow]" : n;
|
|
890
|
-
a != null && (typeof a == "string" && (a = t.elements.popper.querySelector(a), !a) ||
|
|
890
|
+
a != null && (typeof a == "string" && (a = t.elements.popper.querySelector(a), !a) || tr(t.elements.popper, a) && (t.elements.arrow = a));
|
|
891
891
|
}
|
|
892
892
|
const ba = {
|
|
893
893
|
name: "arrow",
|
|
@@ -914,7 +914,7 @@ function wa(e, t) {
|
|
|
914
914
|
y: Ce(n * a) / a || 0
|
|
915
915
|
};
|
|
916
916
|
}
|
|
917
|
-
function
|
|
917
|
+
function Rt(e) {
|
|
918
918
|
var t, r = e.popper, n = e.popperRect, a = e.placement, i = e.variation, l = e.offsets, o = e.position, s = e.gpuAcceleration, d = e.adaptive, c = e.roundOffsets, w = e.isFixed, k = l.x, v = k === void 0 ? 0 : k, S = l.y, O = S === void 0 ? 0 : S, $ = typeof c == "function" ? c({
|
|
919
919
|
x: v,
|
|
920
920
|
y: O
|
|
@@ -923,20 +923,20 @@ function Bt(e) {
|
|
|
923
923
|
y: O
|
|
924
924
|
};
|
|
925
925
|
v = $.x, O = $.y;
|
|
926
|
-
var C = l.hasOwnProperty("x"), E = l.hasOwnProperty("y"), R = te, f = ee,
|
|
926
|
+
var C = l.hasOwnProperty("x"), E = l.hasOwnProperty("y"), R = te, f = ee, g = window;
|
|
927
927
|
if (d) {
|
|
928
|
-
var u =
|
|
929
|
-
if (u === re(r) && (u = be(r), ge(u).position !== "static" && o === "absolute" && (T = "scrollHeight", B = "scrollWidth")), u = u, a === ee || (a === te || a ===
|
|
930
|
-
f =
|
|
931
|
-
var D = w && u ===
|
|
928
|
+
var u = Fe(r), T = "clientHeight", B = "clientWidth";
|
|
929
|
+
if (u === re(r) && (u = be(r), ge(u).position !== "static" && o === "absolute" && (T = "scrollHeight", B = "scrollWidth")), u = u, a === ee || (a === te || a === le) && i === _e) {
|
|
930
|
+
f = se;
|
|
931
|
+
var D = w && u === g && g.visualViewport ? g.visualViewport.height : (
|
|
932
932
|
// $FlowFixMe[prop-missing]
|
|
933
933
|
u[T]
|
|
934
934
|
);
|
|
935
935
|
O -= D - n.height, O *= s ? 1 : -1;
|
|
936
936
|
}
|
|
937
|
-
if (a === te || (a === ee || a ===
|
|
938
|
-
R =
|
|
939
|
-
var W = w && u ===
|
|
937
|
+
if (a === te || (a === ee || a === se) && i === _e) {
|
|
938
|
+
R = le;
|
|
939
|
+
var W = w && u === g && g.visualViewport ? g.visualViewport.width : (
|
|
940
940
|
// $FlowFixMe[prop-missing]
|
|
941
941
|
u[B]
|
|
942
942
|
);
|
|
@@ -954,25 +954,25 @@ function Bt(e) {
|
|
|
954
954
|
};
|
|
955
955
|
if (v = A.x, O = A.y, s) {
|
|
956
956
|
var z;
|
|
957
|
-
return Object.assign({}, y, (z = {}, z[f] = E ? "0" : "", z[R] = C ? "0" : "", z.transform = (
|
|
957
|
+
return Object.assign({}, y, (z = {}, z[f] = E ? "0" : "", z[R] = C ? "0" : "", z.transform = (g.devicePixelRatio || 1) <= 1 ? "translate(" + v + "px, " + O + "px)" : "translate3d(" + v + "px, " + O + "px, 0)", z));
|
|
958
958
|
}
|
|
959
959
|
return Object.assign({}, y, (t = {}, t[f] = E ? O + "px" : "", t[R] = C ? v + "px" : "", t.transform = "", t));
|
|
960
960
|
}
|
|
961
961
|
function xa(e) {
|
|
962
962
|
var t = e.state, r = e.options, n = r.gpuAcceleration, a = n === void 0 ? !0 : n, i = r.adaptive, l = i === void 0 ? !0 : i, o = r.roundOffsets, s = o === void 0 ? !0 : o, d = {
|
|
963
|
-
placement:
|
|
963
|
+
placement: pe(t.placement),
|
|
964
964
|
variation: Ve(t.placement),
|
|
965
965
|
popper: t.elements.popper,
|
|
966
966
|
popperRect: t.rects.popper,
|
|
967
967
|
gpuAcceleration: a,
|
|
968
968
|
isFixed: t.options.strategy === "fixed"
|
|
969
969
|
};
|
|
970
|
-
t.modifiersData.popperOffsets != null && (t.styles.popper = Object.assign({}, t.styles.popper,
|
|
970
|
+
t.modifiersData.popperOffsets != null && (t.styles.popper = Object.assign({}, t.styles.popper, Rt(Object.assign({}, d, {
|
|
971
971
|
offsets: t.modifiersData.popperOffsets,
|
|
972
972
|
position: t.options.strategy,
|
|
973
973
|
adaptive: l,
|
|
974
974
|
roundOffsets: s
|
|
975
|
-
})))), t.modifiersData.arrow != null && (t.styles.arrow = Object.assign({}, t.styles.arrow,
|
|
975
|
+
})))), t.modifiersData.arrow != null && (t.styles.arrow = Object.assign({}, t.styles.arrow, Rt(Object.assign({}, d, {
|
|
976
976
|
offsets: t.modifiersData.arrow,
|
|
977
977
|
position: "absolute",
|
|
978
978
|
adaptive: !1,
|
|
@@ -988,17 +988,17 @@ const Oa = {
|
|
|
988
988
|
fn: xa,
|
|
989
989
|
data: {}
|
|
990
990
|
};
|
|
991
|
-
var
|
|
991
|
+
var Ue = {
|
|
992
992
|
passive: !0
|
|
993
993
|
};
|
|
994
994
|
function $a(e) {
|
|
995
995
|
var t = e.state, r = e.instance, n = e.options, a = n.scroll, i = a === void 0 ? !0 : a, l = n.resize, o = l === void 0 ? !0 : l, s = re(t.elements.popper), d = [].concat(t.scrollParents.reference, t.scrollParents.popper);
|
|
996
996
|
return i && d.forEach(function(c) {
|
|
997
|
-
c.addEventListener("scroll", r.update,
|
|
998
|
-
}), o && s.addEventListener("resize", r.update,
|
|
997
|
+
c.addEventListener("scroll", r.update, Ue);
|
|
998
|
+
}), o && s.addEventListener("resize", r.update, Ue), function() {
|
|
999
999
|
i && d.forEach(function(c) {
|
|
1000
|
-
c.removeEventListener("scroll", r.update,
|
|
1001
|
-
}), o && s.removeEventListener("resize", r.update,
|
|
1000
|
+
c.removeEventListener("scroll", r.update, Ue);
|
|
1001
|
+
}), o && s.removeEventListener("resize", r.update, Ue);
|
|
1002
1002
|
};
|
|
1003
1003
|
}
|
|
1004
1004
|
const ka = {
|
|
@@ -1025,37 +1025,37 @@ var Sa = {
|
|
|
1025
1025
|
start: "end",
|
|
1026
1026
|
end: "start"
|
|
1027
1027
|
};
|
|
1028
|
-
function
|
|
1028
|
+
function Dt(e) {
|
|
1029
1029
|
return e.replace(/start|end/g, function(t) {
|
|
1030
1030
|
return Sa[t];
|
|
1031
1031
|
});
|
|
1032
1032
|
}
|
|
1033
|
-
function
|
|
1033
|
+
function wt(e) {
|
|
1034
1034
|
var t = re(e), r = t.pageXOffset, n = t.pageYOffset;
|
|
1035
1035
|
return {
|
|
1036
1036
|
scrollLeft: r,
|
|
1037
1037
|
scrollTop: n
|
|
1038
1038
|
};
|
|
1039
1039
|
}
|
|
1040
|
-
function
|
|
1041
|
-
return Pe(be(e)).left +
|
|
1040
|
+
function xt(e) {
|
|
1041
|
+
return Pe(be(e)).left + wt(e).scrollLeft;
|
|
1042
1042
|
}
|
|
1043
1043
|
function Ca(e, t) {
|
|
1044
1044
|
var r = re(e), n = be(e), a = r.visualViewport, i = n.clientWidth, l = n.clientHeight, o = 0, s = 0;
|
|
1045
1045
|
if (a) {
|
|
1046
1046
|
i = a.width, l = a.height;
|
|
1047
|
-
var d =
|
|
1047
|
+
var d = er();
|
|
1048
1048
|
(d || !d && t === "fixed") && (o = a.offsetLeft, s = a.offsetTop);
|
|
1049
1049
|
}
|
|
1050
1050
|
return {
|
|
1051
1051
|
width: i,
|
|
1052
1052
|
height: l,
|
|
1053
|
-
x: o +
|
|
1053
|
+
x: o + xt(e),
|
|
1054
1054
|
y: s
|
|
1055
1055
|
};
|
|
1056
1056
|
}
|
|
1057
1057
|
function Pa(e) {
|
|
1058
|
-
var t, r = be(e), n =
|
|
1058
|
+
var t, r = be(e), n = wt(e), a = (t = e.ownerDocument) == null ? void 0 : t.body, i = Oe(r.scrollWidth, r.clientWidth, a ? a.scrollWidth : 0, a ? a.clientWidth : 0), l = Oe(r.scrollHeight, r.clientHeight, a ? a.scrollHeight : 0, a ? a.clientHeight : 0), o = -n.scrollLeft + xt(e), s = -n.scrollTop;
|
|
1059
1059
|
return ge(a || r).direction === "rtl" && (o += Oe(r.clientWidth, a ? a.clientWidth : 0) - i), {
|
|
1060
1060
|
width: i,
|
|
1061
1061
|
height: l,
|
|
@@ -1063,23 +1063,23 @@ function Pa(e) {
|
|
|
1063
1063
|
y: s
|
|
1064
1064
|
};
|
|
1065
1065
|
}
|
|
1066
|
-
function
|
|
1066
|
+
function Ot(e) {
|
|
1067
1067
|
var t = ge(e), r = t.overflow, n = t.overflowX, a = t.overflowY;
|
|
1068
1068
|
return /auto|scroll|overlay|hidden/.test(r + a + n);
|
|
1069
1069
|
}
|
|
1070
|
-
function
|
|
1071
|
-
return ["html", "body", "#document"].indexOf(
|
|
1070
|
+
function ir(e) {
|
|
1071
|
+
return ["html", "body", "#document"].indexOf(ve(e)) >= 0 ? e.ownerDocument.body : oe(e) && Ot(e) ? e : ir(tt(e));
|
|
1072
1072
|
}
|
|
1073
|
-
function
|
|
1073
|
+
function We(e, t) {
|
|
1074
1074
|
var r;
|
|
1075
1075
|
t === void 0 && (t = []);
|
|
1076
|
-
var n =
|
|
1076
|
+
var n = ir(e), a = n === ((r = e.ownerDocument) == null ? void 0 : r.body), i = re(n), l = a ? [i].concat(i.visualViewport || [], Ot(n) ? n : []) : n, o = t.concat(l);
|
|
1077
1077
|
return a ? o : (
|
|
1078
1078
|
// $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here
|
|
1079
|
-
o.concat(
|
|
1079
|
+
o.concat(We(tt(l)))
|
|
1080
1080
|
);
|
|
1081
1081
|
}
|
|
1082
|
-
function
|
|
1082
|
+
function dt(e) {
|
|
1083
1083
|
return Object.assign({}, e, {
|
|
1084
1084
|
left: e.x,
|
|
1085
1085
|
top: e.y,
|
|
@@ -1091,24 +1091,24 @@ function Va(e, t) {
|
|
|
1091
1091
|
var r = Pe(e, !1, t === "fixed");
|
|
1092
1092
|
return r.top = r.top + e.clientTop, r.left = r.left + e.clientLeft, r.bottom = r.top + e.clientHeight, r.right = r.left + e.clientWidth, r.width = e.clientWidth, r.height = e.clientHeight, r.x = r.left, r.y = r.top, r;
|
|
1093
1093
|
}
|
|
1094
|
-
function
|
|
1095
|
-
return t ===
|
|
1094
|
+
function zt(e, t, r) {
|
|
1095
|
+
return t === Zt ? dt(Ca(e, r)) : ke(t) ? Va(t, r) : dt(Pa(be(e)));
|
|
1096
1096
|
}
|
|
1097
1097
|
function Ea(e) {
|
|
1098
|
-
var t =
|
|
1098
|
+
var t = We(tt(e)), r = ["absolute", "fixed"].indexOf(ge(e).position) >= 0, n = r && oe(e) ? Fe(e) : e;
|
|
1099
1099
|
return ke(n) ? t.filter(function(a) {
|
|
1100
|
-
return ke(a) &&
|
|
1100
|
+
return ke(a) && tr(a, n) && ve(a) !== "body";
|
|
1101
1101
|
}) : [];
|
|
1102
1102
|
}
|
|
1103
1103
|
function Ba(e, t, r, n) {
|
|
1104
1104
|
var a = t === "clippingParents" ? Ea(e) : [].concat(t), i = [].concat(a, [r]), l = i[0], o = i.reduce(function(s, d) {
|
|
1105
|
-
var c =
|
|
1106
|
-
return s.top = Oe(c.top, s.top), s.right =
|
|
1107
|
-
},
|
|
1105
|
+
var c = zt(e, d, n);
|
|
1106
|
+
return s.top = Oe(c.top, s.top), s.right = Ge(c.right, s.right), s.bottom = Ge(c.bottom, s.bottom), s.left = Oe(c.left, s.left), s;
|
|
1107
|
+
}, zt(e, l, n));
|
|
1108
1108
|
return o.width = o.right - o.left, o.height = o.bottom - o.top, o.x = o.left, o.y = o.top, o;
|
|
1109
1109
|
}
|
|
1110
|
-
function
|
|
1111
|
-
var t = e.reference, r = e.element, n = e.placement, a = n ?
|
|
1110
|
+
function or(e) {
|
|
1111
|
+
var t = e.reference, r = e.element, n = e.placement, a = n ? pe(n) : null, i = n ? Ve(n) : null, l = t.x + t.width / 2 - r.width / 2, o = t.y + t.height / 2 - r.height / 2, s;
|
|
1112
1112
|
switch (a) {
|
|
1113
1113
|
case ee:
|
|
1114
1114
|
s = {
|
|
@@ -1116,13 +1116,13 @@ function nr(e) {
|
|
|
1116
1116
|
y: t.y - r.height
|
|
1117
1117
|
};
|
|
1118
1118
|
break;
|
|
1119
|
-
case
|
|
1119
|
+
case se:
|
|
1120
1120
|
s = {
|
|
1121
1121
|
x: l,
|
|
1122
1122
|
y: t.y + t.height
|
|
1123
1123
|
};
|
|
1124
1124
|
break;
|
|
1125
|
-
case
|
|
1125
|
+
case le:
|
|
1126
1126
|
s = {
|
|
1127
1127
|
x: t.x + t.width,
|
|
1128
1128
|
y: o
|
|
@@ -1140,72 +1140,72 @@ function nr(e) {
|
|
|
1140
1140
|
y: t.y
|
|
1141
1141
|
};
|
|
1142
1142
|
}
|
|
1143
|
-
var d = a ?
|
|
1143
|
+
var d = a ? yt(a) : null;
|
|
1144
1144
|
if (d != null) {
|
|
1145
1145
|
var c = d === "y" ? "height" : "width";
|
|
1146
1146
|
switch (i) {
|
|
1147
1147
|
case Se:
|
|
1148
1148
|
s[d] = s[d] - (t[c] / 2 - r[c] / 2);
|
|
1149
1149
|
break;
|
|
1150
|
-
case
|
|
1150
|
+
case _e:
|
|
1151
1151
|
s[d] = s[d] + (t[c] / 2 - r[c] / 2);
|
|
1152
1152
|
break;
|
|
1153
1153
|
}
|
|
1154
1154
|
}
|
|
1155
1155
|
return s;
|
|
1156
1156
|
}
|
|
1157
|
-
function
|
|
1157
|
+
function Ie(e, t) {
|
|
1158
1158
|
t === void 0 && (t = {});
|
|
1159
|
-
var r = t, n = r.placement, a = n === void 0 ? e.placement : n, i = r.strategy, l = i === void 0 ? e.strategy : i, o = r.boundary, s = o === void 0 ? Gr : o, d = r.rootBoundary, c = d === void 0 ?
|
|
1159
|
+
var r = t, n = r.placement, a = n === void 0 ? e.placement : n, i = r.strategy, l = i === void 0 ? e.strategy : i, o = r.boundary, s = o === void 0 ? Gr : o, d = r.rootBoundary, c = d === void 0 ? Zt : d, w = r.elementContext, k = w === void 0 ? Re : w, v = r.altBoundary, S = v === void 0 ? !1 : v, O = r.padding, $ = O === void 0 ? 0 : O, C = ar(typeof $ != "number" ? $ : nr($, Ne)), E = k === Re ? Zr : Re, R = e.rects.popper, f = e.elements[S ? E : k], g = Ba(ke(f) ? f : f.contextElement || be(e.elements.popper), s, c, l), u = Pe(e.elements.reference), T = or({
|
|
1160
1160
|
reference: u,
|
|
1161
1161
|
element: R,
|
|
1162
1162
|
placement: a
|
|
1163
|
-
}), B =
|
|
1164
|
-
top:
|
|
1165
|
-
bottom: D.bottom -
|
|
1166
|
-
left:
|
|
1167
|
-
right: D.right -
|
|
1163
|
+
}), B = dt(Object.assign({}, R, T)), D = k === Re ? B : u, W = {
|
|
1164
|
+
top: g.top - D.top + C.top,
|
|
1165
|
+
bottom: D.bottom - g.bottom + C.bottom,
|
|
1166
|
+
left: g.left - D.left + C.left,
|
|
1167
|
+
right: D.right - g.right + C.right
|
|
1168
1168
|
}, y = e.modifiersData.offset;
|
|
1169
|
-
if (k ===
|
|
1169
|
+
if (k === Re && y) {
|
|
1170
1170
|
var A = y[a];
|
|
1171
1171
|
Object.keys(W).forEach(function(z) {
|
|
1172
|
-
var
|
|
1173
|
-
W[z] += A[
|
|
1172
|
+
var Y = [le, se].indexOf(z) >= 0 ? 1 : -1, X = [ee, se].indexOf(z) >= 0 ? "y" : "x";
|
|
1173
|
+
W[z] += A[X] * Y;
|
|
1174
1174
|
});
|
|
1175
1175
|
}
|
|
1176
1176
|
return W;
|
|
1177
1177
|
}
|
|
1178
1178
|
function Aa(e, t) {
|
|
1179
1179
|
t === void 0 && (t = {});
|
|
1180
|
-
var r = t, n = r.placement, a = r.boundary, i = r.rootBoundary, l = r.padding, o = r.flipVariations, s = r.allowedAutoPlacements, d = s === void 0 ?
|
|
1180
|
+
var r = t, n = r.placement, a = r.boundary, i = r.rootBoundary, l = r.padding, o = r.flipVariations, s = r.allowedAutoPlacements, d = s === void 0 ? Jt : s, c = Ve(n), w = c ? o ? Bt : Bt.filter(function(S) {
|
|
1181
1181
|
return Ve(S) === c;
|
|
1182
|
-
}) :
|
|
1182
|
+
}) : Ne, k = w.filter(function(S) {
|
|
1183
1183
|
return d.indexOf(S) >= 0;
|
|
1184
1184
|
});
|
|
1185
1185
|
k.length === 0 && (k = w);
|
|
1186
1186
|
var v = k.reduce(function(S, O) {
|
|
1187
|
-
return S[O] =
|
|
1187
|
+
return S[O] = Ie(e, {
|
|
1188
1188
|
placement: O,
|
|
1189
1189
|
boundary: a,
|
|
1190
1190
|
rootBoundary: i,
|
|
1191
1191
|
padding: l
|
|
1192
|
-
})[
|
|
1192
|
+
})[pe(O)], S;
|
|
1193
1193
|
}, {});
|
|
1194
1194
|
return Object.keys(v).sort(function(S, O) {
|
|
1195
1195
|
return v[S] - v[O];
|
|
1196
1196
|
});
|
|
1197
1197
|
}
|
|
1198
1198
|
function Ra(e) {
|
|
1199
|
-
if (
|
|
1199
|
+
if (pe(e) === gt)
|
|
1200
1200
|
return [];
|
|
1201
1201
|
var t = Xe(e);
|
|
1202
|
-
return [
|
|
1202
|
+
return [Dt(e), t, Dt(t)];
|
|
1203
1203
|
}
|
|
1204
1204
|
function Da(e) {
|
|
1205
1205
|
var t = e.state, r = e.options, n = e.name;
|
|
1206
1206
|
if (!t.modifiersData[n]._skip) {
|
|
1207
|
-
for (var a = r.mainAxis, i = a === void 0 ? !0 : a, l = r.altAxis, o = l === void 0 ? !0 : l, s = r.fallbackPlacements, d = r.padding, c = r.boundary, w = r.rootBoundary, k = r.altBoundary, v = r.flipVariations, S = v === void 0 ? !0 : v, O = r.allowedAutoPlacements, $ = t.options.placement, C =
|
|
1208
|
-
return he.concat(
|
|
1207
|
+
for (var a = r.mainAxis, i = a === void 0 ? !0 : a, l = r.altAxis, o = l === void 0 ? !0 : l, s = r.fallbackPlacements, d = r.padding, c = r.boundary, w = r.rootBoundary, k = r.altBoundary, v = r.flipVariations, S = v === void 0 ? !0 : v, O = r.allowedAutoPlacements, $ = t.options.placement, C = pe($), E = C === $, R = s || (E || !S ? [Xe($)] : Ra($)), f = [$].concat(R).reduce(function(he, fe) {
|
|
1208
|
+
return he.concat(pe(fe) === gt ? Aa(t, {
|
|
1209
1209
|
placement: fe,
|
|
1210
1210
|
boundary: c,
|
|
1211
1211
|
rootBoundary: w,
|
|
@@ -1213,38 +1213,38 @@ function Da(e) {
|
|
|
1213
1213
|
flipVariations: S,
|
|
1214
1214
|
allowedAutoPlacements: O
|
|
1215
1215
|
}) : fe);
|
|
1216
|
-
}, []),
|
|
1217
|
-
var y = f[W], A =
|
|
1216
|
+
}, []), g = t.rects.reference, u = t.rects.popper, T = /* @__PURE__ */ new Map(), B = !0, D = f[0], W = 0; W < f.length; W++) {
|
|
1217
|
+
var y = f[W], A = pe(y), z = Ve(y) === Se, Y = [ee, se].indexOf(A) >= 0, X = Y ? "width" : "height", F = Ie(t, {
|
|
1218
1218
|
placement: y,
|
|
1219
1219
|
boundary: c,
|
|
1220
1220
|
rootBoundary: w,
|
|
1221
1221
|
altBoundary: k,
|
|
1222
1222
|
padding: d
|
|
1223
|
-
}),
|
|
1224
|
-
|
|
1225
|
-
var de = Xe(
|
|
1226
|
-
if (i &&
|
|
1223
|
+
}), H = Y ? z ? le : te : z ? se : ee;
|
|
1224
|
+
g[X] > u[X] && (H = Xe(H));
|
|
1225
|
+
var de = Xe(H), ce = [];
|
|
1226
|
+
if (i && ce.push(F[A] <= 0), o && ce.push(F[H] <= 0, F[de] <= 0), ce.every(function(he) {
|
|
1227
1227
|
return he;
|
|
1228
1228
|
})) {
|
|
1229
1229
|
D = y, B = !1;
|
|
1230
1230
|
break;
|
|
1231
1231
|
}
|
|
1232
|
-
T.set(y,
|
|
1232
|
+
T.set(y, ce);
|
|
1233
1233
|
}
|
|
1234
1234
|
if (B)
|
|
1235
|
-
for (var h = S ? 3 : 1,
|
|
1235
|
+
for (var h = S ? 3 : 1, N = function(fe) {
|
|
1236
1236
|
var ye = f.find(function(Te) {
|
|
1237
|
-
var
|
|
1238
|
-
if (
|
|
1239
|
-
return
|
|
1237
|
+
var me = T.get(Te);
|
|
1238
|
+
if (me)
|
|
1239
|
+
return me.slice(0, fe).every(function(Be) {
|
|
1240
1240
|
return Be;
|
|
1241
1241
|
});
|
|
1242
1242
|
});
|
|
1243
1243
|
if (ye)
|
|
1244
1244
|
return D = ye, "break";
|
|
1245
1245
|
}, K = h; K > 0; K--) {
|
|
1246
|
-
var
|
|
1247
|
-
if (
|
|
1246
|
+
var ue = N(K);
|
|
1247
|
+
if (ue === "break") break;
|
|
1248
1248
|
}
|
|
1249
1249
|
t.placement !== D && (t.modifiersData[n]._skip = !0, t.placement = D, t.reset = !0);
|
|
1250
1250
|
}
|
|
@@ -1259,7 +1259,7 @@ const za = {
|
|
|
1259
1259
|
_skip: !1
|
|
1260
1260
|
}
|
|
1261
1261
|
};
|
|
1262
|
-
function
|
|
1262
|
+
function Wt(e, t, r) {
|
|
1263
1263
|
return r === void 0 && (r = {
|
|
1264
1264
|
x: 0,
|
|
1265
1265
|
y: 0
|
|
@@ -1270,17 +1270,17 @@ function Dt(e, t, r) {
|
|
|
1270
1270
|
left: e.left - t.width - r.x
|
|
1271
1271
|
};
|
|
1272
1272
|
}
|
|
1273
|
-
function
|
|
1274
|
-
return [ee,
|
|
1273
|
+
function Lt(e) {
|
|
1274
|
+
return [ee, le, se, te].some(function(t) {
|
|
1275
1275
|
return e[t] >= 0;
|
|
1276
1276
|
});
|
|
1277
1277
|
}
|
|
1278
1278
|
function Wa(e) {
|
|
1279
|
-
var t = e.state, r = e.name, n = t.rects.reference, a = t.rects.popper, i = t.modifiersData.preventOverflow, l =
|
|
1279
|
+
var t = e.state, r = e.name, n = t.rects.reference, a = t.rects.popper, i = t.modifiersData.preventOverflow, l = Ie(t, {
|
|
1280
1280
|
elementContext: "reference"
|
|
1281
|
-
}), o =
|
|
1281
|
+
}), o = Ie(t, {
|
|
1282
1282
|
altBoundary: !0
|
|
1283
|
-
}), s =
|
|
1283
|
+
}), s = Wt(l, n), d = Wt(o, a, i), c = Lt(s), w = Lt(d);
|
|
1284
1284
|
t.modifiersData[r] = {
|
|
1285
1285
|
referenceClippingOffsets: s,
|
|
1286
1286
|
popperEscapeOffsets: d,
|
|
@@ -1299,10 +1299,10 @@ const La = {
|
|
|
1299
1299
|
fn: Wa
|
|
1300
1300
|
};
|
|
1301
1301
|
function ja(e, t, r) {
|
|
1302
|
-
var n =
|
|
1302
|
+
var n = pe(e), a = [te, ee].indexOf(n) >= 0 ? -1 : 1, i = typeof r == "function" ? r(Object.assign({}, t, {
|
|
1303
1303
|
placement: e
|
|
1304
1304
|
})) : r, l = i[0], o = i[1];
|
|
1305
|
-
return l = l || 0, o = (o || 0) * a, [te,
|
|
1305
|
+
return l = l || 0, o = (o || 0) * a, [te, le].indexOf(n) >= 0 ? {
|
|
1306
1306
|
x: o,
|
|
1307
1307
|
y: l
|
|
1308
1308
|
} : {
|
|
@@ -1311,7 +1311,7 @@ function ja(e, t, r) {
|
|
|
1311
1311
|
};
|
|
1312
1312
|
}
|
|
1313
1313
|
function Ma(e) {
|
|
1314
|
-
var t = e.state, r = e.options, n = e.name, a = r.offset, i = a === void 0 ? [0, 0] : a, l =
|
|
1314
|
+
var t = e.state, r = e.options, n = e.name, a = r.offset, i = a === void 0 ? [0, 0] : a, l = Jt.reduce(function(c, w) {
|
|
1315
1315
|
return c[w] = ja(w, t.rects, i), c;
|
|
1316
1316
|
}, {}), o = l[t.placement], s = o.x, d = o.y;
|
|
1317
1317
|
t.modifiersData.popperOffsets != null && (t.modifiersData.popperOffsets.x += s, t.modifiersData.popperOffsets.y += d), t.modifiersData[n] = l;
|
|
@@ -1325,7 +1325,7 @@ const _a = {
|
|
|
1325
1325
|
};
|
|
1326
1326
|
function Ia(e) {
|
|
1327
1327
|
var t = e.state, r = e.name;
|
|
1328
|
-
t.modifiersData[r] =
|
|
1328
|
+
t.modifiersData[r] = or({
|
|
1329
1329
|
reference: t.rects.reference,
|
|
1330
1330
|
element: t.rects.popper,
|
|
1331
1331
|
placement: t.placement
|
|
@@ -1342,12 +1342,12 @@ function Fa(e) {
|
|
|
1342
1342
|
return e === "x" ? "y" : "x";
|
|
1343
1343
|
}
|
|
1344
1344
|
function Ha(e) {
|
|
1345
|
-
var t = e.state, r = e.options, n = e.name, a = r.mainAxis, i = a === void 0 ? !0 : a, l = r.altAxis, o = l === void 0 ? !1 : l, s = r.boundary, d = r.rootBoundary, c = r.altBoundary, w = r.padding, k = r.tether, v = k === void 0 ? !0 : k, S = r.tetherOffset, O = S === void 0 ? 0 : S, $ =
|
|
1345
|
+
var t = e.state, r = e.options, n = e.name, a = r.mainAxis, i = a === void 0 ? !0 : a, l = r.altAxis, o = l === void 0 ? !1 : l, s = r.boundary, d = r.rootBoundary, c = r.altBoundary, w = r.padding, k = r.tether, v = k === void 0 ? !0 : k, S = r.tetherOffset, O = S === void 0 ? 0 : S, $ = Ie(t, {
|
|
1346
1346
|
boundary: s,
|
|
1347
1347
|
rootBoundary: d,
|
|
1348
1348
|
padding: w,
|
|
1349
1349
|
altBoundary: c
|
|
1350
|
-
}), C =
|
|
1350
|
+
}), C = pe(t.placement), E = Ve(t.placement), R = !E, f = yt(C), g = Fa(f), u = t.modifiersData.popperOffsets, T = t.rects.reference, B = t.rects.popper, D = typeof O == "function" ? O(Object.assign({}, t.rects, {
|
|
1351
1351
|
placement: t.placement
|
|
1352
1352
|
})) : O, W = typeof D == "number" ? {
|
|
1353
1353
|
mainAxis: D,
|
|
@@ -1361,15 +1361,15 @@ function Ha(e) {
|
|
|
1361
1361
|
};
|
|
1362
1362
|
if (u) {
|
|
1363
1363
|
if (i) {
|
|
1364
|
-
var z,
|
|
1364
|
+
var z, Y = f === "y" ? ee : te, X = f === "y" ? se : le, F = f === "y" ? "height" : "width", H = u[f], de = H + $[Y], ce = H - $[X], h = v ? -B[F] / 2 : 0, N = E === Se ? T[F] : B[F], K = E === Se ? -B[F] : -T[F], ue = t.elements.arrow, he = v && ue ? bt(ue) : {
|
|
1365
1365
|
width: 0,
|
|
1366
1366
|
height: 0
|
|
1367
|
-
}, fe = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding :
|
|
1368
|
-
u[f] =
|
|
1367
|
+
}, fe = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : rr(), ye = fe[Y], Te = fe[X], me = ze(0, T[F], he[F]), Be = R ? T[F] / 2 - h - me - ye - W.mainAxis : N - me - ye - W.mainAxis, He = R ? -T[F] / 2 + h + me + Te + W.mainAxis : K + me + Te + W.mainAxis, Ae = t.elements.arrow && Fe(t.elements.arrow), rt = Ae ? f === "y" ? Ae.clientTop || 0 : Ae.clientLeft || 0 : 0, p = (z = y?.[f]) != null ? z : 0, L = H + Be - p - rt, P = H + He - p, ae = ze(v ? Ge(de, L) : de, H, v ? Oe(ce, P) : ce);
|
|
1368
|
+
u[f] = ae, A[f] = ae - H;
|
|
1369
1369
|
}
|
|
1370
1370
|
if (o) {
|
|
1371
|
-
var
|
|
1372
|
-
u[
|
|
1371
|
+
var Q, at = f === "x" ? ee : te, $t = f === "x" ? se : le, we = u[g], qe = g === "y" ? "height" : "width", kt = we + $[at], Tt = we - $[$t], nt = [ee, te].indexOf(C) !== -1, St = (Q = y?.[g]) != null ? Q : 0, Ct = nt ? kt : we - T[qe] - B[qe] - St + W.altAxis, Pt = nt ? we + T[qe] + B[qe] - St - W.altAxis : Tt, Vt = v && nt ? va(Ct, we, Pt) : ze(v ? Ct : kt, we, v ? Pt : Tt);
|
|
1372
|
+
u[g] = Vt, A[g] = Vt - we;
|
|
1373
1373
|
}
|
|
1374
1374
|
t.modifiersData[n] = A;
|
|
1375
1375
|
}
|
|
@@ -1387,24 +1387,24 @@ function Ua(e) {
|
|
|
1387
1387
|
scrollTop: e.scrollTop
|
|
1388
1388
|
};
|
|
1389
1389
|
}
|
|
1390
|
-
function Xa(e) {
|
|
1391
|
-
return e === re(e) || !ne(e) ? yt(e) : Ua(e);
|
|
1392
|
-
}
|
|
1393
1390
|
function Ya(e) {
|
|
1391
|
+
return e === re(e) || !oe(e) ? wt(e) : Ua(e);
|
|
1392
|
+
}
|
|
1393
|
+
function Xa(e) {
|
|
1394
1394
|
var t = e.getBoundingClientRect(), r = Ce(t.width) / e.offsetWidth || 1, n = Ce(t.height) / e.offsetHeight || 1;
|
|
1395
1395
|
return r !== 1 || n !== 1;
|
|
1396
1396
|
}
|
|
1397
1397
|
function Ka(e, t, r) {
|
|
1398
1398
|
r === void 0 && (r = !1);
|
|
1399
|
-
var n =
|
|
1399
|
+
var n = oe(t), a = oe(t) && Xa(t), i = be(t), l = Pe(e, a, r), o = {
|
|
1400
1400
|
scrollLeft: 0,
|
|
1401
1401
|
scrollTop: 0
|
|
1402
1402
|
}, s = {
|
|
1403
1403
|
x: 0,
|
|
1404
1404
|
y: 0
|
|
1405
1405
|
};
|
|
1406
|
-
return (n || !n && !r) && ((
|
|
1407
|
-
|
|
1406
|
+
return (n || !n && !r) && ((ve(t) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
|
|
1407
|
+
Ot(i)) && (o = Ya(t)), oe(t) ? (s = Pe(t, !0), s.x += t.clientLeft, s.y += t.clientTop) : i && (s.x = xt(i))), {
|
|
1408
1408
|
x: l.left + o.scrollLeft - s.x,
|
|
1409
1409
|
y: l.top + o.scrollTop - s.y,
|
|
1410
1410
|
width: l.width,
|
|
@@ -1460,12 +1460,12 @@ function Ja(e) {
|
|
|
1460
1460
|
return t[r];
|
|
1461
1461
|
});
|
|
1462
1462
|
}
|
|
1463
|
-
var
|
|
1463
|
+
var jt = {
|
|
1464
1464
|
placement: "bottom",
|
|
1465
1465
|
modifiers: [],
|
|
1466
1466
|
strategy: "absolute"
|
|
1467
1467
|
};
|
|
1468
|
-
function
|
|
1468
|
+
function Mt() {
|
|
1469
1469
|
for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++)
|
|
1470
1470
|
t[r] = arguments[r];
|
|
1471
1471
|
return !t.some(function(n) {
|
|
@@ -1474,13 +1474,13 @@ function Lt() {
|
|
|
1474
1474
|
}
|
|
1475
1475
|
function en(e) {
|
|
1476
1476
|
e === void 0 && (e = {});
|
|
1477
|
-
var t = e, r = t.defaultModifiers, n = r === void 0 ? [] : r, a = t.defaultOptions, i = a === void 0 ?
|
|
1477
|
+
var t = e, r = t.defaultModifiers, n = r === void 0 ? [] : r, a = t.defaultOptions, i = a === void 0 ? jt : a;
|
|
1478
1478
|
return function(o, s, d) {
|
|
1479
1479
|
d === void 0 && (d = i);
|
|
1480
1480
|
var c = {
|
|
1481
1481
|
placement: "bottom",
|
|
1482
1482
|
orderedModifiers: [],
|
|
1483
|
-
options: Object.assign({},
|
|
1483
|
+
options: Object.assign({}, jt, i),
|
|
1484
1484
|
modifiersData: {},
|
|
1485
1485
|
elements: {
|
|
1486
1486
|
reference: o,
|
|
@@ -1493,8 +1493,8 @@ function en(e) {
|
|
|
1493
1493
|
setOptions: function(C) {
|
|
1494
1494
|
var E = typeof C == "function" ? C(c.options) : C;
|
|
1495
1495
|
O(), c.options = Object.assign({}, i, c.options, E), c.scrollParents = {
|
|
1496
|
-
reference: ke(o) ?
|
|
1497
|
-
popper:
|
|
1496
|
+
reference: ke(o) ? We(o) : o.contextElement ? We(o.contextElement) : [],
|
|
1497
|
+
popper: We(s)
|
|
1498
1498
|
};
|
|
1499
1499
|
var R = Ga(Ja([].concat(n, c.options.modifiers)));
|
|
1500
1500
|
return c.orderedModifiers = R.filter(function(f) {
|
|
@@ -1509,10 +1509,10 @@ function en(e) {
|
|
|
1509
1509
|
forceUpdate: function() {
|
|
1510
1510
|
if (!k) {
|
|
1511
1511
|
var C = c.elements, E = C.reference, R = C.popper;
|
|
1512
|
-
if (
|
|
1512
|
+
if (Mt(E, R)) {
|
|
1513
1513
|
c.rects = {
|
|
1514
|
-
reference: Ka(E,
|
|
1515
|
-
popper:
|
|
1514
|
+
reference: Ka(E, Fe(R), c.options.strategy === "fixed"),
|
|
1515
|
+
popper: bt(R)
|
|
1516
1516
|
}, c.reset = !1, c.placement = c.options.placement, c.orderedModifiers.forEach(function(W) {
|
|
1517
1517
|
return c.modifiersData[W.name] = Object.assign({}, W.data);
|
|
1518
1518
|
});
|
|
@@ -1521,7 +1521,7 @@ function en(e) {
|
|
|
1521
1521
|
c.reset = !1, f = -1;
|
|
1522
1522
|
continue;
|
|
1523
1523
|
}
|
|
1524
|
-
var
|
|
1524
|
+
var g = c.orderedModifiers[f], u = g.fn, T = g.options, B = T === void 0 ? {} : T, D = g.name;
|
|
1525
1525
|
typeof u == "function" && (c = u({
|
|
1526
1526
|
state: c,
|
|
1527
1527
|
options: B,
|
|
@@ -1543,7 +1543,7 @@ function en(e) {
|
|
|
1543
1543
|
O(), k = !0;
|
|
1544
1544
|
}
|
|
1545
1545
|
};
|
|
1546
|
-
if (!
|
|
1546
|
+
if (!Mt(o, s))
|
|
1547
1547
|
return v;
|
|
1548
1548
|
v.setOptions(d).then(function($) {
|
|
1549
1549
|
!k && d.onFirstUpdate && d.onFirstUpdate($);
|
|
@@ -1552,14 +1552,14 @@ function en(e) {
|
|
|
1552
1552
|
c.orderedModifiers.forEach(function($) {
|
|
1553
1553
|
var C = $.name, E = $.options, R = E === void 0 ? {} : E, f = $.effect;
|
|
1554
1554
|
if (typeof f == "function") {
|
|
1555
|
-
var
|
|
1555
|
+
var g = f({
|
|
1556
1556
|
state: c,
|
|
1557
1557
|
name: C,
|
|
1558
1558
|
instance: v,
|
|
1559
1559
|
options: R
|
|
1560
1560
|
}), u = function() {
|
|
1561
1561
|
};
|
|
1562
|
-
w.push(
|
|
1562
|
+
w.push(g || u);
|
|
1563
1563
|
}
|
|
1564
1564
|
});
|
|
1565
1565
|
}
|
|
@@ -1573,24 +1573,24 @@ function en(e) {
|
|
|
1573
1573
|
}
|
|
1574
1574
|
var tn = [ka, Na, Oa, da, _a, za, qa, ba, La], rn = /* @__PURE__ */ en({
|
|
1575
1575
|
defaultModifiers: tn
|
|
1576
|
-
}), an = typeof global == "object" && global && global.Object === Object && global, nn = typeof self == "object" && self && self.Object === Object && self,
|
|
1576
|
+
}), an = typeof global == "object" && global && global.Object === Object && global, nn = typeof self == "object" && self && self.Object === Object && self, sr = an || nn || Function("return this")(), Ze = sr.Symbol, lr = Object.prototype, on = lr.hasOwnProperty, sn = lr.toString, De = Ze ? Ze.toStringTag : void 0;
|
|
1577
1577
|
function ln(e) {
|
|
1578
|
-
var t = on.call(e,
|
|
1578
|
+
var t = on.call(e, De), r = e[De];
|
|
1579
1579
|
try {
|
|
1580
|
-
e[
|
|
1580
|
+
e[De] = void 0;
|
|
1581
1581
|
var n = !0;
|
|
1582
1582
|
} catch {
|
|
1583
1583
|
}
|
|
1584
1584
|
var a = sn.call(e);
|
|
1585
|
-
return n && (t ? e[
|
|
1585
|
+
return n && (t ? e[De] = r : delete e[De]), a;
|
|
1586
1586
|
}
|
|
1587
1587
|
var cn = Object.prototype, un = cn.toString;
|
|
1588
1588
|
function dn(e) {
|
|
1589
1589
|
return un.call(e);
|
|
1590
1590
|
}
|
|
1591
|
-
var fn = "[object Null]", pn = "[object Undefined]",
|
|
1591
|
+
var fn = "[object Null]", pn = "[object Undefined]", _t = Ze ? Ze.toStringTag : void 0;
|
|
1592
1592
|
function vn(e) {
|
|
1593
|
-
return e == null ? e === void 0 ? pn : fn :
|
|
1593
|
+
return e == null ? e === void 0 ? pn : fn : _t && _t in Object(e) ? ln(e) : dn(e);
|
|
1594
1594
|
}
|
|
1595
1595
|
function mn(e) {
|
|
1596
1596
|
return e != null && typeof e == "object";
|
|
@@ -1609,34 +1609,34 @@ var wn = /^\s+/;
|
|
|
1609
1609
|
function xn(e) {
|
|
1610
1610
|
return e && e.slice(0, yn(e) + 1).replace(wn, "");
|
|
1611
1611
|
}
|
|
1612
|
-
function
|
|
1612
|
+
function Je(e) {
|
|
1613
1613
|
var t = typeof e;
|
|
1614
1614
|
return e != null && (t == "object" || t == "function");
|
|
1615
1615
|
}
|
|
1616
|
-
var
|
|
1617
|
-
function
|
|
1616
|
+
var It = NaN, On = /^[-+]0x[0-9a-f]+$/i, $n = /^0b[01]+$/i, kn = /^0o[0-7]+$/i, Tn = parseInt;
|
|
1617
|
+
function Nt(e) {
|
|
1618
1618
|
if (typeof e == "number")
|
|
1619
1619
|
return e;
|
|
1620
1620
|
if (hn(e))
|
|
1621
|
-
return
|
|
1622
|
-
if (
|
|
1621
|
+
return It;
|
|
1622
|
+
if (Je(e)) {
|
|
1623
1623
|
var t = typeof e.valueOf == "function" ? e.valueOf() : e;
|
|
1624
|
-
e =
|
|
1624
|
+
e = Je(t) ? t + "" : t;
|
|
1625
1625
|
}
|
|
1626
1626
|
if (typeof e != "string")
|
|
1627
1627
|
return e === 0 ? e : +e;
|
|
1628
1628
|
e = xn(e);
|
|
1629
1629
|
var r = $n.test(e);
|
|
1630
|
-
return r || kn.test(e) ? Tn(e.slice(2), r ? 2 : 8) : On.test(e) ?
|
|
1630
|
+
return r || kn.test(e) ? Tn(e.slice(2), r ? 2 : 8) : On.test(e) ? It : +e;
|
|
1631
1631
|
}
|
|
1632
|
-
var
|
|
1633
|
-
return
|
|
1632
|
+
var st = function() {
|
|
1633
|
+
return sr.Date.now();
|
|
1634
1634
|
}, Sn = "Expected a function", Cn = Math.max, Pn = Math.min;
|
|
1635
|
-
function
|
|
1635
|
+
function ft(e, t, r) {
|
|
1636
1636
|
var n, a, i, l, o, s, d = 0, c = !1, w = !1, k = !0;
|
|
1637
1637
|
if (typeof e != "function")
|
|
1638
1638
|
throw new TypeError(Sn);
|
|
1639
|
-
t =
|
|
1639
|
+
t = Nt(t) || 0, Je(r) && (c = !!r.leading, w = "maxWait" in r, i = w ? Cn(Nt(r.maxWait) || 0, t) : i, k = "trailing" in r ? !!r.trailing : k);
|
|
1640
1640
|
function v(u) {
|
|
1641
1641
|
var T = n, B = a;
|
|
1642
1642
|
return n = a = void 0, d = u, l = e.apply(B, T), l;
|
|
@@ -1653,7 +1653,7 @@ function dt(e, t, r) {
|
|
|
1653
1653
|
return s === void 0 || T >= t || T < 0 || w && B >= i;
|
|
1654
1654
|
}
|
|
1655
1655
|
function C() {
|
|
1656
|
-
var u =
|
|
1656
|
+
var u = st();
|
|
1657
1657
|
if ($(u))
|
|
1658
1658
|
return E(u);
|
|
1659
1659
|
o = setTimeout(C, O(u));
|
|
@@ -1665,10 +1665,10 @@ function dt(e, t, r) {
|
|
|
1665
1665
|
o !== void 0 && clearTimeout(o), d = 0, n = s = a = o = void 0;
|
|
1666
1666
|
}
|
|
1667
1667
|
function f() {
|
|
1668
|
-
return o === void 0 ? l : E(
|
|
1668
|
+
return o === void 0 ? l : E(st());
|
|
1669
1669
|
}
|
|
1670
|
-
function
|
|
1671
|
-
var u =
|
|
1670
|
+
function g() {
|
|
1671
|
+
var u = st(), T = $(u);
|
|
1672
1672
|
if (n = arguments, a = this, s = u, T) {
|
|
1673
1673
|
if (o === void 0)
|
|
1674
1674
|
return S(s);
|
|
@@ -1677,14 +1677,14 @@ function dt(e, t, r) {
|
|
|
1677
1677
|
}
|
|
1678
1678
|
return o === void 0 && (o = setTimeout(C, t)), l;
|
|
1679
1679
|
}
|
|
1680
|
-
return
|
|
1680
|
+
return g.cancel = R, g.flush = f, g;
|
|
1681
1681
|
}
|
|
1682
1682
|
var Vn = "Expected a function";
|
|
1683
1683
|
function En(e, t, r) {
|
|
1684
1684
|
var n = !0, a = !0;
|
|
1685
1685
|
if (typeof e != "function")
|
|
1686
1686
|
throw new TypeError(Vn);
|
|
1687
|
-
return
|
|
1687
|
+
return Je(r) && (n = "leading" in r ? !!r.leading : n, a = "trailing" in r ? !!r.trailing : a), ft(e, t, {
|
|
1688
1688
|
leading: n,
|
|
1689
1689
|
maxWait: t,
|
|
1690
1690
|
trailing: a
|
|
@@ -1695,12 +1695,12 @@ const Bn = (e, t) => {
|
|
|
1695
1695
|
const a = e.value, i = n.target;
|
|
1696
1696
|
!a || !i || !(i instanceof Node) || a.contains(i) || t(n);
|
|
1697
1697
|
};
|
|
1698
|
-
|
|
1698
|
+
et(() => {
|
|
1699
1699
|
document.addEventListener("click", r, !0);
|
|
1700
1700
|
}), Ee(() => {
|
|
1701
1701
|
document.removeEventListener("click", r, !0);
|
|
1702
1702
|
});
|
|
1703
|
-
}, An = 80,
|
|
1703
|
+
}, An = 80, pt = /* @__PURE__ */ G({
|
|
1704
1704
|
name: "Popover",
|
|
1705
1705
|
__name: "Popover",
|
|
1706
1706
|
props: {
|
|
@@ -1719,19 +1719,19 @@ const Bn = (e, t) => {
|
|
|
1719
1719
|
},
|
|
1720
1720
|
emits: ["visible-change", "click-outside", "scroll"],
|
|
1721
1721
|
setup(e, { expose: t, emit: r }) {
|
|
1722
|
-
const n = _(!1), a = e, i =
|
|
1723
|
-
let w = null, k =
|
|
1724
|
-
const S = (y) => typeof y == "number" ? `${y}px` : y, O =
|
|
1722
|
+
const n = _(!1), a = e, i = m(() => a.preserveContentMount || n.value), l = m(() => !a.preserveContentMount || n.value), o = r, s = _(), d = _(), c = _();
|
|
1723
|
+
let w = null, k = Me({}), v = Me({});
|
|
1724
|
+
const S = (y) => typeof y == "number" ? `${y}px` : y, O = m(() => {
|
|
1725
1725
|
const y = a.maxPopperHeight;
|
|
1726
1726
|
return y != null && y !== "";
|
|
1727
|
-
}), $ =
|
|
1727
|
+
}), $ = m(() => {
|
|
1728
1728
|
const y = {}, A = a.popperWidth;
|
|
1729
1729
|
if (A != null && A !== "" && (y.width = S(A)), O.value) {
|
|
1730
1730
|
const z = a.maxPopperHeight;
|
|
1731
1731
|
y.maxHeight = S(z), y.overflowY = "auto", y.scrollbarWidth = "none", y.msOverflowStyle = "none";
|
|
1732
1732
|
}
|
|
1733
1733
|
return y.padding = S(a.padding), y;
|
|
1734
|
-
}), C =
|
|
1734
|
+
}), C = m(() => ({
|
|
1735
1735
|
placement: a.placement,
|
|
1736
1736
|
modifiers: [
|
|
1737
1737
|
{
|
|
@@ -1746,10 +1746,10 @@ const Bn = (e, t) => {
|
|
|
1746
1746
|
a.disabled || (n.value = !0, o("visible-change", !0));
|
|
1747
1747
|
}, R = () => {
|
|
1748
1748
|
n.value = !1, o("visible-change", !1);
|
|
1749
|
-
}, f =
|
|
1750
|
-
a.disabled || (
|
|
1749
|
+
}, f = ft(E, a.openDelay), g = ft(R, a.closeDelay), u = () => {
|
|
1750
|
+
a.disabled || (g.cancel(), f());
|
|
1751
1751
|
}, T = () => {
|
|
1752
|
-
f.cancel(),
|
|
1752
|
+
f.cancel(), g();
|
|
1753
1753
|
};
|
|
1754
1754
|
Bn(s, () => {
|
|
1755
1755
|
a.trigger === "click" && n.value && !a.manual && T(), n.value && o("click-outside", !0);
|
|
@@ -1780,7 +1780,7 @@ const Bn = (e, t) => {
|
|
|
1780
1780
|
(y) => {
|
|
1781
1781
|
y && T();
|
|
1782
1782
|
}
|
|
1783
|
-
),
|
|
1783
|
+
), et(() => {
|
|
1784
1784
|
a.manual || D();
|
|
1785
1785
|
});
|
|
1786
1786
|
const W = En((y) => {
|
|
@@ -1797,35 +1797,35 @@ const Bn = (e, t) => {
|
|
|
1797
1797
|
class: "cregis-popover",
|
|
1798
1798
|
ref_key: "popoverRef",
|
|
1799
1799
|
ref: s
|
|
1800
|
-
},
|
|
1800
|
+
}, Et(ne(k), !0)), [
|
|
1801
1801
|
V("div", xe({
|
|
1802
1802
|
class: ["cregis-popover__trigger", { "cregis-popover__trigger--disabled": e.disabled }],
|
|
1803
1803
|
ref_key: "popoverTriggerRef",
|
|
1804
1804
|
ref: d
|
|
1805
|
-
},
|
|
1805
|
+
}, Et(ne(v), !0)), [
|
|
1806
1806
|
q(y.$slots, "reference")
|
|
1807
1807
|
], 16),
|
|
1808
|
-
U(
|
|
1808
|
+
U(vt, { name: "fade" }, {
|
|
1809
1809
|
default: Z(() => [
|
|
1810
|
-
i.value ?
|
|
1810
|
+
i.value ? je((b(), x("div", {
|
|
1811
1811
|
key: 0,
|
|
1812
1812
|
class: j(["cregis-popover__content", { "cregis-popover__content--hide-scrollbar": O.value }]),
|
|
1813
1813
|
ref_key: "popoverContentRef",
|
|
1814
1814
|
ref: c,
|
|
1815
|
-
style:
|
|
1815
|
+
style: ie($.value),
|
|
1816
1816
|
onScroll: A[0] || (A[0] = //@ts-ignore
|
|
1817
|
-
(...z) =>
|
|
1817
|
+
(...z) => ne(W) && ne(W)(...z))
|
|
1818
1818
|
}, [
|
|
1819
1819
|
q(y.$slots, "default")
|
|
1820
1820
|
], 38)), [
|
|
1821
|
-
[
|
|
1821
|
+
[mt, l.value]
|
|
1822
1822
|
]) : I("", !0)
|
|
1823
1823
|
]),
|
|
1824
1824
|
_: 3
|
|
1825
1825
|
})
|
|
1826
1826
|
], 16));
|
|
1827
1827
|
}
|
|
1828
|
-
}),
|
|
1828
|
+
}), cr = Symbol("CregisSelect"), Rn = { class: "cregis-select__trigger-label" }, Dn = { class: "cregis-select__selected" }, zn = {
|
|
1829
1829
|
key: 1,
|
|
1830
1830
|
class: "cregis-select__placeholder"
|
|
1831
1831
|
}, Wn = {
|
|
@@ -1834,7 +1834,7 @@ const Bn = (e, t) => {
|
|
|
1834
1834
|
}, Ln = {
|
|
1835
1835
|
key: 2,
|
|
1836
1836
|
class: "cregis-select__dropdown-filter-empty"
|
|
1837
|
-
}, jn = { class: "cregis-select__dropdown-content" }, li = /* @__PURE__ */
|
|
1837
|
+
}, jn = { class: "cregis-select__dropdown-content" }, li = /* @__PURE__ */ G({
|
|
1838
1838
|
name: "Select",
|
|
1839
1839
|
__name: "Select",
|
|
1840
1840
|
props: {
|
|
@@ -1859,13 +1859,13 @@ const Bn = (e, t) => {
|
|
|
1859
1859
|
const o = () => {
|
|
1860
1860
|
l !== null && (clearTimeout(l), l = null);
|
|
1861
1861
|
}, s = (h) => {
|
|
1862
|
-
i.value = h, n("visible-change", h), !h && r.filterable && (f.value = "",
|
|
1863
|
-
}, d = (h) => typeof h == "number" ? `n:${h}` : `s:${h}`, c =
|
|
1864
|
-
const
|
|
1865
|
-
return k.value++, c[
|
|
1866
|
-
k.value--, delete c[
|
|
1862
|
+
i.value = h, n("visible-change", h), !h && r.filterable && (f.value = "", g.value = "", o());
|
|
1863
|
+
}, d = (h) => typeof h == "number" ? `n:${h}` : `s:${h}`, c = Me({}), w = Me({}), k = _(0), v = _(null), S = (h, N, K) => {
|
|
1864
|
+
const ue = d(h);
|
|
1865
|
+
return k.value++, c[ue] = N, w[ue] = K ?? N, () => {
|
|
1866
|
+
k.value--, delete c[ue], delete w[ue];
|
|
1867
1867
|
};
|
|
1868
|
-
}, O =
|
|
1868
|
+
}, O = m(() => k.value === 0);
|
|
1869
1869
|
J(
|
|
1870
1870
|
() => r.modelValue,
|
|
1871
1871
|
(h) => {
|
|
@@ -1876,23 +1876,23 @@ const Bn = (e, t) => {
|
|
|
1876
1876
|
v.value && v.value.value !== h && (v.value = null);
|
|
1877
1877
|
}
|
|
1878
1878
|
);
|
|
1879
|
-
const $ =
|
|
1879
|
+
const $ = m(() => {
|
|
1880
1880
|
const h = r.modelValue;
|
|
1881
1881
|
return h != null && h !== "";
|
|
1882
|
-
}), C =
|
|
1882
|
+
}), C = m(() => {
|
|
1883
1883
|
if (!$.value) return "";
|
|
1884
1884
|
const h = r.modelValue;
|
|
1885
1885
|
return v.value?.value === h ? v.value.label : c[d(h)] ?? String(h);
|
|
1886
|
-
}), E = (h) => r.modelValue === h, R = (h,
|
|
1887
|
-
r.disabled || (v.value = { value: h, label:
|
|
1888
|
-
}, f = _(""),
|
|
1886
|
+
}), E = (h) => r.modelValue === h, R = (h, N) => {
|
|
1887
|
+
r.disabled || (v.value = { value: h, label: N }, n("update:modelValue", h), n("change", h), a.value?.close());
|
|
1888
|
+
}, f = _(""), g = _(""), u = m(() => g.value.trim().toLowerCase()), T = m(() => {
|
|
1889
1889
|
const h = u.value;
|
|
1890
|
-
return !r.filterable || !h ? !0 : Object.keys(c).some((
|
|
1891
|
-
}), B =
|
|
1890
|
+
return !r.filterable || !h ? !0 : Object.keys(c).some((N) => (w[N] ?? c[N]).toLowerCase().includes(h));
|
|
1891
|
+
}), B = m(
|
|
1892
1892
|
() => r.filterable && !!u.value && !T.value && !O.value
|
|
1893
1893
|
), D = () => {
|
|
1894
1894
|
r.filterable && (o(), l = setTimeout(() => {
|
|
1895
|
-
|
|
1895
|
+
g.value = f.value.trim(), l = null;
|
|
1896
1896
|
}, r.filterDebounceMs));
|
|
1897
1897
|
};
|
|
1898
1898
|
J(f, () => {
|
|
@@ -1900,50 +1900,50 @@ const Bn = (e, t) => {
|
|
|
1900
1900
|
}), J(
|
|
1901
1901
|
() => r.filterable,
|
|
1902
1902
|
(h) => {
|
|
1903
|
-
h || (f.value = "",
|
|
1903
|
+
h || (f.value = "", g.value = "", o());
|
|
1904
1904
|
}
|
|
1905
1905
|
), Ee(() => o());
|
|
1906
1906
|
const W = (h) => {
|
|
1907
1907
|
n("filter-input", String(h ?? ""));
|
|
1908
1908
|
}, y = () => {
|
|
1909
|
-
|
|
1909
|
+
g.value = "", o(), n("filter-clear");
|
|
1910
1910
|
};
|
|
1911
|
-
|
|
1912
|
-
modelValue:
|
|
1913
|
-
disabled:
|
|
1911
|
+
Ht(cr, {
|
|
1912
|
+
modelValue: m(() => r.modelValue),
|
|
1913
|
+
disabled: m(() => !!r.disabled),
|
|
1914
1914
|
selectOption: R,
|
|
1915
1915
|
isOptionSelected: E,
|
|
1916
1916
|
registerOption: S,
|
|
1917
1917
|
filterQuery: u
|
|
1918
1918
|
});
|
|
1919
|
-
const A = (h) => typeof h == "number" ? `${h}px` : h, z =
|
|
1919
|
+
const A = (h) => typeof h == "number" ? `${h}px` : h, z = m(() => {
|
|
1920
1920
|
if (r.popperWidth) return A(r.popperWidth);
|
|
1921
1921
|
const h = r.triggerWidth;
|
|
1922
1922
|
return typeof h == "number" ? h + 8 : `calc(${h} + 8px)`;
|
|
1923
|
-
}),
|
|
1923
|
+
}), Y = m(() => typeof z.value == "number" ? `${z.value - 12}px` : `calc(${z.value} - 12px)`), X = m(() => r.align === "center" ? "bottom" : r.align === "left" ? "bottom-start" : "bottom-end"), F = m(() => ({
|
|
1924
1924
|
width: A(r.triggerWidth)
|
|
1925
|
-
})),
|
|
1925
|
+
})), H = m(() => r.size === "large" ? "20px" : r.size === "medium" ? "14px" : "12px"), de = _(0), ce = (h) => {
|
|
1926
1926
|
de.value = h.scrollTop;
|
|
1927
1927
|
};
|
|
1928
|
-
return (h,
|
|
1928
|
+
return (h, N) => (b(), x("div", {
|
|
1929
1929
|
class: j(["cregis-select", { "is-disabled": e.disabled }])
|
|
1930
1930
|
}, [
|
|
1931
|
-
U(
|
|
1931
|
+
U(pt, {
|
|
1932
1932
|
ref_key: "popoverRef",
|
|
1933
1933
|
ref: a,
|
|
1934
1934
|
"preserve-content-mount": "",
|
|
1935
1935
|
"popper-width": z.value,
|
|
1936
|
-
placement:
|
|
1936
|
+
placement: X.value,
|
|
1937
1937
|
disabled: !!e.disabled,
|
|
1938
1938
|
padding: 0,
|
|
1939
1939
|
"max-popper-height": e.maxPopperHeight,
|
|
1940
1940
|
onVisibleChange: s,
|
|
1941
|
-
onScroll:
|
|
1941
|
+
onScroll: ce
|
|
1942
1942
|
}, {
|
|
1943
1943
|
reference: Z(() => [
|
|
1944
1944
|
V("div", {
|
|
1945
1945
|
class: j(["cregis-select__trigger", { [`cregis-select__trigger--${e.size}`]: e.size, [`cregis-select__trigger--${e.type}`]: e.type }]),
|
|
1946
|
-
style:
|
|
1946
|
+
style: ie(F.value)
|
|
1947
1947
|
}, [
|
|
1948
1948
|
V("div", Rn, [
|
|
1949
1949
|
$.value ? q(h.$slots, "label", {
|
|
@@ -1959,8 +1959,8 @@ const Bn = (e, t) => {
|
|
|
1959
1959
|
V("span", {
|
|
1960
1960
|
class: j(["cregis-select__icon", { "is-open": i.value }])
|
|
1961
1961
|
}, [
|
|
1962
|
-
U(
|
|
1963
|
-
size:
|
|
1962
|
+
U(ne(Kt), {
|
|
1963
|
+
size: H.value,
|
|
1964
1964
|
color: e.disabled ? "var(--text-base-quaternary)" : "var(--material-foreground-base-secondary)"
|
|
1965
1965
|
}, null, 8, ["size", "color"])
|
|
1966
1966
|
], 2)
|
|
@@ -1975,18 +1975,18 @@ const Bn = (e, t) => {
|
|
|
1975
1975
|
key: 1,
|
|
1976
1976
|
class: j(["cregis-select__dropdown-filter", { "backdrop-fixed-header": de.value > 10 }])
|
|
1977
1977
|
}, [
|
|
1978
|
-
U(
|
|
1978
|
+
U(Qt, {
|
|
1979
1979
|
modelValue: f.value,
|
|
1980
|
-
"onUpdate:modelValue":
|
|
1980
|
+
"onUpdate:modelValue": N[0] || (N[0] = (K) => f.value = K),
|
|
1981
1981
|
placeholder: "search",
|
|
1982
|
-
width:
|
|
1982
|
+
width: Y.value,
|
|
1983
1983
|
size: "small",
|
|
1984
1984
|
clearable: "",
|
|
1985
1985
|
onInput: W,
|
|
1986
1986
|
onClear: y
|
|
1987
1987
|
}, {
|
|
1988
1988
|
prefix: Z(() => [
|
|
1989
|
-
U(
|
|
1989
|
+
U(ne(Xt), { size: "14px" })
|
|
1990
1990
|
]),
|
|
1991
1991
|
_: 1
|
|
1992
1992
|
}, 8, ["modelValue", "width"])
|
|
@@ -2001,7 +2001,7 @@ const Bn = (e, t) => {
|
|
|
2001
2001
|
}, 8, ["popper-width", "placement", "disabled", "max-popper-height"])
|
|
2002
2002
|
], 2));
|
|
2003
2003
|
}
|
|
2004
|
-
}), Mn = ["aria-selected"], ci = /* @__PURE__ */
|
|
2004
|
+
}), Mn = ["aria-selected"], ci = /* @__PURE__ */ G({
|
|
2005
2005
|
name: "Option",
|
|
2006
2006
|
__name: "Option",
|
|
2007
2007
|
props: {
|
|
@@ -2011,19 +2011,19 @@ const Bn = (e, t) => {
|
|
|
2011
2011
|
filterText: {}
|
|
2012
2012
|
},
|
|
2013
2013
|
setup(e) {
|
|
2014
|
-
const t = e, r =
|
|
2014
|
+
const t = e, r = qt(cr, null);
|
|
2015
2015
|
let n;
|
|
2016
2016
|
const a = () => t.filterText ?? t.label, i = () => {
|
|
2017
2017
|
n?.(), r && (n = r.registerOption(t.value, t.label, a()));
|
|
2018
2018
|
};
|
|
2019
|
-
|
|
2020
|
-
const l =
|
|
2019
|
+
et(i), Ee(() => n?.()), J(() => [t.value, t.label, t.filterText], i);
|
|
2020
|
+
const l = m(() => r?.isOptionSelected(t.value) ?? !1), o = () => {
|
|
2021
2021
|
t.disabled || r?.disabled.value || r?.selectOption(t.value, t.label);
|
|
2022
|
-
}, s =
|
|
2022
|
+
}, s = m(() => r?.filterQuery?.value ?? ""), d = m(() => {
|
|
2023
2023
|
const c = s.value;
|
|
2024
2024
|
return c ? a().toLowerCase().includes(c) : !0;
|
|
2025
2025
|
});
|
|
2026
|
-
return (c, w) =>
|
|
2026
|
+
return (c, w) => je((b(), x("div", {
|
|
2027
2027
|
class: j(["cregis-select__option", { "is-selected": l.value, "is-disabled": e.disabled }]),
|
|
2028
2028
|
role: "option",
|
|
2029
2029
|
"aria-selected": l.value,
|
|
@@ -2038,7 +2038,7 @@ const Bn = (e, t) => {
|
|
|
2038
2038
|
$e(M(e.label), 1)
|
|
2039
2039
|
])
|
|
2040
2040
|
], 10, Mn)), [
|
|
2041
|
-
[
|
|
2041
|
+
[mt, d.value]
|
|
2042
2042
|
]);
|
|
2043
2043
|
}
|
|
2044
2044
|
}), _n = { class: "cregis-cascader__trigger-label" }, In = { class: "cregis-cascader__selected" }, Nn = {
|
|
@@ -2053,10 +2053,10 @@ const Bn = (e, t) => {
|
|
|
2053
2053
|
}, qn = { class: "cregis-cascader__dropdown-content" }, Un = {
|
|
2054
2054
|
key: 0,
|
|
2055
2055
|
class: "cregis-cascader__dropdown-item-popover"
|
|
2056
|
-
},
|
|
2056
|
+
}, Yn = { class: "cregis-cascader__suboption-amount-container" }, Xn = {
|
|
2057
2057
|
key: 0,
|
|
2058
2058
|
class: "cregis-cascader__suboption-amount"
|
|
2059
|
-
}, Kn = { class: "cregis-cascader__suboption-panel" }, Qn = ["onClick"], Gn = ["onClick"], ui = /* @__PURE__ */
|
|
2059
|
+
}, Kn = { class: "cregis-cascader__suboption-panel" }, Qn = ["onClick"], Gn = ["onClick"], ui = /* @__PURE__ */ G({
|
|
2060
2060
|
name: "Cascader",
|
|
2061
2061
|
__name: "Cascader",
|
|
2062
2062
|
props: {
|
|
@@ -2074,7 +2074,7 @@ const Bn = (e, t) => {
|
|
|
2074
2074
|
triggerWidth: { default: "296px" },
|
|
2075
2075
|
popperWidth: {},
|
|
2076
2076
|
subPopperWidth: { default: "200px" },
|
|
2077
|
-
maxPopperHeight: {},
|
|
2077
|
+
maxPopperHeight: { default: 300 },
|
|
2078
2078
|
offset: { default: () => [0, 0] },
|
|
2079
2079
|
showSubOptionAmount: { type: Boolean, default: !0 }
|
|
2080
2080
|
},
|
|
@@ -2084,7 +2084,7 @@ const Bn = (e, t) => {
|
|
|
2084
2084
|
let l = null;
|
|
2085
2085
|
const o = () => {
|
|
2086
2086
|
l !== null && (clearTimeout(l), l = null);
|
|
2087
|
-
}, s = _(""), d = _(""), c =
|
|
2087
|
+
}, s = _(""), d = _(""), c = m(() => d.value.trim().toLowerCase()), w = () => {
|
|
2088
2088
|
r.filterable && (o(), l = setTimeout(() => {
|
|
2089
2089
|
d.value = s.value.trim(), l = null;
|
|
2090
2090
|
}, r.filterDebounceMs));
|
|
@@ -2103,13 +2103,13 @@ const Bn = (e, t) => {
|
|
|
2103
2103
|
d.value = "", o(), n("filter-clear");
|
|
2104
2104
|
}, S = (p) => (p.filterText ?? p.label).toLowerCase(), O = (p) => {
|
|
2105
2105
|
const L = c.value;
|
|
2106
|
-
return !L || S(p).includes(L) ? !0 : (p.children ?? []).some((
|
|
2106
|
+
return !L || S(p).includes(L) ? !0 : (p.children ?? []).some((ae) => S(ae).includes(L));
|
|
2107
2107
|
}, $ = (p, L) => {
|
|
2108
2108
|
const P = c.value;
|
|
2109
2109
|
return !P || S(p).includes(P) ? !0 : S(L).includes(P);
|
|
2110
|
-
}, C =
|
|
2110
|
+
}, C = m(() => r.options.filter((p) => O(p))), E = m(() => r.options.length === 0), R = m(() => (c.value, r.options.some((p) => O(p)))), f = m(
|
|
2111
2111
|
() => r.filterable && !!d.value.trim() && !R.value && !E.value
|
|
2112
|
-
),
|
|
2112
|
+
), g = (p) => {
|
|
2113
2113
|
i.value = p, n("visible-change", p), !p && r.filterable && (s.value = "", d.value = "", o());
|
|
2114
2114
|
}, u = _(null), T = (p) => {
|
|
2115
2115
|
const L = r.options.find((P) => P.value === p);
|
|
@@ -2121,13 +2121,13 @@ const Bn = (e, t) => {
|
|
|
2121
2121
|
sub: void 0
|
|
2122
2122
|
};
|
|
2123
2123
|
for (const P of r.options) {
|
|
2124
|
-
const
|
|
2125
|
-
if (
|
|
2124
|
+
const ae = P.children?.find((Q) => Q.value === p);
|
|
2125
|
+
if (ae)
|
|
2126
2126
|
return {
|
|
2127
2127
|
level: 2,
|
|
2128
|
-
label:
|
|
2128
|
+
label: ae.label,
|
|
2129
2129
|
primary: P,
|
|
2130
|
-
sub:
|
|
2130
|
+
sub: ae
|
|
2131
2131
|
};
|
|
2132
2132
|
}
|
|
2133
2133
|
return {
|
|
@@ -2136,7 +2136,7 @@ const Bn = (e, t) => {
|
|
|
2136
2136
|
primary: void 0,
|
|
2137
2137
|
sub: void 0
|
|
2138
2138
|
};
|
|
2139
|
-
}, B =
|
|
2139
|
+
}, B = m(() => {
|
|
2140
2140
|
const p = r.modelValue;
|
|
2141
2141
|
return p == null || p === "" ? {
|
|
2142
2142
|
level: 0,
|
|
@@ -2160,38 +2160,40 @@ const Bn = (e, t) => {
|
|
|
2160
2160
|
u.value !== null && u.value.value !== p && (u.value = null);
|
|
2161
2161
|
}
|
|
2162
2162
|
);
|
|
2163
|
-
const D =
|
|
2163
|
+
const D = m(() => B.value.level > 0), W = m(() => B.value.label), y = m(() => r.modelValue), A = m(() => W.value), z = m(() => B.value.level), Y = m(() => B.value.primary), X = m(() => B.value.sub), F = (p) => (p.children?.length ?? 0) > 0, H = (p) => r.modelValue === p, de = (p) => {
|
|
2164
2164
|
const L = r.modelValue;
|
|
2165
2165
|
return L == null || L === "" ? !1 : (p.children ?? []).some((P) => P.value === L);
|
|
2166
|
-
},
|
|
2166
|
+
}, ce = (p, L) => {
|
|
2167
2167
|
r.disabled || p.disabled || L.disabled || (u.value = { value: L.value, label: L.label, level: 2, primary: p, sub: L }, n("update:modelValue", L.value), n("change", L.value), a.value?.close());
|
|
2168
2168
|
}, h = (p) => {
|
|
2169
|
-
r.disabled || p.disabled ||
|
|
2170
|
-
},
|
|
2169
|
+
r.disabled || p.disabled || F(p) || (u.value = { value: p.value, label: p.label, level: 1, primary: p }, n("update:modelValue", p.value), n("change", p.value), a.value?.close());
|
|
2170
|
+
}, N = (p) => typeof p == "number" ? `${p}px` : p, K = m(() => {
|
|
2171
2171
|
if (r.popperWidth !== void 0 && r.popperWidth !== null && r.popperWidth !== "")
|
|
2172
|
-
return
|
|
2172
|
+
return N(r.popperWidth);
|
|
2173
2173
|
const p = r.triggerWidth;
|
|
2174
2174
|
return typeof p == "number" ? `${p + 8}px` : `calc(${p} + 8px)`;
|
|
2175
|
-
}),
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
|
|
2179
|
-
|
|
2175
|
+
}), ue = m(() => N(r.subPopperWidth)), he = m(() => typeof K.value == "number" ? `${K.value - 12}px` : `calc(${K.value} - 12px)`), fe = m(() => ({
|
|
2176
|
+
maxHeight: N(r.maxPopperHeight),
|
|
2177
|
+
overflowY: "auto"
|
|
2178
|
+
})), ye = { strategy: "fixed" }, Te = m(() => r.align === "center" ? "bottom" : r.align === "left" ? "bottom-start" : "bottom-end"), me = m(() => ({
|
|
2179
|
+
width: N(r.triggerWidth)
|
|
2180
|
+
})), Be = m(() => r.size === "large" ? "20px" : r.size === "medium" ? "14px" : "12px"), He = _(0), Ae = (p) => {
|
|
2181
|
+
const L = p.target;
|
|
2182
|
+
He.value = L.scrollTop;
|
|
2183
|
+
}, rt = [-16, -8];
|
|
2180
2184
|
return (p, L) => (b(), x("div", {
|
|
2181
2185
|
class: j(["cregis-cascader", { "is-disabled": e.disabled }])
|
|
2182
2186
|
}, [
|
|
2183
|
-
U(
|
|
2187
|
+
U(pt, {
|
|
2184
2188
|
ref_key: "popoverRef",
|
|
2185
2189
|
ref: a,
|
|
2186
2190
|
"preserve-content-mount": "",
|
|
2187
2191
|
"popper-width": K.value,
|
|
2188
|
-
placement:
|
|
2192
|
+
placement: Te.value,
|
|
2189
2193
|
offset: e.offset,
|
|
2190
2194
|
disabled: !!e.disabled,
|
|
2191
2195
|
padding: 0,
|
|
2192
|
-
|
|
2193
|
-
onVisibleChange: m,
|
|
2194
|
-
onScroll: Be
|
|
2196
|
+
onVisibleChange: g
|
|
2195
2197
|
}, {
|
|
2196
2198
|
reference: Z(() => [
|
|
2197
2199
|
p.$slots.trigger ? q(p.$slots, "trigger", {
|
|
@@ -2199,8 +2201,8 @@ const Bn = (e, t) => {
|
|
|
2199
2201
|
modelValue: y.value,
|
|
2200
2202
|
selectedLabel: A.value,
|
|
2201
2203
|
level: z.value,
|
|
2202
|
-
primaryOption:
|
|
2203
|
-
subOption:
|
|
2204
|
+
primaryOption: Y.value,
|
|
2205
|
+
subOption: X.value,
|
|
2204
2206
|
placeholder: e.placeholder,
|
|
2205
2207
|
hasSelection: D.value,
|
|
2206
2208
|
open: i.value,
|
|
@@ -2208,7 +2210,7 @@ const Bn = (e, t) => {
|
|
|
2208
2210
|
}) : (b(), x("div", {
|
|
2209
2211
|
key: 1,
|
|
2210
2212
|
class: j(["cregis-cascader__trigger", { [`cregis-cascader__trigger--${e.size}`]: e.size, [`cregis-cascader__trigger--${e.type}`]: e.type }]),
|
|
2211
|
-
style:
|
|
2213
|
+
style: ie(me.value)
|
|
2212
2214
|
}, [
|
|
2213
2215
|
V("div", _n, [
|
|
2214
2216
|
D.value ? q(p.$slots, "label", {
|
|
@@ -2216,8 +2218,8 @@ const Bn = (e, t) => {
|
|
|
2216
2218
|
modelValue: y.value,
|
|
2217
2219
|
selectedLabel: A.value,
|
|
2218
2220
|
level: z.value,
|
|
2219
|
-
primaryOption:
|
|
2220
|
-
subOption:
|
|
2221
|
+
primaryOption: Y.value,
|
|
2222
|
+
subOption: X.value,
|
|
2221
2223
|
placeholder: e.placeholder,
|
|
2222
2224
|
hasSelection: D.value
|
|
2223
2225
|
}, () => [
|
|
@@ -2227,8 +2229,8 @@ const Bn = (e, t) => {
|
|
|
2227
2229
|
V("span", {
|
|
2228
2230
|
class: j(["cregis-cascader__icon", { "is-open": i.value }])
|
|
2229
2231
|
}, [
|
|
2230
|
-
U(
|
|
2231
|
-
size:
|
|
2232
|
+
U(ne(Kt), {
|
|
2233
|
+
size: Be.value,
|
|
2232
2234
|
color: e.disabled ? "var(--text-base-quaternary)" : "var(--material-foreground-base-secondary)"
|
|
2233
2235
|
}, null, 8, ["size", "color"])
|
|
2234
2236
|
], 2)
|
|
@@ -2236,14 +2238,16 @@ const Bn = (e, t) => {
|
|
|
2236
2238
|
]),
|
|
2237
2239
|
default: Z(() => [
|
|
2238
2240
|
V("div", {
|
|
2239
|
-
class: j(["cregis-cascader__dropdown", { "is-empty": E.value }])
|
|
2241
|
+
class: j(["cregis-cascader__dropdown", { "is-empty": E.value }]),
|
|
2242
|
+
style: ie(fe.value),
|
|
2243
|
+
onScroll: Ae
|
|
2240
2244
|
}, [
|
|
2241
2245
|
E.value ? (b(), x("p", Fn, M(e.noDataText), 1)) : I("", !0),
|
|
2242
2246
|
e.filterable ? (b(), x("div", {
|
|
2243
2247
|
key: 1,
|
|
2244
|
-
class: j(["cregis-cascader__dropdown-filter", { "backdrop-fixed-header":
|
|
2248
|
+
class: j(["cregis-cascader__dropdown-filter", { "backdrop-fixed-header": He.value > 10 }])
|
|
2245
2249
|
}, [
|
|
2246
|
-
U(
|
|
2250
|
+
U(Qt, {
|
|
2247
2251
|
modelValue: s.value,
|
|
2248
2252
|
"onUpdate:modelValue": L[0] || (L[0] = (P) => s.value = P),
|
|
2249
2253
|
placeholder: "search",
|
|
@@ -2254,23 +2258,24 @@ const Bn = (e, t) => {
|
|
|
2254
2258
|
onClear: v
|
|
2255
2259
|
}, {
|
|
2256
2260
|
prefix: Z(() => [
|
|
2257
|
-
U(
|
|
2261
|
+
U(ne(Xt), { size: "14px" })
|
|
2258
2262
|
]),
|
|
2259
2263
|
_: 1
|
|
2260
2264
|
}, 8, ["modelValue", "width"])
|
|
2261
2265
|
], 2)) : I("", !0),
|
|
2262
2266
|
f.value ? (b(), x("p", Hn, M(e.noMatchText), 1)) : I("", !0),
|
|
2263
2267
|
V("ul", qn, [
|
|
2264
|
-
(b(!0), x(
|
|
2268
|
+
(b(!0), x(lt, null, ct(C.value, (P, ae) => (b(), x("li", {
|
|
2265
2269
|
key: P.value,
|
|
2266
2270
|
class: j(["cregis-cascader__dropdown-item", { "is-disabled": P.disabled }])
|
|
2267
2271
|
}, [
|
|
2268
|
-
|
|
2269
|
-
U(
|
|
2272
|
+
F(P) ? (b(), x("div", Un, [
|
|
2273
|
+
U(pt, {
|
|
2270
2274
|
trigger: "hover",
|
|
2271
2275
|
placement: "right-start",
|
|
2272
|
-
offset:
|
|
2273
|
-
"
|
|
2276
|
+
offset: rt,
|
|
2277
|
+
"popover-options": ye,
|
|
2278
|
+
"popper-width": ue.value,
|
|
2274
2279
|
padding: 4,
|
|
2275
2280
|
disabled: !!P.disabled || !!e.disabled
|
|
2276
2281
|
}, {
|
|
@@ -2285,19 +2290,19 @@ const Bn = (e, t) => {
|
|
|
2285
2290
|
modelValue: y.value,
|
|
2286
2291
|
selectedLabel: A.value,
|
|
2287
2292
|
level: z.value,
|
|
2288
|
-
primaryOption:
|
|
2289
|
-
subOption:
|
|
2293
|
+
primaryOption: Y.value,
|
|
2294
|
+
subOption: X.value,
|
|
2290
2295
|
option: P,
|
|
2291
|
-
index:
|
|
2296
|
+
index: ae,
|
|
2292
2297
|
disabled: !!P.disabled,
|
|
2293
|
-
selected:
|
|
2298
|
+
selected: H(P.value),
|
|
2294
2299
|
isParentOfSelected: de(P)
|
|
2295
2300
|
}, () => [
|
|
2296
2301
|
V("p", null, M(P.label), 1)
|
|
2297
2302
|
]),
|
|
2298
|
-
V("div",
|
|
2299
|
-
e.showSubOptionAmount ? (b(), x("div",
|
|
2300
|
-
U(
|
|
2303
|
+
V("div", Yn, [
|
|
2304
|
+
e.showSubOptionAmount ? (b(), x("div", Xn, M(P.children.length), 1)) : I("", !0),
|
|
2305
|
+
U(ne(br), {
|
|
2301
2306
|
size: "14px",
|
|
2302
2307
|
color: "currentColor"
|
|
2303
2308
|
})
|
|
@@ -2306,32 +2311,32 @@ const Bn = (e, t) => {
|
|
|
2306
2311
|
]),
|
|
2307
2312
|
default: Z(() => [
|
|
2308
2313
|
V("div", Kn, [
|
|
2309
|
-
(b(!0), x(
|
|
2310
|
-
key:
|
|
2314
|
+
(b(!0), x(lt, null, ct(P.children, (Q, at) => je((b(), x("div", {
|
|
2315
|
+
key: Q.value,
|
|
2311
2316
|
class: j(["cregis-cascader__suboption-row", {
|
|
2312
|
-
"is-active":
|
|
2313
|
-
"is-disabled":
|
|
2317
|
+
"is-active": H(Q.value),
|
|
2318
|
+
"is-disabled": Q.disabled
|
|
2314
2319
|
}]),
|
|
2315
2320
|
role: "menuitem",
|
|
2316
|
-
onClick: (
|
|
2321
|
+
onClick: ($t) => ce(P, Q)
|
|
2317
2322
|
}, [
|
|
2318
2323
|
q(p.$slots, "subOption", {
|
|
2319
2324
|
modelValue: y.value,
|
|
2320
2325
|
selectedLabel: A.value,
|
|
2321
2326
|
level: z.value,
|
|
2322
|
-
primaryOption:
|
|
2323
|
-
subOption:
|
|
2324
|
-
option:
|
|
2325
|
-
index:
|
|
2327
|
+
primaryOption: Y.value,
|
|
2328
|
+
subOption: X.value,
|
|
2329
|
+
option: Q,
|
|
2330
|
+
index: at,
|
|
2326
2331
|
parent: P,
|
|
2327
|
-
parentIndex:
|
|
2328
|
-
selected:
|
|
2329
|
-
disabled: !!
|
|
2332
|
+
parentIndex: ae,
|
|
2333
|
+
selected: H(Q.value),
|
|
2334
|
+
disabled: !!Q.disabled
|
|
2330
2335
|
}, () => [
|
|
2331
|
-
$e(M(
|
|
2336
|
+
$e(M(Q.label), 1)
|
|
2332
2337
|
])
|
|
2333
2338
|
], 10, Qn)), [
|
|
2334
|
-
[
|
|
2339
|
+
[mt, $(P, Q)]
|
|
2335
2340
|
])), 128))
|
|
2336
2341
|
])
|
|
2337
2342
|
]),
|
|
@@ -2340,18 +2345,18 @@ const Bn = (e, t) => {
|
|
|
2340
2345
|
])) : (b(), x("div", {
|
|
2341
2346
|
key: 1,
|
|
2342
2347
|
class: "cregis-cascader__leaf-only",
|
|
2343
|
-
onClick: (
|
|
2348
|
+
onClick: (Q) => h(P)
|
|
2344
2349
|
}, [
|
|
2345
2350
|
q(p.$slots, "option", {
|
|
2346
2351
|
modelValue: y.value,
|
|
2347
2352
|
selectedLabel: A.value,
|
|
2348
2353
|
level: z.value,
|
|
2349
|
-
primaryOption:
|
|
2350
|
-
subOption:
|
|
2354
|
+
primaryOption: Y.value,
|
|
2355
|
+
subOption: X.value,
|
|
2351
2356
|
option: P,
|
|
2352
|
-
index:
|
|
2357
|
+
index: ae,
|
|
2353
2358
|
disabled: !!P.disabled,
|
|
2354
|
-
selected:
|
|
2359
|
+
selected: H(P.value),
|
|
2355
2360
|
isParentOfSelected: !1
|
|
2356
2361
|
}, () => [
|
|
2357
2362
|
V("p", null, M(P.label), 1)
|
|
@@ -2359,28 +2364,28 @@ const Bn = (e, t) => {
|
|
|
2359
2364
|
], 8, Gn))
|
|
2360
2365
|
], 2))), 128))
|
|
2361
2366
|
])
|
|
2362
|
-
],
|
|
2367
|
+
], 38)
|
|
2363
2368
|
]),
|
|
2364
2369
|
_: 3
|
|
2365
|
-
}, 8, ["popper-width", "placement", "offset", "disabled"
|
|
2370
|
+
}, 8, ["popper-width", "placement", "offset", "disabled"])
|
|
2366
2371
|
], 2));
|
|
2367
2372
|
}
|
|
2368
2373
|
});
|
|
2369
2374
|
export {
|
|
2370
|
-
|
|
2375
|
+
Ye as Button,
|
|
2371
2376
|
ui as Cascader,
|
|
2372
2377
|
ei as Checkbox,
|
|
2373
2378
|
ri as Divider,
|
|
2374
|
-
|
|
2379
|
+
Qt as Input,
|
|
2375
2380
|
ii as Message,
|
|
2376
2381
|
oi as Notification,
|
|
2377
2382
|
ci as Option,
|
|
2378
|
-
|
|
2383
|
+
pt as Popover,
|
|
2379
2384
|
si as Progress,
|
|
2380
2385
|
ti as Radio,
|
|
2381
2386
|
li as Select,
|
|
2382
|
-
|
|
2387
|
+
Gt as TABS_KEY,
|
|
2383
2388
|
ni as TabPane,
|
|
2384
2389
|
ai as Tabs,
|
|
2385
|
-
|
|
2390
|
+
cr as selectInjectKey
|
|
2386
2391
|
};
|