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