@kengic/vue 0.6.1-beta.4 → 0.6.1-beta.5
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/kengic-vue.js +838 -893
- package/package.json +1 -1
package/dist/kengic-vue.js
CHANGED
@@ -14,11 +14,6 @@ function httpClient() {
|
|
14
14
|
return _httpClient;
|
15
15
|
}
|
16
16
|
console.log("111:");
|
17
|
-
console.log("444:");
|
18
|
-
const DEF = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
19
|
-
__proto__: null,
|
20
|
-
WMS: models
|
21
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
22
17
|
console.log("222:");
|
23
18
|
class CreateVarGridMasterQuery {
|
24
19
|
constructor(t) {
|
@@ -848,37 +843,6 @@ function keys$1(e) {
|
|
848
843
|
const t = typeof e;
|
849
844
|
return e != null && (t === "object" || t === "function") ? Reflect.ownKeys(e) : [];
|
850
845
|
}
|
851
|
-
const models = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
852
|
-
__proto__: null,
|
853
|
-
CreateVarGridMasterQuery,
|
854
|
-
CreateVarProfileMasterQuery,
|
855
|
-
IPage,
|
856
|
-
UpdateVarGridMasterQuery,
|
857
|
-
VarButton,
|
858
|
-
VarButtonConfig,
|
859
|
-
VarCatalog,
|
860
|
-
VarContext,
|
861
|
-
VarDTO,
|
862
|
-
VarGridConfig,
|
863
|
-
VarGridDTO,
|
864
|
-
VarGridDetail,
|
865
|
-
VarGridMaster,
|
866
|
-
VarGridMasterDTO,
|
867
|
-
VarLookup,
|
868
|
-
VarPossibility,
|
869
|
-
VarProfileConfig,
|
870
|
-
VarProfileDTO,
|
871
|
-
VarProfileDetail,
|
872
|
-
VarProfileMaster,
|
873
|
-
VarProfileMasterDTO,
|
874
|
-
VarSubmitConfig,
|
875
|
-
VarSubmitField,
|
876
|
-
VarVariableConfig,
|
877
|
-
VarVariableInput,
|
878
|
-
WhDTO,
|
879
|
-
keys: keys$1
|
880
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
881
|
-
console.assert(!0, DEF, keys$1);
|
882
846
|
class GetAllQuery {
|
883
847
|
constructor(t) {
|
884
848
|
d(this, "frm_id");
|
@@ -908,7 +872,6 @@ const index$6 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
|
|
908
872
|
GetAll,
|
909
873
|
GetAllQuery
|
910
874
|
}, Symbol.toStringTag, { value: "Module" }));
|
911
|
-
console.assert(!0, DEF, keys$1);
|
912
875
|
class AddQuery$1 {
|
913
876
|
}
|
914
877
|
function Add$1(e, t) {
|
@@ -923,7 +886,6 @@ function Add$1(e, t) {
|
|
923
886
|
}
|
924
887
|
Add$1.method = "POST";
|
925
888
|
Add$1.url = "/var/VarContext/add";
|
926
|
-
console.assert(!0, DEF, keys$1);
|
927
889
|
class DeleteQuery$1 {
|
928
890
|
constructor(t) {
|
929
891
|
d(this, "id");
|
@@ -948,7 +910,6 @@ function Delete$1(e, t) {
|
|
948
910
|
}
|
949
911
|
Delete$1.method = "DELETE";
|
950
912
|
Delete$1.url = "/var/VarContext/delete";
|
951
|
-
console.assert(!0, DEF, keys$1);
|
952
913
|
class DeleteBatchQuery$1 {
|
953
914
|
constructor(t) {
|
954
915
|
d(this, "ids");
|
@@ -973,7 +934,6 @@ function DeleteBatch$1(e, t) {
|
|
973
934
|
}
|
974
935
|
DeleteBatch$1.method = "DELETE";
|
975
936
|
DeleteBatch$1.url = "/var/VarContext/deleteBatch";
|
976
|
-
console.assert(!0, DEF, keys$1);
|
977
937
|
class EditQuery$1 {
|
978
938
|
}
|
979
939
|
function Edit$1(e, t) {
|
@@ -988,7 +948,6 @@ function Edit$1(e, t) {
|
|
988
948
|
}
|
989
949
|
Edit$1.method = "POST";
|
990
950
|
Edit$1.url = "/var/VarContext/edit";
|
991
|
-
console.assert(!0, DEF, keys$1);
|
992
951
|
class ExportXlsQuery$1 {
|
993
952
|
constructor(t) {
|
994
953
|
d(this, "frm_id");
|
@@ -1019,7 +978,6 @@ function ExportXls$1(e, t) {
|
|
1019
978
|
}
|
1020
979
|
ExportXls$1.method = "GET";
|
1021
980
|
ExportXls$1.url = "/var/VarContext/exportXls";
|
1022
|
-
console.assert(!0, DEF, keys$1);
|
1023
981
|
class ImportExcelQuery$1 {
|
1024
982
|
}
|
1025
983
|
function ImportExcel$1(e, t) {
|
@@ -1034,7 +992,6 @@ function ImportExcel$1(e, t) {
|
|
1034
992
|
}
|
1035
993
|
ImportExcel$1.method = "POST";
|
1036
994
|
ImportExcel$1.url = "/var/VarContext/importExcel";
|
1037
|
-
console.assert(!0, DEF, keys$1);
|
1038
995
|
class ListQuery$1 {
|
1039
996
|
constructor(t) {
|
1040
997
|
d(this, "frm_id");
|
@@ -1071,7 +1028,6 @@ function List$1(e, t) {
|
|
1071
1028
|
}
|
1072
1029
|
List$1.method = "GET";
|
1073
1030
|
List$1.url = "/var/VarContext/list";
|
1074
|
-
console.assert(!0, DEF, keys$1);
|
1075
1031
|
class QueryByIdQuery$1 {
|
1076
1032
|
constructor(t) {
|
1077
1033
|
d(this, "id");
|
@@ -1115,7 +1071,6 @@ const index$5 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
|
|
1115
1071
|
QueryById: QueryById$1,
|
1116
1072
|
QueryByIdQuery: QueryByIdQuery$1
|
1117
1073
|
}, Symbol.toStringTag, { value: "Module" }));
|
1118
|
-
console.assert(!0, DEF, keys$1);
|
1119
1074
|
class QueryByIDQuery$1 {
|
1120
1075
|
constructor(t) {
|
1121
1076
|
d(this, "id");
|
@@ -1140,7 +1095,6 @@ function QueryByID$1(e, t) {
|
|
1140
1095
|
}
|
1141
1096
|
QueryByID$1.method = "GET";
|
1142
1097
|
QueryByID$1.url = "/var/VarGridMaster/queryByID";
|
1143
|
-
console.assert(!0, DEF, keys$1);
|
1144
1098
|
class UpdateQuery {
|
1145
1099
|
}
|
1146
1100
|
function Update(e, t) {
|
@@ -1162,7 +1116,6 @@ const index$4 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
|
|
1162
1116
|
Update,
|
1163
1117
|
UpdateQuery
|
1164
1118
|
}, Symbol.toStringTag, { value: "Module" }));
|
1165
|
-
console.assert(!0, DEF, keys$1);
|
1166
1119
|
class QueryByIDQuery {
|
1167
1120
|
constructor(t) {
|
1168
1121
|
d(this, "id");
|
@@ -1192,7 +1145,6 @@ const index$3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
|
|
1192
1145
|
QueryByID,
|
1193
1146
|
QueryByIDQuery
|
1194
1147
|
}, Symbol.toStringTag, { value: "Module" }));
|
1195
|
-
console.assert(!0, DEF, keys$1);
|
1196
1148
|
class AddQuery {
|
1197
1149
|
}
|
1198
1150
|
function Add(e, t) {
|
@@ -1207,7 +1159,6 @@ function Add(e, t) {
|
|
1207
1159
|
}
|
1208
1160
|
Add.method = "POST";
|
1209
1161
|
Add.url = "/var/VarVariableCatalog/add";
|
1210
|
-
console.assert(!0, DEF, keys$1);
|
1211
1162
|
class DeleteQuery {
|
1212
1163
|
constructor(t) {
|
1213
1164
|
d(this, "id");
|
@@ -1232,7 +1183,6 @@ function Delete(e, t) {
|
|
1232
1183
|
}
|
1233
1184
|
Delete.method = "DELETE";
|
1234
1185
|
Delete.url = "/var/VarVariableCatalog/delete";
|
1235
|
-
console.assert(!0, DEF, keys$1);
|
1236
1186
|
class DeleteBatchQuery {
|
1237
1187
|
constructor(t) {
|
1238
1188
|
d(this, "ids");
|
@@ -1257,7 +1207,6 @@ function DeleteBatch(e, t) {
|
|
1257
1207
|
}
|
1258
1208
|
DeleteBatch.method = "DELETE";
|
1259
1209
|
DeleteBatch.url = "/var/VarVariableCatalog/deleteBatch";
|
1260
|
-
console.assert(!0, DEF, keys$1);
|
1261
1210
|
class EditQuery {
|
1262
1211
|
}
|
1263
1212
|
function Edit(e, t) {
|
@@ -1272,7 +1221,6 @@ function Edit(e, t) {
|
|
1272
1221
|
}
|
1273
1222
|
Edit.method = "POST";
|
1274
1223
|
Edit.url = "/var/VarVariableCatalog/edit";
|
1275
|
-
console.assert(!0, DEF, keys$1);
|
1276
1224
|
class ExportXlsQuery {
|
1277
1225
|
constructor(t) {
|
1278
1226
|
d(this, "cust_lvl");
|
@@ -1309,7 +1257,6 @@ function ExportXls(e, t) {
|
|
1309
1257
|
}
|
1310
1258
|
ExportXls.method = "GET";
|
1311
1259
|
ExportXls.url = "/var/VarVariableCatalog/exportXls";
|
1312
|
-
console.assert(!0, DEF, keys$1);
|
1313
1260
|
class ImportExcelQuery {
|
1314
1261
|
}
|
1315
1262
|
function ImportExcel(e, t) {
|
@@ -1324,7 +1271,6 @@ function ImportExcel(e, t) {
|
|
1324
1271
|
}
|
1325
1272
|
ImportExcel.method = "POST";
|
1326
1273
|
ImportExcel.url = "/var/VarVariableCatalog/importExcel";
|
1327
|
-
console.assert(!0, DEF, keys$1);
|
1328
1274
|
class ListQuery {
|
1329
1275
|
constructor(t) {
|
1330
1276
|
d(this, "cust_lvl");
|
@@ -1367,7 +1313,6 @@ function List(e, t) {
|
|
1367
1313
|
}
|
1368
1314
|
List.method = "GET";
|
1369
1315
|
List.url = "/var/VarVariableCatalog/list";
|
1370
|
-
console.assert(!0, DEF, keys$1);
|
1371
1316
|
class QueryByIdQuery {
|
1372
1317
|
constructor(t) {
|
1373
1318
|
d(this, "id");
|
@@ -1411,7 +1356,6 @@ const index$2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
|
|
1411
1356
|
QueryById,
|
1412
1357
|
QueryByIdQuery
|
1413
1358
|
}, Symbol.toStringTag, { value: "Module" }));
|
1414
|
-
console.assert(!0, DEF, keys$1);
|
1415
1359
|
class ListVOQuery {
|
1416
1360
|
constructor(t) {
|
1417
1361
|
d(this, "activeFlg");
|
@@ -1482,6 +1426,7 @@ const index$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
|
|
1482
1426
|
__proto__: null,
|
1483
1427
|
WMS: index
|
1484
1428
|
}, Symbol.toStringTag, { value: "Module" }));
|
1429
|
+
console.log("444:");
|
1485
1430
|
console.log("333:");
|
1486
1431
|
function bound01(e, t) {
|
1487
1432
|
isOnePointZero(e) && (e = "100%");
|
@@ -1518,35 +1463,35 @@ function hslToRgb(e, t, r) {
|
|
1518
1463
|
if (e = bound01(e, 360), t = bound01(t, 100), r = bound01(r, 100), t === 0)
|
1519
1464
|
a = r, o = r, n = r;
|
1520
1465
|
else {
|
1521
|
-
var
|
1522
|
-
n = hue2rgb(
|
1466
|
+
var i = r < 0.5 ? r * (1 + t) : r + t - r * t, s = 2 * r - i;
|
1467
|
+
n = hue2rgb(s, i, e + 1 / 3), a = hue2rgb(s, i, e), o = hue2rgb(s, i, e - 1 / 3);
|
1523
1468
|
}
|
1524
1469
|
return { r: n * 255, g: a * 255, b: o * 255 };
|
1525
1470
|
}
|
1526
1471
|
function rgbToHsv(e, t, r) {
|
1527
1472
|
e = bound01(e, 255), t = bound01(t, 255), r = bound01(r, 255);
|
1528
|
-
var n = Math.max(e, t, r), a = Math.min(e, t, r), o = 0,
|
1473
|
+
var n = Math.max(e, t, r), a = Math.min(e, t, r), o = 0, i = n, s = n - a, l = n === 0 ? 0 : s / n;
|
1529
1474
|
if (n === a)
|
1530
1475
|
o = 0;
|
1531
1476
|
else {
|
1532
1477
|
switch (n) {
|
1533
1478
|
case e:
|
1534
|
-
o = (t - r) /
|
1479
|
+
o = (t - r) / s + (t < r ? 6 : 0);
|
1535
1480
|
break;
|
1536
1481
|
case t:
|
1537
|
-
o = (r - e) /
|
1482
|
+
o = (r - e) / s + 2;
|
1538
1483
|
break;
|
1539
1484
|
case r:
|
1540
|
-
o = (e - t) /
|
1485
|
+
o = (e - t) / s + 4;
|
1541
1486
|
break;
|
1542
1487
|
}
|
1543
1488
|
o /= 6;
|
1544
1489
|
}
|
1545
|
-
return { h: o, s: l, v:
|
1490
|
+
return { h: o, s: l, v: i };
|
1546
1491
|
}
|
1547
1492
|
function hsvToRgb(e, t, r) {
|
1548
1493
|
e = bound01(e, 360) * 6, t = bound01(t, 100), r = bound01(r, 100);
|
1549
|
-
var n = Math.floor(e), a = e - n, o = r * (1 - t),
|
1494
|
+
var n = Math.floor(e), a = e - n, o = r * (1 - t), i = r * (1 - a * t), s = r * (1 - (1 - a) * t), l = n % 6, u = [r, i, o, o, s, r][l], c = [s, r, r, i, o, o][l], g = [o, o, s, r, r, i][l];
|
1550
1495
|
return { r: u * 255, g: c * 255, b: g * 255 };
|
1551
1496
|
}
|
1552
1497
|
function rgbToHex(e, t, r, n) {
|
@@ -1714,10 +1659,10 @@ var names = {
|
|
1714
1659
|
yellowgreen: "#9acd32"
|
1715
1660
|
};
|
1716
1661
|
function inputToRGB(e) {
|
1717
|
-
var t = { r: 0, g: 0, b: 0 }, r = 1, n = null, a = null, o = null,
|
1718
|
-
return typeof e == "string" && (e = stringInputToObject(e)), typeof e == "object" && (isValidCSSUnit(e.r) && isValidCSSUnit(e.g) && isValidCSSUnit(e.b) ? (t = rgbToRgb(e.r, e.g, e.b),
|
1719
|
-
ok:
|
1720
|
-
format: e.format ||
|
1662
|
+
var t = { r: 0, g: 0, b: 0 }, r = 1, n = null, a = null, o = null, i = !1, s = !1;
|
1663
|
+
return typeof e == "string" && (e = stringInputToObject(e)), typeof e == "object" && (isValidCSSUnit(e.r) && isValidCSSUnit(e.g) && isValidCSSUnit(e.b) ? (t = rgbToRgb(e.r, e.g, e.b), i = !0, s = String(e.r).substr(-1) === "%" ? "prgb" : "rgb") : isValidCSSUnit(e.h) && isValidCSSUnit(e.s) && isValidCSSUnit(e.v) ? (n = convertToPercentage(e.s), a = convertToPercentage(e.v), t = hsvToRgb(e.h, n, a), i = !0, s = "hsv") : isValidCSSUnit(e.h) && isValidCSSUnit(e.s) && isValidCSSUnit(e.l) && (n = convertToPercentage(e.s), o = convertToPercentage(e.l), t = hslToRgb(e.h, n, o), i = !0, s = "hsl"), Object.prototype.hasOwnProperty.call(e, "a") && (r = e.a)), r = boundAlpha(r), {
|
1664
|
+
ok: i,
|
1665
|
+
format: e.format || s,
|
1721
1666
|
r: Math.min(255, Math.max(t.r, 0)),
|
1722
1667
|
g: Math.min(255, Math.max(t.g, 0)),
|
1723
1668
|
b: Math.min(255, Math.max(t.b, 0)),
|
@@ -1840,19 +1785,19 @@ function getValue$1(e, t, r) {
|
|
1840
1785
|
}
|
1841
1786
|
function generate$1(e) {
|
1842
1787
|
for (var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = [], n = inputToRGB(e), a = lightColorCount; a > 0; a -= 1) {
|
1843
|
-
var o = toHsv(n),
|
1788
|
+
var o = toHsv(n), i = toHex(inputToRGB({
|
1844
1789
|
h: getHue(o, a, !0),
|
1845
1790
|
s: getSaturation(o, a, !0),
|
1846
1791
|
v: getValue$1(o, a, !0)
|
1847
1792
|
}));
|
1848
|
-
r.push(
|
1793
|
+
r.push(i);
|
1849
1794
|
}
|
1850
1795
|
r.push(toHex(n));
|
1851
|
-
for (var
|
1796
|
+
for (var s = 1; s <= darkColorCount; s += 1) {
|
1852
1797
|
var l = toHsv(n), u = toHex(inputToRGB({
|
1853
|
-
h: getHue(l,
|
1854
|
-
s: getSaturation(l,
|
1855
|
-
v: getValue$1(l,
|
1798
|
+
h: getHue(l, s),
|
1799
|
+
s: getSaturation(l, s),
|
1800
|
+
v: getValue$1(l, s)
|
1856
1801
|
}));
|
1857
1802
|
r.push(u);
|
1858
1803
|
}
|
@@ -2043,16 +1988,16 @@ function getTwoToneColors() {
|
|
2043
1988
|
return _objectSpread$l({}, twoToneColorPalette);
|
2044
1989
|
}
|
2045
1990
|
var IconBase = function(t, r) {
|
2046
|
-
var n = _objectSpread$l({}, t, r.attrs), a = n.icon, o = n.primaryColor,
|
1991
|
+
var n = _objectSpread$l({}, t, r.attrs), a = n.icon, o = n.primaryColor, i = n.secondaryColor, s = _objectWithoutProperties$1(n, _excluded$1), l = twoToneColorPalette;
|
2047
1992
|
if (o && (l = {
|
2048
1993
|
primaryColor: o,
|
2049
|
-
secondaryColor:
|
1994
|
+
secondaryColor: i || getSecondaryColor(o)
|
2050
1995
|
}), useInsertStyles(), warning(isIconDefinition(a), "icon should be icon definiton, but got ".concat(a)), !isIconDefinition(a))
|
2051
1996
|
return null;
|
2052
1997
|
var u = a;
|
2053
1998
|
return u && typeof u.icon == "function" && (u = _objectSpread$l({}, u, {
|
2054
1999
|
icon: u.icon(l.primaryColor, l.secondaryColor)
|
2055
|
-
})), generate(u.icon, "svg-".concat(u.name), _objectSpread$l({},
|
2000
|
+
})), generate(u.icon, "svg-".concat(u.name), _objectSpread$l({}, s, {
|
2056
2001
|
"data-icon": u.name,
|
2057
2002
|
width: "1em",
|
2058
2003
|
height: "1em",
|
@@ -2098,18 +2043,18 @@ function _arrayLikeToArray$1(e, t) {
|
|
2098
2043
|
function _iterableToArrayLimit$1(e, t) {
|
2099
2044
|
var r = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
2100
2045
|
if (r != null) {
|
2101
|
-
var n = [], a = !0, o = !1,
|
2046
|
+
var n = [], a = !0, o = !1, i, s;
|
2102
2047
|
try {
|
2103
|
-
for (r = r.call(e); !(a = (
|
2048
|
+
for (r = r.call(e); !(a = (i = r.next()).done) && (n.push(i.value), !(t && n.length === t)); a = !0)
|
2104
2049
|
;
|
2105
2050
|
} catch (l) {
|
2106
|
-
o = !0,
|
2051
|
+
o = !0, s = l;
|
2107
2052
|
} finally {
|
2108
2053
|
try {
|
2109
2054
|
!a && r.return != null && r.return();
|
2110
2055
|
} finally {
|
2111
2056
|
if (o)
|
2112
|
-
throw
|
2057
|
+
throw s;
|
2113
2058
|
}
|
2114
2059
|
}
|
2115
2060
|
return n;
|
@@ -2158,18 +2103,18 @@ function _arrayLikeToArray(e, t) {
|
|
2158
2103
|
function _iterableToArrayLimit(e, t) {
|
2159
2104
|
var r = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
2160
2105
|
if (r != null) {
|
2161
|
-
var n = [], a = !0, o = !1,
|
2106
|
+
var n = [], a = !0, o = !1, i, s;
|
2162
2107
|
try {
|
2163
|
-
for (r = r.call(e); !(a = (
|
2108
|
+
for (r = r.call(e); !(a = (i = r.next()).done) && (n.push(i.value), !(t && n.length === t)); a = !0)
|
2164
2109
|
;
|
2165
2110
|
} catch (l) {
|
2166
|
-
o = !0,
|
2111
|
+
o = !0, s = l;
|
2167
2112
|
} finally {
|
2168
2113
|
try {
|
2169
2114
|
!a && r.return != null && r.return();
|
2170
2115
|
} finally {
|
2171
2116
|
if (o)
|
2172
|
-
throw
|
2117
|
+
throw s;
|
2173
2118
|
}
|
2174
2119
|
}
|
2175
2120
|
return n;
|
@@ -2214,9 +2159,9 @@ function _objectWithoutPropertiesLoose(e, t) {
|
|
2214
2159
|
}
|
2215
2160
|
setTwoToneColor("#1890ff");
|
2216
2161
|
var Icon$1 = function(t, r) {
|
2217
|
-
var n, a = _objectSpread$k({}, t, r.attrs), o = a.class,
|
2162
|
+
var n, a = _objectSpread$k({}, t, r.attrs), o = a.class, i = a.icon, s = a.spin, l = a.rotate, u = a.tabindex, c = a.twoToneColor, g = a.onClick, p = _objectWithoutProperties(a, _excluded), b = (n = {
|
2218
2163
|
anticon: !0
|
2219
|
-
}, _defineProperty$k(n, "anticon-".concat(
|
2164
|
+
}, _defineProperty$k(n, "anticon-".concat(i.name), Boolean(i.name)), _defineProperty$k(n, o, o), n), m = s === "" || !!s || i.name === "loading" ? "anticon-spin" : "", v = u;
|
2220
2165
|
v === void 0 && g && (v = -1, p.tabindex = v);
|
2221
2166
|
var _ = l ? {
|
2222
2167
|
msTransform: "rotate(".concat(l, "deg)"),
|
@@ -2224,13 +2169,13 @@ var Icon$1 = function(t, r) {
|
|
2224
2169
|
} : void 0, y = normalizeTwoToneColors(c), C = _slicedToArray(y, 2), E = C[0], T = C[1];
|
2225
2170
|
return createVNode("span", _objectSpread$k({
|
2226
2171
|
role: "img",
|
2227
|
-
"aria-label":
|
2172
|
+
"aria-label": i.name
|
2228
2173
|
}, p, {
|
2229
2174
|
onClick: g,
|
2230
2175
|
class: b
|
2231
2176
|
}), [createVNode(VueIcon, {
|
2232
2177
|
class: m,
|
2233
|
-
icon:
|
2178
|
+
icon: i,
|
2234
2179
|
primaryColor: E,
|
2235
2180
|
secondaryColor: T,
|
2236
2181
|
style: _
|
@@ -2788,29 +2733,29 @@ const UploadOutlined$1 = UploadOutlined, data$7 = {
|
|
2788
2733
|
if (a.length > 3 || !a.length)
|
2789
2734
|
return null;
|
2790
2735
|
if (a.length > 1) {
|
2791
|
-
const
|
2736
|
+
const s = a.pop(), l = a.pop(), u = {
|
2792
2737
|
provider: a.length > 0 ? a[0] : n,
|
2793
2738
|
prefix: l,
|
2794
|
-
name:
|
2739
|
+
name: s
|
2795
2740
|
};
|
2796
2741
|
return t && !validateIconName(u) ? null : u;
|
2797
2742
|
}
|
2798
|
-
const o = a[0],
|
2799
|
-
if (
|
2800
|
-
const
|
2743
|
+
const o = a[0], i = o.split("-");
|
2744
|
+
if (i.length > 1) {
|
2745
|
+
const s = {
|
2801
2746
|
provider: n,
|
2802
|
-
prefix:
|
2803
|
-
name:
|
2747
|
+
prefix: i.shift(),
|
2748
|
+
name: i.join("-")
|
2804
2749
|
};
|
2805
|
-
return t && !validateIconName(
|
2750
|
+
return t && !validateIconName(s) ? null : s;
|
2806
2751
|
}
|
2807
2752
|
if (r && n === "") {
|
2808
|
-
const
|
2753
|
+
const s = {
|
2809
2754
|
provider: n,
|
2810
2755
|
prefix: "",
|
2811
2756
|
name: o
|
2812
2757
|
};
|
2813
|
-
return t && !validateIconName(
|
2758
|
+
return t && !validateIconName(s, r) ? null : s;
|
2814
2759
|
}
|
2815
2760
|
return null;
|
2816
2761
|
}, validateIconName = (e, t) => e ? !!((e.provider === "" || e.provider.match(matchIconName)) && (t && e.prefix === "" || e.prefix.match(matchIconName)) && e.name.match(matchIconName)) : !1, defaultIconDimensions = Object.freeze(
|
@@ -2846,28 +2791,28 @@ function mergeIconData(e, t) {
|
|
2846
2791
|
}
|
2847
2792
|
function getIconsTree(e, t) {
|
2848
2793
|
const r = e.icons, n = e.aliases || /* @__PURE__ */ Object.create(null), a = /* @__PURE__ */ Object.create(null);
|
2849
|
-
function o(
|
2850
|
-
if (r[
|
2851
|
-
return a[
|
2852
|
-
if (!(
|
2853
|
-
a[
|
2854
|
-
const
|
2855
|
-
l && (a[
|
2794
|
+
function o(i) {
|
2795
|
+
if (r[i])
|
2796
|
+
return a[i] = [];
|
2797
|
+
if (!(i in a)) {
|
2798
|
+
a[i] = null;
|
2799
|
+
const s = n[i] && n[i].parent, l = s && o(s);
|
2800
|
+
l && (a[i] = [s].concat(l));
|
2856
2801
|
}
|
2857
|
-
return a[
|
2802
|
+
return a[i];
|
2858
2803
|
}
|
2859
2804
|
return (t || Object.keys(r).concat(Object.keys(n))).forEach(o), a;
|
2860
2805
|
}
|
2861
2806
|
function internalGetIconData(e, t, r) {
|
2862
2807
|
const n = e.icons, a = e.aliases || /* @__PURE__ */ Object.create(null);
|
2863
2808
|
let o = {};
|
2864
|
-
function s
|
2809
|
+
function i(s) {
|
2865
2810
|
o = mergeIconData(
|
2866
|
-
n[
|
2811
|
+
n[s] || a[s],
|
2867
2812
|
o
|
2868
2813
|
);
|
2869
2814
|
}
|
2870
|
-
return
|
2815
|
+
return i(t), r.forEach(i), mergeIconData(e, o);
|
2871
2816
|
}
|
2872
2817
|
function parseIconSet(e, t) {
|
2873
2818
|
const r = [];
|
@@ -2912,8 +2857,8 @@ function quicklyValidateIconSet(e) {
|
|
2912
2857
|
}
|
2913
2858
|
const n = t.aliases || /* @__PURE__ */ Object.create(null);
|
2914
2859
|
for (const a in n) {
|
2915
|
-
const o = n[a],
|
2916
|
-
if (!a.match(matchIconName) || typeof
|
2860
|
+
const o = n[a], i = o.parent;
|
2861
|
+
if (!a.match(matchIconName) || typeof i != "string" || !r[i] && !n[i] || !checkOptionalProps(
|
2917
2862
|
o,
|
2918
2863
|
defaultExtendedIconProps
|
2919
2864
|
))
|
@@ -2970,8 +2915,8 @@ function addCollection(e, t) {
|
|
2970
2915
|
return !1;
|
2971
2916
|
if (typeof t != "string" && (t = e.provider || ""), simpleNames && !t && !e.prefix) {
|
2972
2917
|
let a = !1;
|
2973
|
-
return quicklyValidateIconSet(e) && (e.prefix = "", parseIconSet(e, (o,
|
2974
|
-
|
2918
|
+
return quicklyValidateIconSet(e) && (e.prefix = "", parseIconSet(e, (o, i) => {
|
2919
|
+
i && addIcon(o, i) && (a = !0);
|
2975
2920
|
})), a;
|
2976
2921
|
}
|
2977
2922
|
const r = e.prefix;
|
@@ -3002,16 +2947,16 @@ function calculateSize(e, t, r) {
|
|
3002
2947
|
if (n === null || !n.length)
|
3003
2948
|
return e;
|
3004
2949
|
const a = [];
|
3005
|
-
let o = n.shift(),
|
2950
|
+
let o = n.shift(), i = unitsTest.test(o);
|
3006
2951
|
for (; ; ) {
|
3007
|
-
if (
|
3008
|
-
const
|
3009
|
-
isNaN(
|
2952
|
+
if (i) {
|
2953
|
+
const s = parseFloat(o);
|
2954
|
+
isNaN(s) ? a.push(o) : a.push(Math.ceil(s * t * r) / r);
|
3010
2955
|
} else
|
3011
2956
|
a.push(o);
|
3012
2957
|
if (o = n.shift(), o === void 0)
|
3013
2958
|
return a.join("");
|
3014
|
-
|
2959
|
+
i = !i;
|
3015
2960
|
}
|
3016
2961
|
}
|
3017
2962
|
const isUnsetKeyword = (e) => e === "unset" || e === "undefined" || e === "none";
|
@@ -3057,9 +3002,9 @@ function iconToSVG(e, t) {
|
|
3057
3002
|
}
|
3058
3003
|
C % 2 === 1 && (a.left !== a.top && (E = a.left, a.left = a.top, a.top = E), a.width !== a.height && (E = a.width, a.width = a.height, a.height = E)), v.length && (o = '<g transform="' + v.join(" ") + '">' + o + "</g>");
|
3059
3004
|
});
|
3060
|
-
const
|
3005
|
+
const i = n.width, s = n.height, l = a.width, u = a.height;
|
3061
3006
|
let c, g;
|
3062
|
-
|
3007
|
+
i === null ? (g = s === null ? "1em" : s === "auto" ? u : s, c = calculateSize(g, l / u)) : (c = i === "auto" ? l : i, g = s === null ? calculateSize(c, u / l) : s === "auto" ? u : s);
|
3063
3008
|
const p = {}, b = (m, v) => {
|
3064
3009
|
isUnsetKeyword(v) || (p[m] = v.toString());
|
3065
3010
|
};
|
@@ -3079,10 +3024,10 @@ function replaceIDs(e, t = randomPrefix) {
|
|
3079
3024
|
return e;
|
3080
3025
|
const a = "suffix" + (Math.random() * 16777216 | Date.now()).toString(16);
|
3081
3026
|
return r.forEach((o) => {
|
3082
|
-
const
|
3027
|
+
const i = typeof t == "function" ? t(o) : t + (counter++).toString(), s = o.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
3083
3028
|
e = e.replace(
|
3084
|
-
new RegExp('([#;"])(' +
|
3085
|
-
"$1" +
|
3029
|
+
new RegExp('([#;"])(' + s + ')([")]|\\.[a-z])', "g"),
|
3030
|
+
"$1" + i + a + "$3"
|
3086
3031
|
);
|
3087
3032
|
}), e = e.replace(new RegExp(a, "g"), ""), e;
|
3088
3033
|
}
|
@@ -3144,8 +3089,8 @@ function calculateMaxLength(e, t) {
|
|
3144
3089
|
n = 0;
|
3145
3090
|
else {
|
3146
3091
|
let a = 0;
|
3147
|
-
r.resources.forEach((
|
3148
|
-
a = Math.max(a,
|
3092
|
+
r.resources.forEach((i) => {
|
3093
|
+
a = Math.max(a, i.length);
|
3149
3094
|
});
|
3150
3095
|
const o = t + ".json?icons=";
|
3151
3096
|
n = r.maxURL - a - r.path.length - o.length;
|
@@ -3157,20 +3102,20 @@ function shouldAbort(e) {
|
|
3157
3102
|
}
|
3158
3103
|
const prepare = (e, t, r) => {
|
3159
3104
|
const n = [], a = calculateMaxLength(e, t), o = "icons";
|
3160
|
-
let
|
3105
|
+
let i = {
|
3161
3106
|
type: o,
|
3162
3107
|
provider: e,
|
3163
3108
|
prefix: t,
|
3164
3109
|
icons: []
|
3165
|
-
},
|
3110
|
+
}, s = 0;
|
3166
3111
|
return r.forEach((l, u) => {
|
3167
|
-
|
3112
|
+
s += l.length + 1, s >= a && u > 0 && (n.push(i), i = {
|
3168
3113
|
type: o,
|
3169
3114
|
provider: e,
|
3170
3115
|
prefix: t,
|
3171
3116
|
icons: []
|
3172
|
-
},
|
3173
|
-
}), n.push(
|
3117
|
+
}, s = l.length), i.icons.push(l);
|
3118
|
+
}), n.push(i), n;
|
3174
3119
|
};
|
3175
3120
|
function getPath(e) {
|
3176
3121
|
if (typeof e == "string") {
|
@@ -3188,8 +3133,8 @@ const send = (e, t, r) => {
|
|
3188
3133
|
let n = getPath(t.provider);
|
3189
3134
|
switch (t.type) {
|
3190
3135
|
case "icons": {
|
3191
|
-
const o = t.prefix,
|
3192
|
-
icons:
|
3136
|
+
const o = t.prefix, s = t.icons.join(","), l = new URLSearchParams({
|
3137
|
+
icons: s
|
3193
3138
|
});
|
3194
3139
|
n += o + ".json?" + l.toString();
|
3195
3140
|
break;
|
@@ -3205,10 +3150,10 @@ const send = (e, t, r) => {
|
|
3205
3150
|
}
|
3206
3151
|
let a = 503;
|
3207
3152
|
fetchModule(e + n).then((o) => {
|
3208
|
-
const
|
3209
|
-
if (
|
3153
|
+
const i = o.status;
|
3154
|
+
if (i !== 200) {
|
3210
3155
|
setTimeout(() => {
|
3211
|
-
r(shouldAbort(
|
3156
|
+
r(shouldAbort(i) ? "abort" : "next", i);
|
3212
3157
|
});
|
3213
3158
|
return;
|
3214
3159
|
}
|
@@ -3246,13 +3191,13 @@ function sortIcons(e) {
|
|
3246
3191
|
if (n.name === a.name && n.prefix === a.prefix && n.provider === a.provider)
|
3247
3192
|
return;
|
3248
3193
|
n = a;
|
3249
|
-
const o = a.provider,
|
3194
|
+
const o = a.provider, i = a.prefix, s = a.name, l = r[o] || (r[o] = /* @__PURE__ */ Object.create(null)), u = l[i] || (l[i] = getStorage(o, i));
|
3250
3195
|
let c;
|
3251
|
-
|
3196
|
+
s in u.icons ? c = t.loaded : i === "" || u.missing.has(s) ? c = t.missing : c = t.pending;
|
3252
3197
|
const g = {
|
3253
3198
|
provider: o,
|
3254
|
-
prefix:
|
3255
|
-
name:
|
3199
|
+
prefix: i,
|
3200
|
+
name: s
|
3256
3201
|
};
|
3257
3202
|
c.push(g);
|
3258
3203
|
}), t;
|
@@ -3272,19 +3217,19 @@ function updateCallbacks(e) {
|
|
3272
3217
|
let r = !1;
|
3273
3218
|
const n = e.provider, a = e.prefix;
|
3274
3219
|
t.forEach((o) => {
|
3275
|
-
const
|
3276
|
-
|
3220
|
+
const i = o.icons, s = i.pending.length;
|
3221
|
+
i.pending = i.pending.filter((l) => {
|
3277
3222
|
if (l.prefix !== a)
|
3278
3223
|
return !0;
|
3279
3224
|
const u = l.name;
|
3280
3225
|
if (e.icons[u])
|
3281
|
-
|
3226
|
+
i.loaded.push({
|
3282
3227
|
provider: n,
|
3283
3228
|
prefix: a,
|
3284
3229
|
name: u
|
3285
3230
|
});
|
3286
3231
|
else if (e.missing.has(u))
|
3287
|
-
|
3232
|
+
i.missing.push({
|
3288
3233
|
provider: n,
|
3289
3234
|
prefix: a,
|
3290
3235
|
name: u
|
@@ -3292,10 +3237,10 @@ function updateCallbacks(e) {
|
|
3292
3237
|
else
|
3293
3238
|
return r = !0, !0;
|
3294
3239
|
return !1;
|
3295
|
-
}),
|
3296
|
-
|
3297
|
-
|
3298
|
-
|
3240
|
+
}), i.pending.length !== s && (r || removeCallback([e], o.id), o.callback(
|
3241
|
+
i.loaded.slice(0),
|
3242
|
+
i.missing.slice(0),
|
3243
|
+
i.pending.slice(0),
|
3299
3244
|
o.abort
|
3300
3245
|
));
|
3301
3246
|
});
|
@@ -3312,8 +3257,8 @@ function storeCallback(e, t, r) {
|
|
3312
3257
|
callback: e,
|
3313
3258
|
abort: a
|
3314
3259
|
};
|
3315
|
-
return r.forEach((
|
3316
|
-
(
|
3260
|
+
return r.forEach((i) => {
|
3261
|
+
(i.loaderCallbacks || (i.loaderCallbacks = [])).push(o);
|
3317
3262
|
}), a;
|
3318
3263
|
}
|
3319
3264
|
function listToIcons(e, t = !0, r = !1) {
|
@@ -3333,17 +3278,17 @@ var defaultConfig = {
|
|
3333
3278
|
};
|
3334
3279
|
function sendQuery(e, t, r, n) {
|
3335
3280
|
const a = e.resources.length, o = e.random ? Math.floor(Math.random() * a) : e.index;
|
3336
|
-
let
|
3281
|
+
let i;
|
3337
3282
|
if (e.random) {
|
3338
3283
|
let k = e.resources.slice(0);
|
3339
|
-
for (
|
3284
|
+
for (i = []; k.length > 1; ) {
|
3340
3285
|
const w = Math.floor(Math.random() * k.length);
|
3341
|
-
|
3286
|
+
i.push(k[w]), k = k.slice(0, w).concat(k.slice(w + 1));
|
3342
3287
|
}
|
3343
|
-
|
3288
|
+
i = i.concat(k);
|
3344
3289
|
} else
|
3345
|
-
|
3346
|
-
const
|
3290
|
+
i = e.resources.slice(o).concat(e.resources.slice(0, o));
|
3291
|
+
const s = Date.now();
|
3347
3292
|
let l = "pending", u = 0, c, g = null, p = [], b = [];
|
3348
3293
|
typeof n == "function" && b.push(n);
|
3349
3294
|
function m() {
|
@@ -3359,7 +3304,7 @@ function sendQuery(e, t, r, n) {
|
|
3359
3304
|
}
|
3360
3305
|
function y() {
|
3361
3306
|
return {
|
3362
|
-
startTime:
|
3307
|
+
startTime: s,
|
3363
3308
|
payload: t,
|
3364
3309
|
status: l,
|
3365
3310
|
queriesSent: u,
|
@@ -3395,7 +3340,7 @@ function sendQuery(e, t, r, n) {
|
|
3395
3340
|
return;
|
3396
3341
|
}
|
3397
3342
|
if (A) {
|
3398
|
-
c = M, p.length || (
|
3343
|
+
c = M, p.length || (i.length ? I() : C());
|
3399
3344
|
return;
|
3400
3345
|
}
|
3401
3346
|
if (m(), E(), !e.random) {
|
@@ -3410,7 +3355,7 @@ function sendQuery(e, t, r, n) {
|
|
3410
3355
|
if (l !== "pending")
|
3411
3356
|
return;
|
3412
3357
|
m();
|
3413
|
-
const k =
|
3358
|
+
const k = i.shift();
|
3414
3359
|
if (k === void 0) {
|
3415
3360
|
if (p.length) {
|
3416
3361
|
g = setTimeout(() => {
|
@@ -3439,12 +3384,12 @@ function initRedundancy(e) {
|
|
3439
3384
|
};
|
3440
3385
|
let r = [];
|
3441
3386
|
function n() {
|
3442
|
-
r = r.filter((
|
3387
|
+
r = r.filter((s) => s().status === "pending");
|
3443
3388
|
}
|
3444
|
-
function a(
|
3389
|
+
function a(s, l, u) {
|
3445
3390
|
const c = sendQuery(
|
3446
3391
|
t,
|
3447
|
-
|
3392
|
+
s,
|
3448
3393
|
l,
|
3449
3394
|
(g, p) => {
|
3450
3395
|
n(), u && u(g, p);
|
@@ -3452,14 +3397,14 @@ function initRedundancy(e) {
|
|
3452
3397
|
);
|
3453
3398
|
return r.push(c), c;
|
3454
3399
|
}
|
3455
|
-
function o(
|
3456
|
-
return r.find((l) =>
|
3400
|
+
function o(s) {
|
3401
|
+
return r.find((l) => s(l)) || null;
|
3457
3402
|
}
|
3458
3403
|
return {
|
3459
3404
|
query: a,
|
3460
3405
|
find: o,
|
3461
|
-
setIndex: (
|
3462
|
-
t.index =
|
3406
|
+
setIndex: (s) => {
|
3407
|
+
t.index = s;
|
3463
3408
|
},
|
3464
3409
|
getIndex: () => t.index,
|
3465
3410
|
cleanup: n
|
@@ -3488,14 +3433,14 @@ function sendAPIQuery(e, t, r) {
|
|
3488
3433
|
if (!o)
|
3489
3434
|
return r(void 0, 424), emptyCallback$1;
|
3490
3435
|
a = o.send;
|
3491
|
-
const
|
3492
|
-
|
3436
|
+
const i = getRedundancyCache(e);
|
3437
|
+
i && (n = i.redundancy);
|
3493
3438
|
} else {
|
3494
3439
|
const o = createAPIConfig(e);
|
3495
3440
|
if (o) {
|
3496
3441
|
n = initRedundancy(o);
|
3497
|
-
const
|
3498
|
-
|
3442
|
+
const i = e.resources ? e.resources[0] : "", s = getAPIModule(i);
|
3443
|
+
s && (a = s.send);
|
3499
3444
|
}
|
3500
3445
|
}
|
3501
3446
|
return !n || !a ? (r(void 0, 424), emptyCallback$1) : n.query(t, a, r)().abort;
|
@@ -3553,28 +3498,28 @@ function iterateBrowserStorage(e, t) {
|
|
3553
3498
|
const n = getStoredItem(r, browserCacheVersionKey);
|
3554
3499
|
if (n !== browserCacheVersion) {
|
3555
3500
|
if (n) {
|
3556
|
-
const
|
3557
|
-
for (let l = 0; l <
|
3501
|
+
const s = getBrowserStorageItemsCount(r);
|
3502
|
+
for (let l = 0; l < s; l++)
|
3558
3503
|
removeStoredItem(r, browserCachePrefix + l.toString());
|
3559
3504
|
}
|
3560
3505
|
setStoredItem(r, browserCacheVersionKey, browserCacheVersion), setBrowserStorageItemsCount(r, 0);
|
3561
3506
|
return;
|
3562
3507
|
}
|
3563
|
-
const a = Math.floor(Date.now() / browserStorageHour) - browserStorageCacheExpiration, o = (
|
3564
|
-
const l = browserCachePrefix +
|
3508
|
+
const a = Math.floor(Date.now() / browserStorageHour) - browserStorageCacheExpiration, o = (s) => {
|
3509
|
+
const l = browserCachePrefix + s.toString(), u = getStoredItem(r, l);
|
3565
3510
|
if (typeof u == "string") {
|
3566
3511
|
try {
|
3567
3512
|
const c = JSON.parse(u);
|
3568
|
-
if (typeof c == "object" && typeof c.cached == "number" && c.cached > a && typeof c.provider == "string" && typeof c.data == "object" && typeof c.data.prefix == "string" && t(c,
|
3513
|
+
if (typeof c == "object" && typeof c.cached == "number" && c.cached > a && typeof c.provider == "string" && typeof c.data == "object" && typeof c.data.prefix == "string" && t(c, s))
|
3569
3514
|
return !0;
|
3570
3515
|
} catch {
|
3571
3516
|
}
|
3572
3517
|
removeStoredItem(r, l);
|
3573
3518
|
}
|
3574
3519
|
};
|
3575
|
-
let
|
3576
|
-
for (let
|
3577
|
-
o(
|
3520
|
+
let i = getBrowserStorageItemsCount(r);
|
3521
|
+
for (let s = i - 1; s >= 0; s--)
|
3522
|
+
o(s) || (s === i - 1 ? (i--, setBrowserStorageItemsCount(r, i)) : browserStorageEmptyItems[e].add(s));
|
3578
3523
|
}
|
3579
3524
|
function initBrowserStorage() {
|
3580
3525
|
if (!browserStorageStatus) {
|
@@ -3587,8 +3532,8 @@ function initBrowserStorage() {
|
|
3587
3532
|
);
|
3588
3533
|
if (!addIconSet(o, r).length)
|
3589
3534
|
return !1;
|
3590
|
-
const
|
3591
|
-
return o.lastModifiedCached = o.lastModifiedCached ? Math.min(o.lastModifiedCached,
|
3535
|
+
const i = r.lastModified || -1;
|
3536
|
+
return o.lastModifiedCached = o.lastModifiedCached ? Math.min(o.lastModifiedCached, i) : i, !0;
|
3592
3537
|
});
|
3593
3538
|
}
|
3594
3539
|
}
|
@@ -3611,20 +3556,20 @@ function storeInBrowserStorage(e, t) {
|
|
3611
3556
|
if (!browserStorageConfig[n] || !(a = getBrowserStorage(n)))
|
3612
3557
|
return;
|
3613
3558
|
const o = browserStorageEmptyItems[n];
|
3614
|
-
let
|
3559
|
+
let i;
|
3615
3560
|
if (o.size)
|
3616
|
-
o.delete(
|
3617
|
-
else if (
|
3561
|
+
o.delete(i = Array.from(o).shift());
|
3562
|
+
else if (i = getBrowserStorageItemsCount(a), !setBrowserStorageItemsCount(a, i + 1))
|
3618
3563
|
return;
|
3619
|
-
const
|
3564
|
+
const s = {
|
3620
3565
|
cached: Math.floor(Date.now() / browserStorageHour),
|
3621
3566
|
provider: e.provider,
|
3622
3567
|
data: t
|
3623
3568
|
};
|
3624
3569
|
return setStoredItem(
|
3625
3570
|
a,
|
3626
|
-
browserCachePrefix +
|
3627
|
-
JSON.stringify(
|
3571
|
+
browserCachePrefix + i.toString(),
|
3572
|
+
JSON.stringify(s)
|
3628
3573
|
);
|
3629
3574
|
}
|
3630
3575
|
t.lastModified && !updateLastModified(e, t.lastModified) || !Object.keys(t.icons).length || (t.not_found && (t = Object.assign({}, t), delete t.not_found), r("local") || r("session"));
|
@@ -3644,10 +3589,10 @@ function loadNewIcons(e, t) {
|
|
3644
3589
|
let o;
|
3645
3590
|
if (!a || !(o = getAPIModule(r)))
|
3646
3591
|
return;
|
3647
|
-
o.prepare(r, n, a).forEach((
|
3648
|
-
sendAPIQuery(r,
|
3592
|
+
o.prepare(r, n, a).forEach((s) => {
|
3593
|
+
sendAPIQuery(r, s, (l) => {
|
3649
3594
|
if (typeof l != "object")
|
3650
|
-
|
3595
|
+
s.icons.forEach((u) => {
|
3651
3596
|
e.missing.add(u);
|
3652
3597
|
});
|
3653
3598
|
else
|
@@ -3686,12 +3631,12 @@ const loadIcons = (e, t) => {
|
|
3686
3631
|
};
|
3687
3632
|
}
|
3688
3633
|
const a = /* @__PURE__ */ Object.create(null), o = [];
|
3689
|
-
let
|
3634
|
+
let i, s;
|
3690
3635
|
return n.pending.forEach((l) => {
|
3691
3636
|
const { provider: u, prefix: c } = l;
|
3692
|
-
if (c ===
|
3637
|
+
if (c === s && u === i)
|
3693
3638
|
return;
|
3694
|
-
|
3639
|
+
i = u, s = c, o.push(getStorage(u, c));
|
3695
3640
|
const g = a[u] || (a[u] = /* @__PURE__ */ Object.create(null));
|
3696
3641
|
g[c] || (g[c] = []);
|
3697
3642
|
}), n.pending.forEach((l) => {
|
@@ -3803,7 +3748,7 @@ function fixSize(e) {
|
|
3803
3748
|
return e + (e.match(/^[-0-9.]+$/) ? "px" : "");
|
3804
3749
|
}
|
3805
3750
|
const render = (e, t) => {
|
3806
|
-
const r = mergeCustomisations(defaultExtendedIconCustomisations, t), n = { ...svgDefaults }, a = t.mode || "svg", o = {},
|
3751
|
+
const r = mergeCustomisations(defaultExtendedIconCustomisations, t), n = { ...svgDefaults }, a = t.mode || "svg", o = {}, i = t.style, s = typeof i == "object" && !(i instanceof Array) ? i : {};
|
3807
3752
|
for (let v in t) {
|
3808
3753
|
const _ = t[v];
|
3809
3754
|
if (_ !== void 0)
|
@@ -3841,7 +3786,7 @@ const render = (e, t) => {
|
|
3841
3786
|
if (r.inline && (o.verticalAlign = "-0.125em"), a === "svg") {
|
3842
3787
|
n.style = {
|
3843
3788
|
...o,
|
3844
|
-
...
|
3789
|
+
...s
|
3845
3790
|
}, Object.assign(n, u);
|
3846
3791
|
let v = 0, _ = t.id;
|
3847
3792
|
return typeof _ == "string" && (_ = _.replace(/-/g, "_")), n.innerHTML = replaceIDs(l.body, _ ? () => _ + "ID" + v++ : "iconifyVue"), h("svg", n);
|
@@ -3858,7 +3803,7 @@ const render = (e, t) => {
|
|
3858
3803
|
height: fixSize(u.height),
|
3859
3804
|
...commonProps,
|
3860
3805
|
...b ? monotoneProps : coloredProps,
|
3861
|
-
...
|
3806
|
+
...s
|
3862
3807
|
}, h("span", n);
|
3863
3808
|
};
|
3864
3809
|
allowSimpleNames(!0);
|
@@ -3959,7 +3904,7 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
3959
3904
|
(function(r, n) {
|
3960
3905
|
e.exports = n();
|
3961
3906
|
})(commonjsGlobal, function() {
|
3962
|
-
var r = 1e3, n = 6e4, a = 36e5, o = "millisecond",
|
3907
|
+
var r = 1e3, n = 6e4, a = 36e5, o = "millisecond", i = "second", s = "minute", l = "hour", u = "day", c = "week", g = "month", p = "quarter", b = "year", m = "date", v = "Invalid Date", _ = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, C = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(P) {
|
3963
3908
|
var D = ["th", "st", "nd", "rd"], V = P % 100;
|
3964
3909
|
return "[" + P + (D[(V - 20) % 10] || D[V] || D[0]) + "]";
|
3965
3910
|
} }, E = function(P, D, V) {
|
@@ -3976,7 +3921,7 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
3976
3921
|
}, a: function(P) {
|
3977
3922
|
return P < 0 ? Math.ceil(P) || 0 : Math.floor(P);
|
3978
3923
|
}, p: function(P) {
|
3979
|
-
return { M: g, y: b, w: c, d: u, D: m, h: l, m:
|
3924
|
+
return { M: g, y: b, w: c, d: u, D: m, h: l, m: s, s: i, ms: o, Q: p }[P] || String(P || "").toLowerCase().replace(/s$/, "");
|
3980
3925
|
}, u: function(P) {
|
3981
3926
|
return P === void 0;
|
3982
3927
|
} }, I = "en", k = {};
|
@@ -4070,9 +4015,9 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4070
4015
|
return q(ee + "Hours", 0);
|
4071
4016
|
case l:
|
4072
4017
|
return q(ee + "Minutes", 1);
|
4073
|
-
case i:
|
4074
|
-
return q(ee + "Seconds", 2);
|
4075
4018
|
case s:
|
4019
|
+
return q(ee + "Seconds", 2);
|
4020
|
+
case i:
|
4076
4021
|
return q(ee + "Milliseconds", 3);
|
4077
4022
|
default:
|
4078
4023
|
return this.clone();
|
@@ -4080,7 +4025,7 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4080
4025
|
}, D.endOf = function(V) {
|
4081
4026
|
return this.startOf(V, !1);
|
4082
4027
|
}, D.$set = function(V, R) {
|
4083
|
-
var L, H = O.p(V), N = "set" + (this.$u ? "UTC" : ""), x = (L = {}, L[u] = N + "Date", L[m] = N + "Date", L[g] = N + "Month", L[b] = N + "FullYear", L[l] = N + "Hours", L[
|
4028
|
+
var L, H = O.p(V), N = "set" + (this.$u ? "UTC" : ""), x = (L = {}, L[u] = N + "Date", L[m] = N + "Date", L[g] = N + "Month", L[b] = N + "FullYear", L[l] = N + "Hours", L[s] = N + "Minutes", L[i] = N + "Seconds", L[o] = N + "Milliseconds", L)[H], q = H === u ? this.$D + (R - this.$W) : R;
|
4084
4029
|
if (H === g || H === b) {
|
4085
4030
|
var Y = this.clone().set(m, 1);
|
4086
4031
|
Y.$d[x](q), Y.init(), this.$d = Y.set(m, Math.min(this.$D, Y.daysInMonth())).$d;
|
@@ -4106,7 +4051,7 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4106
4051
|
return x(1);
|
4107
4052
|
if (N === c)
|
4108
4053
|
return x(7);
|
4109
|
-
var q = (L = {}, L[
|
4054
|
+
var q = (L = {}, L[s] = n, L[l] = a, L[i] = r, L)[N] || 1, Y = this.$d.getTime() + V * q;
|
4110
4055
|
return O.w(Y, this);
|
4111
4056
|
}, D.subtract = function(V, R) {
|
4112
4057
|
return this.add(-1 * V, R);
|
@@ -4129,7 +4074,7 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4129
4074
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
4130
4075
|
}, D.diff = function(V, R, L) {
|
4131
4076
|
var H, N = O.p(R), x = A(V), q = (x.utcOffset() - this.utcOffset()) * n, Y = this - x, Q = O.m(this, x);
|
4132
|
-
return Q = (H = {}, H[b] = Q / 12, H[g] = Q, H[p] = Q / 3, H[c] = (Y - q) / 6048e5, H[u] = (Y - q) / 864e5, H[l] = Y / a, H[
|
4077
|
+
return Q = (H = {}, H[b] = Q / 12, H[g] = Q, H[p] = Q / 3, H[c] = (Y - q) / 6048e5, H[u] = (Y - q) / 864e5, H[l] = Y / a, H[s] = Y / n, H[i] = Y / r, H)[N] || Y, L ? Q : O.a(Q);
|
4133
4078
|
}, D.daysInMonth = function() {
|
4134
4079
|
return this.endOf(g).$D;
|
4135
4080
|
}, D.$locale = function() {
|
@@ -4151,7 +4096,7 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4151
4096
|
return this.$d.toUTCString();
|
4152
4097
|
}, P;
|
4153
4098
|
}(), $ = B.prototype;
|
4154
|
-
return A.prototype = $, [["$ms", o], ["$s",
|
4099
|
+
return A.prototype = $, [["$ms", o], ["$s", i], ["$m", s], ["$H", l], ["$W", u], ["$M", g], ["$y", b], ["$D", m]].forEach(function(P) {
|
4155
4100
|
$[P[1]] = function(D) {
|
4156
4101
|
return this.$g(D, P[0], P[1]);
|
4157
4102
|
};
|
@@ -4192,8 +4137,8 @@ function filesize(e, {
|
|
4192
4137
|
base: n = -1,
|
4193
4138
|
round: a = 2,
|
4194
4139
|
locale: o = EMPTY,
|
4195
|
-
localeOptions:
|
4196
|
-
separator:
|
4140
|
+
localeOptions: i = {},
|
4141
|
+
separator: s = EMPTY,
|
4197
4142
|
spacer: l = SPACE,
|
4198
4143
|
symbols: u = {},
|
4199
4144
|
standard: c = EMPTY,
|
@@ -4220,8 +4165,8 @@ function filesize(e, {
|
|
4220
4165
|
const O = Math.pow(10, y > 0 ? a : 0);
|
4221
4166
|
E[0] = A(T * O) / O, E[0] === k && y < 8 && m === -1 && (E[0] = 1, y++), I = E[1] = n === 10 && y === 1 ? t ? SI_KBIT : SI_KBYTE : STRINGS.symbol[c][t ? BITS : BYTES][y];
|
4222
4167
|
}
|
4223
|
-
if (M && (E[0] = -E[0]), _ > 0 && (E[0] = E[0].toPrecision(_)), E[1] = u[E[1]] || E[1], o === !0 ? E[0] = E[0].toLocaleString() : o.length > 0 ? E[0] = E[0].toLocaleString(o,
|
4224
|
-
const O =
|
4168
|
+
if (M && (E[0] = -E[0]), _ > 0 && (E[0] = E[0].toPrecision(_)), E[1] = u[E[1]] || E[1], o === !0 ? E[0] = E[0].toLocaleString() : o.length > 0 ? E[0] = E[0].toLocaleString(o, i) : s.length > 0 && (E[0] = E[0].toString().replace(PERIOD, s)), r && Number.isInteger(E[0]) === !1 && a > 0) {
|
4169
|
+
const O = s || PERIOD, B = E[0].toString().split(O), $ = B[1] || EMPTY, P = $.length, D = a - P;
|
4225
4170
|
E[0] = `${B[0]}${O}${$.padEnd(P + D, ZERO)}`;
|
4226
4171
|
}
|
4227
4172
|
return w && (E[1] = b[y] ? b[y] : STRINGS.fullform[c][y] + (t ? BIT : BYTE) + (E[0] === 1 ? EMPTY : S)), g === ARRAY ? E : g === OBJECT ? {
|
@@ -4495,21 +4440,21 @@ function assignValue(e, t, r) {
|
|
4495
4440
|
function copyObject(e, t, r, n) {
|
4496
4441
|
var a = !r;
|
4497
4442
|
r || (r = {});
|
4498
|
-
for (var o = -1,
|
4499
|
-
var
|
4500
|
-
l === void 0 && (l = e[
|
4443
|
+
for (var o = -1, i = t.length; ++o < i; ) {
|
4444
|
+
var s = t[o], l = n ? n(r[s], e[s], s, r, e) : void 0;
|
4445
|
+
l === void 0 && (l = e[s]), a ? baseAssignValue(r, s, l) : assignValue(r, s, l);
|
4501
4446
|
}
|
4502
4447
|
return r;
|
4503
4448
|
}
|
4504
4449
|
var nativeMax$1 = Math.max;
|
4505
4450
|
function overRest(e, t, r) {
|
4506
4451
|
return t = nativeMax$1(t === void 0 ? e.length - 1 : t, 0), function() {
|
4507
|
-
for (var n = arguments, a = -1, o = nativeMax$1(n.length - t, 0),
|
4508
|
-
|
4452
|
+
for (var n = arguments, a = -1, o = nativeMax$1(n.length - t, 0), i = Array(o); ++a < o; )
|
4453
|
+
i[a] = n[t + a];
|
4509
4454
|
a = -1;
|
4510
|
-
for (var
|
4511
|
-
|
4512
|
-
return
|
4455
|
+
for (var s = Array(t + 1); ++a < t; )
|
4456
|
+
s[a] = n[a];
|
4457
|
+
return s[t] = r(i), apply(e, this, s);
|
4513
4458
|
};
|
4514
4459
|
}
|
4515
4460
|
function baseRest(e, t) {
|
@@ -4576,10 +4521,10 @@ var nodeIsTypedArray = nodeUtil$1 && nodeUtil$1.isTypedArray, isTypedArray = nod
|
|
4576
4521
|
const isTypedArray$1 = isTypedArray;
|
4577
4522
|
var objectProto$8 = Object.prototype, hasOwnProperty$7 = objectProto$8.hasOwnProperty;
|
4578
4523
|
function arrayLikeKeys(e, t) {
|
4579
|
-
var r = isArray$1(e), n = !r && isArguments$1(e), a = !r && !n && isBuffer$1(e), o = !r && !n && !a && isTypedArray$1(e),
|
4524
|
+
var r = isArray$1(e), n = !r && isArguments$1(e), a = !r && !n && isBuffer$1(e), o = !r && !n && !a && isTypedArray$1(e), i = r || n || a || o, s = i ? baseTimes(e.length, String) : [], l = s.length;
|
4580
4525
|
for (var u in e)
|
4581
|
-
(t || hasOwnProperty$7.call(e, u)) && !(
|
4582
|
-
return
|
4526
|
+
(t || hasOwnProperty$7.call(e, u)) && !(i && (u == "length" || a && (u == "offset" || u == "parent") || o && (u == "buffer" || u == "byteLength" || u == "byteOffset") || isIndex(u, l))) && s.push(u);
|
4527
|
+
return s;
|
4583
4528
|
}
|
4584
4529
|
function overArg(e, t) {
|
4585
4530
|
return function(r) {
|
@@ -4757,8 +4702,8 @@ function memoize(e, t) {
|
|
4757
4702
|
var n = arguments, a = t ? t.apply(this, n) : n[0], o = r.cache;
|
4758
4703
|
if (o.has(a))
|
4759
4704
|
return o.get(a);
|
4760
|
-
var
|
4761
|
-
return r.cache = o.set(a,
|
4705
|
+
var i = e.apply(this, n);
|
4706
|
+
return r.cache = o.set(a, i) || o, i;
|
4762
4707
|
};
|
4763
4708
|
return r.cache = new (memoize.Cache || MapCache)(), r;
|
4764
4709
|
}
|
@@ -4810,10 +4755,10 @@ function isFlattenable(e) {
|
|
4810
4755
|
return isArray$1(e) || isArguments$1(e) || !!(spreadableSymbol && e && e[spreadableSymbol]);
|
4811
4756
|
}
|
4812
4757
|
function baseFlatten(e, t, r, n, a) {
|
4813
|
-
var o = -1,
|
4814
|
-
for (r || (r = isFlattenable), a || (a = []); ++o <
|
4815
|
-
var
|
4816
|
-
t > 0 && r(
|
4758
|
+
var o = -1, i = e.length;
|
4759
|
+
for (r || (r = isFlattenable), a || (a = []); ++o < i; ) {
|
4760
|
+
var s = e[o];
|
4761
|
+
t > 0 && r(s) ? t > 1 ? baseFlatten(s, t - 1, r, n, a) : arrayPush(a, s) : n || (a[a.length] = s);
|
4817
4762
|
}
|
4818
4763
|
return a;
|
4819
4764
|
}
|
@@ -5105,8 +5050,8 @@ function cloneBuffer(e, t) {
|
|
5105
5050
|
}
|
5106
5051
|
function arrayFilter(e, t) {
|
5107
5052
|
for (var r = -1, n = e == null ? 0 : e.length, a = 0, o = []; ++r < n; ) {
|
5108
|
-
var
|
5109
|
-
t(
|
5053
|
+
var i = e[r];
|
5054
|
+
t(i, r, e) && (o[a++] = i);
|
5110
5055
|
}
|
5111
5056
|
return o;
|
5112
5057
|
}
|
@@ -5247,41 +5192,41 @@ var CLONE_DEEP_FLAG$1 = 1, CLONE_FLAT_FLAG = 2, CLONE_SYMBOLS_FLAG$1 = 4, argsTa
|
|
5247
5192
|
cloneableTags[argsTag$1] = cloneableTags[arrayTag$1] = cloneableTags[arrayBufferTag$1] = cloneableTags[dataViewTag$1] = cloneableTags[boolTag$1] = cloneableTags[dateTag$1] = cloneableTags[float32Tag] = cloneableTags[float64Tag] = cloneableTags[int8Tag] = cloneableTags[int16Tag] = cloneableTags[int32Tag] = cloneableTags[mapTag$2] = cloneableTags[numberTag$1] = cloneableTags[objectTag$1] = cloneableTags[regexpTag$1] = cloneableTags[setTag$2] = cloneableTags[stringTag$2] = cloneableTags[symbolTag$1] = cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] = cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = !0;
|
5248
5193
|
cloneableTags[errorTag$1] = cloneableTags[funcTag] = cloneableTags[weakMapTag] = !1;
|
5249
5194
|
function baseClone(e, t, r, n, a, o) {
|
5250
|
-
var
|
5251
|
-
if (r && (
|
5252
|
-
return
|
5195
|
+
var i, s = t & CLONE_DEEP_FLAG$1, l = t & CLONE_FLAT_FLAG, u = t & CLONE_SYMBOLS_FLAG$1;
|
5196
|
+
if (r && (i = a ? r(e, n, a, o) : r(e)), i !== void 0)
|
5197
|
+
return i;
|
5253
5198
|
if (!isObject$2(e))
|
5254
5199
|
return e;
|
5255
5200
|
var c = isArray$1(e);
|
5256
5201
|
if (c) {
|
5257
|
-
if (
|
5258
|
-
return copyArray(e,
|
5202
|
+
if (i = initCloneArray(e), !s)
|
5203
|
+
return copyArray(e, i);
|
5259
5204
|
} else {
|
5260
5205
|
var g = getTag$1(e), p = g == funcTag || g == genTag;
|
5261
5206
|
if (isBuffer$1(e))
|
5262
|
-
return cloneBuffer(e,
|
5207
|
+
return cloneBuffer(e, s);
|
5263
5208
|
if (g == objectTag$1 || g == argsTag$1 || p && !a) {
|
5264
|
-
if (
|
5265
|
-
return l ? copySymbolsIn(e, baseAssignIn(
|
5209
|
+
if (i = l || p ? {} : initCloneObject(e), !s)
|
5210
|
+
return l ? copySymbolsIn(e, baseAssignIn(i, e)) : copySymbols(e, baseAssign(i, e));
|
5266
5211
|
} else {
|
5267
5212
|
if (!cloneableTags[g])
|
5268
5213
|
return a ? e : {};
|
5269
|
-
|
5214
|
+
i = initCloneByTag(e, g, s);
|
5270
5215
|
}
|
5271
5216
|
}
|
5272
5217
|
o || (o = new Stack());
|
5273
5218
|
var b = o.get(e);
|
5274
5219
|
if (b)
|
5275
5220
|
return b;
|
5276
|
-
o.set(e,
|
5277
|
-
|
5221
|
+
o.set(e, i), isSet$1(e) ? e.forEach(function(_) {
|
5222
|
+
i.add(baseClone(_, t, r, _, e, o));
|
5278
5223
|
}) : isMap$1(e) && e.forEach(function(_, y) {
|
5279
|
-
|
5224
|
+
i.set(y, baseClone(_, t, r, y, e, o));
|
5280
5225
|
});
|
5281
5226
|
var m = u ? l ? getAllKeysIn : getAllKeys : l ? keysIn : keys, v = c ? void 0 : m(e);
|
5282
5227
|
return arrayEach(v || e, function(_, y) {
|
5283
|
-
v && (y = _, _ = e[y]), assignValue(
|
5284
|
-
}),
|
5228
|
+
v && (y = _, _ = e[y]), assignValue(i, y, baseClone(_, t, r, y, e, o));
|
5229
|
+
}), i;
|
5285
5230
|
}
|
5286
5231
|
var CLONE_DEEP_FLAG = 1, CLONE_SYMBOLS_FLAG = 4;
|
5287
5232
|
function cloneDeep(e) {
|
@@ -5312,17 +5257,17 @@ function cacheHas(e, t) {
|
|
5312
5257
|
}
|
5313
5258
|
var COMPARE_PARTIAL_FLAG$5 = 1, COMPARE_UNORDERED_FLAG$3 = 2;
|
5314
5259
|
function equalArrays(e, t, r, n, a, o) {
|
5315
|
-
var
|
5316
|
-
if (
|
5260
|
+
var i = r & COMPARE_PARTIAL_FLAG$5, s = e.length, l = t.length;
|
5261
|
+
if (s != l && !(i && l > s))
|
5317
5262
|
return !1;
|
5318
5263
|
var u = o.get(e), c = o.get(t);
|
5319
5264
|
if (u && c)
|
5320
5265
|
return u == t && c == e;
|
5321
5266
|
var g = -1, p = !0, b = r & COMPARE_UNORDERED_FLAG$3 ? new SetCache() : void 0;
|
5322
|
-
for (o.set(e, t), o.set(t, e); ++g <
|
5267
|
+
for (o.set(e, t), o.set(t, e); ++g < s; ) {
|
5323
5268
|
var m = e[g], v = t[g];
|
5324
5269
|
if (n)
|
5325
|
-
var _ =
|
5270
|
+
var _ = i ? n(v, m, g, t, e, o) : n(m, v, g, e, t, o);
|
5326
5271
|
if (_ !== void 0) {
|
5327
5272
|
if (_)
|
5328
5273
|
continue;
|
@@ -5357,7 +5302,7 @@ function setToArray(e) {
|
|
5357
5302
|
}), r;
|
5358
5303
|
}
|
5359
5304
|
var COMPARE_PARTIAL_FLAG$4 = 1, COMPARE_UNORDERED_FLAG$2 = 2, boolTag = "[object Boolean]", dateTag = "[object Date]", errorTag = "[object Error]", mapTag$1 = "[object Map]", numberTag = "[object Number]", regexpTag = "[object RegExp]", setTag$1 = "[object Set]", stringTag$1 = "[object String]", symbolTag = "[object Symbol]", arrayBufferTag = "[object ArrayBuffer]", dataViewTag = "[object DataView]", symbolProto = Symbol$2 ? Symbol$2.prototype : void 0, symbolValueOf = symbolProto ? symbolProto.valueOf : void 0;
|
5360
|
-
function equalByTag(e, t, r, n, a, o,
|
5305
|
+
function equalByTag(e, t, r, n, a, o, i) {
|
5361
5306
|
switch (r) {
|
5362
5307
|
case dataViewTag:
|
5363
5308
|
if (e.byteLength != t.byteLength || e.byteOffset != t.byteOffset)
|
@@ -5375,17 +5320,17 @@ function equalByTag(e, t, r, n, a, o, s) {
|
|
5375
5320
|
case stringTag$1:
|
5376
5321
|
return e == t + "";
|
5377
5322
|
case mapTag$1:
|
5378
|
-
var
|
5323
|
+
var s = mapToArray;
|
5379
5324
|
case setTag$1:
|
5380
5325
|
var l = n & COMPARE_PARTIAL_FLAG$4;
|
5381
|
-
if (
|
5326
|
+
if (s || (s = setToArray), e.size != t.size && !l)
|
5382
5327
|
return !1;
|
5383
|
-
var u =
|
5328
|
+
var u = i.get(e);
|
5384
5329
|
if (u)
|
5385
5330
|
return u == t;
|
5386
|
-
n |= COMPARE_UNORDERED_FLAG$2,
|
5387
|
-
var c = equalArrays(
|
5388
|
-
return
|
5331
|
+
n |= COMPARE_UNORDERED_FLAG$2, i.set(e, t);
|
5332
|
+
var c = equalArrays(s(e), s(t), n, a, o, i);
|
5333
|
+
return i.delete(e), c;
|
5389
5334
|
case symbolTag:
|
5390
5335
|
if (symbolValueOf)
|
5391
5336
|
return symbolValueOf.call(e) == symbolValueOf.call(t);
|
@@ -5394,12 +5339,12 @@ function equalByTag(e, t, r, n, a, o, s) {
|
|
5394
5339
|
}
|
5395
5340
|
var COMPARE_PARTIAL_FLAG$3 = 1, objectProto$1 = Object.prototype, hasOwnProperty$1 = objectProto$1.hasOwnProperty;
|
5396
5341
|
function equalObjects(e, t, r, n, a, o) {
|
5397
|
-
var
|
5398
|
-
if (l != c && !
|
5342
|
+
var i = r & COMPARE_PARTIAL_FLAG$3, s = getAllKeys(e), l = s.length, u = getAllKeys(t), c = u.length;
|
5343
|
+
if (l != c && !i)
|
5399
5344
|
return !1;
|
5400
5345
|
for (var g = l; g--; ) {
|
5401
|
-
var p =
|
5402
|
-
if (!(
|
5346
|
+
var p = s[g];
|
5347
|
+
if (!(i ? p in t : hasOwnProperty$1.call(t, p)))
|
5403
5348
|
return !1;
|
5404
5349
|
}
|
5405
5350
|
var b = o.get(e), m = o.get(t);
|
@@ -5407,11 +5352,11 @@ function equalObjects(e, t, r, n, a, o) {
|
|
5407
5352
|
return b == t && m == e;
|
5408
5353
|
var v = !0;
|
5409
5354
|
o.set(e, t), o.set(t, e);
|
5410
|
-
for (var _ =
|
5411
|
-
p =
|
5355
|
+
for (var _ = i; ++g < l; ) {
|
5356
|
+
p = s[g];
|
5412
5357
|
var y = e[p], C = t[p];
|
5413
5358
|
if (n)
|
5414
|
-
var E =
|
5359
|
+
var E = i ? n(C, y, p, t, e, o) : n(y, C, p, e, t, o);
|
5415
5360
|
if (!(E === void 0 ? y === C || a(y, C, r, n, o) : E)) {
|
5416
5361
|
v = !1;
|
5417
5362
|
break;
|
@@ -5426,16 +5371,16 @@ function equalObjects(e, t, r, n, a, o) {
|
|
5426
5371
|
}
|
5427
5372
|
var COMPARE_PARTIAL_FLAG$2 = 1, argsTag = "[object Arguments]", arrayTag = "[object Array]", objectTag = "[object Object]", objectProto = Object.prototype, hasOwnProperty = objectProto.hasOwnProperty;
|
5428
5373
|
function baseIsEqualDeep(e, t, r, n, a, o) {
|
5429
|
-
var
|
5374
|
+
var i = isArray$1(e), s = isArray$1(t), l = i ? arrayTag : getTag$1(e), u = s ? arrayTag : getTag$1(t);
|
5430
5375
|
l = l == argsTag ? objectTag : l, u = u == argsTag ? objectTag : u;
|
5431
5376
|
var c = l == objectTag, g = u == objectTag, p = l == u;
|
5432
5377
|
if (p && isBuffer$1(e)) {
|
5433
5378
|
if (!isBuffer$1(t))
|
5434
5379
|
return !1;
|
5435
|
-
|
5380
|
+
i = !0, c = !1;
|
5436
5381
|
}
|
5437
5382
|
if (p && !c)
|
5438
|
-
return o || (o = new Stack()),
|
5383
|
+
return o || (o = new Stack()), i || isTypedArray$1(e) ? equalArrays(e, t, r, n, a, o) : equalByTag(e, t, l, r, n, a, o);
|
5439
5384
|
if (!(r & COMPARE_PARTIAL_FLAG$2)) {
|
5440
5385
|
var b = c && hasOwnProperty.call(e, "__wrapped__"), m = g && hasOwnProperty.call(t, "__wrapped__");
|
5441
5386
|
if (b || m) {
|
@@ -5450,18 +5395,18 @@ function baseIsEqual(e, t, r, n, a) {
|
|
5450
5395
|
}
|
5451
5396
|
var COMPARE_PARTIAL_FLAG$1 = 1, COMPARE_UNORDERED_FLAG$1 = 2;
|
5452
5397
|
function baseIsMatch(e, t, r, n) {
|
5453
|
-
var a = r.length, o = a,
|
5398
|
+
var a = r.length, o = a, i = !n;
|
5454
5399
|
if (e == null)
|
5455
5400
|
return !o;
|
5456
5401
|
for (e = Object(e); a--; ) {
|
5457
|
-
var
|
5458
|
-
if (
|
5402
|
+
var s = r[a];
|
5403
|
+
if (i && s[2] ? s[1] !== e[s[0]] : !(s[0] in e))
|
5459
5404
|
return !1;
|
5460
5405
|
}
|
5461
5406
|
for (; ++a < o; ) {
|
5462
|
-
|
5463
|
-
var l =
|
5464
|
-
if (
|
5407
|
+
s = r[a];
|
5408
|
+
var l = s[0], u = e[l], c = s[1];
|
5409
|
+
if (i && s[2]) {
|
5465
5410
|
if (u === void 0 && !(l in e))
|
5466
5411
|
return !1;
|
5467
5412
|
} else {
|
@@ -5501,12 +5446,12 @@ function baseHasIn(e, t) {
|
|
5501
5446
|
function hasPath(e, t, r) {
|
5502
5447
|
t = castPath(t, e);
|
5503
5448
|
for (var n = -1, a = t.length, o = !1; ++n < a; ) {
|
5504
|
-
var
|
5505
|
-
if (!(o = e != null && r(e,
|
5449
|
+
var i = toKey(t[n]);
|
5450
|
+
if (!(o = e != null && r(e, i)))
|
5506
5451
|
break;
|
5507
|
-
e = e[
|
5452
|
+
e = e[i];
|
5508
5453
|
}
|
5509
|
-
return o || ++n != a ? o : (a = e == null ? 0 : e.length, !!a && isLength(a) && isIndex(
|
5454
|
+
return o || ++n != a ? o : (a = e == null ? 0 : e.length, !!a && isLength(a) && isIndex(i, a) && (isArray$1(e) || isArguments$1(e)));
|
5510
5455
|
}
|
5511
5456
|
function hasIn(e, t) {
|
5512
5457
|
return e != null && hasPath(e, t, baseHasIn);
|
@@ -5536,8 +5481,8 @@ function baseIteratee(e) {
|
|
5536
5481
|
}
|
5537
5482
|
function createBaseFor(e) {
|
5538
5483
|
return function(t, r, n) {
|
5539
|
-
for (var a = -1, o = Object(t),
|
5540
|
-
var l =
|
5484
|
+
for (var a = -1, o = Object(t), i = n(t), s = i.length; s--; ) {
|
5485
|
+
var l = i[e ? s : ++a];
|
5541
5486
|
if (r(o[l], l, o) === !1)
|
5542
5487
|
break;
|
5543
5488
|
}
|
@@ -5555,7 +5500,7 @@ function createBaseEach(e, t) {
|
|
5555
5500
|
return r;
|
5556
5501
|
if (!isArrayLike(r))
|
5557
5502
|
return e(r, n);
|
5558
|
-
for (var a = r.length, o = t ? a : -1,
|
5503
|
+
for (var a = r.length, o = t ? a : -1, i = Object(r); (t ? o-- : ++o < a) && n(i[o], o, i) !== !1; )
|
5559
5504
|
;
|
5560
5505
|
return r;
|
5561
5506
|
};
|
@@ -5573,14 +5518,14 @@ function arrayIncludesWith(e, t, r) {
|
|
5573
5518
|
}
|
5574
5519
|
var LARGE_ARRAY_SIZE$1 = 200;
|
5575
5520
|
function baseDifference(e, t, r, n) {
|
5576
|
-
var a = -1, o = arrayIncludes,
|
5577
|
-
if (!
|
5521
|
+
var a = -1, o = arrayIncludes, i = !0, s = e.length, l = [], u = t.length;
|
5522
|
+
if (!s)
|
5578
5523
|
return l;
|
5579
|
-
r && (t = arrayMap(t, baseUnary(r))), n ? (o = arrayIncludesWith,
|
5524
|
+
r && (t = arrayMap(t, baseUnary(r))), n ? (o = arrayIncludesWith, i = !1) : t.length >= LARGE_ARRAY_SIZE$1 && (o = cacheHas, i = !1, t = new SetCache(t));
|
5580
5525
|
e:
|
5581
|
-
for (; ++a <
|
5526
|
+
for (; ++a < s; ) {
|
5582
5527
|
var c = e[a], g = r == null ? c : r(c);
|
5583
|
-
if (c = n || c !== 0 ? c : 0,
|
5528
|
+
if (c = n || c !== 0 ? c : 0, i && g === g) {
|
5584
5529
|
for (var p = u; p--; )
|
5585
5530
|
if (t[p] === g)
|
5586
5531
|
continue e;
|
@@ -5612,8 +5557,8 @@ var toPairs = createToPairs(keys);
|
|
5612
5557
|
const toPairs$1 = toPairs;
|
5613
5558
|
function baseMap(e, t) {
|
5614
5559
|
var r = -1, n = isArrayLike(e) ? Array(e.length) : [];
|
5615
|
-
return baseEach$1(e, function(a, o,
|
5616
|
-
n[++r] = t(a, o,
|
5560
|
+
return baseEach$1(e, function(a, o, i) {
|
5561
|
+
n[++r] = t(a, o, i);
|
5617
5562
|
}), n;
|
5618
5563
|
}
|
5619
5564
|
function baseGt(e, t) {
|
@@ -5625,19 +5570,19 @@ function isString$1(e) {
|
|
5625
5570
|
}
|
5626
5571
|
var nativeMin = Math.min;
|
5627
5572
|
function baseIntersection(e, t, r) {
|
5628
|
-
for (var n = r ? arrayIncludesWith : arrayIncludes, a = e[0].length, o = e.length,
|
5629
|
-
var c = e[
|
5630
|
-
|
5573
|
+
for (var n = r ? arrayIncludesWith : arrayIncludes, a = e[0].length, o = e.length, i = o, s = Array(o), l = 1 / 0, u = []; i--; ) {
|
5574
|
+
var c = e[i];
|
5575
|
+
i && t && (c = arrayMap(c, baseUnary(t))), l = nativeMin(c.length, l), s[i] = !r && (t || a >= 120 && c.length >= 120) ? new SetCache(i && c) : void 0;
|
5631
5576
|
}
|
5632
5577
|
c = e[0];
|
5633
|
-
var g = -1, p =
|
5578
|
+
var g = -1, p = s[0];
|
5634
5579
|
e:
|
5635
5580
|
for (; ++g < a && u.length < l; ) {
|
5636
5581
|
var b = c[g], m = t ? t(b) : b;
|
5637
5582
|
if (b = r || b !== 0 ? b : 0, !(p ? cacheHas(p, m) : n(u, m, r))) {
|
5638
|
-
for (
|
5639
|
-
var v = i
|
5640
|
-
if (!(v ? cacheHas(v, m) : n(e[
|
5583
|
+
for (i = o; --i; ) {
|
5584
|
+
var v = s[i];
|
5585
|
+
if (!(v ? cacheHas(v, m) : n(e[i], m, r)))
|
5641
5586
|
continue e;
|
5642
5587
|
}
|
5643
5588
|
p && p.push(m), u.push(b);
|
@@ -5664,9 +5609,9 @@ function mapValues(e, t) {
|
|
5664
5609
|
}
|
5665
5610
|
function baseExtremum(e, t, r) {
|
5666
5611
|
for (var n = -1, a = e.length; ++n < a; ) {
|
5667
|
-
var o = e[n],
|
5668
|
-
if (
|
5669
|
-
var
|
5612
|
+
var o = e[n], i = t(o);
|
5613
|
+
if (i != null && (s === void 0 ? i === i && !isSymbol(i) : r(i, s)))
|
5614
|
+
var s = i, l = o;
|
5670
5615
|
}
|
5671
5616
|
return l;
|
5672
5617
|
}
|
@@ -5681,19 +5626,19 @@ function baseSortBy(e, t) {
|
|
5681
5626
|
}
|
5682
5627
|
function compareAscending(e, t) {
|
5683
5628
|
if (e !== t) {
|
5684
|
-
var r = e !== void 0, n = e === null, a = e === e, o = isSymbol(e),
|
5685
|
-
if (!
|
5629
|
+
var r = e !== void 0, n = e === null, a = e === e, o = isSymbol(e), i = t !== void 0, s = t === null, l = t === t, u = isSymbol(t);
|
5630
|
+
if (!s && !u && !o && e > t || o && i && l && !s && !u || n && i && l || !r && l || !a)
|
5686
5631
|
return 1;
|
5687
|
-
if (!n && !o && !u && e < t || u && r && a && !n && !o ||
|
5632
|
+
if (!n && !o && !u && e < t || u && r && a && !n && !o || s && r && a || !i && a || !l)
|
5688
5633
|
return -1;
|
5689
5634
|
}
|
5690
5635
|
return 0;
|
5691
5636
|
}
|
5692
5637
|
function compareMultiple(e, t, r) {
|
5693
|
-
for (var n = -1, a = e.criteria, o = t.criteria,
|
5638
|
+
for (var n = -1, a = e.criteria, o = t.criteria, i = a.length, s = r.length; ++n < i; ) {
|
5694
5639
|
var l = compareAscending(a[n], o[n]);
|
5695
5640
|
if (l) {
|
5696
|
-
if (n >=
|
5641
|
+
if (n >= s)
|
5697
5642
|
return l;
|
5698
5643
|
var u = r[n];
|
5699
5644
|
return l * (u == "desc" ? -1 : 1);
|
@@ -5703,27 +5648,27 @@ function compareMultiple(e, t, r) {
|
|
5703
5648
|
}
|
5704
5649
|
function baseOrderBy(e, t, r) {
|
5705
5650
|
t.length ? t = arrayMap(t, function(o) {
|
5706
|
-
return isArray$1(o) ? function(
|
5707
|
-
return baseGet(
|
5651
|
+
return isArray$1(o) ? function(i) {
|
5652
|
+
return baseGet(i, o.length === 1 ? o[0] : o);
|
5708
5653
|
} : o;
|
5709
5654
|
}) : t = [identity];
|
5710
5655
|
var n = -1;
|
5711
5656
|
t = arrayMap(t, baseUnary(baseIteratee));
|
5712
|
-
var a = baseMap(e, function(o,
|
5657
|
+
var a = baseMap(e, function(o, i, s) {
|
5713
5658
|
var l = arrayMap(t, function(u) {
|
5714
5659
|
return u(o);
|
5715
5660
|
});
|
5716
5661
|
return { criteria: l, index: ++n, value: o };
|
5717
5662
|
});
|
5718
|
-
return baseSortBy(a, function(o,
|
5719
|
-
return compareMultiple(o,
|
5663
|
+
return baseSortBy(a, function(o, i) {
|
5664
|
+
return compareMultiple(o, i, r);
|
5720
5665
|
});
|
5721
5666
|
}
|
5722
5667
|
var nativeCeil = Math.ceil, nativeMax = Math.max;
|
5723
5668
|
function baseRange(e, t, r, n) {
|
5724
|
-
for (var a = -1, o = nativeMax(nativeCeil((t - e) / (r || 1)), 0),
|
5725
|
-
|
5726
|
-
return
|
5669
|
+
for (var a = -1, o = nativeMax(nativeCeil((t - e) / (r || 1)), 0), i = Array(o); o--; )
|
5670
|
+
i[n ? o : ++a] = e, e += r;
|
5671
|
+
return i;
|
5727
5672
|
}
|
5728
5673
|
function createRange(e) {
|
5729
5674
|
return function(t, r, n) {
|
@@ -5749,28 +5694,28 @@ var INFINITY = 1 / 0, createSet = Set$2 && 1 / setToArray(new Set$2([, -0]))[1]
|
|
5749
5694
|
const createSet$1 = createSet;
|
5750
5695
|
var LARGE_ARRAY_SIZE = 200;
|
5751
5696
|
function baseUniq(e, t, r) {
|
5752
|
-
var n = -1, a = arrayIncludes, o = e.length,
|
5697
|
+
var n = -1, a = arrayIncludes, o = e.length, i = !0, s = [], l = s;
|
5753
5698
|
if (r)
|
5754
|
-
|
5699
|
+
i = !1, a = arrayIncludesWith;
|
5755
5700
|
else if (o >= LARGE_ARRAY_SIZE) {
|
5756
5701
|
var u = t ? null : createSet$1(e);
|
5757
5702
|
if (u)
|
5758
5703
|
return setToArray(u);
|
5759
|
-
|
5704
|
+
i = !1, a = cacheHas, l = new SetCache();
|
5760
5705
|
} else
|
5761
|
-
l = t ? [] :
|
5706
|
+
l = t ? [] : s;
|
5762
5707
|
e:
|
5763
5708
|
for (; ++n < o; ) {
|
5764
5709
|
var c = e[n], g = t ? t(c) : c;
|
5765
|
-
if (c = r || c !== 0 ? c : 0,
|
5710
|
+
if (c = r || c !== 0 ? c : 0, i && g === g) {
|
5766
5711
|
for (var p = l.length; p--; )
|
5767
5712
|
if (l[p] === g)
|
5768
5713
|
continue e;
|
5769
|
-
t && l.push(g),
|
5714
|
+
t && l.push(g), s.push(c);
|
5770
5715
|
} else
|
5771
|
-
a(l, g, r) || (l !==
|
5716
|
+
a(l, g, r) || (l !== s && l.push(g), s.push(c));
|
5772
5717
|
}
|
5773
|
-
return
|
5718
|
+
return s;
|
5774
5719
|
}
|
5775
5720
|
function uniq(e) {
|
5776
5721
|
return e && e.length ? baseUniq(e) : [];
|
@@ -6077,22 +6022,22 @@ class Logger {
|
|
6077
6022
|
Logger.log("info", t, r, n);
|
6078
6023
|
}
|
6079
6024
|
static log(t = "info", r, n = {}, a = !0, o = "color:#000;") {
|
6080
|
-
let
|
6025
|
+
let i = r, s = o;
|
6081
6026
|
switch (t) {
|
6082
6027
|
case "debug":
|
6083
|
-
|
6028
|
+
i = `[DEBUG] ${r}`;
|
6084
6029
|
break;
|
6085
6030
|
case "info":
|
6086
|
-
|
6031
|
+
i = `[INFO] ${r}`;
|
6087
6032
|
break;
|
6088
6033
|
case "warn":
|
6089
|
-
|
6034
|
+
i = `[WARN] ${r}`, s = "color:#fa8c16;";
|
6090
6035
|
break;
|
6091
6036
|
case "error":
|
6092
|
-
|
6037
|
+
i = `[ERROR] ${r}`, s = "color:#f00;";
|
6093
6038
|
break;
|
6094
6039
|
}
|
6095
|
-
a ? console.groupCollapsed(`%c[@kengic/vue] ${
|
6040
|
+
a ? console.groupCollapsed(`%c[@kengic/vue] ${i}`, s) : console.group(`%c[@kengic/vue] ${i}`, s), toPairs$1(cloneDeep(n)).forEach((l) => {
|
6096
6041
|
console.log(`%c${l[0]}:`, "color: #000; font-weight: bold;", l[1]);
|
6097
6042
|
}), console.trace(""), console.groupEnd();
|
6098
6043
|
}
|
@@ -6111,15 +6056,15 @@ class KgUtil {
|
|
6111
6056
|
static base64toBlob(t, r, n = 512) {
|
6112
6057
|
let a = t;
|
6113
6058
|
a.startsWith("data:") && (a = t.split("base64,")[1]);
|
6114
|
-
const o = atob(a),
|
6115
|
-
for (let
|
6116
|
-
const l = o.slice(
|
6059
|
+
const o = atob(a), i = [];
|
6060
|
+
for (let s = 0; s < o.length; s += n) {
|
6061
|
+
const l = o.slice(s, s + n), u = new Array(l.length);
|
6117
6062
|
for (let g = 0; g < l.length; g++)
|
6118
6063
|
u[g] = l.charCodeAt(g);
|
6119
6064
|
const c = new Uint8Array(u);
|
6120
|
-
|
6065
|
+
i.push(c);
|
6121
6066
|
}
|
6122
|
-
return new Blob(
|
6067
|
+
return new Blob(i, { type: r });
|
6123
6068
|
}
|
6124
6069
|
static downloadFile(t, r, n) {
|
6125
6070
|
const a = r.split(".")[1];
|
@@ -6139,40 +6084,40 @@ class KgUtil {
|
|
6139
6084
|
Logger.error("\u53C2\u6570 _contentType \u4E3A\u7A7A.");
|
6140
6085
|
return;
|
6141
6086
|
}
|
6142
|
-
let
|
6143
|
-
typeof t == "string" ?
|
6144
|
-
const
|
6145
|
-
l.setAttribute("style", "display:none"), l.setAttribute("href",
|
6087
|
+
let i;
|
6088
|
+
typeof t == "string" ? i = new Blob([this.base64toBlob(t, n)], { type: n }) : i = new Blob([t], { type: n });
|
6089
|
+
const s = URL.createObjectURL(i), l = document.createElement("a");
|
6090
|
+
l.setAttribute("style", "display:none"), l.setAttribute("href", s), l.setAttribute("download", r), document.body.appendChild(l), l.click(), document.body.removeChild(l), URL.revokeObjectURL(s);
|
6146
6091
|
}
|
6147
6092
|
static parseParams(t, r, n) {
|
6148
6093
|
let a = cloneDeep(toRaw(unref(t)));
|
6149
6094
|
return !a || !isObjectLike(a) || Object.keys(a).forEach((o) => {
|
6150
|
-
const
|
6095
|
+
const i = a[o];
|
6151
6096
|
switch (!0) {
|
6152
6097
|
case o.endsWith("_obj"): {
|
6153
6098
|
a[o] = void 0;
|
6154
6099
|
break;
|
6155
6100
|
}
|
6156
|
-
case (!!r && !!n && n.isDayjs(
|
6157
|
-
a[o] = this.parseParamFromDayJS(o,
|
6101
|
+
case (!!r && !!n && n.isDayjs(i)):
|
6102
|
+
a[o] = this.parseParamFromDayJS(o, i, r);
|
6158
6103
|
break;
|
6159
|
-
case (isArray$1(
|
6160
|
-
a[o] = void 0, a[`${o}_begin`] = this.parseParamFromDayJS(o,
|
6104
|
+
case (isArray$1(i) && i.length === 2 && !!r && !!n && n.isDayjs(i[0]) && n.isDayjs(i[1])):
|
6105
|
+
a[o] = void 0, a[`${o}_begin`] = this.parseParamFromDayJS(o, i[0], r), a[`${o}_end`] = this.parseParamFromDayJS(o, i[1], r);
|
6161
6106
|
break;
|
6162
|
-
case isObjectLike(
|
6163
|
-
a[o] = this.parseParams(
|
6107
|
+
case isObjectLike(i):
|
6108
|
+
a[o] = this.parseParams(i);
|
6164
6109
|
break;
|
6165
|
-
case typeof
|
6166
|
-
a[o] = this.parseParamFromString(
|
6110
|
+
case typeof i == "string":
|
6111
|
+
a[o] = this.parseParamFromString(i);
|
6167
6112
|
break;
|
6168
6113
|
default:
|
6169
|
-
a[o] =
|
6114
|
+
a[o] = i;
|
6170
6115
|
break;
|
6171
6116
|
}
|
6172
6117
|
}), a;
|
6173
6118
|
}
|
6174
6119
|
static parseParamFromString(t) {
|
6175
|
-
var a, o,
|
6120
|
+
var a, o, i, s, l;
|
6176
6121
|
const r = useKg(), n = /(.*)?({(.*)?})(.*)?/.exec(t);
|
6177
6122
|
if (n) {
|
6178
6123
|
const u = n[2], c = n[2].slice(1, -1);
|
@@ -6181,7 +6126,7 @@ class KgUtil {
|
|
6181
6126
|
return t.replace("{WAREHOUSE}", (o = (a = useKgWarehouse().warehouse.value) == null ? void 0 : a.whId) != null ? o : "");
|
6182
6127
|
default:
|
6183
6128
|
if (c.endsWith(":query"))
|
6184
|
-
return (l = (
|
6129
|
+
return (l = (s = (i = r.router.value) == null ? void 0 : i.currentRoute) == null ? void 0 : s.query[c.slice(0, -6)]) != null ? l : "";
|
6185
6130
|
break;
|
6186
6131
|
}
|
6187
6132
|
return t;
|
@@ -6226,14 +6171,14 @@ class KgUtil {
|
|
6226
6171
|
...t
|
6227
6172
|
});
|
6228
6173
|
return n.showLoading = () => {
|
6229
|
-
n.update((
|
6230
|
-
const
|
6231
|
-
return
|
6174
|
+
n.update((i) => {
|
6175
|
+
const s = cloneDeep(i);
|
6176
|
+
return s.okButtonProps.loading = !0, s.cancelButtonProps.disabled = !0, s;
|
6232
6177
|
});
|
6233
6178
|
}, n.hideLoading = () => {
|
6234
|
-
n.update((
|
6235
|
-
const
|
6236
|
-
return
|
6179
|
+
n.update((i) => {
|
6180
|
+
const s = cloneDeep(i);
|
6181
|
+
return s.okButtonProps.loading = !1, s.cancelButtonProps.disabled = !1, s;
|
6237
6182
|
});
|
6238
6183
|
}, n;
|
6239
6184
|
}
|
@@ -6330,7 +6275,7 @@ class KgRouteUtil {
|
|
6330
6275
|
throw new Error(`\u5730\u5740\u65E0\u6CD5\u5339\u914D\u6A21\u5757. \u5730\u5740: ${t}`);
|
6331
6276
|
}
|
6332
6277
|
static getAppIndexPath(t) {
|
6333
|
-
var a, o,
|
6278
|
+
var a, o, i, s, l, u, c, g;
|
6334
6279
|
const r = useKg();
|
6335
6280
|
let n = "";
|
6336
6281
|
switch (t) {
|
@@ -6338,7 +6283,7 @@ class KgRouteUtil {
|
|
6338
6283
|
n = ((o = (a = r.option.value) == null ? void 0 : a.appIndex) == null ? void 0 : o[KG_APP.WMS_DATA_MANAGER]) || `${KG_APP_PREFIX.WMS_DATA_MANAGER}/index`;
|
6339
6284
|
break;
|
6340
6285
|
case KG_APP.WMS_BUSINESS_MANAGER:
|
6341
|
-
n = ((
|
6286
|
+
n = ((s = (i = r.option.value) == null ? void 0 : i.appIndex) == null ? void 0 : s[KG_APP.WMS_BUSINESS_MANAGER]) || `${KG_APP_PREFIX.WMS_BUSINESS_MANAGER}/index`;
|
6342
6287
|
break;
|
6343
6288
|
case KG_APP.WCS:
|
6344
6289
|
n = ((u = (l = r.option.value) == null ? void 0 : l.appIndex) == null ? void 0 : u[KG_APP.WCS]) || `${KG_APP_PREFIX.WCS}/index`;
|
@@ -6366,10 +6311,10 @@ class KgVarUtil {
|
|
6366
6311
|
return r;
|
6367
6312
|
}
|
6368
6313
|
static transformValueByControlType(t, r, n, a) {
|
6369
|
-
const o = useKgVar(t),
|
6370
|
-
if (!
|
6314
|
+
const o = useKgVar(t), i = o.store.getVariableConfig(t, r);
|
6315
|
+
if (!i)
|
6371
6316
|
return a;
|
6372
|
-
switch (
|
6317
|
+
switch (i.ctrl_typ) {
|
6373
6318
|
case KG_FORM_ITEM_TYPE.INPUT:
|
6374
6319
|
case KG_FORM_ITEM_TYPE.INPUT_PASSWORD:
|
6375
6320
|
case KG_FORM_ITEM_TYPE.INPUT_AREA:
|
@@ -6377,8 +6322,8 @@ class KgVarUtil {
|
|
6377
6322
|
case KG_FORM_ITEM_TYPE.INPUT_NUMBER: {
|
6378
6323
|
if (isNil(a))
|
6379
6324
|
return;
|
6380
|
-
const
|
6381
|
-
if (Number.isNaN(
|
6325
|
+
const s = Number(a);
|
6326
|
+
if (Number.isNaN(s)) {
|
6382
6327
|
Logger.error("| \u63A7\u4EF6\u7684\u503C\u975E\u6CD5 | INPUT_NUMBER \u63A7\u4EF6\u7684\u503C\u5FC5\u987B\u4E3A\u6570\u5B57\u7C7B\u578B.", {
|
6383
6328
|
frm_id: t,
|
6384
6329
|
var_nam: r,
|
@@ -6386,30 +6331,30 @@ class KgVarUtil {
|
|
6386
6331
|
});
|
6387
6332
|
return;
|
6388
6333
|
}
|
6389
|
-
return
|
6334
|
+
return s;
|
6390
6335
|
}
|
6391
6336
|
case KG_FORM_ITEM_TYPE.CHECKBOX:
|
6392
6337
|
case KG_FORM_ITEM_TYPE.SWITCH: {
|
6393
6338
|
if (isNil(a))
|
6394
6339
|
return 0;
|
6395
|
-
const
|
6396
|
-
if (Number.isNaN(
|
6397
|
-
Logger.error(`| \u63A7\u4EF6\u7684\u503C\u975E\u6CD5 | ${
|
6340
|
+
const s = Number(a);
|
6341
|
+
if (Number.isNaN(s)) {
|
6342
|
+
Logger.error(`| \u63A7\u4EF6\u7684\u503C\u975E\u6CD5 | ${i.ctrl_typ} \u63A7\u4EF6\u7684\u503C\u5FC5\u987B\u4E3A\u6570\u5B57\u7C7B\u578B.`, {
|
6398
6343
|
frm_id: t,
|
6399
6344
|
var_nam: r,
|
6400
6345
|
value: a
|
6401
6346
|
});
|
6402
6347
|
return;
|
6403
6348
|
}
|
6404
|
-
if (![0, 1].includes(
|
6405
|
-
Logger.error(`| \u63A7\u4EF6\u7684\u503C\u975E\u6CD5 | ${
|
6349
|
+
if (![0, 1].includes(s)) {
|
6350
|
+
Logger.error(`| \u63A7\u4EF6\u7684\u503C\u975E\u6CD5 | ${i.ctrl_typ} \u63A7\u4EF6\u7684\u503C\u5FC5\u987B\u4E3A 0 \u6216 1.`, {
|
6406
6351
|
frm_id: t,
|
6407
6352
|
var_nam: r,
|
6408
6353
|
value: a
|
6409
6354
|
});
|
6410
6355
|
return;
|
6411
6356
|
}
|
6412
|
-
return
|
6357
|
+
return s;
|
6413
6358
|
}
|
6414
6359
|
case KG_FORM_ITEM_TYPE.DATE_DATE:
|
6415
6360
|
case KG_FORM_ITEM_TYPE.DATE_DATETIME:
|
@@ -6418,10 +6363,10 @@ class KgVarUtil {
|
|
6418
6363
|
case KG_FORM_ITEM_TYPE.DATE_YEAR: {
|
6419
6364
|
if (isNil(a))
|
6420
6365
|
return;
|
6421
|
-
const
|
6422
|
-
if (
|
6423
|
-
return
|
6424
|
-
Logger.error(`| \u63A7\u4EF6\u7684\u503C\u975E\u6CD5 | ${
|
6366
|
+
const s = n(a);
|
6367
|
+
if (s != null && s.isValid())
|
6368
|
+
return s;
|
6369
|
+
Logger.error(`| \u63A7\u4EF6\u7684\u503C\u975E\u6CD5 | ${i.ctrl_typ} \u63A7\u4EF6\u7684\u503C\u5FC5\u987B\u4E3A\u65E5\u671F\u7C7B\u578B.`, {
|
6425
6370
|
frm_id: t,
|
6426
6371
|
var_nam: r,
|
6427
6372
|
value: a
|
@@ -6432,9 +6377,9 @@ class KgVarUtil {
|
|
6432
6377
|
if (isNil(a))
|
6433
6378
|
return [];
|
6434
6379
|
try {
|
6435
|
-
const
|
6436
|
-
if (!isArray$1(
|
6437
|
-
Logger.error(`| \u63A7\u4EF6\u7684\u503C\u975E\u6CD5 | ${
|
6380
|
+
const s = JSON.parse(a);
|
6381
|
+
if (!isArray$1(s)) {
|
6382
|
+
Logger.error(`| \u63A7\u4EF6\u7684\u503C\u975E\u6CD5 | ${i.ctrl_typ} \u63A7\u4EF6\u7684\u503C\u5FC5\u987B\u4E3A\u6570\u7EC4\u7C7B\u578B.`, {
|
6438
6383
|
frm_id: t,
|
6439
6384
|
var_nam: r,
|
6440
6385
|
value: a
|
@@ -6444,9 +6389,9 @@ class KgVarUtil {
|
|
6444
6389
|
const l = o.store.getVarPossibility(t, r);
|
6445
6390
|
switch (l == null ? void 0 : l.val_data_type) {
|
6446
6391
|
case KG_POSSIBILITY_DATA_TYPE.NUMBER: {
|
6447
|
-
const u =
|
6392
|
+
const u = s.map((c) => Number(c));
|
6448
6393
|
if (u.some((c) => Number.isNaN(u))) {
|
6449
|
-
Logger.error(`| \u63A7\u4EF6\u7684\u503C\u975E\u6CD5 | ${
|
6394
|
+
Logger.error(`| \u63A7\u4EF6\u7684\u503C\u975E\u6CD5 | ${i.ctrl_typ} \u63A7\u4EF6\u7684\u503C\u5FC5\u987B\u4E3A number \u6570\u7EC4\u7C7B\u578B.`, {
|
6450
6395
|
frm_id: t,
|
6451
6396
|
var_nam: r,
|
6452
6397
|
value: a,
|
@@ -6457,13 +6402,13 @@ class KgVarUtil {
|
|
6457
6402
|
return u;
|
6458
6403
|
}
|
6459
6404
|
case KG_POSSIBILITY_DATA_TYPE.BOOLEAN:
|
6460
|
-
return
|
6405
|
+
return s.map((u) => Boolean(u));
|
6461
6406
|
case KG_POSSIBILITY_DATA_TYPE.STRING:
|
6462
6407
|
default:
|
6463
|
-
return
|
6408
|
+
return s.map((u) => String(u));
|
6464
6409
|
}
|
6465
6410
|
} catch {
|
6466
|
-
Logger.error(`| \u63A7\u4EF6\u7684\u503C\u975E\u6CD5 | ${
|
6411
|
+
Logger.error(`| \u63A7\u4EF6\u7684\u503C\u975E\u6CD5 | ${i.ctrl_typ} \u63A7\u4EF6\u7684\u503C\u5FC5\u987B\u4E3A\u6570\u7EC4\u7C7B\u578B.`, {
|
6467
6412
|
frm_id: t,
|
6468
6413
|
var_nam: r,
|
6469
6414
|
value: a
|
@@ -6474,16 +6419,16 @@ class KgVarUtil {
|
|
6474
6419
|
case KG_FORM_ITEM_TYPE.SELECT: {
|
6475
6420
|
if (isNil(a))
|
6476
6421
|
return;
|
6477
|
-
const
|
6478
|
-
switch (
|
6422
|
+
const s = o.store.getVarPossibility(t, r);
|
6423
|
+
switch (s == null ? void 0 : s.val_data_type) {
|
6479
6424
|
case KG_POSSIBILITY_DATA_TYPE.NUMBER: {
|
6480
6425
|
const l = Number(a);
|
6481
6426
|
if (Number.isNaN(l)) {
|
6482
|
-
Logger.error(`| \u63A7\u4EF6\u7684\u503C\u975E\u6CD5 | ${
|
6427
|
+
Logger.error(`| \u63A7\u4EF6\u7684\u503C\u975E\u6CD5 | ${i.ctrl_typ} \u63A7\u4EF6\u7684\u503C\u5FC5\u987B\u4E3A\u6570\u5B57\u7C7B\u578B.`, {
|
6483
6428
|
frm_id: t,
|
6484
6429
|
var_nam: r,
|
6485
6430
|
value: a,
|
6486
|
-
VarPossibility:
|
6431
|
+
VarPossibility: s
|
6487
6432
|
});
|
6488
6433
|
return;
|
6489
6434
|
}
|
@@ -6570,15 +6515,15 @@ function isComputed(e) {
|
|
6570
6515
|
return !!(isRef(e) && e.effect);
|
6571
6516
|
}
|
6572
6517
|
function createOptionsStore(e, t, r, n) {
|
6573
|
-
const { state: a, actions: o, getters:
|
6518
|
+
const { state: a, actions: o, getters: i } = t, s = r.state.value[e];
|
6574
6519
|
let l;
|
6575
6520
|
function u() {
|
6576
|
-
!
|
6521
|
+
!s && (process.env.NODE_ENV === "production" || !n) && (r.state.value[e] = a ? a() : {});
|
6577
6522
|
const c = process.env.NODE_ENV !== "production" && n ? toRefs(ref(a ? a() : {}).value) : toRefs(r.state.value[e]);
|
6578
|
-
return assign$1(c, o, Object.keys(
|
6523
|
+
return assign$1(c, o, Object.keys(i || {}).reduce((g, p) => (g[p] = markRaw(computed(() => {
|
6579
6524
|
setActivePinia(r);
|
6580
6525
|
const b = r._s.get(e);
|
6581
|
-
return
|
6526
|
+
return i[p].call(b, b);
|
6582
6527
|
})), g), {}));
|
6583
6528
|
}
|
6584
6529
|
return l = createSetupStore(e, u, t, r, n), l.$reset = function() {
|
@@ -6590,7 +6535,7 @@ function createOptionsStore(e, t, r, n) {
|
|
6590
6535
|
}
|
6591
6536
|
function createSetupStore(e, t, r = {}, n, a) {
|
6592
6537
|
let o;
|
6593
|
-
const
|
6538
|
+
const i = r.state, s = assign$1({ actions: {} }, r);
|
6594
6539
|
if (process.env.NODE_ENV !== "production" && !n._e.active)
|
6595
6540
|
throw new Error("Pinia destroyed");
|
6596
6541
|
const l = {
|
@@ -6601,7 +6546,7 @@ function createSetupStore(e, t, r = {}, n, a) {
|
|
6601
6546
|
});
|
6602
6547
|
let u, c, g = markRaw([]), p = markRaw([]), b;
|
6603
6548
|
const m = n.state.value[e];
|
6604
|
-
!
|
6549
|
+
!i && !m && (process.env.NODE_ENV === "production" || !a) && (n.state.value[e] = {});
|
6605
6550
|
const v = ref({});
|
6606
6551
|
function _(M) {
|
6607
6552
|
let A;
|
@@ -6684,12 +6629,12 @@ function createSetupStore(e, t, r = {}, n, a) {
|
|
6684
6629
|
for (const M in w) {
|
6685
6630
|
const A = w[M];
|
6686
6631
|
if (isRef(A) && !isComputed(A) || isReactive(A))
|
6687
|
-
process.env.NODE_ENV !== "production" && a ? set(v.value, M, toRef(w, M)) :
|
6632
|
+
process.env.NODE_ENV !== "production" && a ? set(v.value, M, toRef(w, M)) : i || (m && shouldHydrate(A) && (isRef(A) ? A.value = m[M] : mergeReactiveObjects(A, m[M])), n.state.value[e][M] = A), process.env.NODE_ENV !== "production" && T.state.push(M);
|
6688
6633
|
else if (typeof A == "function") {
|
6689
6634
|
const O = process.env.NODE_ENV !== "production" && a ? A : E(M, A);
|
6690
|
-
w[M] = O, process.env.NODE_ENV !== "production" && (T.actions[M] = A),
|
6635
|
+
w[M] = O, process.env.NODE_ENV !== "production" && (T.actions[M] = A), s.actions[M] = A;
|
6691
6636
|
} else
|
6692
|
-
process.env.NODE_ENV !== "production" && isComputed(A) && (T.getters[M] =
|
6637
|
+
process.env.NODE_ENV !== "production" && isComputed(A) && (T.getters[M] = i ? r.getters[M] : A, IS_CLIENT && (w._getters || (w._getters = markRaw([]))).push(M));
|
6693
6638
|
}
|
6694
6639
|
if (assign$1(k, w), assign$1(toRaw(k), w), Object.defineProperty(k, "$state", {
|
6695
6640
|
get: () => process.env.NODE_ENV !== "production" && a ? v.value : n.state.value[e],
|
@@ -6718,7 +6663,7 @@ function createSetupStore(e, t, r = {}, n, a) {
|
|
6718
6663
|
set(k, O, E(O, B));
|
6719
6664
|
}
|
6720
6665
|
for (const O in A._hmrPayload.getters) {
|
6721
|
-
const B = A._hmrPayload.getters[O], $ =
|
6666
|
+
const B = A._hmrPayload.getters[O], $ = i ? computed(() => (setActivePinia(n), B.call(k, k))) : B;
|
6722
6667
|
set(k, O, $);
|
6723
6668
|
}
|
6724
6669
|
Object.keys(k._hmrPayload.getters).forEach((O) => {
|
@@ -6745,7 +6690,7 @@ function createSetupStore(e, t, r = {}, n, a) {
|
|
6745
6690
|
store: k,
|
6746
6691
|
app: n._a,
|
6747
6692
|
pinia: n,
|
6748
|
-
options:
|
6693
|
+
options: s
|
6749
6694
|
}));
|
6750
6695
|
Object.keys(A || {}).forEach((O) => k._customProperties.add(O)), assign$1(k, A);
|
6751
6696
|
} else
|
@@ -6753,28 +6698,28 @@ function createSetupStore(e, t, r = {}, n, a) {
|
|
6753
6698
|
store: k,
|
6754
6699
|
app: n._a,
|
6755
6700
|
pinia: n,
|
6756
|
-
options:
|
6701
|
+
options: s
|
6757
6702
|
})));
|
6758
6703
|
}), process.env.NODE_ENV !== "production" && k.$state && typeof k.$state == "object" && typeof k.$state.constructor == "function" && !k.$state.constructor.toString().includes("[native code]") && console.warn(`[\u{1F34D}]: The "state" must be a plain object. It cannot be
|
6759
6704
|
state: () => new MyClass()
|
6760
|
-
Found in store "${k.$id}".`), m &&
|
6705
|
+
Found in store "${k.$id}".`), m && i && r.hydrate && r.hydrate(k.$state, m), u = !0, c = !0, k;
|
6761
6706
|
}
|
6762
6707
|
function defineStore(e, t, r) {
|
6763
6708
|
let n, a;
|
6764
6709
|
const o = typeof t == "function";
|
6765
6710
|
typeof e == "string" ? (n = e, a = o ? r : t) : (a = e, n = e.id);
|
6766
|
-
function s
|
6711
|
+
function i(s, l) {
|
6767
6712
|
const u = getCurrentInstance();
|
6768
|
-
if (
|
6713
|
+
if (s = (process.env.NODE_ENV === "test" && activePinia && activePinia._testing ? null : s) || u && inject(piniaSymbol), s && setActivePinia(s), process.env.NODE_ENV !== "production" && !activePinia)
|
6769
6714
|
throw new Error(`[\u{1F34D}]: getActivePinia was called with no active Pinia. Did you forget to install pinia?
|
6770
6715
|
const pinia = createPinia()
|
6771
6716
|
app.use(pinia)
|
6772
6717
|
This will fail in production.`);
|
6773
|
-
|
6774
|
-
const c =
|
6718
|
+
s = activePinia, s._s.has(n) || (o ? createSetupStore(n, t, a, s) : createOptionsStore(n, a, s), process.env.NODE_ENV !== "production" && (i._pinia = s));
|
6719
|
+
const c = s._s.get(n);
|
6775
6720
|
if (process.env.NODE_ENV !== "production" && l) {
|
6776
|
-
const g = "__hot:" + n, p = o ? createSetupStore(g, t, a,
|
6777
|
-
l._hotUpdate(p), delete
|
6721
|
+
const g = "__hot:" + n, p = o ? createSetupStore(g, t, a, s, !0) : createOptionsStore(g, assign$1({}, a), s, !0);
|
6722
|
+
l._hotUpdate(p), delete s.state.value[g], s._s.delete(g);
|
6778
6723
|
}
|
6779
6724
|
if (process.env.NODE_ENV !== "production" && IS_CLIENT && u && u.proxy && !l) {
|
6780
6725
|
const g = u.proxy, p = "_pStores" in g ? g._pStores : g._pStores = {};
|
@@ -6782,7 +6727,7 @@ This will fail in production.`);
|
|
6782
6727
|
}
|
6783
6728
|
return c;
|
6784
6729
|
}
|
6785
|
-
return
|
6730
|
+
return i.$id = n, i;
|
6786
6731
|
}
|
6787
6732
|
let store$8 = null;
|
6788
6733
|
const useKgStore = (e) => (store$8 || (store$8 = defineStore("Kg", {
|
@@ -6839,14 +6784,14 @@ const useKgStore = (e) => (store$8 || (store$8 = defineStore("Kg", {
|
|
6839
6784
|
}
|
6840
6785
|
}).bind(null, e != null ? e : pinia())), store$8);
|
6841
6786
|
function useKg(e) {
|
6842
|
-
const t = useKgStore(e)(), r = computed(() => unref(t.getLocale || "zh_CN")), n = computed(() => t.getRouter), a = computed(() => t.getOption), o = t.t,
|
6787
|
+
const t = useKgStore(e)(), r = computed(() => unref(t.getLocale || "zh_CN")), n = computed(() => t.getRouter), a = computed(() => t.getOption), o = t.t, i = t.p;
|
6843
6788
|
return {
|
6844
6789
|
store: t,
|
6845
6790
|
locale: r,
|
6846
6791
|
router: n,
|
6847
6792
|
option: a,
|
6848
6793
|
t: o,
|
6849
|
-
p:
|
6794
|
+
p: i
|
6850
6795
|
};
|
6851
6796
|
}
|
6852
6797
|
Spin.setDefaultIndicator({
|
@@ -7080,15 +7025,15 @@ const KgModal_Close = "", getProps$y = () => ({
|
|
7080
7025
|
attrs: n
|
7081
7026
|
}) {
|
7082
7027
|
const a = ref(!1), o = ref(null);
|
7083
|
-
function
|
7028
|
+
function i(u) {
|
7084
7029
|
u.preventDefault(), u.stopPropagation(), a.value = !a.value;
|
7085
7030
|
const c = get(o.value, "$el.parentElement.parentElement.parentElement.parentElement.parentElement");
|
7086
7031
|
c && c.classList.toggle("kg-modal--fullscreen");
|
7087
7032
|
}
|
7088
|
-
function
|
7033
|
+
function s() {
|
7089
7034
|
return e.kgShowFullscreenButton ? createVNode(Button, {
|
7090
7035
|
ref: o,
|
7091
|
-
onClick:
|
7036
|
+
onClick: i,
|
7092
7037
|
class: "kg-modal-btn-fullscreen"
|
7093
7038
|
}, {
|
7094
7039
|
default: () => [a.value ? createVNode(FullscreenExitOutlined$1, null, null) : createVNode(FullscreenOutlined$1, null, null)]
|
@@ -7097,7 +7042,7 @@ const KgModal_Close = "", getProps$y = () => ({
|
|
7097
7042
|
function l() {
|
7098
7043
|
return e.kgShowCloseButton ? createVNode(CloseOutlined$1, null, null) : null;
|
7099
7044
|
}
|
7100
|
-
return () => createVNode(Fragment, null, [
|
7045
|
+
return () => createVNode(Fragment, null, [s(), l()]);
|
7101
7046
|
}
|
7102
7047
|
}), formProps = () => ({
|
7103
7048
|
layout: String,
|
@@ -7180,11 +7125,11 @@ const KgModal_Close = "", getProps$y = () => ({
|
|
7180
7125
|
attrs: n
|
7181
7126
|
}) {
|
7182
7127
|
const a = computed((o) => {
|
7183
|
-
const
|
7128
|
+
const i = {
|
7184
7129
|
...unref(n),
|
7185
7130
|
...e
|
7186
7131
|
};
|
7187
|
-
return
|
7132
|
+
return i.wrapClassName = i.wrapClassName ? `${i.wrapClassName} kg-modal` : "kg-modal", e.kgFullHeight && (i.wrapClassName += " kg-modal--full-height"), e.footer === null && (i.wrapClassName += " kg-modal--no-footer"), i.closable = !0, i.width = i.width !== void 0 ? i.width : "80%", i.centered = i.centered !== void 0 ? i.centered : !0, i.destroyOnClose = i.destroyOnClose !== void 0 ? i.destroyOnClose : !0, i.keyboard = i.keyboard !== void 0 ? i.keyboard : !1, i.maskClosable = i.maskClosable !== void 0 ? i.maskClosable : !1, i.cancelButtonProps = i.cancelButtonProps !== void 0 ? i.cancelButtonProps : {}, e.kgShowCancelButton || (i.cancelButtonProps.class = "kg-invisible"), i.okButtonProps = i.okButtonProps !== void 0 ? i.okButtonProps : {}, e.kgShowOkButton || (i.okButtonProps.class = "kg-invisible"), i;
|
7188
7133
|
});
|
7189
7134
|
return () => createVNode(Modal, a.value, {
|
7190
7135
|
...renderSlots(t, ["closeIcon"]),
|
@@ -7289,7 +7234,7 @@ const KgModal_Close = "", getProps$y = () => ({
|
|
7289
7234
|
kgMinWidth: e.kgMinWidth
|
7290
7235
|
}), new Error(C);
|
7291
7236
|
}
|
7292
|
-
let n = 0, a = 0, o = 0,
|
7237
|
+
let n = 0, a = 0, o = 0, i = 0, s = {
|
7293
7238
|
remove: () => {
|
7294
7239
|
}
|
7295
7240
|
}, l = {
|
@@ -7328,7 +7273,7 @@ const KgModal_Close = "", getProps$y = () => ({
|
|
7328
7273
|
return C;
|
7329
7274
|
});
|
7330
7275
|
function g() {
|
7331
|
-
|
7276
|
+
s.remove(), l.remove();
|
7332
7277
|
}
|
7333
7278
|
onUnmounted(() => {
|
7334
7279
|
g();
|
@@ -7336,10 +7281,10 @@ const KgModal_Close = "", getProps$y = () => ({
|
|
7336
7281
|
const p = (C) => {
|
7337
7282
|
switch (e.kgType) {
|
7338
7283
|
case "top":
|
7339
|
-
t("update:kgHeight", Math.min(e.kgMaxHeight, Math.max(e.kgMinHeight, a - (C.pageY -
|
7284
|
+
t("update:kgHeight", Math.min(e.kgMaxHeight, Math.max(e.kgMinHeight, a - (C.pageY - i))));
|
7340
7285
|
break;
|
7341
7286
|
case "bottom":
|
7342
|
-
t("update:kgHeight", Math.min(e.kgMaxHeight, Math.max(e.kgMinHeight, a + (C.pageY -
|
7287
|
+
t("update:kgHeight", Math.min(e.kgMaxHeight, Math.max(e.kgMinHeight, a + (C.pageY - i))));
|
7343
7288
|
break;
|
7344
7289
|
case "left":
|
7345
7290
|
t("update:kgWidth", Math.min(e.kgMaxWidth, Math.max(e.kgMinWidth, n - (C.pageX - o))));
|
@@ -7356,7 +7301,7 @@ const KgModal_Close = "", getProps$y = () => ({
|
|
7356
7301
|
p(C), g();
|
7357
7302
|
}
|
7358
7303
|
function v(C) {
|
7359
|
-
C.stopPropagation(), C.preventDefault(), g(), !(C instanceof MouseEvent && C.which !== 1) && (o = C.pageX,
|
7304
|
+
C.stopPropagation(), C.preventDefault(), g(), !(C instanceof MouseEvent && C.which !== 1) && (o = C.pageX, i = C.pageY, n = e.kgWidth, a = e.kgHeight, s = _(document.documentElement, "mousemove", b), l = _(document.documentElement, "mouseup", m));
|
7360
7305
|
}
|
7361
7306
|
function _(C, E, T) {
|
7362
7307
|
return C.addEventListener(E, T), {
|
@@ -7398,8 +7343,8 @@ var assign = make_assign(), create$1 = make_create(), trim$1 = make_trim(), Glob
|
|
7398
7343
|
function make_assign() {
|
7399
7344
|
return Object.assign ? Object.assign : function(t, r, n, a) {
|
7400
7345
|
for (var o = 1; o < arguments.length; o++)
|
7401
|
-
each$7(Object(arguments[o]), function(
|
7402
|
-
t[
|
7346
|
+
each$7(Object(arguments[o]), function(i, s) {
|
7347
|
+
t[s] = i;
|
7403
7348
|
});
|
7404
7349
|
return t;
|
7405
7350
|
};
|
@@ -7414,8 +7359,8 @@ function make_create() {
|
|
7414
7359
|
let e = function() {
|
7415
7360
|
};
|
7416
7361
|
return function(r, n, a, o) {
|
7417
|
-
var
|
7418
|
-
return e.prototype = r, assign.apply(this, [new e()].concat(
|
7362
|
+
var i = slice$1(arguments, 1);
|
7363
|
+
return e.prototype = r, assign.apply(this, [new e()].concat(i));
|
7419
7364
|
};
|
7420
7365
|
}
|
7421
7366
|
}
|
@@ -7513,7 +7458,7 @@ function createStore(e, t, r) {
|
|
7513
7458
|
var n = r ? "__storejs_" + r + "_" : "", a = r ? new RegExp("^" + n) : null, o = /^[a-zA-Z0-9_\-]*$/;
|
7514
7459
|
if (!o.test(r))
|
7515
7460
|
throw new Error("store.js namespaces can only have alphanumerics + underscores and dashes");
|
7516
|
-
var
|
7461
|
+
var i = {
|
7517
7462
|
_namespacePrefix: n,
|
7518
7463
|
_namespaceRegexp: a,
|
7519
7464
|
_testStorage: function(l) {
|
@@ -7584,16 +7529,16 @@ function createStore(e, t, r) {
|
|
7584
7529
|
addStorage: function(l) {
|
7585
7530
|
_warn("store.addStorage(storage) is deprecated. Use createStore([storages])"), this._addStorage(l);
|
7586
7531
|
}
|
7587
|
-
},
|
7532
|
+
}, s = create(i, storeAPI, {
|
7588
7533
|
plugins: []
|
7589
7534
|
});
|
7590
|
-
return
|
7591
|
-
isFunction(l) && (
|
7535
|
+
return s.raw = {}, each$6(s, function(l, u) {
|
7536
|
+
isFunction(l) && (s.raw[u] = bind(s, l));
|
7592
7537
|
}), each$6(e, function(l) {
|
7593
|
-
|
7538
|
+
s._addStorage(l);
|
7594
7539
|
}), each$6(t, function(l) {
|
7595
|
-
|
7596
|
-
}),
|
7540
|
+
s._addPlugin(l);
|
7541
|
+
}), s;
|
7597
7542
|
}
|
7598
7543
|
var util$4 = util$6, Global$4 = util$4.Global, localStorage_1 = {
|
7599
7544
|
name: "localStorage",
|
@@ -7833,7 +7778,7 @@ function requireJson2() {
|
|
7833
7778
|
}) + '"' : '"' + e + '"';
|
7834
7779
|
}
|
7835
7780
|
function str(e, t) {
|
7836
|
-
var r, n, a, o,
|
7781
|
+
var r, n, a, o, i = gap, s, l = t[e];
|
7837
7782
|
switch (l && typeof l == "object" && typeof l.toJSON == "function" && (l = l.toJSON(e)), typeof rep == "function" && (l = rep.call(t, e, l)), typeof l) {
|
7838
7783
|
case "string":
|
7839
7784
|
return quote(l);
|
@@ -7845,24 +7790,24 @@ function requireJson2() {
|
|
7845
7790
|
case "object":
|
7846
7791
|
if (!l)
|
7847
7792
|
return "null";
|
7848
|
-
if (gap += indent,
|
7793
|
+
if (gap += indent, s = [], Object.prototype.toString.apply(l) === "[object Array]") {
|
7849
7794
|
for (o = l.length, r = 0; r < o; r += 1)
|
7850
|
-
|
7851
|
-
return a =
|
7852
|
-
` + gap +
|
7795
|
+
s[r] = str(r, l) || "null";
|
7796
|
+
return a = s.length === 0 ? "[]" : gap ? `[
|
7797
|
+
` + gap + s.join(`,
|
7853
7798
|
` + gap) + `
|
7854
|
-
` +
|
7799
|
+
` + i + "]" : "[" + s.join(",") + "]", gap = i, a;
|
7855
7800
|
}
|
7856
7801
|
if (rep && typeof rep == "object")
|
7857
7802
|
for (o = rep.length, r = 0; r < o; r += 1)
|
7858
|
-
typeof rep[r] == "string" && (n = rep[r], a = str(n, l), a &&
|
7803
|
+
typeof rep[r] == "string" && (n = rep[r], a = str(n, l), a && s.push(quote(n) + (gap ? ": " : ":") + a));
|
7859
7804
|
else
|
7860
7805
|
for (n in l)
|
7861
|
-
Object.prototype.hasOwnProperty.call(l, n) && (a = str(n, l), a &&
|
7862
|
-
return a =
|
7863
|
-
` + gap +
|
7806
|
+
Object.prototype.hasOwnProperty.call(l, n) && (a = str(n, l), a && s.push(quote(n) + (gap ? ": " : ":") + a));
|
7807
|
+
return a = s.length === 0 ? "{}" : gap ? `{
|
7808
|
+
` + gap + s.join(`,
|
7864
7809
|
` + gap) + `
|
7865
|
-
` +
|
7810
|
+
` + i + "}" : "{" + s.join(",") + "}", gap = i, a;
|
7866
7811
|
}
|
7867
7812
|
}
|
7868
7813
|
typeof JSON.stringify != "function" && (meta = {
|
@@ -7961,20 +7906,20 @@ function transformVarSubmitConfig(e) {
|
|
7961
7906
|
`| \u6570\u636E\u6709\u8BEF | VarSubmitConfig.dft_width \u8D85\u51FA\u8303\u56F4 [${e.min_width}, ${e.max_width}], \u6539\u4E3A\u4F7F\u7528\u6700\u5C0F\u5BBD\u5EA6 ${e.min_width}.`,
|
7962
7907
|
{ VarSubmitConfig: e }
|
7963
7908
|
)), isNil(e.layout) ? e.layout = DEFAULT_LAYOUT : ["vertical", "horizontal", "inline"].includes(e.layout) || (e.layout = DEFAULT_LAYOUT, Logger.error(`| \u6570\u636E\u6709\u8BEF | VarSubmitConfig.layout \u975E\u6CD5, \u6539\u4E3A\u4F7F\u7528\u9ED8\u8BA4\u503C ${DEFAULT_LAYOUT}.`, { VarSubmitConfig: e })), isNil(e.label_col_unit) ? e.label_col_unit = KG_WIDTH_UNIT.SPAN : [KG_WIDTH_UNIT.SPAN, KG_WIDTH_UNIT.PX].includes(e.label_col_unit) || (e.label_col_unit = KG_WIDTH_UNIT.SPAN, Logger.error(`| \u6570\u636E\u6709\u8BEF | VarSubmitConfig.label_col_unit \u975E\u6CD5, \u6539\u4E3A\u4F7F\u7528\u9ED8\u8BA4\u503C ${KG_WIDTH_UNIT.SPAN}.`, { VarSubmitConfig: e })), e.layout === "horizontal") {
|
7964
|
-
const
|
7909
|
+
const s = Number(e.label_col);
|
7965
7910
|
switch (e.label_col_unit) {
|
7966
7911
|
case KG_WIDTH_UNIT.SPAN:
|
7967
7912
|
switch (!0) {
|
7968
7913
|
case isNil(e.label_col):
|
7969
7914
|
e.label_col = DEFAULT_LABEL_COL_FOR_SPAN;
|
7970
7915
|
break;
|
7971
|
-
case (Number.isNaN(
|
7916
|
+
case (Number.isNaN(s) || s > 24 || s < 1):
|
7972
7917
|
e.label_col = DEFAULT_LABEL_COL_FOR_SPAN, Logger.error(`| \u6570\u636E\u6709\u8BEF | VarSubmitConfig.label_col \u975E\u6CD5, \u6539\u4E3A\u4F7F\u7528\u9ED8\u8BA4\u503C ${DEFAULT_LABEL_COL_FOR_SPAN}.`, {
|
7973
7918
|
VarSubmitConfig: e
|
7974
7919
|
});
|
7975
7920
|
break;
|
7976
7921
|
default:
|
7977
|
-
e.label_col = Math.floor(
|
7922
|
+
e.label_col = Math.floor(s);
|
7978
7923
|
}
|
7979
7924
|
break;
|
7980
7925
|
case KG_WIDTH_UNIT.PX:
|
@@ -7982,7 +7927,7 @@ function transformVarSubmitConfig(e) {
|
|
7982
7927
|
case isNil(e.label_col):
|
7983
7928
|
e.label_col = DEFAULT_LABEL_COL_FOR_PX;
|
7984
7929
|
break;
|
7985
|
-
case (Number.isNaN(
|
7930
|
+
case (Number.isNaN(s) || s <= 0):
|
7986
7931
|
e.label_col = DEFAULT_LABEL_COL_FOR_PX, Logger.error(`| \u6570\u636E\u6709\u8BEF | VarSubmitConfig.label_col \u975E\u6CD5, \u6539\u4E3A\u4F7F\u7528\u9ED8\u8BA4\u503C ${DEFAULT_LABEL_COL_FOR_PX}.`, {
|
7987
7932
|
VarSubmitConfig: e
|
7988
7933
|
});
|
@@ -7991,8 +7936,8 @@ function transformVarSubmitConfig(e) {
|
|
7991
7936
|
break;
|
7992
7937
|
}
|
7993
7938
|
}
|
7994
|
-
const a = KG_VAR_SUBMIT__DISPLAY_TYPE.DRAWER, o = KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL,
|
7995
|
-
return isNil(e.display_type) ? e.display_type = a : [a, o,
|
7939
|
+
const a = KG_VAR_SUBMIT__DISPLAY_TYPE.DRAWER, o = KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL, i = KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE;
|
7940
|
+
return isNil(e.display_type) ? e.display_type = a : [a, o, i].includes(e.display_type) || (e.display_type = a, Logger.error(`| \u6570\u636E\u6709\u8BEF | VarSubmitConfig.display_type \u975E\u6CD5, \u5408\u6CD5\u7684\u503C\u4E3A ${[a, o, i]}, \u6539\u4E3A\u4F7F\u7528\u9ED8\u8BA4\u503C ${a}.`, {
|
7996
7941
|
VarSubmitConfig: e
|
7997
7942
|
})), e;
|
7998
7943
|
}
|
@@ -8299,13 +8244,13 @@ const useKgVarStore = () => (store$6 || (store$6 = defineStore("KgVar", {
|
|
8299
8244
|
},
|
8300
8245
|
getVarButtonSearch(e) {
|
8301
8246
|
return (t) => {
|
8302
|
-
var a, o,
|
8247
|
+
var a, o, i;
|
8303
8248
|
if (!t)
|
8304
8249
|
return Logger.error("formID \u4E3A\u7A7A."), null;
|
8305
|
-
let r = e.varButtonMap.get(t), n = (a = r == null ? void 0 : r.find((
|
8250
|
+
let r = e.varButtonMap.get(t), n = (a = r == null ? void 0 : r.find((s) => s.typ === KG_BUTTON_TYPE.SEARCH)) != null ? a : null;
|
8306
8251
|
if (!n) {
|
8307
8252
|
const l = (o = useKgVar(t).store.getVarGridConfig(t)) == null ? void 0 : o.prf_frm_id;
|
8308
|
-
r = e.varButtonMap.get(l || t), n = (
|
8253
|
+
r = e.varButtonMap.get(l || t), n = (i = r == null ? void 0 : r.find((u) => u.typ === KG_BUTTON_TYPE.SEARCH)) != null ? i : null;
|
8309
8254
|
}
|
8310
8255
|
return n;
|
8311
8256
|
};
|
@@ -8367,7 +8312,7 @@ const useKgVarStore = () => (store$6 || (store$6 = defineStore("KgVar", {
|
|
8367
8312
|
if (!t)
|
8368
8313
|
return Logger.error("formID \u4E3A\u7A7A."), null;
|
8369
8314
|
const r = e.varProfileMap.get(t);
|
8370
|
-
return (o = (a = (n = r == null ? void 0 : r.varProfile) == null ? void 0 : n.varProfileMasters) == null ? void 0 : a.find((
|
8315
|
+
return (o = (a = (n = r == null ? void 0 : r.varProfile) == null ? void 0 : n.varProfileMasters) == null ? void 0 : a.find((i) => i.id === (r == null ? void 0 : r.currentVarProfileMasterID))) != null ? o : null;
|
8371
8316
|
};
|
8372
8317
|
},
|
8373
8318
|
getCurrentVarProfileMasterID(e) {
|
@@ -8387,14 +8332,14 @@ const useKgVarStore = () => (store$6 || (store$6 = defineStore("KgVar", {
|
|
8387
8332
|
},
|
8388
8333
|
getSystemVarProfileDetails(e) {
|
8389
8334
|
return (t) => {
|
8390
|
-
var r, n, a, o,
|
8391
|
-
return t ? (
|
8335
|
+
var r, n, a, o, i;
|
8336
|
+
return t ? (i = (o = (a = (n = (r = e.varProfileMap.get(t)) == null ? void 0 : r.varProfile) == null ? void 0 : n.varProfileMasters) == null ? void 0 : a.find((s) => s.cust_lvl === KG_CUSTOM_LEVEL.L0)) == null ? void 0 : o.varProfileDetails) != null ? i : null : (Logger.error("formID \u4E3A\u7A7A."), null);
|
8392
8337
|
};
|
8393
8338
|
},
|
8394
8339
|
getVarProfileDetail(e) {
|
8395
8340
|
return (t, r) => {
|
8396
8341
|
var n, a, o;
|
8397
|
-
return !t || !r ? null : (o = (a = (n = this.getCurrentVarProfileMaster(t)) == null ? void 0 : n.varProfileDetails) == null ? void 0 : a.find((
|
8342
|
+
return !t || !r ? null : (o = (a = (n = this.getCurrentVarProfileMaster(t)) == null ? void 0 : n.varProfileDetails) == null ? void 0 : a.find((i) => i.var_nam === r)) != null ? o : null;
|
8398
8343
|
};
|
8399
8344
|
},
|
8400
8345
|
getVarGridConfigMap(e) {
|
@@ -8421,7 +8366,7 @@ const useKgVarStore = () => (store$6 || (store$6 = defineStore("KgVar", {
|
|
8421
8366
|
if (!t)
|
8422
8367
|
return Logger.error("formID \u4E3A\u7A7A."), null;
|
8423
8368
|
const r = e.varGridMap.get(t);
|
8424
|
-
return (o = (a = (n = r == null ? void 0 : r.varGrid) == null ? void 0 : n.varGridMasters) == null ? void 0 : a.find((
|
8369
|
+
return (o = (a = (n = r == null ? void 0 : r.varGrid) == null ? void 0 : n.varGridMasters) == null ? void 0 : a.find((i) => i.id === (r == null ? void 0 : r.currentVarGridMasterID))) != null ? o : null;
|
8425
8370
|
};
|
8426
8371
|
},
|
8427
8372
|
getCurrentVisibleVarGridDetails(e) {
|
@@ -8447,14 +8392,14 @@ const useKgVarStore = () => (store$6 || (store$6 = defineStore("KgVar", {
|
|
8447
8392
|
},
|
8448
8393
|
getSystemVarGridDetails(e) {
|
8449
8394
|
return (t) => {
|
8450
|
-
var r, n, a, o,
|
8451
|
-
return t ? (
|
8395
|
+
var r, n, a, o, i;
|
8396
|
+
return t ? (i = (o = (a = (n = (r = e.varGridMap.get(t)) == null ? void 0 : r.varGrid) == null ? void 0 : n.varGridMasters) == null ? void 0 : a.find((s) => s.cust_lvl === KG_CUSTOM_LEVEL.L0)) == null ? void 0 : o.varGridDetails) != null ? i : null : (Logger.error("formID \u4E3A\u7A7A."), null);
|
8452
8397
|
};
|
8453
8398
|
},
|
8454
8399
|
getVarGridDetail(e) {
|
8455
8400
|
return (t, r) => {
|
8456
8401
|
var n, a, o;
|
8457
|
-
return !t || !r ? (Logger.error("formID \u6216 var_nam \u4E3A\u7A7A.", { frm_id: t, var_nam: r }), null) : (o = (a = (n = this.getCurrentVarGridMaster(t)) == null ? void 0 : n.varGridDetails) == null ? void 0 : a.find((
|
8402
|
+
return !t || !r ? (Logger.error("formID \u6216 var_nam \u4E3A\u7A7A.", { frm_id: t, var_nam: r }), null) : (o = (a = (n = this.getCurrentVarGridMaster(t)) == null ? void 0 : n.varGridDetails) == null ? void 0 : a.find((i) => i.var_nam === r)) != null ? o : null;
|
8458
8403
|
};
|
8459
8404
|
}
|
8460
8405
|
},
|
@@ -8540,12 +8485,12 @@ const useKgVarStore = () => (store$6 || (store$6 = defineStore("KgVar", {
|
|
8540
8485
|
this.formIDs = this.formIDs.filter((t) => t.formID !== e), this.isRetrievingVarMap.delete(e), this.isRetrievingVarProfileMasterMap.delete(e), this.isCreatingMap.delete(e), this.isCreatingRequestingMap.delete(e), this.isUpdatingMap.delete(e), this.isUpdatingRequestingMap.delete(e), this.isCopyingMap.delete(e), this.isCopyingRequestingMap.delete(e), this.isDeletingMap.delete(e), this.isDeletingRequestingMap.delete(e), this.isOtherRequestingMap.delete(e), this.varCatalogMap.delete(e), this.varLookupMap.delete(e), this.varPossibilityMap.delete(e), this.varVariableConfigMap.delete(e), this.varButtonMap.delete(e), this.varSubmitConfigMap.delete(e), this.varSubmitFieldMap.delete(e), this.varProfileConfigMap.delete(e), this.varProfileMap.delete(e), this.varGridConfigMap.delete(e), this.varGridMap.delete(e), store_legacy.set("KgVar.formIDs", this.formIDs);
|
8541
8486
|
},
|
8542
8487
|
async retrieve(e) {
|
8543
|
-
var t, r, n, a, o,
|
8488
|
+
var t, r, n, a, o, i;
|
8544
8489
|
if (!!e) {
|
8545
8490
|
this.isRetrievingVarMap.set(e, !0);
|
8546
8491
|
try {
|
8547
8492
|
const {
|
8548
|
-
varCatalogs:
|
8493
|
+
varCatalogs: s,
|
8549
8494
|
varLookups: l,
|
8550
8495
|
varConfigs: u,
|
8551
8496
|
varVariableInputs: c,
|
@@ -8559,22 +8504,22 @@ const useKgVarStore = () => (store$6 || (store$6 = defineStore("KgVar", {
|
|
8559
8504
|
varGrid: C,
|
8560
8505
|
varGridConfig: E
|
8561
8506
|
} = await GetAll({ params: { frm_id: e } });
|
8562
|
-
this.varCatalogMap.set(e,
|
8507
|
+
this.varCatalogMap.set(e, s != null ? s : []), this.varLookupMap.set(e, l != null ? l : []), this.varPossibilityMap.set(e, g != null ? g : []), this.varVariableConfigMap.set(e, u != null ? u : []), this.varVariableInputMap.set(e, c != null ? c : []), this.varButtonMap.set(e, transformVarButtons(p)), this.varButtonConfigMap.set(e, b != null ? b : null), this.varSubmitConfigMap.set(e, transformVarSubmitConfig(m)), this.varSubmitFieldMap.set(e, transformVarSubmitFields(v)), this.varProfileConfigMap.set(e, transformVarProfileConfig(y != null ? y : null)), this.varProfileMap.set(e, {
|
8563
8508
|
varProfile: _ != null ? _ : null,
|
8564
8509
|
currentVarProfileMasterID: (n = (r = (t = _ == null ? void 0 : _.varProfileMasters) == null ? void 0 : t.find((T) => T.def_flg === 1 || T.cust_lvl === KG_CUSTOM_LEVEL.L0)) == null ? void 0 : r.id) != null ? n : null
|
8565
8510
|
}), this.varGridConfigMap.set(e, transformVarGridConfig(E != null ? E : null)), this.varGridMap.set(e, {
|
8566
8511
|
varGrid: transformVarGridDTO(C),
|
8567
|
-
currentVarGridMasterID: (
|
8512
|
+
currentVarGridMasterID: (i = (o = (a = C == null ? void 0 : C.varGridMasters) == null ? void 0 : a.find((T) => T.def_flg === 1 || T.cust_lvl === KG_CUSTOM_LEVEL.L0)) == null ? void 0 : o.id) != null ? i : null
|
8568
8513
|
}), this.emit(e, "ready");
|
8569
|
-
} catch (
|
8570
|
-
throw
|
8514
|
+
} catch (s) {
|
8515
|
+
throw s;
|
8571
8516
|
} finally {
|
8572
8517
|
this.isRetrievingVarMap.set(e, !1);
|
8573
8518
|
}
|
8574
8519
|
}
|
8575
8520
|
},
|
8576
8521
|
async setCurrentVarProfileMasterID(e, t) {
|
8577
|
-
var a, o,
|
8522
|
+
var a, o, i, s;
|
8578
8523
|
if (!e)
|
8579
8524
|
return;
|
8580
8525
|
const r = this.varProfileMap.get(e);
|
@@ -8582,13 +8527,13 @@ const useKgVarStore = () => (store$6 || (store$6 = defineStore("KgVar", {
|
|
8582
8527
|
return;
|
8583
8528
|
const n = (o = (a = r.varProfile) == null ? void 0 : a.varProfileMasters) == null ? void 0 : o.find((l) => l.id === t);
|
8584
8529
|
if (!!n)
|
8585
|
-
if ((
|
8530
|
+
if ((i = n.varProfileDetails) != null && i.length)
|
8586
8531
|
r.currentVarProfileMasterID = t != null ? t : null;
|
8587
8532
|
else {
|
8588
8533
|
this.isRetrievingVarProfileMasterMap.set(e, !0);
|
8589
8534
|
try {
|
8590
8535
|
const l = await QueryByID({ params: { id: n.id } });
|
8591
|
-
n.varProfileDetails = (
|
8536
|
+
n.varProfileDetails = (s = l == null ? void 0 : l.varProfileDetails) != null ? s : [], r.currentVarProfileMasterID = t != null ? t : null;
|
8592
8537
|
} catch (l) {
|
8593
8538
|
throw l;
|
8594
8539
|
} finally {
|
@@ -8619,7 +8564,7 @@ const useKgVarStore = () => (store$6 || (store$6 = defineStore("KgVar", {
|
|
8619
8564
|
);
|
8620
8565
|
},
|
8621
8566
|
async setCurrentVarGridMasterID(e, t) {
|
8622
|
-
var a, o,
|
8567
|
+
var a, o, i, s;
|
8623
8568
|
if (!e)
|
8624
8569
|
return;
|
8625
8570
|
const r = this.varGridMap.get(e);
|
@@ -8627,13 +8572,13 @@ const useKgVarStore = () => (store$6 || (store$6 = defineStore("KgVar", {
|
|
8627
8572
|
return;
|
8628
8573
|
const n = (o = (a = r.varGrid) == null ? void 0 : a.varGridMasters) == null ? void 0 : o.find((l) => l.id === t);
|
8629
8574
|
if (!!n)
|
8630
|
-
if ((
|
8575
|
+
if ((i = n.varGridDetails) != null && i.length)
|
8631
8576
|
r.currentVarGridMasterID = t != null ? t : null;
|
8632
8577
|
else {
|
8633
8578
|
this.isRetrievingVarGridMasterMap.set(e, !0);
|
8634
8579
|
try {
|
8635
8580
|
const l = await QueryByID$1({ params: { id: n.id } });
|
8636
|
-
n.varGridDetails = (
|
8581
|
+
n.varGridDetails = (s = l == null ? void 0 : l.varGridDetails) != null ? s : [], r.currentVarGridMasterID = t != null ? t : null;
|
8637
8582
|
} catch (l) {
|
8638
8583
|
throw l;
|
8639
8584
|
} finally {
|
@@ -8668,10 +8613,10 @@ const useKgVarStore = () => (store$6 || (store$6 = defineStore("KgVar", {
|
|
8668
8613
|
var o;
|
8669
8614
|
if (a) {
|
8670
8615
|
setTimeout(() => n(), 0);
|
8671
|
-
let
|
8672
|
-
Object.entries(r).forEach(([
|
8673
|
-
s
|
8674
|
-
}), a.cmd_prm = JSON.stringify(
|
8616
|
+
let i = JSON.parse((o = a.cmd_prm) != null ? o : "{}");
|
8617
|
+
Object.entries(r).forEach(([s, l]) => {
|
8618
|
+
i[s] = l;
|
8619
|
+
}), a.cmd_prm = JSON.stringify(i), this.varPossibilityMap.set(e, this.varPossibilityMap.get(e));
|
8675
8620
|
}
|
8676
8621
|
},
|
8677
8622
|
{ immediate: !0 }
|
@@ -8684,11 +8629,11 @@ const useKgVarStore = () => (store$6 || (store$6 = defineStore("KgVar", {
|
|
8684
8629
|
() => this.getVarSubmitField(e, t),
|
8685
8630
|
(a) => {
|
8686
8631
|
a && setTimeout(() => {
|
8687
|
-
var
|
8688
|
-
n(), Object.entries(r).forEach(([
|
8689
|
-
|
8632
|
+
var i;
|
8633
|
+
n(), Object.entries(r).forEach(([s, l]) => {
|
8634
|
+
s in a && (a[s] = l);
|
8690
8635
|
});
|
8691
|
-
const o = [...(
|
8636
|
+
const o = [...(i = this.varSubmitFieldMap.get(e)) != null ? i : []];
|
8692
8637
|
o.splice(o.indexOf(a), 1, { ...a }), this.varSubmitFieldMap.set(e, o);
|
8693
8638
|
});
|
8694
8639
|
},
|
@@ -8701,27 +8646,27 @@ function useKgVar(e, t, r = 0) {
|
|
8701
8646
|
var n, a;
|
8702
8647
|
try {
|
8703
8648
|
let o = function(x) {
|
8704
|
-
return isFunction$2(x) ? (
|
8649
|
+
return isFunction$2(x) ? (s.addEventListener(i, "ready", x), getCurrentInstance() && onUnmounted(() => s.removeEventListener(i, "ready", x)), () => s.removeEventListener(i, "ready", x)) : () => {
|
8705
8650
|
};
|
8706
|
-
},
|
8707
|
-
if (!
|
8651
|
+
}, i = e || inject(KG_DI_FORM_ID, "");
|
8652
|
+
if (!i)
|
8708
8653
|
throw new Error("useKgVar() \u65B9\u6CD5\u5FC5\u987B\u4F20\u5165 formID \u53C2\u6570.");
|
8709
|
-
const
|
8710
|
-
t && getCurrentInstance() && (provide(KG_DI_FORM_ID,
|
8711
|
-
|
8654
|
+
const s = useKgVarStore()();
|
8655
|
+
t && getCurrentInstance() && (provide(KG_DI_FORM_ID, i), onMounted(() => {
|
8656
|
+
s.enter({ formID: i, level: r });
|
8712
8657
|
}), onUnmounted(() => {
|
8713
|
-
|
8658
|
+
s.leave(i);
|
8714
8659
|
}));
|
8715
8660
|
const l = (x) => computed(() => {
|
8716
8661
|
var q, Y, Q;
|
8717
|
-
return (Q = (Y = (q =
|
8718
|
-
}), u = computed(() =>
|
8662
|
+
return (Q = (Y = (q = s.getVarCatalog(i, x)) == null ? void 0 : q.var_text) != null ? Y : x) != null ? Q : "";
|
8663
|
+
}), u = computed(() => s.isRetrievingVar(i)), c = computed(() => s.isRetrievingVarProfileMaster(i)), g = computed(() => s.isRetrievingVarGridMaster(i)), p = computed(() => s.isCreating(i)), b = computed(() => s.isCreatingRequesting(i)), m = computed(() => s.isUpdating(i)), v = computed(() => s.isUpdatingRequesting(i)), _ = computed(() => s.isCopying(i)), y = computed(() => s.isCopyingRequesting(i)), C = computed(() => s.isDeleting(i)), E = computed(() => s.isDeletingRequesting(i)), T = computed(() => s.isOtherRequesting(i)), I = computed(() => s.getVarButtons(i)), k = computed(() => s.getVarButtonSearch(i)), w = computed(() => s.getVarButtonCreate(i)), M = computed(() => s.getVarButtonUpdate(i)), A = computed(() => s.getVarButtonCopy(i)), O = computed(() => s.getVarButtonDelete(i)), B = computed(() => s.getVarProfileMasters(i)), $ = computed(() => s.getCurrentVarProfileMaster(i)), P = computed(() => s.getCurrentVarProfileMasterID(i)), D = computed(() => {
|
8719
8664
|
var x, q;
|
8720
8665
|
return (q = (x = $.value) == null ? void 0 : x.varProfileDetails) != null ? q : null;
|
8721
|
-
}), V = computed(() =>
|
8666
|
+
}), V = computed(() => s.getVarGridConfig(i)), R = computed(() => s.getVarGridMasters(i)), L = computed(() => s.getCurrentVarGridMaster(i)), H = computed(() => s.getSystemVarGridDetails(i)), N = computed(() => s.getCurrentVarGridDetails(i));
|
8722
8667
|
return {
|
8723
|
-
formID:
|
8724
|
-
store:
|
8668
|
+
formID: i,
|
8669
|
+
store: s,
|
8725
8670
|
isRetrievingVar: u,
|
8726
8671
|
isRetrievingVarProfileMaster: c,
|
8727
8672
|
isRetrievingVarGridMaster: g,
|
@@ -8769,7 +8714,7 @@ const DI_KG_SLOTS = Symbol("DI_KG_SLOTS"), KgVar$1 = "", getProps$t = () => ({
|
|
8769
8714
|
provide(DI_KG_SLOTS, e.kgSlots);
|
8770
8715
|
const r = useKgVar();
|
8771
8716
|
KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE;
|
8772
|
-
const n = computed(() => r.store.getVarSubmitConfig(r.formID)), a = computed(() => r.store.getVarProfileConfig(r.formID)), o = computed(() => r.store.getVarButtonConfig(r.formID)),
|
8717
|
+
const n = computed(() => r.store.getVarSubmitConfig(r.formID)), a = computed(() => r.store.getVarProfileConfig(r.formID)), o = computed(() => r.store.getVarButtonConfig(r.formID)), i = computed(() => {
|
8773
8718
|
var p, b, m, v;
|
8774
8719
|
switch (!0) {
|
8775
8720
|
case r.isCreating.value:
|
@@ -8782,7 +8727,7 @@ const DI_KG_SLOTS = Symbol("DI_KG_SLOTS"), KgVar$1 = "", getProps$t = () => ({
|
|
8782
8727
|
return ((v = n.value) == null ? void 0 : v.del_flg) !== 0;
|
8783
8728
|
}
|
8784
8729
|
return !1;
|
8785
|
-
}),
|
8730
|
+
}), s = computed(() => {
|
8786
8731
|
var p;
|
8787
8732
|
return ((p = o.value) == null ? void 0 : p.available_flg) !== 0;
|
8788
8733
|
}), l = computed(() => {
|
@@ -8798,7 +8743,7 @@ const DI_KG_SLOTS = Symbol("DI_KG_SLOTS"), KgVar$1 = "", getProps$t = () => ({
|
|
8798
8743
|
}, {
|
8799
8744
|
default: () => {
|
8800
8745
|
var p, b, m;
|
8801
|
-
return [t.default ? t.default() : createVNode(Fragment, null, [l.value && createVNode(KgSearch, null, null),
|
8746
|
+
return [t.default ? t.default() : createVNode(Fragment, null, [l.value && createVNode(KgSearch, null, null), s.value && createVNode(KgButton, null, null), createVNode(KgTable, null, null), (b = (p = e.kgSlots) == null ? void 0 : p.afterKgTable) == null ? void 0 : b.call(p), i.value && createVNode(KgSubmit, {
|
8802
8747
|
kgClass: (m = e.kgSubmitClass) != null ? m : ""
|
8803
8748
|
}, null)])];
|
8804
8749
|
}
|
@@ -8861,9 +8806,9 @@ const DI_KG_SLOTS = Symbol("DI_KG_SLOTS"), KgVar$1 = "", getProps$t = () => ({
|
|
8861
8806
|
slots: t,
|
8862
8807
|
emit: r
|
8863
8808
|
}) {
|
8864
|
-
const n = inject(KG_DI_HOST_FORM_ID, ""), a = useKgVar(n), o = inject(KG_DI_VAR_NAME, ""),
|
8865
|
-
useKgVar(
|
8866
|
-
const l = useKgTable(
|
8809
|
+
const n = inject(KG_DI_HOST_FORM_ID, ""), a = useKgVar(n), o = inject(KG_DI_VAR_NAME, ""), i = inject(KG_DI_LOOKUP_ID, ""), s = inject(DI_ON_KG_LOOKUP_BEFORE_OK, null);
|
8810
|
+
useKgVar(i, !0, a.store.getFormLevel(a.formID) + 1);
|
8811
|
+
const l = useKgTable(i), u = computed(() => a.store.getVarLookup(n, o)), c = computed(() => {
|
8867
8812
|
var m;
|
8868
8813
|
return ((m = u == null ? void 0 : u.value) == null ? void 0 : m.mult_flg) === 1;
|
8869
8814
|
}), g = computed(() => {
|
@@ -8878,10 +8823,10 @@ const DI_KG_SLOTS = Symbol("DI_KG_SLOTS"), KgVar$1 = "", getProps$t = () => ({
|
|
8878
8823
|
var m, v, _, y, C, E, T;
|
8879
8824
|
if (c.value) {
|
8880
8825
|
const I = (v = (m = l.selectedRows) == null ? void 0 : m.value) != null ? v : [], k = (_ = I.map((w) => w[g.value])) != null ? _ : [];
|
8881
|
-
(!
|
8826
|
+
(!s || s(k, I)) && (r("kgOk", k, I), r("update:visible", !1));
|
8882
8827
|
} else {
|
8883
8828
|
const I = (E = (C = (y = l.selectedRows) == null ? void 0 : y.value) == null ? void 0 : C[0]) != null ? E : null, k = (T = I == null ? void 0 : I[g.value]) != null ? T : "";
|
8884
|
-
(!
|
8829
|
+
(!s || s(k, I)) && (r("kgOk", k, I), r("update:visible", !1));
|
8885
8830
|
}
|
8886
8831
|
}
|
8887
8832
|
return () => {
|
@@ -8922,8 +8867,8 @@ const DI_KG_SLOTS = Symbol("DI_KG_SLOTS"), KgVar$1 = "", getProps$t = () => ({
|
|
8922
8867
|
function o() {
|
8923
8868
|
a.value = !0;
|
8924
8869
|
}
|
8925
|
-
function s
|
8926
|
-
r("kgOk",
|
8870
|
+
function i(s, l) {
|
8871
|
+
r("kgOk", s, l);
|
8927
8872
|
}
|
8928
8873
|
return () => createVNode(Fragment, null, [createVNode(Button, {
|
8929
8874
|
onClick: o,
|
@@ -8932,9 +8877,9 @@ const DI_KG_SLOTS = Symbol("DI_KG_SLOTS"), KgVar$1 = "", getProps$t = () => ({
|
|
8932
8877
|
}, {
|
8933
8878
|
default: () => [createVNode(SearchOutlined$1, null, null)]
|
8934
8879
|
}), a.value ? createVNode(KgFormItemAddonLookupModal, {
|
8935
|
-
onKgOk:
|
8880
|
+
onKgOk: i,
|
8936
8881
|
visible: a.value,
|
8937
|
-
"onUpdate:visible": (
|
8882
|
+
"onUpdate:visible": (s) => a.value = s
|
8938
8883
|
}, null) : null]);
|
8939
8884
|
}
|
8940
8885
|
}), KgForm_Item = "", KgFormItemCheckbox = defineComponent({
|
@@ -8950,45 +8895,45 @@ const DI_KG_SLOTS = Symbol("DI_KG_SLOTS"), KgVar$1 = "", getProps$t = () => ({
|
|
8950
8895
|
});
|
8951
8896
|
function _useServices$2(e) {
|
8952
8897
|
const t = useKgVar(), r = computed(() => t.store.getVarPossibility(t.formID, e.kgVarName)), n = computed(() => t.store.getVariableConfig(t.formID, e.kgVarName)), a = computed(() => {
|
8953
|
-
var
|
8954
|
-
return KgUtil.tryParseJSON((
|
8898
|
+
var i;
|
8899
|
+
return KgUtil.tryParseJSON((i = n.value) == null ? void 0 : i.ctrl_prop);
|
8955
8900
|
});
|
8956
|
-
function o(
|
8901
|
+
function o(i) {
|
8957
8902
|
var u, c, g, p, b;
|
8958
|
-
if (!
|
8903
|
+
if (!i)
|
8959
8904
|
return [];
|
8960
|
-
const
|
8905
|
+
const s = (c = (u = r.value) == null ? void 0 : u.val_clm) != null ? c : "", l = (p = (g = r.value) == null ? void 0 : g.val_data_type) != null ? p : "string";
|
8961
8906
|
switch (l) {
|
8962
8907
|
case KG_POSSIBILITY_DATA_TYPE.STRING:
|
8963
|
-
|
8964
|
-
m[
|
8908
|
+
i.forEach((m) => {
|
8909
|
+
m[s] = String(m[s]);
|
8965
8910
|
});
|
8966
8911
|
break;
|
8967
8912
|
case KG_POSSIBILITY_DATA_TYPE.NUMBER:
|
8968
|
-
|
8969
|
-
let v = Number(m[
|
8970
|
-
Number.isNaN(v) && (v = m[
|
8913
|
+
i.forEach((m) => {
|
8914
|
+
let v = Number(m[s]);
|
8915
|
+
Number.isNaN(v) && (v = m[s], Logger.error(`| \u6570\u636E\u6709\u8BEF | \u65E0\u6CD5\u5C06 ${m[s]} \u8F6C\u6362\u4E3A ${l} \u7C7B\u578B`, {
|
8971
8916
|
frm_id: t.formID,
|
8972
8917
|
var_nam: e.kgVarName,
|
8973
8918
|
VarPossibility: r.value
|
8974
|
-
})), m[
|
8919
|
+
})), m[s] = v;
|
8975
8920
|
});
|
8976
8921
|
break;
|
8977
8922
|
case KG_POSSIBILITY_DATA_TYPE.BOOLEAN:
|
8978
|
-
|
8923
|
+
i.forEach((m) => {
|
8979
8924
|
let v;
|
8980
|
-
String(m[
|
8925
|
+
String(m[s]).toLowerCase() === "true" ? v = !0 : String(m[s]).toLowerCase() === "false" ? v = !1 : (v = m[s], Logger.error(`| \u6570\u636E\u6709\u8BEF | \u65E0\u6CD5\u5C06 ${m[s]} \u8F6C\u6362\u4E3A ${l} \u7C7B\u578B`, {
|
8981
8926
|
frm_id: t.formID,
|
8982
8927
|
var_nam: e.kgVarName,
|
8983
8928
|
VarPossibility: r.value
|
8984
|
-
})), m[
|
8929
|
+
})), m[s] = v;
|
8985
8930
|
});
|
8986
8931
|
break;
|
8987
8932
|
}
|
8988
|
-
return (b = a.value) != null && b.excludeValues ?
|
8933
|
+
return (b = a.value) != null && b.excludeValues ? i.filter((m) => {
|
8989
8934
|
var v;
|
8990
|
-
return !((v = a.value.excludeValues) != null && v.includes(m[
|
8991
|
-
}) :
|
8935
|
+
return !((v = a.value.excludeValues) != null && v.includes(m[s]));
|
8936
|
+
}) : i;
|
8992
8937
|
}
|
8993
8938
|
return {
|
8994
8939
|
transformDatas: o
|
@@ -9005,16 +8950,16 @@ const KgFormItemCheckboxGroup = defineComponent({
|
|
9005
8950
|
attrs: t,
|
9006
8951
|
emit: r
|
9007
8952
|
}) {
|
9008
|
-
const n = useKg(), a = useKgVar(), o = inject(DI_FORM_REF, ref(null)),
|
9009
|
-
transformDatas:
|
8953
|
+
const n = useKg(), a = useKgVar(), o = inject(DI_FORM_REF, ref(null)), i = inject(DI_FORM_MODEL, computed(() => ({}))), {
|
8954
|
+
transformDatas: s
|
9010
8955
|
} = _useServices$2(e), l = ref(!1), u = ref(!1), c = ref([]), g = computed(() => a.store.getVarPossibility(a.formID, e.kgVarName)), p = computed(() => a.store.getVariableConfig(a.formID, e.kgVarName)), b = computed(() => {
|
9011
8956
|
var E;
|
9012
8957
|
let C = KgVarUtil.parseCommandParameter((E = g.value) == null ? void 0 : E.cmd_prm);
|
9013
8958
|
return C = mapValues(C, (T) => {
|
9014
8959
|
if (typeof T == "string" && T.startsWith("{") && T.endsWith("}")) {
|
9015
8960
|
const I = T.slice(1, -1);
|
9016
|
-
if (
|
9017
|
-
return
|
8961
|
+
if (i.value && I in i.value)
|
8962
|
+
return i.value[I];
|
9018
8963
|
}
|
9019
8964
|
return T;
|
9020
8965
|
}), C;
|
@@ -9079,10 +9024,10 @@ const KgFormItemCheckboxGroup = defineComponent({
|
|
9079
9024
|
else
|
9080
9025
|
switch (!0) {
|
9081
9026
|
case isArrayLike(k):
|
9082
|
-
c.value =
|
9027
|
+
c.value = s(k);
|
9083
9028
|
break;
|
9084
9029
|
case (k && "total" in k && "records" in k):
|
9085
|
-
c.value =
|
9030
|
+
c.value = s(k.records);
|
9086
9031
|
break;
|
9087
9032
|
}
|
9088
9033
|
if (c.value.length > 0) {
|
@@ -9161,17 +9106,17 @@ const KgFormItemCheckboxGroup = defineComponent({
|
|
9161
9106
|
attrs: n
|
9162
9107
|
}) {
|
9163
9108
|
const a = inject("$dayjs", dayjs), o = computed(() => {
|
9164
|
-
let
|
9165
|
-
if (!!
|
9166
|
-
return
|
9109
|
+
let s = e.value;
|
9110
|
+
if (!!s && (a.isDayjs(s) || (s = a(s)), !!a.isDayjs(s)))
|
9111
|
+
return s;
|
9167
9112
|
});
|
9168
|
-
function s
|
9169
|
-
const l =
|
9113
|
+
function i(s) {
|
9114
|
+
const l = s ? a(s) : void 0;
|
9170
9115
|
r("update:value", l), r("kgChange", l);
|
9171
9116
|
}
|
9172
9117
|
return () => createVNode(DatePicker, {
|
9173
9118
|
value: o.value,
|
9174
|
-
"onUpdate:value":
|
9119
|
+
"onUpdate:value": i,
|
9175
9120
|
id: n.id,
|
9176
9121
|
disabled: e.kgDisabled,
|
9177
9122
|
placeholder: e.kgPlaceholder,
|
@@ -9189,17 +9134,17 @@ const KgFormItemCheckboxGroup = defineComponent({
|
|
9189
9134
|
attrs: n
|
9190
9135
|
}) {
|
9191
9136
|
const a = inject("$dayjs", dayjs), o = computed(() => {
|
9192
|
-
let
|
9193
|
-
if (!!
|
9194
|
-
return
|
9137
|
+
let s = e.value;
|
9138
|
+
if (!!s && !(!isArray$1(s) || s.length !== 2) && ((!a.isDayjs(s[0]) || !a.isDayjs(s[1])) && (s = [a(s[0]), a(s[1])]), !(!a.isDayjs(s[0]) || !a.isDayjs(s[1]))))
|
9139
|
+
return s;
|
9195
9140
|
});
|
9196
|
-
function s
|
9197
|
-
const l =
|
9141
|
+
function i(s) {
|
9142
|
+
const l = s ? [a(s[0]), a(s[1])] : void 0;
|
9198
9143
|
r("update:value", l), r("kgChange", l);
|
9199
9144
|
}
|
9200
9145
|
return () => createVNode(DatePicker.RangePicker, {
|
9201
9146
|
value: o.value,
|
9202
|
-
"onUpdate:value":
|
9147
|
+
"onUpdate:value": i,
|
9203
9148
|
id: n.id,
|
9204
9149
|
disabled: e.kgDisabled,
|
9205
9150
|
placeholder: [e.kgPlaceholder, e.kgPlaceholder],
|
@@ -9259,11 +9204,11 @@ const KgFormItemCheckboxGroup = defineComponent({
|
|
9259
9204
|
function _useServices$1(e) {
|
9260
9205
|
const t = useKgVar(), r = computed(() => t.store.getVarPossibility(t.formID, e.kgVarName));
|
9261
9206
|
function n(a) {
|
9262
|
-
var
|
9207
|
+
var s, l, u, c;
|
9263
9208
|
if (!a)
|
9264
9209
|
return [];
|
9265
|
-
const o = (l = (
|
9266
|
-
switch (
|
9210
|
+
const o = (l = (s = r.value) == null ? void 0 : s.val_clm) != null ? l : "", i = (c = (u = r.value) == null ? void 0 : u.val_data_type) != null ? c : "string";
|
9211
|
+
switch (i) {
|
9267
9212
|
case KG_POSSIBILITY_DATA_TYPE.STRING:
|
9268
9213
|
a.forEach((g) => {
|
9269
9214
|
g[o] = String(g[o]);
|
@@ -9272,7 +9217,7 @@ function _useServices$1(e) {
|
|
9272
9217
|
case KG_POSSIBILITY_DATA_TYPE.NUMBER:
|
9273
9218
|
a.forEach((g) => {
|
9274
9219
|
let p = Number(g[o]);
|
9275
|
-
Number.isNaN(p) && (p = g[o], Logger.error(`| \u6570\u636E\u6709\u8BEF | \u65E0\u6CD5\u5C06 ${g[o]} \u8F6C\u6362\u4E3A ${
|
9220
|
+
Number.isNaN(p) && (p = g[o], Logger.error(`| \u6570\u636E\u6709\u8BEF | \u65E0\u6CD5\u5C06 ${g[o]} \u8F6C\u6362\u4E3A ${i} \u7C7B\u578B`, {
|
9276
9221
|
frm_id: t.formID,
|
9277
9222
|
var_nam: e.kgVarName,
|
9278
9223
|
VarPossibility: r.value
|
@@ -9282,7 +9227,7 @@ function _useServices$1(e) {
|
|
9282
9227
|
case KG_POSSIBILITY_DATA_TYPE.BOOLEAN:
|
9283
9228
|
a.forEach((g) => {
|
9284
9229
|
let p;
|
9285
|
-
String(g[o]).toLowerCase() === "true" ? p = !0 : String(g[o]).toLowerCase() === "false" ? p = !1 : (p = g[o], Logger.error(`| \u6570\u636E\u6709\u8BEF | \u65E0\u6CD5\u5C06 ${g[o]} \u8F6C\u6362\u4E3A ${
|
9230
|
+
String(g[o]).toLowerCase() === "true" ? p = !0 : String(g[o]).toLowerCase() === "false" ? p = !1 : (p = g[o], Logger.error(`| \u6570\u636E\u6709\u8BEF | \u65E0\u6CD5\u5C06 ${g[o]} \u8F6C\u6362\u4E3A ${i} \u7C7B\u578B`, {
|
9286
9231
|
frm_id: t.formID,
|
9287
9232
|
var_nam: e.kgVarName,
|
9288
9233
|
VarPossibility: r.value
|
@@ -9306,9 +9251,9 @@ const KgFormItemSelect = defineComponent({
|
|
9306
9251
|
}) {
|
9307
9252
|
const n = useKgVar(), a = inject(DI_FORM_MODEL, computed(() => ({}))), {
|
9308
9253
|
transformDatas: o
|
9309
|
-
} = _useServices$1(e),
|
9254
|
+
} = _useServices$1(e), i = ref([]), s = computed(() => n.store.getVarPossibility(n.formID, e.kgVarName)), l = computed(() => {
|
9310
9255
|
var b;
|
9311
|
-
let p = KgVarUtil.parseCommandParameter((b =
|
9256
|
+
let p = KgVarUtil.parseCommandParameter((b = s.value) == null ? void 0 : b.cmd_prm);
|
9312
9257
|
return p = mapValues(p, (m) => {
|
9313
9258
|
var v, _;
|
9314
9259
|
if (typeof m == "string" && m.startsWith("{") && m.endsWith("}")) {
|
@@ -9325,13 +9270,13 @@ const KgFormItemSelect = defineComponent({
|
|
9325
9270
|
});
|
9326
9271
|
watch(l, () => {
|
9327
9272
|
var p;
|
9328
|
-
(p =
|
9273
|
+
(p = s.value) != null && p.id && u();
|
9329
9274
|
}, {
|
9330
9275
|
immediate: !0
|
9331
9276
|
});
|
9332
9277
|
async function u() {
|
9333
9278
|
var y, C, E, T, I, k, w, M;
|
9334
|
-
const p = (y =
|
9279
|
+
const p = (y = s.value) == null ? void 0 : y.cmd, b = (E = (C = s.value) == null ? void 0 : C.cmd_method) != null ? E : "GET", m = (I = (T = s.value) == null ? void 0 : T.val_clm) != null ? I : "", v = (w = (k = s.value) == null ? void 0 : k.lbl_clm) != null ? w : "";
|
9335
9280
|
if (!p || !m || !v) {
|
9336
9281
|
Logger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF.", {
|
9337
9282
|
frm_id: n.formID,
|
@@ -9352,18 +9297,18 @@ const KgFormItemSelect = defineComponent({
|
|
9352
9297
|
} catch {
|
9353
9298
|
}
|
9354
9299
|
if (!isObjectLike(_))
|
9355
|
-
|
9300
|
+
i.value = [];
|
9356
9301
|
else
|
9357
9302
|
switch (!0) {
|
9358
9303
|
case isArrayLike(_):
|
9359
|
-
|
9304
|
+
i.value = o(_);
|
9360
9305
|
break;
|
9361
9306
|
case (_ && "total" in _ && "records" in _):
|
9362
|
-
|
9307
|
+
i.value = o(_.records);
|
9363
9308
|
break;
|
9364
9309
|
}
|
9365
|
-
if (
|
9366
|
-
const A =
|
9310
|
+
if (i.value.length > 0) {
|
9311
|
+
const A = i.value[0];
|
9367
9312
|
(!(m in A) || !(v in A)) && Logger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF, \u6570\u636E\u5217(val_clm)\u6216\u663E\u793A\u5217(lbl_clm)\u6709\u8BEF.", {
|
9368
9313
|
frm_id: n.formID,
|
9369
9314
|
var_nam: e.kgVarName,
|
@@ -9373,13 +9318,13 @@ const KgFormItemSelect = defineComponent({
|
|
9373
9318
|
\u6240\u6709\u5217: Object.keys(A)
|
9374
9319
|
});
|
9375
9320
|
}
|
9376
|
-
r("kgSelectDatasChange",
|
9321
|
+
r("kgSelectDatasChange", i.value), i.value.find((A) => A[m] === e.value) || r("update:value", void 0);
|
9377
9322
|
}
|
9378
9323
|
function c(p) {
|
9379
9324
|
var m;
|
9380
|
-
const b = (m = toRaw(
|
9325
|
+
const b = (m = toRaw(i.value.find((v) => {
|
9381
9326
|
var _, y;
|
9382
|
-
return v[(y = (_ =
|
9327
|
+
return v[(y = (_ = s.value) == null ? void 0 : _.val_clm) != null ? y : ""] === p;
|
9383
9328
|
}))) != null ? m : null;
|
9384
9329
|
r("kgSelectChange", b), a.value[`${e.kgVarName}_obj`] = b;
|
9385
9330
|
}
|
@@ -9399,19 +9344,19 @@ const KgFormItemSelect = defineComponent({
|
|
9399
9344
|
class: "kg-form-item-select",
|
9400
9345
|
dropdownClassName: "kg-form-item-select-dropdown",
|
9401
9346
|
style: "width: 100%",
|
9402
|
-
"kg-cmd": (p =
|
9403
|
-
"kg-val-clm": (b =
|
9404
|
-
"kg-lbl-clm": (m =
|
9347
|
+
"kg-cmd": (p = s.value) == null ? void 0 : p.cmd,
|
9348
|
+
"kg-val-clm": (b = s.value) == null ? void 0 : b.val_clm,
|
9349
|
+
"kg-lbl-clm": (m = s.value) == null ? void 0 : m.lbl_clm
|
9405
9350
|
}, {
|
9406
|
-
default: () =>
|
9351
|
+
default: () => i.value.map((v) => {
|
9407
9352
|
var _, y, C, E;
|
9408
9353
|
return createVNode(Select.Option, {
|
9409
|
-
"kg-value": v[(y = (_ =
|
9410
|
-
value: v[(E = (C =
|
9354
|
+
"kg-value": v[(y = (_ = s.value) == null ? void 0 : _.val_clm) != null ? y : ""],
|
9355
|
+
value: v[(E = (C = s.value) == null ? void 0 : C.val_clm) != null ? E : ""]
|
9411
9356
|
}, {
|
9412
9357
|
default: () => {
|
9413
9358
|
var T, I;
|
9414
|
-
return [v[(I = (T =
|
9359
|
+
return [v[(I = (T = s.value) == null ? void 0 : T.lbl_clm) != null ? I : ""]];
|
9415
9360
|
}
|
9416
9361
|
});
|
9417
9362
|
}),
|
@@ -9445,10 +9390,10 @@ function _useRules(e) {
|
|
9445
9390
|
return {
|
9446
9391
|
rules: computed(() => {
|
9447
9392
|
var l, u, c, g, p, b, m, v;
|
9448
|
-
let
|
9393
|
+
let s = [];
|
9449
9394
|
switch (e.kgContext) {
|
9450
9395
|
case KG_FORM_CONTEXT.SEARCH:
|
9451
|
-
((l = n.value) == null ? void 0 : l.rqr_flg) === 1 &&
|
9396
|
+
((l = n.value) == null ? void 0 : l.rqr_flg) === 1 && s.push({
|
9452
9397
|
required: !0,
|
9453
9398
|
message: t.t("kg.required")
|
9454
9399
|
});
|
@@ -9456,25 +9401,25 @@ function _useRules(e) {
|
|
9456
9401
|
case KG_FORM_CONTEXT.SUBMIT:
|
9457
9402
|
switch (!0) {
|
9458
9403
|
case r.isCreating.value:
|
9459
|
-
((u = o.value) == null ? void 0 : u.crt_rqr_flg) === 1 &&
|
9404
|
+
((u = o.value) == null ? void 0 : u.crt_rqr_flg) === 1 && s.push({
|
9460
9405
|
required: !0,
|
9461
9406
|
message: t.t("kg.required")
|
9462
9407
|
});
|
9463
9408
|
break;
|
9464
9409
|
case r.isUpdating.value:
|
9465
|
-
((c = o.value) == null ? void 0 : c.upt_rqr_flg) === 1 &&
|
9410
|
+
((c = o.value) == null ? void 0 : c.upt_rqr_flg) === 1 && s.push({
|
9466
9411
|
required: !0,
|
9467
9412
|
message: t.t("kg.required")
|
9468
9413
|
});
|
9469
9414
|
break;
|
9470
9415
|
case r.isCopying.value:
|
9471
|
-
((g = o.value) == null ? void 0 : g.cpy_rqr_flg) === 1 &&
|
9416
|
+
((g = o.value) == null ? void 0 : g.cpy_rqr_flg) === 1 && s.push({
|
9472
9417
|
required: !0,
|
9473
9418
|
message: t.t("kg.required")
|
9474
9419
|
});
|
9475
9420
|
break;
|
9476
9421
|
case r.isDeleting.value:
|
9477
|
-
((p = o.value) == null ? void 0 : p.del_rqr_flg) === 1 &&
|
9422
|
+
((p = o.value) == null ? void 0 : p.del_rqr_flg) === 1 && s.push({
|
9478
9423
|
required: !0,
|
9479
9424
|
message: t.t("kg.required")
|
9480
9425
|
});
|
@@ -9485,14 +9430,14 @@ function _useRules(e) {
|
|
9485
9430
|
switch ((b = a.value) == null ? void 0 : b.data_type) {
|
9486
9431
|
case KG_VAR_INPUT__DATA_TYPE.NUMBER:
|
9487
9432
|
const _ = (m = a.value) == null ? void 0 : m.min;
|
9488
|
-
isNil(_) || (((v = a.value) == null ? void 0 : v.min_include_flg) === 1 ?
|
9433
|
+
isNil(_) || (((v = a.value) == null ? void 0 : v.min_include_flg) === 1 ? s.push({
|
9489
9434
|
validator: (y, C) => Number(C) < _ ? Promise.reject(t.t("kg.KgFormItem.mustGTE", [_])) : Promise.resolve()
|
9490
|
-
}) :
|
9435
|
+
}) : s.push({
|
9491
9436
|
validator: (y, C) => Number(C) <= _ ? Promise.reject(t.t("kg.KgFormItem.mustGT", [_])) : Promise.resolve()
|
9492
9437
|
}));
|
9493
9438
|
break;
|
9494
9439
|
}
|
9495
|
-
return e.kgRules && (
|
9440
|
+
return e.kgRules && (s = [...s, ...e.kgRules]), s;
|
9496
9441
|
})
|
9497
9442
|
};
|
9498
9443
|
}
|
@@ -9505,7 +9450,7 @@ const KgFormItem = defineComponent({
|
|
9505
9450
|
emit: r
|
9506
9451
|
}) {
|
9507
9452
|
provide(KG_DI_VAR_NAME, e.kgVarName), provide(DI_ON_KG_LOOKUP_BEFORE_OK, e.onKgLookupBeforeOk), useKg();
|
9508
|
-
const n = useKgVar(), a = inject(DI_FORM_MODEL, computed(() => ({}))), o = inject(DI_FORM_REF, ref(null)),
|
9453
|
+
const n = useKgVar(), a = inject(DI_FORM_MODEL, computed(() => ({}))), o = inject(DI_FORM_REF, ref(null)), i = computed(() => n.store.getVarLookup(n.formID, e.kgVarName)), s = computed(() => n.store.getVariableConfig(n.formID, e.kgVarName)), l = computed(() => n.store.getVarProfileDetail(n.formID, e.kgVarName)), u = computed(() => n.store.getVarSubmitField(n.formID, e.kgVarName)), {
|
9509
9454
|
rules: c
|
9510
9455
|
} = _useRules(e), g = computed(() => {
|
9511
9456
|
var A, O, B, $, P;
|
@@ -9593,7 +9538,7 @@ const KgFormItem = defineComponent({
|
|
9593
9538
|
}), v = computed(() => {
|
9594
9539
|
var A, O, B, $;
|
9595
9540
|
let M = "kg-form-item";
|
9596
|
-
switch (
|
9541
|
+
switch (i.value && (M += " kg-form-item-lookup"), e.kgContext) {
|
9597
9542
|
case KG_FORM_CONTEXT.SEARCH:
|
9598
9543
|
switch (!0) {
|
9599
9544
|
case ((A = l.value) == null ? void 0 : A.vis_flg) === 0:
|
@@ -9647,7 +9592,7 @@ const KgFormItem = defineComponent({
|
|
9647
9592
|
return M;
|
9648
9593
|
}), y = computed(() => {
|
9649
9594
|
var M;
|
9650
|
-
return (M =
|
9595
|
+
return (M = s.value) == null ? void 0 : M.ctrl_typ;
|
9651
9596
|
}), C = computed(() => encodeURIComponent(`${e.kgContext}~${n.formID}~${e.kgVarName}`)), E = ref(null);
|
9652
9597
|
function T(M, A) {
|
9653
9598
|
var O;
|
@@ -9659,7 +9604,7 @@ const KgFormItem = defineComponent({
|
|
9659
9604
|
varName: e.kgVarName,
|
9660
9605
|
props: _,
|
9661
9606
|
model: a,
|
9662
|
-
varConfig:
|
9607
|
+
varConfig: s,
|
9663
9608
|
varProfileDetail: l,
|
9664
9609
|
varSubmitField: u
|
9665
9610
|
};
|
@@ -9701,11 +9646,11 @@ const KgFormItem = defineComponent({
|
|
9701
9646
|
}
|
9702
9647
|
function w() {
|
9703
9648
|
var M;
|
9704
|
-
return !
|
9649
|
+
return !i.value || !((M = i.value) != null && M.lkp_id) ? null : createVNode(Form.ItemRest, null, {
|
9705
9650
|
default: () => [createVNode(KgFormItemAddonLookup, {
|
9706
9651
|
kgDisabled: g.value,
|
9707
9652
|
onKgOk: T,
|
9708
|
-
kgLookupID:
|
9653
|
+
kgLookupID: i.value.lkp_id
|
9709
9654
|
}, null)]
|
9710
9655
|
});
|
9711
9656
|
}
|
@@ -9715,8 +9660,8 @@ const KgFormItem = defineComponent({
|
|
9715
9660
|
ref: E,
|
9716
9661
|
"kg-frm-id": n.formID,
|
9717
9662
|
"kg-var-nam": e.kgVarName,
|
9718
|
-
"kg-lkp-id": (M =
|
9719
|
-
"kg-lkp-ret-fld": (A =
|
9663
|
+
"kg-lkp-id": (M = i.value) == null ? void 0 : M.lkp_id,
|
9664
|
+
"kg-lkp-ret-fld": (A = i.value) == null ? void 0 : A.ret_fld,
|
9720
9665
|
span: b.value,
|
9721
9666
|
class: v.value,
|
9722
9667
|
style: m.value
|
@@ -9747,17 +9692,17 @@ const KgFormItem = defineComponent({
|
|
9747
9692
|
...e
|
9748
9693
|
}));
|
9749
9694
|
return provide(DI_FORM_MODEL, computed(() => e.model)), provide(DI_FORM_REF, a), r({
|
9750
|
-
resetFields(
|
9751
|
-
var
|
9752
|
-
return (
|
9695
|
+
resetFields(i) {
|
9696
|
+
var s;
|
9697
|
+
return (s = a.value) == null ? void 0 : s.resetFields(i);
|
9753
9698
|
},
|
9754
|
-
clearValidate(
|
9755
|
-
var
|
9756
|
-
return (
|
9699
|
+
clearValidate(i) {
|
9700
|
+
var s;
|
9701
|
+
return (s = a.value) == null ? void 0 : s.clearValidate(i);
|
9757
9702
|
},
|
9758
|
-
validate(
|
9703
|
+
validate(i, s) {
|
9759
9704
|
var l;
|
9760
|
-
return (l = a.value) == null ? void 0 : l.validate(
|
9705
|
+
return (l = a.value) == null ? void 0 : l.validate(i, s);
|
9761
9706
|
}
|
9762
9707
|
}), () => createVNode(Form, mergeProps(o.value, {
|
9763
9708
|
ref: a
|
@@ -9958,11 +9903,11 @@ function useKgSubmit(e) {
|
|
9958
9903
|
return isFunction$2(m) ? (r.addEventListener(t.formID, "close", m), onUnmounted(() => r.removeEventListener(t.formID, "close", m)), () => r.removeEventListener(t.formID, "close", m)) : () => {
|
9959
9904
|
};
|
9960
9905
|
}
|
9961
|
-
function
|
9906
|
+
function i(m) {
|
9962
9907
|
return isFunction$2(m) ? (r.addEventListener(t.formID, "beforeOk", m), onUnmounted(() => r.removeEventListener(t.formID, "beforeOk", m)), () => r.removeEventListener(t.formID, "beforeOk", m)) : () => {
|
9963
9908
|
};
|
9964
9909
|
}
|
9965
|
-
function
|
9910
|
+
function s(m) {
|
9966
9911
|
return isFunction$2(m) ? (r.addEventListener(t.formID, "afterValidate", m), onUnmounted(() => r.removeEventListener(t.formID, "afterValidate", m)), () => r.removeEventListener(t.formID, "afterValidate", m)) : () => {
|
9967
9912
|
};
|
9968
9913
|
}
|
@@ -10016,8 +9961,8 @@ function useKgSubmit(e) {
|
|
10016
9961
|
rules: b,
|
10017
9962
|
displayType: c,
|
10018
9963
|
onOpen: a,
|
10019
|
-
onBeforeOk:
|
10020
|
-
onAfterValidate:
|
9964
|
+
onBeforeOk: i,
|
9965
|
+
onAfterValidate: s,
|
10021
9966
|
onBeforeRequest: l,
|
10022
9967
|
onOk: u,
|
10023
9968
|
onClose: o
|
@@ -10038,25 +9983,25 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
|
|
10038
9983
|
emit: r,
|
10039
9984
|
attrs: n
|
10040
9985
|
}) {
|
10041
|
-
const a = useKg(), o = useKgVar(e.hostFormID),
|
10042
|
-
let
|
9986
|
+
const a = useKg(), o = useKgVar(e.hostFormID), i = useKgVar(FORM_ID__VAR_SUBMIT_CONFIG, !0, o.store.getFormLevel(o.formID) + 2);
|
9987
|
+
let s = null;
|
10043
9988
|
const l = useKgSubmit(FORM_ID__VAR_SUBMIT_CONFIG);
|
10044
9989
|
return l.onOpen(async ({
|
10045
9990
|
model: u
|
10046
9991
|
}) => {
|
10047
9992
|
const c = o.store.getVarSubmitConfig(o.formID);
|
10048
|
-
return
|
9993
|
+
return s = watch(u, (g) => {
|
10049
9994
|
var p, b, m, v, _, y, C, E, T, I, k, w;
|
10050
9995
|
g && (g.id = (p = c == null ? void 0 : c.id) != null ? p : null, g.frm_id = o.formID, g.resizable_flg = (b = c == null ? void 0 : c.resizable_flg) != null ? b : 1, g.fullscreen_flg = (m = c == null ? void 0 : c.fullscreen_flg) != null ? m : 1, g.dft_fullscreen_flg = (v = c == null ? void 0 : c.dft_fullscreen_flg) != null ? v : 0, g.responsive_flg = (_ = c == null ? void 0 : c.responsive_flg) != null ? _ : 1, g.max_width = (y = c == null ? void 0 : c.max_width) != null ? y : DEFAULT_MAX_WIDTH, g.min_width = (C = c == null ? void 0 : c.min_width) != null ? C : DEFAULT_MIN_WIDTH, g.dft_width = (E = c == null ? void 0 : c.dft_width) != null ? E : DEFAULT_WIDTH, g.layout = (T = c == null ? void 0 : c.layout) != null ? T : KG_VAR_SUBMIT__LAYOUT.VERTICAL, g.label_col = (I = c == null ? void 0 : c.label_col) != null ? I : DEFAULT_LABEL_COL_FOR_SPAN, g.label_col_unit = (k = c == null ? void 0 : c.label_col_unit) != null ? k : KG_WIDTH_UNIT.SPAN, g.display_type = (w = c == null ? void 0 : c.display_type) != null ? w : KG_VAR_SUBMIT__DISPLAY_TYPE.DRAWER);
|
10051
9996
|
}, {
|
10052
9997
|
immediate: !0
|
10053
9998
|
}), !1;
|
10054
|
-
}), l.onClose(async () => (
|
9999
|
+
}), l.onClose(async () => (s == null || s(), r("kgClose"), !1)), l.onBeforeOk(async ({
|
10055
10000
|
rules: u,
|
10056
10001
|
model: c
|
10057
10002
|
}) => (u.value = {}, c.value && c.value.label_col_unit === KG_WIDTH_UNIT.SPAN && !range$1(1, 25).includes(c.value.label_col) && (u.value.label_col = [{
|
10058
10003
|
validator: () => Promise.reject(a.t("kg.KgSubmitHeaderVarSubmitConfig.invalidWidthForSpan"))
|
10059
|
-
}]), !1)), l.onOk(async () => (o.store.retrieve(o.formID), !1)),
|
10004
|
+
}]), !1)), l.onOk(async () => (o.store.retrieve(o.formID), !1)), i.store.setIsUpdating(FORM_ID__VAR_SUBMIT_CONFIG, !0, !0), () => createVNode(KgSubmit, {
|
10060
10005
|
kgShowConfigButton: !1
|
10061
10006
|
}, null);
|
10062
10007
|
}
|
@@ -10086,7 +10031,7 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
|
|
10086
10031
|
}) {
|
10087
10032
|
const a = useKgVar(), o = useKgSubmit();
|
10088
10033
|
useKgSubmit(FORM_ID__VAR_SUBMIT_CONFIG).onClose(async () => (c.value = !1, !1));
|
10089
|
-
const
|
10034
|
+
const s = computed(() => a.store.getVarSubmitConfig(a.formID)), l = computed(() => o.store.isLoading(a.formID)), u = computed(() => !!a.store.isCreatingRequesting(a.formID) || !!a.store.isUpdatingRequesting(a.formID) || !!a.store.isCopyingRequesting(a.formID)), c = ref(!1);
|
10090
10035
|
function g() {
|
10091
10036
|
r("update:isFullscreen", !e.isFullscreen);
|
10092
10037
|
}
|
@@ -10098,7 +10043,7 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
|
|
10098
10043
|
}
|
10099
10044
|
function m() {
|
10100
10045
|
var y;
|
10101
|
-
return e.kgShowFullscreenButton === !1 || ((y =
|
10046
|
+
return e.kgShowFullscreenButton === !1 || ((y = s.value) == null ? void 0 : y.fullscreen_flg) === 0 ? null : createVNode(Button, {
|
10102
10047
|
onClick: g,
|
10103
10048
|
class: "kg-submit--btn-fullscreen"
|
10104
10049
|
}, {
|
@@ -10129,7 +10074,7 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
|
|
10129
10074
|
}
|
10130
10075
|
}), DEFAULT_MIN_WIDTH = 300, DEFAULT_MAX_WIDTH = 1182, DEFAULT_WIDTH = 594, DEFAULT_LAYOUT = "vertical", DEFAULT_LABEL_COL_FOR_SPAN = 4, DEFAULT_LABEL_COL_FOR_PX = 100;
|
10131
10076
|
function _useFormModel() {
|
10132
|
-
const e = inject("$dayjs", dayjs), t = useKgVar(), r = useKgTable(), n = useKgSubmit(), a = computed(() => t.store.getVarSubmitFieldsForCreate(t.formID)), o = computed(() => t.store.getVarSubmitFieldsForUpdate(t.formID)),
|
10077
|
+
const e = inject("$dayjs", dayjs), t = useKgVar(), r = useKgTable(), n = useKgSubmit(), a = computed(() => t.store.getVarSubmitFieldsForCreate(t.formID)), o = computed(() => t.store.getVarSubmitFieldsForUpdate(t.formID)), i = computed(() => t.store.getVarSubmitFieldsForCopy(t.formID)), s = computed(() => t.store.getVarSubmitFieldsForDelete(t.formID)), l = computed(() => {
|
10133
10078
|
var c, g, p, b;
|
10134
10079
|
switch (!0) {
|
10135
10080
|
case t.isCreating.value:
|
@@ -10137,9 +10082,9 @@ function _useFormModel() {
|
|
10137
10082
|
case t.isUpdating.value:
|
10138
10083
|
return (g = o.value) != null ? g : [];
|
10139
10084
|
case t.isCopying.value:
|
10140
|
-
return (p =
|
10085
|
+
return (p = i.value) != null ? p : [];
|
10141
10086
|
case t.isDeleting.value:
|
10142
|
-
return (b =
|
10087
|
+
return (b = s.value) != null ? b : [];
|
10143
10088
|
}
|
10144
10089
|
return [];
|
10145
10090
|
}), u = ref({});
|
@@ -10176,23 +10121,23 @@ function _useResizeObserver$1(e) {
|
|
10176
10121
|
let t = null;
|
10177
10122
|
return watch(e, (r) => {
|
10178
10123
|
r && (t = new ResizeObserver((n) => {
|
10179
|
-
var o,
|
10180
|
-
const a = (
|
10124
|
+
var o, i;
|
10125
|
+
const a = (i = (o = n[0].borderBoxSize[0]) == null ? void 0 : o.inlineSize) != null ? i : 0;
|
10181
10126
|
switch (!0) {
|
10182
10127
|
case a < 570:
|
10183
|
-
r.classList.remove(...[2, 3, 4, 5].map((
|
10128
|
+
r.classList.remove(...[2, 3, 4, 5].map((s) => `kg-submit--col-${s}`)), r.classList.add("kg-submit--col-1");
|
10184
10129
|
break;
|
10185
10130
|
case (a >= 570 && a < 864):
|
10186
|
-
r.classList.remove(...[1, 3, 4, 5].map((
|
10131
|
+
r.classList.remove(...[1, 3, 4, 5].map((s) => `kg-submit--col-${s}`)), r.classList.add("kg-submit--col-2");
|
10187
10132
|
break;
|
10188
10133
|
case (a >= 864 && a < 1158):
|
10189
|
-
r.classList.remove(...[1, 2, 4, 5].map((
|
10134
|
+
r.classList.remove(...[1, 2, 4, 5].map((s) => `kg-submit--col-${s}`)), r.classList.add("kg-submit--col-3");
|
10190
10135
|
break;
|
10191
10136
|
case (a >= 1158 && a < 1452):
|
10192
|
-
r.classList.remove(...[1, 2, 3, 5].map((
|
10137
|
+
r.classList.remove(...[1, 2, 3, 5].map((s) => `kg-submit--col-${s}`)), r.classList.add("kg-submit--col-4");
|
10193
10138
|
break;
|
10194
10139
|
case a >= 1452:
|
10195
|
-
r.classList.remove(...[1, 2, 3, 4].map((
|
10140
|
+
r.classList.remove(...[1, 2, 3, 4].map((s) => `kg-submit--col-${s}`)), r.classList.add("kg-submit--col-5");
|
10196
10141
|
break;
|
10197
10142
|
}
|
10198
10143
|
}), t.observe(r));
|
@@ -10206,10 +10151,10 @@ function _useTitle() {
|
|
10206
10151
|
const e = useKg(), t = useKgVar(), r = computed(() => t.store.getVarButtonCreate(t.formID)), n = computed(() => t.store.getVarButtonUpdate(t.formID)), a = computed(() => t.store.getVarButtonCopy(t.formID)), o = computed(() => t.store.getVarButtonDelete(t.formID));
|
10207
10152
|
return {
|
10208
10153
|
title: computed(() => {
|
10209
|
-
var
|
10154
|
+
var s, l, u, c;
|
10210
10155
|
switch (!0) {
|
10211
10156
|
case t.isCreating.value: {
|
10212
|
-
const g = (
|
10157
|
+
const g = (s = r.value) == null ? void 0 : s.var_nam, p = t.t(g).value;
|
10213
10158
|
return g === p ? e.t("kg.create") : p;
|
10214
10159
|
}
|
10215
10160
|
case t.isUpdating.value: {
|
@@ -10234,8 +10179,8 @@ function _useClass(e, t) {
|
|
10234
10179
|
return {
|
10235
10180
|
getClass: computed(() => {
|
10236
10181
|
var l, u, c;
|
10237
|
-
let
|
10238
|
-
return t.isFullscreen && (
|
10182
|
+
let s = "kg-submit";
|
10183
|
+
return t.isFullscreen && (s += " kg-submit--fullscreen"), ((l = a.value) == null ? void 0 : l.responsive_flg) !== 0 && (s += " kg-submit--responsive"), n.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL ? s += " kg-submit--modal" : n.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && (s += " kg-submit--table"), r.isDeleting.value && ((c = (u = o.value) == null ? void 0 : u.length) != null ? c : 0) === 0 && (s += " kg-submit--delete-message"), e.kgClass && (s += ` ${e.kgClass}`), s;
|
10239
10184
|
})
|
10240
10185
|
};
|
10241
10186
|
}
|
@@ -10245,15 +10190,15 @@ function _useLayout() {
|
|
10245
10190
|
getLayout: computed(() => {
|
10246
10191
|
var u, c, g, p, b;
|
10247
10192
|
let n = "vertical";
|
10248
|
-
const a = (u = t.value) == null ? void 0 : u.layout, o = (c = t.value) == null ? void 0 : c.crt_layout,
|
10193
|
+
const a = (u = t.value) == null ? void 0 : u.layout, o = (c = t.value) == null ? void 0 : c.crt_layout, i = (g = t.value) == null ? void 0 : g.upt_layout, s = (p = t.value) == null ? void 0 : p.cpy_layout, l = (b = t.value) == null ? void 0 : b.del_layout;
|
10249
10194
|
switch (!0) {
|
10250
10195
|
case (e.isCreating.value && (o === "horizontal" || !o && a === "horizontal")):
|
10251
10196
|
n = "horizontal";
|
10252
10197
|
break;
|
10253
|
-
case (e.isUpdating.value && (
|
10198
|
+
case (e.isUpdating.value && (i === "horizontal" || !i && a === "horizontal")):
|
10254
10199
|
n = "horizontal";
|
10255
10200
|
break;
|
10256
|
-
case (e.isCopying.value && (
|
10201
|
+
case (e.isCopying.value && (s === "horizontal" || !s && a === "horizontal")):
|
10257
10202
|
n = "horizontal";
|
10258
10203
|
break;
|
10259
10204
|
case (e.isDeleting.value && (l === "horizontal" || !l && a === "horizontal")):
|
@@ -10271,7 +10216,7 @@ function _useDefaultWidth() {
|
|
10271
10216
|
var u, c, g, p, b;
|
10272
10217
|
if (!t.value)
|
10273
10218
|
return 0;
|
10274
|
-
const n = (u = t.value) == null ? void 0 : u.dft_width, a = (c = t.value) == null ? void 0 : c.crt_dft_width, o = (g = t.value) == null ? void 0 : g.upt_dft_width,
|
10219
|
+
const n = (u = t.value) == null ? void 0 : u.dft_width, a = (c = t.value) == null ? void 0 : c.crt_dft_width, o = (g = t.value) == null ? void 0 : g.upt_dft_width, i = (p = t.value) == null ? void 0 : p.cpy_dft_width, s = (b = t.value) == null ? void 0 : b.del_dft_width;
|
10275
10220
|
let l = n || DEFAULT_WIDTH;
|
10276
10221
|
switch (!0) {
|
10277
10222
|
case (e.isCreating.value && !!a):
|
@@ -10280,12 +10225,12 @@ function _useDefaultWidth() {
|
|
10280
10225
|
case (e.isUpdating.value && !!o):
|
10281
10226
|
l = o;
|
10282
10227
|
break;
|
10283
|
-
case (e.isCopying.value && !!
|
10284
|
-
l = s;
|
10285
|
-
break;
|
10286
|
-
case (e.isDeleting.value && !!i):
|
10228
|
+
case (e.isCopying.value && !!i):
|
10287
10229
|
l = i;
|
10288
10230
|
break;
|
10231
|
+
case (e.isDeleting.value && !!s):
|
10232
|
+
l = s;
|
10233
|
+
break;
|
10289
10234
|
}
|
10290
10235
|
return l;
|
10291
10236
|
})
|
@@ -10307,11 +10252,11 @@ const getProps$n = () => ({
|
|
10307
10252
|
setup(e, {
|
10308
10253
|
attrs: t
|
10309
10254
|
}) {
|
10310
|
-
const r = inject("$dayjs", dayjs), n = useKg(), a = useKgVar(), o = useKgButton(),
|
10255
|
+
const r = inject("$dayjs", dayjs), n = useKg(), a = useKgVar(), o = useKgButton(), i = useKgTable(), s = useKgSubmit(), l = useKgSearch();
|
10311
10256
|
o.onSubmitSave(async () => (await Z(), !1)), o.onSubmitCancel(async () => (await z(), !1));
|
10312
10257
|
const u = inject(DI_KG_SLOTS, null);
|
10313
10258
|
_useFormModel(), KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE;
|
10314
|
-
const c = computed(() => a.isDeleting.value && M.value.length === 0 && A.value.length === 0), g = computed(() => a.store.getVarButtonCreate(a.formID)), p = computed(() => a.store.getVarButtonUpdate(a.formID)), b = computed(() => a.store.getVarButtonCopy(a.formID)), m = computed(() => a.store.getVarButtonDelete(a.formID)), v = computed(() =>
|
10259
|
+
const c = computed(() => a.isDeleting.value && M.value.length === 0 && A.value.length === 0), g = computed(() => a.store.getVarButtonCreate(a.formID)), p = computed(() => a.store.getVarButtonUpdate(a.formID)), b = computed(() => a.store.getVarButtonCopy(a.formID)), m = computed(() => a.store.getVarButtonDelete(a.formID)), v = computed(() => s.store.isLoading(a.formID)), _ = computed(() => a.store.getVarSubmitConfig(a.formID)), y = computed(() => a.store.getVarSubmitFieldsForCreateKey(a.formID)), C = computed(() => a.store.getVarSubmitFieldsForCreateNotKey(a.formID)), E = computed(() => a.store.getVarSubmitFieldsForUpdateKey(a.formID)), T = computed(() => a.store.getVarSubmitFieldsForUpdateNotKey(a.formID)), I = computed(() => a.store.getVarSubmitFieldsForCopyKey(a.formID)), k = computed(() => a.store.getVarSubmitFieldsForCopyNotKey(a.formID)), w = computed(() => a.store.getVarSubmitFieldsForDelete(a.formID)), M = computed(() => {
|
10315
10260
|
var G, W, J;
|
10316
10261
|
switch (!0) {
|
10317
10262
|
case a.isCreating.value:
|
@@ -10404,14 +10349,14 @@ const getProps$n = () => ({
|
|
10404
10349
|
});
|
10405
10350
|
function K() {
|
10406
10351
|
var W;
|
10407
|
-
const G = watch(
|
10408
|
-
J && Object.keys(J).length > 0 && (setTimeout(() => G()),
|
10352
|
+
const G = watch(s.model, (J) => {
|
10353
|
+
J && Object.keys(J).length > 0 && (setTimeout(() => G()), s.store.emit(a.formID, "open", {
|
10409
10354
|
isCreating: a.isCreating.value,
|
10410
10355
|
isUpdating: a.isUpdating.value,
|
10411
10356
|
isCopying: a.isCopying.value,
|
10412
10357
|
isDeleting: a.isDeleting.value,
|
10413
|
-
row:
|
10414
|
-
model:
|
10358
|
+
row: i.selectedRow.value,
|
10359
|
+
model: s.model
|
10415
10360
|
}));
|
10416
10361
|
}, {
|
10417
10362
|
immediate: !0
|
@@ -10419,7 +10364,7 @@ const getProps$n = () => ({
|
|
10419
10364
|
((W = _.value) == null ? void 0 : W.dft_fullscreen_flg) === 1 && !c.value && (Y.isFullscreen = !0);
|
10420
10365
|
}
|
10421
10366
|
function U() {
|
10422
|
-
P.value.kgWidth = ee.value, Y.isFullscreen = !1,
|
10367
|
+
P.value.kgWidth = ee.value, Y.isFullscreen = !1, s.store.emit(a.formID, "close");
|
10423
10368
|
}
|
10424
10369
|
function z() {
|
10425
10370
|
switch (!0) {
|
@@ -10440,29 +10385,29 @@ const getProps$n = () => ({
|
|
10440
10385
|
async function Z() {
|
10441
10386
|
var G, W;
|
10442
10387
|
try {
|
10443
|
-
if (await
|
10388
|
+
if (await s.store.emit(a.formID, "beforeOk", {
|
10444
10389
|
isCreating: a.isCreating.value,
|
10445
10390
|
isUpdating: a.isUpdating.value,
|
10446
10391
|
isCopying: a.isCopying.value,
|
10447
10392
|
isDeleting: a.isDeleting.value,
|
10448
|
-
row:
|
10449
|
-
rules:
|
10450
|
-
model:
|
10393
|
+
row: i.selectedRow.value,
|
10394
|
+
rules: s.rules,
|
10395
|
+
model: s.model
|
10451
10396
|
}))
|
10452
10397
|
return;
|
10453
10398
|
try {
|
10454
|
-
await ((G =
|
10399
|
+
await ((G = s.formRef.value) == null ? void 0 : G.validate());
|
10455
10400
|
} catch (ae) {
|
10456
10401
|
KgUtil.throwIfNotFormError(ae);
|
10457
10402
|
}
|
10458
|
-
if (await ((W =
|
10403
|
+
if (await ((W = s.formRef.value) == null ? void 0 : W.validate()), await s.store.emit(a.formID, "afterValidate", {
|
10459
10404
|
isCreating: a.isCreating.value,
|
10460
10405
|
isUpdating: a.isUpdating.value,
|
10461
10406
|
isCopying: a.isCopying.value,
|
10462
10407
|
isDeleting: a.isDeleting.value,
|
10463
|
-
row:
|
10464
|
-
rows:
|
10465
|
-
model:
|
10408
|
+
row: i.selectedRow.value,
|
10409
|
+
rows: i.selectedRows.value,
|
10410
|
+
model: s.model
|
10466
10411
|
}))
|
10467
10412
|
return;
|
10468
10413
|
switch (!0) {
|
@@ -10484,7 +10429,7 @@ const getProps$n = () => ({
|
|
10484
10429
|
}
|
10485
10430
|
}
|
10486
10431
|
async function X() {
|
10487
|
-
var W, J, re, ae, oe,
|
10432
|
+
var W, J, re, ae, oe, ie, se, le;
|
10488
10433
|
const G = (W = g.value) == null ? void 0 : W.cmd;
|
10489
10434
|
if (!G) {
|
10490
10435
|
Logger.error("[KgSubmit] '\u521B\u5EFA\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
|
@@ -10494,15 +10439,15 @@ const getProps$n = () => ({
|
|
10494
10439
|
}
|
10495
10440
|
a.store.setIsCreatingRequesting(a.formID, !0);
|
10496
10441
|
try {
|
10497
|
-
let te = ref(KgUtil.parseParams(KgVarUtil.parseCommandParameter((re = (J = g.value) == null ? void 0 : J.cmd_prm) != null ? re : ""), a.formID, r)), ue = ref(KgUtil.parseParams(toRaw(
|
10498
|
-
if (await
|
10442
|
+
let te = ref(KgUtil.parseParams(KgVarUtil.parseCommandParameter((re = (J = g.value) == null ? void 0 : J.cmd_prm) != null ? re : ""), a.formID, r)), ue = ref(KgUtil.parseParams(toRaw(s.model.value), a.formID, r));
|
10443
|
+
if (await s.store.emit(a.formID, "beforeRequest", {
|
10499
10444
|
isCreating: a.isCreating.value,
|
10500
10445
|
isUpdating: a.isUpdating.value,
|
10501
10446
|
isCopying: a.isCopying.value,
|
10502
10447
|
isDeleting: a.isDeleting.value,
|
10503
|
-
row:
|
10504
|
-
rows:
|
10505
|
-
model:
|
10448
|
+
row: i.selectedFirstRow.value,
|
10449
|
+
rows: i.selectedRows.value,
|
10450
|
+
model: s.model,
|
10506
10451
|
params: te,
|
10507
10452
|
data: ue
|
10508
10453
|
}))
|
@@ -10512,7 +10457,7 @@ const getProps$n = () => ({
|
|
10512
10457
|
url: G,
|
10513
10458
|
params: te.value,
|
10514
10459
|
data: ue.value
|
10515
|
-
}), ((
|
10460
|
+
}), ((ie = g.value) == null ? void 0 : ie.show_success_message_flg) !== 0 && message.success(N.title.value + n.t("kg.succeed")), s.store.emit(a.formID, "ok"), a.store.setIsCreating(a.formID, !1), (le = (se = l.search).value) == null || le.call(se, !0);
|
10516
10461
|
} catch (te) {
|
10517
10462
|
console.error(te);
|
10518
10463
|
} finally {
|
@@ -10520,7 +10465,7 @@ const getProps$n = () => ({
|
|
10520
10465
|
}
|
10521
10466
|
}
|
10522
10467
|
async function de() {
|
10523
|
-
var W, J, re, ae, oe,
|
10468
|
+
var W, J, re, ae, oe, ie, se, le;
|
10524
10469
|
const G = (W = p.value) == null ? void 0 : W.cmd;
|
10525
10470
|
if (!G) {
|
10526
10471
|
Logger.error("[KgSubmit] '\u66F4\u65B0\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
|
@@ -10530,15 +10475,15 @@ const getProps$n = () => ({
|
|
10530
10475
|
}
|
10531
10476
|
try {
|
10532
10477
|
a.store.setIsUpdatingRequesting(a.formID, !0);
|
10533
|
-
let te = ref(KgVarUtil.parseCommandParameter((re = (J = p.value) == null ? void 0 : J.cmd_prm) != null ? re : "")), ue = ref(toRaw(
|
10534
|
-
if (await
|
10478
|
+
let te = ref(KgVarUtil.parseCommandParameter((re = (J = p.value) == null ? void 0 : J.cmd_prm) != null ? re : "")), ue = ref(toRaw(s.model.value));
|
10479
|
+
if (await s.store.emit(a.formID, "beforeRequest", {
|
10535
10480
|
isCreating: a.isCreating.value,
|
10536
10481
|
isUpdating: a.isUpdating.value,
|
10537
10482
|
isCopying: a.isCopying.value,
|
10538
10483
|
isDeleting: a.isDeleting.value,
|
10539
|
-
row:
|
10540
|
-
rows:
|
10541
|
-
model:
|
10484
|
+
row: i.selectedRow.value,
|
10485
|
+
rows: i.selectedRows.value,
|
10486
|
+
model: s.model,
|
10542
10487
|
params: te,
|
10543
10488
|
data: ue
|
10544
10489
|
}))
|
@@ -10548,7 +10493,7 @@ const getProps$n = () => ({
|
|
10548
10493
|
url: G,
|
10549
10494
|
params: te.value,
|
10550
10495
|
data: ue.value
|
10551
|
-
}), ((
|
10496
|
+
}), ((ie = p.value) == null ? void 0 : ie.show_success_message_flg) !== 0 && message.success(n.t("kg.updateSuccess")), s.store.emit(a.formID, "ok"), a.store.setIsUpdating(a.formID, !1), (le = (se = l.search).value) == null || le.call(se);
|
10552
10497
|
} catch (te) {
|
10553
10498
|
console.error(te);
|
10554
10499
|
} finally {
|
@@ -10556,7 +10501,7 @@ const getProps$n = () => ({
|
|
10556
10501
|
}
|
10557
10502
|
}
|
10558
10503
|
async function pe() {
|
10559
|
-
var W, J, re, ae, oe,
|
10504
|
+
var W, J, re, ae, oe, ie, se, le, te, ue;
|
10560
10505
|
const G = (W = b.value) == null ? void 0 : W.cmd;
|
10561
10506
|
if (!G) {
|
10562
10507
|
Logger.error("[KgSubmit] '\u590D\u5236\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
|
@@ -10567,27 +10512,27 @@ const getProps$n = () => ({
|
|
10567
10512
|
try {
|
10568
10513
|
a.store.setIsCopyingRequesting(a.formID, !0);
|
10569
10514
|
let ge = ref(KgVarUtil.parseCommandParameter((re = (J = b.value) == null ? void 0 : J.cmd_prm) != null ? re : "")), fe = ref({
|
10570
|
-
...(ae =
|
10571
|
-
...toRaw(
|
10515
|
+
...(ae = i.selectedFirstRow.value) != null ? ae : {},
|
10516
|
+
...toRaw(s.model.value)
|
10572
10517
|
});
|
10573
|
-
if (((oe = _.value) == null ? void 0 : oe.cpy_clear_id_flg) !== 0 && delete fe.value.id, await
|
10518
|
+
if (((oe = _.value) == null ? void 0 : oe.cpy_clear_id_flg) !== 0 && delete fe.value.id, await s.store.emit(a.formID, "beforeRequest", {
|
10574
10519
|
isCreating: a.isCreating.value,
|
10575
10520
|
isUpdating: a.isUpdating.value,
|
10576
10521
|
isCopying: a.isCopying.value,
|
10577
10522
|
isDeleting: a.isDeleting.value,
|
10578
|
-
row:
|
10579
|
-
rows:
|
10580
|
-
model:
|
10523
|
+
row: i.selectedRow.value,
|
10524
|
+
rows: i.selectedRows.value,
|
10525
|
+
model: s.model,
|
10581
10526
|
params: ge,
|
10582
10527
|
data: fe
|
10583
10528
|
}))
|
10584
10529
|
return;
|
10585
10530
|
await httpClient().request({
|
10586
|
-
method: (
|
10531
|
+
method: (se = (ie = b.value) == null ? void 0 : ie.cmd_method) != null ? se : "POST",
|
10587
10532
|
url: G,
|
10588
10533
|
params: ge.value,
|
10589
10534
|
data: fe.value
|
10590
|
-
}), ((le = b.value) == null ? void 0 : le.show_success_message_flg) !== 0 && message.success(n.t("kg.copySuccess")),
|
10535
|
+
}), ((le = b.value) == null ? void 0 : le.show_success_message_flg) !== 0 && message.success(n.t("kg.copySuccess")), s.store.emit(a.formID, "ok"), a.store.setIsCopying(a.formID, !1), (ue = (te = l.search).value) == null || ue.call(te, !0);
|
10591
10536
|
} catch (ge) {
|
10592
10537
|
console.error(ge);
|
10593
10538
|
} finally {
|
@@ -10595,7 +10540,7 @@ const getProps$n = () => ({
|
|
10595
10540
|
}
|
10596
10541
|
}
|
10597
10542
|
async function be() {
|
10598
|
-
var W, J, re, ae, oe,
|
10543
|
+
var W, J, re, ae, oe, ie, se, le;
|
10599
10544
|
const G = (W = m.value) == null ? void 0 : W.cmd;
|
10600
10545
|
if (!G) {
|
10601
10546
|
Logger.error("[KgSubmit] '\u5220\u9664\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
|
@@ -10606,19 +10551,19 @@ const getProps$n = () => ({
|
|
10606
10551
|
try {
|
10607
10552
|
a.store.setIsDeletingRequesting(a.formID, !0);
|
10608
10553
|
let te = ref({
|
10609
|
-
ids: (re = (J =
|
10554
|
+
ids: (re = (J = i.selectedRows.value) == null ? void 0 : J.map((fe) => {
|
10610
10555
|
var me, _e, ve;
|
10611
10556
|
return (ve = fe[(_e = (me = m.value) == null ? void 0 : me.del_param_clm) != null ? _e : "id"]) != null ? ve : "";
|
10612
10557
|
})) != null ? re : []
|
10613
10558
|
}), ue = ref({});
|
10614
|
-
if (await
|
10559
|
+
if (await s.store.emit(a.formID, "beforeRequest", {
|
10615
10560
|
isCreating: a.isCreating.value,
|
10616
10561
|
isUpdating: a.isUpdating.value,
|
10617
10562
|
isCopying: a.isCopying.value,
|
10618
10563
|
isDeleting: a.isDeleting.value,
|
10619
|
-
row:
|
10620
|
-
rows:
|
10621
|
-
model:
|
10564
|
+
row: i.selectedFirstRow.value,
|
10565
|
+
rows: i.selectedRows.value,
|
10566
|
+
model: s.model,
|
10622
10567
|
params: te,
|
10623
10568
|
data: ue
|
10624
10569
|
}))
|
@@ -10630,7 +10575,7 @@ const getProps$n = () => ({
|
|
10630
10575
|
data: ue.value
|
10631
10576
|
}, {
|
10632
10577
|
joinParamsToUrl: !0
|
10633
|
-
}), ((
|
10578
|
+
}), ((ie = m.value) == null ? void 0 : ie.show_success_message_flg) !== 0 && message.success(n.t("kg.deleteSuccess")), s.store.emit(a.formID, "ok"), a.store.setIsDeleting(a.formID, !1), (le = (se = l.search).value) == null || le.call(se, !0);
|
10634
10579
|
} catch (te) {
|
10635
10580
|
console.error(te);
|
10636
10581
|
} finally {
|
@@ -10643,35 +10588,35 @@ const getProps$n = () => ({
|
|
10643
10588
|
return isFunction$2(W) ? createVNode(KgForm.Item, {
|
10644
10589
|
kgVarName: G.var_nam,
|
10645
10590
|
kgContext: KG_FORM_CONTEXT.SUBMIT,
|
10646
|
-
kgRules:
|
10591
|
+
kgRules: s.rules.value[G.var_nam],
|
10647
10592
|
onKgSubmit: Z
|
10648
10593
|
}, {
|
10649
10594
|
control: ({
|
10650
10595
|
varName: ae,
|
10651
10596
|
props: oe,
|
10652
|
-
model:
|
10653
|
-
varConfig:
|
10597
|
+
model: ie,
|
10598
|
+
varConfig: se,
|
10654
10599
|
varProfileDetail: le,
|
10655
10600
|
varSubmitField: te
|
10656
10601
|
}) => W({
|
10657
10602
|
varName: ae,
|
10658
10603
|
props: oe,
|
10659
|
-
model:
|
10660
|
-
varConfig:
|
10604
|
+
model: ie,
|
10605
|
+
varConfig: se,
|
10661
10606
|
varProfileDetail: le,
|
10662
10607
|
varSubmitField: te
|
10663
10608
|
})
|
10664
10609
|
}) : createVNode(KgForm.Item, {
|
10665
10610
|
kgVarName: G.var_nam,
|
10666
10611
|
kgContext: KG_FORM_CONTEXT.SUBMIT,
|
10667
|
-
kgRules:
|
10612
|
+
kgRules: s.rules.value[G.var_nam],
|
10668
10613
|
onKgSubmit: Z
|
10669
10614
|
}, null);
|
10670
10615
|
}
|
10671
10616
|
function ye() {
|
10672
10617
|
let G, W;
|
10673
10618
|
return createVNode(KgResizable, {
|
10674
|
-
kgType:
|
10619
|
+
kgType: s.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL ? "right" : "left",
|
10675
10620
|
kgMinWidth: V.value,
|
10676
10621
|
kgMaxWidth: R.value,
|
10677
10622
|
kgWidth: L.value,
|
@@ -10682,8 +10627,8 @@ const getProps$n = () => ({
|
|
10682
10627
|
spinning: v.value
|
10683
10628
|
}, {
|
10684
10629
|
default: () => [createVNode(KgForm, {
|
10685
|
-
ref:
|
10686
|
-
model:
|
10630
|
+
ref: s.formRef,
|
10631
|
+
model: s.model.value,
|
10687
10632
|
layout: ne.value,
|
10688
10633
|
labelCol: ce.value,
|
10689
10634
|
wrapperCol: F.value
|
@@ -10739,7 +10684,7 @@ const getProps$n = () => ({
|
|
10739
10684
|
}, null);
|
10740
10685
|
}
|
10741
10686
|
return onUnmounted(() => {
|
10742
|
-
|
10687
|
+
s.store.dispose(a.formID);
|
10743
10688
|
}), () => createVNode(Drawer, {
|
10744
10689
|
visible: q.value,
|
10745
10690
|
placement: "right",
|
@@ -10912,7 +10857,7 @@ function useKgTable(e) {
|
|
10912
10857
|
return isFunction$2(y) ? (r.addEventListener(t.formID, "retrieve", y), onUnmounted(() => r.removeEventListener(t.formID, "retrieve", y)), () => r.removeEventListener(t.formID, "retrieve", y)) : () => {
|
10913
10858
|
};
|
10914
10859
|
}
|
10915
|
-
const o = computed(() => r.getIsRetrieving(t.formID)),
|
10860
|
+
const o = computed(() => r.getIsRetrieving(t.formID)), i = computed(() => r.getSelectedRows(t.formID)), s = computed(() => r.getSelectedFirstRow(t.formID)), l = computed(() => r.getSelectedRow(t.formID)), u = computed(() => {
|
10916
10861
|
var y;
|
10917
10862
|
return ((y = t.varGridConfig.value) == null ? void 0 : y.mult_flg) === 1;
|
10918
10863
|
}), c = computed(() => {
|
@@ -10941,8 +10886,8 @@ function useKgTable(e) {
|
|
10941
10886
|
formID: t.formID,
|
10942
10887
|
store: r,
|
10943
10888
|
isRetrieving: o,
|
10944
|
-
selectedRows:
|
10945
|
-
selectedFirstRow:
|
10889
|
+
selectedRows: i,
|
10890
|
+
selectedFirstRow: s,
|
10946
10891
|
selectedRow: l,
|
10947
10892
|
isMultiSelect: u,
|
10948
10893
|
isReadAutomatically: c,
|
@@ -10969,7 +10914,7 @@ const KG_TABLE_TD_DEFAULT_WIDTH = 120, KG_TABLE_TD_MIN_WIDTH = 80, KG_TABLE_TD_M
|
|
10969
10914
|
slots: t,
|
10970
10915
|
emit: r
|
10971
10916
|
}) {
|
10972
|
-
const n = useKg(), a = useKgVar(), o = useKgButton(),
|
10917
|
+
const n = useKg(), a = useKgVar(), o = useKgButton(), i = useKgSubmit(), s = useKgTable();
|
10973
10918
|
o.onSubmitSave(async () => {
|
10974
10919
|
var T;
|
10975
10920
|
try {
|
@@ -10981,10 +10926,10 @@ const KG_TABLE_TD_DEFAULT_WIDTH = 120, KG_TABLE_TD_MIN_WIDTH = 80, KG_TABLE_TD_M
|
|
10981
10926
|
});
|
10982
10927
|
const l = computed(() => e.kgVarName ? a.store.getVarGridDetail(a.formID, e.kgVarName) : null), u = computed(() => a.store.getVarSubmitField(a.formID, e.kgVarName)), c = computed(() => {
|
10983
10928
|
var T, I, k, w, M, A;
|
10984
|
-
return
|
10929
|
+
return i.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && ((T = e.kgRow) == null ? void 0 : T[s.id.value]) === ((I = s.selectedRow.value) == null ? void 0 : I[s.id.value]) && (!!a.isCreating.value && ((k = u.value) == null ? void 0 : k.crt_flg) === 1 || !!a.isUpdating.value && ((w = u.value) == null ? void 0 : w.upt_flg) === 1 || !!a.isCopying.value && ((M = u.value) == null ? void 0 : M.cpy_flg) === 1 || !!a.isDeleting.value && ((A = u.value) == null ? void 0 : A.del_flg) === 1);
|
10985
10930
|
}), g = computed(() => {
|
10986
10931
|
var T, I;
|
10987
|
-
return
|
10932
|
+
return i.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && ((T = e.kgRow) == null ? void 0 : T[s.id.value]) === ((I = s.selectedRow.value) == null ? void 0 : I[s.id.value]) && (!!a.isCreating.value && !!a.isCreatingRequesting.value || !!a.isUpdating.value && !!a.isUpdatingRequesting.value || !!a.isCopying.value && !!a.isCopyingRequesting.value || !!a.isDeleting.value && !!a.isDeletingRequesting.value);
|
10988
10933
|
}), p = computed(() => {
|
10989
10934
|
var I, k;
|
10990
10935
|
let T = "kg-table-td";
|
@@ -11020,7 +10965,7 @@ const KG_TABLE_TD_DEFAULT_WIDTH = 120, KG_TABLE_TD_MIN_WIDTH = 80, KG_TABLE_TD_M
|
|
11020
10965
|
function y() {
|
11021
10966
|
return createVNode(KgForm, {
|
11022
10967
|
ref: m,
|
11023
|
-
model:
|
10968
|
+
model: i.model.value,
|
11024
10969
|
layout: "vertical",
|
11025
10970
|
wrapperCol: {
|
11026
10971
|
span: 24
|
@@ -11030,7 +10975,7 @@ const KG_TABLE_TD_DEFAULT_WIDTH = 120, KG_TABLE_TD_MIN_WIDTH = 80, KG_TABLE_TD_M
|
|
11030
10975
|
default: () => [createVNode(KgForm.Item, {
|
11031
10976
|
kgVarName: e.kgVarName,
|
11032
10977
|
kgContext: KG_FORM_CONTEXT.SUBMIT,
|
11033
|
-
kgRules:
|
10978
|
+
kgRules: i.rules.value[e.kgVarName],
|
11034
10979
|
kgSpan: 24,
|
11035
10980
|
kgDisabled: g.value ? !0 : void 0,
|
11036
10981
|
onKgSubmit: _
|
@@ -11114,10 +11059,10 @@ const getProps$k = () => ({
|
|
11114
11059
|
}
|
11115
11060
|
function o() {
|
11116
11061
|
}
|
11117
|
-
function
|
11062
|
+
function i() {
|
11118
11063
|
}
|
11119
11064
|
return () => {
|
11120
|
-
let
|
11065
|
+
let s, l, u;
|
11121
11066
|
return createVNode("div", {
|
11122
11067
|
class: "kg-table-info"
|
11123
11068
|
}, [createVNode("div", {
|
@@ -11132,11 +11077,11 @@ const getProps$k = () => ({
|
|
11132
11077
|
onClick: a,
|
11133
11078
|
class: "btn-clear-check",
|
11134
11079
|
type: "link"
|
11135
|
-
}, _isSlot$6(
|
11136
|
-
default: () => [
|
11080
|
+
}, _isSlot$6(s = n.t("kg.KgTableInfo.clearCheck")) ? s : {
|
11081
|
+
default: () => [s]
|
11137
11082
|
}), e.kgShowLocate && createVNode(Button, {
|
11138
11083
|
disabled: e.kgDisabled,
|
11139
|
-
onClick:
|
11084
|
+
onClick: i,
|
11140
11085
|
class: "btn-locate-check",
|
11141
11086
|
type: "link"
|
11142
11087
|
}, _isSlot$6(l = n.t("kg.KgTableInfo.locate")) ? l : {
|
@@ -11167,19 +11112,19 @@ const getProps$k = () => ({
|
|
11167
11112
|
emit: r
|
11168
11113
|
}) {
|
11169
11114
|
const n = useKgVar(e.hostFormID), a = useKg(), o = useKgVar(FORM_ID__VAR_GRID_CONFIG, !0, n ? n.store.getFormLevel(n.formID) + 2 : 2);
|
11170
|
-
let
|
11171
|
-
const
|
11172
|
-
return
|
11115
|
+
let i = null;
|
11116
|
+
const s = useKgSubmit(FORM_ID__VAR_GRID_CONFIG);
|
11117
|
+
return s.onOpen(async ({
|
11173
11118
|
model: l
|
11174
11119
|
}) => {
|
11175
11120
|
const u = n == null ? void 0 : n.store.getVarGridConfig(n.formID);
|
11176
|
-
return
|
11121
|
+
return i = watch(l, (c) => {
|
11177
11122
|
var g, p, b, m, v, _, y, C, E, T, I;
|
11178
11123
|
c && (c.id = (g = u == null ? void 0 : u.id) != null ? g : null, c.frm_id = n == null ? void 0 : n.formID, c.aut_load_flg = (p = u == null ? void 0 : u.aut_load_flg) != null ? p : 0, c.mult_flg = (b = u == null ? void 0 : u.mult_flg) != null ? b : 0, c.show_check_column_flg = (m = u == null ? void 0 : u.show_check_column_flg) != null ? m : 0, c.show_bottom_left_flg = (v = u == null ? void 0 : u.show_bottom_left_flg) != null ? v : 1, c.show_bottom_right_flg = (_ = u == null ? void 0 : u.show_bottom_right_flg) != null ? _ : 1, c.convert_sort_field_to_under_score_flg = (y = u == null ? void 0 : u.convert_sort_field_to_under_score_flg) != null ? y : 0, c.pg_size_opts = (C = u == null ? void 0 : u.pg_size_opts) != null ? C : "[10, 20, 50, 100]", c.pg_size_opt = (E = u == null ? void 0 : u.pg_size_opt) != null ? E : 10, c.cmd_prm = (T = u == null ? void 0 : u.cmd_prm) != null ? T : void 0, c.button_display_type = (I = u == null ? void 0 : u.button_display_type) != null ? I : KG_BUTTON_DISPLAY_TYPE.DEFAULT);
|
11179
11124
|
}, {
|
11180
11125
|
immediate: !0
|
11181
11126
|
}), !1;
|
11182
|
-
}),
|
11127
|
+
}), s.onClose(async () => (i == null || i(), r("kgClose"), !1)), s.onBeforeOk(async ({
|
11183
11128
|
rules: l,
|
11184
11129
|
model: u
|
11185
11130
|
}) => {
|
@@ -11233,7 +11178,7 @@ const getProps$k = () => ({
|
|
11233
11178
|
}];
|
11234
11179
|
}
|
11235
11180
|
return await nextTick(), !1;
|
11236
|
-
}),
|
11181
|
+
}), s.onOk(async () => (n == null || n.store.retrieve(n.formID), !1)), o.store.setIsUpdating(FORM_ID__VAR_GRID_CONFIG, !0, !0), () => createVNode(KgSubmit, null, null);
|
11237
11182
|
}
|
11238
11183
|
}), KgTable_Setting_ConfigModal_VarGridMaster = "", FORM_ID__VAR_GRID_MASTER = "kg-table.VarGridMaster", getProps$i = () => ({
|
11239
11184
|
hostFormID: {
|
@@ -11323,11 +11268,11 @@ const getProps$k = () => ({
|
|
11323
11268
|
function _useServices() {
|
11324
11269
|
const e = useKgVar();
|
11325
11270
|
function t(r, n) {
|
11326
|
-
var o,
|
11271
|
+
var o, i, s, l;
|
11327
11272
|
if (!n)
|
11328
11273
|
return !0;
|
11329
11274
|
let a = n.toLowerCase();
|
11330
|
-
return !!((
|
11275
|
+
return !!((i = (o = e.t(r.var_nam).value) == null ? void 0 : o.toLowerCase()) != null && i.includes(a) || (l = (s = r.var_nam) == null ? void 0 : s.toLowerCase()) != null && l.includes(a));
|
11331
11276
|
}
|
11332
11277
|
return {
|
11333
11278
|
filterVarGridDetailByKey: t
|
@@ -11339,8 +11284,8 @@ function _useObserveMenuItemColumns(e) {
|
|
11339
11284
|
r ? (await nextTick(), setTimeout(() => {
|
11340
11285
|
const n = document.querySelector("div.kg-table-setting-submenu-popup-columns");
|
11341
11286
|
n && (t = new ResizeObserver(() => {
|
11342
|
-
var
|
11343
|
-
const a = (
|
11287
|
+
var i, s, l;
|
11288
|
+
const a = (s = (i = window.visualViewport) == null ? void 0 : i.height) != null ? s : 0, o = n.getBoundingClientRect().bottom;
|
11344
11289
|
if (o > a) {
|
11345
11290
|
const u = (l = n.parentElement) == null ? void 0 : l.parentElement;
|
11346
11291
|
u && (u.style.top = `${a - o}px`);
|
@@ -11362,13 +11307,13 @@ const FORM_ID__VAR_GRID_MASTER__SAVE = "kg-table.VarGridMaster.Save", KgTableSet
|
|
11362
11307
|
useKgVar(FORM_ID__VAR_GRID_MASTER__SAVE, !0, a.store.getFormLevel(a.formID) + 1);
|
11363
11308
|
const o = useKgSubmit(FORM_ID__VAR_GRID_MASTER__SAVE);
|
11364
11309
|
return o.onOpen(async ({
|
11365
|
-
model:
|
11310
|
+
model: i
|
11366
11311
|
}) => {
|
11367
|
-
var
|
11368
|
-
return
|
11312
|
+
var s, l, u, c, g, p, b, m, v, _;
|
11313
|
+
return i.value.grd_var_nam = `${(l = (s = a.currentVarGridMaster.value) == null ? void 0 : s.grd_var_nam) != null ? l : ""}_COPY`, i.value.frm_id = (c = (u = a.currentVarGridMaster.value) == null ? void 0 : u.frm_id) != null ? c : "", i.value.usr_id = (p = (g = a.currentVarGridMaster.value) == null ? void 0 : g.usr_id) != null ? p : "", i.value.grp_nam = (m = (b = a.currentVarGridMaster.value) == null ? void 0 : b.grp_nam) != null ? m : "", i.value.varGridDetails = (_ = (v = a.currentVarGridMaster.value) == null ? void 0 : v.varGridDetails) != null ? _ : [], !1;
|
11369
11314
|
}), o.onBeforeOk(async ({
|
11370
|
-
model:
|
11371
|
-
}) => (
|
11315
|
+
model: i
|
11316
|
+
}) => (i.value, !1)), o.onOk(async () => (a.store.retrieve(a.formID), !1)), () => createVNode(KgSubmit, null, null);
|
11372
11317
|
}
|
11373
11318
|
});
|
11374
11319
|
function _isSlot$5(e) {
|
@@ -11383,12 +11328,12 @@ const KgTableSetting = defineComponent({
|
|
11383
11328
|
const n = useKg(), a = useKgVar();
|
11384
11329
|
useKgSubmit(FORM_ID__VAR_GRID_MASTER__SAVE).onClose(async () => (p.value = !1, !1));
|
11385
11330
|
const {
|
11386
|
-
filterVarGridDetailByKey:
|
11387
|
-
} = _useServices(),
|
11331
|
+
filterVarGridDetailByKey: i
|
11332
|
+
} = _useServices(), s = ref(""), l = ref([]), u = computed(() => l.value.includes("1")), c = reactive({
|
11388
11333
|
visible: !1
|
11389
11334
|
}), g = computed(() => !!a.isCreating.value || !!a.isCreating.value || !!a.isCreating.value || !!a.isCreating.value), p = ref(!1);
|
11390
11335
|
_useObserveMenuItemColumns(u), watch(u, (E) => {
|
11391
|
-
E || (
|
11336
|
+
E || (s.value = "");
|
11392
11337
|
}, {
|
11393
11338
|
immediate: !0
|
11394
11339
|
});
|
@@ -11429,8 +11374,8 @@ const KgTableSetting = defineComponent({
|
|
11429
11374
|
return createVNode("div", {
|
11430
11375
|
class: "columns"
|
11431
11376
|
}, [createVNode(Input, {
|
11432
|
-
value:
|
11433
|
-
"onUpdate:value": (T) =>
|
11377
|
+
value: s.value,
|
11378
|
+
"onUpdate:value": (T) => s.value = T,
|
11434
11379
|
allowClear: !0
|
11435
11380
|
}, null), createVNode("ul", {
|
11436
11381
|
class: "ant-dropdown-menu ant-dropdown-menu-vertical"
|
@@ -11440,7 +11385,7 @@ const KgTableSetting = defineComponent({
|
|
11440
11385
|
I.preventDefault(), I.stopPropagation(), b(T);
|
11441
11386
|
},
|
11442
11387
|
style: {
|
11443
|
-
display:
|
11388
|
+
display: i(T, s.value) ? "flex" : "none"
|
11444
11389
|
},
|
11445
11390
|
"kg-var-nam": T.var_nam
|
11446
11391
|
}, [createVNode(Checkbox, {
|
@@ -11526,11 +11471,11 @@ const KgTableSetting = defineComponent({
|
|
11526
11471
|
});
|
11527
11472
|
function _useColumns() {
|
11528
11473
|
const e = useKgVar(), t = useKgSubmit(), r = useKgTable(), n = computed(() => {
|
11529
|
-
var
|
11530
|
-
return ((
|
11474
|
+
var i;
|
11475
|
+
return ((i = e.store.getVarGridConfig(e.formID)) == null ? void 0 : i.show_check_column_flg) === 1;
|
11531
11476
|
}), a = computed(() => {
|
11532
11477
|
var c, g, p;
|
11533
|
-
const
|
11478
|
+
const i = (c = r.store.getTableWidth(e.formID)) != null ? c : 0, s = (g = e.store.getCurrentVisibleVarGridDetailsTotalWidth(e.formID)) != null ? g : 0, l = e.store.getCurrentVisibleVarGridDetails(e.formID), u = [{
|
11534
11479
|
dataIndex: "index",
|
11535
11480
|
width: KG_TABLE_TD_INDEX_WIDTH,
|
11536
11481
|
fixed: "left",
|
@@ -11589,14 +11534,14 @@ function _useColumns() {
|
|
11589
11534
|
}
|
11590
11535
|
};
|
11591
11536
|
})) != null ? p : []];
|
11592
|
-
return (
|
11537
|
+
return (s === 0 || i > s && !(l != null && l.find((b) => b.width === "auto"))) && u.push({
|
11593
11538
|
width: "auto",
|
11594
11539
|
customRender: () => null
|
11595
11540
|
}), u;
|
11596
11541
|
}), o = computed(() => {
|
11597
|
-
var
|
11598
|
-
let
|
11599
|
-
return n.value && (
|
11542
|
+
var s;
|
11543
|
+
let i = 0;
|
11544
|
+
return n.value && (i += KG_TABLE_TD_CHECK_WIDTH), i += KG_TABLE_TD_INDEX_WIDTH, i += (s = e.store.getCurrentVisibleVarGridDetailsTotalWidth(e.formID)) != null ? s : 0, `${i}px`;
|
11600
11545
|
});
|
11601
11546
|
return {
|
11602
11547
|
columns: a,
|
@@ -11615,10 +11560,10 @@ function _useResizeObserver(e) {
|
|
11615
11560
|
return onMounted(() => {
|
11616
11561
|
var o;
|
11617
11562
|
const a = (o = e.value) == null ? void 0 : o.querySelector("div.ant-table-header");
|
11618
|
-
a && (n = new ResizeObserver((
|
11563
|
+
a && (n = new ResizeObserver((i) => {
|
11619
11564
|
var u, c, g, p;
|
11620
|
-
const
|
11621
|
-
r.store.setTableWidth(t.formID, Math.max(0,
|
11565
|
+
const s = (c = (u = i[0].borderBoxSize[0]) == null ? void 0 : u.inlineSize) != null ? c : 0, l = (p = (g = a.querySelector("th.ant-table-cell-scrollbar")) == null ? void 0 : g.clientWidth) != null ? p : 0;
|
11566
|
+
r.store.setTableWidth(t.formID, Math.max(0, s - l));
|
11622
11567
|
}), n.observe(a));
|
11623
11568
|
}), onUnmounted(() => {
|
11624
11569
|
n == null || n.disconnect();
|
@@ -11630,10 +11575,10 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
11630
11575
|
slots: t,
|
11631
11576
|
emit: r
|
11632
11577
|
}) {
|
11633
|
-
const n = inject("$dayjs", dayjs), a = inject(DI_KG_SLOTS, null), o = useKg(),
|
11634
|
-
|
11578
|
+
const n = inject("$dayjs", dayjs), a = inject(DI_KG_SLOTS, null), o = useKg(), i = useKgVar(), s = useKgSearch(), l = useKgButton(), u = useKgTable(), c = useKgSubmit();
|
11579
|
+
s.onSearch((F) => {
|
11635
11580
|
R(F);
|
11636
|
-
}),
|
11581
|
+
}), s.onReset(() => {
|
11637
11582
|
R(!0);
|
11638
11583
|
}), u.store.$onAction(async ({
|
11639
11584
|
name: F,
|
@@ -11641,7 +11586,7 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
11641
11586
|
}) => {
|
11642
11587
|
switch (F) {
|
11643
11588
|
case "setSelecte":
|
11644
|
-
if (K[0] ===
|
11589
|
+
if (K[0] === i.formID) {
|
11645
11590
|
const U = K[1], z = K[2];
|
11646
11591
|
switch (!0) {
|
11647
11592
|
case (z && !A.value.includes(U[u.id.value])):
|
@@ -11664,25 +11609,25 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
11664
11609
|
_useResizeObserver(_);
|
11665
11610
|
const y = computed(() => {
|
11666
11611
|
var F, K;
|
11667
|
-
return (K = (F =
|
11612
|
+
return (K = (F = i.varButtonSearch.value) == null ? void 0 : F.cmd) != null ? K : null;
|
11668
11613
|
}), C = computed(() => {
|
11669
11614
|
var K, U, z, Z, X, de, pe;
|
11670
11615
|
let F = {
|
11671
11616
|
pageNo: O.pageIndex,
|
11672
11617
|
pageSize: O.pageSize,
|
11673
11618
|
...B,
|
11674
|
-
...(U = (K =
|
11619
|
+
...(U = (K = s.model) == null ? void 0 : K.value) != null ? U : {}
|
11675
11620
|
};
|
11676
|
-
return
|
11621
|
+
return i.varButtonSearch.value && (F = {
|
11677
11622
|
...F,
|
11678
|
-
...KgVarUtil.parseCommandParameter((Z = (z =
|
11679
|
-
}), (X =
|
11623
|
+
...KgVarUtil.parseCommandParameter((Z = (z = i.varButtonSearch.value) == null ? void 0 : z.cmd_prm) != null ? Z : "")
|
11624
|
+
}), (X = i.varGridConfig.value) != null && X.cmd_prm && (F = {
|
11680
11625
|
...F,
|
11681
|
-
...KgVarUtil.parseCommandParameter((de =
|
11682
|
-
}), ((pe =
|
11683
|
-
}), E = computed(() => v.value || !!
|
11626
|
+
...KgVarUtil.parseCommandParameter((de = i.varGridConfig.value.cmd_prm) != null ? de : "")
|
11627
|
+
}), ((pe = i.varGridConfig.value) == null ? void 0 : pe.convert_sort_field_to_under_score_flg) === 1 && F.column && (F.column = snakeCase$1(F.column)), F;
|
11628
|
+
}), E = computed(() => v.value || !!i.isCreating.value || !!i.isUpdating.value || !!i.isCopying.value || !!i.isDeleting.value || O.total === 0), T = computed(() => v.value || !!i.isCreating.value || !!i.isUpdating.value || !!i.isCopying.value || !!i.isDeleting.value), I = computed(() => {
|
11684
11629
|
var F;
|
11685
|
-
if (((F =
|
11630
|
+
if (((F = i.varGridConfig.value) == null ? void 0 : F.show_check_column_flg) === 1)
|
11686
11631
|
return {
|
11687
11632
|
fixed: "left",
|
11688
11633
|
columnWidth: KG_TABLE_TD_CHECK_WIDTH,
|
@@ -11690,7 +11635,7 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
11690
11635
|
selectedRowKeys: A,
|
11691
11636
|
preserveSelectedRowKeys: !1,
|
11692
11637
|
getCheckboxProps: (K) => ({
|
11693
|
-
disabled: !!
|
11638
|
+
disabled: !!i.isCreating.value || !!i.isUpdating.value || !!i.isCopying.value || !!i.isDeleting.value
|
11694
11639
|
}),
|
11695
11640
|
onSelect: (K) => H(K),
|
11696
11641
|
onChange: (K) => u.isMultiSelect.value && L(K)
|
@@ -11698,11 +11643,11 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
11698
11643
|
}), k = computed(() => {
|
11699
11644
|
var K;
|
11700
11645
|
let F = "kg-table";
|
11701
|
-
return ((K =
|
11646
|
+
return ((K = i.varGridConfig.value) == null ? void 0 : K.show_bottom_border_flg) === 1 && (F += " kg-table--bottom-border"), !u.isShowBottomLeft.value && !u.isShowBottomRight.value && (F += " kg-table--no-bottom"), c.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && (i.isCreating.value || i.isUpdating.value || i.isCopying.value || i.isDeleting.value) && (F += " kg-table--submitting"), F;
|
11702
11647
|
}), w = computed(() => {
|
11703
11648
|
var K;
|
11704
11649
|
let F = "kg-table-bottom";
|
11705
|
-
return ((K =
|
11650
|
+
return ((K = i.varGridConfig.value) == null ? void 0 : K.show_bottom_border_flg) === 1 && (F += " kg-table-bottom--border"), F;
|
11706
11651
|
}), M = ref([]), A = ref([]), O = reactive({
|
11707
11652
|
pageIndex: 1,
|
11708
11653
|
pageSize: 10,
|
@@ -11715,42 +11660,42 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
11715
11660
|
});
|
11716
11661
|
watch(u.pageSizeOptions, (F) => {
|
11717
11662
|
F.length > 0 && !F.includes(O.pageSize) && (O.pageSize = u.pageSizeOption.value);
|
11718
|
-
}), watch([y, u.isReadAutomatically,
|
11719
|
-
F && K && U && !u.store.getIsRetrieved(
|
11663
|
+
}), watch([y, u.isReadAutomatically, s.isReady], ([F, K, U]) => {
|
11664
|
+
F && K && U && !u.store.getIsRetrieved(i.formID) && R(!0);
|
11720
11665
|
}, {
|
11721
11666
|
immediate: !0
|
11722
|
-
}), watch(
|
11667
|
+
}), watch(i.isCreating, (F, K) => {
|
11723
11668
|
F === !0 ? P() : F === !1 && K === !0 && D();
|
11724
11669
|
}), onUnmounted(() => {
|
11725
|
-
u.store.dispose(
|
11670
|
+
u.store.dispose(i.formID);
|
11726
11671
|
});
|
11727
11672
|
function P() {
|
11728
11673
|
if (c.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE) {
|
11729
11674
|
const F = {
|
11730
11675
|
[u.id.value]: ID_CREATE
|
11731
11676
|
};
|
11732
|
-
M.value = [F, ...M.value], A.value = [ID_CREATE], u.store.setSelectedRows(
|
11677
|
+
M.value = [F, ...M.value], A.value = [ID_CREATE], u.store.setSelectedRows(i.formID, [F]);
|
11733
11678
|
}
|
11734
11679
|
}
|
11735
11680
|
function D() {
|
11736
11681
|
const F = M.value.find((K) => K[u.id.value] === ID_CREATE);
|
11737
|
-
F && (M.value = without$1(M.value, F), A.value = [], u.store.setSelectedRows(
|
11682
|
+
F && (M.value = without$1(M.value, F), A.value = [], u.store.setSelectedRows(i.formID, []));
|
11738
11683
|
}
|
11739
11684
|
function V(F, K) {
|
11740
|
-
if (!(!!
|
11685
|
+
if (!(!!i.isCreating.value || !!i.isCreating.value || !!i.isCreating.value || !!i.isCreating.value) && !!I.value) {
|
11741
11686
|
if (!K) {
|
11742
|
-
A.value = [], u.store.setSelectedRows(
|
11687
|
+
A.value = [], u.store.setSelectedRows(i.formID, []);
|
11743
11688
|
return;
|
11744
11689
|
}
|
11745
11690
|
switch (F == null ? void 0 : F.detail) {
|
11746
11691
|
case 1:
|
11747
|
-
A.value = [K[u.id.value]], u.store.setSelectedRows(
|
11692
|
+
A.value = [K[u.id.value]], u.store.setSelectedRows(i.formID, A.value.map((U) => {
|
11748
11693
|
var z;
|
11749
11694
|
return (z = M.value) == null ? void 0 : z.find((Z) => Z[u.id.value] === U);
|
11750
11695
|
}).filter((U) => !!U));
|
11751
11696
|
break;
|
11752
11697
|
case 2:
|
11753
|
-
u.store.emit(
|
11698
|
+
u.store.emit(i.formID, "rowDoubleClick", K);
|
11754
11699
|
break;
|
11755
11700
|
}
|
11756
11701
|
}
|
@@ -11765,11 +11710,11 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
11765
11710
|
var z, Z;
|
11766
11711
|
if (!y.value) {
|
11767
11712
|
Logger.error("[KgTable] '\u67E5\u8BE2\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
|
11768
|
-
VarButton:
|
11713
|
+
VarButton: i.varButtonSearch.value
|
11769
11714
|
});
|
11770
11715
|
return;
|
11771
11716
|
}
|
11772
|
-
F && (O.pageIndex = 1), u.store.setIsRetrieving(
|
11717
|
+
F && (O.pageIndex = 1), u.store.setIsRetrieving(i.formID, !0);
|
11773
11718
|
try {
|
11774
11719
|
const X = await httpClient().request({
|
11775
11720
|
method: "GET",
|
@@ -11789,19 +11734,19 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
11789
11734
|
M.value = (z = X.records) != null ? z : [], O.total = (Z = X.total) != null ? Z : 0;
|
11790
11735
|
break;
|
11791
11736
|
}
|
11792
|
-
u.store.emit(
|
11737
|
+
u.store.emit(i.formID, "retrieve", {
|
11793
11738
|
page: X,
|
11794
11739
|
datas: M
|
11795
|
-
}), V(), p.value = [], await nextTick(), u.store.setIsRetrieved(
|
11740
|
+
}), V(), p.value = [], await nextTick(), u.store.setIsRetrieved(i.formID, !0);
|
11796
11741
|
} catch (X) {
|
11797
11742
|
throw X;
|
11798
11743
|
} finally {
|
11799
|
-
u.store.setIsRetrieving(
|
11744
|
+
u.store.setIsRetrieving(i.formID, !1);
|
11800
11745
|
}
|
11801
11746
|
}
|
11802
11747
|
}
|
11803
11748
|
function L(F) {
|
11804
|
-
A.value = F, u.store.setSelectedRows(
|
11749
|
+
A.value = F, u.store.setSelectedRows(i.formID, A.value.map((K) => {
|
11805
11750
|
var U;
|
11806
11751
|
return (U = M.value) == null ? void 0 : U.find((z) => z[u.id.value] === K);
|
11807
11752
|
}).filter((K) => !!K));
|
@@ -11822,13 +11767,13 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
11822
11767
|
}
|
11823
11768
|
break;
|
11824
11769
|
}
|
11825
|
-
u.store.setSelectedRows(
|
11770
|
+
u.store.setSelectedRows(i.formID, A.value.map((z) => {
|
11826
11771
|
var Z;
|
11827
11772
|
return (Z = M.value) == null ? void 0 : Z.find((X) => X[u.id.value] === z);
|
11828
11773
|
}).filter((z) => !!z));
|
11829
11774
|
}
|
11830
11775
|
function N(F, K) {
|
11831
|
-
K.width = F,
|
11776
|
+
K.width = F, i.store.setVarGridDetailWidth(i.formID, K.dataIndex, F);
|
11832
11777
|
}
|
11833
11778
|
async function x(F, K, U, z) {
|
11834
11779
|
var Z;
|
@@ -11845,7 +11790,7 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
11845
11790
|
function q(F, K) {
|
11846
11791
|
var z;
|
11847
11792
|
const U = K[u.id.value];
|
11848
|
-
switch ((z =
|
11793
|
+
switch ((z = i.varGridConfig.value) == null ? void 0 : z.expand_accordion_flg) {
|
11849
11794
|
case 0:
|
11850
11795
|
F ? p.value = uniq([...p.value, U]) : p.value = without$1(p.value, U);
|
11851
11796
|
break;
|
@@ -11858,10 +11803,10 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
11858
11803
|
K !== O.pageSize ? (O.pageIndex = 1, O.pageSize = K) : O.pageIndex = F, R();
|
11859
11804
|
}
|
11860
11805
|
function Q(F) {
|
11861
|
-
A.value = [F[u.id.value]], u.store.setSelectedRows(
|
11806
|
+
A.value = [F[u.id.value]], u.store.setSelectedRows(i.formID, A.value.map((K) => {
|
11862
11807
|
var U;
|
11863
11808
|
return (U = M.value) == null ? void 0 : U.find((z) => z[u.id.value] === K);
|
11864
|
-
}).filter((K) => !!K)), l.click(
|
11809
|
+
}).filter((K) => !!K)), l.click(i.formID, KG_BUTTON_TYPE.UPDATE);
|
11865
11810
|
}
|
11866
11811
|
function ne({
|
11867
11812
|
title: F,
|
@@ -11905,13 +11850,13 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
11905
11850
|
}) : de;
|
11906
11851
|
}
|
11907
11852
|
function ce() {
|
11908
|
-
return !u.isReadAutomatically.value && !u.store.getIsRetrieved(
|
11853
|
+
return !u.isReadAutomatically.value && !u.store.getIsRetrieved(i.formID) ? o.t("kg.KgTable.emptyText") : o.t("kg.emptyText");
|
11909
11854
|
}
|
11910
11855
|
return () => {
|
11911
11856
|
var F;
|
11912
11857
|
return createVNode("div", {
|
11913
11858
|
class: k.value,
|
11914
|
-
"kg-frm-id":
|
11859
|
+
"kg-frm-id": i.formID,
|
11915
11860
|
ref: _
|
11916
11861
|
}, [createVNode(Table, {
|
11917
11862
|
class: "kg-flex-table",
|
@@ -11996,10 +11941,10 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
11996
11941
|
var u, c, g, p, b, m, v, _;
|
11997
11942
|
return r.isCreating.value || r.isUpdating.value || r.isDeleting.value || n.isRetrieving.value || ((u = a.value) == null ? void 0 : u.dis_no_select_flg) === 1 && ((g = (c = n.selectedRows.value) == null ? void 0 : c.length) != null ? g : 0) === 0 || ((p = a.value) == null ? void 0 : p.dis_mult_select_flg) === 1 && ((m = (b = n.selectedRows.value) == null ? void 0 : b.length) != null ? m : 0) > 1 || ((v = a.value) == null ? void 0 : v.permission_type) === 2 && !t.p((_ = a.value) == null ? void 0 : _.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
|
11998
11943
|
});
|
11999
|
-
async function
|
11944
|
+
async function i() {
|
12000
11945
|
e.onKgClick && await e.onKgClick() || r.store.setIsCopying(r.formID, !0);
|
12001
11946
|
}
|
12002
|
-
function
|
11947
|
+
function s() {
|
12003
11948
|
return e.kgIcon ? createVNode("span", {
|
12004
11949
|
class: "anticon"
|
12005
11950
|
}, [createVNode(Icon, {
|
@@ -12013,9 +11958,9 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
12013
11958
|
type: "primary",
|
12014
11959
|
disabled: o.value,
|
12015
11960
|
ghost: !e.kgPrimary && !o.value,
|
12016
|
-
onClick:
|
11961
|
+
onClick: i
|
12017
11962
|
}, {
|
12018
|
-
default: () => [
|
11963
|
+
default: () => [s(), l()]
|
12019
11964
|
});
|
12020
11965
|
}
|
12021
11966
|
});
|
@@ -12155,11 +12100,11 @@ function useKgButton(e) {
|
|
12155
12100
|
return isFunction$2(l) ? (r.addEventListener(t.formID, "deleteOk", l), onUnmounted(() => r.removeEventListener(t.formID, "deleteOk", l)), () => r.removeEventListener(t.formID, "deleteOk", l)) : () => {
|
12156
12101
|
};
|
12157
12102
|
}
|
12158
|
-
function
|
12103
|
+
function i(l) {
|
12159
12104
|
return isFunction$2(l) ? (r.addEventListener(t.formID, "submitSave", l), onUnmounted(() => r.removeEventListener(t.formID, "submitSave", l)), () => r.removeEventListener(t.formID, "submitSave", l)) : () => {
|
12160
12105
|
};
|
12161
12106
|
}
|
12162
|
-
function
|
12107
|
+
function s(l) {
|
12163
12108
|
return isFunction$2(l) ? (r.addEventListener(t.formID, "submitCancel", l), onUnmounted(() => r.removeEventListener(t.formID, "submitCancel", l)), () => r.removeEventListener(t.formID, "submitCancel", l)) : () => {
|
12164
12109
|
};
|
12165
12110
|
}
|
@@ -12170,8 +12115,8 @@ function useKgButton(e) {
|
|
12170
12115
|
onClick: n,
|
12171
12116
|
onUpdateBeforeClick: a,
|
12172
12117
|
onDeleteOk: o,
|
12173
|
-
onSubmitSave:
|
12174
|
-
onSubmitCancel:
|
12118
|
+
onSubmitSave: i,
|
12119
|
+
onSubmitCancel: s
|
12175
12120
|
};
|
12176
12121
|
}
|
12177
12122
|
const KgButtonCreate = defineComponent({
|
@@ -12181,9 +12126,9 @@ const KgButtonCreate = defineComponent({
|
|
12181
12126
|
slots: t,
|
12182
12127
|
emit: r
|
12183
12128
|
}) {
|
12184
|
-
const n = useKg(), a = useKgVar(), o = useKgButton(),
|
12129
|
+
const n = useKg(), a = useKgVar(), o = useKgButton(), i = useKgTable(), s = useKgSubmit(), l = computed(() => a.store.getVarButton(a.formID, e.kgVarName)), u = computed(() => {
|
12185
12130
|
var C, E, T, I, k, w, M, A;
|
12186
|
-
return a.isUpdating.value || a.isCopying.value || a.isDeleting.value ||
|
12131
|
+
return a.isUpdating.value || a.isCopying.value || a.isDeleting.value || i.isRetrieving.value || ((C = l.value) == null ? void 0 : C.dis_no_select_flg) === 1 && ((T = (E = i.selectedRows.value) == null ? void 0 : E.length) != null ? T : 0) === 0 || ((I = l.value) == null ? void 0 : I.dis_mult_select_flg) === 1 && ((w = (k = i.selectedRows.value) == null ? void 0 : k.length) != null ? w : 0) > 1 || ((M = l.value) == null ? void 0 : M.permission_type) === 2 && !n.p((A = l.value) == null ? void 0 : A.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
|
12187
12132
|
}), c = computed(() => !!a.isCreatingRequesting.value);
|
12188
12133
|
async function g() {
|
12189
12134
|
e.onKgClick && await e.onKgClick() || a.store.setIsCreating(a.formID, !0);
|
@@ -12205,7 +12150,7 @@ const KgButtonCreate = defineComponent({
|
|
12205
12150
|
return e.kgText ? e.kgText : n.t("kg.create");
|
12206
12151
|
}
|
12207
12152
|
function _() {
|
12208
|
-
return
|
12153
|
+
return s.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && a.isCreating.value ? null : createVNode(Button, {
|
12209
12154
|
type: "primary",
|
12210
12155
|
disabled: u.value,
|
12211
12156
|
onClick: g
|
@@ -12214,7 +12159,7 @@ const KgButtonCreate = defineComponent({
|
|
12214
12159
|
});
|
12215
12160
|
}
|
12216
12161
|
function y() {
|
12217
|
-
return
|
12162
|
+
return s.displayType.value !== KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE || !a.isCreating.value ? null : createVNode(Fragment, null, [createVNode(Button, {
|
12218
12163
|
type: "primary",
|
12219
12164
|
onClick: p,
|
12220
12165
|
disabled: !!a.isCreatingRequesting.value
|
@@ -12239,10 +12184,10 @@ const KgButtonCreate = defineComponent({
|
|
12239
12184
|
var u, c, g, p, b, m, v, _;
|
12240
12185
|
return r.isCreating.value || r.isUpdating.value || r.isCopying.value || n.isRetrieving.value || ((u = a.value) == null ? void 0 : u.dis_no_select_flg) === 1 && ((g = (c = n.selectedRows.value) == null ? void 0 : c.length) != null ? g : 0) === 0 || ((p = a.value) == null ? void 0 : p.dis_mult_select_flg) === 1 && ((m = (b = n.selectedRows.value) == null ? void 0 : b.length) != null ? m : 0) > 1 || ((v = a.value) == null ? void 0 : v.permission_type) === 2 && !t.p((_ = a.value) == null ? void 0 : _.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
|
12241
12186
|
});
|
12242
|
-
async function
|
12187
|
+
async function i() {
|
12243
12188
|
e.onKgClick && await e.onKgClick() || r.store.setIsDeleting(r.formID, !0);
|
12244
12189
|
}
|
12245
|
-
function
|
12190
|
+
function s() {
|
12246
12191
|
return e.kgIcon ? createVNode("span", {
|
12247
12192
|
class: "anticon"
|
12248
12193
|
}, [createVNode(Icon, {
|
@@ -12257,19 +12202,19 @@ const KgButtonCreate = defineComponent({
|
|
12257
12202
|
disabled: o.value,
|
12258
12203
|
danger: e.kgColor === KG_BUTTON_COLOR.DANGER || !e.kgColor,
|
12259
12204
|
ghost: !e.kgPrimary && !o.value,
|
12260
|
-
onClick:
|
12205
|
+
onClick: i
|
12261
12206
|
}, {
|
12262
|
-
default: () => [
|
12207
|
+
default: () => [s(), l()]
|
12263
12208
|
});
|
12264
12209
|
}
|
12265
12210
|
}), KgButtonExport = defineComponent({
|
12266
12211
|
name: "KgButtonExport",
|
12267
12212
|
props: getProps$f(),
|
12268
12213
|
setup(e) {
|
12269
|
-
const t = useKg(), r = useKgVar(), n = useKgSearch(), a = useKgTable(), o = computed(() => r.store.getVarButton(r.formID, e.kgVarName)),
|
12214
|
+
const t = useKg(), r = useKgVar(), n = useKgSearch(), a = useKgTable(), o = computed(() => r.store.getVarButton(r.formID, e.kgVarName)), i = computed(() => {
|
12270
12215
|
var m, v;
|
12271
12216
|
return o.value ? (v = (m = o.value) == null ? void 0 : m.cmd) != null ? v : "" : null;
|
12272
|
-
}),
|
12217
|
+
}), s = computed(() => {
|
12273
12218
|
var m, v;
|
12274
12219
|
return (v = (m = o.value) == null ? void 0 : m.cmd_method) != null ? v : "GET";
|
12275
12220
|
}), l = computed(() => {
|
@@ -12291,7 +12236,7 @@ const KgButtonCreate = defineComponent({
|
|
12291
12236
|
async function g() {
|
12292
12237
|
var m, v, _;
|
12293
12238
|
if (!(e.onKgClick && await e.onKgClick())) {
|
12294
|
-
if (!
|
12239
|
+
if (!i.value) {
|
12295
12240
|
Logger.error("[KgButton] '\u5BFC\u51FA\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
|
12296
12241
|
VarButton: o.value
|
12297
12242
|
});
|
@@ -12300,8 +12245,8 @@ const KgButtonCreate = defineComponent({
|
|
12300
12245
|
c.value = !0;
|
12301
12246
|
try {
|
12302
12247
|
const y = await httpClient().request({
|
12303
|
-
method:
|
12304
|
-
url:
|
12248
|
+
method: s.value,
|
12249
|
+
url: i.value,
|
12305
12250
|
params: l.value,
|
12306
12251
|
responseType: "blob"
|
12307
12252
|
}, {
|
@@ -12343,32 +12288,32 @@ const KgButtonCreate = defineComponent({
|
|
12343
12288
|
slots: t,
|
12344
12289
|
attrs: r
|
12345
12290
|
}) {
|
12346
|
-
const n = useKg(), a = useKgVar(), o = useKgSearch(),
|
12291
|
+
const n = useKg(), a = useKgVar(), o = useKgSearch(), i = useKgTable(), s = computed(() => a.store.getVarButton(a.formID, e.kgVarName)), l = computed(() => {
|
12347
12292
|
var v, _;
|
12348
|
-
return
|
12293
|
+
return s.value ? (_ = (v = s.value) == null ? void 0 : v.cmd) != null ? _ : "" : null;
|
12349
12294
|
}), u = computed(() => {
|
12350
12295
|
var v, _;
|
12351
|
-
return (_ = (v =
|
12296
|
+
return (_ = (v = s.value) == null ? void 0 : v.cmd_method) != null ? _ : "POST";
|
12352
12297
|
});
|
12353
12298
|
computed(() => {
|
12354
12299
|
var _, y, C;
|
12355
12300
|
let v = {
|
12356
12301
|
...(_ = o.model.value) != null ? _ : {}
|
12357
12302
|
};
|
12358
|
-
return
|
12303
|
+
return s.value && (v = {
|
12359
12304
|
...v,
|
12360
|
-
...KgVarUtil.parseCommandParameter((C = (y =
|
12305
|
+
...KgVarUtil.parseCommandParameter((C = (y = s.value) == null ? void 0 : y.cmd_prm) != null ? C : "")
|
12361
12306
|
}), v;
|
12362
12307
|
});
|
12363
12308
|
const c = computed(() => {
|
12364
12309
|
var v, _, y, C, E, T, I, k;
|
12365
|
-
return a.isCreating.value || a.isUpdating.value || a.isCopying.value || a.isDeleting.value ||
|
12310
|
+
return a.isCreating.value || a.isUpdating.value || a.isCopying.value || a.isDeleting.value || i.isRetrieving.value || ((v = s.value) == null ? void 0 : v.dis_no_select_flg) === 1 && ((y = (_ = i.selectedRows.value) == null ? void 0 : _.length) != null ? y : 0) === 0 || ((C = s.value) == null ? void 0 : C.dis_mult_select_flg) === 1 && ((T = (E = i.selectedRows.value) == null ? void 0 : E.length) != null ? T : 0) > 1 || ((I = s.value) == null ? void 0 : I.permission_type) === 2 && !n.p((k = s.value) == null ? void 0 : k.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
|
12366
12311
|
}), g = ref(!1);
|
12367
12312
|
async function p(v) {
|
12368
12313
|
var _, y;
|
12369
12314
|
if (!l.value)
|
12370
12315
|
return Logger.error("[KgButton] '\u5BFC\u5165\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
|
12371
|
-
VarButton:
|
12316
|
+
VarButton: s.value
|
12372
12317
|
}), !1;
|
12373
12318
|
g.value = !0;
|
12374
12319
|
try {
|
@@ -12424,10 +12369,10 @@ const KgButtonCreate = defineComponent({
|
|
12424
12369
|
const t = useKg(), r = useKgVar(), n = useKgTable(), a = computed(() => r.store.getVarButton(r.formID, e.kgVarName)), o = computed(() => {
|
12425
12370
|
var p, b;
|
12426
12371
|
return a.value ? (b = (p = a.value) == null ? void 0 : p.cmd) != null ? b : "" : null;
|
12427
|
-
}),
|
12372
|
+
}), i = computed(() => {
|
12428
12373
|
var p, b;
|
12429
12374
|
return (b = (p = a.value) == null ? void 0 : p.cmd_method) != null ? b : "GET";
|
12430
|
-
}),
|
12375
|
+
}), s = computed(() => {
|
12431
12376
|
var p, b, m, v, _, y, C, E;
|
12432
12377
|
return r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || n.isRetrieving.value || ((p = a.value) == null ? void 0 : p.dis_no_select_flg) === 1 && ((m = (b = n.selectedRows.value) == null ? void 0 : b.length) != null ? m : 0) === 0 || ((v = a.value) == null ? void 0 : v.dis_mult_select_flg) === 1 && ((y = (_ = n.selectedRows.value) == null ? void 0 : _.length) != null ? y : 0) > 1 || ((C = a.value) == null ? void 0 : C.permission_type) === 2 && !t.p((E = a.value) == null ? void 0 : E.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
|
12433
12378
|
}), l = ref(!1);
|
@@ -12442,7 +12387,7 @@ const KgButtonCreate = defineComponent({
|
|
12442
12387
|
l.value = !0;
|
12443
12388
|
try {
|
12444
12389
|
const b = await httpClient().request({
|
12445
|
-
method:
|
12390
|
+
method: i.value,
|
12446
12391
|
url: o.value,
|
12447
12392
|
params: {
|
12448
12393
|
selections: "NULL"
|
@@ -12471,8 +12416,8 @@ const KgButtonCreate = defineComponent({
|
|
12471
12416
|
}
|
12472
12417
|
return () => createVNode(Button, {
|
12473
12418
|
type: "primary",
|
12474
|
-
disabled:
|
12475
|
-
ghost: !e.kgPrimary && !
|
12419
|
+
disabled: s.value,
|
12420
|
+
ghost: !e.kgPrimary && !s.value,
|
12476
12421
|
loading: l.value,
|
12477
12422
|
onClick: u
|
12478
12423
|
}, {
|
@@ -12483,11 +12428,11 @@ const KgButtonCreate = defineComponent({
|
|
12483
12428
|
name: "KgButtonOther",
|
12484
12429
|
props: getProps$f(),
|
12485
12430
|
setup(e) {
|
12486
|
-
const t = useKg(), r = useKgVar(), n = useKgSearch(), a = useKgTable(), o = computed(() => r.store.getVarButton(r.formID, e.kgVarName)),
|
12431
|
+
const t = useKg(), r = useKgVar(), n = useKgSearch(), a = useKgTable(), o = computed(() => r.store.getVarButton(r.formID, e.kgVarName)), i = computed(() => {
|
12487
12432
|
var c, g, p, b, m, v, _, y;
|
12488
12433
|
return r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || a.isRetrieving.value || ((c = o.value) == null ? void 0 : c.dis_no_select_flg) === 1 && ((p = (g = a.selectedRows.value) == null ? void 0 : g.length) != null ? p : 0) === 0 || ((b = o.value) == null ? void 0 : b.dis_mult_select_flg) === 1 && ((v = (m = a.selectedRows.value) == null ? void 0 : m.length) != null ? v : 0) > 1 || ((_ = o.value) == null ? void 0 : _.permission_type) === 2 && !t.p((y = o.value) == null ? void 0 : y.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
|
12489
12434
|
});
|
12490
|
-
async function
|
12435
|
+
async function s() {
|
12491
12436
|
var b, m, v;
|
12492
12437
|
if (e.onKgClick && await e.onKgClick())
|
12493
12438
|
return;
|
@@ -12537,10 +12482,10 @@ const KgButtonCreate = defineComponent({
|
|
12537
12482
|
}
|
12538
12483
|
return () => createVNode(Button, {
|
12539
12484
|
type: "primary",
|
12540
|
-
disabled:
|
12485
|
+
disabled: i.value,
|
12541
12486
|
danger: e.kgColor === KG_BUTTON_COLOR.DANGER,
|
12542
|
-
ghost: !e.kgPrimary && !
|
12543
|
-
onClick:
|
12487
|
+
ghost: !e.kgPrimary && !i.value,
|
12488
|
+
onClick: s
|
12544
12489
|
}, {
|
12545
12490
|
default: () => [l(), u()]
|
12546
12491
|
});
|
@@ -12562,7 +12507,7 @@ const KgButtonCreate = defineComponent({
|
|
12562
12507
|
icon: e.kgIcon
|
12563
12508
|
}, null)]) : createVNode(SearchOutlined$1, null, null);
|
12564
12509
|
}
|
12565
|
-
function
|
12510
|
+
function i() {
|
12566
12511
|
return e.kgText ? e.kgText : t.t("kg.query");
|
12567
12512
|
}
|
12568
12513
|
return () => createVNode(Button, {
|
@@ -12572,7 +12517,7 @@ const KgButtonCreate = defineComponent({
|
|
12572
12517
|
ghost: !e.kgPrimary && !n.value,
|
12573
12518
|
onClick: a
|
12574
12519
|
}, {
|
12575
|
-
default: () => [o(),
|
12520
|
+
default: () => [o(), i()]
|
12576
12521
|
});
|
12577
12522
|
}
|
12578
12523
|
}), KgButtonUpdate = defineComponent({
|
@@ -12582,8 +12527,8 @@ const KgButtonCreate = defineComponent({
|
|
12582
12527
|
slots: t,
|
12583
12528
|
emit: r
|
12584
12529
|
}) {
|
12585
|
-
const n = useKg(), a = useKgVar(), o = useKgTable(),
|
12586
|
-
|
12530
|
+
const n = useKg(), a = useKgVar(), o = useKgTable(), i = useKgButton(), s = useKgSubmit();
|
12531
|
+
i.store.$onAction(async ({
|
12587
12532
|
name: _,
|
12588
12533
|
args: y
|
12589
12534
|
}) => {
|
@@ -12598,7 +12543,7 @@ const KgButtonCreate = defineComponent({
|
|
12598
12543
|
return a.isCreating.value || a.isCopying.value || a.isDeleting.value || ((_ = l.value) == null ? void 0 : _.dis_no_select_flg) === 1 && ((C = (y = o.selectedRows.value) == null ? void 0 : y.length) != null ? C : 0) === 0 || ((E = l.value) == null ? void 0 : E.dis_mult_select_flg) === 1 && ((I = (T = o.selectedRows.value) == null ? void 0 : T.length) != null ? I : 0) > 1 || ((k = l.value) == null ? void 0 : k.permission_type) === 2 && !n.p((w = l.value) == null ? void 0 : w.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
|
12599
12544
|
});
|
12600
12545
|
async function c() {
|
12601
|
-
e.onKgClick && await e.onKgClick() || await
|
12546
|
+
e.onKgClick && await e.onKgClick() || await i.store.emit(a.formID, "updateBeforeClick", {
|
12602
12547
|
button: e.kgButton,
|
12603
12548
|
row: o.selectedRow.value
|
12604
12549
|
}) || a.store.setIsUpdating(a.formID, !0);
|
@@ -12617,7 +12562,7 @@ const KgButtonCreate = defineComponent({
|
|
12617
12562
|
return e.kgText ? e.kgText : n.t("kg.update");
|
12618
12563
|
}
|
12619
12564
|
function m() {
|
12620
|
-
return
|
12565
|
+
return s.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && a.isUpdating.value ? null : createVNode(Button, {
|
12621
12566
|
type: "primary",
|
12622
12567
|
disabled: u.value,
|
12623
12568
|
ghost: !e.kgPrimary && !u.value,
|
@@ -12627,7 +12572,7 @@ const KgButtonCreate = defineComponent({
|
|
12627
12572
|
});
|
12628
12573
|
}
|
12629
12574
|
function v() {
|
12630
|
-
return
|
12575
|
+
return s.displayType.value !== KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE || !a.isUpdating.value ? null : createVNode(Fragment, null, [createVNode(Button, {
|
12631
12576
|
type: "primary"
|
12632
12577
|
}, {
|
12633
12578
|
default: () => [createVNode(CheckOutlined$1, null, null), n.t("kg.save")]
|
@@ -12652,13 +12597,13 @@ const KgButtonItem = defineComponent({
|
|
12652
12597
|
const t = useKg(), r = useKgVar();
|
12653
12598
|
useKgTable();
|
12654
12599
|
const n = computed(() => r.store.getVarButton(r.formID, e.kgVarName)), a = computed(() => {
|
12655
|
-
let
|
12600
|
+
let s = "kg-button-item";
|
12656
12601
|
switch (e.kgColor) {
|
12657
12602
|
case KG_BUTTON_COLOR.WARN:
|
12658
|
-
|
12603
|
+
s += " kg-button-item--warn";
|
12659
12604
|
break;
|
12660
12605
|
}
|
12661
|
-
return
|
12606
|
+
return s;
|
12662
12607
|
}), o = computed(() => {
|
12663
12608
|
var l, u, c, g;
|
12664
12609
|
return {
|
@@ -12670,9 +12615,9 @@ const KgButtonItem = defineComponent({
|
|
12670
12615
|
"kg-cmd": (g = n.value) == null ? void 0 : g.cmd
|
12671
12616
|
};
|
12672
12617
|
});
|
12673
|
-
function
|
12674
|
-
var
|
12675
|
-
if (((
|
12618
|
+
function i() {
|
12619
|
+
var s, l;
|
12620
|
+
if (((s = n.value) == null ? void 0 : s.permission_type) !== 2 && !t.p((l = n.value) == null ? void 0 : l.permission_code))
|
12676
12621
|
return null;
|
12677
12622
|
switch (e.kgType) {
|
12678
12623
|
case KG_BUTTON_TYPE.SEARCH:
|
@@ -12696,11 +12641,11 @@ const KgButtonItem = defineComponent({
|
|
12696
12641
|
}
|
12697
12642
|
}
|
12698
12643
|
return () => {
|
12699
|
-
let
|
12644
|
+
let s;
|
12700
12645
|
return createVNode(ConfigProvider, {
|
12701
12646
|
autoInsertSpaceInButton: !1
|
12702
|
-
}, _isSlot$4(
|
12703
|
-
default: () => [
|
12647
|
+
}, _isSlot$4(s = i()) ? s : {
|
12648
|
+
default: () => [s]
|
12704
12649
|
});
|
12705
12650
|
};
|
12706
12651
|
}
|
@@ -12718,11 +12663,11 @@ const getProps$e = () => ({
|
|
12718
12663
|
function o(b) {
|
12719
12664
|
return n.store.emit(r.formID, "click", b);
|
12720
12665
|
}
|
12721
|
-
function
|
12666
|
+
function i(b) {
|
12722
12667
|
if (e.kgDisabled)
|
12723
12668
|
return e.kgDisabled(b);
|
12724
12669
|
}
|
12725
|
-
function
|
12670
|
+
function s(b) {
|
12726
12671
|
switch (b.primary_flg) {
|
12727
12672
|
case 1:
|
12728
12673
|
return !0;
|
@@ -12755,8 +12700,8 @@ const getProps$e = () => ({
|
|
12755
12700
|
kgIcon: b.icon,
|
12756
12701
|
kgText: l(b),
|
12757
12702
|
kgColor: b.color,
|
12758
|
-
kgPrimary:
|
12759
|
-
kgDisabled:
|
12703
|
+
kgPrimary: s(b),
|
12704
|
+
kgDisabled: i(b),
|
12760
12705
|
onKgClick: () => o(b)
|
12761
12706
|
}, null);
|
12762
12707
|
}
|
@@ -12924,22 +12869,22 @@ const useKgSearchStore = () => (store$2 || (store$2 = defineStore("KgSearch", {
|
|
12924
12869
|
switch (t) {
|
12925
12870
|
case "search":
|
12926
12871
|
{
|
12927
|
-
const
|
12928
|
-
|
12872
|
+
const i = this.onSearchListenersMap.get(o);
|
12873
|
+
i && i.forEach((s) => s(r == null ? void 0 : r.resetPageIndex));
|
12929
12874
|
}
|
12930
12875
|
break;
|
12931
12876
|
case "reset":
|
12932
12877
|
{
|
12933
|
-
const
|
12934
|
-
|
12878
|
+
const i = this.onResetListenersMap.get(o);
|
12879
|
+
i && i.forEach((s) => s());
|
12935
12880
|
}
|
12936
12881
|
break;
|
12937
12882
|
case "ready":
|
12938
12883
|
{
|
12939
|
-
const
|
12940
|
-
|
12941
|
-
l.once && !l.invoked && (l.invoked = !0,
|
12942
|
-
}),
|
12884
|
+
const i = [], s = this.onReadyListenersMap.get(o);
|
12885
|
+
s && s.forEach((l) => {
|
12886
|
+
l.once && !l.invoked && (l.invoked = !0, i.push(l)), l();
|
12887
|
+
}), i.forEach((l) => this.removeEventListener(o, "ready", l));
|
12943
12888
|
}
|
12944
12889
|
break;
|
12945
12890
|
}
|
@@ -13002,15 +12947,15 @@ function useKgSearch(e) {
|
|
13002
12947
|
return isFunction$2(c) ? (g && (c.once = !0), r.addEventListener(t.formID, "ready", c), onUnmounted(() => r.removeEventListener(t.formID, "ready", c)), () => r.removeEventListener(t.formID, "ready", c)) : () => {
|
13003
12948
|
};
|
13004
12949
|
}
|
13005
|
-
const
|
12950
|
+
const i = computed(() => r.getIsReady(t.formID)), s = computed(() => r.getModel(t.formID)), l = computed(() => r.getSearchFn(t.formID)), u = computed(() => r.getResetFn(t.formID));
|
13006
12951
|
return {
|
13007
12952
|
formID: t.formID,
|
13008
12953
|
store: r,
|
13009
12954
|
onSearch: n,
|
13010
12955
|
onReset: a,
|
13011
12956
|
onReady: o,
|
13012
|
-
isReady:
|
13013
|
-
model:
|
12957
|
+
isReady: i,
|
12958
|
+
model: s,
|
13014
12959
|
search: l,
|
13015
12960
|
reset: u
|
13016
12961
|
};
|
@@ -13201,8 +13146,8 @@ const leftVarProfileDetailColumns = (e) => {
|
|
13201
13146
|
setup(e, {
|
13202
13147
|
emit: t
|
13203
13148
|
}) {
|
13204
|
-
const r = useKg(), n = useKgVar(FORM_ID__VAR_PROFILE_MASTER, !0, 1), a = useKgSearch(FORM_ID__VAR_PROFILE_MASTER), o = useKgButton(FORM_ID__VAR_PROFILE_MASTER),
|
13205
|
-
|
13149
|
+
const r = useKg(), n = useKgVar(FORM_ID__VAR_PROFILE_MASTER, !0, 1), a = useKgSearch(FORM_ID__VAR_PROFILE_MASTER), o = useKgButton(FORM_ID__VAR_PROFILE_MASTER), i = useKgSubmit(FORM_ID__VAR_PROFILE_MASTER), s = useKgVar(e.hostFormID);
|
13150
|
+
i.onOpen(async ({
|
13206
13151
|
isCreating: m,
|
13207
13152
|
isUpdating: v,
|
13208
13153
|
isCopying: _,
|
@@ -13210,7 +13155,7 @@ const leftVarProfileDetailColumns = (e) => {
|
|
13210
13155
|
model: C
|
13211
13156
|
}) => {
|
13212
13157
|
var T, I, k;
|
13213
|
-
const E =
|
13158
|
+
const E = s.store.getSystemVarProfileDetails(s.formID);
|
13214
13159
|
switch (l.value = E ? cloneDeep(unref(toRaw(E))) : [], !0) {
|
13215
13160
|
case m:
|
13216
13161
|
u.value = [];
|
@@ -13219,7 +13164,7 @@ const leftVarProfileDetailColumns = (e) => {
|
|
13219
13164
|
case _:
|
13220
13165
|
if (y != null && y.id)
|
13221
13166
|
try {
|
13222
|
-
|
13167
|
+
i.store.setIsLoading(n.formID, !0);
|
13223
13168
|
const w = await QueryByID({
|
13224
13169
|
params: {
|
13225
13170
|
id: y.id
|
@@ -13239,7 +13184,7 @@ const leftVarProfileDetailColumns = (e) => {
|
|
13239
13184
|
} catch (w) {
|
13240
13185
|
throw w;
|
13241
13186
|
} finally {
|
13242
|
-
|
13187
|
+
i.store.setIsLoading(n.formID, !1);
|
13243
13188
|
}
|
13244
13189
|
else
|
13245
13190
|
u.value = [];
|
@@ -13251,13 +13196,13 @@ const leftVarProfileDetailColumns = (e) => {
|
|
13251
13196
|
break;
|
13252
13197
|
}
|
13253
13198
|
return !1;
|
13254
|
-
}),
|
13199
|
+
}), i.onBeforeOk(async ({
|
13255
13200
|
model: m
|
13256
13201
|
}) => {
|
13257
13202
|
var _, y;
|
13258
13203
|
const v = m.value;
|
13259
|
-
return v.frm_id =
|
13260
|
-
}),
|
13204
|
+
return v.frm_id = s.formID, v.varProfileDetails = (y = (_ = l.value) == null ? void 0 : _.filter((C) => u.value.includes(C.id))) != null ? y : [], !1;
|
13205
|
+
}), i.onOk(async () => (s.store.retrieve(s.formID), !1)), o.onUpdateBeforeClick(({
|
13261
13206
|
row: m
|
13262
13207
|
}) => (m == null ? void 0 : m.cust_lvl) === KG_CUSTOM_LEVEL.L0 ? new Promise((v) => {
|
13263
13208
|
KgUtil.confirm({
|
@@ -13272,7 +13217,7 @@ const leftVarProfileDetailColumns = (e) => {
|
|
13272
13217
|
v(!0);
|
13273
13218
|
}
|
13274
13219
|
});
|
13275
|
-
}) : Promise.resolve(!1)), o.onDeleteOk(() => (
|
13220
|
+
}) : Promise.resolve(!1)), o.onDeleteOk(() => (s.store.retrieve(s.formID), Promise.resolve(!1)));
|
13276
13221
|
const l = ref([]), u = ref([]), c = ref({
|
13277
13222
|
KgSubmit: {
|
13278
13223
|
"KgForm.Item": {
|
@@ -13467,8 +13412,8 @@ function _useLayoutHeaderResizeObserver() {
|
|
13467
13412
|
return onMounted(() => {
|
13468
13413
|
const t = document.querySelector("div.jeecg-layout-header-center");
|
13469
13414
|
t && (e = new ResizeObserver((r) => {
|
13470
|
-
var
|
13471
|
-
const n = t.getBoundingClientRect().left, a = (
|
13415
|
+
var i, s;
|
13416
|
+
const n = t.getBoundingClientRect().left, a = (s = (i = r[0].borderBoxSize[0]) == null ? void 0 : i.inlineSize) != null ? s : 0, o = document.querySelector("#kg-search-header-teleport");
|
13472
13417
|
o && (o.style.left = `${n}px`, o.style.width = `${a}px`);
|
13473
13418
|
}), e.observe(t));
|
13474
13419
|
}), onUnmounted(() => {
|
@@ -13481,9 +13426,9 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
13481
13426
|
setup(e) {
|
13482
13427
|
const t = inject(DI_KG_SLOTS, null), r = useKg(), n = useKgVar(), a = useKgSearch(), o = useKgTable();
|
13483
13428
|
_useLayoutHeaderResizeObserver();
|
13484
|
-
const
|
13429
|
+
const i = computed(() => n.store.getFormLevel(n.formID)), s = computed(() => n.store.getVarProfileConfig(n.formID)), l = computed(() => {
|
13485
13430
|
var N;
|
13486
|
-
return
|
13431
|
+
return i.value > 0 ? !1 : ((N = s.value) == null ? void 0 : N.header_teleport_flg) !== 0;
|
13487
13432
|
}), u = computed(() => getDefaultHeight(n.currentVarProfileDetails.value, l.value)), c = computed(() => getMaxHeight(n.currentVarProfileDetails.value, l.value)), g = computed(() => l.value ? 1 : HEADER_HEIGHT), p = computed(() => {
|
13488
13433
|
var N, x;
|
13489
13434
|
return !!(o.isRetrieving.value || ((N = n.varButtonSearch.value) == null ? void 0 : N.permission_type) === 2 && !r.p((x = n.varButtonSearch.value) == null ? void 0 : x.permission_code) || n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value);
|
@@ -13509,10 +13454,10 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
13509
13454
|
}
|
13510
13455
|
}), k = computed(() => {
|
13511
13456
|
var N;
|
13512
|
-
return ((N =
|
13457
|
+
return ((N = s.value) == null ? void 0 : N.vis_flg) === 1;
|
13513
13458
|
}), w = computed(() => {
|
13514
13459
|
var N;
|
13515
|
-
return ((N =
|
13460
|
+
return ((N = s.value) == null ? void 0 : N.resizable_flg) !== 0;
|
13516
13461
|
}), M = computed(() => !!(n.isRetrievingVar.value || n.isRetrievingVarProfileMaster.value || l.value && !!n.isOtherRequesting.value)), A = computed(() => !!n.isRetrievingVar.value || !!n.isRetrievingVarProfileMaster.value), O = computed(() => {
|
13517
13462
|
let N = "kg-search";
|
13518
13463
|
return k.value && (N += " kg-search--visible"), l.value && (N += " kg-search--teleport"), N;
|
@@ -13709,14 +13654,14 @@ function useEventListener(...e) {
|
|
13709
13654
|
if (isString(e[0]) ? ([r, n, a] = e, t = defaultWindow) : [t, r, n, a] = e, !t)
|
13710
13655
|
return noop;
|
13711
13656
|
let o = noop;
|
13712
|
-
const
|
13657
|
+
const i = watch(() => unrefElement(t), (l) => {
|
13713
13658
|
o(), l && (l.addEventListener(r, n, a), o = () => {
|
13714
13659
|
l.removeEventListener(r, n, a), o = noop;
|
13715
13660
|
});
|
13716
|
-
}, { immediate: !0, flush: "post" }),
|
13717
|
-
|
13661
|
+
}, { immediate: !0, flush: "post" }), s = () => {
|
13662
|
+
i(), o();
|
13718
13663
|
};
|
13719
|
-
return tryOnScopeDispose(
|
13664
|
+
return tryOnScopeDispose(s), s;
|
13720
13665
|
}
|
13721
13666
|
const _global = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, globalKey = "__vueuse_ssr_handlers__";
|
13722
13667
|
_global[globalKey] = _global[globalKey] || {};
|
@@ -13738,9 +13683,9 @@ function useMagicKeys(e = {}) {
|
|
13738
13683
|
aliasMap: n = DefaultMagicKeysAliasMap,
|
13739
13684
|
passive: a = !0,
|
13740
13685
|
onEventFired: o = noop
|
13741
|
-
} = e,
|
13686
|
+
} = e, i = reactive(/* @__PURE__ */ new Set()), s = { toJSON() {
|
13742
13687
|
return {};
|
13743
|
-
}, current:
|
13688
|
+
}, current: i }, l = t ? reactive(s) : s, u = /* @__PURE__ */ new Set(), c = /* @__PURE__ */ new Set();
|
13744
13689
|
function g(v, _) {
|
13745
13690
|
v in l && (t ? l[v] = _ : l[v].value = _);
|
13746
13691
|
}
|
@@ -13751,12 +13696,12 @@ function useMagicKeys(e = {}) {
|
|
13751
13696
|
function b(v, _) {
|
13752
13697
|
var y, C;
|
13753
13698
|
const E = (y = v.key) == null ? void 0 : y.toLowerCase(), T = (C = v.code) == null ? void 0 : C.toLowerCase(), I = [T, E].filter(Boolean);
|
13754
|
-
T && (_ ?
|
13699
|
+
T && (_ ? i.add(v.code) : i.delete(v.code));
|
13755
13700
|
for (const k of I)
|
13756
13701
|
c.add(k), g(k, _);
|
13757
13702
|
E === "meta" && !_ ? (u.forEach((k) => {
|
13758
|
-
|
13759
|
-
}), u.clear()) : typeof v.getModifierState == "function" && v.getModifierState("Meta") && _ && [...
|
13703
|
+
i.delete(k), g(k, !1);
|
13704
|
+
}), u.clear()) : typeof v.getModifierState == "function" && v.getModifierState("Meta") && _ && [...i, ...I].forEach((k) => u.add(k));
|
13760
13705
|
}
|
13761
13706
|
r && (useEventListener(r, "keydown", (v) => (b(v, !0), o(v)), { passive: a }), useEventListener(r, "keyup", (v) => (b(v, !1), o(v)), { passive: a }), useEventListener("blur", p, { passive: !0 }), useEventListener("focus", p, { passive: !0 }));
|
13762
13707
|
const m = new Proxy(l, {
|
@@ -13805,17 +13750,17 @@ const KgVarConfig_FormIDsModal = "", getProps$8 = () => ({
|
|
13805
13750
|
function o(u, c) {
|
13806
13751
|
switch (u == null ? void 0 : u.detail) {
|
13807
13752
|
case 2:
|
13808
|
-
|
13753
|
+
i();
|
13809
13754
|
break;
|
13810
13755
|
default:
|
13811
13756
|
n.value = [c.id];
|
13812
13757
|
break;
|
13813
13758
|
}
|
13814
13759
|
}
|
13815
|
-
function
|
13760
|
+
function i() {
|
13816
13761
|
t("update:visible", !1), t("kgOk", n.value[0]);
|
13817
13762
|
}
|
13818
|
-
function
|
13763
|
+
function s() {
|
13819
13764
|
t("update:visible", !1);
|
13820
13765
|
}
|
13821
13766
|
function l() {
|
@@ -13831,9 +13776,9 @@ const KgVarConfig_FormIDsModal = "", getProps$8 = () => ({
|
|
13831
13776
|
width: "800px",
|
13832
13777
|
confirmLoading: !1,
|
13833
13778
|
wrapClassName: "kg-var-config-form-ids-modal",
|
13834
|
-
onCancel:
|
13779
|
+
onCancel: s,
|
13835
13780
|
kgFullHeight: !1,
|
13836
|
-
onOk:
|
13781
|
+
onOk: i,
|
13837
13782
|
okButtonProps: {
|
13838
13783
|
disabled: n.value.length < 1
|
13839
13784
|
}
|
@@ -14040,11 +13985,11 @@ const getProps$2 = () => ({
|
|
14040
13985
|
isAllLanguage: a.value
|
14041
13986
|
});
|
14042
13987
|
}
|
14043
|
-
function
|
13988
|
+
function i() {
|
14044
13989
|
t("update:visible", !1);
|
14045
13990
|
}
|
14046
13991
|
return () => {
|
14047
|
-
let
|
13992
|
+
let s, l, u, c;
|
14048
13993
|
return createVNode(KgModal, {
|
14049
13994
|
visible: e.visible,
|
14050
13995
|
title: r.t("kg.KgVarConfig.createConfig"),
|
@@ -14053,7 +13998,7 @@ const getProps$2 = () => ({
|
|
14053
13998
|
width: 500,
|
14054
13999
|
wrapClassName: "kg-var-config-modal-var-create-modal",
|
14055
14000
|
kgFullHeight: !1,
|
14056
|
-
onCancel:
|
14001
|
+
onCancel: i,
|
14057
14002
|
onOk: o
|
14058
14003
|
}, {
|
14059
14004
|
default: () => [createVNode(Row, {
|
@@ -14083,8 +14028,8 @@ const getProps$2 = () => ({
|
|
14083
14028
|
}, {
|
14084
14029
|
default: () => [createVNode(Radio.Button, {
|
14085
14030
|
value: !0
|
14086
|
-
}, _isSlot$1(
|
14087
|
-
default: () => [
|
14031
|
+
}, _isSlot$1(s = r.t("kg.KgVarConfig.allForm")) ? s : {
|
14032
|
+
default: () => [s]
|
14088
14033
|
}), createVNode(Radio.Button, {
|
14089
14034
|
value: !1
|
14090
14035
|
}, _isSlot$1(l = r.t("kg.KgVarConfig.currentForm")) ? l : {
|
@@ -14148,7 +14093,7 @@ function _isSlot(e) {
|
|
14148
14093
|
const KgVarConfigModalVarVarCatalog = defineComponent({
|
14149
14094
|
name: "KgVarConfigModalVarVarCatalog",
|
14150
14095
|
setup() {
|
14151
|
-
const e = inject(DI_CONFIG_FORM_ID, null), t = useKg(), r = useKgVarStore()(), n = useKgVarConfigStore()(), a = ref(!1), o = ref(!1),
|
14096
|
+
const e = inject(DI_CONFIG_FORM_ID, null), t = useKg(), r = useKgVarStore()(), n = useKgVarConfigStore()(), a = ref(!1), o = ref(!1), i = ref(!1), s = ref(null), l = ref({
|
14152
14097
|
var_text: ""
|
14153
14098
|
}), u = ref([]), c = ref(null), g = ref([]), p = ref({
|
14154
14099
|
fixed: !0,
|
@@ -14158,7 +14103,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
14158
14103
|
onSelect: ($) => w($)
|
14159
14104
|
}), b = ref({
|
14160
14105
|
visible: !1
|
14161
|
-
}), m = computed(() => !!(unref(c) || unref(a) || unref(o) || unref(
|
14106
|
+
}), m = computed(() => !!(unref(c) || unref(a) || unref(o) || unref(i))), v = computed(() => {
|
14162
14107
|
var $;
|
14163
14108
|
return !!c.value || (($ = n.getSelectedVarCatalog) == null ? void 0 : $.cust_lvl) === KG_CUSTOM_LEVEL.L0;
|
14164
14109
|
}), _ = computed(() => !!(!unref(c) || unref(a) || unref(o))), y = computed(() => !!(!unref(n.getSelectedVarCatalog) || unref(a)));
|
@@ -14168,7 +14113,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
14168
14113
|
immediate: !0
|
14169
14114
|
}), watch(() => n.getSelectedVarCatalog, async ($) => {
|
14170
14115
|
var P, D;
|
14171
|
-
l.value.var_text = (P = $ == null ? void 0 : $.var_text) != null ? P : "", (D =
|
14116
|
+
l.value.var_text = (P = $ == null ? void 0 : $.var_text) != null ? P : "", (D = s.value) == null || D.clearValidate();
|
14172
14117
|
});
|
14173
14118
|
async function C($ = !1) {
|
14174
14119
|
var P, D, V;
|
@@ -14203,7 +14148,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
14203
14148
|
async function E() {
|
14204
14149
|
var $, P, D;
|
14205
14150
|
try {
|
14206
|
-
o.value = !0, await (($ =
|
14151
|
+
o.value = !0, await (($ = s.value) == null ? void 0 : $.validate());
|
14207
14152
|
const V = new VarCatalog({
|
14208
14153
|
...(P = n.getSelectedVarCatalog) != null ? P : {},
|
14209
14154
|
var_text: (D = l.value) == null ? void 0 : D.var_text
|
@@ -14307,7 +14252,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
14307
14252
|
return createVNode("div", {
|
14308
14253
|
class: "form"
|
14309
14254
|
}, [createVNode(Form, {
|
14310
|
-
ref:
|
14255
|
+
ref: s,
|
14311
14256
|
model: l.value,
|
14312
14257
|
onSubmit: E
|
14313
14258
|
}, {
|
@@ -14389,7 +14334,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
14389
14334
|
o();
|
14390
14335
|
});
|
14391
14336
|
async function o() {
|
14392
|
-
var
|
14337
|
+
var s;
|
14393
14338
|
if (!!(e != null && e.value)) {
|
14394
14339
|
n.value = !0;
|
14395
14340
|
try {
|
@@ -14402,7 +14347,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
14402
14347
|
frm_id: e == null ? void 0 : e.value
|
14403
14348
|
}
|
14404
14349
|
});
|
14405
|
-
a.value = sortBy$1(l != null ? l : [], [(u) => u.frm_id === "ALL" ? 1 : -1, (u) => u.var_nam]), r.setSelectedVar((
|
14350
|
+
a.value = sortBy$1(l != null ? l : [], [(u) => u.frm_id === "ALL" ? 1 : -1, (u) => u.var_nam]), r.setSelectedVar((s = a.value[0]) != null ? s : null);
|
14406
14351
|
} catch (l) {
|
14407
14352
|
console.error(l);
|
14408
14353
|
} finally {
|
@@ -14410,14 +14355,14 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
14410
14355
|
}
|
14411
14356
|
}
|
14412
14357
|
}
|
14413
|
-
function s
|
14358
|
+
function i(s) {
|
14414
14359
|
var l;
|
14415
|
-
((l = r.getSelectedVar) == null ? void 0 : l.id) !==
|
14360
|
+
((l = r.getSelectedVar) == null ? void 0 : l.id) !== s.id && (r.getSelectedVarCatalog && !r.getSelectedVarCatalog.id ? KgUtil.confirm({
|
14416
14361
|
content: t.t("kg.KgVarConfig.discardConfirmMessage"),
|
14417
14362
|
onOk: () => {
|
14418
|
-
r.setSelectedVarCatalog(null), r.setSelectedVar(unref(
|
14363
|
+
r.setSelectedVarCatalog(null), r.setSelectedVar(unref(s));
|
14419
14364
|
}
|
14420
|
-
}) : r.setSelectedVar(unref(
|
14365
|
+
}) : r.setSelectedVar(unref(s)));
|
14421
14366
|
}
|
14422
14367
|
return () => createVNode(Card, {
|
14423
14368
|
class: "kg-var-config-modal-var-vars",
|
@@ -14436,12 +14381,12 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
14436
14381
|
columns: columns(),
|
14437
14382
|
dataSource: a.value,
|
14438
14383
|
loading: n.value,
|
14439
|
-
rowClassName: (
|
14384
|
+
rowClassName: (s) => {
|
14440
14385
|
var l;
|
14441
|
-
return unref(
|
14386
|
+
return unref(s).id === ((l = r.getSelectedVar) == null ? void 0 : l.id) ? "ant-table-row-selected" : "";
|
14442
14387
|
},
|
14443
|
-
customRow: (
|
14444
|
-
onClick: () => s
|
14388
|
+
customRow: (s) => ({
|
14389
|
+
onClick: () => i(s)
|
14445
14390
|
})
|
14446
14391
|
}, null)]
|
14447
14392
|
});
|
@@ -14487,8 +14432,8 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
14487
14432
|
emit: t
|
14488
14433
|
}) {
|
14489
14434
|
const r = inject(DI_CONFIG_FORM_ID, null), n = useKg(), a = ref("1");
|
14490
|
-
watch(() => e.visible, (
|
14491
|
-
|
14435
|
+
watch(() => e.visible, (i) => {
|
14436
|
+
i && (a.value = "1");
|
14492
14437
|
});
|
14493
14438
|
function o() {
|
14494
14439
|
t("update:visible", !1);
|
@@ -14504,7 +14449,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
14504
14449
|
}, {
|
14505
14450
|
default: () => [createVNode(Tabs, {
|
14506
14451
|
activeKey: a.value,
|
14507
|
-
"onUpdate:activeKey": (
|
14452
|
+
"onUpdate:activeKey": (i) => a.value = i,
|
14508
14453
|
size: "small"
|
14509
14454
|
}, {
|
14510
14455
|
default: () => createVNode(Fragment, null, [createVNode(Tabs.TabPane, {
|
@@ -14559,8 +14504,8 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
14559
14504
|
}), a = ref({
|
14560
14505
|
visible: !1
|
14561
14506
|
});
|
14562
|
-
watch(t["Ctrl+Shift+F5"], (
|
14563
|
-
if (!!
|
14507
|
+
watch(t["Ctrl+Shift+F5"], (i) => {
|
14508
|
+
if (!!i)
|
14564
14509
|
if (n.value.visible)
|
14565
14510
|
n.value.visible = !1;
|
14566
14511
|
else
|
@@ -14578,17 +14523,17 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
14578
14523
|
}, {
|
14579
14524
|
immediate: !0
|
14580
14525
|
});
|
14581
|
-
function o(
|
14582
|
-
r.value =
|
14526
|
+
function o(i) {
|
14527
|
+
r.value = i, n.value.visible = !n.value.visible;
|
14583
14528
|
}
|
14584
14529
|
return () => createVNode(Fragment, null, [createVNode(KgVarConfigFormIDsModal, {
|
14585
14530
|
visible: a.value.visible,
|
14586
14531
|
formIDs: e.getTopFormIDs,
|
14587
|
-
"onUpdate:visible": (
|
14532
|
+
"onUpdate:visible": (i) => a.value.visible = i,
|
14588
14533
|
onKgOk: o
|
14589
14534
|
}, null), createVNode(KgVarConfigModal, {
|
14590
14535
|
visible: n.value.visible,
|
14591
|
-
"onUpdate:visible": (
|
14536
|
+
"onUpdate:visible": (i) => n.value.visible = i
|
14592
14537
|
}, null)]);
|
14593
14538
|
}
|
14594
14539
|
}), WAREHOUSE_000000 = "data:image/svg+xml;base64,PHN2ZyBmaWxsPSdub25lJyBoZWlnaHQ9JzE0JyBzdHlsZT0nY29sb3I6IzAwMDAwMGQ5Oycgdmlld0JveD0nMCAwIDI0IDI0JyB3aWR0aD0nMTQnIHhtbG5zPSdodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2Zyc+DQogIDxwYXRoDQogICAgY2xpcC1ydWxlPSdldmVub2RkJw0KICAgIGQ9J003Ljg5MDI5IDYuMjA3MzlDOC4xNjMwNyA1Ljk5NzU1IDguNTI0NTkgNS45NDI3MyA4Ljg0NzMxIDYuMDYyMjZMMjIuMzQ3MyAxMS4wNjIzQzIyLjczOTYgMTEuMjA3NiAyMyAxMS41ODE3IDIzIDEyVjIyQzIzIDIyLjU1MjMgMjIuNTUyMyAyMyAyMiAyM0gyQzEuNDQ3NzIgMjMgMSAyMi41NTIzIDEgMjJWMTJDMSAxMS42ODk1IDEuMTQ0MiAxMS4zOTY3IDEuMzkwMjkgMTEuMjA3NEw3Ljg5MDI5IDYuMjA3MzlaTTE0IDIxSDE2LjVWMTYuNzIwOEwxNCAxNS44ODc0VjIxWk0xOC41IDIxVjE2QzE4LjUgMTUuNTY5NiAxOC4yMjQ2IDE1LjE4NzQgMTcuODE2MiAxNS4wNTEzTDEzLjMxNjIgMTMuNTUxM0MxMy4wMTEzIDEzLjQ0OTcgMTIuNjc2MSAxMy41MDA4IDEyLjQxNTMgMTMuNjg4OEMxMi4xNTQ1IDEzLjg3NjcgMTIgMTQuMTc4NiAxMiAxNC41VjIxSDkuNVY4LjQzNjc2TDIxIDEyLjY5NlYyMUgxOC41Wk03LjUgOS4wMzA4N1YyMUgzVjEyLjQ5MjRMNy41IDkuMDMwODdaJw0KICAgIGZpbGw9J2N1cnJlbnRDb2xvcicNCiAgICBmaWxsLW9wYWNpdHk9JzAuODUnDQogICAgZmlsbC1ydWxlPSdldmVub2RkJw0KICAvPg0KPC9zdmc+DQo=", WAREHOUSE_1890ff = "data:image/svg+xml;base64,PHN2ZyBmaWxsPSdub25lJyBoZWlnaHQ9JzE0JyBzdHlsZT0nY29sb3I6IzE4OTBmZjsnIHZpZXdCb3g9JzAgMCAyNCAyNCcgd2lkdGg9JzE0JyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnPg0KICA8cGF0aA0KICAgIGNsaXAtcnVsZT0nZXZlbm9kZCcNCiAgICBkPSdNNy44OTAyOSA2LjIwNzM5QzguMTYzMDcgNS45OTc1NSA4LjUyNDU5IDUuOTQyNzMgOC44NDczMSA2LjA2MjI2TDIyLjM0NzMgMTEuMDYyM0MyMi43Mzk2IDExLjIwNzYgMjMgMTEuNTgxNyAyMyAxMlYyMkMyMyAyMi41NTIzIDIyLjU1MjMgMjMgMjIgMjNIMkMxLjQ0NzcyIDIzIDEgMjIuNTUyMyAxIDIyVjEyQzEgMTEuNjg5NSAxLjE0NDIgMTEuMzk2NyAxLjM5MDI5IDExLjIwNzRMNy44OTAyOSA2LjIwNzM5Wk0xNCAyMUgxNi41VjE2LjcyMDhMMTQgMTUuODg3NFYyMVpNMTguNSAyMVYxNkMxOC41IDE1LjU2OTYgMTguMjI0NiAxNS4xODc0IDE3LjgxNjIgMTUuMDUxM0wxMy4zMTYyIDEzLjU1MTNDMTMuMDExMyAxMy40NDk3IDEyLjY3NjEgMTMuNTAwOCAxMi40MTUzIDEzLjY4ODhDMTIuMTU0NSAxMy44NzY3IDEyIDE0LjE3ODYgMTIgMTQuNVYyMUg5LjVWOC40MzY3NkwyMSAxMi42OTZWMjFIMTguNVpNNy41IDkuMDMwODdWMjFIM1YxMi40OTI0TDcuNSA5LjAzMDg3WicNCiAgICBmaWxsPSdjdXJyZW50Q29sb3InDQogICAgZmlsbC1vcGFjaXR5PScwLjg1Jw0KICAgIGZpbGwtcnVsZT0nZXZlbm9kZCcNCiAgLz4NCjwvc3ZnPg0K", LOCAL_STORAGE_KEY = "KgWarehouse.warehouse";
|
@@ -14607,10 +14552,10 @@ const useKgWarehouseStore = (e) => (store || (store = defineStore("KgWarehouse",
|
|
14607
14552
|
var r, n, a, o;
|
14608
14553
|
const t = this.warehouse || store_legacy.get(LOCAL_STORAGE_KEY, null);
|
14609
14554
|
if (!t) {
|
14610
|
-
const
|
14611
|
-
if (((n = (r =
|
14612
|
-
const
|
14613
|
-
return
|
14555
|
+
const i = useKg(e);
|
14556
|
+
if (((n = (r = i.option.value) == null ? void 0 : r.KgWarehouse) == null ? void 0 : n.enable) === !1) {
|
14557
|
+
const s = (o = (a = i.option.value) == null ? void 0 : a.KgWarehouse) == null ? void 0 : o.defaultWarehouseID;
|
14558
|
+
return s ? { whId: s } : null;
|
14614
14559
|
}
|
14615
14560
|
}
|
14616
14561
|
return t;
|
@@ -14680,14 +14625,14 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
14680
14625
|
const r = useKg(), n = useKgWarehouse(), a = computed(() => {
|
14681
14626
|
let T = "jeecg-layout-header-action__item kg-warehouse";
|
14682
14627
|
return (!p.value || e.kgInvisible) && (T += " kg-warehouse--invisible"), T;
|
14683
|
-
}), o = ref(""),
|
14628
|
+
}), o = ref(""), i = n.warehouse, s = ref(null), l = ref(!1), u = reactive([{
|
14684
14629
|
width: 80,
|
14685
14630
|
align: "center",
|
14686
14631
|
customRender: ({
|
14687
14632
|
record: T
|
14688
14633
|
}) => {
|
14689
14634
|
var k;
|
14690
|
-
return T.id === ((k =
|
14635
|
+
return T.id === ((k = s.value) == null ? void 0 : k.id) ? createVNode("img", {
|
14691
14636
|
src: WAREHOUSE_1890ff
|
14692
14637
|
}, null) : createVNode("img", {
|
14693
14638
|
src: WAREHOUSE_000000
|
@@ -14725,14 +14670,14 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
14725
14670
|
!p.value || n.store.setVisible(!0);
|
14726
14671
|
}
|
14727
14672
|
function m() {
|
14728
|
-
|
14673
|
+
s.value = n.warehouse.value, y();
|
14729
14674
|
}
|
14730
14675
|
function v() {
|
14731
|
-
o.value = "", c.value = [],
|
14676
|
+
o.value = "", c.value = [], s.value = null;
|
14732
14677
|
}
|
14733
14678
|
function _() {
|
14734
14679
|
var T;
|
14735
|
-
!
|
14680
|
+
!s.value || (e.kgInvisible ? (n.store.setWarehouse(s.value), t("kgOk")) : s.value.id !== ((T = n.warehouse.value) == null ? void 0 : T.id) && (n.store.setWarehouse(s.value), KgUtil.confirm({
|
14736
14681
|
content: r.t("kg.KgWarehouse.reloadMessage"),
|
14737
14682
|
kgHideCancelButton: !0,
|
14738
14683
|
okButtonProps: {
|
@@ -14766,10 +14711,10 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
14766
14711
|
var k;
|
14767
14712
|
switch (T.detail) {
|
14768
14713
|
case 1:
|
14769
|
-
((k =
|
14714
|
+
((k = s.value) == null ? void 0 : k.id) === I.id ? s.value = null : s.value = I;
|
14770
14715
|
break;
|
14771
14716
|
case 2:
|
14772
|
-
|
14717
|
+
s.value = I, _();
|
14773
14718
|
break;
|
14774
14719
|
}
|
14775
14720
|
}
|
@@ -14780,7 +14725,7 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
14780
14725
|
}, {
|
14781
14726
|
default: () => {
|
14782
14727
|
var T, I;
|
14783
|
-
return [((T =
|
14728
|
+
return [((T = i.value) == null ? void 0 : T.whDsc) || ((I = i.value) == null ? void 0 : I.whId) || r.t("kg.KgWarehouse.selectWarehouse")];
|
14784
14729
|
}
|
14785
14730
|
}), createVNode(KgModal, {
|
14786
14731
|
visible: n.visible.value,
|
@@ -14789,13 +14734,13 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
14789
14734
|
width: "500px",
|
14790
14735
|
kgFullHeight: !1,
|
14791
14736
|
wrapClassName: "kg-warehouse-modal",
|
14792
|
-
closable: !e.kgInvisible && !l.value && !!
|
14793
|
-
kgShowCancelButton: !e.kgInvisible && !!
|
14737
|
+
closable: !e.kgInvisible && !l.value && !!s.value,
|
14738
|
+
kgShowCancelButton: !e.kgInvisible && !!s.value,
|
14794
14739
|
cancelButtonProps: {
|
14795
14740
|
disabled: l.value
|
14796
14741
|
},
|
14797
14742
|
okButtonProps: {
|
14798
|
-
disabled: l.value || !
|
14743
|
+
disabled: l.value || !s.value
|
14799
14744
|
},
|
14800
14745
|
onOk: _
|
14801
14746
|
}, {
|
@@ -14824,7 +14769,7 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
14824
14769
|
customRow: (T) => {
|
14825
14770
|
var I;
|
14826
14771
|
return {
|
14827
|
-
class: T.id === ((I =
|
14772
|
+
class: T.id === ((I = s.value) == null ? void 0 : I.id) ? "selected" : "",
|
14828
14773
|
onClick: (k) => C(k, T)
|
14829
14774
|
};
|
14830
14775
|
}
|
@@ -14849,10 +14794,10 @@ function createKgWarehouseGuard(e, t) {
|
|
14849
14794
|
if (e.currentRoute.value.path === "/login")
|
14850
14795
|
return;
|
14851
14796
|
n.store.setVisible(!0);
|
14852
|
-
const
|
14797
|
+
const i = watch(
|
14853
14798
|
n.warehouse,
|
14854
|
-
(
|
14855
|
-
|
14799
|
+
(s) => {
|
14800
|
+
s && setTimeout(() => i());
|
14856
14801
|
},
|
14857
14802
|
{ immediate: !0 }
|
14858
14803
|
);
|