@yzsf2e/render-core 1.0.2-alpha.92 → 1.0.2-alpha.93
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 +189 -188
- package/dist/render-core.umd.js +3 -3
- package/package.json +1 -1
package/dist/render-core.mjs
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { defineComponent as Oe, ref as D, computed as G, createVNode as W, mergeProps as Ge, openBlock as k, createBlock as X, resolveDynamicComponent as Bt, effectScope as js, unref as Kn, isRef as ni, toRefs as Xe, customRef as zs, onMounted as Et, nextTick as xe, getCurrentScope as Bs, onScopeDispose as Ks, readonly as Us, getCurrentInstance as Ct, watch as te, shallowRef as nn, resolveComponent as U, withCtx as F, createElementBlock as Z, Fragment as
|
|
1
|
+
import { defineComponent as Oe, ref as D, computed as G, createVNode as W, mergeProps as Ge, openBlock as k, createBlock as X, resolveDynamicComponent as Bt, effectScope as js, unref as Kn, isRef as ni, toRefs as Xe, customRef as zs, onMounted as Et, nextTick as xe, getCurrentScope as Bs, onScopeDispose as Ks, readonly as Us, getCurrentInstance as Ct, watch as te, shallowRef as nn, resolveComponent as U, withCtx as F, createElementBlock as Z, Fragment as ve, createTextVNode as we, toDisplayString as ce, renderSlot as Lt, createElementVNode as Ae, createCommentVNode as ge, reactive as Ue, onUnmounted as wn, watchEffect as bt, normalizeStyle as ri, renderList as Me, createApp as Ys, toRaw as ke, inject as Ee, h as Ye, withDirectives as Zn, vShow as uo, withModifiers as co, resolveDirective as fo, createSlots as po, onRenderTriggered as Vs, isVNode as Ws, normalizeClass as ho, normalizeProps as It, guardReactiveProps as Hs, provide as Dt } from "vue";
|
|
2
2
|
import { DatePicker as go, Modal as Jn, Button as lr, Space as Sn, message as Te, Input as Gs, Select as Un, Cascader as qs, RangePicker as Xs, Col as Qs, Row as Zs, Form as ii, Menu as Js, MenuItem as el, Dropdown as tl, Pagination as nl, DropdownButton as rl, Alert as ki, Spin as il, Table as al, Transfer as ol, ConfigProvider as sl } from "ant-design-vue";
|
|
3
3
|
import * as ll from "@ant-design/icons-vue";
|
|
4
4
|
import { CloseOutlined as ul, ShrinkOutlined as cl, ArrowsAltOutlined as fl, HolderOutlined as dl, DownOutlined as mo, UpOutlined as pl, SettingOutlined as hl, CopyOutlined as gl, LoadingOutlined as vo, FilterOutlined as ml } from "@ant-design/icons-vue";
|
|
5
5
|
import { useRouter as vl } from "vue-router";
|
|
6
6
|
import { useI18n as yl } from "vue-i18n";
|
|
7
7
|
/*!
|
|
8
|
-
* @yzsf2e/render-core v1.0.2-alpha.
|
|
8
|
+
* @yzsf2e/render-core v1.0.2-alpha.93 Fri Sep 20 2024 16:27:42 GMT+0800 (中国标准时间)
|
|
9
9
|
* (c) 2023 @yzsf2e.
|
|
10
10
|
*/
|
|
11
|
-
const bl = "@yzsf2e/render-core", wl = "1.0.2-alpha.
|
|
11
|
+
const bl = "@yzsf2e/render-core", wl = "1.0.2-alpha.93", Sl = "dist/render-core", El = "dist/render-core", Cl = [
|
|
12
12
|
"dist"
|
|
13
13
|
], Tl = {
|
|
14
14
|
dev: "storybook dev -p 6006",
|
|
@@ -641,8 +641,8 @@ function fu(e, t, n, r, i, a) {
|
|
|
641
641
|
"onUpdate:visible": t[1] || (t[1] = (d) => e.show = d)
|
|
642
642
|
}, {
|
|
643
643
|
title: F(() => [
|
|
644
|
-
e.title ? (k(), Z(
|
|
645
|
-
|
|
644
|
+
e.title ? (k(), Z(ve, { key: 0 }, [
|
|
645
|
+
we(ce(e.title), 1)
|
|
646
646
|
], 64)) : Lt(e.$slots, "title", { key: 1 })
|
|
647
647
|
]),
|
|
648
648
|
extra: F(() => [
|
|
@@ -671,13 +671,13 @@ function fu(e, t, n, r, i, a) {
|
|
|
671
671
|
class: "drag-trigger",
|
|
672
672
|
onMousedown: t[0] || (t[0] = (d) => e.handleMouseDown(d))
|
|
673
673
|
}, null, 32),
|
|
674
|
-
e.hideFooter ?
|
|
674
|
+
e.hideFooter ? ge("", !0) : (k(), Z("div", cu, [
|
|
675
675
|
W(l, { style: { "padding-left": "20px" } }, {
|
|
676
676
|
default: F(() => [
|
|
677
677
|
Lt(e.$slots, "footBtn"),
|
|
678
678
|
W(f, { onClick: e.handleClose }, {
|
|
679
679
|
default: F(() => [
|
|
680
|
-
|
|
680
|
+
we("关闭")
|
|
681
681
|
]),
|
|
682
682
|
_: 1
|
|
683
683
|
}, 8, ["onClick"])
|
|
@@ -773,7 +773,7 @@ function vu(e, t, n, r, i, a) {
|
|
|
773
773
|
onCancel: e.closeModal
|
|
774
774
|
}), {
|
|
775
775
|
title: F(() => [
|
|
776
|
-
Ae("span", null,
|
|
776
|
+
Ae("span", null, ce(e.form.title), 1)
|
|
777
777
|
]),
|
|
778
778
|
footer: F(() => {
|
|
779
779
|
var l;
|
|
@@ -786,7 +786,7 @@ function vu(e, t, n, r, i, a) {
|
|
|
786
786
|
default: F(() => {
|
|
787
787
|
var c;
|
|
788
788
|
return [
|
|
789
|
-
|
|
789
|
+
we(ce(((c = e.form.modalProps) == null ? void 0 : c.cancelText) || "取消"), 1)
|
|
790
790
|
];
|
|
791
791
|
}),
|
|
792
792
|
_: 1
|
|
@@ -800,15 +800,15 @@ function vu(e, t, n, r, i, a) {
|
|
|
800
800
|
default: F(() => {
|
|
801
801
|
var c;
|
|
802
802
|
return [
|
|
803
|
-
|
|
803
|
+
we(ce(((c = e.form.modalProps) == null ? void 0 : c.okText) || "确定"), 1)
|
|
804
804
|
];
|
|
805
805
|
}),
|
|
806
806
|
_: 1
|
|
807
|
-
}, 8, ["onClick", "loading"])) :
|
|
807
|
+
}, 8, ["onClick", "loading"])) : ge("", !0)
|
|
808
808
|
];
|
|
809
809
|
}),
|
|
810
810
|
_: 1
|
|
811
|
-
})) :
|
|
811
|
+
})) : ge("", !0)
|
|
812
812
|
];
|
|
813
813
|
}),
|
|
814
814
|
default: F(() => [
|
|
@@ -820,7 +820,7 @@ function vu(e, t, n, r, i, a) {
|
|
|
820
820
|
modalConfig: e.modalConfig,
|
|
821
821
|
"onUpdate:modalConfig": t[0] || (t[0] = (l) => e.modalConfig = l),
|
|
822
822
|
ref: "currentForm"
|
|
823
|
-
}), null, 16, ["rows", "extra-data", "modalConfig"])) : (k(), Z("span", mu, "form配置中没有为【" +
|
|
823
|
+
}), null, 16, ["rows", "extra-data", "modalConfig"])) : (k(), Z("span", mu, "form配置中没有为【" + ce(e.form.title) + "】事件提供组件", 1))
|
|
824
824
|
]),
|
|
825
825
|
_: 1
|
|
826
826
|
}, 16, ["visible", "get-container", "mask-style", "onCancel"]);
|
|
@@ -1108,12 +1108,12 @@ var ji = {
|
|
|
1108
1108
|
zoomed: null,
|
|
1109
1109
|
play: null,
|
|
1110
1110
|
stop: null
|
|
1111
|
-
}, Cu = '<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>', ur = typeof window < "u" && typeof window.document < "u", ot = ur ? window : {}, xt = ur && ot.document.documentElement ? "ontouchstart" in ot.document.documentElement : !1, ui = ur ? "PointerEvent" in ot : !1, J = "viewer", Yn = "move", Oo = "switch", en = "zoom", kn = "".concat(J, "-active"), Tu = "".concat(J, "-close"), Vn = "".concat(J, "-fade"), Vr = "".concat(J, "-fixed"), Ou = "".concat(J, "-fullscreen"), zi = "".concat(J, "-fullscreen-exit"), mt = "".concat(J, "-hide"), _u = "".concat(J, "-hide-md-down"), Au = "".concat(J, "-hide-sm-down"), $u = "".concat(J, "-hide-xs-down"), Be = "".concat(J, "-in"), an = "".concat(J, "-invisible"), Ft = "".concat(J, "-loading"), Pu = "".concat(J, "-move"), Bi = "".concat(J, "-open"), Pt = "".concat(J, "-show"),
|
|
1111
|
+
}, Cu = '<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>', ur = typeof window < "u" && typeof window.document < "u", ot = ur ? window : {}, xt = ur && ot.document.documentElement ? "ontouchstart" in ot.document.documentElement : !1, ui = ur ? "PointerEvent" in ot : !1, J = "viewer", Yn = "move", Oo = "switch", en = "zoom", kn = "".concat(J, "-active"), Tu = "".concat(J, "-close"), Vn = "".concat(J, "-fade"), Vr = "".concat(J, "-fixed"), Ou = "".concat(J, "-fullscreen"), zi = "".concat(J, "-fullscreen-exit"), mt = "".concat(J, "-hide"), _u = "".concat(J, "-hide-md-down"), Au = "".concat(J, "-hide-sm-down"), $u = "".concat(J, "-hide-xs-down"), Be = "".concat(J, "-in"), an = "".concat(J, "-invisible"), Ft = "".concat(J, "-loading"), Pu = "".concat(J, "-move"), Bi = "".concat(J, "-open"), Pt = "".concat(J, "-show"), be = "".concat(J, "-transition"), Kt = "click", Wr = "dblclick", Ki = "dragstart", Ui = "focusin", Yi = "keydown", Ke = "load", yt = "error", Iu = xt ? "touchend touchcancel" : "mouseup", Du = xt ? "touchmove" : "mousemove", Nu = xt ? "touchstart" : "mousedown", Vi = ui ? "pointerdown" : Nu, Wi = ui ? "pointermove" : Du, Hi = ui ? "pointerup pointercancel" : Iu, Gi = "resize", He = "transitionend", qi = "wheel", Xi = "ready", Qi = "show", Zi = "shown", Ji = "hide", ea = "hidden", ta = "view", un = "viewed", na = "move", ra = "moved", ia = "rotate", aa = "rotated", oa = "scale", sa = "scaled", la = "zoom", ua = "zoomed", ca = "play", fa = "stop", er = "".concat(J, "Action"), ci = /\s\s*/, Ln = ["zoom-in", "zoom-out", "one-to-one", "reset", "prev", "play", "next", "rotate-left", "rotate-right", "flip-horizontal", "flip-vertical"];
|
|
1112
1112
|
function cn(e) {
|
|
1113
1113
|
return typeof e == "string";
|
|
1114
1114
|
}
|
|
1115
1115
|
var Ru = Number.isNaN || ot.isNaN;
|
|
1116
|
-
function
|
|
1116
|
+
function me(e) {
|
|
1117
1117
|
return typeof e == "number" && !Ru(e);
|
|
1118
1118
|
}
|
|
1119
1119
|
function Rt(e) {
|
|
@@ -1136,9 +1136,9 @@ function Mt(e) {
|
|
|
1136
1136
|
function se(e) {
|
|
1137
1137
|
return typeof e == "function";
|
|
1138
1138
|
}
|
|
1139
|
-
function
|
|
1139
|
+
function fe(e, t) {
|
|
1140
1140
|
if (e && se(t))
|
|
1141
|
-
if (Array.isArray(e) ||
|
|
1141
|
+
if (Array.isArray(e) || me(e.length)) {
|
|
1142
1142
|
var n = e.length, r;
|
|
1143
1143
|
for (r = 0; r < n && t.call(e, e[r], r, e) !== !1; r += 1)
|
|
1144
1144
|
;
|
|
@@ -1159,8 +1159,8 @@ var Le = Object.assign || function(t) {
|
|
|
1159
1159
|
}, ku = /^(?:width|height|left|top|marginLeft|marginTop)$/;
|
|
1160
1160
|
function qe(e, t) {
|
|
1161
1161
|
var n = e.style;
|
|
1162
|
-
|
|
1163
|
-
ku.test(i) &&
|
|
1162
|
+
fe(t, function(r, i) {
|
|
1163
|
+
ku.test(i) && me(r) && (r += "px"), n[i] = r;
|
|
1164
1164
|
});
|
|
1165
1165
|
}
|
|
1166
1166
|
function Lu(e) {
|
|
@@ -1171,8 +1171,8 @@ function Nt(e, t) {
|
|
|
1171
1171
|
}
|
|
1172
1172
|
function H(e, t) {
|
|
1173
1173
|
if (!(!e || !t)) {
|
|
1174
|
-
if (
|
|
1175
|
-
|
|
1174
|
+
if (me(e.length)) {
|
|
1175
|
+
fe(e, function(r) {
|
|
1176
1176
|
H(r, t);
|
|
1177
1177
|
});
|
|
1178
1178
|
return;
|
|
@@ -1187,8 +1187,8 @@ function H(e, t) {
|
|
|
1187
1187
|
}
|
|
1188
1188
|
function ne(e, t) {
|
|
1189
1189
|
if (!(!e || !t)) {
|
|
1190
|
-
if (
|
|
1191
|
-
|
|
1190
|
+
if (me(e.length)) {
|
|
1191
|
+
fe(e, function(n) {
|
|
1192
1192
|
ne(n, t);
|
|
1193
1193
|
});
|
|
1194
1194
|
return;
|
|
@@ -1202,8 +1202,8 @@ function ne(e, t) {
|
|
|
1202
1202
|
}
|
|
1203
1203
|
function fn(e, t, n) {
|
|
1204
1204
|
if (t) {
|
|
1205
|
-
if (
|
|
1206
|
-
|
|
1205
|
+
if (me(e.length)) {
|
|
1206
|
+
fe(e, function(r) {
|
|
1207
1207
|
fn(r, t, n);
|
|
1208
1208
|
});
|
|
1209
1209
|
return;
|
|
@@ -1284,7 +1284,7 @@ function Fu(e) {
|
|
|
1284
1284
|
}
|
|
1285
1285
|
function Wn(e) {
|
|
1286
1286
|
var t = e.rotate, n = e.scaleX, r = e.scaleY, i = e.translateX, a = e.translateY, s = [];
|
|
1287
|
-
|
|
1287
|
+
me(i) && i !== 0 && s.push("translateX(".concat(i, "px)")), me(a) && a !== 0 && s.push("translateY(".concat(a, "px)")), me(t) && t !== 0 && s.push("rotate(".concat(t, "deg)")), me(n) && n !== 1 && s.push("scaleX(".concat(n, ")")), me(r) && r !== 1 && s.push("scaleY(".concat(r, ")"));
|
|
1288
1288
|
var o = s.length ? s.join(" ") : "none";
|
|
1289
1289
|
return {
|
|
1290
1290
|
WebkitTransform: o,
|
|
@@ -1303,7 +1303,7 @@ function Ao(e, t, n) {
|
|
|
1303
1303
|
var i = document.body || document.documentElement;
|
|
1304
1304
|
return r.onload = function() {
|
|
1305
1305
|
n(r.width, r.height), Dr || i.removeChild(r);
|
|
1306
|
-
},
|
|
1306
|
+
}, fe(t.inheritedAttributes, function(a) {
|
|
1307
1307
|
var s = e.getAttribute(a);
|
|
1308
1308
|
s !== null && r.setAttribute(a, s);
|
|
1309
1309
|
}), r.src = e.src, Dr || (r.style.cssText = "left:0;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;opacity:0;position:absolute;top:0;z-index:-1;", i.appendChild(r)), r;
|
|
@@ -1322,8 +1322,8 @@ function xn(e) {
|
|
|
1322
1322
|
}
|
|
1323
1323
|
function zu(e) {
|
|
1324
1324
|
var t = li({}, e), n = [];
|
|
1325
|
-
return
|
|
1326
|
-
delete t[i],
|
|
1325
|
+
return fe(e, function(r, i) {
|
|
1326
|
+
delete t[i], fe(t, function(a) {
|
|
1327
1327
|
var s = Math.abs(r.startX - a.startX), o = Math.abs(r.startY - a.startY), u = Math.abs(r.endX - a.endX), l = Math.abs(r.endY - a.endY), f = Math.sqrt(s * s + o * o), c = Math.sqrt(u * u + l * l), d = (c - f) / f;
|
|
1328
1328
|
n.push(d);
|
|
1329
1329
|
});
|
|
@@ -1344,7 +1344,7 @@ function Fn(e, t) {
|
|
|
1344
1344
|
}
|
|
1345
1345
|
function Bu(e) {
|
|
1346
1346
|
var t = 0, n = 0, r = 0;
|
|
1347
|
-
return
|
|
1347
|
+
return fe(e, function(i) {
|
|
1348
1348
|
var a = i.startX, s = i.startY;
|
|
1349
1349
|
t += a, n += s, r += 1;
|
|
1350
1350
|
}), t /= r, n /= r, {
|
|
@@ -1378,16 +1378,16 @@ var Ku = {
|
|
|
1378
1378
|
},
|
|
1379
1379
|
initList: function() {
|
|
1380
1380
|
var t = this, n = this.element, r = this.options, i = this.list, a = [];
|
|
1381
|
-
i.innerHTML = "",
|
|
1381
|
+
i.innerHTML = "", fe(this.images, function(s, o) {
|
|
1382
1382
|
var u = s.src, l = s.alt || ju(u), f = t.getImageURL(s);
|
|
1383
1383
|
if (u || f) {
|
|
1384
1384
|
var c = document.createElement("li"), d = document.createElement("img");
|
|
1385
|
-
|
|
1385
|
+
fe(r.inheritedAttributes, function(p) {
|
|
1386
1386
|
var m = s.getAttribute(p);
|
|
1387
1387
|
m !== null && d.setAttribute(p, m);
|
|
1388
1388
|
}), r.navbar && (d.src = u || f), d.alt = l, d.setAttribute("data-original-url", f || u), c.setAttribute("data-index", o), c.setAttribute("data-viewer-action", "view"), c.setAttribute("role", "button"), r.keyboard && c.setAttribute("tabindex", 0), c.appendChild(d), i.appendChild(c), a.push(c);
|
|
1389
1389
|
}
|
|
1390
|
-
}), this.items = a,
|
|
1390
|
+
}), this.items = a, fe(a, function(s) {
|
|
1391
1391
|
var o = s.firstElementChild, u, l;
|
|
1392
1392
|
Hr(o, "filled", !0), r.loading && H(s, Ft), q(o, Ke, u = function(c) {
|
|
1393
1393
|
le(o, yt, l), r.loading && ne(s, Ft), t.loadImage(c);
|
|
@@ -1399,7 +1399,7 @@ var Ku = {
|
|
|
1399
1399
|
once: !0
|
|
1400
1400
|
});
|
|
1401
1401
|
}), r.transition && q(n, un, function() {
|
|
1402
|
-
H(i,
|
|
1402
|
+
H(i, be);
|
|
1403
1403
|
}, {
|
|
1404
1404
|
once: !0
|
|
1405
1405
|
});
|
|
@@ -1417,7 +1417,7 @@ var Ku = {
|
|
|
1417
1417
|
},
|
|
1418
1418
|
resetList: function() {
|
|
1419
1419
|
var t = this.list;
|
|
1420
|
-
t.innerHTML = "", ne(t,
|
|
1420
|
+
t.innerHTML = "", ne(t, be), qe(t, Wn({
|
|
1421
1421
|
translateX: 0
|
|
1422
1422
|
}));
|
|
1423
1423
|
},
|
|
@@ -1429,7 +1429,7 @@ var Ku = {
|
|
|
1429
1429
|
}
|
|
1430
1430
|
}, f = Ao(i, r, function(c, d) {
|
|
1431
1431
|
var p = c / d, m = Math.max(0, Math.min(1, r.initialCoverage)), h = o, y = u;
|
|
1432
|
-
n.imageInitializing = !1, u * p > o ? y = o / p : h = u * p, m =
|
|
1432
|
+
n.imageInitializing = !1, u * p > o ? y = o / p : h = u * p, m = me(m) ? m : 0.9, h = Math.min(h * m, c), y = Math.min(y * m, d);
|
|
1433
1433
|
var E = (o - h) / 2, T = (u - y) / 2, b = {
|
|
1434
1434
|
left: E,
|
|
1435
1435
|
top: T,
|
|
@@ -1455,7 +1455,7 @@ var Ku = {
|
|
|
1455
1455
|
marginLeft: i.x,
|
|
1456
1456
|
marginTop: i.y
|
|
1457
1457
|
}, Wn(i))), t)
|
|
1458
|
-
if ((this.viewing || this.moving || this.rotating || this.scaling || this.zooming) && this.options.transition && Nt(r,
|
|
1458
|
+
if ((this.viewing || this.moving || this.rotating || this.scaling || this.zooming) && this.options.transition && Nt(r, be)) {
|
|
1459
1459
|
var a = function() {
|
|
1460
1460
|
n.imageRendering = !1, t();
|
|
1461
1461
|
};
|
|
@@ -1546,7 +1546,7 @@ var Ku = {
|
|
|
1546
1546
|
this.timeout && (clearTimeout(this.timeout), this.timeout = !1);
|
|
1547
1547
|
var n = this.element, r = this.options, i = this.image, a = this.index, s = this.viewerData;
|
|
1548
1548
|
ne(i, an), r.loading && ne(this.canvas, Ft), 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() {
|
|
1549
|
-
fn(i, Pu, r.movable), fn(i,
|
|
1549
|
+
fn(i, Pu, r.movable), fn(i, be, r.transition), t.renderImage(function() {
|
|
1550
1550
|
t.viewed = !0, t.viewing = !1, se(r.viewed) && q(n, un, r.viewed, {
|
|
1551
1551
|
once: !0
|
|
1552
1552
|
}), Se(n, un, {
|
|
@@ -1614,25 +1614,25 @@ var Ku = {
|
|
|
1614
1614
|
pointerdown: function(t) {
|
|
1615
1615
|
var n = this.options, r = this.pointers, i = t.buttons, a = t.button;
|
|
1616
1616
|
if (this.pointerMoved = !1, !(!this.viewed || this.showing || this.viewing || this.hiding || (t.type === "mousedown" || t.type === "pointerdown" && t.pointerType === "mouse") && // No primary button (Usually the left button)
|
|
1617
|
-
(
|
|
1618
|
-
t.preventDefault(), t.changedTouches ?
|
|
1617
|
+
(me(i) && i !== 1 || me(a) && a !== 0 || t.ctrlKey))) {
|
|
1618
|
+
t.preventDefault(), t.changedTouches ? fe(t.changedTouches, function(o) {
|
|
1619
1619
|
r[o.identifier] = Fn(o);
|
|
1620
1620
|
}) : r[t.pointerId || 0] = Fn(t);
|
|
1621
1621
|
var s = n.movable ? Yn : !1;
|
|
1622
|
-
n.zoomOnTouch && n.zoomable && Object.keys(r).length > 1 ? s = en : n.slideOnTouch && (t.pointerType === "touch" || t.type === "touchstart") && this.isSwitchable() && (s = Oo), n.transition && (s === Yn || s === en) && ne(this.image,
|
|
1622
|
+
n.zoomOnTouch && n.zoomable && Object.keys(r).length > 1 ? s = en : n.slideOnTouch && (t.pointerType === "touch" || t.type === "touchstart") && this.isSwitchable() && (s = Oo), n.transition && (s === Yn || s === en) && ne(this.image, be), this.action = s;
|
|
1623
1623
|
}
|
|
1624
1624
|
},
|
|
1625
1625
|
pointermove: function(t) {
|
|
1626
1626
|
var n = this.pointers, r = this.action;
|
|
1627
|
-
!this.viewed || !r || (t.preventDefault(), t.changedTouches ?
|
|
1627
|
+
!this.viewed || !r || (t.preventDefault(), t.changedTouches ? fe(t.changedTouches, function(i) {
|
|
1628
1628
|
Le(n[i.identifier] || {}, Fn(i, !0));
|
|
1629
1629
|
}) : Le(n[t.pointerId || 0] || {}, Fn(t, !0)), this.change(t));
|
|
1630
1630
|
},
|
|
1631
1631
|
pointerup: function(t) {
|
|
1632
1632
|
var n = this, r = this.options, i = this.action, a = this.pointers, s;
|
|
1633
|
-
t.changedTouches ?
|
|
1633
|
+
t.changedTouches ? fe(t.changedTouches, function(o) {
|
|
1634
1634
|
s = a[o.identifier], delete a[o.identifier];
|
|
1635
|
-
}) : (s = a[t.pointerId || 0], delete a[t.pointerId || 0]), i && (t.preventDefault(), r.transition && (i === Yn || i === en) && H(this.image,
|
|
1635
|
+
}) : (s = a[t.pointerId || 0], delete a[t.pointerId || 0]), i && (t.preventDefault(), r.transition && (i === Yn || i === en) && H(this.image, be), this.action = !1, xt && i !== en && 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() {
|
|
1636
1636
|
Se(n.image, Wr, {
|
|
1637
1637
|
originalEvent: t
|
|
1638
1638
|
});
|
|
@@ -1653,7 +1653,7 @@ var Ku = {
|
|
|
1653
1653
|
this.stop();
|
|
1654
1654
|
return;
|
|
1655
1655
|
}
|
|
1656
|
-
|
|
1656
|
+
fe(this.player.getElementsByTagName("img"), function(n) {
|
|
1657
1657
|
q(n, Ke, t.loadImage.bind(t), {
|
|
1658
1658
|
once: !0
|
|
1659
1659
|
}), Se(n, Ke);
|
|
@@ -1693,7 +1693,7 @@ var Ku = {
|
|
|
1693
1693
|
abort: function() {
|
|
1694
1694
|
le(i, He, a), ne(i, Be);
|
|
1695
1695
|
}
|
|
1696
|
-
}, H(i,
|
|
1696
|
+
}, H(i, be), i.initialOffsetWidth = i.offsetWidth, q(i, He, a, {
|
|
1697
1697
|
once: !0
|
|
1698
1698
|
}), H(i, Be);
|
|
1699
1699
|
} else
|
|
@@ -1721,13 +1721,13 @@ var Ku = {
|
|
|
1721
1721
|
var u = function f(c) {
|
|
1722
1722
|
c && c.target === a && (le(a, He, f), t.hidden());
|
|
1723
1723
|
}, l = function() {
|
|
1724
|
-
Nt(a,
|
|
1724
|
+
Nt(a, be) ? (q(a, He, u), ne(a, Be)) : o();
|
|
1725
1725
|
};
|
|
1726
1726
|
this.transitioning = {
|
|
1727
1727
|
abort: function() {
|
|
1728
|
-
t.viewed && Nt(s,
|
|
1728
|
+
t.viewed && Nt(s, be) ? le(s, He, l) : Nt(a, be) && le(a, He, u);
|
|
1729
1729
|
}
|
|
1730
|
-
}, this.viewed && Nt(s,
|
|
1730
|
+
}, this.viewed && Nt(s, be) ? (q(s, He, l, {
|
|
1731
1731
|
once: !0
|
|
1732
1732
|
}), this.zoomTo(0, !1, null, null, !0)) : l();
|
|
1733
1733
|
} else
|
|
@@ -1747,7 +1747,7 @@ var Ku = {
|
|
|
1747
1747
|
return this.index = n, this.show();
|
|
1748
1748
|
this.viewing && this.viewing.abort();
|
|
1749
1749
|
var r = this.element, i = this.options, a = this.title, s = this.canvas, o = this.items[n], u = o.querySelector("img"), l = kt(u, "originalUrl"), f = u.getAttribute("alt"), c = document.createElement("img");
|
|
1750
|
-
if (
|
|
1750
|
+
if (fe(i.inheritedAttributes, function(y) {
|
|
1751
1751
|
var E = u.getAttribute(y);
|
|
1752
1752
|
E !== null && c.setAttribute(y, E);
|
|
1753
1753
|
}), c.src = l, c.alt = f, se(i.view) && q(r, ta, i.view, {
|
|
@@ -1823,7 +1823,7 @@ var Ku = {
|
|
|
1823
1823
|
var n = this, r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : t, i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null, a = this.element, s = this.options, o = this.imageData;
|
|
1824
1824
|
if (t = Number(t), r = Number(r), this.viewed && !this.played && s.movable) {
|
|
1825
1825
|
var u = o.x, l = o.y, f = !1;
|
|
1826
|
-
if (
|
|
1826
|
+
if (me(t) ? f = !0 : t = u, me(r) ? f = !0 : r = l, f) {
|
|
1827
1827
|
if (se(s.move) && q(a, na, s.move, {
|
|
1828
1828
|
once: !0
|
|
1829
1829
|
}), Se(a, na, {
|
|
@@ -1866,7 +1866,7 @@ var Ku = {
|
|
|
1866
1866
|
*/
|
|
1867
1867
|
rotateTo: function(t) {
|
|
1868
1868
|
var n = this, r = this.element, i = this.options, a = this.imageData;
|
|
1869
|
-
if (t = Number(t),
|
|
1869
|
+
if (t = Number(t), me(t) && this.viewed && !this.played && i.rotatable) {
|
|
1870
1870
|
var s = a.rotate;
|
|
1871
1871
|
if (se(i.rotate) && q(r, ia, i.rotate, {
|
|
1872
1872
|
once: !0
|
|
@@ -1914,7 +1914,7 @@ var Ku = {
|
|
|
1914
1914
|
var n = this, r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : t, i = this.element, a = this.options, s = this.imageData;
|
|
1915
1915
|
if (t = Number(t), r = Number(r), this.viewed && !this.played && a.scalable) {
|
|
1916
1916
|
var o = s.scaleX, u = s.scaleY, l = !1;
|
|
1917
|
-
if (
|
|
1917
|
+
if (me(t) ? l = !0 : t = o, me(r) ? l = !0 : r = u, l) {
|
|
1918
1918
|
if (se(a.scale) && q(i, oa, a.scale, {
|
|
1919
1919
|
once: !0
|
|
1920
1920
|
}), Se(i, oa, {
|
|
@@ -1963,7 +1963,7 @@ var Ku = {
|
|
|
1963
1963
|
*/
|
|
1964
1964
|
zoomTo: function(t) {
|
|
1965
1965
|
var n = this, r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null, a = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : null, s = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !1, o = this.element, u = this.options, l = this.pointers, f = this.imageData, c = f.x, d = f.y, p = f.width, m = f.height, h = f.naturalWidth, y = f.naturalHeight;
|
|
1966
|
-
if (t = Math.max(0, t),
|
|
1966
|
+
if (t = Math.max(0, t), me(t) && this.viewed && !this.played && (s || u.zoomable)) {
|
|
1967
1967
|
if (!s) {
|
|
1968
1968
|
var E = Math.max(0.01, u.minZoomRatio), T = Math.min(100, u.maxZoomRatio);
|
|
1969
1969
|
t = Math.min(Math.max(t, E), T);
|
|
@@ -1995,7 +1995,7 @@ var Ku = {
|
|
|
1995
1995
|
};
|
|
1996
1996
|
f.x -= O * ((w.pageX - A.left - c) / p), f.y -= C * ((w.pageY - A.top - d) / m);
|
|
1997
1997
|
} else
|
|
1998
|
-
Mt(i) &&
|
|
1998
|
+
Mt(i) && me(i.x) && me(i.y) ? (f.x -= O * ((i.x - c) / p), f.y -= C * ((i.y - d) / m)) : (f.x -= O / 2, f.y -= C / 2);
|
|
1999
1999
|
f.left = f.x, f.top = f.y, f.width = b, f.height = $, f.oldRatio = v, f.ratio = t, this.renderImage(function() {
|
|
2000
2000
|
n.zooming = !1, se(u.zoomed) && q(o, ua, u.zoomed, {
|
|
2001
2001
|
once: !0
|
|
@@ -2025,12 +2025,12 @@ var Ku = {
|
|
|
2025
2025
|
}), Se(r, ca) === !1)
|
|
2026
2026
|
return this;
|
|
2027
2027
|
var a = this.player, s = this.loadImage.bind(this), o = [], u = 0, l = 0;
|
|
2028
|
-
if (this.played = !0, this.onLoadWhenPlay = s, n && this.requestFullscreen(n), H(a, Pt),
|
|
2028
|
+
if (this.played = !0, this.onLoadWhenPlay = s, n && this.requestFullscreen(n), H(a, Pt), fe(this.items, function(d, p) {
|
|
2029
2029
|
var m = d.querySelector("img"), h = document.createElement("img");
|
|
2030
|
-
h.src = kt(m, "originalUrl"), h.alt = m.getAttribute("alt"), h.referrerPolicy = m.referrerPolicy, u += 1, H(h, Vn), fn(h,
|
|
2030
|
+
h.src = kt(m, "originalUrl"), h.alt = m.getAttribute("alt"), h.referrerPolicy = m.referrerPolicy, u += 1, H(h, Vn), fn(h, be, i.transition), Nt(d, kn) && (H(h, Be), l = p), o.push(h), q(h, Ke, s, {
|
|
2031
2031
|
once: !0
|
|
2032
2032
|
}), a.appendChild(h);
|
|
2033
|
-
}),
|
|
2033
|
+
}), me(i.interval) && i.interval > 0) {
|
|
2034
2034
|
var f = function d() {
|
|
2035
2035
|
clearTimeout(t.playing.timeout), ne(o[l], Be), l -= 1, l = l >= 0 ? l : u - 1, H(o[l], Be), t.playing.timeout = setTimeout(d, i.interval);
|
|
2036
2036
|
}, c = function d() {
|
|
@@ -2055,19 +2055,19 @@ var Ku = {
|
|
|
2055
2055
|
}), Se(n, fa) === !1)
|
|
2056
2056
|
return this;
|
|
2057
2057
|
var i = this.player;
|
|
2058
|
-
return clearTimeout(this.playing.timeout), this.playing = !1, this.played = !1,
|
|
2058
|
+
return clearTimeout(this.playing.timeout), this.playing = !1, this.played = !1, fe(i.getElementsByTagName("img"), function(a) {
|
|
2059
2059
|
le(a, Ke, t.onLoadWhenPlay);
|
|
2060
2060
|
}), ne(i, Pt), i.innerHTML = "", this.exitFullscreen(), this;
|
|
2061
2061
|
},
|
|
2062
2062
|
// Enter modal mode (only available in inline mode)
|
|
2063
2063
|
full: function() {
|
|
2064
2064
|
var t = this, n = this.options, r = this.viewer, i = this.image, a = this.list;
|
|
2065
|
-
return !this.isShown || this.played || this.fulled || !n.inline ? this : (this.fulled = !0, this.open(), H(this.button, zi), n.transition && (ne(a,
|
|
2065
|
+
return !this.isShown || this.played || this.fulled || !n.inline ? this : (this.fulled = !0, this.open(), H(this.button, zi), n.transition && (ne(a, be), this.viewed && ne(i, be)), H(r, Vr), r.setAttribute("role", "dialog"), r.setAttribute("aria-labelledby", this.title.id), r.setAttribute("aria-modal", !0), r.removeAttribute("style"), qe(r, {
|
|
2066
2066
|
zIndex: n.zIndex
|
|
2067
2067
|
}), n.focus && this.enforceFocus(), this.initContainer(), this.viewerData = Le({}, this.containerData), this.renderList(), this.viewed && this.initImage(function() {
|
|
2068
2068
|
t.renderImage(function() {
|
|
2069
2069
|
n.transition && setTimeout(function() {
|
|
2070
|
-
H(i,
|
|
2070
|
+
H(i, be), H(a, be);
|
|
2071
2071
|
}, 0);
|
|
2072
2072
|
});
|
|
2073
2073
|
}), this);
|
|
@@ -2075,12 +2075,12 @@ var Ku = {
|
|
|
2075
2075
|
// Exit modal mode (only available in inline mode)
|
|
2076
2076
|
exit: function() {
|
|
2077
2077
|
var t = this, n = this.options, r = this.viewer, i = this.image, a = this.list;
|
|
2078
|
-
return !this.isShown || this.played || !this.fulled || !n.inline ? this : (this.fulled = !1, this.close(), ne(this.button, zi), n.transition && (ne(a,
|
|
2078
|
+
return !this.isShown || this.played || !this.fulled || !n.inline ? this : (this.fulled = !1, this.close(), ne(this.button, zi), n.transition && (ne(a, be), this.viewed && ne(i, be)), n.focus && this.clearEnforceFocus(), r.removeAttribute("role"), r.removeAttribute("aria-labelledby"), r.removeAttribute("aria-modal"), ne(r, Vr), qe(r, {
|
|
2079
2079
|
zIndex: n.zIndexInline
|
|
2080
2080
|
}), this.viewerData = Le({}, this.parentData), this.renderViewer(), this.renderList(), this.viewed && this.initImage(function() {
|
|
2081
2081
|
t.renderImage(function() {
|
|
2082
2082
|
n.transition && setTimeout(function() {
|
|
2083
|
-
H(i,
|
|
2083
|
+
H(i, be), H(a, be);
|
|
2084
2084
|
}, 0);
|
|
2085
2085
|
});
|
|
2086
2086
|
}), this);
|
|
@@ -2088,9 +2088,9 @@ var Ku = {
|
|
|
2088
2088
|
// Show the current ratio of the image with percentage
|
|
2089
2089
|
tooltip: function() {
|
|
2090
2090
|
var t = this, n = this.options, r = this.tooltipBox, i = this.imageData;
|
|
2091
|
-
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, He), H(r, Pt), H(r, Vn), H(r,
|
|
2091
|
+
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, He), H(r, Pt), H(r, Vn), H(r, be), r.removeAttribute("aria-hidden"), r.initialOffsetWidth = r.offsetWidth, H(r, Be)) : (H(r, Pt), r.removeAttribute("aria-hidden")), this.tooltipping = setTimeout(function() {
|
|
2092
2092
|
n.transition ? (q(r, He, function() {
|
|
2093
|
-
ne(r, Pt), ne(r, Vn), ne(r,
|
|
2093
|
+
ne(r, Pt), ne(r, Vn), ne(r, be), r.setAttribute("aria-hidden", !0), t.fading = !1;
|
|
2094
2094
|
}, {
|
|
2095
2095
|
once: !0
|
|
2096
2096
|
}), ne(r, Be), t.fading = !0) : (ne(r, Pt), r.setAttribute("aria-hidden", !0)), t.tooltipping = !1;
|
|
@@ -2115,13 +2115,13 @@ var Ku = {
|
|
|
2115
2115
|
if (i && !n.parentNode)
|
|
2116
2116
|
return this.destroy();
|
|
2117
2117
|
var a = [];
|
|
2118
|
-
if (
|
|
2118
|
+
if (fe(i ? [n] : n.querySelectorAll("img"), function(l) {
|
|
2119
2119
|
se(r.filter) ? r.filter.call(t, l) && a.push(l) : t.getImageURL(l) && a.push(l);
|
|
2120
2120
|
}), !a.length)
|
|
2121
2121
|
return this;
|
|
2122
2122
|
if (this.images = a, this.length = a.length, this.ready) {
|
|
2123
2123
|
var s = [];
|
|
2124
|
-
if (
|
|
2124
|
+
if (fe(this.items, function(l, f) {
|
|
2125
2125
|
var c = l.querySelector("img"), d = a[f];
|
|
2126
2126
|
d && c ? (d.src !== c.src || d.alt !== c.alt) && s.push(f) : s.push(f);
|
|
2127
2127
|
}), qe(this.list, {
|
|
@@ -2221,7 +2221,7 @@ var Ku = {
|
|
|
2221
2221
|
break;
|
|
2222
2222
|
}
|
|
2223
2223
|
}
|
|
2224
|
-
|
|
2224
|
+
fe(r, function(u) {
|
|
2225
2225
|
u.startX = u.endX, u.startY = u.endY;
|
|
2226
2226
|
});
|
|
2227
2227
|
}
|
|
@@ -2248,7 +2248,7 @@ var Ku = {
|
|
|
2248
2248
|
if (!r[J]) {
|
|
2249
2249
|
r[J] = this, i.focus && !i.keyboard && (i.focus = !1);
|
|
2250
2250
|
var a = r.localName === "img", s = [];
|
|
2251
|
-
if (
|
|
2251
|
+
if (fe(a ? [r] : r.querySelectorAll("img"), function(l) {
|
|
2252
2252
|
se(i.filter) ? i.filter.call(n, l) && s.push(l) : n.getImageURL(l) && s.push(l);
|
|
2253
2253
|
}), this.isImg = a, this.length = s.length, this.images = s, this.initBody(), Rt(document.createElement(J).style.transition) && (i.transition = !1), i.inline) {
|
|
2254
2254
|
var o = 0, u = function() {
|
|
@@ -2265,11 +2265,11 @@ var Ku = {
|
|
|
2265
2265
|
};
|
|
2266
2266
|
this.initializing = {
|
|
2267
2267
|
abort: function() {
|
|
2268
|
-
|
|
2268
|
+
fe(s, function(f) {
|
|
2269
2269
|
f.complete || (le(f, Ke, u), le(f, yt, u));
|
|
2270
2270
|
});
|
|
2271
2271
|
}
|
|
2272
|
-
},
|
|
2272
|
+
}, fe(s, function(l) {
|
|
2273
2273
|
if (l.complete)
|
|
2274
2274
|
u();
|
|
2275
2275
|
else {
|
|
@@ -2303,18 +2303,18 @@ var Ku = {
|
|
|
2303
2303
|
H(s, b);
|
|
2304
2304
|
}), r.toolbar) {
|
|
2305
2305
|
var d = document.createElement("ul"), p = Mt(r.toolbar), m = Ln.slice(0, 3), h = Ln.slice(7, 9), y = Ln.slice(9);
|
|
2306
|
-
p || H(u, xn(r.toolbar)),
|
|
2306
|
+
p || H(u, xn(r.toolbar)), fe(p ? r.toolbar : Ln, function(b, $) {
|
|
2307
2307
|
var O = p && Mt(b), C = p ? fi($) : b, v = O && !Rt(b.show) ? b.show : b;
|
|
2308
2308
|
if (!(!v || !r.zoomable && m.indexOf(C) !== -1 || !r.rotatable && h.indexOf(C) !== -1 || !r.scalable && y.indexOf(C) !== -1)) {
|
|
2309
2309
|
var A = O && !Rt(b.size) ? b.size : b, w = O && !Rt(b.click) ? b.click : b, g = document.createElement("li");
|
|
2310
|
-
r.keyboard && g.setAttribute("tabindex", 0), g.setAttribute("role", "button"), H(g, "".concat(J, "-").concat(C)), se(w) || Hr(g, er, C),
|
|
2310
|
+
r.keyboard && g.setAttribute("tabindex", 0), g.setAttribute("role", "button"), H(g, "".concat(J, "-").concat(C)), se(w) || Hr(g, er, C), me(v) && H(g, xn(v)), ["small", "large"].indexOf(A) !== -1 ? H(g, "".concat(J, "-").concat(A)) : C === "play" && H(g, "".concat(J, "-large")), se(w) && q(g, Kt, w), d.appendChild(g);
|
|
2311
2311
|
}
|
|
2312
2312
|
}), u.appendChild(d);
|
|
2313
2313
|
} else
|
|
2314
2314
|
H(u, mt);
|
|
2315
2315
|
if (!r.rotatable) {
|
|
2316
2316
|
var E = u.querySelectorAll('li[class*="rotate"]');
|
|
2317
|
-
H(E, an),
|
|
2317
|
+
H(E, an), fe(E, function(b) {
|
|
2318
2318
|
u.appendChild(b);
|
|
2319
2319
|
});
|
|
2320
2320
|
}
|
|
@@ -2586,11 +2586,11 @@ function ef() {
|
|
|
2586
2586
|
}
|
|
2587
2587
|
var zo = typeof exports == "object" && exports && !exports.nodeType && exports, ma = zo && typeof module == "object" && module && !module.nodeType && module, tf = ma && ma.exports === zo, va = tf ? di.Buffer : void 0, nf = va ? va.isBuffer : void 0, rf = nf || ef;
|
|
2588
2588
|
const af = rf;
|
|
2589
|
-
var of = "[object Arguments]", sf = "[object Array]", lf = "[object Boolean]", uf = "[object Date]", cf = "[object Error]", ff = "[object Function]", df = "[object Map]", pf = "[object Number]", hf = "[object Object]", gf = "[object RegExp]", mf = "[object Set]", vf = "[object String]", yf = "[object WeakMap]", bf = "[object ArrayBuffer]", wf = "[object DataView]", Sf = "[object Float32Array]", Ef = "[object Float64Array]", Cf = "[object Int8Array]", Tf = "[object Int16Array]", Of = "[object Int32Array]", _f = "[object Uint8Array]", Af = "[object Uint8ClampedArray]", $f = "[object Uint16Array]", Pf = "[object Uint32Array]",
|
|
2590
|
-
|
|
2591
|
-
|
|
2589
|
+
var of = "[object Arguments]", sf = "[object Array]", lf = "[object Boolean]", uf = "[object Date]", cf = "[object Error]", ff = "[object Function]", df = "[object Map]", pf = "[object Number]", hf = "[object Object]", gf = "[object RegExp]", mf = "[object Set]", vf = "[object String]", yf = "[object WeakMap]", bf = "[object ArrayBuffer]", wf = "[object DataView]", Sf = "[object Float32Array]", Ef = "[object Float64Array]", Cf = "[object Int8Array]", Tf = "[object Int16Array]", Of = "[object Int32Array]", _f = "[object Uint8Array]", Af = "[object Uint8ClampedArray]", $f = "[object Uint16Array]", Pf = "[object Uint32Array]", de = {};
|
|
2590
|
+
de[Sf] = de[Ef] = de[Cf] = de[Tf] = de[Of] = de[_f] = de[Af] = de[$f] = de[Pf] = !0;
|
|
2591
|
+
de[of] = de[sf] = de[bf] = de[lf] = de[wf] = de[uf] = de[cf] = de[ff] = de[df] = de[pf] = de[hf] = de[gf] = de[mf] = de[vf] = de[yf] = !1;
|
|
2592
2592
|
function If(e) {
|
|
2593
|
-
return hi(e) && xo(e.length) && !!
|
|
2593
|
+
return hi(e) && xo(e.length) && !!de[pi(e)];
|
|
2594
2594
|
}
|
|
2595
2595
|
function Df(e) {
|
|
2596
2596
|
return function(t) {
|
|
@@ -2822,7 +2822,7 @@ const rd = /* @__PURE__ */ ed(Jf, [["render", nd]]), id = { style: { height: "80
|
|
|
2822
2822
|
style: { width: "100%", cursor: "move" }
|
|
2823
2823
|
}, [
|
|
2824
2824
|
W(Kn(dl), { style: { "margin-right": "6px" } }),
|
|
2825
|
-
|
|
2825
|
+
we("预览 ")
|
|
2826
2826
|
], 512)
|
|
2827
2827
|
]),
|
|
2828
2828
|
modalRender: F(({ originVNode: L }) => [
|
|
@@ -2840,7 +2840,7 @@ const rd = /* @__PURE__ */ ed(Jf, [["render", nd]]), id = { style: { height: "80
|
|
|
2840
2840
|
}, {
|
|
2841
2841
|
default: F((L) => [
|
|
2842
2842
|
Ae("div", id, [
|
|
2843
|
-
(k(!0), Z(
|
|
2843
|
+
(k(!0), Z(ve, null, Me(L.images, (R) => (k(), Z("img", {
|
|
2844
2844
|
style: { opacity: "0" },
|
|
2845
2845
|
src: R,
|
|
2846
2846
|
key: R
|
|
@@ -3015,15 +3015,15 @@ var Yo = { exports: {} };
|
|
|
3015
3015
|
return V ? De : De.endOf(l);
|
|
3016
3016
|
}, re = function(Ie, Ce) {
|
|
3017
3017
|
return S.w(M.toDate()[Ie].apply(M.toDate("s"), (V ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(Ce)), M);
|
|
3018
|
-
}, ie = this.$W,
|
|
3018
|
+
}, ie = this.$W, he = this.$M, ye = this.$D, $e = "set" + (this.$u ? "UTC" : "");
|
|
3019
3019
|
switch (Y) {
|
|
3020
3020
|
case p:
|
|
3021
3021
|
return V ? ee(1, 0) : ee(31, 11);
|
|
3022
3022
|
case c:
|
|
3023
|
-
return V ? ee(1,
|
|
3023
|
+
return V ? ee(1, he) : ee(0, he + 1);
|
|
3024
3024
|
case f:
|
|
3025
3025
|
var Pe = this.$locale().weekStart || 0, Fe = (ie < Pe ? ie + 7 : ie) - Pe;
|
|
3026
|
-
return ee(V ?
|
|
3026
|
+
return ee(V ? ye - Fe : ye + (6 - Fe), he);
|
|
3027
3027
|
case l:
|
|
3028
3028
|
case m:
|
|
3029
3029
|
return re($e + "Hours", 0);
|
|
@@ -3053,9 +3053,9 @@ var Yo = { exports: {} };
|
|
|
3053
3053
|
}, R.add = function(I, x) {
|
|
3054
3054
|
var M, V = this;
|
|
3055
3055
|
I = Number(I);
|
|
3056
|
-
var Y = S.p(x), ee = function(
|
|
3057
|
-
var
|
|
3058
|
-
return S.w(
|
|
3056
|
+
var Y = S.p(x), ee = function(he) {
|
|
3057
|
+
var ye = g(V);
|
|
3058
|
+
return S.w(ye.date(ye.date() + Math.round(he * I)), V);
|
|
3059
3059
|
};
|
|
3060
3060
|
if (Y === c)
|
|
3061
3061
|
return this.set(c, this.$M + I);
|
|
@@ -3073,7 +3073,7 @@ var Yo = { exports: {} };
|
|
|
3073
3073
|
var x = this, M = this.$locale();
|
|
3074
3074
|
if (!this.isValid())
|
|
3075
3075
|
return M.invalidDate || h;
|
|
3076
|
-
var V = I || "YYYY-MM-DDTHH:mm:ssZ", Y = S.z(this), ee = this.$H, re = this.$m, ie = this.$M,
|
|
3076
|
+
var V = I || "YYYY-MM-DDTHH:mm:ssZ", Y = S.z(this), ee = this.$H, re = this.$m, ie = this.$M, he = M.weekdays, ye = M.months, $e = M.meridiem, Pe = function(Ce, De, je, We) {
|
|
3077
3077
|
return Ce && (Ce[De] || Ce(x, V)) || je[De].slice(0, We);
|
|
3078
3078
|
}, Fe = function(Ce) {
|
|
3079
3079
|
return S.s(ee % 12 || 12, Ce, "0");
|
|
@@ -3093,9 +3093,9 @@ var Yo = { exports: {} };
|
|
|
3093
3093
|
case "MM":
|
|
3094
3094
|
return S.s(ie + 1, 2, "0");
|
|
3095
3095
|
case "MMM":
|
|
3096
|
-
return Pe(M.monthsShort, ie,
|
|
3096
|
+
return Pe(M.monthsShort, ie, ye, 3);
|
|
3097
3097
|
case "MMMM":
|
|
3098
|
-
return Pe(
|
|
3098
|
+
return Pe(ye, ie);
|
|
3099
3099
|
case "D":
|
|
3100
3100
|
return x.$D;
|
|
3101
3101
|
case "DD":
|
|
@@ -3103,11 +3103,11 @@ var Yo = { exports: {} };
|
|
|
3103
3103
|
case "d":
|
|
3104
3104
|
return String(x.$W);
|
|
3105
3105
|
case "dd":
|
|
3106
|
-
return Pe(M.weekdaysMin, x.$W,
|
|
3106
|
+
return Pe(M.weekdaysMin, x.$W, he, 2);
|
|
3107
3107
|
case "ddd":
|
|
3108
|
-
return Pe(M.weekdaysShort, x.$W,
|
|
3108
|
+
return Pe(M.weekdaysShort, x.$W, he, 3);
|
|
3109
3109
|
case "dddd":
|
|
3110
|
-
return
|
|
3110
|
+
return he[x.$W];
|
|
3111
3111
|
case "H":
|
|
3112
3112
|
return String(ee);
|
|
3113
3113
|
case "HH":
|
|
@@ -3139,36 +3139,36 @@ var Yo = { exports: {} };
|
|
|
3139
3139
|
}, R.utcOffset = function() {
|
|
3140
3140
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
3141
3141
|
}, R.diff = function(I, x, M) {
|
|
3142
|
-
var V, Y = this, ee = S.p(x), re = g(I), ie = (re.utcOffset() - this.utcOffset()) * r,
|
|
3142
|
+
var V, Y = this, ee = S.p(x), re = g(I), ie = (re.utcOffset() - this.utcOffset()) * r, he = this - re, ye = function() {
|
|
3143
3143
|
return S.m(Y, re);
|
|
3144
3144
|
};
|
|
3145
3145
|
switch (ee) {
|
|
3146
3146
|
case p:
|
|
3147
|
-
V =
|
|
3147
|
+
V = ye() / 12;
|
|
3148
3148
|
break;
|
|
3149
3149
|
case c:
|
|
3150
|
-
V =
|
|
3150
|
+
V = ye();
|
|
3151
3151
|
break;
|
|
3152
3152
|
case d:
|
|
3153
|
-
V =
|
|
3153
|
+
V = ye() / 3;
|
|
3154
3154
|
break;
|
|
3155
3155
|
case f:
|
|
3156
|
-
V = (
|
|
3156
|
+
V = (he - ie) / 6048e5;
|
|
3157
3157
|
break;
|
|
3158
3158
|
case l:
|
|
3159
|
-
V = (
|
|
3159
|
+
V = (he - ie) / 864e5;
|
|
3160
3160
|
break;
|
|
3161
3161
|
case u:
|
|
3162
|
-
V =
|
|
3162
|
+
V = he / i;
|
|
3163
3163
|
break;
|
|
3164
3164
|
case o:
|
|
3165
|
-
V =
|
|
3165
|
+
V = he / r;
|
|
3166
3166
|
break;
|
|
3167
3167
|
case s:
|
|
3168
|
-
V =
|
|
3168
|
+
V = he / n;
|
|
3169
3169
|
break;
|
|
3170
3170
|
default:
|
|
3171
|
-
V =
|
|
3171
|
+
V = he;
|
|
3172
3172
|
}
|
|
3173
3173
|
return M ? V : S.a(V);
|
|
3174
3174
|
}, R.daysInMonth = function() {
|
|
@@ -3475,11 +3475,11 @@ function Pp() {
|
|
|
3475
3475
|
}
|
|
3476
3476
|
var es = typeof exports == "object" && exports && !exports.nodeType && exports, Pa = es && typeof module == "object" && module && !module.nodeType && module, Ip = Pa && Pa.exports === es, Ia = Ip ? Ze.Buffer : void 0, Dp = Ia ? Ia.isBuffer : void 0, Np = Dp || Pp;
|
|
3477
3477
|
const rr = Np;
|
|
3478
|
-
var Rp = "[object Arguments]", Mp = "[object Array]", kp = "[object Boolean]", Lp = "[object Date]", xp = "[object Error]", Fp = "[object Function]", jp = "[object Map]", zp = "[object Number]", Bp = "[object Object]", Kp = "[object RegExp]", Up = "[object Set]", Yp = "[object String]", Vp = "[object WeakMap]", Wp = "[object ArrayBuffer]", Hp = "[object DataView]", Gp = "[object Float32Array]", qp = "[object Float64Array]", Xp = "[object Int8Array]", Qp = "[object Int16Array]", Zp = "[object Int32Array]", Jp = "[object Uint8Array]", eh = "[object Uint8ClampedArray]", th = "[object Uint16Array]", nh = "[object Uint32Array]",
|
|
3479
|
-
|
|
3480
|
-
|
|
3478
|
+
var Rp = "[object Arguments]", Mp = "[object Array]", kp = "[object Boolean]", Lp = "[object Date]", xp = "[object Error]", Fp = "[object Function]", jp = "[object Map]", zp = "[object Number]", Bp = "[object Object]", Kp = "[object RegExp]", Up = "[object Set]", Yp = "[object String]", Vp = "[object WeakMap]", Wp = "[object ArrayBuffer]", Hp = "[object DataView]", Gp = "[object Float32Array]", qp = "[object Float64Array]", Xp = "[object Int8Array]", Qp = "[object Int16Array]", Zp = "[object Int32Array]", Jp = "[object Uint8Array]", eh = "[object Uint8ClampedArray]", th = "[object Uint16Array]", nh = "[object Uint32Array]", pe = {};
|
|
3479
|
+
pe[Gp] = pe[qp] = pe[Xp] = pe[Qp] = pe[Zp] = pe[Jp] = pe[eh] = pe[th] = pe[nh] = !0;
|
|
3480
|
+
pe[Rp] = pe[Mp] = pe[Wp] = pe[kp] = pe[Hp] = pe[Lp] = pe[xp] = pe[Fp] = pe[jp] = pe[zp] = pe[Bp] = pe[Kp] = pe[Up] = pe[Yp] = pe[Vp] = !1;
|
|
3481
3481
|
function rh(e) {
|
|
3482
|
-
return st(e) && wi(e.length) && !!
|
|
3482
|
+
return st(e) && wi(e.length) && !!pe[Tt(e)];
|
|
3483
3483
|
}
|
|
3484
3484
|
function gr(e) {
|
|
3485
3485
|
return function(t) {
|
|
@@ -4808,7 +4808,7 @@ function Cy(e, t, n, r, i, a) {
|
|
|
4808
4808
|
default: F(() => [
|
|
4809
4809
|
W(p, { gutter: 24 }, {
|
|
4810
4810
|
default: F(() => [
|
|
4811
|
-
(k(!0), Z(
|
|
4811
|
+
(k(!0), Z(ve, null, Me(e.config, (h, y) => {
|
|
4812
4812
|
var E;
|
|
4813
4813
|
return Zn((k(), X(u, {
|
|
4814
4814
|
key: h.fieldName,
|
|
@@ -4856,7 +4856,7 @@ function Cy(e, t, n, r, i, a) {
|
|
|
4856
4856
|
loading: e.searching
|
|
4857
4857
|
}, {
|
|
4858
4858
|
default: F(() => [
|
|
4859
|
-
|
|
4859
|
+
we(ce(e.$t("query") || "查询"), 1)
|
|
4860
4860
|
]),
|
|
4861
4861
|
_: 1
|
|
4862
4862
|
}, 8, ["onClick", "loading"]),
|
|
@@ -4865,7 +4865,7 @@ function Cy(e, t, n, r, i, a) {
|
|
|
4865
4865
|
onClick: t[0] || (t[0] = (h) => e.$emit("resetSearch"))
|
|
4866
4866
|
}, {
|
|
4867
4867
|
default: F(() => [
|
|
4868
|
-
|
|
4868
|
+
we(ce(e.$t("reset") || "重置"), 1)
|
|
4869
4869
|
]),
|
|
4870
4870
|
_: 1
|
|
4871
4871
|
}),
|
|
@@ -4874,14 +4874,14 @@ function Cy(e, t, n, r, i, a) {
|
|
|
4874
4874
|
style: { "font-size": "12px" },
|
|
4875
4875
|
onClick: t[1] || (t[1] = (h) => e.expand = !e.expand)
|
|
4876
4876
|
}, [
|
|
4877
|
-
e.expand ? (k(), Z(
|
|
4877
|
+
e.expand ? (k(), Z(ve, { key: 0 }, [
|
|
4878
4878
|
W(f),
|
|
4879
|
-
|
|
4880
|
-
], 64)) : (k(), Z(
|
|
4879
|
+
we(ce(e.$t("collapse") || "收起"), 1)
|
|
4880
|
+
], 64)) : (k(), Z(ve, { key: 1 }, [
|
|
4881
4881
|
W(c),
|
|
4882
|
-
|
|
4882
|
+
we(ce(e.$t("expand") || "展开"), 1)
|
|
4883
4883
|
], 64))
|
|
4884
|
-
])) :
|
|
4884
|
+
])) : ge("", !0)
|
|
4885
4885
|
]),
|
|
4886
4886
|
_: 1
|
|
4887
4887
|
})
|
|
@@ -5099,19 +5099,19 @@ function Ly(e, t, n, r, i, a) {
|
|
|
5099
5099
|
Ae("div", Ny, [
|
|
5100
5100
|
W(l, null, {
|
|
5101
5101
|
default: F(() => [
|
|
5102
|
-
(k(!0), Z(
|
|
5102
|
+
(k(!0), Z(ve, null, Me(e.config, (E, T) => Zn((k(), X(Bt(E.type), Ge(E.otherProps, {
|
|
5103
5103
|
key: `${E.type}${T}`,
|
|
5104
5104
|
onClick: (b) => e.handleButtonClick(E, b)
|
|
5105
5105
|
}), po({
|
|
5106
5106
|
overlay: F(() => [
|
|
5107
5107
|
W(u, null, {
|
|
5108
5108
|
default: F(() => [
|
|
5109
|
-
(k(!0), Z(
|
|
5109
|
+
(k(!0), Z(ve, null, Me(E.sublist, (b) => (k(), X(o, {
|
|
5110
5110
|
key: b.action,
|
|
5111
5111
|
onClick: ($) => e.handleButtonClick(b, $)
|
|
5112
5112
|
}, {
|
|
5113
5113
|
default: F(() => [
|
|
5114
|
-
|
|
5114
|
+
we(ce(b.children), 1)
|
|
5115
5115
|
]),
|
|
5116
5116
|
_: 2
|
|
5117
5117
|
}, 1032, ["onClick"]))), 128))
|
|
@@ -5120,7 +5120,7 @@ function Ly(e, t, n, r, i, a) {
|
|
|
5120
5120
|
}, 1024)
|
|
5121
5121
|
]),
|
|
5122
5122
|
default: F(() => [
|
|
5123
|
-
|
|
5123
|
+
we(" " + ce(E.children) + " ", 1)
|
|
5124
5124
|
]),
|
|
5125
5125
|
_: 2
|
|
5126
5126
|
}, [
|
|
@@ -5145,7 +5145,7 @@ function Ly(e, t, n, r, i, a) {
|
|
|
5145
5145
|
default: F(() => {
|
|
5146
5146
|
var E, T;
|
|
5147
5147
|
return [
|
|
5148
|
-
e.hasApiConfig ? (k(), Z(
|
|
5148
|
+
e.hasApiConfig ? (k(), Z(ve, { key: 0 }, [
|
|
5149
5149
|
(E = e.importConfig) != null && E.children ? (k(), X(c, {
|
|
5150
5150
|
key: 0,
|
|
5151
5151
|
trigger: ["click"],
|
|
@@ -5154,12 +5154,12 @@ function Ly(e, t, n, r, i, a) {
|
|
|
5154
5154
|
overlay: F(() => [
|
|
5155
5155
|
W(u, null, {
|
|
5156
5156
|
default: F(() => [
|
|
5157
|
-
(k(!0), Z(
|
|
5157
|
+
(k(!0), Z(ve, null, Me(e.importConfig.children, (b, $) => (k(), X(o, {
|
|
5158
5158
|
key: $,
|
|
5159
5159
|
onClick: () => e.handleImport(b, $)
|
|
5160
5160
|
}, {
|
|
5161
5161
|
default: F(() => [
|
|
5162
|
-
|
|
5162
|
+
we(ce(b.title), 1)
|
|
5163
5163
|
]),
|
|
5164
5164
|
_: 2
|
|
5165
5165
|
}, 1032, ["onClick"]))), 128))
|
|
@@ -5174,13 +5174,13 @@ function Ly(e, t, n, r, i, a) {
|
|
|
5174
5174
|
type: "primary"
|
|
5175
5175
|
}, {
|
|
5176
5176
|
default: F(() => [
|
|
5177
|
-
|
|
5177
|
+
we(ce(e.importConfig.title || "导入"), 1)
|
|
5178
5178
|
]),
|
|
5179
5179
|
_: 1
|
|
5180
5180
|
}, 8, ["loading"])
|
|
5181
5181
|
]),
|
|
5182
5182
|
_: 1
|
|
5183
|
-
}, 8, ["disabled"])) :
|
|
5183
|
+
}, 8, ["disabled"])) : ge("", !0),
|
|
5184
5184
|
e.exportConfig ? (k(), X(f, {
|
|
5185
5185
|
key: 1,
|
|
5186
5186
|
size: "small",
|
|
@@ -5189,11 +5189,11 @@ function Ly(e, t, n, r, i, a) {
|
|
|
5189
5189
|
onClick: t[0] || (t[0] = () => e.handleApiConfigExport())
|
|
5190
5190
|
}, {
|
|
5191
5191
|
default: F(() => [
|
|
5192
|
-
|
|
5192
|
+
we(" 导出 ")
|
|
5193
5193
|
]),
|
|
5194
5194
|
_: 1
|
|
5195
|
-
}, 8, ["loading"])) :
|
|
5196
|
-
], 64)) : (k(), Z(
|
|
5195
|
+
}, 8, ["loading"])) : ge("", !0)
|
|
5196
|
+
], 64)) : (k(), Z(ve, { key: 1 }, [
|
|
5197
5197
|
(T = e.importConfig) != null && T.sublist ? (k(), X(c, {
|
|
5198
5198
|
key: 0,
|
|
5199
5199
|
trigger: ["click"],
|
|
@@ -5202,12 +5202,12 @@ function Ly(e, t, n, r, i, a) {
|
|
|
5202
5202
|
overlay: F(() => [
|
|
5203
5203
|
W(u, null, {
|
|
5204
5204
|
default: F(() => [
|
|
5205
|
-
(k(!0), Z(
|
|
5205
|
+
(k(!0), Z(ve, null, Me(e.importConfig.sublist, (b, $) => (k(), X(o, {
|
|
5206
5206
|
key: $,
|
|
5207
5207
|
onClick: () => e.handleImport(b, $)
|
|
5208
5208
|
}, {
|
|
5209
5209
|
default: F(() => [
|
|
5210
|
-
|
|
5210
|
+
we(ce(b.title), 1)
|
|
5211
5211
|
]),
|
|
5212
5212
|
_: 2
|
|
5213
5213
|
}, 1032, ["onClick"]))), 128))
|
|
@@ -5222,22 +5222,22 @@ function Ly(e, t, n, r, i, a) {
|
|
|
5222
5222
|
type: "primary"
|
|
5223
5223
|
}, {
|
|
5224
5224
|
default: F(() => [
|
|
5225
|
-
|
|
5225
|
+
we(ce(e.importConfig.title || "导入"), 1)
|
|
5226
5226
|
]),
|
|
5227
5227
|
_: 1
|
|
5228
5228
|
}, 8, ["loading"])
|
|
5229
5229
|
]),
|
|
5230
5230
|
_: 1
|
|
5231
|
-
}, 8, ["disabled"])) :
|
|
5231
|
+
}, 8, ["disabled"])) : ge("", !0),
|
|
5232
5232
|
e.exportConfig ? (k(), X(c, { key: 1 }, {
|
|
5233
5233
|
overlay: F(() => [
|
|
5234
5234
|
W(u, {
|
|
5235
5235
|
onClick: t[1] || (t[1] = (b) => e.handleExport(b.key))
|
|
5236
5236
|
}, {
|
|
5237
5237
|
default: F(() => [
|
|
5238
|
-
(k(!0), Z(
|
|
5238
|
+
(k(!0), Z(ve, null, Me(e.OPERATIONS_EXPORT_MAP, (b, $) => (k(), X(o, { key: $ }, {
|
|
5239
5239
|
default: F(() => [
|
|
5240
|
-
|
|
5240
|
+
we(ce(b), 1)
|
|
5241
5241
|
]),
|
|
5242
5242
|
_: 2
|
|
5243
5243
|
}, 1024))), 128))
|
|
@@ -5252,16 +5252,16 @@ function Ly(e, t, n, r, i, a) {
|
|
|
5252
5252
|
loading: e.exportLoading
|
|
5253
5253
|
}, {
|
|
5254
5254
|
default: F(() => [
|
|
5255
|
-
|
|
5255
|
+
we(" 导出 "),
|
|
5256
5256
|
W(d)
|
|
5257
5257
|
]),
|
|
5258
5258
|
_: 1
|
|
5259
5259
|
}, 8, ["loading"])
|
|
5260
5260
|
]),
|
|
5261
5261
|
_: 1
|
|
5262
|
-
})) :
|
|
5262
|
+
})) : ge("", !0)
|
|
5263
5263
|
], 64)),
|
|
5264
|
-
e.hasApiConfig ? (k(), Z("div", Ry, "共 " +
|
|
5264
|
+
e.hasApiConfig ? (k(), Z("div", Ry, "共 " + ce(e.total) + " 条", 1)) : ge("", !0),
|
|
5265
5265
|
W(p, {
|
|
5266
5266
|
class: "operations-pagination-simple",
|
|
5267
5267
|
current: e.computed_current,
|
|
@@ -5287,10 +5287,10 @@ function Ly(e, t, n, r, i, a) {
|
|
|
5287
5287
|
onClick: t[5] || (t[5] = (b) => e.$emit("customizeSetting", b.key))
|
|
5288
5288
|
}, {
|
|
5289
5289
|
default: F(() => [
|
|
5290
|
-
(k(!0), Z(
|
|
5290
|
+
(k(!0), Z(ve, null, Me(e.hasApiConfig ? e.API_CONFIG_SETTINGS_MAP : e.SETTINGS_MAP, (b, $) => (k(), X(o, { key: $ }, {
|
|
5291
5291
|
default: F(() => [
|
|
5292
5292
|
W(h, { style: { "margin-right": "4px" } }),
|
|
5293
|
-
Ae("a", ky,
|
|
5293
|
+
Ae("a", ky, ce(b), 1)
|
|
5294
5294
|
]),
|
|
5295
5295
|
_: 2
|
|
5296
5296
|
}, 1024))), 128))
|
|
@@ -5477,7 +5477,7 @@ function Vy(e, t, n, r, i, a) {
|
|
|
5477
5477
|
return k(), Z("div", null, [
|
|
5478
5478
|
W(s, null, {
|
|
5479
5479
|
default: F(() => [
|
|
5480
|
-
(k(!0), Z(
|
|
5480
|
+
(k(!0), Z(ve, null, Me(e.imageList, (o, u) => (k(), Z("img", {
|
|
5481
5481
|
src: o,
|
|
5482
5482
|
key: u,
|
|
5483
5483
|
onClick: () => e.preview(u),
|
|
@@ -5931,9 +5931,9 @@ const nb = {
|
|
|
5931
5931
|
index: K
|
|
5932
5932
|
}) => V(B) ? K + 1 : Ws(_) || !B || Y(B) ? _ : ee(N, B) ? " " : _, ie = (_, B) => {
|
|
5933
5933
|
P[h] = _, S[h] = B;
|
|
5934
|
-
},
|
|
5934
|
+
}, he = () => {
|
|
5935
5935
|
ie([], []);
|
|
5936
|
-
},
|
|
5936
|
+
}, ye = D(
|
|
5937
5937
|
(z = e.tableProps) != null && z.expandedRowKeys ? [...e.tableProps.expandedRowKeys] : []
|
|
5938
5938
|
);
|
|
5939
5939
|
te(
|
|
@@ -5942,7 +5942,7 @@ const nb = {
|
|
|
5942
5942
|
return (_ = e.tableProps) == null ? void 0 : _.expandedRowKeys;
|
|
5943
5943
|
},
|
|
5944
5944
|
(_) => {
|
|
5945
|
-
_ && (
|
|
5945
|
+
_ && (ye.value = [..._]);
|
|
5946
5946
|
},
|
|
5947
5947
|
{ immediate: !0 }
|
|
5948
5948
|
);
|
|
@@ -6111,7 +6111,7 @@ const nb = {
|
|
|
6111
6111
|
})) : [];
|
|
6112
6112
|
});
|
|
6113
6113
|
te(Xt, () => {
|
|
6114
|
-
|
|
6114
|
+
ye.value = [];
|
|
6115
6115
|
});
|
|
6116
6116
|
const $r = (_, B) => {
|
|
6117
6117
|
B.width = _, B.children && B.children.length > 0 && (B.children[B.children.length - 1].width = _);
|
|
@@ -6136,7 +6136,7 @@ const nb = {
|
|
|
6136
6136
|
return Vs((_) => {
|
|
6137
6137
|
}), t({
|
|
6138
6138
|
clearSort: Ar,
|
|
6139
|
-
clearSelect:
|
|
6139
|
+
clearSelect: he,
|
|
6140
6140
|
toggleTableHeight: r
|
|
6141
6141
|
}), {
|
|
6142
6142
|
h: Ye,
|
|
@@ -6166,7 +6166,7 @@ const nb = {
|
|
|
6166
6166
|
isHeaderFilterable: I,
|
|
6167
6167
|
FilterOutlined: ml,
|
|
6168
6168
|
TABLE_ROW_CLASS_NAME: Oy,
|
|
6169
|
-
localExpandedRowKeys:
|
|
6169
|
+
localExpandedRowKeys: ye,
|
|
6170
6170
|
headerFilterSwitch: M,
|
|
6171
6171
|
onSubmit: We,
|
|
6172
6172
|
onTableChange: _r,
|
|
@@ -6244,13 +6244,13 @@ function wb(e, t, n, r, i, a) {
|
|
|
6244
6244
|
])) : (k(), Z("div", ub, [
|
|
6245
6245
|
C.sortable === !1 ? (k(), X(o, { key: 0 }, {
|
|
6246
6246
|
title: F(() => [
|
|
6247
|
-
|
|
6247
|
+
we("仅支持当前页的筛选排序,不支持跨页筛选排序。如需统计全部数据,请点[导出全部],在 excel 统计。")
|
|
6248
6248
|
]),
|
|
6249
6249
|
default: F(() => [
|
|
6250
|
-
Ae("span", cb,
|
|
6250
|
+
Ae("span", cb, ce(C.title), 1)
|
|
6251
6251
|
]),
|
|
6252
6252
|
_: 2
|
|
6253
|
-
}, 1024)) : (k(), Z("div", fb,
|
|
6253
|
+
}, 1024)) : (k(), Z("div", fb, ce(C.title), 1)),
|
|
6254
6254
|
(v = C.key) != null && v.startsWith(e.DATA_SOURCE_FILTER_PREFIX) ? (k(), Z("div", db, [
|
|
6255
6255
|
e.fieldNameConditionsByKey[C.dataIndex] ? (k(), X(u, {
|
|
6256
6256
|
key: 0,
|
|
@@ -6271,14 +6271,14 @@ function wb(e, t, n, r, i, a) {
|
|
|
6271
6271
|
onChange: e.onHeaderFilterChange,
|
|
6272
6272
|
onPressEnter: e.onSubmit
|
|
6273
6273
|
}, null, 8, ["value", "onUpdate:value", "onChange", "onPressEnter"]))
|
|
6274
|
-
])) :
|
|
6274
|
+
])) : ge("", !0)
|
|
6275
6275
|
]))
|
|
6276
6276
|
];
|
|
6277
6277
|
}),
|
|
6278
6278
|
bodyCell: F(({ text: C, record: v, index: A, column: w }) => [
|
|
6279
6279
|
w.dataIndex === "action" ? (k(), X(d, { key: 0 }, {
|
|
6280
6280
|
default: F(() => [
|
|
6281
|
-
(k(!0), Z(
|
|
6281
|
+
(k(!0), Z(ve, null, Me(w.childActions, (g) => (k(), Z(ve, {
|
|
6282
6282
|
key: g.action
|
|
6283
6283
|
}, [
|
|
6284
6284
|
g.show === void 0 || e.actionVisible(g.show, v) ? Zn((k(), Z("div", pb, [
|
|
@@ -6301,26 +6301,26 @@ function wb(e, t, n, r, i, a) {
|
|
|
6301
6301
|
g.icon ? (k(), X(f, {
|
|
6302
6302
|
key: 0,
|
|
6303
6303
|
type: g.icon
|
|
6304
|
-
}, null, 8, ["type"])) :
|
|
6305
|
-
|
|
6304
|
+
}, null, 8, ["type"])) : ge("", !0),
|
|
6305
|
+
we(" " + ce(g.text), 1)
|
|
6306
6306
|
], 14, hb))
|
|
6307
6307
|
])), [
|
|
6308
6308
|
[$, g.permissions]
|
|
6309
|
-
]) :
|
|
6309
|
+
]) : ge("", !0)
|
|
6310
6310
|
], 64))), 128))
|
|
6311
6311
|
]),
|
|
6312
6312
|
_: 2
|
|
6313
|
-
}, 1024)) :
|
|
6314
|
-
e.slotCellKeys.includes(w.dataIndex) ? (k(), Z(
|
|
6313
|
+
}, 1024)) : ge("", !0),
|
|
6314
|
+
e.slotCellKeys.includes(w.dataIndex) ? (k(), Z(ve, { key: 1 }, [
|
|
6315
6315
|
e.tableCellSlots[w.dataIndex].component ? (k(), X(Bt(e.tableCellSlots[w.dataIndex].component), It(Ge({ key: 0 }, {
|
|
6316
6316
|
text: C,
|
|
6317
6317
|
row: v,
|
|
6318
6318
|
index: A,
|
|
6319
6319
|
column: w,
|
|
6320
6320
|
...e.tableCellSlots[w.dataIndex].props
|
|
6321
|
-
})), null, 16)) :
|
|
6322
|
-
], 64)) : e.imgCellKeys.includes(w.dataIndex) ? (k(), Z(
|
|
6323
|
-
C ? (k(), X(p, It(Ge({ key: 0 }, { image: C })), null, 16)) :
|
|
6321
|
+
})), null, 16)) : ge("", !0)
|
|
6322
|
+
], 64)) : e.imgCellKeys.includes(w.dataIndex) ? (k(), Z(ve, { key: 2 }, [
|
|
6323
|
+
C ? (k(), X(p, It(Ge({ key: 0 }, { image: C })), null, 16)) : ge("", !0)
|
|
6324
6324
|
], 64)) : [...e.linkCellKeys, ...e.keywords, ...e.htmlCellKeys].includes(w.dataIndex) ? (k(), X(m, It(Ge({ key: 3 }, {
|
|
6325
6325
|
row: v,
|
|
6326
6326
|
copyable: w.copyable,
|
|
@@ -6329,9 +6329,9 @@ function wb(e, t, n, r, i, a) {
|
|
|
6329
6329
|
keywords: e.keywords,
|
|
6330
6330
|
linkCellKeys: e.linkCellKeys,
|
|
6331
6331
|
handleLinkClick: e.handleLinkClick
|
|
6332
|
-
})), null, 16)) : w.copyable ? (k(), Z(
|
|
6333
|
-
C ? (k(), X(h, It(Ge({ key: 0 }, { text: C })), null, 16)) :
|
|
6334
|
-
], 64)) :
|
|
6332
|
+
})), null, 16)) : w.copyable ? (k(), Z(ve, { key: 4 }, [
|
|
6333
|
+
C ? (k(), X(h, It(Ge({ key: 0 }, { text: C })), null, 16)) : ge("", !0)
|
|
6334
|
+
], 64)) : ge("", !0)
|
|
6335
6335
|
]),
|
|
6336
6336
|
summary: F(() => [
|
|
6337
6337
|
W(T, { fixed: "" }, {
|
|
@@ -6344,13 +6344,13 @@ function wb(e, t, n, r, i, a) {
|
|
|
6344
6344
|
]),
|
|
6345
6345
|
_: 1
|
|
6346
6346
|
}),
|
|
6347
|
-
(k(!0), Z(
|
|
6347
|
+
(k(!0), Z(ve, null, Me(e.columns, (C, v) => (k(), X(y, {
|
|
6348
6348
|
key: C.key,
|
|
6349
6349
|
index: v + 1,
|
|
6350
6350
|
style: { "text-align": "center" }
|
|
6351
6351
|
}, {
|
|
6352
6352
|
default: F(() => [
|
|
6353
|
-
v === 0 ? (k(), Z("span", mb,
|
|
6353
|
+
v === 0 ? (k(), Z("span", mb, ce(e.selectedRowKeys[e.pageName].length), 1)) : (k(), Z("span", vb, ce(C.summary ? e.transformSummary(C.summary, C) : null), 1))
|
|
6354
6354
|
]),
|
|
6355
6355
|
_: 2
|
|
6356
6356
|
}, 1032, ["index"]))), 128))
|
|
@@ -6359,7 +6359,7 @@ function wb(e, t, n, r, i, a) {
|
|
|
6359
6359
|
}, 512), [
|
|
6360
6360
|
[uo, e.showSelectionSummaryRow]
|
|
6361
6361
|
]),
|
|
6362
|
-
e.hasApiConfig ?
|
|
6362
|
+
e.hasApiConfig ? ge("", !0) : (k(), X(E, { key: 0 }, {
|
|
6363
6363
|
default: F(() => [
|
|
6364
6364
|
W(y, { index: 0 }, {
|
|
6365
6365
|
default: F(() => [
|
|
@@ -6367,13 +6367,13 @@ function wb(e, t, n, r, i, a) {
|
|
|
6367
6367
|
]),
|
|
6368
6368
|
_: 1
|
|
6369
6369
|
}),
|
|
6370
|
-
(k(!0), Z(
|
|
6370
|
+
(k(!0), Z(ve, null, Me(e.totalList, (C, v) => (k(), X(y, {
|
|
6371
6371
|
key: v,
|
|
6372
6372
|
index: v + 1,
|
|
6373
6373
|
style: { "text-align": "center" }
|
|
6374
6374
|
}, {
|
|
6375
6375
|
default: F(() => [
|
|
6376
|
-
Ae("span", bb,
|
|
6376
|
+
Ae("span", bb, ce(C), 1)
|
|
6377
6377
|
]),
|
|
6378
6378
|
_: 2
|
|
6379
6379
|
}, 1032, ["index"]))), 128))
|
|
@@ -6652,7 +6652,7 @@ function _b(e, t, n, r, i, a) {
|
|
|
6652
6652
|
onCancel: e.handleClose
|
|
6653
6653
|
}, {
|
|
6654
6654
|
title: F(() => [
|
|
6655
|
-
Ae("span", null,
|
|
6655
|
+
Ae("span", null, ce(e.title), 1)
|
|
6656
6656
|
]),
|
|
6657
6657
|
footer: F(() => [
|
|
6658
6658
|
W(l, null, {
|
|
@@ -6662,17 +6662,17 @@ function _b(e, t, n, r, i, a) {
|
|
|
6662
6662
|
onClick: e.handleReset
|
|
6663
6663
|
}, {
|
|
6664
6664
|
default: F(() => [
|
|
6665
|
-
|
|
6665
|
+
we("重置")
|
|
6666
6666
|
]),
|
|
6667
6667
|
_: 1
|
|
6668
|
-
}, 8, ["onClick"])) :
|
|
6668
|
+
}, 8, ["onClick"])) : ge("", !0),
|
|
6669
6669
|
W(u, {
|
|
6670
6670
|
type: "primary",
|
|
6671
6671
|
loading: e.loading,
|
|
6672
6672
|
onClick: e.handleOk
|
|
6673
6673
|
}, {
|
|
6674
6674
|
default: F(() => [
|
|
6675
|
-
|
|
6675
|
+
we("确定")
|
|
6676
6676
|
]),
|
|
6677
6677
|
_: 1
|
|
6678
6678
|
}, 8, ["loading", "onClick"])
|
|
@@ -6723,7 +6723,7 @@ function _b(e, t, n, r, i, a) {
|
|
|
6723
6723
|
}, null, 8, ["class", "row-selection", "columns", "data-source", "style", "custom-row"])
|
|
6724
6724
|
]),
|
|
6725
6725
|
footer: F(({ direction: c }) => [
|
|
6726
|
-
Ae("div", Ob,
|
|
6726
|
+
Ae("div", Ob, ce(c === "left" ? "双击字殷,可快速左右切换。" : "拖捷字段,可上下调整排序位置。"), 1)
|
|
6727
6727
|
]),
|
|
6728
6728
|
_: 1
|
|
6729
6729
|
}, 8, ["target-keys", "data-source", "row-key", "filter-option", "onChange"])
|
|
@@ -7448,7 +7448,7 @@ const io = {
|
|
|
7448
7448
|
(z, _) => z
|
|
7449
7449
|
), w = Ee("reloadPage", () => {
|
|
7450
7450
|
}), g = () => {
|
|
7451
|
-
d.value = Xa(c.value, (z) => Yv(
|
|
7451
|
+
d.value = Xa(c.value, (z) => Yv(he, (_, B) => {
|
|
7452
7452
|
var N;
|
|
7453
7453
|
return ["", void 0, null].includes(_) || Array.isArray(_) ? !0 : Object.hasOwn(z, B) ? Zv(
|
|
7454
7454
|
(N = z[B]) == null ? void 0 : N.toString().toLocaleLowerCase(),
|
|
@@ -7517,12 +7517,12 @@ const io = {
|
|
|
7517
7517
|
_ ? _.value = z : z.columnAction ? E.value.push(z) : y.value.push(z);
|
|
7518
7518
|
});
|
|
7519
7519
|
});
|
|
7520
|
-
const { initFormState: ie } = _n(),
|
|
7520
|
+
const { initFormState: ie } = _n(), he = ie(
|
|
7521
7521
|
r.value.conditions,
|
|
7522
7522
|
r.value.defaultQuery,
|
|
7523
7523
|
// TODO: 后端接口支持默认查询条件
|
|
7524
7524
|
r.value.name
|
|
7525
|
-
),
|
|
7525
|
+
), ye = D(
|
|
7526
7526
|
o ? o[0].value : Cs[0].value
|
|
7527
7527
|
), $e = D(1), { selectedRows: Pe, selectedRowKeys: Fe } = An();
|
|
7528
7528
|
Pe[e.page.name] && console.warn(`【@yzsf2e/render-core】请检查页面名 ${e.page.name} 是否重复!`);
|
|
@@ -7536,8 +7536,8 @@ const io = {
|
|
|
7536
7536
|
], je = (z, _) => !vn(z) && z !== "" && De.includes(_), We = () => {
|
|
7537
7537
|
if (i) {
|
|
7538
7538
|
const z = hy({
|
|
7539
|
-
conditions: tn({ ...ke(
|
|
7540
|
-
pager: { pageNo: $e.value, pageSize:
|
|
7539
|
+
conditions: tn({ ...ke(he) }, je),
|
|
7540
|
+
pager: { pageNo: $e.value, pageSize: ye.value },
|
|
7541
7541
|
sort: p.value,
|
|
7542
7542
|
listApiConfig: i.list
|
|
7543
7543
|
});
|
|
@@ -7548,10 +7548,10 @@ const io = {
|
|
|
7548
7548
|
category: z,
|
|
7549
7549
|
tab: _,
|
|
7550
7550
|
pageNumber: $e.value,
|
|
7551
|
-
pageSize:
|
|
7551
|
+
pageSize: ye.value,
|
|
7552
7552
|
fetchMode: "BODY",
|
|
7553
7553
|
sorts: {},
|
|
7554
|
-
filters: tn({ ...ke(
|
|
7554
|
+
filters: tn({ ...ke(he) }, je)
|
|
7555
7555
|
});
|
|
7556
7556
|
}
|
|
7557
7557
|
Ie(), qt();
|
|
@@ -7569,7 +7569,7 @@ const io = {
|
|
|
7569
7569
|
tab: N,
|
|
7570
7570
|
fetchMode: "BODY",
|
|
7571
7571
|
sorts: p.value,
|
|
7572
|
-
filters: tn({ ...ke(
|
|
7572
|
+
filters: tn({ ...ke(he) }, je),
|
|
7573
7573
|
ids: _
|
|
7574
7574
|
});
|
|
7575
7575
|
if (!K)
|
|
@@ -7640,9 +7640,9 @@ const io = {
|
|
|
7640
7640
|
P(e.page.enumerations), await S(e.page.enumapi), h.value = !0, xe().then(() => {
|
|
7641
7641
|
qt();
|
|
7642
7642
|
});
|
|
7643
|
-
}), i ? te([$e,
|
|
7643
|
+
}), i ? te([$e, ye], () => {
|
|
7644
7644
|
We();
|
|
7645
|
-
}) : te([$e,
|
|
7645
|
+
}) : te([$e, ye, p], ([z, _, B]) => {
|
|
7646
7646
|
const { category: N, tab: K } = n.meta;
|
|
7647
7647
|
v.value.run({
|
|
7648
7648
|
category: N,
|
|
@@ -7651,7 +7651,7 @@ const io = {
|
|
|
7651
7651
|
pageSize: _,
|
|
7652
7652
|
fetchMode: "BODY",
|
|
7653
7653
|
sorts: B.value,
|
|
7654
|
-
filters: tn({ ...ke(
|
|
7654
|
+
filters: tn({ ...ke(he) }, je)
|
|
7655
7655
|
});
|
|
7656
7656
|
});
|
|
7657
7657
|
const Ir = (z) => {
|
|
@@ -7701,7 +7701,7 @@ const io = {
|
|
|
7701
7701
|
importConfig: b,
|
|
7702
7702
|
summary: f,
|
|
7703
7703
|
current: $e,
|
|
7704
|
-
pageSize:
|
|
7704
|
+
pageSize: ye,
|
|
7705
7705
|
pageTotal: l,
|
|
7706
7706
|
sort: p,
|
|
7707
7707
|
tableView: j,
|
|
@@ -7724,7 +7724,7 @@ const io = {
|
|
|
7724
7724
|
function iw(e, t, n, r, i, a) {
|
|
7725
7725
|
var c, d;
|
|
7726
7726
|
const s = U("Conditions"), o = U("Operations"), u = U("SummaryBar"), l = U("TableView"), f = U("ColumnSettingModal");
|
|
7727
|
-
return e.loaded ? (k(), Z(
|
|
7727
|
+
return e.loaded ? (k(), Z(ve, { key: 0 }, [
|
|
7728
7728
|
W(s, {
|
|
7729
7729
|
ref: "conditions",
|
|
7730
7730
|
config: e.page.conditions,
|
|
@@ -7787,7 +7787,7 @@ function iw(e, t, n, r, i, a) {
|
|
|
7787
7787
|
columns: e.columnSettingState.columns,
|
|
7788
7788
|
onChange: e.columnSettingChange
|
|
7789
7789
|
}, null, 8, ["visible", "has-api-config", "type", "title", "columns", "onChange"])
|
|
7790
|
-
], 64)) :
|
|
7790
|
+
], 64)) : ge("", !0);
|
|
7791
7791
|
}
|
|
7792
7792
|
const ks = /* @__PURE__ */ Qe(rw, [["render", iw]]), aw = Oe({
|
|
7793
7793
|
name: "PageRendererTabsPage",
|
|
@@ -7851,7 +7851,7 @@ function ow(e, t, n, r, i, a) {
|
|
|
7851
7851
|
onChange: e.activeChange
|
|
7852
7852
|
}, {
|
|
7853
7853
|
default: F(() => [
|
|
7854
|
-
(k(!0), Z(
|
|
7854
|
+
(k(!0), Z(ve, null, Me(e.pages, (l) => (k(), X(o, {
|
|
7855
7855
|
key: l.name,
|
|
7856
7856
|
tab: l.title
|
|
7857
7857
|
}, {
|
|
@@ -8332,7 +8332,7 @@ function Cw(e, t, n, r, i, a) {
|
|
|
8332
8332
|
Lt(e.$slots, "summaryBar")
|
|
8333
8333
|
]),
|
|
8334
8334
|
_: 3
|
|
8335
|
-
}, 8, ["page", "config"])) :
|
|
8335
|
+
}, 8, ["page", "config"])) : ge("", !0),
|
|
8336
8336
|
e.rendererOptions.type === "tabs" ? (k(), X(o, {
|
|
8337
8337
|
key: 1,
|
|
8338
8338
|
"tab-click-action": e.rendererOptions.tabClickAction,
|
|
@@ -8342,7 +8342,7 @@ function Cw(e, t, n, r, i, a) {
|
|
|
8342
8342
|
activePageName: e.activePageName,
|
|
8343
8343
|
"onUpdate:activePageName": t[0] || (t[0] = (c) => e.activePageName = c),
|
|
8344
8344
|
ref: "tabs"
|
|
8345
|
-
}, null, 8, ["tab-click-action", "pages", "config", "custom-event", "activePageName"])) :
|
|
8345
|
+
}, null, 8, ["tab-click-action", "pages", "config", "custom-event", "activePageName"])) : ge("", !0),
|
|
8346
8346
|
W(u, {
|
|
8347
8347
|
ref: "formModal",
|
|
8348
8348
|
form: e.currentComponent,
|
|
@@ -8354,7 +8354,7 @@ function Cw(e, t, n, r, i, a) {
|
|
|
8354
8354
|
])
|
|
8355
8355
|
]),
|
|
8356
8356
|
_: 3
|
|
8357
|
-
}, 16)) :
|
|
8357
|
+
}, 16)) : ge("", !0);
|
|
8358
8358
|
}
|
|
8359
8359
|
const Tw = /* @__PURE__ */ Qe(Sw, [["render", Cw]]);
|
|
8360
8360
|
const Ow = Cn(Tw);
|
|
@@ -8371,6 +8371,7 @@ function $w(e) {
|
|
|
8371
8371
|
"yzs-page-renderer-form-modal",
|
|
8372
8372
|
"yzs-page-renderer"
|
|
8373
8373
|
].includes(t.name) && e.component(Aw(t.name), t)) : t.name && e.component(t.name, t);
|
|
8374
|
+
}), e.config.globalProperties.$t || (e.config.globalProperties.$t = () => {
|
|
8374
8375
|
});
|
|
8375
8376
|
}
|
|
8376
8377
|
const Lw = { install: $w };
|