@kengic/vue 0.10.10 → 0.10.11
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/kengic-vue.js +175 -171
- package/package.json +1 -1
package/dist/kengic-vue.js
CHANGED
@@ -3917,7 +3917,7 @@ const emptyIcon = {
|
|
3917
3917
|
...t.data
|
3918
3918
|
}, r);
|
3919
3919
|
}
|
3920
|
-
}), name = "@kengic/vue", version = "0.10.
|
3920
|
+
}), name = "@kengic/vue", version = "0.10.11", data$1 = {
|
3921
3921
|
width: 24,
|
3922
3922
|
height: 24,
|
3923
3923
|
body: '<path fill="currentColor" d="M5 21q-.825 0-1.413-.588T3 19V5q0-.825.588-1.413T5 3h11.175q.4 0 .763.15t.637.425l2.85 2.85q.275.275.425.638t.15.762V12.3q-.475-.2-.988-.263T19 12.05V7.825L16.175 5H5v14h6v2H5ZM5 5v14V5Zm8 17v-1.65q0-.2.075-.388t.225-.337l5.225-5.2q.225-.225.5-.325t.55-.1q.3 0 .575.113t.5.337l.925.925q.2.225.313.5t.112.55q0 .275-.1.563t-.325.512l-5.2 5.2q-.15.15-.338.225T15.65 23H14q-.425 0-.712-.287T13 22Zm7.5-5.575l-.925-.925l.925.925Zm-6 5.075h.95l3.025-3.05l-.45-.475l-.475-.45l-3.05 3.025v.95Zm3.525-3.525l-.475-.45l.925.925l-.45-.475ZM7 10h7q.425 0 .713-.288T15 9V7q0-.425-.288-.713T14 6H7q-.425 0-.713.288T6 7v2q0 .425.288.713T7 10Zm5 8h.1l2.9-2.875V15q0-1.25-.875-2.125T12 12q-1.25 0-2.125.875T9 15q0 1.25.875 2.125T12 18Z"/>'
|
@@ -4033,7 +4033,7 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4033
4033
|
return H ? N : N.endOf(c);
|
4034
4034
|
}, Y = function(fe, ae) {
|
4035
4035
|
return L.w(x.toDate()[fe].apply(x.toDate("s"), (H ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(ae)), x);
|
4036
|
-
}, Q = this.$W, X = this.$M, J = this.$D,
|
4036
|
+
}, Q = this.$W, X = this.$M, J = this.$D, te = "set" + (this.$u ? "UTC" : "");
|
4037
4037
|
switch (K) {
|
4038
4038
|
case v:
|
4039
4039
|
return H ? F(1, 0) : F(31, 11);
|
@@ -4044,13 +4044,13 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4044
4044
|
return F(H ? J - _e : J + (6 - _e), X);
|
4045
4045
|
case c:
|
4046
4046
|
case y:
|
4047
|
-
return Y(
|
4047
|
+
return Y(te + "Hours", 0);
|
4048
4048
|
case i:
|
4049
|
-
return Y(
|
4049
|
+
return Y(te + "Minutes", 1);
|
4050
4050
|
case o:
|
4051
|
-
return Y(
|
4051
|
+
return Y(te + "Seconds", 2);
|
4052
4052
|
case l:
|
4053
|
-
return Y(
|
4053
|
+
return Y(te + "Milliseconds", 3);
|
4054
4054
|
default:
|
4055
4055
|
return this.clone();
|
4056
4056
|
}
|
@@ -4091,11 +4091,11 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4091
4091
|
var P = this, x = this.$locale();
|
4092
4092
|
if (!this.isValid())
|
4093
4093
|
return x.invalidDate || _;
|
4094
|
-
var H = V || "YYYY-MM-DDTHH:mm:ssZ", K = L.z(this), F = this.$H, Y = this.$m, Q = this.$M, X = x.weekdays, J = x.months,
|
4094
|
+
var H = V || "YYYY-MM-DDTHH:mm:ssZ", K = L.z(this), F = this.$H, Y = this.$m, Q = this.$M, X = x.weekdays, J = x.months, te = x.meridiem, le = function(ae, N, U, q) {
|
4095
4095
|
return ae && (ae[N] || ae(P, H)) || U[N].slice(0, q);
|
4096
4096
|
}, _e = function(ae) {
|
4097
4097
|
return L.s(F % 12 || 12, ae, "0");
|
4098
|
-
}, fe =
|
4098
|
+
}, fe = te || function(ae, N, U) {
|
4099
4099
|
var q = ae < 12 ? "AM" : "PM";
|
4100
4100
|
return U ? q.toLowerCase() : q;
|
4101
4101
|
};
|
@@ -6577,6 +6577,12 @@ class KgUtil {
|
|
6577
6577
|
s[i] = void 0;
|
6578
6578
|
break;
|
6579
6579
|
}
|
6580
|
+
case (!!a && a.isDayjs(c)):
|
6581
|
+
s[i] = this.parseParamFromDayJS(i, c);
|
6582
|
+
break;
|
6583
|
+
case (!!a && isArray$1(c) && c.length === 2 && a.isDayjs(c[0]) && a.isDayjs(c[1])):
|
6584
|
+
s[i] = void 0, s[`${i}_begin`] = this.parseParamFromDayJS(i, c[0]), s[`${i}_end`] = this.parseParamFromDayJS(i, c[1]);
|
6585
|
+
break;
|
6580
6586
|
case isObjectLike(c):
|
6581
6587
|
s[i] = this.parseParams(c, r, a);
|
6582
6588
|
break;
|
@@ -6607,6 +6613,8 @@ class KgUtil {
|
|
6607
6613
|
return t;
|
6608
6614
|
}
|
6609
6615
|
static parseParamFromDayJS(t, r, a) {
|
6616
|
+
if (!a)
|
6617
|
+
return r.format("YYYY-MM-DD HH:mm:ss");
|
6610
6618
|
const n = useKgVar(a), s = useKgTable(a), l = n.store.getVarVariableConfig(a, t);
|
6611
6619
|
if (!l)
|
6612
6620
|
return r;
|
@@ -7498,11 +7506,7 @@ addIcon("material-symbols:save-outline-rounded", data);
|
|
7498
7506
|
addIcon("material-symbols:save-as-outline-rounded", data$1);
|
7499
7507
|
function setup(e) {
|
7500
7508
|
var r;
|
7501
|
-
if (console.log(
|
7502
|
-
`%c\u751F\u4EA7\u73AF\u5883
|
7503
|
-
${name}: ${version}`,
|
7504
|
-
"color:#ffffff;background-color:#1B6EF3;border-radius:2px;padding:1px 3px;font-size:10px;margin-bottom:1px;"
|
7505
|
-
), !(e != null && e.pinia) || !(e != null && e.locale) || !(e != null && e.i18n) || !e.pFunction)
|
7509
|
+
if (console.log(`%c${name}: ${version}`, "color:#ffffff;background-color:#1B6EF3;border-radius:2px;padding:1px 3px;font-size:10px;margin-bottom:1px;"), !(e != null && e.pinia) || !(e != null && e.locale) || !(e != null && e.i18n) || !e.pFunction)
|
7506
7510
|
throw KgLogger.error("\u7F3A\u5C11\u5FC5\u8981\u7684\u521D\u59CB\u5316\u53C2\u6570.", { options: e }), new Error("[@kengic/vue] \u7F3A\u5C11\u5FC5\u8981\u7684\u521D\u59CB\u5316\u53C2\u6570.");
|
7507
7511
|
setPinia(e.pinia);
|
7508
7512
|
const t = useKg();
|
@@ -9158,7 +9162,7 @@ const useKgVarStore = () => (store$7 || (store$7 = defineStore("KgVar", {
|
|
9158
9162
|
getVarGridDetail(e) {
|
9159
9163
|
return (t, r) => {
|
9160
9164
|
var a, n, s;
|
9161
|
-
return !t || !r ? (KgLogger.error("formID \u6216 var_nam \u4E3A\u7A7A.", { frm_id: t, var_nam: r }), null) : (s = (n = (a = this.getCurrentVarGridMaster(t)) == null ? void 0 : a.varGridDetails) == null ? void 0 : n.find((l) => l.var_nam === r)) != null ? s : null;
|
9165
|
+
return !t || !r ? (KgLogger.error("KgVarStore.getVarGridDetail() | formID \u6216 var_nam \u4E3A\u7A7A.", { frm_id: t, var_nam: r }), null) : (s = (n = (a = this.getCurrentVarGridMaster(t)) == null ? void 0 : a.varGridDetails) == null ? void 0 : n.find((l) => l.var_nam === r)) != null ? s : null;
|
9162
9166
|
};
|
9163
9167
|
}
|
9164
9168
|
},
|
@@ -9467,8 +9471,8 @@ function useKgVar(e, t, r = 0) {
|
|
9467
9471
|
u.dispose(c);
|
9468
9472
|
}));
|
9469
9473
|
const d = (J) => computed(() => u.t(c, J)), p = computed(() => u.isRetrieving(c)), v = computed(() => u.isRetrievingVarProfileMaster(c)), y = computed(() => u.isRetrievingVarGridMaster(c)), _ = computed(() => u.isRetrieved(c)), g = computed(() => u.isCreating(c)), b = computed(() => u.isCreatingRequesting(c)), E = computed(() => u.isUpdating(c)), T = computed(() => u.isUpdatingRequesting(c)), k = computed(() => u.isCopying(c)), A = computed(() => u.isCopyingRequesting(c)), C = computed(() => u.isDeleting(c)), D = computed(() => u.isDeletingRequesting(c)), w = computed(() => u.isOtherRequesting(c)), O = computed(() => u.getVarButtons(c)), M = computed(() => u.getVarButtonSearch(c)), L = computed(() => u.getVarButtonCreate(c)), R = computed(() => u.getVarButtonUpdate(c)), B = computed(() => u.getVarButtonCopy(c)), $ = computed(() => u.getVarButtonDelete(c)), I = computed(() => u.getVarProfileMasters(c)), V = computed(() => u.getCurrentVarProfileMasterID(c)), P = computed(() => u.getCurrentVarProfileMaster(c)), x = computed(() => {
|
9470
|
-
var J,
|
9471
|
-
return (
|
9474
|
+
var J, te;
|
9475
|
+
return (te = (J = P.value) == null ? void 0 : J.varProfileDetails) != null ? te : null;
|
9472
9476
|
}), H = computed(() => u.getVarGridConfig(c)), K = computed(() => u.getVarGridMasters(c)), F = computed(() => u.getCurrentVarGridMasterID(c)), Y = computed(() => u.getCurrentVarGridMaster(c)), Q = computed(() => u.getSystemVarGridDetails(c)), X = computed(() => u.getCurrentVarGridDetails(c));
|
9473
9477
|
return {
|
9474
9478
|
formID: c,
|
@@ -11366,14 +11370,14 @@ const getProps$p = () => ({
|
|
11366
11370
|
const r = inject("$dayjs", dayjs), a = inject(DI_KG_VAR__KG_SLOTS, null);
|
11367
11371
|
inject(DI_KG_VAR__KG_PROPS, null);
|
11368
11372
|
const n = useKg(), s = useKgVar(), l = useKgButton(), o = useKgTable(), i = useKgSubmit(), c = useKgSearch();
|
11369
|
-
l.onSubmitSave(async () => (await
|
11373
|
+
l.onSubmitSave(async () => (await ee(), !1)), l.onSubmitCancel(async () => (await z(), !1)), _useFormModel$1();
|
11370
11374
|
const u = computed(() => s.isDeleting.value && M.value.length === 0 && R.value.length === 0), d = computed(() => i.store.isLoading(s.formID)), p = computed(() => s.store.getVarSubmitConfig(s.formID)), v = computed(() => s.store.getVarSubmitFieldsForCreateKey(s.formID)), y = computed(() => s.store.getVarSubmitFieldsForCreateNotKey(s.formID)), _ = computed(() => s.store.getVarSubmitFieldsForUpdateKey(s.formID)), g = computed(() => s.store.getVarSubmitFieldsForUpdateNotKey(s.formID)), b = computed(() => s.store.getVarSubmitFieldsForCopyKey(s.formID)), E = computed(() => s.store.getVarSubmitFieldsForCopyNotKey(s.formID)), T = computed(() => s.store.getVarSubmitFieldsForCreateKeyVisible(s.formID)), k = computed(() => s.store.getVarSubmitFieldsForCreateNotKeyVisible(s.formID)), A = computed(() => s.store.getVarSubmitFieldsForUpdateKeyVisible(s.formID)), C = computed(() => s.store.getVarSubmitFieldsForUpdateNotKeyVisible(s.formID)), D = computed(() => s.store.getVarSubmitFieldsForCopyKeyVisible(s.formID)), w = computed(() => s.store.getVarSubmitFieldsForCopyNotKeyVisible(s.formID)), O = computed(() => s.store.getVarSubmitFieldsForDelete(s.formID)), M = computed(() => {
|
11371
|
-
var G,
|
11375
|
+
var G, W, Z;
|
11372
11376
|
switch (!0) {
|
11373
11377
|
case s.isCreating.value:
|
11374
11378
|
return (G = v.value) != null ? G : [];
|
11375
11379
|
case s.isUpdating.value:
|
11376
|
-
return (
|
11380
|
+
return (W = _.value) != null ? W : [];
|
11377
11381
|
case s.isCopying.value:
|
11378
11382
|
return (Z = b.value) != null ? Z : [];
|
11379
11383
|
case s.isDeleting.value:
|
@@ -11381,12 +11385,12 @@ const getProps$p = () => ({
|
|
11381
11385
|
}
|
11382
11386
|
return [];
|
11383
11387
|
}), L = computed(() => {
|
11384
|
-
var G,
|
11388
|
+
var G, W, Z;
|
11385
11389
|
switch (!0) {
|
11386
11390
|
case s.isCreating.value:
|
11387
11391
|
return (G = T.value) != null ? G : [];
|
11388
11392
|
case s.isUpdating.value:
|
11389
|
-
return (
|
11393
|
+
return (W = A.value) != null ? W : [];
|
11390
11394
|
case s.isCopying.value:
|
11391
11395
|
return (Z = D.value) != null ? Z : [];
|
11392
11396
|
case s.isDeleting.value:
|
@@ -11394,12 +11398,12 @@ const getProps$p = () => ({
|
|
11394
11398
|
}
|
11395
11399
|
return [];
|
11396
11400
|
}), R = computed(() => {
|
11397
|
-
var G,
|
11401
|
+
var G, W, Z, re;
|
11398
11402
|
switch (!0) {
|
11399
11403
|
case s.isCreating.value:
|
11400
11404
|
return (G = y.value) != null ? G : [];
|
11401
11405
|
case s.isUpdating.value:
|
11402
|
-
return (
|
11406
|
+
return (W = g.value) != null ? W : [];
|
11403
11407
|
case s.isCopying.value:
|
11404
11408
|
return (Z = E.value) != null ? Z : [];
|
11405
11409
|
case s.isDeleting.value:
|
@@ -11407,12 +11411,12 @@ const getProps$p = () => ({
|
|
11407
11411
|
}
|
11408
11412
|
return [];
|
11409
11413
|
}), B = computed(() => {
|
11410
|
-
var G,
|
11414
|
+
var G, W, Z, re;
|
11411
11415
|
switch (!0) {
|
11412
11416
|
case s.isCreating.value:
|
11413
11417
|
return (G = k.value) != null ? G : [];
|
11414
11418
|
case s.isUpdating.value:
|
11415
|
-
return (
|
11419
|
+
return (W = C.value) != null ? W : [];
|
11416
11420
|
case s.isCopying.value:
|
11417
11421
|
return (Z = w.value) != null ? Z : [];
|
11418
11422
|
case s.isDeleting.value:
|
@@ -11423,31 +11427,31 @@ const getProps$p = () => ({
|
|
11423
11427
|
kgWidth: 0
|
11424
11428
|
}), x = computed(() => {
|
11425
11429
|
var G;
|
11426
|
-
return !!(u.value ||
|
11430
|
+
return !!(u.value || te.isFullscreen || ((G = p.value) == null ? void 0 : G.resizable_flg) === 0);
|
11427
11431
|
}), H = computed(() => {
|
11428
|
-
var G,
|
11429
|
-
return u.value ? 398 : (
|
11432
|
+
var G, W;
|
11433
|
+
return u.value ? 398 : (W = (G = p.value) == null ? void 0 : G.min_width) != null ? W : DEFAULT_MIN_WIDTH;
|
11430
11434
|
}), K = computed(() => {
|
11431
|
-
var G,
|
11432
|
-
return u.value ? 398 : (
|
11435
|
+
var G, W;
|
11436
|
+
return u.value ? 398 : (W = (G = p.value) == null ? void 0 : G.max_width) != null ? W : DEFAULT_MAX_WIDTH;
|
11433
11437
|
}), F = computed(() => u.value ? 398 : P.value.kgWidth), Y = ref(null);
|
11434
11438
|
_useResizeObserver$1(Y);
|
11435
|
-
const Q = _useTitle(), X = computed(() => u.value ? 400 : P.value.kgWidth && P.value.kgWidth > 0 ? "auto" : 0), J = computed(() => X.value === 0 ? !1 : !!(s.isCreating.value || s.isUpdating.value || s.isCopying.value || s.isDeleting.value)),
|
11439
|
+
const Q = _useTitle(), X = computed(() => u.value ? 400 : P.value.kgWidth && P.value.kgWidth > 0 ? "auto" : 0), J = computed(() => X.value === 0 ? !1 : !!(s.isCreating.value || s.isUpdating.value || s.isCopying.value || s.isDeleting.value)), te = reactive({
|
11436
11440
|
isFullscreen: !1
|
11437
11441
|
}), {
|
11438
11442
|
getClass: le
|
11439
|
-
} = _useClass(e,
|
11443
|
+
} = _useClass(e, te), {
|
11440
11444
|
getLayout: _e
|
11441
11445
|
} = _useLayout(), {
|
11442
11446
|
getDefaultWidth: fe
|
11443
11447
|
} = _useDefaultWidth(), ae = computed(() => {
|
11444
|
-
var G,
|
11448
|
+
var G, W, Z;
|
11445
11449
|
switch (_e.value) {
|
11446
11450
|
case "horizontal":
|
11447
11451
|
switch ((G = p.value) == null ? void 0 : G.label_col_unit) {
|
11448
11452
|
case KG_WIDTH_UNIT.SPAN:
|
11449
11453
|
return {
|
11450
|
-
span: (
|
11454
|
+
span: (W = p.value) == null ? void 0 : W.label_col
|
11451
11455
|
};
|
11452
11456
|
default:
|
11453
11457
|
return {
|
@@ -11460,13 +11464,13 @@ const getProps$p = () => ({
|
|
11460
11464
|
return;
|
11461
11465
|
}
|
11462
11466
|
}), N = computed(() => {
|
11463
|
-
var G,
|
11467
|
+
var G, W;
|
11464
11468
|
switch (_e.value) {
|
11465
11469
|
case "horizontal":
|
11466
11470
|
switch ((G = p.value) == null ? void 0 : G.label_col_unit) {
|
11467
11471
|
case KG_WIDTH_UNIT.SPAN:
|
11468
11472
|
return {
|
11469
|
-
span: 24 - ((
|
11473
|
+
span: 24 - ((W = p.value) == null ? void 0 : W.label_col)
|
11470
11474
|
};
|
11471
11475
|
default:
|
11472
11476
|
return;
|
@@ -11475,8 +11479,8 @@ const getProps$p = () => ({
|
|
11475
11479
|
return;
|
11476
11480
|
}
|
11477
11481
|
});
|
11478
|
-
watch(J, (G,
|
11479
|
-
G === !0 && U(),
|
11482
|
+
watch(J, (G, W) => {
|
11483
|
+
G === !0 && U(), W === !0 && G === !1 && q();
|
11480
11484
|
}, {
|
11481
11485
|
immediate: !0
|
11482
11486
|
}), watch(fe, (G) => {
|
@@ -11492,27 +11496,27 @@ const getProps$p = () => ({
|
|
11492
11496
|
isDeleting: s.isDeleting.value,
|
11493
11497
|
row: o.selectedRow.value
|
11494
11498
|
}))
|
11495
|
-
return new Promise((
|
11499
|
+
return new Promise((W, Z) => {
|
11496
11500
|
var se;
|
11497
|
-
const re = watch(i.model, async (
|
11498
|
-
|
11501
|
+
const re = watch(i.model, async (oe) => {
|
11502
|
+
oe && Object.keys(oe).length > 0 && (setTimeout(() => re()), await i.store.emit(s.formID, "open", {
|
11499
11503
|
isCreating: s.isCreating.value,
|
11500
11504
|
isUpdating: s.isUpdating.value,
|
11501
11505
|
isCopying: s.isCopying.value,
|
11502
11506
|
isDeleting: s.isDeleting.value,
|
11503
11507
|
row: o.selectedRow.value,
|
11504
11508
|
model: i.model
|
11505
|
-
}),
|
11509
|
+
}), W());
|
11506
11510
|
}, {
|
11507
11511
|
immediate: !0
|
11508
11512
|
});
|
11509
|
-
((se = p.value) == null ? void 0 : se.dft_fullscreen_flg) === 1 && !u.value && (
|
11513
|
+
((se = p.value) == null ? void 0 : se.dft_fullscreen_flg) === 1 && !u.value && (te.isFullscreen = !0);
|
11510
11514
|
});
|
11511
11515
|
}
|
11512
11516
|
async function q() {
|
11513
|
-
P.value.kgWidth = fe.value,
|
11517
|
+
P.value.kgWidth = fe.value, te.isFullscreen = !1, await i.store.emit(s.formID, "close", null);
|
11514
11518
|
}
|
11515
|
-
function
|
11519
|
+
function z() {
|
11516
11520
|
switch (!0) {
|
11517
11521
|
case s.isCreating.value:
|
11518
11522
|
s.store.setIsCreating(s.formID, !1);
|
@@ -11528,8 +11532,8 @@ const getProps$p = () => ({
|
|
11528
11532
|
break;
|
11529
11533
|
}
|
11530
11534
|
}
|
11531
|
-
async function
|
11532
|
-
var G,
|
11535
|
+
async function ee() {
|
11536
|
+
var G, W;
|
11533
11537
|
try {
|
11534
11538
|
if (await i.store.emit(s.formID, "beforeOk", {
|
11535
11539
|
isCreating: s.isCreating.value,
|
@@ -11546,7 +11550,7 @@ const getProps$p = () => ({
|
|
11546
11550
|
} catch (se) {
|
11547
11551
|
KgUtil.throwIfNotFormError(se);
|
11548
11552
|
}
|
11549
|
-
if (await ((
|
11553
|
+
if (await ((W = i.formRef.value) == null ? void 0 : W.validate()), await i.store.emit(s.formID, "afterValidate", {
|
11550
11554
|
isCreating: s.isCreating.value,
|
11551
11555
|
isUpdating: s.isUpdating.value,
|
11552
11556
|
isCopying: s.isCopying.value,
|
@@ -11558,25 +11562,25 @@ const getProps$p = () => ({
|
|
11558
11562
|
return;
|
11559
11563
|
switch (!0) {
|
11560
11564
|
case s.isCreating.value:
|
11561
|
-
await
|
11565
|
+
await ue();
|
11562
11566
|
break;
|
11563
11567
|
case s.isUpdating.value:
|
11564
|
-
await
|
11568
|
+
await ce();
|
11565
11569
|
break;
|
11566
11570
|
case s.isCopying.value:
|
11567
|
-
await
|
11571
|
+
await ie();
|
11568
11572
|
break;
|
11569
11573
|
case s.isDeleting.value:
|
11570
|
-
await
|
11574
|
+
await me();
|
11571
11575
|
break;
|
11572
11576
|
}
|
11573
11577
|
} catch (Z) {
|
11574
11578
|
KgUtil.throwIfNotFormError(Z);
|
11575
11579
|
}
|
11576
11580
|
}
|
11577
|
-
async function
|
11578
|
-
var
|
11579
|
-
const G = (
|
11581
|
+
async function ue() {
|
11582
|
+
var W, Z, re, se, oe, de;
|
11583
|
+
const G = (W = s.varButtonCreate.value) == null ? void 0 : W.cmd;
|
11580
11584
|
if (!G) {
|
11581
11585
|
KgLogger.error("[KgSubmit] '\u521B\u5EFA\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
|
11582
11586
|
VarButton: s.varButtonCreate.value
|
@@ -11599,7 +11603,7 @@ const getProps$p = () => ({
|
|
11599
11603
|
}))
|
11600
11604
|
return;
|
11601
11605
|
await httpClient().request({
|
11602
|
-
method: (
|
11606
|
+
method: (oe = (se = s.varButtonCreate.value) == null ? void 0 : se.cmd_method) != null ? oe : "POST",
|
11603
11607
|
url: G,
|
11604
11608
|
params: ne.value,
|
11605
11609
|
data: ge.value
|
@@ -11617,9 +11621,9 @@ const getProps$p = () => ({
|
|
11617
11621
|
s.store.setIsCreatingRequesting(s.formID, !1);
|
11618
11622
|
}
|
11619
11623
|
}
|
11620
|
-
async function
|
11621
|
-
var
|
11622
|
-
const G = (
|
11624
|
+
async function ce() {
|
11625
|
+
var W, Z, re, se, oe, de;
|
11626
|
+
const G = (W = s.varButtonUpdate.value) == null ? void 0 : W.cmd;
|
11623
11627
|
if (!G) {
|
11624
11628
|
KgLogger.error("[KgSubmit] '\u66F4\u65B0\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
|
11625
11629
|
VarButton: s.varButtonUpdate.value
|
@@ -11642,7 +11646,7 @@ const getProps$p = () => ({
|
|
11642
11646
|
}))
|
11643
11647
|
return;
|
11644
11648
|
await httpClient().request({
|
11645
|
-
method: (
|
11649
|
+
method: (oe = (se = s.varButtonUpdate.value) == null ? void 0 : se.cmd_method) != null ? oe : "POST",
|
11646
11650
|
url: G,
|
11647
11651
|
params: ne.value,
|
11648
11652
|
data: ge.value
|
@@ -11660,9 +11664,9 @@ const getProps$p = () => ({
|
|
11660
11664
|
s.store.setIsUpdatingRequesting(s.formID, !1);
|
11661
11665
|
}
|
11662
11666
|
}
|
11663
|
-
async function
|
11664
|
-
var
|
11665
|
-
const G = (
|
11667
|
+
async function ie() {
|
11668
|
+
var W, Z, re, se, oe, de, ne, ge;
|
11669
|
+
const G = (W = s.varButtonCopy.value) == null ? void 0 : W.cmd;
|
11666
11670
|
if (!G) {
|
11667
11671
|
KgLogger.error("[KgSubmit] '\u590D\u5236\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
|
11668
11672
|
VarButton: s.varButtonCopy.value
|
@@ -11671,11 +11675,11 @@ const getProps$p = () => ({
|
|
11671
11675
|
}
|
11672
11676
|
try {
|
11673
11677
|
s.store.setIsCopyingRequesting(s.formID, !0);
|
11674
|
-
let pe = ref(KgUtil.parseParams(KgVarUtil.parseCommandParameter((re = (Z = s.varButtonCopy.value) == null ? void 0 : Z.cmd_prm) != null ? re : ""), s.formID, r)),
|
11678
|
+
let pe = ref(KgUtil.parseParams(KgVarUtil.parseCommandParameter((re = (Z = s.varButtonCopy.value) == null ? void 0 : Z.cmd_prm) != null ? re : ""), s.formID, r)), ve = ref(KgUtil.parseParams({
|
11675
11679
|
...(se = o.selectedFirstRow.value) != null ? se : {},
|
11676
11680
|
...toRaw(i.model.value)
|
11677
11681
|
}, s.formID, r));
|
11678
|
-
if (((
|
11682
|
+
if (((oe = p.value) == null ? void 0 : oe.cpy_clear_id_flg) !== 0 && delete ve.value.id, await i.store.emit(s.formID, "beforeRequest", {
|
11679
11683
|
isCreating: s.isCreating.value,
|
11680
11684
|
isUpdating: s.isUpdating.value,
|
11681
11685
|
isCopying: s.isCopying.value,
|
@@ -11684,14 +11688,14 @@ const getProps$p = () => ({
|
|
11684
11688
|
rows: o.selectedRows.value,
|
11685
11689
|
model: i.model,
|
11686
11690
|
params: pe,
|
11687
|
-
data:
|
11691
|
+
data: ve
|
11688
11692
|
}))
|
11689
11693
|
return;
|
11690
11694
|
await httpClient().request({
|
11691
11695
|
method: (ne = (de = s.varButtonCopy.value) == null ? void 0 : de.cmd_method) != null ? ne : "POST",
|
11692
11696
|
url: G,
|
11693
11697
|
params: pe.value,
|
11694
|
-
data:
|
11698
|
+
data: ve.value
|
11695
11699
|
}), ((ge = s.varButtonCopy.value) == null ? void 0 : ge.show_success_message_flg) !== 0 && message.success(n.t("kg.copySuccess")), await i.store.emit(s.formID, "ok", {
|
11696
11700
|
isCreating: s.isCreating.value,
|
11697
11701
|
isUpdating: s.isUpdating.value,
|
@@ -11706,9 +11710,9 @@ const getProps$p = () => ({
|
|
11706
11710
|
s.store.setIsCopyingRequesting(s.formID, !1);
|
11707
11711
|
}
|
11708
11712
|
}
|
11709
|
-
async function
|
11710
|
-
var
|
11711
|
-
const G = (
|
11713
|
+
async function me() {
|
11714
|
+
var W, Z, re, se, oe, de, ne, ge, pe, ve;
|
11715
|
+
const G = (W = s.varButtonDelete.value) == null ? void 0 : W.cmd;
|
11712
11716
|
if (!G) {
|
11713
11717
|
KgLogger.error("[KgSubmit] '\u5220\u9664\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
|
11714
11718
|
VarButton: s.varButtonDelete.value
|
@@ -11718,7 +11722,7 @@ const getProps$p = () => ({
|
|
11718
11722
|
try {
|
11719
11723
|
s.store.setIsDeletingRequesting(s.formID, !0);
|
11720
11724
|
let be = ref(KgUtil.parseParams(KgVarUtil.parseCommandParameter((re = (Z = s.varButtonDelete.value) == null ? void 0 : Z.cmd_prm) != null ? re : ""), s.formID, r)), ye = ref((se = o.selectedRows.value) != null ? se : []);
|
11721
|
-
if (((
|
11725
|
+
if (((oe = s.varButtonDelete.value) == null ? void 0 : oe.del_param_clm) !== "__kg__new_delete_param" && (be = ref({
|
11722
11726
|
ids: (ne = (de = o.selectedRows.value) == null ? void 0 : de.map((Ie) => {
|
11723
11727
|
var Se, Ee, Ce;
|
11724
11728
|
return (Ce = Ie[(Ee = (Se = s.varButtonDelete.value) == null ? void 0 : Se.del_param_clm) != null ? Ee : "id"]) != null ? Ce : "";
|
@@ -11742,7 +11746,7 @@ const getProps$p = () => ({
|
|
11742
11746
|
data: ye.value
|
11743
11747
|
}, {
|
11744
11748
|
joinParamsToUrl: !0
|
11745
|
-
}), ((
|
11749
|
+
}), ((ve = s.varButtonDelete.value) == null ? void 0 : ve.show_success_message_flg) !== 0 && message.success(n.t("kg.deleteSuccess")), await l.store.emit(s.formID, "deleteOk", {
|
11746
11750
|
button: s.varButtonDelete.value,
|
11747
11751
|
rows: o.selectedRows.value
|
11748
11752
|
}), await i.store.emit(s.formID, "ok", {
|
@@ -11759,41 +11763,41 @@ const getProps$p = () => ({
|
|
11759
11763
|
s.store.setIsDeletingRequesting(s.formID, !1);
|
11760
11764
|
}
|
11761
11765
|
}
|
11762
|
-
function
|
11766
|
+
function he(G) {
|
11763
11767
|
var Z, re;
|
11764
|
-
const
|
11765
|
-
return isFunction$2(
|
11768
|
+
const W = (re = (Z = a == null ? void 0 : a.KgSubmit) == null ? void 0 : Z["KgForm.Item"]) == null ? void 0 : re[G.var_nam];
|
11769
|
+
return isFunction$2(W) ? createVNode(KgForm.Item, {
|
11766
11770
|
kgVarName: G.var_nam,
|
11767
11771
|
kgContext: KG_FORM_CONTEXT.SUBMIT,
|
11768
11772
|
kgRules: i.rules.value[G.var_nam],
|
11769
|
-
onKgSubmit:
|
11773
|
+
onKgSubmit: ee
|
11770
11774
|
}, {
|
11771
11775
|
control: ({
|
11772
11776
|
frm_id: se,
|
11773
|
-
varName:
|
11777
|
+
varName: oe,
|
11774
11778
|
props: de,
|
11775
11779
|
model: ne,
|
11776
11780
|
varVariableConfig: ge,
|
11777
11781
|
varProfileDetail: pe,
|
11778
|
-
varSubmitField:
|
11779
|
-
}) =>
|
11782
|
+
varSubmitField: ve
|
11783
|
+
}) => W({
|
11780
11784
|
frm_id: se,
|
11781
|
-
varName:
|
11785
|
+
varName: oe,
|
11782
11786
|
props: de,
|
11783
11787
|
model: ne,
|
11784
11788
|
varVariableConfig: ge,
|
11785
11789
|
varProfileDetail: pe,
|
11786
|
-
varSubmitField:
|
11790
|
+
varSubmitField: ve
|
11787
11791
|
})
|
11788
11792
|
}) : createVNode(KgForm.Item, {
|
11789
11793
|
kgVarName: G.var_nam,
|
11790
11794
|
kgContext: KG_FORM_CONTEXT.SUBMIT,
|
11791
11795
|
kgRules: i.rules.value[G.var_nam],
|
11792
|
-
onKgSubmit:
|
11796
|
+
onKgSubmit: ee
|
11793
11797
|
}, null);
|
11794
11798
|
}
|
11795
11799
|
function Te() {
|
11796
|
-
let G,
|
11800
|
+
let G, W;
|
11797
11801
|
return createVNode(KgResizable, {
|
11798
11802
|
kgType: i.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL ? "right" : "left",
|
11799
11803
|
kgMinWidth: H.value,
|
@@ -11816,12 +11820,12 @@ const getProps$p = () => ({
|
|
11816
11820
|
ref: Y
|
11817
11821
|
}, [M.value.length > 0 && createVNode(Row, {
|
11818
11822
|
gutter: 12
|
11819
|
-
}, _isSlot$9(G = M.value.map(
|
11823
|
+
}, _isSlot$9(G = M.value.map(he)) ? G : {
|
11820
11824
|
default: () => [G]
|
11821
11825
|
}), L.value.length > 0 && B.value.length > 0 && createVNode(Divider, null, null), R.value.length > 0 && createVNode(Row, {
|
11822
11826
|
gutter: 12
|
11823
|
-
}, _isSlot$9(
|
11824
|
-
default: () => [
|
11827
|
+
}, _isSlot$9(W = R.value.map(he)) ? W : {
|
11828
|
+
default: () => [W]
|
11825
11829
|
}), u.value && createVNode("div", {
|
11826
11830
|
style: "text-align: center; padding: 6px 0 12px;"
|
11827
11831
|
}, [n.t("kg.confirmDelete")])])]
|
@@ -11830,12 +11834,12 @@ const getProps$p = () => ({
|
|
11830
11834
|
});
|
11831
11835
|
}
|
11832
11836
|
function ke() {
|
11833
|
-
let G,
|
11837
|
+
let G, W;
|
11834
11838
|
return createVNode("div", null, [createVNode(Button, {
|
11835
11839
|
type: "primary",
|
11836
11840
|
ghost: !I.value,
|
11837
11841
|
disabled: I.value,
|
11838
|
-
onClick:
|
11842
|
+
onClick: z
|
11839
11843
|
}, _isSlot$9(G = n.t("kg.cancel")) ? G : {
|
11840
11844
|
default: () => [G]
|
11841
11845
|
}), createVNode(Button, {
|
@@ -11843,9 +11847,9 @@ const getProps$p = () => ({
|
|
11843
11847
|
disabled: V.value,
|
11844
11848
|
loading: $.value,
|
11845
11849
|
danger: !!s.isDeleting.value,
|
11846
|
-
onClick:
|
11847
|
-
}, _isSlot$9(
|
11848
|
-
default: () => [
|
11850
|
+
onClick: ee
|
11851
|
+
}, _isSlot$9(W = n.t(s.isDeleting.value ? "kg.delete" : "kg.save")) ? W : {
|
11852
|
+
default: () => [W]
|
11849
11853
|
})]);
|
11850
11854
|
}
|
11851
11855
|
function Ae() {
|
@@ -11855,11 +11859,11 @@ const getProps$p = () => ({
|
|
11855
11859
|
}
|
11856
11860
|
function Me() {
|
11857
11861
|
return createVNode(KgSubmitHeader, {
|
11858
|
-
isFullscreen:
|
11859
|
-
"onUpdate:isFullscreen": (G) =>
|
11862
|
+
isFullscreen: te.isFullscreen,
|
11863
|
+
"onUpdate:isFullscreen": (G) => te.isFullscreen = G,
|
11860
11864
|
kgShowFullscreenButton: !u.value,
|
11861
11865
|
kgShowConfigButton: !u.value && e.kgShowConfigButton,
|
11862
|
-
onKgCancel:
|
11866
|
+
onKgCancel: z
|
11863
11867
|
}, null);
|
11864
11868
|
}
|
11865
11869
|
return onUnmounted(async () => {
|
@@ -14008,17 +14012,17 @@ function _useColumns(e) {
|
|
14008
14012
|
function B() {
|
14009
14013
|
var K, F, Y, Q, X, J;
|
14010
14014
|
if (((F = (K = v.option.value.KgTable) == null ? void 0 : K.filter) == null ? void 0 : F.on) === !0 && C.filter_flag === 1 && !((Q = (Y = t == null ? void 0 : t.value) == null ? void 0 : Y.KgTable) != null && Q.kgDisabled) && !(isNil((J = (X = t == null ? void 0 : t.value) == null ? void 0 : X.KgTable) == null ? void 0 : J.kgDisabled) && e.kgDisabled) && !(r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value) && !(y.length <= 0))
|
14011
|
-
return uniqBy(y.map((
|
14015
|
+
return uniqBy(y.map((te) => {
|
14012
14016
|
var le;
|
14013
14017
|
return {
|
14014
|
-
value: (le =
|
14018
|
+
value: (le = te == null ? void 0 : te[w]) != null ? le : "",
|
14015
14019
|
text: l({
|
14016
14020
|
column: {
|
14017
14021
|
dataIndex: w
|
14018
14022
|
},
|
14019
14023
|
index: D,
|
14020
|
-
record:
|
14021
|
-
value:
|
14024
|
+
record: te,
|
14025
|
+
value: te == null ? void 0 : te[w]
|
14022
14026
|
}, KG_TABLE_CELL_CONTEXT.TABLE_FILTER)
|
14023
14027
|
};
|
14024
14028
|
}), "value");
|
@@ -14243,13 +14247,13 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
14243
14247
|
switch (N) {
|
14244
14248
|
case "setRowSelect":
|
14245
14249
|
if (U[0] === s.formID) {
|
14246
|
-
const q = U[1],
|
14250
|
+
const q = U[1], z = U[2], ee = q[o.id.value];
|
14247
14251
|
switch (!0) {
|
14248
|
-
case (
|
14249
|
-
F([...$.value,
|
14252
|
+
case (z && !$.value.includes(ee)):
|
14253
|
+
F([...$.value, ee]);
|
14250
14254
|
break;
|
14251
|
-
case (!
|
14252
|
-
F(without$1($.value,
|
14255
|
+
case (!z && $.value.includes(ee)):
|
14256
|
+
F(without$1($.value, ee));
|
14253
14257
|
break;
|
14254
14258
|
}
|
14255
14259
|
}
|
@@ -14277,31 +14281,31 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
14277
14281
|
var N, U;
|
14278
14282
|
return (U = (N = s.varButtonSearch.value) == null ? void 0 : N.cmd) != null ? U : null;
|
14279
14283
|
}), k = computed(() => {
|
14280
|
-
var U, q,
|
14284
|
+
var U, q, z, ee, ue, ce, ie, me, he;
|
14281
14285
|
let N = {
|
14282
14286
|
pageNo: I.pageIndex,
|
14283
14287
|
pageSize: I.pageSize,
|
14284
14288
|
column: (q = (U = p.value) == null ? void 0 : U.field) != null ? q : void 0,
|
14285
14289
|
order: p.value.order === "ascend" ? "asc" : p.value.order === "descend" ? "desc" : void 0,
|
14286
|
-
...(
|
14290
|
+
...(ee = (z = l.model) == null ? void 0 : z.value) != null ? ee : {}
|
14287
14291
|
};
|
14288
14292
|
return s.varButtonSearch.value && (N = {
|
14289
14293
|
...N,
|
14290
|
-
...KgVarUtil.parseCommandParameter((
|
14291
|
-
}), (
|
14294
|
+
...KgVarUtil.parseCommandParameter((ce = (ue = s.varButtonSearch.value) == null ? void 0 : ue.cmd_prm) != null ? ce : "")
|
14295
|
+
}), (ie = s.varGridConfig.value) != null && ie.cmd_prm && (N = {
|
14292
14296
|
...N,
|
14293
|
-
...KgVarUtil.parseCommandParameter((
|
14294
|
-
}), ((
|
14297
|
+
...KgVarUtil.parseCommandParameter((me = s.varGridConfig.value.cmd_prm) != null ? me : "")
|
14298
|
+
}), ((he = s.varGridConfig.value) == null ? void 0 : he.convert_sort_field_to_under_score_flg) === 1 && N.column && (N.column = snakeCase$1(N.column)), N;
|
14295
14299
|
}), A = computed(() => {
|
14296
|
-
var N, U, q,
|
14300
|
+
var N, U, q, z;
|
14297
14301
|
if (!isNil((U = (N = a == null ? void 0 : a.value) == null ? void 0 : N.KgTable) == null ? void 0 : U.kgDisabled))
|
14298
|
-
return (
|
14302
|
+
return (z = (q = a == null ? void 0 : a.value) == null ? void 0 : q.KgTable) == null ? void 0 : z.kgDisabled;
|
14299
14303
|
if (!isNil(e.kgDisabled))
|
14300
14304
|
return e.kgDisabled;
|
14301
14305
|
}), C = computed(() => {
|
14302
|
-
var N, U, q,
|
14306
|
+
var N, U, q, z;
|
14303
14307
|
if (!isNil((U = (N = a == null ? void 0 : a.value) == null ? void 0 : N.KgTable) == null ? void 0 : U.kgCheckboxDisabled))
|
14304
|
-
return (
|
14308
|
+
return (z = (q = a == null ? void 0 : a.value) == null ? void 0 : q.KgTable) == null ? void 0 : z.kgCheckboxDisabled;
|
14305
14309
|
if (!isNil(e.kgCheckboxDisabled))
|
14306
14310
|
return e.kgCheckboxDisabled;
|
14307
14311
|
}), D = computed(() => !!A.value || y.value || !!s.isCreating.value || !!s.isUpdating.value || !!s.isCopying.value || !!s.isDeleting.value), w = computed(() => !!A.value || y.value || !!s.isCreating.value || !!s.isUpdating.value || !!s.isCopying.value || !!s.isDeleting.value || I.total === 0), O = computed(() => {
|
@@ -14405,13 +14409,13 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
14405
14409
|
}
|
14406
14410
|
function K(N = !1) {
|
14407
14411
|
KgLogger.debug(`${s.formID} | KgTable | retrieve() | \u6267\u884C\u5F00\u59CB.`);
|
14408
|
-
const U = watch(o.isReady, (
|
14409
|
-
|
14412
|
+
const U = watch(o.isReady, (z) => {
|
14413
|
+
z && (setTimeout(() => U()), q());
|
14410
14414
|
}, {
|
14411
14415
|
immediate: !0
|
14412
14416
|
});
|
14413
14417
|
async function q() {
|
14414
|
-
var
|
14418
|
+
var z, ee;
|
14415
14419
|
if (KgLogger.debug(`${s.formID} | KgTable | retrieve() | retrieveDatas() | \u6267\u884C\u5F00\u59CB.`), !T.value) {
|
14416
14420
|
KgLogger.error(`${s.formID} | KgTable | retrieve() | retrieveDatas() | \u67E5\u8BE2\u6309\u94AE\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.`, {
|
14417
14421
|
VarButton: s.varButtonSearch.value
|
@@ -14420,41 +14424,41 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
14420
14424
|
}
|
14421
14425
|
N && (I.pageIndex = 1), o.store.setIsRetrieving(s.formID, !0);
|
14422
14426
|
try {
|
14423
|
-
const
|
14427
|
+
const ue = KgUtil.parseParams(k.value, o.profileFormID.value, t), ce = ref({});
|
14424
14428
|
await o.store.emit(s.formID, "beforeRetrieve", {
|
14425
|
-
params:
|
14426
|
-
response:
|
14427
|
-
}) || (
|
14429
|
+
params: ue,
|
14430
|
+
response: ce
|
14431
|
+
}) || (ce.value = await httpClient().request({
|
14428
14432
|
method: "GET",
|
14429
14433
|
url: T.value,
|
14430
|
-
params:
|
14434
|
+
params: ue,
|
14431
14435
|
headers: {
|
14432
|
-
[KG_HEADERS.DYNAMIC_QUERY]: ((
|
14436
|
+
[KG_HEADERS.DYNAMIC_QUERY]: ((z = s.currentVarProfileMaster.value) == null ? void 0 : z.dyn_flg) === 1
|
14433
14437
|
}
|
14434
14438
|
}, {
|
14435
14439
|
successMessageMode: "none"
|
14436
14440
|
}), KgLogger.debug(`${s.formID} | KgTable | retrieve() | retrieveDatas() | \u67E5\u8BE2\u6210\u529F.`, {
|
14437
|
-
params:
|
14441
|
+
params: ue
|
14438
14442
|
}));
|
14439
14443
|
const {
|
14440
|
-
datas:
|
14441
|
-
total:
|
14442
|
-
} = E(
|
14444
|
+
datas: ie,
|
14445
|
+
total: me
|
14446
|
+
} = E(ce);
|
14443
14447
|
await o.store.emit(s.formID, "beforeSetDatas", {
|
14444
|
-
datas:
|
14445
|
-
total:
|
14446
|
-
setDatas(
|
14447
|
-
o.store.setDatas(s.formID,
|
14448
|
+
datas: ie,
|
14449
|
+
total: me,
|
14450
|
+
setDatas(he) {
|
14451
|
+
o.store.setDatas(s.formID, he);
|
14448
14452
|
}
|
14449
|
-
}), d.value = {}, o.store.setDatas(s.formID,
|
14450
|
-
page:
|
14451
|
-
datas:
|
14452
|
-
setDatas(
|
14453
|
-
o.store.setDatas(s.formID,
|
14453
|
+
}), d.value = {}, o.store.setDatas(s.formID, ie.value), I.total = me.value, H(), c.value = [], await nextTick(), ((ee = s.varGridConfig.value) == null ? void 0 : ee.check_first_row_after_retrieve) === 1 && ie.value.length > 0 && o.store.setSelectedRows(s.formID, [ie.value[0]]), await o.store.emit(s.formID, "retrieve", {
|
14454
|
+
page: ce.value,
|
14455
|
+
datas: ie,
|
14456
|
+
setDatas(he) {
|
14457
|
+
o.store.setDatas(s.formID, he);
|
14454
14458
|
}
|
14455
14459
|
}), o.store.setIsRetrieved(s.formID, !0);
|
14456
|
-
} catch (
|
14457
|
-
throw
|
14460
|
+
} catch (ue) {
|
14461
|
+
throw ue;
|
14458
14462
|
} finally {
|
14459
14463
|
o.store.setIsRetrieving(s.formID, !1);
|
14460
14464
|
}
|
@@ -14463,7 +14467,7 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
14463
14467
|
function F(N) {
|
14464
14468
|
o.store.setSelectedRows(s.formID, N.map((U) => {
|
14465
14469
|
var q;
|
14466
|
-
return (q = b.value) == null ? void 0 : q.find((
|
14470
|
+
return (q = b.value) == null ? void 0 : q.find((z) => z[o.id.value] === U);
|
14467
14471
|
}).filter((U) => !!U));
|
14468
14472
|
}
|
14469
14473
|
function Y(N) {
|
@@ -14471,27 +14475,27 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
14471
14475
|
switch (o.isMultiSelect.value) {
|
14472
14476
|
case !0:
|
14473
14477
|
{
|
14474
|
-
const
|
14475
|
-
$.value.includes(
|
14478
|
+
const z = N[o.id.value];
|
14479
|
+
$.value.includes(z) ? $.value = without$1($.value, z) : $.value = [...(U = $.value) != null ? U : [], z];
|
14476
14480
|
}
|
14477
14481
|
break;
|
14478
14482
|
case !1:
|
14479
14483
|
{
|
14480
|
-
const
|
14481
|
-
(q = $.value) != null && q.includes(
|
14484
|
+
const z = N[o.id.value];
|
14485
|
+
(q = $.value) != null && q.includes(z) ? $.value = [] : $.value = [z];
|
14482
14486
|
}
|
14483
14487
|
break;
|
14484
14488
|
}
|
14485
|
-
o.store.setSelectedRows(s.formID, $.value.map((
|
14486
|
-
var
|
14487
|
-
return (
|
14488
|
-
}).filter((
|
14489
|
+
o.store.setSelectedRows(s.formID, $.value.map((z) => {
|
14490
|
+
var ee;
|
14491
|
+
return (ee = b.value) == null ? void 0 : ee.find((ue) => ue[o.id.value] === z);
|
14492
|
+
}).filter((z) => !!z));
|
14489
14493
|
}
|
14490
14494
|
function Q(N, U) {
|
14491
14495
|
U.width = N, s.store.setVarGridDetailWidth(s.formID, U.dataIndex, N);
|
14492
14496
|
}
|
14493
|
-
async function X(N, U, q,
|
14494
|
-
switch (
|
14497
|
+
async function X(N, U, q, z) {
|
14498
|
+
switch (z.action) {
|
14495
14499
|
case "sort": {
|
14496
14500
|
p.value = q, await nextTick(), K(!0);
|
14497
14501
|
break;
|
@@ -14501,9 +14505,9 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
14501
14505
|
}
|
14502
14506
|
}
|
14503
14507
|
function J(N, U) {
|
14504
|
-
var
|
14508
|
+
var z;
|
14505
14509
|
const q = U[o.id.value];
|
14506
|
-
switch ((
|
14510
|
+
switch ((z = s.varGridConfig.value) == null ? void 0 : z.expand_accordion_flg) {
|
14507
14511
|
case 0:
|
14508
14512
|
N ? c.value = uniq([...c.value, q]) : c.value = without$1(c.value, q);
|
14509
14513
|
break;
|
@@ -14512,7 +14516,7 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
14512
14516
|
break;
|
14513
14517
|
}
|
14514
14518
|
}
|
14515
|
-
function
|
14519
|
+
function te(N, U) {
|
14516
14520
|
U !== I.pageSize ? (I.pageIndex = 1, I.pageSize = U) : I.pageIndex = N, K();
|
14517
14521
|
}
|
14518
14522
|
function le({
|
@@ -14541,18 +14545,18 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
14541
14545
|
}, null), M.value && createVNode(TableSummary.Cell, {
|
14542
14546
|
index: O.value ? 1 : 0
|
14543
14547
|
}, null), u.value.map((U, q) => {
|
14544
|
-
const
|
14545
|
-
let
|
14546
|
-
return O.value && M.value ?
|
14547
|
-
index:
|
14548
|
-
align:
|
14548
|
+
const z = String(U.dataIndex), ee = z ? s.store.getVarGridDetail(s.formID, z) : null, ue = (() => ["left", "center", "right"].includes((ee == null ? void 0 : ee.align) || "") ? ee == null ? void 0 : ee.align : "left")();
|
14549
|
+
let ce = q;
|
14550
|
+
return O.value && M.value ? ce += 2 : (O.value || M.value) && (ce += 1), createVNode(TableSummary.Cell, {
|
14551
|
+
index: ce,
|
14552
|
+
align: ue
|
14549
14553
|
}, {
|
14550
14554
|
default: () => {
|
14551
|
-
var
|
14552
|
-
return [(
|
14555
|
+
var ie, me;
|
14556
|
+
return [(me = (ie = r == null ? void 0 : r.KgTable) == null ? void 0 : ie["summary.bodyCell"]) == null ? void 0 : me.call(ie, {
|
14553
14557
|
column: U,
|
14554
|
-
index:
|
14555
|
-
varGridDetail:
|
14558
|
+
index: ce,
|
14559
|
+
varGridDetail: ee
|
14556
14560
|
})];
|
14557
14561
|
}
|
14558
14562
|
});
|
@@ -14586,8 +14590,8 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
14586
14590
|
expandColumnWidth: 28,
|
14587
14591
|
expandedRowKeys: c.value,
|
14588
14592
|
rowSelection: L.value,
|
14589
|
-
customRow: (
|
14590
|
-
onClick: (
|
14593
|
+
customRow: (z) => ({
|
14594
|
+
onClick: (ee) => H(ee, z)
|
14591
14595
|
}),
|
14592
14596
|
onResizeColumn: Q,
|
14593
14597
|
onChange: X,
|
@@ -14614,7 +14618,7 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
14614
14618
|
size: "default",
|
14615
14619
|
current: I.pageIndex,
|
14616
14620
|
pageSize: I.pageSize,
|
14617
|
-
pageSizeOptions: o.pageSizeOptions.value.map((
|
14621
|
+
pageSizeOptions: o.pageSizeOptions.value.map((z) => String(z)),
|
14618
14622
|
total: I.total,
|
14619
14623
|
showSizeChanger: !0,
|
14620
14624
|
showQuickJumper: !1,
|
@@ -14623,12 +14627,12 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
14623
14627
|
locale: {
|
14624
14628
|
page: ""
|
14625
14629
|
},
|
14626
|
-
showTotal: (
|
14627
|
-
from:
|
14628
|
-
to:
|
14629
|
-
total:
|
14630
|
+
showTotal: (z, ee) => n.t("kg.KgTable.totalText", {
|
14631
|
+
from: ee[0],
|
14632
|
+
to: ee[1],
|
14633
|
+
total: z
|
14630
14634
|
}),
|
14631
|
-
onChange: (
|
14635
|
+
onChange: (z, ee) => te(z, ee)
|
14632
14636
|
}, null)])])]);
|
14633
14637
|
};
|
14634
14638
|
}
|
@@ -16573,10 +16577,10 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
16573
16577
|
}, {
|
16574
16578
|
default: () => {
|
16575
16579
|
var X, J;
|
16576
|
-
return (J = (X = n.varProfileMasters) == null ? void 0 : X.value) == null ? void 0 : J.map((
|
16577
|
-
value:
|
16580
|
+
return (J = (X = n.varProfileMasters) == null ? void 0 : X.value) == null ? void 0 : J.map((te) => createVNode(Select.Option, {
|
16581
|
+
value: te.id
|
16578
16582
|
}, {
|
16579
|
-
default: () => [n.t(
|
16583
|
+
default: () => [n.t(te == null ? void 0 : te.prf_var_nam).value]
|
16580
16584
|
}));
|
16581
16585
|
},
|
16582
16586
|
suffixIcon: () => createVNode(CaretDownOutlined$1, {
|