@kengic/vue 0.6.10-beta.3 → 0.6.10-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/kengic-vue.js +1072 -1073
- package/package.json +1 -1
package/dist/kengic-vue.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var ve = Object.defineProperty;
|
|
2
2
|
var be = (e, t, r) => t in e ? ve(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
|
|
3
|
-
var
|
|
3
|
+
var g = (e, t, r) => (be(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
4
4
|
import { h, nextTick, createVNode, defineComponent, toRaw, unref, inject, getCurrentInstance, markRaw, ref, watch, reactive, effectScope, isRef, isReactive, toRef, computed, onUnmounted, toRefs, Fragment, isVNode, createTextVNode, provide, onMounted, mergeProps, Teleport, getCurrentScope, onScopeDispose } from "vue";
|
|
5
5
|
import { Modal, Spin, Tooltip, Select, SelectOption, Button, Progress, Form, Checkbox, Divider, Row, Col, DatePicker, Input, InputNumber, Radio, Switch, Textarea, message, Drawer, Tag, Tabs, Dropdown, Menu, Table, Pagination, TableSummary, Upload, ConfigProvider, Transfer, Card, TabPane } from "ant-design-vue";
|
|
6
6
|
const index$7 = "";
|
|
@@ -15,12 +15,12 @@ function httpClient() {
|
|
|
15
15
|
}
|
|
16
16
|
class CreateVarGridMasterQuery {
|
|
17
17
|
constructor(t) {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
18
|
+
g(this, "def_flg");
|
|
19
|
+
g(this, "frm_id");
|
|
20
|
+
g(this, "grd_var_nam");
|
|
21
|
+
g(this, "grp_nam");
|
|
22
|
+
g(this, "usr_id");
|
|
23
|
+
g(this, "varGridDetails");
|
|
24
24
|
keys$1(t != null ? t : {}).forEach((r) => {
|
|
25
25
|
switch (r) {
|
|
26
26
|
case "def_flg":
|
|
@@ -37,13 +37,13 @@ class CreateVarGridMasterQuery {
|
|
|
37
37
|
}
|
|
38
38
|
class CreateVarProfileMasterQuery {
|
|
39
39
|
constructor(t) {
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
40
|
+
g(this, "def_flg");
|
|
41
|
+
g(this, "dyn_flg");
|
|
42
|
+
g(this, "frm_id");
|
|
43
|
+
g(this, "grp_nam");
|
|
44
|
+
g(this, "prf_var_nam");
|
|
45
|
+
g(this, "usr_id");
|
|
46
|
+
g(this, "varProfileDetails");
|
|
47
47
|
keys$1(t != null ? t : {}).forEach((r) => {
|
|
48
48
|
switch (r) {
|
|
49
49
|
case "def_flg":
|
|
@@ -61,11 +61,11 @@ class CreateVarProfileMasterQuery {
|
|
|
61
61
|
}
|
|
62
62
|
class IPage {
|
|
63
63
|
constructor(t) {
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
64
|
+
g(this, "current");
|
|
65
|
+
g(this, "pages");
|
|
66
|
+
g(this, "records");
|
|
67
|
+
g(this, "size");
|
|
68
|
+
g(this, "total");
|
|
69
69
|
keys$1(t != null ? t : {}).forEach((r) => {
|
|
70
70
|
switch (r) {
|
|
71
71
|
case "current":
|
|
@@ -81,14 +81,14 @@ class IPage {
|
|
|
81
81
|
}
|
|
82
82
|
class UpdateVarGridMasterQuery {
|
|
83
83
|
constructor(t) {
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
84
|
+
g(this, "cust_lvl");
|
|
85
|
+
g(this, "def_flg");
|
|
86
|
+
g(this, "frm_id");
|
|
87
|
+
g(this, "grd_var_nam");
|
|
88
|
+
g(this, "grp_nam");
|
|
89
|
+
g(this, "id");
|
|
90
|
+
g(this, "usr_id");
|
|
91
|
+
g(this, "varGridDetails");
|
|
92
92
|
keys$1(t != null ? t : {}).forEach((r) => {
|
|
93
93
|
switch (r) {
|
|
94
94
|
case "cust_lvl":
|
|
@@ -107,30 +107,30 @@ class UpdateVarGridMasterQuery {
|
|
|
107
107
|
}
|
|
108
108
|
class VarButton {
|
|
109
109
|
constructor(t) {
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
110
|
+
g(this, "cmd");
|
|
111
|
+
g(this, "cmd_method");
|
|
112
|
+
g(this, "cmd_prm");
|
|
113
|
+
g(this, "color");
|
|
114
|
+
g(this, "del_param_clm");
|
|
115
|
+
g(this, "dis_mult_select_flg");
|
|
116
|
+
g(this, "dis_no_select_flg");
|
|
117
|
+
g(this, "ena_flg");
|
|
118
|
+
g(this, "export_excel_filename");
|
|
119
|
+
g(this, "export_excel_suffix");
|
|
120
|
+
g(this, "frm_id");
|
|
121
|
+
g(this, "icon");
|
|
122
|
+
g(this, "id");
|
|
123
|
+
g(this, "modal_props");
|
|
124
|
+
g(this, "permission_code");
|
|
125
|
+
g(this, "permission_type");
|
|
126
|
+
g(this, "primary_flg");
|
|
127
|
+
g(this, "re_select_after_reload_flg");
|
|
128
|
+
g(this, "reload_all_after_done_flg");
|
|
129
|
+
g(this, "show_modal_flg");
|
|
130
|
+
g(this, "show_success_message_flg");
|
|
131
|
+
g(this, "srtseq");
|
|
132
|
+
g(this, "typ");
|
|
133
|
+
g(this, "var_nam");
|
|
134
134
|
keys$1(t != null ? t : {}).forEach((r) => {
|
|
135
135
|
switch (r) {
|
|
136
136
|
case "cmd":
|
|
@@ -165,10 +165,10 @@ class VarButton {
|
|
|
165
165
|
}
|
|
166
166
|
class VarButtonConfig {
|
|
167
167
|
constructor(t) {
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
168
|
+
g(this, "available_flg");
|
|
169
|
+
g(this, "display_type");
|
|
170
|
+
g(this, "frm_id");
|
|
171
|
+
g(this, "id");
|
|
172
172
|
keys$1(t != null ? t : {}).forEach((r) => {
|
|
173
173
|
switch (r) {
|
|
174
174
|
case "available_flg":
|
|
@@ -183,13 +183,13 @@ class VarButtonConfig {
|
|
|
183
183
|
}
|
|
184
184
|
class VarCatalog {
|
|
185
185
|
constructor(t) {
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
186
|
+
g(this, "cust_lvl");
|
|
187
|
+
g(this, "frm_id");
|
|
188
|
+
g(this, "grp_nam");
|
|
189
|
+
g(this, "id");
|
|
190
|
+
g(this, "locale_id");
|
|
191
|
+
g(this, "var_nam");
|
|
192
|
+
g(this, "var_text");
|
|
193
193
|
keys$1(t != null ? t : {}).forEach((r) => {
|
|
194
194
|
switch (r) {
|
|
195
195
|
case "cust_lvl":
|
|
@@ -207,10 +207,10 @@ class VarCatalog {
|
|
|
207
207
|
}
|
|
208
208
|
class VarContext {
|
|
209
209
|
constructor(t) {
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
210
|
+
g(this, "frm_id");
|
|
211
|
+
g(this, "grp_nam");
|
|
212
|
+
g(this, "id");
|
|
213
|
+
g(this, "var_nam");
|
|
214
214
|
keys$1(t != null ? t : {}).forEach((r) => {
|
|
215
215
|
switch (r) {
|
|
216
216
|
case "frm_id":
|
|
@@ -225,19 +225,19 @@ class VarContext {
|
|
|
225
225
|
}
|
|
226
226
|
class VarDTO {
|
|
227
227
|
constructor(t) {
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
228
|
+
g(this, "varButtonConfig");
|
|
229
|
+
g(this, "varButtons");
|
|
230
|
+
g(this, "varCatalogs");
|
|
231
|
+
g(this, "varConfigs");
|
|
232
|
+
g(this, "varGrid");
|
|
233
|
+
g(this, "varGridConfig");
|
|
234
|
+
g(this, "varLookups");
|
|
235
|
+
g(this, "varPossibilities");
|
|
236
|
+
g(this, "varProfile");
|
|
237
|
+
g(this, "varProfileConfig");
|
|
238
|
+
g(this, "varSubmitConfig");
|
|
239
|
+
g(this, "varSubmitFields");
|
|
240
|
+
g(this, "varVariableInputs");
|
|
241
241
|
keys$1(t != null ? t : {}).forEach((r) => {
|
|
242
242
|
switch (r) {
|
|
243
243
|
case "varButtonConfig":
|
|
@@ -261,22 +261,22 @@ class VarDTO {
|
|
|
261
261
|
}
|
|
262
262
|
class VarGridConfig {
|
|
263
263
|
constructor(t) {
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
264
|
+
g(this, "aut_load_flg");
|
|
265
|
+
g(this, "button_display_type");
|
|
266
|
+
g(this, "cmd_prm");
|
|
267
|
+
g(this, "convert_sort_field_to_under_score_flg");
|
|
268
|
+
g(this, "expand_accordion_flg");
|
|
269
|
+
g(this, "frm_id");
|
|
270
|
+
g(this, "id");
|
|
271
|
+
g(this, "id_clm");
|
|
272
|
+
g(this, "mult_flg");
|
|
273
|
+
g(this, "pg_size_opt");
|
|
274
|
+
g(this, "pg_size_opts");
|
|
275
|
+
g(this, "prf_frm_id");
|
|
276
|
+
g(this, "show_bottom_border_flg");
|
|
277
|
+
g(this, "show_bottom_left_flg");
|
|
278
|
+
g(this, "show_bottom_right_flg");
|
|
279
|
+
g(this, "show_check_column_flg");
|
|
280
280
|
keys$1(t != null ? t : {}).forEach((r) => {
|
|
281
281
|
switch (r) {
|
|
282
282
|
case "aut_load_flg":
|
|
@@ -303,7 +303,7 @@ class VarGridConfig {
|
|
|
303
303
|
}
|
|
304
304
|
class VarGridDTO {
|
|
305
305
|
constructor(t) {
|
|
306
|
-
|
|
306
|
+
g(this, "varGridMasters");
|
|
307
307
|
keys$1(t != null ? t : {}).forEach((r) => {
|
|
308
308
|
switch (r) {
|
|
309
309
|
case "varGridMasters":
|
|
@@ -315,22 +315,22 @@ class VarGridDTO {
|
|
|
315
315
|
}
|
|
316
316
|
class VarGridDetail {
|
|
317
317
|
constructor(t) {
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
318
|
+
g(this, "align");
|
|
319
|
+
g(this, "display_type");
|
|
320
|
+
g(this, "display_type_properties");
|
|
321
|
+
g(this, "ellipsis_flg");
|
|
322
|
+
g(this, "fix_left_flg");
|
|
323
|
+
g(this, "fix_right_flg");
|
|
324
|
+
g(this, "frm_id");
|
|
325
|
+
g(this, "grd_var_nam");
|
|
326
|
+
g(this, "grp_nam");
|
|
327
|
+
g(this, "id");
|
|
328
|
+
g(this, "ord");
|
|
329
|
+
g(this, "ord_flg");
|
|
330
|
+
g(this, "srtseq");
|
|
331
|
+
g(this, "var_nam");
|
|
332
|
+
g(this, "vis_flg");
|
|
333
|
+
g(this, "width");
|
|
334
334
|
keys$1(t != null ? t : {}).forEach((r) => {
|
|
335
335
|
switch (r) {
|
|
336
336
|
case "align":
|
|
@@ -357,13 +357,13 @@ class VarGridDetail {
|
|
|
357
357
|
}
|
|
358
358
|
class VarGridMaster {
|
|
359
359
|
constructor(t) {
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
360
|
+
g(this, "cust_lvl");
|
|
361
|
+
g(this, "def_flg");
|
|
362
|
+
g(this, "frm_id");
|
|
363
|
+
g(this, "grd_var_nam");
|
|
364
|
+
g(this, "grp_nam");
|
|
365
|
+
g(this, "id");
|
|
366
|
+
g(this, "usr_id");
|
|
367
367
|
keys$1(t != null ? t : {}).forEach((r) => {
|
|
368
368
|
switch (r) {
|
|
369
369
|
case "cust_lvl":
|
|
@@ -381,14 +381,14 @@ class VarGridMaster {
|
|
|
381
381
|
}
|
|
382
382
|
class VarGridMasterDTO {
|
|
383
383
|
constructor(t) {
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
384
|
+
g(this, "cust_lvl");
|
|
385
|
+
g(this, "def_flg");
|
|
386
|
+
g(this, "frm_id");
|
|
387
|
+
g(this, "grd_var_nam");
|
|
388
|
+
g(this, "grp_nam");
|
|
389
|
+
g(this, "id");
|
|
390
|
+
g(this, "usr_id");
|
|
391
|
+
g(this, "varGridDetails");
|
|
392
392
|
keys$1(t != null ? t : {}).forEach((r) => {
|
|
393
393
|
switch (r) {
|
|
394
394
|
case "cust_lvl":
|
|
@@ -407,16 +407,16 @@ class VarGridMasterDTO {
|
|
|
407
407
|
}
|
|
408
408
|
class VarLookup {
|
|
409
409
|
constructor(t) {
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
410
|
+
g(this, "cust_lvl");
|
|
411
|
+
g(this, "ena_flg");
|
|
412
|
+
g(this, "frm_id");
|
|
413
|
+
g(this, "grp_nam");
|
|
414
|
+
g(this, "id");
|
|
415
|
+
g(this, "lkp_id");
|
|
416
|
+
g(this, "locale_id");
|
|
417
|
+
g(this, "mult_flg");
|
|
418
|
+
g(this, "ret_fld");
|
|
419
|
+
g(this, "var_nam");
|
|
420
420
|
keys$1(t != null ? t : {}).forEach((r) => {
|
|
421
421
|
switch (r) {
|
|
422
422
|
case "cust_lvl":
|
|
@@ -437,18 +437,18 @@ class VarLookup {
|
|
|
437
437
|
}
|
|
438
438
|
class VarPossibility {
|
|
439
439
|
constructor(t) {
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
440
|
+
g(this, "cmd");
|
|
441
|
+
g(this, "cmd_method");
|
|
442
|
+
g(this, "cmd_prm");
|
|
443
|
+
g(this, "cust_lvl");
|
|
444
|
+
g(this, "frm_id");
|
|
445
|
+
g(this, "grp_nam");
|
|
446
|
+
g(this, "id");
|
|
447
|
+
g(this, "lbl_clm");
|
|
448
|
+
g(this, "locale_id");
|
|
449
|
+
g(this, "val_clm");
|
|
450
|
+
g(this, "val_data_type");
|
|
451
|
+
g(this, "var_nam");
|
|
452
452
|
keys$1(t != null ? t : {}).forEach((r) => {
|
|
453
453
|
switch (r) {
|
|
454
454
|
case "cmd":
|
|
@@ -471,12 +471,12 @@ class VarPossibility {
|
|
|
471
471
|
}
|
|
472
472
|
class VarProfileConfig {
|
|
473
473
|
constructor(t) {
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
474
|
+
g(this, "available_flg");
|
|
475
|
+
g(this, "frm_id");
|
|
476
|
+
g(this, "header_teleport_flg");
|
|
477
|
+
g(this, "id");
|
|
478
|
+
g(this, "resizable_flg");
|
|
479
|
+
g(this, "vis_flg");
|
|
480
480
|
keys$1(t != null ? t : {}).forEach((r) => {
|
|
481
481
|
switch (r) {
|
|
482
482
|
case "available_flg":
|
|
@@ -493,7 +493,7 @@ class VarProfileConfig {
|
|
|
493
493
|
}
|
|
494
494
|
class VarProfileDTO {
|
|
495
495
|
constructor(t) {
|
|
496
|
-
|
|
496
|
+
g(this, "varProfileMasters");
|
|
497
497
|
keys$1(t != null ? t : {}).forEach((r) => {
|
|
498
498
|
switch (r) {
|
|
499
499
|
case "varProfileMasters":
|
|
@@ -505,20 +505,20 @@ class VarProfileDTO {
|
|
|
505
505
|
}
|
|
506
506
|
class VarProfileDetail {
|
|
507
507
|
constructor(t) {
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
508
|
+
g(this, "dft_dyn_op");
|
|
509
|
+
g(this, "dft_val");
|
|
510
|
+
g(this, "dyn_flg");
|
|
511
|
+
g(this, "ena_flg");
|
|
512
|
+
g(this, "frm_id");
|
|
513
|
+
g(this, "grp_nam");
|
|
514
|
+
g(this, "id");
|
|
515
|
+
g(this, "placeholder");
|
|
516
|
+
g(this, "prf_var_nam");
|
|
517
|
+
g(this, "rqr_flg");
|
|
518
|
+
g(this, "srtseq");
|
|
519
|
+
g(this, "var_nam");
|
|
520
|
+
g(this, "vis_flg");
|
|
521
|
+
g(this, "width");
|
|
522
522
|
keys$1(t != null ? t : {}).forEach((r) => {
|
|
523
523
|
switch (r) {
|
|
524
524
|
case "dft_dyn_op":
|
|
@@ -543,14 +543,14 @@ class VarProfileDetail {
|
|
|
543
543
|
}
|
|
544
544
|
class VarProfileMaster {
|
|
545
545
|
constructor(t) {
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
546
|
+
g(this, "cust_lvl");
|
|
547
|
+
g(this, "def_flg");
|
|
548
|
+
g(this, "dyn_flg");
|
|
549
|
+
g(this, "frm_id");
|
|
550
|
+
g(this, "grp_nam");
|
|
551
|
+
g(this, "id");
|
|
552
|
+
g(this, "prf_var_nam");
|
|
553
|
+
g(this, "usr_id");
|
|
554
554
|
keys$1(t != null ? t : {}).forEach((r) => {
|
|
555
555
|
switch (r) {
|
|
556
556
|
case "cust_lvl":
|
|
@@ -569,15 +569,15 @@ class VarProfileMaster {
|
|
|
569
569
|
}
|
|
570
570
|
class VarProfileMasterDTO {
|
|
571
571
|
constructor(t) {
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
572
|
+
g(this, "cust_lvl");
|
|
573
|
+
g(this, "def_flg");
|
|
574
|
+
g(this, "dyn_flg");
|
|
575
|
+
g(this, "frm_id");
|
|
576
|
+
g(this, "grp_nam");
|
|
577
|
+
g(this, "id");
|
|
578
|
+
g(this, "prf_var_nam");
|
|
579
|
+
g(this, "usr_id");
|
|
580
|
+
g(this, "varProfileDetails");
|
|
581
581
|
keys$1(t != null ? t : {}).forEach((r) => {
|
|
582
582
|
switch (r) {
|
|
583
583
|
case "cust_lvl":
|
|
@@ -597,40 +597,40 @@ class VarProfileMasterDTO {
|
|
|
597
597
|
}
|
|
598
598
|
class VarSubmitConfig {
|
|
599
599
|
constructor(t) {
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
600
|
+
g(this, "cpy_clear_id_flg");
|
|
601
|
+
g(this, "cpy_dft_width");
|
|
602
|
+
g(this, "cpy_display_type");
|
|
603
|
+
g(this, "cpy_flg");
|
|
604
|
+
g(this, "cpy_layout");
|
|
605
|
+
g(this, "cpy_min_width");
|
|
606
|
+
g(this, "crt_dft_width");
|
|
607
|
+
g(this, "crt_display_type");
|
|
608
|
+
g(this, "crt_flg");
|
|
609
|
+
g(this, "crt_layout");
|
|
610
|
+
g(this, "crt_min_width");
|
|
611
|
+
g(this, "del_dft_width");
|
|
612
|
+
g(this, "del_display_type");
|
|
613
|
+
g(this, "del_flg");
|
|
614
|
+
g(this, "del_layout");
|
|
615
|
+
g(this, "del_min_width");
|
|
616
|
+
g(this, "dft_fullscreen_flg");
|
|
617
|
+
g(this, "dft_width");
|
|
618
|
+
g(this, "display_type");
|
|
619
|
+
g(this, "frm_id");
|
|
620
|
+
g(this, "fullscreen_flg");
|
|
621
|
+
g(this, "id");
|
|
622
|
+
g(this, "label_col");
|
|
623
|
+
g(this, "label_col_unit");
|
|
624
|
+
g(this, "layout");
|
|
625
|
+
g(this, "max_width");
|
|
626
|
+
g(this, "min_width");
|
|
627
|
+
g(this, "resizable_flg");
|
|
628
|
+
g(this, "responsive_flg");
|
|
629
|
+
g(this, "upt_dft_width");
|
|
630
|
+
g(this, "upt_display_type");
|
|
631
|
+
g(this, "upt_flg");
|
|
632
|
+
g(this, "upt_layout");
|
|
633
|
+
g(this, "upt_min_width");
|
|
634
634
|
keys$1(t != null ? t : {}).forEach((r) => {
|
|
635
635
|
switch (r) {
|
|
636
636
|
case "cpy_clear_id_flg":
|
|
@@ -675,38 +675,38 @@ class VarSubmitConfig {
|
|
|
675
675
|
}
|
|
676
676
|
class VarSubmitField {
|
|
677
677
|
constructor(t) {
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
678
|
+
g(this, "cpy_dft_val");
|
|
679
|
+
g(this, "cpy_ena_flg");
|
|
680
|
+
g(this, "cpy_flg");
|
|
681
|
+
g(this, "cpy_rqr_flg");
|
|
682
|
+
g(this, "cpy_vis_flg");
|
|
683
|
+
g(this, "cpy_width");
|
|
684
|
+
g(this, "crt_dft_val");
|
|
685
|
+
g(this, "crt_ena_flg");
|
|
686
|
+
g(this, "crt_flg");
|
|
687
|
+
g(this, "crt_rqr_flg");
|
|
688
|
+
g(this, "crt_vis_flg");
|
|
689
|
+
g(this, "crt_width");
|
|
690
|
+
g(this, "del_dft_val");
|
|
691
|
+
g(this, "del_ena_flg");
|
|
692
|
+
g(this, "del_flg");
|
|
693
|
+
g(this, "del_rqr_flg");
|
|
694
|
+
g(this, "del_vis_flg");
|
|
695
|
+
g(this, "del_width");
|
|
696
|
+
g(this, "frm_id");
|
|
697
|
+
g(this, "grp_nam");
|
|
698
|
+
g(this, "id");
|
|
699
|
+
g(this, "key_flg");
|
|
700
|
+
g(this, "placeholder");
|
|
701
|
+
g(this, "section");
|
|
702
|
+
g(this, "srtseq");
|
|
703
|
+
g(this, "upt_dft_val");
|
|
704
|
+
g(this, "upt_ena_flg");
|
|
705
|
+
g(this, "upt_flg");
|
|
706
|
+
g(this, "upt_rqr_flg");
|
|
707
|
+
g(this, "upt_vis_flg");
|
|
708
|
+
g(this, "upt_width");
|
|
709
|
+
g(this, "var_nam");
|
|
710
710
|
keys$1(t != null ? t : {}).forEach((r) => {
|
|
711
711
|
switch (r) {
|
|
712
712
|
case "cpy_dft_val":
|
|
@@ -749,24 +749,24 @@ class VarSubmitField {
|
|
|
749
749
|
}
|
|
750
750
|
class VarVariableConfig {
|
|
751
751
|
constructor(t) {
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
752
|
+
g(this, "cpy_ctrl_prop");
|
|
753
|
+
g(this, "cpy_ctrl_typ");
|
|
754
|
+
g(this, "crt_ctrl_prop");
|
|
755
|
+
g(this, "crt_ctrl_typ");
|
|
756
|
+
g(this, "ctrl_prop");
|
|
757
|
+
g(this, "ctrl_typ");
|
|
758
|
+
g(this, "cust_lvl");
|
|
759
|
+
g(this, "del_ctrl_prop");
|
|
760
|
+
g(this, "del_ctrl_typ");
|
|
761
|
+
g(this, "frm_id");
|
|
762
|
+
g(this, "grp_nam");
|
|
763
|
+
g(this, "id");
|
|
764
|
+
g(this, "locale_id");
|
|
765
|
+
g(this, "prf_ctrl_prop");
|
|
766
|
+
g(this, "prf_ctrl_typ");
|
|
767
|
+
g(this, "upt_ctrl_prop");
|
|
768
|
+
g(this, "upt_ctrl_typ");
|
|
769
|
+
g(this, "var_nam");
|
|
770
770
|
keys$1(t != null ? t : {}).forEach((r) => {
|
|
771
771
|
switch (r) {
|
|
772
772
|
case "cpy_ctrl_prop":
|
|
@@ -795,17 +795,17 @@ class VarVariableConfig {
|
|
|
795
795
|
}
|
|
796
796
|
class VarVariableInput {
|
|
797
797
|
constructor(t) {
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
798
|
+
g(this, "cust_lvl");
|
|
799
|
+
g(this, "data_type");
|
|
800
|
+
g(this, "frm_id");
|
|
801
|
+
g(this, "grp_nam");
|
|
802
|
+
g(this, "id");
|
|
803
|
+
g(this, "locale_id");
|
|
804
|
+
g(this, "max");
|
|
805
|
+
g(this, "max_include_flg");
|
|
806
|
+
g(this, "min");
|
|
807
|
+
g(this, "min_include_flg");
|
|
808
|
+
g(this, "var_nam");
|
|
809
809
|
keys$1(t != null ? t : {}).forEach((r) => {
|
|
810
810
|
switch (r) {
|
|
811
811
|
case "cust_lvl":
|
|
@@ -827,18 +827,18 @@ class VarVariableInput {
|
|
|
827
827
|
}
|
|
828
828
|
class WhDTO {
|
|
829
829
|
constructor(t) {
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
830
|
+
g(this, "activeFlg");
|
|
831
|
+
g(this, "adrId");
|
|
832
|
+
g(this, "adrnam");
|
|
833
|
+
g(this, "defWhFlg");
|
|
834
|
+
g(this, "id");
|
|
835
|
+
g(this, "orgcod");
|
|
836
|
+
g(this, "permAdjLod");
|
|
837
|
+
g(this, "permAdjSub");
|
|
838
|
+
g(this, "permCreLod");
|
|
839
|
+
g(this, "permCreSub");
|
|
840
|
+
g(this, "whDsc");
|
|
841
|
+
g(this, "whId");
|
|
842
842
|
keys$1(t != null ? t : {}).forEach((r) => {
|
|
843
843
|
switch (r) {
|
|
844
844
|
case "activeFlg":
|
|
@@ -865,7 +865,7 @@ function keys$1(e) {
|
|
|
865
865
|
}
|
|
866
866
|
class GetAllQuery {
|
|
867
867
|
constructor(t) {
|
|
868
|
-
|
|
868
|
+
g(this, "frm_id");
|
|
869
869
|
keys$1(t != null ? t : {}).forEach((r) => {
|
|
870
870
|
switch (r) {
|
|
871
871
|
case "frm_id":
|
|
@@ -908,7 +908,7 @@ Add$1.method = "POST";
|
|
|
908
908
|
Add$1.url = "/var/VarContext/add";
|
|
909
909
|
class DeleteQuery$1 {
|
|
910
910
|
constructor(t) {
|
|
911
|
-
|
|
911
|
+
g(this, "id");
|
|
912
912
|
keys$1(t != null ? t : {}).forEach((r) => {
|
|
913
913
|
switch (r) {
|
|
914
914
|
case "id":
|
|
@@ -932,7 +932,7 @@ Delete$1.method = "DELETE";
|
|
|
932
932
|
Delete$1.url = "/var/VarContext/delete";
|
|
933
933
|
class DeleteBatchQuery$1 {
|
|
934
934
|
constructor(t) {
|
|
935
|
-
|
|
935
|
+
g(this, "ids");
|
|
936
936
|
keys$1(t != null ? t : {}).forEach((r) => {
|
|
937
937
|
switch (r) {
|
|
938
938
|
case "ids":
|
|
@@ -970,10 +970,10 @@ Edit$1.method = "POST";
|
|
|
970
970
|
Edit$1.url = "/var/VarContext/edit";
|
|
971
971
|
class ExportXlsQuery$1 {
|
|
972
972
|
constructor(t) {
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
973
|
+
g(this, "frm_id");
|
|
974
|
+
g(this, "grp_nam");
|
|
975
|
+
g(this, "id");
|
|
976
|
+
g(this, "var_nam");
|
|
977
977
|
keys$1(t != null ? t : {}).forEach((r) => {
|
|
978
978
|
switch (r) {
|
|
979
979
|
case "frm_id":
|
|
@@ -1014,13 +1014,13 @@ ImportExcel$1.method = "POST";
|
|
|
1014
1014
|
ImportExcel$1.url = "/var/VarContext/importExcel";
|
|
1015
1015
|
class ListQuery$1 {
|
|
1016
1016
|
constructor(t) {
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1017
|
+
g(this, "frm_id");
|
|
1018
|
+
g(this, "grp_nam");
|
|
1019
|
+
g(this, "var_nam");
|
|
1020
|
+
g(this, "column");
|
|
1021
|
+
g(this, "order");
|
|
1022
|
+
g(this, "pageNo");
|
|
1023
|
+
g(this, "pageSize");
|
|
1024
1024
|
keys$1(t != null ? t : {}).forEach((r) => {
|
|
1025
1025
|
switch (r) {
|
|
1026
1026
|
case "frm_id":
|
|
@@ -1050,7 +1050,7 @@ List$1.method = "GET";
|
|
|
1050
1050
|
List$1.url = "/var/VarContext/list";
|
|
1051
1051
|
class QueryByIdQuery$1 {
|
|
1052
1052
|
constructor(t) {
|
|
1053
|
-
|
|
1053
|
+
g(this, "id");
|
|
1054
1054
|
keys$1(t != null ? t : {}).forEach((r) => {
|
|
1055
1055
|
switch (r) {
|
|
1056
1056
|
case "id":
|
|
@@ -1093,7 +1093,7 @@ const index$5 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
|
|
|
1093
1093
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1094
1094
|
class QueryByIDQuery$1 {
|
|
1095
1095
|
constructor(t) {
|
|
1096
|
-
|
|
1096
|
+
g(this, "id");
|
|
1097
1097
|
keys$1(t != null ? t : {}).forEach((r) => {
|
|
1098
1098
|
switch (r) {
|
|
1099
1099
|
case "id":
|
|
@@ -1138,7 +1138,7 @@ const index$4 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
|
|
|
1138
1138
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1139
1139
|
class QueryByIDQuery {
|
|
1140
1140
|
constructor(t) {
|
|
1141
|
-
|
|
1141
|
+
g(this, "id");
|
|
1142
1142
|
keys$1(t != null ? t : {}).forEach((r) => {
|
|
1143
1143
|
switch (r) {
|
|
1144
1144
|
case "id":
|
|
@@ -1181,7 +1181,7 @@ Add.method = "POST";
|
|
|
1181
1181
|
Add.url = "/var/VarVariableCatalog/add";
|
|
1182
1182
|
class DeleteQuery {
|
|
1183
1183
|
constructor(t) {
|
|
1184
|
-
|
|
1184
|
+
g(this, "id");
|
|
1185
1185
|
keys$1(t != null ? t : {}).forEach((r) => {
|
|
1186
1186
|
switch (r) {
|
|
1187
1187
|
case "id":
|
|
@@ -1205,7 +1205,7 @@ Delete.method = "DELETE";
|
|
|
1205
1205
|
Delete.url = "/var/VarVariableCatalog/delete";
|
|
1206
1206
|
class DeleteBatchQuery {
|
|
1207
1207
|
constructor(t) {
|
|
1208
|
-
|
|
1208
|
+
g(this, "ids");
|
|
1209
1209
|
keys$1(t != null ? t : {}).forEach((r) => {
|
|
1210
1210
|
switch (r) {
|
|
1211
1211
|
case "ids":
|
|
@@ -1243,13 +1243,13 @@ Edit.method = "POST";
|
|
|
1243
1243
|
Edit.url = "/var/VarVariableCatalog/edit";
|
|
1244
1244
|
class ExportXlsQuery {
|
|
1245
1245
|
constructor(t) {
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1246
|
+
g(this, "cust_lvl");
|
|
1247
|
+
g(this, "frm_id");
|
|
1248
|
+
g(this, "grp_nam");
|
|
1249
|
+
g(this, "id");
|
|
1250
|
+
g(this, "locale_id");
|
|
1251
|
+
g(this, "var_nam");
|
|
1252
|
+
g(this, "var_text");
|
|
1253
1253
|
keys$1(t != null ? t : {}).forEach((r) => {
|
|
1254
1254
|
switch (r) {
|
|
1255
1255
|
case "cust_lvl":
|
|
@@ -1293,16 +1293,16 @@ ImportExcel.method = "POST";
|
|
|
1293
1293
|
ImportExcel.url = "/var/VarVariableCatalog/importExcel";
|
|
1294
1294
|
class ListQuery {
|
|
1295
1295
|
constructor(t) {
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1296
|
+
g(this, "cust_lvl");
|
|
1297
|
+
g(this, "frm_id");
|
|
1298
|
+
g(this, "grp_nam");
|
|
1299
|
+
g(this, "locale_id");
|
|
1300
|
+
g(this, "var_nam");
|
|
1301
|
+
g(this, "var_text");
|
|
1302
|
+
g(this, "column");
|
|
1303
|
+
g(this, "order");
|
|
1304
|
+
g(this, "pageNo");
|
|
1305
|
+
g(this, "pageSize");
|
|
1306
1306
|
keys$1(t != null ? t : {}).forEach((r) => {
|
|
1307
1307
|
switch (r) {
|
|
1308
1308
|
case "cust_lvl":
|
|
@@ -1335,7 +1335,7 @@ List.method = "GET";
|
|
|
1335
1335
|
List.url = "/var/VarVariableCatalog/list";
|
|
1336
1336
|
class QueryByIdQuery {
|
|
1337
1337
|
constructor(t) {
|
|
1338
|
-
|
|
1338
|
+
g(this, "id");
|
|
1339
1339
|
keys$1(t != null ? t : {}).forEach((r) => {
|
|
1340
1340
|
switch (r) {
|
|
1341
1341
|
case "id":
|
|
@@ -1378,22 +1378,22 @@ const index$2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
|
|
|
1378
1378
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1379
1379
|
class ListVOQuery {
|
|
1380
1380
|
constructor(t) {
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1381
|
+
g(this, "activeFlg");
|
|
1382
|
+
g(this, "adrId");
|
|
1383
|
+
g(this, "adrnam");
|
|
1384
|
+
g(this, "defWhFlg");
|
|
1385
|
+
g(this, "id");
|
|
1386
|
+
g(this, "orgcod");
|
|
1387
|
+
g(this, "permAdjLod");
|
|
1388
|
+
g(this, "permAdjSub");
|
|
1389
|
+
g(this, "permCreLod");
|
|
1390
|
+
g(this, "permCreSub");
|
|
1391
|
+
g(this, "whDsc");
|
|
1392
|
+
g(this, "whId");
|
|
1393
|
+
g(this, "column");
|
|
1394
|
+
g(this, "order");
|
|
1395
|
+
g(this, "pageNo");
|
|
1396
|
+
g(this, "pageSize");
|
|
1397
1397
|
keys$1(t != null ? t : {}).forEach((r) => {
|
|
1398
1398
|
switch (r) {
|
|
1399
1399
|
case "activeFlg":
|
|
@@ -2179,12 +2179,12 @@ setTwoToneColor("#1890ff");
|
|
|
2179
2179
|
var Icon$1 = function(t, r) {
|
|
2180
2180
|
var a, n = _objectSpread$k({}, t, r.attrs), o = n.class, i = n.icon, s = n.spin, l = n.rotate, c = n.tabindex, u = n.twoToneColor, d = n.onClick, m = _objectWithoutProperties(n, _excluded), v = (a = {
|
|
2181
2181
|
anticon: !0
|
|
2182
|
-
}, _defineProperty$k(a, "anticon-".concat(i.name), Boolean(i.name)), _defineProperty$k(a, o, o), a),
|
|
2183
|
-
|
|
2182
|
+
}, _defineProperty$k(a, "anticon-".concat(i.name), Boolean(i.name)), _defineProperty$k(a, o, o), a), T = s === "" || !!s || i.name === "loading" ? "anticon-spin" : "", p = c;
|
|
2183
|
+
p === void 0 && d && (p = -1, m.tabindex = p);
|
|
2184
2184
|
var _ = l ? {
|
|
2185
2185
|
msTransform: "rotate(".concat(l, "deg)"),
|
|
2186
2186
|
transform: "rotate(".concat(l, "deg)")
|
|
2187
|
-
} : void 0,
|
|
2187
|
+
} : void 0, y = normalizeTwoToneColors(u), b = _slicedToArray(y, 2), C = b[0], k = b[1];
|
|
2188
2188
|
return createVNode("span", _objectSpread$k({
|
|
2189
2189
|
role: "img",
|
|
2190
2190
|
"aria-label": i.name
|
|
@@ -2192,9 +2192,9 @@ var Icon$1 = function(t, r) {
|
|
|
2192
2192
|
onClick: d,
|
|
2193
2193
|
class: v
|
|
2194
2194
|
}), [createVNode(VueIcon, {
|
|
2195
|
-
class:
|
|
2195
|
+
class: T,
|
|
2196
2196
|
icon: i,
|
|
2197
|
-
primaryColor:
|
|
2197
|
+
primaryColor: C,
|
|
2198
2198
|
secondaryColor: k,
|
|
2199
2199
|
style: _
|
|
2200
2200
|
}, null)]);
|
|
@@ -2996,39 +2996,39 @@ function iconToSVG(e, t) {
|
|
|
2996
2996
|
height: r.height
|
|
2997
2997
|
};
|
|
2998
2998
|
let o = r.body;
|
|
2999
|
-
[r, a].forEach((
|
|
3000
|
-
const
|
|
3001
|
-
let b =
|
|
3002
|
-
_ ?
|
|
2999
|
+
[r, a].forEach((T) => {
|
|
3000
|
+
const p = [], _ = T.hFlip, y = T.vFlip;
|
|
3001
|
+
let b = T.rotate;
|
|
3002
|
+
_ ? y ? b += 2 : (p.push(
|
|
3003
3003
|
"translate(" + (n.width + n.left).toString() + " " + (0 - n.top).toString() + ")"
|
|
3004
|
-
),
|
|
3004
|
+
), p.push("scale(-1 1)"), n.top = n.left = 0) : y && (p.push(
|
|
3005
3005
|
"translate(" + (0 - n.left).toString() + " " + (n.height + n.top).toString() + ")"
|
|
3006
|
-
),
|
|
3007
|
-
let
|
|
3006
|
+
), p.push("scale(1 -1)"), n.top = n.left = 0);
|
|
3007
|
+
let C;
|
|
3008
3008
|
switch (b < 0 && (b -= Math.floor(b / 4) * 4), b = b % 4, b) {
|
|
3009
3009
|
case 1:
|
|
3010
|
-
|
|
3011
|
-
"rotate(90 " +
|
|
3010
|
+
C = n.height / 2 + n.top, p.unshift(
|
|
3011
|
+
"rotate(90 " + C.toString() + " " + C.toString() + ")"
|
|
3012
3012
|
);
|
|
3013
3013
|
break;
|
|
3014
3014
|
case 2:
|
|
3015
|
-
|
|
3015
|
+
p.unshift(
|
|
3016
3016
|
"rotate(180 " + (n.width / 2 + n.left).toString() + " " + (n.height / 2 + n.top).toString() + ")"
|
|
3017
3017
|
);
|
|
3018
3018
|
break;
|
|
3019
3019
|
case 3:
|
|
3020
|
-
|
|
3021
|
-
"rotate(-90 " +
|
|
3020
|
+
C = n.width / 2 + n.left, p.unshift(
|
|
3021
|
+
"rotate(-90 " + C.toString() + " " + C.toString() + ")"
|
|
3022
3022
|
);
|
|
3023
3023
|
break;
|
|
3024
3024
|
}
|
|
3025
|
-
b % 2 === 1 && (n.left !== n.top && (
|
|
3025
|
+
b % 2 === 1 && (n.left !== n.top && (C = n.left, n.left = n.top, n.top = C), n.width !== n.height && (C = n.width, n.width = n.height, n.height = C)), p.length && (o = '<g transform="' + p.join(" ") + '">' + o + "</g>");
|
|
3026
3026
|
});
|
|
3027
3027
|
const i = a.width, s = a.height, l = n.width, c = n.height;
|
|
3028
3028
|
let u, d;
|
|
3029
3029
|
i === null ? (d = s === null ? "1em" : s === "auto" ? c : s, u = calculateSize(d, l / c)) : (u = i === "auto" ? l : i, d = s === null ? calculateSize(u, c / l) : s === "auto" ? c : s);
|
|
3030
|
-
const m = {}, v = (
|
|
3031
|
-
isUnsetKeyword(
|
|
3030
|
+
const m = {}, v = (T, p) => {
|
|
3031
|
+
isUnsetKeyword(p) || (m[T] = p.toString());
|
|
3032
3032
|
};
|
|
3033
3033
|
return v("width", u), v("height", d), m.viewBox = n.left.toString() + " " + n.top.toString() + " " + l.toString() + " " + c.toString(), {
|
|
3034
3034
|
attributes: m,
|
|
@@ -3304,8 +3304,8 @@ function sendQuery(e, t, r, a) {
|
|
|
3304
3304
|
if (e.random) {
|
|
3305
3305
|
let E = e.resources.slice(0);
|
|
3306
3306
|
for (i = []; E.length > 1; ) {
|
|
3307
|
-
const
|
|
3308
|
-
i.push(E[
|
|
3307
|
+
const N = Math.floor(Math.random() * E.length);
|
|
3308
|
+
i.push(E[N]), E = E.slice(0, N).concat(E.slice(N + 1));
|
|
3309
3309
|
}
|
|
3310
3310
|
i = i.concat(E);
|
|
3311
3311
|
} else
|
|
@@ -3313,18 +3313,18 @@ function sendQuery(e, t, r, a) {
|
|
|
3313
3313
|
const s = Date.now();
|
|
3314
3314
|
let l = "pending", c = 0, u, d = null, m = [], v = [];
|
|
3315
3315
|
typeof a == "function" && v.push(a);
|
|
3316
|
-
function
|
|
3316
|
+
function T() {
|
|
3317
3317
|
d && (clearTimeout(d), d = null);
|
|
3318
3318
|
}
|
|
3319
|
-
function
|
|
3320
|
-
l === "pending" && (l = "aborted"),
|
|
3319
|
+
function p() {
|
|
3320
|
+
l === "pending" && (l = "aborted"), T(), m.forEach((E) => {
|
|
3321
3321
|
E.status === "pending" && (E.status = "aborted");
|
|
3322
3322
|
}), m = [];
|
|
3323
3323
|
}
|
|
3324
|
-
function _(E,
|
|
3325
|
-
|
|
3324
|
+
function _(E, N) {
|
|
3325
|
+
N && (v = []), typeof E == "function" && v.push(E);
|
|
3326
3326
|
}
|
|
3327
|
-
function
|
|
3327
|
+
function y() {
|
|
3328
3328
|
return {
|
|
3329
3329
|
startTime: s,
|
|
3330
3330
|
payload: t,
|
|
@@ -3332,7 +3332,7 @@ function sendQuery(e, t, r, a) {
|
|
|
3332
3332
|
queriesSent: c,
|
|
3333
3333
|
queriesPending: m.length,
|
|
3334
3334
|
subscribe: _,
|
|
3335
|
-
abort:
|
|
3335
|
+
abort: p
|
|
3336
3336
|
};
|
|
3337
3337
|
}
|
|
3338
3338
|
function b() {
|
|
@@ -3340,13 +3340,13 @@ function sendQuery(e, t, r, a) {
|
|
|
3340
3340
|
E(void 0, u);
|
|
3341
3341
|
});
|
|
3342
3342
|
}
|
|
3343
|
-
function
|
|
3343
|
+
function C() {
|
|
3344
3344
|
m.forEach((E) => {
|
|
3345
3345
|
E.status === "pending" && (E.status = "aborted");
|
|
3346
3346
|
}), m = [];
|
|
3347
3347
|
}
|
|
3348
|
-
function k(E,
|
|
3349
|
-
const A =
|
|
3348
|
+
function k(E, N, I) {
|
|
3349
|
+
const A = N !== "success";
|
|
3350
3350
|
switch (m = m.filter((w) => w !== E), l) {
|
|
3351
3351
|
case "pending":
|
|
3352
3352
|
break;
|
|
@@ -3357,7 +3357,7 @@ function sendQuery(e, t, r, a) {
|
|
|
3357
3357
|
default:
|
|
3358
3358
|
return;
|
|
3359
3359
|
}
|
|
3360
|
-
if (
|
|
3360
|
+
if (N === "abort") {
|
|
3361
3361
|
u = I, b();
|
|
3362
3362
|
return;
|
|
3363
3363
|
}
|
|
@@ -3365,7 +3365,7 @@ function sendQuery(e, t, r, a) {
|
|
|
3365
3365
|
u = I, m.length || (i.length ? M() : b());
|
|
3366
3366
|
return;
|
|
3367
3367
|
}
|
|
3368
|
-
if (
|
|
3368
|
+
if (T(), C(), !e.random) {
|
|
3369
3369
|
const w = e.resources.indexOf(E.resource);
|
|
3370
3370
|
w !== -1 && w !== e.index && (e.index = w);
|
|
3371
3371
|
}
|
|
@@ -3376,28 +3376,28 @@ function sendQuery(e, t, r, a) {
|
|
|
3376
3376
|
function M() {
|
|
3377
3377
|
if (l !== "pending")
|
|
3378
3378
|
return;
|
|
3379
|
-
|
|
3379
|
+
T();
|
|
3380
3380
|
const E = i.shift();
|
|
3381
3381
|
if (E === void 0) {
|
|
3382
3382
|
if (m.length) {
|
|
3383
3383
|
d = setTimeout(() => {
|
|
3384
|
-
|
|
3384
|
+
T(), l === "pending" && (C(), b());
|
|
3385
3385
|
}, e.timeout);
|
|
3386
3386
|
return;
|
|
3387
3387
|
}
|
|
3388
3388
|
b();
|
|
3389
3389
|
return;
|
|
3390
3390
|
}
|
|
3391
|
-
const
|
|
3391
|
+
const N = {
|
|
3392
3392
|
status: "pending",
|
|
3393
3393
|
resource: E,
|
|
3394
3394
|
callback: (I, A) => {
|
|
3395
|
-
k(
|
|
3395
|
+
k(N, I, A);
|
|
3396
3396
|
}
|
|
3397
3397
|
};
|
|
3398
|
-
m.push(
|
|
3398
|
+
m.push(N), c++, d = setTimeout(M, e.rotate), r(E, t, N.callback);
|
|
3399
3399
|
}
|
|
3400
|
-
return setTimeout(M),
|
|
3400
|
+
return setTimeout(M), y;
|
|
3401
3401
|
}
|
|
3402
3402
|
function initRedundancy(e) {
|
|
3403
3403
|
const t = {
|
|
@@ -3771,10 +3771,10 @@ function fixSize(e) {
|
|
|
3771
3771
|
}
|
|
3772
3772
|
const render = (e, t) => {
|
|
3773
3773
|
const r = mergeCustomisations(defaultExtendedIconCustomisations, t), a = { ...svgDefaults }, n = t.mode || "svg", o = {}, i = t.style, s = typeof i == "object" && !(i instanceof Array) ? i : {};
|
|
3774
|
-
for (let
|
|
3775
|
-
const _ = t[
|
|
3774
|
+
for (let p in t) {
|
|
3775
|
+
const _ = t[p];
|
|
3776
3776
|
if (_ !== void 0)
|
|
3777
|
-
switch (
|
|
3777
|
+
switch (p) {
|
|
3778
3778
|
case "icon":
|
|
3779
3779
|
case "style":
|
|
3780
3780
|
case "onLoad":
|
|
@@ -3783,7 +3783,7 @@ const render = (e, t) => {
|
|
|
3783
3783
|
case "inline":
|
|
3784
3784
|
case "hFlip":
|
|
3785
3785
|
case "vFlip":
|
|
3786
|
-
r[
|
|
3786
|
+
r[p] = _ === !0 || _ === "true" || _ === 1;
|
|
3787
3787
|
break;
|
|
3788
3788
|
case "flip":
|
|
3789
3789
|
typeof _ == "string" && flipFromString(r, _);
|
|
@@ -3792,15 +3792,15 @@ const render = (e, t) => {
|
|
|
3792
3792
|
o.color = _;
|
|
3793
3793
|
break;
|
|
3794
3794
|
case "rotate":
|
|
3795
|
-
typeof _ == "string" ? r[
|
|
3795
|
+
typeof _ == "string" ? r[p] = rotateFromString(_) : typeof _ == "number" && (r[p] = _);
|
|
3796
3796
|
break;
|
|
3797
3797
|
case "ariaHidden":
|
|
3798
3798
|
case "aria-hidden":
|
|
3799
3799
|
_ !== !0 && _ !== "true" && delete a["aria-hidden"];
|
|
3800
3800
|
break;
|
|
3801
3801
|
default: {
|
|
3802
|
-
const
|
|
3803
|
-
|
|
3802
|
+
const y = customisationAliases[p];
|
|
3803
|
+
y ? (_ === !0 || _ === "true" || _ === 1) && (r[y] = !0) : defaultExtendedIconCustomisations[p] === void 0 && (a[p] = _);
|
|
3804
3804
|
}
|
|
3805
3805
|
}
|
|
3806
3806
|
}
|
|
@@ -3810,17 +3810,17 @@ const render = (e, t) => {
|
|
|
3810
3810
|
...o,
|
|
3811
3811
|
...s
|
|
3812
3812
|
}, Object.assign(a, c);
|
|
3813
|
-
let
|
|
3814
|
-
return typeof _ == "string" && (_ = _.replace(/-/g, "_")), a.innerHTML = replaceIDs(l.body, _ ? () => _ + "ID" +
|
|
3813
|
+
let p = 0, _ = t.id;
|
|
3814
|
+
return typeof _ == "string" && (_ = _.replace(/-/g, "_")), a.innerHTML = replaceIDs(l.body, _ ? () => _ + "ID" + p++ : "iconifyVue"), h("svg", a);
|
|
3815
3815
|
}
|
|
3816
|
-
const { body: u, width: d, height: m } = e, v = n === "mask" || (n === "bg" ? !1 : u.indexOf("currentColor") !== -1),
|
|
3816
|
+
const { body: u, width: d, height: m } = e, v = n === "mask" || (n === "bg" ? !1 : u.indexOf("currentColor") !== -1), T = iconToHTML(u, {
|
|
3817
3817
|
...c,
|
|
3818
3818
|
width: d + "",
|
|
3819
3819
|
height: m + ""
|
|
3820
3820
|
});
|
|
3821
3821
|
return a.style = {
|
|
3822
3822
|
...o,
|
|
3823
|
-
"--svg": svgToURL(
|
|
3823
|
+
"--svg": svgToURL(T),
|
|
3824
3824
|
width: fixSize(c.width),
|
|
3825
3825
|
height: fixSize(c.height),
|
|
3826
3826
|
...commonProps,
|
|
@@ -3926,15 +3926,15 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
|
3926
3926
|
(function(r, a) {
|
|
3927
3927
|
e.exports = a();
|
|
3928
3928
|
})(commonjsGlobal, function() {
|
|
3929
|
-
var r = 1e3, a = 6e4, n = 36e5, o = "millisecond", i = "second", s = "minute", l = "hour", c = "day", u = "week", d = "month", m = "quarter", v = "year",
|
|
3929
|
+
var r = 1e3, a = 6e4, n = 36e5, o = "millisecond", i = "second", s = "minute", l = "hour", c = "day", u = "week", d = "month", m = "quarter", v = "year", T = "date", p = "Invalid Date", _ = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, b = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(P) {
|
|
3930
3930
|
var V = ["th", "st", "nd", "rd"], D = P % 100;
|
|
3931
3931
|
return "[" + P + (V[(D - 20) % 10] || V[D] || V[0]) + "]";
|
|
3932
|
-
} },
|
|
3932
|
+
} }, C = function(P, V, D) {
|
|
3933
3933
|
var O = String(P);
|
|
3934
3934
|
return !O || O.length >= V ? P : "" + Array(V + 1 - O.length).join(D) + P;
|
|
3935
|
-
}, k = { s:
|
|
3935
|
+
}, k = { s: C, z: function(P) {
|
|
3936
3936
|
var V = -P.utcOffset(), D = Math.abs(V), O = Math.floor(D / 60), R = D % 60;
|
|
3937
|
-
return (V <= 0 ? "+" : "-") +
|
|
3937
|
+
return (V <= 0 ? "+" : "-") + C(O, 2, "0") + ":" + C(R, 2, "0");
|
|
3938
3938
|
}, m: function P(V, D) {
|
|
3939
3939
|
if (V.date() < D.date())
|
|
3940
3940
|
return -P(D, V);
|
|
@@ -3943,12 +3943,12 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
|
3943
3943
|
}, a: function(P) {
|
|
3944
3944
|
return P < 0 ? Math.ceil(P) || 0 : Math.floor(P);
|
|
3945
3945
|
}, p: function(P) {
|
|
3946
|
-
return { M: d, y: v, w: u, d: c, D:
|
|
3946
|
+
return { M: d, y: v, w: u, d: c, D: T, h: l, m: s, s: i, ms: o, Q: m }[P] || String(P || "").toLowerCase().replace(/s$/, "");
|
|
3947
3947
|
}, u: function(P) {
|
|
3948
3948
|
return P === void 0;
|
|
3949
3949
|
} }, M = "en", E = {};
|
|
3950
3950
|
E[M] = b;
|
|
3951
|
-
var
|
|
3951
|
+
var N = function(P) {
|
|
3952
3952
|
return P instanceof F;
|
|
3953
3953
|
}, I = function P(V, D, O) {
|
|
3954
3954
|
var R;
|
|
@@ -3966,12 +3966,12 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
|
3966
3966
|
}
|
|
3967
3967
|
return !O && R && (M = R), R || !O && M;
|
|
3968
3968
|
}, A = function(P, V) {
|
|
3969
|
-
if (
|
|
3969
|
+
if (N(P))
|
|
3970
3970
|
return P.clone();
|
|
3971
3971
|
var D = typeof V == "object" ? V : {};
|
|
3972
3972
|
return D.date = P, D.args = arguments, new F(D);
|
|
3973
3973
|
}, w = k;
|
|
3974
|
-
w.l = I, w.i =
|
|
3974
|
+
w.l = I, w.i = N, w.w = function(P, V) {
|
|
3975
3975
|
return A(P, { locale: V.$L, utc: V.$u, x: V.$x, $offset: V.$offset });
|
|
3976
3976
|
};
|
|
3977
3977
|
var F = function() {
|
|
@@ -4003,7 +4003,7 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
|
4003
4003
|
}, V.$utils = function() {
|
|
4004
4004
|
return w;
|
|
4005
4005
|
}, V.isValid = function() {
|
|
4006
|
-
return this.$d.toString() !==
|
|
4006
|
+
return this.$d.toString() !== p;
|
|
4007
4007
|
}, V.isSame = function(D, O) {
|
|
4008
4008
|
var R = A(D);
|
|
4009
4009
|
return this.startOf(O) <= R && R <= this.endOf(O);
|
|
@@ -4033,7 +4033,7 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
|
4033
4033
|
var oe = this.$locale().weekStart || 0, ue = (X < oe ? X + 7 : X) - oe;
|
|
4034
4034
|
return H(x ? te - ue : te + (6 - ue), Y);
|
|
4035
4035
|
case c:
|
|
4036
|
-
case
|
|
4036
|
+
case T:
|
|
4037
4037
|
return Q(ae + "Hours", 0);
|
|
4038
4038
|
case l:
|
|
4039
4039
|
return Q(ae + "Minutes", 1);
|
|
@@ -4047,10 +4047,10 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
|
4047
4047
|
}, V.endOf = function(D) {
|
|
4048
4048
|
return this.startOf(D, !1);
|
|
4049
4049
|
}, V.$set = function(D, O) {
|
|
4050
|
-
var R, x = w.p(D), G = "set" + (this.$u ? "UTC" : ""), H = (R = {}, R[c] = G + "Date", R[
|
|
4050
|
+
var R, x = w.p(D), G = "set" + (this.$u ? "UTC" : ""), H = (R = {}, R[c] = G + "Date", R[T] = G + "Date", R[d] = G + "Month", R[v] = G + "FullYear", R[l] = G + "Hours", R[s] = G + "Minutes", R[i] = G + "Seconds", R[o] = G + "Milliseconds", R)[x], Q = x === c ? this.$D + (O - this.$W) : O;
|
|
4051
4051
|
if (x === d || x === v) {
|
|
4052
|
-
var X = this.clone().set(
|
|
4053
|
-
X.$d[H](Q), X.init(), this.$d = X.set(
|
|
4052
|
+
var X = this.clone().set(T, 1);
|
|
4053
|
+
X.$d[H](Q), X.init(), this.$d = X.set(T, Math.min(this.$D, X.daysInMonth())).$d;
|
|
4054
4054
|
} else
|
|
4055
4055
|
H && this.$d[H](Q);
|
|
4056
4056
|
return this.init(), this;
|
|
@@ -4080,16 +4080,16 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
|
4080
4080
|
}, V.format = function(D) {
|
|
4081
4081
|
var O = this, R = this.$locale();
|
|
4082
4082
|
if (!this.isValid())
|
|
4083
|
-
return R.invalidDate ||
|
|
4084
|
-
var x = D || "YYYY-MM-DDTHH:mm:ssZ", G = w.z(this), H = this.$H, Q = this.$m, X = this.$M, Y = R.weekdays, te = R.months, ae = function(re, ce, fe,
|
|
4085
|
-
return re && (re[ce] || re(O, x)) || fe[ce].slice(0,
|
|
4083
|
+
return R.invalidDate || p;
|
|
4084
|
+
var x = D || "YYYY-MM-DDTHH:mm:ssZ", G = w.z(this), H = this.$H, Q = this.$m, X = this.$M, Y = R.weekdays, te = R.months, ae = function(re, ce, fe, K) {
|
|
4085
|
+
return re && (re[ce] || re(O, x)) || fe[ce].slice(0, K);
|
|
4086
4086
|
}, oe = function(re) {
|
|
4087
4087
|
return w.s(H % 12 || 12, re, "0");
|
|
4088
4088
|
}, ue = R.meridiem || function(re, ce, fe) {
|
|
4089
|
-
var
|
|
4090
|
-
return fe ?
|
|
4089
|
+
var K = re < 12 ? "AM" : "PM";
|
|
4090
|
+
return fe ? K.toLowerCase() : K;
|
|
4091
4091
|
}, de = { YY: String(this.$y).slice(-2), YYYY: this.$y, M: X + 1, MM: w.s(X + 1, 2, "0"), MMM: ae(R.monthsShort, X, te, 3), MMMM: ae(te, X), D: this.$D, DD: w.s(this.$D, 2, "0"), d: String(this.$W), dd: ae(R.weekdaysMin, this.$W, Y, 2), ddd: ae(R.weekdaysShort, this.$W, Y, 3), dddd: Y[this.$W], H: String(H), HH: w.s(H, 2, "0"), h: oe(1), hh: oe(2), a: ue(H, Q, !0), A: ue(H, Q, !1), m: String(Q), mm: w.s(Q, 2, "0"), s: String(this.$s), ss: w.s(this.$s, 2, "0"), SSS: w.s(this.$ms, 3, "0"), Z: G };
|
|
4092
|
-
return x.replace(
|
|
4092
|
+
return x.replace(y, function(re, ce) {
|
|
4093
4093
|
return ce || de[re] || G.replace(":", "");
|
|
4094
4094
|
});
|
|
4095
4095
|
}, V.utcOffset = function() {
|
|
@@ -4118,13 +4118,13 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
|
4118
4118
|
return this.$d.toUTCString();
|
|
4119
4119
|
}, P;
|
|
4120
4120
|
}(), $ = F.prototype;
|
|
4121
|
-
return A.prototype = $, [["$ms", o], ["$s", i], ["$m", s], ["$H", l], ["$W", c], ["$M", d], ["$y", v], ["$D",
|
|
4121
|
+
return A.prototype = $, [["$ms", o], ["$s", i], ["$m", s], ["$H", l], ["$W", c], ["$M", d], ["$y", v], ["$D", T]].forEach(function(P) {
|
|
4122
4122
|
$[P[1]] = function(V) {
|
|
4123
4123
|
return this.$g(V, P[0], P[1]);
|
|
4124
4124
|
};
|
|
4125
4125
|
}), A.extend = function(P, V) {
|
|
4126
4126
|
return P.$i || (P(V, F, A), P.$i = !0), A;
|
|
4127
|
-
}, A.locale = I, A.isDayjs =
|
|
4127
|
+
}, A.locale = I, A.isDayjs = N, A.unix = function(P) {
|
|
4128
4128
|
return A(1e3 * P);
|
|
4129
4129
|
}, A.en = E[M], A.Ls = E, A.p = {}, A;
|
|
4130
4130
|
});
|
|
@@ -4167,36 +4167,36 @@ function filesize(e, {
|
|
|
4167
4167
|
output: d = STRING,
|
|
4168
4168
|
fullform: m = !1,
|
|
4169
4169
|
fullforms: v = [],
|
|
4170
|
-
exponent:
|
|
4171
|
-
roundingMethod:
|
|
4170
|
+
exponent: T = -1,
|
|
4171
|
+
roundingMethod: p = ROUND,
|
|
4172
4172
|
precision: _ = 0
|
|
4173
4173
|
} = {}) {
|
|
4174
|
-
let
|
|
4174
|
+
let y = T, b = Number(e), C = [], k = 0, M = EMPTY;
|
|
4175
4175
|
a === -1 && u.length === 0 ? (a = 10, u = JEDEC) : a === -1 && u.length > 0 ? (u = u === IEC ? IEC : JEDEC, a = u === IEC ? 2 : 10) : (a = a === 2 ? 2 : 10, u = a === 10 || u === JEDEC ? JEDEC : IEC);
|
|
4176
|
-
const E = a === 10 ? 1e3 : 1024,
|
|
4176
|
+
const E = a === 10 ? 1e3 : 1024, N = m === !0, I = b < 0, A = Math[p];
|
|
4177
4177
|
if (typeof e != "bigint" && isNaN(e))
|
|
4178
4178
|
throw new TypeError(INVALID_NUMBER);
|
|
4179
4179
|
if (typeof A !== FUNCTION)
|
|
4180
4180
|
throw new TypeError(INVALID_ROUND);
|
|
4181
|
-
if (I && (b = -b), (
|
|
4182
|
-
return
|
|
4181
|
+
if (I && (b = -b), (y === -1 || isNaN(y)) && (y = Math.floor(Math.log(b) / Math.log(E)), y < 0 && (y = 0)), y > 8 && (_ > 0 && (_ += 8 - y), y = 8), d === EXPONENT)
|
|
4182
|
+
return y;
|
|
4183
4183
|
if (b === 0)
|
|
4184
|
-
|
|
4184
|
+
C[0] = 0, M = C[1] = STRINGS.symbol[u][t ? BITS : BYTES][y];
|
|
4185
4185
|
else {
|
|
4186
|
-
k = b / (a === 2 ? Math.pow(2,
|
|
4187
|
-
const w = Math.pow(10,
|
|
4188
|
-
|
|
4189
|
-
}
|
|
4190
|
-
if (I && (
|
|
4191
|
-
const w = s || PERIOD, F =
|
|
4192
|
-
|
|
4193
|
-
}
|
|
4194
|
-
return
|
|
4195
|
-
value:
|
|
4196
|
-
symbol:
|
|
4197
|
-
exponent:
|
|
4186
|
+
k = b / (a === 2 ? Math.pow(2, y * 10) : Math.pow(1e3, y)), t && (k = k * 8, k >= E && y < 8 && (k = k / E, y++));
|
|
4187
|
+
const w = Math.pow(10, y > 0 ? n : 0);
|
|
4188
|
+
C[0] = A(k * w) / w, C[0] === E && y < 8 && T === -1 && (C[0] = 1, y++), M = C[1] = a === 10 && y === 1 ? t ? SI_KBIT : SI_KBYTE : STRINGS.symbol[u][t ? BITS : BYTES][y];
|
|
4189
|
+
}
|
|
4190
|
+
if (I && (C[0] = -C[0]), _ > 0 && (C[0] = C[0].toPrecision(_)), C[1] = c[C[1]] || C[1], o === !0 ? C[0] = C[0].toLocaleString() : o.length > 0 ? C[0] = C[0].toLocaleString(o, i) : s.length > 0 && (C[0] = C[0].toString().replace(PERIOD, s)), r && Number.isInteger(C[0]) === !1 && n > 0) {
|
|
4191
|
+
const w = s || PERIOD, F = C[0].toString().split(w), $ = F[1] || EMPTY, P = $.length, V = n - P;
|
|
4192
|
+
C[0] = `${F[0]}${w}${$.padEnd(P + V, ZERO)}`;
|
|
4193
|
+
}
|
|
4194
|
+
return N && (C[1] = v[y] ? v[y] : STRINGS.fullform[u][y] + (t ? BIT : BYTE) + (C[0] === 1 ? EMPTY : S)), d === ARRAY ? C : d === OBJECT ? {
|
|
4195
|
+
value: C[0],
|
|
4196
|
+
symbol: C[1],
|
|
4197
|
+
exponent: y,
|
|
4198
4198
|
unit: M
|
|
4199
|
-
} :
|
|
4199
|
+
} : C.join(l);
|
|
4200
4200
|
}
|
|
4201
4201
|
var freeGlobal = typeof global == "object" && global && global.Object === Object && global;
|
|
4202
4202
|
const freeGlobal$1 = freeGlobal;
|
|
@@ -5242,12 +5242,12 @@ function baseClone(e, t, r, a, n, o) {
|
|
|
5242
5242
|
return v;
|
|
5243
5243
|
o.set(e, i), isSet$1(e) ? e.forEach(function(_) {
|
|
5244
5244
|
i.add(baseClone(_, t, r, _, e, o));
|
|
5245
|
-
}) : isMap$1(e) && e.forEach(function(_,
|
|
5246
|
-
i.set(
|
|
5245
|
+
}) : isMap$1(e) && e.forEach(function(_, y) {
|
|
5246
|
+
i.set(y, baseClone(_, t, r, y, e, o));
|
|
5247
5247
|
});
|
|
5248
|
-
var
|
|
5249
|
-
return arrayEach(
|
|
5250
|
-
|
|
5248
|
+
var T = c ? l ? getAllKeysIn : getAllKeys : l ? keysIn : keys, p = u ? void 0 : T(e);
|
|
5249
|
+
return arrayEach(p || e, function(_, y) {
|
|
5250
|
+
p && (y = _, _ = e[y]), assignValue(i, y, baseClone(_, t, r, y, e, o));
|
|
5251
5251
|
}), i;
|
|
5252
5252
|
}
|
|
5253
5253
|
var CLONE_DEEP_FLAG = 1, CLONE_SYMBOLS_FLAG = 4;
|
|
@@ -5287,9 +5287,9 @@ function equalArrays(e, t, r, a, n, o) {
|
|
|
5287
5287
|
return c == t && u == e;
|
|
5288
5288
|
var d = -1, m = !0, v = r & COMPARE_UNORDERED_FLAG$3 ? new SetCache() : void 0;
|
|
5289
5289
|
for (o.set(e, t), o.set(t, e); ++d < s; ) {
|
|
5290
|
-
var
|
|
5290
|
+
var T = e[d], p = t[d];
|
|
5291
5291
|
if (a)
|
|
5292
|
-
var _ = i ? a(
|
|
5292
|
+
var _ = i ? a(p, T, d, t, e, o) : a(T, p, d, e, t, o);
|
|
5293
5293
|
if (_ !== void 0) {
|
|
5294
5294
|
if (_)
|
|
5295
5295
|
continue;
|
|
@@ -5297,14 +5297,14 @@ function equalArrays(e, t, r, a, n, o) {
|
|
|
5297
5297
|
break;
|
|
5298
5298
|
}
|
|
5299
5299
|
if (v) {
|
|
5300
|
-
if (!arraySome(t, function(
|
|
5301
|
-
if (!cacheHas(v, b) && (
|
|
5300
|
+
if (!arraySome(t, function(y, b) {
|
|
5301
|
+
if (!cacheHas(v, b) && (T === y || n(T, y, r, a, o)))
|
|
5302
5302
|
return v.push(b);
|
|
5303
5303
|
})) {
|
|
5304
5304
|
m = !1;
|
|
5305
5305
|
break;
|
|
5306
5306
|
}
|
|
5307
|
-
} else if (!(
|
|
5307
|
+
} else if (!(T === p || n(T, p, r, a, o))) {
|
|
5308
5308
|
m = !1;
|
|
5309
5309
|
break;
|
|
5310
5310
|
}
|
|
@@ -5369,27 +5369,27 @@ function equalObjects(e, t, r, a, n, o) {
|
|
|
5369
5369
|
if (!(i ? m in t : hasOwnProperty$1.call(t, m)))
|
|
5370
5370
|
return !1;
|
|
5371
5371
|
}
|
|
5372
|
-
var v = o.get(e),
|
|
5373
|
-
if (v &&
|
|
5374
|
-
return v == t &&
|
|
5375
|
-
var
|
|
5372
|
+
var v = o.get(e), T = o.get(t);
|
|
5373
|
+
if (v && T)
|
|
5374
|
+
return v == t && T == e;
|
|
5375
|
+
var p = !0;
|
|
5376
5376
|
o.set(e, t), o.set(t, e);
|
|
5377
5377
|
for (var _ = i; ++d < l; ) {
|
|
5378
5378
|
m = s[d];
|
|
5379
|
-
var
|
|
5379
|
+
var y = e[m], b = t[m];
|
|
5380
5380
|
if (a)
|
|
5381
|
-
var
|
|
5382
|
-
if (!(
|
|
5383
|
-
|
|
5381
|
+
var C = i ? a(b, y, m, t, e, o) : a(y, b, m, e, t, o);
|
|
5382
|
+
if (!(C === void 0 ? y === b || n(y, b, r, a, o) : C)) {
|
|
5383
|
+
p = !1;
|
|
5384
5384
|
break;
|
|
5385
5385
|
}
|
|
5386
5386
|
_ || (_ = m == "constructor");
|
|
5387
5387
|
}
|
|
5388
|
-
if (
|
|
5388
|
+
if (p && !_) {
|
|
5389
5389
|
var k = e.constructor, M = t.constructor;
|
|
5390
|
-
k != M && "constructor" in e && "constructor" in t && !(typeof k == "function" && k instanceof k && typeof M == "function" && M instanceof M) && (
|
|
5390
|
+
k != M && "constructor" in e && "constructor" in t && !(typeof k == "function" && k instanceof k && typeof M == "function" && M instanceof M) && (p = !1);
|
|
5391
5391
|
}
|
|
5392
|
-
return o.delete(e), o.delete(t),
|
|
5392
|
+
return o.delete(e), o.delete(t), p;
|
|
5393
5393
|
}
|
|
5394
5394
|
var COMPARE_PARTIAL_FLAG$2 = 1, argsTag = "[object Arguments]", arrayTag = "[object Array]", objectTag = "[object Object]", objectProto = Object.prototype, hasOwnProperty = objectProto.hasOwnProperty;
|
|
5395
5395
|
function baseIsEqualDeep(e, t, r, a, n, o) {
|
|
@@ -5404,10 +5404,10 @@ function baseIsEqualDeep(e, t, r, a, n, o) {
|
|
|
5404
5404
|
if (m && !u)
|
|
5405
5405
|
return o || (o = new Stack()), i || isTypedArray$1(e) ? equalArrays(e, t, r, a, n, o) : equalByTag(e, t, l, r, a, n, o);
|
|
5406
5406
|
if (!(r & COMPARE_PARTIAL_FLAG$2)) {
|
|
5407
|
-
var v = u && hasOwnProperty.call(e, "__wrapped__"),
|
|
5408
|
-
if (v ||
|
|
5409
|
-
var
|
|
5410
|
-
return o || (o = new Stack()), n(
|
|
5407
|
+
var v = u && hasOwnProperty.call(e, "__wrapped__"), T = d && hasOwnProperty.call(t, "__wrapped__");
|
|
5408
|
+
if (v || T) {
|
|
5409
|
+
var p = v ? e.value() : e, _ = T ? t.value() : t;
|
|
5410
|
+
return o || (o = new Stack()), n(p, _, r, a, o);
|
|
5411
5411
|
}
|
|
5412
5412
|
}
|
|
5413
5413
|
return m ? (o || (o = new Stack()), equalObjects(e, t, r, a, n, o)) : !1;
|
|
@@ -5604,14 +5604,14 @@ function baseIntersection(e, t, r) {
|
|
|
5604
5604
|
var d = -1, m = s[0];
|
|
5605
5605
|
e:
|
|
5606
5606
|
for (; ++d < n && c.length < l; ) {
|
|
5607
|
-
var v = u[d],
|
|
5608
|
-
if (v = r || v !== 0 ? v : 0, !(m ? cacheHas(m,
|
|
5607
|
+
var v = u[d], T = t ? t(v) : v;
|
|
5608
|
+
if (v = r || v !== 0 ? v : 0, !(m ? cacheHas(m, T) : a(c, T, r))) {
|
|
5609
5609
|
for (i = o; --i; ) {
|
|
5610
|
-
var
|
|
5611
|
-
if (!(
|
|
5610
|
+
var p = s[i];
|
|
5611
|
+
if (!(p ? cacheHas(p, T) : a(e[i], T, r)))
|
|
5612
5612
|
continue e;
|
|
5613
5613
|
}
|
|
5614
|
-
m && m.push(
|
|
5614
|
+
m && m.push(T), c.push(v);
|
|
5615
5615
|
}
|
|
5616
5616
|
}
|
|
5617
5617
|
return c;
|
|
@@ -6364,18 +6364,18 @@ class KgVarUtil {
|
|
|
6364
6364
|
return r;
|
|
6365
6365
|
}
|
|
6366
6366
|
static transformValueByControlType(t, r, a, n, o) {
|
|
6367
|
-
var m, v,
|
|
6367
|
+
var m, v, T;
|
|
6368
6368
|
const i = useKg(), s = useKgVar(t);
|
|
6369
6369
|
let l = n;
|
|
6370
6370
|
const c = /(.*)?({(.*)?})(.*)?/.exec(l);
|
|
6371
6371
|
if (c) {
|
|
6372
|
-
const
|
|
6373
|
-
switch (c[2].slice(1, -1),
|
|
6372
|
+
const p = c[2];
|
|
6373
|
+
switch (c[2].slice(1, -1), p) {
|
|
6374
6374
|
case "{NOW}":
|
|
6375
6375
|
l = l.replace("{NOW}", a().format("YYYY-MM-DD HH:mm:ss"));
|
|
6376
6376
|
break;
|
|
6377
6377
|
case "{USER.username}":
|
|
6378
|
-
l = l.replace("{USER.username}", (
|
|
6378
|
+
l = l.replace("{USER.username}", (T = (v = (m = i.store).getUseUserStore) == null ? void 0 : v.call(m).userInfo) == null ? void 0 : T.username);
|
|
6379
6379
|
break;
|
|
6380
6380
|
}
|
|
6381
6381
|
}
|
|
@@ -6383,20 +6383,20 @@ class KgVarUtil {
|
|
|
6383
6383
|
if (!u)
|
|
6384
6384
|
return l;
|
|
6385
6385
|
switch ((() => {
|
|
6386
|
-
const
|
|
6386
|
+
const p = u.ctrl_typ, _ = u.prf_ctrl_typ, y = u.crt_ctrl_typ, b = u.upt_ctrl_typ, C = u.cpy_ctrl_typ, k = u.del_ctrl_typ;
|
|
6387
6387
|
switch (o) {
|
|
6388
6388
|
case "R":
|
|
6389
|
-
return _ ||
|
|
6389
|
+
return _ || p;
|
|
6390
6390
|
case "C":
|
|
6391
|
-
return
|
|
6391
|
+
return y || p;
|
|
6392
6392
|
case "U":
|
|
6393
|
-
return b ||
|
|
6393
|
+
return b || p;
|
|
6394
6394
|
case "CP":
|
|
6395
|
-
return
|
|
6395
|
+
return C || p;
|
|
6396
6396
|
case "D":
|
|
6397
|
-
return k ||
|
|
6397
|
+
return k || p;
|
|
6398
6398
|
}
|
|
6399
|
-
return
|
|
6399
|
+
return p;
|
|
6400
6400
|
})()) {
|
|
6401
6401
|
case KG_FORM_ITEM_TYPE.INPUT:
|
|
6402
6402
|
case KG_FORM_ITEM_TYPE.INPUT_PASSWORD:
|
|
@@ -6405,8 +6405,8 @@ class KgVarUtil {
|
|
|
6405
6405
|
case KG_FORM_ITEM_TYPE.INPUT_NUMBER: {
|
|
6406
6406
|
if (isNil(l))
|
|
6407
6407
|
return;
|
|
6408
|
-
const
|
|
6409
|
-
if (Number.isNaN(
|
|
6408
|
+
const p = Number(l);
|
|
6409
|
+
if (Number.isNaN(p)) {
|
|
6410
6410
|
KgLogger.error("| \u63A7\u4EF6\u7684\u503C\u975E\u6CD5 | INPUT_NUMBER \u63A7\u4EF6\u7684\u503C\u5FC5\u987B\u4E3A\u6570\u5B57\u7C7B\u578B.", {
|
|
6411
6411
|
frm_id: t,
|
|
6412
6412
|
var_nam: r,
|
|
@@ -6414,14 +6414,14 @@ class KgVarUtil {
|
|
|
6414
6414
|
});
|
|
6415
6415
|
return;
|
|
6416
6416
|
}
|
|
6417
|
-
return
|
|
6417
|
+
return p;
|
|
6418
6418
|
}
|
|
6419
6419
|
case KG_FORM_ITEM_TYPE.CHECKBOX:
|
|
6420
6420
|
case KG_FORM_ITEM_TYPE.SWITCH: {
|
|
6421
6421
|
if (isNil(l))
|
|
6422
6422
|
return 0;
|
|
6423
|
-
const
|
|
6424
|
-
if (Number.isNaN(
|
|
6423
|
+
const p = Number(l);
|
|
6424
|
+
if (Number.isNaN(p)) {
|
|
6425
6425
|
KgLogger.error(`| \u63A7\u4EF6\u7684\u503C\u975E\u6CD5 | ${u.ctrl_typ} \u63A7\u4EF6\u7684\u503C\u5FC5\u987B\u4E3A\u6570\u5B57\u7C7B\u578B.`, {
|
|
6426
6426
|
frm_id: t,
|
|
6427
6427
|
var_nam: r,
|
|
@@ -6429,7 +6429,7 @@ class KgVarUtil {
|
|
|
6429
6429
|
});
|
|
6430
6430
|
return;
|
|
6431
6431
|
}
|
|
6432
|
-
if (![0, 1].includes(
|
|
6432
|
+
if (![0, 1].includes(p)) {
|
|
6433
6433
|
KgLogger.error(`| \u63A7\u4EF6\u7684\u503C\u975E\u6CD5 | ${u.ctrl_typ} \u63A7\u4EF6\u7684\u503C\u5FC5\u987B\u4E3A 0 \u6216 1.`, {
|
|
6434
6434
|
frm_id: t,
|
|
6435
6435
|
var_nam: r,
|
|
@@ -6437,14 +6437,14 @@ class KgVarUtil {
|
|
|
6437
6437
|
});
|
|
6438
6438
|
return;
|
|
6439
6439
|
}
|
|
6440
|
-
return
|
|
6440
|
+
return p;
|
|
6441
6441
|
}
|
|
6442
6442
|
case KG_FORM_ITEM_TYPE.DATE_TIME: {
|
|
6443
6443
|
if (isNil(l))
|
|
6444
6444
|
return;
|
|
6445
|
-
const
|
|
6446
|
-
if (
|
|
6447
|
-
return
|
|
6445
|
+
const p = a(`1970-01-01 ${l}`);
|
|
6446
|
+
if (p != null && p.isValid())
|
|
6447
|
+
return p;
|
|
6448
6448
|
KgLogger.error(`| \u63A7\u4EF6\u7684\u503C\u975E\u6CD5 | ${u.ctrl_typ}, \u63A7\u4EF6\u7684\u503C\u5FC5\u987B\u4E3A\u65F6\u95F4\u7C7B\u578B.`, {
|
|
6449
6449
|
frm_id: t,
|
|
6450
6450
|
var_nam: r,
|
|
@@ -6459,9 +6459,9 @@ class KgVarUtil {
|
|
|
6459
6459
|
case KG_FORM_ITEM_TYPE.DATE_YEAR: {
|
|
6460
6460
|
if (isNil(l))
|
|
6461
6461
|
return;
|
|
6462
|
-
const
|
|
6463
|
-
if (
|
|
6464
|
-
return
|
|
6462
|
+
const p = a(l);
|
|
6463
|
+
if (p != null && p.isValid())
|
|
6464
|
+
return p;
|
|
6465
6465
|
KgLogger.error(`| \u63A7\u4EF6\u7684\u503C\u975E\u6CD5 | ${u.ctrl_typ}, \u63A7\u4EF6\u7684\u503C\u5FC5\u987B\u4E3A\u65E5\u671F\u7C7B\u578B.`, {
|
|
6466
6466
|
frm_id: t,
|
|
6467
6467
|
var_nam: r,
|
|
@@ -6473,8 +6473,8 @@ class KgVarUtil {
|
|
|
6473
6473
|
if (isNil(l))
|
|
6474
6474
|
return [];
|
|
6475
6475
|
try {
|
|
6476
|
-
const
|
|
6477
|
-
if (!isArray$1(
|
|
6476
|
+
const p = JSON.parse(l);
|
|
6477
|
+
if (!isArray$1(p)) {
|
|
6478
6478
|
KgLogger.error(`| \u63A7\u4EF6\u7684\u503C\u975E\u6CD5 | ${u.ctrl_typ} \u63A7\u4EF6\u7684\u503C\u5FC5\u987B\u4E3A\u6570\u7EC4\u7C7B\u578B.`, {
|
|
6479
6479
|
frm_id: t,
|
|
6480
6480
|
var_nam: r,
|
|
@@ -6485,8 +6485,8 @@ class KgVarUtil {
|
|
|
6485
6485
|
const _ = s.store.getVarPossibility(t, r);
|
|
6486
6486
|
switch (_ == null ? void 0 : _.val_data_type) {
|
|
6487
6487
|
case KG_POSSIBILITY_DATA_TYPE.NUMBER: {
|
|
6488
|
-
const
|
|
6489
|
-
if (
|
|
6488
|
+
const y = p.map((b) => Number(b));
|
|
6489
|
+
if (y.some((b) => Number.isNaN(y))) {
|
|
6490
6490
|
KgLogger.error(`| \u63A7\u4EF6\u7684\u503C\u975E\u6CD5 | ${u.ctrl_typ} \u63A7\u4EF6\u7684\u503C\u5FC5\u987B\u4E3A number \u6570\u7EC4\u7C7B\u578B.`, {
|
|
6491
6491
|
frm_id: t,
|
|
6492
6492
|
var_nam: r,
|
|
@@ -6495,13 +6495,13 @@ class KgVarUtil {
|
|
|
6495
6495
|
});
|
|
6496
6496
|
return;
|
|
6497
6497
|
}
|
|
6498
|
-
return
|
|
6498
|
+
return y;
|
|
6499
6499
|
}
|
|
6500
6500
|
case KG_POSSIBILITY_DATA_TYPE.BOOLEAN:
|
|
6501
|
-
return
|
|
6501
|
+
return p.map((y) => Boolean(y));
|
|
6502
6502
|
case KG_POSSIBILITY_DATA_TYPE.STRING:
|
|
6503
6503
|
default:
|
|
6504
|
-
return
|
|
6504
|
+
return p.map((y) => String(y));
|
|
6505
6505
|
}
|
|
6506
6506
|
} catch {
|
|
6507
6507
|
KgLogger.error(`| \u63A7\u4EF6\u7684\u503C\u975E\u6CD5 | ${u.ctrl_typ} \u63A7\u4EF6\u7684\u503C\u5FC5\u987B\u4E3A\u6570\u7EC4\u7C7B\u578B.`, {
|
|
@@ -6515,8 +6515,8 @@ class KgVarUtil {
|
|
|
6515
6515
|
case KG_FORM_ITEM_TYPE.SELECT: {
|
|
6516
6516
|
if (isNil(l))
|
|
6517
6517
|
return;
|
|
6518
|
-
const
|
|
6519
|
-
switch (
|
|
6518
|
+
const p = s.store.getVarPossibility(t, r);
|
|
6519
|
+
switch (p == null ? void 0 : p.val_data_type) {
|
|
6520
6520
|
case KG_POSSIBILITY_DATA_TYPE.NUMBER: {
|
|
6521
6521
|
const _ = Number(l);
|
|
6522
6522
|
if (Number.isNaN(_)) {
|
|
@@ -6524,7 +6524,7 @@ class KgVarUtil {
|
|
|
6524
6524
|
frm_id: t,
|
|
6525
6525
|
var_nam: r,
|
|
6526
6526
|
value: l,
|
|
6527
|
-
VarPossibility:
|
|
6527
|
+
VarPossibility: p
|
|
6528
6528
|
});
|
|
6529
6529
|
return;
|
|
6530
6530
|
}
|
|
@@ -6641,9 +6641,9 @@ function createSetupStore(e, t, r = {}, a, n) {
|
|
|
6641
6641
|
c ? v = I : c == !1 && !E._hotUpdating && (Array.isArray(v) ? v.push(I) : console.error("\u{1F34D} debuggerEvents should be an array. This is most likely an internal Pinia bug."));
|
|
6642
6642
|
});
|
|
6643
6643
|
let c, u, d = markRaw([]), m = markRaw([]), v;
|
|
6644
|
-
const
|
|
6645
|
-
!i && !
|
|
6646
|
-
const
|
|
6644
|
+
const T = a.state.value[e];
|
|
6645
|
+
!i && !T && (process.env.NODE_ENV === "production" || !n) && (a.state.value[e] = {});
|
|
6646
|
+
const p = ref({});
|
|
6647
6647
|
function _(I) {
|
|
6648
6648
|
let A;
|
|
6649
6649
|
c = u = !1, process.env.NODE_ENV !== "production" && (v = []), typeof I == "function" ? (I(a.state.value[e]), A = {
|
|
@@ -6659,13 +6659,13 @@ function createSetupStore(e, t, r = {}, a, n) {
|
|
|
6659
6659
|
c = !0;
|
|
6660
6660
|
}), u = !0, triggerSubscriptions(d, A, a.state.value[e]);
|
|
6661
6661
|
}
|
|
6662
|
-
const
|
|
6662
|
+
const y = process.env.NODE_ENV !== "production" ? () => {
|
|
6663
6663
|
throw new Error(`\u{1F34D}: Store "${e}" is build using the setup syntax and does not implement $reset().`);
|
|
6664
6664
|
} : noop$1;
|
|
6665
6665
|
function b() {
|
|
6666
6666
|
o.stop(), d = [], m = [], a._s.delete(e);
|
|
6667
6667
|
}
|
|
6668
|
-
function
|
|
6668
|
+
function C(I, A) {
|
|
6669
6669
|
return function() {
|
|
6670
6670
|
setActivePinia(a);
|
|
6671
6671
|
const w = Array.from(arguments), F = [], $ = [];
|
|
@@ -6695,13 +6695,13 @@ function createSetupStore(e, t, r = {}, a, n) {
|
|
|
6695
6695
|
actions: {},
|
|
6696
6696
|
getters: {},
|
|
6697
6697
|
state: [],
|
|
6698
|
-
hotState:
|
|
6698
|
+
hotState: p
|
|
6699
6699
|
}), M = {
|
|
6700
6700
|
_p: a,
|
|
6701
6701
|
$id: e,
|
|
6702
6702
|
$onAction: addSubscription.bind(null, m),
|
|
6703
6703
|
$patch: _,
|
|
6704
|
-
$reset:
|
|
6704
|
+
$reset: y,
|
|
6705
6705
|
$subscribe(I, A = {}) {
|
|
6706
6706
|
const w = addSubscription(d, I, A.detached, () => F()), F = o.run(() => watch(() => a.state.value[e], ($) => {
|
|
6707
6707
|
(A.flush === "sync" ? u : c) && I({
|
|
@@ -6721,19 +6721,19 @@ function createSetupStore(e, t, r = {}, a, n) {
|
|
|
6721
6721
|
M
|
|
6722
6722
|
));
|
|
6723
6723
|
a._s.set(e, E);
|
|
6724
|
-
const
|
|
6725
|
-
for (const I in
|
|
6726
|
-
const A =
|
|
6724
|
+
const N = a._e.run(() => (o = effectScope(), o.run(() => t())));
|
|
6725
|
+
for (const I in N) {
|
|
6726
|
+
const A = N[I];
|
|
6727
6727
|
if (isRef(A) && !isComputed(A) || isReactive(A))
|
|
6728
|
-
process.env.NODE_ENV !== "production" && n ? set(
|
|
6728
|
+
process.env.NODE_ENV !== "production" && n ? set(p.value, I, toRef(N, I)) : i || (T && shouldHydrate(A) && (isRef(A) ? A.value = T[I] : mergeReactiveObjects(A, T[I])), a.state.value[e][I] = A), process.env.NODE_ENV !== "production" && k.state.push(I);
|
|
6729
6729
|
else if (typeof A == "function") {
|
|
6730
|
-
const w = process.env.NODE_ENV !== "production" && n ? A :
|
|
6731
|
-
|
|
6730
|
+
const w = process.env.NODE_ENV !== "production" && n ? A : C(I, A);
|
|
6731
|
+
N[I] = w, process.env.NODE_ENV !== "production" && (k.actions[I] = A), s.actions[I] = A;
|
|
6732
6732
|
} else
|
|
6733
|
-
process.env.NODE_ENV !== "production" && isComputed(A) && (k.getters[I] = i ? r.getters[I] : A, IS_CLIENT && (
|
|
6733
|
+
process.env.NODE_ENV !== "production" && isComputed(A) && (k.getters[I] = i ? r.getters[I] : A, IS_CLIENT && (N._getters || (N._getters = markRaw([]))).push(I));
|
|
6734
6734
|
}
|
|
6735
|
-
if (assign$1(E,
|
|
6736
|
-
get: () => process.env.NODE_ENV !== "production" && n ?
|
|
6735
|
+
if (assign$1(E, N), assign$1(toRaw(E), N), Object.defineProperty(E, "$state", {
|
|
6736
|
+
get: () => process.env.NODE_ENV !== "production" && n ? p.value : a.state.value[e],
|
|
6737
6737
|
set: (I) => {
|
|
6738
6738
|
if (process.env.NODE_ENV !== "production" && n)
|
|
6739
6739
|
throw new Error("cannot set hotState");
|
|
@@ -6756,7 +6756,7 @@ function createSetupStore(e, t, r = {}, a, n) {
|
|
|
6756
6756
|
});
|
|
6757
6757
|
for (const w in A._hmrPayload.actions) {
|
|
6758
6758
|
const F = A[w];
|
|
6759
|
-
set(E, w,
|
|
6759
|
+
set(E, w, C(w, F));
|
|
6760
6760
|
}
|
|
6761
6761
|
for (const w in A._hmrPayload.getters) {
|
|
6762
6762
|
const F = A._hmrPayload.getters[w], $ = i ? computed(() => (setActivePinia(a), F.call(E, E))) : F;
|
|
@@ -6798,7 +6798,7 @@ function createSetupStore(e, t, r = {}, a, n) {
|
|
|
6798
6798
|
})));
|
|
6799
6799
|
}), process.env.NODE_ENV !== "production" && E.$state && typeof E.$state == "object" && typeof E.$state.constructor == "function" && !E.$state.constructor.toString().includes("[native code]") && console.warn(`[\u{1F34D}]: The "state" must be a plain object. It cannot be
|
|
6800
6800
|
state: () => new MyClass()
|
|
6801
|
-
Found in store "${E.$id}".`),
|
|
6801
|
+
Found in store "${E.$id}".`), T && i && r.hydrate && r.hydrate(E.$state, T), c = !0, u = !0, E;
|
|
6802
6802
|
}
|
|
6803
6803
|
function defineStore(e, t, r) {
|
|
6804
6804
|
let a, n;
|
|
@@ -7408,18 +7408,18 @@ const KgModal_Close = "", getProps$A = () => ({
|
|
|
7408
7408
|
function v(b) {
|
|
7409
7409
|
m(b);
|
|
7410
7410
|
}
|
|
7411
|
-
function
|
|
7411
|
+
function T(b) {
|
|
7412
7412
|
m(b), d();
|
|
7413
7413
|
}
|
|
7414
|
-
function
|
|
7415
|
-
b.stopPropagation(), b.preventDefault(), d(), !(b instanceof MouseEvent && b.which !== 1) && (o = b.pageX, i = b.pageY, a = e.kgWidth, n = e.kgHeight, s = _(document.documentElement, "mousemove", v), l = _(document.documentElement, "mouseup",
|
|
7414
|
+
function p(b) {
|
|
7415
|
+
b.stopPropagation(), b.preventDefault(), d(), !(b instanceof MouseEvent && b.which !== 1) && (o = b.pageX, i = b.pageY, a = e.kgWidth, n = e.kgHeight, s = _(document.documentElement, "mousemove", v), l = _(document.documentElement, "mouseup", T));
|
|
7416
7416
|
}
|
|
7417
|
-
function _(b,
|
|
7418
|
-
return b.addEventListener(
|
|
7419
|
-
remove: () => b.removeEventListener(
|
|
7417
|
+
function _(b, C, k) {
|
|
7418
|
+
return b.addEventListener(C, k), {
|
|
7419
|
+
remove: () => b.removeEventListener(C, k)
|
|
7420
7420
|
};
|
|
7421
7421
|
}
|
|
7422
|
-
function
|
|
7422
|
+
function y(b) {
|
|
7423
7423
|
b.stopPropagation(), b.preventDefault();
|
|
7424
7424
|
}
|
|
7425
7425
|
return () => {
|
|
@@ -7429,8 +7429,8 @@ const KgModal_Close = "", getProps$A = () => ({
|
|
|
7429
7429
|
style: c.value
|
|
7430
7430
|
}, [createVNode("div", {
|
|
7431
7431
|
class: "kg-resizable-handle",
|
|
7432
|
-
onClick:
|
|
7433
|
-
onMousedown:
|
|
7432
|
+
onClick: y,
|
|
7433
|
+
onMousedown: p
|
|
7434
7434
|
}, [createVNode("div", {
|
|
7435
7435
|
class: "kg-resizable-handle-line"
|
|
7436
7436
|
}, null)]), (b = r.default) == null ? void 0 : b.call(r)]);
|
|
@@ -7586,14 +7586,14 @@ function createStore(e, t, r) {
|
|
|
7586
7586
|
var u = this[c];
|
|
7587
7587
|
this[c] = function() {
|
|
7588
7588
|
var m = slice(arguments, 0), v = this;
|
|
7589
|
-
function
|
|
7589
|
+
function T() {
|
|
7590
7590
|
if (!!u)
|
|
7591
|
-
return each$6(arguments, function(_,
|
|
7592
|
-
m[
|
|
7591
|
+
return each$6(arguments, function(_, y) {
|
|
7592
|
+
m[y] = _;
|
|
7593
7593
|
}), u.apply(v, m);
|
|
7594
7594
|
}
|
|
7595
|
-
var
|
|
7596
|
-
return l.apply(v,
|
|
7595
|
+
var p = [T].concat(m);
|
|
7596
|
+
return l.apply(v, p);
|
|
7597
7597
|
};
|
|
7598
7598
|
},
|
|
7599
7599
|
_serialize: function(l) {
|
|
@@ -8609,17 +8609,17 @@ const useKgVarStore = () => (store$7 || (store$7 = defineStore("KgVar", {
|
|
|
8609
8609
|
varPossibilities: d,
|
|
8610
8610
|
varButtons: m,
|
|
8611
8611
|
varButtonConfig: v,
|
|
8612
|
-
varSubmitConfig:
|
|
8613
|
-
varSubmitFields:
|
|
8612
|
+
varSubmitConfig: T,
|
|
8613
|
+
varSubmitFields: p,
|
|
8614
8614
|
varProfile: _,
|
|
8615
|
-
varProfileConfig:
|
|
8615
|
+
varProfileConfig: y,
|
|
8616
8616
|
varGrid: b,
|
|
8617
|
-
varGridConfig:
|
|
8617
|
+
varGridConfig: C
|
|
8618
8618
|
} = await GetAll({ params: { frm_id: e } });
|
|
8619
|
-
this.varCatalogMap.set(e, s != null ? s : []), this.varLookupMap.set(e, l != null ? l : []), this.varPossibilityMap.set(e, d != null ? d : []), this.varVariableConfigMap.set(e, c != null ? c : []), this.varVariableInputMap.set(e, u != null ? u : []), this.varButtonMap.set(e, transformVarButtons(m)), this.varButtonConfigMap.set(e, v != null ? v : null), this.varSubmitConfigMap.set(e, transformVarSubmitConfig(
|
|
8619
|
+
this.varCatalogMap.set(e, s != null ? s : []), this.varLookupMap.set(e, l != null ? l : []), this.varPossibilityMap.set(e, d != null ? d : []), this.varVariableConfigMap.set(e, c != null ? c : []), this.varVariableInputMap.set(e, u != null ? u : []), this.varButtonMap.set(e, transformVarButtons(m)), this.varButtonConfigMap.set(e, v != null ? v : null), this.varSubmitConfigMap.set(e, transformVarSubmitConfig(T)), this.varSubmitFieldMap.set(e, transformVarSubmitFields(p)), this.varProfileConfigMap.set(e, transformVarProfileConfig(y != null ? y : null)), this.varProfileMap.set(e, {
|
|
8620
8620
|
varProfile: _ != null ? _ : null,
|
|
8621
8621
|
currentVarProfileMasterID: (a = (r = (t = _ == null ? void 0 : _.varProfileMasters) == null ? void 0 : t.find((k) => k.def_flg === 1 || k.cust_lvl === KG_CUSTOM_LEVEL.L0)) == null ? void 0 : r.id) != null ? a : null
|
|
8622
|
-
}), this.varGridConfigMap.set(e, transformVarGridConfig(
|
|
8622
|
+
}), this.varGridConfigMap.set(e, transformVarGridConfig(C != null ? C : null)), this.varGridMap.set(e, {
|
|
8623
8623
|
varGrid: transformVarGridDTO(b),
|
|
8624
8624
|
currentVarGridMasterID: (i = (o = (n = b == null ? void 0 : b.varGridMasters) == null ? void 0 : n.find((k) => k.def_flg === 1 || k.cust_lvl === KG_CUSTOM_LEVEL.L0)) == null ? void 0 : o.id) != null ? i : null
|
|
8625
8625
|
}), this.isRetrievedMap.set(e, !0), this.emit(e, "retrieve");
|
|
@@ -8784,7 +8784,7 @@ function useKgVar(e, t, r = 0) {
|
|
|
8784
8784
|
const d = (Y) => computed(() => {
|
|
8785
8785
|
var te, ae, oe;
|
|
8786
8786
|
return (oe = (ae = (te = u.getVarCatalog(c, Y)) == null ? void 0 : te.var_text) != null ? ae : Y) != null ? oe : "";
|
|
8787
|
-
}), m = computed(() => u.isRetrieving(c)), v = computed(() => u.isRetrievingVarProfileMaster(c)),
|
|
8787
|
+
}), m = computed(() => u.isRetrieving(c)), v = computed(() => u.isRetrievingVarProfileMaster(c)), T = computed(() => u.isRetrievingVarGridMaster(c)), p = computed(() => u.isCreating(c)), _ = computed(() => u.isCreatingRequesting(c)), y = computed(() => u.isUpdating(c)), b = computed(() => u.isUpdatingRequesting(c)), C = computed(() => u.isCopying(c)), k = computed(() => u.isCopyingRequesting(c)), M = computed(() => u.isDeleting(c)), E = computed(() => u.isDeletingRequesting(c)), N = computed(() => u.isOtherRequesting(c)), I = computed(() => u.getVarButtons(c)), A = computed(() => u.getVarButtonSearch(c)), w = computed(() => u.getVarButtonCreate(c)), F = computed(() => u.getVarButtonUpdate(c)), $ = computed(() => u.getVarButtonCopy(c)), P = computed(() => u.getVarButtonDelete(c)), V = computed(() => u.getVarProfileMasters(c)), D = computed(() => u.getCurrentVarProfileMaster(c)), O = computed(() => u.getCurrentVarProfileMasterID(c)), R = computed(() => {
|
|
8788
8788
|
var Y, te;
|
|
8789
8789
|
return (te = (Y = D.value) == null ? void 0 : Y.varProfileDetails) != null ? te : null;
|
|
8790
8790
|
}), x = computed(() => u.getVarGridConfig(c)), G = computed(() => u.getVarGridMasters(c)), H = computed(() => u.getCurrentVarGridMaster(c)), Q = computed(() => u.getSystemVarGridDetails(c)), X = computed(() => u.getCurrentVarGridDetails(c));
|
|
@@ -8793,16 +8793,16 @@ function useKgVar(e, t, r = 0) {
|
|
|
8793
8793
|
store: u,
|
|
8794
8794
|
isRetrieving: m,
|
|
8795
8795
|
isRetrievingVarProfileMaster: v,
|
|
8796
|
-
isRetrievingVarGridMaster:
|
|
8797
|
-
isCreating:
|
|
8796
|
+
isRetrievingVarGridMaster: T,
|
|
8797
|
+
isCreating: p,
|
|
8798
8798
|
isCreatingRequesting: _,
|
|
8799
|
-
isUpdating:
|
|
8799
|
+
isUpdating: y,
|
|
8800
8800
|
isUpdatingRequesting: b,
|
|
8801
|
-
isCopying:
|
|
8801
|
+
isCopying: C,
|
|
8802
8802
|
isCopyingRequesting: k,
|
|
8803
8803
|
isDeleting: M,
|
|
8804
8804
|
isDeletingRequesting: E,
|
|
8805
|
-
isOtherRequesting:
|
|
8805
|
+
isOtherRequesting: N,
|
|
8806
8806
|
varButtons: I,
|
|
8807
8807
|
varButtonSearch: A,
|
|
8808
8808
|
varButtonCreate: w,
|
|
@@ -8841,16 +8841,16 @@ const DI_KG_VAR__KG_SLOTS = Symbol("DI_KG_VAR__KG_SLOTS"), DI_KG_VAR__KG_PROPS =
|
|
|
8841
8841
|
}) {
|
|
8842
8842
|
provide(DI_KG_VAR__KG_PROPS, computed(() => e.kgProps)), provide(DI_KG_VAR__KG_SLOTS, e.kgSlots);
|
|
8843
8843
|
const r = useKgVar(), a = computed(() => r.store.getVarSubmitConfig(r.formID)), n = computed(() => r.store.getVarProfileConfig(r.formID)), o = computed(() => r.store.getVarButtonConfig(r.formID)), i = computed(() => {
|
|
8844
|
-
var m, v,
|
|
8844
|
+
var m, v, T, p;
|
|
8845
8845
|
switch (!0) {
|
|
8846
8846
|
case r.isCreating.value:
|
|
8847
8847
|
return ((m = a.value) == null ? void 0 : m.crt_flg) !== 0;
|
|
8848
8848
|
case r.isUpdating.value:
|
|
8849
8849
|
return ((v = a.value) == null ? void 0 : v.upt_flg) !== 0;
|
|
8850
8850
|
case r.isCopying.value:
|
|
8851
|
-
return ((
|
|
8851
|
+
return ((T = a.value) == null ? void 0 : T.cpy_flg) !== 0;
|
|
8852
8852
|
case r.isDeleting.value:
|
|
8853
|
-
return ((
|
|
8853
|
+
return ((p = a.value) == null ? void 0 : p.del_flg) !== 0;
|
|
8854
8854
|
}
|
|
8855
8855
|
return !1;
|
|
8856
8856
|
}), s = computed(() => {
|
|
@@ -8891,20 +8891,20 @@ const DI_KG_VAR__KG_SLOTS = Symbol("DI_KG_VAR__KG_SLOTS"), DI_KG_VAR__KG_PROPS =
|
|
|
8891
8891
|
const a = inject(KG_DI_HOST_FORM_ID, ""), n = useKgVar(a), o = useKgForm(n.formID), i = inject(KG_DI_VAR_NAME, ""), s = inject(KG_DI_LOOKUP_ID, "");
|
|
8892
8892
|
useKgVar(s, !0, n.store.getFormLevel(n.formID) + 1);
|
|
8893
8893
|
const l = useKgTable(s), c = computed(() => n.store.getVarLookup(n.formID, i)), u = computed(() => {
|
|
8894
|
-
var
|
|
8895
|
-
return ((
|
|
8894
|
+
var T;
|
|
8895
|
+
return ((T = c == null ? void 0 : c.value) == null ? void 0 : T.mult_flg) === 1;
|
|
8896
8896
|
}), d = computed(() => {
|
|
8897
|
-
var
|
|
8898
|
-
return (
|
|
8897
|
+
var T, p;
|
|
8898
|
+
return (p = (T = c == null ? void 0 : c.value) == null ? void 0 : T.ret_fld) != null ? p : "";
|
|
8899
8899
|
});
|
|
8900
8900
|
l.onRowDoubleClick(async () => (await v(), !1));
|
|
8901
8901
|
function m() {
|
|
8902
8902
|
r("update:visible", !1);
|
|
8903
8903
|
}
|
|
8904
8904
|
async function v() {
|
|
8905
|
-
var
|
|
8905
|
+
var T, p, _, y, b, C, k;
|
|
8906
8906
|
if (u.value) {
|
|
8907
|
-
const M = (
|
|
8907
|
+
const M = (p = (T = l.selectedRows) == null ? void 0 : T.value) != null ? p : [], E = (_ = M.map((I) => I[d.value])) != null ? _ : [];
|
|
8908
8908
|
await o.store.emit(o.formID, "lookupBeforeOk", {
|
|
8909
8909
|
var_nam: i,
|
|
8910
8910
|
isMultiple: !0,
|
|
@@ -8917,7 +8917,7 @@ const DI_KG_VAR__KG_SLOTS = Symbol("DI_KG_VAR__KG_SLOTS"), DI_KG_VAR__KG_PROPS =
|
|
|
8917
8917
|
rows: M
|
|
8918
8918
|
}), r("update:visible", !1));
|
|
8919
8919
|
} else {
|
|
8920
|
-
const M = (
|
|
8920
|
+
const M = (C = (b = (y = l.selectedRows) == null ? void 0 : y.value) == null ? void 0 : b[0]) != null ? C : null, E = (k = M == null ? void 0 : M[d.value]) != null ? k : "";
|
|
8921
8921
|
await o.store.emit(o.formID, "lookupBeforeOk", {
|
|
8922
8922
|
var_nam: i,
|
|
8923
8923
|
isMultiple: !1,
|
|
@@ -8932,13 +8932,13 @@ const DI_KG_VAR__KG_SLOTS = Symbol("DI_KG_VAR__KG_SLOTS"), DI_KG_VAR__KG_PROPS =
|
|
|
8932
8932
|
}
|
|
8933
8933
|
}
|
|
8934
8934
|
return () => {
|
|
8935
|
-
var
|
|
8935
|
+
var T, p;
|
|
8936
8936
|
return createVNode(KgModal, {
|
|
8937
8937
|
visible: e.visible,
|
|
8938
8938
|
title: n.t(i).value,
|
|
8939
8939
|
destroyOnClose: !0,
|
|
8940
8940
|
okButtonProps: {
|
|
8941
|
-
disabled: ((
|
|
8941
|
+
disabled: ((p = (T = l.selectedRows.value) == null ? void 0 : T.length) != null ? p : 0) === 0
|
|
8942
8942
|
},
|
|
8943
8943
|
wrapClassName: "kg-form-item-addon-lookup-modal",
|
|
8944
8944
|
onCancel: m,
|
|
@@ -9032,7 +9032,7 @@ function _useRules(e) {
|
|
|
9032
9032
|
const t = useKg(), r = useKgVar(), a = computed(() => r.store.getVarProfileDetail(r.formID, e.kgVarName)), n = computed(() => r.store.getVarVariableInput(r.formID, e.kgVarName)), o = computed(() => r.store.getVarSubmitField(r.formID, e.kgVarName));
|
|
9033
9033
|
return {
|
|
9034
9034
|
rules: computed(() => {
|
|
9035
|
-
var l, c, u, d, m, v,
|
|
9035
|
+
var l, c, u, d, m, v, T, p;
|
|
9036
9036
|
let s = [];
|
|
9037
9037
|
switch (e.kgContext) {
|
|
9038
9038
|
case KG_FORM_CONTEXT.SEARCH:
|
|
@@ -9072,11 +9072,11 @@ function _useRules(e) {
|
|
|
9072
9072
|
}
|
|
9073
9073
|
switch ((v = n.value) == null ? void 0 : v.data_type) {
|
|
9074
9074
|
case KG_VAR_INPUT__DATA_TYPE.NUMBER:
|
|
9075
|
-
const _ = (
|
|
9076
|
-
isNil(_) || (((
|
|
9077
|
-
validator: (
|
|
9075
|
+
const _ = (T = n.value) == null ? void 0 : T.min;
|
|
9076
|
+
isNil(_) || (((p = n.value) == null ? void 0 : p.min_include_flg) === 1 ? s.push({
|
|
9077
|
+
validator: (y, b) => Number(b) < _ ? Promise.reject(t.t("kg.KgFormItem.mustGTE", [_])) : Promise.resolve()
|
|
9078
9078
|
}) : s.push({
|
|
9079
|
-
validator: (
|
|
9079
|
+
validator: (y, b) => Number(b) <= _ ? Promise.reject(t.t("kg.KgFormItem.mustGT", [_])) : Promise.resolve()
|
|
9080
9080
|
}));
|
|
9081
9081
|
break;
|
|
9082
9082
|
}
|
|
@@ -9086,8 +9086,8 @@ function _useRules(e) {
|
|
|
9086
9086
|
}
|
|
9087
9087
|
function useKgFormItem(e) {
|
|
9088
9088
|
const t = inject(KG_DI_VAR_NAME, e == null ? void 0 : e.kgVarName), r = inject(DI_KG_CONTEXT, e == null ? void 0 : e.kgContext), a = useKgVar(), n = computed(() => a.store.getVarVariableConfig(a.formID, t)), o = computed(() => {
|
|
9089
|
-
var v,
|
|
9090
|
-
const s = (v = n.value) == null ? void 0 : v.ctrl_typ, l = (
|
|
9089
|
+
var v, T, p, _, y, b;
|
|
9090
|
+
const s = (v = n.value) == null ? void 0 : v.ctrl_typ, l = (T = n.value) == null ? void 0 : T.prf_ctrl_typ, c = (p = n.value) == null ? void 0 : p.crt_ctrl_typ, u = (_ = n.value) == null ? void 0 : _.upt_ctrl_typ, d = (y = n.value) == null ? void 0 : y.cpy_ctrl_typ, m = (b = n.value) == null ? void 0 : b.del_ctrl_typ;
|
|
9091
9091
|
switch (r) {
|
|
9092
9092
|
case KG_FORM_CONTEXT.SEARCH:
|
|
9093
9093
|
return l || s;
|
|
@@ -9105,9 +9105,9 @@ function useKgFormItem(e) {
|
|
|
9105
9105
|
}
|
|
9106
9106
|
return s;
|
|
9107
9107
|
}), i = computed(() => {
|
|
9108
|
-
var
|
|
9108
|
+
var T, p, _, y, b, C;
|
|
9109
9109
|
let s;
|
|
9110
|
-
const l = (
|
|
9110
|
+
const l = (T = n.value) == null ? void 0 : T.ctrl_prop, c = (p = n.value) == null ? void 0 : p.prf_ctrl_prop, u = (_ = n.value) == null ? void 0 : _.crt_ctrl_prop, d = (y = n.value) == null ? void 0 : y.upt_ctrl_prop, m = (b = n.value) == null ? void 0 : b.cpy_ctrl_prop, v = (C = n.value) == null ? void 0 : C.del_ctrl_prop;
|
|
9111
9111
|
switch (r) {
|
|
9112
9112
|
case KG_FORM_CONTEXT.SEARCH:
|
|
9113
9113
|
s = c || l;
|
|
@@ -9146,30 +9146,30 @@ function useKgFormItemSelect() {
|
|
|
9146
9146
|
var m;
|
|
9147
9147
|
let d = KgVarUtil.parseCommandParameter((m = a.value) == null ? void 0 : m.cmd_prm);
|
|
9148
9148
|
return d = mapValues(d, (v) => {
|
|
9149
|
-
var
|
|
9150
|
-
let
|
|
9149
|
+
var p, _;
|
|
9150
|
+
let T = v;
|
|
9151
9151
|
if (typeof v == "string" && v.startsWith("{") && v.endsWith("}")) {
|
|
9152
|
-
let
|
|
9153
|
-
if (
|
|
9154
|
-
const
|
|
9155
|
-
|
|
9152
|
+
let y = v.slice(1, -1), b = "";
|
|
9153
|
+
if (y.includes(".")) {
|
|
9154
|
+
const C = y.split(".");
|
|
9155
|
+
y = C[0], b = C[1];
|
|
9156
9156
|
}
|
|
9157
|
-
t.value &&
|
|
9157
|
+
t.value && y in t.value && (b ? T = (_ = (p = t.value[`${y}_obj`]) == null ? void 0 : p[b]) != null ? _ : void 0 : T = t.value[y], T || (T = "__KG__FORM_ITEM_SELECT__PID"));
|
|
9158
9158
|
}
|
|
9159
|
-
return
|
|
9159
|
+
return T;
|
|
9160
9160
|
}), d;
|
|
9161
9161
|
});
|
|
9162
9162
|
async function c() {
|
|
9163
|
-
var
|
|
9163
|
+
var y, b, C, k, M, E, N, I;
|
|
9164
9164
|
let d = [];
|
|
9165
|
-
const m = (
|
|
9166
|
-
if (!m || !
|
|
9165
|
+
const m = (y = a.value) == null ? void 0 : y.cmd, v = (C = (b = a.value) == null ? void 0 : b.cmd_method) != null ? C : "GET", T = (M = (k = a.value) == null ? void 0 : k.val_clm) != null ? M : "", p = (N = (E = a.value) == null ? void 0 : E.lbl_clm) != null ? N : "";
|
|
9166
|
+
if (!m || !T || !p) {
|
|
9167
9167
|
KgLogger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF.", {
|
|
9168
9168
|
frm_id: r.formID,
|
|
9169
9169
|
var_nam: e,
|
|
9170
9170
|
cmd: m,
|
|
9171
|
-
val_clm:
|
|
9172
|
-
lbl_clm:
|
|
9171
|
+
val_clm: T,
|
|
9172
|
+
lbl_clm: p
|
|
9173
9173
|
});
|
|
9174
9174
|
return;
|
|
9175
9175
|
}
|
|
@@ -9195,57 +9195,57 @@ function useKgFormItemSelect() {
|
|
|
9195
9195
|
}
|
|
9196
9196
|
if (d.length > 0) {
|
|
9197
9197
|
const A = d[0];
|
|
9198
|
-
(!(
|
|
9198
|
+
(!(T in A) || !(p in A)) && KgLogger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF, \u6570\u636E\u5217(val_clm)\u6216\u663E\u793A\u5217(lbl_clm)\u6709\u8BEF.", {
|
|
9199
9199
|
frm_id: r.formID,
|
|
9200
9200
|
var_nam: e,
|
|
9201
9201
|
cmd: m,
|
|
9202
|
-
val_clm:
|
|
9203
|
-
lbl_clm:
|
|
9202
|
+
val_clm: T,
|
|
9203
|
+
lbl_clm: p,
|
|
9204
9204
|
\u6240\u6709\u5217: Object.keys(A)
|
|
9205
9205
|
});
|
|
9206
9206
|
}
|
|
9207
9207
|
i.value = d;
|
|
9208
9208
|
}
|
|
9209
9209
|
function u(d) {
|
|
9210
|
-
var
|
|
9210
|
+
var T, p, _, y, b;
|
|
9211
9211
|
if (!d)
|
|
9212
9212
|
return [];
|
|
9213
|
-
const m = (
|
|
9213
|
+
const m = (p = (T = a.value) == null ? void 0 : T.val_clm) != null ? p : "", v = (y = (_ = a.value) == null ? void 0 : _.val_data_type) != null ? y : "string";
|
|
9214
9214
|
switch (v) {
|
|
9215
9215
|
case KG_POSSIBILITY_DATA_TYPE.STRING:
|
|
9216
|
-
d.forEach((
|
|
9217
|
-
|
|
9216
|
+
d.forEach((C) => {
|
|
9217
|
+
C[m] = String(C[m]);
|
|
9218
9218
|
});
|
|
9219
9219
|
break;
|
|
9220
9220
|
case KG_POSSIBILITY_DATA_TYPE.NUMBER:
|
|
9221
|
-
d.forEach((
|
|
9222
|
-
let k = Number(
|
|
9223
|
-
Number.isNaN(k) && (k =
|
|
9221
|
+
d.forEach((C) => {
|
|
9222
|
+
let k = Number(C[m]);
|
|
9223
|
+
Number.isNaN(k) && (k = C[m], KgLogger.error(`| \u6570\u636E\u6709\u8BEF | \u65E0\u6CD5\u5C06 ${C[m]} \u8F6C\u6362\u4E3A ${v} \u7C7B\u578B`, {
|
|
9224
9224
|
frm_id: r.formID,
|
|
9225
9225
|
var_nam: e,
|
|
9226
9226
|
VarPossibility: a.value
|
|
9227
|
-
})),
|
|
9227
|
+
})), C[m] = k;
|
|
9228
9228
|
});
|
|
9229
9229
|
break;
|
|
9230
9230
|
case KG_POSSIBILITY_DATA_TYPE.BOOLEAN:
|
|
9231
|
-
d.forEach((
|
|
9231
|
+
d.forEach((C) => {
|
|
9232
9232
|
let k;
|
|
9233
|
-
String(
|
|
9233
|
+
String(C[m]).toLowerCase() === "true" ? k = !0 : String(C[m]).toLowerCase() === "false" ? k = !1 : (k = C[m], KgLogger.error(`| \u6570\u636E\u6709\u8BEF | \u65E0\u6CD5\u5C06 ${C[m]} \u8F6C\u6362\u4E3A ${v} \u7C7B\u578B`, {
|
|
9234
9234
|
frm_id: r.formID,
|
|
9235
9235
|
var_nam: e,
|
|
9236
9236
|
VarPossibility: a.value
|
|
9237
|
-
})),
|
|
9237
|
+
})), C[m] = k;
|
|
9238
9238
|
});
|
|
9239
9239
|
break;
|
|
9240
9240
|
}
|
|
9241
9241
|
switch (n.value) {
|
|
9242
9242
|
case KG_FORM_ITEM_TYPE.CHECKBOX_GROUP:
|
|
9243
9243
|
{
|
|
9244
|
-
const
|
|
9245
|
-
if ((b =
|
|
9244
|
+
const C = o;
|
|
9245
|
+
if ((b = C.value) != null && b.excludeValues)
|
|
9246
9246
|
return d.filter((k) => {
|
|
9247
9247
|
var M;
|
|
9248
|
-
return !((M =
|
|
9248
|
+
return !((M = C.value.excludeValues) != null && M.includes(k[m]));
|
|
9249
9249
|
});
|
|
9250
9250
|
}
|
|
9251
9251
|
break;
|
|
@@ -9283,20 +9283,20 @@ const KgFormItemCheckboxGroup = defineComponent({
|
|
|
9283
9283
|
} = useKgFormItemSelect(), d = ref(!1), m = ref(!1);
|
|
9284
9284
|
watch(s, () => v(), {
|
|
9285
9285
|
immediate: !0
|
|
9286
|
-
}), watch([() => e.value, c], ([_,
|
|
9286
|
+
}), watch([() => e.value, c], ([_, y]) => {
|
|
9287
9287
|
const b = get(_, "length", 0);
|
|
9288
|
-
if (b > 0 &&
|
|
9289
|
-
const
|
|
9290
|
-
if (
|
|
9291
|
-
r("update:value",
|
|
9288
|
+
if (b > 0 && y.length > 0) {
|
|
9289
|
+
const C = intersection$1(_, y == null ? void 0 : y.map((k) => k[l.value]));
|
|
9290
|
+
if (C.length < b) {
|
|
9291
|
+
r("update:value", C);
|
|
9292
9292
|
return;
|
|
9293
9293
|
}
|
|
9294
9294
|
}
|
|
9295
9295
|
switch (!0) {
|
|
9296
|
-
case (b > 0 && b ===
|
|
9296
|
+
case (b > 0 && b === y.length):
|
|
9297
9297
|
d.value = !0, m.value = !1;
|
|
9298
9298
|
break;
|
|
9299
|
-
case (b > 0 && b !==
|
|
9299
|
+
case (b > 0 && b !== y.length):
|
|
9300
9300
|
d.value = !1, m.value = !0;
|
|
9301
9301
|
break;
|
|
9302
9302
|
default:
|
|
@@ -9307,18 +9307,18 @@ const KgFormItemCheckboxGroup = defineComponent({
|
|
|
9307
9307
|
immediate: !0
|
|
9308
9308
|
});
|
|
9309
9309
|
async function v() {
|
|
9310
|
-
var _,
|
|
9311
|
-
!((_ = i.value) != null && _.id) || (await u(), r("kgCheckboxGroupDatasChange", c.value), r("update:value", intersection$1((
|
|
9310
|
+
var _, y;
|
|
9311
|
+
!((_ = i.value) != null && _.id) || (await u(), r("kgCheckboxGroupDatasChange", c.value), r("update:value", intersection$1((y = c.value) == null ? void 0 : y.map((b) => b[l.value]), e.value)));
|
|
9312
9312
|
}
|
|
9313
|
-
function
|
|
9314
|
-
var
|
|
9315
|
-
_.target.checked ?
|
|
9313
|
+
function T(_) {
|
|
9314
|
+
var y, b, C;
|
|
9315
|
+
_.target.checked ? p((b = (y = c.value) == null ? void 0 : y.map((k) => k[l.value])) != null ? b : []) : p([]), m.value = !1, (C = n.value) == null || C.validate(e.kgVarName);
|
|
9316
9316
|
}
|
|
9317
|
-
function
|
|
9317
|
+
function p(_) {
|
|
9318
9318
|
r("update:value", _), r("kgChange", _);
|
|
9319
9319
|
}
|
|
9320
9320
|
return () => {
|
|
9321
|
-
let _,
|
|
9321
|
+
let _, y;
|
|
9322
9322
|
return createVNode("div", {
|
|
9323
9323
|
class: "kg-form-item-checkbox-group"
|
|
9324
9324
|
}, [createVNode(Form.ItemRest, null, {
|
|
@@ -9326,20 +9326,20 @@ const KgFormItemCheckboxGroup = defineComponent({
|
|
|
9326
9326
|
checked: d.value,
|
|
9327
9327
|
"onUpdate:checked": (b) => d.value = b,
|
|
9328
9328
|
indeterminate: m.value,
|
|
9329
|
-
onChange:
|
|
9329
|
+
onChange: T
|
|
9330
9330
|
}, _isSlot$a(_ = a.t("kg.selectAll")) ? _ : {
|
|
9331
9331
|
default: () => [_]
|
|
9332
9332
|
})]
|
|
9333
9333
|
}), createVNode(Divider, null, null), createVNode(Checkbox.Group, {
|
|
9334
9334
|
value: e.value,
|
|
9335
|
-
"onUpdate:value":
|
|
9335
|
+
"onUpdate:value": p
|
|
9336
9336
|
}, {
|
|
9337
9337
|
default: () => [createVNode(Row, {
|
|
9338
9338
|
gutter: 12
|
|
9339
|
-
}, _isSlot$a(
|
|
9340
|
-
var
|
|
9339
|
+
}, _isSlot$a(y = c.value.map((b) => {
|
|
9340
|
+
var C, k;
|
|
9341
9341
|
return createVNode(Col, {
|
|
9342
|
-
span: (k = (
|
|
9342
|
+
span: (k = (C = o.value) == null ? void 0 : C.span) != null ? k : 24
|
|
9343
9343
|
}, {
|
|
9344
9344
|
default: () => [createVNode(Checkbox, {
|
|
9345
9345
|
value: b[l.value],
|
|
@@ -9351,8 +9351,8 @@ const KgFormItemCheckboxGroup = defineComponent({
|
|
|
9351
9351
|
}
|
|
9352
9352
|
})]
|
|
9353
9353
|
});
|
|
9354
|
-
})) ?
|
|
9355
|
-
default: () => [
|
|
9354
|
+
})) ? y : {
|
|
9355
|
+
default: () => [y]
|
|
9356
9356
|
})]
|
|
9357
9357
|
})]);
|
|
9358
9358
|
};
|
|
@@ -9505,17 +9505,17 @@ const KgFormItemRadioGroup = defineComponent({
|
|
|
9505
9505
|
default: () => [createVNode(Row, {
|
|
9506
9506
|
gutter: 12
|
|
9507
9507
|
}, _isSlot$9(d = s.value.map((m) => {
|
|
9508
|
-
var v,
|
|
9508
|
+
var v, T;
|
|
9509
9509
|
return createVNode(Col, {
|
|
9510
|
-
span: (
|
|
9510
|
+
span: (T = (v = a.value) == null ? void 0 : v.span) != null ? T : 24
|
|
9511
9511
|
}, {
|
|
9512
9512
|
default: () => [createVNode(Radio, {
|
|
9513
9513
|
value: m[i.value],
|
|
9514
9514
|
"kg-value": m[i.value]
|
|
9515
9515
|
}, {
|
|
9516
9516
|
default: () => {
|
|
9517
|
-
var
|
|
9518
|
-
return [m[(_ = (
|
|
9517
|
+
var p, _;
|
|
9518
|
+
return [m[(_ = (p = n.value) == null ? void 0 : p.lbl_clm) != null ? _ : ""]];
|
|
9519
9519
|
}
|
|
9520
9520
|
})]
|
|
9521
9521
|
});
|
|
@@ -9548,8 +9548,8 @@ const KgFormItemRadioGroup = defineComponent({
|
|
|
9548
9548
|
!((m = n.value) != null && m.id) || (await l(), r("kgSelectDatasChange", s.value), s.value.find((v) => v[i.value] === e.value) || r("update:value", void 0));
|
|
9549
9549
|
}
|
|
9550
9550
|
function u(m) {
|
|
9551
|
-
var
|
|
9552
|
-
const v = (
|
|
9551
|
+
var T;
|
|
9552
|
+
const v = (T = toRaw(s.value.find((p) => p[i.value] === m))) != null ? T : null;
|
|
9553
9553
|
r("kgSelectChange", v), a.value[`${e.kgVarName}_obj`] = v;
|
|
9554
9554
|
}
|
|
9555
9555
|
function d(m) {
|
|
@@ -9572,13 +9572,13 @@ const KgFormItemRadioGroup = defineComponent({
|
|
|
9572
9572
|
"kg-val-clm": i.value,
|
|
9573
9573
|
"kg-lbl-clm": (v = n.value) == null ? void 0 : v.lbl_clm
|
|
9574
9574
|
}, {
|
|
9575
|
-
default: () => s.value.map((
|
|
9576
|
-
"kg-value":
|
|
9577
|
-
value:
|
|
9575
|
+
default: () => s.value.map((T) => createVNode(Select.Option, {
|
|
9576
|
+
"kg-value": T[i.value],
|
|
9577
|
+
value: T[i.value]
|
|
9578
9578
|
}, {
|
|
9579
9579
|
default: () => {
|
|
9580
|
-
var
|
|
9581
|
-
return [
|
|
9580
|
+
var p, _;
|
|
9581
|
+
return [T[(_ = (p = n.value) == null ? void 0 : p.lbl_clm) != null ? _ : ""]];
|
|
9582
9582
|
}
|
|
9583
9583
|
})),
|
|
9584
9584
|
suffixIcon: () => createVNode(CaretDownOutlined$1, null, null)
|
|
@@ -9689,7 +9689,7 @@ const KgFormItemRadioGroup = defineComponent({
|
|
|
9689
9689
|
break;
|
|
9690
9690
|
}
|
|
9691
9691
|
return I;
|
|
9692
|
-
}),
|
|
9692
|
+
}), T = computed(() => {
|
|
9693
9693
|
var A, w, F, $;
|
|
9694
9694
|
let I = " ";
|
|
9695
9695
|
if (e.kgPlaceholder)
|
|
@@ -9704,7 +9704,7 @@ const KgFormItemRadioGroup = defineComponent({
|
|
|
9704
9704
|
break;
|
|
9705
9705
|
}
|
|
9706
9706
|
return I;
|
|
9707
|
-
}),
|
|
9707
|
+
}), p = computed(() => {
|
|
9708
9708
|
var A, w, F, $, P, V, D, O, R, x;
|
|
9709
9709
|
let I = 6;
|
|
9710
9710
|
if (e.kgSpan !== void 0)
|
|
@@ -9742,7 +9742,7 @@ const KgFormItemRadioGroup = defineComponent({
|
|
|
9742
9742
|
paddingLeft: `${w}px !important`,
|
|
9743
9743
|
paddingRight: `${w}px !important`
|
|
9744
9744
|
}), A;
|
|
9745
|
-
}),
|
|
9745
|
+
}), y = computed(() => {
|
|
9746
9746
|
var A, w, F, $;
|
|
9747
9747
|
let I = "kg-form-item";
|
|
9748
9748
|
switch (s.value && (I += " kg-form-item-lookup"), e.kgContext) {
|
|
@@ -9772,9 +9772,9 @@ const KgFormItemRadioGroup = defineComponent({
|
|
|
9772
9772
|
"onUpdate:value": (w) => {
|
|
9773
9773
|
a.value && (a.value[e.kgVarName] = w);
|
|
9774
9774
|
},
|
|
9775
|
-
kgPlaceholder:
|
|
9775
|
+
kgPlaceholder: T.value,
|
|
9776
9776
|
kgDisabled: v.value,
|
|
9777
|
-
id:
|
|
9777
|
+
id: C.value
|
|
9778
9778
|
};
|
|
9779
9779
|
switch (m.value) {
|
|
9780
9780
|
case KG_FORM_ITEM_TYPE.INPUT_NUMBER:
|
|
@@ -9800,7 +9800,7 @@ const KgFormItemRadioGroup = defineComponent({
|
|
|
9800
9800
|
break;
|
|
9801
9801
|
}
|
|
9802
9802
|
return I;
|
|
9803
|
-
}),
|
|
9803
|
+
}), C = computed(() => encodeURIComponent(`${e.kgContext}~${o.formID}~${e.kgVarName}`)), k = ref(null);
|
|
9804
9804
|
function M() {
|
|
9805
9805
|
if (t.control) {
|
|
9806
9806
|
const I = {
|
|
@@ -9853,7 +9853,7 @@ const KgFormItemRadioGroup = defineComponent({
|
|
|
9853
9853
|
title: o.t(e.kgVarName).value
|
|
9854
9854
|
}, [o.t(e.kgVarName).value]) : null;
|
|
9855
9855
|
}
|
|
9856
|
-
function
|
|
9856
|
+
function N() {
|
|
9857
9857
|
var I;
|
|
9858
9858
|
return !s.value || !((I = s.value) != null && I.lkp_id) ? null : createVNode(Form.ItemRest, null, {
|
|
9859
9859
|
default: () => [createVNode(KgFormItemAddonLookup, {
|
|
@@ -9866,8 +9866,8 @@ const KgFormItemRadioGroup = defineComponent({
|
|
|
9866
9866
|
var I, A;
|
|
9867
9867
|
return o.isRetrieving.value ? null : createVNode(Col, {
|
|
9868
9868
|
ref: k,
|
|
9869
|
-
span:
|
|
9870
|
-
class:
|
|
9869
|
+
span: p.value,
|
|
9870
|
+
class: y.value,
|
|
9871
9871
|
style: _.value,
|
|
9872
9872
|
"kg-frm_id": o.formID,
|
|
9873
9873
|
"kg-var_nam": e.kgVarName,
|
|
@@ -9878,9 +9878,9 @@ const KgFormItemRadioGroup = defineComponent({
|
|
|
9878
9878
|
name: e.kgVarName,
|
|
9879
9879
|
rules: d.value,
|
|
9880
9880
|
validateFirst: !0,
|
|
9881
|
-
htmlFor:
|
|
9881
|
+
htmlFor: C.value
|
|
9882
9882
|
}, {
|
|
9883
|
-
default: () => createVNode(Fragment, null, [M(),
|
|
9883
|
+
default: () => createVNode(Fragment, null, [M(), N()]),
|
|
9884
9884
|
label: () => E()
|
|
9885
9885
|
})]
|
|
9886
9886
|
});
|
|
@@ -10211,9 +10211,9 @@ const useKgSubmitStore = () => (store$5 || (store$5 = defineStore("KgSubmit", {
|
|
|
10211
10211
|
}).bind(null, pinia())), store$5);
|
|
10212
10212
|
function useKgSubmit(e) {
|
|
10213
10213
|
const t = useKgVar(e), r = useKgSubmitStore()(), a = computed(() => t.store.getVarSubmitConfig(t.formID)), n = computed(() => {
|
|
10214
|
-
var _,
|
|
10214
|
+
var _, y, b, C, k;
|
|
10215
10215
|
let l = KG_VAR_SUBMIT__DISPLAY_TYPE.DRAWER;
|
|
10216
|
-
const c = KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL, u = KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE, d = (_ = a.value) == null ? void 0 : _.display_type, m = (
|
|
10216
|
+
const c = KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL, u = KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE, d = (_ = a.value) == null ? void 0 : _.display_type, m = (y = a.value) == null ? void 0 : y.crt_display_type, v = (b = a.value) == null ? void 0 : b.upt_display_type, T = (C = a.value) == null ? void 0 : C.cpy_display_type, p = (k = a.value) == null ? void 0 : k.del_display_type;
|
|
10217
10217
|
switch (!0) {
|
|
10218
10218
|
case (t.isCreating.value && (m === c || !m && d === c)):
|
|
10219
10219
|
l = c;
|
|
@@ -10221,10 +10221,10 @@ function useKgSubmit(e) {
|
|
|
10221
10221
|
case (t.isUpdating.value && (v === c || !v && d === c)):
|
|
10222
10222
|
l = c;
|
|
10223
10223
|
break;
|
|
10224
|
-
case (t.isCopying.value && (
|
|
10224
|
+
case (t.isCopying.value && (T === c || !T && d === c)):
|
|
10225
10225
|
l = c;
|
|
10226
10226
|
break;
|
|
10227
|
-
case (t.isDeleting.value && (
|
|
10227
|
+
case (t.isDeleting.value && (p === c || !p)):
|
|
10228
10228
|
l = c;
|
|
10229
10229
|
break;
|
|
10230
10230
|
}
|
|
@@ -10235,7 +10235,7 @@ function useKgSubmit(e) {
|
|
|
10235
10235
|
case (t.isUpdating.value && (v === u || !v && d === u)):
|
|
10236
10236
|
l = u;
|
|
10237
10237
|
break;
|
|
10238
|
-
case (t.isCopying.value && (
|
|
10238
|
+
case (t.isCopying.value && (T === u || !T && d === u)):
|
|
10239
10239
|
l = u;
|
|
10240
10240
|
break;
|
|
10241
10241
|
}
|
|
@@ -10284,8 +10284,8 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
|
|
|
10284
10284
|
}) => {
|
|
10285
10285
|
const u = o.store.getVarSubmitConfig(o.formID);
|
|
10286
10286
|
return s = watch(c, (d) => {
|
|
10287
|
-
var m, v,
|
|
10288
|
-
d && (d.id = (m = u == null ? void 0 : u.id) != null ? m : null, d.frm_id = o.formID, d.resizable_flg = (v = u == null ? void 0 : u.resizable_flg) != null ? v : 1, d.fullscreen_flg = (
|
|
10287
|
+
var m, v, T, p, _, y, b, C, k, M, E, N;
|
|
10288
|
+
d && (d.id = (m = u == null ? void 0 : u.id) != null ? m : null, d.frm_id = o.formID, d.resizable_flg = (v = u == null ? void 0 : u.resizable_flg) != null ? v : 1, d.fullscreen_flg = (T = u == null ? void 0 : u.fullscreen_flg) != null ? T : 1, d.dft_fullscreen_flg = (p = u == null ? void 0 : u.dft_fullscreen_flg) != null ? p : 0, d.responsive_flg = (_ = u == null ? void 0 : u.responsive_flg) != null ? _ : 1, d.max_width = (y = u == null ? void 0 : u.max_width) != null ? y : DEFAULT_MAX_WIDTH, d.min_width = (b = u == null ? void 0 : u.min_width) != null ? b : DEFAULT_MIN_WIDTH, d.dft_width = (C = u == null ? void 0 : u.dft_width) != null ? C : DEFAULT_WIDTH, d.layout = (k = u == null ? void 0 : u.layout) != null ? k : KG_VAR_SUBMIT__LAYOUT.VERTICAL, d.label_col = (M = u == null ? void 0 : u.label_col) != null ? M : DEFAULT_LABEL_COL_FOR_SPAN, d.label_col_unit = (E = u == null ? void 0 : u.label_col_unit) != null ? E : KG_WIDTH_UNIT.SPAN, d.display_type = (N = u == null ? void 0 : u.display_type) != null ? N : KG_VAR_SUBMIT__DISPLAY_TYPE.DRAWER);
|
|
10289
10289
|
}, {
|
|
10290
10290
|
immediate: !0
|
|
10291
10291
|
}), !1;
|
|
@@ -10334,16 +10334,16 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
|
|
|
10334
10334
|
function v() {
|
|
10335
10335
|
r("kgCancel");
|
|
10336
10336
|
}
|
|
10337
|
-
function
|
|
10338
|
-
var
|
|
10339
|
-
return e.kgShowFullscreenButton === !1 || ((
|
|
10337
|
+
function T() {
|
|
10338
|
+
var y;
|
|
10339
|
+
return e.kgShowFullscreenButton === !1 || ((y = s.value) == null ? void 0 : y.fullscreen_flg) === 0 ? null : createVNode(Button, {
|
|
10340
10340
|
onClick: d,
|
|
10341
10341
|
class: "kg-submit--btn-fullscreen"
|
|
10342
10342
|
}, {
|
|
10343
10343
|
default: () => [e.isFullscreen ? createVNode(FullscreenExitOutlined$1, null, null) : createVNode(FullscreenOutlined$1, null, null)]
|
|
10344
10344
|
});
|
|
10345
10345
|
}
|
|
10346
|
-
function
|
|
10346
|
+
function p() {
|
|
10347
10347
|
return e.kgShowConfigButton ? createVNode(Fragment, null, [createVNode(Button, {
|
|
10348
10348
|
disabled: c.value || l.value,
|
|
10349
10349
|
onClick: m,
|
|
@@ -10363,7 +10363,7 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
|
|
|
10363
10363
|
default: () => [createVNode(CloseOutlined$1, null, null)]
|
|
10364
10364
|
});
|
|
10365
10365
|
}
|
|
10366
|
-
return () => createVNode(Fragment, null, [
|
|
10366
|
+
return () => createVNode(Fragment, null, [p(), T(), _()]);
|
|
10367
10367
|
}
|
|
10368
10368
|
}), 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;
|
|
10369
10369
|
function _useFormModel$1() {
|
|
@@ -10385,17 +10385,17 @@ function _useFormModel$1() {
|
|
|
10385
10385
|
if (c.value = {}, u != null && u.length) {
|
|
10386
10386
|
const d = r.selectedRow.value;
|
|
10387
10387
|
u.forEach((m) => {
|
|
10388
|
-
var
|
|
10389
|
-
const v = (
|
|
10388
|
+
var T, p, _, y, b, C, k, M;
|
|
10389
|
+
const v = (T = m.var_nam) != null ? T : "";
|
|
10390
10390
|
switch (c.value[v] = void 0, !0) {
|
|
10391
10391
|
case t.isCreating.value:
|
|
10392
|
-
c.value[v] = KgVarUtil.transformValueByControlType(t.formID, v, e, (
|
|
10392
|
+
c.value[v] = KgVarUtil.transformValueByControlType(t.formID, v, e, (p = m.crt_dft_val) != null ? p : void 0, "C");
|
|
10393
10393
|
break;
|
|
10394
10394
|
case t.isUpdating.value:
|
|
10395
|
-
c.value.id = d == null ? void 0 : d.id, c.value[v] = KgVarUtil.transformValueByControlType(t.formID, v, e, (
|
|
10395
|
+
c.value.id = d == null ? void 0 : d.id, c.value[v] = KgVarUtil.transformValueByControlType(t.formID, v, e, (y = (_ = m.upt_dft_val) != null ? _ : d == null ? void 0 : d[v]) != null ? y : void 0, "U");
|
|
10396
10396
|
break;
|
|
10397
10397
|
case t.isCopying.value:
|
|
10398
|
-
c.value.id = d == null ? void 0 : d.id, c.value[v] = KgVarUtil.transformValueByControlType(t.formID, v, e, (
|
|
10398
|
+
c.value.id = d == null ? void 0 : d.id, c.value[v] = KgVarUtil.transformValueByControlType(t.formID, v, e, (C = (b = m.cpy_dft_val) != null ? b : d == null ? void 0 : d[v]) != null ? C : void 0, "CP");
|
|
10399
10399
|
break;
|
|
10400
10400
|
case t.isDeleting.value:
|
|
10401
10401
|
c.value.id = d == null ? void 0 : d.id, c.value[v] = KgVarUtil.transformValueByControlType(t.formID, v, e, (M = (k = m.del_dft_val) != null ? k : d == null ? void 0 : d[v]) != null ? M : void 0, "D");
|
|
@@ -10471,9 +10471,9 @@ function _useClass(e, t) {
|
|
|
10471
10471
|
const r = inject(DI_KG_VAR__KG_PROPS, null), a = useKgVar(), n = useKgSubmit(), o = computed(() => a.store.getVarSubmitConfig(a.formID)), i = computed(() => a.store.getVarSubmitFieldsForDeleteKey(a.formID));
|
|
10472
10472
|
return {
|
|
10473
10473
|
getClass: computed(() => {
|
|
10474
|
-
var c, u, d, m, v,
|
|
10474
|
+
var c, u, d, m, v, T, p;
|
|
10475
10475
|
let l = "kg-submit";
|
|
10476
|
-
return t.isFullscreen && (l += " kg-submit--fullscreen"), ((c = o.value) == null ? void 0 : c.responsive_flg) !== 0 && (l += " kg-submit--responsive"), n.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL ? l += " kg-submit--modal" : n.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && (l += " kg-submit--table"), a.isDeleting.value && ((d = (u = i.value) == null ? void 0 : u.length) != null ? d : 0) === 0 && (l += " kg-submit--delete-message"), (v = (m = r == null ? void 0 : r.value) == null ? void 0 : m.KgSubmit) != null && v.kgClass ? l += ` ${(
|
|
10476
|
+
return t.isFullscreen && (l += " kg-submit--fullscreen"), ((c = o.value) == null ? void 0 : c.responsive_flg) !== 0 && (l += " kg-submit--responsive"), n.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL ? l += " kg-submit--modal" : n.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && (l += " kg-submit--table"), a.isDeleting.value && ((d = (u = i.value) == null ? void 0 : u.length) != null ? d : 0) === 0 && (l += " kg-submit--delete-message"), (v = (m = r == null ? void 0 : r.value) == null ? void 0 : m.KgSubmit) != null && v.kgClass ? l += ` ${(p = (T = r == null ? void 0 : r.value) == null ? void 0 : T.KgSubmit) == null ? void 0 : p.kgClass}` : e.kgClass && (l += ` ${e.kgClass}`), l;
|
|
10477
10477
|
})
|
|
10478
10478
|
};
|
|
10479
10479
|
}
|
|
@@ -10549,15 +10549,15 @@ const getProps$p = () => ({
|
|
|
10549
10549
|
inject(DI_KG_VAR__KG_PROPS, null);
|
|
10550
10550
|
const n = useKg(), o = useKgVar(), i = useKgButton(), s = useKgTable(), l = useKgSubmit(), c = useKgSearch();
|
|
10551
10551
|
i.onSubmitSave(async () => (await ue(), !1)), i.onSubmitCancel(async () => (await oe(), !1)), _useFormModel$1();
|
|
10552
|
-
const u = computed(() => o.isDeleting.value && k.value.length === 0 && M.value.length === 0), d = computed(() => l.store.isLoading(o.formID)), m = computed(() => o.store.getVarSubmitConfig(o.formID)), v = computed(() => o.store.getVarSubmitFieldsForCreateKey(o.formID)),
|
|
10552
|
+
const u = computed(() => o.isDeleting.value && k.value.length === 0 && M.value.length === 0), d = computed(() => l.store.isLoading(o.formID)), m = computed(() => o.store.getVarSubmitConfig(o.formID)), v = computed(() => o.store.getVarSubmitFieldsForCreateKey(o.formID)), T = computed(() => o.store.getVarSubmitFieldsForCreateNotKey(o.formID)), p = computed(() => o.store.getVarSubmitFieldsForUpdateKey(o.formID)), _ = computed(() => o.store.getVarSubmitFieldsForUpdateNotKey(o.formID)), y = computed(() => o.store.getVarSubmitFieldsForCopyKey(o.formID)), b = computed(() => o.store.getVarSubmitFieldsForCopyNotKey(o.formID)), C = computed(() => o.store.getVarSubmitFieldsForDelete(o.formID)), k = computed(() => {
|
|
10553
10553
|
var L, B, q;
|
|
10554
10554
|
switch (!0) {
|
|
10555
10555
|
case o.isCreating.value:
|
|
10556
10556
|
return (L = v.value) != null ? L : [];
|
|
10557
10557
|
case o.isUpdating.value:
|
|
10558
|
-
return (B =
|
|
10558
|
+
return (B = p.value) != null ? B : [];
|
|
10559
10559
|
case o.isCopying.value:
|
|
10560
|
-
return (q =
|
|
10560
|
+
return (q = y.value) != null ? q : [];
|
|
10561
10561
|
case o.isDeleting.value:
|
|
10562
10562
|
return [];
|
|
10563
10563
|
}
|
|
@@ -10566,16 +10566,16 @@ const getProps$p = () => ({
|
|
|
10566
10566
|
var L, B, q, ee;
|
|
10567
10567
|
switch (!0) {
|
|
10568
10568
|
case o.isCreating.value:
|
|
10569
|
-
return (L =
|
|
10569
|
+
return (L = T.value) != null ? L : [];
|
|
10570
10570
|
case o.isUpdating.value:
|
|
10571
10571
|
return (B = _.value) != null ? B : [];
|
|
10572
10572
|
case o.isCopying.value:
|
|
10573
10573
|
return (q = b.value) != null ? q : [];
|
|
10574
10574
|
case o.isDeleting.value:
|
|
10575
|
-
return (ee =
|
|
10575
|
+
return (ee = C.value) != null ? ee : [];
|
|
10576
10576
|
}
|
|
10577
10577
|
return [];
|
|
10578
|
-
}), E = computed(() => !!o.store.isCreatingRequesting(o.formID) || !!o.store.isUpdatingRequesting(o.formID) || !!o.store.isCopyingRequesting(o.formID) || !!o.store.isDeletingRequesting(o.formID)),
|
|
10578
|
+
}), E = computed(() => !!o.store.isCreatingRequesting(o.formID) || !!o.store.isUpdatingRequesting(o.formID) || !!o.store.isCopyingRequesting(o.formID) || !!o.store.isDeletingRequesting(o.formID)), N = computed(() => E.value || d.value), I = computed(() => d.value), A = ref({
|
|
10579
10579
|
kgWidth: 0
|
|
10580
10580
|
}), w = computed(() => {
|
|
10581
10581
|
var L;
|
|
@@ -10903,7 +10903,7 @@ const getProps$p = () => ({
|
|
|
10903
10903
|
o.store.setIsDeletingRequesting(o.formID, !1);
|
|
10904
10904
|
}
|
|
10905
10905
|
}
|
|
10906
|
-
function
|
|
10906
|
+
function K(L) {
|
|
10907
10907
|
var q, ee;
|
|
10908
10908
|
const B = (ee = (q = a == null ? void 0 : a.KgSubmit) == null ? void 0 : q["KgForm.Item"]) == null ? void 0 : ee[L.var_nam];
|
|
10909
10909
|
return isFunction$2(B) ? createVNode(KgForm.Item, {
|
|
@@ -10958,11 +10958,11 @@ const getProps$p = () => ({
|
|
|
10958
10958
|
ref: V
|
|
10959
10959
|
}, [k.value.length > 0 && createVNode(Row, {
|
|
10960
10960
|
gutter: 12
|
|
10961
|
-
}, _isSlot$8(L = k.value.map(
|
|
10961
|
+
}, _isSlot$8(L = k.value.map(K)) ? L : {
|
|
10962
10962
|
default: () => [L]
|
|
10963
10963
|
}), k.value.length > 0 && M.value.length > 0 && createVNode(Divider, null, null), M.value.length > 0 && createVNode(Row, {
|
|
10964
10964
|
gutter: 12
|
|
10965
|
-
}, _isSlot$8(B = M.value.map(
|
|
10965
|
+
}, _isSlot$8(B = M.value.map(K)) ? B : {
|
|
10966
10966
|
default: () => [B]
|
|
10967
10967
|
}), u.value && createVNode("div", {
|
|
10968
10968
|
style: "text-align: center; padding: 6px 0 12px;"
|
|
@@ -10975,8 +10975,8 @@ const getProps$p = () => ({
|
|
|
10975
10975
|
let L, B;
|
|
10976
10976
|
return createVNode("div", null, [createVNode(Button, {
|
|
10977
10977
|
type: "primary",
|
|
10978
|
-
ghost: !
|
|
10979
|
-
disabled:
|
|
10978
|
+
ghost: !N.value,
|
|
10979
|
+
disabled: N.value,
|
|
10980
10980
|
onClick: oe
|
|
10981
10981
|
}, _isSlot$8(L = n.t("kg.cancel")) ? L : {
|
|
10982
10982
|
default: () => [L]
|
|
@@ -11208,29 +11208,29 @@ const useKgTableStore = () => (store$4 || (store$4 = defineStore("KgTable", {
|
|
|
11208
11208
|
}).bind(null, pinia())), store$4);
|
|
11209
11209
|
function useKgTable(e) {
|
|
11210
11210
|
const t = useKgVar(e), r = useKgTableStore()(), a = computed(() => r.getIsRetrieving(t.formID)), n = computed(() => r.getSelectedRows(t.formID)), o = computed(() => r.getSelectedFirstRow(t.formID)), i = computed(() => r.getSelectedRow(t.formID)), s = computed(() => {
|
|
11211
|
-
var
|
|
11212
|
-
return ((
|
|
11211
|
+
var p;
|
|
11212
|
+
return ((p = t.varGridConfig.value) == null ? void 0 : p.mult_flg) === 1;
|
|
11213
11213
|
}), l = computed(() => {
|
|
11214
|
-
var
|
|
11215
|
-
return ((
|
|
11214
|
+
var p;
|
|
11215
|
+
return ((p = t.varGridConfig.value) == null ? void 0 : p.aut_load_flg) === 1;
|
|
11216
11216
|
}), c = computed(() => {
|
|
11217
|
-
var
|
|
11218
|
-
return !!((
|
|
11217
|
+
var p, _;
|
|
11218
|
+
return !!((p = t.varGridConfig.value) != null && p.id) && ((_ = t.varGridConfig.value) == null ? void 0 : _.show_bottom_left_flg) !== 0;
|
|
11219
11219
|
}), u = computed(() => {
|
|
11220
|
-
var
|
|
11221
|
-
return !!((
|
|
11220
|
+
var p, _;
|
|
11221
|
+
return !!((p = t.varGridConfig.value) != null && p.id) && ((_ = t.varGridConfig.value) == null ? void 0 : _.show_bottom_right_flg) !== 0;
|
|
11222
11222
|
}), d = computed(() => {
|
|
11223
|
-
var
|
|
11224
|
-
return (_ = (
|
|
11223
|
+
var p, _;
|
|
11224
|
+
return (_ = (p = t.varGridConfig.value) == null ? void 0 : p.id_clm) != null ? _ : "id";
|
|
11225
11225
|
}), m = computed(() => {
|
|
11226
|
-
var
|
|
11227
|
-
return JSON.parse((_ = (
|
|
11226
|
+
var p, _;
|
|
11227
|
+
return JSON.parse((_ = (p = t.varGridConfig.value) == null ? void 0 : p.pg_size_opts) != null ? _ : "[]");
|
|
11228
11228
|
}), v = computed(() => {
|
|
11229
|
-
var
|
|
11230
|
-
return (
|
|
11231
|
-
}),
|
|
11232
|
-
var
|
|
11233
|
-
return ((
|
|
11229
|
+
var p;
|
|
11230
|
+
return (p = t.varGridConfig.value) == null ? void 0 : p.pg_size_opt;
|
|
11231
|
+
}), T = computed(() => {
|
|
11232
|
+
var p;
|
|
11233
|
+
return ((p = t.varGridConfig.value) == null ? void 0 : p.prf_frm_id) || t.formID;
|
|
11234
11234
|
});
|
|
11235
11235
|
return {
|
|
11236
11236
|
formID: t.formID,
|
|
@@ -11246,7 +11246,7 @@ function useKgTable(e) {
|
|
|
11246
11246
|
id: d,
|
|
11247
11247
|
pageSizeOptions: m,
|
|
11248
11248
|
pageSizeOption: v,
|
|
11249
|
-
profileFormID:
|
|
11249
|
+
profileFormID: T,
|
|
11250
11250
|
onRowDoubleClick: onEventFactory(t.formID, r, "rowDoubleClick"),
|
|
11251
11251
|
onBeforeRetrieve: onEventFactory(t.formID, r, "beforeRetrieve"),
|
|
11252
11252
|
onRetrieve: onEventFactory(t.formID, r, "retrieve")
|
|
@@ -11273,15 +11273,15 @@ const getProps$n = () => ({
|
|
|
11273
11273
|
o.onSubmitSave(async () => {
|
|
11274
11274
|
var k;
|
|
11275
11275
|
try {
|
|
11276
|
-
await ((k =
|
|
11276
|
+
await ((k = T.value) == null ? void 0 : k.validate());
|
|
11277
11277
|
} catch (M) {
|
|
11278
11278
|
KgUtil.throwIfNotFormError(M);
|
|
11279
11279
|
}
|
|
11280
11280
|
return !1;
|
|
11281
11281
|
});
|
|
11282
11282
|
const l = computed(() => e.kgVarName ? n.store.getVarGridDetail(n.formID, e.kgVarName) : null), c = computed(() => n.store.getVarSubmitField(n.formID, e.kgVarName)), u = computed(() => {
|
|
11283
|
-
var k, M, E,
|
|
11284
|
-
return i.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && ((k = e.kgRow) == null ? void 0 : k[s.id.value]) === ((M = s.selectedRow.value) == null ? void 0 : M[s.id.value]) && (!!n.isCreating.value && ((E = c.value) == null ? void 0 : E.crt_flg) === 1 || !!n.isUpdating.value && ((
|
|
11283
|
+
var k, M, E, N, I, A;
|
|
11284
|
+
return i.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && ((k = e.kgRow) == null ? void 0 : k[s.id.value]) === ((M = s.selectedRow.value) == null ? void 0 : M[s.id.value]) && (!!n.isCreating.value && ((E = c.value) == null ? void 0 : E.crt_flg) === 1 || !!n.isUpdating.value && ((N = c.value) == null ? void 0 : N.upt_flg) === 1 || !!n.isCopying.value && ((I = c.value) == null ? void 0 : I.cpy_flg) === 1 || !!n.isDeleting.value && ((A = c.value) == null ? void 0 : A.del_flg) === 1);
|
|
11285
11285
|
}), d = computed(() => {
|
|
11286
11286
|
var k, M;
|
|
11287
11287
|
return i.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && ((k = e.kgRow) == null ? void 0 : k[s.id.value]) === ((M = s.selectedRow.value) == null ? void 0 : M[s.id.value]) && (!!n.isCreating.value && !!n.isCreatingRequesting.value || !!n.isUpdating.value && !!n.isUpdatingRequesting.value || !!n.isCopying.value && !!n.isCopyingRequesting.value || !!n.isDeleting.value && !!n.isDeletingRequesting.value);
|
|
@@ -11290,7 +11290,7 @@ const getProps$n = () => ({
|
|
|
11290
11290
|
let k = "kg-table-td";
|
|
11291
11291
|
return ((M = l.value) == null ? void 0 : M.align) === "center" ? k += " kg-table-td--center" : ((E = l.value) == null ? void 0 : E.align) === "right" && (k += " kg-table-td--right"), u.value && (k += " kg-table-td--submitting"), k;
|
|
11292
11292
|
}), v = computed(() => {
|
|
11293
|
-
var M, E,
|
|
11293
|
+
var M, E, N, I;
|
|
11294
11294
|
if (e.kgValue === KG_TABLE_TEMP_ID)
|
|
11295
11295
|
return "";
|
|
11296
11296
|
let k = e.kgValue;
|
|
@@ -11298,15 +11298,15 @@ const getProps$n = () => ({
|
|
|
11298
11298
|
case KG_TABLE_CELL_DISPLAY_TYPE.DESC:
|
|
11299
11299
|
{
|
|
11300
11300
|
const A = KgUtil.tryParseJSON((E = l.value) == null ? void 0 : E.display_type_properties);
|
|
11301
|
-
k = (I = (
|
|
11301
|
+
k = (I = (N = e.kgRow) == null ? void 0 : N[A.dscFieldName || `${e.kgVarName}_dsc`]) != null ? I : e.kgValue;
|
|
11302
11302
|
}
|
|
11303
11303
|
break;
|
|
11304
11304
|
}
|
|
11305
11305
|
return isString$1(k) && (k = k.replaceAll("\\n", `
|
|
11306
11306
|
`)), k;
|
|
11307
|
-
}),
|
|
11308
|
-
function
|
|
11309
|
-
var M, E,
|
|
11307
|
+
}), T = ref(null);
|
|
11308
|
+
function p(k) {
|
|
11309
|
+
var M, E, N;
|
|
11310
11310
|
if (k.detail === 1 && !(n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value))
|
|
11311
11311
|
switch ((M = l.value) == null ? void 0 : M.display_type) {
|
|
11312
11312
|
case KG_TABLE_CELL_DISPLAY_TYPE.UPDATE_LINK:
|
|
@@ -11316,7 +11316,7 @@ const getProps$n = () => ({
|
|
|
11316
11316
|
{
|
|
11317
11317
|
k.stopPropagation(), k.preventDefault();
|
|
11318
11318
|
const I = KgUtil.tryParseJSON((E = l.value) == null ? void 0 : E.display_type_properties);
|
|
11319
|
-
(
|
|
11319
|
+
(N = a.router.value) == null || N.push({
|
|
11320
11320
|
path: I.path,
|
|
11321
11321
|
query: e.kgRow
|
|
11322
11322
|
});
|
|
@@ -11326,9 +11326,9 @@ const getProps$n = () => ({
|
|
|
11326
11326
|
}
|
|
11327
11327
|
function _() {
|
|
11328
11328
|
}
|
|
11329
|
-
function
|
|
11329
|
+
function y() {
|
|
11330
11330
|
return createVNode(KgForm, {
|
|
11331
|
-
ref:
|
|
11331
|
+
ref: T,
|
|
11332
11332
|
model: i.model.value,
|
|
11333
11333
|
layout: "vertical",
|
|
11334
11334
|
wrapperCol: {
|
|
@@ -11348,9 +11348,9 @@ const getProps$n = () => ({
|
|
|
11348
11348
|
});
|
|
11349
11349
|
}
|
|
11350
11350
|
function b() {
|
|
11351
|
-
var k, M, E,
|
|
11351
|
+
var k, M, E, N, I, A, w, F, $, P;
|
|
11352
11352
|
if (u.value)
|
|
11353
|
-
return
|
|
11353
|
+
return y();
|
|
11354
11354
|
switch ((k = l.value) == null ? void 0 : k.display_type) {
|
|
11355
11355
|
case KG_TABLE_CELL_DISPLAY_TYPE.YN: {
|
|
11356
11356
|
const V = KgUtil.tryParseJSON((M = l.value) == null ? void 0 : M.display_type_properties);
|
|
@@ -11360,16 +11360,16 @@ const getProps$n = () => ({
|
|
|
11360
11360
|
}, null);
|
|
11361
11361
|
}
|
|
11362
11362
|
case KG_TABLE_CELL_DISPLAY_TYPE.ENUM: {
|
|
11363
|
-
const V = KgUtil.tryParseJSON((
|
|
11363
|
+
const V = KgUtil.tryParseJSON((N = l.value) == null ? void 0 : N.display_type_properties), D = isArrayLike(V) && V.find((O) => O.value === e.kgValue);
|
|
11364
11364
|
if (D) {
|
|
11365
11365
|
const O = n.t(D.varName).value;
|
|
11366
11366
|
return O ? createVNode(Tag, {
|
|
11367
11367
|
color: (I = D.color) != null ? I : "default"
|
|
11368
11368
|
}, _isSlot$7(O) ? O : {
|
|
11369
11369
|
default: () => [O]
|
|
11370
|
-
}) :
|
|
11370
|
+
}) : C();
|
|
11371
11371
|
} else
|
|
11372
|
-
return
|
|
11372
|
+
return C();
|
|
11373
11373
|
}
|
|
11374
11374
|
case KG_TABLE_CELL_DISPLAY_TYPE.DESC: {
|
|
11375
11375
|
const V = KgUtil.tryParseJSON((A = l.value) == null ? void 0 : A.display_type_properties);
|
|
@@ -11379,9 +11379,9 @@ const getProps$n = () => ({
|
|
|
11379
11379
|
color: (w = D == null ? void 0 : D.color) != null ? w : "default"
|
|
11380
11380
|
}, {
|
|
11381
11381
|
default: () => [v.value]
|
|
11382
|
-
}) :
|
|
11382
|
+
}) : C();
|
|
11383
11383
|
} else
|
|
11384
|
-
return
|
|
11384
|
+
return C();
|
|
11385
11385
|
}
|
|
11386
11386
|
case KG_TABLE_CELL_DISPLAY_TYPE.PROGRESS: {
|
|
11387
11387
|
const V = KgUtil.tryParseJSON((F = l.value) == null ? void 0 : F.display_type_properties);
|
|
@@ -11394,19 +11394,19 @@ const getProps$n = () => ({
|
|
|
11394
11394
|
case KG_TABLE_CELL_DISPLAY_TYPE.FILE_SIZE:
|
|
11395
11395
|
return KgUtil.getFileSize(e.kgValue);
|
|
11396
11396
|
case KG_TABLE_CELL_DISPLAY_TYPE.UPDATE_LINK:
|
|
11397
|
-
return
|
|
11397
|
+
return C(!0);
|
|
11398
11398
|
case KG_TABLE_CELL_DISPLAY_TYPE.ROUTE_LINK:
|
|
11399
|
-
return
|
|
11399
|
+
return C(!0);
|
|
11400
11400
|
default:
|
|
11401
|
-
return
|
|
11401
|
+
return C();
|
|
11402
11402
|
}
|
|
11403
11403
|
}
|
|
11404
|
-
function
|
|
11404
|
+
function C(k = !1) {
|
|
11405
11405
|
let M = "";
|
|
11406
11406
|
return k && !(n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value) && (M += "kg-table-td-update-link"), createVNode("pre", {
|
|
11407
11407
|
innerHTML: v.value,
|
|
11408
11408
|
class: M,
|
|
11409
|
-
onClick:
|
|
11409
|
+
onClick: p
|
|
11410
11410
|
}, null);
|
|
11411
11411
|
}
|
|
11412
11412
|
return () => createVNode("div", {
|
|
@@ -11499,8 +11499,8 @@ const getProps$m = () => ({
|
|
|
11499
11499
|
}) => {
|
|
11500
11500
|
const c = a == null ? void 0 : a.store.getVarGridConfig(a.formID);
|
|
11501
11501
|
return i = watch(l, (u) => {
|
|
11502
|
-
var d, m, v,
|
|
11503
|
-
u && (u.id = (d = c == null ? void 0 : c.id) != null ? d : null, u.frm_id = a == null ? void 0 : a.formID, u.aut_load_flg = (m = c == null ? void 0 : c.aut_load_flg) != null ? m : 0, u.mult_flg = (v = c == null ? void 0 : c.mult_flg) != null ? v : 0, u.show_check_column_flg = (
|
|
11502
|
+
var d, m, v, T, p, _, y, b, C, k, M;
|
|
11503
|
+
u && (u.id = (d = c == null ? void 0 : c.id) != null ? d : null, u.frm_id = a == null ? void 0 : a.formID, u.aut_load_flg = (m = c == null ? void 0 : c.aut_load_flg) != null ? m : 0, u.mult_flg = (v = c == null ? void 0 : c.mult_flg) != null ? v : 0, u.show_check_column_flg = (T = c == null ? void 0 : c.show_check_column_flg) != null ? T : 0, u.show_bottom_left_flg = (p = c == null ? void 0 : c.show_bottom_left_flg) != null ? p : 1, u.show_bottom_right_flg = (_ = c == null ? void 0 : c.show_bottom_right_flg) != null ? _ : 1, u.convert_sort_field_to_under_score_flg = (y = c == null ? void 0 : c.convert_sort_field_to_under_score_flg) != null ? y : 0, u.pg_size_opts = (b = c == null ? void 0 : c.pg_size_opts) != null ? b : "[10, 20, 50, 100]", u.pg_size_opt = (C = c == null ? void 0 : c.pg_size_opt) != null ? C : 10, u.cmd_prm = (k = c == null ? void 0 : c.cmd_prm) != null ? k : void 0, u.button_display_type = (M = c == null ? void 0 : c.button_display_type) != null ? M : KG_BUTTON_DISPLAY_TYPE.DEFAULT);
|
|
11504
11504
|
}, {
|
|
11505
11505
|
immediate: !0
|
|
11506
11506
|
}), !1;
|
|
@@ -11689,8 +11689,8 @@ const FORM_ID__VAR_GRID_MASTER__SAVE = "kg-table.VarGridMaster.Save", KgTableSet
|
|
|
11689
11689
|
return o.onOpen(async ({
|
|
11690
11690
|
model: i
|
|
11691
11691
|
}) => {
|
|
11692
|
-
var s, l, c, u, d, m, v,
|
|
11693
|
-
return i.value.grd_var_nam = `${(l = (s = n.currentVarGridMaster.value) == null ? void 0 : s.grd_var_nam) != null ? l : ""}_COPY`, i.value.frm_id = (u = (c = n.currentVarGridMaster.value) == null ? void 0 : c.frm_id) != null ? u : "", i.value.usr_id = (m = (d = n.currentVarGridMaster.value) == null ? void 0 : d.usr_id) != null ? m : "", i.value.grp_nam = (
|
|
11692
|
+
var s, l, c, u, d, m, v, T, p, _;
|
|
11693
|
+
return i.value.grd_var_nam = `${(l = (s = n.currentVarGridMaster.value) == null ? void 0 : s.grd_var_nam) != null ? l : ""}_COPY`, i.value.frm_id = (u = (c = n.currentVarGridMaster.value) == null ? void 0 : c.frm_id) != null ? u : "", i.value.usr_id = (m = (d = n.currentVarGridMaster.value) == null ? void 0 : d.usr_id) != null ? m : "", i.value.grp_nam = (T = (v = n.currentVarGridMaster.value) == null ? void 0 : v.grp_nam) != null ? T : "", i.value.varGridDetails = (_ = (p = n.currentVarGridMaster.value) == null ? void 0 : p.varGridDetails) != null ? _ : [], !1;
|
|
11694
11694
|
}), o.onBeforeOk(async ({
|
|
11695
11695
|
model: i
|
|
11696
11696
|
}) => (i.value, !1)), o.onOk(async () => (n.store.retrieve(n.formID), !1)), () => createVNode(KgSubmit, null, null);
|
|
@@ -11718,19 +11718,19 @@ const getProps$h = () => ({
|
|
|
11718
11718
|
} = _useServices(), s = ref(""), l = ref([]), c = computed(() => l.value.includes("1")), u = reactive({
|
|
11719
11719
|
visible: !1
|
|
11720
11720
|
}), d = computed(() => isNil(e.kgDisabled) ? !!n.isCreating.value || !!n.isCreating.value || !!n.isCreating.value || !!n.isCreating.value : e.kgDisabled), m = ref(!1);
|
|
11721
|
-
_useObserveMenuItemColumns(c), watch(c, (
|
|
11722
|
-
|
|
11721
|
+
_useObserveMenuItemColumns(c), watch(c, (C) => {
|
|
11722
|
+
C || (s.value = "");
|
|
11723
11723
|
}, {
|
|
11724
11724
|
immediate: !0
|
|
11725
11725
|
});
|
|
11726
|
-
function v(
|
|
11727
|
-
n.store.patchVarGridDetail(n.formID,
|
|
11728
|
-
vis_flg:
|
|
11726
|
+
function v(C) {
|
|
11727
|
+
n.store.patchVarGridDetail(n.formID, C.var_nam, {
|
|
11728
|
+
vis_flg: C.vis_flg === 1 ? 0 : 1
|
|
11729
11729
|
});
|
|
11730
11730
|
}
|
|
11731
|
-
async function
|
|
11732
|
-
var
|
|
11733
|
-
if (((
|
|
11731
|
+
async function T() {
|
|
11732
|
+
var C;
|
|
11733
|
+
if (((C = n.currentVarGridMaster.value) == null ? void 0 : C.cust_lvl) === KG_CUSTOM_LEVEL.L0) {
|
|
11734
11734
|
KgUtil.confirm({
|
|
11735
11735
|
content: a.t("kg.KgTable.canNotUpdateSystemVarGridMaster"),
|
|
11736
11736
|
okButtonProps: {
|
|
@@ -11748,7 +11748,7 @@ const getProps$h = () => ({
|
|
|
11748
11748
|
})
|
|
11749
11749
|
}), message.success(a.t("kg.updateSuccess"));
|
|
11750
11750
|
}
|
|
11751
|
-
async function
|
|
11751
|
+
async function p() {
|
|
11752
11752
|
m.value = !0, await nextTick(), n.store.setIsCopying(FORM_ID__VAR_GRID_MASTER__SAVE, !0);
|
|
11753
11753
|
}
|
|
11754
11754
|
function _() {
|
|
@@ -11758,7 +11758,7 @@ const getProps$h = () => ({
|
|
|
11758
11758
|
popupClassName: "kg-table-setting-submenu-popup-columns"
|
|
11759
11759
|
}, {
|
|
11760
11760
|
default: () => {
|
|
11761
|
-
var
|
|
11761
|
+
var C;
|
|
11762
11762
|
return createVNode("div", {
|
|
11763
11763
|
class: "columns"
|
|
11764
11764
|
}, [createVNode(Input, {
|
|
@@ -11767,7 +11767,7 @@ const getProps$h = () => ({
|
|
|
11767
11767
|
allowClear: !0
|
|
11768
11768
|
}, null), createVNode("ul", {
|
|
11769
11769
|
class: "ant-dropdown-menu ant-dropdown-menu-vertical"
|
|
11770
|
-
}, [(
|
|
11770
|
+
}, [(C = n.currentVarGridDetails.value) == null ? void 0 : C.map((k) => createVNode("li", {
|
|
11771
11771
|
class: "ant-dropdown-menu-item ant-dropdown-menu-item-only-child",
|
|
11772
11772
|
onClick: (M) => {
|
|
11773
11773
|
M.preventDefault(), M.stopPropagation(), v(k);
|
|
@@ -11790,7 +11790,7 @@ const getProps$h = () => ({
|
|
|
11790
11790
|
expandIcon: () => createVNode(CaretRightOutlined$1, null, null)
|
|
11791
11791
|
});
|
|
11792
11792
|
}
|
|
11793
|
-
function
|
|
11793
|
+
function y() {
|
|
11794
11794
|
return createVNode(Menu.SubMenu, {
|
|
11795
11795
|
key: "2",
|
|
11796
11796
|
title: a.t("kg.KgTable.varGridMasters"),
|
|
@@ -11798,12 +11798,12 @@ const getProps$h = () => ({
|
|
|
11798
11798
|
}, {
|
|
11799
11799
|
default: () => {
|
|
11800
11800
|
var M;
|
|
11801
|
-
let
|
|
11801
|
+
let C, k;
|
|
11802
11802
|
return createVNode(Fragment, null, [(M = n.varGridMasters.value) == null ? void 0 : M.map((E) => {
|
|
11803
|
-
var
|
|
11803
|
+
var N;
|
|
11804
11804
|
return createVNode(Menu.Item, {
|
|
11805
11805
|
key: E.id,
|
|
11806
|
-
class: E.id === ((
|
|
11806
|
+
class: E.id === ((N = n.currentVarGridMaster.value) == null ? void 0 : N.id) ? "selected" : "",
|
|
11807
11807
|
"kg-var_nam": E.grd_var_nam,
|
|
11808
11808
|
onClick: () => n.store.setCurrentVarGridMasterID(n.formID, E.id)
|
|
11809
11809
|
}, {
|
|
@@ -11811,12 +11811,12 @@ const getProps$h = () => ({
|
|
|
11811
11811
|
});
|
|
11812
11812
|
}), createVNode(Menu.Divider, null, null), createVNode(Menu.Item, {
|
|
11813
11813
|
key: "save-grid-view",
|
|
11814
|
-
onClick:
|
|
11815
|
-
}, _isSlot$5(
|
|
11816
|
-
default: () => [
|
|
11814
|
+
onClick: T
|
|
11815
|
+
}, _isSlot$5(C = a.t("kg.KgTable.saveVarGridMaster")) ? C : {
|
|
11816
|
+
default: () => [C]
|
|
11817
11817
|
}), createVNode(Menu.Item, {
|
|
11818
11818
|
key: "save-grid-view-as",
|
|
11819
|
-
onClick:
|
|
11819
|
+
onClick: p
|
|
11820
11820
|
}, _isSlot$5(k = a.t("kg.KgTable.saveVarGridMasterAs")) ? k : {
|
|
11821
11821
|
default: () => [k]
|
|
11822
11822
|
})]);
|
|
@@ -11825,14 +11825,14 @@ const getProps$h = () => ({
|
|
|
11825
11825
|
});
|
|
11826
11826
|
}
|
|
11827
11827
|
function b() {
|
|
11828
|
-
let
|
|
11828
|
+
let C;
|
|
11829
11829
|
return createVNode(Menu.Item, {
|
|
11830
11830
|
key: "config-var-grid-master",
|
|
11831
11831
|
onClick: () => {
|
|
11832
11832
|
u.visible = !0;
|
|
11833
11833
|
}
|
|
11834
|
-
}, _isSlot$5(
|
|
11835
|
-
default: () => [
|
|
11834
|
+
}, _isSlot$5(C = a.t("kg.KgTable.config")) ? C : {
|
|
11835
|
+
default: () => [C]
|
|
11836
11836
|
});
|
|
11837
11837
|
}
|
|
11838
11838
|
return () => createVNode(Fragment, null, [createVNode(Dropdown, {
|
|
@@ -11845,14 +11845,14 @@ const getProps$h = () => ({
|
|
|
11845
11845
|
overlay: () => createVNode(Menu, {
|
|
11846
11846
|
triggerSubMenuAction: "click",
|
|
11847
11847
|
openKeys: l.value,
|
|
11848
|
-
"onUpdate:openKeys": (
|
|
11848
|
+
"onUpdate:openKeys": (C) => l.value = C,
|
|
11849
11849
|
selectable: !1
|
|
11850
11850
|
}, {
|
|
11851
|
-
default: () => [_(),
|
|
11851
|
+
default: () => [_(), y(), b()]
|
|
11852
11852
|
})
|
|
11853
11853
|
}), u.visible && createVNode(KgTableSettingConfigModal, {
|
|
11854
11854
|
visible: u.visible,
|
|
11855
|
-
"onUpdate:visible": (
|
|
11855
|
+
"onUpdate:visible": (C) => u.visible = C,
|
|
11856
11856
|
hostFormID: n.formID
|
|
11857
11857
|
}, null), m.value && createVNode(KgTableSettingVarGridMasterSaveAs, null, null)]);
|
|
11858
11858
|
}
|
|
@@ -11862,7 +11862,7 @@ function _useColumns(e) {
|
|
|
11862
11862
|
var l;
|
|
11863
11863
|
return ((l = r.store.getVarGridConfig(r.formID)) == null ? void 0 : l.show_check_column_flg) === 1;
|
|
11864
11864
|
}), i = computed(() => {
|
|
11865
|
-
var m, v,
|
|
11865
|
+
var m, v, T;
|
|
11866
11866
|
const l = (m = n.store.getTableWidth(r.formID)) != null ? m : 0, c = (v = r.store.getCurrentVisibleVarGridDetailsTotalWidth(r.formID)) != null ? v : 0, u = r.store.getCurrentVisibleVarGridDetails(r.formID), d = [{
|
|
11867
11867
|
dataIndex: "index",
|
|
11868
11868
|
width: KG_TABLE_TD_INDEX_WIDTH,
|
|
@@ -11870,44 +11870,44 @@ function _useColumns(e) {
|
|
|
11870
11870
|
align: "center",
|
|
11871
11871
|
className: "kg-table-td-index",
|
|
11872
11872
|
customRender: ({
|
|
11873
|
-
index:
|
|
11874
|
-
}) =>
|
|
11875
|
-
}, ...(
|
|
11876
|
-
const _ =
|
|
11877
|
-
function
|
|
11878
|
-
return
|
|
11873
|
+
index: p
|
|
11874
|
+
}) => p + 1
|
|
11875
|
+
}, ...(T = u == null ? void 0 : u.map((p) => {
|
|
11876
|
+
const _ = p.var_nam;
|
|
11877
|
+
function y() {
|
|
11878
|
+
return p.width === "auto" ? "auto" : Number(p.width) || KG_TABLE_TD_DEFAULT_WIDTH;
|
|
11879
11879
|
}
|
|
11880
11880
|
function b() {
|
|
11881
11881
|
return r.t(_).value;
|
|
11882
11882
|
}
|
|
11883
|
-
function
|
|
11884
|
-
return
|
|
11883
|
+
function C() {
|
|
11884
|
+
return p.ord === -1 ? null : p.ord === 0 ? "ascend" : p.ord === 1 ? "descend" : null;
|
|
11885
11885
|
}
|
|
11886
11886
|
function k() {
|
|
11887
|
-
if (
|
|
11887
|
+
if (p.fix_left_flg === 1)
|
|
11888
11888
|
return "left";
|
|
11889
|
-
if (
|
|
11889
|
+
if (p.fix_right_flg === 1)
|
|
11890
11890
|
return "right";
|
|
11891
11891
|
}
|
|
11892
11892
|
function M() {
|
|
11893
11893
|
var I, A, w, F;
|
|
11894
|
-
return !((A = (I = t == null ? void 0 : t.value) == null ? void 0 : I.KgTable) != null && A.kgDisabled || isNil((F = (w = t == null ? void 0 : t.value) == null ? void 0 : w.KgTable) == null ? void 0 : F.kgDisabled) && e.kgDisabled ||
|
|
11894
|
+
return !((A = (I = t == null ? void 0 : t.value) == null ? void 0 : I.KgTable) != null && A.kgDisabled || isNil((F = (w = t == null ? void 0 : t.value) == null ? void 0 : w.KgTable) == null ? void 0 : F.kgDisabled) && e.kgDisabled || p.ord_flg !== 1 || r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value);
|
|
11895
11895
|
}
|
|
11896
11896
|
function E() {
|
|
11897
|
-
return ["left", "center", "right"].includes(
|
|
11897
|
+
return ["left", "center", "right"].includes(p.align || "") ? p.align : "left";
|
|
11898
11898
|
}
|
|
11899
|
-
const
|
|
11899
|
+
const N = y();
|
|
11900
11900
|
return {
|
|
11901
11901
|
dataIndex: _,
|
|
11902
11902
|
title: b(),
|
|
11903
|
-
width:
|
|
11904
|
-
resizable: typeof
|
|
11903
|
+
width: N,
|
|
11904
|
+
resizable: typeof N == "number",
|
|
11905
11905
|
minWidth: KG_TABLE_TD_MIN_WIDTH,
|
|
11906
11906
|
maxWidth: KG_TABLE_TD_MAX_WIDTH,
|
|
11907
11907
|
fixed: k(),
|
|
11908
11908
|
sorter: M(),
|
|
11909
11909
|
align: E(),
|
|
11910
|
-
defaultSortOrder:
|
|
11910
|
+
defaultSortOrder: C(),
|
|
11911
11911
|
customHeaderCell: () => ({
|
|
11912
11912
|
"kg-frm_id": r.formID,
|
|
11913
11913
|
"kg-var_nam": _
|
|
@@ -11922,8 +11922,8 @@ function _useColumns(e) {
|
|
|
11922
11922
|
};
|
|
11923
11923
|
}
|
|
11924
11924
|
};
|
|
11925
|
-
})) != null ?
|
|
11926
|
-
return (c === 0 || l > c && !(u != null && u.find((
|
|
11925
|
+
})) != null ? T : []];
|
|
11926
|
+
return (c === 0 || l > c && !(u != null && u.find((p) => p.width === "auto"))) && d.push({
|
|
11927
11927
|
width: "auto",
|
|
11928
11928
|
customRender: () => null
|
|
11929
11929
|
}), d;
|
|
@@ -11972,15 +11972,15 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
|
11972
11972
|
}) {
|
|
11973
11973
|
var fe;
|
|
11974
11974
|
const a = inject("$dayjs", dayjs), n = inject(DI_KG_VAR__KG_SLOTS, null), o = inject(DI_KG_VAR__KG_PROPS, null), i = useKg(), s = useKgVar(), l = useKgSearch(), c = useKgButton(), u = useKgTable(), d = useKgSubmit();
|
|
11975
|
-
l.onSearch((
|
|
11976
|
-
G(
|
|
11975
|
+
l.onSearch((K) => {
|
|
11976
|
+
G(K);
|
|
11977
11977
|
}), l.onReset(() => {
|
|
11978
11978
|
G(!0);
|
|
11979
11979
|
}), u.store.$onAction(async ({
|
|
11980
|
-
name:
|
|
11980
|
+
name: K,
|
|
11981
11981
|
args: U
|
|
11982
11982
|
}) => {
|
|
11983
|
-
switch (
|
|
11983
|
+
switch (K) {
|
|
11984
11984
|
case "setRowSelect":
|
|
11985
11985
|
if (U[0] === s.formID) {
|
|
11986
11986
|
const z = U[1], W = U[2], J = z[u.id.value];
|
|
@@ -11997,58 +11997,58 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
|
11997
11997
|
}
|
|
11998
11998
|
});
|
|
11999
11999
|
const m = ref(!1), v = ref([]), {
|
|
12000
|
-
columns:
|
|
12001
|
-
scrollX:
|
|
12000
|
+
columns: T,
|
|
12001
|
+
scrollX: p
|
|
12002
12002
|
} = _useColumns(e), {
|
|
12003
12003
|
isLoading: _
|
|
12004
|
-
} = _useLoading(),
|
|
12005
|
-
_useResizeObserver(
|
|
12004
|
+
} = _useLoading(), y = ref(null);
|
|
12005
|
+
_useResizeObserver(y);
|
|
12006
12006
|
const b = computed(() => {
|
|
12007
|
-
var
|
|
12008
|
-
return (U = (
|
|
12009
|
-
}),
|
|
12007
|
+
var K, U;
|
|
12008
|
+
return (U = (K = s.varButtonSearch.value) == null ? void 0 : K.cmd) != null ? U : null;
|
|
12009
|
+
}), C = computed(() => {
|
|
12010
12010
|
var U, z, W, J, L, B, q;
|
|
12011
|
-
let
|
|
12011
|
+
let K = {
|
|
12012
12012
|
pageNo: P.pageIndex,
|
|
12013
12013
|
pageSize: P.pageSize,
|
|
12014
12014
|
...V,
|
|
12015
12015
|
...(z = (U = l.model) == null ? void 0 : U.value) != null ? z : {}
|
|
12016
12016
|
};
|
|
12017
|
-
return s.varButtonSearch.value && (
|
|
12018
|
-
...
|
|
12017
|
+
return s.varButtonSearch.value && (K = {
|
|
12018
|
+
...K,
|
|
12019
12019
|
...KgVarUtil.parseCommandParameter((J = (W = s.varButtonSearch.value) == null ? void 0 : W.cmd_prm) != null ? J : "")
|
|
12020
|
-
}), (L = s.varGridConfig.value) != null && L.cmd_prm && (
|
|
12021
|
-
...
|
|
12020
|
+
}), (L = s.varGridConfig.value) != null && L.cmd_prm && (K = {
|
|
12021
|
+
...K,
|
|
12022
12022
|
...KgVarUtil.parseCommandParameter((B = s.varGridConfig.value.cmd_prm) != null ? B : "")
|
|
12023
|
-
}), ((q = s.varGridConfig.value) == null ? void 0 : q.convert_sort_field_to_under_score_flg) === 1 &&
|
|
12023
|
+
}), ((q = s.varGridConfig.value) == null ? void 0 : q.convert_sort_field_to_under_score_flg) === 1 && K.column && (K.column = snakeCase$1(K.column)), K;
|
|
12024
12024
|
}), k = computed(() => _.value || !!s.isCreating.value || !!s.isUpdating.value || !!s.isCopying.value || !!s.isDeleting.value || P.total === 0), M = computed(() => _.value || !!s.isCreating.value || !!s.isUpdating.value || !!s.isCopying.value || !!s.isDeleting.value), E = computed(() => {
|
|
12025
|
-
var
|
|
12026
|
-
return !!((
|
|
12027
|
-
}),
|
|
12028
|
-
var
|
|
12029
|
-
return ((
|
|
12025
|
+
var K;
|
|
12026
|
+
return !!((K = n == null ? void 0 : n.KgTable) != null && K.expandedRowRender);
|
|
12027
|
+
}), N = computed(() => {
|
|
12028
|
+
var K;
|
|
12029
|
+
return ((K = s.varGridConfig.value) == null ? void 0 : K.show_check_column_flg) === 1;
|
|
12030
12030
|
}), I = computed(() => {
|
|
12031
|
-
if (!!
|
|
12031
|
+
if (!!N.value)
|
|
12032
12032
|
return {
|
|
12033
12033
|
fixed: "left",
|
|
12034
12034
|
columnWidth: KG_TABLE_TD_CHECK_WIDTH,
|
|
12035
12035
|
hideSelectAll: !u.isMultiSelect.value,
|
|
12036
12036
|
selectedRowKeys: $,
|
|
12037
12037
|
preserveSelectedRowKeys: !1,
|
|
12038
|
-
getCheckboxProps: (
|
|
12038
|
+
getCheckboxProps: (K) => ({
|
|
12039
12039
|
disabled: !!s.isCreating.value || !!s.isUpdating.value || !!s.isCopying.value || !!s.isDeleting.value
|
|
12040
12040
|
}),
|
|
12041
|
-
onSelect: (
|
|
12042
|
-
onChange: (
|
|
12041
|
+
onSelect: (K) => Q(K),
|
|
12042
|
+
onChange: (K) => u.isMultiSelect.value && H(K)
|
|
12043
12043
|
};
|
|
12044
12044
|
}), A = computed(() => {
|
|
12045
12045
|
var U;
|
|
12046
|
-
let
|
|
12047
|
-
return ((U = s.varGridConfig.value) == null ? void 0 : U.show_bottom_border_flg) === 1 && (
|
|
12046
|
+
let K = "kg-table";
|
|
12047
|
+
return ((U = s.varGridConfig.value) == null ? void 0 : U.show_bottom_border_flg) === 1 && (K += " kg-table--bottom-border"), !u.isShowBottomLeft.value && !u.isShowBottomRight.value && (K += " kg-table--no-bottom"), d.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && (s.isCreating.value || s.isUpdating.value || s.isCopying.value || s.isDeleting.value) && (K += " kg-table--submitting"), K;
|
|
12048
12048
|
}), w = computed(() => {
|
|
12049
12049
|
var U;
|
|
12050
|
-
let
|
|
12051
|
-
return ((U = s.varGridConfig.value) == null ? void 0 : U.show_bottom_border_flg) === 1 && (
|
|
12050
|
+
let K = "kg-table-bottom";
|
|
12051
|
+
return ((U = s.varGridConfig.value) == null ? void 0 : U.show_bottom_border_flg) === 1 && (K += " kg-table-bottom--border"), K;
|
|
12052
12052
|
}), F = ref([]), $ = (fe = u.store.getSelectedRowKeys(s.formID)) != null ? fe : ref([]), P = reactive({
|
|
12053
12053
|
pageIndex: 1,
|
|
12054
12054
|
pageSize: 10,
|
|
@@ -12056,39 +12056,39 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
|
12056
12056
|
}), V = reactive({
|
|
12057
12057
|
column: void 0,
|
|
12058
12058
|
order: void 0
|
|
12059
|
-
}), D = watch(u.pageSizeOption, (
|
|
12060
|
-
|
|
12059
|
+
}), D = watch(u.pageSizeOption, (K) => {
|
|
12060
|
+
K && (setTimeout(() => D()), P.pageSize = K), m.value = !0, KgLogger.debug(`${s.formID} | KgTable | isReadReady: ${m.value}`);
|
|
12061
12061
|
});
|
|
12062
|
-
watch(u.pageSizeOptions, (
|
|
12063
|
-
|
|
12064
|
-
}), watch([b, u.isReadAutomatically, l.isReady], ([
|
|
12065
|
-
|
|
12062
|
+
watch(u.pageSizeOptions, (K) => {
|
|
12063
|
+
K.length > 0 && !K.includes(P.pageSize) && (P.pageSize = u.pageSizeOption.value);
|
|
12064
|
+
}), watch([b, u.isReadAutomatically, l.isReady], ([K, U, z]) => {
|
|
12065
|
+
K && U && z && !u.store.getIsRetrieved(s.formID) && G(!0);
|
|
12066
12066
|
}, {
|
|
12067
12067
|
immediate: !0
|
|
12068
|
-
}), watch(s.isCreating, (
|
|
12069
|
-
|
|
12068
|
+
}), watch(s.isCreating, (K, U) => {
|
|
12069
|
+
K === !0 ? O() : K === !1 && U === !0 && R();
|
|
12070
12070
|
}), onUnmounted(() => {
|
|
12071
12071
|
u.store.dispose(s.formID);
|
|
12072
12072
|
});
|
|
12073
12073
|
function O() {
|
|
12074
12074
|
if (d.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE) {
|
|
12075
|
-
const
|
|
12075
|
+
const K = {
|
|
12076
12076
|
[u.id.value]: KG_TABLE_TEMP_ID
|
|
12077
12077
|
};
|
|
12078
|
-
F.value = [
|
|
12078
|
+
F.value = [K, ...F.value], u.store.setSelectedRows(s.formID, [K]);
|
|
12079
12079
|
}
|
|
12080
12080
|
}
|
|
12081
12081
|
function R() {
|
|
12082
|
-
const
|
|
12083
|
-
|
|
12082
|
+
const K = F.value.find((U) => U[u.id.value] === KG_TABLE_TEMP_ID);
|
|
12083
|
+
K && (F.value = without$1(F.value, K), u.store.setSelectedRows(s.formID, []));
|
|
12084
12084
|
}
|
|
12085
|
-
function x(
|
|
12085
|
+
function x(K, U) {
|
|
12086
12086
|
if (!(!!s.isCreating.value || !!s.isUpdating.value || !!s.isCopying.value || !!s.isDeleting.value) && !!I.value) {
|
|
12087
12087
|
if (!U) {
|
|
12088
12088
|
u.store.setSelectedRows(s.formID, []);
|
|
12089
12089
|
return;
|
|
12090
12090
|
}
|
|
12091
|
-
switch (
|
|
12091
|
+
switch (K == null ? void 0 : K.detail) {
|
|
12092
12092
|
case 1:
|
|
12093
12093
|
u.store.setSelectedRows(s.formID, [U]);
|
|
12094
12094
|
break;
|
|
@@ -12100,7 +12100,7 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
|
12100
12100
|
}
|
|
12101
12101
|
}
|
|
12102
12102
|
}
|
|
12103
|
-
function G(
|
|
12103
|
+
function G(K = !1) {
|
|
12104
12104
|
KgLogger.debug(`${s.formID} | KgTable | retrieve() | \u8FDB\u5165\u65B9\u6CD5.`);
|
|
12105
12105
|
const U = watch(m, (W) => {
|
|
12106
12106
|
W && (setTimeout(() => U()), z());
|
|
@@ -12115,9 +12115,9 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
|
12115
12115
|
});
|
|
12116
12116
|
return;
|
|
12117
12117
|
}
|
|
12118
|
-
|
|
12118
|
+
K && (P.pageIndex = 1), u.store.setIsRetrieving(s.formID, !0);
|
|
12119
12119
|
try {
|
|
12120
|
-
const L = KgUtil.parseParams(
|
|
12120
|
+
const L = KgUtil.parseParams(C.value, u.profileFormID.value, a), B = ref({});
|
|
12121
12121
|
switch (await u.store.emit(s.formID, "beforeRetrieve", {
|
|
12122
12122
|
params: L,
|
|
12123
12123
|
response: B
|
|
@@ -12149,24 +12149,24 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
|
12149
12149
|
}
|
|
12150
12150
|
}
|
|
12151
12151
|
}
|
|
12152
|
-
function H(
|
|
12153
|
-
u.store.setSelectedRows(s.formID,
|
|
12152
|
+
function H(K) {
|
|
12153
|
+
u.store.setSelectedRows(s.formID, K.map((U) => {
|
|
12154
12154
|
var z;
|
|
12155
12155
|
return (z = F.value) == null ? void 0 : z.find((W) => W[u.id.value] === U);
|
|
12156
12156
|
}).filter((U) => !!U));
|
|
12157
12157
|
}
|
|
12158
|
-
function Q(
|
|
12158
|
+
function Q(K) {
|
|
12159
12159
|
var U, z;
|
|
12160
12160
|
switch (u.isMultiSelect.value) {
|
|
12161
12161
|
case !0:
|
|
12162
12162
|
{
|
|
12163
|
-
const W =
|
|
12163
|
+
const W = K[u.id.value];
|
|
12164
12164
|
$.value.includes(W) ? $.value = without$1($.value, W) : $.value = [...(U = $.value) != null ? U : [], W];
|
|
12165
12165
|
}
|
|
12166
12166
|
break;
|
|
12167
12167
|
case !1:
|
|
12168
12168
|
{
|
|
12169
|
-
const W =
|
|
12169
|
+
const W = K[u.id.value];
|
|
12170
12170
|
(z = $.value) != null && z.includes(W) ? $.value = [] : $.value = [W];
|
|
12171
12171
|
}
|
|
12172
12172
|
break;
|
|
@@ -12176,10 +12176,10 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
|
12176
12176
|
return (J = F.value) == null ? void 0 : J.find((L) => L[u.id.value] === W);
|
|
12177
12177
|
}).filter((W) => !!W));
|
|
12178
12178
|
}
|
|
12179
|
-
function X(
|
|
12180
|
-
U.width =
|
|
12179
|
+
function X(K, U) {
|
|
12180
|
+
U.width = K, s.store.setVarGridDetailWidth(s.formID, U.dataIndex, K);
|
|
12181
12181
|
}
|
|
12182
|
-
async function Y(
|
|
12182
|
+
async function Y(K, U, z, W) {
|
|
12183
12183
|
var J;
|
|
12184
12184
|
switch (W.action) {
|
|
12185
12185
|
case "sort":
|
|
@@ -12191,29 +12191,29 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
|
12191
12191
|
break;
|
|
12192
12192
|
}
|
|
12193
12193
|
}
|
|
12194
|
-
function te(
|
|
12194
|
+
function te(K, U) {
|
|
12195
12195
|
var W;
|
|
12196
12196
|
const z = U[u.id.value];
|
|
12197
12197
|
switch ((W = s.varGridConfig.value) == null ? void 0 : W.expand_accordion_flg) {
|
|
12198
12198
|
case 0:
|
|
12199
|
-
|
|
12199
|
+
K ? v.value = uniq([...v.value, z]) : v.value = without$1(v.value, z);
|
|
12200
12200
|
break;
|
|
12201
12201
|
default:
|
|
12202
|
-
|
|
12202
|
+
K ? v.value = [z] : v.value = [];
|
|
12203
12203
|
break;
|
|
12204
12204
|
}
|
|
12205
12205
|
}
|
|
12206
|
-
function ae(
|
|
12207
|
-
U !== P.pageSize ? (P.pageIndex = 1, P.pageSize = U) : P.pageIndex =
|
|
12206
|
+
function ae(K, U) {
|
|
12207
|
+
U !== P.pageSize ? (P.pageIndex = 1, P.pageSize = U) : P.pageIndex = K, G();
|
|
12208
12208
|
}
|
|
12209
|
-
function oe(
|
|
12210
|
-
u.store.setSelectedRows(s.formID, [
|
|
12209
|
+
function oe(K) {
|
|
12210
|
+
u.store.setSelectedRows(s.formID, [K].map((U) => {
|
|
12211
12211
|
var z;
|
|
12212
12212
|
return (z = F.value) == null ? void 0 : z.find((W) => W[u.id.value] === U);
|
|
12213
12213
|
}).filter((U) => !!U)), c.click(s.formID, KG_BUTTON_TYPE.UPDATE);
|
|
12214
12214
|
}
|
|
12215
12215
|
function ue({
|
|
12216
|
-
title:
|
|
12216
|
+
title: K,
|
|
12217
12217
|
column: U
|
|
12218
12218
|
}) {
|
|
12219
12219
|
switch (U.dataIndex) {
|
|
@@ -12230,23 +12230,23 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
|
12230
12230
|
}, null);
|
|
12231
12231
|
}
|
|
12232
12232
|
default:
|
|
12233
|
-
return createVNode("pre", null, [
|
|
12233
|
+
return createVNode("pre", null, [K]);
|
|
12234
12234
|
}
|
|
12235
12235
|
}
|
|
12236
12236
|
function de() {
|
|
12237
|
-
var
|
|
12238
|
-
return (
|
|
12237
|
+
var K;
|
|
12238
|
+
return (K = n == null ? void 0 : n.KgTable) != null && K["summary.bodyCell"] ? createVNode(TableSummary, {
|
|
12239
12239
|
fixed: "bottom"
|
|
12240
12240
|
}, {
|
|
12241
12241
|
default: () => [createVNode(TableSummary.Row, null, {
|
|
12242
12242
|
default: () => [E.value && createVNode(TableSummary.Cell, {
|
|
12243
12243
|
index: 0
|
|
12244
|
-
}, null),
|
|
12244
|
+
}, null), N.value && createVNode(TableSummary.Cell, {
|
|
12245
12245
|
index: E.value ? 1 : 0
|
|
12246
|
-
}, null),
|
|
12246
|
+
}, null), T.value.map((U, z) => {
|
|
12247
12247
|
const W = s.store.getVarGridDetail(s.formID, U.dataIndex);
|
|
12248
12248
|
let J = z;
|
|
12249
|
-
return E.value &&
|
|
12249
|
+
return E.value && N.value ? J += 2 : (E.value || N.value) && (J += 1), createVNode(TableSummary.Cell, {
|
|
12250
12250
|
index: J
|
|
12251
12251
|
}, {
|
|
12252
12252
|
default: () => {
|
|
@@ -12263,7 +12263,7 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
|
12263
12263
|
}) : null;
|
|
12264
12264
|
}
|
|
12265
12265
|
function re({
|
|
12266
|
-
column:
|
|
12266
|
+
column: K,
|
|
12267
12267
|
index: U,
|
|
12268
12268
|
record: z,
|
|
12269
12269
|
text: W,
|
|
@@ -12271,10 +12271,10 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
|
12271
12271
|
}) {
|
|
12272
12272
|
var q;
|
|
12273
12273
|
let L = "";
|
|
12274
|
-
|
|
12274
|
+
K.customRender ? L = K.customRender({
|
|
12275
12275
|
index: U,
|
|
12276
12276
|
record: z,
|
|
12277
|
-
column:
|
|
12277
|
+
column: K,
|
|
12278
12278
|
text: W,
|
|
12279
12279
|
value: J,
|
|
12280
12280
|
renderIndex: U
|
|
@@ -12282,13 +12282,13 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
|
12282
12282
|
const B = createVNode(KgTableCell, {
|
|
12283
12283
|
kgRow: z,
|
|
12284
12284
|
kgValue: L,
|
|
12285
|
-
kgVarName:
|
|
12285
|
+
kgVarName: K.dataIndex,
|
|
12286
12286
|
onKgUpdateLinkClick: () => oe(z)
|
|
12287
12287
|
}, null);
|
|
12288
12288
|
if ((q = n == null ? void 0 : n.KgTable) != null && q.bodyCell) {
|
|
12289
|
-
const ee =
|
|
12289
|
+
const ee = K.dataIndex ? s.store.getVarGridDetail(s.formID, K.dataIndex) : null;
|
|
12290
12290
|
return n.KgTable.bodyCell({
|
|
12291
|
-
column:
|
|
12291
|
+
column: K,
|
|
12292
12292
|
index: U,
|
|
12293
12293
|
record: z,
|
|
12294
12294
|
text: W,
|
|
@@ -12304,21 +12304,21 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
|
12304
12304
|
return !u.isReadAutomatically.value && !u.store.getIsRetrieved(s.formID) ? i.t("kg.KgTable.emptyText") : i.t("kg.emptyText");
|
|
12305
12305
|
}
|
|
12306
12306
|
return () => {
|
|
12307
|
-
var
|
|
12307
|
+
var K;
|
|
12308
12308
|
return createVNode("div", {
|
|
12309
12309
|
class: A.value,
|
|
12310
12310
|
"kg-frm_id": s.formID,
|
|
12311
|
-
ref:
|
|
12311
|
+
ref: y
|
|
12312
12312
|
}, [createVNode(Table, {
|
|
12313
12313
|
class: "kg-flex-table",
|
|
12314
12314
|
size: "small",
|
|
12315
12315
|
scroll: {
|
|
12316
|
-
x:
|
|
12316
|
+
x: p.value,
|
|
12317
12317
|
y: "auto"
|
|
12318
12318
|
},
|
|
12319
12319
|
pagination: !1,
|
|
12320
12320
|
showSorterTooltip: !1,
|
|
12321
|
-
columns:
|
|
12321
|
+
columns: T.value,
|
|
12322
12322
|
dataSource: F.value,
|
|
12323
12323
|
loading: _.value,
|
|
12324
12324
|
rowKey: u.id.value,
|
|
@@ -12335,7 +12335,7 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
|
12335
12335
|
headerCell: ue,
|
|
12336
12336
|
bodyCell: re,
|
|
12337
12337
|
emptyText: ce,
|
|
12338
|
-
expandedRowRender: (
|
|
12338
|
+
expandedRowRender: (K = n == null ? void 0 : n.KgTable) == null ? void 0 : K.expandedRowRender,
|
|
12339
12339
|
summary: de
|
|
12340
12340
|
}), (u.isShowBottomLeft.value || u.isShowBottomRight.value) && createVNode("div", {
|
|
12341
12341
|
class: w.value
|
|
@@ -12393,8 +12393,8 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
|
12393
12393
|
attrs: t
|
|
12394
12394
|
}) {
|
|
12395
12395
|
const r = useKg(), a = useKgVar(), n = useKgTable(), o = computed(() => a.store.getVarButton(a.formID, e.kgVarName)), i = computed(() => {
|
|
12396
|
-
var u, d, m, v,
|
|
12397
|
-
return a.isCreating.value || a.isUpdating.value || a.isDeleting.value || n.isRetrieving.value || ((u = o.value) == null ? void 0 : u.dis_no_select_flg) === 1 && ((m = (d = n.selectedRows.value) == null ? void 0 : d.length) != null ? m : 0) === 0 || ((v = o.value) == null ? void 0 : v.dis_mult_select_flg) === 1 && ((
|
|
12396
|
+
var u, d, m, v, T, p, _, y;
|
|
12397
|
+
return a.isCreating.value || a.isUpdating.value || a.isDeleting.value || n.isRetrieving.value || ((u = o.value) == null ? void 0 : u.dis_no_select_flg) === 1 && ((m = (d = n.selectedRows.value) == null ? void 0 : d.length) != null ? m : 0) === 0 || ((v = o.value) == null ? void 0 : v.dis_mult_select_flg) === 1 && ((p = (T = n.selectedRows.value) == null ? void 0 : T.length) != null ? p : 0) > 1 || ((_ = o.value) == null ? void 0 : _.permission_type) === 2 && !r.p((y = o.value) == null ? void 0 : y.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
|
|
12398
12398
|
});
|
|
12399
12399
|
async function s() {
|
|
12400
12400
|
e.onKgClick && await e.onKgClick() || a.store.setIsCopying(a.formID, !0);
|
|
@@ -12572,8 +12572,8 @@ const KgButtonCreate = defineComponent({
|
|
|
12572
12572
|
attrs: a
|
|
12573
12573
|
}) {
|
|
12574
12574
|
const n = useKg(), o = useKgVar(), i = useKgButton(), s = useKgTable(), l = useKgSubmit(), c = computed(() => o.store.getVarButton(o.formID, e.kgVarName)), u = computed(() => {
|
|
12575
|
-
var
|
|
12576
|
-
return o.isUpdating.value || o.isCopying.value || o.isDeleting.value || s.isRetrieving.value || ((
|
|
12575
|
+
var C, k, M, E, N, I, A, w;
|
|
12576
|
+
return o.isUpdating.value || o.isCopying.value || o.isDeleting.value || s.isRetrieving.value || ((C = c.value) == null ? void 0 : C.dis_no_select_flg) === 1 && ((M = (k = s.selectedRows.value) == null ? void 0 : k.length) != null ? M : 0) === 0 || ((E = c.value) == null ? void 0 : E.dis_mult_select_flg) === 1 && ((I = (N = s.selectedRows.value) == null ? void 0 : N.length) != null ? I : 0) > 1 || ((A = c.value) == null ? void 0 : A.permission_type) === 2 && !n.p((w = c.value) == null ? void 0 : w.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
|
|
12577
12577
|
}), d = computed(() => !!o.isCreatingRequesting.value);
|
|
12578
12578
|
async function m() {
|
|
12579
12579
|
e.onKgClick && await e.onKgClick() || o.store.setIsCreating(o.formID, !0);
|
|
@@ -12581,10 +12581,10 @@ const KgButtonCreate = defineComponent({
|
|
|
12581
12581
|
function v() {
|
|
12582
12582
|
i.store.emit(o.formID, "submitSave");
|
|
12583
12583
|
}
|
|
12584
|
-
function
|
|
12584
|
+
function T() {
|
|
12585
12585
|
i.store.emit(o.formID, "submitCancel");
|
|
12586
12586
|
}
|
|
12587
|
-
function
|
|
12587
|
+
function p() {
|
|
12588
12588
|
return e.kgIcon ? createVNode("span", {
|
|
12589
12589
|
class: "anticon"
|
|
12590
12590
|
}, [createVNode(Icon, {
|
|
@@ -12594,19 +12594,19 @@ const KgButtonCreate = defineComponent({
|
|
|
12594
12594
|
function _() {
|
|
12595
12595
|
return e.kgText ? e.kgText : n.t("kg.create");
|
|
12596
12596
|
}
|
|
12597
|
-
function
|
|
12598
|
-
var
|
|
12597
|
+
function y() {
|
|
12598
|
+
var C, k, M, E;
|
|
12599
12599
|
return l.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && o.isCreating.value ? null : createVNode(Button, {
|
|
12600
12600
|
type: "primary",
|
|
12601
12601
|
disabled: u.value,
|
|
12602
12602
|
onClick: m,
|
|
12603
12603
|
class: a.class,
|
|
12604
|
-
"kg-id": (
|
|
12604
|
+
"kg-id": (C = c.value) == null ? void 0 : C.id,
|
|
12605
12605
|
"kg-frm_id": (k = c.value) == null ? void 0 : k.frm_id,
|
|
12606
12606
|
"kg-var_nam": (M = c.value) == null ? void 0 : M.var_nam,
|
|
12607
12607
|
"kg-cmd": (E = c.value) == null ? void 0 : E.cmd
|
|
12608
12608
|
}, {
|
|
12609
|
-
default: () => [
|
|
12609
|
+
default: () => [p(), _()]
|
|
12610
12610
|
});
|
|
12611
12611
|
}
|
|
12612
12612
|
function b() {
|
|
@@ -12620,20 +12620,20 @@ const KgButtonCreate = defineComponent({
|
|
|
12620
12620
|
type: "primary",
|
|
12621
12621
|
ghost: !d.value,
|
|
12622
12622
|
disabled: d.value,
|
|
12623
|
-
onClick:
|
|
12623
|
+
onClick: T
|
|
12624
12624
|
}, {
|
|
12625
12625
|
default: () => [createVNode(StopOutlined$1, null, null), n.t("kg.cancel")]
|
|
12626
12626
|
})]);
|
|
12627
12627
|
}
|
|
12628
|
-
return () => createVNode(Fragment, null, [
|
|
12628
|
+
return () => createVNode(Fragment, null, [y(), b()]);
|
|
12629
12629
|
}
|
|
12630
12630
|
}), KgButtonDelete = defineComponent({
|
|
12631
12631
|
name: "KgButtonDelete",
|
|
12632
12632
|
props: getProps$f(),
|
|
12633
12633
|
setup(e) {
|
|
12634
12634
|
const t = useKg(), r = useKgVar(), a = useKgTable(), n = computed(() => r.store.getVarButton(r.formID, e.kgVarName)), o = computed(() => {
|
|
12635
|
-
var c, u, d, m, v,
|
|
12636
|
-
return r.isCreating.value || r.isUpdating.value || r.isCopying.value || a.isRetrieving.value || ((c = n.value) == null ? void 0 : c.dis_no_select_flg) === 1 && ((d = (u = a.selectedRows.value) == null ? void 0 : u.length) != null ? d : 0) === 0 || ((m = n.value) == null ? void 0 : m.dis_mult_select_flg) === 1 && ((
|
|
12635
|
+
var c, u, d, m, v, T, p, _;
|
|
12636
|
+
return r.isCreating.value || r.isUpdating.value || r.isCopying.value || a.isRetrieving.value || ((c = n.value) == null ? void 0 : c.dis_no_select_flg) === 1 && ((d = (u = a.selectedRows.value) == null ? void 0 : u.length) != null ? d : 0) === 0 || ((m = n.value) == null ? void 0 : m.dis_mult_select_flg) === 1 && ((T = (v = a.selectedRows.value) == null ? void 0 : v.length) != null ? T : 0) > 1 || ((p = n.value) == null ? void 0 : p.permission_type) === 2 && !t.p((_ = n.value) == null ? void 0 : _.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
|
|
12637
12637
|
});
|
|
12638
12638
|
async function i() {
|
|
12639
12639
|
e.onKgClick && await e.onKgClick() || r.store.setIsDeleting(r.formID, !0);
|
|
@@ -12670,29 +12670,29 @@ const KgButtonCreate = defineComponent({
|
|
|
12670
12670
|
props: getProps$f(),
|
|
12671
12671
|
setup(e) {
|
|
12672
12672
|
const t = useKg(), r = useKgVar(), a = useKgSearch(), n = useKgTable(), o = computed(() => r.store.getVarButton(r.formID, e.kgVarName)), i = computed(() => {
|
|
12673
|
-
var
|
|
12674
|
-
return o.value ? (
|
|
12673
|
+
var T, p;
|
|
12674
|
+
return o.value ? (p = (T = o.value) == null ? void 0 : T.cmd) != null ? p : "" : null;
|
|
12675
12675
|
}), s = computed(() => {
|
|
12676
|
-
var
|
|
12677
|
-
return (
|
|
12676
|
+
var T, p;
|
|
12677
|
+
return (p = (T = o.value) == null ? void 0 : T.cmd_method) != null ? p : "GET";
|
|
12678
12678
|
}), l = computed(() => {
|
|
12679
|
-
var
|
|
12680
|
-
let
|
|
12681
|
-
...(
|
|
12679
|
+
var p, _, y, b, C, k;
|
|
12680
|
+
let T = {
|
|
12681
|
+
...(p = a.model.value) != null ? p : {}
|
|
12682
12682
|
};
|
|
12683
|
-
return o.value && (
|
|
12684
|
-
...
|
|
12685
|
-
...KgVarUtil.parseCommandParameter((
|
|
12686
|
-
}), (b = r.varGridConfig.value) != null && b.cmd_prm && (
|
|
12687
|
-
...
|
|
12688
|
-
...KgVarUtil.parseCommandParameter((
|
|
12689
|
-
}), ((k = r.varGridConfig.value) == null ? void 0 : k.convert_sort_field_to_under_score_flg) === 1 &&
|
|
12683
|
+
return o.value && (T = {
|
|
12684
|
+
...T,
|
|
12685
|
+
...KgVarUtil.parseCommandParameter((y = (_ = o.value) == null ? void 0 : _.cmd_prm) != null ? y : "")
|
|
12686
|
+
}), (b = r.varGridConfig.value) != null && b.cmd_prm && (T = {
|
|
12687
|
+
...T,
|
|
12688
|
+
...KgVarUtil.parseCommandParameter((C = r.varGridConfig.value.cmd_prm) != null ? C : "")
|
|
12689
|
+
}), ((k = r.varGridConfig.value) == null ? void 0 : k.convert_sort_field_to_under_score_flg) === 1 && T.column && (T.column = snakeCase$1(T.column)), T;
|
|
12690
12690
|
}), c = computed(() => {
|
|
12691
|
-
var
|
|
12692
|
-
return r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || n.isRetrieving.value || ((
|
|
12691
|
+
var T, p, _, y, b, C, k, M;
|
|
12692
|
+
return r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || n.isRetrieving.value || ((T = o.value) == null ? void 0 : T.dis_no_select_flg) === 1 && ((_ = (p = n.selectedRows.value) == null ? void 0 : p.length) != null ? _ : 0) === 0 || ((y = o.value) == null ? void 0 : y.dis_mult_select_flg) === 1 && ((C = (b = n.selectedRows.value) == null ? void 0 : b.length) != null ? C : 0) > 1 || ((k = o.value) == null ? void 0 : k.permission_type) === 2 && !t.p((M = o.value) == null ? void 0 : M.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
|
|
12693
12693
|
}), u = ref(!1);
|
|
12694
12694
|
async function d() {
|
|
12695
|
-
var
|
|
12695
|
+
var T, p, _;
|
|
12696
12696
|
if (!(e.onKgClick && await e.onKgClick())) {
|
|
12697
12697
|
if (!i.value) {
|
|
12698
12698
|
KgLogger.error("[KgButton] '\u5BFC\u51FA\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
|
|
@@ -12702,7 +12702,7 @@ const KgButtonCreate = defineComponent({
|
|
|
12702
12702
|
}
|
|
12703
12703
|
u.value = !0;
|
|
12704
12704
|
try {
|
|
12705
|
-
const
|
|
12705
|
+
const y = await httpClient().request({
|
|
12706
12706
|
method: s.value,
|
|
12707
12707
|
url: i.value,
|
|
12708
12708
|
params: l.value,
|
|
@@ -12711,9 +12711,9 @@ const KgButtonCreate = defineComponent({
|
|
|
12711
12711
|
joinParamsToUrl: !0,
|
|
12712
12712
|
isTransformResponse: !1
|
|
12713
12713
|
});
|
|
12714
|
-
KgUtil.downloadFile(
|
|
12715
|
-
} catch (
|
|
12716
|
-
throw
|
|
12714
|
+
KgUtil.downloadFile(y, `${r.t((p = (T = o.value) == null ? void 0 : T.export_excel_filename) != null ? p : "export").value}.${(_ = o.value) == null ? void 0 : _.export_excel_suffix}`);
|
|
12715
|
+
} catch (y) {
|
|
12716
|
+
throw y;
|
|
12717
12717
|
} finally {
|
|
12718
12718
|
u.value = !1;
|
|
12719
12719
|
}
|
|
@@ -12730,17 +12730,17 @@ const KgButtonCreate = defineComponent({
|
|
|
12730
12730
|
return e.kgText ? e.kgText : t.t("kg.export");
|
|
12731
12731
|
}
|
|
12732
12732
|
return () => {
|
|
12733
|
-
var
|
|
12733
|
+
var T, p, _, y;
|
|
12734
12734
|
return createVNode(Button, {
|
|
12735
12735
|
type: "primary",
|
|
12736
12736
|
disabled: c.value,
|
|
12737
12737
|
ghost: !e.kgPrimary && !c.value,
|
|
12738
12738
|
loading: u.value,
|
|
12739
12739
|
onClick: d,
|
|
12740
|
-
"kg-id": (
|
|
12741
|
-
"kg-frm_id": (
|
|
12740
|
+
"kg-id": (T = o.value) == null ? void 0 : T.id,
|
|
12741
|
+
"kg-frm_id": (p = o.value) == null ? void 0 : p.frm_id,
|
|
12742
12742
|
"kg-var_nam": (_ = o.value) == null ? void 0 : _.var_nam,
|
|
12743
|
-
"kg-cmd": (
|
|
12743
|
+
"kg-cmd": (y = o.value) == null ? void 0 : y.cmd
|
|
12744
12744
|
}, {
|
|
12745
12745
|
default: () => [m(), v()]
|
|
12746
12746
|
});
|
|
@@ -12755,81 +12755,80 @@ const KgButtonCreate = defineComponent({
|
|
|
12755
12755
|
attrs: r
|
|
12756
12756
|
}) {
|
|
12757
12757
|
const a = useKg(), n = useKgVar(), o = useKgSearch(), i = useKgTable(), s = computed(() => n.store.getVarButton(n.formID, e.kgVarName)), l = computed(() => {
|
|
12758
|
-
var
|
|
12759
|
-
return s.value ? (
|
|
12758
|
+
var _, y;
|
|
12759
|
+
return s.value ? (y = (_ = s.value) == null ? void 0 : _.cmd) != null ? y : "" : null;
|
|
12760
12760
|
}), c = computed(() => {
|
|
12761
|
-
var
|
|
12762
|
-
return (
|
|
12763
|
-
})
|
|
12764
|
-
|
|
12765
|
-
|
|
12766
|
-
|
|
12767
|
-
...(_ = o.model.value) != null ? _ : {}
|
|
12761
|
+
var _, y;
|
|
12762
|
+
return (y = (_ = s.value) == null ? void 0 : _.cmd_method) != null ? y : "POST";
|
|
12763
|
+
}), u = computed(() => {
|
|
12764
|
+
var y, b, C;
|
|
12765
|
+
let _ = {
|
|
12766
|
+
...(y = o.model.value) != null ? y : {}
|
|
12768
12767
|
};
|
|
12769
|
-
return s.value && (
|
|
12770
|
-
...
|
|
12771
|
-
...KgVarUtil.parseCommandParameter((
|
|
12772
|
-
}),
|
|
12773
|
-
})
|
|
12774
|
-
|
|
12775
|
-
|
|
12776
|
-
|
|
12777
|
-
|
|
12778
|
-
async function m(g) {
|
|
12768
|
+
return s.value && (_ = {
|
|
12769
|
+
..._,
|
|
12770
|
+
...KgVarUtil.parseCommandParameter((C = (b = s.value) == null ? void 0 : b.cmd_prm) != null ? C : "")
|
|
12771
|
+
}), _;
|
|
12772
|
+
}), d = computed(() => {
|
|
12773
|
+
var _, y, b, C, k, M, E, N;
|
|
12774
|
+
return n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value || i.isRetrieving.value || ((_ = s.value) == null ? void 0 : _.dis_no_select_flg) === 1 && ((b = (y = i.selectedRows.value) == null ? void 0 : y.length) != null ? b : 0) === 0 || ((C = s.value) == null ? void 0 : C.dis_mult_select_flg) === 1 && ((M = (k = i.selectedRows.value) == null ? void 0 : k.length) != null ? M : 0) > 1 || ((E = s.value) == null ? void 0 : E.permission_type) === 2 && !a.p((N = s.value) == null ? void 0 : N.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
|
|
12775
|
+
}), m = ref(!1);
|
|
12776
|
+
async function v(_) {
|
|
12779
12777
|
if (!l.value)
|
|
12780
12778
|
return KgLogger.error("[KgButton] '\u5BFC\u5165\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
|
|
12781
12779
|
VarButton: s.value
|
|
12782
12780
|
}), !1;
|
|
12783
|
-
|
|
12781
|
+
m.value = !0;
|
|
12784
12782
|
try {
|
|
12785
|
-
const
|
|
12786
|
-
|
|
12783
|
+
const y = new FormData();
|
|
12784
|
+
y.append("file", _), await httpClient().axiosInstance.request({
|
|
12787
12785
|
method: c.value,
|
|
12788
12786
|
baseURL: window._CONFIG.domianURL,
|
|
12789
12787
|
url: l.value,
|
|
12790
|
-
|
|
12788
|
+
params: KgUtil.parseParams(u.value),
|
|
12789
|
+
data: y,
|
|
12791
12790
|
headers: {
|
|
12792
12791
|
"Content-Type": "multipart/form-data;charset=UTF-8",
|
|
12793
12792
|
ignoreCancelToken: !0
|
|
12794
12793
|
}
|
|
12795
12794
|
}), message.success(a.t("kg.importSuccess")), o.search(!0);
|
|
12796
|
-
} catch (
|
|
12797
|
-
throw
|
|
12795
|
+
} catch (y) {
|
|
12796
|
+
throw y;
|
|
12798
12797
|
} finally {
|
|
12799
|
-
|
|
12798
|
+
m.value = !1;
|
|
12800
12799
|
}
|
|
12801
12800
|
return !1;
|
|
12802
12801
|
}
|
|
12803
|
-
function
|
|
12804
|
-
return
|
|
12802
|
+
function T() {
|
|
12803
|
+
return m.value ? createVNode(LoadingOutlined$1, null, null) : e.kgIcon ? createVNode("span", {
|
|
12805
12804
|
class: "anticon"
|
|
12806
12805
|
}, [createVNode(Icon, {
|
|
12807
12806
|
icon: e.kgIcon
|
|
12808
12807
|
}, null)]) : createVNode(DownloadOutlined$1, null, null);
|
|
12809
12808
|
}
|
|
12810
|
-
function
|
|
12809
|
+
function p() {
|
|
12811
12810
|
return e.kgText ? e.kgText : a.t("kg.import");
|
|
12812
12811
|
}
|
|
12813
12812
|
return () => createVNode(Upload, {
|
|
12814
12813
|
name: "file",
|
|
12815
12814
|
showUploadList: !1,
|
|
12816
|
-
beforeUpload:
|
|
12817
|
-
disabled:
|
|
12815
|
+
beforeUpload: v,
|
|
12816
|
+
disabled: m.value
|
|
12818
12817
|
}, {
|
|
12819
12818
|
default: () => {
|
|
12820
|
-
var
|
|
12819
|
+
var _, y, b, C;
|
|
12821
12820
|
return [createVNode(Button, {
|
|
12822
12821
|
class: r.class,
|
|
12823
12822
|
type: "primary",
|
|
12824
|
-
disabled:
|
|
12825
|
-
ghost: !e.kgPrimary && !
|
|
12826
|
-
loading:
|
|
12827
|
-
"kg-id": (
|
|
12828
|
-
"kg-frm_id": (
|
|
12829
|
-
"kg-var_nam": (
|
|
12830
|
-
"kg-cmd": (
|
|
12823
|
+
disabled: d.value,
|
|
12824
|
+
ghost: !e.kgPrimary && !d.value,
|
|
12825
|
+
loading: m.value,
|
|
12826
|
+
"kg-id": (_ = s.value) == null ? void 0 : _.id,
|
|
12827
|
+
"kg-frm_id": (y = s.value) == null ? void 0 : y.frm_id,
|
|
12828
|
+
"kg-var_nam": (b = s.value) == null ? void 0 : b.var_nam,
|
|
12829
|
+
"kg-cmd": (C = s.value) == null ? void 0 : C.cmd
|
|
12831
12830
|
}, {
|
|
12832
|
-
default: () => [
|
|
12831
|
+
default: () => [T(), p()]
|
|
12833
12832
|
})];
|
|
12834
12833
|
}
|
|
12835
12834
|
});
|
|
@@ -12845,8 +12844,8 @@ const KgButtonCreate = defineComponent({
|
|
|
12845
12844
|
var m, v;
|
|
12846
12845
|
return (v = (m = n.value) == null ? void 0 : m.cmd_method) != null ? v : "GET";
|
|
12847
12846
|
}), s = computed(() => {
|
|
12848
|
-
var m, v,
|
|
12849
|
-
return r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || a.isRetrieving.value || ((m = n.value) == null ? void 0 : m.dis_no_select_flg) === 1 && ((
|
|
12847
|
+
var m, v, T, p, _, y, b, C;
|
|
12848
|
+
return r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || a.isRetrieving.value || ((m = n.value) == null ? void 0 : m.dis_no_select_flg) === 1 && ((T = (v = a.selectedRows.value) == null ? void 0 : v.length) != null ? T : 0) === 0 || ((p = n.value) == null ? void 0 : p.dis_mult_select_flg) === 1 && ((y = (_ = a.selectedRows.value) == null ? void 0 : _.length) != null ? y : 0) > 1 || ((b = n.value) == null ? void 0 : b.permission_type) === 2 && !t.p((C = n.value) == null ? void 0 : C.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
|
|
12850
12849
|
}), l = ref(!1);
|
|
12851
12850
|
async function c() {
|
|
12852
12851
|
var m;
|
|
@@ -12887,7 +12886,7 @@ const KgButtonCreate = defineComponent({
|
|
|
12887
12886
|
return e.kgText ? e.kgText : t.t("kg.downloadImportTemplate");
|
|
12888
12887
|
}
|
|
12889
12888
|
return () => {
|
|
12890
|
-
var m, v,
|
|
12889
|
+
var m, v, T, p;
|
|
12891
12890
|
return createVNode(Button, {
|
|
12892
12891
|
type: "primary",
|
|
12893
12892
|
disabled: s.value,
|
|
@@ -12896,8 +12895,8 @@ const KgButtonCreate = defineComponent({
|
|
|
12896
12895
|
onClick: c,
|
|
12897
12896
|
"kg-id": (m = n.value) == null ? void 0 : m.id,
|
|
12898
12897
|
"kg-frm_id": (v = n.value) == null ? void 0 : v.frm_id,
|
|
12899
|
-
"kg-var_nam": (
|
|
12900
|
-
"kg-cmd": (
|
|
12898
|
+
"kg-var_nam": (T = n.value) == null ? void 0 : T.var_nam,
|
|
12899
|
+
"kg-cmd": (p = n.value) == null ? void 0 : p.cmd
|
|
12901
12900
|
}, {
|
|
12902
12901
|
default: () => [u(), d()]
|
|
12903
12902
|
});
|
|
@@ -12908,11 +12907,11 @@ const KgButtonCreate = defineComponent({
|
|
|
12908
12907
|
props: getProps$f(),
|
|
12909
12908
|
setup(e) {
|
|
12910
12909
|
const t = useKg(), r = useKgVar(), a = useKgSearch(), n = useKgTable(), o = computed(() => r.store.getVarButton(r.formID, e.kgVarName)), i = computed(() => {
|
|
12911
|
-
var u, d, m, v,
|
|
12912
|
-
return r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || n.isRetrieving.value || ((u = o.value) == null ? void 0 : u.dis_no_select_flg) === 1 && ((m = (d = n.selectedRows.value) == null ? void 0 : d.length) != null ? m : 0) === 0 || ((v = o.value) == null ? void 0 : v.dis_mult_select_flg) === 1 && ((
|
|
12910
|
+
var u, d, m, v, T, p, _, y;
|
|
12911
|
+
return r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || n.isRetrieving.value || ((u = o.value) == null ? void 0 : u.dis_no_select_flg) === 1 && ((m = (d = n.selectedRows.value) == null ? void 0 : d.length) != null ? m : 0) === 0 || ((v = o.value) == null ? void 0 : v.dis_mult_select_flg) === 1 && ((p = (T = n.selectedRows.value) == null ? void 0 : T.length) != null ? p : 0) > 1 || ((_ = o.value) == null ? void 0 : _.permission_type) === 2 && !t.p((y = o.value) == null ? void 0 : y.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
|
|
12913
12912
|
});
|
|
12914
12913
|
async function s() {
|
|
12915
|
-
var v,
|
|
12914
|
+
var v, T, p;
|
|
12916
12915
|
if (e.onKgClick && await e.onKgClick())
|
|
12917
12916
|
return;
|
|
12918
12917
|
const u = (v = e.kgButton) == null ? void 0 : v.cmd;
|
|
@@ -12924,29 +12923,29 @@ const KgButtonCreate = defineComponent({
|
|
|
12924
12923
|
}
|
|
12925
12924
|
let d = null;
|
|
12926
12925
|
const m = async () => {
|
|
12927
|
-
var
|
|
12926
|
+
var y, b, C, k, M, E;
|
|
12928
12927
|
d == null || d.showLoading(), r.store.setIsOtherRequesting(r.formID, !0);
|
|
12929
12928
|
const _ = n.selectedRows.value;
|
|
12930
12929
|
try {
|
|
12931
12930
|
await httpClient().request({
|
|
12932
|
-
method: (b = (
|
|
12931
|
+
method: (b = (y = e.kgButton) == null ? void 0 : y.cmd_method) != null ? b : "POST",
|
|
12933
12932
|
url: u,
|
|
12934
|
-
params: KgVarUtil.parseCommandParameter((k = (
|
|
12933
|
+
params: KgVarUtil.parseCommandParameter((k = (C = e.kgButton) == null ? void 0 : C.cmd_prm) != null ? k : ""),
|
|
12935
12934
|
data: _ != null ? _ : []
|
|
12936
12935
|
}), ((M = e.kgButton) == null ? void 0 : M.reload_all_after_done_flg) === 1 && (((E = e.kgButton) == null ? void 0 : E.re_select_after_reload_flg) !== 0 && n.onRetrieve(async ({
|
|
12937
|
-
datas:
|
|
12936
|
+
datas: N
|
|
12938
12937
|
}) => {
|
|
12939
|
-
const I =
|
|
12938
|
+
const I = N.value, A = intersectionWith$1(I, _ != null ? _ : [], (w, F) => (w == null ? void 0 : w[n.id.value]) === (F == null ? void 0 : F[n.id.value]));
|
|
12940
12939
|
return A.length > 0 && n.store.setSelectedRows(r.formID, A), !1;
|
|
12941
12940
|
}, !0), a.search(!0));
|
|
12942
|
-
} catch (
|
|
12943
|
-
console.error(
|
|
12941
|
+
} catch (N) {
|
|
12942
|
+
console.error(N);
|
|
12944
12943
|
} finally {
|
|
12945
12944
|
r.store.setIsOtherRequesting(r.formID, !1), d == null || d.hideLoading();
|
|
12946
12945
|
}
|
|
12947
12946
|
};
|
|
12948
|
-
if (((
|
|
12949
|
-
const _ = KgUtil.tryParseJSON((
|
|
12947
|
+
if (((T = e.kgButton) == null ? void 0 : T.show_modal_flg) === 1) {
|
|
12948
|
+
const _ = KgUtil.tryParseJSON((p = e.kgButton) == null ? void 0 : p.modal_props);
|
|
12950
12949
|
typeof _.content == "string" && (_.content = r.t(_.content).value), d = KgUtil.confirm({
|
|
12951
12950
|
onOk: () => m(),
|
|
12952
12951
|
..._
|
|
@@ -13030,18 +13029,18 @@ const KgButtonCreate = defineComponent({
|
|
|
13030
13029
|
}) {
|
|
13031
13030
|
const n = useKg(), o = useKgVar(), i = useKgTable(), s = useKgButton(), l = useKgSubmit();
|
|
13032
13031
|
s.store.$onAction(async ({
|
|
13033
|
-
name:
|
|
13032
|
+
name: C,
|
|
13034
13033
|
args: k
|
|
13035
13034
|
}) => {
|
|
13036
|
-
switch (
|
|
13035
|
+
switch (C) {
|
|
13037
13036
|
case "click":
|
|
13038
13037
|
k[0] === o.formID && await m();
|
|
13039
13038
|
break;
|
|
13040
13039
|
}
|
|
13041
13040
|
});
|
|
13042
13041
|
const c = computed(() => o.store.getVarButton(o.formID, e.kgVarName)), u = computed(() => {
|
|
13043
|
-
var
|
|
13044
|
-
return o.isCreating.value || o.isCopying.value || o.isDeleting.value || ((
|
|
13042
|
+
var C, k, M, E, N, I, A, w;
|
|
13043
|
+
return o.isCreating.value || o.isCopying.value || o.isDeleting.value || ((C = c.value) == null ? void 0 : C.dis_no_select_flg) === 1 && ((M = (k = i.selectedRows.value) == null ? void 0 : k.length) != null ? M : 0) === 0 || ((E = c.value) == null ? void 0 : E.dis_mult_select_flg) === 1 && ((I = (N = i.selectedRows.value) == null ? void 0 : N.length) != null ? I : 0) > 1 || ((A = c.value) == null ? void 0 : A.permission_type) === 2 && !n.p((w = c.value) == null ? void 0 : w.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
|
|
13045
13044
|
}), d = computed(() => !!o.isUpdatingRequesting.value);
|
|
13046
13045
|
async function m() {
|
|
13047
13046
|
e.onKgClick && await e.onKgClick() || await s.store.emit(o.formID, "updateBeforeClick", {
|
|
@@ -13052,10 +13051,10 @@ const KgButtonCreate = defineComponent({
|
|
|
13052
13051
|
function v() {
|
|
13053
13052
|
s.store.emit(o.formID, "submitSave");
|
|
13054
13053
|
}
|
|
13055
|
-
function
|
|
13054
|
+
function T() {
|
|
13056
13055
|
s.store.emit(o.formID, "submitCancel");
|
|
13057
13056
|
}
|
|
13058
|
-
function
|
|
13057
|
+
function p() {
|
|
13059
13058
|
return e.kgIcon ? createVNode("span", {
|
|
13060
13059
|
class: "anticon"
|
|
13061
13060
|
}, [createVNode(Icon, {
|
|
@@ -13065,20 +13064,20 @@ const KgButtonCreate = defineComponent({
|
|
|
13065
13064
|
function _() {
|
|
13066
13065
|
return e.kgText ? e.kgText : n.t("kg.update");
|
|
13067
13066
|
}
|
|
13068
|
-
function
|
|
13069
|
-
var
|
|
13067
|
+
function y() {
|
|
13068
|
+
var C, k, M, E;
|
|
13070
13069
|
return l.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && o.isUpdating.value ? null : createVNode(Button, {
|
|
13071
13070
|
type: "primary",
|
|
13072
13071
|
disabled: u.value,
|
|
13073
13072
|
ghost: !e.kgPrimary && !u.value,
|
|
13074
13073
|
onClick: m,
|
|
13075
13074
|
class: a.class,
|
|
13076
|
-
"kg-id": (
|
|
13075
|
+
"kg-id": (C = c.value) == null ? void 0 : C.id,
|
|
13077
13076
|
"kg-frm_id": (k = c.value) == null ? void 0 : k.frm_id,
|
|
13078
13077
|
"kg-var_nam": (M = c.value) == null ? void 0 : M.var_nam,
|
|
13079
13078
|
"kg-cmd": (E = c.value) == null ? void 0 : E.cmd
|
|
13080
13079
|
}, {
|
|
13081
|
-
default: () => [
|
|
13080
|
+
default: () => [p(), _()]
|
|
13082
13081
|
});
|
|
13083
13082
|
}
|
|
13084
13083
|
function b() {
|
|
@@ -13092,12 +13091,12 @@ const KgButtonCreate = defineComponent({
|
|
|
13092
13091
|
type: "primary",
|
|
13093
13092
|
ghost: !d.value,
|
|
13094
13093
|
disabled: d.value,
|
|
13095
|
-
onClick:
|
|
13094
|
+
onClick: T
|
|
13096
13095
|
}, {
|
|
13097
13096
|
default: () => [createVNode(StopOutlined$1, null, null), n.t("kg.cancel")]
|
|
13098
13097
|
})]);
|
|
13099
13098
|
}
|
|
13100
|
-
return () => createVNode(Fragment, null, [
|
|
13099
|
+
return () => createVNode(Fragment, null, [y(), b()]);
|
|
13101
13100
|
}
|
|
13102
13101
|
}), KgButton_Item = "";
|
|
13103
13102
|
function _isSlot$4(e) {
|
|
@@ -13166,22 +13165,22 @@ const getProps$e = () => ({
|
|
|
13166
13165
|
props: getProps$e(),
|
|
13167
13166
|
setup(e) {
|
|
13168
13167
|
const t = inject(DI_KG_VAR__KG_SLOTS, null), r = inject(DI_KG_VAR__KG_PROPS, null), a = useKg(), n = useKgVar(), o = useKgButton(), i = computed(() => !1);
|
|
13169
|
-
function s(
|
|
13170
|
-
return o.store.emit(n.formID, "click",
|
|
13168
|
+
function s(p) {
|
|
13169
|
+
return o.store.emit(n.formID, "click", p);
|
|
13171
13170
|
}
|
|
13172
|
-
function l(
|
|
13171
|
+
function l(p) {
|
|
13173
13172
|
return computed(() => {
|
|
13174
|
-
var
|
|
13175
|
-
const _ = ((b = (
|
|
13173
|
+
var y, b;
|
|
13174
|
+
const _ = ((b = (y = r == null ? void 0 : r.value) == null ? void 0 : y.KgButton) == null ? void 0 : b.kgDisabled) || e.kgDisabled;
|
|
13176
13175
|
if (_) {
|
|
13177
|
-
const
|
|
13178
|
-
if (!isNil(
|
|
13179
|
-
return
|
|
13176
|
+
const C = _(p);
|
|
13177
|
+
if (!isNil(C))
|
|
13178
|
+
return C;
|
|
13180
13179
|
}
|
|
13181
13180
|
});
|
|
13182
13181
|
}
|
|
13183
|
-
function c(
|
|
13184
|
-
switch (
|
|
13182
|
+
function c(p) {
|
|
13183
|
+
switch (p.primary_flg) {
|
|
13185
13184
|
case 1:
|
|
13186
13185
|
return !0;
|
|
13187
13186
|
case 0:
|
|
@@ -13190,39 +13189,39 @@ const getProps$e = () => ({
|
|
|
13190
13189
|
return;
|
|
13191
13190
|
}
|
|
13192
13191
|
}
|
|
13193
|
-
function u(
|
|
13194
|
-
if (n.t(
|
|
13195
|
-
return n.t(
|
|
13192
|
+
function u(p) {
|
|
13193
|
+
if (n.t(p.var_nam).value !== p.var_nam)
|
|
13194
|
+
return n.t(p.var_nam).value;
|
|
13196
13195
|
}
|
|
13197
13196
|
function d() {
|
|
13198
|
-
var
|
|
13199
|
-
if (!n.varButtons.value || ((
|
|
13197
|
+
var p, _;
|
|
13198
|
+
if (!n.varButtons.value || ((p = n.varButtons.value) == null ? void 0 : p.length) === 0)
|
|
13200
13199
|
return null;
|
|
13201
13200
|
switch ((_ = n.varGridConfig.value) == null ? void 0 : _.button_display_type) {
|
|
13202
13201
|
case KG_BUTTON_DISPLAY_TYPE.SELECT:
|
|
13203
|
-
return
|
|
13202
|
+
return T();
|
|
13204
13203
|
default:
|
|
13205
13204
|
return v();
|
|
13206
13205
|
}
|
|
13207
13206
|
}
|
|
13208
|
-
function m(
|
|
13207
|
+
function m(p) {
|
|
13209
13208
|
return createVNode(KgButtonItem, {
|
|
13210
|
-
kgButton:
|
|
13211
|
-
kgVarName:
|
|
13212
|
-
kgType:
|
|
13213
|
-
kgIcon:
|
|
13214
|
-
kgText: u(
|
|
13215
|
-
kgColor:
|
|
13216
|
-
kgPrimary: c(
|
|
13217
|
-
kgDisabled: l(
|
|
13218
|
-
onKgClick: () => s(
|
|
13209
|
+
kgButton: p,
|
|
13210
|
+
kgVarName: p.var_nam,
|
|
13211
|
+
kgType: p.typ,
|
|
13212
|
+
kgIcon: p.icon,
|
|
13213
|
+
kgText: u(p),
|
|
13214
|
+
kgColor: p.color,
|
|
13215
|
+
kgPrimary: c(p),
|
|
13216
|
+
kgDisabled: l(p).value,
|
|
13217
|
+
onKgClick: () => s(p)
|
|
13219
13218
|
}, null);
|
|
13220
13219
|
}
|
|
13221
13220
|
function v() {
|
|
13222
|
-
var
|
|
13223
|
-
return (
|
|
13221
|
+
var p;
|
|
13222
|
+
return (p = n.varButtons.value) == null ? void 0 : p.filter((_) => _.typ !== KG_BUTTON_TYPE.SEARCH).map((_) => m(_));
|
|
13224
13223
|
}
|
|
13225
|
-
function
|
|
13224
|
+
function T() {
|
|
13226
13225
|
return createVNode(Dropdown, {
|
|
13227
13226
|
trigger: "click",
|
|
13228
13227
|
overlayClassName: "kg-button-dropdown"
|
|
@@ -13234,10 +13233,10 @@ const getProps$e = () => ({
|
|
|
13234
13233
|
}),
|
|
13235
13234
|
overlay: () => createVNode(Menu, null, {
|
|
13236
13235
|
default: () => {
|
|
13237
|
-
var
|
|
13238
|
-
return [(_ = (
|
|
13236
|
+
var p, _;
|
|
13237
|
+
return [(_ = (p = n.varButtons.value) == null ? void 0 : p.filter((y) => y.typ !== KG_BUTTON_TYPE.SEARCH)) == null ? void 0 : _.filter((y) => !(y.permission_type !== 2 && !a.p(y.permission_code))).map((y) => {
|
|
13239
13238
|
let b;
|
|
13240
|
-
return createVNode(Menu.Item, null, _isSlot$3(b = m(
|
|
13239
|
+
return createVNode(Menu.Item, null, _isSlot$3(b = m(y)) ? b : {
|
|
13241
13240
|
default: () => [b]
|
|
13242
13241
|
});
|
|
13243
13242
|
})];
|
|
@@ -13252,8 +13251,8 @@ const getProps$e = () => ({
|
|
|
13252
13251
|
spinning: i.value
|
|
13253
13252
|
}, {
|
|
13254
13253
|
default: () => {
|
|
13255
|
-
var
|
|
13256
|
-
return [d(), (_ = (
|
|
13254
|
+
var p, _;
|
|
13255
|
+
return [d(), (_ = (p = t == null ? void 0 : t.KgButton) == null ? void 0 : p.right) == null ? void 0 : _.call(p)];
|
|
13257
13256
|
}
|
|
13258
13257
|
})]);
|
|
13259
13258
|
}
|
|
@@ -13660,20 +13659,20 @@ const leftVarProfileDetailColumns = (e) => {
|
|
|
13660
13659
|
}) {
|
|
13661
13660
|
const r = useKg(), a = useKgVar(FORM_ID__VAR_PROFILE_MASTER, !0, 1), n = useKgSearch(FORM_ID__VAR_PROFILE_MASTER), o = useKgButton(FORM_ID__VAR_PROFILE_MASTER), i = useKgSubmit(FORM_ID__VAR_PROFILE_MASTER), s = useKgVar(e.hostFormID);
|
|
13662
13661
|
i.onOpen(async ({
|
|
13663
|
-
isCreating:
|
|
13662
|
+
isCreating: p,
|
|
13664
13663
|
isUpdating: _,
|
|
13665
|
-
isCopying:
|
|
13664
|
+
isCopying: y,
|
|
13666
13665
|
row: b,
|
|
13667
|
-
model:
|
|
13666
|
+
model: C
|
|
13668
13667
|
}) => {
|
|
13669
|
-
var M, E,
|
|
13668
|
+
var M, E, N;
|
|
13670
13669
|
const k = s.store.getSystemVarProfileDetails(s.formID);
|
|
13671
13670
|
switch (l.value = k ? cloneDeep(unref(toRaw(k))) : [], !0) {
|
|
13672
|
-
case
|
|
13671
|
+
case p:
|
|
13673
13672
|
c.value = [];
|
|
13674
13673
|
break;
|
|
13675
13674
|
case _:
|
|
13676
|
-
case
|
|
13675
|
+
case y:
|
|
13677
13676
|
if (b != null && b.id)
|
|
13678
13677
|
try {
|
|
13679
13678
|
i.store.setIsLoading(a.formID, !0);
|
|
@@ -13703,20 +13702,20 @@ const leftVarProfileDetailColumns = (e) => {
|
|
|
13703
13702
|
break;
|
|
13704
13703
|
}
|
|
13705
13704
|
switch (!0) {
|
|
13706
|
-
case
|
|
13707
|
-
|
|
13705
|
+
case y:
|
|
13706
|
+
C.value.prf_var_nam = ((N = C.value.prf_var_nam) != null ? N : "") + "_COPY";
|
|
13708
13707
|
break;
|
|
13709
13708
|
}
|
|
13710
13709
|
return !1;
|
|
13711
13710
|
}), i.onBeforeOk(async ({
|
|
13712
|
-
model:
|
|
13711
|
+
model: p
|
|
13713
13712
|
}) => {
|
|
13714
|
-
var
|
|
13715
|
-
const _ =
|
|
13716
|
-
return _.frm_id = s.formID, _.varProfileDetails = (b = (
|
|
13713
|
+
var y, b;
|
|
13714
|
+
const _ = p.value;
|
|
13715
|
+
return _.frm_id = s.formID, _.varProfileDetails = (b = (y = l.value) == null ? void 0 : y.filter((C) => c.value.includes(C.id))) != null ? b : [], !1;
|
|
13717
13716
|
}), i.onOk(async () => (s.store.retrieve(s.formID), !1)), o.onUpdateBeforeClick(({
|
|
13718
|
-
row:
|
|
13719
|
-
}) => (
|
|
13717
|
+
row: p
|
|
13718
|
+
}) => (p == null ? void 0 : p.cust_lvl) === KG_CUSTOM_LEVEL.L0 ? new Promise((_) => {
|
|
13720
13719
|
KgUtil.confirm({
|
|
13721
13720
|
content: r.t("kg.KgSearchConfigModal.canNotUpdateSystemVarProfileMaster"),
|
|
13722
13721
|
okButtonProps: {
|
|
@@ -13738,11 +13737,11 @@ const leftVarProfileDetailColumns = (e) => {
|
|
|
13738
13737
|
KgSubmit: {
|
|
13739
13738
|
"KgForm.Item": {
|
|
13740
13739
|
varProfileDetails: ({
|
|
13741
|
-
varName:
|
|
13740
|
+
varName: p,
|
|
13742
13741
|
props: _,
|
|
13743
|
-
model:
|
|
13742
|
+
model: y,
|
|
13744
13743
|
varVariableConfig: b,
|
|
13745
|
-
varProfileDetail:
|
|
13744
|
+
varProfileDetail: C,
|
|
13746
13745
|
varSubmitField: k
|
|
13747
13746
|
}) => createVNode(Transfer, {
|
|
13748
13747
|
dataSource: l.value,
|
|
@@ -13753,14 +13752,14 @@ const leftVarProfileDetailColumns = (e) => {
|
|
|
13753
13752
|
showSelectAll: !1,
|
|
13754
13753
|
searchPlaceholder: " ",
|
|
13755
13754
|
filterOption: (M, E) => {
|
|
13756
|
-
var
|
|
13757
|
-
return !!((
|
|
13755
|
+
var N;
|
|
13756
|
+
return !!((N = E.var_nam) != null && N.includes(M));
|
|
13758
13757
|
}
|
|
13759
13758
|
}, {
|
|
13760
13759
|
children: ({
|
|
13761
13760
|
direction: M,
|
|
13762
13761
|
filteredItems: E,
|
|
13763
|
-
selectedKeys:
|
|
13762
|
+
selectedKeys: N,
|
|
13764
13763
|
disabled: I,
|
|
13765
13764
|
onItemSelectAll: A,
|
|
13766
13765
|
onItemSelect: w
|
|
@@ -13776,11 +13775,11 @@ const leftVarProfileDetailColumns = (e) => {
|
|
|
13776
13775
|
rowKey: "id",
|
|
13777
13776
|
dataSource: E,
|
|
13778
13777
|
customRow: (F) => ({
|
|
13779
|
-
onClick: ($) =>
|
|
13778
|
+
onClick: ($) => T($, F, M, N)
|
|
13780
13779
|
}),
|
|
13781
13780
|
rowSelection: m({
|
|
13782
13781
|
disabled: I,
|
|
13783
|
-
selectedKeys:
|
|
13782
|
+
selectedKeys: N,
|
|
13784
13783
|
onItemSelectAll: A,
|
|
13785
13784
|
onItemSelect: w
|
|
13786
13785
|
})
|
|
@@ -13793,45 +13792,45 @@ const leftVarProfileDetailColumns = (e) => {
|
|
|
13793
13792
|
v();
|
|
13794
13793
|
});
|
|
13795
13794
|
const m = ({
|
|
13796
|
-
disabled:
|
|
13795
|
+
disabled: p,
|
|
13797
13796
|
selectedKeys: _,
|
|
13798
|
-
onItemSelectAll:
|
|
13797
|
+
onItemSelectAll: y,
|
|
13799
13798
|
onItemSelect: b
|
|
13800
13799
|
}) => ({
|
|
13801
|
-
getCheckboxProps: (
|
|
13802
|
-
disabled:
|
|
13800
|
+
getCheckboxProps: (C) => ({
|
|
13801
|
+
disabled: p || C.disabled
|
|
13803
13802
|
}),
|
|
13804
|
-
onSelectAll(
|
|
13803
|
+
onSelectAll(C, k) {
|
|
13805
13804
|
const M = k.filter((E) => !E.disabled).map(({
|
|
13806
13805
|
key: E
|
|
13807
13806
|
}) => E);
|
|
13808
|
-
|
|
13807
|
+
y(M, C);
|
|
13809
13808
|
},
|
|
13810
13809
|
onSelect({
|
|
13811
|
-
key:
|
|
13810
|
+
key: C
|
|
13812
13811
|
}, k) {
|
|
13813
|
-
b(
|
|
13812
|
+
b(C, k);
|
|
13814
13813
|
},
|
|
13815
13814
|
selectedRowKeys: _,
|
|
13816
13815
|
columnWidth: 32
|
|
13817
13816
|
});
|
|
13818
13817
|
async function v() {
|
|
13819
|
-
const
|
|
13820
|
-
_ && n.model.value && (setTimeout(() =>
|
|
13818
|
+
const p = watch(n.isReady, async (_) => {
|
|
13819
|
+
_ && n.model.value && (setTimeout(() => p(), 0), await n.store.patchModel(a.formID, {
|
|
13821
13820
|
frm_id: e.hostFormID
|
|
13822
13821
|
}), n.search());
|
|
13823
13822
|
}, {
|
|
13824
13823
|
immediate: !0
|
|
13825
13824
|
});
|
|
13826
13825
|
}
|
|
13827
|
-
function
|
|
13828
|
-
if (!KgDomUtil.isNotClickable(
|
|
13829
|
-
switch (b.length = 0,
|
|
13826
|
+
function T(p, _, y, b) {
|
|
13827
|
+
if (!KgDomUtil.isNotClickable(p.target, ["ant-input"]))
|
|
13828
|
+
switch (b.length = 0, p.detail) {
|
|
13830
13829
|
case 1:
|
|
13831
13830
|
b[0] = _.id;
|
|
13832
13831
|
break;
|
|
13833
13832
|
case 2:
|
|
13834
|
-
switch (
|
|
13833
|
+
switch (y) {
|
|
13835
13834
|
case "left":
|
|
13836
13835
|
c.value.push(_.id);
|
|
13837
13836
|
break;
|
|
@@ -13996,12 +13995,12 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
|
13996
13995
|
kgHeight: d.value
|
|
13997
13996
|
});
|
|
13998
13997
|
_useLayoutHeaderResizeObserver(), _useFormModel(m, v);
|
|
13999
|
-
const
|
|
13998
|
+
const T = computed(() => {
|
|
14000
13999
|
var O, R;
|
|
14001
14000
|
return !!(o.isRetrieving.value || ((O = a.varButtonSearch.value) == null ? void 0 : O.permission_type) === 2 && !r.p((R = a.varButtonSearch.value) == null ? void 0 : R.permission_code) || a.isCreating.value || a.isUpdating.value || a.isCopying.value || a.isDeleting.value);
|
|
14002
|
-
}),
|
|
14001
|
+
}), p = computed(() => !!(o.isRetrieving.value || a.isCreating.value || a.isUpdating.value || a.isCopying.value || a.isDeleting.value)), _ = computed(() => !!o.isRetrieving.value), y = ref({
|
|
14003
14002
|
visible: !1
|
|
14004
|
-
}), b = computed(() => v.value.kgHeight === d.value),
|
|
14003
|
+
}), b = computed(() => v.value.kgHeight === d.value), C = computed(() => {
|
|
14005
14004
|
var O, R, x;
|
|
14006
14005
|
if (a.t((O = a.varButtonSearch.value) == null ? void 0 : O.var_nam).value !== ((R = a.varButtonSearch.value) == null ? void 0 : R.var_nam))
|
|
14007
14006
|
return a.t((x = a.varButtonSearch.value) == null ? void 0 : x.var_nam).value;
|
|
@@ -14015,7 +14014,7 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
|
14015
14014
|
default:
|
|
14016
14015
|
return !0;
|
|
14017
14016
|
}
|
|
14018
|
-
}), M = computed(() => !!(a.isRetrieving.value || a.isRetrievingVarProfileMaster.value || l.value && !!a.isOtherRequesting.value)), E = computed(() => !!a.isRetrieving.value || !!a.isRetrievingVarProfileMaster.value),
|
|
14017
|
+
}), M = computed(() => !!(a.isRetrieving.value || a.isRetrievingVarProfileMaster.value || l.value && !!a.isOtherRequesting.value)), E = computed(() => !!a.isRetrieving.value || !!a.isRetrievingVarProfileMaster.value), N = computed(() => {
|
|
14019
14018
|
let O = "kg-search";
|
|
14020
14019
|
return i.value && (O += " kg-search--visible"), l.value && (O += " kg-search--teleport"), O;
|
|
14021
14020
|
});
|
|
@@ -14023,7 +14022,7 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
|
14023
14022
|
n.store.dispose(a.formID);
|
|
14024
14023
|
});
|
|
14025
14024
|
function I(O = !1) {
|
|
14026
|
-
|
|
14025
|
+
T.value || (i.value ? m.value && m.value.validate().then(() => {
|
|
14027
14026
|
n.store.emit(a.formID, "search", {
|
|
14028
14027
|
resetPageIndex: O
|
|
14029
14028
|
});
|
|
@@ -14067,7 +14066,7 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
|
14067
14066
|
return ((x = (R = (O = a.varProfileMasters) == null ? void 0 : O.value) == null ? void 0 : R.length) != null ? x : 0) === 0 ? null : createVNode(Fragment, null, [createVNode(Select, {
|
|
14068
14067
|
value: (G = a.currentVarProfileMasterID.value) != null ? G : void 0,
|
|
14069
14068
|
"onUpdate:value": (H) => a.store.setCurrentVarProfileMasterID(a.formID, H),
|
|
14070
|
-
disabled:
|
|
14069
|
+
disabled: p.value,
|
|
14071
14070
|
class: "kg-search-profile-master-select"
|
|
14072
14071
|
}, {
|
|
14073
14072
|
default: () => {
|
|
@@ -14080,16 +14079,16 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
|
14080
14079
|
},
|
|
14081
14080
|
suffixIcon: () => createVNode(CaretDownOutlined$1, null, null)
|
|
14082
14081
|
}), createVNode(Button, {
|
|
14083
|
-
disabled:
|
|
14082
|
+
disabled: p.value,
|
|
14084
14083
|
onClick: () => {
|
|
14085
|
-
|
|
14084
|
+
y.value.visible = !0;
|
|
14086
14085
|
},
|
|
14087
14086
|
class: "kg-search-profile-master-btn"
|
|
14088
14087
|
}, {
|
|
14089
14088
|
default: () => [createVNode(SettingOutlined$1, null, null)]
|
|
14090
14089
|
}), createVNode(KgSearchConfigModal, {
|
|
14091
|
-
visible:
|
|
14092
|
-
"onUpdate:visible": (H) =>
|
|
14090
|
+
visible: y.value.visible,
|
|
14091
|
+
"onUpdate:visible": (H) => y.value.visible = H,
|
|
14093
14092
|
hostFormID: a.formID
|
|
14094
14093
|
}, null)]);
|
|
14095
14094
|
}
|
|
@@ -14097,8 +14096,8 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
|
14097
14096
|
var O, R, x, G, H;
|
|
14098
14097
|
return createVNode(Fragment, null, [$(), !(((O = a.varButtonSearch.value) == null ? void 0 : O.permission_type) !== 2 && !r.p((R = a.varButtonSearch.value) == null ? void 0 : R.permission_code)) && createVNode(Button, {
|
|
14099
14098
|
type: "primary",
|
|
14100
|
-
ghost: !
|
|
14101
|
-
disabled:
|
|
14099
|
+
ghost: !T.value,
|
|
14100
|
+
disabled: T.value,
|
|
14102
14101
|
onClick: A,
|
|
14103
14102
|
class: "kg-search-btn-reset"
|
|
14104
14103
|
}, {
|
|
@@ -14107,7 +14106,7 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
|
14107
14106
|
kgType: KG_BUTTON_TYPE.SEARCH,
|
|
14108
14107
|
kgVarName: (x = a.varButtonSearch.value) == null ? void 0 : x.var_nam,
|
|
14109
14108
|
kgIcon: (G = a.varButtonSearch.value) == null ? void 0 : G.icon,
|
|
14110
|
-
kgText:
|
|
14109
|
+
kgText: C.value,
|
|
14111
14110
|
kgColor: (H = a.varButtonSearch.value) == null ? void 0 : H.color,
|
|
14112
14111
|
kgPrimary: k.value,
|
|
14113
14112
|
kgLoading: _.value,
|
|
@@ -14149,7 +14148,7 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
|
14149
14148
|
kgMinHeight: d.value,
|
|
14150
14149
|
kgMaxHeight: u.value,
|
|
14151
14150
|
kgDisabled: !s.value,
|
|
14152
|
-
kgClass:
|
|
14151
|
+
kgClass: N.value,
|
|
14153
14152
|
"kg-frm_id": a.formID
|
|
14154
14153
|
}, {
|
|
14155
14154
|
default: () => [i.value && createVNode("div", {
|
|
@@ -14230,39 +14229,39 @@ function useMagicKeys(e = {}) {
|
|
|
14230
14229
|
} = e, i = reactive(/* @__PURE__ */ new Set()), s = { toJSON() {
|
|
14231
14230
|
return {};
|
|
14232
14231
|
}, current: i }, l = t ? reactive(s) : s, c = /* @__PURE__ */ new Set(), u = /* @__PURE__ */ new Set();
|
|
14233
|
-
function d(
|
|
14234
|
-
|
|
14232
|
+
function d(p, _) {
|
|
14233
|
+
p in l && (t ? l[p] = _ : l[p].value = _);
|
|
14235
14234
|
}
|
|
14236
14235
|
function m() {
|
|
14237
|
-
for (const
|
|
14238
|
-
d(
|
|
14236
|
+
for (const p of u)
|
|
14237
|
+
d(p, !1);
|
|
14239
14238
|
}
|
|
14240
|
-
function v(
|
|
14241
|
-
var
|
|
14242
|
-
const
|
|
14243
|
-
k && (_ ? i.add(
|
|
14239
|
+
function v(p, _) {
|
|
14240
|
+
var y, b;
|
|
14241
|
+
const C = (y = p.key) == null ? void 0 : y.toLowerCase(), k = (b = p.code) == null ? void 0 : b.toLowerCase(), M = [k, C].filter(Boolean);
|
|
14242
|
+
k && (_ ? i.add(p.code) : i.delete(p.code));
|
|
14244
14243
|
for (const E of M)
|
|
14245
14244
|
u.add(E), d(E, _);
|
|
14246
|
-
|
|
14245
|
+
C === "meta" && !_ ? (c.forEach((E) => {
|
|
14247
14246
|
i.delete(E), d(E, !1);
|
|
14248
|
-
}), c.clear()) : typeof
|
|
14247
|
+
}), c.clear()) : typeof p.getModifierState == "function" && p.getModifierState("Meta") && _ && [...i, ...M].forEach((E) => c.add(E));
|
|
14249
14248
|
}
|
|
14250
|
-
r && (useEventListener(r, "keydown", (
|
|
14251
|
-
const
|
|
14252
|
-
get(
|
|
14249
|
+
r && (useEventListener(r, "keydown", (p) => (v(p, !0), o(p)), { passive: n }), useEventListener(r, "keyup", (p) => (v(p, !1), o(p)), { passive: n }), useEventListener("blur", m, { passive: !0 }), useEventListener("focus", m, { passive: !0 }));
|
|
14250
|
+
const T = new Proxy(l, {
|
|
14251
|
+
get(p, _, y) {
|
|
14253
14252
|
if (typeof _ != "string")
|
|
14254
|
-
return Reflect.get(
|
|
14253
|
+
return Reflect.get(p, _, y);
|
|
14255
14254
|
if (_ = _.toLowerCase(), _ in a && (_ = a[_]), !(_ in l))
|
|
14256
14255
|
if (/[+_-]/.test(_)) {
|
|
14257
|
-
const
|
|
14258
|
-
l[_] = computed(() =>
|
|
14256
|
+
const C = _.split(/[+_-]/g).map((k) => k.trim());
|
|
14257
|
+
l[_] = computed(() => C.every((k) => unref(T[k])));
|
|
14259
14258
|
} else
|
|
14260
14259
|
l[_] = ref(!1);
|
|
14261
|
-
const b = Reflect.get(
|
|
14260
|
+
const b = Reflect.get(p, _, y);
|
|
14262
14261
|
return t ? unref(b) : b;
|
|
14263
14262
|
}
|
|
14264
14263
|
});
|
|
14265
|
-
return
|
|
14264
|
+
return T;
|
|
14266
14265
|
}
|
|
14267
14266
|
var SwipeDirection;
|
|
14268
14267
|
(function(e) {
|
|
@@ -14644,13 +14643,13 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
|
14644
14643
|
columnWidth: 32,
|
|
14645
14644
|
hideSelectAll: !0,
|
|
14646
14645
|
selectedRowKeys: d,
|
|
14647
|
-
onSelect: ($) =>
|
|
14646
|
+
onSelect: ($) => N($)
|
|
14648
14647
|
}), v = ref({
|
|
14649
14648
|
visible: !1
|
|
14650
|
-
}),
|
|
14649
|
+
}), T = computed(() => !!(unref(u) || unref(n) || unref(o) || unref(i))), p = computed(() => {
|
|
14651
14650
|
var $;
|
|
14652
14651
|
return !!u.value || (($ = a.getSelectedVarCatalog) == null ? void 0 : $.cust_lvl) === KG_CUSTOM_LEVEL.L0;
|
|
14653
|
-
}), _ = computed(() => !!(!unref(u) || unref(n) || unref(o))),
|
|
14652
|
+
}), _ = computed(() => !!(!unref(u) || unref(n) || unref(o))), y = computed(() => !!(!unref(a.getSelectedVarCatalog) || unref(n)));
|
|
14654
14653
|
watch(() => a.getSelectedVar, ($) => {
|
|
14655
14654
|
$ ? b() : (u.value = null, c.value = [], a.setSelectedVarCatalog(null));
|
|
14656
14655
|
}, {
|
|
@@ -14689,7 +14688,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
|
14689
14688
|
n.value = !1;
|
|
14690
14689
|
}
|
|
14691
14690
|
}
|
|
14692
|
-
async function
|
|
14691
|
+
async function C() {
|
|
14693
14692
|
var $, P, V;
|
|
14694
14693
|
try {
|
|
14695
14694
|
o.value = !0, await (($ = s.value) == null ? void 0 : $.validate());
|
|
@@ -14760,7 +14759,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
|
14760
14759
|
}
|
|
14761
14760
|
});
|
|
14762
14761
|
}
|
|
14763
|
-
function
|
|
14762
|
+
function N($) {
|
|
14764
14763
|
var P;
|
|
14765
14764
|
((P = a.getSelectedVarCatalog) == null ? void 0 : P.id) !== $.id && (unref(u) ? KgUtil.confirm({
|
|
14766
14765
|
content: t.t("kg.KgVarConfig.discardConfirmMessage"),
|
|
@@ -14777,14 +14776,14 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
|
14777
14776
|
class: "buttons"
|
|
14778
14777
|
}, [createVNode(Button, {
|
|
14779
14778
|
onClick: I,
|
|
14780
|
-
disabled:
|
|
14779
|
+
disabled: T.value,
|
|
14781
14780
|
type: "primary"
|
|
14782
14781
|
}, {
|
|
14783
14782
|
default: () => [createVNode(PlusOutlined$1, null, null), t.t("common.create")]
|
|
14784
14783
|
}), createVNode(Button, {
|
|
14785
14784
|
onClick: E,
|
|
14786
|
-
disabled:
|
|
14787
|
-
ghost: !
|
|
14785
|
+
disabled: p.value,
|
|
14786
|
+
ghost: !p.value,
|
|
14788
14787
|
type: "primary",
|
|
14789
14788
|
danger: !0
|
|
14790
14789
|
}, {
|
|
@@ -14798,7 +14797,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
|
14798
14797
|
}, [createVNode(Form, {
|
|
14799
14798
|
ref: s,
|
|
14800
14799
|
model: l.value,
|
|
14801
|
-
onSubmit:
|
|
14800
|
+
onSubmit: C
|
|
14802
14801
|
}, {
|
|
14803
14802
|
default: () => [createVNode(Form.Item, {
|
|
14804
14803
|
name: "var_text",
|
|
@@ -14824,8 +14823,8 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
|
14824
14823
|
default: () => [$]
|
|
14825
14824
|
}), createVNode(Button, {
|
|
14826
14825
|
loading: o.value,
|
|
14827
|
-
disabled:
|
|
14828
|
-
onClick:
|
|
14826
|
+
disabled: y.value,
|
|
14827
|
+
onClick: C,
|
|
14829
14828
|
type: "primary"
|
|
14830
14829
|
}, _isSlot(P = t.t("common.save")) ? P : {
|
|
14831
14830
|
default: () => [P]
|
|
@@ -14853,7 +14852,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
|
14853
14852
|
rowClassName: F,
|
|
14854
14853
|
rowSelection: m.value,
|
|
14855
14854
|
customRow: ($) => ({
|
|
14856
|
-
onClick: () =>
|
|
14855
|
+
onClick: () => N($)
|
|
14857
14856
|
})
|
|
14858
14857
|
}, null), w(), createVNode(KgVarConfigModalVarCreateModal, {
|
|
14859
14858
|
visible: v.value.visible,
|
|
@@ -15181,9 +15180,9 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
|
15181
15180
|
customRender: ({
|
|
15182
15181
|
record: k
|
|
15183
15182
|
}) => {
|
|
15184
|
-
var E,
|
|
15183
|
+
var E, N, I;
|
|
15185
15184
|
const M = k;
|
|
15186
|
-
return createVNode("div", null, [createVNode("div", null, [(E = M.whDsc) != null ? E : " ", createTextVNode(" - "), (
|
|
15185
|
+
return createVNode("div", null, [createVNode("div", null, [(E = M.whDsc) != null ? E : " ", createTextVNode(" - "), (N = M.whId) != null ? N : " "]), createVNode("div", {
|
|
15187
15186
|
class: "address"
|
|
15188
15187
|
}, [(I = M.adrId) != null ? I : " "])]);
|
|
15189
15188
|
}
|
|
@@ -15191,15 +15190,15 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
|
15191
15190
|
var M;
|
|
15192
15191
|
const k = (M = o.value) == null ? void 0 : M.toUpperCase();
|
|
15193
15192
|
return u.value.filter((E) => {
|
|
15194
|
-
var
|
|
15195
|
-
return ((I = (
|
|
15193
|
+
var N, I, A, w, F, $;
|
|
15194
|
+
return ((I = (N = E.whDsc) == null ? void 0 : N.toUpperCase()) == null ? void 0 : I.includes(k)) || ((w = (A = E.whId) == null ? void 0 : A.toUpperCase()) == null ? void 0 : w.includes(k)) || (($ = (F = E.adrId) == null ? void 0 : F.toUpperCase()) == null ? void 0 : $.includes(k));
|
|
15196
15195
|
});
|
|
15197
15196
|
}), m = computed(() => {
|
|
15198
15197
|
var k, M;
|
|
15199
15198
|
return ((M = (k = r.option.value) == null ? void 0 : k.KgWarehouse) == null ? void 0 : M.enable) !== !1;
|
|
15200
15199
|
});
|
|
15201
15200
|
watch(a.visible, (k) => {
|
|
15202
|
-
!m.value || (k ?
|
|
15201
|
+
!m.value || (k ? T() : p());
|
|
15203
15202
|
}, {
|
|
15204
15203
|
immediate: !0
|
|
15205
15204
|
}), onMounted(() => {
|
|
@@ -15208,10 +15207,10 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
|
15208
15207
|
function v() {
|
|
15209
15208
|
!m.value || a.store.setVisible(!0);
|
|
15210
15209
|
}
|
|
15211
|
-
function
|
|
15212
|
-
s.value = a.warehouse.value,
|
|
15210
|
+
function T() {
|
|
15211
|
+
s.value = a.warehouse.value, y();
|
|
15213
15212
|
}
|
|
15214
|
-
function
|
|
15213
|
+
function p() {
|
|
15215
15214
|
o.value = "", u.value = [], s.value = null;
|
|
15216
15215
|
}
|
|
15217
15216
|
function _() {
|
|
@@ -15228,7 +15227,7 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
|
15228
15227
|
}
|
|
15229
15228
|
})), a.store.setVisible(!1));
|
|
15230
15229
|
}
|
|
15231
|
-
async function
|
|
15230
|
+
async function y() {
|
|
15232
15231
|
l.value = !0;
|
|
15233
15232
|
try {
|
|
15234
15233
|
const {
|
|
@@ -15257,7 +15256,7 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
|
15257
15256
|
break;
|
|
15258
15257
|
}
|
|
15259
15258
|
}
|
|
15260
|
-
function
|
|
15259
|
+
function C() {
|
|
15261
15260
|
return m.value ? createVNode(Fragment, null, [createVNode(Tooltip, {
|
|
15262
15261
|
title: r.t("kg.KgWarehouse.warehouse"),
|
|
15263
15262
|
placement: "bottomRight"
|
|
@@ -15318,7 +15317,7 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
|
15318
15317
|
return () => createVNode("div", {
|
|
15319
15318
|
class: n.value,
|
|
15320
15319
|
onClick: v
|
|
15321
|
-
}, [
|
|
15320
|
+
}, [C()]);
|
|
15322
15321
|
}
|
|
15323
15322
|
});
|
|
15324
15323
|
function createKgWarehouseGuard(e, t) {
|