@kengic/vue 0.26.3 → 0.26.5-beta.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.css +1 -1
- package/dist/kengic-vue.js +519 -457
- package/dist/src/components/KgAppSelect/index.store.d.ts +2 -2
- package/dist/src/components/KgButton/index.store.d.ts +4 -4
- package/dist/src/components/KgForm/index.store.d.ts +9 -9
- package/dist/src/components/KgSearch/index.store.d.ts +3 -3
- package/dist/src/components/KgSubmit/index.hooks.d.ts +16 -2
- package/dist/src/components/KgSubmit/index.store.d.ts +22 -14
- package/dist/src/components/KgTable/index.store.d.ts +6 -6
- package/dist/src/components/KgVar/index.store.d.ts +1 -1
- package/dist/src/consts/index.vm.d.ts +2 -1
- package/dist/src/project/src/store/modules/locale.d.ts +7 -7
- package/dist/src/project/src/utils/cache/memory.d.ts +3 -1
- package/dist/src/utils/kg-var.util.d.ts +0 -14
- package/dist/src/utils/kg.util.d.ts +13 -2
- package/package.json +1 -1
package/dist/kengic-vue.js
CHANGED
@@ -2437,7 +2437,7 @@ const emptyIcon = {
|
|
2437
2437
|
...a.data
|
2438
2438
|
}, r);
|
2439
2439
|
}
|
2440
|
-
}), version = "0.26.
|
2440
|
+
}), version = "0.26.5-beta.0";
|
2441
2441
|
var freeGlobal = typeof global == "object" && global && global.Object === Object && global;
|
2442
2442
|
const freeGlobal$1 = freeGlobal;
|
2443
2443
|
var freeSelf = typeof self == "object" && self && self.Object === Object && self, root = freeGlobal$1 || freeSelf || Function("return this")();
|
@@ -6899,7 +6899,12 @@ class KgUtil {
|
|
6899
6899
|
break;
|
6900
6900
|
}
|
6901
6901
|
case typeof l == "string": {
|
6902
|
-
s[o] = this.parseParamFromString(
|
6902
|
+
s[o] = this.parseParamFromString({
|
6903
|
+
$dayjs: n,
|
6904
|
+
formID: r,
|
6905
|
+
value: l,
|
6906
|
+
varName: o
|
6907
|
+
});
|
6903
6908
|
break;
|
6904
6909
|
}
|
6905
6910
|
default: {
|
@@ -6933,7 +6938,10 @@ class KgUtil {
|
|
6933
6938
|
s[o] = this.parseParams(l, null, n);
|
6934
6939
|
break;
|
6935
6940
|
case typeof l == "string":
|
6936
|
-
s[o] = this.parseParamFromString(
|
6941
|
+
s[o] = this.parseParamFromString({
|
6942
|
+
$dayjs: n,
|
6943
|
+
value: l
|
6944
|
+
});
|
6937
6945
|
break;
|
6938
6946
|
default:
|
6939
6947
|
s[o] = l != null ? l : null;
|
@@ -6942,24 +6950,35 @@ class KgUtil {
|
|
6942
6950
|
}), s);
|
6943
6951
|
}
|
6944
6952
|
static parseParamFromString(a) {
|
6945
|
-
var
|
6946
|
-
const
|
6947
|
-
|
6948
|
-
|
6949
|
-
|
6953
|
+
var _, d, g, m, b, v, p, E, T, C, A, k, O;
|
6954
|
+
const {
|
6955
|
+
formID: r,
|
6956
|
+
$dayjs: n,
|
6957
|
+
value: u,
|
6958
|
+
varName: s
|
6959
|
+
} = a != null ? a : {}, o = useKg(), l = r ? useKgVar(r) : null, c = /(.*)?({(.*)?})(.*)?/.exec(u);
|
6960
|
+
if (c) {
|
6961
|
+
const D = c[2], y = c[2].slice(1, -1);
|
6962
|
+
switch (D) {
|
6950
6963
|
case "{WAREHOUSE}":
|
6951
|
-
return
|
6964
|
+
return u.replace(D, (d = (_ = useKgWarehouse().warehouse.value) == null ? void 0 : _.whId) != null ? d : "");
|
6952
6965
|
case "{LOCALE}":
|
6953
|
-
return
|
6966
|
+
return u.replace(D, (m = (g = o.locale) == null ? void 0 : g.value) != null ? m : "");
|
6967
|
+
case "{NOW}":
|
6968
|
+
return n ? u.replace(D, n().format("YYYY-MM-DD HH:mm:ss")) : u;
|
6969
|
+
case "{USER}":
|
6970
|
+
return u.replace(D, (T = (E = (p = (v = (b = o.store).getUseUserStore) == null ? void 0 : v.call(b)) == null ? void 0 : p.userInfo) == null ? void 0 : E.username) != null ? T : "");
|
6971
|
+
case "{ROW}":
|
6972
|
+
return l && s ? u.replace(D, (C = l.kgTable.selectedRow.value) == null ? void 0 : C[s]) : u;
|
6954
6973
|
default: {
|
6955
|
-
if (
|
6956
|
-
return (
|
6974
|
+
if (y.endsWith(":query"))
|
6975
|
+
return (O = (k = (A = o.router.value) == null ? void 0 : A.currentRoute) == null ? void 0 : k.query[y.slice(0, -6)]) != null ? O : "";
|
6957
6976
|
break;
|
6958
6977
|
}
|
6959
6978
|
}
|
6960
|
-
return
|
6979
|
+
return u;
|
6961
6980
|
} else
|
6962
|
-
return
|
6981
|
+
return u;
|
6963
6982
|
}
|
6964
6983
|
static parseParamFromDayjs(a) {
|
6965
6984
|
const {
|
@@ -7143,87 +7162,78 @@ class KgVarUtil {
|
|
7143
7162
|
return r;
|
7144
7163
|
}
|
7145
7164
|
static transformFormItemDefaultValue(a) {
|
7146
|
-
var b, v, p, E, T;
|
7147
7165
|
const {
|
7148
7166
|
formID: r,
|
7149
7167
|
varName: n,
|
7150
7168
|
$dayjs: u,
|
7151
7169
|
value: s,
|
7152
7170
|
buttonVarName: o
|
7153
|
-
} = a != null ? a : {}, l =
|
7154
|
-
let
|
7155
|
-
|
7156
|
-
|
7157
|
-
|
7158
|
-
|
7159
|
-
|
7160
|
-
|
7161
|
-
case "{USER}":
|
7162
|
-
_ = _.replace("{USER}", (E = (p = (v = (b = l.store).getUseUserStore) == null ? void 0 : v.call(b)) == null ? void 0 : p.userInfo) == null ? void 0 : E.username);
|
7163
|
-
break;
|
7164
|
-
case "{ROW}":
|
7165
|
-
_ = _.replace("{ROW}", (T = c.kgTable.selectedRow.value) == null ? void 0 : T[n]);
|
7166
|
-
break;
|
7167
|
-
}
|
7168
|
-
const g = c.getVarConfigControl({
|
7171
|
+
} = a != null ? a : {}, l = useKgVar(r);
|
7172
|
+
let c = KgUtil.parseParamFromString({
|
7173
|
+
value: s,
|
7174
|
+
formID: r,
|
7175
|
+
varName: n,
|
7176
|
+
$dayjs: u
|
7177
|
+
});
|
7178
|
+
const _ = l.getVarConfigControl({
|
7169
7179
|
buttonVarName: o,
|
7170
7180
|
varName: n
|
7171
7181
|
});
|
7172
|
-
if (!
|
7173
|
-
return
|
7174
|
-
const
|
7175
|
-
switch (
|
7182
|
+
if (!_)
|
7183
|
+
return c;
|
7184
|
+
const d = _.ctrl_typ || KG__VAR_CONFIG_CONTROL__CONTROL_TYPE.INPUT;
|
7185
|
+
switch (d) {
|
7176
7186
|
case KG__VAR_CONFIG_CONTROL__CONTROL_TYPE.INPUT:
|
7177
7187
|
case KG__VAR_CONFIG_CONTROL__CONTROL_TYPE.INPUT_PASSWORD:
|
7178
7188
|
case KG__VAR_CONFIG_CONTROL__CONTROL_TYPE.TEXT_AREA:
|
7179
|
-
return isNil(
|
7189
|
+
return isNil(c) ? null : String(c);
|
7180
7190
|
case KG__VAR_CONFIG_CONTROL__CONTROL_TYPE.INPUT_NUMBER: {
|
7181
|
-
if (isNil(
|
7191
|
+
if (isNil(c))
|
7182
7192
|
return;
|
7183
|
-
const
|
7184
|
-
if (Number.isNaN(
|
7185
|
-
____ERROR____(`| \u63A7\u4EF6\u7684\u503C\u975E\u6CD5 | ${
|
7193
|
+
const g = Number(c);
|
7194
|
+
if (Number.isNaN(g)) {
|
7195
|
+
____ERROR____(`| \u63A7\u4EF6\u7684\u503C\u975E\u6CD5 | ${d} \u63A7\u4EF6\u7684\u503C\u5FC5\u987B\u4E3A\u6570\u5B57\u7C7B\u578B.`, {
|
7186
7196
|
formID: r,
|
7187
7197
|
varName: n,
|
7188
|
-
value:
|
7198
|
+
value: c
|
7189
7199
|
});
|
7190
7200
|
return;
|
7191
7201
|
}
|
7192
|
-
return
|
7202
|
+
return g;
|
7193
7203
|
}
|
7194
7204
|
case KG__VAR_CONFIG_CONTROL__CONTROL_TYPE.CHECKBOX:
|
7195
7205
|
case KG__VAR_CONFIG_CONTROL__CONTROL_TYPE.SWITCH: {
|
7196
|
-
if (isNil(
|
7206
|
+
if (isNil(c))
|
7197
7207
|
return 0;
|
7198
|
-
const
|
7199
|
-
if (Number.isNaN(
|
7200
|
-
____ERROR____(`| \u63A7\u4EF6\u7684\u503C\u975E\u6CD5 | ${
|
7208
|
+
const g = Number(c);
|
7209
|
+
if (Number.isNaN(g)) {
|
7210
|
+
____ERROR____(`| \u63A7\u4EF6\u7684\u503C\u975E\u6CD5 | ${d} \u63A7\u4EF6\u7684\u503C\u5FC5\u987B\u4E3A\u6570\u5B57\u7C7B\u578B.`, {
|
7201
7211
|
formID: r,
|
7202
7212
|
varName: n,
|
7203
|
-
value:
|
7213
|
+
value: c
|
7204
7214
|
});
|
7205
7215
|
return;
|
7206
7216
|
}
|
7207
|
-
if (![0, 1].includes(
|
7208
|
-
____ERROR____(`| \u63A7\u4EF6\u7684\u503C\u975E\u6CD5 | ${
|
7217
|
+
if (![0, 1].includes(g)) {
|
7218
|
+
____ERROR____(`| \u63A7\u4EF6\u7684\u503C\u975E\u6CD5 | ${d} \u63A7\u4EF6\u7684\u503C\u5FC5\u987B\u4E3A 0 \u6216 1.`, {
|
7209
7219
|
formID: r,
|
7210
7220
|
varName: n,
|
7211
|
-
value:
|
7221
|
+
value: c
|
7212
7222
|
});
|
7213
7223
|
return;
|
7214
7224
|
}
|
7215
|
-
return
|
7225
|
+
return g;
|
7216
7226
|
}
|
7217
7227
|
case KG__VAR_CONFIG_CONTROL__CONTROL_TYPE.DATE_TIME: {
|
7218
|
-
if (isNil(
|
7228
|
+
if (isNil(c) || c.trim() === "")
|
7219
7229
|
return;
|
7220
|
-
const
|
7221
|
-
if (
|
7222
|
-
return
|
7223
|
-
____ERROR____(`| \u63A7\u4EF6\u7684\u503C\u975E\u6CD5 | ${
|
7230
|
+
const g = u(`1900-01-01 ${c}`);
|
7231
|
+
if (g != null && g.isValid())
|
7232
|
+
return g;
|
7233
|
+
____ERROR____(`| \u63A7\u4EF6\u7684\u503C\u975E\u6CD5 | ${d} \u63A7\u4EF6\u7684\u503C\u5FC5\u987B\u4E3A\u65F6\u95F4\u7C7B\u578B.`, {
|
7224
7234
|
formID: r,
|
7225
7235
|
varName: n,
|
7226
|
-
value:
|
7236
|
+
value: c
|
7227
7237
|
});
|
7228
7238
|
return;
|
7229
7239
|
}
|
@@ -7232,94 +7242,94 @@ class KgVarUtil {
|
|
7232
7242
|
case KG__VAR_CONFIG_CONTROL__CONTROL_TYPE.DATE_WEEK:
|
7233
7243
|
case KG__VAR_CONFIG_CONTROL__CONTROL_TYPE.DATE_MONTH:
|
7234
7244
|
case KG__VAR_CONFIG_CONTROL__CONTROL_TYPE.DATE_YEAR: {
|
7235
|
-
if (isNil(
|
7245
|
+
if (isNil(c))
|
7236
7246
|
return;
|
7237
|
-
const
|
7238
|
-
if (
|
7239
|
-
return
|
7240
|
-
____ERROR____(`| \u63A7\u4EF6\u7684\u503C\u975E\u6CD5 | ${
|
7247
|
+
const g = u(c);
|
7248
|
+
if (g != null && g.isValid())
|
7249
|
+
return g;
|
7250
|
+
____ERROR____(`| \u63A7\u4EF6\u7684\u503C\u975E\u6CD5 | ${d} \u63A7\u4EF6\u7684\u503C\u5FC5\u987B\u4E3A\u65E5\u671F\u7C7B\u578B.`, {
|
7241
7251
|
formID: r,
|
7242
7252
|
varName: n,
|
7243
|
-
value:
|
7253
|
+
value: c
|
7244
7254
|
});
|
7245
7255
|
return;
|
7246
7256
|
}
|
7247
7257
|
case KG__VAR_CONFIG_CONTROL__CONTROL_TYPE.SELECT_MULTIPLE:
|
7248
7258
|
case KG__VAR_CONFIG_CONTROL__CONTROL_TYPE.CHECKBOX_GROUP: {
|
7249
|
-
if (isNil(
|
7259
|
+
if (isNil(c))
|
7250
7260
|
return [];
|
7251
7261
|
try {
|
7252
|
-
const
|
7253
|
-
if (!isArray$2(
|
7254
|
-
____ERROR____(`| \u63A7\u4EF6\u7684\u503C\u975E\u6CD5 | ${
|
7262
|
+
const g = JSON.parse(c);
|
7263
|
+
if (!isArray$2(g)) {
|
7264
|
+
____ERROR____(`| \u63A7\u4EF6\u7684\u503C\u975E\u6CD5 | ${d} \u63A7\u4EF6\u7684\u503C\u5FC5\u987B\u4E3A\u6570\u7EC4\u7C7B\u578B.`, {
|
7255
7265
|
formID: r,
|
7256
7266
|
varName: n,
|
7257
|
-
value:
|
7267
|
+
value: c
|
7258
7268
|
});
|
7259
7269
|
return;
|
7260
7270
|
}
|
7261
|
-
const
|
7262
|
-
switch (
|
7271
|
+
const m = l.store.getVarConfigPossibility(r, n);
|
7272
|
+
switch (m == null ? void 0 : m.val_data_type) {
|
7263
7273
|
case KG__VAR_CONFIG_POSSIBILITY__VALUE_DATA_TYPE.NUMBER: {
|
7264
|
-
const
|
7265
|
-
if (
|
7266
|
-
____ERROR____(`| \u63A7\u4EF6\u7684\u503C\u975E\u6CD5 | ${
|
7274
|
+
const b = g.map((v) => Number(v));
|
7275
|
+
if (b.some((v) => Number.isNaN(b))) {
|
7276
|
+
____ERROR____(`| \u63A7\u4EF6\u7684\u503C\u975E\u6CD5 | ${d} \u63A7\u4EF6\u7684\u503C\u5FC5\u987B\u4E3A number \u6570\u7EC4\u7C7B\u578B.`, {
|
7267
7277
|
formID: r,
|
7268
7278
|
varName: n,
|
7269
|
-
value:
|
7270
|
-
VarConfigPossibility:
|
7279
|
+
value: c,
|
7280
|
+
VarConfigPossibility: m
|
7271
7281
|
});
|
7272
7282
|
return;
|
7273
7283
|
}
|
7274
|
-
return
|
7284
|
+
return b;
|
7275
7285
|
}
|
7276
7286
|
case KG__VAR_CONFIG_POSSIBILITY__VALUE_DATA_TYPE.BOOLEAN:
|
7277
|
-
return
|
7287
|
+
return g.map((b) => Boolean(b));
|
7278
7288
|
case KG__VAR_CONFIG_POSSIBILITY__VALUE_DATA_TYPE.STRING:
|
7279
|
-
return
|
7289
|
+
return g.map((b) => String(b));
|
7280
7290
|
case KG__VAR_CONFIG_POSSIBILITY__VALUE_DATA_TYPE.DEFAULT:
|
7281
|
-
return
|
7291
|
+
return g;
|
7282
7292
|
default:
|
7283
|
-
return
|
7293
|
+
return g;
|
7284
7294
|
}
|
7285
7295
|
} catch {
|
7286
|
-
____ERROR____(`| \u63A7\u4EF6\u7684\u503C\u975E\u6CD5 | ${
|
7296
|
+
____ERROR____(`| \u63A7\u4EF6\u7684\u503C\u975E\u6CD5 | ${d} \u63A7\u4EF6\u7684\u503C\u5FC5\u987B\u4E3A\u6570\u7EC4\u7C7B\u578B.`, {
|
7287
7297
|
formID: r,
|
7288
7298
|
varName: n,
|
7289
|
-
value:
|
7299
|
+
value: c
|
7290
7300
|
});
|
7291
7301
|
return;
|
7292
7302
|
}
|
7293
7303
|
}
|
7294
7304
|
case KG__VAR_CONFIG_CONTROL__CONTROL_TYPE.SELECT: {
|
7295
|
-
if (isNil(
|
7305
|
+
if (isNil(c))
|
7296
7306
|
return;
|
7297
|
-
const
|
7298
|
-
switch (
|
7307
|
+
const g = l.store.getVarConfigPossibility(r, n);
|
7308
|
+
switch (g == null ? void 0 : g.val_data_type) {
|
7299
7309
|
case KG__VAR_CONFIG_POSSIBILITY__VALUE_DATA_TYPE.NUMBER: {
|
7300
|
-
const
|
7301
|
-
if (Number.isNaN(
|
7302
|
-
____ERROR____(`| \u63A7\u4EF6\u7684\u503C\u975E\u6CD5 | ${
|
7310
|
+
const m = Number(c);
|
7311
|
+
if (Number.isNaN(m)) {
|
7312
|
+
____ERROR____(`| \u63A7\u4EF6\u7684\u503C\u975E\u6CD5 | ${d} \u63A7\u4EF6\u7684\u503C\u5FC5\u987B\u4E3A\u6570\u5B57\u7C7B\u578B.`, {
|
7303
7313
|
formID: r,
|
7304
7314
|
varName: n,
|
7305
|
-
value:
|
7306
|
-
VarConfigPossibility:
|
7315
|
+
value: c,
|
7316
|
+
VarConfigPossibility: g
|
7307
7317
|
});
|
7308
7318
|
return;
|
7309
7319
|
}
|
7310
|
-
return
|
7320
|
+
return m;
|
7311
7321
|
}
|
7312
7322
|
case KG__VAR_CONFIG_POSSIBILITY__VALUE_DATA_TYPE.BOOLEAN:
|
7313
|
-
return Boolean(
|
7323
|
+
return Boolean(c);
|
7314
7324
|
case KG__VAR_CONFIG_POSSIBILITY__VALUE_DATA_TYPE.STRING:
|
7315
|
-
return String(
|
7325
|
+
return String(c);
|
7316
7326
|
case KG__VAR_CONFIG_POSSIBILITY__VALUE_DATA_TYPE.DEFAULT:
|
7317
|
-
return
|
7327
|
+
return c;
|
7318
7328
|
}
|
7319
7329
|
break;
|
7320
7330
|
}
|
7321
7331
|
default:
|
7322
|
-
return
|
7332
|
+
return c;
|
7323
7333
|
}
|
7324
7334
|
}
|
7325
7335
|
static transformFormItemDynamicQueryOperator(a) {
|
@@ -7673,7 +7683,12 @@ class KgVarUtil {
|
|
7673
7683
|
b[F] = void 0;
|
7674
7684
|
break;
|
7675
7685
|
}
|
7676
|
-
let z = KgUtil.parseParamFromString(
|
7686
|
+
let z = KgUtil.parseParamFromString({
|
7687
|
+
$dayjs: o,
|
7688
|
+
formID: u,
|
7689
|
+
value: M,
|
7690
|
+
varName: F
|
7691
|
+
});
|
7677
7692
|
switch (w) {
|
7678
7693
|
case KG_DYNAMIC_QUERY_OPERATOR.NE: {
|
7679
7694
|
z = ` AND (${R} <> N'${z}')`;
|
@@ -9101,10 +9116,12 @@ class AesEncryption {
|
|
9101
9116
|
};
|
9102
9117
|
}
|
9103
9118
|
encryptByAES(a) {
|
9104
|
-
|
9119
|
+
var r;
|
9120
|
+
return aes.exports.encrypt(a, (r = this.key) != null ? r : "", this.getOptions).toString();
|
9105
9121
|
}
|
9106
9122
|
decryptByAES(a) {
|
9107
|
-
|
9123
|
+
var r;
|
9124
|
+
return aes.exports.decrypt(a, (r = this.key) != null ? r : "", this.getOptions).toString(UTF8);
|
9108
9125
|
}
|
9109
9126
|
}
|
9110
9127
|
function encryptByBase64(e) {
|
@@ -9475,8 +9492,8 @@ function onEventFactory(e, a, r) {
|
|
9475
9492
|
const useKgAppSelectStore = defineStore("KgAppSelect", {
|
9476
9493
|
state: () => ({
|
9477
9494
|
currentApp: null,
|
9478
|
-
|
9479
|
-
|
9495
|
+
gotoAppEventListenerMap: /* @__PURE__ */ new Map(),
|
9496
|
+
gotoPathEventListenerMap: /* @__PURE__ */ new Map()
|
9480
9497
|
}),
|
9481
9498
|
getters: {
|
9482
9499
|
getCurrentApp() {
|
@@ -9487,13 +9504,13 @@ const useKgAppSelectStore = defineStore("KgAppSelect", {
|
|
9487
9504
|
addEventListener(e, a) {
|
9488
9505
|
switch (e) {
|
9489
9506
|
case "gotoApp": {
|
9490
|
-
const r = this.
|
9491
|
-
this.
|
9507
|
+
const r = this.gotoAppEventListenerMap.get("0");
|
9508
|
+
this.gotoAppEventListenerMap.set("0", [...r != null ? r : [], a]);
|
9492
9509
|
break;
|
9493
9510
|
}
|
9494
9511
|
case "gotoPath": {
|
9495
|
-
const r = this.
|
9496
|
-
this.
|
9512
|
+
const r = this.gotoPathEventListenerMap.get("0");
|
9513
|
+
this.gotoPathEventListenerMap.set("0", [...r != null ? r : [], a]);
|
9497
9514
|
break;
|
9498
9515
|
}
|
9499
9516
|
}
|
@@ -9502,17 +9519,17 @@ const useKgAppSelectStore = defineStore("KgAppSelect", {
|
|
9502
9519
|
switch (e) {
|
9503
9520
|
case "gotoApp":
|
9504
9521
|
if (a) {
|
9505
|
-
const r = this.
|
9506
|
-
this.
|
9522
|
+
const r = this.gotoAppEventListenerMap.get("0");
|
9523
|
+
this.gotoAppEventListenerMap.set("0", without$1(r, a));
|
9507
9524
|
} else
|
9508
|
-
this.
|
9525
|
+
this.gotoAppEventListenerMap.set("0", []);
|
9509
9526
|
break;
|
9510
9527
|
case "gotoPath":
|
9511
9528
|
if (a) {
|
9512
|
-
const r = this.
|
9513
|
-
this.
|
9529
|
+
const r = this.gotoPathEventListenerMap.get("0");
|
9530
|
+
this.gotoPathEventListenerMap.set("0", without$1(r, a));
|
9514
9531
|
} else
|
9515
|
-
this.
|
9532
|
+
this.gotoPathEventListenerMap.set("0", []);
|
9516
9533
|
break;
|
9517
9534
|
}
|
9518
9535
|
},
|
@@ -9520,10 +9537,10 @@ const useKgAppSelectStore = defineStore("KgAppSelect", {
|
|
9520
9537
|
let r, n = Promise.resolve(!1);
|
9521
9538
|
switch (e) {
|
9522
9539
|
case "gotoApp":
|
9523
|
-
r = this.
|
9540
|
+
r = this.gotoAppEventListenerMap.get("0");
|
9524
9541
|
break;
|
9525
9542
|
case "gotoPath":
|
9526
|
-
r = this.
|
9543
|
+
r = this.gotoPathEventListenerMap.get("0");
|
9527
9544
|
break;
|
9528
9545
|
}
|
9529
9546
|
if (r)
|
@@ -13016,7 +13033,7 @@ const getProps$L = () => ({
|
|
13016
13033
|
name: "KgLayoutHeaderLocale",
|
13017
13034
|
props: getProps$L(),
|
13018
13035
|
setup(e) {
|
13019
|
-
const a = ref([]), r = computed(() =>
|
13036
|
+
const a = ref([]), r = computed(() => ({
|
13020
13037
|
en,
|
13021
13038
|
es_ES,
|
13022
13039
|
fr_FR,
|
@@ -13024,7 +13041,7 @@ const getProps$L = () => ({
|
|
13024
13041
|
ko_KR,
|
13025
13042
|
vi_VN,
|
13026
13043
|
zh_CN
|
13027
|
-
}
|
13044
|
+
})), {
|
13028
13045
|
changeLocale: n,
|
13029
13046
|
getLocale: u
|
13030
13047
|
} = useLocale();
|
@@ -14323,7 +14340,7 @@ function useKgFormItemSelect(e) {
|
|
14323
14340
|
try {
|
14324
14341
|
_.value = !0;
|
14325
14342
|
const q = KgUtil.parseParams(b.value, null, r);
|
14326
|
-
if (!await s.kgForm.store.emit(s.formID, "
|
14343
|
+
if (!await s.kgForm.store.emit(s.formID, "onSelectBeforeRequest", {
|
14327
14344
|
context: (R = a.kgContext) != null ? R : KG_FORM_CONTEXT.SUBMIT,
|
14328
14345
|
params: q,
|
14329
14346
|
response: k,
|
@@ -15481,13 +15498,13 @@ const KgFormItem = defineComponent({
|
|
15481
15498
|
}
|
15482
15499
|
}), useKgFormStore = defineStore("KgForm", {
|
15483
15500
|
state: () => ({
|
15484
|
-
|
15485
|
-
|
15486
|
-
|
15487
|
-
|
15488
|
-
|
15489
|
-
|
15490
|
-
|
15501
|
+
changeEventListenerMap: /* @__PURE__ */ new Map(),
|
15502
|
+
lookupBeforeOkEventListenerMap: /* @__PURE__ */ new Map(),
|
15503
|
+
lookupBeforeOpenEventListenerMap: /* @__PURE__ */ new Map(),
|
15504
|
+
lookupOkEventListenerMap: /* @__PURE__ */ new Map(),
|
15505
|
+
selectBeforeRequestEventListenerMap: /* @__PURE__ */ new Map(),
|
15506
|
+
selectBeforeSetDatasEventListenerMap: /* @__PURE__ */ new Map(),
|
15507
|
+
selectChangeEventListenerMap: /* @__PURE__ */ new Map()
|
15491
15508
|
}),
|
15492
15509
|
getters: {},
|
15493
15510
|
actions: {
|
@@ -15496,38 +15513,38 @@ const KgFormItem = defineComponent({
|
|
15496
15513
|
addEventListener(e, a, r) {
|
15497
15514
|
switch (a) {
|
15498
15515
|
case "change": {
|
15499
|
-
const n = this.
|
15500
|
-
this.
|
15516
|
+
const n = this.changeEventListenerMap.get(e);
|
15517
|
+
this.changeEventListenerMap.set(e, [...n != null ? n : [], r]);
|
15501
15518
|
break;
|
15502
15519
|
}
|
15503
|
-
case "
|
15504
|
-
const n = this.
|
15505
|
-
this.
|
15520
|
+
case "onSelectBeforeRequest": {
|
15521
|
+
const n = this.selectBeforeRequestEventListenerMap.get(e);
|
15522
|
+
this.selectBeforeRequestEventListenerMap.set(e, [...n != null ? n : [], r]);
|
15506
15523
|
break;
|
15507
15524
|
}
|
15508
15525
|
case "selectBeforeSetDatas": {
|
15509
|
-
const n = this.
|
15510
|
-
this.
|
15526
|
+
const n = this.selectBeforeSetDatasEventListenerMap.get(e);
|
15527
|
+
this.selectBeforeSetDatasEventListenerMap.set(e, [...n != null ? n : [], r]);
|
15511
15528
|
break;
|
15512
15529
|
}
|
15513
15530
|
case "selectChange": {
|
15514
|
-
const n = this.
|
15515
|
-
this.
|
15531
|
+
const n = this.selectChangeEventListenerMap.get(e);
|
15532
|
+
this.selectChangeEventListenerMap.set(e, [...n != null ? n : [], r]);
|
15516
15533
|
break;
|
15517
15534
|
}
|
15518
15535
|
case "lookupBeforeOpen": {
|
15519
|
-
const n = this.
|
15520
|
-
this.
|
15536
|
+
const n = this.lookupBeforeOpenEventListenerMap.get(e);
|
15537
|
+
this.lookupBeforeOpenEventListenerMap.set(e, [...n != null ? n : [], r]);
|
15521
15538
|
break;
|
15522
15539
|
}
|
15523
15540
|
case "lookupBeforeOk": {
|
15524
|
-
const n = this.
|
15525
|
-
this.
|
15541
|
+
const n = this.lookupBeforeOkEventListenerMap.get(e);
|
15542
|
+
this.lookupBeforeOkEventListenerMap.set(e, [...n != null ? n : [], r]);
|
15526
15543
|
break;
|
15527
15544
|
}
|
15528
15545
|
case "lookupOk": {
|
15529
|
-
const n = this.
|
15530
|
-
this.
|
15546
|
+
const n = this.lookupOkEventListenerMap.get(e);
|
15547
|
+
this.lookupOkEventListenerMap.set(e, [...n != null ? n : [], r]);
|
15531
15548
|
break;
|
15532
15549
|
}
|
15533
15550
|
}
|
@@ -15538,25 +15555,25 @@ const KgFormItem = defineComponent({
|
|
15538
15555
|
let n, u = Promise.resolve(!1);
|
15539
15556
|
switch (a) {
|
15540
15557
|
case "change":
|
15541
|
-
n = this.
|
15558
|
+
n = this.changeEventListenerMap.get(e);
|
15542
15559
|
break;
|
15543
|
-
case "
|
15544
|
-
n = this.
|
15560
|
+
case "onSelectBeforeRequest":
|
15561
|
+
n = this.selectBeforeRequestEventListenerMap.get(e);
|
15545
15562
|
break;
|
15546
15563
|
case "selectBeforeSetDatas":
|
15547
|
-
n = this.
|
15564
|
+
n = this.selectBeforeSetDatasEventListenerMap.get(e);
|
15548
15565
|
break;
|
15549
15566
|
case "selectChange":
|
15550
|
-
n = this.
|
15567
|
+
n = this.selectChangeEventListenerMap.get(e);
|
15551
15568
|
break;
|
15552
15569
|
case "lookupBeforeOpen":
|
15553
|
-
n = this.
|
15570
|
+
n = this.lookupBeforeOpenEventListenerMap.get(e);
|
15554
15571
|
break;
|
15555
15572
|
case "lookupBeforeOk":
|
15556
|
-
n = this.
|
15573
|
+
n = this.lookupBeforeOkEventListenerMap.get(e);
|
15557
15574
|
break;
|
15558
15575
|
case "lookupOk":
|
15559
|
-
n = this.
|
15576
|
+
n = this.lookupOkEventListenerMap.get(e);
|
15560
15577
|
break;
|
15561
15578
|
}
|
15562
15579
|
if (n) {
|
@@ -15573,52 +15590,52 @@ const KgFormItem = defineComponent({
|
|
15573
15590
|
switch (a) {
|
15574
15591
|
case "change":
|
15575
15592
|
if (r) {
|
15576
|
-
const n = this.
|
15577
|
-
this.
|
15593
|
+
const n = this.changeEventListenerMap.get(e);
|
15594
|
+
this.changeEventListenerMap.set(e, without$1(n, r));
|
15578
15595
|
} else
|
15579
|
-
this.
|
15596
|
+
this.changeEventListenerMap.set(e, []);
|
15580
15597
|
break;
|
15581
|
-
case "
|
15598
|
+
case "onSelectBeforeRequest":
|
15582
15599
|
if (r) {
|
15583
|
-
const n = this.
|
15584
|
-
this.
|
15600
|
+
const n = this.selectBeforeRequestEventListenerMap.get(e);
|
15601
|
+
this.selectBeforeRequestEventListenerMap.set(e, without$1(n, r));
|
15585
15602
|
} else
|
15586
|
-
this.
|
15603
|
+
this.selectChangeEventListenerMap.set(e, []);
|
15587
15604
|
break;
|
15588
15605
|
case "selectBeforeSetDatas":
|
15589
15606
|
if (r) {
|
15590
|
-
const n = this.
|
15591
|
-
this.
|
15607
|
+
const n = this.selectBeforeSetDatasEventListenerMap.get(e);
|
15608
|
+
this.selectBeforeSetDatasEventListenerMap.set(e, without$1(n, r));
|
15592
15609
|
} else
|
15593
|
-
this.
|
15610
|
+
this.selectChangeEventListenerMap.set(e, []);
|
15594
15611
|
break;
|
15595
15612
|
case "selectChange":
|
15596
15613
|
if (r) {
|
15597
|
-
const n = this.
|
15598
|
-
this.
|
15614
|
+
const n = this.selectChangeEventListenerMap.get(e);
|
15615
|
+
this.selectChangeEventListenerMap.set(e, without$1(n, r));
|
15599
15616
|
} else
|
15600
|
-
this.
|
15617
|
+
this.selectChangeEventListenerMap.set(e, []);
|
15601
15618
|
break;
|
15602
15619
|
case "lookupBeforeOpen":
|
15603
15620
|
if (r) {
|
15604
|
-
const n = this.
|
15605
|
-
this.
|
15621
|
+
const n = this.lookupBeforeOpenEventListenerMap.get(e);
|
15622
|
+
this.lookupBeforeOpenEventListenerMap.set(e, without$1(n, r));
|
15606
15623
|
} else
|
15607
|
-
this.
|
15624
|
+
this.lookupBeforeOpenEventListenerMap.set(e, []);
|
15608
15625
|
break;
|
15609
15626
|
case "lookupBeforeOk":
|
15610
15627
|
if (r) {
|
15611
|
-
const n = this.
|
15612
|
-
this.
|
15628
|
+
const n = this.lookupBeforeOkEventListenerMap.get(e);
|
15629
|
+
this.lookupBeforeOkEventListenerMap.set(e, without$1(n, r));
|
15613
15630
|
} else
|
15614
|
-
this.
|
15631
|
+
this.lookupBeforeOkEventListenerMap.set(e, []);
|
15615
15632
|
break;
|
15616
15633
|
case "lookupOk":
|
15617
15634
|
if (r) {
|
15618
|
-
const n = this.
|
15619
|
-
this.
|
15635
|
+
const n = this.lookupOkEventListenerMap.get(e);
|
15636
|
+
this.lookupOkEventListenerMap.set(e, without$1(n, r));
|
15620
15637
|
} else
|
15621
|
-
this.
|
15638
|
+
this.lookupOkEventListenerMap.set(e, []);
|
15622
15639
|
break;
|
15623
15640
|
}
|
15624
15641
|
}
|
@@ -15637,7 +15654,11 @@ function useKgForm(e) {
|
|
15637
15654
|
onLookupBeforeOk: onEventFactory(a.formID, r, "lookupBeforeOk"),
|
15638
15655
|
onLookupBeforeOpen: onEventFactory(a.formID, r, "lookupBeforeOpen"),
|
15639
15656
|
onLookupOk: onEventFactory(a.formID, r, "lookupOk"),
|
15640
|
-
onSelectBeforeRequest: onEventFactory(
|
15657
|
+
onSelectBeforeRequest: onEventFactory(
|
15658
|
+
a.formID,
|
15659
|
+
r,
|
15660
|
+
"onSelectBeforeRequest"
|
15661
|
+
),
|
15641
15662
|
onSelectBeforeSetDatas: onEventFactory(
|
15642
15663
|
a.formID,
|
15643
15664
|
r,
|
@@ -15937,7 +15958,7 @@ const getProps$B = () => ({
|
|
15937
15958
|
return new Promise((H, V) => {
|
15938
15959
|
var U;
|
15939
15960
|
const I = watch(s.kgSubmit.formModel, async (J) => {
|
15940
|
-
J && Object.keys(J).length > 0 && (setTimeout(() => I()), await s.kgSubmit.store.emit(s.formID, "
|
15961
|
+
J && Object.keys(J).length > 0 && (setTimeout(() => I()), await s.kgSubmit.store.emit(s.formID, "onOpen", {
|
15941
15962
|
isCopying: s.isCopying.value,
|
15942
15963
|
isCreating: s.isCreating.value,
|
15943
15964
|
isDeleting: s.isDeleting.value,
|
@@ -15955,7 +15976,7 @@ const getProps$B = () => ({
|
|
15955
15976
|
await s.kgSubmit.store.emit(s.formID, "close", null);
|
15956
15977
|
}
|
15957
15978
|
async function G() {
|
15958
|
-
s.kgButton.setCurrentButton(null);
|
15979
|
+
await s.kgSubmit.store.emit(s.formID, "onBeforeCancel", {}) || (await s.kgButton.setCurrentButton(null), await s.kgSubmit.store.emit(s.formID, "onCancel", {}));
|
15959
15980
|
}
|
15960
15981
|
async function B() {
|
15961
15982
|
var te, H;
|
@@ -17611,18 +17632,18 @@ const KG__DI__KG_VAR_CONFIG__HOST_FORM_ID = Symbol("KG__DI__KG_VAR_CONFIG__HOST_
|
|
17611
17632
|
switch (_) {
|
17612
17633
|
case "id_clm": {
|
17613
17634
|
const v = n.varVariables.value.map((p) => ({
|
17614
|
-
|
17615
|
-
|
17635
|
+
label: p.var_nam,
|
17636
|
+
value: p.var_nam
|
17616
17637
|
}));
|
17617
17638
|
return v.find((p) => p.value === "id") || v.unshift({
|
17618
|
-
|
17619
|
-
|
17639
|
+
label: "id",
|
17640
|
+
value: "id"
|
17620
17641
|
}), c.value = v, !0;
|
17621
17642
|
}
|
17622
17643
|
case "pg_size_opt":
|
17623
17644
|
return isArray$2(u.kgSubmit.formModel.value.pg_size_opts) && (c.value = u.kgSubmit.formModel.value.pg_size_opts.map((v) => ({
|
17624
|
-
|
17625
|
-
|
17645
|
+
label: String(v),
|
17646
|
+
value: v
|
17626
17647
|
})), u.kgSubmit.formModel.value.pg_size_opt || (u.kgSubmit.formModel.value.pg_size_opt = (g = (d = c.value[0]) == null ? void 0 : d.value) != null ? g : 10), c.value.map((v) => v.value).includes(u.kgSubmit.formModel.value.pg_size_opt) || (u.kgSubmit.formModel.value.pg_size_opt = (b = (m = c.value[0]) == null ? void 0 : m.value) != null ? b : 10)), !0;
|
17627
17648
|
}
|
17628
17649
|
break;
|
@@ -18317,7 +18338,7 @@ function _useTransferColumns(e, a) {
|
|
18317
18338
|
}
|
18318
18339
|
}, {
|
18319
18340
|
dataIndex: "display_type",
|
18320
|
-
width:
|
18341
|
+
width: 200,
|
18321
18342
|
title: u.t("display_type").value,
|
18322
18343
|
className: "input",
|
18323
18344
|
customRender: ({
|
@@ -18328,6 +18349,7 @@ function _useTransferColumns(e, a) {
|
|
18328
18349
|
value: (c = l.display_type) != null ? c : void 0,
|
18329
18350
|
"onUpdate:value": (_) => l.display_type = _,
|
18330
18351
|
allowClear: !0,
|
18352
|
+
mode: "multiple",
|
18331
18353
|
class: "kg-not-clickable"
|
18332
18354
|
}, {
|
18333
18355
|
default: () => {
|
@@ -18701,7 +18723,7 @@ const getProps$z = () => ({}), KgVarConfigModalTableVarGridMaster = defineCompon
|
|
18701
18723
|
class: "kg-flex-table",
|
18702
18724
|
size: "small",
|
18703
18725
|
scroll: {
|
18704
|
-
x: E === "left" ? "370px" : `${
|
18726
|
+
x: E === "left" ? "370px" : `${1612 + 32}px`,
|
18705
18727
|
y: "auto"
|
18706
18728
|
},
|
18707
18729
|
columns: E === "left" ? c() : _(),
|
@@ -19617,34 +19639,34 @@ const KG_TABLE_TD_DEFAULT_WIDTH = 120, KG_TABLE_TD_MIN_WIDTH = 80, KG_TABLE_TD_M
|
|
19617
19639
|
var e;
|
19618
19640
|
return KgUtil.tryParseJSON((e = varGridDetail.value) == null ? void 0 : e.display_type_properties);
|
19619
19641
|
}), getText = computed(() => {
|
19620
|
-
var e, a, r, n, u, s, o, l, c;
|
19642
|
+
var e, a, r, n, u, s, o, l, c, _, d;
|
19621
19643
|
if (props.kgValue === KG_TABLE_TEMP_ID)
|
19622
19644
|
return "";
|
19623
19645
|
let _text = props.kgValue;
|
19624
|
-
switch ((e = varGridDetail.value) == null ? void 0 : e.display_type) {
|
19646
|
+
switch ((r = (a = (e = varGridDetail.value) == null ? void 0 : e.display_type) == null ? void 0 : a.split(",")) == null ? void 0 : r[0]) {
|
19625
19647
|
case KG__VAR_GRID_DETAIL__DISPLAY_TYPE.DESC: {
|
19626
19648
|
if (!kgVar.kgTable.isShowDescription.value) {
|
19627
19649
|
_text = props.kgValue;
|
19628
19650
|
break;
|
19629
19651
|
}
|
19630
19652
|
const properties = displayTypeProperties.value;
|
19631
|
-
if ((
|
19632
|
-
let codeValue = (
|
19653
|
+
if ((n = properties.description) != null && n.codeName) {
|
19654
|
+
let codeValue = (u = properties.description) == null ? void 0 : u.codeValue;
|
19633
19655
|
codeValue || (codeValue = "`${row." + props.kgVarName + "}`");
|
19634
19656
|
try {
|
19635
|
-
const row = (
|
19657
|
+
const row = (s = props.kgRow) != null ? s : {};
|
19636
19658
|
codeValue = eval(codeValue);
|
19637
19659
|
} catch {
|
19638
19660
|
____ERROR____("KgTableBodyCell.getText() | \u63CF\u8FF0\u89E3\u6790\u5931\u8D25.", {
|
19639
19661
|
VarGridDetail: varGridDetail.value
|
19640
19662
|
});
|
19641
19663
|
}
|
19642
|
-
_text = ((
|
19643
|
-
codeName: (
|
19664
|
+
_text = ((l = kg.getDescription({
|
19665
|
+
codeName: (o = properties.description) == null ? void 0 : o.codeName,
|
19644
19666
|
codeValue
|
19645
|
-
})) == null ? void 0 :
|
19667
|
+
})) == null ? void 0 : l.shortDsc) || props.kgValue;
|
19646
19668
|
} else
|
19647
|
-
properties.dscFieldName ? _text = ((
|
19669
|
+
properties.dscFieldName ? _text = ((c = props.kgRow) == null ? void 0 : c[properties.dscFieldName]) || props.kgValue : _text = ((_ = props.kgRow) == null ? void 0 : _[`${props.kgVarName}_dsc`]) || ((d = props.kgRow) == null ? void 0 : d[`${props.kgVarName}Dsc`]) || props.kgValue;
|
19648
19670
|
break;
|
19649
19671
|
}
|
19650
19672
|
}
|
@@ -19652,26 +19674,29 @@ const KG_TABLE_TD_DEFAULT_WIDTH = 120, KG_TABLE_TD_MIN_WIDTH = 80, KG_TABLE_TD_M
|
|
19652
19674
|
`)), isNil(_text) && (_text = ""), _text;
|
19653
19675
|
}), formRef = ref(null);
|
19654
19676
|
function onClick(e) {
|
19655
|
-
var a, r;
|
19677
|
+
var a, r, n, u, s, o, l;
|
19656
19678
|
if (e.detail === 1 && !(kgVar.isCreating.value || kgVar.isUpdating.value || kgVar.isCopying.value || kgVar.isDeleting.value))
|
19657
19679
|
switch (props.kgContext) {
|
19658
19680
|
case KG_TABLE_CELL_CONTEXT.TABLE_FILTER:
|
19659
19681
|
return;
|
19660
19682
|
case KG_TABLE_CELL_CONTEXT.TABLE_CELL: {
|
19661
|
-
switch ((a = varGridDetail.value) == null ? void 0 : a.display_type) {
|
19683
|
+
switch ((n = (r = (a = varGridDetail.value) == null ? void 0 : a.display_type) == null ? void 0 : r.split(",")) == null ? void 0 : n[0]) {
|
19684
|
+
case KG__VAR_GRID_DETAIL__DISPLAY_TYPE.DESC: {
|
19685
|
+
(o = (s = (u = varGridDetail.value) == null ? void 0 : u.display_type) == null ? void 0 : s.split(",")) != null && o.includes(KG__VAR_GRID_DETAIL__DISPLAY_TYPE.UPDATE_LINK) && (e.stopPropagation(), e.preventDefault(), emit("kgUpdateLinkClick"));
|
19686
|
+
break;
|
19687
|
+
}
|
19662
19688
|
case KG__VAR_GRID_DETAIL__DISPLAY_TYPE.UPDATE_LINK:
|
19663
19689
|
e.stopPropagation(), e.preventDefault(), emit("kgUpdateLinkClick");
|
19664
19690
|
break;
|
19665
|
-
case KG__VAR_GRID_DETAIL__DISPLAY_TYPE.ROUTE_LINK:
|
19666
|
-
|
19667
|
-
|
19668
|
-
|
19669
|
-
|
19670
|
-
|
19671
|
-
|
19672
|
-
});
|
19673
|
-
}
|
19691
|
+
case KG__VAR_GRID_DETAIL__DISPLAY_TYPE.ROUTE_LINK: {
|
19692
|
+
e.stopPropagation(), e.preventDefault();
|
19693
|
+
const c = displayTypeProperties.value;
|
19694
|
+
(l = kg.router.value) == null || l.push({
|
19695
|
+
path: c.path,
|
19696
|
+
query: props.kgRow
|
19697
|
+
});
|
19674
19698
|
break;
|
19699
|
+
}
|
19675
19700
|
}
|
19676
19701
|
break;
|
19677
19702
|
}
|
@@ -19701,39 +19726,50 @@ const KG_TABLE_TD_DEFAULT_WIDTH = 120, KG_TABLE_TD_MIN_WIDTH = 80, KG_TABLE_TD_M
|
|
19701
19726
|
});
|
19702
19727
|
}
|
19703
19728
|
function renderCell() {
|
19704
|
-
var e, a, r, n, u, s, o, l, c;
|
19729
|
+
var e, a, r, n, u, s, o, l, c, _, d, g, m, b;
|
19705
19730
|
if (isSubmitting.value)
|
19706
19731
|
return renderCellForSubmit();
|
19707
|
-
switch ((e = varGridDetail.value) == null ? void 0 : e.display_type) {
|
19732
|
+
switch ((r = (a = (e = varGridDetail.value) == null ? void 0 : e.display_type) == null ? void 0 : a.split(",")) == null ? void 0 : r[0]) {
|
19708
19733
|
case KG__VAR_GRID_DETAIL__DISPLAY_TYPE.YN: {
|
19709
|
-
const
|
19734
|
+
const v = displayTypeProperties.value;
|
19710
19735
|
return createVNode(KgYesOrNo, {
|
19711
|
-
kgValue: isNil(props.kgValue) ? void 0 : props.kgValue === ((
|
19712
|
-
kgNilAsFalse:
|
19736
|
+
kgValue: isNil(props.kgValue) ? void 0 : props.kgValue === ((n = v.yValue) != null ? n : 1),
|
19737
|
+
kgNilAsFalse: v.nilAsFalse
|
19713
19738
|
}, null);
|
19714
19739
|
}
|
19715
19740
|
case KG__VAR_GRID_DETAIL__DISPLAY_TYPE.DESC: {
|
19716
|
-
const
|
19717
|
-
if (
|
19718
|
-
const
|
19741
|
+
const v = displayTypeProperties.value;
|
19742
|
+
if (v.isTag) {
|
19743
|
+
const p = (u = v.tagColors) == null ? void 0 : u.find((E) => E.value === props.kgValue);
|
19719
19744
|
return isNil(getText.value) || !String(getText.value).trim() ? renderText() : createVNode(Tag, {
|
19720
|
-
color: (
|
19745
|
+
color: (s = p == null ? void 0 : p.color) != null ? s : "default"
|
19721
19746
|
}, {
|
19722
19747
|
default: () => [getText.value]
|
19723
19748
|
});
|
19724
|
-
} else
|
19749
|
+
} else if ((c = (l = (o = varGridDetail.value) == null ? void 0 : o.display_type) == null ? void 0 : l.split(",")) != null && c.includes(KG__VAR_GRID_DETAIL__DISPLAY_TYPE.UPDATE_LINK))
|
19750
|
+
switch (props.kgContext) {
|
19751
|
+
case KG_TABLE_CELL_CONTEXT.TABLE_FILTER:
|
19752
|
+
return renderText({
|
19753
|
+
isUpdateLink: !1
|
19754
|
+
});
|
19755
|
+
case KG_TABLE_CELL_CONTEXT.TABLE_CELL:
|
19756
|
+
return renderText({
|
19757
|
+
isUpdateLink: !0
|
19758
|
+
});
|
19759
|
+
}
|
19760
|
+
else
|
19725
19761
|
return renderText();
|
19726
19762
|
}
|
19727
19763
|
case KG__VAR_GRID_DETAIL__DISPLAY_TYPE.PROGRESS: {
|
19728
|
-
const
|
19764
|
+
const v = displayTypeProperties.value, p = (d = (_ = props.kgRow) == null ? void 0 : _[v.leftColumn]) != null ? d : 0;
|
19729
19765
|
switch (props.kgContext) {
|
19730
19766
|
case KG_TABLE_CELL_CONTEXT.TABLE_FILTER:
|
19731
|
-
return
|
19767
|
+
return p;
|
19732
19768
|
case KG_TABLE_CELL_CONTEXT.TABLE_CELL:
|
19733
19769
|
return createVNode(KgProgressA, {
|
19734
|
-
kgTextWidth:
|
19735
|
-
kgLeft:
|
19736
|
-
kgRight: (
|
19770
|
+
kgTextWidth: v.textWidth,
|
19771
|
+
kgLeft: p,
|
19772
|
+
kgRight: (g = props.kgRow) == null ? void 0 : g[v.rightColumn]
|
19737
19773
|
}, null);
|
19738
19774
|
}
|
19739
19775
|
break;
|
@@ -19767,17 +19803,17 @@ const KG_TABLE_TD_DEFAULT_WIDTH = 120, KG_TABLE_TD_MIN_WIDTH = 80, KG_TABLE_TD_M
|
|
19767
19803
|
break;
|
19768
19804
|
}
|
19769
19805
|
case KG__VAR_GRID_DETAIL__DISPLAY_TYPE.IMAGE: {
|
19770
|
-
const
|
19806
|
+
const v = displayTypeProperties.value, p = (m = v.width) != null ? m : 29, E = (b = v.height) != null ? b : 29;
|
19771
19807
|
switch (props.kgContext) {
|
19772
19808
|
case KG_TABLE_CELL_CONTEXT.TABLE_FILTER:
|
19773
19809
|
return props.kgValue;
|
19774
19810
|
case KG_TABLE_CELL_CONTEXT.TABLE_CELL:
|
19775
19811
|
return createVNode(KgImage, {
|
19776
19812
|
src: props.kgValue,
|
19777
|
-
width:
|
19778
|
-
height:
|
19779
|
-
onClick: (
|
19780
|
-
|
19813
|
+
width: p,
|
19814
|
+
height: E,
|
19815
|
+
onClick: (T) => {
|
19816
|
+
T.preventDefault(), T.stopPropagation();
|
19781
19817
|
}
|
19782
19818
|
}, null);
|
19783
19819
|
}
|
@@ -20131,13 +20167,13 @@ function _useDatas() {
|
|
20131
20167
|
}
|
20132
20168
|
return a.value.forEach((s) => {
|
20133
20169
|
Object.keys(s).forEach((o) => {
|
20134
|
-
var c;
|
20170
|
+
var c, _, d;
|
20135
20171
|
const l = kgVar.kgTable.getVarGridDetail({
|
20136
20172
|
varName: o
|
20137
20173
|
});
|
20138
|
-
switch (l == null ? void 0 : l.display_type) {
|
20174
|
+
switch ((_ = (c = l == null ? void 0 : l.display_type) == null ? void 0 : c.split(",")) == null ? void 0 : _[0]) {
|
20139
20175
|
case KG__VAR_GRID_DETAIL__DISPLAY_TYPE.PROGRESS: {
|
20140
|
-
s[o] = (
|
20176
|
+
s[o] = (d = s[o]) != null ? d : 0;
|
20141
20177
|
break;
|
20142
20178
|
}
|
20143
20179
|
default: {
|
@@ -20780,18 +20816,18 @@ const KgTable$1 = "", getProps$r = () => ({
|
|
20780
20816
|
}
|
20781
20817
|
}), useKgTableStore = defineStore("KgTable", {
|
20782
20818
|
state: () => ({
|
20783
|
-
|
20784
|
-
|
20785
|
-
|
20786
|
-
|
20819
|
+
afterRequestEventListenerMap: /* @__PURE__ */ new Map(),
|
20820
|
+
beforeParseParameterEventListenerMap: /* @__PURE__ */ new Map(),
|
20821
|
+
beforeRequestEventListenerMap: /* @__PURE__ */ new Map(),
|
20822
|
+
beforeSetDatasEventListenerMap: /* @__PURE__ */ new Map(),
|
20787
20823
|
datasMap: /* @__PURE__ */ new Map(),
|
20788
20824
|
isReadyMap: /* @__PURE__ */ new Map(),
|
20789
20825
|
isRequestedMap: /* @__PURE__ */ new Map(),
|
20790
20826
|
isRequestingMap: /* @__PURE__ */ new Map(),
|
20791
20827
|
isShowDescriptionMap: /* @__PURE__ */ new Map(),
|
20792
|
-
|
20828
|
+
onReadyEventListenerMap: /* @__PURE__ */ new Map(),
|
20793
20829
|
requestParamsMap: /* @__PURE__ */ new Map(),
|
20794
|
-
|
20830
|
+
rowDoubleClickEventListenerMap: /* @__PURE__ */ new Map(),
|
20795
20831
|
rowHeightMap: /* @__PURE__ */ new Map(),
|
20796
20832
|
selectedRowKeysMap: /* @__PURE__ */ new Map(),
|
20797
20833
|
selectedRowsMap: /* @__PURE__ */ new Map(),
|
@@ -20897,33 +20933,33 @@ const KgTable$1 = "", getProps$r = () => ({
|
|
20897
20933
|
}
|
20898
20934
|
switch (a) {
|
20899
20935
|
case "ready": {
|
20900
|
-
const n = this.
|
20901
|
-
this.
|
20936
|
+
const n = this.onReadyEventListenerMap.get(e);
|
20937
|
+
this.onReadyEventListenerMap.set(e, [...n != null ? n : [], r]);
|
20902
20938
|
break;
|
20903
20939
|
}
|
20904
20940
|
case "rowDoubleClick": {
|
20905
|
-
const n = this.
|
20906
|
-
this.
|
20941
|
+
const n = this.rowDoubleClickEventListenerMap.get(e);
|
20942
|
+
this.rowDoubleClickEventListenerMap.set(e, [...n != null ? n : [], r]);
|
20907
20943
|
break;
|
20908
20944
|
}
|
20909
20945
|
case "beforeParseRequestParameter": {
|
20910
|
-
const n = this.
|
20911
|
-
this.
|
20946
|
+
const n = this.beforeParseParameterEventListenerMap.get(e);
|
20947
|
+
this.beforeParseParameterEventListenerMap.set(e, [...n != null ? n : [], r]);
|
20912
20948
|
break;
|
20913
20949
|
}
|
20914
20950
|
case "beforeRequest": {
|
20915
|
-
const n = this.
|
20916
|
-
this.
|
20951
|
+
const n = this.beforeRequestEventListenerMap.get(e);
|
20952
|
+
this.beforeRequestEventListenerMap.set(e, [...n != null ? n : [], r]);
|
20917
20953
|
break;
|
20918
20954
|
}
|
20919
20955
|
case "beforeSetDatas": {
|
20920
|
-
const n = this.
|
20921
|
-
this.
|
20956
|
+
const n = this.beforeSetDatasEventListenerMap.get(e);
|
20957
|
+
this.beforeSetDatasEventListenerMap.set(e, [...n != null ? n : [], r]);
|
20922
20958
|
break;
|
20923
20959
|
}
|
20924
20960
|
case "afterRequest": {
|
20925
|
-
const n = this.
|
20926
|
-
this.
|
20961
|
+
const n = this.afterRequestEventListenerMap.get(e);
|
20962
|
+
this.afterRequestEventListenerMap.set(e, [...n != null ? n : [], r]);
|
20927
20963
|
break;
|
20928
20964
|
}
|
20929
20965
|
}
|
@@ -20943,22 +20979,22 @@ const KgTable$1 = "", getProps$r = () => ({
|
|
20943
20979
|
let n, u = Promise.resolve(!1);
|
20944
20980
|
switch (a) {
|
20945
20981
|
case "ready":
|
20946
|
-
n = this.
|
20982
|
+
n = this.onReadyEventListenerMap.get(e);
|
20947
20983
|
break;
|
20948
20984
|
case "rowDoubleClick":
|
20949
|
-
n = this.
|
20985
|
+
n = this.rowDoubleClickEventListenerMap.get(e);
|
20950
20986
|
break;
|
20951
20987
|
case "beforeRequest":
|
20952
|
-
n = this.
|
20988
|
+
n = this.beforeRequestEventListenerMap.get(e);
|
20953
20989
|
break;
|
20954
20990
|
case "beforeParseRequestParameter":
|
20955
|
-
n = this.
|
20991
|
+
n = this.beforeParseParameterEventListenerMap.get(e);
|
20956
20992
|
break;
|
20957
20993
|
case "beforeSetDatas":
|
20958
|
-
n = this.
|
20994
|
+
n = this.beforeSetDatasEventListenerMap.get(e);
|
20959
20995
|
break;
|
20960
20996
|
case "afterRequest":
|
20961
|
-
n = this.
|
20997
|
+
n = this.afterRequestEventListenerMap.get(e);
|
20962
20998
|
break;
|
20963
20999
|
}
|
20964
21000
|
if (!n)
|
@@ -21040,45 +21076,45 @@ const KgTable$1 = "", getProps$r = () => ({
|
|
21040
21076
|
switch (a) {
|
21041
21077
|
case "ready":
|
21042
21078
|
if (r) {
|
21043
|
-
const n = this.
|
21044
|
-
this.
|
21079
|
+
const n = this.onReadyEventListenerMap.get(e);
|
21080
|
+
this.onReadyEventListenerMap.set(e, without$1(n, r));
|
21045
21081
|
} else
|
21046
|
-
this.
|
21082
|
+
this.onReadyEventListenerMap.set(e, []);
|
21047
21083
|
break;
|
21048
21084
|
case "rowDoubleClick":
|
21049
21085
|
if (r) {
|
21050
|
-
const n = this.
|
21051
|
-
this.
|
21086
|
+
const n = this.rowDoubleClickEventListenerMap.get(e);
|
21087
|
+
this.rowDoubleClickEventListenerMap.set(e, without$1(n, r));
|
21052
21088
|
} else
|
21053
|
-
this.
|
21089
|
+
this.rowDoubleClickEventListenerMap.set(e, []);
|
21054
21090
|
break;
|
21055
21091
|
case "beforeParseRequestParameter":
|
21056
21092
|
if (r) {
|
21057
|
-
const n = this.
|
21058
|
-
this.
|
21093
|
+
const n = this.beforeParseParameterEventListenerMap.get(e);
|
21094
|
+
this.beforeParseParameterEventListenerMap.set(e, without$1(n, r));
|
21059
21095
|
} else
|
21060
|
-
this.
|
21096
|
+
this.beforeParseParameterEventListenerMap.set(e, []);
|
21061
21097
|
break;
|
21062
21098
|
case "beforeRequest":
|
21063
21099
|
if (r) {
|
21064
|
-
const n = this.
|
21065
|
-
this.
|
21100
|
+
const n = this.beforeRequestEventListenerMap.get(e);
|
21101
|
+
this.beforeRequestEventListenerMap.set(e, without$1(n, r));
|
21066
21102
|
} else
|
21067
|
-
this.
|
21103
|
+
this.beforeRequestEventListenerMap.set(e, []);
|
21068
21104
|
break;
|
21069
21105
|
case "beforeSetDatas":
|
21070
21106
|
if (r) {
|
21071
|
-
const n = this.
|
21072
|
-
this.
|
21107
|
+
const n = this.beforeSetDatasEventListenerMap.get(e);
|
21108
|
+
this.beforeSetDatasEventListenerMap.set(e, without$1(n, r));
|
21073
21109
|
} else
|
21074
|
-
this.
|
21110
|
+
this.beforeSetDatasEventListenerMap.set(e, []);
|
21075
21111
|
break;
|
21076
21112
|
case "afterRequest":
|
21077
21113
|
if (r) {
|
21078
|
-
const n = this.
|
21079
|
-
this.
|
21114
|
+
const n = this.afterRequestEventListenerMap.get(e);
|
21115
|
+
this.afterRequestEventListenerMap.set(e, without$1(n, r));
|
21080
21116
|
} else
|
21081
|
-
this.
|
21117
|
+
this.afterRequestEventListenerMap.set(e, []);
|
21082
21118
|
break;
|
21083
21119
|
}
|
21084
21120
|
},
|
@@ -21515,54 +21551,56 @@ const useKgSubmitStore = defineStore("KgSubmit", {
|
|
21515
21551
|
actions: {
|
21516
21552
|
addEventListener(e, a, r) {
|
21517
21553
|
switch (a) {
|
21518
|
-
case "beforeOpen":
|
21519
|
-
|
21520
|
-
|
21521
|
-
this.beforeOpenEventListenersMap.set(e, [...n != null ? n : [], r]);
|
21522
|
-
}
|
21554
|
+
case "beforeOpen": {
|
21555
|
+
const n = this.beforeOpenEventListenerMap.get(e);
|
21556
|
+
this.beforeOpenEventListenerMap.set(e, [...n != null ? n : [], r]);
|
21523
21557
|
break;
|
21524
|
-
|
21525
|
-
|
21526
|
-
|
21527
|
-
|
21528
|
-
}
|
21558
|
+
}
|
21559
|
+
case "onOpen": {
|
21560
|
+
const n = this.openEventListenerMap.get(e);
|
21561
|
+
this.openEventListenerMap.set(e, [...n != null ? n : [], r]);
|
21529
21562
|
break;
|
21530
|
-
|
21531
|
-
|
21532
|
-
|
21533
|
-
|
21534
|
-
}
|
21563
|
+
}
|
21564
|
+
case "beforeOk": {
|
21565
|
+
const n = this.beforeOkEventListenerMap.get(e);
|
21566
|
+
this.beforeOkEventListenerMap.set(e, [...n != null ? n : [], r]);
|
21535
21567
|
break;
|
21536
|
-
|
21537
|
-
|
21538
|
-
|
21539
|
-
|
21540
|
-
}
|
21568
|
+
}
|
21569
|
+
case "afterValidate": {
|
21570
|
+
const n = this.afterValidateEventListenerMap.get(e);
|
21571
|
+
this.afterValidateEventListenerMap.set(e, [...n != null ? n : [], r]);
|
21541
21572
|
break;
|
21542
|
-
|
21543
|
-
|
21544
|
-
|
21545
|
-
|
21546
|
-
}
|
21573
|
+
}
|
21574
|
+
case "beforeRequest": {
|
21575
|
+
const n = this.beforeRequestEventListenerMap.get(e);
|
21576
|
+
this.beforeRequestEventListenerMap.set(e, [...n != null ? n : [], r]);
|
21547
21577
|
break;
|
21548
|
-
|
21549
|
-
|
21550
|
-
|
21551
|
-
|
21552
|
-
}
|
21578
|
+
}
|
21579
|
+
case "ok": {
|
21580
|
+
const n = this.okEventListenerMap.get(e);
|
21581
|
+
this.okEventListenerMap.set(e, [...n != null ? n : [], r]);
|
21553
21582
|
break;
|
21554
|
-
|
21555
|
-
|
21556
|
-
|
21557
|
-
|
21558
|
-
}
|
21583
|
+
}
|
21584
|
+
case "onBeforeCancel": {
|
21585
|
+
const n = this.onBeforeCancelEventListenerMap.get(e);
|
21586
|
+
this.onBeforeCancelEventListenerMap.set(e, [...n != null ? n : [], r]);
|
21559
21587
|
break;
|
21560
|
-
|
21561
|
-
|
21562
|
-
|
21563
|
-
|
21564
|
-
|
21588
|
+
}
|
21589
|
+
case "onCancel": {
|
21590
|
+
const n = this.onCancelEventListenerMap.get(e);
|
21591
|
+
this.onCancelEventListenerMap.set(e, [...n != null ? n : [], r]);
|
21592
|
+
break;
|
21593
|
+
}
|
21594
|
+
case "error": {
|
21595
|
+
const n = this.errorEventListenerMap.get(e);
|
21596
|
+
this.errorEventListenerMap.set(e, [...n != null ? n : [], r]);
|
21565
21597
|
break;
|
21598
|
+
}
|
21599
|
+
case "close": {
|
21600
|
+
const n = this.closeEventListenerMap.get(e);
|
21601
|
+
this.closeEventListenerMap.set(e, [...n != null ? n : [], r]);
|
21602
|
+
break;
|
21603
|
+
}
|
21566
21604
|
}
|
21567
21605
|
},
|
21568
21606
|
createVarSubmitDetail(e, a) {
|
@@ -21591,28 +21629,34 @@ const useKgSubmitStore = defineStore("KgSubmit", {
|
|
21591
21629
|
let n, u = Promise.resolve(!1);
|
21592
21630
|
switch (a) {
|
21593
21631
|
case "beforeOpen":
|
21594
|
-
n = this.
|
21632
|
+
n = this.beforeOpenEventListenerMap.get(e);
|
21595
21633
|
break;
|
21596
|
-
case "
|
21597
|
-
n = this.
|
21634
|
+
case "onOpen":
|
21635
|
+
n = this.openEventListenerMap.get(e);
|
21598
21636
|
break;
|
21599
21637
|
case "beforeOk":
|
21600
|
-
n = this.
|
21638
|
+
n = this.beforeOkEventListenerMap.get(e);
|
21601
21639
|
break;
|
21602
21640
|
case "afterValidate":
|
21603
|
-
n = this.
|
21641
|
+
n = this.afterValidateEventListenerMap.get(e);
|
21604
21642
|
break;
|
21605
21643
|
case "beforeRequest":
|
21606
|
-
n = this.
|
21644
|
+
n = this.beforeRequestEventListenerMap.get(e);
|
21607
21645
|
break;
|
21608
21646
|
case "ok":
|
21609
|
-
n = this.
|
21647
|
+
n = this.okEventListenerMap.get(e);
|
21648
|
+
break;
|
21649
|
+
case "onBeforeCancel":
|
21650
|
+
n = this.onBeforeCancelEventListenerMap.get(e);
|
21651
|
+
break;
|
21652
|
+
case "onCancel":
|
21653
|
+
n = this.onCancelEventListenerMap.get(e);
|
21610
21654
|
break;
|
21611
21655
|
case "error":
|
21612
|
-
n = this.
|
21656
|
+
n = this.errorEventListenerMap.get(e);
|
21613
21657
|
break;
|
21614
21658
|
case "close":
|
21615
|
-
n = this.
|
21659
|
+
n = this.closeEventListenerMap.get(e);
|
21616
21660
|
break;
|
21617
21661
|
}
|
21618
21662
|
if (n) {
|
@@ -21662,59 +21706,73 @@ const useKgSubmitStore = defineStore("KgSubmit", {
|
|
21662
21706
|
switch (a) {
|
21663
21707
|
case "beforeOpen":
|
21664
21708
|
if (r) {
|
21665
|
-
const n = this.
|
21666
|
-
this.
|
21709
|
+
const n = this.beforeOpenEventListenerMap.get(e);
|
21710
|
+
this.beforeOpenEventListenerMap.set(e, without$1(n, r));
|
21667
21711
|
} else
|
21668
|
-
this.
|
21712
|
+
this.beforeOpenEventListenerMap.set(e, []);
|
21669
21713
|
break;
|
21670
|
-
case "
|
21714
|
+
case "onOpen":
|
21671
21715
|
if (r) {
|
21672
|
-
const n = this.
|
21673
|
-
this.
|
21716
|
+
const n = this.openEventListenerMap.get(e);
|
21717
|
+
this.openEventListenerMap.set(e, without$1(n, r));
|
21674
21718
|
} else
|
21675
|
-
this.
|
21719
|
+
this.openEventListenerMap.set(e, []);
|
21676
21720
|
break;
|
21677
21721
|
case "beforeOk":
|
21678
21722
|
if (r) {
|
21679
|
-
const n = this.
|
21680
|
-
this.
|
21723
|
+
const n = this.beforeOkEventListenerMap.get(e);
|
21724
|
+
this.beforeOkEventListenerMap.set(e, without$1(n, r));
|
21681
21725
|
} else
|
21682
|
-
this.
|
21726
|
+
this.beforeOkEventListenerMap.set(e, []);
|
21683
21727
|
break;
|
21684
21728
|
case "afterValidate":
|
21685
21729
|
if (r) {
|
21686
|
-
const n = this.
|
21687
|
-
this.
|
21730
|
+
const n = this.afterValidateEventListenerMap.get(e);
|
21731
|
+
this.afterValidateEventListenerMap.set(e, without$1(n, r));
|
21688
21732
|
} else
|
21689
|
-
this.
|
21733
|
+
this.afterValidateEventListenerMap.set(e, []);
|
21690
21734
|
break;
|
21691
21735
|
case "beforeRequest":
|
21692
21736
|
if (r) {
|
21693
|
-
const n = this.
|
21694
|
-
this.
|
21737
|
+
const n = this.beforeRequestEventListenerMap.get(e);
|
21738
|
+
this.beforeRequestEventListenerMap.set(e, without$1(n, r));
|
21695
21739
|
} else
|
21696
|
-
this.
|
21740
|
+
this.beforeRequestEventListenerMap.set(e, []);
|
21697
21741
|
break;
|
21698
21742
|
case "ok":
|
21699
21743
|
if (r) {
|
21700
|
-
const n = this.
|
21701
|
-
this.
|
21744
|
+
const n = this.okEventListenerMap.get(e);
|
21745
|
+
this.okEventListenerMap.set(e, without$1(n, r));
|
21746
|
+
} else
|
21747
|
+
this.okEventListenerMap.set(e, []);
|
21748
|
+
break;
|
21749
|
+
case "onBeforeCancel":
|
21750
|
+
if (r) {
|
21751
|
+
const n = this.onBeforeCancelEventListenerMap.get(e);
|
21752
|
+
this.onBeforeCancelEventListenerMap.set(e, without$1(n, r));
|
21753
|
+
} else
|
21754
|
+
this.onBeforeCancelEventListenerMap.set(e, []);
|
21755
|
+
break;
|
21756
|
+
case "onCancel":
|
21757
|
+
if (r) {
|
21758
|
+
const n = this.onCancelEventListenerMap.get(e);
|
21759
|
+
this.onCancelEventListenerMap.set(e, without$1(n, r));
|
21702
21760
|
} else
|
21703
|
-
this.
|
21761
|
+
this.onCancelEventListenerMap.set(e, []);
|
21704
21762
|
break;
|
21705
21763
|
case "error":
|
21706
21764
|
if (r) {
|
21707
|
-
const n = this.
|
21708
|
-
this.
|
21765
|
+
const n = this.errorEventListenerMap.get(e);
|
21766
|
+
this.errorEventListenerMap.set(e, without$1(n, r));
|
21709
21767
|
} else
|
21710
|
-
this.
|
21768
|
+
this.errorEventListenerMap.set(e, []);
|
21711
21769
|
break;
|
21712
21770
|
case "close":
|
21713
21771
|
if (r) {
|
21714
|
-
const n = this.
|
21715
|
-
this.
|
21772
|
+
const n = this.closeEventListenerMap.get(e);
|
21773
|
+
this.closeEventListenerMap.set(e, without$1(n, r));
|
21716
21774
|
} else
|
21717
|
-
this.
|
21775
|
+
this.closeEventListenerMap.set(e, []);
|
21718
21776
|
break;
|
21719
21777
|
}
|
21720
21778
|
},
|
@@ -21849,18 +21907,20 @@ const useKgSubmitStore = defineStore("KgSubmit", {
|
|
21849
21907
|
}
|
21850
21908
|
},
|
21851
21909
|
state: () => ({
|
21852
|
-
|
21853
|
-
|
21854
|
-
|
21855
|
-
|
21856
|
-
|
21857
|
-
|
21910
|
+
afterValidateEventListenerMap: /* @__PURE__ */ new Map(),
|
21911
|
+
beforeOkEventListenerMap: /* @__PURE__ */ new Map(),
|
21912
|
+
beforeOpenEventListenerMap: /* @__PURE__ */ new Map(),
|
21913
|
+
beforeRequestEventListenerMap: /* @__PURE__ */ new Map(),
|
21914
|
+
closeEventListenerMap: /* @__PURE__ */ new Map(),
|
21915
|
+
errorEventListenerMap: /* @__PURE__ */ new Map(),
|
21858
21916
|
formModelMap: /* @__PURE__ */ new Map(),
|
21859
21917
|
formRefMap: /* @__PURE__ */ new Map(),
|
21860
21918
|
formRulesMap: /* @__PURE__ */ new Map(),
|
21861
21919
|
isLoadingMap: /* @__PURE__ */ new Map(),
|
21862
|
-
|
21863
|
-
|
21920
|
+
okEventListenerMap: /* @__PURE__ */ new Map(),
|
21921
|
+
onBeforeCancelEventListenerMap: /* @__PURE__ */ new Map(),
|
21922
|
+
onCancelEventListenerMap: /* @__PURE__ */ new Map(),
|
21923
|
+
openEventListenerMap: /* @__PURE__ */ new Map()
|
21864
21924
|
})
|
21865
21925
|
});
|
21866
21926
|
function useKgSubmit(e) {
|
@@ -21941,13 +22001,15 @@ function useKgSubmit(e) {
|
|
21941
22001
|
return (n = r.getFormModel(a.formID)) != null ? n : {};
|
21942
22002
|
}),
|
21943
22003
|
onAfterValidate: onEventFactory(a.formID, r, "afterValidate"),
|
22004
|
+
onBeforeCancel: onEventFactory(a.formID, r, "onBeforeCancel"),
|
21944
22005
|
onBeforeOk: onEventFactory(a.formID, r, "beforeOk"),
|
21945
22006
|
onBeforeOpen: onEventFactory(a.formID, r, "beforeOpen"),
|
21946
22007
|
onBeforeRequest: onEventFactory(a.formID, r, "beforeRequest"),
|
22008
|
+
onCancel: onEventFactory(a.formID, r, "onCancel"),
|
21947
22009
|
onClose: onEventFactory(a.formID, r, "close"),
|
21948
22010
|
onError: onEventFactory(a.formID, r, "error"),
|
21949
22011
|
onOk: onEventFactory(a.formID, r, "ok"),
|
21950
|
-
onOpen: onEventFactory(a.formID, r, "
|
22012
|
+
onOpen: onEventFactory(a.formID, r, "onOpen"),
|
21951
22013
|
patchVarSubmitDetail(n) {
|
21952
22014
|
return r.patchVarSubmitDetail(a.formID, n);
|
21953
22015
|
},
|
@@ -25859,7 +25921,7 @@ const KgVarConfig$1 = "", KgVarConfig = defineComponent({
|
|
25859
25921
|
isRetrievingVarProfileMasterMap: /* @__PURE__ */ new Map(),
|
25860
25922
|
isUpdatingRequestingMap: /* @__PURE__ */ new Map(),
|
25861
25923
|
levelMap: /* @__PURE__ */ new Map(),
|
25862
|
-
|
25924
|
+
onRetrieveEventListenerMap: /* @__PURE__ */ new Map(),
|
25863
25925
|
varButtonConfigMap: /* @__PURE__ */ new Map(),
|
25864
25926
|
varButtonMap: /* @__PURE__ */ new Map(),
|
25865
25927
|
varChildDetailMap: /* @__PURE__ */ new Map(),
|
@@ -26203,8 +26265,8 @@ const KgVarConfig$1 = "", KgVarConfig = defineComponent({
|
|
26203
26265
|
}
|
26204
26266
|
switch (a) {
|
26205
26267
|
case "retrieve": {
|
26206
|
-
const n = this.
|
26207
|
-
this.
|
26268
|
+
const n = this.onRetrieveEventListenerMap.get(e);
|
26269
|
+
this.onRetrieveEventListenerMap.set(e, [...n != null ? n : [], r]);
|
26208
26270
|
break;
|
26209
26271
|
}
|
26210
26272
|
}
|
@@ -26259,7 +26321,7 @@ const KgVarConfig$1 = "", KgVarConfig = defineComponent({
|
|
26259
26321
|
switch (a) {
|
26260
26322
|
case "retrieve":
|
26261
26323
|
{
|
26262
|
-
const n = this.
|
26324
|
+
const n = this.onRetrieveEventListenerMap.get(e);
|
26263
26325
|
n && n.forEach((u) => u());
|
26264
26326
|
}
|
26265
26327
|
break;
|
@@ -26332,10 +26394,10 @@ const KgVarConfig$1 = "", KgVarConfig = defineComponent({
|
|
26332
26394
|
switch (a) {
|
26333
26395
|
case "retrieve":
|
26334
26396
|
if (r) {
|
26335
|
-
const n = this.
|
26336
|
-
this.
|
26397
|
+
const n = this.onRetrieveEventListenerMap.get(e);
|
26398
|
+
this.onRetrieveEventListenerMap.set(e, without$1(n, r));
|
26337
26399
|
} else
|
26338
|
-
this.
|
26400
|
+
this.onRetrieveEventListenerMap.set(e, []);
|
26339
26401
|
break;
|
26340
26402
|
}
|
26341
26403
|
},
|
@@ -27205,82 +27267,82 @@ const KgVar = defineComponent({
|
|
27205
27267
|
name: "KgButtonOther",
|
27206
27268
|
props: getProps$d(),
|
27207
27269
|
setup(e) {
|
27208
|
-
const a =
|
27209
|
-
|
27210
|
-
name:
|
27211
|
-
args:
|
27270
|
+
const a = inject("$dayjs", dayjs), r = useKg(), n = useKgVar();
|
27271
|
+
n.kgButton.store.$onAction(async ({
|
27272
|
+
name: _,
|
27273
|
+
args: d
|
27212
27274
|
}) => {
|
27213
|
-
switch (
|
27275
|
+
switch (_) {
|
27214
27276
|
case "click":
|
27215
|
-
|
27277
|
+
d[0] === n.formID && d[2] === e.kgVarName && await o();
|
27216
27278
|
break;
|
27217
27279
|
}
|
27218
27280
|
});
|
27219
|
-
const
|
27220
|
-
var
|
27221
|
-
return isNil(e.kgDisabled) ? !!(e.kgLoading ||
|
27281
|
+
const u = computed(() => n.store.getVarButton(n.formID, e.kgVarName)), s = computed(() => {
|
27282
|
+
var _, d, g, m, b, v, p, E;
|
27283
|
+
return isNil(e.kgDisabled) ? !!(e.kgLoading || n.kgTable.isRetrieving.value || ((_ = u.value) == null ? void 0 : _.dis_no_select_flg) === 1 && ((g = (d = n.kgTable.selectedRows.value) == null ? void 0 : d.length) != null ? g : 0) === 0 || ((m = u.value) == null ? void 0 : m.dis_mult_select_flg) === 1 && ((v = (b = n.kgTable.selectedRows.value) == null ? void 0 : b.length) != null ? v : 0) > 1 || KgAuthUtil.getPermissionType((p = u.value) == null ? void 0 : p.permission_code) === 2 && !r.p((E = u.value) == null ? void 0 : E.permission_code) || n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value) : e.kgDisabled;
|
27222
27284
|
});
|
27223
|
-
async function
|
27224
|
-
var
|
27285
|
+
async function o() {
|
27286
|
+
var m, b, v;
|
27225
27287
|
if (e.onKgClick && await e.onKgClick()) {
|
27226
|
-
|
27288
|
+
n.kgButton.setIsClickIntercepted({
|
27227
27289
|
varName: e.kgVarName,
|
27228
27290
|
isIntercepted: !0
|
27229
27291
|
});
|
27230
27292
|
return;
|
27231
27293
|
}
|
27232
|
-
if (
|
27294
|
+
if (n.kgButton.setIsClickIntercepted({
|
27233
27295
|
varName: e.kgVarName,
|
27234
27296
|
isIntercepted: !1
|
27235
|
-
}),
|
27297
|
+
}), n.kgSubmit.getVarSubmitConfig({
|
27236
27298
|
buttonVarName: e.kgVarName
|
27237
27299
|
})) {
|
27238
|
-
|
27300
|
+
n.kgButton.setCurrentButton({
|
27239
27301
|
varName: e.kgVarName
|
27240
27302
|
});
|
27241
27303
|
return;
|
27242
27304
|
}
|
27243
|
-
const
|
27244
|
-
if (!
|
27245
|
-
message.error(
|
27305
|
+
const _ = (m = e.kgButton) == null ? void 0 : m.cmd;
|
27306
|
+
if (!_) {
|
27307
|
+
message.error(r.t("kg.KgButton.noApiUrl"));
|
27246
27308
|
return;
|
27247
27309
|
}
|
27248
|
-
let
|
27249
|
-
const
|
27250
|
-
var
|
27251
|
-
|
27252
|
-
const
|
27310
|
+
let d = null;
|
27311
|
+
const g = async () => {
|
27312
|
+
var E, T, C, A, k, O, D, y, F, L, R;
|
27313
|
+
d == null || d.showLoading(), n.store.setIsOtherRequesting(n.formID, !0);
|
27314
|
+
const p = n.kgTable.selectedRows.value;
|
27253
27315
|
try {
|
27254
|
-
const
|
27255
|
-
url:
|
27256
|
-
method:
|
27257
|
-
params:
|
27258
|
-
data:
|
27316
|
+
const M = KgUtil.parseParams(KgVarUtil.parseRequestParamsToJSON((T = (E = e.kgButton) == null ? void 0 : E.cmd_prm) != null ? T : ""), n.formID, a), w = (A = (C = e.kgButton) == null ? void 0 : C.cmd_method) != null ? A : "POST", K = await httpClient().request({
|
27317
|
+
url: _,
|
27318
|
+
method: w,
|
27319
|
+
params: M,
|
27320
|
+
data: p != null ? p : [],
|
27259
27321
|
headers: {
|
27260
|
-
[KG_HTTP_HEADERS.KG_FORM_ID]:
|
27261
|
-
[KG_HTTP_HEADERS.KG_BUTTON_VAR_NAME]: (
|
27322
|
+
[KG_HTTP_HEADERS.KG_FORM_ID]: n.formID,
|
27323
|
+
[KG_HTTP_HEADERS.KG_BUTTON_VAR_NAME]: (O = (k = e.kgButton) == null ? void 0 : k.var_nam) != null ? O : ""
|
27262
27324
|
}
|
27263
27325
|
});
|
27264
|
-
((
|
27265
|
-
isPreserveSelectedRows: ((
|
27266
|
-
isSearchFirstPage: ((
|
27267
|
-
})) : ((
|
27268
|
-
} catch (
|
27269
|
-
console.error(
|
27326
|
+
((D = e.kgButton) == null ? void 0 : D.reload_all_after_done_flg) === 1 ? (((y = e.kgButton) == null ? void 0 : y.show_success_message_flg) !== 0 && message.success(r.t("kg.executeSuccess")), n.kgSearch.search({
|
27327
|
+
isPreserveSelectedRows: ((F = e.kgButton) == null ? void 0 : F.re_select_after_reload_flg) !== 0,
|
27328
|
+
isSearchFirstPage: ((L = e.kgButton) == null ? void 0 : L.re_select_after_reload_flg) === 0
|
27329
|
+
})) : ((R = e.kgButton) == null ? void 0 : R.show_success_message_flg) !== 0 && message.success(r.t("kg.executeSuccess"));
|
27330
|
+
} catch (M) {
|
27331
|
+
console.error(M);
|
27270
27332
|
} finally {
|
27271
|
-
|
27333
|
+
n.store.setIsOtherRequesting(n.formID, !1), d == null || d.hideLoading();
|
27272
27334
|
}
|
27273
27335
|
};
|
27274
|
-
if (((
|
27275
|
-
const
|
27276
|
-
typeof
|
27277
|
-
onOk: () =>
|
27278
|
-
...
|
27336
|
+
if (((b = e.kgButton) == null ? void 0 : b.show_modal_flg) === 1) {
|
27337
|
+
const p = KgUtil.tryParseJSON((v = e.kgButton) == null ? void 0 : v.modal_props);
|
27338
|
+
typeof p.content == "string" && (p.content = n.t(p.content).value), d = KgUtil.confirm({
|
27339
|
+
onOk: () => g(),
|
27340
|
+
...p
|
27279
27341
|
});
|
27280
27342
|
} else
|
27281
|
-
|
27343
|
+
g();
|
27282
27344
|
}
|
27283
|
-
function
|
27345
|
+
function l() {
|
27284
27346
|
return e.kgLoading ? createVNode(LoadingOutlined$1, null, null) : e.kgIcon ? createVNode("span", {
|
27285
27347
|
class: "anticon"
|
27286
27348
|
}, [createVNode(Icon, {
|
@@ -27291,24 +27353,24 @@ const KgVar = defineComponent({
|
|
27291
27353
|
icon: "ant-design:info-circle-outlined"
|
27292
27354
|
}, null)]);
|
27293
27355
|
}
|
27294
|
-
function
|
27356
|
+
function c() {
|
27295
27357
|
return e.kgText ? e.kgText : e.kgVarName;
|
27296
27358
|
}
|
27297
27359
|
return () => {
|
27298
|
-
var
|
27360
|
+
var _, d, g, m, b, v;
|
27299
27361
|
return createVNode(Button, {
|
27300
|
-
"kg-id": (
|
27301
|
-
"kg-form_id": (
|
27302
|
-
"kg-var_name": (
|
27303
|
-
"kg-cmd": (
|
27304
|
-
"kg-permission": (
|
27362
|
+
"kg-id": (_ = u.value) == null ? void 0 : _.id,
|
27363
|
+
"kg-form_id": (d = u.value) == null ? void 0 : d.frm_id,
|
27364
|
+
"kg-var_name": (g = u.value) == null ? void 0 : g.var_nam,
|
27365
|
+
"kg-cmd": (m = u.value) == null ? void 0 : m.cmd,
|
27366
|
+
"kg-permission": (v = (b = u.value) == null ? void 0 : b.permission_code) != null ? v : "",
|
27305
27367
|
type: "primary",
|
27306
|
-
disabled:
|
27368
|
+
disabled: s.value,
|
27307
27369
|
danger: e.kgColor === KG__VAR_BUTTON__COLOR.RED,
|
27308
|
-
ghost: !e.kgPrimary && !
|
27309
|
-
onClick:
|
27370
|
+
ghost: !e.kgPrimary && !s.value,
|
27371
|
+
onClick: o
|
27310
27372
|
}, {
|
27311
|
-
default: () => [
|
27373
|
+
default: () => [l(), c()]
|
27312
27374
|
});
|
27313
27375
|
};
|
27314
27376
|
}
|
@@ -27653,13 +27715,13 @@ const getProps$c = () => ({
|
|
27653
27715
|
}
|
27654
27716
|
}), useKgButtonStore = defineStore("KgButton", {
|
27655
27717
|
state: () => ({
|
27656
|
-
|
27718
|
+
clickEventListenerMap: /* @__PURE__ */ new Map(),
|
27657
27719
|
currentButtonMap: /* @__PURE__ */ new Map(),
|
27658
|
-
|
27720
|
+
importOkEventListenerMap: /* @__PURE__ */ new Map(),
|
27659
27721
|
isClickInterceptedMap: /* @__PURE__ */ new Map(),
|
27660
27722
|
isCurrentButtonRequestingMap: /* @__PURE__ */ new Map(),
|
27661
|
-
|
27662
|
-
|
27723
|
+
submitCancelEventListenerMap: /* @__PURE__ */ new Map(),
|
27724
|
+
submitSaveEventListenerMap: /* @__PURE__ */ new Map()
|
27663
27725
|
}),
|
27664
27726
|
getters: {
|
27665
27727
|
getButtonDescription() {
|
@@ -27782,23 +27844,23 @@ const getProps$c = () => ({
|
|
27782
27844
|
addEventListener(e, a, r) {
|
27783
27845
|
switch (a) {
|
27784
27846
|
case "click": {
|
27785
|
-
const n = this.
|
27786
|
-
this.
|
27847
|
+
const n = this.clickEventListenerMap.get(e);
|
27848
|
+
this.clickEventListenerMap.set(e, [...n != null ? n : [], r]);
|
27787
27849
|
break;
|
27788
27850
|
}
|
27789
27851
|
case "importOk": {
|
27790
|
-
const n = this.
|
27791
|
-
this.
|
27852
|
+
const n = this.importOkEventListenerMap.get(e);
|
27853
|
+
this.importOkEventListenerMap.set(e, [...n != null ? n : [], r]);
|
27792
27854
|
break;
|
27793
27855
|
}
|
27794
27856
|
case "submitSave": {
|
27795
|
-
const n = this.
|
27796
|
-
this.
|
27857
|
+
const n = this.submitSaveEventListenerMap.get(e);
|
27858
|
+
this.submitSaveEventListenerMap.set(e, [...n != null ? n : [], r]);
|
27797
27859
|
break;
|
27798
27860
|
}
|
27799
27861
|
case "submitCancel": {
|
27800
|
-
const n = this.
|
27801
|
-
this.
|
27862
|
+
const n = this.submitCancelEventListenerMap.get(e);
|
27863
|
+
this.submitCancelEventListenerMap.set(e, [...n != null ? n : [], r]);
|
27802
27864
|
break;
|
27803
27865
|
}
|
27804
27866
|
}
|
@@ -27816,16 +27878,16 @@ const getProps$c = () => ({
|
|
27816
27878
|
let n, u = Promise.resolve(!1);
|
27817
27879
|
switch (a) {
|
27818
27880
|
case "click":
|
27819
|
-
n = this.
|
27881
|
+
n = this.clickEventListenerMap.get(e);
|
27820
27882
|
break;
|
27821
27883
|
case "importOk":
|
27822
|
-
n = this.
|
27884
|
+
n = this.importOkEventListenerMap.get(e);
|
27823
27885
|
break;
|
27824
27886
|
case "submitSave":
|
27825
|
-
n = this.
|
27887
|
+
n = this.submitSaveEventListenerMap.get(e);
|
27826
27888
|
break;
|
27827
27889
|
case "submitCancel":
|
27828
|
-
n = this.
|
27890
|
+
n = this.submitCancelEventListenerMap.get(e);
|
27829
27891
|
break;
|
27830
27892
|
}
|
27831
27893
|
if (n) {
|
@@ -27842,31 +27904,31 @@ const getProps$c = () => ({
|
|
27842
27904
|
switch (a) {
|
27843
27905
|
case "click":
|
27844
27906
|
if (r) {
|
27845
|
-
const n = this.
|
27846
|
-
this.
|
27907
|
+
const n = this.clickEventListenerMap.get(e);
|
27908
|
+
this.clickEventListenerMap.set(e, without$1(n, r));
|
27847
27909
|
} else
|
27848
|
-
this.
|
27910
|
+
this.clickEventListenerMap.set(e, []);
|
27849
27911
|
break;
|
27850
27912
|
case "importOk":
|
27851
27913
|
if (r) {
|
27852
|
-
const n = this.
|
27853
|
-
this.
|
27914
|
+
const n = this.importOkEventListenerMap.get(e);
|
27915
|
+
this.importOkEventListenerMap.set(e, without$1(n, r));
|
27854
27916
|
} else
|
27855
|
-
this.
|
27917
|
+
this.importOkEventListenerMap.set(e, []);
|
27856
27918
|
break;
|
27857
27919
|
case "submitSave":
|
27858
27920
|
if (r) {
|
27859
|
-
const n = this.
|
27860
|
-
this.
|
27921
|
+
const n = this.submitSaveEventListenerMap.get(e);
|
27922
|
+
this.submitSaveEventListenerMap.set(e, without$1(n, r));
|
27861
27923
|
} else
|
27862
|
-
this.
|
27924
|
+
this.submitSaveEventListenerMap.set(e, []);
|
27863
27925
|
break;
|
27864
27926
|
case "submitCancel":
|
27865
27927
|
if (r) {
|
27866
|
-
const n = this.
|
27867
|
-
this.
|
27928
|
+
const n = this.submitCancelEventListenerMap.get(e);
|
27929
|
+
this.submitCancelEventListenerMap.set(e, without$1(n, r));
|
27868
27930
|
} else
|
27869
|
-
this.
|
27931
|
+
this.submitCancelEventListenerMap.set(e, []);
|
27870
27932
|
break;
|
27871
27933
|
}
|
27872
27934
|
},
|
@@ -28403,9 +28465,9 @@ const getProps$a = () => ({
|
|
28403
28465
|
dynamicOperatorModelMap: /* @__PURE__ */ new Map(),
|
28404
28466
|
formModel: /* @__PURE__ */ new Map(),
|
28405
28467
|
isReadyMap: /* @__PURE__ */ new Map(),
|
28406
|
-
|
28407
|
-
|
28408
|
-
|
28468
|
+
onReadyEventListenerMap: /* @__PURE__ */ new Map(),
|
28469
|
+
onResetEventListenerMap: /* @__PURE__ */ new Map(),
|
28470
|
+
onSearchEventListenerMap: /* @__PURE__ */ new Map(),
|
28409
28471
|
resetFnMap: /* @__PURE__ */ new Map(),
|
28410
28472
|
searchFnMap: /* @__PURE__ */ new Map()
|
28411
28473
|
}),
|
@@ -28470,20 +28532,20 @@ const getProps$a = () => ({
|
|
28470
28532
|
switch (a) {
|
28471
28533
|
case "ready":
|
28472
28534
|
{
|
28473
|
-
const n = this.
|
28474
|
-
this.
|
28535
|
+
const n = this.onReadyEventListenerMap.get(e);
|
28536
|
+
this.onReadyEventListenerMap.set(e, [...n != null ? n : [], r]);
|
28475
28537
|
}
|
28476
28538
|
break;
|
28477
28539
|
case "search":
|
28478
28540
|
{
|
28479
|
-
const n = this.
|
28480
|
-
this.
|
28541
|
+
const n = this.onSearchEventListenerMap.get(e);
|
28542
|
+
this.onSearchEventListenerMap.set(e, [...n != null ? n : [], r]);
|
28481
28543
|
}
|
28482
28544
|
break;
|
28483
28545
|
case "reset":
|
28484
28546
|
{
|
28485
|
-
const n = this.
|
28486
|
-
this.
|
28547
|
+
const n = this.onResetEventListenerMap.get(e);
|
28548
|
+
this.onResetEventListenerMap.set(e, [...n != null ? n : [], r]);
|
28487
28549
|
}
|
28488
28550
|
break;
|
28489
28551
|
}
|
@@ -28505,13 +28567,13 @@ const getProps$a = () => ({
|
|
28505
28567
|
let l;
|
28506
28568
|
switch (a) {
|
28507
28569
|
case "ready":
|
28508
|
-
l = this.
|
28570
|
+
l = this.onReadyEventListenerMap.get(o);
|
28509
28571
|
break;
|
28510
28572
|
case "search":
|
28511
|
-
l = this.
|
28573
|
+
l = this.onSearchEventListenerMap.get(o);
|
28512
28574
|
break;
|
28513
28575
|
case "reset":
|
28514
|
-
l = this.
|
28576
|
+
l = this.onResetEventListenerMap.get(o);
|
28515
28577
|
break;
|
28516
28578
|
}
|
28517
28579
|
if (!l) {
|
@@ -28570,24 +28632,24 @@ const getProps$a = () => ({
|
|
28570
28632
|
switch (a) {
|
28571
28633
|
case "ready":
|
28572
28634
|
if (r) {
|
28573
|
-
const n = this.
|
28574
|
-
this.
|
28635
|
+
const n = this.onReadyEventListenerMap.get(e);
|
28636
|
+
this.onReadyEventListenerMap.set(e, without$1(n, r));
|
28575
28637
|
} else
|
28576
|
-
this.
|
28638
|
+
this.onReadyEventListenerMap.set(e, []);
|
28577
28639
|
break;
|
28578
28640
|
case "search":
|
28579
28641
|
if (r) {
|
28580
|
-
const n = this.
|
28581
|
-
this.
|
28642
|
+
const n = this.onSearchEventListenerMap.get(e);
|
28643
|
+
this.onSearchEventListenerMap.set(e, without$1(n, r));
|
28582
28644
|
} else
|
28583
|
-
this.
|
28645
|
+
this.onSearchEventListenerMap.set(e, []);
|
28584
28646
|
break;
|
28585
28647
|
case "reset":
|
28586
28648
|
if (r) {
|
28587
|
-
const n = this.
|
28588
|
-
this.
|
28649
|
+
const n = this.onResetEventListenerMap.get(e);
|
28650
|
+
this.onResetEventListenerMap.set(e, without$1(n, r));
|
28589
28651
|
} else
|
28590
|
-
this.
|
28652
|
+
this.onResetEventListenerMap.set(e, []);
|
28591
28653
|
break;
|
28592
28654
|
}
|
28593
28655
|
},
|