@kengic/vue 0.5.18 → 0.5.19-beta.0
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 +1243 -1254
- package/dist/src/apis/WMS/Controllers/WhController/ListVO.d.ts +0 -2
- package/dist/src/apis/WMS/Controllers/index.d.ts +1 -1
- package/dist/src/apis/WMS/models.d.ts +21 -23
- package/dist/src/components/KgForm.Item/index.vm.d.ts +2 -2
- package/dist/src/components/KgVar/index.store.d.ts +3 -3
- package/package.json +1 -1
- /package/dist/src/apis/WMS/Controllers/{VarCatalogController → VarVariableCatalogController}/Add.d.ts +0 -0
- /package/dist/src/apis/WMS/Controllers/{VarCatalogController → VarVariableCatalogController}/Delete.d.ts +0 -0
- /package/dist/src/apis/WMS/Controllers/{VarCatalogController → VarVariableCatalogController}/DeleteBatch.d.ts +0 -0
- /package/dist/src/apis/WMS/Controllers/{VarCatalogController → VarVariableCatalogController}/Edit.d.ts +0 -0
- /package/dist/src/apis/WMS/Controllers/{VarCatalogController → VarVariableCatalogController}/ExportXls.d.ts +0 -0
- /package/dist/src/apis/WMS/Controllers/{VarCatalogController → VarVariableCatalogController}/ImportExcel.d.ts +0 -0
- /package/dist/src/apis/WMS/Controllers/{VarCatalogController → VarVariableCatalogController}/List.d.ts +0 -0
- /package/dist/src/apis/WMS/Controllers/{VarCatalogController → VarVariableCatalogController}/QueryById.d.ts +0 -0
- /package/dist/src/apis/WMS/Controllers/{VarCatalogController → VarVariableCatalogController}/index.d.ts +0 -0
package/dist/kengic-vue.js
CHANGED
@@ -131,32 +131,6 @@ class VarCatalog {
|
|
131
131
|
});
|
132
132
|
}
|
133
133
|
}
|
134
|
-
class VarConfig {
|
135
|
-
constructor(t) {
|
136
|
-
d(this, "ctrl_prop");
|
137
|
-
d(this, "ctrl_typ");
|
138
|
-
d(this, "cust_lvl");
|
139
|
-
d(this, "frm_id");
|
140
|
-
d(this, "grp_nam");
|
141
|
-
d(this, "id");
|
142
|
-
d(this, "locale_id");
|
143
|
-
d(this, "var_nam");
|
144
|
-
keys$1(t != null ? t : {}).forEach((r) => {
|
145
|
-
switch (r) {
|
146
|
-
case "ctrl_prop":
|
147
|
-
case "ctrl_typ":
|
148
|
-
case "cust_lvl":
|
149
|
-
case "frm_id":
|
150
|
-
case "grp_nam":
|
151
|
-
case "id":
|
152
|
-
case "locale_id":
|
153
|
-
case "var_nam":
|
154
|
-
Reflect.set(this, r, Reflect.get(t != null ? t : {}, r));
|
155
|
-
break;
|
156
|
-
}
|
157
|
-
});
|
158
|
-
}
|
159
|
-
}
|
160
134
|
class VarContext {
|
161
135
|
constructor(t) {
|
162
136
|
d(this, "frm_id");
|
@@ -653,6 +627,32 @@ class VarSubmitField {
|
|
653
627
|
});
|
654
628
|
}
|
655
629
|
}
|
630
|
+
class VarVariableConfig {
|
631
|
+
constructor(t) {
|
632
|
+
d(this, "ctrl_prop");
|
633
|
+
d(this, "ctrl_typ");
|
634
|
+
d(this, "cust_lvl");
|
635
|
+
d(this, "frm_id");
|
636
|
+
d(this, "grp_nam");
|
637
|
+
d(this, "id");
|
638
|
+
d(this, "locale_id");
|
639
|
+
d(this, "var_nam");
|
640
|
+
keys$1(t != null ? t : {}).forEach((r) => {
|
641
|
+
switch (r) {
|
642
|
+
case "ctrl_prop":
|
643
|
+
case "ctrl_typ":
|
644
|
+
case "cust_lvl":
|
645
|
+
case "frm_id":
|
646
|
+
case "grp_nam":
|
647
|
+
case "id":
|
648
|
+
case "locale_id":
|
649
|
+
case "var_nam":
|
650
|
+
Reflect.set(this, r, Reflect.get(t != null ? t : {}, r));
|
651
|
+
break;
|
652
|
+
}
|
653
|
+
});
|
654
|
+
}
|
655
|
+
}
|
656
656
|
class VarVariableInput {
|
657
657
|
constructor(t) {
|
658
658
|
d(this, "cust_lvl");
|
@@ -692,7 +692,6 @@ class WhVO {
|
|
692
692
|
d(this, "adrnam");
|
693
693
|
d(this, "defWhFlg");
|
694
694
|
d(this, "id");
|
695
|
-
d(this, "localeId");
|
696
695
|
d(this, "orgcod");
|
697
696
|
d(this, "permAdjLod");
|
698
697
|
d(this, "permAdjSub");
|
@@ -707,7 +706,6 @@ class WhVO {
|
|
707
706
|
case "adrnam":
|
708
707
|
case "defWhFlg":
|
709
708
|
case "id":
|
710
|
-
case "localeId":
|
711
709
|
case "orgcod":
|
712
710
|
case "permAdjLod":
|
713
711
|
case "permAdjSub":
|
@@ -767,7 +765,7 @@ function Add$1(e, t) {
|
|
767
765
|
);
|
768
766
|
}
|
769
767
|
Add$1.method = "POST";
|
770
|
-
Add$1.url = "/var/
|
768
|
+
Add$1.url = "/var/VarContext/add";
|
771
769
|
class DeleteQuery$1 {
|
772
770
|
constructor(t) {
|
773
771
|
d(this, "id");
|
@@ -791,7 +789,7 @@ function Delete$1(e, t) {
|
|
791
789
|
);
|
792
790
|
}
|
793
791
|
Delete$1.method = "DELETE";
|
794
|
-
Delete$1.url = "/var/
|
792
|
+
Delete$1.url = "/var/VarContext/delete";
|
795
793
|
class DeleteBatchQuery$1 {
|
796
794
|
constructor(t) {
|
797
795
|
d(this, "ids");
|
@@ -815,7 +813,7 @@ function DeleteBatch$1(e, t) {
|
|
815
813
|
);
|
816
814
|
}
|
817
815
|
DeleteBatch$1.method = "DELETE";
|
818
|
-
DeleteBatch$1.url = "/var/
|
816
|
+
DeleteBatch$1.url = "/var/VarContext/deleteBatch";
|
819
817
|
class EditQuery$1 {
|
820
818
|
}
|
821
819
|
function Edit$1(e, t) {
|
@@ -829,30 +827,8 @@ function Edit$1(e, t) {
|
|
829
827
|
);
|
830
828
|
}
|
831
829
|
Edit$1.method = "POST";
|
832
|
-
Edit$1.url = "/var/
|
830
|
+
Edit$1.url = "/var/VarContext/edit";
|
833
831
|
class ExportXlsQuery$1 {
|
834
|
-
constructor(t) {
|
835
|
-
d(this, "cust_lvl");
|
836
|
-
d(this, "frm_id");
|
837
|
-
d(this, "grp_nam");
|
838
|
-
d(this, "id");
|
839
|
-
d(this, "locale_id");
|
840
|
-
d(this, "var_nam");
|
841
|
-
d(this, "var_text");
|
842
|
-
keys$1(t != null ? t : {}).forEach((r) => {
|
843
|
-
switch (r) {
|
844
|
-
case "cust_lvl":
|
845
|
-
case "frm_id":
|
846
|
-
case "grp_nam":
|
847
|
-
case "id":
|
848
|
-
case "locale_id":
|
849
|
-
case "var_nam":
|
850
|
-
case "var_text":
|
851
|
-
Reflect.set(this, r, Reflect.get(t != null ? t : {}, r));
|
852
|
-
break;
|
853
|
-
}
|
854
|
-
});
|
855
|
-
}
|
856
832
|
}
|
857
833
|
function ExportXls$1(e, t) {
|
858
834
|
return httpClient().request(
|
@@ -865,7 +841,7 @@ function ExportXls$1(e, t) {
|
|
865
841
|
);
|
866
842
|
}
|
867
843
|
ExportXls$1.method = "GET";
|
868
|
-
ExportXls$1.url = "/var/
|
844
|
+
ExportXls$1.url = "/var/VarContext/exportXls";
|
869
845
|
class ImportExcelQuery$1 {
|
870
846
|
}
|
871
847
|
function ImportExcel$1(e, t) {
|
@@ -879,27 +855,23 @@ function ImportExcel$1(e, t) {
|
|
879
855
|
);
|
880
856
|
}
|
881
857
|
ImportExcel$1.method = "POST";
|
882
|
-
ImportExcel$1.url = "/var/
|
858
|
+
ImportExcel$1.url = "/var/VarContext/importExcel";
|
883
859
|
class ListQuery$1 {
|
884
860
|
constructor(t) {
|
885
|
-
d(this, "cust_lvl");
|
886
861
|
d(this, "frm_id");
|
862
|
+
d(this, "frm_nam");
|
887
863
|
d(this, "grp_nam");
|
888
|
-
d(this, "locale_id");
|
889
864
|
d(this, "var_nam");
|
890
|
-
d(this, "var_text");
|
891
865
|
d(this, "column");
|
892
866
|
d(this, "order");
|
893
867
|
d(this, "pageNo");
|
894
868
|
d(this, "pageSize");
|
895
869
|
keys$1(t != null ? t : {}).forEach((r) => {
|
896
870
|
switch (r) {
|
897
|
-
case "cust_lvl":
|
898
871
|
case "frm_id":
|
872
|
+
case "frm_nam":
|
899
873
|
case "grp_nam":
|
900
|
-
case "locale_id":
|
901
874
|
case "var_nam":
|
902
|
-
case "var_text":
|
903
875
|
case "column":
|
904
876
|
case "order":
|
905
877
|
case "pageNo":
|
@@ -921,7 +893,7 @@ function List$1(e, t) {
|
|
921
893
|
);
|
922
894
|
}
|
923
895
|
List$1.method = "GET";
|
924
|
-
List$1.url = "/var/
|
896
|
+
List$1.url = "/var/VarContext/list";
|
925
897
|
class QueryByIdQuery$1 {
|
926
898
|
constructor(t) {
|
927
899
|
d(this, "id");
|
@@ -945,7 +917,7 @@ function QueryById$1(e, t) {
|
|
945
917
|
);
|
946
918
|
}
|
947
919
|
QueryById$1.method = "GET";
|
948
|
-
QueryById$1.url = "/var/
|
920
|
+
QueryById$1.url = "/var/VarContext/queryById";
|
949
921
|
const index$4 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
950
922
|
__proto__: null,
|
951
923
|
Add: Add$1,
|
@@ -965,6 +937,35 @@ const index$4 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
|
|
965
937
|
QueryById: QueryById$1,
|
966
938
|
QueryByIdQuery: QueryByIdQuery$1
|
967
939
|
}, Symbol.toStringTag, { value: "Module" }));
|
940
|
+
class QueryByIDQuery {
|
941
|
+
constructor(t) {
|
942
|
+
d(this, "id");
|
943
|
+
keys$1(t != null ? t : {}).forEach((r) => {
|
944
|
+
switch (r) {
|
945
|
+
case "id":
|
946
|
+
Reflect.set(this, r, Reflect.get(t != null ? t : {}, r));
|
947
|
+
break;
|
948
|
+
}
|
949
|
+
});
|
950
|
+
}
|
951
|
+
}
|
952
|
+
function QueryByID(e, t) {
|
953
|
+
return httpClient().request(
|
954
|
+
{
|
955
|
+
method: QueryByID.method,
|
956
|
+
url: `${t != null && t.mock ? "/mock" : ""}${QueryByID.url}`,
|
957
|
+
...e != null ? e : {}
|
958
|
+
},
|
959
|
+
t
|
960
|
+
);
|
961
|
+
}
|
962
|
+
QueryByID.method = "GET";
|
963
|
+
QueryByID.url = "/var/VarProfileMaster/queryByID";
|
964
|
+
const index$3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
965
|
+
__proto__: null,
|
966
|
+
QueryByID,
|
967
|
+
QueryByIDQuery
|
968
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
968
969
|
class AddQuery {
|
969
970
|
}
|
970
971
|
function Add(e, t) {
|
@@ -978,7 +979,7 @@ function Add(e, t) {
|
|
978
979
|
);
|
979
980
|
}
|
980
981
|
Add.method = "POST";
|
981
|
-
Add.url = "/var/
|
982
|
+
Add.url = "/var/VarVariableCatalog/add";
|
982
983
|
class DeleteQuery {
|
983
984
|
constructor(t) {
|
984
985
|
d(this, "id");
|
@@ -1002,7 +1003,7 @@ function Delete(e, t) {
|
|
1002
1003
|
);
|
1003
1004
|
}
|
1004
1005
|
Delete.method = "DELETE";
|
1005
|
-
Delete.url = "/var/
|
1006
|
+
Delete.url = "/var/VarVariableCatalog/delete";
|
1006
1007
|
class DeleteBatchQuery {
|
1007
1008
|
constructor(t) {
|
1008
1009
|
d(this, "ids");
|
@@ -1026,7 +1027,7 @@ function DeleteBatch(e, t) {
|
|
1026
1027
|
);
|
1027
1028
|
}
|
1028
1029
|
DeleteBatch.method = "DELETE";
|
1029
|
-
DeleteBatch.url = "/var/
|
1030
|
+
DeleteBatch.url = "/var/VarVariableCatalog/deleteBatch";
|
1030
1031
|
class EditQuery {
|
1031
1032
|
}
|
1032
1033
|
function Edit(e, t) {
|
@@ -1040,8 +1041,30 @@ function Edit(e, t) {
|
|
1040
1041
|
);
|
1041
1042
|
}
|
1042
1043
|
Edit.method = "POST";
|
1043
|
-
Edit.url = "/var/
|
1044
|
+
Edit.url = "/var/VarVariableCatalog/edit";
|
1044
1045
|
class ExportXlsQuery {
|
1046
|
+
constructor(t) {
|
1047
|
+
d(this, "cust_lvl");
|
1048
|
+
d(this, "frm_id");
|
1049
|
+
d(this, "grp_nam");
|
1050
|
+
d(this, "id");
|
1051
|
+
d(this, "locale_id");
|
1052
|
+
d(this, "var_nam");
|
1053
|
+
d(this, "var_text");
|
1054
|
+
keys$1(t != null ? t : {}).forEach((r) => {
|
1055
|
+
switch (r) {
|
1056
|
+
case "cust_lvl":
|
1057
|
+
case "frm_id":
|
1058
|
+
case "grp_nam":
|
1059
|
+
case "id":
|
1060
|
+
case "locale_id":
|
1061
|
+
case "var_nam":
|
1062
|
+
case "var_text":
|
1063
|
+
Reflect.set(this, r, Reflect.get(t != null ? t : {}, r));
|
1064
|
+
break;
|
1065
|
+
}
|
1066
|
+
});
|
1067
|
+
}
|
1045
1068
|
}
|
1046
1069
|
function ExportXls(e, t) {
|
1047
1070
|
return httpClient().request(
|
@@ -1054,7 +1077,7 @@ function ExportXls(e, t) {
|
|
1054
1077
|
);
|
1055
1078
|
}
|
1056
1079
|
ExportXls.method = "GET";
|
1057
|
-
ExportXls.url = "/var/
|
1080
|
+
ExportXls.url = "/var/VarVariableCatalog/exportXls";
|
1058
1081
|
class ImportExcelQuery {
|
1059
1082
|
}
|
1060
1083
|
function ImportExcel(e, t) {
|
@@ -1068,23 +1091,27 @@ function ImportExcel(e, t) {
|
|
1068
1091
|
);
|
1069
1092
|
}
|
1070
1093
|
ImportExcel.method = "POST";
|
1071
|
-
ImportExcel.url = "/var/
|
1094
|
+
ImportExcel.url = "/var/VarVariableCatalog/importExcel";
|
1072
1095
|
class ListQuery {
|
1073
1096
|
constructor(t) {
|
1097
|
+
d(this, "cust_lvl");
|
1074
1098
|
d(this, "frm_id");
|
1075
|
-
d(this, "frm_nam");
|
1076
1099
|
d(this, "grp_nam");
|
1100
|
+
d(this, "locale_id");
|
1077
1101
|
d(this, "var_nam");
|
1102
|
+
d(this, "var_text");
|
1078
1103
|
d(this, "column");
|
1079
1104
|
d(this, "order");
|
1080
1105
|
d(this, "pageNo");
|
1081
1106
|
d(this, "pageSize");
|
1082
1107
|
keys$1(t != null ? t : {}).forEach((r) => {
|
1083
1108
|
switch (r) {
|
1109
|
+
case "cust_lvl":
|
1084
1110
|
case "frm_id":
|
1085
|
-
case "frm_nam":
|
1086
1111
|
case "grp_nam":
|
1112
|
+
case "locale_id":
|
1087
1113
|
case "var_nam":
|
1114
|
+
case "var_text":
|
1088
1115
|
case "column":
|
1089
1116
|
case "order":
|
1090
1117
|
case "pageNo":
|
@@ -1106,7 +1133,7 @@ function List(e, t) {
|
|
1106
1133
|
);
|
1107
1134
|
}
|
1108
1135
|
List.method = "GET";
|
1109
|
-
List.url = "/var/
|
1136
|
+
List.url = "/var/VarVariableCatalog/list";
|
1110
1137
|
class QueryByIdQuery {
|
1111
1138
|
constructor(t) {
|
1112
1139
|
d(this, "id");
|
@@ -1130,8 +1157,8 @@ function QueryById(e, t) {
|
|
1130
1157
|
);
|
1131
1158
|
}
|
1132
1159
|
QueryById.method = "GET";
|
1133
|
-
QueryById.url = "/var/
|
1134
|
-
const index$
|
1160
|
+
QueryById.url = "/var/VarVariableCatalog/queryById";
|
1161
|
+
const index$2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
1135
1162
|
__proto__: null,
|
1136
1163
|
Add,
|
1137
1164
|
AddQuery,
|
@@ -1150,35 +1177,6 @@ const index$3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
|
|
1150
1177
|
QueryById,
|
1151
1178
|
QueryByIdQuery
|
1152
1179
|
}, Symbol.toStringTag, { value: "Module" }));
|
1153
|
-
class QueryByIDQuery {
|
1154
|
-
constructor(t) {
|
1155
|
-
d(this, "id");
|
1156
|
-
keys$1(t != null ? t : {}).forEach((r) => {
|
1157
|
-
switch (r) {
|
1158
|
-
case "id":
|
1159
|
-
Reflect.set(this, r, Reflect.get(t != null ? t : {}, r));
|
1160
|
-
break;
|
1161
|
-
}
|
1162
|
-
});
|
1163
|
-
}
|
1164
|
-
}
|
1165
|
-
function QueryByID(e, t) {
|
1166
|
-
return httpClient().request(
|
1167
|
-
{
|
1168
|
-
method: QueryByID.method,
|
1169
|
-
url: `${t != null && t.mock ? "/mock" : ""}${QueryByID.url}`,
|
1170
|
-
...e != null ? e : {}
|
1171
|
-
},
|
1172
|
-
t
|
1173
|
-
);
|
1174
|
-
}
|
1175
|
-
QueryByID.method = "GET";
|
1176
|
-
QueryByID.url = "/var/VarProfileMaster/queryByID";
|
1177
|
-
const index$2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
1178
|
-
__proto__: null,
|
1179
|
-
QueryByID,
|
1180
|
-
QueryByIDQuery
|
1181
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
1182
1180
|
class ListVOQuery {
|
1183
1181
|
constructor(t) {
|
1184
1182
|
d(this, "activeFlg");
|
@@ -1186,7 +1184,6 @@ class ListVOQuery {
|
|
1186
1184
|
d(this, "adrnam");
|
1187
1185
|
d(this, "defWhFlg");
|
1188
1186
|
d(this, "id");
|
1189
|
-
d(this, "localeId");
|
1190
1187
|
d(this, "orgcod");
|
1191
1188
|
d(this, "permAdjLod");
|
1192
1189
|
d(this, "permAdjSub");
|
@@ -1205,7 +1202,6 @@ class ListVOQuery {
|
|
1205
1202
|
case "adrnam":
|
1206
1203
|
case "defWhFlg":
|
1207
1204
|
case "id":
|
1208
|
-
case "localeId":
|
1209
1205
|
case "orgcod":
|
1210
1206
|
case "permAdjLod":
|
1211
1207
|
case "permAdjSub":
|
@@ -1242,9 +1238,9 @@ const index$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
|
|
1242
1238
|
}, Symbol.toStringTag, { value: "Module" })), index = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
1243
1239
|
__proto__: null,
|
1244
1240
|
VarController: index$5,
|
1245
|
-
|
1246
|
-
|
1247
|
-
|
1241
|
+
VarContextController: index$4,
|
1242
|
+
VarProfileMasterController: index$3,
|
1243
|
+
VarVariableCatalogController: index$2,
|
1248
1244
|
WhController: index$1
|
1249
1245
|
}, Symbol.toStringTag, { value: "Module" })), api = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
1250
1246
|
__proto__: null,
|
@@ -2276,30 +2272,30 @@ function baseClone(e, t, r, n, a, o) {
|
|
2276
2272
|
if (s = initCloneArray(e), !i)
|
2277
2273
|
return copyArray(e, s);
|
2278
2274
|
} else {
|
2279
|
-
var
|
2275
|
+
var g = getTag$1(e), p = g == funcTag || g == genTag;
|
2280
2276
|
if (isBuffer$1(e))
|
2281
2277
|
return cloneBuffer(e, i);
|
2282
|
-
if (
|
2283
|
-
if (s = l ||
|
2278
|
+
if (g == objectTag$1 || g == argsTag$1 || p && !a) {
|
2279
|
+
if (s = l || p ? {} : initCloneObject(e), !i)
|
2284
2280
|
return l ? copySymbolsIn(e, baseAssignIn(s, e)) : copySymbols(e, baseAssign(s, e));
|
2285
2281
|
} else {
|
2286
|
-
if (!cloneableTags[
|
2282
|
+
if (!cloneableTags[g])
|
2287
2283
|
return a ? e : {};
|
2288
|
-
s = initCloneByTag(e,
|
2284
|
+
s = initCloneByTag(e, g, i);
|
2289
2285
|
}
|
2290
2286
|
}
|
2291
2287
|
o || (o = new Stack());
|
2292
|
-
var
|
2293
|
-
if (
|
2294
|
-
return
|
2288
|
+
var _ = o.get(e);
|
2289
|
+
if (_)
|
2290
|
+
return _;
|
2295
2291
|
o.set(e, s), isSet$1(e) ? e.forEach(function(v) {
|
2296
2292
|
s.add(baseClone(v, t, r, v, e, o));
|
2297
2293
|
}) : isMap$1(e) && e.forEach(function(v, C) {
|
2298
2294
|
s.set(C, baseClone(v, t, r, C, e, o));
|
2299
2295
|
});
|
2300
|
-
var b = u ? l ? getAllKeysIn : getAllKeys : l ? keysIn : keys,
|
2301
|
-
return arrayEach(
|
2302
|
-
|
2296
|
+
var b = u ? l ? getAllKeysIn : getAllKeys : l ? keysIn : keys, m = c ? void 0 : b(e);
|
2297
|
+
return arrayEach(m || e, function(v, C) {
|
2298
|
+
m && (C = v, v = e[C]), assignValue(s, C, baseClone(v, t, r, C, e, o));
|
2303
2299
|
}), s;
|
2304
2300
|
}
|
2305
2301
|
var CLONE_DEEP_FLAG = 1, CLONE_SYMBOLS_FLAG = 4;
|
@@ -2337,31 +2333,31 @@ function equalArrays(e, t, r, n, a, o) {
|
|
2337
2333
|
var u = o.get(e), c = o.get(t);
|
2338
2334
|
if (u && c)
|
2339
2335
|
return u == t && c == e;
|
2340
|
-
var
|
2341
|
-
for (o.set(e, t), o.set(t, e); ++
|
2342
|
-
var b = e[
|
2336
|
+
var g = -1, p = !0, _ = r & COMPARE_UNORDERED_FLAG$3 ? new SetCache() : void 0;
|
2337
|
+
for (o.set(e, t), o.set(t, e); ++g < i; ) {
|
2338
|
+
var b = e[g], m = t[g];
|
2343
2339
|
if (n)
|
2344
|
-
var v = s ? n(
|
2340
|
+
var v = s ? n(m, b, g, t, e, o) : n(b, m, g, e, t, o);
|
2345
2341
|
if (v !== void 0) {
|
2346
2342
|
if (v)
|
2347
2343
|
continue;
|
2348
|
-
|
2344
|
+
p = !1;
|
2349
2345
|
break;
|
2350
2346
|
}
|
2351
|
-
if (
|
2347
|
+
if (_) {
|
2352
2348
|
if (!arraySome(t, function(C, y) {
|
2353
|
-
if (!cacheHas(
|
2354
|
-
return
|
2349
|
+
if (!cacheHas(_, y) && (b === C || a(b, C, r, n, o)))
|
2350
|
+
return _.push(y);
|
2355
2351
|
})) {
|
2356
|
-
|
2352
|
+
p = !1;
|
2357
2353
|
break;
|
2358
2354
|
}
|
2359
|
-
} else if (!(b ===
|
2360
|
-
|
2355
|
+
} else if (!(b === m || a(b, m, r, n, o))) {
|
2356
|
+
p = !1;
|
2361
2357
|
break;
|
2362
2358
|
}
|
2363
2359
|
}
|
2364
|
-
return o.delete(e), o.delete(t),
|
2360
|
+
return o.delete(e), o.delete(t), p;
|
2365
2361
|
}
|
2366
2362
|
function mapToArray(e) {
|
2367
2363
|
var t = -1, r = Array(e.size);
|
@@ -2416,53 +2412,53 @@ function equalObjects(e, t, r, n, a, o) {
|
|
2416
2412
|
var s = r & COMPARE_PARTIAL_FLAG$3, i = getAllKeys(e), l = i.length, u = getAllKeys(t), c = u.length;
|
2417
2413
|
if (l != c && !s)
|
2418
2414
|
return !1;
|
2419
|
-
for (var
|
2420
|
-
var
|
2421
|
-
if (!(s ?
|
2415
|
+
for (var g = l; g--; ) {
|
2416
|
+
var p = i[g];
|
2417
|
+
if (!(s ? p in t : hasOwnProperty$1.call(t, p)))
|
2422
2418
|
return !1;
|
2423
2419
|
}
|
2424
|
-
var
|
2425
|
-
if (
|
2426
|
-
return
|
2427
|
-
var
|
2420
|
+
var _ = o.get(e), b = o.get(t);
|
2421
|
+
if (_ && b)
|
2422
|
+
return _ == t && b == e;
|
2423
|
+
var m = !0;
|
2428
2424
|
o.set(e, t), o.set(t, e);
|
2429
|
-
for (var v = s; ++
|
2430
|
-
|
2431
|
-
var C = e[
|
2425
|
+
for (var v = s; ++g < l; ) {
|
2426
|
+
p = i[g];
|
2427
|
+
var C = e[p], y = t[p];
|
2432
2428
|
if (n)
|
2433
|
-
var E = s ? n(y, C,
|
2429
|
+
var E = s ? n(y, C, p, t, e, o) : n(C, y, p, e, t, o);
|
2434
2430
|
if (!(E === void 0 ? C === y || a(C, y, r, n, o) : E)) {
|
2435
|
-
|
2431
|
+
m = !1;
|
2436
2432
|
break;
|
2437
2433
|
}
|
2438
|
-
v || (v =
|
2434
|
+
v || (v = p == "constructor");
|
2439
2435
|
}
|
2440
|
-
if (
|
2441
|
-
var
|
2442
|
-
|
2436
|
+
if (m && !v) {
|
2437
|
+
var k = e.constructor, V = t.constructor;
|
2438
|
+
k != V && "constructor" in e && "constructor" in t && !(typeof k == "function" && k instanceof k && typeof V == "function" && V instanceof V) && (m = !1);
|
2443
2439
|
}
|
2444
|
-
return o.delete(e), o.delete(t),
|
2440
|
+
return o.delete(e), o.delete(t), m;
|
2445
2441
|
}
|
2446
2442
|
var COMPARE_PARTIAL_FLAG$2 = 1, argsTag = "[object Arguments]", arrayTag = "[object Array]", objectTag = "[object Object]", objectProto = Object.prototype, hasOwnProperty = objectProto.hasOwnProperty;
|
2447
2443
|
function baseIsEqualDeep(e, t, r, n, a, o) {
|
2448
2444
|
var s = isArray$1(e), i = isArray$1(t), l = s ? arrayTag : getTag$1(e), u = i ? arrayTag : getTag$1(t);
|
2449
2445
|
l = l == argsTag ? objectTag : l, u = u == argsTag ? objectTag : u;
|
2450
|
-
var c = l == objectTag,
|
2451
|
-
if (
|
2446
|
+
var c = l == objectTag, g = u == objectTag, p = l == u;
|
2447
|
+
if (p && isBuffer$1(e)) {
|
2452
2448
|
if (!isBuffer$1(t))
|
2453
2449
|
return !1;
|
2454
2450
|
s = !0, c = !1;
|
2455
2451
|
}
|
2456
|
-
if (
|
2452
|
+
if (p && !c)
|
2457
2453
|
return o || (o = new Stack()), s || isTypedArray$1(e) ? equalArrays(e, t, r, n, a, o) : equalByTag(e, t, l, r, n, a, o);
|
2458
2454
|
if (!(r & COMPARE_PARTIAL_FLAG$2)) {
|
2459
|
-
var
|
2460
|
-
if (
|
2461
|
-
var
|
2462
|
-
return o || (o = new Stack()), a(
|
2455
|
+
var _ = c && hasOwnProperty.call(e, "__wrapped__"), b = g && hasOwnProperty.call(t, "__wrapped__");
|
2456
|
+
if (_ || b) {
|
2457
|
+
var m = _ ? e.value() : e, v = b ? t.value() : t;
|
2458
|
+
return o || (o = new Stack()), a(m, v, r, n, o);
|
2463
2459
|
}
|
2464
2460
|
}
|
2465
|
-
return
|
2461
|
+
return p ? (o || (o = new Stack()), equalObjects(e, t, r, n, a, o)) : !1;
|
2466
2462
|
}
|
2467
2463
|
function baseIsEqual(e, t, r, n, a) {
|
2468
2464
|
return e === t ? !0 : e == null || t == null || !isObjectLike(e) && !isObjectLike(t) ? e !== e && t !== t : baseIsEqualDeep(e, t, r, n, baseIsEqual, a);
|
@@ -2484,10 +2480,10 @@ function baseIsMatch(e, t, r, n) {
|
|
2484
2480
|
if (u === void 0 && !(l in e))
|
2485
2481
|
return !1;
|
2486
2482
|
} else {
|
2487
|
-
var
|
2483
|
+
var g = new Stack();
|
2488
2484
|
if (n)
|
2489
|
-
var
|
2490
|
-
if (!(
|
2485
|
+
var p = n(u, c, l, e, t, g);
|
2486
|
+
if (!(p === void 0 ? baseIsEqual(c, u, COMPARE_PARTIAL_FLAG$1 | COMPARE_UNORDERED_FLAG$1, n, g) : p))
|
2491
2487
|
return !1;
|
2492
2488
|
}
|
2493
2489
|
}
|
@@ -2598,14 +2594,14 @@ function baseDifference(e, t, r, n) {
|
|
2598
2594
|
r && (t = arrayMap(t, baseUnary(r))), n ? (o = arrayIncludesWith, s = !1) : t.length >= LARGE_ARRAY_SIZE$1 && (o = cacheHas, s = !1, t = new SetCache(t));
|
2599
2595
|
e:
|
2600
2596
|
for (; ++a < i; ) {
|
2601
|
-
var c = e[a],
|
2602
|
-
if (c = n || c !== 0 ? c : 0, s &&
|
2603
|
-
for (var
|
2604
|
-
if (t[
|
2597
|
+
var c = e[a], g = r == null ? c : r(c);
|
2598
|
+
if (c = n || c !== 0 ? c : 0, s && g === g) {
|
2599
|
+
for (var p = u; p--; )
|
2600
|
+
if (t[p] === g)
|
2605
2601
|
continue e;
|
2606
2602
|
l.push(c);
|
2607
2603
|
} else
|
2608
|
-
o(t,
|
2604
|
+
o(t, g, n) || l.push(c);
|
2609
2605
|
}
|
2610
2606
|
return l;
|
2611
2607
|
}
|
@@ -2750,14 +2746,14 @@ function baseUniq(e, t, r) {
|
|
2750
2746
|
l = t ? [] : i;
|
2751
2747
|
e:
|
2752
2748
|
for (; ++n < o; ) {
|
2753
|
-
var c = e[n],
|
2754
|
-
if (c = r || c !== 0 ? c : 0, s &&
|
2755
|
-
for (var
|
2756
|
-
if (l[
|
2749
|
+
var c = e[n], g = t ? t(c) : c;
|
2750
|
+
if (c = r || c !== 0 ? c : 0, s && g === g) {
|
2751
|
+
for (var p = l.length; p--; )
|
2752
|
+
if (l[p] === g)
|
2757
2753
|
continue e;
|
2758
|
-
t && l.push(
|
2754
|
+
t && l.push(g), i.push(c);
|
2759
2755
|
} else
|
2760
|
-
a(l,
|
2756
|
+
a(l, g, r) || (l !== i && l.push(g), i.push(c));
|
2761
2757
|
}
|
2762
2758
|
return i;
|
2763
2759
|
}
|
@@ -2843,8 +2839,8 @@ function rgbToHsv(e, t, r) {
|
|
2843
2839
|
}
|
2844
2840
|
function hsvToRgb(e, t, r) {
|
2845
2841
|
e = bound01(e, 360) * 6, t = bound01(t, 100), r = bound01(r, 100);
|
2846
|
-
var n = Math.floor(e), a = e - n, o = r * (1 - t), s = r * (1 - a * t), i = r * (1 - (1 - a) * t), l = n % 6, u = [r, s, o, o, i, r][l], c = [i, r, r, s, o, o][l],
|
2847
|
-
return { r: u * 255, g: c * 255, b:
|
2842
|
+
var n = Math.floor(e), a = e - n, o = r * (1 - t), s = r * (1 - a * t), i = r * (1 - (1 - a) * t), l = n % 6, u = [r, s, o, o, i, r][l], c = [i, r, r, s, o, o][l], g = [o, o, i, r, r, s][l];
|
2843
|
+
return { r: u * 255, g: c * 255, b: g * 255 };
|
2848
2844
|
}
|
2849
2845
|
function rgbToHex(e, t, r, n) {
|
2850
2846
|
var a = [
|
@@ -3154,8 +3150,8 @@ function generate$1(e) {
|
|
3154
3150
|
r.push(u);
|
3155
3151
|
}
|
3156
3152
|
return t.theme === "dark" ? darkColorMap.map(function(c) {
|
3157
|
-
var
|
3158
|
-
return
|
3153
|
+
var g = c.index, p = c.opacity, _ = toHex(mix(inputToRGB(t.backgroundColor || "#141414"), inputToRGB(r[g]), p * 100));
|
3154
|
+
return _;
|
3159
3155
|
}) : r;
|
3160
3156
|
}
|
3161
3157
|
var presetPrimaryColors = {
|
@@ -3511,25 +3507,25 @@ function _objectWithoutPropertiesLoose(e, t) {
|
|
3511
3507
|
}
|
3512
3508
|
setTwoToneColor("#1890ff");
|
3513
3509
|
var Icon$1 = function(t, r) {
|
3514
|
-
var n, a = _objectSpread$i({}, t, r.attrs), o = a.class, s = a.icon, i = a.spin, l = a.rotate, u = a.tabindex, c = a.twoToneColor,
|
3510
|
+
var n, a = _objectSpread$i({}, t, r.attrs), o = a.class, s = a.icon, i = a.spin, l = a.rotate, u = a.tabindex, c = a.twoToneColor, g = a.onClick, p = _objectWithoutProperties(a, _excluded), _ = (n = {
|
3515
3511
|
anticon: !0
|
3516
|
-
}, _defineProperty$i(n, "anticon-".concat(s.name), Boolean(s.name)), _defineProperty$i(n, o, o), n), b = i === "" || !!i || s.name === "loading" ? "anticon-spin" : "",
|
3517
|
-
|
3512
|
+
}, _defineProperty$i(n, "anticon-".concat(s.name), Boolean(s.name)), _defineProperty$i(n, o, o), n), b = i === "" || !!i || s.name === "loading" ? "anticon-spin" : "", m = u;
|
3513
|
+
m === void 0 && g && (m = -1, p.tabindex = m);
|
3518
3514
|
var v = l ? {
|
3519
3515
|
msTransform: "rotate(".concat(l, "deg)"),
|
3520
3516
|
transform: "rotate(".concat(l, "deg)")
|
3521
|
-
} : void 0, C = normalizeTwoToneColors(c), y = _slicedToArray(C, 2), E = y[0],
|
3517
|
+
} : void 0, C = normalizeTwoToneColors(c), y = _slicedToArray(C, 2), E = y[0], k = y[1];
|
3522
3518
|
return createVNode("span", _objectSpread$i({
|
3523
3519
|
role: "img",
|
3524
3520
|
"aria-label": s.name
|
3525
|
-
},
|
3526
|
-
onClick:
|
3527
|
-
class:
|
3521
|
+
}, p, {
|
3522
|
+
onClick: g,
|
3523
|
+
class: _
|
3528
3524
|
}), [createVNode(VueIcon, {
|
3529
3525
|
class: b,
|
3530
3526
|
icon: s,
|
3531
3527
|
primaryColor: E,
|
3532
|
-
secondaryColor:
|
3528
|
+
secondaryColor: k,
|
3533
3529
|
style: v
|
3534
3530
|
}, null)]);
|
3535
3531
|
};
|
@@ -4485,59 +4481,59 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4485
4481
|
(function(r, n) {
|
4486
4482
|
e.exports = n();
|
4487
4483
|
})(commonjsGlobal, function() {
|
4488
|
-
var r = 1e3, n = 6e4, a = 36e5, o = "millisecond", s = "second", i = "minute", l = "hour", u = "day", c = "week",
|
4489
|
-
var M = ["th", "st", "nd", "rd"], O =
|
4490
|
-
return "[" +
|
4491
|
-
} }, E = function(
|
4492
|
-
var R = String(
|
4493
|
-
return !R || R.length >= M ?
|
4494
|
-
},
|
4495
|
-
var M = -
|
4484
|
+
var r = 1e3, n = 6e4, a = 36e5, o = "millisecond", s = "second", i = "minute", l = "hour", u = "day", c = "week", g = "month", p = "quarter", _ = "year", b = "date", m = "Invalid Date", v = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, C = /\[([^\]]+)]|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, y = { 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(w) {
|
4485
|
+
var M = ["th", "st", "nd", "rd"], O = w % 100;
|
4486
|
+
return "[" + w + (M[(O - 20) % 10] || M[O] || M[0]) + "]";
|
4487
|
+
} }, E = function(w, M, O) {
|
4488
|
+
var R = String(w);
|
4489
|
+
return !R || R.length >= M ? w : "" + Array(M + 1 - R.length).join(O) + w;
|
4490
|
+
}, k = { s: E, z: function(w) {
|
4491
|
+
var M = -w.utcOffset(), O = Math.abs(M), R = Math.floor(O / 60), F = O % 60;
|
4496
4492
|
return (M <= 0 ? "+" : "-") + E(R, 2, "0") + ":" + E(F, 2, "0");
|
4497
|
-
}, m: function
|
4493
|
+
}, m: function w(M, O) {
|
4498
4494
|
if (M.date() < O.date())
|
4499
|
-
return -
|
4500
|
-
var R = 12 * (O.year() - M.year()) + (O.month() - M.month()), F = M.clone().add(R,
|
4495
|
+
return -w(O, M);
|
4496
|
+
var R = 12 * (O.year() - M.year()) + (O.month() - M.month()), F = M.clone().add(R, g), G = O - F < 0, P = M.clone().add(R + (G ? -1 : 1), g);
|
4501
4497
|
return +(-(R + (O - F) / (G ? F - P : P - F)) || 0);
|
4502
|
-
}, a: function(
|
4503
|
-
return
|
4504
|
-
}, p: function(
|
4505
|
-
return { M:
|
4506
|
-
}, u: function(
|
4507
|
-
return
|
4508
|
-
} },
|
4509
|
-
T[
|
4510
|
-
var B = function(
|
4511
|
-
return
|
4512
|
-
}, D = function
|
4498
|
+
}, a: function(w) {
|
4499
|
+
return w < 0 ? Math.ceil(w) || 0 : Math.floor(w);
|
4500
|
+
}, p: function(w) {
|
4501
|
+
return { M: g, y: _, w: c, d: u, D: b, h: l, m: i, s, ms: o, Q: p }[w] || String(w || "").toLowerCase().replace(/s$/, "");
|
4502
|
+
}, u: function(w) {
|
4503
|
+
return w === void 0;
|
4504
|
+
} }, V = "en", T = {};
|
4505
|
+
T[V] = y;
|
4506
|
+
var B = function(w) {
|
4507
|
+
return w instanceof N;
|
4508
|
+
}, D = function w(M, O, R) {
|
4513
4509
|
var F;
|
4514
4510
|
if (!M)
|
4515
|
-
return
|
4511
|
+
return V;
|
4516
4512
|
if (typeof M == "string") {
|
4517
4513
|
var G = M.toLowerCase();
|
4518
4514
|
T[G] && (F = G), O && (T[G] = O, F = G);
|
4519
4515
|
var P = M.split("-");
|
4520
4516
|
if (!F && P.length > 1)
|
4521
|
-
return
|
4517
|
+
return w(P[0]);
|
4522
4518
|
} else {
|
4523
4519
|
var U = M.name;
|
4524
4520
|
T[U] = M, F = U;
|
4525
4521
|
}
|
4526
|
-
return !R && F && (
|
4527
|
-
},
|
4528
|
-
if (B(
|
4529
|
-
return
|
4522
|
+
return !R && F && (V = F), F || !R && V;
|
4523
|
+
}, I = function(w, M) {
|
4524
|
+
if (B(w))
|
4525
|
+
return w.clone();
|
4530
4526
|
var O = typeof M == "object" ? M : {};
|
4531
|
-
return O.date =
|
4532
|
-
}, A =
|
4533
|
-
A.l = D, A.i = B, A.w = function(
|
4534
|
-
return
|
4527
|
+
return O.date = w, O.args = arguments, new N(O);
|
4528
|
+
}, A = k;
|
4529
|
+
A.l = D, A.i = B, A.w = function(w, M) {
|
4530
|
+
return I(w, { locale: M.$L, utc: M.$u, x: M.$x, $offset: M.$offset });
|
4535
4531
|
};
|
4536
|
-
var
|
4537
|
-
function
|
4532
|
+
var N = function() {
|
4533
|
+
function w(O) {
|
4538
4534
|
this.$L = D(O.locale, null, !0), this.parse(O);
|
4539
4535
|
}
|
4540
|
-
var M =
|
4536
|
+
var M = w.prototype;
|
4541
4537
|
return M.parse = function(O) {
|
4542
4538
|
this.$d = function(R) {
|
4543
4539
|
var F = R.date, G = R.utc;
|
@@ -4562,14 +4558,14 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4562
4558
|
}, M.$utils = function() {
|
4563
4559
|
return A;
|
4564
4560
|
}, M.isValid = function() {
|
4565
|
-
return this.$d.toString() !==
|
4561
|
+
return this.$d.toString() !== m;
|
4566
4562
|
}, M.isSame = function(O, R) {
|
4567
|
-
var F =
|
4563
|
+
var F = I(O);
|
4568
4564
|
return this.startOf(R) <= F && F <= this.endOf(R);
|
4569
4565
|
}, M.isAfter = function(O, R) {
|
4570
|
-
return
|
4566
|
+
return I(O) < this.startOf(R);
|
4571
4567
|
}, M.isBefore = function(O, R) {
|
4572
|
-
return this.endOf(R) <
|
4568
|
+
return this.endOf(R) < I(O);
|
4573
4569
|
}, M.$g = function(O, R, F) {
|
4574
4570
|
return A.u(O) ? this[R] : this.set(F, O);
|
4575
4571
|
}, M.unix = function() {
|
@@ -4582,15 +4578,15 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4582
4578
|
return G ? te : te.endOf(u);
|
4583
4579
|
}, H = function(ee, z) {
|
4584
4580
|
return A.w(F.toDate()[ee].apply(F.toDate("s"), (G ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(z)), F);
|
4585
|
-
}, Q = this.$W, J = this.$M,
|
4581
|
+
}, Q = this.$W, J = this.$M, $ = this.$D, x = "set" + (this.$u ? "UTC" : "");
|
4586
4582
|
switch (P) {
|
4587
|
-
case
|
4583
|
+
case _:
|
4588
4584
|
return G ? U(1, 0) : U(31, 11);
|
4589
|
-
case
|
4585
|
+
case g:
|
4590
4586
|
return G ? U(1, J) : U(0, J + 1);
|
4591
4587
|
case c:
|
4592
4588
|
var X = this.$locale().weekStart || 0, q = (Q < X ? Q + 7 : Q) - X;
|
4593
|
-
return U(G ?
|
4589
|
+
return U(G ? $ - q : $ + (6 - q), J);
|
4594
4590
|
case u:
|
4595
4591
|
case b:
|
4596
4592
|
return H(x + "Hours", 0);
|
@@ -4606,8 +4602,8 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4606
4602
|
}, M.endOf = function(O) {
|
4607
4603
|
return this.startOf(O, !1);
|
4608
4604
|
}, M.$set = function(O, R) {
|
4609
|
-
var F, G = A.p(O), P = "set" + (this.$u ? "UTC" : ""), U = (F = {}, F[u] = P + "Date", F[b] = P + "Date", F[
|
4610
|
-
if (G ===
|
4605
|
+
var F, G = A.p(O), P = "set" + (this.$u ? "UTC" : ""), U = (F = {}, F[u] = P + "Date", F[b] = P + "Date", F[g] = P + "Month", F[_] = P + "FullYear", F[l] = P + "Hours", F[i] = P + "Minutes", F[s] = P + "Seconds", F[o] = P + "Milliseconds", F)[G], H = G === u ? this.$D + (R - this.$W) : R;
|
4606
|
+
if (G === g || G === _) {
|
4611
4607
|
var Q = this.clone().set(b, 1);
|
4612
4608
|
Q.$d[U](H), Q.init(), this.$d = Q.set(b, Math.min(this.$D, Q.daysInMonth())).$d;
|
4613
4609
|
} else
|
@@ -4621,13 +4617,13 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4621
4617
|
var F, G = this;
|
4622
4618
|
O = Number(O);
|
4623
4619
|
var P = A.p(R), U = function(J) {
|
4624
|
-
var
|
4625
|
-
return A.w(
|
4620
|
+
var $ = I(G);
|
4621
|
+
return A.w($.date($.date() + Math.round(J * O)), G);
|
4626
4622
|
};
|
4627
|
-
if (P ===
|
4628
|
-
return this.set(
|
4629
|
-
if (P ===
|
4630
|
-
return this.set(
|
4623
|
+
if (P === g)
|
4624
|
+
return this.set(g, this.$M + O);
|
4625
|
+
if (P === _)
|
4626
|
+
return this.set(_, this.$y + O);
|
4631
4627
|
if (P === u)
|
4632
4628
|
return U(1);
|
4633
4629
|
if (P === c)
|
@@ -4639,25 +4635,25 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4639
4635
|
}, M.format = function(O) {
|
4640
4636
|
var R = this, F = this.$locale();
|
4641
4637
|
if (!this.isValid())
|
4642
|
-
return F.invalidDate ||
|
4643
|
-
var G = O || "YYYY-MM-DDTHH:mm:ssZ", P = A.z(this), U = this.$H, H = this.$m, Q = this.$M, J = F.weekdays,
|
4638
|
+
return F.invalidDate || m;
|
4639
|
+
var G = O || "YYYY-MM-DDTHH:mm:ssZ", P = A.z(this), U = this.$H, H = this.$m, Q = this.$M, J = F.weekdays, $ = F.months, x = function(z, te, ie, le) {
|
4644
4640
|
return z && (z[te] || z(R, G)) || ie[te].slice(0, le);
|
4645
4641
|
}, X = function(z) {
|
4646
4642
|
return A.s(U % 12 || 12, z, "0");
|
4647
4643
|
}, q = F.meridiem || function(z, te, ie) {
|
4648
4644
|
var le = z < 12 ? "AM" : "PM";
|
4649
4645
|
return ie ? le.toLowerCase() : le;
|
4650
|
-
}, ee = { YY: String(this.$y).slice(-2), YYYY: this.$y, M: Q + 1, MM: A.s(Q + 1, 2, "0"), MMM: x(F.monthsShort, Q,
|
4646
|
+
}, ee = { YY: String(this.$y).slice(-2), YYYY: this.$y, M: Q + 1, MM: A.s(Q + 1, 2, "0"), MMM: x(F.monthsShort, Q, $, 3), MMMM: x($, Q), D: this.$D, DD: A.s(this.$D, 2, "0"), d: String(this.$W), dd: x(F.weekdaysMin, this.$W, J, 2), ddd: x(F.weekdaysShort, this.$W, J, 3), dddd: J[this.$W], H: String(U), HH: A.s(U, 2, "0"), h: X(1), hh: X(2), a: q(U, H, !0), A: q(U, H, !1), m: String(H), mm: A.s(H, 2, "0"), s: String(this.$s), ss: A.s(this.$s, 2, "0"), SSS: A.s(this.$ms, 3, "0"), Z: P };
|
4651
4647
|
return G.replace(C, function(z, te) {
|
4652
4648
|
return te || ee[z] || P.replace(":", "");
|
4653
4649
|
});
|
4654
4650
|
}, M.utcOffset = function() {
|
4655
4651
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
4656
4652
|
}, M.diff = function(O, R, F) {
|
4657
|
-
var G, P = A.p(R), U =
|
4658
|
-
return J = (G = {}, G[
|
4653
|
+
var G, P = A.p(R), U = I(O), H = (U.utcOffset() - this.utcOffset()) * n, Q = this - U, J = A.m(this, U);
|
4654
|
+
return J = (G = {}, G[_] = J / 12, G[g] = J, G[p] = J / 3, G[c] = (Q - H) / 6048e5, G[u] = (Q - H) / 864e5, G[l] = Q / a, G[i] = Q / n, G[s] = Q / r, G)[P] || Q, F ? J : A.a(J);
|
4659
4655
|
}, M.daysInMonth = function() {
|
4660
|
-
return this.endOf(
|
4656
|
+
return this.endOf(g).$D;
|
4661
4657
|
}, M.$locale = function() {
|
4662
4658
|
return T[this.$L];
|
4663
4659
|
}, M.locale = function(O, R) {
|
@@ -4675,17 +4671,17 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4675
4671
|
return this.$d.toISOString();
|
4676
4672
|
}, M.toString = function() {
|
4677
4673
|
return this.$d.toUTCString();
|
4678
|
-
},
|
4679
|
-
}(),
|
4680
|
-
return
|
4681
|
-
|
4682
|
-
return this.$g(M,
|
4674
|
+
}, w;
|
4675
|
+
}(), L = N.prototype;
|
4676
|
+
return I.prototype = L, [["$ms", o], ["$s", s], ["$m", i], ["$H", l], ["$W", u], ["$M", g], ["$y", _], ["$D", b]].forEach(function(w) {
|
4677
|
+
L[w[1]] = function(M) {
|
4678
|
+
return this.$g(M, w[0], w[1]);
|
4683
4679
|
};
|
4684
|
-
}),
|
4685
|
-
return
|
4686
|
-
},
|
4687
|
-
return
|
4688
|
-
},
|
4680
|
+
}), I.extend = function(w, M) {
|
4681
|
+
return w.$i || (w(M, N, I), w.$i = !0), I;
|
4682
|
+
}, I.locale = D, I.isDayjs = B, I.unix = function(w) {
|
4683
|
+
return I(1e3 * w);
|
4684
|
+
}, I.en = T[V], I.Ls = T, I.p = {}, I;
|
4689
4685
|
});
|
4690
4686
|
})(dayjs_min);
|
4691
4687
|
const dayjs = dayjs_min.exports;
|
@@ -4723,38 +4719,38 @@ function filesize(e, {
|
|
4723
4719
|
spacer: l = SPACE,
|
4724
4720
|
symbols: u = {},
|
4725
4721
|
standard: c = EMPTY,
|
4726
|
-
output:
|
4727
|
-
fullform:
|
4728
|
-
fullforms:
|
4722
|
+
output: g = STRING,
|
4723
|
+
fullform: p = !1,
|
4724
|
+
fullforms: _ = [],
|
4729
4725
|
exponent: b = -1,
|
4730
|
-
roundingMethod:
|
4726
|
+
roundingMethod: m = ROUND,
|
4731
4727
|
precision: v = 0
|
4732
4728
|
} = {}) {
|
4733
|
-
let C = b, y = Number(e), E = [],
|
4729
|
+
let C = b, y = Number(e), E = [], k = 0, V = EMPTY;
|
4734
4730
|
n === -1 && c.length === 0 ? (n = 10, c = JEDEC) : n === -1 && c.length > 0 ? (c = c === IEC ? IEC : JEDEC, n = c === IEC ? 2 : 10) : (n = n === 2 ? 2 : 10, c = n === 10 || c === JEDEC ? JEDEC : IEC);
|
4735
|
-
const T = n === 10 ? 1e3 : 1024, B =
|
4731
|
+
const T = n === 10 ? 1e3 : 1024, B = p === !0, D = y < 0, I = Math[m];
|
4736
4732
|
if (typeof e != "bigint" && isNaN(e))
|
4737
4733
|
throw new TypeError(INVALID_NUMBER);
|
4738
|
-
if (typeof
|
4734
|
+
if (typeof I !== FUNCTION)
|
4739
4735
|
throw new TypeError(INVALID_ROUND);
|
4740
|
-
if (D && (y = -y), (C === -1 || isNaN(C)) && (C = Math.floor(Math.log(y) / Math.log(T)), C < 0 && (C = 0)), C > 8 && (v > 0 && (v += 8 - C), C = 8),
|
4736
|
+
if (D && (y = -y), (C === -1 || isNaN(C)) && (C = Math.floor(Math.log(y) / Math.log(T)), C < 0 && (C = 0)), C > 8 && (v > 0 && (v += 8 - C), C = 8), g === EXPONENT)
|
4741
4737
|
return C;
|
4742
4738
|
if (y === 0)
|
4743
|
-
E[0] = 0,
|
4739
|
+
E[0] = 0, V = E[1] = STRINGS.symbol[c][t ? BITS : BYTES][C];
|
4744
4740
|
else {
|
4745
|
-
|
4741
|
+
k = y / (n === 2 ? Math.pow(2, C * 10) : Math.pow(1e3, C)), t && (k = k * 8, k >= T && C < 8 && (k = k / T, C++));
|
4746
4742
|
const A = Math.pow(10, C > 0 ? a : 0);
|
4747
|
-
E[0] = k
|
4743
|
+
E[0] = I(k * A) / A, E[0] === T && C < 8 && b === -1 && (E[0] = 1, C++), V = E[1] = n === 10 && C === 1 ? t ? SI_KBIT : SI_KBYTE : STRINGS.symbol[c][t ? BITS : BYTES][C];
|
4748
4744
|
}
|
4749
4745
|
if (D && (E[0] = -E[0]), v > 0 && (E[0] = E[0].toPrecision(v)), E[1] = u[E[1]] || E[1], o === !0 ? E[0] = E[0].toLocaleString() : o.length > 0 ? E[0] = E[0].toLocaleString(o, s) : i.length > 0 && (E[0] = E[0].toString().replace(PERIOD, i)), r && Number.isInteger(E[0]) === !1 && a > 0) {
|
4750
|
-
const A = i || PERIOD,
|
4751
|
-
E[0] = `${
|
4746
|
+
const A = i || PERIOD, N = E[0].toString().split(A), L = N[1] || EMPTY, w = L.length, M = a - w;
|
4747
|
+
E[0] = `${N[0]}${A}${L.padEnd(w + M, ZERO)}`;
|
4752
4748
|
}
|
4753
|
-
return B && (E[1] =
|
4749
|
+
return B && (E[1] = _[C] ? _[C] : STRINGS.fullform[c][C] + (t ? BIT : BYTE) + (E[0] === 1 ? EMPTY : S)), g === ARRAY ? E : g === OBJECT ? {
|
4754
4750
|
value: E[0],
|
4755
4751
|
symbol: E[1],
|
4756
4752
|
exponent: C,
|
4757
|
-
unit:
|
4753
|
+
unit: V
|
4758
4754
|
} : E.join(l);
|
4759
4755
|
}
|
4760
4756
|
const data$5 = {
|
@@ -5033,41 +5029,41 @@ function iconToSVG(e, t) {
|
|
5033
5029
|
};
|
5034
5030
|
let o = r.body;
|
5035
5031
|
[r, n].forEach((b) => {
|
5036
|
-
const
|
5032
|
+
const m = [], v = b.hFlip, C = b.vFlip;
|
5037
5033
|
let y = b.rotate;
|
5038
|
-
v ? C ? y += 2 : (
|
5034
|
+
v ? C ? y += 2 : (m.push(
|
5039
5035
|
"translate(" + (a.width + a.left).toString() + " " + (0 - a.top).toString() + ")"
|
5040
|
-
),
|
5036
|
+
), m.push("scale(-1 1)"), a.top = a.left = 0) : C && (m.push(
|
5041
5037
|
"translate(" + (0 - a.left).toString() + " " + (a.height + a.top).toString() + ")"
|
5042
|
-
),
|
5038
|
+
), m.push("scale(1 -1)"), a.top = a.left = 0);
|
5043
5039
|
let E;
|
5044
5040
|
switch (y < 0 && (y -= Math.floor(y / 4) * 4), y = y % 4, y) {
|
5045
5041
|
case 1:
|
5046
|
-
E = a.height / 2 + a.top,
|
5042
|
+
E = a.height / 2 + a.top, m.unshift(
|
5047
5043
|
"rotate(90 " + E.toString() + " " + E.toString() + ")"
|
5048
5044
|
);
|
5049
5045
|
break;
|
5050
5046
|
case 2:
|
5051
|
-
|
5047
|
+
m.unshift(
|
5052
5048
|
"rotate(180 " + (a.width / 2 + a.left).toString() + " " + (a.height / 2 + a.top).toString() + ")"
|
5053
5049
|
);
|
5054
5050
|
break;
|
5055
5051
|
case 3:
|
5056
|
-
E = a.width / 2 + a.left,
|
5052
|
+
E = a.width / 2 + a.left, m.unshift(
|
5057
5053
|
"rotate(-90 " + E.toString() + " " + E.toString() + ")"
|
5058
5054
|
);
|
5059
5055
|
break;
|
5060
5056
|
}
|
5061
|
-
y % 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)),
|
5057
|
+
y % 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)), m.length && (o = '<g transform="' + m.join(" ") + '">' + o + "</g>");
|
5062
5058
|
});
|
5063
5059
|
const s = n.width, i = n.height, l = a.width, u = a.height;
|
5064
|
-
let c,
|
5065
|
-
s === null ? (
|
5066
|
-
const
|
5067
|
-
isUnsetKeyword(
|
5060
|
+
let c, g;
|
5061
|
+
s === null ? (g = i === null ? "1em" : i === "auto" ? u : i, c = calculateSize(g, l / u)) : (c = s === "auto" ? l : s, g = i === null ? calculateSize(c, u / l) : i === "auto" ? u : i);
|
5062
|
+
const p = {}, _ = (b, m) => {
|
5063
|
+
isUnsetKeyword(m) || (p[b] = m.toString());
|
5068
5064
|
};
|
5069
|
-
return
|
5070
|
-
attributes:
|
5065
|
+
return _("width", c), _("height", g), p.viewBox = a.left.toString() + " " + a.top.toString() + " " + l.toString() + " " + u.toString(), {
|
5066
|
+
attributes: p,
|
5071
5067
|
body: o
|
5072
5068
|
};
|
5073
5069
|
}
|
@@ -5252,12 +5248,12 @@ function sortIcons(e) {
|
|
5252
5248
|
const o = a.provider, s = a.prefix, i = a.name, l = r[o] || (r[o] = /* @__PURE__ */ Object.create(null)), u = l[s] || (l[s] = getStorage(o, s));
|
5253
5249
|
let c;
|
5254
5250
|
i in u.icons ? c = t.loaded : s === "" || u.missing.has(i) ? c = t.missing : c = t.pending;
|
5255
|
-
const
|
5251
|
+
const g = {
|
5256
5252
|
provider: o,
|
5257
5253
|
prefix: s,
|
5258
5254
|
name: i
|
5259
5255
|
};
|
5260
|
-
c.push(
|
5256
|
+
c.push(g);
|
5261
5257
|
}), t;
|
5262
5258
|
}
|
5263
5259
|
function removeCallback(e, t) {
|
@@ -5347,18 +5343,18 @@ function sendQuery(e, t, r, n) {
|
|
5347
5343
|
} else
|
5348
5344
|
s = e.resources.slice(o).concat(e.resources.slice(0, o));
|
5349
5345
|
const i = Date.now();
|
5350
|
-
let l = "pending", u = 0, c,
|
5351
|
-
typeof n == "function" &&
|
5346
|
+
let l = "pending", u = 0, c, g = null, p = [], _ = [];
|
5347
|
+
typeof n == "function" && _.push(n);
|
5352
5348
|
function b() {
|
5353
|
-
|
5349
|
+
g && (clearTimeout(g), g = null);
|
5354
5350
|
}
|
5355
|
-
function
|
5356
|
-
l === "pending" && (l = "aborted"), b(),
|
5351
|
+
function m() {
|
5352
|
+
l === "pending" && (l = "aborted"), b(), p.forEach((T) => {
|
5357
5353
|
T.status === "pending" && (T.status = "aborted");
|
5358
|
-
}),
|
5354
|
+
}), p = [];
|
5359
5355
|
}
|
5360
5356
|
function v(T, B) {
|
5361
|
-
B && (
|
5357
|
+
B && (_ = []), typeof T == "function" && _.push(T);
|
5362
5358
|
}
|
5363
5359
|
function C() {
|
5364
5360
|
return {
|
@@ -5366,28 +5362,28 @@ function sendQuery(e, t, r, n) {
|
|
5366
5362
|
payload: t,
|
5367
5363
|
status: l,
|
5368
5364
|
queriesSent: u,
|
5369
|
-
queriesPending:
|
5365
|
+
queriesPending: p.length,
|
5370
5366
|
subscribe: v,
|
5371
|
-
abort:
|
5367
|
+
abort: m
|
5372
5368
|
};
|
5373
5369
|
}
|
5374
5370
|
function y() {
|
5375
|
-
l = "failed",
|
5371
|
+
l = "failed", _.forEach((T) => {
|
5376
5372
|
T(void 0, c);
|
5377
5373
|
});
|
5378
5374
|
}
|
5379
5375
|
function E() {
|
5380
|
-
|
5376
|
+
p.forEach((T) => {
|
5381
5377
|
T.status === "pending" && (T.status = "aborted");
|
5382
|
-
}),
|
5378
|
+
}), p = [];
|
5383
5379
|
}
|
5384
|
-
function
|
5385
|
-
const
|
5386
|
-
switch (
|
5380
|
+
function k(T, B, D) {
|
5381
|
+
const I = B !== "success";
|
5382
|
+
switch (p = p.filter((A) => A !== T), l) {
|
5387
5383
|
case "pending":
|
5388
5384
|
break;
|
5389
5385
|
case "failed":
|
5390
|
-
if (
|
5386
|
+
if (I || !e.dataAfterTimeout)
|
5391
5387
|
return;
|
5392
5388
|
break;
|
5393
5389
|
default:
|
@@ -5397,26 +5393,26 @@ function sendQuery(e, t, r, n) {
|
|
5397
5393
|
c = D, y();
|
5398
5394
|
return;
|
5399
5395
|
}
|
5400
|
-
if (
|
5401
|
-
c = D,
|
5396
|
+
if (I) {
|
5397
|
+
c = D, p.length || (s.length ? V() : y());
|
5402
5398
|
return;
|
5403
5399
|
}
|
5404
5400
|
if (b(), E(), !e.random) {
|
5405
5401
|
const A = e.resources.indexOf(T.resource);
|
5406
5402
|
A !== -1 && A !== e.index && (e.index = A);
|
5407
5403
|
}
|
5408
|
-
l = "completed",
|
5404
|
+
l = "completed", _.forEach((A) => {
|
5409
5405
|
A(D);
|
5410
5406
|
});
|
5411
5407
|
}
|
5412
|
-
function
|
5408
|
+
function V() {
|
5413
5409
|
if (l !== "pending")
|
5414
5410
|
return;
|
5415
5411
|
b();
|
5416
5412
|
const T = s.shift();
|
5417
5413
|
if (T === void 0) {
|
5418
|
-
if (
|
5419
|
-
|
5414
|
+
if (p.length) {
|
5415
|
+
g = setTimeout(() => {
|
5420
5416
|
b(), l === "pending" && (E(), y());
|
5421
5417
|
}, e.timeout);
|
5422
5418
|
return;
|
@@ -5427,13 +5423,13 @@ function sendQuery(e, t, r, n) {
|
|
5427
5423
|
const B = {
|
5428
5424
|
status: "pending",
|
5429
5425
|
resource: T,
|
5430
|
-
callback: (D,
|
5431
|
-
|
5426
|
+
callback: (D, I) => {
|
5427
|
+
k(B, D, I);
|
5432
5428
|
}
|
5433
5429
|
};
|
5434
|
-
|
5430
|
+
p.push(B), u++, g = setTimeout(V, e.rotate), r(T, t, B.callback);
|
5435
5431
|
}
|
5436
|
-
return setTimeout(
|
5432
|
+
return setTimeout(V), C;
|
5437
5433
|
}
|
5438
5434
|
function initRedundancy(e) {
|
5439
5435
|
const t = {
|
@@ -5449,8 +5445,8 @@ function initRedundancy(e) {
|
|
5449
5445
|
t,
|
5450
5446
|
i,
|
5451
5447
|
l,
|
5452
|
-
(
|
5453
|
-
n(), u && u(
|
5448
|
+
(g, p) => {
|
5449
|
+
n(), u && u(g, p);
|
5454
5450
|
}
|
5455
5451
|
);
|
5456
5452
|
return r.push(c), c;
|
@@ -5662,8 +5658,8 @@ function loadNewIcons(e, t) {
|
|
5662
5658
|
if (!u.length)
|
5663
5659
|
return;
|
5664
5660
|
const c = e.pendingIcons;
|
5665
|
-
c && u.forEach((
|
5666
|
-
c.delete(
|
5661
|
+
c && u.forEach((g) => {
|
5662
|
+
c.delete(g);
|
5667
5663
|
}), storeInBrowserStorage(e, l);
|
5668
5664
|
} catch (u) {
|
5669
5665
|
console.error(u);
|
@@ -5695,11 +5691,11 @@ const loadIcons = (e, t) => {
|
|
5695
5691
|
if (c === i && u === s)
|
5696
5692
|
return;
|
5697
5693
|
s = u, i = c, o.push(getStorage(u, c));
|
5698
|
-
const
|
5699
|
-
|
5694
|
+
const g = a[u] || (a[u] = /* @__PURE__ */ Object.create(null));
|
5695
|
+
g[c] || (g[c] = []);
|
5700
5696
|
}), n.pending.forEach((l) => {
|
5701
|
-
const { provider: u, prefix: c, name:
|
5702
|
-
|
5697
|
+
const { provider: u, prefix: c, name: g } = l, p = getStorage(u, c), _ = p.pendingIcons || (p.pendingIcons = /* @__PURE__ */ new Set());
|
5698
|
+
_.has(g) || (_.add(g), a[u][c].push(g));
|
5703
5699
|
}), o.forEach((l) => {
|
5704
5700
|
const { provider: u, prefix: c } = l;
|
5705
5701
|
a[u][c].length && loadNewIcons(l, a[u][c]);
|
@@ -5807,10 +5803,10 @@ function fixSize(e) {
|
|
5807
5803
|
}
|
5808
5804
|
const render = (e, t) => {
|
5809
5805
|
const r = mergeCustomisations(defaultExtendedIconCustomisations, t), n = { ...svgDefaults }, a = t.mode || "svg", o = {}, s = t.style, i = typeof s == "object" && !(s instanceof Array) ? s : {};
|
5810
|
-
for (let
|
5811
|
-
const v = t[
|
5806
|
+
for (let m in t) {
|
5807
|
+
const v = t[m];
|
5812
5808
|
if (v !== void 0)
|
5813
|
-
switch (
|
5809
|
+
switch (m) {
|
5814
5810
|
case "icon":
|
5815
5811
|
case "style":
|
5816
5812
|
case "onLoad":
|
@@ -5819,7 +5815,7 @@ const render = (e, t) => {
|
|
5819
5815
|
case "inline":
|
5820
5816
|
case "hFlip":
|
5821
5817
|
case "vFlip":
|
5822
|
-
r[
|
5818
|
+
r[m] = v === !0 || v === "true" || v === 1;
|
5823
5819
|
break;
|
5824
5820
|
case "flip":
|
5825
5821
|
typeof v == "string" && flipFromString(r, v);
|
@@ -5828,15 +5824,15 @@ const render = (e, t) => {
|
|
5828
5824
|
o.color = v;
|
5829
5825
|
break;
|
5830
5826
|
case "rotate":
|
5831
|
-
typeof v == "string" ? r[
|
5827
|
+
typeof v == "string" ? r[m] = rotateFromString(v) : typeof v == "number" && (r[m] = v);
|
5832
5828
|
break;
|
5833
5829
|
case "ariaHidden":
|
5834
5830
|
case "aria-hidden":
|
5835
5831
|
v !== !0 && v !== "true" && delete n["aria-hidden"];
|
5836
5832
|
break;
|
5837
5833
|
default: {
|
5838
|
-
const C = customisationAliases[
|
5839
|
-
C ? (v === !0 || v === "true" || v === 1) && (r[C] = !0) : defaultExtendedIconCustomisations[
|
5834
|
+
const C = customisationAliases[m];
|
5835
|
+
C ? (v === !0 || v === "true" || v === 1) && (r[C] = !0) : defaultExtendedIconCustomisations[m] === void 0 && (n[m] = v);
|
5840
5836
|
}
|
5841
5837
|
}
|
5842
5838
|
}
|
@@ -5846,13 +5842,13 @@ const render = (e, t) => {
|
|
5846
5842
|
...o,
|
5847
5843
|
...i
|
5848
5844
|
}, Object.assign(n, u);
|
5849
|
-
let
|
5850
|
-
return typeof v == "string" && (v = v.replace(/-/g, "_")), n.innerHTML = replaceIDs(l.body, v ? () => v + "ID" +
|
5845
|
+
let m = 0, v = t.id;
|
5846
|
+
return typeof v == "string" && (v = v.replace(/-/g, "_")), n.innerHTML = replaceIDs(l.body, v ? () => v + "ID" + m++ : "iconifyVue"), h("svg", n);
|
5851
5847
|
}
|
5852
|
-
const { body: c, width:
|
5848
|
+
const { body: c, width: g, height: p } = e, _ = a === "mask" || (a === "bg" ? !1 : c.indexOf("currentColor") !== -1), b = iconToHTML(c, {
|
5853
5849
|
...u,
|
5854
|
-
width:
|
5855
|
-
height:
|
5850
|
+
width: g + "",
|
5851
|
+
height: p + ""
|
5856
5852
|
});
|
5857
5853
|
return n.style = {
|
5858
5854
|
...o,
|
@@ -5860,7 +5856,7 @@ const render = (e, t) => {
|
|
5860
5856
|
width: fixSize(u.width),
|
5861
5857
|
height: fixSize(u.height),
|
5862
5858
|
...commonProps,
|
5863
|
-
...
|
5859
|
+
..._ ? monotoneProps : coloredProps,
|
5864
5860
|
...i
|
5865
5861
|
}, h("span", n);
|
5866
5862
|
};
|
@@ -6024,16 +6020,16 @@ function createOptionsStore(e, t, r, n) {
|
|
6024
6020
|
function u() {
|
6025
6021
|
!i && (process.env.NODE_ENV === "production" || !n) && (r.state.value[e] = a ? a() : {});
|
6026
6022
|
const c = process.env.NODE_ENV !== "production" && n ? toRefs(ref(a ? a() : {}).value) : toRefs(r.state.value[e]);
|
6027
|
-
return assign$1(c, o, Object.keys(s || {}).reduce((
|
6023
|
+
return assign$1(c, o, Object.keys(s || {}).reduce((g, p) => (g[p] = markRaw(computed(() => {
|
6028
6024
|
setActivePinia(r);
|
6029
|
-
const
|
6030
|
-
return s[
|
6031
|
-
})),
|
6025
|
+
const _ = r._s.get(e);
|
6026
|
+
return s[p].call(_, _);
|
6027
|
+
})), g), {}));
|
6032
6028
|
}
|
6033
6029
|
return l = createSetupStore(e, u, t, r, n), l.$reset = function() {
|
6034
|
-
const
|
6035
|
-
this.$patch((
|
6036
|
-
assign$1(
|
6030
|
+
const g = a ? a() : {};
|
6031
|
+
this.$patch((p) => {
|
6032
|
+
assign$1(p, g);
|
6037
6033
|
});
|
6038
6034
|
}, l;
|
6039
6035
|
}
|
@@ -6046,157 +6042,157 @@ function createSetupStore(e, t, r = {}, n, a) {
|
|
6046
6042
|
deep: !0
|
6047
6043
|
};
|
6048
6044
|
process.env.NODE_ENV !== "production" && !isVue2 && (l.onTrigger = (D) => {
|
6049
|
-
u ?
|
6045
|
+
u ? _ = D : u == !1 && !T._hotUpdating && (Array.isArray(_) ? _.push(D) : console.error("\u{1F34D} debuggerEvents should be an array. This is most likely an internal Pinia bug."));
|
6050
6046
|
});
|
6051
|
-
let u, c,
|
6047
|
+
let u, c, g = markRaw([]), p = markRaw([]), _;
|
6052
6048
|
const b = n.state.value[e];
|
6053
6049
|
!s && !b && (process.env.NODE_ENV === "production" || !a) && (n.state.value[e] = {});
|
6054
|
-
const
|
6050
|
+
const m = ref({});
|
6055
6051
|
function v(D) {
|
6056
|
-
let
|
6057
|
-
u = c = !1, process.env.NODE_ENV !== "production" && (
|
6052
|
+
let I;
|
6053
|
+
u = c = !1, process.env.NODE_ENV !== "production" && (_ = []), typeof D == "function" ? (D(n.state.value[e]), I = {
|
6058
6054
|
type: MutationType.patchFunction,
|
6059
6055
|
storeId: e,
|
6060
|
-
events:
|
6061
|
-
}) : (mergeReactiveObjects(n.state.value[e], D),
|
6056
|
+
events: _
|
6057
|
+
}) : (mergeReactiveObjects(n.state.value[e], D), I = {
|
6062
6058
|
type: MutationType.patchObject,
|
6063
6059
|
payload: D,
|
6064
6060
|
storeId: e,
|
6065
|
-
events:
|
6061
|
+
events: _
|
6066
6062
|
}), nextTick().then(() => {
|
6067
6063
|
u = !0;
|
6068
|
-
}), c = !0, triggerSubscriptions(
|
6064
|
+
}), c = !0, triggerSubscriptions(g, I, n.state.value[e]);
|
6069
6065
|
}
|
6070
6066
|
const C = process.env.NODE_ENV !== "production" ? () => {
|
6071
6067
|
throw new Error(`\u{1F34D}: Store "${e}" is build using the setup syntax and does not implement $reset().`);
|
6072
6068
|
} : noop$1;
|
6073
6069
|
function y() {
|
6074
|
-
o.stop(),
|
6070
|
+
o.stop(), g = [], p = [], n._s.delete(e);
|
6075
6071
|
}
|
6076
|
-
function E(D,
|
6072
|
+
function E(D, I) {
|
6077
6073
|
return function() {
|
6078
6074
|
setActivePinia(n);
|
6079
|
-
const A = Array.from(arguments),
|
6080
|
-
function
|
6081
|
-
|
6075
|
+
const A = Array.from(arguments), N = [], L = [];
|
6076
|
+
function w(R) {
|
6077
|
+
N.push(R);
|
6082
6078
|
}
|
6083
6079
|
function M(R) {
|
6084
|
-
|
6080
|
+
L.push(R);
|
6085
6081
|
}
|
6086
|
-
triggerSubscriptions(
|
6082
|
+
triggerSubscriptions(p, {
|
6087
6083
|
args: A,
|
6088
6084
|
name: D,
|
6089
6085
|
store: T,
|
6090
|
-
after:
|
6086
|
+
after: w,
|
6091
6087
|
onError: M
|
6092
6088
|
});
|
6093
6089
|
let O;
|
6094
6090
|
try {
|
6095
|
-
O =
|
6091
|
+
O = I.apply(this && this.$id === e ? this : T, A);
|
6096
6092
|
} catch (R) {
|
6097
|
-
throw triggerSubscriptions(
|
6093
|
+
throw triggerSubscriptions(L, R), R;
|
6098
6094
|
}
|
6099
|
-
return O instanceof Promise ? O.then((R) => (triggerSubscriptions(
|
6095
|
+
return O instanceof Promise ? O.then((R) => (triggerSubscriptions(N, R), R)).catch((R) => (triggerSubscriptions(L, R), Promise.reject(R))) : (triggerSubscriptions(N, O), O);
|
6100
6096
|
};
|
6101
6097
|
}
|
6102
|
-
const
|
6098
|
+
const k = /* @__PURE__ */ markRaw({
|
6103
6099
|
actions: {},
|
6104
6100
|
getters: {},
|
6105
6101
|
state: [],
|
6106
|
-
hotState:
|
6107
|
-
}),
|
6102
|
+
hotState: m
|
6103
|
+
}), V = {
|
6108
6104
|
_p: n,
|
6109
6105
|
$id: e,
|
6110
|
-
$onAction: addSubscription.bind(null,
|
6106
|
+
$onAction: addSubscription.bind(null, p),
|
6111
6107
|
$patch: v,
|
6112
6108
|
$reset: C,
|
6113
|
-
$subscribe(D,
|
6114
|
-
const A = addSubscription(
|
6115
|
-
(
|
6109
|
+
$subscribe(D, I = {}) {
|
6110
|
+
const A = addSubscription(g, D, I.detached, () => N()), N = o.run(() => watch(() => n.state.value[e], (L) => {
|
6111
|
+
(I.flush === "sync" ? c : u) && D({
|
6116
6112
|
storeId: e,
|
6117
6113
|
type: MutationType.direct,
|
6118
|
-
events:
|
6119
|
-
},
|
6120
|
-
}, assign$1({}, l,
|
6114
|
+
events: _
|
6115
|
+
}, L);
|
6116
|
+
}, assign$1({}, l, I)));
|
6121
6117
|
return A;
|
6122
6118
|
},
|
6123
6119
|
$dispose: y
|
6124
6120
|
}, T = reactive(assign$1(
|
6125
6121
|
process.env.NODE_ENV !== "production" && IS_CLIENT ? {
|
6126
6122
|
_customProperties: markRaw(/* @__PURE__ */ new Set()),
|
6127
|
-
_hmrPayload:
|
6123
|
+
_hmrPayload: k
|
6128
6124
|
} : {},
|
6129
|
-
|
6125
|
+
V
|
6130
6126
|
));
|
6131
6127
|
n._s.set(e, T);
|
6132
6128
|
const B = n._e.run(() => (o = effectScope(), o.run(() => t())));
|
6133
6129
|
for (const D in B) {
|
6134
|
-
const
|
6135
|
-
if (isRef(
|
6136
|
-
process.env.NODE_ENV !== "production" && a ? set(
|
6137
|
-
else if (typeof
|
6138
|
-
const A = process.env.NODE_ENV !== "production" && a ?
|
6139
|
-
B[D] = A, process.env.NODE_ENV !== "production" && (
|
6130
|
+
const I = B[D];
|
6131
|
+
if (isRef(I) && !isComputed(I) || isReactive(I))
|
6132
|
+
process.env.NODE_ENV !== "production" && a ? set(m.value, D, toRef(B, D)) : s || (b && shouldHydrate(I) && (isRef(I) ? I.value = b[D] : mergeReactiveObjects(I, b[D])), n.state.value[e][D] = I), process.env.NODE_ENV !== "production" && k.state.push(D);
|
6133
|
+
else if (typeof I == "function") {
|
6134
|
+
const A = process.env.NODE_ENV !== "production" && a ? I : E(D, I);
|
6135
|
+
B[D] = A, process.env.NODE_ENV !== "production" && (k.actions[D] = I), i.actions[D] = I;
|
6140
6136
|
} else
|
6141
|
-
process.env.NODE_ENV !== "production" && isComputed(
|
6137
|
+
process.env.NODE_ENV !== "production" && isComputed(I) && (k.getters[D] = s ? r.getters[D] : I, IS_CLIENT && (B._getters || (B._getters = markRaw([]))).push(D));
|
6142
6138
|
}
|
6143
6139
|
if (assign$1(T, B), assign$1(toRaw(T), B), Object.defineProperty(T, "$state", {
|
6144
|
-
get: () => process.env.NODE_ENV !== "production" && a ?
|
6140
|
+
get: () => process.env.NODE_ENV !== "production" && a ? m.value : n.state.value[e],
|
6145
6141
|
set: (D) => {
|
6146
6142
|
if (process.env.NODE_ENV !== "production" && a)
|
6147
6143
|
throw new Error("cannot set hotState");
|
6148
|
-
v((
|
6149
|
-
assign$1(
|
6144
|
+
v((I) => {
|
6145
|
+
assign$1(I, D);
|
6150
6146
|
});
|
6151
6147
|
}
|
6152
6148
|
}), process.env.NODE_ENV !== "production") {
|
6153
|
-
T._hotUpdate = markRaw((
|
6154
|
-
T._hotUpdating = !0,
|
6149
|
+
T._hotUpdate = markRaw((I) => {
|
6150
|
+
T._hotUpdating = !0, I._hmrPayload.state.forEach((A) => {
|
6155
6151
|
if (A in T.$state) {
|
6156
|
-
const
|
6157
|
-
typeof
|
6152
|
+
const N = I.$state[A], L = T.$state[A];
|
6153
|
+
typeof N == "object" && isPlainObject(N) && isPlainObject(L) ? patchObject(N, L) : I.$state[A] = L;
|
6158
6154
|
}
|
6159
|
-
set(T, A, toRef(
|
6155
|
+
set(T, A, toRef(I.$state, A));
|
6160
6156
|
}), Object.keys(T.$state).forEach((A) => {
|
6161
|
-
A in
|
6162
|
-
}), u = !1, c = !1, n.state.value[e] = toRef(
|
6157
|
+
A in I.$state || del(T, A);
|
6158
|
+
}), u = !1, c = !1, n.state.value[e] = toRef(I._hmrPayload, "hotState"), c = !0, nextTick().then(() => {
|
6163
6159
|
u = !0;
|
6164
6160
|
});
|
6165
|
-
for (const A in
|
6166
|
-
const
|
6167
|
-
set(T, A, E(A,
|
6161
|
+
for (const A in I._hmrPayload.actions) {
|
6162
|
+
const N = I[A];
|
6163
|
+
set(T, A, E(A, N));
|
6168
6164
|
}
|
6169
|
-
for (const A in
|
6170
|
-
const
|
6171
|
-
set(T, A,
|
6165
|
+
for (const A in I._hmrPayload.getters) {
|
6166
|
+
const N = I._hmrPayload.getters[A], L = s ? computed(() => (setActivePinia(n), N.call(T, T))) : N;
|
6167
|
+
set(T, A, L);
|
6172
6168
|
}
|
6173
6169
|
Object.keys(T._hmrPayload.getters).forEach((A) => {
|
6174
|
-
A in
|
6170
|
+
A in I._hmrPayload.getters || del(T, A);
|
6175
6171
|
}), Object.keys(T._hmrPayload.actions).forEach((A) => {
|
6176
|
-
A in
|
6177
|
-
}), T._hmrPayload =
|
6172
|
+
A in I._hmrPayload.actions || del(T, A);
|
6173
|
+
}), T._hmrPayload = I._hmrPayload, T._getters = I._getters, T._hotUpdating = !1;
|
6178
6174
|
});
|
6179
6175
|
const D = {
|
6180
6176
|
writable: !0,
|
6181
6177
|
configurable: !0,
|
6182
6178
|
enumerable: !1
|
6183
6179
|
};
|
6184
|
-
IS_CLIENT && ["_p", "_hmrPayload", "_getters", "_customProperties"].forEach((
|
6185
|
-
Object.defineProperty(T,
|
6186
|
-
value: T[
|
6180
|
+
IS_CLIENT && ["_p", "_hmrPayload", "_getters", "_customProperties"].forEach((I) => {
|
6181
|
+
Object.defineProperty(T, I, {
|
6182
|
+
value: T[I],
|
6187
6183
|
...D
|
6188
6184
|
});
|
6189
6185
|
});
|
6190
6186
|
}
|
6191
6187
|
return n._p.forEach((D) => {
|
6192
6188
|
if (process.env.NODE_ENV !== "production" && IS_CLIENT) {
|
6193
|
-
const
|
6189
|
+
const I = o.run(() => D({
|
6194
6190
|
store: T,
|
6195
6191
|
app: n._a,
|
6196
6192
|
pinia: n,
|
6197
6193
|
options: i
|
6198
6194
|
}));
|
6199
|
-
Object.keys(
|
6195
|
+
Object.keys(I || {}).forEach((A) => T._customProperties.add(A)), assign$1(T, I);
|
6200
6196
|
} else
|
6201
6197
|
assign$1(T, o.run(() => D({
|
6202
6198
|
store: T,
|
@@ -6222,12 +6218,12 @@ This will fail in production.`);
|
|
6222
6218
|
i = activePinia, i._s.has(n) || (o ? createSetupStore(n, t, a, i) : createOptionsStore(n, a, i), process.env.NODE_ENV !== "production" && (s._pinia = i));
|
6223
6219
|
const c = i._s.get(n);
|
6224
6220
|
if (process.env.NODE_ENV !== "production" && l) {
|
6225
|
-
const
|
6226
|
-
l._hotUpdate(
|
6221
|
+
const g = "__hot:" + n, p = o ? createSetupStore(g, t, a, i, !0) : createOptionsStore(g, assign$1({}, a), i, !0);
|
6222
|
+
l._hotUpdate(p), delete i.state.value[g], i._s.delete(g);
|
6227
6223
|
}
|
6228
6224
|
if (process.env.NODE_ENV !== "production" && IS_CLIENT && u && u.proxy && !l) {
|
6229
|
-
const
|
6230
|
-
|
6225
|
+
const g = u.proxy, p = "_pStores" in g ? g._pStores : g._pStores = {};
|
6226
|
+
p[n] = c;
|
6231
6227
|
}
|
6232
6228
|
return c;
|
6233
6229
|
}
|
@@ -6361,8 +6357,8 @@ class KgUtil {
|
|
6361
6357
|
const o = atob(a), s = [];
|
6362
6358
|
for (let i = 0; i < o.length; i += n) {
|
6363
6359
|
const l = o.slice(i, i + n), u = new Array(l.length);
|
6364
|
-
for (let
|
6365
|
-
u[
|
6360
|
+
for (let g = 0; g < l.length; g++)
|
6361
|
+
u[g] = l.charCodeAt(g);
|
6366
6362
|
const c = new Uint8Array(u);
|
6367
6363
|
s.push(c);
|
6368
6364
|
}
|
@@ -6601,13 +6597,13 @@ const getProps$w = () => ({
|
|
6601
6597
|
}
|
6602
6598
|
return y;
|
6603
6599
|
});
|
6604
|
-
function
|
6600
|
+
function g() {
|
6605
6601
|
i.remove(), l.remove();
|
6606
6602
|
}
|
6607
6603
|
onUnmounted(() => {
|
6608
|
-
|
6604
|
+
g();
|
6609
6605
|
});
|
6610
|
-
const
|
6606
|
+
const p = (y) => {
|
6611
6607
|
switch (e.kgType) {
|
6612
6608
|
case "top":
|
6613
6609
|
t("update:kgHeight", Math.min(e.kgMaxHeight, Math.max(e.kgMinHeight, a - (y.pageY - s))));
|
@@ -6623,18 +6619,18 @@ const getProps$w = () => ({
|
|
6623
6619
|
break;
|
6624
6620
|
}
|
6625
6621
|
};
|
6626
|
-
function
|
6627
|
-
|
6622
|
+
function _(y) {
|
6623
|
+
p(y);
|
6628
6624
|
}
|
6629
6625
|
function b(y) {
|
6630
|
-
|
6626
|
+
p(y), g();
|
6631
6627
|
}
|
6632
|
-
function
|
6633
|
-
y.stopPropagation(), y.preventDefault(),
|
6628
|
+
function m(y) {
|
6629
|
+
y.stopPropagation(), y.preventDefault(), g(), !(y instanceof MouseEvent && y.which !== 1) && (o = y.pageX, s = y.pageY, n = e.kgWidth, a = e.kgHeight, i = v(document.documentElement, "mousemove", _), l = v(document.documentElement, "mouseup", b));
|
6634
6630
|
}
|
6635
|
-
function v(y, E,
|
6636
|
-
return y.addEventListener(E,
|
6637
|
-
remove: () => y.removeEventListener(E,
|
6631
|
+
function v(y, E, k) {
|
6632
|
+
return y.addEventListener(E, k), {
|
6633
|
+
remove: () => y.removeEventListener(E, k)
|
6638
6634
|
};
|
6639
6635
|
}
|
6640
6636
|
function C(y) {
|
@@ -6648,7 +6644,7 @@ const getProps$w = () => ({
|
|
6648
6644
|
}, [createVNode("div", {
|
6649
6645
|
class: "kg-resizable-handle",
|
6650
6646
|
onClick: C,
|
6651
|
-
onMousedown:
|
6647
|
+
onMousedown: m
|
6652
6648
|
}, [createVNode("div", {
|
6653
6649
|
class: "kg-resizable-handle-line"
|
6654
6650
|
}, null)]), (y = r.default) == null ? void 0 : y.call(r)]);
|
@@ -6671,7 +6667,7 @@ class KgVarUtil {
|
|
6671
6667
|
static transformValueByControlType(t, r, n) {
|
6672
6668
|
if (isNil(n))
|
6673
6669
|
return;
|
6674
|
-
const o = useKgVar(t).store.
|
6670
|
+
const o = useKgVar(t).store.getVariableConfig(t, r);
|
6675
6671
|
if (!o)
|
6676
6672
|
return n;
|
6677
6673
|
switch (o.ctrl_typ) {
|
@@ -6771,36 +6767,36 @@ const getProps$v = () => ({ ...formProps() }), DI_FORM_MODEL = Symbol("DI_FORM_M
|
|
6771
6767
|
const l = useKgTable(s), u = computed(() => a.store.getVarLookup(n, o)), c = computed(() => {
|
6772
6768
|
var b;
|
6773
6769
|
return ((b = u == null ? void 0 : u.value) == null ? void 0 : b.mult_flg) === 1;
|
6774
|
-
}),
|
6775
|
-
var b,
|
6776
|
-
return (
|
6770
|
+
}), g = computed(() => {
|
6771
|
+
var b, m;
|
6772
|
+
return (m = (b = u == null ? void 0 : u.value) == null ? void 0 : b.ret_fld) != null ? m : "";
|
6777
6773
|
});
|
6778
|
-
l.onRowDoubleClick(() =>
|
6779
|
-
function
|
6774
|
+
l.onRowDoubleClick(() => _());
|
6775
|
+
function p() {
|
6780
6776
|
r("update:visible", !1);
|
6781
6777
|
}
|
6782
|
-
function
|
6783
|
-
var b,
|
6778
|
+
function _() {
|
6779
|
+
var b, m, v, C, y, E, k;
|
6784
6780
|
if (c.value) {
|
6785
|
-
const
|
6786
|
-
(!i || i(T,
|
6781
|
+
const V = (m = (b = l.selectedRows) == null ? void 0 : b.value) != null ? m : [], T = (v = V.map((B) => B[g.value])) != null ? v : [];
|
6782
|
+
(!i || i(T, V)) && (r("kgOk", T, V), r("update:visible", !1));
|
6787
6783
|
} else {
|
6788
|
-
const
|
6789
|
-
(!i || i(T,
|
6784
|
+
const V = (E = (y = (C = l.selectedRows) == null ? void 0 : C.value) == null ? void 0 : y[0]) != null ? E : null, T = (k = V == null ? void 0 : V[g.value]) != null ? k : "";
|
6785
|
+
(!i || i(T, V)) && (r("kgOk", T, V), r("update:visible", !1));
|
6790
6786
|
}
|
6791
6787
|
}
|
6792
6788
|
return () => {
|
6793
|
-
var b,
|
6789
|
+
var b, m;
|
6794
6790
|
return createVNode(KgModal, {
|
6795
6791
|
visible: e.visible,
|
6796
6792
|
title: a.t(o).value,
|
6797
6793
|
destroyOnClose: !0,
|
6798
6794
|
okButtonProps: {
|
6799
|
-
disabled: ((
|
6795
|
+
disabled: ((m = (b = l.selectedRows.value) == null ? void 0 : b.length) != null ? m : 0) === 0
|
6800
6796
|
},
|
6801
6797
|
wrapClassName: "kg-form-item-addon-lookup-modal",
|
6802
|
-
onCancel:
|
6803
|
-
onOk:
|
6798
|
+
onCancel: p,
|
6799
|
+
onOk: _
|
6804
6800
|
}, {
|
6805
6801
|
default: () => [createVNode(KgVar, null, null)]
|
6806
6802
|
});
|
@@ -6938,28 +6934,28 @@ function _useServices$1(e) {
|
|
6938
6934
|
const o = (l = (i = r.value) == null ? void 0 : i.val_clm) != null ? l : "", s = (c = (u = r.value) == null ? void 0 : u.val_data_type) != null ? c : "string";
|
6939
6935
|
switch (s) {
|
6940
6936
|
case KG_POSSIBILITY_DATA_TYPE.STRING:
|
6941
|
-
a.forEach((
|
6942
|
-
|
6937
|
+
a.forEach((g) => {
|
6938
|
+
g[o] = String(g[o]);
|
6943
6939
|
});
|
6944
6940
|
break;
|
6945
6941
|
case KG_POSSIBILITY_DATA_TYPE.NUMBER:
|
6946
|
-
a.forEach((
|
6947
|
-
let
|
6948
|
-
Number.isNaN(
|
6942
|
+
a.forEach((g) => {
|
6943
|
+
let p = Number(g[o]);
|
6944
|
+
Number.isNaN(p) && (p = g[o], Logger.error(`| \u6570\u636E\u6709\u8BEF | \u65E0\u6CD5\u5C06 ${g[o]} \u8F6C\u6362\u4E3A ${s} \u7C7B\u578B`, {
|
6949
6945
|
formID: t.formID,
|
6950
6946
|
varName: e.kgVarName,
|
6951
6947
|
varPossibility: r.value
|
6952
|
-
})),
|
6948
|
+
})), g[o] = p;
|
6953
6949
|
});
|
6954
6950
|
break;
|
6955
6951
|
case KG_POSSIBILITY_DATA_TYPE.BOOLEAN:
|
6956
|
-
a.forEach((
|
6957
|
-
let
|
6958
|
-
String(
|
6952
|
+
a.forEach((g) => {
|
6953
|
+
let p;
|
6954
|
+
String(g[o]).toLowerCase() === "true" ? p = !0 : String(g[o]).toLowerCase() === "false" ? p = !1 : (p = g[o], Logger.error(`| \u6570\u636E\u6709\u8BEF | \u65E0\u6CD5\u5C06 ${g[o]} \u8F6C\u6362\u4E3A ${s} \u7C7B\u578B`, {
|
6959
6955
|
formID: t.formID,
|
6960
6956
|
varName: e.kgVarName,
|
6961
6957
|
varPossibility: r.value
|
6962
|
-
})),
|
6958
|
+
})), g[o] = p;
|
6963
6959
|
});
|
6964
6960
|
break;
|
6965
6961
|
}
|
@@ -6980,41 +6976,41 @@ const KgFormItemSelect = defineComponent({
|
|
6980
6976
|
const n = useKgVar(), a = inject(DI_FORM_MODEL, computed(() => ({}))), {
|
6981
6977
|
transformDatas: o
|
6982
6978
|
} = _useServices$1(e), s = ref([]), i = computed(() => n.store.getVarPossibility(n.formID, e.kgVarName)), l = computed(() => {
|
6983
|
-
var
|
6984
|
-
let
|
6985
|
-
return
|
6979
|
+
var _;
|
6980
|
+
let p = KgVarUtil.parseCommandParameter((_ = i.value) == null ? void 0 : _.cmd_prm);
|
6981
|
+
return p = mapValues(p, (b) => {
|
6986
6982
|
if (typeof b == "string" && b.startsWith("{") && b.endsWith("}")) {
|
6987
|
-
const
|
6988
|
-
if (a.value &&
|
6989
|
-
return a.value[
|
6983
|
+
const m = b.slice(1, -1);
|
6984
|
+
if (a.value && m in a.value)
|
6985
|
+
return a.value[m];
|
6990
6986
|
}
|
6991
6987
|
return b;
|
6992
|
-
}),
|
6988
|
+
}), p;
|
6993
6989
|
});
|
6994
6990
|
watch(l, () => {
|
6995
|
-
var
|
6996
|
-
(
|
6991
|
+
var p;
|
6992
|
+
(p = i.value) != null && p.id && u();
|
6997
6993
|
}, {
|
6998
6994
|
immediate: !0
|
6999
6995
|
});
|
7000
6996
|
async function u() {
|
7001
|
-
var C, y, E,
|
7002
|
-
const
|
7003
|
-
if (!
|
6997
|
+
var C, y, E, k, V, T, B, D;
|
6998
|
+
const p = (C = i.value) == null ? void 0 : C.cmd, _ = (E = (y = i.value) == null ? void 0 : y.cmd_method) != null ? E : "GET", b = (V = (k = i.value) == null ? void 0 : k.val_clm) != null ? V : "", m = (B = (T = i.value) == null ? void 0 : T.lbl_clm) != null ? B : "";
|
6999
|
+
if (!p || !b || !m) {
|
7004
7000
|
Logger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF.", {
|
7005
7001
|
formID: n.formID,
|
7006
7002
|
kgVarName: e.kgVarName,
|
7007
|
-
cmd:
|
7003
|
+
cmd: p,
|
7008
7004
|
val_clm: b,
|
7009
|
-
lbl_clm:
|
7005
|
+
lbl_clm: m
|
7010
7006
|
});
|
7011
7007
|
return;
|
7012
7008
|
}
|
7013
7009
|
let v = null;
|
7014
7010
|
try {
|
7015
7011
|
v = await ((D = httpClient()) == null ? void 0 : D.request({
|
7016
|
-
url:
|
7017
|
-
method:
|
7012
|
+
url: p,
|
7013
|
+
method: _,
|
7018
7014
|
params: l.value
|
7019
7015
|
}));
|
7020
7016
|
} catch {
|
@@ -7031,34 +7027,34 @@ const KgFormItemSelect = defineComponent({
|
|
7031
7027
|
break;
|
7032
7028
|
}
|
7033
7029
|
if (s.value.length > 0) {
|
7034
|
-
const
|
7035
|
-
(!(b in
|
7030
|
+
const I = s.value[0];
|
7031
|
+
(!(b in I) || !(m in I)) && Logger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF, \u6570\u636E\u5217(val_clm)\u6216\u663E\u793A\u5217(lbl_clm)\u6709\u8BEF.", {
|
7036
7032
|
formID: n.formID,
|
7037
7033
|
kgVarName: e.kgVarName,
|
7038
|
-
cmd:
|
7034
|
+
cmd: p,
|
7039
7035
|
val_clm: b,
|
7040
|
-
lbl_clm:
|
7041
|
-
\u6240\u6709\u5217: Object.keys(
|
7036
|
+
lbl_clm: m,
|
7037
|
+
\u6240\u6709\u5217: Object.keys(I)
|
7042
7038
|
});
|
7043
7039
|
}
|
7044
|
-
r("kgSelectDatasChange", s.value), s.value.find((
|
7040
|
+
r("kgSelectDatasChange", s.value), s.value.find((I) => I[b] === e.value) || r("update:value", void 0);
|
7045
7041
|
}
|
7046
|
-
function c(
|
7042
|
+
function c(p) {
|
7047
7043
|
var b;
|
7048
|
-
const
|
7044
|
+
const _ = s.value.find((m) => {
|
7049
7045
|
var v, C;
|
7050
|
-
return
|
7046
|
+
return m[(C = (v = i.value) == null ? void 0 : v.val_clm) != null ? C : ""] === p;
|
7051
7047
|
});
|
7052
|
-
r("kgChange", (b = toRaw(
|
7048
|
+
r("kgChange", (b = toRaw(_)) != null ? b : null);
|
7053
7049
|
}
|
7054
|
-
function p
|
7055
|
-
r("update:value",
|
7050
|
+
function g(p) {
|
7051
|
+
r("update:value", p);
|
7056
7052
|
}
|
7057
7053
|
return () => {
|
7058
|
-
var
|
7054
|
+
var p, _, b;
|
7059
7055
|
return createVNode(Select, {
|
7060
7056
|
value: e.value,
|
7061
|
-
"onUpdate:value":
|
7057
|
+
"onUpdate:value": g,
|
7062
7058
|
id: t.id,
|
7063
7059
|
disabled: e.kgDisabled,
|
7064
7060
|
allowClear: e.kgAllowClear,
|
@@ -7067,19 +7063,19 @@ const KgFormItemSelect = defineComponent({
|
|
7067
7063
|
class: "kg-form-item-select",
|
7068
7064
|
dropdownClassName: "kg-form-item-select-dropdown",
|
7069
7065
|
style: "width: 100%",
|
7070
|
-
"kg-cmd": (
|
7071
|
-
"kg-val-clm": (
|
7066
|
+
"kg-cmd": (p = i.value) == null ? void 0 : p.cmd,
|
7067
|
+
"kg-val-clm": (_ = i.value) == null ? void 0 : _.val_clm,
|
7072
7068
|
"kg-lbl-clm": (b = i.value) == null ? void 0 : b.lbl_clm
|
7073
7069
|
}, {
|
7074
|
-
default: () => s.value.map((
|
7070
|
+
default: () => s.value.map((m) => {
|
7075
7071
|
var v, C, y, E;
|
7076
7072
|
return createVNode(Select.Option, {
|
7077
|
-
"kg-value":
|
7078
|
-
value:
|
7073
|
+
"kg-value": m[(C = (v = i.value) == null ? void 0 : v.val_clm) != null ? C : ""],
|
7074
|
+
value: m[(E = (y = i.value) == null ? void 0 : y.val_clm) != null ? E : ""]
|
7079
7075
|
}, {
|
7080
7076
|
default: () => {
|
7081
|
-
var
|
7082
|
-
return [
|
7077
|
+
var k, V;
|
7078
|
+
return [m[(V = (k = i.value) == null ? void 0 : k.lbl_clm) != null ? V : ""]];
|
7083
7079
|
}
|
7084
7080
|
});
|
7085
7081
|
}),
|
@@ -7116,7 +7112,7 @@ function _useRules(e) {
|
|
7116
7112
|
const t = useKg(), r = useKgVar(), n = computed(() => r.store.getVarProfileDetail(r.formID, e.kgVarName)), a = computed(() => r.store.getVarVariableInput(r.formID, e.kgVarName)), o = computed(() => r.store.getVarSubmitField(r.formID, e.kgVarName));
|
7117
7113
|
return {
|
7118
7114
|
rules: computed(() => {
|
7119
|
-
var l, u, c,
|
7115
|
+
var l, u, c, g, p, _, b, m;
|
7120
7116
|
let i = [];
|
7121
7117
|
switch (e.kgContext) {
|
7122
7118
|
case KG_FORM_CONTEXT.SEARCH:
|
@@ -7140,13 +7136,13 @@ function _useRules(e) {
|
|
7140
7136
|
});
|
7141
7137
|
break;
|
7142
7138
|
case r.isCopying.value:
|
7143
|
-
((
|
7139
|
+
((g = o.value) == null ? void 0 : g.cpy_rqr_flg) === 1 && i.push({
|
7144
7140
|
required: !0,
|
7145
7141
|
message: t.t("kg.required")
|
7146
7142
|
});
|
7147
7143
|
break;
|
7148
7144
|
case r.isDeleting.value:
|
7149
|
-
((
|
7145
|
+
((p = o.value) == null ? void 0 : p.del_rqr_flg) === 1 && i.push({
|
7150
7146
|
required: !0,
|
7151
7147
|
message: t.t("kg.required")
|
7152
7148
|
});
|
@@ -7154,10 +7150,10 @@ function _useRules(e) {
|
|
7154
7150
|
}
|
7155
7151
|
break;
|
7156
7152
|
}
|
7157
|
-
switch ((
|
7153
|
+
switch ((_ = a.value) == null ? void 0 : _.data_type) {
|
7158
7154
|
case KG_VAR_INPUT__DATA_TYPE.NUMBER:
|
7159
7155
|
const v = (b = a.value) == null ? void 0 : b.min;
|
7160
|
-
isNil(v) || (((
|
7156
|
+
isNil(v) || (((m = a.value) == null ? void 0 : m.min_include_flg) === 1 ? i.push({
|
7161
7157
|
validator: (C, y) => Number(y) < v ? Promise.reject(t.t("kg.KgFormItem.mustGTE", [v])) : Promise.resolve()
|
7162
7158
|
}) : i.push({
|
7163
7159
|
validator: (C, y) => Number(y) <= v ? Promise.reject(t.t("kg.KgFormItem.mustGT", [v])) : Promise.resolve()
|
@@ -7177,118 +7173,118 @@ const KgFormItem = defineComponent({
|
|
7177
7173
|
emit: r
|
7178
7174
|
}) {
|
7179
7175
|
provide(KG_DI_VAR_NAME, e.kgVarName), provide(DI_ON_KG_BEFORE_LOOKUP_OK, e.onKgBeforeLookupOk);
|
7180
|
-
const n = useKg(), a = useKgVar(), o = inject(DI_FORM_MODEL, computed(() => ({}))), s = inject(DI_FORM_REF, ref(null)), i = computed(() => a.store.isCreating(a.formID)), l = computed(() => a.store.isUpdating(a.formID)), u = computed(() => a.store.isCopying(a.formID)), c = computed(() => a.store.getVarLookup(a.formID, e.kgVarName)),
|
7176
|
+
const n = useKg(), a = useKgVar(), o = inject(DI_FORM_MODEL, computed(() => ({}))), s = inject(DI_FORM_REF, ref(null)), i = computed(() => a.store.isCreating(a.formID)), l = computed(() => a.store.isUpdating(a.formID)), u = computed(() => a.store.isCopying(a.formID)), c = computed(() => a.store.getVarLookup(a.formID, e.kgVarName)), g = computed(() => a.store.getVariableConfig(a.formID, e.kgVarName)), p = computed(() => a.store.getVarProfileDetail(a.formID, e.kgVarName)), _ = computed(() => a.store.getVarSubmitField(a.formID, e.kgVarName)), {
|
7181
7177
|
rules: b
|
7182
|
-
} = _useRules(e),
|
7183
|
-
var
|
7178
|
+
} = _useRules(e), m = computed(() => {
|
7179
|
+
var L, w, M, O, R;
|
7184
7180
|
if (a.isRetrievingVar.value)
|
7185
7181
|
return !0;
|
7186
|
-
let
|
7182
|
+
let N = !1;
|
7187
7183
|
if (e.kgDisabled !== void 0)
|
7188
|
-
|
7184
|
+
N = e.kgDisabled;
|
7189
7185
|
else
|
7190
7186
|
switch (e.kgContext) {
|
7191
7187
|
case KG_FORM_CONTEXT.SEARCH:
|
7192
|
-
|
7188
|
+
N = ((L = p.value) == null ? void 0 : L.ena_flg) === 0;
|
7193
7189
|
break;
|
7194
7190
|
case KG_FORM_CONTEXT.SUBMIT:
|
7195
7191
|
switch (!0) {
|
7196
7192
|
case a.isCreating.value:
|
7197
|
-
|
7193
|
+
N = ((w = _.value) == null ? void 0 : w.crt_ena_flg) === 0;
|
7198
7194
|
break;
|
7199
7195
|
case a.isUpdating.value:
|
7200
|
-
|
7196
|
+
N = ((M = _.value) == null ? void 0 : M.upt_ena_flg) === 0;
|
7201
7197
|
break;
|
7202
7198
|
case a.isCopying.value:
|
7203
|
-
|
7199
|
+
N = ((O = _.value) == null ? void 0 : O.cpy_ena_flg) === 0;
|
7204
7200
|
break;
|
7205
7201
|
case a.isDeleting.value:
|
7206
|
-
|
7202
|
+
N = ((R = _.value) == null ? void 0 : R.del_ena_flg) === 0;
|
7207
7203
|
break;
|
7208
7204
|
}
|
7209
7205
|
break;
|
7210
7206
|
}
|
7211
|
-
return
|
7207
|
+
return N;
|
7212
7208
|
}), v = computed(() => {
|
7213
|
-
var
|
7214
|
-
let
|
7209
|
+
var L, w, M, O;
|
7210
|
+
let N = " ";
|
7215
7211
|
if (e.kgPlaceholder)
|
7216
|
-
|
7212
|
+
N = e.kgPlaceholder;
|
7217
7213
|
else
|
7218
7214
|
switch (e.kgContext) {
|
7219
7215
|
case KG_FORM_CONTEXT.SEARCH:
|
7220
|
-
|
7216
|
+
N = n.t((w = (L = p.value) == null ? void 0 : L.placeholder) != null ? w : " ");
|
7221
7217
|
break;
|
7222
7218
|
case KG_FORM_CONTEXT.SUBMIT:
|
7223
|
-
|
7219
|
+
N = n.t((O = (M = _.value) == null ? void 0 : M.placeholder) != null ? O : " ");
|
7224
7220
|
break;
|
7225
7221
|
}
|
7226
|
-
return
|
7222
|
+
return N;
|
7227
7223
|
}), C = computed(() => {
|
7228
|
-
var
|
7229
|
-
let
|
7224
|
+
var L, w, M, O, R, F, G, P, U, H;
|
7225
|
+
let N = 6;
|
7230
7226
|
if (e.kgSpan !== void 0)
|
7231
|
-
|
7227
|
+
N = e.kgSpan;
|
7232
7228
|
else
|
7233
7229
|
switch (e.kgContext) {
|
7234
7230
|
case KG_FORM_CONTEXT.SEARCH:
|
7235
|
-
|
7231
|
+
N = (w = (L = p.value) == null ? void 0 : L.width) != null ? w : 6;
|
7236
7232
|
break;
|
7237
7233
|
case KG_FORM_CONTEXT.SUBMIT:
|
7238
7234
|
switch (!0) {
|
7239
7235
|
case a.isCreating.value:
|
7240
|
-
|
7236
|
+
N = (O = (M = _.value) == null ? void 0 : M.crt_width) != null ? O : 6;
|
7241
7237
|
break;
|
7242
7238
|
case a.isUpdating.value:
|
7243
|
-
|
7239
|
+
N = (F = (R = _.value) == null ? void 0 : R.upt_width) != null ? F : 6;
|
7244
7240
|
break;
|
7245
7241
|
case a.isCopying.value:
|
7246
|
-
|
7242
|
+
N = (P = (G = _.value) == null ? void 0 : G.cpy_width) != null ? P : 6;
|
7247
7243
|
break;
|
7248
7244
|
case a.isDeleting.value:
|
7249
|
-
|
7245
|
+
N = (H = (U = _.value) == null ? void 0 : U.del_width) != null ? H : 6;
|
7250
7246
|
break;
|
7251
7247
|
}
|
7252
7248
|
}
|
7253
|
-
return Math.min(24, Math.max(1,
|
7249
|
+
return Math.min(24, Math.max(1, N));
|
7254
7250
|
}), y = computed(() => ({
|
7255
7251
|
paddingLeft: `${e.kgGutter / 2}px !important`,
|
7256
7252
|
paddingRight: `${e.kgGutter / 2}px !important`
|
7257
7253
|
})), E = computed(() => {
|
7258
|
-
var
|
7259
|
-
let
|
7260
|
-
switch (c.value && (
|
7254
|
+
var L, w, M, O;
|
7255
|
+
let N = "kg-form-item";
|
7256
|
+
switch (c.value && (N += " kg-form-item-lookup"), e.kgContext) {
|
7261
7257
|
case KG_FORM_CONTEXT.SEARCH:
|
7262
7258
|
switch (!0) {
|
7263
|
-
case ((
|
7264
|
-
|
7259
|
+
case ((L = p.value) == null ? void 0 : L.vis_flg) === 0:
|
7260
|
+
N += " kg-form-item--invisible";
|
7265
7261
|
break;
|
7266
7262
|
}
|
7267
7263
|
break;
|
7268
7264
|
case KG_FORM_CONTEXT.SUBMIT:
|
7269
7265
|
switch (!0) {
|
7270
|
-
case (i.value && ((
|
7271
|
-
case (l.value && ((M =
|
7272
|
-
case (u.value && ((O =
|
7273
|
-
|
7266
|
+
case (i.value && ((w = _.value) == null ? void 0 : w.crt_vis_flg) === 0):
|
7267
|
+
case (l.value && ((M = _.value) == null ? void 0 : M.upt_vis_flg) === 0):
|
7268
|
+
case (u.value && ((O = _.value) == null ? void 0 : O.cpy_vis_flg) === 0):
|
7269
|
+
N += " kg-form-item--invisible";
|
7274
7270
|
break;
|
7275
7271
|
}
|
7276
7272
|
break;
|
7277
7273
|
}
|
7278
|
-
return
|
7279
|
-
}),
|
7280
|
-
var
|
7281
|
-
const
|
7274
|
+
return N;
|
7275
|
+
}), k = computed(() => {
|
7276
|
+
var L;
|
7277
|
+
const N = {
|
7282
7278
|
...e,
|
7283
|
-
value: (
|
7284
|
-
"onUpdate:value": (
|
7285
|
-
o.value && (o.value[e.kgVarName] =
|
7279
|
+
value: (L = o.value) == null ? void 0 : L[e.kgVarName],
|
7280
|
+
"onUpdate:value": (w) => {
|
7281
|
+
o.value && (o.value[e.kgVarName] = w);
|
7286
7282
|
},
|
7287
7283
|
kgPlaceholder: v.value,
|
7288
|
-
kgDisabled:
|
7284
|
+
kgDisabled: m.value,
|
7289
7285
|
id: T.value
|
7290
7286
|
};
|
7291
|
-
switch (
|
7287
|
+
switch (V.value) {
|
7292
7288
|
case KG_FORM_ITEM_TYPE.INPUT_NUMBER:
|
7293
7289
|
break;
|
7294
7290
|
case KG_FORM_ITEM_TYPE.SELECT:
|
@@ -7296,56 +7292,56 @@ const KgFormItem = defineComponent({
|
|
7296
7292
|
case KG_FORM_ITEM_TYPE.SWITCH:
|
7297
7293
|
break;
|
7298
7294
|
case KG_FORM_ITEM_TYPE.DATE_DATE:
|
7299
|
-
|
7295
|
+
N.kgShowTime = !1;
|
7300
7296
|
break;
|
7301
7297
|
case KG_FORM_ITEM_TYPE.DATE_DATETIME:
|
7302
|
-
|
7298
|
+
N.kgShowTime = e.kgShowTime === void 0 ? !0 : e.kgShowTime;
|
7303
7299
|
break;
|
7304
7300
|
}
|
7305
|
-
return
|
7306
|
-
}),
|
7307
|
-
var
|
7308
|
-
return e.kgType || ((
|
7301
|
+
return N;
|
7302
|
+
}), V = computed(() => {
|
7303
|
+
var N;
|
7304
|
+
return e.kgType || ((N = g.value) == null ? void 0 : N.ctrl_typ);
|
7309
7305
|
}), T = computed(() => encodeURIComponent(a.formID + e.kgVarName + e.kgContext));
|
7310
|
-
function B(
|
7311
|
-
var
|
7312
|
-
o.value && (o.value[e.kgVarName] =
|
7306
|
+
function B(N, L) {
|
7307
|
+
var w;
|
7308
|
+
o.value && (o.value[e.kgVarName] = N), r("kgChange", L), (w = s.value) == null || w.validate([e.kgVarName]);
|
7313
7309
|
}
|
7314
7310
|
function D() {
|
7315
7311
|
if (t.control)
|
7316
7312
|
return t.control({
|
7317
7313
|
varName: e.kgVarName,
|
7318
|
-
props:
|
7314
|
+
props: k,
|
7319
7315
|
model: o,
|
7320
|
-
varConfig:
|
7321
|
-
varProfileDetail:
|
7322
|
-
varSubmitField:
|
7316
|
+
varConfig: g,
|
7317
|
+
varProfileDetail: p,
|
7318
|
+
varSubmitField: _
|
7323
7319
|
});
|
7324
|
-
switch (
|
7320
|
+
switch (V.value) {
|
7325
7321
|
case KG_FORM_ITEM_TYPE.INPUT_NUMBER:
|
7326
|
-
return createVNode(KgFormItemInputNumber,
|
7322
|
+
return createVNode(KgFormItemInputNumber, k.value, null);
|
7327
7323
|
case KG_FORM_ITEM_TYPE.SELECT:
|
7328
|
-
return createVNode(KgFormItemSelect,
|
7324
|
+
return createVNode(KgFormItemSelect, k.value, null);
|
7329
7325
|
case KG_FORM_ITEM_TYPE.SWITCH:
|
7330
|
-
return createVNode(KgFormItemSwitch,
|
7326
|
+
return createVNode(KgFormItemSwitch, k.value, null);
|
7331
7327
|
case KG_FORM_ITEM_TYPE.DATE_DATE:
|
7332
|
-
return createVNode(KgFormItemDate,
|
7328
|
+
return createVNode(KgFormItemDate, k.value, null);
|
7333
7329
|
case KG_FORM_ITEM_TYPE.DATE_DATETIME:
|
7334
|
-
return createVNode(KgFormItemDate,
|
7330
|
+
return createVNode(KgFormItemDate, k.value, null);
|
7335
7331
|
default:
|
7336
|
-
return createVNode(KgFormItemInput,
|
7332
|
+
return createVNode(KgFormItemInput, k.value, null);
|
7337
7333
|
}
|
7338
7334
|
}
|
7339
|
-
function
|
7335
|
+
function I() {
|
7340
7336
|
return e.kgShowLabel ? createVNode("span", {
|
7341
7337
|
title: a.t(e.kgVarName).value
|
7342
7338
|
}, [a.t(e.kgVarName).value]) : null;
|
7343
7339
|
}
|
7344
7340
|
function A() {
|
7345
|
-
var
|
7346
|
-
return !c.value || !((
|
7341
|
+
var N;
|
7342
|
+
return !c.value || !((N = c.value) != null && N.lkp_id) ? null : createVNode(Form.ItemRest, null, {
|
7347
7343
|
default: () => [createVNode(KgFormItemAddonLookup, {
|
7348
|
-
kgDisabled:
|
7344
|
+
kgDisabled: m.value,
|
7349
7345
|
onKgOk: B,
|
7350
7346
|
kgLookupID: c.value.lkp_id
|
7351
7347
|
}, null)]
|
@@ -7364,7 +7360,7 @@ const KgFormItem = defineComponent({
|
|
7364
7360
|
htmlFor: T.value
|
7365
7361
|
}, {
|
7366
7362
|
default: () => createVNode(Fragment, null, [D(), A()]),
|
7367
|
-
label: () =>
|
7363
|
+
label: () => I()
|
7368
7364
|
})]
|
7369
7365
|
});
|
7370
7366
|
}
|
@@ -7550,15 +7546,15 @@ function createStore(e, t, r) {
|
|
7550
7546
|
_assignPluginFnProp: function(l, u) {
|
7551
7547
|
var c = this[u];
|
7552
7548
|
this[u] = function() {
|
7553
|
-
var
|
7549
|
+
var p = slice(arguments, 0), _ = this;
|
7554
7550
|
function b() {
|
7555
7551
|
if (!!c)
|
7556
7552
|
return each$6(arguments, function(v, C) {
|
7557
|
-
|
7558
|
-
}), c.apply(
|
7553
|
+
p[C] = v;
|
7554
|
+
}), c.apply(_, p);
|
7559
7555
|
}
|
7560
|
-
var
|
7561
|
-
return l.apply(
|
7556
|
+
var m = [b].concat(p);
|
7557
|
+
return l.apply(_, m);
|
7562
7558
|
};
|
7563
7559
|
},
|
7564
7560
|
_serialize: function(l) {
|
@@ -7581,24 +7577,24 @@ function createStore(e, t, r) {
|
|
7581
7577
|
_addPlugin: function(l) {
|
7582
7578
|
var u = this;
|
7583
7579
|
if (isList(l)) {
|
7584
|
-
each$6(l, function(
|
7585
|
-
u._addPlugin(
|
7580
|
+
each$6(l, function(p) {
|
7581
|
+
u._addPlugin(p);
|
7586
7582
|
});
|
7587
7583
|
return;
|
7588
7584
|
}
|
7589
|
-
var c = pluck(this.plugins, function(
|
7590
|
-
return l ===
|
7585
|
+
var c = pluck(this.plugins, function(p) {
|
7586
|
+
return l === p;
|
7591
7587
|
});
|
7592
7588
|
if (!c) {
|
7593
7589
|
if (this.plugins.push(l), !isFunction(l))
|
7594
7590
|
throw new Error("Plugins must be function values that return objects");
|
7595
|
-
var
|
7596
|
-
if (!isObject(
|
7591
|
+
var g = l.call(this);
|
7592
|
+
if (!isObject(g))
|
7597
7593
|
throw new Error("Plugins must return an object of function properties");
|
7598
|
-
each$6(
|
7599
|
-
if (!isFunction(
|
7600
|
-
throw new Error("Bad plugin property: " +
|
7601
|
-
u._assignPluginFnProp(
|
7594
|
+
each$6(g, function(p, _) {
|
7595
|
+
if (!isFunction(p))
|
7596
|
+
throw new Error("Bad plugin property: " + _ + " from plugin " + l.name + ". Plugins should only return functions.");
|
7597
|
+
u._assignPluginFnProp(p, _);
|
7602
7598
|
});
|
7603
7599
|
}
|
7604
7600
|
},
|
@@ -8056,7 +8052,7 @@ const useKgVarStore = () => (store$6 || (store$6 = defineStore("KgVar", {
|
|
8056
8052
|
varCatalogMap: /* @__PURE__ */ new Map(),
|
8057
8053
|
varLookupMap: /* @__PURE__ */ new Map(),
|
8058
8054
|
varPossibilityMap: /* @__PURE__ */ new Map(),
|
8059
|
-
|
8055
|
+
varVariableConfigMap: /* @__PURE__ */ new Map(),
|
8060
8056
|
varVariableInputMap: /* @__PURE__ */ new Map(),
|
8061
8057
|
varButtonMap: /* @__PURE__ */ new Map(),
|
8062
8058
|
varSubmitConfigMap: /* @__PURE__ */ new Map(),
|
@@ -8177,12 +8173,12 @@ const useKgVarStore = () => (store$6 || (store$6 = defineStore("KgVar", {
|
|
8177
8173
|
return (a = n == null ? void 0 : n.find((o) => o.var_nam === r)) != null ? a : null;
|
8178
8174
|
};
|
8179
8175
|
},
|
8180
|
-
|
8176
|
+
getVariableConfig(e) {
|
8181
8177
|
return (t, r) => {
|
8182
8178
|
var a;
|
8183
8179
|
if (!t || !r)
|
8184
8180
|
return null;
|
8185
|
-
const n = e.
|
8181
|
+
const n = e.varVariableConfigMap.get(t);
|
8186
8182
|
return (a = n == null ? void 0 : n.find((o) => o.var_nam === r)) != null ? a : null;
|
8187
8183
|
};
|
8188
8184
|
},
|
@@ -8493,7 +8489,7 @@ const useKgVarStore = () => (store$6 || (store$6 = defineStore("KgVar", {
|
|
8493
8489
|
this.formIDs = [...this.formIDs, e].sort((t, r) => t.level - r.level), await this.retrieve(e.formID), store_legacy.set("KgVar.formIDs", this.formIDs);
|
8494
8490
|
},
|
8495
8491
|
leave(e) {
|
8496
|
-
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.
|
8492
|
+
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);
|
8497
8493
|
},
|
8498
8494
|
async retrieve(e) {
|
8499
8495
|
var t, r, n, a, o, s;
|
@@ -8505,18 +8501,18 @@ const useKgVarStore = () => (store$6 || (store$6 = defineStore("KgVar", {
|
|
8505
8501
|
varLookups: l,
|
8506
8502
|
varConfigs: u,
|
8507
8503
|
varVariableInputs: c,
|
8508
|
-
varPossibilities:
|
8509
|
-
varButtons:
|
8510
|
-
varSubmitConfig:
|
8504
|
+
varPossibilities: g,
|
8505
|
+
varButtons: p,
|
8506
|
+
varSubmitConfig: _,
|
8511
8507
|
varSubmitFields: b,
|
8512
|
-
varProfile:
|
8508
|
+
varProfile: m,
|
8513
8509
|
varProfileConfig: v,
|
8514
8510
|
varGrid: C,
|
8515
8511
|
varGridConfig: y
|
8516
8512
|
} = await GetAll({ params: { frm_id: e } });
|
8517
|
-
this.varCatalogMap.set(e, i != null ? i : []), this.varLookupMap.set(e, l != null ? l : []), this.varPossibilityMap.set(e,
|
8518
|
-
varProfile:
|
8519
|
-
currentVarProfileMasterID: (n = (r = (t =
|
8513
|
+
this.varCatalogMap.set(e, i != null ? i : []), this.varLookupMap.set(e, l != null ? l : []), this.varPossibilityMap.set(e, g != null ? g : []), this.varVariableConfigMap.set(e, u != null ? u : []), this.varVariableInputMap.set(e, c != null ? c : []), this.varButtonMap.set(e, transformVarButtons(p)), this.varSubmitConfigMap.set(e, transformVarSubmitConfig(_)), this.varSubmitFieldMap.set(e, transformVarSubmitFields(b)), this.varProfileConfigMap.set(e, transformVarProfileConfig(v != null ? v : null)), this.varProfileMap.set(e, {
|
8514
|
+
varProfile: m != null ? m : null,
|
8515
|
+
currentVarProfileMasterID: (n = (r = (t = m == null ? void 0 : m.varProfileMasters) == null ? void 0 : t.find((E) => E.def_flg === 1 || E.cust_lvl === KG_CUSTOM_LEVEL.L0)) == null ? void 0 : r.id) != null ? n : null
|
8520
8516
|
}), this.varGridConfigMap.set(e, transformVarGridConfig(y != null ? y : null)), this.varGridMap.set(e, {
|
8521
8517
|
varGrid: transformVarGridDTO(C),
|
8522
8518
|
currentVarGridMasterID: (s = (o = (a = C == null ? void 0 : C.varGridMasters) == null ? void 0 : a.find((E) => E.def_flg === 1 || E.cust_lvl === KG_CUSTOM_LEVEL.L0)) == null ? void 0 : o.id) != null ? s : null
|
@@ -8602,29 +8598,29 @@ function useKgVar(e, t, r = 0) {
|
|
8602
8598
|
s.leave(o);
|
8603
8599
|
}));
|
8604
8600
|
const i = (D) => computed(() => {
|
8605
|
-
var
|
8606
|
-
return (
|
8607
|
-
}), l = computed(() => s.isRetrievingVar(o)), u = computed(() => s.isRetrievingVarProfileMaster(o)), c = computed(() => s.isCreating(o)),
|
8608
|
-
var D,
|
8609
|
-
return (
|
8610
|
-
}),
|
8601
|
+
var I, A, N;
|
8602
|
+
return (N = (A = (I = s.getVarCatalog(o, D)) == null ? void 0 : I.var_text) != null ? A : D) != null ? N : "";
|
8603
|
+
}), l = computed(() => s.isRetrievingVar(o)), u = computed(() => s.isRetrievingVarProfileMaster(o)), c = computed(() => s.isCreating(o)), g = computed(() => s.isUpdating(o)), p = computed(() => s.isCopying(o)), _ = computed(() => s.isDeleting(o)), b = computed(() => s.isOtherRequesting(o)), m = computed(() => s.getVarButtons(o)), v = computed(() => s.getVarProfileMasters(o)), C = computed(() => s.getCurrentVarProfileMaster(o)), y = computed(() => s.getCurrentVarProfileMasterID(o)), E = computed(() => {
|
8604
|
+
var D, I;
|
8605
|
+
return (I = (D = C.value) == null ? void 0 : D.varProfileDetails) != null ? I : null;
|
8606
|
+
}), k = computed(() => s.getVarGridConfig(o)), V = computed(() => s.getVarGridMasters(o)), T = computed(() => s.getCurrentVarGridMaster(o)), B = computed(() => s.getSystemVarGridDetails(o));
|
8611
8607
|
return {
|
8612
8608
|
formID: o,
|
8613
8609
|
store: s,
|
8614
8610
|
isRetrievingVar: l,
|
8615
8611
|
isRetrievingVarProfileMaster: u,
|
8616
8612
|
isCreating: c,
|
8617
|
-
isUpdating:
|
8618
|
-
isCopying:
|
8619
|
-
isDeleting:
|
8613
|
+
isUpdating: g,
|
8614
|
+
isCopying: p,
|
8615
|
+
isDeleting: _,
|
8620
8616
|
isOtherRequesting: b,
|
8621
|
-
varButtons:
|
8617
|
+
varButtons: m,
|
8622
8618
|
varProfileMasters: v,
|
8623
8619
|
currentVarProfileMaster: C,
|
8624
8620
|
currentVarProfileMasterID: y,
|
8625
8621
|
currentVarProfileDetails: E,
|
8626
|
-
varGridConfig:
|
8627
|
-
varGridMasters:
|
8622
|
+
varGridConfig: k,
|
8623
|
+
varGridMasters: V,
|
8628
8624
|
currentVarGridMaster: T,
|
8629
8625
|
systemVarGridDetails: B,
|
8630
8626
|
t: i
|
@@ -8662,7 +8658,7 @@ const useKgSubmitStore = () => (store$5 || (store$5 = defineStore("KgSubmit", {
|
|
8662
8658
|
dispose(e) {
|
8663
8659
|
if (!e)
|
8664
8660
|
return Logger.error("formID \u4E3A\u7A7A."), null;
|
8665
|
-
this.
|
8661
|
+
this.isLoadingMap.delete(e), this.modelMap.delete(e);
|
8666
8662
|
},
|
8667
8663
|
addEventListener(e, t, r) {
|
8668
8664
|
switch (t) {
|
@@ -8764,38 +8760,35 @@ const useKgSubmitStore = () => (store$5 || (store$5 = defineStore("KgSubmit", {
|
|
8764
8760
|
}
|
8765
8761
|
}).bind(null, pinia())), store$5);
|
8766
8762
|
function useKgSubmit(e) {
|
8767
|
-
const t = useKgVar(e), r = useKgSubmitStore()()
|
8768
|
-
function
|
8769
|
-
return isFunction$2(
|
8763
|
+
const t = useKgVar(e), r = useKgSubmitStore()();
|
8764
|
+
function n(l) {
|
8765
|
+
return isFunction$2(l) ? (r.addEventListener(t.formID, "open", l), onUnmounted(() => r.removeEventListener(t.formID, "open", l)), () => r.removeEventListener(t.formID, "open", l)) : () => {
|
8770
8766
|
};
|
8771
8767
|
}
|
8772
|
-
function l
|
8773
|
-
return isFunction$2(
|
8768
|
+
function a(l) {
|
8769
|
+
return isFunction$2(l) ? (r.addEventListener(t.formID, "close", l), onUnmounted(() => r.removeEventListener(t.formID, "close", l)), () => r.removeEventListener(t.formID, "close", l)) : () => {
|
8774
8770
|
};
|
8775
8771
|
}
|
8776
|
-
function
|
8777
|
-
return isFunction$2(
|
8772
|
+
function o(l) {
|
8773
|
+
return isFunction$2(l) ? (r.addEventListener(t.formID, "beforeOk", l), onUnmounted(() => r.removeEventListener(t.formID, "beforeOk", l)), () => r.removeEventListener(t.formID, "beforeOk", l)) : () => {
|
8778
8774
|
};
|
8779
8775
|
}
|
8780
|
-
function
|
8781
|
-
return isFunction$2(
|
8776
|
+
function s(l) {
|
8777
|
+
return isFunction$2(l) ? (r.addEventListener(t.formID, "ok", l), onUnmounted(() => r.removeEventListener(t.formID, "ok", l)), () => r.removeEventListener(t.formID, "ok", l)) : () => {
|
8782
8778
|
};
|
8783
8779
|
}
|
8784
|
-
|
8785
|
-
|
8786
|
-
|
8787
|
-
const p = computed(() => {
|
8788
|
-
var g;
|
8789
|
-
return (g = r.getModel(t.formID)) != null ? g : {};
|
8780
|
+
const i = computed(() => {
|
8781
|
+
var l;
|
8782
|
+
return (l = r.getModel(t.formID)) != null ? l : {};
|
8790
8783
|
});
|
8791
8784
|
return {
|
8792
8785
|
formID: t.formID,
|
8793
8786
|
store: r,
|
8794
|
-
model:
|
8795
|
-
onOpen:
|
8796
|
-
onClose:
|
8797
|
-
onBeforeOk:
|
8798
|
-
onOk:
|
8787
|
+
model: i,
|
8788
|
+
onOpen: n,
|
8789
|
+
onClose: a,
|
8790
|
+
onBeforeOk: o,
|
8791
|
+
onOk: s
|
8799
8792
|
};
|
8800
8793
|
}
|
8801
8794
|
const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitConfig", getProps$r = () => ({
|
@@ -8820,9 +8813,9 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
|
|
8820
8813
|
model: u
|
8821
8814
|
}) => {
|
8822
8815
|
const c = o.store.getVarSubmitConfig(o.formID);
|
8823
|
-
return i = watch(u, (
|
8824
|
-
var
|
8825
|
-
|
8816
|
+
return i = watch(u, (g) => {
|
8817
|
+
var p, _, b, m, v, C, y, E, k, V, T, B;
|
8818
|
+
g && (g.id = (p = c == null ? void 0 : c.id) != null ? p : null, g.frm_id = o.formID, g.resizable_flg = (_ = c == null ? void 0 : c.resizable_flg) != null ? _ : 1, g.fullscreen_flg = (b = c == null ? void 0 : c.fullscreen_flg) != null ? b : 1, g.dft_fullscreen_flg = (m = c == null ? void 0 : c.dft_fullscreen_flg) != null ? m : 0, g.responsive_flg = (v = c == null ? void 0 : c.responsive_flg) != null ? v : 1, g.max_width = (C = c == null ? void 0 : c.max_width) != null ? C : DEFAULT_MAX_WIDTH, g.min_width = (y = c == null ? void 0 : c.min_width) != null ? y : DEFAULT_MIN_WIDTH, g.dft_width = (E = c == null ? void 0 : c.dft_width) != null ? E : DEFAULT_WIDTH, g.layout = (k = c == null ? void 0 : c.layout) != null ? k : KG_VAR_SUBMIT__LAYOUT.VERTICAL, g.label_col = (V = c == null ? void 0 : c.label_col) != null ? V : DEFAULT_LABEL_COL_FOR_SPAN, g.label_col_unit = (T = c == null ? void 0 : c.label_col_unit) != null ? T : KG_WIDTH_UNIT.SPAN, g.display_type = (B = c == null ? void 0 : c.display_type) != null ? B : KG_VAR_SUBMIT__DISPLAY_TYPE.DRAWER);
|
8826
8819
|
}, {
|
8827
8820
|
immediate: !0
|
8828
8821
|
}), !1;
|
@@ -8862,28 +8855,28 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
|
|
8862
8855
|
const a = useKgVar(), o = useKgSubmit();
|
8863
8856
|
useKgSubmit(FORM_ID__VAR_SUBMIT_CONFIG).onClose(async () => (c.value = !1, !1));
|
8864
8857
|
const i = computed(() => a.store.getVarSubmitConfig(a.formID)), l = computed(() => o.store.isLoading(a.formID)), u = computed(() => !!a.store.isCreatingRequesting(a.formID) || !!a.store.isUpdatingRequesting(a.formID) || !!a.store.isCopyingRequesting(a.formID)), c = ref(!1);
|
8865
|
-
function
|
8858
|
+
function g() {
|
8866
8859
|
r("update:isFullscreen", !e.isFullscreen);
|
8867
8860
|
}
|
8868
|
-
function
|
8861
|
+
function p() {
|
8869
8862
|
c.value = !0;
|
8870
8863
|
}
|
8871
|
-
function
|
8864
|
+
function _() {
|
8872
8865
|
r("kgCancel");
|
8873
8866
|
}
|
8874
8867
|
function b() {
|
8875
8868
|
var C;
|
8876
8869
|
return e.kgShowFullscreenButton === !1 || ((C = i.value) == null ? void 0 : C.fullscreen_flg) === 0 ? null : createVNode(Button, {
|
8877
|
-
onClick:
|
8870
|
+
onClick: g,
|
8878
8871
|
class: "kg-submit--btn-fullscreen"
|
8879
8872
|
}, {
|
8880
8873
|
default: () => [e.isFullscreen ? createVNode(FullscreenExitOutlined$1, null, null) : createVNode(FullscreenOutlined$1, null, null)]
|
8881
8874
|
});
|
8882
8875
|
}
|
8883
|
-
function
|
8876
|
+
function m() {
|
8884
8877
|
return e.kgShowConfigButton ? createVNode(Fragment, null, [createVNode(Button, {
|
8885
8878
|
disabled: u.value || l.value,
|
8886
|
-
onClick:
|
8879
|
+
onClick: p,
|
8887
8880
|
class: "kg-submit--btn-config"
|
8888
8881
|
}, {
|
8889
8882
|
default: () => [createVNode(SettingOutlined$1, null, null)]
|
@@ -8895,52 +8888,52 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
|
|
8895
8888
|
return createVNode(Button, {
|
8896
8889
|
disabled: u.value || l.value,
|
8897
8890
|
class: "kg-submit--btn-close",
|
8898
|
-
onClick:
|
8891
|
+
onClick: _
|
8899
8892
|
}, {
|
8900
8893
|
default: () => [createVNode(CloseOutlined$1, null, null)]
|
8901
8894
|
});
|
8902
8895
|
}
|
8903
|
-
return () => createVNode(Fragment, null, [
|
8896
|
+
return () => createVNode(Fragment, null, [m(), b(), v()]);
|
8904
8897
|
}
|
8905
8898
|
}), 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;
|
8906
8899
|
function _useFormModel() {
|
8907
|
-
const e = useKgVar(), t = useKgTable(), r = useKgSubmit(), n = computed(() => e.store.isCreating(e.formID)), a = computed(() => e.store.isUpdating(e.formID)), o = computed(() => e.store.isCopying(e.formID)), s = computed(() => e.store.isDeleting(e.formID)), i = computed(() => e.store.getVarSubmitFieldsForCreate(e.formID)), l = computed(() => e.store.getVarSubmitFieldsForUpdate(e.formID)), u = computed(() => e.store.getVarSubmitFieldsForCopy(e.formID)), c = computed(() => e.store.getVarSubmitFieldsForDelete(e.formID)),
|
8908
|
-
var
|
8900
|
+
const e = useKgVar(), t = useKgTable(), r = useKgSubmit(), n = computed(() => e.store.isCreating(e.formID)), a = computed(() => e.store.isUpdating(e.formID)), o = computed(() => e.store.isCopying(e.formID)), s = computed(() => e.store.isDeleting(e.formID)), i = computed(() => e.store.getVarSubmitFieldsForCreate(e.formID)), l = computed(() => e.store.getVarSubmitFieldsForUpdate(e.formID)), u = computed(() => e.store.getVarSubmitFieldsForCopy(e.formID)), c = computed(() => e.store.getVarSubmitFieldsForDelete(e.formID)), g = computed(() => {
|
8901
|
+
var _, b, m, v;
|
8909
8902
|
switch (!0) {
|
8910
8903
|
case n.value:
|
8911
|
-
return (
|
8904
|
+
return (_ = i.value) != null ? _ : [];
|
8912
8905
|
case a.value:
|
8913
8906
|
return (b = l.value) != null ? b : [];
|
8914
8907
|
case o.value:
|
8915
|
-
return (
|
8908
|
+
return (m = u.value) != null ? m : [];
|
8916
8909
|
case s.value:
|
8917
8910
|
return (v = c.value) != null ? v : [];
|
8918
8911
|
}
|
8919
8912
|
return [];
|
8920
|
-
}),
|
8921
|
-
return watch(
|
8922
|
-
|
8923
|
-
var C, y, E,
|
8924
|
-
const
|
8925
|
-
switch (
|
8913
|
+
}), p = ref({});
|
8914
|
+
return watch(g, (_) => {
|
8915
|
+
p.value = {}, _ != null && _.length && _.forEach((b) => {
|
8916
|
+
var C, y, E, k;
|
8917
|
+
const m = (C = b.var_nam) != null ? C : "", v = t.selectedRow.value;
|
8918
|
+
switch (p.value[m] = void 0, !0) {
|
8926
8919
|
case n.value:
|
8927
|
-
isNil(b.crt_dft_val) || (
|
8920
|
+
isNil(b.crt_dft_val) || (p.value[m] = KgVarUtil.transformValueByControlType(e.formID, m, b.crt_dft_val));
|
8928
8921
|
break;
|
8929
8922
|
case a.value:
|
8930
|
-
|
8923
|
+
p.value.id = v == null ? void 0 : v.id, isNil(b.upt_dft_val) ? p.value[m] = (y = v == null ? void 0 : v[m]) != null ? y : void 0 : p.value[m] = KgVarUtil.transformValueByControlType(e.formID, m, b.upt_dft_val);
|
8931
8924
|
break;
|
8932
8925
|
case o.value:
|
8933
|
-
|
8926
|
+
p.value.id = v == null ? void 0 : v.id, isNil(b.cpy_dft_val) ? p.value[m] = (E = v == null ? void 0 : v[m]) != null ? E : void 0 : p.value[m] = KgVarUtil.transformValueByControlType(e.formID, m, b.cpy_dft_val);
|
8934
8927
|
break;
|
8935
8928
|
case s.value:
|
8936
|
-
|
8929
|
+
p.value.id = v == null ? void 0 : v.id, isNil(b.del_dft_val) ? p.value[m] = (k = v == null ? void 0 : v[m]) != null ? k : void 0 : p.value[m] = KgVarUtil.transformValueByControlType(e.formID, m, b.del_dft_val);
|
8937
8930
|
break;
|
8938
8931
|
}
|
8939
|
-
}), r.store.setModel(e.formID,
|
8932
|
+
}), r.store.setModel(e.formID, p.value);
|
8940
8933
|
}, {
|
8941
8934
|
immediate: !0
|
8942
8935
|
}), {
|
8943
|
-
model:
|
8936
|
+
model: p
|
8944
8937
|
};
|
8945
8938
|
}
|
8946
8939
|
function _useResizeObserver$1(e) {
|
@@ -8977,23 +8970,23 @@ function _useTitle() {
|
|
8977
8970
|
const e = useKg(), t = useKgVar(), r = computed(() => t.store.isCreating(t.formID)), n = computed(() => t.store.isUpdating(t.formID)), a = computed(() => t.store.isCopying(t.formID)), o = computed(() => t.store.isDeleting(t.formID)), s = computed(() => t.store.getVarButtonCreate(t.formID)), i = computed(() => t.store.getVarButtonUpdate(t.formID)), l = computed(() => t.store.getVarButtonCopy(t.formID)), u = computed(() => t.store.getVarButtonDelete(t.formID));
|
8978
8971
|
return {
|
8979
8972
|
title: computed(() => {
|
8980
|
-
var
|
8973
|
+
var g, p, _, b;
|
8981
8974
|
switch (!0) {
|
8982
8975
|
case r.value: {
|
8983
|
-
const
|
8984
|
-
return
|
8976
|
+
const m = (g = s.value) == null ? void 0 : g.var_nam, v = t.t(m).value;
|
8977
|
+
return m === v ? e.t("kg.create") : v;
|
8985
8978
|
}
|
8986
8979
|
case n.value: {
|
8987
|
-
const
|
8988
|
-
return
|
8980
|
+
const m = (p = i.value) == null ? void 0 : p.var_nam, v = t.t(m).value;
|
8981
|
+
return m === v ? e.t("kg.update") : v;
|
8989
8982
|
}
|
8990
8983
|
case a.value: {
|
8991
|
-
const
|
8992
|
-
return
|
8984
|
+
const m = (_ = l.value) == null ? void 0 : _.var_nam, v = t.t(m).value;
|
8985
|
+
return m === v ? e.t("kg.copy") : v;
|
8993
8986
|
}
|
8994
8987
|
case o.value: {
|
8995
|
-
const
|
8996
|
-
return
|
8988
|
+
const m = (b = u.value) == null ? void 0 : b.var_nam, v = t.t(m).value;
|
8989
|
+
return m === v ? e.t("kg.delete") : v;
|
8997
8990
|
}
|
8998
8991
|
}
|
8999
8992
|
return "";
|
@@ -9018,49 +9011,49 @@ const getProps$p = () => ({
|
|
9018
9011
|
}) {
|
9019
9012
|
const r = useKg(), n = useKgVar(), a = useKgTable(), o = useKgSubmit(), s = useKgSearch(), i = inject(DI_KG_SLOTS, null);
|
9020
9013
|
_useFormModel();
|
9021
|
-
const l = computed(() => n.store.isCreating(n.formID)), u = computed(() => n.store.isUpdating(n.formID)), c = computed(() => n.store.isCopying(n.formID)),
|
9014
|
+
const l = computed(() => n.store.isCreating(n.formID)), u = computed(() => n.store.isUpdating(n.formID)), c = computed(() => n.store.isCopying(n.formID)), g = computed(() => n.store.isDeleting(n.formID)), p = computed(() => g.value && A.value.length === 0 && N.value.length === 0), _ = computed(() => n.store.getVarButtonCreate(n.formID)), b = computed(() => n.store.getVarButtonUpdate(n.formID)), m = computed(() => n.store.getVarButtonCopy(n.formID)), v = computed(() => n.store.getVarButtonDelete(n.formID)), C = computed(() => o.store.isLoading(n.formID)), y = computed(() => n.store.getVarSubmitConfig(n.formID)), E = computed(() => n.store.getVarSubmitFieldsForCreateKey(n.formID)), k = computed(() => n.store.getVarSubmitFieldsForCreateNotKey(n.formID)), V = computed(() => n.store.getVarSubmitFieldsForUpdateKey(n.formID)), T = computed(() => n.store.getVarSubmitFieldsForUpdateNotKey(n.formID)), B = computed(() => n.store.getVarSubmitFieldsForCopyKey(n.formID)), D = computed(() => n.store.getVarSubmitFieldsForCopyNotKey(n.formID)), I = computed(() => n.store.getVarSubmitFieldsForDelete(n.formID)), A = computed(() => {
|
9022
9015
|
var K, W, Y;
|
9023
9016
|
switch (!0) {
|
9024
9017
|
case l.value:
|
9025
9018
|
return (K = E.value) != null ? K : [];
|
9026
9019
|
case u.value:
|
9027
|
-
return (W =
|
9020
|
+
return (W = V.value) != null ? W : [];
|
9028
9021
|
case c.value:
|
9029
9022
|
return (Y = B.value) != null ? Y : [];
|
9030
|
-
case
|
9023
|
+
case g.value:
|
9031
9024
|
return [];
|
9032
9025
|
}
|
9033
9026
|
return [];
|
9034
|
-
}),
|
9027
|
+
}), N = computed(() => {
|
9035
9028
|
var K, W, Y, Z;
|
9036
9029
|
switch (!0) {
|
9037
9030
|
case l.value:
|
9038
|
-
return (K =
|
9031
|
+
return (K = k.value) != null ? K : [];
|
9039
9032
|
case u.value:
|
9040
9033
|
return (W = T.value) != null ? W : [];
|
9041
9034
|
case c.value:
|
9042
9035
|
return (Y = D.value) != null ? Y : [];
|
9043
|
-
case
|
9044
|
-
return (Z =
|
9036
|
+
case g.value:
|
9037
|
+
return (Z = I.value) != null ? Z : [];
|
9045
9038
|
}
|
9046
9039
|
return [];
|
9047
|
-
}),
|
9040
|
+
}), L = computed(() => !!n.store.isCreatingRequesting(n.formID) || !!n.store.isUpdatingRequesting(n.formID) || !!n.store.isCopyingRequesting(n.formID) || !!n.store.isDeletingRequesting(n.formID)), w = computed(() => L.value || C.value), M = computed(() => C.value), O = ref({
|
9048
9041
|
kgWidth: DEFAULT_WIDTH
|
9049
9042
|
}), R = computed(() => {
|
9050
9043
|
var K;
|
9051
|
-
return !!(
|
9044
|
+
return !!(p.value || $.isFullscreen || ((K = y.value) == null ? void 0 : K.resizable_flg) === 0);
|
9052
9045
|
}), F = ref(null), G = ref({}), P = ref(null);
|
9053
9046
|
_useResizeObserver$1(P);
|
9054
|
-
const U = _useTitle(), H = computed(() => !!(l.value || u.value || c.value ||
|
9055
|
-
if (
|
9047
|
+
const U = _useTitle(), H = computed(() => !!(l.value || u.value || c.value || g.value)), Q = computed(() => {
|
9048
|
+
if (p.value)
|
9056
9049
|
return 400;
|
9057
9050
|
if (O.value.kgWidth)
|
9058
9051
|
return O.value.kgWidth + 2;
|
9059
9052
|
}), J = computed(() => {
|
9060
9053
|
var W, Y;
|
9061
9054
|
let K = "kg-submit";
|
9062
|
-
return
|
9063
|
-
}),
|
9055
|
+
return $.isFullscreen && (K += " kg-submit--fullscreen"), ((W = y.value) == null ? void 0 : W.responsive_flg) !== 0 && (K += " kg-submit--responsive"), (((Y = y.value) == null ? void 0 : Y.display_type) === KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL || g.value) && (K += " kg-submit--modal"), e.kgClass && (K += ` ${e.kgClass}`), K;
|
9056
|
+
}), $ = reactive({
|
9064
9057
|
isFullscreen: !1
|
9065
9058
|
}), x = computed(() => {
|
9066
9059
|
var K, W, Y, Z;
|
@@ -9099,6 +9092,8 @@ const getProps$p = () => ({
|
|
9099
9092
|
});
|
9100
9093
|
watch(H, (K) => {
|
9101
9094
|
K ? q() : ee();
|
9095
|
+
}, {
|
9096
|
+
immediate: !0
|
9102
9097
|
}), watch(y, (K) => {
|
9103
9098
|
K != null && K.dft_width && (O.value.kgWidth = K.dft_width);
|
9104
9099
|
}, {
|
@@ -9110,14 +9105,14 @@ const getProps$p = () => ({
|
|
9110
9105
|
isCreating: l.value,
|
9111
9106
|
isUpdating: u.value,
|
9112
9107
|
isCopying: c.value,
|
9113
|
-
isDeleting:
|
9108
|
+
isDeleting: g.value,
|
9114
9109
|
row: a.selectedRow.value,
|
9115
9110
|
model: o.model
|
9116
|
-
}), ((K = y.value) == null ? void 0 : K.dft_fullscreen_flg) === 1 && (
|
9111
|
+
}), ((K = y.value) == null ? void 0 : K.dft_fullscreen_flg) === 1 && ($.isFullscreen = !0);
|
9117
9112
|
}
|
9118
9113
|
function ee() {
|
9119
9114
|
var K;
|
9120
|
-
O.value.kgWidth = ((K = y.value) == null ? void 0 : K.dft_width) || DEFAULT_WIDTH,
|
9115
|
+
O.value.kgWidth = ((K = y.value) == null ? void 0 : K.dft_width) || DEFAULT_WIDTH, $.isFullscreen = !1, o.store.emit(n.formID, "close");
|
9121
9116
|
}
|
9122
9117
|
function z() {
|
9123
9118
|
switch (!0) {
|
@@ -9130,7 +9125,7 @@ const getProps$p = () => ({
|
|
9130
9125
|
case c.value:
|
9131
9126
|
n.store.setIsCopying(n.formID, !1);
|
9132
9127
|
break;
|
9133
|
-
case
|
9128
|
+
case g.value:
|
9134
9129
|
n.store.setIsDeleting(n.formID, !1);
|
9135
9130
|
break;
|
9136
9131
|
}
|
@@ -9158,7 +9153,7 @@ const getProps$p = () => ({
|
|
9158
9153
|
case c.value:
|
9159
9154
|
await de();
|
9160
9155
|
break;
|
9161
|
-
case
|
9156
|
+
case g.value:
|
9162
9157
|
await fe();
|
9163
9158
|
break;
|
9164
9159
|
}
|
@@ -9168,19 +9163,19 @@ const getProps$p = () => ({
|
|
9168
9163
|
}
|
9169
9164
|
async function ie() {
|
9170
9165
|
var W, Y, Z, ne, ae, oe, re;
|
9171
|
-
const K = (W =
|
9166
|
+
const K = (W = _.value) == null ? void 0 : W.cmd;
|
9172
9167
|
if (!K) {
|
9173
9168
|
Logger.error("[KgSubmit] \u521B\u5EFA\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
|
9174
|
-
button:
|
9169
|
+
button: _.value
|
9175
9170
|
});
|
9176
9171
|
return;
|
9177
9172
|
}
|
9178
9173
|
n.store.setIsCreatingRequesting(n.formID, !0);
|
9179
9174
|
try {
|
9180
9175
|
await httpClient().request({
|
9181
|
-
method: (Z = (Y =
|
9176
|
+
method: (Z = (Y = _.value) == null ? void 0 : Y.cmd_method) != null ? Z : "POST",
|
9182
9177
|
url: K,
|
9183
|
-
params: KgVarUtil.parseCommandParameter((ae = (ne =
|
9178
|
+
params: KgVarUtil.parseCommandParameter((ae = (ne = _.value) == null ? void 0 : ne.cmd_prm) != null ? ae : ""),
|
9184
9179
|
data: toRaw(o.model.value)
|
9185
9180
|
}), message.success(r.t("kg.createSuccess")), o.store.emit(n.formID, "ok"), n.store.setIsCreating(n.formID, !1), (re = (oe = s.search).value) == null || re.call(oe, !0);
|
9186
9181
|
} catch (se) {
|
@@ -9213,10 +9208,10 @@ const getProps$p = () => ({
|
|
9213
9208
|
}
|
9214
9209
|
async function de() {
|
9215
9210
|
var W, Y, Z, ne, ae, oe, re;
|
9216
|
-
const K = (W =
|
9211
|
+
const K = (W = m.value) == null ? void 0 : W.cmd;
|
9217
9212
|
if (!K) {
|
9218
9213
|
Logger.error("[KgSubmit] \u590D\u5236\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
|
9219
|
-
button:
|
9214
|
+
button: m.value
|
9220
9215
|
});
|
9221
9216
|
return;
|
9222
9217
|
}
|
@@ -9224,9 +9219,9 @@ const getProps$p = () => ({
|
|
9224
9219
|
n.store.setIsCopyingRequesting(n.formID, !0);
|
9225
9220
|
const se = toRaw(o.model.value);
|
9226
9221
|
delete se.id, await httpClient().request({
|
9227
|
-
method: (Z = (Y =
|
9222
|
+
method: (Z = (Y = m.value) == null ? void 0 : Y.cmd_method) != null ? Z : "POST",
|
9228
9223
|
url: K,
|
9229
|
-
params: KgVarUtil.parseCommandParameter((ae = (ne =
|
9224
|
+
params: KgVarUtil.parseCommandParameter((ae = (ne = m.value) == null ? void 0 : ne.cmd_prm) != null ? ae : ""),
|
9230
9225
|
data: toRaw(o.model.value)
|
9231
9226
|
}), message.success(r.t("kg.copySuccess")), o.store.emit(n.formID, "ok"), n.store.setIsCopying(n.formID, !1), (re = (oe = s.search).value) == null || re.call(oe, !0);
|
9232
9227
|
} catch (se) {
|
@@ -9302,7 +9297,7 @@ const getProps$p = () => ({
|
|
9302
9297
|
kgMinWidth: (ne = (Z = y.value) == null ? void 0 : Z.min_width) != null ? ne : DEFAULT_MIN_WIDTH,
|
9303
9298
|
kgMaxWidth: (oe = (ae = y.value) == null ? void 0 : ae.max_width) != null ? oe : DEFAULT_MAX_WIDTH,
|
9304
9299
|
kgDisabled: R.value,
|
9305
|
-
kgWidth:
|
9300
|
+
kgWidth: p.value ? 398 : O.value.kgWidth,
|
9306
9301
|
"onUpdate:kgWidth": (re) => O.value.kgWidth = re
|
9307
9302
|
}, {
|
9308
9303
|
default: () => [createVNode(Spin, {
|
@@ -9323,11 +9318,11 @@ const getProps$p = () => ({
|
|
9323
9318
|
gutter: 6
|
9324
9319
|
}, _isSlot$7(K = A.value.map(ce)) ? K : {
|
9325
9320
|
default: () => [K]
|
9326
|
-
}), A.value.length > 0 &&
|
9321
|
+
}), A.value.length > 0 && N.value.length > 0 && createVNode(Divider, null, null), N.value.length > 0 && createVNode(Row, {
|
9327
9322
|
gutter: 6
|
9328
|
-
}, _isSlot$7(W =
|
9323
|
+
}, _isSlot$7(W = N.value.map(ce)) ? W : {
|
9329
9324
|
default: () => [W]
|
9330
|
-
}),
|
9325
|
+
}), p.value && createVNode("div", {
|
9331
9326
|
style: "text-align: center; padding: 6px 0 12px;"
|
9332
9327
|
}, [r.t("kg.confirmDelete")])])]
|
9333
9328
|
})];
|
@@ -9339,18 +9334,18 @@ const getProps$p = () => ({
|
|
9339
9334
|
let K, W;
|
9340
9335
|
return createVNode("div", null, [createVNode(Button, {
|
9341
9336
|
type: "primary",
|
9342
|
-
ghost: !
|
9343
|
-
disabled:
|
9337
|
+
ghost: !w.value,
|
9338
|
+
disabled: w.value,
|
9344
9339
|
onClick: z
|
9345
9340
|
}, _isSlot$7(K = r.t("kg.cancel")) ? K : {
|
9346
9341
|
default: () => [K]
|
9347
9342
|
}), createVNode(Button, {
|
9348
9343
|
type: "primary",
|
9349
9344
|
disabled: M.value,
|
9350
|
-
loading:
|
9351
|
-
danger: !!
|
9345
|
+
loading: L.value,
|
9346
|
+
danger: !!g.value,
|
9352
9347
|
onClick: te
|
9353
|
-
}, _isSlot$7(W = r.t(
|
9348
|
+
}, _isSlot$7(W = r.t(g.value ? "kg.delete" : "kg.save")) ? W : {
|
9354
9349
|
default: () => [W]
|
9355
9350
|
})]);
|
9356
9351
|
}
|
@@ -9361,10 +9356,10 @@ const getProps$p = () => ({
|
|
9361
9356
|
}
|
9362
9357
|
function he() {
|
9363
9358
|
return createVNode(KgSubmitHeader, {
|
9364
|
-
isFullscreen:
|
9365
|
-
"onUpdate:isFullscreen": (K) =>
|
9366
|
-
kgShowFullscreenButton: !
|
9367
|
-
kgShowConfigButton: !
|
9359
|
+
isFullscreen: $.isFullscreen,
|
9360
|
+
"onUpdate:isFullscreen": (K) => $.isFullscreen = K,
|
9361
|
+
kgShowFullscreenButton: !p.value,
|
9362
|
+
kgShowConfigButton: !p.value && e.kgShowConfigButton,
|
9368
9363
|
onKgCancel: z
|
9369
9364
|
}, null);
|
9370
9365
|
}
|
@@ -9399,37 +9394,37 @@ const getProps$p = () => ({
|
|
9399
9394
|
}) {
|
9400
9395
|
provide(DI_KG_SLOTS, e.kgSlots);
|
9401
9396
|
const r = useKgVar(), n = computed(() => r.store.isCreating(r.formID)), a = computed(() => r.store.isUpdating(r.formID)), o = computed(() => r.store.isCopying(r.formID)), s = computed(() => r.store.isDeleting(r.formID)), i = computed(() => r.store.getVarSubmitConfig(r.formID)), l = computed(() => {
|
9402
|
-
var
|
9397
|
+
var p, _, b, m;
|
9403
9398
|
switch (!0) {
|
9404
9399
|
case n.value:
|
9405
|
-
return ((
|
9400
|
+
return ((p = i.value) == null ? void 0 : p.crt_flg) !== 0;
|
9406
9401
|
case a.value:
|
9407
|
-
return ((
|
9402
|
+
return ((_ = i.value) == null ? void 0 : _.upt_flg) !== 0;
|
9408
9403
|
case o.value:
|
9409
9404
|
return ((b = i.value) == null ? void 0 : b.cpy_flg) !== 0;
|
9410
9405
|
case s.value:
|
9411
|
-
return ((
|
9406
|
+
return ((m = i.value) == null ? void 0 : m.del_flg) !== 0;
|
9412
9407
|
}
|
9413
9408
|
return !1;
|
9414
9409
|
}), u = computed(() => !!r.isOtherRequesting.value), c = computed(() => {
|
9415
|
-
let
|
9416
|
-
return e.KgBackgroundGray && (
|
9410
|
+
let p = "kg-var";
|
9411
|
+
return e.KgBackgroundGray && (p += " kg-var--bg-gray"), p;
|
9417
9412
|
});
|
9418
|
-
function
|
9413
|
+
function g() {
|
9419
9414
|
return createVNode(Spin, {
|
9420
9415
|
spinning: u.value
|
9421
9416
|
}, {
|
9422
9417
|
default: () => {
|
9423
|
-
var
|
9418
|
+
var p;
|
9424
9419
|
return [t.default ? t.default() : createVNode(Fragment, null, [createVNode(KgSearch, null, null), createVNode(KgButton, null, null), createVNode(KgTable, null, null), l.value && createVNode(KgSubmit, {
|
9425
|
-
kgClass: (
|
9420
|
+
kgClass: (p = e.kgSubmitClass) != null ? p : ""
|
9426
9421
|
}, null)])];
|
9427
9422
|
}
|
9428
9423
|
});
|
9429
9424
|
}
|
9430
9425
|
return () => createVNode("div", {
|
9431
9426
|
class: c.value
|
9432
|
-
}, [
|
9427
|
+
}, [g()]);
|
9433
9428
|
}
|
9434
9429
|
}), KgYesOrNo$1 = "", getProps$n = () => ({
|
9435
9430
|
kgValue: {
|
@@ -9462,27 +9457,27 @@ const getProps$p = () => ({
|
|
9462
9457
|
emit: r
|
9463
9458
|
}) {
|
9464
9459
|
const n = useKgVar(), a = computed(() => e.kgVarName ? n.store.getVarGridDetail(n.formID, e.kgVarName) : null), o = computed(() => {
|
9465
|
-
var c,
|
9460
|
+
var c, g;
|
9466
9461
|
let u = "kg-table-td";
|
9467
|
-
return ((c = a.value) == null ? void 0 : c.align) === "center" ? u += " kg-table-td--center" : ((
|
9462
|
+
return ((c = a.value) == null ? void 0 : c.align) === "center" ? u += " kg-table-td--center" : ((g = a.value) == null ? void 0 : g.align) === "right" && (u += " kg-table-td--right"), u;
|
9468
9463
|
});
|
9469
9464
|
function s(u) {
|
9470
9465
|
var c;
|
9471
9466
|
((c = a.value) == null ? void 0 : c.display_type) === KG_TABLE_CELL_DISPLAY_TYPE.UPDATE_LINK && (u.stopPropagation(), u.preventDefault(), u.detail === 1 && r("kgUpdateLinkClick"));
|
9472
9467
|
}
|
9473
9468
|
function i() {
|
9474
|
-
var u, c,
|
9469
|
+
var u, c, g, p, _, b, m, v;
|
9475
9470
|
switch ((u = a.value) == null ? void 0 : u.display_type) {
|
9476
9471
|
case KG_TABLE_CELL_DISPLAY_TYPE.YN: {
|
9477
9472
|
const C = KgUtil.tryParseJSON((c = a.value) == null ? void 0 : c.display_type_properties);
|
9478
9473
|
return createVNode(KgYesOrNo, {
|
9479
|
-
kgValue: e.kgValue === ((
|
9474
|
+
kgValue: e.kgValue === ((g = C.yValue) != null ? g : 1)
|
9480
9475
|
}, null);
|
9481
9476
|
}
|
9482
9477
|
case KG_TABLE_CELL_DISPLAY_TYPE.ENUM: {
|
9483
|
-
const C = KgUtil.tryParseJSON((
|
9478
|
+
const C = KgUtil.tryParseJSON((p = a.value) == null ? void 0 : p.display_type_properties).find((y) => y.value === e.kgValue);
|
9484
9479
|
return C ? createVNode(Tag, {
|
9485
|
-
color: (
|
9480
|
+
color: (_ = C.color) != null ? _ : "default"
|
9486
9481
|
}, {
|
9487
9482
|
default: () => [n.t(C.varName).value]
|
9488
9483
|
}) : l();
|
@@ -9491,7 +9486,7 @@ const getProps$p = () => ({
|
|
9491
9486
|
const C = KgUtil.tryParseJSON((b = a.value) == null ? void 0 : b.display_type_properties);
|
9492
9487
|
return createVNode(KgProgressA, {
|
9493
9488
|
kgTextWidth: C.textWidth,
|
9494
|
-
kgLeft: (
|
9489
|
+
kgLeft: (m = e.kgRow) == null ? void 0 : m[C.leftColumn],
|
9495
9490
|
kgRight: (v = e.kgRow) == null ? void 0 : v[C.rightColumn]
|
9496
9491
|
}, null);
|
9497
9492
|
}
|
@@ -9507,10 +9502,10 @@ const getProps$p = () => ({
|
|
9507
9502
|
let c = e.kgValue;
|
9508
9503
|
isString$1(e.kgValue) && (c = e.kgValue.replaceAll("\\n", `
|
9509
9504
|
`));
|
9510
|
-
let
|
9511
|
-
return u && (
|
9505
|
+
let g = "";
|
9506
|
+
return u && (g += "kg-table-td-update-link"), createVNode("pre", {
|
9512
9507
|
innerHTML: c,
|
9513
|
-
class:
|
9508
|
+
class: g,
|
9514
9509
|
onClick: s
|
9515
9510
|
}, null);
|
9516
9511
|
}
|
@@ -9603,8 +9598,8 @@ const getProps$l = () => ({
|
|
9603
9598
|
}) => {
|
9604
9599
|
const u = n == null ? void 0 : n.store.getVarGridConfig(n.formID);
|
9605
9600
|
return s = watch(l, (c) => {
|
9606
|
-
var
|
9607
|
-
c && (c.id = (
|
9601
|
+
var g, p, _, b, m, v, C, y, E, k, V;
|
9602
|
+
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 = (_ = u == null ? void 0 : u.mult_flg) != null ? _ : 0, c.show_check_column_flg = (b = u == null ? void 0 : u.show_check_column_flg) != null ? b : 0, c.show_bottom_left_flg = (m = u == null ? void 0 : u.show_bottom_left_flg) != null ? m : 1, c.show_bottom_right_flg = (v = u == null ? void 0 : u.show_bottom_right_flg) != null ? v : 1, c.convert_sort_field_to_under_score_flg = (C = u == null ? void 0 : u.convert_sort_field_to_under_score_flg) != null ? C : 0, c.pg_size_opts = (y = u == null ? void 0 : u.pg_size_opts) != null ? y : "[10, 20, 50, 100]", c.pg_size_opt = (E = u == null ? void 0 : u.pg_size_opt) != null ? E : 10, c.cmd_prm = (k = u == null ? void 0 : u.cmd_prm) != null ? k : void 0, c.button_display_type = (V = u == null ? void 0 : u.button_display_type) != null ? V : KG_BUTTON_DISPLAY_TYPE.DEFAULT);
|
9608
9603
|
}, {
|
9609
9604
|
immediate: !0
|
9610
9605
|
}), !1;
|
@@ -9626,13 +9621,13 @@ const getProps$l = () => ({
|
|
9626
9621
|
validator: () => Promise.reject(a.t("kg.KgTableSettingVarGridConfig.emptyPageSizeOptions"))
|
9627
9622
|
}];
|
9628
9623
|
break;
|
9629
|
-
case c.some((
|
9624
|
+
case c.some((g) => Number.isNaN(Number(g)) || Math.floor(Number(g)) <= 0):
|
9630
9625
|
l.value.pg_size_opts = [{
|
9631
9626
|
validator: () => Promise.reject(a.t("kg.KgTableSettingVarGridConfig.invalidPageSizeOptions"))
|
9632
9627
|
}];
|
9633
9628
|
break;
|
9634
9629
|
default:
|
9635
|
-
switch (c = sortBy$1(uniq(c.map((
|
9630
|
+
switch (c = sortBy$1(uniq(c.map((g) => Math.floor(g)))), u.value.pg_size_opt || (u.value.pg_size_opt = c[0]), u.value.pg_size_opt = Number(u.value.pg_size_opt), !0) {
|
9636
9631
|
case Number.isNaN(u.value.pg_size_opt):
|
9637
9632
|
l.value.pg_size_opt = [{
|
9638
9633
|
validator: () => Promise.reject(a.t("kg.KgTableSettingVarGridConfig.invalidPageSizeOption"))
|
@@ -9798,10 +9793,10 @@ const getProps$g = () => ({}), KgTableSetting = defineComponent({
|
|
9798
9793
|
function c(C) {
|
9799
9794
|
a.store.setVarGridDetailVisible(a.formID, C.var_nam, C.vis_flg === 1 ? 0 : 1);
|
9800
9795
|
}
|
9801
|
-
function
|
9796
|
+
function g(C) {
|
9802
9797
|
C.includes("1") || (i.value = "");
|
9803
9798
|
}
|
9804
|
-
function
|
9799
|
+
function p() {
|
9805
9800
|
var C;
|
9806
9801
|
((C = a.currentVarGridMaster.value) == null ? void 0 : C.cust_lvl) === KG_CUSTOM_LEVEL.L0 && KgUtil.confirm({
|
9807
9802
|
content: n.t("kg.KgTable.canNotUpdateSystemVarGridMaster"),
|
@@ -9813,7 +9808,7 @@ const getProps$g = () => ({}), KgTableSetting = defineComponent({
|
|
9813
9808
|
}
|
9814
9809
|
});
|
9815
9810
|
}
|
9816
|
-
async function
|
9811
|
+
async function _() {
|
9817
9812
|
u.value = !0, await nextTick(), a.store.setIsCopying(FORM_ID__VAR_GRID_MASTER__SAVE, !0);
|
9818
9813
|
}
|
9819
9814
|
function b() {
|
@@ -9855,7 +9850,7 @@ const getProps$g = () => ({}), KgTableSetting = defineComponent({
|
|
9855
9850
|
expandIcon: () => createVNode(CaretRightOutlined$1, null, null)
|
9856
9851
|
});
|
9857
9852
|
}
|
9858
|
-
function
|
9853
|
+
function m() {
|
9859
9854
|
return createVNode(Menu.SubMenu, {
|
9860
9855
|
key: "2",
|
9861
9856
|
title: n.t("kg.KgTable.varGridMasters"),
|
@@ -9864,23 +9859,23 @@ const getProps$g = () => ({}), KgTableSetting = defineComponent({
|
|
9864
9859
|
default: () => {
|
9865
9860
|
var E;
|
9866
9861
|
let C, y;
|
9867
|
-
return createVNode(Fragment, null, [(E = a.varGridMasters.value) == null ? void 0 : E.map((
|
9868
|
-
var
|
9862
|
+
return createVNode(Fragment, null, [(E = a.varGridMasters.value) == null ? void 0 : E.map((k) => {
|
9863
|
+
var V;
|
9869
9864
|
return createVNode(Menu.Item, {
|
9870
|
-
key:
|
9871
|
-
class:
|
9872
|
-
"kg-var-nam":
|
9865
|
+
key: k.id,
|
9866
|
+
class: k.id === ((V = a.currentVarGridMaster.value) == null ? void 0 : V.id) ? "selected" : "",
|
9867
|
+
"kg-var-nam": k.grd_var_nam
|
9873
9868
|
}, {
|
9874
|
-
default: () => [a.t(
|
9869
|
+
default: () => [a.t(k.grd_var_nam).value]
|
9875
9870
|
});
|
9876
9871
|
}), createVNode(Menu.Divider, null, null), createVNode(Menu.Item, {
|
9877
9872
|
key: "save-grid-view",
|
9878
|
-
onClick:
|
9873
|
+
onClick: p
|
9879
9874
|
}, _isSlot$5(C = n.t("kg.KgTable.saveVarGridMaster")) ? C : {
|
9880
9875
|
default: () => [C]
|
9881
9876
|
}), createVNode(Menu.Item, {
|
9882
9877
|
key: "save-grid-view-as",
|
9883
|
-
onClick:
|
9878
|
+
onClick: _
|
9884
9879
|
}, _isSlot$5(y = n.t("kg.KgTable.saveVarGridMasterAs")) ? y : {
|
9885
9880
|
default: () => [y]
|
9886
9881
|
})]);
|
@@ -9907,10 +9902,10 @@ const getProps$g = () => ({}), KgTableSetting = defineComponent({
|
|
9907
9902
|
default: () => createVNode(SettingOutlined$1, null, null),
|
9908
9903
|
overlay: () => createVNode(Menu, {
|
9909
9904
|
triggerSubMenuAction: "click",
|
9910
|
-
onOpenChange:
|
9905
|
+
onOpenChange: g,
|
9911
9906
|
selectable: !1
|
9912
9907
|
}, {
|
9913
|
-
default: () => [b(),
|
9908
|
+
default: () => [b(), m(), v()]
|
9914
9909
|
})
|
9915
9910
|
}), l.visible && createVNode(KgTableSettingConfigModal, {
|
9916
9911
|
visible: l.visible,
|
@@ -10032,27 +10027,24 @@ const useKgTableStore = () => (store$4 || (store$4 = defineStore("KgTable", {
|
|
10032
10027
|
}
|
10033
10028
|
}).bind(null, pinia())), store$4);
|
10034
10029
|
function useKgTable(e) {
|
10035
|
-
const t = useKgVar(e), r = useKgTableStore()()
|
10036
|
-
function
|
10037
|
-
return isFunction$2(
|
10030
|
+
const t = useKgVar(e), r = useKgTableStore()();
|
10031
|
+
function n(l) {
|
10032
|
+
return isFunction$2(l) ? (r.addEventListener(t.formID, "rowDoubleClick", l), onUnmounted(() => r.removeEventListener(t.formID, "rowDoubleClick", l)), () => r.removeEventListener(t.formID, "rowDoubleClick", l)) : () => {
|
10038
10033
|
};
|
10039
10034
|
}
|
10040
|
-
function
|
10041
|
-
return isFunction$2(
|
10035
|
+
function a(l) {
|
10036
|
+
return isFunction$2(l) ? (r.addEventListener(t.formID, "retrieve", l), onUnmounted(() => r.removeEventListener(t.formID, "retrieve", l)), () => r.removeEventListener(t.formID, "retrieve", l)) : () => {
|
10042
10037
|
};
|
10043
10038
|
}
|
10044
|
-
|
10045
|
-
n.forEach((c) => r.removeEventListener(t.formID, "rowDoubleClick", c)), a.forEach((c) => r.removeEventListener(t.formID, "retrieve", c));
|
10046
|
-
});
|
10047
|
-
const i = computed(() => r.getIsRetrieving(t.formID)), l = computed(() => r.getSelectedRow(t.formID)), u = computed(() => r.getSelectedRows(t.formID));
|
10039
|
+
const o = computed(() => r.getIsRetrieving(t.formID)), s = computed(() => r.getSelectedRow(t.formID)), i = computed(() => r.getSelectedRows(t.formID));
|
10048
10040
|
return {
|
10049
10041
|
formID: t.formID,
|
10050
10042
|
store: r,
|
10051
|
-
isRetrieving:
|
10052
|
-
selectedRow:
|
10053
|
-
selectedRows:
|
10054
|
-
onRowDoubleClick:
|
10055
|
-
onRetrieve:
|
10043
|
+
isRetrieving: o,
|
10044
|
+
selectedRow: s,
|
10045
|
+
selectedRows: i,
|
10046
|
+
onRowDoubleClick: n,
|
10047
|
+
onRetrieve: a
|
10056
10048
|
};
|
10057
10049
|
}
|
10058
10050
|
const KG_TABLE_TD_DEFAULT_WIDTH = 120, KG_TABLE_TD_MIN_WIDTH = 80, KG_TABLE_TD_MAX_WIDTH = 1920, KG_TABLE_TD_CHECK_WIDTH = 32, KG_TABLE_TD_INDEX_WIDTH = 40;
|
@@ -10061,7 +10053,7 @@ function _useColumns() {
|
|
10061
10053
|
var o;
|
10062
10054
|
return ((o = e.store.getVarGridConfig(e.formID)) == null ? void 0 : o.show_check_column_flg) === 1;
|
10063
10055
|
}), n = computed(() => {
|
10064
|
-
var u, c,
|
10056
|
+
var u, c, g;
|
10065
10057
|
const o = (u = t.store.getTableWidth(e.formID)) != null ? u : 0, s = (c = e.store.getCurrentVisibleVarGridDetailsTotalWidth(e.formID)) != null ? c : 0, i = e.store.getCurrentVisibleVarGridDetails(e.formID), l = [{
|
10066
10058
|
dataIndex: "index",
|
10067
10059
|
width: KG_TABLE_TD_INDEX_WIDTH,
|
@@ -10069,33 +10061,33 @@ function _useColumns() {
|
|
10069
10061
|
align: "center",
|
10070
10062
|
className: "kg-table-td-index",
|
10071
10063
|
customRender: ({
|
10072
|
-
index:
|
10073
|
-
}) =>
|
10074
|
-
}, ...(
|
10075
|
-
function
|
10076
|
-
return
|
10064
|
+
index: p
|
10065
|
+
}) => p + 1
|
10066
|
+
}, ...(g = i == null ? void 0 : i.map((p) => {
|
10067
|
+
function _() {
|
10068
|
+
return p.width === "auto" ? "auto" : Number(p.width) || KG_TABLE_TD_DEFAULT_WIDTH;
|
10077
10069
|
}
|
10078
10070
|
function b() {
|
10079
|
-
return e.t(
|
10071
|
+
return e.t(p.var_nam).value;
|
10080
10072
|
}
|
10081
|
-
function
|
10082
|
-
return
|
10073
|
+
function m() {
|
10074
|
+
return p.ord === -1 ? null : p.ord === 0 ? "ascend" : p.ord === 1 ? "descend" : null;
|
10083
10075
|
}
|
10084
10076
|
function v() {
|
10085
|
-
if (
|
10077
|
+
if (p.fix_left_flg === 1)
|
10086
10078
|
return "left";
|
10087
|
-
if (
|
10079
|
+
if (p.fix_right_flg === 1)
|
10088
10080
|
return "right";
|
10089
10081
|
}
|
10090
10082
|
function C() {
|
10091
|
-
return
|
10083
|
+
return p.ord_flg === 1;
|
10092
10084
|
}
|
10093
10085
|
function y() {
|
10094
|
-
return ["left", "center", "right"].includes(
|
10086
|
+
return ["left", "center", "right"].includes(p.align || "") ? p.align : "left";
|
10095
10087
|
}
|
10096
|
-
const E =
|
10088
|
+
const E = _();
|
10097
10089
|
return {
|
10098
|
-
dataIndex:
|
10090
|
+
dataIndex: p.var_nam,
|
10099
10091
|
title: b(),
|
10100
10092
|
width: E,
|
10101
10093
|
resizable: typeof E == "number",
|
@@ -10104,18 +10096,18 @@ function _useColumns() {
|
|
10104
10096
|
fixed: v(),
|
10105
10097
|
sorter: C(),
|
10106
10098
|
align: y(),
|
10107
|
-
defaultSortOrder:
|
10099
|
+
defaultSortOrder: m(),
|
10108
10100
|
customHeaderCell: () => ({
|
10109
|
-
"kg-frm-id":
|
10110
|
-
"kg-var-nam":
|
10101
|
+
"kg-frm-id": p.frm_id,
|
10102
|
+
"kg-var-nam": p.var_nam
|
10111
10103
|
}),
|
10112
10104
|
customCell: () => ({
|
10113
|
-
"kg-frm-id":
|
10114
|
-
"kg-var-nam":
|
10105
|
+
"kg-frm-id": p.frm_id,
|
10106
|
+
"kg-var-nam": p.var_nam
|
10115
10107
|
})
|
10116
10108
|
};
|
10117
|
-
})) != null ?
|
10118
|
-
return (s === 0 || o > s && !(i != null && i.find((
|
10109
|
+
})) != null ? g : []];
|
10110
|
+
return (s === 0 || o > s && !(i != null && i.find((p) => p.width === "auto"))) && l.push({
|
10119
10111
|
width: "auto",
|
10120
10112
|
customRender: () => null
|
10121
10113
|
}), l;
|
@@ -10142,8 +10134,8 @@ function _useResizeObserver(e) {
|
|
10142
10134
|
var o;
|
10143
10135
|
const a = (o = e.value) == null ? void 0 : o.querySelector("div.ant-table-header");
|
10144
10136
|
a && (n = new ResizeObserver((s) => {
|
10145
|
-
var u, c,
|
10146
|
-
const i = (c = (u = s[0].borderBoxSize[0]) == null ? void 0 : u.inlineSize) != null ? c : 0, l = (
|
10137
|
+
var u, c, g, p;
|
10138
|
+
const i = (c = (u = s[0].borderBoxSize[0]) == null ? void 0 : u.inlineSize) != null ? c : 0, l = (p = (g = a.querySelector("th.ant-table-cell-scrollbar")) == null ? void 0 : g.clientWidth) != null ? p : 0;
|
10147
10139
|
r.store.setTableWidth(t.formID, Math.max(0, i - l));
|
10148
10140
|
}), n.observe(a));
|
10149
10141
|
}), onUnmounted(() => {
|
@@ -10157,8 +10149,8 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
10157
10149
|
emit: r
|
10158
10150
|
}) {
|
10159
10151
|
const n = useKg(), a = useKgVar(), o = useKgSearch(), s = useKgButton(), i = useKgTable();
|
10160
|
-
o.onSearch((
|
10161
|
-
M(
|
10152
|
+
o.onSearch(($) => {
|
10153
|
+
M($);
|
10162
10154
|
}), o.onReset(() => {
|
10163
10155
|
M(!0);
|
10164
10156
|
});
|
@@ -10166,88 +10158,88 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
10166
10158
|
columns: u,
|
10167
10159
|
scrollX: c
|
10168
10160
|
} = _useColumns(), {
|
10169
|
-
isLoading:
|
10170
|
-
} = _useLoading(),
|
10171
|
-
_useResizeObserver(
|
10172
|
-
const
|
10173
|
-
var
|
10174
|
-
return ((
|
10175
|
-
}),
|
10176
|
-
var
|
10177
|
-
return ((
|
10161
|
+
isLoading: g
|
10162
|
+
} = _useLoading(), p = ref(null);
|
10163
|
+
_useResizeObserver(p);
|
10164
|
+
const _ = computed(() => a.store.getVarButtonSearch(a.formID)), b = computed(() => {
|
10165
|
+
var $;
|
10166
|
+
return (($ = a.varGridConfig.value) == null ? void 0 : $.mult_flg) === 1;
|
10167
|
+
}), m = computed(() => {
|
10168
|
+
var $;
|
10169
|
+
return (($ = a.varGridConfig.value) == null ? void 0 : $.aut_load_flg) === 1;
|
10178
10170
|
}), v = computed(() => {
|
10179
|
-
var
|
10180
|
-
return ((
|
10171
|
+
var $;
|
10172
|
+
return (($ = a.varGridConfig.value) == null ? void 0 : $.show_bottom_left_flg) !== 0;
|
10181
10173
|
}), C = computed(() => {
|
10182
|
-
var
|
10183
|
-
return ((
|
10174
|
+
var $;
|
10175
|
+
return (($ = a.varGridConfig.value) == null ? void 0 : $.show_bottom_right_flg) !== 0;
|
10184
10176
|
}), y = computed(() => {
|
10185
|
-
var
|
10186
|
-
return JSON.parse((x = (
|
10177
|
+
var $, x;
|
10178
|
+
return JSON.parse((x = ($ = a.varGridConfig.value) == null ? void 0 : $.pg_size_opts) != null ? x : "[]");
|
10187
10179
|
}), E = computed(() => {
|
10188
|
-
var
|
10189
|
-
return (
|
10190
|
-
}),
|
10191
|
-
var
|
10192
|
-
return (x = (
|
10193
|
-
}),
|
10180
|
+
var $;
|
10181
|
+
return ($ = a.varGridConfig.value) == null ? void 0 : $.pg_size_opt;
|
10182
|
+
}), k = computed(() => {
|
10183
|
+
var $, x;
|
10184
|
+
return (x = ($ = _.value) == null ? void 0 : $.cmd) != null ? x : null;
|
10185
|
+
}), V = computed(() => {
|
10194
10186
|
var x, X, q, ee, z, te, ie;
|
10195
|
-
let
|
10187
|
+
let $ = {
|
10196
10188
|
pageNo: A.pageIndex,
|
10197
10189
|
pageSize: A.pageSize,
|
10198
|
-
...
|
10190
|
+
...N,
|
10199
10191
|
...(X = (x = o.model) == null ? void 0 : x.value) != null ? X : {}
|
10200
10192
|
};
|
10201
|
-
return
|
10202
|
-
|
10203
|
-
...KgVarUtil.parseCommandParameter((ee = (q =
|
10204
|
-
}), (z = a.varGridConfig.value) != null && z.cmd_prm && (
|
10205
|
-
|
10193
|
+
return _.value && ($ = {
|
10194
|
+
...$,
|
10195
|
+
...KgVarUtil.parseCommandParameter((ee = (q = _.value) == null ? void 0 : q.cmd_prm) != null ? ee : "")
|
10196
|
+
}), (z = a.varGridConfig.value) != null && z.cmd_prm && ($ = {
|
10197
|
+
...$,
|
10206
10198
|
...KgVarUtil.parseCommandParameter((te = a.varGridConfig.value.cmd_prm) != null ? te : "")
|
10207
|
-
}), ((ie = a.varGridConfig.value) == null ? void 0 : ie.convert_sort_field_to_under_score_flg) === 1 &&
|
10199
|
+
}), ((ie = a.varGridConfig.value) == null ? void 0 : ie.convert_sort_field_to_under_score_flg) === 1 && $.column && ($.column = snakeCase$1($.column)), $;
|
10208
10200
|
}), T = computed(() => {
|
10209
|
-
var
|
10210
|
-
if (((
|
10201
|
+
var $;
|
10202
|
+
if ((($ = a.varGridConfig.value) == null ? void 0 : $.show_check_column_flg) === 1)
|
10211
10203
|
return {
|
10212
10204
|
fixed: "left",
|
10213
10205
|
columnWidth: KG_TABLE_TD_CHECK_WIDTH,
|
10214
10206
|
hideSelectAll: !b.value,
|
10215
|
-
selectedRowKeys:
|
10207
|
+
selectedRowKeys: I,
|
10216
10208
|
preserveSelectedRowKeys: !1,
|
10217
10209
|
onSelect: (x) => R(x),
|
10218
10210
|
onChange: (x) => b.value && O(x)
|
10219
10211
|
};
|
10220
10212
|
}), B = computed(() => {
|
10221
|
-
let
|
10222
|
-
return !v.value && !C.value && (
|
10223
|
-
}), D = ref([]),
|
10213
|
+
let $ = "kg-table";
|
10214
|
+
return !v.value && !C.value && ($ += " kg-table--no-bottom"), $;
|
10215
|
+
}), D = ref([]), I = ref([]), A = reactive({
|
10224
10216
|
pageIndex: 1,
|
10225
10217
|
pageSize: 10,
|
10226
10218
|
total: 0
|
10227
|
-
}),
|
10219
|
+
}), N = reactive({
|
10228
10220
|
column: void 0,
|
10229
10221
|
order: void 0
|
10230
|
-
}),
|
10231
|
-
|
10222
|
+
}), L = watch(E, ($) => {
|
10223
|
+
$ && (setTimeout(() => L()), A.pageSize = $), l.value = !0;
|
10232
10224
|
});
|
10233
|
-
watch(y, (
|
10234
|
-
|
10235
|
-
}), watch([
|
10236
|
-
|
10225
|
+
watch(y, ($) => {
|
10226
|
+
$.length > 0 && !$.includes(A.pageSize) && (A.pageSize = E.value);
|
10227
|
+
}), watch([k, m, () => o.isReady], ([$, x, X]) => {
|
10228
|
+
$ && x && X && !i.store.getIsRetrieved(a.formID) && M(!0);
|
10237
10229
|
}, {
|
10238
10230
|
immediate: !0
|
10239
10231
|
}), onUnmounted(() => {
|
10240
10232
|
i.store.dispose(a.formID);
|
10241
10233
|
});
|
10242
|
-
function
|
10234
|
+
function w($, x) {
|
10243
10235
|
if (!!T.value) {
|
10244
10236
|
if (!x) {
|
10245
|
-
|
10237
|
+
I.value = [], i.store.setSelectedRows(a.formID, []);
|
10246
10238
|
return;
|
10247
10239
|
}
|
10248
|
-
switch (
|
10240
|
+
switch ($ == null ? void 0 : $.detail) {
|
10249
10241
|
case 1:
|
10250
|
-
|
10242
|
+
I.value = [x.id], i.store.setSelectedRows(a.formID, I.value.map((X) => {
|
10251
10243
|
var q;
|
10252
10244
|
return (q = D.value) == null ? void 0 : q.find((ee) => ee.id === X);
|
10253
10245
|
}).filter((X) => !!X));
|
@@ -10258,7 +10250,7 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
10258
10250
|
}
|
10259
10251
|
}
|
10260
10252
|
}
|
10261
|
-
function M(
|
10253
|
+
function M($ = !1) {
|
10262
10254
|
const x = watch(l, (q) => {
|
10263
10255
|
q && (setTimeout(() => x()), X());
|
10264
10256
|
}, {
|
@@ -10266,20 +10258,20 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
10266
10258
|
});
|
10267
10259
|
async function X() {
|
10268
10260
|
var q, ee;
|
10269
|
-
if (!
|
10261
|
+
if (!k.value) {
|
10270
10262
|
Logger.error("[KgTable] \u67E5\u8BE2\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
|
10271
|
-
button:
|
10263
|
+
button: _.value
|
10272
10264
|
});
|
10273
10265
|
return;
|
10274
10266
|
}
|
10275
|
-
|
10267
|
+
$ && (A.pageIndex = 1), i.store.setIsRetrieving(a.formID, !0);
|
10276
10268
|
try {
|
10277
10269
|
const z = await httpClient().request({
|
10278
10270
|
method: "GET",
|
10279
|
-
url:
|
10280
|
-
params:
|
10271
|
+
url: k.value,
|
10272
|
+
params: V.value
|
10281
10273
|
});
|
10282
|
-
z ? isArrayLike(z) ? (D.value = z, A.total = z.length) : "total" in z && "records" in z && (D.value = (q = z.records) != null ? q : [], A.total = (ee = z.total) != null ? ee : 0) : (D.value = [], A.total = 0), i.store.emit(a.formID, "retrieve", z),
|
10274
|
+
z ? isArrayLike(z) ? (D.value = z, A.total = z.length) : "total" in z && "records" in z && (D.value = (q = z.records) != null ? q : [], A.total = (ee = z.total) != null ? ee : 0) : (D.value = [], A.total = 0), i.store.emit(a.formID, "retrieve", z), w(), await nextTick(), i.store.setIsRetrieved(a.formID, !0);
|
10283
10275
|
} catch (z) {
|
10284
10276
|
throw z;
|
10285
10277
|
} finally {
|
@@ -10287,80 +10279,80 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
10287
10279
|
}
|
10288
10280
|
}
|
10289
10281
|
}
|
10290
|
-
function O(
|
10291
|
-
|
10282
|
+
function O($) {
|
10283
|
+
I.value = $, i.store.setSelectedRows(a.formID, I.value.map((x) => {
|
10292
10284
|
var X;
|
10293
10285
|
return (X = D.value) == null ? void 0 : X.find((q) => q.id === x);
|
10294
10286
|
}).filter((x) => !!x));
|
10295
10287
|
}
|
10296
|
-
function R(
|
10288
|
+
function R($) {
|
10297
10289
|
var x, X;
|
10298
10290
|
switch (b.value) {
|
10299
10291
|
case !0:
|
10300
10292
|
{
|
10301
|
-
const q =
|
10302
|
-
|
10293
|
+
const q = $.id;
|
10294
|
+
I.value.includes(q) ? I.value = without$1(I.value, q) : I.value = [...(x = I.value) != null ? x : [], q];
|
10303
10295
|
}
|
10304
10296
|
break;
|
10305
10297
|
case !1:
|
10306
10298
|
{
|
10307
|
-
const q =
|
10308
|
-
(X =
|
10299
|
+
const q = $.id;
|
10300
|
+
(X = I.value) != null && X.includes(q) ? I.value = [] : I.value = [q];
|
10309
10301
|
}
|
10310
10302
|
break;
|
10311
10303
|
}
|
10312
|
-
i.store.setSelectedRows(a.formID,
|
10304
|
+
i.store.setSelectedRows(a.formID, I.value.map((q) => {
|
10313
10305
|
var ee;
|
10314
10306
|
return (ee = D.value) == null ? void 0 : ee.find((z) => z.id === q);
|
10315
10307
|
}).filter((q) => !!q));
|
10316
10308
|
}
|
10317
|
-
function F(
|
10318
|
-
x.width =
|
10309
|
+
function F($, x) {
|
10310
|
+
x.width = $, a.store.setVarGridDetailWidth(a.formID, x.dataIndex, $);
|
10319
10311
|
}
|
10320
|
-
async function G(
|
10312
|
+
async function G($, x, X, q) {
|
10321
10313
|
var ee;
|
10322
10314
|
switch (q.action) {
|
10323
10315
|
case "sort":
|
10324
10316
|
{
|
10325
10317
|
await nextTick();
|
10326
10318
|
let z = X;
|
10327
|
-
z.order ? (
|
10319
|
+
z.order ? (N.column = (ee = z.field) != null ? ee : void 0, N.order = z.order === "ascend" ? "asc" : z.order === "descend" ? "desc" : void 0) : (N.column = void 0, N.order = void 0), M(!0);
|
10328
10320
|
}
|
10329
10321
|
break;
|
10330
10322
|
}
|
10331
10323
|
}
|
10332
|
-
function P(
|
10333
|
-
x !== A.pageSize ? (A.pageIndex = 1, A.pageSize = x) : A.pageIndex =
|
10324
|
+
function P($, x) {
|
10325
|
+
x !== A.pageSize ? (A.pageIndex = 1, A.pageSize = x) : A.pageIndex = $, M();
|
10334
10326
|
}
|
10335
|
-
function U(
|
10336
|
-
|
10327
|
+
function U($) {
|
10328
|
+
I.value = [$.id], i.store.setSelectedRows(a.formID, I.value.map((x) => {
|
10337
10329
|
var X;
|
10338
10330
|
return (X = D.value) == null ? void 0 : X.find((q) => q.id === x);
|
10339
10331
|
}).filter((x) => !!x)), s.click(a.formID, KG_BUTTON_TYPE.UPDATE);
|
10340
10332
|
}
|
10341
10333
|
function H({
|
10342
|
-
title:
|
10334
|
+
title: $,
|
10343
10335
|
column: x
|
10344
10336
|
}) {
|
10345
10337
|
switch (x.dataIndex) {
|
10346
10338
|
case "index":
|
10347
10339
|
return createVNode(KgTableSetting, null, null);
|
10348
10340
|
default:
|
10349
|
-
return createVNode("pre", null, [
|
10341
|
+
return createVNode("pre", null, [$]);
|
10350
10342
|
}
|
10351
10343
|
}
|
10352
10344
|
function Q({
|
10353
|
-
column:
|
10345
|
+
column: $,
|
10354
10346
|
index: x,
|
10355
10347
|
record: X,
|
10356
10348
|
value: q,
|
10357
10349
|
text: ee
|
10358
10350
|
}) {
|
10359
10351
|
let z = "";
|
10360
|
-
|
10352
|
+
$.customRender ? z = $.customRender({
|
10361
10353
|
index: x,
|
10362
10354
|
record: X,
|
10363
|
-
column:
|
10355
|
+
column: $,
|
10364
10356
|
text: ee,
|
10365
10357
|
value: q,
|
10366
10358
|
renderIndex: x
|
@@ -10368,24 +10360,24 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
10368
10360
|
const te = createVNode(KgTableCell, {
|
10369
10361
|
kgRow: X,
|
10370
10362
|
kgValue: z,
|
10371
|
-
kgVarName:
|
10363
|
+
kgVarName: $.dataIndex,
|
10372
10364
|
onKgUpdateLinkClick: () => U(X)
|
10373
10365
|
}, null);
|
10374
10366
|
return t.bodyCell ? t.bodyCell({
|
10375
10367
|
value: q,
|
10376
10368
|
record: X,
|
10377
10369
|
index: x,
|
10378
|
-
column:
|
10370
|
+
column: $,
|
10379
10371
|
defaultRender: te
|
10380
10372
|
}) : te;
|
10381
10373
|
}
|
10382
10374
|
function J() {
|
10383
|
-
return !
|
10375
|
+
return !m.value && !i.store.getIsRetrieved(a.formID) ? n.t("kg.KgTable.emptyText") : n.t("kg.emptyText");
|
10384
10376
|
}
|
10385
10377
|
return () => createVNode("div", {
|
10386
10378
|
class: B.value,
|
10387
10379
|
"kg-frm-id": a.formID,
|
10388
|
-
ref:
|
10380
|
+
ref: p
|
10389
10381
|
}, [createVNode(Table, {
|
10390
10382
|
class: "kg-flex-table",
|
10391
10383
|
size: "small",
|
@@ -10397,11 +10389,11 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
10397
10389
|
showSorterTooltip: !1,
|
10398
10390
|
columns: u.value,
|
10399
10391
|
dataSource: D.value,
|
10400
|
-
loading:
|
10392
|
+
loading: g.value,
|
10401
10393
|
rowKey: "id",
|
10402
10394
|
rowSelection: T.value,
|
10403
|
-
customRow: (
|
10404
|
-
onClick: (x) =>
|
10395
|
+
customRow: ($) => ({
|
10396
|
+
onClick: (x) => w(x, $)
|
10405
10397
|
}),
|
10406
10398
|
onResizeColumn: F,
|
10407
10399
|
onChange: G
|
@@ -10414,32 +10406,32 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
10414
10406
|
}, [createVNode("div", {
|
10415
10407
|
class: "left"
|
10416
10408
|
}, [v.value && createVNode(KgTableInfo, {
|
10417
|
-
kgShowClearCheck:
|
10409
|
+
kgShowClearCheck: I.value.length > 0,
|
10418
10410
|
kgShowClearTable: A.total > 0,
|
10419
|
-
kgShowLocate:
|
10420
|
-
kgTotal:
|
10421
|
-
kgDisabled:
|
10411
|
+
kgShowLocate: I.value.length === 1,
|
10412
|
+
kgTotal: I.value.length,
|
10413
|
+
kgDisabled: g.value
|
10422
10414
|
}, null)]), createVNode("div", {
|
10423
10415
|
class: "right"
|
10424
10416
|
}, [C.value && createVNode(Pagination, {
|
10425
10417
|
size: "default",
|
10426
10418
|
current: A.pageIndex,
|
10427
10419
|
pageSize: A.pageSize,
|
10428
|
-
pageSizeOptions: y.value.map((
|
10420
|
+
pageSizeOptions: y.value.map(($) => String($)),
|
10429
10421
|
total: A.total,
|
10430
10422
|
showSizeChanger: !0,
|
10431
10423
|
showQuickJumper: !1,
|
10432
10424
|
hideOnSinglePage: !1,
|
10433
|
-
disabled:
|
10425
|
+
disabled: g.value || A.total === 0,
|
10434
10426
|
locale: {
|
10435
10427
|
page: ""
|
10436
10428
|
},
|
10437
|
-
showTotal: (
|
10429
|
+
showTotal: ($, x) => n.t("kg.KgTable.totalText", {
|
10438
10430
|
from: x[0],
|
10439
10431
|
to: x[1],
|
10440
|
-
total:
|
10432
|
+
total: $
|
10441
10433
|
}),
|
10442
|
-
onChange: (
|
10434
|
+
onChange: ($, x) => P($, x)
|
10443
10435
|
}, null)])])]);
|
10444
10436
|
}
|
10445
10437
|
}), getProps$f = () => ({
|
@@ -10545,26 +10537,26 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
10545
10537
|
props: getProps$f(),
|
10546
10538
|
setup(e) {
|
10547
10539
|
const t = useKg(), r = useKgVar(), n = useKgSearch(), a = computed(() => r.store.getVarButton(r.formID, e.kgVarName)), o = computed(() => {
|
10548
|
-
var
|
10549
|
-
return a.value ? (
|
10540
|
+
var p, _;
|
10541
|
+
return a.value ? (_ = (p = a.value) == null ? void 0 : p.cmd) != null ? _ : "" : null;
|
10550
10542
|
}), s = computed(() => {
|
10551
|
-
var
|
10552
|
-
return (
|
10543
|
+
var p, _;
|
10544
|
+
return (_ = (p = a.value) == null ? void 0 : p.cmd_method) != null ? _ : "GET";
|
10553
10545
|
}), i = computed(() => {
|
10554
|
-
var
|
10555
|
-
let
|
10556
|
-
...(
|
10546
|
+
var _, b, m, v, C, y;
|
10547
|
+
let p = {
|
10548
|
+
...(_ = n.model.value) != null ? _ : {}
|
10557
10549
|
};
|
10558
|
-
return a.value && (
|
10559
|
-
...
|
10560
|
-
...KgVarUtil.parseCommandParameter((
|
10561
|
-
}), (v = r.varGridConfig.value) != null && v.cmd_prm && (
|
10562
|
-
...
|
10550
|
+
return a.value && (p = {
|
10551
|
+
...p,
|
10552
|
+
...KgVarUtil.parseCommandParameter((m = (b = a.value) == null ? void 0 : b.cmd_prm) != null ? m : "")
|
10553
|
+
}), (v = r.varGridConfig.value) != null && v.cmd_prm && (p = {
|
10554
|
+
...p,
|
10563
10555
|
...KgVarUtil.parseCommandParameter((C = r.varGridConfig.value.cmd_prm) != null ? C : "")
|
10564
|
-
}), ((y = r.varGridConfig.value) == null ? void 0 : y.convert_sort_field_to_under_score_flg) === 1 &&
|
10556
|
+
}), ((y = r.varGridConfig.value) == null ? void 0 : y.convert_sort_field_to_under_score_flg) === 1 && p.column && (p.column = snakeCase$1(p.column)), p;
|
10565
10557
|
}), l = ref(!1);
|
10566
10558
|
async function u() {
|
10567
|
-
var
|
10559
|
+
var p, _, b;
|
10568
10560
|
if (!(e.onKgClick && await e.onKgClick())) {
|
10569
10561
|
if (!o.value) {
|
10570
10562
|
Logger.error("\u5BFC\u51FA\u6309\u94AE\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
|
@@ -10574,7 +10566,7 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
10574
10566
|
}
|
10575
10567
|
l.value = !0;
|
10576
10568
|
try {
|
10577
|
-
const
|
10569
|
+
const m = await httpClient().request({
|
10578
10570
|
method: s.value,
|
10579
10571
|
url: o.value,
|
10580
10572
|
params: i.value,
|
@@ -10583,9 +10575,9 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
10583
10575
|
joinParamsToUrl: !0,
|
10584
10576
|
isTransformResponse: !1
|
10585
10577
|
});
|
10586
|
-
KgUtil.downloadFile(
|
10587
|
-
} catch (
|
10588
|
-
throw
|
10578
|
+
KgUtil.downloadFile(m, `${r.t((_ = (p = a.value) == null ? void 0 : p.export_excel_filename) != null ? _ : "export").value}.${(b = a.value) == null ? void 0 : b.export_excel_suffix}`);
|
10579
|
+
} catch (m) {
|
10580
|
+
throw m;
|
10589
10581
|
} finally {
|
10590
10582
|
l.value = !1;
|
10591
10583
|
}
|
@@ -10598,7 +10590,7 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
10598
10590
|
icon: e.kgIcon
|
10599
10591
|
}, null)]) : createVNode(UploadOutlined$1, null, null);
|
10600
10592
|
}
|
10601
|
-
function
|
10593
|
+
function g() {
|
10602
10594
|
return e.kgText ? e.kgText : t.t("kg.export");
|
10603
10595
|
}
|
10604
10596
|
return () => createVNode(Button, {
|
@@ -10608,7 +10600,7 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
10608
10600
|
loading: l.value,
|
10609
10601
|
onClick: u
|
10610
10602
|
}, {
|
10611
|
-
default: () => [c(),
|
10603
|
+
default: () => [c(), g()]
|
10612
10604
|
});
|
10613
10605
|
}
|
10614
10606
|
}), KgButtonImport = defineComponent({
|
@@ -10619,25 +10611,25 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
10619
10611
|
attrs: r
|
10620
10612
|
}) {
|
10621
10613
|
const n = useKg(), a = useKgVar(), o = useKgSearch(), s = computed(() => a.store.getVarButton(a.formID, e.kgVarName)), i = computed(() => {
|
10622
|
-
var
|
10623
|
-
return s.value ? (b = (
|
10614
|
+
var _, b;
|
10615
|
+
return s.value ? (b = (_ = s.value) == null ? void 0 : _.cmd) != null ? b : "" : null;
|
10624
10616
|
}), l = computed(() => {
|
10625
|
-
var
|
10626
|
-
return (b = (
|
10617
|
+
var _, b;
|
10618
|
+
return (b = (_ = s.value) == null ? void 0 : _.cmd_method) != null ? b : "POST";
|
10627
10619
|
});
|
10628
10620
|
computed(() => {
|
10629
|
-
var b,
|
10630
|
-
let
|
10621
|
+
var b, m, v;
|
10622
|
+
let _ = {
|
10631
10623
|
...(b = o.model.value) != null ? b : {}
|
10632
10624
|
};
|
10633
|
-
return s.value && (
|
10634
|
-
...
|
10635
|
-
...KgVarUtil.parseCommandParameter((v = (
|
10636
|
-
}),
|
10625
|
+
return s.value && (_ = {
|
10626
|
+
..._,
|
10627
|
+
...KgVarUtil.parseCommandParameter((v = (m = s.value) == null ? void 0 : m.cmd_prm) != null ? v : "")
|
10628
|
+
}), _;
|
10637
10629
|
});
|
10638
10630
|
const u = ref(!1);
|
10639
|
-
async function c(
|
10640
|
-
var b,
|
10631
|
+
async function c(_) {
|
10632
|
+
var b, m;
|
10641
10633
|
if (!i.value)
|
10642
10634
|
return Logger.error("\u5BFC\u5165\u6309\u94AE\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
|
10643
10635
|
button: s.value
|
@@ -10645,7 +10637,7 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
10645
10637
|
u.value = !0;
|
10646
10638
|
try {
|
10647
10639
|
const v = new FormData();
|
10648
|
-
v.append("file",
|
10640
|
+
v.append("file", _), await httpClient().axiosInstance.request({
|
10649
10641
|
method: l.value,
|
10650
10642
|
baseURL: window._CONFIG.domianURL,
|
10651
10643
|
url: i.value,
|
@@ -10654,7 +10646,7 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
10654
10646
|
"Content-Type": "multipart/form-data;charset=UTF-8",
|
10655
10647
|
ignoreCancelToken: !0
|
10656
10648
|
}
|
10657
|
-
}), message.success(n.t("kg.importSuccess")), (
|
10649
|
+
}), message.success(n.t("kg.importSuccess")), (m = (b = o.search).value) == null || m.call(b, !0);
|
10658
10650
|
} catch (v) {
|
10659
10651
|
throw v;
|
10660
10652
|
} finally {
|
@@ -10662,14 +10654,14 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
10662
10654
|
}
|
10663
10655
|
return !1;
|
10664
10656
|
}
|
10665
|
-
function
|
10657
|
+
function g() {
|
10666
10658
|
return u.value ? createVNode(LoadingOutlined$1, null, null) : e.kgIcon ? createVNode("span", {
|
10667
10659
|
class: "anticon"
|
10668
10660
|
}, [createVNode(Icon, {
|
10669
10661
|
icon: e.kgIcon
|
10670
10662
|
}, null)]) : createVNode(DownloadOutlined$1, null, null);
|
10671
10663
|
}
|
10672
|
-
function
|
10664
|
+
function p() {
|
10673
10665
|
return e.kgText ? e.kgText : n.t("kg.import");
|
10674
10666
|
}
|
10675
10667
|
return () => createVNode(Upload, {
|
@@ -10685,7 +10677,7 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
10685
10677
|
ghost: !e.kgPrimary && !e.kgDisabled,
|
10686
10678
|
loading: u.value
|
10687
10679
|
}, {
|
10688
|
-
default: () => [
|
10680
|
+
default: () => [g(), p()]
|
10689
10681
|
})]
|
10690
10682
|
});
|
10691
10683
|
}
|
@@ -10694,11 +10686,11 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
10694
10686
|
props: getProps$f(),
|
10695
10687
|
setup(e) {
|
10696
10688
|
const t = useKg(), r = useKgVar(), n = computed(() => r.store.getVarButton(r.formID, e.kgVarName)), a = computed(() => {
|
10697
|
-
var c,
|
10698
|
-
return n.value ? (
|
10689
|
+
var c, g;
|
10690
|
+
return n.value ? (g = (c = n.value) == null ? void 0 : c.cmd) != null ? g : "" : null;
|
10699
10691
|
}), o = computed(() => {
|
10700
|
-
var c,
|
10701
|
-
return (
|
10692
|
+
var c, g;
|
10693
|
+
return (g = (c = n.value) == null ? void 0 : c.cmd_method) != null ? g : "GET";
|
10702
10694
|
}), s = ref(!1);
|
10703
10695
|
async function i() {
|
10704
10696
|
var c;
|
@@ -10710,7 +10702,7 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
10710
10702
|
}
|
10711
10703
|
s.value = !0;
|
10712
10704
|
try {
|
10713
|
-
const
|
10705
|
+
const g = await httpClient().request({
|
10714
10706
|
method: o.value,
|
10715
10707
|
url: a.value,
|
10716
10708
|
params: {
|
@@ -10721,9 +10713,9 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
10721
10713
|
joinParamsToUrl: !0,
|
10722
10714
|
isTransformResponse: !1
|
10723
10715
|
});
|
10724
|
-
KgUtil.downloadFile(
|
10725
|
-
} catch (
|
10726
|
-
throw
|
10716
|
+
KgUtil.downloadFile(g, `${t.t("kg.importTemplate")}.${(c = n.value) == null ? void 0 : c.export_excel_suffix}`);
|
10717
|
+
} catch (g) {
|
10718
|
+
throw g;
|
10727
10719
|
} finally {
|
10728
10720
|
s.value = !1;
|
10729
10721
|
}
|
@@ -10754,7 +10746,7 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
10754
10746
|
setup(e) {
|
10755
10747
|
const t = useKg(), r = useKgVar(), n = useKgTable();
|
10756
10748
|
async function a() {
|
10757
|
-
var c,
|
10749
|
+
var c, g, p;
|
10758
10750
|
if (e.onKgClick && await e.onKgClick())
|
10759
10751
|
return;
|
10760
10752
|
const i = (c = e.kgButton) == null ? void 0 : c.cmd;
|
@@ -10766,27 +10758,27 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
10766
10758
|
}
|
10767
10759
|
let l = null;
|
10768
10760
|
const u = async () => {
|
10769
|
-
var
|
10761
|
+
var m, v, C, y, E, k;
|
10770
10762
|
l == null || l.showLoading(), r.store.setIsOtherRequesting(r.formID, !0);
|
10771
|
-
const
|
10763
|
+
const _ = ((m = r.varGridConfig.value) == null ? void 0 : m.mult_flg) === 1, b = n.selectedRows.value;
|
10772
10764
|
try {
|
10773
10765
|
await httpClient().request({
|
10774
10766
|
method: (C = (v = e.kgButton) == null ? void 0 : v.cmd_method) != null ? C : "POST",
|
10775
10767
|
url: i,
|
10776
10768
|
params: KgVarUtil.parseCommandParameter((E = (y = e.kgButton) == null ? void 0 : y.cmd_prm) != null ? E : ""),
|
10777
|
-
data:
|
10769
|
+
data: _ ? b != null ? b : [] : (k = b == null ? void 0 : b[0]) != null ? k : {}
|
10778
10770
|
});
|
10779
|
-
} catch (
|
10780
|
-
console.error(
|
10771
|
+
} catch (V) {
|
10772
|
+
console.error(V);
|
10781
10773
|
} finally {
|
10782
10774
|
r.store.setIsOtherRequesting(r.formID, !1), l == null || l.hideLoading();
|
10783
10775
|
}
|
10784
10776
|
};
|
10785
|
-
if (((
|
10786
|
-
const
|
10787
|
-
typeof
|
10777
|
+
if (((g = e.kgButton) == null ? void 0 : g.show_modal_flg) === 1) {
|
10778
|
+
const _ = KgUtil.tryParseJSON((p = e.kgButton) == null ? void 0 : p.modal_props);
|
10779
|
+
typeof _.content == "string" && (_.content = r.t(_.content).value), l = KgUtil.confirm({
|
10788
10780
|
onOk: () => u(),
|
10789
|
-
...
|
10781
|
+
..._
|
10790
10782
|
});
|
10791
10783
|
} else
|
10792
10784
|
u();
|
@@ -10929,28 +10921,26 @@ const useKgButtonStore = () => (store$3 || (store$3 = defineStore("KgButton", {
|
|
10929
10921
|
}
|
10930
10922
|
}).bind(null, pinia())), store$3);
|
10931
10923
|
function useKgButton(e) {
|
10932
|
-
const t = useKgVar(e), r = useKgButtonStore()()
|
10933
|
-
function s
|
10934
|
-
return isFunction$2(
|
10924
|
+
const t = useKgVar(e), r = useKgButtonStore()();
|
10925
|
+
function n(s) {
|
10926
|
+
return isFunction$2(s) ? (r.addEventListener(t.formID, "click", s), onUnmounted(() => r.removeEventListener(t.formID, "click", s)), () => r.removeEventListener(t.formID, "click", s)) : () => {
|
10935
10927
|
};
|
10936
10928
|
}
|
10937
|
-
function
|
10938
|
-
return isFunction$2(
|
10929
|
+
function a(s) {
|
10930
|
+
return isFunction$2(s) ? (r.addEventListener(t.formID, "beforeUpdate", s), onUnmounted(() => r.removeEventListener(t.formID, "beforeUpdate", s)), () => r.removeEventListener(t.formID, "beforeUpdate", s)) : () => {
|
10939
10931
|
};
|
10940
10932
|
}
|
10941
|
-
function
|
10942
|
-
return isFunction$2(
|
10933
|
+
function o(s) {
|
10934
|
+
return isFunction$2(s) ? (r.addEventListener(t.formID, "deleteOk", s), onUnmounted(() => r.removeEventListener(t.formID, "deleteOk", s)), () => r.removeEventListener(t.formID, "deleteOk", s)) : () => {
|
10943
10935
|
};
|
10944
10936
|
}
|
10945
|
-
return
|
10946
|
-
n.forEach((u) => r.removeEventListener(t.formID, "click", u)), a.forEach((u) => r.removeEventListener(t.formID, "beforeUpdate", u)), o.forEach((u) => r.removeEventListener(t.formID, "deleteOk", u));
|
10947
|
-
}), {
|
10937
|
+
return {
|
10948
10938
|
formID: t.formID,
|
10949
10939
|
store: r,
|
10950
10940
|
click: r.click,
|
10951
|
-
onClick:
|
10952
|
-
onBeforeUpdate:
|
10953
|
-
onDeleteOk:
|
10941
|
+
onClick: n,
|
10942
|
+
onBeforeUpdate: a,
|
10943
|
+
onDeleteOk: o
|
10954
10944
|
};
|
10955
10945
|
}
|
10956
10946
|
const KgButtonUpdate = defineComponent({
|
@@ -11004,8 +10994,8 @@ const KgButtonItem = defineComponent({
|
|
11004
10994
|
props: getProps$f(),
|
11005
10995
|
setup(e) {
|
11006
10996
|
const t = useKg(), r = useKgVar(), n = useKgTable(), a = computed(() => r.store.getVarButton(r.formID, e.kgVarName)), o = computed(() => {
|
11007
|
-
var u, c,
|
11008
|
-
return e.kgDisabled !== void 0 ? e.kgDisabled : !!(n.isRetrieving.value || ((u = a.value) == null ? void 0 : u.dis_no_select_flg) === 1 && ((
|
10997
|
+
var u, c, g, p, _, b, m, v;
|
10998
|
+
return e.kgDisabled !== void 0 ? e.kgDisabled : !!(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 && ((b = (_ = n.selectedRows.value) == null ? void 0 : _.length) != null ? b : 0) > 1 || ((m = a.value) == null ? void 0 : m.permission_type) === 2 && !t.p((v = a.value) == null ? void 0 : v.permission_code));
|
11009
10999
|
}), s = computed(() => {
|
11010
11000
|
let u = "kg-button-item";
|
11011
11001
|
switch (e.kgColor) {
|
@@ -11015,15 +11005,15 @@ const KgButtonItem = defineComponent({
|
|
11015
11005
|
}
|
11016
11006
|
return u;
|
11017
11007
|
}), i = computed(() => {
|
11018
|
-
var c,
|
11008
|
+
var c, g, p, _;
|
11019
11009
|
return {
|
11020
11010
|
...e,
|
11021
11011
|
class: s.value,
|
11022
11012
|
kgDisabled: o.value,
|
11023
11013
|
"kg-var-btn-id": (c = a.value) == null ? void 0 : c.id,
|
11024
|
-
"kg-frm-id": (
|
11025
|
-
"kg-var-nam": (
|
11026
|
-
"kg-cmd": (
|
11014
|
+
"kg-frm-id": (g = a.value) == null ? void 0 : g.frm_id,
|
11015
|
+
"kg-var-nam": (p = a.value) == null ? void 0 : p.var_nam,
|
11016
|
+
"kg-cmd": (_ = a.value) == null ? void 0 : _.cmd
|
11027
11017
|
};
|
11028
11018
|
});
|
11029
11019
|
function l() {
|
@@ -11071,15 +11061,15 @@ const getProps$e = () => ({
|
|
11071
11061
|
props: getProps$e(),
|
11072
11062
|
setup(e) {
|
11073
11063
|
const t = useKg(), r = useKgVar(), n = useKgButton(), a = computed(() => !1);
|
11074
|
-
function o(
|
11075
|
-
return n.store.emit(r.formID, "click",
|
11064
|
+
function o(_) {
|
11065
|
+
return n.store.emit(r.formID, "click", _);
|
11076
11066
|
}
|
11077
|
-
function s(
|
11067
|
+
function s(_) {
|
11078
11068
|
if (e.kgDisabled)
|
11079
|
-
return e.kgDisabled(
|
11069
|
+
return e.kgDisabled(_);
|
11080
11070
|
}
|
11081
|
-
function i(
|
11082
|
-
switch (
|
11071
|
+
function i(_) {
|
11072
|
+
switch (_.primary_flg) {
|
11083
11073
|
case 1:
|
11084
11074
|
return !0;
|
11085
11075
|
case 0:
|
@@ -11088,39 +11078,39 @@ const getProps$e = () => ({
|
|
11088
11078
|
return;
|
11089
11079
|
}
|
11090
11080
|
}
|
11091
|
-
function l(
|
11092
|
-
if (r.t(
|
11093
|
-
return r.t(
|
11081
|
+
function l(_) {
|
11082
|
+
if (r.t(_.var_nam).value !== _.var_nam)
|
11083
|
+
return r.t(_.var_nam).value;
|
11094
11084
|
}
|
11095
11085
|
function u() {
|
11096
|
-
var
|
11097
|
-
if (!r.varButtons.value || ((
|
11086
|
+
var _, b;
|
11087
|
+
if (!r.varButtons.value || ((_ = r.varButtons.value) == null ? void 0 : _.length) === 0)
|
11098
11088
|
return null;
|
11099
11089
|
switch ((b = r.varGridConfig.value) == null ? void 0 : b.button_display_type) {
|
11100
11090
|
case KG_BUTTON_DISPLAY_TYPE.SELECT:
|
11101
|
-
return g();
|
11102
|
-
default:
|
11103
11091
|
return p();
|
11092
|
+
default:
|
11093
|
+
return g();
|
11104
11094
|
}
|
11105
11095
|
}
|
11106
|
-
function c(
|
11096
|
+
function c(_) {
|
11107
11097
|
return createVNode(KgButtonItem, {
|
11108
|
-
kgButton:
|
11109
|
-
kgVarName:
|
11110
|
-
kgType:
|
11111
|
-
kgIcon:
|
11112
|
-
kgText: l(
|
11113
|
-
kgColor:
|
11114
|
-
kgPrimary: i(
|
11115
|
-
kgDisabled: s(
|
11116
|
-
onKgClick: () => o(
|
11098
|
+
kgButton: _,
|
11099
|
+
kgVarName: _.var_nam,
|
11100
|
+
kgType: _.typ,
|
11101
|
+
kgIcon: _.icon,
|
11102
|
+
kgText: l(_),
|
11103
|
+
kgColor: _.color,
|
11104
|
+
kgPrimary: i(_),
|
11105
|
+
kgDisabled: s(_),
|
11106
|
+
onKgClick: () => o(_)
|
11117
11107
|
}, null);
|
11118
11108
|
}
|
11119
|
-
function p() {
|
11120
|
-
var m;
|
11121
|
-
return (m = r.varButtons.value) == null ? void 0 : m.filter((b) => b.typ !== KG_BUTTON_TYPE.SEARCH).map((b) => c(b));
|
11122
|
-
}
|
11123
11109
|
function g() {
|
11110
|
+
var _;
|
11111
|
+
return (_ = r.varButtons.value) == null ? void 0 : _.filter((b) => b.typ !== KG_BUTTON_TYPE.SEARCH).map((b) => c(b));
|
11112
|
+
}
|
11113
|
+
function p() {
|
11124
11114
|
return createVNode(Dropdown, {
|
11125
11115
|
trigger: "click",
|
11126
11116
|
overlayClassName: "kg-button-dropdown"
|
@@ -11132,10 +11122,10 @@ const getProps$e = () => ({
|
|
11132
11122
|
}),
|
11133
11123
|
overlay: () => createVNode(Menu, null, {
|
11134
11124
|
default: () => {
|
11135
|
-
var
|
11136
|
-
return [(b = (
|
11125
|
+
var _, b;
|
11126
|
+
return [(b = (_ = r.varButtons.value) == null ? void 0 : _.filter((m) => m.typ !== KG_BUTTON_TYPE.SEARCH)) == null ? void 0 : b.filter((m) => !(m.permission_type !== 2 && !t.p(m.permission_code))).map((m) => {
|
11137
11127
|
let v;
|
11138
|
-
return createVNode(Menu.Item, null, _isSlot$3(v = c(
|
11128
|
+
return createVNode(Menu.Item, null, _isSlot$3(v = c(m)) ? v : {
|
11139
11129
|
default: () => [v]
|
11140
11130
|
});
|
11141
11131
|
})];
|
@@ -11144,14 +11134,14 @@ const getProps$e = () => ({
|
|
11144
11134
|
});
|
11145
11135
|
}
|
11146
11136
|
return () => {
|
11147
|
-
let
|
11137
|
+
let _;
|
11148
11138
|
return createVNode("div", {
|
11149
11139
|
class: "kg-button",
|
11150
11140
|
"kg-frm-id": r.formID
|
11151
11141
|
}, [createVNode(Spin, {
|
11152
11142
|
spinning: a.value
|
11153
|
-
}, _isSlot$3(
|
11154
|
-
default: () => [
|
11143
|
+
}, _isSlot$3(_ = u()) ? _ : {
|
11144
|
+
default: () => [_]
|
11155
11145
|
})]);
|
11156
11146
|
};
|
11157
11147
|
}
|
@@ -11213,7 +11203,7 @@ const useKgSearchStore = () => (store$2 || (store$2 = defineStore("KgSearch", {
|
|
11213
11203
|
dispose(e) {
|
11214
11204
|
if (!e)
|
11215
11205
|
return Logger.error("formID \u4E3A\u7A7A."), null;
|
11216
|
-
this.isReadyMap.delete(e), this.modelMap.delete(e), this.
|
11206
|
+
this.isReadyMap.delete(e), this.modelMap.delete(e), this.searchFnMap.delete(e), this.resetFnMap.delete(e);
|
11217
11207
|
},
|
11218
11208
|
addEventListener(e, t, r) {
|
11219
11209
|
switch (t) {
|
@@ -11330,33 +11320,30 @@ const useKgSearchStore = () => (store$2 || (store$2 = defineStore("KgSearch", {
|
|
11330
11320
|
}
|
11331
11321
|
}).bind(null, pinia())), store$2);
|
11332
11322
|
function useKgSearch(e) {
|
11333
|
-
const t = useKgVar(e), r = useKgSearchStore()()
|
11334
|
-
function
|
11335
|
-
return isFunction$2(
|
11323
|
+
const t = useKgVar(e), r = useKgSearchStore()();
|
11324
|
+
function n(c) {
|
11325
|
+
return isFunction$2(c) ? (r.addEventListener(t.formID, "search", c), onUnmounted(() => r.removeEventListener(t.formID, "search", c)), () => r.removeEventListener(t.formID, "search", c)) : () => {
|
11336
11326
|
};
|
11337
11327
|
}
|
11338
|
-
function
|
11339
|
-
return isFunction$2(
|
11328
|
+
function a(c) {
|
11329
|
+
return isFunction$2(c) ? (r.addEventListener(t.formID, "reset", c), onUnmounted(() => r.removeEventListener(t.formID, "reset", c)), () => r.removeEventListener(t.formID, "reset", c)) : () => {
|
11340
11330
|
};
|
11341
11331
|
}
|
11342
|
-
function
|
11343
|
-
return isFunction$2(
|
11332
|
+
function o(c, g = !1) {
|
11333
|
+
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)) : () => {
|
11344
11334
|
};
|
11345
11335
|
}
|
11346
|
-
|
11347
|
-
n.forEach((m) => r.removeEventListener(t.formID, "search", m)), a.forEach((m) => r.removeEventListener(t.formID, "reset", m)), o.forEach((m) => r.removeEventListener(t.formID, "ready", m));
|
11348
|
-
});
|
11349
|
-
const u = computed(() => r.getIsReady(t.formID)), c = computed(() => r.getModel(t.formID)), p = computed(() => r.getSearchFn(t.formID)), g = computed(() => r.getResetFn(t.formID));
|
11336
|
+
const s = computed(() => r.getIsReady(t.formID)), i = computed(() => r.getModel(t.formID)), l = computed(() => r.getSearchFn(t.formID)), u = computed(() => r.getResetFn(t.formID));
|
11350
11337
|
return {
|
11351
11338
|
formID: t.formID,
|
11352
11339
|
store: r,
|
11353
|
-
onSearch:
|
11354
|
-
onReset:
|
11355
|
-
onReady:
|
11356
|
-
isReady:
|
11357
|
-
model:
|
11358
|
-
search:
|
11359
|
-
reset:
|
11340
|
+
onSearch: n,
|
11341
|
+
onReset: a,
|
11342
|
+
onReady: o,
|
11343
|
+
isReady: s,
|
11344
|
+
model: i,
|
11345
|
+
search: l,
|
11346
|
+
reset: u
|
11360
11347
|
};
|
11361
11348
|
}
|
11362
11349
|
const FORM_ID__VAR_PROFILE_MASTER = "kg-search.VarProfileMaster";
|
@@ -11546,24 +11533,73 @@ const leftVarProfileDetailColumns = (e) => {
|
|
11546
11533
|
emit: t
|
11547
11534
|
}) {
|
11548
11535
|
const r = useKg(), n = useKgVar(FORM_ID__VAR_PROFILE_MASTER, !0, 1), a = useKgSearch(FORM_ID__VAR_PROFILE_MASTER), o = useKgButton(FORM_ID__VAR_PROFILE_MASTER), s = useKgSubmit(FORM_ID__VAR_PROFILE_MASTER), i = useKgVar(e.hostFormID);
|
11549
|
-
s.onOpen(
|
11550
|
-
|
11536
|
+
s.onOpen(async ({
|
11537
|
+
isCreating: b,
|
11538
|
+
isUpdating: m,
|
11539
|
+
isCopying: v,
|
11540
|
+
row: C,
|
11541
|
+
model: y
|
11542
|
+
}) => {
|
11543
|
+
var k, V;
|
11544
|
+
const E = i.store.getSystemVarProfileDetails(i.formID);
|
11545
|
+
switch (l.value = E ? cloneDeep(unref(toRaw(E))) : [], !0) {
|
11546
|
+
case b:
|
11547
|
+
u.value = [];
|
11548
|
+
break;
|
11549
|
+
case m:
|
11550
|
+
case v:
|
11551
|
+
if (C != null && C.id)
|
11552
|
+
try {
|
11553
|
+
s.store.setIsLoading(n.formID, !0);
|
11554
|
+
const T = await QueryByID({
|
11555
|
+
params: {
|
11556
|
+
id: C.id
|
11557
|
+
}
|
11558
|
+
});
|
11559
|
+
l.value = l.value.map((D) => {
|
11560
|
+
var A;
|
11561
|
+
const I = (A = T == null ? void 0 : T.varProfileDetails) == null ? void 0 : A.find((N) => N.var_nam === D.var_nam);
|
11562
|
+
return I ? {
|
11563
|
+
...D,
|
11564
|
+
...I,
|
11565
|
+
id: D.id
|
11566
|
+
} : D;
|
11567
|
+
});
|
11568
|
+
const B = (V = (k = T == null ? void 0 : T.varProfileDetails) == null ? void 0 : k.map((D) => D.var_nam)) != null ? V : [];
|
11569
|
+
u.value = l.value.filter((D) => B.includes(D.var_nam)).map((D) => D.id);
|
11570
|
+
} catch (T) {
|
11571
|
+
throw T;
|
11572
|
+
} finally {
|
11573
|
+
s.store.setIsLoading(n.formID, !1);
|
11574
|
+
}
|
11575
|
+
else
|
11576
|
+
u.value = [];
|
11577
|
+
break;
|
11578
|
+
}
|
11579
|
+
switch (!0) {
|
11580
|
+
case v:
|
11581
|
+
y.value.prf_var_nam = y.value.prf_var_nam + "_COPY";
|
11582
|
+
break;
|
11583
|
+
}
|
11584
|
+
return !1;
|
11585
|
+
}), s.onBeforeOk(async ({
|
11586
|
+
model: b
|
11551
11587
|
}) => {
|
11552
|
-
var
|
11553
|
-
return
|
11588
|
+
var m, v;
|
11589
|
+
return b.value.frm_id = i.formID, b.value.varProfileDetails = (v = (m = l.value) == null ? void 0 : m.filter((C) => u.value.includes(C.id))) != null ? v : [], !1;
|
11554
11590
|
}), s.onOk(async () => (i.store.retrieve(i.formID), !1)), o.onBeforeUpdate(({
|
11555
|
-
row:
|
11556
|
-
}) => (
|
11591
|
+
row: b
|
11592
|
+
}) => (b == null ? void 0 : b.cust_lvl) === KG_CUSTOM_LEVEL.L0 ? new Promise((m) => {
|
11557
11593
|
KgUtil.confirm({
|
11558
11594
|
content: r.t("kg.KgSearchConfigModal.canNotUpdateSystemVarProfileMaster"),
|
11559
11595
|
okButtonProps: {
|
11560
11596
|
danger: !1
|
11561
11597
|
},
|
11562
11598
|
onOk: () => {
|
11563
|
-
n.store.setIsCopying(n.formID, !0),
|
11599
|
+
n.store.setIsCopying(n.formID, !0), m(!0);
|
11564
11600
|
},
|
11565
11601
|
onCancel: () => {
|
11566
|
-
|
11602
|
+
m(!0);
|
11567
11603
|
}
|
11568
11604
|
});
|
11569
11605
|
}) : Promise.resolve(!1)), o.onDeleteOk(() => (i.store.retrieve(i.formID), Promise.resolve(!1)));
|
@@ -11571,51 +11607,51 @@ const leftVarProfileDetailColumns = (e) => {
|
|
11571
11607
|
KgSubmit: {
|
11572
11608
|
"KgForm.Item": {
|
11573
11609
|
varProfileDetails: ({
|
11574
|
-
varName:
|
11575
|
-
props:
|
11576
|
-
model:
|
11577
|
-
varConfig:
|
11578
|
-
varProfileDetail:
|
11579
|
-
varSubmitField:
|
11610
|
+
varName: b,
|
11611
|
+
props: m,
|
11612
|
+
model: v,
|
11613
|
+
varConfig: C,
|
11614
|
+
varProfileDetail: y,
|
11615
|
+
varSubmitField: E
|
11580
11616
|
}) => createVNode(Transfer, {
|
11581
11617
|
dataSource: l.value,
|
11582
11618
|
targetKeys: u.value,
|
11583
|
-
"onUpdate:targetKeys": (
|
11584
|
-
rowKey: (
|
11619
|
+
"onUpdate:targetKeys": (k) => u.value = k,
|
11620
|
+
rowKey: (k) => k.id,
|
11585
11621
|
showSearch: !0,
|
11586
11622
|
showSelectAll: !1,
|
11587
11623
|
searchPlaceholder: " ",
|
11588
|
-
filterOption: (
|
11589
|
-
var
|
11590
|
-
return !!((
|
11624
|
+
filterOption: (k, V) => {
|
11625
|
+
var T;
|
11626
|
+
return !!((T = V.var_nam) != null && T.includes(k));
|
11591
11627
|
}
|
11592
11628
|
}, {
|
11593
11629
|
children: ({
|
11594
|
-
direction:
|
11595
|
-
filteredItems:
|
11596
|
-
selectedKeys:
|
11597
|
-
disabled:
|
11598
|
-
onItemSelectAll:
|
11599
|
-
onItemSelect:
|
11630
|
+
direction: k,
|
11631
|
+
filteredItems: V,
|
11632
|
+
selectedKeys: T,
|
11633
|
+
disabled: B,
|
11634
|
+
onItemSelectAll: D,
|
11635
|
+
onItemSelect: I
|
11600
11636
|
}) => createVNode(Table, {
|
11601
11637
|
pagination: !1,
|
11602
11638
|
class: "kg-flex-table",
|
11603
11639
|
size: "small",
|
11604
11640
|
scroll: {
|
11605
|
-
x:
|
11641
|
+
x: k === "left" ? "370px" : "1244px",
|
11606
11642
|
y: "auto"
|
11607
11643
|
},
|
11608
|
-
columns:
|
11644
|
+
columns: k === "left" ? leftVarProfileDetailColumns(e.hostFormID) : rightVarProfileDetailColumns(e.hostFormID),
|
11609
11645
|
rowKey: "id",
|
11610
|
-
dataSource:
|
11611
|
-
customRow: (
|
11612
|
-
onClick: (N) =>
|
11646
|
+
dataSource: V,
|
11647
|
+
customRow: (A) => ({
|
11648
|
+
onClick: (N) => _(N, A, k, T)
|
11613
11649
|
}),
|
11614
|
-
rowSelection:
|
11615
|
-
disabled:
|
11616
|
-
selectedKeys:
|
11617
|
-
onItemSelectAll:
|
11618
|
-
onItemSelect:
|
11650
|
+
rowSelection: g({
|
11651
|
+
disabled: B,
|
11652
|
+
selectedKeys: T,
|
11653
|
+
onItemSelectAll: D,
|
11654
|
+
onItemSelect: I
|
11619
11655
|
})
|
11620
11656
|
}, null)
|
11621
11657
|
})
|
@@ -11623,98 +11659,54 @@ const leftVarProfileDetailColumns = (e) => {
|
|
11623
11659
|
}
|
11624
11660
|
});
|
11625
11661
|
onMounted(() => {
|
11626
|
-
|
11662
|
+
p();
|
11627
11663
|
});
|
11628
|
-
const
|
11629
|
-
disabled:
|
11630
|
-
selectedKeys:
|
11631
|
-
onItemSelectAll:
|
11632
|
-
onItemSelect:
|
11664
|
+
const g = ({
|
11665
|
+
disabled: b,
|
11666
|
+
selectedKeys: m,
|
11667
|
+
onItemSelectAll: v,
|
11668
|
+
onItemSelect: C
|
11633
11669
|
}) => ({
|
11634
|
-
getCheckboxProps: (
|
11635
|
-
disabled:
|
11670
|
+
getCheckboxProps: (y) => ({
|
11671
|
+
disabled: b || y.disabled
|
11636
11672
|
}),
|
11637
|
-
onSelectAll(
|
11638
|
-
const
|
11639
|
-
key:
|
11640
|
-
}) =>
|
11641
|
-
|
11673
|
+
onSelectAll(y, E) {
|
11674
|
+
const k = E.filter((V) => !V.disabled).map(({
|
11675
|
+
key: V
|
11676
|
+
}) => V);
|
11677
|
+
v(k, y);
|
11642
11678
|
},
|
11643
11679
|
onSelect({
|
11644
|
-
key:
|
11645
|
-
},
|
11646
|
-
y
|
11680
|
+
key: y
|
11681
|
+
}, E) {
|
11682
|
+
C(y, E);
|
11647
11683
|
},
|
11648
|
-
selectedRowKeys:
|
11684
|
+
selectedRowKeys: m,
|
11649
11685
|
columnWidth: 32
|
11650
11686
|
});
|
11651
|
-
async function
|
11652
|
-
|
11653
|
-
|
11654
|
-
|
11655
|
-
row: y
|
11656
|
-
}) {
|
11657
|
-
var I, $;
|
11658
|
-
const E = i.store.getSystemVarProfileDetails(i.formID);
|
11659
|
-
switch (l.value = E ? cloneDeep(unref(toRaw(E))) : [], !0) {
|
11660
|
-
case _:
|
11661
|
-
u.value = [];
|
11662
|
-
break;
|
11663
|
-
case v:
|
11664
|
-
case C:
|
11665
|
-
if (y != null && y.id)
|
11666
|
-
try {
|
11667
|
-
s.store.setIsLoading(n.formID, !0);
|
11668
|
-
const T = await QueryByID({
|
11669
|
-
params: {
|
11670
|
-
id: y.id
|
11671
|
-
}
|
11672
|
-
});
|
11673
|
-
l.value = l.value.map((D) => {
|
11674
|
-
var A;
|
11675
|
-
const k = (A = T == null ? void 0 : T.varProfileDetails) == null ? void 0 : A.find((L) => L.var_nam === D.var_nam);
|
11676
|
-
return k ? {
|
11677
|
-
...D,
|
11678
|
-
...k,
|
11679
|
-
id: D.id
|
11680
|
-
} : D;
|
11681
|
-
});
|
11682
|
-
const B = ($ = (I = T == null ? void 0 : T.varProfileDetails) == null ? void 0 : I.map((D) => D.var_nam)) != null ? $ : [];
|
11683
|
-
u.value = l.value.filter((D) => B.includes(D.var_nam)).map((D) => D.id);
|
11684
|
-
} catch (T) {
|
11685
|
-
throw T;
|
11686
|
-
} finally {
|
11687
|
-
s.store.setIsLoading(n.formID, !1);
|
11688
|
-
}
|
11689
|
-
else
|
11690
|
-
u.value = [];
|
11691
|
-
break;
|
11692
|
-
}
|
11693
|
-
return !1;
|
11694
|
-
}
|
11695
|
-
async function m() {
|
11696
|
-
const _ = watch(a.isReady, async (v) => {
|
11697
|
-
var C, y;
|
11698
|
-
v && a.model.value && (setTimeout(() => _(), 0), a.store.patchModel(n.formID, {
|
11687
|
+
async function p() {
|
11688
|
+
const b = watch(a.isReady, async (m) => {
|
11689
|
+
var v, C;
|
11690
|
+
m && a.model.value && (setTimeout(() => b(), 0), a.store.patchModel(n.formID, {
|
11699
11691
|
frm_id: e.hostFormID
|
11700
|
-
}), (
|
11692
|
+
}), (C = (v = a.search).value) == null || C.call(v));
|
11701
11693
|
}, {
|
11702
11694
|
immediate: !0
|
11703
11695
|
});
|
11704
11696
|
}
|
11705
|
-
function b
|
11706
|
-
if (!DomUtil.isNotClickable(
|
11707
|
-
switch (
|
11697
|
+
function _(b, m, v, C) {
|
11698
|
+
if (!DomUtil.isNotClickable(b.target, ["ant-input"]))
|
11699
|
+
switch (C.length = 0, b.detail) {
|
11708
11700
|
case 1:
|
11709
|
-
|
11701
|
+
C[0] = m.id;
|
11710
11702
|
break;
|
11711
11703
|
case 2:
|
11712
|
-
switch (
|
11704
|
+
switch (v) {
|
11713
11705
|
case "left":
|
11714
|
-
u.value.push(
|
11706
|
+
u.value.push(m.id);
|
11715
11707
|
break;
|
11716
11708
|
case "right":
|
11717
|
-
u.value = without$1(u.value,
|
11709
|
+
u.value = without$1(u.value, m.id);
|
11718
11710
|
break;
|
11719
11711
|
}
|
11720
11712
|
break;
|
@@ -11822,20 +11814,20 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
11822
11814
|
const o = computed(() => r.store.getFormLevel(r.formID)), s = computed(() => r.store.getVarProfileConfig(r.formID)), i = computed(() => {
|
11823
11815
|
var P;
|
11824
11816
|
return o.value > 0 ? !1 : ((P = s.value) == null ? void 0 : P.header_teleport_flg) !== 0;
|
11825
|
-
}), l = computed(() => getDefaultHeight(r.currentVarProfileDetails.value, i.value)), u = computed(() => getMaxHeight(r.currentVarProfileDetails.value, i.value)), c = computed(() => i.value ? 1 : HEADER_HEIGHT),
|
11817
|
+
}), l = computed(() => getDefaultHeight(r.currentVarProfileDetails.value, i.value)), u = computed(() => getMaxHeight(r.currentVarProfileDetails.value, i.value)), c = computed(() => i.value ? 1 : HEADER_HEIGHT), g = computed(() => {
|
11826
11818
|
var P, U;
|
11827
11819
|
return !!(a.isRetrieving.value || ((P = E.value) == null ? void 0 : P.permission_type) === 2 && !t.p((U = E.value) == null ? void 0 : U.permission_code));
|
11828
|
-
}),
|
11820
|
+
}), p = computed(() => !!a.isRetrieving.value), _ = computed(() => !!a.isRetrieving.value), b = ref(null), m = ref({
|
11829
11821
|
kgHeight: c.value
|
11830
11822
|
}), v = ref({
|
11831
11823
|
visible: !1
|
11832
11824
|
});
|
11833
11825
|
let C;
|
11834
|
-
const y = computed(() =>
|
11826
|
+
const y = computed(() => m.value.kgHeight === c.value), E = computed(() => r.store.getVarButtonSearch(r.formID)), k = computed(() => {
|
11835
11827
|
var P, U, H;
|
11836
11828
|
if (r.t((P = E.value) == null ? void 0 : P.var_nam).value !== ((U = E.value) == null ? void 0 : U.var_nam))
|
11837
11829
|
return r.t((H = E.value) == null ? void 0 : H.var_nam).value;
|
11838
|
-
}),
|
11830
|
+
}), V = computed(() => {
|
11839
11831
|
var P;
|
11840
11832
|
switch ((P = E.value) == null ? void 0 : P.primary_flg) {
|
11841
11833
|
case 1:
|
@@ -11848,7 +11840,7 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
11848
11840
|
}), T = computed(() => {
|
11849
11841
|
var P;
|
11850
11842
|
return ((P = s.value) == null ? void 0 : P.vis_flg) === 1;
|
11851
|
-
}), B = computed(() => !!(r.isRetrievingVar.value || r.isRetrievingVarProfileMaster.value || i.value && !!r.isOtherRequesting.value)), D = computed(() => !!r.isRetrievingVar.value || !!r.isRetrievingVarProfileMaster.value),
|
11843
|
+
}), B = computed(() => !!(r.isRetrievingVar.value || r.isRetrievingVarProfileMaster.value || i.value && !!r.isOtherRequesting.value)), D = computed(() => !!r.isRetrievingVar.value || !!r.isRetrievingVarProfileMaster.value), I = computed(() => {
|
11852
11844
|
let P = "kg-search";
|
11853
11845
|
return T.value && (P += " kg-search--visible"), i.value && (P += " kg-search--teleport"), P;
|
11854
11846
|
});
|
@@ -11857,7 +11849,7 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
11857
11849
|
const U = {};
|
11858
11850
|
P.forEach((H) => {
|
11859
11851
|
U[H.var_nam] = "";
|
11860
|
-
}),
|
11852
|
+
}), m.value.kgHeight = l.value, n.store.setModel(r.formID, reactive(U)), T.value ? (C == null || C(), C = watch(b, (H) => {
|
11861
11853
|
H && (n.store.emit(r.formID, "ready"), n.store.setIsReady(r.formID, !0));
|
11862
11854
|
}, {
|
11863
11855
|
immediate: !0
|
@@ -11882,7 +11874,7 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
11882
11874
|
});
|
11883
11875
|
}
|
11884
11876
|
n.store.setSearchFn(r.formID, A);
|
11885
|
-
function
|
11877
|
+
function N() {
|
11886
11878
|
var P;
|
11887
11879
|
(P = b.value) == null || P.resetFields(), T.value ? b.value && b.value.validate().then(() => {
|
11888
11880
|
n.store.emit(r.formID, "reset");
|
@@ -11892,11 +11884,11 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
11892
11884
|
});
|
11893
11885
|
}) : n.store.emit(r.formID, "reset");
|
11894
11886
|
}
|
11895
|
-
n.store.setResetFn(r.formID,
|
11896
|
-
function
|
11887
|
+
n.store.setResetFn(r.formID, N);
|
11888
|
+
function L() {
|
11897
11889
|
return A(!0), Promise.resolve(!0);
|
11898
11890
|
}
|
11899
|
-
function
|
11891
|
+
function w() {
|
11900
11892
|
return createVNode("div", {
|
11901
11893
|
class: "title",
|
11902
11894
|
onClick: G
|
@@ -11907,13 +11899,13 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
11907
11899
|
return ((H = (U = (P = r.varProfileMasters) == null ? void 0 : P.value) == null ? void 0 : U.length) != null ? H : 0) === 0 ? null : createVNode(Fragment, null, [createVNode(Select, {
|
11908
11900
|
value: (Q = r.currentVarProfileMasterID.value) != null ? Q : void 0,
|
11909
11901
|
"onUpdate:value": (J) => r.store.setCurrentVarProfileMasterID(r.formID, J),
|
11910
|
-
disabled:
|
11902
|
+
disabled: p.value,
|
11911
11903
|
onChange: F,
|
11912
11904
|
class: "kg-search-profile-master-select"
|
11913
11905
|
}, {
|
11914
11906
|
default: () => {
|
11915
|
-
var J,
|
11916
|
-
return (
|
11907
|
+
var J, $;
|
11908
|
+
return ($ = (J = r.varProfileMasters) == null ? void 0 : J.value) == null ? void 0 : $.map((x) => createVNode(Select.Option, {
|
11917
11909
|
value: x.id
|
11918
11910
|
}, {
|
11919
11911
|
default: () => [r.t(x == null ? void 0 : x.prf_var_nam).value]
|
@@ -11921,7 +11913,7 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
11921
11913
|
},
|
11922
11914
|
suffixIcon: () => createVNode(CaretDownOutlined$1, null, null)
|
11923
11915
|
}), createVNode(Button, {
|
11924
|
-
disabled:
|
11916
|
+
disabled: p.value,
|
11925
11917
|
onClick: () => {
|
11926
11918
|
v.value.visible = !0;
|
11927
11919
|
},
|
@@ -11938,9 +11930,9 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
11938
11930
|
var P, U, H, Q, J;
|
11939
11931
|
return createVNode(Fragment, null, [M(), !(((P = E.value) == null ? void 0 : P.permission_type) !== 2 && !t.p((U = E.value) == null ? void 0 : U.permission_code)) && createVNode(Button, {
|
11940
11932
|
type: "primary",
|
11941
|
-
ghost: !
|
11942
|
-
disabled:
|
11943
|
-
onClick:
|
11933
|
+
ghost: !g.value,
|
11934
|
+
disabled: g.value,
|
11935
|
+
onClick: N,
|
11944
11936
|
class: "kg-search-btn-reset"
|
11945
11937
|
}, {
|
11946
11938
|
default: () => [createVNode(ReloadOutlined$1, null, null), t.t("kg.reset")]
|
@@ -11948,11 +11940,11 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
11948
11940
|
kgType: KG_BUTTON_TYPE.SEARCH,
|
11949
11941
|
kgVarName: (H = E.value) == null ? void 0 : H.var_nam,
|
11950
11942
|
kgIcon: (Q = E.value) == null ? void 0 : Q.icon,
|
11951
|
-
kgText:
|
11943
|
+
kgText: k.value,
|
11952
11944
|
kgColor: (J = E.value) == null ? void 0 : J.color,
|
11953
|
-
kgPrimary:
|
11954
|
-
kgLoading:
|
11955
|
-
onKgClick:
|
11945
|
+
kgPrimary: V.value,
|
11946
|
+
kgLoading: _.value,
|
11947
|
+
onKgClick: L
|
11956
11948
|
}, null)]);
|
11957
11949
|
}
|
11958
11950
|
function R() {
|
@@ -11983,13 +11975,13 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
11983
11975
|
console.log("333:value", P);
|
11984
11976
|
}
|
11985
11977
|
function G() {
|
11986
|
-
y.value ?
|
11978
|
+
y.value ? m.value.kgHeight = l.value : m.value.kgHeight = c.value;
|
11987
11979
|
}
|
11988
11980
|
return () => createVNode(KgResizable, {
|
11989
|
-
class:
|
11981
|
+
class: I.value,
|
11990
11982
|
"kg-frm-id": r.formID,
|
11991
|
-
kgHeight:
|
11992
|
-
"onUpdate:kgHeight": (P) =>
|
11983
|
+
kgHeight: m.value.kgHeight,
|
11984
|
+
"onUpdate:kgHeight": (P) => m.value.kgHeight = P,
|
11993
11985
|
kgMinHeight: c.value,
|
11994
11986
|
kgMaxHeight: u.value
|
11995
11987
|
}, {
|
@@ -12006,7 +11998,7 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
12006
11998
|
}, [createVNode(Spin, {
|
12007
11999
|
spinning: B.value
|
12008
12000
|
}, {
|
12009
|
-
default: () => [
|
12001
|
+
default: () => [w(), createVNode("div", {
|
12010
12002
|
class: "ant-collapse-extra"
|
12011
12003
|
}, [O()])]
|
12012
12004
|
})])]
|
@@ -12071,35 +12063,35 @@ function useMagicKeys(e = {}) {
|
|
12071
12063
|
} = e, s = reactive(/* @__PURE__ */ new Set()), i = { toJSON() {
|
12072
12064
|
return {};
|
12073
12065
|
}, current: s }, l = t ? reactive(i) : i, u = /* @__PURE__ */ new Set(), c = /* @__PURE__ */ new Set();
|
12074
|
-
function
|
12075
|
-
|
12066
|
+
function g(m, v) {
|
12067
|
+
m in l && (t ? l[m] = v : l[m].value = v);
|
12076
12068
|
}
|
12077
|
-
function
|
12078
|
-
for (const
|
12079
|
-
|
12069
|
+
function p() {
|
12070
|
+
for (const m of c)
|
12071
|
+
g(m, !1);
|
12080
12072
|
}
|
12081
|
-
function m
|
12073
|
+
function _(m, v) {
|
12082
12074
|
var C, y;
|
12083
|
-
const E = (C =
|
12084
|
-
|
12085
|
-
for (const T of
|
12086
|
-
c.add(T),
|
12075
|
+
const E = (C = m.key) == null ? void 0 : C.toLowerCase(), k = (y = m.code) == null ? void 0 : y.toLowerCase(), V = [k, E].filter(Boolean);
|
12076
|
+
k && (v ? s.add(m.code) : s.delete(m.code));
|
12077
|
+
for (const T of V)
|
12078
|
+
c.add(T), g(T, v);
|
12087
12079
|
E === "meta" && !v ? (u.forEach((T) => {
|
12088
|
-
s.delete(T),
|
12089
|
-
}), u.clear()) : typeof
|
12080
|
+
s.delete(T), g(T, !1);
|
12081
|
+
}), u.clear()) : typeof m.getModifierState == "function" && m.getModifierState("Meta") && v && [...s, ...V].forEach((T) => u.add(T));
|
12090
12082
|
}
|
12091
|
-
r && (useEventListener(r, "keydown", (
|
12083
|
+
r && (useEventListener(r, "keydown", (m) => (_(m, !0), o(m)), { passive: a }), useEventListener(r, "keyup", (m) => (_(m, !1), o(m)), { passive: a }), useEventListener("blur", p, { passive: !0 }), useEventListener("focus", p, { passive: !0 }));
|
12092
12084
|
const b = new Proxy(l, {
|
12093
|
-
get(
|
12085
|
+
get(m, v, C) {
|
12094
12086
|
if (typeof v != "string")
|
12095
|
-
return Reflect.get(
|
12087
|
+
return Reflect.get(m, v, C);
|
12096
12088
|
if (v = v.toLowerCase(), v in n && (v = n[v]), !(v in l))
|
12097
12089
|
if (/[+_-]/.test(v)) {
|
12098
|
-
const E = v.split(/[+_-]/g).map((
|
12099
|
-
l[v] = computed(() => E.every((
|
12090
|
+
const E = v.split(/[+_-]/g).map((k) => k.trim());
|
12091
|
+
l[v] = computed(() => E.every((k) => unref(b[k])));
|
12100
12092
|
} else
|
12101
12093
|
l[v] = ref(!1);
|
12102
|
-
const y = Reflect.get(
|
12094
|
+
const y = Reflect.get(m, v, C);
|
12103
12095
|
return t ? unref(y) : y;
|
12104
12096
|
}
|
12105
12097
|
});
|
@@ -12185,7 +12177,7 @@ const KgVarConfig_FormIDsModal = "", getProps$8 = () => ({
|
|
12185
12177
|
})),
|
12186
12178
|
rowSelection: a.value,
|
12187
12179
|
customRow: (c) => ({
|
12188
|
-
onClick: (
|
12180
|
+
onClick: (g) => o(g, c)
|
12189
12181
|
})
|
12190
12182
|
}, null)];
|
12191
12183
|
}
|
@@ -12408,7 +12400,7 @@ const getProps$2 = () => ({
|
|
12408
12400
|
}, {
|
12409
12401
|
default: () => [createVNode(Radio.Group, {
|
12410
12402
|
value: n.value,
|
12411
|
-
"onUpdate:value": (
|
12403
|
+
"onUpdate:value": (g) => n.value = g,
|
12412
12404
|
buttonStyle: "solid"
|
12413
12405
|
}, {
|
12414
12406
|
default: () => [createVNode(Radio.Button, {
|
@@ -12433,7 +12425,7 @@ const getProps$2 = () => ({
|
|
12433
12425
|
}, {
|
12434
12426
|
default: () => [createVNode(Radio.Group, {
|
12435
12427
|
value: a.value,
|
12436
|
-
"onUpdate:value": (
|
12428
|
+
"onUpdate:value": (g) => a.value = g,
|
12437
12429
|
buttonStyle: "solid"
|
12438
12430
|
}, {
|
12439
12431
|
default: () => [createVNode(Radio.Button, {
|
@@ -12480,50 +12472,50 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
12480
12472
|
setup() {
|
12481
12473
|
const e = inject(DI_CONFIG_FORM_ID, null), t = useKg(), r = useKgVarStore()(), n = useKgVarConfigStore()(), a = ref(!1), o = ref(!1), s = ref(!1), i = ref(null), l = ref({
|
12482
12474
|
var_text: ""
|
12483
|
-
}), u = ref([]), c = ref(null),
|
12475
|
+
}), u = ref([]), c = ref(null), g = ref([]), p = ref({
|
12484
12476
|
fixed: !0,
|
12485
12477
|
columnWidth: 32,
|
12486
12478
|
hideSelectAll: !0,
|
12487
|
-
selectedRowKeys:
|
12488
|
-
onSelect: (
|
12489
|
-
}),
|
12479
|
+
selectedRowKeys: g,
|
12480
|
+
onSelect: (L) => B(L)
|
12481
|
+
}), _ = ref({
|
12490
12482
|
visible: !1
|
12491
|
-
}), b = computed(() => !!(unref(c) || unref(a) || unref(o) || unref(s))),
|
12492
|
-
var
|
12493
|
-
return !!c.value || ((
|
12483
|
+
}), b = computed(() => !!(unref(c) || unref(a) || unref(o) || unref(s))), m = computed(() => {
|
12484
|
+
var L;
|
12485
|
+
return !!c.value || ((L = n.getSelectedVarCatalog) == null ? void 0 : L.cust_lvl) === KG_CUSTOM_LEVEL.L0;
|
12494
12486
|
}), v = computed(() => !!(!unref(c) || unref(a) || unref(o))), C = computed(() => !!(!unref(n.getSelectedVarCatalog) || unref(a)));
|
12495
|
-
watch(() => n.getSelectedVar, (
|
12496
|
-
|
12487
|
+
watch(() => n.getSelectedVar, (L) => {
|
12488
|
+
L ? y() : (c.value = null, u.value = [], n.setSelectedVarCatalog(null));
|
12497
12489
|
}, {
|
12498
12490
|
immediate: !0
|
12499
|
-
}), watch(() => n.getSelectedVarCatalog, async (
|
12500
|
-
var
|
12501
|
-
l.value.var_text = (
|
12491
|
+
}), watch(() => n.getSelectedVarCatalog, async (L) => {
|
12492
|
+
var w, M;
|
12493
|
+
l.value.var_text = (w = L == null ? void 0 : L.var_text) != null ? w : "", (M = i.value) == null || M.clearValidate();
|
12502
12494
|
});
|
12503
|
-
async function y(
|
12504
|
-
var
|
12495
|
+
async function y(L = !1) {
|
12496
|
+
var w, M, O;
|
12505
12497
|
a.value = !0;
|
12506
12498
|
try {
|
12507
12499
|
const {
|
12508
12500
|
records: R
|
12509
|
-
} = await List
|
12501
|
+
} = await List({
|
12510
12502
|
params: {
|
12511
12503
|
pageNo: 1,
|
12512
12504
|
pageSize: 999,
|
12513
12505
|
frm_id: e == null ? void 0 : e.value,
|
12514
|
-
var_nam: (
|
12506
|
+
var_nam: (w = n.getSelectedVar) == null ? void 0 : w.var_nam,
|
12515
12507
|
column: "frm_id,locale_id,cust_lvl",
|
12516
12508
|
order: "asc"
|
12517
12509
|
}
|
12518
12510
|
});
|
12519
|
-
if (c.value = null, u.value = R != null ? R : [],
|
12511
|
+
if (c.value = null, u.value = R != null ? R : [], L) {
|
12520
12512
|
const F = u.value.find((G) => {
|
12521
12513
|
var P;
|
12522
12514
|
return G.id === ((P = n.getSelectedVarCatalog) == null ? void 0 : P.id);
|
12523
12515
|
});
|
12524
|
-
n.setSelectedVarCatalog(F != null ? F : null),
|
12516
|
+
n.setSelectedVarCatalog(F != null ? F : null), g.value = F != null && F.id ? [F.id] : [];
|
12525
12517
|
} else
|
12526
|
-
n.setSelectedVarCatalog((M = u.value[0]) != null ? M : null),
|
12518
|
+
n.setSelectedVarCatalog((M = u.value[0]) != null ? M : null), g.value = (O = u.value[0]) != null && O.id ? [u.value[0].id] : [];
|
12527
12519
|
} catch (R) {
|
12528
12520
|
Logger.debug(R == null ? void 0 : R.message);
|
12529
12521
|
} finally {
|
@@ -12531,26 +12523,26 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
12531
12523
|
}
|
12532
12524
|
}
|
12533
12525
|
async function E() {
|
12534
|
-
var
|
12526
|
+
var L, w, M;
|
12535
12527
|
try {
|
12536
|
-
o.value = !0, await ((
|
12528
|
+
o.value = !0, await ((L = i.value) == null ? void 0 : L.validate());
|
12537
12529
|
const O = new VarCatalog({
|
12538
|
-
...(
|
12530
|
+
...(w = n.getSelectedVarCatalog) != null ? w : {},
|
12539
12531
|
var_text: (M = l.value) == null ? void 0 : M.var_text
|
12540
12532
|
});
|
12541
|
-
O.id ? O.cust_lvl === KG_CUSTOM_LEVEL.L0 ? (O.cust_lvl = KG_CUSTOM_LEVEL.L10, Reflect.deleteProperty(O, "id"), await Add
|
12533
|
+
O.id ? O.cust_lvl === KG_CUSTOM_LEVEL.L0 ? (O.cust_lvl = KG_CUSTOM_LEVEL.L10, Reflect.deleteProperty(O, "id"), await Add({
|
12542
12534
|
data: O
|
12543
12535
|
}, {
|
12544
12536
|
successMessageMode: "none"
|
12545
12537
|
}), message.success({
|
12546
12538
|
content: t.t("kg.KgVarConfig.createSuccess")
|
12547
|
-
}), await y()) : (await Edit
|
12539
|
+
}), await y()) : (await Edit({
|
12548
12540
|
data: O
|
12549
12541
|
}, {
|
12550
12542
|
successMessageMode: "none"
|
12551
12543
|
}), message.success({
|
12552
12544
|
content: t.t("kg.KgVarConfig.saveSuccess")
|
12553
|
-
}), await y(!0)) : (await Add
|
12545
|
+
}), await y(!0)) : (await Add({
|
12554
12546
|
data: O
|
12555
12547
|
}, {
|
12556
12548
|
successMessageMode: "none"
|
@@ -12563,9 +12555,9 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
12563
12555
|
o.value = !1;
|
12564
12556
|
}
|
12565
12557
|
}
|
12566
|
-
function
|
12567
|
-
isAllForm:
|
12568
|
-
isAllLanguage:
|
12558
|
+
function k({
|
12559
|
+
isAllForm: L,
|
12560
|
+
isAllLanguage: w
|
12569
12561
|
}) {
|
12570
12562
|
var M, O, R;
|
12571
12563
|
c.value = new VarCatalog({
|
@@ -12573,24 +12565,24 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
12573
12565
|
cust_lvl: KG_CUSTOM_LEVEL.L10,
|
12574
12566
|
grp_nam: (M = n.getSelectedVar) == null ? void 0 : M.grp_nam,
|
12575
12567
|
var_nam: (O = n.getSelectedVar) == null ? void 0 : O.var_nam,
|
12576
|
-
frm_id:
|
12577
|
-
locale_id:
|
12568
|
+
frm_id: L || !(e != null && e.value) ? "ALL" : e == null ? void 0 : e.value,
|
12569
|
+
locale_id: w ? "ALL" : (R = t.locale) == null ? void 0 : R.value,
|
12578
12570
|
var_text: ""
|
12579
|
-
}), u.value = [...u.value, c.value], n.setSelectedVarCatalog(unref(c)),
|
12571
|
+
}), u.value = [...u.value, c.value], n.setSelectedVarCatalog(unref(c)), g.value = [""];
|
12580
12572
|
}
|
12581
|
-
function
|
12582
|
-
var
|
12573
|
+
function V() {
|
12574
|
+
var w;
|
12583
12575
|
u.value = without$1(u.value, c.value), c.value = null;
|
12584
|
-
const
|
12585
|
-
n.setSelectedVarCatalog(
|
12576
|
+
const L = (w = u.value[0]) != null ? w : null;
|
12577
|
+
n.setSelectedVarCatalog(L), g.value = L ? [L.id] : [];
|
12586
12578
|
}
|
12587
12579
|
function T() {
|
12588
12580
|
KgUtil.confirm({
|
12589
12581
|
onOk: async () => {
|
12590
|
-
var
|
12591
|
-
await Delete
|
12582
|
+
var L;
|
12583
|
+
await Delete({
|
12592
12584
|
params: {
|
12593
|
-
id: (
|
12585
|
+
id: (L = n.getSelectedVarCatalog) == null ? void 0 : L.id
|
12594
12586
|
}
|
12595
12587
|
}, {
|
12596
12588
|
successMessageMode: "none",
|
@@ -12601,19 +12593,19 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
12601
12593
|
}
|
12602
12594
|
});
|
12603
12595
|
}
|
12604
|
-
function B(
|
12605
|
-
var
|
12606
|
-
((
|
12596
|
+
function B(L) {
|
12597
|
+
var w;
|
12598
|
+
((w = n.getSelectedVarCatalog) == null ? void 0 : w.id) !== L.id && (unref(c) ? KgUtil.confirm({
|
12607
12599
|
content: t.t("kg.KgVarConfig.discardConfirmMessage"),
|
12608
12600
|
onOk: () => {
|
12609
|
-
u.value = without$1(u.value, c.value), c.value = null, n.setSelectedVarCatalog(unref(
|
12601
|
+
u.value = without$1(u.value, c.value), c.value = null, n.setSelectedVarCatalog(unref(L)), g.value = [L.id];
|
12610
12602
|
}
|
12611
|
-
}) : (n.setSelectedVarCatalog(unref(
|
12603
|
+
}) : (n.setSelectedVarCatalog(unref(L)), g.value = [L.id]));
|
12612
12604
|
}
|
12613
12605
|
function D() {
|
12614
|
-
|
12606
|
+
_.value.visible = !0;
|
12615
12607
|
}
|
12616
|
-
function
|
12608
|
+
function I() {
|
12617
12609
|
return createVNode("div", {
|
12618
12610
|
class: "buttons"
|
12619
12611
|
}, [createVNode(Button, {
|
@@ -12624,8 +12616,8 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
12624
12616
|
default: () => [createVNode(PlusOutlined$1, null, null), t.t("common.create")]
|
12625
12617
|
}), createVNode(Button, {
|
12626
12618
|
onClick: T,
|
12627
|
-
disabled:
|
12628
|
-
ghost: !
|
12619
|
+
disabled: m.value,
|
12620
|
+
ghost: !m.value,
|
12629
12621
|
type: "primary",
|
12630
12622
|
danger: !0
|
12631
12623
|
}, {
|
@@ -12633,7 +12625,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
12633
12625
|
})]);
|
12634
12626
|
}
|
12635
12627
|
function A() {
|
12636
|
-
let
|
12628
|
+
let L, w;
|
12637
12629
|
return createVNode("div", {
|
12638
12630
|
class: "form"
|
12639
12631
|
}, [createVNode(Form, {
|
@@ -12660,26 +12652,26 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
12660
12652
|
class: "buttons"
|
12661
12653
|
}, [createVNode(Button, {
|
12662
12654
|
disabled: v.value,
|
12663
|
-
onClick:
|
12664
|
-
}, _isSlot(
|
12665
|
-
default: () => [
|
12655
|
+
onClick: V
|
12656
|
+
}, _isSlot(L = t.t("common.cancelText")) ? L : {
|
12657
|
+
default: () => [L]
|
12666
12658
|
}), createVNode(Button, {
|
12667
12659
|
loading: o.value,
|
12668
12660
|
disabled: C.value,
|
12669
12661
|
onClick: E,
|
12670
12662
|
type: "primary"
|
12671
|
-
}, _isSlot(
|
12672
|
-
default: () => [
|
12663
|
+
}, _isSlot(w = t.t("common.save")) ? w : {
|
12664
|
+
default: () => [w]
|
12673
12665
|
})])]);
|
12674
12666
|
}
|
12675
|
-
function L
|
12667
|
+
function N(L) {
|
12676
12668
|
var M;
|
12677
|
-
let
|
12678
|
-
return
|
12669
|
+
let w = "";
|
12670
|
+
return L.id || (w += " ant-table-row-create"), L.id === ((M = n.getSelectedVarCatalog) == null ? void 0 : M.id) && (w += " ant-table-row-selected "), w;
|
12679
12671
|
}
|
12680
12672
|
return () => createVNode("div", {
|
12681
12673
|
class: "kg-var-config-modal-var-var-catalog"
|
12682
|
-
}, [
|
12674
|
+
}, [I(), createVNode(Table, {
|
12683
12675
|
pagination: !1,
|
12684
12676
|
class: "kg-flex-table",
|
12685
12677
|
size: "small",
|
@@ -12691,15 +12683,15 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
12691
12683
|
rowKey: "id",
|
12692
12684
|
dataSource: u.value,
|
12693
12685
|
loading: a.value,
|
12694
|
-
rowClassName:
|
12695
|
-
rowSelection:
|
12696
|
-
customRow: (
|
12697
|
-
onClick: () => B(
|
12686
|
+
rowClassName: N,
|
12687
|
+
rowSelection: p.value,
|
12688
|
+
customRow: (L) => ({
|
12689
|
+
onClick: () => B(L)
|
12698
12690
|
})
|
12699
12691
|
}, null), A(), createVNode(KgVarConfigModalVarCreateModal, {
|
12700
|
-
visible:
|
12701
|
-
"onUpdate:visible": (
|
12702
|
-
onKgOk:
|
12692
|
+
visible: _.value.visible,
|
12693
|
+
"onUpdate:visible": (L) => _.value.visible = L,
|
12694
|
+
onKgOk: k
|
12703
12695
|
}, null)]);
|
12704
12696
|
}
|
12705
12697
|
}), columns = () => [{
|
@@ -12725,7 +12717,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
12725
12717
|
try {
|
12726
12718
|
const {
|
12727
12719
|
records: l
|
12728
|
-
} = await List({
|
12720
|
+
} = await List$1({
|
12729
12721
|
params: {
|
12730
12722
|
pageNo: 1,
|
12731
12723
|
pageSize: 999,
|
@@ -12984,20 +12976,17 @@ const useKgWarehouseStore = (e) => (store || (store = defineStore("KgWarehouse",
|
|
12984
12976
|
}
|
12985
12977
|
}).bind(null, e != null ? e : pinia())), store);
|
12986
12978
|
function useKgWarehouse(e) {
|
12987
|
-
const t = useKgWarehouseStore(e)()
|
12988
|
-
function
|
12989
|
-
return isFunction$2(
|
12979
|
+
const t = useKgWarehouseStore(e)();
|
12980
|
+
function r(o) {
|
12981
|
+
return isFunction$2(o) ? (t.addEventListener("mounted", o), onUnmounted(() => t.removeEventListener("mounted", o)), () => t.removeEventListener("mounted", o)) : () => {
|
12990
12982
|
};
|
12991
12983
|
}
|
12992
|
-
|
12993
|
-
r.forEach((s) => t.removeEventListener("mounted", s));
|
12994
|
-
});
|
12995
|
-
const a = computed(() => t.getVisible), o = computed(() => t.getWarehouse);
|
12984
|
+
const n = computed(() => t.getVisible), a = computed(() => t.getWarehouse);
|
12996
12985
|
return {
|
12997
12986
|
store: t,
|
12998
|
-
visible:
|
12999
|
-
warehouse:
|
13000
|
-
onMounted:
|
12987
|
+
visible: n,
|
12988
|
+
warehouse: a,
|
12989
|
+
onMounted: r
|
13001
12990
|
};
|
13002
12991
|
}
|
13003
12992
|
const KgWarehouse$1 = "", getProps = () => ({
|
@@ -13011,16 +13000,16 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
13011
13000
|
emit: t
|
13012
13001
|
}) {
|
13013
13002
|
const r = useKg(), n = useKgWarehouse(), a = computed(() => {
|
13014
|
-
let
|
13015
|
-
return (!
|
13003
|
+
let k = "jeecg-layout-header-action__item kg-warehouse";
|
13004
|
+
return (!p.value || e.kgInvisible) && (k += " kg-warehouse--invisible"), k;
|
13016
13005
|
}), o = ref(""), s = n.warehouse, i = ref(null), l = ref(!1), u = reactive([{
|
13017
13006
|
width: 80,
|
13018
13007
|
align: "center",
|
13019
13008
|
customRender: ({
|
13020
|
-
record:
|
13009
|
+
record: k
|
13021
13010
|
}) => {
|
13022
13011
|
var T;
|
13023
|
-
return
|
13012
|
+
return k.id === ((T = i.value) == null ? void 0 : T.id) ? createVNode("img", {
|
13024
13013
|
src: WAREHOUSE_1890ff
|
13025
13014
|
}, null) : createVNode("img", {
|
13026
13015
|
src: WAREHOUSE_000000
|
@@ -13028,44 +13017,44 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
13028
13017
|
}
|
13029
13018
|
}, {
|
13030
13019
|
customRender: ({
|
13031
|
-
record:
|
13020
|
+
record: k
|
13032
13021
|
}) => {
|
13033
13022
|
var T, B, D;
|
13034
|
-
const
|
13035
|
-
return createVNode("div", null, [createVNode("div", null, [(T =
|
13023
|
+
const V = k;
|
13024
|
+
return createVNode("div", null, [createVNode("div", null, [(T = V.whDsc) != null ? T : " ", createTextVNode(" - "), (B = V.whId) != null ? B : " "]), createVNode("div", {
|
13036
13025
|
class: "address"
|
13037
|
-
}, [(D =
|
13026
|
+
}, [(D = V.adrId) != null ? D : " "])]);
|
13038
13027
|
}
|
13039
|
-
}]), c = ref([]),
|
13040
|
-
var
|
13041
|
-
const
|
13028
|
+
}]), c = ref([]), g = computed(() => {
|
13029
|
+
var V;
|
13030
|
+
const k = (V = o.value) == null ? void 0 : V.toUpperCase();
|
13042
13031
|
return c.value.filter((T) => {
|
13043
|
-
var B, D,
|
13044
|
-
return ((D = (B = T.whDsc) == null ? void 0 : B.toUpperCase()) == null ? void 0 : D.includes(
|
13032
|
+
var B, D, I, A, N, L;
|
13033
|
+
return ((D = (B = T.whDsc) == null ? void 0 : B.toUpperCase()) == null ? void 0 : D.includes(k)) || ((A = (I = T.whId) == null ? void 0 : I.toUpperCase()) == null ? void 0 : A.includes(k)) || ((L = (N = T.adrId) == null ? void 0 : N.toUpperCase()) == null ? void 0 : L.includes(k));
|
13045
13034
|
});
|
13046
|
-
}),
|
13047
|
-
var
|
13048
|
-
return ((
|
13035
|
+
}), p = computed(() => {
|
13036
|
+
var k, V;
|
13037
|
+
return ((V = (k = r.option.value) == null ? void 0 : k.KgWarehouse) == null ? void 0 : V.enable) !== !1;
|
13049
13038
|
});
|
13050
|
-
watch(n.visible, (
|
13051
|
-
!
|
13039
|
+
watch(n.visible, (k) => {
|
13040
|
+
!p.value || (k ? b() : m());
|
13052
13041
|
}, {
|
13053
13042
|
immediate: !0
|
13054
13043
|
}), onMounted(() => {
|
13055
13044
|
n.store.emit("mounted");
|
13056
13045
|
});
|
13057
|
-
function
|
13058
|
-
!
|
13046
|
+
function _() {
|
13047
|
+
!p.value || n.store.setVisible(!0);
|
13059
13048
|
}
|
13060
13049
|
function b() {
|
13061
13050
|
i.value = n.warehouse.value, C();
|
13062
13051
|
}
|
13063
|
-
function
|
13052
|
+
function m() {
|
13064
13053
|
o.value = "", c.value = [], i.value = null;
|
13065
13054
|
}
|
13066
13055
|
function v() {
|
13067
|
-
var
|
13068
|
-
!i.value || (e.kgInvisible ? (n.store.setWarehouse(i.value), t("kgOk")) : i.value.id !== ((
|
13056
|
+
var k;
|
13057
|
+
!i.value || (e.kgInvisible ? (n.store.setWarehouse(i.value), t("kgOk")) : i.value.id !== ((k = n.warehouse.value) == null ? void 0 : k.id) && (n.store.setWarehouse(i.value), KgUtil.confirm({
|
13069
13058
|
content: r.t("kg.KgWarehouse.reloadMessage"),
|
13070
13059
|
kgHideCancelButton: !0,
|
13071
13060
|
okButtonProps: {
|
@@ -13081,43 +13070,43 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
13081
13070
|
l.value = !0;
|
13082
13071
|
try {
|
13083
13072
|
const {
|
13084
|
-
records:
|
13073
|
+
records: k
|
13085
13074
|
} = await ListVO({
|
13086
13075
|
params: {
|
13087
13076
|
pageNo: 1,
|
13088
13077
|
pageSize: 999
|
13089
13078
|
}
|
13090
13079
|
});
|
13091
|
-
c.value =
|
13092
|
-
} catch (
|
13093
|
-
console.error(
|
13080
|
+
c.value = k != null ? k : [];
|
13081
|
+
} catch (k) {
|
13082
|
+
console.error(k);
|
13094
13083
|
} finally {
|
13095
13084
|
l.value = !1;
|
13096
13085
|
}
|
13097
13086
|
}
|
13098
|
-
function y(
|
13087
|
+
function y(k, V) {
|
13099
13088
|
var T;
|
13100
|
-
switch (
|
13089
|
+
switch (k.detail) {
|
13101
13090
|
case 1:
|
13102
|
-
((T = i.value) == null ? void 0 : T.id) ===
|
13091
|
+
((T = i.value) == null ? void 0 : T.id) === V.id ? i.value = null : i.value = V;
|
13103
13092
|
break;
|
13104
13093
|
case 2:
|
13105
|
-
i.value =
|
13094
|
+
i.value = V, v();
|
13106
13095
|
break;
|
13107
13096
|
}
|
13108
13097
|
}
|
13109
13098
|
function E() {
|
13110
|
-
return
|
13099
|
+
return p.value ? createVNode(Fragment, null, [createVNode(Tooltip, {
|
13111
13100
|
title: r.t("kg.KgWarehouse.warehouse"),
|
13112
13101
|
placement: "bottomRight"
|
13113
13102
|
}, {
|
13114
13103
|
default: () => {
|
13115
|
-
var
|
13116
|
-
return [((
|
13104
|
+
var k, V;
|
13105
|
+
return [((k = s.value) == null ? void 0 : k.whDsc) || ((V = s.value) == null ? void 0 : V.whId) || r.t("kg.KgWarehouse.selectWarehouse")];
|
13117
13106
|
}
|
13118
13107
|
}), createVNode(KgModal, {
|
13119
13108
|
visible: n.visible.value,
|
13120
|
-
"onUpdate:visible": (
|
13109
|
+
"onUpdate:visible": (k) => n.store.setVisible(k),
|
13121
13110
|
title: r.t("kg.KgWarehouse.title"),
|
13122
13111
|
width: "500px",
|
13123
13112
|
kgFullHeight: !1,
|
@@ -13134,7 +13123,7 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
13134
13123
|
}, {
|
13135
13124
|
default: () => [createVNode(Input, {
|
13136
13125
|
value: o.value,
|
13137
|
-
"onUpdate:value": (
|
13126
|
+
"onUpdate:value": (k) => o.value = k,
|
13138
13127
|
allowClear: !0,
|
13139
13128
|
disabled: l.value,
|
13140
13129
|
placeholder: r.t("kg.search")
|
@@ -13151,14 +13140,14 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
13151
13140
|
spinning: l.value,
|
13152
13141
|
indicator: () => createVNode(LoadingOutlined$1, null, null)
|
13153
13142
|
},
|
13154
|
-
dataSource:
|
13143
|
+
dataSource: g.value,
|
13155
13144
|
columns: u,
|
13156
13145
|
class: "kg-flex-table",
|
13157
|
-
customRow: (
|
13158
|
-
var
|
13146
|
+
customRow: (k) => {
|
13147
|
+
var V;
|
13159
13148
|
return {
|
13160
|
-
class:
|
13161
|
-
onClick: (T) => y(T,
|
13149
|
+
class: k.id === ((V = i.value) == null ? void 0 : V.id) ? "selected" : "",
|
13150
|
+
onClick: (T) => y(T, k)
|
13162
13151
|
};
|
13163
13152
|
}
|
13164
13153
|
}, null)]
|
@@ -13166,7 +13155,7 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
13166
13155
|
}
|
13167
13156
|
return () => createVNode("div", {
|
13168
13157
|
class: a.value,
|
13169
|
-
onClick:
|
13158
|
+
onClick: _
|
13170
13159
|
}, [E()]);
|
13171
13160
|
}
|
13172
13161
|
});
|
@@ -13249,7 +13238,6 @@ export {
|
|
13249
13238
|
Logger,
|
13250
13239
|
VarButton,
|
13251
13240
|
VarCatalog,
|
13252
|
-
VarConfig,
|
13253
13241
|
VarContext,
|
13254
13242
|
VarDTO,
|
13255
13243
|
VarGridConfig,
|
@@ -13266,6 +13254,7 @@ export {
|
|
13266
13254
|
VarProfileMasterDTO,
|
13267
13255
|
VarSubmitConfig,
|
13268
13256
|
VarSubmitField,
|
13257
|
+
VarVariableConfig,
|
13269
13258
|
VarVariableInput,
|
13270
13259
|
WhVO,
|
13271
13260
|
createKgWarehouseGuard,
|