@kengic/vue 0.5.4 → 0.5.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.css +1 -1
- package/dist/kengic-vue.js +808 -734
- package/dist/src/apis/WMS/models.d.ts +4 -0
- package/dist/src/components/KgButton/components/KgButton.Search.d.ts +2 -2
- package/dist/src/consts/i18n/en.d.ts +3 -2
- package/dist/src/consts/i18n/zh_CN.d.ts +3 -2
- package/dist/src/consts/index.d.ts +5 -0
- package/dist/src/utils/kg.util.d.ts +1 -1
- package/package.json +1 -1
package/dist/kengic-vue.js
CHANGED
@@ -66,6 +66,8 @@ class VarButton {
|
|
66
66
|
d(this, "dis_mult_select_flg");
|
67
67
|
d(this, "dis_no_select_flg");
|
68
68
|
d(this, "ena_flg");
|
69
|
+
d(this, "export_excel_filename");
|
70
|
+
d(this, "export_excel_suffix");
|
69
71
|
d(this, "frm_id");
|
70
72
|
d(this, "icon");
|
71
73
|
d(this, "id");
|
@@ -84,6 +86,8 @@ class VarButton {
|
|
84
86
|
case "dis_mult_select_flg":
|
85
87
|
case "dis_no_select_flg":
|
86
88
|
case "ena_flg":
|
89
|
+
case "export_excel_filename":
|
90
|
+
case "export_excel_suffix":
|
87
91
|
case "frm_id":
|
88
92
|
case "icon":
|
89
93
|
case "id":
|
@@ -2242,12 +2246,12 @@ function baseClone(e, t, r, n, a, o) {
|
|
2242
2246
|
return p;
|
2243
2247
|
o.set(e, s), isSet$1(e) ? e.forEach(function(v) {
|
2244
2248
|
s.add(baseClone(v, t, r, v, e, o));
|
2245
|
-
}) : isMap$1(e) && e.forEach(function(v,
|
2246
|
-
s.set(
|
2249
|
+
}) : isMap$1(e) && e.forEach(function(v, y) {
|
2250
|
+
s.set(y, baseClone(v, t, r, y, e, o));
|
2247
2251
|
});
|
2248
|
-
var _ = u ? l ? getAllKeysIn : getAllKeys : l ? keysIn : keys,
|
2249
|
-
return arrayEach(
|
2250
|
-
|
2252
|
+
var _ = u ? l ? getAllKeysIn : getAllKeys : l ? keysIn : keys, b = c ? void 0 : _(e);
|
2253
|
+
return arrayEach(b || e, function(v, y) {
|
2254
|
+
b && (y = v, v = e[y]), assignValue(s, y, baseClone(v, t, r, y, e, o));
|
2251
2255
|
}), s;
|
2252
2256
|
}
|
2253
2257
|
var CLONE_DEEP_FLAG = 1, CLONE_SYMBOLS_FLAG = 4;
|
@@ -2287,9 +2291,9 @@ function equalArrays(e, t, r, n, a, o) {
|
|
2287
2291
|
return u == t && c == e;
|
2288
2292
|
var g = -1, m = !0, p = r & COMPARE_UNORDERED_FLAG$3 ? new SetCache() : void 0;
|
2289
2293
|
for (o.set(e, t), o.set(t, e); ++g < i; ) {
|
2290
|
-
var _ = e[g],
|
2294
|
+
var _ = e[g], b = t[g];
|
2291
2295
|
if (n)
|
2292
|
-
var v = s ? n(
|
2296
|
+
var v = s ? n(b, _, g, t, e, o) : n(_, b, g, e, t, o);
|
2293
2297
|
if (v !== void 0) {
|
2294
2298
|
if (v)
|
2295
2299
|
continue;
|
@@ -2297,14 +2301,14 @@ function equalArrays(e, t, r, n, a, o) {
|
|
2297
2301
|
break;
|
2298
2302
|
}
|
2299
2303
|
if (p) {
|
2300
|
-
if (!arraySome(t, function(
|
2301
|
-
if (!cacheHas(p,
|
2302
|
-
return p.push(
|
2304
|
+
if (!arraySome(t, function(y, C) {
|
2305
|
+
if (!cacheHas(p, C) && (_ === y || a(_, y, r, n, o)))
|
2306
|
+
return p.push(C);
|
2303
2307
|
})) {
|
2304
2308
|
m = !1;
|
2305
2309
|
break;
|
2306
2310
|
}
|
2307
|
-
} else if (!(_ ===
|
2311
|
+
} else if (!(_ === b || a(_, b, r, n, o))) {
|
2308
2312
|
m = !1;
|
2309
2313
|
break;
|
2310
2314
|
}
|
@@ -2372,24 +2376,24 @@ function equalObjects(e, t, r, n, a, o) {
|
|
2372
2376
|
var p = o.get(e), _ = o.get(t);
|
2373
2377
|
if (p && _)
|
2374
2378
|
return p == t && _ == e;
|
2375
|
-
var
|
2379
|
+
var b = !0;
|
2376
2380
|
o.set(e, t), o.set(t, e);
|
2377
2381
|
for (var v = s; ++g < l; ) {
|
2378
2382
|
m = i[g];
|
2379
|
-
var
|
2383
|
+
var y = e[m], C = t[m];
|
2380
2384
|
if (n)
|
2381
|
-
var O = s ? n(
|
2382
|
-
if (!(O === void 0 ?
|
2383
|
-
|
2385
|
+
var O = s ? n(C, y, m, t, e, o) : n(y, C, m, e, t, o);
|
2386
|
+
if (!(O === void 0 ? y === C || a(y, C, r, n, o) : O)) {
|
2387
|
+
b = !1;
|
2384
2388
|
break;
|
2385
2389
|
}
|
2386
2390
|
v || (v = m == "constructor");
|
2387
2391
|
}
|
2388
|
-
if (
|
2389
|
-
var P = e.constructor,
|
2390
|
-
P !=
|
2392
|
+
if (b && !v) {
|
2393
|
+
var P = e.constructor, A = t.constructor;
|
2394
|
+
P != A && "constructor" in e && "constructor" in t && !(typeof P == "function" && P instanceof P && typeof A == "function" && A instanceof A) && (b = !1);
|
2391
2395
|
}
|
2392
|
-
return o.delete(e), o.delete(t),
|
2396
|
+
return o.delete(e), o.delete(t), b;
|
2393
2397
|
}
|
2394
2398
|
var COMPARE_PARTIAL_FLAG$2 = 1, argsTag = "[object Arguments]", arrayTag = "[object Array]", objectTag = "[object Object]", objectProto = Object.prototype, hasOwnProperty = objectProto.hasOwnProperty;
|
2395
2399
|
function baseIsEqualDeep(e, t, r, n, a, o) {
|
@@ -2406,8 +2410,8 @@ function baseIsEqualDeep(e, t, r, n, a, o) {
|
|
2406
2410
|
if (!(r & COMPARE_PARTIAL_FLAG$2)) {
|
2407
2411
|
var p = c && hasOwnProperty.call(e, "__wrapped__"), _ = g && hasOwnProperty.call(t, "__wrapped__");
|
2408
2412
|
if (p || _) {
|
2409
|
-
var
|
2410
|
-
return o || (o = new Stack()), a(
|
2413
|
+
var b = p ? e.value() : e, v = _ ? t.value() : t;
|
2414
|
+
return o || (o = new Stack()), a(b, v, r, n, o);
|
2411
2415
|
}
|
2412
2416
|
}
|
2413
2417
|
return m ? (o || (o = new Stack()), equalObjects(e, t, r, n, a, o)) : !1;
|
@@ -3414,12 +3418,12 @@ setTwoToneColor("#1890ff");
|
|
3414
3418
|
var Icon$1 = function(t, r) {
|
3415
3419
|
var n, a = _objectSpread$i({}, t, r.attrs), o = a.class, s = a.icon, i = a.spin, l = a.rotate, u = a.tabindex, c = a.twoToneColor, g = a.onClick, m = _objectWithoutProperties(a, _excluded), p = (n = {
|
3416
3420
|
anticon: !0
|
3417
|
-
}, _defineProperty$i(n, "anticon-".concat(s.name), Boolean(s.name)), _defineProperty$i(n, o, o), n), _ = i === "" || !!i || s.name === "loading" ? "anticon-spin" : "",
|
3418
|
-
|
3421
|
+
}, _defineProperty$i(n, "anticon-".concat(s.name), Boolean(s.name)), _defineProperty$i(n, o, o), n), _ = i === "" || !!i || s.name === "loading" ? "anticon-spin" : "", b = u;
|
3422
|
+
b === void 0 && g && (b = -1, m.tabindex = b);
|
3419
3423
|
var v = l ? {
|
3420
3424
|
msTransform: "rotate(".concat(l, "deg)"),
|
3421
3425
|
transform: "rotate(".concat(l, "deg)")
|
3422
|
-
} : void 0,
|
3426
|
+
} : void 0, y = normalizeTwoToneColors(c), C = _slicedToArray(y, 2), O = C[0], P = C[1];
|
3423
3427
|
return createVNode("span", _objectSpread$i({
|
3424
3428
|
role: "img",
|
3425
3429
|
"aria-label": s.name
|
@@ -4096,12 +4100,12 @@ const UploadOutlined$1 = UploadOutlined, getProps$p = () => ({
|
|
4096
4100
|
KgTableSettingGridConfigModal: {
|
4097
4101
|
title: "Config Grid"
|
4098
4102
|
},
|
4099
|
-
KgTableSettingVarGridMasterModal: {
|
4100
|
-
title: "Config Grid Views"
|
4101
|
-
},
|
4102
4103
|
KgTableSettingSaveGridMaster: {
|
4103
4104
|
title: "Save Grid View As"
|
4104
4105
|
},
|
4106
|
+
KgTableSettingVarGridMasterModal: {
|
4107
|
+
title: "Config Grid Views"
|
4108
|
+
},
|
4105
4109
|
KgVarConfig: {
|
4106
4110
|
action: "Action",
|
4107
4111
|
allForm: "All Form",
|
@@ -4149,6 +4153,7 @@ const UploadOutlined$1 = UploadOutlined, getProps$p = () => ({
|
|
4149
4153
|
edit: "Edit",
|
4150
4154
|
emptyText: "NO DATA",
|
4151
4155
|
export: "Export",
|
4156
|
+
exportSuccess: "Export Successfully",
|
4152
4157
|
import: "Import",
|
4153
4158
|
lookup: "Lookup",
|
4154
4159
|
no: "NO",
|
@@ -4201,12 +4206,12 @@ const UploadOutlined$1 = UploadOutlined, getProps$p = () => ({
|
|
4201
4206
|
KgTableSettingGridConfigModal: {
|
4202
4207
|
title: "\u914D\u7F6E\u8868\u683C"
|
4203
4208
|
},
|
4204
|
-
KgTableSettingVarGridMasterModal: {
|
4205
|
-
title: "\u914D\u7F6E\u89C6\u56FE"
|
4206
|
-
},
|
4207
4209
|
KgTableSettingSaveGridMaster: {
|
4208
4210
|
title: "\u53E6\u5B58\u89C6\u56FE"
|
4209
4211
|
},
|
4212
|
+
KgTableSettingVarGridMasterModal: {
|
4213
|
+
title: "\u914D\u7F6E\u89C6\u56FE"
|
4214
|
+
},
|
4210
4215
|
KgVarConfig: {
|
4211
4216
|
action: "\u64CD\u4F5C",
|
4212
4217
|
allForm: "\u6240\u6709\u754C\u9762",
|
@@ -4253,6 +4258,7 @@ const UploadOutlined$1 = UploadOutlined, getProps$p = () => ({
|
|
4253
4258
|
edit: "\u7F16\u8F91",
|
4254
4259
|
emptyText: "\u6682\u65E0\u6570\u636E",
|
4255
4260
|
export: "\u5BFC\u51FA",
|
4261
|
+
exportSuccess: "\u5BFC\u51FA\u6210\u529F",
|
4256
4262
|
import: "\u5BFC\u5165",
|
4257
4263
|
lookup: "\u67E5\u627E",
|
4258
4264
|
no: "\u5426",
|
@@ -4273,7 +4279,7 @@ var KG_APP = /* @__PURE__ */ ((e) => (e.DATA_MANAGER = "data-manager", e.BUSINES
|
|
4273
4279
|
const KG_APPS = ["data-manager", "business-manager", "sys"];
|
4274
4280
|
var KG_APP_PREFIX = /* @__PURE__ */ ((e) => (e.DATA_MANAGER = "/wms/data-manager", e.BUSINESS_MANAGER = "/wms/business-manager", e.SYS = "/sys", e))(KG_APP_PREFIX || {});
|
4275
4281
|
const KG_APP_PREFIXS = ["/wms/data-manager", "/wms/business-manager", "/sys"];
|
4276
|
-
var KG_CONTROL_TYPE = /* @__PURE__ */ ((e) => (e.INPUT = "INPUT", e.INPUT_PASSWORD = "INPUT_PASSWORD", e.INPUT_AREA = "INPUT_AREA", e.INPUT_NUMBER = "INPUT_NUMBER", e.CHECKBOX = "CHECKBOX", e.SWITCH = "SWITCH", e.SELECT = "SELECT", e.SELECT_MULTIPLE = "SELECT_MULTIPLE", e.DATE_DATE = "DATE_DATE", e.DATE_DATE_RANGE = "DATE_DATE_RANGE", e.DATE_DATETIME = "DATE_DATETIME", e.DATE_DATETIME_RANGE = "DATE_DATETIME_RANGE", e.DATE_WEEK = "DATE_WEEK", e.DATE_MONTH = "DATE_MONTH", e.DATE_YEAR = "DATE_YEAR", e.UOM = "UOM", e.BTN_UPLOAD = "BTN_UPLOAD", e))(KG_CONTROL_TYPE || {}), KG_CONTROL_CONTEXT = /* @__PURE__ */ ((e) => (e.SEARCH = "SEARCH", e.SUBMIT = "SUBMIT", e))(KG_CONTROL_CONTEXT || {}), KG_TD_DISPLAY_TYPE = /* @__PURE__ */ ((e) => (e.YN = "YN", e.ENUM = "ENUM", e.PROGRESS = "PROGRESS", e.FILE_SIZE = "FILE_SIZE", e))(KG_TD_DISPLAY_TYPE || {}), KG_BTN_TYPE = /* @__PURE__ */ ((e) => (e.CREATE = "CREATE", e.UPDATE = "UPDATE", e.COPY = "COPY", e.DELETE = "DELETE", e.IMPORT = "IMPORT", e.EXPORT = "EXPORT", e.SEARCH = "SEARCH", e.CLEAR = "CLEAR", e.REFRESH = "REFRESH", e.OTHER = "OTHER", e))(KG_BTN_TYPE || {}), KG_BTN_COLOR = /* @__PURE__ */ ((e) => (e.DANGER = "DANGER", e.WARN = "WARN", e))(KG_BTN_COLOR || {}), KG_BUTTON_DISPLAY_TYPE = /* @__PURE__ */ ((e) => (e.DEFAULT = "DEFAULT", e.SELECT = "SELECT", e))(KG_BUTTON_DISPLAY_TYPE || {}), KG_CUSTOM_LEVEL = /* @__PURE__ */ ((e) => (e[e.L0 = 0] = "L0", e[e.L10 = 10] = "L10", e))(KG_CUSTOM_LEVEL || {}), KG_SUBMIT_LAYOUT = /* @__PURE__ */ ((e) => (e.VERTICAL = "vertical", e.HORIZONTAL = "horizontal", e))(KG_SUBMIT_LAYOUT || {}), KG_POSSIBILITY_DATA_TYPE = /* @__PURE__ */ ((e) => (e.STRING = "string", e.NUMBER = "number", e.BOOLEAN = "boolean", e))(KG_POSSIBILITY_DATA_TYPE || {}), KG_WIDTH_UNIT = /* @__PURE__ */ ((e) => (e.SPAN = "SPAN", e.PX = "PX", e))(KG_WIDTH_UNIT || {}), KG_DESCRIPTION_CODE_NAME = /* @__PURE__ */ ((e) => (e.YN = "yn", e.VAR_SUBMIT_LAYOUT = "var_submit_layout", e.VAR_SPAN = "var_span", e.VAR_BUTTON_DISPLAY_TYPE = "var_button_display_type", e.VAR_WIDTH_UNIT = "var_width_unit", e))(KG_DESCRIPTION_CODE_NAME || {});
|
4282
|
+
var KG_CONTROL_TYPE = /* @__PURE__ */ ((e) => (e.INPUT = "INPUT", e.INPUT_PASSWORD = "INPUT_PASSWORD", e.INPUT_AREA = "INPUT_AREA", e.INPUT_NUMBER = "INPUT_NUMBER", e.CHECKBOX = "CHECKBOX", e.SWITCH = "SWITCH", e.SELECT = "SELECT", e.SELECT_MULTIPLE = "SELECT_MULTIPLE", e.DATE_DATE = "DATE_DATE", e.DATE_DATE_RANGE = "DATE_DATE_RANGE", e.DATE_DATETIME = "DATE_DATETIME", e.DATE_DATETIME_RANGE = "DATE_DATETIME_RANGE", e.DATE_WEEK = "DATE_WEEK", e.DATE_MONTH = "DATE_MONTH", e.DATE_YEAR = "DATE_YEAR", e.UOM = "UOM", e.BTN_UPLOAD = "BTN_UPLOAD", e))(KG_CONTROL_TYPE || {}), KG_CONTROL_CONTEXT = /* @__PURE__ */ ((e) => (e.SEARCH = "SEARCH", e.SUBMIT = "SUBMIT", e))(KG_CONTROL_CONTEXT || {}), KG_TD_DISPLAY_TYPE = /* @__PURE__ */ ((e) => (e.YN = "YN", e.ENUM = "ENUM", e.PROGRESS = "PROGRESS", e.FILE_SIZE = "FILE_SIZE", e))(KG_TD_DISPLAY_TYPE || {}), KG_BTN_TYPE = /* @__PURE__ */ ((e) => (e.CREATE = "CREATE", e.UPDATE = "UPDATE", e.COPY = "COPY", e.DELETE = "DELETE", e.IMPORT = "IMPORT", e.EXPORT = "EXPORT", e.SEARCH = "SEARCH", e.CLEAR = "CLEAR", e.REFRESH = "REFRESH", e.OTHER = "OTHER", e))(KG_BTN_TYPE || {}), KG_BTN_COLOR = /* @__PURE__ */ ((e) => (e.DANGER = "DANGER", e.WARN = "WARN", e))(KG_BTN_COLOR || {}), KG_BUTTON_DISPLAY_TYPE = /* @__PURE__ */ ((e) => (e.DEFAULT = "DEFAULT", e.SELECT = "SELECT", e))(KG_BUTTON_DISPLAY_TYPE || {}), KG_CUSTOM_LEVEL = /* @__PURE__ */ ((e) => (e[e.L0 = 0] = "L0", e[e.L10 = 10] = "L10", e))(KG_CUSTOM_LEVEL || {}), KG_SUBMIT_LAYOUT = /* @__PURE__ */ ((e) => (e.VERTICAL = "vertical", e.HORIZONTAL = "horizontal", e))(KG_SUBMIT_LAYOUT || {}), KG_POSSIBILITY_DATA_TYPE = /* @__PURE__ */ ((e) => (e.STRING = "string", e.NUMBER = "number", e.BOOLEAN = "boolean", e))(KG_POSSIBILITY_DATA_TYPE || {}), KG_WIDTH_UNIT = /* @__PURE__ */ ((e) => (e.SPAN = "SPAN", e.PX = "PX", e))(KG_WIDTH_UNIT || {}), KG_EXCEL_SUFFIX = /* @__PURE__ */ ((e) => (e.XLS = "xls", e.XLSX = "xlsx", e))(KG_EXCEL_SUFFIX || {}), KG_DESCRIPTION_CODE_NAME = /* @__PURE__ */ ((e) => (e.YN = "yn", e.VAR_SUBMIT_LAYOUT = "var_submit_layout", e.VAR_SPAN = "var_span", e.VAR_BUTTON_DISPLAY_TYPE = "var_button_display_type", e.VAR_WIDTH_UNIT = "var_width_unit", e))(KG_DESCRIPTION_CODE_NAME || {});
|
4277
4283
|
function isPathInApp(e, t) {
|
4278
4284
|
var r, n;
|
4279
4285
|
switch (t) {
|
@@ -4320,112 +4326,112 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4320
4326
|
(function(r, n) {
|
4321
4327
|
e.exports = n();
|
4322
4328
|
})(commonjsGlobal, function() {
|
4323
|
-
var r = 1e3, n = 6e4, a = 36e5, o = "millisecond", s = "second", i = "minute", l = "hour", u = "day", c = "week", g = "month", m = "quarter", p = "year", _ = "date",
|
4324
|
-
var D = ["th", "st", "nd", "rd"],
|
4325
|
-
return "[" +
|
4326
|
-
} }, O = function(
|
4327
|
-
var x = String(
|
4328
|
-
return !x || x.length >= D ?
|
4329
|
-
}, P = { s: O, z: function(
|
4330
|
-
var D = -
|
4331
|
-
return (D <= 0 ? "+" : "-") + O(x, 2, "0") + ":" + O(
|
4332
|
-
}, m: function
|
4333
|
-
if (D.date() <
|
4334
|
-
return -
|
4335
|
-
var x = 12 * (
|
4336
|
-
return +(-(x + (
|
4337
|
-
}, a: function(
|
4338
|
-
return
|
4339
|
-
}, p: function(
|
4340
|
-
return { M: g, y: p, w: c, d: u, D: _, h: l, m: i, s, ms: o, Q: m }[
|
4341
|
-
}, u: function(
|
4342
|
-
return
|
4343
|
-
} },
|
4344
|
-
|
4345
|
-
var L = function(
|
4346
|
-
return
|
4347
|
-
}, w = function
|
4348
|
-
var
|
4329
|
+
var r = 1e3, n = 6e4, a = 36e5, o = "millisecond", s = "second", i = "minute", l = "hour", u = "day", c = "week", g = "month", m = "quarter", p = "year", _ = "date", b = "Invalid Date", v = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, C = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(V) {
|
4330
|
+
var D = ["th", "st", "nd", "rd"], I = V % 100;
|
4331
|
+
return "[" + V + (D[(I - 20) % 10] || D[I] || D[0]) + "]";
|
4332
|
+
} }, O = function(V, D, I) {
|
4333
|
+
var x = String(V);
|
4334
|
+
return !x || x.length >= D ? V : "" + Array(D + 1 - x.length).join(I) + V;
|
4335
|
+
}, P = { s: O, z: function(V) {
|
4336
|
+
var D = -V.utcOffset(), I = Math.abs(D), x = Math.floor(I / 60), $ = I % 60;
|
4337
|
+
return (D <= 0 ? "+" : "-") + O(x, 2, "0") + ":" + O($, 2, "0");
|
4338
|
+
}, m: function V(D, I) {
|
4339
|
+
if (D.date() < I.date())
|
4340
|
+
return -V(I, D);
|
4341
|
+
var x = 12 * (I.year() - D.year()) + (I.month() - D.month()), $ = D.clone().add(x, g), F = I - $ < 0, K = D.clone().add(x + (F ? -1 : 1), g);
|
4342
|
+
return +(-(x + (I - $) / (F ? $ - K : K - $)) || 0);
|
4343
|
+
}, a: function(V) {
|
4344
|
+
return V < 0 ? Math.ceil(V) || 0 : Math.floor(V);
|
4345
|
+
}, p: function(V) {
|
4346
|
+
return { M: g, y: p, w: c, d: u, D: _, h: l, m: i, s, ms: o, Q: m }[V] || String(V || "").toLowerCase().replace(/s$/, "");
|
4347
|
+
}, u: function(V) {
|
4348
|
+
return V === void 0;
|
4349
|
+
} }, A = "en", T = {};
|
4350
|
+
T[A] = C;
|
4351
|
+
var L = function(V) {
|
4352
|
+
return V instanceof E;
|
4353
|
+
}, w = function V(D, I, x) {
|
4354
|
+
var $;
|
4349
4355
|
if (!D)
|
4350
|
-
return
|
4356
|
+
return A;
|
4351
4357
|
if (typeof D == "string") {
|
4352
4358
|
var F = D.toLowerCase();
|
4353
|
-
|
4359
|
+
T[F] && ($ = F), I && (T[F] = I, $ = F);
|
4354
4360
|
var K = D.split("-");
|
4355
|
-
if (
|
4356
|
-
return
|
4361
|
+
if (!$ && K.length > 1)
|
4362
|
+
return V(K[0]);
|
4357
4363
|
} else {
|
4358
4364
|
var W = D.name;
|
4359
|
-
|
4360
|
-
}
|
4361
|
-
return !x &&
|
4362
|
-
}, k = function(
|
4363
|
-
if (L(
|
4364
|
-
return
|
4365
|
-
var
|
4366
|
-
return
|
4365
|
+
T[W] = D, $ = W;
|
4366
|
+
}
|
4367
|
+
return !x && $ && (A = $), $ || !x && A;
|
4368
|
+
}, k = function(V, D) {
|
4369
|
+
if (L(V))
|
4370
|
+
return V.clone();
|
4371
|
+
var I = typeof D == "object" ? D : {};
|
4372
|
+
return I.date = V, I.args = arguments, new E(I);
|
4367
4373
|
}, M = P;
|
4368
|
-
M.l = w, M.i = L, M.w = function(
|
4369
|
-
return k(
|
4374
|
+
M.l = w, M.i = L, M.w = function(V, D) {
|
4375
|
+
return k(V, { locale: D.$L, utc: D.$u, x: D.$x, $offset: D.$offset });
|
4370
4376
|
};
|
4371
4377
|
var E = function() {
|
4372
|
-
function
|
4373
|
-
this.$L = w(
|
4378
|
+
function V(I) {
|
4379
|
+
this.$L = w(I.locale, null, !0), this.parse(I);
|
4374
4380
|
}
|
4375
|
-
var D =
|
4376
|
-
return D.parse = function(
|
4381
|
+
var D = V.prototype;
|
4382
|
+
return D.parse = function(I) {
|
4377
4383
|
this.$d = function(x) {
|
4378
|
-
var
|
4379
|
-
if (
|
4384
|
+
var $ = x.date, F = x.utc;
|
4385
|
+
if ($ === null)
|
4380
4386
|
return new Date(NaN);
|
4381
|
-
if (M.u(
|
4387
|
+
if (M.u($))
|
4382
4388
|
return new Date();
|
4383
|
-
if (
|
4384
|
-
return new Date(
|
4385
|
-
if (typeof
|
4386
|
-
var K =
|
4389
|
+
if ($ instanceof Date)
|
4390
|
+
return new Date($);
|
4391
|
+
if (typeof $ == "string" && !/Z$/i.test($)) {
|
4392
|
+
var K = $.match(v);
|
4387
4393
|
if (K) {
|
4388
4394
|
var W = K[2] - 1 || 0, q = (K[7] || "0").substring(0, 3);
|
4389
4395
|
return F ? new Date(Date.UTC(K[1], W, K[3] || 1, K[4] || 0, K[5] || 0, K[6] || 0, q)) : new Date(K[1], W, K[3] || 1, K[4] || 0, K[5] || 0, K[6] || 0, q);
|
4390
4396
|
}
|
4391
4397
|
}
|
4392
|
-
return new Date(
|
4393
|
-
}(
|
4398
|
+
return new Date($);
|
4399
|
+
}(I), this.$x = I.x || {}, this.init();
|
4394
4400
|
}, D.init = function() {
|
4395
|
-
var
|
4396
|
-
this.$y =
|
4401
|
+
var I = this.$d;
|
4402
|
+
this.$y = I.getFullYear(), this.$M = I.getMonth(), this.$D = I.getDate(), this.$W = I.getDay(), this.$H = I.getHours(), this.$m = I.getMinutes(), this.$s = I.getSeconds(), this.$ms = I.getMilliseconds();
|
4397
4403
|
}, D.$utils = function() {
|
4398
4404
|
return M;
|
4399
4405
|
}, D.isValid = function() {
|
4400
|
-
return this.$d.toString() !==
|
4401
|
-
}, D.isSame = function(
|
4402
|
-
var
|
4403
|
-
return this.startOf(x) <=
|
4404
|
-
}, D.isAfter = function(
|
4405
|
-
return k(
|
4406
|
-
}, D.isBefore = function(
|
4407
|
-
return this.endOf(x) < k(
|
4408
|
-
}, D.$g = function(
|
4409
|
-
return M.u(
|
4406
|
+
return this.$d.toString() !== b;
|
4407
|
+
}, D.isSame = function(I, x) {
|
4408
|
+
var $ = k(I);
|
4409
|
+
return this.startOf(x) <= $ && $ <= this.endOf(x);
|
4410
|
+
}, D.isAfter = function(I, x) {
|
4411
|
+
return k(I) < this.startOf(x);
|
4412
|
+
}, D.isBefore = function(I, x) {
|
4413
|
+
return this.endOf(x) < k(I);
|
4414
|
+
}, D.$g = function(I, x, $) {
|
4415
|
+
return M.u(I) ? this[x] : this.set($, I);
|
4410
4416
|
}, D.unix = function() {
|
4411
4417
|
return Math.floor(this.valueOf() / 1e3);
|
4412
4418
|
}, D.valueOf = function() {
|
4413
4419
|
return this.$d.getTime();
|
4414
|
-
}, D.startOf = function(
|
4415
|
-
var
|
4416
|
-
var ne = M.w(
|
4420
|
+
}, D.startOf = function(I, x) {
|
4421
|
+
var $ = this, F = !!M.u(x) || x, K = M.p(I), W = function(Z, J) {
|
4422
|
+
var ne = M.w($.$u ? Date.UTC($.$y, J, Z) : new Date($.$y, J, Z), $);
|
4417
4423
|
return F ? ne : ne.endOf(u);
|
4418
4424
|
}, q = function(Z, J) {
|
4419
|
-
return M.w(
|
4420
|
-
},
|
4425
|
+
return M.w($.toDate()[Z].apply($.toDate("s"), (F ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(J)), $);
|
4426
|
+
}, X = this.$W, N = this.$M, U = this.$D, H = "set" + (this.$u ? "UTC" : "");
|
4421
4427
|
switch (K) {
|
4422
4428
|
case p:
|
4423
4429
|
return F ? W(1, 0) : W(31, 11);
|
4424
4430
|
case g:
|
4425
|
-
return F ? W(1,
|
4431
|
+
return F ? W(1, N) : W(0, N + 1);
|
4426
4432
|
case c:
|
4427
|
-
var G = this.$locale().weekStart || 0, te = (
|
4428
|
-
return W(F ? U - te : U + (6 - te),
|
4433
|
+
var G = this.$locale().weekStart || 0, te = (X < G ? X + 7 : X) - G;
|
4434
|
+
return W(F ? U - te : U + (6 - te), N);
|
4429
4435
|
case u:
|
4430
4436
|
case _:
|
4431
4437
|
return q(H + "Hours", 0);
|
@@ -4438,68 +4444,68 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4438
4444
|
default:
|
4439
4445
|
return this.clone();
|
4440
4446
|
}
|
4441
|
-
}, D.endOf = function(
|
4442
|
-
return this.startOf(
|
4443
|
-
}, D.$set = function(
|
4444
|
-
var
|
4447
|
+
}, D.endOf = function(I) {
|
4448
|
+
return this.startOf(I, !1);
|
4449
|
+
}, D.$set = function(I, x) {
|
4450
|
+
var $, F = M.p(I), K = "set" + (this.$u ? "UTC" : ""), W = ($ = {}, $[u] = K + "Date", $[_] = K + "Date", $[g] = K + "Month", $[p] = K + "FullYear", $[l] = K + "Hours", $[i] = K + "Minutes", $[s] = K + "Seconds", $[o] = K + "Milliseconds", $)[F], q = F === u ? this.$D + (x - this.$W) : x;
|
4445
4451
|
if (F === g || F === p) {
|
4446
|
-
var
|
4447
|
-
|
4452
|
+
var X = this.clone().set(_, 1);
|
4453
|
+
X.$d[W](q), X.init(), this.$d = X.set(_, Math.min(this.$D, X.daysInMonth())).$d;
|
4448
4454
|
} else
|
4449
4455
|
W && this.$d[W](q);
|
4450
4456
|
return this.init(), this;
|
4451
|
-
}, D.set = function(
|
4452
|
-
return this.clone().$set(
|
4453
|
-
}, D.get = function(
|
4454
|
-
return this[M.p(
|
4455
|
-
}, D.add = function(
|
4456
|
-
var
|
4457
|
-
|
4458
|
-
var K = M.p(x), W = function(
|
4457
|
+
}, D.set = function(I, x) {
|
4458
|
+
return this.clone().$set(I, x);
|
4459
|
+
}, D.get = function(I) {
|
4460
|
+
return this[M.p(I)]();
|
4461
|
+
}, D.add = function(I, x) {
|
4462
|
+
var $, F = this;
|
4463
|
+
I = Number(I);
|
4464
|
+
var K = M.p(x), W = function(N) {
|
4459
4465
|
var U = k(F);
|
4460
|
-
return M.w(U.date(U.date() + Math.round(
|
4466
|
+
return M.w(U.date(U.date() + Math.round(N * I)), F);
|
4461
4467
|
};
|
4462
4468
|
if (K === g)
|
4463
|
-
return this.set(g, this.$M +
|
4469
|
+
return this.set(g, this.$M + I);
|
4464
4470
|
if (K === p)
|
4465
|
-
return this.set(p, this.$y +
|
4471
|
+
return this.set(p, this.$y + I);
|
4466
4472
|
if (K === u)
|
4467
4473
|
return W(1);
|
4468
4474
|
if (K === c)
|
4469
4475
|
return W(7);
|
4470
|
-
var q = (
|
4471
|
-
return M.w(
|
4472
|
-
}, D.subtract = function(
|
4473
|
-
return this.add(-1 *
|
4474
|
-
}, D.format = function(
|
4475
|
-
var x = this,
|
4476
|
+
var q = ($ = {}, $[i] = n, $[l] = a, $[s] = r, $)[K] || 1, X = this.$d.getTime() + I * q;
|
4477
|
+
return M.w(X, this);
|
4478
|
+
}, D.subtract = function(I, x) {
|
4479
|
+
return this.add(-1 * I, x);
|
4480
|
+
}, D.format = function(I) {
|
4481
|
+
var x = this, $ = this.$locale();
|
4476
4482
|
if (!this.isValid())
|
4477
|
-
return
|
4478
|
-
var F =
|
4483
|
+
return $.invalidDate || b;
|
4484
|
+
var F = I || "YYYY-MM-DDTHH:mm:ssZ", K = M.z(this), W = this.$H, q = this.$m, X = this.$M, N = $.weekdays, U = $.months, H = function(J, ne, se, le) {
|
4479
4485
|
return J && (J[ne] || J(x, F)) || se[ne].slice(0, le);
|
4480
4486
|
}, G = function(J) {
|
4481
4487
|
return M.s(W % 12 || 12, J, "0");
|
4482
|
-
}, te =
|
4488
|
+
}, te = $.meridiem || function(J, ne, se) {
|
4483
4489
|
var le = J < 12 ? "AM" : "PM";
|
4484
4490
|
return se ? le.toLowerCase() : le;
|
4485
|
-
}, Z = { YY: String(this.$y).slice(-2), YYYY: this.$y, M:
|
4486
|
-
return F.replace(
|
4491
|
+
}, Z = { YY: String(this.$y).slice(-2), YYYY: this.$y, M: X + 1, MM: M.s(X + 1, 2, "0"), MMM: H($.monthsShort, X, U, 3), MMMM: H(U, X), D: this.$D, DD: M.s(this.$D, 2, "0"), d: String(this.$W), dd: H($.weekdaysMin, this.$W, N, 2), ddd: H($.weekdaysShort, this.$W, N, 3), dddd: N[this.$W], H: String(W), HH: M.s(W, 2, "0"), h: G(1), hh: G(2), a: te(W, q, !0), A: te(W, q, !1), m: String(q), mm: M.s(q, 2, "0"), s: String(this.$s), ss: M.s(this.$s, 2, "0"), SSS: M.s(this.$ms, 3, "0"), Z: K };
|
4492
|
+
return F.replace(y, function(J, ne) {
|
4487
4493
|
return ne || Z[J] || K.replace(":", "");
|
4488
4494
|
});
|
4489
4495
|
}, D.utcOffset = function() {
|
4490
4496
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
4491
|
-
}, D.diff = function(
|
4492
|
-
var F, K = M.p(x), W = k(
|
4493
|
-
return
|
4497
|
+
}, D.diff = function(I, x, $) {
|
4498
|
+
var F, K = M.p(x), W = k(I), q = (W.utcOffset() - this.utcOffset()) * n, X = this - W, N = M.m(this, W);
|
4499
|
+
return N = (F = {}, F[p] = N / 12, F[g] = N, F[m] = N / 3, F[c] = (X - q) / 6048e5, F[u] = (X - q) / 864e5, F[l] = X / a, F[i] = X / n, F[s] = X / r, F)[K] || X, $ ? N : M.a(N);
|
4494
4500
|
}, D.daysInMonth = function() {
|
4495
4501
|
return this.endOf(g).$D;
|
4496
4502
|
}, D.$locale = function() {
|
4497
|
-
return
|
4498
|
-
}, D.locale = function(
|
4499
|
-
if (
|
4503
|
+
return T[this.$L];
|
4504
|
+
}, D.locale = function(I, x) {
|
4505
|
+
if (!I)
|
4500
4506
|
return this.$L;
|
4501
|
-
var
|
4502
|
-
return F && (
|
4507
|
+
var $ = this.clone(), F = w(I, x, !0);
|
4508
|
+
return F && ($.$L = F), $;
|
4503
4509
|
}, D.clone = function() {
|
4504
4510
|
return M.w(this.$d, this);
|
4505
4511
|
}, D.toDate = function() {
|
@@ -4510,17 +4516,17 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4510
4516
|
return this.$d.toISOString();
|
4511
4517
|
}, D.toString = function() {
|
4512
4518
|
return this.$d.toUTCString();
|
4513
|
-
},
|
4519
|
+
}, V;
|
4514
4520
|
}(), R = E.prototype;
|
4515
|
-
return k.prototype = R, [["$ms", o], ["$s", s], ["$m", i], ["$H", l], ["$W", u], ["$M", g], ["$y", p], ["$D", _]].forEach(function(
|
4516
|
-
R[
|
4517
|
-
return this.$g(D,
|
4521
|
+
return k.prototype = R, [["$ms", o], ["$s", s], ["$m", i], ["$H", l], ["$W", u], ["$M", g], ["$y", p], ["$D", _]].forEach(function(V) {
|
4522
|
+
R[V[1]] = function(D) {
|
4523
|
+
return this.$g(D, V[0], V[1]);
|
4518
4524
|
};
|
4519
|
-
}), k.extend = function(
|
4520
|
-
return
|
4521
|
-
}, k.locale = w, k.isDayjs = L, k.unix = function(
|
4522
|
-
return k(1e3 *
|
4523
|
-
}, k.en =
|
4525
|
+
}), k.extend = function(V, D) {
|
4526
|
+
return V.$i || (V(D, E, k), V.$i = !0), k;
|
4527
|
+
}, k.locale = w, k.isDayjs = L, k.unix = function(V) {
|
4528
|
+
return k(1e3 * V);
|
4529
|
+
}, k.en = T[A], k.Ls = T, k.p = {}, k;
|
4524
4530
|
});
|
4525
4531
|
})(dayjs_min);
|
4526
4532
|
const dayjs = dayjs_min.exports;
|
@@ -4562,34 +4568,34 @@ function filesize(e, {
|
|
4562
4568
|
fullform: m = !1,
|
4563
4569
|
fullforms: p = [],
|
4564
4570
|
exponent: _ = -1,
|
4565
|
-
roundingMethod:
|
4571
|
+
roundingMethod: b = ROUND,
|
4566
4572
|
precision: v = 0
|
4567
4573
|
} = {}) {
|
4568
|
-
let
|
4574
|
+
let y = _, C = Number(e), O = [], P = 0, A = EMPTY;
|
4569
4575
|
n === -1 && c.length === 0 ? (n = 10, c = JEDEC) : n === -1 && c.length > 0 ? (c = c === IEC ? IEC : JEDEC, n = c === IEC ? 2 : 10) : (n = n === 2 ? 2 : 10, c = n === 10 || c === JEDEC ? JEDEC : IEC);
|
4570
|
-
const
|
4576
|
+
const T = n === 10 ? 1e3 : 1024, L = m === !0, w = C < 0, k = Math[b];
|
4571
4577
|
if (typeof e != "bigint" && isNaN(e))
|
4572
4578
|
throw new TypeError(INVALID_NUMBER);
|
4573
4579
|
if (typeof k !== FUNCTION)
|
4574
4580
|
throw new TypeError(INVALID_ROUND);
|
4575
|
-
if (w && (
|
4576
|
-
return
|
4577
|
-
if (
|
4578
|
-
O[0] = 0,
|
4581
|
+
if (w && (C = -C), (y === -1 || isNaN(y)) && (y = Math.floor(Math.log(C) / Math.log(T)), y < 0 && (y = 0)), y > 8 && (v > 0 && (v += 8 - y), y = 8), g === EXPONENT)
|
4582
|
+
return y;
|
4583
|
+
if (C === 0)
|
4584
|
+
O[0] = 0, A = O[1] = STRINGS.symbol[c][t ? BITS : BYTES][y];
|
4579
4585
|
else {
|
4580
|
-
P =
|
4581
|
-
const M = Math.pow(10,
|
4582
|
-
O[0] = k(P * M) / M, O[0] ===
|
4586
|
+
P = C / (n === 2 ? Math.pow(2, y * 10) : Math.pow(1e3, y)), t && (P = P * 8, P >= T && y < 8 && (P = P / T, y++));
|
4587
|
+
const M = Math.pow(10, y > 0 ? a : 0);
|
4588
|
+
O[0] = k(P * M) / M, O[0] === T && y < 8 && _ === -1 && (O[0] = 1, y++), A = O[1] = n === 10 && y === 1 ? t ? SI_KBIT : SI_KBYTE : STRINGS.symbol[c][t ? BITS : BYTES][y];
|
4583
4589
|
}
|
4584
4590
|
if (w && (O[0] = -O[0]), v > 0 && (O[0] = O[0].toPrecision(v)), O[1] = u[O[1]] || O[1], o === !0 ? O[0] = O[0].toLocaleString() : o.length > 0 ? O[0] = O[0].toLocaleString(o, s) : i.length > 0 && (O[0] = O[0].toString().replace(PERIOD, i)), r && Number.isInteger(O[0]) === !1 && a > 0) {
|
4585
|
-
const M = i || PERIOD, E = O[0].toString().split(M), R = E[1] || EMPTY,
|
4586
|
-
O[0] = `${E[0]}${M}${R.padEnd(
|
4591
|
+
const M = i || PERIOD, E = O[0].toString().split(M), R = E[1] || EMPTY, V = R.length, D = a - V;
|
4592
|
+
O[0] = `${E[0]}${M}${R.padEnd(V + D, ZERO)}`;
|
4587
4593
|
}
|
4588
|
-
return L && (O[1] = p[
|
4594
|
+
return L && (O[1] = p[y] ? p[y] : STRINGS.fullform[c][y] + (t ? BIT : BYTE) + (O[0] === 1 ? EMPTY : S)), g === ARRAY ? O : g === OBJECT ? {
|
4589
4595
|
value: O[0],
|
4590
4596
|
symbol: O[1],
|
4591
|
-
exponent:
|
4592
|
-
unit:
|
4597
|
+
exponent: y,
|
4598
|
+
unit: A
|
4593
4599
|
} : O.join(l);
|
4594
4600
|
}
|
4595
4601
|
const data$5 = {
|
@@ -4868,38 +4874,38 @@ function iconToSVG(e, t) {
|
|
4868
4874
|
};
|
4869
4875
|
let o = r.body;
|
4870
4876
|
[r, n].forEach((_) => {
|
4871
|
-
const
|
4872
|
-
let
|
4873
|
-
v ?
|
4877
|
+
const b = [], v = _.hFlip, y = _.vFlip;
|
4878
|
+
let C = _.rotate;
|
4879
|
+
v ? y ? C += 2 : (b.push(
|
4874
4880
|
"translate(" + (a.width + a.left).toString() + " " + (0 - a.top).toString() + ")"
|
4875
|
-
),
|
4881
|
+
), b.push("scale(-1 1)"), a.top = a.left = 0) : y && (b.push(
|
4876
4882
|
"translate(" + (0 - a.left).toString() + " " + (a.height + a.top).toString() + ")"
|
4877
|
-
),
|
4883
|
+
), b.push("scale(1 -1)"), a.top = a.left = 0);
|
4878
4884
|
let O;
|
4879
|
-
switch (
|
4885
|
+
switch (C < 0 && (C -= Math.floor(C / 4) * 4), C = C % 4, C) {
|
4880
4886
|
case 1:
|
4881
|
-
O = a.height / 2 + a.top,
|
4887
|
+
O = a.height / 2 + a.top, b.unshift(
|
4882
4888
|
"rotate(90 " + O.toString() + " " + O.toString() + ")"
|
4883
4889
|
);
|
4884
4890
|
break;
|
4885
4891
|
case 2:
|
4886
|
-
|
4892
|
+
b.unshift(
|
4887
4893
|
"rotate(180 " + (a.width / 2 + a.left).toString() + " " + (a.height / 2 + a.top).toString() + ")"
|
4888
4894
|
);
|
4889
4895
|
break;
|
4890
4896
|
case 3:
|
4891
|
-
O = a.width / 2 + a.left,
|
4897
|
+
O = a.width / 2 + a.left, b.unshift(
|
4892
4898
|
"rotate(-90 " + O.toString() + " " + O.toString() + ")"
|
4893
4899
|
);
|
4894
4900
|
break;
|
4895
4901
|
}
|
4896
|
-
|
4902
|
+
C % 2 === 1 && (a.left !== a.top && (O = a.left, a.left = a.top, a.top = O), a.width !== a.height && (O = a.width, a.width = a.height, a.height = O)), b.length && (o = '<g transform="' + b.join(" ") + '">' + o + "</g>");
|
4897
4903
|
});
|
4898
4904
|
const s = n.width, i = n.height, l = a.width, u = a.height;
|
4899
4905
|
let c, g;
|
4900
4906
|
s === null ? (g = i === null ? "1em" : i === "auto" ? u : i, c = calculateSize(g, l / u)) : (c = s === "auto" ? l : s, g = i === null ? calculateSize(c, u / l) : i === "auto" ? u : i);
|
4901
|
-
const m = {}, p = (_,
|
4902
|
-
isUnsetKeyword(
|
4907
|
+
const m = {}, p = (_, b) => {
|
4908
|
+
isUnsetKeyword(b) || (m[_] = b.toString());
|
4903
4909
|
};
|
4904
4910
|
return p("width", c), p("height", g), m.viewBox = a.left.toString() + " " + a.top.toString() + " " + l.toString() + " " + u.toString(), {
|
4905
4911
|
attributes: m,
|
@@ -5173,12 +5179,12 @@ function sendQuery(e, t, r, n) {
|
|
5173
5179
|
const a = e.resources.length, o = e.random ? Math.floor(Math.random() * a) : e.index;
|
5174
5180
|
let s;
|
5175
5181
|
if (e.random) {
|
5176
|
-
let
|
5177
|
-
for (s = [];
|
5178
|
-
const L = Math.floor(Math.random() *
|
5179
|
-
s.push(
|
5182
|
+
let T = e.resources.slice(0);
|
5183
|
+
for (s = []; T.length > 1; ) {
|
5184
|
+
const L = Math.floor(Math.random() * T.length);
|
5185
|
+
s.push(T[L]), T = T.slice(0, L).concat(T.slice(L + 1));
|
5180
5186
|
}
|
5181
|
-
s = s.concat(
|
5187
|
+
s = s.concat(T);
|
5182
5188
|
} else
|
5183
5189
|
s = e.resources.slice(o).concat(e.resources.slice(0, o));
|
5184
5190
|
const i = Date.now();
|
@@ -5187,15 +5193,15 @@ function sendQuery(e, t, r, n) {
|
|
5187
5193
|
function _() {
|
5188
5194
|
g && (clearTimeout(g), g = null);
|
5189
5195
|
}
|
5190
|
-
function
|
5191
|
-
l === "pending" && (l = "aborted"), _(), m.forEach((
|
5192
|
-
|
5196
|
+
function b() {
|
5197
|
+
l === "pending" && (l = "aborted"), _(), m.forEach((T) => {
|
5198
|
+
T.status === "pending" && (T.status = "aborted");
|
5193
5199
|
}), m = [];
|
5194
5200
|
}
|
5195
|
-
function v(
|
5196
|
-
L && (p = []), typeof
|
5201
|
+
function v(T, L) {
|
5202
|
+
L && (p = []), typeof T == "function" && p.push(T);
|
5197
5203
|
}
|
5198
|
-
function
|
5204
|
+
function y() {
|
5199
5205
|
return {
|
5200
5206
|
startTime: i,
|
5201
5207
|
payload: t,
|
@@ -5203,22 +5209,22 @@ function sendQuery(e, t, r, n) {
|
|
5203
5209
|
queriesSent: u,
|
5204
5210
|
queriesPending: m.length,
|
5205
5211
|
subscribe: v,
|
5206
|
-
abort:
|
5212
|
+
abort: b
|
5207
5213
|
};
|
5208
5214
|
}
|
5209
|
-
function
|
5210
|
-
l = "failed", p.forEach((
|
5211
|
-
|
5215
|
+
function C() {
|
5216
|
+
l = "failed", p.forEach((T) => {
|
5217
|
+
T(void 0, c);
|
5212
5218
|
});
|
5213
5219
|
}
|
5214
5220
|
function O() {
|
5215
|
-
m.forEach((
|
5216
|
-
|
5221
|
+
m.forEach((T) => {
|
5222
|
+
T.status === "pending" && (T.status = "aborted");
|
5217
5223
|
}), m = [];
|
5218
5224
|
}
|
5219
|
-
function P(
|
5225
|
+
function P(T, L, w) {
|
5220
5226
|
const k = L !== "success";
|
5221
|
-
switch (m = m.filter((M) => M !==
|
5227
|
+
switch (m = m.filter((M) => M !== T), l) {
|
5222
5228
|
case "pending":
|
5223
5229
|
break;
|
5224
5230
|
case "failed":
|
@@ -5229,46 +5235,46 @@ function sendQuery(e, t, r, n) {
|
|
5229
5235
|
return;
|
5230
5236
|
}
|
5231
5237
|
if (L === "abort") {
|
5232
|
-
c = w,
|
5238
|
+
c = w, C();
|
5233
5239
|
return;
|
5234
5240
|
}
|
5235
5241
|
if (k) {
|
5236
|
-
c = w, m.length || (s.length ?
|
5242
|
+
c = w, m.length || (s.length ? A() : C());
|
5237
5243
|
return;
|
5238
5244
|
}
|
5239
5245
|
if (_(), O(), !e.random) {
|
5240
|
-
const M = e.resources.indexOf(
|
5246
|
+
const M = e.resources.indexOf(T.resource);
|
5241
5247
|
M !== -1 && M !== e.index && (e.index = M);
|
5242
5248
|
}
|
5243
5249
|
l = "completed", p.forEach((M) => {
|
5244
5250
|
M(w);
|
5245
5251
|
});
|
5246
5252
|
}
|
5247
|
-
function
|
5253
|
+
function A() {
|
5248
5254
|
if (l !== "pending")
|
5249
5255
|
return;
|
5250
5256
|
_();
|
5251
|
-
const
|
5252
|
-
if (
|
5257
|
+
const T = s.shift();
|
5258
|
+
if (T === void 0) {
|
5253
5259
|
if (m.length) {
|
5254
5260
|
g = setTimeout(() => {
|
5255
|
-
_(), l === "pending" && (O(),
|
5261
|
+
_(), l === "pending" && (O(), C());
|
5256
5262
|
}, e.timeout);
|
5257
5263
|
return;
|
5258
5264
|
}
|
5259
|
-
|
5265
|
+
C();
|
5260
5266
|
return;
|
5261
5267
|
}
|
5262
5268
|
const L = {
|
5263
5269
|
status: "pending",
|
5264
|
-
resource:
|
5270
|
+
resource: T,
|
5265
5271
|
callback: (w, k) => {
|
5266
5272
|
P(L, w, k);
|
5267
5273
|
}
|
5268
5274
|
};
|
5269
|
-
m.push(L), u++, g = setTimeout(
|
5275
|
+
m.push(L), u++, g = setTimeout(A, e.rotate), r(T, t, L.callback);
|
5270
5276
|
}
|
5271
|
-
return setTimeout(
|
5277
|
+
return setTimeout(A), y;
|
5272
5278
|
}
|
5273
5279
|
function initRedundancy(e) {
|
5274
5280
|
const t = {
|
@@ -5642,10 +5648,10 @@ function fixSize(e) {
|
|
5642
5648
|
}
|
5643
5649
|
const render = (e, t) => {
|
5644
5650
|
const r = mergeCustomisations(defaultExtendedIconCustomisations, t), n = { ...svgDefaults }, a = t.mode || "svg", o = {}, s = t.style, i = typeof s == "object" && !(s instanceof Array) ? s : {};
|
5645
|
-
for (let
|
5646
|
-
const v = t[
|
5651
|
+
for (let b in t) {
|
5652
|
+
const v = t[b];
|
5647
5653
|
if (v !== void 0)
|
5648
|
-
switch (
|
5654
|
+
switch (b) {
|
5649
5655
|
case "icon":
|
5650
5656
|
case "style":
|
5651
5657
|
case "onLoad":
|
@@ -5654,7 +5660,7 @@ const render = (e, t) => {
|
|
5654
5660
|
case "inline":
|
5655
5661
|
case "hFlip":
|
5656
5662
|
case "vFlip":
|
5657
|
-
r[
|
5663
|
+
r[b] = v === !0 || v === "true" || v === 1;
|
5658
5664
|
break;
|
5659
5665
|
case "flip":
|
5660
5666
|
typeof v == "string" && flipFromString(r, v);
|
@@ -5663,15 +5669,15 @@ const render = (e, t) => {
|
|
5663
5669
|
o.color = v;
|
5664
5670
|
break;
|
5665
5671
|
case "rotate":
|
5666
|
-
typeof v == "string" ? r[
|
5672
|
+
typeof v == "string" ? r[b] = rotateFromString(v) : typeof v == "number" && (r[b] = v);
|
5667
5673
|
break;
|
5668
5674
|
case "ariaHidden":
|
5669
5675
|
case "aria-hidden":
|
5670
5676
|
v !== !0 && v !== "true" && delete n["aria-hidden"];
|
5671
5677
|
break;
|
5672
5678
|
default: {
|
5673
|
-
const
|
5674
|
-
|
5679
|
+
const y = customisationAliases[b];
|
5680
|
+
y ? (v === !0 || v === "true" || v === 1) && (r[y] = !0) : defaultExtendedIconCustomisations[b] === void 0 && (n[b] = v);
|
5675
5681
|
}
|
5676
5682
|
}
|
5677
5683
|
}
|
@@ -5681,8 +5687,8 @@ const render = (e, t) => {
|
|
5681
5687
|
...o,
|
5682
5688
|
...i
|
5683
5689
|
}, Object.assign(n, u);
|
5684
|
-
let
|
5685
|
-
return typeof v == "string" && (v = v.replace(/-/g, "_")), n.innerHTML = replaceIDs(l.body, v ? () => v + "ID" +
|
5690
|
+
let b = 0, v = t.id;
|
5691
|
+
return typeof v == "string" && (v = v.replace(/-/g, "_")), n.innerHTML = replaceIDs(l.body, v ? () => v + "ID" + b++ : "iconifyVue"), h("svg", n);
|
5686
5692
|
}
|
5687
5693
|
const { body: c, width: g, height: m } = e, p = a === "mask" || (a === "bg" ? !1 : c.indexOf("currentColor") !== -1), _ = iconToHTML(c, {
|
5688
5694
|
...u,
|
@@ -5881,12 +5887,12 @@ function createSetupStore(e, t, r = {}, n, a) {
|
|
5881
5887
|
deep: !0
|
5882
5888
|
};
|
5883
5889
|
process.env.NODE_ENV !== "production" && !isVue2 && (l.onTrigger = (w) => {
|
5884
|
-
u ? p = w : u == !1 && !
|
5890
|
+
u ? p = w : u == !1 && !T._hotUpdating && (Array.isArray(p) ? p.push(w) : console.error("\u{1F34D} debuggerEvents should be an array. This is most likely an internal Pinia bug."));
|
5885
5891
|
});
|
5886
5892
|
let u, c, g = markRaw([]), m = markRaw([]), p;
|
5887
5893
|
const _ = n.state.value[e];
|
5888
5894
|
!s && !_ && (process.env.NODE_ENV === "production" || !a) && (n.state.value[e] = {});
|
5889
|
-
const
|
5895
|
+
const b = ref({});
|
5890
5896
|
function v(w) {
|
5891
5897
|
let k;
|
5892
5898
|
u = c = !1, process.env.NODE_ENV !== "production" && (p = []), typeof w == "function" ? (w(n.state.value[e]), k = {
|
@@ -5902,17 +5908,17 @@ function createSetupStore(e, t, r = {}, n, a) {
|
|
5902
5908
|
u = !0;
|
5903
5909
|
}), c = !0, triggerSubscriptions(g, k, n.state.value[e]);
|
5904
5910
|
}
|
5905
|
-
const
|
5911
|
+
const y = process.env.NODE_ENV !== "production" ? () => {
|
5906
5912
|
throw new Error(`\u{1F34D}: Store "${e}" is build using the setup syntax and does not implement $reset().`);
|
5907
5913
|
} : noop$1;
|
5908
|
-
function
|
5914
|
+
function C() {
|
5909
5915
|
o.stop(), g = [], m = [], n._s.delete(e);
|
5910
5916
|
}
|
5911
5917
|
function O(w, k) {
|
5912
5918
|
return function() {
|
5913
5919
|
setActivePinia(n);
|
5914
5920
|
const M = Array.from(arguments), E = [], R = [];
|
5915
|
-
function
|
5921
|
+
function V(x) {
|
5916
5922
|
E.push(x);
|
5917
5923
|
}
|
5918
5924
|
function D(x) {
|
@@ -5921,30 +5927,30 @@ function createSetupStore(e, t, r = {}, n, a) {
|
|
5921
5927
|
triggerSubscriptions(m, {
|
5922
5928
|
args: M,
|
5923
5929
|
name: w,
|
5924
|
-
store:
|
5925
|
-
after:
|
5930
|
+
store: T,
|
5931
|
+
after: V,
|
5926
5932
|
onError: D
|
5927
5933
|
});
|
5928
|
-
let
|
5934
|
+
let I;
|
5929
5935
|
try {
|
5930
|
-
|
5936
|
+
I = k.apply(this && this.$id === e ? this : T, M);
|
5931
5937
|
} catch (x) {
|
5932
5938
|
throw triggerSubscriptions(R, x), x;
|
5933
5939
|
}
|
5934
|
-
return
|
5940
|
+
return I instanceof Promise ? I.then((x) => (triggerSubscriptions(E, x), x)).catch((x) => (triggerSubscriptions(R, x), Promise.reject(x))) : (triggerSubscriptions(E, I), I);
|
5935
5941
|
};
|
5936
5942
|
}
|
5937
5943
|
const P = /* @__PURE__ */ markRaw({
|
5938
5944
|
actions: {},
|
5939
5945
|
getters: {},
|
5940
5946
|
state: [],
|
5941
|
-
hotState:
|
5942
|
-
}),
|
5947
|
+
hotState: b
|
5948
|
+
}), A = {
|
5943
5949
|
_p: n,
|
5944
5950
|
$id: e,
|
5945
5951
|
$onAction: addSubscription.bind(null, m),
|
5946
5952
|
$patch: v,
|
5947
|
-
$reset:
|
5953
|
+
$reset: y,
|
5948
5954
|
$subscribe(w, k = {}) {
|
5949
5955
|
const M = addSubscription(g, w, k.detached, () => E()), E = o.run(() => watch(() => n.state.value[e], (R) => {
|
5950
5956
|
(k.flush === "sync" ? c : u) && w({
|
@@ -5955,28 +5961,28 @@ function createSetupStore(e, t, r = {}, n, a) {
|
|
5955
5961
|
}, assign$1({}, l, k)));
|
5956
5962
|
return M;
|
5957
5963
|
},
|
5958
|
-
$dispose:
|
5959
|
-
},
|
5964
|
+
$dispose: C
|
5965
|
+
}, T = reactive(assign$1(
|
5960
5966
|
process.env.NODE_ENV !== "production" && IS_CLIENT ? {
|
5961
5967
|
_customProperties: markRaw(/* @__PURE__ */ new Set()),
|
5962
5968
|
_hmrPayload: P
|
5963
5969
|
} : {},
|
5964
|
-
|
5970
|
+
A
|
5965
5971
|
));
|
5966
|
-
n._s.set(e,
|
5972
|
+
n._s.set(e, T);
|
5967
5973
|
const L = n._e.run(() => (o = effectScope(), o.run(() => t())));
|
5968
5974
|
for (const w in L) {
|
5969
5975
|
const k = L[w];
|
5970
5976
|
if (isRef(k) && !isComputed(k) || isReactive(k))
|
5971
|
-
process.env.NODE_ENV !== "production" && a ? set(
|
5977
|
+
process.env.NODE_ENV !== "production" && a ? set(b.value, w, toRef(L, w)) : s || (_ && shouldHydrate(k) && (isRef(k) ? k.value = _[w] : mergeReactiveObjects(k, _[w])), n.state.value[e][w] = k), process.env.NODE_ENV !== "production" && P.state.push(w);
|
5972
5978
|
else if (typeof k == "function") {
|
5973
5979
|
const M = process.env.NODE_ENV !== "production" && a ? k : O(w, k);
|
5974
5980
|
L[w] = M, process.env.NODE_ENV !== "production" && (P.actions[w] = k), i.actions[w] = k;
|
5975
5981
|
} else
|
5976
5982
|
process.env.NODE_ENV !== "production" && isComputed(k) && (P.getters[w] = s ? r.getters[w] : k, IS_CLIENT && (L._getters || (L._getters = markRaw([]))).push(w));
|
5977
5983
|
}
|
5978
|
-
if (assign$1(
|
5979
|
-
get: () => process.env.NODE_ENV !== "production" && a ?
|
5984
|
+
if (assign$1(T, L), assign$1(toRaw(T), L), Object.defineProperty(T, "$state", {
|
5985
|
+
get: () => process.env.NODE_ENV !== "production" && a ? b.value : n.state.value[e],
|
5980
5986
|
set: (w) => {
|
5981
5987
|
if (process.env.NODE_ENV !== "production" && a)
|
5982
5988
|
throw new Error("cannot set hotState");
|
@@ -5985,31 +5991,31 @@ function createSetupStore(e, t, r = {}, n, a) {
|
|
5985
5991
|
});
|
5986
5992
|
}
|
5987
5993
|
}), process.env.NODE_ENV !== "production") {
|
5988
|
-
|
5989
|
-
|
5990
|
-
if (M in
|
5991
|
-
const E = k.$state[M], R =
|
5994
|
+
T._hotUpdate = markRaw((k) => {
|
5995
|
+
T._hotUpdating = !0, k._hmrPayload.state.forEach((M) => {
|
5996
|
+
if (M in T.$state) {
|
5997
|
+
const E = k.$state[M], R = T.$state[M];
|
5992
5998
|
typeof E == "object" && isPlainObject(E) && isPlainObject(R) ? patchObject(E, R) : k.$state[M] = R;
|
5993
5999
|
}
|
5994
|
-
set(
|
5995
|
-
}), Object.keys(
|
5996
|
-
M in k.$state || del(
|
6000
|
+
set(T, M, toRef(k.$state, M));
|
6001
|
+
}), Object.keys(T.$state).forEach((M) => {
|
6002
|
+
M in k.$state || del(T, M);
|
5997
6003
|
}), u = !1, c = !1, n.state.value[e] = toRef(k._hmrPayload, "hotState"), c = !0, nextTick().then(() => {
|
5998
6004
|
u = !0;
|
5999
6005
|
});
|
6000
6006
|
for (const M in k._hmrPayload.actions) {
|
6001
6007
|
const E = k[M];
|
6002
|
-
set(
|
6008
|
+
set(T, M, O(M, E));
|
6003
6009
|
}
|
6004
6010
|
for (const M in k._hmrPayload.getters) {
|
6005
|
-
const E = k._hmrPayload.getters[M], R = s ? computed(() => (setActivePinia(n), E.call(
|
6006
|
-
set(
|
6007
|
-
}
|
6008
|
-
Object.keys(
|
6009
|
-
M in k._hmrPayload.getters || del(
|
6010
|
-
}), Object.keys(
|
6011
|
-
M in k._hmrPayload.actions || del(
|
6012
|
-
}),
|
6011
|
+
const E = k._hmrPayload.getters[M], R = s ? computed(() => (setActivePinia(n), E.call(T, T))) : E;
|
6012
|
+
set(T, M, R);
|
6013
|
+
}
|
6014
|
+
Object.keys(T._hmrPayload.getters).forEach((M) => {
|
6015
|
+
M in k._hmrPayload.getters || del(T, M);
|
6016
|
+
}), Object.keys(T._hmrPayload.actions).forEach((M) => {
|
6017
|
+
M in k._hmrPayload.actions || del(T, M);
|
6018
|
+
}), T._hmrPayload = k._hmrPayload, T._getters = k._getters, T._hotUpdating = !1;
|
6013
6019
|
});
|
6014
6020
|
const w = {
|
6015
6021
|
writable: !0,
|
@@ -6017,8 +6023,8 @@ function createSetupStore(e, t, r = {}, n, a) {
|
|
6017
6023
|
enumerable: !1
|
6018
6024
|
};
|
6019
6025
|
IS_CLIENT && ["_p", "_hmrPayload", "_getters", "_customProperties"].forEach((k) => {
|
6020
|
-
Object.defineProperty(
|
6021
|
-
value:
|
6026
|
+
Object.defineProperty(T, k, {
|
6027
|
+
value: T[k],
|
6022
6028
|
...w
|
6023
6029
|
});
|
6024
6030
|
});
|
@@ -6026,22 +6032,22 @@ function createSetupStore(e, t, r = {}, n, a) {
|
|
6026
6032
|
return n._p.forEach((w) => {
|
6027
6033
|
if (process.env.NODE_ENV !== "production" && IS_CLIENT) {
|
6028
6034
|
const k = o.run(() => w({
|
6029
|
-
store:
|
6035
|
+
store: T,
|
6030
6036
|
app: n._a,
|
6031
6037
|
pinia: n,
|
6032
6038
|
options: i
|
6033
6039
|
}));
|
6034
|
-
Object.keys(k || {}).forEach((M) =>
|
6040
|
+
Object.keys(k || {}).forEach((M) => T._customProperties.add(M)), assign$1(T, k);
|
6035
6041
|
} else
|
6036
|
-
assign$1(
|
6037
|
-
store:
|
6042
|
+
assign$1(T, o.run(() => w({
|
6043
|
+
store: T,
|
6038
6044
|
app: n._a,
|
6039
6045
|
pinia: n,
|
6040
6046
|
options: i
|
6041
6047
|
})));
|
6042
|
-
}), process.env.NODE_ENV !== "production" &&
|
6048
|
+
}), process.env.NODE_ENV !== "production" && T.$state && typeof T.$state == "object" && typeof T.$state.constructor == "function" && !T.$state.constructor.toString().includes("[native code]") && console.warn(`[\u{1F34D}]: The "state" must be a plain object. It cannot be
|
6043
6049
|
state: () => new MyClass()
|
6044
|
-
Found in store "${
|
6050
|
+
Found in store "${T.$id}".`), _ && s && r.hydrate && r.hydrate(T.$state, _), u = !0, c = !0, T;
|
6045
6051
|
}
|
6046
6052
|
function defineStore(e, t, r) {
|
6047
6053
|
let n, a;
|
@@ -6195,10 +6201,27 @@ class KgUtil {
|
|
6195
6201
|
return new Blob(s, { type: r });
|
6196
6202
|
}
|
6197
6203
|
static downloadFile(t, r, n) {
|
6198
|
-
|
6199
|
-
|
6200
|
-
|
6201
|
-
|
6204
|
+
const a = r.split(".")[1];
|
6205
|
+
if (!a)
|
6206
|
+
throw new Error(`\u6587\u4EF6\u540D ${r} \u4E0D\u5408\u6CD5.`);
|
6207
|
+
let o = n;
|
6208
|
+
if (!o)
|
6209
|
+
switch (a) {
|
6210
|
+
case "xls":
|
6211
|
+
o = "application/vnd.ms-excel";
|
6212
|
+
break;
|
6213
|
+
case "xlsx":
|
6214
|
+
o = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet";
|
6215
|
+
break;
|
6216
|
+
}
|
6217
|
+
if (!o) {
|
6218
|
+
Logger.error("\u53C2\u6570 _contentType \u4E3A\u7A7A.");
|
6219
|
+
return;
|
6220
|
+
}
|
6221
|
+
let s;
|
6222
|
+
typeof t == "string" ? s = new Blob([this.base64toBlob(t, n)], { type: n }) : s = new Blob([t], { type: n });
|
6223
|
+
const i = URL.createObjectURL(s), l = document.createElement("a");
|
6224
|
+
l.setAttribute("style", "display:none"), l.setAttribute("href", i), l.setAttribute("download", r), document.body.appendChild(l), l.click(), document.body.removeChild(l), URL.revokeObjectURL(i);
|
6202
6225
|
}
|
6203
6226
|
static parseParams(t) {
|
6204
6227
|
return !t || !isObjectLike(t) || Object.keys(t).forEach((r) => {
|
@@ -6359,18 +6382,18 @@ const getProps$m = () => ({
|
|
6359
6382
|
slots: r
|
6360
6383
|
}) {
|
6361
6384
|
if (e.kgMaxHeight < e.kgMinHeight) {
|
6362
|
-
const
|
6363
|
-
throw Logger.error(
|
6385
|
+
const C = "[KgResizable] kgMaxHeight \u4E0D\u80FD\u5C0F\u4E8E kgMinHeight.";
|
6386
|
+
throw Logger.error(C, {
|
6364
6387
|
kgMaxHeight: e.kgMaxHeight,
|
6365
6388
|
kgMinHeight: e.kgMinHeight
|
6366
|
-
}), new Error(
|
6389
|
+
}), new Error(C);
|
6367
6390
|
}
|
6368
6391
|
if (e.kgMaxWidth < e.kgMinWidth) {
|
6369
|
-
const
|
6370
|
-
throw Logger.error(
|
6392
|
+
const C = "[KgResizable] kgMaxWidth \u4E0D\u80FD\u5C0F\u4E8E kgMinWidth.";
|
6393
|
+
throw Logger.error(C, {
|
6371
6394
|
kgMaxWidth: e.kgMaxWidth,
|
6372
6395
|
kgMinWidth: e.kgMinWidth
|
6373
|
-
}), new Error(
|
6396
|
+
}), new Error(C);
|
6374
6397
|
}
|
6375
6398
|
let n = 0, a = 0, o = 0, s = 0, i = {
|
6376
6399
|
remove: () => {
|
@@ -6393,22 +6416,22 @@ const getProps$m = () => ({
|
|
6393
6416
|
};
|
6394
6417
|
}
|
6395
6418
|
}), c = computed(() => {
|
6396
|
-
let
|
6397
|
-
switch (e.kgDisabled && (
|
6419
|
+
let C = "kg-resizable";
|
6420
|
+
switch (e.kgDisabled && (C += " kg-resizable--disabled"), e.kgType) {
|
6398
6421
|
case "left":
|
6399
|
-
|
6422
|
+
C += " kg-resizable--left";
|
6400
6423
|
break;
|
6401
6424
|
case "right":
|
6402
|
-
|
6425
|
+
C += " kg-resizable--right";
|
6403
6426
|
break;
|
6404
6427
|
case "top":
|
6405
|
-
|
6428
|
+
C += " kg-resizable--top";
|
6406
6429
|
break;
|
6407
6430
|
case "bottom":
|
6408
|
-
|
6431
|
+
C += " kg-resizable--bottom";
|
6409
6432
|
break;
|
6410
6433
|
}
|
6411
|
-
return
|
6434
|
+
return C;
|
6412
6435
|
});
|
6413
6436
|
function g() {
|
6414
6437
|
i.remove(), l.remove();
|
@@ -6416,51 +6439,51 @@ const getProps$m = () => ({
|
|
6416
6439
|
onUnmounted(() => {
|
6417
6440
|
g();
|
6418
6441
|
});
|
6419
|
-
const m = (
|
6442
|
+
const m = (C) => {
|
6420
6443
|
switch (e.kgType) {
|
6421
6444
|
case "top":
|
6422
|
-
t("update:kgHeight", Math.min(e.kgMaxHeight, Math.max(e.kgMinHeight, a - (
|
6445
|
+
t("update:kgHeight", Math.min(e.kgMaxHeight, Math.max(e.kgMinHeight, a - (C.pageY - s))));
|
6423
6446
|
break;
|
6424
6447
|
case "bottom":
|
6425
|
-
t("update:kgHeight", Math.min(e.kgMaxHeight, Math.max(e.kgMinHeight, a + (
|
6448
|
+
t("update:kgHeight", Math.min(e.kgMaxHeight, Math.max(e.kgMinHeight, a + (C.pageY - s))));
|
6426
6449
|
break;
|
6427
6450
|
case "left":
|
6428
|
-
t("update:kgWidth", Math.min(e.kgMaxWidth, Math.max(e.kgMinWidth, n - (
|
6451
|
+
t("update:kgWidth", Math.min(e.kgMaxWidth, Math.max(e.kgMinWidth, n - (C.pageX - o))));
|
6429
6452
|
break;
|
6430
6453
|
case "right":
|
6431
|
-
t("update:kgWidth", Math.min(e.kgMaxWidth, Math.max(e.kgMinWidth, n + (
|
6454
|
+
t("update:kgWidth", Math.min(e.kgMaxWidth, Math.max(e.kgMinWidth, n + (C.pageX - o))));
|
6432
6455
|
break;
|
6433
6456
|
}
|
6434
6457
|
};
|
6435
|
-
function p(
|
6436
|
-
m(
|
6458
|
+
function p(C) {
|
6459
|
+
m(C);
|
6437
6460
|
}
|
6438
|
-
function _(
|
6439
|
-
m(
|
6461
|
+
function _(C) {
|
6462
|
+
m(C), g();
|
6440
6463
|
}
|
6441
|
-
function
|
6442
|
-
|
6464
|
+
function b(C) {
|
6465
|
+
C.stopPropagation(), C.preventDefault(), g(), !(C instanceof MouseEvent && C.which !== 1) && (o = C.pageX, s = C.pageY, n = e.kgWidth, a = e.kgHeight, i = v(document.documentElement, "mousemove", p), l = v(document.documentElement, "mouseup", _));
|
6443
6466
|
}
|
6444
|
-
function v(
|
6445
|
-
return
|
6446
|
-
remove: () =>
|
6467
|
+
function v(C, O, P) {
|
6468
|
+
return C.addEventListener(O, P), {
|
6469
|
+
remove: () => C.removeEventListener(O, P)
|
6447
6470
|
};
|
6448
6471
|
}
|
6449
|
-
function
|
6450
|
-
|
6472
|
+
function y(C) {
|
6473
|
+
C.stopPropagation(), C.preventDefault();
|
6451
6474
|
}
|
6452
6475
|
return () => {
|
6453
|
-
var
|
6476
|
+
var C;
|
6454
6477
|
return createVNode("div", {
|
6455
6478
|
class: c.value,
|
6456
6479
|
style: u.value
|
6457
6480
|
}, [createVNode("div", {
|
6458
6481
|
class: "kg-resizable-handle",
|
6459
|
-
onClick:
|
6460
|
-
onMousedown:
|
6482
|
+
onClick: y,
|
6483
|
+
onMousedown: b
|
6461
6484
|
}, [createVNode("div", {
|
6462
6485
|
class: "kg-resizable-handle-line"
|
6463
|
-
}, null)]), (
|
6486
|
+
}, null)]), (C = r.default) == null ? void 0 : C.call(r)]);
|
6464
6487
|
};
|
6465
6488
|
}
|
6466
6489
|
}), KgButton_Item = "";
|
@@ -6536,36 +6559,36 @@ function useMagicKeys(e = {}) {
|
|
6536
6559
|
} = e, s = reactive(/* @__PURE__ */ new Set()), i = { toJSON() {
|
6537
6560
|
return {};
|
6538
6561
|
}, current: s }, l = t ? reactive(i) : i, u = /* @__PURE__ */ new Set(), c = /* @__PURE__ */ new Set();
|
6539
|
-
function g(
|
6540
|
-
|
6562
|
+
function g(b, v) {
|
6563
|
+
b in l && (t ? l[b] = v : l[b].value = v);
|
6541
6564
|
}
|
6542
6565
|
function m() {
|
6543
|
-
for (const
|
6544
|
-
g(
|
6545
|
-
}
|
6546
|
-
function p(
|
6547
|
-
var
|
6548
|
-
const O = (
|
6549
|
-
P && (v ? s.add(
|
6550
|
-
for (const
|
6551
|
-
c.add(
|
6552
|
-
O === "meta" && !v ? (u.forEach((
|
6553
|
-
s.delete(
|
6554
|
-
}), u.clear()) : typeof
|
6555
|
-
}
|
6556
|
-
r && (useEventListener(r, "keydown", (
|
6566
|
+
for (const b of c)
|
6567
|
+
g(b, !1);
|
6568
|
+
}
|
6569
|
+
function p(b, v) {
|
6570
|
+
var y, C;
|
6571
|
+
const O = (y = b.key) == null ? void 0 : y.toLowerCase(), P = (C = b.code) == null ? void 0 : C.toLowerCase(), A = [P, O].filter(Boolean);
|
6572
|
+
P && (v ? s.add(b.code) : s.delete(b.code));
|
6573
|
+
for (const T of A)
|
6574
|
+
c.add(T), g(T, v);
|
6575
|
+
O === "meta" && !v ? (u.forEach((T) => {
|
6576
|
+
s.delete(T), g(T, !1);
|
6577
|
+
}), u.clear()) : typeof b.getModifierState == "function" && b.getModifierState("Meta") && v && [...s, ...A].forEach((T) => u.add(T));
|
6578
|
+
}
|
6579
|
+
r && (useEventListener(r, "keydown", (b) => (p(b, !0), o(b)), { passive: a }), useEventListener(r, "keyup", (b) => (p(b, !1), o(b)), { passive: a }), useEventListener("blur", m, { passive: !0 }), useEventListener("focus", m, { passive: !0 }));
|
6557
6580
|
const _ = new Proxy(l, {
|
6558
|
-
get(
|
6581
|
+
get(b, v, y) {
|
6559
6582
|
if (typeof v != "string")
|
6560
|
-
return Reflect.get(
|
6583
|
+
return Reflect.get(b, v, y);
|
6561
6584
|
if (v = v.toLowerCase(), v in n && (v = n[v]), !(v in l))
|
6562
6585
|
if (/[+_-]/.test(v)) {
|
6563
6586
|
const O = v.split(/[+_-]/g).map((P) => P.trim());
|
6564
6587
|
l[v] = computed(() => O.every((P) => unref(_[P])));
|
6565
6588
|
} else
|
6566
6589
|
l[v] = ref(!1);
|
6567
|
-
const
|
6568
|
-
return t ? unref(
|
6590
|
+
const C = Reflect.get(b, v, y);
|
6591
|
+
return t ? unref(C) : C;
|
6569
6592
|
}
|
6570
6593
|
});
|
6571
6594
|
return _;
|
@@ -6690,31 +6713,31 @@ const getProps$l = () => ({ ...formProps() }), DI_MODEL = Symbol("DI_MODEL"), DI
|
|
6690
6713
|
var _;
|
6691
6714
|
return ((_ = u == null ? void 0 : u.value) == null ? void 0 : _.mult_flg) === 1;
|
6692
6715
|
}), g = computed(() => {
|
6693
|
-
var _,
|
6694
|
-
return (
|
6716
|
+
var _, b;
|
6717
|
+
return (b = (_ = u == null ? void 0 : u.value) == null ? void 0 : _.ret_fld) != null ? b : "";
|
6695
6718
|
});
|
6696
6719
|
l.onRowDoubleClick(() => p());
|
6697
6720
|
function m() {
|
6698
6721
|
r("update:visible", !1);
|
6699
6722
|
}
|
6700
6723
|
function p() {
|
6701
|
-
var _,
|
6724
|
+
var _, b, v, y, C, O, P;
|
6702
6725
|
if (c.value) {
|
6703
|
-
const
|
6704
|
-
(!s || s(
|
6726
|
+
const A = (b = (_ = l.selectedRows) == null ? void 0 : _.value) != null ? b : [], T = (v = A.map((L) => L[g.value])) != null ? v : [];
|
6727
|
+
(!s || s(T, A)) && (r("kgOk", T, A), r("update:visible", !1));
|
6705
6728
|
} else {
|
6706
|
-
const
|
6707
|
-
(!s || s(
|
6729
|
+
const A = (O = (C = (y = l.selectedRows) == null ? void 0 : y.value) == null ? void 0 : C[0]) != null ? O : null, T = (P = A == null ? void 0 : A[g.value]) != null ? P : "";
|
6730
|
+
(!s || s(T, A)) && (r("kgOk", T, A), r("update:visible", !1));
|
6708
6731
|
}
|
6709
6732
|
}
|
6710
6733
|
return () => {
|
6711
|
-
var _,
|
6734
|
+
var _, b;
|
6712
6735
|
return createVNode(KgModal, {
|
6713
6736
|
visible: e.visible,
|
6714
6737
|
title: i.t(a).value,
|
6715
6738
|
destroyOnClose: !0,
|
6716
6739
|
okButtonProps: {
|
6717
|
-
disabled: ((
|
6740
|
+
disabled: ((b = (_ = l.selectedRows.value) == null ? void 0 : _.length) != null ? b : 0) === 0
|
6718
6741
|
},
|
6719
6742
|
wrapClassName: "kg-form-item-addon-lookup-modal",
|
6720
6743
|
onCancel: m,
|
@@ -6908,8 +6931,8 @@ const KgFormItemSelect = defineComponent({
|
|
6908
6931
|
immediate: !0
|
6909
6932
|
});
|
6910
6933
|
async function i() {
|
6911
|
-
var
|
6912
|
-
const c = (
|
6934
|
+
var y, C, O, P, A, T, L, w, k;
|
6935
|
+
const c = (y = s.value) == null ? void 0 : y.cmd, g = (C = s.value) == null ? void 0 : C.cmd_prm, m = (P = (O = s.value) == null ? void 0 : O.cmd_method) != null ? P : "GET", p = (T = (A = s.value) == null ? void 0 : A.val_clm) != null ? T : "", _ = (w = (L = s.value) == null ? void 0 : L.lbl_clm) != null ? w : "";
|
6913
6936
|
if (!c || !p || !_) {
|
6914
6937
|
Logger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF.", {
|
6915
6938
|
formID: n.formID,
|
@@ -6920,13 +6943,13 @@ const KgFormItemSelect = defineComponent({
|
|
6920
6943
|
});
|
6921
6944
|
return;
|
6922
6945
|
}
|
6923
|
-
const
|
6946
|
+
const b = KgVarUtil.parseCommandParameter(g);
|
6924
6947
|
let v = null;
|
6925
6948
|
try {
|
6926
6949
|
v = await ((k = httpClient()) == null ? void 0 : k.request({
|
6927
6950
|
url: c,
|
6928
6951
|
method: m,
|
6929
|
-
params:
|
6952
|
+
params: b
|
6930
6953
|
}));
|
6931
6954
|
} catch {
|
6932
6955
|
}
|
@@ -6946,8 +6969,8 @@ const KgFormItemSelect = defineComponent({
|
|
6946
6969
|
function l(c) {
|
6947
6970
|
var m;
|
6948
6971
|
const g = o.value.find((p) => {
|
6949
|
-
var _,
|
6950
|
-
return p[(
|
6972
|
+
var _, b;
|
6973
|
+
return p[(b = (_ = s.value) == null ? void 0 : _.val_clm) != null ? b : ""] === c;
|
6951
6974
|
});
|
6952
6975
|
r("kgChange", (m = toRaw(g)) != null ? m : null);
|
6953
6976
|
}
|
@@ -6972,8 +6995,8 @@ const KgFormItemSelect = defineComponent({
|
|
6972
6995
|
value: c[(_ = (p = s.value) == null ? void 0 : p.val_clm) != null ? _ : ""]
|
6973
6996
|
}, {
|
6974
6997
|
default: () => {
|
6975
|
-
var
|
6976
|
-
return [c[(v = (
|
6998
|
+
var b, v;
|
6999
|
+
return [c[(v = (b = s.value) == null ? void 0 : b.lbl_clm) != null ? v : ""]];
|
6977
7000
|
}
|
6978
7001
|
});
|
6979
7002
|
}),
|
@@ -7014,7 +7037,7 @@ const KgFormItemSelect = defineComponent({
|
|
7014
7037
|
}) {
|
7015
7038
|
provide(KG_DI_VAR_NAME, e.kgVarName), provide(DI_ON_KG_BEFORE_LOOKUP_OK, e.onKgBeforeLookupOk);
|
7016
7039
|
const n = useKg(), a = useKgVar(), o = inject(DI_MODEL, computed(() => ({}))), s = inject(DI_FORM_REF, ref(null)), i = computed(() => a.store.isCreating(a.formID)), l = computed(() => a.store.isUpdating(a.formID)), u = computed(() => a.store.isCopying(a.formID)), c = computed(() => a.store.getVarLookup(a.formID, e.kgVarName)), g = computed(() => a.store.getVarConfig(a.formID, e.kgVarName)), m = computed(() => a.store.getVarProfileDetail(a.formID, e.kgVarName)), p = computed(() => a.store.getVarSubmitField(a.formID, e.kgVarName)), _ = computed(() => {
|
7017
|
-
var R,
|
7040
|
+
var R, V, D, I, x;
|
7018
7041
|
let E = [];
|
7019
7042
|
switch (e.kgContext) {
|
7020
7043
|
case KG_CONTROL_CONTEXT.SEARCH:
|
@@ -7026,7 +7049,7 @@ const KgFormItemSelect = defineComponent({
|
|
7026
7049
|
case KG_CONTROL_CONTEXT.SUBMIT:
|
7027
7050
|
switch (!0) {
|
7028
7051
|
case a.isCreating.value:
|
7029
|
-
((
|
7052
|
+
((V = p.value) == null ? void 0 : V.crt_rqr_flg) === 1 && (E = [{
|
7030
7053
|
required: !0,
|
7031
7054
|
message: n.t("kg.required")
|
7032
7055
|
}]);
|
@@ -7038,7 +7061,7 @@ const KgFormItemSelect = defineComponent({
|
|
7038
7061
|
}]);
|
7039
7062
|
break;
|
7040
7063
|
case a.isCopying.value:
|
7041
|
-
((
|
7064
|
+
((I = p.value) == null ? void 0 : I.cpy_rqr_flg) === 1 && (E = [{
|
7042
7065
|
required: !0,
|
7043
7066
|
message: n.t("kg.required")
|
7044
7067
|
}]);
|
@@ -7053,8 +7076,8 @@ const KgFormItemSelect = defineComponent({
|
|
7053
7076
|
break;
|
7054
7077
|
}
|
7055
7078
|
return E;
|
7056
|
-
}),
|
7057
|
-
var R,
|
7079
|
+
}), b = computed(() => {
|
7080
|
+
var R, V, D, I, x;
|
7058
7081
|
if (a.isRetrievingVar.value)
|
7059
7082
|
return !0;
|
7060
7083
|
let E = !1;
|
@@ -7068,13 +7091,13 @@ const KgFormItemSelect = defineComponent({
|
|
7068
7091
|
case KG_CONTROL_CONTEXT.SUBMIT:
|
7069
7092
|
switch (!0) {
|
7070
7093
|
case a.isCreating.value:
|
7071
|
-
E = ((
|
7094
|
+
E = ((V = p.value) == null ? void 0 : V.crt_ena_flg) === 0;
|
7072
7095
|
break;
|
7073
7096
|
case a.isUpdating.value:
|
7074
7097
|
E = ((D = p.value) == null ? void 0 : D.upt_ena_flg) === 0;
|
7075
7098
|
break;
|
7076
7099
|
case a.isCopying.value:
|
7077
|
-
E = ((
|
7100
|
+
E = ((I = p.value) == null ? void 0 : I.cpy_ena_flg) === 0;
|
7078
7101
|
break;
|
7079
7102
|
case a.isDeleting.value:
|
7080
7103
|
E = ((x = p.value) == null ? void 0 : x.del_ena_flg) === 0;
|
@@ -7084,37 +7107,37 @@ const KgFormItemSelect = defineComponent({
|
|
7084
7107
|
}
|
7085
7108
|
return E;
|
7086
7109
|
}), v = computed(() => {
|
7087
|
-
var R,
|
7110
|
+
var R, V, D, I;
|
7088
7111
|
let E = " ";
|
7089
7112
|
if (e.kgPlaceholder)
|
7090
7113
|
E = e.kgPlaceholder;
|
7091
7114
|
else
|
7092
7115
|
switch (e.kgContext) {
|
7093
7116
|
case KG_CONTROL_CONTEXT.SEARCH:
|
7094
|
-
E = n.t((
|
7117
|
+
E = n.t((V = (R = m.value) == null ? void 0 : R.placeholder) != null ? V : " ");
|
7095
7118
|
break;
|
7096
7119
|
case KG_CONTROL_CONTEXT.SUBMIT:
|
7097
|
-
E = n.t((
|
7120
|
+
E = n.t((I = (D = p.value) == null ? void 0 : D.placeholder) != null ? I : " ");
|
7098
7121
|
break;
|
7099
7122
|
}
|
7100
7123
|
return E;
|
7101
|
-
}),
|
7102
|
-
var R,
|
7124
|
+
}), y = computed(() => {
|
7125
|
+
var R, V, D, I, x, $, F, K, W, q;
|
7103
7126
|
let E = 6;
|
7104
7127
|
if (e.kgSpan !== void 0)
|
7105
7128
|
E = e.kgSpan;
|
7106
7129
|
else
|
7107
7130
|
switch (e.kgContext) {
|
7108
7131
|
case KG_CONTROL_CONTEXT.SEARCH:
|
7109
|
-
E = (
|
7132
|
+
E = (V = (R = m.value) == null ? void 0 : R.width) != null ? V : 6;
|
7110
7133
|
break;
|
7111
7134
|
case KG_CONTROL_CONTEXT.SUBMIT:
|
7112
7135
|
switch (!0) {
|
7113
7136
|
case a.isCreating.value:
|
7114
|
-
E = (
|
7137
|
+
E = (I = (D = p.value) == null ? void 0 : D.crt_width) != null ? I : 6;
|
7115
7138
|
break;
|
7116
7139
|
case a.isUpdating.value:
|
7117
|
-
E = (
|
7140
|
+
E = ($ = (x = p.value) == null ? void 0 : x.upt_width) != null ? $ : 6;
|
7118
7141
|
break;
|
7119
7142
|
case a.isCopying.value:
|
7120
7143
|
E = (K = (F = p.value) == null ? void 0 : F.cpy_width) != null ? K : 6;
|
@@ -7125,11 +7148,11 @@ const KgFormItemSelect = defineComponent({
|
|
7125
7148
|
}
|
7126
7149
|
}
|
7127
7150
|
return Math.min(24, Math.max(1, E));
|
7128
|
-
}),
|
7151
|
+
}), C = computed(() => ({
|
7129
7152
|
paddingLeft: `${e.kgGutter / 2}px !important`,
|
7130
7153
|
paddingRight: `${e.kgGutter / 2}px !important`
|
7131
7154
|
})), O = computed(() => {
|
7132
|
-
var R,
|
7155
|
+
var R, V, D, I;
|
7133
7156
|
let E = "kg-form-item";
|
7134
7157
|
switch (c.value && (E += " kg-form-item-lookup"), e.kgContext) {
|
7135
7158
|
case KG_CONTROL_CONTEXT.SEARCH:
|
@@ -7141,9 +7164,9 @@ const KgFormItemSelect = defineComponent({
|
|
7141
7164
|
break;
|
7142
7165
|
case KG_CONTROL_CONTEXT.SUBMIT:
|
7143
7166
|
switch (!0) {
|
7144
|
-
case (i.value && ((
|
7167
|
+
case (i.value && ((V = p.value) == null ? void 0 : V.crt_vis_flg) === 0):
|
7145
7168
|
case (l.value && ((D = p.value) == null ? void 0 : D.upt_vis_flg) === 0):
|
7146
|
-
case (u.value && ((
|
7169
|
+
case (u.value && ((I = p.value) == null ? void 0 : I.cpy_vis_flg) === 0):
|
7147
7170
|
E += " kg-form-item--invisible";
|
7148
7171
|
break;
|
7149
7172
|
}
|
@@ -7155,14 +7178,14 @@ const KgFormItemSelect = defineComponent({
|
|
7155
7178
|
const E = {
|
7156
7179
|
...e,
|
7157
7180
|
value: (R = o.value) == null ? void 0 : R[e.kgVarName],
|
7158
|
-
"onUpdate:value": (
|
7159
|
-
o.value && (o.value[e.kgVarName] =
|
7181
|
+
"onUpdate:value": (V) => {
|
7182
|
+
o.value && (o.value[e.kgVarName] = V);
|
7160
7183
|
},
|
7161
7184
|
kgPlaceholder: v.value,
|
7162
|
-
kgDisabled:
|
7163
|
-
id:
|
7185
|
+
kgDisabled: b.value,
|
7186
|
+
id: T.value
|
7164
7187
|
};
|
7165
|
-
switch (
|
7188
|
+
switch (A.value) {
|
7166
7189
|
case KG_CONTROL_TYPE.INPUT_NUMBER:
|
7167
7190
|
break;
|
7168
7191
|
case KG_CONTROL_TYPE.SELECT:
|
@@ -7177,10 +7200,10 @@ const KgFormItemSelect = defineComponent({
|
|
7177
7200
|
break;
|
7178
7201
|
}
|
7179
7202
|
return E;
|
7180
|
-
}),
|
7203
|
+
}), A = computed(() => {
|
7181
7204
|
var E;
|
7182
7205
|
return e.kgType || ((E = g.value) == null ? void 0 : E.ctrl_typ);
|
7183
|
-
}),
|
7206
|
+
}), T = computed(() => encodeURIComponent(a.formID + e.kgVarName + e.kgContext));
|
7184
7207
|
watch(() => {
|
7185
7208
|
var E;
|
7186
7209
|
return (E = o.value) == null ? void 0 : E[e.kgVarName];
|
@@ -7189,8 +7212,8 @@ const KgFormItemSelect = defineComponent({
|
|
7189
7212
|
(E = s.value) == null || E.validate([e.kgVarName]);
|
7190
7213
|
});
|
7191
7214
|
function L(E, R) {
|
7192
|
-
var
|
7193
|
-
o.value && (o.value[e.kgVarName] = E), r("kgChange", R), (
|
7215
|
+
var V;
|
7216
|
+
o.value && (o.value[e.kgVarName] = E), r("kgChange", R), (V = s.value) == null || V.validate([e.kgVarName]);
|
7194
7217
|
}
|
7195
7218
|
function w() {
|
7196
7219
|
if (t.control)
|
@@ -7202,7 +7225,7 @@ const KgFormItemSelect = defineComponent({
|
|
7202
7225
|
varProfileDetail: m,
|
7203
7226
|
varSubmitField: p
|
7204
7227
|
});
|
7205
|
-
switch (
|
7228
|
+
switch (A.value) {
|
7206
7229
|
case KG_CONTROL_TYPE.INPUT_NUMBER:
|
7207
7230
|
return createVNode(KgFormItemInputNumber, P.value, null);
|
7208
7231
|
case KG_CONTROL_TYPE.SELECT:
|
@@ -7226,7 +7249,7 @@ const KgFormItemSelect = defineComponent({
|
|
7226
7249
|
var E;
|
7227
7250
|
return !c.value || !((E = c.value) != null && E.lkp_id) ? null : createVNode(Form.ItemRest, null, {
|
7228
7251
|
default: () => [createVNode(KgFormItemAddonLookup, {
|
7229
|
-
kgDisabled:
|
7252
|
+
kgDisabled: b.value,
|
7230
7253
|
onKgOk: L,
|
7231
7254
|
kgLookupID: c.value.lkp_id
|
7232
7255
|
}, null)]
|
@@ -7235,14 +7258,14 @@ const KgFormItemSelect = defineComponent({
|
|
7235
7258
|
return () => createVNode(Col, {
|
7236
7259
|
"kg-frm-id": a.formID,
|
7237
7260
|
"kg-var-nam": e.kgVarName,
|
7238
|
-
span:
|
7261
|
+
span: y.value,
|
7239
7262
|
class: O.value,
|
7240
|
-
style:
|
7263
|
+
style: C.value
|
7241
7264
|
}, {
|
7242
7265
|
default: () => [createVNode(Form.Item, {
|
7243
7266
|
name: e.kgVarName,
|
7244
7267
|
rules: _.value,
|
7245
|
-
htmlFor:
|
7268
|
+
htmlFor: T.value
|
7246
7269
|
}, {
|
7247
7270
|
default: () => createVNode(Fragment, null, [w(), M()]),
|
7248
7271
|
label: () => k()
|
@@ -7349,16 +7372,18 @@ function transformVarButtons(e) {
|
|
7349
7372
|
return e ? e.sort((t, r) => {
|
7350
7373
|
var n, a;
|
7351
7374
|
return ((n = t.srtseq) != null ? n : 0) - ((a = r.srtseq) != null ? a : 0);
|
7352
|
-
}).map((t) => t)
|
7375
|
+
}).map((t) => (t.export_excel_suffix || (t.export_excel_suffix = KG_EXCEL_SUFFIX.XLS), [KG_EXCEL_SUFFIX.XLS, KG_EXCEL_SUFFIX.XLSX].includes(t.export_excel_suffix) || (Logger.error(`| \u6570\u636E\u6709\u8BEF | VarButton.export_excel_suffix \u7684\u503C\u5FC5\u987B\u4E3A ${KG_EXCEL_SUFFIX.XLS} \u6216 ${KG_EXCEL_SUFFIX.XLS}.`, {
|
7376
|
+
VarButton: t
|
7377
|
+
}), t.export_excel_suffix = KG_EXCEL_SUFFIX.XLS), t)) : [];
|
7353
7378
|
}
|
7354
7379
|
function transformVarGridDetails(e) {
|
7355
7380
|
return e ? e.sort((t, r) => {
|
7356
7381
|
var n, a;
|
7357
7382
|
return ((n = t.srtseq) != null ? n : 0) - ((a = r.srtseq) != null ? a : 0);
|
7358
7383
|
}).map((t) => (t.fix_left_flg === 1 && t.fix_right_flg === 1 && (Logger.error("| \u6570\u636E\u6709\u8BEF | VarGridDetail.fix_left_flg \u548C VarGridDetail.fix_right_flg \u4E0D\u80FD\u540C\u65F6\u4E3A 1, VarGridDetail.fix_right_flg \u5C06\u88AB\u8BBE\u4E3A 0.", {
|
7359
|
-
|
7384
|
+
VarGridDetail: t
|
7360
7385
|
}), t.fix_right_flg = 0), t.width !== null && t.width !== void 0 && t.width !== "auto" && (Number.isNaN(Number(t.width)) || Number(t.width) < 0) && (Logger.error(`| \u6570\u636E\u6709\u8BEF | VarGridDetail.width \u53EA\u80FD\u662F\u5927\u4E8E 0 \u7684\u6570\u503C\u6216\u8005 'auto', \u6539\u4E3A\u4F7F\u7528\u9ED8\u8BA4\u503C ${KG_TABLE_TD_DEFAULT_WIDTH}.`, {
|
7361
|
-
|
7386
|
+
VarGridDetail: t
|
7362
7387
|
}), t.width = String(KG_TABLE_TD_DEFAULT_WIDTH)), t)) : [];
|
7363
7388
|
}
|
7364
7389
|
let store$6 = null;
|
@@ -7797,16 +7822,16 @@ const useKgVarStore = () => (store$6 || (store$6 = defineStore("KgVar", {
|
|
7797
7822
|
varSubmitConfig: m,
|
7798
7823
|
varSubmitFields: p,
|
7799
7824
|
varProfile: _,
|
7800
|
-
varProfileConfig:
|
7825
|
+
varProfileConfig: b,
|
7801
7826
|
varGrid: v,
|
7802
|
-
varGridConfig:
|
7827
|
+
varGridConfig: y
|
7803
7828
|
} = await GetAll({ params: { frm_id: e } });
|
7804
|
-
this.varCatalogsMap.set(e, i != null ? i : []), this.varLookupsMap.set(e, l != null ? l : []), this.varPossibilitiesMap.set(e, c != null ? c : []), this.varConfigsMap.set(e, u != null ? u : []), this.varButtonsMap.set(e, transformVarButtons(g)), this.varSubmitConfigMap.set(e, transformVarSubmitConfig(m)), this.varSubmitFieldsMap.set(e, transformVarSubmitFields(p)), this.varProfileConfigMap.set(e,
|
7829
|
+
this.varCatalogsMap.set(e, i != null ? i : []), this.varLookupsMap.set(e, l != null ? l : []), this.varPossibilitiesMap.set(e, c != null ? c : []), this.varConfigsMap.set(e, u != null ? u : []), this.varButtonsMap.set(e, transformVarButtons(g)), this.varSubmitConfigMap.set(e, transformVarSubmitConfig(m)), this.varSubmitFieldsMap.set(e, transformVarSubmitFields(p)), this.varProfileConfigMap.set(e, b != null ? b : null), this.varProfileMap.set(e, {
|
7805
7830
|
varProfile: _ != null ? _ : null,
|
7806
|
-
currentVarProfileMasterID: (n = (r = (t = _ == null ? void 0 : _.varProfileMasters) == null ? void 0 : t.find((
|
7807
|
-
}), this.varGridConfigMap.set(e,
|
7831
|
+
currentVarProfileMasterID: (n = (r = (t = _ == null ? void 0 : _.varProfileMasters) == null ? void 0 : t.find((C) => C.def_flg === 1 || C.cust_lvl === KG_CUSTOM_LEVEL.L0)) == null ? void 0 : r.id) != null ? n : null
|
7832
|
+
}), this.varGridConfigMap.set(e, y != null ? y : null), this.varGridMap.set(e, {
|
7808
7833
|
varGrid: transformVarGridDTO(v),
|
7809
|
-
currentVarGridMasterID: (s = (o = (a = v == null ? void 0 : v.varGridMasters) == null ? void 0 : a.find((
|
7834
|
+
currentVarGridMasterID: (s = (o = (a = v == null ? void 0 : v.varGridMasters) == null ? void 0 : a.find((C) => C.def_flg === 1 || C.cust_lvl === KG_CUSTOM_LEVEL.L0)) == null ? void 0 : o.id) != null ? s : null
|
7810
7835
|
});
|
7811
7836
|
} catch (i) {
|
7812
7837
|
throw i;
|
@@ -7891,10 +7916,10 @@ function useKgVar(e, t) {
|
|
7891
7916
|
const s = (L) => computed(() => {
|
7892
7917
|
var w, k, M;
|
7893
7918
|
return (M = (k = (w = o.getVarCatalog(a, L)) == null ? void 0 : w.var_text) != null ? k : L) != null ? M : "";
|
7894
|
-
}), i = computed(() => o.isRetrievingVar(a)), l = computed(() => o.isRetrievingVarProfileMaster(a)), u = computed(() => o.isCreating(a)), c = computed(() => o.isUpdating(a)), g = computed(() => o.isCopying(a)), m = computed(() => o.isDeleting(a)), p = computed(() => o.isOtherRequesting(a)), _ = computed(() => o.getVarButtons(a)),
|
7919
|
+
}), i = computed(() => o.isRetrievingVar(a)), l = computed(() => o.isRetrievingVarProfileMaster(a)), u = computed(() => o.isCreating(a)), c = computed(() => o.isUpdating(a)), g = computed(() => o.isCopying(a)), m = computed(() => o.isDeleting(a)), p = computed(() => o.isOtherRequesting(a)), _ = computed(() => o.getVarButtons(a)), b = computed(() => o.getVarProfileMasters(a)), v = computed(() => o.getCurrentVarProfileMaster(a)), y = computed(() => o.getCurrentVarProfileMasterID(a)), C = computed(() => {
|
7895
7920
|
var L, w;
|
7896
7921
|
return (w = (L = v.value) == null ? void 0 : L.varProfileDetails) != null ? w : null;
|
7897
|
-
}), O = computed(() => o.getVarGridConfig(a)), P = computed(() => o.getVarGridMasters(a)),
|
7922
|
+
}), O = computed(() => o.getVarGridConfig(a)), P = computed(() => o.getVarGridMasters(a)), A = computed(() => o.getCurrentVarGridMaster(a)), T = computed(() => o.getSystemVarGridDetails(a));
|
7898
7923
|
return {
|
7899
7924
|
formID: a,
|
7900
7925
|
store: o,
|
@@ -7906,14 +7931,14 @@ function useKgVar(e, t) {
|
|
7906
7931
|
isDeleting: m,
|
7907
7932
|
isOtherRequesting: p,
|
7908
7933
|
varButtons: _,
|
7909
|
-
varProfileMasters:
|
7934
|
+
varProfileMasters: b,
|
7910
7935
|
currentVarProfileMaster: v,
|
7911
|
-
currentVarProfileMasterID:
|
7912
|
-
currentVarProfileDetails:
|
7936
|
+
currentVarProfileMasterID: y,
|
7937
|
+
currentVarProfileDetails: C,
|
7913
7938
|
varGridConfig: O,
|
7914
7939
|
varGridMasters: P,
|
7915
|
-
currentVarGridMaster:
|
7916
|
-
systemVarGridDetails:
|
7940
|
+
currentVarGridMaster: A,
|
7941
|
+
systemVarGridDetails: T,
|
7917
7942
|
t: s
|
7918
7943
|
};
|
7919
7944
|
} catch (a) {
|
@@ -8078,8 +8103,8 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit-config", KgS
|
|
8078
8103
|
}) => {
|
8079
8104
|
const c = s.store.getVarSubmitConfig(s.formID);
|
8080
8105
|
return i = watch(u, (g) => {
|
8081
|
-
var m, p, _,
|
8082
|
-
g && (g.id = (m = c == null ? void 0 : c.id) != null ? m : null, g.frm_id = a, g.resizable_flg = (p = c == null ? void 0 : c.resizable_flg) != null ? p : 1, g.fullscreen_flg = (_ = c == null ? void 0 : c.fullscreen_flg) != null ? _ : 1, g.dft_fullscreen_flg = (
|
8106
|
+
var m, p, _, b, v, y, C, O, P, A, T;
|
8107
|
+
g && (g.id = (m = c == null ? void 0 : c.id) != null ? m : null, g.frm_id = a, g.resizable_flg = (p = c == null ? void 0 : c.resizable_flg) != null ? p : 1, g.fullscreen_flg = (_ = c == null ? void 0 : c.fullscreen_flg) != null ? _ : 1, g.dft_fullscreen_flg = (b = c == null ? void 0 : c.dft_fullscreen_flg) != null ? b : 0, g.responsive_flg = (v = c == null ? void 0 : c.responsive_flg) != null ? v : 1, g.max_width = (y = c == null ? void 0 : c.max_width) != null ? y : DEFAULT_MAX_WIDTH, g.min_width = (C = c == null ? void 0 : c.min_width) != null ? C : DEFAULT_MIN_WIDTH, g.dft_width = (O = c == null ? void 0 : c.dft_width) != null ? O : DEFAULT_WIDTH, g.layout = (P = c == null ? void 0 : c.layout) != null ? P : KG_SUBMIT_LAYOUT.VERTICAL, g.label_col = (A = c == null ? void 0 : c.label_col) != null ? A : DEFAULT_LABEL_COL_FOR_SPAN, g.label_col_unit = (T = c == null ? void 0 : c.label_col_unit) != null ? T : KG_WIDTH_UNIT.SPAN);
|
8083
8108
|
}), !1;
|
8084
8109
|
}), l.onClose(async () => (i == null || i(), !1)), l.onBeforeOk(async (u) => u.value && u.value.label_col_unit === KG_WIDTH_UNIT.SPAN && !range$1(1, 25).includes(u.value.label_col) ? (message.error(o.t("kg.KgSubmitHeaderVarSubmitConfig.labelColValidateMessage")), !0) : !1), l.onOk(async () => (s.store.retrieve(s.formID), !1)), () => createVNode(KgSubmit, {
|
8085
8110
|
kgShowConfigButton: !1
|
@@ -8118,15 +8143,15 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit-config", KgS
|
|
8118
8143
|
r("kgCancel");
|
8119
8144
|
}
|
8120
8145
|
function _() {
|
8121
|
-
var
|
8122
|
-
return ((
|
8146
|
+
var y;
|
8147
|
+
return ((y = i.value) == null ? void 0 : y.fullscreen_flg) === 0 ? null : createVNode(Button, {
|
8123
8148
|
onClick: g,
|
8124
8149
|
class: "kg-submit--btn-fullscreen"
|
8125
8150
|
}, {
|
8126
8151
|
default: () => [e.isFullscreen ? createVNode(FullscreenExitOutlined$1, null, null) : createVNode(FullscreenOutlined$1, null, null)]
|
8127
8152
|
});
|
8128
8153
|
}
|
8129
|
-
function
|
8154
|
+
function b() {
|
8130
8155
|
return e.kgShowConfigButton ? createVNode(Fragment, null, [createVNode(Button, {
|
8131
8156
|
disabled: u.value || l.value,
|
8132
8157
|
onClick: m,
|
@@ -8144,7 +8169,7 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit-config", KgS
|
|
8144
8169
|
default: () => [createVNode(CloseOutlined$1, null, null)]
|
8145
8170
|
});
|
8146
8171
|
}
|
8147
|
-
return () => createVNode(Fragment, null, [
|
8172
|
+
return () => createVNode(Fragment, null, [b(), _(), v()]);
|
8148
8173
|
}
|
8149
8174
|
}), DEFAULT_MIN_WIDTH = 300, DEFAULT_MAX_WIDTH = 1182, DEFAULT_WIDTH = 594, DEFAULT_LAYOUT = "vertical", DEFAULT_LABEL_COL_FOR_SPAN = 4, DEFAULT_LABEL_COL_FOR_PX = 100;
|
8150
8175
|
function _useFormModel() {
|
@@ -8162,14 +8187,14 @@ function _useFormModel() {
|
|
8162
8187
|
}), u = ref({});
|
8163
8188
|
return watch(l, (c) => {
|
8164
8189
|
u.value = {}, c != null && c.length && c.forEach((g) => {
|
8165
|
-
var _,
|
8190
|
+
var _, b, v;
|
8166
8191
|
const m = (_ = g.var_nam) != null ? _ : "", p = t.selectedRow.value;
|
8167
8192
|
switch (u.value[m] = void 0, !0) {
|
8168
8193
|
case r.value:
|
8169
8194
|
isNil(g.crt_dft_val) || (u.value[m] = KgVarUtil.transformValueByControlType(e.formID, m, g.crt_dft_val));
|
8170
8195
|
break;
|
8171
8196
|
case n.value:
|
8172
|
-
u.value.id = p == null ? void 0 : p.id, isNil(g.upt_dft_val) ? u.value[m] = (
|
8197
|
+
u.value.id = p == null ? void 0 : p.id, isNil(g.upt_dft_val) ? u.value[m] = (b = p == null ? void 0 : p[m]) != null ? b : void 0 : u.value[m] = KgVarUtil.transformValueByControlType(e.formID, m, g.upt_dft_val);
|
8173
8198
|
break;
|
8174
8199
|
case a.value:
|
8175
8200
|
u.value.id = p == null ? void 0 : p.id, isNil(g.cpy_dft_val) ? u.value[m] = (v = p == null ? void 0 : p[m]) != null ? v : void 0 : u.value[m] = KgVarUtil.transformValueByControlType(e.formID, m, g.cpy_dft_val);
|
@@ -8229,60 +8254,60 @@ const getProps$g = () => ({
|
|
8229
8254
|
}) {
|
8230
8255
|
const r = useKg(), n = useKgVar(), a = useKgTable(), o = useKgSubmit(), s = useKgSearch(), i = inject(DI_KG_SLOTS), {
|
8231
8256
|
model: l
|
8232
|
-
} = _useFormModel(), u = computed(() => n.store.isCreating(n.formID)), c = computed(() => n.store.isUpdating(n.formID)), g = computed(() => n.store.isCopying(n.formID)), m = computed(() => o.store.isLoading(n.formID)), p = computed(() => n.store.getVarButtonCreate(n.formID)), _ = computed(() => n.store.getVarButtonUpdate(n.formID)),
|
8257
|
+
} = _useFormModel(), u = computed(() => n.store.isCreating(n.formID)), c = computed(() => n.store.isUpdating(n.formID)), g = computed(() => n.store.isCopying(n.formID)), m = computed(() => o.store.isLoading(n.formID)), p = computed(() => n.store.getVarButtonCreate(n.formID)), _ = computed(() => n.store.getVarButtonUpdate(n.formID)), b = computed(() => n.store.getVarButtonCopy(n.formID)), v = computed(() => n.store.getVarSubmitConfig(n.formID)), y = computed(() => n.store.getVarSubmitFieldsForCreateKey(n.formID)), C = computed(() => n.store.getVarSubmitFieldsForCreateNotKey(n.formID)), O = computed(() => n.store.getVarSubmitFieldsForUpdateKey(n.formID)), P = computed(() => n.store.getVarSubmitFieldsForUpdateNotKey(n.formID)), A = computed(() => n.store.getVarSubmitFieldsForCopyKey(n.formID)), T = computed(() => n.store.getVarSubmitFieldsForCopyNotKey(n.formID)), L = computed(() => {
|
8233
8258
|
var B, z, Y;
|
8234
8259
|
switch (!0) {
|
8235
8260
|
case u.value:
|
8236
|
-
return (B =
|
8261
|
+
return (B = y.value) != null ? B : [];
|
8237
8262
|
case c.value:
|
8238
8263
|
return (z = O.value) != null ? z : [];
|
8239
8264
|
case g.value:
|
8240
|
-
return (Y =
|
8265
|
+
return (Y = A.value) != null ? Y : [];
|
8241
8266
|
}
|
8242
8267
|
return [];
|
8243
8268
|
}), w = computed(() => {
|
8244
8269
|
var B, z, Y;
|
8245
8270
|
switch (!0) {
|
8246
8271
|
case u.value:
|
8247
|
-
return (B =
|
8272
|
+
return (B = C.value) != null ? B : [];
|
8248
8273
|
case c.value:
|
8249
8274
|
return (z = P.value) != null ? z : [];
|
8250
8275
|
case g.value:
|
8251
|
-
return (Y =
|
8276
|
+
return (Y = T.value) != null ? Y : [];
|
8252
8277
|
}
|
8253
8278
|
return [];
|
8254
8279
|
}), k = computed(() => !!n.store.isCreatingRequesting(n.formID) || !!n.store.isUpdatingRequesting(n.formID) || !!n.store.isCopyingRequesting(n.formID)), M = computed(() => k.value || m.value), E = computed(() => m.value), R = ref({
|
8255
8280
|
kgWidth: DEFAULT_WIDTH
|
8256
|
-
}),
|
8281
|
+
}), V = computed(() => {
|
8257
8282
|
var B;
|
8258
8283
|
return !!(K.isFullscreen || ((B = v.value) == null ? void 0 : B.resizable_flg) === 0);
|
8259
|
-
}), D = ref(null),
|
8260
|
-
_useResizeObserver$1(
|
8284
|
+
}), D = ref(null), I = ref(null);
|
8285
|
+
_useResizeObserver$1(I);
|
8261
8286
|
const x = computed(() => {
|
8262
8287
|
var B, z, Y;
|
8263
8288
|
switch (!0) {
|
8264
8289
|
case u.value: {
|
8265
|
-
const
|
8266
|
-
return
|
8290
|
+
const Q = (B = p.value) == null ? void 0 : B.var_nam, ee = n.t(Q).value;
|
8291
|
+
return Q === ee ? r.t("kg.create") : ee;
|
8267
8292
|
}
|
8268
8293
|
case c.value: {
|
8269
|
-
const
|
8270
|
-
return
|
8294
|
+
const Q = (z = _.value) == null ? void 0 : z.var_nam, ee = n.t(Q).value;
|
8295
|
+
return Q === ee ? r.t("kg.update") : ee;
|
8271
8296
|
}
|
8272
8297
|
case g.value: {
|
8273
|
-
const
|
8274
|
-
return
|
8298
|
+
const Q = (Y = b.value) == null ? void 0 : Y.var_nam, ee = n.t(Q).value;
|
8299
|
+
return Q === ee ? r.t("kg.copy") : ee;
|
8275
8300
|
}
|
8276
8301
|
}
|
8277
8302
|
return "";
|
8278
|
-
}),
|
8303
|
+
}), $ = computed(() => !!(u.value || c.value || g.value)), F = computed(() => {
|
8279
8304
|
var z;
|
8280
8305
|
let B = "kg-submit";
|
8281
8306
|
return K.isFullscreen && (B += " kg-submit--fullscreen"), ((z = v.value) == null ? void 0 : z.responsive_flg) !== 0 && (B += " kg-submit--responsive"), B;
|
8282
8307
|
}), K = reactive({
|
8283
8308
|
isFullscreen: !1
|
8284
8309
|
}), W = computed(() => {
|
8285
|
-
var B, z, Y,
|
8310
|
+
var B, z, Y, Q;
|
8286
8311
|
switch ((B = v.value) == null ? void 0 : B.layout) {
|
8287
8312
|
case "horizontal":
|
8288
8313
|
switch ((z = v.value) == null ? void 0 : z.label_col_unit) {
|
@@ -8293,7 +8318,7 @@ const getProps$g = () => ({
|
|
8293
8318
|
default:
|
8294
8319
|
return {
|
8295
8320
|
style: {
|
8296
|
-
width: `${(
|
8321
|
+
width: `${(Q = v.value) == null ? void 0 : Q.label_col}px`
|
8297
8322
|
}
|
8298
8323
|
};
|
8299
8324
|
}
|
@@ -8316,14 +8341,14 @@ const getProps$g = () => ({
|
|
8316
8341
|
return;
|
8317
8342
|
}
|
8318
8343
|
});
|
8319
|
-
watch(
|
8320
|
-
B ?
|
8344
|
+
watch($, (B) => {
|
8345
|
+
B ? X() : N();
|
8321
8346
|
}), watch(v, (B) => {
|
8322
8347
|
B != null && B.dft_width && (R.value.kgWidth = B.dft_width);
|
8323
8348
|
}, {
|
8324
8349
|
immediate: !0
|
8325
8350
|
});
|
8326
|
-
function
|
8351
|
+
function X() {
|
8327
8352
|
var B;
|
8328
8353
|
o.store.emit(n.formID, "open", {
|
8329
8354
|
isCreating: u.value,
|
@@ -8333,7 +8358,7 @@ const getProps$g = () => ({
|
|
8333
8358
|
model: l
|
8334
8359
|
}), ((B = v.value) == null ? void 0 : B.dft_fullscreen_flg) === 1 && (K.isFullscreen = !0);
|
8335
8360
|
}
|
8336
|
-
function
|
8361
|
+
function N() {
|
8337
8362
|
var B;
|
8338
8363
|
R.value.kgWidth = ((B = v.value) == null ? void 0 : B.dft_width) || DEFAULT_WIDTH, K.isFullscreen = !1, o.store.emit(n.formID, "close");
|
8339
8364
|
}
|
@@ -8357,8 +8382,8 @@ const getProps$g = () => ({
|
|
8357
8382
|
return;
|
8358
8383
|
try {
|
8359
8384
|
await ((B = D.value) == null ? void 0 : B.validate());
|
8360
|
-
} catch (
|
8361
|
-
KgUtil.throwIfNotFormError(
|
8385
|
+
} catch (Q) {
|
8386
|
+
KgUtil.throwIfNotFormError(Q);
|
8362
8387
|
}
|
8363
8388
|
switch (await ((z = D.value) == null ? void 0 : z.validate()), !0) {
|
8364
8389
|
case u.value:
|
@@ -8376,7 +8401,7 @@ const getProps$g = () => ({
|
|
8376
8401
|
}
|
8377
8402
|
}
|
8378
8403
|
async function G() {
|
8379
|
-
var z, Y,
|
8404
|
+
var z, Y, Q, ee, ae, re, oe;
|
8380
8405
|
const B = (z = p.value) == null ? void 0 : z.cmd;
|
8381
8406
|
if (!B) {
|
8382
8407
|
Logger.error("[KgSubmit] \u521B\u5EFA\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
|
@@ -8387,7 +8412,7 @@ const getProps$g = () => ({
|
|
8387
8412
|
n.store.setIsCreatingRequesting(n.formID, !0);
|
8388
8413
|
try {
|
8389
8414
|
await httpClient().request({
|
8390
|
-
method: (
|
8415
|
+
method: (Q = (Y = p.value) == null ? void 0 : Y.cmd_method) != null ? Q : "POST",
|
8391
8416
|
url: B,
|
8392
8417
|
params: KgVarUtil.parseCommandParameter((ae = (ee = p.value) == null ? void 0 : ee.cmd_prm) != null ? ae : ""),
|
8393
8418
|
data: toRaw(l.value)
|
@@ -8399,7 +8424,7 @@ const getProps$g = () => ({
|
|
8399
8424
|
}
|
8400
8425
|
}
|
8401
8426
|
async function te() {
|
8402
|
-
var z, Y,
|
8427
|
+
var z, Y, Q, ee, ae, re, oe;
|
8403
8428
|
const B = (z = _.value) == null ? void 0 : z.cmd;
|
8404
8429
|
if (!B) {
|
8405
8430
|
Logger.error("[KgSubmit] \u66F4\u65B0\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
|
@@ -8409,7 +8434,7 @@ const getProps$g = () => ({
|
|
8409
8434
|
}
|
8410
8435
|
try {
|
8411
8436
|
n.store.setIsUpdatingRequesting(n.formID, !0), await httpClient().request({
|
8412
|
-
method: (
|
8437
|
+
method: (Q = (Y = _.value) == null ? void 0 : Y.cmd_method) != null ? Q : "POST",
|
8413
8438
|
url: B,
|
8414
8439
|
params: KgVarUtil.parseCommandParameter((ae = (ee = _.value) == null ? void 0 : ee.cmd_prm) != null ? ae : ""),
|
8415
8440
|
data: toRaw(l.value)
|
@@ -8421,19 +8446,19 @@ const getProps$g = () => ({
|
|
8421
8446
|
}
|
8422
8447
|
}
|
8423
8448
|
async function Z() {
|
8424
|
-
var z, Y,
|
8425
|
-
const B = (z =
|
8449
|
+
var z, Y, Q, ee, ae, re, oe;
|
8450
|
+
const B = (z = b.value) == null ? void 0 : z.cmd;
|
8426
8451
|
if (!B) {
|
8427
8452
|
Logger.error("[KgSubmit] \u590D\u5236\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
|
8428
|
-
button:
|
8453
|
+
button: b.value
|
8429
8454
|
});
|
8430
8455
|
return;
|
8431
8456
|
}
|
8432
8457
|
try {
|
8433
8458
|
n.store.setIsCopyingRequesting(n.formID, !0), await httpClient().request({
|
8434
|
-
method: (
|
8459
|
+
method: (Q = (Y = b.value) == null ? void 0 : Y.cmd_method) != null ? Q : "POST",
|
8435
8460
|
url: B,
|
8436
|
-
params: KgVarUtil.parseCommandParameter((ae = (ee =
|
8461
|
+
params: KgVarUtil.parseCommandParameter((ae = (ee = b.value) == null ? void 0 : ee.cmd_prm) != null ? ae : ""),
|
8437
8462
|
data: toRaw(l.value)
|
8438
8463
|
}), message.success(r.t("kg.copySuccess")), o.store.emit(n.formID, "ok"), n.store.setIsCopying(n.formID, !1), (oe = (re = s.search).value) == null || oe.call(re, !0);
|
8439
8464
|
} catch (ie) {
|
@@ -8443,8 +8468,8 @@ const getProps$g = () => ({
|
|
8443
8468
|
}
|
8444
8469
|
}
|
8445
8470
|
function J(B) {
|
8446
|
-
var Y,
|
8447
|
-
const z = (
|
8471
|
+
var Y, Q;
|
8472
|
+
const z = (Q = (Y = i == null ? void 0 : i.KgSubmit) == null ? void 0 : Y["KgForm.Item"]) == null ? void 0 : Q[B.var_nam];
|
8448
8473
|
return isFunction$2(z) ? createVNode(KgForm.Item, {
|
8449
8474
|
kgVarName: B.var_nam,
|
8450
8475
|
kgContext: KG_CONTROL_CONTEXT.SUBMIT,
|
@@ -8472,13 +8497,13 @@ const getProps$g = () => ({
|
|
8472
8497
|
}, null);
|
8473
8498
|
}
|
8474
8499
|
function ne() {
|
8475
|
-
var Y,
|
8500
|
+
var Y, Q, ee, ae;
|
8476
8501
|
let B, z;
|
8477
8502
|
return createVNode(KgResizable, {
|
8478
8503
|
kgType: "left",
|
8479
|
-
kgMinWidth: (
|
8504
|
+
kgMinWidth: (Q = (Y = v.value) == null ? void 0 : Y.min_width) != null ? Q : DEFAULT_MIN_WIDTH,
|
8480
8505
|
kgMaxWidth: (ae = (ee = v.value) == null ? void 0 : ee.max_width) != null ? ae : DEFAULT_MAX_WIDTH,
|
8481
|
-
kgDisabled:
|
8506
|
+
kgDisabled: V.value,
|
8482
8507
|
kgWidth: R.value.kgWidth,
|
8483
8508
|
"onUpdate:kgWidth": (re) => R.value.kgWidth = re
|
8484
8509
|
}, {
|
@@ -8495,7 +8520,7 @@ const getProps$g = () => ({
|
|
8495
8520
|
wrapperCol: q.value
|
8496
8521
|
}, {
|
8497
8522
|
default: () => [createVNode("div", {
|
8498
|
-
ref:
|
8523
|
+
ref: I
|
8499
8524
|
}, [L.value.length > 0 && createVNode(Row, {
|
8500
8525
|
gutter: 6
|
8501
8526
|
}, _isSlot$7(B = L.value.map(J)) ? B : {
|
@@ -8542,7 +8567,7 @@ const getProps$g = () => ({
|
|
8542
8567
|
}, null);
|
8543
8568
|
}
|
8544
8569
|
return () => createVNode(Drawer, {
|
8545
|
-
visible:
|
8570
|
+
visible: $.value,
|
8546
8571
|
placement: "right",
|
8547
8572
|
closable: !1,
|
8548
8573
|
maskClosable: !1,
|
@@ -8623,7 +8648,7 @@ const getProps$g = () => ({
|
|
8623
8648
|
return ((u = a.value) == null ? void 0 : u.align) === "center" ? l += " kg-table-td--center" : ((c = a.value) == null ? void 0 : c.align) === "right" && (l += " kg-table-td--right"), l;
|
8624
8649
|
});
|
8625
8650
|
function s() {
|
8626
|
-
var l, u, c, g, m, p, _,
|
8651
|
+
var l, u, c, g, m, p, _, b;
|
8627
8652
|
switch ((l = a.value) == null ? void 0 : l.display_type) {
|
8628
8653
|
case KG_TD_DISPLAY_TYPE.YN: {
|
8629
8654
|
const v = KgUtil.tryParseJSON((u = a.value) == null ? void 0 : u.display_type_properties);
|
@@ -8632,7 +8657,7 @@ const getProps$g = () => ({
|
|
8632
8657
|
}, null);
|
8633
8658
|
}
|
8634
8659
|
case KG_TD_DISPLAY_TYPE.ENUM: {
|
8635
|
-
const v = KgUtil.tryParseJSON((g = a.value) == null ? void 0 : g.display_type_properties).find((
|
8660
|
+
const v = KgUtil.tryParseJSON((g = a.value) == null ? void 0 : g.display_type_properties).find((y) => y.value === e.kgValue);
|
8636
8661
|
return v ? createVNode(Tag, {
|
8637
8662
|
color: (m = v.color) != null ? m : "default"
|
8638
8663
|
}, {
|
@@ -8644,7 +8669,7 @@ const getProps$g = () => ({
|
|
8644
8669
|
return createVNode(KgProgressA, {
|
8645
8670
|
kgTextWidth: v.textWidth,
|
8646
8671
|
kgLeft: (_ = e.kgRow) == null ? void 0 : _[v.leftColumn],
|
8647
|
-
kgRight: (
|
8672
|
+
kgRight: (b = e.kgRow) == null ? void 0 : b[v.rightColumn]
|
8648
8673
|
}, null);
|
8649
8674
|
}
|
8650
8675
|
case KG_TD_DISPLAY_TYPE.FILE_SIZE:
|
@@ -8758,8 +8783,8 @@ const getProps$c = () => ({
|
|
8758
8783
|
}) => {
|
8759
8784
|
const l = a.store.getVarGridConfig(a.formID);
|
8760
8785
|
return o = watch(i, (u) => {
|
8761
|
-
var c, g, m, p, _,
|
8762
|
-
u && (u.id = (c = l == null ? void 0 : l.id) != null ? c : null, u.frm_id = n, u.aut_load_flg = (g = l == null ? void 0 : l.aut_load_flg) != null ? g : 0, u.mult_flg = (m = l == null ? void 0 : l.mult_flg) != null ? m : 0, u.show_check_column_flg = (p = l == null ? void 0 : l.show_check_column_flg) != null ? p : 0, u.show_bottom_left_flg = (_ = l == null ? void 0 : l.show_bottom_left_flg) != null ? _ : 1, u.show_bottom_right_flg = (
|
8786
|
+
var c, g, m, p, _, b, v, y, C, O, P;
|
8787
|
+
u && (u.id = (c = l == null ? void 0 : l.id) != null ? c : null, u.frm_id = n, u.aut_load_flg = (g = l == null ? void 0 : l.aut_load_flg) != null ? g : 0, u.mult_flg = (m = l == null ? void 0 : l.mult_flg) != null ? m : 0, u.show_check_column_flg = (p = l == null ? void 0 : l.show_check_column_flg) != null ? p : 0, u.show_bottom_left_flg = (_ = l == null ? void 0 : l.show_bottom_left_flg) != null ? _ : 1, u.show_bottom_right_flg = (b = l == null ? void 0 : l.show_bottom_right_flg) != null ? b : 1, u.convert_sort_field_to_under_score_flg = (v = l == null ? void 0 : l.convert_sort_field_to_under_score_flg) != null ? v : 0, u.pg_size_opts = (y = l == null ? void 0 : l.pg_size_opts) != null ? y : "[10, 20, 50, 100]", u.pg_size_opt = (C = l == null ? void 0 : l.pg_size_opt) != null ? C : 10, u.cmd_prm = (O = l == null ? void 0 : l.cmd_prm) != null ? O : void 0, u.button_display_type = (P = l == null ? void 0 : l.button_display_type) != null ? P : KG_BUTTON_DISPLAY_TYPE.DEFAULT);
|
8763
8788
|
}, {
|
8764
8789
|
immediate: !0
|
8765
8790
|
}), !1;
|
@@ -8799,15 +8824,15 @@ const getProps$a = () => ({}), KgTableSetting = defineComponent({
|
|
8799
8824
|
const s = ref(""), i = reactive({
|
8800
8825
|
visible: !1
|
8801
8826
|
}), l = ref(!1);
|
8802
|
-
function u(
|
8803
|
-
a.store.setVarGridDetailVisible(a.formID,
|
8827
|
+
function u(y) {
|
8828
|
+
a.store.setVarGridDetailVisible(a.formID, y.var_nam, y.vis_flg === 1 ? 0 : 1);
|
8804
8829
|
}
|
8805
|
-
function c(
|
8806
|
-
|
8830
|
+
function c(y) {
|
8831
|
+
y.includes("1") || (s.value = "");
|
8807
8832
|
}
|
8808
8833
|
function g() {
|
8809
|
-
var
|
8810
|
-
((
|
8834
|
+
var y;
|
8835
|
+
((y = a.currentVarGridMaster.value) == null ? void 0 : y.cust_lvl) === KG_CUSTOM_LEVEL.L0 && KgUtil.confirm({
|
8811
8836
|
content: n.t("kg.KgTable.canNotUpdateSystemVarGridMaster"),
|
8812
8837
|
okButtonProps: {
|
8813
8838
|
danger: !1
|
@@ -8827,30 +8852,30 @@ const getProps$a = () => ({}), KgTableSetting = defineComponent({
|
|
8827
8852
|
popupClassName: "kg-table-setting-submenu-popup-columns"
|
8828
8853
|
}, {
|
8829
8854
|
default: () => {
|
8830
|
-
var
|
8855
|
+
var y;
|
8831
8856
|
return createVNode("div", {
|
8832
8857
|
class: "columns"
|
8833
8858
|
}, [createVNode(Input, {
|
8834
8859
|
value: s.value,
|
8835
|
-
"onUpdate:value": (
|
8860
|
+
"onUpdate:value": (C) => s.value = C,
|
8836
8861
|
allowClear: !0
|
8837
8862
|
}, null), createVNode("ul", {
|
8838
8863
|
class: "ant-dropdown-menu ant-dropdown-menu-vertical"
|
8839
|
-
}, [(
|
8864
|
+
}, [(y = a.systemVarGridDetails.value) == null ? void 0 : y.map((C) => {
|
8840
8865
|
var O;
|
8841
8866
|
return createVNode("li", {
|
8842
8867
|
class: "ant-dropdown-menu-item ant-dropdown-menu-item-only-child",
|
8843
8868
|
onClick: (P) => {
|
8844
|
-
P.preventDefault(), P.stopPropagation(), u(
|
8869
|
+
P.preventDefault(), P.stopPropagation(), u(C);
|
8845
8870
|
},
|
8846
8871
|
style: {
|
8847
|
-
display: (O = a.t(
|
8872
|
+
display: (O = a.t(C.var_nam).value) != null && O.includes(s.value) ? "flex" : "none"
|
8848
8873
|
}
|
8849
8874
|
}, [createVNode(Checkbox, {
|
8850
|
-
checked:
|
8875
|
+
checked: C.vis_flg === 1,
|
8851
8876
|
disabled: !0
|
8852
8877
|
}, {
|
8853
|
-
default: () => [createVNode("pre", null, [a.t(
|
8878
|
+
default: () => [createVNode("pre", null, [a.t(C.var_nam).value])]
|
8854
8879
|
}), createVNode(HolderOutlined$1, {
|
8855
8880
|
onClick: (P) => {
|
8856
8881
|
P.preventDefault(), P.stopPropagation();
|
@@ -8869,12 +8894,12 @@ const getProps$a = () => ({}), KgTableSetting = defineComponent({
|
|
8869
8894
|
}, {
|
8870
8895
|
default: () => {
|
8871
8896
|
var O;
|
8872
|
-
let
|
8897
|
+
let y, C;
|
8873
8898
|
return createVNode(Fragment, null, [(O = a.varGridMasters.value) == null ? void 0 : O.map((P) => {
|
8874
|
-
var
|
8899
|
+
var A;
|
8875
8900
|
return createVNode(Menu.Item, {
|
8876
8901
|
key: P.id,
|
8877
|
-
class: P.id === ((
|
8902
|
+
class: P.id === ((A = a.currentVarGridMaster.value) == null ? void 0 : A.id) ? "selected" : "",
|
8878
8903
|
"kg-var-nam": P.grd_var_nam
|
8879
8904
|
}, {
|
8880
8905
|
default: () => [a.t(P.grd_var_nam).value]
|
@@ -8882,38 +8907,38 @@ const getProps$a = () => ({}), KgTableSetting = defineComponent({
|
|
8882
8907
|
}), createVNode(Menu.Divider, null, null), createVNode(Menu.Item, {
|
8883
8908
|
key: "save-grid-view",
|
8884
8909
|
onClick: g
|
8885
|
-
}, _isSlot$5(
|
8886
|
-
default: () => [
|
8910
|
+
}, _isSlot$5(y = n.t("kg.KgTable.saveVarGridMaster")) ? y : {
|
8911
|
+
default: () => [y]
|
8887
8912
|
}), createVNode(Menu.Item, {
|
8888
8913
|
key: "save-grid-view-as",
|
8889
8914
|
onClick: m
|
8890
|
-
}, _isSlot$5(
|
8891
|
-
default: () => [
|
8915
|
+
}, _isSlot$5(C = n.t("kg.KgTable.saveVarGridMasterAs")) ? C : {
|
8916
|
+
default: () => [C]
|
8892
8917
|
})]);
|
8893
8918
|
},
|
8894
8919
|
expandIcon: () => createVNode(CaretRightOutlined$1, null, null)
|
8895
8920
|
});
|
8896
8921
|
}
|
8897
|
-
function
|
8898
|
-
let
|
8922
|
+
function b() {
|
8923
|
+
let y;
|
8899
8924
|
return createVNode(Menu.Item, {
|
8900
8925
|
key: "config-var-grid-master",
|
8901
8926
|
onClick: () => {
|
8902
8927
|
i.visible = !0;
|
8903
8928
|
}
|
8904
|
-
}, _isSlot$5(
|
8905
|
-
default: () => [
|
8929
|
+
}, _isSlot$5(y = n.t("kg.KgTable.configVarGridMasters")) ? y : {
|
8930
|
+
default: () => [y]
|
8906
8931
|
});
|
8907
8932
|
}
|
8908
8933
|
function v() {
|
8909
|
-
let
|
8934
|
+
let y;
|
8910
8935
|
return createVNode(Menu.Item, {
|
8911
8936
|
key: "config-var-grid-config",
|
8912
8937
|
onClick: async () => {
|
8913
8938
|
l.value = !0, await nextTick(), a.store.setIsUpdating(FORM_ID__VAR_GRID_CONFIG, !0, !0);
|
8914
8939
|
}
|
8915
|
-
}, _isSlot$5(
|
8916
|
-
default: () => [
|
8940
|
+
}, _isSlot$5(y = n.t("kg.KgTable.configVarGridConfig")) ? y : {
|
8941
|
+
default: () => [y]
|
8917
8942
|
});
|
8918
8943
|
}
|
8919
8944
|
return () => createVNode(Fragment, null, [createVNode(Dropdown, {
|
@@ -8927,11 +8952,11 @@ const getProps$a = () => ({}), KgTableSetting = defineComponent({
|
|
8927
8952
|
onOpenChange: c,
|
8928
8953
|
selectable: !1
|
8929
8954
|
}, {
|
8930
|
-
default: () => [p(), _(),
|
8955
|
+
default: () => [p(), _(), b(), v()]
|
8931
8956
|
})
|
8932
8957
|
}), l.value && createVNode(KgTableSettingVarGridConfig, null, null), createVNode(KgTableSettingVarGridMasterModal, {
|
8933
8958
|
visible: i.visible,
|
8934
|
-
"onUpdate:visible": (
|
8959
|
+
"onUpdate:visible": (y) => i.visible = y
|
8935
8960
|
}, null), createVNode(KgTableSettingSaveGridMaster, null, null)]);
|
8936
8961
|
}
|
8937
8962
|
});
|
@@ -9094,7 +9119,7 @@ function _useColumns() {
|
|
9094
9119
|
function _() {
|
9095
9120
|
return e.t(m.var_nam).value;
|
9096
9121
|
}
|
9097
|
-
function
|
9122
|
+
function b() {
|
9098
9123
|
return m.ord === -1 ? null : m.ord === 0 ? "ascend" : m.ord === 1 ? "descend" : null;
|
9099
9124
|
}
|
9100
9125
|
function v() {
|
@@ -9103,10 +9128,10 @@ function _useColumns() {
|
|
9103
9128
|
if (m.fix_right_flg === 1)
|
9104
9129
|
return "right";
|
9105
9130
|
}
|
9106
|
-
function
|
9131
|
+
function y() {
|
9107
9132
|
return m.ord_flg === 1;
|
9108
9133
|
}
|
9109
|
-
function
|
9134
|
+
function C() {
|
9110
9135
|
return ["left", "center", "right"].includes(m.align || "") ? m.align : "left";
|
9111
9136
|
}
|
9112
9137
|
const O = p();
|
@@ -9118,9 +9143,9 @@ function _useColumns() {
|
|
9118
9143
|
minWidth: KG_TABLE_TD_MIN_WIDTH,
|
9119
9144
|
maxWidth: KG_TABLE_TD_MAX_WIDTH,
|
9120
9145
|
fixed: v(),
|
9121
|
-
sorter:
|
9122
|
-
align:
|
9123
|
-
defaultSortOrder:
|
9146
|
+
sorter: y(),
|
9147
|
+
align: C(),
|
9148
|
+
defaultSortOrder: b(),
|
9124
9149
|
customHeaderCell: () => ({
|
9125
9150
|
"kg-frm-id": m.frm_id,
|
9126
9151
|
"kg-var-nam": m.var_nam
|
@@ -9182,54 +9207,54 @@ const KgTable$1 = "", getProps$9 = () => ({
|
|
9182
9207
|
isLoading: g
|
9183
9208
|
} = _useLoading(), m = ref(null);
|
9184
9209
|
_useResizeObserver(m);
|
9185
|
-
const p = computed(() => s.store.getVarLookup(n, a)), _ = computed(() => s.store.getVarButtonSearch(e.kgSearchFormID || s.formID)),
|
9186
|
-
var
|
9187
|
-
return ((
|
9210
|
+
const p = computed(() => s.store.getVarLookup(n, a)), _ = computed(() => s.store.getVarButtonSearch(e.kgSearchFormID || s.formID)), b = computed(() => {
|
9211
|
+
var N;
|
9212
|
+
return ((N = s.varGridConfig.value) == null ? void 0 : N.mult_flg) === 1;
|
9188
9213
|
}), v = computed(() => {
|
9189
|
-
var
|
9190
|
-
return ((
|
9191
|
-
}),
|
9192
|
-
var
|
9193
|
-
return ((
|
9194
|
-
}),
|
9195
|
-
var
|
9196
|
-
return ((
|
9214
|
+
var N;
|
9215
|
+
return ((N = s.varGridConfig.value) == null ? void 0 : N.aut_load_flg) === 1;
|
9216
|
+
}), y = computed(() => {
|
9217
|
+
var N;
|
9218
|
+
return ((N = s.varGridConfig.value) == null ? void 0 : N.show_bottom_left_flg) !== 0;
|
9219
|
+
}), C = computed(() => {
|
9220
|
+
var N;
|
9221
|
+
return ((N = s.varGridConfig.value) == null ? void 0 : N.show_bottom_right_flg) !== 0;
|
9197
9222
|
}), O = computed(() => {
|
9198
|
-
var
|
9199
|
-
return p.value ? (U = (
|
9223
|
+
var N, U, H, G;
|
9224
|
+
return p.value ? (U = (N = p.value) == null ? void 0 : N.cmd) != null ? U : "" : _.value ? (G = (H = _.value) == null ? void 0 : H.cmd) != null ? G : "" : null;
|
9200
9225
|
}), P = computed(() => {
|
9201
9226
|
var U, H, G, te, Z, J, ne, se;
|
9202
|
-
let
|
9227
|
+
let N = {
|
9203
9228
|
pageNo: k.pageIndex,
|
9204
9229
|
pageSize: k.pageSize,
|
9205
9230
|
...M,
|
9206
9231
|
...(U = l.model.value) != null ? U : {}
|
9207
9232
|
};
|
9208
|
-
return _.value && (
|
9209
|
-
...
|
9233
|
+
return _.value && (N = {
|
9234
|
+
...N,
|
9210
9235
|
...KgVarUtil.parseCommandParameter((G = (H = _.value) == null ? void 0 : H.cmd_prm) != null ? G : "")
|
9211
|
-
}), p.value && (
|
9212
|
-
...
|
9236
|
+
}), p.value && (N = {
|
9237
|
+
...N,
|
9213
9238
|
...KgVarUtil.parseCommandParameter((Z = (te = p.value) == null ? void 0 : te.cmd_prm) != null ? Z : "")
|
9214
|
-
}), (J = s.varGridConfig.value) != null && J.cmd_prm && (
|
9215
|
-
...
|
9239
|
+
}), (J = s.varGridConfig.value) != null && J.cmd_prm && (N = {
|
9240
|
+
...N,
|
9216
9241
|
...KgVarUtil.parseCommandParameter((ne = s.varGridConfig.value.cmd_prm) != null ? ne : "")
|
9217
|
-
}), ((se = s.varGridConfig.value) == null ? void 0 : se.convert_sort_field_to_under_score_flg) === 1 &&
|
9218
|
-
}),
|
9219
|
-
var
|
9220
|
-
if (((
|
9242
|
+
}), ((se = s.varGridConfig.value) == null ? void 0 : se.convert_sort_field_to_under_score_flg) === 1 && N.column && (N.column = snakeCase$1(N.column)), N;
|
9243
|
+
}), A = computed(() => {
|
9244
|
+
var N;
|
9245
|
+
if (((N = s.varGridConfig.value) == null ? void 0 : N.show_check_column_flg) === 1)
|
9221
9246
|
return {
|
9222
9247
|
fixed: "left",
|
9223
9248
|
columnWidth: KG_TABLE_TD_CHECK_WIDTH,
|
9224
|
-
hideSelectAll: !
|
9249
|
+
hideSelectAll: !b.value,
|
9225
9250
|
selectedRowKeys: w,
|
9226
9251
|
preserveSelectedRowKeys: !1,
|
9227
|
-
onSelect: (U) =>
|
9228
|
-
onChange: (U) =>
|
9252
|
+
onSelect: (U) => I(U),
|
9253
|
+
onChange: (U) => b.value && D(U)
|
9229
9254
|
};
|
9230
|
-
}),
|
9231
|
-
let
|
9232
|
-
return !
|
9255
|
+
}), T = computed(() => {
|
9256
|
+
let N = "kg-table";
|
9257
|
+
return !y.value && !C.value && (N += " kg-table--no-bottom"), N;
|
9233
9258
|
}), L = ref([]), w = ref([]), k = reactive({
|
9234
9259
|
pageIndex: 1,
|
9235
9260
|
pageSize: 10,
|
@@ -9239,28 +9264,28 @@ const KgTable$1 = "", getProps$9 = () => ({
|
|
9239
9264
|
order: void 0
|
9240
9265
|
});
|
9241
9266
|
let E = null;
|
9242
|
-
l.onSearch((
|
9243
|
-
N
|
9267
|
+
l.onSearch((N) => {
|
9268
|
+
V(N);
|
9244
9269
|
}), l.onReset(() => {
|
9245
|
-
|
9246
|
-
}), watch([O, v, l.isReady], ([
|
9247
|
-
|
9270
|
+
V(!0);
|
9271
|
+
}), watch([O, v, l.isReady], ([N, U, H]) => {
|
9272
|
+
N && U && !i.store.getIsRetrieved(s.formID) && H && V(!0);
|
9248
9273
|
}, {
|
9249
9274
|
immediate: !0
|
9250
9275
|
}), onUnmounted(() => {
|
9251
9276
|
i.store.dispose(s.formID);
|
9252
9277
|
});
|
9253
|
-
const R = useDebounceFn((
|
9278
|
+
const R = useDebounceFn((N) => {
|
9254
9279
|
var U;
|
9255
|
-
if (!!
|
9280
|
+
if (!!A.value) {
|
9256
9281
|
if (E) {
|
9257
9282
|
E = null;
|
9258
9283
|
return;
|
9259
9284
|
}
|
9260
|
-
if (!
|
9285
|
+
if (!N)
|
9261
9286
|
w.value = [];
|
9262
9287
|
else {
|
9263
|
-
const H =
|
9288
|
+
const H = N.id;
|
9264
9289
|
(U = w.value) != null && U.includes(H) ? w.value = [] : w.value = [H];
|
9265
9290
|
}
|
9266
9291
|
i.store.setSelectedRows(s.formID, w.value.map((H) => {
|
@@ -9269,7 +9294,7 @@ const KgTable$1 = "", getProps$9 = () => ({
|
|
9269
9294
|
}).filter((H) => !!H));
|
9270
9295
|
}
|
9271
9296
|
});
|
9272
|
-
async function N
|
9297
|
+
async function V(N = !1) {
|
9273
9298
|
var U, H;
|
9274
9299
|
if (!O.value) {
|
9275
9300
|
Logger.error("[KgTable] \u67E5\u8BE2\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
|
@@ -9277,7 +9302,7 @@ const KgTable$1 = "", getProps$9 = () => ({
|
|
9277
9302
|
});
|
9278
9303
|
return;
|
9279
9304
|
}
|
9280
|
-
|
9305
|
+
N && (k.pageIndex = 1), i.store.setIsRetrieving(s.formID, !0);
|
9281
9306
|
try {
|
9282
9307
|
const G = await httpClient().request({
|
9283
9308
|
method: "GET",
|
@@ -9291,24 +9316,24 @@ const KgTable$1 = "", getProps$9 = () => ({
|
|
9291
9316
|
i.store.setIsRetrieving(s.formID, !1);
|
9292
9317
|
}
|
9293
9318
|
}
|
9294
|
-
function D(
|
9295
|
-
w.value =
|
9319
|
+
function D(N) {
|
9320
|
+
w.value = N, i.store.setSelectedRows(s.formID, w.value.map((U) => {
|
9296
9321
|
var H;
|
9297
9322
|
return (H = L.value) == null ? void 0 : H.find((G) => G.id === U);
|
9298
9323
|
}).filter((U) => !!U));
|
9299
9324
|
}
|
9300
|
-
function
|
9325
|
+
function I(N) {
|
9301
9326
|
var U, H;
|
9302
|
-
switch (
|
9327
|
+
switch (b.value) {
|
9303
9328
|
case !0:
|
9304
9329
|
{
|
9305
|
-
const G =
|
9330
|
+
const G = N.id;
|
9306
9331
|
w.value.includes(G) ? w.value = without$1(w.value, G) : w.value = [...(U = w.value) != null ? U : [], G];
|
9307
9332
|
}
|
9308
9333
|
break;
|
9309
9334
|
case !1:
|
9310
9335
|
{
|
9311
|
-
const G =
|
9336
|
+
const G = N.id;
|
9312
9337
|
(H = w.value) != null && H.includes(G) ? w.value = [] : w.value = [G];
|
9313
9338
|
}
|
9314
9339
|
break;
|
@@ -9318,53 +9343,53 @@ const KgTable$1 = "", getProps$9 = () => ({
|
|
9318
9343
|
return (te = L.value) == null ? void 0 : te.find((Z) => Z.id === G);
|
9319
9344
|
}).filter((G) => !!G));
|
9320
9345
|
}
|
9321
|
-
function x(
|
9322
|
-
!
|
9346
|
+
function x(N) {
|
9347
|
+
!A.value || (E = N, w.value = [N.id], i.store.setSelectedRows(s.formID, w.value.map((U) => {
|
9323
9348
|
var H;
|
9324
9349
|
return (H = L.value) == null ? void 0 : H.find((G) => G.id === U);
|
9325
|
-
}).filter((U) => !!U)), i.store.emit(s.formID, "rowDoubleClick",
|
9350
|
+
}).filter((U) => !!U)), i.store.emit(s.formID, "rowDoubleClick", N));
|
9326
9351
|
}
|
9327
|
-
function
|
9328
|
-
U.width =
|
9352
|
+
function $(N, U) {
|
9353
|
+
U.width = N, s.store.setVarGridDetailWidth(s.formID, U.dataIndex, N);
|
9329
9354
|
}
|
9330
|
-
async function F(
|
9355
|
+
async function F(N, U, H, G) {
|
9331
9356
|
var te;
|
9332
9357
|
switch (G.action) {
|
9333
9358
|
case "sort":
|
9334
9359
|
{
|
9335
9360
|
await nextTick();
|
9336
9361
|
let Z = H;
|
9337
|
-
Z.order ? (M.column = (te = Z.field) != null ? te : void 0, M.order = Z.order === "ascend" ? "asc" : Z.order === "descend" ? "desc" : void 0) : (M.column = void 0, M.order = void 0),
|
9362
|
+
Z.order ? (M.column = (te = Z.field) != null ? te : void 0, M.order = Z.order === "ascend" ? "asc" : Z.order === "descend" ? "desc" : void 0) : (M.column = void 0, M.order = void 0), V(!0);
|
9338
9363
|
}
|
9339
9364
|
break;
|
9340
9365
|
}
|
9341
9366
|
}
|
9342
|
-
function K(
|
9343
|
-
U !== k.pageSize ? (k.pageIndex = 1, k.pageSize = U) : k.pageIndex =
|
9367
|
+
function K(N, U) {
|
9368
|
+
U !== k.pageSize ? (k.pageIndex = 1, k.pageSize = U) : k.pageIndex = N, V();
|
9344
9369
|
}
|
9345
9370
|
function W({
|
9346
|
-
title:
|
9371
|
+
title: N,
|
9347
9372
|
column: U
|
9348
9373
|
}) {
|
9349
9374
|
switch (U.dataIndex) {
|
9350
9375
|
case "index":
|
9351
9376
|
return createVNode(KgTableSetting, null, null);
|
9352
9377
|
default:
|
9353
|
-
return createVNode("pre", null, [
|
9378
|
+
return createVNode("pre", null, [N]);
|
9354
9379
|
}
|
9355
9380
|
}
|
9356
9381
|
function q({
|
9357
|
-
column:
|
9382
|
+
column: N,
|
9358
9383
|
index: U,
|
9359
9384
|
record: H,
|
9360
9385
|
value: G,
|
9361
9386
|
text: te
|
9362
9387
|
}) {
|
9363
9388
|
let Z = "";
|
9364
|
-
|
9389
|
+
N.customRender ? Z = N.customRender({
|
9365
9390
|
index: U,
|
9366
9391
|
record: H,
|
9367
|
-
column:
|
9392
|
+
column: N,
|
9368
9393
|
text: te,
|
9369
9394
|
value: G,
|
9370
9395
|
renderIndex: U
|
@@ -9372,22 +9397,22 @@ const KgTable$1 = "", getProps$9 = () => ({
|
|
9372
9397
|
const J = createVNode(KgTableCell, {
|
9373
9398
|
kgRow: H,
|
9374
9399
|
kgValue: Z,
|
9375
|
-
kgVarName:
|
9400
|
+
kgVarName: N.dataIndex
|
9376
9401
|
}, null);
|
9377
9402
|
return t.bodyCell ? t.bodyCell({
|
9378
9403
|
value: G,
|
9379
9404
|
record: H,
|
9380
9405
|
index: U,
|
9381
|
-
column:
|
9406
|
+
column: N,
|
9382
9407
|
defaultRender: J
|
9383
9408
|
}) : J;
|
9384
9409
|
}
|
9385
|
-
function
|
9410
|
+
function X() {
|
9386
9411
|
return !v.value && !i.store.getIsRetrieved(s.formID) ? o.t("kg.KgTable.emptyText") : o.t("kg.emptyText");
|
9387
9412
|
}
|
9388
9413
|
return () => createVNode("div", {
|
9389
9414
|
"kg-frm-id": s.formID,
|
9390
|
-
class:
|
9415
|
+
class: T.value,
|
9391
9416
|
ref: m
|
9392
9417
|
}, [createVNode(Table, {
|
9393
9418
|
class: "kg-flex-table",
|
@@ -9402,22 +9427,22 @@ const KgTable$1 = "", getProps$9 = () => ({
|
|
9402
9427
|
dataSource: L.value,
|
9403
9428
|
loading: g.value,
|
9404
9429
|
rowKey: "id",
|
9405
|
-
rowSelection:
|
9406
|
-
customRow: (
|
9407
|
-
onClick: () => R(
|
9408
|
-
onDblclick: () => x(
|
9430
|
+
rowSelection: A.value,
|
9431
|
+
customRow: (N) => ({
|
9432
|
+
onClick: () => R(N),
|
9433
|
+
onDblclick: () => x(N)
|
9409
9434
|
}),
|
9410
|
-
onResizeColumn:
|
9435
|
+
onResizeColumn: $,
|
9411
9436
|
onChange: F
|
9412
9437
|
}, {
|
9413
9438
|
headerCell: W,
|
9414
9439
|
bodyCell: q,
|
9415
|
-
emptyText:
|
9416
|
-
}), (
|
9440
|
+
emptyText: X
|
9441
|
+
}), (y.value || C.value) && createVNode("div", {
|
9417
9442
|
class: "kg-table-bottom"
|
9418
9443
|
}, [createVNode("div", {
|
9419
9444
|
class: "left"
|
9420
|
-
}, [
|
9445
|
+
}, [y.value && createVNode(KgTableInfo, {
|
9421
9446
|
kgShowClearCheck: w.value.length > 0,
|
9422
9447
|
kgShowClearTable: k.total > 0,
|
9423
9448
|
kgShowLocate: w.value.length === 1,
|
@@ -9425,7 +9450,7 @@ const KgTable$1 = "", getProps$9 = () => ({
|
|
9425
9450
|
kgDisabled: g.value
|
9426
9451
|
}, null)]), createVNode("div", {
|
9427
9452
|
class: "right"
|
9428
|
-
}, [
|
9453
|
+
}, [C.value && createVNode(Pagination, {
|
9429
9454
|
size: "default",
|
9430
9455
|
current: k.pageIndex,
|
9431
9456
|
pageSize: k.pageSize,
|
@@ -9437,12 +9462,12 @@ const KgTable$1 = "", getProps$9 = () => ({
|
|
9437
9462
|
locale: {
|
9438
9463
|
page: ""
|
9439
9464
|
},
|
9440
|
-
showTotal: (
|
9465
|
+
showTotal: (N, U) => o.t("kg.KgTable.totalText", {
|
9441
9466
|
from: U[0],
|
9442
9467
|
to: U[1],
|
9443
|
-
total:
|
9468
|
+
total: N
|
9444
9469
|
}),
|
9445
|
-
onChange: (
|
9470
|
+
onChange: (N, U) => K(N, U)
|
9446
9471
|
}, null)])])]);
|
9447
9472
|
}
|
9448
9473
|
});
|
@@ -9580,9 +9605,9 @@ const getProps$8 = () => ({
|
|
9580
9605
|
}), u = computed(() => {
|
9581
9606
|
var p, _;
|
9582
9607
|
return {
|
9583
|
-
ids: (_ = (p = n.selectedRows.value) == null ? void 0 : p.map((
|
9608
|
+
ids: (_ = (p = n.selectedRows.value) == null ? void 0 : p.map((b) => {
|
9584
9609
|
var v;
|
9585
|
-
return (v =
|
9610
|
+
return (v = b.id) != null ? v : "";
|
9586
9611
|
})) != null ? _ : []
|
9587
9612
|
};
|
9588
9613
|
});
|
@@ -9597,7 +9622,7 @@ const getProps$8 = () => ({
|
|
9597
9622
|
}
|
9598
9623
|
const p = KgUtil.confirm({
|
9599
9624
|
onOk: async () => {
|
9600
|
-
var _,
|
9625
|
+
var _, b;
|
9601
9626
|
p.showLoading();
|
9602
9627
|
try {
|
9603
9628
|
await httpClient().request({
|
@@ -9606,7 +9631,7 @@ const getProps$8 = () => ({
|
|
9606
9631
|
params: u.value
|
9607
9632
|
}, {
|
9608
9633
|
joinParamsToUrl: !0
|
9609
|
-
}), message.success(t.t("kg.deleteSuccess")), (
|
9634
|
+
}), message.success(t.t("kg.deleteSuccess")), (b = (_ = a.search).value) == null || b.call(_, !0), o.store.emit(r.formID, "deleteOk");
|
9610
9635
|
} finally {
|
9611
9636
|
p.hideLoading();
|
9612
9637
|
}
|
@@ -9726,27 +9751,75 @@ const getProps$8 = () => ({
|
|
9726
9751
|
name: "KgButtonExport",
|
9727
9752
|
props: getProps$8(),
|
9728
9753
|
setup(e) {
|
9729
|
-
const t = useKg();
|
9730
|
-
|
9731
|
-
|
9754
|
+
const t = useKg(), r = useKgVar();
|
9755
|
+
useKgTable();
|
9756
|
+
const n = useKgSearch();
|
9757
|
+
useKgButton();
|
9758
|
+
const a = computed(() => r.store.getVarButton(r.formID, e.kgVarName)), o = computed(() => {
|
9759
|
+
var m, p;
|
9760
|
+
return a.value ? (p = (m = a.value) == null ? void 0 : m.cmd) != null ? p : "" : null;
|
9761
|
+
}), s = computed(() => {
|
9762
|
+
var m, p;
|
9763
|
+
return (p = (m = a.value) == null ? void 0 : m.cmd_method) != null ? p : "GET";
|
9764
|
+
}), i = computed(() => {
|
9765
|
+
var p, _, b, v, y, C;
|
9766
|
+
let m = {
|
9767
|
+
...(p = n.model.value) != null ? p : {}
|
9768
|
+
};
|
9769
|
+
return a.value && (m = {
|
9770
|
+
...m,
|
9771
|
+
...KgVarUtil.parseCommandParameter((b = (_ = a.value) == null ? void 0 : _.cmd_prm) != null ? b : "")
|
9772
|
+
}), (v = r.varGridConfig.value) != null && v.cmd_prm && (m = {
|
9773
|
+
...m,
|
9774
|
+
...KgVarUtil.parseCommandParameter((y = r.varGridConfig.value.cmd_prm) != null ? y : "")
|
9775
|
+
}), ((C = r.varGridConfig.value) == null ? void 0 : C.convert_sort_field_to_under_score_flg) === 1 && m.column && (m.column = snakeCase$1(m.column)), m;
|
9776
|
+
}), l = ref(!1);
|
9777
|
+
async function u() {
|
9778
|
+
var m, p, _;
|
9779
|
+
if (!(e.onKgClick && await e.onKgClick())) {
|
9780
|
+
if (!o.value) {
|
9781
|
+
Logger.error("\u5BFC\u51FA\u6309\u94AE\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
|
9782
|
+
button: a.value
|
9783
|
+
});
|
9784
|
+
return;
|
9785
|
+
}
|
9786
|
+
l.value = !0;
|
9787
|
+
try {
|
9788
|
+
const b = await httpClient().request({
|
9789
|
+
method: s.value,
|
9790
|
+
url: o.value,
|
9791
|
+
params: i.value,
|
9792
|
+
responseType: "blob"
|
9793
|
+
}, {
|
9794
|
+
joinParamsToUrl: !0,
|
9795
|
+
isTransformResponse: !1
|
9796
|
+
});
|
9797
|
+
KgUtil.downloadFile(b, `${r.t((p = (m = a.value) == null ? void 0 : m.export_excel_filename) != null ? p : "export").value}.${(_ = a.value) == null ? void 0 : _.export_excel_suffix}`), message.success(t.t("kg.exportSuccess"));
|
9798
|
+
} catch (b) {
|
9799
|
+
throw b;
|
9800
|
+
} finally {
|
9801
|
+
l.value = !1;
|
9802
|
+
}
|
9803
|
+
}
|
9732
9804
|
}
|
9733
|
-
function
|
9734
|
-
return e.kgIcon ? createVNode("span", {
|
9805
|
+
function c() {
|
9806
|
+
return l.value ? createVNode(LoadingOutlined$1, null, null) : e.kgIcon ? createVNode("span", {
|
9735
9807
|
class: "anticon"
|
9736
9808
|
}, [createVNode(Icon, {
|
9737
9809
|
icon: e.kgIcon
|
9738
9810
|
}, null)]) : createVNode(UploadOutlined$1, null, null);
|
9739
9811
|
}
|
9740
|
-
function
|
9812
|
+
function g() {
|
9741
9813
|
return e.kgText ? e.kgText : t.t("kg.export");
|
9742
9814
|
}
|
9743
9815
|
return () => createVNode(Button, {
|
9744
9816
|
type: "primary",
|
9745
9817
|
disabled: !!e.kgDisabled,
|
9746
9818
|
ghost: !e.kgPrimary && !e.kgDisabled,
|
9747
|
-
|
9819
|
+
loading: l.value,
|
9820
|
+
onClick: u
|
9748
9821
|
}, {
|
9749
|
-
default: () => [
|
9822
|
+
default: () => [c(), g()]
|
9750
9823
|
});
|
9751
9824
|
}
|
9752
9825
|
}), KgButtonOther = defineComponent({
|
@@ -9767,18 +9840,18 @@ const getProps$8 = () => ({
|
|
9767
9840
|
}
|
9768
9841
|
let l = null;
|
9769
9842
|
const u = async () => {
|
9770
|
-
var
|
9843
|
+
var b, v, y, C, O, P;
|
9771
9844
|
l == null || l.showLoading(), r.store.setIsOtherRequesting(r.formID, !0);
|
9772
|
-
const p = ((
|
9845
|
+
const p = ((b = r.varGridConfig.value) == null ? void 0 : b.mult_flg) === 1, _ = n.selectedRows.value;
|
9773
9846
|
try {
|
9774
9847
|
await httpClient().request({
|
9775
|
-
method: (
|
9848
|
+
method: (y = (v = e.kgButton) == null ? void 0 : v.cmd_method) != null ? y : "POST",
|
9776
9849
|
url: i,
|
9777
|
-
params: KgVarUtil.parseCommandParameter((O = (
|
9850
|
+
params: KgVarUtil.parseCommandParameter((O = (C = e.kgButton) == null ? void 0 : C.cmd_prm) != null ? O : ""),
|
9778
9851
|
data: p ? _ != null ? _ : [] : (P = _ == null ? void 0 : _[0]) != null ? P : {}
|
9779
9852
|
});
|
9780
|
-
} catch (
|
9781
|
-
console.error(
|
9853
|
+
} catch (A) {
|
9854
|
+
console.error(A);
|
9782
9855
|
} finally {
|
9783
9856
|
r.store.setIsOtherRequesting(r.formID, !1), l == null || l.hideLoading();
|
9784
9857
|
}
|
@@ -9857,7 +9930,7 @@ const getProps$8 = () => ({
|
|
9857
9930
|
e.onKgClick && await e.onKgClick();
|
9858
9931
|
}
|
9859
9932
|
function n() {
|
9860
|
-
return e.kgLoading ? null : e.kgIcon ? createVNode("span", {
|
9933
|
+
return e.kgLoading ? createVNode(LoadingOutlined$1, null, null) : e.kgIcon ? createVNode("span", {
|
9861
9934
|
class: "anticon"
|
9862
9935
|
}, [createVNode(Icon, {
|
9863
9936
|
icon: e.kgIcon
|
@@ -10009,9 +10082,9 @@ const getProps$7 = () => ({
|
|
10009
10082
|
default: () => {
|
10010
10083
|
var p;
|
10011
10084
|
return [(p = r.varButtons.value) == null ? void 0 : p.filter((_) => _.typ !== KG_BTN_TYPE.SEARCH).map((_) => {
|
10012
|
-
let
|
10013
|
-
return createVNode(Menu.Item, null, _isSlot$3(
|
10014
|
-
default: () => [
|
10085
|
+
let b;
|
10086
|
+
return createVNode(Menu.Item, null, _isSlot$3(b = c(_)) ? b : {
|
10087
|
+
default: () => [b]
|
10015
10088
|
});
|
10016
10089
|
})];
|
10017
10090
|
}
|
@@ -10408,21 +10481,21 @@ const leftVarProfileDetailColumns = (e) => {
|
|
10408
10481
|
}) {
|
10409
10482
|
const r = useKg(), n = useKgVar(FORM_ID, !0), a = useKgSearch(FORM_ID), o = useKgButton(FORM_ID), s = useKgSubmit(FORM_ID), i = useKgVar(e.hostFormID);
|
10410
10483
|
s.onOpen(m), s.onBeforeOk(async (v) => {
|
10411
|
-
var
|
10412
|
-
return v.value.frm_id = i.formID, v.value.varProfileDetails = (
|
10484
|
+
var y, C;
|
10485
|
+
return v.value.frm_id = i.formID, v.value.varProfileDetails = (C = (y = l.value) == null ? void 0 : y.filter((O) => u.value.includes(O.id))) != null ? C : [], !1;
|
10413
10486
|
}), s.onOk(async () => (i.store.retrieve(i.formID), !1)), o.onBeforeUpdate(({
|
10414
10487
|
row: v
|
10415
|
-
}) => (v == null ? void 0 : v.cust_lvl) === KG_CUSTOM_LEVEL.L0 ? new Promise((
|
10488
|
+
}) => (v == null ? void 0 : v.cust_lvl) === KG_CUSTOM_LEVEL.L0 ? new Promise((y) => {
|
10416
10489
|
KgUtil.confirm({
|
10417
10490
|
content: r.t("kg.KgSearchConfigModal.canNotUpdateSystemVarProfileMaster"),
|
10418
10491
|
okButtonProps: {
|
10419
10492
|
danger: !1
|
10420
10493
|
},
|
10421
10494
|
onOk: () => {
|
10422
|
-
n.store.setIsCopying(n.formID, !0),
|
10495
|
+
n.store.setIsCopying(n.formID, !0), y(!0);
|
10423
10496
|
},
|
10424
10497
|
onCancel: () => {
|
10425
|
-
|
10498
|
+
y(!0);
|
10426
10499
|
}
|
10427
10500
|
});
|
10428
10501
|
}) : Promise.resolve(!1)), o.onDeleteOk(() => (i.store.retrieve(i.formID), Promise.resolve(!1)));
|
@@ -10431,26 +10504,26 @@ const leftVarProfileDetailColumns = (e) => {
|
|
10431
10504
|
"KgForm.Item": {
|
10432
10505
|
varProfileDetails: ({
|
10433
10506
|
varName: v,
|
10434
|
-
props:
|
10435
|
-
model:
|
10507
|
+
props: y,
|
10508
|
+
model: C,
|
10436
10509
|
varConfig: O,
|
10437
10510
|
varProfileDetail: P,
|
10438
|
-
varSubmitField:
|
10511
|
+
varSubmitField: A
|
10439
10512
|
}) => createVNode(Transfer, {
|
10440
10513
|
dataSource: l.value,
|
10441
10514
|
targetKeys: u.value,
|
10442
|
-
"onUpdate:targetKeys": (
|
10443
|
-
rowKey: (
|
10515
|
+
"onUpdate:targetKeys": (T) => u.value = T,
|
10516
|
+
rowKey: (T) => T.id,
|
10444
10517
|
showSearch: !0,
|
10445
10518
|
showSelectAll: !1,
|
10446
10519
|
searchPlaceholder: " ",
|
10447
|
-
filterOption: (
|
10520
|
+
filterOption: (T, L) => {
|
10448
10521
|
var w;
|
10449
|
-
return !!((w = L.var_nam) != null && w.includes(
|
10522
|
+
return !!((w = L.var_nam) != null && w.includes(T));
|
10450
10523
|
}
|
10451
10524
|
}, {
|
10452
10525
|
children: ({
|
10453
|
-
direction:
|
10526
|
+
direction: T,
|
10454
10527
|
filteredItems: L,
|
10455
10528
|
selectedKeys: w,
|
10456
10529
|
disabled: k,
|
@@ -10461,15 +10534,15 @@ const leftVarProfileDetailColumns = (e) => {
|
|
10461
10534
|
class: "kg-flex-table",
|
10462
10535
|
size: "small",
|
10463
10536
|
scroll: {
|
10464
|
-
x:
|
10537
|
+
x: T === "left" ? "370px" : "1244px",
|
10465
10538
|
y: "auto"
|
10466
10539
|
},
|
10467
|
-
columns:
|
10540
|
+
columns: T === "left" ? leftVarProfileDetailColumns(e.hostFormID) : rightVarProfileDetailColumns(e.hostFormID),
|
10468
10541
|
rowKey: "id",
|
10469
10542
|
dataSource: L,
|
10470
10543
|
customRow: (R) => ({
|
10471
|
-
onClick: (
|
10472
|
-
onDblclick: (
|
10544
|
+
onClick: (V) => _(V, R, w),
|
10545
|
+
onDblclick: (V) => b(V, R, T, w)
|
10473
10546
|
}),
|
10474
10547
|
rowSelection: g({
|
10475
10548
|
disabled: k,
|
@@ -10487,41 +10560,41 @@ const leftVarProfileDetailColumns = (e) => {
|
|
10487
10560
|
});
|
10488
10561
|
const g = ({
|
10489
10562
|
disabled: v,
|
10490
|
-
selectedKeys:
|
10491
|
-
onItemSelectAll:
|
10563
|
+
selectedKeys: y,
|
10564
|
+
onItemSelectAll: C,
|
10492
10565
|
onItemSelect: O
|
10493
10566
|
}) => ({
|
10494
10567
|
getCheckboxProps: (P) => ({
|
10495
10568
|
disabled: v || P.disabled
|
10496
10569
|
}),
|
10497
|
-
onSelectAll(P,
|
10498
|
-
const
|
10570
|
+
onSelectAll(P, A) {
|
10571
|
+
const T = A.filter((L) => !L.disabled).map(({
|
10499
10572
|
key: L
|
10500
10573
|
}) => L);
|
10501
|
-
T
|
10574
|
+
C(T, P);
|
10502
10575
|
},
|
10503
10576
|
onSelect({
|
10504
10577
|
key: P
|
10505
|
-
},
|
10506
|
-
O(P,
|
10578
|
+
}, A) {
|
10579
|
+
O(P, A);
|
10507
10580
|
},
|
10508
|
-
selectedRowKeys:
|
10581
|
+
selectedRowKeys: y,
|
10509
10582
|
columnWidth: 32
|
10510
10583
|
});
|
10511
10584
|
async function m({
|
10512
10585
|
isCreating: v,
|
10513
|
-
isUpdating:
|
10514
|
-
isCopying:
|
10586
|
+
isUpdating: y,
|
10587
|
+
isCopying: C,
|
10515
10588
|
row: O
|
10516
10589
|
}) {
|
10517
|
-
var
|
10590
|
+
var A, T;
|
10518
10591
|
const P = i.store.getSystemVarProfileDetails(i.formID);
|
10519
10592
|
switch (l.value = P ? cloneDeep(unref(toRaw(P))) : [], !0) {
|
10520
10593
|
case v:
|
10521
10594
|
u.value = [];
|
10522
10595
|
break;
|
10523
|
-
case
|
10524
|
-
case
|
10596
|
+
case y:
|
10597
|
+
case C:
|
10525
10598
|
if (O != null && O.id)
|
10526
10599
|
try {
|
10527
10600
|
s.store.setIsLoading(n.formID, !0);
|
@@ -10539,7 +10612,7 @@ const leftVarProfileDetailColumns = (e) => {
|
|
10539
10612
|
id: k.id
|
10540
10613
|
} : k;
|
10541
10614
|
});
|
10542
|
-
const w = (
|
10615
|
+
const w = (T = (A = L == null ? void 0 : L.varProfileDetails) == null ? void 0 : A.map((k) => k.var_nam)) != null ? T : [];
|
10543
10616
|
u.value = l.value.filter((k) => w.includes(k.var_nam)).map((k) => k.id);
|
10544
10617
|
} catch (L) {
|
10545
10618
|
throw L;
|
@@ -10553,26 +10626,26 @@ const leftVarProfileDetailColumns = (e) => {
|
|
10553
10626
|
return !1;
|
10554
10627
|
}
|
10555
10628
|
async function p() {
|
10556
|
-
const v = watch(a.isReady, async (
|
10557
|
-
var
|
10558
|
-
|
10629
|
+
const v = watch(a.isReady, async (y) => {
|
10630
|
+
var C, O;
|
10631
|
+
y && a.model.value && (setTimeout(() => v(), 0), a.store.patchModel(n.formID, {
|
10559
10632
|
frm_id: e.hostFormID
|
10560
|
-
}), (O = (
|
10633
|
+
}), (O = (C = a.search).value) == null || O.call(C));
|
10561
10634
|
}, {
|
10562
10635
|
immediate: !0
|
10563
10636
|
});
|
10564
10637
|
}
|
10565
|
-
function _(v,
|
10566
|
-
DomUtil.isNotClickable(v.target, ["ant-input"]) || (
|
10638
|
+
function _(v, y, C) {
|
10639
|
+
DomUtil.isNotClickable(v.target, ["ant-input"]) || (C.length = 0, C[0] = y.id);
|
10567
10640
|
}
|
10568
|
-
function
|
10641
|
+
function b(v, y, C, O) {
|
10569
10642
|
if (!DomUtil.isNotClickable(v.target, ["ant-input"]))
|
10570
|
-
switch (O.length = 0,
|
10643
|
+
switch (O.length = 0, C) {
|
10571
10644
|
case "left":
|
10572
|
-
u.value.push(
|
10645
|
+
u.value.push(y.id);
|
10573
10646
|
break;
|
10574
10647
|
case "right":
|
10575
|
-
u.value = without$1(u.value,
|
10648
|
+
u.value = without$1(u.value, y.id);
|
10576
10649
|
break;
|
10577
10650
|
}
|
10578
10651
|
}
|
@@ -10658,21 +10731,21 @@ const KgSearch$1 = "", getProps$3 = () => ({}), KgSearch = defineComponent({
|
|
10658
10731
|
const t = useKg(), r = useKgVar(), n = useKgSearch(), a = useKgTable();
|
10659
10732
|
_useLayoutHeaderResizeObserver();
|
10660
10733
|
const o = computed(() => r.store.getVarProfileConfig(r.formID)), s = computed(() => {
|
10661
|
-
var
|
10662
|
-
return ((
|
10734
|
+
var $;
|
10735
|
+
return (($ = o.value) == null ? void 0 : $.header_teleport_flg) !== 0;
|
10663
10736
|
}), i = computed(() => getDefaultHeight(r.currentVarProfileDetails.value, s.value)), l = computed(() => getMaxHeight(r.currentVarProfileDetails.value, s.value)), u = computed(() => s.value ? 1 : HEADER_HEIGHT), c = computed(() => !!a.isRetrieving.value), g = computed(() => !!a.isRetrieving.value), m = ref(null), p = ref({
|
10664
10737
|
kgHeight: u.value
|
10665
10738
|
}), _ = ref({
|
10666
10739
|
visible: !1
|
10667
10740
|
});
|
10668
|
-
let
|
10669
|
-
const v = computed(() => p.value.kgHeight === u.value),
|
10670
|
-
var
|
10671
|
-
if (r.t((
|
10672
|
-
return r.t((K =
|
10741
|
+
let b;
|
10742
|
+
const v = computed(() => p.value.kgHeight === u.value), y = computed(() => r.store.getVarButtonSearch(r.formID)), C = computed(() => {
|
10743
|
+
var $, F, K;
|
10744
|
+
if (r.t(($ = y.value) == null ? void 0 : $.var_nam).value !== ((F = y.value) == null ? void 0 : F.var_nam))
|
10745
|
+
return r.t((K = y.value) == null ? void 0 : K.var_nam).value;
|
10673
10746
|
}), O = computed(() => {
|
10674
|
-
var
|
10675
|
-
switch ((
|
10747
|
+
var $;
|
10748
|
+
switch (($ = y.value) == null ? void 0 : $.primary_flg) {
|
10676
10749
|
case 1:
|
10677
10750
|
return !0;
|
10678
10751
|
case 0:
|
@@ -10681,18 +10754,18 @@ const KgSearch$1 = "", getProps$3 = () => ({}), KgSearch = defineComponent({
|
|
10681
10754
|
return !0;
|
10682
10755
|
}
|
10683
10756
|
}), P = computed(() => {
|
10684
|
-
var
|
10685
|
-
return ((
|
10686
|
-
}),
|
10687
|
-
let
|
10688
|
-
return P.value || (
|
10757
|
+
var $;
|
10758
|
+
return (($ = o.value) == null ? void 0 : $.vis_flg) !== 0;
|
10759
|
+
}), A = computed(() => !!(r.isRetrievingVar.value || r.isRetrievingVarProfileMaster.value || s.value && !!r.isOtherRequesting.value)), T = computed(() => !!r.isRetrievingVar.value || !!r.isRetrievingVarProfileMaster.value), L = computed(() => {
|
10760
|
+
let $ = "kg-search";
|
10761
|
+
return P.value || ($ += " kg-search--invisible"), s.value && ($ += " kg-search--teleport"), $;
|
10689
10762
|
});
|
10690
|
-
watch(r.currentVarProfileDetails, (
|
10691
|
-
if (
|
10763
|
+
watch(r.currentVarProfileDetails, ($) => {
|
10764
|
+
if ($) {
|
10692
10765
|
const F = {};
|
10693
|
-
|
10766
|
+
$.forEach((K) => {
|
10694
10767
|
F[K.var_nam] = "";
|
10695
|
-
}), p.value.kgHeight = i.value, n.store.setModel(r.formID, reactive(F)), P.value ? (
|
10768
|
+
}), p.value.kgHeight = i.value, n.store.setModel(r.formID, reactive(F)), P.value ? (b == null || b(), b = watch(m, (K) => {
|
10696
10769
|
K && (n.store.emit(r.formID, "ready"), n.store.setIsReady(r.formID, !0));
|
10697
10770
|
}, {
|
10698
10771
|
immediate: !0
|
@@ -10703,23 +10776,23 @@ const KgSearch$1 = "", getProps$3 = () => ({}), KgSearch = defineComponent({
|
|
10703
10776
|
}), onUnmounted(() => {
|
10704
10777
|
n.store.dispose(r.formID);
|
10705
10778
|
});
|
10706
|
-
function w(
|
10779
|
+
function w($ = !1) {
|
10707
10780
|
P.value ? m.value && m.value.validate().then(() => {
|
10708
10781
|
n.store.emit(r.formID, "search", {
|
10709
|
-
resetPageIndex:
|
10782
|
+
resetPageIndex: $
|
10710
10783
|
});
|
10711
10784
|
}).catch((F) => {
|
10712
10785
|
Logger.debug("[KgSearch] \u8868\u5355\u9A8C\u8BC1\u5931\u8D25", {
|
10713
10786
|
e: F
|
10714
10787
|
});
|
10715
10788
|
}) : n.store.emit(r.formID, "search", {
|
10716
|
-
resetPageIndex:
|
10789
|
+
resetPageIndex: $
|
10717
10790
|
});
|
10718
10791
|
}
|
10719
10792
|
n.store.setSearchFn(r.formID, w);
|
10720
10793
|
function k() {
|
10721
|
-
var
|
10722
|
-
(
|
10794
|
+
var $;
|
10795
|
+
($ = m.value) == null || $.resetFields(), P.value ? m.value && m.value.validate().then(() => {
|
10723
10796
|
n.store.emit(r.formID, "reset");
|
10724
10797
|
}).catch((F) => {
|
10725
10798
|
Logger.debug("[KgSearch] \u8868\u5355\u9A8C\u8BC1\u5931\u8D25", {
|
@@ -10738,20 +10811,20 @@ const KgSearch$1 = "", getProps$3 = () => ({}), KgSearch = defineComponent({
|
|
10738
10811
|
}, [v.value ? createVNode(CaretUpOutlined$1, null, null) : createVNode(CaretDownOutlined$1, null, null), createVNode("span", null, [t.t("kg.KgSearch.title")])]);
|
10739
10812
|
}
|
10740
10813
|
function R() {
|
10741
|
-
var
|
10742
|
-
return ((K = (F = (
|
10814
|
+
var $, F, K, W;
|
10815
|
+
return ((K = (F = ($ = r.varProfileMasters) == null ? void 0 : $.value) == null ? void 0 : F.length) != null ? K : 0) === 0 ? null : createVNode(Fragment, null, [createVNode(Select, {
|
10743
10816
|
value: (W = r.currentVarProfileMasterID.value) != null ? W : void 0,
|
10744
10817
|
"onUpdate:value": (q) => r.store.setCurrentVarProfileMasterID(r.formID, q),
|
10745
10818
|
disabled: c.value,
|
10746
|
-
onChange:
|
10819
|
+
onChange: I,
|
10747
10820
|
class: "kg-search-profile-master-select"
|
10748
10821
|
}, {
|
10749
10822
|
default: () => {
|
10750
|
-
var q,
|
10751
|
-
return (
|
10752
|
-
value:
|
10823
|
+
var q, X;
|
10824
|
+
return (X = (q = r.varProfileMasters) == null ? void 0 : q.value) == null ? void 0 : X.map((N) => createVNode(Select.Option, {
|
10825
|
+
value: N.id
|
10753
10826
|
}, {
|
10754
|
-
default: () => [r.t(
|
10827
|
+
default: () => [r.t(N == null ? void 0 : N.prf_var_nam).value]
|
10755
10828
|
}));
|
10756
10829
|
},
|
10757
10830
|
suffixIcon: () => createVNode(CaretDownOutlined$1, null, null)
|
@@ -10769,8 +10842,8 @@ const KgSearch$1 = "", getProps$3 = () => ({}), KgSearch = defineComponent({
|
|
10769
10842
|
hostFormID: r.formID
|
10770
10843
|
}, null)]);
|
10771
10844
|
}
|
10772
|
-
function
|
10773
|
-
var
|
10845
|
+
function V() {
|
10846
|
+
var $, F, K, W, q;
|
10774
10847
|
return createVNode(Fragment, null, [R(), createVNode(Button, {
|
10775
10848
|
type: "primary",
|
10776
10849
|
ghost: !c.value,
|
@@ -10781,27 +10854,27 @@ const KgSearch$1 = "", getProps$3 = () => ({}), KgSearch = defineComponent({
|
|
10781
10854
|
default: () => [createVNode(ReloadOutlined$1, null, null), t.t("kg.reset")]
|
10782
10855
|
}), createVNode(KgButton.Item, {
|
10783
10856
|
kgType: KG_BTN_TYPE.SEARCH,
|
10784
|
-
kgVarName: (
|
10785
|
-
kgIcon: (F =
|
10786
|
-
kgText:
|
10787
|
-
kgColor: (K =
|
10857
|
+
kgVarName: ($ = y.value) == null ? void 0 : $.var_nam,
|
10858
|
+
kgIcon: (F = y.value) == null ? void 0 : F.icon,
|
10859
|
+
kgText: C.value,
|
10860
|
+
kgColor: (K = y.value) == null ? void 0 : K.color,
|
10788
10861
|
kgPrimary: O.value,
|
10789
10862
|
kgLoading: g.value,
|
10790
10863
|
onKgClick: M,
|
10791
10864
|
class: "kg-search-btn-search",
|
10792
|
-
"kg-var-btn-id": (W =
|
10793
|
-
"kg-var-nam": (q =
|
10865
|
+
"kg-var-btn-id": (W = y.value) == null ? void 0 : W.id,
|
10866
|
+
"kg-var-nam": (q = y.value) == null ? void 0 : q.var_nam
|
10794
10867
|
}, null)]);
|
10795
10868
|
}
|
10796
10869
|
function D() {
|
10797
10870
|
return createVNode(Spin, {
|
10798
|
-
spinning:
|
10871
|
+
spinning: T.value
|
10799
10872
|
}, {
|
10800
10873
|
default: () => {
|
10801
|
-
var
|
10874
|
+
var $;
|
10802
10875
|
return [createVNode(KgForm, {
|
10803
10876
|
ref: m,
|
10804
|
-
model: (
|
10877
|
+
model: ($ = n.model.value) != null ? $ : {}
|
10805
10878
|
}, {
|
10806
10879
|
default: () => [createVNode(Row, null, {
|
10807
10880
|
default: () => {
|
@@ -10817,8 +10890,8 @@ const KgSearch$1 = "", getProps$3 = () => ({}), KgSearch = defineComponent({
|
|
10817
10890
|
}
|
10818
10891
|
});
|
10819
10892
|
}
|
10820
|
-
function $
|
10821
|
-
console.log("333:value",
|
10893
|
+
function I($) {
|
10894
|
+
console.log("333:value", $);
|
10822
10895
|
}
|
10823
10896
|
function x() {
|
10824
10897
|
v.value ? p.value.kgHeight = i.value : p.value.kgHeight = u.value;
|
@@ -10827,7 +10900,7 @@ const KgSearch$1 = "", getProps$3 = () => ({}), KgSearch = defineComponent({
|
|
10827
10900
|
"kg-frm-id": r.formID,
|
10828
10901
|
class: L.value,
|
10829
10902
|
kgHeight: p.value.kgHeight,
|
10830
|
-
"onUpdate:kgHeight": (
|
10903
|
+
"onUpdate:kgHeight": ($) => p.value.kgHeight = $,
|
10831
10904
|
kgMinHeight: u.value,
|
10832
10905
|
kgMaxHeight: l.value
|
10833
10906
|
}, {
|
@@ -10842,11 +10915,11 @@ const KgSearch$1 = "", getProps$3 = () => ({}), KgSearch = defineComponent({
|
|
10842
10915
|
default: () => [createVNode("div", {
|
10843
10916
|
class: "ant-collapse-header"
|
10844
10917
|
}, [createVNode(Spin, {
|
10845
|
-
spinning:
|
10918
|
+
spinning: A.value
|
10846
10919
|
}, {
|
10847
10920
|
default: () => [E(), createVNode("div", {
|
10848
10921
|
class: "ant-collapse-extra"
|
10849
|
-
}, [
|
10922
|
+
}, [V()])]
|
10850
10923
|
})])]
|
10851
10924
|
}), createVNode("div", {
|
10852
10925
|
class: "ant-collapse-content ant-collapse-content-active"
|
@@ -11021,27 +11094,27 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
11021
11094
|
columnWidth: 32,
|
11022
11095
|
hideSelectAll: !0,
|
11023
11096
|
selectedRowKeys: c,
|
11024
|
-
onSelect: (E) =>
|
11097
|
+
onSelect: (E) => T(E)
|
11025
11098
|
}), m = ref({
|
11026
11099
|
visible: !1
|
11027
11100
|
}), p = computed(() => !!(unref(u) || unref(n) || unref(a) || unref(o))), _ = computed(() => {
|
11028
11101
|
var E;
|
11029
11102
|
return !!u.value || ((E = r.getSelectedVarCatalog) == null ? void 0 : E.cust_lvl) === KG_CUSTOM_LEVEL.L0;
|
11030
|
-
}),
|
11103
|
+
}), b = computed(() => !!(!unref(u) || unref(n) || unref(a))), v = computed(() => !!(!unref(r.getSelectedVarCatalog) || unref(n)));
|
11031
11104
|
watch(() => r.getSelectedVar, (E) => {
|
11032
|
-
E ?
|
11105
|
+
E ? y() : (u.value = null, l.value = [], r.setSelectedVarCatalog(null));
|
11033
11106
|
}, {
|
11034
11107
|
immediate: !0
|
11035
11108
|
}), watch(() => r.getSelectedVarCatalog, async (E) => {
|
11036
|
-
var R,
|
11037
|
-
i.value.var_text = (R = E == null ? void 0 : E.var_text) != null ? R : "", (
|
11109
|
+
var R, V;
|
11110
|
+
i.value.var_text = (R = E == null ? void 0 : E.var_text) != null ? R : "", (V = s.value) == null || V.clearValidate();
|
11038
11111
|
});
|
11039
|
-
async function
|
11040
|
-
var R,
|
11112
|
+
async function y(E = !1) {
|
11113
|
+
var R, V, D;
|
11041
11114
|
n.value = !0;
|
11042
11115
|
try {
|
11043
11116
|
const {
|
11044
|
-
records:
|
11117
|
+
records: I
|
11045
11118
|
} = await List$1({
|
11046
11119
|
params: {
|
11047
11120
|
pageNo: 1,
|
@@ -11052,27 +11125,27 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
11052
11125
|
order: "asc"
|
11053
11126
|
}
|
11054
11127
|
});
|
11055
|
-
if (u.value = null, l.value =
|
11056
|
-
const x = l.value.find((
|
11128
|
+
if (u.value = null, l.value = I != null ? I : [], E) {
|
11129
|
+
const x = l.value.find(($) => {
|
11057
11130
|
var F;
|
11058
|
-
return
|
11131
|
+
return $.id === ((F = r.getSelectedVarCatalog) == null ? void 0 : F.id);
|
11059
11132
|
});
|
11060
11133
|
r.setSelectedVarCatalog(x != null ? x : null), c.value = x != null && x.id ? [x.id] : [];
|
11061
11134
|
} else
|
11062
|
-
r.setSelectedVarCatalog((
|
11063
|
-
} catch (
|
11064
|
-
Logger.debug(
|
11135
|
+
r.setSelectedVarCatalog((V = l.value[0]) != null ? V : null), c.value = (D = l.value[0]) != null && D.id ? [l.value[0].id] : [];
|
11136
|
+
} catch (I) {
|
11137
|
+
Logger.debug(I == null ? void 0 : I.message);
|
11065
11138
|
} finally {
|
11066
11139
|
n.value = !1;
|
11067
11140
|
}
|
11068
11141
|
}
|
11069
|
-
async function
|
11070
|
-
var E, R,
|
11142
|
+
async function C() {
|
11143
|
+
var E, R, V;
|
11071
11144
|
try {
|
11072
11145
|
a.value = !0, await ((E = s.value) == null ? void 0 : E.validate());
|
11073
11146
|
const D = new VarCatalog({
|
11074
11147
|
...(R = r.getSelectedVarCatalog) != null ? R : {},
|
11075
|
-
var_text: (
|
11148
|
+
var_text: (V = i.value) == null ? void 0 : V.var_text
|
11076
11149
|
});
|
11077
11150
|
D.id ? D.cust_lvl === KG_CUSTOM_LEVEL.L0 ? (D.cust_lvl = KG_CUSTOM_LEVEL.L10, Reflect.deleteProperty(D, "id"), await Add$1({
|
11078
11151
|
data: D
|
@@ -11080,19 +11153,19 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
11080
11153
|
successMessageMode: "none"
|
11081
11154
|
}), message.success({
|
11082
11155
|
content: e.t("kg.KgVarConfig.createSuccess")
|
11083
|
-
}), await
|
11156
|
+
}), await y()) : (await Edit$1({
|
11084
11157
|
data: D
|
11085
11158
|
}, {
|
11086
11159
|
successMessageMode: "none"
|
11087
11160
|
}), message.success({
|
11088
11161
|
content: e.t("kg.KgVarConfig.saveSuccess")
|
11089
|
-
}), await
|
11162
|
+
}), await y(!0)) : (await Add$1({
|
11090
11163
|
data: D
|
11091
11164
|
}, {
|
11092
11165
|
successMessageMode: "none"
|
11093
11166
|
}), message.success({
|
11094
11167
|
content: e.t("kg.KgVarConfig.createSuccess")
|
11095
|
-
}), await
|
11168
|
+
}), await y()), t.retrieve(t.getCurrentFormID);
|
11096
11169
|
} catch (D) {
|
11097
11170
|
KgUtil.throwIfNotFormError(D);
|
11098
11171
|
} finally {
|
@@ -11103,14 +11176,14 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
11103
11176
|
isAllForm: E,
|
11104
11177
|
isAllLanguage: R
|
11105
11178
|
}) {
|
11106
|
-
var D,
|
11107
|
-
const
|
11179
|
+
var D, I, x;
|
11180
|
+
const V = t.getCurrentFormID;
|
11108
11181
|
u.value = new VarCatalog({
|
11109
11182
|
id: "",
|
11110
11183
|
cust_lvl: KG_CUSTOM_LEVEL.L10,
|
11111
11184
|
grp_nam: (D = r.getSelectedVar) == null ? void 0 : D.grp_nam,
|
11112
|
-
var_nam: (
|
11113
|
-
frm_id: E || !
|
11185
|
+
var_nam: (I = r.getSelectedVar) == null ? void 0 : I.var_nam,
|
11186
|
+
frm_id: E || !V ? "ALL" : V,
|
11114
11187
|
locale_id: R ? "ALL" : (x = e.locale) == null ? void 0 : x.value,
|
11115
11188
|
var_text: ""
|
11116
11189
|
}), l.value = [...l.value, u.value], r.setSelectedVarCatalog(unref(u)), c.value = [""];
|
@@ -11121,7 +11194,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
11121
11194
|
const E = (R = l.value[0]) != null ? R : null;
|
11122
11195
|
r.setSelectedVarCatalog(E), c.value = E ? [E.id] : [];
|
11123
11196
|
}
|
11124
|
-
function
|
11197
|
+
function A() {
|
11125
11198
|
KgUtil.confirm({
|
11126
11199
|
onOk: async () => {
|
11127
11200
|
var E;
|
@@ -11134,11 +11207,11 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
11134
11207
|
joinParamsToUrl: !0
|
11135
11208
|
}), message.success({
|
11136
11209
|
content: e.t("kg.KgVarConfig.deleteSuccess")
|
11137
|
-
}), t.retrieve(t.getCurrentFormID), await
|
11210
|
+
}), t.retrieve(t.getCurrentFormID), await y();
|
11138
11211
|
}
|
11139
11212
|
});
|
11140
11213
|
}
|
11141
|
-
function
|
11214
|
+
function T(E) {
|
11142
11215
|
var R;
|
11143
11216
|
((R = r.getSelectedVarCatalog) == null ? void 0 : R.id) !== E.id && (unref(u) ? KgUtil.confirm({
|
11144
11217
|
content: e.t("kg.KgVarConfig.discardConfirmMessage"),
|
@@ -11160,7 +11233,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
11160
11233
|
}, {
|
11161
11234
|
default: () => [createVNode(PlusOutlined$1, null, null), e.t("common.create")]
|
11162
11235
|
}), createVNode(Button, {
|
11163
|
-
onClick:
|
11236
|
+
onClick: A,
|
11164
11237
|
disabled: _.value,
|
11165
11238
|
ghost: !_.value,
|
11166
11239
|
type: "primary",
|
@@ -11176,7 +11249,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
11176
11249
|
}, [createVNode(Form, {
|
11177
11250
|
ref: s,
|
11178
11251
|
model: i.value,
|
11179
|
-
onSubmit:
|
11252
|
+
onSubmit: C
|
11180
11253
|
}, {
|
11181
11254
|
default: () => [createVNode(Form.Item, {
|
11182
11255
|
name: "var_text",
|
@@ -11187,7 +11260,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
11187
11260
|
}, {
|
11188
11261
|
default: () => [createVNode(Textarea, {
|
11189
11262
|
value: i.value.var_text,
|
11190
|
-
"onUpdate:value": (
|
11263
|
+
"onUpdate:value": (V) => i.value.var_text = V,
|
11191
11264
|
disabled: !r.getSelectedVarCatalog
|
11192
11265
|
}, null), createVNode("button", {
|
11193
11266
|
hidden: !0
|
@@ -11196,23 +11269,23 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
11196
11269
|
}), createVNode("div", {
|
11197
11270
|
class: "buttons"
|
11198
11271
|
}, [createVNode(Button, {
|
11199
|
-
disabled:
|
11272
|
+
disabled: b.value,
|
11200
11273
|
onClick: P
|
11201
11274
|
}, _isSlot(E = e.t("common.cancelText")) ? E : {
|
11202
11275
|
default: () => [E]
|
11203
11276
|
}), createVNode(Button, {
|
11204
11277
|
loading: a.value,
|
11205
11278
|
disabled: v.value,
|
11206
|
-
onClick:
|
11279
|
+
onClick: C,
|
11207
11280
|
type: "primary"
|
11208
11281
|
}, _isSlot(R = e.t("common.save")) ? R : {
|
11209
11282
|
default: () => [R]
|
11210
11283
|
})])]);
|
11211
11284
|
}
|
11212
11285
|
function M(E) {
|
11213
|
-
var
|
11286
|
+
var V;
|
11214
11287
|
let R = "";
|
11215
|
-
return E.id || (R += " ant-table-row-create"), E.id === ((
|
11288
|
+
return E.id || (R += " ant-table-row-create"), E.id === ((V = r.getSelectedVarCatalog) == null ? void 0 : V.id) && (R += " ant-table-row-selected "), R;
|
11216
11289
|
}
|
11217
11290
|
return () => createVNode("div", {
|
11218
11291
|
class: "kg-var-config-modal-var-var-catalog"
|
@@ -11231,7 +11304,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
11231
11304
|
rowClassName: M,
|
11232
11305
|
rowSelection: g.value,
|
11233
11306
|
customRow: (E) => ({
|
11234
|
-
onClick: () =>
|
11307
|
+
onClick: () => T(E)
|
11235
11308
|
})
|
11236
11309
|
}, null), k(), createVNode(KgVarConfigModalVarCreateModal, {
|
11237
11310
|
visible: m.value.visible,
|
@@ -11542,12 +11615,12 @@ function createStore(e, t, r) {
|
|
11542
11615
|
var m = slice(arguments, 0), p = this;
|
11543
11616
|
function _() {
|
11544
11617
|
if (!!c)
|
11545
|
-
return each$6(arguments, function(v,
|
11546
|
-
m[
|
11618
|
+
return each$6(arguments, function(v, y) {
|
11619
|
+
m[y] = v;
|
11547
11620
|
}), c.apply(p, m);
|
11548
11621
|
}
|
11549
|
-
var
|
11550
|
-
return l.apply(p,
|
11622
|
+
var b = [_].concat(m);
|
11623
|
+
return l.apply(p, b);
|
11551
11624
|
};
|
11552
11625
|
},
|
11553
11626
|
_serialize: function(l) {
|
@@ -12007,16 +12080,16 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
12007
12080
|
emit: t
|
12008
12081
|
}) {
|
12009
12082
|
const r = useKg(), n = useKgWarehouse(), a = computed(() => {
|
12010
|
-
let
|
12011
|
-
return (!m.value || e.kgInvisible) && (
|
12083
|
+
let A = "jeecg-layout-header-action__item kg-warehouse";
|
12084
|
+
return (!m.value || e.kgInvisible) && (A += " kg-warehouse--invisible"), A;
|
12012
12085
|
}), o = ref(""), s = n.warehouse, i = ref(null), l = ref(!1), u = reactive([{
|
12013
12086
|
width: 80,
|
12014
12087
|
align: "center",
|
12015
12088
|
customRender: ({
|
12016
|
-
record:
|
12089
|
+
record: A
|
12017
12090
|
}) => {
|
12018
12091
|
var L;
|
12019
|
-
return
|
12092
|
+
return A.id === ((L = i.value) == null ? void 0 : L.id) ? createVNode("img", {
|
12020
12093
|
src: WAREHOUSE_1890ff
|
12021
12094
|
}, null) : createVNode("img", {
|
12022
12095
|
src: WAREHOUSE_000000
|
@@ -12024,27 +12097,27 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
12024
12097
|
}
|
12025
12098
|
}, {
|
12026
12099
|
customRender: ({
|
12027
|
-
record:
|
12100
|
+
record: A
|
12028
12101
|
}) => {
|
12029
12102
|
var L, w, k;
|
12030
|
-
const
|
12031
|
-
return createVNode("div", null, [createVNode("div", null, [(L =
|
12103
|
+
const T = A;
|
12104
|
+
return createVNode("div", null, [createVNode("div", null, [(L = T.whDsc) != null ? L : " ", createTextVNode(" - "), (w = T.whId) != null ? w : " "]), createVNode("div", {
|
12032
12105
|
class: "address"
|
12033
|
-
}, [(k =
|
12106
|
+
}, [(k = T.adrId) != null ? k : " "])]);
|
12034
12107
|
}
|
12035
12108
|
}]), c = ref([]), g = computed(() => {
|
12036
|
-
var
|
12037
|
-
const
|
12109
|
+
var T;
|
12110
|
+
const A = (T = o.value) == null ? void 0 : T.toUpperCase();
|
12038
12111
|
return c.value.filter((L) => {
|
12039
|
-
var w, k, M, E, R,
|
12040
|
-
return ((k = (w = L.whDsc) == null ? void 0 : w.toUpperCase()) == null ? void 0 : k.includes(
|
12112
|
+
var w, k, M, E, R, V;
|
12113
|
+
return ((k = (w = L.whDsc) == null ? void 0 : w.toUpperCase()) == null ? void 0 : k.includes(A)) || ((E = (M = L.whId) == null ? void 0 : M.toUpperCase()) == null ? void 0 : E.includes(A)) || ((V = (R = L.adrId) == null ? void 0 : R.toUpperCase()) == null ? void 0 : V.includes(A));
|
12041
12114
|
});
|
12042
12115
|
}), m = computed(() => {
|
12043
|
-
var
|
12044
|
-
return ((
|
12116
|
+
var A, T;
|
12117
|
+
return ((T = (A = r.option.value) == null ? void 0 : A.KgWarehouse) == null ? void 0 : T.enable) !== !1;
|
12045
12118
|
});
|
12046
|
-
watch(n.visible, (
|
12047
|
-
!m.value || (
|
12119
|
+
watch(n.visible, (A) => {
|
12120
|
+
!m.value || (A ? _() : b());
|
12048
12121
|
}, {
|
12049
12122
|
immediate: !0
|
12050
12123
|
}), onMounted(() => {
|
@@ -12054,14 +12127,14 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
12054
12127
|
!m.value || n.store.setVisible(!0);
|
12055
12128
|
}
|
12056
12129
|
function _() {
|
12057
|
-
i.value = n.warehouse.value,
|
12130
|
+
i.value = n.warehouse.value, y();
|
12058
12131
|
}
|
12059
|
-
function
|
12132
|
+
function b() {
|
12060
12133
|
o.value = "", c.value = [], i.value = null;
|
12061
12134
|
}
|
12062
12135
|
function v() {
|
12063
|
-
var
|
12064
|
-
!i.value || (e.kgInvisible ? (n.store.setWarehouse(i.value), t("kgOk")) : i.value.id !== ((
|
12136
|
+
var A;
|
12137
|
+
!i.value || (e.kgInvisible ? (n.store.setWarehouse(i.value), t("kgOk")) : i.value.id !== ((A = n.warehouse.value) == null ? void 0 : A.id) && (n.store.setWarehouse(i.value), KgUtil.confirm({
|
12065
12138
|
content: r.t("kg.KgWarehouse.reloadMessage"),
|
12066
12139
|
kgHideCancelButton: !0,
|
12067
12140
|
okButtonProps: {
|
@@ -12073,30 +12146,30 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
12073
12146
|
}
|
12074
12147
|
})), n.store.setVisible(!1));
|
12075
12148
|
}
|
12076
|
-
async function
|
12149
|
+
async function y() {
|
12077
12150
|
l.value = !0;
|
12078
12151
|
try {
|
12079
12152
|
const {
|
12080
|
-
records:
|
12153
|
+
records: A
|
12081
12154
|
} = await ListVO({
|
12082
12155
|
params: {
|
12083
12156
|
pageNo: 1,
|
12084
12157
|
pageSize: 999
|
12085
12158
|
}
|
12086
12159
|
});
|
12087
|
-
c.value =
|
12088
|
-
} catch (
|
12089
|
-
console.error(
|
12160
|
+
c.value = A != null ? A : [];
|
12161
|
+
} catch (A) {
|
12162
|
+
console.error(A);
|
12090
12163
|
} finally {
|
12091
12164
|
l.value = !1;
|
12092
12165
|
}
|
12093
12166
|
}
|
12094
|
-
function
|
12095
|
-
var
|
12096
|
-
((
|
12167
|
+
function C(A) {
|
12168
|
+
var T;
|
12169
|
+
((T = i.value) == null ? void 0 : T.id) === A.id ? i.value = null : i.value = A;
|
12097
12170
|
}
|
12098
|
-
function O(
|
12099
|
-
i.value =
|
12171
|
+
function O(A) {
|
12172
|
+
i.value = A, v();
|
12100
12173
|
}
|
12101
12174
|
function P() {
|
12102
12175
|
return m.value ? createVNode(Fragment, null, [createVNode(Tooltip, {
|
@@ -12104,12 +12177,12 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
12104
12177
|
placement: "bottomRight"
|
12105
12178
|
}, {
|
12106
12179
|
default: () => {
|
12107
|
-
var
|
12108
|
-
return [((
|
12180
|
+
var A, T;
|
12181
|
+
return [((A = s.value) == null ? void 0 : A.whDsc) || ((T = s.value) == null ? void 0 : T.whId) || r.t("kg.KgWarehouse.selectWarehouse")];
|
12109
12182
|
}
|
12110
12183
|
}), createVNode(KgModal, {
|
12111
12184
|
visible: n.visible.value,
|
12112
|
-
"onUpdate:visible": (
|
12185
|
+
"onUpdate:visible": (A) => n.store.setVisible(A),
|
12113
12186
|
title: r.t("kg.KgWarehouse.title"),
|
12114
12187
|
width: "500px",
|
12115
12188
|
kgFullHeight: !1,
|
@@ -12126,7 +12199,7 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
12126
12199
|
}, {
|
12127
12200
|
default: () => [createVNode(Input, {
|
12128
12201
|
value: o.value,
|
12129
|
-
"onUpdate:value": (
|
12202
|
+
"onUpdate:value": (A) => o.value = A,
|
12130
12203
|
allowClear: !0,
|
12131
12204
|
disabled: l.value,
|
12132
12205
|
placeholder: r.t("kg.search")
|
@@ -12146,12 +12219,12 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
12146
12219
|
dataSource: g.value,
|
12147
12220
|
columns: u,
|
12148
12221
|
class: "kg-flex-table",
|
12149
|
-
customRow: (
|
12150
|
-
var
|
12222
|
+
customRow: (A) => {
|
12223
|
+
var T;
|
12151
12224
|
return {
|
12152
|
-
class:
|
12153
|
-
onClick: () =>
|
12154
|
-
onDblclick: () => O(
|
12225
|
+
class: A.id === ((T = i.value) == null ? void 0 : T.id) ? "selected" : "",
|
12226
|
+
onClick: () => C(A),
|
12227
|
+
onDblclick: () => O(A)
|
12155
12228
|
};
|
12156
12229
|
}
|
12157
12230
|
}, null)]
|
@@ -12212,6 +12285,7 @@ export {
|
|
12212
12285
|
KG_DI_HOST_FORM_ID,
|
12213
12286
|
KG_DI_LOOKUP_ID,
|
12214
12287
|
KG_DI_VAR_NAME,
|
12288
|
+
KG_EXCEL_SUFFIX,
|
12215
12289
|
KG_POSSIBILITY_DATA_TYPE,
|
12216
12290
|
KG_SUBMIT_LAYOUT,
|
12217
12291
|
KG_TABLE_TD_CHECK_WIDTH,
|