@kengic/vue 0.6.1-beta.5 → 0.6.1-beta.6
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 +892 -863
- package/dist/src/apis/WMS/models.d.ts +1 -3
- package/package.json +2 -2
package/dist/kengic-vue.js
CHANGED
@@ -14,7 +14,10 @@ function httpClient() {
|
|
14
14
|
return _httpClient;
|
15
15
|
}
|
16
16
|
console.log("111:");
|
17
|
-
|
17
|
+
const DEF = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
18
|
+
__proto__: null,
|
19
|
+
WMS: models
|
20
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
18
21
|
class CreateVarGridMasterQuery {
|
19
22
|
constructor(t) {
|
20
23
|
d(this, "def_flg");
|
@@ -698,7 +701,6 @@ class VarSubmitField {
|
|
698
701
|
d(this, "id");
|
699
702
|
d(this, "key_flg");
|
700
703
|
d(this, "placeholder");
|
701
|
-
d(this, "section");
|
702
704
|
d(this, "srtseq");
|
703
705
|
d(this, "upt_dft_val");
|
704
706
|
d(this, "upt_ena_flg");
|
@@ -732,7 +734,6 @@ class VarSubmitField {
|
|
732
734
|
case "id":
|
733
735
|
case "key_flg":
|
734
736
|
case "placeholder":
|
735
|
-
case "section":
|
736
737
|
case "srtseq":
|
737
738
|
case "upt_dft_val":
|
738
739
|
case "upt_ena_flg":
|
@@ -843,6 +844,36 @@ function keys$1(e) {
|
|
843
844
|
const t = typeof e;
|
844
845
|
return e != null && (t === "object" || t === "function") ? Reflect.ownKeys(e) : [];
|
845
846
|
}
|
847
|
+
const models = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
848
|
+
__proto__: null,
|
849
|
+
CreateVarGridMasterQuery,
|
850
|
+
CreateVarProfileMasterQuery,
|
851
|
+
IPage,
|
852
|
+
UpdateVarGridMasterQuery,
|
853
|
+
VarButton,
|
854
|
+
VarButtonConfig,
|
855
|
+
VarCatalog,
|
856
|
+
VarContext,
|
857
|
+
VarDTO,
|
858
|
+
VarGridConfig,
|
859
|
+
VarGridDTO,
|
860
|
+
VarGridDetail,
|
861
|
+
VarGridMaster,
|
862
|
+
VarGridMasterDTO,
|
863
|
+
VarLookup,
|
864
|
+
VarPossibility,
|
865
|
+
VarProfileConfig,
|
866
|
+
VarProfileDTO,
|
867
|
+
VarProfileDetail,
|
868
|
+
VarProfileMaster,
|
869
|
+
VarProfileMasterDTO,
|
870
|
+
VarSubmitConfig,
|
871
|
+
VarSubmitField,
|
872
|
+
VarVariableConfig,
|
873
|
+
VarVariableInput,
|
874
|
+
WhDTO,
|
875
|
+
keys: keys$1
|
876
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
846
877
|
class GetAllQuery {
|
847
878
|
constructor(t) {
|
848
879
|
d(this, "frm_id");
|
@@ -856,7 +887,7 @@ class GetAllQuery {
|
|
856
887
|
}
|
857
888
|
}
|
858
889
|
function GetAll(e, t) {
|
859
|
-
return httpClient().request(
|
890
|
+
return console.assert(!0, DEF, keys$1), httpClient().request(
|
860
891
|
{
|
861
892
|
method: GetAll.method,
|
862
893
|
url: `${t != null && t.mock ? "/mock" : ""}${GetAll.url}`,
|
@@ -875,7 +906,7 @@ const index$6 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
|
|
875
906
|
class AddQuery$1 {
|
876
907
|
}
|
877
908
|
function Add$1(e, t) {
|
878
|
-
return httpClient().request(
|
909
|
+
return console.assert(!0, DEF, keys$1), httpClient().request(
|
879
910
|
{
|
880
911
|
method: Add$1.method,
|
881
912
|
url: `${t != null && t.mock ? "/mock" : ""}${Add$1.url}`,
|
@@ -899,7 +930,7 @@ class DeleteQuery$1 {
|
|
899
930
|
}
|
900
931
|
}
|
901
932
|
function Delete$1(e, t) {
|
902
|
-
return httpClient().request(
|
933
|
+
return console.assert(!0, DEF, keys$1), httpClient().request(
|
903
934
|
{
|
904
935
|
method: Delete$1.method,
|
905
936
|
url: `${t != null && t.mock ? "/mock" : ""}${Delete$1.url}`,
|
@@ -923,7 +954,7 @@ class DeleteBatchQuery$1 {
|
|
923
954
|
}
|
924
955
|
}
|
925
956
|
function DeleteBatch$1(e, t) {
|
926
|
-
return httpClient().request(
|
957
|
+
return console.assert(!0, DEF, keys$1), httpClient().request(
|
927
958
|
{
|
928
959
|
method: DeleteBatch$1.method,
|
929
960
|
url: `${t != null && t.mock ? "/mock" : ""}${DeleteBatch$1.url}`,
|
@@ -937,7 +968,7 @@ DeleteBatch$1.url = "/var/VarContext/deleteBatch";
|
|
937
968
|
class EditQuery$1 {
|
938
969
|
}
|
939
970
|
function Edit$1(e, t) {
|
940
|
-
return httpClient().request(
|
971
|
+
return console.assert(!0, DEF, keys$1), httpClient().request(
|
941
972
|
{
|
942
973
|
method: Edit$1.method,
|
943
974
|
url: `${t != null && t.mock ? "/mock" : ""}${Edit$1.url}`,
|
@@ -967,7 +998,7 @@ class ExportXlsQuery$1 {
|
|
967
998
|
}
|
968
999
|
}
|
969
1000
|
function ExportXls$1(e, t) {
|
970
|
-
return httpClient().request(
|
1001
|
+
return console.assert(!0, DEF, keys$1), httpClient().request(
|
971
1002
|
{
|
972
1003
|
method: ExportXls$1.method,
|
973
1004
|
url: `${t != null && t.mock ? "/mock" : ""}${ExportXls$1.url}`,
|
@@ -981,7 +1012,7 @@ ExportXls$1.url = "/var/VarContext/exportXls";
|
|
981
1012
|
class ImportExcelQuery$1 {
|
982
1013
|
}
|
983
1014
|
function ImportExcel$1(e, t) {
|
984
|
-
return httpClient().request(
|
1015
|
+
return console.assert(!0, DEF, keys$1), httpClient().request(
|
985
1016
|
{
|
986
1017
|
method: ImportExcel$1.method,
|
987
1018
|
url: `${t != null && t.mock ? "/mock" : ""}${ImportExcel$1.url}`,
|
@@ -1017,7 +1048,7 @@ class ListQuery$1 {
|
|
1017
1048
|
}
|
1018
1049
|
}
|
1019
1050
|
function List$1(e, t) {
|
1020
|
-
return httpClient().request(
|
1051
|
+
return console.assert(!0, DEF, keys$1), httpClient().request(
|
1021
1052
|
{
|
1022
1053
|
method: List$1.method,
|
1023
1054
|
url: `${t != null && t.mock ? "/mock" : ""}${List$1.url}`,
|
@@ -1041,7 +1072,7 @@ class QueryByIdQuery$1 {
|
|
1041
1072
|
}
|
1042
1073
|
}
|
1043
1074
|
function QueryById$1(e, t) {
|
1044
|
-
return httpClient().request(
|
1075
|
+
return console.assert(!0, DEF, keys$1), httpClient().request(
|
1045
1076
|
{
|
1046
1077
|
method: QueryById$1.method,
|
1047
1078
|
url: `${t != null && t.mock ? "/mock" : ""}${QueryById$1.url}`,
|
@@ -1084,7 +1115,7 @@ class QueryByIDQuery$1 {
|
|
1084
1115
|
}
|
1085
1116
|
}
|
1086
1117
|
function QueryByID$1(e, t) {
|
1087
|
-
return httpClient().request(
|
1118
|
+
return console.assert(!0, DEF, keys$1), httpClient().request(
|
1088
1119
|
{
|
1089
1120
|
method: QueryByID$1.method,
|
1090
1121
|
url: `${t != null && t.mock ? "/mock" : ""}${QueryByID$1.url}`,
|
@@ -1098,7 +1129,7 @@ QueryByID$1.url = "/var/VarGridMaster/queryByID";
|
|
1098
1129
|
class UpdateQuery {
|
1099
1130
|
}
|
1100
1131
|
function Update(e, t) {
|
1101
|
-
return httpClient().request(
|
1132
|
+
return console.assert(!0, DEF, keys$1), httpClient().request(
|
1102
1133
|
{
|
1103
1134
|
method: Update.method,
|
1104
1135
|
url: `${t != null && t.mock ? "/mock" : ""}${Update.url}`,
|
@@ -1129,7 +1160,7 @@ class QueryByIDQuery {
|
|
1129
1160
|
}
|
1130
1161
|
}
|
1131
1162
|
function QueryByID(e, t) {
|
1132
|
-
return httpClient().request(
|
1163
|
+
return console.assert(!0, DEF, keys$1), httpClient().request(
|
1133
1164
|
{
|
1134
1165
|
method: QueryByID.method,
|
1135
1166
|
url: `${t != null && t.mock ? "/mock" : ""}${QueryByID.url}`,
|
@@ -1148,7 +1179,7 @@ const index$3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
|
|
1148
1179
|
class AddQuery {
|
1149
1180
|
}
|
1150
1181
|
function Add(e, t) {
|
1151
|
-
return httpClient().request(
|
1182
|
+
return console.assert(!0, DEF, keys$1), httpClient().request(
|
1152
1183
|
{
|
1153
1184
|
method: Add.method,
|
1154
1185
|
url: `${t != null && t.mock ? "/mock" : ""}${Add.url}`,
|
@@ -1172,7 +1203,7 @@ class DeleteQuery {
|
|
1172
1203
|
}
|
1173
1204
|
}
|
1174
1205
|
function Delete(e, t) {
|
1175
|
-
return httpClient().request(
|
1206
|
+
return console.assert(!0, DEF, keys$1), httpClient().request(
|
1176
1207
|
{
|
1177
1208
|
method: Delete.method,
|
1178
1209
|
url: `${t != null && t.mock ? "/mock" : ""}${Delete.url}`,
|
@@ -1196,7 +1227,7 @@ class DeleteBatchQuery {
|
|
1196
1227
|
}
|
1197
1228
|
}
|
1198
1229
|
function DeleteBatch(e, t) {
|
1199
|
-
return httpClient().request(
|
1230
|
+
return console.assert(!0, DEF, keys$1), httpClient().request(
|
1200
1231
|
{
|
1201
1232
|
method: DeleteBatch.method,
|
1202
1233
|
url: `${t != null && t.mock ? "/mock" : ""}${DeleteBatch.url}`,
|
@@ -1210,7 +1241,7 @@ DeleteBatch.url = "/var/VarVariableCatalog/deleteBatch";
|
|
1210
1241
|
class EditQuery {
|
1211
1242
|
}
|
1212
1243
|
function Edit(e, t) {
|
1213
|
-
return httpClient().request(
|
1244
|
+
return console.assert(!0, DEF, keys$1), httpClient().request(
|
1214
1245
|
{
|
1215
1246
|
method: Edit.method,
|
1216
1247
|
url: `${t != null && t.mock ? "/mock" : ""}${Edit.url}`,
|
@@ -1246,7 +1277,7 @@ class ExportXlsQuery {
|
|
1246
1277
|
}
|
1247
1278
|
}
|
1248
1279
|
function ExportXls(e, t) {
|
1249
|
-
return httpClient().request(
|
1280
|
+
return console.assert(!0, DEF, keys$1), httpClient().request(
|
1250
1281
|
{
|
1251
1282
|
method: ExportXls.method,
|
1252
1283
|
url: `${t != null && t.mock ? "/mock" : ""}${ExportXls.url}`,
|
@@ -1260,7 +1291,7 @@ ExportXls.url = "/var/VarVariableCatalog/exportXls";
|
|
1260
1291
|
class ImportExcelQuery {
|
1261
1292
|
}
|
1262
1293
|
function ImportExcel(e, t) {
|
1263
|
-
return httpClient().request(
|
1294
|
+
return console.assert(!0, DEF, keys$1), httpClient().request(
|
1264
1295
|
{
|
1265
1296
|
method: ImportExcel.method,
|
1266
1297
|
url: `${t != null && t.mock ? "/mock" : ""}${ImportExcel.url}`,
|
@@ -1302,7 +1333,7 @@ class ListQuery {
|
|
1302
1333
|
}
|
1303
1334
|
}
|
1304
1335
|
function List(e, t) {
|
1305
|
-
return httpClient().request(
|
1336
|
+
return console.assert(!0, DEF, keys$1), httpClient().request(
|
1306
1337
|
{
|
1307
1338
|
method: List.method,
|
1308
1339
|
url: `${t != null && t.mock ? "/mock" : ""}${List.url}`,
|
@@ -1326,7 +1357,7 @@ class QueryByIdQuery {
|
|
1326
1357
|
}
|
1327
1358
|
}
|
1328
1359
|
function QueryById(e, t) {
|
1329
|
-
return httpClient().request(
|
1360
|
+
return console.assert(!0, DEF, keys$1), httpClient().request(
|
1330
1361
|
{
|
1331
1362
|
method: QueryById.method,
|
1332
1363
|
url: `${t != null && t.mock ? "/mock" : ""}${QueryById.url}`,
|
@@ -1399,7 +1430,7 @@ class ListVOQuery {
|
|
1399
1430
|
}
|
1400
1431
|
}
|
1401
1432
|
function ListVO(e, t) {
|
1402
|
-
return httpClient().request(
|
1433
|
+
return console.assert(!0, DEF, keys$1), httpClient().request(
|
1403
1434
|
{
|
1404
1435
|
method: ListVO.method,
|
1405
1436
|
url: `${t != null && t.mock ? "/mock" : ""}${ListVO.url}`,
|
@@ -1426,8 +1457,6 @@ const index$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
|
|
1426
1457
|
__proto__: null,
|
1427
1458
|
WMS: index
|
1428
1459
|
}, Symbol.toStringTag, { value: "Module" }));
|
1429
|
-
console.log("444:");
|
1430
|
-
console.log("333:");
|
1431
1460
|
function bound01(e, t) {
|
1432
1461
|
isOnePointZero(e) && (e = "100%");
|
1433
1462
|
var r = isPercentage(e);
|
@@ -1463,35 +1492,35 @@ function hslToRgb(e, t, r) {
|
|
1463
1492
|
if (e = bound01(e, 360), t = bound01(t, 100), r = bound01(r, 100), t === 0)
|
1464
1493
|
a = r, o = r, n = r;
|
1465
1494
|
else {
|
1466
|
-
var
|
1467
|
-
n = hue2rgb(
|
1495
|
+
var s = r < 0.5 ? r * (1 + t) : r + t - r * t, i = 2 * r - s;
|
1496
|
+
n = hue2rgb(i, s, e + 1 / 3), a = hue2rgb(i, s, e), o = hue2rgb(i, s, e - 1 / 3);
|
1468
1497
|
}
|
1469
1498
|
return { r: n * 255, g: a * 255, b: o * 255 };
|
1470
1499
|
}
|
1471
1500
|
function rgbToHsv(e, t, r) {
|
1472
1501
|
e = bound01(e, 255), t = bound01(t, 255), r = bound01(r, 255);
|
1473
|
-
var n = Math.max(e, t, r), a = Math.min(e, t, r), o = 0,
|
1502
|
+
var n = Math.max(e, t, r), a = Math.min(e, t, r), o = 0, s = n, i = n - a, l = n === 0 ? 0 : i / n;
|
1474
1503
|
if (n === a)
|
1475
1504
|
o = 0;
|
1476
1505
|
else {
|
1477
1506
|
switch (n) {
|
1478
1507
|
case e:
|
1479
|
-
o = (t - r) /
|
1508
|
+
o = (t - r) / i + (t < r ? 6 : 0);
|
1480
1509
|
break;
|
1481
1510
|
case t:
|
1482
|
-
o = (r - e) /
|
1511
|
+
o = (r - e) / i + 2;
|
1483
1512
|
break;
|
1484
1513
|
case r:
|
1485
|
-
o = (e - t) /
|
1514
|
+
o = (e - t) / i + 4;
|
1486
1515
|
break;
|
1487
1516
|
}
|
1488
1517
|
o /= 6;
|
1489
1518
|
}
|
1490
|
-
return { h: o, s: l, v:
|
1519
|
+
return { h: o, s: l, v: s };
|
1491
1520
|
}
|
1492
1521
|
function hsvToRgb(e, t, r) {
|
1493
1522
|
e = bound01(e, 360) * 6, t = bound01(t, 100), r = bound01(r, 100);
|
1494
|
-
var n = Math.floor(e), a = e - n, o = r * (1 - t),
|
1523
|
+
var n = Math.floor(e), a = e - n, o = r * (1 - t), s = r * (1 - a * t), i = r * (1 - (1 - a) * t), l = n % 6, u = [r, s, o, o, i, r][l], c = [i, r, r, s, o, o][l], g = [o, o, i, r, r, s][l];
|
1495
1524
|
return { r: u * 255, g: c * 255, b: g * 255 };
|
1496
1525
|
}
|
1497
1526
|
function rgbToHex(e, t, r, n) {
|
@@ -1659,10 +1688,10 @@ var names = {
|
|
1659
1688
|
yellowgreen: "#9acd32"
|
1660
1689
|
};
|
1661
1690
|
function inputToRGB(e) {
|
1662
|
-
var t = { r: 0, g: 0, b: 0 }, r = 1, n = null, a = null, o = null,
|
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),
|
1664
|
-
ok:
|
1665
|
-
format: e.format ||
|
1691
|
+
var t = { r: 0, g: 0, b: 0 }, r = 1, n = null, a = null, o = null, s = !1, i = !1;
|
1692
|
+
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), s = !0, i = 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), s = !0, i = "hsv") : isValidCSSUnit(e.h) && isValidCSSUnit(e.s) && isValidCSSUnit(e.l) && (n = convertToPercentage(e.s), o = convertToPercentage(e.l), t = hslToRgb(e.h, n, o), s = !0, i = "hsl"), Object.prototype.hasOwnProperty.call(e, "a") && (r = e.a)), r = boundAlpha(r), {
|
1693
|
+
ok: s,
|
1694
|
+
format: e.format || i,
|
1666
1695
|
r: Math.min(255, Math.max(t.r, 0)),
|
1667
1696
|
g: Math.min(255, Math.max(t.g, 0)),
|
1668
1697
|
b: Math.min(255, Math.max(t.b, 0)),
|
@@ -1785,19 +1814,19 @@ function getValue$1(e, t, r) {
|
|
1785
1814
|
}
|
1786
1815
|
function generate$1(e) {
|
1787
1816
|
for (var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = [], n = inputToRGB(e), a = lightColorCount; a > 0; a -= 1) {
|
1788
|
-
var o = toHsv(n),
|
1817
|
+
var o = toHsv(n), s = toHex(inputToRGB({
|
1789
1818
|
h: getHue(o, a, !0),
|
1790
1819
|
s: getSaturation(o, a, !0),
|
1791
1820
|
v: getValue$1(o, a, !0)
|
1792
1821
|
}));
|
1793
|
-
r.push(
|
1822
|
+
r.push(s);
|
1794
1823
|
}
|
1795
1824
|
r.push(toHex(n));
|
1796
|
-
for (var
|
1825
|
+
for (var i = 1; i <= darkColorCount; i += 1) {
|
1797
1826
|
var l = toHsv(n), u = toHex(inputToRGB({
|
1798
|
-
h: getHue(l,
|
1799
|
-
s: getSaturation(l,
|
1800
|
-
v: getValue$1(l,
|
1827
|
+
h: getHue(l, i),
|
1828
|
+
s: getSaturation(l, i),
|
1829
|
+
v: getValue$1(l, i)
|
1801
1830
|
}));
|
1802
1831
|
r.push(u);
|
1803
1832
|
}
|
@@ -1988,16 +2017,16 @@ function getTwoToneColors() {
|
|
1988
2017
|
return _objectSpread$l({}, twoToneColorPalette);
|
1989
2018
|
}
|
1990
2019
|
var IconBase = function(t, r) {
|
1991
|
-
var n = _objectSpread$l({}, t, r.attrs), a = n.icon, o = n.primaryColor,
|
2020
|
+
var n = _objectSpread$l({}, t, r.attrs), a = n.icon, o = n.primaryColor, s = n.secondaryColor, i = _objectWithoutProperties$1(n, _excluded$1), l = twoToneColorPalette;
|
1992
2021
|
if (o && (l = {
|
1993
2022
|
primaryColor: o,
|
1994
|
-
secondaryColor:
|
2023
|
+
secondaryColor: s || getSecondaryColor(o)
|
1995
2024
|
}), useInsertStyles(), warning(isIconDefinition(a), "icon should be icon definiton, but got ".concat(a)), !isIconDefinition(a))
|
1996
2025
|
return null;
|
1997
2026
|
var u = a;
|
1998
2027
|
return u && typeof u.icon == "function" && (u = _objectSpread$l({}, u, {
|
1999
2028
|
icon: u.icon(l.primaryColor, l.secondaryColor)
|
2000
|
-
})), generate(u.icon, "svg-".concat(u.name), _objectSpread$l({},
|
2029
|
+
})), generate(u.icon, "svg-".concat(u.name), _objectSpread$l({}, i, {
|
2001
2030
|
"data-icon": u.name,
|
2002
2031
|
width: "1em",
|
2003
2032
|
height: "1em",
|
@@ -2043,18 +2072,18 @@ function _arrayLikeToArray$1(e, t) {
|
|
2043
2072
|
function _iterableToArrayLimit$1(e, t) {
|
2044
2073
|
var r = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
2045
2074
|
if (r != null) {
|
2046
|
-
var n = [], a = !0, o = !1,
|
2075
|
+
var n = [], a = !0, o = !1, s, i;
|
2047
2076
|
try {
|
2048
|
-
for (r = r.call(e); !(a = (
|
2077
|
+
for (r = r.call(e); !(a = (s = r.next()).done) && (n.push(s.value), !(t && n.length === t)); a = !0)
|
2049
2078
|
;
|
2050
2079
|
} catch (l) {
|
2051
|
-
o = !0,
|
2080
|
+
o = !0, i = l;
|
2052
2081
|
} finally {
|
2053
2082
|
try {
|
2054
2083
|
!a && r.return != null && r.return();
|
2055
2084
|
} finally {
|
2056
2085
|
if (o)
|
2057
|
-
throw
|
2086
|
+
throw i;
|
2058
2087
|
}
|
2059
2088
|
}
|
2060
2089
|
return n;
|
@@ -2103,18 +2132,18 @@ function _arrayLikeToArray(e, t) {
|
|
2103
2132
|
function _iterableToArrayLimit(e, t) {
|
2104
2133
|
var r = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
2105
2134
|
if (r != null) {
|
2106
|
-
var n = [], a = !0, o = !1,
|
2135
|
+
var n = [], a = !0, o = !1, s, i;
|
2107
2136
|
try {
|
2108
|
-
for (r = r.call(e); !(a = (
|
2137
|
+
for (r = r.call(e); !(a = (s = r.next()).done) && (n.push(s.value), !(t && n.length === t)); a = !0)
|
2109
2138
|
;
|
2110
2139
|
} catch (l) {
|
2111
|
-
o = !0,
|
2140
|
+
o = !0, i = l;
|
2112
2141
|
} finally {
|
2113
2142
|
try {
|
2114
2143
|
!a && r.return != null && r.return();
|
2115
2144
|
} finally {
|
2116
2145
|
if (o)
|
2117
|
-
throw
|
2146
|
+
throw i;
|
2118
2147
|
}
|
2119
2148
|
}
|
2120
2149
|
return n;
|
@@ -2159,9 +2188,9 @@ function _objectWithoutPropertiesLoose(e, t) {
|
|
2159
2188
|
}
|
2160
2189
|
setTwoToneColor("#1890ff");
|
2161
2190
|
var Icon$1 = function(t, r) {
|
2162
|
-
var n, a = _objectSpread$k({}, t, r.attrs), o = a.class,
|
2191
|
+
var n, a = _objectSpread$k({}, t, r.attrs), o = a.class, s = a.icon, i = a.spin, l = a.rotate, u = a.tabindex, c = a.twoToneColor, g = a.onClick, p = _objectWithoutProperties(a, _excluded), b = (n = {
|
2163
2192
|
anticon: !0
|
2164
|
-
}, _defineProperty$k(n, "anticon-".concat(
|
2193
|
+
}, _defineProperty$k(n, "anticon-".concat(s.name), Boolean(s.name)), _defineProperty$k(n, o, o), n), m = i === "" || !!i || s.name === "loading" ? "anticon-spin" : "", v = u;
|
2165
2194
|
v === void 0 && g && (v = -1, p.tabindex = v);
|
2166
2195
|
var _ = l ? {
|
2167
2196
|
msTransform: "rotate(".concat(l, "deg)"),
|
@@ -2169,13 +2198,13 @@ var Icon$1 = function(t, r) {
|
|
2169
2198
|
} : void 0, y = normalizeTwoToneColors(c), C = _slicedToArray(y, 2), E = C[0], T = C[1];
|
2170
2199
|
return createVNode("span", _objectSpread$k({
|
2171
2200
|
role: "img",
|
2172
|
-
"aria-label":
|
2201
|
+
"aria-label": s.name
|
2173
2202
|
}, p, {
|
2174
2203
|
onClick: g,
|
2175
2204
|
class: b
|
2176
2205
|
}), [createVNode(VueIcon, {
|
2177
2206
|
class: m,
|
2178
|
-
icon:
|
2207
|
+
icon: s,
|
2179
2208
|
primaryColor: E,
|
2180
2209
|
secondaryColor: T,
|
2181
2210
|
style: _
|
@@ -2733,29 +2762,29 @@ const UploadOutlined$1 = UploadOutlined, data$7 = {
|
|
2733
2762
|
if (a.length > 3 || !a.length)
|
2734
2763
|
return null;
|
2735
2764
|
if (a.length > 1) {
|
2736
|
-
const
|
2765
|
+
const i = a.pop(), l = a.pop(), u = {
|
2737
2766
|
provider: a.length > 0 ? a[0] : n,
|
2738
2767
|
prefix: l,
|
2739
|
-
name:
|
2768
|
+
name: i
|
2740
2769
|
};
|
2741
2770
|
return t && !validateIconName(u) ? null : u;
|
2742
2771
|
}
|
2743
|
-
const o = a[0],
|
2744
|
-
if (
|
2745
|
-
const
|
2772
|
+
const o = a[0], s = o.split("-");
|
2773
|
+
if (s.length > 1) {
|
2774
|
+
const i = {
|
2746
2775
|
provider: n,
|
2747
|
-
prefix:
|
2748
|
-
name:
|
2776
|
+
prefix: s.shift(),
|
2777
|
+
name: s.join("-")
|
2749
2778
|
};
|
2750
|
-
return t && !validateIconName(
|
2779
|
+
return t && !validateIconName(i) ? null : i;
|
2751
2780
|
}
|
2752
2781
|
if (r && n === "") {
|
2753
|
-
const
|
2782
|
+
const i = {
|
2754
2783
|
provider: n,
|
2755
2784
|
prefix: "",
|
2756
2785
|
name: o
|
2757
2786
|
};
|
2758
|
-
return t && !validateIconName(
|
2787
|
+
return t && !validateIconName(i, r) ? null : i;
|
2759
2788
|
}
|
2760
2789
|
return null;
|
2761
2790
|
}, 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(
|
@@ -2791,28 +2820,28 @@ function mergeIconData(e, t) {
|
|
2791
2820
|
}
|
2792
2821
|
function getIconsTree(e, t) {
|
2793
2822
|
const r = e.icons, n = e.aliases || /* @__PURE__ */ Object.create(null), a = /* @__PURE__ */ Object.create(null);
|
2794
|
-
function o(
|
2795
|
-
if (r[
|
2796
|
-
return a[
|
2797
|
-
if (!(
|
2798
|
-
a[
|
2799
|
-
const
|
2800
|
-
l && (a[
|
2823
|
+
function o(s) {
|
2824
|
+
if (r[s])
|
2825
|
+
return a[s] = [];
|
2826
|
+
if (!(s in a)) {
|
2827
|
+
a[s] = null;
|
2828
|
+
const i = n[s] && n[s].parent, l = i && o(i);
|
2829
|
+
l && (a[s] = [i].concat(l));
|
2801
2830
|
}
|
2802
|
-
return a[
|
2831
|
+
return a[s];
|
2803
2832
|
}
|
2804
2833
|
return (t || Object.keys(r).concat(Object.keys(n))).forEach(o), a;
|
2805
2834
|
}
|
2806
2835
|
function internalGetIconData(e, t, r) {
|
2807
2836
|
const n = e.icons, a = e.aliases || /* @__PURE__ */ Object.create(null);
|
2808
2837
|
let o = {};
|
2809
|
-
function i
|
2838
|
+
function s(i) {
|
2810
2839
|
o = mergeIconData(
|
2811
|
-
n[
|
2840
|
+
n[i] || a[i],
|
2812
2841
|
o
|
2813
2842
|
);
|
2814
2843
|
}
|
2815
|
-
return
|
2844
|
+
return s(t), r.forEach(s), mergeIconData(e, o);
|
2816
2845
|
}
|
2817
2846
|
function parseIconSet(e, t) {
|
2818
2847
|
const r = [];
|
@@ -2857,8 +2886,8 @@ function quicklyValidateIconSet(e) {
|
|
2857
2886
|
}
|
2858
2887
|
const n = t.aliases || /* @__PURE__ */ Object.create(null);
|
2859
2888
|
for (const a in n) {
|
2860
|
-
const o = n[a],
|
2861
|
-
if (!a.match(matchIconName) || typeof
|
2889
|
+
const o = n[a], s = o.parent;
|
2890
|
+
if (!a.match(matchIconName) || typeof s != "string" || !r[s] && !n[s] || !checkOptionalProps(
|
2862
2891
|
o,
|
2863
2892
|
defaultExtendedIconProps
|
2864
2893
|
))
|
@@ -2915,8 +2944,8 @@ function addCollection(e, t) {
|
|
2915
2944
|
return !1;
|
2916
2945
|
if (typeof t != "string" && (t = e.provider || ""), simpleNames && !t && !e.prefix) {
|
2917
2946
|
let a = !1;
|
2918
|
-
return quicklyValidateIconSet(e) && (e.prefix = "", parseIconSet(e, (o,
|
2919
|
-
|
2947
|
+
return quicklyValidateIconSet(e) && (e.prefix = "", parseIconSet(e, (o, s) => {
|
2948
|
+
s && addIcon(o, s) && (a = !0);
|
2920
2949
|
})), a;
|
2921
2950
|
}
|
2922
2951
|
const r = e.prefix;
|
@@ -2947,16 +2976,16 @@ function calculateSize(e, t, r) {
|
|
2947
2976
|
if (n === null || !n.length)
|
2948
2977
|
return e;
|
2949
2978
|
const a = [];
|
2950
|
-
let o = n.shift(),
|
2979
|
+
let o = n.shift(), s = unitsTest.test(o);
|
2951
2980
|
for (; ; ) {
|
2952
|
-
if (
|
2953
|
-
const
|
2954
|
-
isNaN(
|
2981
|
+
if (s) {
|
2982
|
+
const i = parseFloat(o);
|
2983
|
+
isNaN(i) ? a.push(o) : a.push(Math.ceil(i * t * r) / r);
|
2955
2984
|
} else
|
2956
2985
|
a.push(o);
|
2957
2986
|
if (o = n.shift(), o === void 0)
|
2958
2987
|
return a.join("");
|
2959
|
-
|
2988
|
+
s = !s;
|
2960
2989
|
}
|
2961
2990
|
}
|
2962
2991
|
const isUnsetKeyword = (e) => e === "unset" || e === "undefined" || e === "none";
|
@@ -3002,9 +3031,9 @@ function iconToSVG(e, t) {
|
|
3002
3031
|
}
|
3003
3032
|
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>");
|
3004
3033
|
});
|
3005
|
-
const
|
3034
|
+
const s = n.width, i = n.height, l = a.width, u = a.height;
|
3006
3035
|
let c, g;
|
3007
|
-
|
3036
|
+
s === null ? (g = i === null ? "1em" : i === "auto" ? u : i, c = calculateSize(g, l / u)) : (c = s === "auto" ? l : s, g = i === null ? calculateSize(c, u / l) : i === "auto" ? u : i);
|
3008
3037
|
const p = {}, b = (m, v) => {
|
3009
3038
|
isUnsetKeyword(v) || (p[m] = v.toString());
|
3010
3039
|
};
|
@@ -3024,10 +3053,10 @@ function replaceIDs(e, t = randomPrefix) {
|
|
3024
3053
|
return e;
|
3025
3054
|
const a = "suffix" + (Math.random() * 16777216 | Date.now()).toString(16);
|
3026
3055
|
return r.forEach((o) => {
|
3027
|
-
const
|
3056
|
+
const s = typeof t == "function" ? t(o) : t + (counter++).toString(), i = o.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
3028
3057
|
e = e.replace(
|
3029
|
-
new RegExp('([#;"])(' +
|
3030
|
-
"$1" +
|
3058
|
+
new RegExp('([#;"])(' + i + ')([")]|\\.[a-z])', "g"),
|
3059
|
+
"$1" + s + a + "$3"
|
3031
3060
|
);
|
3032
3061
|
}), e = e.replace(new RegExp(a, "g"), ""), e;
|
3033
3062
|
}
|
@@ -3089,8 +3118,8 @@ function calculateMaxLength(e, t) {
|
|
3089
3118
|
n = 0;
|
3090
3119
|
else {
|
3091
3120
|
let a = 0;
|
3092
|
-
r.resources.forEach((
|
3093
|
-
a = Math.max(a,
|
3121
|
+
r.resources.forEach((s) => {
|
3122
|
+
a = Math.max(a, s.length);
|
3094
3123
|
});
|
3095
3124
|
const o = t + ".json?icons=";
|
3096
3125
|
n = r.maxURL - a - r.path.length - o.length;
|
@@ -3102,20 +3131,20 @@ function shouldAbort(e) {
|
|
3102
3131
|
}
|
3103
3132
|
const prepare = (e, t, r) => {
|
3104
3133
|
const n = [], a = calculateMaxLength(e, t), o = "icons";
|
3105
|
-
let
|
3134
|
+
let s = {
|
3106
3135
|
type: o,
|
3107
3136
|
provider: e,
|
3108
3137
|
prefix: t,
|
3109
3138
|
icons: []
|
3110
|
-
},
|
3139
|
+
}, i = 0;
|
3111
3140
|
return r.forEach((l, u) => {
|
3112
|
-
|
3141
|
+
i += l.length + 1, i >= a && u > 0 && (n.push(s), s = {
|
3113
3142
|
type: o,
|
3114
3143
|
provider: e,
|
3115
3144
|
prefix: t,
|
3116
3145
|
icons: []
|
3117
|
-
},
|
3118
|
-
}), n.push(
|
3146
|
+
}, i = l.length), s.icons.push(l);
|
3147
|
+
}), n.push(s), n;
|
3119
3148
|
};
|
3120
3149
|
function getPath(e) {
|
3121
3150
|
if (typeof e == "string") {
|
@@ -3133,8 +3162,8 @@ const send = (e, t, r) => {
|
|
3133
3162
|
let n = getPath(t.provider);
|
3134
3163
|
switch (t.type) {
|
3135
3164
|
case "icons": {
|
3136
|
-
const o = t.prefix,
|
3137
|
-
icons:
|
3165
|
+
const o = t.prefix, i = t.icons.join(","), l = new URLSearchParams({
|
3166
|
+
icons: i
|
3138
3167
|
});
|
3139
3168
|
n += o + ".json?" + l.toString();
|
3140
3169
|
break;
|
@@ -3150,10 +3179,10 @@ const send = (e, t, r) => {
|
|
3150
3179
|
}
|
3151
3180
|
let a = 503;
|
3152
3181
|
fetchModule(e + n).then((o) => {
|
3153
|
-
const
|
3154
|
-
if (
|
3182
|
+
const s = o.status;
|
3183
|
+
if (s !== 200) {
|
3155
3184
|
setTimeout(() => {
|
3156
|
-
r(shouldAbort(
|
3185
|
+
r(shouldAbort(s) ? "abort" : "next", s);
|
3157
3186
|
});
|
3158
3187
|
return;
|
3159
3188
|
}
|
@@ -3191,13 +3220,13 @@ function sortIcons(e) {
|
|
3191
3220
|
if (n.name === a.name && n.prefix === a.prefix && n.provider === a.provider)
|
3192
3221
|
return;
|
3193
3222
|
n = a;
|
3194
|
-
const o = a.provider,
|
3223
|
+
const o = a.provider, s = a.prefix, i = a.name, l = r[o] || (r[o] = /* @__PURE__ */ Object.create(null)), u = l[s] || (l[s] = getStorage(o, s));
|
3195
3224
|
let c;
|
3196
|
-
|
3225
|
+
i in u.icons ? c = t.loaded : s === "" || u.missing.has(i) ? c = t.missing : c = t.pending;
|
3197
3226
|
const g = {
|
3198
3227
|
provider: o,
|
3199
|
-
prefix:
|
3200
|
-
name:
|
3228
|
+
prefix: s,
|
3229
|
+
name: i
|
3201
3230
|
};
|
3202
3231
|
c.push(g);
|
3203
3232
|
}), t;
|
@@ -3217,19 +3246,19 @@ function updateCallbacks(e) {
|
|
3217
3246
|
let r = !1;
|
3218
3247
|
const n = e.provider, a = e.prefix;
|
3219
3248
|
t.forEach((o) => {
|
3220
|
-
const
|
3221
|
-
|
3249
|
+
const s = o.icons, i = s.pending.length;
|
3250
|
+
s.pending = s.pending.filter((l) => {
|
3222
3251
|
if (l.prefix !== a)
|
3223
3252
|
return !0;
|
3224
3253
|
const u = l.name;
|
3225
3254
|
if (e.icons[u])
|
3226
|
-
|
3255
|
+
s.loaded.push({
|
3227
3256
|
provider: n,
|
3228
3257
|
prefix: a,
|
3229
3258
|
name: u
|
3230
3259
|
});
|
3231
3260
|
else if (e.missing.has(u))
|
3232
|
-
|
3261
|
+
s.missing.push({
|
3233
3262
|
provider: n,
|
3234
3263
|
prefix: a,
|
3235
3264
|
name: u
|
@@ -3237,10 +3266,10 @@ function updateCallbacks(e) {
|
|
3237
3266
|
else
|
3238
3267
|
return r = !0, !0;
|
3239
3268
|
return !1;
|
3240
|
-
}),
|
3241
|
-
|
3242
|
-
|
3243
|
-
|
3269
|
+
}), s.pending.length !== i && (r || removeCallback([e], o.id), o.callback(
|
3270
|
+
s.loaded.slice(0),
|
3271
|
+
s.missing.slice(0),
|
3272
|
+
s.pending.slice(0),
|
3244
3273
|
o.abort
|
3245
3274
|
));
|
3246
3275
|
});
|
@@ -3257,8 +3286,8 @@ function storeCallback(e, t, r) {
|
|
3257
3286
|
callback: e,
|
3258
3287
|
abort: a
|
3259
3288
|
};
|
3260
|
-
return r.forEach((
|
3261
|
-
(
|
3289
|
+
return r.forEach((s) => {
|
3290
|
+
(s.loaderCallbacks || (s.loaderCallbacks = [])).push(o);
|
3262
3291
|
}), a;
|
3263
3292
|
}
|
3264
3293
|
function listToIcons(e, t = !0, r = !1) {
|
@@ -3278,17 +3307,17 @@ var defaultConfig = {
|
|
3278
3307
|
};
|
3279
3308
|
function sendQuery(e, t, r, n) {
|
3280
3309
|
const a = e.resources.length, o = e.random ? Math.floor(Math.random() * a) : e.index;
|
3281
|
-
let
|
3310
|
+
let s;
|
3282
3311
|
if (e.random) {
|
3283
3312
|
let k = e.resources.slice(0);
|
3284
|
-
for (
|
3313
|
+
for (s = []; k.length > 1; ) {
|
3285
3314
|
const w = Math.floor(Math.random() * k.length);
|
3286
|
-
|
3315
|
+
s.push(k[w]), k = k.slice(0, w).concat(k.slice(w + 1));
|
3287
3316
|
}
|
3288
|
-
|
3317
|
+
s = s.concat(k);
|
3289
3318
|
} else
|
3290
|
-
|
3291
|
-
const
|
3319
|
+
s = e.resources.slice(o).concat(e.resources.slice(0, o));
|
3320
|
+
const i = Date.now();
|
3292
3321
|
let l = "pending", u = 0, c, g = null, p = [], b = [];
|
3293
3322
|
typeof n == "function" && b.push(n);
|
3294
3323
|
function m() {
|
@@ -3304,7 +3333,7 @@ function sendQuery(e, t, r, n) {
|
|
3304
3333
|
}
|
3305
3334
|
function y() {
|
3306
3335
|
return {
|
3307
|
-
startTime:
|
3336
|
+
startTime: i,
|
3308
3337
|
payload: t,
|
3309
3338
|
status: l,
|
3310
3339
|
queriesSent: u,
|
@@ -3340,7 +3369,7 @@ function sendQuery(e, t, r, n) {
|
|
3340
3369
|
return;
|
3341
3370
|
}
|
3342
3371
|
if (A) {
|
3343
|
-
c = M, p.length || (
|
3372
|
+
c = M, p.length || (s.length ? I() : C());
|
3344
3373
|
return;
|
3345
3374
|
}
|
3346
3375
|
if (m(), E(), !e.random) {
|
@@ -3355,7 +3384,7 @@ function sendQuery(e, t, r, n) {
|
|
3355
3384
|
if (l !== "pending")
|
3356
3385
|
return;
|
3357
3386
|
m();
|
3358
|
-
const k =
|
3387
|
+
const k = s.shift();
|
3359
3388
|
if (k === void 0) {
|
3360
3389
|
if (p.length) {
|
3361
3390
|
g = setTimeout(() => {
|
@@ -3384,12 +3413,12 @@ function initRedundancy(e) {
|
|
3384
3413
|
};
|
3385
3414
|
let r = [];
|
3386
3415
|
function n() {
|
3387
|
-
r = r.filter((
|
3416
|
+
r = r.filter((i) => i().status === "pending");
|
3388
3417
|
}
|
3389
|
-
function a(
|
3418
|
+
function a(i, l, u) {
|
3390
3419
|
const c = sendQuery(
|
3391
3420
|
t,
|
3392
|
-
|
3421
|
+
i,
|
3393
3422
|
l,
|
3394
3423
|
(g, p) => {
|
3395
3424
|
n(), u && u(g, p);
|
@@ -3397,14 +3426,14 @@ function initRedundancy(e) {
|
|
3397
3426
|
);
|
3398
3427
|
return r.push(c), c;
|
3399
3428
|
}
|
3400
|
-
function o(
|
3401
|
-
return r.find((l) =>
|
3429
|
+
function o(i) {
|
3430
|
+
return r.find((l) => i(l)) || null;
|
3402
3431
|
}
|
3403
3432
|
return {
|
3404
3433
|
query: a,
|
3405
3434
|
find: o,
|
3406
|
-
setIndex: (
|
3407
|
-
t.index =
|
3435
|
+
setIndex: (i) => {
|
3436
|
+
t.index = i;
|
3408
3437
|
},
|
3409
3438
|
getIndex: () => t.index,
|
3410
3439
|
cleanup: n
|
@@ -3433,14 +3462,14 @@ function sendAPIQuery(e, t, r) {
|
|
3433
3462
|
if (!o)
|
3434
3463
|
return r(void 0, 424), emptyCallback$1;
|
3435
3464
|
a = o.send;
|
3436
|
-
const
|
3437
|
-
|
3465
|
+
const s = getRedundancyCache(e);
|
3466
|
+
s && (n = s.redundancy);
|
3438
3467
|
} else {
|
3439
3468
|
const o = createAPIConfig(e);
|
3440
3469
|
if (o) {
|
3441
3470
|
n = initRedundancy(o);
|
3442
|
-
const
|
3443
|
-
|
3471
|
+
const s = e.resources ? e.resources[0] : "", i = getAPIModule(s);
|
3472
|
+
i && (a = i.send);
|
3444
3473
|
}
|
3445
3474
|
}
|
3446
3475
|
return !n || !a ? (r(void 0, 424), emptyCallback$1) : n.query(t, a, r)().abort;
|
@@ -3498,28 +3527,28 @@ function iterateBrowserStorage(e, t) {
|
|
3498
3527
|
const n = getStoredItem(r, browserCacheVersionKey);
|
3499
3528
|
if (n !== browserCacheVersion) {
|
3500
3529
|
if (n) {
|
3501
|
-
const
|
3502
|
-
for (let l = 0; l <
|
3530
|
+
const i = getBrowserStorageItemsCount(r);
|
3531
|
+
for (let l = 0; l < i; l++)
|
3503
3532
|
removeStoredItem(r, browserCachePrefix + l.toString());
|
3504
3533
|
}
|
3505
3534
|
setStoredItem(r, browserCacheVersionKey, browserCacheVersion), setBrowserStorageItemsCount(r, 0);
|
3506
3535
|
return;
|
3507
3536
|
}
|
3508
|
-
const a = Math.floor(Date.now() / browserStorageHour) - browserStorageCacheExpiration, o = (
|
3509
|
-
const l = browserCachePrefix +
|
3537
|
+
const a = Math.floor(Date.now() / browserStorageHour) - browserStorageCacheExpiration, o = (i) => {
|
3538
|
+
const l = browserCachePrefix + i.toString(), u = getStoredItem(r, l);
|
3510
3539
|
if (typeof u == "string") {
|
3511
3540
|
try {
|
3512
3541
|
const c = JSON.parse(u);
|
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,
|
3542
|
+
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, i))
|
3514
3543
|
return !0;
|
3515
3544
|
} catch {
|
3516
3545
|
}
|
3517
3546
|
removeStoredItem(r, l);
|
3518
3547
|
}
|
3519
3548
|
};
|
3520
|
-
let
|
3521
|
-
for (let
|
3522
|
-
o(
|
3549
|
+
let s = getBrowserStorageItemsCount(r);
|
3550
|
+
for (let i = s - 1; i >= 0; i--)
|
3551
|
+
o(i) || (i === s - 1 ? (s--, setBrowserStorageItemsCount(r, s)) : browserStorageEmptyItems[e].add(i));
|
3523
3552
|
}
|
3524
3553
|
function initBrowserStorage() {
|
3525
3554
|
if (!browserStorageStatus) {
|
@@ -3532,8 +3561,8 @@ function initBrowserStorage() {
|
|
3532
3561
|
);
|
3533
3562
|
if (!addIconSet(o, r).length)
|
3534
3563
|
return !1;
|
3535
|
-
const
|
3536
|
-
return o.lastModifiedCached = o.lastModifiedCached ? Math.min(o.lastModifiedCached,
|
3564
|
+
const s = r.lastModified || -1;
|
3565
|
+
return o.lastModifiedCached = o.lastModifiedCached ? Math.min(o.lastModifiedCached, s) : s, !0;
|
3537
3566
|
});
|
3538
3567
|
}
|
3539
3568
|
}
|
@@ -3556,20 +3585,20 @@ function storeInBrowserStorage(e, t) {
|
|
3556
3585
|
if (!browserStorageConfig[n] || !(a = getBrowserStorage(n)))
|
3557
3586
|
return;
|
3558
3587
|
const o = browserStorageEmptyItems[n];
|
3559
|
-
let
|
3588
|
+
let s;
|
3560
3589
|
if (o.size)
|
3561
|
-
o.delete(
|
3562
|
-
else if (
|
3590
|
+
o.delete(s = Array.from(o).shift());
|
3591
|
+
else if (s = getBrowserStorageItemsCount(a), !setBrowserStorageItemsCount(a, s + 1))
|
3563
3592
|
return;
|
3564
|
-
const
|
3593
|
+
const i = {
|
3565
3594
|
cached: Math.floor(Date.now() / browserStorageHour),
|
3566
3595
|
provider: e.provider,
|
3567
3596
|
data: t
|
3568
3597
|
};
|
3569
3598
|
return setStoredItem(
|
3570
3599
|
a,
|
3571
|
-
browserCachePrefix +
|
3572
|
-
JSON.stringify(
|
3600
|
+
browserCachePrefix + s.toString(),
|
3601
|
+
JSON.stringify(i)
|
3573
3602
|
);
|
3574
3603
|
}
|
3575
3604
|
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"));
|
@@ -3589,10 +3618,10 @@ function loadNewIcons(e, t) {
|
|
3589
3618
|
let o;
|
3590
3619
|
if (!a || !(o = getAPIModule(r)))
|
3591
3620
|
return;
|
3592
|
-
o.prepare(r, n, a).forEach((
|
3593
|
-
sendAPIQuery(r,
|
3621
|
+
o.prepare(r, n, a).forEach((i) => {
|
3622
|
+
sendAPIQuery(r, i, (l) => {
|
3594
3623
|
if (typeof l != "object")
|
3595
|
-
|
3624
|
+
i.icons.forEach((u) => {
|
3596
3625
|
e.missing.add(u);
|
3597
3626
|
});
|
3598
3627
|
else
|
@@ -3631,12 +3660,12 @@ const loadIcons = (e, t) => {
|
|
3631
3660
|
};
|
3632
3661
|
}
|
3633
3662
|
const a = /* @__PURE__ */ Object.create(null), o = [];
|
3634
|
-
let
|
3663
|
+
let s, i;
|
3635
3664
|
return n.pending.forEach((l) => {
|
3636
3665
|
const { provider: u, prefix: c } = l;
|
3637
|
-
if (c ===
|
3666
|
+
if (c === i && u === s)
|
3638
3667
|
return;
|
3639
|
-
|
3668
|
+
s = u, i = c, o.push(getStorage(u, c));
|
3640
3669
|
const g = a[u] || (a[u] = /* @__PURE__ */ Object.create(null));
|
3641
3670
|
g[c] || (g[c] = []);
|
3642
3671
|
}), n.pending.forEach((l) => {
|
@@ -3748,7 +3777,7 @@ function fixSize(e) {
|
|
3748
3777
|
return e + (e.match(/^[-0-9.]+$/) ? "px" : "");
|
3749
3778
|
}
|
3750
3779
|
const render = (e, t) => {
|
3751
|
-
const r = mergeCustomisations(defaultExtendedIconCustomisations, t), n = { ...svgDefaults }, a = t.mode || "svg", o = {},
|
3780
|
+
const r = mergeCustomisations(defaultExtendedIconCustomisations, t), n = { ...svgDefaults }, a = t.mode || "svg", o = {}, s = t.style, i = typeof s == "object" && !(s instanceof Array) ? s : {};
|
3752
3781
|
for (let v in t) {
|
3753
3782
|
const _ = t[v];
|
3754
3783
|
if (_ !== void 0)
|
@@ -3786,7 +3815,7 @@ const render = (e, t) => {
|
|
3786
3815
|
if (r.inline && (o.verticalAlign = "-0.125em"), a === "svg") {
|
3787
3816
|
n.style = {
|
3788
3817
|
...o,
|
3789
|
-
...
|
3818
|
+
...i
|
3790
3819
|
}, Object.assign(n, u);
|
3791
3820
|
let v = 0, _ = t.id;
|
3792
3821
|
return typeof _ == "string" && (_ = _.replace(/-/g, "_")), n.innerHTML = replaceIDs(l.body, _ ? () => _ + "ID" + v++ : "iconifyVue"), h("svg", n);
|
@@ -3803,7 +3832,7 @@ const render = (e, t) => {
|
|
3803
3832
|
height: fixSize(u.height),
|
3804
3833
|
...commonProps,
|
3805
3834
|
...b ? monotoneProps : coloredProps,
|
3806
|
-
...
|
3835
|
+
...i
|
3807
3836
|
}, h("span", n);
|
3808
3837
|
};
|
3809
3838
|
allowSimpleNames(!0);
|
@@ -3904,7 +3933,7 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
3904
3933
|
(function(r, n) {
|
3905
3934
|
e.exports = n();
|
3906
3935
|
})(commonjsGlobal, function() {
|
3907
|
-
var r = 1e3, n = 6e4, a = 36e5, o = "millisecond",
|
3936
|
+
var r = 1e3, n = 6e4, a = 36e5, o = "millisecond", s = "second", i = "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) {
|
3908
3937
|
var D = ["th", "st", "nd", "rd"], V = P % 100;
|
3909
3938
|
return "[" + P + (D[(V - 20) % 10] || D[V] || D[0]) + "]";
|
3910
3939
|
} }, E = function(P, D, V) {
|
@@ -3921,7 +3950,7 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
3921
3950
|
}, a: function(P) {
|
3922
3951
|
return P < 0 ? Math.ceil(P) || 0 : Math.floor(P);
|
3923
3952
|
}, p: function(P) {
|
3924
|
-
return { M: g, y: b, w: c, d: u, D: m, h: l, m:
|
3953
|
+
return { M: g, y: b, w: c, d: u, D: m, h: l, m: i, s, ms: o, Q: p }[P] || String(P || "").toLowerCase().replace(/s$/, "");
|
3925
3954
|
}, u: function(P) {
|
3926
3955
|
return P === void 0;
|
3927
3956
|
} }, I = "en", k = {};
|
@@ -4015,9 +4044,9 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4015
4044
|
return q(ee + "Hours", 0);
|
4016
4045
|
case l:
|
4017
4046
|
return q(ee + "Minutes", 1);
|
4018
|
-
case s:
|
4019
|
-
return q(ee + "Seconds", 2);
|
4020
4047
|
case i:
|
4048
|
+
return q(ee + "Seconds", 2);
|
4049
|
+
case s:
|
4021
4050
|
return q(ee + "Milliseconds", 3);
|
4022
4051
|
default:
|
4023
4052
|
return this.clone();
|
@@ -4025,7 +4054,7 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4025
4054
|
}, D.endOf = function(V) {
|
4026
4055
|
return this.startOf(V, !1);
|
4027
4056
|
}, D.$set = function(V, R) {
|
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[
|
4057
|
+
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[i] = N + "Minutes", L[s] = N + "Seconds", L[o] = N + "Milliseconds", L)[H], q = H === u ? this.$D + (R - this.$W) : R;
|
4029
4058
|
if (H === g || H === b) {
|
4030
4059
|
var Y = this.clone().set(m, 1);
|
4031
4060
|
Y.$d[x](q), Y.init(), this.$d = Y.set(m, Math.min(this.$D, Y.daysInMonth())).$d;
|
@@ -4051,7 +4080,7 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4051
4080
|
return x(1);
|
4052
4081
|
if (N === c)
|
4053
4082
|
return x(7);
|
4054
|
-
var q = (L = {}, L[
|
4083
|
+
var q = (L = {}, L[i] = n, L[l] = a, L[s] = r, L)[N] || 1, Y = this.$d.getTime() + V * q;
|
4055
4084
|
return O.w(Y, this);
|
4056
4085
|
}, D.subtract = function(V, R) {
|
4057
4086
|
return this.add(-1 * V, R);
|
@@ -4074,7 +4103,7 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4074
4103
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
4075
4104
|
}, D.diff = function(V, R, L) {
|
4076
4105
|
var H, N = O.p(R), x = A(V), q = (x.utcOffset() - this.utcOffset()) * n, Y = this - x, Q = O.m(this, x);
|
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[
|
4106
|
+
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[i] = Y / n, H[s] = Y / r, H)[N] || Y, L ? Q : O.a(Q);
|
4078
4107
|
}, D.daysInMonth = function() {
|
4079
4108
|
return this.endOf(g).$D;
|
4080
4109
|
}, D.$locale = function() {
|
@@ -4096,7 +4125,7 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4096
4125
|
return this.$d.toUTCString();
|
4097
4126
|
}, P;
|
4098
4127
|
}(), $ = B.prototype;
|
4099
|
-
return A.prototype = $, [["$ms", o], ["$s",
|
4128
|
+
return A.prototype = $, [["$ms", o], ["$s", s], ["$m", i], ["$H", l], ["$W", u], ["$M", g], ["$y", b], ["$D", m]].forEach(function(P) {
|
4100
4129
|
$[P[1]] = function(D) {
|
4101
4130
|
return this.$g(D, P[0], P[1]);
|
4102
4131
|
};
|
@@ -4137,8 +4166,8 @@ function filesize(e, {
|
|
4137
4166
|
base: n = -1,
|
4138
4167
|
round: a = 2,
|
4139
4168
|
locale: o = EMPTY,
|
4140
|
-
localeOptions:
|
4141
|
-
separator:
|
4169
|
+
localeOptions: s = {},
|
4170
|
+
separator: i = EMPTY,
|
4142
4171
|
spacer: l = SPACE,
|
4143
4172
|
symbols: u = {},
|
4144
4173
|
standard: c = EMPTY,
|
@@ -4165,8 +4194,8 @@ function filesize(e, {
|
|
4165
4194
|
const O = Math.pow(10, y > 0 ? a : 0);
|
4166
4195
|
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];
|
4167
4196
|
}
|
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,
|
4169
|
-
const O =
|
4197
|
+
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, s) : i.length > 0 && (E[0] = E[0].toString().replace(PERIOD, i)), r && Number.isInteger(E[0]) === !1 && a > 0) {
|
4198
|
+
const O = i || PERIOD, B = E[0].toString().split(O), $ = B[1] || EMPTY, P = $.length, D = a - P;
|
4170
4199
|
E[0] = `${B[0]}${O}${$.padEnd(P + D, ZERO)}`;
|
4171
4200
|
}
|
4172
4201
|
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 ? {
|
@@ -4440,21 +4469,21 @@ function assignValue(e, t, r) {
|
|
4440
4469
|
function copyObject(e, t, r, n) {
|
4441
4470
|
var a = !r;
|
4442
4471
|
r || (r = {});
|
4443
|
-
for (var o = -1,
|
4444
|
-
var
|
4445
|
-
l === void 0 && (l = e[
|
4472
|
+
for (var o = -1, s = t.length; ++o < s; ) {
|
4473
|
+
var i = t[o], l = n ? n(r[i], e[i], i, r, e) : void 0;
|
4474
|
+
l === void 0 && (l = e[i]), a ? baseAssignValue(r, i, l) : assignValue(r, i, l);
|
4446
4475
|
}
|
4447
4476
|
return r;
|
4448
4477
|
}
|
4449
4478
|
var nativeMax$1 = Math.max;
|
4450
4479
|
function overRest(e, t, r) {
|
4451
4480
|
return t = nativeMax$1(t === void 0 ? e.length - 1 : t, 0), function() {
|
4452
|
-
for (var n = arguments, a = -1, o = nativeMax$1(n.length - t, 0),
|
4453
|
-
|
4481
|
+
for (var n = arguments, a = -1, o = nativeMax$1(n.length - t, 0), s = Array(o); ++a < o; )
|
4482
|
+
s[a] = n[t + a];
|
4454
4483
|
a = -1;
|
4455
|
-
for (var
|
4456
|
-
|
4457
|
-
return
|
4484
|
+
for (var i = Array(t + 1); ++a < t; )
|
4485
|
+
i[a] = n[a];
|
4486
|
+
return i[t] = r(s), apply(e, this, i);
|
4458
4487
|
};
|
4459
4488
|
}
|
4460
4489
|
function baseRest(e, t) {
|
@@ -4521,10 +4550,10 @@ var nodeIsTypedArray = nodeUtil$1 && nodeUtil$1.isTypedArray, isTypedArray = nod
|
|
4521
4550
|
const isTypedArray$1 = isTypedArray;
|
4522
4551
|
var objectProto$8 = Object.prototype, hasOwnProperty$7 = objectProto$8.hasOwnProperty;
|
4523
4552
|
function arrayLikeKeys(e, t) {
|
4524
|
-
var r = isArray$1(e), n = !r && isArguments$1(e), a = !r && !n && isBuffer$1(e), o = !r && !n && !a && isTypedArray$1(e),
|
4553
|
+
var r = isArray$1(e), n = !r && isArguments$1(e), a = !r && !n && isBuffer$1(e), o = !r && !n && !a && isTypedArray$1(e), s = r || n || a || o, i = s ? baseTimes(e.length, String) : [], l = i.length;
|
4525
4554
|
for (var u in e)
|
4526
|
-
(t || hasOwnProperty$7.call(e, u)) && !(
|
4527
|
-
return
|
4555
|
+
(t || hasOwnProperty$7.call(e, u)) && !(s && (u == "length" || a && (u == "offset" || u == "parent") || o && (u == "buffer" || u == "byteLength" || u == "byteOffset") || isIndex(u, l))) && i.push(u);
|
4556
|
+
return i;
|
4528
4557
|
}
|
4529
4558
|
function overArg(e, t) {
|
4530
4559
|
return function(r) {
|
@@ -4702,8 +4731,8 @@ function memoize(e, t) {
|
|
4702
4731
|
var n = arguments, a = t ? t.apply(this, n) : n[0], o = r.cache;
|
4703
4732
|
if (o.has(a))
|
4704
4733
|
return o.get(a);
|
4705
|
-
var
|
4706
|
-
return r.cache = o.set(a,
|
4734
|
+
var s = e.apply(this, n);
|
4735
|
+
return r.cache = o.set(a, s) || o, s;
|
4707
4736
|
};
|
4708
4737
|
return r.cache = new (memoize.Cache || MapCache)(), r;
|
4709
4738
|
}
|
@@ -4755,10 +4784,10 @@ function isFlattenable(e) {
|
|
4755
4784
|
return isArray$1(e) || isArguments$1(e) || !!(spreadableSymbol && e && e[spreadableSymbol]);
|
4756
4785
|
}
|
4757
4786
|
function baseFlatten(e, t, r, n, a) {
|
4758
|
-
var o = -1,
|
4759
|
-
for (r || (r = isFlattenable), a || (a = []); ++o <
|
4760
|
-
var
|
4761
|
-
t > 0 && r(
|
4787
|
+
var o = -1, s = e.length;
|
4788
|
+
for (r || (r = isFlattenable), a || (a = []); ++o < s; ) {
|
4789
|
+
var i = e[o];
|
4790
|
+
t > 0 && r(i) ? t > 1 ? baseFlatten(i, t - 1, r, n, a) : arrayPush(a, i) : n || (a[a.length] = i);
|
4762
4791
|
}
|
4763
4792
|
return a;
|
4764
4793
|
}
|
@@ -5050,8 +5079,8 @@ function cloneBuffer(e, t) {
|
|
5050
5079
|
}
|
5051
5080
|
function arrayFilter(e, t) {
|
5052
5081
|
for (var r = -1, n = e == null ? 0 : e.length, a = 0, o = []; ++r < n; ) {
|
5053
|
-
var
|
5054
|
-
t(
|
5082
|
+
var s = e[r];
|
5083
|
+
t(s, r, e) && (o[a++] = s);
|
5055
5084
|
}
|
5056
5085
|
return o;
|
5057
5086
|
}
|
@@ -5192,41 +5221,41 @@ var CLONE_DEEP_FLAG$1 = 1, CLONE_FLAT_FLAG = 2, CLONE_SYMBOLS_FLAG$1 = 4, argsTa
|
|
5192
5221
|
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;
|
5193
5222
|
cloneableTags[errorTag$1] = cloneableTags[funcTag] = cloneableTags[weakMapTag] = !1;
|
5194
5223
|
function baseClone(e, t, r, n, a, o) {
|
5195
|
-
var
|
5196
|
-
if (r && (
|
5197
|
-
return
|
5224
|
+
var s, i = t & CLONE_DEEP_FLAG$1, l = t & CLONE_FLAT_FLAG, u = t & CLONE_SYMBOLS_FLAG$1;
|
5225
|
+
if (r && (s = a ? r(e, n, a, o) : r(e)), s !== void 0)
|
5226
|
+
return s;
|
5198
5227
|
if (!isObject$2(e))
|
5199
5228
|
return e;
|
5200
5229
|
var c = isArray$1(e);
|
5201
5230
|
if (c) {
|
5202
|
-
if (
|
5203
|
-
return copyArray(e,
|
5231
|
+
if (s = initCloneArray(e), !i)
|
5232
|
+
return copyArray(e, s);
|
5204
5233
|
} else {
|
5205
5234
|
var g = getTag$1(e), p = g == funcTag || g == genTag;
|
5206
5235
|
if (isBuffer$1(e))
|
5207
|
-
return cloneBuffer(e,
|
5236
|
+
return cloneBuffer(e, i);
|
5208
5237
|
if (g == objectTag$1 || g == argsTag$1 || p && !a) {
|
5209
|
-
if (
|
5210
|
-
return l ? copySymbolsIn(e, baseAssignIn(
|
5238
|
+
if (s = l || p ? {} : initCloneObject(e), !i)
|
5239
|
+
return l ? copySymbolsIn(e, baseAssignIn(s, e)) : copySymbols(e, baseAssign(s, e));
|
5211
5240
|
} else {
|
5212
5241
|
if (!cloneableTags[g])
|
5213
5242
|
return a ? e : {};
|
5214
|
-
|
5243
|
+
s = initCloneByTag(e, g, i);
|
5215
5244
|
}
|
5216
5245
|
}
|
5217
5246
|
o || (o = new Stack());
|
5218
5247
|
var b = o.get(e);
|
5219
5248
|
if (b)
|
5220
5249
|
return b;
|
5221
|
-
o.set(e,
|
5222
|
-
|
5250
|
+
o.set(e, s), isSet$1(e) ? e.forEach(function(_) {
|
5251
|
+
s.add(baseClone(_, t, r, _, e, o));
|
5223
5252
|
}) : isMap$1(e) && e.forEach(function(_, y) {
|
5224
|
-
|
5253
|
+
s.set(y, baseClone(_, t, r, y, e, o));
|
5225
5254
|
});
|
5226
5255
|
var m = u ? l ? getAllKeysIn : getAllKeys : l ? keysIn : keys, v = c ? void 0 : m(e);
|
5227
5256
|
return arrayEach(v || e, function(_, y) {
|
5228
|
-
v && (y = _, _ = e[y]), assignValue(
|
5229
|
-
}),
|
5257
|
+
v && (y = _, _ = e[y]), assignValue(s, y, baseClone(_, t, r, y, e, o));
|
5258
|
+
}), s;
|
5230
5259
|
}
|
5231
5260
|
var CLONE_DEEP_FLAG = 1, CLONE_SYMBOLS_FLAG = 4;
|
5232
5261
|
function cloneDeep(e) {
|
@@ -5257,17 +5286,17 @@ function cacheHas(e, t) {
|
|
5257
5286
|
}
|
5258
5287
|
var COMPARE_PARTIAL_FLAG$5 = 1, COMPARE_UNORDERED_FLAG$3 = 2;
|
5259
5288
|
function equalArrays(e, t, r, n, a, o) {
|
5260
|
-
var
|
5261
|
-
if (
|
5289
|
+
var s = r & COMPARE_PARTIAL_FLAG$5, i = e.length, l = t.length;
|
5290
|
+
if (i != l && !(s && l > i))
|
5262
5291
|
return !1;
|
5263
5292
|
var u = o.get(e), c = o.get(t);
|
5264
5293
|
if (u && c)
|
5265
5294
|
return u == t && c == e;
|
5266
5295
|
var g = -1, p = !0, b = r & COMPARE_UNORDERED_FLAG$3 ? new SetCache() : void 0;
|
5267
|
-
for (o.set(e, t), o.set(t, e); ++g <
|
5296
|
+
for (o.set(e, t), o.set(t, e); ++g < i; ) {
|
5268
5297
|
var m = e[g], v = t[g];
|
5269
5298
|
if (n)
|
5270
|
-
var _ =
|
5299
|
+
var _ = s ? n(v, m, g, t, e, o) : n(m, v, g, e, t, o);
|
5271
5300
|
if (_ !== void 0) {
|
5272
5301
|
if (_)
|
5273
5302
|
continue;
|
@@ -5302,7 +5331,7 @@ function setToArray(e) {
|
|
5302
5331
|
}), r;
|
5303
5332
|
}
|
5304
5333
|
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;
|
5305
|
-
function equalByTag(e, t, r, n, a, o,
|
5334
|
+
function equalByTag(e, t, r, n, a, o, s) {
|
5306
5335
|
switch (r) {
|
5307
5336
|
case dataViewTag:
|
5308
5337
|
if (e.byteLength != t.byteLength || e.byteOffset != t.byteOffset)
|
@@ -5320,17 +5349,17 @@ function equalByTag(e, t, r, n, a, o, i) {
|
|
5320
5349
|
case stringTag$1:
|
5321
5350
|
return e == t + "";
|
5322
5351
|
case mapTag$1:
|
5323
|
-
var
|
5352
|
+
var i = mapToArray;
|
5324
5353
|
case setTag$1:
|
5325
5354
|
var l = n & COMPARE_PARTIAL_FLAG$4;
|
5326
|
-
if (
|
5355
|
+
if (i || (i = setToArray), e.size != t.size && !l)
|
5327
5356
|
return !1;
|
5328
|
-
var u =
|
5357
|
+
var u = s.get(e);
|
5329
5358
|
if (u)
|
5330
5359
|
return u == t;
|
5331
|
-
n |= COMPARE_UNORDERED_FLAG$2,
|
5332
|
-
var c = equalArrays(
|
5333
|
-
return
|
5360
|
+
n |= COMPARE_UNORDERED_FLAG$2, s.set(e, t);
|
5361
|
+
var c = equalArrays(i(e), i(t), n, a, o, s);
|
5362
|
+
return s.delete(e), c;
|
5334
5363
|
case symbolTag:
|
5335
5364
|
if (symbolValueOf)
|
5336
5365
|
return symbolValueOf.call(e) == symbolValueOf.call(t);
|
@@ -5339,12 +5368,12 @@ function equalByTag(e, t, r, n, a, o, i) {
|
|
5339
5368
|
}
|
5340
5369
|
var COMPARE_PARTIAL_FLAG$3 = 1, objectProto$1 = Object.prototype, hasOwnProperty$1 = objectProto$1.hasOwnProperty;
|
5341
5370
|
function equalObjects(e, t, r, n, a, o) {
|
5342
|
-
var
|
5343
|
-
if (l != c && !
|
5371
|
+
var s = r & COMPARE_PARTIAL_FLAG$3, i = getAllKeys(e), l = i.length, u = getAllKeys(t), c = u.length;
|
5372
|
+
if (l != c && !s)
|
5344
5373
|
return !1;
|
5345
5374
|
for (var g = l; g--; ) {
|
5346
|
-
var p =
|
5347
|
-
if (!(
|
5375
|
+
var p = i[g];
|
5376
|
+
if (!(s ? p in t : hasOwnProperty$1.call(t, p)))
|
5348
5377
|
return !1;
|
5349
5378
|
}
|
5350
5379
|
var b = o.get(e), m = o.get(t);
|
@@ -5352,11 +5381,11 @@ function equalObjects(e, t, r, n, a, o) {
|
|
5352
5381
|
return b == t && m == e;
|
5353
5382
|
var v = !0;
|
5354
5383
|
o.set(e, t), o.set(t, e);
|
5355
|
-
for (var _ =
|
5356
|
-
p =
|
5384
|
+
for (var _ = s; ++g < l; ) {
|
5385
|
+
p = i[g];
|
5357
5386
|
var y = e[p], C = t[p];
|
5358
5387
|
if (n)
|
5359
|
-
var E =
|
5388
|
+
var E = s ? n(C, y, p, t, e, o) : n(y, C, p, e, t, o);
|
5360
5389
|
if (!(E === void 0 ? y === C || a(y, C, r, n, o) : E)) {
|
5361
5390
|
v = !1;
|
5362
5391
|
break;
|
@@ -5371,16 +5400,16 @@ function equalObjects(e, t, r, n, a, o) {
|
|
5371
5400
|
}
|
5372
5401
|
var COMPARE_PARTIAL_FLAG$2 = 1, argsTag = "[object Arguments]", arrayTag = "[object Array]", objectTag = "[object Object]", objectProto = Object.prototype, hasOwnProperty = objectProto.hasOwnProperty;
|
5373
5402
|
function baseIsEqualDeep(e, t, r, n, a, o) {
|
5374
|
-
var
|
5403
|
+
var s = isArray$1(e), i = isArray$1(t), l = s ? arrayTag : getTag$1(e), u = i ? arrayTag : getTag$1(t);
|
5375
5404
|
l = l == argsTag ? objectTag : l, u = u == argsTag ? objectTag : u;
|
5376
5405
|
var c = l == objectTag, g = u == objectTag, p = l == u;
|
5377
5406
|
if (p && isBuffer$1(e)) {
|
5378
5407
|
if (!isBuffer$1(t))
|
5379
5408
|
return !1;
|
5380
|
-
|
5409
|
+
s = !0, c = !1;
|
5381
5410
|
}
|
5382
5411
|
if (p && !c)
|
5383
|
-
return o || (o = new Stack()),
|
5412
|
+
return o || (o = new Stack()), s || isTypedArray$1(e) ? equalArrays(e, t, r, n, a, o) : equalByTag(e, t, l, r, n, a, o);
|
5384
5413
|
if (!(r & COMPARE_PARTIAL_FLAG$2)) {
|
5385
5414
|
var b = c && hasOwnProperty.call(e, "__wrapped__"), m = g && hasOwnProperty.call(t, "__wrapped__");
|
5386
5415
|
if (b || m) {
|
@@ -5395,18 +5424,18 @@ function baseIsEqual(e, t, r, n, a) {
|
|
5395
5424
|
}
|
5396
5425
|
var COMPARE_PARTIAL_FLAG$1 = 1, COMPARE_UNORDERED_FLAG$1 = 2;
|
5397
5426
|
function baseIsMatch(e, t, r, n) {
|
5398
|
-
var a = r.length, o = a,
|
5427
|
+
var a = r.length, o = a, s = !n;
|
5399
5428
|
if (e == null)
|
5400
5429
|
return !o;
|
5401
5430
|
for (e = Object(e); a--; ) {
|
5402
|
-
var
|
5403
|
-
if (
|
5431
|
+
var i = r[a];
|
5432
|
+
if (s && i[2] ? i[1] !== e[i[0]] : !(i[0] in e))
|
5404
5433
|
return !1;
|
5405
5434
|
}
|
5406
5435
|
for (; ++a < o; ) {
|
5407
|
-
|
5408
|
-
var l =
|
5409
|
-
if (
|
5436
|
+
i = r[a];
|
5437
|
+
var l = i[0], u = e[l], c = i[1];
|
5438
|
+
if (s && i[2]) {
|
5410
5439
|
if (u === void 0 && !(l in e))
|
5411
5440
|
return !1;
|
5412
5441
|
} else {
|
@@ -5446,12 +5475,12 @@ function baseHasIn(e, t) {
|
|
5446
5475
|
function hasPath(e, t, r) {
|
5447
5476
|
t = castPath(t, e);
|
5448
5477
|
for (var n = -1, a = t.length, o = !1; ++n < a; ) {
|
5449
|
-
var
|
5450
|
-
if (!(o = e != null && r(e,
|
5478
|
+
var s = toKey(t[n]);
|
5479
|
+
if (!(o = e != null && r(e, s)))
|
5451
5480
|
break;
|
5452
|
-
e = e[
|
5481
|
+
e = e[s];
|
5453
5482
|
}
|
5454
|
-
return o || ++n != a ? o : (a = e == null ? 0 : e.length, !!a && isLength(a) && isIndex(
|
5483
|
+
return o || ++n != a ? o : (a = e == null ? 0 : e.length, !!a && isLength(a) && isIndex(s, a) && (isArray$1(e) || isArguments$1(e)));
|
5455
5484
|
}
|
5456
5485
|
function hasIn(e, t) {
|
5457
5486
|
return e != null && hasPath(e, t, baseHasIn);
|
@@ -5481,8 +5510,8 @@ function baseIteratee(e) {
|
|
5481
5510
|
}
|
5482
5511
|
function createBaseFor(e) {
|
5483
5512
|
return function(t, r, n) {
|
5484
|
-
for (var a = -1, o = Object(t),
|
5485
|
-
var l =
|
5513
|
+
for (var a = -1, o = Object(t), s = n(t), i = s.length; i--; ) {
|
5514
|
+
var l = s[e ? i : ++a];
|
5486
5515
|
if (r(o[l], l, o) === !1)
|
5487
5516
|
break;
|
5488
5517
|
}
|
@@ -5500,7 +5529,7 @@ function createBaseEach(e, t) {
|
|
5500
5529
|
return r;
|
5501
5530
|
if (!isArrayLike(r))
|
5502
5531
|
return e(r, n);
|
5503
|
-
for (var a = r.length, o = t ? a : -1,
|
5532
|
+
for (var a = r.length, o = t ? a : -1, s = Object(r); (t ? o-- : ++o < a) && n(s[o], o, s) !== !1; )
|
5504
5533
|
;
|
5505
5534
|
return r;
|
5506
5535
|
};
|
@@ -5518,14 +5547,14 @@ function arrayIncludesWith(e, t, r) {
|
|
5518
5547
|
}
|
5519
5548
|
var LARGE_ARRAY_SIZE$1 = 200;
|
5520
5549
|
function baseDifference(e, t, r, n) {
|
5521
|
-
var a = -1, o = arrayIncludes,
|
5522
|
-
if (!
|
5550
|
+
var a = -1, o = arrayIncludes, s = !0, i = e.length, l = [], u = t.length;
|
5551
|
+
if (!i)
|
5523
5552
|
return l;
|
5524
|
-
r && (t = arrayMap(t, baseUnary(r))), n ? (o = arrayIncludesWith,
|
5553
|
+
r && (t = arrayMap(t, baseUnary(r))), n ? (o = arrayIncludesWith, s = !1) : t.length >= LARGE_ARRAY_SIZE$1 && (o = cacheHas, s = !1, t = new SetCache(t));
|
5525
5554
|
e:
|
5526
|
-
for (; ++a <
|
5555
|
+
for (; ++a < i; ) {
|
5527
5556
|
var c = e[a], g = r == null ? c : r(c);
|
5528
|
-
if (c = n || c !== 0 ? c : 0,
|
5557
|
+
if (c = n || c !== 0 ? c : 0, s && g === g) {
|
5529
5558
|
for (var p = u; p--; )
|
5530
5559
|
if (t[p] === g)
|
5531
5560
|
continue e;
|
@@ -5557,8 +5586,8 @@ var toPairs = createToPairs(keys);
|
|
5557
5586
|
const toPairs$1 = toPairs;
|
5558
5587
|
function baseMap(e, t) {
|
5559
5588
|
var r = -1, n = isArrayLike(e) ? Array(e.length) : [];
|
5560
|
-
return baseEach$1(e, function(a, o,
|
5561
|
-
n[++r] = t(a, o,
|
5589
|
+
return baseEach$1(e, function(a, o, s) {
|
5590
|
+
n[++r] = t(a, o, s);
|
5562
5591
|
}), n;
|
5563
5592
|
}
|
5564
5593
|
function baseGt(e, t) {
|
@@ -5570,19 +5599,19 @@ function isString$1(e) {
|
|
5570
5599
|
}
|
5571
5600
|
var nativeMin = Math.min;
|
5572
5601
|
function baseIntersection(e, t, r) {
|
5573
|
-
for (var n = r ? arrayIncludesWith : arrayIncludes, a = e[0].length, o = e.length,
|
5574
|
-
var c = e[
|
5575
|
-
|
5602
|
+
for (var n = r ? arrayIncludesWith : arrayIncludes, a = e[0].length, o = e.length, s = o, i = Array(o), l = 1 / 0, u = []; s--; ) {
|
5603
|
+
var c = e[s];
|
5604
|
+
s && t && (c = arrayMap(c, baseUnary(t))), l = nativeMin(c.length, l), i[s] = !r && (t || a >= 120 && c.length >= 120) ? new SetCache(s && c) : void 0;
|
5576
5605
|
}
|
5577
5606
|
c = e[0];
|
5578
|
-
var g = -1, p =
|
5607
|
+
var g = -1, p = i[0];
|
5579
5608
|
e:
|
5580
5609
|
for (; ++g < a && u.length < l; ) {
|
5581
5610
|
var b = c[g], m = t ? t(b) : b;
|
5582
5611
|
if (b = r || b !== 0 ? b : 0, !(p ? cacheHas(p, m) : n(u, m, r))) {
|
5583
|
-
for (
|
5584
|
-
var v = s
|
5585
|
-
if (!(v ? cacheHas(v, m) : n(e[
|
5612
|
+
for (s = o; --s; ) {
|
5613
|
+
var v = i[s];
|
5614
|
+
if (!(v ? cacheHas(v, m) : n(e[s], m, r)))
|
5586
5615
|
continue e;
|
5587
5616
|
}
|
5588
5617
|
p && p.push(m), u.push(b);
|
@@ -5609,9 +5638,9 @@ function mapValues(e, t) {
|
|
5609
5638
|
}
|
5610
5639
|
function baseExtremum(e, t, r) {
|
5611
5640
|
for (var n = -1, a = e.length; ++n < a; ) {
|
5612
|
-
var o = e[n],
|
5613
|
-
if (
|
5614
|
-
var
|
5641
|
+
var o = e[n], s = t(o);
|
5642
|
+
if (s != null && (i === void 0 ? s === s && !isSymbol(s) : r(s, i)))
|
5643
|
+
var i = s, l = o;
|
5615
5644
|
}
|
5616
5645
|
return l;
|
5617
5646
|
}
|
@@ -5626,19 +5655,19 @@ function baseSortBy(e, t) {
|
|
5626
5655
|
}
|
5627
5656
|
function compareAscending(e, t) {
|
5628
5657
|
if (e !== t) {
|
5629
|
-
var r = e !== void 0, n = e === null, a = e === e, o = isSymbol(e),
|
5630
|
-
if (!
|
5658
|
+
var r = e !== void 0, n = e === null, a = e === e, o = isSymbol(e), s = t !== void 0, i = t === null, l = t === t, u = isSymbol(t);
|
5659
|
+
if (!i && !u && !o && e > t || o && s && l && !i && !u || n && s && l || !r && l || !a)
|
5631
5660
|
return 1;
|
5632
|
-
if (!n && !o && !u && e < t || u && r && a && !n && !o ||
|
5661
|
+
if (!n && !o && !u && e < t || u && r && a && !n && !o || i && r && a || !s && a || !l)
|
5633
5662
|
return -1;
|
5634
5663
|
}
|
5635
5664
|
return 0;
|
5636
5665
|
}
|
5637
5666
|
function compareMultiple(e, t, r) {
|
5638
|
-
for (var n = -1, a = e.criteria, o = t.criteria,
|
5667
|
+
for (var n = -1, a = e.criteria, o = t.criteria, s = a.length, i = r.length; ++n < s; ) {
|
5639
5668
|
var l = compareAscending(a[n], o[n]);
|
5640
5669
|
if (l) {
|
5641
|
-
if (n >=
|
5670
|
+
if (n >= i)
|
5642
5671
|
return l;
|
5643
5672
|
var u = r[n];
|
5644
5673
|
return l * (u == "desc" ? -1 : 1);
|
@@ -5648,27 +5677,27 @@ function compareMultiple(e, t, r) {
|
|
5648
5677
|
}
|
5649
5678
|
function baseOrderBy(e, t, r) {
|
5650
5679
|
t.length ? t = arrayMap(t, function(o) {
|
5651
|
-
return isArray$1(o) ? function(
|
5652
|
-
return baseGet(
|
5680
|
+
return isArray$1(o) ? function(s) {
|
5681
|
+
return baseGet(s, o.length === 1 ? o[0] : o);
|
5653
5682
|
} : o;
|
5654
5683
|
}) : t = [identity];
|
5655
5684
|
var n = -1;
|
5656
5685
|
t = arrayMap(t, baseUnary(baseIteratee));
|
5657
|
-
var a = baseMap(e, function(o,
|
5686
|
+
var a = baseMap(e, function(o, s, i) {
|
5658
5687
|
var l = arrayMap(t, function(u) {
|
5659
5688
|
return u(o);
|
5660
5689
|
});
|
5661
5690
|
return { criteria: l, index: ++n, value: o };
|
5662
5691
|
});
|
5663
|
-
return baseSortBy(a, function(o,
|
5664
|
-
return compareMultiple(o,
|
5692
|
+
return baseSortBy(a, function(o, s) {
|
5693
|
+
return compareMultiple(o, s, r);
|
5665
5694
|
});
|
5666
5695
|
}
|
5667
5696
|
var nativeCeil = Math.ceil, nativeMax = Math.max;
|
5668
5697
|
function baseRange(e, t, r, n) {
|
5669
|
-
for (var a = -1, o = nativeMax(nativeCeil((t - e) / (r || 1)), 0),
|
5670
|
-
|
5671
|
-
return
|
5698
|
+
for (var a = -1, o = nativeMax(nativeCeil((t - e) / (r || 1)), 0), s = Array(o); o--; )
|
5699
|
+
s[n ? o : ++a] = e, e += r;
|
5700
|
+
return s;
|
5672
5701
|
}
|
5673
5702
|
function createRange(e) {
|
5674
5703
|
return function(t, r, n) {
|
@@ -5694,28 +5723,28 @@ var INFINITY = 1 / 0, createSet = Set$2 && 1 / setToArray(new Set$2([, -0]))[1]
|
|
5694
5723
|
const createSet$1 = createSet;
|
5695
5724
|
var LARGE_ARRAY_SIZE = 200;
|
5696
5725
|
function baseUniq(e, t, r) {
|
5697
|
-
var n = -1, a = arrayIncludes, o = e.length,
|
5726
|
+
var n = -1, a = arrayIncludes, o = e.length, s = !0, i = [], l = i;
|
5698
5727
|
if (r)
|
5699
|
-
|
5728
|
+
s = !1, a = arrayIncludesWith;
|
5700
5729
|
else if (o >= LARGE_ARRAY_SIZE) {
|
5701
5730
|
var u = t ? null : createSet$1(e);
|
5702
5731
|
if (u)
|
5703
5732
|
return setToArray(u);
|
5704
|
-
|
5733
|
+
s = !1, a = cacheHas, l = new SetCache();
|
5705
5734
|
} else
|
5706
|
-
l = t ? [] :
|
5735
|
+
l = t ? [] : i;
|
5707
5736
|
e:
|
5708
5737
|
for (; ++n < o; ) {
|
5709
5738
|
var c = e[n], g = t ? t(c) : c;
|
5710
|
-
if (c = r || c !== 0 ? c : 0,
|
5739
|
+
if (c = r || c !== 0 ? c : 0, s && g === g) {
|
5711
5740
|
for (var p = l.length; p--; )
|
5712
5741
|
if (l[p] === g)
|
5713
5742
|
continue e;
|
5714
|
-
t && l.push(g),
|
5743
|
+
t && l.push(g), i.push(c);
|
5715
5744
|
} else
|
5716
|
-
a(l, g, r) || (l !==
|
5745
|
+
a(l, g, r) || (l !== i && l.push(g), i.push(c));
|
5717
5746
|
}
|
5718
|
-
return
|
5747
|
+
return i;
|
5719
5748
|
}
|
5720
5749
|
function uniq(e) {
|
5721
5750
|
return e && e.length ? baseUniq(e) : [];
|
@@ -6022,22 +6051,22 @@ class Logger {
|
|
6022
6051
|
Logger.log("info", t, r, n);
|
6023
6052
|
}
|
6024
6053
|
static log(t = "info", r, n = {}, a = !0, o = "color:#000;") {
|
6025
|
-
let
|
6054
|
+
let s = r, i = o;
|
6026
6055
|
switch (t) {
|
6027
6056
|
case "debug":
|
6028
|
-
|
6057
|
+
s = `[DEBUG] ${r}`;
|
6029
6058
|
break;
|
6030
6059
|
case "info":
|
6031
|
-
|
6060
|
+
s = `[INFO] ${r}`;
|
6032
6061
|
break;
|
6033
6062
|
case "warn":
|
6034
|
-
|
6063
|
+
s = `[WARN] ${r}`, i = "color:#fa8c16;";
|
6035
6064
|
break;
|
6036
6065
|
case "error":
|
6037
|
-
|
6066
|
+
s = `[ERROR] ${r}`, i = "color:#f00;";
|
6038
6067
|
break;
|
6039
6068
|
}
|
6040
|
-
a ? console.groupCollapsed(`%c[@kengic/vue] ${
|
6069
|
+
a ? console.groupCollapsed(`%c[@kengic/vue] ${s}`, i) : console.group(`%c[@kengic/vue] ${s}`, i), toPairs$1(cloneDeep(n)).forEach((l) => {
|
6041
6070
|
console.log(`%c${l[0]}:`, "color: #000; font-weight: bold;", l[1]);
|
6042
6071
|
}), console.trace(""), console.groupEnd();
|
6043
6072
|
}
|
@@ -6056,15 +6085,15 @@ class KgUtil {
|
|
6056
6085
|
static base64toBlob(t, r, n = 512) {
|
6057
6086
|
let a = t;
|
6058
6087
|
a.startsWith("data:") && (a = t.split("base64,")[1]);
|
6059
|
-
const o = atob(a),
|
6060
|
-
for (let
|
6061
|
-
const l = o.slice(
|
6088
|
+
const o = atob(a), s = [];
|
6089
|
+
for (let i = 0; i < o.length; i += n) {
|
6090
|
+
const l = o.slice(i, i + n), u = new Array(l.length);
|
6062
6091
|
for (let g = 0; g < l.length; g++)
|
6063
6092
|
u[g] = l.charCodeAt(g);
|
6064
6093
|
const c = new Uint8Array(u);
|
6065
|
-
|
6094
|
+
s.push(c);
|
6066
6095
|
}
|
6067
|
-
return new Blob(
|
6096
|
+
return new Blob(s, { type: r });
|
6068
6097
|
}
|
6069
6098
|
static downloadFile(t, r, n) {
|
6070
6099
|
const a = r.split(".")[1];
|
@@ -6084,40 +6113,40 @@ class KgUtil {
|
|
6084
6113
|
Logger.error("\u53C2\u6570 _contentType \u4E3A\u7A7A.");
|
6085
6114
|
return;
|
6086
6115
|
}
|
6087
|
-
let
|
6088
|
-
typeof t == "string" ?
|
6089
|
-
const
|
6090
|
-
l.setAttribute("style", "display:none"), l.setAttribute("href",
|
6116
|
+
let s;
|
6117
|
+
typeof t == "string" ? s = new Blob([this.base64toBlob(t, n)], { type: n }) : s = new Blob([t], { type: n });
|
6118
|
+
const i = URL.createObjectURL(s), l = document.createElement("a");
|
6119
|
+
l.setAttribute("style", "display:none"), l.setAttribute("href", i), l.setAttribute("download", r), document.body.appendChild(l), l.click(), document.body.removeChild(l), URL.revokeObjectURL(i);
|
6091
6120
|
}
|
6092
6121
|
static parseParams(t, r, n) {
|
6093
6122
|
let a = cloneDeep(toRaw(unref(t)));
|
6094
6123
|
return !a || !isObjectLike(a) || Object.keys(a).forEach((o) => {
|
6095
|
-
const
|
6124
|
+
const s = a[o];
|
6096
6125
|
switch (!0) {
|
6097
6126
|
case o.endsWith("_obj"): {
|
6098
6127
|
a[o] = void 0;
|
6099
6128
|
break;
|
6100
6129
|
}
|
6101
|
-
case (!!r && !!n && n.isDayjs(
|
6102
|
-
a[o] = this.parseParamFromDayJS(o,
|
6130
|
+
case (!!r && !!n && n.isDayjs(s)):
|
6131
|
+
a[o] = this.parseParamFromDayJS(o, s, r);
|
6103
6132
|
break;
|
6104
|
-
case (isArray$1(
|
6105
|
-
a[o] = void 0, a[`${o}_begin`] = this.parseParamFromDayJS(o,
|
6133
|
+
case (isArray$1(s) && s.length === 2 && !!r && !!n && n.isDayjs(s[0]) && n.isDayjs(s[1])):
|
6134
|
+
a[o] = void 0, a[`${o}_begin`] = this.parseParamFromDayJS(o, s[0], r), a[`${o}_end`] = this.parseParamFromDayJS(o, s[1], r);
|
6106
6135
|
break;
|
6107
|
-
case isObjectLike(
|
6108
|
-
a[o] = this.parseParams(
|
6136
|
+
case isObjectLike(s):
|
6137
|
+
a[o] = this.parseParams(s);
|
6109
6138
|
break;
|
6110
|
-
case typeof
|
6111
|
-
a[o] = this.parseParamFromString(
|
6139
|
+
case typeof s == "string":
|
6140
|
+
a[o] = this.parseParamFromString(s);
|
6112
6141
|
break;
|
6113
6142
|
default:
|
6114
|
-
a[o] =
|
6143
|
+
a[o] = s;
|
6115
6144
|
break;
|
6116
6145
|
}
|
6117
6146
|
}), a;
|
6118
6147
|
}
|
6119
6148
|
static parseParamFromString(t) {
|
6120
|
-
var a, o,
|
6149
|
+
var a, o, s, i, l;
|
6121
6150
|
const r = useKg(), n = /(.*)?({(.*)?})(.*)?/.exec(t);
|
6122
6151
|
if (n) {
|
6123
6152
|
const u = n[2], c = n[2].slice(1, -1);
|
@@ -6126,7 +6155,7 @@ class KgUtil {
|
|
6126
6155
|
return t.replace("{WAREHOUSE}", (o = (a = useKgWarehouse().warehouse.value) == null ? void 0 : a.whId) != null ? o : "");
|
6127
6156
|
default:
|
6128
6157
|
if (c.endsWith(":query"))
|
6129
|
-
return (l = (
|
6158
|
+
return (l = (i = (s = r.router.value) == null ? void 0 : s.currentRoute) == null ? void 0 : i.query[c.slice(0, -6)]) != null ? l : "";
|
6130
6159
|
break;
|
6131
6160
|
}
|
6132
6161
|
return t;
|
@@ -6171,14 +6200,14 @@ class KgUtil {
|
|
6171
6200
|
...t
|
6172
6201
|
});
|
6173
6202
|
return n.showLoading = () => {
|
6174
|
-
n.update((
|
6175
|
-
const
|
6176
|
-
return
|
6203
|
+
n.update((s) => {
|
6204
|
+
const i = cloneDeep(s);
|
6205
|
+
return i.okButtonProps.loading = !0, i.cancelButtonProps.disabled = !0, i;
|
6177
6206
|
});
|
6178
6207
|
}, n.hideLoading = () => {
|
6179
|
-
n.update((
|
6180
|
-
const
|
6181
|
-
return
|
6208
|
+
n.update((s) => {
|
6209
|
+
const i = cloneDeep(s);
|
6210
|
+
return i.okButtonProps.loading = !1, i.cancelButtonProps.disabled = !1, i;
|
6182
6211
|
});
|
6183
6212
|
}, n;
|
6184
6213
|
}
|
@@ -6275,7 +6304,7 @@ class KgRouteUtil {
|
|
6275
6304
|
throw new Error(`\u5730\u5740\u65E0\u6CD5\u5339\u914D\u6A21\u5757. \u5730\u5740: ${t}`);
|
6276
6305
|
}
|
6277
6306
|
static getAppIndexPath(t) {
|
6278
|
-
var a, o,
|
6307
|
+
var a, o, s, i, l, u, c, g;
|
6279
6308
|
const r = useKg();
|
6280
6309
|
let n = "";
|
6281
6310
|
switch (t) {
|
@@ -6283,7 +6312,7 @@ class KgRouteUtil {
|
|
6283
6312
|
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`;
|
6284
6313
|
break;
|
6285
6314
|
case KG_APP.WMS_BUSINESS_MANAGER:
|
6286
|
-
n = ((
|
6315
|
+
n = ((i = (s = r.option.value) == null ? void 0 : s.appIndex) == null ? void 0 : i[KG_APP.WMS_BUSINESS_MANAGER]) || `${KG_APP_PREFIX.WMS_BUSINESS_MANAGER}/index`;
|
6287
6316
|
break;
|
6288
6317
|
case KG_APP.WCS:
|
6289
6318
|
n = ((u = (l = r.option.value) == null ? void 0 : l.appIndex) == null ? void 0 : u[KG_APP.WCS]) || `${KG_APP_PREFIX.WCS}/index`;
|
@@ -6311,10 +6340,10 @@ class KgVarUtil {
|
|
6311
6340
|
return r;
|
6312
6341
|
}
|
6313
6342
|
static transformValueByControlType(t, r, n, a) {
|
6314
|
-
const o = useKgVar(t),
|
6315
|
-
if (!
|
6343
|
+
const o = useKgVar(t), s = o.store.getVariableConfig(t, r);
|
6344
|
+
if (!s)
|
6316
6345
|
return a;
|
6317
|
-
switch (
|
6346
|
+
switch (s.ctrl_typ) {
|
6318
6347
|
case KG_FORM_ITEM_TYPE.INPUT:
|
6319
6348
|
case KG_FORM_ITEM_TYPE.INPUT_PASSWORD:
|
6320
6349
|
case KG_FORM_ITEM_TYPE.INPUT_AREA:
|
@@ -6322,8 +6351,8 @@ class KgVarUtil {
|
|
6322
6351
|
case KG_FORM_ITEM_TYPE.INPUT_NUMBER: {
|
6323
6352
|
if (isNil(a))
|
6324
6353
|
return;
|
6325
|
-
const
|
6326
|
-
if (Number.isNaN(
|
6354
|
+
const i = Number(a);
|
6355
|
+
if (Number.isNaN(i)) {
|
6327
6356
|
Logger.error("| \u63A7\u4EF6\u7684\u503C\u975E\u6CD5 | INPUT_NUMBER \u63A7\u4EF6\u7684\u503C\u5FC5\u987B\u4E3A\u6570\u5B57\u7C7B\u578B.", {
|
6328
6357
|
frm_id: t,
|
6329
6358
|
var_nam: r,
|
@@ -6331,30 +6360,30 @@ class KgVarUtil {
|
|
6331
6360
|
});
|
6332
6361
|
return;
|
6333
6362
|
}
|
6334
|
-
return
|
6363
|
+
return i;
|
6335
6364
|
}
|
6336
6365
|
case KG_FORM_ITEM_TYPE.CHECKBOX:
|
6337
6366
|
case KG_FORM_ITEM_TYPE.SWITCH: {
|
6338
6367
|
if (isNil(a))
|
6339
6368
|
return 0;
|
6340
|
-
const
|
6341
|
-
if (Number.isNaN(
|
6342
|
-
Logger.error(`| \u63A7\u4EF6\u7684\u503C\u975E\u6CD5 | ${
|
6369
|
+
const i = Number(a);
|
6370
|
+
if (Number.isNaN(i)) {
|
6371
|
+
Logger.error(`| \u63A7\u4EF6\u7684\u503C\u975E\u6CD5 | ${s.ctrl_typ} \u63A7\u4EF6\u7684\u503C\u5FC5\u987B\u4E3A\u6570\u5B57\u7C7B\u578B.`, {
|
6343
6372
|
frm_id: t,
|
6344
6373
|
var_nam: r,
|
6345
6374
|
value: a
|
6346
6375
|
});
|
6347
6376
|
return;
|
6348
6377
|
}
|
6349
|
-
if (![0, 1].includes(
|
6350
|
-
Logger.error(`| \u63A7\u4EF6\u7684\u503C\u975E\u6CD5 | ${
|
6378
|
+
if (![0, 1].includes(i)) {
|
6379
|
+
Logger.error(`| \u63A7\u4EF6\u7684\u503C\u975E\u6CD5 | ${s.ctrl_typ} \u63A7\u4EF6\u7684\u503C\u5FC5\u987B\u4E3A 0 \u6216 1.`, {
|
6351
6380
|
frm_id: t,
|
6352
6381
|
var_nam: r,
|
6353
6382
|
value: a
|
6354
6383
|
});
|
6355
6384
|
return;
|
6356
6385
|
}
|
6357
|
-
return
|
6386
|
+
return i;
|
6358
6387
|
}
|
6359
6388
|
case KG_FORM_ITEM_TYPE.DATE_DATE:
|
6360
6389
|
case KG_FORM_ITEM_TYPE.DATE_DATETIME:
|
@@ -6363,10 +6392,10 @@ class KgVarUtil {
|
|
6363
6392
|
case KG_FORM_ITEM_TYPE.DATE_YEAR: {
|
6364
6393
|
if (isNil(a))
|
6365
6394
|
return;
|
6366
|
-
const
|
6367
|
-
if (
|
6368
|
-
return
|
6369
|
-
Logger.error(`| \u63A7\u4EF6\u7684\u503C\u975E\u6CD5 | ${
|
6395
|
+
const i = n(a);
|
6396
|
+
if (i != null && i.isValid())
|
6397
|
+
return i;
|
6398
|
+
Logger.error(`| \u63A7\u4EF6\u7684\u503C\u975E\u6CD5 | ${s.ctrl_typ} \u63A7\u4EF6\u7684\u503C\u5FC5\u987B\u4E3A\u65E5\u671F\u7C7B\u578B.`, {
|
6370
6399
|
frm_id: t,
|
6371
6400
|
var_nam: r,
|
6372
6401
|
value: a
|
@@ -6377,9 +6406,9 @@ class KgVarUtil {
|
|
6377
6406
|
if (isNil(a))
|
6378
6407
|
return [];
|
6379
6408
|
try {
|
6380
|
-
const
|
6381
|
-
if (!isArray$1(
|
6382
|
-
Logger.error(`| \u63A7\u4EF6\u7684\u503C\u975E\u6CD5 | ${
|
6409
|
+
const i = JSON.parse(a);
|
6410
|
+
if (!isArray$1(i)) {
|
6411
|
+
Logger.error(`| \u63A7\u4EF6\u7684\u503C\u975E\u6CD5 | ${s.ctrl_typ} \u63A7\u4EF6\u7684\u503C\u5FC5\u987B\u4E3A\u6570\u7EC4\u7C7B\u578B.`, {
|
6383
6412
|
frm_id: t,
|
6384
6413
|
var_nam: r,
|
6385
6414
|
value: a
|
@@ -6389,9 +6418,9 @@ class KgVarUtil {
|
|
6389
6418
|
const l = o.store.getVarPossibility(t, r);
|
6390
6419
|
switch (l == null ? void 0 : l.val_data_type) {
|
6391
6420
|
case KG_POSSIBILITY_DATA_TYPE.NUMBER: {
|
6392
|
-
const u =
|
6421
|
+
const u = i.map((c) => Number(c));
|
6393
6422
|
if (u.some((c) => Number.isNaN(u))) {
|
6394
|
-
Logger.error(`| \u63A7\u4EF6\u7684\u503C\u975E\u6CD5 | ${
|
6423
|
+
Logger.error(`| \u63A7\u4EF6\u7684\u503C\u975E\u6CD5 | ${s.ctrl_typ} \u63A7\u4EF6\u7684\u503C\u5FC5\u987B\u4E3A number \u6570\u7EC4\u7C7B\u578B.`, {
|
6395
6424
|
frm_id: t,
|
6396
6425
|
var_nam: r,
|
6397
6426
|
value: a,
|
@@ -6402,13 +6431,13 @@ class KgVarUtil {
|
|
6402
6431
|
return u;
|
6403
6432
|
}
|
6404
6433
|
case KG_POSSIBILITY_DATA_TYPE.BOOLEAN:
|
6405
|
-
return
|
6434
|
+
return i.map((u) => Boolean(u));
|
6406
6435
|
case KG_POSSIBILITY_DATA_TYPE.STRING:
|
6407
6436
|
default:
|
6408
|
-
return
|
6437
|
+
return i.map((u) => String(u));
|
6409
6438
|
}
|
6410
6439
|
} catch {
|
6411
|
-
Logger.error(`| \u63A7\u4EF6\u7684\u503C\u975E\u6CD5 | ${
|
6440
|
+
Logger.error(`| \u63A7\u4EF6\u7684\u503C\u975E\u6CD5 | ${s.ctrl_typ} \u63A7\u4EF6\u7684\u503C\u5FC5\u987B\u4E3A\u6570\u7EC4\u7C7B\u578B.`, {
|
6412
6441
|
frm_id: t,
|
6413
6442
|
var_nam: r,
|
6414
6443
|
value: a
|
@@ -6419,16 +6448,16 @@ class KgVarUtil {
|
|
6419
6448
|
case KG_FORM_ITEM_TYPE.SELECT: {
|
6420
6449
|
if (isNil(a))
|
6421
6450
|
return;
|
6422
|
-
const
|
6423
|
-
switch (
|
6451
|
+
const i = o.store.getVarPossibility(t, r);
|
6452
|
+
switch (i == null ? void 0 : i.val_data_type) {
|
6424
6453
|
case KG_POSSIBILITY_DATA_TYPE.NUMBER: {
|
6425
6454
|
const l = Number(a);
|
6426
6455
|
if (Number.isNaN(l)) {
|
6427
|
-
Logger.error(`| \u63A7\u4EF6\u7684\u503C\u975E\u6CD5 | ${
|
6456
|
+
Logger.error(`| \u63A7\u4EF6\u7684\u503C\u975E\u6CD5 | ${s.ctrl_typ} \u63A7\u4EF6\u7684\u503C\u5FC5\u987B\u4E3A\u6570\u5B57\u7C7B\u578B.`, {
|
6428
6457
|
frm_id: t,
|
6429
6458
|
var_nam: r,
|
6430
6459
|
value: a,
|
6431
|
-
VarPossibility:
|
6460
|
+
VarPossibility: i
|
6432
6461
|
});
|
6433
6462
|
return;
|
6434
6463
|
}
|
@@ -6515,15 +6544,15 @@ function isComputed(e) {
|
|
6515
6544
|
return !!(isRef(e) && e.effect);
|
6516
6545
|
}
|
6517
6546
|
function createOptionsStore(e, t, r, n) {
|
6518
|
-
const { state: a, actions: o, getters:
|
6547
|
+
const { state: a, actions: o, getters: s } = t, i = r.state.value[e];
|
6519
6548
|
let l;
|
6520
6549
|
function u() {
|
6521
|
-
!
|
6550
|
+
!i && (process.env.NODE_ENV === "production" || !n) && (r.state.value[e] = a ? a() : {});
|
6522
6551
|
const c = process.env.NODE_ENV !== "production" && n ? toRefs(ref(a ? a() : {}).value) : toRefs(r.state.value[e]);
|
6523
|
-
return assign$1(c, o, Object.keys(
|
6552
|
+
return assign$1(c, o, Object.keys(s || {}).reduce((g, p) => (g[p] = markRaw(computed(() => {
|
6524
6553
|
setActivePinia(r);
|
6525
6554
|
const b = r._s.get(e);
|
6526
|
-
return
|
6555
|
+
return s[p].call(b, b);
|
6527
6556
|
})), g), {}));
|
6528
6557
|
}
|
6529
6558
|
return l = createSetupStore(e, u, t, r, n), l.$reset = function() {
|
@@ -6535,7 +6564,7 @@ function createOptionsStore(e, t, r, n) {
|
|
6535
6564
|
}
|
6536
6565
|
function createSetupStore(e, t, r = {}, n, a) {
|
6537
6566
|
let o;
|
6538
|
-
const
|
6567
|
+
const s = r.state, i = assign$1({ actions: {} }, r);
|
6539
6568
|
if (process.env.NODE_ENV !== "production" && !n._e.active)
|
6540
6569
|
throw new Error("Pinia destroyed");
|
6541
6570
|
const l = {
|
@@ -6546,7 +6575,7 @@ function createSetupStore(e, t, r = {}, n, a) {
|
|
6546
6575
|
});
|
6547
6576
|
let u, c, g = markRaw([]), p = markRaw([]), b;
|
6548
6577
|
const m = n.state.value[e];
|
6549
|
-
!
|
6578
|
+
!s && !m && (process.env.NODE_ENV === "production" || !a) && (n.state.value[e] = {});
|
6550
6579
|
const v = ref({});
|
6551
6580
|
function _(M) {
|
6552
6581
|
let A;
|
@@ -6629,12 +6658,12 @@ function createSetupStore(e, t, r = {}, n, a) {
|
|
6629
6658
|
for (const M in w) {
|
6630
6659
|
const A = w[M];
|
6631
6660
|
if (isRef(A) && !isComputed(A) || isReactive(A))
|
6632
|
-
process.env.NODE_ENV !== "production" && a ? set(v.value, M, toRef(w, M)) :
|
6661
|
+
process.env.NODE_ENV !== "production" && a ? set(v.value, M, toRef(w, M)) : s || (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);
|
6633
6662
|
else if (typeof A == "function") {
|
6634
6663
|
const O = process.env.NODE_ENV !== "production" && a ? A : E(M, A);
|
6635
|
-
w[M] = O, process.env.NODE_ENV !== "production" && (T.actions[M] = A),
|
6664
|
+
w[M] = O, process.env.NODE_ENV !== "production" && (T.actions[M] = A), i.actions[M] = A;
|
6636
6665
|
} else
|
6637
|
-
process.env.NODE_ENV !== "production" && isComputed(A) && (T.getters[M] =
|
6666
|
+
process.env.NODE_ENV !== "production" && isComputed(A) && (T.getters[M] = s ? r.getters[M] : A, IS_CLIENT && (w._getters || (w._getters = markRaw([]))).push(M));
|
6638
6667
|
}
|
6639
6668
|
if (assign$1(k, w), assign$1(toRaw(k), w), Object.defineProperty(k, "$state", {
|
6640
6669
|
get: () => process.env.NODE_ENV !== "production" && a ? v.value : n.state.value[e],
|
@@ -6663,7 +6692,7 @@ function createSetupStore(e, t, r = {}, n, a) {
|
|
6663
6692
|
set(k, O, E(O, B));
|
6664
6693
|
}
|
6665
6694
|
for (const O in A._hmrPayload.getters) {
|
6666
|
-
const B = A._hmrPayload.getters[O], $ =
|
6695
|
+
const B = A._hmrPayload.getters[O], $ = s ? computed(() => (setActivePinia(n), B.call(k, k))) : B;
|
6667
6696
|
set(k, O, $);
|
6668
6697
|
}
|
6669
6698
|
Object.keys(k._hmrPayload.getters).forEach((O) => {
|
@@ -6690,7 +6719,7 @@ function createSetupStore(e, t, r = {}, n, a) {
|
|
6690
6719
|
store: k,
|
6691
6720
|
app: n._a,
|
6692
6721
|
pinia: n,
|
6693
|
-
options:
|
6722
|
+
options: i
|
6694
6723
|
}));
|
6695
6724
|
Object.keys(A || {}).forEach((O) => k._customProperties.add(O)), assign$1(k, A);
|
6696
6725
|
} else
|
@@ -6698,28 +6727,28 @@ function createSetupStore(e, t, r = {}, n, a) {
|
|
6698
6727
|
store: k,
|
6699
6728
|
app: n._a,
|
6700
6729
|
pinia: n,
|
6701
|
-
options:
|
6730
|
+
options: i
|
6702
6731
|
})));
|
6703
6732
|
}), 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
|
6704
6733
|
state: () => new MyClass()
|
6705
|
-
Found in store "${k.$id}".`), m &&
|
6734
|
+
Found in store "${k.$id}".`), m && s && r.hydrate && r.hydrate(k.$state, m), u = !0, c = !0, k;
|
6706
6735
|
}
|
6707
6736
|
function defineStore(e, t, r) {
|
6708
6737
|
let n, a;
|
6709
6738
|
const o = typeof t == "function";
|
6710
6739
|
typeof e == "string" ? (n = e, a = o ? r : t) : (a = e, n = e.id);
|
6711
|
-
function i
|
6740
|
+
function s(i, l) {
|
6712
6741
|
const u = getCurrentInstance();
|
6713
|
-
if (
|
6742
|
+
if (i = (process.env.NODE_ENV === "test" && activePinia && activePinia._testing ? null : i) || u && inject(piniaSymbol), i && setActivePinia(i), process.env.NODE_ENV !== "production" && !activePinia)
|
6714
6743
|
throw new Error(`[\u{1F34D}]: getActivePinia was called with no active Pinia. Did you forget to install pinia?
|
6715
6744
|
const pinia = createPinia()
|
6716
6745
|
app.use(pinia)
|
6717
6746
|
This will fail in production.`);
|
6718
|
-
|
6719
|
-
const c =
|
6747
|
+
i = activePinia, i._s.has(n) || (o ? createSetupStore(n, t, a, i) : createOptionsStore(n, a, i), process.env.NODE_ENV !== "production" && (s._pinia = i));
|
6748
|
+
const c = i._s.get(n);
|
6720
6749
|
if (process.env.NODE_ENV !== "production" && l) {
|
6721
|
-
const g = "__hot:" + n, p = o ? createSetupStore(g, t, a,
|
6722
|
-
l._hotUpdate(p), delete
|
6750
|
+
const g = "__hot:" + n, p = o ? createSetupStore(g, t, a, i, !0) : createOptionsStore(g, assign$1({}, a), i, !0);
|
6751
|
+
l._hotUpdate(p), delete i.state.value[g], i._s.delete(g);
|
6723
6752
|
}
|
6724
6753
|
if (process.env.NODE_ENV !== "production" && IS_CLIENT && u && u.proxy && !l) {
|
6725
6754
|
const g = u.proxy, p = "_pStores" in g ? g._pStores : g._pStores = {};
|
@@ -6727,7 +6756,7 @@ This will fail in production.`);
|
|
6727
6756
|
}
|
6728
6757
|
return c;
|
6729
6758
|
}
|
6730
|
-
return
|
6759
|
+
return s.$id = n, s;
|
6731
6760
|
}
|
6732
6761
|
let store$8 = null;
|
6733
6762
|
const useKgStore = (e) => (store$8 || (store$8 = defineStore("Kg", {
|
@@ -6784,14 +6813,14 @@ const useKgStore = (e) => (store$8 || (store$8 = defineStore("Kg", {
|
|
6784
6813
|
}
|
6785
6814
|
}).bind(null, e != null ? e : pinia())), store$8);
|
6786
6815
|
function useKg(e) {
|
6787
|
-
const t = useKgStore(e)(), r = computed(() => unref(t.getLocale || "zh_CN")), n = computed(() => t.getRouter), a = computed(() => t.getOption), o = t.t,
|
6816
|
+
const t = useKgStore(e)(), r = computed(() => unref(t.getLocale || "zh_CN")), n = computed(() => t.getRouter), a = computed(() => t.getOption), o = t.t, s = t.p;
|
6788
6817
|
return {
|
6789
6818
|
store: t,
|
6790
6819
|
locale: r,
|
6791
6820
|
router: n,
|
6792
6821
|
option: a,
|
6793
6822
|
t: o,
|
6794
|
-
p:
|
6823
|
+
p: s
|
6795
6824
|
};
|
6796
6825
|
}
|
6797
6826
|
Spin.setDefaultIndicator({
|
@@ -7025,15 +7054,15 @@ const KgModal_Close = "", getProps$y = () => ({
|
|
7025
7054
|
attrs: n
|
7026
7055
|
}) {
|
7027
7056
|
const a = ref(!1), o = ref(null);
|
7028
|
-
function
|
7057
|
+
function s(u) {
|
7029
7058
|
u.preventDefault(), u.stopPropagation(), a.value = !a.value;
|
7030
7059
|
const c = get(o.value, "$el.parentElement.parentElement.parentElement.parentElement.parentElement");
|
7031
7060
|
c && c.classList.toggle("kg-modal--fullscreen");
|
7032
7061
|
}
|
7033
|
-
function
|
7062
|
+
function i() {
|
7034
7063
|
return e.kgShowFullscreenButton ? createVNode(Button, {
|
7035
7064
|
ref: o,
|
7036
|
-
onClick:
|
7065
|
+
onClick: s,
|
7037
7066
|
class: "kg-modal-btn-fullscreen"
|
7038
7067
|
}, {
|
7039
7068
|
default: () => [a.value ? createVNode(FullscreenExitOutlined$1, null, null) : createVNode(FullscreenOutlined$1, null, null)]
|
@@ -7042,7 +7071,7 @@ const KgModal_Close = "", getProps$y = () => ({
|
|
7042
7071
|
function l() {
|
7043
7072
|
return e.kgShowCloseButton ? createVNode(CloseOutlined$1, null, null) : null;
|
7044
7073
|
}
|
7045
|
-
return () => createVNode(Fragment, null, [
|
7074
|
+
return () => createVNode(Fragment, null, [i(), l()]);
|
7046
7075
|
}
|
7047
7076
|
}), formProps = () => ({
|
7048
7077
|
layout: String,
|
@@ -7125,11 +7154,11 @@ const KgModal_Close = "", getProps$y = () => ({
|
|
7125
7154
|
attrs: n
|
7126
7155
|
}) {
|
7127
7156
|
const a = computed((o) => {
|
7128
|
-
const
|
7157
|
+
const s = {
|
7129
7158
|
...unref(n),
|
7130
7159
|
...e
|
7131
7160
|
};
|
7132
|
-
return
|
7161
|
+
return s.wrapClassName = s.wrapClassName ? `${s.wrapClassName} kg-modal` : "kg-modal", e.kgFullHeight && (s.wrapClassName += " kg-modal--full-height"), e.footer === null && (s.wrapClassName += " kg-modal--no-footer"), s.closable = !0, s.width = s.width !== void 0 ? s.width : "80%", s.centered = s.centered !== void 0 ? s.centered : !0, s.destroyOnClose = s.destroyOnClose !== void 0 ? s.destroyOnClose : !0, s.keyboard = s.keyboard !== void 0 ? s.keyboard : !1, s.maskClosable = s.maskClosable !== void 0 ? s.maskClosable : !1, s.cancelButtonProps = s.cancelButtonProps !== void 0 ? s.cancelButtonProps : {}, e.kgShowCancelButton || (s.cancelButtonProps.class = "kg-invisible"), s.okButtonProps = s.okButtonProps !== void 0 ? s.okButtonProps : {}, e.kgShowOkButton || (s.okButtonProps.class = "kg-invisible"), s;
|
7133
7162
|
});
|
7134
7163
|
return () => createVNode(Modal, a.value, {
|
7135
7164
|
...renderSlots(t, ["closeIcon"]),
|
@@ -7234,7 +7263,7 @@ const KgModal_Close = "", getProps$y = () => ({
|
|
7234
7263
|
kgMinWidth: e.kgMinWidth
|
7235
7264
|
}), new Error(C);
|
7236
7265
|
}
|
7237
|
-
let n = 0, a = 0, o = 0,
|
7266
|
+
let n = 0, a = 0, o = 0, s = 0, i = {
|
7238
7267
|
remove: () => {
|
7239
7268
|
}
|
7240
7269
|
}, l = {
|
@@ -7273,7 +7302,7 @@ const KgModal_Close = "", getProps$y = () => ({
|
|
7273
7302
|
return C;
|
7274
7303
|
});
|
7275
7304
|
function g() {
|
7276
|
-
|
7305
|
+
i.remove(), l.remove();
|
7277
7306
|
}
|
7278
7307
|
onUnmounted(() => {
|
7279
7308
|
g();
|
@@ -7281,10 +7310,10 @@ const KgModal_Close = "", getProps$y = () => ({
|
|
7281
7310
|
const p = (C) => {
|
7282
7311
|
switch (e.kgType) {
|
7283
7312
|
case "top":
|
7284
|
-
t("update:kgHeight", Math.min(e.kgMaxHeight, Math.max(e.kgMinHeight, a - (C.pageY -
|
7313
|
+
t("update:kgHeight", Math.min(e.kgMaxHeight, Math.max(e.kgMinHeight, a - (C.pageY - s))));
|
7285
7314
|
break;
|
7286
7315
|
case "bottom":
|
7287
|
-
t("update:kgHeight", Math.min(e.kgMaxHeight, Math.max(e.kgMinHeight, a + (C.pageY -
|
7316
|
+
t("update:kgHeight", Math.min(e.kgMaxHeight, Math.max(e.kgMinHeight, a + (C.pageY - s))));
|
7288
7317
|
break;
|
7289
7318
|
case "left":
|
7290
7319
|
t("update:kgWidth", Math.min(e.kgMaxWidth, Math.max(e.kgMinWidth, n - (C.pageX - o))));
|
@@ -7301,7 +7330,7 @@ const KgModal_Close = "", getProps$y = () => ({
|
|
7301
7330
|
p(C), g();
|
7302
7331
|
}
|
7303
7332
|
function v(C) {
|
7304
|
-
C.stopPropagation(), C.preventDefault(), g(), !(C instanceof MouseEvent && C.which !== 1) && (o = C.pageX,
|
7333
|
+
C.stopPropagation(), C.preventDefault(), g(), !(C instanceof MouseEvent && C.which !== 1) && (o = C.pageX, s = C.pageY, n = e.kgWidth, a = e.kgHeight, i = _(document.documentElement, "mousemove", b), l = _(document.documentElement, "mouseup", m));
|
7305
7334
|
}
|
7306
7335
|
function _(C, E, T) {
|
7307
7336
|
return C.addEventListener(E, T), {
|
@@ -7343,8 +7372,8 @@ var assign = make_assign(), create$1 = make_create(), trim$1 = make_trim(), Glob
|
|
7343
7372
|
function make_assign() {
|
7344
7373
|
return Object.assign ? Object.assign : function(t, r, n, a) {
|
7345
7374
|
for (var o = 1; o < arguments.length; o++)
|
7346
|
-
each$7(Object(arguments[o]), function(
|
7347
|
-
t[
|
7375
|
+
each$7(Object(arguments[o]), function(s, i) {
|
7376
|
+
t[i] = s;
|
7348
7377
|
});
|
7349
7378
|
return t;
|
7350
7379
|
};
|
@@ -7359,8 +7388,8 @@ function make_create() {
|
|
7359
7388
|
let e = function() {
|
7360
7389
|
};
|
7361
7390
|
return function(r, n, a, o) {
|
7362
|
-
var
|
7363
|
-
return e.prototype = r, assign.apply(this, [new e()].concat(
|
7391
|
+
var s = slice$1(arguments, 1);
|
7392
|
+
return e.prototype = r, assign.apply(this, [new e()].concat(s));
|
7364
7393
|
};
|
7365
7394
|
}
|
7366
7395
|
}
|
@@ -7458,7 +7487,7 @@ function createStore(e, t, r) {
|
|
7458
7487
|
var n = r ? "__storejs_" + r + "_" : "", a = r ? new RegExp("^" + n) : null, o = /^[a-zA-Z0-9_\-]*$/;
|
7459
7488
|
if (!o.test(r))
|
7460
7489
|
throw new Error("store.js namespaces can only have alphanumerics + underscores and dashes");
|
7461
|
-
var
|
7490
|
+
var s = {
|
7462
7491
|
_namespacePrefix: n,
|
7463
7492
|
_namespaceRegexp: a,
|
7464
7493
|
_testStorage: function(l) {
|
@@ -7529,16 +7558,16 @@ function createStore(e, t, r) {
|
|
7529
7558
|
addStorage: function(l) {
|
7530
7559
|
_warn("store.addStorage(storage) is deprecated. Use createStore([storages])"), this._addStorage(l);
|
7531
7560
|
}
|
7532
|
-
},
|
7561
|
+
}, i = create(s, storeAPI, {
|
7533
7562
|
plugins: []
|
7534
7563
|
});
|
7535
|
-
return
|
7536
|
-
isFunction(l) && (
|
7564
|
+
return i.raw = {}, each$6(i, function(l, u) {
|
7565
|
+
isFunction(l) && (i.raw[u] = bind(i, l));
|
7537
7566
|
}), each$6(e, function(l) {
|
7538
|
-
|
7567
|
+
i._addStorage(l);
|
7539
7568
|
}), each$6(t, function(l) {
|
7540
|
-
|
7541
|
-
}),
|
7569
|
+
i._addPlugin(l);
|
7570
|
+
}), i;
|
7542
7571
|
}
|
7543
7572
|
var util$4 = util$6, Global$4 = util$4.Global, localStorage_1 = {
|
7544
7573
|
name: "localStorage",
|
@@ -7778,7 +7807,7 @@ function requireJson2() {
|
|
7778
7807
|
}) + '"' : '"' + e + '"';
|
7779
7808
|
}
|
7780
7809
|
function str(e, t) {
|
7781
|
-
var r, n, a, o,
|
7810
|
+
var r, n, a, o, s = gap, i, l = t[e];
|
7782
7811
|
switch (l && typeof l == "object" && typeof l.toJSON == "function" && (l = l.toJSON(e)), typeof rep == "function" && (l = rep.call(t, e, l)), typeof l) {
|
7783
7812
|
case "string":
|
7784
7813
|
return quote(l);
|
@@ -7790,24 +7819,24 @@ function requireJson2() {
|
|
7790
7819
|
case "object":
|
7791
7820
|
if (!l)
|
7792
7821
|
return "null";
|
7793
|
-
if (gap += indent,
|
7822
|
+
if (gap += indent, i = [], Object.prototype.toString.apply(l) === "[object Array]") {
|
7794
7823
|
for (o = l.length, r = 0; r < o; r += 1)
|
7795
|
-
|
7796
|
-
return a =
|
7797
|
-
` + gap +
|
7824
|
+
i[r] = str(r, l) || "null";
|
7825
|
+
return a = i.length === 0 ? "[]" : gap ? `[
|
7826
|
+
` + gap + i.join(`,
|
7798
7827
|
` + gap) + `
|
7799
|
-
` +
|
7828
|
+
` + s + "]" : "[" + i.join(",") + "]", gap = s, a;
|
7800
7829
|
}
|
7801
7830
|
if (rep && typeof rep == "object")
|
7802
7831
|
for (o = rep.length, r = 0; r < o; r += 1)
|
7803
|
-
typeof rep[r] == "string" && (n = rep[r], a = str(n, l), a &&
|
7832
|
+
typeof rep[r] == "string" && (n = rep[r], a = str(n, l), a && i.push(quote(n) + (gap ? ": " : ":") + a));
|
7804
7833
|
else
|
7805
7834
|
for (n in l)
|
7806
|
-
Object.prototype.hasOwnProperty.call(l, n) && (a = str(n, l), a &&
|
7807
|
-
return a =
|
7808
|
-
` + gap +
|
7835
|
+
Object.prototype.hasOwnProperty.call(l, n) && (a = str(n, l), a && i.push(quote(n) + (gap ? ": " : ":") + a));
|
7836
|
+
return a = i.length === 0 ? "{}" : gap ? `{
|
7837
|
+
` + gap + i.join(`,
|
7809
7838
|
` + gap) + `
|
7810
|
-
` +
|
7839
|
+
` + s + "}" : "{" + i.join(",") + "}", gap = s, a;
|
7811
7840
|
}
|
7812
7841
|
}
|
7813
7842
|
typeof JSON.stringify != "function" && (meta = {
|
@@ -7906,20 +7935,20 @@ function transformVarSubmitConfig(e) {
|
|
7906
7935
|
`| \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}.`,
|
7907
7936
|
{ VarSubmitConfig: e }
|
7908
7937
|
)), 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") {
|
7909
|
-
const
|
7938
|
+
const i = Number(e.label_col);
|
7910
7939
|
switch (e.label_col_unit) {
|
7911
7940
|
case KG_WIDTH_UNIT.SPAN:
|
7912
7941
|
switch (!0) {
|
7913
7942
|
case isNil(e.label_col):
|
7914
7943
|
e.label_col = DEFAULT_LABEL_COL_FOR_SPAN;
|
7915
7944
|
break;
|
7916
|
-
case (Number.isNaN(
|
7945
|
+
case (Number.isNaN(i) || i > 24 || i < 1):
|
7917
7946
|
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}.`, {
|
7918
7947
|
VarSubmitConfig: e
|
7919
7948
|
});
|
7920
7949
|
break;
|
7921
7950
|
default:
|
7922
|
-
e.label_col = Math.floor(
|
7951
|
+
e.label_col = Math.floor(i);
|
7923
7952
|
}
|
7924
7953
|
break;
|
7925
7954
|
case KG_WIDTH_UNIT.PX:
|
@@ -7927,7 +7956,7 @@ function transformVarSubmitConfig(e) {
|
|
7927
7956
|
case isNil(e.label_col):
|
7928
7957
|
e.label_col = DEFAULT_LABEL_COL_FOR_PX;
|
7929
7958
|
break;
|
7930
|
-
case (Number.isNaN(
|
7959
|
+
case (Number.isNaN(i) || i <= 0):
|
7931
7960
|
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}.`, {
|
7932
7961
|
VarSubmitConfig: e
|
7933
7962
|
});
|
@@ -7936,8 +7965,8 @@ function transformVarSubmitConfig(e) {
|
|
7936
7965
|
break;
|
7937
7966
|
}
|
7938
7967
|
}
|
7939
|
-
const a = KG_VAR_SUBMIT__DISPLAY_TYPE.DRAWER, o = KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL,
|
7940
|
-
return isNil(e.display_type) ? e.display_type = a : [a, o,
|
7968
|
+
const a = KG_VAR_SUBMIT__DISPLAY_TYPE.DRAWER, o = KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL, s = KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE;
|
7969
|
+
return isNil(e.display_type) ? e.display_type = a : [a, o, s].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, s]}, \u6539\u4E3A\u4F7F\u7528\u9ED8\u8BA4\u503C ${a}.`, {
|
7941
7970
|
VarSubmitConfig: e
|
7942
7971
|
})), e;
|
7943
7972
|
}
|
@@ -8244,13 +8273,13 @@ const useKgVarStore = () => (store$6 || (store$6 = defineStore("KgVar", {
|
|
8244
8273
|
},
|
8245
8274
|
getVarButtonSearch(e) {
|
8246
8275
|
return (t) => {
|
8247
|
-
var a, o,
|
8276
|
+
var a, o, s;
|
8248
8277
|
if (!t)
|
8249
8278
|
return Logger.error("formID \u4E3A\u7A7A."), null;
|
8250
|
-
let r = e.varButtonMap.get(t), n = (a = r == null ? void 0 : r.find((
|
8279
|
+
let r = e.varButtonMap.get(t), n = (a = r == null ? void 0 : r.find((i) => i.typ === KG_BUTTON_TYPE.SEARCH)) != null ? a : null;
|
8251
8280
|
if (!n) {
|
8252
8281
|
const l = (o = useKgVar(t).store.getVarGridConfig(t)) == null ? void 0 : o.prf_frm_id;
|
8253
|
-
r = e.varButtonMap.get(l || t), n = (
|
8282
|
+
r = e.varButtonMap.get(l || t), n = (s = r == null ? void 0 : r.find((u) => u.typ === KG_BUTTON_TYPE.SEARCH)) != null ? s : null;
|
8254
8283
|
}
|
8255
8284
|
return n;
|
8256
8285
|
};
|
@@ -8312,7 +8341,7 @@ const useKgVarStore = () => (store$6 || (store$6 = defineStore("KgVar", {
|
|
8312
8341
|
if (!t)
|
8313
8342
|
return Logger.error("formID \u4E3A\u7A7A."), null;
|
8314
8343
|
const r = e.varProfileMap.get(t);
|
8315
|
-
return (o = (a = (n = r == null ? void 0 : r.varProfile) == null ? void 0 : n.varProfileMasters) == null ? void 0 : a.find((
|
8344
|
+
return (o = (a = (n = r == null ? void 0 : r.varProfile) == null ? void 0 : n.varProfileMasters) == null ? void 0 : a.find((s) => s.id === (r == null ? void 0 : r.currentVarProfileMasterID))) != null ? o : null;
|
8316
8345
|
};
|
8317
8346
|
},
|
8318
8347
|
getCurrentVarProfileMasterID(e) {
|
@@ -8332,14 +8361,14 @@ const useKgVarStore = () => (store$6 || (store$6 = defineStore("KgVar", {
|
|
8332
8361
|
},
|
8333
8362
|
getSystemVarProfileDetails(e) {
|
8334
8363
|
return (t) => {
|
8335
|
-
var r, n, a, o,
|
8336
|
-
return t ? (
|
8364
|
+
var r, n, a, o, s;
|
8365
|
+
return t ? (s = (o = (a = (n = (r = e.varProfileMap.get(t)) == null ? void 0 : r.varProfile) == null ? void 0 : n.varProfileMasters) == null ? void 0 : a.find((i) => i.cust_lvl === KG_CUSTOM_LEVEL.L0)) == null ? void 0 : o.varProfileDetails) != null ? s : null : (Logger.error("formID \u4E3A\u7A7A."), null);
|
8337
8366
|
};
|
8338
8367
|
},
|
8339
8368
|
getVarProfileDetail(e) {
|
8340
8369
|
return (t, r) => {
|
8341
8370
|
var n, a, o;
|
8342
|
-
return !t || !r ? null : (o = (a = (n = this.getCurrentVarProfileMaster(t)) == null ? void 0 : n.varProfileDetails) == null ? void 0 : a.find((
|
8371
|
+
return !t || !r ? null : (o = (a = (n = this.getCurrentVarProfileMaster(t)) == null ? void 0 : n.varProfileDetails) == null ? void 0 : a.find((s) => s.var_nam === r)) != null ? o : null;
|
8343
8372
|
};
|
8344
8373
|
},
|
8345
8374
|
getVarGridConfigMap(e) {
|
@@ -8366,7 +8395,7 @@ const useKgVarStore = () => (store$6 || (store$6 = defineStore("KgVar", {
|
|
8366
8395
|
if (!t)
|
8367
8396
|
return Logger.error("formID \u4E3A\u7A7A."), null;
|
8368
8397
|
const r = e.varGridMap.get(t);
|
8369
|
-
return (o = (a = (n = r == null ? void 0 : r.varGrid) == null ? void 0 : n.varGridMasters) == null ? void 0 : a.find((
|
8398
|
+
return (o = (a = (n = r == null ? void 0 : r.varGrid) == null ? void 0 : n.varGridMasters) == null ? void 0 : a.find((s) => s.id === (r == null ? void 0 : r.currentVarGridMasterID))) != null ? o : null;
|
8370
8399
|
};
|
8371
8400
|
},
|
8372
8401
|
getCurrentVisibleVarGridDetails(e) {
|
@@ -8392,14 +8421,14 @@ const useKgVarStore = () => (store$6 || (store$6 = defineStore("KgVar", {
|
|
8392
8421
|
},
|
8393
8422
|
getSystemVarGridDetails(e) {
|
8394
8423
|
return (t) => {
|
8395
|
-
var r, n, a, o,
|
8396
|
-
return t ? (
|
8424
|
+
var r, n, a, o, s;
|
8425
|
+
return t ? (s = (o = (a = (n = (r = e.varGridMap.get(t)) == null ? void 0 : r.varGrid) == null ? void 0 : n.varGridMasters) == null ? void 0 : a.find((i) => i.cust_lvl === KG_CUSTOM_LEVEL.L0)) == null ? void 0 : o.varGridDetails) != null ? s : null : (Logger.error("formID \u4E3A\u7A7A."), null);
|
8397
8426
|
};
|
8398
8427
|
},
|
8399
8428
|
getVarGridDetail(e) {
|
8400
8429
|
return (t, r) => {
|
8401
8430
|
var n, a, o;
|
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((
|
8431
|
+
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((s) => s.var_nam === r)) != null ? o : null;
|
8403
8432
|
};
|
8404
8433
|
}
|
8405
8434
|
},
|
@@ -8485,12 +8514,12 @@ const useKgVarStore = () => (store$6 || (store$6 = defineStore("KgVar", {
|
|
8485
8514
|
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);
|
8486
8515
|
},
|
8487
8516
|
async retrieve(e) {
|
8488
|
-
var t, r, n, a, o,
|
8517
|
+
var t, r, n, a, o, s;
|
8489
8518
|
if (!!e) {
|
8490
8519
|
this.isRetrievingVarMap.set(e, !0);
|
8491
8520
|
try {
|
8492
8521
|
const {
|
8493
|
-
varCatalogs:
|
8522
|
+
varCatalogs: i,
|
8494
8523
|
varLookups: l,
|
8495
8524
|
varConfigs: u,
|
8496
8525
|
varVariableInputs: c,
|
@@ -8504,22 +8533,22 @@ const useKgVarStore = () => (store$6 || (store$6 = defineStore("KgVar", {
|
|
8504
8533
|
varGrid: C,
|
8505
8534
|
varGridConfig: E
|
8506
8535
|
} = await GetAll({ params: { frm_id: e } });
|
8507
|
-
this.varCatalogMap.set(e,
|
8536
|
+
this.varCatalogMap.set(e, i != null ? i : []), 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, {
|
8508
8537
|
varProfile: _ != null ? _ : null,
|
8509
8538
|
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
|
8510
8539
|
}), this.varGridConfigMap.set(e, transformVarGridConfig(E != null ? E : null)), this.varGridMap.set(e, {
|
8511
8540
|
varGrid: transformVarGridDTO(C),
|
8512
|
-
currentVarGridMasterID: (
|
8541
|
+
currentVarGridMasterID: (s = (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 ? s : null
|
8513
8542
|
}), this.emit(e, "ready");
|
8514
|
-
} catch (
|
8515
|
-
throw
|
8543
|
+
} catch (i) {
|
8544
|
+
throw i;
|
8516
8545
|
} finally {
|
8517
8546
|
this.isRetrievingVarMap.set(e, !1);
|
8518
8547
|
}
|
8519
8548
|
}
|
8520
8549
|
},
|
8521
8550
|
async setCurrentVarProfileMasterID(e, t) {
|
8522
|
-
var a, o,
|
8551
|
+
var a, o, s, i;
|
8523
8552
|
if (!e)
|
8524
8553
|
return;
|
8525
8554
|
const r = this.varProfileMap.get(e);
|
@@ -8527,13 +8556,13 @@ const useKgVarStore = () => (store$6 || (store$6 = defineStore("KgVar", {
|
|
8527
8556
|
return;
|
8528
8557
|
const n = (o = (a = r.varProfile) == null ? void 0 : a.varProfileMasters) == null ? void 0 : o.find((l) => l.id === t);
|
8529
8558
|
if (!!n)
|
8530
|
-
if ((
|
8559
|
+
if ((s = n.varProfileDetails) != null && s.length)
|
8531
8560
|
r.currentVarProfileMasterID = t != null ? t : null;
|
8532
8561
|
else {
|
8533
8562
|
this.isRetrievingVarProfileMasterMap.set(e, !0);
|
8534
8563
|
try {
|
8535
8564
|
const l = await QueryByID({ params: { id: n.id } });
|
8536
|
-
n.varProfileDetails = (
|
8565
|
+
n.varProfileDetails = (i = l == null ? void 0 : l.varProfileDetails) != null ? i : [], r.currentVarProfileMasterID = t != null ? t : null;
|
8537
8566
|
} catch (l) {
|
8538
8567
|
throw l;
|
8539
8568
|
} finally {
|
@@ -8564,7 +8593,7 @@ const useKgVarStore = () => (store$6 || (store$6 = defineStore("KgVar", {
|
|
8564
8593
|
);
|
8565
8594
|
},
|
8566
8595
|
async setCurrentVarGridMasterID(e, t) {
|
8567
|
-
var a, o,
|
8596
|
+
var a, o, s, i;
|
8568
8597
|
if (!e)
|
8569
8598
|
return;
|
8570
8599
|
const r = this.varGridMap.get(e);
|
@@ -8572,13 +8601,13 @@ const useKgVarStore = () => (store$6 || (store$6 = defineStore("KgVar", {
|
|
8572
8601
|
return;
|
8573
8602
|
const n = (o = (a = r.varGrid) == null ? void 0 : a.varGridMasters) == null ? void 0 : o.find((l) => l.id === t);
|
8574
8603
|
if (!!n)
|
8575
|
-
if ((
|
8604
|
+
if ((s = n.varGridDetails) != null && s.length)
|
8576
8605
|
r.currentVarGridMasterID = t != null ? t : null;
|
8577
8606
|
else {
|
8578
8607
|
this.isRetrievingVarGridMasterMap.set(e, !0);
|
8579
8608
|
try {
|
8580
8609
|
const l = await QueryByID$1({ params: { id: n.id } });
|
8581
|
-
n.varGridDetails = (
|
8610
|
+
n.varGridDetails = (i = l == null ? void 0 : l.varGridDetails) != null ? i : [], r.currentVarGridMasterID = t != null ? t : null;
|
8582
8611
|
} catch (l) {
|
8583
8612
|
throw l;
|
8584
8613
|
} finally {
|
@@ -8613,10 +8642,10 @@ const useKgVarStore = () => (store$6 || (store$6 = defineStore("KgVar", {
|
|
8613
8642
|
var o;
|
8614
8643
|
if (a) {
|
8615
8644
|
setTimeout(() => n(), 0);
|
8616
|
-
let
|
8617
|
-
Object.entries(r).forEach(([
|
8618
|
-
i
|
8619
|
-
}), a.cmd_prm = JSON.stringify(
|
8645
|
+
let s = JSON.parse((o = a.cmd_prm) != null ? o : "{}");
|
8646
|
+
Object.entries(r).forEach(([i, l]) => {
|
8647
|
+
s[i] = l;
|
8648
|
+
}), a.cmd_prm = JSON.stringify(s), this.varPossibilityMap.set(e, this.varPossibilityMap.get(e));
|
8620
8649
|
}
|
8621
8650
|
},
|
8622
8651
|
{ immediate: !0 }
|
@@ -8629,11 +8658,11 @@ const useKgVarStore = () => (store$6 || (store$6 = defineStore("KgVar", {
|
|
8629
8658
|
() => this.getVarSubmitField(e, t),
|
8630
8659
|
(a) => {
|
8631
8660
|
a && setTimeout(() => {
|
8632
|
-
var
|
8633
|
-
n(), Object.entries(r).forEach(([
|
8634
|
-
|
8661
|
+
var s;
|
8662
|
+
n(), Object.entries(r).forEach(([i, l]) => {
|
8663
|
+
i in a && (a[i] = l);
|
8635
8664
|
});
|
8636
|
-
const o = [...(
|
8665
|
+
const o = [...(s = this.varSubmitFieldMap.get(e)) != null ? s : []];
|
8637
8666
|
o.splice(o.indexOf(a), 1, { ...a }), this.varSubmitFieldMap.set(e, o);
|
8638
8667
|
});
|
8639
8668
|
},
|
@@ -8646,27 +8675,27 @@ function useKgVar(e, t, r = 0) {
|
|
8646
8675
|
var n, a;
|
8647
8676
|
try {
|
8648
8677
|
let o = function(x) {
|
8649
|
-
return isFunction$2(x) ? (
|
8678
|
+
return isFunction$2(x) ? (i.addEventListener(s, "ready", x), getCurrentInstance() && onUnmounted(() => i.removeEventListener(s, "ready", x)), () => i.removeEventListener(s, "ready", x)) : () => {
|
8650
8679
|
};
|
8651
|
-
},
|
8652
|
-
if (!
|
8680
|
+
}, s = e || inject(KG_DI_FORM_ID, "");
|
8681
|
+
if (!s)
|
8653
8682
|
throw new Error("useKgVar() \u65B9\u6CD5\u5FC5\u987B\u4F20\u5165 formID \u53C2\u6570.");
|
8654
|
-
const
|
8655
|
-
t && getCurrentInstance() && (provide(KG_DI_FORM_ID,
|
8656
|
-
|
8683
|
+
const i = useKgVarStore()();
|
8684
|
+
t && getCurrentInstance() && (provide(KG_DI_FORM_ID, s), onMounted(() => {
|
8685
|
+
i.enter({ formID: s, level: r });
|
8657
8686
|
}), onUnmounted(() => {
|
8658
|
-
|
8687
|
+
i.leave(s);
|
8659
8688
|
}));
|
8660
8689
|
const l = (x) => computed(() => {
|
8661
8690
|
var q, Y, Q;
|
8662
|
-
return (Q = (Y = (q =
|
8663
|
-
}), u = computed(() =>
|
8691
|
+
return (Q = (Y = (q = i.getVarCatalog(s, x)) == null ? void 0 : q.var_text) != null ? Y : x) != null ? Q : "";
|
8692
|
+
}), u = computed(() => i.isRetrievingVar(s)), c = computed(() => i.isRetrievingVarProfileMaster(s)), g = computed(() => i.isRetrievingVarGridMaster(s)), p = computed(() => i.isCreating(s)), b = computed(() => i.isCreatingRequesting(s)), m = computed(() => i.isUpdating(s)), v = computed(() => i.isUpdatingRequesting(s)), _ = computed(() => i.isCopying(s)), y = computed(() => i.isCopyingRequesting(s)), C = computed(() => i.isDeleting(s)), E = computed(() => i.isDeletingRequesting(s)), T = computed(() => i.isOtherRequesting(s)), I = computed(() => i.getVarButtons(s)), k = computed(() => i.getVarButtonSearch(s)), w = computed(() => i.getVarButtonCreate(s)), M = computed(() => i.getVarButtonUpdate(s)), A = computed(() => i.getVarButtonCopy(s)), O = computed(() => i.getVarButtonDelete(s)), B = computed(() => i.getVarProfileMasters(s)), $ = computed(() => i.getCurrentVarProfileMaster(s)), P = computed(() => i.getCurrentVarProfileMasterID(s)), D = computed(() => {
|
8664
8693
|
var x, q;
|
8665
8694
|
return (q = (x = $.value) == null ? void 0 : x.varProfileDetails) != null ? q : null;
|
8666
|
-
}), V = computed(() =>
|
8695
|
+
}), V = computed(() => i.getVarGridConfig(s)), R = computed(() => i.getVarGridMasters(s)), L = computed(() => i.getCurrentVarGridMaster(s)), H = computed(() => i.getSystemVarGridDetails(s)), N = computed(() => i.getCurrentVarGridDetails(s));
|
8667
8696
|
return {
|
8668
|
-
formID:
|
8669
|
-
store:
|
8697
|
+
formID: s,
|
8698
|
+
store: i,
|
8670
8699
|
isRetrievingVar: u,
|
8671
8700
|
isRetrievingVarProfileMaster: c,
|
8672
8701
|
isRetrievingVarGridMaster: g,
|
@@ -8714,7 +8743,7 @@ const DI_KG_SLOTS = Symbol("DI_KG_SLOTS"), KgVar$1 = "", getProps$t = () => ({
|
|
8714
8743
|
provide(DI_KG_SLOTS, e.kgSlots);
|
8715
8744
|
const r = useKgVar();
|
8716
8745
|
KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE;
|
8717
|
-
const n = computed(() => r.store.getVarSubmitConfig(r.formID)), a = computed(() => r.store.getVarProfileConfig(r.formID)), o = computed(() => r.store.getVarButtonConfig(r.formID)),
|
8746
|
+
const n = computed(() => r.store.getVarSubmitConfig(r.formID)), a = computed(() => r.store.getVarProfileConfig(r.formID)), o = computed(() => r.store.getVarButtonConfig(r.formID)), s = computed(() => {
|
8718
8747
|
var p, b, m, v;
|
8719
8748
|
switch (!0) {
|
8720
8749
|
case r.isCreating.value:
|
@@ -8727,7 +8756,7 @@ const DI_KG_SLOTS = Symbol("DI_KG_SLOTS"), KgVar$1 = "", getProps$t = () => ({
|
|
8727
8756
|
return ((v = n.value) == null ? void 0 : v.del_flg) !== 0;
|
8728
8757
|
}
|
8729
8758
|
return !1;
|
8730
|
-
}),
|
8759
|
+
}), i = computed(() => {
|
8731
8760
|
var p;
|
8732
8761
|
return ((p = o.value) == null ? void 0 : p.available_flg) !== 0;
|
8733
8762
|
}), l = computed(() => {
|
@@ -8743,7 +8772,7 @@ const DI_KG_SLOTS = Symbol("DI_KG_SLOTS"), KgVar$1 = "", getProps$t = () => ({
|
|
8743
8772
|
}, {
|
8744
8773
|
default: () => {
|
8745
8774
|
var p, b, m;
|
8746
|
-
return [t.default ? t.default() : createVNode(Fragment, null, [l.value && createVNode(KgSearch, null, null),
|
8775
|
+
return [t.default ? t.default() : createVNode(Fragment, null, [l.value && createVNode(KgSearch, null, null), i.value && createVNode(KgButton, null, null), createVNode(KgTable, null, null), (b = (p = e.kgSlots) == null ? void 0 : p.afterKgTable) == null ? void 0 : b.call(p), s.value && createVNode(KgSubmit, {
|
8747
8776
|
kgClass: (m = e.kgSubmitClass) != null ? m : ""
|
8748
8777
|
}, null)])];
|
8749
8778
|
}
|
@@ -8806,9 +8835,9 @@ const DI_KG_SLOTS = Symbol("DI_KG_SLOTS"), KgVar$1 = "", getProps$t = () => ({
|
|
8806
8835
|
slots: t,
|
8807
8836
|
emit: r
|
8808
8837
|
}) {
|
8809
|
-
const n = inject(KG_DI_HOST_FORM_ID, ""), a = useKgVar(n), o = inject(KG_DI_VAR_NAME, ""),
|
8810
|
-
useKgVar(
|
8811
|
-
const l = useKgTable(
|
8838
|
+
const n = inject(KG_DI_HOST_FORM_ID, ""), a = useKgVar(n), o = inject(KG_DI_VAR_NAME, ""), s = inject(KG_DI_LOOKUP_ID, ""), i = inject(DI_ON_KG_LOOKUP_BEFORE_OK, null);
|
8839
|
+
useKgVar(s, !0, a.store.getFormLevel(a.formID) + 1);
|
8840
|
+
const l = useKgTable(s), u = computed(() => a.store.getVarLookup(n, o)), c = computed(() => {
|
8812
8841
|
var m;
|
8813
8842
|
return ((m = u == null ? void 0 : u.value) == null ? void 0 : m.mult_flg) === 1;
|
8814
8843
|
}), g = computed(() => {
|
@@ -8823,10 +8852,10 @@ const DI_KG_SLOTS = Symbol("DI_KG_SLOTS"), KgVar$1 = "", getProps$t = () => ({
|
|
8823
8852
|
var m, v, _, y, C, E, T;
|
8824
8853
|
if (c.value) {
|
8825
8854
|
const I = (v = (m = l.selectedRows) == null ? void 0 : m.value) != null ? v : [], k = (_ = I.map((w) => w[g.value])) != null ? _ : [];
|
8826
|
-
(!
|
8855
|
+
(!i || i(k, I)) && (r("kgOk", k, I), r("update:visible", !1));
|
8827
8856
|
} else {
|
8828
8857
|
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 : "";
|
8829
|
-
(!
|
8858
|
+
(!i || i(k, I)) && (r("kgOk", k, I), r("update:visible", !1));
|
8830
8859
|
}
|
8831
8860
|
}
|
8832
8861
|
return () => {
|
@@ -8867,8 +8896,8 @@ const DI_KG_SLOTS = Symbol("DI_KG_SLOTS"), KgVar$1 = "", getProps$t = () => ({
|
|
8867
8896
|
function o() {
|
8868
8897
|
a.value = !0;
|
8869
8898
|
}
|
8870
|
-
function i
|
8871
|
-
r("kgOk",
|
8899
|
+
function s(i, l) {
|
8900
|
+
r("kgOk", i, l);
|
8872
8901
|
}
|
8873
8902
|
return () => createVNode(Fragment, null, [createVNode(Button, {
|
8874
8903
|
onClick: o,
|
@@ -8877,9 +8906,9 @@ const DI_KG_SLOTS = Symbol("DI_KG_SLOTS"), KgVar$1 = "", getProps$t = () => ({
|
|
8877
8906
|
}, {
|
8878
8907
|
default: () => [createVNode(SearchOutlined$1, null, null)]
|
8879
8908
|
}), a.value ? createVNode(KgFormItemAddonLookupModal, {
|
8880
|
-
onKgOk:
|
8909
|
+
onKgOk: s,
|
8881
8910
|
visible: a.value,
|
8882
|
-
"onUpdate:visible": (
|
8911
|
+
"onUpdate:visible": (i) => a.value = i
|
8883
8912
|
}, null) : null]);
|
8884
8913
|
}
|
8885
8914
|
}), KgForm_Item = "", KgFormItemCheckbox = defineComponent({
|
@@ -8895,45 +8924,45 @@ const DI_KG_SLOTS = Symbol("DI_KG_SLOTS"), KgVar$1 = "", getProps$t = () => ({
|
|
8895
8924
|
});
|
8896
8925
|
function _useServices$2(e) {
|
8897
8926
|
const t = useKgVar(), r = computed(() => t.store.getVarPossibility(t.formID, e.kgVarName)), n = computed(() => t.store.getVariableConfig(t.formID, e.kgVarName)), a = computed(() => {
|
8898
|
-
var
|
8899
|
-
return KgUtil.tryParseJSON((
|
8927
|
+
var s;
|
8928
|
+
return KgUtil.tryParseJSON((s = n.value) == null ? void 0 : s.ctrl_prop);
|
8900
8929
|
});
|
8901
|
-
function o(
|
8930
|
+
function o(s) {
|
8902
8931
|
var u, c, g, p, b;
|
8903
|
-
if (!
|
8932
|
+
if (!s)
|
8904
8933
|
return [];
|
8905
|
-
const
|
8934
|
+
const i = (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";
|
8906
8935
|
switch (l) {
|
8907
8936
|
case KG_POSSIBILITY_DATA_TYPE.STRING:
|
8908
|
-
|
8909
|
-
m[
|
8937
|
+
s.forEach((m) => {
|
8938
|
+
m[i] = String(m[i]);
|
8910
8939
|
});
|
8911
8940
|
break;
|
8912
8941
|
case KG_POSSIBILITY_DATA_TYPE.NUMBER:
|
8913
|
-
|
8914
|
-
let v = Number(m[
|
8915
|
-
Number.isNaN(v) && (v = m[
|
8942
|
+
s.forEach((m) => {
|
8943
|
+
let v = Number(m[i]);
|
8944
|
+
Number.isNaN(v) && (v = m[i], Logger.error(`| \u6570\u636E\u6709\u8BEF | \u65E0\u6CD5\u5C06 ${m[i]} \u8F6C\u6362\u4E3A ${l} \u7C7B\u578B`, {
|
8916
8945
|
frm_id: t.formID,
|
8917
8946
|
var_nam: e.kgVarName,
|
8918
8947
|
VarPossibility: r.value
|
8919
|
-
})), m[
|
8948
|
+
})), m[i] = v;
|
8920
8949
|
});
|
8921
8950
|
break;
|
8922
8951
|
case KG_POSSIBILITY_DATA_TYPE.BOOLEAN:
|
8923
|
-
|
8952
|
+
s.forEach((m) => {
|
8924
8953
|
let v;
|
8925
|
-
String(m[
|
8954
|
+
String(m[i]).toLowerCase() === "true" ? v = !0 : String(m[i]).toLowerCase() === "false" ? v = !1 : (v = m[i], Logger.error(`| \u6570\u636E\u6709\u8BEF | \u65E0\u6CD5\u5C06 ${m[i]} \u8F6C\u6362\u4E3A ${l} \u7C7B\u578B`, {
|
8926
8955
|
frm_id: t.formID,
|
8927
8956
|
var_nam: e.kgVarName,
|
8928
8957
|
VarPossibility: r.value
|
8929
|
-
})), m[
|
8958
|
+
})), m[i] = v;
|
8930
8959
|
});
|
8931
8960
|
break;
|
8932
8961
|
}
|
8933
|
-
return (b = a.value) != null && b.excludeValues ?
|
8962
|
+
return (b = a.value) != null && b.excludeValues ? s.filter((m) => {
|
8934
8963
|
var v;
|
8935
|
-
return !((v = a.value.excludeValues) != null && v.includes(m[
|
8936
|
-
}) :
|
8964
|
+
return !((v = a.value.excludeValues) != null && v.includes(m[i]));
|
8965
|
+
}) : s;
|
8937
8966
|
}
|
8938
8967
|
return {
|
8939
8968
|
transformDatas: o
|
@@ -8950,16 +8979,16 @@ const KgFormItemCheckboxGroup = defineComponent({
|
|
8950
8979
|
attrs: t,
|
8951
8980
|
emit: r
|
8952
8981
|
}) {
|
8953
|
-
const n = useKg(), a = useKgVar(), o = inject(DI_FORM_REF, ref(null)),
|
8954
|
-
transformDatas:
|
8982
|
+
const n = useKg(), a = useKgVar(), o = inject(DI_FORM_REF, ref(null)), s = inject(DI_FORM_MODEL, computed(() => ({}))), {
|
8983
|
+
transformDatas: i
|
8955
8984
|
} = _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(() => {
|
8956
8985
|
var E;
|
8957
8986
|
let C = KgVarUtil.parseCommandParameter((E = g.value) == null ? void 0 : E.cmd_prm);
|
8958
8987
|
return C = mapValues(C, (T) => {
|
8959
8988
|
if (typeof T == "string" && T.startsWith("{") && T.endsWith("}")) {
|
8960
8989
|
const I = T.slice(1, -1);
|
8961
|
-
if (
|
8962
|
-
return
|
8990
|
+
if (s.value && I in s.value)
|
8991
|
+
return s.value[I];
|
8963
8992
|
}
|
8964
8993
|
return T;
|
8965
8994
|
}), C;
|
@@ -9024,10 +9053,10 @@ const KgFormItemCheckboxGroup = defineComponent({
|
|
9024
9053
|
else
|
9025
9054
|
switch (!0) {
|
9026
9055
|
case isArrayLike(k):
|
9027
|
-
c.value =
|
9056
|
+
c.value = i(k);
|
9028
9057
|
break;
|
9029
9058
|
case (k && "total" in k && "records" in k):
|
9030
|
-
c.value =
|
9059
|
+
c.value = i(k.records);
|
9031
9060
|
break;
|
9032
9061
|
}
|
9033
9062
|
if (c.value.length > 0) {
|
@@ -9106,17 +9135,17 @@ const KgFormItemCheckboxGroup = defineComponent({
|
|
9106
9135
|
attrs: n
|
9107
9136
|
}) {
|
9108
9137
|
const a = inject("$dayjs", dayjs), o = computed(() => {
|
9109
|
-
let
|
9110
|
-
if (!!
|
9111
|
-
return
|
9138
|
+
let i = e.value;
|
9139
|
+
if (!!i && (a.isDayjs(i) || (i = a(i)), !!a.isDayjs(i)))
|
9140
|
+
return i;
|
9112
9141
|
});
|
9113
|
-
function i
|
9114
|
-
const l =
|
9142
|
+
function s(i) {
|
9143
|
+
const l = i ? a(i) : void 0;
|
9115
9144
|
r("update:value", l), r("kgChange", l);
|
9116
9145
|
}
|
9117
9146
|
return () => createVNode(DatePicker, {
|
9118
9147
|
value: o.value,
|
9119
|
-
"onUpdate:value":
|
9148
|
+
"onUpdate:value": s,
|
9120
9149
|
id: n.id,
|
9121
9150
|
disabled: e.kgDisabled,
|
9122
9151
|
placeholder: e.kgPlaceholder,
|
@@ -9134,17 +9163,17 @@ const KgFormItemCheckboxGroup = defineComponent({
|
|
9134
9163
|
attrs: n
|
9135
9164
|
}) {
|
9136
9165
|
const a = inject("$dayjs", dayjs), o = computed(() => {
|
9137
|
-
let
|
9138
|
-
if (!!
|
9139
|
-
return
|
9166
|
+
let i = e.value;
|
9167
|
+
if (!!i && !(!isArray$1(i) || i.length !== 2) && ((!a.isDayjs(i[0]) || !a.isDayjs(i[1])) && (i = [a(i[0]), a(i[1])]), !(!a.isDayjs(i[0]) || !a.isDayjs(i[1]))))
|
9168
|
+
return i;
|
9140
9169
|
});
|
9141
|
-
function i
|
9142
|
-
const l =
|
9170
|
+
function s(i) {
|
9171
|
+
const l = i ? [a(i[0]), a(i[1])] : void 0;
|
9143
9172
|
r("update:value", l), r("kgChange", l);
|
9144
9173
|
}
|
9145
9174
|
return () => createVNode(DatePicker.RangePicker, {
|
9146
9175
|
value: o.value,
|
9147
|
-
"onUpdate:value":
|
9176
|
+
"onUpdate:value": s,
|
9148
9177
|
id: n.id,
|
9149
9178
|
disabled: e.kgDisabled,
|
9150
9179
|
placeholder: [e.kgPlaceholder, e.kgPlaceholder],
|
@@ -9204,11 +9233,11 @@ const KgFormItemCheckboxGroup = defineComponent({
|
|
9204
9233
|
function _useServices$1(e) {
|
9205
9234
|
const t = useKgVar(), r = computed(() => t.store.getVarPossibility(t.formID, e.kgVarName));
|
9206
9235
|
function n(a) {
|
9207
|
-
var
|
9236
|
+
var i, l, u, c;
|
9208
9237
|
if (!a)
|
9209
9238
|
return [];
|
9210
|
-
const o = (l = (
|
9211
|
-
switch (
|
9239
|
+
const o = (l = (i = r.value) == null ? void 0 : i.val_clm) != null ? l : "", s = (c = (u = r.value) == null ? void 0 : u.val_data_type) != null ? c : "string";
|
9240
|
+
switch (s) {
|
9212
9241
|
case KG_POSSIBILITY_DATA_TYPE.STRING:
|
9213
9242
|
a.forEach((g) => {
|
9214
9243
|
g[o] = String(g[o]);
|
@@ -9217,7 +9246,7 @@ function _useServices$1(e) {
|
|
9217
9246
|
case KG_POSSIBILITY_DATA_TYPE.NUMBER:
|
9218
9247
|
a.forEach((g) => {
|
9219
9248
|
let p = Number(g[o]);
|
9220
|
-
Number.isNaN(p) && (p = g[o], Logger.error(`| \u6570\u636E\u6709\u8BEF | \u65E0\u6CD5\u5C06 ${g[o]} \u8F6C\u6362\u4E3A ${
|
9249
|
+
Number.isNaN(p) && (p = g[o], Logger.error(`| \u6570\u636E\u6709\u8BEF | \u65E0\u6CD5\u5C06 ${g[o]} \u8F6C\u6362\u4E3A ${s} \u7C7B\u578B`, {
|
9221
9250
|
frm_id: t.formID,
|
9222
9251
|
var_nam: e.kgVarName,
|
9223
9252
|
VarPossibility: r.value
|
@@ -9227,7 +9256,7 @@ function _useServices$1(e) {
|
|
9227
9256
|
case KG_POSSIBILITY_DATA_TYPE.BOOLEAN:
|
9228
9257
|
a.forEach((g) => {
|
9229
9258
|
let p;
|
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 ${
|
9259
|
+
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 ${s} \u7C7B\u578B`, {
|
9231
9260
|
frm_id: t.formID,
|
9232
9261
|
var_nam: e.kgVarName,
|
9233
9262
|
VarPossibility: r.value
|
@@ -9251,9 +9280,9 @@ const KgFormItemSelect = defineComponent({
|
|
9251
9280
|
}) {
|
9252
9281
|
const n = useKgVar(), a = inject(DI_FORM_MODEL, computed(() => ({}))), {
|
9253
9282
|
transformDatas: o
|
9254
|
-
} = _useServices$1(e),
|
9283
|
+
} = _useServices$1(e), s = ref([]), i = computed(() => n.store.getVarPossibility(n.formID, e.kgVarName)), l = computed(() => {
|
9255
9284
|
var b;
|
9256
|
-
let p = KgVarUtil.parseCommandParameter((b =
|
9285
|
+
let p = KgVarUtil.parseCommandParameter((b = i.value) == null ? void 0 : b.cmd_prm);
|
9257
9286
|
return p = mapValues(p, (m) => {
|
9258
9287
|
var v, _;
|
9259
9288
|
if (typeof m == "string" && m.startsWith("{") && m.endsWith("}")) {
|
@@ -9270,13 +9299,13 @@ const KgFormItemSelect = defineComponent({
|
|
9270
9299
|
});
|
9271
9300
|
watch(l, () => {
|
9272
9301
|
var p;
|
9273
|
-
(p =
|
9302
|
+
(p = i.value) != null && p.id && u();
|
9274
9303
|
}, {
|
9275
9304
|
immediate: !0
|
9276
9305
|
});
|
9277
9306
|
async function u() {
|
9278
9307
|
var y, C, E, T, I, k, w, M;
|
9279
|
-
const p = (y =
|
9308
|
+
const p = (y = i.value) == null ? void 0 : y.cmd, b = (E = (C = i.value) == null ? void 0 : C.cmd_method) != null ? E : "GET", m = (I = (T = i.value) == null ? void 0 : T.val_clm) != null ? I : "", v = (w = (k = i.value) == null ? void 0 : k.lbl_clm) != null ? w : "";
|
9280
9309
|
if (!p || !m || !v) {
|
9281
9310
|
Logger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF.", {
|
9282
9311
|
frm_id: n.formID,
|
@@ -9297,18 +9326,18 @@ const KgFormItemSelect = defineComponent({
|
|
9297
9326
|
} catch {
|
9298
9327
|
}
|
9299
9328
|
if (!isObjectLike(_))
|
9300
|
-
|
9329
|
+
s.value = [];
|
9301
9330
|
else
|
9302
9331
|
switch (!0) {
|
9303
9332
|
case isArrayLike(_):
|
9304
|
-
|
9333
|
+
s.value = o(_);
|
9305
9334
|
break;
|
9306
9335
|
case (_ && "total" in _ && "records" in _):
|
9307
|
-
|
9336
|
+
s.value = o(_.records);
|
9308
9337
|
break;
|
9309
9338
|
}
|
9310
|
-
if (
|
9311
|
-
const A =
|
9339
|
+
if (s.value.length > 0) {
|
9340
|
+
const A = s.value[0];
|
9312
9341
|
(!(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.", {
|
9313
9342
|
frm_id: n.formID,
|
9314
9343
|
var_nam: e.kgVarName,
|
@@ -9318,13 +9347,13 @@ const KgFormItemSelect = defineComponent({
|
|
9318
9347
|
\u6240\u6709\u5217: Object.keys(A)
|
9319
9348
|
});
|
9320
9349
|
}
|
9321
|
-
r("kgSelectDatasChange",
|
9350
|
+
r("kgSelectDatasChange", s.value), s.value.find((A) => A[m] === e.value) || r("update:value", void 0);
|
9322
9351
|
}
|
9323
9352
|
function c(p) {
|
9324
9353
|
var m;
|
9325
|
-
const b = (m = toRaw(
|
9354
|
+
const b = (m = toRaw(s.value.find((v) => {
|
9326
9355
|
var _, y;
|
9327
|
-
return v[(y = (_ =
|
9356
|
+
return v[(y = (_ = i.value) == null ? void 0 : _.val_clm) != null ? y : ""] === p;
|
9328
9357
|
}))) != null ? m : null;
|
9329
9358
|
r("kgSelectChange", b), a.value[`${e.kgVarName}_obj`] = b;
|
9330
9359
|
}
|
@@ -9344,19 +9373,19 @@ const KgFormItemSelect = defineComponent({
|
|
9344
9373
|
class: "kg-form-item-select",
|
9345
9374
|
dropdownClassName: "kg-form-item-select-dropdown",
|
9346
9375
|
style: "width: 100%",
|
9347
|
-
"kg-cmd": (p =
|
9348
|
-
"kg-val-clm": (b =
|
9349
|
-
"kg-lbl-clm": (m =
|
9376
|
+
"kg-cmd": (p = i.value) == null ? void 0 : p.cmd,
|
9377
|
+
"kg-val-clm": (b = i.value) == null ? void 0 : b.val_clm,
|
9378
|
+
"kg-lbl-clm": (m = i.value) == null ? void 0 : m.lbl_clm
|
9350
9379
|
}, {
|
9351
|
-
default: () =>
|
9380
|
+
default: () => s.value.map((v) => {
|
9352
9381
|
var _, y, C, E;
|
9353
9382
|
return createVNode(Select.Option, {
|
9354
|
-
"kg-value": v[(y = (_ =
|
9355
|
-
value: v[(E = (C =
|
9383
|
+
"kg-value": v[(y = (_ = i.value) == null ? void 0 : _.val_clm) != null ? y : ""],
|
9384
|
+
value: v[(E = (C = i.value) == null ? void 0 : C.val_clm) != null ? E : ""]
|
9356
9385
|
}, {
|
9357
9386
|
default: () => {
|
9358
9387
|
var T, I;
|
9359
|
-
return [v[(I = (T =
|
9388
|
+
return [v[(I = (T = i.value) == null ? void 0 : T.lbl_clm) != null ? I : ""]];
|
9360
9389
|
}
|
9361
9390
|
});
|
9362
9391
|
}),
|
@@ -9390,10 +9419,10 @@ function _useRules(e) {
|
|
9390
9419
|
return {
|
9391
9420
|
rules: computed(() => {
|
9392
9421
|
var l, u, c, g, p, b, m, v;
|
9393
|
-
let
|
9422
|
+
let i = [];
|
9394
9423
|
switch (e.kgContext) {
|
9395
9424
|
case KG_FORM_CONTEXT.SEARCH:
|
9396
|
-
((l = n.value) == null ? void 0 : l.rqr_flg) === 1 &&
|
9425
|
+
((l = n.value) == null ? void 0 : l.rqr_flg) === 1 && i.push({
|
9397
9426
|
required: !0,
|
9398
9427
|
message: t.t("kg.required")
|
9399
9428
|
});
|
@@ -9401,25 +9430,25 @@ function _useRules(e) {
|
|
9401
9430
|
case KG_FORM_CONTEXT.SUBMIT:
|
9402
9431
|
switch (!0) {
|
9403
9432
|
case r.isCreating.value:
|
9404
|
-
((u = o.value) == null ? void 0 : u.crt_rqr_flg) === 1 &&
|
9433
|
+
((u = o.value) == null ? void 0 : u.crt_rqr_flg) === 1 && i.push({
|
9405
9434
|
required: !0,
|
9406
9435
|
message: t.t("kg.required")
|
9407
9436
|
});
|
9408
9437
|
break;
|
9409
9438
|
case r.isUpdating.value:
|
9410
|
-
((c = o.value) == null ? void 0 : c.upt_rqr_flg) === 1 &&
|
9439
|
+
((c = o.value) == null ? void 0 : c.upt_rqr_flg) === 1 && i.push({
|
9411
9440
|
required: !0,
|
9412
9441
|
message: t.t("kg.required")
|
9413
9442
|
});
|
9414
9443
|
break;
|
9415
9444
|
case r.isCopying.value:
|
9416
|
-
((g = o.value) == null ? void 0 : g.cpy_rqr_flg) === 1 &&
|
9445
|
+
((g = o.value) == null ? void 0 : g.cpy_rqr_flg) === 1 && i.push({
|
9417
9446
|
required: !0,
|
9418
9447
|
message: t.t("kg.required")
|
9419
9448
|
});
|
9420
9449
|
break;
|
9421
9450
|
case r.isDeleting.value:
|
9422
|
-
((p = o.value) == null ? void 0 : p.del_rqr_flg) === 1 &&
|
9451
|
+
((p = o.value) == null ? void 0 : p.del_rqr_flg) === 1 && i.push({
|
9423
9452
|
required: !0,
|
9424
9453
|
message: t.t("kg.required")
|
9425
9454
|
});
|
@@ -9430,14 +9459,14 @@ function _useRules(e) {
|
|
9430
9459
|
switch ((b = a.value) == null ? void 0 : b.data_type) {
|
9431
9460
|
case KG_VAR_INPUT__DATA_TYPE.NUMBER:
|
9432
9461
|
const _ = (m = a.value) == null ? void 0 : m.min;
|
9433
|
-
isNil(_) || (((v = a.value) == null ? void 0 : v.min_include_flg) === 1 ?
|
9462
|
+
isNil(_) || (((v = a.value) == null ? void 0 : v.min_include_flg) === 1 ? i.push({
|
9434
9463
|
validator: (y, C) => Number(C) < _ ? Promise.reject(t.t("kg.KgFormItem.mustGTE", [_])) : Promise.resolve()
|
9435
|
-
}) :
|
9464
|
+
}) : i.push({
|
9436
9465
|
validator: (y, C) => Number(C) <= _ ? Promise.reject(t.t("kg.KgFormItem.mustGT", [_])) : Promise.resolve()
|
9437
9466
|
}));
|
9438
9467
|
break;
|
9439
9468
|
}
|
9440
|
-
return e.kgRules && (
|
9469
|
+
return e.kgRules && (i = [...i, ...e.kgRules]), i;
|
9441
9470
|
})
|
9442
9471
|
};
|
9443
9472
|
}
|
@@ -9450,7 +9479,7 @@ const KgFormItem = defineComponent({
|
|
9450
9479
|
emit: r
|
9451
9480
|
}) {
|
9452
9481
|
provide(KG_DI_VAR_NAME, e.kgVarName), provide(DI_ON_KG_LOOKUP_BEFORE_OK, e.onKgLookupBeforeOk), useKg();
|
9453
|
-
const n = useKgVar(), a = inject(DI_FORM_MODEL, computed(() => ({}))), o = inject(DI_FORM_REF, ref(null)),
|
9482
|
+
const n = useKgVar(), a = inject(DI_FORM_MODEL, computed(() => ({}))), o = inject(DI_FORM_REF, ref(null)), s = computed(() => n.store.getVarLookup(n.formID, e.kgVarName)), i = 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)), {
|
9454
9483
|
rules: c
|
9455
9484
|
} = _useRules(e), g = computed(() => {
|
9456
9485
|
var A, O, B, $, P;
|
@@ -9538,7 +9567,7 @@ const KgFormItem = defineComponent({
|
|
9538
9567
|
}), v = computed(() => {
|
9539
9568
|
var A, O, B, $;
|
9540
9569
|
let M = "kg-form-item";
|
9541
|
-
switch (
|
9570
|
+
switch (s.value && (M += " kg-form-item-lookup"), e.kgContext) {
|
9542
9571
|
case KG_FORM_CONTEXT.SEARCH:
|
9543
9572
|
switch (!0) {
|
9544
9573
|
case ((A = l.value) == null ? void 0 : A.vis_flg) === 0:
|
@@ -9592,7 +9621,7 @@ const KgFormItem = defineComponent({
|
|
9592
9621
|
return M;
|
9593
9622
|
}), y = computed(() => {
|
9594
9623
|
var M;
|
9595
|
-
return (M =
|
9624
|
+
return (M = i.value) == null ? void 0 : M.ctrl_typ;
|
9596
9625
|
}), C = computed(() => encodeURIComponent(`${e.kgContext}~${n.formID}~${e.kgVarName}`)), E = ref(null);
|
9597
9626
|
function T(M, A) {
|
9598
9627
|
var O;
|
@@ -9604,7 +9633,7 @@ const KgFormItem = defineComponent({
|
|
9604
9633
|
varName: e.kgVarName,
|
9605
9634
|
props: _,
|
9606
9635
|
model: a,
|
9607
|
-
varConfig:
|
9636
|
+
varConfig: i,
|
9608
9637
|
varProfileDetail: l,
|
9609
9638
|
varSubmitField: u
|
9610
9639
|
};
|
@@ -9646,11 +9675,11 @@ const KgFormItem = defineComponent({
|
|
9646
9675
|
}
|
9647
9676
|
function w() {
|
9648
9677
|
var M;
|
9649
|
-
return !
|
9678
|
+
return !s.value || !((M = s.value) != null && M.lkp_id) ? null : createVNode(Form.ItemRest, null, {
|
9650
9679
|
default: () => [createVNode(KgFormItemAddonLookup, {
|
9651
9680
|
kgDisabled: g.value,
|
9652
9681
|
onKgOk: T,
|
9653
|
-
kgLookupID:
|
9682
|
+
kgLookupID: s.value.lkp_id
|
9654
9683
|
}, null)]
|
9655
9684
|
});
|
9656
9685
|
}
|
@@ -9660,8 +9689,8 @@ const KgFormItem = defineComponent({
|
|
9660
9689
|
ref: E,
|
9661
9690
|
"kg-frm-id": n.formID,
|
9662
9691
|
"kg-var-nam": e.kgVarName,
|
9663
|
-
"kg-lkp-id": (M =
|
9664
|
-
"kg-lkp-ret-fld": (A =
|
9692
|
+
"kg-lkp-id": (M = s.value) == null ? void 0 : M.lkp_id,
|
9693
|
+
"kg-lkp-ret-fld": (A = s.value) == null ? void 0 : A.ret_fld,
|
9665
9694
|
span: b.value,
|
9666
9695
|
class: v.value,
|
9667
9696
|
style: m.value
|
@@ -9692,17 +9721,17 @@ const KgFormItem = defineComponent({
|
|
9692
9721
|
...e
|
9693
9722
|
}));
|
9694
9723
|
return provide(DI_FORM_MODEL, computed(() => e.model)), provide(DI_FORM_REF, a), r({
|
9695
|
-
resetFields(
|
9696
|
-
var
|
9697
|
-
return (
|
9724
|
+
resetFields(s) {
|
9725
|
+
var i;
|
9726
|
+
return (i = a.value) == null ? void 0 : i.resetFields(s);
|
9698
9727
|
},
|
9699
|
-
clearValidate(
|
9700
|
-
var
|
9701
|
-
return (
|
9728
|
+
clearValidate(s) {
|
9729
|
+
var i;
|
9730
|
+
return (i = a.value) == null ? void 0 : i.clearValidate(s);
|
9702
9731
|
},
|
9703
|
-
validate(
|
9732
|
+
validate(s, i) {
|
9704
9733
|
var l;
|
9705
|
-
return (l = a.value) == null ? void 0 : l.validate(
|
9734
|
+
return (l = a.value) == null ? void 0 : l.validate(s, i);
|
9706
9735
|
}
|
9707
9736
|
}), () => createVNode(Form, mergeProps(o.value, {
|
9708
9737
|
ref: a
|
@@ -9903,11 +9932,11 @@ function useKgSubmit(e) {
|
|
9903
9932
|
return isFunction$2(m) ? (r.addEventListener(t.formID, "close", m), onUnmounted(() => r.removeEventListener(t.formID, "close", m)), () => r.removeEventListener(t.formID, "close", m)) : () => {
|
9904
9933
|
};
|
9905
9934
|
}
|
9906
|
-
function
|
9935
|
+
function s(m) {
|
9907
9936
|
return isFunction$2(m) ? (r.addEventListener(t.formID, "beforeOk", m), onUnmounted(() => r.removeEventListener(t.formID, "beforeOk", m)), () => r.removeEventListener(t.formID, "beforeOk", m)) : () => {
|
9908
9937
|
};
|
9909
9938
|
}
|
9910
|
-
function
|
9939
|
+
function i(m) {
|
9911
9940
|
return isFunction$2(m) ? (r.addEventListener(t.formID, "afterValidate", m), onUnmounted(() => r.removeEventListener(t.formID, "afterValidate", m)), () => r.removeEventListener(t.formID, "afterValidate", m)) : () => {
|
9912
9941
|
};
|
9913
9942
|
}
|
@@ -9961,8 +9990,8 @@ function useKgSubmit(e) {
|
|
9961
9990
|
rules: b,
|
9962
9991
|
displayType: c,
|
9963
9992
|
onOpen: a,
|
9964
|
-
onBeforeOk:
|
9965
|
-
onAfterValidate:
|
9993
|
+
onBeforeOk: s,
|
9994
|
+
onAfterValidate: i,
|
9966
9995
|
onBeforeRequest: l,
|
9967
9996
|
onOk: u,
|
9968
9997
|
onClose: o
|
@@ -9983,25 +10012,25 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
|
|
9983
10012
|
emit: r,
|
9984
10013
|
attrs: n
|
9985
10014
|
}) {
|
9986
|
-
const a = useKg(), o = useKgVar(e.hostFormID),
|
9987
|
-
let
|
10015
|
+
const a = useKg(), o = useKgVar(e.hostFormID), s = useKgVar(FORM_ID__VAR_SUBMIT_CONFIG, !0, o.store.getFormLevel(o.formID) + 2);
|
10016
|
+
let i = null;
|
9988
10017
|
const l = useKgSubmit(FORM_ID__VAR_SUBMIT_CONFIG);
|
9989
10018
|
return l.onOpen(async ({
|
9990
10019
|
model: u
|
9991
10020
|
}) => {
|
9992
10021
|
const c = o.store.getVarSubmitConfig(o.formID);
|
9993
|
-
return
|
10022
|
+
return i = watch(u, (g) => {
|
9994
10023
|
var p, b, m, v, _, y, C, E, T, I, k, w;
|
9995
10024
|
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);
|
9996
10025
|
}, {
|
9997
10026
|
immediate: !0
|
9998
10027
|
}), !1;
|
9999
|
-
}), l.onClose(async () => (
|
10028
|
+
}), l.onClose(async () => (i == null || i(), r("kgClose"), !1)), l.onBeforeOk(async ({
|
10000
10029
|
rules: u,
|
10001
10030
|
model: c
|
10002
10031
|
}) => (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 = [{
|
10003
10032
|
validator: () => Promise.reject(a.t("kg.KgSubmitHeaderVarSubmitConfig.invalidWidthForSpan"))
|
10004
|
-
}]), !1)), l.onOk(async () => (o.store.retrieve(o.formID), !1)),
|
10033
|
+
}]), !1)), l.onOk(async () => (o.store.retrieve(o.formID), !1)), s.store.setIsUpdating(FORM_ID__VAR_SUBMIT_CONFIG, !0, !0), () => createVNode(KgSubmit, {
|
10005
10034
|
kgShowConfigButton: !1
|
10006
10035
|
}, null);
|
10007
10036
|
}
|
@@ -10031,7 +10060,7 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
|
|
10031
10060
|
}) {
|
10032
10061
|
const a = useKgVar(), o = useKgSubmit();
|
10033
10062
|
useKgSubmit(FORM_ID__VAR_SUBMIT_CONFIG).onClose(async () => (c.value = !1, !1));
|
10034
|
-
const
|
10063
|
+
const i = 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);
|
10035
10064
|
function g() {
|
10036
10065
|
r("update:isFullscreen", !e.isFullscreen);
|
10037
10066
|
}
|
@@ -10043,7 +10072,7 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
|
|
10043
10072
|
}
|
10044
10073
|
function m() {
|
10045
10074
|
var y;
|
10046
|
-
return e.kgShowFullscreenButton === !1 || ((y =
|
10075
|
+
return e.kgShowFullscreenButton === !1 || ((y = i.value) == null ? void 0 : y.fullscreen_flg) === 0 ? null : createVNode(Button, {
|
10047
10076
|
onClick: g,
|
10048
10077
|
class: "kg-submit--btn-fullscreen"
|
10049
10078
|
}, {
|
@@ -10074,7 +10103,7 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
|
|
10074
10103
|
}
|
10075
10104
|
}), 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;
|
10076
10105
|
function _useFormModel() {
|
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)),
|
10106
|
+
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)), s = computed(() => t.store.getVarSubmitFieldsForCopy(t.formID)), i = computed(() => t.store.getVarSubmitFieldsForDelete(t.formID)), l = computed(() => {
|
10078
10107
|
var c, g, p, b;
|
10079
10108
|
switch (!0) {
|
10080
10109
|
case t.isCreating.value:
|
@@ -10082,9 +10111,9 @@ function _useFormModel() {
|
|
10082
10111
|
case t.isUpdating.value:
|
10083
10112
|
return (g = o.value) != null ? g : [];
|
10084
10113
|
case t.isCopying.value:
|
10085
|
-
return (p =
|
10114
|
+
return (p = s.value) != null ? p : [];
|
10086
10115
|
case t.isDeleting.value:
|
10087
|
-
return (b =
|
10116
|
+
return (b = i.value) != null ? b : [];
|
10088
10117
|
}
|
10089
10118
|
return [];
|
10090
10119
|
}), u = ref({});
|
@@ -10121,23 +10150,23 @@ function _useResizeObserver$1(e) {
|
|
10121
10150
|
let t = null;
|
10122
10151
|
return watch(e, (r) => {
|
10123
10152
|
r && (t = new ResizeObserver((n) => {
|
10124
|
-
var o,
|
10125
|
-
const a = (
|
10153
|
+
var o, s;
|
10154
|
+
const a = (s = (o = n[0].borderBoxSize[0]) == null ? void 0 : o.inlineSize) != null ? s : 0;
|
10126
10155
|
switch (!0) {
|
10127
10156
|
case a < 570:
|
10128
|
-
r.classList.remove(...[2, 3, 4, 5].map((
|
10157
|
+
r.classList.remove(...[2, 3, 4, 5].map((i) => `kg-submit--col-${i}`)), r.classList.add("kg-submit--col-1");
|
10129
10158
|
break;
|
10130
10159
|
case (a >= 570 && a < 864):
|
10131
|
-
r.classList.remove(...[1, 3, 4, 5].map((
|
10160
|
+
r.classList.remove(...[1, 3, 4, 5].map((i) => `kg-submit--col-${i}`)), r.classList.add("kg-submit--col-2");
|
10132
10161
|
break;
|
10133
10162
|
case (a >= 864 && a < 1158):
|
10134
|
-
r.classList.remove(...[1, 2, 4, 5].map((
|
10163
|
+
r.classList.remove(...[1, 2, 4, 5].map((i) => `kg-submit--col-${i}`)), r.classList.add("kg-submit--col-3");
|
10135
10164
|
break;
|
10136
10165
|
case (a >= 1158 && a < 1452):
|
10137
|
-
r.classList.remove(...[1, 2, 3, 5].map((
|
10166
|
+
r.classList.remove(...[1, 2, 3, 5].map((i) => `kg-submit--col-${i}`)), r.classList.add("kg-submit--col-4");
|
10138
10167
|
break;
|
10139
10168
|
case a >= 1452:
|
10140
|
-
r.classList.remove(...[1, 2, 3, 4].map((
|
10169
|
+
r.classList.remove(...[1, 2, 3, 4].map((i) => `kg-submit--col-${i}`)), r.classList.add("kg-submit--col-5");
|
10141
10170
|
break;
|
10142
10171
|
}
|
10143
10172
|
}), t.observe(r));
|
@@ -10151,10 +10180,10 @@ function _useTitle() {
|
|
10151
10180
|
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));
|
10152
10181
|
return {
|
10153
10182
|
title: computed(() => {
|
10154
|
-
var
|
10183
|
+
var i, l, u, c;
|
10155
10184
|
switch (!0) {
|
10156
10185
|
case t.isCreating.value: {
|
10157
|
-
const g = (
|
10186
|
+
const g = (i = r.value) == null ? void 0 : i.var_nam, p = t.t(g).value;
|
10158
10187
|
return g === p ? e.t("kg.create") : p;
|
10159
10188
|
}
|
10160
10189
|
case t.isUpdating.value: {
|
@@ -10179,8 +10208,8 @@ function _useClass(e, t) {
|
|
10179
10208
|
return {
|
10180
10209
|
getClass: computed(() => {
|
10181
10210
|
var l, u, c;
|
10182
|
-
let
|
10183
|
-
return t.isFullscreen && (
|
10211
|
+
let i = "kg-submit";
|
10212
|
+
return t.isFullscreen && (i += " kg-submit--fullscreen"), ((l = a.value) == null ? void 0 : l.responsive_flg) !== 0 && (i += " kg-submit--responsive"), n.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL ? i += " kg-submit--modal" : n.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && (i += " kg-submit--table"), r.isDeleting.value && ((c = (u = o.value) == null ? void 0 : u.length) != null ? c : 0) === 0 && (i += " kg-submit--delete-message"), e.kgClass && (i += ` ${e.kgClass}`), i;
|
10184
10213
|
})
|
10185
10214
|
};
|
10186
10215
|
}
|
@@ -10190,15 +10219,15 @@ function _useLayout() {
|
|
10190
10219
|
getLayout: computed(() => {
|
10191
10220
|
var u, c, g, p, b;
|
10192
10221
|
let n = "vertical";
|
10193
|
-
const a = (u = t.value) == null ? void 0 : u.layout, o = (c = t.value) == null ? void 0 : c.crt_layout,
|
10222
|
+
const a = (u = t.value) == null ? void 0 : u.layout, o = (c = t.value) == null ? void 0 : c.crt_layout, s = (g = t.value) == null ? void 0 : g.upt_layout, i = (p = t.value) == null ? void 0 : p.cpy_layout, l = (b = t.value) == null ? void 0 : b.del_layout;
|
10194
10223
|
switch (!0) {
|
10195
10224
|
case (e.isCreating.value && (o === "horizontal" || !o && a === "horizontal")):
|
10196
10225
|
n = "horizontal";
|
10197
10226
|
break;
|
10198
|
-
case (e.isUpdating.value && (
|
10227
|
+
case (e.isUpdating.value && (s === "horizontal" || !s && a === "horizontal")):
|
10199
10228
|
n = "horizontal";
|
10200
10229
|
break;
|
10201
|
-
case (e.isCopying.value && (
|
10230
|
+
case (e.isCopying.value && (i === "horizontal" || !i && a === "horizontal")):
|
10202
10231
|
n = "horizontal";
|
10203
10232
|
break;
|
10204
10233
|
case (e.isDeleting.value && (l === "horizontal" || !l && a === "horizontal")):
|
@@ -10216,7 +10245,7 @@ function _useDefaultWidth() {
|
|
10216
10245
|
var u, c, g, p, b;
|
10217
10246
|
if (!t.value)
|
10218
10247
|
return 0;
|
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,
|
10248
|
+
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, s = (p = t.value) == null ? void 0 : p.cpy_dft_width, i = (b = t.value) == null ? void 0 : b.del_dft_width;
|
10220
10249
|
let l = n || DEFAULT_WIDTH;
|
10221
10250
|
switch (!0) {
|
10222
10251
|
case (e.isCreating.value && !!a):
|
@@ -10225,12 +10254,12 @@ function _useDefaultWidth() {
|
|
10225
10254
|
case (e.isUpdating.value && !!o):
|
10226
10255
|
l = o;
|
10227
10256
|
break;
|
10228
|
-
case (e.isCopying.value && !!
|
10229
|
-
l = i;
|
10230
|
-
break;
|
10231
|
-
case (e.isDeleting.value && !!s):
|
10257
|
+
case (e.isCopying.value && !!s):
|
10232
10258
|
l = s;
|
10233
10259
|
break;
|
10260
|
+
case (e.isDeleting.value && !!i):
|
10261
|
+
l = i;
|
10262
|
+
break;
|
10234
10263
|
}
|
10235
10264
|
return l;
|
10236
10265
|
})
|
@@ -10252,11 +10281,11 @@ const getProps$n = () => ({
|
|
10252
10281
|
setup(e, {
|
10253
10282
|
attrs: t
|
10254
10283
|
}) {
|
10255
|
-
const r = inject("$dayjs", dayjs), n = useKg(), a = useKgVar(), o = useKgButton(),
|
10284
|
+
const r = inject("$dayjs", dayjs), n = useKg(), a = useKgVar(), o = useKgButton(), s = useKgTable(), i = useKgSubmit(), l = useKgSearch();
|
10256
10285
|
o.onSubmitSave(async () => (await Z(), !1)), o.onSubmitCancel(async () => (await z(), !1));
|
10257
10286
|
const u = inject(DI_KG_SLOTS, null);
|
10258
10287
|
_useFormModel(), KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE;
|
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(() =>
|
10288
|
+
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(() => i.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(() => {
|
10260
10289
|
var G, W, J;
|
10261
10290
|
switch (!0) {
|
10262
10291
|
case a.isCreating.value:
|
@@ -10349,14 +10378,14 @@ const getProps$n = () => ({
|
|
10349
10378
|
});
|
10350
10379
|
function K() {
|
10351
10380
|
var W;
|
10352
|
-
const G = watch(
|
10353
|
-
J && Object.keys(J).length > 0 && (setTimeout(() => G()),
|
10381
|
+
const G = watch(i.model, (J) => {
|
10382
|
+
J && Object.keys(J).length > 0 && (setTimeout(() => G()), i.store.emit(a.formID, "open", {
|
10354
10383
|
isCreating: a.isCreating.value,
|
10355
10384
|
isUpdating: a.isUpdating.value,
|
10356
10385
|
isCopying: a.isCopying.value,
|
10357
10386
|
isDeleting: a.isDeleting.value,
|
10358
|
-
row:
|
10359
|
-
model:
|
10387
|
+
row: s.selectedRow.value,
|
10388
|
+
model: i.model
|
10360
10389
|
}));
|
10361
10390
|
}, {
|
10362
10391
|
immediate: !0
|
@@ -10364,7 +10393,7 @@ const getProps$n = () => ({
|
|
10364
10393
|
((W = _.value) == null ? void 0 : W.dft_fullscreen_flg) === 1 && !c.value && (Y.isFullscreen = !0);
|
10365
10394
|
}
|
10366
10395
|
function U() {
|
10367
|
-
P.value.kgWidth = ee.value, Y.isFullscreen = !1,
|
10396
|
+
P.value.kgWidth = ee.value, Y.isFullscreen = !1, i.store.emit(a.formID, "close");
|
10368
10397
|
}
|
10369
10398
|
function z() {
|
10370
10399
|
switch (!0) {
|
@@ -10385,29 +10414,29 @@ const getProps$n = () => ({
|
|
10385
10414
|
async function Z() {
|
10386
10415
|
var G, W;
|
10387
10416
|
try {
|
10388
|
-
if (await
|
10417
|
+
if (await i.store.emit(a.formID, "beforeOk", {
|
10389
10418
|
isCreating: a.isCreating.value,
|
10390
10419
|
isUpdating: a.isUpdating.value,
|
10391
10420
|
isCopying: a.isCopying.value,
|
10392
10421
|
isDeleting: a.isDeleting.value,
|
10393
|
-
row:
|
10394
|
-
rules:
|
10395
|
-
model:
|
10422
|
+
row: s.selectedRow.value,
|
10423
|
+
rules: i.rules,
|
10424
|
+
model: i.model
|
10396
10425
|
}))
|
10397
10426
|
return;
|
10398
10427
|
try {
|
10399
|
-
await ((G =
|
10428
|
+
await ((G = i.formRef.value) == null ? void 0 : G.validate());
|
10400
10429
|
} catch (ae) {
|
10401
10430
|
KgUtil.throwIfNotFormError(ae);
|
10402
10431
|
}
|
10403
|
-
if (await ((W =
|
10432
|
+
if (await ((W = i.formRef.value) == null ? void 0 : W.validate()), await i.store.emit(a.formID, "afterValidate", {
|
10404
10433
|
isCreating: a.isCreating.value,
|
10405
10434
|
isUpdating: a.isUpdating.value,
|
10406
10435
|
isCopying: a.isCopying.value,
|
10407
10436
|
isDeleting: a.isDeleting.value,
|
10408
|
-
row:
|
10409
|
-
rows:
|
10410
|
-
model:
|
10437
|
+
row: s.selectedRow.value,
|
10438
|
+
rows: s.selectedRows.value,
|
10439
|
+
model: i.model
|
10411
10440
|
}))
|
10412
10441
|
return;
|
10413
10442
|
switch (!0) {
|
@@ -10429,7 +10458,7 @@ const getProps$n = () => ({
|
|
10429
10458
|
}
|
10430
10459
|
}
|
10431
10460
|
async function X() {
|
10432
|
-
var W, J, re, ae, oe,
|
10461
|
+
var W, J, re, ae, oe, se, ie, le;
|
10433
10462
|
const G = (W = g.value) == null ? void 0 : W.cmd;
|
10434
10463
|
if (!G) {
|
10435
10464
|
Logger.error("[KgSubmit] '\u521B\u5EFA\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
|
@@ -10439,15 +10468,15 @@ const getProps$n = () => ({
|
|
10439
10468
|
}
|
10440
10469
|
a.store.setIsCreatingRequesting(a.formID, !0);
|
10441
10470
|
try {
|
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(
|
10443
|
-
if (await
|
10471
|
+
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(i.model.value), a.formID, r));
|
10472
|
+
if (await i.store.emit(a.formID, "beforeRequest", {
|
10444
10473
|
isCreating: a.isCreating.value,
|
10445
10474
|
isUpdating: a.isUpdating.value,
|
10446
10475
|
isCopying: a.isCopying.value,
|
10447
10476
|
isDeleting: a.isDeleting.value,
|
10448
|
-
row:
|
10449
|
-
rows:
|
10450
|
-
model:
|
10477
|
+
row: s.selectedFirstRow.value,
|
10478
|
+
rows: s.selectedRows.value,
|
10479
|
+
model: i.model,
|
10451
10480
|
params: te,
|
10452
10481
|
data: ue
|
10453
10482
|
}))
|
@@ -10457,7 +10486,7 @@ const getProps$n = () => ({
|
|
10457
10486
|
url: G,
|
10458
10487
|
params: te.value,
|
10459
10488
|
data: ue.value
|
10460
|
-
}), ((
|
10489
|
+
}), ((se = g.value) == null ? void 0 : se.show_success_message_flg) !== 0 && message.success(N.title.value + n.t("kg.succeed")), i.store.emit(a.formID, "ok"), a.store.setIsCreating(a.formID, !1), (le = (ie = l.search).value) == null || le.call(ie, !0);
|
10461
10490
|
} catch (te) {
|
10462
10491
|
console.error(te);
|
10463
10492
|
} finally {
|
@@ -10465,7 +10494,7 @@ const getProps$n = () => ({
|
|
10465
10494
|
}
|
10466
10495
|
}
|
10467
10496
|
async function de() {
|
10468
|
-
var W, J, re, ae, oe,
|
10497
|
+
var W, J, re, ae, oe, se, ie, le;
|
10469
10498
|
const G = (W = p.value) == null ? void 0 : W.cmd;
|
10470
10499
|
if (!G) {
|
10471
10500
|
Logger.error("[KgSubmit] '\u66F4\u65B0\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
|
@@ -10475,15 +10504,15 @@ const getProps$n = () => ({
|
|
10475
10504
|
}
|
10476
10505
|
try {
|
10477
10506
|
a.store.setIsUpdatingRequesting(a.formID, !0);
|
10478
|
-
let te = ref(KgVarUtil.parseCommandParameter((re = (J = p.value) == null ? void 0 : J.cmd_prm) != null ? re : "")), ue = ref(toRaw(
|
10479
|
-
if (await
|
10507
|
+
let te = ref(KgVarUtil.parseCommandParameter((re = (J = p.value) == null ? void 0 : J.cmd_prm) != null ? re : "")), ue = ref(toRaw(i.model.value));
|
10508
|
+
if (await i.store.emit(a.formID, "beforeRequest", {
|
10480
10509
|
isCreating: a.isCreating.value,
|
10481
10510
|
isUpdating: a.isUpdating.value,
|
10482
10511
|
isCopying: a.isCopying.value,
|
10483
10512
|
isDeleting: a.isDeleting.value,
|
10484
|
-
row:
|
10485
|
-
rows:
|
10486
|
-
model:
|
10513
|
+
row: s.selectedRow.value,
|
10514
|
+
rows: s.selectedRows.value,
|
10515
|
+
model: i.model,
|
10487
10516
|
params: te,
|
10488
10517
|
data: ue
|
10489
10518
|
}))
|
@@ -10493,7 +10522,7 @@ const getProps$n = () => ({
|
|
10493
10522
|
url: G,
|
10494
10523
|
params: te.value,
|
10495
10524
|
data: ue.value
|
10496
|
-
}), ((
|
10525
|
+
}), ((se = p.value) == null ? void 0 : se.show_success_message_flg) !== 0 && message.success(n.t("kg.updateSuccess")), i.store.emit(a.formID, "ok"), a.store.setIsUpdating(a.formID, !1), (le = (ie = l.search).value) == null || le.call(ie);
|
10497
10526
|
} catch (te) {
|
10498
10527
|
console.error(te);
|
10499
10528
|
} finally {
|
@@ -10501,7 +10530,7 @@ const getProps$n = () => ({
|
|
10501
10530
|
}
|
10502
10531
|
}
|
10503
10532
|
async function pe() {
|
10504
|
-
var W, J, re, ae, oe,
|
10533
|
+
var W, J, re, ae, oe, se, ie, le, te, ue;
|
10505
10534
|
const G = (W = b.value) == null ? void 0 : W.cmd;
|
10506
10535
|
if (!G) {
|
10507
10536
|
Logger.error("[KgSubmit] '\u590D\u5236\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
|
@@ -10512,27 +10541,27 @@ const getProps$n = () => ({
|
|
10512
10541
|
try {
|
10513
10542
|
a.store.setIsCopyingRequesting(a.formID, !0);
|
10514
10543
|
let ge = ref(KgVarUtil.parseCommandParameter((re = (J = b.value) == null ? void 0 : J.cmd_prm) != null ? re : "")), fe = ref({
|
10515
|
-
...(ae =
|
10516
|
-
...toRaw(
|
10544
|
+
...(ae = s.selectedFirstRow.value) != null ? ae : {},
|
10545
|
+
...toRaw(i.model.value)
|
10517
10546
|
});
|
10518
|
-
if (((oe = _.value) == null ? void 0 : oe.cpy_clear_id_flg) !== 0 && delete fe.value.id, await
|
10547
|
+
if (((oe = _.value) == null ? void 0 : oe.cpy_clear_id_flg) !== 0 && delete fe.value.id, await i.store.emit(a.formID, "beforeRequest", {
|
10519
10548
|
isCreating: a.isCreating.value,
|
10520
10549
|
isUpdating: a.isUpdating.value,
|
10521
10550
|
isCopying: a.isCopying.value,
|
10522
10551
|
isDeleting: a.isDeleting.value,
|
10523
|
-
row:
|
10524
|
-
rows:
|
10525
|
-
model:
|
10552
|
+
row: s.selectedRow.value,
|
10553
|
+
rows: s.selectedRows.value,
|
10554
|
+
model: i.model,
|
10526
10555
|
params: ge,
|
10527
10556
|
data: fe
|
10528
10557
|
}))
|
10529
10558
|
return;
|
10530
10559
|
await httpClient().request({
|
10531
|
-
method: (
|
10560
|
+
method: (ie = (se = b.value) == null ? void 0 : se.cmd_method) != null ? ie : "POST",
|
10532
10561
|
url: G,
|
10533
10562
|
params: ge.value,
|
10534
10563
|
data: fe.value
|
10535
|
-
}), ((le = b.value) == null ? void 0 : le.show_success_message_flg) !== 0 && message.success(n.t("kg.copySuccess")),
|
10564
|
+
}), ((le = b.value) == null ? void 0 : le.show_success_message_flg) !== 0 && message.success(n.t("kg.copySuccess")), i.store.emit(a.formID, "ok"), a.store.setIsCopying(a.formID, !1), (ue = (te = l.search).value) == null || ue.call(te, !0);
|
10536
10565
|
} catch (ge) {
|
10537
10566
|
console.error(ge);
|
10538
10567
|
} finally {
|
@@ -10540,7 +10569,7 @@ const getProps$n = () => ({
|
|
10540
10569
|
}
|
10541
10570
|
}
|
10542
10571
|
async function be() {
|
10543
|
-
var W, J, re, ae, oe,
|
10572
|
+
var W, J, re, ae, oe, se, ie, le;
|
10544
10573
|
const G = (W = m.value) == null ? void 0 : W.cmd;
|
10545
10574
|
if (!G) {
|
10546
10575
|
Logger.error("[KgSubmit] '\u5220\u9664\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
|
@@ -10551,19 +10580,19 @@ const getProps$n = () => ({
|
|
10551
10580
|
try {
|
10552
10581
|
a.store.setIsDeletingRequesting(a.formID, !0);
|
10553
10582
|
let te = ref({
|
10554
|
-
ids: (re = (J =
|
10583
|
+
ids: (re = (J = s.selectedRows.value) == null ? void 0 : J.map((fe) => {
|
10555
10584
|
var me, _e, ve;
|
10556
10585
|
return (ve = fe[(_e = (me = m.value) == null ? void 0 : me.del_param_clm) != null ? _e : "id"]) != null ? ve : "";
|
10557
10586
|
})) != null ? re : []
|
10558
10587
|
}), ue = ref({});
|
10559
|
-
if (await
|
10588
|
+
if (await i.store.emit(a.formID, "beforeRequest", {
|
10560
10589
|
isCreating: a.isCreating.value,
|
10561
10590
|
isUpdating: a.isUpdating.value,
|
10562
10591
|
isCopying: a.isCopying.value,
|
10563
10592
|
isDeleting: a.isDeleting.value,
|
10564
|
-
row:
|
10565
|
-
rows:
|
10566
|
-
model:
|
10593
|
+
row: s.selectedFirstRow.value,
|
10594
|
+
rows: s.selectedRows.value,
|
10595
|
+
model: i.model,
|
10567
10596
|
params: te,
|
10568
10597
|
data: ue
|
10569
10598
|
}))
|
@@ -10575,7 +10604,7 @@ const getProps$n = () => ({
|
|
10575
10604
|
data: ue.value
|
10576
10605
|
}, {
|
10577
10606
|
joinParamsToUrl: !0
|
10578
|
-
}), ((
|
10607
|
+
}), ((se = m.value) == null ? void 0 : se.show_success_message_flg) !== 0 && message.success(n.t("kg.deleteSuccess")), i.store.emit(a.formID, "ok"), a.store.setIsDeleting(a.formID, !1), (le = (ie = l.search).value) == null || le.call(ie, !0);
|
10579
10608
|
} catch (te) {
|
10580
10609
|
console.error(te);
|
10581
10610
|
} finally {
|
@@ -10588,35 +10617,35 @@ const getProps$n = () => ({
|
|
10588
10617
|
return isFunction$2(W) ? createVNode(KgForm.Item, {
|
10589
10618
|
kgVarName: G.var_nam,
|
10590
10619
|
kgContext: KG_FORM_CONTEXT.SUBMIT,
|
10591
|
-
kgRules:
|
10620
|
+
kgRules: i.rules.value[G.var_nam],
|
10592
10621
|
onKgSubmit: Z
|
10593
10622
|
}, {
|
10594
10623
|
control: ({
|
10595
10624
|
varName: ae,
|
10596
10625
|
props: oe,
|
10597
|
-
model:
|
10598
|
-
varConfig:
|
10626
|
+
model: se,
|
10627
|
+
varConfig: ie,
|
10599
10628
|
varProfileDetail: le,
|
10600
10629
|
varSubmitField: te
|
10601
10630
|
}) => W({
|
10602
10631
|
varName: ae,
|
10603
10632
|
props: oe,
|
10604
|
-
model:
|
10605
|
-
varConfig:
|
10633
|
+
model: se,
|
10634
|
+
varConfig: ie,
|
10606
10635
|
varProfileDetail: le,
|
10607
10636
|
varSubmitField: te
|
10608
10637
|
})
|
10609
10638
|
}) : createVNode(KgForm.Item, {
|
10610
10639
|
kgVarName: G.var_nam,
|
10611
10640
|
kgContext: KG_FORM_CONTEXT.SUBMIT,
|
10612
|
-
kgRules:
|
10641
|
+
kgRules: i.rules.value[G.var_nam],
|
10613
10642
|
onKgSubmit: Z
|
10614
10643
|
}, null);
|
10615
10644
|
}
|
10616
10645
|
function ye() {
|
10617
10646
|
let G, W;
|
10618
10647
|
return createVNode(KgResizable, {
|
10619
|
-
kgType:
|
10648
|
+
kgType: i.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL ? "right" : "left",
|
10620
10649
|
kgMinWidth: V.value,
|
10621
10650
|
kgMaxWidth: R.value,
|
10622
10651
|
kgWidth: L.value,
|
@@ -10627,8 +10656,8 @@ const getProps$n = () => ({
|
|
10627
10656
|
spinning: v.value
|
10628
10657
|
}, {
|
10629
10658
|
default: () => [createVNode(KgForm, {
|
10630
|
-
ref:
|
10631
|
-
model:
|
10659
|
+
ref: i.formRef,
|
10660
|
+
model: i.model.value,
|
10632
10661
|
layout: ne.value,
|
10633
10662
|
labelCol: ce.value,
|
10634
10663
|
wrapperCol: F.value
|
@@ -10684,7 +10713,7 @@ const getProps$n = () => ({
|
|
10684
10713
|
}, null);
|
10685
10714
|
}
|
10686
10715
|
return onUnmounted(() => {
|
10687
|
-
|
10716
|
+
i.store.dispose(a.formID);
|
10688
10717
|
}), () => createVNode(Drawer, {
|
10689
10718
|
visible: q.value,
|
10690
10719
|
placement: "right",
|
@@ -10857,7 +10886,7 @@ function useKgTable(e) {
|
|
10857
10886
|
return isFunction$2(y) ? (r.addEventListener(t.formID, "retrieve", y), onUnmounted(() => r.removeEventListener(t.formID, "retrieve", y)), () => r.removeEventListener(t.formID, "retrieve", y)) : () => {
|
10858
10887
|
};
|
10859
10888
|
}
|
10860
|
-
const o = computed(() => r.getIsRetrieving(t.formID)),
|
10889
|
+
const o = computed(() => r.getIsRetrieving(t.formID)), s = computed(() => r.getSelectedRows(t.formID)), i = computed(() => r.getSelectedFirstRow(t.formID)), l = computed(() => r.getSelectedRow(t.formID)), u = computed(() => {
|
10861
10890
|
var y;
|
10862
10891
|
return ((y = t.varGridConfig.value) == null ? void 0 : y.mult_flg) === 1;
|
10863
10892
|
}), c = computed(() => {
|
@@ -10886,8 +10915,8 @@ function useKgTable(e) {
|
|
10886
10915
|
formID: t.formID,
|
10887
10916
|
store: r,
|
10888
10917
|
isRetrieving: o,
|
10889
|
-
selectedRows:
|
10890
|
-
selectedFirstRow:
|
10918
|
+
selectedRows: s,
|
10919
|
+
selectedFirstRow: i,
|
10891
10920
|
selectedRow: l,
|
10892
10921
|
isMultiSelect: u,
|
10893
10922
|
isReadAutomatically: c,
|
@@ -10914,7 +10943,7 @@ const KG_TABLE_TD_DEFAULT_WIDTH = 120, KG_TABLE_TD_MIN_WIDTH = 80, KG_TABLE_TD_M
|
|
10914
10943
|
slots: t,
|
10915
10944
|
emit: r
|
10916
10945
|
}) {
|
10917
|
-
const n = useKg(), a = useKgVar(), o = useKgButton(),
|
10946
|
+
const n = useKg(), a = useKgVar(), o = useKgButton(), s = useKgSubmit(), i = useKgTable();
|
10918
10947
|
o.onSubmitSave(async () => {
|
10919
10948
|
var T;
|
10920
10949
|
try {
|
@@ -10926,10 +10955,10 @@ const KG_TABLE_TD_DEFAULT_WIDTH = 120, KG_TABLE_TD_MIN_WIDTH = 80, KG_TABLE_TD_M
|
|
10926
10955
|
});
|
10927
10956
|
const l = computed(() => e.kgVarName ? a.store.getVarGridDetail(a.formID, e.kgVarName) : null), u = computed(() => a.store.getVarSubmitField(a.formID, e.kgVarName)), c = computed(() => {
|
10928
10957
|
var T, I, k, w, M, A;
|
10929
|
-
return
|
10958
|
+
return s.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && ((T = e.kgRow) == null ? void 0 : T[i.id.value]) === ((I = i.selectedRow.value) == null ? void 0 : I[i.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);
|
10930
10959
|
}), g = computed(() => {
|
10931
10960
|
var T, I;
|
10932
|
-
return
|
10961
|
+
return s.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && ((T = e.kgRow) == null ? void 0 : T[i.id.value]) === ((I = i.selectedRow.value) == null ? void 0 : I[i.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);
|
10933
10962
|
}), p = computed(() => {
|
10934
10963
|
var I, k;
|
10935
10964
|
let T = "kg-table-td";
|
@@ -10965,7 +10994,7 @@ const KG_TABLE_TD_DEFAULT_WIDTH = 120, KG_TABLE_TD_MIN_WIDTH = 80, KG_TABLE_TD_M
|
|
10965
10994
|
function y() {
|
10966
10995
|
return createVNode(KgForm, {
|
10967
10996
|
ref: m,
|
10968
|
-
model:
|
10997
|
+
model: s.model.value,
|
10969
10998
|
layout: "vertical",
|
10970
10999
|
wrapperCol: {
|
10971
11000
|
span: 24
|
@@ -10975,7 +11004,7 @@ const KG_TABLE_TD_DEFAULT_WIDTH = 120, KG_TABLE_TD_MIN_WIDTH = 80, KG_TABLE_TD_M
|
|
10975
11004
|
default: () => [createVNode(KgForm.Item, {
|
10976
11005
|
kgVarName: e.kgVarName,
|
10977
11006
|
kgContext: KG_FORM_CONTEXT.SUBMIT,
|
10978
|
-
kgRules:
|
11007
|
+
kgRules: s.rules.value[e.kgVarName],
|
10979
11008
|
kgSpan: 24,
|
10980
11009
|
kgDisabled: g.value ? !0 : void 0,
|
10981
11010
|
onKgSubmit: _
|
@@ -11059,10 +11088,10 @@ const getProps$k = () => ({
|
|
11059
11088
|
}
|
11060
11089
|
function o() {
|
11061
11090
|
}
|
11062
|
-
function
|
11091
|
+
function s() {
|
11063
11092
|
}
|
11064
11093
|
return () => {
|
11065
|
-
let
|
11094
|
+
let i, l, u;
|
11066
11095
|
return createVNode("div", {
|
11067
11096
|
class: "kg-table-info"
|
11068
11097
|
}, [createVNode("div", {
|
@@ -11077,11 +11106,11 @@ const getProps$k = () => ({
|
|
11077
11106
|
onClick: a,
|
11078
11107
|
class: "btn-clear-check",
|
11079
11108
|
type: "link"
|
11080
|
-
}, _isSlot$6(
|
11081
|
-
default: () => [
|
11109
|
+
}, _isSlot$6(i = n.t("kg.KgTableInfo.clearCheck")) ? i : {
|
11110
|
+
default: () => [i]
|
11082
11111
|
}), e.kgShowLocate && createVNode(Button, {
|
11083
11112
|
disabled: e.kgDisabled,
|
11084
|
-
onClick:
|
11113
|
+
onClick: s,
|
11085
11114
|
class: "btn-locate-check",
|
11086
11115
|
type: "link"
|
11087
11116
|
}, _isSlot$6(l = n.t("kg.KgTableInfo.locate")) ? l : {
|
@@ -11112,19 +11141,19 @@ const getProps$k = () => ({
|
|
11112
11141
|
emit: r
|
11113
11142
|
}) {
|
11114
11143
|
const n = useKgVar(e.hostFormID), a = useKg(), o = useKgVar(FORM_ID__VAR_GRID_CONFIG, !0, n ? n.store.getFormLevel(n.formID) + 2 : 2);
|
11115
|
-
let
|
11116
|
-
const
|
11117
|
-
return
|
11144
|
+
let s = null;
|
11145
|
+
const i = useKgSubmit(FORM_ID__VAR_GRID_CONFIG);
|
11146
|
+
return i.onOpen(async ({
|
11118
11147
|
model: l
|
11119
11148
|
}) => {
|
11120
11149
|
const u = n == null ? void 0 : n.store.getVarGridConfig(n.formID);
|
11121
|
-
return
|
11150
|
+
return s = watch(l, (c) => {
|
11122
11151
|
var g, p, b, m, v, _, y, C, E, T, I;
|
11123
11152
|
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);
|
11124
11153
|
}, {
|
11125
11154
|
immediate: !0
|
11126
11155
|
}), !1;
|
11127
|
-
}),
|
11156
|
+
}), i.onClose(async () => (s == null || s(), r("kgClose"), !1)), i.onBeforeOk(async ({
|
11128
11157
|
rules: l,
|
11129
11158
|
model: u
|
11130
11159
|
}) => {
|
@@ -11178,7 +11207,7 @@ const getProps$k = () => ({
|
|
11178
11207
|
}];
|
11179
11208
|
}
|
11180
11209
|
return await nextTick(), !1;
|
11181
|
-
}),
|
11210
|
+
}), i.onOk(async () => (n == null || n.store.retrieve(n.formID), !1)), o.store.setIsUpdating(FORM_ID__VAR_GRID_CONFIG, !0, !0), () => createVNode(KgSubmit, null, null);
|
11182
11211
|
}
|
11183
11212
|
}), KgTable_Setting_ConfigModal_VarGridMaster = "", FORM_ID__VAR_GRID_MASTER = "kg-table.VarGridMaster", getProps$i = () => ({
|
11184
11213
|
hostFormID: {
|
@@ -11268,11 +11297,11 @@ const getProps$k = () => ({
|
|
11268
11297
|
function _useServices() {
|
11269
11298
|
const e = useKgVar();
|
11270
11299
|
function t(r, n) {
|
11271
|
-
var o,
|
11300
|
+
var o, s, i, l;
|
11272
11301
|
if (!n)
|
11273
11302
|
return !0;
|
11274
11303
|
let a = n.toLowerCase();
|
11275
|
-
return !!((
|
11304
|
+
return !!((s = (o = e.t(r.var_nam).value) == null ? void 0 : o.toLowerCase()) != null && s.includes(a) || (l = (i = r.var_nam) == null ? void 0 : i.toLowerCase()) != null && l.includes(a));
|
11276
11305
|
}
|
11277
11306
|
return {
|
11278
11307
|
filterVarGridDetailByKey: t
|
@@ -11284,8 +11313,8 @@ function _useObserveMenuItemColumns(e) {
|
|
11284
11313
|
r ? (await nextTick(), setTimeout(() => {
|
11285
11314
|
const n = document.querySelector("div.kg-table-setting-submenu-popup-columns");
|
11286
11315
|
n && (t = new ResizeObserver(() => {
|
11287
|
-
var
|
11288
|
-
const a = (
|
11316
|
+
var s, i, l;
|
11317
|
+
const a = (i = (s = window.visualViewport) == null ? void 0 : s.height) != null ? i : 0, o = n.getBoundingClientRect().bottom;
|
11289
11318
|
if (o > a) {
|
11290
11319
|
const u = (l = n.parentElement) == null ? void 0 : l.parentElement;
|
11291
11320
|
u && (u.style.top = `${a - o}px`);
|
@@ -11307,13 +11336,13 @@ const FORM_ID__VAR_GRID_MASTER__SAVE = "kg-table.VarGridMaster.Save", KgTableSet
|
|
11307
11336
|
useKgVar(FORM_ID__VAR_GRID_MASTER__SAVE, !0, a.store.getFormLevel(a.formID) + 1);
|
11308
11337
|
const o = useKgSubmit(FORM_ID__VAR_GRID_MASTER__SAVE);
|
11309
11338
|
return o.onOpen(async ({
|
11310
|
-
model:
|
11339
|
+
model: s
|
11311
11340
|
}) => {
|
11312
|
-
var
|
11313
|
-
return
|
11341
|
+
var i, l, u, c, g, p, b, m, v, _;
|
11342
|
+
return s.value.grd_var_nam = `${(l = (i = a.currentVarGridMaster.value) == null ? void 0 : i.grd_var_nam) != null ? l : ""}_COPY`, s.value.frm_id = (c = (u = a.currentVarGridMaster.value) == null ? void 0 : u.frm_id) != null ? c : "", s.value.usr_id = (p = (g = a.currentVarGridMaster.value) == null ? void 0 : g.usr_id) != null ? p : "", s.value.grp_nam = (m = (b = a.currentVarGridMaster.value) == null ? void 0 : b.grp_nam) != null ? m : "", s.value.varGridDetails = (_ = (v = a.currentVarGridMaster.value) == null ? void 0 : v.varGridDetails) != null ? _ : [], !1;
|
11314
11343
|
}), o.onBeforeOk(async ({
|
11315
|
-
model:
|
11316
|
-
}) => (
|
11344
|
+
model: s
|
11345
|
+
}) => (s.value, !1)), o.onOk(async () => (a.store.retrieve(a.formID), !1)), () => createVNode(KgSubmit, null, null);
|
11317
11346
|
}
|
11318
11347
|
});
|
11319
11348
|
function _isSlot$5(e) {
|
@@ -11328,12 +11357,12 @@ const KgTableSetting = defineComponent({
|
|
11328
11357
|
const n = useKg(), a = useKgVar();
|
11329
11358
|
useKgSubmit(FORM_ID__VAR_GRID_MASTER__SAVE).onClose(async () => (p.value = !1, !1));
|
11330
11359
|
const {
|
11331
|
-
filterVarGridDetailByKey:
|
11332
|
-
} = _useServices(),
|
11360
|
+
filterVarGridDetailByKey: s
|
11361
|
+
} = _useServices(), i = ref(""), l = ref([]), u = computed(() => l.value.includes("1")), c = reactive({
|
11333
11362
|
visible: !1
|
11334
11363
|
}), g = computed(() => !!a.isCreating.value || !!a.isCreating.value || !!a.isCreating.value || !!a.isCreating.value), p = ref(!1);
|
11335
11364
|
_useObserveMenuItemColumns(u), watch(u, (E) => {
|
11336
|
-
E || (
|
11365
|
+
E || (i.value = "");
|
11337
11366
|
}, {
|
11338
11367
|
immediate: !0
|
11339
11368
|
});
|
@@ -11374,8 +11403,8 @@ const KgTableSetting = defineComponent({
|
|
11374
11403
|
return createVNode("div", {
|
11375
11404
|
class: "columns"
|
11376
11405
|
}, [createVNode(Input, {
|
11377
|
-
value:
|
11378
|
-
"onUpdate:value": (T) =>
|
11406
|
+
value: i.value,
|
11407
|
+
"onUpdate:value": (T) => i.value = T,
|
11379
11408
|
allowClear: !0
|
11380
11409
|
}, null), createVNode("ul", {
|
11381
11410
|
class: "ant-dropdown-menu ant-dropdown-menu-vertical"
|
@@ -11385,7 +11414,7 @@ const KgTableSetting = defineComponent({
|
|
11385
11414
|
I.preventDefault(), I.stopPropagation(), b(T);
|
11386
11415
|
},
|
11387
11416
|
style: {
|
11388
|
-
display:
|
11417
|
+
display: s(T, i.value) ? "flex" : "none"
|
11389
11418
|
},
|
11390
11419
|
"kg-var-nam": T.var_nam
|
11391
11420
|
}, [createVNode(Checkbox, {
|
@@ -11471,11 +11500,11 @@ const KgTableSetting = defineComponent({
|
|
11471
11500
|
});
|
11472
11501
|
function _useColumns() {
|
11473
11502
|
const e = useKgVar(), t = useKgSubmit(), r = useKgTable(), n = computed(() => {
|
11474
|
-
var
|
11475
|
-
return ((
|
11503
|
+
var s;
|
11504
|
+
return ((s = e.store.getVarGridConfig(e.formID)) == null ? void 0 : s.show_check_column_flg) === 1;
|
11476
11505
|
}), a = computed(() => {
|
11477
11506
|
var c, g, p;
|
11478
|
-
const
|
11507
|
+
const s = (c = r.store.getTableWidth(e.formID)) != null ? c : 0, i = (g = e.store.getCurrentVisibleVarGridDetailsTotalWidth(e.formID)) != null ? g : 0, l = e.store.getCurrentVisibleVarGridDetails(e.formID), u = [{
|
11479
11508
|
dataIndex: "index",
|
11480
11509
|
width: KG_TABLE_TD_INDEX_WIDTH,
|
11481
11510
|
fixed: "left",
|
@@ -11534,14 +11563,14 @@ function _useColumns() {
|
|
11534
11563
|
}
|
11535
11564
|
};
|
11536
11565
|
})) != null ? p : []];
|
11537
|
-
return (
|
11566
|
+
return (i === 0 || s > i && !(l != null && l.find((b) => b.width === "auto"))) && u.push({
|
11538
11567
|
width: "auto",
|
11539
11568
|
customRender: () => null
|
11540
11569
|
}), u;
|
11541
11570
|
}), o = computed(() => {
|
11542
|
-
var
|
11543
|
-
let
|
11544
|
-
return n.value && (
|
11571
|
+
var i;
|
11572
|
+
let s = 0;
|
11573
|
+
return n.value && (s += KG_TABLE_TD_CHECK_WIDTH), s += KG_TABLE_TD_INDEX_WIDTH, s += (i = e.store.getCurrentVisibleVarGridDetailsTotalWidth(e.formID)) != null ? i : 0, `${s}px`;
|
11545
11574
|
});
|
11546
11575
|
return {
|
11547
11576
|
columns: a,
|
@@ -11560,10 +11589,10 @@ function _useResizeObserver(e) {
|
|
11560
11589
|
return onMounted(() => {
|
11561
11590
|
var o;
|
11562
11591
|
const a = (o = e.value) == null ? void 0 : o.querySelector("div.ant-table-header");
|
11563
|
-
a && (n = new ResizeObserver((
|
11592
|
+
a && (n = new ResizeObserver((s) => {
|
11564
11593
|
var u, c, g, p;
|
11565
|
-
const
|
11566
|
-
r.store.setTableWidth(t.formID, Math.max(0,
|
11594
|
+
const i = (c = (u = s[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;
|
11595
|
+
r.store.setTableWidth(t.formID, Math.max(0, i - l));
|
11567
11596
|
}), n.observe(a));
|
11568
11597
|
}), onUnmounted(() => {
|
11569
11598
|
n == null || n.disconnect();
|
@@ -11575,10 +11604,10 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
11575
11604
|
slots: t,
|
11576
11605
|
emit: r
|
11577
11606
|
}) {
|
11578
|
-
const n = inject("$dayjs", dayjs), a = inject(DI_KG_SLOTS, null), o = useKg(),
|
11579
|
-
|
11607
|
+
const n = inject("$dayjs", dayjs), a = inject(DI_KG_SLOTS, null), o = useKg(), s = useKgVar(), i = useKgSearch(), l = useKgButton(), u = useKgTable(), c = useKgSubmit();
|
11608
|
+
i.onSearch((F) => {
|
11580
11609
|
R(F);
|
11581
|
-
}),
|
11610
|
+
}), i.onReset(() => {
|
11582
11611
|
R(!0);
|
11583
11612
|
}), u.store.$onAction(async ({
|
11584
11613
|
name: F,
|
@@ -11586,7 +11615,7 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
11586
11615
|
}) => {
|
11587
11616
|
switch (F) {
|
11588
11617
|
case "setSelecte":
|
11589
|
-
if (K[0] ===
|
11618
|
+
if (K[0] === s.formID) {
|
11590
11619
|
const U = K[1], z = K[2];
|
11591
11620
|
switch (!0) {
|
11592
11621
|
case (z && !A.value.includes(U[u.id.value])):
|
@@ -11609,25 +11638,25 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
11609
11638
|
_useResizeObserver(_);
|
11610
11639
|
const y = computed(() => {
|
11611
11640
|
var F, K;
|
11612
|
-
return (K = (F =
|
11641
|
+
return (K = (F = s.varButtonSearch.value) == null ? void 0 : F.cmd) != null ? K : null;
|
11613
11642
|
}), C = computed(() => {
|
11614
11643
|
var K, U, z, Z, X, de, pe;
|
11615
11644
|
let F = {
|
11616
11645
|
pageNo: O.pageIndex,
|
11617
11646
|
pageSize: O.pageSize,
|
11618
11647
|
...B,
|
11619
|
-
...(U = (K =
|
11648
|
+
...(U = (K = i.model) == null ? void 0 : K.value) != null ? U : {}
|
11620
11649
|
};
|
11621
|
-
return
|
11650
|
+
return s.varButtonSearch.value && (F = {
|
11622
11651
|
...F,
|
11623
|
-
...KgVarUtil.parseCommandParameter((Z = (z =
|
11624
|
-
}), (X =
|
11652
|
+
...KgVarUtil.parseCommandParameter((Z = (z = s.varButtonSearch.value) == null ? void 0 : z.cmd_prm) != null ? Z : "")
|
11653
|
+
}), (X = s.varGridConfig.value) != null && X.cmd_prm && (F = {
|
11625
11654
|
...F,
|
11626
|
-
...KgVarUtil.parseCommandParameter((de =
|
11627
|
-
}), ((pe =
|
11628
|
-
}), E = computed(() => v.value || !!
|
11655
|
+
...KgVarUtil.parseCommandParameter((de = s.varGridConfig.value.cmd_prm) != null ? de : "")
|
11656
|
+
}), ((pe = s.varGridConfig.value) == null ? void 0 : pe.convert_sort_field_to_under_score_flg) === 1 && F.column && (F.column = snakeCase$1(F.column)), F;
|
11657
|
+
}), E = computed(() => v.value || !!s.isCreating.value || !!s.isUpdating.value || !!s.isCopying.value || !!s.isDeleting.value || O.total === 0), T = computed(() => v.value || !!s.isCreating.value || !!s.isUpdating.value || !!s.isCopying.value || !!s.isDeleting.value), I = computed(() => {
|
11629
11658
|
var F;
|
11630
|
-
if (((F =
|
11659
|
+
if (((F = s.varGridConfig.value) == null ? void 0 : F.show_check_column_flg) === 1)
|
11631
11660
|
return {
|
11632
11661
|
fixed: "left",
|
11633
11662
|
columnWidth: KG_TABLE_TD_CHECK_WIDTH,
|
@@ -11635,7 +11664,7 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
11635
11664
|
selectedRowKeys: A,
|
11636
11665
|
preserveSelectedRowKeys: !1,
|
11637
11666
|
getCheckboxProps: (K) => ({
|
11638
|
-
disabled: !!
|
11667
|
+
disabled: !!s.isCreating.value || !!s.isUpdating.value || !!s.isCopying.value || !!s.isDeleting.value
|
11639
11668
|
}),
|
11640
11669
|
onSelect: (K) => H(K),
|
11641
11670
|
onChange: (K) => u.isMultiSelect.value && L(K)
|
@@ -11643,11 +11672,11 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
11643
11672
|
}), k = computed(() => {
|
11644
11673
|
var K;
|
11645
11674
|
let F = "kg-table";
|
11646
|
-
return ((K =
|
11675
|
+
return ((K = s.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 && (s.isCreating.value || s.isUpdating.value || s.isCopying.value || s.isDeleting.value) && (F += " kg-table--submitting"), F;
|
11647
11676
|
}), w = computed(() => {
|
11648
11677
|
var K;
|
11649
11678
|
let F = "kg-table-bottom";
|
11650
|
-
return ((K =
|
11679
|
+
return ((K = s.varGridConfig.value) == null ? void 0 : K.show_bottom_border_flg) === 1 && (F += " kg-table-bottom--border"), F;
|
11651
11680
|
}), M = ref([]), A = ref([]), O = reactive({
|
11652
11681
|
pageIndex: 1,
|
11653
11682
|
pageSize: 10,
|
@@ -11660,42 +11689,42 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
11660
11689
|
});
|
11661
11690
|
watch(u.pageSizeOptions, (F) => {
|
11662
11691
|
F.length > 0 && !F.includes(O.pageSize) && (O.pageSize = u.pageSizeOption.value);
|
11663
|
-
}), watch([y, u.isReadAutomatically,
|
11664
|
-
F && K && U && !u.store.getIsRetrieved(
|
11692
|
+
}), watch([y, u.isReadAutomatically, i.isReady], ([F, K, U]) => {
|
11693
|
+
F && K && U && !u.store.getIsRetrieved(s.formID) && R(!0);
|
11665
11694
|
}, {
|
11666
11695
|
immediate: !0
|
11667
|
-
}), watch(
|
11696
|
+
}), watch(s.isCreating, (F, K) => {
|
11668
11697
|
F === !0 ? P() : F === !1 && K === !0 && D();
|
11669
11698
|
}), onUnmounted(() => {
|
11670
|
-
u.store.dispose(
|
11699
|
+
u.store.dispose(s.formID);
|
11671
11700
|
});
|
11672
11701
|
function P() {
|
11673
11702
|
if (c.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE) {
|
11674
11703
|
const F = {
|
11675
11704
|
[u.id.value]: ID_CREATE
|
11676
11705
|
};
|
11677
|
-
M.value = [F, ...M.value], A.value = [ID_CREATE], u.store.setSelectedRows(
|
11706
|
+
M.value = [F, ...M.value], A.value = [ID_CREATE], u.store.setSelectedRows(s.formID, [F]);
|
11678
11707
|
}
|
11679
11708
|
}
|
11680
11709
|
function D() {
|
11681
11710
|
const F = M.value.find((K) => K[u.id.value] === ID_CREATE);
|
11682
|
-
F && (M.value = without$1(M.value, F), A.value = [], u.store.setSelectedRows(
|
11711
|
+
F && (M.value = without$1(M.value, F), A.value = [], u.store.setSelectedRows(s.formID, []));
|
11683
11712
|
}
|
11684
11713
|
function V(F, K) {
|
11685
|
-
if (!(!!
|
11714
|
+
if (!(!!s.isCreating.value || !!s.isCreating.value || !!s.isCreating.value || !!s.isCreating.value) && !!I.value) {
|
11686
11715
|
if (!K) {
|
11687
|
-
A.value = [], u.store.setSelectedRows(
|
11716
|
+
A.value = [], u.store.setSelectedRows(s.formID, []);
|
11688
11717
|
return;
|
11689
11718
|
}
|
11690
11719
|
switch (F == null ? void 0 : F.detail) {
|
11691
11720
|
case 1:
|
11692
|
-
A.value = [K[u.id.value]], u.store.setSelectedRows(
|
11721
|
+
A.value = [K[u.id.value]], u.store.setSelectedRows(s.formID, A.value.map((U) => {
|
11693
11722
|
var z;
|
11694
11723
|
return (z = M.value) == null ? void 0 : z.find((Z) => Z[u.id.value] === U);
|
11695
11724
|
}).filter((U) => !!U));
|
11696
11725
|
break;
|
11697
11726
|
case 2:
|
11698
|
-
u.store.emit(
|
11727
|
+
u.store.emit(s.formID, "rowDoubleClick", K);
|
11699
11728
|
break;
|
11700
11729
|
}
|
11701
11730
|
}
|
@@ -11710,11 +11739,11 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
11710
11739
|
var z, Z;
|
11711
11740
|
if (!y.value) {
|
11712
11741
|
Logger.error("[KgTable] '\u67E5\u8BE2\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
|
11713
|
-
VarButton:
|
11742
|
+
VarButton: s.varButtonSearch.value
|
11714
11743
|
});
|
11715
11744
|
return;
|
11716
11745
|
}
|
11717
|
-
F && (O.pageIndex = 1), u.store.setIsRetrieving(
|
11746
|
+
F && (O.pageIndex = 1), u.store.setIsRetrieving(s.formID, !0);
|
11718
11747
|
try {
|
11719
11748
|
const X = await httpClient().request({
|
11720
11749
|
method: "GET",
|
@@ -11734,19 +11763,19 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
11734
11763
|
M.value = (z = X.records) != null ? z : [], O.total = (Z = X.total) != null ? Z : 0;
|
11735
11764
|
break;
|
11736
11765
|
}
|
11737
|
-
u.store.emit(
|
11766
|
+
u.store.emit(s.formID, "retrieve", {
|
11738
11767
|
page: X,
|
11739
11768
|
datas: M
|
11740
|
-
}), V(), p.value = [], await nextTick(), u.store.setIsRetrieved(
|
11769
|
+
}), V(), p.value = [], await nextTick(), u.store.setIsRetrieved(s.formID, !0);
|
11741
11770
|
} catch (X) {
|
11742
11771
|
throw X;
|
11743
11772
|
} finally {
|
11744
|
-
u.store.setIsRetrieving(
|
11773
|
+
u.store.setIsRetrieving(s.formID, !1);
|
11745
11774
|
}
|
11746
11775
|
}
|
11747
11776
|
}
|
11748
11777
|
function L(F) {
|
11749
|
-
A.value = F, u.store.setSelectedRows(
|
11778
|
+
A.value = F, u.store.setSelectedRows(s.formID, A.value.map((K) => {
|
11750
11779
|
var U;
|
11751
11780
|
return (U = M.value) == null ? void 0 : U.find((z) => z[u.id.value] === K);
|
11752
11781
|
}).filter((K) => !!K));
|
@@ -11767,13 +11796,13 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
11767
11796
|
}
|
11768
11797
|
break;
|
11769
11798
|
}
|
11770
|
-
u.store.setSelectedRows(
|
11799
|
+
u.store.setSelectedRows(s.formID, A.value.map((z) => {
|
11771
11800
|
var Z;
|
11772
11801
|
return (Z = M.value) == null ? void 0 : Z.find((X) => X[u.id.value] === z);
|
11773
11802
|
}).filter((z) => !!z));
|
11774
11803
|
}
|
11775
11804
|
function N(F, K) {
|
11776
|
-
K.width = F,
|
11805
|
+
K.width = F, s.store.setVarGridDetailWidth(s.formID, K.dataIndex, F);
|
11777
11806
|
}
|
11778
11807
|
async function x(F, K, U, z) {
|
11779
11808
|
var Z;
|
@@ -11790,7 +11819,7 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
11790
11819
|
function q(F, K) {
|
11791
11820
|
var z;
|
11792
11821
|
const U = K[u.id.value];
|
11793
|
-
switch ((z =
|
11822
|
+
switch ((z = s.varGridConfig.value) == null ? void 0 : z.expand_accordion_flg) {
|
11794
11823
|
case 0:
|
11795
11824
|
F ? p.value = uniq([...p.value, U]) : p.value = without$1(p.value, U);
|
11796
11825
|
break;
|
@@ -11803,10 +11832,10 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
11803
11832
|
K !== O.pageSize ? (O.pageIndex = 1, O.pageSize = K) : O.pageIndex = F, R();
|
11804
11833
|
}
|
11805
11834
|
function Q(F) {
|
11806
|
-
A.value = [F[u.id.value]], u.store.setSelectedRows(
|
11835
|
+
A.value = [F[u.id.value]], u.store.setSelectedRows(s.formID, A.value.map((K) => {
|
11807
11836
|
var U;
|
11808
11837
|
return (U = M.value) == null ? void 0 : U.find((z) => z[u.id.value] === K);
|
11809
|
-
}).filter((K) => !!K)), l.click(
|
11838
|
+
}).filter((K) => !!K)), l.click(s.formID, KG_BUTTON_TYPE.UPDATE);
|
11810
11839
|
}
|
11811
11840
|
function ne({
|
11812
11841
|
title: F,
|
@@ -11850,13 +11879,13 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
11850
11879
|
}) : de;
|
11851
11880
|
}
|
11852
11881
|
function ce() {
|
11853
|
-
return !u.isReadAutomatically.value && !u.store.getIsRetrieved(
|
11882
|
+
return !u.isReadAutomatically.value && !u.store.getIsRetrieved(s.formID) ? o.t("kg.KgTable.emptyText") : o.t("kg.emptyText");
|
11854
11883
|
}
|
11855
11884
|
return () => {
|
11856
11885
|
var F;
|
11857
11886
|
return createVNode("div", {
|
11858
11887
|
class: k.value,
|
11859
|
-
"kg-frm-id":
|
11888
|
+
"kg-frm-id": s.formID,
|
11860
11889
|
ref: _
|
11861
11890
|
}, [createVNode(Table, {
|
11862
11891
|
class: "kg-flex-table",
|
@@ -11941,10 +11970,10 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
11941
11970
|
var u, c, g, p, b, m, v, _;
|
11942
11971
|
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;
|
11943
11972
|
});
|
11944
|
-
async function
|
11973
|
+
async function s() {
|
11945
11974
|
e.onKgClick && await e.onKgClick() || r.store.setIsCopying(r.formID, !0);
|
11946
11975
|
}
|
11947
|
-
function
|
11976
|
+
function i() {
|
11948
11977
|
return e.kgIcon ? createVNode("span", {
|
11949
11978
|
class: "anticon"
|
11950
11979
|
}, [createVNode(Icon, {
|
@@ -11958,9 +11987,9 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
11958
11987
|
type: "primary",
|
11959
11988
|
disabled: o.value,
|
11960
11989
|
ghost: !e.kgPrimary && !o.value,
|
11961
|
-
onClick:
|
11990
|
+
onClick: s
|
11962
11991
|
}, {
|
11963
|
-
default: () => [
|
11992
|
+
default: () => [i(), l()]
|
11964
11993
|
});
|
11965
11994
|
}
|
11966
11995
|
});
|
@@ -12100,11 +12129,11 @@ function useKgButton(e) {
|
|
12100
12129
|
return isFunction$2(l) ? (r.addEventListener(t.formID, "deleteOk", l), onUnmounted(() => r.removeEventListener(t.formID, "deleteOk", l)), () => r.removeEventListener(t.formID, "deleteOk", l)) : () => {
|
12101
12130
|
};
|
12102
12131
|
}
|
12103
|
-
function
|
12132
|
+
function s(l) {
|
12104
12133
|
return isFunction$2(l) ? (r.addEventListener(t.formID, "submitSave", l), onUnmounted(() => r.removeEventListener(t.formID, "submitSave", l)), () => r.removeEventListener(t.formID, "submitSave", l)) : () => {
|
12105
12134
|
};
|
12106
12135
|
}
|
12107
|
-
function
|
12136
|
+
function i(l) {
|
12108
12137
|
return isFunction$2(l) ? (r.addEventListener(t.formID, "submitCancel", l), onUnmounted(() => r.removeEventListener(t.formID, "submitCancel", l)), () => r.removeEventListener(t.formID, "submitCancel", l)) : () => {
|
12109
12138
|
};
|
12110
12139
|
}
|
@@ -12115,8 +12144,8 @@ function useKgButton(e) {
|
|
12115
12144
|
onClick: n,
|
12116
12145
|
onUpdateBeforeClick: a,
|
12117
12146
|
onDeleteOk: o,
|
12118
|
-
onSubmitSave:
|
12119
|
-
onSubmitCancel:
|
12147
|
+
onSubmitSave: s,
|
12148
|
+
onSubmitCancel: i
|
12120
12149
|
};
|
12121
12150
|
}
|
12122
12151
|
const KgButtonCreate = defineComponent({
|
@@ -12126,9 +12155,9 @@ const KgButtonCreate = defineComponent({
|
|
12126
12155
|
slots: t,
|
12127
12156
|
emit: r
|
12128
12157
|
}) {
|
12129
|
-
const n = useKg(), a = useKgVar(), o = useKgButton(),
|
12158
|
+
const n = useKg(), a = useKgVar(), o = useKgButton(), s = useKgTable(), i = useKgSubmit(), l = computed(() => a.store.getVarButton(a.formID, e.kgVarName)), u = computed(() => {
|
12130
12159
|
var C, E, T, I, k, w, M, A;
|
12131
|
-
return a.isUpdating.value || a.isCopying.value || a.isDeleting.value ||
|
12160
|
+
return a.isUpdating.value || a.isCopying.value || a.isDeleting.value || s.isRetrieving.value || ((C = l.value) == null ? void 0 : C.dis_no_select_flg) === 1 && ((T = (E = s.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 = s.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;
|
12132
12161
|
}), c = computed(() => !!a.isCreatingRequesting.value);
|
12133
12162
|
async function g() {
|
12134
12163
|
e.onKgClick && await e.onKgClick() || a.store.setIsCreating(a.formID, !0);
|
@@ -12150,7 +12179,7 @@ const KgButtonCreate = defineComponent({
|
|
12150
12179
|
return e.kgText ? e.kgText : n.t("kg.create");
|
12151
12180
|
}
|
12152
12181
|
function _() {
|
12153
|
-
return
|
12182
|
+
return i.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && a.isCreating.value ? null : createVNode(Button, {
|
12154
12183
|
type: "primary",
|
12155
12184
|
disabled: u.value,
|
12156
12185
|
onClick: g
|
@@ -12159,7 +12188,7 @@ const KgButtonCreate = defineComponent({
|
|
12159
12188
|
});
|
12160
12189
|
}
|
12161
12190
|
function y() {
|
12162
|
-
return
|
12191
|
+
return i.displayType.value !== KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE || !a.isCreating.value ? null : createVNode(Fragment, null, [createVNode(Button, {
|
12163
12192
|
type: "primary",
|
12164
12193
|
onClick: p,
|
12165
12194
|
disabled: !!a.isCreatingRequesting.value
|
@@ -12184,10 +12213,10 @@ const KgButtonCreate = defineComponent({
|
|
12184
12213
|
var u, c, g, p, b, m, v, _;
|
12185
12214
|
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;
|
12186
12215
|
});
|
12187
|
-
async function
|
12216
|
+
async function s() {
|
12188
12217
|
e.onKgClick && await e.onKgClick() || r.store.setIsDeleting(r.formID, !0);
|
12189
12218
|
}
|
12190
|
-
function
|
12219
|
+
function i() {
|
12191
12220
|
return e.kgIcon ? createVNode("span", {
|
12192
12221
|
class: "anticon"
|
12193
12222
|
}, [createVNode(Icon, {
|
@@ -12202,19 +12231,19 @@ const KgButtonCreate = defineComponent({
|
|
12202
12231
|
disabled: o.value,
|
12203
12232
|
danger: e.kgColor === KG_BUTTON_COLOR.DANGER || !e.kgColor,
|
12204
12233
|
ghost: !e.kgPrimary && !o.value,
|
12205
|
-
onClick:
|
12234
|
+
onClick: s
|
12206
12235
|
}, {
|
12207
|
-
default: () => [
|
12236
|
+
default: () => [i(), l()]
|
12208
12237
|
});
|
12209
12238
|
}
|
12210
12239
|
}), KgButtonExport = defineComponent({
|
12211
12240
|
name: "KgButtonExport",
|
12212
12241
|
props: getProps$f(),
|
12213
12242
|
setup(e) {
|
12214
|
-
const t = useKg(), r = useKgVar(), n = useKgSearch(), a = useKgTable(), o = computed(() => r.store.getVarButton(r.formID, e.kgVarName)),
|
12243
|
+
const t = useKg(), r = useKgVar(), n = useKgSearch(), a = useKgTable(), o = computed(() => r.store.getVarButton(r.formID, e.kgVarName)), s = computed(() => {
|
12215
12244
|
var m, v;
|
12216
12245
|
return o.value ? (v = (m = o.value) == null ? void 0 : m.cmd) != null ? v : "" : null;
|
12217
|
-
}),
|
12246
|
+
}), i = computed(() => {
|
12218
12247
|
var m, v;
|
12219
12248
|
return (v = (m = o.value) == null ? void 0 : m.cmd_method) != null ? v : "GET";
|
12220
12249
|
}), l = computed(() => {
|
@@ -12236,7 +12265,7 @@ const KgButtonCreate = defineComponent({
|
|
12236
12265
|
async function g() {
|
12237
12266
|
var m, v, _;
|
12238
12267
|
if (!(e.onKgClick && await e.onKgClick())) {
|
12239
|
-
if (!
|
12268
|
+
if (!s.value) {
|
12240
12269
|
Logger.error("[KgButton] '\u5BFC\u51FA\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
|
12241
12270
|
VarButton: o.value
|
12242
12271
|
});
|
@@ -12245,8 +12274,8 @@ const KgButtonCreate = defineComponent({
|
|
12245
12274
|
c.value = !0;
|
12246
12275
|
try {
|
12247
12276
|
const y = await httpClient().request({
|
12248
|
-
method:
|
12249
|
-
url:
|
12277
|
+
method: i.value,
|
12278
|
+
url: s.value,
|
12250
12279
|
params: l.value,
|
12251
12280
|
responseType: "blob"
|
12252
12281
|
}, {
|
@@ -12288,32 +12317,32 @@ const KgButtonCreate = defineComponent({
|
|
12288
12317
|
slots: t,
|
12289
12318
|
attrs: r
|
12290
12319
|
}) {
|
12291
|
-
const n = useKg(), a = useKgVar(), o = useKgSearch(),
|
12320
|
+
const n = useKg(), a = useKgVar(), o = useKgSearch(), s = useKgTable(), i = computed(() => a.store.getVarButton(a.formID, e.kgVarName)), l = computed(() => {
|
12292
12321
|
var v, _;
|
12293
|
-
return
|
12322
|
+
return i.value ? (_ = (v = i.value) == null ? void 0 : v.cmd) != null ? _ : "" : null;
|
12294
12323
|
}), u = computed(() => {
|
12295
12324
|
var v, _;
|
12296
|
-
return (_ = (v =
|
12325
|
+
return (_ = (v = i.value) == null ? void 0 : v.cmd_method) != null ? _ : "POST";
|
12297
12326
|
});
|
12298
12327
|
computed(() => {
|
12299
12328
|
var _, y, C;
|
12300
12329
|
let v = {
|
12301
12330
|
...(_ = o.model.value) != null ? _ : {}
|
12302
12331
|
};
|
12303
|
-
return
|
12332
|
+
return i.value && (v = {
|
12304
12333
|
...v,
|
12305
|
-
...KgVarUtil.parseCommandParameter((C = (y =
|
12334
|
+
...KgVarUtil.parseCommandParameter((C = (y = i.value) == null ? void 0 : y.cmd_prm) != null ? C : "")
|
12306
12335
|
}), v;
|
12307
12336
|
});
|
12308
12337
|
const c = computed(() => {
|
12309
12338
|
var v, _, y, C, E, T, I, k;
|
12310
|
-
return a.isCreating.value || a.isUpdating.value || a.isCopying.value || a.isDeleting.value ||
|
12339
|
+
return a.isCreating.value || a.isUpdating.value || a.isCopying.value || a.isDeleting.value || s.isRetrieving.value || ((v = i.value) == null ? void 0 : v.dis_no_select_flg) === 1 && ((y = (_ = s.selectedRows.value) == null ? void 0 : _.length) != null ? y : 0) === 0 || ((C = i.value) == null ? void 0 : C.dis_mult_select_flg) === 1 && ((T = (E = s.selectedRows.value) == null ? void 0 : E.length) != null ? T : 0) > 1 || ((I = i.value) == null ? void 0 : I.permission_type) === 2 && !n.p((k = i.value) == null ? void 0 : k.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
|
12311
12340
|
}), g = ref(!1);
|
12312
12341
|
async function p(v) {
|
12313
12342
|
var _, y;
|
12314
12343
|
if (!l.value)
|
12315
12344
|
return Logger.error("[KgButton] '\u5BFC\u5165\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
|
12316
|
-
VarButton:
|
12345
|
+
VarButton: i.value
|
12317
12346
|
}), !1;
|
12318
12347
|
g.value = !0;
|
12319
12348
|
try {
|
@@ -12369,10 +12398,10 @@ const KgButtonCreate = defineComponent({
|
|
12369
12398
|
const t = useKg(), r = useKgVar(), n = useKgTable(), a = computed(() => r.store.getVarButton(r.formID, e.kgVarName)), o = computed(() => {
|
12370
12399
|
var p, b;
|
12371
12400
|
return a.value ? (b = (p = a.value) == null ? void 0 : p.cmd) != null ? b : "" : null;
|
12372
|
-
}),
|
12401
|
+
}), s = computed(() => {
|
12373
12402
|
var p, b;
|
12374
12403
|
return (b = (p = a.value) == null ? void 0 : p.cmd_method) != null ? b : "GET";
|
12375
|
-
}),
|
12404
|
+
}), i = computed(() => {
|
12376
12405
|
var p, b, m, v, _, y, C, E;
|
12377
12406
|
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;
|
12378
12407
|
}), l = ref(!1);
|
@@ -12387,7 +12416,7 @@ const KgButtonCreate = defineComponent({
|
|
12387
12416
|
l.value = !0;
|
12388
12417
|
try {
|
12389
12418
|
const b = await httpClient().request({
|
12390
|
-
method:
|
12419
|
+
method: s.value,
|
12391
12420
|
url: o.value,
|
12392
12421
|
params: {
|
12393
12422
|
selections: "NULL"
|
@@ -12416,8 +12445,8 @@ const KgButtonCreate = defineComponent({
|
|
12416
12445
|
}
|
12417
12446
|
return () => createVNode(Button, {
|
12418
12447
|
type: "primary",
|
12419
|
-
disabled:
|
12420
|
-
ghost: !e.kgPrimary && !
|
12448
|
+
disabled: i.value,
|
12449
|
+
ghost: !e.kgPrimary && !i.value,
|
12421
12450
|
loading: l.value,
|
12422
12451
|
onClick: u
|
12423
12452
|
}, {
|
@@ -12428,11 +12457,11 @@ const KgButtonCreate = defineComponent({
|
|
12428
12457
|
name: "KgButtonOther",
|
12429
12458
|
props: getProps$f(),
|
12430
12459
|
setup(e) {
|
12431
|
-
const t = useKg(), r = useKgVar(), n = useKgSearch(), a = useKgTable(), o = computed(() => r.store.getVarButton(r.formID, e.kgVarName)),
|
12460
|
+
const t = useKg(), r = useKgVar(), n = useKgSearch(), a = useKgTable(), o = computed(() => r.store.getVarButton(r.formID, e.kgVarName)), s = computed(() => {
|
12432
12461
|
var c, g, p, b, m, v, _, y;
|
12433
12462
|
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;
|
12434
12463
|
});
|
12435
|
-
async function
|
12464
|
+
async function i() {
|
12436
12465
|
var b, m, v;
|
12437
12466
|
if (e.onKgClick && await e.onKgClick())
|
12438
12467
|
return;
|
@@ -12482,10 +12511,10 @@ const KgButtonCreate = defineComponent({
|
|
12482
12511
|
}
|
12483
12512
|
return () => createVNode(Button, {
|
12484
12513
|
type: "primary",
|
12485
|
-
disabled:
|
12514
|
+
disabled: s.value,
|
12486
12515
|
danger: e.kgColor === KG_BUTTON_COLOR.DANGER,
|
12487
|
-
ghost: !e.kgPrimary && !
|
12488
|
-
onClick:
|
12516
|
+
ghost: !e.kgPrimary && !s.value,
|
12517
|
+
onClick: i
|
12489
12518
|
}, {
|
12490
12519
|
default: () => [l(), u()]
|
12491
12520
|
});
|
@@ -12507,7 +12536,7 @@ const KgButtonCreate = defineComponent({
|
|
12507
12536
|
icon: e.kgIcon
|
12508
12537
|
}, null)]) : createVNode(SearchOutlined$1, null, null);
|
12509
12538
|
}
|
12510
|
-
function
|
12539
|
+
function s() {
|
12511
12540
|
return e.kgText ? e.kgText : t.t("kg.query");
|
12512
12541
|
}
|
12513
12542
|
return () => createVNode(Button, {
|
@@ -12517,7 +12546,7 @@ const KgButtonCreate = defineComponent({
|
|
12517
12546
|
ghost: !e.kgPrimary && !n.value,
|
12518
12547
|
onClick: a
|
12519
12548
|
}, {
|
12520
|
-
default: () => [o(),
|
12549
|
+
default: () => [o(), s()]
|
12521
12550
|
});
|
12522
12551
|
}
|
12523
12552
|
}), KgButtonUpdate = defineComponent({
|
@@ -12527,8 +12556,8 @@ const KgButtonCreate = defineComponent({
|
|
12527
12556
|
slots: t,
|
12528
12557
|
emit: r
|
12529
12558
|
}) {
|
12530
|
-
const n = useKg(), a = useKgVar(), o = useKgTable(),
|
12531
|
-
|
12559
|
+
const n = useKg(), a = useKgVar(), o = useKgTable(), s = useKgButton(), i = useKgSubmit();
|
12560
|
+
s.store.$onAction(async ({
|
12532
12561
|
name: _,
|
12533
12562
|
args: y
|
12534
12563
|
}) => {
|
@@ -12543,7 +12572,7 @@ const KgButtonCreate = defineComponent({
|
|
12543
12572
|
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;
|
12544
12573
|
});
|
12545
12574
|
async function c() {
|
12546
|
-
e.onKgClick && await e.onKgClick() || await
|
12575
|
+
e.onKgClick && await e.onKgClick() || await s.store.emit(a.formID, "updateBeforeClick", {
|
12547
12576
|
button: e.kgButton,
|
12548
12577
|
row: o.selectedRow.value
|
12549
12578
|
}) || a.store.setIsUpdating(a.formID, !0);
|
@@ -12562,7 +12591,7 @@ const KgButtonCreate = defineComponent({
|
|
12562
12591
|
return e.kgText ? e.kgText : n.t("kg.update");
|
12563
12592
|
}
|
12564
12593
|
function m() {
|
12565
|
-
return
|
12594
|
+
return i.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && a.isUpdating.value ? null : createVNode(Button, {
|
12566
12595
|
type: "primary",
|
12567
12596
|
disabled: u.value,
|
12568
12597
|
ghost: !e.kgPrimary && !u.value,
|
@@ -12572,7 +12601,7 @@ const KgButtonCreate = defineComponent({
|
|
12572
12601
|
});
|
12573
12602
|
}
|
12574
12603
|
function v() {
|
12575
|
-
return
|
12604
|
+
return i.displayType.value !== KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE || !a.isUpdating.value ? null : createVNode(Fragment, null, [createVNode(Button, {
|
12576
12605
|
type: "primary"
|
12577
12606
|
}, {
|
12578
12607
|
default: () => [createVNode(CheckOutlined$1, null, null), n.t("kg.save")]
|
@@ -12597,13 +12626,13 @@ const KgButtonItem = defineComponent({
|
|
12597
12626
|
const t = useKg(), r = useKgVar();
|
12598
12627
|
useKgTable();
|
12599
12628
|
const n = computed(() => r.store.getVarButton(r.formID, e.kgVarName)), a = computed(() => {
|
12600
|
-
let
|
12629
|
+
let i = "kg-button-item";
|
12601
12630
|
switch (e.kgColor) {
|
12602
12631
|
case KG_BUTTON_COLOR.WARN:
|
12603
|
-
|
12632
|
+
i += " kg-button-item--warn";
|
12604
12633
|
break;
|
12605
12634
|
}
|
12606
|
-
return
|
12635
|
+
return i;
|
12607
12636
|
}), o = computed(() => {
|
12608
12637
|
var l, u, c, g;
|
12609
12638
|
return {
|
@@ -12615,9 +12644,9 @@ const KgButtonItem = defineComponent({
|
|
12615
12644
|
"kg-cmd": (g = n.value) == null ? void 0 : g.cmd
|
12616
12645
|
};
|
12617
12646
|
});
|
12618
|
-
function
|
12619
|
-
var
|
12620
|
-
if (((
|
12647
|
+
function s() {
|
12648
|
+
var i, l;
|
12649
|
+
if (((i = n.value) == null ? void 0 : i.permission_type) !== 2 && !t.p((l = n.value) == null ? void 0 : l.permission_code))
|
12621
12650
|
return null;
|
12622
12651
|
switch (e.kgType) {
|
12623
12652
|
case KG_BUTTON_TYPE.SEARCH:
|
@@ -12641,11 +12670,11 @@ const KgButtonItem = defineComponent({
|
|
12641
12670
|
}
|
12642
12671
|
}
|
12643
12672
|
return () => {
|
12644
|
-
let
|
12673
|
+
let i;
|
12645
12674
|
return createVNode(ConfigProvider, {
|
12646
12675
|
autoInsertSpaceInButton: !1
|
12647
|
-
}, _isSlot$4(
|
12648
|
-
default: () => [
|
12676
|
+
}, _isSlot$4(i = s()) ? i : {
|
12677
|
+
default: () => [i]
|
12649
12678
|
});
|
12650
12679
|
};
|
12651
12680
|
}
|
@@ -12663,11 +12692,11 @@ const getProps$e = () => ({
|
|
12663
12692
|
function o(b) {
|
12664
12693
|
return n.store.emit(r.formID, "click", b);
|
12665
12694
|
}
|
12666
|
-
function
|
12695
|
+
function s(b) {
|
12667
12696
|
if (e.kgDisabled)
|
12668
12697
|
return e.kgDisabled(b);
|
12669
12698
|
}
|
12670
|
-
function
|
12699
|
+
function i(b) {
|
12671
12700
|
switch (b.primary_flg) {
|
12672
12701
|
case 1:
|
12673
12702
|
return !0;
|
@@ -12700,8 +12729,8 @@ const getProps$e = () => ({
|
|
12700
12729
|
kgIcon: b.icon,
|
12701
12730
|
kgText: l(b),
|
12702
12731
|
kgColor: b.color,
|
12703
|
-
kgPrimary:
|
12704
|
-
kgDisabled:
|
12732
|
+
kgPrimary: i(b),
|
12733
|
+
kgDisabled: s(b),
|
12705
12734
|
onKgClick: () => o(b)
|
12706
12735
|
}, null);
|
12707
12736
|
}
|
@@ -12869,22 +12898,22 @@ const useKgSearchStore = () => (store$2 || (store$2 = defineStore("KgSearch", {
|
|
12869
12898
|
switch (t) {
|
12870
12899
|
case "search":
|
12871
12900
|
{
|
12872
|
-
const
|
12873
|
-
|
12901
|
+
const s = this.onSearchListenersMap.get(o);
|
12902
|
+
s && s.forEach((i) => i(r == null ? void 0 : r.resetPageIndex));
|
12874
12903
|
}
|
12875
12904
|
break;
|
12876
12905
|
case "reset":
|
12877
12906
|
{
|
12878
|
-
const
|
12879
|
-
|
12907
|
+
const s = this.onResetListenersMap.get(o);
|
12908
|
+
s && s.forEach((i) => i());
|
12880
12909
|
}
|
12881
12910
|
break;
|
12882
12911
|
case "ready":
|
12883
12912
|
{
|
12884
|
-
const
|
12885
|
-
|
12886
|
-
l.once && !l.invoked && (l.invoked = !0,
|
12887
|
-
}),
|
12913
|
+
const s = [], i = this.onReadyListenersMap.get(o);
|
12914
|
+
i && i.forEach((l) => {
|
12915
|
+
l.once && !l.invoked && (l.invoked = !0, s.push(l)), l();
|
12916
|
+
}), s.forEach((l) => this.removeEventListener(o, "ready", l));
|
12888
12917
|
}
|
12889
12918
|
break;
|
12890
12919
|
}
|
@@ -12947,15 +12976,15 @@ function useKgSearch(e) {
|
|
12947
12976
|
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)) : () => {
|
12948
12977
|
};
|
12949
12978
|
}
|
12950
|
-
const
|
12979
|
+
const s = computed(() => r.getIsReady(t.formID)), i = computed(() => r.getModel(t.formID)), l = computed(() => r.getSearchFn(t.formID)), u = computed(() => r.getResetFn(t.formID));
|
12951
12980
|
return {
|
12952
12981
|
formID: t.formID,
|
12953
12982
|
store: r,
|
12954
12983
|
onSearch: n,
|
12955
12984
|
onReset: a,
|
12956
12985
|
onReady: o,
|
12957
|
-
isReady:
|
12958
|
-
model:
|
12986
|
+
isReady: s,
|
12987
|
+
model: i,
|
12959
12988
|
search: l,
|
12960
12989
|
reset: u
|
12961
12990
|
};
|
@@ -13146,8 +13175,8 @@ const leftVarProfileDetailColumns = (e) => {
|
|
13146
13175
|
setup(e, {
|
13147
13176
|
emit: t
|
13148
13177
|
}) {
|
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),
|
13150
|
-
|
13178
|
+
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), s = useKgSubmit(FORM_ID__VAR_PROFILE_MASTER), i = useKgVar(e.hostFormID);
|
13179
|
+
s.onOpen(async ({
|
13151
13180
|
isCreating: m,
|
13152
13181
|
isUpdating: v,
|
13153
13182
|
isCopying: _,
|
@@ -13155,7 +13184,7 @@ const leftVarProfileDetailColumns = (e) => {
|
|
13155
13184
|
model: C
|
13156
13185
|
}) => {
|
13157
13186
|
var T, I, k;
|
13158
|
-
const E =
|
13187
|
+
const E = i.store.getSystemVarProfileDetails(i.formID);
|
13159
13188
|
switch (l.value = E ? cloneDeep(unref(toRaw(E))) : [], !0) {
|
13160
13189
|
case m:
|
13161
13190
|
u.value = [];
|
@@ -13164,7 +13193,7 @@ const leftVarProfileDetailColumns = (e) => {
|
|
13164
13193
|
case _:
|
13165
13194
|
if (y != null && y.id)
|
13166
13195
|
try {
|
13167
|
-
|
13196
|
+
s.store.setIsLoading(n.formID, !0);
|
13168
13197
|
const w = await QueryByID({
|
13169
13198
|
params: {
|
13170
13199
|
id: y.id
|
@@ -13184,7 +13213,7 @@ const leftVarProfileDetailColumns = (e) => {
|
|
13184
13213
|
} catch (w) {
|
13185
13214
|
throw w;
|
13186
13215
|
} finally {
|
13187
|
-
|
13216
|
+
s.store.setIsLoading(n.formID, !1);
|
13188
13217
|
}
|
13189
13218
|
else
|
13190
13219
|
u.value = [];
|
@@ -13196,13 +13225,13 @@ const leftVarProfileDetailColumns = (e) => {
|
|
13196
13225
|
break;
|
13197
13226
|
}
|
13198
13227
|
return !1;
|
13199
|
-
}),
|
13228
|
+
}), s.onBeforeOk(async ({
|
13200
13229
|
model: m
|
13201
13230
|
}) => {
|
13202
13231
|
var _, y;
|
13203
13232
|
const v = m.value;
|
13204
|
-
return v.frm_id =
|
13205
|
-
}),
|
13233
|
+
return v.frm_id = i.formID, v.varProfileDetails = (y = (_ = l.value) == null ? void 0 : _.filter((C) => u.value.includes(C.id))) != null ? y : [], !1;
|
13234
|
+
}), s.onOk(async () => (i.store.retrieve(i.formID), !1)), o.onUpdateBeforeClick(({
|
13206
13235
|
row: m
|
13207
13236
|
}) => (m == null ? void 0 : m.cust_lvl) === KG_CUSTOM_LEVEL.L0 ? new Promise((v) => {
|
13208
13237
|
KgUtil.confirm({
|
@@ -13217,7 +13246,7 @@ const leftVarProfileDetailColumns = (e) => {
|
|
13217
13246
|
v(!0);
|
13218
13247
|
}
|
13219
13248
|
});
|
13220
|
-
}) : Promise.resolve(!1)), o.onDeleteOk(() => (
|
13249
|
+
}) : Promise.resolve(!1)), o.onDeleteOk(() => (i.store.retrieve(i.formID), Promise.resolve(!1)));
|
13221
13250
|
const l = ref([]), u = ref([]), c = ref({
|
13222
13251
|
KgSubmit: {
|
13223
13252
|
"KgForm.Item": {
|
@@ -13412,8 +13441,8 @@ function _useLayoutHeaderResizeObserver() {
|
|
13412
13441
|
return onMounted(() => {
|
13413
13442
|
const t = document.querySelector("div.jeecg-layout-header-center");
|
13414
13443
|
t && (e = new ResizeObserver((r) => {
|
13415
|
-
var
|
13416
|
-
const n = t.getBoundingClientRect().left, a = (
|
13444
|
+
var s, i;
|
13445
|
+
const n = t.getBoundingClientRect().left, a = (i = (s = r[0].borderBoxSize[0]) == null ? void 0 : s.inlineSize) != null ? i : 0, o = document.querySelector("#kg-search-header-teleport");
|
13417
13446
|
o && (o.style.left = `${n}px`, o.style.width = `${a}px`);
|
13418
13447
|
}), e.observe(t));
|
13419
13448
|
}), onUnmounted(() => {
|
@@ -13426,9 +13455,9 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
13426
13455
|
setup(e) {
|
13427
13456
|
const t = inject(DI_KG_SLOTS, null), r = useKg(), n = useKgVar(), a = useKgSearch(), o = useKgTable();
|
13428
13457
|
_useLayoutHeaderResizeObserver();
|
13429
|
-
const
|
13458
|
+
const s = computed(() => n.store.getFormLevel(n.formID)), i = computed(() => n.store.getVarProfileConfig(n.formID)), l = computed(() => {
|
13430
13459
|
var N;
|
13431
|
-
return
|
13460
|
+
return s.value > 0 ? !1 : ((N = i.value) == null ? void 0 : N.header_teleport_flg) !== 0;
|
13432
13461
|
}), 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(() => {
|
13433
13462
|
var N, x;
|
13434
13463
|
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);
|
@@ -13454,10 +13483,10 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
13454
13483
|
}
|
13455
13484
|
}), k = computed(() => {
|
13456
13485
|
var N;
|
13457
|
-
return ((N =
|
13486
|
+
return ((N = i.value) == null ? void 0 : N.vis_flg) === 1;
|
13458
13487
|
}), w = computed(() => {
|
13459
13488
|
var N;
|
13460
|
-
return ((N =
|
13489
|
+
return ((N = i.value) == null ? void 0 : N.resizable_flg) !== 0;
|
13461
13490
|
}), M = computed(() => !!(n.isRetrievingVar.value || n.isRetrievingVarProfileMaster.value || l.value && !!n.isOtherRequesting.value)), A = computed(() => !!n.isRetrievingVar.value || !!n.isRetrievingVarProfileMaster.value), O = computed(() => {
|
13462
13491
|
let N = "kg-search";
|
13463
13492
|
return k.value && (N += " kg-search--visible"), l.value && (N += " kg-search--teleport"), N;
|
@@ -13654,14 +13683,14 @@ function useEventListener(...e) {
|
|
13654
13683
|
if (isString(e[0]) ? ([r, n, a] = e, t = defaultWindow) : [t, r, n, a] = e, !t)
|
13655
13684
|
return noop;
|
13656
13685
|
let o = noop;
|
13657
|
-
const
|
13686
|
+
const s = watch(() => unrefElement(t), (l) => {
|
13658
13687
|
o(), l && (l.addEventListener(r, n, a), o = () => {
|
13659
13688
|
l.removeEventListener(r, n, a), o = noop;
|
13660
13689
|
});
|
13661
|
-
}, { immediate: !0, flush: "post" }),
|
13662
|
-
|
13690
|
+
}, { immediate: !0, flush: "post" }), i = () => {
|
13691
|
+
s(), o();
|
13663
13692
|
};
|
13664
|
-
return tryOnScopeDispose(
|
13693
|
+
return tryOnScopeDispose(i), i;
|
13665
13694
|
}
|
13666
13695
|
const _global = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, globalKey = "__vueuse_ssr_handlers__";
|
13667
13696
|
_global[globalKey] = _global[globalKey] || {};
|
@@ -13683,9 +13712,9 @@ function useMagicKeys(e = {}) {
|
|
13683
13712
|
aliasMap: n = DefaultMagicKeysAliasMap,
|
13684
13713
|
passive: a = !0,
|
13685
13714
|
onEventFired: o = noop
|
13686
|
-
} = e,
|
13715
|
+
} = e, s = reactive(/* @__PURE__ */ new Set()), i = { toJSON() {
|
13687
13716
|
return {};
|
13688
|
-
}, current:
|
13717
|
+
}, current: s }, l = t ? reactive(i) : i, u = /* @__PURE__ */ new Set(), c = /* @__PURE__ */ new Set();
|
13689
13718
|
function g(v, _) {
|
13690
13719
|
v in l && (t ? l[v] = _ : l[v].value = _);
|
13691
13720
|
}
|
@@ -13696,12 +13725,12 @@ function useMagicKeys(e = {}) {
|
|
13696
13725
|
function b(v, _) {
|
13697
13726
|
var y, C;
|
13698
13727
|
const E = (y = v.key) == null ? void 0 : y.toLowerCase(), T = (C = v.code) == null ? void 0 : C.toLowerCase(), I = [T, E].filter(Boolean);
|
13699
|
-
T && (_ ?
|
13728
|
+
T && (_ ? s.add(v.code) : s.delete(v.code));
|
13700
13729
|
for (const k of I)
|
13701
13730
|
c.add(k), g(k, _);
|
13702
13731
|
E === "meta" && !_ ? (u.forEach((k) => {
|
13703
|
-
|
13704
|
-
}), u.clear()) : typeof v.getModifierState == "function" && v.getModifierState("Meta") && _ && [...
|
13732
|
+
s.delete(k), g(k, !1);
|
13733
|
+
}), u.clear()) : typeof v.getModifierState == "function" && v.getModifierState("Meta") && _ && [...s, ...I].forEach((k) => u.add(k));
|
13705
13734
|
}
|
13706
13735
|
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 }));
|
13707
13736
|
const m = new Proxy(l, {
|
@@ -13750,17 +13779,17 @@ const KgVarConfig_FormIDsModal = "", getProps$8 = () => ({
|
|
13750
13779
|
function o(u, c) {
|
13751
13780
|
switch (u == null ? void 0 : u.detail) {
|
13752
13781
|
case 2:
|
13753
|
-
|
13782
|
+
s();
|
13754
13783
|
break;
|
13755
13784
|
default:
|
13756
13785
|
n.value = [c.id];
|
13757
13786
|
break;
|
13758
13787
|
}
|
13759
13788
|
}
|
13760
|
-
function
|
13789
|
+
function s() {
|
13761
13790
|
t("update:visible", !1), t("kgOk", n.value[0]);
|
13762
13791
|
}
|
13763
|
-
function
|
13792
|
+
function i() {
|
13764
13793
|
t("update:visible", !1);
|
13765
13794
|
}
|
13766
13795
|
function l() {
|
@@ -13776,9 +13805,9 @@ const KgVarConfig_FormIDsModal = "", getProps$8 = () => ({
|
|
13776
13805
|
width: "800px",
|
13777
13806
|
confirmLoading: !1,
|
13778
13807
|
wrapClassName: "kg-var-config-form-ids-modal",
|
13779
|
-
onCancel:
|
13808
|
+
onCancel: i,
|
13780
13809
|
kgFullHeight: !1,
|
13781
|
-
onOk:
|
13810
|
+
onOk: s,
|
13782
13811
|
okButtonProps: {
|
13783
13812
|
disabled: n.value.length < 1
|
13784
13813
|
}
|
@@ -13985,11 +14014,11 @@ const getProps$2 = () => ({
|
|
13985
14014
|
isAllLanguage: a.value
|
13986
14015
|
});
|
13987
14016
|
}
|
13988
|
-
function
|
14017
|
+
function s() {
|
13989
14018
|
t("update:visible", !1);
|
13990
14019
|
}
|
13991
14020
|
return () => {
|
13992
|
-
let
|
14021
|
+
let i, l, u, c;
|
13993
14022
|
return createVNode(KgModal, {
|
13994
14023
|
visible: e.visible,
|
13995
14024
|
title: r.t("kg.KgVarConfig.createConfig"),
|
@@ -13998,7 +14027,7 @@ const getProps$2 = () => ({
|
|
13998
14027
|
width: 500,
|
13999
14028
|
wrapClassName: "kg-var-config-modal-var-create-modal",
|
14000
14029
|
kgFullHeight: !1,
|
14001
|
-
onCancel:
|
14030
|
+
onCancel: s,
|
14002
14031
|
onOk: o
|
14003
14032
|
}, {
|
14004
14033
|
default: () => [createVNode(Row, {
|
@@ -14028,8 +14057,8 @@ const getProps$2 = () => ({
|
|
14028
14057
|
}, {
|
14029
14058
|
default: () => [createVNode(Radio.Button, {
|
14030
14059
|
value: !0
|
14031
|
-
}, _isSlot$1(
|
14032
|
-
default: () => [
|
14060
|
+
}, _isSlot$1(i = r.t("kg.KgVarConfig.allForm")) ? i : {
|
14061
|
+
default: () => [i]
|
14033
14062
|
}), createVNode(Radio.Button, {
|
14034
14063
|
value: !1
|
14035
14064
|
}, _isSlot$1(l = r.t("kg.KgVarConfig.currentForm")) ? l : {
|
@@ -14093,7 +14122,7 @@ function _isSlot(e) {
|
|
14093
14122
|
const KgVarConfigModalVarVarCatalog = defineComponent({
|
14094
14123
|
name: "KgVarConfigModalVarVarCatalog",
|
14095
14124
|
setup() {
|
14096
|
-
const e = inject(DI_CONFIG_FORM_ID, null), t = useKg(), r = useKgVarStore()(), n = useKgVarConfigStore()(), a = ref(!1), o = ref(!1),
|
14125
|
+
const e = inject(DI_CONFIG_FORM_ID, null), t = useKg(), r = useKgVarStore()(), n = useKgVarConfigStore()(), a = ref(!1), o = ref(!1), s = ref(!1), i = ref(null), l = ref({
|
14097
14126
|
var_text: ""
|
14098
14127
|
}), u = ref([]), c = ref(null), g = ref([]), p = ref({
|
14099
14128
|
fixed: !0,
|
@@ -14103,7 +14132,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
14103
14132
|
onSelect: ($) => w($)
|
14104
14133
|
}), b = ref({
|
14105
14134
|
visible: !1
|
14106
|
-
}), m = computed(() => !!(unref(c) || unref(a) || unref(o) || unref(
|
14135
|
+
}), m = computed(() => !!(unref(c) || unref(a) || unref(o) || unref(s))), v = computed(() => {
|
14107
14136
|
var $;
|
14108
14137
|
return !!c.value || (($ = n.getSelectedVarCatalog) == null ? void 0 : $.cust_lvl) === KG_CUSTOM_LEVEL.L0;
|
14109
14138
|
}), _ = computed(() => !!(!unref(c) || unref(a) || unref(o))), y = computed(() => !!(!unref(n.getSelectedVarCatalog) || unref(a)));
|
@@ -14113,7 +14142,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
14113
14142
|
immediate: !0
|
14114
14143
|
}), watch(() => n.getSelectedVarCatalog, async ($) => {
|
14115
14144
|
var P, D;
|
14116
|
-
l.value.var_text = (P = $ == null ? void 0 : $.var_text) != null ? P : "", (D =
|
14145
|
+
l.value.var_text = (P = $ == null ? void 0 : $.var_text) != null ? P : "", (D = i.value) == null || D.clearValidate();
|
14117
14146
|
});
|
14118
14147
|
async function C($ = !1) {
|
14119
14148
|
var P, D, V;
|
@@ -14148,7 +14177,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
14148
14177
|
async function E() {
|
14149
14178
|
var $, P, D;
|
14150
14179
|
try {
|
14151
|
-
o.value = !0, await (($ =
|
14180
|
+
o.value = !0, await (($ = i.value) == null ? void 0 : $.validate());
|
14152
14181
|
const V = new VarCatalog({
|
14153
14182
|
...(P = n.getSelectedVarCatalog) != null ? P : {},
|
14154
14183
|
var_text: (D = l.value) == null ? void 0 : D.var_text
|
@@ -14252,7 +14281,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
14252
14281
|
return createVNode("div", {
|
14253
14282
|
class: "form"
|
14254
14283
|
}, [createVNode(Form, {
|
14255
|
-
ref:
|
14284
|
+
ref: i,
|
14256
14285
|
model: l.value,
|
14257
14286
|
onSubmit: E
|
14258
14287
|
}, {
|
@@ -14334,7 +14363,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
14334
14363
|
o();
|
14335
14364
|
});
|
14336
14365
|
async function o() {
|
14337
|
-
var
|
14366
|
+
var i;
|
14338
14367
|
if (!!(e != null && e.value)) {
|
14339
14368
|
n.value = !0;
|
14340
14369
|
try {
|
@@ -14347,7 +14376,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
14347
14376
|
frm_id: e == null ? void 0 : e.value
|
14348
14377
|
}
|
14349
14378
|
});
|
14350
|
-
a.value = sortBy$1(l != null ? l : [], [(u) => u.frm_id === "ALL" ? 1 : -1, (u) => u.var_nam]), r.setSelectedVar((
|
14379
|
+
a.value = sortBy$1(l != null ? l : [], [(u) => u.frm_id === "ALL" ? 1 : -1, (u) => u.var_nam]), r.setSelectedVar((i = a.value[0]) != null ? i : null);
|
14351
14380
|
} catch (l) {
|
14352
14381
|
console.error(l);
|
14353
14382
|
} finally {
|
@@ -14355,14 +14384,14 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
14355
14384
|
}
|
14356
14385
|
}
|
14357
14386
|
}
|
14358
|
-
function i
|
14387
|
+
function s(i) {
|
14359
14388
|
var l;
|
14360
|
-
((l = r.getSelectedVar) == null ? void 0 : l.id) !==
|
14389
|
+
((l = r.getSelectedVar) == null ? void 0 : l.id) !== i.id && (r.getSelectedVarCatalog && !r.getSelectedVarCatalog.id ? KgUtil.confirm({
|
14361
14390
|
content: t.t("kg.KgVarConfig.discardConfirmMessage"),
|
14362
14391
|
onOk: () => {
|
14363
|
-
r.setSelectedVarCatalog(null), r.setSelectedVar(unref(
|
14392
|
+
r.setSelectedVarCatalog(null), r.setSelectedVar(unref(i));
|
14364
14393
|
}
|
14365
|
-
}) : r.setSelectedVar(unref(
|
14394
|
+
}) : r.setSelectedVar(unref(i)));
|
14366
14395
|
}
|
14367
14396
|
return () => createVNode(Card, {
|
14368
14397
|
class: "kg-var-config-modal-var-vars",
|
@@ -14381,12 +14410,12 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
14381
14410
|
columns: columns(),
|
14382
14411
|
dataSource: a.value,
|
14383
14412
|
loading: n.value,
|
14384
|
-
rowClassName: (
|
14413
|
+
rowClassName: (i) => {
|
14385
14414
|
var l;
|
14386
|
-
return unref(
|
14415
|
+
return unref(i).id === ((l = r.getSelectedVar) == null ? void 0 : l.id) ? "ant-table-row-selected" : "";
|
14387
14416
|
},
|
14388
|
-
customRow: (
|
14389
|
-
onClick: () => i
|
14417
|
+
customRow: (i) => ({
|
14418
|
+
onClick: () => s(i)
|
14390
14419
|
})
|
14391
14420
|
}, null)]
|
14392
14421
|
});
|
@@ -14432,8 +14461,8 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
14432
14461
|
emit: t
|
14433
14462
|
}) {
|
14434
14463
|
const r = inject(DI_CONFIG_FORM_ID, null), n = useKg(), a = ref("1");
|
14435
|
-
watch(() => e.visible, (
|
14436
|
-
|
14464
|
+
watch(() => e.visible, (s) => {
|
14465
|
+
s && (a.value = "1");
|
14437
14466
|
});
|
14438
14467
|
function o() {
|
14439
14468
|
t("update:visible", !1);
|
@@ -14449,7 +14478,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
14449
14478
|
}, {
|
14450
14479
|
default: () => [createVNode(Tabs, {
|
14451
14480
|
activeKey: a.value,
|
14452
|
-
"onUpdate:activeKey": (
|
14481
|
+
"onUpdate:activeKey": (s) => a.value = s,
|
14453
14482
|
size: "small"
|
14454
14483
|
}, {
|
14455
14484
|
default: () => createVNode(Fragment, null, [createVNode(Tabs.TabPane, {
|
@@ -14504,8 +14533,8 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
14504
14533
|
}), a = ref({
|
14505
14534
|
visible: !1
|
14506
14535
|
});
|
14507
|
-
watch(t["Ctrl+Shift+F5"], (
|
14508
|
-
if (!!
|
14536
|
+
watch(t["Ctrl+Shift+F5"], (s) => {
|
14537
|
+
if (!!s)
|
14509
14538
|
if (n.value.visible)
|
14510
14539
|
n.value.visible = !1;
|
14511
14540
|
else
|
@@ -14523,17 +14552,17 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
14523
14552
|
}, {
|
14524
14553
|
immediate: !0
|
14525
14554
|
});
|
14526
|
-
function o(
|
14527
|
-
r.value =
|
14555
|
+
function o(s) {
|
14556
|
+
r.value = s, n.value.visible = !n.value.visible;
|
14528
14557
|
}
|
14529
14558
|
return () => createVNode(Fragment, null, [createVNode(KgVarConfigFormIDsModal, {
|
14530
14559
|
visible: a.value.visible,
|
14531
14560
|
formIDs: e.getTopFormIDs,
|
14532
|
-
"onUpdate:visible": (
|
14561
|
+
"onUpdate:visible": (s) => a.value.visible = s,
|
14533
14562
|
onKgOk: o
|
14534
14563
|
}, null), createVNode(KgVarConfigModal, {
|
14535
14564
|
visible: n.value.visible,
|
14536
|
-
"onUpdate:visible": (
|
14565
|
+
"onUpdate:visible": (s) => n.value.visible = s
|
14537
14566
|
}, null)]);
|
14538
14567
|
}
|
14539
14568
|
}), WAREHOUSE_000000 = "data:image/svg+xml;base64,PHN2ZyBmaWxsPSdub25lJyBoZWlnaHQ9JzE0JyBzdHlsZT0nY29sb3I6IzAwMDAwMGQ5Oycgdmlld0JveD0nMCAwIDI0IDI0JyB3aWR0aD0nMTQnIHhtbG5zPSdodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2Zyc+DQogIDxwYXRoDQogICAgY2xpcC1ydWxlPSdldmVub2RkJw0KICAgIGQ9J003Ljg5MDI5IDYuMjA3MzlDOC4xNjMwNyA1Ljk5NzU1IDguNTI0NTkgNS45NDI3MyA4Ljg0NzMxIDYuMDYyMjZMMjIuMzQ3MyAxMS4wNjIzQzIyLjczOTYgMTEuMjA3NiAyMyAxMS41ODE3IDIzIDEyVjIyQzIzIDIyLjU1MjMgMjIuNTUyMyAyMyAyMiAyM0gyQzEuNDQ3NzIgMjMgMSAyMi41NTIzIDEgMjJWMTJDMSAxMS42ODk1IDEuMTQ0MiAxMS4zOTY3IDEuMzkwMjkgMTEuMjA3NEw3Ljg5MDI5IDYuMjA3MzlaTTE0IDIxSDE2LjVWMTYuNzIwOEwxNCAxNS44ODc0VjIxWk0xOC41IDIxVjE2QzE4LjUgMTUuNTY5NiAxOC4yMjQ2IDE1LjE4NzQgMTcuODE2MiAxNS4wNTEzTDEzLjMxNjIgMTMuNTUxM0MxMy4wMTEzIDEzLjQ0OTcgMTIuNjc2MSAxMy41MDA4IDEyLjQxNTMgMTMuNjg4OEMxMi4xNTQ1IDEzLjg3NjcgMTIgMTQuMTc4NiAxMiAxNC41VjIxSDkuNVY4LjQzNjc2TDIxIDEyLjY5NlYyMUgxOC41Wk03LjUgOS4wMzA4N1YyMUgzVjEyLjQ5MjRMNy41IDkuMDMwODdaJw0KICAgIGZpbGw9J2N1cnJlbnRDb2xvcicNCiAgICBmaWxsLW9wYWNpdHk9JzAuODUnDQogICAgZmlsbC1ydWxlPSdldmVub2RkJw0KICAvPg0KPC9zdmc+DQo=", WAREHOUSE_1890ff = "data:image/svg+xml;base64,PHN2ZyBmaWxsPSdub25lJyBoZWlnaHQ9JzE0JyBzdHlsZT0nY29sb3I6IzE4OTBmZjsnIHZpZXdCb3g9JzAgMCAyNCAyNCcgd2lkdGg9JzE0JyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnPg0KICA8cGF0aA0KICAgIGNsaXAtcnVsZT0nZXZlbm9kZCcNCiAgICBkPSdNNy44OTAyOSA2LjIwNzM5QzguMTYzMDcgNS45OTc1NSA4LjUyNDU5IDUuOTQyNzMgOC44NDczMSA2LjA2MjI2TDIyLjM0NzMgMTEuMDYyM0MyMi43Mzk2IDExLjIwNzYgMjMgMTEuNTgxNyAyMyAxMlYyMkMyMyAyMi41NTIzIDIyLjU1MjMgMjMgMjIgMjNIMkMxLjQ0NzcyIDIzIDEgMjIuNTUyMyAxIDIyVjEyQzEgMTEuNjg5NSAxLjE0NDIgMTEuMzk2NyAxLjM5MDI5IDExLjIwNzRMNy44OTAyOSA2LjIwNzM5Wk0xNCAyMUgxNi41VjE2LjcyMDhMMTQgMTUuODg3NFYyMVpNMTguNSAyMVYxNkMxOC41IDE1LjU2OTYgMTguMjI0NiAxNS4xODc0IDE3LjgxNjIgMTUuMDUxM0wxMy4zMTYyIDEzLjU1MTNDMTMuMDExMyAxMy40NDk3IDEyLjY3NjEgMTMuNTAwOCAxMi40MTUzIDEzLjY4ODhDMTIuMTU0NSAxMy44NzY3IDEyIDE0LjE3ODYgMTIgMTQuNVYyMUg5LjVWOC40MzY3NkwyMSAxMi42OTZWMjFIMTguNVpNNy41IDkuMDMwODdWMjFIM1YxMi40OTI0TDcuNSA5LjAzMDg3WicNCiAgICBmaWxsPSdjdXJyZW50Q29sb3InDQogICAgZmlsbC1vcGFjaXR5PScwLjg1Jw0KICAgIGZpbGwtcnVsZT0nZXZlbm9kZCcNCiAgLz4NCjwvc3ZnPg0K", LOCAL_STORAGE_KEY = "KgWarehouse.warehouse";
|
@@ -14552,10 +14581,10 @@ const useKgWarehouseStore = (e) => (store || (store = defineStore("KgWarehouse",
|
|
14552
14581
|
var r, n, a, o;
|
14553
14582
|
const t = this.warehouse || store_legacy.get(LOCAL_STORAGE_KEY, null);
|
14554
14583
|
if (!t) {
|
14555
|
-
const
|
14556
|
-
if (((n = (r =
|
14557
|
-
const
|
14558
|
-
return
|
14584
|
+
const s = useKg(e);
|
14585
|
+
if (((n = (r = s.option.value) == null ? void 0 : r.KgWarehouse) == null ? void 0 : n.enable) === !1) {
|
14586
|
+
const i = (o = (a = s.option.value) == null ? void 0 : a.KgWarehouse) == null ? void 0 : o.defaultWarehouseID;
|
14587
|
+
return i ? { whId: i } : null;
|
14559
14588
|
}
|
14560
14589
|
}
|
14561
14590
|
return t;
|
@@ -14625,14 +14654,14 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
14625
14654
|
const r = useKg(), n = useKgWarehouse(), a = computed(() => {
|
14626
14655
|
let T = "jeecg-layout-header-action__item kg-warehouse";
|
14627
14656
|
return (!p.value || e.kgInvisible) && (T += " kg-warehouse--invisible"), T;
|
14628
|
-
}), o = ref(""),
|
14657
|
+
}), o = ref(""), s = n.warehouse, i = ref(null), l = ref(!1), u = reactive([{
|
14629
14658
|
width: 80,
|
14630
14659
|
align: "center",
|
14631
14660
|
customRender: ({
|
14632
14661
|
record: T
|
14633
14662
|
}) => {
|
14634
14663
|
var k;
|
14635
|
-
return T.id === ((k =
|
14664
|
+
return T.id === ((k = i.value) == null ? void 0 : k.id) ? createVNode("img", {
|
14636
14665
|
src: WAREHOUSE_1890ff
|
14637
14666
|
}, null) : createVNode("img", {
|
14638
14667
|
src: WAREHOUSE_000000
|
@@ -14670,14 +14699,14 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
14670
14699
|
!p.value || n.store.setVisible(!0);
|
14671
14700
|
}
|
14672
14701
|
function m() {
|
14673
|
-
|
14702
|
+
i.value = n.warehouse.value, y();
|
14674
14703
|
}
|
14675
14704
|
function v() {
|
14676
|
-
o.value = "", c.value = [],
|
14705
|
+
o.value = "", c.value = [], i.value = null;
|
14677
14706
|
}
|
14678
14707
|
function _() {
|
14679
14708
|
var T;
|
14680
|
-
!
|
14709
|
+
!i.value || (e.kgInvisible ? (n.store.setWarehouse(i.value), t("kgOk")) : i.value.id !== ((T = n.warehouse.value) == null ? void 0 : T.id) && (n.store.setWarehouse(i.value), KgUtil.confirm({
|
14681
14710
|
content: r.t("kg.KgWarehouse.reloadMessage"),
|
14682
14711
|
kgHideCancelButton: !0,
|
14683
14712
|
okButtonProps: {
|
@@ -14711,10 +14740,10 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
14711
14740
|
var k;
|
14712
14741
|
switch (T.detail) {
|
14713
14742
|
case 1:
|
14714
|
-
((k =
|
14743
|
+
((k = i.value) == null ? void 0 : k.id) === I.id ? i.value = null : i.value = I;
|
14715
14744
|
break;
|
14716
14745
|
case 2:
|
14717
|
-
|
14746
|
+
i.value = I, _();
|
14718
14747
|
break;
|
14719
14748
|
}
|
14720
14749
|
}
|
@@ -14725,7 +14754,7 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
14725
14754
|
}, {
|
14726
14755
|
default: () => {
|
14727
14756
|
var T, I;
|
14728
|
-
return [((T =
|
14757
|
+
return [((T = s.value) == null ? void 0 : T.whDsc) || ((I = s.value) == null ? void 0 : I.whId) || r.t("kg.KgWarehouse.selectWarehouse")];
|
14729
14758
|
}
|
14730
14759
|
}), createVNode(KgModal, {
|
14731
14760
|
visible: n.visible.value,
|
@@ -14734,13 +14763,13 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
14734
14763
|
width: "500px",
|
14735
14764
|
kgFullHeight: !1,
|
14736
14765
|
wrapClassName: "kg-warehouse-modal",
|
14737
|
-
closable: !e.kgInvisible && !l.value && !!
|
14738
|
-
kgShowCancelButton: !e.kgInvisible && !!
|
14766
|
+
closable: !e.kgInvisible && !l.value && !!i.value,
|
14767
|
+
kgShowCancelButton: !e.kgInvisible && !!i.value,
|
14739
14768
|
cancelButtonProps: {
|
14740
14769
|
disabled: l.value
|
14741
14770
|
},
|
14742
14771
|
okButtonProps: {
|
14743
|
-
disabled: l.value || !
|
14772
|
+
disabled: l.value || !i.value
|
14744
14773
|
},
|
14745
14774
|
onOk: _
|
14746
14775
|
}, {
|
@@ -14769,7 +14798,7 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
14769
14798
|
customRow: (T) => {
|
14770
14799
|
var I;
|
14771
14800
|
return {
|
14772
|
-
class: T.id === ((I =
|
14801
|
+
class: T.id === ((I = i.value) == null ? void 0 : I.id) ? "selected" : "",
|
14773
14802
|
onClick: (k) => C(k, T)
|
14774
14803
|
};
|
14775
14804
|
}
|
@@ -14794,10 +14823,10 @@ function createKgWarehouseGuard(e, t) {
|
|
14794
14823
|
if (e.currentRoute.value.path === "/login")
|
14795
14824
|
return;
|
14796
14825
|
n.store.setVisible(!0);
|
14797
|
-
const
|
14826
|
+
const s = watch(
|
14798
14827
|
n.warehouse,
|
14799
|
-
(
|
14800
|
-
|
14828
|
+
(i) => {
|
14829
|
+
i && setTimeout(() => s());
|
14801
14830
|
},
|
14802
14831
|
{ immediate: !0 }
|
14803
14832
|
);
|