@kengic/vue 0.11.1 → 0.12.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.css +1 -1
- package/dist/kengic-vue.js +592 -555
- package/dist/src/{src/utils → utils}/logger.util.d.ts +11 -0
- package/package.json +1 -1
- /package/dist/src/{src/apis → apis}/WMS/Controllers/VarContextController/Add.d.ts +0 -0
- /package/dist/src/{src/apis → apis}/WMS/Controllers/VarContextController/Delete.d.ts +0 -0
- /package/dist/src/{src/apis → apis}/WMS/Controllers/VarContextController/DeleteBatch.d.ts +0 -0
- /package/dist/src/{src/apis → apis}/WMS/Controllers/VarContextController/Edit.d.ts +0 -0
- /package/dist/src/{src/apis → apis}/WMS/Controllers/VarContextController/ExportXls.d.ts +0 -0
- /package/dist/src/{src/apis → apis}/WMS/Controllers/VarContextController/ImportExcel.d.ts +0 -0
- /package/dist/src/{src/apis → apis}/WMS/Controllers/VarContextController/List.d.ts +0 -0
- /package/dist/src/{src/apis → apis}/WMS/Controllers/VarContextController/QueryById.d.ts +0 -0
- /package/dist/src/{src/apis → apis}/WMS/Controllers/VarContextController/index.d.ts +0 -0
- /package/dist/src/{src/apis → apis}/WMS/Controllers/VarController/GetAll.d.ts +0 -0
- /package/dist/src/{src/apis → apis}/WMS/Controllers/VarController/index.d.ts +0 -0
- /package/dist/src/{src/apis → apis}/WMS/Controllers/VarGridMasterController/QueryByID.d.ts +0 -0
- /package/dist/src/{src/apis → apis}/WMS/Controllers/VarGridMasterController/Update.d.ts +0 -0
- /package/dist/src/{src/apis → apis}/WMS/Controllers/VarGridMasterController/index.d.ts +0 -0
- /package/dist/src/{src/apis → apis}/WMS/Controllers/VarProfileMasterController/QueryByID.d.ts +0 -0
- /package/dist/src/{src/apis → apis}/WMS/Controllers/VarProfileMasterController/index.d.ts +0 -0
- /package/dist/src/{src/apis → apis}/WMS/Controllers/VarVariableCatalogController/Add.d.ts +0 -0
- /package/dist/src/{src/apis → apis}/WMS/Controllers/VarVariableCatalogController/Delete.d.ts +0 -0
- /package/dist/src/{src/apis → apis}/WMS/Controllers/VarVariableCatalogController/DeleteBatch.d.ts +0 -0
- /package/dist/src/{src/apis → apis}/WMS/Controllers/VarVariableCatalogController/Edit.d.ts +0 -0
- /package/dist/src/{src/apis → apis}/WMS/Controllers/VarVariableCatalogController/ExportXls.d.ts +0 -0
- /package/dist/src/{src/apis → apis}/WMS/Controllers/VarVariableCatalogController/ImportExcel.d.ts +0 -0
- /package/dist/src/{src/apis → apis}/WMS/Controllers/VarVariableCatalogController/List.d.ts +0 -0
- /package/dist/src/{src/apis → apis}/WMS/Controllers/VarVariableCatalogController/QueryById.d.ts +0 -0
- /package/dist/src/{src/apis → apis}/WMS/Controllers/VarVariableCatalogController/index.d.ts +0 -0
- /package/dist/src/{src/apis → apis}/WMS/Controllers/WhController/ListVO.d.ts +0 -0
- /package/dist/src/{src/apis → apis}/WMS/Controllers/WhController/index.d.ts +0 -0
- /package/dist/src/{src/apis → apis}/WMS/Controllers/index.d.ts +0 -0
- /package/dist/src/{src/apis → apis}/WMS/index.d.ts +0 -0
- /package/dist/src/{src/apis → apis}/WMS/models.d.ts +0 -0
- /package/dist/src/{src/apis → apis}/api.d.ts +0 -0
- /package/dist/src/{src/apis → apis}/def.d.ts +0 -0
- /package/dist/src/{src/apis → apis}/index.d.ts +0 -0
- /package/dist/src/{src/assets → assets}/icons/material-symbols.save-as-outline-rounded.d.ts +0 -0
- /package/dist/src/{src/assets → assets}/icons/material-symbols.save-outline-rounded.d.ts +0 -0
- /package/dist/src/{src/components → components}/KgAppSelect/KgAppSelect.d.ts +0 -0
- /package/dist/src/{src/components → components}/KgAppSelect/index.d.ts +0 -0
- /package/dist/src/{src/components → components}/KgAppSelect/index.hooks.d.ts +0 -0
- /package/dist/src/{src/components → components}/KgAppSelect/index.store.d.ts +0 -0
- /package/dist/src/{src/components → components}/KgButton/KgButton.Item.d.ts +0 -0
- /package/dist/src/{src/components → components}/KgButton/KgButton.Item.data.d.ts +0 -0
- /package/dist/src/{src/components → components}/KgButton/KgButton.d.ts +0 -0
- /package/dist/src/{src/components → components}/KgButton/components/KgButton.Copy.d.ts +0 -0
- /package/dist/src/{src/components → components}/KgButton/components/KgButton.Create.d.ts +0 -0
- /package/dist/src/{src/components → components}/KgButton/components/KgButton.Delete.d.ts +0 -0
- /package/dist/src/{src/components → components}/KgButton/components/KgButton.Export.d.ts +0 -0
- /package/dist/src/{src/components → components}/KgButton/components/KgButton.Import.d.ts +0 -0
- /package/dist/src/{src/components → components}/KgButton/components/KgButton.ImportTemplate.d.ts +0 -0
- /package/dist/src/{src/components → components}/KgButton/components/KgButton.Other.d.ts +0 -0
- /package/dist/src/{src/components → components}/KgButton/components/KgButton.Search.d.ts +0 -0
- /package/dist/src/{src/components → components}/KgButton/components/KgButton.Update.d.ts +0 -0
- /package/dist/src/{src/components → components}/KgButton/index.d.ts +0 -0
- /package/dist/src/{src/components → components}/KgButton/index.hooks.d.ts +0 -0
- /package/dist/src/{src/components → components}/KgButton/index.store.d.ts +0 -0
- /package/dist/src/{src/components → components}/KgForm/KgForm.d.ts +0 -0
- /package/dist/src/{src/components → components}/KgForm/index.d.ts +0 -0
- /package/dist/src/{src/components → components}/KgForm/index.hooks.d.ts +0 -0
- /package/dist/src/{src/components → components}/KgForm/index.store.d.ts +0 -0
- /package/dist/src/{src/components → components}/KgForm/index.vm.d.ts +0 -0
- /package/dist/src/{src/components → components}/KgForm.Item/KgForm.Item.d.ts +0 -0
- /package/dist/src/{src/components → components}/KgForm.Item/KgForm.Item.hooks.d.ts +0 -0
- /package/dist/src/{src/components → components}/KgForm.Item/addon/KgForm.Item.Addon.Lookup.Modal.d.ts +0 -0
- /package/dist/src/{src/components → components}/KgForm.Item/addon/KgForm.Item.Addon.Lookup.d.ts +0 -0
- /package/dist/src/{src/components → components}/KgForm.Item/components/KgForm.Item.Checkbox.d.ts +0 -0
- /package/dist/src/{src/components → components}/KgForm.Item/components/KgForm.Item.CheckboxGroup.d.ts +0 -0
- /package/dist/src/{src/components → components}/KgForm.Item/components/KgForm.Item.Date.d.ts +0 -0
- /package/dist/src/{src/components → components}/KgForm.Item/components/KgForm.Item.DateRange.d.ts +0 -0
- /package/dist/src/{src/components → components}/KgForm.Item/components/KgForm.Item.Input.d.ts +0 -0
- /package/dist/src/{src/components → components}/KgForm.Item/components/KgForm.Item.InputNumber.d.ts +0 -0
- /package/dist/src/{src/components → components}/KgForm.Item/components/KgForm.Item.RadioGroup.d.ts +0 -0
- /package/dist/src/{src/components → components}/KgForm.Item/components/KgForm.Item.Select.d.ts +0 -0
- /package/dist/src/{src/components → components}/KgForm.Item/components/KgForm.Item.Select.hooks.d.ts +0 -0
- /package/dist/src/{src/components → components}/KgForm.Item/components/KgForm.Item.Switch.d.ts +0 -0
- /package/dist/src/{src/components → components}/KgForm.Item/components/KgForm.Item.TextArea.d.ts +0 -0
- /package/dist/src/{src/components → components}/KgForm.Item/index.d.ts +0 -0
- /package/dist/src/{src/components → components}/KgForm.Item/index.vm.d.ts +0 -0
- /package/dist/src/{src/components → components}/KgModal/KgModal.d.ts +0 -0
- /package/dist/src/{src/components → components}/KgModal/components/KgModal.Close.d.ts +0 -0
- /package/dist/src/{src/components → components}/KgModal/index.d.ts +0 -0
- /package/dist/src/{src/components → components}/KgModal/index.vm.d.ts +0 -0
- /package/dist/src/{src/components → components}/KgProgressA/KgProgressA.d.ts +0 -0
- /package/dist/src/{src/components → components}/KgProgressA/index.d.ts +0 -0
- /package/dist/src/{src/components → components}/KgResizable/KgResizable.d.ts +0 -0
- /package/dist/src/{src/components → components}/KgResizable/index.d.ts +0 -0
- /package/dist/src/{src/components → components}/KgSearch/KgSearch.d.ts +0 -0
- /package/dist/src/{src/components → components}/KgSearch/KgSearch.hooks.d.ts +0 -0
- /package/dist/src/{src/components → components}/KgSearch/components/KgSearch.ConfigModal.Body.d.ts +0 -0
- /package/dist/src/{src/components → components}/KgSearch/components/KgSearch.ConfigModal.VarProfileConfig.d.ts +0 -0
- /package/dist/src/{src/components → components}/KgSearch/components/KgSearch.ConfigModal.VarProfileMaster.d.ts +0 -0
- /package/dist/src/{src/components → components}/KgSearch/components/KgSearch.ConfigModal.VarProfileMaster.hooks.d.ts +0 -0
- /package/dist/src/{src/components → components}/KgSearch/components/KgSearch.ConfigModal.d.ts +0 -0
- /package/dist/src/{src/components → components}/KgSearch/index.d.ts +0 -0
- /package/dist/src/{src/components → components}/KgSearch/index.hooks.d.ts +0 -0
- /package/dist/src/{src/components → components}/KgSearch/index.store.d.ts +0 -0
- /package/dist/src/{src/components → components}/KgSearch/index.vm.d.ts +0 -0
- /package/dist/src/{src/components → components}/KgSubmit/KgSubmit.d.ts +0 -0
- /package/dist/src/{src/components → components}/KgSubmit/KgSubmit.hooks.d.ts +0 -0
- /package/dist/src/{src/components → components}/KgSubmit/components/KgSubmit.Header.VarSubmitConfig.d.ts +0 -0
- /package/dist/src/{src/components → components}/KgSubmit/components/KgSubmit.Header.d.ts +0 -0
- /package/dist/src/{src/components → components}/KgSubmit/index.d.ts +0 -0
- /package/dist/src/{src/components → components}/KgSubmit/index.hooks.d.ts +0 -0
- /package/dist/src/{src/components → components}/KgSubmit/index.store.d.ts +0 -0
- /package/dist/src/{src/components → components}/KgSubmit/index.vm.d.ts +0 -0
- /package/dist/src/{src/components → components}/KgTable/KgTable.d.ts +0 -0
- /package/dist/src/{src/components → components}/KgTable/KgTable.hooks.d.ts +0 -0
- /package/dist/src/{src/components → components}/KgTable/components/KgTable.Cell.d.ts +0 -0
- /package/dist/src/{src/components → components}/KgTable/components/KgTable.Info.d.ts +0 -0
- /package/dist/src/{src/components → components}/KgTable/components/setting/KgTable.Setting.VarGridMaster.SaveAs.d.ts +0 -0
- /package/dist/src/{src/components → components}/KgTable/components/setting/KgTable.Setting.d.ts +0 -0
- /package/dist/src/{src/components → components}/KgTable/components/setting/KgTable.Setting.hooks.d.ts +0 -0
- /package/dist/src/{src/components → components}/KgTable/components/setting/config/KgTable.Setting.ConfigModal.Body.d.ts +0 -0
- /package/dist/src/{src/components → components}/KgTable/components/setting/config/KgTable.Setting.ConfigModal.VarGridConfig.d.ts +0 -0
- /package/dist/src/{src/components → components}/KgTable/components/setting/config/KgTable.Setting.ConfigModal.VarGridMaster.d.ts +0 -0
- /package/dist/src/{src/components → components}/KgTable/components/setting/config/KgTable.Setting.ConfigModal.VarGridMaster.hooks.d.ts +0 -0
- /package/dist/src/{src/components → components}/KgTable/components/setting/config/KgTable.Setting.ConfigModal.d.ts +0 -0
- /package/dist/src/{src/components → components}/KgTable/index.d.ts +0 -0
- /package/dist/src/{src/components → components}/KgTable/index.hooks.d.ts +0 -0
- /package/dist/src/{src/components → components}/KgTable/index.store.d.ts +0 -0
- /package/dist/src/{src/components → components}/KgTable/index.vm.d.ts +0 -0
- /package/dist/src/{src/components → components}/KgVar/KgVar.d.ts +0 -0
- /package/dist/src/{src/components → components}/KgVar/index.d.ts +0 -0
- /package/dist/src/{src/components → components}/KgVar/index.hooks.d.ts +0 -0
- /package/dist/src/{src/components → components}/KgVar/index.store.d.ts +0 -0
- /package/dist/src/{src/components → components}/KgVar/index.store.service.d.ts +0 -0
- /package/dist/src/{src/components → components}/KgVar/index.vm.d.ts +0 -0
- /package/dist/src/{src/components → components}/KgVarConfig/KgVarConfig.d.ts +0 -0
- /package/dist/src/{src/components → components}/KgVarConfig/components/KgVarConfig.FormIDsModal.d.ts +0 -0
- /package/dist/src/{src/components → components}/KgVarConfig/components/KgVarConfig.Modal.d.ts +0 -0
- /package/dist/src/{src/components → components}/KgVarConfig/components/button/KgVarConfig.Modal.Button.VarButton.d.ts +0 -0
- /package/dist/src/{src/components → components}/KgVarConfig/components/button/KgVarConfig.Modal.Button.VarButtonConfig.d.ts +0 -0
- /package/dist/src/{src/components → components}/KgVarConfig/components/button/KgVarConfig.Modal.Button.d.ts +0 -0
- /package/dist/src/{src/components → components}/KgVarConfig/components/submit/KgVarConfig.Modal.Submit.VarSubmitField.d.ts +0 -0
- /package/dist/src/{src/components → components}/KgVarConfig/components/submit/KgVarConfig.Modal.Submit.d.ts +0 -0
- /package/dist/src/{src/components → components}/KgVarConfig/components/var/KgVarConfig.Modal.Var.CreateModal.d.ts +0 -0
- /package/dist/src/{src/components → components}/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarCatalog.d.ts +0 -0
- /package/dist/src/{src/components → components}/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarCatalog.data.d.ts +0 -0
- /package/dist/src/{src/components → components}/KgVarConfig/components/var/KgVarConfig.Modal.Var.Vars.d.ts +0 -0
- /package/dist/src/{src/components → components}/KgVarConfig/components/var/KgVarConfig.Modal.Var.Vars.data.d.ts +0 -0
- /package/dist/src/{src/components → components}/KgVarConfig/components/var/KgVarConfig.Modal.Var.d.ts +0 -0
- /package/dist/src/{src/components → components}/KgVarConfig/index.d.ts +0 -0
- /package/dist/src/{src/components → components}/KgVarConfig/index.store.d.ts +0 -0
- /package/dist/src/{src/components → components}/KgVarConfig/index.vm.d.ts +0 -0
- /package/dist/src/{src/components → components}/KgWarehouse/KgWarehouse.d.ts +0 -0
- /package/dist/src/{src/components → components}/KgWarehouse/index.d.ts +0 -0
- /package/dist/src/{src/components → components}/KgWarehouse/index.guard.d.ts +0 -0
- /package/dist/src/{src/components → components}/KgWarehouse/index.hooks.d.ts +0 -0
- /package/dist/src/{src/components → components}/KgWarehouse/index.store.d.ts +0 -0
- /package/dist/src/{src/components → components}/KgYesOrNo/KgYesOrNo.d.ts +0 -0
- /package/dist/src/{src/components → components}/KgYesOrNo/index.d.ts +0 -0
- /package/dist/src/{src/components → components}/index.d.ts +0 -0
- /package/dist/src/{src/components → components}/util.d.ts +0 -0
- /package/dist/src/{src/config → config}/index.d.ts +0 -0
- /package/dist/src/{src/config → config}/index.hooks.d.ts +0 -0
- /package/dist/src/{src/config → config}/index.store.d.ts +0 -0
- /package/dist/src/{src/config → config}/setup.d.ts +0 -0
- /package/dist/src/{src/consts → consts}/i18n/en.d.ts +0 -0
- /package/dist/src/{src/consts → consts}/i18n/index.d.ts +0 -0
- /package/dist/src/{src/consts → consts}/i18n/zh_CN.d.ts +0 -0
- /package/dist/src/{src/consts → consts}/index.d.ts +0 -0
- /package/dist/src/{src/consts → consts}/index.vm.d.ts +0 -0
- /package/dist/src/{src/consts → consts}/injection-keys.const.d.ts +0 -0
- /package/dist/src/{src/helpers → helpers}/ant-design-vue.d.ts +0 -0
- /package/dist/src/{src/helpers → helpers}/tsx.helper.d.ts +0 -0
- /package/dist/src/{src/index.d.ts → index.d.ts} +0 -0
- /package/dist/src/{src/services → services}/http-client.d.ts +0 -0
- /package/dist/src/{src/services → services}/index.d.ts +0 -0
- /package/dist/src/{src/utils → utils}/dom.util.d.ts +0 -0
- /package/dist/src/{src/utils → utils}/index.d.ts +0 -0
- /package/dist/src/{src/utils → utils}/kg.util.d.ts +0 -0
- /package/dist/src/{src/utils → utils}/route.util.d.ts +0 -0
- /package/dist/src/{src/utils → utils}/var.util.d.ts +0 -0
package/dist/kengic-vue.js
CHANGED
@@ -3349,7 +3349,7 @@ function sendQuery(e, t, r, a) {
|
|
3349
3349
|
}
|
3350
3350
|
function k(C, D, w) {
|
3351
3351
|
const O = D !== "success";
|
3352
|
-
switch (p = p.filter((
|
3352
|
+
switch (p = p.filter(($) => $ !== C), i) {
|
3353
3353
|
case "pending":
|
3354
3354
|
break;
|
3355
3355
|
case "failed":
|
@@ -3368,11 +3368,11 @@ function sendQuery(e, t, r, a) {
|
|
3368
3368
|
return;
|
3369
3369
|
}
|
3370
3370
|
if (y(), T(), !e.random) {
|
3371
|
-
const
|
3372
|
-
|
3371
|
+
const $ = e.resources.indexOf(C.resource);
|
3372
|
+
$ !== -1 && $ !== e.index && (e.index = $);
|
3373
3373
|
}
|
3374
|
-
i = "completed", v.forEach((
|
3375
|
-
|
3374
|
+
i = "completed", v.forEach(($) => {
|
3375
|
+
$(w);
|
3376
3376
|
});
|
3377
3377
|
}
|
3378
3378
|
function A() {
|
@@ -3917,7 +3917,7 @@ const emptyIcon = {
|
|
3917
3917
|
...t.data
|
3918
3918
|
}, r);
|
3919
3919
|
}
|
3920
|
-
}), name = "@kengic/vue", version = "0.
|
3920
|
+
}), name = "@kengic/vue", version = "0.12.0", data$1 = {
|
3921
3921
|
width: 24,
|
3922
3922
|
height: 24,
|
3923
3923
|
body: '<path fill="currentColor" d="M5 21q-.825 0-1.413-.588T3 19V5q0-.825.588-1.413T5 3h11.175q.4 0 .763.15t.637.425l2.85 2.85q.275.275.425.638t.15.762V12.3q-.475-.2-.988-.263T19 12.05V7.825L16.175 5H5v14h6v2H5ZM5 5v14V5Zm8 17v-1.65q0-.2.075-.388t.225-.337l5.225-5.2q.225-.225.5-.325t.55-.1q.3 0 .575.113t.5.337l.925.925q.2.225.313.5t.112.55q0 .275-.1.563t-.325.512l-5.2 5.2q-.15.15-.338.225T15.65 23H14q-.425 0-.712-.287T13 22Zm7.5-5.575l-.925-.925l.925.925Zm-6 5.075h.95l3.025-3.05l-.45-.475l-.475-.45l-3.05 3.025v.95Zm3.525-3.525l-.475-.45l.925.925l-.45-.475ZM7 10h7q.425 0 .713-.288T15 9V7q0-.425-.288-.713T14 6H7q-.425 0-.713.288T6 7v2q0 .425.288.713T7 10Zm5 8h.1l2.9-2.875V15q0-1.25-.875-2.125T12 12q-1.25 0-2.125.875T9 15q0 1.25.875 2.125T12 18Z"/>'
|
@@ -3936,103 +3936,103 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
3936
3936
|
(function(r, a) {
|
3937
3937
|
e.exports = a();
|
3938
3938
|
})(commonjsGlobal, function() {
|
3939
|
-
var r = 1e3, a = 6e4, n = 36e5, s = "millisecond", l = "second", o = "minute", i = "hour", c = "day", u = "week", d = "month", p = "quarter", v = "year", y = "date", _ = "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(
|
3940
|
-
var
|
3941
|
-
return "[" +
|
3942
|
-
} }, T = function(
|
3943
|
-
var
|
3944
|
-
return !
|
3945
|
-
}, k = { s: T, z: function(
|
3946
|
-
var
|
3947
|
-
return (
|
3948
|
-
}, m: function
|
3949
|
-
if (
|
3950
|
-
return
|
3951
|
-
var
|
3952
|
-
return +(-(
|
3953
|
-
}, a: function(
|
3954
|
-
return
|
3955
|
-
}, p: function(
|
3956
|
-
return { M: d, y: v, w: u, d: c, D: y, h: i, m: o, s: l, ms: s, Q: p }[
|
3957
|
-
}, u: function(
|
3958
|
-
return
|
3939
|
+
var r = 1e3, a = 6e4, n = 36e5, s = "millisecond", l = "second", o = "minute", i = "hour", c = "day", u = "week", d = "month", p = "quarter", v = "year", y = "date", _ = "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(L) {
|
3940
|
+
var M = ["th", "st", "nd", "rd"], V = L % 100;
|
3941
|
+
return "[" + L + (M[(V - 20) % 10] || M[V] || M[0]) + "]";
|
3942
|
+
} }, T = function(L, M, V) {
|
3943
|
+
var P = String(L);
|
3944
|
+
return !P || P.length >= M ? L : "" + Array(M + 1 - P.length).join(V) + L;
|
3945
|
+
}, k = { s: T, z: function(L) {
|
3946
|
+
var M = -L.utcOffset(), V = Math.abs(M), P = Math.floor(V / 60), B = V % 60;
|
3947
|
+
return (M <= 0 ? "+" : "-") + T(P, 2, "0") + ":" + T(B, 2, "0");
|
3948
|
+
}, m: function L(M, V) {
|
3949
|
+
if (M.date() < V.date())
|
3950
|
+
return -L(V, M);
|
3951
|
+
var P = 12 * (V.year() - M.year()) + (V.month() - M.month()), B = M.clone().add(P, d), H = V - B < 0, K = M.clone().add(P + (H ? -1 : 1), d);
|
3952
|
+
return +(-(P + (V - B) / (H ? B - K : K - B)) || 0);
|
3953
|
+
}, a: function(L) {
|
3954
|
+
return L < 0 ? Math.ceil(L) || 0 : Math.floor(L);
|
3955
|
+
}, p: function(L) {
|
3956
|
+
return { M: d, y: v, w: u, d: c, D: y, h: i, m: o, s: l, ms: s, Q: p }[L] || String(L || "").toLowerCase().replace(/s$/, "");
|
3957
|
+
}, u: function(L) {
|
3958
|
+
return L === void 0;
|
3959
3959
|
} }, A = "en", C = {};
|
3960
3960
|
C[A] = E;
|
3961
|
-
var D = "$isDayjsObject", w = function(
|
3962
|
-
return
|
3963
|
-
}, O = function
|
3964
|
-
var
|
3965
|
-
if (!
|
3961
|
+
var D = "$isDayjsObject", w = function(L) {
|
3962
|
+
return L instanceof R || !(!L || !L[D]);
|
3963
|
+
}, O = function L(M, V, P) {
|
3964
|
+
var B;
|
3965
|
+
if (!M)
|
3966
3966
|
return A;
|
3967
|
-
if (typeof
|
3968
|
-
var H =
|
3969
|
-
C[H] && (
|
3970
|
-
var K =
|
3971
|
-
if (!
|
3972
|
-
return
|
3967
|
+
if (typeof M == "string") {
|
3968
|
+
var H = M.toLowerCase();
|
3969
|
+
C[H] && (B = H), V && (C[H] = V, B = H);
|
3970
|
+
var K = M.split("-");
|
3971
|
+
if (!B && K.length > 1)
|
3972
|
+
return L(K[0]);
|
3973
3973
|
} else {
|
3974
|
-
var F =
|
3975
|
-
C[F] =
|
3974
|
+
var F = M.name;
|
3975
|
+
C[F] = M, B = F;
|
3976
3976
|
}
|
3977
|
-
return !
|
3978
|
-
},
|
3979
|
-
if (w(
|
3980
|
-
return
|
3981
|
-
var V = typeof
|
3982
|
-
return V.date =
|
3983
|
-
},
|
3984
|
-
|
3985
|
-
return
|
3977
|
+
return !P && B && (A = B), B || !P && A;
|
3978
|
+
}, $ = function(L, M) {
|
3979
|
+
if (w(L))
|
3980
|
+
return L.clone();
|
3981
|
+
var V = typeof M == "object" ? M : {};
|
3982
|
+
return V.date = L, V.args = arguments, new R(V);
|
3983
|
+
}, I = k;
|
3984
|
+
I.l = O, I.i = w, I.w = function(L, M) {
|
3985
|
+
return $(L, { locale: M.$L, utc: M.$u, x: M.$x, $offset: M.$offset });
|
3986
3986
|
};
|
3987
3987
|
var R = function() {
|
3988
|
-
function
|
3988
|
+
function L(V) {
|
3989
3989
|
this.$L = O(V.locale, null, !0), this.parse(V), this.$x = this.$x || V.x || {}, this[D] = !0;
|
3990
3990
|
}
|
3991
|
-
var
|
3992
|
-
return
|
3993
|
-
this.$d = function(
|
3994
|
-
var
|
3995
|
-
if (
|
3991
|
+
var M = L.prototype;
|
3992
|
+
return M.parse = function(V) {
|
3993
|
+
this.$d = function(P) {
|
3994
|
+
var B = P.date, H = P.utc;
|
3995
|
+
if (B === null)
|
3996
3996
|
return new Date(NaN);
|
3997
|
-
if (
|
3997
|
+
if (I.u(B))
|
3998
3998
|
return new Date();
|
3999
|
-
if (
|
4000
|
-
return new Date(
|
4001
|
-
if (typeof
|
4002
|
-
var K =
|
3999
|
+
if (B instanceof Date)
|
4000
|
+
return new Date(B);
|
4001
|
+
if (typeof B == "string" && !/Z$/i.test(B)) {
|
4002
|
+
var K = B.match(g);
|
4003
4003
|
if (K) {
|
4004
4004
|
var F = K[2] - 1 || 0, Y = (K[7] || "0").substring(0, 3);
|
4005
4005
|
return H ? new Date(Date.UTC(K[1], F, K[3] || 1, K[4] || 0, K[5] || 0, K[6] || 0, Y)) : new Date(K[1], F, K[3] || 1, K[4] || 0, K[5] || 0, K[6] || 0, Y);
|
4006
4006
|
}
|
4007
4007
|
}
|
4008
|
-
return new Date(
|
4008
|
+
return new Date(B);
|
4009
4009
|
}(V), this.init();
|
4010
|
-
},
|
4010
|
+
}, M.init = function() {
|
4011
4011
|
var V = this.$d;
|
4012
4012
|
this.$y = V.getFullYear(), this.$M = V.getMonth(), this.$D = V.getDate(), this.$W = V.getDay(), this.$H = V.getHours(), this.$m = V.getMinutes(), this.$s = V.getSeconds(), this.$ms = V.getMilliseconds();
|
4013
|
-
},
|
4014
|
-
return
|
4015
|
-
},
|
4013
|
+
}, M.$utils = function() {
|
4014
|
+
return I;
|
4015
|
+
}, M.isValid = function() {
|
4016
4016
|
return this.$d.toString() !== _;
|
4017
|
-
},
|
4018
|
-
var
|
4019
|
-
return this.startOf(
|
4020
|
-
},
|
4021
|
-
return
|
4022
|
-
},
|
4023
|
-
return this.endOf(
|
4024
|
-
},
|
4025
|
-
return
|
4026
|
-
},
|
4017
|
+
}, M.isSame = function(V, P) {
|
4018
|
+
var B = $(V);
|
4019
|
+
return this.startOf(P) <= B && B <= this.endOf(P);
|
4020
|
+
}, M.isAfter = function(V, P) {
|
4021
|
+
return $(V) < this.startOf(P);
|
4022
|
+
}, M.isBefore = function(V, P) {
|
4023
|
+
return this.endOf(P) < $(V);
|
4024
|
+
}, M.$g = function(V, P, B) {
|
4025
|
+
return I.u(V) ? this[P] : this.set(B, V);
|
4026
|
+
}, M.unix = function() {
|
4027
4027
|
return Math.floor(this.valueOf() / 1e3);
|
4028
|
-
},
|
4028
|
+
}, M.valueOf = function() {
|
4029
4029
|
return this.$d.getTime();
|
4030
|
-
},
|
4031
|
-
var
|
4032
|
-
var
|
4033
|
-
return H ?
|
4030
|
+
}, M.startOf = function(V, P) {
|
4031
|
+
var B = this, H = !!I.u(P) || P, K = I.p(V), F = function(fe, ae) {
|
4032
|
+
var N = I.w(B.$u ? Date.UTC(B.$y, ae, fe) : new Date(B.$y, ae, fe), B);
|
4033
|
+
return H ? N : N.endOf(c);
|
4034
4034
|
}, Y = function(fe, ae) {
|
4035
|
-
return
|
4035
|
+
return I.w(B.toDate()[fe].apply(B.toDate("s"), (H ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(ae)), B);
|
4036
4036
|
}, q = this.$W, X = this.$M, J = this.$D, te = "set" + (this.$u ? "UTC" : "");
|
4037
4037
|
switch (K) {
|
4038
4038
|
case v:
|
@@ -4054,26 +4054,26 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4054
4054
|
default:
|
4055
4055
|
return this.clone();
|
4056
4056
|
}
|
4057
|
-
},
|
4057
|
+
}, M.endOf = function(V) {
|
4058
4058
|
return this.startOf(V, !1);
|
4059
|
-
},
|
4060
|
-
var
|
4059
|
+
}, M.$set = function(V, P) {
|
4060
|
+
var B, H = I.p(V), K = "set" + (this.$u ? "UTC" : ""), F = (B = {}, B[c] = K + "Date", B[y] = K + "Date", B[d] = K + "Month", B[v] = K + "FullYear", B[i] = K + "Hours", B[o] = K + "Minutes", B[l] = K + "Seconds", B[s] = K + "Milliseconds", B)[H], Y = H === c ? this.$D + (P - this.$W) : P;
|
4061
4061
|
if (H === d || H === v) {
|
4062
4062
|
var q = this.clone().set(y, 1);
|
4063
4063
|
q.$d[F](Y), q.init(), this.$d = q.set(y, Math.min(this.$D, q.daysInMonth())).$d;
|
4064
4064
|
} else
|
4065
4065
|
F && this.$d[F](Y);
|
4066
4066
|
return this.init(), this;
|
4067
|
-
},
|
4068
|
-
return this.clone().$set(V,
|
4069
|
-
},
|
4070
|
-
return this[
|
4071
|
-
},
|
4072
|
-
var
|
4067
|
+
}, M.set = function(V, P) {
|
4068
|
+
return this.clone().$set(V, P);
|
4069
|
+
}, M.get = function(V) {
|
4070
|
+
return this[I.p(V)]();
|
4071
|
+
}, M.add = function(V, P) {
|
4072
|
+
var B, H = this;
|
4073
4073
|
V = Number(V);
|
4074
|
-
var K =
|
4075
|
-
var J =
|
4076
|
-
return
|
4074
|
+
var K = I.p(P), F = function(X) {
|
4075
|
+
var J = $(H);
|
4076
|
+
return I.w(J.date(J.date() + Math.round(X * V)), H);
|
4077
4077
|
};
|
4078
4078
|
if (K === d)
|
4079
4079
|
return this.set(d, this.$M + V);
|
@@ -4083,53 +4083,53 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4083
4083
|
return F(1);
|
4084
4084
|
if (K === u)
|
4085
4085
|
return F(7);
|
4086
|
-
var Y = (
|
4087
|
-
return
|
4088
|
-
},
|
4089
|
-
return this.add(-1 * V,
|
4090
|
-
},
|
4091
|
-
var
|
4086
|
+
var Y = (B = {}, B[o] = a, B[i] = n, B[l] = r, B)[K] || 1, q = this.$d.getTime() + V * Y;
|
4087
|
+
return I.w(q, this);
|
4088
|
+
}, M.subtract = function(V, P) {
|
4089
|
+
return this.add(-1 * V, P);
|
4090
|
+
}, M.format = function(V) {
|
4091
|
+
var P = this, B = this.$locale();
|
4092
4092
|
if (!this.isValid())
|
4093
|
-
return
|
4094
|
-
var H = V || "YYYY-MM-DDTHH:mm:ssZ", K =
|
4095
|
-
return ae && (ae[
|
4093
|
+
return B.invalidDate || _;
|
4094
|
+
var H = V || "YYYY-MM-DDTHH:mm:ssZ", K = I.z(this), F = this.$H, Y = this.$m, q = this.$M, X = B.weekdays, J = B.months, te = B.meridiem, ue = function(ae, N, U, Q) {
|
4095
|
+
return ae && (ae[N] || ae(P, H)) || U[N].slice(0, Q);
|
4096
4096
|
}, _e = function(ae) {
|
4097
|
-
return
|
4098
|
-
}, fe = te || function(ae,
|
4097
|
+
return I.s(F % 12 || 12, ae, "0");
|
4098
|
+
}, fe = te || function(ae, N, U) {
|
4099
4099
|
var Q = ae < 12 ? "AM" : "PM";
|
4100
4100
|
return U ? Q.toLowerCase() : Q;
|
4101
4101
|
};
|
4102
|
-
return H.replace(b, function(ae,
|
4103
|
-
return
|
4102
|
+
return H.replace(b, function(ae, N) {
|
4103
|
+
return N || function(U) {
|
4104
4104
|
switch (U) {
|
4105
4105
|
case "YY":
|
4106
|
-
return String(
|
4106
|
+
return String(P.$y).slice(-2);
|
4107
4107
|
case "YYYY":
|
4108
|
-
return
|
4108
|
+
return I.s(P.$y, 4, "0");
|
4109
4109
|
case "M":
|
4110
4110
|
return q + 1;
|
4111
4111
|
case "MM":
|
4112
|
-
return
|
4112
|
+
return I.s(q + 1, 2, "0");
|
4113
4113
|
case "MMM":
|
4114
|
-
return ue(
|
4114
|
+
return ue(B.monthsShort, q, J, 3);
|
4115
4115
|
case "MMMM":
|
4116
4116
|
return ue(J, q);
|
4117
4117
|
case "D":
|
4118
|
-
return
|
4118
|
+
return P.$D;
|
4119
4119
|
case "DD":
|
4120
|
-
return
|
4120
|
+
return I.s(P.$D, 2, "0");
|
4121
4121
|
case "d":
|
4122
|
-
return String(
|
4122
|
+
return String(P.$W);
|
4123
4123
|
case "dd":
|
4124
|
-
return ue(
|
4124
|
+
return ue(B.weekdaysMin, P.$W, X, 2);
|
4125
4125
|
case "ddd":
|
4126
|
-
return ue(
|
4126
|
+
return ue(B.weekdaysShort, P.$W, X, 3);
|
4127
4127
|
case "dddd":
|
4128
|
-
return X[
|
4128
|
+
return X[P.$W];
|
4129
4129
|
case "H":
|
4130
4130
|
return String(F);
|
4131
4131
|
case "HH":
|
4132
|
-
return
|
4132
|
+
return I.s(F, 2, "0");
|
4133
4133
|
case "h":
|
4134
4134
|
return _e(1);
|
4135
4135
|
case "hh":
|
@@ -4141,24 +4141,24 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4141
4141
|
case "m":
|
4142
4142
|
return String(Y);
|
4143
4143
|
case "mm":
|
4144
|
-
return
|
4144
|
+
return I.s(Y, 2, "0");
|
4145
4145
|
case "s":
|
4146
|
-
return String(
|
4146
|
+
return String(P.$s);
|
4147
4147
|
case "ss":
|
4148
|
-
return
|
4148
|
+
return I.s(P.$s, 2, "0");
|
4149
4149
|
case "SSS":
|
4150
|
-
return
|
4150
|
+
return I.s(P.$ms, 3, "0");
|
4151
4151
|
case "Z":
|
4152
4152
|
return K;
|
4153
4153
|
}
|
4154
4154
|
return null;
|
4155
4155
|
}(ae) || K.replace(":", "");
|
4156
4156
|
});
|
4157
|
-
},
|
4157
|
+
}, M.utcOffset = function() {
|
4158
4158
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
4159
|
-
},
|
4160
|
-
var H, K = this, F =
|
4161
|
-
return
|
4159
|
+
}, M.diff = function(V, P, B) {
|
4160
|
+
var H, K = this, F = I.p(P), Y = $(V), q = (Y.utcOffset() - this.utcOffset()) * a, X = this - Y, J = function() {
|
4161
|
+
return I.m(K, Y);
|
4162
4162
|
};
|
4163
4163
|
switch (F) {
|
4164
4164
|
case v:
|
@@ -4188,37 +4188,37 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4188
4188
|
default:
|
4189
4189
|
H = X;
|
4190
4190
|
}
|
4191
|
-
return
|
4192
|
-
},
|
4191
|
+
return B ? H : I.a(H);
|
4192
|
+
}, M.daysInMonth = function() {
|
4193
4193
|
return this.endOf(d).$D;
|
4194
|
-
},
|
4194
|
+
}, M.$locale = function() {
|
4195
4195
|
return C[this.$L];
|
4196
|
-
},
|
4196
|
+
}, M.locale = function(V, P) {
|
4197
4197
|
if (!V)
|
4198
4198
|
return this.$L;
|
4199
|
-
var
|
4200
|
-
return H && (
|
4201
|
-
},
|
4202
|
-
return
|
4203
|
-
},
|
4199
|
+
var B = this.clone(), H = O(V, P, !0);
|
4200
|
+
return H && (B.$L = H), B;
|
4201
|
+
}, M.clone = function() {
|
4202
|
+
return I.w(this.$d, this);
|
4203
|
+
}, M.toDate = function() {
|
4204
4204
|
return new Date(this.valueOf());
|
4205
|
-
},
|
4205
|
+
}, M.toJSON = function() {
|
4206
4206
|
return this.isValid() ? this.toISOString() : null;
|
4207
|
-
},
|
4207
|
+
}, M.toISOString = function() {
|
4208
4208
|
return this.$d.toISOString();
|
4209
|
-
},
|
4209
|
+
}, M.toString = function() {
|
4210
4210
|
return this.$d.toUTCString();
|
4211
|
-
},
|
4212
|
-
}(),
|
4213
|
-
return
|
4214
|
-
|
4215
|
-
return this.$g(
|
4211
|
+
}, L;
|
4212
|
+
}(), x = R.prototype;
|
4213
|
+
return $.prototype = x, [["$ms", s], ["$s", l], ["$m", o], ["$H", i], ["$W", c], ["$M", d], ["$y", v], ["$D", y]].forEach(function(L) {
|
4214
|
+
x[L[1]] = function(M) {
|
4215
|
+
return this.$g(M, L[0], L[1]);
|
4216
4216
|
};
|
4217
|
-
}),
|
4218
|
-
return
|
4219
|
-
},
|
4220
|
-
return
|
4221
|
-
},
|
4217
|
+
}), $.extend = function(L, M) {
|
4218
|
+
return L.$i || (L(M, R, $), L.$i = !0), $;
|
4219
|
+
}, $.locale = O, $.isDayjs = w, $.unix = function(L) {
|
4220
|
+
return $(1e3 * L);
|
4221
|
+
}, $.en = C[A], $.Ls = C, $.p = {}, $;
|
4222
4222
|
});
|
4223
4223
|
})(dayjs_min);
|
4224
4224
|
const dayjs = dayjs_min.exports;
|
@@ -4276,12 +4276,12 @@ function filesize(e, {
|
|
4276
4276
|
T[0] = 0, A = T[1] = STRINGS.symbol[u][t ? BITS : BYTES][b];
|
4277
4277
|
else {
|
4278
4278
|
k = E / (a === 2 ? Math.pow(2, b * 10) : Math.pow(1e3, b)), t && (k = k * 8, k >= C && b < 8 && (k = k / C, b++));
|
4279
|
-
const
|
4280
|
-
T[0] = O(k *
|
4279
|
+
const $ = Math.pow(10, b > 0 ? n : 0);
|
4280
|
+
T[0] = O(k * $) / $, T[0] === C && b < 8 && y === -1 && (T[0] = 1, b++), A = T[1] = a === 10 && b === 1 ? t ? SI_KBIT : SI_KBYTE : STRINGS.symbol[u][t ? BITS : BYTES][b];
|
4281
4281
|
}
|
4282
4282
|
if (w && (T[0] = -T[0]), g > 0 && (T[0] = T[0].toPrecision(g)), T[1] = c[T[1]] || T[1], s === !0 ? T[0] = T[0].toLocaleString() : s.length > 0 ? T[0] = T[0].toLocaleString(s, l) : o.length > 0 && (T[0] = T[0].toString().replace(PERIOD, o)), r && Number.isInteger(T[0]) === !1 && n > 0) {
|
4283
|
-
const
|
4284
|
-
T[0] = `${
|
4283
|
+
const $ = o || PERIOD, I = T[0].toString().split($), R = I[1] || EMPTY, x = R.length, L = n - x;
|
4284
|
+
T[0] = `${I[0]}${$}${R.padEnd(x + L, ZERO)}`;
|
4285
4285
|
}
|
4286
4286
|
return D && (T[1] = v[b] ? v[b] : STRINGS.fullform[u][b] + (t ? BIT : BYTE) + (T[0] === 1 ? EMPTY : S)), d === ARRAY ? T : d === OBJECT ? {
|
4287
4287
|
value: T[0],
|
@@ -6333,6 +6333,13 @@ class KgLogger {
|
|
6333
6333
|
static debug(t, r = {}, a = !0) {
|
6334
6334
|
window.__KG_DEBUG__ && KgLogger.log("debug", t, r, a);
|
6335
6335
|
}
|
6336
|
+
static debugDDA(t, r, a, n, s = {}, l = !0) {
|
6337
|
+
KgLogger.debug(
|
6338
|
+
`${(t != null ? t : "").padEnd(100, " ")} | ${(r != null ? r : "").padEnd(32, " ")} | ${(a != null ? a : "").padEnd(32, " ")} | ${n}.`,
|
6339
|
+
s,
|
6340
|
+
l
|
6341
|
+
);
|
6342
|
+
}
|
6336
6343
|
}
|
6337
6344
|
class KgUtil {
|
6338
6345
|
static getFileSize(t) {
|
@@ -7255,27 +7262,27 @@ function createSetupStore(e, t, r = {}, a, n) {
|
|
7255
7262
|
function T(w, O) {
|
7256
7263
|
return function() {
|
7257
7264
|
setActivePinia(a);
|
7258
|
-
const
|
7259
|
-
function
|
7260
|
-
|
7265
|
+
const $ = Array.from(arguments), I = [], R = [];
|
7266
|
+
function x(V) {
|
7267
|
+
I.push(V);
|
7261
7268
|
}
|
7262
|
-
function
|
7269
|
+
function L(V) {
|
7263
7270
|
R.push(V);
|
7264
7271
|
}
|
7265
7272
|
triggerSubscriptions(p, {
|
7266
|
-
args:
|
7273
|
+
args: $,
|
7267
7274
|
name: w,
|
7268
7275
|
store: C,
|
7269
|
-
after:
|
7270
|
-
onError:
|
7276
|
+
after: x,
|
7277
|
+
onError: L
|
7271
7278
|
});
|
7272
|
-
let
|
7279
|
+
let M;
|
7273
7280
|
try {
|
7274
|
-
|
7281
|
+
M = O.apply(this && this.$id === e ? this : C, $);
|
7275
7282
|
} catch (V) {
|
7276
7283
|
throw triggerSubscriptions(R, V), V;
|
7277
7284
|
}
|
7278
|
-
return
|
7285
|
+
return M instanceof Promise ? M.then((V) => (triggerSubscriptions(I, V), V)).catch((V) => (triggerSubscriptions(R, V), Promise.reject(V))) : (triggerSubscriptions(I, M), M);
|
7279
7286
|
};
|
7280
7287
|
}
|
7281
7288
|
const k = /* @__PURE__ */ markRaw({
|
@@ -7290,14 +7297,14 @@ function createSetupStore(e, t, r = {}, a, n) {
|
|
7290
7297
|
$patch: g,
|
7291
7298
|
$reset: b,
|
7292
7299
|
$subscribe(w, O = {}) {
|
7293
|
-
const
|
7300
|
+
const $ = addSubscription(d, w, O.detached, () => I()), I = s.run(() => watch(() => a.state.value[e], (R) => {
|
7294
7301
|
(O.flush === "sync" ? u : c) && w({
|
7295
7302
|
storeId: e,
|
7296
7303
|
type: MutationType.direct,
|
7297
7304
|
events: v
|
7298
7305
|
}, R);
|
7299
7306
|
}, assign$1({}, i, O)));
|
7300
|
-
return
|
7307
|
+
return $;
|
7301
7308
|
},
|
7302
7309
|
$dispose: E
|
7303
7310
|
}, C = reactive(assign$1(
|
@@ -7314,8 +7321,8 @@ function createSetupStore(e, t, r = {}, a, n) {
|
|
7314
7321
|
if (isRef(O) && !isComputed(O) || isReactive(O))
|
7315
7322
|
process.env.NODE_ENV !== "production" && n ? set(_.value, w, toRef(D, w)) : l || (y && shouldHydrate(O) && (isRef(O) ? O.value = y[w] : mergeReactiveObjects(O, y[w])), a.state.value[e][w] = O), process.env.NODE_ENV !== "production" && k.state.push(w);
|
7316
7323
|
else if (typeof O == "function") {
|
7317
|
-
const
|
7318
|
-
D[w] =
|
7324
|
+
const $ = process.env.NODE_ENV !== "production" && n ? O : T(w, O);
|
7325
|
+
D[w] = $, process.env.NODE_ENV !== "production" && (k.actions[w] = O), o.actions[w] = O;
|
7319
7326
|
} else
|
7320
7327
|
process.env.NODE_ENV !== "production" && isComputed(O) && (k.getters[w] = l ? r.getters[w] : O, IS_CLIENT && (D._getters || (D._getters = markRaw([]))).push(w));
|
7321
7328
|
}
|
@@ -7330,29 +7337,29 @@ function createSetupStore(e, t, r = {}, a, n) {
|
|
7330
7337
|
}
|
7331
7338
|
}), process.env.NODE_ENV !== "production") {
|
7332
7339
|
C._hotUpdate = markRaw((O) => {
|
7333
|
-
C._hotUpdating = !0, O._hmrPayload.state.forEach((
|
7334
|
-
if (
|
7335
|
-
const
|
7336
|
-
typeof
|
7340
|
+
C._hotUpdating = !0, O._hmrPayload.state.forEach(($) => {
|
7341
|
+
if ($ in C.$state) {
|
7342
|
+
const I = O.$state[$], R = C.$state[$];
|
7343
|
+
typeof I == "object" && isPlainObject(I) && isPlainObject(R) ? patchObject(I, R) : O.$state[$] = R;
|
7337
7344
|
}
|
7338
|
-
set(C,
|
7339
|
-
}), Object.keys(C.$state).forEach((
|
7340
|
-
|
7345
|
+
set(C, $, toRef(O.$state, $));
|
7346
|
+
}), Object.keys(C.$state).forEach(($) => {
|
7347
|
+
$ in O.$state || del(C, $);
|
7341
7348
|
}), c = !1, u = !1, a.state.value[e] = toRef(O._hmrPayload, "hotState"), u = !0, nextTick().then(() => {
|
7342
7349
|
c = !0;
|
7343
7350
|
});
|
7344
|
-
for (const
|
7345
|
-
const
|
7346
|
-
set(C,
|
7351
|
+
for (const $ in O._hmrPayload.actions) {
|
7352
|
+
const I = O[$];
|
7353
|
+
set(C, $, T($, I));
|
7347
7354
|
}
|
7348
|
-
for (const
|
7349
|
-
const
|
7350
|
-
set(C,
|
7355
|
+
for (const $ in O._hmrPayload.getters) {
|
7356
|
+
const I = O._hmrPayload.getters[$], R = l ? computed(() => (setActivePinia(a), I.call(C, C))) : I;
|
7357
|
+
set(C, $, R);
|
7351
7358
|
}
|
7352
|
-
Object.keys(C._hmrPayload.getters).forEach((
|
7353
|
-
|
7354
|
-
}), Object.keys(C._hmrPayload.actions).forEach((
|
7355
|
-
|
7359
|
+
Object.keys(C._hmrPayload.getters).forEach(($) => {
|
7360
|
+
$ in O._hmrPayload.getters || del(C, $);
|
7361
|
+
}), Object.keys(C._hmrPayload.actions).forEach(($) => {
|
7362
|
+
$ in O._hmrPayload.actions || del(C, $);
|
7356
7363
|
}), C._hmrPayload = O._hmrPayload, C._getters = O._getters, C._hotUpdating = !1;
|
7357
7364
|
});
|
7358
7365
|
const w = {
|
@@ -7375,7 +7382,7 @@ function createSetupStore(e, t, r = {}, a, n) {
|
|
7375
7382
|
pinia: a,
|
7376
7383
|
options: o
|
7377
7384
|
}));
|
7378
|
-
Object.keys(O || {}).forEach((
|
7385
|
+
Object.keys(O || {}).forEach(($) => C._customProperties.add($)), assign$1(C, O);
|
7379
7386
|
} else
|
7380
7387
|
assign$1(C, s.run(() => w({
|
7381
7388
|
store: C,
|
@@ -9476,9 +9483,9 @@ function useKgVar(e, t, r = 0) {
|
|
9476
9483
|
}), onUnmounted(() => {
|
9477
9484
|
u.dispose(c);
|
9478
9485
|
}));
|
9479
|
-
const d = (J) => computed(() => u.t(c, J)), p = computed(() => u.isRetrieving(c)), v = computed(() => u.isRetrievingVarProfileMaster(c)), y = computed(() => u.isRetrievingVarGridMaster(c)), _ = computed(() => u.isRetrieved(c)), g = computed(() => u.isCreating(c)), b = computed(() => u.isCreatingRequesting(c)), E = computed(() => u.isUpdating(c)), T = computed(() => u.isUpdatingRequesting(c)), k = computed(() => u.isCopying(c)), A = computed(() => u.isCopyingRequesting(c)), C = computed(() => u.isDeleting(c)), D = computed(() => u.isDeletingRequesting(c)), w = computed(() => u.isOtherRequesting(c)), O = computed(() => u.getVarButtons(c)),
|
9486
|
+
const d = (J) => computed(() => u.t(c, J)), p = computed(() => u.isRetrieving(c)), v = computed(() => u.isRetrievingVarProfileMaster(c)), y = computed(() => u.isRetrievingVarGridMaster(c)), _ = computed(() => u.isRetrieved(c)), g = computed(() => u.isCreating(c)), b = computed(() => u.isCreatingRequesting(c)), E = computed(() => u.isUpdating(c)), T = computed(() => u.isUpdatingRequesting(c)), k = computed(() => u.isCopying(c)), A = computed(() => u.isCopyingRequesting(c)), C = computed(() => u.isDeleting(c)), D = computed(() => u.isDeletingRequesting(c)), w = computed(() => u.isOtherRequesting(c)), O = computed(() => u.getVarButtons(c)), $ = computed(() => u.getVarButtonSearch(c)), I = computed(() => u.getVarButtonCreate(c)), R = computed(() => u.getVarButtonUpdate(c)), x = computed(() => u.getVarButtonCopy(c)), L = computed(() => u.getVarButtonDelete(c)), M = computed(() => u.getVarProfileMasters(c)), V = computed(() => u.getCurrentVarProfileMasterID(c)), P = computed(() => u.getCurrentVarProfileMaster(c)), B = computed(() => {
|
9480
9487
|
var J, te;
|
9481
|
-
return (te = (J =
|
9488
|
+
return (te = (J = P.value) == null ? void 0 : J.varProfileDetails) != null ? te : null;
|
9482
9489
|
}), H = computed(() => u.getVarGridConfig(c)), K = computed(() => u.getVarGridMasters(c)), F = computed(() => u.getCurrentVarGridMasterID(c)), Y = computed(() => u.getCurrentVarGridMaster(c)), q = computed(() => u.getSystemVarGridDetails(c)), X = computed(() => u.getCurrentVarGridDetails(c));
|
9483
9490
|
return {
|
9484
9491
|
formID: c,
|
@@ -9497,15 +9504,15 @@ function useKgVar(e, t, r = 0) {
|
|
9497
9504
|
isDeletingRequesting: D,
|
9498
9505
|
isOtherRequesting: w,
|
9499
9506
|
varButtons: O,
|
9500
|
-
varButtonSearch:
|
9501
|
-
varButtonCreate:
|
9507
|
+
varButtonSearch: $,
|
9508
|
+
varButtonCreate: I,
|
9502
9509
|
varButtonUpdate: R,
|
9503
|
-
varButtonCopy:
|
9504
|
-
varButtonDelete:
|
9505
|
-
varProfileMasters:
|
9510
|
+
varButtonCopy: x,
|
9511
|
+
varButtonDelete: L,
|
9512
|
+
varProfileMasters: M,
|
9506
9513
|
currentVarProfileMasterID: V,
|
9507
|
-
currentVarProfileMaster:
|
9508
|
-
currentVarProfileDetails:
|
9514
|
+
currentVarProfileMaster: P,
|
9515
|
+
currentVarProfileDetails: B,
|
9509
9516
|
varGridConfig: H,
|
9510
9517
|
varGridMasters: K,
|
9511
9518
|
currentVarGridMasteID: F,
|
@@ -9601,7 +9608,7 @@ const DI_KG_VAR__KG_SLOTS = Symbol("DI_KG_VAR__KG_SLOTS"), DI_KG_VAR__KG_PROPS =
|
|
9601
9608
|
async function _() {
|
9602
9609
|
var g, b, E, T, k, A, C;
|
9603
9610
|
if (p.value) {
|
9604
|
-
const D = (b = (g = u.selectedRows) == null ? void 0 : g.value) != null ? b : [], w = (E = D.map((
|
9611
|
+
const D = (b = (g = u.selectedRows) == null ? void 0 : g.value) != null ? b : [], w = (E = D.map(($) => $[v.value])) != null ? E : [];
|
9605
9612
|
await s.store.emit(s.formID, "lookupBeforeOk", {
|
9606
9613
|
var_nam: l,
|
9607
9614
|
isMultiple: !0,
|
@@ -9874,7 +9881,7 @@ function useKgFormItemSelect() {
|
|
9874
9881
|
}), v;
|
9875
9882
|
});
|
9876
9883
|
async function d() {
|
9877
|
-
var T, k, A, C, D, w, O,
|
9884
|
+
var T, k, A, C, D, w, O, $;
|
9878
9885
|
let v = [];
|
9879
9886
|
const y = (T = a.value) == null ? void 0 : T.cmd, _ = (A = (k = a.value) == null ? void 0 : k.cmd_method) != null ? A : "GET", g = (D = (C = a.value) == null ? void 0 : C.val_clm) != null ? D : "", b = (O = (w = a.value) == null ? void 0 : w.lbl_clm) != null ? O : "";
|
9880
9887
|
if (!y || !g || !b) {
|
@@ -9889,7 +9896,7 @@ function useKgFormItemSelect() {
|
|
9889
9896
|
}
|
9890
9897
|
let E = null;
|
9891
9898
|
try {
|
9892
|
-
l.value = !0, E = await ((
|
9899
|
+
l.value = !0, E = await (($ = httpClient()) == null ? void 0 : $.request({
|
9893
9900
|
url: y,
|
9894
9901
|
method: _,
|
9895
9902
|
params: u.value
|
@@ -9910,14 +9917,14 @@ function useKgFormItemSelect() {
|
|
9910
9917
|
break;
|
9911
9918
|
}
|
9912
9919
|
if (v.length > 0) {
|
9913
|
-
const
|
9914
|
-
(!(g in
|
9920
|
+
const I = v[0];
|
9921
|
+
(!(g in I) || !(b in I)) && KgLogger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF, \u6570\u636E\u5217(val_clm)\u6216\u663E\u793A\u5217(lbl_clm)\u6709\u8BEF.", {
|
9915
9922
|
frm_id: r.formID,
|
9916
9923
|
var_nam: e,
|
9917
9924
|
cmd: y,
|
9918
9925
|
val_clm: g,
|
9919
9926
|
lbl_clm: b,
|
9920
|
-
\u6240\u6709\u5217: Object.keys(
|
9927
|
+
\u6240\u6709\u5217: Object.keys(I)
|
9921
9928
|
});
|
9922
9929
|
}
|
9923
9930
|
o.value = v;
|
@@ -10402,16 +10409,16 @@ const KgFormItemRadioGroup = defineComponent({
|
|
10402
10409
|
useKg();
|
10403
10410
|
const s = useKgVar(), l = useKgForm(s.formID), o = useKgSearch(s.formID);
|
10404
10411
|
l.onLookupOk(async ({
|
10405
|
-
var_nam:
|
10406
|
-
model:
|
10407
|
-
isMultiple:
|
10408
|
-
value:
|
10409
|
-
values:
|
10412
|
+
var_nam: I,
|
10413
|
+
model: R,
|
10414
|
+
isMultiple: x,
|
10415
|
+
value: L,
|
10416
|
+
values: M
|
10410
10417
|
}) => {
|
10411
|
-
var
|
10412
|
-
switch (
|
10418
|
+
var V;
|
10419
|
+
switch (I) {
|
10413
10420
|
case e.kgVarName:
|
10414
|
-
|
10421
|
+
R.value && (x ? R.value[e.kgVarName] = M : R.value[e.kgVarName] = L), (V = n.value) == null || V.validate([e.kgVarName]);
|
10415
10422
|
break;
|
10416
10423
|
}
|
10417
10424
|
return !1;
|
@@ -10421,121 +10428,151 @@ const KgFormItemRadioGroup = defineComponent({
|
|
10421
10428
|
} = _useRules(e), {
|
10422
10429
|
controlType: v
|
10423
10430
|
} = useKgFormItem(e), y = computed(() => {
|
10424
|
-
var
|
10431
|
+
var R, x, L, M, V;
|
10425
10432
|
if (s.isRetrieving.value)
|
10426
10433
|
return !0;
|
10427
|
-
let
|
10434
|
+
let I = !1;
|
10428
10435
|
if (e.kgDisabled !== void 0)
|
10429
|
-
|
10436
|
+
I = e.kgDisabled;
|
10430
10437
|
else
|
10431
10438
|
switch (e.kgContext) {
|
10432
10439
|
case KG_FORM_CONTEXT.SEARCH:
|
10433
|
-
|
10440
|
+
I = ((R = u.value) == null ? void 0 : R.ena_flg) === 0;
|
10434
10441
|
break;
|
10435
10442
|
case KG_FORM_CONTEXT.SUBMIT:
|
10436
10443
|
switch (!0) {
|
10437
10444
|
case s.isCreating.value:
|
10438
|
-
|
10445
|
+
I = ((x = d.value) == null ? void 0 : x.crt_ena_flg) === 0;
|
10439
10446
|
break;
|
10440
10447
|
case s.isUpdating.value:
|
10441
|
-
|
10448
|
+
I = ((L = d.value) == null ? void 0 : L.upt_ena_flg) === 0;
|
10442
10449
|
break;
|
10443
10450
|
case s.isCopying.value:
|
10444
|
-
|
10451
|
+
I = ((M = d.value) == null ? void 0 : M.cpy_ena_flg) === 0;
|
10445
10452
|
break;
|
10446
10453
|
case s.isDeleting.value:
|
10447
|
-
|
10454
|
+
I = ((V = d.value) == null ? void 0 : V.del_ena_flg) === 0;
|
10448
10455
|
break;
|
10449
10456
|
}
|
10450
10457
|
break;
|
10451
10458
|
}
|
10452
|
-
return
|
10459
|
+
return I;
|
10453
10460
|
}), _ = computed(() => {
|
10454
|
-
var
|
10455
|
-
let
|
10461
|
+
var R, x, L, M;
|
10462
|
+
let I = " ";
|
10456
10463
|
if (e.kgPlaceholder)
|
10457
|
-
|
10464
|
+
I = e.kgPlaceholder;
|
10458
10465
|
else
|
10459
10466
|
switch (e.kgContext) {
|
10460
10467
|
case KG_FORM_CONTEXT.SEARCH:
|
10461
|
-
|
10468
|
+
I = s.t((x = (R = u.value) == null ? void 0 : R.placeholder) != null ? x : " ").value;
|
10462
10469
|
break;
|
10463
10470
|
case KG_FORM_CONTEXT.SUBMIT:
|
10464
|
-
|
10471
|
+
I = s.t((M = (L = d.value) == null ? void 0 : L.placeholder) != null ? M : " ").value;
|
10465
10472
|
break;
|
10466
10473
|
}
|
10467
|
-
return
|
10474
|
+
return I;
|
10468
10475
|
}), g = computed(() => {
|
10469
|
-
var
|
10470
|
-
let
|
10476
|
+
var R, x, L, M, V, P, B, H, K, F;
|
10477
|
+
let I = 6;
|
10471
10478
|
if (e.kgSpan !== void 0)
|
10472
|
-
|
10479
|
+
I = e.kgSpan;
|
10473
10480
|
else
|
10474
10481
|
switch (e.kgContext) {
|
10475
10482
|
case KG_FORM_CONTEXT.SEARCH:
|
10476
|
-
|
10483
|
+
I = (x = (R = u.value) == null ? void 0 : R.width) != null ? x : 6;
|
10477
10484
|
break;
|
10478
10485
|
case KG_FORM_CONTEXT.SUBMIT:
|
10479
10486
|
switch (!0) {
|
10480
10487
|
case s.isCreating.value:
|
10481
|
-
|
10488
|
+
I = (M = (L = d.value) == null ? void 0 : L.crt_width) != null ? M : 6;
|
10482
10489
|
break;
|
10483
10490
|
case s.isUpdating.value:
|
10484
|
-
|
10491
|
+
I = (P = (V = d.value) == null ? void 0 : V.upt_width) != null ? P : 6;
|
10485
10492
|
break;
|
10486
10493
|
case s.isCopying.value:
|
10487
|
-
|
10494
|
+
I = (H = (B = d.value) == null ? void 0 : B.cpy_width) != null ? H : 6;
|
10488
10495
|
break;
|
10489
10496
|
case s.isDeleting.value:
|
10490
|
-
|
10497
|
+
I = (F = (K = d.value) == null ? void 0 : K.del_width) != null ? F : 6;
|
10491
10498
|
break;
|
10492
10499
|
}
|
10493
10500
|
}
|
10494
|
-
return
|
10501
|
+
return I = Number(I), new Array(24).fill(0).map((Y, q) => q + 1).includes(I) ? I : (KgLogger.error("| \u6570\u636E\u6709\u8BEF | \u5BBD\u5EA6\u5FC5\u987B\u4E3A [1, 24] \u4E4B\u95F4\u7684\u6574\u6570.", {
|
10502
|
+
VarProfileDetail: u.value,
|
10503
|
+
VarSubmitField: d.value
|
10504
|
+
}), 6);
|
10495
10505
|
}), b = computed(() => {
|
10496
|
-
var
|
10497
|
-
|
10498
|
-
if (
|
10499
|
-
|
10500
|
-
|
10501
|
-
|
10502
|
-
|
10503
|
-
|
10504
|
-
|
10505
|
-
|
10506
|
+
var R, x, L, M, V;
|
10507
|
+
let I = null;
|
10508
|
+
if (e.kgSpan !== void 0)
|
10509
|
+
I = e.kgSpan;
|
10510
|
+
else
|
10511
|
+
switch (e.kgContext) {
|
10512
|
+
case KG_FORM_CONTEXT.SEARCH:
|
10513
|
+
I = (R = u.value) == null ? void 0 : R.width;
|
10514
|
+
break;
|
10515
|
+
case KG_FORM_CONTEXT.SUBMIT:
|
10516
|
+
switch (!0) {
|
10517
|
+
case s.isCreating.value:
|
10518
|
+
I = (x = d.value) == null ? void 0 : x.crt_width;
|
10519
|
+
break;
|
10520
|
+
case s.isUpdating.value:
|
10521
|
+
I = (L = d.value) == null ? void 0 : L.upt_width;
|
10522
|
+
break;
|
10523
|
+
case s.isCopying.value:
|
10524
|
+
I = (M = d.value) == null ? void 0 : M.cpy_width;
|
10525
|
+
break;
|
10526
|
+
case s.isDeleting.value:
|
10527
|
+
I = (V = d.value) == null ? void 0 : V.del_width;
|
10528
|
+
break;
|
10529
|
+
}
|
10530
|
+
}
|
10531
|
+
return I = Number(I), new Array(24).fill(0).map((P, B) => B + 1).includes(I) ? I : null;
|
10506
10532
|
}), E = computed(() => {
|
10507
|
-
var L,
|
10508
|
-
|
10509
|
-
|
10533
|
+
var L, M;
|
10534
|
+
const I = get(C.value, "$el.parentElement");
|
10535
|
+
if (I && !((L = I.classList) != null && L.contains("ant-row")))
|
10536
|
+
throw new Error("<KgForm.Item> \u7684\u7236\u5143\u7D20\u5FC5\u987B\u662F <Row> \u6216\u8005 <a-row>.");
|
10537
|
+
let R = {};
|
10538
|
+
const x = Math.abs(Number.parseInt((M = get(C.value, "$el.parentElement.style.marginLeft")) != null ? M : "0px"));
|
10539
|
+
return Number.isNaN(x) || (R = {
|
10540
|
+
paddingLeft: `${x}px !important`,
|
10541
|
+
paddingRight: `${x}px !important`
|
10542
|
+
}), R;
|
10543
|
+
}), T = computed(() => {
|
10544
|
+
var R, x, L, M;
|
10545
|
+
let I = "kg-form-item";
|
10546
|
+
switch (i.value && (I += " kg-form-item-lookup"), b.value !== null && (I += " kg-form-item--col-fixed"), e.kgContext) {
|
10510
10547
|
case KG_FORM_CONTEXT.SEARCH:
|
10511
10548
|
switch (!0) {
|
10512
|
-
case ((
|
10513
|
-
|
10549
|
+
case ((R = u.value) == null ? void 0 : R.vis_flg) === 0:
|
10550
|
+
I += " kg-form-item--invisible";
|
10514
10551
|
break;
|
10515
10552
|
}
|
10516
10553
|
break;
|
10517
10554
|
case KG_FORM_CONTEXT.SUBMIT:
|
10518
10555
|
switch (!0) {
|
10519
|
-
case (s.isCreating.value && ((
|
10520
|
-
case (s.isUpdating.value && ((
|
10521
|
-
case (s.isCopying.value && ((
|
10522
|
-
|
10556
|
+
case (s.isCreating.value && ((x = d.value) == null ? void 0 : x.crt_vis_flg) === 0):
|
10557
|
+
case (s.isUpdating.value && ((L = d.value) == null ? void 0 : L.upt_vis_flg) === 0):
|
10558
|
+
case (s.isCopying.value && ((M = d.value) == null ? void 0 : M.cpy_vis_flg) === 0):
|
10559
|
+
I += " kg-form-item--invisible";
|
10523
10560
|
break;
|
10524
10561
|
}
|
10525
10562
|
break;
|
10526
10563
|
}
|
10527
|
-
return
|
10528
|
-
}),
|
10529
|
-
var
|
10530
|
-
const
|
10564
|
+
return I;
|
10565
|
+
}), k = computed(() => {
|
10566
|
+
var R;
|
10567
|
+
const I = {
|
10531
10568
|
...e,
|
10532
|
-
value: (
|
10533
|
-
"onUpdate:value": (
|
10534
|
-
a.value && (a.value[e.kgVarName] =
|
10569
|
+
value: (R = a.value) == null ? void 0 : R[e.kgVarName],
|
10570
|
+
"onUpdate:value": (x) => {
|
10571
|
+
a.value && (a.value[e.kgVarName] = x);
|
10535
10572
|
},
|
10536
10573
|
kgPlaceholder: _.value,
|
10537
10574
|
kgDisabled: y.value,
|
10538
|
-
id:
|
10575
|
+
id: A.value
|
10539
10576
|
};
|
10540
10577
|
switch (v.value) {
|
10541
10578
|
case KG_FORM_ITEM_TYPE.INPUT_NUMBER:
|
@@ -10543,87 +10580,87 @@ const KgFormItemRadioGroup = defineComponent({
|
|
10543
10580
|
case KG_FORM_ITEM_TYPE.SELECT:
|
10544
10581
|
break;
|
10545
10582
|
case KG_FORM_ITEM_TYPE.SELECT_MULTIPLE:
|
10546
|
-
|
10583
|
+
I.kgMode = "multiple";
|
10547
10584
|
break;
|
10548
10585
|
case KG_FORM_ITEM_TYPE.SWITCH:
|
10549
10586
|
break;
|
10550
10587
|
case KG_FORM_ITEM_TYPE.DATE_DATE:
|
10551
|
-
|
10588
|
+
I.kgShowTime = !1;
|
10552
10589
|
break;
|
10553
10590
|
case KG_FORM_ITEM_TYPE.DATE_DATE_RANGE:
|
10554
|
-
|
10591
|
+
I.kgShowTime = !1;
|
10555
10592
|
break;
|
10556
10593
|
case KG_FORM_ITEM_TYPE.DATE_TIME:
|
10557
|
-
|
10594
|
+
I.kgPicker = "time";
|
10558
10595
|
break;
|
10559
10596
|
case KG_FORM_ITEM_TYPE.DATE_TIME_RANGE:
|
10560
|
-
|
10597
|
+
I.kgPicker = "time";
|
10561
10598
|
break;
|
10562
10599
|
case KG_FORM_ITEM_TYPE.DATE_DATETIME:
|
10563
|
-
|
10600
|
+
I.kgShowTime = e.kgShowTime === void 0 ? !0 : e.kgShowTime;
|
10564
10601
|
break;
|
10565
10602
|
case KG_FORM_ITEM_TYPE.DATE_DATETIME_RANGE:
|
10566
|
-
|
10603
|
+
I.kgShowTime = e.kgShowTime === void 0 ? !0 : e.kgShowTime;
|
10567
10604
|
break;
|
10568
10605
|
}
|
10569
|
-
return
|
10570
|
-
}),
|
10571
|
-
function
|
10606
|
+
return I;
|
10607
|
+
}), A = computed(() => encodeURIComponent(`${e.kgContext}~${s.formID}~${e.kgVarName}`)), C = ref(null);
|
10608
|
+
function D() {
|
10572
10609
|
if (t.control) {
|
10573
|
-
const
|
10610
|
+
const I = {
|
10574
10611
|
frm_id: s.formID,
|
10575
10612
|
varName: e.kgVarName,
|
10576
|
-
props:
|
10613
|
+
props: k,
|
10577
10614
|
model: a,
|
10578
10615
|
varVariableConfig: c,
|
10579
10616
|
varProfileDetail: u,
|
10580
10617
|
varSubmitField: d
|
10581
10618
|
};
|
10582
|
-
return t.control(
|
10619
|
+
return t.control(I);
|
10583
10620
|
}
|
10584
10621
|
switch (v.value) {
|
10585
10622
|
case KG_FORM_ITEM_TYPE.INPUT_NUMBER:
|
10586
|
-
return createVNode(KgFormItemInputNumber,
|
10623
|
+
return createVNode(KgFormItemInputNumber, k.value, null);
|
10587
10624
|
case KG_FORM_ITEM_TYPE.TEXT_AREA:
|
10588
|
-
return createVNode(KgFormItemTextArea,
|
10625
|
+
return createVNode(KgFormItemTextArea, k.value, null);
|
10589
10626
|
case KG_FORM_ITEM_TYPE.SELECT:
|
10590
|
-
return createVNode(KgFormItemSelect,
|
10627
|
+
return createVNode(KgFormItemSelect, k.value, null);
|
10591
10628
|
case KG_FORM_ITEM_TYPE.SELECT_MULTIPLE:
|
10592
|
-
return createVNode(KgFormItemSelect,
|
10629
|
+
return createVNode(KgFormItemSelect, k.value, null);
|
10593
10630
|
case KG_FORM_ITEM_TYPE.SWITCH:
|
10594
|
-
return createVNode(KgFormItemSwitch,
|
10631
|
+
return createVNode(KgFormItemSwitch, k.value, null);
|
10595
10632
|
case KG_FORM_ITEM_TYPE.CHECKBOX:
|
10596
|
-
return createVNode(KgFormItemCheckbox,
|
10633
|
+
return createVNode(KgFormItemCheckbox, k.value, null);
|
10597
10634
|
case KG_FORM_ITEM_TYPE.CHECKBOX_GROUP:
|
10598
|
-
return createVNode(KgFormItemCheckboxGroup,
|
10635
|
+
return createVNode(KgFormItemCheckboxGroup, k.value, null);
|
10599
10636
|
case KG_FORM_ITEM_TYPE.RADIO_GROUP:
|
10600
|
-
return createVNode(KgFormItemRadioGroup,
|
10637
|
+
return createVNode(KgFormItemRadioGroup, k.value, null);
|
10601
10638
|
case KG_FORM_ITEM_TYPE.DATE_DATE:
|
10602
|
-
return createVNode(KgFormItemDate,
|
10639
|
+
return createVNode(KgFormItemDate, k.value, null);
|
10603
10640
|
case KG_FORM_ITEM_TYPE.DATE_DATE_RANGE:
|
10604
|
-
return createVNode(KgFormItemDateRange,
|
10641
|
+
return createVNode(KgFormItemDateRange, k.value, null);
|
10605
10642
|
case KG_FORM_ITEM_TYPE.DATE_TIME:
|
10606
|
-
return createVNode(KgFormItemDate,
|
10643
|
+
return createVNode(KgFormItemDate, k.value, null);
|
10607
10644
|
case KG_FORM_ITEM_TYPE.DATE_TIME_RANGE:
|
10608
|
-
return createVNode(KgFormItemDateRange,
|
10645
|
+
return createVNode(KgFormItemDateRange, k.value, null);
|
10609
10646
|
case KG_FORM_ITEM_TYPE.DATE_DATETIME:
|
10610
|
-
return createVNode(KgFormItemDate,
|
10647
|
+
return createVNode(KgFormItemDate, k.value, null);
|
10611
10648
|
case KG_FORM_ITEM_TYPE.DATE_DATETIME_RANGE:
|
10612
|
-
return createVNode(KgFormItemDateRange,
|
10649
|
+
return createVNode(KgFormItemDateRange, k.value, null);
|
10613
10650
|
default:
|
10614
|
-
return createVNode(KgFormItemInput,
|
10651
|
+
return createVNode(KgFormItemInput, k.value, null);
|
10615
10652
|
}
|
10616
10653
|
}
|
10617
|
-
function
|
10618
|
-
var
|
10619
|
-
return ((
|
10654
|
+
function w() {
|
10655
|
+
var I;
|
10656
|
+
return ((I = s.currentVarProfileMaster.value) == null ? void 0 : I.dyn_flg) !== 1 ? null : createVNode(Form.ItemRest, null, {
|
10620
10657
|
default: () => {
|
10621
|
-
var
|
10658
|
+
var R;
|
10622
10659
|
return [createVNode(Select, {
|
10623
|
-
value: (
|
10624
|
-
"onUpdate:value": (
|
10660
|
+
value: (R = o.operatorModel.value) == null ? void 0 : R[e.kgVarName],
|
10661
|
+
"onUpdate:value": (x) => {
|
10625
10662
|
o.store.patchOperatorModel(s.formID, {
|
10626
|
-
[e.kgVarName]:
|
10663
|
+
[e.kgVarName]: x
|
10627
10664
|
});
|
10628
10665
|
},
|
10629
10666
|
disabled: y.value,
|
@@ -10631,8 +10668,8 @@ const KgFormItemRadioGroup = defineComponent({
|
|
10631
10668
|
dropdownClassName: "kg-form-item-operator-select-dropdown"
|
10632
10669
|
}, {
|
10633
10670
|
default: () => {
|
10634
|
-
var
|
10635
|
-
return KgVarUtil.getDynamicQueryOperatorSelectOptions((
|
10671
|
+
var x;
|
10672
|
+
return KgVarUtil.getDynamicQueryOperatorSelectOptions((x = v.value) != null ? x : "");
|
10636
10673
|
},
|
10637
10674
|
suffixIcon: () => createVNode(CaretDownOutlined$1, {
|
10638
10675
|
class: "ant-select-suffix"
|
@@ -10641,14 +10678,14 @@ const KgFormItemRadioGroup = defineComponent({
|
|
10641
10678
|
}
|
10642
10679
|
});
|
10643
10680
|
}
|
10644
|
-
function
|
10681
|
+
function O() {
|
10645
10682
|
return e.kgShowLabel ? createVNode("span", {
|
10646
10683
|
title: s.t(e.kgVarName).value
|
10647
10684
|
}, [s.t(e.kgVarName).value]) : null;
|
10648
10685
|
}
|
10649
|
-
function
|
10650
|
-
var
|
10651
|
-
return !i.value || !((
|
10686
|
+
function $() {
|
10687
|
+
var I;
|
10688
|
+
return !i.value || !((I = i.value) != null && I.lkp_id) ? null : createVNode(Form.ItemRest, null, {
|
10652
10689
|
default: () => [createVNode(KgFormItemAddonLookup, {
|
10653
10690
|
kgDisabled: y.value,
|
10654
10691
|
kgLookupID: i.value.lkp_id
|
@@ -10656,25 +10693,25 @@ const KgFormItemRadioGroup = defineComponent({
|
|
10656
10693
|
});
|
10657
10694
|
}
|
10658
10695
|
return () => {
|
10659
|
-
var
|
10696
|
+
var I, R;
|
10660
10697
|
return s.isRetrieving.value ? null : createVNode(Col, {
|
10661
|
-
ref:
|
10698
|
+
ref: C,
|
10662
10699
|
span: g.value,
|
10663
|
-
class:
|
10664
|
-
style:
|
10700
|
+
class: T.value,
|
10701
|
+
style: E.value,
|
10665
10702
|
"kg-frm_id": s.formID,
|
10666
10703
|
"kg-var_nam": e.kgVarName,
|
10667
|
-
"kg-lkp_id": (
|
10668
|
-
"kg-ret_fld": (
|
10704
|
+
"kg-lkp_id": (I = i.value) == null ? void 0 : I.lkp_id,
|
10705
|
+
"kg-ret_fld": (R = i.value) == null ? void 0 : R.ret_fld
|
10669
10706
|
}, {
|
10670
10707
|
default: () => [createVNode(Form.Item, {
|
10671
10708
|
name: e.kgVarName,
|
10672
10709
|
rules: p.value,
|
10673
10710
|
validateFirst: !0,
|
10674
|
-
htmlFor:
|
10711
|
+
htmlFor: A.value
|
10675
10712
|
}, {
|
10676
|
-
default: () => createVNode(Fragment, null, [
|
10677
|
-
label: () =>
|
10713
|
+
default: () => createVNode(Fragment, null, [w(), D(), $()]),
|
10714
|
+
label: () => O()
|
10678
10715
|
})]
|
10679
10716
|
});
|
10680
10717
|
};
|
@@ -11377,7 +11414,7 @@ const getProps$p = () => ({
|
|
11377
11414
|
inject(DI_KG_VAR__KG_PROPS, null);
|
11378
11415
|
const n = useKg(), s = useKgVar(), l = useKgButton(), o = useKgTable(), i = useKgSubmit(), c = useKgSearch();
|
11379
11416
|
l.onSubmitSave(async () => (await ee(), !1)), l.onSubmitCancel(async () => (await z(), !1)), _useFormModel$1();
|
11380
|
-
const u = computed(() => s.isDeleting.value &&
|
11417
|
+
const u = computed(() => s.isDeleting.value && $.value.length === 0 && R.value.length === 0), d = computed(() => i.store.isLoading(s.formID)), p = computed(() => s.store.getVarSubmitConfig(s.formID)), v = computed(() => s.store.getVarSubmitFieldsForCreateKey(s.formID)), y = computed(() => s.store.getVarSubmitFieldsForCreateNotKey(s.formID)), _ = computed(() => s.store.getVarSubmitFieldsForUpdateKey(s.formID)), g = computed(() => s.store.getVarSubmitFieldsForUpdateNotKey(s.formID)), b = computed(() => s.store.getVarSubmitFieldsForCopyKey(s.formID)), E = computed(() => s.store.getVarSubmitFieldsForCopyNotKey(s.formID)), T = computed(() => s.store.getVarSubmitFieldsForCreateKeyVisible(s.formID)), k = computed(() => s.store.getVarSubmitFieldsForCreateNotKeyVisible(s.formID)), A = computed(() => s.store.getVarSubmitFieldsForUpdateKeyVisible(s.formID)), C = computed(() => s.store.getVarSubmitFieldsForUpdateNotKeyVisible(s.formID)), D = computed(() => s.store.getVarSubmitFieldsForCopyKeyVisible(s.formID)), w = computed(() => s.store.getVarSubmitFieldsForCopyNotKeyVisible(s.formID)), O = computed(() => s.store.getVarSubmitFieldsForDelete(s.formID)), $ = computed(() => {
|
11381
11418
|
var G, W, Z;
|
11382
11419
|
switch (!0) {
|
11383
11420
|
case s.isCreating.value:
|
@@ -11390,7 +11427,7 @@ const getProps$p = () => ({
|
|
11390
11427
|
return [];
|
11391
11428
|
}
|
11392
11429
|
return [];
|
11393
|
-
}),
|
11430
|
+
}), I = computed(() => {
|
11394
11431
|
var G, W, Z;
|
11395
11432
|
switch (!0) {
|
11396
11433
|
case s.isCreating.value:
|
@@ -11416,7 +11453,7 @@ const getProps$p = () => ({
|
|
11416
11453
|
return (re = O.value) != null ? re : [];
|
11417
11454
|
}
|
11418
11455
|
return [];
|
11419
|
-
}),
|
11456
|
+
}), x = computed(() => {
|
11420
11457
|
var G, W, Z, re;
|
11421
11458
|
switch (!0) {
|
11422
11459
|
case s.isCreating.value:
|
@@ -11429,9 +11466,9 @@ const getProps$p = () => ({
|
|
11429
11466
|
return (re = O.value) != null ? re : [];
|
11430
11467
|
}
|
11431
11468
|
return [];
|
11432
|
-
}),
|
11469
|
+
}), L = computed(() => !!s.store.isCreatingRequesting(s.formID) || !!s.store.isUpdatingRequesting(s.formID) || !!s.store.isCopyingRequesting(s.formID) || !!s.store.isDeletingRequesting(s.formID)), M = computed(() => L.value || d.value), V = computed(() => d.value), P = ref({
|
11433
11470
|
kgWidth: 0
|
11434
|
-
}),
|
11471
|
+
}), B = computed(() => {
|
11435
11472
|
var G;
|
11436
11473
|
return !!(u.value || te.isFullscreen || ((G = p.value) == null ? void 0 : G.resizable_flg) === 0);
|
11437
11474
|
}), H = computed(() => {
|
@@ -11440,9 +11477,9 @@ const getProps$p = () => ({
|
|
11440
11477
|
}), K = computed(() => {
|
11441
11478
|
var G, W;
|
11442
11479
|
return u.value ? 398 : (W = (G = p.value) == null ? void 0 : G.max_width) != null ? W : DEFAULT_MAX_WIDTH;
|
11443
|
-
}), F = computed(() => u.value ? 398 :
|
11480
|
+
}), F = computed(() => u.value ? 398 : P.value.kgWidth), Y = ref(null);
|
11444
11481
|
_useResizeObserver$1(Y);
|
11445
|
-
const q = _useTitle(), X = computed(() => u.value ? 400 :
|
11482
|
+
const q = _useTitle(), X = computed(() => u.value ? 400 : P.value.kgWidth && P.value.kgWidth > 0 ? "auto" : 0), J = computed(() => X.value === 0 ? !1 : !!(s.isCreating.value || s.isUpdating.value || s.isCopying.value || s.isDeleting.value)), te = reactive({
|
11446
11483
|
isFullscreen: !1
|
11447
11484
|
}), {
|
11448
11485
|
getClass: ue
|
@@ -11469,7 +11506,7 @@ const getProps$p = () => ({
|
|
11469
11506
|
default:
|
11470
11507
|
return;
|
11471
11508
|
}
|
11472
|
-
}),
|
11509
|
+
}), N = computed(() => {
|
11473
11510
|
var G, W;
|
11474
11511
|
switch (_e.value) {
|
11475
11512
|
case "horizontal":
|
@@ -11490,7 +11527,7 @@ const getProps$p = () => ({
|
|
11490
11527
|
}, {
|
11491
11528
|
immediate: !0
|
11492
11529
|
}), watch(fe, (G) => {
|
11493
|
-
G && (
|
11530
|
+
G && (P.value.kgWidth = G);
|
11494
11531
|
}, {
|
11495
11532
|
immediate: !0
|
11496
11533
|
});
|
@@ -11520,7 +11557,7 @@ const getProps$p = () => ({
|
|
11520
11557
|
});
|
11521
11558
|
}
|
11522
11559
|
async function Q() {
|
11523
|
-
|
11560
|
+
P.value.kgWidth = fe.value, te.isFullscreen = !1, await i.store.emit(s.formID, "close", null);
|
11524
11561
|
}
|
11525
11562
|
function z() {
|
11526
11563
|
switch (!0) {
|
@@ -11817,8 +11854,8 @@ const getProps$p = () => ({
|
|
11817
11854
|
kgMinWidth: H.value,
|
11818
11855
|
kgMaxWidth: K.value,
|
11819
11856
|
kgWidth: F.value,
|
11820
|
-
kgDisabled:
|
11821
|
-
"onUpdate:kgWidth": (Z) =>
|
11857
|
+
kgDisabled: B.value,
|
11858
|
+
"onUpdate:kgWidth": (Z) => P.value.kgWidth = Z
|
11822
11859
|
}, {
|
11823
11860
|
default: () => [createVNode(Spin, {
|
11824
11861
|
spinning: d.value
|
@@ -11828,15 +11865,15 @@ const getProps$p = () => ({
|
|
11828
11865
|
model: i.model.value,
|
11829
11866
|
layout: _e.value,
|
11830
11867
|
labelCol: ae.value,
|
11831
|
-
wrapperCol:
|
11868
|
+
wrapperCol: N.value
|
11832
11869
|
}, {
|
11833
11870
|
default: () => [createVNode("div", {
|
11834
11871
|
ref: Y
|
11835
|
-
}, [
|
11872
|
+
}, [$.value.length > 0 && createVNode(Row, {
|
11836
11873
|
gutter: 12
|
11837
|
-
}, _isSlot$9(G =
|
11874
|
+
}, _isSlot$9(G = $.value.map(be)) ? G : {
|
11838
11875
|
default: () => [G]
|
11839
|
-
}),
|
11876
|
+
}), I.value.length > 0 && x.value.length > 0 && createVNode(Divider, null, null), R.value.length > 0 && createVNode(Row, {
|
11840
11877
|
gutter: 12
|
11841
11878
|
}, _isSlot$9(W = R.value.map(be)) ? W : {
|
11842
11879
|
default: () => [W]
|
@@ -11851,15 +11888,15 @@ const getProps$p = () => ({
|
|
11851
11888
|
let G, W;
|
11852
11889
|
return createVNode("div", null, [createVNode(Button, {
|
11853
11890
|
type: "primary",
|
11854
|
-
ghost: !
|
11855
|
-
disabled:
|
11891
|
+
ghost: !M.value,
|
11892
|
+
disabled: M.value,
|
11856
11893
|
onClick: z
|
11857
11894
|
}, _isSlot$9(G = n.t("kg.cancel")) ? G : {
|
11858
11895
|
default: () => [G]
|
11859
11896
|
}), createVNode(Button, {
|
11860
11897
|
type: "primary",
|
11861
11898
|
disabled: V.value,
|
11862
|
-
loading:
|
11899
|
+
loading: L.value,
|
11863
11900
|
danger: !!s.isDeleting.value,
|
11864
11901
|
onClick: ee
|
11865
11902
|
}, _isSlot$9(W = n.t(s.isDeleting.value ? "kg.delete" : "kg.save")) ? W : {
|
@@ -13207,7 +13244,7 @@ const KgTable_Setting_ConfigModal_VarGridMaster = "", getProps$m = () => ({
|
|
13207
13244
|
row: A,
|
13208
13245
|
model: C
|
13209
13246
|
}) => {
|
13210
|
-
var w, O,
|
13247
|
+
var w, O, $, I, R;
|
13211
13248
|
const D = a.store.getSystemVarGridDetails(a.formID);
|
13212
13249
|
switch (c.value = D ? cloneDeep(unref(toRaw(D))) : [], !0) {
|
13213
13250
|
case E: {
|
@@ -13219,24 +13256,24 @@ const KgTable_Setting_ConfigModal_VarGridMaster = "", getProps$m = () => ({
|
|
13219
13256
|
if (A != null && A.id)
|
13220
13257
|
try {
|
13221
13258
|
o.store.setIsLoading(n.formID, !0);
|
13222
|
-
const
|
13259
|
+
const x = await QueryByID$1({
|
13223
13260
|
params: {
|
13224
13261
|
id: A.id
|
13225
13262
|
}
|
13226
13263
|
});
|
13227
|
-
c.value = c.value.map((
|
13228
|
-
var
|
13229
|
-
const V = (
|
13264
|
+
c.value = c.value.map((M) => {
|
13265
|
+
var P;
|
13266
|
+
const V = (P = x == null ? void 0 : x.varGridDetails) == null ? void 0 : P.find((B) => B.var_nam === M.var_nam);
|
13230
13267
|
return V ? {
|
13231
|
-
...
|
13268
|
+
...M,
|
13232
13269
|
...V,
|
13233
|
-
id:
|
13234
|
-
} :
|
13270
|
+
id: M.id
|
13271
|
+
} : M;
|
13235
13272
|
});
|
13236
|
-
const
|
13237
|
-
u.value = c.value.filter((
|
13238
|
-
} catch (
|
13239
|
-
throw
|
13273
|
+
const L = (O = (w = x == null ? void 0 : x.varGridDetails) == null ? void 0 : w.map((M) => M.var_nam)) != null ? O : [];
|
13274
|
+
u.value = c.value.filter((M) => L.includes(M.var_nam)).map((M) => M.id);
|
13275
|
+
} catch (x) {
|
13276
|
+
throw x;
|
13240
13277
|
} finally {
|
13241
13278
|
o.store.setIsLoading(n.formID, !1);
|
13242
13279
|
}
|
@@ -13247,7 +13284,7 @@ const KgTable_Setting_ConfigModal_VarGridMaster = "", getProps$m = () => ({
|
|
13247
13284
|
}
|
13248
13285
|
switch (!0) {
|
13249
13286
|
case k: {
|
13250
|
-
C.value.grd_var_nam = ((
|
13287
|
+
C.value.grd_var_nam = (($ = C.value.grd_var_nam) != null ? $ : "") + "_COPY", C.value.grd_var_nam_dsc = ((R = (I = C.value.grd_var_nam_dsc) != null ? I : C.value.grd_var_nam) != null ? R : "") + "_COPY";
|
13251
13288
|
break;
|
13252
13289
|
}
|
13253
13290
|
}
|
@@ -13320,9 +13357,9 @@ const KgTable_Setting_ConfigModal_VarGridMaster = "", getProps$m = () => ({
|
|
13320
13357
|
onItemSelectAll: C,
|
13321
13358
|
onItemSelect: D
|
13322
13359
|
}) => {
|
13323
|
-
const w = T.sort((O,
|
13324
|
-
var
|
13325
|
-
return ((
|
13360
|
+
const w = T.sort((O, $) => {
|
13361
|
+
var I, R;
|
13362
|
+
return ((I = O.srtseq) != null ? I : 0) - ((R = $.srtseq) != null ? R : 0);
|
13326
13363
|
});
|
13327
13364
|
return d.value = w, createVNode(Table, {
|
13328
13365
|
pagination: !1,
|
@@ -13336,10 +13373,10 @@ const KgTable_Setting_ConfigModal_VarGridMaster = "", getProps$m = () => ({
|
|
13336
13373
|
rowKey: "id",
|
13337
13374
|
dataSource: w,
|
13338
13375
|
customRow: (O) => {
|
13339
|
-
let
|
13340
|
-
onClick: (
|
13376
|
+
let $ = {
|
13377
|
+
onClick: (I) => b(I, O, E, k)
|
13341
13378
|
};
|
13342
|
-
return E === "right" && (
|
13379
|
+
return E === "right" && ($["kg-host-frm_id"] = a.formID, $["kg-var_nam"] = O.var_nam), $;
|
13343
13380
|
},
|
13344
13381
|
rowSelection: g({
|
13345
13382
|
disabled: A,
|
@@ -13622,10 +13659,10 @@ const getProps$j = () => ({
|
|
13622
13659
|
var w;
|
13623
13660
|
let C, D;
|
13624
13661
|
return createVNode(Fragment, null, [(w = n.varGridMasters.value) == null ? void 0 : w.map((O) => {
|
13625
|
-
var
|
13662
|
+
var $;
|
13626
13663
|
return createVNode(Menu.Item, {
|
13627
13664
|
key: O.id,
|
13628
|
-
class: O.id === ((
|
13665
|
+
class: O.id === (($ = n.currentVarGridMaster.value) == null ? void 0 : $.id) ? "selected" : "",
|
13629
13666
|
"kg-var_nam": O.grd_var_nam,
|
13630
13667
|
onClick: () => _(O)
|
13631
13668
|
}, {
|
@@ -13663,7 +13700,7 @@ const getProps$j = () => ({
|
|
13663
13700
|
popupClassName: "kg-table-setting--submenu-popup--row-height"
|
13664
13701
|
}, {
|
13665
13702
|
default: () => {
|
13666
|
-
let O,
|
13703
|
+
let O, $, I;
|
13667
13704
|
return createVNode(Fragment, null, [createVNode(Menu.Item, {
|
13668
13705
|
key: "L",
|
13669
13706
|
class: u.value === "L" ? "selected" : "",
|
@@ -13674,14 +13711,14 @@ const getProps$j = () => ({
|
|
13674
13711
|
key: "M",
|
13675
13712
|
class: u.value === "M" ? "selected" : "",
|
13676
13713
|
onClick: () => s.store.setRowHeight(n.formID, "M")
|
13677
|
-
}, _isSlot$6(
|
13678
|
-
default: () => [
|
13714
|
+
}, _isSlot$6($ = a.t("kg.KgTable.rowHeightM")) ? $ : {
|
13715
|
+
default: () => [$]
|
13679
13716
|
}), createVNode(Menu.Item, {
|
13680
13717
|
key: "H",
|
13681
13718
|
class: u.value === "H" ? "selected" : "",
|
13682
13719
|
onClick: () => s.store.setRowHeight(n.formID, "H")
|
13683
|
-
}, _isSlot$6(
|
13684
|
-
default: () => [
|
13720
|
+
}, _isSlot$6(I = a.t("kg.KgTable.rowHeightH")) ? I : {
|
13721
|
+
default: () => [I]
|
13685
13722
|
})]);
|
13686
13723
|
},
|
13687
13724
|
expandIcon: () => createVNode(CaretRightOutlined$1, null, null)
|
@@ -13793,8 +13830,8 @@ const getProps$h = () => ({
|
|
13793
13830
|
switch ((A = i.value) == null ? void 0 : A.display_type) {
|
13794
13831
|
case KG_TABLE_CELL_DISPLAY_TYPE.DESC:
|
13795
13832
|
{
|
13796
|
-
const
|
13797
|
-
|
13833
|
+
const $ = KgUtil.tryParseJSON((C = i.value) == null ? void 0 : C.display_type_properties);
|
13834
|
+
$.dscFieldName ? k = ((D = e.kgRow) == null ? void 0 : D[$.dscFieldName]) || e.kgValue : k = ((w = e.kgRow) == null ? void 0 : w[`${e.kgVarName}_dsc`]) || ((O = e.kgRow) == null ? void 0 : O[`${e.kgVarName}Dsc`]) || e.kgValue;
|
13798
13835
|
}
|
13799
13836
|
break;
|
13800
13837
|
}
|
@@ -13851,35 +13888,35 @@ const getProps$h = () => ({
|
|
13851
13888
|
});
|
13852
13889
|
}
|
13853
13890
|
function E() {
|
13854
|
-
var k, A, C, D, w, O,
|
13891
|
+
var k, A, C, D, w, O, $, I, R, x, L;
|
13855
13892
|
if (u.value)
|
13856
13893
|
return b();
|
13857
13894
|
switch ((k = i.value) == null ? void 0 : k.display_type) {
|
13858
13895
|
case KG_TABLE_CELL_DISPLAY_TYPE.YN: {
|
13859
|
-
const
|
13896
|
+
const M = KgUtil.tryParseJSON((A = i.value) == null ? void 0 : A.display_type_properties);
|
13860
13897
|
return createVNode(KgYesOrNo, {
|
13861
|
-
kgValue: isNil(e.kgValue) ? void 0 : e.kgValue === ((C =
|
13862
|
-
kgNilAsFalse:
|
13898
|
+
kgValue: isNil(e.kgValue) ? void 0 : e.kgValue === ((C = M.yValue) != null ? C : 1),
|
13899
|
+
kgNilAsFalse: M.nilAsFalse
|
13863
13900
|
}, null);
|
13864
13901
|
}
|
13865
13902
|
case KG_TABLE_CELL_DISPLAY_TYPE.ENUM: {
|
13866
|
-
const
|
13903
|
+
const M = KgUtil.tryParseJSON((D = i.value) == null ? void 0 : D.display_type_properties), V = isArrayLike(M) && M.find((P) => P.value === e.kgValue);
|
13867
13904
|
if (V) {
|
13868
|
-
const
|
13869
|
-
return
|
13905
|
+
const P = n.t(V.varName).value;
|
13906
|
+
return P ? createVNode(Tag, {
|
13870
13907
|
color: (w = V.color) != null ? w : "default"
|
13871
|
-
}, _isSlot$5(
|
13872
|
-
default: () => [
|
13908
|
+
}, _isSlot$5(P) ? P : {
|
13909
|
+
default: () => [P]
|
13873
13910
|
}) : T();
|
13874
13911
|
} else
|
13875
13912
|
return T();
|
13876
13913
|
}
|
13877
13914
|
case KG_TABLE_CELL_DISPLAY_TYPE.DESC: {
|
13878
|
-
const
|
13879
|
-
if (
|
13880
|
-
const V =
|
13915
|
+
const M = KgUtil.tryParseJSON((O = i.value) == null ? void 0 : O.display_type_properties);
|
13916
|
+
if (M.isTag && isArrayLike(M.tagColors)) {
|
13917
|
+
const V = M.tagColors.find((P) => P.value === e.kgValue);
|
13881
13918
|
return v.value ? createVNode(Tag, {
|
13882
|
-
color: (
|
13919
|
+
color: ($ = V == null ? void 0 : V.color) != null ? $ : "default"
|
13883
13920
|
}, {
|
13884
13921
|
default: () => [v.value]
|
13885
13922
|
}) : T();
|
@@ -13887,15 +13924,15 @@ const getProps$h = () => ({
|
|
13887
13924
|
return T();
|
13888
13925
|
}
|
13889
13926
|
case KG_TABLE_CELL_DISPLAY_TYPE.PROGRESS: {
|
13890
|
-
const
|
13927
|
+
const M = KgUtil.tryParseJSON((I = i.value) == null ? void 0 : I.display_type_properties), V = (x = (R = e.kgRow) == null ? void 0 : R[M.leftColumn]) != null ? x : 0;
|
13891
13928
|
switch (e.kgContext) {
|
13892
13929
|
case KG_TABLE_CELL_CONTEXT.TABLE_FILTER:
|
13893
13930
|
return V;
|
13894
13931
|
case KG_TABLE_CELL_CONTEXT.TABLE_CELL:
|
13895
13932
|
return createVNode(KgProgressA, {
|
13896
|
-
kgTextWidth:
|
13933
|
+
kgTextWidth: M.textWidth,
|
13897
13934
|
kgLeft: V,
|
13898
|
-
kgRight: (
|
13935
|
+
kgRight: (L = e.kgRow) == null ? void 0 : L[M.rightColumn]
|
13899
13936
|
}, null);
|
13900
13937
|
}
|
13901
13938
|
break;
|
@@ -14005,15 +14042,15 @@ function _useColumns(e) {
|
|
14005
14042
|
index: C
|
14006
14043
|
}) => C + 1
|
14007
14044
|
}, ...(A = b == null ? void 0 : b.map((C, D) => {
|
14008
|
-
var
|
14045
|
+
var P, B, H;
|
14009
14046
|
const w = C.var_nam;
|
14010
14047
|
function O() {
|
14011
14048
|
return C.width === "auto" ? "auto" : Number(C.width) || KG_TABLE_TD_DEFAULT_WIDTH;
|
14012
14049
|
}
|
14013
|
-
function
|
14050
|
+
function $() {
|
14014
14051
|
return r.t(w).value;
|
14015
14052
|
}
|
14016
|
-
function
|
14053
|
+
function I() {
|
14017
14054
|
if (C.fix_left_flg === 1)
|
14018
14055
|
return "left";
|
14019
14056
|
if (C.fix_right_flg === 1)
|
@@ -14023,7 +14060,7 @@ function _useColumns(e) {
|
|
14023
14060
|
var K, F, Y, q;
|
14024
14061
|
return !(C.ord_flg !== 1 || (F = (K = t == null ? void 0 : t.value) == null ? void 0 : K.KgTable) != null && F.kgDisabled || isNil((q = (Y = t == null ? void 0 : t.value) == null ? void 0 : Y.KgTable) == null ? void 0 : q.kgDisabled) && e.kgDisabled || r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || y.length <= 0);
|
14025
14062
|
}
|
14026
|
-
function
|
14063
|
+
function x() {
|
14027
14064
|
var K, F, Y, q, X, J;
|
14028
14065
|
if (((F = (K = v.option.value.KgTable) == null ? void 0 : K.filter) == null ? void 0 : F.on) === !0 && C.filter_flag === 1 && !((q = (Y = t == null ? void 0 : t.value) == null ? void 0 : Y.KgTable) != null && q.kgDisabled) && !(isNil((J = (X = t == null ? void 0 : t.value) == null ? void 0 : X.KgTable) == null ? void 0 : J.kgDisabled) && e.kgDisabled) && !(r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value) && !(y.length <= 0))
|
14029
14066
|
return uniqBy(y.map((te) => {
|
@@ -14041,11 +14078,11 @@ function _useColumns(e) {
|
|
14041
14078
|
};
|
14042
14079
|
}), "value");
|
14043
14080
|
}
|
14044
|
-
function
|
14081
|
+
function L() {
|
14045
14082
|
var K, F, Y;
|
14046
14083
|
return ((F = (K = v.option.value.KgTable) == null ? void 0 : K.filter) == null ? void 0 : F.on) !== !0 ? null : ((Y = o.value) == null ? void 0 : Y[w]) || null;
|
14047
14084
|
}
|
14048
|
-
function
|
14085
|
+
function M() {
|
14049
14086
|
return ["left", "center", "right"].includes(C.align || "") ? C.align : "left";
|
14050
14087
|
}
|
14051
14088
|
const V = O();
|
@@ -14066,17 +14103,17 @@ function _useColumns(e) {
|
|
14066
14103
|
return {
|
14067
14104
|
key: w,
|
14068
14105
|
dataIndex: w,
|
14069
|
-
title:
|
14106
|
+
title: $(),
|
14070
14107
|
width: V,
|
14071
14108
|
resizable: typeof V == "number",
|
14072
14109
|
minWidth: KG_TABLE_TD_MIN_WIDTH,
|
14073
14110
|
maxWidth: KG_TABLE_TD_MAX_WIDTH,
|
14074
|
-
align:
|
14075
|
-
fixed:
|
14111
|
+
align: M(),
|
14112
|
+
fixed: I(),
|
14076
14113
|
sorter: R(),
|
14077
|
-
sortOrder: ((
|
14078
|
-
filteredValue:
|
14079
|
-
filters:
|
14114
|
+
sortOrder: ((P = i.value) == null ? void 0 : P.field) === w && (H = (B = i.value) == null ? void 0 : B.order) != null ? H : null,
|
14115
|
+
filteredValue: L(),
|
14116
|
+
filters: x(),
|
14080
14117
|
onFilter: (K, F) => K === "" ? isNil(F == null ? void 0 : F[w]) || (F == null ? void 0 : F[w]) === "" : (F == null ? void 0 : F[w]) === K,
|
14081
14118
|
customHeaderCell: () => ({
|
14082
14119
|
"kg-frm_id": r.formID,
|
@@ -14254,28 +14291,28 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
14254
14291
|
setup: function(e) {
|
14255
14292
|
var ae;
|
14256
14293
|
const t = inject("$dayjs", dayjs), r = inject(DI_KG_VAR__KG_SLOTS, null), a = inject(DI_KG_VAR__KG_PROPS, null), n = useKg(), s = useKgVar(), l = useKgSearch(), o = useKgTable(), i = useKgSubmit();
|
14257
|
-
l.onSearch(async (
|
14294
|
+
l.onSearch(async (N) => (K(N), !1)), l.onReset(async () => (p.value = {}, K({
|
14258
14295
|
isSearchFirstPage: !0
|
14259
14296
|
}), !1)), o.store.$onAction(async ({
|
14260
|
-
name:
|
14297
|
+
name: N,
|
14261
14298
|
args: U
|
14262
14299
|
}) => {
|
14263
|
-
switch (
|
14300
|
+
switch (N) {
|
14264
14301
|
case "setRowSelect":
|
14265
14302
|
if (U[0] === s.formID) {
|
14266
14303
|
const Q = U[1], z = U[2], ee = Q[o.id.value];
|
14267
14304
|
switch (!0) {
|
14268
|
-
case (z &&
|
14269
|
-
F([
|
14305
|
+
case (z && !L.value.includes(ee)):
|
14306
|
+
F([...L.value, ee]);
|
14270
14307
|
break;
|
14271
|
-
case (!z &&
|
14272
|
-
F(without$1(
|
14308
|
+
case (!z && L.value.includes(ee)):
|
14309
|
+
F(without$1(L.value, ee));
|
14273
14310
|
break;
|
14274
14311
|
}
|
14275
14312
|
}
|
14276
14313
|
break;
|
14277
14314
|
case "clearDatas":
|
14278
|
-
U[0] === s.formID && (o.store.setDatas(s.formID, []),
|
14315
|
+
U[0] === s.formID && (o.store.setDatas(s.formID, []), M.total = 0, H(), c.value = []);
|
14279
14316
|
break;
|
14280
14317
|
}
|
14281
14318
|
});
|
@@ -14294,120 +14331,120 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
14294
14331
|
datas: b,
|
14295
14332
|
transformDatas: E
|
14296
14333
|
} = _useDatas(), T = computed(() => {
|
14297
|
-
var
|
14298
|
-
return (U = (
|
14334
|
+
var N, U;
|
14335
|
+
return (U = (N = s.varButtonSearch.value) == null ? void 0 : N.cmd) != null ? U : null;
|
14299
14336
|
}), k = computed(() => {
|
14300
14337
|
var U, Q, z, ee, ce, le, oe, me, be;
|
14301
|
-
let
|
14302
|
-
pageNo:
|
14303
|
-
pageSize:
|
14338
|
+
let N = {
|
14339
|
+
pageNo: M.pageIndex,
|
14340
|
+
pageSize: M.pageSize,
|
14304
14341
|
column: (Q = (U = p.value) == null ? void 0 : U.field) != null ? Q : void 0,
|
14305
14342
|
order: p.value.order === "ascend" ? "asc" : p.value.order === "descend" ? "desc" : void 0,
|
14306
14343
|
...(ee = (z = l.model) == null ? void 0 : z.value) != null ? ee : {}
|
14307
14344
|
};
|
14308
|
-
return s.varButtonSearch.value && (
|
14309
|
-
...
|
14345
|
+
return s.varButtonSearch.value && (N = {
|
14346
|
+
...N,
|
14310
14347
|
...KgVarUtil.parseCommandParameter((le = (ce = s.varButtonSearch.value) == null ? void 0 : ce.cmd_prm) != null ? le : "")
|
14311
|
-
}), (oe = s.varGridConfig.value) != null && oe.cmd_prm && (
|
14312
|
-
...
|
14348
|
+
}), (oe = s.varGridConfig.value) != null && oe.cmd_prm && (N = {
|
14349
|
+
...N,
|
14313
14350
|
...KgVarUtil.parseCommandParameter((me = s.varGridConfig.value.cmd_prm) != null ? me : "")
|
14314
|
-
}), ((be = s.varGridConfig.value) == null ? void 0 : be.convert_sort_field_to_under_score_flg) === 1 &&
|
14351
|
+
}), ((be = s.varGridConfig.value) == null ? void 0 : be.convert_sort_field_to_under_score_flg) === 1 && N.column && (N.column = snakeCase$1(N.column)), N;
|
14315
14352
|
}), A = computed(() => {
|
14316
|
-
var
|
14317
|
-
if (!isNil((U = (
|
14353
|
+
var N, U, Q, z;
|
14354
|
+
if (!isNil((U = (N = a == null ? void 0 : a.value) == null ? void 0 : N.KgTable) == null ? void 0 : U.kgDisabled))
|
14318
14355
|
return (z = (Q = a == null ? void 0 : a.value) == null ? void 0 : Q.KgTable) == null ? void 0 : z.kgDisabled;
|
14319
14356
|
if (!isNil(e.kgDisabled))
|
14320
14357
|
return e.kgDisabled;
|
14321
14358
|
}), C = computed(() => {
|
14322
|
-
var
|
14323
|
-
if (!isNil((U = (
|
14359
|
+
var N, U, Q, z;
|
14360
|
+
if (!isNil((U = (N = a == null ? void 0 : a.value) == null ? void 0 : N.KgTable) == null ? void 0 : U.kgCheckboxDisabled))
|
14324
14361
|
return (z = (Q = a == null ? void 0 : a.value) == null ? void 0 : Q.KgTable) == null ? void 0 : z.kgCheckboxDisabled;
|
14325
14362
|
if (!isNil(e.kgCheckboxDisabled))
|
14326
14363
|
return e.kgCheckboxDisabled;
|
14327
|
-
}), D = computed(() => !!A.value || y.value || !!s.isCreating.value || !!s.isUpdating.value || !!s.isCopying.value || !!s.isDeleting.value), w = computed(() => !!A.value || y.value || !!s.isCreating.value || !!s.isUpdating.value || !!s.isCopying.value || !!s.isDeleting.value ||
|
14328
|
-
var
|
14329
|
-
return !!((
|
14330
|
-
}),
|
14331
|
-
var
|
14332
|
-
return ((
|
14333
|
-
}),
|
14334
|
-
if (
|
14364
|
+
}), D = computed(() => !!A.value || y.value || !!s.isCreating.value || !!s.isUpdating.value || !!s.isCopying.value || !!s.isDeleting.value), w = computed(() => !!A.value || y.value || !!s.isCreating.value || !!s.isUpdating.value || !!s.isCopying.value || !!s.isDeleting.value || M.total === 0), O = computed(() => {
|
14365
|
+
var N;
|
14366
|
+
return !!((N = r == null ? void 0 : r.KgTable) != null && N.expandedRowRender);
|
14367
|
+
}), $ = computed(() => {
|
14368
|
+
var N;
|
14369
|
+
return ((N = s.varGridConfig.value) == null ? void 0 : N.show_check_column_flg) === 1;
|
14370
|
+
}), I = computed(() => {
|
14371
|
+
if (!!$.value)
|
14335
14372
|
return {
|
14336
14373
|
fixed: "left",
|
14337
14374
|
columnWidth: KG_TABLE_TD_CHECK_WIDTH,
|
14338
14375
|
hideSelectAll: !o.isMultiSelect.value,
|
14339
|
-
selectedRowKeys:
|
14376
|
+
selectedRowKeys: L,
|
14340
14377
|
preserveSelectedRowKeys: !1,
|
14341
|
-
getCheckboxProps: (
|
14378
|
+
getCheckboxProps: (N) => {
|
14342
14379
|
var U;
|
14343
14380
|
return {
|
14344
|
-
disabled: !!A.value || !!s.isCreating.value || !!s.isUpdating.value || !!s.isCopying.value || !!s.isDeleting.value || !!((U = C.value) != null && U.call(C,
|
14381
|
+
disabled: !!A.value || !!s.isCreating.value || !!s.isUpdating.value || !!s.isCopying.value || !!s.isDeleting.value || !!((U = C.value) != null && U.call(C, N))
|
14345
14382
|
};
|
14346
14383
|
},
|
14347
|
-
onSelect: (
|
14348
|
-
onChange: (
|
14384
|
+
onSelect: (N) => Y(N),
|
14385
|
+
onChange: (N) => o.isMultiSelect.value && F(N)
|
14349
14386
|
};
|
14350
14387
|
}), R = computed(() => {
|
14351
14388
|
var U;
|
14352
|
-
let
|
14353
|
-
switch (((U = s.varGridConfig.value) == null ? void 0 : U.show_bottom_border_flg) === 1 && (
|
14389
|
+
let N = "kg-table";
|
14390
|
+
switch (((U = s.varGridConfig.value) == null ? void 0 : U.show_bottom_border_flg) === 1 && (N += " kg-table--bottom-border"), !o.isShowBottomLeft.value && !o.isShowBottomRight.value && (N += " kg-table--no-bottom"), i.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && (s.isCreating.value || s.isUpdating.value || s.isCopying.value || s.isDeleting.value) && (N += " kg-table--submitting"), o.store.getRowHeight(s.formID)) {
|
14354
14391
|
case "L":
|
14355
|
-
|
14392
|
+
N += " kg-table--row-l";
|
14356
14393
|
break;
|
14357
14394
|
case "M":
|
14358
|
-
|
14395
|
+
N += " kg-table--row-m";
|
14359
14396
|
break;
|
14360
14397
|
case "H":
|
14361
|
-
|
14398
|
+
N += " kg-table--row-h";
|
14362
14399
|
break;
|
14363
14400
|
}
|
14364
|
-
return
|
14365
|
-
}),
|
14401
|
+
return N;
|
14402
|
+
}), x = computed(() => {
|
14366
14403
|
var U;
|
14367
|
-
let
|
14368
|
-
return ((U = s.varGridConfig.value) == null ? void 0 : U.show_bottom_border_flg) === 1 && (
|
14369
|
-
}),
|
14404
|
+
let N = "kg-table-bottom";
|
14405
|
+
return ((U = s.varGridConfig.value) == null ? void 0 : U.show_bottom_border_flg) === 1 && (N += " kg-table-bottom--border"), N;
|
14406
|
+
}), L = (ae = o.store.getSelectedRowKeys(s.formID)) != null ? ae : ref([]), M = reactive({
|
14370
14407
|
pageIndex: 1,
|
14371
14408
|
pageSize: 10,
|
14372
14409
|
total: 0
|
14373
|
-
}), V = watch(o.pageSizeOption, (
|
14374
|
-
|
14410
|
+
}), V = watch(o.pageSizeOption, (N) => {
|
14411
|
+
N && (setTimeout(() => V()), M.pageSize = N, o.store.emit(s.formID, "ready", {}), o.store.setIsReady(s.formID, !0));
|
14375
14412
|
}, {
|
14376
14413
|
immediate: !0
|
14377
14414
|
});
|
14378
|
-
watch(o.pageSizeOptions, (
|
14379
|
-
|
14380
|
-
}), watch([T, o.isReadAutomatically, l.isReady], ([
|
14381
|
-
|
14415
|
+
watch(o.pageSizeOptions, (N) => {
|
14416
|
+
N.length > 0 && !N.includes(M.pageSize) && (M.pageSize = o.pageSizeOption.value);
|
14417
|
+
}), watch([T, o.isReadAutomatically, l.isReady], ([N, U, Q]) => {
|
14418
|
+
N && U && Q && !o.store.getIsRetrieved(s.formID) && K({
|
14382
14419
|
isSearchFirstPage: !0
|
14383
14420
|
});
|
14384
14421
|
}, {
|
14385
14422
|
immediate: !0
|
14386
|
-
}), watch(s.isCreating, (
|
14387
|
-
|
14423
|
+
}), watch(s.isCreating, (N, U) => {
|
14424
|
+
N === !0 ? P() : N === !1 && U === !0 && B();
|
14388
14425
|
}), onUnmounted(() => {
|
14389
14426
|
o.store.dispose(s.formID);
|
14390
14427
|
});
|
14391
|
-
function
|
14428
|
+
function P() {
|
14392
14429
|
if (i.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE) {
|
14393
|
-
const
|
14430
|
+
const N = {
|
14394
14431
|
[o.id.value]: KG_TABLE_TEMP_ID
|
14395
14432
|
};
|
14396
|
-
o.store.setDatas(s.formID, [
|
14433
|
+
o.store.setDatas(s.formID, [N, ...b.value]), o.store.setSelectedRows(s.formID, [N]);
|
14397
14434
|
}
|
14398
14435
|
}
|
14399
|
-
function
|
14400
|
-
const
|
14401
|
-
|
14436
|
+
function B() {
|
14437
|
+
const N = b.value.find((U) => U[o.id.value] === KG_TABLE_TEMP_ID);
|
14438
|
+
N && (o.store.setDatas(s.formID, without$1(b.value, N)), o.store.setSelectedRows(s.formID, []));
|
14402
14439
|
}
|
14403
|
-
function H(
|
14440
|
+
function H(N, U) {
|
14404
14441
|
var Q;
|
14405
|
-
if (!(!!A.value || !!s.isCreating.value || !!s.isUpdating.value || !!s.isCopying.value || !!s.isDeleting.value) && !!
|
14442
|
+
if (!(!!A.value || !!s.isCreating.value || !!s.isUpdating.value || !!s.isCopying.value || !!s.isDeleting.value) && !!I.value) {
|
14406
14443
|
if (!U) {
|
14407
14444
|
o.store.setSelectedRows(s.formID, []);
|
14408
14445
|
return;
|
14409
14446
|
}
|
14410
|
-
switch (
|
14447
|
+
switch (N == null ? void 0 : N.detail) {
|
14411
14448
|
case 1:
|
14412
14449
|
switch ((Q = s.varGridConfig.value) == null ? void 0 : Q.operation_on_row_click) {
|
14413
14450
|
case 0:
|
@@ -14425,9 +14462,9 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
14425
14462
|
}
|
14426
14463
|
}
|
14427
14464
|
}
|
14428
|
-
function K(
|
14465
|
+
function K(N = {}) {
|
14429
14466
|
KgLogger.debug(`${s.formID} | KgTable | retrieve() | \u6267\u884C\u5F00\u59CB.`, {
|
14430
|
-
param:
|
14467
|
+
param: N
|
14431
14468
|
});
|
14432
14469
|
const U = watch(o.isReady, (z) => {
|
14433
14470
|
z && (setTimeout(() => U()), Q());
|
@@ -14442,7 +14479,7 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
14442
14479
|
});
|
14443
14480
|
return;
|
14444
14481
|
}
|
14445
|
-
|
14482
|
+
N.isSearchFirstPage && (M.pageIndex = 1), o.store.setIsRetrieving(s.formID, !0);
|
14446
14483
|
try {
|
14447
14484
|
const ce = KgUtil.parseParams(k.value, o.profileFormID.value, t), le = ref({});
|
14448
14485
|
await o.store.emit(s.formID, "beforeRetrieve", {
|
@@ -14471,9 +14508,9 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
14471
14508
|
setDatas(he) {
|
14472
14509
|
o.store.setDatas(s.formID, he);
|
14473
14510
|
}
|
14474
|
-
}), d.value = {}, o.store.setDatas(s.formID, oe.value),
|
14475
|
-
const be = cloneDeep(
|
14476
|
-
H(), c.value = [], await nextTick(),
|
14511
|
+
}), d.value = {}, o.store.setDatas(s.formID, oe.value), M.total = me.value;
|
14512
|
+
const be = cloneDeep(L.value);
|
14513
|
+
H(), c.value = [], await nextTick(), N.isPreserveSelectedRows ? o.store.setSelectedRows(s.formID, be.map((he) => {
|
14477
14514
|
var Se;
|
14478
14515
|
return (Se = oe.value) == null ? void 0 : Se.find((Ee) => Ee[o.id.value] === he);
|
14479
14516
|
}).filter((he) => !!he)) : ((ee = s.varGridConfig.value) == null ? void 0 : ee.check_first_row_after_retrieve) === 1 && oe.value.length > 0 && o.store.setSelectedRows(s.formID, [oe.value[0]]), await o.store.emit(s.formID, "retrieve", {
|
@@ -14490,37 +14527,37 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
14490
14527
|
}
|
14491
14528
|
}
|
14492
14529
|
}
|
14493
|
-
function F(
|
14494
|
-
o.store.setSelectedRows(s.formID,
|
14530
|
+
function F(N) {
|
14531
|
+
o.store.setSelectedRows(s.formID, N.map((U) => {
|
14495
14532
|
var Q;
|
14496
14533
|
return (Q = b.value) == null ? void 0 : Q.find((z) => z[o.id.value] === U);
|
14497
14534
|
}).filter((U) => !!U));
|
14498
14535
|
}
|
14499
|
-
function Y(
|
14536
|
+
function Y(N) {
|
14500
14537
|
var U, Q;
|
14501
14538
|
switch (o.isMultiSelect.value) {
|
14502
14539
|
case !0:
|
14503
14540
|
{
|
14504
|
-
const z =
|
14505
|
-
|
14541
|
+
const z = N[o.id.value];
|
14542
|
+
L.value.includes(z) ? L.value = without$1(L.value, z) : L.value = [...(U = L.value) != null ? U : [], z];
|
14506
14543
|
}
|
14507
14544
|
break;
|
14508
14545
|
case !1:
|
14509
14546
|
{
|
14510
|
-
const z =
|
14511
|
-
(Q =
|
14547
|
+
const z = N[o.id.value];
|
14548
|
+
(Q = L.value) != null && Q.includes(z) ? L.value = [] : L.value = [z];
|
14512
14549
|
}
|
14513
14550
|
break;
|
14514
14551
|
}
|
14515
|
-
o.store.setSelectedRows(s.formID,
|
14552
|
+
o.store.setSelectedRows(s.formID, L.value.map((z) => {
|
14516
14553
|
var ee;
|
14517
14554
|
return (ee = b.value) == null ? void 0 : ee.find((ce) => ce[o.id.value] === z);
|
14518
14555
|
}).filter((z) => !!z));
|
14519
14556
|
}
|
14520
|
-
function q(
|
14521
|
-
U.width =
|
14557
|
+
function q(N, U) {
|
14558
|
+
U.width = N, s.store.setVarGridDetailWidth(s.formID, U.dataIndex, N);
|
14522
14559
|
}
|
14523
|
-
async function X(
|
14560
|
+
async function X(N, U, Q, z) {
|
14524
14561
|
switch (z.action) {
|
14525
14562
|
case "sort": {
|
14526
14563
|
p.value = Q, await nextTick(), K({
|
@@ -14532,23 +14569,23 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
14532
14569
|
d.value = U;
|
14533
14570
|
}
|
14534
14571
|
}
|
14535
|
-
function J(
|
14572
|
+
function J(N, U) {
|
14536
14573
|
var z;
|
14537
14574
|
const Q = U[o.id.value];
|
14538
14575
|
switch ((z = s.varGridConfig.value) == null ? void 0 : z.expand_accordion_flg) {
|
14539
14576
|
case 0:
|
14540
|
-
|
14577
|
+
N ? c.value = uniq([...c.value, Q]) : c.value = without$1(c.value, Q);
|
14541
14578
|
break;
|
14542
14579
|
default:
|
14543
|
-
|
14580
|
+
N ? c.value = [Q] : c.value = [];
|
14544
14581
|
break;
|
14545
14582
|
}
|
14546
14583
|
}
|
14547
|
-
function te(
|
14548
|
-
U !==
|
14584
|
+
function te(N, U) {
|
14585
|
+
U !== M.pageSize ? (M.pageIndex = 1, M.pageSize = U) : M.pageIndex = N, K();
|
14549
14586
|
}
|
14550
14587
|
function ue({
|
14551
|
-
title:
|
14588
|
+
title: N,
|
14552
14589
|
column: U
|
14553
14590
|
}) {
|
14554
14591
|
switch (U.dataIndex) {
|
@@ -14558,24 +14595,24 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
14558
14595
|
}, null);
|
14559
14596
|
default:
|
14560
14597
|
return createVNode("pre", {
|
14561
|
-
title:
|
14562
|
-
}, [
|
14598
|
+
title: N
|
14599
|
+
}, [N]);
|
14563
14600
|
}
|
14564
14601
|
}
|
14565
14602
|
function _e() {
|
14566
|
-
var
|
14567
|
-
return (
|
14603
|
+
var N;
|
14604
|
+
return (N = r == null ? void 0 : r.KgTable) != null && N["summary.bodyCell"] ? createVNode(TableSummary, {
|
14568
14605
|
fixed: "bottom"
|
14569
14606
|
}, {
|
14570
14607
|
default: () => [createVNode(TableSummary.Row, null, {
|
14571
14608
|
default: () => [O.value && createVNode(TableSummary.Cell, {
|
14572
14609
|
index: 0
|
14573
|
-
}, null),
|
14610
|
+
}, null), $.value && createVNode(TableSummary.Cell, {
|
14574
14611
|
index: O.value ? 1 : 0
|
14575
14612
|
}, null), u.value.map((U, Q) => {
|
14576
14613
|
const z = String(U.dataIndex), ee = z ? s.store.getVarGridDetail(s.formID, z) : null, ce = (() => ["left", "center", "right"].includes((ee == null ? void 0 : ee.align) || "") ? ee == null ? void 0 : ee.align : "left")();
|
14577
14614
|
let le = Q;
|
14578
|
-
return O.value &&
|
14615
|
+
return O.value && $.value ? le += 2 : (O.value || $.value) && (le += 1), createVNode(TableSummary.Cell, {
|
14579
14616
|
index: le,
|
14580
14617
|
align: ce
|
14581
14618
|
}, {
|
@@ -14596,7 +14633,7 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
14596
14633
|
return !o.isReadAutomatically.value && !o.store.getIsRetrieved(s.formID) ? n.t("kg.KgTable.emptyText") : n.t("kg.emptyText");
|
14597
14634
|
}
|
14598
14635
|
return () => {
|
14599
|
-
var
|
14636
|
+
var N, U, Q;
|
14600
14637
|
return createVNode("div", {
|
14601
14638
|
class: R.value,
|
14602
14639
|
"kg-frm_id": s.formID,
|
@@ -14614,10 +14651,10 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
14614
14651
|
dataSource: b.value,
|
14615
14652
|
loading: y.value,
|
14616
14653
|
rowKey: o.id.value,
|
14617
|
-
rowClassName: (U = (
|
14654
|
+
rowClassName: (U = (N = a == null ? void 0 : a.value) == null ? void 0 : N.KgTable) == null ? void 0 : U.kgRowClassName,
|
14618
14655
|
expandColumnWidth: 28,
|
14619
14656
|
expandedRowKeys: c.value,
|
14620
|
-
rowSelection:
|
14657
|
+
rowSelection: I.value,
|
14621
14658
|
customRow: (z) => ({
|
14622
14659
|
onClick: (ee) => H(ee, z)
|
14623
14660
|
}),
|
@@ -14631,23 +14668,23 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
14631
14668
|
expandedRowRender: (Q = r == null ? void 0 : r.KgTable) == null ? void 0 : Q.expandedRowRender,
|
14632
14669
|
summary: _e
|
14633
14670
|
}), (o.isShowBottomLeft.value || o.isShowBottomRight.value) && createVNode("div", {
|
14634
|
-
class:
|
14671
|
+
class: x.value
|
14635
14672
|
}, [createVNode("div", {
|
14636
14673
|
class: "left"
|
14637
14674
|
}, [o.isShowBottomLeft.value && createVNode(KgTableInfo, {
|
14638
|
-
kgShowClearCheck:
|
14639
|
-
kgShowClearTable:
|
14640
|
-
kgShowLocate:
|
14641
|
-
kgTotal:
|
14675
|
+
kgShowClearCheck: L.value.length > 0,
|
14676
|
+
kgShowClearTable: M.total > 0,
|
14677
|
+
kgShowLocate: L.value.length === 1,
|
14678
|
+
kgTotal: L.value.length,
|
14642
14679
|
kgDisabled: D.value
|
14643
14680
|
}, null)]), createVNode("div", {
|
14644
14681
|
class: "right"
|
14645
14682
|
}, [o.isShowBottomRight.value && createVNode(Pagination, {
|
14646
14683
|
size: "default",
|
14647
|
-
current:
|
14648
|
-
pageSize:
|
14684
|
+
current: M.pageIndex,
|
14685
|
+
pageSize: M.pageSize,
|
14649
14686
|
pageSizeOptions: o.pageSizeOptions.value.map((z) => String(z)),
|
14650
|
-
total:
|
14687
|
+
total: M.total,
|
14651
14688
|
showSizeChanger: !0,
|
14652
14689
|
showQuickJumper: !1,
|
14653
14690
|
hideOnSinglePage: !1,
|
@@ -14885,8 +14922,8 @@ const KgButtonCreate = defineComponent({
|
|
14885
14922
|
attrs: a
|
14886
14923
|
}) {
|
14887
14924
|
const n = useKg(), s = useKgVar(), l = useKgButton(), o = useKgTable(), i = useKgSubmit(), c = computed(() => s.store.getVarButton(s.formID, e.kgVarName)), u = computed(() => {
|
14888
|
-
var T, k, A, C, D, w, O,
|
14889
|
-
return s.isUpdating.value || s.isCopying.value || s.isDeleting.value || o.isRetrieving.value || ((T = c.value) == null ? void 0 : T.dis_no_select_flg) === 1 && ((A = (k = o.selectedRows.value) == null ? void 0 : k.length) != null ? A : 0) === 0 || ((C = c.value) == null ? void 0 : C.dis_mult_select_flg) === 1 && ((w = (D = o.selectedRows.value) == null ? void 0 : D.length) != null ? w : 0) > 1 || ((O = c.value) == null ? void 0 : O.permission_type) === 2 && !n.p((
|
14925
|
+
var T, k, A, C, D, w, O, $;
|
14926
|
+
return s.isUpdating.value || s.isCopying.value || s.isDeleting.value || o.isRetrieving.value || ((T = c.value) == null ? void 0 : T.dis_no_select_flg) === 1 && ((A = (k = o.selectedRows.value) == null ? void 0 : k.length) != null ? A : 0) === 0 || ((C = c.value) == null ? void 0 : C.dis_mult_select_flg) === 1 && ((w = (D = o.selectedRows.value) == null ? void 0 : D.length) != null ? w : 0) > 1 || ((O = c.value) == null ? void 0 : O.permission_type) === 2 && !n.p(($ = c.value) == null ? void 0 : $.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
|
14890
14927
|
}), d = computed(() => !!s.isCreatingRequesting.value);
|
14891
14928
|
async function p() {
|
14892
14929
|
e.onKgClick && await e.onKgClick() || s.store.setIsCreating(s.formID, !0);
|
@@ -15264,9 +15301,9 @@ const KgButtonCreate = defineComponent({
|
|
15264
15301
|
});
|
15265
15302
|
if (((C = e.kgButton) == null ? void 0 : C.reload_all_after_done_flg) === 1) {
|
15266
15303
|
if (((D = e.kgButton) == null ? void 0 : D.re_select_after_reload_flg) !== 0 && s.onRetrieve(async ({
|
15267
|
-
datas:
|
15304
|
+
datas: $
|
15268
15305
|
}) => {
|
15269
|
-
const
|
15306
|
+
const I = $.value, R = intersectionWith$1(I, b != null ? b : [], (x, L) => (x == null ? void 0 : x[s.id.value]) === (L == null ? void 0 : L[s.id.value]));
|
15270
15307
|
return R.length > 0 && s.store.setSelectedRows(r.formID, R), !1;
|
15271
15308
|
}, !0), await n.store.emit(r.formID, "otherOk", {
|
15272
15309
|
button: e.kgButton,
|
@@ -15382,8 +15419,8 @@ const KgButtonCreate = defineComponent({
|
|
15382
15419
|
}
|
15383
15420
|
});
|
15384
15421
|
const c = computed(() => s.store.getVarButton(s.formID, e.kgVarName)), u = computed(() => {
|
15385
|
-
var T, k, A, C, D, w, O,
|
15386
|
-
return s.isCreating.value || s.isCopying.value || s.isDeleting.value || l.isRetrieving.value || ((T = c.value) == null ? void 0 : T.dis_no_select_flg) === 1 && ((A = (k = l.selectedRows.value) == null ? void 0 : k.length) != null ? A : 0) === 0 || ((C = c.value) == null ? void 0 : C.dis_mult_select_flg) === 1 && ((w = (D = l.selectedRows.value) == null ? void 0 : D.length) != null ? w : 0) > 1 || ((O = c.value) == null ? void 0 : O.permission_type) === 2 && !n.p((
|
15422
|
+
var T, k, A, C, D, w, O, $;
|
15423
|
+
return s.isCreating.value || s.isCopying.value || s.isDeleting.value || l.isRetrieving.value || ((T = c.value) == null ? void 0 : T.dis_no_select_flg) === 1 && ((A = (k = l.selectedRows.value) == null ? void 0 : k.length) != null ? A : 0) === 0 || ((C = c.value) == null ? void 0 : C.dis_mult_select_flg) === 1 && ((w = (D = l.selectedRows.value) == null ? void 0 : D.length) != null ? w : 0) > 1 || ((O = c.value) == null ? void 0 : O.permission_type) === 2 && !n.p(($ = c.value) == null ? void 0 : $.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
|
15387
15424
|
}), d = computed(() => !!s.isUpdatingRequesting.value);
|
15388
15425
|
async function p() {
|
15389
15426
|
e.onKgClick && await e.onKgClick() || await o.store.emit(s.formID, "updateBeforeClick", {
|
@@ -15790,14 +15827,14 @@ const useKgSearchStore = () => (store$2 || (store$2 = defineStore("KgSearch", {
|
|
15790
15827
|
isReactive(t) || (r = reactive(t)), this.operatorModelMap.set(e, r);
|
15791
15828
|
},
|
15792
15829
|
patchModel(e, t) {
|
15793
|
-
return KgLogger.
|
15830
|
+
return KgLogger.debugDDA(e, "KgSearchStore", "patchModel()", "\u6267\u884C\u5F00\u59CB", { model: t }), !e || !t ? Promise.resolve() : new Promise((r) => {
|
15794
15831
|
const a = watch(
|
15795
15832
|
() => this.modelMap.get(e),
|
15796
15833
|
(n) => {
|
15797
15834
|
n && setTimeout(() => {
|
15798
15835
|
a(), Object.entries(t).forEach(([s, l]) => {
|
15799
|
-
s in n && (n[s] = l);
|
15800
|
-
}), KgLogger.
|
15836
|
+
KgLogger.debugDDA(e, "KgSearchStore", "patchModel()", `\u8BBE\u7F6E\u5B57\u6BB5\u7684\u503C: ${s}`, { model: n, key: s, value: l }), s in n && (n[s] = l);
|
15837
|
+
}), KgLogger.debugDDA(e, "KgSearchStore", "patchModel()", "\u6267\u884C\u6210\u529F", { model: n }), r();
|
15801
15838
|
});
|
15802
15839
|
},
|
15803
15840
|
{ immediate: !0 }
|
@@ -16176,24 +16213,24 @@ const KgSearch_ConfigModal_VarProfileMaster = "", getProps$c = () => ({
|
|
16176
16213
|
if (E != null && E.id)
|
16177
16214
|
try {
|
16178
16215
|
o.store.setIsLoading(a.formID, !0);
|
16179
|
-
const
|
16216
|
+
const $ = await QueryByID({
|
16180
16217
|
params: {
|
16181
16218
|
id: E.id
|
16182
16219
|
}
|
16183
16220
|
});
|
16184
16221
|
i.value = i.value.map((R) => {
|
16185
|
-
var
|
16186
|
-
const
|
16187
|
-
return
|
16222
|
+
var L;
|
16223
|
+
const x = (L = $ == null ? void 0 : $.varProfileDetails) == null ? void 0 : L.find((M) => M.var_nam === R.var_nam);
|
16224
|
+
return x ? {
|
16188
16225
|
...R,
|
16189
|
-
...
|
16226
|
+
...x,
|
16190
16227
|
id: R.id
|
16191
16228
|
} : R;
|
16192
16229
|
});
|
16193
|
-
const
|
16194
|
-
c.value = i.value.filter((R) =>
|
16195
|
-
} catch (
|
16196
|
-
throw
|
16230
|
+
const I = (C = (A = $ == null ? void 0 : $.varProfileDetails) == null ? void 0 : A.map((R) => R.var_nam)) != null ? C : [];
|
16231
|
+
c.value = i.value.filter((R) => I.includes(R.var_nam)).map((R) => R.id);
|
16232
|
+
} catch ($) {
|
16233
|
+
throw $;
|
16197
16234
|
} finally {
|
16198
16235
|
o.store.setIsLoading(a.formID, !1);
|
16199
16236
|
}
|
@@ -16552,7 +16589,7 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
16552
16589
|
default:
|
16553
16590
|
return !0;
|
16554
16591
|
}
|
16555
|
-
}), O = computed(() => !!(n.isRetrieving.value || n.isRetrievingVarProfileMaster.value || c.value && !!n.isOtherRequesting.value)),
|
16592
|
+
}), O = computed(() => !!(n.isRetrieving.value || n.isRetrievingVarProfileMaster.value || c.value && !!n.isOtherRequesting.value)), $ = computed(() => !!n.isRetrieving.value || !!n.isRetrievingVarProfileMaster.value), I = computed(() => {
|
16556
16593
|
let K = "kg-search";
|
16557
16594
|
return o.value && (K += " kg-search--visible"), c.value && (K += " kg-search--teleport"), K;
|
16558
16595
|
});
|
@@ -16579,7 +16616,7 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
16579
16616
|
})) : (KgLogger.debug(`${n.formID} | KgSearch | onSearch() | \u9690\u85CF\u67E5\u8BE2\u6761\u4EF6\u7EC4\u4EF6.`), await s.store.emit(n.formID, "search", K));
|
16580
16617
|
}
|
16581
16618
|
s.store.setSearchFn(n.formID, R);
|
16582
|
-
async function
|
16619
|
+
async function x() {
|
16583
16620
|
g.initFormModel(), o.value ? y.value && y.value.validate().then(async () => {
|
16584
16621
|
await s.store.emit(n.formID, "reset", {});
|
16585
16622
|
}).catch((K) => {
|
@@ -16588,13 +16625,13 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
16588
16625
|
});
|
16589
16626
|
}) : await s.store.emit(n.formID, "reset", {});
|
16590
16627
|
}
|
16591
|
-
s.store.setResetFn(n.formID,
|
16592
|
-
function
|
16628
|
+
s.store.setResetFn(n.formID, x);
|
16629
|
+
function L() {
|
16593
16630
|
return R({
|
16594
16631
|
isSearchFirstPage: !0
|
16595
16632
|
}), Promise.resolve(!0);
|
16596
16633
|
}
|
16597
|
-
function
|
16634
|
+
function M() {
|
16598
16635
|
var K;
|
16599
16636
|
return createVNode("div", {
|
16600
16637
|
class: "title",
|
@@ -16639,13 +16676,13 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
16639
16676
|
hostFormID: n.formID
|
16640
16677
|
}, null)]);
|
16641
16678
|
}
|
16642
|
-
function
|
16679
|
+
function P() {
|
16643
16680
|
var K, F, Y, q, X;
|
16644
16681
|
return createVNode(Fragment, null, [V(), !(((K = n.varButtonSearch.value) == null ? void 0 : K.permission_type) !== 2 && !a.p((F = n.varButtonSearch.value) == null ? void 0 : F.permission_code)) && createVNode(Button, {
|
16645
16682
|
type: "primary",
|
16646
16683
|
ghost: !E.value,
|
16647
16684
|
disabled: E.value,
|
16648
|
-
onClick:
|
16685
|
+
onClick: x,
|
16649
16686
|
class: "kg-search-btn-reset"
|
16650
16687
|
}, {
|
16651
16688
|
default: () => [createVNode(ReloadOutlined$1, null, null), a.t("kg.reset")]
|
@@ -16657,12 +16694,12 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
16657
16694
|
kgColor: (X = n.varButtonSearch.value) == null ? void 0 : X.color,
|
16658
16695
|
kgPrimary: w.value,
|
16659
16696
|
kgLoading: k.value,
|
16660
|
-
onKgClick:
|
16697
|
+
onKgClick: L
|
16661
16698
|
}, null)]);
|
16662
16699
|
}
|
16663
|
-
function
|
16700
|
+
function B() {
|
16664
16701
|
return createVNode(Spin, {
|
16665
|
-
spinning:
|
16702
|
+
spinning: $.value
|
16666
16703
|
}, {
|
16667
16704
|
default: () => {
|
16668
16705
|
var K;
|
@@ -16699,7 +16736,7 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
16699
16736
|
kgMinHeight: p.value,
|
16700
16737
|
kgMaxHeight: d.value,
|
16701
16738
|
kgDisabled: !i.value,
|
16702
|
-
kgClass:
|
16739
|
+
kgClass: I.value,
|
16703
16740
|
"kg-frm_id": n.formID
|
16704
16741
|
}, {
|
16705
16742
|
default: () => [o.value && createVNode("div", {
|
@@ -16715,15 +16752,15 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
16715
16752
|
}, [createVNode(Spin, {
|
16716
16753
|
spinning: O.value
|
16717
16754
|
}, {
|
16718
|
-
default: () => [
|
16755
|
+
default: () => [M(), createVNode("div", {
|
16719
16756
|
class: "ant-collapse-extra"
|
16720
|
-
}, [
|
16757
|
+
}, [P()])]
|
16721
16758
|
})])]
|
16722
16759
|
}), createVNode("div", {
|
16723
16760
|
class: "ant-collapse-content ant-collapse-content-active"
|
16724
16761
|
}, [createVNode("div", {
|
16725
16762
|
class: "ant-collapse-content-box"
|
16726
|
-
}, [
|
16763
|
+
}, [B()])])])])]
|
16727
16764
|
});
|
16728
16765
|
}
|
16729
16766
|
});
|
@@ -17206,11 +17243,11 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
17206
17243
|
}, {
|
17207
17244
|
immediate: !0
|
17208
17245
|
}), watch(() => a.getSelectedVarCatalog, async (R) => {
|
17209
|
-
var
|
17210
|
-
i.value.var_text = (
|
17246
|
+
var x, L;
|
17247
|
+
i.value.var_text = (x = R == null ? void 0 : R.var_text) != null ? x : "", (L = o.value) == null || L.clearValidate();
|
17211
17248
|
});
|
17212
17249
|
async function E(R = !1) {
|
17213
|
-
var
|
17250
|
+
var x, L, M;
|
17214
17251
|
n.value = !0;
|
17215
17252
|
try {
|
17216
17253
|
const {
|
@@ -17220,19 +17257,19 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
17220
17257
|
pageNo: 1,
|
17221
17258
|
pageSize: 999,
|
17222
17259
|
frm_id: e == null ? void 0 : e.value,
|
17223
|
-
var_nam: (
|
17260
|
+
var_nam: (x = a.getSelectedVar) == null ? void 0 : x.var_nam,
|
17224
17261
|
column: "frm_id,locale_id,cust_lvl",
|
17225
17262
|
order: "asc"
|
17226
17263
|
}
|
17227
17264
|
});
|
17228
17265
|
if (u.value = null, c.value = V != null ? V : [], R) {
|
17229
|
-
const
|
17266
|
+
const P = c.value.find((B) => {
|
17230
17267
|
var H;
|
17231
|
-
return
|
17268
|
+
return B.id === ((H = a.getSelectedVarCatalog) == null ? void 0 : H.id);
|
17232
17269
|
});
|
17233
|
-
a.setSelectedVarCatalog(
|
17270
|
+
a.setSelectedVarCatalog(P != null ? P : null), d.value = P != null && P.id ? [P.id] : [];
|
17234
17271
|
} else
|
17235
|
-
a.setSelectedVarCatalog((
|
17272
|
+
a.setSelectedVarCatalog((L = c.value[0]) != null ? L : null), d.value = (M = c.value[0]) != null && M.id ? [c.value[0].id] : [];
|
17236
17273
|
} catch (V) {
|
17237
17274
|
KgLogger.debug(V == null ? void 0 : V.message);
|
17238
17275
|
} finally {
|
@@ -17240,57 +17277,57 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
17240
17277
|
}
|
17241
17278
|
}
|
17242
17279
|
async function T() {
|
17243
|
-
var R,
|
17280
|
+
var R, x, L;
|
17244
17281
|
try {
|
17245
17282
|
s.value = !0, await ((R = o.value) == null ? void 0 : R.validate());
|
17246
|
-
const
|
17247
|
-
...(
|
17248
|
-
var_text: (
|
17283
|
+
const M = new VarCatalog({
|
17284
|
+
...(x = a.getSelectedVarCatalog) != null ? x : {},
|
17285
|
+
var_text: (L = i.value) == null ? void 0 : L.var_text
|
17249
17286
|
});
|
17250
|
-
|
17251
|
-
data:
|
17287
|
+
M.id ? M.cust_lvl === KG_CUSTOM_LEVEL.L0 ? (M.cust_lvl = KG_CUSTOM_LEVEL.L10, Reflect.deleteProperty(M, "id"), await Add({
|
17288
|
+
data: M
|
17252
17289
|
}, {
|
17253
17290
|
successMessageMode: "none"
|
17254
17291
|
}), message.success({
|
17255
17292
|
content: t.t("kg.KgVarConfig.createSuccess")
|
17256
17293
|
}), await E()) : (await Edit({
|
17257
|
-
data:
|
17294
|
+
data: M
|
17258
17295
|
}, {
|
17259
17296
|
successMessageMode: "none"
|
17260
17297
|
}), message.success({
|
17261
17298
|
content: t.t("kg.KgVarConfig.saveSuccess")
|
17262
17299
|
}), await E(!0)) : (await Add({
|
17263
|
-
data:
|
17300
|
+
data: M
|
17264
17301
|
}, {
|
17265
17302
|
successMessageMode: "none"
|
17266
17303
|
}), message.success({
|
17267
17304
|
content: t.t("kg.KgVarConfig.createSuccess")
|
17268
17305
|
}), await E()), r.retrieve(e == null ? void 0 : e.value);
|
17269
|
-
} catch (
|
17270
|
-
KgUtil.throwIfNotFormError(
|
17306
|
+
} catch (M) {
|
17307
|
+
KgUtil.throwIfNotFormError(M);
|
17271
17308
|
} finally {
|
17272
17309
|
s.value = !1;
|
17273
17310
|
}
|
17274
17311
|
}
|
17275
17312
|
function k({
|
17276
17313
|
isAllForm: R,
|
17277
|
-
isAllLanguage:
|
17314
|
+
isAllLanguage: x
|
17278
17315
|
}) {
|
17279
|
-
var
|
17316
|
+
var L, M, V;
|
17280
17317
|
u.value = new VarCatalog({
|
17281
17318
|
id: "",
|
17282
17319
|
cust_lvl: KG_CUSTOM_LEVEL.L10,
|
17283
|
-
grp_nam: (
|
17284
|
-
var_nam: (
|
17320
|
+
grp_nam: (L = a.getSelectedVar) == null ? void 0 : L.grp_nam,
|
17321
|
+
var_nam: (M = a.getSelectedVar) == null ? void 0 : M.var_nam,
|
17285
17322
|
frm_id: R || !(e != null && e.value) ? "ALL" : e == null ? void 0 : e.value,
|
17286
|
-
locale_id:
|
17323
|
+
locale_id: x ? "ALL" : (V = t.locale) == null ? void 0 : V.value,
|
17287
17324
|
var_text: ""
|
17288
17325
|
}), c.value = [...c.value, u.value], a.setSelectedVarCatalog(unref(u)), d.value = [""];
|
17289
17326
|
}
|
17290
17327
|
function A() {
|
17291
|
-
var
|
17328
|
+
var x;
|
17292
17329
|
c.value = without$1(c.value, u.value), u.value = null;
|
17293
|
-
const R = (
|
17330
|
+
const R = (x = c.value[0]) != null ? x : null;
|
17294
17331
|
a.setSelectedVarCatalog(R), d.value = R ? [R.id] : [];
|
17295
17332
|
}
|
17296
17333
|
function C() {
|
@@ -17311,8 +17348,8 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
17311
17348
|
});
|
17312
17349
|
}
|
17313
17350
|
function D(R) {
|
17314
|
-
var
|
17315
|
-
((
|
17351
|
+
var x;
|
17352
|
+
((x = a.getSelectedVarCatalog) == null ? void 0 : x.id) !== R.id && (unref(u) ? KgUtil.confirm({
|
17316
17353
|
content: t.t("kg.KgVarConfig.discardConfirmMessage"),
|
17317
17354
|
onOk: () => {
|
17318
17355
|
c.value = without$1(c.value, u.value), u.value = null, a.setSelectedVarCatalog(unref(R)), d.value = [R.id];
|
@@ -17341,8 +17378,8 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
17341
17378
|
default: () => [createVNode(DeleteOutlined$1, null, null), t.t("common.delText")]
|
17342
17379
|
})]);
|
17343
17380
|
}
|
17344
|
-
function
|
17345
|
-
let R,
|
17381
|
+
function $() {
|
17382
|
+
let R, x;
|
17346
17383
|
return createVNode("div", {
|
17347
17384
|
class: "form"
|
17348
17385
|
}, [createVNode(Form, {
|
@@ -17359,7 +17396,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
17359
17396
|
}, {
|
17360
17397
|
default: () => [createVNode(Textarea, {
|
17361
17398
|
value: i.value.var_text,
|
17362
|
-
"onUpdate:value": (
|
17399
|
+
"onUpdate:value": (L) => i.value.var_text = L,
|
17363
17400
|
disabled: !a.getSelectedVarCatalog
|
17364
17401
|
}, null), createVNode("button", {
|
17365
17402
|
hidden: !0
|
@@ -17377,14 +17414,14 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
17377
17414
|
disabled: b.value,
|
17378
17415
|
onClick: T,
|
17379
17416
|
type: "primary"
|
17380
|
-
}, _isSlot(
|
17381
|
-
default: () => [
|
17417
|
+
}, _isSlot(x = t.t("common.save")) ? x : {
|
17418
|
+
default: () => [x]
|
17382
17419
|
})])]);
|
17383
17420
|
}
|
17384
|
-
function
|
17385
|
-
var
|
17386
|
-
let
|
17387
|
-
return R.id || (
|
17421
|
+
function I(R) {
|
17422
|
+
var L;
|
17423
|
+
let x = "";
|
17424
|
+
return R.id || (x += " ant-table-row-create"), R.id === ((L = a.getSelectedVarCatalog) == null ? void 0 : L.id) && (x += " ant-table-row-selected "), x;
|
17388
17425
|
}
|
17389
17426
|
return () => createVNode("div", {
|
17390
17427
|
class: "kg-var-config-modal-var-var-catalog"
|
@@ -17400,12 +17437,12 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
17400
17437
|
rowKey: "id",
|
17401
17438
|
dataSource: c.value,
|
17402
17439
|
loading: n.value,
|
17403
|
-
rowClassName:
|
17440
|
+
rowClassName: I,
|
17404
17441
|
rowSelection: p.value,
|
17405
17442
|
customRow: (R) => ({
|
17406
17443
|
onClick: () => D(R)
|
17407
17444
|
})
|
17408
|
-
}, null),
|
17445
|
+
}, null), $(), createVNode(KgVarConfigModalVarCreateModal, {
|
17409
17446
|
visible: v.value.visible,
|
17410
17447
|
"onUpdate:visible": (R) => v.value.visible = R,
|
17411
17448
|
onKgOk: k
|
@@ -17741,8 +17778,8 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
17741
17778
|
var A;
|
17742
17779
|
const k = (A = s.value) == null ? void 0 : A.toUpperCase();
|
17743
17780
|
return u.value.filter((C) => {
|
17744
|
-
var D, w, O,
|
17745
|
-
return ((w = (D = C.whDsc) == null ? void 0 : D.toUpperCase()) == null ? void 0 : w.includes(k)) || ((
|
17781
|
+
var D, w, O, $, I, R;
|
17782
|
+
return ((w = (D = C.whDsc) == null ? void 0 : D.toUpperCase()) == null ? void 0 : w.includes(k)) || (($ = (O = C.whId) == null ? void 0 : O.toUpperCase()) == null ? void 0 : $.includes(k)) || ((R = (I = C.adrId) == null ? void 0 : I.toUpperCase()) == null ? void 0 : R.includes(k));
|
17746
17783
|
});
|
17747
17784
|
}), p = computed(() => {
|
17748
17785
|
var k;
|