@yzsf2e/render-core 1.0.2-alpha.59 → 1.0.2-alpha.60
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/render-core.mjs +223 -223
- package/dist/render-core.umd.js +3 -3
- package/package.json +1 -1
package/dist/render-core.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { defineComponent as $e, ref as P, computed as H, openBlock as R, createBlock as X, resolveDynamicComponent as mn, effectScope as Es, unref as Ir, isRef as Ha, toRefs as Xe, customRef as Ts, onMounted as Tt, nextTick as Ge, getCurrentScope as Cs, onScopeDispose as _s, readonly as Os, getCurrentInstance as
|
|
1
|
+
import { defineComponent as $e, ref as P, computed as H, openBlock as R, createBlock as X, resolveDynamicComponent as mn, effectScope as Es, unref as Ir, isRef as Ha, toRefs as Xe, customRef as Ts, onMounted as Tt, nextTick as Ge, getCurrentScope as Cs, onScopeDispose as _s, readonly as Os, getCurrentInstance as Vt, watch as ye, shallowRef as Jt, resolveComponent as F, withCtx as M, createElementBlock as Q, Fragment as ve, createTextVNode as Ce, toDisplayString as Ee, renderSlot as xt, createVNode as K, createElementVNode as Ne, createCommentVNode as Te, reactive as qe, mergeProps as pt, onUnmounted as vn, watchEffect as wt, normalizeStyle as Ur, renderList as Fe, toRaw as Ke, inject as _e, h as at, withDirectives as Yr, vShow as Ga, withModifiers as qa, resolveDirective as As, createSlots as $s, onRenderTriggered as Ps, normalizeProps as xn, normalizeClass as Is, provide as Dt } from "vue";
|
|
2
2
|
import { DatePicker as Xa, Modal as Qa, Button as Jn, Space as yn, message as je, Input as Ds, Select as Fn, Cascader as Ns, RangePicker as Rs, Col as Ms, Row as Ls, Form as Wr, Menu as ks, MenuItem as xs, Dropdown as Fs, Pagination as js, DropdownButton as zs, Alert as yi, Spin as Bs, Table as Ks, Transfer as Us, ConfigProvider as Ys } from "ant-design-vue";
|
|
3
3
|
import * as Ws from "@ant-design/icons-vue";
|
|
4
4
|
import { CloseOutlined as Vs, ShrinkOutlined as Hs, ArrowsAltOutlined as Gs, HolderOutlined as qs, DownOutlined as Za, UpOutlined as Xs, SettingOutlined as Qs, LoadingOutlined as Ja, FilterOutlined as Zs } from "@ant-design/icons-vue";
|
|
5
5
|
import { useRouter as Js } from "vue-router";
|
|
6
6
|
/*!
|
|
7
|
-
* @yzsf2e/render-core v0.0.2-alpha.25
|
|
7
|
+
* @yzsf2e/render-core v0.0.2-alpha.25 Mon Jun 17 2024 12:32:20 GMT+0800 (中国标准时间)
|
|
8
8
|
* (c) 2023 @yzsf2e.
|
|
9
9
|
*/
|
|
10
10
|
const el = Object.assign;
|
|
@@ -139,14 +139,14 @@ function gl(e = ro) {
|
|
|
139
139
|
return { isActive: Os(t), pause: n, resume: r, eventFilter: i };
|
|
140
140
|
}
|
|
141
141
|
function ml(e) {
|
|
142
|
-
return e ||
|
|
142
|
+
return e || Vt();
|
|
143
143
|
}
|
|
144
144
|
function vl(e, t, n = {}) {
|
|
145
145
|
const {
|
|
146
146
|
eventFilter: r = ro,
|
|
147
147
|
...i
|
|
148
148
|
} = n;
|
|
149
|
-
return
|
|
149
|
+
return ye(
|
|
150
150
|
e,
|
|
151
151
|
pl(
|
|
152
152
|
r,
|
|
@@ -204,14 +204,14 @@ function Dr(e) {
|
|
|
204
204
|
return (t = n == null ? void 0 : n.$el) != null ? t : n;
|
|
205
205
|
}
|
|
206
206
|
const an = no ? window : void 0;
|
|
207
|
-
function
|
|
207
|
+
function en(...e) {
|
|
208
208
|
let t, n, r, i;
|
|
209
209
|
if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([n, r, i] = e, t = an) : [t, n, r, i] = e, !t)
|
|
210
210
|
return hl;
|
|
211
211
|
Array.isArray(n) || (n = [n]), Array.isArray(r) || (r = [r]);
|
|
212
212
|
const a = [], s = () => {
|
|
213
213
|
a.forEach((f) => f()), a.length = 0;
|
|
214
|
-
}, o = (f, c, d, g) => (f.addEventListener(c, d, g), () => f.removeEventListener(c, d, g)), u =
|
|
214
|
+
}, o = (f, c, d, g) => (f.addEventListener(c, d, g), () => f.removeEventListener(c, d, g)), u = ye(
|
|
215
215
|
() => [Dr(t), xe(i)],
|
|
216
216
|
([f, c]) => {
|
|
217
217
|
if (s(), !f)
|
|
@@ -229,7 +229,7 @@ function Jt(...e) {
|
|
|
229
229
|
}
|
|
230
230
|
function Sl() {
|
|
231
231
|
const e = P(!1);
|
|
232
|
-
return
|
|
232
|
+
return Vt() && Tt(() => {
|
|
233
233
|
e.value = !0;
|
|
234
234
|
}), e;
|
|
235
235
|
}
|
|
@@ -299,7 +299,7 @@ function Pl(e, t, n, r = {}) {
|
|
|
299
299
|
console.error(T);
|
|
300
300
|
},
|
|
301
301
|
initOnMounted: w
|
|
302
|
-
} = r, p = (f ?
|
|
302
|
+
} = r, p = (f ? Jt : P)(typeof t == "function" ? t() : t);
|
|
303
303
|
if (!n)
|
|
304
304
|
try {
|
|
305
305
|
n = Ol("getDefaultStorage", () => {
|
|
@@ -317,7 +317,7 @@ function Pl(e, t, n, r = {}) {
|
|
|
317
317
|
{ flush: a, deep: s, eventFilter: d }
|
|
318
318
|
);
|
|
319
319
|
return c && o && wl(() => {
|
|
320
|
-
|
|
320
|
+
en(c, "storage", _), en(c, bi, v), w && _();
|
|
321
321
|
}), w || _(), p;
|
|
322
322
|
function C(T) {
|
|
323
323
|
try {
|
|
@@ -413,7 +413,7 @@ function Il(e, t = {}) {
|
|
|
413
413
|
};
|
|
414
414
|
if (no) {
|
|
415
415
|
const v = { capture: (r = t.capture) != null ? r : !0 };
|
|
416
|
-
|
|
416
|
+
en(p, "pointerdown", O, v), en(g, "pointermove", C, v), en(g, "pointerup", b, v);
|
|
417
417
|
}
|
|
418
418
|
return {
|
|
419
419
|
...bl(y),
|
|
@@ -429,7 +429,7 @@ function Dl(e, t, n = {}) {
|
|
|
429
429
|
let a;
|
|
430
430
|
const s = El(() => r && "ResizeObserver" in r), o = () => {
|
|
431
431
|
a && (a.disconnect(), a = void 0);
|
|
432
|
-
}, u = H(() => Array.isArray(e) ? e.map((c) => Dr(c)) : [Dr(e)]), l =
|
|
432
|
+
}, u = H(() => Array.isArray(e) ? e.map((c) => Dr(c)) : [Dr(e)]), l = ye(
|
|
433
433
|
u,
|
|
434
434
|
(c) => {
|
|
435
435
|
if (o(), s.value && r) {
|
|
@@ -456,7 +456,7 @@ function io(e, t, n, r = {}) {
|
|
|
456
456
|
deep: f = !1,
|
|
457
457
|
defaultValue: c,
|
|
458
458
|
shouldEmit: d
|
|
459
|
-
} = r, g =
|
|
459
|
+
} = r, g = Vt(), w = n || (g == null ? void 0 : g.emit) || ((i = g == null ? void 0 : g.$emit) == null ? void 0 : i.bind(g)) || ((s = (a = g == null ? void 0 : g.proxy) == null ? void 0 : a.$emit) == null ? void 0 : s.bind(g == null ? void 0 : g.proxy));
|
|
460
460
|
let p = l;
|
|
461
461
|
t || (t = "modelValue"), p = p || `update:${t.toString()}`;
|
|
462
462
|
const y = (h) => o ? typeof o == "function" ? o(h) : Tl(h) : h, E = () => cl(e[t]) ? y(e[t]) : c, m = (h) => {
|
|
@@ -465,12 +465,12 @@ function io(e, t, n, r = {}) {
|
|
|
465
465
|
if (u) {
|
|
466
466
|
const h = E(), O = P(h);
|
|
467
467
|
let C = !1;
|
|
468
|
-
return
|
|
468
|
+
return ye(
|
|
469
469
|
() => e[t],
|
|
470
470
|
(b) => {
|
|
471
471
|
C || (C = !0, O.value = y(b), Ge(() => C = !1));
|
|
472
472
|
}
|
|
473
|
-
),
|
|
473
|
+
), ye(
|
|
474
474
|
O,
|
|
475
475
|
(b) => {
|
|
476
476
|
!C && (b !== e[t] || f) && m(b);
|
|
@@ -516,7 +516,7 @@ const [Nl] = bn("drag-drawer"), Rl = $e({
|
|
|
516
516
|
const n = P(null), r = io(e, "visible", t), i = P(e.width), a = P(!1), s = () => r.value = !1, o = () => e.getContainer(), u = o(), l = 500, f = () => {
|
|
517
517
|
i.value = a.value ? e.width : "100%", a.value = !a.value;
|
|
518
518
|
};
|
|
519
|
-
return
|
|
519
|
+
return ye(r, (d) => {
|
|
520
520
|
d || (a.value = !1, i.value = e.width);
|
|
521
521
|
}), {
|
|
522
522
|
show: r,
|
|
@@ -527,14 +527,10 @@ const [Nl] = bn("drag-drawer"), Rl = $e({
|
|
|
527
527
|
handleClose: s,
|
|
528
528
|
toggleFullScreen: f,
|
|
529
529
|
handleMouseDown: (d) => {
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
if (g == !1)
|
|
535
|
-
return;
|
|
536
|
-
const h = E.clientX - w, O = typeof p == "number" ? p - h : window.innerWidth - E.x;
|
|
537
|
-
i.value = Math.min(O < l ? l : O, y);
|
|
530
|
+
const g = d.clientX, w = i.value, p = (u == null ? void 0 : u.clientWidth) || document.body.clientWidth;
|
|
531
|
+
document.body.classList.add("disable-select-in-dragging"), window.onmousemove = function(y) {
|
|
532
|
+
const m = y.clientX - g, h = typeof w == "number" ? w - m : window.innerWidth - y.x;
|
|
533
|
+
i.value = Math.min(h < l ? l : h, p);
|
|
538
534
|
}, window.onmouseup = () => {
|
|
539
535
|
window.onmousemove = null, document.body.classList.remove("disable-select-in-dragging");
|
|
540
536
|
};
|
|
@@ -552,7 +548,6 @@ function Ll(e, t, n, r, i, a) {
|
|
|
552
548
|
ref: "dragDrawer",
|
|
553
549
|
class: "drag-drawer-warpper",
|
|
554
550
|
placement: "right",
|
|
555
|
-
title: e.title,
|
|
556
551
|
mask: !1,
|
|
557
552
|
width: e.actualWidth,
|
|
558
553
|
"get-container": e.getContainerFn,
|
|
@@ -562,6 +557,11 @@ function Ll(e, t, n, r, i, a) {
|
|
|
562
557
|
visible: e.show,
|
|
563
558
|
"onUpdate:visible": t[1] || (t[1] = (d) => e.show = d)
|
|
564
559
|
}, {
|
|
560
|
+
title: M(() => [
|
|
561
|
+
e.title ? (R(), Q(ve, { key: 0 }, [
|
|
562
|
+
Ce(Ee(e.title), 1)
|
|
563
|
+
], 64)) : xt(e.$slots, "title", { key: 1 })
|
|
564
|
+
]),
|
|
565
565
|
extra: M(() => [
|
|
566
566
|
K(l, { style: { transform: "translateY(2px)" } }, {
|
|
567
567
|
default: M(() => [
|
|
@@ -583,15 +583,15 @@ function Ll(e, t, n, r, i, a) {
|
|
|
583
583
|
})
|
|
584
584
|
]),
|
|
585
585
|
default: M(() => [
|
|
586
|
-
|
|
586
|
+
xt(e.$slots, "default"),
|
|
587
587
|
Ne("div", {
|
|
588
588
|
class: "drag-trigger",
|
|
589
589
|
onMousedown: t[0] || (t[0] = (d) => e.handleMouseDown(d))
|
|
590
590
|
}, null, 32),
|
|
591
|
-
e.hideFooter ?
|
|
591
|
+
e.hideFooter ? Te("", !0) : (R(), Q("div", Ml, [
|
|
592
592
|
K(l, { style: { "padding-left": "20px" } }, {
|
|
593
593
|
default: M(() => [
|
|
594
|
-
|
|
594
|
+
xt(e.$slots, "footBtn"),
|
|
595
595
|
K(f, { onClick: e.handleClose }, {
|
|
596
596
|
default: M(() => [
|
|
597
597
|
Ce("关闭")
|
|
@@ -604,7 +604,7 @@ function Ll(e, t, n, r, i, a) {
|
|
|
604
604
|
]))
|
|
605
605
|
]),
|
|
606
606
|
_: 3
|
|
607
|
-
}, 8, ["
|
|
607
|
+
}, 8, ["width", "get-container", "visible"]);
|
|
608
608
|
}
|
|
609
609
|
const kl = /* @__PURE__ */ Qe(Rl, [["render", Ll]]), xl = wn(kl), [Fl] = bn("page-renderer-form-modal"), jl = $e({
|
|
610
610
|
name: Fl,
|
|
@@ -645,7 +645,7 @@ const kl = /* @__PURE__ */ Qe(Rl, [["render", Ll]]), xl = wn(kl), [Fl] = bn("pag
|
|
|
645
645
|
p && p.length && je.warn((y = p[0]) == null ? void 0 : y.errors.join("、"));
|
|
646
646
|
});
|
|
647
647
|
};
|
|
648
|
-
|
|
648
|
+
ye(i, (c) => {
|
|
649
649
|
c && Ge(() => {
|
|
650
650
|
const d = document.querySelector(".ant-modal-root"), g = d == null ? void 0 : d.querySelector(".ant-modal-header"), w = d == null ? void 0 : d.querySelector(".ant-modal");
|
|
651
651
|
g.style.cursor = "move";
|
|
@@ -690,7 +690,7 @@ function Bl(e, t, n, r, i, a) {
|
|
|
690
690
|
onCancel: e.closeModal
|
|
691
691
|
}), {
|
|
692
692
|
title: M(() => [
|
|
693
|
-
Ne("span", null,
|
|
693
|
+
Ne("span", null, Ee(e.form.title), 1)
|
|
694
694
|
]),
|
|
695
695
|
footer: M(() => {
|
|
696
696
|
var l;
|
|
@@ -703,7 +703,7 @@ function Bl(e, t, n, r, i, a) {
|
|
|
703
703
|
default: M(() => {
|
|
704
704
|
var c;
|
|
705
705
|
return [
|
|
706
|
-
Ce(
|
|
706
|
+
Ce(Ee(((c = e.form.modalProps) == null ? void 0 : c.cancelText) || "取消"), 1)
|
|
707
707
|
];
|
|
708
708
|
}),
|
|
709
709
|
_: 1
|
|
@@ -717,15 +717,15 @@ function Bl(e, t, n, r, i, a) {
|
|
|
717
717
|
default: M(() => {
|
|
718
718
|
var c;
|
|
719
719
|
return [
|
|
720
|
-
Ce(
|
|
720
|
+
Ce(Ee(((c = e.form.modalProps) == null ? void 0 : c.okText) || "确定"), 1)
|
|
721
721
|
];
|
|
722
722
|
}),
|
|
723
723
|
_: 1
|
|
724
|
-
}, 8, ["onClick", "loading"])) :
|
|
724
|
+
}, 8, ["onClick", "loading"])) : Te("", !0)
|
|
725
725
|
];
|
|
726
726
|
}),
|
|
727
727
|
_: 1
|
|
728
|
-
})) :
|
|
728
|
+
})) : Te("", !0)
|
|
729
729
|
];
|
|
730
730
|
}),
|
|
731
731
|
default: M(() => [
|
|
@@ -737,7 +737,7 @@ function Bl(e, t, n, r, i, a) {
|
|
|
737
737
|
modalConfig: e.modalConfig,
|
|
738
738
|
"onUpdate:modalConfig": t[0] || (t[0] = (l) => e.modalConfig = l),
|
|
739
739
|
ref: "currentForm"
|
|
740
|
-
}), null, 16, ["rows", "extra-data", "modalConfig"])) : (R(),
|
|
740
|
+
}), null, 16, ["rows", "extra-data", "modalConfig"])) : (R(), Q("span", zl, "form配置中没有为【" + Ee(e.form.title) + "】事件提供组件", 1))
|
|
741
741
|
]),
|
|
742
742
|
_: 1
|
|
743
743
|
}, 16, ["visible", "get-container", "mask-style", "onCancel"]);
|
|
@@ -1025,7 +1025,7 @@ var Ei = {
|
|
|
1025
1025
|
zoomed: null,
|
|
1026
1026
|
play: null,
|
|
1027
1027
|
stop: null
|
|
1028
|
-
}, Hl = '<div class="viewer-container" tabindex="-1" touch-action="none"><div class="viewer-canvas"></div><div class="viewer-footer"><div class="viewer-title"></div><div class="viewer-toolbar"></div><div class="viewer-navbar"><ul class="viewer-list" role="navigation"></ul></div></div><div class="viewer-tooltip" role="alert" aria-hidden="true"></div><div class="viewer-button" data-viewer-action="mix" role="button"></div><div class="viewer-player"></div></div>', er = typeof window < "u" && typeof window.document < "u", st = er ? window : {},
|
|
1028
|
+
}, Hl = '<div class="viewer-container" tabindex="-1" touch-action="none"><div class="viewer-canvas"></div><div class="viewer-footer"><div class="viewer-title"></div><div class="viewer-toolbar"></div><div class="viewer-navbar"><ul class="viewer-list" role="navigation"></ul></div></div><div class="viewer-tooltip" role="alert" aria-hidden="true"></div><div class="viewer-button" data-viewer-action="mix" role="button"></div><div class="viewer-player"></div></div>', er = typeof window < "u" && typeof window.document < "u", st = er ? window : {}, Ft = er && st.document.documentElement ? "ontouchstart" in st.document.documentElement : !1, Gr = er ? "PointerEvent" in st : !1, Z = "viewer", jn = "move", so = "switch", Zt = "zoom", In = "".concat(Z, "-active"), Gl = "".concat(Z, "-close"), zn = "".concat(Z, "-fade"), Rr = "".concat(Z, "-fixed"), ql = "".concat(Z, "-fullscreen"), Ti = "".concat(Z, "-fullscreen-exit"), vt = "".concat(Z, "-hide"), Xl = "".concat(Z, "-hide-md-down"), Ql = "".concat(Z, "-hide-sm-down"), Zl = "".concat(Z, "-hide-xs-down"), Be = "".concat(Z, "-in"), tn = "".concat(Z, "-invisible"), jt = "".concat(Z, "-loading"), Jl = "".concat(Z, "-move"), Ci = "".concat(Z, "-open"), It = "".concat(Z, "-show"), be = "".concat(Z, "-transition"), Kt = "click", Mr = "dblclick", _i = "dragstart", Oi = "focusin", Ai = "keydown", Ue = "load", bt = "error", eu = Ft ? "touchend touchcancel" : "mouseup", tu = Ft ? "touchmove" : "mousemove", nu = Ft ? "touchstart" : "mousedown", $i = Gr ? "pointerdown" : nu, Pi = Gr ? "pointermove" : tu, Ii = Gr ? "pointerup pointercancel" : eu, Di = "resize", Ve = "transitionend", Ni = "wheel", Ri = "ready", Mi = "show", Li = "shown", ki = "hide", xi = "hidden", Fi = "view", on = "viewed", ji = "move", zi = "moved", Bi = "rotate", Ki = "rotated", Ui = "scale", Yi = "scaled", Wi = "zoom", Vi = "zoomed", Hi = "play", Gi = "stop", Vn = "".concat(Z, "Action"), qr = /\s\s*/, Dn = ["zoom-in", "zoom-out", "one-to-one", "reset", "prev", "play", "next", "rotate-left", "rotate-right", "flip-horizontal", "flip-vertical"];
|
|
1029
1029
|
function sn(e) {
|
|
1030
1030
|
return typeof e == "string";
|
|
1031
1031
|
}
|
|
@@ -1036,12 +1036,12 @@ function me(e) {
|
|
|
1036
1036
|
function Mt(e) {
|
|
1037
1037
|
return typeof e > "u";
|
|
1038
1038
|
}
|
|
1039
|
-
function
|
|
1039
|
+
function Ut(e) {
|
|
1040
1040
|
return Nr(e) === "object" && e !== null;
|
|
1041
1041
|
}
|
|
1042
1042
|
var iu = Object.prototype.hasOwnProperty;
|
|
1043
1043
|
function Lt(e) {
|
|
1044
|
-
if (!
|
|
1044
|
+
if (!Ut(e))
|
|
1045
1045
|
return !1;
|
|
1046
1046
|
try {
|
|
1047
1047
|
var t = e.constructor, n = t.prototype;
|
|
@@ -1060,7 +1060,7 @@ function fe(e, t) {
|
|
|
1060
1060
|
for (r = 0; r < n && t.call(e, e[r], r, e) !== !1; r += 1)
|
|
1061
1061
|
;
|
|
1062
1062
|
} else
|
|
1063
|
-
|
|
1063
|
+
Ut(e) && Object.keys(e).forEach(function(i) {
|
|
1064
1064
|
t.call(e, e[i], i, e);
|
|
1065
1065
|
});
|
|
1066
1066
|
return e;
|
|
@@ -1068,8 +1068,8 @@ function fe(e, t) {
|
|
|
1068
1068
|
var ze = Object.assign || function(t) {
|
|
1069
1069
|
for (var n = arguments.length, r = new Array(n > 1 ? n - 1 : 0), i = 1; i < n; i++)
|
|
1070
1070
|
r[i - 1] = arguments[i];
|
|
1071
|
-
return
|
|
1072
|
-
|
|
1071
|
+
return Ut(t) && r.length > 0 && r.forEach(function(a) {
|
|
1072
|
+
Ut(a) && Object.keys(a).forEach(function(s) {
|
|
1073
1073
|
t[s] = a[s];
|
|
1074
1074
|
});
|
|
1075
1075
|
}), t;
|
|
@@ -1133,10 +1133,10 @@ function Xr(e) {
|
|
|
1133
1133
|
return e.replace(su, "$1-$2").toLowerCase();
|
|
1134
1134
|
}
|
|
1135
1135
|
function kt(e, t) {
|
|
1136
|
-
return
|
|
1136
|
+
return Ut(e[t]) ? e[t] : e.dataset ? e.dataset[t] : e.getAttribute("data-".concat(Xr(t)));
|
|
1137
1137
|
}
|
|
1138
1138
|
function Lr(e, t, n) {
|
|
1139
|
-
|
|
1139
|
+
Ut(n) ? e[t] = n : e.dataset ? e.dataset[t] = n : e.setAttribute("data-".concat(Xr(t)), n);
|
|
1140
1140
|
}
|
|
1141
1141
|
var lo = function() {
|
|
1142
1142
|
var e = !1;
|
|
@@ -1306,17 +1306,17 @@ var du = {
|
|
|
1306
1306
|
}
|
|
1307
1307
|
}), this.items = a, fe(a, function(s) {
|
|
1308
1308
|
var o = s.firstElementChild, u, l;
|
|
1309
|
-
Lr(o, "filled", !0), r.loading && W(s,
|
|
1310
|
-
le(o, bt, l), r.loading && te(s,
|
|
1309
|
+
Lr(o, "filled", !0), r.loading && W(s, jt), G(o, Ue, u = function(c) {
|
|
1310
|
+
le(o, bt, l), r.loading && te(s, jt), t.loadImage(c);
|
|
1311
1311
|
}, {
|
|
1312
1312
|
once: !0
|
|
1313
1313
|
}), G(o, bt, l = function() {
|
|
1314
|
-
le(o, Ue, u), r.loading && te(s,
|
|
1314
|
+
le(o, Ue, u), r.loading && te(s, jt);
|
|
1315
1315
|
}, {
|
|
1316
1316
|
once: !0
|
|
1317
1317
|
});
|
|
1318
1318
|
}), r.transition && G(n, on, function() {
|
|
1319
|
-
W(i,
|
|
1319
|
+
W(i, be);
|
|
1320
1320
|
}, {
|
|
1321
1321
|
once: !0
|
|
1322
1322
|
});
|
|
@@ -1334,7 +1334,7 @@ var du = {
|
|
|
1334
1334
|
},
|
|
1335
1335
|
resetList: function() {
|
|
1336
1336
|
var t = this.list;
|
|
1337
|
-
t.innerHTML = "", te(t,
|
|
1337
|
+
t.innerHTML = "", te(t, be), He(t, Bn({
|
|
1338
1338
|
translateX: 0
|
|
1339
1339
|
}));
|
|
1340
1340
|
},
|
|
@@ -1372,7 +1372,7 @@ var du = {
|
|
|
1372
1372
|
marginLeft: i.x,
|
|
1373
1373
|
marginTop: i.y
|
|
1374
1374
|
}, Bn(i))), t)
|
|
1375
|
-
if ((this.viewing || this.moving || this.rotating || this.scaling || this.zooming) && this.options.transition && Nt(r,
|
|
1375
|
+
if ((this.viewing || this.moving || this.rotating || this.scaling || this.zooming) && this.options.transition && Nt(r, be)) {
|
|
1376
1376
|
var a = function() {
|
|
1377
1377
|
n.imageRendering = !1, t();
|
|
1378
1378
|
};
|
|
@@ -1393,14 +1393,14 @@ var du = {
|
|
|
1393
1393
|
}, hu = {
|
|
1394
1394
|
bind: function() {
|
|
1395
1395
|
var t = this.options, n = this.viewer, r = this.canvas, i = this.element.ownerDocument;
|
|
1396
|
-
G(n,
|
|
1396
|
+
G(n, Kt, this.onClick = this.click.bind(this)), G(n, _i, this.onDragStart = this.dragstart.bind(this)), G(r, $i, this.onPointerDown = this.pointerdown.bind(this)), G(i, Pi, this.onPointerMove = this.pointermove.bind(this)), G(i, Ii, this.onPointerUp = this.pointerup.bind(this)), G(i, Ai, this.onKeyDown = this.keydown.bind(this)), G(window, Di, this.onResize = this.resize.bind(this)), t.zoomable && t.zoomOnWheel && G(n, Ni, this.onWheel = this.wheel.bind(this), {
|
|
1397
1397
|
passive: !1,
|
|
1398
1398
|
capture: !0
|
|
1399
1399
|
}), t.toggleOnDblclick && G(r, Mr, this.onDblclick = this.dblclick.bind(this));
|
|
1400
1400
|
},
|
|
1401
1401
|
unbind: function() {
|
|
1402
1402
|
var t = this.options, n = this.viewer, r = this.canvas, i = this.element.ownerDocument;
|
|
1403
|
-
le(n,
|
|
1403
|
+
le(n, Kt, this.onClick), le(n, _i, this.onDragStart), le(r, $i, this.onPointerDown), le(i, Pi, this.onPointerMove), le(i, Ii, this.onPointerUp), le(i, Ai, this.onKeyDown), le(window, Di, this.onResize), t.zoomable && t.zoomOnWheel && le(n, Ni, this.onWheel, {
|
|
1404
1404
|
passive: !1,
|
|
1405
1405
|
capture: !0
|
|
1406
1406
|
}), t.toggleOnDblclick && le(r, Mr, this.onDblclick);
|
|
@@ -1408,7 +1408,7 @@ var du = {
|
|
|
1408
1408
|
}, pu = {
|
|
1409
1409
|
click: function(t) {
|
|
1410
1410
|
var n = this.options, r = this.imageData, i = t.target, a = kt(i, Vn);
|
|
1411
|
-
switch (!a && i.localName === "img" && i.parentElement.localName === "li" && (i = i.parentElement, a = kt(i, Vn)),
|
|
1411
|
+
switch (!a && i.localName === "img" && i.parentElement.localName === "li" && (i = i.parentElement, a = kt(i, Vn)), Ft && t.isTrusted && i === this.canvas && clearTimeout(this.clickCanvasTimeout), a) {
|
|
1412
1412
|
case "mix":
|
|
1413
1413
|
this.played ? this.stop() : n.inline ? this.fulled ? this.exit() : this.full() : this.hide();
|
|
1414
1414
|
break;
|
|
@@ -1456,14 +1456,14 @@ var du = {
|
|
|
1456
1456
|
}
|
|
1457
1457
|
},
|
|
1458
1458
|
dblclick: function(t) {
|
|
1459
|
-
t.preventDefault(), this.viewed && t.target === this.image && (
|
|
1459
|
+
t.preventDefault(), this.viewed && t.target === this.image && (Ft && t.isTrusted && clearTimeout(this.doubleClickImageTimeout), this.toggle(t.isTrusted ? t : t.detail && t.detail.originalEvent));
|
|
1460
1460
|
},
|
|
1461
1461
|
load: function() {
|
|
1462
1462
|
var t = this;
|
|
1463
1463
|
this.timeout && (clearTimeout(this.timeout), this.timeout = !1);
|
|
1464
1464
|
var n = this.element, r = this.options, i = this.image, a = this.index, s = this.viewerData;
|
|
1465
|
-
te(i,
|
|
1466
|
-
ln(i, Jl, r.movable), ln(i,
|
|
1465
|
+
te(i, tn), r.loading && te(this.canvas, jt), i.style.cssText = "height:0;" + "margin-left:".concat(s.width / 2, "px;") + "margin-top:".concat(s.height / 2, "px;") + "max-width:none!important;position:relative;width:0;", this.initImage(function() {
|
|
1466
|
+
ln(i, Jl, r.movable), ln(i, be, r.transition), t.renderImage(function() {
|
|
1467
1467
|
t.viewed = !0, t.viewing = !1, se(r.viewed) && G(n, on, r.viewed, {
|
|
1468
1468
|
once: !0
|
|
1469
1469
|
}), Se(n, on, {
|
|
@@ -1536,7 +1536,7 @@ var du = {
|
|
|
1536
1536
|
r[o.identifier] = Rn(o);
|
|
1537
1537
|
}) : r[t.pointerId || 0] = Rn(t);
|
|
1538
1538
|
var s = n.movable ? jn : !1;
|
|
1539
|
-
n.zoomOnTouch && n.zoomable && Object.keys(r).length > 1 ? s =
|
|
1539
|
+
n.zoomOnTouch && n.zoomable && Object.keys(r).length > 1 ? s = Zt : n.slideOnTouch && (t.pointerType === "touch" || t.type === "touchstart") && this.isSwitchable() && (s = so), n.transition && (s === jn || s === Zt) && te(this.image, be), this.action = s;
|
|
1540
1540
|
}
|
|
1541
1541
|
},
|
|
1542
1542
|
pointermove: function(t) {
|
|
@@ -1549,14 +1549,14 @@ var du = {
|
|
|
1549
1549
|
var n = this, r = this.options, i = this.action, a = this.pointers, s;
|
|
1550
1550
|
t.changedTouches ? fe(t.changedTouches, function(o) {
|
|
1551
1551
|
s = a[o.identifier], delete a[o.identifier];
|
|
1552
|
-
}) : (s = a[t.pointerId || 0], delete a[t.pointerId || 0]), i && (t.preventDefault(), r.transition && (i === jn || i ===
|
|
1552
|
+
}) : (s = a[t.pointerId || 0], delete a[t.pointerId || 0]), i && (t.preventDefault(), r.transition && (i === jn || i === Zt) && W(this.image, be), this.action = !1, Ft && i !== Zt && s && Date.now() - s.timeStamp < 500 && (clearTimeout(this.clickCanvasTimeout), clearTimeout(this.doubleClickImageTimeout), r.toggleOnDblclick && this.viewed && t.target === this.image ? this.imageClicked ? (this.imageClicked = !1, this.doubleClickImageTimeout = setTimeout(function() {
|
|
1553
1553
|
Se(n.image, Mr, {
|
|
1554
1554
|
originalEvent: t
|
|
1555
1555
|
});
|
|
1556
1556
|
}, 50)) : (this.imageClicked = !0, this.doubleClickImageTimeout = setTimeout(function() {
|
|
1557
1557
|
n.imageClicked = !1;
|
|
1558
1558
|
}, 500)) : (this.imageClicked = !1, r.backdrop && r.backdrop !== "static" && t.target === this.canvas && (this.clickCanvasTimeout = setTimeout(function() {
|
|
1559
|
-
Se(n.canvas,
|
|
1559
|
+
Se(n.canvas, Kt, {
|
|
1560
1560
|
originalEvent: t
|
|
1561
1561
|
});
|
|
1562
1562
|
}, 50)))));
|
|
@@ -1610,7 +1610,7 @@ var du = {
|
|
|
1610
1610
|
abort: function() {
|
|
1611
1611
|
le(i, Ve, a), te(i, Be);
|
|
1612
1612
|
}
|
|
1613
|
-
}, W(i,
|
|
1613
|
+
}, W(i, be), i.initialOffsetWidth = i.offsetWidth, G(i, Ve, a, {
|
|
1614
1614
|
once: !0
|
|
1615
1615
|
}), W(i, Be);
|
|
1616
1616
|
} else
|
|
@@ -1638,13 +1638,13 @@ var du = {
|
|
|
1638
1638
|
var u = function f(c) {
|
|
1639
1639
|
c && c.target === a && (le(a, Ve, f), t.hidden());
|
|
1640
1640
|
}, l = function() {
|
|
1641
|
-
Nt(a,
|
|
1641
|
+
Nt(a, be) ? (G(a, Ve, u), te(a, Be)) : o();
|
|
1642
1642
|
};
|
|
1643
1643
|
this.transitioning = {
|
|
1644
1644
|
abort: function() {
|
|
1645
|
-
t.viewed && Nt(s,
|
|
1645
|
+
t.viewed && Nt(s, be) ? le(s, Ve, l) : Nt(a, be) && le(a, Ve, u);
|
|
1646
1646
|
}
|
|
1647
|
-
}, this.viewed && Nt(s,
|
|
1647
|
+
}, this.viewed && Nt(s, be) ? (G(s, Ve, l, {
|
|
1648
1648
|
once: !0
|
|
1649
1649
|
}), this.zoomTo(0, !1, null, null, !0)) : l();
|
|
1650
1650
|
} else
|
|
@@ -1676,7 +1676,7 @@ var du = {
|
|
|
1676
1676
|
}) === !1 || !this.isShown || this.hiding || this.played)
|
|
1677
1677
|
return this;
|
|
1678
1678
|
var d = this.items[this.index];
|
|
1679
|
-
d && (te(d, In), d.removeAttribute("aria-selected")), W(o, In), o.setAttribute("aria-selected", !0), i.focus && o.focus(), this.image = c, this.viewed = !1, this.index = n, this.imageData = {}, W(c,
|
|
1679
|
+
d && (te(d, In), d.removeAttribute("aria-selected")), W(o, In), o.setAttribute("aria-selected", !0), i.focus && o.focus(), this.image = c, this.viewed = !1, this.index = n, this.imageData = {}, W(c, tn), i.loading && W(s, jt), s.innerHTML = "", s.appendChild(c), this.renderList(), a.innerHTML = "";
|
|
1680
1680
|
var g = function() {
|
|
1681
1681
|
var E = t.imageData, m = Array.isArray(i.title) ? i.title[1] : i.title;
|
|
1682
1682
|
a.innerHTML = ou(se(m) ? m.call(t, c, E) : "".concat(f, " (").concat(E.naturalWidth, " × ").concat(E.naturalHeight, ")"));
|
|
@@ -1692,11 +1692,11 @@ var du = {
|
|
|
1692
1692
|
}, {
|
|
1693
1693
|
once: !0
|
|
1694
1694
|
}), G(c, bt, p = function() {
|
|
1695
|
-
le(c, Ue, w), t.timeout && (clearTimeout(t.timeout), t.timeout = !1), te(c,
|
|
1695
|
+
le(c, Ue, w), t.timeout && (clearTimeout(t.timeout), t.timeout = !1), te(c, tn), i.loading && te(t.canvas, jt);
|
|
1696
1696
|
}, {
|
|
1697
1697
|
once: !0
|
|
1698
1698
|
}), this.timeout && clearTimeout(this.timeout), this.timeout = setTimeout(function() {
|
|
1699
|
-
te(c,
|
|
1699
|
+
te(c, tn), t.timeout = !1;
|
|
1700
1700
|
}, 1e3)), this;
|
|
1701
1701
|
},
|
|
1702
1702
|
/**
|
|
@@ -1944,7 +1944,7 @@ var du = {
|
|
|
1944
1944
|
var a = this.player, s = this.loadImage.bind(this), o = [], u = 0, l = 0;
|
|
1945
1945
|
if (this.played = !0, this.onLoadWhenPlay = s, n && this.requestFullscreen(n), W(a, It), fe(this.items, function(d, g) {
|
|
1946
1946
|
var w = d.querySelector("img"), p = document.createElement("img");
|
|
1947
|
-
p.src = kt(w, "originalUrl"), p.alt = w.getAttribute("alt"), p.referrerPolicy = w.referrerPolicy, u += 1, W(p, zn), ln(p,
|
|
1947
|
+
p.src = kt(w, "originalUrl"), p.alt = w.getAttribute("alt"), p.referrerPolicy = w.referrerPolicy, u += 1, W(p, zn), ln(p, be, i.transition), Nt(d, In) && (W(p, Be), l = g), o.push(p), G(p, Ue, s, {
|
|
1948
1948
|
once: !0
|
|
1949
1949
|
}), a.appendChild(p);
|
|
1950
1950
|
}), me(i.interval) && i.interval > 0) {
|
|
@@ -1979,12 +1979,12 @@ var du = {
|
|
|
1979
1979
|
// Enter modal mode (only available in inline mode)
|
|
1980
1980
|
full: function() {
|
|
1981
1981
|
var t = this, n = this.options, r = this.viewer, i = this.image, a = this.list;
|
|
1982
|
-
return !this.isShown || this.played || this.fulled || !n.inline ? this : (this.fulled = !0, this.open(), W(this.button, Ti), n.transition && (te(a,
|
|
1982
|
+
return !this.isShown || this.played || this.fulled || !n.inline ? this : (this.fulled = !0, this.open(), W(this.button, Ti), n.transition && (te(a, be), this.viewed && te(i, be)), W(r, Rr), r.setAttribute("role", "dialog"), r.setAttribute("aria-labelledby", this.title.id), r.setAttribute("aria-modal", !0), r.removeAttribute("style"), He(r, {
|
|
1983
1983
|
zIndex: n.zIndex
|
|
1984
1984
|
}), n.focus && this.enforceFocus(), this.initContainer(), this.viewerData = ze({}, this.containerData), this.renderList(), this.viewed && this.initImage(function() {
|
|
1985
1985
|
t.renderImage(function() {
|
|
1986
1986
|
n.transition && setTimeout(function() {
|
|
1987
|
-
W(i,
|
|
1987
|
+
W(i, be), W(a, be);
|
|
1988
1988
|
}, 0);
|
|
1989
1989
|
});
|
|
1990
1990
|
}), this);
|
|
@@ -1992,12 +1992,12 @@ var du = {
|
|
|
1992
1992
|
// Exit modal mode (only available in inline mode)
|
|
1993
1993
|
exit: function() {
|
|
1994
1994
|
var t = this, n = this.options, r = this.viewer, i = this.image, a = this.list;
|
|
1995
|
-
return !this.isShown || this.played || !this.fulled || !n.inline ? this : (this.fulled = !1, this.close(), te(this.button, Ti), n.transition && (te(a,
|
|
1995
|
+
return !this.isShown || this.played || !this.fulled || !n.inline ? this : (this.fulled = !1, this.close(), te(this.button, Ti), n.transition && (te(a, be), this.viewed && te(i, be)), n.focus && this.clearEnforceFocus(), r.removeAttribute("role"), r.removeAttribute("aria-labelledby"), r.removeAttribute("aria-modal"), te(r, Rr), He(r, {
|
|
1996
1996
|
zIndex: n.zIndexInline
|
|
1997
1997
|
}), this.viewerData = ze({}, this.parentData), this.renderViewer(), this.renderList(), this.viewed && this.initImage(function() {
|
|
1998
1998
|
t.renderImage(function() {
|
|
1999
1999
|
n.transition && setTimeout(function() {
|
|
2000
|
-
W(i,
|
|
2000
|
+
W(i, be), W(a, be);
|
|
2001
2001
|
}, 0);
|
|
2002
2002
|
});
|
|
2003
2003
|
}), this);
|
|
@@ -2005,9 +2005,9 @@ var du = {
|
|
|
2005
2005
|
// Show the current ratio of the image with percentage
|
|
2006
2006
|
tooltip: function() {
|
|
2007
2007
|
var t = this, n = this.options, r = this.tooltipBox, i = this.imageData;
|
|
2008
|
-
return !this.viewed || this.played || !n.tooltip ? this : (r.textContent = "".concat(Math.round(i.ratio * 100), "%"), this.tooltipping ? clearTimeout(this.tooltipping) : n.transition ? (this.fading && Se(r, Ve), W(r, It), W(r, zn), W(r,
|
|
2008
|
+
return !this.viewed || this.played || !n.tooltip ? this : (r.textContent = "".concat(Math.round(i.ratio * 100), "%"), this.tooltipping ? clearTimeout(this.tooltipping) : n.transition ? (this.fading && Se(r, Ve), W(r, It), W(r, zn), W(r, be), r.removeAttribute("aria-hidden"), r.initialOffsetWidth = r.offsetWidth, W(r, Be)) : (W(r, It), r.removeAttribute("aria-hidden")), this.tooltipping = setTimeout(function() {
|
|
2009
2009
|
n.transition ? (G(r, Ve, function() {
|
|
2010
|
-
te(r, It), te(r, zn), te(r,
|
|
2010
|
+
te(r, It), te(r, zn), te(r, be), r.setAttribute("aria-hidden", !0), t.fading = !1;
|
|
2011
2011
|
}, {
|
|
2012
2012
|
once: !0
|
|
2013
2013
|
}), te(r, Be), t.fading = !0) : (te(r, It), r.setAttribute("aria-hidden", !0)), t.tooltipping = !1;
|
|
@@ -2063,7 +2063,7 @@ var du = {
|
|
|
2063
2063
|
// Destroy the viewer
|
|
2064
2064
|
destroy: function() {
|
|
2065
2065
|
var t = this.element, n = this.options;
|
|
2066
|
-
return t[
|
|
2066
|
+
return t[Z] ? (this.destroyed = !0, this.ready ? (this.played && this.stop(), n.inline ? (this.fulled && this.exit(), this.unbind()) : this.isShown ? (this.viewing && (this.imageRendering ? this.imageRendering.abort() : this.imageInitializing && this.imageInitializing.abort()), this.hiding && this.transitioning.abort(), this.hidden()) : this.showing && (this.transitioning.abort(), this.hidden()), this.ready = !1, this.viewer.parentNode.removeChild(this.viewer)) : n.inline && (this.delaying ? this.delaying.abort() : this.initializing && this.initializing.abort()), n.inline || le(t, Kt, this.onStart), t[Z] = void 0, this) : this;
|
|
2067
2067
|
}
|
|
2068
2068
|
}, mu = {
|
|
2069
2069
|
getImageURL: function(t) {
|
|
@@ -2128,7 +2128,7 @@ var du = {
|
|
|
2128
2128
|
case jn:
|
|
2129
2129
|
(a !== 0 || s !== 0) && (this.pointerMoved = !0, this.move(a, s, t));
|
|
2130
2130
|
break;
|
|
2131
|
-
case
|
|
2131
|
+
case Zt:
|
|
2132
2132
|
this.zoom(cu(r), !1, null, t);
|
|
2133
2133
|
break;
|
|
2134
2134
|
case so: {
|
|
@@ -2162,12 +2162,12 @@ var du = {
|
|
|
2162
2162
|
key: "init",
|
|
2163
2163
|
value: function() {
|
|
2164
2164
|
var n = this, r = this.element, i = this.options;
|
|
2165
|
-
if (!r[
|
|
2166
|
-
r[
|
|
2165
|
+
if (!r[Z]) {
|
|
2166
|
+
r[Z] = this, i.focus && !i.keyboard && (i.focus = !1);
|
|
2167
2167
|
var a = r.localName === "img", s = [];
|
|
2168
2168
|
if (fe(a ? [r] : r.querySelectorAll("img"), function(l) {
|
|
2169
2169
|
se(i.filter) ? i.filter.call(n, l) && s.push(l) : n.getImageURL(l) && s.push(l);
|
|
2170
|
-
}), this.isImg = a, this.length = s.length, this.images = s, this.initBody(), Mt(document.createElement(
|
|
2170
|
+
}), this.isImg = a, this.length = s.length, this.images = s, this.initBody(), Mt(document.createElement(Z).style.transition) && (i.transition = !1), i.inline) {
|
|
2171
2171
|
var o = 0, u = function() {
|
|
2172
2172
|
if (o += 1, o === n.length) {
|
|
2173
2173
|
var f;
|
|
@@ -2203,7 +2203,7 @@ var du = {
|
|
|
2203
2203
|
}
|
|
2204
2204
|
});
|
|
2205
2205
|
} else
|
|
2206
|
-
G(r,
|
|
2206
|
+
G(r, Kt, this.onStart = function(l) {
|
|
2207
2207
|
var f = l.target;
|
|
2208
2208
|
f.localName === "img" && (!se(i.filter) || i.filter.call(n, f)) && n.view(n.images.indexOf(f));
|
|
2209
2209
|
});
|
|
@@ -2215,8 +2215,8 @@ var du = {
|
|
|
2215
2215
|
if (!this.ready) {
|
|
2216
2216
|
var n = this.element, r = this.options, i = n.parentNode, a = document.createElement("div");
|
|
2217
2217
|
a.innerHTML = Hl;
|
|
2218
|
-
var s = a.querySelector(".".concat(
|
|
2219
|
-
if (this.parent = i, this.viewer = s, this.title = o, this.toolbar = u, this.navbar = l, this.button = f, this.canvas = c, this.footer = s.querySelector(".".concat(
|
|
2218
|
+
var s = a.querySelector(".".concat(Z, "-container")), o = s.querySelector(".".concat(Z, "-title")), u = s.querySelector(".".concat(Z, "-toolbar")), l = s.querySelector(".".concat(Z, "-navbar")), f = s.querySelector(".".concat(Z, "-button")), c = s.querySelector(".".concat(Z, "-canvas"));
|
|
2219
|
+
if (this.parent = i, this.viewer = s, this.title = o, this.toolbar = u, this.navbar = l, this.button = f, this.canvas = c, this.footer = s.querySelector(".".concat(Z, "-footer")), this.tooltipBox = s.querySelector(".".concat(Z, "-tooltip")), this.player = s.querySelector(".".concat(Z, "-player")), this.list = s.querySelector(".".concat(Z, "-list")), s.id = "".concat(Z).concat(this.id), o.id = "".concat(Z, "Title").concat(this.id), W(o, r.title ? Nn(Array.isArray(r.title) ? r.title[0] : r.title) : vt), W(l, r.navbar ? Nn(r.navbar) : vt), ln(f, vt, !r.button), r.keyboard && f.setAttribute("tabindex", 0), r.backdrop && (W(s, "".concat(Z, "-backdrop")), !r.inline && r.backdrop !== "static" && Lr(c, Vn, "hide")), sn(r.className) && r.className && r.className.split(qr).forEach(function(h) {
|
|
2220
2220
|
W(s, h);
|
|
2221
2221
|
}), r.toolbar) {
|
|
2222
2222
|
var d = document.createElement("ul"), g = Lt(r.toolbar), w = Dn.slice(0, 3), p = Dn.slice(7, 9), y = Dn.slice(9);
|
|
@@ -2224,14 +2224,14 @@ var du = {
|
|
|
2224
2224
|
var C = g && Lt(h), b = g ? Xr(O) : h, v = C && !Mt(h.show) ? h.show : h;
|
|
2225
2225
|
if (!(!v || !r.zoomable && w.indexOf(b) !== -1 || !r.rotatable && p.indexOf(b) !== -1 || !r.scalable && y.indexOf(b) !== -1)) {
|
|
2226
2226
|
var _ = C && !Mt(h.size) ? h.size : h, T = C && !Mt(h.click) ? h.click : h, S = document.createElement("li");
|
|
2227
|
-
r.keyboard && S.setAttribute("tabindex", 0), S.setAttribute("role", "button"), W(S, "".concat(
|
|
2227
|
+
r.keyboard && S.setAttribute("tabindex", 0), S.setAttribute("role", "button"), W(S, "".concat(Z, "-").concat(b)), se(T) || Lr(S, Vn, b), me(v) && W(S, Nn(v)), ["small", "large"].indexOf(_) !== -1 ? W(S, "".concat(Z, "-").concat(_)) : b === "play" && W(S, "".concat(Z, "-large")), se(T) && G(S, Kt, T), d.appendChild(S);
|
|
2228
2228
|
}
|
|
2229
2229
|
}), u.appendChild(d);
|
|
2230
2230
|
} else
|
|
2231
2231
|
W(u, vt);
|
|
2232
2232
|
if (!r.rotatable) {
|
|
2233
2233
|
var E = u.querySelectorAll('li[class*="rotate"]');
|
|
2234
|
-
W(E,
|
|
2234
|
+
W(E, tn), fe(E, function(h) {
|
|
2235
2235
|
u.appendChild(h);
|
|
2236
2236
|
});
|
|
2237
2237
|
}
|
|
@@ -2284,16 +2284,16 @@ var wu = typeof self == "object" && self && self.Object === Object && self, Su =
|
|
|
2284
2284
|
const Qr = Su;
|
|
2285
2285
|
var Eu = Qr.Symbol;
|
|
2286
2286
|
const Hn = Eu;
|
|
2287
|
-
var ho = Object.prototype, Tu = ho.hasOwnProperty, Cu = ho.toString,
|
|
2287
|
+
var ho = Object.prototype, Tu = ho.hasOwnProperty, Cu = ho.toString, Xt = Hn ? Hn.toStringTag : void 0;
|
|
2288
2288
|
function _u(e) {
|
|
2289
|
-
var t = Tu.call(e,
|
|
2289
|
+
var t = Tu.call(e, Xt), n = e[Xt];
|
|
2290
2290
|
try {
|
|
2291
|
-
e[
|
|
2291
|
+
e[Xt] = void 0;
|
|
2292
2292
|
var r = !0;
|
|
2293
2293
|
} catch {
|
|
2294
2294
|
}
|
|
2295
2295
|
var i = Cu.call(e);
|
|
2296
|
-
return r && (t ? e[
|
|
2296
|
+
return r && (t ? e[Xt] = n : delete e[Xt]), i;
|
|
2297
2297
|
}
|
|
2298
2298
|
var Ou = Object.prototype, Au = Ou.toString;
|
|
2299
2299
|
function $u(e) {
|
|
@@ -2514,9 +2514,9 @@ function ef(e) {
|
|
|
2514
2514
|
return e(t);
|
|
2515
2515
|
};
|
|
2516
2516
|
}
|
|
2517
|
-
var Co = typeof exports == "object" && exports && !exports.nodeType && exports,
|
|
2517
|
+
var Co = typeof exports == "object" && exports && !exports.nodeType && exports, nn = Co && typeof module == "object" && module && !module.nodeType && module, tf = nn && nn.exports === Co, wr = tf && fo.process, nf = function() {
|
|
2518
2518
|
try {
|
|
2519
|
-
var e =
|
|
2519
|
+
var e = nn && nn.require && nn.require("util").types;
|
|
2520
2520
|
return e || wr && wr.binding && wr.binding("util");
|
|
2521
2521
|
} catch {
|
|
2522
2522
|
}
|
|
@@ -2629,15 +2629,15 @@ const Tf = $e({
|
|
|
2629
2629
|
e.rebuild ? s() : o();
|
|
2630
2630
|
}
|
|
2631
2631
|
const l = { deep: !0 };
|
|
2632
|
-
return
|
|
2632
|
+
return ye(() => e.images, () => {
|
|
2633
2633
|
Ge(() => {
|
|
2634
2634
|
u();
|
|
2635
2635
|
});
|
|
2636
|
-
}, l),
|
|
2636
|
+
}, l), ye(() => e.trigger, () => {
|
|
2637
2637
|
Ge(() => {
|
|
2638
2638
|
u();
|
|
2639
2639
|
});
|
|
2640
|
-
}, l),
|
|
2640
|
+
}, l), ye(() => e.options, () => {
|
|
2641
2641
|
Ge(() => {
|
|
2642
2642
|
s();
|
|
2643
2643
|
});
|
|
@@ -2656,8 +2656,8 @@ const Tf = $e({
|
|
|
2656
2656
|
return n;
|
|
2657
2657
|
}, _f = { ref: "root" };
|
|
2658
2658
|
function Of(e, t, n, r, i, a) {
|
|
2659
|
-
return R(),
|
|
2660
|
-
|
|
2659
|
+
return R(), Q("div", _f, [
|
|
2660
|
+
xt(e.$slots, "default", {
|
|
2661
2661
|
images: e.images,
|
|
2662
2662
|
options: e.options
|
|
2663
2663
|
})
|
|
@@ -2682,14 +2682,14 @@ const Af = /* @__PURE__ */ Cf(Tf, [["render", Of]]), $f = { style: { height: "80
|
|
|
2682
2682
|
}, i = P(!1), a = P([]), s = P(0), o = (v) => {
|
|
2683
2683
|
n.value = v, v.view(s.value);
|
|
2684
2684
|
}, u = P(null), { x: l, y: f, isDragging: c } = Il(u), d = P(0), g = P(0), w = P(!1), p = P(0), y = P(0), E = P(0), m = P(0), h = P({ left: 0, right: 0, top: 0, bottom: 0 });
|
|
2685
|
-
|
|
2685
|
+
ye([l, f], () => {
|
|
2686
2686
|
if (!w.value) {
|
|
2687
2687
|
d.value = l.value, g.value = f.value;
|
|
2688
2688
|
const v = document.body.getBoundingClientRect(), _ = u.value.getBoundingClientRect();
|
|
2689
2689
|
h.value.right = v.width - _.width, h.value.bottom = v.height - _.height, E.value = p.value, m.value = y.value;
|
|
2690
2690
|
}
|
|
2691
2691
|
w.value = !0;
|
|
2692
|
-
}),
|
|
2692
|
+
}), ye(c, () => {
|
|
2693
2693
|
c || (w.value = !1);
|
|
2694
2694
|
}), wt(() => {
|
|
2695
2695
|
w.value && (p.value = E.value + Math.min(Math.max(h.value.left, l.value), h.value.right) - d.value, y.value = m.value + Math.min(Math.max(h.value.top, f.value), h.value.bottom) - g.value);
|
|
@@ -2741,7 +2741,7 @@ const Af = /* @__PURE__ */ Cf(Tf, [["render", Of]]), $f = { style: { height: "80
|
|
|
2741
2741
|
}, {
|
|
2742
2742
|
default: M((S) => [
|
|
2743
2743
|
Ne("div", $f, [
|
|
2744
|
-
(R(!0),
|
|
2744
|
+
(R(!0), Q(ve, null, Fe(S.images, (A) => (R(), Q("img", {
|
|
2745
2745
|
style: { opacity: "0" },
|
|
2746
2746
|
src: A,
|
|
2747
2747
|
key: A
|
|
@@ -3059,16 +3059,16 @@ var xf = typeof self == "object" && self && self.Object === Object && self, Ff =
|
|
|
3059
3059
|
const Ze = Ff;
|
|
3060
3060
|
var jf = Ze.Symbol;
|
|
3061
3061
|
const nt = jf;
|
|
3062
|
-
var Do = Object.prototype, zf = Do.hasOwnProperty, Bf = Do.toString,
|
|
3062
|
+
var Do = Object.prototype, zf = Do.hasOwnProperty, Bf = Do.toString, Qt = nt ? nt.toStringTag : void 0;
|
|
3063
3063
|
function Kf(e) {
|
|
3064
|
-
var t = zf.call(e,
|
|
3064
|
+
var t = zf.call(e, Qt), n = e[Qt];
|
|
3065
3065
|
try {
|
|
3066
|
-
e[
|
|
3066
|
+
e[Qt] = void 0;
|
|
3067
3067
|
var r = !0;
|
|
3068
3068
|
} catch {
|
|
3069
3069
|
}
|
|
3070
3070
|
var i = Bf.call(e);
|
|
3071
|
-
return r && (t ? e[
|
|
3071
|
+
return r && (t ? e[Qt] = n : delete e[Qt]), i;
|
|
3072
3072
|
}
|
|
3073
3073
|
var Uf = Object.prototype, Yf = Uf.toString;
|
|
3074
3074
|
function Wf(e) {
|
|
@@ -3082,10 +3082,10 @@ function lt(e) {
|
|
|
3082
3082
|
return e != null && typeof e == "object";
|
|
3083
3083
|
}
|
|
3084
3084
|
var Gf = "[object Symbol]";
|
|
3085
|
-
function
|
|
3085
|
+
function Yt(e) {
|
|
3086
3086
|
return typeof e == "symbol" || lt(e) && Ct(e) == Gf;
|
|
3087
3087
|
}
|
|
3088
|
-
function
|
|
3088
|
+
function zt(e, t) {
|
|
3089
3089
|
for (var n = -1, r = e == null ? 0 : e.length, i = Array(r); ++n < r; )
|
|
3090
3090
|
i[n] = t(e[n], n, e);
|
|
3091
3091
|
return i;
|
|
@@ -3097,8 +3097,8 @@ function No(e) {
|
|
|
3097
3097
|
if (typeof e == "string")
|
|
3098
3098
|
return e;
|
|
3099
3099
|
if (Ae(e))
|
|
3100
|
-
return
|
|
3101
|
-
if (
|
|
3100
|
+
return zt(e, No) + "";
|
|
3101
|
+
if (Yt(e))
|
|
3102
3102
|
return aa ? aa.call(e) : "";
|
|
3103
3103
|
var t = e + "";
|
|
3104
3104
|
return t == "0" && 1 / e == -Xf ? "-0" : t;
|
|
@@ -3121,7 +3121,7 @@ var oa = 0 / 0, td = /^[-+]0x[0-9a-f]+$/i, nd = /^0b[01]+$/i, rd = /^0o[0-7]+$/i
|
|
|
3121
3121
|
function kr(e) {
|
|
3122
3122
|
if (typeof e == "number")
|
|
3123
3123
|
return e;
|
|
3124
|
-
if (
|
|
3124
|
+
if (Yt(e))
|
|
3125
3125
|
return oa;
|
|
3126
3126
|
if (Ye(e)) {
|
|
3127
3127
|
var t = typeof e.valueOf == "function" ? e.valueOf() : e;
|
|
@@ -3289,14 +3289,14 @@ var zd = 9007199254740991;
|
|
|
3289
3289
|
function ii(e) {
|
|
3290
3290
|
return typeof e == "number" && e > -1 && e % 1 == 0 && e <= zd;
|
|
3291
3291
|
}
|
|
3292
|
-
function
|
|
3292
|
+
function Ht(e) {
|
|
3293
3293
|
return e != null && ii(e.length) && !Mo(e);
|
|
3294
3294
|
}
|
|
3295
3295
|
function Bd(e, t, n) {
|
|
3296
3296
|
if (!Ye(n))
|
|
3297
3297
|
return !1;
|
|
3298
3298
|
var r = typeof t;
|
|
3299
|
-
return (r == "number" ?
|
|
3299
|
+
return (r == "number" ? Ht(n) && rr(t, n.length) : r == "string" && t in n) ? ir(n[t], e) : !1;
|
|
3300
3300
|
}
|
|
3301
3301
|
var Kd = Object.prototype;
|
|
3302
3302
|
function ai(e) {
|
|
@@ -3334,15 +3334,15 @@ function or(e) {
|
|
|
3334
3334
|
return e(t);
|
|
3335
3335
|
};
|
|
3336
3336
|
}
|
|
3337
|
-
var jo = typeof exports == "object" && exports && !exports.nodeType && exports,
|
|
3337
|
+
var jo = typeof exports == "object" && exports && !exports.nodeType && exports, rn = jo && typeof module == "object" && module && !module.nodeType && module, Th = rn && rn.exports === jo, Er = Th && Io.process, Ch = function() {
|
|
3338
3338
|
try {
|
|
3339
|
-
var e =
|
|
3339
|
+
var e = rn && rn.require && rn.require("util").types;
|
|
3340
3340
|
return e || Er && Er.binding && Er.binding("util");
|
|
3341
3341
|
} catch {
|
|
3342
3342
|
}
|
|
3343
3343
|
}();
|
|
3344
|
-
const
|
|
3345
|
-
var pa =
|
|
3344
|
+
const Wt = Ch;
|
|
3345
|
+
var pa = Wt && Wt.isTypedArray, _h = pa ? or(pa) : Eh;
|
|
3346
3346
|
const zo = _h;
|
|
3347
3347
|
var Oh = Object.prototype, Ah = Oh.hasOwnProperty;
|
|
3348
3348
|
function Bo(e, t) {
|
|
@@ -3371,8 +3371,8 @@ function Nh(e) {
|
|
|
3371
3371
|
Dh.call(e, n) && n != "constructor" && t.push(n);
|
|
3372
3372
|
return t;
|
|
3373
3373
|
}
|
|
3374
|
-
function
|
|
3375
|
-
return
|
|
3374
|
+
function Gt(e) {
|
|
3375
|
+
return Ht(e) ? Bo(e) : Nh(e);
|
|
3376
3376
|
}
|
|
3377
3377
|
function Rh(e) {
|
|
3378
3378
|
var t = [];
|
|
@@ -3391,14 +3391,14 @@ function kh(e) {
|
|
|
3391
3391
|
return n;
|
|
3392
3392
|
}
|
|
3393
3393
|
function oi(e) {
|
|
3394
|
-
return
|
|
3394
|
+
return Ht(e) ? Bo(e, !0) : kh(e);
|
|
3395
3395
|
}
|
|
3396
3396
|
var xh = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, Fh = /^\w*$/;
|
|
3397
3397
|
function si(e, t) {
|
|
3398
3398
|
if (Ae(e))
|
|
3399
3399
|
return !1;
|
|
3400
3400
|
var n = typeof e;
|
|
3401
|
-
return n == "number" || n == "symbol" || n == "boolean" || e == null ||
|
|
3401
|
+
return n == "number" || n == "symbol" || n == "boolean" || e == null || Yt(e) ? !0 : Fh.test(e) || !xh.test(e) || t != null && e in Object(t);
|
|
3402
3402
|
}
|
|
3403
3403
|
var jh = Ot(Object, "create");
|
|
3404
3404
|
const un = jh;
|
|
@@ -3559,7 +3559,7 @@ function ur(e, t) {
|
|
|
3559
3559
|
}
|
|
3560
3560
|
var bp = 1 / 0;
|
|
3561
3561
|
function Sn(e) {
|
|
3562
|
-
if (typeof e == "string" ||
|
|
3562
|
+
if (typeof e == "string" || Yt(e))
|
|
3563
3563
|
return e;
|
|
3564
3564
|
var t = e + "";
|
|
3565
3565
|
return t == "0" && 1 / e == -bp ? "-0" : t;
|
|
@@ -3615,7 +3615,7 @@ et.prototype.get = Tp;
|
|
|
3615
3615
|
et.prototype.has = Cp;
|
|
3616
3616
|
et.prototype.set = Op;
|
|
3617
3617
|
function Ap(e, t) {
|
|
3618
|
-
return e && ar(t,
|
|
3618
|
+
return e && ar(t, Gt(t), e);
|
|
3619
3619
|
}
|
|
3620
3620
|
function $p(e, t) {
|
|
3621
3621
|
return e && ar(t, oi(t), e);
|
|
@@ -3660,7 +3660,7 @@ function qo(e, t, n) {
|
|
|
3660
3660
|
return Ae(e) ? r : Uo(r, n(e));
|
|
3661
3661
|
}
|
|
3662
3662
|
function Fr(e) {
|
|
3663
|
-
return qo(e,
|
|
3663
|
+
return qo(e, Gt, ui);
|
|
3664
3664
|
}
|
|
3665
3665
|
function Xo(e) {
|
|
3666
3666
|
return qo(e, oi, Go);
|
|
@@ -3670,9 +3670,9 @@ const jr = Fp;
|
|
|
3670
3670
|
var jp = Ot(Ze, "Promise");
|
|
3671
3671
|
const zr = jp;
|
|
3672
3672
|
var zp = Ot(Ze, "Set");
|
|
3673
|
-
const
|
|
3674
|
-
var ba = "[object Map]", Bp = "[object Object]", wa = "[object Promise]", Sa = "[object Set]", Ea = "[object WeakMap]", Ta = "[object DataView]", Kp = _t(jr), Up = _t(cn), Yp = _t(zr), Wp = _t(
|
|
3675
|
-
(jr && mt(new jr(new ArrayBuffer(1))) != Ta || cn && mt(new cn()) != ba || zr && mt(zr.resolve()) != wa ||
|
|
3673
|
+
const Bt = zp;
|
|
3674
|
+
var ba = "[object Map]", Bp = "[object Object]", wa = "[object Promise]", Sa = "[object Set]", Ea = "[object WeakMap]", Ta = "[object DataView]", Kp = _t(jr), Up = _t(cn), Yp = _t(zr), Wp = _t(Bt), Vp = _t(xr), mt = Ct;
|
|
3675
|
+
(jr && mt(new jr(new ArrayBuffer(1))) != Ta || cn && mt(new cn()) != ba || zr && mt(zr.resolve()) != wa || Bt && mt(new Bt()) != Sa || xr && mt(new xr()) != Ea) && (mt = function(e) {
|
|
3676
3676
|
var t = Ct(e), n = t == Bp ? e.constructor : void 0, r = n ? _t(n) : "";
|
|
3677
3677
|
if (r)
|
|
3678
3678
|
switch (r) {
|
|
@@ -3759,13 +3759,13 @@ var Tg = "[object Map]";
|
|
|
3759
3759
|
function Cg(e) {
|
|
3760
3760
|
return lt(e) && fn(e) == Tg;
|
|
3761
3761
|
}
|
|
3762
|
-
var Oa =
|
|
3762
|
+
var Oa = Wt && Wt.isMap, _g = Oa ? or(Oa) : Cg;
|
|
3763
3763
|
const Og = _g;
|
|
3764
3764
|
var Ag = "[object Set]";
|
|
3765
3765
|
function $g(e) {
|
|
3766
3766
|
return lt(e) && fn(e) == Ag;
|
|
3767
3767
|
}
|
|
3768
|
-
var Aa =
|
|
3768
|
+
var Aa = Wt && Wt.isSet, Pg = Aa ? or(Aa) : $g;
|
|
3769
3769
|
const Ig = Pg;
|
|
3770
3770
|
var Dg = 1, Ng = 2, Rg = 4, Qo = "[object Arguments]", Mg = "[object Array]", Lg = "[object Boolean]", kg = "[object Date]", xg = "[object Error]", Zo = "[object Function]", Fg = "[object GeneratorFunction]", jg = "[object Map]", zg = "[object Number]", Jo = "[object Object]", Bg = "[object RegExp]", Kg = "[object Set]", Ug = "[object String]", Yg = "[object Symbol]", Wg = "[object WeakMap]", Vg = "[object ArrayBuffer]", Hg = "[object DataView]", Gg = "[object Float32Array]", qg = "[object Float64Array]", Xg = "[object Int8Array]", Qg = "[object Int16Array]", Zg = "[object Int32Array]", Jg = "[object Uint8Array]", em = "[object Uint8ClampedArray]", tm = "[object Uint16Array]", nm = "[object Uint32Array]", ce = {};
|
|
3771
3771
|
ce[Qo] = ce[Mg] = ce[Vg] = ce[Hg] = ce[Lg] = ce[kg] = ce[Gg] = ce[qg] = ce[Xg] = ce[Qg] = ce[Zg] = ce[jg] = ce[zg] = ce[Jo] = ce[Bg] = ce[Kg] = ce[Ug] = ce[Yg] = ce[Jg] = ce[em] = ce[tm] = ce[nm] = !0;
|
|
@@ -3802,7 +3802,7 @@ function Kn(e, t, n, r, i, a) {
|
|
|
3802
3802
|
}) : Og(e) && e.forEach(function(y, E) {
|
|
3803
3803
|
s.set(E, Kn(y, t, n, E, e, a));
|
|
3804
3804
|
});
|
|
3805
|
-
var w = l ? u ? Xo : Fr : u ? oi :
|
|
3805
|
+
var w = l ? u ? Xo : Fr : u ? oi : Gt, p = f ? void 0 : w(e);
|
|
3806
3806
|
return Dd(p || e, function(y, E) {
|
|
3807
3807
|
p && (E = y, y = e[E]), ri(s, E, Kn(y, t, n, E, e, a));
|
|
3808
3808
|
}), s;
|
|
@@ -4002,7 +4002,7 @@ function ns(e) {
|
|
|
4002
4002
|
return e === e && !Ye(e);
|
|
4003
4003
|
}
|
|
4004
4004
|
function km(e) {
|
|
4005
|
-
for (var t =
|
|
4005
|
+
for (var t = Gt(e), n = t.length; n--; ) {
|
|
4006
4006
|
var r = t[n], i = e[r];
|
|
4007
4007
|
t[n] = [r, i, ns(i)];
|
|
4008
4008
|
}
|
|
@@ -4078,13 +4078,13 @@ function Gm(e) {
|
|
|
4078
4078
|
var qm = Gm();
|
|
4079
4079
|
const Xm = qm;
|
|
4080
4080
|
function Qm(e, t) {
|
|
4081
|
-
return e && Xm(e, t,
|
|
4081
|
+
return e && Xm(e, t, Gt);
|
|
4082
4082
|
}
|
|
4083
4083
|
function Zm(e, t) {
|
|
4084
4084
|
return function(n, r) {
|
|
4085
4085
|
if (n == null)
|
|
4086
4086
|
return n;
|
|
4087
|
-
if (!
|
|
4087
|
+
if (!Ht(n))
|
|
4088
4088
|
return e(n, r);
|
|
4089
4089
|
for (var i = n.length, a = t ? i : -1, s = Object(n); (t ? a-- : ++a < i) && r(s[a], a, s) !== !1; )
|
|
4090
4090
|
;
|
|
@@ -4189,7 +4189,7 @@ function Ra(e, t) {
|
|
|
4189
4189
|
return n(e, En(t));
|
|
4190
4190
|
}
|
|
4191
4191
|
function fv(e, t) {
|
|
4192
|
-
var n = -1, r =
|
|
4192
|
+
var n = -1, r = Ht(e) ? Array(e.length) : [];
|
|
4193
4193
|
return hr(e, function(i, a, s) {
|
|
4194
4194
|
r[++n] = t(i, a, s);
|
|
4195
4195
|
}), r;
|
|
@@ -4199,16 +4199,16 @@ function hv(e) {
|
|
|
4199
4199
|
return typeof e == "string" || !Ae(e) && lt(e) && Ct(e) == dv;
|
|
4200
4200
|
}
|
|
4201
4201
|
function pv(e, t) {
|
|
4202
|
-
return
|
|
4202
|
+
return zt(t, function(n) {
|
|
4203
4203
|
return e[n];
|
|
4204
4204
|
});
|
|
4205
4205
|
}
|
|
4206
4206
|
function gv(e) {
|
|
4207
|
-
return e == null ? [] : pv(e,
|
|
4207
|
+
return e == null ? [] : pv(e, Gt(e));
|
|
4208
4208
|
}
|
|
4209
4209
|
var mv = Math.max;
|
|
4210
4210
|
function vv(e, t, n, r) {
|
|
4211
|
-
e =
|
|
4211
|
+
e = Ht(e) ? e : gv(e), n = n && !r ? sd(n) : 0;
|
|
4212
4212
|
var i = e.length;
|
|
4213
4213
|
return n < 0 && (n = mv(i + n, 0)), hv(e) ? n <= i && e.indexOf(t, n) > -1 : !!i && Lo(e, t, n) > -1;
|
|
4214
4214
|
}
|
|
@@ -4251,7 +4251,7 @@ function wv(e, t, n) {
|
|
|
4251
4251
|
function Rt(e, t) {
|
|
4252
4252
|
if (e == null)
|
|
4253
4253
|
return {};
|
|
4254
|
-
var n =
|
|
4254
|
+
var n = zt(Xo(e), function(r) {
|
|
4255
4255
|
return [r];
|
|
4256
4256
|
});
|
|
4257
4257
|
return t = En(t), wv(e, n, function(r, i) {
|
|
@@ -4266,7 +4266,7 @@ function Sv(e, t) {
|
|
|
4266
4266
|
}
|
|
4267
4267
|
function Ev(e, t) {
|
|
4268
4268
|
if (e !== t) {
|
|
4269
|
-
var n = e !== void 0, r = e === null, i = e === e, a =
|
|
4269
|
+
var n = e !== void 0, r = e === null, i = e === e, a = Yt(e), s = t !== void 0, o = t === null, u = t === t, l = Yt(t);
|
|
4270
4270
|
if (!o && !l && !a && e > t || a && s && u && !o && !l || r && s && u || !n && u || !i)
|
|
4271
4271
|
return 1;
|
|
4272
4272
|
if (!r && !a && !l && e < t || l && n && i && !r && !a || o && n && i || !s && i || !u)
|
|
@@ -4287,15 +4287,15 @@ function Tv(e, t, n) {
|
|
|
4287
4287
|
return e.index - t.index;
|
|
4288
4288
|
}
|
|
4289
4289
|
function Cv(e, t, n) {
|
|
4290
|
-
t.length ? t =
|
|
4290
|
+
t.length ? t = zt(t, function(a) {
|
|
4291
4291
|
return Ae(a) ? function(s) {
|
|
4292
4292
|
return cr(s, a.length === 1 ? a[0] : a);
|
|
4293
4293
|
} : a;
|
|
4294
4294
|
}) : t = [Ro];
|
|
4295
4295
|
var r = -1;
|
|
4296
|
-
t =
|
|
4296
|
+
t = zt(t, or(En));
|
|
4297
4297
|
var i = fv(e, function(a, s, o) {
|
|
4298
|
-
var u =
|
|
4298
|
+
var u = zt(t, function(l) {
|
|
4299
4299
|
return l(a);
|
|
4300
4300
|
});
|
|
4301
4301
|
return { criteria: u, index: ++r, value: a };
|
|
@@ -4310,8 +4310,8 @@ function _v(e, t, n, r) {
|
|
|
4310
4310
|
function Br(e, t, n) {
|
|
4311
4311
|
return e == null ? e : is(e, t, n);
|
|
4312
4312
|
}
|
|
4313
|
-
var Ov = 1 / 0, Av =
|
|
4314
|
-
return new
|
|
4313
|
+
var Ov = 1 / 0, Av = Bt && 1 / di(new Bt([, -0]))[1] == Ov ? function(e) {
|
|
4314
|
+
return new Bt(e);
|
|
4315
4315
|
} : $d;
|
|
4316
4316
|
const $v = Av;
|
|
4317
4317
|
var Pv = 200;
|
|
@@ -4364,7 +4364,7 @@ const Nv = (e, t, n = "post", r = {}) => (i) => e({
|
|
|
4364
4364
|
}) => {
|
|
4365
4365
|
const { pageNoKey: r, pageSizeKey: i, conditionKey: a, metaKey: s } = n, o = s === null ? {} : as();
|
|
4366
4366
|
return r && i && (Br(o, r, t.pageNo), Br(o, i, t.pageSize)), a === null ? Object.assign(o, e) : o[a || "condition"] = e, o;
|
|
4367
|
-
}, pr = () =>
|
|
4367
|
+
}, pr = () => Vt().appContext.config.globalProperties.$route, pi = () => Vt().appContext.config.globalProperties.$axios, ot = (e, t, n) => {
|
|
4368
4368
|
const r = pi();
|
|
4369
4369
|
return Nv(r, e, t, n);
|
|
4370
4370
|
};
|
|
@@ -4595,7 +4595,7 @@ const gr = Vr(() => {
|
|
|
4595
4595
|
const { config: a, immediateQuery: s } = Xe(e), o = _e("pageName", ""), u = H(
|
|
4596
4596
|
() => a.value.length > 6 * 3
|
|
4597
4597
|
), l = P(!u.value), { formState: f, dispatchFormState: c } = Tn(), { resetFields: d, validate: g, validateInfos: w } = jv(f[o]);
|
|
4598
|
-
|
|
4598
|
+
ye(
|
|
4599
4599
|
() => e.defaultQuery,
|
|
4600
4600
|
(m) => {
|
|
4601
4601
|
c(m, o), t("search");
|
|
@@ -4610,7 +4610,7 @@ const gr = Vr(() => {
|
|
|
4610
4610
|
console.log(m);
|
|
4611
4611
|
});
|
|
4612
4612
|
}, y = (m) => m.label.slice(0, 10);
|
|
4613
|
-
|
|
4613
|
+
ye(l, () => t("changeExpand"));
|
|
4614
4614
|
const E = H(() => l.value || !u.value ? (6 - a.value.length % 6) * 4 : 24);
|
|
4615
4615
|
return n({ resetFields: d }), {
|
|
4616
4616
|
expand: l,
|
|
@@ -4636,7 +4636,7 @@ function Bv(e, t, n, r, i, a) {
|
|
|
4636
4636
|
default: M(() => [
|
|
4637
4637
|
K(g, { gutter: 24 }, {
|
|
4638
4638
|
default: M(() => [
|
|
4639
|
-
(R(!0),
|
|
4639
|
+
(R(!0), Q(ve, null, Fe(e.config, (p, y) => {
|
|
4640
4640
|
var E;
|
|
4641
4641
|
return Yr((R(), X(u, {
|
|
4642
4642
|
key: p.fieldName,
|
|
@@ -4697,19 +4697,19 @@ function Bv(e, t, n, r, i, a) {
|
|
|
4697
4697
|
]),
|
|
4698
4698
|
_: 1
|
|
4699
4699
|
}),
|
|
4700
|
-
e.showAvailiableTrigger ? (R(),
|
|
4700
|
+
e.showAvailiableTrigger ? (R(), Q("a", {
|
|
4701
4701
|
key: 0,
|
|
4702
4702
|
style: { "font-size": "12px" },
|
|
4703
4703
|
onClick: t[1] || (t[1] = (p) => e.expand = !e.expand)
|
|
4704
4704
|
}, [
|
|
4705
|
-
e.expand ? (R(),
|
|
4705
|
+
e.expand ? (R(), Q(ve, { key: 0 }, [
|
|
4706
4706
|
K(f),
|
|
4707
4707
|
Ce(" 收起 ")
|
|
4708
|
-
], 64)) : (R(),
|
|
4708
|
+
], 64)) : (R(), Q(ve, { key: 1 }, [
|
|
4709
4709
|
K(c),
|
|
4710
4710
|
Ce(" 展开 ")
|
|
4711
4711
|
], 64))
|
|
4712
|
-
])) :
|
|
4712
|
+
])) : Te("", !0)
|
|
4713
4713
|
]),
|
|
4714
4714
|
_: 1
|
|
4715
4715
|
})
|
|
@@ -4727,7 +4727,7 @@ const Kv = /* @__PURE__ */ Qe(zv, [["render", Bv]]), Cn = Vr(() => {
|
|
|
4727
4727
|
const e = qe(/* @__PURE__ */ Object.create(null)), t = qe(/* @__PURE__ */ Object.create(null)), n = qe(
|
|
4728
4728
|
/* @__PURE__ */ Object.create(null)
|
|
4729
4729
|
);
|
|
4730
|
-
return
|
|
4730
|
+
return ye(
|
|
4731
4731
|
t,
|
|
4732
4732
|
() => {
|
|
4733
4733
|
for (const r in n)
|
|
@@ -4920,23 +4920,23 @@ const Kv = /* @__PURE__ */ Qe(zv, [["render", Bv]]), Cn = Vr(() => {
|
|
|
4920
4920
|
const Hv = { class: "page-renderer-buttons" }, Gv = { class: "page-renderer-buttons-left" }, qv = { key: 2 }, Xv = { class: "page-renderer-setting-trigger" }, Qv = { href: "javascript:;" };
|
|
4921
4921
|
function Zv(e, t, n, r, i, a) {
|
|
4922
4922
|
const s = F("aicon"), o = F("MenuItem"), u = F("Menu"), l = F("Space"), f = F("Button"), c = F("Dropdown"), d = F("DownOutlined"), g = F("Pagination"), w = F("Select"), p = F("SettingOutlined"), y = As("permission");
|
|
4923
|
-
return R(),
|
|
4923
|
+
return R(), Q("div", Hv, [
|
|
4924
4924
|
Ne("div", Gv, [
|
|
4925
4925
|
K(l, null, {
|
|
4926
4926
|
default: M(() => [
|
|
4927
|
-
(R(!0),
|
|
4927
|
+
(R(!0), Q(ve, null, Fe(e.config, (E, m) => Yr((R(), X(mn(E.type), pt(E.otherProps, {
|
|
4928
4928
|
key: `${E.type}${m}`,
|
|
4929
4929
|
onClick: (h) => e.handleButtonClick(E, h)
|
|
4930
4930
|
}), $s({
|
|
4931
4931
|
overlay: M(() => [
|
|
4932
4932
|
K(u, null, {
|
|
4933
4933
|
default: M(() => [
|
|
4934
|
-
(R(!0),
|
|
4934
|
+
(R(!0), Q(ve, null, Fe(E.sublist, (h) => (R(), X(o, {
|
|
4935
4935
|
key: h.action,
|
|
4936
4936
|
onClick: (O) => e.handleButtonClick(h, O)
|
|
4937
4937
|
}, {
|
|
4938
4938
|
default: M(() => [
|
|
4939
|
-
Ce(
|
|
4939
|
+
Ce(Ee(h.children), 1)
|
|
4940
4940
|
]),
|
|
4941
4941
|
_: 2
|
|
4942
4942
|
}, 1032, ["onClick"]))), 128))
|
|
@@ -4945,7 +4945,7 @@ function Zv(e, t, n, r, i, a) {
|
|
|
4945
4945
|
}, 1024)
|
|
4946
4946
|
]),
|
|
4947
4947
|
default: M(() => [
|
|
4948
|
-
Ce(" " +
|
|
4948
|
+
Ce(" " + Ee(E.children) + " ", 1)
|
|
4949
4949
|
]),
|
|
4950
4950
|
_: 2
|
|
4951
4951
|
}, [
|
|
@@ -4970,7 +4970,7 @@ function Zv(e, t, n, r, i, a) {
|
|
|
4970
4970
|
default: M(() => {
|
|
4971
4971
|
var E, m;
|
|
4972
4972
|
return [
|
|
4973
|
-
e.hasApiConfig ? (R(),
|
|
4973
|
+
e.hasApiConfig ? (R(), Q(ve, { key: 0 }, [
|
|
4974
4974
|
(E = e.importConfig) != null && E.children ? (R(), X(c, {
|
|
4975
4975
|
key: 0,
|
|
4976
4976
|
trigger: ["click"],
|
|
@@ -4979,12 +4979,12 @@ function Zv(e, t, n, r, i, a) {
|
|
|
4979
4979
|
overlay: M(() => [
|
|
4980
4980
|
K(u, null, {
|
|
4981
4981
|
default: M(() => [
|
|
4982
|
-
(R(!0),
|
|
4982
|
+
(R(!0), Q(ve, null, Fe(e.importConfig.children, (h, O) => (R(), X(o, {
|
|
4983
4983
|
key: O,
|
|
4984
4984
|
onClick: () => e.handleImport(h, O)
|
|
4985
4985
|
}, {
|
|
4986
4986
|
default: M(() => [
|
|
4987
|
-
Ce(
|
|
4987
|
+
Ce(Ee(h.title), 1)
|
|
4988
4988
|
]),
|
|
4989
4989
|
_: 2
|
|
4990
4990
|
}, 1032, ["onClick"]))), 128))
|
|
@@ -4999,13 +4999,13 @@ function Zv(e, t, n, r, i, a) {
|
|
|
4999
4999
|
type: "primary"
|
|
5000
5000
|
}, {
|
|
5001
5001
|
default: M(() => [
|
|
5002
|
-
Ce(
|
|
5002
|
+
Ce(Ee(e.importConfig.title || "导入"), 1)
|
|
5003
5003
|
]),
|
|
5004
5004
|
_: 1
|
|
5005
5005
|
}, 8, ["loading"])
|
|
5006
5006
|
]),
|
|
5007
5007
|
_: 1
|
|
5008
|
-
}, 8, ["disabled"])) :
|
|
5008
|
+
}, 8, ["disabled"])) : Te("", !0),
|
|
5009
5009
|
e.exportConfig ? (R(), X(f, {
|
|
5010
5010
|
key: 1,
|
|
5011
5011
|
size: "small",
|
|
@@ -5017,8 +5017,8 @@ function Zv(e, t, n, r, i, a) {
|
|
|
5017
5017
|
Ce(" 导出 ")
|
|
5018
5018
|
]),
|
|
5019
5019
|
_: 1
|
|
5020
|
-
}, 8, ["loading"])) :
|
|
5021
|
-
], 64)) : (R(),
|
|
5020
|
+
}, 8, ["loading"])) : Te("", !0)
|
|
5021
|
+
], 64)) : (R(), Q(ve, { key: 1 }, [
|
|
5022
5022
|
(m = e.importConfig) != null && m.sublist ? (R(), X(c, {
|
|
5023
5023
|
key: 0,
|
|
5024
5024
|
trigger: ["click"],
|
|
@@ -5027,12 +5027,12 @@ function Zv(e, t, n, r, i, a) {
|
|
|
5027
5027
|
overlay: M(() => [
|
|
5028
5028
|
K(u, null, {
|
|
5029
5029
|
default: M(() => [
|
|
5030
|
-
(R(!0),
|
|
5030
|
+
(R(!0), Q(ve, null, Fe(e.importConfig.sublist, (h, O) => (R(), X(o, {
|
|
5031
5031
|
key: O,
|
|
5032
5032
|
onClick: () => e.handleImport(h, O)
|
|
5033
5033
|
}, {
|
|
5034
5034
|
default: M(() => [
|
|
5035
|
-
Ce(
|
|
5035
|
+
Ce(Ee(h.title), 1)
|
|
5036
5036
|
]),
|
|
5037
5037
|
_: 2
|
|
5038
5038
|
}, 1032, ["onClick"]))), 128))
|
|
@@ -5047,22 +5047,22 @@ function Zv(e, t, n, r, i, a) {
|
|
|
5047
5047
|
type: "primary"
|
|
5048
5048
|
}, {
|
|
5049
5049
|
default: M(() => [
|
|
5050
|
-
Ce(
|
|
5050
|
+
Ce(Ee(e.importConfig.title || "导入"), 1)
|
|
5051
5051
|
]),
|
|
5052
5052
|
_: 1
|
|
5053
5053
|
}, 8, ["loading"])
|
|
5054
5054
|
]),
|
|
5055
5055
|
_: 1
|
|
5056
|
-
}, 8, ["disabled"])) :
|
|
5056
|
+
}, 8, ["disabled"])) : Te("", !0),
|
|
5057
5057
|
e.exportConfig ? (R(), X(c, { key: 1 }, {
|
|
5058
5058
|
overlay: M(() => [
|
|
5059
5059
|
K(u, {
|
|
5060
5060
|
onClick: t[1] || (t[1] = (h) => e.handleExport(h.key))
|
|
5061
5061
|
}, {
|
|
5062
5062
|
default: M(() => [
|
|
5063
|
-
(R(!0),
|
|
5063
|
+
(R(!0), Q(ve, null, Fe(e.OPERATIONS_EXPORT_MAP, (h, O) => (R(), X(o, { key: O }, {
|
|
5064
5064
|
default: M(() => [
|
|
5065
|
-
Ce(
|
|
5065
|
+
Ce(Ee(h), 1)
|
|
5066
5066
|
]),
|
|
5067
5067
|
_: 2
|
|
5068
5068
|
}, 1024))), 128))
|
|
@@ -5084,9 +5084,9 @@ function Zv(e, t, n, r, i, a) {
|
|
|
5084
5084
|
}, 8, ["loading"])
|
|
5085
5085
|
]),
|
|
5086
5086
|
_: 1
|
|
5087
|
-
})) :
|
|
5087
|
+
})) : Te("", !0)
|
|
5088
5088
|
], 64)),
|
|
5089
|
-
e.hasApiConfig ? (R(),
|
|
5089
|
+
e.hasApiConfig ? (R(), Q("div", qv, "共 " + Ee(e.total) + " 条", 1)) : Te("", !0),
|
|
5090
5090
|
K(g, {
|
|
5091
5091
|
class: "operations-pagination-simple",
|
|
5092
5092
|
current: e.computed_current,
|
|
@@ -5103,7 +5103,7 @@ function Zv(e, t, n, r, i, a) {
|
|
|
5103
5103
|
size: "small",
|
|
5104
5104
|
options: e.paginationSizeOptions
|
|
5105
5105
|
}, null, 8, ["value", "options"]),
|
|
5106
|
-
e.hasApiConfig ?
|
|
5106
|
+
e.hasApiConfig ? Te("", !0) : (R(), X(c, {
|
|
5107
5107
|
key: 3,
|
|
5108
5108
|
placement: "bottomRight",
|
|
5109
5109
|
trigger: ["click"]
|
|
@@ -5113,10 +5113,10 @@ function Zv(e, t, n, r, i, a) {
|
|
|
5113
5113
|
onClick: t[5] || (t[5] = (h) => e.$emit("customizeSetting", h.key))
|
|
5114
5114
|
}, {
|
|
5115
5115
|
default: M(() => [
|
|
5116
|
-
(R(!0),
|
|
5116
|
+
(R(!0), Q(ve, null, Fe(e.SETTINGS_MAP, (h, O) => (R(), X(o, { key: O }, {
|
|
5117
5117
|
default: M(() => [
|
|
5118
5118
|
K(p, { style: { "margin-right": "4px" } }),
|
|
5119
|
-
Ne("a", Qv,
|
|
5119
|
+
Ne("a", Qv, Ee(h), 1)
|
|
5120
5120
|
]),
|
|
5121
5121
|
_: 2
|
|
5122
5122
|
}, 1024))), 128))
|
|
@@ -5246,10 +5246,10 @@ const ty = $e({
|
|
|
5246
5246
|
}), ry = ["src", "onClick"];
|
|
5247
5247
|
function iy(e, t, n, r, i, a) {
|
|
5248
5248
|
const s = F("a-space");
|
|
5249
|
-
return R(),
|
|
5249
|
+
return R(), Q("div", null, [
|
|
5250
5250
|
K(s, null, {
|
|
5251
5251
|
default: M(() => [
|
|
5252
|
-
(R(!0),
|
|
5252
|
+
(R(!0), Q(ve, null, Fe(e.imageList, (o, u) => (R(), Q("img", {
|
|
5253
5253
|
src: o,
|
|
5254
5254
|
key: u,
|
|
5255
5255
|
onClick: () => e.preview(u),
|
|
@@ -5316,7 +5316,7 @@ function $t(e, t, n, r) {
|
|
|
5316
5316
|
}
|
|
5317
5317
|
return e;
|
|
5318
5318
|
}
|
|
5319
|
-
function
|
|
5319
|
+
function qt(e, t, n) {
|
|
5320
5320
|
var r = e.e, i = e.c.join(""), a = i.length;
|
|
5321
5321
|
if (t)
|
|
5322
5322
|
i = i.charAt(0) + (a > 1 ? "." + i.slice(1) : "") + (r < 0 ? "e" : "e+") + r;
|
|
@@ -5522,7 +5522,7 @@ ie.toExponential = function(e, t) {
|
|
|
5522
5522
|
for (n = $t(new n.constructor(n), ++e, t); n.c.length < e; )
|
|
5523
5523
|
n.c.push(0);
|
|
5524
5524
|
}
|
|
5525
|
-
return
|
|
5525
|
+
return qt(n, !0, !!r);
|
|
5526
5526
|
};
|
|
5527
5527
|
ie.toFixed = function(e, t) {
|
|
5528
5528
|
var n = this, r = n.c[0];
|
|
@@ -5532,14 +5532,14 @@ ie.toFixed = function(e, t) {
|
|
|
5532
5532
|
for (n = $t(new n.constructor(n), e + n.e + 1, t), e = e + n.e + 1; n.c.length < e; )
|
|
5533
5533
|
n.c.push(0);
|
|
5534
5534
|
}
|
|
5535
|
-
return
|
|
5535
|
+
return qt(n, !1, !!r);
|
|
5536
5536
|
};
|
|
5537
5537
|
ie[Symbol.for("nodejs.util.inspect.custom")] = ie.toJSON = ie.toString = function() {
|
|
5538
5538
|
var e = this, t = e.constructor;
|
|
5539
|
-
return
|
|
5539
|
+
return qt(e, e.e <= t.NE || e.e >= t.PE, !!e.c[0]);
|
|
5540
5540
|
};
|
|
5541
5541
|
ie.toNumber = function() {
|
|
5542
|
-
var e = Number(
|
|
5542
|
+
var e = Number(qt(this, !0, !0));
|
|
5543
5543
|
if (this.constructor.strict === !0 && !this.eq(e.toString()))
|
|
5544
5544
|
throw Error(_n + "Imprecise conversion");
|
|
5545
5545
|
return e;
|
|
@@ -5552,13 +5552,13 @@ ie.toPrecision = function(e, t) {
|
|
|
5552
5552
|
for (n = $t(new r(n), e, t); n.c.length < e; )
|
|
5553
5553
|
n.c.push(0);
|
|
5554
5554
|
}
|
|
5555
|
-
return
|
|
5555
|
+
return qt(n, e <= n.e || n.e <= r.NE || n.e >= r.PE, !!i);
|
|
5556
5556
|
};
|
|
5557
5557
|
ie.valueOf = function() {
|
|
5558
5558
|
var e = this, t = e.constructor;
|
|
5559
5559
|
if (t.strict === !0)
|
|
5560
5560
|
throw Error(_n + "valueOf disallowed");
|
|
5561
|
-
return
|
|
5561
|
+
return qt(e, e.e <= t.NE || e.e >= t.PE, !0);
|
|
5562
5562
|
};
|
|
5563
5563
|
var py = cs();
|
|
5564
5564
|
const gy = {
|
|
@@ -5892,7 +5892,7 @@ const wy = {
|
|
|
5892
5892
|
}, Py = /* @__PURE__ */ Ne("span", { class: "table-summary-cell-text" }, "总计", -1), Iy = { class: "table-summary-cell-text" };
|
|
5893
5893
|
function Dy(e, t, n, r, i, a) {
|
|
5894
5894
|
const s = F("a-button"), o = F("a-tooltip"), u = F("ConditionBuilder"), l = F("a-input"), f = F("LoadingOutlined"), c = F("Space"), d = F("TableImageCell"), g = F("TableCell"), w = F("a-table-summary-cell"), p = F("a-table-summary-row"), y = F("a-table-summary"), E = F("Table");
|
|
5895
|
-
return R(),
|
|
5895
|
+
return R(), Q("div", wy, [
|
|
5896
5896
|
K(E, {
|
|
5897
5897
|
bordered: "",
|
|
5898
5898
|
size: "small",
|
|
@@ -5915,7 +5915,7 @@ function Dy(e, t, n, r, i, a) {
|
|
|
5915
5915
|
onChange: e.onTableChange
|
|
5916
5916
|
}, {
|
|
5917
5917
|
headerCell: M(({ column: m }) => [
|
|
5918
|
-
m.key === e.DATA_SOURCE_INDEX_KEY ? (R(),
|
|
5918
|
+
m.key === e.DATA_SOURCE_INDEX_KEY ? (R(), Q("div", {
|
|
5919
5919
|
key: 0,
|
|
5920
5920
|
onClick: t[0] || (t[0] = (...h) => e.headerFilterSwitch && e.headerFilterSwitch(...h))
|
|
5921
5921
|
}, [
|
|
@@ -5930,17 +5930,17 @@ function Dy(e, t, n, r, i, a) {
|
|
|
5930
5930
|
]),
|
|
5931
5931
|
_: 1
|
|
5932
5932
|
}, 8, ["title"])
|
|
5933
|
-
])) : (R(),
|
|
5933
|
+
])) : (R(), Q("div", Sy, [
|
|
5934
5934
|
m.sortable === !1 ? (R(), X(o, { key: 0 }, {
|
|
5935
5935
|
title: M(() => [
|
|
5936
5936
|
Ce("仅支持当前页的筛选排序,不支持跨页筛选排序。如需统计全部数据,请点[导出全部],在 excel 统计。")
|
|
5937
5937
|
]),
|
|
5938
5938
|
default: M(() => [
|
|
5939
|
-
Ne("span", Ey,
|
|
5939
|
+
Ne("span", Ey, Ee(m.title), 1)
|
|
5940
5940
|
]),
|
|
5941
5941
|
_: 2
|
|
5942
|
-
}, 1024)) : (R(),
|
|
5943
|
-
m.key.startsWith(e.DATA_SOURCE_FILTER_PREFIX) ? (R(),
|
|
5942
|
+
}, 1024)) : (R(), Q("div", Ty, Ee(m.title), 1)),
|
|
5943
|
+
m.key.startsWith(e.DATA_SOURCE_FILTER_PREFIX) ? (R(), Q("div", Cy, [
|
|
5944
5944
|
e.fieldNameConditionsByKey[m.dataIndex] ? (R(), X(u, {
|
|
5945
5945
|
key: 0,
|
|
5946
5946
|
value: e.formState[e.pageName][m.dataIndex],
|
|
@@ -5960,20 +5960,20 @@ function Dy(e, t, n, r, i, a) {
|
|
|
5960
5960
|
onChange: e.onHeaderFilterChange,
|
|
5961
5961
|
onPressEnter: e.onSubmit
|
|
5962
5962
|
}, null, 8, ["value", "onUpdate:value", "onChange", "onPressEnter"]))
|
|
5963
|
-
])) :
|
|
5963
|
+
])) : Te("", !0)
|
|
5964
5964
|
]))
|
|
5965
5965
|
]),
|
|
5966
5966
|
bodyCell: M(({ text: m, record: h, index: O, column: C }) => [
|
|
5967
5967
|
C.dataIndex === "action" ? (R(), X(c, { key: 0 }, {
|
|
5968
5968
|
default: M(() => [
|
|
5969
|
-
(R(!0),
|
|
5969
|
+
(R(!0), Q(ve, null, Fe(C.childActions, (b) => (R(), Q(ve, {
|
|
5970
5970
|
key: b.action
|
|
5971
5971
|
}, [
|
|
5972
|
-
b.show === void 0 || e.actionVisible(b.show, h) ? (R(),
|
|
5972
|
+
b.show === void 0 || e.actionVisible(b.show, h) ? (R(), Q(ve, { key: 0 }, [
|
|
5973
5973
|
h[e.LOADING_SIGN][`${b.action}Loading`] ? (R(), X(f, {
|
|
5974
5974
|
key: 1,
|
|
5975
5975
|
style: { color: "#1890ff" }
|
|
5976
|
-
})) : (R(),
|
|
5976
|
+
})) : (R(), Q("a", {
|
|
5977
5977
|
key: 0,
|
|
5978
5978
|
onClick: qa(
|
|
5979
5979
|
(v) => {
|
|
@@ -5982,22 +5982,22 @@ function Dy(e, t, n, r, i, a) {
|
|
|
5982
5982
|
["stop"]
|
|
5983
5983
|
),
|
|
5984
5984
|
style: Ur({ color: b.color })
|
|
5985
|
-
},
|
|
5986
|
-
], 64)) :
|
|
5985
|
+
}, Ee(b.text), 13, _y))
|
|
5986
|
+
], 64)) : Te("", !0)
|
|
5987
5987
|
], 64))), 128))
|
|
5988
5988
|
]),
|
|
5989
5989
|
_: 2
|
|
5990
|
-
}, 1024)) :
|
|
5991
|
-
e.slotCellKeys.includes(C.dataIndex) ? (R(),
|
|
5990
|
+
}, 1024)) : Te("", !0),
|
|
5991
|
+
e.slotCellKeys.includes(C.dataIndex) ? (R(), Q(ve, { key: 1 }, [
|
|
5992
5992
|
e.tableCellSlots[C.dataIndex].component ? (R(), X(mn(e.tableCellSlots[C.dataIndex].component), xn(pt({ key: 0 }, {
|
|
5993
5993
|
text: m,
|
|
5994
5994
|
row: h,
|
|
5995
5995
|
index: O,
|
|
5996
5996
|
column: C,
|
|
5997
5997
|
...e.tableCellSlots[C.dataIndex].props
|
|
5998
|
-
})), null, 16)) :
|
|
5999
|
-
], 64)) : e.imgCellKeys.includes(C.dataIndex) ? (R(),
|
|
6000
|
-
m ? (R(), X(d, xn(pt({ key: 0 }, { image: m })), null, 16)) :
|
|
5998
|
+
})), null, 16)) : Te("", !0)
|
|
5999
|
+
], 64)) : e.imgCellKeys.includes(C.dataIndex) ? (R(), Q(ve, { key: 2 }, [
|
|
6000
|
+
m ? (R(), X(d, xn(pt({ key: 0 }, { image: m })), null, 16)) : Te("", !0)
|
|
6001
6001
|
], 64)) : [...e.linkCellKeys, ...e.keywords, ...e.htmlCellKeys].includes(C.dataIndex) ? (R(), X(g, xn(pt({ key: 3 }, {
|
|
6002
6002
|
row: h,
|
|
6003
6003
|
column: C,
|
|
@@ -6005,7 +6005,7 @@ function Dy(e, t, n, r, i, a) {
|
|
|
6005
6005
|
keywords: e.keywords,
|
|
6006
6006
|
linkCellKeys: e.linkCellKeys,
|
|
6007
6007
|
handleLinkClick: e.handleLinkClick
|
|
6008
|
-
})), null, 16)) :
|
|
6008
|
+
})), null, 16)) : Te("", !0)
|
|
6009
6009
|
]),
|
|
6010
6010
|
summary: M(() => [
|
|
6011
6011
|
K(y, { fixed: "" }, {
|
|
@@ -6018,13 +6018,13 @@ function Dy(e, t, n, r, i, a) {
|
|
|
6018
6018
|
]),
|
|
6019
6019
|
_: 1
|
|
6020
6020
|
}),
|
|
6021
|
-
(R(!0),
|
|
6021
|
+
(R(!0), Q(ve, null, Fe(e.columns, (m, h) => (R(), X(w, {
|
|
6022
6022
|
key: m.key,
|
|
6023
6023
|
index: h + 1,
|
|
6024
6024
|
style: { "text-align": "center" }
|
|
6025
6025
|
}, {
|
|
6026
6026
|
default: M(() => [
|
|
6027
|
-
h === 0 ? (R(),
|
|
6027
|
+
h === 0 ? (R(), Q("span", Ay, Ee(e.selectedRowKeys[e.pageName].length), 1)) : (R(), Q("span", $y, Ee(m.summary ? e.transformSummary(m.summary, m) : null), 1))
|
|
6028
6028
|
]),
|
|
6029
6029
|
_: 2
|
|
6030
6030
|
}, 1032, ["index"]))), 128))
|
|
@@ -6033,7 +6033,7 @@ function Dy(e, t, n, r, i, a) {
|
|
|
6033
6033
|
}, 512), [
|
|
6034
6034
|
[Ga, e.showSelectionSummaryRow]
|
|
6035
6035
|
]),
|
|
6036
|
-
e.hasApiConfig ?
|
|
6036
|
+
e.hasApiConfig ? Te("", !0) : (R(), X(p, { key: 0 }, {
|
|
6037
6037
|
default: M(() => [
|
|
6038
6038
|
K(w, { index: 0 }, {
|
|
6039
6039
|
default: M(() => [
|
|
@@ -6041,13 +6041,13 @@ function Dy(e, t, n, r, i, a) {
|
|
|
6041
6041
|
]),
|
|
6042
6042
|
_: 1
|
|
6043
6043
|
}),
|
|
6044
|
-
(R(!0),
|
|
6044
|
+
(R(!0), Q(ve, null, Fe(e.totalList, (m, h) => (R(), X(w, {
|
|
6045
6045
|
key: h,
|
|
6046
6046
|
index: h + 1,
|
|
6047
6047
|
style: { "text-align": "center" }
|
|
6048
6048
|
}, {
|
|
6049
6049
|
default: M(() => [
|
|
6050
|
-
Ne("span", Iy,
|
|
6050
|
+
Ne("span", Iy, Ee(m), 1)
|
|
6051
6051
|
]),
|
|
6052
6052
|
_: 2
|
|
6053
6053
|
}, 1032, ["index"]))), 128))
|
|
@@ -6099,7 +6099,7 @@ const My = {
|
|
|
6099
6099
|
emits: ["change", "update:visible"],
|
|
6100
6100
|
setup(e, { emit: t }) {
|
|
6101
6101
|
const n = pr(), r = pi(), i = io(e, "visible", t), a = P(!1), s = P([]), o = qe({ dataSource: [] });
|
|
6102
|
-
|
|
6102
|
+
ye(i, (m) => {
|
|
6103
6103
|
m ? o.dataSource = fi(Ke(e.columns)).map((h) => (h.show !== !1 && s.value.push(h.columnKey), {
|
|
6104
6104
|
...h,
|
|
6105
6105
|
disabled: h.columnKey === "action" || h.fixed !== void 0 || h.disabled,
|
|
@@ -6215,7 +6215,7 @@ const My = {
|
|
|
6215
6215
|
_ > -1 ? s.value.splice(_, 1) : s.value.push(b);
|
|
6216
6216
|
}
|
|
6217
6217
|
}), y = () => document.querySelector(".page-renderer-wrapper");
|
|
6218
|
-
return
|
|
6218
|
+
return ye(i, (m) => {
|
|
6219
6219
|
m && Ge(() => {
|
|
6220
6220
|
const h = document.querySelector(".ant-modal-root"), O = h == null ? void 0 : h.querySelector(".ant-modal-header"), C = h == null ? void 0 : h.querySelector(".ant-modal");
|
|
6221
6221
|
O.style.cursor = "move";
|
|
@@ -6267,7 +6267,7 @@ function ky(e, t, n, r, i, a) {
|
|
|
6267
6267
|
onCancel: e.handleClose
|
|
6268
6268
|
}, {
|
|
6269
6269
|
title: M(() => [
|
|
6270
|
-
Ne("span", null,
|
|
6270
|
+
Ne("span", null, Ee(e.title), 1)
|
|
6271
6271
|
]),
|
|
6272
6272
|
footer: M(() => [
|
|
6273
6273
|
K(l, null, {
|
|
@@ -6520,7 +6520,7 @@ var Hy = ft((e, t) => {
|
|
|
6520
6520
|
manual: r,
|
|
6521
6521
|
defaultParams: i = []
|
|
6522
6522
|
} = t;
|
|
6523
|
-
return
|
|
6523
|
+
return ye(n, (a) => {
|
|
6524
6524
|
!r && a && e.context.run(...i);
|
|
6525
6525
|
}, {
|
|
6526
6526
|
flush: "sync"
|
|
@@ -6541,7 +6541,7 @@ var Hy = ft((e, t) => {
|
|
|
6541
6541
|
if (n === void 0 || Qn(n) && n.length === 0)
|
|
6542
6542
|
return {};
|
|
6543
6543
|
const a = Qn(n) ? n : [n];
|
|
6544
|
-
return
|
|
6544
|
+
return ye(a, () => {
|
|
6545
6545
|
r ? r() : !i && e.context.refresh();
|
|
6546
6546
|
}), {};
|
|
6547
6547
|
}), Qy = ft((e, t) => {
|
|
@@ -6589,7 +6589,7 @@ const Zy = (e, t) => (n) => {
|
|
|
6589
6589
|
onError: o,
|
|
6590
6590
|
onBefore: u,
|
|
6591
6591
|
onAfter: l
|
|
6592
|
-
} = t, f = P((r = n == null ? void 0 : n.loading) !== null && r !== void 0 ? r : !1), c =
|
|
6592
|
+
} = t, f = P((r = n == null ? void 0 : n.loading) !== null && r !== void 0 ? r : !1), c = Jt((i = n == null ? void 0 : n.data) !== null && i !== void 0 ? i : a), d = Jt(n == null ? void 0 : n.error), g = P(n == null ? void 0 : n.params), w = P([]), p = Jt("pending"), y = {}, E = Zy({
|
|
6593
6593
|
status: p,
|
|
6594
6594
|
loading: f,
|
|
6595
6595
|
data: c,
|
|
@@ -6884,7 +6884,7 @@ var ub = ft((e, t) => {
|
|
|
6884
6884
|
}, w = () => {
|
|
6885
6885
|
o.value && d() && (e.context.refresh(), o.value = !1);
|
|
6886
6886
|
};
|
|
6887
|
-
return
|
|
6887
|
+
return ye(u, () => {
|
|
6888
6888
|
s.value && (s.value(), s.value = g(() => e.context.refresh()));
|
|
6889
6889
|
}), r || c(Zn("VISIBLE_LISTENER", w)), i || c(Zn("RECONNECT_LISTENER", w)), vn(() => {
|
|
6890
6890
|
f.forEach((p) => p());
|
|
@@ -7054,7 +7054,7 @@ const Ka = "COLUMN_SCHEME", Ua = {
|
|
|
7054
7054
|
) : !0;
|
|
7055
7055
|
}));
|
|
7056
7056
|
};
|
|
7057
|
-
|
|
7057
|
+
ye(f, () => {
|
|
7058
7058
|
T();
|
|
7059
7059
|
});
|
|
7060
7060
|
const { patchEnumerations: S, patchStaticEnumerations: A } = gr(), j = P(null), J = P(null), L = P(null), I = Pl(Ka, {}), $ = P(
|
|
@@ -7074,7 +7074,7 @@ const Ka = "COLUMN_SCHEME", Ua = {
|
|
|
7074
7074
|
});
|
|
7075
7075
|
(() => {
|
|
7076
7076
|
if (i) {
|
|
7077
|
-
const k = ot(i.list.url);
|
|
7077
|
+
const k = ot(i.list.url, i.list.method || "post");
|
|
7078
7078
|
b.value = Ba(k, {
|
|
7079
7079
|
manual: !0,
|
|
7080
7080
|
// 手动模式
|
|
@@ -7216,14 +7216,14 @@ const Ka = "COLUMN_SCHEME", Ua = {
|
|
|
7216
7216
|
A(e.page.enumerations), await S(e.page.enumapi), w.value = !0, Ge().then(() => {
|
|
7217
7217
|
B();
|
|
7218
7218
|
});
|
|
7219
|
-
}), i ?
|
|
7219
|
+
}), i ? ye([we, de], ([k, V]) => {
|
|
7220
7220
|
const ne = ka({
|
|
7221
7221
|
conditions: Rt({ ...Ke(oe) }, ge),
|
|
7222
7222
|
pager: { pageNo: k, pageSize: V },
|
|
7223
7223
|
listApiConfig: i.list
|
|
7224
7224
|
});
|
|
7225
7225
|
b.value.run(ne);
|
|
7226
|
-
}) :
|
|
7226
|
+
}) : ye([we, de, d], ([k, V]) => {
|
|
7227
7227
|
const { category: ne, tab: ae } = n.meta;
|
|
7228
7228
|
b.value.run({
|
|
7229
7229
|
category: ne,
|
|
@@ -7303,7 +7303,7 @@ const Ka = "COLUMN_SCHEME", Ua = {
|
|
|
7303
7303
|
function pb(e, t, n, r, i, a) {
|
|
7304
7304
|
var c;
|
|
7305
7305
|
const s = F("Conditions"), o = F("Operations"), u = F("SummaryBar"), l = F("TableView"), f = F("ColumnSettingModal");
|
|
7306
|
-
return e.loaded ? (R(),
|
|
7306
|
+
return e.loaded ? (R(), Q(ve, { key: 0 }, [
|
|
7307
7307
|
K(s, {
|
|
7308
7308
|
ref: "conditions",
|
|
7309
7309
|
config: e.page.conditions,
|
|
@@ -7338,7 +7338,7 @@ function pb(e, t, n, r, i, a) {
|
|
|
7338
7338
|
key: 0,
|
|
7339
7339
|
ref: "summaryBar",
|
|
7340
7340
|
config: e.summary
|
|
7341
|
-
}, null, 8, ["config"])) :
|
|
7341
|
+
}, null, 8, ["config"])) : xt(e.$slots, "summaryBar", { key: 1 }),
|
|
7342
7342
|
K(l, {
|
|
7343
7343
|
ref: "tableView",
|
|
7344
7344
|
config: e.sortedColumns,
|
|
@@ -7364,7 +7364,7 @@ function pb(e, t, n, r, i, a) {
|
|
|
7364
7364
|
columns: e.columnSettingState.columns,
|
|
7365
7365
|
onChange: e.columnSettingChange
|
|
7366
7366
|
}, null, 8, ["visible", "type", "title", "columns", "onChange"])
|
|
7367
|
-
], 64)) :
|
|
7367
|
+
], 64)) : Te("", !0);
|
|
7368
7368
|
}
|
|
7369
7369
|
const bs = /* @__PURE__ */ Qe(hb, [["render", pb]]), gb = $e({
|
|
7370
7370
|
name: "PageRendererTabsPage",
|
|
@@ -7406,7 +7406,7 @@ function mb(e, t, n, r, i, a) {
|
|
|
7406
7406
|
onChange: e.activeChange
|
|
7407
7407
|
}, {
|
|
7408
7408
|
default: M(() => [
|
|
7409
|
-
(R(!0),
|
|
7409
|
+
(R(!0), Q(ve, null, Fe(e.pages, (l) => (R(), X(o, {
|
|
7410
7410
|
key: l.name,
|
|
7411
7411
|
tab: l.title
|
|
7412
7412
|
}, {
|
|
@@ -7434,7 +7434,7 @@ const vb = /* @__PURE__ */ Qe(gb, [["render", mb]]), yb = (e) => ({
|
|
|
7434
7434
|
a.includes(g) && l++;
|
|
7435
7435
|
}), s.all ? u = l === o : u = l > 0, u || (d = t.parentNode) == null || d.removeChild(t);
|
|
7436
7436
|
}
|
|
7437
|
-
}), bb = () =>
|
|
7437
|
+
}), bb = () => Vt().appContext, wb = () => {
|
|
7438
7438
|
const e = bb(), t = Js();
|
|
7439
7439
|
e.directives.permission || e.app.directive("permission", yb(t));
|
|
7440
7440
|
}, Sb = {
|
|
@@ -7707,7 +7707,7 @@ const Pb = $b, [Ib] = bn("page-renderer"), Db = $e({
|
|
|
7707
7707
|
},
|
|
7708
7708
|
setup(e, { expose: t }) {
|
|
7709
7709
|
var b;
|
|
7710
|
-
const n = pr(), r = P(null), i = P(null), a = P(""), s = P(null), o = P(null), u = P([]), l = P(), f = { title: "", component: null }, { selectedErrorRowKeys: c } = Cn(), d =
|
|
7710
|
+
const n = pr(), r = P(null), i = P(null), a = P(""), s = P(null), o = P(null), u = P([]), l = P(), f = { title: "", component: null }, { selectedErrorRowKeys: c } = Cn(), d = Jt(f), g = P(e.options), w = P(!1), p = _e(
|
|
7711
7711
|
"actionGuard",
|
|
7712
7712
|
null
|
|
7713
7713
|
);
|
|
@@ -7835,17 +7835,17 @@ function Rb(e, t, n, r, i, a) {
|
|
|
7835
7835
|
ref: "table"
|
|
7836
7836
|
}, {
|
|
7837
7837
|
summaryBar: M(() => [
|
|
7838
|
-
|
|
7838
|
+
xt(e.$slots, "summaryBar")
|
|
7839
7839
|
]),
|
|
7840
7840
|
_: 3
|
|
7841
|
-
}, 8, ["page"])) :
|
|
7841
|
+
}, 8, ["page"])) : Te("", !0),
|
|
7842
7842
|
e.rendererOptions.type === "tabs" ? (R(), X(o, {
|
|
7843
7843
|
key: 1,
|
|
7844
7844
|
pages: e.rendererOptions.pages,
|
|
7845
7845
|
activePageName: e.activePageName,
|
|
7846
7846
|
"onUpdate:activePageName": t[0] || (t[0] = (c) => e.activePageName = c),
|
|
7847
7847
|
ref: "tabs"
|
|
7848
|
-
}, null, 8, ["pages", "activePageName"])) :
|
|
7848
|
+
}, null, 8, ["pages", "activePageName"])) : Te("", !0),
|
|
7849
7849
|
K(u, {
|
|
7850
7850
|
ref: "formModal",
|
|
7851
7851
|
form: e.currentComponent,
|
|
@@ -7857,7 +7857,7 @@ function Rb(e, t, n, r, i, a) {
|
|
|
7857
7857
|
])
|
|
7858
7858
|
]),
|
|
7859
7859
|
_: 3
|
|
7860
|
-
}, 16)) :
|
|
7860
|
+
}, 16)) : Te("", !0);
|
|
7861
7861
|
}
|
|
7862
7862
|
const Mb = /* @__PURE__ */ Qe(Db, [["render", Rb]]);
|
|
7863
7863
|
const Lb = wn(Mb), kb = [eo, sl, xl, Kl, Nf, Lb], { enumerations: Ub } = gr();
|