@kengic/vue 0.10.1 → 0.10.2
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/kengic-vue.js +1014 -943
- package/dist/src/{components → src/components}/KgForm/index.hooks.d.ts +7 -1
- package/dist/src/{components → src/components}/KgForm/index.store.d.ts +17 -7
- package/dist/src/{components → src/components}/KgForm.Item/components/KgForm.Item.Select.d.ts +2 -2
- package/dist/src/{components → src/components}/KgSubmit/index.hooks.d.ts +7 -1
- package/dist/src/{components → src/components}/KgSubmit/index.store.d.ts +14 -3
- package/dist/src/{components → src/components}/KgTable/index.store.d.ts +5 -0
- package/dist/src/{components → src/components}/KgVar/index.store.d.ts +13 -2
- package/package.json +1 -1
- /package/dist/src/{apis → src/apis}/WMS/Controllers/VarContextController/Add.d.ts +0 -0
- /package/dist/src/{apis → src/apis}/WMS/Controllers/VarContextController/Delete.d.ts +0 -0
- /package/dist/src/{apis → src/apis}/WMS/Controllers/VarContextController/DeleteBatch.d.ts +0 -0
- /package/dist/src/{apis → src/apis}/WMS/Controllers/VarContextController/Edit.d.ts +0 -0
- /package/dist/src/{apis → src/apis}/WMS/Controllers/VarContextController/ExportXls.d.ts +0 -0
- /package/dist/src/{apis → src/apis}/WMS/Controllers/VarContextController/ImportExcel.d.ts +0 -0
- /package/dist/src/{apis → src/apis}/WMS/Controllers/VarContextController/List.d.ts +0 -0
- /package/dist/src/{apis → src/apis}/WMS/Controllers/VarContextController/QueryById.d.ts +0 -0
- /package/dist/src/{apis → src/apis}/WMS/Controllers/VarContextController/index.d.ts +0 -0
- /package/dist/src/{apis → src/apis}/WMS/Controllers/VarController/GetAll.d.ts +0 -0
- /package/dist/src/{apis → src/apis}/WMS/Controllers/VarController/index.d.ts +0 -0
- /package/dist/src/{apis → src/apis}/WMS/Controllers/VarGridMasterController/QueryByID.d.ts +0 -0
- /package/dist/src/{apis → src/apis}/WMS/Controllers/VarGridMasterController/Update.d.ts +0 -0
- /package/dist/src/{apis → src/apis}/WMS/Controllers/VarGridMasterController/index.d.ts +0 -0
- /package/dist/src/{apis → src/apis}/WMS/Controllers/VarProfileMasterController/QueryByID.d.ts +0 -0
- /package/dist/src/{apis → src/apis}/WMS/Controllers/VarProfileMasterController/index.d.ts +0 -0
- /package/dist/src/{apis → src/apis}/WMS/Controllers/VarVariableCatalogController/Add.d.ts +0 -0
- /package/dist/src/{apis → src/apis}/WMS/Controllers/VarVariableCatalogController/Delete.d.ts +0 -0
- /package/dist/src/{apis → src/apis}/WMS/Controllers/VarVariableCatalogController/DeleteBatch.d.ts +0 -0
- /package/dist/src/{apis → src/apis}/WMS/Controllers/VarVariableCatalogController/Edit.d.ts +0 -0
- /package/dist/src/{apis → src/apis}/WMS/Controllers/VarVariableCatalogController/ExportXls.d.ts +0 -0
- /package/dist/src/{apis → src/apis}/WMS/Controllers/VarVariableCatalogController/ImportExcel.d.ts +0 -0
- /package/dist/src/{apis → src/apis}/WMS/Controllers/VarVariableCatalogController/List.d.ts +0 -0
- /package/dist/src/{apis → src/apis}/WMS/Controllers/VarVariableCatalogController/QueryById.d.ts +0 -0
- /package/dist/src/{apis → src/apis}/WMS/Controllers/VarVariableCatalogController/index.d.ts +0 -0
- /package/dist/src/{apis → src/apis}/WMS/Controllers/WhController/ListVO.d.ts +0 -0
- /package/dist/src/{apis → src/apis}/WMS/Controllers/WhController/index.d.ts +0 -0
- /package/dist/src/{apis → src/apis}/WMS/Controllers/index.d.ts +0 -0
- /package/dist/src/{apis → src/apis}/WMS/index.d.ts +0 -0
- /package/dist/src/{apis → src/apis}/WMS/models.d.ts +0 -0
- /package/dist/src/{apis → src/apis}/api.d.ts +0 -0
- /package/dist/src/{apis → src/apis}/def.d.ts +0 -0
- /package/dist/src/{apis → src/apis}/index.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgAppSelect/KgAppSelect.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgAppSelect/index.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgAppSelect/index.hooks.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgAppSelect/index.store.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgButton/KgButton.Item.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgButton/KgButton.Item.data.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgButton/KgButton.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgButton/components/KgButton.Copy.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgButton/components/KgButton.Create.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgButton/components/KgButton.Delete.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgButton/components/KgButton.Export.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgButton/components/KgButton.Import.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgButton/components/KgButton.ImportTemplate.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgButton/components/KgButton.Other.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgButton/components/KgButton.Search.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgButton/components/KgButton.Update.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgButton/index.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgButton/index.hooks.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgButton/index.store.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgForm/KgForm.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgForm/index.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgForm/index.vm.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgForm.Item/KgForm.Item.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgForm.Item/KgForm.Item.hooks.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgForm.Item/addon/KgForm.Item.Addon.Lookup.Modal.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgForm.Item/addon/KgForm.Item.Addon.Lookup.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgForm.Item/components/KgForm.Item.Checkbox.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgForm.Item/components/KgForm.Item.CheckboxGroup.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgForm.Item/components/KgForm.Item.Date.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgForm.Item/components/KgForm.Item.DateRange.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgForm.Item/components/KgForm.Item.Input.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgForm.Item/components/KgForm.Item.InputNumber.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgForm.Item/components/KgForm.Item.RadioGroup.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgForm.Item/components/KgForm.Item.Select.hooks.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgForm.Item/components/KgForm.Item.Switch.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgForm.Item/components/KgForm.Item.TextArea.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgForm.Item/index.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgForm.Item/index.vm.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgModal/KgModal.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgModal/components/KgModal.Close.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgModal/index.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgModal/index.vm.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgProgressA/KgProgressA.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgProgressA/index.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgResizable/KgResizable.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgResizable/index.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgSearch/KgSearch.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgSearch/KgSearch.hooks.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgSearch/components/KgSearch.ConfigModal.Body.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgSearch/components/KgSearch.ConfigModal.VarProfileConfig.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgSearch/components/KgSearch.ConfigModal.VarProfileMaster.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgSearch/components/KgSearch.ConfigModal.VarProfileMaster.hooks.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgSearch/components/KgSearch.ConfigModal.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgSearch/components/KgSearch.ConfigModal.data.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgSearch/index.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgSearch/index.hooks.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgSearch/index.store.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgSearch/index.vm.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgSubmit/KgSubmit.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgSubmit/KgSubmit.hooks.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgSubmit/components/KgSubmit.Header.VarSubmitConfig.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgSubmit/components/KgSubmit.Header.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgSubmit/index.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgSubmit/index.vm.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgTable/KgTable.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgTable/KgTable.hooks.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgTable/components/KgTable.Cell.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgTable/components/KgTable.Info.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgTable/components/setting/KgTable.Setting.VarGridMaster.SaveAs.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgTable/components/setting/KgTable.Setting.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgTable/components/setting/KgTable.Setting.hooks.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgTable/components/setting/config/KgTable.Setting.ConfigModal.Body.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgTable/components/setting/config/KgTable.Setting.ConfigModal.VarGridConfig.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgTable/components/setting/config/KgTable.Setting.ConfigModal.VarGridMaster.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgTable/components/setting/config/KgTable.Setting.ConfigModal.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgTable/index.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgTable/index.hooks.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgTable/index.vm.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgVar/KgVar.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgVar/index.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgVar/index.hooks.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgVar/index.store.service.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgVar/index.vm.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgVarConfig/KgVarConfig.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgVarConfig/components/KgVarConfig.FormIDsModal.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgVarConfig/components/KgVarConfig.Modal.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgVarConfig/components/button/KgVarConfig.Modal.Button.VarButton.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgVarConfig/components/button/KgVarConfig.Modal.Button.VarButtonConfig.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgVarConfig/components/button/KgVarConfig.Modal.Button.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgVarConfig/components/submit/KgVarConfig.Modal.Submit.VarSubmitField.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgVarConfig/components/submit/KgVarConfig.Modal.Submit.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgVarConfig/components/var/KgVarConfig.Modal.Var.CreateModal.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarCatalog.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarCatalog.data.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgVarConfig/components/var/KgVarConfig.Modal.Var.Vars.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgVarConfig/components/var/KgVarConfig.Modal.Var.Vars.data.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgVarConfig/components/var/KgVarConfig.Modal.Var.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgVarConfig/index.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgVarConfig/index.store.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgVarConfig/index.vm.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgWarehouse/KgWarehouse.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgWarehouse/index.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgWarehouse/index.guard.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgWarehouse/index.hooks.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgWarehouse/index.store.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgYesOrNo/KgYesOrNo.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgYesOrNo/index.d.ts +0 -0
- /package/dist/src/{components → src/components}/index.d.ts +0 -0
- /package/dist/src/{components → src/components}/util.d.ts +0 -0
- /package/dist/src/{config → src/config}/index.d.ts +0 -0
- /package/dist/src/{config → src/config}/index.hooks.d.ts +0 -0
- /package/dist/src/{config → src/config}/index.store.d.ts +0 -0
- /package/dist/src/{config → src/config}/setup.d.ts +0 -0
- /package/dist/src/{consts → src/consts}/i18n/en.d.ts +0 -0
- /package/dist/src/{consts → src/consts}/i18n/index.d.ts +0 -0
- /package/dist/src/{consts → src/consts}/i18n/zh_CN.d.ts +0 -0
- /package/dist/src/{consts → src/consts}/index.d.ts +0 -0
- /package/dist/src/{consts → src/consts}/index.vm.d.ts +0 -0
- /package/dist/src/{consts → src/consts}/injection-keys.const.d.ts +0 -0
- /package/dist/src/{helpers → src/helpers}/ant-design-vue.d.ts +0 -0
- /package/dist/src/{helpers → src/helpers}/tsx.helper.d.ts +0 -0
- /package/dist/src/{index.d.ts → src/index.d.ts} +0 -0
- /package/dist/src/{services → src/services}/http-client.d.ts +0 -0
- /package/dist/src/{services → src/services}/index.d.ts +0 -0
- /package/dist/src/{utils → src/utils}/dom.util.d.ts +0 -0
- /package/dist/src/{utils → src/utils}/index.d.ts +0 -0
- /package/dist/src/{utils → src/utils}/kg.util.d.ts +0 -0
- /package/dist/src/{utils → src/utils}/logger.util.d.ts +0 -0
- /package/dist/src/{utils → src/utils}/route.util.d.ts +0 -0
- /package/dist/src/{utils → src/utils}/var.util.d.ts +0 -0
package/dist/kengic-vue.js
CHANGED
@@ -3318,8 +3318,8 @@ function sendQuery(e, t, r, a) {
|
|
3318
3318
|
if (e.random) {
|
3319
3319
|
let k = e.resources.slice(0);
|
3320
3320
|
for (l = []; k.length > 1; ) {
|
3321
|
-
const
|
3322
|
-
l.push(k[
|
3321
|
+
const V = Math.floor(Math.random() * k.length);
|
3322
|
+
l.push(k[V]), k = k.slice(0, V).concat(k.slice(V + 1));
|
3323
3323
|
}
|
3324
3324
|
l = l.concat(k);
|
3325
3325
|
} else
|
@@ -3335,8 +3335,8 @@ function sendQuery(e, t, r, a) {
|
|
3335
3335
|
k.status === "pending" && (k.status = "aborted");
|
3336
3336
|
}), m = [];
|
3337
3337
|
}
|
3338
|
-
function g(k,
|
3339
|
-
|
3338
|
+
function g(k, V) {
|
3339
|
+
V && (v = []), typeof k == "function" && v.push(k);
|
3340
3340
|
}
|
3341
3341
|
function b() {
|
3342
3342
|
return {
|
@@ -3359,9 +3359,9 @@ function sendQuery(e, t, r, a) {
|
|
3359
3359
|
k.status === "pending" && (k.status = "aborted");
|
3360
3360
|
}), m = [];
|
3361
3361
|
}
|
3362
|
-
function T(k,
|
3363
|
-
const I =
|
3364
|
-
switch (m = m.filter((
|
3362
|
+
function T(k, V, w) {
|
3363
|
+
const I = V !== "success";
|
3364
|
+
switch (m = m.filter((A) => A !== k), i) {
|
3365
3365
|
case "pending":
|
3366
3366
|
break;
|
3367
3367
|
case "failed":
|
@@ -3371,23 +3371,23 @@ function sendQuery(e, t, r, a) {
|
|
3371
3371
|
default:
|
3372
3372
|
return;
|
3373
3373
|
}
|
3374
|
-
if (
|
3375
|
-
u =
|
3374
|
+
if (V === "abort") {
|
3375
|
+
u = w, E();
|
3376
3376
|
return;
|
3377
3377
|
}
|
3378
3378
|
if (I) {
|
3379
|
-
u =
|
3379
|
+
u = w, m.length || (l.length ? M() : E());
|
3380
3380
|
return;
|
3381
3381
|
}
|
3382
3382
|
if (y(), C(), !e.random) {
|
3383
|
-
const
|
3384
|
-
|
3383
|
+
const A = e.resources.indexOf(k.resource);
|
3384
|
+
A !== -1 && A !== e.index && (e.index = A);
|
3385
3385
|
}
|
3386
|
-
i = "completed", v.forEach((
|
3387
|
-
|
3386
|
+
i = "completed", v.forEach((A) => {
|
3387
|
+
A(w);
|
3388
3388
|
});
|
3389
3389
|
}
|
3390
|
-
function
|
3390
|
+
function M() {
|
3391
3391
|
if (i !== "pending")
|
3392
3392
|
return;
|
3393
3393
|
y();
|
@@ -3402,16 +3402,16 @@ function sendQuery(e, t, r, a) {
|
|
3402
3402
|
E();
|
3403
3403
|
return;
|
3404
3404
|
}
|
3405
|
-
const
|
3405
|
+
const V = {
|
3406
3406
|
status: "pending",
|
3407
3407
|
resource: k,
|
3408
|
-
callback: (
|
3409
|
-
T(
|
3408
|
+
callback: (w, I) => {
|
3409
|
+
T(V, w, I);
|
3410
3410
|
}
|
3411
3411
|
};
|
3412
|
-
m.push(
|
3412
|
+
m.push(V), c++, d = setTimeout(M, e.rotate), r(k, t, V.callback);
|
3413
3413
|
}
|
3414
|
-
return setTimeout(
|
3414
|
+
return setTimeout(M), b;
|
3415
3415
|
}
|
3416
3416
|
function initRedundancy(e) {
|
3417
3417
|
const t = {
|
@@ -3929,7 +3929,7 @@ const emptyIcon = {
|
|
3929
3929
|
...t.data
|
3930
3930
|
}, r);
|
3931
3931
|
}
|
3932
|
-
});
|
3932
|
+
}), name = "@kengic/vue", version = "0.10.2";
|
3933
3933
|
class KgDomUtil {
|
3934
3934
|
static isNotClickable(t, r = []) {
|
3935
3935
|
return !t || [...r, "kg-not-clickable"].some((a) => t.classList.contains(a)) ? !0 : t.parentElement && t.parentElement.tagName !== "BODY" ? KgDomUtil.isNotClickable(t.parentElement) : !1;
|
@@ -3940,62 +3940,62 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
3940
3940
|
(function(r, a) {
|
3941
3941
|
e.exports = a();
|
3942
3942
|
})(commonjsGlobal, function() {
|
3943
|
-
var r = 1e3, a = 6e4, n = 36e5, s = "millisecond", l = "second", o = "minute", i = "hour", c = "day", u = "week", d = "month", m = "quarter", v = "year", y = "date", p = "Invalid Date", g = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, b = /\[([^\]]+)]|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, E = { 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(
|
3944
|
-
var
|
3945
|
-
return "[" +
|
3946
|
-
} }, C = function(
|
3947
|
-
var G = String(
|
3948
|
-
return !G || G.length >=
|
3949
|
-
}, T = { s: C, z: function(
|
3950
|
-
var
|
3951
|
-
return (
|
3952
|
-
}, m: function O
|
3953
|
-
if (
|
3954
|
-
return -
|
3955
|
-
var G = 12 * (
|
3956
|
-
return +(-(G + (
|
3957
|
-
}, a: function(
|
3958
|
-
return
|
3959
|
-
}, p: function(
|
3960
|
-
return { M: d, y: v, w: u, d: c, D: y, h: i, m: o, s: l, ms: s, Q: m }[
|
3961
|
-
}, u: function(
|
3962
|
-
return
|
3963
|
-
} },
|
3964
|
-
k[
|
3965
|
-
var
|
3966
|
-
return
|
3967
|
-
}, I = function O
|
3943
|
+
var r = 1e3, a = 6e4, n = 36e5, s = "millisecond", l = "second", o = "minute", i = "hour", c = "day", u = "week", d = "month", m = "quarter", v = "year", y = "date", p = "Invalid Date", g = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, b = /\[([^\]]+)]|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, E = { 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(D) {
|
3944
|
+
var O = ["th", "st", "nd", "rd"], R = D % 100;
|
3945
|
+
return "[" + D + (O[(R - 20) % 10] || O[R] || O[0]) + "]";
|
3946
|
+
} }, C = function(D, O, R) {
|
3947
|
+
var G = String(D);
|
3948
|
+
return !G || G.length >= O ? D : "" + Array(O + 1 - G.length).join(R) + D;
|
3949
|
+
}, T = { s: C, z: function(D) {
|
3950
|
+
var O = -D.utcOffset(), R = Math.abs(O), G = Math.floor(R / 60), F = R % 60;
|
3951
|
+
return (O <= 0 ? "+" : "-") + C(G, 2, "0") + ":" + C(F, 2, "0");
|
3952
|
+
}, m: function D(O, R) {
|
3953
|
+
if (O.date() < R.date())
|
3954
|
+
return -D(R, O);
|
3955
|
+
var G = 12 * (R.year() - O.year()) + (R.month() - O.month()), F = O.clone().add(G, d), K = R - F < 0, x = O.clone().add(G + (K ? -1 : 1), d);
|
3956
|
+
return +(-(G + (R - F) / (K ? F - x : x - F)) || 0);
|
3957
|
+
}, a: function(D) {
|
3958
|
+
return D < 0 ? Math.ceil(D) || 0 : Math.floor(D);
|
3959
|
+
}, p: function(D) {
|
3960
|
+
return { M: d, y: v, w: u, d: c, D: y, h: i, m: o, s: l, ms: s, Q: m }[D] || String(D || "").toLowerCase().replace(/s$/, "");
|
3961
|
+
}, u: function(D) {
|
3962
|
+
return D === void 0;
|
3963
|
+
} }, M = "en", k = {};
|
3964
|
+
k[M] = E;
|
3965
|
+
var V = "$isDayjsObject", w = function(D) {
|
3966
|
+
return D instanceof N || !(!D || !D[V]);
|
3967
|
+
}, I = function D(O, R, G) {
|
3968
3968
|
var F;
|
3969
|
-
if (!
|
3970
|
-
return
|
3971
|
-
if (typeof
|
3972
|
-
var
|
3973
|
-
k[
|
3974
|
-
var
|
3975
|
-
if (!F &&
|
3976
|
-
return
|
3969
|
+
if (!O)
|
3970
|
+
return M;
|
3971
|
+
if (typeof O == "string") {
|
3972
|
+
var K = O.toLowerCase();
|
3973
|
+
k[K] && (F = K), R && (k[K] = R, F = K);
|
3974
|
+
var x = O.split("-");
|
3975
|
+
if (!F && x.length > 1)
|
3976
|
+
return D(x[0]);
|
3977
3977
|
} else {
|
3978
|
-
var
|
3979
|
-
k[
|
3978
|
+
var W = O.name;
|
3979
|
+
k[W] = O, F = W;
|
3980
3980
|
}
|
3981
|
-
return !G && F && (
|
3982
|
-
},
|
3983
|
-
if (D
|
3984
|
-
return
|
3985
|
-
var
|
3986
|
-
return
|
3981
|
+
return !G && F && (M = F), F || !G && M;
|
3982
|
+
}, A = function(D, O) {
|
3983
|
+
if (w(D))
|
3984
|
+
return D.clone();
|
3985
|
+
var R = typeof O == "object" ? O : {};
|
3986
|
+
return R.date = D, R.args = arguments, new N(R);
|
3987
3987
|
}, P = T;
|
3988
|
-
P.l = I, P.i =
|
3989
|
-
return
|
3988
|
+
P.l = I, P.i = w, P.w = function(D, O) {
|
3989
|
+
return A(D, { locale: O.$L, utc: O.$u, x: O.$x, $offset: O.$offset });
|
3990
3990
|
};
|
3991
3991
|
var N = function() {
|
3992
|
-
function
|
3993
|
-
this.$L = I(
|
3992
|
+
function D(R) {
|
3993
|
+
this.$L = I(R.locale, null, !0), this.parse(R), this.$x = this.$x || R.x || {}, this[V] = !0;
|
3994
3994
|
}
|
3995
|
-
var
|
3996
|
-
return
|
3995
|
+
var O = D.prototype;
|
3996
|
+
return O.parse = function(R) {
|
3997
3997
|
this.$d = function(G) {
|
3998
|
-
var F = G.date,
|
3998
|
+
var F = G.date, K = G.utc;
|
3999
3999
|
if (F === null)
|
4000
4000
|
return new Date(NaN);
|
4001
4001
|
if (P.u(F))
|
@@ -4003,107 +4003,107 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4003
4003
|
if (F instanceof Date)
|
4004
4004
|
return new Date(F);
|
4005
4005
|
if (typeof F == "string" && !/Z$/i.test(F)) {
|
4006
|
-
var
|
4007
|
-
if (
|
4008
|
-
var
|
4009
|
-
return
|
4006
|
+
var x = F.match(g);
|
4007
|
+
if (x) {
|
4008
|
+
var W = x[2] - 1 || 0, X = (x[7] || "0").substring(0, 3);
|
4009
|
+
return K ? new Date(Date.UTC(x[1], W, x[3] || 1, x[4] || 0, x[5] || 0, x[6] || 0, X)) : new Date(x[1], W, x[3] || 1, x[4] || 0, x[5] || 0, x[6] || 0, X);
|
4010
4010
|
}
|
4011
4011
|
}
|
4012
4012
|
return new Date(F);
|
4013
|
-
}(
|
4014
|
-
},
|
4015
|
-
var
|
4016
|
-
this.$y =
|
4017
|
-
},
|
4013
|
+
}(R), this.init();
|
4014
|
+
}, O.init = function() {
|
4015
|
+
var R = this.$d;
|
4016
|
+
this.$y = R.getFullYear(), this.$M = R.getMonth(), this.$D = R.getDate(), this.$W = R.getDay(), this.$H = R.getHours(), this.$m = R.getMinutes(), this.$s = R.getSeconds(), this.$ms = R.getMilliseconds();
|
4017
|
+
}, O.$utils = function() {
|
4018
4018
|
return P;
|
4019
|
-
},
|
4019
|
+
}, O.isValid = function() {
|
4020
4020
|
return this.$d.toString() !== p;
|
4021
|
-
},
|
4022
|
-
var F =
|
4021
|
+
}, O.isSame = function(R, G) {
|
4022
|
+
var F = A(R);
|
4023
4023
|
return this.startOf(G) <= F && F <= this.endOf(G);
|
4024
|
-
},
|
4025
|
-
return
|
4026
|
-
},
|
4027
|
-
return this.endOf(G) <
|
4028
|
-
},
|
4029
|
-
return P.u(
|
4030
|
-
},
|
4024
|
+
}, O.isAfter = function(R, G) {
|
4025
|
+
return A(R) < this.startOf(G);
|
4026
|
+
}, O.isBefore = function(R, G) {
|
4027
|
+
return this.endOf(G) < A(R);
|
4028
|
+
}, O.$g = function(R, G, F) {
|
4029
|
+
return P.u(R) ? this[G] : this.set(F, R);
|
4030
|
+
}, O.unix = function() {
|
4031
4031
|
return Math.floor(this.valueOf() / 1e3);
|
4032
|
-
},
|
4032
|
+
}, O.valueOf = function() {
|
4033
4033
|
return this.$d.getTime();
|
4034
|
-
},
|
4035
|
-
var F = this,
|
4034
|
+
}, O.startOf = function(R, G) {
|
4035
|
+
var F = this, K = !!P.u(G) || G, x = P.p(R), W = function(ce, ne) {
|
4036
4036
|
var le = P.w(F.$u ? Date.UTC(F.$y, ne, ce) : new Date(F.$y, ne, ce), F);
|
4037
|
-
return
|
4038
|
-
},
|
4039
|
-
return P.w(F.toDate()[ce].apply(F.toDate("s"), (
|
4040
|
-
}, z = this.$W,
|
4041
|
-
switch (
|
4037
|
+
return K ? le : le.endOf(c);
|
4038
|
+
}, X = function(ce, ne) {
|
4039
|
+
return P.w(F.toDate()[ce].apply(F.toDate("s"), (K ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(ne)), F);
|
4040
|
+
}, z = this.$W, ee = this.$M, re = this.$D, ie = "set" + (this.$u ? "UTC" : "");
|
4041
|
+
switch (x) {
|
4042
4042
|
case v:
|
4043
|
-
return
|
4043
|
+
return K ? W(1, 0) : W(31, 11);
|
4044
4044
|
case d:
|
4045
|
-
return
|
4045
|
+
return K ? W(1, ee) : W(0, ee + 1);
|
4046
4046
|
case u:
|
4047
|
-
var
|
4048
|
-
return
|
4047
|
+
var se = this.$locale().weekStart || 0, ge = (z < se ? z + 7 : z) - se;
|
4048
|
+
return W(K ? re - ge : re + (6 - ge), ee);
|
4049
4049
|
case c:
|
4050
4050
|
case y:
|
4051
|
-
return
|
4051
|
+
return X(ie + "Hours", 0);
|
4052
4052
|
case i:
|
4053
|
-
return
|
4053
|
+
return X(ie + "Minutes", 1);
|
4054
4054
|
case o:
|
4055
|
-
return
|
4055
|
+
return X(ie + "Seconds", 2);
|
4056
4056
|
case l:
|
4057
|
-
return
|
4057
|
+
return X(ie + "Milliseconds", 3);
|
4058
4058
|
default:
|
4059
4059
|
return this.clone();
|
4060
4060
|
}
|
4061
|
-
},
|
4062
|
-
return this.startOf(
|
4063
|
-
},
|
4064
|
-
var F,
|
4065
|
-
if (
|
4061
|
+
}, O.endOf = function(R) {
|
4062
|
+
return this.startOf(R, !1);
|
4063
|
+
}, O.$set = function(R, G) {
|
4064
|
+
var F, K = P.p(R), x = "set" + (this.$u ? "UTC" : ""), W = (F = {}, F[c] = x + "Date", F[y] = x + "Date", F[d] = x + "Month", F[v] = x + "FullYear", F[i] = x + "Hours", F[o] = x + "Minutes", F[l] = x + "Seconds", F[s] = x + "Milliseconds", F)[K], X = K === c ? this.$D + (G - this.$W) : G;
|
4065
|
+
if (K === d || K === v) {
|
4066
4066
|
var z = this.clone().set(y, 1);
|
4067
|
-
z.$d[
|
4067
|
+
z.$d[W](X), z.init(), this.$d = z.set(y, Math.min(this.$D, z.daysInMonth())).$d;
|
4068
4068
|
} else
|
4069
|
-
|
4069
|
+
W && this.$d[W](X);
|
4070
4070
|
return this.init(), this;
|
4071
|
-
},
|
4072
|
-
return this.clone().$set(
|
4073
|
-
},
|
4074
|
-
return this[P.p(
|
4075
|
-
},
|
4076
|
-
var F,
|
4077
|
-
|
4078
|
-
var
|
4079
|
-
var
|
4080
|
-
return P.w(
|
4071
|
+
}, O.set = function(R, G) {
|
4072
|
+
return this.clone().$set(R, G);
|
4073
|
+
}, O.get = function(R) {
|
4074
|
+
return this[P.p(R)]();
|
4075
|
+
}, O.add = function(R, G) {
|
4076
|
+
var F, K = this;
|
4077
|
+
R = Number(R);
|
4078
|
+
var x = P.p(G), W = function(ee) {
|
4079
|
+
var re = A(K);
|
4080
|
+
return P.w(re.date(re.date() + Math.round(ee * R)), K);
|
4081
4081
|
};
|
4082
|
-
if (
|
4083
|
-
return this.set(d, this.$M +
|
4084
|
-
if (
|
4085
|
-
return this.set(v, this.$y +
|
4086
|
-
if (
|
4087
|
-
return
|
4088
|
-
if (
|
4089
|
-
return
|
4090
|
-
var
|
4082
|
+
if (x === d)
|
4083
|
+
return this.set(d, this.$M + R);
|
4084
|
+
if (x === v)
|
4085
|
+
return this.set(v, this.$y + R);
|
4086
|
+
if (x === c)
|
4087
|
+
return W(1);
|
4088
|
+
if (x === u)
|
4089
|
+
return W(7);
|
4090
|
+
var X = (F = {}, F[o] = a, F[i] = n, F[l] = r, F)[x] || 1, z = this.$d.getTime() + R * X;
|
4091
4091
|
return P.w(z, this);
|
4092
|
-
},
|
4093
|
-
return this.add(-1 *
|
4094
|
-
},
|
4092
|
+
}, O.subtract = function(R, G) {
|
4093
|
+
return this.add(-1 * R, G);
|
4094
|
+
}, O.format = function(R) {
|
4095
4095
|
var G = this, F = this.$locale();
|
4096
4096
|
if (!this.isValid())
|
4097
4097
|
return F.invalidDate || p;
|
4098
|
-
var
|
4099
|
-
return ne && (ne[le] || ne(G,
|
4098
|
+
var K = R || "YYYY-MM-DDTHH:mm:ssZ", x = P.z(this), W = this.$H, X = this.$m, z = this.$M, ee = F.weekdays, re = F.months, ie = F.meridiem, se = function(ne, le, de, fe) {
|
4099
|
+
return ne && (ne[le] || ne(G, K)) || de[le].slice(0, fe);
|
4100
4100
|
}, ge = function(ne) {
|
4101
|
-
return P.s(
|
4102
|
-
}, ce =
|
4101
|
+
return P.s(W % 12 || 12, ne, "0");
|
4102
|
+
}, ce = ie || function(ne, le, de) {
|
4103
4103
|
var fe = ne < 12 ? "AM" : "PM";
|
4104
4104
|
return de ? fe.toLowerCase() : fe;
|
4105
4105
|
};
|
4106
|
-
return
|
4106
|
+
return K.replace(b, function(ne, le) {
|
4107
4107
|
return le || function(de) {
|
4108
4108
|
switch (de) {
|
4109
4109
|
case "YY":
|
@@ -4115,9 +4115,9 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4115
4115
|
case "MM":
|
4116
4116
|
return P.s(z + 1, 2, "0");
|
4117
4117
|
case "MMM":
|
4118
|
-
return
|
4118
|
+
return se(F.monthsShort, z, re, 3);
|
4119
4119
|
case "MMMM":
|
4120
|
-
return
|
4120
|
+
return se(re, z);
|
4121
4121
|
case "D":
|
4122
4122
|
return G.$D;
|
4123
4123
|
case "DD":
|
@@ -4125,27 +4125,27 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4125
4125
|
case "d":
|
4126
4126
|
return String(G.$W);
|
4127
4127
|
case "dd":
|
4128
|
-
return
|
4128
|
+
return se(F.weekdaysMin, G.$W, ee, 2);
|
4129
4129
|
case "ddd":
|
4130
|
-
return
|
4130
|
+
return se(F.weekdaysShort, G.$W, ee, 3);
|
4131
4131
|
case "dddd":
|
4132
|
-
return
|
4132
|
+
return ee[G.$W];
|
4133
4133
|
case "H":
|
4134
|
-
return String(
|
4134
|
+
return String(W);
|
4135
4135
|
case "HH":
|
4136
|
-
return P.s(
|
4136
|
+
return P.s(W, 2, "0");
|
4137
4137
|
case "h":
|
4138
4138
|
return ge(1);
|
4139
4139
|
case "hh":
|
4140
4140
|
return ge(2);
|
4141
4141
|
case "a":
|
4142
|
-
return ce(
|
4142
|
+
return ce(W, X, !0);
|
4143
4143
|
case "A":
|
4144
|
-
return ce(
|
4144
|
+
return ce(W, X, !1);
|
4145
4145
|
case "m":
|
4146
|
-
return String(
|
4146
|
+
return String(X);
|
4147
4147
|
case "mm":
|
4148
|
-
return P.s(
|
4148
|
+
return P.s(X, 2, "0");
|
4149
4149
|
case "s":
|
4150
4150
|
return String(G.$s);
|
4151
4151
|
case "ss":
|
@@ -4153,76 +4153,76 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4153
4153
|
case "SSS":
|
4154
4154
|
return P.s(G.$ms, 3, "0");
|
4155
4155
|
case "Z":
|
4156
|
-
return
|
4156
|
+
return x;
|
4157
4157
|
}
|
4158
4158
|
return null;
|
4159
|
-
}(ne) ||
|
4159
|
+
}(ne) || x.replace(":", "");
|
4160
4160
|
});
|
4161
|
-
},
|
4161
|
+
}, O.utcOffset = function() {
|
4162
4162
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
4163
|
-
},
|
4164
|
-
var
|
4165
|
-
return P.m(
|
4163
|
+
}, O.diff = function(R, G, F) {
|
4164
|
+
var K, x = this, W = P.p(G), X = A(R), z = (X.utcOffset() - this.utcOffset()) * a, ee = this - X, re = function() {
|
4165
|
+
return P.m(x, X);
|
4166
4166
|
};
|
4167
|
-
switch (
|
4167
|
+
switch (W) {
|
4168
4168
|
case v:
|
4169
|
-
|
4169
|
+
K = re() / 12;
|
4170
4170
|
break;
|
4171
4171
|
case d:
|
4172
|
-
|
4172
|
+
K = re();
|
4173
4173
|
break;
|
4174
4174
|
case m:
|
4175
|
-
|
4175
|
+
K = re() / 3;
|
4176
4176
|
break;
|
4177
4177
|
case u:
|
4178
|
-
|
4178
|
+
K = (ee - z) / 6048e5;
|
4179
4179
|
break;
|
4180
4180
|
case c:
|
4181
|
-
|
4181
|
+
K = (ee - z) / 864e5;
|
4182
4182
|
break;
|
4183
4183
|
case i:
|
4184
|
-
|
4184
|
+
K = ee / n;
|
4185
4185
|
break;
|
4186
4186
|
case o:
|
4187
|
-
|
4187
|
+
K = ee / a;
|
4188
4188
|
break;
|
4189
4189
|
case l:
|
4190
|
-
|
4190
|
+
K = ee / r;
|
4191
4191
|
break;
|
4192
4192
|
default:
|
4193
|
-
|
4193
|
+
K = ee;
|
4194
4194
|
}
|
4195
|
-
return F ?
|
4196
|
-
},
|
4195
|
+
return F ? K : P.a(K);
|
4196
|
+
}, O.daysInMonth = function() {
|
4197
4197
|
return this.endOf(d).$D;
|
4198
|
-
},
|
4198
|
+
}, O.$locale = function() {
|
4199
4199
|
return k[this.$L];
|
4200
|
-
},
|
4201
|
-
if (!
|
4200
|
+
}, O.locale = function(R, G) {
|
4201
|
+
if (!R)
|
4202
4202
|
return this.$L;
|
4203
|
-
var F = this.clone(),
|
4204
|
-
return
|
4205
|
-
},
|
4203
|
+
var F = this.clone(), K = I(R, G, !0);
|
4204
|
+
return K && (F.$L = K), F;
|
4205
|
+
}, O.clone = function() {
|
4206
4206
|
return P.w(this.$d, this);
|
4207
|
-
},
|
4207
|
+
}, O.toDate = function() {
|
4208
4208
|
return new Date(this.valueOf());
|
4209
|
-
},
|
4209
|
+
}, O.toJSON = function() {
|
4210
4210
|
return this.isValid() ? this.toISOString() : null;
|
4211
|
-
},
|
4211
|
+
}, O.toISOString = function() {
|
4212
4212
|
return this.$d.toISOString();
|
4213
|
-
},
|
4213
|
+
}, O.toString = function() {
|
4214
4214
|
return this.$d.toUTCString();
|
4215
|
-
},
|
4215
|
+
}, D;
|
4216
4216
|
}(), U = N.prototype;
|
4217
|
-
return
|
4218
|
-
U[
|
4219
|
-
return this.$g(
|
4217
|
+
return A.prototype = U, [["$ms", s], ["$s", l], ["$m", o], ["$H", i], ["$W", c], ["$M", d], ["$y", v], ["$D", y]].forEach(function(D) {
|
4218
|
+
U[D[1]] = function(O) {
|
4219
|
+
return this.$g(O, D[0], D[1]);
|
4220
4220
|
};
|
4221
|
-
}),
|
4222
|
-
return
|
4223
|
-
},
|
4224
|
-
return
|
4225
|
-
},
|
4221
|
+
}), A.extend = function(D, O) {
|
4222
|
+
return D.$i || (D(O, N, A), D.$i = !0), A;
|
4223
|
+
}, A.locale = I, A.isDayjs = w, A.unix = function(D) {
|
4224
|
+
return A(1e3 * D);
|
4225
|
+
}, A.en = k[M], A.Ls = k, A.p = {}, A;
|
4226
4226
|
});
|
4227
4227
|
})(dayjs_min);
|
4228
4228
|
const dayjs = dayjs_min.exports;
|
@@ -4267,31 +4267,31 @@ function filesize(e, {
|
|
4267
4267
|
roundingMethod: p = ROUND,
|
4268
4268
|
precision: g = 0
|
4269
4269
|
} = {}) {
|
4270
|
-
let b = y, E = Number(e), C = [], T = 0,
|
4270
|
+
let b = y, E = Number(e), C = [], T = 0, M = EMPTY;
|
4271
4271
|
u === SI ? (a = 10, u = JEDEC) : u === IEC || u === JEDEC ? a = 2 : a === 2 ? u = IEC : (a = 10, u = JEDEC);
|
4272
|
-
const k = a === 10 ? 1e3 : 1024,
|
4272
|
+
const k = a === 10 ? 1e3 : 1024, V = m === !0, w = E < 0, I = Math[p];
|
4273
4273
|
if (typeof e != "bigint" && isNaN(e))
|
4274
4274
|
throw new TypeError(INVALID_NUMBER);
|
4275
4275
|
if (typeof I !== FUNCTION)
|
4276
4276
|
throw new TypeError(INVALID_ROUND);
|
4277
|
-
if (
|
4277
|
+
if (w && (E = -E), (b === -1 || isNaN(b)) && (b = Math.floor(Math.log(E) / Math.log(k)), b < 0 && (b = 0)), b > 8 && (g > 0 && (g += 8 - b), b = 8), d === EXPONENT)
|
4278
4278
|
return b;
|
4279
4279
|
if (E === 0)
|
4280
|
-
C[0] = 0,
|
4280
|
+
C[0] = 0, M = C[1] = STRINGS.symbol[u][t ? BITS : BYTES][b];
|
4281
4281
|
else {
|
4282
4282
|
T = E / (a === 2 ? Math.pow(2, b * 10) : Math.pow(1e3, b)), t && (T = T * 8, T >= k && b < 8 && (T = T / k, b++));
|
4283
|
-
const
|
4284
|
-
C[0] = I(T *
|
4283
|
+
const A = Math.pow(10, b > 0 ? n : 0);
|
4284
|
+
C[0] = I(T * A) / A, C[0] === k && b < 8 && y === -1 && (C[0] = 1, b++), M = C[1] = a === 10 && b === 1 ? t ? SI_KBIT : SI_KBYTE : STRINGS.symbol[u][t ? BITS : BYTES][b];
|
4285
4285
|
}
|
4286
|
-
if (
|
4287
|
-
const
|
4288
|
-
C[0] = `${P[0]}${
|
4286
|
+
if (w && (C[0] = -C[0]), g > 0 && (C[0] = C[0].toPrecision(g)), C[1] = c[C[1]] || C[1], s === !0 ? C[0] = C[0].toLocaleString() : s.length > 0 ? C[0] = C[0].toLocaleString(s, l) : o.length > 0 && (C[0] = C[0].toString().replace(PERIOD, o)), r && Number.isInteger(C[0]) === !1 && n > 0) {
|
4287
|
+
const A = o || PERIOD, P = C[0].toString().split(A), N = P[1] || EMPTY, U = N.length, D = n - U;
|
4288
|
+
C[0] = `${P[0]}${A}${N.padEnd(U + D, ZERO)}`;
|
4289
4289
|
}
|
4290
|
-
return
|
4290
|
+
return V && (C[1] = v[b] ? v[b] : STRINGS.fullform[u][b] + (t ? BIT : BYTE) + (C[0] === 1 ? EMPTY : S)), d === ARRAY ? C : d === OBJECT ? {
|
4291
4291
|
value: C[0],
|
4292
4292
|
symbol: C[1],
|
4293
4293
|
exponent: b,
|
4294
|
-
unit:
|
4294
|
+
unit: M
|
4295
4295
|
} : C.join(i);
|
4296
4296
|
}
|
4297
4297
|
var freeGlobal = typeof global == "object" && global && global.Object === Object && global;
|
@@ -5482,8 +5482,8 @@ function equalObjects(e, t, r, a, n, s) {
|
|
5482
5482
|
g || (g = m == "constructor");
|
5483
5483
|
}
|
5484
5484
|
if (p && !g) {
|
5485
|
-
var T = e.constructor,
|
5486
|
-
T !=
|
5485
|
+
var T = e.constructor, M = t.constructor;
|
5486
|
+
T != M && "constructor" in e && "constructor" in t && !(typeof T == "function" && T instanceof T && typeof M == "function" && M instanceof M) && (p = !1);
|
5487
5487
|
}
|
5488
5488
|
return s.delete(e), s.delete(t), p;
|
5489
5489
|
}
|
@@ -5636,19 +5636,19 @@ function debounce(e, t, r) {
|
|
5636
5636
|
throw new TypeError(FUNC_ERROR_TEXT);
|
5637
5637
|
t = toNumber(t) || 0, isObject$2(r) && (u = !!r.leading, d = "maxWait" in r, s = d ? nativeMax$1(toNumber(r.maxWait) || 0, t) : s, m = "trailing" in r ? !!r.trailing : m);
|
5638
5638
|
function v(k) {
|
5639
|
-
var
|
5640
|
-
return a = n = void 0, c = k, l = e.apply(
|
5639
|
+
var V = a, w = n;
|
5640
|
+
return a = n = void 0, c = k, l = e.apply(w, V), l;
|
5641
5641
|
}
|
5642
5642
|
function y(k) {
|
5643
5643
|
return c = k, o = setTimeout(b, t), u ? v(k) : l;
|
5644
5644
|
}
|
5645
5645
|
function p(k) {
|
5646
|
-
var
|
5647
|
-
return d ? nativeMin$1(I, s -
|
5646
|
+
var V = k - i, w = k - c, I = t - V;
|
5647
|
+
return d ? nativeMin$1(I, s - w) : I;
|
5648
5648
|
}
|
5649
5649
|
function g(k) {
|
5650
|
-
var
|
5651
|
-
return i === void 0 ||
|
5650
|
+
var V = k - i, w = k - c;
|
5651
|
+
return i === void 0 || V >= t || V < 0 || d && w >= s;
|
5652
5652
|
}
|
5653
5653
|
function b() {
|
5654
5654
|
var k = now$1();
|
@@ -5665,9 +5665,9 @@ function debounce(e, t, r) {
|
|
5665
5665
|
function T() {
|
5666
5666
|
return o === void 0 ? l : E(now$1());
|
5667
5667
|
}
|
5668
|
-
function
|
5669
|
-
var k = now$1(),
|
5670
|
-
if (a = arguments, n = this, i = k,
|
5668
|
+
function M() {
|
5669
|
+
var k = now$1(), V = g(k);
|
5670
|
+
if (a = arguments, n = this, i = k, V) {
|
5671
5671
|
if (o === void 0)
|
5672
5672
|
return y(i);
|
5673
5673
|
if (d)
|
@@ -5675,7 +5675,7 @@ function debounce(e, t, r) {
|
|
5675
5675
|
}
|
5676
5676
|
return o === void 0 && (o = setTimeout(b, t)), l;
|
5677
5677
|
}
|
5678
|
-
return
|
5678
|
+
return M.cancel = C, M.flush = T, M;
|
5679
5679
|
}
|
5680
5680
|
function isArrayLikeObject(e) {
|
5681
5681
|
return isObjectLike(e) && isArrayLike(e);
|
@@ -7175,22 +7175,22 @@ function createSetupStore(e, t, r = {}, a, n) {
|
|
7175
7175
|
const i = {
|
7176
7176
|
deep: !0
|
7177
7177
|
};
|
7178
|
-
process.env.NODE_ENV !== "production" && !isVue2 && (i.onTrigger = (
|
7179
|
-
c ? v =
|
7178
|
+
process.env.NODE_ENV !== "production" && !isVue2 && (i.onTrigger = (w) => {
|
7179
|
+
c ? v = w : c == !1 && !k._hotUpdating && (Array.isArray(v) ? v.push(w) : console.error("\u{1F34D} debuggerEvents should be an array. This is most likely an internal Pinia bug."));
|
7180
7180
|
});
|
7181
7181
|
let c, u, d = markRaw([]), m = markRaw([]), v;
|
7182
7182
|
const y = a.state.value[e];
|
7183
7183
|
!l && !y && (process.env.NODE_ENV === "production" || !n) && (a.state.value[e] = {});
|
7184
7184
|
const p = ref({});
|
7185
|
-
function g(
|
7185
|
+
function g(w) {
|
7186
7186
|
let I;
|
7187
|
-
c = u = !1, process.env.NODE_ENV !== "production" && (v = []), typeof
|
7187
|
+
c = u = !1, process.env.NODE_ENV !== "production" && (v = []), typeof w == "function" ? (w(a.state.value[e]), I = {
|
7188
7188
|
type: MutationType.patchFunction,
|
7189
7189
|
storeId: e,
|
7190
7190
|
events: v
|
7191
|
-
}) : (mergeReactiveObjects(a.state.value[e],
|
7191
|
+
}) : (mergeReactiveObjects(a.state.value[e], w), I = {
|
7192
7192
|
type: MutationType.patchObject,
|
7193
|
-
payload:
|
7193
|
+
payload: w,
|
7194
7194
|
storeId: e,
|
7195
7195
|
events: v
|
7196
7196
|
}), nextTick().then(() => {
|
@@ -7203,30 +7203,30 @@ function createSetupStore(e, t, r = {}, a, n) {
|
|
7203
7203
|
function E() {
|
7204
7204
|
s.stop(), d = [], m = [], a._s.delete(e);
|
7205
7205
|
}
|
7206
|
-
function C(
|
7206
|
+
function C(w, I) {
|
7207
7207
|
return function() {
|
7208
7208
|
setActivePinia(a);
|
7209
|
-
const
|
7210
|
-
function U(
|
7211
|
-
P.push(
|
7209
|
+
const A = Array.from(arguments), P = [], N = [];
|
7210
|
+
function U(R) {
|
7211
|
+
P.push(R);
|
7212
7212
|
}
|
7213
|
-
function
|
7214
|
-
N.push(
|
7213
|
+
function D(R) {
|
7214
|
+
N.push(R);
|
7215
7215
|
}
|
7216
7216
|
triggerSubscriptions(m, {
|
7217
|
-
args:
|
7218
|
-
name:
|
7217
|
+
args: A,
|
7218
|
+
name: w,
|
7219
7219
|
store: k,
|
7220
7220
|
after: U,
|
7221
|
-
onError:
|
7221
|
+
onError: D
|
7222
7222
|
});
|
7223
|
-
let
|
7223
|
+
let O;
|
7224
7224
|
try {
|
7225
|
-
|
7226
|
-
} catch (
|
7227
|
-
throw triggerSubscriptions(N,
|
7225
|
+
O = I.apply(this && this.$id === e ? this : k, A);
|
7226
|
+
} catch (R) {
|
7227
|
+
throw triggerSubscriptions(N, R), R;
|
7228
7228
|
}
|
7229
|
-
return
|
7229
|
+
return O instanceof Promise ? O.then((R) => (triggerSubscriptions(P, R), R)).catch((R) => (triggerSubscriptions(N, R), Promise.reject(R))) : (triggerSubscriptions(P, O), O);
|
7230
7230
|
};
|
7231
7231
|
}
|
7232
7232
|
const T = /* @__PURE__ */ markRaw({
|
@@ -7234,21 +7234,21 @@ function createSetupStore(e, t, r = {}, a, n) {
|
|
7234
7234
|
getters: {},
|
7235
7235
|
state: [],
|
7236
7236
|
hotState: p
|
7237
|
-
}),
|
7237
|
+
}), M = {
|
7238
7238
|
_p: a,
|
7239
7239
|
$id: e,
|
7240
7240
|
$onAction: addSubscription.bind(null, m),
|
7241
7241
|
$patch: g,
|
7242
7242
|
$reset: b,
|
7243
|
-
$subscribe(
|
7244
|
-
const
|
7245
|
-
(I.flush === "sync" ? u : c) &&
|
7243
|
+
$subscribe(w, I = {}) {
|
7244
|
+
const A = addSubscription(d, w, I.detached, () => P()), P = s.run(() => watch(() => a.state.value[e], (N) => {
|
7245
|
+
(I.flush === "sync" ? u : c) && w({
|
7246
7246
|
storeId: e,
|
7247
7247
|
type: MutationType.direct,
|
7248
7248
|
events: v
|
7249
7249
|
}, N);
|
7250
7250
|
}, assign$1({}, i, I)));
|
7251
|
-
return
|
7251
|
+
return A;
|
7252
7252
|
},
|
7253
7253
|
$dispose: E
|
7254
7254
|
}, k = reactive(assign$1(
|
@@ -7256,57 +7256,57 @@ function createSetupStore(e, t, r = {}, a, n) {
|
|
7256
7256
|
_customProperties: markRaw(/* @__PURE__ */ new Set()),
|
7257
7257
|
_hmrPayload: T
|
7258
7258
|
} : {},
|
7259
|
-
|
7259
|
+
M
|
7260
7260
|
));
|
7261
7261
|
a._s.set(e, k);
|
7262
|
-
const
|
7263
|
-
for (const
|
7264
|
-
const I =
|
7262
|
+
const V = a._e.run(() => (s = effectScope(), s.run(() => t())));
|
7263
|
+
for (const w in V) {
|
7264
|
+
const I = V[w];
|
7265
7265
|
if (isRef(I) && !isComputed(I) || isReactive(I))
|
7266
|
-
process.env.NODE_ENV !== "production" && n ? set(p.value,
|
7266
|
+
process.env.NODE_ENV !== "production" && n ? set(p.value, w, toRef(V, w)) : l || (y && shouldHydrate(I) && (isRef(I) ? I.value = y[w] : mergeReactiveObjects(I, y[w])), a.state.value[e][w] = I), process.env.NODE_ENV !== "production" && T.state.push(w);
|
7267
7267
|
else if (typeof I == "function") {
|
7268
|
-
const
|
7269
|
-
|
7268
|
+
const A = process.env.NODE_ENV !== "production" && n ? I : C(w, I);
|
7269
|
+
V[w] = A, process.env.NODE_ENV !== "production" && (T.actions[w] = I), o.actions[w] = I;
|
7270
7270
|
} else
|
7271
|
-
process.env.NODE_ENV !== "production" && isComputed(I) && (T.getters[
|
7271
|
+
process.env.NODE_ENV !== "production" && isComputed(I) && (T.getters[w] = l ? r.getters[w] : I, IS_CLIENT && (V._getters || (V._getters = markRaw([]))).push(w));
|
7272
7272
|
}
|
7273
|
-
if (assign$1(k,
|
7273
|
+
if (assign$1(k, V), assign$1(toRaw(k), V), Object.defineProperty(k, "$state", {
|
7274
7274
|
get: () => process.env.NODE_ENV !== "production" && n ? p.value : a.state.value[e],
|
7275
|
-
set: (
|
7275
|
+
set: (w) => {
|
7276
7276
|
if (process.env.NODE_ENV !== "production" && n)
|
7277
7277
|
throw new Error("cannot set hotState");
|
7278
7278
|
g((I) => {
|
7279
|
-
assign$1(I,
|
7279
|
+
assign$1(I, w);
|
7280
7280
|
});
|
7281
7281
|
}
|
7282
7282
|
}), process.env.NODE_ENV !== "production") {
|
7283
7283
|
k._hotUpdate = markRaw((I) => {
|
7284
|
-
k._hotUpdating = !0, I._hmrPayload.state.forEach((
|
7285
|
-
if (
|
7286
|
-
const P = I.$state[
|
7287
|
-
typeof P == "object" && isPlainObject(P) && isPlainObject(N) ? patchObject(P, N) : I.$state[
|
7284
|
+
k._hotUpdating = !0, I._hmrPayload.state.forEach((A) => {
|
7285
|
+
if (A in k.$state) {
|
7286
|
+
const P = I.$state[A], N = k.$state[A];
|
7287
|
+
typeof P == "object" && isPlainObject(P) && isPlainObject(N) ? patchObject(P, N) : I.$state[A] = N;
|
7288
7288
|
}
|
7289
|
-
set(k,
|
7290
|
-
}), Object.keys(k.$state).forEach((
|
7291
|
-
|
7289
|
+
set(k, A, toRef(I.$state, A));
|
7290
|
+
}), Object.keys(k.$state).forEach((A) => {
|
7291
|
+
A in I.$state || del(k, A);
|
7292
7292
|
}), c = !1, u = !1, a.state.value[e] = toRef(I._hmrPayload, "hotState"), u = !0, nextTick().then(() => {
|
7293
7293
|
c = !0;
|
7294
7294
|
});
|
7295
|
-
for (const
|
7296
|
-
const P = I[
|
7297
|
-
set(k,
|
7295
|
+
for (const A in I._hmrPayload.actions) {
|
7296
|
+
const P = I[A];
|
7297
|
+
set(k, A, C(A, P));
|
7298
7298
|
}
|
7299
|
-
for (const
|
7300
|
-
const P = I._hmrPayload.getters[
|
7301
|
-
set(k,
|
7299
|
+
for (const A in I._hmrPayload.getters) {
|
7300
|
+
const P = I._hmrPayload.getters[A], N = l ? computed(() => (setActivePinia(a), P.call(k, k))) : P;
|
7301
|
+
set(k, A, N);
|
7302
7302
|
}
|
7303
|
-
Object.keys(k._hmrPayload.getters).forEach((
|
7304
|
-
|
7305
|
-
}), Object.keys(k._hmrPayload.actions).forEach((
|
7306
|
-
|
7303
|
+
Object.keys(k._hmrPayload.getters).forEach((A) => {
|
7304
|
+
A in I._hmrPayload.getters || del(k, A);
|
7305
|
+
}), Object.keys(k._hmrPayload.actions).forEach((A) => {
|
7306
|
+
A in I._hmrPayload.actions || del(k, A);
|
7307
7307
|
}), k._hmrPayload = I._hmrPayload, k._getters = I._getters, k._hotUpdating = !1;
|
7308
7308
|
});
|
7309
|
-
const
|
7309
|
+
const w = {
|
7310
7310
|
writable: !0,
|
7311
7311
|
configurable: !0,
|
7312
7312
|
enumerable: !1
|
@@ -7314,21 +7314,21 @@ function createSetupStore(e, t, r = {}, a, n) {
|
|
7314
7314
|
IS_CLIENT && ["_p", "_hmrPayload", "_getters", "_customProperties"].forEach((I) => {
|
7315
7315
|
Object.defineProperty(k, I, {
|
7316
7316
|
value: k[I],
|
7317
|
-
...
|
7317
|
+
...w
|
7318
7318
|
});
|
7319
7319
|
});
|
7320
7320
|
}
|
7321
|
-
return a._p.forEach((
|
7321
|
+
return a._p.forEach((w) => {
|
7322
7322
|
if (process.env.NODE_ENV !== "production" && IS_CLIENT) {
|
7323
|
-
const I = s.run(() =>
|
7323
|
+
const I = s.run(() => w({
|
7324
7324
|
store: k,
|
7325
7325
|
app: a._a,
|
7326
7326
|
pinia: a,
|
7327
7327
|
options: o
|
7328
7328
|
}));
|
7329
|
-
Object.keys(I || {}).forEach((
|
7329
|
+
Object.keys(I || {}).forEach((A) => k._customProperties.add(A)), assign$1(k, I);
|
7330
7330
|
} else
|
7331
|
-
assign$1(k, s.run(() =>
|
7331
|
+
assign$1(k, s.run(() => w({
|
7332
7332
|
store: k,
|
7333
7333
|
app: a._a,
|
7334
7334
|
pinia: a,
|
@@ -7460,7 +7460,11 @@ addIcon("ant-design:printer-outlined", data$1);
|
|
7460
7460
|
addIcon("ant-design:aim-outlined", data$a);
|
7461
7461
|
function setup(e) {
|
7462
7462
|
var r;
|
7463
|
-
if (
|
7463
|
+
if (console.log(
|
7464
|
+
`%c\u751F\u4EA7\u73AF\u5883
|
7465
|
+
${name}: ${version}`,
|
7466
|
+
"color:#ffffff;background-color:#1B6EF3;border-radius:2px;padding:1px 3px;font-size:10px;margin-bottom:1px;"
|
7467
|
+
), !(e != null && e.pinia) || !(e != null && e.locale) || !(e != null && e.i18n) || !e.pFunction)
|
7464
7468
|
throw KgLogger.error("\u7F3A\u5C11\u5FC5\u8981\u7684\u521D\u59CB\u5316\u53C2\u6570.", { options: e }), new Error("[@kengic/vue] \u7F3A\u5C11\u5FC5\u8981\u7684\u521D\u59CB\u5316\u53C2\u6570.");
|
7465
7469
|
setPinia(e.pinia);
|
7466
7470
|
const t = useKg();
|
@@ -8668,6 +8672,18 @@ const useKgVarStore = () => (store$7 || (store$7 = defineStore("KgVar", {
|
|
8668
8672
|
return t ? (a = (r = e.formIDs.find((n) => n.formID === t)) == null ? void 0 : r.level) != null ? a : 0 : (KgLogger.error("frm_id \u4E3A\u7A7A."), 0);
|
8669
8673
|
};
|
8670
8674
|
},
|
8675
|
+
t(e) {
|
8676
|
+
return (t, r) => {
|
8677
|
+
var s;
|
8678
|
+
if (!t || !r)
|
8679
|
+
return KgLogger.warn("IKgVarStore.t() | frm_id \u6216 var_nam \u4E3A\u7A7A.", { frm_id: t, var_nam: r }), " ";
|
8680
|
+
const a = e.varCatalogMap.get(t);
|
8681
|
+
if (!a)
|
8682
|
+
return " ";
|
8683
|
+
const n = a.find((l) => l.var_nam === r);
|
8684
|
+
return n && (s = n.var_text) != null ? s : r;
|
8685
|
+
};
|
8686
|
+
},
|
8671
8687
|
isRetrieving(e) {
|
8672
8688
|
return (t) => {
|
8673
8689
|
var r;
|
@@ -8750,7 +8766,7 @@ const useKgVarStore = () => (store$7 || (store$7 = defineStore("KgVar", {
|
|
8750
8766
|
return (t, r) => {
|
8751
8767
|
var n;
|
8752
8768
|
if (!t || !r)
|
8753
|
-
return KgLogger.
|
8769
|
+
return KgLogger.warn("IKgVarStore.getVarCatalog() | frm_id \u6216 var_nam \u4E3A\u7A7A.", { frm_id: t, var_nam: r }), null;
|
8754
8770
|
const a = e.varCatalogMap.get(t);
|
8755
8771
|
return (n = a == null ? void 0 : a.find((s) => s.var_nam === r)) != null ? n : null;
|
8756
8772
|
};
|
@@ -9129,8 +9145,8 @@ const useKgVarStore = () => (store$7 || (store$7 = defineStore("KgVar", {
|
|
9129
9145
|
}
|
9130
9146
|
this.formIDs = [...this.formIDs, e].sort((t, r) => t.level - r.level), await this.retrieve(e.formID), store_legacy.set("KgVar.formIDs", this.formIDs);
|
9131
9147
|
},
|
9132
|
-
|
9133
|
-
this.formIDs = this.formIDs.filter((t) => t.formID !== e), this.isRetrievingMap.delete(e), this.isRetrievingVarProfileMasterMap.delete(e), this.isCreatingMap.delete(e), this.isCreatingRequestingMap.delete(e), this.isUpdatingMap.delete(e), this.isUpdatingRequestingMap.delete(e), this.isCopyingMap.delete(e), this.isCopyingRequestingMap.delete(e), this.isDeletingMap.delete(e), this.isDeletingRequestingMap.delete(e), this.isOtherRequestingMap.delete(e), this.varCatalogMap.delete(e), this.varLookupMap.delete(e), this.varPossibilityMap.delete(e), this.varVariableConfigMap.delete(e), this.varButtonMap.delete(e), this.varSubmitConfigMap.delete(e), this.varSubmitFieldMap.delete(e), this.varProfileConfigMap.delete(e), this.varProfileMap.delete(e), this.varGridConfigMap.delete(e), this.varGridMap.delete(e), store_legacy.set("KgVar.formIDs", this.formIDs);
|
9148
|
+
dispose(e) {
|
9149
|
+
this.formIDs = this.formIDs.filter((t) => t.formID !== e), this.isRetrievingMap.delete(e), this.isRetrievedMap.delete(e), this.isRetrievingVarProfileMasterMap.delete(e), this.isRetrievingVarGridMasterMap.delete(e), this.isCreatingMap.delete(e), this.isCreatingRequestingMap.delete(e), this.isUpdatingMap.delete(e), this.isUpdatingRequestingMap.delete(e), this.isCopyingMap.delete(e), this.isCopyingRequestingMap.delete(e), this.isDeletingMap.delete(e), this.isDeletingRequestingMap.delete(e), this.isOtherRequestingMap.delete(e), this.varCatalogMap.delete(e), this.varLookupMap.delete(e), this.varPossibilityMap.delete(e), this.varVariableConfigMap.delete(e), this.varVariableInputMap.delete(e), this.varButtonMap.delete(e), this.varButtonConfigMap.delete(e), this.varSubmitConfigMap.delete(e), this.varSubmitFieldMap.delete(e), this.varProfileConfigMap.delete(e), this.varProfileMap.delete(e), this.varGridConfigMap.delete(e), this.varGridMap.delete(e), this.onRetrieveListenersMap.delete(e), store_legacy.set("KgVar.formIDs", this.formIDs);
|
9134
9150
|
},
|
9135
9151
|
async retrieve(e) {
|
9136
9152
|
var t, r, a, n, s, l, o, i, c, u;
|
@@ -9148,16 +9164,16 @@ const useKgVarStore = () => (store$7 || (store$7 = defineStore("KgVar", {
|
|
9148
9164
|
varSubmitConfig: E,
|
9149
9165
|
varSubmitFields: C,
|
9150
9166
|
varProfile: T,
|
9151
|
-
varProfileConfig:
|
9167
|
+
varProfileConfig: M,
|
9152
9168
|
varGrid: k,
|
9153
|
-
varGridConfig:
|
9169
|
+
varGridConfig: V
|
9154
9170
|
} = await GetAll({ params: { frm_id: e } });
|
9155
|
-
this.varCatalogMap.set(e, d != null ? d : []), this.varLookupMap.set(e, m != null ? m : []), this.varPossibilityMap.set(e, p != null ? p : []), this.varVariableConfigMap.set(e, v != null ? v : []), this.varVariableInputMap.set(e, y != null ? y : []), this.varButtonMap.set(e, transformVarButtons(g)), this.varButtonConfigMap.set(e, transformVarButtonConfig(b != null ? b : null)), this.varSubmitConfigMap.set(e, transformVarSubmitConfig(E)), this.varSubmitFieldMap.set(e, transformVarSubmitFields(C)), this.varProfileConfigMap.set(e, transformVarProfileConfig(
|
9171
|
+
this.varCatalogMap.set(e, d != null ? d : []), this.varLookupMap.set(e, m != null ? m : []), this.varPossibilityMap.set(e, p != null ? p : []), this.varVariableConfigMap.set(e, v != null ? v : []), this.varVariableInputMap.set(e, y != null ? y : []), this.varButtonMap.set(e, transformVarButtons(g)), this.varButtonConfigMap.set(e, transformVarButtonConfig(b != null ? b : null)), this.varSubmitConfigMap.set(e, transformVarSubmitConfig(E)), this.varSubmitFieldMap.set(e, transformVarSubmitFields(C)), this.varProfileConfigMap.set(e, transformVarProfileConfig(M != null ? M : null)), this.varProfileMap.set(e, {
|
9156
9172
|
varProfile: T != null ? T : null,
|
9157
|
-
currentVarProfileMasterID: (s = (n = ((t = T == null ? void 0 : T.varProfileMasters) == null ? void 0 : t.find((
|
9158
|
-
}), this.varGridConfigMap.set(e, transformVarGridConfig(
|
9173
|
+
currentVarProfileMasterID: (s = (n = ((t = T == null ? void 0 : T.varProfileMasters) == null ? void 0 : t.find((w) => w.def_flg === 1)) || ((r = T == null ? void 0 : T.varProfileMasters) == null ? void 0 : r.find((w) => w.cust_lvl === KG_CUSTOM_LEVEL.L0)) || ((a = T == null ? void 0 : T.varProfileMasters) == null ? void 0 : a.find(() => !0))) == null ? void 0 : n.id) != null ? s : null
|
9174
|
+
}), this.varGridConfigMap.set(e, transformVarGridConfig(V != null ? V : null)), this.varGridMap.set(e, {
|
9159
9175
|
varGrid: transformVarGridDTO(k),
|
9160
|
-
currentVarGridMasterID: (u = (c = ((l = k == null ? void 0 : k.varGridMasters) == null ? void 0 : l.find((
|
9176
|
+
currentVarGridMasterID: (u = (c = ((l = k == null ? void 0 : k.varGridMasters) == null ? void 0 : l.find((w) => w.def_flg === 1)) || ((o = k == null ? void 0 : k.varGridMasters) == null ? void 0 : o.find((w) => w.cust_lvl === KG_CUSTOM_LEVEL.L0)) || ((i = k == null ? void 0 : k.varGridMasters) == null ? void 0 : i.find(() => !0))) == null ? void 0 : c.id) != null ? u : null
|
9161
9177
|
}), this.isRetrievedMap.set(e, !0), this.emit(e, "retrieve");
|
9162
9178
|
} catch (d) {
|
9163
9179
|
throw d;
|
@@ -9256,7 +9272,7 @@ const useKgVarStore = () => (store$7 || (store$7 = defineStore("KgVar", {
|
|
9256
9272
|
return;
|
9257
9273
|
const o = this.getVarProfileDetail(e, t);
|
9258
9274
|
if (!o) {
|
9259
|
-
KgLogger.error("\
|
9275
|
+
KgLogger.error("KgVarStore.patchVarProfileDetail() | VarProfileDetail \u4E3A\u7A7A.", { frm_id: e, var_nam: t }), n();
|
9260
9276
|
return;
|
9261
9277
|
}
|
9262
9278
|
setTimeout(() => {
|
@@ -9288,22 +9304,22 @@ const useKgVarStore = () => (store$7 || (store$7 = defineStore("KgVar", {
|
|
9288
9304
|
!a || (Object.assign(a, r), this.varPossibilityMap.set(e, this.varPossibilityMap.get(e)));
|
9289
9305
|
},
|
9290
9306
|
patchVarPossibilityCommandParameter(e, t, r) {
|
9291
|
-
|
9292
|
-
|
9293
|
-
|
9294
|
-
|
9295
|
-
|
9296
|
-
|
9297
|
-
|
9298
|
-
|
9299
|
-
|
9300
|
-
|
9301
|
-
l
|
9302
|
-
}
|
9303
|
-
}
|
9304
|
-
|
9305
|
-
|
9306
|
-
);
|
9307
|
+
return !e || !t ? Promise.resolve() : new Promise((a, n) => {
|
9308
|
+
const s = watch(
|
9309
|
+
() => this.getVarPossibility(e, t),
|
9310
|
+
(l) => {
|
9311
|
+
var o;
|
9312
|
+
if (l) {
|
9313
|
+
setTimeout(() => s(), 0);
|
9314
|
+
let i = JSON.parse((o = l.cmd_prm) != null ? o : "{}");
|
9315
|
+
Object.entries(r).forEach(([c, u]) => {
|
9316
|
+
i[c] = u;
|
9317
|
+
}), l.cmd_prm = JSON.stringify(i), this.varPossibilityMap.set(e, this.varPossibilityMap.get(e)), a();
|
9318
|
+
}
|
9319
|
+
},
|
9320
|
+
{ immediate: !0 }
|
9321
|
+
);
|
9322
|
+
});
|
9307
9323
|
},
|
9308
9324
|
dragSortCurrentVarGridDetails(e, t, r) {
|
9309
9325
|
if (!e || !t || !r || t === r)
|
@@ -9362,15 +9378,12 @@ function useKgVar(e, t, r = 0) {
|
|
9362
9378
|
t && getCurrentInstance() && (provide(KG_DI_FORM_ID, c), onMounted(() => {
|
9363
9379
|
u.enter({ formID: c, level: r });
|
9364
9380
|
}), onUnmounted(() => {
|
9365
|
-
u.
|
9381
|
+
u.dispose(c);
|
9366
9382
|
}));
|
9367
|
-
const d = (z) => computed(() => {
|
9368
|
-
var
|
9369
|
-
return (
|
9370
|
-
}),
|
9371
|
-
var z, Z;
|
9372
|
-
return (Z = (z = w.value) == null ? void 0 : z.varProfileDetails) != null ? Z : null;
|
9373
|
-
}), F = computed(() => u.getVarGridConfig(c)), L = computed(() => u.getVarGridMasters(c)), B = computed(() => u.getCurrentVarGridMaster(c)), Y = computed(() => u.getSystemVarGridDetails(c)), Q = computed(() => u.getCurrentVarGridDetails(c));
|
9383
|
+
const d = (z) => computed(() => u.t(c, z)), m = computed(() => u.isRetrieving(c)), v = computed(() => u.isRetrievingVarProfileMaster(c)), y = computed(() => u.isRetrievingVarGridMaster(c)), p = computed(() => u.isCreating(c)), g = computed(() => u.isCreatingRequesting(c)), b = computed(() => u.isUpdating(c)), E = computed(() => u.isUpdatingRequesting(c)), C = computed(() => u.isCopying(c)), T = computed(() => u.isCopyingRequesting(c)), M = computed(() => u.isDeleting(c)), k = computed(() => u.isDeletingRequesting(c)), V = computed(() => u.isOtherRequesting(c)), w = computed(() => u.getVarButtons(c)), I = computed(() => u.getVarButtonSearch(c)), A = computed(() => u.getVarButtonCreate(c)), P = computed(() => u.getVarButtonUpdate(c)), N = computed(() => u.getVarButtonCopy(c)), U = computed(() => u.getVarButtonDelete(c)), D = computed(() => u.getVarProfileMasters(c)), O = computed(() => u.getCurrentVarProfileMaster(c)), R = computed(() => u.getCurrentVarProfileMasterID(c)), G = computed(() => {
|
9384
|
+
var z, ee;
|
9385
|
+
return (ee = (z = O.value) == null ? void 0 : z.varProfileDetails) != null ? ee : null;
|
9386
|
+
}), F = computed(() => u.getVarGridConfig(c)), K = computed(() => u.getVarGridMasters(c)), x = computed(() => u.getCurrentVarGridMaster(c)), W = computed(() => u.getSystemVarGridDetails(c)), X = computed(() => u.getCurrentVarGridDetails(c));
|
9374
9387
|
return {
|
9375
9388
|
formID: c,
|
9376
9389
|
store: u,
|
@@ -9383,24 +9396,24 @@ function useKgVar(e, t, r = 0) {
|
|
9383
9396
|
isUpdatingRequesting: E,
|
9384
9397
|
isCopying: C,
|
9385
9398
|
isCopyingRequesting: T,
|
9386
|
-
isDeleting:
|
9399
|
+
isDeleting: M,
|
9387
9400
|
isDeletingRequesting: k,
|
9388
|
-
isOtherRequesting:
|
9389
|
-
varButtons:
|
9401
|
+
isOtherRequesting: V,
|
9402
|
+
varButtons: w,
|
9390
9403
|
varButtonSearch: I,
|
9391
|
-
varButtonCreate:
|
9404
|
+
varButtonCreate: A,
|
9392
9405
|
varButtonUpdate: P,
|
9393
9406
|
varButtonCopy: N,
|
9394
9407
|
varButtonDelete: U,
|
9395
|
-
varProfileMasters:
|
9396
|
-
currentVarProfileMaster:
|
9397
|
-
currentVarProfileMasterID:
|
9408
|
+
varProfileMasters: D,
|
9409
|
+
currentVarProfileMaster: O,
|
9410
|
+
currentVarProfileMasterID: R,
|
9398
9411
|
currentVarProfileDetails: G,
|
9399
9412
|
varGridConfig: F,
|
9400
|
-
varGridMasters:
|
9401
|
-
currentVarGridMaster:
|
9402
|
-
systemVarGridDetails:
|
9403
|
-
currentVarGridDetails:
|
9413
|
+
varGridMasters: K,
|
9414
|
+
currentVarGridMaster: x,
|
9415
|
+
systemVarGridDetails: W,
|
9416
|
+
currentVarGridDetails: X,
|
9404
9417
|
setIsCreating: s,
|
9405
9418
|
setIsUpdating: l,
|
9406
9419
|
setIsCopying: o,
|
@@ -9473,63 +9486,61 @@ const DI_KG_VAR__KG_SLOTS = Symbol("DI_KG_VAR__KG_SLOTS"), DI_KG_VAR__KG_PROPS =
|
|
9473
9486
|
slots: t,
|
9474
9487
|
emit: r
|
9475
9488
|
}) {
|
9476
|
-
const a = inject(KG_DI_HOST_FORM_ID, ""), n = useKgVar(a), s = useKgForm(n.formID), l = inject(KG_DI_VAR_NAME, ""), o = inject(KG_DI_LOOKUP_ID, ""), i = inject(DI_FORM_MODEL, computed(() => ({})))
|
9477
|
-
|
9478
|
-
|
9479
|
-
|
9480
|
-
|
9481
|
-
|
9482
|
-
var p, g;
|
9483
|
-
return (g = (p = u == null ? void 0 : u.value) == null ? void 0 : p.ret_fld) != null ? g : "";
|
9489
|
+
const a = inject(KG_DI_HOST_FORM_ID, ""), n = useKgVar(a), s = useKgForm(n.formID), l = inject(KG_DI_VAR_NAME, ""), o = inject(KG_DI_LOOKUP_ID, ""), i = inject(DI_FORM_MODEL, computed(() => ({}))), c = useKgVar(o, !0, n.store.getFormLevel(n.formID) + 1), u = useKgTable(c.formID), d = computed(() => n.store.getVarLookup(n.formID, l)), m = computed(() => {
|
9490
|
+
var g;
|
9491
|
+
return ((g = d == null ? void 0 : d.value) == null ? void 0 : g.mult_flg) === 1;
|
9492
|
+
}), v = computed(() => {
|
9493
|
+
var g, b;
|
9494
|
+
return (b = (g = d == null ? void 0 : d.value) == null ? void 0 : g.ret_fld) != null ? b : "";
|
9484
9495
|
});
|
9485
|
-
|
9486
|
-
function
|
9496
|
+
u.onRowDoubleClick(async () => (await p(), !1));
|
9497
|
+
function y() {
|
9487
9498
|
r("update:visible", !1);
|
9488
9499
|
}
|
9489
|
-
async function
|
9490
|
-
var
|
9491
|
-
if (
|
9492
|
-
const
|
9500
|
+
async function p() {
|
9501
|
+
var g, b, E, C, T, M, k;
|
9502
|
+
if (m.value) {
|
9503
|
+
const V = (b = (g = u.selectedRows) == null ? void 0 : g.value) != null ? b : [], w = (E = V.map((A) => A[v.value])) != null ? E : [];
|
9493
9504
|
await s.store.emit(s.formID, "lookupBeforeOk", {
|
9494
9505
|
var_nam: l,
|
9495
9506
|
isMultiple: !0,
|
9496
|
-
values:
|
9497
|
-
rows:
|
9507
|
+
values: w,
|
9508
|
+
rows: V
|
9498
9509
|
}) || (s.store.emit(s.formID, "lookupOk", {
|
9499
9510
|
var_nam: l,
|
9500
9511
|
model: i,
|
9501
9512
|
isMultiple: !0,
|
9502
|
-
values:
|
9503
|
-
rows:
|
9513
|
+
values: w,
|
9514
|
+
rows: V
|
9504
9515
|
}), r("update:visible", !1));
|
9505
9516
|
} else {
|
9506
|
-
const
|
9517
|
+
const V = (M = (T = (C = u.selectedRows) == null ? void 0 : C.value) == null ? void 0 : T[0]) != null ? M : null, w = (k = V == null ? void 0 : V[v.value]) != null ? k : "";
|
9507
9518
|
await s.store.emit(s.formID, "lookupBeforeOk", {
|
9508
9519
|
var_nam: l,
|
9509
9520
|
isMultiple: !1,
|
9510
|
-
value:
|
9511
|
-
row:
|
9521
|
+
value: w,
|
9522
|
+
row: V
|
9512
9523
|
}) || (s.store.emit(s.formID, "lookupOk", {
|
9513
9524
|
var_nam: l,
|
9514
9525
|
model: i,
|
9515
9526
|
isMultiple: !1,
|
9516
|
-
value:
|
9517
|
-
row:
|
9527
|
+
value: w,
|
9528
|
+
row: V
|
9518
9529
|
}), r("update:visible", !1));
|
9519
9530
|
}
|
9520
9531
|
}
|
9521
9532
|
return () => {
|
9522
|
-
var
|
9533
|
+
var g, b;
|
9523
9534
|
return createVNode(KgModal, {
|
9524
9535
|
visible: e.visible,
|
9525
9536
|
title: n.t(l).value,
|
9526
9537
|
destroyOnClose: !0,
|
9527
9538
|
okButtonProps: {
|
9528
|
-
disabled: ((
|
9539
|
+
disabled: ((b = (g = u.selectedRows.value) == null ? void 0 : g.length) != null ? b : 0) === 0
|
9529
9540
|
},
|
9530
9541
|
wrapClassName: "kg-form-item-addon-lookup-modal",
|
9531
|
-
onCancel:
|
9532
|
-
onOk:
|
9542
|
+
onCancel: y,
|
9543
|
+
onOk: p
|
9533
9544
|
}, {
|
9534
9545
|
default: () => [createVNode(KgVar, null, null)]
|
9535
9546
|
});
|
@@ -9548,21 +9559,24 @@ const DI_KG_VAR__KG_SLOTS = Symbol("DI_KG_VAR__KG_SLOTS"), DI_KG_VAR__KG_PROPS =
|
|
9548
9559
|
slots: t,
|
9549
9560
|
emit: r
|
9550
9561
|
}) {
|
9551
|
-
const a = inject(KG_DI_FORM_ID, "");
|
9562
|
+
const a = inject(KG_DI_FORM_ID, ""), n = inject(KG_DI_VAR_NAME, "");
|
9552
9563
|
provide(KG_DI_HOST_FORM_ID, a), provide(KG_DI_LOOKUP_ID, e.kgLookupID);
|
9553
|
-
const
|
9554
|
-
function
|
9555
|
-
|
9564
|
+
const s = useKgForm(a), l = ref(!1);
|
9565
|
+
async function o() {
|
9566
|
+
l.value = !0, await s.store.emit(s.formID, "lookupBeforeOpen", {
|
9567
|
+
var_nam: n,
|
9568
|
+
lookupFormID: e.kgLookupID
|
9569
|
+
});
|
9556
9570
|
}
|
9557
9571
|
return () => createVNode(Fragment, null, [createVNode(Button, {
|
9558
|
-
onClick:
|
9572
|
+
onClick: o,
|
9559
9573
|
class: "kg-form-item-addon-lookup",
|
9560
9574
|
disabled: e.kgDisabled
|
9561
9575
|
}, {
|
9562
9576
|
default: () => [createVNode(SearchOutlined$1, null, null)]
|
9563
|
-
}),
|
9564
|
-
visible:
|
9565
|
-
"onUpdate:visible": (
|
9577
|
+
}), l.value ? createVNode(KgFormItemAddonLookupModal, {
|
9578
|
+
visible: l.value,
|
9579
|
+
"onUpdate:visible": (i) => l.value = i
|
9566
9580
|
}, null) : null]);
|
9567
9581
|
}
|
9568
9582
|
}), getProps$s = () => ({
|
@@ -9663,15 +9677,15 @@ function _useRules(e) {
|
|
9663
9677
|
{
|
9664
9678
|
const E = (y = n.value) == null ? void 0 : y.min;
|
9665
9679
|
isNil(E) || (((p = n.value) == null ? void 0 : p.min_include_flg) === 1 ? o.push({
|
9666
|
-
validator: (T,
|
9680
|
+
validator: (T, M) => M == null || M === "" || typeof M == "string" && M.trim() === "" ? Promise.resolve() : Number(M) < E ? Promise.reject(t.t("kg.KgFormItem.mustGTE", [E])) : Promise.resolve()
|
9667
9681
|
}) : o.push({
|
9668
|
-
validator: (T,
|
9682
|
+
validator: (T, M) => M == null || M === "" || typeof M == "string" && M.trim() === "" ? Promise.resolve() : Number(M) <= E ? Promise.reject(t.t("kg.KgFormItem.mustGT", [E])) : Promise.resolve()
|
9669
9683
|
}));
|
9670
9684
|
const C = (g = n.value) == null ? void 0 : g.max;
|
9671
9685
|
isNil(C) || (((b = n.value) == null ? void 0 : b.max_include_flg) === 1 ? o.push({
|
9672
|
-
validator: (T,
|
9686
|
+
validator: (T, M) => M == null || M === "" || typeof M == "string" && M.trim() === "" ? Promise.resolve() : Number(M) > C ? Promise.reject(t.t("kg.KgFormItem.mustLTE", [C])) : Promise.resolve()
|
9673
9687
|
}) : o.push({
|
9674
|
-
validator: (T,
|
9688
|
+
validator: (T, M) => M == null || M === "" || typeof M == "string" && M.trim() === "" ? Promise.resolve() : Number(M) >= C ? Promise.reject(t.t("kg.KgFormItem.mustLT", [C])) : Promise.resolve()
|
9675
9689
|
}));
|
9676
9690
|
}
|
9677
9691
|
break;
|
@@ -9750,18 +9764,18 @@ function useKgFormItemSelect() {
|
|
9750
9764
|
if (typeof p == "string" && p.startsWith("{") && p.endsWith("}")) {
|
9751
9765
|
let C = p.slice(1, -1), T = "";
|
9752
9766
|
if (C.includes(".")) {
|
9753
|
-
const
|
9754
|
-
C =
|
9767
|
+
const M = C.split(".");
|
9768
|
+
C = M[0], T = M[1];
|
9755
9769
|
}
|
9756
|
-
t.value && C in t.value && (T ? g = (E = (b = t.value[`${C}_obj`]) == null ? void 0 : b[T]) != null ? E : void 0 : g = t.value[C], g || (g = "
|
9770
|
+
t.value && C in t.value && (T ? g = (E = (b = t.value[`${C}_obj`]) == null ? void 0 : b[T]) != null ? E : void 0 : g = t.value[C], g || (g = "__kg__form_item_select__pid"));
|
9757
9771
|
}
|
9758
9772
|
return g;
|
9759
9773
|
}), v;
|
9760
9774
|
});
|
9761
9775
|
async function d() {
|
9762
|
-
var C, T,
|
9776
|
+
var C, T, M, k, V, w, I, A;
|
9763
9777
|
let v = [];
|
9764
|
-
const y = (C = a.value) == null ? void 0 : C.cmd, p = (
|
9778
|
+
const y = (C = a.value) == null ? void 0 : C.cmd, p = (M = (T = a.value) == null ? void 0 : T.cmd_method) != null ? M : "GET", g = (V = (k = a.value) == null ? void 0 : k.val_clm) != null ? V : "", b = (I = (w = a.value) == null ? void 0 : w.lbl_clm) != null ? I : "";
|
9765
9779
|
if (!y || !g || !b) {
|
9766
9780
|
KgLogger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF.", {
|
9767
9781
|
frm_id: r.formID,
|
@@ -9774,7 +9788,7 @@ function useKgFormItemSelect() {
|
|
9774
9788
|
}
|
9775
9789
|
let E = null;
|
9776
9790
|
try {
|
9777
|
-
l.value = !0, E = await ((
|
9791
|
+
l.value = !0, E = await ((A = httpClient()) == null ? void 0 : A.request({
|
9778
9792
|
url: y,
|
9779
9793
|
method: p,
|
9780
9794
|
params: u.value
|
@@ -9814,39 +9828,39 @@ function useKgFormItemSelect() {
|
|
9814
9828
|
const y = (b = (g = a.value) == null ? void 0 : g.val_clm) != null ? b : "", p = (C = (E = a.value) == null ? void 0 : E.val_data_type) != null ? C : "string";
|
9815
9829
|
switch (p) {
|
9816
9830
|
case KG_POSSIBILITY_DATA_TYPE.STRING:
|
9817
|
-
v.forEach((
|
9818
|
-
|
9831
|
+
v.forEach((M) => {
|
9832
|
+
M[y] = String(M[y]);
|
9819
9833
|
});
|
9820
9834
|
break;
|
9821
9835
|
case KG_POSSIBILITY_DATA_TYPE.NUMBER:
|
9822
|
-
v.forEach((
|
9823
|
-
let k = Number(
|
9824
|
-
Number.isNaN(k) && (k =
|
9836
|
+
v.forEach((M) => {
|
9837
|
+
let k = Number(M[y]);
|
9838
|
+
Number.isNaN(k) && (k = M[y], KgLogger.error(`| \u6570\u636E\u6709\u8BEF | \u65E0\u6CD5\u5C06 ${M[y]} \u8F6C\u6362\u4E3A ${p} \u7C7B\u578B`, {
|
9825
9839
|
frm_id: r.formID,
|
9826
9840
|
var_nam: e,
|
9827
9841
|
VarPossibility: a.value
|
9828
|
-
})),
|
9842
|
+
})), M[y] = k;
|
9829
9843
|
});
|
9830
9844
|
break;
|
9831
9845
|
case KG_POSSIBILITY_DATA_TYPE.BOOLEAN:
|
9832
|
-
v.forEach((
|
9846
|
+
v.forEach((M) => {
|
9833
9847
|
let k;
|
9834
|
-
String(
|
9848
|
+
String(M[y]).toLowerCase() === "true" ? k = !0 : String(M[y]).toLowerCase() === "false" ? k = !1 : (k = M[y], KgLogger.error(`| \u6570\u636E\u6709\u8BEF | \u65E0\u6CD5\u5C06 ${M[y]} \u8F6C\u6362\u4E3A ${p} \u7C7B\u578B`, {
|
9835
9849
|
frm_id: r.formID,
|
9836
9850
|
var_nam: e,
|
9837
9851
|
VarPossibility: a.value
|
9838
|
-
})),
|
9852
|
+
})), M[y] = k;
|
9839
9853
|
});
|
9840
9854
|
break;
|
9841
9855
|
}
|
9842
9856
|
switch (n.value) {
|
9843
9857
|
case KG_FORM_ITEM_TYPE.CHECKBOX_GROUP:
|
9844
9858
|
{
|
9845
|
-
const
|
9846
|
-
if ((T =
|
9859
|
+
const M = s;
|
9860
|
+
if ((T = M.value) != null && T.excludeValues)
|
9847
9861
|
return v.filter((k) => {
|
9848
|
-
var
|
9849
|
-
return !((
|
9862
|
+
var V;
|
9863
|
+
return !((V = M.value.excludeValues) != null && V.includes(k[y]));
|
9850
9864
|
});
|
9851
9865
|
}
|
9852
9866
|
break;
|
@@ -9949,8 +9963,8 @@ const KgFormItemCheckboxGroup = defineComponent({
|
|
9949
9963
|
"kg-value": E[i.value]
|
9950
9964
|
}, {
|
9951
9965
|
default: () => {
|
9952
|
-
var
|
9953
|
-
return [E[(k = (
|
9966
|
+
var M, k;
|
9967
|
+
return [E[(k = (M = l.value) == null ? void 0 : M.lbl_clm) != null ? k : ""]];
|
9954
9968
|
}
|
9955
9969
|
})]
|
9956
9970
|
});
|
@@ -10145,7 +10159,9 @@ const KgFormItemRadioGroup = defineComponent({
|
|
10145
10159
|
datas: d,
|
10146
10160
|
retrieveDatas: m
|
10147
10161
|
} = useKgFormItemSelect();
|
10148
|
-
watch(o, () =>
|
10162
|
+
watch(o, () => {
|
10163
|
+
v();
|
10164
|
+
}, {
|
10149
10165
|
immediate: !0
|
10150
10166
|
});
|
10151
10167
|
async function v() {
|
@@ -10207,6 +10223,7 @@ const KgFormItemRadioGroup = defineComponent({
|
|
10207
10223
|
dropdownClassName: e.kgMode === "multiple" ? "kg-form-item-select-dropdown kg-form-item-multi-select-dropdown" : "kg-form-item-select-dropdown",
|
10208
10224
|
class: "kg-form-item-select",
|
10209
10225
|
onChange: y,
|
10226
|
+
"kg-value": e.value,
|
10210
10227
|
"kg-cmd": (g = l.value) == null ? void 0 : g.cmd,
|
10211
10228
|
"kg-val_clm": i.value,
|
10212
10229
|
"kg-lbl_clm": c.value
|
@@ -10284,16 +10301,16 @@ const KgFormItemRadioGroup = defineComponent({
|
|
10284
10301
|
useKg();
|
10285
10302
|
const s = useKgVar(), l = useKgForm(s.formID), o = useKgSearch(s.formID);
|
10286
10303
|
l.onLookupOk(async ({
|
10287
|
-
var_nam:
|
10304
|
+
var_nam: A,
|
10288
10305
|
model: P,
|
10289
10306
|
isMultiple: N,
|
10290
10307
|
value: U,
|
10291
|
-
values:
|
10308
|
+
values: D
|
10292
10309
|
}) => {
|
10293
|
-
var
|
10294
|
-
switch (
|
10310
|
+
var O;
|
10311
|
+
switch (A) {
|
10295
10312
|
case e.kgVarName:
|
10296
|
-
P.value && (N ? P.value[e.kgVarName] =
|
10313
|
+
P.value && (N ? P.value[e.kgVarName] = D : P.value[e.kgVarName] = U), (O = n.value) == null || O.validate([e.kgVarName]);
|
10297
10314
|
break;
|
10298
10315
|
}
|
10299
10316
|
return !1;
|
@@ -10303,96 +10320,96 @@ const KgFormItemRadioGroup = defineComponent({
|
|
10303
10320
|
} = _useRules(e), {
|
10304
10321
|
controlType: v
|
10305
10322
|
} = useKgFormItem(e), y = computed(() => {
|
10306
|
-
var P, N, U,
|
10323
|
+
var P, N, U, D, O;
|
10307
10324
|
if (s.isRetrieving.value)
|
10308
10325
|
return !0;
|
10309
|
-
let
|
10326
|
+
let A = !1;
|
10310
10327
|
if (e.kgDisabled !== void 0)
|
10311
|
-
|
10328
|
+
A = e.kgDisabled;
|
10312
10329
|
else
|
10313
10330
|
switch (e.kgContext) {
|
10314
10331
|
case KG_FORM_CONTEXT.SEARCH:
|
10315
|
-
|
10332
|
+
A = ((P = u.value) == null ? void 0 : P.ena_flg) === 0;
|
10316
10333
|
break;
|
10317
10334
|
case KG_FORM_CONTEXT.SUBMIT:
|
10318
10335
|
switch (!0) {
|
10319
10336
|
case s.isCreating.value:
|
10320
|
-
|
10337
|
+
A = ((N = d.value) == null ? void 0 : N.crt_ena_flg) === 0;
|
10321
10338
|
break;
|
10322
10339
|
case s.isUpdating.value:
|
10323
|
-
|
10340
|
+
A = ((U = d.value) == null ? void 0 : U.upt_ena_flg) === 0;
|
10324
10341
|
break;
|
10325
10342
|
case s.isCopying.value:
|
10326
|
-
|
10343
|
+
A = ((D = d.value) == null ? void 0 : D.cpy_ena_flg) === 0;
|
10327
10344
|
break;
|
10328
10345
|
case s.isDeleting.value:
|
10329
|
-
|
10346
|
+
A = ((O = d.value) == null ? void 0 : O.del_ena_flg) === 0;
|
10330
10347
|
break;
|
10331
10348
|
}
|
10332
10349
|
break;
|
10333
10350
|
}
|
10334
|
-
return
|
10351
|
+
return A;
|
10335
10352
|
}), p = computed(() => {
|
10336
|
-
var P, N, U,
|
10337
|
-
let
|
10353
|
+
var P, N, U, D;
|
10354
|
+
let A = " ";
|
10338
10355
|
if (e.kgPlaceholder)
|
10339
|
-
|
10356
|
+
A = e.kgPlaceholder;
|
10340
10357
|
else
|
10341
10358
|
switch (e.kgContext) {
|
10342
10359
|
case KG_FORM_CONTEXT.SEARCH:
|
10343
|
-
|
10360
|
+
A = s.t((N = (P = u.value) == null ? void 0 : P.placeholder) != null ? N : " ").value;
|
10344
10361
|
break;
|
10345
10362
|
case KG_FORM_CONTEXT.SUBMIT:
|
10346
|
-
|
10363
|
+
A = s.t((D = (U = d.value) == null ? void 0 : U.placeholder) != null ? D : " ").value;
|
10347
10364
|
break;
|
10348
10365
|
}
|
10349
|
-
return
|
10366
|
+
return A;
|
10350
10367
|
}), g = computed(() => {
|
10351
|
-
var P, N, U,
|
10352
|
-
let
|
10368
|
+
var P, N, U, D, O, R, G, F, K, x;
|
10369
|
+
let A = 6;
|
10353
10370
|
if (e.kgSpan !== void 0)
|
10354
|
-
|
10371
|
+
A = e.kgSpan;
|
10355
10372
|
else
|
10356
10373
|
switch (e.kgContext) {
|
10357
10374
|
case KG_FORM_CONTEXT.SEARCH:
|
10358
|
-
|
10375
|
+
A = (N = (P = u.value) == null ? void 0 : P.width) != null ? N : 6;
|
10359
10376
|
break;
|
10360
10377
|
case KG_FORM_CONTEXT.SUBMIT:
|
10361
10378
|
switch (!0) {
|
10362
10379
|
case s.isCreating.value:
|
10363
|
-
|
10380
|
+
A = (D = (U = d.value) == null ? void 0 : U.crt_width) != null ? D : 6;
|
10364
10381
|
break;
|
10365
10382
|
case s.isUpdating.value:
|
10366
|
-
|
10383
|
+
A = (R = (O = d.value) == null ? void 0 : O.upt_width) != null ? R : 6;
|
10367
10384
|
break;
|
10368
10385
|
case s.isCopying.value:
|
10369
|
-
|
10386
|
+
A = (F = (G = d.value) == null ? void 0 : G.cpy_width) != null ? F : 6;
|
10370
10387
|
break;
|
10371
10388
|
case s.isDeleting.value:
|
10372
|
-
|
10389
|
+
A = (x = (K = d.value) == null ? void 0 : K.del_width) != null ? x : 6;
|
10373
10390
|
break;
|
10374
10391
|
}
|
10375
10392
|
}
|
10376
|
-
return Math.min(24, Math.max(1,
|
10393
|
+
return Math.min(24, Math.max(1, A));
|
10377
10394
|
}), b = computed(() => {
|
10378
|
-
var U,
|
10379
|
-
const
|
10380
|
-
if (
|
10395
|
+
var U, D;
|
10396
|
+
const A = get(M.value, "$el.parentElement");
|
10397
|
+
if (A && !((U = A.classList) != null && U.contains("ant-row")))
|
10381
10398
|
throw new Error("<KgForm.Item> \u7684\u7236\u5143\u7D20\u5FC5\u987B\u662F <Row> \u6216\u8005 <a-row>.");
|
10382
10399
|
let P = {};
|
10383
|
-
const N = Math.abs(Number.parseInt((
|
10400
|
+
const N = Math.abs(Number.parseInt((D = get(M.value, "$el.parentElement.style.marginLeft")) != null ? D : "0px"));
|
10384
10401
|
return Number.isNaN(N) || (P = {
|
10385
10402
|
paddingLeft: `${N}px !important`,
|
10386
10403
|
paddingRight: `${N}px !important`
|
10387
10404
|
}), P;
|
10388
10405
|
}), E = computed(() => {
|
10389
|
-
var P, N, U,
|
10390
|
-
let
|
10391
|
-
switch (i.value && (
|
10406
|
+
var P, N, U, D;
|
10407
|
+
let A = "kg-form-item";
|
10408
|
+
switch (i.value && (A += " kg-form-item-lookup"), e.kgContext) {
|
10392
10409
|
case KG_FORM_CONTEXT.SEARCH:
|
10393
10410
|
switch (!0) {
|
10394
10411
|
case ((P = u.value) == null ? void 0 : P.vis_flg) === 0:
|
10395
|
-
|
10412
|
+
A += " kg-form-item--invisible";
|
10396
10413
|
break;
|
10397
10414
|
}
|
10398
10415
|
break;
|
@@ -10400,16 +10417,16 @@ const KgFormItemRadioGroup = defineComponent({
|
|
10400
10417
|
switch (!0) {
|
10401
10418
|
case (s.isCreating.value && ((N = d.value) == null ? void 0 : N.crt_vis_flg) === 0):
|
10402
10419
|
case (s.isUpdating.value && ((U = d.value) == null ? void 0 : U.upt_vis_flg) === 0):
|
10403
|
-
case (s.isCopying.value && ((
|
10404
|
-
|
10420
|
+
case (s.isCopying.value && ((D = d.value) == null ? void 0 : D.cpy_vis_flg) === 0):
|
10421
|
+
A += " kg-form-item--invisible";
|
10405
10422
|
break;
|
10406
10423
|
}
|
10407
10424
|
break;
|
10408
10425
|
}
|
10409
|
-
return
|
10426
|
+
return A;
|
10410
10427
|
}), C = computed(() => {
|
10411
10428
|
var P;
|
10412
|
-
const
|
10429
|
+
const A = {
|
10413
10430
|
...e,
|
10414
10431
|
value: (P = a.value) == null ? void 0 : P[e.kgVarName],
|
10415
10432
|
"onUpdate:value": (N) => {
|
@@ -10425,34 +10442,34 @@ const KgFormItemRadioGroup = defineComponent({
|
|
10425
10442
|
case KG_FORM_ITEM_TYPE.SELECT:
|
10426
10443
|
break;
|
10427
10444
|
case KG_FORM_ITEM_TYPE.SELECT_MULTIPLE:
|
10428
|
-
|
10445
|
+
A.kgMode = "multiple";
|
10429
10446
|
break;
|
10430
10447
|
case KG_FORM_ITEM_TYPE.SWITCH:
|
10431
10448
|
break;
|
10432
10449
|
case KG_FORM_ITEM_TYPE.DATE_DATE:
|
10433
|
-
|
10450
|
+
A.kgShowTime = !1;
|
10434
10451
|
break;
|
10435
10452
|
case KG_FORM_ITEM_TYPE.DATE_DATE_RANGE:
|
10436
|
-
|
10453
|
+
A.kgShowTime = !1;
|
10437
10454
|
break;
|
10438
10455
|
case KG_FORM_ITEM_TYPE.DATE_TIME:
|
10439
|
-
|
10456
|
+
A.kgPicker = "time";
|
10440
10457
|
break;
|
10441
10458
|
case KG_FORM_ITEM_TYPE.DATE_TIME_RANGE:
|
10442
|
-
|
10459
|
+
A.kgPicker = "time";
|
10443
10460
|
break;
|
10444
10461
|
case KG_FORM_ITEM_TYPE.DATE_DATETIME:
|
10445
|
-
|
10462
|
+
A.kgShowTime = e.kgShowTime === void 0 ? !0 : e.kgShowTime;
|
10446
10463
|
break;
|
10447
10464
|
case KG_FORM_ITEM_TYPE.DATE_DATETIME_RANGE:
|
10448
|
-
|
10465
|
+
A.kgShowTime = e.kgShowTime === void 0 ? !0 : e.kgShowTime;
|
10449
10466
|
break;
|
10450
10467
|
}
|
10451
|
-
return
|
10452
|
-
}), T = computed(() => encodeURIComponent(`${e.kgContext}~${s.formID}~${e.kgVarName}`)),
|
10468
|
+
return A;
|
10469
|
+
}), T = computed(() => encodeURIComponent(`${e.kgContext}~${s.formID}~${e.kgVarName}`)), M = ref(null);
|
10453
10470
|
function k() {
|
10454
10471
|
if (t.control) {
|
10455
|
-
const
|
10472
|
+
const A = {
|
10456
10473
|
frm_id: s.formID,
|
10457
10474
|
varName: e.kgVarName,
|
10458
10475
|
props: C,
|
@@ -10461,7 +10478,7 @@ const KgFormItemRadioGroup = defineComponent({
|
|
10461
10478
|
varProfileDetail: u,
|
10462
10479
|
varSubmitField: d
|
10463
10480
|
};
|
10464
|
-
return t.control(
|
10481
|
+
return t.control(A);
|
10465
10482
|
}
|
10466
10483
|
switch (v.value) {
|
10467
10484
|
case KG_FORM_ITEM_TYPE.INPUT_NUMBER:
|
@@ -10496,9 +10513,9 @@ const KgFormItemRadioGroup = defineComponent({
|
|
10496
10513
|
return createVNode(KgFormItemInput, C.value, null);
|
10497
10514
|
}
|
10498
10515
|
}
|
10499
|
-
function
|
10500
|
-
var
|
10501
|
-
return ((
|
10516
|
+
function V() {
|
10517
|
+
var A;
|
10518
|
+
return ((A = s.currentVarProfileMaster.value) == null ? void 0 : A.dyn_flg) !== 1 ? null : createVNode(Form.ItemRest, null, {
|
10502
10519
|
default: () => {
|
10503
10520
|
var P;
|
10504
10521
|
return [createVNode(Select, {
|
@@ -10523,14 +10540,14 @@ const KgFormItemRadioGroup = defineComponent({
|
|
10523
10540
|
}
|
10524
10541
|
});
|
10525
10542
|
}
|
10526
|
-
function
|
10543
|
+
function w() {
|
10527
10544
|
return e.kgShowLabel ? createVNode("span", {
|
10528
10545
|
title: s.t(e.kgVarName).value
|
10529
10546
|
}, [s.t(e.kgVarName).value]) : null;
|
10530
10547
|
}
|
10531
10548
|
function I() {
|
10532
|
-
var
|
10533
|
-
return !i.value || !((
|
10549
|
+
var A;
|
10550
|
+
return !i.value || !((A = i.value) != null && A.lkp_id) ? null : createVNode(Form.ItemRest, null, {
|
10534
10551
|
default: () => [createVNode(KgFormItemAddonLookup, {
|
10535
10552
|
kgDisabled: y.value,
|
10536
10553
|
kgLookupID: i.value.lkp_id
|
@@ -10538,15 +10555,15 @@ const KgFormItemRadioGroup = defineComponent({
|
|
10538
10555
|
});
|
10539
10556
|
}
|
10540
10557
|
return () => {
|
10541
|
-
var
|
10558
|
+
var A, P;
|
10542
10559
|
return s.isRetrieving.value ? null : createVNode(Col, {
|
10543
|
-
ref:
|
10560
|
+
ref: M,
|
10544
10561
|
span: g.value,
|
10545
10562
|
class: E.value,
|
10546
10563
|
style: b.value,
|
10547
10564
|
"kg-frm_id": s.formID,
|
10548
10565
|
"kg-var_nam": e.kgVarName,
|
10549
|
-
"kg-lkp_id": (
|
10566
|
+
"kg-lkp_id": (A = i.value) == null ? void 0 : A.lkp_id,
|
10550
10567
|
"kg-ret_fld": (P = i.value) == null ? void 0 : P.ret_fld
|
10551
10568
|
}, {
|
10552
10569
|
default: () => [createVNode(Form.Item, {
|
@@ -10555,8 +10572,8 @@ const KgFormItemRadioGroup = defineComponent({
|
|
10555
10572
|
validateFirst: !0,
|
10556
10573
|
htmlFor: T.value
|
10557
10574
|
}, {
|
10558
|
-
default: () => createVNode(Fragment, null, [
|
10559
|
-
label: () =>
|
10575
|
+
default: () => createVNode(Fragment, null, [V(), k(), I()]),
|
10576
|
+
label: () => w()
|
10560
10577
|
})]
|
10561
10578
|
});
|
10562
10579
|
};
|
@@ -10594,8 +10611,9 @@ let store$6 = null;
|
|
10594
10611
|
const useKgFormStore = () => (store$6 || (store$6 = defineStore("KgForm", {
|
10595
10612
|
state: () => ({
|
10596
10613
|
selectChangeListenersMap: /* @__PURE__ */ new Map(),
|
10597
|
-
|
10598
|
-
lookupBeforeOkListenersMap: /* @__PURE__ */ new Map()
|
10614
|
+
lookupBeforeOpenListenersMap: /* @__PURE__ */ new Map(),
|
10615
|
+
lookupBeforeOkListenersMap: /* @__PURE__ */ new Map(),
|
10616
|
+
lookupOkListenersMap: /* @__PURE__ */ new Map()
|
10599
10617
|
}),
|
10600
10618
|
getters: {},
|
10601
10619
|
actions: {
|
@@ -10607,6 +10625,12 @@ const useKgFormStore = () => (store$6 || (store$6 = defineStore("KgForm", {
|
|
10607
10625
|
this.selectChangeListenersMap.set(e, [...a != null ? a : [], r]);
|
10608
10626
|
}
|
10609
10627
|
break;
|
10628
|
+
case "lookupBeforeOpen":
|
10629
|
+
{
|
10630
|
+
const a = this.lookupBeforeOpenListenersMap.get(e);
|
10631
|
+
this.lookupBeforeOpenListenersMap.set(e, [...a != null ? a : [], r]);
|
10632
|
+
}
|
10633
|
+
break;
|
10610
10634
|
case "lookupBeforeOk":
|
10611
10635
|
{
|
10612
10636
|
const a = this.lookupBeforeOkListenersMap.get(e);
|
@@ -10630,6 +10654,13 @@ const useKgFormStore = () => (store$6 || (store$6 = defineStore("KgForm", {
|
|
10630
10654
|
} else
|
10631
10655
|
this.selectChangeListenersMap.set(e, []);
|
10632
10656
|
break;
|
10657
|
+
case "lookupBeforeOpen":
|
10658
|
+
if (r) {
|
10659
|
+
const a = this.lookupBeforeOpenListenersMap.get(e);
|
10660
|
+
this.lookupBeforeOpenListenersMap.set(e, without$1(a, r));
|
10661
|
+
} else
|
10662
|
+
this.lookupBeforeOpenListenersMap.set(e, []);
|
10663
|
+
break;
|
10633
10664
|
case "lookupBeforeOk":
|
10634
10665
|
if (r) {
|
10635
10666
|
const a = this.lookupBeforeOkListenersMap.get(e);
|
@@ -10652,6 +10683,9 @@ const useKgFormStore = () => (store$6 || (store$6 = defineStore("KgForm", {
|
|
10652
10683
|
case "selectChange":
|
10653
10684
|
a = this.selectChangeListenersMap.get(e);
|
10654
10685
|
break;
|
10686
|
+
case "lookupBeforeOpen":
|
10687
|
+
a = this.lookupBeforeOpenListenersMap.get(e);
|
10688
|
+
break;
|
10655
10689
|
case "lookupBeforeOk":
|
10656
10690
|
a = this.lookupBeforeOkListenersMap.get(e);
|
10657
10691
|
break;
|
@@ -10677,6 +10711,7 @@ function useKgForm(e) {
|
|
10677
10711
|
formID: t.formID,
|
10678
10712
|
store: r,
|
10679
10713
|
onSelectChange: onEventFactory(t.formID, r, "selectChange"),
|
10714
|
+
onLookupBeforeOpen: onEventFactory(t.formID, r, "lookupBeforeOpen"),
|
10680
10715
|
onLookupBeforeOk: onEventFactory(t.formID, r, "lookupBeforeOk"),
|
10681
10716
|
onLookupOk: onEventFactory(t.formID, r, "lookupOk")
|
10682
10717
|
};
|
@@ -10685,6 +10720,7 @@ KgForm.Item = KgFormItem;
|
|
10685
10720
|
let store$5 = null;
|
10686
10721
|
const useKgSubmitStore = () => (store$5 || (store$5 = defineStore("KgSubmit", {
|
10687
10722
|
state: () => ({
|
10723
|
+
beforeOpenListenersMap: /* @__PURE__ */ new Map(),
|
10688
10724
|
openListenersMap: /* @__PURE__ */ new Map(),
|
10689
10725
|
beforeOkListenersMap: /* @__PURE__ */ new Map(),
|
10690
10726
|
afterValidateListenersMap: /* @__PURE__ */ new Map(),
|
@@ -10731,10 +10767,16 @@ const useKgSubmitStore = () => (store$5 || (store$5 = defineStore("KgSubmit", {
|
|
10731
10767
|
dispose(e) {
|
10732
10768
|
if (!e)
|
10733
10769
|
return KgLogger.error("formID \u4E3A\u7A7A."), null;
|
10734
|
-
this.openListenersMap.delete(e), this.beforeOkListenersMap.delete(e), this.afterValidateListenersMap.delete(e), this.beforeRequestListenersMap.delete(e), this.okListenersMap.delete(e), this.errorListenersMap.delete(e), this.closeListenersMap.delete(e), this.isLoadingMap.delete(e), this.modelMap.delete(e), this.formRefMap.delete(e), this.rulesMap.delete(e);
|
10770
|
+
this.beforeOpenListenersMap.delete(e), this.openListenersMap.delete(e), this.beforeOkListenersMap.delete(e), this.afterValidateListenersMap.delete(e), this.beforeRequestListenersMap.delete(e), this.okListenersMap.delete(e), this.errorListenersMap.delete(e), this.closeListenersMap.delete(e), this.isLoadingMap.delete(e), this.modelMap.delete(e), this.formRefMap.delete(e), this.rulesMap.delete(e);
|
10735
10771
|
},
|
10736
10772
|
addEventListener(e, t, r) {
|
10737
10773
|
switch (t) {
|
10774
|
+
case "beforeOpen":
|
10775
|
+
{
|
10776
|
+
const a = this.beforeOpenListenersMap.get(e);
|
10777
|
+
this.beforeOpenListenersMap.set(e, [...a != null ? a : [], r]);
|
10778
|
+
}
|
10779
|
+
break;
|
10738
10780
|
case "open":
|
10739
10781
|
{
|
10740
10782
|
const a = this.openListenersMap.get(e);
|
@@ -10781,6 +10823,13 @@ const useKgSubmitStore = () => (store$5 || (store$5 = defineStore("KgSubmit", {
|
|
10781
10823
|
},
|
10782
10824
|
removeEventListener(e, t, r) {
|
10783
10825
|
switch (t) {
|
10826
|
+
case "beforeOpen":
|
10827
|
+
if (r) {
|
10828
|
+
const a = this.beforeOpenListenersMap.get(e);
|
10829
|
+
this.beforeOpenListenersMap.set(e, without$1(a, r));
|
10830
|
+
} else
|
10831
|
+
this.beforeOpenListenersMap.set(e, []);
|
10832
|
+
break;
|
10784
10833
|
case "open":
|
10785
10834
|
if (r) {
|
10786
10835
|
const a = this.openListenersMap.get(e);
|
@@ -10835,6 +10884,9 @@ const useKgSubmitStore = () => (store$5 || (store$5 = defineStore("KgSubmit", {
|
|
10835
10884
|
emit(e, t, r) {
|
10836
10885
|
let a, n = Promise.resolve(!1);
|
10837
10886
|
switch (t) {
|
10887
|
+
case "beforeOpen":
|
10888
|
+
a = this.beforeOpenListenersMap.get(e);
|
10889
|
+
break;
|
10838
10890
|
case "open":
|
10839
10891
|
a = this.openListenersMap.get(e);
|
10840
10892
|
break;
|
@@ -10924,6 +10976,7 @@ function useKgSubmit(e) {
|
|
10924
10976
|
formRef: l,
|
10925
10977
|
rules: o,
|
10926
10978
|
displayType: n,
|
10979
|
+
onBeforeOpen: onEventFactory(t.formID, r, "beforeOpen"),
|
10927
10980
|
onOpen: onEventFactory(t.formID, r, "open"),
|
10928
10981
|
onBeforeOk: onEventFactory(t.formID, r, "beforeOk"),
|
10929
10982
|
onAfterValidate: onEventFactory(t.formID, r, "afterValidate"),
|
@@ -10957,8 +11010,8 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
|
|
10957
11010
|
}) => {
|
10958
11011
|
const u = s.store.getVarSubmitConfig(s.formID);
|
10959
11012
|
return o = watch(c, (d) => {
|
10960
|
-
var m, v, y, p, g, b, E, C, T,
|
10961
|
-
d && (d.id = (m = u == null ? void 0 : u.id) != null ? m : null, d.frm_id = s.formID, d.resizable_flg = (v = u == null ? void 0 : u.resizable_flg) != null ? v : 1, d.fullscreen_flg = (y = u == null ? void 0 : u.fullscreen_flg) != null ? y : 1, d.dft_fullscreen_flg = (p = u == null ? void 0 : u.dft_fullscreen_flg) != null ? p : 0, d.responsive_flg = (g = u == null ? void 0 : u.responsive_flg) != null ? g : 1, d.max_width = (b = u == null ? void 0 : u.max_width) != null ? b : DEFAULT_MAX_WIDTH, d.min_width = (E = u == null ? void 0 : u.min_width) != null ? E : DEFAULT_MIN_WIDTH, d.dft_width = (C = u == null ? void 0 : u.dft_width) != null ? C : DEFAULT_WIDTH, d.layout = (T = u == null ? void 0 : u.layout) != null ? T : KG_VAR_SUBMIT__LAYOUT.VERTICAL, d.label_col = (
|
11013
|
+
var m, v, y, p, g, b, E, C, T, M, k, V;
|
11014
|
+
d && (d.id = (m = u == null ? void 0 : u.id) != null ? m : null, d.frm_id = s.formID, d.resizable_flg = (v = u == null ? void 0 : u.resizable_flg) != null ? v : 1, d.fullscreen_flg = (y = u == null ? void 0 : u.fullscreen_flg) != null ? y : 1, d.dft_fullscreen_flg = (p = u == null ? void 0 : u.dft_fullscreen_flg) != null ? p : 0, d.responsive_flg = (g = u == null ? void 0 : u.responsive_flg) != null ? g : 1, d.max_width = (b = u == null ? void 0 : u.max_width) != null ? b : DEFAULT_MAX_WIDTH, d.min_width = (E = u == null ? void 0 : u.min_width) != null ? E : DEFAULT_MIN_WIDTH, d.dft_width = (C = u == null ? void 0 : u.dft_width) != null ? C : DEFAULT_WIDTH, d.layout = (T = u == null ? void 0 : u.layout) != null ? T : KG_VAR_SUBMIT__LAYOUT.VERTICAL, d.label_col = (M = u == null ? void 0 : u.label_col) != null ? M : DEFAULT_LABEL_COL_FOR_SPAN, d.label_col_unit = (k = u == null ? void 0 : u.label_col_unit) != null ? k : KG_WIDTH_UNIT.SPAN, d.display_type = (V = u == null ? void 0 : u.display_type) != null ? V : KG_VAR_SUBMIT__DISPLAY_TYPE.DRAWER);
|
10962
11015
|
}, {
|
10963
11016
|
immediate: !0
|
10964
11017
|
}), KgUtil.hideLoading(), !1;
|
@@ -11061,7 +11114,7 @@ function _useFormModel$1() {
|
|
11061
11114
|
}
|
11062
11115
|
const d = r.selectedRow.value;
|
11063
11116
|
u.forEach((m) => {
|
11064
|
-
var y, p, g, b, E, C, T,
|
11117
|
+
var y, p, g, b, E, C, T, M;
|
11065
11118
|
const v = (y = m.var_nam) != null ? y : "";
|
11066
11119
|
switch (c.value[v] = void 0, !0) {
|
11067
11120
|
case t.isCreating.value:
|
@@ -11074,7 +11127,7 @@ function _useFormModel$1() {
|
|
11074
11127
|
c.value.id = d == null ? void 0 : d.id, c.value[v] = KgVarUtil.transformFormItemValue(t.formID, v, e, (C = (E = m.cpy_dft_val) != null ? E : d == null ? void 0 : d[v]) != null ? C : void 0, "CP");
|
11075
11128
|
break;
|
11076
11129
|
case t.isDeleting.value:
|
11077
|
-
c.value.id = d == null ? void 0 : d.id, c.value[v] = KgVarUtil.transformFormItemValue(t.formID, v, e, (
|
11130
|
+
c.value.id = d == null ? void 0 : d.id, c.value[v] = KgVarUtil.transformFormItemValue(t.formID, v, e, (M = (T = m.del_dft_val) != null ? T : d == null ? void 0 : d[v]) != null ? M : void 0, "D");
|
11078
11131
|
break;
|
11079
11132
|
}
|
11080
11133
|
}), a.store.setModel(t.formID, c.value);
|
@@ -11222,67 +11275,67 @@ const getProps$p = () => ({
|
|
11222
11275
|
const r = inject("$dayjs", dayjs), a = inject(DI_KG_VAR__KG_SLOTS, null);
|
11223
11276
|
inject(DI_KG_VAR__KG_PROPS, null);
|
11224
11277
|
const n = useKg(), s = useKgVar(), l = useKgButton(), o = useKgTable(), i = useKgSubmit(), c = useKgSearch();
|
11225
|
-
l.onSubmitSave(async () => (await
|
11226
|
-
const u = computed(() => s.isDeleting.value && T.value.length === 0 &&
|
11227
|
-
var $,
|
11278
|
+
l.onSubmitSave(async () => (await se(), !1)), l.onSubmitCancel(async () => (await ie(), !1)), _useFormModel$1();
|
11279
|
+
const u = computed(() => s.isDeleting.value && T.value.length === 0 && M.value.length === 0), d = computed(() => i.store.isLoading(s.formID)), m = computed(() => s.store.getVarSubmitConfig(s.formID)), v = computed(() => s.store.getVarSubmitFieldsForCreateKey(s.formID)), y = computed(() => s.store.getVarSubmitFieldsForCreateNotKey(s.formID)), p = computed(() => s.store.getVarSubmitFieldsForUpdateKey(s.formID)), g = computed(() => s.store.getVarSubmitFieldsForUpdateNotKey(s.formID)), b = computed(() => s.store.getVarSubmitFieldsForCopyKey(s.formID)), E = computed(() => s.store.getVarSubmitFieldsForCopyNotKey(s.formID)), C = computed(() => s.store.getVarSubmitFieldsForDelete(s.formID)), T = computed(() => {
|
11280
|
+
var $, B, Y;
|
11228
11281
|
switch (!0) {
|
11229
11282
|
case s.isCreating.value:
|
11230
11283
|
return ($ = v.value) != null ? $ : [];
|
11231
11284
|
case s.isUpdating.value:
|
11232
|
-
return (
|
11285
|
+
return (B = p.value) != null ? B : [];
|
11233
11286
|
case s.isCopying.value:
|
11234
|
-
return (
|
11287
|
+
return (Y = b.value) != null ? Y : [];
|
11235
11288
|
case s.isDeleting.value:
|
11236
11289
|
return [];
|
11237
11290
|
}
|
11238
11291
|
return [];
|
11239
|
-
}),
|
11240
|
-
var $,
|
11292
|
+
}), M = computed(() => {
|
11293
|
+
var $, B, Y, J;
|
11241
11294
|
switch (!0) {
|
11242
11295
|
case s.isCreating.value:
|
11243
11296
|
return ($ = y.value) != null ? $ : [];
|
11244
11297
|
case s.isUpdating.value:
|
11245
|
-
return (
|
11298
|
+
return (B = g.value) != null ? B : [];
|
11246
11299
|
case s.isCopying.value:
|
11247
|
-
return (
|
11300
|
+
return (Y = E.value) != null ? Y : [];
|
11248
11301
|
case s.isDeleting.value:
|
11249
11302
|
return (J = C.value) != null ? J : [];
|
11250
11303
|
}
|
11251
11304
|
return [];
|
11252
|
-
}), k = computed(() => !!s.store.isCreatingRequesting(s.formID) || !!s.store.isUpdatingRequesting(s.formID) || !!s.store.isCopyingRequesting(s.formID) || !!s.store.isDeletingRequesting(s.formID)),
|
11305
|
+
}), k = computed(() => !!s.store.isCreatingRequesting(s.formID) || !!s.store.isUpdatingRequesting(s.formID) || !!s.store.isCopyingRequesting(s.formID) || !!s.store.isDeletingRequesting(s.formID)), V = computed(() => k.value || d.value), w = computed(() => d.value), I = ref({
|
11253
11306
|
kgWidth: 0
|
11254
|
-
}),
|
11307
|
+
}), A = computed(() => {
|
11255
11308
|
var $;
|
11256
11309
|
return !!(u.value || F.isFullscreen || (($ = m.value) == null ? void 0 : $.resizable_flg) === 0);
|
11257
11310
|
}), P = computed(() => {
|
11258
|
-
var $,
|
11259
|
-
return u.value ? 398 : (
|
11311
|
+
var $, B;
|
11312
|
+
return u.value ? 398 : (B = ($ = m.value) == null ? void 0 : $.min_width) != null ? B : DEFAULT_MIN_WIDTH;
|
11260
11313
|
}), N = computed(() => {
|
11261
|
-
var $,
|
11262
|
-
return u.value ? 398 : (
|
11263
|
-
}), U = computed(() => u.value ? 398 : I.value.kgWidth),
|
11264
|
-
_useResizeObserver$1(
|
11265
|
-
const
|
11314
|
+
var $, B;
|
11315
|
+
return u.value ? 398 : (B = ($ = m.value) == null ? void 0 : $.max_width) != null ? B : DEFAULT_MAX_WIDTH;
|
11316
|
+
}), U = computed(() => u.value ? 398 : I.value.kgWidth), D = ref(null);
|
11317
|
+
_useResizeObserver$1(D);
|
11318
|
+
const O = _useTitle(), R = computed(() => u.value ? 400 : I.value.kgWidth && I.value.kgWidth > 0 ? "auto" : 0), G = computed(() => R.value === 0 ? !1 : !!(s.isCreating.value || s.isUpdating.value || s.isCopying.value || s.isDeleting.value)), F = reactive({
|
11266
11319
|
isFullscreen: !1
|
11267
11320
|
}), {
|
11268
|
-
getClass:
|
11321
|
+
getClass: K
|
11269
11322
|
} = _useClass(e, F), {
|
11270
|
-
getLayout:
|
11323
|
+
getLayout: x
|
11271
11324
|
} = _useLayout(), {
|
11272
|
-
getDefaultWidth:
|
11273
|
-
} = _useDefaultWidth(),
|
11274
|
-
var $,
|
11275
|
-
switch (
|
11325
|
+
getDefaultWidth: W
|
11326
|
+
} = _useDefaultWidth(), X = computed(() => {
|
11327
|
+
var $, B, Y;
|
11328
|
+
switch (x.value) {
|
11276
11329
|
case "horizontal":
|
11277
11330
|
switch (($ = m.value) == null ? void 0 : $.label_col_unit) {
|
11278
11331
|
case KG_WIDTH_UNIT.SPAN:
|
11279
11332
|
return {
|
11280
|
-
span: (
|
11333
|
+
span: (B = m.value) == null ? void 0 : B.label_col
|
11281
11334
|
};
|
11282
11335
|
default:
|
11283
11336
|
return {
|
11284
11337
|
style: {
|
11285
|
-
width: `${(
|
11338
|
+
width: `${(Y = m.value) == null ? void 0 : Y.label_col}px`
|
11286
11339
|
}
|
11287
11340
|
};
|
11288
11341
|
}
|
@@ -11290,13 +11343,13 @@ const getProps$p = () => ({
|
|
11290
11343
|
return;
|
11291
11344
|
}
|
11292
11345
|
}), z = computed(() => {
|
11293
|
-
var $,
|
11294
|
-
switch (
|
11346
|
+
var $, B;
|
11347
|
+
switch (x.value) {
|
11295
11348
|
case "horizontal":
|
11296
11349
|
switch (($ = m.value) == null ? void 0 : $.label_col_unit) {
|
11297
11350
|
case KG_WIDTH_UNIT.SPAN:
|
11298
11351
|
return {
|
11299
|
-
span: 24 - ((
|
11352
|
+
span: 24 - ((B = m.value) == null ? void 0 : B.label_col)
|
11300
11353
|
};
|
11301
11354
|
default:
|
11302
11355
|
return;
|
@@ -11305,35 +11358,44 @@ const getProps$p = () => ({
|
|
11305
11358
|
return;
|
11306
11359
|
}
|
11307
11360
|
});
|
11308
|
-
watch(G, ($,
|
11309
|
-
$ === !0 &&
|
11361
|
+
watch(G, ($, B) => {
|
11362
|
+
$ === !0 && ee(), B === !0 && $ === !1 && re();
|
11310
11363
|
}, {
|
11311
11364
|
immediate: !0
|
11312
|
-
}), watch(
|
11365
|
+
}), watch(W, ($) => {
|
11313
11366
|
$ && (I.value.kgWidth = $);
|
11314
11367
|
}, {
|
11315
11368
|
immediate: !0
|
11316
11369
|
});
|
11317
|
-
function Z() {
|
11318
|
-
var x;
|
11319
|
-
const $ = watch(i.model, (W) => {
|
11320
|
-
W && Object.keys(W).length > 0 && (setTimeout(() => $()), i.store.emit(s.formID, "open", {
|
11321
|
-
isCreating: s.isCreating.value,
|
11322
|
-
isUpdating: s.isUpdating.value,
|
11323
|
-
isCopying: s.isCopying.value,
|
11324
|
-
isDeleting: s.isDeleting.value,
|
11325
|
-
row: o.selectedRow.value,
|
11326
|
-
model: i.model
|
11327
|
-
}));
|
11328
|
-
}, {
|
11329
|
-
immediate: !0
|
11330
|
-
});
|
11331
|
-
((x = m.value) == null ? void 0 : x.dft_fullscreen_flg) === 1 && !u.value && (F.isFullscreen = !0);
|
11332
|
-
}
|
11333
11370
|
async function ee() {
|
11334
|
-
|
11371
|
+
if (!await i.store.emit(s.formID, "beforeOpen", {
|
11372
|
+
isCreating: s.isCreating.value,
|
11373
|
+
isUpdating: s.isUpdating.value,
|
11374
|
+
isCopying: s.isCopying.value,
|
11375
|
+
isDeleting: s.isDeleting.value,
|
11376
|
+
row: o.selectedRow.value
|
11377
|
+
}))
|
11378
|
+
return new Promise((B, Y) => {
|
11379
|
+
var Q;
|
11380
|
+
const J = watch(i.model, async (Z) => {
|
11381
|
+
Z && Object.keys(Z).length > 0 && (setTimeout(() => J()), await i.store.emit(s.formID, "open", {
|
11382
|
+
isCreating: s.isCreating.value,
|
11383
|
+
isUpdating: s.isUpdating.value,
|
11384
|
+
isCopying: s.isCopying.value,
|
11385
|
+
isDeleting: s.isDeleting.value,
|
11386
|
+
row: o.selectedRow.value,
|
11387
|
+
model: i.model
|
11388
|
+
}), B());
|
11389
|
+
}, {
|
11390
|
+
immediate: !0
|
11391
|
+
});
|
11392
|
+
((Q = m.value) == null ? void 0 : Q.dft_fullscreen_flg) === 1 && !u.value && (F.isFullscreen = !0);
|
11393
|
+
});
|
11394
|
+
}
|
11395
|
+
async function re() {
|
11396
|
+
I.value.kgWidth = W.value, F.isFullscreen = !1, await i.store.emit(s.formID, "close", null);
|
11335
11397
|
}
|
11336
|
-
function
|
11398
|
+
function ie() {
|
11337
11399
|
switch (!0) {
|
11338
11400
|
case s.isCreating.value:
|
11339
11401
|
s.store.setIsCreating(s.formID, !1);
|
@@ -11349,8 +11411,8 @@ const getProps$p = () => ({
|
|
11349
11411
|
break;
|
11350
11412
|
}
|
11351
11413
|
}
|
11352
|
-
async function
|
11353
|
-
var $,
|
11414
|
+
async function se() {
|
11415
|
+
var $, B;
|
11354
11416
|
try {
|
11355
11417
|
if (await i.store.emit(s.formID, "beforeOk", {
|
11356
11418
|
isCreating: s.isCreating.value,
|
@@ -11364,10 +11426,10 @@ const getProps$p = () => ({
|
|
11364
11426
|
return;
|
11365
11427
|
try {
|
11366
11428
|
await (($ = i.formRef.value) == null ? void 0 : $.validate());
|
11367
|
-
} catch (
|
11368
|
-
KgUtil.throwIfNotFormError(
|
11429
|
+
} catch (Q) {
|
11430
|
+
KgUtil.throwIfNotFormError(Q);
|
11369
11431
|
}
|
11370
|
-
if (await ((
|
11432
|
+
if (await ((B = i.formRef.value) == null ? void 0 : B.validate()), await i.store.emit(s.formID, "afterValidate", {
|
11371
11433
|
isCreating: s.isCreating.value,
|
11372
11434
|
isUpdating: s.isUpdating.value,
|
11373
11435
|
isCopying: s.isCopying.value,
|
@@ -11391,13 +11453,13 @@ const getProps$p = () => ({
|
|
11391
11453
|
await le();
|
11392
11454
|
break;
|
11393
11455
|
}
|
11394
|
-
} catch (
|
11395
|
-
KgUtil.throwIfNotFormError(
|
11456
|
+
} catch (Y) {
|
11457
|
+
KgUtil.throwIfNotFormError(Y);
|
11396
11458
|
}
|
11397
11459
|
}
|
11398
11460
|
async function ge() {
|
11399
|
-
var
|
11400
|
-
const $ = (
|
11461
|
+
var B, Y, J, Q, Z, ae;
|
11462
|
+
const $ = (B = s.varButtonCreate.value) == null ? void 0 : B.cmd;
|
11401
11463
|
if (!$) {
|
11402
11464
|
KgLogger.error("[KgSubmit] '\u521B\u5EFA\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
|
11403
11465
|
VarButton: s.varButtonCreate.value
|
@@ -11406,7 +11468,7 @@ const getProps$p = () => ({
|
|
11406
11468
|
}
|
11407
11469
|
s.store.setIsCreatingRequesting(s.formID, !0);
|
11408
11470
|
try {
|
11409
|
-
let
|
11471
|
+
let te = ref(KgUtil.parseParams(KgVarUtil.parseCommandParameter((J = (Y = s.varButtonCreate.value) == null ? void 0 : Y.cmd_prm) != null ? J : ""), s.formID, r)), oe = ref(KgUtil.parseParams(toRaw(i.model.value), s.formID, r));
|
11410
11472
|
if (await i.store.emit(s.formID, "beforeRequest", {
|
11411
11473
|
isCreating: s.isCreating.value,
|
11412
11474
|
isUpdating: s.isUpdating.value,
|
@@ -11415,16 +11477,16 @@ const getProps$p = () => ({
|
|
11415
11477
|
row: o.selectedFirstRow.value,
|
11416
11478
|
rows: o.selectedRows.value,
|
11417
11479
|
model: i.model,
|
11418
|
-
params:
|
11419
|
-
data:
|
11480
|
+
params: te,
|
11481
|
+
data: oe
|
11420
11482
|
}))
|
11421
11483
|
return;
|
11422
11484
|
await httpClient().request({
|
11423
|
-
method: (
|
11485
|
+
method: (Z = (Q = s.varButtonCreate.value) == null ? void 0 : Q.cmd_method) != null ? Z : "POST",
|
11424
11486
|
url: $,
|
11425
|
-
params:
|
11426
|
-
data:
|
11427
|
-
}), ((ae = s.varButtonCreate.value) == null ? void 0 : ae.show_success_message_flg) !== 0 && message.success(
|
11487
|
+
params: te.value,
|
11488
|
+
data: oe.value
|
11489
|
+
}), ((ae = s.varButtonCreate.value) == null ? void 0 : ae.show_success_message_flg) !== 0 && message.success(O.title.value + n.t("kg.succeed")), await i.store.emit(s.formID, "ok", {
|
11428
11490
|
isCreating: s.isCreating.value,
|
11429
11491
|
isUpdating: s.isUpdating.value,
|
11430
11492
|
isCopying: s.isCopying.value,
|
@@ -11432,15 +11494,15 @@ const getProps$p = () => ({
|
|
11432
11494
|
row: o.selectedFirstRow.value,
|
11433
11495
|
model: i.model
|
11434
11496
|
}), s.store.setIsCreating(s.formID, !1), c.search(!0);
|
11435
|
-
} catch (
|
11436
|
-
console.error(
|
11497
|
+
} catch (te) {
|
11498
|
+
console.error(te), i.store.emit(s.formID, "error", te);
|
11437
11499
|
} finally {
|
11438
11500
|
s.store.setIsCreatingRequesting(s.formID, !1);
|
11439
11501
|
}
|
11440
11502
|
}
|
11441
11503
|
async function ce() {
|
11442
|
-
var
|
11443
|
-
const $ = (
|
11504
|
+
var B, Y, J, Q, Z, ae;
|
11505
|
+
const $ = (B = s.varButtonUpdate.value) == null ? void 0 : B.cmd;
|
11444
11506
|
if (!$) {
|
11445
11507
|
KgLogger.error("[KgSubmit] '\u66F4\u65B0\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
|
11446
11508
|
VarButton: s.varButtonUpdate.value
|
@@ -11449,7 +11511,7 @@ const getProps$p = () => ({
|
|
11449
11511
|
}
|
11450
11512
|
try {
|
11451
11513
|
s.store.setIsUpdatingRequesting(s.formID, !0);
|
11452
|
-
let
|
11514
|
+
let te = ref(KgUtil.parseParams(KgVarUtil.parseCommandParameter((J = (Y = s.varButtonUpdate.value) == null ? void 0 : Y.cmd_prm) != null ? J : ""), s.formID, r)), oe = ref(KgUtil.parseParams(toRaw(i.model.value), s.formID, r));
|
11453
11515
|
if (await i.store.emit(s.formID, "beforeRequest", {
|
11454
11516
|
isCreating: s.isCreating.value,
|
11455
11517
|
isUpdating: s.isUpdating.value,
|
@@ -11458,15 +11520,15 @@ const getProps$p = () => ({
|
|
11458
11520
|
row: o.selectedRow.value,
|
11459
11521
|
rows: o.selectedRows.value,
|
11460
11522
|
model: i.model,
|
11461
|
-
params:
|
11462
|
-
data:
|
11523
|
+
params: te,
|
11524
|
+
data: oe
|
11463
11525
|
}))
|
11464
11526
|
return;
|
11465
11527
|
await httpClient().request({
|
11466
|
-
method: (
|
11528
|
+
method: (Z = (Q = s.varButtonUpdate.value) == null ? void 0 : Q.cmd_method) != null ? Z : "POST",
|
11467
11529
|
url: $,
|
11468
|
-
params:
|
11469
|
-
data:
|
11530
|
+
params: te.value,
|
11531
|
+
data: oe.value
|
11470
11532
|
}), ((ae = s.varButtonUpdate.value) == null ? void 0 : ae.show_success_message_flg) !== 0 && message.success(n.t("kg.updateSuccess")), await i.store.emit(s.formID, "ok", {
|
11471
11533
|
isCreating: s.isCreating.value,
|
11472
11534
|
isUpdating: s.isUpdating.value,
|
@@ -11475,15 +11537,15 @@ const getProps$p = () => ({
|
|
11475
11537
|
row: o.selectedFirstRow.value,
|
11476
11538
|
model: i.model
|
11477
11539
|
}), s.store.setIsUpdating(s.formID, !1), c.search();
|
11478
|
-
} catch (
|
11479
|
-
console.error(
|
11540
|
+
} catch (te) {
|
11541
|
+
console.error(te), i.store.emit(s.formID, "error", te);
|
11480
11542
|
} finally {
|
11481
11543
|
s.store.setIsUpdatingRequesting(s.formID, !1);
|
11482
11544
|
}
|
11483
11545
|
}
|
11484
11546
|
async function ne() {
|
11485
|
-
var
|
11486
|
-
const $ = (
|
11547
|
+
var B, Y, J, Q, Z, ae, te, oe;
|
11548
|
+
const $ = (B = s.varButtonCopy.value) == null ? void 0 : B.cmd;
|
11487
11549
|
if (!$) {
|
11488
11550
|
KgLogger.error("[KgSubmit] '\u590D\u5236\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
|
11489
11551
|
VarButton: s.varButtonCopy.value
|
@@ -11492,11 +11554,11 @@ const getProps$p = () => ({
|
|
11492
11554
|
}
|
11493
11555
|
try {
|
11494
11556
|
s.store.setIsCopyingRequesting(s.formID, !0);
|
11495
|
-
let ue = ref(KgUtil.parseParams(KgVarUtil.parseCommandParameter((J = (
|
11496
|
-
...(
|
11557
|
+
let ue = ref(KgUtil.parseParams(KgVarUtil.parseCommandParameter((J = (Y = s.varButtonCopy.value) == null ? void 0 : Y.cmd_prm) != null ? J : ""), s.formID, r)), pe = ref(KgUtil.parseParams({
|
11558
|
+
...(Q = o.selectedFirstRow.value) != null ? Q : {},
|
11497
11559
|
...toRaw(i.model.value)
|
11498
11560
|
}, s.formID, r));
|
11499
|
-
if (((
|
11561
|
+
if (((Z = m.value) == null ? void 0 : Z.cpy_clear_id_flg) !== 0 && delete pe.value.id, await i.store.emit(s.formID, "beforeRequest", {
|
11500
11562
|
isCreating: s.isCreating.value,
|
11501
11563
|
isUpdating: s.isUpdating.value,
|
11502
11564
|
isCopying: s.isCopying.value,
|
@@ -11509,11 +11571,11 @@ const getProps$p = () => ({
|
|
11509
11571
|
}))
|
11510
11572
|
return;
|
11511
11573
|
await httpClient().request({
|
11512
|
-
method: (
|
11574
|
+
method: (te = (ae = s.varButtonCopy.value) == null ? void 0 : ae.cmd_method) != null ? te : "POST",
|
11513
11575
|
url: $,
|
11514
11576
|
params: ue.value,
|
11515
11577
|
data: pe.value
|
11516
|
-
}), ((
|
11578
|
+
}), ((oe = s.varButtonCopy.value) == null ? void 0 : oe.show_success_message_flg) !== 0 && message.success(n.t("kg.copySuccess")), await i.store.emit(s.formID, "ok", {
|
11517
11579
|
isCreating: s.isCreating.value,
|
11518
11580
|
isUpdating: s.isUpdating.value,
|
11519
11581
|
isCopying: s.isCopying.value,
|
@@ -11528,8 +11590,8 @@ const getProps$p = () => ({
|
|
11528
11590
|
}
|
11529
11591
|
}
|
11530
11592
|
async function le() {
|
11531
|
-
var
|
11532
|
-
const $ = (
|
11593
|
+
var B, Y, J, Q, Z, ae, te, oe, ue, pe;
|
11594
|
+
const $ = (B = s.varButtonDelete.value) == null ? void 0 : B.cmd;
|
11533
11595
|
if (!$) {
|
11534
11596
|
KgLogger.error("[KgSubmit] '\u5220\u9664\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
|
11535
11597
|
VarButton: s.varButtonDelete.value
|
@@ -11538,12 +11600,12 @@ const getProps$p = () => ({
|
|
11538
11600
|
}
|
11539
11601
|
try {
|
11540
11602
|
s.store.setIsDeletingRequesting(s.formID, !0);
|
11541
|
-
let me = ref(KgUtil.parseParams(KgVarUtil.parseCommandParameter((J = (
|
11542
|
-
if (((
|
11543
|
-
ids: (
|
11603
|
+
let me = ref(KgUtil.parseParams(KgVarUtil.parseCommandParameter((J = (Y = s.varButtonDelete.value) == null ? void 0 : Y.cmd_prm) != null ? J : ""), s.formID, r)), _e = ref((Q = o.selectedRows.value) != null ? Q : []);
|
11604
|
+
if (((Z = s.varButtonDelete.value) == null ? void 0 : Z.del_param_clm) !== "__kg__new_delete_param" && (me = ref({
|
11605
|
+
ids: (te = (ae = o.selectedRows.value) == null ? void 0 : ae.map((ye) => {
|
11544
11606
|
var he, ve, be;
|
11545
11607
|
return (be = ye[(ve = (he = s.varButtonDelete.value) == null ? void 0 : he.del_param_clm) != null ? ve : "id"]) != null ? be : "";
|
11546
|
-
})) != null ?
|
11608
|
+
})) != null ? te : []
|
11547
11609
|
}), _e = ref({})), await i.store.emit(s.formID, "beforeRequest", {
|
11548
11610
|
isCreating: s.isCreating.value,
|
11549
11611
|
isUpdating: s.isUpdating.value,
|
@@ -11557,7 +11619,7 @@ const getProps$p = () => ({
|
|
11557
11619
|
}))
|
11558
11620
|
return;
|
11559
11621
|
await httpClient().request({
|
11560
|
-
method: (ue = (
|
11622
|
+
method: (ue = (oe = s.varButtonDelete.value) == null ? void 0 : oe.cmd_method) != null ? ue : "DELETE",
|
11561
11623
|
url: $,
|
11562
11624
|
params: me.value,
|
11563
11625
|
data: _e.value
|
@@ -11581,28 +11643,28 @@ const getProps$p = () => ({
|
|
11581
11643
|
}
|
11582
11644
|
}
|
11583
11645
|
function de($) {
|
11584
|
-
var
|
11585
|
-
const
|
11586
|
-
return isFunction$2(
|
11646
|
+
var Y, J;
|
11647
|
+
const B = (J = (Y = a == null ? void 0 : a.KgSubmit) == null ? void 0 : Y["KgForm.Item"]) == null ? void 0 : J[$.var_nam];
|
11648
|
+
return isFunction$2(B) ? createVNode(KgForm.Item, {
|
11587
11649
|
kgVarName: $.var_nam,
|
11588
11650
|
kgContext: KG_FORM_CONTEXT.SUBMIT,
|
11589
11651
|
kgRules: i.rules.value[$.var_nam],
|
11590
|
-
onKgSubmit:
|
11652
|
+
onKgSubmit: se
|
11591
11653
|
}, {
|
11592
11654
|
control: ({
|
11593
|
-
frm_id:
|
11594
|
-
varName:
|
11655
|
+
frm_id: Q,
|
11656
|
+
varName: Z,
|
11595
11657
|
props: ae,
|
11596
|
-
model:
|
11597
|
-
varVariableConfig:
|
11658
|
+
model: te,
|
11659
|
+
varVariableConfig: oe,
|
11598
11660
|
varProfileDetail: ue,
|
11599
11661
|
varSubmitField: pe
|
11600
|
-
}) =>
|
11601
|
-
frm_id:
|
11602
|
-
varName:
|
11662
|
+
}) => B({
|
11663
|
+
frm_id: Q,
|
11664
|
+
varName: Z,
|
11603
11665
|
props: ae,
|
11604
|
-
model:
|
11605
|
-
varVariableConfig:
|
11666
|
+
model: te,
|
11667
|
+
varVariableConfig: oe,
|
11606
11668
|
varProfileDetail: ue,
|
11607
11669
|
varSubmitField: pe
|
11608
11670
|
})
|
@@ -11610,18 +11672,18 @@ const getProps$p = () => ({
|
|
11610
11672
|
kgVarName: $.var_nam,
|
11611
11673
|
kgContext: KG_FORM_CONTEXT.SUBMIT,
|
11612
11674
|
kgRules: i.rules.value[$.var_nam],
|
11613
|
-
onKgSubmit:
|
11675
|
+
onKgSubmit: se
|
11614
11676
|
}, null);
|
11615
11677
|
}
|
11616
11678
|
function fe() {
|
11617
|
-
let $,
|
11679
|
+
let $, B;
|
11618
11680
|
return createVNode(KgResizable, {
|
11619
11681
|
kgType: i.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL ? "right" : "left",
|
11620
11682
|
kgMinWidth: P.value,
|
11621
11683
|
kgMaxWidth: N.value,
|
11622
11684
|
kgWidth: U.value,
|
11623
|
-
kgDisabled:
|
11624
|
-
"onUpdate:kgWidth": (
|
11685
|
+
kgDisabled: A.value,
|
11686
|
+
"onUpdate:kgWidth": (Y) => I.value.kgWidth = Y
|
11625
11687
|
}, {
|
11626
11688
|
default: () => [createVNode(Spin, {
|
11627
11689
|
spinning: d.value
|
@@ -11629,20 +11691,20 @@ const getProps$p = () => ({
|
|
11629
11691
|
default: () => [createVNode(KgForm, {
|
11630
11692
|
ref: i.formRef,
|
11631
11693
|
model: i.model.value,
|
11632
|
-
layout:
|
11633
|
-
labelCol:
|
11694
|
+
layout: x.value,
|
11695
|
+
labelCol: X.value,
|
11634
11696
|
wrapperCol: z.value
|
11635
11697
|
}, {
|
11636
11698
|
default: () => [createVNode("div", {
|
11637
|
-
ref:
|
11699
|
+
ref: D
|
11638
11700
|
}, [T.value.length > 0 && createVNode(Row, {
|
11639
11701
|
gutter: 12
|
11640
11702
|
}, _isSlot$8($ = T.value.map(de)) ? $ : {
|
11641
11703
|
default: () => [$]
|
11642
|
-
}), T.value.length > 0 &&
|
11704
|
+
}), T.value.length > 0 && M.value.length > 0 && createVNode(Divider, null, null), M.value.length > 0 && createVNode(Row, {
|
11643
11705
|
gutter: 12
|
11644
|
-
}, _isSlot$8(
|
11645
|
-
default: () => [
|
11706
|
+
}, _isSlot$8(B = M.value.map(de)) ? B : {
|
11707
|
+
default: () => [B]
|
11646
11708
|
}), u.value && createVNode("div", {
|
11647
11709
|
style: "text-align: center; padding: 6px 0 12px;"
|
11648
11710
|
}, [n.t("kg.confirmDelete")])])]
|
@@ -11650,29 +11712,29 @@ const getProps$p = () => ({
|
|
11650
11712
|
})]
|
11651
11713
|
});
|
11652
11714
|
}
|
11653
|
-
function
|
11654
|
-
let $,
|
11715
|
+
function L() {
|
11716
|
+
let $, B;
|
11655
11717
|
return createVNode("div", null, [createVNode(Button, {
|
11656
11718
|
type: "primary",
|
11657
|
-
ghost: !
|
11658
|
-
disabled:
|
11659
|
-
onClick:
|
11719
|
+
ghost: !V.value,
|
11720
|
+
disabled: V.value,
|
11721
|
+
onClick: ie
|
11660
11722
|
}, _isSlot$8($ = n.t("kg.cancel")) ? $ : {
|
11661
11723
|
default: () => [$]
|
11662
11724
|
}), createVNode(Button, {
|
11663
11725
|
type: "primary",
|
11664
|
-
disabled:
|
11726
|
+
disabled: w.value,
|
11665
11727
|
loading: k.value,
|
11666
11728
|
danger: !!s.isDeleting.value,
|
11667
|
-
onClick:
|
11668
|
-
}, _isSlot$8(
|
11669
|
-
default: () => [
|
11729
|
+
onClick: se
|
11730
|
+
}, _isSlot$8(B = n.t(s.isDeleting.value ? "kg.delete" : "kg.save")) ? B : {
|
11731
|
+
default: () => [B]
|
11670
11732
|
})]);
|
11671
11733
|
}
|
11672
11734
|
function H() {
|
11673
11735
|
return createVNode("div", {
|
11674
|
-
title:
|
11675
|
-
}, [
|
11736
|
+
title: O.title.value
|
11737
|
+
}, [O.title.value]);
|
11676
11738
|
}
|
11677
11739
|
function q() {
|
11678
11740
|
return createVNode(KgSubmitHeader, {
|
@@ -11680,7 +11742,7 @@ const getProps$p = () => ({
|
|
11680
11742
|
"onUpdate:isFullscreen": ($) => F.isFullscreen = $,
|
11681
11743
|
kgShowFullscreenButton: !u.value,
|
11682
11744
|
kgShowConfigButton: !u.value && e.kgShowConfigButton,
|
11683
|
-
onKgCancel:
|
11745
|
+
onKgCancel: ie
|
11684
11746
|
}, null);
|
11685
11747
|
}
|
11686
11748
|
return () => createVNode(Drawer, {
|
@@ -11690,14 +11752,14 @@ const getProps$p = () => ({
|
|
11690
11752
|
maskClosable: !1,
|
11691
11753
|
keyboard: !1,
|
11692
11754
|
destroyOnClose: !0,
|
11693
|
-
width:
|
11694
|
-
class:
|
11755
|
+
width: R.value,
|
11756
|
+
class: K.value,
|
11695
11757
|
"kg-frm_id": s.formID
|
11696
11758
|
}, {
|
11697
11759
|
title: H,
|
11698
11760
|
extra: q,
|
11699
11761
|
default: fe,
|
11700
|
-
footer:
|
11762
|
+
footer: L
|
11701
11763
|
});
|
11702
11764
|
}
|
11703
11765
|
}), KgYesOrNo$1 = "", getProps$o = () => ({
|
@@ -11911,6 +11973,15 @@ const useKgTableStore = () => (store$4 || (store$4 = defineStore("KgTable", {
|
|
11911
11973
|
const a = (l = (s = r.varGridConfig.value) == null ? void 0 : s.id_clm) != null ? l : "id", n = this.getSelectedRowKeys(e);
|
11912
11974
|
n.value = t.map((o) => o[a]);
|
11913
11975
|
},
|
11976
|
+
refreshSelectedRows(e) {
|
11977
|
+
var s, l;
|
11978
|
+
if (!e) {
|
11979
|
+
KgLogger.error("KgTableStore.refreshSelectedRows() | frm_id \u4E3A\u7A7A.");
|
11980
|
+
return;
|
11981
|
+
}
|
11982
|
+
const r = (l = (s = useKgVar(e).varGridConfig.value) == null ? void 0 : s.id_clm) != null ? l : "id", a = this.getSelectedRowKeys(e), n = this.getDatas(e).filter((o) => a.value.includes(o[r]));
|
11983
|
+
this.selectedRowsMap.set(e, unref(toRaw(n)));
|
11984
|
+
},
|
11914
11985
|
setRowSelect(e, t, r) {
|
11915
11986
|
},
|
11916
11987
|
setIsRetrieved(e, t) {
|
@@ -12007,31 +12078,31 @@ const getProps$n = () => ({
|
|
12007
12078
|
var T;
|
12008
12079
|
try {
|
12009
12080
|
await ((T = y.value) == null ? void 0 : T.validate());
|
12010
|
-
} catch (
|
12011
|
-
KgUtil.throwIfNotFormError(
|
12081
|
+
} catch (M) {
|
12082
|
+
KgUtil.throwIfNotFormError(M);
|
12012
12083
|
}
|
12013
12084
|
return !1;
|
12014
12085
|
});
|
12015
12086
|
const i = computed(() => e.kgVarName ? n.store.getVarGridDetail(n.formID, e.kgVarName) : null), c = computed(() => n.store.getVarSubmitField(n.formID, e.kgVarName)), u = computed(() => {
|
12016
|
-
var T,
|
12017
|
-
return l.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && ((T = e.kgRow) == null ? void 0 : T[o.id.value]) === ((
|
12087
|
+
var T, M, k, V, w, I;
|
12088
|
+
return l.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && ((T = e.kgRow) == null ? void 0 : T[o.id.value]) === ((M = o.selectedRow.value) == null ? void 0 : M[o.id.value]) && (!!n.isCreating.value && ((k = c.value) == null ? void 0 : k.crt_flg) === 1 || !!n.isUpdating.value && ((V = c.value) == null ? void 0 : V.upt_flg) === 1 || !!n.isCopying.value && ((w = c.value) == null ? void 0 : w.cpy_flg) === 1 || !!n.isDeleting.value && ((I = c.value) == null ? void 0 : I.del_flg) === 1);
|
12018
12089
|
}), d = computed(() => {
|
12019
|
-
var T,
|
12020
|
-
return l.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && ((T = e.kgRow) == null ? void 0 : T[o.id.value]) === ((
|
12090
|
+
var T, M;
|
12091
|
+
return l.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && ((T = e.kgRow) == null ? void 0 : T[o.id.value]) === ((M = o.selectedRow.value) == null ? void 0 : M[o.id.value]) && (!!n.isCreating.value && !!n.isCreatingRequesting.value || !!n.isUpdating.value && !!n.isUpdatingRequesting.value || !!n.isCopying.value && !!n.isCopyingRequesting.value || !!n.isDeleting.value && !!n.isDeletingRequesting.value);
|
12021
12092
|
}), m = computed(() => {
|
12022
|
-
var
|
12093
|
+
var M, k;
|
12023
12094
|
let T = "kg-table-td";
|
12024
|
-
return ((
|
12095
|
+
return ((M = i.value) == null ? void 0 : M.align) === "center" ? T += " kg-table-td--center" : ((k = i.value) == null ? void 0 : k.align) === "right" && (T += " kg-table-td--right"), u.value && (T += " kg-table-td--submitting"), T;
|
12025
12096
|
}), v = computed(() => {
|
12026
|
-
var
|
12097
|
+
var M, k, V, w, I;
|
12027
12098
|
if (e.kgValue === KG_TABLE_TEMP_ID)
|
12028
12099
|
return "";
|
12029
12100
|
let T = e.kgValue;
|
12030
|
-
switch ((
|
12101
|
+
switch ((M = i.value) == null ? void 0 : M.display_type) {
|
12031
12102
|
case KG_TABLE_CELL_DISPLAY_TYPE.DESC:
|
12032
12103
|
{
|
12033
|
-
const
|
12034
|
-
|
12104
|
+
const A = KgUtil.tryParseJSON((k = i.value) == null ? void 0 : k.display_type_properties);
|
12105
|
+
A.dscFieldName ? T = ((V = e.kgRow) == null ? void 0 : V[A.dscFieldName]) || e.kgValue : T = ((w = e.kgRow) == null ? void 0 : w[`${e.kgVarName}_dsc`]) || ((I = e.kgRow) == null ? void 0 : I[`${e.kgVarName}Dsc`]) || e.kgValue;
|
12035
12106
|
}
|
12036
12107
|
break;
|
12037
12108
|
}
|
@@ -12039,18 +12110,18 @@ const getProps$n = () => ({
|
|
12039
12110
|
`)), T;
|
12040
12111
|
}), y = ref(null);
|
12041
12112
|
function p(T) {
|
12042
|
-
var
|
12113
|
+
var M, k, V;
|
12043
12114
|
if (T.detail === 1 && !(n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value))
|
12044
|
-
switch ((
|
12115
|
+
switch ((M = i.value) == null ? void 0 : M.display_type) {
|
12045
12116
|
case KG_TABLE_CELL_DISPLAY_TYPE.UPDATE_LINK:
|
12046
12117
|
T.stopPropagation(), T.preventDefault(), r("kgUpdateLinkClick");
|
12047
12118
|
break;
|
12048
12119
|
case KG_TABLE_CELL_DISPLAY_TYPE.ROUTE_LINK:
|
12049
12120
|
{
|
12050
12121
|
T.stopPropagation(), T.preventDefault();
|
12051
|
-
const
|
12052
|
-
(
|
12053
|
-
path:
|
12122
|
+
const w = KgUtil.tryParseJSON((k = i.value) == null ? void 0 : k.display_type_properties);
|
12123
|
+
(V = a.router.value) == null || V.push({
|
12124
|
+
path: w.path,
|
12054
12125
|
query: e.kgRow
|
12055
12126
|
});
|
12056
12127
|
}
|
@@ -12081,35 +12152,35 @@ const getProps$n = () => ({
|
|
12081
12152
|
});
|
12082
12153
|
}
|
12083
12154
|
function E() {
|
12084
|
-
var T,
|
12155
|
+
var T, M, k, V, w, I, A, P, N, U;
|
12085
12156
|
if (u.value)
|
12086
12157
|
return b();
|
12087
12158
|
switch ((T = i.value) == null ? void 0 : T.display_type) {
|
12088
12159
|
case KG_TABLE_CELL_DISPLAY_TYPE.YN: {
|
12089
|
-
const
|
12160
|
+
const D = KgUtil.tryParseJSON((M = i.value) == null ? void 0 : M.display_type_properties);
|
12090
12161
|
return createVNode(KgYesOrNo, {
|
12091
|
-
kgValue: isNil(e.kgValue) ? void 0 : e.kgValue === ((k =
|
12092
|
-
kgNilAsFalse:
|
12162
|
+
kgValue: isNil(e.kgValue) ? void 0 : e.kgValue === ((k = D.yValue) != null ? k : 1),
|
12163
|
+
kgNilAsFalse: D.nilAsFalse
|
12093
12164
|
}, null);
|
12094
12165
|
}
|
12095
12166
|
case KG_TABLE_CELL_DISPLAY_TYPE.ENUM: {
|
12096
|
-
const
|
12097
|
-
if (
|
12098
|
-
const
|
12099
|
-
return
|
12100
|
-
color: (
|
12101
|
-
}, _isSlot$7(
|
12102
|
-
default: () => [
|
12167
|
+
const D = KgUtil.tryParseJSON((V = i.value) == null ? void 0 : V.display_type_properties), O = isArrayLike(D) && D.find((R) => R.value === e.kgValue);
|
12168
|
+
if (O) {
|
12169
|
+
const R = n.t(O.varName).value;
|
12170
|
+
return R ? createVNode(Tag, {
|
12171
|
+
color: (w = O.color) != null ? w : "default"
|
12172
|
+
}, _isSlot$7(R) ? R : {
|
12173
|
+
default: () => [R]
|
12103
12174
|
}) : C();
|
12104
12175
|
} else
|
12105
12176
|
return C();
|
12106
12177
|
}
|
12107
12178
|
case KG_TABLE_CELL_DISPLAY_TYPE.DESC: {
|
12108
|
-
const
|
12109
|
-
if (
|
12110
|
-
const
|
12179
|
+
const D = KgUtil.tryParseJSON((I = i.value) == null ? void 0 : I.display_type_properties);
|
12180
|
+
if (D.isTag && isArrayLike(D.tagColors)) {
|
12181
|
+
const O = D.tagColors.find((R) => R.value === e.kgValue);
|
12111
12182
|
return v.value ? createVNode(Tag, {
|
12112
|
-
color: (
|
12183
|
+
color: (A = O == null ? void 0 : O.color) != null ? A : "default"
|
12113
12184
|
}, {
|
12114
12185
|
default: () => [v.value]
|
12115
12186
|
}) : C();
|
@@ -12117,11 +12188,11 @@ const getProps$n = () => ({
|
|
12117
12188
|
return C();
|
12118
12189
|
}
|
12119
12190
|
case KG_TABLE_CELL_DISPLAY_TYPE.PROGRESS: {
|
12120
|
-
const
|
12191
|
+
const D = KgUtil.tryParseJSON((P = i.value) == null ? void 0 : P.display_type_properties);
|
12121
12192
|
return createVNode(KgProgressA, {
|
12122
|
-
kgTextWidth:
|
12123
|
-
kgLeft: (N = e.kgRow) == null ? void 0 : N[
|
12124
|
-
kgRight: (U = e.kgRow) == null ? void 0 : U[
|
12193
|
+
kgTextWidth: D.textWidth,
|
12194
|
+
kgLeft: (N = e.kgRow) == null ? void 0 : N[D.leftColumn],
|
12195
|
+
kgRight: (U = e.kgRow) == null ? void 0 : U[D.rightColumn]
|
12125
12196
|
}, null);
|
12126
12197
|
}
|
12127
12198
|
case KG_TABLE_CELL_DISPLAY_TYPE.FILE_SIZE:
|
@@ -12135,10 +12206,10 @@ const getProps$n = () => ({
|
|
12135
12206
|
}
|
12136
12207
|
}
|
12137
12208
|
function C(T = !1) {
|
12138
|
-
let
|
12139
|
-
return T && !(n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value) && (
|
12209
|
+
let M = "";
|
12210
|
+
return T && !(n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value) && (M += "kg-table-td-update-link"), createVNode("pre", {
|
12140
12211
|
innerHTML: v.value,
|
12141
|
-
class:
|
12212
|
+
class: M,
|
12142
12213
|
onClick: p
|
12143
12214
|
}, null);
|
12144
12215
|
}
|
@@ -12235,8 +12306,8 @@ const getProps$m = () => ({
|
|
12235
12306
|
}) => {
|
12236
12307
|
const c = a == null ? void 0 : a.store.getVarGridConfig(a.formID);
|
12237
12308
|
return l = watch(i, (u) => {
|
12238
|
-
var d, m, v, y, p, g, b, E, C, T,
|
12239
|
-
u && (u.id = (d = c == null ? void 0 : c.id) != null ? d : null, u.frm_id = a == null ? void 0 : a.formID, u.aut_load_flg = (m = c == null ? void 0 : c.aut_load_flg) != null ? m : 0, u.mult_flg = (v = c == null ? void 0 : c.mult_flg) != null ? v : 0, u.show_check_column_flg = (y = c == null ? void 0 : c.show_check_column_flg) != null ? y : 0, u.show_bottom_left_flg = (p = c == null ? void 0 : c.show_bottom_left_flg) != null ? p : 1, u.show_bottom_right_flg = (g = c == null ? void 0 : c.show_bottom_right_flg) != null ? g : 1, u.convert_sort_field_to_under_score_flg = (b = c == null ? void 0 : c.convert_sort_field_to_under_score_flg) != null ? b : 0, u.pg_size_opts = (E = c == null ? void 0 : c.pg_size_opts) != null ? E : "[10, 20, 50, 100]", u.pg_size_opt = (C = c == null ? void 0 : c.pg_size_opt) != null ? C : 10, u.cmd_prm = (T = c == null ? void 0 : c.cmd_prm) != null ? T : void 0, u.button_display_type = (
|
12309
|
+
var d, m, v, y, p, g, b, E, C, T, M;
|
12310
|
+
u && (u.id = (d = c == null ? void 0 : c.id) != null ? d : null, u.frm_id = a == null ? void 0 : a.formID, u.aut_load_flg = (m = c == null ? void 0 : c.aut_load_flg) != null ? m : 0, u.mult_flg = (v = c == null ? void 0 : c.mult_flg) != null ? v : 0, u.show_check_column_flg = (y = c == null ? void 0 : c.show_check_column_flg) != null ? y : 0, u.show_bottom_left_flg = (p = c == null ? void 0 : c.show_bottom_left_flg) != null ? p : 1, u.show_bottom_right_flg = (g = c == null ? void 0 : c.show_bottom_right_flg) != null ? g : 1, u.convert_sort_field_to_under_score_flg = (b = c == null ? void 0 : c.convert_sort_field_to_under_score_flg) != null ? b : 0, u.pg_size_opts = (E = c == null ? void 0 : c.pg_size_opts) != null ? E : "[10, 20, 50, 100]", u.pg_size_opt = (C = c == null ? void 0 : c.pg_size_opt) != null ? C : 10, u.cmd_prm = (T = c == null ? void 0 : c.cmd_prm) != null ? T : void 0, u.button_display_type = (M = c == null ? void 0 : c.button_display_type) != null ? M : KG_BUTTON_DISPLAY_TYPE.DEFAULT);
|
12240
12311
|
}, {
|
12241
12312
|
immediate: !0
|
12242
12313
|
}), KgUtil.hideLoading(), !1;
|
@@ -12531,8 +12602,8 @@ const getProps$h = () => ({
|
|
12531
12602
|
class: "ant-dropdown-menu ant-dropdown-menu-vertical"
|
12532
12603
|
}, [(C = n.currentVarGridDetails.value) == null ? void 0 : C.map((T) => createVNode("li", {
|
12533
12604
|
class: "ant-dropdown-menu-item ant-dropdown-menu-item-only-child",
|
12534
|
-
onClick: (
|
12535
|
-
|
12605
|
+
onClick: (M) => {
|
12606
|
+
M.preventDefault(), M.stopPropagation(), v(T);
|
12536
12607
|
},
|
12537
12608
|
style: {
|
12538
12609
|
display: l(T, o.value) ? "flex" : "none"
|
@@ -12544,8 +12615,8 @@ const getProps$h = () => ({
|
|
12544
12615
|
}, {
|
12545
12616
|
default: () => [createVNode("pre", null, [n.t(T.var_nam).value])]
|
12546
12617
|
}), createVNode(HolderOutlined$1, {
|
12547
|
-
onClick: (
|
12548
|
-
|
12618
|
+
onClick: (M) => {
|
12619
|
+
M.preventDefault(), M.stopPropagation();
|
12549
12620
|
}
|
12550
12621
|
}, null)]))])]);
|
12551
12622
|
},
|
@@ -12559,13 +12630,13 @@ const getProps$h = () => ({
|
|
12559
12630
|
popupClassName: "kg-table-setting-submenu-popup-masters"
|
12560
12631
|
}, {
|
12561
12632
|
default: () => {
|
12562
|
-
var
|
12633
|
+
var M;
|
12563
12634
|
let C, T;
|
12564
|
-
return createVNode(Fragment, null, [(
|
12565
|
-
var
|
12635
|
+
return createVNode(Fragment, null, [(M = n.varGridMasters.value) == null ? void 0 : M.map((k) => {
|
12636
|
+
var V;
|
12566
12637
|
return createVNode(Menu.Item, {
|
12567
12638
|
key: k.id,
|
12568
|
-
class: k.id === ((
|
12639
|
+
class: k.id === ((V = n.currentVarGridMaster.value) == null ? void 0 : V.id) ? "selected" : "",
|
12569
12640
|
"kg-var_nam": k.grd_var_nam,
|
12570
12641
|
onClick: () => n.store.setCurrentVarGridMasterID(n.formID, k.id)
|
12571
12642
|
}, {
|
@@ -13097,23 +13168,23 @@ function _useColumns(e) {
|
|
13097
13168
|
if (p.fix_right_flg === 1)
|
13098
13169
|
return "right";
|
13099
13170
|
}
|
13100
|
-
function
|
13101
|
-
var
|
13102
|
-
return !((I = (
|
13171
|
+
function M() {
|
13172
|
+
var w, I, A, P;
|
13173
|
+
return !((I = (w = t == null ? void 0 : t.value) == null ? void 0 : w.KgTable) != null && I.kgDisabled || isNil((P = (A = t == null ? void 0 : t.value) == null ? void 0 : A.KgTable) == null ? void 0 : P.kgDisabled) && e.kgDisabled || p.ord_flg !== 1 || r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value);
|
13103
13174
|
}
|
13104
13175
|
function k() {
|
13105
13176
|
return ["left", "center", "right"].includes(p.align || "") ? p.align : "left";
|
13106
13177
|
}
|
13107
|
-
const
|
13178
|
+
const V = b();
|
13108
13179
|
return {
|
13109
13180
|
dataIndex: g,
|
13110
13181
|
title: E(),
|
13111
|
-
width:
|
13112
|
-
resizable: typeof
|
13182
|
+
width: V,
|
13183
|
+
resizable: typeof V == "number",
|
13113
13184
|
minWidth: KG_TABLE_TD_MIN_WIDTH,
|
13114
13185
|
maxWidth: KG_TABLE_TD_MAX_WIDTH,
|
13115
13186
|
fixed: T(),
|
13116
|
-
sorter:
|
13187
|
+
sorter: M(),
|
13117
13188
|
align: k(),
|
13118
13189
|
defaultSortOrder: C(),
|
13119
13190
|
customHeaderCell: () => ({
|
@@ -13121,13 +13192,13 @@ function _useColumns(e) {
|
|
13121
13192
|
"kg-var_nam": g,
|
13122
13193
|
draggable: !0
|
13123
13194
|
}),
|
13124
|
-
customCell: (
|
13125
|
-
var
|
13195
|
+
customCell: (w) => {
|
13196
|
+
var A;
|
13126
13197
|
const I = r.store.getVarSubmitField(r.formID, g);
|
13127
13198
|
return {
|
13128
13199
|
"kg-frm_id": r.formID,
|
13129
13200
|
"kg-var_nam": g,
|
13130
|
-
class: a.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE &&
|
13201
|
+
class: a.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && w[n.id.value] === ((A = n.selectedRow.value) == null ? void 0 : A[n.id.value]) && (!!r.isCreating.value && (I == null ? void 0 : I.crt_flg) === 1 || !!r.isUpdating.value && (I == null ? void 0 : I.upt_flg) === 1 || !!r.isCopying.value && (I == null ? void 0 : I.cpy_flg) === 1 || !!r.isDeleting.value && (I == null ? void 0 : I.del_flg) === 1) ? "submitting" : ""
|
13131
13202
|
};
|
13132
13203
|
}
|
13133
13204
|
};
|
@@ -13244,27 +13315,27 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
13244
13315
|
var fe;
|
13245
13316
|
const a = inject("$dayjs", dayjs), n = inject(DI_KG_VAR__KG_SLOTS, null), s = inject(DI_KG_VAR__KG_PROPS, null), l = useKg(), o = useKgVar(), i = useKgSearch(), c = useKgButton(), u = useKgTable(), d = useKgSubmit();
|
13246
13317
|
i.onSearch(async ({
|
13247
|
-
resetPageIndex:
|
13248
|
-
}) => (
|
13249
|
-
name:
|
13318
|
+
resetPageIndex: L
|
13319
|
+
}) => (W(L), !1)), i.onReset(async () => (W(!0), !1)), u.store.$onAction(async ({
|
13320
|
+
name: L,
|
13250
13321
|
args: H
|
13251
13322
|
}) => {
|
13252
|
-
switch (
|
13323
|
+
switch (L) {
|
13253
13324
|
case "setRowSelect":
|
13254
13325
|
if (H[0] === o.formID) {
|
13255
|
-
const q = H[1], $ = H[2],
|
13326
|
+
const q = H[1], $ = H[2], B = q[u.id.value];
|
13256
13327
|
switch (!0) {
|
13257
|
-
case ($ && !
|
13258
|
-
|
13328
|
+
case ($ && !D.value.includes(B)):
|
13329
|
+
X([...D.value, B]);
|
13259
13330
|
break;
|
13260
|
-
case (!$ &&
|
13261
|
-
|
13331
|
+
case (!$ && D.value.includes(B)):
|
13332
|
+
X(without$1(D.value, B));
|
13262
13333
|
break;
|
13263
13334
|
}
|
13264
13335
|
}
|
13265
13336
|
break;
|
13266
13337
|
case "clearDatas":
|
13267
|
-
H[0] === o.formID && (u.store.setDatas(o.formID, []),
|
13338
|
+
H[0] === o.formID && (u.store.setDatas(o.formID, []), O.total = 0, x(), v.value = []);
|
13268
13339
|
break;
|
13269
13340
|
}
|
13270
13341
|
});
|
@@ -13276,109 +13347,109 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
13276
13347
|
} = _useLoading(), b = ref(null);
|
13277
13348
|
_useResizeObserver(b), _useDragColumn(b, y);
|
13278
13349
|
const E = computed(() => {
|
13279
|
-
var
|
13280
|
-
return (H = (
|
13350
|
+
var L, H;
|
13351
|
+
return (H = (L = o.varButtonSearch.value) == null ? void 0 : L.cmd) != null ? H : null;
|
13281
13352
|
}), C = computed(() => {
|
13282
|
-
var H, q, $,
|
13283
|
-
let
|
13284
|
-
pageNo:
|
13285
|
-
pageSize:
|
13286
|
-
...
|
13353
|
+
var H, q, $, B, Y, J, Q;
|
13354
|
+
let L = {
|
13355
|
+
pageNo: O.pageIndex,
|
13356
|
+
pageSize: O.pageSize,
|
13357
|
+
...R,
|
13287
13358
|
...(q = (H = i.model) == null ? void 0 : H.value) != null ? q : {}
|
13288
13359
|
};
|
13289
|
-
return o.varButtonSearch.value && (
|
13290
|
-
...
|
13291
|
-
...KgVarUtil.parseCommandParameter((
|
13292
|
-
}), (
|
13293
|
-
...
|
13360
|
+
return o.varButtonSearch.value && (L = {
|
13361
|
+
...L,
|
13362
|
+
...KgVarUtil.parseCommandParameter((B = ($ = o.varButtonSearch.value) == null ? void 0 : $.cmd_prm) != null ? B : "")
|
13363
|
+
}), (Y = o.varGridConfig.value) != null && Y.cmd_prm && (L = {
|
13364
|
+
...L,
|
13294
13365
|
...KgVarUtil.parseCommandParameter((J = o.varGridConfig.value.cmd_prm) != null ? J : "")
|
13295
|
-
}), ((
|
13366
|
+
}), ((Q = o.varGridConfig.value) == null ? void 0 : Q.convert_sort_field_to_under_score_flg) === 1 && L.column && (L.column = snakeCase$1(L.column)), L;
|
13296
13367
|
}), T = computed(() => {
|
13297
|
-
var
|
13298
|
-
if (!isNil((H = (
|
13368
|
+
var L, H, q, $;
|
13369
|
+
if (!isNil((H = (L = s == null ? void 0 : s.value) == null ? void 0 : L.KgTable) == null ? void 0 : H.kgDisabled))
|
13299
13370
|
return ($ = (q = s == null ? void 0 : s.value) == null ? void 0 : q.KgTable) == null ? void 0 : $.kgDisabled;
|
13300
13371
|
if (!isNil(e.kgDisabled))
|
13301
13372
|
return e.kgDisabled;
|
13302
|
-
}),
|
13303
|
-
var
|
13304
|
-
if (!isNil((H = (
|
13373
|
+
}), M = computed(() => {
|
13374
|
+
var L, H, q, $;
|
13375
|
+
if (!isNil((H = (L = s == null ? void 0 : s.value) == null ? void 0 : L.KgTable) == null ? void 0 : H.kgCheckboxDisabled))
|
13305
13376
|
return ($ = (q = s == null ? void 0 : s.value) == null ? void 0 : q.KgTable) == null ? void 0 : $.kgCheckboxDisabled;
|
13306
13377
|
if (!isNil(e.kgCheckboxDisabled))
|
13307
13378
|
return e.kgCheckboxDisabled;
|
13308
|
-
}), k = computed(() => !!T.value || g.value || !!o.isCreating.value || !!o.isUpdating.value || !!o.isCopying.value || !!o.isDeleting.value),
|
13309
|
-
var
|
13310
|
-
return !!((
|
13379
|
+
}), k = computed(() => !!T.value || g.value || !!o.isCreating.value || !!o.isUpdating.value || !!o.isCopying.value || !!o.isDeleting.value), V = computed(() => !!T.value || g.value || !!o.isCreating.value || !!o.isUpdating.value || !!o.isCopying.value || !!o.isDeleting.value || O.total === 0), w = computed(() => {
|
13380
|
+
var L;
|
13381
|
+
return !!((L = n == null ? void 0 : n.KgTable) != null && L.expandedRowRender);
|
13311
13382
|
}), I = computed(() => {
|
13312
|
-
var
|
13313
|
-
return ((
|
13314
|
-
}),
|
13383
|
+
var L;
|
13384
|
+
return ((L = o.varGridConfig.value) == null ? void 0 : L.show_check_column_flg) === 1;
|
13385
|
+
}), A = computed(() => {
|
13315
13386
|
if (!!I.value)
|
13316
13387
|
return {
|
13317
13388
|
fixed: "left",
|
13318
13389
|
columnWidth: KG_TABLE_TD_CHECK_WIDTH,
|
13319
13390
|
hideSelectAll: !u.isMultiSelect.value,
|
13320
|
-
selectedRowKeys:
|
13391
|
+
selectedRowKeys: D,
|
13321
13392
|
preserveSelectedRowKeys: !1,
|
13322
|
-
getCheckboxProps: (
|
13393
|
+
getCheckboxProps: (L) => {
|
13323
13394
|
var H;
|
13324
13395
|
return {
|
13325
|
-
disabled: !!T.value || !!o.isCreating.value || !!o.isUpdating.value || !!o.isCopying.value || !!o.isDeleting.value || !!((H =
|
13396
|
+
disabled: !!T.value || !!o.isCreating.value || !!o.isUpdating.value || !!o.isCopying.value || !!o.isDeleting.value || !!((H = M.value) != null && H.call(M, L))
|
13326
13397
|
};
|
13327
13398
|
},
|
13328
|
-
onSelect: (
|
13329
|
-
onChange: (
|
13399
|
+
onSelect: (L) => z(L),
|
13400
|
+
onChange: (L) => u.isMultiSelect.value && X(L)
|
13330
13401
|
};
|
13331
13402
|
}), P = computed(() => {
|
13332
13403
|
var H;
|
13333
|
-
let
|
13334
|
-
return ((H = o.varGridConfig.value) == null ? void 0 : H.show_bottom_border_flg) === 1 && (
|
13404
|
+
let L = "kg-table";
|
13405
|
+
return ((H = o.varGridConfig.value) == null ? void 0 : H.show_bottom_border_flg) === 1 && (L += " kg-table--bottom-border"), !u.isShowBottomLeft.value && !u.isShowBottomRight.value && (L += " kg-table--no-bottom"), d.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && (o.isCreating.value || o.isUpdating.value || o.isCopying.value || o.isDeleting.value) && (L += " kg-table--submitting"), L;
|
13335
13406
|
}), N = computed(() => {
|
13336
13407
|
var H;
|
13337
|
-
let
|
13338
|
-
return ((H = o.varGridConfig.value) == null ? void 0 : H.show_bottom_border_flg) === 1 && (
|
13339
|
-
}), U = computed(() => u.store.getDatas(o.formID)),
|
13408
|
+
let L = "kg-table-bottom";
|
13409
|
+
return ((H = o.varGridConfig.value) == null ? void 0 : H.show_bottom_border_flg) === 1 && (L += " kg-table-bottom--border"), L;
|
13410
|
+
}), U = computed(() => u.store.getDatas(o.formID)), D = (fe = u.store.getSelectedRowKeys(o.formID)) != null ? fe : ref([]), O = reactive({
|
13340
13411
|
pageIndex: 1,
|
13341
13412
|
pageSize: 10,
|
13342
13413
|
total: 0
|
13343
|
-
}),
|
13414
|
+
}), R = reactive({
|
13344
13415
|
column: void 0,
|
13345
13416
|
order: void 0
|
13346
|
-
}), G = watch(u.pageSizeOption, (
|
13347
|
-
|
13417
|
+
}), G = watch(u.pageSizeOption, (L) => {
|
13418
|
+
L && (setTimeout(() => G()), O.pageSize = L, m.value = !0, KgLogger.debug(`${o.formID} | KgTable | isReadReady: ${m.value}`));
|
13348
13419
|
}, {
|
13349
13420
|
immediate: !0
|
13350
13421
|
});
|
13351
|
-
watch(u.pageSizeOptions, (
|
13352
|
-
|
13353
|
-
}), watch([E, u.isReadAutomatically, i.isReady], ([
|
13354
|
-
|
13422
|
+
watch(u.pageSizeOptions, (L) => {
|
13423
|
+
L.length > 0 && !L.includes(O.pageSize) && (O.pageSize = u.pageSizeOption.value);
|
13424
|
+
}), watch([E, u.isReadAutomatically, i.isReady], ([L, H, q]) => {
|
13425
|
+
L && H && q && !u.store.getIsRetrieved(o.formID) && W(!0);
|
13355
13426
|
}, {
|
13356
13427
|
immediate: !0
|
13357
|
-
}), watch(o.isCreating, (
|
13358
|
-
|
13428
|
+
}), watch(o.isCreating, (L, H) => {
|
13429
|
+
L === !0 ? F() : L === !1 && H === !0 && K();
|
13359
13430
|
}), onUnmounted(() => {
|
13360
13431
|
u.store.dispose(o.formID);
|
13361
13432
|
});
|
13362
13433
|
function F() {
|
13363
13434
|
if (d.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE) {
|
13364
|
-
const
|
13435
|
+
const L = {
|
13365
13436
|
[u.id.value]: KG_TABLE_TEMP_ID
|
13366
13437
|
};
|
13367
|
-
u.store.setDatas(o.formID, [
|
13438
|
+
u.store.setDatas(o.formID, [L, ...U.value]), u.store.setSelectedRows(o.formID, [L]);
|
13368
13439
|
}
|
13369
13440
|
}
|
13370
|
-
function
|
13371
|
-
const
|
13372
|
-
|
13441
|
+
function K() {
|
13442
|
+
const L = U.value.find((H) => H[u.id.value] === KG_TABLE_TEMP_ID);
|
13443
|
+
L && (u.store.setDatas(o.formID, without$1(U.value, L)), u.store.setSelectedRows(o.formID, []));
|
13373
13444
|
}
|
13374
|
-
function
|
13445
|
+
function x(L, H) {
|
13375
13446
|
var q;
|
13376
|
-
if (!(!!T.value || !!o.isCreating.value || !!o.isUpdating.value || !!o.isCopying.value || !!o.isDeleting.value) && !!
|
13447
|
+
if (!(!!T.value || !!o.isCreating.value || !!o.isUpdating.value || !!o.isCopying.value || !!o.isDeleting.value) && !!A.value) {
|
13377
13448
|
if (!H) {
|
13378
13449
|
u.store.setSelectedRows(o.formID, []);
|
13379
13450
|
return;
|
13380
13451
|
}
|
13381
|
-
switch (
|
13452
|
+
switch (L == null ? void 0 : L.detail) {
|
13382
13453
|
case 1:
|
13383
13454
|
switch ((q = o.varGridConfig.value) == null ? void 0 : q.operation_on_row_click) {
|
13384
13455
|
case 0:
|
@@ -13396,7 +13467,7 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
13396
13467
|
}
|
13397
13468
|
}
|
13398
13469
|
}
|
13399
|
-
function
|
13470
|
+
function W(L = !1) {
|
13400
13471
|
KgLogger.debug(`${o.formID} | KgTable | retrieve() | \u8FDB\u5165\u65B9\u6CD5.`);
|
13401
13472
|
const H = watch(m, ($) => {
|
13402
13473
|
$ && (setTimeout(() => H()), q());
|
@@ -13404,49 +13475,49 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
13404
13475
|
immediate: !0
|
13405
13476
|
});
|
13406
13477
|
async function q() {
|
13407
|
-
var $,
|
13478
|
+
var $, B, Y;
|
13408
13479
|
if (KgLogger.debug(`${o.formID} | KgTable | retrieve() | retrieveDatas() | \u8FDB\u5165\u65B9\u6CD5.`), !E.value) {
|
13409
13480
|
KgLogger.error("[KgTable] '\u67E5\u8BE2\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
|
13410
13481
|
VarButton: o.varButtonSearch.value
|
13411
13482
|
});
|
13412
13483
|
return;
|
13413
13484
|
}
|
13414
|
-
|
13485
|
+
L && (O.pageIndex = 1), u.store.setIsRetrieving(o.formID, !0);
|
13415
13486
|
try {
|
13416
|
-
const J = KgUtil.parseParams(C.value, u.profileFormID.value, a),
|
13487
|
+
const J = KgUtil.parseParams(C.value, u.profileFormID.value, a), Q = ref({});
|
13417
13488
|
await u.store.emit(o.formID, "beforeRetrieve", {
|
13418
13489
|
params: J,
|
13419
|
-
response:
|
13420
|
-
}) ? KgLogger.debug(`${o.formID} | KgTable | retrieve() | retrieveDatas() | \u89E6\u53D1 beforeRetrieve \u4E8B\u4EF6.`) : (
|
13490
|
+
response: Q
|
13491
|
+
}) ? KgLogger.debug(`${o.formID} | KgTable | retrieve() | retrieveDatas() | \u89E6\u53D1 beforeRetrieve \u4E8B\u4EF6.`) : (Q.value = await httpClient().request({
|
13421
13492
|
method: "GET",
|
13422
13493
|
url: E.value,
|
13423
13494
|
params: J
|
13424
13495
|
}, {
|
13425
13496
|
successMessageMode: "none"
|
13426
13497
|
}), KgLogger.debug(`${o.formID} | KgTable | retrieve() | retrieveDatas() | \u67E5\u8BE2\u63A5\u53E3\u8C03\u7528\u6210\u529F.`));
|
13427
|
-
let
|
13498
|
+
let Z = ref([]), ae = ref(0);
|
13428
13499
|
switch (!0) {
|
13429
|
-
case !
|
13430
|
-
|
13500
|
+
case !Q.value:
|
13501
|
+
Z.value = [], ae.value = 0;
|
13431
13502
|
break;
|
13432
|
-
case isArrayLike(
|
13433
|
-
|
13503
|
+
case isArrayLike(Q.value):
|
13504
|
+
Z.value = Q.value, ae.value = Q.value.length;
|
13434
13505
|
break;
|
13435
|
-
case ("total" in
|
13436
|
-
|
13506
|
+
case ("total" in Q.value && "records" in Q.value):
|
13507
|
+
Z.value = ($ = Q.value.records) != null ? $ : [], ae.value = (B = Q.value.total) != null ? B : 0;
|
13437
13508
|
break;
|
13438
13509
|
}
|
13439
13510
|
await u.store.emit(o.formID, "beforeSetDatas", {
|
13440
|
-
datas:
|
13511
|
+
datas: Z,
|
13441
13512
|
total: ae,
|
13442
|
-
setDatas(
|
13443
|
-
u.store.setDatas(o.formID,
|
13513
|
+
setDatas(te) {
|
13514
|
+
u.store.setDatas(o.formID, te);
|
13444
13515
|
}
|
13445
|
-
}), u.store.setDatas(o.formID,
|
13446
|
-
page:
|
13447
|
-
datas:
|
13448
|
-
setDatas(
|
13449
|
-
u.store.setDatas(o.formID,
|
13516
|
+
}), u.store.setDatas(o.formID, Z.value), O.total = ae.value, x(), v.value = [], await nextTick(), ((Y = o.varGridConfig.value) == null ? void 0 : Y.check_first_row_after_retrieve) === 1 && Z.value.length > 0 && u.store.setSelectedRows(o.formID, [Z.value[0]]), await u.store.emit(o.formID, "retrieve", {
|
13517
|
+
page: Q.value,
|
13518
|
+
datas: Z,
|
13519
|
+
setDatas(te) {
|
13520
|
+
u.store.setDatas(o.formID, te);
|
13450
13521
|
}
|
13451
13522
|
}), u.store.setIsRetrieved(o.formID, !0);
|
13452
13523
|
} catch (J) {
|
@@ -13456,71 +13527,71 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
13456
13527
|
}
|
13457
13528
|
}
|
13458
13529
|
}
|
13459
|
-
function
|
13460
|
-
u.store.setSelectedRows(o.formID,
|
13530
|
+
function X(L) {
|
13531
|
+
u.store.setSelectedRows(o.formID, L.map((H) => {
|
13461
13532
|
var q;
|
13462
13533
|
return (q = U.value) == null ? void 0 : q.find(($) => $[u.id.value] === H);
|
13463
13534
|
}).filter((H) => !!H));
|
13464
13535
|
}
|
13465
|
-
function z(
|
13536
|
+
function z(L) {
|
13466
13537
|
var H, q;
|
13467
13538
|
switch (u.isMultiSelect.value) {
|
13468
13539
|
case !0:
|
13469
13540
|
{
|
13470
|
-
const $ =
|
13471
|
-
|
13541
|
+
const $ = L[u.id.value];
|
13542
|
+
D.value.includes($) ? D.value = without$1(D.value, $) : D.value = [...(H = D.value) != null ? H : [], $];
|
13472
13543
|
}
|
13473
13544
|
break;
|
13474
13545
|
case !1:
|
13475
13546
|
{
|
13476
|
-
const $ =
|
13477
|
-
(q =
|
13547
|
+
const $ = L[u.id.value];
|
13548
|
+
(q = D.value) != null && q.includes($) ? D.value = [] : D.value = [$];
|
13478
13549
|
}
|
13479
13550
|
break;
|
13480
13551
|
}
|
13481
|
-
u.store.setSelectedRows(o.formID,
|
13482
|
-
var
|
13483
|
-
return (
|
13552
|
+
u.store.setSelectedRows(o.formID, D.value.map(($) => {
|
13553
|
+
var B;
|
13554
|
+
return (B = U.value) == null ? void 0 : B.find((Y) => Y[u.id.value] === $);
|
13484
13555
|
}).filter(($) => !!$));
|
13485
13556
|
}
|
13486
|
-
function
|
13487
|
-
H.width =
|
13557
|
+
function ee(L, H) {
|
13558
|
+
H.width = L, o.store.setVarGridDetailWidth(o.formID, H.dataIndex, L);
|
13488
13559
|
}
|
13489
|
-
async function
|
13490
|
-
var
|
13560
|
+
async function re(L, H, q, $) {
|
13561
|
+
var B;
|
13491
13562
|
switch ($.action) {
|
13492
13563
|
case "sort":
|
13493
13564
|
{
|
13494
13565
|
await nextTick();
|
13495
|
-
let
|
13496
|
-
|
13566
|
+
let Y = q;
|
13567
|
+
Y.order ? (R.column = (B = Y.field) != null ? B : void 0, R.order = Y.order === "ascend" ? "asc" : Y.order === "descend" ? "desc" : void 0) : (R.column = void 0, R.order = void 0), W(!0);
|
13497
13568
|
}
|
13498
13569
|
break;
|
13499
13570
|
}
|
13500
13571
|
}
|
13501
|
-
function
|
13572
|
+
function ie(L, H) {
|
13502
13573
|
var $;
|
13503
13574
|
const q = H[u.id.value];
|
13504
13575
|
switch (($ = o.varGridConfig.value) == null ? void 0 : $.expand_accordion_flg) {
|
13505
13576
|
case 0:
|
13506
|
-
|
13577
|
+
L ? v.value = uniq([...v.value, q]) : v.value = without$1(v.value, q);
|
13507
13578
|
break;
|
13508
13579
|
default:
|
13509
|
-
|
13580
|
+
L ? v.value = [q] : v.value = [];
|
13510
13581
|
break;
|
13511
13582
|
}
|
13512
13583
|
}
|
13513
|
-
function
|
13514
|
-
H !==
|
13584
|
+
function se(L, H) {
|
13585
|
+
H !== O.pageSize ? (O.pageIndex = 1, O.pageSize = H) : O.pageIndex = L, W();
|
13515
13586
|
}
|
13516
|
-
function ge(
|
13517
|
-
u.store.setSelectedRows(o.formID, [
|
13587
|
+
function ge(L) {
|
13588
|
+
u.store.setSelectedRows(o.formID, [L].map((H) => {
|
13518
13589
|
var q;
|
13519
13590
|
return (q = U.value) == null ? void 0 : q.find(($) => $[u.id.value] === H[u.id.value]);
|
13520
13591
|
}).filter((H) => !!H)), c.click(o.formID, KG_BUTTON_TYPE.UPDATE);
|
13521
13592
|
}
|
13522
13593
|
function ce({
|
13523
|
-
title:
|
13594
|
+
title: L,
|
13524
13595
|
column: H
|
13525
13596
|
}) {
|
13526
13597
|
switch (H.dataIndex) {
|
@@ -13530,32 +13601,32 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
13530
13601
|
}, null);
|
13531
13602
|
default:
|
13532
13603
|
return createVNode("pre", {
|
13533
|
-
title:
|
13534
|
-
}, [
|
13604
|
+
title: L
|
13605
|
+
}, [L]);
|
13535
13606
|
}
|
13536
13607
|
}
|
13537
13608
|
function ne() {
|
13538
|
-
var
|
13539
|
-
return (
|
13609
|
+
var L;
|
13610
|
+
return (L = n == null ? void 0 : n.KgTable) != null && L["summary.bodyCell"] ? createVNode(TableSummary, {
|
13540
13611
|
fixed: "bottom"
|
13541
13612
|
}, {
|
13542
13613
|
default: () => [createVNode(TableSummary.Row, null, {
|
13543
|
-
default: () => [
|
13614
|
+
default: () => [w.value && createVNode(TableSummary.Cell, {
|
13544
13615
|
index: 0
|
13545
13616
|
}, null), I.value && createVNode(TableSummary.Cell, {
|
13546
|
-
index:
|
13617
|
+
index: w.value ? 1 : 0
|
13547
13618
|
}, null), y.value.map((H, q) => {
|
13548
|
-
const $ = o.store.getVarGridDetail(o.formID, H.dataIndex),
|
13549
|
-
let
|
13550
|
-
return
|
13551
|
-
index:
|
13552
|
-
align:
|
13619
|
+
const $ = o.store.getVarGridDetail(o.formID, H.dataIndex), B = (() => ["left", "center", "right"].includes(($ == null ? void 0 : $.align) || "") ? $ == null ? void 0 : $.align : "left")();
|
13620
|
+
let Y = q;
|
13621
|
+
return w.value && I.value ? Y += 2 : (w.value || I.value) && (Y += 1), createVNode(TableSummary.Cell, {
|
13622
|
+
index: Y,
|
13623
|
+
align: B
|
13553
13624
|
}, {
|
13554
13625
|
default: () => {
|
13555
|
-
var J,
|
13556
|
-
return [(
|
13626
|
+
var J, Q;
|
13627
|
+
return [(Q = (J = n == null ? void 0 : n.KgTable) == null ? void 0 : J["summary.bodyCell"]) == null ? void 0 : Q.call(J, {
|
13557
13628
|
column: H,
|
13558
|
-
index:
|
13629
|
+
index: Y,
|
13559
13630
|
varGridDetail: $
|
13560
13631
|
})];
|
13561
13632
|
}
|
@@ -13565,38 +13636,38 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
13565
13636
|
}) : null;
|
13566
13637
|
}
|
13567
13638
|
function le({
|
13568
|
-
column:
|
13639
|
+
column: L,
|
13569
13640
|
index: H,
|
13570
13641
|
record: q,
|
13571
13642
|
text: $,
|
13572
|
-
value:
|
13643
|
+
value: B
|
13573
13644
|
}) {
|
13574
|
-
var
|
13575
|
-
let
|
13576
|
-
|
13645
|
+
var Q;
|
13646
|
+
let Y = "";
|
13647
|
+
L.customRender ? Y = L.customRender({
|
13577
13648
|
index: H,
|
13578
13649
|
record: q,
|
13579
|
-
column:
|
13650
|
+
column: L,
|
13580
13651
|
text: $,
|
13581
|
-
value:
|
13652
|
+
value: B,
|
13582
13653
|
renderIndex: H
|
13583
|
-
}) :
|
13654
|
+
}) : Y = B;
|
13584
13655
|
const J = createVNode(KgTableCell, {
|
13585
13656
|
kgRow: q,
|
13586
|
-
kgValue:
|
13587
|
-
kgVarName:
|
13657
|
+
kgValue: Y,
|
13658
|
+
kgVarName: L.dataIndex,
|
13588
13659
|
onKgUpdateLinkClick: () => ge(q)
|
13589
13660
|
}, null);
|
13590
|
-
if ((
|
13591
|
-
const
|
13661
|
+
if ((Q = n == null ? void 0 : n.KgTable) != null && Q.bodyCell) {
|
13662
|
+
const Z = L.dataIndex ? o.store.getVarGridDetail(o.formID, L.dataIndex) : null;
|
13592
13663
|
return n.KgTable.bodyCell({
|
13593
|
-
column:
|
13664
|
+
column: L,
|
13594
13665
|
index: H,
|
13595
13666
|
record: q,
|
13596
13667
|
text: $,
|
13597
|
-
value:
|
13668
|
+
value: B,
|
13598
13669
|
row: q,
|
13599
|
-
varGridDetail:
|
13670
|
+
varGridDetail: Z,
|
13600
13671
|
defaultRender: J
|
13601
13672
|
});
|
13602
13673
|
} else
|
@@ -13606,7 +13677,7 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
13606
13677
|
return !u.isReadAutomatically.value && !u.store.getIsRetrieved(o.formID) ? l.t("kg.KgTable.emptyText") : l.t("kg.emptyText");
|
13607
13678
|
}
|
13608
13679
|
return () => {
|
13609
|
-
var
|
13680
|
+
var L, H, q;
|
13610
13681
|
return createVNode("div", {
|
13611
13682
|
class: P.value,
|
13612
13683
|
"kg-frm_id": o.formID,
|
@@ -13624,16 +13695,16 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
13624
13695
|
dataSource: U.value,
|
13625
13696
|
loading: g.value,
|
13626
13697
|
rowKey: u.id.value,
|
13627
|
-
rowClassName: (H = (
|
13698
|
+
rowClassName: (H = (L = s == null ? void 0 : s.value) == null ? void 0 : L.KgTable) == null ? void 0 : H.kgRowClassName,
|
13628
13699
|
expandColumnWidth: 28,
|
13629
13700
|
expandedRowKeys: v.value,
|
13630
|
-
rowSelection:
|
13701
|
+
rowSelection: A.value,
|
13631
13702
|
customRow: ($) => ({
|
13632
|
-
onClick: (
|
13703
|
+
onClick: (B) => x(B, $)
|
13633
13704
|
}),
|
13634
|
-
onResizeColumn:
|
13635
|
-
onChange:
|
13636
|
-
onExpand:
|
13705
|
+
onResizeColumn: ee,
|
13706
|
+
onChange: re,
|
13707
|
+
onExpand: ie
|
13637
13708
|
}, {
|
13638
13709
|
headerCell: ce,
|
13639
13710
|
bodyCell: le,
|
@@ -13645,32 +13716,32 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
13645
13716
|
}, [createVNode("div", {
|
13646
13717
|
class: "left"
|
13647
13718
|
}, [u.isShowBottomLeft.value && createVNode(KgTableInfo, {
|
13648
|
-
kgShowClearCheck:
|
13649
|
-
kgShowClearTable:
|
13650
|
-
kgShowLocate:
|
13651
|
-
kgTotal:
|
13719
|
+
kgShowClearCheck: D.value.length > 0,
|
13720
|
+
kgShowClearTable: O.total > 0,
|
13721
|
+
kgShowLocate: D.value.length === 1,
|
13722
|
+
kgTotal: D.value.length,
|
13652
13723
|
kgDisabled: k.value
|
13653
13724
|
}, null)]), createVNode("div", {
|
13654
13725
|
class: "right"
|
13655
13726
|
}, [u.isShowBottomRight.value && createVNode(Pagination, {
|
13656
13727
|
size: "default",
|
13657
|
-
current:
|
13658
|
-
pageSize:
|
13728
|
+
current: O.pageIndex,
|
13729
|
+
pageSize: O.pageSize,
|
13659
13730
|
pageSizeOptions: u.pageSizeOptions.value.map(($) => String($)),
|
13660
|
-
total:
|
13731
|
+
total: O.total,
|
13661
13732
|
showSizeChanger: !0,
|
13662
13733
|
showQuickJumper: !1,
|
13663
13734
|
hideOnSinglePage: !1,
|
13664
|
-
disabled:
|
13735
|
+
disabled: V.value,
|
13665
13736
|
locale: {
|
13666
13737
|
page: ""
|
13667
13738
|
},
|
13668
|
-
showTotal: ($,
|
13669
|
-
from:
|
13670
|
-
to:
|
13739
|
+
showTotal: ($, B) => l.t("kg.KgTable.totalText", {
|
13740
|
+
from: B[0],
|
13741
|
+
to: B[1],
|
13671
13742
|
total: $
|
13672
13743
|
}),
|
13673
|
-
onChange: ($,
|
13744
|
+
onChange: ($, B) => se($, B)
|
13674
13745
|
}, null)])])]);
|
13675
13746
|
};
|
13676
13747
|
}
|
@@ -13895,8 +13966,8 @@ const KgButtonCreate = defineComponent({
|
|
13895
13966
|
attrs: a
|
13896
13967
|
}) {
|
13897
13968
|
const n = useKg(), s = useKgVar(), l = useKgButton(), o = useKgTable(), i = useKgSubmit(), c = computed(() => s.store.getVarButton(s.formID, e.kgVarName)), u = computed(() => {
|
13898
|
-
var C, T,
|
13899
|
-
return s.isUpdating.value || s.isCopying.value || s.isDeleting.value || o.isRetrieving.value || ((C = c.value) == null ? void 0 : C.dis_no_select_flg) === 1 && ((
|
13969
|
+
var C, T, M, k, V, w, I, A;
|
13970
|
+
return s.isUpdating.value || s.isCopying.value || s.isDeleting.value || o.isRetrieving.value || ((C = c.value) == null ? void 0 : C.dis_no_select_flg) === 1 && ((M = (T = o.selectedRows.value) == null ? void 0 : T.length) != null ? M : 0) === 0 || ((k = c.value) == null ? void 0 : k.dis_mult_select_flg) === 1 && ((w = (V = o.selectedRows.value) == null ? void 0 : V.length) != null ? w : 0) > 1 || ((I = c.value) == null ? void 0 : I.permission_type) === 2 && !n.p((A = c.value) == null ? void 0 : A.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
|
13900
13971
|
}), d = computed(() => !!s.isCreatingRequesting.value);
|
13901
13972
|
async function m() {
|
13902
13973
|
e.onKgClick && await e.onKgClick() || s.store.setIsCreating(s.formID, !0);
|
@@ -13918,7 +13989,7 @@ const KgButtonCreate = defineComponent({
|
|
13918
13989
|
return e.kgText ? e.kgText : n.t("kg.create");
|
13919
13990
|
}
|
13920
13991
|
function b() {
|
13921
|
-
var C, T,
|
13992
|
+
var C, T, M, k;
|
13922
13993
|
return i.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && s.isCreating.value ? null : createVNode(Button, {
|
13923
13994
|
type: "primary",
|
13924
13995
|
disabled: u.value,
|
@@ -13926,7 +13997,7 @@ const KgButtonCreate = defineComponent({
|
|
13926
13997
|
class: a.class,
|
13927
13998
|
"kg-id": (C = c.value) == null ? void 0 : C.id,
|
13928
13999
|
"kg-frm_id": (T = c.value) == null ? void 0 : T.frm_id,
|
13929
|
-
"kg-var_nam": (
|
14000
|
+
"kg-var_nam": (M = c.value) == null ? void 0 : M.var_nam,
|
13930
14001
|
"kg-cmd": (k = c.value) == null ? void 0 : k.cmd
|
13931
14002
|
}, {
|
13932
14003
|
default: () => [p(), g()]
|
@@ -14013,8 +14084,8 @@ const KgButtonCreate = defineComponent({
|
|
14013
14084
|
...KgVarUtil.parseCommandParameter((C = r.varGridConfig.value.cmd_prm) != null ? C : "")
|
14014
14085
|
}), ((T = r.varGridConfig.value) == null ? void 0 : T.convert_sort_field_to_under_score_flg) === 1 && y.column && (y.column = snakeCase$1(y.column)), y;
|
14015
14086
|
}), c = computed(() => {
|
14016
|
-
var y, p, g, b, E, C, T,
|
14017
|
-
return r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || n.isRetrieving.value || ((y = s.value) == null ? void 0 : y.dis_no_select_flg) === 1 && ((g = (p = n.selectedRows.value) == null ? void 0 : p.length) != null ? g : 0) === 0 || ((b = s.value) == null ? void 0 : b.dis_mult_select_flg) === 1 && ((C = (E = n.selectedRows.value) == null ? void 0 : E.length) != null ? C : 0) > 1 || ((T = s.value) == null ? void 0 : T.permission_type) === 2 && !t.p((
|
14087
|
+
var y, p, g, b, E, C, T, M;
|
14088
|
+
return r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || n.isRetrieving.value || ((y = s.value) == null ? void 0 : y.dis_no_select_flg) === 1 && ((g = (p = n.selectedRows.value) == null ? void 0 : p.length) != null ? g : 0) === 0 || ((b = s.value) == null ? void 0 : b.dis_mult_select_flg) === 1 && ((C = (E = n.selectedRows.value) == null ? void 0 : E.length) != null ? C : 0) > 1 || ((T = s.value) == null ? void 0 : T.permission_type) === 2 && !t.p((M = s.value) == null ? void 0 : M.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
|
14018
14089
|
}), u = ref(!1);
|
14019
14090
|
async function d() {
|
14020
14091
|
var y, p;
|
@@ -14095,8 +14166,8 @@ const KgButtonCreate = defineComponent({
|
|
14095
14166
|
...KgVarUtil.parseCommandParameter((C = (E = o.value) == null ? void 0 : E.cmd_prm) != null ? C : "")
|
14096
14167
|
}), g;
|
14097
14168
|
}), d = computed(() => {
|
14098
|
-
var g, b, E, C, T,
|
14099
|
-
return n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value || l.isRetrieving.value || ((g = o.value) == null ? void 0 : g.dis_no_select_flg) === 1 && ((E = (b = l.selectedRows.value) == null ? void 0 : b.length) != null ? E : 0) === 0 || ((C = o.value) == null ? void 0 : C.dis_mult_select_flg) === 1 && ((
|
14169
|
+
var g, b, E, C, T, M, k, V;
|
14170
|
+
return n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value || l.isRetrieving.value || ((g = o.value) == null ? void 0 : g.dis_no_select_flg) === 1 && ((E = (b = l.selectedRows.value) == null ? void 0 : b.length) != null ? E : 0) === 0 || ((C = o.value) == null ? void 0 : C.dis_mult_select_flg) === 1 && ((M = (T = l.selectedRows.value) == null ? void 0 : T.length) != null ? M : 0) > 1 || ((k = o.value) == null ? void 0 : k.permission_type) === 2 && !a.p((V = o.value) == null ? void 0 : V.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
|
14100
14171
|
}), m = ref(!1);
|
14101
14172
|
async function v(g) {
|
14102
14173
|
if (!i.value)
|
@@ -14183,8 +14254,8 @@ const KgButtonCreate = defineComponent({
|
|
14183
14254
|
...KgVarUtil.parseCommandParameter((C = r.varGridConfig.value.cmd_prm) != null ? C : "")
|
14184
14255
|
}), y;
|
14185
14256
|
}), c = computed(() => {
|
14186
|
-
var y, p, g, b, E, C, T,
|
14187
|
-
return r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || n.isRetrieving.value || ((y = s.value) == null ? void 0 : y.dis_no_select_flg) === 1 && ((g = (p = n.selectedRows.value) == null ? void 0 : p.length) != null ? g : 0) === 0 || ((b = s.value) == null ? void 0 : b.dis_mult_select_flg) === 1 && ((C = (E = n.selectedRows.value) == null ? void 0 : E.length) != null ? C : 0) > 1 || ((T = s.value) == null ? void 0 : T.permission_type) === 2 && !t.p((
|
14257
|
+
var y, p, g, b, E, C, T, M;
|
14258
|
+
return r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || n.isRetrieving.value || ((y = s.value) == null ? void 0 : y.dis_no_select_flg) === 1 && ((g = (p = n.selectedRows.value) == null ? void 0 : p.length) != null ? g : 0) === 0 || ((b = s.value) == null ? void 0 : b.dis_mult_select_flg) === 1 && ((C = (E = n.selectedRows.value) == null ? void 0 : E.length) != null ? C : 0) > 1 || ((T = s.value) == null ? void 0 : T.permission_type) === 2 && !t.p((M = s.value) == null ? void 0 : M.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
|
14188
14259
|
}), u = ref(!1);
|
14189
14260
|
async function d() {
|
14190
14261
|
var y, p;
|
@@ -14260,35 +14331,35 @@ const KgButtonCreate = defineComponent({
|
|
14260
14331
|
}
|
14261
14332
|
let m = null;
|
14262
14333
|
const v = async () => {
|
14263
|
-
var E, C, T,
|
14334
|
+
var E, C, T, M, k, V;
|
14264
14335
|
m == null || m.showLoading(), r.store.setIsOtherRequesting(r.formID, !0);
|
14265
14336
|
const b = s.selectedRows.value;
|
14266
14337
|
try {
|
14267
|
-
const
|
14338
|
+
const w = await httpClient().request({
|
14268
14339
|
method: (C = (E = e.kgButton) == null ? void 0 : E.cmd_method) != null ? C : "POST",
|
14269
14340
|
url: d,
|
14270
|
-
params: KgVarUtil.parseCommandParameter((
|
14341
|
+
params: KgVarUtil.parseCommandParameter((M = (T = e.kgButton) == null ? void 0 : T.cmd_prm) != null ? M : ""),
|
14271
14342
|
data: b != null ? b : []
|
14272
14343
|
});
|
14273
14344
|
if (((k = e.kgButton) == null ? void 0 : k.reload_all_after_done_flg) === 1) {
|
14274
|
-
if (((
|
14275
|
-
datas:
|
14345
|
+
if (((V = e.kgButton) == null ? void 0 : V.re_select_after_reload_flg) !== 0 && s.onRetrieve(async ({
|
14346
|
+
datas: A
|
14276
14347
|
}) => {
|
14277
|
-
const P =
|
14348
|
+
const P = A.value, N = intersectionWith$1(P, b != null ? b : [], (U, D) => (U == null ? void 0 : U[s.id.value]) === (D == null ? void 0 : D[s.id.value]));
|
14278
14349
|
return N.length > 0 && s.store.setSelectedRows(r.formID, N), !1;
|
14279
14350
|
}, !0), await n.store.emit(r.formID, "otherOk", {
|
14280
14351
|
button: e.kgButton,
|
14281
|
-
data:
|
14352
|
+
data: w
|
14282
14353
|
}))
|
14283
14354
|
return;
|
14284
14355
|
a.search(!0);
|
14285
14356
|
} else if (await n.store.emit(r.formID, "otherOk", {
|
14286
14357
|
button: e.kgButton,
|
14287
|
-
data:
|
14358
|
+
data: w
|
14288
14359
|
}))
|
14289
14360
|
return;
|
14290
|
-
} catch (
|
14291
|
-
console.error(
|
14361
|
+
} catch (w) {
|
14362
|
+
console.error(w);
|
14292
14363
|
} finally {
|
14293
14364
|
r.store.setIsOtherRequesting(r.formID, !1), m == null || m.hideLoading();
|
14294
14365
|
}
|
@@ -14388,8 +14459,8 @@ const KgButtonCreate = defineComponent({
|
|
14388
14459
|
}
|
14389
14460
|
});
|
14390
14461
|
const c = computed(() => s.store.getVarButton(s.formID, e.kgVarName)), u = computed(() => {
|
14391
|
-
var C, T,
|
14392
|
-
return s.isCreating.value || s.isCopying.value || s.isDeleting.value || l.isRetrieving.value || ((C = c.value) == null ? void 0 : C.dis_no_select_flg) === 1 && ((
|
14462
|
+
var C, T, M, k, V, w, I, A;
|
14463
|
+
return s.isCreating.value || s.isCopying.value || s.isDeleting.value || l.isRetrieving.value || ((C = c.value) == null ? void 0 : C.dis_no_select_flg) === 1 && ((M = (T = l.selectedRows.value) == null ? void 0 : T.length) != null ? M : 0) === 0 || ((k = c.value) == null ? void 0 : k.dis_mult_select_flg) === 1 && ((w = (V = l.selectedRows.value) == null ? void 0 : V.length) != null ? w : 0) > 1 || ((I = c.value) == null ? void 0 : I.permission_type) === 2 && !n.p((A = c.value) == null ? void 0 : A.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
|
14393
14464
|
}), d = computed(() => !!s.isUpdatingRequesting.value);
|
14394
14465
|
async function m() {
|
14395
14466
|
e.onKgClick && await e.onKgClick() || await o.store.emit(s.formID, "updateBeforeClick", {
|
@@ -14414,7 +14485,7 @@ const KgButtonCreate = defineComponent({
|
|
14414
14485
|
return e.kgText ? e.kgText : n.t("kg.update");
|
14415
14486
|
}
|
14416
14487
|
function b() {
|
14417
|
-
var C, T,
|
14488
|
+
var C, T, M, k;
|
14418
14489
|
return i.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && s.isUpdating.value ? null : createVNode(Button, {
|
14419
14490
|
type: "primary",
|
14420
14491
|
disabled: u.value,
|
@@ -14423,7 +14494,7 @@ const KgButtonCreate = defineComponent({
|
|
14423
14494
|
class: a.class,
|
14424
14495
|
"kg-id": (C = c.value) == null ? void 0 : C.id,
|
14425
14496
|
"kg-frm_id": (T = c.value) == null ? void 0 : T.frm_id,
|
14426
|
-
"kg-var_nam": (
|
14497
|
+
"kg-var_nam": (M = c.value) == null ? void 0 : M.var_nam,
|
14427
14498
|
"kg-cmd": (k = c.value) == null ? void 0 : k.cmd
|
14428
14499
|
}, {
|
14429
14500
|
default: () => [p(), g()]
|
@@ -15155,9 +15226,9 @@ const KgSearch_ConfigModal_VarProfileMaster = "", getProps$c = () => ({
|
|
15155
15226
|
row: C,
|
15156
15227
|
model: T
|
15157
15228
|
}) => {
|
15158
|
-
var k,
|
15159
|
-
const
|
15160
|
-
switch (i.value =
|
15229
|
+
var k, V, w;
|
15230
|
+
const M = o.store.getSystemVarProfileDetails(o.formID);
|
15231
|
+
switch (i.value = M ? cloneDeep(unref(toRaw(M))) : [], !0) {
|
15161
15232
|
case g: {
|
15162
15233
|
c.value = [];
|
15163
15234
|
break;
|
@@ -15174,15 +15245,15 @@ const KgSearch_ConfigModal_VarProfileMaster = "", getProps$c = () => ({
|
|
15174
15245
|
});
|
15175
15246
|
i.value = i.value.map((P) => {
|
15176
15247
|
var U;
|
15177
|
-
const N = (U = I == null ? void 0 : I.varProfileDetails) == null ? void 0 : U.find((
|
15248
|
+
const N = (U = I == null ? void 0 : I.varProfileDetails) == null ? void 0 : U.find((D) => D.var_nam === P.var_nam);
|
15178
15249
|
return N ? {
|
15179
15250
|
...P,
|
15180
15251
|
...N,
|
15181
15252
|
id: P.id
|
15182
15253
|
} : P;
|
15183
15254
|
});
|
15184
|
-
const
|
15185
|
-
c.value = i.value.filter((P) =>
|
15255
|
+
const A = (V = (k = I == null ? void 0 : I.varProfileDetails) == null ? void 0 : k.map((P) => P.var_nam)) != null ? V : [];
|
15256
|
+
c.value = i.value.filter((P) => A.includes(P.var_nam)).map((P) => P.id);
|
15186
15257
|
} catch (I) {
|
15187
15258
|
throw I;
|
15188
15259
|
} finally {
|
@@ -15195,7 +15266,7 @@ const KgSearch_ConfigModal_VarProfileMaster = "", getProps$c = () => ({
|
|
15195
15266
|
}
|
15196
15267
|
switch (!0) {
|
15197
15268
|
case E: {
|
15198
|
-
T.value.prf_var_nam = ((
|
15269
|
+
T.value.prf_var_nam = ((w = T.value.prf_var_nam) != null ? w : "") + "_COPY";
|
15199
15270
|
break;
|
15200
15271
|
}
|
15201
15272
|
}
|
@@ -15263,11 +15334,11 @@ const KgSearch_ConfigModal_VarProfileMaster = "", getProps$c = () => ({
|
|
15263
15334
|
selectedKeys: E,
|
15264
15335
|
disabled: C,
|
15265
15336
|
onItemSelectAll: T,
|
15266
|
-
onItemSelect:
|
15337
|
+
onItemSelect: M
|
15267
15338
|
}) => {
|
15268
|
-
const k = b.sort((
|
15269
|
-
var I,
|
15270
|
-
return ((I =
|
15339
|
+
const k = b.sort((V, w) => {
|
15340
|
+
var I, A;
|
15341
|
+
return ((I = V.srtseq) != null ? I : 0) - ((A = w.srtseq) != null ? A : 0);
|
15271
15342
|
});
|
15272
15343
|
return u.value = k, createVNode(Table, {
|
15273
15344
|
pagination: !1,
|
@@ -15280,17 +15351,17 @@ const KgSearch_ConfigModal_VarProfileMaster = "", getProps$c = () => ({
|
|
15280
15351
|
columns: g === "left" ? leftVarProfileDetailColumns(e.hostFormID) : rightVarProfileDetailColumns(e.hostFormID),
|
15281
15352
|
rowKey: "id",
|
15282
15353
|
dataSource: k,
|
15283
|
-
customRow: (
|
15284
|
-
let
|
15285
|
-
onClick: (I) => p(I,
|
15354
|
+
customRow: (V) => {
|
15355
|
+
let w = {
|
15356
|
+
onClick: (I) => p(I, V, g, E)
|
15286
15357
|
};
|
15287
|
-
return g === "right" && (
|
15358
|
+
return g === "right" && (w["kg-host-frm_id"] = o.formID, w["kg-var_nam"] = V.var_nam), w;
|
15288
15359
|
},
|
15289
15360
|
rowSelection: v({
|
15290
15361
|
disabled: C,
|
15291
15362
|
selectedKeys: E,
|
15292
15363
|
onItemSelectAll: T,
|
15293
|
-
onItemSelect:
|
15364
|
+
onItemSelect: M
|
15294
15365
|
})
|
15295
15366
|
}, null);
|
15296
15367
|
}
|
@@ -15310,16 +15381,16 @@ const KgSearch_ConfigModal_VarProfileMaster = "", getProps$c = () => ({
|
|
15310
15381
|
getCheckboxProps: (T) => ({
|
15311
15382
|
disabled: g || T.disabled
|
15312
15383
|
}),
|
15313
|
-
onSelectAll(T,
|
15314
|
-
const k =
|
15315
|
-
key:
|
15316
|
-
}) =>
|
15384
|
+
onSelectAll(T, M) {
|
15385
|
+
const k = M.filter((V) => !V.disabled).map(({
|
15386
|
+
key: V
|
15387
|
+
}) => V);
|
15317
15388
|
E(k, T);
|
15318
15389
|
},
|
15319
15390
|
onSelect({
|
15320
15391
|
key: T
|
15321
|
-
},
|
15322
|
-
C(T,
|
15392
|
+
}, M) {
|
15393
|
+
C(T, M);
|
15323
15394
|
},
|
15324
15395
|
selectedRowKeys: b,
|
15325
15396
|
columnWidth: 32
|
@@ -15528,23 +15599,23 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
15528
15599
|
});
|
15529
15600
|
_useLayoutHeaderResizeObserver();
|
15530
15601
|
const p = _useFormModel(v, y), g = computed(() => {
|
15531
|
-
var
|
15532
|
-
if (!isNil((
|
15533
|
-
return (
|
15602
|
+
var K, x, W, X;
|
15603
|
+
if (!isNil((x = (K = r == null ? void 0 : r.value) == null ? void 0 : K.KgSearch) == null ? void 0 : x.kgDisabled))
|
15604
|
+
return (X = (W = r == null ? void 0 : r.value) == null ? void 0 : W.KgSearch) == null ? void 0 : X.kgDisabled;
|
15534
15605
|
if (!isNil(e.kgDisabled))
|
15535
15606
|
return e.kgDisabled;
|
15536
15607
|
}), b = computed(() => {
|
15537
|
-
var
|
15538
|
-
return !!(g.value || l.isRetrieving.value || ((
|
15608
|
+
var K, x;
|
15609
|
+
return !!(g.value || l.isRetrieving.value || ((K = n.varButtonSearch.value) == null ? void 0 : K.permission_type) === 2 && !a.p((x = n.varButtonSearch.value) == null ? void 0 : x.permission_code) || n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value);
|
15539
15610
|
}), E = computed(() => !!(g.value || l.isRetrieving.value || n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value)), C = computed(() => !!(g.value || l.isRetrieving.value)), T = ref({
|
15540
15611
|
visible: !1
|
15541
|
-
}),
|
15542
|
-
var
|
15543
|
-
if (n.t((
|
15544
|
-
return n.t((
|
15545
|
-
}),
|
15546
|
-
var
|
15547
|
-
switch ((
|
15612
|
+
}), M = computed(() => y.value.kgHeight === m.value), k = computed(() => {
|
15613
|
+
var K, x, W;
|
15614
|
+
if (n.t((K = n.varButtonSearch.value) == null ? void 0 : K.var_nam).value !== ((x = n.varButtonSearch.value) == null ? void 0 : x.var_nam))
|
15615
|
+
return n.t((W = n.varButtonSearch.value) == null ? void 0 : W.var_nam).value;
|
15616
|
+
}), V = computed(() => {
|
15617
|
+
var K;
|
15618
|
+
switch ((K = n.varButtonSearch.value) == null ? void 0 : K.primary_flg) {
|
15548
15619
|
case 1:
|
15549
15620
|
return !0;
|
15550
15621
|
case 0:
|
@@ -15552,34 +15623,34 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
15552
15623
|
default:
|
15553
15624
|
return !0;
|
15554
15625
|
}
|
15555
|
-
}),
|
15556
|
-
let
|
15557
|
-
return o.value && (
|
15626
|
+
}), w = computed(() => !!(n.isRetrieving.value || n.isRetrievingVarProfileMaster.value || c.value && !!n.isOtherRequesting.value)), I = computed(() => !!n.isRetrieving.value || !!n.isRetrievingVarProfileMaster.value), A = computed(() => {
|
15627
|
+
let K = "kg-search";
|
15628
|
+
return o.value && (K += " kg-search--visible"), c.value && (K += " kg-search--teleport"), K;
|
15558
15629
|
});
|
15559
|
-
async function P(
|
15630
|
+
async function P(K = !1) {
|
15560
15631
|
if (KgLogger.debug(`${n.formID} | KgSearch | onSearch() | \u8FDB\u5165\u65B9\u6CD5.`), b.value) {
|
15561
15632
|
KgLogger.debug(`${n.formID} | KgSearch | onSearch() | \u91CD\u7F6E\u6309\u94AE\u7981\u7528.`);
|
15562
15633
|
return;
|
15563
15634
|
}
|
15564
15635
|
o.value ? v.value && v.value.validate().then(async () => {
|
15565
15636
|
await s.store.emit(n.formID, "search", {
|
15566
|
-
resetPageIndex:
|
15637
|
+
resetPageIndex: K
|
15567
15638
|
});
|
15568
|
-
}).catch((
|
15639
|
+
}).catch((x) => {
|
15569
15640
|
KgLogger.debug(`${n.formID} | KgSearch | onSearch() | \u8868\u5355\u9A8C\u8BC1\u5931\u8D25.`, {
|
15570
|
-
e:
|
15641
|
+
e: x
|
15571
15642
|
});
|
15572
15643
|
}) : await s.store.emit(n.formID, "search", {
|
15573
|
-
resetPageIndex:
|
15644
|
+
resetPageIndex: K
|
15574
15645
|
});
|
15575
15646
|
}
|
15576
15647
|
s.store.setSearchFn(n.formID, P);
|
15577
15648
|
async function N() {
|
15578
15649
|
p.initFormModel(), o.value ? v.value && v.value.validate().then(async () => {
|
15579
15650
|
await s.store.emit(n.formID, "reset", {});
|
15580
|
-
}).catch((
|
15651
|
+
}).catch((K) => {
|
15581
15652
|
KgLogger.debug("[KgSearch] \u8868\u5355\u9A8C\u8BC1\u5931\u8D25", {
|
15582
|
-
e:
|
15653
|
+
e: K
|
15583
15654
|
});
|
15584
15655
|
}) : await s.store.emit(n.formID, "reset", {});
|
15585
15656
|
}
|
@@ -15587,32 +15658,32 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
15587
15658
|
function U() {
|
15588
15659
|
return P(!0), Promise.resolve(!0);
|
15589
15660
|
}
|
15590
|
-
function
|
15591
|
-
var
|
15661
|
+
function D() {
|
15662
|
+
var K;
|
15592
15663
|
return createVNode("div", {
|
15593
15664
|
class: "title",
|
15594
15665
|
onClick: F
|
15595
|
-
}, [((
|
15666
|
+
}, [((K = t == null ? void 0 : t.KgSearch) == null ? void 0 : K.left) && createVNode("div", {
|
15596
15667
|
class: "kg-search-title-left",
|
15597
|
-
onClick: (
|
15598
|
-
|
15668
|
+
onClick: (x) => {
|
15669
|
+
x.stopPropagation(), x.preventDefault();
|
15599
15670
|
}
|
15600
|
-
}, [t.KgSearch.left()]),
|
15671
|
+
}, [t.KgSearch.left()]), M.value ? createVNode(CaretUpOutlined$1, null, null) : createVNode(CaretDownOutlined$1, null, null), createVNode("span", null, [a.t("kg.KgSearch.title")])]);
|
15601
15672
|
}
|
15602
|
-
function
|
15603
|
-
var
|
15604
|
-
return ((
|
15605
|
-
value: (
|
15673
|
+
function O() {
|
15674
|
+
var K, x, W, X;
|
15675
|
+
return ((W = (x = (K = n.varProfileMasters) == null ? void 0 : K.value) == null ? void 0 : x.length) != null ? W : 0) === 0 ? null : createVNode(Fragment, null, [createVNode(Select, {
|
15676
|
+
value: (X = n.currentVarProfileMasterID.value) != null ? X : void 0,
|
15606
15677
|
"onUpdate:value": (z) => n.store.setCurrentVarProfileMasterID(n.formID, z),
|
15607
15678
|
disabled: E.value,
|
15608
15679
|
class: "kg-search-profile-master-select"
|
15609
15680
|
}, {
|
15610
15681
|
default: () => {
|
15611
|
-
var z,
|
15612
|
-
return (
|
15613
|
-
value:
|
15682
|
+
var z, ee;
|
15683
|
+
return (ee = (z = n.varProfileMasters) == null ? void 0 : z.value) == null ? void 0 : ee.map((re) => createVNode(Select.Option, {
|
15684
|
+
value: re.id
|
15614
15685
|
}, {
|
15615
|
-
default: () => [n.t(
|
15686
|
+
default: () => [n.t(re == null ? void 0 : re.prf_var_nam).value]
|
15616
15687
|
}));
|
15617
15688
|
},
|
15618
15689
|
suffixIcon: () => createVNode(CaretDownOutlined$1, {
|
@@ -15632,9 +15703,9 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
15632
15703
|
hostFormID: n.formID
|
15633
15704
|
}, null)]);
|
15634
15705
|
}
|
15635
|
-
function
|
15636
|
-
var
|
15637
|
-
return createVNode(Fragment, null, [
|
15706
|
+
function R() {
|
15707
|
+
var K, x, W, X, z;
|
15708
|
+
return createVNode(Fragment, null, [O(), !(((K = n.varButtonSearch.value) == null ? void 0 : K.permission_type) !== 2 && !a.p((x = n.varButtonSearch.value) == null ? void 0 : x.permission_code)) && createVNode(Button, {
|
15638
15709
|
type: "primary",
|
15639
15710
|
ghost: !b.value,
|
15640
15711
|
disabled: b.value,
|
@@ -15644,11 +15715,11 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
15644
15715
|
default: () => [createVNode(ReloadOutlined$1, null, null), a.t("kg.reset")]
|
15645
15716
|
}), createVNode(KgButton.Item, {
|
15646
15717
|
kgType: KG_BUTTON_TYPE.SEARCH,
|
15647
|
-
kgVarName: (
|
15648
|
-
kgIcon: (
|
15718
|
+
kgVarName: (W = n.varButtonSearch.value) == null ? void 0 : W.var_nam,
|
15719
|
+
kgIcon: (X = n.varButtonSearch.value) == null ? void 0 : X.icon,
|
15649
15720
|
kgText: k.value,
|
15650
15721
|
kgColor: (z = n.varButtonSearch.value) == null ? void 0 : z.color,
|
15651
|
-
kgPrimary:
|
15722
|
+
kgPrimary: V.value,
|
15652
15723
|
kgLoading: C.value,
|
15653
15724
|
onKgClick: U
|
15654
15725
|
}, null)]);
|
@@ -15658,19 +15729,19 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
15658
15729
|
spinning: I.value
|
15659
15730
|
}, {
|
15660
15731
|
default: () => {
|
15661
|
-
var
|
15732
|
+
var K;
|
15662
15733
|
return [createVNode(KgForm, {
|
15663
15734
|
ref: v,
|
15664
|
-
model: (
|
15735
|
+
model: (K = s.model.value) != null ? K : {}
|
15665
15736
|
}, {
|
15666
15737
|
default: () => [createVNode(Row, {
|
15667
15738
|
gutter: 6
|
15668
15739
|
}, {
|
15669
15740
|
default: () => {
|
15670
|
-
var
|
15671
|
-
return [(
|
15672
|
-
key:
|
15673
|
-
kgVarName:
|
15741
|
+
var x;
|
15742
|
+
return [(x = n.currentVarProfileDetails.value) == null ? void 0 : x.map((W) => createVNode(KgForm.Item, {
|
15743
|
+
key: W.var_nam,
|
15744
|
+
kgVarName: W.var_nam,
|
15674
15745
|
kgContext: KG_FORM_CONTEXT.SEARCH,
|
15675
15746
|
onKgSubmit: () => P(!0)
|
15676
15747
|
}, null))];
|
@@ -15681,15 +15752,15 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
15681
15752
|
});
|
15682
15753
|
}
|
15683
15754
|
function F() {
|
15684
|
-
|
15755
|
+
M.value ? y.value.kgHeight = u.value : y.value.kgHeight = m.value;
|
15685
15756
|
}
|
15686
15757
|
return () => createVNode(KgResizable, {
|
15687
15758
|
kgHeight: y.value.kgHeight,
|
15688
|
-
"onUpdate:kgHeight": (
|
15759
|
+
"onUpdate:kgHeight": (K) => y.value.kgHeight = K,
|
15689
15760
|
kgMinHeight: m.value,
|
15690
15761
|
kgMaxHeight: d.value,
|
15691
15762
|
kgDisabled: !i.value,
|
15692
|
-
kgClass:
|
15763
|
+
kgClass: A.value,
|
15693
15764
|
"kg-frm_id": n.formID
|
15694
15765
|
}, {
|
15695
15766
|
default: () => [o.value && createVNode("div", {
|
@@ -15703,11 +15774,11 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
15703
15774
|
default: () => [createVNode("div", {
|
15704
15775
|
class: "ant-collapse-header"
|
15705
15776
|
}, [createVNode(Spin, {
|
15706
|
-
spinning:
|
15777
|
+
spinning: w.value
|
15707
15778
|
}, {
|
15708
|
-
default: () => [
|
15779
|
+
default: () => [D(), createVNode("div", {
|
15709
15780
|
class: "ant-collapse-extra"
|
15710
|
-
}, [
|
15781
|
+
}, [R()])]
|
15711
15782
|
})])]
|
15712
15783
|
}), createVNode("div", {
|
15713
15784
|
class: "ant-collapse-content ant-collapse-content-active"
|
@@ -15779,13 +15850,13 @@ function useMagicKeys(e = {}) {
|
|
15779
15850
|
}
|
15780
15851
|
function v(p, g) {
|
15781
15852
|
var b, E;
|
15782
|
-
const C = (b = p.key) == null ? void 0 : b.toLowerCase(), T = (E = p.code) == null ? void 0 : E.toLowerCase(),
|
15853
|
+
const C = (b = p.key) == null ? void 0 : b.toLowerCase(), T = (E = p.code) == null ? void 0 : E.toLowerCase(), M = [T, C].filter(Boolean);
|
15783
15854
|
T && (g ? l.add(p.code) : l.delete(p.code));
|
15784
|
-
for (const k of
|
15855
|
+
for (const k of M)
|
15785
15856
|
u.add(k), d(k, g);
|
15786
15857
|
C === "meta" && !g ? (c.forEach((k) => {
|
15787
15858
|
l.delete(k), d(k, !1);
|
15788
|
-
}), c.clear()) : typeof p.getModifierState == "function" && p.getModifierState("Meta") && g && [...l, ...
|
15859
|
+
}), c.clear()) : typeof p.getModifierState == "function" && p.getModifierState("Meta") && g && [...l, ...M].forEach((k) => c.add(k));
|
15789
15860
|
}
|
15790
15861
|
r && (useEventListener(r, "keydown", (p) => (v(p, !0), s(p)), { passive: n }), useEventListener(r, "keyup", (p) => (v(p, !1), s(p)), { passive: n }), useEventListener("blur", m, { passive: !0 }), useEventListener("focus", m, { passive: !0 }));
|
15791
15862
|
const y = new Proxy(i, {
|
@@ -16184,7 +16255,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
16184
16255
|
columnWidth: 32,
|
16185
16256
|
hideSelectAll: !0,
|
16186
16257
|
selectedRowKeys: d,
|
16187
|
-
onSelect: (N) =>
|
16258
|
+
onSelect: (N) => V(N)
|
16188
16259
|
}), v = ref({
|
16189
16260
|
visible: !1
|
16190
16261
|
}), y = computed(() => !!(unref(u) || unref(n) || unref(s) || unref(l))), p = computed(() => {
|
@@ -16196,15 +16267,15 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
16196
16267
|
}, {
|
16197
16268
|
immediate: !0
|
16198
16269
|
}), watch(() => a.getSelectedVarCatalog, async (N) => {
|
16199
|
-
var U,
|
16200
|
-
i.value.var_text = (U = N == null ? void 0 : N.var_text) != null ? U : "", (
|
16270
|
+
var U, D;
|
16271
|
+
i.value.var_text = (U = N == null ? void 0 : N.var_text) != null ? U : "", (D = o.value) == null || D.clearValidate();
|
16201
16272
|
});
|
16202
16273
|
async function E(N = !1) {
|
16203
|
-
var U,
|
16274
|
+
var U, D, O;
|
16204
16275
|
n.value = !0;
|
16205
16276
|
try {
|
16206
16277
|
const {
|
16207
|
-
records:
|
16278
|
+
records: R
|
16208
16279
|
} = await List({
|
16209
16280
|
params: {
|
16210
16281
|
pageNo: 1,
|
@@ -16215,49 +16286,49 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
16215
16286
|
order: "asc"
|
16216
16287
|
}
|
16217
16288
|
});
|
16218
|
-
if (u.value = null, c.value =
|
16289
|
+
if (u.value = null, c.value = R != null ? R : [], N) {
|
16219
16290
|
const G = c.value.find((F) => {
|
16220
|
-
var
|
16221
|
-
return F.id === ((
|
16291
|
+
var K;
|
16292
|
+
return F.id === ((K = a.getSelectedVarCatalog) == null ? void 0 : K.id);
|
16222
16293
|
});
|
16223
16294
|
a.setSelectedVarCatalog(G != null ? G : null), d.value = G != null && G.id ? [G.id] : [];
|
16224
16295
|
} else
|
16225
|
-
a.setSelectedVarCatalog((
|
16226
|
-
} catch (
|
16227
|
-
KgLogger.debug(
|
16296
|
+
a.setSelectedVarCatalog((D = c.value[0]) != null ? D : null), d.value = (O = c.value[0]) != null && O.id ? [c.value[0].id] : [];
|
16297
|
+
} catch (R) {
|
16298
|
+
KgLogger.debug(R == null ? void 0 : R.message);
|
16228
16299
|
} finally {
|
16229
16300
|
n.value = !1;
|
16230
16301
|
}
|
16231
16302
|
}
|
16232
16303
|
async function C() {
|
16233
|
-
var N, U,
|
16304
|
+
var N, U, D;
|
16234
16305
|
try {
|
16235
16306
|
s.value = !0, await ((N = o.value) == null ? void 0 : N.validate());
|
16236
|
-
const
|
16307
|
+
const O = new VarCatalog({
|
16237
16308
|
...(U = a.getSelectedVarCatalog) != null ? U : {},
|
16238
|
-
var_text: (
|
16309
|
+
var_text: (D = i.value) == null ? void 0 : D.var_text
|
16239
16310
|
});
|
16240
|
-
|
16241
|
-
data:
|
16311
|
+
O.id ? O.cust_lvl === KG_CUSTOM_LEVEL.L0 ? (O.cust_lvl = KG_CUSTOM_LEVEL.L10, Reflect.deleteProperty(O, "id"), await Add({
|
16312
|
+
data: O
|
16242
16313
|
}, {
|
16243
16314
|
successMessageMode: "none"
|
16244
16315
|
}), message.success({
|
16245
16316
|
content: t.t("kg.KgVarConfig.createSuccess")
|
16246
16317
|
}), await E()) : (await Edit({
|
16247
|
-
data:
|
16318
|
+
data: O
|
16248
16319
|
}, {
|
16249
16320
|
successMessageMode: "none"
|
16250
16321
|
}), message.success({
|
16251
16322
|
content: t.t("kg.KgVarConfig.saveSuccess")
|
16252
16323
|
}), await E(!0)) : (await Add({
|
16253
|
-
data:
|
16324
|
+
data: O
|
16254
16325
|
}, {
|
16255
16326
|
successMessageMode: "none"
|
16256
16327
|
}), message.success({
|
16257
16328
|
content: t.t("kg.KgVarConfig.createSuccess")
|
16258
16329
|
}), await E()), r.retrieve(e == null ? void 0 : e.value);
|
16259
|
-
} catch (
|
16260
|
-
KgUtil.throwIfNotFormError(
|
16330
|
+
} catch (O) {
|
16331
|
+
KgUtil.throwIfNotFormError(O);
|
16261
16332
|
} finally {
|
16262
16333
|
s.value = !1;
|
16263
16334
|
}
|
@@ -16266,18 +16337,18 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
16266
16337
|
isAllForm: N,
|
16267
16338
|
isAllLanguage: U
|
16268
16339
|
}) {
|
16269
|
-
var
|
16340
|
+
var D, O, R;
|
16270
16341
|
u.value = new VarCatalog({
|
16271
16342
|
id: "",
|
16272
16343
|
cust_lvl: KG_CUSTOM_LEVEL.L10,
|
16273
|
-
grp_nam: (
|
16274
|
-
var_nam: (
|
16344
|
+
grp_nam: (D = a.getSelectedVar) == null ? void 0 : D.grp_nam,
|
16345
|
+
var_nam: (O = a.getSelectedVar) == null ? void 0 : O.var_nam,
|
16275
16346
|
frm_id: N || !(e != null && e.value) ? "ALL" : e == null ? void 0 : e.value,
|
16276
|
-
locale_id: U ? "ALL" : (
|
16347
|
+
locale_id: U ? "ALL" : (R = t.locale) == null ? void 0 : R.value,
|
16277
16348
|
var_text: ""
|
16278
16349
|
}), c.value = [...c.value, u.value], a.setSelectedVarCatalog(unref(u)), d.value = [""];
|
16279
16350
|
}
|
16280
|
-
function
|
16351
|
+
function M() {
|
16281
16352
|
var U;
|
16282
16353
|
c.value = without$1(c.value, u.value), u.value = null;
|
16283
16354
|
const N = (U = c.value[0]) != null ? U : null;
|
@@ -16300,7 +16371,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
16300
16371
|
}
|
16301
16372
|
});
|
16302
16373
|
}
|
16303
|
-
function
|
16374
|
+
function V(N) {
|
16304
16375
|
var U;
|
16305
16376
|
((U = a.getSelectedVarCatalog) == null ? void 0 : U.id) !== N.id && (unref(u) ? KgUtil.confirm({
|
16306
16377
|
content: t.t("kg.KgVarConfig.discardConfirmMessage"),
|
@@ -16309,14 +16380,14 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
16309
16380
|
}
|
16310
16381
|
}) : (a.setSelectedVarCatalog(unref(N)), d.value = [N.id]));
|
16311
16382
|
}
|
16312
|
-
function
|
16383
|
+
function w() {
|
16313
16384
|
v.value.visible = !0;
|
16314
16385
|
}
|
16315
16386
|
function I() {
|
16316
16387
|
return createVNode("div", {
|
16317
16388
|
class: "buttons"
|
16318
16389
|
}, [createVNode(Button, {
|
16319
|
-
onClick:
|
16390
|
+
onClick: w,
|
16320
16391
|
disabled: y.value,
|
16321
16392
|
type: "primary"
|
16322
16393
|
}, {
|
@@ -16331,7 +16402,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
16331
16402
|
default: () => [createVNode(DeleteOutlined$1, null, null), t.t("common.delText")]
|
16332
16403
|
})]);
|
16333
16404
|
}
|
16334
|
-
function
|
16405
|
+
function A() {
|
16335
16406
|
let N, U;
|
16336
16407
|
return createVNode("div", {
|
16337
16408
|
class: "form"
|
@@ -16349,7 +16420,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
16349
16420
|
}, {
|
16350
16421
|
default: () => [createVNode(Textarea, {
|
16351
16422
|
value: i.value.var_text,
|
16352
|
-
"onUpdate:value": (
|
16423
|
+
"onUpdate:value": (D) => i.value.var_text = D,
|
16353
16424
|
disabled: !a.getSelectedVarCatalog
|
16354
16425
|
}, null), createVNode("button", {
|
16355
16426
|
hidden: !0
|
@@ -16359,7 +16430,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
16359
16430
|
class: "buttons"
|
16360
16431
|
}, [createVNode(Button, {
|
16361
16432
|
disabled: g.value,
|
16362
|
-
onClick:
|
16433
|
+
onClick: M
|
16363
16434
|
}, _isSlot(N = t.t("common.cancelText")) ? N : {
|
16364
16435
|
default: () => [N]
|
16365
16436
|
}), createVNode(Button, {
|
@@ -16372,9 +16443,9 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
16372
16443
|
})])]);
|
16373
16444
|
}
|
16374
16445
|
function P(N) {
|
16375
|
-
var
|
16446
|
+
var D;
|
16376
16447
|
let U = "";
|
16377
|
-
return N.id || (U += " ant-table-row-create"), N.id === ((
|
16448
|
+
return N.id || (U += " ant-table-row-create"), N.id === ((D = a.getSelectedVarCatalog) == null ? void 0 : D.id) && (U += " ant-table-row-selected "), U;
|
16378
16449
|
}
|
16379
16450
|
return () => createVNode("div", {
|
16380
16451
|
class: "kg-var-config-modal-var-var-catalog"
|
@@ -16393,9 +16464,9 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
16393
16464
|
rowClassName: P,
|
16394
16465
|
rowSelection: m.value,
|
16395
16466
|
customRow: (N) => ({
|
16396
|
-
onClick: () =>
|
16467
|
+
onClick: () => V(N)
|
16397
16468
|
})
|
16398
|
-
}, null),
|
16469
|
+
}, null), A(), createVNode(KgVarConfigModalVarCreateModal, {
|
16399
16470
|
visible: v.value.visible,
|
16400
16471
|
"onUpdate:visible": (N) => v.value.visible = N,
|
16401
16472
|
onKgOk: T
|
@@ -16721,22 +16792,22 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
16721
16792
|
customRender: ({
|
16722
16793
|
record: T
|
16723
16794
|
}) => {
|
16724
|
-
var k,
|
16725
|
-
const
|
16726
|
-
return createVNode("div", null, [createVNode("div", null, [(k =
|
16795
|
+
var k, V, w;
|
16796
|
+
const M = T;
|
16797
|
+
return createVNode("div", null, [createVNode("div", null, [(k = M.whDsc) != null ? k : " ", createTextVNode(" - "), (V = M.whId) != null ? V : " "]), createVNode("div", {
|
16727
16798
|
class: "address"
|
16728
|
-
}, [(
|
16799
|
+
}, [(w = M.adrId) != null ? w : " "])]);
|
16729
16800
|
}
|
16730
16801
|
}]), u = ref([]), d = computed(() => {
|
16731
|
-
var
|
16732
|
-
const T = (
|
16802
|
+
var M;
|
16803
|
+
const T = (M = s.value) == null ? void 0 : M.toUpperCase();
|
16733
16804
|
return u.value.filter((k) => {
|
16734
|
-
var
|
16735
|
-
return ((
|
16805
|
+
var V, w, I, A, P, N;
|
16806
|
+
return ((w = (V = k.whDsc) == null ? void 0 : V.toUpperCase()) == null ? void 0 : w.includes(T)) || ((A = (I = k.whId) == null ? void 0 : I.toUpperCase()) == null ? void 0 : A.includes(T)) || ((N = (P = k.adrId) == null ? void 0 : P.toUpperCase()) == null ? void 0 : N.includes(T));
|
16736
16807
|
});
|
16737
16808
|
}), m = computed(() => {
|
16738
|
-
var T,
|
16739
|
-
return ((
|
16809
|
+
var T, M;
|
16810
|
+
return ((M = (T = r.option.value) == null ? void 0 : T.KgWarehouse) == null ? void 0 : M.enable) !== !1;
|
16740
16811
|
});
|
16741
16812
|
watch(a.visible, (T) => {
|
16742
16813
|
!m.value || (T ? y() : p());
|
@@ -16786,14 +16857,14 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
16786
16857
|
i.value = !1;
|
16787
16858
|
}
|
16788
16859
|
}
|
16789
|
-
function E(T,
|
16860
|
+
function E(T, M) {
|
16790
16861
|
var k;
|
16791
16862
|
switch (T.detail) {
|
16792
16863
|
case 1:
|
16793
|
-
((k = o.value) == null ? void 0 : k.id) ===
|
16864
|
+
((k = o.value) == null ? void 0 : k.id) === M.id ? o.value = null : o.value = M;
|
16794
16865
|
break;
|
16795
16866
|
case 2:
|
16796
|
-
o.value =
|
16867
|
+
o.value = M, g();
|
16797
16868
|
break;
|
16798
16869
|
}
|
16799
16870
|
}
|
@@ -16803,8 +16874,8 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
16803
16874
|
placement: "bottomRight"
|
16804
16875
|
}, {
|
16805
16876
|
default: () => {
|
16806
|
-
var T,
|
16807
|
-
return [((T = l.value) == null ? void 0 : T.whDsc) || ((
|
16877
|
+
var T, M;
|
16878
|
+
return [((T = l.value) == null ? void 0 : T.whDsc) || ((M = l.value) == null ? void 0 : M.whId) || r.t("kg.KgWarehouse.selectWarehouse")];
|
16808
16879
|
}
|
16809
16880
|
}), createVNode(KgModal, {
|
16810
16881
|
visible: a.visible.value,
|
@@ -16846,9 +16917,9 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
16846
16917
|
columns: c,
|
16847
16918
|
class: "kg-flex-table",
|
16848
16919
|
customRow: (T) => {
|
16849
|
-
var
|
16920
|
+
var M;
|
16850
16921
|
return {
|
16851
|
-
class: T.id === ((
|
16922
|
+
class: T.id === ((M = o.value) == null ? void 0 : M.id) ? "selected" : "",
|
16852
16923
|
onClick: (k) => E(k, T)
|
16853
16924
|
};
|
16854
16925
|
}
|