@ibiz-template/runtime 0.2.8 → 0.2.9
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 +619 -305
- 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 +35 -1
- package/out/controller/control/panel/panel/panel.controller.d.ts.map +1 -1
- package/out/controller/control/panel/panel/panel.controller.js +4 -20
- 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/state/control/i-map.state.d.ts +21 -0
- 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/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/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 +21 -0
- package/out/service/vo/panel-data/panel-data.d.ts.map +1 -0
- package/out/service/vo/panel-data/panel-data.js +73 -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 +38 -1
- package/src/controller/control/panel/panel/panel.controller.ts +4 -21
- 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/state/control/i-map.state.ts +24 -0
- 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/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/panel-data/index.ts +1 -0
- package/src/service/vo/panel-data/panel-data.ts +93 -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";
|
|
@@ -18922,6 +18930,31 @@ function isDataContainer(panelItem) {
|
|
|
18922
18930
|
);
|
|
18923
18931
|
}
|
|
18924
18932
|
|
|
18933
|
+
// src/model/panel/panel-field.ts
|
|
18934
|
+
var ChildKeys = ["panelItems", "panelTabPages", "rootPanelItems"];
|
|
18935
|
+
function _getAllPanelField(model) {
|
|
18936
|
+
let childItems = [];
|
|
18937
|
+
for (const key of ChildKeys) {
|
|
18938
|
+
if (model[key]) {
|
|
18939
|
+
childItems = model[key];
|
|
18940
|
+
break;
|
|
18941
|
+
}
|
|
18942
|
+
}
|
|
18943
|
+
const fields = [];
|
|
18944
|
+
if (childItems.length) {
|
|
18945
|
+
fields.push(...childItems.filter((item) => item.itemType === "FIELD"));
|
|
18946
|
+
childItems.forEach((item) => {
|
|
18947
|
+
if (!isDataContainer(item)) {
|
|
18948
|
+
fields.push(..._getAllPanelField(item));
|
|
18949
|
+
}
|
|
18950
|
+
});
|
|
18951
|
+
}
|
|
18952
|
+
return fields;
|
|
18953
|
+
}
|
|
18954
|
+
function getAllPanelField(model) {
|
|
18955
|
+
return _getAllPanelField(model);
|
|
18956
|
+
}
|
|
18957
|
+
|
|
18925
18958
|
// src/utils/open-redirect-view/open-redirect-view.ts
|
|
18926
18959
|
async function openRedirectView(appView, context, params = {}, opts = {}) {
|
|
18927
18960
|
return openDERedirectView(
|
|
@@ -20502,7 +20535,7 @@ async function handleAllSettled(values, isThrow = true) {
|
|
|
20502
20535
|
}
|
|
20503
20536
|
|
|
20504
20537
|
// src/command/app/open-app-view/open-app-view.ts
|
|
20505
|
-
import { ModelError as ModelError14, RuntimeError as
|
|
20538
|
+
import { ModelError as ModelError14, RuntimeError as RuntimeError18 } from "@ibiz-template/core";
|
|
20506
20539
|
import { clone as clone13 } from "ramda";
|
|
20507
20540
|
|
|
20508
20541
|
// src/service/utils/de-dq-cond/ps-de-dq-cond-engine.ts
|
|
@@ -20880,6 +20913,9 @@ _PSDEDQCondEngine.PARAMTYPE_DATACONTEXT = "DATACONTEXT";
|
|
|
20880
20913
|
_PSDEDQCondEngine.PARAMTYPE_WEBCONTEXT = "WEBCONTEXT";
|
|
20881
20914
|
var PSDEDQCondEngine = _PSDEDQCondEngine;
|
|
20882
20915
|
|
|
20916
|
+
// src/register/helper/app-counter-register.ts
|
|
20917
|
+
import { RuntimeError as RuntimeError5 } from "@ibiz-template/core";
|
|
20918
|
+
|
|
20883
20919
|
// src/register/helper/common-register.ts
|
|
20884
20920
|
async function getPluginRegisterKey(pluginId, appId) {
|
|
20885
20921
|
var _a;
|
|
@@ -20888,19 +20924,59 @@ async function getPluginRegisterKey(pluginId, appId) {
|
|
|
20888
20924
|
(item) => item.pluginCode.toLowerCase() === pluginId
|
|
20889
20925
|
);
|
|
20890
20926
|
if (!plugin) {
|
|
20891
|
-
ibiz.log.error("\
|
|
20927
|
+
ibiz.log.error("\u672A\u5339\u914D\u5230\u63D2\u4EF6[".concat(pluginId, "]\u6A21\u578B"));
|
|
20892
20928
|
return;
|
|
20893
20929
|
}
|
|
20894
20930
|
await ibiz.plugin.loadPlugin(plugin);
|
|
20895
20931
|
return "".concat(plugin.pluginType, "_").concat(plugin.pluginCode);
|
|
20896
20932
|
}
|
|
20897
20933
|
|
|
20934
|
+
// src/register/helper/app-counter-register.ts
|
|
20935
|
+
var APP_COUNTER_PROVIDER_PREFIX = "APPCOUNTER";
|
|
20936
|
+
function registerAppCounterProvider(key, callback) {
|
|
20937
|
+
ibiz.register.register("".concat(APP_COUNTER_PROVIDER_PREFIX, "_").concat(key), callback);
|
|
20938
|
+
}
|
|
20939
|
+
function getProvider(key) {
|
|
20940
|
+
return ibiz.register.get(
|
|
20941
|
+
"".concat(APP_COUNTER_PROVIDER_PREFIX, "_").concat(key)
|
|
20942
|
+
);
|
|
20943
|
+
}
|
|
20944
|
+
async function getAppCounterProvider(model) {
|
|
20945
|
+
let provider;
|
|
20946
|
+
const { codeName, counterType, sysPFPluginId, appId } = model;
|
|
20947
|
+
if (sysPFPluginId) {
|
|
20948
|
+
const pluginKey = await getPluginRegisterKey(sysPFPluginId, appId);
|
|
20949
|
+
if (pluginKey) {
|
|
20950
|
+
provider = getProvider(pluginKey);
|
|
20951
|
+
}
|
|
20952
|
+
if (!provider) {
|
|
20953
|
+
ibiz.log.error("\u627E\u4E0D\u5230\u7CFB\u7EDF\u8BA1\u6570\u5668\u63D2\u4EF6".concat(pluginKey, "\u5BF9\u5E94\u7684\u9002\u914D\u5668"));
|
|
20954
|
+
} else {
|
|
20955
|
+
return provider;
|
|
20956
|
+
}
|
|
20957
|
+
}
|
|
20958
|
+
if (counterType === "CUSTOM") {
|
|
20959
|
+
provider = getProvider(codeName);
|
|
20960
|
+
if (!provider) {
|
|
20961
|
+
throw new RuntimeError5("\u627E\u4E0D\u5230\u81EA\u5B9A\u4E49\u7CFB\u7EDF\u8BA1\u6570\u5668".concat(codeName, "\u5BF9\u5E94\u7684\u9002\u914D\u5668"));
|
|
20962
|
+
} else {
|
|
20963
|
+
return provider;
|
|
20964
|
+
}
|
|
20965
|
+
}
|
|
20966
|
+
provider = getProvider(counterType);
|
|
20967
|
+
if (!provider) {
|
|
20968
|
+
throw new RuntimeError5("\u627E\u4E0D\u7CFB\u7EDF\u8BA1\u6570\u5668\u7C7B\u578B".concat(counterType, "\u5BF9\u5E94\u7684\u9002\u914D\u5668"));
|
|
20969
|
+
} else {
|
|
20970
|
+
return provider;
|
|
20971
|
+
}
|
|
20972
|
+
}
|
|
20973
|
+
|
|
20898
20974
|
// src/register/helper/control-register.ts
|
|
20899
20975
|
var CONTROL_PROVIDER_PREFIX = "CONTROL";
|
|
20900
20976
|
function registerControlProvider(key, callback) {
|
|
20901
20977
|
ibiz.register.register("".concat(CONTROL_PROVIDER_PREFIX, "_").concat(key), callback);
|
|
20902
20978
|
}
|
|
20903
|
-
function
|
|
20979
|
+
function getProvider2(key) {
|
|
20904
20980
|
return ibiz.register.get(
|
|
20905
20981
|
"".concat(CONTROL_PROVIDER_PREFIX, "_").concat(key)
|
|
20906
20982
|
);
|
|
@@ -20911,7 +20987,7 @@ async function getControlProvider(model) {
|
|
|
20911
20987
|
if (sysPFPluginId) {
|
|
20912
20988
|
const pluginKey = await getPluginRegisterKey(sysPFPluginId, appId);
|
|
20913
20989
|
if (pluginKey) {
|
|
20914
|
-
provider =
|
|
20990
|
+
provider = getProvider2(pluginKey);
|
|
20915
20991
|
}
|
|
20916
20992
|
if (!provider) {
|
|
20917
20993
|
ibiz.log.error("\u627E\u4E0D\u5230\u90E8\u4EF6\u63D2\u4EF6".concat(pluginKey, "\u5BF9\u5E94\u7684\u9002\u914D\u5668"));
|
|
@@ -20921,7 +20997,7 @@ async function getControlProvider(model) {
|
|
|
20921
20997
|
}
|
|
20922
20998
|
if (controlStyle && controlStyle !== "DEFAULT") {
|
|
20923
20999
|
const key = "".concat(controlType, "_").concat(controlStyle);
|
|
20924
|
-
provider =
|
|
21000
|
+
provider = getProvider2(key);
|
|
20925
21001
|
if (!provider) {
|
|
20926
21002
|
ibiz.log.error(
|
|
20927
21003
|
"\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 +21007,7 @@ async function getControlProvider(model) {
|
|
|
20931
21007
|
return provider;
|
|
20932
21008
|
}
|
|
20933
21009
|
}
|
|
20934
|
-
provider =
|
|
21010
|
+
provider = getProvider2(controlType);
|
|
20935
21011
|
if (!provider) {
|
|
20936
21012
|
switch (controlType) {
|
|
20937
21013
|
case "DATAINFOBAR":
|
|
@@ -20949,7 +21025,7 @@ var EDITOR_PROVIDER_PREFIX = "EDITOR";
|
|
|
20949
21025
|
function registerEditorProvider(key, callback) {
|
|
20950
21026
|
ibiz.register.register("".concat(EDITOR_PROVIDER_PREFIX, "_").concat(key), callback);
|
|
20951
21027
|
}
|
|
20952
|
-
function
|
|
21028
|
+
function getProvider3(key) {
|
|
20953
21029
|
return ibiz.register.get(
|
|
20954
21030
|
"".concat(EDITOR_PROVIDER_PREFIX, "_").concat(key)
|
|
20955
21031
|
);
|
|
@@ -20960,7 +21036,7 @@ async function getEditorProvider(model) {
|
|
|
20960
21036
|
if (sysPFPluginId) {
|
|
20961
21037
|
const pluginKey = await getPluginRegisterKey(sysPFPluginId, appId);
|
|
20962
21038
|
if (pluginKey) {
|
|
20963
|
-
provider =
|
|
21039
|
+
provider = getProvider3(pluginKey);
|
|
20964
21040
|
}
|
|
20965
21041
|
if (!provider) {
|
|
20966
21042
|
ibiz.log.error("\u627E\u4E0D\u5230\u7F16\u8F91\u5668\u63D2\u4EF6".concat(pluginKey, "\u5BF9\u5E94\u7684\u9002\u914D\u5668"));
|
|
@@ -20970,7 +21046,7 @@ async function getEditorProvider(model) {
|
|
|
20970
21046
|
}
|
|
20971
21047
|
if (editorStyle && editorStyle !== "DEFAULT") {
|
|
20972
21048
|
const key = "".concat(editorType, "_").concat(editorStyle);
|
|
20973
|
-
provider =
|
|
21049
|
+
provider = getProvider3(key);
|
|
20974
21050
|
if (!provider) {
|
|
20975
21051
|
ibiz.log.error(
|
|
20976
21052
|
"\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 +21061,7 @@ async function getEditorProvider(model) {
|
|
|
20985
21061
|
if (editorStyle && editorStyle !== "DEFAULT") {
|
|
20986
21062
|
key += "_".concat(editorStyle);
|
|
20987
21063
|
}
|
|
20988
|
-
provider =
|
|
21064
|
+
provider = getProvider3(key);
|
|
20989
21065
|
if (!provider) {
|
|
20990
21066
|
ibiz.log.error(
|
|
20991
21067
|
"\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 +21071,7 @@ async function getEditorProvider(model) {
|
|
|
20995
21071
|
return provider;
|
|
20996
21072
|
}
|
|
20997
21073
|
}
|
|
20998
|
-
provider =
|
|
21074
|
+
provider = getProvider3(editorType);
|
|
20999
21075
|
if (!provider) {
|
|
21000
21076
|
ibiz.log.error("\u627E\u4E0D\u5230\u7F16\u8F91\u5668\u7C7B\u578B".concat(editorType, "\u5BF9\u5E94\u7684\u9002\u914D\u5668"));
|
|
21001
21077
|
} else {
|
|
@@ -21008,7 +21084,7 @@ var FORMDETAIL_PROVIDER_PREFIX = "FORMDETAIL";
|
|
|
21008
21084
|
function registerFormDetailProvider(key, callback) {
|
|
21009
21085
|
ibiz.register.register("".concat(FORMDETAIL_PROVIDER_PREFIX, "_").concat(key), callback);
|
|
21010
21086
|
}
|
|
21011
|
-
function
|
|
21087
|
+
function getProvider4(key) {
|
|
21012
21088
|
return ibiz.register.get(
|
|
21013
21089
|
"".concat(FORMDETAIL_PROVIDER_PREFIX, "_").concat(key)
|
|
21014
21090
|
);
|
|
@@ -21019,7 +21095,7 @@ async function getFormDetailProvider(model) {
|
|
|
21019
21095
|
if (sysPFPluginId) {
|
|
21020
21096
|
const pluginKey = await getPluginRegisterKey(sysPFPluginId, appId);
|
|
21021
21097
|
if (pluginKey) {
|
|
21022
|
-
provider =
|
|
21098
|
+
provider = getProvider4(pluginKey);
|
|
21023
21099
|
}
|
|
21024
21100
|
if (!provider) {
|
|
21025
21101
|
ibiz.log.error("\u627E\u4E0D\u5230\u8868\u5355\u6210\u5458\u63D2\u4EF6".concat(pluginKey, "\u5BF9\u5E94\u7684\u9002\u914D\u5668"));
|
|
@@ -21027,7 +21103,7 @@ async function getFormDetailProvider(model) {
|
|
|
21027
21103
|
return provider;
|
|
21028
21104
|
}
|
|
21029
21105
|
}
|
|
21030
|
-
provider =
|
|
21106
|
+
provider = getProvider4(detailType);
|
|
21031
21107
|
if (!provider) {
|
|
21032
21108
|
ibiz.log.error("\u627E\u4E0D\u5230\u8868\u5355\u6210\u5458\u7C7B\u578B".concat(detailType, "\u5BF9\u5E94\u7684\u9002\u914D\u5668"));
|
|
21033
21109
|
} else {
|
|
@@ -21040,7 +21116,7 @@ var GRIDCOLUMN_PROVIDER_PREFIX = "GRIDCOLUMN";
|
|
|
21040
21116
|
function registerGridColumnProvider(key, callback) {
|
|
21041
21117
|
ibiz.register.register("".concat(GRIDCOLUMN_PROVIDER_PREFIX, "_").concat(key), callback);
|
|
21042
21118
|
}
|
|
21043
|
-
function
|
|
21119
|
+
function getProvider5(key) {
|
|
21044
21120
|
return ibiz.register.get(
|
|
21045
21121
|
"".concat(GRIDCOLUMN_PROVIDER_PREFIX, "_").concat(key)
|
|
21046
21122
|
);
|
|
@@ -21051,7 +21127,7 @@ async function getGridColumnProvider(model) {
|
|
|
21051
21127
|
if (sysPFPluginId) {
|
|
21052
21128
|
const pluginKey = await getPluginRegisterKey(sysPFPluginId, appId);
|
|
21053
21129
|
if (pluginKey) {
|
|
21054
|
-
provider =
|
|
21130
|
+
provider = getProvider5(pluginKey);
|
|
21055
21131
|
}
|
|
21056
21132
|
if (!provider) {
|
|
21057
21133
|
ibiz.log.error("\u627E\u4E0D\u5230\u8868\u683C\u5217\u63D2\u4EF6".concat(pluginKey, "\u5BF9\u5E94\u7684\u9002\u914D\u5668"));
|
|
@@ -21060,7 +21136,7 @@ async function getGridColumnProvider(model) {
|
|
|
21060
21136
|
}
|
|
21061
21137
|
}
|
|
21062
21138
|
const key = enableRowEdit ? "".concat(columnType, "_EDIT") : columnType;
|
|
21063
|
-
provider =
|
|
21139
|
+
provider = getProvider5(key);
|
|
21064
21140
|
if (!provider) {
|
|
21065
21141
|
ibiz.log.error("\u627E\u4E0D\u5230\u8868\u683C\u5217\u7C7B\u578B".concat(key, "\u5BF9\u5E94\u7684\u9002\u914D\u5668"));
|
|
21066
21142
|
} else {
|
|
@@ -21076,7 +21152,7 @@ function registerPanelItemProvider(key, callback) {
|
|
|
21076
21152
|
callback
|
|
21077
21153
|
);
|
|
21078
21154
|
}
|
|
21079
|
-
function
|
|
21155
|
+
function getProvider6(key) {
|
|
21080
21156
|
return ibiz.register.get(
|
|
21081
21157
|
"".concat(PANELITEM_PROVIDER_PREFIX, "_").concat(key.toUpperCase())
|
|
21082
21158
|
);
|
|
@@ -21088,7 +21164,7 @@ async function getPanelItemProvider(model) {
|
|
|
21088
21164
|
if (sysPFPluginId) {
|
|
21089
21165
|
const pluginKey = await getPluginRegisterKey(sysPFPluginId, appId);
|
|
21090
21166
|
if (pluginKey) {
|
|
21091
|
-
provider =
|
|
21167
|
+
provider = getProvider6(pluginKey);
|
|
21092
21168
|
}
|
|
21093
21169
|
if (!provider) {
|
|
21094
21170
|
ibiz.log.error("\u627E\u4E0D\u5230\u9762\u677F\u6210\u5458\u63D2\u4EF6".concat(pluginKey, "\u5BF9\u5E94\u7684\u9002\u914D\u5668"));
|
|
@@ -21099,7 +21175,7 @@ async function getPanelItemProvider(model) {
|
|
|
21099
21175
|
if (itemType === "CONTAINER") {
|
|
21100
21176
|
const predefinedType = model.predefinedType || "DEFAULT";
|
|
21101
21177
|
const key = "CONTAINER_".concat(predefinedType);
|
|
21102
|
-
provider =
|
|
21178
|
+
provider = getProvider6(key);
|
|
21103
21179
|
if (!provider) {
|
|
21104
21180
|
ibiz.log.error("\u627E\u4E0D\u5230\u9762\u677F\u5BB9\u5668\u9884\u7F6E\u7C7B\u578B\u4E3A".concat(predefinedType, "\u7684\u9002\u914D\u5668"));
|
|
21105
21181
|
} else {
|
|
@@ -21109,7 +21185,7 @@ async function getPanelItemProvider(model) {
|
|
|
21109
21185
|
if (itemType === "RAWITEM") {
|
|
21110
21186
|
const predefinedType = ((_a = model.rawItem) == null ? void 0 : _a.predefinedType) || "DEFAULT";
|
|
21111
21187
|
const key = "RAWITEM_".concat(predefinedType);
|
|
21112
|
-
provider =
|
|
21188
|
+
provider = getProvider6(key);
|
|
21113
21189
|
if (!provider) {
|
|
21114
21190
|
ibiz.log.error(
|
|
21115
21191
|
"\u627E\u4E0D\u5230\u9762\u677F\u6210\u5458\u76F4\u63A5\u5185\u5BB9\u9884\u7F6E\u7C7B\u578B\u4E3A".concat(predefinedType, "\u7684\u9002\u914D\u5668")
|
|
@@ -21118,7 +21194,7 @@ async function getPanelItemProvider(model) {
|
|
|
21118
21194
|
return provider;
|
|
21119
21195
|
}
|
|
21120
21196
|
}
|
|
21121
|
-
provider =
|
|
21197
|
+
provider = getProvider6(itemType);
|
|
21122
21198
|
if (!provider) {
|
|
21123
21199
|
ibiz.log.error("\u627E\u4E0D\u5230\u9762\u677F\u6210\u5458\u7C7B\u578B".concat(itemType, "\u5BF9\u5E94\u7684\u9002\u914D\u5668"));
|
|
21124
21200
|
} else {
|
|
@@ -21126,157 +21202,139 @@ async function getPanelItemProvider(model) {
|
|
|
21126
21202
|
}
|
|
21127
21203
|
}
|
|
21128
21204
|
|
|
21129
|
-
// src/register/helper/
|
|
21130
|
-
|
|
21131
|
-
|
|
21132
|
-
|
|
21133
|
-
ibiz.register.register("".concat(UIACTION_PROVIDER_PREFIX, "_").concat(key), callback);
|
|
21205
|
+
// src/register/helper/portlet-register.ts
|
|
21206
|
+
var PORTLET_PROVIDER_PREFIX = "PORTLET";
|
|
21207
|
+
function registerPortletProvider(key, callback) {
|
|
21208
|
+
ibiz.register.register("".concat(PORTLET_PROVIDER_PREFIX, "_").concat(key), callback);
|
|
21134
21209
|
}
|
|
21135
|
-
function
|
|
21210
|
+
function getProvider7(key) {
|
|
21136
21211
|
return ibiz.register.get(
|
|
21137
|
-
"".concat(
|
|
21212
|
+
"".concat(PORTLET_PROVIDER_PREFIX, "_").concat(key)
|
|
21138
21213
|
);
|
|
21139
21214
|
}
|
|
21140
|
-
async function
|
|
21215
|
+
async function getPortletProvider(model) {
|
|
21141
21216
|
let provider;
|
|
21142
|
-
const {
|
|
21217
|
+
const { portletType, sysPFPluginId, appId } = model;
|
|
21143
21218
|
if (sysPFPluginId) {
|
|
21144
21219
|
const pluginKey = await getPluginRegisterKey(sysPFPluginId, appId);
|
|
21145
21220
|
if (pluginKey) {
|
|
21146
|
-
provider =
|
|
21221
|
+
provider = getProvider7(pluginKey);
|
|
21147
21222
|
}
|
|
21148
21223
|
if (!provider) {
|
|
21149
|
-
ibiz.log.error("\u627E\u4E0D\u5230\
|
|
21224
|
+
ibiz.log.error("\u627E\u4E0D\u5230\u95E8\u6237\u90E8\u4EF6\u63D2\u4EF6".concat(pluginKey, "\u5BF9\u5E94\u7684\u9002\u914D\u5668"));
|
|
21150
21225
|
} else {
|
|
21151
21226
|
return provider;
|
|
21152
21227
|
}
|
|
21153
21228
|
}
|
|
21154
|
-
provider =
|
|
21229
|
+
provider = getProvider7(portletType);
|
|
21155
21230
|
if (!provider) {
|
|
21156
|
-
|
|
21231
|
+
ibiz.log.error("\u627E\u4E0D\u5230\u95E8\u6237\u90E8\u4EF6\u6210\u5458\u7C7B\u578B".concat(portletType, "\u5BF9\u5E94\u7684\u9002\u914D\u5668"));
|
|
21157
21232
|
} else {
|
|
21158
21233
|
return provider;
|
|
21159
21234
|
}
|
|
21160
21235
|
}
|
|
21161
21236
|
|
|
21162
|
-
// src/register/helper/
|
|
21163
|
-
|
|
21164
|
-
|
|
21165
|
-
|
|
21237
|
+
// src/register/helper/ui-action-register.ts
|
|
21238
|
+
import { RuntimeError as RuntimeError6 } from "@ibiz-template/core";
|
|
21239
|
+
var UIACTION_PROVIDER_PREFIX = "UIACTION";
|
|
21240
|
+
function registerUIActionProvider(key, callback) {
|
|
21241
|
+
ibiz.register.register("".concat(UIACTION_PROVIDER_PREFIX, "_").concat(key), callback);
|
|
21166
21242
|
}
|
|
21167
|
-
function
|
|
21168
|
-
return ibiz.register.get(
|
|
21243
|
+
function getProvider8(key) {
|
|
21244
|
+
return ibiz.register.get(
|
|
21245
|
+
"".concat(UIACTION_PROVIDER_PREFIX, "_").concat(key)
|
|
21246
|
+
);
|
|
21169
21247
|
}
|
|
21170
|
-
async function
|
|
21248
|
+
async function getUIActionProvider(model) {
|
|
21171
21249
|
let provider;
|
|
21172
|
-
const {
|
|
21250
|
+
const { uiactionMode, sysPFPluginId, appId } = model;
|
|
21173
21251
|
if (sysPFPluginId) {
|
|
21174
21252
|
const pluginKey = await getPluginRegisterKey(sysPFPluginId, appId);
|
|
21175
21253
|
if (pluginKey) {
|
|
21176
|
-
provider =
|
|
21254
|
+
provider = getProvider8(pluginKey);
|
|
21177
21255
|
}
|
|
21178
21256
|
if (!provider) {
|
|
21179
|
-
ibiz.log.error("\u627E\u4E0D\u5230\
|
|
21180
|
-
} else {
|
|
21181
|
-
return provider;
|
|
21182
|
-
}
|
|
21183
|
-
}
|
|
21184
|
-
if (viewStyle && viewStyle !== "DEFAULT") {
|
|
21185
|
-
const key = "".concat(viewType, "_").concat(viewStyle);
|
|
21186
|
-
provider = getProvider7(key);
|
|
21187
|
-
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
|
-
);
|
|
21257
|
+
ibiz.log.error("\u627E\u4E0D\u5230\u754C\u9762\u884C\u4E3A\u63D2\u4EF6".concat(pluginKey, "\u5BF9\u5E94\u7684\u9002\u914D\u5668"));
|
|
21192
21258
|
} else {
|
|
21193
21259
|
return provider;
|
|
21194
21260
|
}
|
|
21195
21261
|
}
|
|
21262
|
+
provider = getProvider8(uiactionMode);
|
|
21196
21263
|
if (!provider) {
|
|
21197
|
-
|
|
21198
|
-
}
|
|
21199
|
-
|
|
21200
|
-
provider = getProvider7("DEFAULT");
|
|
21264
|
+
throw new RuntimeError6("\u627E\u4E0D\u754C\u9762\u884C\u4E3A\u6A21\u5F0F".concat(uiactionMode, "\u5BF9\u5E94\u7684\u9002\u914D\u5668"));
|
|
21265
|
+
} else {
|
|
21266
|
+
return provider;
|
|
21201
21267
|
}
|
|
21202
|
-
return provider;
|
|
21203
21268
|
}
|
|
21204
21269
|
|
|
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
|
-
);
|
|
21270
|
+
// src/register/helper/ui-logic-node-register.ts
|
|
21271
|
+
import { RuntimeError as RuntimeError7 } from "@ibiz-template/core";
|
|
21272
|
+
var UILOGINNODE_PROVIDER_PREFIX = "UI_LOGIN_NODE";
|
|
21273
|
+
function registerUILogicNodeProvider(key, callback) {
|
|
21274
|
+
ibiz.register.register("".concat(UILOGINNODE_PROVIDER_PREFIX, "_").concat(key), callback);
|
|
21214
21275
|
}
|
|
21215
|
-
async function
|
|
21276
|
+
async function getUILogicNodeProvider(model) {
|
|
21216
21277
|
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 {
|
|
21278
|
+
const { sysPFPluginId, appId } = model;
|
|
21279
|
+
const pluginKey = await getPluginRegisterKey(sysPFPluginId, appId);
|
|
21280
|
+
if (pluginKey) {
|
|
21281
|
+
provider = ibiz.register.get(
|
|
21282
|
+
"".concat(UILOGINNODE_PROVIDER_PREFIX, "_").concat(pluginKey)
|
|
21283
|
+
);
|
|
21284
|
+
if (provider) {
|
|
21226
21285
|
return provider;
|
|
21227
21286
|
}
|
|
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;
|
|
21287
|
+
throw new RuntimeError7(
|
|
21288
|
+
"\u627E\u4E0D\u5230\u754C\u9762\u903B\u8F91\u524D\u7AEF\u63D2\u4EF6\u8282\u70B9\uFF0C\u63D2\u4EF6".concat(pluginKey, "\u5BF9\u5E94\u7684\u9002\u914D\u5668")
|
|
21289
|
+
);
|
|
21234
21290
|
}
|
|
21235
21291
|
}
|
|
21236
21292
|
|
|
21237
|
-
// src/register/helper/
|
|
21238
|
-
|
|
21239
|
-
|
|
21240
|
-
|
|
21241
|
-
ibiz.register.register("".concat(APP_COUNTER_PROVIDER_PREFIX, "_").concat(key), callback);
|
|
21293
|
+
// src/register/helper/view-register.ts
|
|
21294
|
+
var VIEW_PROVIDER_PREFIX = "VIEW";
|
|
21295
|
+
function registerViewProvider(key, callback) {
|
|
21296
|
+
ibiz.register.register("".concat(VIEW_PROVIDER_PREFIX, "_").concat(key), callback);
|
|
21242
21297
|
}
|
|
21243
21298
|
function getProvider9(key) {
|
|
21244
|
-
return ibiz.register.get(
|
|
21245
|
-
"".concat(APP_COUNTER_PROVIDER_PREFIX, "_").concat(key)
|
|
21246
|
-
);
|
|
21299
|
+
return ibiz.register.get("".concat(VIEW_PROVIDER_PREFIX, "_").concat(key));
|
|
21247
21300
|
}
|
|
21248
|
-
async function
|
|
21301
|
+
async function getViewProvider(model) {
|
|
21249
21302
|
let provider;
|
|
21250
|
-
const {
|
|
21303
|
+
const { viewType, viewStyle, sysPFPluginId, appId } = model;
|
|
21251
21304
|
if (sysPFPluginId) {
|
|
21252
21305
|
const pluginKey = await getPluginRegisterKey(sysPFPluginId, appId);
|
|
21253
21306
|
if (pluginKey) {
|
|
21254
21307
|
provider = getProvider9(pluginKey);
|
|
21255
21308
|
}
|
|
21256
21309
|
if (!provider) {
|
|
21257
|
-
ibiz.log.error("\u627E\u4E0D\u5230\
|
|
21310
|
+
ibiz.log.error("\u627E\u4E0D\u5230\u89C6\u56FE\u63D2\u4EF6".concat(pluginKey, "\u5BF9\u5E94\u7684\u9002\u914D\u5668"));
|
|
21258
21311
|
} else {
|
|
21259
21312
|
return provider;
|
|
21260
21313
|
}
|
|
21261
21314
|
}
|
|
21262
|
-
if (
|
|
21263
|
-
|
|
21315
|
+
if (viewStyle && viewStyle !== "DEFAULT") {
|
|
21316
|
+
const key = "".concat(viewType, "_").concat(viewStyle);
|
|
21317
|
+
provider = getProvider9(key);
|
|
21264
21318
|
if (!provider) {
|
|
21265
|
-
|
|
21319
|
+
ibiz.log.error(
|
|
21320
|
+
"\u627E\u4E0D\u5230\u89C6\u56FE\u7C7B\u578B\uFF1A[".concat(viewType, "]\u7684\u89C6\u56FE\u6837\u5F0F\uFF1A[").concat(viewStyle, "]\u5BF9\u5E94\u7684\u9002\u914D\u5668"),
|
|
21321
|
+
model
|
|
21322
|
+
);
|
|
21266
21323
|
} else {
|
|
21267
21324
|
return provider;
|
|
21268
21325
|
}
|
|
21269
21326
|
}
|
|
21270
|
-
provider = getProvider9(counterType);
|
|
21271
21327
|
if (!provider) {
|
|
21272
|
-
|
|
21273
|
-
}
|
|
21274
|
-
|
|
21328
|
+
provider = getProvider9(viewType);
|
|
21329
|
+
}
|
|
21330
|
+
if (!provider) {
|
|
21331
|
+
provider = getProvider9("DEFAULT");
|
|
21275
21332
|
}
|
|
21333
|
+
return provider;
|
|
21276
21334
|
}
|
|
21277
21335
|
|
|
21278
21336
|
// src/service/utils/app-counter/app-counter.ts
|
|
21279
|
-
import { IBizContext, RuntimeError as
|
|
21337
|
+
import { IBizContext, RuntimeError as RuntimeError8 } from "@ibiz-template/core";
|
|
21280
21338
|
import { notNilEmpty as notNilEmpty5, QXEvent } from "qx-util";
|
|
21281
21339
|
import { clone as clone2 } from "ramda";
|
|
21282
21340
|
var AppCounter = class {
|
|
@@ -21381,7 +21439,7 @@ var AppCounter = class {
|
|
|
21381
21439
|
* @return {*} {Promise<IData>}
|
|
21382
21440
|
*/
|
|
21383
21441
|
async load() {
|
|
21384
|
-
throw new
|
|
21442
|
+
throw new RuntimeError8("\u672A\u5B9E\u73B0\u8BA1\u6570\u5668\u52A0\u8F7D\u65B9\u6CD5");
|
|
21385
21443
|
}
|
|
21386
21444
|
/**
|
|
21387
21445
|
* 计数器刷新
|
|
@@ -21814,7 +21872,7 @@ import { where, equals, clone as clone3, isNil as isNil5, isEmpty as isEmpty5 }
|
|
|
21814
21872
|
import { createUUID } from "qx-util";
|
|
21815
21873
|
|
|
21816
21874
|
// src/service/utils/service-exist-util/service-exist-util.ts
|
|
21817
|
-
import { RuntimeError as
|
|
21875
|
+
import { RuntimeError as RuntimeError9 } from "@ibiz-template/core";
|
|
21818
21876
|
import { isEmpty as isEmpty4, isNil as isNil4 } from "ramda";
|
|
21819
21877
|
function isExistSrfKey(funcName, entity) {
|
|
21820
21878
|
if (entity != null) {
|
|
@@ -21823,14 +21881,14 @@ function isExistSrfKey(funcName, entity) {
|
|
|
21823
21881
|
return true;
|
|
21824
21882
|
}
|
|
21825
21883
|
}
|
|
21826
|
-
throw new
|
|
21884
|
+
throw new RuntimeError9("\u6267\u884C\u300C".concat(funcName, "\u300D\u4E0D\u5B58\u5728\u300Csrfkey\u300D\u65E0\u6CD5\u5904\u7406"));
|
|
21827
21885
|
}
|
|
21828
21886
|
function isExistSessionId(funcName, context) {
|
|
21829
21887
|
const { srfsessionid } = context;
|
|
21830
21888
|
if (!isNil4(srfsessionid) && !isEmpty4(srfsessionid)) {
|
|
21831
21889
|
return true;
|
|
21832
21890
|
}
|
|
21833
|
-
throw new
|
|
21891
|
+
throw new RuntimeError9("\u6267\u884C\u300C".concat(funcName, "\u300D\u4E0D\u5B58\u5728\u300Csrfsessionid\u300D\u65E0\u6CD5\u5904\u7406"));
|
|
21834
21892
|
}
|
|
21835
21893
|
|
|
21836
21894
|
// src/service/utils/de-cache/de-cache.ts
|
|
@@ -22321,7 +22379,7 @@ var SearchFilter = class {
|
|
|
22321
22379
|
};
|
|
22322
22380
|
|
|
22323
22381
|
// src/service/service/code-list/code-list.service.ts
|
|
22324
|
-
import { RuntimeError as
|
|
22382
|
+
import { RuntimeError as RuntimeError10 } from "@ibiz-template/core";
|
|
22325
22383
|
var CodeListService = class {
|
|
22326
22384
|
constructor(appModel) {
|
|
22327
22385
|
this.appModel = appModel;
|
|
@@ -22468,7 +22526,7 @@ var CodeListService = class {
|
|
|
22468
22526
|
async get(tag, context, params) {
|
|
22469
22527
|
const codeList = this.allCodeLists.get(tag);
|
|
22470
22528
|
if (!codeList) {
|
|
22471
|
-
throw new
|
|
22529
|
+
throw new RuntimeError10("\u627E\u4E0D\u5230".concat(tag, "\u4EE3\u7801\u8868"));
|
|
22472
22530
|
}
|
|
22473
22531
|
if (codeList.codeListType === "STATIC") {
|
|
22474
22532
|
return this.getStatic(codeList);
|
|
@@ -22590,11 +22648,11 @@ CounterService.counterMap = /* @__PURE__ */ new Map();
|
|
|
22590
22648
|
// src/service/service/entity/de.service.ts
|
|
22591
22649
|
import {
|
|
22592
22650
|
ModelError as ModelError13,
|
|
22593
|
-
RuntimeError as
|
|
22651
|
+
RuntimeError as RuntimeError14
|
|
22594
22652
|
} from "@ibiz-template/core";
|
|
22595
22653
|
|
|
22596
22654
|
// src/service/service/work-flow/work-flow.service.ts
|
|
22597
|
-
import { RuntimeError as
|
|
22655
|
+
import { RuntimeError as RuntimeError11 } from "@ibiz-template/core";
|
|
22598
22656
|
var WorkFlowService = class {
|
|
22599
22657
|
/**
|
|
22600
22658
|
* Creates an instance of WorkFlowService.
|
|
@@ -22897,7 +22955,7 @@ var WorkFlowService = class {
|
|
|
22897
22955
|
case "sendcopy":
|
|
22898
22956
|
return this.wfSendCopy(context, params, data);
|
|
22899
22957
|
default: {
|
|
22900
|
-
throw new
|
|
22958
|
+
throw new RuntimeError11("\u300C".concat(methodName, "\u300D\u672A\u5B9E\u73B0"));
|
|
22901
22959
|
}
|
|
22902
22960
|
}
|
|
22903
22961
|
}
|
|
@@ -22939,7 +22997,7 @@ var FileService = class {
|
|
|
22939
22997
|
// src/service/service/entity/method/de-action.ts
|
|
22940
22998
|
import {
|
|
22941
22999
|
HttpResponse as HttpResponse3,
|
|
22942
|
-
RuntimeError as
|
|
23000
|
+
RuntimeError as RuntimeError13,
|
|
22943
23001
|
RuntimeModelError as RuntimeModelError18
|
|
22944
23002
|
} from "@ibiz-template/core";
|
|
22945
23003
|
import { isArray as isArray6, isNil as isNil8 } from "lodash-es";
|
|
@@ -23496,7 +23554,7 @@ var Method = class {
|
|
|
23496
23554
|
};
|
|
23497
23555
|
|
|
23498
23556
|
// src/de-logic/index.ts
|
|
23499
|
-
import { HttpError as HttpError2, HttpResponse as HttpResponse2, RuntimeError as
|
|
23557
|
+
import { HttpError as HttpError2, HttpResponse as HttpResponse2, RuntimeError as RuntimeError12 } from "@ibiz-template/core";
|
|
23500
23558
|
import { isArray as isArray5 } from "lodash-es";
|
|
23501
23559
|
import { clone as clone9 } from "ramda";
|
|
23502
23560
|
|
|
@@ -24549,7 +24607,7 @@ async function execDELogicById(deDELogicId, dataEntityId, context, data, params)
|
|
|
24549
24607
|
context.srfappid
|
|
24550
24608
|
);
|
|
24551
24609
|
if (!deLogic) {
|
|
24552
|
-
throw new
|
|
24610
|
+
throw new RuntimeError12("".concat(dataEntityId, "\u627E\u4E0D\u5230\u5B9E\u4F53\u903B\u8F91").concat(deDELogicId));
|
|
24553
24611
|
}
|
|
24554
24612
|
return execDELogic(deLogic, context, data, params);
|
|
24555
24613
|
}
|
|
@@ -24624,6 +24682,9 @@ var DEActionMethod = class extends Method {
|
|
|
24624
24682
|
return this.input.handle(context, data);
|
|
24625
24683
|
}
|
|
24626
24684
|
async exec(context, data, params) {
|
|
24685
|
+
if (data) {
|
|
24686
|
+
await execFieldLogics(this.entity, "change", context, data, params);
|
|
24687
|
+
}
|
|
24627
24688
|
if (this.method.actionType === "DELOGIC") {
|
|
24628
24689
|
const deLogic = findDELogic(this.method.appDELogicId, this.entity);
|
|
24629
24690
|
if (!deLogic) {
|
|
@@ -24705,7 +24766,7 @@ var DEActionMethod = class extends Method {
|
|
|
24705
24766
|
*/
|
|
24706
24767
|
async create(context, data, params) {
|
|
24707
24768
|
if (!data) {
|
|
24708
|
-
throw new
|
|
24769
|
+
throw new RuntimeError13("create\u884C\u4E3A\u6CA1\u6709\u4F20data");
|
|
24709
24770
|
}
|
|
24710
24771
|
if (this.isLocalMode) {
|
|
24711
24772
|
return this.createTemp(context, this.createEntity(data));
|
|
@@ -24747,7 +24808,7 @@ var DEActionMethod = class extends Method {
|
|
|
24747
24808
|
*/
|
|
24748
24809
|
async update(context, data, params) {
|
|
24749
24810
|
if (!data) {
|
|
24750
|
-
throw new
|
|
24811
|
+
throw new RuntimeError13("update\u884C\u4E3A\u6CA1\u6709\u4F20data");
|
|
24751
24812
|
}
|
|
24752
24813
|
if (this.isLocalMode) {
|
|
24753
24814
|
return this.updateTemp(context, this.createEntity(data));
|
|
@@ -24985,7 +25046,13 @@ var FetchMethod = class extends Method {
|
|
|
24985
25046
|
const items = res.data || [];
|
|
24986
25047
|
res.data = items.map((item) => this.createEntity(item));
|
|
24987
25048
|
if (res.data) {
|
|
24988
|
-
execFieldLogics(
|
|
25049
|
+
await execFieldLogics(
|
|
25050
|
+
this.entity,
|
|
25051
|
+
"compute",
|
|
25052
|
+
context,
|
|
25053
|
+
res.data,
|
|
25054
|
+
searchParams
|
|
25055
|
+
);
|
|
24989
25056
|
}
|
|
24990
25057
|
return res;
|
|
24991
25058
|
}
|
|
@@ -25213,7 +25280,7 @@ var DEService = class {
|
|
|
25213
25280
|
if (method) {
|
|
25214
25281
|
return method.exec(context, params, params2);
|
|
25215
25282
|
}
|
|
25216
|
-
throw new
|
|
25283
|
+
throw new RuntimeError14("".concat(this.model.codeName, "\u672A\u652F\u6301\u300C").concat(id, "\u300D\u65B9\u6CD5"));
|
|
25217
25284
|
}
|
|
25218
25285
|
/**
|
|
25219
25286
|
* 执行服务方法 ac 模式
|
|
@@ -25231,7 +25298,7 @@ var DEService = class {
|
|
|
25231
25298
|
if (method) {
|
|
25232
25299
|
return method.exec(context, params, params2);
|
|
25233
25300
|
}
|
|
25234
|
-
throw new
|
|
25301
|
+
throw new RuntimeError14("".concat(this.model.codeName, "\u672A\u652F\u6301\u300C").concat(id, "\u300D\u65B9\u6CD5"));
|
|
25235
25302
|
}
|
|
25236
25303
|
/**
|
|
25237
25304
|
* 实体级别 AI 聊天会话
|
|
@@ -25581,7 +25648,7 @@ var ControlService = class {
|
|
|
25581
25648
|
};
|
|
25582
25649
|
|
|
25583
25650
|
// src/service/service/control/md-control.service.ts
|
|
25584
|
-
import { RuntimeError as
|
|
25651
|
+
import { RuntimeError as RuntimeError15 } from "@ibiz-template/core";
|
|
25585
25652
|
import { isArray as isArray8 } from "qx-util";
|
|
25586
25653
|
var MDControlService = class extends ControlService {
|
|
25587
25654
|
/**
|
|
@@ -25690,7 +25757,7 @@ var MDControlService = class extends ControlService {
|
|
|
25690
25757
|
* @returns {*} {Promise<IHttpResponse>}
|
|
25691
25758
|
*/
|
|
25692
25759
|
async exportData(_dataExport, _context, _params = {}) {
|
|
25693
|
-
throw new
|
|
25760
|
+
throw new RuntimeError15("\u672A\u5B9E\u73B0");
|
|
25694
25761
|
}
|
|
25695
25762
|
/**
|
|
25696
25763
|
* 处理响应
|
|
@@ -25725,7 +25792,7 @@ var MDControlService = class extends ControlService {
|
|
|
25725
25792
|
};
|
|
25726
25793
|
|
|
25727
25794
|
// src/service/service/authority/authority.service.ts
|
|
25728
|
-
import { RuntimeError as
|
|
25795
|
+
import { RuntimeError as RuntimeError16 } from "@ibiz-template/core";
|
|
25729
25796
|
|
|
25730
25797
|
// src/service/service/authority/de-authority.service.ts
|
|
25731
25798
|
var DeAuthorityService = class {
|
|
@@ -25861,7 +25928,7 @@ var AuthorityService = class {
|
|
|
25861
25928
|
this.appModel.appId
|
|
25862
25929
|
);
|
|
25863
25930
|
if (!entityModel) {
|
|
25864
|
-
throw new
|
|
25931
|
+
throw new RuntimeError16("\u672A\u627E\u5230\u5E94\u7528\u5B9E\u4F53[".concat(id, "]"));
|
|
25865
25932
|
}
|
|
25866
25933
|
const constructor = this.constructorCache.get(id);
|
|
25867
25934
|
let service;
|
|
@@ -26034,8 +26101,8 @@ var TreeDataSetNodeData = class extends TreeNodeData {
|
|
|
26034
26101
|
super(model, parentNodeData, opts);
|
|
26035
26102
|
const { data } = opts;
|
|
26036
26103
|
this.deData = data;
|
|
26037
|
-
this.text = data.srfmajortext;
|
|
26038
|
-
this.value = data.srfkey;
|
|
26104
|
+
this.text = model.textAppDEFieldId ? data[model.textAppDEFieldId] : data.srfmajortext;
|
|
26105
|
+
this.value = model.idAppDEFieldId ? data[model.idAppDEFieldId] : data.srfkey;
|
|
26039
26106
|
this.id = parentNodeData ? "".concat(parentNodeData.id, ":").concat(model.id, "@").concat(data.srfkey) : model.id + data.srfkey;
|
|
26040
26107
|
this.id = this.id.toLowerCase();
|
|
26041
26108
|
if (model.appDataEntityId) {
|
|
@@ -26338,6 +26405,61 @@ var MapData = class {
|
|
|
26338
26405
|
}
|
|
26339
26406
|
};
|
|
26340
26407
|
|
|
26408
|
+
// src/service/vo/panel-data/panel-data.ts
|
|
26409
|
+
function updateKeyDefine2(target, keys) {
|
|
26410
|
+
keys.forEach((key) => {
|
|
26411
|
+
if (!Object.prototype.hasOwnProperty.call(target, key)) {
|
|
26412
|
+
Object.defineProperty(target, key, {
|
|
26413
|
+
enumerable: true,
|
|
26414
|
+
configurable: true,
|
|
26415
|
+
writable: true,
|
|
26416
|
+
value: void 0
|
|
26417
|
+
});
|
|
26418
|
+
}
|
|
26419
|
+
});
|
|
26420
|
+
}
|
|
26421
|
+
var PanelData = class {
|
|
26422
|
+
constructor(fields, origin) {
|
|
26423
|
+
const keyMap = {};
|
|
26424
|
+
const reverseKeyMap = {};
|
|
26425
|
+
fields.forEach((field) => {
|
|
26426
|
+
var _a;
|
|
26427
|
+
keyMap[field.id] = (_a = field.viewFieldName) == null ? void 0 : _a.toLowerCase();
|
|
26428
|
+
if (field.viewFieldName) {
|
|
26429
|
+
reverseKeyMap[field.viewFieldName.toLowerCase()] = field.id;
|
|
26430
|
+
}
|
|
26431
|
+
});
|
|
26432
|
+
return new Proxy(this, {
|
|
26433
|
+
set(target, p, value) {
|
|
26434
|
+
if (Object.prototype.hasOwnProperty.call(keyMap, p)) {
|
|
26435
|
+
if (keyMap[p]) {
|
|
26436
|
+
origin[keyMap[p]] = value;
|
|
26437
|
+
} else {
|
|
26438
|
+
target[p] = value;
|
|
26439
|
+
}
|
|
26440
|
+
} else {
|
|
26441
|
+
origin[keyMap[p]] = value;
|
|
26442
|
+
}
|
|
26443
|
+
return true;
|
|
26444
|
+
},
|
|
26445
|
+
get(target, p, _receiver) {
|
|
26446
|
+
if (keyMap[p]) {
|
|
26447
|
+
return origin[keyMap[p]];
|
|
26448
|
+
}
|
|
26449
|
+
if (Object.prototype.hasOwnProperty.call(origin, p)) {
|
|
26450
|
+
return origin[p];
|
|
26451
|
+
}
|
|
26452
|
+
return target[p];
|
|
26453
|
+
},
|
|
26454
|
+
ownKeys(target) {
|
|
26455
|
+
const allKeys = Object.keys(origin);
|
|
26456
|
+
updateKeyDefine2(target, allKeys);
|
|
26457
|
+
return allKeys;
|
|
26458
|
+
}
|
|
26459
|
+
});
|
|
26460
|
+
}
|
|
26461
|
+
};
|
|
26462
|
+
|
|
26341
26463
|
// src/service/mqtt/mqtt.service.ts
|
|
26342
26464
|
import { QXEvent as QXEvent2, createUUID as createUUID4, isNilOrEmpty as isNilOrEmpty6 } from "qx-util";
|
|
26343
26465
|
var MqttService = class {
|
|
@@ -26432,7 +26554,7 @@ var MqttService = class {
|
|
|
26432
26554
|
};
|
|
26433
26555
|
|
|
26434
26556
|
// src/service/de-service-util.ts
|
|
26435
|
-
import { RuntimeError as
|
|
26557
|
+
import { RuntimeError as RuntimeError17 } from "@ibiz-template/core";
|
|
26436
26558
|
var DEServiceUtil = class {
|
|
26437
26559
|
/**
|
|
26438
26560
|
* Creates an instance of DEServiceUtil.
|
|
@@ -26487,7 +26609,7 @@ var DEServiceUtil = class {
|
|
|
26487
26609
|
this.appModel.appId
|
|
26488
26610
|
);
|
|
26489
26611
|
if (!entityModel) {
|
|
26490
|
-
throw new
|
|
26612
|
+
throw new RuntimeError17("\u672A\u627E\u5230\u5E94\u7528\u5B9E\u4F53[".concat(id, "]"));
|
|
26491
26613
|
}
|
|
26492
26614
|
const constructor = this.constructorCache.get(id);
|
|
26493
26615
|
let service;
|
|
@@ -26550,7 +26672,7 @@ var _OpenAppViewCommand = class _OpenAppViewCommand {
|
|
|
26550
26672
|
const context = clone13(_context);
|
|
26551
26673
|
const appView = await ibiz.hub.config.view.get(appViewId);
|
|
26552
26674
|
if (!appView) {
|
|
26553
|
-
throw new
|
|
26675
|
+
throw new RuntimeError18("\u5E94\u7528\u89C6\u56FE[".concat(appViewId, "]\u4E0D\u5B58\u5728"));
|
|
26554
26676
|
}
|
|
26555
26677
|
if ((context.srfkey || params.srfuf === 0 /* CREATE */) && appView.appDataEntityId) {
|
|
26556
26678
|
const deName = calcDeCodeNameById(appView.appDataEntityId);
|
|
@@ -26639,7 +26761,7 @@ var _OpenAppViewCommand = class _OpenAppViewCommand {
|
|
|
26639
26761
|
*/
|
|
26640
26762
|
async openPopover(appView, event, context, params = {}) {
|
|
26641
26763
|
if (!event) {
|
|
26642
|
-
throw new
|
|
26764
|
+
throw new RuntimeError18("\u6C14\u6CE1\u6253\u5F00\u7F3A\u5C11event");
|
|
26643
26765
|
}
|
|
26644
26766
|
return ibiz.openView.popover(appView.id, event, context, params);
|
|
26645
26767
|
}
|
|
@@ -26694,7 +26816,7 @@ var _AppFuncCommand = class _AppFuncCommand {
|
|
|
26694
26816
|
async exec(appFuncId, context, params = {}, opts = {}) {
|
|
26695
26817
|
const appFunc = ibiz.hub.getApp(context.srfappid).getAppFunc(appFuncId);
|
|
26696
26818
|
if (!appFunc) {
|
|
26697
|
-
throw new
|
|
26819
|
+
throw new RuntimeError19("\u627E\u4E0D\u5230\u53EB".concat(appFuncId, "\u7684\u5E94\u7528\u529F\u80FD"));
|
|
26698
26820
|
}
|
|
26699
26821
|
const { navigateContexts, navigateParams, appFuncType } = appFunc;
|
|
26700
26822
|
const _context = context.clone();
|
|
@@ -26728,7 +26850,7 @@ var _AppFuncCommand = class _AppFuncCommand {
|
|
|
26728
26850
|
*/
|
|
26729
26851
|
async openAppView(appFunc, context, params, opts) {
|
|
26730
26852
|
if (!appFunc.appViewId) {
|
|
26731
|
-
throw new
|
|
26853
|
+
throw new RuntimeError19("\u5E94\u7528\u89C6\u56FE[".concat(appFunc.appViewId, "]\u4E0D\u5B58\u5728"));
|
|
26732
26854
|
}
|
|
26733
26855
|
return ibiz.commands.execute(
|
|
26734
26856
|
OpenAppViewCommand.TAG,
|
|
@@ -26762,7 +26884,7 @@ var _AppFuncCommand = class _AppFuncCommand {
|
|
|
26762
26884
|
*/
|
|
26763
26885
|
openPdAppFunc(appFunc, context, params) {
|
|
26764
26886
|
ibiz.log.warn("openPdAppFunc", appFunc, context, params);
|
|
26765
|
-
throw new
|
|
26887
|
+
throw new RuntimeError19("\u672A\u5B9E\u73B0");
|
|
26766
26888
|
}
|
|
26767
26889
|
/**
|
|
26768
26890
|
* 执行 JavaScript 脚本
|
|
@@ -26776,7 +26898,7 @@ var _AppFuncCommand = class _AppFuncCommand {
|
|
|
26776
26898
|
*/
|
|
26777
26899
|
executeJavaScript(appFunc, context, params) {
|
|
26778
26900
|
ibiz.log.warn("executeJavaScript", appFunc, context, params);
|
|
26779
|
-
throw new
|
|
26901
|
+
throw new RuntimeError19("\u672A\u5B9E\u73B0");
|
|
26780
26902
|
}
|
|
26781
26903
|
/**
|
|
26782
26904
|
* 自定义应用功能
|
|
@@ -26790,7 +26912,7 @@ var _AppFuncCommand = class _AppFuncCommand {
|
|
|
26790
26912
|
*/
|
|
26791
26913
|
custom(appFunc, context, params) {
|
|
26792
26914
|
ibiz.log.warn("custom", appFunc, context, params);
|
|
26793
|
-
throw new
|
|
26915
|
+
throw new RuntimeError19("\u672A\u5B9E\u73B0");
|
|
26794
26916
|
}
|
|
26795
26917
|
};
|
|
26796
26918
|
/**
|
|
@@ -26811,7 +26933,7 @@ function installCommand() {
|
|
|
26811
26933
|
}
|
|
26812
26934
|
|
|
26813
26935
|
// src/app-hub.ts
|
|
26814
|
-
import { RuntimeError as
|
|
26936
|
+
import { RuntimeError as RuntimeError53 } from "@ibiz-template/core";
|
|
26815
26937
|
|
|
26816
26938
|
// src/application.ts
|
|
26817
26939
|
import { Net, getToken } from "@ibiz-template/core";
|
|
@@ -27003,7 +27125,7 @@ var Convert = class {
|
|
|
27003
27125
|
};
|
|
27004
27126
|
|
|
27005
27127
|
// src/hub/config/app-view-config-service.ts
|
|
27006
|
-
import { RuntimeError as
|
|
27128
|
+
import { RuntimeError as RuntimeError20 } from "@ibiz-template/core";
|
|
27007
27129
|
var AppViewConfigService = class {
|
|
27008
27130
|
constructor() {
|
|
27009
27131
|
/**
|
|
@@ -27023,7 +27145,7 @@ var AppViewConfigService = class {
|
|
|
27023
27145
|
if (!this.viewConfigs.has(key)) {
|
|
27024
27146
|
const model = await ibiz.hub.getAppView(key);
|
|
27025
27147
|
if (!model) {
|
|
27026
|
-
throw new
|
|
27148
|
+
throw new RuntimeError20("\u89C6\u56FE[".concat(key, "]\u4E0D\u5B58\u5728"));
|
|
27027
27149
|
}
|
|
27028
27150
|
this.set(model.id, {
|
|
27029
27151
|
id: model.id,
|
|
@@ -27079,14 +27201,14 @@ var PanelNotifyState = /* @__PURE__ */ ((PanelNotifyState2) => {
|
|
|
27079
27201
|
|
|
27080
27202
|
// src/controller/common/view/view.controller.ts
|
|
27081
27203
|
import { createUUID as createUUID6, notNilEmpty as notNilEmpty6 } from "qx-util";
|
|
27082
|
-
import { IBizContext as IBizContext2, RuntimeError as
|
|
27204
|
+
import { IBizContext as IBizContext2, RuntimeError as RuntimeError27 } from "@ibiz-template/core";
|
|
27083
27205
|
import { isEmpty as isEmpty8, isNil as isNil17, isNotNil as isNotNil2 } from "ramda";
|
|
27084
27206
|
|
|
27085
27207
|
// src/controller/utils/loading/loading.state.ts
|
|
27086
27208
|
import { NOOP } from "@ibiz-template/core";
|
|
27087
27209
|
|
|
27088
27210
|
// src/controller/utils/counter/counter.ts
|
|
27089
|
-
import { RuntimeError as
|
|
27211
|
+
import { RuntimeError as RuntimeError21 } from "@ibiz-template/core";
|
|
27090
27212
|
var Counter = class {
|
|
27091
27213
|
/**
|
|
27092
27214
|
* Creates an instance of Counter.
|
|
@@ -27148,7 +27270,7 @@ var Counter = class {
|
|
|
27148
27270
|
return;
|
|
27149
27271
|
}
|
|
27150
27272
|
if (this.count === 0) {
|
|
27151
|
-
throw new
|
|
27273
|
+
throw new RuntimeError21("\u9519\u8BEF\u7684\u8C03\u7528\uFF01decrement\u4E0D\u80FD\u5BF9count\u4E3A0\u8C03\u7528");
|
|
27152
27274
|
}
|
|
27153
27275
|
this.count -= 1;
|
|
27154
27276
|
if (this.count === 0) {
|
|
@@ -27703,7 +27825,7 @@ function getOriginData(data) {
|
|
|
27703
27825
|
}
|
|
27704
27826
|
|
|
27705
27827
|
// src/controller/utils/value-rule/value-rule.ts
|
|
27706
|
-
import { RuntimeError as
|
|
27828
|
+
import { RuntimeError as RuntimeError22 } from "@ibiz-template/core";
|
|
27707
27829
|
import { isNilOrEmpty as isNilOrEmpty7, isNumber } from "qx-util";
|
|
27708
27830
|
import { isNil as isNil13 } from "ramda";
|
|
27709
27831
|
function generateRules(itemVRs, name, valueItemName) {
|
|
@@ -27753,7 +27875,7 @@ function generateRules(itemVRs, name, valueItemName) {
|
|
|
27753
27875
|
deRule.groupCond
|
|
27754
27876
|
);
|
|
27755
27877
|
if (!isPast) {
|
|
27756
|
-
callback(new
|
|
27878
|
+
callback(new RuntimeError22(infoMessage || deRule.ruleInfo));
|
|
27757
27879
|
}
|
|
27758
27880
|
return true;
|
|
27759
27881
|
},
|
|
@@ -27823,7 +27945,7 @@ function generateEditorRules(editor) {
|
|
|
27823
27945
|
}
|
|
27824
27946
|
|
|
27825
27947
|
// src/controller/utils/value-ex/value-ex.ts
|
|
27826
|
-
import { RuntimeError as
|
|
27948
|
+
import { RuntimeError as RuntimeError23 } from "@ibiz-template/core";
|
|
27827
27949
|
import { isNil as isNil14, mergeLeft } from "ramda";
|
|
27828
27950
|
var ValueExUtil = class {
|
|
27829
27951
|
/**
|
|
@@ -27855,7 +27977,7 @@ var ValueExUtil = class {
|
|
|
27855
27977
|
const { valueType, objectNameField, textSeparator } = this.mergeDefault(options);
|
|
27856
27978
|
if (["OBJECTS", "OBJECT"].includes(valueType)) {
|
|
27857
27979
|
if (!objectNameField) {
|
|
27858
|
-
throw new
|
|
27980
|
+
throw new RuntimeError23("\u7F3A\u5C11objectNameField");
|
|
27859
27981
|
}
|
|
27860
27982
|
const textKey = objectNameField.toLowerCase();
|
|
27861
27983
|
if (valueType === "OBJECTS") {
|
|
@@ -27871,7 +27993,7 @@ var ValueExUtil = class {
|
|
|
27871
27993
|
};
|
|
27872
27994
|
|
|
27873
27995
|
// src/controller/utils/value-default/value-default.ts
|
|
27874
|
-
import { RuntimeError as
|
|
27996
|
+
import { RuntimeError as RuntimeError24, ModelError as ModelError16 } from "@ibiz-template/core";
|
|
27875
27997
|
import dayjs from "dayjs";
|
|
27876
27998
|
import { createUUID as createUUID5 } from "qx-util";
|
|
27877
27999
|
import { isNil as isNil15, isNotNil } from "ramda";
|
|
@@ -27912,7 +28034,7 @@ function getDefaultValue(opts, origins) {
|
|
|
27912
28034
|
case "SESSION":
|
|
27913
28035
|
case "APPLICATION":
|
|
27914
28036
|
if (!((_a = ibiz.appData) == null ? void 0 : _a.context)) {
|
|
27915
|
-
throw new
|
|
28037
|
+
throw new RuntimeError24("appdata.context\u4E0D\u5B58\u5728");
|
|
27916
28038
|
}
|
|
27917
28039
|
return ibiz.appData.context[defaultValue];
|
|
27918
28040
|
case "CONTEXT":
|
|
@@ -27924,6 +28046,86 @@ function getDefaultValue(opts, origins) {
|
|
|
27924
28046
|
}
|
|
27925
28047
|
}
|
|
27926
28048
|
|
|
28049
|
+
// src/controller/utils/data-file-util/data-file-util.ts
|
|
28050
|
+
import {
|
|
28051
|
+
RuntimeError as RuntimeError25
|
|
28052
|
+
} from "@ibiz-template/core";
|
|
28053
|
+
var asyncImportUrl = "/asyncimportdata2";
|
|
28054
|
+
var importUrl = "/importdata2";
|
|
28055
|
+
function listenAsyncAction(id) {
|
|
28056
|
+
return new Promise((resolve) => {
|
|
28057
|
+
const callBack = (msg) => {
|
|
28058
|
+
const messageid = msg.messageid || msg.data.asyncacitonid;
|
|
28059
|
+
if (id === messageid && msg.data.actionstate === 30) {
|
|
28060
|
+
try {
|
|
28061
|
+
const result = JSON.parse(
|
|
28062
|
+
msg.data.actionresult
|
|
28063
|
+
);
|
|
28064
|
+
resolve(result);
|
|
28065
|
+
} catch (error) {
|
|
28066
|
+
throw new RuntimeError25("\u89E3\u6790\u6570\u636E\u53D1\u751F\u9519\u8BEF");
|
|
28067
|
+
} finally {
|
|
28068
|
+
ibiz.mc.command.asyncAction.off(callBack);
|
|
28069
|
+
}
|
|
28070
|
+
} else if (msg.data.actionstate === 40) {
|
|
28071
|
+
resolve({
|
|
28072
|
+
total: 0,
|
|
28073
|
+
success: 0,
|
|
28074
|
+
message: msg.data.actionresult
|
|
28075
|
+
});
|
|
28076
|
+
ibiz.mc.command.asyncAction.off(callBack);
|
|
28077
|
+
}
|
|
28078
|
+
};
|
|
28079
|
+
ibiz.mc.command.asyncAction.on(callBack);
|
|
28080
|
+
});
|
|
28081
|
+
}
|
|
28082
|
+
async function asyncImportData(file, appDataEntity) {
|
|
28083
|
+
const data = new FormData();
|
|
28084
|
+
data.append("file", file);
|
|
28085
|
+
const url = "".concat(appDataEntity.codeName2.toLowerCase(), "/").concat(asyncImportUrl);
|
|
28086
|
+
const res = await ibiz.net.request(url, {
|
|
28087
|
+
method: "post",
|
|
28088
|
+
data,
|
|
28089
|
+
headers: { "Content-Type": "multipart/form-data" }
|
|
28090
|
+
});
|
|
28091
|
+
return listenAsyncAction(res.data.asyncacitonid);
|
|
28092
|
+
}
|
|
28093
|
+
async function importData(file, appDataEntity) {
|
|
28094
|
+
const data = new FormData();
|
|
28095
|
+
data.append("file", file);
|
|
28096
|
+
const url = "".concat(appDataEntity.codeName2.toLowerCase(), "/").concat(importUrl);
|
|
28097
|
+
const res = await ibiz.net.request(url, {
|
|
28098
|
+
method: "post",
|
|
28099
|
+
data,
|
|
28100
|
+
headers: { "Content-Type": "multipart/form-data" }
|
|
28101
|
+
});
|
|
28102
|
+
return res.data;
|
|
28103
|
+
}
|
|
28104
|
+
async function exportData(header, data, fileName) {
|
|
28105
|
+
if (!ibiz.util.getExcelUtil) {
|
|
28106
|
+
throw new RuntimeError25("ibiz.util.getExportExcel\u4E0D\u5B58\u5728");
|
|
28107
|
+
}
|
|
28108
|
+
const exportExcel = await ibiz.util.getExcelUtil();
|
|
28109
|
+
if (!exportExcel) {
|
|
28110
|
+
throw new RuntimeError25("\u5BFC\u51FA\u6A21\u5757\u52A0\u8F7D\u9519\u8BEF");
|
|
28111
|
+
}
|
|
28112
|
+
try {
|
|
28113
|
+
exportExcel.exportJsonToExcel({
|
|
28114
|
+
header,
|
|
28115
|
+
// 表头内容 数组格式
|
|
28116
|
+
data,
|
|
28117
|
+
// 具体数据 这是个二维数组
|
|
28118
|
+
filename: fileName,
|
|
28119
|
+
// 文件名称
|
|
28120
|
+
autoWidth: true
|
|
28121
|
+
// 单元格是否自适应
|
|
28122
|
+
});
|
|
28123
|
+
return { ok: true };
|
|
28124
|
+
} catch (error) {
|
|
28125
|
+
return { ok: false };
|
|
28126
|
+
}
|
|
28127
|
+
}
|
|
28128
|
+
|
|
27927
28129
|
// src/controller/common/base.controller.ts
|
|
27928
28130
|
var SELF_KEY = "__self";
|
|
27929
28131
|
var BaseController = class {
|
|
@@ -28131,7 +28333,7 @@ var BaseController = class {
|
|
|
28131
28333
|
};
|
|
28132
28334
|
|
|
28133
28335
|
// src/controller/utils/view-msg/view-msg-controller.ts
|
|
28134
|
-
import { RuntimeError as
|
|
28336
|
+
import { RuntimeError as RuntimeError26, RuntimeModelError as RuntimeModelError20 } from "@ibiz-template/core";
|
|
28135
28337
|
import { isNil as isNil16, mergeRight as mergeRight2 } from "ramda";
|
|
28136
28338
|
var ViewMsgController = class _ViewMsgController {
|
|
28137
28339
|
constructor(msgGroupId) {
|
|
@@ -28157,7 +28359,7 @@ var ViewMsgController = class _ViewMsgController {
|
|
|
28157
28359
|
(item) => item.id === this.msgGroupId
|
|
28158
28360
|
);
|
|
28159
28361
|
if (!msgGroup) {
|
|
28160
|
-
throw new
|
|
28362
|
+
throw new RuntimeError26("\u627E\u4E0D\u5230\u89C6\u56FE\u6D88\u606F\u7EC4".concat(this.msgGroupId, "\u7684\u6A21\u578B"));
|
|
28161
28363
|
}
|
|
28162
28364
|
this.msgGroup = msgGroup;
|
|
28163
28365
|
const msgDetailsViewMsgIds = msgGroup.appViewMsgGroupDetails.map(
|
|
@@ -28171,7 +28373,7 @@ var ViewMsgController = class _ViewMsgController {
|
|
|
28171
28373
|
}
|
|
28172
28374
|
});
|
|
28173
28375
|
if (msgDetailsViewMsgIds.length) {
|
|
28174
|
-
throw new
|
|
28376
|
+
throw new RuntimeError26(
|
|
28175
28377
|
"\u6CA1\u6709\u627E\u5230".concat(msgDetailsViewMsgIds.join(","), "\u89C6\u56FE\u6D88\u606F\u6A21\u578B")
|
|
28176
28378
|
);
|
|
28177
28379
|
}
|
|
@@ -28574,7 +28776,7 @@ var ViewController = class extends BaseController {
|
|
|
28574
28776
|
async callUIAction(key, args) {
|
|
28575
28777
|
const result = this.call(key, args);
|
|
28576
28778
|
if (result === void 0) {
|
|
28577
|
-
throw new
|
|
28779
|
+
throw new RuntimeError27("\u6CA1\u6709\u5F15\u64CE\u652F\u6301\u9884\u7F6E\u754C\u9762\u884C\u4E3A".concat(key));
|
|
28578
28780
|
}
|
|
28579
28781
|
return result;
|
|
28580
28782
|
}
|
|
@@ -29160,7 +29362,7 @@ var ControlController = class extends BaseController {
|
|
|
29160
29362
|
};
|
|
29161
29363
|
|
|
29162
29364
|
// src/controller/common/control/md-control.controller.ts
|
|
29163
|
-
import { isElementSame, RuntimeError as
|
|
29365
|
+
import { isElementSame, RuntimeError as RuntimeError28 } from "@ibiz-template/core";
|
|
29164
29366
|
import { debounce } from "lodash-es";
|
|
29165
29367
|
var MDControlController = class extends ControlController {
|
|
29166
29368
|
constructor() {
|
|
@@ -29352,7 +29554,7 @@ var MDControlController = class extends ControlController {
|
|
|
29352
29554
|
async remove(args) {
|
|
29353
29555
|
const { context, params, data } = this.handlerAbilityParams(args);
|
|
29354
29556
|
if (!(data == null ? void 0 : data.length)) {
|
|
29355
|
-
throw new
|
|
29557
|
+
throw new RuntimeError28("\u672A\u9009\u4E2D\u6570\u636E");
|
|
29356
29558
|
}
|
|
29357
29559
|
if ((args == null ? void 0 : args.silent) !== true) {
|
|
29358
29560
|
const del = await ibiz.confirm.error({
|
|
@@ -29481,6 +29683,28 @@ var MDControlController = class extends ControlController {
|
|
|
29481
29683
|
* @returns {*} {Promise<void>}
|
|
29482
29684
|
*/
|
|
29483
29685
|
async importData() {
|
|
29686
|
+
var _a;
|
|
29687
|
+
const { appDataEntityId, dedataImportId } = this.model;
|
|
29688
|
+
const appDataEntity = await ibiz.hub.getAppDataEntity(appDataEntityId);
|
|
29689
|
+
const dataImport = (_a = appDataEntity.appDEDataImports) == null ? void 0 : _a.find(
|
|
29690
|
+
(importItem) => importItem.id === dedataImportId
|
|
29691
|
+
);
|
|
29692
|
+
if (!dataImport) {
|
|
29693
|
+
throw new RuntimeError28("\u65E0\u5BFC\u5165\u6A21\u578B\uFF01");
|
|
29694
|
+
}
|
|
29695
|
+
const modal = ibiz.overlay.createModal(
|
|
29696
|
+
"DataImport",
|
|
29697
|
+
{
|
|
29698
|
+
dismiss: () => modal.dismiss(),
|
|
29699
|
+
appDataEntity
|
|
29700
|
+
},
|
|
29701
|
+
{
|
|
29702
|
+
width: "auto",
|
|
29703
|
+
placement: "center"
|
|
29704
|
+
}
|
|
29705
|
+
);
|
|
29706
|
+
modal.present();
|
|
29707
|
+
await modal.onWillDismiss();
|
|
29484
29708
|
}
|
|
29485
29709
|
/**
|
|
29486
29710
|
* 数据导出
|
|
@@ -29496,7 +29720,7 @@ var MDControlController = class extends ControlController {
|
|
|
29496
29720
|
// src/controller/control/app-menu/app-menu.controller.ts
|
|
29497
29721
|
import {
|
|
29498
29722
|
findRecursiveChild,
|
|
29499
|
-
RuntimeError as
|
|
29723
|
+
RuntimeError as RuntimeError29,
|
|
29500
29724
|
RuntimeModelError as RuntimeModelError22
|
|
29501
29725
|
} from "@ibiz-template/core";
|
|
29502
29726
|
var AppMenuController = class extends ControlController {
|
|
@@ -29536,7 +29760,7 @@ var AppMenuController = class extends ControlController {
|
|
|
29536
29760
|
childrenFields: ["appMenuItems"]
|
|
29537
29761
|
});
|
|
29538
29762
|
if (!menuItem) {
|
|
29539
|
-
throw new
|
|
29763
|
+
throw new RuntimeError29("\u627E\u4E0D\u5230\u540D\u4E3A".concat(id, "\u7684\u83DC\u5355\u9879"));
|
|
29540
29764
|
}
|
|
29541
29765
|
this.evt.emit("onClick", {
|
|
29542
29766
|
eventArg: id,
|
|
@@ -29626,7 +29850,7 @@ var AppMenuController = class extends ControlController {
|
|
|
29626
29850
|
// src/controller/control/app-menu-icon-view/app-menu-icon-view.controller.ts
|
|
29627
29851
|
import {
|
|
29628
29852
|
findRecursiveChild as findRecursiveChild2,
|
|
29629
|
-
RuntimeError as
|
|
29853
|
+
RuntimeError as RuntimeError30,
|
|
29630
29854
|
RuntimeModelError as RuntimeModelError23
|
|
29631
29855
|
} from "@ibiz-template/core";
|
|
29632
29856
|
var AppMenuIconViewController = class extends AppMenuController {
|
|
@@ -29636,7 +29860,7 @@ var AppMenuIconViewController = class extends AppMenuController {
|
|
|
29636
29860
|
childrenFields: ["appMenuItems"]
|
|
29637
29861
|
});
|
|
29638
29862
|
if (!menuItem) {
|
|
29639
|
-
throw new
|
|
29863
|
+
throw new RuntimeError30("\u627E\u4E0D\u5230\u540D\u4E3A".concat(id, "\u7684\u83DC\u5355\u9879"));
|
|
29640
29864
|
}
|
|
29641
29865
|
this.evt.emit("onClick", {
|
|
29642
29866
|
eventArg: id,
|
|
@@ -29664,7 +29888,7 @@ var AppMenuIconViewController = class extends AppMenuController {
|
|
|
29664
29888
|
import dayjs2 from "dayjs";
|
|
29665
29889
|
|
|
29666
29890
|
// src/controller/control/calendar/calendar.service.ts
|
|
29667
|
-
import { RuntimeError as
|
|
29891
|
+
import { RuntimeError as RuntimeError31 } from "@ibiz-template/core";
|
|
29668
29892
|
var CalendarService = class extends MDControlService {
|
|
29669
29893
|
/**
|
|
29670
29894
|
* 执行查询多条数据的方法
|
|
@@ -29714,11 +29938,11 @@ var CalendarService = class extends MDControlService {
|
|
|
29714
29938
|
setCalendarConfigData(items, index) {
|
|
29715
29939
|
const { sysCalendarItems } = this.model;
|
|
29716
29940
|
if (!sysCalendarItems) {
|
|
29717
|
-
throw new
|
|
29941
|
+
throw new RuntimeError31("\u672A\u627E\u5230\u65E5\u5386\u9879\u6A21\u578B");
|
|
29718
29942
|
}
|
|
29719
29943
|
const calendarItem = sysCalendarItems[index];
|
|
29720
29944
|
if (!calendarItem) {
|
|
29721
|
-
throw new
|
|
29945
|
+
throw new RuntimeError31("\u672A\u627E\u5230\u65E5\u5386\u9879\u6A21\u578B");
|
|
29722
29946
|
}
|
|
29723
29947
|
return items.map((item) => {
|
|
29724
29948
|
return new CalendarItemData(calendarItem, item);
|
|
@@ -29908,11 +30132,11 @@ var CalendarController = class extends MDControlController {
|
|
|
29908
30132
|
};
|
|
29909
30133
|
|
|
29910
30134
|
// src/controller/control/chart/chart.controller.ts
|
|
29911
|
-
import { RuntimeError as
|
|
30135
|
+
import { RuntimeError as RuntimeError33 } from "@ibiz-template/core";
|
|
29912
30136
|
|
|
29913
30137
|
// src/controller/control/chart/generator/chart-options-generator.ts
|
|
29914
30138
|
import { mergeDeepRight as mergeDeepRight3 } from "ramda";
|
|
29915
|
-
import { RuntimeError as
|
|
30139
|
+
import { RuntimeError as RuntimeError32 } from "@ibiz-template/core";
|
|
29916
30140
|
|
|
29917
30141
|
// src/controller/control/chart/generator/line-series-generator.ts
|
|
29918
30142
|
import { RuntimeModelError as RuntimeModelError25 } from "@ibiz-template/core";
|
|
@@ -30855,7 +31079,7 @@ var ChartOptionsGenerator2 = class {
|
|
|
30855
31079
|
getSrfkeyByParams(params) {
|
|
30856
31080
|
const generator = this.seriesGenerators[params.seriesIndex];
|
|
30857
31081
|
if (!generator) {
|
|
30858
|
-
throw new
|
|
31082
|
+
throw new RuntimeError32("\u627E\u4E0D\u5230".concat(params.seriesIndex, "\u5E8F\u5217\u7684generator\uFF01"));
|
|
30859
31083
|
}
|
|
30860
31084
|
return generator.getSrfkeyByParams(params);
|
|
30861
31085
|
}
|
|
@@ -30967,10 +31191,10 @@ var ChartController = class extends MDControlController {
|
|
|
30967
31191
|
*/
|
|
30968
31192
|
updateChart() {
|
|
30969
31193
|
if (!this.chart) {
|
|
30970
|
-
throw new
|
|
31194
|
+
throw new RuntimeError33("chart\u5BF9\u8C61\u6CA1\u6709\u6B63\u786E\u521D\u59CB\u5316");
|
|
30971
31195
|
}
|
|
30972
31196
|
if (!this.options) {
|
|
30973
|
-
throw new
|
|
31197
|
+
throw new RuntimeError33("options\u8FD8\u6CA1\u8BA1\u7B97");
|
|
30974
31198
|
}
|
|
30975
31199
|
this.chart.setOption(this.options);
|
|
30976
31200
|
this.resizeChart();
|
|
@@ -31015,7 +31239,7 @@ var CaptionBarController = class extends ControlController {
|
|
|
31015
31239
|
};
|
|
31016
31240
|
|
|
31017
31241
|
// src/controller/control/toolbar/toolbar.controllerr.ts
|
|
31018
|
-
import { recursiveIterate, RuntimeError as
|
|
31242
|
+
import { recursiveIterate, RuntimeError as RuntimeError41 } from "@ibiz-template/core";
|
|
31019
31243
|
|
|
31020
31244
|
// src/ui-action/provider/backend-ui-action-provider.ts
|
|
31021
31245
|
import { RuntimeModelError as RuntimeModelError46 } from "@ibiz-template/core";
|
|
@@ -31025,7 +31249,7 @@ import { isArray as isArray9 } from "qx-util";
|
|
|
31025
31249
|
import { RuntimeModelError as RuntimeModelError45 } from "@ibiz-template/core";
|
|
31026
31250
|
|
|
31027
31251
|
// src/ui-logic/index.ts
|
|
31028
|
-
import { RuntimeError as
|
|
31252
|
+
import { RuntimeError as RuntimeError39 } from "@ibiz-template/core";
|
|
31029
31253
|
|
|
31030
31254
|
// src/ui-logic/ui-logic.ts
|
|
31031
31255
|
import { ModelError as ModelError24, RuntimeModelError as RuntimeModelError44 } from "@ibiz-template/core";
|
|
@@ -31104,6 +31328,7 @@ var UILogicContext = class {
|
|
|
31104
31328
|
}
|
|
31105
31329
|
/**
|
|
31106
31330
|
* 重置实体逻辑参数
|
|
31331
|
+
*
|
|
31107
31332
|
* @author lxm
|
|
31108
31333
|
* @date 2023-03-24 09:18:02
|
|
31109
31334
|
* @param {string} name
|
|
@@ -31114,6 +31339,7 @@ var UILogicContext = class {
|
|
|
31114
31339
|
}
|
|
31115
31340
|
/**
|
|
31116
31341
|
* 重新建立变量
|
|
31342
|
+
*
|
|
31117
31343
|
* @author lxm
|
|
31118
31344
|
* @date 2023-03-24 09:20:24
|
|
31119
31345
|
* @param {string} name
|
|
@@ -31124,6 +31350,7 @@ var UILogicContext = class {
|
|
|
31124
31350
|
}
|
|
31125
31351
|
/**
|
|
31126
31352
|
* 设置上一次返回值
|
|
31353
|
+
*
|
|
31127
31354
|
* @author lxm
|
|
31128
31355
|
* @date 2023-09-04 09:23:52
|
|
31129
31356
|
* @param {unknown} value
|
|
@@ -31133,6 +31360,7 @@ var UILogicContext = class {
|
|
|
31133
31360
|
}
|
|
31134
31361
|
/**
|
|
31135
31362
|
* 初始化上一次返回参数类型的逻辑参数
|
|
31363
|
+
*
|
|
31136
31364
|
* @author lxm
|
|
31137
31365
|
* @date 2023-09-04 09:52:00
|
|
31138
31366
|
* @param {string} tag
|
|
@@ -31146,6 +31374,7 @@ var UILogicContext = class {
|
|
|
31146
31374
|
}
|
|
31147
31375
|
/**
|
|
31148
31376
|
* 是否是实体参数变量(即后台数据对象)
|
|
31377
|
+
*
|
|
31149
31378
|
* @author lxm
|
|
31150
31379
|
* @date 2023-09-22 03:40:30
|
|
31151
31380
|
* @param {string} paramId
|
|
@@ -31556,7 +31785,7 @@ var EndNode2 = class extends UILogicNode {
|
|
|
31556
31785
|
};
|
|
31557
31786
|
|
|
31558
31787
|
// src/ui-logic/ui-logic-node/prepare-js-param-node/prepare-js-param-node.ts
|
|
31559
|
-
import { ModelError as ModelError21, RuntimeError as
|
|
31788
|
+
import { ModelError as ModelError21, RuntimeError as RuntimeError34 } from "@ibiz-template/core";
|
|
31560
31789
|
import { clone as clone16 } from "ramda";
|
|
31561
31790
|
var PrepareJSParamNode = class extends UILogicNode {
|
|
31562
31791
|
async exec(ctx) {
|
|
@@ -31606,7 +31835,7 @@ var PrepareJSParamNode = class extends UILogicNode {
|
|
|
31606
31835
|
setParamValue(nodeParam, ctx) {
|
|
31607
31836
|
const { dstFieldName, dstDEUILogicParamId } = nodeParam;
|
|
31608
31837
|
if (!dstDEUILogicParamId) {
|
|
31609
|
-
throw new
|
|
31838
|
+
throw new RuntimeError34("\u6CA1\u6709\u76EE\u6807\u53C2\u6570\u5BF9\u8C61id");
|
|
31610
31839
|
}
|
|
31611
31840
|
let dstField = dstFieldName;
|
|
31612
31841
|
if (ctx.isEntityParam(dstDEUILogicParamId)) {
|
|
@@ -31723,7 +31952,7 @@ var PrepareJSParamNode = class extends UILogicNode {
|
|
|
31723
31952
|
};
|
|
31724
31953
|
|
|
31725
31954
|
// src/ui-logic/ui-logic-node/view-ctrl-invoke-node/view-ctrl-invoke-node.ts
|
|
31726
|
-
import { RuntimeError as
|
|
31955
|
+
import { RuntimeError as RuntimeError35, RuntimeModelError as RuntimeModelError32 } from "@ibiz-template/core";
|
|
31727
31956
|
import { isFunction } from "lodash-es";
|
|
31728
31957
|
var ViewCtrlInvokeNode = class extends UILogicNode {
|
|
31729
31958
|
async exec(ctx) {
|
|
@@ -31740,14 +31969,14 @@ var ViewCtrlInvokeNode = class extends UILogicNode {
|
|
|
31740
31969
|
}
|
|
31741
31970
|
const invokeParam = ctx.params[invokeParamId];
|
|
31742
31971
|
if (!invokeParam) {
|
|
31743
|
-
throw new
|
|
31972
|
+
throw new RuntimeError35("\u6CA1\u6709\u627E\u5230\u64CD\u4F5C\u53C2\u6570".concat(invokeParamId));
|
|
31744
31973
|
}
|
|
31745
31974
|
const invokeCtrl = ctx.params[invokeCtrlId];
|
|
31746
31975
|
if (!invokeCtrl) {
|
|
31747
|
-
throw new
|
|
31976
|
+
throw new RuntimeError35("\u6CA1\u6709\u627E\u5230\u754C\u9762\u5BF9\u8C61".concat(invokeCtrlId));
|
|
31748
31977
|
}
|
|
31749
31978
|
if (!invokeCtrl[invokeMethod] || !isFunction(invokeCtrl[invokeMethod])) {
|
|
31750
|
-
throw new
|
|
31979
|
+
throw new RuntimeError35("\u6CA1\u6709\u627E\u5230\u8C03\u7528\u65B9\u6CD5".concat(invokeMethod));
|
|
31751
31980
|
}
|
|
31752
31981
|
await invokeCtrl[invokeMethod](invokeParam);
|
|
31753
31982
|
}
|
|
@@ -31836,6 +32065,16 @@ var MsgBoxNode = class extends UILogicNode {
|
|
|
31836
32065
|
}
|
|
31837
32066
|
};
|
|
31838
32067
|
|
|
32068
|
+
// src/ui-logic/ui-logic-node/pf-plugin-node/pf-plugin-node.ts
|
|
32069
|
+
var PFPluginNode = class extends UILogicNode {
|
|
32070
|
+
async exec(ctx) {
|
|
32071
|
+
const provider = await getUILogicNodeProvider(this.model);
|
|
32072
|
+
if (provider) {
|
|
32073
|
+
await provider.exec(this.model, ctx);
|
|
32074
|
+
}
|
|
32075
|
+
}
|
|
32076
|
+
};
|
|
32077
|
+
|
|
31839
32078
|
// src/ui-logic/ui-logic-node/debug-param-node/debug-param-node.ts
|
|
31840
32079
|
import { RuntimeModelError as RuntimeModelError35 } from "@ibiz-template/core";
|
|
31841
32080
|
var DebugParamNode = class extends UILogicNode {
|
|
@@ -31963,16 +32202,16 @@ var DataSetNode2 = class extends UILogicNode {
|
|
|
31963
32202
|
};
|
|
31964
32203
|
|
|
31965
32204
|
// src/ui-logic/ui-logic-node/throw-exception-node/throw-exception-node.ts
|
|
31966
|
-
import { RuntimeError as
|
|
32205
|
+
import { RuntimeError as RuntimeError36 } from "@ibiz-template/core";
|
|
31967
32206
|
var ThrowExceptionNode2 = class extends UILogicNode {
|
|
31968
32207
|
async exec(_ctx) {
|
|
31969
32208
|
const { errorInfo } = this.model;
|
|
31970
|
-
throw new
|
|
32209
|
+
throw new RuntimeError36(errorInfo);
|
|
31971
32210
|
}
|
|
31972
32211
|
};
|
|
31973
32212
|
|
|
31974
32213
|
// src/ui-logic/ui-logic-node/view-ctrl-fire-event-node/view-ctrl-fire-event-node.ts
|
|
31975
|
-
import { RuntimeError as
|
|
32214
|
+
import { RuntimeError as RuntimeError37, RuntimeModelError as RuntimeModelError42 } from "@ibiz-template/core";
|
|
31976
32215
|
var ViewCtrlFireEventNode = class extends UILogicNode {
|
|
31977
32216
|
async exec(ctx) {
|
|
31978
32217
|
ctx.isEndNode = true;
|
|
@@ -31988,18 +32227,18 @@ var ViewCtrlFireEventNode = class extends UILogicNode {
|
|
|
31988
32227
|
}
|
|
31989
32228
|
const invokeCtrl = ctx.params[fireCtrlId];
|
|
31990
32229
|
if (!invokeCtrl) {
|
|
31991
|
-
throw new
|
|
32230
|
+
throw new RuntimeError37("\u6CA1\u6709\u627E\u5230\u89E6\u53D1\u5BF9\u8C61".concat(fireCtrlId));
|
|
31992
32231
|
}
|
|
31993
32232
|
const eventParam = ctx.params[eventParamId];
|
|
31994
32233
|
if (!eventParam) {
|
|
31995
|
-
throw new
|
|
32234
|
+
throw new RuntimeError37("\u6CA1\u6709\u627E\u5230\u4E8B\u4EF6\u53C2\u6570\u5BF9\u8C61".concat(eventParamId));
|
|
31996
32235
|
}
|
|
31997
32236
|
await invokeCtrl.evt.emit(eventName, eventParam);
|
|
31998
32237
|
}
|
|
31999
32238
|
};
|
|
32000
32239
|
|
|
32001
32240
|
// src/ui-logic/ui-logic-node/execute-de-logic-node/execute-de-logic-node.ts
|
|
32002
|
-
import { RuntimeError as
|
|
32241
|
+
import { RuntimeError as RuntimeError38, RuntimeModelError as RuntimeModelError43 } from "@ibiz-template/core";
|
|
32003
32242
|
var ExecuteDELogicNode = class extends UILogicNode {
|
|
32004
32243
|
async exec(ctx) {
|
|
32005
32244
|
const {
|
|
@@ -32019,7 +32258,7 @@ var ExecuteDELogicNode = class extends UILogicNode {
|
|
|
32019
32258
|
}
|
|
32020
32259
|
const dstParam = ctx.params[dstDEUILogicParamId];
|
|
32021
32260
|
if (!dstParam) {
|
|
32022
|
-
throw new
|
|
32261
|
+
throw new RuntimeError38("\u6CA1\u6709\u627E\u5230\u4F20\u5165\u53C2\u6570".concat(dstDEUILogicParamId));
|
|
32023
32262
|
}
|
|
32024
32263
|
const result = await execDELogicById(
|
|
32025
32264
|
dstAppDELogicId,
|
|
@@ -32221,6 +32460,8 @@ var UILogic = class {
|
|
|
32221
32460
|
logicNode = new ExecuteDELogicNode(node);
|
|
32222
32461
|
break;
|
|
32223
32462
|
case "PFPLUGIN":
|
|
32463
|
+
logicNode = new PFPluginNode(node);
|
|
32464
|
+
break;
|
|
32224
32465
|
default:
|
|
32225
32466
|
throw new ModelError24(node, "\u672A\u652F\u6301\u7684\u903B\u8F91\u8282\u70B9\u7C7B\u578B: ".concat(logicNodeType));
|
|
32226
32467
|
}
|
|
@@ -32321,7 +32562,7 @@ async function execUILogic(deUILogicId, appDataEntityId, parameters) {
|
|
|
32321
32562
|
const app = ibiz.hub.getApp(parameters.context.srfappid);
|
|
32322
32563
|
const deUILogic = await app.getDEUILogic(deUILogicId, appDataEntityId);
|
|
32323
32564
|
if (!deUILogic) {
|
|
32324
|
-
throw new
|
|
32565
|
+
throw new RuntimeError39(
|
|
32325
32566
|
"\u627E\u4E0D\u5230\u5B9E\u4F53".concat(appDataEntityId, "\u7684\u754C\u9762\u903B\u8F91").concat(deUILogicId)
|
|
32326
32567
|
);
|
|
32327
32568
|
}
|
|
@@ -32334,7 +32575,7 @@ async function execUILogic(deUILogicId, appDataEntityId, parameters) {
|
|
|
32334
32575
|
}
|
|
32335
32576
|
|
|
32336
32577
|
// src/ui-action/uiaction-util.ts
|
|
32337
|
-
import { RuntimeError as
|
|
32578
|
+
import { RuntimeError as RuntimeError40 } from "@ibiz-template/core";
|
|
32338
32579
|
var UIActionUtil = class {
|
|
32339
32580
|
/**
|
|
32340
32581
|
* 执行界面行为
|
|
@@ -32349,7 +32590,7 @@ var UIActionUtil = class {
|
|
|
32349
32590
|
static async exec(actionId, params) {
|
|
32350
32591
|
const action = await getUIActionById(actionId);
|
|
32351
32592
|
if (!action) {
|
|
32352
|
-
throw new
|
|
32593
|
+
throw new RuntimeError40("\u6CA1\u627E\u5230".concat(actionId, "\u7684\u754C\u9762\u884C\u4E3A\u6A21\u578B"));
|
|
32353
32594
|
}
|
|
32354
32595
|
if (action.actionTarget === "SINGLEDATA") {
|
|
32355
32596
|
const validateResult = await params.view.call("Validate" /* VALIDATE */);
|
|
@@ -32879,7 +33120,7 @@ var ToolbarController = class extends ControlController {
|
|
|
32879
33120
|
const actionId = item.uiactionId;
|
|
32880
33121
|
const uiAction = await getUIActionById(actionId);
|
|
32881
33122
|
if (!uiAction) {
|
|
32882
|
-
throw new
|
|
33123
|
+
throw new RuntimeError41("\u6CA1\u6709\u627E\u5230\u754C\u9762\u884C\u4E3A\u6A21\u578B".concat(actionId));
|
|
32883
33124
|
}
|
|
32884
33125
|
const enableLoading = ["SYS", "BACKEND", "WFBACKEND"].includes(uiAction.uiactionMode) && uiAction.showBusyIndicator !== false;
|
|
32885
33126
|
if (enableLoading) {
|
|
@@ -33901,7 +34142,7 @@ var DataViewControlController = class extends MDControlController {
|
|
|
33901
34142
|
import { RuntimeModelError as RuntimeModelError50 } from "@ibiz-template/core";
|
|
33902
34143
|
|
|
33903
34144
|
// src/controller/control/exp-bar/exp-bar.controller.ts
|
|
33904
|
-
import { RuntimeError as
|
|
34145
|
+
import { RuntimeError as RuntimeError42, RuntimeModelError as RuntimeModelError49 } from "@ibiz-template/core";
|
|
33905
34146
|
var ExpBarControlController = class extends ControlController {
|
|
33906
34147
|
constructor() {
|
|
33907
34148
|
super(...arguments);
|
|
@@ -34215,7 +34456,7 @@ var ExpBarControlController = class extends ControlController {
|
|
|
34215
34456
|
if (["GRID", "DATAVIEW", "LIST"].includes(((_a = this.XDataModel) == null ? void 0 : _a.controlType) || "")) {
|
|
34216
34457
|
return this.XDataModel.navAppViewId;
|
|
34217
34458
|
}
|
|
34218
|
-
throw new
|
|
34459
|
+
throw new RuntimeError42("\u591A\u8282\u70B9\u89C6\u56FE\u7531\u5B50\u7C7B\u5B9E\u73B0");
|
|
34219
34460
|
}
|
|
34220
34461
|
/**
|
|
34221
34462
|
* 获取导航视图
|
|
@@ -34358,7 +34599,7 @@ var CalendarExpBarController = class extends ExpBarControlController {
|
|
|
34358
34599
|
};
|
|
34359
34600
|
|
|
34360
34601
|
// src/controller/control/exp-bar/tree-exp-bar.controller.ts
|
|
34361
|
-
import { RuntimeError as
|
|
34602
|
+
import { RuntimeError as RuntimeError43, RuntimeModelError as RuntimeModelError51 } from "@ibiz-template/core";
|
|
34362
34603
|
var TreeExpBarController = class extends ExpBarControlController {
|
|
34363
34604
|
constructor() {
|
|
34364
34605
|
super(...arguments);
|
|
@@ -34433,7 +34674,7 @@ var TreeExpBarController = class extends ExpBarControlController {
|
|
|
34433
34674
|
const deData = node.deData || node;
|
|
34434
34675
|
const nodeModel = this.getNodeModel(node.nodeId);
|
|
34435
34676
|
if (!nodeModel) {
|
|
34436
|
-
throw new
|
|
34677
|
+
throw new RuntimeError43("\u627E\u4E0D\u5230".concat(node.nodeId, "\u7684\u8282\u70B9\u6A21\u578B"));
|
|
34437
34678
|
}
|
|
34438
34679
|
const result = this.prepareParams(nodeModel, deData, context, params);
|
|
34439
34680
|
result.context.currentSrfNav = nodeId;
|
|
@@ -35004,9 +35245,9 @@ var FormDetailController = class {
|
|
|
35004
35245
|
* @protected
|
|
35005
35246
|
*/
|
|
35006
35247
|
this.dynaLogicResult = {
|
|
35007
|
-
visible:
|
|
35008
|
-
disabled:
|
|
35009
|
-
required:
|
|
35248
|
+
visible: void 0,
|
|
35249
|
+
disabled: void 0,
|
|
35250
|
+
required: void 0
|
|
35010
35251
|
};
|
|
35011
35252
|
this.model = model;
|
|
35012
35253
|
this.form = form;
|
|
@@ -35180,16 +35421,18 @@ var FormDetailController = class {
|
|
|
35180
35421
|
* @param {IData} data
|
|
35181
35422
|
*/
|
|
35182
35423
|
calcDetailDisabled(data) {
|
|
35183
|
-
let
|
|
35184
|
-
if (
|
|
35424
|
+
let { disabled } = this.dynaLogicResult;
|
|
35425
|
+
if (disabled !== true && this.form.scheduler) {
|
|
35185
35426
|
const itemEnable = this.form.scheduler.triggerItemEnable(this.model.id, {
|
|
35186
35427
|
data: [data]
|
|
35187
35428
|
});
|
|
35188
35429
|
if (itemEnable !== void 0) {
|
|
35189
|
-
|
|
35430
|
+
disabled = !itemEnable;
|
|
35190
35431
|
}
|
|
35191
35432
|
}
|
|
35192
|
-
|
|
35433
|
+
if (disabled !== void 0) {
|
|
35434
|
+
this.state.disabled = disabled;
|
|
35435
|
+
}
|
|
35193
35436
|
}
|
|
35194
35437
|
/**
|
|
35195
35438
|
* 计算项的显示状态
|
|
@@ -35198,7 +35441,7 @@ var FormDetailController = class {
|
|
|
35198
35441
|
*/
|
|
35199
35442
|
calcDetailVisible(data) {
|
|
35200
35443
|
let { visible } = this.dynaLogicResult;
|
|
35201
|
-
if (visible && this.form.scheduler) {
|
|
35444
|
+
if (visible !== false && this.form.scheduler) {
|
|
35202
35445
|
const itemVIsible = this.form.scheduler.triggerItemVisible(
|
|
35203
35446
|
this.model.id,
|
|
35204
35447
|
{
|
|
@@ -35209,7 +35452,9 @@ var FormDetailController = class {
|
|
|
35209
35452
|
visible = itemVIsible;
|
|
35210
35453
|
}
|
|
35211
35454
|
}
|
|
35212
|
-
|
|
35455
|
+
if (visible !== void 0) {
|
|
35456
|
+
this.state.visible = visible;
|
|
35457
|
+
}
|
|
35213
35458
|
}
|
|
35214
35459
|
/**
|
|
35215
35460
|
* 计算项的必填状态
|
|
@@ -35217,8 +35462,8 @@ var FormDetailController = class {
|
|
|
35217
35462
|
* @param {IData} data
|
|
35218
35463
|
*/
|
|
35219
35464
|
calcDetailRequired(data) {
|
|
35220
|
-
let
|
|
35221
|
-
if (
|
|
35465
|
+
let { required } = this.dynaLogicResult;
|
|
35466
|
+
if (required !== true && this.form.scheduler) {
|
|
35222
35467
|
const itemAllowEmpty = this.form.scheduler.triggerItemBlank(
|
|
35223
35468
|
this.model.id,
|
|
35224
35469
|
{
|
|
@@ -35226,10 +35471,12 @@ var FormDetailController = class {
|
|
|
35226
35471
|
}
|
|
35227
35472
|
);
|
|
35228
35473
|
if (itemAllowEmpty !== void 0) {
|
|
35229
|
-
|
|
35474
|
+
required = !itemAllowEmpty;
|
|
35230
35475
|
}
|
|
35231
35476
|
}
|
|
35232
|
-
|
|
35477
|
+
if (required !== void 0) {
|
|
35478
|
+
this.state.required = required;
|
|
35479
|
+
}
|
|
35233
35480
|
}
|
|
35234
35481
|
};
|
|
35235
35482
|
|
|
@@ -35528,8 +35775,8 @@ var FormGroupPanelController = class extends FormDetailController {
|
|
|
35528
35775
|
super.onInit();
|
|
35529
35776
|
await this.initActionStates();
|
|
35530
35777
|
}
|
|
35531
|
-
async formStateNotify(
|
|
35532
|
-
super.
|
|
35778
|
+
async formStateNotify(state) {
|
|
35779
|
+
super.formStateNotify(state);
|
|
35533
35780
|
if (this.state.actionGroupState) {
|
|
35534
35781
|
this.state.actionGroupState.update(this.form.data.getOrigin());
|
|
35535
35782
|
}
|
|
@@ -35942,10 +36189,11 @@ var FormMDCtrlContentTypeController = class {
|
|
|
35942
36189
|
* @memberof FormMDCtrlController
|
|
35943
36190
|
*/
|
|
35944
36191
|
onDataRemove(index) {
|
|
36192
|
+
var _a;
|
|
35945
36193
|
if (index < 0) {
|
|
35946
36194
|
return;
|
|
35947
36195
|
}
|
|
35948
|
-
this.parent.state.contentCtrlData.splice(index, 1);
|
|
36196
|
+
(_a = this.parent.state.contentCtrlData) == null ? void 0 : _a.splice(index, 1);
|
|
35949
36197
|
this.parent.setFormDataValue();
|
|
35950
36198
|
}
|
|
35951
36199
|
/**
|
|
@@ -35957,7 +36205,8 @@ var FormMDCtrlContentTypeController = class {
|
|
|
35957
36205
|
* @memberof FormMDCtrlContentTypeController
|
|
35958
36206
|
*/
|
|
35959
36207
|
onDataInsert(data) {
|
|
35960
|
-
|
|
36208
|
+
var _a;
|
|
36209
|
+
(_a = this.parent.state.contentCtrlData) == null ? void 0 : _a.push(data || {});
|
|
35961
36210
|
this.parent.setFormDataValue();
|
|
35962
36211
|
}
|
|
35963
36212
|
/**
|
|
@@ -35996,8 +36245,11 @@ var FormMDCtrlContentTypeController = class {
|
|
|
35996
36245
|
}
|
|
35997
36246
|
};
|
|
35998
36247
|
|
|
36248
|
+
// src/controller/control/form/form-detail/form-mdctrl/form-mdctrl.controller.ts
|
|
36249
|
+
import { clone as clone19 } from "ramda";
|
|
36250
|
+
|
|
35999
36251
|
// src/controller/control/form/form-detail/form-mdctrl/form-mdctrl-control/form-mdctrl-control.controller.ts
|
|
36000
|
-
import { RuntimeError as
|
|
36252
|
+
import { RuntimeError as RuntimeError44 } from "@ibiz-template/core";
|
|
36001
36253
|
var FormMDCtrlControlController = class extends FormMDCtrlContentTypeController {
|
|
36002
36254
|
/**
|
|
36003
36255
|
* 初始化
|
|
@@ -36012,7 +36264,7 @@ var FormMDCtrlControlController = class extends FormMDCtrlContentTypeController
|
|
|
36012
36264
|
const { model } = this.parent;
|
|
36013
36265
|
const { contentControl } = model;
|
|
36014
36266
|
if (!contentControl) {
|
|
36015
|
-
throw new
|
|
36267
|
+
throw new RuntimeError44("\u8868\u5355\u591A\u6570\u636E\u90E8\u4EF6\u672A\u914D\u7F6E\u5D4C\u5165\u90E8\u4EF6");
|
|
36016
36268
|
}
|
|
36017
36269
|
this.controlModel = contentControl;
|
|
36018
36270
|
const controlProvider = await getControlProvider(this.controlModel);
|
|
@@ -36122,7 +36374,7 @@ import { isArray as isArray10 } from "lodash-es";
|
|
|
36122
36374
|
import {
|
|
36123
36375
|
awaitTimeout,
|
|
36124
36376
|
mergeInLeft,
|
|
36125
|
-
RuntimeError as
|
|
36377
|
+
RuntimeError as RuntimeError45,
|
|
36126
36378
|
mergeDefaultInLeft as mergeDefaultInLeft2
|
|
36127
36379
|
} from "@ibiz-template/core";
|
|
36128
36380
|
import { debounce as debounce2 } from "lodash-es";
|
|
@@ -36567,7 +36819,7 @@ var EditFormController = class extends FormController {
|
|
|
36567
36819
|
}
|
|
36568
36820
|
const isValid = await this.validate();
|
|
36569
36821
|
if (!isValid) {
|
|
36570
|
-
throw new
|
|
36822
|
+
throw new RuntimeError45("\u8BF7\u68C0\u67E5\u8868\u5355\u586B\u5199\uFF01");
|
|
36571
36823
|
}
|
|
36572
36824
|
await this.startLoading();
|
|
36573
36825
|
await this.evt.emit("onBeforeSave", void 0);
|
|
@@ -36680,7 +36932,7 @@ var EditFormController = class extends FormController {
|
|
|
36680
36932
|
(item) => item.id === formItemUpdateId
|
|
36681
36933
|
);
|
|
36682
36934
|
if (!formItemUpdate) {
|
|
36683
|
-
throw new
|
|
36935
|
+
throw new RuntimeError45("\u6CA1\u627E\u5230".concat(formItemUpdateId, "\u8868\u5355\u9879\u66F4\u65B0"));
|
|
36684
36936
|
}
|
|
36685
36937
|
const { appDEMethodId, defiupdateDetails, customCode, scriptCode } = formItemUpdate;
|
|
36686
36938
|
const updateItems = defiupdateDetails == null ? void 0 : defiupdateDetails.map((item) => item.id);
|
|
@@ -36724,7 +36976,7 @@ var EditFormController = class extends FormController {
|
|
|
36724
36976
|
async wfStart(args) {
|
|
36725
36977
|
const isValid = await this.validate();
|
|
36726
36978
|
if (!isValid) {
|
|
36727
|
-
throw new
|
|
36979
|
+
throw new RuntimeError45("\u8BF7\u68C0\u67E5\u8868\u5355\u586B\u5199\uFF01");
|
|
36728
36980
|
}
|
|
36729
36981
|
await this.startLoading();
|
|
36730
36982
|
const { context, params } = this.handlerAbilityParams(args);
|
|
@@ -36754,7 +37006,7 @@ var EditFormController = class extends FormController {
|
|
|
36754
37006
|
async wfSubmit(args) {
|
|
36755
37007
|
const isValid = await this.validate();
|
|
36756
37008
|
if (!isValid) {
|
|
36757
|
-
throw new
|
|
37009
|
+
throw new RuntimeError45("\u8BF7\u68C0\u67E5\u8868\u5355\u586B\u5199\uFF01");
|
|
36758
37010
|
}
|
|
36759
37011
|
await this.startLoading();
|
|
36760
37012
|
const { context, params } = this.handlerAbilityParams(args);
|
|
@@ -36982,7 +37234,7 @@ var FormMDCtrlFormController = class extends FormMDCtrlControlController {
|
|
|
36982
37234
|
};
|
|
36983
37235
|
|
|
36984
37236
|
// src/controller/control/form/form-detail/form-mdctrl/form-mdctrl-grid/form-mdctrl-grid.controller.ts
|
|
36985
|
-
import { RuntimeError as
|
|
37237
|
+
import { RuntimeError as RuntimeError46, mergeInLeft as mergeInLeft3 } from "@ibiz-template/core";
|
|
36986
37238
|
var FormMDCtrlGridController = class extends FormMDCtrlControlController {
|
|
36987
37239
|
constructor() {
|
|
36988
37240
|
super(...arguments);
|
|
@@ -37087,7 +37339,7 @@ var FormMDCtrlGridController = class extends FormMDCtrlControlController {
|
|
|
37087
37339
|
const { model } = this.parent;
|
|
37088
37340
|
const { contentControl } = model;
|
|
37089
37341
|
if (!contentControl) {
|
|
37090
|
-
throw new
|
|
37342
|
+
throw new RuntimeError46("\u8868\u5355\u591A\u6570\u636E\u90E8\u4EF6\u672A\u914D\u7F6E\u5D4C\u5165\u90E8\u4EF6");
|
|
37091
37343
|
}
|
|
37092
37344
|
mergeInLeft3(contentControl, { enableRowEdit: true, enableRowNew: true });
|
|
37093
37345
|
this.controlModel = contentControl;
|
|
@@ -37395,6 +37647,28 @@ var FormMDCtrlState = class extends FormDetailState {
|
|
|
37395
37647
|
|
|
37396
37648
|
// src/controller/control/form/form-detail/form-mdctrl/form-mdctrl.controller.ts
|
|
37397
37649
|
var FormMDCtrlController = class extends FormDetailController {
|
|
37650
|
+
/**
|
|
37651
|
+
* 是否显示添加按钮
|
|
37652
|
+
*
|
|
37653
|
+
* @memberof FormMDCtrlController
|
|
37654
|
+
*/
|
|
37655
|
+
get isCreate() {
|
|
37656
|
+
if (this.model.buildInActions) {
|
|
37657
|
+
return [1, 3, 5, 7].includes(this.model.buildInActions);
|
|
37658
|
+
}
|
|
37659
|
+
return false;
|
|
37660
|
+
}
|
|
37661
|
+
/**
|
|
37662
|
+
* 是否显示删除按钮
|
|
37663
|
+
*
|
|
37664
|
+
* @memberof FormMDCtrlController
|
|
37665
|
+
*/
|
|
37666
|
+
get isDelete() {
|
|
37667
|
+
if (this.model.buildInActions) {
|
|
37668
|
+
return [4, 5, 6, 7].includes(this.model.buildInActions);
|
|
37669
|
+
}
|
|
37670
|
+
return false;
|
|
37671
|
+
}
|
|
37398
37672
|
/**
|
|
37399
37673
|
* Creates an instance of FormMDCtrlController.
|
|
37400
37674
|
*
|
|
@@ -37473,7 +37747,7 @@ var FormMDCtrlController = class extends FormDetailController {
|
|
|
37473
37747
|
setFormDataValue() {
|
|
37474
37748
|
const name = this.model.appDEFieldId || this.model.fieldName || this.model.id;
|
|
37475
37749
|
if (name) {
|
|
37476
|
-
this.form.setDataValue(name, this.state.contentCtrlData);
|
|
37750
|
+
this.form.setDataValue(name, clone19(this.state.contentCtrlData));
|
|
37477
37751
|
}
|
|
37478
37752
|
}
|
|
37479
37753
|
/**
|
|
@@ -37495,6 +37769,38 @@ var FormMDCtrlController = class extends FormDetailController {
|
|
|
37495
37769
|
*/
|
|
37496
37770
|
setDefaultValue() {
|
|
37497
37771
|
}
|
|
37772
|
+
/**
|
|
37773
|
+
* 表单数据变更通知
|
|
37774
|
+
*
|
|
37775
|
+
* @author lxm
|
|
37776
|
+
* @date 2022-09-20 18:09:56
|
|
37777
|
+
* @param {string[]} names
|
|
37778
|
+
*/
|
|
37779
|
+
async dataChangeNotify(names) {
|
|
37780
|
+
await super.dataChangeNotify(names);
|
|
37781
|
+
const { resetItemNames } = this.model;
|
|
37782
|
+
const mdctrlName = this.model.appDEFieldId || this.model.fieldName || this.model.id;
|
|
37783
|
+
let isReset = false;
|
|
37784
|
+
if (resetItemNames && resetItemNames.length > 0) {
|
|
37785
|
+
resetItemNames.forEach((resetItemName) => {
|
|
37786
|
+
if (names.includes(resetItemName)) {
|
|
37787
|
+
isReset = true;
|
|
37788
|
+
}
|
|
37789
|
+
});
|
|
37790
|
+
}
|
|
37791
|
+
if (isReset) {
|
|
37792
|
+
this.state.contentCtrlData = null;
|
|
37793
|
+
this.setFormDataValue();
|
|
37794
|
+
}
|
|
37795
|
+
if (names.includes(mdctrlName)) {
|
|
37796
|
+
this.validate();
|
|
37797
|
+
}
|
|
37798
|
+
if (names.includes(mdctrlName) && this.model.deformItemUpdateId) {
|
|
37799
|
+
await this.form.updateFormItem(
|
|
37800
|
+
this.model.deformItemUpdateId
|
|
37801
|
+
);
|
|
37802
|
+
}
|
|
37803
|
+
}
|
|
37498
37804
|
};
|
|
37499
37805
|
|
|
37500
37806
|
// src/controller/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/form-mdctrl-repeater-form/form-mdctrl-repeater-form-item.controller.ts
|
|
@@ -37798,10 +38104,10 @@ import {
|
|
|
37798
38104
|
debounceAndAsyncMerge as debounceAndAsyncMerge2,
|
|
37799
38105
|
mergeDefaultInLeft as mergeDefaultInLeft3,
|
|
37800
38106
|
recursiveIterate as recursiveIterate5,
|
|
37801
|
-
RuntimeError as
|
|
38107
|
+
RuntimeError as RuntimeError47,
|
|
37802
38108
|
RuntimeModelError as RuntimeModelError53
|
|
37803
38109
|
} from "@ibiz-template/core";
|
|
37804
|
-
import { clone as
|
|
38110
|
+
import { clone as clone20 } from "ramda";
|
|
37805
38111
|
|
|
37806
38112
|
// src/controller/control/grid/grid/grid.service.ts
|
|
37807
38113
|
var GridService = class extends MDControlService {
|
|
@@ -38172,7 +38478,7 @@ var GridController = class extends MDControlController {
|
|
|
38172
38478
|
if (editShowMode === "row") {
|
|
38173
38479
|
const editingRow = this.state.rows.find((item) => item.showRowEdit);
|
|
38174
38480
|
if (editingRow) {
|
|
38175
|
-
throw new
|
|
38481
|
+
throw new RuntimeError47("\u8BF7\u5148\u5B8C\u6210\u5F53\u524D\u884C\u7F16\u8F91\u4E2D\u7684\u884C\u7684\u64CD\u4F5C");
|
|
38176
38482
|
}
|
|
38177
38483
|
}
|
|
38178
38484
|
const queryParams = { ...this.params };
|
|
@@ -38213,7 +38519,7 @@ var GridController = class extends MDControlController {
|
|
|
38213
38519
|
const isCreate = data.srfuf === 0 /* CREATE */;
|
|
38214
38520
|
const rowState = this.findRowState(data);
|
|
38215
38521
|
if (!rowState) {
|
|
38216
|
-
throw new
|
|
38522
|
+
throw new RuntimeError47("\u884C\u6570\u636E\u4E0D\u5B58\u5728");
|
|
38217
38523
|
}
|
|
38218
38524
|
if (!rowState.modified) {
|
|
38219
38525
|
ibiz.log.debug("\u503C\u6CA1\u6709\u53D1\u751F\u6539\u53D8");
|
|
@@ -38225,7 +38531,7 @@ var GridController = class extends MDControlController {
|
|
|
38225
38531
|
}
|
|
38226
38532
|
const isValid = await this.validate(rowState);
|
|
38227
38533
|
if (!isValid) {
|
|
38228
|
-
throw new
|
|
38534
|
+
throw new RuntimeError47("\u884C\u6570\u636E\u6821\u9A8C\u4E0D\u901A\u8FC7\uFF0C\u4FDD\u5B58\u53D6\u6D88");
|
|
38229
38535
|
}
|
|
38230
38536
|
await this.startLoading();
|
|
38231
38537
|
let res;
|
|
@@ -38425,7 +38731,7 @@ var GridController = class extends MDControlController {
|
|
|
38425
38731
|
}
|
|
38426
38732
|
async toggleRowEdit() {
|
|
38427
38733
|
if (!this.model.enableRowNew) {
|
|
38428
|
-
throw new
|
|
38734
|
+
throw new RuntimeError47("\u5F53\u524D\u8868\u683C\u4E0D\u652F\u6301\u884C\u7F16\u8F91\uFF0C\u65E0\u6CD5\u5207\u6362\u5F00\u542F\u884C\u7F16\u8F91");
|
|
38429
38735
|
}
|
|
38430
38736
|
this.state.rowEditOpen = !this.state.rowEditOpen;
|
|
38431
38737
|
}
|
|
@@ -38458,10 +38764,10 @@ var GridController = class extends MDControlController {
|
|
|
38458
38764
|
} else {
|
|
38459
38765
|
const editingRow = this.state.rows.find((item) => item.showRowEdit);
|
|
38460
38766
|
if (editingRow) {
|
|
38461
|
-
throw new
|
|
38767
|
+
throw new RuntimeError47("\u540C\u65F6\u53EA\u80FD\u6709\u4E00\u884C\u5F00\u542F\u884C\u7F16\u8F91");
|
|
38462
38768
|
}
|
|
38463
38769
|
if (row.data.srfuf === 1 /* UPDATE */) {
|
|
38464
|
-
row.cacheData =
|
|
38770
|
+
row.cacheData = clone20(row.data);
|
|
38465
38771
|
const defaultVal = this.calcDefaultValue(row.data, false);
|
|
38466
38772
|
Object.assign(row.data, defaultVal);
|
|
38467
38773
|
}
|
|
@@ -38508,7 +38814,7 @@ var GridController = class extends MDControlController {
|
|
|
38508
38814
|
(item) => item.id === updateId
|
|
38509
38815
|
);
|
|
38510
38816
|
if (!findUpdate) {
|
|
38511
|
-
throw new
|
|
38817
|
+
throw new RuntimeError47("\u6CA1\u627E\u5230".concat(updateId, "\u7F16\u8F91\u5217\u66F4\u65B0"));
|
|
38512
38818
|
}
|
|
38513
38819
|
const { appDEMethodId, degeiupdateDetails, customCode, scriptCode } = findUpdate;
|
|
38514
38820
|
const updateItems = degeiupdateDetails.map((item) => item.id);
|
|
@@ -38572,28 +38878,11 @@ var GridController = class extends MDControlController {
|
|
|
38572
38878
|
async exportData(_args) {
|
|
38573
38879
|
const items = this.fieldColumns;
|
|
38574
38880
|
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(
|
|
38881
|
+
const cloneData = clone20(
|
|
38582
38882
|
data2.map((item) => {
|
|
38583
38883
|
return item.getOrigin();
|
|
38584
38884
|
})
|
|
38585
38885
|
);
|
|
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
38886
|
return cloneData;
|
|
38598
38887
|
};
|
|
38599
38888
|
const getExportData = async () => {
|
|
@@ -38617,7 +38906,7 @@ var GridController = class extends MDControlController {
|
|
|
38617
38906
|
data2 = this.getData();
|
|
38618
38907
|
}
|
|
38619
38908
|
if (data2.length === 0) {
|
|
38620
|
-
throw new
|
|
38909
|
+
throw new RuntimeError47("\u65E0\u5BFC\u51FA\u6570\u636E");
|
|
38621
38910
|
}
|
|
38622
38911
|
return formatExcelData(data2);
|
|
38623
38912
|
};
|
|
@@ -38635,23 +38924,7 @@ var GridController = class extends MDControlController {
|
|
|
38635
38924
|
(key) => items[key].model.caption
|
|
38636
38925
|
);
|
|
38637
38926
|
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
|
-
});
|
|
38927
|
+
await exportData(header, data, this.model.logicName);
|
|
38655
38928
|
}
|
|
38656
38929
|
/**
|
|
38657
38930
|
* 计算默认值并返回一个对象,对象里的属性就是要填充的默认值
|
|
@@ -38714,7 +38987,7 @@ var GridController = class extends MDControlController {
|
|
|
38714
38987
|
import { DataTypes as DataTypes3, ModelError as ModelError26 } from "@ibiz-template/core";
|
|
38715
38988
|
import dayjs4 from "dayjs";
|
|
38716
38989
|
import { debounce as debounce3 } from "lodash-es";
|
|
38717
|
-
import { clone as
|
|
38990
|
+
import { clone as clone21, isNil as isNil21 } from "ramda";
|
|
38718
38991
|
var GridFieldColumnController = class extends GridColumnController {
|
|
38719
38992
|
constructor() {
|
|
38720
38993
|
super(...arguments);
|
|
@@ -38818,7 +39091,7 @@ var GridFieldColumnController = class extends GridColumnController {
|
|
|
38818
39091
|
srfkey: value,
|
|
38819
39092
|
...wfContext
|
|
38820
39093
|
});
|
|
38821
|
-
const tempParams =
|
|
39094
|
+
const tempParams = clone21(this.params);
|
|
38822
39095
|
const { context: newContext, params: newParams } = this.handlePublicParams(
|
|
38823
39096
|
row.data,
|
|
38824
39097
|
tempContext,
|
|
@@ -39014,7 +39287,7 @@ var GridUAColumnController = class extends GridColumnController {
|
|
|
39014
39287
|
};
|
|
39015
39288
|
|
|
39016
39289
|
// src/controller/control/grid/grid-column/grid-field-edit-column/grid-field-edit-column.controller.ts
|
|
39017
|
-
import { RuntimeError as
|
|
39290
|
+
import { RuntimeError as RuntimeError48 } from "@ibiz-template/core";
|
|
39018
39291
|
import Schema2 from "async-validator";
|
|
39019
39292
|
import { isNilOrEmpty as isNilOrEmpty9 } from "qx-util";
|
|
39020
39293
|
var GridFieldEditColumnController = class extends GridFieldColumnController {
|
|
@@ -39151,7 +39424,7 @@ var GridFieldEditColumnController = class extends GridFieldColumnController {
|
|
|
39151
39424
|
if (requiredChanged || names.includes(this.fieldName) || names.includes(this.valueItemName)) {
|
|
39152
39425
|
const result = await this.validate(row);
|
|
39153
39426
|
if (!result) {
|
|
39154
|
-
throw new
|
|
39427
|
+
throw new RuntimeError48(
|
|
39155
39428
|
"".concat(this.editItem.codeName, "\u6821\u9A8C\u62A5\u9519,").concat(row.errors[this.fieldName])
|
|
39156
39429
|
);
|
|
39157
39430
|
}
|
|
@@ -39509,7 +39782,7 @@ var ListController = class extends MDControlController {
|
|
|
39509
39782
|
};
|
|
39510
39783
|
|
|
39511
39784
|
// src/controller/control/panel/panel/panel.controller.ts
|
|
39512
|
-
import { recursiveIterate as recursiveIterate6, RuntimeError as
|
|
39785
|
+
import { recursiveIterate as recursiveIterate6, RuntimeError as RuntimeError49 } from "@ibiz-template/core";
|
|
39513
39786
|
var PanelController = class extends ControlController {
|
|
39514
39787
|
constructor() {
|
|
39515
39788
|
super(...arguments);
|
|
@@ -39623,7 +39896,7 @@ var PanelController = class extends ControlController {
|
|
|
39623
39896
|
async load() {
|
|
39624
39897
|
const data = await this.prepareData();
|
|
39625
39898
|
if (!data) {
|
|
39626
|
-
throw new
|
|
39899
|
+
throw new RuntimeError49("\u672A\u83B7\u53D6\u5230\u9762\u677F\u6570\u636E");
|
|
39627
39900
|
}
|
|
39628
39901
|
const panelData = this.convertData(data);
|
|
39629
39902
|
this.state.data = panelData;
|
|
@@ -39660,7 +39933,8 @@ var PanelController = class extends ControlController {
|
|
|
39660
39933
|
* @memberof PanelController
|
|
39661
39934
|
*/
|
|
39662
39935
|
convertData(data) {
|
|
39663
|
-
|
|
39936
|
+
const fields = getAllPanelField(this.model);
|
|
39937
|
+
return new PanelData(fields, data);
|
|
39664
39938
|
}
|
|
39665
39939
|
/**
|
|
39666
39940
|
* 通知所有面板成员面板操作过程中的数据变更
|
|
@@ -41229,7 +41503,7 @@ var TreeController = class extends MDControlController {
|
|
|
41229
41503
|
};
|
|
41230
41504
|
|
|
41231
41505
|
// src/controller/control/wizard-panel/wizard-panel.controller.ts
|
|
41232
|
-
import { RuntimeError as
|
|
41506
|
+
import { RuntimeError as RuntimeError50 } from "@ibiz-template/core";
|
|
41233
41507
|
|
|
41234
41508
|
// src/controller/control/wizard-panel/wizard-panel.service.ts
|
|
41235
41509
|
var WizardPanelService = class extends ControlService {
|
|
@@ -41388,7 +41662,7 @@ var WizardPanelController = class extends ControlController {
|
|
|
41388
41662
|
const { activeFormTag } = this.state;
|
|
41389
41663
|
const controller = this.formControllers.get(activeFormTag);
|
|
41390
41664
|
if (!controller) {
|
|
41391
|
-
throw new
|
|
41665
|
+
throw new RuntimeError50("\u627E\u4E0D\u5230".concat(activeFormTag, "\u7684\u8868\u5355\u63A7\u5236\u5668"));
|
|
41392
41666
|
}
|
|
41393
41667
|
return controller;
|
|
41394
41668
|
}
|
|
@@ -41463,7 +41737,7 @@ var WizardPanelController = class extends ControlController {
|
|
|
41463
41737
|
this.tagHistory.pop();
|
|
41464
41738
|
const prevTag = this.tagHistory[this.tagHistory.length - 1];
|
|
41465
41739
|
if (!prevTag) {
|
|
41466
|
-
throw new
|
|
41740
|
+
throw new RuntimeError50("\u6CA1\u6709\u4E0A\u4E00\u4E2A\u8868\u5355");
|
|
41467
41741
|
}
|
|
41468
41742
|
this.state.activeFormTag = prevTag;
|
|
41469
41743
|
}
|
|
@@ -41484,7 +41758,7 @@ var WizardPanelController = class extends ControlController {
|
|
|
41484
41758
|
}
|
|
41485
41759
|
);
|
|
41486
41760
|
if (!wizardForm) {
|
|
41487
|
-
throw new
|
|
41761
|
+
throw new RuntimeError50("\u627E\u4E0D\u5230\u6807\u8BC6\u4E3A".concat(data.srfnextform, "\u7684\u5411\u5BFC\u8868\u5355"));
|
|
41488
41762
|
}
|
|
41489
41763
|
nextTag = data.srfnextform;
|
|
41490
41764
|
} else {
|
|
@@ -41496,7 +41770,7 @@ var WizardPanelController = class extends ControlController {
|
|
|
41496
41770
|
});
|
|
41497
41771
|
const nextWizardStep = wizardSteps[index + 1];
|
|
41498
41772
|
if (!nextWizardStep) {
|
|
41499
|
-
throw new
|
|
41773
|
+
throw new RuntimeError50("\u627E\u4E0D\u5230\u4E0B\u4E00\u4E2A\u5411\u5BFC\u6B65\u9AA4");
|
|
41500
41774
|
}
|
|
41501
41775
|
const nextWizardForm = this.model.dewizard.dewizardForms.find(
|
|
41502
41776
|
(wizardForm) => {
|
|
@@ -41509,7 +41783,7 @@ var WizardPanelController = class extends ControlController {
|
|
|
41509
41783
|
}
|
|
41510
41784
|
}
|
|
41511
41785
|
if (!nextTag) {
|
|
41512
|
-
throw new
|
|
41786
|
+
throw new RuntimeError50("\u627E\u4E0D\u5230\u4E0B\u4E00\u4E2A\u5411\u5BFC\u8868\u5355");
|
|
41513
41787
|
}
|
|
41514
41788
|
this.state.activeFormTag = nextTag;
|
|
41515
41789
|
this.tagHistory.push(nextTag);
|
|
@@ -41848,7 +42122,7 @@ var MDCtrlController = class extends MDControlController {
|
|
|
41848
42122
|
};
|
|
41849
42123
|
|
|
41850
42124
|
// src/controller/control/kanban/kanban.controller.ts
|
|
41851
|
-
import { RuntimeError as
|
|
42125
|
+
import { RuntimeError as RuntimeError51, RuntimeModelError as RuntimeModelError57 } from "@ibiz-template/core";
|
|
41852
42126
|
import { isNil as isNil24 } from "ramda";
|
|
41853
42127
|
|
|
41854
42128
|
// src/controller/control/kanban/kanban.service.ts
|
|
@@ -41936,7 +42210,7 @@ var KanbanController = class extends DataViewControlController {
|
|
|
41936
42210
|
} else {
|
|
41937
42211
|
const toNum = Number(sortValue);
|
|
41938
42212
|
if (Number.isNaN(toNum)) {
|
|
41939
|
-
throw new
|
|
42213
|
+
throw new RuntimeError51(
|
|
41940
42214
|
"".concat(item.srfmajortext, "\u7684\u6392\u5E8F\u5C5E\u6027\u65E0\u6CD5\u8F6C\u6362\u6210\u6570\u503C")
|
|
41941
42215
|
);
|
|
41942
42216
|
}
|
|
@@ -41952,7 +42226,7 @@ var KanbanController = class extends DataViewControlController {
|
|
|
41952
42226
|
}
|
|
41953
42227
|
handleDataGroup() {
|
|
41954
42228
|
if (!this.model.enableGroup || this.model.groupMode === "NONE") {
|
|
41955
|
-
throw new
|
|
42229
|
+
throw new RuntimeError51("\u770B\u677F\u90E8\u4EF6\u5FC5\u987B\u5F00\u542F\u5206\u7EC4");
|
|
41956
42230
|
}
|
|
41957
42231
|
return super.handleDataGroup();
|
|
41958
42232
|
}
|
|
@@ -42446,7 +42720,7 @@ var TreeGridService = class extends GridService {
|
|
|
42446
42720
|
};
|
|
42447
42721
|
|
|
42448
42722
|
// src/controller/control/medit-view-panel/medit-view-panel.controller.ts
|
|
42449
|
-
import { RuntimeError as
|
|
42723
|
+
import { RuntimeError as RuntimeError52 } from "@ibiz-template/core";
|
|
42450
42724
|
import { createUUID as createUUID9 } from "qx-util";
|
|
42451
42725
|
|
|
42452
42726
|
// src/controller/control/medit-view-panel/medit-view-panel.service.ts
|
|
@@ -42657,7 +42931,7 @@ var MEditViewPanelController = class extends MDControlController {
|
|
|
42657
42931
|
(item) => item.id === id
|
|
42658
42932
|
);
|
|
42659
42933
|
if (!panelUiItemIndex) {
|
|
42660
|
-
throw new
|
|
42934
|
+
throw new RuntimeError52("\u7F16\u8F91\u89C6\u56FE\u9762\u677F\u90E8\u4EF6UI\u6570\u636E\u4E0D\u5B58\u5728");
|
|
42661
42935
|
}
|
|
42662
42936
|
await this.startLoading();
|
|
42663
42937
|
let res;
|
|
@@ -42757,7 +43031,7 @@ var MapController = class extends MDControlController {
|
|
|
42757
43031
|
this.state.size = 1e3;
|
|
42758
43032
|
this.state.pointData = [];
|
|
42759
43033
|
this.state.areaData = [];
|
|
42760
|
-
this.
|
|
43034
|
+
this.calcDefaultOptions();
|
|
42761
43035
|
}
|
|
42762
43036
|
async onCreated() {
|
|
42763
43037
|
await super.onCreated();
|
|
@@ -42814,6 +43088,37 @@ var MapController = class extends MDControlController {
|
|
|
42814
43088
|
this.state.areaData = tempareaData;
|
|
42815
43089
|
return result;
|
|
42816
43090
|
}
|
|
43091
|
+
/**
|
|
43092
|
+
* 计算默认选项
|
|
43093
|
+
* @author lxm
|
|
43094
|
+
* @date 2023-11-01 03:23:33
|
|
43095
|
+
*/
|
|
43096
|
+
calcDefaultOptions() {
|
|
43097
|
+
var _a;
|
|
43098
|
+
this.state.strAreaCode = false;
|
|
43099
|
+
this.state.defaultAreaCode = 1e5;
|
|
43100
|
+
if ((_a = this.model.controlParam) == null ? void 0 : _a.ctrlParams) {
|
|
43101
|
+
const { ctrlParams } = this.model.controlParam;
|
|
43102
|
+
Object.keys(ctrlParams).forEach((key) => {
|
|
43103
|
+
const value = ctrlParams[key];
|
|
43104
|
+
switch (key.toLowerCase()) {
|
|
43105
|
+
case "defaultareacode":
|
|
43106
|
+
this.state.defaultAreaCode = value;
|
|
43107
|
+
break;
|
|
43108
|
+
case "strareacode":
|
|
43109
|
+
this.state.strAreaCode = value === "true";
|
|
43110
|
+
break;
|
|
43111
|
+
case "jsonbaseurl":
|
|
43112
|
+
this.state.jsonBaseUrl = value;
|
|
43113
|
+
break;
|
|
43114
|
+
default:
|
|
43115
|
+
break;
|
|
43116
|
+
}
|
|
43117
|
+
});
|
|
43118
|
+
}
|
|
43119
|
+
this.state.defaultAreaCode = this.state.strAreaCode ? "".concat(this.state.defaultAreaCode) : Number(this.state.defaultAreaCode);
|
|
43120
|
+
this.state.areaCode = this.state.defaultAreaCode;
|
|
43121
|
+
}
|
|
42817
43122
|
/**
|
|
42818
43123
|
* 地图变更事件处理
|
|
42819
43124
|
* @author lxm
|
|
@@ -43060,7 +43365,7 @@ var AppHub = class {
|
|
|
43060
43365
|
this.registerAppView(appView);
|
|
43061
43366
|
return appView;
|
|
43062
43367
|
}
|
|
43063
|
-
throw new
|
|
43368
|
+
throw new RuntimeError53("\u89C6\u56FE[".concat(id, "]\u4E0D\u5B58\u5728"));
|
|
43064
43369
|
}
|
|
43065
43370
|
/**
|
|
43066
43371
|
* 根据应用实体代码名称查找应用视图
|
|
@@ -43091,7 +43396,7 @@ var AppHub = class {
|
|
|
43091
43396
|
this.registerAppDataEntity(entity, appId);
|
|
43092
43397
|
return entity;
|
|
43093
43398
|
}
|
|
43094
|
-
throw new
|
|
43399
|
+
throw new RuntimeError53("\u672A\u627E\u5230\u5E94\u7528\u5B9E\u4F53[".concat(id, "]"));
|
|
43095
43400
|
}
|
|
43096
43401
|
/**
|
|
43097
43402
|
* 新建 hub 应用
|
|
@@ -43112,7 +43417,7 @@ var AppHub = class {
|
|
|
43112
43417
|
appModel = await this.modelLoaderProvider.getApp(id);
|
|
43113
43418
|
this.registerApp(appModel);
|
|
43114
43419
|
} else {
|
|
43115
|
-
throw new
|
|
43420
|
+
throw new RuntimeError53("\u672A\u627E\u5230\u5E94\u7528[".concat(id, "]\u6A21\u578B"));
|
|
43116
43421
|
}
|
|
43117
43422
|
const app = new Application(appModel);
|
|
43118
43423
|
this.appMap.set(id, app);
|
|
@@ -43210,7 +43515,7 @@ var EngineFactory = class {
|
|
|
43210
43515
|
};
|
|
43211
43516
|
|
|
43212
43517
|
// src/engine/view-base.engine.ts
|
|
43213
|
-
import { RuntimeError as
|
|
43518
|
+
import { RuntimeError as RuntimeError54 } from "@ibiz-template/core";
|
|
43214
43519
|
var ViewEngineBase = class {
|
|
43215
43520
|
/**
|
|
43216
43521
|
* 构造函数在视图控制器的构造函数逻辑内部执行
|
|
@@ -43398,7 +43703,7 @@ var ViewEngineBase = class {
|
|
|
43398
43703
|
const { appDataEntityId } = this.view.model;
|
|
43399
43704
|
const { evt, context, params } = this.view;
|
|
43400
43705
|
if (!appDataEntityId) {
|
|
43401
|
-
throw new
|
|
43706
|
+
throw new RuntimeError54("\u8BE5\u89C6\u56FE\u6CA1\u6709\u5B9E\u4F53\uFF0C\u65E0\u6CD5\u52A0\u8F7D\u5B9E\u4F53\u6570\u636E");
|
|
43402
43707
|
}
|
|
43403
43708
|
const app = ibiz.hub.getApp(context.srfappid);
|
|
43404
43709
|
const res = await app.deService.exec(
|
|
@@ -43420,7 +43725,7 @@ var ViewEngineBase = class {
|
|
|
43420
43725
|
|
|
43421
43726
|
// src/engine/md-view.engine.ts
|
|
43422
43727
|
import { RuntimeModelError as RuntimeModelError58 } from "@ibiz-template/core";
|
|
43423
|
-
import { clone as
|
|
43728
|
+
import { clone as clone22 } from "ramda";
|
|
43424
43729
|
var MDViewEngine = class extends ViewEngineBase {
|
|
43425
43730
|
/**
|
|
43426
43731
|
* 多数据部件名称
|
|
@@ -43617,7 +43922,7 @@ var MDViewEngine = class extends ViewEngineBase {
|
|
|
43617
43922
|
if (!openAppViewLogic) {
|
|
43618
43923
|
throw new RuntimeModelError58(this.view.model, "\u7F3A\u5C11newdata\u7684\u89C6\u56FE\u903B\u8F91");
|
|
43619
43924
|
}
|
|
43620
|
-
const params =
|
|
43925
|
+
const params = clone22(this.view.params);
|
|
43621
43926
|
if (copyMode) {
|
|
43622
43927
|
params.srfcopymode = copyMode;
|
|
43623
43928
|
}
|
|
@@ -43752,7 +44057,7 @@ import {
|
|
|
43752
44057
|
ModelError as ModelError28,
|
|
43753
44058
|
HttpError as HttpError4,
|
|
43754
44059
|
NoticeError as NoticeError2,
|
|
43755
|
-
RuntimeError as
|
|
44060
|
+
RuntimeError as RuntimeError55
|
|
43756
44061
|
} from "@ibiz-template/core";
|
|
43757
44062
|
var DefaultErrorHandler = class {
|
|
43758
44063
|
handle(error) {
|
|
@@ -43770,7 +44075,7 @@ var DefaultErrorHandler = class {
|
|
|
43770
44075
|
}
|
|
43771
44076
|
} else if (error instanceof NoticeError2) {
|
|
43772
44077
|
ibiz.message.error(error.message, error.duration, error.duration === 0);
|
|
43773
|
-
} else if (error instanceof
|
|
44078
|
+
} else if (error instanceof RuntimeError55) {
|
|
43774
44079
|
ibiz.message.error(error.message, 10, true);
|
|
43775
44080
|
}
|
|
43776
44081
|
ibiz.log.error(error);
|
|
@@ -43898,7 +44203,7 @@ var GlobalUtil = class {
|
|
|
43898
44203
|
};
|
|
43899
44204
|
|
|
43900
44205
|
// src/logic-scheduler/executor/logic-executor.ts
|
|
43901
|
-
import { RuntimeError as
|
|
44206
|
+
import { RuntimeError as RuntimeError56 } from "@ibiz-template/core";
|
|
43902
44207
|
var LogicExecutor = class {
|
|
43903
44208
|
/**
|
|
43904
44209
|
* @author lxm
|
|
@@ -43919,7 +44224,7 @@ var LogicExecutor = class {
|
|
|
43919
44224
|
*/
|
|
43920
44225
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
43921
44226
|
execute(_executeParams) {
|
|
43922
|
-
throw new
|
|
44227
|
+
throw new RuntimeError56("Method not implemented.");
|
|
43923
44228
|
}
|
|
43924
44229
|
/**
|
|
43925
44230
|
* 销毁方法
|
|
@@ -44356,7 +44661,7 @@ var LogicSchedulerCenter = class {
|
|
|
44356
44661
|
};
|
|
44357
44662
|
|
|
44358
44663
|
// src/logic-scheduler/trigger/logic-trigger.ts
|
|
44359
|
-
import { RuntimeError as
|
|
44664
|
+
import { RuntimeError as RuntimeError57 } from "@ibiz-template/core";
|
|
44360
44665
|
var LogicTrigger = class {
|
|
44361
44666
|
/**
|
|
44362
44667
|
* @author lxm
|
|
@@ -44416,7 +44721,7 @@ var LogicTrigger = class {
|
|
|
44416
44721
|
if (this.executor) {
|
|
44417
44722
|
return this.executor.execute(executeParams);
|
|
44418
44723
|
}
|
|
44419
|
-
throw new
|
|
44724
|
+
throw new RuntimeError57("".concat(this.logic.id, "\u6CA1\u6709\u7ED1\u5B9Aexecutor"));
|
|
44420
44725
|
}
|
|
44421
44726
|
/**
|
|
44422
44727
|
* 销毁方法
|
|
@@ -44433,12 +44738,12 @@ var CustomTrigger = class extends LogicTrigger {
|
|
|
44433
44738
|
};
|
|
44434
44739
|
|
|
44435
44740
|
// src/logic-scheduler/trigger/item-dyna-logic-trigger.ts
|
|
44436
|
-
import { RuntimeError as
|
|
44741
|
+
import { RuntimeError as RuntimeError58 } from "@ibiz-template/core";
|
|
44437
44742
|
var ItemDynaLogicTrigger = class extends LogicTrigger {
|
|
44438
44743
|
bindExecutor(executor) {
|
|
44439
44744
|
super.bindExecutor(executor);
|
|
44440
44745
|
if (this.executor.type !== "SCRIPT") {
|
|
44441
|
-
throw new
|
|
44746
|
+
throw new RuntimeError58(
|
|
44442
44747
|
"\u9884\u5B9A\u4E49\u903B\u8F91\u7C7B\u578B".concat(this.type, "\u7684\u89E6\u53D1\u5668\u7C7B\u578B\u53EA\u80FD\u662F\u811A\u672C")
|
|
44443
44748
|
);
|
|
44444
44749
|
}
|
|
@@ -44474,7 +44779,7 @@ var ItemDynaLogicTrigger = class extends LogicTrigger {
|
|
|
44474
44779
|
};
|
|
44475
44780
|
|
|
44476
44781
|
// src/logic-scheduler/trigger/timer-trigger.ts
|
|
44477
|
-
import { RuntimeError as
|
|
44782
|
+
import { RuntimeError as RuntimeError59, RuntimeModelError as RuntimeModelError61 } from "@ibiz-template/core";
|
|
44478
44783
|
var TimerTrigger = class extends LogicTrigger {
|
|
44479
44784
|
constructor() {
|
|
44480
44785
|
super(...arguments);
|
|
@@ -44486,7 +44791,7 @@ var TimerTrigger = class extends LogicTrigger {
|
|
|
44486
44791
|
}
|
|
44487
44792
|
this.timer = setInterval(() => {
|
|
44488
44793
|
if (!this.scheduler.defaultParamsCb) {
|
|
44489
|
-
throw new
|
|
44794
|
+
throw new RuntimeError59("\u5B9A\u65F6\u5668\u7F3A\u5C11\u9ED8\u8BA4\u53C2\u6570\u56DE\u8C03");
|
|
44490
44795
|
}
|
|
44491
44796
|
const params = this.scheduler.defaultParamsCb();
|
|
44492
44797
|
this.executor.execute(params);
|
|
@@ -44503,7 +44808,7 @@ var TimerTrigger = class extends LogicTrigger {
|
|
|
44503
44808
|
// src/logic-scheduler/executor/app-ui-logic-executor.ts
|
|
44504
44809
|
import {
|
|
44505
44810
|
ModelError as ModelError31,
|
|
44506
|
-
RuntimeError as
|
|
44811
|
+
RuntimeError as RuntimeError60,
|
|
44507
44812
|
RuntimeModelError as RuntimeModelError62
|
|
44508
44813
|
} from "@ibiz-template/core";
|
|
44509
44814
|
import { notNilEmpty as notNilEmpty9 } from "qx-util";
|
|
@@ -44539,7 +44844,7 @@ var AppUILogicExecutor = class extends LogicExecutor {
|
|
|
44539
44844
|
const { context, params, ...rest } = parameters;
|
|
44540
44845
|
const { data } = parameters;
|
|
44541
44846
|
if (!(data == null ? void 0 : data[0])) {
|
|
44542
|
-
throw new
|
|
44847
|
+
throw new RuntimeError60("opendata\u6CA1\u6709\u53EF\u64CD\u4F5C\u6570\u636E\uFF01");
|
|
44543
44848
|
}
|
|
44544
44849
|
const openViewRefs = appUILogic.openDataAppViews;
|
|
44545
44850
|
let openViewRef;
|
|
@@ -44596,7 +44901,7 @@ var AppUILogicExecutor = class extends LogicExecutor {
|
|
|
44596
44901
|
const openViewRefs = appUILogic.openDataAppViews;
|
|
44597
44902
|
const findView = openViewRefs == null ? void 0 : openViewRefs.find((item) => item.refMode === formTypeValue);
|
|
44598
44903
|
if (!findView) {
|
|
44599
|
-
throw new
|
|
44904
|
+
throw new RuntimeError60(
|
|
44600
44905
|
"\u6CA1\u6709\u627E\u5230\u4E0E\u8868\u5355\u7C7B\u578B".concat(formTypeValue, "\u76F8\u5173\u7684\u5B9E\u4F53\u7684\u7F16\u8F91\u89C6\u56FE")
|
|
44601
44906
|
);
|
|
44602
44907
|
}
|
|
@@ -44714,12 +45019,12 @@ var AppUILogicExecutor = class extends LogicExecutor {
|
|
|
44714
45019
|
}
|
|
44715
45020
|
const selectData = (_a = result.data) == null ? void 0 : _a[0];
|
|
44716
45021
|
if (!selectData) {
|
|
44717
|
-
throw new
|
|
45022
|
+
throw new RuntimeError60("\u8BF7\u9009\u4E2D\u4E00\u6761\u6570\u636E");
|
|
44718
45023
|
}
|
|
44719
45024
|
const indexType = selectData.srfkey;
|
|
44720
45025
|
const findView = newDataAppViews == null ? void 0 : newDataAppViews.find((item) => item.refMode === indexType);
|
|
44721
45026
|
if (!findView) {
|
|
44722
|
-
throw new
|
|
45027
|
+
throw new RuntimeError60(
|
|
44723
45028
|
"\u6CA1\u6709\u627E\u5230\u4E0E\u7D22\u5F15\u7C7B\u578B".concat(indexType, "\u76F8\u5173\u7684\u5B9E\u4F53\u7684\u7F16\u8F91\u89C6\u56FE")
|
|
44724
45029
|
);
|
|
44725
45030
|
}
|
|
@@ -45136,6 +45441,7 @@ export {
|
|
|
45136
45441
|
PORTLET_PROVIDER_PREFIX,
|
|
45137
45442
|
PSDEDQCondEngine,
|
|
45138
45443
|
PanelController,
|
|
45444
|
+
PanelData,
|
|
45139
45445
|
PanelItemController,
|
|
45140
45446
|
PanelItemState,
|
|
45141
45447
|
PanelNotifyState,
|
|
@@ -45177,6 +45483,7 @@ export {
|
|
|
45177
45483
|
UIACTION_PROVIDER_PREFIX,
|
|
45178
45484
|
UIActionButtonState,
|
|
45179
45485
|
UIActionUtil,
|
|
45486
|
+
UILOGINNODE_PROVIDER_PREFIX,
|
|
45180
45487
|
UIMapField,
|
|
45181
45488
|
V7AuthService,
|
|
45182
45489
|
VIEW_PROVIDER_PREFIX,
|
|
@@ -45194,6 +45501,7 @@ export {
|
|
|
45194
45501
|
WizardPanelController,
|
|
45195
45502
|
WizardPanelService,
|
|
45196
45503
|
WorkFlowService,
|
|
45504
|
+
asyncImportData,
|
|
45197
45505
|
calcContentAlignStyle,
|
|
45198
45506
|
calcDeCodeNameById,
|
|
45199
45507
|
calcDynaClass,
|
|
@@ -45213,6 +45521,7 @@ export {
|
|
|
45213
45521
|
execDELogicById,
|
|
45214
45522
|
execFieldLogics,
|
|
45215
45523
|
execUILogic,
|
|
45524
|
+
exportData,
|
|
45216
45525
|
filterFieldLogics,
|
|
45217
45526
|
filterValueRules,
|
|
45218
45527
|
findChildFormDetails,
|
|
@@ -45223,6 +45532,7 @@ export {
|
|
|
45223
45532
|
formatMultiData,
|
|
45224
45533
|
generateEditorRules,
|
|
45225
45534
|
generateRules,
|
|
45535
|
+
getAllPanelField,
|
|
45226
45536
|
getAppCounterProvider,
|
|
45227
45537
|
getAppViewRef,
|
|
45228
45538
|
getChildNodeRSs,
|
|
@@ -45237,12 +45547,14 @@ export {
|
|
|
45237
45547
|
getGridColumnProvider,
|
|
45238
45548
|
getMatchResPath,
|
|
45239
45549
|
getOriginData,
|
|
45550
|
+
getPFPlugin,
|
|
45240
45551
|
getPanelItemProvider,
|
|
45241
45552
|
getPortletProvider,
|
|
45242
45553
|
getRootNode,
|
|
45243
45554
|
getTreeNode,
|
|
45244
45555
|
getUIActionById,
|
|
45245
45556
|
getUIActionProvider,
|
|
45557
|
+
getUILogicNodeProvider,
|
|
45246
45558
|
getViewEngines,
|
|
45247
45559
|
getViewLogics,
|
|
45248
45560
|
getViewProvider,
|
|
@@ -45250,6 +45562,7 @@ export {
|
|
|
45250
45562
|
getWFSubmitViewId,
|
|
45251
45563
|
handleAllSettled,
|
|
45252
45564
|
hasDeCodeName,
|
|
45565
|
+
importData,
|
|
45253
45566
|
install,
|
|
45254
45567
|
installCommand,
|
|
45255
45568
|
isDataContainer,
|
|
@@ -45267,6 +45580,7 @@ export {
|
|
|
45267
45580
|
registerPanelItemProvider,
|
|
45268
45581
|
registerPortletProvider,
|
|
45269
45582
|
registerUIActionProvider,
|
|
45583
|
+
registerUILogicNodeProvider,
|
|
45270
45584
|
registerViewProvider,
|
|
45271
45585
|
strContain,
|
|
45272
45586
|
testCond,
|