szld-libs 0.2.2 → 0.2.4
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/szld-components.es.js +117 -107
- package/dist/szld-components.umd.js +28 -28
- package/es/components/CreateForm/index.js +13 -13
- package/es/utils/index.d.ts +2 -0
- package/es/utils/index.js +19 -1
- package/lib/components/CreateForm/index.js +13 -13
- package/lib/utils/index.d.ts +2 -0
- package/lib/utils/index.js +18 -0
- package/package.json +1 -1
|
@@ -1496,7 +1496,7 @@ const QO = /* @__PURE__ */ Nr.forwardRef(Dw), WO = "backheader-module_main_cac53
|
|
|
1496
1496
|
main: WO,
|
|
1497
1497
|
title: GO,
|
|
1498
1498
|
sub: qO
|
|
1499
|
-
}, { Title: XO, Text: KO } = b_,
|
|
1499
|
+
}, { Title: XO, Text: KO } = b_, oM = (v) => {
|
|
1500
1500
|
const {
|
|
1501
1501
|
isBack: g = !0,
|
|
1502
1502
|
title: p,
|
|
@@ -1523,7 +1523,7 @@ const QO = /* @__PURE__ */ Nr.forwardRef(Dw), WO = "backheader-module_main_cac53
|
|
|
1523
1523
|
var JS = /* @__PURE__ */ ((v) => (v.zip = "application/zip", v.png = "image/png", v.jpg = "image/jpg", v.jpeg = "image/jpeg", v.pdf = "application/pdf", v.doc = "application/msword", v.docx = "application/vnd.openxmlformats-officedocument.wordprocessingml.document", v.pptx = "application/vnd.openxmlformats-officedocument.presentationml.presentation", v.ppt = "application/vnd.ms-powerpoint", v.xlsx = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", v.xls = "application/vnd.ms-excel", v.txt = "text/plain", v.csv = "text/csv", v.svg = "image/svg+xml", v))(JS || {});
|
|
1524
1524
|
const GS = new Map(Object.entries(JS));
|
|
1525
1525
|
var Cf = /* @__PURE__ */ ((v) => (v.zip = ".zip", v.png = ".png", v.jpg = ".jpg", v.jpeg = ".jpeg", v.pdf = ".pdf", v.doc = ".doc", v.docx = ".docx", v.ppt = ".ppt", v.pptx = ".pptx", v.xls = ".xls", v.xlsx = ".xlsx", v.txt = ".txt", v.csv = ".csv", v.svg = ".svg", v.rar = ".rar", v))(Cf || {});
|
|
1526
|
-
const
|
|
1526
|
+
const sM = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1527
1527
|
__proto__: null,
|
|
1528
1528
|
FileType: JS,
|
|
1529
1529
|
FileTypeMap: GS,
|
|
@@ -1590,7 +1590,15 @@ const uM = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1590
1590
|
}
|
|
1591
1591
|
return g;
|
|
1592
1592
|
}
|
|
1593
|
-
}
|
|
1593
|
+
};
|
|
1594
|
+
function uN() {
|
|
1595
|
+
var v = URL.createObjectURL(new Blob()), g = v.toString();
|
|
1596
|
+
return URL.revokeObjectURL(v), g.substr(g.lastIndexOf("/") + 1);
|
|
1597
|
+
}
|
|
1598
|
+
const oN = () => {
|
|
1599
|
+
const v = "FORCERELOAD";
|
|
1600
|
+
sessionStorage.getItem(v) !== "1" ? (sessionStorage.setItem(v, "1"), window.location.reload()) : sessionStorage.removeItem(v);
|
|
1601
|
+
}, cM = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1594
1602
|
__proto__: null,
|
|
1595
1603
|
filterObject: ZO,
|
|
1596
1604
|
getBase64: _w,
|
|
@@ -1603,11 +1611,13 @@ const uM = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1603
1611
|
getSessionStorage: aN,
|
|
1604
1612
|
removeSessionStorage: iN,
|
|
1605
1613
|
arrayDeduplication: lN,
|
|
1606
|
-
JSONParse: e1
|
|
1614
|
+
JSONParse: e1,
|
|
1615
|
+
uuid: uN,
|
|
1616
|
+
forceReload: oN
|
|
1607
1617
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1608
|
-
var
|
|
1618
|
+
var sN = { exports: {} }, ga = {}, VS = { exports: {} }, PS = {};
|
|
1609
1619
|
var ew;
|
|
1610
|
-
function
|
|
1620
|
+
function cN() {
|
|
1611
1621
|
return ew || (ew = 1, function(v) {
|
|
1612
1622
|
function g(J, xe) {
|
|
1613
1623
|
var se = J.length;
|
|
@@ -1826,7 +1836,7 @@ function oN() {
|
|
|
1826
1836
|
}
|
|
1827
1837
|
var BS = {};
|
|
1828
1838
|
var tw;
|
|
1829
|
-
function
|
|
1839
|
+
function fN() {
|
|
1830
1840
|
return tw || (tw = 1, function(v) {
|
|
1831
1841
|
process.env.NODE_ENV !== "production" && function() {
|
|
1832
1842
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
|
|
@@ -2093,11 +2103,11 @@ function sN() {
|
|
|
2093
2103
|
var nw;
|
|
2094
2104
|
function Ow() {
|
|
2095
2105
|
return nw || (nw = 1, function(v) {
|
|
2096
|
-
process.env.NODE_ENV === "production" ? v.exports =
|
|
2106
|
+
process.env.NODE_ENV === "production" ? v.exports = cN() : v.exports = fN();
|
|
2097
2107
|
}(VS)), VS.exports;
|
|
2098
2108
|
}
|
|
2099
2109
|
var rw;
|
|
2100
|
-
function
|
|
2110
|
+
function dN() {
|
|
2101
2111
|
if (rw)
|
|
2102
2112
|
return ga;
|
|
2103
2113
|
rw = 1;
|
|
@@ -7724,7 +7734,7 @@ Error generating stack: ` + d.message + `
|
|
|
7724
7734
|
}
|
|
7725
7735
|
var Sa = {};
|
|
7726
7736
|
var aw;
|
|
7727
|
-
function
|
|
7737
|
+
function pN() {
|
|
7728
7738
|
return aw || (aw = 1, process.env.NODE_ENV !== "production" && function() {
|
|
7729
7739
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
|
|
7730
7740
|
var v = cu, g = Ow(), p = v.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, R = !1;
|
|
@@ -12748,7 +12758,7 @@ Check the render method of \`` + e + "`." : "";
|
|
|
12748
12758
|
};
|
|
12749
12759
|
}
|
|
12750
12760
|
}
|
|
12751
|
-
function
|
|
12761
|
+
function eM(e) {
|
|
12752
12762
|
return e;
|
|
12753
12763
|
}
|
|
12754
12764
|
function wR(e) {
|
|
@@ -15178,9 +15188,9 @@ Incoming: %s`, I, "[" + t.join(", ") + "]", "[" + e.join(", ") + "]");
|
|
|
15178
15188
|
}
|
|
15179
15189
|
return [h, s];
|
|
15180
15190
|
}
|
|
15181
|
-
function
|
|
15191
|
+
function tM(e, t, a) {
|
|
15182
15192
|
}
|
|
15183
|
-
function
|
|
15193
|
+
function nM(e, t, a) {
|
|
15184
15194
|
}
|
|
15185
15195
|
function s0(e, t, a) {
|
|
15186
15196
|
var i = gt, u = cl(), s, f = lr();
|
|
@@ -20587,34 +20597,34 @@ You might need to use a local HTTP server (instead of file://): https://reactjs.
|
|
|
20587
20597
|
}
|
|
20588
20598
|
}
|
|
20589
20599
|
}
|
|
20590
|
-
process.env.NODE_ENV === "production" ? (g(), v.exports =
|
|
20591
|
-
})(
|
|
20592
|
-
const
|
|
20600
|
+
process.env.NODE_ENV === "production" ? (g(), v.exports = dN()) : v.exports = pN();
|
|
20601
|
+
})(sN);
|
|
20602
|
+
const vN = (v) => new Promise((g) => {
|
|
20593
20603
|
const p = new FileReader();
|
|
20594
20604
|
p.onloadend = (R) => g(R.target.result), p.readAsDataURL(v);
|
|
20595
|
-
}),
|
|
20605
|
+
}), hN = (v) => new Promise((g) => {
|
|
20596
20606
|
const p = new Image();
|
|
20597
20607
|
p.onload = () => g(p), p.src = v;
|
|
20598
|
-
}),
|
|
20608
|
+
}), mN = (v, g, p) => new Promise(
|
|
20599
20609
|
(R) => v.toBlob((_) => R(_), g, p)
|
|
20600
|
-
),
|
|
20610
|
+
), yN = (v) => {
|
|
20601
20611
|
const R = v.width, _ = v.height;
|
|
20602
20612
|
let A = v.width, S = v.height;
|
|
20603
20613
|
return (R > 1400 || _ > 1400) && (R / _ > 1400 / 1400 ? (A = 1400, S = Math.round(1400 * (_ / R))) : (S = 1400, A = Math.round(1400 * (R / _)))), {
|
|
20604
20614
|
width: A,
|
|
20605
20615
|
height: S
|
|
20606
20616
|
};
|
|
20607
|
-
},
|
|
20617
|
+
}, gN = async (v, g = "image/jpeg", p = 0.5, R = 300) => {
|
|
20608
20618
|
const _ = v.name;
|
|
20609
20619
|
if (v.size / 1024 < R)
|
|
20610
20620
|
return v;
|
|
20611
|
-
const A = document.createElement("canvas"), S = A.getContext("2d"), Q = await
|
|
20621
|
+
const A = document.createElement("canvas"), S = A.getContext("2d"), Q = await vN(v), H = await hN(Q), j = yN(H);
|
|
20612
20622
|
A.width = j.width, A.height = j.height, S.clearRect(0, 0, j.width, j.height), S.drawImage(H, 0, 0, j.width, j.height);
|
|
20613
|
-
const K = await
|
|
20623
|
+
const K = await mN(A, g, p);
|
|
20614
20624
|
return new File([K], _, {
|
|
20615
20625
|
type: g
|
|
20616
20626
|
});
|
|
20617
|
-
}, iw = [Cf.jpeg, Cf.jpg, Cf.png],
|
|
20627
|
+
}, iw = [Cf.jpeg, Cf.jpg, Cf.png], SN = (v) => {
|
|
20618
20628
|
const {
|
|
20619
20629
|
maxCount: g = 1,
|
|
20620
20630
|
listType: p = "picture-card",
|
|
@@ -20636,7 +20646,7 @@ const dN = (v) => new Promise((g) => {
|
|
|
20636
20646
|
] }), Ue = (Se) => new Promise((rt, Be) => {
|
|
20637
20647
|
const Ct = A.split(","), Ie = Gm(Se.name) || "";
|
|
20638
20648
|
A && !Ct.includes(Ie) && (FT.error(`只允许上传 ${A} 文件`), Be(!1)), Se.size / 1024 / 1024 < _ || (FT.error(`文件必须小于${_}MB`), Be(!1)), H && rt(
|
|
20639
|
-
|
|
20649
|
+
gN(
|
|
20640
20650
|
Se,
|
|
20641
20651
|
H.type,
|
|
20642
20652
|
H.quality,
|
|
@@ -20692,12 +20702,12 @@ const dN = (v) => new Promise((g) => {
|
|
|
20692
20702
|
}
|
|
20693
20703
|
)
|
|
20694
20704
|
] });
|
|
20695
|
-
},
|
|
20696
|
-
fieldModal:
|
|
20697
|
-
content:
|
|
20698
|
-
suffix:
|
|
20699
|
-
placeholder:
|
|
20700
|
-
},
|
|
20705
|
+
}, CN = "create-form-module_fieldModal_8bf3d", EN = "create-form-module_content_61f84", TN = "create-form-module_suffix_42205", wN = "create-form-module_placeholder_90d6a", Wm = {
|
|
20706
|
+
fieldModal: CN,
|
|
20707
|
+
content: EN,
|
|
20708
|
+
suffix: TN,
|
|
20709
|
+
placeholder: wN
|
|
20710
|
+
}, RN = {
|
|
20701
20711
|
labelCol: {
|
|
20702
20712
|
span: 4
|
|
20703
20713
|
},
|
|
@@ -20713,7 +20723,7 @@ const dN = (v) => new Promise((g) => {
|
|
|
20713
20723
|
default:
|
|
20714
20724
|
return "value";
|
|
20715
20725
|
}
|
|
20716
|
-
},
|
|
20726
|
+
}, xN = (v) => {
|
|
20717
20727
|
const {
|
|
20718
20728
|
items: g,
|
|
20719
20729
|
rowProps: p,
|
|
@@ -20743,7 +20753,7 @@ const dN = (v) => new Promise((g) => {
|
|
|
20743
20753
|
{
|
|
20744
20754
|
layout: "horizontal",
|
|
20745
20755
|
form: R == null ? void 0 : R.form,
|
|
20746
|
-
...
|
|
20756
|
+
...RN,
|
|
20747
20757
|
...R || {},
|
|
20748
20758
|
children: /* @__PURE__ */ Ce(D_, { gutter: 16, ...p, children: g.filter((j) => !j.hidden).map((j, K) => /* @__PURE__ */ Ce(
|
|
20749
20759
|
__,
|
|
@@ -20779,7 +20789,7 @@ const dN = (v) => new Promise((g) => {
|
|
|
20779
20789
|
);
|
|
20780
20790
|
}, Nw = (v) => {
|
|
20781
20791
|
const { valueType: g, valueProps: p, value: R, onChange: _, onBtnClick: A, inputRef: S } = v, Q = qm(() => {
|
|
20782
|
-
let H = /* @__PURE__ */ Ce(NS, { placeholder: "请输入",
|
|
20792
|
+
let H = /* @__PURE__ */ Ce(NS, { placeholder: "请输入", allowClear: !0, ...p });
|
|
20783
20793
|
switch (g) {
|
|
20784
20794
|
case "rate":
|
|
20785
20795
|
H = /* @__PURE__ */ Ce(F_, { ...p });
|
|
@@ -20788,7 +20798,7 @@ const dN = (v) => new Promise((g) => {
|
|
|
20788
20798
|
H = /* @__PURE__ */ Ce(NS.Password, { ...p });
|
|
20789
20799
|
break;
|
|
20790
20800
|
case "modal":
|
|
20791
|
-
H = /* @__PURE__ */ Ce(
|
|
20801
|
+
H = /* @__PURE__ */ Ce(bN, { ...p });
|
|
20792
20802
|
break;
|
|
20793
20803
|
case "checkbox":
|
|
20794
20804
|
H = /* @__PURE__ */ Ce(A_.Group, { ...p });
|
|
@@ -20798,8 +20808,8 @@ const dN = (v) => new Promise((g) => {
|
|
|
20798
20808
|
U_,
|
|
20799
20809
|
{
|
|
20800
20810
|
placeholder: "请选择",
|
|
20801
|
-
|
|
20802
|
-
|
|
20811
|
+
allowClear: !0,
|
|
20812
|
+
...p
|
|
20803
20813
|
}
|
|
20804
20814
|
);
|
|
20805
20815
|
break;
|
|
@@ -20818,8 +20828,8 @@ const dN = (v) => new Promise((g) => {
|
|
|
20818
20828
|
NS.TextArea,
|
|
20819
20829
|
{
|
|
20820
20830
|
placeholder: "请输入",
|
|
20821
|
-
|
|
20822
|
-
|
|
20831
|
+
allowClear: !0,
|
|
20832
|
+
...p
|
|
20823
20833
|
}
|
|
20824
20834
|
);
|
|
20825
20835
|
break;
|
|
@@ -20834,8 +20844,8 @@ const dN = (v) => new Promise((g) => {
|
|
|
20834
20844
|
HT,
|
|
20835
20845
|
{
|
|
20836
20846
|
style: { width: "100%" },
|
|
20837
|
-
|
|
20838
|
-
|
|
20847
|
+
allowClear: !0,
|
|
20848
|
+
...p
|
|
20839
20849
|
}
|
|
20840
20850
|
);
|
|
20841
20851
|
break;
|
|
@@ -20844,8 +20854,8 @@ const dN = (v) => new Promise((g) => {
|
|
|
20844
20854
|
HT.RangePicker,
|
|
20845
20855
|
{
|
|
20846
20856
|
style: { width: "100%" },
|
|
20847
|
-
|
|
20848
|
-
|
|
20857
|
+
allowClear: !0,
|
|
20858
|
+
...p
|
|
20849
20859
|
}
|
|
20850
20860
|
);
|
|
20851
20861
|
break;
|
|
@@ -20854,8 +20864,8 @@ const dN = (v) => new Promise((g) => {
|
|
|
20854
20864
|
N_,
|
|
20855
20865
|
{
|
|
20856
20866
|
style: { width: "100%" },
|
|
20857
|
-
|
|
20858
|
-
|
|
20867
|
+
allowClear: !0,
|
|
20868
|
+
...p
|
|
20859
20869
|
}
|
|
20860
20870
|
);
|
|
20861
20871
|
break;
|
|
@@ -20863,13 +20873,13 @@ const dN = (v) => new Promise((g) => {
|
|
|
20863
20873
|
H = /* @__PURE__ */ Ce(
|
|
20864
20874
|
O_,
|
|
20865
20875
|
{
|
|
20866
|
-
|
|
20867
|
-
|
|
20876
|
+
allowClear: !0,
|
|
20877
|
+
...p
|
|
20868
20878
|
}
|
|
20869
20879
|
);
|
|
20870
20880
|
break;
|
|
20871
20881
|
case "upload":
|
|
20872
|
-
H = /* @__PURE__ */ Ce(
|
|
20882
|
+
H = /* @__PURE__ */ Ce(SN, { ...p });
|
|
20873
20883
|
break;
|
|
20874
20884
|
case "btns":
|
|
20875
20885
|
H = /* @__PURE__ */ Ce(ow, { children: p == null ? void 0 : p.map((j) => /* @__PURE__ */ R_(
|
|
@@ -20901,7 +20911,7 @@ const dN = (v) => new Promise((g) => {
|
|
|
20901
20911
|
onChange: _,
|
|
20902
20912
|
ref: S
|
|
20903
20913
|
});
|
|
20904
|
-
},
|
|
20914
|
+
}, bN = (v) => {
|
|
20905
20915
|
const { placeholder: g, labelKey: p, onToggle: R, value: _, onClear: A, className: S, style: Q } = v;
|
|
20906
20916
|
return /* @__PURE__ */ dn(
|
|
20907
20917
|
"div",
|
|
@@ -20914,13 +20924,13 @@ const dN = (v) => new Promise((g) => {
|
|
|
20914
20924
|
]
|
|
20915
20925
|
}
|
|
20916
20926
|
);
|
|
20917
|
-
},
|
|
20918
|
-
search:
|
|
20927
|
+
}, kN = "search-table-module_search_17add", DN = {
|
|
20928
|
+
search: kN
|
|
20919
20929
|
};
|
|
20920
|
-
function
|
|
20930
|
+
function fM(v) {
|
|
20921
20931
|
const { tableProps: g = {}, searchProps: p } = v, { columns: R = [], minColumnWidth: _ = 200, ...A } = g;
|
|
20922
20932
|
return /* @__PURE__ */ dn(Xm, { children: [
|
|
20923
|
-
p && /* @__PURE__ */ Ce(
|
|
20933
|
+
p && /* @__PURE__ */ Ce(xN, { hiddenTitle: !0, ...p, items: p.items }),
|
|
20924
20934
|
/* @__PURE__ */ Ce(
|
|
20925
20935
|
cw,
|
|
20926
20936
|
{
|
|
@@ -20932,7 +20942,7 @@ function sM(v) {
|
|
|
20932
20942
|
)
|
|
20933
20943
|
},
|
|
20934
20944
|
...A,
|
|
20935
|
-
className: $p(
|
|
20945
|
+
className: $p(DN.table, g == null ? void 0 : g.className),
|
|
20936
20946
|
pagination: typeof (g == null ? void 0 : g.pagination) == "boolean" ? g.pagination : {
|
|
20937
20947
|
hideOnSinglePage: !0,
|
|
20938
20948
|
showPrevNextJumpers: !0,
|
|
@@ -20945,13 +20955,13 @@ function sM(v) {
|
|
|
20945
20955
|
)
|
|
20946
20956
|
] });
|
|
20947
20957
|
}
|
|
20948
|
-
const
|
|
20949
|
-
editableCellValueWrap:
|
|
20950
|
-
}, Mw = cu.createContext(null),
|
|
20958
|
+
const _N = "editable-module_editableCellValueWrap_3b3d9", ON = {
|
|
20959
|
+
editableCellValueWrap: _N
|
|
20960
|
+
}, Mw = cu.createContext(null), NN = ({ index: v, ...g }) => {
|
|
20951
20961
|
const [p] = Ip.useForm();
|
|
20952
20962
|
return /* @__PURE__ */ Ce(Ip, { form: p, component: !1, children: /* @__PURE__ */ Ce(Mw.Provider, { value: p, children: /* @__PURE__ */ Ce("tr", { ...g }) }) });
|
|
20953
20963
|
};
|
|
20954
|
-
function
|
|
20964
|
+
function MN(v) {
|
|
20955
20965
|
console.log(v, "props");
|
|
20956
20966
|
const {
|
|
20957
20967
|
title: g,
|
|
@@ -20995,11 +21005,11 @@ function ON(v) {
|
|
|
20995
21005
|
}
|
|
20996
21006
|
)), /* @__PURE__ */ Ce("td", { children: Ze });
|
|
20997
21007
|
}
|
|
20998
|
-
function
|
|
21008
|
+
function dM(v) {
|
|
20999
21009
|
const { columns: g, onChange: p, ...R } = v, _ = {
|
|
21000
21010
|
body: {
|
|
21001
|
-
row:
|
|
21002
|
-
cell:
|
|
21011
|
+
row: NN,
|
|
21012
|
+
cell: MN
|
|
21003
21013
|
}
|
|
21004
21014
|
}, A = g == null ? void 0 : g.map((S) => S.editable ? {
|
|
21005
21015
|
...S,
|
|
@@ -21014,32 +21024,32 @@ function cM(v) {
|
|
|
21014
21024
|
{
|
|
21015
21025
|
...R,
|
|
21016
21026
|
components: _,
|
|
21017
|
-
rowClassName: () =>
|
|
21027
|
+
rowClassName: () => ON.editableRow,
|
|
21018
21028
|
columns: A
|
|
21019
21029
|
}
|
|
21020
21030
|
);
|
|
21021
21031
|
}
|
|
21022
|
-
const
|
|
21032
|
+
const LN = (v) => {
|
|
21023
21033
|
const { auth: g = !0, ...p } = v;
|
|
21024
21034
|
return g ? /* @__PURE__ */ Ce(XS, { ...p }) : null;
|
|
21025
|
-
},
|
|
21035
|
+
}, pM = (v) => {
|
|
21026
21036
|
const { PId: g, auths: p, ...R } = v, _ = qm(() => !!(p && p.find((A) => A.PId === g)), [g, p]);
|
|
21027
|
-
return /* @__PURE__ */ Ce(
|
|
21028
|
-
},
|
|
21029
|
-
main:
|
|
21030
|
-
item:
|
|
21031
|
-
tail:
|
|
21032
|
-
node:
|
|
21033
|
-
content:
|
|
21034
|
-
btn:
|
|
21035
|
-
collpase:
|
|
21036
|
-
title:
|
|
21037
|
-
dateWrapper:
|
|
21038
|
-
remark:
|
|
21039
|
-
itemActive:
|
|
21040
|
-
itemDone:
|
|
21041
|
-
itemUnDo:
|
|
21042
|
-
},
|
|
21037
|
+
return /* @__PURE__ */ Ce(LN, { ...R, auth: _ });
|
|
21038
|
+
}, zN = "workflownode-module_main_dce7f", UN = "workflownode-module_item_73d7c", AN = "workflownode-module_tail_3cb51", FN = "workflownode-module_node_005fd", HN = "workflownode-module_content_8334f", jN = "workflownode-module_btn_b0c06", VN = "workflownode-module_collpase_f2468", PN = "workflownode-module_title_cb34c", BN = "workflownode-module_dateWrapper_94849", IN = "workflownode-module_remark_4f910", $N = "workflownode-module_itemActive_2a29d", YN = "workflownode-module_itemDone_489bc", QN = "workflownode-module_itemUnDo_2914c", Pn = {
|
|
21039
|
+
main: zN,
|
|
21040
|
+
item: UN,
|
|
21041
|
+
tail: AN,
|
|
21042
|
+
node: FN,
|
|
21043
|
+
content: HN,
|
|
21044
|
+
btn: jN,
|
|
21045
|
+
collpase: VN,
|
|
21046
|
+
title: PN,
|
|
21047
|
+
dateWrapper: BN,
|
|
21048
|
+
remark: IN,
|
|
21049
|
+
itemActive: $N,
|
|
21050
|
+
itemDone: YN,
|
|
21051
|
+
itemUnDo: QN
|
|
21052
|
+
}, WN = (v) => {
|
|
21043
21053
|
const { data: g, current: p, rowKey: R, renderContent: _ } = v, [A, S] = IS(!1), Q = qm(() => v.currentIndex !== void 0 ? v.currentIndex : !p || g.length === 0 ? 0 : g.findIndex((G) => G.PNId === p), [p, g]), H = qm(() => Q > 1 ? A ? 0 : Q - 1 : 0, [Q, A]), j = () => {
|
|
21044
21054
|
S(!0);
|
|
21045
21055
|
};
|
|
@@ -21094,7 +21104,7 @@ const NN = (v) => {
|
|
|
21094
21104
|
typeof R == "string" ? K[R] : R(K)
|
|
21095
21105
|
))
|
|
21096
21106
|
] });
|
|
21097
|
-
},
|
|
21107
|
+
}, vM = (v) => {
|
|
21098
21108
|
const { current: g, data: p, rowKey: R, renderContent: _, currentIndex: A, ...S } = v;
|
|
21099
21109
|
return (() => {
|
|
21100
21110
|
sw.info({
|
|
@@ -21102,7 +21112,7 @@ const NN = (v) => {
|
|
|
21102
21112
|
title: "流程节点",
|
|
21103
21113
|
width: 700,
|
|
21104
21114
|
content: /* @__PURE__ */ Ce(
|
|
21105
|
-
|
|
21115
|
+
WN,
|
|
21106
21116
|
{
|
|
21107
21117
|
rowKey: R,
|
|
21108
21118
|
renderContent: _,
|
|
@@ -21117,34 +21127,34 @@ const NN = (v) => {
|
|
|
21117
21127
|
...S
|
|
21118
21128
|
});
|
|
21119
21129
|
})(), null;
|
|
21120
|
-
},
|
|
21130
|
+
}, GN = (v, g) => {
|
|
21121
21131
|
const p = new URL(v), R = new URL(g);
|
|
21122
21132
|
return p.protocol === R.protocol && p.host === R.host && p.port === R.port;
|
|
21123
|
-
},
|
|
21133
|
+
}, qN = (v) => {
|
|
21124
21134
|
const g = String(v).split("/");
|
|
21125
21135
|
return g[g.length - 1];
|
|
21126
|
-
},
|
|
21136
|
+
}, XN = (v) => {
|
|
21127
21137
|
var p;
|
|
21128
21138
|
return (p = v.headers.get("content-disposition")) == null ? void 0 : p.split(";")[1].split("=")[1];
|
|
21129
|
-
},
|
|
21130
|
-
const p = g ||
|
|
21131
|
-
if (
|
|
21139
|
+
}, KN = (v, g) => {
|
|
21140
|
+
const p = g || qN(v);
|
|
21141
|
+
if (GN(v, window.location.href)) {
|
|
21132
21142
|
qS(v, p);
|
|
21133
21143
|
return;
|
|
21134
21144
|
}
|
|
21135
21145
|
let R = g;
|
|
21136
|
-
fetch(v, { method: "get" }).then((_) => (R || (R =
|
|
21146
|
+
fetch(v, { method: "get" }).then((_) => (R || (R = XN(_)), _.blob())).then((_) => {
|
|
21137
21147
|
Lw(_, R || p);
|
|
21138
21148
|
}).catch(() => {
|
|
21139
21149
|
qS(v, "");
|
|
21140
21150
|
});
|
|
21141
|
-
},
|
|
21151
|
+
}, ZN = (v) => {
|
|
21142
21152
|
for (var g = v.split(","), p = g[0].match(/:(.*?);/)[1], R = window.atob(g[1]), _ = R.length, A = new Uint8Array(_); _--; )
|
|
21143
21153
|
A[_] = R.charCodeAt(_);
|
|
21144
21154
|
return new Blob([A], { type: p });
|
|
21145
21155
|
}, Lw = (v, g) => {
|
|
21146
21156
|
let p = "";
|
|
21147
|
-
v instanceof Blob ? p = window.URL.createObjectURL(v) : p = window.URL.createObjectURL(
|
|
21157
|
+
v instanceof Blob ? p = window.URL.createObjectURL(v) : p = window.URL.createObjectURL(ZN(v));
|
|
21148
21158
|
const R = window.navigator;
|
|
21149
21159
|
if (R.msSaveOrOpenBlob) {
|
|
21150
21160
|
R.msSaveOrOpenBlob(v, g);
|
|
@@ -21154,12 +21164,12 @@ const NN = (v) => {
|
|
|
21154
21164
|
}, qS = (v, g) => {
|
|
21155
21165
|
let p = document.createElement("a");
|
|
21156
21166
|
p.style.display = "none", p.href = v, p.target = "_blank", p.download = g, document.body.appendChild(p), p.click(), document.body.removeChild(p);
|
|
21157
|
-
},
|
|
21167
|
+
}, hM = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
21158
21168
|
__proto__: null,
|
|
21159
|
-
downloadUrl:
|
|
21169
|
+
downloadUrl: KN,
|
|
21160
21170
|
downloadBlob: Lw
|
|
21161
21171
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
21162
|
-
class
|
|
21172
|
+
class JN {
|
|
21163
21173
|
constructor(g) {
|
|
21164
21174
|
UT(this, "options", {
|
|
21165
21175
|
id: "",
|
|
@@ -21215,21 +21225,21 @@ class KN {
|
|
|
21215
21225
|
return "rgb(" + R + "," + _ + "," + A + ")";
|
|
21216
21226
|
}
|
|
21217
21227
|
}
|
|
21218
|
-
const
|
|
21228
|
+
const mM = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
21219
21229
|
__proto__: null,
|
|
21220
|
-
getGVerify:
|
|
21230
|
+
getGVerify: JN
|
|
21221
21231
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
21222
21232
|
export {
|
|
21223
|
-
|
|
21224
|
-
|
|
21225
|
-
|
|
21226
|
-
|
|
21227
|
-
|
|
21228
|
-
|
|
21229
|
-
|
|
21230
|
-
|
|
21231
|
-
|
|
21232
|
-
|
|
21233
|
-
|
|
21234
|
-
|
|
21233
|
+
LN as AuthButton,
|
|
21234
|
+
oM as BackHeader,
|
|
21235
|
+
pM as CoralButton,
|
|
21236
|
+
xN as CreateForm,
|
|
21237
|
+
dM as EditTable,
|
|
21238
|
+
fM as SearchTable,
|
|
21239
|
+
SN as UploadFile,
|
|
21240
|
+
hM as download,
|
|
21241
|
+
sM as fileType,
|
|
21242
|
+
vM as showWorkFlow,
|
|
21243
|
+
cM as utils,
|
|
21244
|
+
mM as verfyCode
|
|
21235
21245
|
};
|