@kengic/vue 0.10.1 → 0.10.2-beta.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/kengic-vue.js +113 -91
- package/dist/src/{components → src/components}/KgTable/index.store.d.ts +5 -0
- package/dist/src/{components → src/components}/KgVar/index.store.d.ts +7 -0
- package/package.json +1 -1
- /package/dist/src/{apis → src/apis}/WMS/Controllers/VarContextController/Add.d.ts +0 -0
- /package/dist/src/{apis → src/apis}/WMS/Controllers/VarContextController/Delete.d.ts +0 -0
- /package/dist/src/{apis → src/apis}/WMS/Controllers/VarContextController/DeleteBatch.d.ts +0 -0
- /package/dist/src/{apis → src/apis}/WMS/Controllers/VarContextController/Edit.d.ts +0 -0
- /package/dist/src/{apis → src/apis}/WMS/Controllers/VarContextController/ExportXls.d.ts +0 -0
- /package/dist/src/{apis → src/apis}/WMS/Controllers/VarContextController/ImportExcel.d.ts +0 -0
- /package/dist/src/{apis → src/apis}/WMS/Controllers/VarContextController/List.d.ts +0 -0
- /package/dist/src/{apis → src/apis}/WMS/Controllers/VarContextController/QueryById.d.ts +0 -0
- /package/dist/src/{apis → src/apis}/WMS/Controllers/VarContextController/index.d.ts +0 -0
- /package/dist/src/{apis → src/apis}/WMS/Controllers/VarController/GetAll.d.ts +0 -0
- /package/dist/src/{apis → src/apis}/WMS/Controllers/VarController/index.d.ts +0 -0
- /package/dist/src/{apis → src/apis}/WMS/Controllers/VarGridMasterController/QueryByID.d.ts +0 -0
- /package/dist/src/{apis → src/apis}/WMS/Controllers/VarGridMasterController/Update.d.ts +0 -0
- /package/dist/src/{apis → src/apis}/WMS/Controllers/VarGridMasterController/index.d.ts +0 -0
- /package/dist/src/{apis → src/apis}/WMS/Controllers/VarProfileMasterController/QueryByID.d.ts +0 -0
- /package/dist/src/{apis → src/apis}/WMS/Controllers/VarProfileMasterController/index.d.ts +0 -0
- /package/dist/src/{apis → src/apis}/WMS/Controllers/VarVariableCatalogController/Add.d.ts +0 -0
- /package/dist/src/{apis → src/apis}/WMS/Controllers/VarVariableCatalogController/Delete.d.ts +0 -0
- /package/dist/src/{apis → src/apis}/WMS/Controllers/VarVariableCatalogController/DeleteBatch.d.ts +0 -0
- /package/dist/src/{apis → src/apis}/WMS/Controllers/VarVariableCatalogController/Edit.d.ts +0 -0
- /package/dist/src/{apis → src/apis}/WMS/Controllers/VarVariableCatalogController/ExportXls.d.ts +0 -0
- /package/dist/src/{apis → src/apis}/WMS/Controllers/VarVariableCatalogController/ImportExcel.d.ts +0 -0
- /package/dist/src/{apis → src/apis}/WMS/Controllers/VarVariableCatalogController/List.d.ts +0 -0
- /package/dist/src/{apis → src/apis}/WMS/Controllers/VarVariableCatalogController/QueryById.d.ts +0 -0
- /package/dist/src/{apis → src/apis}/WMS/Controllers/VarVariableCatalogController/index.d.ts +0 -0
- /package/dist/src/{apis → src/apis}/WMS/Controllers/WhController/ListVO.d.ts +0 -0
- /package/dist/src/{apis → src/apis}/WMS/Controllers/WhController/index.d.ts +0 -0
- /package/dist/src/{apis → src/apis}/WMS/Controllers/index.d.ts +0 -0
- /package/dist/src/{apis → src/apis}/WMS/index.d.ts +0 -0
- /package/dist/src/{apis → src/apis}/WMS/models.d.ts +0 -0
- /package/dist/src/{apis → src/apis}/api.d.ts +0 -0
- /package/dist/src/{apis → src/apis}/def.d.ts +0 -0
- /package/dist/src/{apis → src/apis}/index.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgAppSelect/KgAppSelect.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgAppSelect/index.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgAppSelect/index.hooks.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgAppSelect/index.store.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgButton/KgButton.Item.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgButton/KgButton.Item.data.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgButton/KgButton.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgButton/components/KgButton.Copy.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgButton/components/KgButton.Create.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgButton/components/KgButton.Delete.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgButton/components/KgButton.Export.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgButton/components/KgButton.Import.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgButton/components/KgButton.ImportTemplate.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgButton/components/KgButton.Other.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgButton/components/KgButton.Search.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgButton/components/KgButton.Update.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgButton/index.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgButton/index.hooks.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgButton/index.store.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgForm/KgForm.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgForm/index.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgForm/index.hooks.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgForm/index.store.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgForm/index.vm.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgForm.Item/KgForm.Item.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgForm.Item/KgForm.Item.hooks.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgForm.Item/addon/KgForm.Item.Addon.Lookup.Modal.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgForm.Item/addon/KgForm.Item.Addon.Lookup.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgForm.Item/components/KgForm.Item.Checkbox.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgForm.Item/components/KgForm.Item.CheckboxGroup.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgForm.Item/components/KgForm.Item.Date.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgForm.Item/components/KgForm.Item.DateRange.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgForm.Item/components/KgForm.Item.Input.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgForm.Item/components/KgForm.Item.InputNumber.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgForm.Item/components/KgForm.Item.RadioGroup.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgForm.Item/components/KgForm.Item.Select.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgForm.Item/components/KgForm.Item.Select.hooks.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgForm.Item/components/KgForm.Item.Switch.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgForm.Item/components/KgForm.Item.TextArea.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgForm.Item/index.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgForm.Item/index.vm.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgModal/KgModal.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgModal/components/KgModal.Close.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgModal/index.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgModal/index.vm.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgProgressA/KgProgressA.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgProgressA/index.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgResizable/KgResizable.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgResizable/index.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgSearch/KgSearch.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgSearch/KgSearch.hooks.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgSearch/components/KgSearch.ConfigModal.Body.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgSearch/components/KgSearch.ConfigModal.VarProfileConfig.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgSearch/components/KgSearch.ConfigModal.VarProfileMaster.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgSearch/components/KgSearch.ConfigModal.VarProfileMaster.hooks.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgSearch/components/KgSearch.ConfigModal.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgSearch/components/KgSearch.ConfigModal.data.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgSearch/index.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgSearch/index.hooks.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgSearch/index.store.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgSearch/index.vm.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgSubmit/KgSubmit.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgSubmit/KgSubmit.hooks.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgSubmit/components/KgSubmit.Header.VarSubmitConfig.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgSubmit/components/KgSubmit.Header.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgSubmit/index.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgSubmit/index.hooks.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgSubmit/index.store.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgSubmit/index.vm.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgTable/KgTable.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgTable/KgTable.hooks.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgTable/components/KgTable.Cell.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgTable/components/KgTable.Info.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgTable/components/setting/KgTable.Setting.VarGridMaster.SaveAs.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgTable/components/setting/KgTable.Setting.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgTable/components/setting/KgTable.Setting.hooks.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgTable/components/setting/config/KgTable.Setting.ConfigModal.Body.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgTable/components/setting/config/KgTable.Setting.ConfigModal.VarGridConfig.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgTable/components/setting/config/KgTable.Setting.ConfigModal.VarGridMaster.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgTable/components/setting/config/KgTable.Setting.ConfigModal.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgTable/index.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgTable/index.hooks.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgTable/index.vm.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgVar/KgVar.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgVar/index.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgVar/index.hooks.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgVar/index.store.service.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgVar/index.vm.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgVarConfig/KgVarConfig.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgVarConfig/components/KgVarConfig.FormIDsModal.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgVarConfig/components/KgVarConfig.Modal.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgVarConfig/components/button/KgVarConfig.Modal.Button.VarButton.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgVarConfig/components/button/KgVarConfig.Modal.Button.VarButtonConfig.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgVarConfig/components/button/KgVarConfig.Modal.Button.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgVarConfig/components/submit/KgVarConfig.Modal.Submit.VarSubmitField.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgVarConfig/components/submit/KgVarConfig.Modal.Submit.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgVarConfig/components/var/KgVarConfig.Modal.Var.CreateModal.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarCatalog.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarCatalog.data.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgVarConfig/components/var/KgVarConfig.Modal.Var.Vars.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgVarConfig/components/var/KgVarConfig.Modal.Var.Vars.data.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgVarConfig/components/var/KgVarConfig.Modal.Var.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgVarConfig/index.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgVarConfig/index.store.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgVarConfig/index.vm.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgWarehouse/KgWarehouse.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgWarehouse/index.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgWarehouse/index.guard.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgWarehouse/index.hooks.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgWarehouse/index.store.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgYesOrNo/KgYesOrNo.d.ts +0 -0
- /package/dist/src/{components → src/components}/KgYesOrNo/index.d.ts +0 -0
- /package/dist/src/{components → src/components}/index.d.ts +0 -0
- /package/dist/src/{components → src/components}/util.d.ts +0 -0
- /package/dist/src/{config → src/config}/index.d.ts +0 -0
- /package/dist/src/{config → src/config}/index.hooks.d.ts +0 -0
- /package/dist/src/{config → src/config}/index.store.d.ts +0 -0
- /package/dist/src/{config → src/config}/setup.d.ts +0 -0
- /package/dist/src/{consts → src/consts}/i18n/en.d.ts +0 -0
- /package/dist/src/{consts → src/consts}/i18n/index.d.ts +0 -0
- /package/dist/src/{consts → src/consts}/i18n/zh_CN.d.ts +0 -0
- /package/dist/src/{consts → src/consts}/index.d.ts +0 -0
- /package/dist/src/{consts → src/consts}/index.vm.d.ts +0 -0
- /package/dist/src/{consts → src/consts}/injection-keys.const.d.ts +0 -0
- /package/dist/src/{helpers → src/helpers}/ant-design-vue.d.ts +0 -0
- /package/dist/src/{helpers → src/helpers}/tsx.helper.d.ts +0 -0
- /package/dist/src/{index.d.ts → src/index.d.ts} +0 -0
- /package/dist/src/{services → src/services}/http-client.d.ts +0 -0
- /package/dist/src/{services → src/services}/index.d.ts +0 -0
- /package/dist/src/{utils → src/utils}/dom.util.d.ts +0 -0
- /package/dist/src/{utils → src/utils}/index.d.ts +0 -0
- /package/dist/src/{utils → src/utils}/kg.util.d.ts +0 -0
- /package/dist/src/{utils → src/utils}/logger.util.d.ts +0 -0
- /package/dist/src/{utils → src/utils}/route.util.d.ts +0 -0
- /package/dist/src/{utils → src/utils}/var.util.d.ts +0 -0
package/dist/kengic-vue.js
CHANGED
@@ -3929,7 +3929,7 @@ const emptyIcon = {
|
|
3929
3929
|
...t.data
|
3930
3930
|
}, r);
|
3931
3931
|
}
|
3932
|
-
});
|
3932
|
+
}), name = "@kengic/vue", version = "0.10.2-beta.0";
|
3933
3933
|
class KgDomUtil {
|
3934
3934
|
static isNotClickable(t, r = []) {
|
3935
3935
|
return !t || [...r, "kg-not-clickable"].some((a) => t.classList.contains(a)) ? !0 : t.parentElement && t.parentElement.tagName !== "BODY" ? KgDomUtil.isNotClickable(t.parentElement) : !1;
|
@@ -4037,24 +4037,24 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4037
4037
|
return L ? le : le.endOf(c);
|
4038
4038
|
}, Q = function(ce, ne) {
|
4039
4039
|
return P.w(F.toDate()[ce].apply(F.toDate("s"), (L ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(ne)), F);
|
4040
|
-
}, z = this.$W, Z = this.$M,
|
4040
|
+
}, z = this.$W, Z = this.$M, re = this.$D, ie = "set" + (this.$u ? "UTC" : "");
|
4041
4041
|
switch (B) {
|
4042
4042
|
case v:
|
4043
4043
|
return L ? Y(1, 0) : Y(31, 11);
|
4044
4044
|
case d:
|
4045
4045
|
return L ? Y(1, Z) : Y(0, Z + 1);
|
4046
4046
|
case u:
|
4047
|
-
var
|
4048
|
-
return Y(L ?
|
4047
|
+
var se = this.$locale().weekStart || 0, ge = (z < se ? z + 7 : z) - se;
|
4048
|
+
return Y(L ? re - ge : re + (6 - ge), Z);
|
4049
4049
|
case c:
|
4050
4050
|
case y:
|
4051
|
-
return Q(
|
4051
|
+
return Q(ie + "Hours", 0);
|
4052
4052
|
case i:
|
4053
|
-
return Q(
|
4053
|
+
return Q(ie + "Minutes", 1);
|
4054
4054
|
case o:
|
4055
|
-
return Q(
|
4055
|
+
return Q(ie + "Seconds", 2);
|
4056
4056
|
case l:
|
4057
|
-
return Q(
|
4057
|
+
return Q(ie + "Milliseconds", 3);
|
4058
4058
|
default:
|
4059
4059
|
return this.clone();
|
4060
4060
|
}
|
@@ -4076,8 +4076,8 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4076
4076
|
var F, L = this;
|
4077
4077
|
V = Number(V);
|
4078
4078
|
var B = P.p(G), Y = function(Z) {
|
4079
|
-
var
|
4080
|
-
return P.w(
|
4079
|
+
var re = M(L);
|
4080
|
+
return P.w(re.date(re.date() + Math.round(Z * V)), L);
|
4081
4081
|
};
|
4082
4082
|
if (B === d)
|
4083
4083
|
return this.set(d, this.$M + V);
|
@@ -4095,11 +4095,11 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4095
4095
|
var G = this, F = this.$locale();
|
4096
4096
|
if (!this.isValid())
|
4097
4097
|
return F.invalidDate || p;
|
4098
|
-
var L = V || "YYYY-MM-DDTHH:mm:ssZ", B = P.z(this), Y = this.$H, Q = this.$m, z = this.$M, Z = F.weekdays,
|
4098
|
+
var L = V || "YYYY-MM-DDTHH:mm:ssZ", B = P.z(this), Y = this.$H, Q = this.$m, z = this.$M, Z = F.weekdays, re = F.months, ie = F.meridiem, se = function(ne, le, de, fe) {
|
4099
4099
|
return ne && (ne[le] || ne(G, L)) || de[le].slice(0, fe);
|
4100
4100
|
}, ge = function(ne) {
|
4101
4101
|
return P.s(Y % 12 || 12, ne, "0");
|
4102
|
-
}, ce =
|
4102
|
+
}, ce = ie || function(ne, le, de) {
|
4103
4103
|
var fe = ne < 12 ? "AM" : "PM";
|
4104
4104
|
return de ? fe.toLowerCase() : fe;
|
4105
4105
|
};
|
@@ -4115,9 +4115,9 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4115
4115
|
case "MM":
|
4116
4116
|
return P.s(z + 1, 2, "0");
|
4117
4117
|
case "MMM":
|
4118
|
-
return
|
4118
|
+
return se(F.monthsShort, z, re, 3);
|
4119
4119
|
case "MMMM":
|
4120
|
-
return
|
4120
|
+
return se(re, z);
|
4121
4121
|
case "D":
|
4122
4122
|
return G.$D;
|
4123
4123
|
case "DD":
|
@@ -4125,9 +4125,9 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4125
4125
|
case "d":
|
4126
4126
|
return String(G.$W);
|
4127
4127
|
case "dd":
|
4128
|
-
return
|
4128
|
+
return se(F.weekdaysMin, G.$W, Z, 2);
|
4129
4129
|
case "ddd":
|
4130
|
-
return
|
4130
|
+
return se(F.weekdaysShort, G.$W, Z, 3);
|
4131
4131
|
case "dddd":
|
4132
4132
|
return Z[G.$W];
|
4133
4133
|
case "H":
|
@@ -4161,18 +4161,18 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4161
4161
|
}, w.utcOffset = function() {
|
4162
4162
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
4163
4163
|
}, w.diff = function(V, G, F) {
|
4164
|
-
var L, B = this, Y = P.p(G), Q = M(V), z = (Q.utcOffset() - this.utcOffset()) * a, Z = this - Q,
|
4164
|
+
var L, B = this, Y = P.p(G), Q = M(V), z = (Q.utcOffset() - this.utcOffset()) * a, Z = this - Q, re = function() {
|
4165
4165
|
return P.m(B, Q);
|
4166
4166
|
};
|
4167
4167
|
switch (Y) {
|
4168
4168
|
case v:
|
4169
|
-
L =
|
4169
|
+
L = re() / 12;
|
4170
4170
|
break;
|
4171
4171
|
case d:
|
4172
|
-
L =
|
4172
|
+
L = re();
|
4173
4173
|
break;
|
4174
4174
|
case m:
|
4175
|
-
L =
|
4175
|
+
L = re() / 3;
|
4176
4176
|
break;
|
4177
4177
|
case u:
|
4178
4178
|
L = (Z - z) / 6048e5;
|
@@ -7460,7 +7460,11 @@ addIcon("ant-design:printer-outlined", data$1);
|
|
7460
7460
|
addIcon("ant-design:aim-outlined", data$a);
|
7461
7461
|
function setup(e) {
|
7462
7462
|
var r;
|
7463
|
-
if (
|
7463
|
+
if (console.log(
|
7464
|
+
`%c\u751F\u4EA7\u73AF\u5883
|
7465
|
+
${name}: ${version}`,
|
7466
|
+
"color:#ffffff;background-color:#1B6EF3;border-radius:2px;padding:1px 3px;font-size:10px;margin-bottom:1px;"
|
7467
|
+
), !(e != null && e.pinia) || !(e != null && e.locale) || !(e != null && e.i18n) || !e.pFunction)
|
7464
7468
|
throw KgLogger.error("\u7F3A\u5C11\u5FC5\u8981\u7684\u521D\u59CB\u5316\u53C2\u6570.", { options: e }), new Error("[@kengic/vue] \u7F3A\u5C11\u5FC5\u8981\u7684\u521D\u59CB\u5316\u53C2\u6570.");
|
7465
7469
|
setPinia(e.pinia);
|
7466
7470
|
const t = useKg();
|
@@ -8668,6 +8672,18 @@ const useKgVarStore = () => (store$7 || (store$7 = defineStore("KgVar", {
|
|
8668
8672
|
return t ? (a = (r = e.formIDs.find((n) => n.formID === t)) == null ? void 0 : r.level) != null ? a : 0 : (KgLogger.error("frm_id \u4E3A\u7A7A."), 0);
|
8669
8673
|
};
|
8670
8674
|
},
|
8675
|
+
t(e) {
|
8676
|
+
return (t, r) => {
|
8677
|
+
var s;
|
8678
|
+
if (!t || !r)
|
8679
|
+
return KgLogger.warn("IKgVarStore.t() | frm_id \u6216 var_nam \u4E3A\u7A7A.", { frm_id: t, var_nam: r }), " ";
|
8680
|
+
const a = e.varCatalogMap.get(t);
|
8681
|
+
if (!a)
|
8682
|
+
return " ";
|
8683
|
+
const n = a.find((l) => l.var_nam === r);
|
8684
|
+
return n && (s = n.var_text) != null ? s : r;
|
8685
|
+
};
|
8686
|
+
},
|
8671
8687
|
isRetrieving(e) {
|
8672
8688
|
return (t) => {
|
8673
8689
|
var r;
|
@@ -8750,7 +8766,7 @@ const useKgVarStore = () => (store$7 || (store$7 = defineStore("KgVar", {
|
|
8750
8766
|
return (t, r) => {
|
8751
8767
|
var n;
|
8752
8768
|
if (!t || !r)
|
8753
|
-
return KgLogger.
|
8769
|
+
return KgLogger.warn("IKgVarStore.getVarCatalog() | frm_id \u6216 var_nam \u4E3A\u7A7A.", { frm_id: t, var_nam: r }), null;
|
8754
8770
|
const a = e.varCatalogMap.get(t);
|
8755
8771
|
return (n = a == null ? void 0 : a.find((s) => s.var_nam === r)) != null ? n : null;
|
8756
8772
|
};
|
@@ -9364,10 +9380,7 @@ function useKgVar(e, t, r = 0) {
|
|
9364
9380
|
}), onUnmounted(() => {
|
9365
9381
|
u.leave(c);
|
9366
9382
|
}));
|
9367
|
-
const d = (z) => computed(() => {
|
9368
|
-
var Z, ee, se;
|
9369
|
-
return (se = (ee = (Z = u.getVarCatalog(c, z)) == null ? void 0 : Z.var_text) != null ? ee : z) != null ? se : "";
|
9370
|
-
}), m = computed(() => u.isRetrieving(c)), v = computed(() => u.isRetrievingVarProfileMaster(c)), y = computed(() => u.isRetrievingVarGridMaster(c)), p = computed(() => u.isCreating(c)), g = computed(() => u.isCreatingRequesting(c)), b = computed(() => u.isUpdating(c)), E = computed(() => u.isUpdatingRequesting(c)), C = computed(() => u.isCopying(c)), T = computed(() => u.isCopyingRequesting(c)), A = computed(() => u.isDeleting(c)), k = computed(() => u.isDeletingRequesting(c)), R = computed(() => u.isOtherRequesting(c)), D = computed(() => u.getVarButtons(c)), I = computed(() => u.getVarButtonSearch(c)), M = computed(() => u.getVarButtonCreate(c)), P = computed(() => u.getVarButtonUpdate(c)), N = computed(() => u.getVarButtonCopy(c)), U = computed(() => u.getVarButtonDelete(c)), O = computed(() => u.getVarProfileMasters(c)), w = computed(() => u.getCurrentVarProfileMaster(c)), V = computed(() => u.getCurrentVarProfileMasterID(c)), G = computed(() => {
|
9383
|
+
const d = (z) => computed(() => u.t(c, z)), m = computed(() => u.isRetrieving(c)), v = computed(() => u.isRetrievingVarProfileMaster(c)), y = computed(() => u.isRetrievingVarGridMaster(c)), p = computed(() => u.isCreating(c)), g = computed(() => u.isCreatingRequesting(c)), b = computed(() => u.isUpdating(c)), E = computed(() => u.isUpdatingRequesting(c)), C = computed(() => u.isCopying(c)), T = computed(() => u.isCopyingRequesting(c)), A = computed(() => u.isDeleting(c)), k = computed(() => u.isDeletingRequesting(c)), R = computed(() => u.isOtherRequesting(c)), D = computed(() => u.getVarButtons(c)), I = computed(() => u.getVarButtonSearch(c)), M = computed(() => u.getVarButtonCreate(c)), P = computed(() => u.getVarButtonUpdate(c)), N = computed(() => u.getVarButtonCopy(c)), U = computed(() => u.getVarButtonDelete(c)), O = computed(() => u.getVarProfileMasters(c)), w = computed(() => u.getCurrentVarProfileMaster(c)), V = computed(() => u.getCurrentVarProfileMasterID(c)), G = computed(() => {
|
9371
9384
|
var z, Z;
|
9372
9385
|
return (Z = (z = w.value) == null ? void 0 : z.varProfileDetails) != null ? Z : null;
|
9373
9386
|
}), F = computed(() => u.getVarGridConfig(c)), L = computed(() => u.getVarGridMasters(c)), B = computed(() => u.getCurrentVarGridMaster(c)), Y = computed(() => u.getSystemVarGridDetails(c)), Q = computed(() => u.getCurrentVarGridDetails(c));
|
@@ -11222,7 +11235,7 @@ const getProps$p = () => ({
|
|
11222
11235
|
const r = inject("$dayjs", dayjs), a = inject(DI_KG_VAR__KG_SLOTS, null);
|
11223
11236
|
inject(DI_KG_VAR__KG_PROPS, null);
|
11224
11237
|
const n = useKg(), s = useKgVar(), l = useKgButton(), o = useKgTable(), i = useKgSubmit(), c = useKgSearch();
|
11225
|
-
l.onSubmitSave(async () => (await
|
11238
|
+
l.onSubmitSave(async () => (await se(), !1)), l.onSubmitCancel(async () => (await ie(), !1)), _useFormModel$1();
|
11226
11239
|
const u = computed(() => s.isDeleting.value && T.value.length === 0 && A.value.length === 0), d = computed(() => i.store.isLoading(s.formID)), m = computed(() => s.store.getVarSubmitConfig(s.formID)), v = computed(() => s.store.getVarSubmitFieldsForCreateKey(s.formID)), y = computed(() => s.store.getVarSubmitFieldsForCreateNotKey(s.formID)), p = computed(() => s.store.getVarSubmitFieldsForUpdateKey(s.formID)), g = computed(() => s.store.getVarSubmitFieldsForUpdateNotKey(s.formID)), b = computed(() => s.store.getVarSubmitFieldsForCopyKey(s.formID)), E = computed(() => s.store.getVarSubmitFieldsForCopyNotKey(s.formID)), C = computed(() => s.store.getVarSubmitFieldsForDelete(s.formID)), T = computed(() => {
|
11227
11240
|
var $, x, W;
|
11228
11241
|
switch (!0) {
|
@@ -11306,7 +11319,7 @@ const getProps$p = () => ({
|
|
11306
11319
|
}
|
11307
11320
|
});
|
11308
11321
|
watch(G, ($, x) => {
|
11309
|
-
$ === !0 && Z(), x === !0 && $ === !1 &&
|
11322
|
+
$ === !0 && Z(), x === !0 && $ === !1 && re();
|
11310
11323
|
}, {
|
11311
11324
|
immediate: !0
|
11312
11325
|
}), watch(Y, ($) => {
|
@@ -11330,10 +11343,10 @@ const getProps$p = () => ({
|
|
11330
11343
|
});
|
11331
11344
|
((x = m.value) == null ? void 0 : x.dft_fullscreen_flg) === 1 && !u.value && (F.isFullscreen = !0);
|
11332
11345
|
}
|
11333
|
-
async function
|
11346
|
+
async function re() {
|
11334
11347
|
I.value.kgWidth = Y.value, F.isFullscreen = !1, await i.store.emit(s.formID, "close", null);
|
11335
11348
|
}
|
11336
|
-
function
|
11349
|
+
function ie() {
|
11337
11350
|
switch (!0) {
|
11338
11351
|
case s.isCreating.value:
|
11339
11352
|
s.store.setIsCreating(s.formID, !1);
|
@@ -11349,7 +11362,7 @@ const getProps$p = () => ({
|
|
11349
11362
|
break;
|
11350
11363
|
}
|
11351
11364
|
}
|
11352
|
-
async function
|
11365
|
+
async function se() {
|
11353
11366
|
var $, x;
|
11354
11367
|
try {
|
11355
11368
|
if (await i.store.emit(s.formID, "beforeOk", {
|
@@ -11396,7 +11409,7 @@ const getProps$p = () => ({
|
|
11396
11409
|
}
|
11397
11410
|
}
|
11398
11411
|
async function ge() {
|
11399
|
-
var x, W, J, X,
|
11412
|
+
var x, W, J, X, ee, ae;
|
11400
11413
|
const $ = (x = s.varButtonCreate.value) == null ? void 0 : x.cmd;
|
11401
11414
|
if (!$) {
|
11402
11415
|
KgLogger.error("[KgSubmit] '\u521B\u5EFA\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
|
@@ -11406,7 +11419,7 @@ const getProps$p = () => ({
|
|
11406
11419
|
}
|
11407
11420
|
s.store.setIsCreatingRequesting(s.formID, !0);
|
11408
11421
|
try {
|
11409
|
-
let
|
11422
|
+
let te = ref(KgUtil.parseParams(KgVarUtil.parseCommandParameter((J = (W = s.varButtonCreate.value) == null ? void 0 : W.cmd_prm) != null ? J : ""), s.formID, r)), oe = ref(KgUtil.parseParams(toRaw(i.model.value), s.formID, r));
|
11410
11423
|
if (await i.store.emit(s.formID, "beforeRequest", {
|
11411
11424
|
isCreating: s.isCreating.value,
|
11412
11425
|
isUpdating: s.isUpdating.value,
|
@@ -11415,15 +11428,15 @@ const getProps$p = () => ({
|
|
11415
11428
|
row: o.selectedFirstRow.value,
|
11416
11429
|
rows: o.selectedRows.value,
|
11417
11430
|
model: i.model,
|
11418
|
-
params:
|
11419
|
-
data:
|
11431
|
+
params: te,
|
11432
|
+
data: oe
|
11420
11433
|
}))
|
11421
11434
|
return;
|
11422
11435
|
await httpClient().request({
|
11423
|
-
method: (
|
11436
|
+
method: (ee = (X = s.varButtonCreate.value) == null ? void 0 : X.cmd_method) != null ? ee : "POST",
|
11424
11437
|
url: $,
|
11425
|
-
params:
|
11426
|
-
data:
|
11438
|
+
params: te.value,
|
11439
|
+
data: oe.value
|
11427
11440
|
}), ((ae = s.varButtonCreate.value) == null ? void 0 : ae.show_success_message_flg) !== 0 && message.success(w.title.value + n.t("kg.succeed")), await i.store.emit(s.formID, "ok", {
|
11428
11441
|
isCreating: s.isCreating.value,
|
11429
11442
|
isUpdating: s.isUpdating.value,
|
@@ -11432,14 +11445,14 @@ const getProps$p = () => ({
|
|
11432
11445
|
row: o.selectedFirstRow.value,
|
11433
11446
|
model: i.model
|
11434
11447
|
}), s.store.setIsCreating(s.formID, !1), c.search(!0);
|
11435
|
-
} catch (
|
11436
|
-
console.error(
|
11448
|
+
} catch (te) {
|
11449
|
+
console.error(te), i.store.emit(s.formID, "error", te);
|
11437
11450
|
} finally {
|
11438
11451
|
s.store.setIsCreatingRequesting(s.formID, !1);
|
11439
11452
|
}
|
11440
11453
|
}
|
11441
11454
|
async function ce() {
|
11442
|
-
var x, W, J, X,
|
11455
|
+
var x, W, J, X, ee, ae;
|
11443
11456
|
const $ = (x = s.varButtonUpdate.value) == null ? void 0 : x.cmd;
|
11444
11457
|
if (!$) {
|
11445
11458
|
KgLogger.error("[KgSubmit] '\u66F4\u65B0\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
|
@@ -11449,7 +11462,7 @@ const getProps$p = () => ({
|
|
11449
11462
|
}
|
11450
11463
|
try {
|
11451
11464
|
s.store.setIsUpdatingRequesting(s.formID, !0);
|
11452
|
-
let
|
11465
|
+
let te = ref(KgUtil.parseParams(KgVarUtil.parseCommandParameter((J = (W = s.varButtonUpdate.value) == null ? void 0 : W.cmd_prm) != null ? J : ""), s.formID, r)), oe = ref(KgUtil.parseParams(toRaw(i.model.value), s.formID, r));
|
11453
11466
|
if (await i.store.emit(s.formID, "beforeRequest", {
|
11454
11467
|
isCreating: s.isCreating.value,
|
11455
11468
|
isUpdating: s.isUpdating.value,
|
@@ -11458,15 +11471,15 @@ const getProps$p = () => ({
|
|
11458
11471
|
row: o.selectedRow.value,
|
11459
11472
|
rows: o.selectedRows.value,
|
11460
11473
|
model: i.model,
|
11461
|
-
params:
|
11462
|
-
data:
|
11474
|
+
params: te,
|
11475
|
+
data: oe
|
11463
11476
|
}))
|
11464
11477
|
return;
|
11465
11478
|
await httpClient().request({
|
11466
|
-
method: (
|
11479
|
+
method: (ee = (X = s.varButtonUpdate.value) == null ? void 0 : X.cmd_method) != null ? ee : "POST",
|
11467
11480
|
url: $,
|
11468
|
-
params:
|
11469
|
-
data:
|
11481
|
+
params: te.value,
|
11482
|
+
data: oe.value
|
11470
11483
|
}), ((ae = s.varButtonUpdate.value) == null ? void 0 : ae.show_success_message_flg) !== 0 && message.success(n.t("kg.updateSuccess")), await i.store.emit(s.formID, "ok", {
|
11471
11484
|
isCreating: s.isCreating.value,
|
11472
11485
|
isUpdating: s.isUpdating.value,
|
@@ -11475,14 +11488,14 @@ const getProps$p = () => ({
|
|
11475
11488
|
row: o.selectedFirstRow.value,
|
11476
11489
|
model: i.model
|
11477
11490
|
}), s.store.setIsUpdating(s.formID, !1), c.search();
|
11478
|
-
} catch (
|
11479
|
-
console.error(
|
11491
|
+
} catch (te) {
|
11492
|
+
console.error(te), i.store.emit(s.formID, "error", te);
|
11480
11493
|
} finally {
|
11481
11494
|
s.store.setIsUpdatingRequesting(s.formID, !1);
|
11482
11495
|
}
|
11483
11496
|
}
|
11484
11497
|
async function ne() {
|
11485
|
-
var x, W, J, X,
|
11498
|
+
var x, W, J, X, ee, ae, te, oe;
|
11486
11499
|
const $ = (x = s.varButtonCopy.value) == null ? void 0 : x.cmd;
|
11487
11500
|
if (!$) {
|
11488
11501
|
KgLogger.error("[KgSubmit] '\u590D\u5236\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
|
@@ -11496,7 +11509,7 @@ const getProps$p = () => ({
|
|
11496
11509
|
...(X = o.selectedFirstRow.value) != null ? X : {},
|
11497
11510
|
...toRaw(i.model.value)
|
11498
11511
|
}, s.formID, r));
|
11499
|
-
if (((
|
11512
|
+
if (((ee = m.value) == null ? void 0 : ee.cpy_clear_id_flg) !== 0 && delete pe.value.id, await i.store.emit(s.formID, "beforeRequest", {
|
11500
11513
|
isCreating: s.isCreating.value,
|
11501
11514
|
isUpdating: s.isUpdating.value,
|
11502
11515
|
isCopying: s.isCopying.value,
|
@@ -11509,11 +11522,11 @@ const getProps$p = () => ({
|
|
11509
11522
|
}))
|
11510
11523
|
return;
|
11511
11524
|
await httpClient().request({
|
11512
|
-
method: (
|
11525
|
+
method: (te = (ae = s.varButtonCopy.value) == null ? void 0 : ae.cmd_method) != null ? te : "POST",
|
11513
11526
|
url: $,
|
11514
11527
|
params: ue.value,
|
11515
11528
|
data: pe.value
|
11516
|
-
}), ((
|
11529
|
+
}), ((oe = s.varButtonCopy.value) == null ? void 0 : oe.show_success_message_flg) !== 0 && message.success(n.t("kg.copySuccess")), await i.store.emit(s.formID, "ok", {
|
11517
11530
|
isCreating: s.isCreating.value,
|
11518
11531
|
isUpdating: s.isUpdating.value,
|
11519
11532
|
isCopying: s.isCopying.value,
|
@@ -11528,7 +11541,7 @@ const getProps$p = () => ({
|
|
11528
11541
|
}
|
11529
11542
|
}
|
11530
11543
|
async function le() {
|
11531
|
-
var x, W, J, X,
|
11544
|
+
var x, W, J, X, ee, ae, te, oe, ue, pe;
|
11532
11545
|
const $ = (x = s.varButtonDelete.value) == null ? void 0 : x.cmd;
|
11533
11546
|
if (!$) {
|
11534
11547
|
KgLogger.error("[KgSubmit] '\u5220\u9664\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
|
@@ -11539,11 +11552,11 @@ const getProps$p = () => ({
|
|
11539
11552
|
try {
|
11540
11553
|
s.store.setIsDeletingRequesting(s.formID, !0);
|
11541
11554
|
let me = ref(KgUtil.parseParams(KgVarUtil.parseCommandParameter((J = (W = s.varButtonDelete.value) == null ? void 0 : W.cmd_prm) != null ? J : ""), s.formID, r)), _e = ref((X = o.selectedRows.value) != null ? X : []);
|
11542
|
-
if (((
|
11543
|
-
ids: (
|
11555
|
+
if (((ee = s.varButtonDelete.value) == null ? void 0 : ee.del_param_clm) !== "__kg__new_delete_param" && (me = ref({
|
11556
|
+
ids: (te = (ae = o.selectedRows.value) == null ? void 0 : ae.map((ye) => {
|
11544
11557
|
var he, ve, be;
|
11545
11558
|
return (be = ye[(ve = (he = s.varButtonDelete.value) == null ? void 0 : he.del_param_clm) != null ? ve : "id"]) != null ? be : "";
|
11546
|
-
})) != null ?
|
11559
|
+
})) != null ? te : []
|
11547
11560
|
}), _e = ref({})), await i.store.emit(s.formID, "beforeRequest", {
|
11548
11561
|
isCreating: s.isCreating.value,
|
11549
11562
|
isUpdating: s.isUpdating.value,
|
@@ -11557,7 +11570,7 @@ const getProps$p = () => ({
|
|
11557
11570
|
}))
|
11558
11571
|
return;
|
11559
11572
|
await httpClient().request({
|
11560
|
-
method: (ue = (
|
11573
|
+
method: (ue = (oe = s.varButtonDelete.value) == null ? void 0 : oe.cmd_method) != null ? ue : "DELETE",
|
11561
11574
|
url: $,
|
11562
11575
|
params: me.value,
|
11563
11576
|
data: _e.value
|
@@ -11587,22 +11600,22 @@ const getProps$p = () => ({
|
|
11587
11600
|
kgVarName: $.var_nam,
|
11588
11601
|
kgContext: KG_FORM_CONTEXT.SUBMIT,
|
11589
11602
|
kgRules: i.rules.value[$.var_nam],
|
11590
|
-
onKgSubmit:
|
11603
|
+
onKgSubmit: se
|
11591
11604
|
}, {
|
11592
11605
|
control: ({
|
11593
11606
|
frm_id: X,
|
11594
|
-
varName:
|
11607
|
+
varName: ee,
|
11595
11608
|
props: ae,
|
11596
|
-
model:
|
11597
|
-
varVariableConfig:
|
11609
|
+
model: te,
|
11610
|
+
varVariableConfig: oe,
|
11598
11611
|
varProfileDetail: ue,
|
11599
11612
|
varSubmitField: pe
|
11600
11613
|
}) => x({
|
11601
11614
|
frm_id: X,
|
11602
|
-
varName:
|
11615
|
+
varName: ee,
|
11603
11616
|
props: ae,
|
11604
|
-
model:
|
11605
|
-
varVariableConfig:
|
11617
|
+
model: te,
|
11618
|
+
varVariableConfig: oe,
|
11606
11619
|
varProfileDetail: ue,
|
11607
11620
|
varSubmitField: pe
|
11608
11621
|
})
|
@@ -11610,7 +11623,7 @@ const getProps$p = () => ({
|
|
11610
11623
|
kgVarName: $.var_nam,
|
11611
11624
|
kgContext: KG_FORM_CONTEXT.SUBMIT,
|
11612
11625
|
kgRules: i.rules.value[$.var_nam],
|
11613
|
-
onKgSubmit:
|
11626
|
+
onKgSubmit: se
|
11614
11627
|
}, null);
|
11615
11628
|
}
|
11616
11629
|
function fe() {
|
@@ -11656,7 +11669,7 @@ const getProps$p = () => ({
|
|
11656
11669
|
type: "primary",
|
11657
11670
|
ghost: !R.value,
|
11658
11671
|
disabled: R.value,
|
11659
|
-
onClick:
|
11672
|
+
onClick: ie
|
11660
11673
|
}, _isSlot$8($ = n.t("kg.cancel")) ? $ : {
|
11661
11674
|
default: () => [$]
|
11662
11675
|
}), createVNode(Button, {
|
@@ -11664,7 +11677,7 @@ const getProps$p = () => ({
|
|
11664
11677
|
disabled: D.value,
|
11665
11678
|
loading: k.value,
|
11666
11679
|
danger: !!s.isDeleting.value,
|
11667
|
-
onClick:
|
11680
|
+
onClick: se
|
11668
11681
|
}, _isSlot$8(x = n.t(s.isDeleting.value ? "kg.delete" : "kg.save")) ? x : {
|
11669
11682
|
default: () => [x]
|
11670
11683
|
})]);
|
@@ -11680,7 +11693,7 @@ const getProps$p = () => ({
|
|
11680
11693
|
"onUpdate:isFullscreen": ($) => F.isFullscreen = $,
|
11681
11694
|
kgShowFullscreenButton: !u.value,
|
11682
11695
|
kgShowConfigButton: !u.value && e.kgShowConfigButton,
|
11683
|
-
onKgCancel:
|
11696
|
+
onKgCancel: ie
|
11684
11697
|
}, null);
|
11685
11698
|
}
|
11686
11699
|
return () => createVNode(Drawer, {
|
@@ -11911,6 +11924,15 @@ const useKgTableStore = () => (store$4 || (store$4 = defineStore("KgTable", {
|
|
11911
11924
|
const a = (l = (s = r.varGridConfig.value) == null ? void 0 : s.id_clm) != null ? l : "id", n = this.getSelectedRowKeys(e);
|
11912
11925
|
n.value = t.map((o) => o[a]);
|
11913
11926
|
},
|
11927
|
+
refreshSelectedRows(e) {
|
11928
|
+
var s, l;
|
11929
|
+
if (!e) {
|
11930
|
+
KgLogger.error("KgTableStore.refreshSelectedRows() | frm_id \u4E3A\u7A7A.");
|
11931
|
+
return;
|
11932
|
+
}
|
11933
|
+
const r = (l = (s = useKgVar(e).varGridConfig.value) == null ? void 0 : s.id_clm) != null ? l : "id", a = this.getSelectedRowKeys(e), n = this.getDatas(e).filter((o) => a.value.includes(o[r]));
|
11934
|
+
this.selectedRowsMap.set(e, unref(toRaw(n)));
|
11935
|
+
},
|
11914
11936
|
setRowSelect(e, t, r) {
|
11915
11937
|
},
|
11916
11938
|
setIsRetrieved(e, t) {
|
@@ -13424,29 +13446,29 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
13424
13446
|
}, {
|
13425
13447
|
successMessageMode: "none"
|
13426
13448
|
}), KgLogger.debug(`${o.formID} | KgTable | retrieve() | retrieveDatas() | \u67E5\u8BE2\u63A5\u53E3\u8C03\u7528\u6210\u529F.`));
|
13427
|
-
let
|
13449
|
+
let ee = ref([]), ae = ref(0);
|
13428
13450
|
switch (!0) {
|
13429
13451
|
case !X.value:
|
13430
|
-
|
13452
|
+
ee.value = [], ae.value = 0;
|
13431
13453
|
break;
|
13432
13454
|
case isArrayLike(X.value):
|
13433
|
-
|
13455
|
+
ee.value = X.value, ae.value = X.value.length;
|
13434
13456
|
break;
|
13435
13457
|
case ("total" in X.value && "records" in X.value):
|
13436
|
-
|
13458
|
+
ee.value = ($ = X.value.records) != null ? $ : [], ae.value = (x = X.value.total) != null ? x : 0;
|
13437
13459
|
break;
|
13438
13460
|
}
|
13439
13461
|
await u.store.emit(o.formID, "beforeSetDatas", {
|
13440
|
-
datas:
|
13462
|
+
datas: ee,
|
13441
13463
|
total: ae,
|
13442
|
-
setDatas(
|
13443
|
-
u.store.setDatas(o.formID,
|
13464
|
+
setDatas(te) {
|
13465
|
+
u.store.setDatas(o.formID, te);
|
13444
13466
|
}
|
13445
|
-
}), u.store.setDatas(o.formID,
|
13467
|
+
}), u.store.setDatas(o.formID, ee.value), w.total = ae.value, B(), v.value = [], await nextTick(), ((W = o.varGridConfig.value) == null ? void 0 : W.check_first_row_after_retrieve) === 1 && ee.value.length > 0 && u.store.setSelectedRows(o.formID, [ee.value[0]]), await u.store.emit(o.formID, "retrieve", {
|
13446
13468
|
page: X.value,
|
13447
|
-
datas:
|
13448
|
-
setDatas(
|
13449
|
-
u.store.setDatas(o.formID,
|
13469
|
+
datas: ee,
|
13470
|
+
setDatas(te) {
|
13471
|
+
u.store.setDatas(o.formID, te);
|
13450
13472
|
}
|
13451
13473
|
}), u.store.setIsRetrieved(o.formID, !0);
|
13452
13474
|
} catch (J) {
|
@@ -13486,7 +13508,7 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
13486
13508
|
function Z(K, H) {
|
13487
13509
|
H.width = K, o.store.setVarGridDetailWidth(o.formID, H.dataIndex, K);
|
13488
13510
|
}
|
13489
|
-
async function
|
13511
|
+
async function re(K, H, q, $) {
|
13490
13512
|
var x;
|
13491
13513
|
switch ($.action) {
|
13492
13514
|
case "sort":
|
@@ -13498,7 +13520,7 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
13498
13520
|
break;
|
13499
13521
|
}
|
13500
13522
|
}
|
13501
|
-
function
|
13523
|
+
function ie(K, H) {
|
13502
13524
|
var $;
|
13503
13525
|
const q = H[u.id.value];
|
13504
13526
|
switch (($ = o.varGridConfig.value) == null ? void 0 : $.expand_accordion_flg) {
|
@@ -13510,7 +13532,7 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
13510
13532
|
break;
|
13511
13533
|
}
|
13512
13534
|
}
|
13513
|
-
function
|
13535
|
+
function se(K, H) {
|
13514
13536
|
H !== w.pageSize ? (w.pageIndex = 1, w.pageSize = H) : w.pageIndex = K, Y();
|
13515
13537
|
}
|
13516
13538
|
function ge(K) {
|
@@ -13588,7 +13610,7 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
13588
13610
|
onKgUpdateLinkClick: () => ge(q)
|
13589
13611
|
}, null);
|
13590
13612
|
if ((X = n == null ? void 0 : n.KgTable) != null && X.bodyCell) {
|
13591
|
-
const
|
13613
|
+
const ee = K.dataIndex ? o.store.getVarGridDetail(o.formID, K.dataIndex) : null;
|
13592
13614
|
return n.KgTable.bodyCell({
|
13593
13615
|
column: K,
|
13594
13616
|
index: H,
|
@@ -13596,7 +13618,7 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
13596
13618
|
text: $,
|
13597
13619
|
value: x,
|
13598
13620
|
row: q,
|
13599
|
-
varGridDetail:
|
13621
|
+
varGridDetail: ee,
|
13600
13622
|
defaultRender: J
|
13601
13623
|
});
|
13602
13624
|
} else
|
@@ -13632,8 +13654,8 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
13632
13654
|
onClick: (x) => B(x, $)
|
13633
13655
|
}),
|
13634
13656
|
onResizeColumn: Z,
|
13635
|
-
onChange:
|
13636
|
-
onExpand:
|
13657
|
+
onChange: re,
|
13658
|
+
onExpand: ie
|
13637
13659
|
}, {
|
13638
13660
|
headerCell: ce,
|
13639
13661
|
bodyCell: le,
|
@@ -13670,7 +13692,7 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
13670
13692
|
to: x[1],
|
13671
13693
|
total: $
|
13672
13694
|
}),
|
13673
|
-
onChange: ($, x) =>
|
13695
|
+
onChange: ($, x) => se($, x)
|
13674
13696
|
}, null)])])]);
|
13675
13697
|
};
|
13676
13698
|
}
|
@@ -15609,10 +15631,10 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
15609
15631
|
}, {
|
15610
15632
|
default: () => {
|
15611
15633
|
var z, Z;
|
15612
|
-
return (Z = (z = n.varProfileMasters) == null ? void 0 : z.value) == null ? void 0 : Z.map((
|
15613
|
-
value:
|
15634
|
+
return (Z = (z = n.varProfileMasters) == null ? void 0 : z.value) == null ? void 0 : Z.map((re) => createVNode(Select.Option, {
|
15635
|
+
value: re.id
|
15614
15636
|
}, {
|
15615
|
-
default: () => [n.t(
|
15637
|
+
default: () => [n.t(re == null ? void 0 : re.prf_var_nam).value]
|
15616
15638
|
}));
|
15617
15639
|
},
|
15618
15640
|
suffixIcon: () => createVNode(CaretDownOutlined$1, {
|
@@ -106,6 +106,11 @@ export declare type IKgTableStoreDefinition = StoreDefinition<'KgTable', IKgTabl
|
|
106
106
|
* @param selectedRows 勾选的行.
|
107
107
|
*/
|
108
108
|
setSelectedRows(formID: string | null | undefined, selectedRows: Array<IKgTableRow>): void;
|
109
|
+
/**
|
110
|
+
* 刷新勾选的行. 表格列表数据变更之后, 需要同步到勾选的行.
|
111
|
+
* @param formID 界面标识.
|
112
|
+
*/
|
113
|
+
refreshSelectedRows(formID: string | null | undefined): void;
|
109
114
|
/**
|
110
115
|
* 设置某行的勾选状态.
|
111
116
|
* @param formID 界面标识.
|
@@ -82,6 +82,10 @@ export declare type IKgVarStoreDefinition = StoreDefinition<'KgVar', IKgVarState
|
|
82
82
|
getTopFormIDs(): Array<string>;
|
83
83
|
/** 获取界面层级. */
|
84
84
|
getFormLevel(): (frm_id?: string | null) => number;
|
85
|
+
/**
|
86
|
+
* 翻译变量.
|
87
|
+
*/
|
88
|
+
t(): (frm_id?: string | null, var_nam?: string | null) => string;
|
85
89
|
isRetrieving(): (frm_id?: string | null) => boolean | null;
|
86
90
|
isRetrievingVarProfileMaster(): (frm_id?: string | null) => boolean | null;
|
87
91
|
isRetrievingVarGridMaster(): (frm_id?: string | null) => boolean | null;
|
@@ -95,6 +99,9 @@ export declare type IKgVarStoreDefinition = StoreDefinition<'KgVar', IKgVarState
|
|
95
99
|
isDeletingRequesting(): (frm_id?: string | null) => boolean | null;
|
96
100
|
isOtherRequesting(): (frm_id?: string | null) => boolean | null;
|
97
101
|
getVarCatalogs(): (frm_id?: string | null) => Array<VarCatalog> | null;
|
102
|
+
/**
|
103
|
+
* 根据 frm_id 和 var_nam 获取 VarCatalog.
|
104
|
+
*/
|
98
105
|
getVarCatalog(): (frm_id?: string | null, var_nam?: string | null) => VarCatalog | null;
|
99
106
|
getVarLookup(): (frm_id?: string | null, var_nam?: string | null) => VarLookup | null;
|
100
107
|
getVarPossibility(): (frm_id?: string | null, var_nam?: string | null) => VarPossibility | null;
|
package/package.json
CHANGED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
/package/dist/src/{apis → src/apis}/WMS/Controllers/VarProfileMasterController/QueryByID.d.ts
RENAMED
File without changes
|
File without changes
|
File without changes
|
/package/dist/src/{apis → src/apis}/WMS/Controllers/VarVariableCatalogController/Delete.d.ts
RENAMED
File without changes
|
/package/dist/src/{apis → src/apis}/WMS/Controllers/VarVariableCatalogController/DeleteBatch.d.ts
RENAMED
File without changes
|