@ibiz-template/runtime 0.2.8 → 0.2.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.esm.js +678 -336
- package/dist/index.system.min.js +1 -1
- package/dist/index.system.min.js.map +1 -1
- package/out/controller/common/control/md-control.controller.d.ts.map +1 -1
- package/out/controller/common/control/md-control.controller.js +16 -21
- package/out/controller/control/form/form-detail/form-detail/form-detail.controller.d.ts +11 -11
- package/out/controller/control/form/form-detail/form-detail/form-detail.controller.d.ts.map +1 -1
- package/out/controller/control/form/form-detail/form-detail/form-detail.controller.js +22 -16
- package/out/controller/control/form/form-detail/form-group-panel/form-group-panel.controller.d.ts +1 -1
- package/out/controller/control/form/form-detail/form-group-panel/form-group-panel.controller.d.ts.map +1 -1
- package/out/controller/control/form/form-detail/form-group-panel/form-group-panel.controller.js +2 -2
- package/out/controller/control/form/form-detail/form-mdctrl/form-mdctrl-content-type.controller.js +4 -2
- package/out/controller/control/form/form-detail/form-mdctrl/form-mdctrl.controller.d.ts +20 -0
- package/out/controller/control/form/form-detail/form-mdctrl/form-mdctrl.controller.d.ts.map +1 -1
- package/out/controller/control/form/form-detail/form-mdctrl/form-mdctrl.controller.js +57 -1
- package/out/controller/control/form/form-detail/form-mdctrl/form-mdctrl.state.d.ts +1 -1
- package/out/controller/control/form/form-detail/form-mdctrl/form-mdctrl.state.d.ts.map +1 -1
- package/out/controller/control/grid/grid/grid.controller.d.ts.map +1 -1
- package/out/controller/control/grid/grid/grid.controller.js +19 -32
- package/out/controller/control/map/map.controller.d.ts +6 -0
- package/out/controller/control/map/map.controller.d.ts.map +1 -1
- package/out/controller/control/map/map.controller.js +37 -3
- package/out/controller/control/panel/panel/panel-item.controller.d.ts +1 -0
- package/out/controller/control/panel/panel/panel-item.controller.d.ts.map +1 -1
- package/out/controller/control/panel/panel/panel-item.controller.js +1 -0
- package/out/controller/control/panel/panel/panel.controller.d.ts +3 -1
- package/out/controller/control/panel/panel/panel.controller.d.ts.map +1 -1
- package/out/controller/control/panel/panel/panel.controller.js +23 -21
- package/out/controller/utils/data-file-util/data-file-util.d.ts +45 -0
- package/out/controller/utils/data-file-util/data-file-util.d.ts.map +1 -0
- package/out/controller/utils/data-file-util/data-file-util.js +121 -0
- package/out/controller/utils/index.d.ts +1 -0
- package/out/controller/utils/index.d.ts.map +1 -1
- package/out/controller/utils/index.js +1 -0
- package/out/global/global-util/global-util.d.ts +2 -2
- package/out/global/global-util/global-util.d.ts.map +1 -1
- package/out/interface/controller/controller/control/panel-item/i-panel-data-container.controller.d.ts +1 -1
- package/out/interface/controller/controller/control/panel-item/i-panel-data-container.controller.d.ts.map +1 -1
- package/out/interface/controller/controller/control/panel-item/i-panel-item.controller.d.ts +6 -0
- package/out/interface/controller/controller/control/panel-item/i-panel-item.controller.d.ts.map +1 -1
- package/out/interface/controller/state/control/i-map.state.d.ts +25 -4
- package/out/interface/controller/state/control/i-map.state.d.ts.map +1 -1
- package/out/interface/index.d.ts +2 -1
- package/out/interface/index.d.ts.map +1 -1
- package/out/interface/index.js +2 -1
- package/out/interface/provider/i-ui-login-node.provider.d.ts +23 -0
- package/out/interface/provider/i-ui-login-node.provider.d.ts.map +1 -0
- package/out/interface/provider/index.d.ts +1 -0
- package/out/interface/provider/index.d.ts.map +1 -1
- package/out/interface/ui-login/i-ui-logic-context.d.ts +85 -0
- package/out/interface/ui-login/i-ui-logic-context.d.ts.map +1 -0
- package/out/interface/ui-login/i-ui-logic-context.js +1 -0
- package/out/interface/ui-login/index.d.ts +2 -0
- package/out/interface/ui-login/index.d.ts.map +1 -0
- package/out/interface/ui-login/index.js +1 -0
- package/out/interface/util/{i-export-excel/i-export-excel.d.ts → i-excel-util/i-excel-util.d.ts} +4 -4
- package/out/interface/util/i-excel-util/i-excel-util.d.ts.map +1 -0
- package/out/interface/util/i-excel-util/i-excel-util.js +1 -0
- package/out/interface/util/index.d.ts +1 -1
- package/out/interface/util/index.d.ts.map +1 -1
- package/out/logic-scheduler/executor/app-ui-logic-executor.d.ts +6 -9
- package/out/logic-scheduler/executor/app-ui-logic-executor.d.ts.map +1 -1
- package/out/logic-scheduler/executor/app-ui-logic-executor.js +14 -16
- package/out/model/data-entity/data-entity.d.ts +0 -11
- package/out/model/data-entity/data-entity.d.ts.map +1 -1
- package/out/model/data-entity/data-entity.js +0 -14
- package/out/model/panel/index.d.ts +1 -0
- package/out/model/panel/index.d.ts.map +1 -1
- package/out/model/panel/index.js +1 -0
- package/out/model/panel/panel-field.d.ts +11 -0
- package/out/model/panel/panel-field.d.ts.map +1 -0
- package/out/model/panel/panel-field.js +35 -0
- package/out/model/utils/util.d.ts +12 -1
- package/out/model/utils/util.d.ts.map +1 -1
- package/out/model/utils/util.js +18 -0
- package/out/register/helper/common-register.js +1 -1
- package/out/register/helper/index.d.ts +3 -2
- package/out/register/helper/index.d.ts.map +1 -1
- package/out/register/helper/index.js +3 -2
- package/out/register/helper/ui-logic-node-register.d.ts +25 -0
- package/out/register/helper/ui-logic-node-register.d.ts.map +1 -0
- package/out/register/helper/ui-logic-node-register.js +37 -0
- package/out/service/service/entity/method/de-action.d.ts.map +1 -1
- package/out/service/service/entity/method/de-action.js +3 -0
- package/out/service/service/entity/method/fetch.d.ts.map +1 -1
- package/out/service/service/entity/method/fetch.js +1 -1
- package/out/service/vo/index.d.ts +1 -0
- package/out/service/vo/index.d.ts.map +1 -1
- package/out/service/vo/index.js +1 -0
- package/out/service/vo/map-data/map-data.d.ts +1 -1
- package/out/service/vo/map-data/map-data.d.ts.map +1 -1
- package/out/service/vo/map-data/map-data.js +4 -3
- package/out/service/vo/panel-data/index.d.ts +2 -0
- package/out/service/vo/panel-data/index.d.ts.map +1 -0
- package/out/service/vo/panel-data/index.js +1 -0
- package/out/service/vo/panel-data/panel-data.d.ts +26 -0
- package/out/service/vo/panel-data/panel-data.d.ts.map +1 -0
- package/out/service/vo/panel-data/panel-data.js +90 -0
- package/out/service/vo/tree-node-data/tree-data-set-node-data.d.ts.map +1 -1
- package/out/service/vo/tree-node-data/tree-data-set-node-data.js +6 -2
- package/out/ui-logic/ui-logic-context.d.ts +7 -2
- package/out/ui-logic/ui-logic-context.d.ts.map +1 -1
- package/out/ui-logic/ui-logic-context.js +5 -0
- package/out/ui-logic/ui-logic-node/index.d.ts +1 -0
- package/out/ui-logic/ui-logic-node/index.d.ts.map +1 -1
- package/out/ui-logic/ui-logic-node/index.js +1 -0
- package/out/ui-logic/ui-logic-node/pf-plugin-node/pf-plugin-node.d.ts +17 -0
- package/out/ui-logic/ui-logic-node/pf-plugin-node/pf-plugin-node.d.ts.map +1 -0
- package/out/ui-logic/ui-logic-node/pf-plugin-node/pf-plugin-node.js +19 -0
- package/out/ui-logic/ui-logic.d.ts.map +1 -1
- package/out/ui-logic/ui-logic.js +3 -1
- package/package.json +2 -2
- package/src/controller/common/control/md-control.controller.ts +22 -22
- package/src/controller/control/form/form-detail/form-detail/form-detail.controller.ts +35 -25
- package/src/controller/control/form/form-detail/form-group-panel/form-group-panel.controller.ts +2 -2
- package/src/controller/control/form/form-detail/form-mdctrl/form-mdctrl-content-type.controller.ts +2 -2
- package/src/controller/control/form/form-detail/form-mdctrl/form-mdctrl.controller.ts +66 -1
- package/src/controller/control/form/form-detail/form-mdctrl/form-mdctrl.state.ts +1 -1
- package/src/controller/control/grid/grid/grid.controller.ts +20 -32
- package/src/controller/control/map/map.controller.ts +40 -3
- package/src/controller/control/panel/panel/panel-item.controller.ts +2 -0
- package/src/controller/control/panel/panel/panel.controller.ts +23 -22
- package/src/controller/utils/data-file-util/data-file-util.ts +156 -0
- package/src/controller/utils/index.ts +1 -0
- package/src/global/global-util/global-util.ts +2 -2
- package/src/interface/controller/controller/control/panel-item/i-panel-data-container.controller.ts +1 -1
- package/src/interface/controller/controller/control/panel-item/i-panel-item.controller.ts +7 -0
- package/src/interface/controller/state/control/i-map.state.ts +28 -4
- package/src/interface/index.ts +2 -1
- package/src/interface/provider/i-ui-login-node.provider.ts +23 -0
- package/src/interface/provider/index.ts +1 -0
- package/src/interface/ui-login/i-ui-logic-context.ts +95 -0
- package/src/interface/ui-login/index.ts +1 -0
- package/src/interface/util/{i-export-excel/i-export-excel.ts → i-excel-util/i-excel-util.ts} +3 -3
- package/src/interface/util/index.ts +1 -1
- package/src/logic-scheduler/executor/app-ui-logic-executor.ts +17 -16
- package/src/model/data-entity/data-entity.ts +0 -17
- package/src/model/panel/index.ts +1 -0
- package/src/model/panel/panel-field.ts +49 -0
- package/src/model/utils/util.ts +20 -0
- package/src/register/helper/common-register.ts +1 -1
- package/src/register/helper/index.ts +3 -2
- package/src/register/helper/ui-logic-node-register.ts +52 -0
- package/src/service/service/entity/method/de-action.ts +4 -1
- package/src/service/service/entity/method/fetch.ts +7 -1
- package/src/service/vo/index.ts +1 -0
- package/src/service/vo/map-data/map-data.ts +6 -4
- package/src/service/vo/panel-data/index.ts +1 -0
- package/src/service/vo/panel-data/panel-data.ts +112 -0
- package/src/service/vo/tree-node-data/tree-data-set-node-data.ts +6 -2
- package/src/ui-logic/ui-logic-context.ts +7 -2
- package/src/ui-logic/ui-logic-node/index.ts +1 -0
- package/src/ui-logic/ui-logic-node/pf-plugin-node/pf-plugin-node.ts +24 -0
- package/src/ui-logic/ui-logic.ts +3 -0
- package/out/interface/util/i-export-excel/i-export-excel.d.ts.map +0 -1
- /package/out/interface/{util/i-export-excel/i-export-excel.js → provider/i-ui-login-node.provider.js} +0 -0
package/dist/index.esm.js
CHANGED
|
@@ -18027,7 +18027,7 @@ var RegisterCenter = class {
|
|
|
18027
18027
|
};
|
|
18028
18028
|
|
|
18029
18029
|
// src/command/app/app-func/app-func.ts
|
|
18030
|
-
import { ModelError as ModelError15, RuntimeError as
|
|
18030
|
+
import { ModelError as ModelError15, RuntimeError as RuntimeError19 } from "@ibiz-template/core";
|
|
18031
18031
|
|
|
18032
18032
|
// src/utils/handlebars/utils/helper/helper.ts
|
|
18033
18033
|
var HelperUtil = class {
|
|
@@ -18632,6 +18632,14 @@ function parseUserParams(userParams) {
|
|
|
18632
18632
|
}
|
|
18633
18633
|
return { navigateContexts, navigateParams, other };
|
|
18634
18634
|
}
|
|
18635
|
+
function getPFPlugin(app, id) {
|
|
18636
|
+
var _a;
|
|
18637
|
+
const plugin = (_a = app.appPFPluginRefs) == null ? void 0 : _a.find((item) => item.id === id);
|
|
18638
|
+
if (!plugin) {
|
|
18639
|
+
throw new Error("\u672A\u627E\u5230\u63D2\u4EF6".concat(id));
|
|
18640
|
+
}
|
|
18641
|
+
return plugin;
|
|
18642
|
+
}
|
|
18635
18643
|
|
|
18636
18644
|
// src/model/layout/layout.ts
|
|
18637
18645
|
import { isArray as isArray2, isObject, isString } from "lodash-es";
|
|
@@ -18802,10 +18810,6 @@ async function getDeACMode(appDEACModeId, entityId, srfappid) {
|
|
|
18802
18810
|
});
|
|
18803
18811
|
return deACMode;
|
|
18804
18812
|
}
|
|
18805
|
-
async function getFormTypeFieldName(entityId) {
|
|
18806
|
-
const appDataEntity = await ibiz.hub.getAppDataEntity(entityId);
|
|
18807
|
-
return appDataEntity.formTypeAppDEFieldId;
|
|
18808
|
-
}
|
|
18809
18813
|
function findDELogic(appDELogicId, entity) {
|
|
18810
18814
|
var _a;
|
|
18811
18815
|
return (_a = entity.appDELogics) == null ? void 0 : _a.find((item) => item.id === appDELogicId);
|
|
@@ -18922,6 +18926,31 @@ function isDataContainer(panelItem) {
|
|
|
18922
18926
|
);
|
|
18923
18927
|
}
|
|
18924
18928
|
|
|
18929
|
+
// src/model/panel/panel-field.ts
|
|
18930
|
+
var ChildKeys = ["panelItems", "panelTabPages", "rootPanelItems"];
|
|
18931
|
+
function _getAllPanelField(model) {
|
|
18932
|
+
let childItems = [];
|
|
18933
|
+
for (const key of ChildKeys) {
|
|
18934
|
+
if (model[key]) {
|
|
18935
|
+
childItems = model[key];
|
|
18936
|
+
break;
|
|
18937
|
+
}
|
|
18938
|
+
}
|
|
18939
|
+
const fields = [];
|
|
18940
|
+
if (childItems.length) {
|
|
18941
|
+
fields.push(...childItems.filter((item) => item.itemType === "FIELD"));
|
|
18942
|
+
childItems.forEach((item) => {
|
|
18943
|
+
if (!isDataContainer(item)) {
|
|
18944
|
+
fields.push(..._getAllPanelField(item));
|
|
18945
|
+
}
|
|
18946
|
+
});
|
|
18947
|
+
}
|
|
18948
|
+
return fields;
|
|
18949
|
+
}
|
|
18950
|
+
function getAllPanelField(model) {
|
|
18951
|
+
return _getAllPanelField(model);
|
|
18952
|
+
}
|
|
18953
|
+
|
|
18925
18954
|
// src/utils/open-redirect-view/open-redirect-view.ts
|
|
18926
18955
|
async function openRedirectView(appView, context, params = {}, opts = {}) {
|
|
18927
18956
|
return openDERedirectView(
|
|
@@ -20502,7 +20531,7 @@ async function handleAllSettled(values, isThrow = true) {
|
|
|
20502
20531
|
}
|
|
20503
20532
|
|
|
20504
20533
|
// src/command/app/open-app-view/open-app-view.ts
|
|
20505
|
-
import { ModelError as ModelError14, RuntimeError as
|
|
20534
|
+
import { ModelError as ModelError14, RuntimeError as RuntimeError18 } from "@ibiz-template/core";
|
|
20506
20535
|
import { clone as clone13 } from "ramda";
|
|
20507
20536
|
|
|
20508
20537
|
// src/service/utils/de-dq-cond/ps-de-dq-cond-engine.ts
|
|
@@ -20880,6 +20909,9 @@ _PSDEDQCondEngine.PARAMTYPE_DATACONTEXT = "DATACONTEXT";
|
|
|
20880
20909
|
_PSDEDQCondEngine.PARAMTYPE_WEBCONTEXT = "WEBCONTEXT";
|
|
20881
20910
|
var PSDEDQCondEngine = _PSDEDQCondEngine;
|
|
20882
20911
|
|
|
20912
|
+
// src/register/helper/app-counter-register.ts
|
|
20913
|
+
import { RuntimeError as RuntimeError5 } from "@ibiz-template/core";
|
|
20914
|
+
|
|
20883
20915
|
// src/register/helper/common-register.ts
|
|
20884
20916
|
async function getPluginRegisterKey(pluginId, appId) {
|
|
20885
20917
|
var _a;
|
|
@@ -20888,19 +20920,59 @@ async function getPluginRegisterKey(pluginId, appId) {
|
|
|
20888
20920
|
(item) => item.pluginCode.toLowerCase() === pluginId
|
|
20889
20921
|
);
|
|
20890
20922
|
if (!plugin) {
|
|
20891
|
-
ibiz.log.error("\
|
|
20923
|
+
ibiz.log.error("\u672A\u5339\u914D\u5230\u63D2\u4EF6[".concat(pluginId, "]\u6A21\u578B"));
|
|
20892
20924
|
return;
|
|
20893
20925
|
}
|
|
20894
20926
|
await ibiz.plugin.loadPlugin(plugin);
|
|
20895
20927
|
return "".concat(plugin.pluginType, "_").concat(plugin.pluginCode);
|
|
20896
20928
|
}
|
|
20897
20929
|
|
|
20930
|
+
// src/register/helper/app-counter-register.ts
|
|
20931
|
+
var APP_COUNTER_PROVIDER_PREFIX = "APPCOUNTER";
|
|
20932
|
+
function registerAppCounterProvider(key, callback) {
|
|
20933
|
+
ibiz.register.register("".concat(APP_COUNTER_PROVIDER_PREFIX, "_").concat(key), callback);
|
|
20934
|
+
}
|
|
20935
|
+
function getProvider(key) {
|
|
20936
|
+
return ibiz.register.get(
|
|
20937
|
+
"".concat(APP_COUNTER_PROVIDER_PREFIX, "_").concat(key)
|
|
20938
|
+
);
|
|
20939
|
+
}
|
|
20940
|
+
async function getAppCounterProvider(model) {
|
|
20941
|
+
let provider;
|
|
20942
|
+
const { codeName, counterType, sysPFPluginId, appId } = model;
|
|
20943
|
+
if (sysPFPluginId) {
|
|
20944
|
+
const pluginKey = await getPluginRegisterKey(sysPFPluginId, appId);
|
|
20945
|
+
if (pluginKey) {
|
|
20946
|
+
provider = getProvider(pluginKey);
|
|
20947
|
+
}
|
|
20948
|
+
if (!provider) {
|
|
20949
|
+
ibiz.log.error("\u627E\u4E0D\u5230\u7CFB\u7EDF\u8BA1\u6570\u5668\u63D2\u4EF6".concat(pluginKey, "\u5BF9\u5E94\u7684\u9002\u914D\u5668"));
|
|
20950
|
+
} else {
|
|
20951
|
+
return provider;
|
|
20952
|
+
}
|
|
20953
|
+
}
|
|
20954
|
+
if (counterType === "CUSTOM") {
|
|
20955
|
+
provider = getProvider(codeName);
|
|
20956
|
+
if (!provider) {
|
|
20957
|
+
throw new RuntimeError5("\u627E\u4E0D\u5230\u81EA\u5B9A\u4E49\u7CFB\u7EDF\u8BA1\u6570\u5668".concat(codeName, "\u5BF9\u5E94\u7684\u9002\u914D\u5668"));
|
|
20958
|
+
} else {
|
|
20959
|
+
return provider;
|
|
20960
|
+
}
|
|
20961
|
+
}
|
|
20962
|
+
provider = getProvider(counterType);
|
|
20963
|
+
if (!provider) {
|
|
20964
|
+
throw new RuntimeError5("\u627E\u4E0D\u7CFB\u7EDF\u8BA1\u6570\u5668\u7C7B\u578B".concat(counterType, "\u5BF9\u5E94\u7684\u9002\u914D\u5668"));
|
|
20965
|
+
} else {
|
|
20966
|
+
return provider;
|
|
20967
|
+
}
|
|
20968
|
+
}
|
|
20969
|
+
|
|
20898
20970
|
// src/register/helper/control-register.ts
|
|
20899
20971
|
var CONTROL_PROVIDER_PREFIX = "CONTROL";
|
|
20900
20972
|
function registerControlProvider(key, callback) {
|
|
20901
20973
|
ibiz.register.register("".concat(CONTROL_PROVIDER_PREFIX, "_").concat(key), callback);
|
|
20902
20974
|
}
|
|
20903
|
-
function
|
|
20975
|
+
function getProvider2(key) {
|
|
20904
20976
|
return ibiz.register.get(
|
|
20905
20977
|
"".concat(CONTROL_PROVIDER_PREFIX, "_").concat(key)
|
|
20906
20978
|
);
|
|
@@ -20911,7 +20983,7 @@ async function getControlProvider(model) {
|
|
|
20911
20983
|
if (sysPFPluginId) {
|
|
20912
20984
|
const pluginKey = await getPluginRegisterKey(sysPFPluginId, appId);
|
|
20913
20985
|
if (pluginKey) {
|
|
20914
|
-
provider =
|
|
20986
|
+
provider = getProvider2(pluginKey);
|
|
20915
20987
|
}
|
|
20916
20988
|
if (!provider) {
|
|
20917
20989
|
ibiz.log.error("\u627E\u4E0D\u5230\u90E8\u4EF6\u63D2\u4EF6".concat(pluginKey, "\u5BF9\u5E94\u7684\u9002\u914D\u5668"));
|
|
@@ -20921,7 +20993,7 @@ async function getControlProvider(model) {
|
|
|
20921
20993
|
}
|
|
20922
20994
|
if (controlStyle && controlStyle !== "DEFAULT") {
|
|
20923
20995
|
const key = "".concat(controlType, "_").concat(controlStyle);
|
|
20924
|
-
provider =
|
|
20996
|
+
provider = getProvider2(key);
|
|
20925
20997
|
if (!provider) {
|
|
20926
20998
|
ibiz.log.error(
|
|
20927
20999
|
"\u627E\u4E0D\u5230\u90E8\u4EF6\u7C7B\u578B\uFF1A[".concat(controlType, "]\u7684\u90E8\u4EF6\u6837\u5F0F\uFF1A[").concat(controlStyle, "]\u5BF9\u5E94\u7684\u9002\u914D\u5668"),
|
|
@@ -20931,7 +21003,7 @@ async function getControlProvider(model) {
|
|
|
20931
21003
|
return provider;
|
|
20932
21004
|
}
|
|
20933
21005
|
}
|
|
20934
|
-
provider =
|
|
21006
|
+
provider = getProvider2(controlType);
|
|
20935
21007
|
if (!provider) {
|
|
20936
21008
|
switch (controlType) {
|
|
20937
21009
|
case "DATAINFOBAR":
|
|
@@ -20949,7 +21021,7 @@ var EDITOR_PROVIDER_PREFIX = "EDITOR";
|
|
|
20949
21021
|
function registerEditorProvider(key, callback) {
|
|
20950
21022
|
ibiz.register.register("".concat(EDITOR_PROVIDER_PREFIX, "_").concat(key), callback);
|
|
20951
21023
|
}
|
|
20952
|
-
function
|
|
21024
|
+
function getProvider3(key) {
|
|
20953
21025
|
return ibiz.register.get(
|
|
20954
21026
|
"".concat(EDITOR_PROVIDER_PREFIX, "_").concat(key)
|
|
20955
21027
|
);
|
|
@@ -20960,7 +21032,7 @@ async function getEditorProvider(model) {
|
|
|
20960
21032
|
if (sysPFPluginId) {
|
|
20961
21033
|
const pluginKey = await getPluginRegisterKey(sysPFPluginId, appId);
|
|
20962
21034
|
if (pluginKey) {
|
|
20963
|
-
provider =
|
|
21035
|
+
provider = getProvider3(pluginKey);
|
|
20964
21036
|
}
|
|
20965
21037
|
if (!provider) {
|
|
20966
21038
|
ibiz.log.error("\u627E\u4E0D\u5230\u7F16\u8F91\u5668\u63D2\u4EF6".concat(pluginKey, "\u5BF9\u5E94\u7684\u9002\u914D\u5668"));
|
|
@@ -20970,7 +21042,7 @@ async function getEditorProvider(model) {
|
|
|
20970
21042
|
}
|
|
20971
21043
|
if (editorStyle && editorStyle !== "DEFAULT") {
|
|
20972
21044
|
const key = "".concat(editorType, "_").concat(editorStyle);
|
|
20973
|
-
provider =
|
|
21045
|
+
provider = getProvider3(key);
|
|
20974
21046
|
if (!provider) {
|
|
20975
21047
|
ibiz.log.error(
|
|
20976
21048
|
"\u627E\u4E0D\u5230\u7F16\u8F91\u5668\u7C7B\u578B\uFF1A[".concat(editorType, "]\u7684\u7F16\u8F91\u5668\u6837\u5F0F\uFF1A[").concat(editorStyle, "]\u5BF9\u5E94\u7684\u9002\u914D\u5668"),
|
|
@@ -20985,7 +21057,7 @@ async function getEditorProvider(model) {
|
|
|
20985
21057
|
if (editorStyle && editorStyle !== "DEFAULT") {
|
|
20986
21058
|
key += "_".concat(editorStyle);
|
|
20987
21059
|
}
|
|
20988
|
-
provider =
|
|
21060
|
+
provider = getProvider3(key);
|
|
20989
21061
|
if (!provider) {
|
|
20990
21062
|
ibiz.log.error(
|
|
20991
21063
|
"\u627E\u4E0D\u5230\u7F16\u8F91\u5668\u7C7B\u578B\uFF1A[".concat(editorType, "]\u7684\u9884\u7F6E\u7C7B\u578B\uFF1A[").concat(predefinedType, "]\u5BF9\u5E94\u7684\u9002\u914D\u5668"),
|
|
@@ -20995,7 +21067,7 @@ async function getEditorProvider(model) {
|
|
|
20995
21067
|
return provider;
|
|
20996
21068
|
}
|
|
20997
21069
|
}
|
|
20998
|
-
provider =
|
|
21070
|
+
provider = getProvider3(editorType);
|
|
20999
21071
|
if (!provider) {
|
|
21000
21072
|
ibiz.log.error("\u627E\u4E0D\u5230\u7F16\u8F91\u5668\u7C7B\u578B".concat(editorType, "\u5BF9\u5E94\u7684\u9002\u914D\u5668"));
|
|
21001
21073
|
} else {
|
|
@@ -21008,7 +21080,7 @@ var FORMDETAIL_PROVIDER_PREFIX = "FORMDETAIL";
|
|
|
21008
21080
|
function registerFormDetailProvider(key, callback) {
|
|
21009
21081
|
ibiz.register.register("".concat(FORMDETAIL_PROVIDER_PREFIX, "_").concat(key), callback);
|
|
21010
21082
|
}
|
|
21011
|
-
function
|
|
21083
|
+
function getProvider4(key) {
|
|
21012
21084
|
return ibiz.register.get(
|
|
21013
21085
|
"".concat(FORMDETAIL_PROVIDER_PREFIX, "_").concat(key)
|
|
21014
21086
|
);
|
|
@@ -21019,7 +21091,7 @@ async function getFormDetailProvider(model) {
|
|
|
21019
21091
|
if (sysPFPluginId) {
|
|
21020
21092
|
const pluginKey = await getPluginRegisterKey(sysPFPluginId, appId);
|
|
21021
21093
|
if (pluginKey) {
|
|
21022
|
-
provider =
|
|
21094
|
+
provider = getProvider4(pluginKey);
|
|
21023
21095
|
}
|
|
21024
21096
|
if (!provider) {
|
|
21025
21097
|
ibiz.log.error("\u627E\u4E0D\u5230\u8868\u5355\u6210\u5458\u63D2\u4EF6".concat(pluginKey, "\u5BF9\u5E94\u7684\u9002\u914D\u5668"));
|
|
@@ -21027,7 +21099,7 @@ async function getFormDetailProvider(model) {
|
|
|
21027
21099
|
return provider;
|
|
21028
21100
|
}
|
|
21029
21101
|
}
|
|
21030
|
-
provider =
|
|
21102
|
+
provider = getProvider4(detailType);
|
|
21031
21103
|
if (!provider) {
|
|
21032
21104
|
ibiz.log.error("\u627E\u4E0D\u5230\u8868\u5355\u6210\u5458\u7C7B\u578B".concat(detailType, "\u5BF9\u5E94\u7684\u9002\u914D\u5668"));
|
|
21033
21105
|
} else {
|
|
@@ -21040,7 +21112,7 @@ var GRIDCOLUMN_PROVIDER_PREFIX = "GRIDCOLUMN";
|
|
|
21040
21112
|
function registerGridColumnProvider(key, callback) {
|
|
21041
21113
|
ibiz.register.register("".concat(GRIDCOLUMN_PROVIDER_PREFIX, "_").concat(key), callback);
|
|
21042
21114
|
}
|
|
21043
|
-
function
|
|
21115
|
+
function getProvider5(key) {
|
|
21044
21116
|
return ibiz.register.get(
|
|
21045
21117
|
"".concat(GRIDCOLUMN_PROVIDER_PREFIX, "_").concat(key)
|
|
21046
21118
|
);
|
|
@@ -21051,7 +21123,7 @@ async function getGridColumnProvider(model) {
|
|
|
21051
21123
|
if (sysPFPluginId) {
|
|
21052
21124
|
const pluginKey = await getPluginRegisterKey(sysPFPluginId, appId);
|
|
21053
21125
|
if (pluginKey) {
|
|
21054
|
-
provider =
|
|
21126
|
+
provider = getProvider5(pluginKey);
|
|
21055
21127
|
}
|
|
21056
21128
|
if (!provider) {
|
|
21057
21129
|
ibiz.log.error("\u627E\u4E0D\u5230\u8868\u683C\u5217\u63D2\u4EF6".concat(pluginKey, "\u5BF9\u5E94\u7684\u9002\u914D\u5668"));
|
|
@@ -21060,7 +21132,7 @@ async function getGridColumnProvider(model) {
|
|
|
21060
21132
|
}
|
|
21061
21133
|
}
|
|
21062
21134
|
const key = enableRowEdit ? "".concat(columnType, "_EDIT") : columnType;
|
|
21063
|
-
provider =
|
|
21135
|
+
provider = getProvider5(key);
|
|
21064
21136
|
if (!provider) {
|
|
21065
21137
|
ibiz.log.error("\u627E\u4E0D\u5230\u8868\u683C\u5217\u7C7B\u578B".concat(key, "\u5BF9\u5E94\u7684\u9002\u914D\u5668"));
|
|
21066
21138
|
} else {
|
|
@@ -21076,7 +21148,7 @@ function registerPanelItemProvider(key, callback) {
|
|
|
21076
21148
|
callback
|
|
21077
21149
|
);
|
|
21078
21150
|
}
|
|
21079
|
-
function
|
|
21151
|
+
function getProvider6(key) {
|
|
21080
21152
|
return ibiz.register.get(
|
|
21081
21153
|
"".concat(PANELITEM_PROVIDER_PREFIX, "_").concat(key.toUpperCase())
|
|
21082
21154
|
);
|
|
@@ -21088,7 +21160,7 @@ async function getPanelItemProvider(model) {
|
|
|
21088
21160
|
if (sysPFPluginId) {
|
|
21089
21161
|
const pluginKey = await getPluginRegisterKey(sysPFPluginId, appId);
|
|
21090
21162
|
if (pluginKey) {
|
|
21091
|
-
provider =
|
|
21163
|
+
provider = getProvider6(pluginKey);
|
|
21092
21164
|
}
|
|
21093
21165
|
if (!provider) {
|
|
21094
21166
|
ibiz.log.error("\u627E\u4E0D\u5230\u9762\u677F\u6210\u5458\u63D2\u4EF6".concat(pluginKey, "\u5BF9\u5E94\u7684\u9002\u914D\u5668"));
|
|
@@ -21099,7 +21171,7 @@ async function getPanelItemProvider(model) {
|
|
|
21099
21171
|
if (itemType === "CONTAINER") {
|
|
21100
21172
|
const predefinedType = model.predefinedType || "DEFAULT";
|
|
21101
21173
|
const key = "CONTAINER_".concat(predefinedType);
|
|
21102
|
-
provider =
|
|
21174
|
+
provider = getProvider6(key);
|
|
21103
21175
|
if (!provider) {
|
|
21104
21176
|
ibiz.log.error("\u627E\u4E0D\u5230\u9762\u677F\u5BB9\u5668\u9884\u7F6E\u7C7B\u578B\u4E3A".concat(predefinedType, "\u7684\u9002\u914D\u5668"));
|
|
21105
21177
|
} else {
|
|
@@ -21109,7 +21181,7 @@ async function getPanelItemProvider(model) {
|
|
|
21109
21181
|
if (itemType === "RAWITEM") {
|
|
21110
21182
|
const predefinedType = ((_a = model.rawItem) == null ? void 0 : _a.predefinedType) || "DEFAULT";
|
|
21111
21183
|
const key = "RAWITEM_".concat(predefinedType);
|
|
21112
|
-
provider =
|
|
21184
|
+
provider = getProvider6(key);
|
|
21113
21185
|
if (!provider) {
|
|
21114
21186
|
ibiz.log.error(
|
|
21115
21187
|
"\u627E\u4E0D\u5230\u9762\u677F\u6210\u5458\u76F4\u63A5\u5185\u5BB9\u9884\u7F6E\u7C7B\u578B\u4E3A".concat(predefinedType, "\u7684\u9002\u914D\u5668")
|
|
@@ -21118,7 +21190,7 @@ async function getPanelItemProvider(model) {
|
|
|
21118
21190
|
return provider;
|
|
21119
21191
|
}
|
|
21120
21192
|
}
|
|
21121
|
-
provider =
|
|
21193
|
+
provider = getProvider6(itemType);
|
|
21122
21194
|
if (!provider) {
|
|
21123
21195
|
ibiz.log.error("\u627E\u4E0D\u5230\u9762\u677F\u6210\u5458\u7C7B\u578B".concat(itemType, "\u5BF9\u5E94\u7684\u9002\u914D\u5668"));
|
|
21124
21196
|
} else {
|
|
@@ -21126,157 +21198,139 @@ async function getPanelItemProvider(model) {
|
|
|
21126
21198
|
}
|
|
21127
21199
|
}
|
|
21128
21200
|
|
|
21129
|
-
// src/register/helper/
|
|
21130
|
-
|
|
21131
|
-
|
|
21132
|
-
|
|
21133
|
-
ibiz.register.register("".concat(UIACTION_PROVIDER_PREFIX, "_").concat(key), callback);
|
|
21201
|
+
// src/register/helper/portlet-register.ts
|
|
21202
|
+
var PORTLET_PROVIDER_PREFIX = "PORTLET";
|
|
21203
|
+
function registerPortletProvider(key, callback) {
|
|
21204
|
+
ibiz.register.register("".concat(PORTLET_PROVIDER_PREFIX, "_").concat(key), callback);
|
|
21134
21205
|
}
|
|
21135
|
-
function
|
|
21206
|
+
function getProvider7(key) {
|
|
21136
21207
|
return ibiz.register.get(
|
|
21137
|
-
"".concat(
|
|
21208
|
+
"".concat(PORTLET_PROVIDER_PREFIX, "_").concat(key)
|
|
21138
21209
|
);
|
|
21139
21210
|
}
|
|
21140
|
-
async function
|
|
21211
|
+
async function getPortletProvider(model) {
|
|
21141
21212
|
let provider;
|
|
21142
|
-
const {
|
|
21213
|
+
const { portletType, sysPFPluginId, appId } = model;
|
|
21143
21214
|
if (sysPFPluginId) {
|
|
21144
21215
|
const pluginKey = await getPluginRegisterKey(sysPFPluginId, appId);
|
|
21145
21216
|
if (pluginKey) {
|
|
21146
|
-
provider =
|
|
21217
|
+
provider = getProvider7(pluginKey);
|
|
21147
21218
|
}
|
|
21148
21219
|
if (!provider) {
|
|
21149
|
-
ibiz.log.error("\u627E\u4E0D\u5230\
|
|
21220
|
+
ibiz.log.error("\u627E\u4E0D\u5230\u95E8\u6237\u90E8\u4EF6\u63D2\u4EF6".concat(pluginKey, "\u5BF9\u5E94\u7684\u9002\u914D\u5668"));
|
|
21150
21221
|
} else {
|
|
21151
21222
|
return provider;
|
|
21152
21223
|
}
|
|
21153
21224
|
}
|
|
21154
|
-
provider =
|
|
21225
|
+
provider = getProvider7(portletType);
|
|
21155
21226
|
if (!provider) {
|
|
21156
|
-
|
|
21227
|
+
ibiz.log.error("\u627E\u4E0D\u5230\u95E8\u6237\u90E8\u4EF6\u6210\u5458\u7C7B\u578B".concat(portletType, "\u5BF9\u5E94\u7684\u9002\u914D\u5668"));
|
|
21157
21228
|
} else {
|
|
21158
21229
|
return provider;
|
|
21159
21230
|
}
|
|
21160
21231
|
}
|
|
21161
21232
|
|
|
21162
|
-
// src/register/helper/
|
|
21163
|
-
|
|
21164
|
-
|
|
21165
|
-
|
|
21233
|
+
// src/register/helper/ui-action-register.ts
|
|
21234
|
+
import { RuntimeError as RuntimeError6 } from "@ibiz-template/core";
|
|
21235
|
+
var UIACTION_PROVIDER_PREFIX = "UIACTION";
|
|
21236
|
+
function registerUIActionProvider(key, callback) {
|
|
21237
|
+
ibiz.register.register("".concat(UIACTION_PROVIDER_PREFIX, "_").concat(key), callback);
|
|
21166
21238
|
}
|
|
21167
|
-
function
|
|
21168
|
-
return ibiz.register.get(
|
|
21239
|
+
function getProvider8(key) {
|
|
21240
|
+
return ibiz.register.get(
|
|
21241
|
+
"".concat(UIACTION_PROVIDER_PREFIX, "_").concat(key)
|
|
21242
|
+
);
|
|
21169
21243
|
}
|
|
21170
|
-
async function
|
|
21244
|
+
async function getUIActionProvider(model) {
|
|
21171
21245
|
let provider;
|
|
21172
|
-
const {
|
|
21246
|
+
const { uiactionMode, sysPFPluginId, appId } = model;
|
|
21173
21247
|
if (sysPFPluginId) {
|
|
21174
21248
|
const pluginKey = await getPluginRegisterKey(sysPFPluginId, appId);
|
|
21175
21249
|
if (pluginKey) {
|
|
21176
|
-
provider =
|
|
21177
|
-
}
|
|
21178
|
-
if (!provider) {
|
|
21179
|
-
ibiz.log.error("\u627E\u4E0D\u5230\u89C6\u56FE\u63D2\u4EF6".concat(pluginKey, "\u5BF9\u5E94\u7684\u9002\u914D\u5668"));
|
|
21180
|
-
} else {
|
|
21181
|
-
return provider;
|
|
21250
|
+
provider = getProvider8(pluginKey);
|
|
21182
21251
|
}
|
|
21183
|
-
}
|
|
21184
|
-
if (viewStyle && viewStyle !== "DEFAULT") {
|
|
21185
|
-
const key = "".concat(viewType, "_").concat(viewStyle);
|
|
21186
|
-
provider = getProvider7(key);
|
|
21187
21252
|
if (!provider) {
|
|
21188
|
-
ibiz.log.error(
|
|
21189
|
-
"\u627E\u4E0D\u5230\u89C6\u56FE\u7C7B\u578B\uFF1A[".concat(viewType, "]\u7684\u89C6\u56FE\u6837\u5F0F\uFF1A[").concat(viewStyle, "]\u5BF9\u5E94\u7684\u9002\u914D\u5668"),
|
|
21190
|
-
model
|
|
21191
|
-
);
|
|
21253
|
+
ibiz.log.error("\u627E\u4E0D\u5230\u754C\u9762\u884C\u4E3A\u63D2\u4EF6".concat(pluginKey, "\u5BF9\u5E94\u7684\u9002\u914D\u5668"));
|
|
21192
21254
|
} else {
|
|
21193
21255
|
return provider;
|
|
21194
21256
|
}
|
|
21195
21257
|
}
|
|
21258
|
+
provider = getProvider8(uiactionMode);
|
|
21196
21259
|
if (!provider) {
|
|
21197
|
-
|
|
21198
|
-
}
|
|
21199
|
-
|
|
21200
|
-
provider = getProvider7("DEFAULT");
|
|
21260
|
+
throw new RuntimeError6("\u627E\u4E0D\u754C\u9762\u884C\u4E3A\u6A21\u5F0F".concat(uiactionMode, "\u5BF9\u5E94\u7684\u9002\u914D\u5668"));
|
|
21261
|
+
} else {
|
|
21262
|
+
return provider;
|
|
21201
21263
|
}
|
|
21202
|
-
return provider;
|
|
21203
21264
|
}
|
|
21204
21265
|
|
|
21205
|
-
// src/register/helper/
|
|
21206
|
-
|
|
21207
|
-
|
|
21208
|
-
|
|
21209
|
-
|
|
21210
|
-
function getProvider8(key) {
|
|
21211
|
-
return ibiz.register.get(
|
|
21212
|
-
"".concat(PORTLET_PROVIDER_PREFIX, "_").concat(key)
|
|
21213
|
-
);
|
|
21266
|
+
// src/register/helper/ui-logic-node-register.ts
|
|
21267
|
+
import { RuntimeError as RuntimeError7 } from "@ibiz-template/core";
|
|
21268
|
+
var UILOGINNODE_PROVIDER_PREFIX = "UI_LOGIN_NODE";
|
|
21269
|
+
function registerUILogicNodeProvider(key, callback) {
|
|
21270
|
+
ibiz.register.register("".concat(UILOGINNODE_PROVIDER_PREFIX, "_").concat(key), callback);
|
|
21214
21271
|
}
|
|
21215
|
-
async function
|
|
21272
|
+
async function getUILogicNodeProvider(model) {
|
|
21216
21273
|
let provider;
|
|
21217
|
-
const {
|
|
21218
|
-
|
|
21219
|
-
|
|
21220
|
-
|
|
21221
|
-
|
|
21222
|
-
|
|
21223
|
-
if (
|
|
21224
|
-
ibiz.log.error("\u627E\u4E0D\u5230\u95E8\u6237\u90E8\u4EF6\u63D2\u4EF6".concat(pluginKey, "\u5BF9\u5E94\u7684\u9002\u914D\u5668"));
|
|
21225
|
-
} else {
|
|
21274
|
+
const { sysPFPluginId, appId } = model;
|
|
21275
|
+
const pluginKey = await getPluginRegisterKey(sysPFPluginId, appId);
|
|
21276
|
+
if (pluginKey) {
|
|
21277
|
+
provider = ibiz.register.get(
|
|
21278
|
+
"".concat(UILOGINNODE_PROVIDER_PREFIX, "_").concat(pluginKey)
|
|
21279
|
+
);
|
|
21280
|
+
if (provider) {
|
|
21226
21281
|
return provider;
|
|
21227
21282
|
}
|
|
21228
|
-
|
|
21229
|
-
|
|
21230
|
-
|
|
21231
|
-
ibiz.log.error("\u627E\u4E0D\u5230\u95E8\u6237\u90E8\u4EF6\u6210\u5458\u7C7B\u578B".concat(portletType, "\u5BF9\u5E94\u7684\u9002\u914D\u5668"));
|
|
21232
|
-
} else {
|
|
21233
|
-
return provider;
|
|
21283
|
+
throw new RuntimeError7(
|
|
21284
|
+
"\u627E\u4E0D\u5230\u754C\u9762\u903B\u8F91\u524D\u7AEF\u63D2\u4EF6\u8282\u70B9\uFF0C\u63D2\u4EF6".concat(pluginKey, "\u5BF9\u5E94\u7684\u9002\u914D\u5668")
|
|
21285
|
+
);
|
|
21234
21286
|
}
|
|
21235
21287
|
}
|
|
21236
21288
|
|
|
21237
|
-
// src/register/helper/
|
|
21238
|
-
|
|
21239
|
-
|
|
21240
|
-
|
|
21241
|
-
ibiz.register.register("".concat(APP_COUNTER_PROVIDER_PREFIX, "_").concat(key), callback);
|
|
21289
|
+
// src/register/helper/view-register.ts
|
|
21290
|
+
var VIEW_PROVIDER_PREFIX = "VIEW";
|
|
21291
|
+
function registerViewProvider(key, callback) {
|
|
21292
|
+
ibiz.register.register("".concat(VIEW_PROVIDER_PREFIX, "_").concat(key), callback);
|
|
21242
21293
|
}
|
|
21243
21294
|
function getProvider9(key) {
|
|
21244
|
-
return ibiz.register.get(
|
|
21245
|
-
"".concat(APP_COUNTER_PROVIDER_PREFIX, "_").concat(key)
|
|
21246
|
-
);
|
|
21295
|
+
return ibiz.register.get("".concat(VIEW_PROVIDER_PREFIX, "_").concat(key));
|
|
21247
21296
|
}
|
|
21248
|
-
async function
|
|
21297
|
+
async function getViewProvider(model) {
|
|
21249
21298
|
let provider;
|
|
21250
|
-
const {
|
|
21299
|
+
const { viewType, viewStyle, sysPFPluginId, appId } = model;
|
|
21251
21300
|
if (sysPFPluginId) {
|
|
21252
21301
|
const pluginKey = await getPluginRegisterKey(sysPFPluginId, appId);
|
|
21253
21302
|
if (pluginKey) {
|
|
21254
21303
|
provider = getProvider9(pluginKey);
|
|
21255
21304
|
}
|
|
21256
21305
|
if (!provider) {
|
|
21257
|
-
ibiz.log.error("\u627E\u4E0D\u5230\
|
|
21306
|
+
ibiz.log.error("\u627E\u4E0D\u5230\u89C6\u56FE\u63D2\u4EF6".concat(pluginKey, "\u5BF9\u5E94\u7684\u9002\u914D\u5668"));
|
|
21258
21307
|
} else {
|
|
21259
21308
|
return provider;
|
|
21260
21309
|
}
|
|
21261
21310
|
}
|
|
21262
|
-
if (
|
|
21263
|
-
|
|
21311
|
+
if (viewStyle && viewStyle !== "DEFAULT") {
|
|
21312
|
+
const key = "".concat(viewType, "_").concat(viewStyle);
|
|
21313
|
+
provider = getProvider9(key);
|
|
21264
21314
|
if (!provider) {
|
|
21265
|
-
|
|
21315
|
+
ibiz.log.error(
|
|
21316
|
+
"\u627E\u4E0D\u5230\u89C6\u56FE\u7C7B\u578B\uFF1A[".concat(viewType, "]\u7684\u89C6\u56FE\u6837\u5F0F\uFF1A[").concat(viewStyle, "]\u5BF9\u5E94\u7684\u9002\u914D\u5668"),
|
|
21317
|
+
model
|
|
21318
|
+
);
|
|
21266
21319
|
} else {
|
|
21267
21320
|
return provider;
|
|
21268
21321
|
}
|
|
21269
21322
|
}
|
|
21270
|
-
provider = getProvider9(counterType);
|
|
21271
21323
|
if (!provider) {
|
|
21272
|
-
|
|
21273
|
-
} else {
|
|
21274
|
-
return provider;
|
|
21324
|
+
provider = getProvider9(viewType);
|
|
21275
21325
|
}
|
|
21326
|
+
if (!provider) {
|
|
21327
|
+
provider = getProvider9("DEFAULT");
|
|
21328
|
+
}
|
|
21329
|
+
return provider;
|
|
21276
21330
|
}
|
|
21277
21331
|
|
|
21278
21332
|
// src/service/utils/app-counter/app-counter.ts
|
|
21279
|
-
import { IBizContext, RuntimeError as
|
|
21333
|
+
import { IBizContext, RuntimeError as RuntimeError8 } from "@ibiz-template/core";
|
|
21280
21334
|
import { notNilEmpty as notNilEmpty5, QXEvent } from "qx-util";
|
|
21281
21335
|
import { clone as clone2 } from "ramda";
|
|
21282
21336
|
var AppCounter = class {
|
|
@@ -21381,7 +21435,7 @@ var AppCounter = class {
|
|
|
21381
21435
|
* @return {*} {Promise<IData>}
|
|
21382
21436
|
*/
|
|
21383
21437
|
async load() {
|
|
21384
|
-
throw new
|
|
21438
|
+
throw new RuntimeError8("\u672A\u5B9E\u73B0\u8BA1\u6570\u5668\u52A0\u8F7D\u65B9\u6CD5");
|
|
21385
21439
|
}
|
|
21386
21440
|
/**
|
|
21387
21441
|
* 计数器刷新
|
|
@@ -21814,7 +21868,7 @@ import { where, equals, clone as clone3, isNil as isNil5, isEmpty as isEmpty5 }
|
|
|
21814
21868
|
import { createUUID } from "qx-util";
|
|
21815
21869
|
|
|
21816
21870
|
// src/service/utils/service-exist-util/service-exist-util.ts
|
|
21817
|
-
import { RuntimeError as
|
|
21871
|
+
import { RuntimeError as RuntimeError9 } from "@ibiz-template/core";
|
|
21818
21872
|
import { isEmpty as isEmpty4, isNil as isNil4 } from "ramda";
|
|
21819
21873
|
function isExistSrfKey(funcName, entity) {
|
|
21820
21874
|
if (entity != null) {
|
|
@@ -21823,14 +21877,14 @@ function isExistSrfKey(funcName, entity) {
|
|
|
21823
21877
|
return true;
|
|
21824
21878
|
}
|
|
21825
21879
|
}
|
|
21826
|
-
throw new
|
|
21880
|
+
throw new RuntimeError9("\u6267\u884C\u300C".concat(funcName, "\u300D\u4E0D\u5B58\u5728\u300Csrfkey\u300D\u65E0\u6CD5\u5904\u7406"));
|
|
21827
21881
|
}
|
|
21828
21882
|
function isExistSessionId(funcName, context) {
|
|
21829
21883
|
const { srfsessionid } = context;
|
|
21830
21884
|
if (!isNil4(srfsessionid) && !isEmpty4(srfsessionid)) {
|
|
21831
21885
|
return true;
|
|
21832
21886
|
}
|
|
21833
|
-
throw new
|
|
21887
|
+
throw new RuntimeError9("\u6267\u884C\u300C".concat(funcName, "\u300D\u4E0D\u5B58\u5728\u300Csrfsessionid\u300D\u65E0\u6CD5\u5904\u7406"));
|
|
21834
21888
|
}
|
|
21835
21889
|
|
|
21836
21890
|
// src/service/utils/de-cache/de-cache.ts
|
|
@@ -22321,7 +22375,7 @@ var SearchFilter = class {
|
|
|
22321
22375
|
};
|
|
22322
22376
|
|
|
22323
22377
|
// src/service/service/code-list/code-list.service.ts
|
|
22324
|
-
import { RuntimeError as
|
|
22378
|
+
import { RuntimeError as RuntimeError10 } from "@ibiz-template/core";
|
|
22325
22379
|
var CodeListService = class {
|
|
22326
22380
|
constructor(appModel) {
|
|
22327
22381
|
this.appModel = appModel;
|
|
@@ -22468,7 +22522,7 @@ var CodeListService = class {
|
|
|
22468
22522
|
async get(tag, context, params) {
|
|
22469
22523
|
const codeList = this.allCodeLists.get(tag);
|
|
22470
22524
|
if (!codeList) {
|
|
22471
|
-
throw new
|
|
22525
|
+
throw new RuntimeError10("\u627E\u4E0D\u5230".concat(tag, "\u4EE3\u7801\u8868"));
|
|
22472
22526
|
}
|
|
22473
22527
|
if (codeList.codeListType === "STATIC") {
|
|
22474
22528
|
return this.getStatic(codeList);
|
|
@@ -22590,11 +22644,11 @@ CounterService.counterMap = /* @__PURE__ */ new Map();
|
|
|
22590
22644
|
// src/service/service/entity/de.service.ts
|
|
22591
22645
|
import {
|
|
22592
22646
|
ModelError as ModelError13,
|
|
22593
|
-
RuntimeError as
|
|
22647
|
+
RuntimeError as RuntimeError14
|
|
22594
22648
|
} from "@ibiz-template/core";
|
|
22595
22649
|
|
|
22596
22650
|
// src/service/service/work-flow/work-flow.service.ts
|
|
22597
|
-
import { RuntimeError as
|
|
22651
|
+
import { RuntimeError as RuntimeError11 } from "@ibiz-template/core";
|
|
22598
22652
|
var WorkFlowService = class {
|
|
22599
22653
|
/**
|
|
22600
22654
|
* Creates an instance of WorkFlowService.
|
|
@@ -22897,7 +22951,7 @@ var WorkFlowService = class {
|
|
|
22897
22951
|
case "sendcopy":
|
|
22898
22952
|
return this.wfSendCopy(context, params, data);
|
|
22899
22953
|
default: {
|
|
22900
|
-
throw new
|
|
22954
|
+
throw new RuntimeError11("\u300C".concat(methodName, "\u300D\u672A\u5B9E\u73B0"));
|
|
22901
22955
|
}
|
|
22902
22956
|
}
|
|
22903
22957
|
}
|
|
@@ -22939,7 +22993,7 @@ var FileService = class {
|
|
|
22939
22993
|
// src/service/service/entity/method/de-action.ts
|
|
22940
22994
|
import {
|
|
22941
22995
|
HttpResponse as HttpResponse3,
|
|
22942
|
-
RuntimeError as
|
|
22996
|
+
RuntimeError as RuntimeError13,
|
|
22943
22997
|
RuntimeModelError as RuntimeModelError18
|
|
22944
22998
|
} from "@ibiz-template/core";
|
|
22945
22999
|
import { isArray as isArray6, isNil as isNil8 } from "lodash-es";
|
|
@@ -23496,7 +23550,7 @@ var Method = class {
|
|
|
23496
23550
|
};
|
|
23497
23551
|
|
|
23498
23552
|
// src/de-logic/index.ts
|
|
23499
|
-
import { HttpError as HttpError2, HttpResponse as HttpResponse2, RuntimeError as
|
|
23553
|
+
import { HttpError as HttpError2, HttpResponse as HttpResponse2, RuntimeError as RuntimeError12 } from "@ibiz-template/core";
|
|
23500
23554
|
import { isArray as isArray5 } from "lodash-es";
|
|
23501
23555
|
import { clone as clone9 } from "ramda";
|
|
23502
23556
|
|
|
@@ -24549,7 +24603,7 @@ async function execDELogicById(deDELogicId, dataEntityId, context, data, params)
|
|
|
24549
24603
|
context.srfappid
|
|
24550
24604
|
);
|
|
24551
24605
|
if (!deLogic) {
|
|
24552
|
-
throw new
|
|
24606
|
+
throw new RuntimeError12("".concat(dataEntityId, "\u627E\u4E0D\u5230\u5B9E\u4F53\u903B\u8F91").concat(deDELogicId));
|
|
24553
24607
|
}
|
|
24554
24608
|
return execDELogic(deLogic, context, data, params);
|
|
24555
24609
|
}
|
|
@@ -24624,6 +24678,9 @@ var DEActionMethod = class extends Method {
|
|
|
24624
24678
|
return this.input.handle(context, data);
|
|
24625
24679
|
}
|
|
24626
24680
|
async exec(context, data, params) {
|
|
24681
|
+
if (data) {
|
|
24682
|
+
await execFieldLogics(this.entity, "change", context, data, params);
|
|
24683
|
+
}
|
|
24627
24684
|
if (this.method.actionType === "DELOGIC") {
|
|
24628
24685
|
const deLogic = findDELogic(this.method.appDELogicId, this.entity);
|
|
24629
24686
|
if (!deLogic) {
|
|
@@ -24705,7 +24762,7 @@ var DEActionMethod = class extends Method {
|
|
|
24705
24762
|
*/
|
|
24706
24763
|
async create(context, data, params) {
|
|
24707
24764
|
if (!data) {
|
|
24708
|
-
throw new
|
|
24765
|
+
throw new RuntimeError13("create\u884C\u4E3A\u6CA1\u6709\u4F20data");
|
|
24709
24766
|
}
|
|
24710
24767
|
if (this.isLocalMode) {
|
|
24711
24768
|
return this.createTemp(context, this.createEntity(data));
|
|
@@ -24747,7 +24804,7 @@ var DEActionMethod = class extends Method {
|
|
|
24747
24804
|
*/
|
|
24748
24805
|
async update(context, data, params) {
|
|
24749
24806
|
if (!data) {
|
|
24750
|
-
throw new
|
|
24807
|
+
throw new RuntimeError13("update\u884C\u4E3A\u6CA1\u6709\u4F20data");
|
|
24751
24808
|
}
|
|
24752
24809
|
if (this.isLocalMode) {
|
|
24753
24810
|
return this.updateTemp(context, this.createEntity(data));
|
|
@@ -24985,7 +25042,13 @@ var FetchMethod = class extends Method {
|
|
|
24985
25042
|
const items = res.data || [];
|
|
24986
25043
|
res.data = items.map((item) => this.createEntity(item));
|
|
24987
25044
|
if (res.data) {
|
|
24988
|
-
execFieldLogics(
|
|
25045
|
+
await execFieldLogics(
|
|
25046
|
+
this.entity,
|
|
25047
|
+
"compute",
|
|
25048
|
+
context,
|
|
25049
|
+
res.data,
|
|
25050
|
+
searchParams
|
|
25051
|
+
);
|
|
24989
25052
|
}
|
|
24990
25053
|
return res;
|
|
24991
25054
|
}
|
|
@@ -25213,7 +25276,7 @@ var DEService = class {
|
|
|
25213
25276
|
if (method) {
|
|
25214
25277
|
return method.exec(context, params, params2);
|
|
25215
25278
|
}
|
|
25216
|
-
throw new
|
|
25279
|
+
throw new RuntimeError14("".concat(this.model.codeName, "\u672A\u652F\u6301\u300C").concat(id, "\u300D\u65B9\u6CD5"));
|
|
25217
25280
|
}
|
|
25218
25281
|
/**
|
|
25219
25282
|
* 执行服务方法 ac 模式
|
|
@@ -25231,7 +25294,7 @@ var DEService = class {
|
|
|
25231
25294
|
if (method) {
|
|
25232
25295
|
return method.exec(context, params, params2);
|
|
25233
25296
|
}
|
|
25234
|
-
throw new
|
|
25297
|
+
throw new RuntimeError14("".concat(this.model.codeName, "\u672A\u652F\u6301\u300C").concat(id, "\u300D\u65B9\u6CD5"));
|
|
25235
25298
|
}
|
|
25236
25299
|
/**
|
|
25237
25300
|
* 实体级别 AI 聊天会话
|
|
@@ -25581,7 +25644,7 @@ var ControlService = class {
|
|
|
25581
25644
|
};
|
|
25582
25645
|
|
|
25583
25646
|
// src/service/service/control/md-control.service.ts
|
|
25584
|
-
import { RuntimeError as
|
|
25647
|
+
import { RuntimeError as RuntimeError15 } from "@ibiz-template/core";
|
|
25585
25648
|
import { isArray as isArray8 } from "qx-util";
|
|
25586
25649
|
var MDControlService = class extends ControlService {
|
|
25587
25650
|
/**
|
|
@@ -25690,7 +25753,7 @@ var MDControlService = class extends ControlService {
|
|
|
25690
25753
|
* @returns {*} {Promise<IHttpResponse>}
|
|
25691
25754
|
*/
|
|
25692
25755
|
async exportData(_dataExport, _context, _params = {}) {
|
|
25693
|
-
throw new
|
|
25756
|
+
throw new RuntimeError15("\u672A\u5B9E\u73B0");
|
|
25694
25757
|
}
|
|
25695
25758
|
/**
|
|
25696
25759
|
* 处理响应
|
|
@@ -25725,7 +25788,7 @@ var MDControlService = class extends ControlService {
|
|
|
25725
25788
|
};
|
|
25726
25789
|
|
|
25727
25790
|
// src/service/service/authority/authority.service.ts
|
|
25728
|
-
import { RuntimeError as
|
|
25791
|
+
import { RuntimeError as RuntimeError16 } from "@ibiz-template/core";
|
|
25729
25792
|
|
|
25730
25793
|
// src/service/service/authority/de-authority.service.ts
|
|
25731
25794
|
var DeAuthorityService = class {
|
|
@@ -25861,7 +25924,7 @@ var AuthorityService = class {
|
|
|
25861
25924
|
this.appModel.appId
|
|
25862
25925
|
);
|
|
25863
25926
|
if (!entityModel) {
|
|
25864
|
-
throw new
|
|
25927
|
+
throw new RuntimeError16("\u672A\u627E\u5230\u5E94\u7528\u5B9E\u4F53[".concat(id, "]"));
|
|
25865
25928
|
}
|
|
25866
25929
|
const constructor = this.constructorCache.get(id);
|
|
25867
25930
|
let service;
|
|
@@ -26034,8 +26097,8 @@ var TreeDataSetNodeData = class extends TreeNodeData {
|
|
|
26034
26097
|
super(model, parentNodeData, opts);
|
|
26035
26098
|
const { data } = opts;
|
|
26036
26099
|
this.deData = data;
|
|
26037
|
-
this.text = data.srfmajortext;
|
|
26038
|
-
this.value = data.srfkey;
|
|
26100
|
+
this.text = model.textAppDEFieldId ? data[model.textAppDEFieldId] : data.srfmajortext;
|
|
26101
|
+
this.value = model.idAppDEFieldId ? data[model.idAppDEFieldId] : data.srfkey;
|
|
26039
26102
|
this.id = parentNodeData ? "".concat(parentNodeData.id, ":").concat(model.id, "@").concat(data.srfkey) : model.id + data.srfkey;
|
|
26040
26103
|
this.id = this.id.toLowerCase();
|
|
26041
26104
|
if (model.appDataEntityId) {
|
|
@@ -26258,6 +26321,7 @@ function updateKeyDefine(target, keys) {
|
|
|
26258
26321
|
}
|
|
26259
26322
|
});
|
|
26260
26323
|
}
|
|
26324
|
+
var AreaItemStyles = ["REGION", "REGION2", "REGION3", "REGION4"];
|
|
26261
26325
|
var MapData = class {
|
|
26262
26326
|
constructor(deData, mapItem) {
|
|
26263
26327
|
this._longitude = void 0;
|
|
@@ -26269,7 +26333,7 @@ var MapData = class {
|
|
|
26269
26333
|
this._symbol = void 0;
|
|
26270
26334
|
const {
|
|
26271
26335
|
id,
|
|
26272
|
-
|
|
26336
|
+
itemStyle,
|
|
26273
26337
|
longitudeAppDEFieldId,
|
|
26274
26338
|
latitudeAppDEFieldId,
|
|
26275
26339
|
textAppDEFieldId,
|
|
@@ -26279,9 +26343,9 @@ var MapData = class {
|
|
|
26279
26343
|
} = mapItem;
|
|
26280
26344
|
const keyMap = /* @__PURE__ */ new Map();
|
|
26281
26345
|
this._id = id + deData.srfkey;
|
|
26282
|
-
this.
|
|
26346
|
+
this._itemStyle = itemStyle;
|
|
26283
26347
|
this._mapItemId = id;
|
|
26284
|
-
if (
|
|
26348
|
+
if (AreaItemStyles.includes(this._itemStyle)) {
|
|
26285
26349
|
if (longitudeAppDEFieldId) {
|
|
26286
26350
|
keyMap.set("_areaCode", longitudeAppDEFieldId);
|
|
26287
26351
|
}
|
|
@@ -26338,8 +26402,78 @@ var MapData = class {
|
|
|
26338
26402
|
}
|
|
26339
26403
|
};
|
|
26340
26404
|
|
|
26405
|
+
// src/service/vo/panel-data/panel-data.ts
|
|
26406
|
+
import { QXEvent as QXEvent2 } from "qx-util";
|
|
26407
|
+
function updateKeyDefine2(target, keys) {
|
|
26408
|
+
keys.forEach((key) => {
|
|
26409
|
+
if (!Object.prototype.hasOwnProperty.call(target, key)) {
|
|
26410
|
+
Object.defineProperty(target, key, {
|
|
26411
|
+
enumerable: true,
|
|
26412
|
+
configurable: true,
|
|
26413
|
+
writable: true,
|
|
26414
|
+
value: void 0
|
|
26415
|
+
});
|
|
26416
|
+
}
|
|
26417
|
+
});
|
|
26418
|
+
}
|
|
26419
|
+
var PanelData = class {
|
|
26420
|
+
constructor(fields, origin) {
|
|
26421
|
+
const _evt = new QXEvent2();
|
|
26422
|
+
const keyMap = {};
|
|
26423
|
+
const reverseKeyMap = {};
|
|
26424
|
+
fields.forEach((field) => {
|
|
26425
|
+
var _a;
|
|
26426
|
+
keyMap[field.id] = (_a = field.viewFieldName) == null ? void 0 : _a.toLowerCase();
|
|
26427
|
+
if (field.viewFieldName) {
|
|
26428
|
+
reverseKeyMap[field.viewFieldName.toLowerCase()] = field.id;
|
|
26429
|
+
}
|
|
26430
|
+
});
|
|
26431
|
+
return new Proxy(this, {
|
|
26432
|
+
set(target, p, value) {
|
|
26433
|
+
if (Object.prototype.hasOwnProperty.call(keyMap, p)) {
|
|
26434
|
+
if (keyMap[p]) {
|
|
26435
|
+
origin[keyMap[p]] = value;
|
|
26436
|
+
} else {
|
|
26437
|
+
target[p] = value;
|
|
26438
|
+
}
|
|
26439
|
+
} else {
|
|
26440
|
+
origin[p] = value;
|
|
26441
|
+
}
|
|
26442
|
+
_evt.emit("change", p);
|
|
26443
|
+
if (keyMap[p] && keyMap[p] !== p) {
|
|
26444
|
+
_evt.emit("change", keyMap[p]);
|
|
26445
|
+
}
|
|
26446
|
+
if (reverseKeyMap[p] && reverseKeyMap[p] !== p) {
|
|
26447
|
+
_evt.emit("change", reverseKeyMap[p]);
|
|
26448
|
+
}
|
|
26449
|
+
return true;
|
|
26450
|
+
},
|
|
26451
|
+
get(target, p, _receiver) {
|
|
26452
|
+
if (p === "_evt") {
|
|
26453
|
+
return _evt;
|
|
26454
|
+
}
|
|
26455
|
+
if (keyMap[p]) {
|
|
26456
|
+
return origin[keyMap[p]];
|
|
26457
|
+
}
|
|
26458
|
+
if (Object.prototype.hasOwnProperty.call(origin, p)) {
|
|
26459
|
+
return origin[p];
|
|
26460
|
+
}
|
|
26461
|
+
return target[p];
|
|
26462
|
+
},
|
|
26463
|
+
ownKeys(target) {
|
|
26464
|
+
const allKeys = Object.keys(origin);
|
|
26465
|
+
updateKeyDefine2(target, allKeys);
|
|
26466
|
+
return allKeys;
|
|
26467
|
+
}
|
|
26468
|
+
});
|
|
26469
|
+
}
|
|
26470
|
+
destroy() {
|
|
26471
|
+
this._evt.reset();
|
|
26472
|
+
}
|
|
26473
|
+
};
|
|
26474
|
+
|
|
26341
26475
|
// src/service/mqtt/mqtt.service.ts
|
|
26342
|
-
import { QXEvent as
|
|
26476
|
+
import { QXEvent as QXEvent3, createUUID as createUUID4, isNilOrEmpty as isNilOrEmpty6 } from "qx-util";
|
|
26343
26477
|
var MqttService = class {
|
|
26344
26478
|
/**
|
|
26345
26479
|
* Creates an instance of MqttService.
|
|
@@ -26360,7 +26494,7 @@ var MqttService = class {
|
|
|
26360
26494
|
* @author chitanda
|
|
26361
26495
|
* @date 2023-10-23 15:10:06
|
|
26362
26496
|
*/
|
|
26363
|
-
this.evt = new
|
|
26497
|
+
this.evt = new QXEvent3();
|
|
26364
26498
|
/**
|
|
26365
26499
|
* 连接选项
|
|
26366
26500
|
*
|
|
@@ -26432,7 +26566,7 @@ var MqttService = class {
|
|
|
26432
26566
|
};
|
|
26433
26567
|
|
|
26434
26568
|
// src/service/de-service-util.ts
|
|
26435
|
-
import { RuntimeError as
|
|
26569
|
+
import { RuntimeError as RuntimeError17 } from "@ibiz-template/core";
|
|
26436
26570
|
var DEServiceUtil = class {
|
|
26437
26571
|
/**
|
|
26438
26572
|
* Creates an instance of DEServiceUtil.
|
|
@@ -26487,7 +26621,7 @@ var DEServiceUtil = class {
|
|
|
26487
26621
|
this.appModel.appId
|
|
26488
26622
|
);
|
|
26489
26623
|
if (!entityModel) {
|
|
26490
|
-
throw new
|
|
26624
|
+
throw new RuntimeError17("\u672A\u627E\u5230\u5E94\u7528\u5B9E\u4F53[".concat(id, "]"));
|
|
26491
26625
|
}
|
|
26492
26626
|
const constructor = this.constructorCache.get(id);
|
|
26493
26627
|
let service;
|
|
@@ -26550,7 +26684,7 @@ var _OpenAppViewCommand = class _OpenAppViewCommand {
|
|
|
26550
26684
|
const context = clone13(_context);
|
|
26551
26685
|
const appView = await ibiz.hub.config.view.get(appViewId);
|
|
26552
26686
|
if (!appView) {
|
|
26553
|
-
throw new
|
|
26687
|
+
throw new RuntimeError18("\u5E94\u7528\u89C6\u56FE[".concat(appViewId, "]\u4E0D\u5B58\u5728"));
|
|
26554
26688
|
}
|
|
26555
26689
|
if ((context.srfkey || params.srfuf === 0 /* CREATE */) && appView.appDataEntityId) {
|
|
26556
26690
|
const deName = calcDeCodeNameById(appView.appDataEntityId);
|
|
@@ -26639,7 +26773,7 @@ var _OpenAppViewCommand = class _OpenAppViewCommand {
|
|
|
26639
26773
|
*/
|
|
26640
26774
|
async openPopover(appView, event, context, params = {}) {
|
|
26641
26775
|
if (!event) {
|
|
26642
|
-
throw new
|
|
26776
|
+
throw new RuntimeError18("\u6C14\u6CE1\u6253\u5F00\u7F3A\u5C11event");
|
|
26643
26777
|
}
|
|
26644
26778
|
return ibiz.openView.popover(appView.id, event, context, params);
|
|
26645
26779
|
}
|
|
@@ -26694,7 +26828,7 @@ var _AppFuncCommand = class _AppFuncCommand {
|
|
|
26694
26828
|
async exec(appFuncId, context, params = {}, opts = {}) {
|
|
26695
26829
|
const appFunc = ibiz.hub.getApp(context.srfappid).getAppFunc(appFuncId);
|
|
26696
26830
|
if (!appFunc) {
|
|
26697
|
-
throw new
|
|
26831
|
+
throw new RuntimeError19("\u627E\u4E0D\u5230\u53EB".concat(appFuncId, "\u7684\u5E94\u7528\u529F\u80FD"));
|
|
26698
26832
|
}
|
|
26699
26833
|
const { navigateContexts, navigateParams, appFuncType } = appFunc;
|
|
26700
26834
|
const _context = context.clone();
|
|
@@ -26728,7 +26862,7 @@ var _AppFuncCommand = class _AppFuncCommand {
|
|
|
26728
26862
|
*/
|
|
26729
26863
|
async openAppView(appFunc, context, params, opts) {
|
|
26730
26864
|
if (!appFunc.appViewId) {
|
|
26731
|
-
throw new
|
|
26865
|
+
throw new RuntimeError19("\u5E94\u7528\u89C6\u56FE[".concat(appFunc.appViewId, "]\u4E0D\u5B58\u5728"));
|
|
26732
26866
|
}
|
|
26733
26867
|
return ibiz.commands.execute(
|
|
26734
26868
|
OpenAppViewCommand.TAG,
|
|
@@ -26762,7 +26896,7 @@ var _AppFuncCommand = class _AppFuncCommand {
|
|
|
26762
26896
|
*/
|
|
26763
26897
|
openPdAppFunc(appFunc, context, params) {
|
|
26764
26898
|
ibiz.log.warn("openPdAppFunc", appFunc, context, params);
|
|
26765
|
-
throw new
|
|
26899
|
+
throw new RuntimeError19("\u672A\u5B9E\u73B0");
|
|
26766
26900
|
}
|
|
26767
26901
|
/**
|
|
26768
26902
|
* 执行 JavaScript 脚本
|
|
@@ -26776,7 +26910,7 @@ var _AppFuncCommand = class _AppFuncCommand {
|
|
|
26776
26910
|
*/
|
|
26777
26911
|
executeJavaScript(appFunc, context, params) {
|
|
26778
26912
|
ibiz.log.warn("executeJavaScript", appFunc, context, params);
|
|
26779
|
-
throw new
|
|
26913
|
+
throw new RuntimeError19("\u672A\u5B9E\u73B0");
|
|
26780
26914
|
}
|
|
26781
26915
|
/**
|
|
26782
26916
|
* 自定义应用功能
|
|
@@ -26790,7 +26924,7 @@ var _AppFuncCommand = class _AppFuncCommand {
|
|
|
26790
26924
|
*/
|
|
26791
26925
|
custom(appFunc, context, params) {
|
|
26792
26926
|
ibiz.log.warn("custom", appFunc, context, params);
|
|
26793
|
-
throw new
|
|
26927
|
+
throw new RuntimeError19("\u672A\u5B9E\u73B0");
|
|
26794
26928
|
}
|
|
26795
26929
|
};
|
|
26796
26930
|
/**
|
|
@@ -26811,7 +26945,7 @@ function installCommand() {
|
|
|
26811
26945
|
}
|
|
26812
26946
|
|
|
26813
26947
|
// src/app-hub.ts
|
|
26814
|
-
import { RuntimeError as
|
|
26948
|
+
import { RuntimeError as RuntimeError53 } from "@ibiz-template/core";
|
|
26815
26949
|
|
|
26816
26950
|
// src/application.ts
|
|
26817
26951
|
import { Net, getToken } from "@ibiz-template/core";
|
|
@@ -27003,7 +27137,7 @@ var Convert = class {
|
|
|
27003
27137
|
};
|
|
27004
27138
|
|
|
27005
27139
|
// src/hub/config/app-view-config-service.ts
|
|
27006
|
-
import { RuntimeError as
|
|
27140
|
+
import { RuntimeError as RuntimeError20 } from "@ibiz-template/core";
|
|
27007
27141
|
var AppViewConfigService = class {
|
|
27008
27142
|
constructor() {
|
|
27009
27143
|
/**
|
|
@@ -27023,7 +27157,7 @@ var AppViewConfigService = class {
|
|
|
27023
27157
|
if (!this.viewConfigs.has(key)) {
|
|
27024
27158
|
const model = await ibiz.hub.getAppView(key);
|
|
27025
27159
|
if (!model) {
|
|
27026
|
-
throw new
|
|
27160
|
+
throw new RuntimeError20("\u89C6\u56FE[".concat(key, "]\u4E0D\u5B58\u5728"));
|
|
27027
27161
|
}
|
|
27028
27162
|
this.set(model.id, {
|
|
27029
27163
|
id: model.id,
|
|
@@ -27079,14 +27213,14 @@ var PanelNotifyState = /* @__PURE__ */ ((PanelNotifyState2) => {
|
|
|
27079
27213
|
|
|
27080
27214
|
// src/controller/common/view/view.controller.ts
|
|
27081
27215
|
import { createUUID as createUUID6, notNilEmpty as notNilEmpty6 } from "qx-util";
|
|
27082
|
-
import { IBizContext as IBizContext2, RuntimeError as
|
|
27216
|
+
import { IBizContext as IBizContext2, RuntimeError as RuntimeError27 } from "@ibiz-template/core";
|
|
27083
27217
|
import { isEmpty as isEmpty8, isNil as isNil17, isNotNil as isNotNil2 } from "ramda";
|
|
27084
27218
|
|
|
27085
27219
|
// src/controller/utils/loading/loading.state.ts
|
|
27086
27220
|
import { NOOP } from "@ibiz-template/core";
|
|
27087
27221
|
|
|
27088
27222
|
// src/controller/utils/counter/counter.ts
|
|
27089
|
-
import { RuntimeError as
|
|
27223
|
+
import { RuntimeError as RuntimeError21 } from "@ibiz-template/core";
|
|
27090
27224
|
var Counter = class {
|
|
27091
27225
|
/**
|
|
27092
27226
|
* Creates an instance of Counter.
|
|
@@ -27148,7 +27282,7 @@ var Counter = class {
|
|
|
27148
27282
|
return;
|
|
27149
27283
|
}
|
|
27150
27284
|
if (this.count === 0) {
|
|
27151
|
-
throw new
|
|
27285
|
+
throw new RuntimeError21("\u9519\u8BEF\u7684\u8C03\u7528\uFF01decrement\u4E0D\u80FD\u5BF9count\u4E3A0\u8C03\u7528");
|
|
27152
27286
|
}
|
|
27153
27287
|
this.count -= 1;
|
|
27154
27288
|
if (this.count === 0) {
|
|
@@ -27218,7 +27352,7 @@ var LoadingState = class {
|
|
|
27218
27352
|
};
|
|
27219
27353
|
|
|
27220
27354
|
// src/controller/ctx/ctx.ts
|
|
27221
|
-
import { QXEvent as
|
|
27355
|
+
import { QXEvent as QXEvent4 } from "qx-util";
|
|
27222
27356
|
|
|
27223
27357
|
// src/controller/ctx/ctx.state.ts
|
|
27224
27358
|
var CTXState = class {
|
|
@@ -27248,7 +27382,7 @@ var CTX = class {
|
|
|
27248
27382
|
* @date 2023-04-26 07:54:46
|
|
27249
27383
|
* @protected
|
|
27250
27384
|
*/
|
|
27251
|
-
this.evt = new
|
|
27385
|
+
this.evt = new QXEvent4(3e3);
|
|
27252
27386
|
/**
|
|
27253
27387
|
* 当前视图控制器集合(包含自身视图控制器,部件控制器,和下一层级的视图的控制器)
|
|
27254
27388
|
* @author lxm
|
|
@@ -27553,8 +27687,8 @@ var ButtonContainerState = class {
|
|
|
27553
27687
|
};
|
|
27554
27688
|
|
|
27555
27689
|
// src/controller/utils/event/qx-event-ex.ts
|
|
27556
|
-
import { clearAll, QXEvent as
|
|
27557
|
-
var QXEventEx = class extends
|
|
27690
|
+
import { clearAll, QXEvent as QXEvent5 } from "qx-util";
|
|
27691
|
+
var QXEventEx = class extends QXEvent5 {
|
|
27558
27692
|
constructor() {
|
|
27559
27693
|
super(...arguments);
|
|
27560
27694
|
this.anyEventFns = [];
|
|
@@ -27703,7 +27837,7 @@ function getOriginData(data) {
|
|
|
27703
27837
|
}
|
|
27704
27838
|
|
|
27705
27839
|
// src/controller/utils/value-rule/value-rule.ts
|
|
27706
|
-
import { RuntimeError as
|
|
27840
|
+
import { RuntimeError as RuntimeError22 } from "@ibiz-template/core";
|
|
27707
27841
|
import { isNilOrEmpty as isNilOrEmpty7, isNumber } from "qx-util";
|
|
27708
27842
|
import { isNil as isNil13 } from "ramda";
|
|
27709
27843
|
function generateRules(itemVRs, name, valueItemName) {
|
|
@@ -27753,7 +27887,7 @@ function generateRules(itemVRs, name, valueItemName) {
|
|
|
27753
27887
|
deRule.groupCond
|
|
27754
27888
|
);
|
|
27755
27889
|
if (!isPast) {
|
|
27756
|
-
callback(new
|
|
27890
|
+
callback(new RuntimeError22(infoMessage || deRule.ruleInfo));
|
|
27757
27891
|
}
|
|
27758
27892
|
return true;
|
|
27759
27893
|
},
|
|
@@ -27823,7 +27957,7 @@ function generateEditorRules(editor) {
|
|
|
27823
27957
|
}
|
|
27824
27958
|
|
|
27825
27959
|
// src/controller/utils/value-ex/value-ex.ts
|
|
27826
|
-
import { RuntimeError as
|
|
27960
|
+
import { RuntimeError as RuntimeError23 } from "@ibiz-template/core";
|
|
27827
27961
|
import { isNil as isNil14, mergeLeft } from "ramda";
|
|
27828
27962
|
var ValueExUtil = class {
|
|
27829
27963
|
/**
|
|
@@ -27855,7 +27989,7 @@ var ValueExUtil = class {
|
|
|
27855
27989
|
const { valueType, objectNameField, textSeparator } = this.mergeDefault(options);
|
|
27856
27990
|
if (["OBJECTS", "OBJECT"].includes(valueType)) {
|
|
27857
27991
|
if (!objectNameField) {
|
|
27858
|
-
throw new
|
|
27992
|
+
throw new RuntimeError23("\u7F3A\u5C11objectNameField");
|
|
27859
27993
|
}
|
|
27860
27994
|
const textKey = objectNameField.toLowerCase();
|
|
27861
27995
|
if (valueType === "OBJECTS") {
|
|
@@ -27871,7 +28005,7 @@ var ValueExUtil = class {
|
|
|
27871
28005
|
};
|
|
27872
28006
|
|
|
27873
28007
|
// src/controller/utils/value-default/value-default.ts
|
|
27874
|
-
import { RuntimeError as
|
|
28008
|
+
import { RuntimeError as RuntimeError24, ModelError as ModelError16 } from "@ibiz-template/core";
|
|
27875
28009
|
import dayjs from "dayjs";
|
|
27876
28010
|
import { createUUID as createUUID5 } from "qx-util";
|
|
27877
28011
|
import { isNil as isNil15, isNotNil } from "ramda";
|
|
@@ -27912,7 +28046,7 @@ function getDefaultValue(opts, origins) {
|
|
|
27912
28046
|
case "SESSION":
|
|
27913
28047
|
case "APPLICATION":
|
|
27914
28048
|
if (!((_a = ibiz.appData) == null ? void 0 : _a.context)) {
|
|
27915
|
-
throw new
|
|
28049
|
+
throw new RuntimeError24("appdata.context\u4E0D\u5B58\u5728");
|
|
27916
28050
|
}
|
|
27917
28051
|
return ibiz.appData.context[defaultValue];
|
|
27918
28052
|
case "CONTEXT":
|
|
@@ -27924,6 +28058,86 @@ function getDefaultValue(opts, origins) {
|
|
|
27924
28058
|
}
|
|
27925
28059
|
}
|
|
27926
28060
|
|
|
28061
|
+
// src/controller/utils/data-file-util/data-file-util.ts
|
|
28062
|
+
import {
|
|
28063
|
+
RuntimeError as RuntimeError25
|
|
28064
|
+
} from "@ibiz-template/core";
|
|
28065
|
+
var asyncImportUrl = "/asyncimportdata2";
|
|
28066
|
+
var importUrl = "/importdata2";
|
|
28067
|
+
function listenAsyncAction(id) {
|
|
28068
|
+
return new Promise((resolve) => {
|
|
28069
|
+
const callBack = (msg) => {
|
|
28070
|
+
const messageid = msg.messageid || msg.data.asyncacitonid;
|
|
28071
|
+
if (id === messageid && msg.data.actionstate === 30) {
|
|
28072
|
+
try {
|
|
28073
|
+
const result = JSON.parse(
|
|
28074
|
+
msg.data.actionresult
|
|
28075
|
+
);
|
|
28076
|
+
resolve(result);
|
|
28077
|
+
} catch (error) {
|
|
28078
|
+
throw new RuntimeError25("\u89E3\u6790\u6570\u636E\u53D1\u751F\u9519\u8BEF");
|
|
28079
|
+
} finally {
|
|
28080
|
+
ibiz.mc.command.asyncAction.off(callBack);
|
|
28081
|
+
}
|
|
28082
|
+
} else if (msg.data.actionstate === 40) {
|
|
28083
|
+
resolve({
|
|
28084
|
+
total: 0,
|
|
28085
|
+
success: 0,
|
|
28086
|
+
message: msg.data.actionresult
|
|
28087
|
+
});
|
|
28088
|
+
ibiz.mc.command.asyncAction.off(callBack);
|
|
28089
|
+
}
|
|
28090
|
+
};
|
|
28091
|
+
ibiz.mc.command.asyncAction.on(callBack);
|
|
28092
|
+
});
|
|
28093
|
+
}
|
|
28094
|
+
async function asyncImportData(file, appDataEntity) {
|
|
28095
|
+
const data = new FormData();
|
|
28096
|
+
data.append("file", file);
|
|
28097
|
+
const url = "".concat(appDataEntity.codeName2.toLowerCase(), "/").concat(asyncImportUrl);
|
|
28098
|
+
const res = await ibiz.net.request(url, {
|
|
28099
|
+
method: "post",
|
|
28100
|
+
data,
|
|
28101
|
+
headers: { "Content-Type": "multipart/form-data" }
|
|
28102
|
+
});
|
|
28103
|
+
return listenAsyncAction(res.data.asyncacitonid);
|
|
28104
|
+
}
|
|
28105
|
+
async function importData(file, appDataEntity) {
|
|
28106
|
+
const data = new FormData();
|
|
28107
|
+
data.append("file", file);
|
|
28108
|
+
const url = "".concat(appDataEntity.codeName2.toLowerCase(), "/").concat(importUrl);
|
|
28109
|
+
const res = await ibiz.net.request(url, {
|
|
28110
|
+
method: "post",
|
|
28111
|
+
data,
|
|
28112
|
+
headers: { "Content-Type": "multipart/form-data" }
|
|
28113
|
+
});
|
|
28114
|
+
return res.data;
|
|
28115
|
+
}
|
|
28116
|
+
async function exportData(header, data, fileName) {
|
|
28117
|
+
if (!ibiz.util.getExcelUtil) {
|
|
28118
|
+
throw new RuntimeError25("ibiz.util.getExportExcel\u4E0D\u5B58\u5728");
|
|
28119
|
+
}
|
|
28120
|
+
const exportExcel = await ibiz.util.getExcelUtil();
|
|
28121
|
+
if (!exportExcel) {
|
|
28122
|
+
throw new RuntimeError25("\u5BFC\u51FA\u6A21\u5757\u52A0\u8F7D\u9519\u8BEF");
|
|
28123
|
+
}
|
|
28124
|
+
try {
|
|
28125
|
+
exportExcel.exportJsonToExcel({
|
|
28126
|
+
header,
|
|
28127
|
+
// 表头内容 数组格式
|
|
28128
|
+
data,
|
|
28129
|
+
// 具体数据 这是个二维数组
|
|
28130
|
+
filename: fileName,
|
|
28131
|
+
// 文件名称
|
|
28132
|
+
autoWidth: true
|
|
28133
|
+
// 单元格是否自适应
|
|
28134
|
+
});
|
|
28135
|
+
return { ok: true };
|
|
28136
|
+
} catch (error) {
|
|
28137
|
+
return { ok: false };
|
|
28138
|
+
}
|
|
28139
|
+
}
|
|
28140
|
+
|
|
27927
28141
|
// src/controller/common/base.controller.ts
|
|
27928
28142
|
var SELF_KEY = "__self";
|
|
27929
28143
|
var BaseController = class {
|
|
@@ -28131,7 +28345,7 @@ var BaseController = class {
|
|
|
28131
28345
|
};
|
|
28132
28346
|
|
|
28133
28347
|
// src/controller/utils/view-msg/view-msg-controller.ts
|
|
28134
|
-
import { RuntimeError as
|
|
28348
|
+
import { RuntimeError as RuntimeError26, RuntimeModelError as RuntimeModelError20 } from "@ibiz-template/core";
|
|
28135
28349
|
import { isNil as isNil16, mergeRight as mergeRight2 } from "ramda";
|
|
28136
28350
|
var ViewMsgController = class _ViewMsgController {
|
|
28137
28351
|
constructor(msgGroupId) {
|
|
@@ -28157,7 +28371,7 @@ var ViewMsgController = class _ViewMsgController {
|
|
|
28157
28371
|
(item) => item.id === this.msgGroupId
|
|
28158
28372
|
);
|
|
28159
28373
|
if (!msgGroup) {
|
|
28160
|
-
throw new
|
|
28374
|
+
throw new RuntimeError26("\u627E\u4E0D\u5230\u89C6\u56FE\u6D88\u606F\u7EC4".concat(this.msgGroupId, "\u7684\u6A21\u578B"));
|
|
28161
28375
|
}
|
|
28162
28376
|
this.msgGroup = msgGroup;
|
|
28163
28377
|
const msgDetailsViewMsgIds = msgGroup.appViewMsgGroupDetails.map(
|
|
@@ -28171,7 +28385,7 @@ var ViewMsgController = class _ViewMsgController {
|
|
|
28171
28385
|
}
|
|
28172
28386
|
});
|
|
28173
28387
|
if (msgDetailsViewMsgIds.length) {
|
|
28174
|
-
throw new
|
|
28388
|
+
throw new RuntimeError26(
|
|
28175
28389
|
"\u6CA1\u6709\u627E\u5230".concat(msgDetailsViewMsgIds.join(","), "\u89C6\u56FE\u6D88\u606F\u6A21\u578B")
|
|
28176
28390
|
);
|
|
28177
28391
|
}
|
|
@@ -28574,7 +28788,7 @@ var ViewController = class extends BaseController {
|
|
|
28574
28788
|
async callUIAction(key, args) {
|
|
28575
28789
|
const result = this.call(key, args);
|
|
28576
28790
|
if (result === void 0) {
|
|
28577
|
-
throw new
|
|
28791
|
+
throw new RuntimeError27("\u6CA1\u6709\u5F15\u64CE\u652F\u6301\u9884\u7F6E\u754C\u9762\u884C\u4E3A".concat(key));
|
|
28578
28792
|
}
|
|
28579
28793
|
return result;
|
|
28580
28794
|
}
|
|
@@ -29160,7 +29374,7 @@ var ControlController = class extends BaseController {
|
|
|
29160
29374
|
};
|
|
29161
29375
|
|
|
29162
29376
|
// src/controller/common/control/md-control.controller.ts
|
|
29163
|
-
import { isElementSame, RuntimeError as
|
|
29377
|
+
import { isElementSame, RuntimeError as RuntimeError28 } from "@ibiz-template/core";
|
|
29164
29378
|
import { debounce } from "lodash-es";
|
|
29165
29379
|
var MDControlController = class extends ControlController {
|
|
29166
29380
|
constructor() {
|
|
@@ -29352,7 +29566,7 @@ var MDControlController = class extends ControlController {
|
|
|
29352
29566
|
async remove(args) {
|
|
29353
29567
|
const { context, params, data } = this.handlerAbilityParams(args);
|
|
29354
29568
|
if (!(data == null ? void 0 : data.length)) {
|
|
29355
|
-
throw new
|
|
29569
|
+
throw new RuntimeError28("\u672A\u9009\u4E2D\u6570\u636E");
|
|
29356
29570
|
}
|
|
29357
29571
|
if ((args == null ? void 0 : args.silent) !== true) {
|
|
29358
29572
|
const del = await ibiz.confirm.error({
|
|
@@ -29481,6 +29695,28 @@ var MDControlController = class extends ControlController {
|
|
|
29481
29695
|
* @returns {*} {Promise<void>}
|
|
29482
29696
|
*/
|
|
29483
29697
|
async importData() {
|
|
29698
|
+
var _a;
|
|
29699
|
+
const { appDataEntityId, dedataImportId } = this.model;
|
|
29700
|
+
const appDataEntity = await ibiz.hub.getAppDataEntity(appDataEntityId);
|
|
29701
|
+
const dataImport = (_a = appDataEntity.appDEDataImports) == null ? void 0 : _a.find(
|
|
29702
|
+
(importItem) => importItem.id === dedataImportId
|
|
29703
|
+
);
|
|
29704
|
+
if (!dataImport) {
|
|
29705
|
+
throw new RuntimeError28("\u65E0\u5BFC\u5165\u6A21\u578B\uFF01");
|
|
29706
|
+
}
|
|
29707
|
+
const modal = ibiz.overlay.createModal(
|
|
29708
|
+
"DataImport",
|
|
29709
|
+
{
|
|
29710
|
+
dismiss: () => modal.dismiss(),
|
|
29711
|
+
appDataEntity
|
|
29712
|
+
},
|
|
29713
|
+
{
|
|
29714
|
+
width: "auto",
|
|
29715
|
+
placement: "center"
|
|
29716
|
+
}
|
|
29717
|
+
);
|
|
29718
|
+
modal.present();
|
|
29719
|
+
await modal.onWillDismiss();
|
|
29484
29720
|
}
|
|
29485
29721
|
/**
|
|
29486
29722
|
* 数据导出
|
|
@@ -29496,7 +29732,7 @@ var MDControlController = class extends ControlController {
|
|
|
29496
29732
|
// src/controller/control/app-menu/app-menu.controller.ts
|
|
29497
29733
|
import {
|
|
29498
29734
|
findRecursiveChild,
|
|
29499
|
-
RuntimeError as
|
|
29735
|
+
RuntimeError as RuntimeError29,
|
|
29500
29736
|
RuntimeModelError as RuntimeModelError22
|
|
29501
29737
|
} from "@ibiz-template/core";
|
|
29502
29738
|
var AppMenuController = class extends ControlController {
|
|
@@ -29536,7 +29772,7 @@ var AppMenuController = class extends ControlController {
|
|
|
29536
29772
|
childrenFields: ["appMenuItems"]
|
|
29537
29773
|
});
|
|
29538
29774
|
if (!menuItem) {
|
|
29539
|
-
throw new
|
|
29775
|
+
throw new RuntimeError29("\u627E\u4E0D\u5230\u540D\u4E3A".concat(id, "\u7684\u83DC\u5355\u9879"));
|
|
29540
29776
|
}
|
|
29541
29777
|
this.evt.emit("onClick", {
|
|
29542
29778
|
eventArg: id,
|
|
@@ -29626,7 +29862,7 @@ var AppMenuController = class extends ControlController {
|
|
|
29626
29862
|
// src/controller/control/app-menu-icon-view/app-menu-icon-view.controller.ts
|
|
29627
29863
|
import {
|
|
29628
29864
|
findRecursiveChild as findRecursiveChild2,
|
|
29629
|
-
RuntimeError as
|
|
29865
|
+
RuntimeError as RuntimeError30,
|
|
29630
29866
|
RuntimeModelError as RuntimeModelError23
|
|
29631
29867
|
} from "@ibiz-template/core";
|
|
29632
29868
|
var AppMenuIconViewController = class extends AppMenuController {
|
|
@@ -29636,7 +29872,7 @@ var AppMenuIconViewController = class extends AppMenuController {
|
|
|
29636
29872
|
childrenFields: ["appMenuItems"]
|
|
29637
29873
|
});
|
|
29638
29874
|
if (!menuItem) {
|
|
29639
|
-
throw new
|
|
29875
|
+
throw new RuntimeError30("\u627E\u4E0D\u5230\u540D\u4E3A".concat(id, "\u7684\u83DC\u5355\u9879"));
|
|
29640
29876
|
}
|
|
29641
29877
|
this.evt.emit("onClick", {
|
|
29642
29878
|
eventArg: id,
|
|
@@ -29664,7 +29900,7 @@ var AppMenuIconViewController = class extends AppMenuController {
|
|
|
29664
29900
|
import dayjs2 from "dayjs";
|
|
29665
29901
|
|
|
29666
29902
|
// src/controller/control/calendar/calendar.service.ts
|
|
29667
|
-
import { RuntimeError as
|
|
29903
|
+
import { RuntimeError as RuntimeError31 } from "@ibiz-template/core";
|
|
29668
29904
|
var CalendarService = class extends MDControlService {
|
|
29669
29905
|
/**
|
|
29670
29906
|
* 执行查询多条数据的方法
|
|
@@ -29714,11 +29950,11 @@ var CalendarService = class extends MDControlService {
|
|
|
29714
29950
|
setCalendarConfigData(items, index) {
|
|
29715
29951
|
const { sysCalendarItems } = this.model;
|
|
29716
29952
|
if (!sysCalendarItems) {
|
|
29717
|
-
throw new
|
|
29953
|
+
throw new RuntimeError31("\u672A\u627E\u5230\u65E5\u5386\u9879\u6A21\u578B");
|
|
29718
29954
|
}
|
|
29719
29955
|
const calendarItem = sysCalendarItems[index];
|
|
29720
29956
|
if (!calendarItem) {
|
|
29721
|
-
throw new
|
|
29957
|
+
throw new RuntimeError31("\u672A\u627E\u5230\u65E5\u5386\u9879\u6A21\u578B");
|
|
29722
29958
|
}
|
|
29723
29959
|
return items.map((item) => {
|
|
29724
29960
|
return new CalendarItemData(calendarItem, item);
|
|
@@ -29908,11 +30144,11 @@ var CalendarController = class extends MDControlController {
|
|
|
29908
30144
|
};
|
|
29909
30145
|
|
|
29910
30146
|
// src/controller/control/chart/chart.controller.ts
|
|
29911
|
-
import { RuntimeError as
|
|
30147
|
+
import { RuntimeError as RuntimeError33 } from "@ibiz-template/core";
|
|
29912
30148
|
|
|
29913
30149
|
// src/controller/control/chart/generator/chart-options-generator.ts
|
|
29914
30150
|
import { mergeDeepRight as mergeDeepRight3 } from "ramda";
|
|
29915
|
-
import { RuntimeError as
|
|
30151
|
+
import { RuntimeError as RuntimeError32 } from "@ibiz-template/core";
|
|
29916
30152
|
|
|
29917
30153
|
// src/controller/control/chart/generator/line-series-generator.ts
|
|
29918
30154
|
import { RuntimeModelError as RuntimeModelError25 } from "@ibiz-template/core";
|
|
@@ -30855,7 +31091,7 @@ var ChartOptionsGenerator2 = class {
|
|
|
30855
31091
|
getSrfkeyByParams(params) {
|
|
30856
31092
|
const generator = this.seriesGenerators[params.seriesIndex];
|
|
30857
31093
|
if (!generator) {
|
|
30858
|
-
throw new
|
|
31094
|
+
throw new RuntimeError32("\u627E\u4E0D\u5230".concat(params.seriesIndex, "\u5E8F\u5217\u7684generator\uFF01"));
|
|
30859
31095
|
}
|
|
30860
31096
|
return generator.getSrfkeyByParams(params);
|
|
30861
31097
|
}
|
|
@@ -30967,10 +31203,10 @@ var ChartController = class extends MDControlController {
|
|
|
30967
31203
|
*/
|
|
30968
31204
|
updateChart() {
|
|
30969
31205
|
if (!this.chart) {
|
|
30970
|
-
throw new
|
|
31206
|
+
throw new RuntimeError33("chart\u5BF9\u8C61\u6CA1\u6709\u6B63\u786E\u521D\u59CB\u5316");
|
|
30971
31207
|
}
|
|
30972
31208
|
if (!this.options) {
|
|
30973
|
-
throw new
|
|
31209
|
+
throw new RuntimeError33("options\u8FD8\u6CA1\u8BA1\u7B97");
|
|
30974
31210
|
}
|
|
30975
31211
|
this.chart.setOption(this.options);
|
|
30976
31212
|
this.resizeChart();
|
|
@@ -31015,7 +31251,7 @@ var CaptionBarController = class extends ControlController {
|
|
|
31015
31251
|
};
|
|
31016
31252
|
|
|
31017
31253
|
// src/controller/control/toolbar/toolbar.controllerr.ts
|
|
31018
|
-
import { recursiveIterate, RuntimeError as
|
|
31254
|
+
import { recursiveIterate, RuntimeError as RuntimeError41 } from "@ibiz-template/core";
|
|
31019
31255
|
|
|
31020
31256
|
// src/ui-action/provider/backend-ui-action-provider.ts
|
|
31021
31257
|
import { RuntimeModelError as RuntimeModelError46 } from "@ibiz-template/core";
|
|
@@ -31025,7 +31261,7 @@ import { isArray as isArray9 } from "qx-util";
|
|
|
31025
31261
|
import { RuntimeModelError as RuntimeModelError45 } from "@ibiz-template/core";
|
|
31026
31262
|
|
|
31027
31263
|
// src/ui-logic/index.ts
|
|
31028
|
-
import { RuntimeError as
|
|
31264
|
+
import { RuntimeError as RuntimeError39 } from "@ibiz-template/core";
|
|
31029
31265
|
|
|
31030
31266
|
// src/ui-logic/ui-logic.ts
|
|
31031
31267
|
import { ModelError as ModelError24, RuntimeModelError as RuntimeModelError44 } from "@ibiz-template/core";
|
|
@@ -31104,6 +31340,7 @@ var UILogicContext = class {
|
|
|
31104
31340
|
}
|
|
31105
31341
|
/**
|
|
31106
31342
|
* 重置实体逻辑参数
|
|
31343
|
+
*
|
|
31107
31344
|
* @author lxm
|
|
31108
31345
|
* @date 2023-03-24 09:18:02
|
|
31109
31346
|
* @param {string} name
|
|
@@ -31114,6 +31351,7 @@ var UILogicContext = class {
|
|
|
31114
31351
|
}
|
|
31115
31352
|
/**
|
|
31116
31353
|
* 重新建立变量
|
|
31354
|
+
*
|
|
31117
31355
|
* @author lxm
|
|
31118
31356
|
* @date 2023-03-24 09:20:24
|
|
31119
31357
|
* @param {string} name
|
|
@@ -31124,6 +31362,7 @@ var UILogicContext = class {
|
|
|
31124
31362
|
}
|
|
31125
31363
|
/**
|
|
31126
31364
|
* 设置上一次返回值
|
|
31365
|
+
*
|
|
31127
31366
|
* @author lxm
|
|
31128
31367
|
* @date 2023-09-04 09:23:52
|
|
31129
31368
|
* @param {unknown} value
|
|
@@ -31133,6 +31372,7 @@ var UILogicContext = class {
|
|
|
31133
31372
|
}
|
|
31134
31373
|
/**
|
|
31135
31374
|
* 初始化上一次返回参数类型的逻辑参数
|
|
31375
|
+
*
|
|
31136
31376
|
* @author lxm
|
|
31137
31377
|
* @date 2023-09-04 09:52:00
|
|
31138
31378
|
* @param {string} tag
|
|
@@ -31146,6 +31386,7 @@ var UILogicContext = class {
|
|
|
31146
31386
|
}
|
|
31147
31387
|
/**
|
|
31148
31388
|
* 是否是实体参数变量(即后台数据对象)
|
|
31389
|
+
*
|
|
31149
31390
|
* @author lxm
|
|
31150
31391
|
* @date 2023-09-22 03:40:30
|
|
31151
31392
|
* @param {string} paramId
|
|
@@ -31556,7 +31797,7 @@ var EndNode2 = class extends UILogicNode {
|
|
|
31556
31797
|
};
|
|
31557
31798
|
|
|
31558
31799
|
// src/ui-logic/ui-logic-node/prepare-js-param-node/prepare-js-param-node.ts
|
|
31559
|
-
import { ModelError as ModelError21, RuntimeError as
|
|
31800
|
+
import { ModelError as ModelError21, RuntimeError as RuntimeError34 } from "@ibiz-template/core";
|
|
31560
31801
|
import { clone as clone16 } from "ramda";
|
|
31561
31802
|
var PrepareJSParamNode = class extends UILogicNode {
|
|
31562
31803
|
async exec(ctx) {
|
|
@@ -31606,7 +31847,7 @@ var PrepareJSParamNode = class extends UILogicNode {
|
|
|
31606
31847
|
setParamValue(nodeParam, ctx) {
|
|
31607
31848
|
const { dstFieldName, dstDEUILogicParamId } = nodeParam;
|
|
31608
31849
|
if (!dstDEUILogicParamId) {
|
|
31609
|
-
throw new
|
|
31850
|
+
throw new RuntimeError34("\u6CA1\u6709\u76EE\u6807\u53C2\u6570\u5BF9\u8C61id");
|
|
31610
31851
|
}
|
|
31611
31852
|
let dstField = dstFieldName;
|
|
31612
31853
|
if (ctx.isEntityParam(dstDEUILogicParamId)) {
|
|
@@ -31723,7 +31964,7 @@ var PrepareJSParamNode = class extends UILogicNode {
|
|
|
31723
31964
|
};
|
|
31724
31965
|
|
|
31725
31966
|
// src/ui-logic/ui-logic-node/view-ctrl-invoke-node/view-ctrl-invoke-node.ts
|
|
31726
|
-
import { RuntimeError as
|
|
31967
|
+
import { RuntimeError as RuntimeError35, RuntimeModelError as RuntimeModelError32 } from "@ibiz-template/core";
|
|
31727
31968
|
import { isFunction } from "lodash-es";
|
|
31728
31969
|
var ViewCtrlInvokeNode = class extends UILogicNode {
|
|
31729
31970
|
async exec(ctx) {
|
|
@@ -31740,14 +31981,14 @@ var ViewCtrlInvokeNode = class extends UILogicNode {
|
|
|
31740
31981
|
}
|
|
31741
31982
|
const invokeParam = ctx.params[invokeParamId];
|
|
31742
31983
|
if (!invokeParam) {
|
|
31743
|
-
throw new
|
|
31984
|
+
throw new RuntimeError35("\u6CA1\u6709\u627E\u5230\u64CD\u4F5C\u53C2\u6570".concat(invokeParamId));
|
|
31744
31985
|
}
|
|
31745
31986
|
const invokeCtrl = ctx.params[invokeCtrlId];
|
|
31746
31987
|
if (!invokeCtrl) {
|
|
31747
|
-
throw new
|
|
31988
|
+
throw new RuntimeError35("\u6CA1\u6709\u627E\u5230\u754C\u9762\u5BF9\u8C61".concat(invokeCtrlId));
|
|
31748
31989
|
}
|
|
31749
31990
|
if (!invokeCtrl[invokeMethod] || !isFunction(invokeCtrl[invokeMethod])) {
|
|
31750
|
-
throw new
|
|
31991
|
+
throw new RuntimeError35("\u6CA1\u6709\u627E\u5230\u8C03\u7528\u65B9\u6CD5".concat(invokeMethod));
|
|
31751
31992
|
}
|
|
31752
31993
|
await invokeCtrl[invokeMethod](invokeParam);
|
|
31753
31994
|
}
|
|
@@ -31836,6 +32077,16 @@ var MsgBoxNode = class extends UILogicNode {
|
|
|
31836
32077
|
}
|
|
31837
32078
|
};
|
|
31838
32079
|
|
|
32080
|
+
// src/ui-logic/ui-logic-node/pf-plugin-node/pf-plugin-node.ts
|
|
32081
|
+
var PFPluginNode = class extends UILogicNode {
|
|
32082
|
+
async exec(ctx) {
|
|
32083
|
+
const provider = await getUILogicNodeProvider(this.model);
|
|
32084
|
+
if (provider) {
|
|
32085
|
+
await provider.exec(this.model, ctx);
|
|
32086
|
+
}
|
|
32087
|
+
}
|
|
32088
|
+
};
|
|
32089
|
+
|
|
31839
32090
|
// src/ui-logic/ui-logic-node/debug-param-node/debug-param-node.ts
|
|
31840
32091
|
import { RuntimeModelError as RuntimeModelError35 } from "@ibiz-template/core";
|
|
31841
32092
|
var DebugParamNode = class extends UILogicNode {
|
|
@@ -31963,16 +32214,16 @@ var DataSetNode2 = class extends UILogicNode {
|
|
|
31963
32214
|
};
|
|
31964
32215
|
|
|
31965
32216
|
// src/ui-logic/ui-logic-node/throw-exception-node/throw-exception-node.ts
|
|
31966
|
-
import { RuntimeError as
|
|
32217
|
+
import { RuntimeError as RuntimeError36 } from "@ibiz-template/core";
|
|
31967
32218
|
var ThrowExceptionNode2 = class extends UILogicNode {
|
|
31968
32219
|
async exec(_ctx) {
|
|
31969
32220
|
const { errorInfo } = this.model;
|
|
31970
|
-
throw new
|
|
32221
|
+
throw new RuntimeError36(errorInfo);
|
|
31971
32222
|
}
|
|
31972
32223
|
};
|
|
31973
32224
|
|
|
31974
32225
|
// src/ui-logic/ui-logic-node/view-ctrl-fire-event-node/view-ctrl-fire-event-node.ts
|
|
31975
|
-
import { RuntimeError as
|
|
32226
|
+
import { RuntimeError as RuntimeError37, RuntimeModelError as RuntimeModelError42 } from "@ibiz-template/core";
|
|
31976
32227
|
var ViewCtrlFireEventNode = class extends UILogicNode {
|
|
31977
32228
|
async exec(ctx) {
|
|
31978
32229
|
ctx.isEndNode = true;
|
|
@@ -31988,18 +32239,18 @@ var ViewCtrlFireEventNode = class extends UILogicNode {
|
|
|
31988
32239
|
}
|
|
31989
32240
|
const invokeCtrl = ctx.params[fireCtrlId];
|
|
31990
32241
|
if (!invokeCtrl) {
|
|
31991
|
-
throw new
|
|
32242
|
+
throw new RuntimeError37("\u6CA1\u6709\u627E\u5230\u89E6\u53D1\u5BF9\u8C61".concat(fireCtrlId));
|
|
31992
32243
|
}
|
|
31993
32244
|
const eventParam = ctx.params[eventParamId];
|
|
31994
32245
|
if (!eventParam) {
|
|
31995
|
-
throw new
|
|
32246
|
+
throw new RuntimeError37("\u6CA1\u6709\u627E\u5230\u4E8B\u4EF6\u53C2\u6570\u5BF9\u8C61".concat(eventParamId));
|
|
31996
32247
|
}
|
|
31997
32248
|
await invokeCtrl.evt.emit(eventName, eventParam);
|
|
31998
32249
|
}
|
|
31999
32250
|
};
|
|
32000
32251
|
|
|
32001
32252
|
// src/ui-logic/ui-logic-node/execute-de-logic-node/execute-de-logic-node.ts
|
|
32002
|
-
import { RuntimeError as
|
|
32253
|
+
import { RuntimeError as RuntimeError38, RuntimeModelError as RuntimeModelError43 } from "@ibiz-template/core";
|
|
32003
32254
|
var ExecuteDELogicNode = class extends UILogicNode {
|
|
32004
32255
|
async exec(ctx) {
|
|
32005
32256
|
const {
|
|
@@ -32019,7 +32270,7 @@ var ExecuteDELogicNode = class extends UILogicNode {
|
|
|
32019
32270
|
}
|
|
32020
32271
|
const dstParam = ctx.params[dstDEUILogicParamId];
|
|
32021
32272
|
if (!dstParam) {
|
|
32022
|
-
throw new
|
|
32273
|
+
throw new RuntimeError38("\u6CA1\u6709\u627E\u5230\u4F20\u5165\u53C2\u6570".concat(dstDEUILogicParamId));
|
|
32023
32274
|
}
|
|
32024
32275
|
const result = await execDELogicById(
|
|
32025
32276
|
dstAppDELogicId,
|
|
@@ -32221,6 +32472,8 @@ var UILogic = class {
|
|
|
32221
32472
|
logicNode = new ExecuteDELogicNode(node);
|
|
32222
32473
|
break;
|
|
32223
32474
|
case "PFPLUGIN":
|
|
32475
|
+
logicNode = new PFPluginNode(node);
|
|
32476
|
+
break;
|
|
32224
32477
|
default:
|
|
32225
32478
|
throw new ModelError24(node, "\u672A\u652F\u6301\u7684\u903B\u8F91\u8282\u70B9\u7C7B\u578B: ".concat(logicNodeType));
|
|
32226
32479
|
}
|
|
@@ -32321,7 +32574,7 @@ async function execUILogic(deUILogicId, appDataEntityId, parameters) {
|
|
|
32321
32574
|
const app = ibiz.hub.getApp(parameters.context.srfappid);
|
|
32322
32575
|
const deUILogic = await app.getDEUILogic(deUILogicId, appDataEntityId);
|
|
32323
32576
|
if (!deUILogic) {
|
|
32324
|
-
throw new
|
|
32577
|
+
throw new RuntimeError39(
|
|
32325
32578
|
"\u627E\u4E0D\u5230\u5B9E\u4F53".concat(appDataEntityId, "\u7684\u754C\u9762\u903B\u8F91").concat(deUILogicId)
|
|
32326
32579
|
);
|
|
32327
32580
|
}
|
|
@@ -32334,7 +32587,7 @@ async function execUILogic(deUILogicId, appDataEntityId, parameters) {
|
|
|
32334
32587
|
}
|
|
32335
32588
|
|
|
32336
32589
|
// src/ui-action/uiaction-util.ts
|
|
32337
|
-
import { RuntimeError as
|
|
32590
|
+
import { RuntimeError as RuntimeError40 } from "@ibiz-template/core";
|
|
32338
32591
|
var UIActionUtil = class {
|
|
32339
32592
|
/**
|
|
32340
32593
|
* 执行界面行为
|
|
@@ -32349,7 +32602,7 @@ var UIActionUtil = class {
|
|
|
32349
32602
|
static async exec(actionId, params) {
|
|
32350
32603
|
const action = await getUIActionById(actionId);
|
|
32351
32604
|
if (!action) {
|
|
32352
|
-
throw new
|
|
32605
|
+
throw new RuntimeError40("\u6CA1\u627E\u5230".concat(actionId, "\u7684\u754C\u9762\u884C\u4E3A\u6A21\u578B"));
|
|
32353
32606
|
}
|
|
32354
32607
|
if (action.actionTarget === "SINGLEDATA") {
|
|
32355
32608
|
const validateResult = await params.view.call("Validate" /* VALIDATE */);
|
|
@@ -32879,7 +33132,7 @@ var ToolbarController = class extends ControlController {
|
|
|
32879
33132
|
const actionId = item.uiactionId;
|
|
32880
33133
|
const uiAction = await getUIActionById(actionId);
|
|
32881
33134
|
if (!uiAction) {
|
|
32882
|
-
throw new
|
|
33135
|
+
throw new RuntimeError41("\u6CA1\u6709\u627E\u5230\u754C\u9762\u884C\u4E3A\u6A21\u578B".concat(actionId));
|
|
32883
33136
|
}
|
|
32884
33137
|
const enableLoading = ["SYS", "BACKEND", "WFBACKEND"].includes(uiAction.uiactionMode) && uiAction.showBusyIndicator !== false;
|
|
32885
33138
|
if (enableLoading) {
|
|
@@ -33901,7 +34154,7 @@ var DataViewControlController = class extends MDControlController {
|
|
|
33901
34154
|
import { RuntimeModelError as RuntimeModelError50 } from "@ibiz-template/core";
|
|
33902
34155
|
|
|
33903
34156
|
// src/controller/control/exp-bar/exp-bar.controller.ts
|
|
33904
|
-
import { RuntimeError as
|
|
34157
|
+
import { RuntimeError as RuntimeError42, RuntimeModelError as RuntimeModelError49 } from "@ibiz-template/core";
|
|
33905
34158
|
var ExpBarControlController = class extends ControlController {
|
|
33906
34159
|
constructor() {
|
|
33907
34160
|
super(...arguments);
|
|
@@ -34215,7 +34468,7 @@ var ExpBarControlController = class extends ControlController {
|
|
|
34215
34468
|
if (["GRID", "DATAVIEW", "LIST"].includes(((_a = this.XDataModel) == null ? void 0 : _a.controlType) || "")) {
|
|
34216
34469
|
return this.XDataModel.navAppViewId;
|
|
34217
34470
|
}
|
|
34218
|
-
throw new
|
|
34471
|
+
throw new RuntimeError42("\u591A\u8282\u70B9\u89C6\u56FE\u7531\u5B50\u7C7B\u5B9E\u73B0");
|
|
34219
34472
|
}
|
|
34220
34473
|
/**
|
|
34221
34474
|
* 获取导航视图
|
|
@@ -34358,7 +34611,7 @@ var CalendarExpBarController = class extends ExpBarControlController {
|
|
|
34358
34611
|
};
|
|
34359
34612
|
|
|
34360
34613
|
// src/controller/control/exp-bar/tree-exp-bar.controller.ts
|
|
34361
|
-
import { RuntimeError as
|
|
34614
|
+
import { RuntimeError as RuntimeError43, RuntimeModelError as RuntimeModelError51 } from "@ibiz-template/core";
|
|
34362
34615
|
var TreeExpBarController = class extends ExpBarControlController {
|
|
34363
34616
|
constructor() {
|
|
34364
34617
|
super(...arguments);
|
|
@@ -34433,7 +34686,7 @@ var TreeExpBarController = class extends ExpBarControlController {
|
|
|
34433
34686
|
const deData = node.deData || node;
|
|
34434
34687
|
const nodeModel = this.getNodeModel(node.nodeId);
|
|
34435
34688
|
if (!nodeModel) {
|
|
34436
|
-
throw new
|
|
34689
|
+
throw new RuntimeError43("\u627E\u4E0D\u5230".concat(node.nodeId, "\u7684\u8282\u70B9\u6A21\u578B"));
|
|
34437
34690
|
}
|
|
34438
34691
|
const result = this.prepareParams(nodeModel, deData, context, params);
|
|
34439
34692
|
result.context.currentSrfNav = nodeId;
|
|
@@ -35004,9 +35257,9 @@ var FormDetailController = class {
|
|
|
35004
35257
|
* @protected
|
|
35005
35258
|
*/
|
|
35006
35259
|
this.dynaLogicResult = {
|
|
35007
|
-
visible:
|
|
35008
|
-
disabled:
|
|
35009
|
-
required:
|
|
35260
|
+
visible: void 0,
|
|
35261
|
+
disabled: void 0,
|
|
35262
|
+
required: void 0
|
|
35010
35263
|
};
|
|
35011
35264
|
this.model = model;
|
|
35012
35265
|
this.form = form;
|
|
@@ -35180,16 +35433,18 @@ var FormDetailController = class {
|
|
|
35180
35433
|
* @param {IData} data
|
|
35181
35434
|
*/
|
|
35182
35435
|
calcDetailDisabled(data) {
|
|
35183
|
-
let
|
|
35184
|
-
if (
|
|
35436
|
+
let { disabled } = this.dynaLogicResult;
|
|
35437
|
+
if (disabled !== true && this.form.scheduler) {
|
|
35185
35438
|
const itemEnable = this.form.scheduler.triggerItemEnable(this.model.id, {
|
|
35186
35439
|
data: [data]
|
|
35187
35440
|
});
|
|
35188
35441
|
if (itemEnable !== void 0) {
|
|
35189
|
-
|
|
35442
|
+
disabled = !itemEnable;
|
|
35190
35443
|
}
|
|
35191
35444
|
}
|
|
35192
|
-
|
|
35445
|
+
if (disabled !== void 0) {
|
|
35446
|
+
this.state.disabled = disabled;
|
|
35447
|
+
}
|
|
35193
35448
|
}
|
|
35194
35449
|
/**
|
|
35195
35450
|
* 计算项的显示状态
|
|
@@ -35198,7 +35453,7 @@ var FormDetailController = class {
|
|
|
35198
35453
|
*/
|
|
35199
35454
|
calcDetailVisible(data) {
|
|
35200
35455
|
let { visible } = this.dynaLogicResult;
|
|
35201
|
-
if (visible && this.form.scheduler) {
|
|
35456
|
+
if (visible !== false && this.form.scheduler) {
|
|
35202
35457
|
const itemVIsible = this.form.scheduler.triggerItemVisible(
|
|
35203
35458
|
this.model.id,
|
|
35204
35459
|
{
|
|
@@ -35209,7 +35464,9 @@ var FormDetailController = class {
|
|
|
35209
35464
|
visible = itemVIsible;
|
|
35210
35465
|
}
|
|
35211
35466
|
}
|
|
35212
|
-
|
|
35467
|
+
if (visible !== void 0) {
|
|
35468
|
+
this.state.visible = visible;
|
|
35469
|
+
}
|
|
35213
35470
|
}
|
|
35214
35471
|
/**
|
|
35215
35472
|
* 计算项的必填状态
|
|
@@ -35217,8 +35474,8 @@ var FormDetailController = class {
|
|
|
35217
35474
|
* @param {IData} data
|
|
35218
35475
|
*/
|
|
35219
35476
|
calcDetailRequired(data) {
|
|
35220
|
-
let
|
|
35221
|
-
if (
|
|
35477
|
+
let { required } = this.dynaLogicResult;
|
|
35478
|
+
if (required !== true && this.form.scheduler) {
|
|
35222
35479
|
const itemAllowEmpty = this.form.scheduler.triggerItemBlank(
|
|
35223
35480
|
this.model.id,
|
|
35224
35481
|
{
|
|
@@ -35226,10 +35483,12 @@ var FormDetailController = class {
|
|
|
35226
35483
|
}
|
|
35227
35484
|
);
|
|
35228
35485
|
if (itemAllowEmpty !== void 0) {
|
|
35229
|
-
|
|
35486
|
+
required = !itemAllowEmpty;
|
|
35230
35487
|
}
|
|
35231
35488
|
}
|
|
35232
|
-
|
|
35489
|
+
if (required !== void 0) {
|
|
35490
|
+
this.state.required = required;
|
|
35491
|
+
}
|
|
35233
35492
|
}
|
|
35234
35493
|
};
|
|
35235
35494
|
|
|
@@ -35528,8 +35787,8 @@ var FormGroupPanelController = class extends FormDetailController {
|
|
|
35528
35787
|
super.onInit();
|
|
35529
35788
|
await this.initActionStates();
|
|
35530
35789
|
}
|
|
35531
|
-
async formStateNotify(
|
|
35532
|
-
super.
|
|
35790
|
+
async formStateNotify(state) {
|
|
35791
|
+
super.formStateNotify(state);
|
|
35533
35792
|
if (this.state.actionGroupState) {
|
|
35534
35793
|
this.state.actionGroupState.update(this.form.data.getOrigin());
|
|
35535
35794
|
}
|
|
@@ -35942,10 +36201,11 @@ var FormMDCtrlContentTypeController = class {
|
|
|
35942
36201
|
* @memberof FormMDCtrlController
|
|
35943
36202
|
*/
|
|
35944
36203
|
onDataRemove(index) {
|
|
36204
|
+
var _a;
|
|
35945
36205
|
if (index < 0) {
|
|
35946
36206
|
return;
|
|
35947
36207
|
}
|
|
35948
|
-
this.parent.state.contentCtrlData.splice(index, 1);
|
|
36208
|
+
(_a = this.parent.state.contentCtrlData) == null ? void 0 : _a.splice(index, 1);
|
|
35949
36209
|
this.parent.setFormDataValue();
|
|
35950
36210
|
}
|
|
35951
36211
|
/**
|
|
@@ -35957,7 +36217,8 @@ var FormMDCtrlContentTypeController = class {
|
|
|
35957
36217
|
* @memberof FormMDCtrlContentTypeController
|
|
35958
36218
|
*/
|
|
35959
36219
|
onDataInsert(data) {
|
|
35960
|
-
|
|
36220
|
+
var _a;
|
|
36221
|
+
(_a = this.parent.state.contentCtrlData) == null ? void 0 : _a.push(data || {});
|
|
35961
36222
|
this.parent.setFormDataValue();
|
|
35962
36223
|
}
|
|
35963
36224
|
/**
|
|
@@ -35996,8 +36257,11 @@ var FormMDCtrlContentTypeController = class {
|
|
|
35996
36257
|
}
|
|
35997
36258
|
};
|
|
35998
36259
|
|
|
36260
|
+
// src/controller/control/form/form-detail/form-mdctrl/form-mdctrl.controller.ts
|
|
36261
|
+
import { clone as clone19 } from "ramda";
|
|
36262
|
+
|
|
35999
36263
|
// src/controller/control/form/form-detail/form-mdctrl/form-mdctrl-control/form-mdctrl-control.controller.ts
|
|
36000
|
-
import { RuntimeError as
|
|
36264
|
+
import { RuntimeError as RuntimeError44 } from "@ibiz-template/core";
|
|
36001
36265
|
var FormMDCtrlControlController = class extends FormMDCtrlContentTypeController {
|
|
36002
36266
|
/**
|
|
36003
36267
|
* 初始化
|
|
@@ -36012,7 +36276,7 @@ var FormMDCtrlControlController = class extends FormMDCtrlContentTypeController
|
|
|
36012
36276
|
const { model } = this.parent;
|
|
36013
36277
|
const { contentControl } = model;
|
|
36014
36278
|
if (!contentControl) {
|
|
36015
|
-
throw new
|
|
36279
|
+
throw new RuntimeError44("\u8868\u5355\u591A\u6570\u636E\u90E8\u4EF6\u672A\u914D\u7F6E\u5D4C\u5165\u90E8\u4EF6");
|
|
36016
36280
|
}
|
|
36017
36281
|
this.controlModel = contentControl;
|
|
36018
36282
|
const controlProvider = await getControlProvider(this.controlModel);
|
|
@@ -36122,7 +36386,7 @@ import { isArray as isArray10 } from "lodash-es";
|
|
|
36122
36386
|
import {
|
|
36123
36387
|
awaitTimeout,
|
|
36124
36388
|
mergeInLeft,
|
|
36125
|
-
RuntimeError as
|
|
36389
|
+
RuntimeError as RuntimeError45,
|
|
36126
36390
|
mergeDefaultInLeft as mergeDefaultInLeft2
|
|
36127
36391
|
} from "@ibiz-template/core";
|
|
36128
36392
|
import { debounce as debounce2 } from "lodash-es";
|
|
@@ -36567,7 +36831,7 @@ var EditFormController = class extends FormController {
|
|
|
36567
36831
|
}
|
|
36568
36832
|
const isValid = await this.validate();
|
|
36569
36833
|
if (!isValid) {
|
|
36570
|
-
throw new
|
|
36834
|
+
throw new RuntimeError45("\u8BF7\u68C0\u67E5\u8868\u5355\u586B\u5199\uFF01");
|
|
36571
36835
|
}
|
|
36572
36836
|
await this.startLoading();
|
|
36573
36837
|
await this.evt.emit("onBeforeSave", void 0);
|
|
@@ -36680,7 +36944,7 @@ var EditFormController = class extends FormController {
|
|
|
36680
36944
|
(item) => item.id === formItemUpdateId
|
|
36681
36945
|
);
|
|
36682
36946
|
if (!formItemUpdate) {
|
|
36683
|
-
throw new
|
|
36947
|
+
throw new RuntimeError45("\u6CA1\u627E\u5230".concat(formItemUpdateId, "\u8868\u5355\u9879\u66F4\u65B0"));
|
|
36684
36948
|
}
|
|
36685
36949
|
const { appDEMethodId, defiupdateDetails, customCode, scriptCode } = formItemUpdate;
|
|
36686
36950
|
const updateItems = defiupdateDetails == null ? void 0 : defiupdateDetails.map((item) => item.id);
|
|
@@ -36724,7 +36988,7 @@ var EditFormController = class extends FormController {
|
|
|
36724
36988
|
async wfStart(args) {
|
|
36725
36989
|
const isValid = await this.validate();
|
|
36726
36990
|
if (!isValid) {
|
|
36727
|
-
throw new
|
|
36991
|
+
throw new RuntimeError45("\u8BF7\u68C0\u67E5\u8868\u5355\u586B\u5199\uFF01");
|
|
36728
36992
|
}
|
|
36729
36993
|
await this.startLoading();
|
|
36730
36994
|
const { context, params } = this.handlerAbilityParams(args);
|
|
@@ -36754,7 +37018,7 @@ var EditFormController = class extends FormController {
|
|
|
36754
37018
|
async wfSubmit(args) {
|
|
36755
37019
|
const isValid = await this.validate();
|
|
36756
37020
|
if (!isValid) {
|
|
36757
|
-
throw new
|
|
37021
|
+
throw new RuntimeError45("\u8BF7\u68C0\u67E5\u8868\u5355\u586B\u5199\uFF01");
|
|
36758
37022
|
}
|
|
36759
37023
|
await this.startLoading();
|
|
36760
37024
|
const { context, params } = this.handlerAbilityParams(args);
|
|
@@ -36982,7 +37246,7 @@ var FormMDCtrlFormController = class extends FormMDCtrlControlController {
|
|
|
36982
37246
|
};
|
|
36983
37247
|
|
|
36984
37248
|
// src/controller/control/form/form-detail/form-mdctrl/form-mdctrl-grid/form-mdctrl-grid.controller.ts
|
|
36985
|
-
import { RuntimeError as
|
|
37249
|
+
import { RuntimeError as RuntimeError46, mergeInLeft as mergeInLeft3 } from "@ibiz-template/core";
|
|
36986
37250
|
var FormMDCtrlGridController = class extends FormMDCtrlControlController {
|
|
36987
37251
|
constructor() {
|
|
36988
37252
|
super(...arguments);
|
|
@@ -37087,7 +37351,7 @@ var FormMDCtrlGridController = class extends FormMDCtrlControlController {
|
|
|
37087
37351
|
const { model } = this.parent;
|
|
37088
37352
|
const { contentControl } = model;
|
|
37089
37353
|
if (!contentControl) {
|
|
37090
|
-
throw new
|
|
37354
|
+
throw new RuntimeError46("\u8868\u5355\u591A\u6570\u636E\u90E8\u4EF6\u672A\u914D\u7F6E\u5D4C\u5165\u90E8\u4EF6");
|
|
37091
37355
|
}
|
|
37092
37356
|
mergeInLeft3(contentControl, { enableRowEdit: true, enableRowNew: true });
|
|
37093
37357
|
this.controlModel = contentControl;
|
|
@@ -37395,6 +37659,28 @@ var FormMDCtrlState = class extends FormDetailState {
|
|
|
37395
37659
|
|
|
37396
37660
|
// src/controller/control/form/form-detail/form-mdctrl/form-mdctrl.controller.ts
|
|
37397
37661
|
var FormMDCtrlController = class extends FormDetailController {
|
|
37662
|
+
/**
|
|
37663
|
+
* 是否显示添加按钮
|
|
37664
|
+
*
|
|
37665
|
+
* @memberof FormMDCtrlController
|
|
37666
|
+
*/
|
|
37667
|
+
get isCreate() {
|
|
37668
|
+
if (this.model.buildInActions) {
|
|
37669
|
+
return [1, 3, 5, 7].includes(this.model.buildInActions);
|
|
37670
|
+
}
|
|
37671
|
+
return false;
|
|
37672
|
+
}
|
|
37673
|
+
/**
|
|
37674
|
+
* 是否显示删除按钮
|
|
37675
|
+
*
|
|
37676
|
+
* @memberof FormMDCtrlController
|
|
37677
|
+
*/
|
|
37678
|
+
get isDelete() {
|
|
37679
|
+
if (this.model.buildInActions) {
|
|
37680
|
+
return [4, 5, 6, 7].includes(this.model.buildInActions);
|
|
37681
|
+
}
|
|
37682
|
+
return false;
|
|
37683
|
+
}
|
|
37398
37684
|
/**
|
|
37399
37685
|
* Creates an instance of FormMDCtrlController.
|
|
37400
37686
|
*
|
|
@@ -37473,7 +37759,7 @@ var FormMDCtrlController = class extends FormDetailController {
|
|
|
37473
37759
|
setFormDataValue() {
|
|
37474
37760
|
const name = this.model.appDEFieldId || this.model.fieldName || this.model.id;
|
|
37475
37761
|
if (name) {
|
|
37476
|
-
this.form.setDataValue(name, this.state.contentCtrlData);
|
|
37762
|
+
this.form.setDataValue(name, clone19(this.state.contentCtrlData));
|
|
37477
37763
|
}
|
|
37478
37764
|
}
|
|
37479
37765
|
/**
|
|
@@ -37495,6 +37781,38 @@ var FormMDCtrlController = class extends FormDetailController {
|
|
|
37495
37781
|
*/
|
|
37496
37782
|
setDefaultValue() {
|
|
37497
37783
|
}
|
|
37784
|
+
/**
|
|
37785
|
+
* 表单数据变更通知
|
|
37786
|
+
*
|
|
37787
|
+
* @author lxm
|
|
37788
|
+
* @date 2022-09-20 18:09:56
|
|
37789
|
+
* @param {string[]} names
|
|
37790
|
+
*/
|
|
37791
|
+
async dataChangeNotify(names) {
|
|
37792
|
+
await super.dataChangeNotify(names);
|
|
37793
|
+
const { resetItemNames } = this.model;
|
|
37794
|
+
const mdctrlName = this.model.appDEFieldId || this.model.fieldName || this.model.id;
|
|
37795
|
+
let isReset = false;
|
|
37796
|
+
if (resetItemNames && resetItemNames.length > 0) {
|
|
37797
|
+
resetItemNames.forEach((resetItemName) => {
|
|
37798
|
+
if (names.includes(resetItemName)) {
|
|
37799
|
+
isReset = true;
|
|
37800
|
+
}
|
|
37801
|
+
});
|
|
37802
|
+
}
|
|
37803
|
+
if (isReset) {
|
|
37804
|
+
this.state.contentCtrlData = null;
|
|
37805
|
+
this.setFormDataValue();
|
|
37806
|
+
}
|
|
37807
|
+
if (names.includes(mdctrlName)) {
|
|
37808
|
+
this.validate();
|
|
37809
|
+
}
|
|
37810
|
+
if (names.includes(mdctrlName) && this.model.deformItemUpdateId) {
|
|
37811
|
+
await this.form.updateFormItem(
|
|
37812
|
+
this.model.deformItemUpdateId
|
|
37813
|
+
);
|
|
37814
|
+
}
|
|
37815
|
+
}
|
|
37498
37816
|
};
|
|
37499
37817
|
|
|
37500
37818
|
// src/controller/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/form-mdctrl-repeater-form/form-mdctrl-repeater-form-item.controller.ts
|
|
@@ -37798,10 +38116,10 @@ import {
|
|
|
37798
38116
|
debounceAndAsyncMerge as debounceAndAsyncMerge2,
|
|
37799
38117
|
mergeDefaultInLeft as mergeDefaultInLeft3,
|
|
37800
38118
|
recursiveIterate as recursiveIterate5,
|
|
37801
|
-
RuntimeError as
|
|
38119
|
+
RuntimeError as RuntimeError47,
|
|
37802
38120
|
RuntimeModelError as RuntimeModelError53
|
|
37803
38121
|
} from "@ibiz-template/core";
|
|
37804
|
-
import { clone as
|
|
38122
|
+
import { clone as clone20 } from "ramda";
|
|
37805
38123
|
|
|
37806
38124
|
// src/controller/control/grid/grid/grid.service.ts
|
|
37807
38125
|
var GridService = class extends MDControlService {
|
|
@@ -38172,7 +38490,7 @@ var GridController = class extends MDControlController {
|
|
|
38172
38490
|
if (editShowMode === "row") {
|
|
38173
38491
|
const editingRow = this.state.rows.find((item) => item.showRowEdit);
|
|
38174
38492
|
if (editingRow) {
|
|
38175
|
-
throw new
|
|
38493
|
+
throw new RuntimeError47("\u8BF7\u5148\u5B8C\u6210\u5F53\u524D\u884C\u7F16\u8F91\u4E2D\u7684\u884C\u7684\u64CD\u4F5C");
|
|
38176
38494
|
}
|
|
38177
38495
|
}
|
|
38178
38496
|
const queryParams = { ...this.params };
|
|
@@ -38213,7 +38531,7 @@ var GridController = class extends MDControlController {
|
|
|
38213
38531
|
const isCreate = data.srfuf === 0 /* CREATE */;
|
|
38214
38532
|
const rowState = this.findRowState(data);
|
|
38215
38533
|
if (!rowState) {
|
|
38216
|
-
throw new
|
|
38534
|
+
throw new RuntimeError47("\u884C\u6570\u636E\u4E0D\u5B58\u5728");
|
|
38217
38535
|
}
|
|
38218
38536
|
if (!rowState.modified) {
|
|
38219
38537
|
ibiz.log.debug("\u503C\u6CA1\u6709\u53D1\u751F\u6539\u53D8");
|
|
@@ -38225,7 +38543,7 @@ var GridController = class extends MDControlController {
|
|
|
38225
38543
|
}
|
|
38226
38544
|
const isValid = await this.validate(rowState);
|
|
38227
38545
|
if (!isValid) {
|
|
38228
|
-
throw new
|
|
38546
|
+
throw new RuntimeError47("\u884C\u6570\u636E\u6821\u9A8C\u4E0D\u901A\u8FC7\uFF0C\u4FDD\u5B58\u53D6\u6D88");
|
|
38229
38547
|
}
|
|
38230
38548
|
await this.startLoading();
|
|
38231
38549
|
let res;
|
|
@@ -38425,7 +38743,7 @@ var GridController = class extends MDControlController {
|
|
|
38425
38743
|
}
|
|
38426
38744
|
async toggleRowEdit() {
|
|
38427
38745
|
if (!this.model.enableRowNew) {
|
|
38428
|
-
throw new
|
|
38746
|
+
throw new RuntimeError47("\u5F53\u524D\u8868\u683C\u4E0D\u652F\u6301\u884C\u7F16\u8F91\uFF0C\u65E0\u6CD5\u5207\u6362\u5F00\u542F\u884C\u7F16\u8F91");
|
|
38429
38747
|
}
|
|
38430
38748
|
this.state.rowEditOpen = !this.state.rowEditOpen;
|
|
38431
38749
|
}
|
|
@@ -38458,10 +38776,10 @@ var GridController = class extends MDControlController {
|
|
|
38458
38776
|
} else {
|
|
38459
38777
|
const editingRow = this.state.rows.find((item) => item.showRowEdit);
|
|
38460
38778
|
if (editingRow) {
|
|
38461
|
-
throw new
|
|
38779
|
+
throw new RuntimeError47("\u540C\u65F6\u53EA\u80FD\u6709\u4E00\u884C\u5F00\u542F\u884C\u7F16\u8F91");
|
|
38462
38780
|
}
|
|
38463
38781
|
if (row.data.srfuf === 1 /* UPDATE */) {
|
|
38464
|
-
row.cacheData =
|
|
38782
|
+
row.cacheData = clone20(row.data);
|
|
38465
38783
|
const defaultVal = this.calcDefaultValue(row.data, false);
|
|
38466
38784
|
Object.assign(row.data, defaultVal);
|
|
38467
38785
|
}
|
|
@@ -38508,7 +38826,7 @@ var GridController = class extends MDControlController {
|
|
|
38508
38826
|
(item) => item.id === updateId
|
|
38509
38827
|
);
|
|
38510
38828
|
if (!findUpdate) {
|
|
38511
|
-
throw new
|
|
38829
|
+
throw new RuntimeError47("\u6CA1\u627E\u5230".concat(updateId, "\u7F16\u8F91\u5217\u66F4\u65B0"));
|
|
38512
38830
|
}
|
|
38513
38831
|
const { appDEMethodId, degeiupdateDetails, customCode, scriptCode } = findUpdate;
|
|
38514
38832
|
const updateItems = degeiupdateDetails.map((item) => item.id);
|
|
@@ -38572,28 +38890,11 @@ var GridController = class extends MDControlController {
|
|
|
38572
38890
|
async exportData(_args) {
|
|
38573
38891
|
const items = this.fieldColumns;
|
|
38574
38892
|
const formatExcelData = (data2) => {
|
|
38575
|
-
const
|
|
38576
|
-
Object.keys(items).forEach((key) => {
|
|
38577
|
-
if (items[key].codeList) {
|
|
38578
|
-
codeListMap.set(key, items[key].codeListItems);
|
|
38579
|
-
}
|
|
38580
|
-
});
|
|
38581
|
-
const cloneData = clone19(
|
|
38893
|
+
const cloneData = clone20(
|
|
38582
38894
|
data2.map((item) => {
|
|
38583
38895
|
return item.getOrigin();
|
|
38584
38896
|
})
|
|
38585
38897
|
);
|
|
38586
|
-
cloneData.forEach((item) => {
|
|
38587
|
-
const fields = Object.keys(item);
|
|
38588
|
-
fields.forEach((key) => {
|
|
38589
|
-
var _a;
|
|
38590
|
-
if (codeListMap.get(key)) {
|
|
38591
|
-
item[key] = ((_a = codeListMap.get(key).find((_item) => {
|
|
38592
|
-
return _item.value === item[key];
|
|
38593
|
-
})) == null ? void 0 : _a.text) || item[key];
|
|
38594
|
-
}
|
|
38595
|
-
});
|
|
38596
|
-
});
|
|
38597
38898
|
return cloneData;
|
|
38598
38899
|
};
|
|
38599
38900
|
const getExportData = async () => {
|
|
@@ -38617,7 +38918,7 @@ var GridController = class extends MDControlController {
|
|
|
38617
38918
|
data2 = this.getData();
|
|
38618
38919
|
}
|
|
38619
38920
|
if (data2.length === 0) {
|
|
38620
|
-
throw new
|
|
38921
|
+
throw new RuntimeError47("\u65E0\u5BFC\u51FA\u6570\u636E");
|
|
38621
38922
|
}
|
|
38622
38923
|
return formatExcelData(data2);
|
|
38623
38924
|
};
|
|
@@ -38635,23 +38936,7 @@ var GridController = class extends MDControlController {
|
|
|
38635
38936
|
(key) => items[key].model.caption
|
|
38636
38937
|
);
|
|
38637
38938
|
const data = formatArrayData(filterVal, await getExportData());
|
|
38638
|
-
|
|
38639
|
-
throw new RuntimeError45("ibiz.util.getExportExcel\u4E0D\u5B58\u5728");
|
|
38640
|
-
}
|
|
38641
|
-
const exportExcel = await ibiz.util.getExportExcel();
|
|
38642
|
-
if (!exportExcel) {
|
|
38643
|
-
throw new RuntimeError45("\u5BFC\u51FA\u6A21\u5757\u52A0\u8F7D\u9519\u8BEF");
|
|
38644
|
-
}
|
|
38645
|
-
exportExcel.exportJsonToExcel({
|
|
38646
|
-
header,
|
|
38647
|
-
// 表头内容 数组格式
|
|
38648
|
-
data,
|
|
38649
|
-
// 具体数据 这是个二维数组
|
|
38650
|
-
filename: this.model.logicName,
|
|
38651
|
-
// 文件名称
|
|
38652
|
-
autoWidth: true
|
|
38653
|
-
// 单元格是否自适应
|
|
38654
|
-
});
|
|
38939
|
+
await exportData(header, data, this.model.logicName);
|
|
38655
38940
|
}
|
|
38656
38941
|
/**
|
|
38657
38942
|
* 计算默认值并返回一个对象,对象里的属性就是要填充的默认值
|
|
@@ -38714,7 +38999,7 @@ var GridController = class extends MDControlController {
|
|
|
38714
38999
|
import { DataTypes as DataTypes3, ModelError as ModelError26 } from "@ibiz-template/core";
|
|
38715
39000
|
import dayjs4 from "dayjs";
|
|
38716
39001
|
import { debounce as debounce3 } from "lodash-es";
|
|
38717
|
-
import { clone as
|
|
39002
|
+
import { clone as clone21, isNil as isNil21 } from "ramda";
|
|
38718
39003
|
var GridFieldColumnController = class extends GridColumnController {
|
|
38719
39004
|
constructor() {
|
|
38720
39005
|
super(...arguments);
|
|
@@ -38818,7 +39103,7 @@ var GridFieldColumnController = class extends GridColumnController {
|
|
|
38818
39103
|
srfkey: value,
|
|
38819
39104
|
...wfContext
|
|
38820
39105
|
});
|
|
38821
|
-
const tempParams =
|
|
39106
|
+
const tempParams = clone21(this.params);
|
|
38822
39107
|
const { context: newContext, params: newParams } = this.handlePublicParams(
|
|
38823
39108
|
row.data,
|
|
38824
39109
|
tempContext,
|
|
@@ -39014,7 +39299,7 @@ var GridUAColumnController = class extends GridColumnController {
|
|
|
39014
39299
|
};
|
|
39015
39300
|
|
|
39016
39301
|
// src/controller/control/grid/grid-column/grid-field-edit-column/grid-field-edit-column.controller.ts
|
|
39017
|
-
import { RuntimeError as
|
|
39302
|
+
import { RuntimeError as RuntimeError48 } from "@ibiz-template/core";
|
|
39018
39303
|
import Schema2 from "async-validator";
|
|
39019
39304
|
import { isNilOrEmpty as isNilOrEmpty9 } from "qx-util";
|
|
39020
39305
|
var GridFieldEditColumnController = class extends GridFieldColumnController {
|
|
@@ -39151,7 +39436,7 @@ var GridFieldEditColumnController = class extends GridFieldColumnController {
|
|
|
39151
39436
|
if (requiredChanged || names.includes(this.fieldName) || names.includes(this.valueItemName)) {
|
|
39152
39437
|
const result = await this.validate(row);
|
|
39153
39438
|
if (!result) {
|
|
39154
|
-
throw new
|
|
39439
|
+
throw new RuntimeError48(
|
|
39155
39440
|
"".concat(this.editItem.codeName, "\u6821\u9A8C\u62A5\u9519,").concat(row.errors[this.fieldName])
|
|
39156
39441
|
);
|
|
39157
39442
|
}
|
|
@@ -39509,7 +39794,7 @@ var ListController = class extends MDControlController {
|
|
|
39509
39794
|
};
|
|
39510
39795
|
|
|
39511
39796
|
// src/controller/control/panel/panel/panel.controller.ts
|
|
39512
|
-
import { recursiveIterate as recursiveIterate6, RuntimeError as
|
|
39797
|
+
import { recursiveIterate as recursiveIterate6, RuntimeError as RuntimeError49 } from "@ibiz-template/core";
|
|
39513
39798
|
var PanelController = class extends ControlController {
|
|
39514
39799
|
constructor() {
|
|
39515
39800
|
super(...arguments);
|
|
@@ -39571,6 +39856,14 @@ var PanelController = class extends ControlController {
|
|
|
39571
39856
|
async onMounted() {
|
|
39572
39857
|
this.load();
|
|
39573
39858
|
}
|
|
39859
|
+
async onDestroyed() {
|
|
39860
|
+
var _a, _b;
|
|
39861
|
+
await super.onDestroyed();
|
|
39862
|
+
(_b = (_a = this.data).destroy) == null ? void 0 : _b.call(_a);
|
|
39863
|
+
Object.values(this.panelItems).forEach((item) => {
|
|
39864
|
+
item.destroy();
|
|
39865
|
+
});
|
|
39866
|
+
}
|
|
39574
39867
|
/**
|
|
39575
39868
|
* 初始化面板成员控制器
|
|
39576
39869
|
*
|
|
@@ -39621,11 +39914,13 @@ var PanelController = class extends ControlController {
|
|
|
39621
39914
|
* @memberof PanelController
|
|
39622
39915
|
*/
|
|
39623
39916
|
async load() {
|
|
39917
|
+
var _a, _b;
|
|
39624
39918
|
const data = await this.prepareData();
|
|
39625
39919
|
if (!data) {
|
|
39626
|
-
throw new
|
|
39920
|
+
throw new RuntimeError49("\u672A\u83B7\u53D6\u5230\u9762\u677F\u6570\u636E");
|
|
39627
39921
|
}
|
|
39628
39922
|
const panelData = this.convertData(data);
|
|
39923
|
+
(_b = (_a = this.data).destroy) == null ? void 0 : _b.call(_a);
|
|
39629
39924
|
this.state.data = panelData;
|
|
39630
39925
|
this.panelStateNotify("LOAD" /* LOAD */);
|
|
39631
39926
|
}
|
|
@@ -39660,7 +39955,15 @@ var PanelController = class extends ControlController {
|
|
|
39660
39955
|
* @memberof PanelController
|
|
39661
39956
|
*/
|
|
39662
39957
|
convertData(data) {
|
|
39663
|
-
|
|
39958
|
+
const fields = getAllPanelField(this.model);
|
|
39959
|
+
const fieldKeys = fields.map((item) => item.id);
|
|
39960
|
+
const panelData = new PanelData(fields, data);
|
|
39961
|
+
panelData._evt.on("change", (key) => {
|
|
39962
|
+
if (fieldKeys.includes(key)) {
|
|
39963
|
+
this.dataChangeNotify([key]);
|
|
39964
|
+
}
|
|
39965
|
+
});
|
|
39966
|
+
return panelData;
|
|
39664
39967
|
}
|
|
39665
39968
|
/**
|
|
39666
39969
|
* 通知所有面板成员面板操作过程中的数据变更
|
|
@@ -39696,7 +39999,6 @@ var PanelController = class extends ControlController {
|
|
|
39696
39999
|
return;
|
|
39697
40000
|
}
|
|
39698
40001
|
this.state.data[name] = value;
|
|
39699
|
-
this.dataChangeNotify([name]);
|
|
39700
40002
|
}
|
|
39701
40003
|
initControlScheduler(logics = []) {
|
|
39702
40004
|
const actualLogics = [...logics];
|
|
@@ -39919,6 +40221,8 @@ var PanelItemController = class {
|
|
|
39919
40221
|
this.state.class.label.push(labelSysCss.cssName);
|
|
39920
40222
|
}
|
|
39921
40223
|
}
|
|
40224
|
+
destroy() {
|
|
40225
|
+
}
|
|
39922
40226
|
/**
|
|
39923
40227
|
* 创建面板状态对象
|
|
39924
40228
|
*
|
|
@@ -41229,7 +41533,7 @@ var TreeController = class extends MDControlController {
|
|
|
41229
41533
|
};
|
|
41230
41534
|
|
|
41231
41535
|
// src/controller/control/wizard-panel/wizard-panel.controller.ts
|
|
41232
|
-
import { RuntimeError as
|
|
41536
|
+
import { RuntimeError as RuntimeError50 } from "@ibiz-template/core";
|
|
41233
41537
|
|
|
41234
41538
|
// src/controller/control/wizard-panel/wizard-panel.service.ts
|
|
41235
41539
|
var WizardPanelService = class extends ControlService {
|
|
@@ -41388,7 +41692,7 @@ var WizardPanelController = class extends ControlController {
|
|
|
41388
41692
|
const { activeFormTag } = this.state;
|
|
41389
41693
|
const controller = this.formControllers.get(activeFormTag);
|
|
41390
41694
|
if (!controller) {
|
|
41391
|
-
throw new
|
|
41695
|
+
throw new RuntimeError50("\u627E\u4E0D\u5230".concat(activeFormTag, "\u7684\u8868\u5355\u63A7\u5236\u5668"));
|
|
41392
41696
|
}
|
|
41393
41697
|
return controller;
|
|
41394
41698
|
}
|
|
@@ -41463,7 +41767,7 @@ var WizardPanelController = class extends ControlController {
|
|
|
41463
41767
|
this.tagHistory.pop();
|
|
41464
41768
|
const prevTag = this.tagHistory[this.tagHistory.length - 1];
|
|
41465
41769
|
if (!prevTag) {
|
|
41466
|
-
throw new
|
|
41770
|
+
throw new RuntimeError50("\u6CA1\u6709\u4E0A\u4E00\u4E2A\u8868\u5355");
|
|
41467
41771
|
}
|
|
41468
41772
|
this.state.activeFormTag = prevTag;
|
|
41469
41773
|
}
|
|
@@ -41484,7 +41788,7 @@ var WizardPanelController = class extends ControlController {
|
|
|
41484
41788
|
}
|
|
41485
41789
|
);
|
|
41486
41790
|
if (!wizardForm) {
|
|
41487
|
-
throw new
|
|
41791
|
+
throw new RuntimeError50("\u627E\u4E0D\u5230\u6807\u8BC6\u4E3A".concat(data.srfnextform, "\u7684\u5411\u5BFC\u8868\u5355"));
|
|
41488
41792
|
}
|
|
41489
41793
|
nextTag = data.srfnextform;
|
|
41490
41794
|
} else {
|
|
@@ -41496,7 +41800,7 @@ var WizardPanelController = class extends ControlController {
|
|
|
41496
41800
|
});
|
|
41497
41801
|
const nextWizardStep = wizardSteps[index + 1];
|
|
41498
41802
|
if (!nextWizardStep) {
|
|
41499
|
-
throw new
|
|
41803
|
+
throw new RuntimeError50("\u627E\u4E0D\u5230\u4E0B\u4E00\u4E2A\u5411\u5BFC\u6B65\u9AA4");
|
|
41500
41804
|
}
|
|
41501
41805
|
const nextWizardForm = this.model.dewizard.dewizardForms.find(
|
|
41502
41806
|
(wizardForm) => {
|
|
@@ -41509,7 +41813,7 @@ var WizardPanelController = class extends ControlController {
|
|
|
41509
41813
|
}
|
|
41510
41814
|
}
|
|
41511
41815
|
if (!nextTag) {
|
|
41512
|
-
throw new
|
|
41816
|
+
throw new RuntimeError50("\u627E\u4E0D\u5230\u4E0B\u4E00\u4E2A\u5411\u5BFC\u8868\u5355");
|
|
41513
41817
|
}
|
|
41514
41818
|
this.state.activeFormTag = nextTag;
|
|
41515
41819
|
this.tagHistory.push(nextTag);
|
|
@@ -41848,7 +42152,7 @@ var MDCtrlController = class extends MDControlController {
|
|
|
41848
42152
|
};
|
|
41849
42153
|
|
|
41850
42154
|
// src/controller/control/kanban/kanban.controller.ts
|
|
41851
|
-
import { RuntimeError as
|
|
42155
|
+
import { RuntimeError as RuntimeError51, RuntimeModelError as RuntimeModelError57 } from "@ibiz-template/core";
|
|
41852
42156
|
import { isNil as isNil24 } from "ramda";
|
|
41853
42157
|
|
|
41854
42158
|
// src/controller/control/kanban/kanban.service.ts
|
|
@@ -41936,7 +42240,7 @@ var KanbanController = class extends DataViewControlController {
|
|
|
41936
42240
|
} else {
|
|
41937
42241
|
const toNum = Number(sortValue);
|
|
41938
42242
|
if (Number.isNaN(toNum)) {
|
|
41939
|
-
throw new
|
|
42243
|
+
throw new RuntimeError51(
|
|
41940
42244
|
"".concat(item.srfmajortext, "\u7684\u6392\u5E8F\u5C5E\u6027\u65E0\u6CD5\u8F6C\u6362\u6210\u6570\u503C")
|
|
41941
42245
|
);
|
|
41942
42246
|
}
|
|
@@ -41952,7 +42256,7 @@ var KanbanController = class extends DataViewControlController {
|
|
|
41952
42256
|
}
|
|
41953
42257
|
handleDataGroup() {
|
|
41954
42258
|
if (!this.model.enableGroup || this.model.groupMode === "NONE") {
|
|
41955
|
-
throw new
|
|
42259
|
+
throw new RuntimeError51("\u770B\u677F\u90E8\u4EF6\u5FC5\u987B\u5F00\u542F\u5206\u7EC4");
|
|
41956
42260
|
}
|
|
41957
42261
|
return super.handleDataGroup();
|
|
41958
42262
|
}
|
|
@@ -42446,7 +42750,7 @@ var TreeGridService = class extends GridService {
|
|
|
42446
42750
|
};
|
|
42447
42751
|
|
|
42448
42752
|
// src/controller/control/medit-view-panel/medit-view-panel.controller.ts
|
|
42449
|
-
import { RuntimeError as
|
|
42753
|
+
import { RuntimeError as RuntimeError52 } from "@ibiz-template/core";
|
|
42450
42754
|
import { createUUID as createUUID9 } from "qx-util";
|
|
42451
42755
|
|
|
42452
42756
|
// src/controller/control/medit-view-panel/medit-view-panel.service.ts
|
|
@@ -42657,7 +42961,7 @@ var MEditViewPanelController = class extends MDControlController {
|
|
|
42657
42961
|
(item) => item.id === id
|
|
42658
42962
|
);
|
|
42659
42963
|
if (!panelUiItemIndex) {
|
|
42660
|
-
throw new
|
|
42964
|
+
throw new RuntimeError52("\u7F16\u8F91\u89C6\u56FE\u9762\u677F\u90E8\u4EF6UI\u6570\u636E\u4E0D\u5B58\u5728");
|
|
42661
42965
|
}
|
|
42662
42966
|
await this.startLoading();
|
|
42663
42967
|
let res;
|
|
@@ -42757,7 +43061,7 @@ var MapController = class extends MDControlController {
|
|
|
42757
43061
|
this.state.size = 1e3;
|
|
42758
43062
|
this.state.pointData = [];
|
|
42759
43063
|
this.state.areaData = [];
|
|
42760
|
-
this.
|
|
43064
|
+
this.calcDefaultOptions();
|
|
42761
43065
|
}
|
|
42762
43066
|
async onCreated() {
|
|
42763
43067
|
await super.onCreated();
|
|
@@ -42804,9 +43108,9 @@ var MapController = class extends MDControlController {
|
|
|
42804
43108
|
const tempareaData = [];
|
|
42805
43109
|
const temppointData = [];
|
|
42806
43110
|
result.forEach((item) => {
|
|
42807
|
-
if (item.
|
|
43111
|
+
if (item._itemStyle === "REGION") {
|
|
42808
43112
|
tempareaData.push(item);
|
|
42809
|
-
} else if (item.
|
|
43113
|
+
} else if (item._itemStyle === "POINT") {
|
|
42810
43114
|
temppointData.push(item);
|
|
42811
43115
|
}
|
|
42812
43116
|
});
|
|
@@ -42814,6 +43118,37 @@ var MapController = class extends MDControlController {
|
|
|
42814
43118
|
this.state.areaData = tempareaData;
|
|
42815
43119
|
return result;
|
|
42816
43120
|
}
|
|
43121
|
+
/**
|
|
43122
|
+
* 计算默认选项
|
|
43123
|
+
* @author lxm
|
|
43124
|
+
* @date 2023-11-01 03:23:33
|
|
43125
|
+
*/
|
|
43126
|
+
calcDefaultOptions() {
|
|
43127
|
+
var _a;
|
|
43128
|
+
this.state.strAreaCode = false;
|
|
43129
|
+
this.state.defaultAreaCode = 1e5;
|
|
43130
|
+
if ((_a = this.model.controlParam) == null ? void 0 : _a.ctrlParams) {
|
|
43131
|
+
const { ctrlParams } = this.model.controlParam;
|
|
43132
|
+
Object.keys(ctrlParams).forEach((key) => {
|
|
43133
|
+
const value = ctrlParams[key];
|
|
43134
|
+
switch (key.toLowerCase()) {
|
|
43135
|
+
case "defaultareacode":
|
|
43136
|
+
this.state.defaultAreaCode = value;
|
|
43137
|
+
break;
|
|
43138
|
+
case "strareacode":
|
|
43139
|
+
this.state.strAreaCode = value === "true";
|
|
43140
|
+
break;
|
|
43141
|
+
case "jsonbaseurl":
|
|
43142
|
+
this.state.jsonBaseUrl = value;
|
|
43143
|
+
break;
|
|
43144
|
+
default:
|
|
43145
|
+
break;
|
|
43146
|
+
}
|
|
43147
|
+
});
|
|
43148
|
+
}
|
|
43149
|
+
this.state.defaultAreaCode = this.state.strAreaCode ? "".concat(this.state.defaultAreaCode) : Number(this.state.defaultAreaCode);
|
|
43150
|
+
this.state.areaCode = this.state.defaultAreaCode;
|
|
43151
|
+
}
|
|
42817
43152
|
/**
|
|
42818
43153
|
* 地图变更事件处理
|
|
42819
43154
|
* @author lxm
|
|
@@ -43060,7 +43395,7 @@ var AppHub = class {
|
|
|
43060
43395
|
this.registerAppView(appView);
|
|
43061
43396
|
return appView;
|
|
43062
43397
|
}
|
|
43063
|
-
throw new
|
|
43398
|
+
throw new RuntimeError53("\u89C6\u56FE[".concat(id, "]\u4E0D\u5B58\u5728"));
|
|
43064
43399
|
}
|
|
43065
43400
|
/**
|
|
43066
43401
|
* 根据应用实体代码名称查找应用视图
|
|
@@ -43091,7 +43426,7 @@ var AppHub = class {
|
|
|
43091
43426
|
this.registerAppDataEntity(entity, appId);
|
|
43092
43427
|
return entity;
|
|
43093
43428
|
}
|
|
43094
|
-
throw new
|
|
43429
|
+
throw new RuntimeError53("\u672A\u627E\u5230\u5E94\u7528\u5B9E\u4F53[".concat(id, "]"));
|
|
43095
43430
|
}
|
|
43096
43431
|
/**
|
|
43097
43432
|
* 新建 hub 应用
|
|
@@ -43112,7 +43447,7 @@ var AppHub = class {
|
|
|
43112
43447
|
appModel = await this.modelLoaderProvider.getApp(id);
|
|
43113
43448
|
this.registerApp(appModel);
|
|
43114
43449
|
} else {
|
|
43115
|
-
throw new
|
|
43450
|
+
throw new RuntimeError53("\u672A\u627E\u5230\u5E94\u7528[".concat(id, "]\u6A21\u578B"));
|
|
43116
43451
|
}
|
|
43117
43452
|
const app = new Application(appModel);
|
|
43118
43453
|
this.appMap.set(id, app);
|
|
@@ -43210,7 +43545,7 @@ var EngineFactory = class {
|
|
|
43210
43545
|
};
|
|
43211
43546
|
|
|
43212
43547
|
// src/engine/view-base.engine.ts
|
|
43213
|
-
import { RuntimeError as
|
|
43548
|
+
import { RuntimeError as RuntimeError54 } from "@ibiz-template/core";
|
|
43214
43549
|
var ViewEngineBase = class {
|
|
43215
43550
|
/**
|
|
43216
43551
|
* 构造函数在视图控制器的构造函数逻辑内部执行
|
|
@@ -43398,7 +43733,7 @@ var ViewEngineBase = class {
|
|
|
43398
43733
|
const { appDataEntityId } = this.view.model;
|
|
43399
43734
|
const { evt, context, params } = this.view;
|
|
43400
43735
|
if (!appDataEntityId) {
|
|
43401
|
-
throw new
|
|
43736
|
+
throw new RuntimeError54("\u8BE5\u89C6\u56FE\u6CA1\u6709\u5B9E\u4F53\uFF0C\u65E0\u6CD5\u52A0\u8F7D\u5B9E\u4F53\u6570\u636E");
|
|
43402
43737
|
}
|
|
43403
43738
|
const app = ibiz.hub.getApp(context.srfappid);
|
|
43404
43739
|
const res = await app.deService.exec(
|
|
@@ -43420,7 +43755,7 @@ var ViewEngineBase = class {
|
|
|
43420
43755
|
|
|
43421
43756
|
// src/engine/md-view.engine.ts
|
|
43422
43757
|
import { RuntimeModelError as RuntimeModelError58 } from "@ibiz-template/core";
|
|
43423
|
-
import { clone as
|
|
43758
|
+
import { clone as clone22 } from "ramda";
|
|
43424
43759
|
var MDViewEngine = class extends ViewEngineBase {
|
|
43425
43760
|
/**
|
|
43426
43761
|
* 多数据部件名称
|
|
@@ -43617,7 +43952,7 @@ var MDViewEngine = class extends ViewEngineBase {
|
|
|
43617
43952
|
if (!openAppViewLogic) {
|
|
43618
43953
|
throw new RuntimeModelError58(this.view.model, "\u7F3A\u5C11newdata\u7684\u89C6\u56FE\u903B\u8F91");
|
|
43619
43954
|
}
|
|
43620
|
-
const params =
|
|
43955
|
+
const params = clone22(this.view.params);
|
|
43621
43956
|
if (copyMode) {
|
|
43622
43957
|
params.srfcopymode = copyMode;
|
|
43623
43958
|
}
|
|
@@ -43752,7 +44087,7 @@ import {
|
|
|
43752
44087
|
ModelError as ModelError28,
|
|
43753
44088
|
HttpError as HttpError4,
|
|
43754
44089
|
NoticeError as NoticeError2,
|
|
43755
|
-
RuntimeError as
|
|
44090
|
+
RuntimeError as RuntimeError55
|
|
43756
44091
|
} from "@ibiz-template/core";
|
|
43757
44092
|
var DefaultErrorHandler = class {
|
|
43758
44093
|
handle(error) {
|
|
@@ -43770,7 +44105,7 @@ var DefaultErrorHandler = class {
|
|
|
43770
44105
|
}
|
|
43771
44106
|
} else if (error instanceof NoticeError2) {
|
|
43772
44107
|
ibiz.message.error(error.message, error.duration, error.duration === 0);
|
|
43773
|
-
} else if (error instanceof
|
|
44108
|
+
} else if (error instanceof RuntimeError55) {
|
|
43774
44109
|
ibiz.message.error(error.message, 10, true);
|
|
43775
44110
|
}
|
|
43776
44111
|
ibiz.log.error(error);
|
|
@@ -43898,7 +44233,7 @@ var GlobalUtil = class {
|
|
|
43898
44233
|
};
|
|
43899
44234
|
|
|
43900
44235
|
// src/logic-scheduler/executor/logic-executor.ts
|
|
43901
|
-
import { RuntimeError as
|
|
44236
|
+
import { RuntimeError as RuntimeError56 } from "@ibiz-template/core";
|
|
43902
44237
|
var LogicExecutor = class {
|
|
43903
44238
|
/**
|
|
43904
44239
|
* @author lxm
|
|
@@ -43919,7 +44254,7 @@ var LogicExecutor = class {
|
|
|
43919
44254
|
*/
|
|
43920
44255
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
43921
44256
|
execute(_executeParams) {
|
|
43922
|
-
throw new
|
|
44257
|
+
throw new RuntimeError56("Method not implemented.");
|
|
43923
44258
|
}
|
|
43924
44259
|
/**
|
|
43925
44260
|
* 销毁方法
|
|
@@ -44356,7 +44691,7 @@ var LogicSchedulerCenter = class {
|
|
|
44356
44691
|
};
|
|
44357
44692
|
|
|
44358
44693
|
// src/logic-scheduler/trigger/logic-trigger.ts
|
|
44359
|
-
import { RuntimeError as
|
|
44694
|
+
import { RuntimeError as RuntimeError57 } from "@ibiz-template/core";
|
|
44360
44695
|
var LogicTrigger = class {
|
|
44361
44696
|
/**
|
|
44362
44697
|
* @author lxm
|
|
@@ -44416,7 +44751,7 @@ var LogicTrigger = class {
|
|
|
44416
44751
|
if (this.executor) {
|
|
44417
44752
|
return this.executor.execute(executeParams);
|
|
44418
44753
|
}
|
|
44419
|
-
throw new
|
|
44754
|
+
throw new RuntimeError57("".concat(this.logic.id, "\u6CA1\u6709\u7ED1\u5B9Aexecutor"));
|
|
44420
44755
|
}
|
|
44421
44756
|
/**
|
|
44422
44757
|
* 销毁方法
|
|
@@ -44433,12 +44768,12 @@ var CustomTrigger = class extends LogicTrigger {
|
|
|
44433
44768
|
};
|
|
44434
44769
|
|
|
44435
44770
|
// src/logic-scheduler/trigger/item-dyna-logic-trigger.ts
|
|
44436
|
-
import { RuntimeError as
|
|
44771
|
+
import { RuntimeError as RuntimeError58 } from "@ibiz-template/core";
|
|
44437
44772
|
var ItemDynaLogicTrigger = class extends LogicTrigger {
|
|
44438
44773
|
bindExecutor(executor) {
|
|
44439
44774
|
super.bindExecutor(executor);
|
|
44440
44775
|
if (this.executor.type !== "SCRIPT") {
|
|
44441
|
-
throw new
|
|
44776
|
+
throw new RuntimeError58(
|
|
44442
44777
|
"\u9884\u5B9A\u4E49\u903B\u8F91\u7C7B\u578B".concat(this.type, "\u7684\u89E6\u53D1\u5668\u7C7B\u578B\u53EA\u80FD\u662F\u811A\u672C")
|
|
44443
44778
|
);
|
|
44444
44779
|
}
|
|
@@ -44474,7 +44809,7 @@ var ItemDynaLogicTrigger = class extends LogicTrigger {
|
|
|
44474
44809
|
};
|
|
44475
44810
|
|
|
44476
44811
|
// src/logic-scheduler/trigger/timer-trigger.ts
|
|
44477
|
-
import { RuntimeError as
|
|
44812
|
+
import { RuntimeError as RuntimeError59, RuntimeModelError as RuntimeModelError61 } from "@ibiz-template/core";
|
|
44478
44813
|
var TimerTrigger = class extends LogicTrigger {
|
|
44479
44814
|
constructor() {
|
|
44480
44815
|
super(...arguments);
|
|
@@ -44486,7 +44821,7 @@ var TimerTrigger = class extends LogicTrigger {
|
|
|
44486
44821
|
}
|
|
44487
44822
|
this.timer = setInterval(() => {
|
|
44488
44823
|
if (!this.scheduler.defaultParamsCb) {
|
|
44489
|
-
throw new
|
|
44824
|
+
throw new RuntimeError59("\u5B9A\u65F6\u5668\u7F3A\u5C11\u9ED8\u8BA4\u53C2\u6570\u56DE\u8C03");
|
|
44490
44825
|
}
|
|
44491
44826
|
const params = this.scheduler.defaultParamsCb();
|
|
44492
44827
|
this.executor.execute(params);
|
|
@@ -44503,7 +44838,7 @@ var TimerTrigger = class extends LogicTrigger {
|
|
|
44503
44838
|
// src/logic-scheduler/executor/app-ui-logic-executor.ts
|
|
44504
44839
|
import {
|
|
44505
44840
|
ModelError as ModelError31,
|
|
44506
|
-
RuntimeError as
|
|
44841
|
+
RuntimeError as RuntimeError60,
|
|
44507
44842
|
RuntimeModelError as RuntimeModelError62
|
|
44508
44843
|
} from "@ibiz-template/core";
|
|
44509
44844
|
import { notNilEmpty as notNilEmpty9 } from "qx-util";
|
|
@@ -44524,22 +44859,19 @@ var AppUILogicExecutor = class extends LogicExecutor {
|
|
|
44524
44859
|
}
|
|
44525
44860
|
}
|
|
44526
44861
|
/**
|
|
44527
|
-
* 执行应用预置界面逻辑opendata
|
|
44862
|
+
* 执行应用预置界面逻辑 opendata
|
|
44528
44863
|
*
|
|
44529
|
-
* @author
|
|
44530
|
-
* @date
|
|
44531
|
-
* @
|
|
44532
|
-
* @param {
|
|
44533
|
-
* @
|
|
44534
|
-
* @param {(IData | null)} data 数据集合
|
|
44535
|
-
* @param {IParams} params 视图参数
|
|
44536
|
-
* @param {IData} [opts] 额外参数,event是js原生事件
|
|
44864
|
+
* @author chitanda
|
|
44865
|
+
* @date 2023-11-02 11:11:36
|
|
44866
|
+
* @param {IAppUIOpenDataLogic} appUILogic 应用预置界面逻辑 opendata 模型对象
|
|
44867
|
+
* @param {IUILogicParams} parameters
|
|
44868
|
+
* @return {*} {Promise<IModalData>}
|
|
44537
44869
|
*/
|
|
44538
44870
|
async executeOpenDataAppUILogic(appUILogic, parameters) {
|
|
44539
44871
|
const { context, params, ...rest } = parameters;
|
|
44540
44872
|
const { data } = parameters;
|
|
44541
44873
|
if (!(data == null ? void 0 : data[0])) {
|
|
44542
|
-
throw new
|
|
44874
|
+
throw new RuntimeError60("opendata\u6CA1\u6709\u53EF\u64CD\u4F5C\u6570\u636E\uFF01");
|
|
44543
44875
|
}
|
|
44544
44876
|
const openViewRefs = appUILogic.openDataAppViews;
|
|
44545
44877
|
let openViewRef;
|
|
@@ -44580,23 +44912,25 @@ var AppUILogicExecutor = class extends LogicExecutor {
|
|
|
44580
44912
|
);
|
|
44581
44913
|
}
|
|
44582
44914
|
async calcOpenViewRef(appUILogic, parameters) {
|
|
44583
|
-
const
|
|
44584
|
-
|
|
44585
|
-
|
|
44915
|
+
const appDataEntity = await ibiz.hub.getAppDataEntity(
|
|
44916
|
+
parameters.view.model.appDataEntityId
|
|
44917
|
+
);
|
|
44918
|
+
const typeFileName = appDataEntity.formTypeAppDEFieldId || appDataEntity.dataTypeAppDEFieldId;
|
|
44919
|
+
if (!typeFileName) {
|
|
44586
44920
|
throw new RuntimeModelError62(
|
|
44587
44921
|
appUILogic,
|
|
44588
|
-
"".concat(
|
|
44922
|
+
"".concat(appDataEntity.codeName, "[\u591A\u8868\u5355\u5B9E\u4F53] or [\u7D22\u5F15\u5B9E\u4F53]\u7F3A\u5C11\u7C7B\u578B\u5C5E\u6027\u914D\u7F6E")
|
|
44589
44923
|
);
|
|
44590
44924
|
}
|
|
44591
44925
|
const { data } = parameters;
|
|
44592
|
-
const formTypeValue = data[0][
|
|
44926
|
+
const formTypeValue = data[0][typeFileName];
|
|
44593
44927
|
if (!formTypeValue) {
|
|
44594
44928
|
throw new RuntimeModelError62(appUILogic, "\u6570\u636E\u6E90\u65E0\u8868\u5355\u7C7B\u578B\u5E94\u7528\u5B9E\u4F53\u5C5E\u6027\u503C");
|
|
44595
44929
|
}
|
|
44596
44930
|
const openViewRefs = appUILogic.openDataAppViews;
|
|
44597
44931
|
const findView = openViewRefs == null ? void 0 : openViewRefs.find((item) => item.refMode === formTypeValue);
|
|
44598
44932
|
if (!findView) {
|
|
44599
|
-
throw new
|
|
44933
|
+
throw new RuntimeError60(
|
|
44600
44934
|
"\u6CA1\u6709\u627E\u5230\u4E0E\u8868\u5355\u7C7B\u578B".concat(formTypeValue, "\u76F8\u5173\u7684\u5B9E\u4F53\u7684\u7F16\u8F91\u89C6\u56FE")
|
|
44601
44935
|
);
|
|
44602
44936
|
}
|
|
@@ -44714,12 +45048,12 @@ var AppUILogicExecutor = class extends LogicExecutor {
|
|
|
44714
45048
|
}
|
|
44715
45049
|
const selectData = (_a = result.data) == null ? void 0 : _a[0];
|
|
44716
45050
|
if (!selectData) {
|
|
44717
|
-
throw new
|
|
45051
|
+
throw new RuntimeError60("\u8BF7\u9009\u4E2D\u4E00\u6761\u6570\u636E");
|
|
44718
45052
|
}
|
|
44719
45053
|
const indexType = selectData.srfkey;
|
|
44720
45054
|
const findView = newDataAppViews == null ? void 0 : newDataAppViews.find((item) => item.refMode === indexType);
|
|
44721
45055
|
if (!findView) {
|
|
44722
|
-
throw new
|
|
45056
|
+
throw new RuntimeError60(
|
|
44723
45057
|
"\u6CA1\u6709\u627E\u5230\u4E0E\u7D22\u5F15\u7C7B\u578B".concat(indexType, "\u76F8\u5173\u7684\u5B9E\u4F53\u7684\u7F16\u8F91\u89C6\u56FE")
|
|
44724
45058
|
);
|
|
44725
45059
|
}
|
|
@@ -45136,6 +45470,7 @@ export {
|
|
|
45136
45470
|
PORTLET_PROVIDER_PREFIX,
|
|
45137
45471
|
PSDEDQCondEngine,
|
|
45138
45472
|
PanelController,
|
|
45473
|
+
PanelData,
|
|
45139
45474
|
PanelItemController,
|
|
45140
45475
|
PanelItemState,
|
|
45141
45476
|
PanelNotifyState,
|
|
@@ -45177,6 +45512,7 @@ export {
|
|
|
45177
45512
|
UIACTION_PROVIDER_PREFIX,
|
|
45178
45513
|
UIActionButtonState,
|
|
45179
45514
|
UIActionUtil,
|
|
45515
|
+
UILOGINNODE_PROVIDER_PREFIX,
|
|
45180
45516
|
UIMapField,
|
|
45181
45517
|
V7AuthService,
|
|
45182
45518
|
VIEW_PROVIDER_PREFIX,
|
|
@@ -45194,6 +45530,7 @@ export {
|
|
|
45194
45530
|
WizardPanelController,
|
|
45195
45531
|
WizardPanelService,
|
|
45196
45532
|
WorkFlowService,
|
|
45533
|
+
asyncImportData,
|
|
45197
45534
|
calcContentAlignStyle,
|
|
45198
45535
|
calcDeCodeNameById,
|
|
45199
45536
|
calcDynaClass,
|
|
@@ -45213,6 +45550,7 @@ export {
|
|
|
45213
45550
|
execDELogicById,
|
|
45214
45551
|
execFieldLogics,
|
|
45215
45552
|
execUILogic,
|
|
45553
|
+
exportData,
|
|
45216
45554
|
filterFieldLogics,
|
|
45217
45555
|
filterValueRules,
|
|
45218
45556
|
findChildFormDetails,
|
|
@@ -45223,6 +45561,7 @@ export {
|
|
|
45223
45561
|
formatMultiData,
|
|
45224
45562
|
generateEditorRules,
|
|
45225
45563
|
generateRules,
|
|
45564
|
+
getAllPanelField,
|
|
45226
45565
|
getAppCounterProvider,
|
|
45227
45566
|
getAppViewRef,
|
|
45228
45567
|
getChildNodeRSs,
|
|
@@ -45233,16 +45572,17 @@ export {
|
|
|
45233
45572
|
getDefaultValue,
|
|
45234
45573
|
getEditorProvider,
|
|
45235
45574
|
getFormDetailProvider,
|
|
45236
|
-
getFormTypeFieldName,
|
|
45237
45575
|
getGridColumnProvider,
|
|
45238
45576
|
getMatchResPath,
|
|
45239
45577
|
getOriginData,
|
|
45578
|
+
getPFPlugin,
|
|
45240
45579
|
getPanelItemProvider,
|
|
45241
45580
|
getPortletProvider,
|
|
45242
45581
|
getRootNode,
|
|
45243
45582
|
getTreeNode,
|
|
45244
45583
|
getUIActionById,
|
|
45245
45584
|
getUIActionProvider,
|
|
45585
|
+
getUILogicNodeProvider,
|
|
45246
45586
|
getViewEngines,
|
|
45247
45587
|
getViewLogics,
|
|
45248
45588
|
getViewProvider,
|
|
@@ -45250,6 +45590,7 @@ export {
|
|
|
45250
45590
|
getWFSubmitViewId,
|
|
45251
45591
|
handleAllSettled,
|
|
45252
45592
|
hasDeCodeName,
|
|
45593
|
+
importData,
|
|
45253
45594
|
install,
|
|
45254
45595
|
installCommand,
|
|
45255
45596
|
isDataContainer,
|
|
@@ -45267,6 +45608,7 @@ export {
|
|
|
45267
45608
|
registerPanelItemProvider,
|
|
45268
45609
|
registerPortletProvider,
|
|
45269
45610
|
registerUIActionProvider,
|
|
45611
|
+
registerUILogicNodeProvider,
|
|
45270
45612
|
registerViewProvider,
|
|
45271
45613
|
strContain,
|
|
45272
45614
|
testCond,
|